@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.
@@ -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). THIS VALIDATOR IS
224
- // STRICT - an unknown field fails the whole load - so every field a record can
225
- // carry has to be named here or a saved session would refuse to resume.
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: it is STRICT — an unknown field fails the whole load — so
245
- // a session saved with a task in it would refuse to resume, which is a P0 in
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.64",
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.76",
62
- "@aragon-agent/tui": "0.0.17",
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",