@applivity/plato 0.5.0 → 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 +81 -9
- package/dist/cli.js +433 -417
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,8 +10,31 @@ 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
|
-
**
|
|
14
|
-
|
|
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
|
+
|
|
17
|
+
**0.5.1** updates this README to the current release; no code changed.
|
|
18
|
+
|
|
19
|
+
**0.5.0** adds pause and steering to the terminal. Esc pauses a run at a safe
|
|
20
|
+
point: a tool that is already running finishes, an approval card still opens,
|
|
21
|
+
and the text holds where you stopped it. Typing during a run steers it: Enter
|
|
22
|
+
sends the line, and the run receives it at its next safe point. `/continue`
|
|
23
|
+
resumes a paused run; `/continue <text>` sends the text and then resumes. Enter
|
|
24
|
+
alone never resumes. `/queue <text>` keeps a line for the next run instead.
|
|
25
|
+
Alt+Enter starts a new line in the composer. During a run only `/help`,
|
|
26
|
+
`/queue`, `/sessions`, `/compact` and `/continue` (while paused) act; every
|
|
27
|
+
other command is refused with one line, "Finish or stop the run first.", and
|
|
28
|
+
stays in the composer, so you can send it after the run. Two Esc presses within
|
|
29
|
+
about 1.5 s stop a paused run; a later press does nothing. Ctrl+C stops in one
|
|
30
|
+
press. A paused run does not survive Plato exiting.
|
|
31
|
+
|
|
32
|
+
**0.4.0** makes setup one screen, with the key checked before anything is saved,
|
|
33
|
+
and reads the context window the provider publishes, so a 1M model no longer
|
|
34
|
+
shows as 131k. A command's arguments come from one table, and the status line
|
|
35
|
+
is denser. It also adds `/resume`, the full tool row behind Ctrl+O, `@`
|
|
36
|
+
completion, the cold-start line, prompt history with Ctrl+R, and Ctrl+G to
|
|
37
|
+
bring a line back from an editor.
|
|
15
38
|
|
|
16
39
|
**0.3.0** brings long conversations to the terminal. `/compact` folds the older
|
|
17
40
|
messages into a summary, and so does the history when it reaches your compaction
|
|
@@ -127,13 +150,16 @@ In the interactive terminal:
|
|
|
127
150
|
| Key | Action |
|
|
128
151
|
|---|---|
|
|
129
152
|
| `Shift+Tab` | switch `plan`, `edit`, `auto` |
|
|
130
|
-
| `Enter` | send |
|
|
131
|
-
| `
|
|
132
|
-
| `
|
|
153
|
+
| `Enter` | send; during a run, steer it |
|
|
154
|
+
| `Alt+Enter` | start a new line in the composer |
|
|
155
|
+
| `Esc` | pause the run |
|
|
156
|
+
| `Esc` `Esc` | stop a paused run |
|
|
157
|
+
| `Ctrl+C` | stop the run; at the prompt, press twice to exit |
|
|
133
158
|
| `↑` / `↓` | prompt history |
|
|
134
159
|
|
|
135
|
-
Slash commands: `/mode`, `/model`, `/team`, `/gitignore`, `/compact`,
|
|
136
|
-
`/new`, `/sessions`, `/help`,
|
|
160
|
+
Slash commands: `/mode`, `/model`, `/team`, `/gitignore`, `/compact`,
|
|
161
|
+
`/continue`, `/queue`, `/resume`, `/undo`, `/new`, `/sessions`, `/help`,
|
|
162
|
+
`/exit`.
|
|
137
163
|
|
|
138
164
|
Type `/` to list them. Typing after the slash filters the list, `↑`/`↓` move,
|
|
139
165
|
`Tab` fills the command in, and `Enter` runs a command that takes no
|
|
@@ -143,6 +169,26 @@ A command that takes a word lists its words: after `/mode `, `/model `,
|
|
|
143
169
|
`/team ` or `/gitignore `, each choice appears with one line on what it does.
|
|
144
170
|
`Tab` completes and `Enter` accepts only a word from the list.
|
|
145
171
|
|
|
172
|
+
### While a run is live
|
|
173
|
+
|
|
174
|
+
A line typed during a run steers it: Enter sends the line, and the run receives
|
|
175
|
+
it at its next safe point. No second run starts. `/queue <text>` keeps the line
|
|
176
|
+
for the next run instead; a queued line survives a stop.
|
|
177
|
+
|
|
178
|
+
Esc pauses. A tool that is already running finishes, an approval card still
|
|
179
|
+
opens, and the text holds where you stopped it. At the prompt, `/continue`
|
|
180
|
+
resumes, and `/continue <text>` sends the text and then resumes. Enter alone
|
|
181
|
+
never resumes. Two Esc presses within about 1.5 s stop a paused run; a later
|
|
182
|
+
press does nothing. Ctrl+C stops in one press. An approval card takes Esc first:
|
|
183
|
+
there it denies the action and stops the run.
|
|
184
|
+
|
|
185
|
+
While a run is live, only `/help`, `/queue`, `/sessions`, `/compact` and
|
|
186
|
+
`/continue` (when a pause is in effect) act. Any other command is refused with
|
|
187
|
+
one line — "Finish or stop the run first." — and stays in the composer, so you
|
|
188
|
+
can send it after the run. It is not queued.
|
|
189
|
+
|
|
190
|
+
A paused run does not survive Plato exiting.
|
|
191
|
+
|
|
146
192
|
### The header and the status line
|
|
147
193
|
|
|
148
194
|
The top line names Plato, how it is running and the conversation. The
|
|
@@ -282,6 +328,31 @@ failure, refusal, or cancel, and `2` for a usage error.
|
|
|
282
328
|
Without a terminal, an approval is refused and the model is told why. The run
|
|
283
329
|
does not hang. `--mode auto` is the unattended mode.
|
|
284
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
|
+
|
|
285
356
|
### Other Plato sessions
|
|
286
357
|
|
|
287
358
|
Sessions running on this machine can see each other and exchange one message.
|
|
@@ -297,7 +368,7 @@ Plan-mode session asks before it sends.
|
|
|
297
368
|
|---|---|
|
|
298
369
|
| `plato auth login\|status\|list\|logout` | Manage connections and keys |
|
|
299
370
|
| `plato models [connection] [--refresh]` | List the models a connection offers |
|
|
300
|
-
| `plato model [
|
|
371
|
+
| `plato model [connection:model]` | Show the model in use, or switch to another |
|
|
301
372
|
| `plato sessions list\|export\|delete` | Manage saved conversations |
|
|
302
373
|
| `plato config [get\|set] [key] [value]` | Show or change a setting |
|
|
303
374
|
| `plato doctor` | Check the config, keys, keychain, model limits, writes, and the last run |
|
|
@@ -318,7 +389,8 @@ Plan-mode session asks before it sends.
|
|
|
318
389
|
| `~/.plato/DUO.yaml`, `ACADEMY.yaml` | Teams |
|
|
319
390
|
|
|
320
391
|
`PLATO_CONFIG_DIR`, `PLATO_DATA_DIR`, and `PLATO_HOME` override the first three
|
|
321
|
-
roots.
|
|
392
|
+
roots. On Windows, the config and data roots above are `%APPDATA%\Plato` and
|
|
393
|
+
`%LOCALAPPDATA%\Plato`.
|
|
322
394
|
|
|
323
395
|
## Privacy and safety
|
|
324
396
|
|