axiomme-cli-0.1.6 is not a library.
axiomme-cli
Command-line interface crate.
Responsibility
- Parse commands/options and map them to
axiomme-coreservice calls. - Provide explicit handoff to an external web viewer process.
- Keep CLI behavior deterministic/script-friendly.
- Provide filesystem/document parity commands for web workflows:
- filesystem:
mkdir,rm,mv,tree - document:
document load|preview|save - relations:
relation list|link|unlink - relation ownership invariant: every
relation link --uritarget must be inside--owner-urisubtree
- filesystem:
Runtime Policy
- Runtime preparation is intentionally selective:
initruns bootstrap only (filesystem/state/backend boot).- Retrieval-heavy commands run runtime prepare (
abstract,overview,find,search,trace replay,eval run,benchmark run|amortized,release pack). - Read-only/ops commands avoid full runtime prepare (
ls,glob,read,tree,queue status/replay/work/daemon/evidence,trace list/get/stats/...,benchmark list/trend/gate,session list/delete, etc.).
- Goal: avoid unnecessary global tier/index rebuild on commands that do not need retrieval runtime state.
Web viewer command:
axiomme web --host ... --port ...launches an external viewer binary.- Viewer/server implementation is expected in a separate project (external companion web project).
- Resolution order:
AXIOMME_WEB_VIEWER_BIN(if set)axiomme-webd
How To Run (Operator)
Benchmark notes:
benchmark rundefaults to--include-stress=trueand--trace-expectations=false.- Enable trace-derived labels explicitly when needed:
--trace-expectations. benchmark gatesupports optional stress floor:--min-stress-top1-accuracy <float>.release packforwards optional stress floor to benchmark gate:--benchmark-min-stress-top1-accuracy <float>.release packG0is executable contract integrity (contract probe test pass), not markdown/workflow existence checks.- Security audit modes:
security audit --mode offline|strict(offlinedefault)release pack --security-audit-mode offline|strict(strictdefault for release-grade checks)- Note:
G5passes only with--security-audit-mode strict. - Advisory DB path policy:
AXIOMME_ADVISORY_DBset: use that exact path.- else default:
<workspace>/.axiomme/advisory-db.
- Strict mode auto-recovers invalid non-git advisory DB directory and bootstraps fresh advisory data.
- Offline mode does not fetch; run strict once first to bootstrap advisory DB.
- Strict mode fetches fresh advisory data; environment must allow network access and advisory DB writes.
release packrunsG6in candidate mode by default (gate_profile=rc-candidate,write_release_check=false).- If you need strict release policy, run
benchmark gatewith release profile and release-check output:--gate-profile rc-release --write-release-check.
- If you need strict release policy, run
Add command target semantics:
add --targetis a destination root URI (directory semantics).- For file ingestion, the source filename is preserved under the target URI.
- Example:
add ./note.md --target axiom://resources/smoke=>axiom://resources/smoke/note.md.
Retrieval backend:
- Select backend explicitly with:
AXIOMME_RETRIEVAL_BACKEND=memory(default)sqliteis not supported and fails fast as configuration error
How To Extend (Developer)
- Add/modify command schema in
src/cli/mod.rsand related files undersrc/cli/. - Keep command handlers thin and delegate business logic to
axiomme-core. - Validate with:
cargo clippy -p axiomme-cli --all-targets -- -D warnings && cargo test -p axiomme-cli - Sanity-check command surfaces:
cargo run -p axiomme-cli -- --helpcargo run -p axiomme-cli -- benchmark gate --helpcargo run -p axiomme-cli -- release pack --help
Queue Command Migration Note
- Removed:
axiomme queue inspect- Use:
axiomme queue status
- Use:
- Removed:
axiomme wait(top-level alias)- Use:
axiomme queue wait [--timeout-secs N]
- Use: