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
81
82
//! The neutral Everruns capability contract (EVE-873).
//!
//! One open identity/configuration contract shared by the `everruns`
//! Framework, the hosted product composition, and integration crates:
//!
//! - [`CapabilityId`]: an open, string-based capability identifier with one
//! validation rule set (character set, length, reserved namespace).
//! - [`CapabilityRef`]: a reference to a capability implementation plus its
//! per-agent JSON object configuration. This is the persisted attachment
//! representation and the Framework activation value — the same bytes
//! round-trip through application code, database rows, and worker
//! resolution.
//! - [`CapabilitySpec`] and the non-sealed [`IntoCapability`]: the open
//! conversion seam application values use to become capability
//! registrations.
//! - [`Definition`] (feature `definition`): the code-defined capability
//! authoring surface — typed tool handlers, schema metadata, structured
//! execution errors — with no engine or host dependency.
//! - [`CapabilityIdIndex`] and [`ActivationSet`]: canonical-id/alias
//! bookkeeping and duplicate/collision rejection shared by registries.
//!
//! This crate deliberately depends on neither `everruns-core` nor
//! `everruns-host`, and carries no Tokio, HTTP, SQLx, OpenAPI, inventory, or
//! platform-record dependency. Third-party capability crates can depend on
//! this crate alone; application authors normally consume the same types
//! re-exported from `everruns`. Part of the [Everruns](https://everruns.com)
//! ecosystem.
//!
//! # Example
//!
//! ```
//! use everruns_capability::{CapabilityRef, CapabilitySpec, IntoCapability};
//! use serde_json::json;
//!
//! struct VendorSearch {
//! index: String,
//! }
//!
//! impl IntoCapability for VendorSearch {
//! fn into_capability(self) -> CapabilitySpec {
//! CapabilityRef::new("vendor.search")
//! .config(json!({ "index": self.index }))
//! .into()
//! }
//! }
//!
//! let spec = VendorSearch { index: "prod".into() }.into_capability();
//! assert_eq!(spec.capability_ref().id(), "vendor.search");
//! ```
pub use CapabilityError;
pub use ;
pub use ;
pub use ;
pub use ;
pub use Definition;
// Dependency re-exports so downstream capability crates can align derive
// macro paths (`#[serde(crate = "...")]`) without adding their own pins.
pub use serde;
pub use serde_json;
pub use async_trait;
pub use schemars;