2 Commits
Author SHA1 Message Date
HomerandClaude Fable 5.2 694e7f46d7 Contract at server dev 9ab0818: spec 3.7.0 from the server -- end, ms, always, the builds
CI / check (push) Canceled after 0s
- Pinned: 75 files, with the spec's display.json (DisplayTest runs its
  duration and end cases) and progress.json's budget stop.
- Not additive: a call's chips no longer carry "exit 0", and an edit's are
  one "+N -M" (the app draws chips only, so nothing is said twice);
  block.title follows the spec's key order.
- A message's `end {phase, reason, text}` is what a stopped or failed reply
  is drawn from, so a reloaded one says "Stopped: by you" too; the app
  writes the line in its own language from the phase and the reason.
- A call's time is block.duration (the server's), else made from `ms`;
  its state is block.state; a call without a title shows block.label.
- "Always allow" only when every item of the approval has `always`.
- The notifications build's updater takes its file from latest.json, else
  from GET /apps' `notifications {url, sha256}` of the same version.
- ApiClient.mentions and attachFrom with their models and fixtures; the
  composer does not use them yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 12:33:47 +00:00
HomerandClaude Opus 5.5 0c5aa4d45f Pin the server contract, tokens and strings to server dev a25db24; app API 2
The contract moves from f5b3dbb to the server's dev at a25db24971a0: version.json says
{"app_api": 2}, and the server now writes its own show cards (tool_show.json: one from the tree,
one from a device) and the files routes (files_listing.json, file_content.json,
file_content_withheld.json). Tokens from the same commit change only in the header; the strings
regenerate unchanged.

- APP_API is 2, and it is now the floor as well as the ceiling: a protocol-3 server that still
  says app API 1 is a 2.0 build from before the show route and the files, and is refused as too
  old, as 1.x is.
- The files routes are modelled (FileEntry, FileListing, FileContent, Withheld) and ApiClient
  reads them: files(path), fileContent(path), and webFile(path) for the web UI's /files/view.
- shownText is documented against the server's real route, GET /api/v2/chats/{chat}/show with
  ?node=&version= or ?shown=, plain text up to 1 MB, 413 / 415 / 404; ClientTest pins the paths.
- The hand-written show cards leave ShowAndServerTest; ContractTest reads the server's.

Nothing in the app reads /api/v2/devices for its own token (devices() has no caller), so apps no
longer being listed there changes nothing here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:48:03 +00:00