@applivity/plato 0.2.4 → 0.4.0

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.
Files changed (3) hide show
  1. package/README.md +97 -5
  2. package/dist/cli.js +515 -422
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -10,9 +10,19 @@ 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
- **Pre-release.** This is `0.2.4`. The core of the agent is the same code the
13
+ **Pre-release.** This is `0.3.0`. The core of the agent is the same code the
14
14
  extension has shipped, but the terminal host is new.
15
15
 
16
+ **0.3.0** brings long conversations to the terminal. `/compact` folds the older
17
+ messages into a summary, and so does the history when it reaches your compaction
18
+ threshold; `plato config set compactionIdle true` also summarises after an hour
19
+ with no activity. Later runs receive the summary and the recent tail, together
20
+ with the current content of the files the conversation worked on. A path outside
21
+ the project, for a read or a write, asks first: allow once, allow for this
22
+ session, or deny. Plato now starts knowing the operating system, the shell and
23
+ the project root, and a very large folder listing says when it stopped. An `@`
24
+ mention of an absolute or UNC path attaches an image or a text file.
25
+
16
26
  **0.2.4** tells Plato that a path, host or share it cannot find is not proof
17
27
  that it is absent: it checks the connections, mounts, known hosts, drives and
18
28
  shares the machine already has, and says what it checked.
@@ -59,13 +69,26 @@ One command, one key:
59
69
  plato auth login anthropic
60
70
  ```
61
71
 
72
+ Setup is one screen. Pick a provider — the arrows move, and typing filters the
73
+ list — paste the key, and pick a model from the list Plato fetches from the
74
+ provider. If the provider does not say how large its context window is, setup
75
+ asks for it.
76
+
77
+ The key is checked before anything is saved. A rejected key says so, and
78
+ nothing is written; Plato offers to replace or edit it. If the provider cannot
79
+ be reached, Plato shows the reason and lets you carry on anyway. When all is
80
+ well the screen says `✓ key accepted` and how many models the provider listed.
81
+ Esc at any point says "Setup cancelled; nothing changed."
82
+
62
83
  The key goes to the operating system's keychain when one is available. If it is
63
84
  not, Plato writes `~/.local/share/plato/auth.json` with mode 0600 and says so.
64
85
  The config file never holds a key.
65
86
 
66
- `plato auth login` alone asks for the provider. It offers `anthropic`, `openai`,
67
- `openrouter` and `litellm`, and accepts any other name — for a name it does not
68
- know it asks for the wire protocol and the base URL. The **connection** it saves
87
+ The list opens with the ten most used providers — Anthropic, OpenAI, DeepSeek,
88
+ OpenRouter, Groq, xAI, Mistral, Gemini, Ollama and LM Studio — then the
89
+ remaining presets, with `Custom endpoint` last. It is one list: the arrows move
90
+ through it and typing filters it. `Custom endpoint` asks for the wire protocol
91
+ and the base URL. The **connection** it saves
69
92
  is what tells Plato where to send requests; pressing Enter at the key prompt
70
93
  saves the connection and no key.
71
94
 
@@ -85,8 +108,12 @@ For a container or CI:
85
108
 
86
109
  ```sh
87
110
  echo "$ANTHROPIC_API_KEY" | plato auth login anthropic
111
+ plato auth login anthropic --key-stdin --model claude-sonnet-4-5
88
112
  ```
89
113
 
114
+ When the provider, the key and the model are given on the command line, setup
115
+ asks nothing.
116
+
90
117
  ## Run
91
118
 
92
119
  ```sh
@@ -101,7 +128,7 @@ In the interactive terminal:
101
128
  |---|---|
102
129
  | `Shift+Tab` | switch `plan`, `edit`, `auto` |
103
130
  | `Enter` | send |
104
- | `Esc` | interrupt the run |
131
+ | `Esc` | stop after the current step |
105
132
  | `Ctrl+C` twice | exit |
106
133
  | `↑` / `↓` | prompt history |
107
134
 
@@ -112,6 +139,27 @@ Type `/` to list them. Typing after the slash filters the list, `↑`/`↓` move
112
139
  `Tab` fills the command in, and `Enter` runs a command that takes no
113
140
  arguments. A long list scrolls; it never covers the conversation.
114
141
 
142
+ A command that takes a word lists its words: after `/mode `, `/model `,
143
+ `/team ` or `/gitignore `, each choice appears with one line on what it does.
144
+ `Tab` completes and `Enter` accepts only a word from the list.
145
+
146
+ ### The header and the status line
147
+
148
+ The top line names Plato, how it is running and the conversation. The
149
+ conversation's title is your first message, shortened once to fit and then
150
+ left alone, so it does not shift while a run works.
151
+
152
+ Below the conversation, one line says what is happening:
153
+
154
+ ```
155
+ mode: edit · team: solo · deepseek-chat · 16k/1M ░░░░░░░░ 2% · ↑5.6k ↓47 · 117 t/s · 12s
156
+ ```
157
+
158
+ The mode and the context share always stay. On a narrow terminal the team, the
159
+ duration, the rate, the token totals and then the model drop away, in that
160
+ order. A context window Plato had to assume is marked `~`, so a guess never
161
+ looks like a fact.
162
+
115
163
  ### Modes
116
164
 
117
165
  - `plan` reads and proposes; it cannot write, and it runs only commands that
@@ -127,6 +175,49 @@ When the mode blocks the task, the model can ask to switch. The request arrives
127
175
  as a card with its reason and what the other mode means. Nothing changes unless
128
176
  you agree, and the same run continues.
129
177
 
178
+ ### Long conversations
179
+
180
+ The conversation is kept as a transcript, and what the model reads is derived
181
+ from it. When the history reaches the `compactionThreshold` share of the
182
+ model's context window, the older messages are folded into a summary. `/compact`
183
+ does the same when you ask, and takes an instruction about what to keep:
184
+ `/compact keep the failing test names`. The notice names the cause and says that
185
+ nothing was removed from the transcript, because nothing is: a fold changes what
186
+ is sent, not what you can scroll.
187
+
188
+ Every later run sends the summary and the recent tail. After a summary exists,
189
+ Plato also receives the current content of up to five files the conversation
190
+ read or edited, and the current git state, so it does not reason from a stale
191
+ note. Before a fold there is no summary and no such block.
192
+
193
+ To summarise while the terminal is idle, turn the setting on:
194
+
195
+ ```sh
196
+ plato config set compactionIdle true
197
+ ```
198
+
199
+ After an hour with no activity and at least 200,000 estimated tokens of
200
+ history, Plato folds the older messages. Your next input cancels the wait. The
201
+ setting is off by default because it summarises below your threshold.
202
+
203
+ ### Files from anywhere
204
+
205
+ Type `@` before a path to attach it. A path inside the project works as before.
206
+ An absolute or UNC path also works, which is how you point at a screenshot on
207
+ the Desktop or a file on a share: an image is sent as bytes, and a text file is
208
+ sent as text. The limits are the same as the desktop chat — 3 MB for one image,
209
+ 200 KB for one text file — and a protected file is refused by name.
210
+
211
+ A read that a TOOL asks for, outside the project, asks you first: allow once,
212
+ allow this folder for this session, or deny. A denial is a result the model
213
+ reads, and the run continues. The folder answer lasts until this session ends
214
+ and is never written to your settings. Writes never ask; they stay inside the
215
+ project.
216
+
217
+ A terminal shows no image thumbnails, and an image pasted into a terminal does
218
+ not arrive as bytes. Plato does not pretend otherwise. A pasted PATH is text,
219
+ and works as an `@` mention.
220
+
130
221
  ### Teams
131
222
 
132
223
  Plato is always the one doing the work. The team decides who is watching.
@@ -206,6 +297,7 @@ Plan-mode session asks before it sends.
206
297
  |---|---|
207
298
  | `plato auth login\|status\|list\|logout` | Manage connections and keys |
208
299
  | `plato models [connection] [--refresh]` | List the models a connection offers |
300
+ | `plato model [name]` | Show the model in use, or switch to another |
209
301
  | `plato sessions list\|export\|delete` | Manage saved conversations |
210
302
  | `plato config [get\|set] [key] [value]` | Show or change a setting |
211
303
  | `plato doctor` | Check the config, keys, keychain, model limits, writes, and the last run |