Skip to main content

talos_plugin/
lib.rs

1//! Talos plugin — lifecycle hooks, built-in hook handlers, and plugin manifest parser.
2
3pub mod builtin;
4pub mod error;
5pub mod event;
6pub mod handler;
7pub mod install;
8#[cfg(feature = "wasm")]
9pub mod lifecycle;
10pub mod manifest;
11pub mod registry;
12#[cfg(feature = "wasm")]
13pub mod wasm;
14
15pub use builtin::LoggingHandler;
16pub use error::HookError;
17pub use event::{
18    ALL_HOOK_EVENT_KINDS, BudgetKind, HookEvent, HookEventKind, ToolObservation, TurnEndReason,
19    TurnId, TurnStatus,
20};
21pub use handler::{HookContext, HookHandler, HookResult};
22pub use install::{InstallError, install_bundle};
23pub use manifest::{
24    BundleManifest, BundleMetadata, CompatibleManifest, LanguageProviderDeclaration, ManifestError,
25    MigrationOptions, PluginHook, PluginManifest, PluginMetadata, PluginSkill, PluginTool,
26    migrate_legacy_manifest, parse_compatible_manifest,
27};
28pub use registry::{HookOutcome, HookRegistration, HookRegistry};
29#[cfg(feature = "wasm")]
30pub use wasm::{LoadedLanguageProvider, WasmLanguageProvider, load_declared_language_provider};