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_DBenv var, then a default:./.asd-state.dbif 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>orASD_POLICYenv var (optional).
Structs§
- Cli
- AgentStateDeveloper — code-level context and audit overlay.
Enums§
Functions§
- config_
from_ cli - Resolve
Configfrom the parsed CLI flags. - run
- Dispatch the OSS command set.
asd-procan call this for any subcommand that does not require a commercial override. - run_
with_ config - Same as
runbut uses an already-resolvedConfig.asd-prouses this after customizing the audit sink / ledger store. - set_
audit_ sink_ override - set_
ratify_ ops_ override