@applivity/plato 0.3.0 → 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 +43 -4
  2. package/dist/cli.js +473 -423
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -69,13 +69,26 @@ One command, one key:
69
69
  plato auth login anthropic
70
70
  ```
71
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
+
72
83
  The key goes to the operating system's keychain when one is available. If it is
73
84
  not, Plato writes `~/.local/share/plato/auth.json` with mode 0600 and says so.
74
85
  The config file never holds a key.
75
86
 
76
- `plato auth login` alone asks for the provider. It offers `anthropic`, `openai`,
77
- `openrouter` and `litellm`, and accepts any other name — for a name it does not
78
- 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
79
92
  is what tells Plato where to send requests; pressing Enter at the key prompt
80
93
  saves the connection and no key.
81
94
 
@@ -95,8 +108,12 @@ For a container or CI:
95
108
 
96
109
  ```sh
97
110
  echo "$ANTHROPIC_API_KEY" | plato auth login anthropic
111
+ plato auth login anthropic --key-stdin --model claude-sonnet-4-5
98
112
  ```
99
113
 
114
+ When the provider, the key and the model are given on the command line, setup
115
+ asks nothing.
116
+
100
117
  ## Run
101
118
 
102
119
  ```sh
@@ -111,7 +128,7 @@ In the interactive terminal:
111
128
  |---|---|
112
129
  | `Shift+Tab` | switch `plan`, `edit`, `auto` |
113
130
  | `Enter` | send |
114
- | `Esc` | interrupt the run |
131
+ | `Esc` | stop after the current step |
115
132
  | `Ctrl+C` twice | exit |
116
133
  | `↑` / `↓` | prompt history |
117
134
 
@@ -122,6 +139,27 @@ Type `/` to list them. Typing after the slash filters the list, `↑`/`↓` move
122
139
  `Tab` fills the command in, and `Enter` runs a command that takes no
123
140
  arguments. A long list scrolls; it never covers the conversation.
124
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
+
125
163
  ### Modes
126
164
 
127
165
  - `plan` reads and proposes; it cannot write, and it runs only commands that
@@ -259,6 +297,7 @@ Plan-mode session asks before it sends.
259
297
  |---|---|
260
298
  | `plato auth login\|status\|list\|logout` | Manage connections and keys |
261
299
  | `plato models [connection] [--refresh]` | List the models a connection offers |
300
+ | `plato model [name]` | Show the model in use, or switch to another |
262
301
  | `plato sessions list\|export\|delete` | Manage saved conversations |
263
302
  | `plato config [get\|set] [key] [value]` | Show or change a setting |
264
303
  | `plato doctor` | Check the config, keys, keychain, model limits, writes, and the last run |