@aragon-agent/cli 0.6.49 → 0.6.50

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 CHANGED
@@ -7,6 +7,19 @@ were written.
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ### Added
11
+ - **Subagents have names, and the screen talks like a person instead of a log.** Every subagent row now starts with
12
+ a short name (`Wren`, `Kit`, `Orin`) followed by its role, in the team panel, the settlement card, the
13
+ `Ctrl+B` board and the governance roster. While a subagent works, its activity line uses a plain phrase for what it
14
+ is doing (`Hunting for retry policy`, `Skimming parser.ts`, `Pondering...`) instead of a raw tool identifier, and
15
+ the main transcript's tool cards, status bar and activity line say `Read file` / `Running command` instead of
16
+ `read_file` / `bash`. Finished states, errors and everything that is recorded (the board timeline, `/export`,
17
+ `/save`, session files, logs, `stream-json`) stay plain and keep the real tool names. Names are display-only:
18
+ they are never stored or sent to a model, and `team_send` still addresses a subagent by its label.
19
+ - **Developer mode setting.** **Settings -> Developer mode** (config key `developerMode`, default `false`, also
20
+ `ARAGON_DEVELOPER_MODE=1` and `aragon config set developerMode true`) shows the real tool names and raw
21
+ activity text everywhere, plus a `DEV` chip in the status bar. It changes only what is drawn, never what runs.
22
+
10
23
  ### Changed
11
24
  - **Internal: the controller/feed glue now lives in `src/host/`, shared with the desktop app.** `makeController`, the
12
25
  session checkpoint writer and the ten controller-event-to-view-action subscriptions that used to be inline in
package/README.md CHANGED
@@ -3327,6 +3327,7 @@ env / `.env` → CLI flags**.
3327
3327
  | `maxTokens` | `64000` | Output token cap, clamped to `[256, 200000]`. `null` means **auto** — use each model's own ceiling, never above 64000. Absent means the default. See [Output token limits](#output-token-limits). |
3328
3328
  | `contextWindow` | `null` | The window the context gauge measures against, clamped to `[8000, 5000000]`. `null` means **auto** — API metadata, then the built-in catalog. Unknown windows show `?`; the internal fallback is 128000. See [The context gauge](#the-context-gauge). |
3329
3329
  | `showThinking` | `false` | Draw the reasoning the model returns. `thinkingLevel` is the effort the provider is asked to **spend**; this is whether the terminal **shows** it. Off by default: a settled turn that thought leaves one muted `thought for 12s` row in its place, so nothing is hidden silently. |
3330
+ | `developerMode` | `false` | Show real tool names (`read_file`, `bash`) and raw activity text instead of the friendly wording (`Read file`, `Running command`, `Hunting for retry policy`) in the transcript, status bar and subagent panels, and show a `DEV` chip in the status bar. Display only — it never changes what runs, and recorded output (exports, session files, logs) always uses the real names either way. Also **Settings → Developer mode**, `ARAGON_DEVELOPER_MODE=1`, and `aragon config set developerMode true`. |
3330
3331
  | `liveToolOutput` | `true` | Draw up to eight sanitised rows of a **running** tool's output on its card, plus a `no output for Ns` row when the child goes quiet. On by default, unlike `showThinking`: this ADDS the information a long `bash` call otherwise hides, and its cost is bounded by construction — eight rows per call, sixteen calls, whatever the command emits. Turn it off and the card is a single `running` row again, with no store allocated and no recorder attached. |
3331
3332
  | `scrollMode` | `native` | `native` prints the conversation into your terminal's own scrollback and keeps a small live region at the bottom (the terminal scrolls, selects and searches); `app` is the full-screen layout with application-owned scrolling. `--scroll-mode <native\|app>` or `ARAGON_SCROLL_MODE` overrides it for one run (an invalid flag value exits with code 2; an invalid env value is ignored). See [Scrolling](#scrolling). |
3332
3333
  | `exitTranscript` | `true` | Replay a plain-text session summary after exiting (full-screen mode only; native mode prints a short summary and ignores it). |
package/dist/app/App.js CHANGED
@@ -63,11 +63,13 @@ import { decideForcedDispatch, FORCED_NUDGE_NOTICE } from '../team/dispatch-gate
63
63
  import { FORCED_NUDGE_GRACE_MS } from '@aragon-agent/tui/model/team/limits';
64
64
  import { useTerminalSize } from '@aragon-agent/tui/ui/layout/useTerminalSize';
65
65
  import { useHeightStore } from '@aragon-agent/tui/ui/use-height-store';
66
+ import { createPersonaBook } from '@aragon-agent/tui/ui/persona-names';
67
+ import { bindVoiceScope } from '@aragon-agent/tui/ui/tool-voice';
66
68
  import { useRenderGovernor } from '@aragon-agent/tui/ui/use-render-governor';
67
69
  import { readScrollbarPerf, setPerfResetHook, setPerfSnapshotProvider, } from '../commands/perf.js';
68
70
  import { buildFrameBudget, POPUP_CAPACITY_SHARE } from '@aragon-agent/tui/ui/layout/budget';
69
71
  import { useWheelRouting } from '@aragon-agent/tui/ui/use-wheel-routing';
70
- import { INDEX_KEY_FRAME } from '@aragon-agent/tui/input/limits';
72
+ import { DEV_MODE_KEY_FRAME, INDEX_KEY_FRAME } from '@aragon-agent/tui/input/limits';
71
73
  import { INDEX_SKILL_NAME, buildIndexConfirmSummary, hasProjectIndex, indexBuildInvocationArgs, } from '../commands/index-build.js';
72
74
  import { installConsoleBridge } from '@aragon-agent/tui/ui/console-bridge';
73
75
  import { publishExitSnapshot } from '@aragon-agent/tui/ui/exit-snapshot';
@@ -169,7 +171,10 @@ function liveServiceCount(services) {
169
171
  * across renders and React never re-runs it.
170
172
  */
171
173
  function seedViewState(seed) {
172
- const base = initialViewState({ thinkingVisible: seed.thinkingVisible });
174
+ const base = initialViewState({
175
+ thinkingVisible: seed.thinkingVisible,
176
+ ...(seed.developerMode !== undefined ? { developerMode: seed.developerMode } : {}),
177
+ });
173
178
  // THE REDUCER'S OWN ADOPTION LOGIC, NOT A COPY OF IT (3.12): `restoreEntries`
174
179
  // already lifts `seq` past the restored ids, trims to the retain ring and
175
180
  // clears the live-target pointers, and a second implementation of those thirty
@@ -298,11 +303,17 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
298
303
  });
299
304
  /** The transcript height cache, owned here and read by `TranscriptList` (L3). */
300
305
  const heights = useHeightStore();
306
+ // PERSONA NAMES live only in this session-scoped book (display nicknames: never
307
+ // stored, logged, prompted or addressable). A ref, so it survives re-renders without
308
+ // causing one; reset on `/clear` and `/resume` (see the `dispatch` wrapper below).
309
+ const personaBookRef = useRef(null);
310
+ if (personaBookRef.current === null)
311
+ personaBookRef.current = createPersonaBook();
301
312
  // SEEDED FROM CONFIG, not dispatched after mount (§3.1.1): a post-mount
302
313
  // `toggleThinking` would let `/resume` flash a restored thinking block on
303
314
  // frame 1. `seedViewState` is module-scope so the lazy initializer is a stable
304
315
  // function reference.
305
- const [state, dispatch] = useReducer(viewReducer, { thinkingVisible: cfg.showThinking, ...(initialEntries ? { entries: initialEntries } : {}) }, seedViewState);
316
+ const [state, dispatch] = useReducer(viewReducer, { thinkingVisible: cfg.showThinking, developerMode: cfg.developerMode, ...(initialEntries ? { entries: initialEntries } : {}) }, seedViewState);
306
317
  // THE IDENTITY, SEEDED FROM THE PROP AND REPLACED ON ROTATION (D-15). A ref
307
318
  // travels beside it because both readers -- the publish effect and the
308
319
  // `/session` port -- must see the CURRENT id, and a rotation can land between
@@ -367,6 +378,27 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
367
378
  const theme = useMemo(() => getTheme(cfg.theme, caps), [cfg.theme, caps]);
368
379
  const glyphs = useMemo(() => pickGlyphs(caps), [caps]);
369
380
  const reducedMotion = cfg.reducedMotion ?? false;
381
+ // THE VOICE: how tool names are worded and which persona names rows carry. Built from
382
+ // the RAW `reducedMotion` (not the widened `viewReducedMotion`, which is true for the
383
+ // whole run and would freeze the thinking words). Referentially stable per
384
+ // (mode, reducedMotion) because `EntryView`'s memo compares it by identity.
385
+ const voice = useMemo(() => {
386
+ const book = personaBookRef.current;
387
+ return {
388
+ mode: state.developerMode ? 'developer' : 'friendly',
389
+ reducedMotion,
390
+ nameOf: (label) => book.nameFor('', label),
391
+ nameIn: (scope, label) => book.nameFor(scope, label),
392
+ };
393
+ }, [state.developerMode, reducedMotion]);
394
+ // A GOVERNED DISPATCH is the governance run's team: alias its dispatch id to the run id
395
+ // so the roster, the Ctrl+B board and the settlement cards name the same child alike.
396
+ // Idempotent and cheap, so it is safe in render; the book ignores repeat calls.
397
+ if (state.team && state.governance
398
+ && liveRosterSurface(state.governance, true) === 'governance') {
399
+ personaBookRef.current.alias(state.team.dispatchId, state.governance.runId);
400
+ }
401
+ const teamVoice = state.team ? bindVoiceScope(voice, state.team.dispatchId) : voice;
370
402
  const stateRef = useRef(state);
371
403
  stateRef.current = state;
372
404
  // The first-seen-eliminated map for the legion panel (a replaced member shows for one
@@ -1702,6 +1734,7 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
1702
1734
  dispatch: (action) => {
1703
1735
  if (action.type === 'resetConversation' || action.type === 'restoreEntries') {
1704
1736
  scrollbackViewRef.current?.notifyReset(action.type === 'resetConversation' ? 'clear' : 'restore');
1737
+ personaBookRef.current?.reset();
1705
1738
  metrics.current = createRunMetrics();
1706
1739
  manualMetrics.current = createRunMetrics();
1707
1740
  setScrollResetKey((n) => n + 1);
@@ -1996,6 +2029,10 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
1996
2029
  && controller.getConfig().showThinking !== stateRef.current.thinkingVisible) {
1997
2030
  dispatch({ type: 'toggleThinking' });
1998
2031
  }
2032
+ if (draft.patch.developerMode !== undefined) {
2033
+ dispatch({ type: 'setDeveloperMode', value: controller.getConfig().developerMode });
2034
+ heights.clear();
2035
+ }
1999
2036
  dispatch({ type: 'setOverlay', overlay: null });
2000
2037
  toast(result.restartRequired ? 'warn' : 'success', modelSettingsResultMessage(result));
2001
2038
  return result;
@@ -2314,6 +2351,25 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
2314
2351
  dispatch({ type: 'setOverlay', overlay: open === 'shortcuts' ? null : 'shortcuts' });
2315
2352
  return;
2316
2353
  }
2354
+ // Display-only developer mode (hidden chord). Arrives as DEV_MODE_KEY_FRAME for the
2355
+ // same reason Ctrl+I does: legacy terminals encode it as 0x10, i.e. Ctrl+P. Not
2356
+ // gated on `tooSmall` (a pure display switch); ignored while an overlay owns the
2357
+ // keyboard so the Settings row never shows a stale session value. The toast is
2358
+ // dispatched directly because `toast()` takes no ttl.
2359
+ if (input.includes(DEV_MODE_KEY_FRAME)) {
2360
+ if (stateRef.current.overlay)
2361
+ return;
2362
+ const next = !stateRef.current.developerMode;
2363
+ dispatch({ type: 'setDeveloperMode', value: next });
2364
+ heights.clear();
2365
+ dispatch({
2366
+ type: 'pushToast',
2367
+ level: 'info',
2368
+ text: next ? 'Developer mode on' : 'Developer mode off',
2369
+ ttlMs: 1500,
2370
+ });
2371
+ return;
2372
+ }
2317
2373
  // Ctrl+B: the Agents board (tui-subagent-panel D-6 / §6.5).
2318
2374
  //
2319
2375
  // THE GUARD ORDER IS Ctrl+G's EXACTLY, plus one rung: pressing it again CLOSES the
@@ -2804,6 +2860,7 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
2804
2860
  ? buildGovernancePanelLayout({
2805
2861
  cols: native ? Math.max(1, cols - 1) : baseRail.contentCols, rows,
2806
2862
  snapshot: state.governance, glyphs, reducedMotion, now: Date.now(),
2863
+ voice: bindVoiceScope(voice, state.governance.runId),
2807
2864
  mode: governanceMode === 'panel' ? 'panel' : 'run-strip', eliminatedSince,
2808
2865
  availableRows: native
2809
2866
  ? Math.max(0, viewportBudget - 1)
@@ -2841,7 +2898,7 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
2841
2898
  const scrollbackView = useScrollbackView({
2842
2899
  enabled: native, bridge: scrollback, entries: state.entries, runActive: running,
2843
2900
  theme, caps, density: cfg.density, thinkingVisible: state.thinkingVisible,
2844
- reducedMotion, rows, cols,
2901
+ reducedMotion, voice, rows, cols,
2845
2902
  overlayOpen: overlay !== null, draftRows, popupRows: overlay ? 0 : popupRows,
2846
2903
  statusExpanded, forceInactive: native && guardTripped,
2847
2904
  // The band's inputs. `teamRowsNatural` is the roster layout computed above, so the
@@ -2925,6 +2982,10 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
2925
2982
  // and there is no setter), so the config IS the current value and
2926
2983
  // nothing can have toggled it since launch.
2927
2984
  liveToolOutput: cfg.liveToolOutput ? 'on' : 'off',
2985
+ // FROM `ViewState`, like `showThinking`: the hidden key chord edits the
2986
+ // session value and never the config, so seeding from `cfg` would show
2987
+ // the launch value and an untouched save would quietly flip it back.
2988
+ developerMode: state.developerMode ? 'on' : 'off',
2928
2989
  // `auto`, not an empty string: an empty field reads as "unset", which
2929
2990
  // is indistinguishable from AUTO and is not a state this can be in.
2930
2991
  maxTokens: cfg.maxTokens ? String(cfg.maxTokens) : 'auto',
@@ -2952,9 +3013,9 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
2952
3013
  // THE BRANCH AND THE `Overlay` MEMBER SHIP TOGETHER (R-11): a missing branch is not
2953
3014
  // a type error, it is a SILENT BLANK FRAME, because `active={overlay === null}` has
2954
3015
  // already disabled the transcript underneath.
2955
- _jsx(AgentsBoardOverlay, { team: state.team, entries: state.entries, cols: viewCols, maxRows: overlayMaxRows, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, isActive: !tooSmall, native: native, theme: theme, caps: caps })) : overlay === 'governance' ? (
3016
+ _jsx(AgentsBoardOverlay, { voice: voice, team: state.team, entries: state.entries, cols: viewCols, maxRows: overlayMaxRows, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, isActive: !tooSmall, native: native, theme: theme, caps: caps })) : overlay === 'governance' ? (
2956
3017
  // THE BRANCH AND THE `Overlay` MEMBER SHIP TOGETHER (R-11), like `agents` above.
2957
- _jsx(GovernanceBoardOverlay, { data: governanceBoardData(controller, state.governance), cols: viewCols, maxRows: overlayMaxRows, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, isActive: !tooSmall, theme: theme, caps: caps, onCopyPath: (path) => { void copyCoordinator.requestCopy({ text: path, lines: 1 }); }, onNotice: toast })) : overlay === 'confirm' && confirmState ? (_jsx(ConfirmDialog, { isActive: !tooSmall, state: confirmState, maxRows: overlayMaxRows, cols: viewCols, theme: theme, caps: caps, onClose: closeConfirm })) : overlay === 'question' && humanRequest?.kind === 'questions' ? (_jsx(QuestionOverlay, { isActive: !tooSmall, questions: humanRequest.questions, maxRows: overlayMaxRows, cols: viewCols, theme: theme, caps: caps, onSubmit: (answers) => resolveHuman({ kind: 'answers', answers, cancelled: false }), ...interviewProps })) : overlay === 'plan' && humanRequest?.kind === 'plan' ? (_jsx(PlanReviewOverlay, { isActive: !tooSmall, plan: humanRequest.plan, maxRows: overlayMaxRows, cols: viewCols, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, theme: theme, caps: caps, onVerdict: handlePlanVerdict })) : null;
3018
+ _jsx(GovernanceBoardOverlay, { voice: voice, data: governanceBoardData(controller, state.governance), cols: viewCols, maxRows: overlayMaxRows, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, isActive: !tooSmall, theme: theme, caps: caps, onCopyPath: (path) => { void copyCoordinator.requestCopy({ text: path, lines: 1 }); }, onNotice: toast })) : overlay === 'confirm' && confirmState ? (_jsx(ConfirmDialog, { isActive: !tooSmall, state: confirmState, maxRows: overlayMaxRows, cols: viewCols, theme: theme, caps: caps, onClose: closeConfirm })) : overlay === 'question' && humanRequest?.kind === 'questions' ? (_jsx(QuestionOverlay, { isActive: !tooSmall, questions: humanRequest.questions, maxRows: overlayMaxRows, cols: viewCols, theme: theme, caps: caps, onSubmit: (answers) => resolveHuman({ kind: 'answers', answers, cancelled: false }), ...interviewProps })) : overlay === 'plan' && humanRequest?.kind === 'plan' ? (_jsx(PlanReviewOverlay, { isActive: !tooSmall, plan: humanRequest.plan, maxRows: overlayMaxRows, cols: viewCols, scrollOffset: overlayScroll, onScrollClamp: setOverlayScroll, theme: theme, caps: caps, onVerdict: handlePlanVerdict })) : null;
2958
3019
  const density = cfg.density;
2959
3020
  const transcriptWindow = cfg.transcriptWindow ?? DEFAULT_TRANSCRIPT_WINDOW;
2960
3021
  // The fixed status bar remains visible underneath every overlay and toast.
@@ -3100,7 +3161,7 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
3100
3161
  interruptPhase: interruptGesture.current.phase,
3101
3162
  updateAvailable: !!updateSnapshot && shouldRenderUpdateLine(updateSnapshot) } });
3102
3163
  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, services: liveServices, modeToggleKey: modeToggleKey, popupMaxRows: popupMaxRows, popupMaxHeight: frameBudget.popupMaxHeight, onPopupRowsChange: onPopupRowsChange, onDraftRows: onDraftRows, onDraftPresence: onDraftPresence, draftClearNonce: draftClearNonce, ...(draftFill ? { draftFill } : {}), insertMode: cfg.prompts?.insertMode ?? 'insert', onNotice: notify, theme: theme, caps: caps, onSubmit: handleSubmit, onHelp: () => dispatch({ type: 'setOverlay', overlay: 'help' }) }));
3103
- const team = governanceLayout ? (_jsx(GovernancePanel, { layout: governanceLayout, theme: theme, caps: caps })) : state.team ? (_jsx(TeamPanel, { snapshot: state.team, layout: teamLayout, rows: rows, cols: contentCols, reducedMotion: viewReducedMotion, theme: theme, caps: caps })) : null;
3164
+ const team = governanceLayout ? (_jsx(GovernancePanel, { layout: governanceLayout, theme: theme, caps: caps })) : state.team ? (_jsx(TeamPanel, { snapshot: state.team, layout: teamLayout, rows: rows, cols: contentCols, reducedMotion: viewReducedMotion, voice: teamVoice, theme: theme, caps: caps })) : null;
3104
3165
  // --- Native panel band (release-gate-and-native-panels §6.3/§6.4) -------------
3105
3166
  //
3106
3167
  // SEPARATE NODES, NOT THE TWO ABOVE (RV-P1-7). Those carry `cols={contentCols}` for
@@ -3121,11 +3182,11 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
3121
3182
  // out against `previewCols` would stop its clock one rail short of the screen's edge.
3122
3183
  // `teamRowGeometry` is continuous in `cols`, so the number that decides whether the
3123
3184
  // panel mounts IS the number it lays out against.
3124
- const nativeTeam = governanceLayout && nativeBand ? (_jsx(GovernancePanel, { layout: governanceLayout, theme: theme, caps: caps })) : state.team && nativeBand ? (_jsx(TeamPanel, { snapshot: state.team, layout: teamLayout, rows: rows, cols: nativeBandCols, reducedMotion: viewReducedMotion, theme: theme, caps: caps })) : null;
3185
+ const nativeTeam = governanceLayout && nativeBand ? (_jsx(GovernancePanel, { layout: governanceLayout, theme: theme, caps: caps })) : state.team && nativeBand ? (_jsx(TeamPanel, { snapshot: state.team, layout: teamLayout, rows: rows, cols: nativeBandCols, reducedMotion: viewReducedMotion, voice: teamVoice, theme: theme, caps: caps })) : null;
3125
3186
  const rail = fullscreenRailVisible && state.todos ? (_jsx(TodoPanel, { snapshot: state.todos, width: railWidth, rows: railRows, running: running, reducedMotion: viewReducedMotion, theme: theme, caps: caps })) : null;
3126
- const viewport = (_jsxs(ScrollViewport, { active: overlay === null && !tooSmall, overlay: overlayNode, footer: _jsxs(_Fragment, { children: [team, _jsx(QueuePanel, { layout: queueLayout, theme: theme })] }), rail: rail, scrollbar: terminal?.scrollbar, resetKey: scrollResetKey, intent: scrollIntent, pinToBottomNonce: pinToBottomNonce, onScrolledLinesChange: setScrolledLines, onViewportShiftChange: onViewportShiftChange, onGeometryChange: onGeometryChange, geometryKey: `${rows}:${cols}:${viewportBudget}:${frameBudget.composerSlotRows}:${frameBudget.statusRows}:${contentCols}:${overlay}:${tooSmall}`, tailRowsRef: tailSink, hold: selectionHold, resumeMs: cfg.scrollResumeMs, showScrollIndicator: true, cols: contentCols, theme: theme, caps: caps, children: [opener, _jsx(TranscriptList, { entries: transcriptEntries, expandedToolIds: state.expandedToolIds, thinkingVisible: state.thinkingVisible, reducedMotion: viewReducedMotion, density: density, nowSec: nowSec, theme: theme, caps: caps, windowSize: transcriptWindow, cols: contentCols, heights: heights, mountedSink: mountedCount, tailSink: tailSink })] }));
3187
+ const viewport = (_jsxs(ScrollViewport, { active: overlay === null && !tooSmall, overlay: overlayNode, footer: _jsxs(_Fragment, { children: [team, _jsx(QueuePanel, { layout: queueLayout, theme: theme })] }), rail: rail, scrollbar: terminal?.scrollbar, resetKey: scrollResetKey, intent: scrollIntent, pinToBottomNonce: pinToBottomNonce, onScrolledLinesChange: setScrolledLines, onViewportShiftChange: onViewportShiftChange, onGeometryChange: onGeometryChange, geometryKey: `${rows}:${cols}:${viewportBudget}:${frameBudget.composerSlotRows}:${frameBudget.statusRows}:${contentCols}:${overlay}:${tooSmall}`, tailRowsRef: tailSink, hold: selectionHold, resumeMs: cfg.scrollResumeMs, showScrollIndicator: true, cols: contentCols, theme: theme, caps: caps, children: [opener, _jsx(TranscriptList, { entries: transcriptEntries, expandedToolIds: state.expandedToolIds, thinkingVisible: state.thinkingVisible, reducedMotion: viewReducedMotion, voice: voice, density: density, nowSec: nowSec, theme: theme, caps: caps, windowSize: transcriptWindow, cols: contentCols, heights: heights, mountedSink: mountedCount, tailSink: tailSink })] }));
3127
3188
  const detailsNode = _jsx(BottomStatusRow, { plan: details, columns: viewCols, theme: theme });
3128
- const statusNode = (_jsx(StatusBar, { columns: viewCols, speedKnown: speedKnown, ...feedbackProjection, interruptPhase: interruptGesture.current.phase, pendingSteering: state.pendingSteering, runPhase: state.runPhase, activeTool: state.activeTool, ...(wait ? { wait } : {}), runOutcome: state.runOutcome, reducedMotion: reducedMotion, ...(sessionId ? { sessionId } : {}), ...(kitChip ? { kit: kitChip } : {}), waitingForConfirmation: !!humanRequest || !!confirmState, stopping: interruptGesture.current.phase === 'stopping', interruptHint: interruptGesture.current.phase === 'stopping'
3189
+ const statusNode = (_jsx(StatusBar, { columns: viewCols, speedKnown: speedKnown, ...feedbackProjection, interruptPhase: interruptGesture.current.phase, pendingSteering: state.pendingSteering, runPhase: state.runPhase, activeTool: state.activeTool, ...(wait ? { wait } : {}), runOutcome: state.runOutcome, reducedMotion: reducedMotion, ...(sessionId ? { sessionId } : {}), developerMode: state.developerMode, ...(kitChip ? { kit: kitChip } : {}), waitingForConfirmation: !!humanRequest || !!confirmState, stopping: interruptGesture.current.phase === 'stopping', interruptHint: interruptGesture.current.phase === 'stopping'
3129
3190
  ? 'Esc force-stop' : 'Esc x2 interrupt', model: cfg.model, provider: cfg.provider, usageTotal: state.usageTotal,
3130
3191
  // ONE OBJECT INSTEAD OF FOUR PARALLEL PROPS (§4.3). The four were a
3131
3192
  // projection of "many sources of truth" into the props layer, and a
@@ -3183,7 +3244,7 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
3183
3244
  // fallback for a frame with no preview rows. The WHOLE list is passed: the window
3184
3245
  // belongs to `tail-window.ts`, and `prev` must come from the same list.
3185
3246
  tail: nativeBudget.band.previewRows > 0
3186
- ? (_jsx(LiveTail, { entries: state.entries, maxEntries: SCROLLBACK_LIMITS.liveTailMaxEntries, rows: nativeBudget.band.previewRows, cols: nativeBudget.previewCols, expandedToolIds: state.expandedToolIds, thinkingVisible: state.thinkingVisible, reducedMotion: viewReducedMotion, density: cfg.density, nowSec: nowSec, theme: theme, caps: caps, measuredRows: scrollbackView.measuredTailRows }))
3247
+ ? (_jsx(LiveTail, { entries: state.entries, maxEntries: SCROLLBACK_LIMITS.liveTailMaxEntries, rows: nativeBudget.band.previewRows, cols: nativeBudget.previewCols, expandedToolIds: state.expandedToolIds, thinkingVisible: state.thinkingVisible, reducedMotion: viewReducedMotion, voice: voice, density: cfg.density, nowSec: nowSec, theme: theme, caps: caps, measuredRows: scrollbackView.measuredTailRows }))
3187
3248
  : undefined, team: nativeTeam, rail: nativeRail, composer: composer, status: statusNode, details: detailsNode, placeholder: _jsxs(Text, { wrap: "truncate", color: theme.noticeWarn, children: [glyphs.warn, " Terminal too small - needs at least 40 columns and 12 rows."] }), theme: theme }));
3188
3249
  }
3189
3250
  return (_jsx(AppShell, { inactive: tooSmall, placeholder: _jsxs(Text, { wrap: "truncate", color: theme.noticeWarn, children: [glyphs.warn, " Terminal too small - needs at least 40 columns and 12 rows."] }), rows: rows, cols: cols, header: header, viewport: viewport, viewportRows: frameBudget.viewportRows, composer: composer, composerSlotRows: frameBudget.composerSlotRows, statusRows: frameBudget.statusRows, details: detailsNode, status: statusNode }));
package/dist/cli.js CHANGED
@@ -1399,6 +1399,9 @@ const CONFIG_SET_KEYS = new Set([
1399
1399
  // agent-activity-presentation-live §4.1. Listed here AND cased in the switch
1400
1400
  // below, for the reason `transcriptRetain` and `showThinking` both record.
1401
1401
  'liveToolOutput',
1402
+ // display-only developer mode. Listed here AND cased in the switch below, for
1403
+ // the reason `showThinking` records.
1404
+ 'developerMode',
1402
1405
  // MEMBERSHIP HERE ONLY DECIDES THAT THE KEY IS NOT REJECTED. The `switch`
1403
1406
  // below is what builds the patch, and a key present here but absent there
1404
1407
  // falls through every case, writes nothing, and still prints
@@ -1702,6 +1705,9 @@ function runConfigSetValue(key, value) {
1702
1705
  case 'liveToolOutput':
1703
1706
  patch.liveToolOutput = value === 'true' || value === '1';
1704
1707
  break;
1708
+ case 'developerMode':
1709
+ patch.developerMode = value === 'true' || value === '1';
1710
+ break;
1705
1711
  case 'hints':
1706
1712
  patch.hints = value === 'true' || value === '1';
1707
1713
  break;
@@ -102,6 +102,16 @@ export function readEnvConfig() {
102
102
  liveToolOutput === 'on' ||
103
103
  liveToolOutput === 'yes';
104
104
  }
105
+ // Same positive-list parse. There is deliberately NO CLI flag for this key: it is
106
+ // reachable from Settings, `config set` and this variable (display-only switch).
107
+ const developerMode = process.env.ARAGON_DEVELOPER_MODE?.trim().toLowerCase();
108
+ if (developerMode !== undefined && developerMode.length > 0) {
109
+ partial.developerMode =
110
+ developerMode === '1' ||
111
+ developerMode === 'true' ||
112
+ developerMode === 'on' ||
113
+ developerMode === 'yes';
114
+ }
105
115
  // `auto` / `0` mean AUTO (`null`); a number is clamped to the accepted range.
106
116
  // Anything else is LEFT ABSENT rather than written as `null`: a typo here used
107
117
  // to become AUTO and silently discard the number in the config file under it,
@@ -601,6 +601,9 @@ export function loadConfig(flags = {}, options = {}) {
601
601
  // anywhere else reaches the UI from at most one of flags, environment and file.
602
602
  const liveToolOutput = pick(flags.liveToolOutput, env.partial.liveToolOutput, file.liveToolOutput) ??
603
603
  DEFAULT_CONFIG.liveToolOutput;
604
+ // No flag layer: the key is Settings / `config set` / environment only.
605
+ const developerMode = pick(undefined, env.partial.developerMode, file.developerMode) ??
606
+ DEFAULT_CONFIG.developerMode;
604
607
  const maxTokens = resolveMaxTokens(flags, env.partial, file);
605
608
  const resolvedWindow = resolveContextWindow(env.partial, file, projection.mainOwnsContextWindow);
606
609
  const contextWindow = resolvedWindow.value;
@@ -722,6 +725,7 @@ export function loadConfig(flags = {}, options = {}) {
722
725
  thinkingLevel,
723
726
  showThinking,
724
727
  liveToolOutput,
728
+ developerMode,
725
729
  maxTokens,
726
730
  contextWindow,
727
731
  // CONDITIONAL SPREAD so a feature-off config object stays byte-identical
@@ -152,6 +152,8 @@ export declare class EngineCore {
152
152
  private emitTimer;
153
153
  private readonly agentStates;
154
154
  private readonly activity;
155
+ /** Structured twin of `activity` (see `RosterRow.activityPhase`); cleared with it. */
156
+ private readonly activityView;
155
157
  private readonly lastDelta;
156
158
  private stageAbort;
157
159
  private teamUnsubscribe;
@@ -26,6 +26,18 @@ import { INSPECTOR_ID } from '../rules/ledger-state.js';
26
26
  import { renderLedgerLine } from './report.js';
27
27
  import { buildRunDigest } from './run-digest.js';
28
28
  const EMIT_MIN_INTERVAL_MS = 250;
29
+ /** The optional `RosterRow` fields for one child; `{}` when nothing was observed. */
30
+ function activityFields(view) {
31
+ if (view === undefined)
32
+ return {};
33
+ return {
34
+ activityPhase: view.phase,
35
+ ...(view.tool !== undefined ? { activityTool: view.tool } : {}),
36
+ ...(view.args !== undefined ? { activityArgs: view.args } : {}),
37
+ ...(view.text !== undefined ? { activityText: view.text } : {}),
38
+ activityCalls: view.calls,
39
+ };
40
+ }
29
41
  /** Give an op the stored-event seq so replay stamps exactly what the live path stamped. */
30
42
  export function stampOp(op, seq) {
31
43
  switch (op.op) {
@@ -115,6 +127,8 @@ export class EngineCore {
115
127
  emitTimer = null;
116
128
  agentStates = new Map();
117
129
  activity = new Map();
130
+ /** Structured twin of `activity` (see `RosterRow.activityPhase`); cleared with it. */
131
+ activityView = new Map();
118
132
  lastDelta = new Map();
119
133
  stageAbort = null;
120
134
  teamUnsubscribe = null;
@@ -244,6 +258,7 @@ export class EngineCore {
244
258
  resetRunScratch() {
245
259
  this.agentStates.clear();
246
260
  this.activity.clear();
261
+ this.activityView.clear();
247
262
  this.lastDelta.clear();
248
263
  this.viewLog.clear();
249
264
  this.validationFailures.clear();
@@ -301,6 +316,15 @@ export class EngineCore {
301
316
  if (this.run === null)
302
317
  return;
303
318
  this.activity.set(run.label, run.activity ?? run.lastTool ?? '');
319
+ // The structured twin: only what the friendly voice may print. `args` is the
320
+ // already-picked subset (path / pattern / command head), never the raw tool args.
321
+ this.activityView.set(run.label, {
322
+ phase: run.phase,
323
+ ...(run.phase === 'tool' && run.lastTool !== undefined ? { tool: run.lastTool } : {}),
324
+ ...(run.phase === 'tool' && run.activityArgs !== undefined ? { args: run.activityArgs } : {}),
325
+ ...(run.activity !== undefined ? { text: run.activity } : {}),
326
+ calls: run.toolCalls,
327
+ });
304
328
  if (run.filesTouched.length > 0)
305
329
  this.touchedFiles.set(run.label, [...run.filesTouched]);
306
330
  const phase = run.phase;
@@ -323,6 +347,7 @@ export class EngineCore {
323
347
  }
324
348
  clearActivity() {
325
349
  this.activity.clear();
350
+ this.activityView.clear();
326
351
  }
327
352
  // -------------------------------------------------------------------------
328
353
  // Stage abort
@@ -450,6 +475,7 @@ export class EngineCore {
450
475
  state: r.status === 'eliminated' ? 'eliminated' : (this.agentStates.get(r.id) ?? 'idle'),
451
476
  wpId: this.wpOf(r.id),
452
477
  activity: r.status === 'eliminated' ? '' : (this.activity.get(r.id) ?? ''),
478
+ ...(r.status === 'eliminated' ? {} : activityFields(this.activityView.get(r.id))),
453
479
  confirmed: r.confirmed,
454
480
  provisional: r.provisional,
455
481
  // The standings row already decided: an eliminated agent is KILLED even when a tail
@@ -465,6 +491,7 @@ export class EngineCore {
465
491
  state: this.agentStates.get(INSPECTOR_ID) ?? 'idle',
466
492
  wpId: null,
467
493
  activity: this.activity.get(INSPECTOR_ID) ?? '',
494
+ ...activityFields(this.activityView.get(INSPECTOR_ID)),
468
495
  confirmed: null,
469
496
  provisional: 0,
470
497
  label: 'NOT_SCORED',
@@ -524,6 +524,10 @@ export function createSubagent(spec, deps, hooks) {
524
524
  ok: event.isError !== true,
525
525
  ...(startedAt !== undefined ? { ms: Math.max(0, endedAt - startedAt) } : {}),
526
526
  text: describeToolActivity(event.toolName, run.activityArgs, true),
527
+ // READ BEFORE `run.activityArgs = undefined` below (that clear must never move
528
+ // above this call): the board re-words the line from these two.
529
+ tool: event.toolName,
530
+ ...(run.activityArgs !== undefined ? { args: run.activityArgs } : {}),
527
531
  });
528
532
  run.phase = 'thinking';
529
533
  textTail = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.49",
3
+ "version": "0.6.50",
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.61",
62
- "@aragon-agent/tui": "0.0.2",
61
+ "@aragon-agent/core": "^0.2.62",
62
+ "@aragon-agent/tui": "0.0.3",
63
63
  "commander": "^12.1.0",
64
64
  "dotenv": "^16.6.1",
65
65
  "env-paths": "^3.0.0",