lonca-client
A client of the Lonca daemon socket, for harnesses and runners: what a program that starts agents on Lonca, or speaks to the daemon for them, depends on.
Only what a client needs: the protocol's request and response types and
its number (PROTOCOL), the socket client with the checks that make sure
the daemon is on the other end (trust), framing, timeouts and typed
errors (client), and the human session file (session). No store, no
policy evaluation, no daemon: a client is never a second writer.
use Path;
use Duration;
use ;
use json;
Every method, its credential and its shapes are in the daemon protocol; running agents on Lonca is in the runners guide.
Versions: a change of PROTOCOL is a major version of this crate (while
it is 0.x, a minor one). Fields added to a shape are not a change of the
number. Pin an exact version and read the
release notes
when you move. The version is the workspace's: every Lonca crate has the
same one.
- Repository: https://github.com/selcukgural/lonca
- Licence: Apache-2.0 (LICENSE)