Skip to main content

Module pack

Module pack 

Source
Expand description

Pack trait — the declarative composition unit for khive.

A pack declares vocabulary (note kinds, entity kinds), verbs, and edge endpoint rules. This is purely static metadata — no I/O, no async. Runtime dispatch lives in khive-runtime (PackRuntime trait + VerbRegistry).

This trait lives in khive-types (no_std, zero deps) so downstream crates can reference pack metadata without pulling in the full runtime.

Structs§

EdgeEndpointRule
A pack-declared endpoint rule for a specific edge relation.
HandlerDef
Handler metadata for discovery and documentation.
NoteKindSpec
Kind-level schema specification for a note kind.
NoteLifecycleSpec
Lifecycle specification for a note kind.
PackSchemaPlan
DDL statements the pack needs applied to the auxiliary schema.
ParamDef
Parameter type for help=true schema envelopes.

Enums§

EndpointKind
Match spec for one end of an EdgeEndpointRule.
VerbCategory
Illocutionary force classification for a verb handler.
VerbPresentationPolicy
Presentation override for a verb handler.
Visibility
Visibility tier for a handler.

Traits§

Pack
A composable module that contributes vocabulary, verbs, and edge endpoint rules to the khive runtime.

Type Aliases§

VerbDefDeprecated
Backward-compatible type alias. Existing code that names VerbDef still compiles; new code should use HandlerDef directly.