@dreb/coding-agent 2.63.0 → 2.64.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.
- package/README.md +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +4 -9
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/settings-manager.d.ts +4 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +12 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +10 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +4 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts +2 -2
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +6 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +3 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/compaction.md +16 -0
- package/docs/dashboard.md +1 -1
- package/docs/rpc.md +14 -2
- package/docs/settings.md +5 -0
- package/package.json +1 -1
package/docs/rpc.md
CHANGED
|
@@ -1325,7 +1325,7 @@ Note: with `summarize: true` the command is LLM-bound and can take a while. `Rpc
|
|
|
1325
1325
|
|
|
1326
1326
|
Persistent settings, backed by the settings file (see [settings.md](settings.md)). They are normally distinct from live session state, with global-only control/security-policy exceptions:
|
|
1327
1327
|
|
|
1328
|
-
- **Persistent defaults** (`get_settings` / `set_settings`): provider/model, thinking level, queue modes, compaction/retry/image/skill/thinking-display/transport toggles, `maxConcurrentSubagents`, `enabledModels`, `tabTitle`, and per-agent model fallback lists seed fresh runtimes. Writing these ordinary defaults does **not** change a running session.
|
|
1328
|
+
- **Persistent defaults** (`get_settings` / `set_settings`): provider/model, thinking level, queue modes, compaction/retry/image/skill/thinking-display/transport toggles, automatic-compaction continuation, `maxConcurrentSubagents`, `enabledModels`, `tabTitle`, and per-agent model fallback lists seed fresh runtimes. Writing these ordinary defaults does **not** change a running session.
|
|
1329
1329
|
- **Global nested-context trust policy** (`autoLoadNestedContext`, `trustedContextFolders`, `effectiveTrustedContextRoots`, and the trust commands below): this is read from `~/.dreb/agent/settings.json` only, never project settings. Active main/subagent processes observe it for **future lazy nested/out-of-cwd loads**; it cannot remove content already injected into a conversation. It does not govern the separate initial upward context scan from the launch cwd.
|
|
1330
1330
|
- **Global Dispatch Arbiter policy** (`subagentArbiter`): the complete object is read/written globally and project settings cannot shadow it. Enabled runtimes consume it before future subagent spawns; it does not rewrite already-started children.
|
|
1331
1331
|
- **Runtime state** (`get_state` / `set_model` / `set_thinking_level` / `set_steering_mode` / `set_follow_up_mode` / `set_auto_compaction` / `set_auto_retry`): the state of the live session. Note that the runtime setters also persist their values as new defaults as a side effect.
|
|
@@ -1353,6 +1353,7 @@ Response:
|
|
|
1353
1353
|
"steeringMode": "one-at-a-time",
|
|
1354
1354
|
"followUpMode": "one-at-a-time",
|
|
1355
1355
|
"compactionEnabled": true,
|
|
1356
|
+
"continueAfterAutoCompaction": false,
|
|
1356
1357
|
"retryEnabled": true,
|
|
1357
1358
|
"maxConcurrentSubagents": 4,
|
|
1358
1359
|
"imageAutoResize": true,
|
|
@@ -1400,6 +1401,8 @@ Response:
|
|
|
1400
1401
|
|
|
1401
1402
|
`tabTitle` is the effective merged object and is absent when unconfigured. Its optional `model` is one exact `provider/model`; when absent, title generation preserves the Explore-agent resolution route documented in [settings.md](settings.md#tab-title).
|
|
1402
1403
|
|
|
1404
|
+
`continueAfterAutoCompaction` defaults to `false`. When true, every successful automatic threshold or overflow compaction starts another model turn even without queued messages. It does not make failed, cancelled, or manual compaction continue.
|
|
1405
|
+
|
|
1403
1406
|
#### set_settings
|
|
1404
1407
|
|
|
1405
1408
|
Update persistent default settings. Takes a partial payload — only the supplied keys change. The whole payload is validated before anything is applied: on any invalid field, nothing changes and the response is an explicit error. Writes target the global settings file (same scope as every runtime setter).
|
|
@@ -1408,6 +1411,12 @@ Update persistent default settings. Takes a partial payload — only the supplie
|
|
|
1408
1411
|
{"type": "set_settings", "settings": {"defaultThinkingLevel": "low", "retryEnabled": false}}
|
|
1409
1412
|
```
|
|
1410
1413
|
|
|
1414
|
+
Enable uninterrupted automatic-compaction continuation for unattended work. This can keep producing model turns and cost indefinitely; it never changes manual `compact` behavior:
|
|
1415
|
+
|
|
1416
|
+
```json
|
|
1417
|
+
{"type": "set_settings", "settings": {"continueAfterAutoCompaction": true}}
|
|
1418
|
+
```
|
|
1419
|
+
|
|
1411
1420
|
Set the maximum concurrency for newly started parent sessions. Zero removes the `subagent` tool and adds explicit parent-model guidance; positive values limit running children without changing the separate eight-item parallel-call input bound:
|
|
1412
1421
|
|
|
1413
1422
|
```json
|
|
@@ -1488,6 +1497,7 @@ Response is the full settings snapshot after the write (same shape as `get_setti
|
|
|
1488
1497
|
"steeringMode": "one-at-a-time",
|
|
1489
1498
|
"followUpMode": "one-at-a-time",
|
|
1490
1499
|
"compactionEnabled": true,
|
|
1500
|
+
"continueAfterAutoCompaction": false,
|
|
1491
1501
|
"retryEnabled": false,
|
|
1492
1502
|
"maxConcurrentSubagents": 1,
|
|
1493
1503
|
"imageAutoResize": true,
|
|
@@ -1514,6 +1524,7 @@ Project-shadow warning example (the global write still lands, but the returned m
|
|
|
1514
1524
|
"steeringMode": "one-at-a-time",
|
|
1515
1525
|
"followUpMode": "one-at-a-time",
|
|
1516
1526
|
"compactionEnabled": true,
|
|
1527
|
+
"continueAfterAutoCompaction": false,
|
|
1517
1528
|
"retryEnabled": true,
|
|
1518
1529
|
"maxConcurrentSubagents": 4,
|
|
1519
1530
|
"imageAutoResize": true,
|
|
@@ -1543,6 +1554,7 @@ Valid keys and values:
|
|
|
1543
1554
|
| `steeringMode` | `"all"`, `"one-at-a-time"` |
|
|
1544
1555
|
| `followUpMode` | `"all"`, `"one-at-a-time"` |
|
|
1545
1556
|
| `compactionEnabled` | boolean |
|
|
1557
|
+
| `continueAfterAutoCompaction` | boolean; default `false`. Starts another model turn after every successful automatic compaction and never affects manual compaction. |
|
|
1546
1558
|
| `retryEnabled` | boolean |
|
|
1547
1559
|
| `maxConcurrentSubagents` | Non-negative safe integer; default `4`. Captured by new parent sessions; `0` removes the subagent tool and adds explicit self-execution guidance. |
|
|
1548
1560
|
| `imageAutoResize` | boolean |
|
|
@@ -1928,7 +1940,7 @@ The `reason` field is `"threshold"` (context getting large) or `"overflow"` (con
|
|
|
1928
1940
|
}
|
|
1929
1941
|
```
|
|
1930
1942
|
|
|
1931
|
-
If `reason` was `"overflow"` and compaction succeeds, `willRetry` is `true` and the agent will automatically retry the prompt.
|
|
1943
|
+
If `reason` was `"overflow"` and compaction succeeds, `willRetry` is `true` and the agent will automatically retry the prompt. Independently, persistent `continueAfterAutoCompaction: true` starts another model turn after any successful automatic compaction, including a threshold compaction with `willRetry: false` and no queued message. Manual `compact` is outside this event path and does not continue because of that setting.
|
|
1932
1944
|
|
|
1933
1945
|
If compaction was aborted, `result` is `null` and `aborted` is `true`.
|
|
1934
1946
|
|
package/docs/settings.md
CHANGED
|
@@ -215,6 +215,7 @@ For either permitted lazy-load path, each context file is realpath-deduplicated
|
|
|
215
215
|
| Setting | Type | Default | Description |
|
|
216
216
|
|---------|------|---------|-------------|
|
|
217
217
|
| `compaction.enabled` | boolean | `true` | Enable auto-compaction |
|
|
218
|
+
| `compaction.continueAfterAutoCompaction` | boolean | `false` | Start another model turn after every successful automatic compaction; manual `/compact` never continues because of this setting |
|
|
218
219
|
| `compaction.reserveTokens` | number | `16384` | Tokens reserved for LLM response |
|
|
219
220
|
| `compaction.keepRecentTokens` | number | `20000` | Recent tokens to keep (not summarized) |
|
|
220
221
|
|
|
@@ -222,12 +223,15 @@ For either permitted lazy-load path, each context file is realpath-deduplicated
|
|
|
222
223
|
{
|
|
223
224
|
"compaction": {
|
|
224
225
|
"enabled": true,
|
|
226
|
+
"continueAfterAutoCompaction": false,
|
|
225
227
|
"reserveTokens": 16384,
|
|
226
228
|
"keepRecentTokens": 20000
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
231
|
```
|
|
230
232
|
|
|
233
|
+
The continuation option is intended for unattended long-running work and can produce model turns and cost without further user input. It applies only after successful automatic threshold or overflow compaction. Failed or cancelled automatic compaction and manual `/compact` do not continue because of it. The option is available in terminal `/settings` and dashboard Settings.
|
|
234
|
+
|
|
231
235
|
### Branch Summary
|
|
232
236
|
|
|
233
237
|
| Setting | Type | Default | Description |
|
|
@@ -464,6 +468,7 @@ See [packages.md](packages.md) for package management details.
|
|
|
464
468
|
"theme": "dark",
|
|
465
469
|
"compaction": {
|
|
466
470
|
"enabled": true,
|
|
471
|
+
"continueAfterAutoCompaction": false,
|
|
467
472
|
"reserveTokens": 16384,
|
|
468
473
|
"keepRecentTokens": 20000
|
|
469
474
|
},
|