@aragon-agent/cli 0.6.64 → 0.6.66
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/CHANGELOG.md +61 -0
- package/README.md +54 -1
- package/dist/agent/controller.d.ts +53 -0
- package/dist/agent/controller.js +94 -1
- package/dist/agent/headless.js +24 -3
- package/dist/agent/reconnect-memory.d.ts +68 -0
- package/dist/agent/reconnect-memory.js +82 -0
- package/dist/app/App.js +85 -1
- package/dist/commands/builtins.js +8 -72
- package/dist/commands/catalog.js +1 -1
- package/dist/commands/retry-command.d.ts +52 -0
- package/dist/commands/retry-command.js +225 -0
- package/dist/config/cli-commands.d.ts +1 -1
- package/dist/config/cli-commands.js +28 -0
- package/dist/exec/events.d.ts +12 -0
- package/dist/exec/runner.js +6 -0
- package/dist/gene/cli-commands.js +30 -1
- package/dist/gene/command-report.js +5 -1
- package/dist/gene/curator/budget.d.ts +24 -1
- package/dist/gene/curator/budget.js +67 -14
- package/dist/gene/curator/curator.d.ts +10 -0
- package/dist/gene/curator/curator.js +35 -5
- package/dist/gene/curator/task-context.d.ts +8 -0
- package/dist/gene/curator/task-context.js +10 -0
- package/dist/gene/curator/task-runner.js +16 -5
- package/dist/gene/hub.js +5 -0
- package/dist/gene/import-plan.js +8 -5
- package/dist/gene/learn/learner.js +7 -3
- package/dist/gene/queue.d.ts +8 -0
- package/dist/gene/queue.js +38 -2
- package/dist/host/controller-factory.js +6 -0
- package/dist/logging/install.d.ts +3 -0
- package/dist/logging/install.js +8 -0
- package/dist/session/persist.js +8 -1
- package/dist/session/validate-session.js +15 -5
- package/package.json +3 -3
|
@@ -205,6 +205,13 @@ const ENTRY_FIELDS = {
|
|
|
205
205
|
resumeAt: optional(number), startedAt: number, totalRetries: optional(number),
|
|
206
206
|
elapsedMs: optional(number),
|
|
207
207
|
phase: enumeration('waiting', 'retrying', 'recovered', 'exhausted', 'interrupted'),
|
|
208
|
+
// TIERED RECONNECT (tiered-reconnect §4.8). Four OPTIONAL fields, and `number`
|
|
209
|
+
// rather than a 1|2|3 enumeration on purpose: a hand-edited or future tier id
|
|
210
|
+
// is not worth refusing a whole session over, and a bad value simply renders as
|
|
211
|
+
// the tier-1 line. A card saved by an older build lacks all four and loads
|
|
212
|
+
// unchanged.
|
|
213
|
+
tier: optional(number), tierCount: optional(number), totalAttempts: optional(number),
|
|
214
|
+
tierEndsAt: optional(number),
|
|
208
215
|
},
|
|
209
216
|
fast: { reviewIndex: number, model: string,
|
|
210
217
|
status: enumeration('running', 'ok', 'advice', 'empty', 'failed', 'dropped'),
|
|
@@ -220,9 +227,11 @@ const ENTRY_FIELDS = {
|
|
|
220
227
|
tokensBefore: number, tokensAfter: number, summary: optional(string), model: string,
|
|
221
228
|
durationMs: optional(number), startedAt: optional(number), live: boolean,
|
|
222
229
|
tailRelief: optional(shape({ messages: number, charsRemoved: number })),
|
|
223
|
-
// THE v3 OPTIONAL FIELDS (context-compaction-v3 §4.7).
|
|
224
|
-
//
|
|
225
|
-
//
|
|
230
|
+
// THE v3 OPTIONAL FIELDS (context-compaction-v3 §4.7). DECLARED HERE SO THEY
|
|
231
|
+
// ARE CHECKED, not because an undeclared key would be refused: `shape()`
|
|
232
|
+
// iterates the keys it was GIVEN (see above), so an unknown field on disk
|
|
233
|
+
// passes through untouched. Declaring one is what turns a malformed value into
|
|
234
|
+
// a precise error instead of a silent `undefined` at render time.
|
|
226
235
|
prune: optional(shape({ actions: nonnegative, removedChars: nonnegative,
|
|
227
236
|
removedTokens: nonnegative, inspected: nonnegative, kinds: object })),
|
|
228
237
|
budget: optional(shape({ limitTokens: nonnegative, spentTokens: nonnegative,
|
|
@@ -241,8 +250,9 @@ const ENTRY_FIELDS = {
|
|
|
241
250
|
startedAt: number, readyAt: optional(number), endedAt: optional(number), rows: array(string),
|
|
242
251
|
rowsSeen: number, terminal: optional(boolean), killIncomplete: optional(boolean),
|
|
243
252
|
// THE FOUR FIELDS long-task-jobs adds (AC-38), and the reason this validator
|
|
244
|
-
// has to learn them:
|
|
245
|
-
//
|
|
253
|
+
// has to learn them: `shape()` only checks the keys it is given, so an
|
|
254
|
+
// undeclared one is passed through UNVALIDATED — a job card with a malformed
|
|
255
|
+
// `jobKind` would reach the renderer and be trusted there, which is a P0 in
|
|
246
256
|
// R-8's terms.
|
|
247
257
|
//
|
|
248
258
|
// ALL FOUR ARE OPTIONAL HERE, DELIBERATELY, and that is a correction to the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon-agent/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.66",
|
|
4
4
|
"description": "AragonAgent CLI — a Claude-Code / Codex-style interactive terminal UI (TUI) on top of the @aragon-agent/core engine. Installable and runnable via npm / npx.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AragonAgent contributors",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"prepublishOnly": "npm run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@aragon-agent/core": "^0.2.
|
|
62
|
-
"@aragon-agent/tui": "0.0.
|
|
61
|
+
"@aragon-agent/core": "^0.2.78",
|
|
62
|
+
"@aragon-agent/tui": "0.0.19",
|
|
63
63
|
"commander": "^12.1.0",
|
|
64
64
|
"dotenv": "^16.6.1",
|
|
65
65
|
"env-paths": "^3.0.0",
|