1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//! Plugin trait definitions for clawft.
//!
//! This crate defines the unified plugin architecture for the clawft AI
//! assistant framework. It provides trait definitions for tools, channels,
//! pipeline stages, skills, memory backends, and voice handlers -- the
//! six core extension points that all downstream feature work depends on.
//!
//! # Trait Overview
//!
//! | Trait | Purpose |
//! |-------|---------|
//! | [`Tool`] | Tool execution interface for agent capabilities |
//! | [`ChannelAdapter`] | Channel message handling for external platforms |
//! | [`PipelineStage`] | Processing stage in the agent pipeline |
//! | [`Skill`] | High-level agent capability with tools and instructions |
//! | [`MemoryBackend`] | Pluggable memory storage backend |
//! | [`VoiceHandler`] | Voice/audio processing (placeholder for Workstream G) |
//!
//! # Supporting Traits
//!
//! | Trait | Purpose |
//! |-------|---------|
//! | [`KeyValueStore`] | Key-value storage exposed to plugins via `ToolContext` |
//! | [`ToolContext`] | Execution context passed to tool/skill invocations |
//! | [`ChannelAdapterHost`] | Host services for channel adapters |
//!
//! # Plugin Manifest
//!
//! Plugins declare their capabilities, permissions, and resource limits
//! through a [`PluginManifest`], typically parsed from a JSON file
//! (`clawft.plugin.json`).
//!
//! # Feature Flags
//!
//! - `voice` -- Enables the voice pipeline module (implies `voice-vad`).
//! - `voice-vad` -- Voice Activity Detection (Silero VAD stub).
//! - `voice-stt` -- Speech-to-Text (sherpa-rs stub).
//! - `voice-tts` -- Text-to-Speech (sherpa-rs stub).
//! - `voice-wake` -- Wake-word detection (reserved).
//!
//! ## Crate Ecosystem
//!
//! WeftOS is built from these crates:
//!
//! | Crate | Role |
//! |-------|------|
//! | [`weftos`](https://crates.io/crates/weftos) | Product facade -- re-exports kernel, core, types |
//! | [`clawft-kernel`](https://crates.io/crates/clawft-kernel) | Kernel: processes, services, governance, mesh, ExoChain |
//! | [`clawft-core`](https://crates.io/crates/clawft-core) | Agent framework: pipeline, context, tools, skills |
//! | [`clawft-types`](https://crates.io/crates/clawft-types) | Shared type definitions |
//! | [`clawft-platform`](https://crates.io/crates/clawft-platform) | Platform abstraction (native/WASM/browser) |
//! | [`clawft-plugin`](https://crates.io/crates/clawft-plugin) | Plugin SDK for tools, channels, and extensions |
//! | [`clawft-llm`](https://crates.io/crates/clawft-llm) | LLM provider abstraction (11 providers + local) |
//! | [`exo-resource-tree`](https://crates.io/crates/exo-resource-tree) | Hierarchical resource namespace with Merkle integrity |
//!
//! Source: <https://github.com/weave-logic-ai/weftos>
// Re-export core types at crate root for convenience.
pub use PluginError;
pub use ;
pub use MessagePayload;
pub use ;
pub use ;