Skip to main content

Crate agentstatedeveloper_cli

Crate agentstatedeveloper_cli 

Source
Expand description

agentstatedeveloper-cli — library surface.

The asd binary is a thin wrapper over this crate. asd-pro (commercial) imports this as a library and extends it: it reuses [run_oss_command] for OSS subcommands and provides its own handlers for the ratify / audit-verify commands that OSS stubs out.

Re-exports§

pub use config::Config;

Modules§

commands
config
Minimal solo-developer config. Resolves the ASD database path from (in priority order): CLI flag, ASD_DB env var, then a default: ./.asd-state.db if present, else (Plan Q t-002) a git-style walk-up for the nearest .asd-state.db, else the registry’s active repo (asd repo use), else ./.asd-state.db. Policy file from --policy <path> or ASD_POLICY env var (optional).

Structs§

Cli
AgentStateDeveloper — code-level context and audit overlay.

Enums§

Command

Functions§

config_from_cli
Resolve Config from the parsed CLI flags.
run
Dispatch the OSS command set. asd-pro can call this for any subcommand that does not require a commercial override.
run_with_config
Same as run but uses an already-resolved Config. asd-pro uses this after customizing the audit sink / ledger store.
set_audit_sink_override
set_ratify_ops_override