Skip to main content

Crate kcode_k1_daemon_lib

Crate kcode_k1_daemon_lib 

Source
Expand description

§K1 daemon library

kcode-k1-daemon-lib is the library-only process composition root for the loopback K1 daemon. It preserves the startup contract, including one Vault prompt; Ordering, Peering, Web, Accounts, Groups, Access, Profiles, Persons, Launch Nodes, Kmap, Chat, Social, SetLaunchNode, RustCode, WebCode, Audio, classification, provider, replay, invite stock, HTTP, startup errors, ESE, listener, and readiness.

Startup now derives one tool-free generic text-inference profile from the daemon provider configuration and constructs CodexTextInference over the shared Codex app-server adapter. The resulting process-lifetime service is passed to HTTP composition and exposed only through authenticated POST /api/text-inference. It launches a fresh temporary provider conversation per request and does not alter Chat or Audio profiles.

Startup retains the concrete Web bootstrap importer before consuming Code Services. Loom bootstrap validates and imports both Rust and Web UI archives, returns the five shared launch-node IDs in memory, and completes before HTTP composition, invite-stock reconciliation, listener binding, and readiness. The concrete kcode-k1-daemon-http-composition owner assembles authenticated routes and passes those IDs to the existing Host-validated, no-store /config.json response. No launch-node manifest file is created.

The process-lifetime K1Ese remains at <k1_root>/state/ese with the existing Ordering, Peering, and Groups handles. Its four authenticated /external-subsystems routes remain merged beneath K1 HTTP. ESE canonical events remain in KTO, and its disposable derived projection uses append-only binary files with no SQLite or other database.

The package adds no migration, retry, rollback, deployment, host restart, browser/UI behavior, or live acceptance. Publishing this library does not adopt it on a host.

Functions§

run