Files
LLeMbas-CLI/harness/connection.json
T
HomerandClaude Fable 5.2 99081c4ed4 The terminal is LLeMbas TERM: terminal contract 4, harness spec 3.15.0
LLEMBAS_TERM, LLEMBAS_TERM_PANE, LLEMBAS_TERM_EXECUTABLE, LLEMBAS_TERM_STATUS_DIR,
llembas-term-status=1, llembas-term-input=1, the llembas-term directory and the
llembas_term_status user var are the names. The ones from before the rename are
also read — a whole family at a time, the new one first — so the terminal's
releases before it work unchanged. One place decides: src/terminal/env.ts
(terminalNames, namesOf, isMagic). lembas --version --json: terminal_contract 4,
capability terminal_names_2. connection.json: product term.

The terminal's tests run in both spellings (scripts/test-terminal-names.sh, in
scripts/ci.sh).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 20:15:36 +00:00

78 lines
5.0 KiB
JSON

{
"about": "LLeMbas connection 1 (connection.md): the numbers, the names and the words every LLeMbas product uses when it connects to another. `products`: the id each product identifies itself with and the name a sentence calls it. `codes`: one machine code per condition and its English sentence — `{host}` the server's host (and port), `{product}` this product's name, `{version}` the other side's version, `{needed}` the version a client needs, `{mine}` this product's own version, `{other}` an address the server named, `{status}` an HTTP status; `stdio` is the sentence a client of `lembas serve --stdio` says instead, where the other side is LLeMbas CLI and not a server; `minimum` the sentence for a client below the server's `min_clients` (connection.md §5). `steps`: what one product adds after a code's sentence, the thing a person can do there. `heals`: true where the client tries again by itself.",
"contract": 1,
"identity": "llembas-{product}/{version}",
"products": {
"cli": "LLeMbas CLI",
"desktop": "LLeMbas Desktop",
"android": "LLeMbas for Android",
"nvim": "LLeMbas for Neovim",
"vscode": "LLeMbas for VS Code",
"term": "LLeMbas TERM",
"tty": "LLeMbas TTY",
"server": "LLeMbas"
},
"discovery": { "path": "/.well-known/lembas.json", "timeout_s": 15 },
"link": {
"path": "/api/devices/link",
"handshake_s": 30,
"ping_s": 30,
"silence_s": 60,
"close": { "protocol": 4400, "refused": [4401, 4403, 1008], "replaced": 4409 }
},
"streams": { "keepalive_s": 15, "silence_s": 45 },
"reconnect": { "first_s": 1, "ceiling_s": 60, "jitter": 0.2, "healthy_s": 30 },
"retry_after": { "ceiling_s": 300 },
"challenge": { "scheme": "Bearer", "realm": "lembas" },
"stdio": { "protocol": 3, "initialize_s": 10, "line_bytes": 67108864, "stderr_lines": 40, "kill_after_s": 5, "quiet_restart_s": 60 },
"codes": {
"linked": { "text": "Linked to {host}.", "heals": true },
"connecting": { "text": "Connecting to {host}.", "heals": true },
"unreachable": { "text": "Cannot reach {host}.", "heals": true },
"timeout": { "text": "{host} did not answer in time.", "heals": true },
"tls_untrusted": { "text": "The TLS certificate of {host} is not trusted.", "heals": true },
"not_lembas": { "text": "{host} answers, but is not a LLeMbas server.", "heals": true },
"server_error": { "text": "{host} answered {status}.", "heals": true },
"busy": { "text": "{host} is busy just now.", "heals": true },
"server_too_old": {
"text": "{host} runs LLeMbas {version}, which is too old for this {product}. Update the server.",
"stdio": "This {product} needs LLeMbas CLI {needed} or later, and found {version}. Update LLeMbas CLI.",
"heals": false
},
"client_too_old": {
"text": "{host} runs LLeMbas {version}, which is newer than this {product} can use. Update {product}.",
"stdio": "LLeMbas CLI {version} is newer than this {product} can use. Update {product}.",
"minimum": "{host} needs {product} {needed} or later, and this is {mine}. Update {product}.",
"heals": false
},
"signed_out": { "text": "{host} no longer accepts this sign-in — sign in again.", "heals": false },
"replaced": { "text": "A newer link of this device took its place on {host}, so this one stopped.", "heals": false },
"not_logged_in": { "text": "This computer is not logged in to a LLeMbas server.", "heals": false },
"not_allowed": { "text": "{host} did not allow this.", "heals": false },
"other_origin": { "text": "{host} names an address on another server ({other}) for this, and this {product} does not follow it. The server's own address is set wrong: whatever stands in front of it must pass on the host and scheme it was asked for.", "heals": false },
"disabled": { "text": "The link to a LLeMbas server is turned off here.", "heals": false },
"invalid_address": { "text": "That is not a server address. Give a host name, or an http or https address.", "heals": false },
"expired": { "text": "The code expired before it was approved. Start the sign-in again.", "heals": false },
"stopped": { "text": "Stopped.", "heals": false },
"failed": { "text": "That did not work.", "heals": false }
},
"steps": {
"tls_untrusted": {
"cli": "Pass --ca <file> with the CA that signed it.",
"desktop": "Install the CA that signed it on this computer.",
"android": "Install the CA that signed it on this phone."
},
"server_too_old": { "cli": "Or use LLeMbas CLI 1.x with it." },
"client_too_old": { "cli": "Run lembas update." },
"signed_out": { "cli": "Run lembas login." },
"replaced": { "cli": "If two machines share one sign-in, run lembas login on this one to give it its own." },
"not_logged_in": {
"cli": "Run lembas login <address>.",
"nvim": "Run lembas login <address> in a terminal.",
"vscode": "Run lembas login <address> in a terminal.",
"term": "Run lembas login <address>.",
"tty": "Run lembas login <address>."
}
}
}