1#![no_std]
8#![forbid(unsafe_code)]
9
10extern crate alloc;
11
12#[cfg(feature = "std")]
13extern crate std;
14
15pub mod agent;
16pub mod app;
17#[cfg(feature = "serde")]
18pub mod canonical_json;
19pub mod edge;
20pub mod edge_rules;
21pub mod email_address;
22pub mod entity;
23pub mod entity_alias;
24pub mod entity_type;
25#[cfg(feature = "std")]
26pub mod env;
27pub mod error;
28pub mod event;
29pub mod hash;
30pub mod header;
31pub mod id;
32#[cfg(feature = "serde")]
33pub mod json_type;
34pub mod khive_error;
35pub mod namespace;
36pub mod note;
37pub mod operation;
38pub mod pack;
39pub mod refusal;
40pub mod sql_like;
41pub mod substrate;
42#[cfg(feature = "serde")]
43pub mod tag_match;
44pub mod timestamp;
45pub mod vector;
46
47pub use agent::{AgentRecord, AgentState, TerminalReason};
48pub use app::{
49 AppManifest, AppVerb, InstallRefusal, LifecycleClass, OwnedNames, Residency, RightsClass,
50 RowSubstrate, RowTypeDecl,
51};
52#[cfg(feature = "serde")]
53pub use canonical_json::canonical_json_bytes;
54pub use edge::{EdgeCategory, EdgeRelation};
55pub use edge_rules::{
56 base_entity_endpoint_rules, base_entity_rule_allows, endpoint_matches,
57 BASE_ENTITY_ENDPOINT_RULES,
58};
59pub use entity::{validate_edge_weight, Entity, EntityKind, ImportKindPolicy, Link, PropertyValue};
60pub use entity_alias::{EntityAlias, EntityAliasOrigin};
61pub use entity_type::{
62 to_snake_case, EntityTypeDef, EntityTypeError, EntityTypeRegistry, ResolvedEntityType,
63};
64pub use error::{TypeError, UnknownVariant};
65pub use event::{
66 AggregateRef, ApplyResult, Event, EventBuilder, EventKind, EventOutcome, EventPayload,
67 EventSink, ProposalAppliedPayload, ProposalDecision, ProposalReviewedPayload,
68 ProposalWithdrawnPayload, RerankExecutedPayload, RerankerKind, ToolCheckDecidedPayload,
69 ToolRegistrationChangedPayload,
70};
71#[cfg(feature = "serde")]
72pub use event::{
73 EntityDraft, NoteDraft, ProposalChangeset, ProposalCreatedPayload, ProposalEdgeDraft,
74 ProposalEdgeKey, ProposalEntityPatch,
75};
76pub use hash::{fnv1a_64, Hash32};
77pub use header::Header;
78pub use id::{is_lowercase_hex, Id128, ParseIdError};
79#[cfg(feature = "serde")]
80pub use json_type::json_type_name;
81pub use khive_error::{Details, ErrorCode, ErrorDomain, ErrorKind, KhiveError, RetryHint};
82pub use namespace::Namespace;
83pub use note::{Note, NoteStatus};
84#[allow(deprecated)]
88pub use pack::VerbDef;
89pub use pack::{
90 EdgeEndpointRule, EndpointKind, HandlerDef, IdResolutionMode, NoteEmbeddingPolicy,
91 NoteEmbeddingPolicySpec, NoteKindSpec, NoteLifecycleSpec, NotePropertyPolicySpec, Pack,
92 PackColumnAddition, PackColumnAffinity, PackSchemaPlan, ParamDef, PropertyPolicy, VerbCategory,
93 VerbPresentationPolicy, Visibility, RESERVED_ENVELOPE_ARGS,
94};
95pub use refusal::RefusalReason;
96pub use sql_like::escape_like_literal;
97pub use substrate::{SubstrateKind, SUBSTRATE_COUNT};
98#[cfg(feature = "serde")]
99pub use tag_match::tag_contains;
100pub use timestamp::Timestamp;
101pub use vector::DistanceMetric;
102
103pub use operation::{OperationAttribution, RefResolution};