Expand description
§K1 daemon CLI
kcode-k1-daemon-cli is the local process-command owner for the thin K1 runner. Its sole public API is run(PathBuf) -> ExitCode.
With no process arguments, run delegates directly to kcode_k1_daemon_lib::run, retaining the daemon’s single Vault prompt. The only administrative forms are set-secrets <name>, remove-secrets <name>, and list-secrets. Invalid shapes and non-UTF-8 commands or names fail before prompting or opening state.
Administrative commands are offline and local. Stop the normal daemon first because K1 has one trusted exclusive state owner. Each command prompts once for Unlock K1 vault: . Set additionally prompts, without echo, for Value for <name>: and Confirm secret value: . Empty or mismatched values are rejected. Passphrases and values are never accepted in arguments or environment variables and are never printed, logged, or sent to a subprocess or API.
Administrative state opens in order beneath <root>/state: transaction ordering, Peering, then Vault. Set performs one synchronous K1Vault::set; remove performs K1Vault::remove and distinguishes an absent name; list returns sorted names and never values. All failures use one fixed secret-free command error. An empty Vault has no encrypted item with which to verify a password, so its first Set establishes encrypted state; populated Vaults reject a wrong password.
This package adds no lock, PID file, process probe, socket, listener, network operation, retry, migration, recovery, rotation, hot update, online administration, aliases, flags, or password input through arguments or environment variables.
§Version 0.1.24
No-argument startup requires the normal Cargo-compatible Daemon Lib 0.14.7 line. It includes authenticated generic Codex text inference over an isolated tool-free temporary conversation and the process-lifetime ESE used by Chat UI title persistence, while preserving the completed Loom Rust/Web bootstrap and in-memory launch-node composition.
The dependency requirement is not an exact pin: 0.14.7 is Cargo’s conventional compatible range through the remainder of the 0.14 line. Publication and package selection remain separate from David-local cargo update, rebuild, restart, signed endpoint traffic, browser title generation, executable launch, and deployment.
Functions§
- run
- Runs either the normal K1 daemon or one exact offline secrets command.