ci / check (push) Canceled after 0s
The harness spec for the editor round, written before the implementation.
Three capabilities, one prompt text, one tool's description; no new tool,
and nothing about permissions or the hardline changes.
acp.md, "An editor as the client" (capability editor; a client says
clientCapabilities._meta.lembas.editor: true):
- _lembas/complete: prefix and suffix in, the insertion out, through the
server's POST /v1/lembas/complete. No session, nothing read per request;
a newer request cancels the older, which is answered
{ text: "", cancelled: true }; _lembas/complete/cancel by the client's
own id in the params.
- _lembas/edit: a selection and an instruction in, the replacement out. One
model request with no tools (prompts/tasks/rewrite.md), streamed as
_lembas/edit/delta, _lembas/edit/cancel. Nothing is written.
- _meta.lembas.editor on session/prompt: the file in front, the cursor, the
selection, diagnostics and open files, said to the model as one <editor>
block after the person's text.
- ACP fs/read_text_file and fs/write_text_file, where the client offers
them: the file tools read its buffers and write through them; any failure
falls back to the disk; permissions are judged exactly as before.
- Edits as ACP diff items on session/request_permission and on a finished
edit's tool_call_update, for a client that said editor: true.
- _lembas/models and _lembas/editor/settings (GET/PUT /v1/lembas/editor).
acp.md, "Device files" (capability fs, on the link only): _lembas/fs/list,
stat, read, write, mkdir, move, copy, delete, search inside remote.roots.
Symlinks followed before a path is judged; never the CLI's own files or a
protected path; read-only where the device allows plan mode only; a write
checked against the hash the client last saw; a delete goes to the trash
or is refused until the client says permanent.
acp.md, _lembas/show (capability media): to a client that said media: true
the show tool hands over a file that is not text by a handle the client
fetches with _lembas/show/read while the request is open. The kind sent is
a hint from the name; the client decides from the bytes.
The HTTP API gains POST /v1/lembas/complete and GET/PUT /v1/lembas/editor.
loop.json: editor, files. Conformance: editor.json (39), device_files.json
(31), show.json (18) - skipped here until their runners exist.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
36 lines
1.5 KiB
JSON
36 lines
1.5 KiB
JSON
{
|
|
"name": "show",
|
|
"scope": "shared",
|
|
"sessions": "both",
|
|
"risk": "interact",
|
|
"exclusive": false,
|
|
"block": "tool",
|
|
"purpose": "purpose",
|
|
"requires": [
|
|
"display"
|
|
],
|
|
"unavailable": "Nothing can be shown now: this session has no screen to show a file on. Give the user the path instead.",
|
|
"aliases": {
|
|
"cli": [],
|
|
"llembas": []
|
|
},
|
|
"description": "Show the user a file, without them having to look for it. A text file opens in their viewer beside the conversation: Markdown rendered, code highlighted, plain text as it is, and HTML as a page in a sandboxed frame that cannot reach this app, the user's data or anything the instance does not allow. A picture, a sound, a video, a PDF or a 3D model is shown in the conversation itself, where the user's app can show one — whether or not you can read that kind of file yourself. Use it when the user should see the file itself — a page or a chart you made, a screenshot you took, a document you wrote — not for files you only read.\n\n- `path` may be absolute or relative to the working directory. The file must exist and be readable in this session: write it first.\n- `line` scrolls a text file to that line.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"description": "File to show"
|
|
},
|
|
"line": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"description": "Line to scroll to (text files)"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
}
|