Skip to main content

Crate greentic_ext_runtime

Crate greentic_ext_runtime 

Source
Expand description

Wasmtime-based runtime for Greentic Designer Extensions.

Re-exports§

pub use self::broker::Broker;
pub use self::broker::BrokerError;
pub use self::broker::BrokerResult;
pub use self::capability::CapabilityRegistry;
pub use self::capability::OfferedBinding;
pub use self::capability::ResolutionPlan;
pub use self::discovery::DiscoveryPaths;
pub use self::guardrail_map::GuardrailVerdictWire;
pub use self::host_ports::InMemorySecrets;
pub use self::host_ports::KeyTranslator;
pub use self::host_ports::SecretsBackend;
pub use self::host_ports::SecretsError;
pub use self::host_ports::Translator;
pub use self::types::BundleArtifact;
pub use self::types::BundleSession;
pub use self::types::CompileContext;
pub use self::types::DeployExtensionError;
pub use self::types::DeployJob;
pub use self::types::DeployRequest;
pub use self::types::DeployStatus;
pub use self::types::Diagnostic;
pub use self::types::HostExtensionError;
pub use self::types::KnowledgeEntry;
pub use self::types::KnowledgeEntrySummary;
pub use self::types::PromptFragment;
pub use self::types::RoleError;
pub use self::types::RoleSpec;
pub use self::types::Severity;
pub use self::types::TargetKind;
pub use self::types::TargetSummary;
pub use self::types::ToolDefinition;
pub use self::types::ValidateResult;
pub use self::url_matcher::UrlMatcher;
pub use reqwest;

Modules§

broker
capability
discovery
guardrail_map
Wire-serialisable verdict type for the guardrail extension interface.
host_bindings
host_ports
Narrow ports the runtime depends on for host-side capabilities.
oauth
OAuth broker HTTP client for the design-extension runtime.
types
url_matcher
Strict URL allow-list matcher.
watcher

Structs§

ExtensionId
ExtensionRuntime
HostOverrides
Bundle of overrides every dispatch caller must supply when building a HostState. Production code (designer) constructs adapters around greentic-i18n + greentic-secrets; tests use HostOverrides::defaults_for_tests.
HostState
Per-Store host context. One HostState is built per WIT invocation — the dependencies live in Arcs so cloning is cheap.
LoadedExtension
RuntimeConfig
Configuration passed to ExtensionRuntime::new.
WatcherGuard
Returned by ExtensionRuntime::start_watcher. Dropping this stops the watcher thread cleanly (within ~200 ms).

Enums§

ExtensionHealth
HealthReason
RuntimeError
RuntimeEvent

Functions§

contribution_tool_to_definition
Map a v2 describe Tool contribution to a host-side crate::types::ToolDefinition.

Type Aliases§

LoadedExtensionRef