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>
58 lines
1.3 KiB
JSON
58 lines
1.3 KiB
JSON
{
|
|
"calls": [
|
|
{
|
|
"id": "call2",
|
|
"name": "show",
|
|
"status": "ok",
|
|
"query": "/home/frodo/recipe.md",
|
|
"path": "/home/frodo/recipe.md",
|
|
"show": {
|
|
"path": "/home/frodo/recipe.md",
|
|
"name": "recipe.md",
|
|
"kind": "markdown",
|
|
"language": "markdown",
|
|
"line": 3,
|
|
"node_id": "node1",
|
|
"version_id": "ver1",
|
|
"sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"size": 120,
|
|
"mime": "text/markdown"
|
|
},
|
|
"block": {
|
|
"kind": "tool",
|
|
"title": "/home/frodo/recipe.md",
|
|
"chips": [],
|
|
"added": 0,
|
|
"removed": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "call3",
|
|
"name": "show",
|
|
"status": "ok",
|
|
"path": "src/oven.py",
|
|
"show": {
|
|
"path": "src/oven.py",
|
|
"name": "oven.py",
|
|
"kind": "code",
|
|
"language": "python",
|
|
"line": null,
|
|
"node_id": "",
|
|
"version_id": "",
|
|
"sha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
"size": 64,
|
|
"mime": "text/x-python",
|
|
"source": "device",
|
|
"shown_id": "shown1"
|
|
},
|
|
"block": {
|
|
"kind": "tool",
|
|
"title": "",
|
|
"chips": [],
|
|
"added": 0,
|
|
"removed": 0
|
|
}
|
|
}
|
|
]
|
|
}
|