Expand description
Shared types, wire protocol, and utilities for the tau agent workspace.
This is the leaf crate that every other tau workspace crate depends on. Dependencies are kept minimal: serde, serde_json, thiserror, and futures (for async JSON-line I/O helpers used by the client and plugin crates).
Re-exports§
pub use usage_totals::UsageTotals;pub use types::*;
Modules§
- config_
chain - Three-tier config resolution: operator > project > global.
- model_
resolve - Model id / alias → concrete
Modelresolver. - paths
- Shared XDG path resolution for tau directories.
- plugin_
protocol - Plugin wire protocol types.
- plugin_
service - Plugin RPC services for the myelin-based plugin transport.
- project
- Project configuration, discovery, and initialization.
- protocol
- JSON-lines wire protocol over unix domain socket.
- subscription_
usage - Subscription usage types and OAuth token detection.
- tool_
prompt - Tool prompt contribution type.
- types
- usage_
totals - Cumulative usage tracking shared by the tau agent frontends.
Enums§
Functions§
- read_
json_ line - Read a single JSON line (sync). Returns
Ok(None)on EOF. - read_
json_ line_ async - Read a single JSON line (async). Returns
Ok(None)on EOF. - truncate_
str - Truncate
sto at mostmax_bytesbytes, rounding down to a char boundary. - truncate_
str_ end - Truncate
sto at mostmax_bytesbytes from the end, rounding up to a char boundary. - write_
json_ line - Serialize
valas a single JSON line and flush the writer (sync). - write_
json_ line_ async - Serialize
valas a single JSON line and flush the writer (async).