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 overflow_tools;
35pub mod sanitizer;
36pub mod skill_loader;
37pub mod subagent;
38pub mod text;
39
40#[cfg(test)]
41pub mod testing;
42
43pub use agent::Agent;
44pub use agent::error::AgentError;
45pub use channel::{
46    Attachment, AttachmentKind, Channel, ChannelError, ChannelMessage, LoopbackChannel,
47    LoopbackEvent, LoopbackHandle, StopHint, ToolOutputData, ToolOutputEvent, ToolStartData,
48    ToolStartEvent,
49};
50pub use config::{Config, ConfigError};
51pub use hash::content_hash;
52pub use sanitizer::exfiltration::{
53    ExfiltrationEvent, ExfiltrationGuard, ExfiltrationGuardConfig, extract_flagged_urls,
54};
55pub use sanitizer::{
56    ContentIsolationConfig, ContentSanitizer, ContentSource, ContentSourceKind, InjectionFlag,
57    QuarantineConfig, SanitizedContent, TrustLevel,
58};
59pub use skill_loader::SkillLoaderExecutor;
60pub use zeph_tools::executor::DiffData;