Skip to main content

Crate agent_doc_core

Crate agent_doc_core 

Source
Expand description

agent-doc-core — document data layer for agent-doc.

See tasks/agent-doc/plan-agent-doc-core-extraction.md for the wave plan. Currently extracted: Wave 1 (id, crdt, component, model_tier, pending), Wave 2 (frontmatter, project_config), Wave 3 (template), Wave 4 (diff pure half per #rtx6 Option 1 — ComputeResult, compute, compute_with_current, wait_for_stable_content, run stay in the main crate’s diff_io.rs because they call snapshot::{load,save,resolve, path_for}). Some functions in frontmatter, project_config, and template take &Path and touch the filesystem — they live here for the convenience of a single move and may be split into orchestration wrappers in a follow-up tidy.

Re-exports§

pub use component::Component;
pub use crdt::CrdtDoc;
pub use diff::DiffClassification;
pub use diff::DiffType;
pub use diff::OrchestrationRequest;
pub use diff::OrchestrationRequestMode;
pub use diff::ParsedSlashCommands;
pub use diff::PromptBearingChange;
pub use diff::PromptBearingChangeKind;
pub use id::BOUNDARY_ID_LEN;
pub use id::format_boundary_marker;
pub use id::new_boundary_id;
pub use id::new_boundary_id_with_summary;
pub use template::ComponentInfo;
pub use template::PatchBlock;
pub use template::TemplateInfo;

Modules§

cell_doc
Per-cell document projection (#qcellmerge1 groundwork).
component
Module: component
crdt
Module: crdt
crdt_sync
State-vector sync protocol primitive (#crdtauth1sv).
diff
Module: diff
ffi
C-ABI exports for FFI consumers (editor plugins, Python bindings).
frontmatter
Module: frontmatter
gate_verify
Module: gate_verify
heuristics
Recommendation-detection heuristics for pending-capture enforcement.
id
Boundary ID helpers — used across all write paths.
ipc_corruption
Module: ipc_corruption
log_time
Module: log_time
model_tier
Module: model_tier
op_log
Module: op_log
pending
Module: pending
project_config
Module: project_config
queue_item_lifecycle
Pure queue-item lifecycle lattice shared by CRDT convergence (agent-doc-core) and the orchestration-layer queue state machine (agent_doc_orchestration::queue_item_state_machine, #queuestatemachine1).
replay_guard
Module: replay_guard
syntax
template
Module: template
topic
Module: topic
turn_scope
Module: turn_scope