Skip to main content

zeph_core/
lib.rs

1// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Agent loop, configuration loading, and context builder.
5
6pub mod agent;
7#[allow(clippy::missing_errors_doc, clippy::must_use_candidate)]
8pub mod bootstrap;
9pub mod channel;
10pub mod config;
11pub mod config_watcher;
12pub mod context;
13pub mod cost;
14pub mod daemon;
15pub mod debug_dump;
16pub mod instructions;
17pub mod metrics;
18pub mod pipeline;
19pub mod project;
20pub mod redact;
21pub mod vault;
22
23#[cfg(feature = "experiments")]
24pub mod experiments;
25
26#[cfg(feature = "lsp-context")]
27pub mod lsp_hooks;
28
29pub mod orchestration;
30
31pub mod hash;
32pub mod http;
33pub mod memory_tools;
34pub mod sanitizer;
35pub mod skill_loader;
36pub mod subagent;
37pub mod text;
38
39#[cfg(test)]
40pub mod testing;
41
42pub use agent::Agent;
43pub use agent::error::AgentError;
44pub use channel::{
45    Attachment, AttachmentKind, Channel, ChannelError, ChannelMessage, LoopbackChannel,
46    LoopbackEvent, LoopbackHandle, StopHint, ToolOutputEvent, ToolStartEvent,
47};
48pub use config::{Config, ConfigError};
49pub use hash::content_hash;
50pub use sanitizer::exfiltration::{
51    ExfiltrationEvent, ExfiltrationGuard, ExfiltrationGuardConfig, extract_flagged_urls,
52};
53pub use sanitizer::{
54    ContentIsolationConfig, ContentSanitizer, ContentSource, ContentSourceKind, InjectionFlag,
55    QuarantineConfig, SanitizedContent, TrustLevel,
56};
57pub use skill_loader::SkillLoaderExecutor;
58pub use zeph_tools::executor::DiffData;