@robota-sdk/agent-cli 3.0.0-beta.32 → 3.0.0-beta.33
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 +36 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -177,17 +177,17 @@ Configure in `.robota/settings.json` or `.robota/settings.local.json`:
|
|
|
177
177
|
|
|
178
178
|
## Slash Commands
|
|
179
179
|
|
|
180
|
-
| Command
|
|
181
|
-
|
|
|
182
|
-
| `/help`
|
|
183
|
-
| `/clear`
|
|
184
|
-
| `/mode [mode]`
|
|
185
|
-
| `/model [model]
|
|
186
|
-
| `/compact [instructions]` | Compress context window
|
|
187
|
-
| `/cost`
|
|
188
|
-
| `/context`
|
|
189
|
-
| `/permissions`
|
|
190
|
-
| `/exit`
|
|
180
|
+
| Command | Description |
|
|
181
|
+
| ------------------------- | ---------------------------------------- |
|
|
182
|
+
| `/help` | Show help |
|
|
183
|
+
| `/clear` | Clear conversation history |
|
|
184
|
+
| `/mode [mode]` | Show or change permission mode |
|
|
185
|
+
| `/model [model]` | Select AI model (confirmation + restart) |
|
|
186
|
+
| `/compact [instructions]` | Compress context window |
|
|
187
|
+
| `/cost` | Show session info |
|
|
188
|
+
| `/context` | Context window details |
|
|
189
|
+
| `/permissions` | Show permission rules |
|
|
190
|
+
| `/exit` | Exit CLI |
|
|
191
191
|
|
|
192
192
|
## Configuration
|
|
193
193
|
|
|
@@ -220,6 +220,31 @@ Settings are loaded from (highest priority first):
|
|
|
220
220
|
|
|
221
221
|
Copy `.env.example` to `.env` and set your key. The CLI reads `.env` automatically in dev mode.
|
|
222
222
|
|
|
223
|
+
## Paste Template
|
|
224
|
+
|
|
225
|
+
When pasting multiline text, the input area collapses it into a label: `[Pasted text #1 +42 lines]`. Multiple pastes are numbered sequentially. The full content is expanded on submit, keeping the input area compact while preserving the complete text for the AI.
|
|
226
|
+
|
|
227
|
+
## Edit Diff Display
|
|
228
|
+
|
|
229
|
+
After the Edit tool runs, a `DiffBlock` component renders the change with colored `+`/`-` line markers (green = added, red = removed), giving immediate visual feedback on file modifications.
|
|
230
|
+
|
|
231
|
+
## Plugin Commands Display
|
|
232
|
+
|
|
233
|
+
Plugin-provided commands appear in the slash command autocomplete with their source plugin name as a hint. Commands are also accessible via colon format: `/plugin-name:command`.
|
|
234
|
+
|
|
235
|
+
## Memory Management
|
|
236
|
+
|
|
237
|
+
The CLI applies two strategies to keep memory usage bounded during long sessions:
|
|
238
|
+
|
|
239
|
+
- **Message windowing** — Conversation history is capped at 100 messages. Older messages are pruned from the window.
|
|
240
|
+
- **Tool state cleanup** — Completed tool results older than 50 entries are cleaned up to reduce retained state.
|
|
241
|
+
|
|
242
|
+
React components use `React.memo` to avoid unnecessary re-renders.
|
|
243
|
+
|
|
244
|
+
### Forced Summary on maxRounds
|
|
245
|
+
|
|
246
|
+
When the tool execution loop exhausts its maximum rounds, the CLI injects a synthetic user message requesting a summary. This ensures the user always receives a meaningful response even if the agent could not complete all planned tool calls.
|
|
247
|
+
|
|
223
248
|
## Context Discovery
|
|
224
249
|
|
|
225
250
|
The CLI automatically discovers and loads:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.33",
|
|
4
4
|
"description": "AI coding assistant CLI built on Robota SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"marked-terminal": "^7.3.0",
|
|
36
36
|
"react": "19.2.4",
|
|
37
37
|
"string-width": "^8.2.0",
|
|
38
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
39
|
-
"@robota-sdk/agent-sdk": "3.0.0-beta.
|
|
38
|
+
"@robota-sdk/agent-core": "3.0.0-beta.33",
|
|
39
|
+
"@robota-sdk/agent-sdk": "3.0.0-beta.33"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/marked": "^6.0.0",
|