@aragon-agent/cli 0.6.73 → 0.6.75

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.
@@ -338,7 +338,18 @@ export function reloadModelSettings(controller) {
338
338
  resolved.colorLevel = live.colorLevel;
339
339
  if (live.unicode !== undefined)
340
340
  resolved.unicode = live.unicode;
341
- resolved.reducedMotion ||= !live.color;
341
+ // THE SAME PRIORITY AS `load.ts` (tui-footer-spinner-frozen-reduced-motion A'):
342
+ // the inference this replay exists for - `loadConfig` cannot see the startup
343
+ // `--no-color`, so `live.color` has to supply it - must still not overrule a
344
+ // value the FILE states. Unconditional `||=` meant one reload froze every
345
+ // animation again in a monochrome session even though the file said `false`.
346
+ //
347
+ // `disk.parsed` IS THE FILE; `disk.config` is not. The latter has already been
348
+ // normalized through every default, so asking IT whether the user chose this
349
+ // key answers "not undefined" for a file that never mentioned it - which would
350
+ // silently switch off the inference this line exists to apply.
351
+ if (disk.parsed?.reducedMotion === undefined)
352
+ resolved.reducedMotion ||= !live.color;
342
353
  // THE SESSION KIT SURVIVES A RELOAD (D-6): the three connections it holds
343
354
  // must come from the kit, not from the file we just re-read, and the
344
355
  // projection has to be recomputed so the live config stays equivalent to
package/dist/app/App.js CHANGED
@@ -4187,6 +4187,12 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
4187
4187
  // session value and never the config, so seeding from `cfg` would show
4188
4188
  // the launch value and an untouched save would quietly flip it back.
4189
4189
  developerMode: state.developerMode ? 'on' : 'off',
4190
+ // FROM `cfg`, like `liveToolOutput`: `reducedMotion` has no chord, so the
4191
+ // config IS the live value. BOTH HALVES of the row (seeded here, read back
4192
+ // in `readDirtySettings`): the sibling comments above record what omitting
4193
+ // either one costs - this is the switch every spinner in the TUI hangs on
4194
+ // (tui-footer-spinner-frozen-reduced-motion A').
4195
+ reducedMotion: reducedMotion ? 'on' : 'off',
4190
4196
  // `auto`, not an empty string: an empty field reads as "unset", which
4191
4197
  // is indistinguishable from AUTO and is not a state this can be in.
4192
4198
  maxTokens: cfg.maxTokens ? String(cfg.maxTokens) : 'auto',
@@ -4394,6 +4400,10 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
4394
4400
  // running" are both true at once now, and only the pair looks like a fault.
4395
4401
  ...(state.team?.active === true ? { teamLive: state.team.dispatchId } : {}),
4396
4402
  interruptPhase: interruptGesture.current.phase,
4403
+ // WHY NOTHING IN THE FOOTER MOVES, as a FACT rather than as a bug report
4404
+ // (tui-footer-spinner-frozen-reduced-motion A'): the row says so only while the
4405
+ // switch is on, and ABSENT keeps every pre-existing frame byte-identical.
4406
+ ...(reducedMotion ? { motionOff: true } : {}),
4397
4407
  updateAvailable: !!updateSnapshot && shouldRenderUpdateLine(updateSnapshot) } });
4398
4408
  const composer = (_jsx(Composer, { deleteDisambiguated: terminal?.deleteDisambiguated ?? false, onCompletionContextChange: setCompletion, cols: frameBudget.composerCols, terminalRows: rows, statusExpanded: statusExpanded, onInteraction: returnToComposer, reducedMotion: cfg.reducedMotion ?? false, onEscape: handleComposerEscape, onEscapeDismiss: cancelConfirmation, isActive: overlay === null && !tooSmall, running: state.status === 'running', history: promptHistory, commands: commandOptions, cwd: controller.getCwd(), showHint: false, submitCount: cfg.submitCount, hintsEnabled: cfg.hints, agentMode: state.agentMode, posture: state.posture,
4399
4409
  // ARMED AND IN EFFECT, never `armed` alone: a paused session keeps its plan / govern
package/dist/cli.js CHANGED
@@ -1441,6 +1441,13 @@ const CONFIG_SET_KEYS = new Set([
1441
1441
  // display-only developer mode. Listed here AND cased in the switch below, for
1442
1442
  // the reason `showThinking` records.
1443
1443
  'developerMode',
1444
+ // tui-footer-spinner-frozen-reduced-motion A'. `config get` has always read this
1445
+ // key; until now nothing could WRITE it, so a user whose file said `true` could
1446
+ // not turn the animations back on from anywhere in the TUI or this command -
1447
+ // the one-way switch the diagnosis measured (`config set` exit 2, file mtime
1448
+ // unchanged). Listed here AND given its own branch in `runConfigSetValue`,
1449
+ // because that branch must echo the STORED value rather than the typed one.
1450
+ 'reducedMotion',
1444
1451
  // MEMBERSHIP HERE ONLY DECIDES THAT THE KEY IS NOT REJECTED. The `switch`
1445
1452
  // below is what builds the patch, and a key present here but absent there
1446
1453
  // falls through every case, writes nothing, and still prints
@@ -1607,6 +1614,17 @@ function runConfigSetValue(key, value) {
1607
1614
  runConfigSetMaxTokens(value);
1608
1615
  return;
1609
1616
  }
1617
+ // ITS OWN BRANCH FOR THE ECHO, not for the parse: like every other boolean key
1618
+ // this one coerces `true`/`1` to true and EVERYTHING ELSE to false ("abc" is
1619
+ // not a typo for a number here, it is an answer of `off`). What the generic tail
1620
+ // cannot do is print the value that was STORED - it echoes the typed string,
1621
+ // which would report `Set reducedMotion = yes` for a file that now says `false`
1622
+ // (the `maxTokens` / `contextWindow` reason, recorded above those branches).
1623
+ if (key === 'reducedMotion') {
1624
+ const merged = updatePersistedConfig({ reducedMotion: value === 'true' || value === '1' });
1625
+ process.stdout.write(`Set ${key} = ${String(merged.reducedMotion)}\n`);
1626
+ return;
1627
+ }
1610
1628
  // The second tri-state key, and it needs its own branch for the same reason.
1611
1629
  if (key === 'contextWindow') {
1612
1630
  runConfigSetContextWindow(value);
@@ -703,9 +703,17 @@ export function loadConfig(flags = {}, options = {}) {
703
703
  ? caps.colorLevel !== 0
704
704
  : flags.color !== undefined ? flags.color : !process.env.NO_COLOR;
705
705
  // `--no-color` implies calmer chrome; env / file may also opt in explicitly.
706
+ //
707
+ // AN EXPLICIT FILE VALUE BEATS THE INFERENCE, which is the whole of the
708
+ // parentheses below (tui-footer-spinner-frozen-reduced-motion A'). The `||`
709
+ // chain this replaces read as "file first" but resolved as "inference last,
710
+ // therefore loudest": a user who wrote `"reducedMotion": false` saw every
711
+ // animation freeze again the moment a session had no colour, while
712
+ // `config get` kept answering `false` - the exact "I changed it and nothing
713
+ // happened" shape this key's diagnosis is about. An ABSENT key still falls
714
+ // back to the inference, so a monochrome session that never chose stays calm.
706
715
  const reducedMotion = envFlagTrue(process.env.ARAGON_REDUCED_MOTION) ||
707
- (file.reducedMotion ?? DEFAULT_CONFIG.reducedMotion) ||
708
- !color;
716
+ (file.reducedMotion ?? !color);
709
717
  // Detect terminal capabilities once; force monochrome when color is disabled.
710
718
  const colorLevel = color ? caps.colorLevel : 0;
711
719
  // No flag and no env var: a privacy switch you set once, not a per-run knob.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.73",
3
+ "version": "0.6.75",
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.85",
62
- "@aragon-agent/tui": "0.0.26",
61
+ "@aragon-agent/core": "^0.2.87",
62
+ "@aragon-agent/tui": "0.0.28",
63
63
  "commander": "^12.1.0",
64
64
  "dotenv": "^16.6.1",
65
65
  "env-paths": "^3.0.0",