Expand description
Wire protocol: one JSON object per line over a Unix socket
(docs/protocol.md). The parameters of repo.prepare_init are the
daemon’s (lonca_daemon::protocol::PrepareInit): they name a policy
profile, and this crate knows no policy.
Structs§
- Attenuate
- Blobs
Query blobs: the contents of some files of one commit, one page. The client sizes a page fromtree’s sizes to stay under the line cap.- Change
Diff change.diff: the unified diff of a change, computed by the daemon in the store, with redaction applied and a size cap.- Change
Ref - Change
Resolve change.resolve: the whole id of the one change whose id starts withprefix(at least 4 letters).- Error
Body - Events
- Facts
Preview - File
Change - One file in a proposed change, relative to the base commit.
- Harness
Setup harness.setup: which harness’s setup to read from the policy.- Hook
Bind - Hook
Event - A harness hook event, reduced to what Lonca uses.
hook.inputmakes one from what a harness sent; tool names stay the harness’s own. - Hook
Input - What a hook received from its harness, untouched: the daemon reads it with the harness’s profile from the policy.
- Hook
Stop hook.stop: the agent is about to finish its turn, with these changes.- Hook
Verdict - Human
Login human.login: opens a human session. The signature is over alonca_core::ops::LoginIntent;repoon the request names the repository whose enrolment verifies it, or is left out to try every repository the daemon serves.- Human
Submit - Lease
Acquire - Lease
Interest - Local
File - One file a workspace differs in from its base, as it would be in a tree.
- LogQuery
- Logged
- The outcome of a logged operation.
- McpCall
mcp.call:lonca mcpis about to run one of its tools, by the name it has intools/list.- Negotiate
- Prepare
Change - Prepare
Isolate human.prepare_isolate.- Prepare
Policy - Prepare
Remote - Propose
Change - Request
- Response
- Restore
repo.restore: a new repository from a backup bundle, a bare store or a remote Lonca pushed to.- Security
Events security.events: what the security log holds sincesince_ms(default: the last day).- Session
End session.end: what the workspace held, when the client knows.- SetRef
- Tree
File - Tree
Query - Trunk
Bundle trunk.bundle: a Git bundle of trunk for a checkout, thin against the commits the checkout already has.- Trunk
Distance trunk.distance: how far a commit that once was trunk is behind.
Constants§
- MAX_
LINE - Largest accepted request line (base64 file contents included).
Functions§
- read_
line_ limited - Reads one line of at most
maxbytes.Ok(None)at end of stream. - write_
line