@applivity/plato 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/cli.js +433 -417
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ mid-run, and stops at a safe point. The same engine powers the
|
|
|
10
10
|
[Authenticate](#authenticate) · [Teams](#teams) · [Commands](#commands) ·
|
|
11
11
|
[Source](https://github.com/Applivity/plato)
|
|
12
12
|
|
|
13
|
+
**0.5.2** adds `--acp`: Plato speaks version 1 of the Agent Client Protocol, so
|
|
14
|
+
an editor can run it as an agent. See [Use Plato from an
|
|
15
|
+
editor](#use-plato-from-an-editor-agent-client-protocol).
|
|
16
|
+
|
|
13
17
|
**0.5.1** updates this README to the current release; no code changed.
|
|
14
18
|
|
|
15
19
|
**0.5.0** adds pause and steering to the terminal. Esc pauses a run at a safe
|
|
@@ -324,6 +328,31 @@ failure, refusal, or cancel, and `2` for a usage error.
|
|
|
324
328
|
Without a terminal, an approval is refused and the model is told why. The run
|
|
325
329
|
does not hang. `--mode auto` is the unattended mode.
|
|
326
330
|
|
|
331
|
+
### Use Plato from an editor (Agent Client Protocol)
|
|
332
|
+
|
|
333
|
+
```sh
|
|
334
|
+
plato --acp
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Plato speaks version 1 of the Agent Client Protocol over standard input and
|
|
338
|
+
output. An editor that supports the protocol can start Plato as an agent and
|
|
339
|
+
show the conversation in its own panel. Zed is one such editor.
|
|
340
|
+
|
|
341
|
+
To add Plato to Zed by hand, put this in Zed's settings file. The agent then
|
|
342
|
+
appears under Settings, AI, External Agents, and in the agent panel's new-thread
|
|
343
|
+
list.
|
|
344
|
+
|
|
345
|
+
```json
|
|
346
|
+
"agent_servers": {
|
|
347
|
+
"Plato": { "type": "custom", "command": "plato", "args": ["--acp"], "env": {} }
|
|
348
|
+
}
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
Plato uses a saved connection in this mode. If no connection is saved, the
|
|
352
|
+
editor offers a terminal sign-in, which runs `plato auth login`. One process
|
|
353
|
+
serves one conversation. Standard output carries protocol messages only; logs
|
|
354
|
+
and errors go to standard error.
|
|
355
|
+
|
|
327
356
|
### Other Plato sessions
|
|
328
357
|
|
|
329
358
|
Sessions running on this machine can see each other and exchange one message.
|