Skip to main content

Crate zeph_common

Crate zeph_common 

Source
Expand description

Shared utility functions and security primitives for Zeph crates.

This crate provides pure utility functions (text manipulation, network helpers, sanitization primitives), security primitives (Secret, VaultError), and strongly-typed identifiers (ToolName, SessionId) that are needed by multiple crates. It has no zeph-* dependencies. The optional treesitter feature adds tree-sitter query constants and helpers.

Re-exports§

pub use policy::PolicyLlmClient;
pub use policy::PolicyMessage;
pub use policy::PolicyRole;
pub use spawner::BlockingSpawner;
pub use trust_level::SkillTrustLevel;
pub use types::SessionId;
pub use types::ToolDefinition;
pub use types::ToolName;

Modules§

config
Shared runtime configuration structs used across multiple crates.
error_taxonomy
Shared error classification enums for tool invocation failures.
hash
Hash utilities: BLAKE3 hex digests and fast SipHash-based u64 hashing.
math
Mathematical utilities for vector operations.
net
Network utilities shared across crates.
patterns
Shared injection-detection patterns for the security sanitization layers.
policy
Policy LLM client trait and minimal message types.
quarantine
Quarantine-denied tool list shared between zeph-tools and zeph-skills.
sanitize
Shared sanitization primitives.
secret
spawner
Dependency-inversion trait for supervised blocking thread spawns.
text
String utility functions for Unicode-safe text manipulation.
trust_level
Trust tier enum for skill execution permissions.
types
Strongly-typed identifiers and shared tool types across zeph-* crates.

Constants§

OVERFLOW_NOTICE_PREFIX
Prefix embedded in tool output bodies when the full output was stored externally.