Skip to main content

Crate codewhale_core

Crate codewhale_core 

Source

Re-exports§

pub use context_reference::ContextReference;
pub use context_reference::ContextReferenceKind;
pub use context_reference::ContextReferenceSource;
pub use context_reference::MediaAttachmentReference;
pub use context_reference::media_attachment_references;

Modules§

context_reference
Durable context reference records and media attachment parsing.
fragments
Bounded context-fragment system with hard caps (issue #5264).
ids
ThreadId / SessionId for the crates/core boundary (issue #5261).
journal
Session tree journal placeholder (issue #5262).
prefix_cache
Prefix-cache stability manager (inspired by Reasonix’s Pillar 1).
request
Compatibility path for the shared protocol request types.
role
Compatibility path for the shared protocol role types.
secret_eq
The one constant-time comparison for bearer tokens, nonces and proofs.
session
Thread / Session split (issue #5261).
tool_parser
Legacy parser for text-based tool calls from DeepSeek models.

Structs§

JobHistoryEntry
A single entry in a job’s history log.
JobManager
Manages background jobs with retry logic and persistence.
JobRecord
A complete job record with all metadata and history.
JobRetryMetadata
Retry state for a job that failed and may be retried.
Runtime
Compatibility configuration, hooks and job bookkeeping.

Enums§

JobStatus
Status of a background job.

Functions§

job_record_to_agent_run
Map a durable JobRecord to the dependency-neutral run read model.
persisted_overlap
How many leading entries of offered repeat the end of persisted: the longest suffix of persisted that is also a prefix of offered. Longest persisted suffix repeated by an offered history prefix. Linear work preserves genuine repeated messages without an unbounded nested scan.