@aragon-agent/cli 0.6.44 → 0.6.46
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 +44 -0
- package/README.md +120 -2
- package/dist/agent/controller.d.ts +69 -0
- package/dist/agent/controller.js +224 -11
- package/dist/agent/governance-view.d.ts +40 -0
- package/dist/agent/governance-view.js +40 -0
- package/dist/agent/governance-wiring.d.ts +162 -0
- package/dist/agent/governance-wiring.js +470 -0
- package/dist/agent/invocation-card.d.ts +77 -0
- package/dist/agent/invocation-card.js +169 -0
- package/dist/agent/plan-prompt.d.ts +7 -0
- package/dist/agent/plan-prompt.js +2 -1
- package/dist/agent/prompt-options.d.ts +6 -0
- package/dist/agent/queued-messages.d.ts +3 -0
- package/dist/agent/queued-messages.js +4 -1
- package/dist/agent/reducer.d.ts +38 -1
- package/dist/agent/reducer.js +57 -12
- package/dist/agent/system-prompt.d.ts +19 -0
- package/dist/agent/system-prompt.js +9 -1
- package/dist/cli.js +45 -1
- package/dist/commands/builtins.js +22 -4
- package/dist/commands/governance-command.d.ts +35 -0
- package/dist/commands/governance-command.js +304 -0
- package/dist/commands/governance-runs-table.d.ts +40 -0
- package/dist/commands/governance-runs-table.js +130 -0
- package/dist/commands/index-build.d.ts +8 -0
- package/dist/commands/index-build.js +11 -0
- package/dist/commands/registry.d.ts +35 -0
- package/dist/commands/registry.js +20 -7
- package/dist/commands/skills.js +36 -2
- package/dist/commands/subagent-command.js +3 -1
- package/dist/commands/team-command.d.ts +6 -0
- package/dist/commands/team-command.js +40 -3
- package/dist/config/app-paths.d.ts +10 -0
- package/dist/config/app-paths.js +12 -0
- package/dist/config/cli-commands.d.ts +18 -0
- package/dist/config/cli-commands.js +47 -1
- package/dist/config/env.d.ts +2 -1
- package/dist/config/env.js +10 -1
- package/dist/config/governance-config.d.ts +125 -0
- package/dist/config/governance-config.js +164 -0
- package/dist/config/governance-launch.d.ts +71 -0
- package/dist/config/governance-launch.js +58 -0
- package/dist/config/load.d.ts +15 -0
- package/dist/config/load.js +26 -1
- package/dist/config/model-profile-store.d.ts +4 -2
- package/dist/config/schema.d.ts +22 -0
- package/dist/config/schema.js +6 -0
- package/dist/config/store.js +14 -1
- package/dist/config/ui-state.d.ts +11 -0
- package/dist/config/ui-state.js +11 -0
- package/dist/diagnostics/doctor.js +20 -0
- package/dist/governance/card-normalize.d.ts +24 -0
- package/dist/governance/card-normalize.js +76 -0
- package/dist/governance/copy.d.ts +109 -0
- package/dist/governance/copy.js +223 -0
- package/dist/governance/engine/aftermath.d.ts +49 -0
- package/dist/governance/engine/aftermath.js +134 -0
- package/dist/governance/engine/artifact-persist.d.ts +35 -0
- package/dist/governance/engine/artifact-persist.js +86 -0
- package/dist/governance/engine/budget.d.ts +52 -0
- package/dist/governance/engine/budget.js +112 -0
- package/dist/governance/engine/cards.d.ts +18 -0
- package/dist/governance/engine/cards.js +186 -0
- package/dist/governance/engine/digest.d.ts +32 -0
- package/dist/governance/engine/digest.js +63 -0
- package/dist/governance/engine/engine-core.d.ts +219 -0
- package/dist/governance/engine/engine-core.js +562 -0
- package/dist/governance/engine/engine.d.ts +68 -0
- package/dist/governance/engine/engine.js +314 -0
- package/dist/governance/engine/estimate.d.ts +38 -0
- package/dist/governance/engine/estimate.js +46 -0
- package/dist/governance/engine/inspector.d.ts +16 -0
- package/dist/governance/engine/inspector.js +396 -0
- package/dist/governance/engine/integration.d.ts +35 -0
- package/dist/governance/engine/integration.js +220 -0
- package/dist/governance/engine/lifecycle.d.ts +29 -0
- package/dist/governance/engine/lifecycle.js +656 -0
- package/dist/governance/engine/pause.d.ts +56 -0
- package/dist/governance/engine/pause.js +107 -0
- package/dist/governance/engine/phase-members.d.ts +15 -0
- package/dist/governance/engine/phase-members.js +34 -0
- package/dist/governance/engine/phase-planner.d.ts +53 -0
- package/dist/governance/engine/phase-planner.js +282 -0
- package/dist/governance/engine/rebuild.d.ts +27 -0
- package/dist/governance/engine/rebuild.js +57 -0
- package/dist/governance/engine/report.d.ts +66 -0
- package/dist/governance/engine/report.js +220 -0
- package/dist/governance/engine/run-digest.d.ts +20 -0
- package/dist/governance/engine/run-digest.js +42 -0
- package/dist/governance/engine/spec-builder.d.ts +117 -0
- package/dist/governance/engine/spec-builder.js +321 -0
- package/dist/governance/engine/stage-runner.d.ts +22 -0
- package/dist/governance/engine/stage-runner.js +664 -0
- package/dist/governance/engine/start-input.d.ts +19 -0
- package/dist/governance/engine/start-input.js +111 -0
- package/dist/governance/engine/state-machine.d.ts +101 -0
- package/dist/governance/engine/state-machine.js +586 -0
- package/dist/governance/engine/submission-queries.d.ts +42 -0
- package/dist/governance/engine/submission-queries.js +97 -0
- package/dist/governance/engine/submission-render.d.ts +12 -0
- package/dist/governance/engine/submission-render.js +92 -0
- package/dist/governance/engine/submissions.d.ts +27 -0
- package/dist/governance/engine/submissions.js +455 -0
- package/dist/governance/engine/visibility.d.ts +104 -0
- package/dist/governance/engine/visibility.js +223 -0
- package/dist/governance/governed-dispatch.d.ts +19 -0
- package/dist/governance/governed-dispatch.js +17 -0
- package/dist/governance/limits.d.ts +107 -0
- package/dist/governance/limits.js +131 -0
- package/dist/governance/posture-transition.d.ts +38 -0
- package/dist/governance/posture-transition.js +44 -0
- package/dist/governance/posture.d.ts +35 -0
- package/dist/governance/posture.js +59 -0
- package/dist/governance/profiles.d.ts +48 -0
- package/dist/governance/profiles.js +140 -0
- package/dist/governance/prompts/orchestrator-block.d.ts +40 -0
- package/dist/governance/prompts/orchestrator-block.js +128 -0
- package/dist/governance/prompts/plan-addendum.d.ts +22 -0
- package/dist/governance/prompts/plan-addendum.js +60 -0
- package/dist/governance/prompts/refusals.d.ts +48 -0
- package/dist/governance/prompts/refusals.js +82 -0
- package/dist/governance/prompts/role-blocks.d.ts +40 -0
- package/dist/governance/prompts/role-blocks.js +255 -0
- package/dist/governance/report-reader.d.ts +31 -0
- package/dist/governance/report-reader.js +57 -0
- package/dist/governance/roles.d.ts +83 -0
- package/dist/governance/roles.js +142 -0
- package/dist/governance/rules/claims.d.ts +83 -0
- package/dist/governance/rules/claims.js +250 -0
- package/dist/governance/rules/elimination.d.ts +66 -0
- package/dist/governance/rules/elimination.js +105 -0
- package/dist/governance/rules/events-table.d.ts +46 -0
- package/dist/governance/rules/events-table.js +94 -0
- package/dist/governance/rules/failure-analysis.d.ts +28 -0
- package/dist/governance/rules/failure-analysis.js +93 -0
- package/dist/governance/rules/ledger-replay.d.ts +53 -0
- package/dist/governance/rules/ledger-replay.js +53 -0
- package/dist/governance/rules/ledger-state.d.ts +85 -0
- package/dist/governance/rules/ledger-state.js +175 -0
- package/dist/governance/rules/ledger.d.ts +228 -0
- package/dist/governance/rules/ledger.js +560 -0
- package/dist/governance/rules/rca.d.ts +68 -0
- package/dist/governance/rules/rca.js +220 -0
- package/dist/governance/rules/settlement.d.ts +129 -0
- package/dist/governance/rules/settlement.js +363 -0
- package/dist/governance/rules/suspicion.d.ts +66 -0
- package/dist/governance/rules/suspicion.js +169 -0
- package/dist/governance/store/artifacts.d.ts +81 -0
- package/dist/governance/store/artifacts.js +173 -0
- package/dist/governance/store/atomic.d.ts +79 -0
- package/dist/governance/store/atomic.js +119 -0
- package/dist/governance/store/events-log.d.ts +35 -0
- package/dist/governance/store/events-log.js +86 -0
- package/dist/governance/store/run-lock.d.ts +51 -0
- package/dist/governance/store/run-lock.js +122 -0
- package/dist/governance/store/run-store.d.ts +229 -0
- package/dist/governance/store/run-store.js +644 -0
- package/dist/governance/store/scoreboard-export.d.ts +53 -0
- package/dist/governance/store/scoreboard-export.js +65 -0
- package/dist/governance/tools/child-tools.d.ts +31 -0
- package/dist/governance/tools/child-tools.js +65 -0
- package/dist/governance/tools/guard.d.ts +71 -0
- package/dist/governance/tools/guard.js +194 -0
- package/dist/governance/tools/inspector-tools.d.ts +63 -0
- package/dist/governance/tools/inspector-tools.js +424 -0
- package/dist/governance/tools/lead-tools.d.ts +42 -0
- package/dist/governance/tools/lead-tools.js +226 -0
- package/dist/governance/tools/normalize-util.d.ts +101 -0
- package/dist/governance/tools/normalize-util.js +230 -0
- package/dist/governance/tools/scan-incomplete.d.ts +79 -0
- package/dist/governance/tools/scan-incomplete.js +486 -0
- package/dist/governance/tools/shared-tools.d.ts +44 -0
- package/dist/governance/tools/shared-tools.js +125 -0
- package/dist/governance/tools/submit-normalizers.d.ts +28 -0
- package/dist/governance/tools/submit-normalizers.js +474 -0
- package/dist/governance/tools/submit-tools.d.ts +26 -0
- package/dist/governance/tools/submit-tools.js +171 -0
- package/dist/governance/types.d.ts +661 -0
- package/dist/governance/types.js +27 -0
- package/dist/session/persist.js +10 -0
- package/dist/session/validate-session.js +36 -3
- package/dist/team/forced-mode.d.ts +19 -0
- package/dist/team/forced-mode.js +42 -20
- package/dist/team/runtime.d.ts +8 -0
- package/dist/team/runtime.js +9 -0
- package/dist/team/subagent.d.ts +23 -0
- package/dist/team/subagent.js +14 -3
- package/dist/team/types.d.ts +6 -0
- package/dist/tools/index.d.ts +30 -7
- package/dist/tools/index.js +14 -0
- package/dist/tools/plan-tools.d.ts +14 -2
- package/dist/tools/plan-tools.js +5 -2
- package/dist/ui/App.js +170 -31
- package/dist/ui/BottomStatusRow.js +1 -1
- package/dist/ui/Composer.d.ts +7 -1
- package/dist/ui/Composer.js +9 -6
- package/dist/ui/GovernancePanel.d.ts +50 -0
- package/dist/ui/GovernancePanel.js +77 -0
- package/dist/ui/GovernanceRun.d.ts +18 -0
- package/dist/ui/GovernanceRun.js +11 -0
- package/dist/ui/StatusBar.d.ts +15 -2
- package/dist/ui/StatusBar.js +10 -4
- package/dist/ui/Transcript.js +7 -1
- package/dist/ui/entries/GovernanceCard.d.ts +30 -0
- package/dist/ui/entries/GovernanceCard.js +32 -0
- package/dist/ui/entries/InvocationCard.d.ts +20 -0
- package/dist/ui/entries/InvocationCard.js +32 -0
- package/dist/ui/governance-copy.d.ts +69 -0
- package/dist/ui/governance-copy.js +104 -0
- package/dist/ui/governance-status.d.ts +145 -0
- package/dist/ui/governance-status.js +326 -0
- package/dist/ui/interaction-copy.d.ts +4 -0
- package/dist/ui/interaction-copy.js +5 -0
- package/dist/ui/interaction-hints.d.ts +17 -0
- package/dist/ui/interaction-hints.js +14 -2
- package/dist/ui/layout/governance-board.d.ts +121 -0
- package/dist/ui/layout/governance-board.js +382 -0
- package/dist/ui/layout/governance-card.d.ts +53 -0
- package/dist/ui/layout/governance-card.js +134 -0
- package/dist/ui/layout/governance-chip.d.ts +38 -0
- package/dist/ui/layout/governance-chip.js +64 -0
- package/dist/ui/layout/governance-panel.d.ts +85 -0
- package/dist/ui/layout/governance-panel.js +358 -0
- package/dist/ui/layout/governance-roster.d.ts +65 -0
- package/dist/ui/layout/governance-roster.js +275 -0
- package/dist/ui/layout/invocation-card.d.ts +41 -0
- package/dist/ui/layout/invocation-card.js +91 -0
- package/dist/ui/layout/status-detail-layout.js +3 -3
- package/dist/ui/layout/status-layout.d.ts +5 -2
- package/dist/ui/layout/status-layout.js +10 -6
- package/dist/ui/layout/virtual-window.js +22 -1
- package/dist/ui/overlays/GovernanceBoardOverlay.d.ts +41 -0
- package/dist/ui/overlays/GovernanceBoardOverlay.js +76 -0
- package/dist/ui/overlays/GovernanceSettingsPage.d.ts +48 -0
- package/dist/ui/overlays/GovernanceSettingsPage.js +93 -0
- package/dist/ui/overlays/HelpOverlay.js +4 -3
- package/dist/ui/overlays/QuestionOverlay.d.ts +9 -1
- package/dist/ui/overlays/QuestionOverlay.js +4 -2
- package/dist/ui/overlays/SettingsScreen.d.ts +7 -0
- package/dist/ui/overlays/SettingsScreen.js +21 -1
- package/dist/ui/overlays/governance-settings.d.ts +79 -0
- package/dist/ui/overlays/governance-settings.js +140 -0
- package/dist/ui/overlays/model-profile-state.d.ts +6 -1
- package/dist/ui/overlays/model-profile-state.js +10 -0
- package/dist/ui/palettes.d.ts +17 -0
- package/dist/ui/palettes.js +9 -0
- package/dist/ui/scrollback/live-preview.js +2 -0
- package/dist/ui/scrollback/settled-boundary.js +3 -0
- package/dist/ui/shortcuts.js +2 -2
- package/dist/ui/theme.d.ts +7 -0
- package/dist/ui/theme.js +1 -0
- package/dist/ui/transcript-text.js +13 -1
- package/dist/ui/use-wheel-routing.js +3 -1
- package/package.json +2 -2
package/dist/ui/palettes.d.ts
CHANGED
|
@@ -71,6 +71,17 @@ export interface Palette {
|
|
|
71
71
|
fg: string;
|
|
72
72
|
bg: string;
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* The GOVERN / PLAN+GOVERN posture badge, the legion panel title and the status chip
|
|
76
|
+
* (governance-mode section 10.7).
|
|
77
|
+
*
|
|
78
|
+
* A hue of its own, pinned by `palettes.test.ts`: >= 4.5:1 against THIS palette's own
|
|
79
|
+
* surface and >= 30 degrees away from the six semantic hues it must never be confused
|
|
80
|
+
* with (`primary`, `accent`, `user`, `toolDone`, `noticeWarn`, `noticeError`) - the
|
|
81
|
+
* last four because governance score gains and losses are drawn in `toolDone` /
|
|
82
|
+
* `noticeError` right beside it. The numbers below are the measured starting points.
|
|
83
|
+
*/
|
|
84
|
+
governAccent: string;
|
|
74
85
|
}
|
|
75
86
|
/**
|
|
76
87
|
* The reference dark background these palettes are contrast-checked against.
|
|
@@ -79,6 +90,12 @@ export interface Palette {
|
|
|
79
90
|
* text unreadable.
|
|
80
91
|
*/
|
|
81
92
|
export declare const DARK_SURFACE = "#1c1917";
|
|
93
|
+
/**
|
|
94
|
+
* The reference background of the `LIGHT` palette. `LIGHT` text is dark-on-light, so
|
|
95
|
+
* contrast-checking it against `DARK_SURFACE` would pass a pair that is unreadable in
|
|
96
|
+
* the only place it is ever used (the same trap `selectionBg` documents).
|
|
97
|
+
*/
|
|
98
|
+
export declare const LIGHT_SURFACE = "#ffffff";
|
|
82
99
|
/** Terracotta + amber over warm neutrals — the v0.4.0 default. */
|
|
83
100
|
export declare const WARM: Palette;
|
|
84
101
|
/** The v0.3.0 palette, renamed. Reachable via `--theme cool` / `theme: "dark"`. */
|
package/dist/ui/palettes.js
CHANGED
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
* text unreadable.
|
|
19
19
|
*/
|
|
20
20
|
export const DARK_SURFACE = '#1c1917';
|
|
21
|
+
/**
|
|
22
|
+
* The reference background of the `LIGHT` palette. `LIGHT` text is dark-on-light, so
|
|
23
|
+
* contrast-checking it against `DARK_SURFACE` would pass a pair that is unreadable in
|
|
24
|
+
* the only place it is ever used (the same trap `selectionBg` documents).
|
|
25
|
+
*/
|
|
26
|
+
export const LIGHT_SURFACE = '#ffffff';
|
|
21
27
|
/** Terracotta + amber over warm neutrals — the v0.4.0 default. */
|
|
22
28
|
export const WARM = {
|
|
23
29
|
primary: '#d08c60',
|
|
@@ -46,6 +52,7 @@ export const WARM = {
|
|
|
46
52
|
diff: { add: '#7fb08a', remove: '#cf6b5c', meta: '#d08c60', context: '#a2968a' },
|
|
47
53
|
toast: { info: '#d08c60', warn: '#c9a227', error: '#cf6b5c', success: '#7fb08a' },
|
|
48
54
|
chip: { fg: '#1c1917', bg: '#d08c60' },
|
|
55
|
+
governAccent: '#B79CED',
|
|
49
56
|
};
|
|
50
57
|
/** The v0.3.0 palette, renamed. Reachable via `--theme cool` / `theme: "dark"`. */
|
|
51
58
|
export const COOL = {
|
|
@@ -75,6 +82,7 @@ export const COOL = {
|
|
|
75
82
|
diff: { add: '#9ece6a', remove: '#f7768e', meta: '#7aa2f7', context: '#7a86b8' },
|
|
76
83
|
toast: { info: '#7aa2f7', warn: '#e0af68', error: '#f7768e', success: '#9ece6a' },
|
|
77
84
|
chip: { fg: '#1a1b26', bg: '#7aa2f7' },
|
|
85
|
+
governAccent: '#73DACA',
|
|
78
86
|
};
|
|
79
87
|
export const LIGHT = {
|
|
80
88
|
primary: '#2959aa',
|
|
@@ -103,6 +111,7 @@ export const LIGHT = {
|
|
|
103
111
|
diff: { add: '#2e7d32', remove: '#c62828', meta: '#2959aa', context: '#6b7280' },
|
|
104
112
|
toast: { info: '#2959aa', warn: '#b5730f', error: '#c62828', success: '#2e7d32' },
|
|
105
113
|
chip: { fg: '#ffffff', bg: '#2959aa' },
|
|
114
|
+
governAccent: '#A8327A',
|
|
106
115
|
};
|
|
107
116
|
/**
|
|
108
117
|
* Resolve a theme name to its palette.
|
|
@@ -95,6 +95,8 @@ function entryRows(entry, input) {
|
|
|
95
95
|
return [fit(firstLine(entry.text), cols)];
|
|
96
96
|
case 'service':
|
|
97
97
|
return [];
|
|
98
|
+
case 'governance':
|
|
99
|
+
return [fit(`Governance: ${entry.card.title}`, cols)];
|
|
98
100
|
default: {
|
|
99
101
|
const exhaustive = entry;
|
|
100
102
|
return exhaustive;
|
|
@@ -61,6 +61,9 @@ export function isEntryStable(entry, runActive, isTail) {
|
|
|
61
61
|
case 'service':
|
|
62
62
|
// Only the terminal record is ever a candidate; `isExcluded` filters the rest.
|
|
63
63
|
return entry.terminal === true;
|
|
64
|
+
case 'governance':
|
|
65
|
+
// A settlement card is appended once, already complete.
|
|
66
|
+
return true;
|
|
64
67
|
default: {
|
|
65
68
|
const exhaustive = entry;
|
|
66
69
|
return exhaustive;
|
package/dist/ui/shortcuts.js
CHANGED
|
@@ -84,11 +84,11 @@ export const SHORTCUTS = [
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
id: 'shift-tab', keys: 'Shift+Tab', keyword: 'plan mode', group: 'run', availability: 'always',
|
|
87
|
-
detail: '
|
|
87
|
+
detail: 'Cycles BUILD / PLAN / GOVERN / PLAN+GOVERN. PLAN refuses writes; GOVERN runs a governed team.',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
id: 'ctrl-n', keys: 'Ctrl+N', keyword: 'plan mode', group: 'run', availability: 'always',
|
|
91
|
-
detail: 'The same
|
|
91
|
+
detail: 'The same cycle (BUILD / PLAN / GOVERN / PLAN+GOVERN), for consoles that cannot deliver Shift+Tab.',
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
id: 'ctrl-t', keys: 'Ctrl+T', keyword: 'thinking', group: 'run', availability: 'always',
|
package/dist/ui/theme.d.ts
CHANGED
|
@@ -84,6 +84,13 @@ export interface Theme {
|
|
|
84
84
|
fg: Color;
|
|
85
85
|
bg: Color;
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* The GOVERN posture colour (governance-mode section 10.7). Hex above ansi-256 and
|
|
89
|
+
* `undefined` at level 0 like every other token, but PINNED to `magenta` at 16 colours
|
|
90
|
+
* instead of the nearest-ANSI search: that search lands COOL's teal on cyan, which is
|
|
91
|
+
* `user`'s colour, and the badge exists to be unmistakable.
|
|
92
|
+
*/
|
|
93
|
+
governAccent: Color;
|
|
87
94
|
}
|
|
88
95
|
export declare function getTheme(name: ThemeName, caps: TermCapabilities): Theme;
|
|
89
96
|
export {};
|
package/dist/ui/theme.js
CHANGED
|
@@ -123,6 +123,7 @@ export function getTheme(name, caps) {
|
|
|
123
123
|
success: d(palette.toast.success),
|
|
124
124
|
},
|
|
125
125
|
chip: { fg: d(palette.chip.fg), bg: d(palette.chip.bg) },
|
|
126
|
+
governAccent: level === 1 ? 'magenta' : d(palette.governAccent),
|
|
126
127
|
};
|
|
127
128
|
cache.set(key, theme);
|
|
128
129
|
return theme;
|
|
@@ -2,6 +2,8 @@ import { formatCost, formatDuration, formatTokens, promptTokensOf } from '../age
|
|
|
2
2
|
import { formatRetryLine } from '../agent/retry-view.js';
|
|
3
3
|
import { childStatus, outcomePhrase, rosterCounts, statusMarkerCell } from './team-status.js';
|
|
4
4
|
import { expandTabs } from './display-tab.js';
|
|
5
|
+
import { governanceCardLines } from './layout/governance-card.js';
|
|
6
|
+
import { invocationCardLines } from './layout/invocation-card.js';
|
|
5
7
|
const DEFAULT_MAX_ENTRIES = 200;
|
|
6
8
|
const CONTINUATION_INDENT = ' ';
|
|
7
9
|
const TOOL_INDENT = ' ';
|
|
@@ -86,7 +88,9 @@ function renderEntry(entry, glyphs) {
|
|
|
86
88
|
case 'queued':
|
|
87
89
|
return block('Queued but never sent:', entry.text);
|
|
88
90
|
case 'user':
|
|
89
|
-
return
|
|
91
|
+
return entry.invocation
|
|
92
|
+
? [...block(glyphs.user, entry.text), ...invocationCardLines(entry.invocation)]
|
|
93
|
+
: block(glyphs.user, entry.text);
|
|
90
94
|
case 'assistant': {
|
|
91
95
|
const suffix = entry.aborted ? ' (aborted)' : '';
|
|
92
96
|
return block(glyphs.assistant, `${entry.text}${suffix}`);
|
|
@@ -195,6 +199,14 @@ function renderEntry(entry, glyphs) {
|
|
|
195
199
|
`${entry.status}${where}${code}`.trimEnd(),
|
|
196
200
|
];
|
|
197
201
|
}
|
|
202
|
+
case 'governance': {
|
|
203
|
+
// A settlement card is the record of what a governed run decided and scored; an
|
|
204
|
+
// exported transcript that omitted it would be unaccountable for the run (the
|
|
205
|
+
// argument the `team`, `retry` and `fast` cases make in their own words). Same
|
|
206
|
+
// lines as the card, without colour.
|
|
207
|
+
const lines = governanceCardLines(entry.card, glyphs);
|
|
208
|
+
return lines.map((line, index) => `${TOOL_INDENT}${index === 0 ? glyphs.teamAgent : ' '} ${line}`.trimEnd());
|
|
209
|
+
}
|
|
198
210
|
case 'notice': {
|
|
199
211
|
const glyph = entry.level === 'error'
|
|
200
212
|
? glyphs.error
|
|
@@ -118,7 +118,9 @@ export function useWheelRouting(options) {
|
|
|
118
118
|
// The Agents board (tui-subagent-panel §6.5). Missing this line makes the
|
|
119
119
|
// wheel fall through to the transcript BEHIND the open board, which reads
|
|
120
120
|
// as a frozen list and a jumping transcript at the same time.
|
|
121
|
-
|| overlay === 'agents'
|
|
121
|
+
|| overlay === 'agents'
|
|
122
|
+
// The governance board pages through `overlayScroll` too (governance-mode 10.5).
|
|
123
|
+
|| overlay === 'governance';
|
|
122
124
|
if (!controlled)
|
|
123
125
|
return;
|
|
124
126
|
// D-3: the row is not consulted here either. Behind an overlay 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.46",
|
|
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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"prepublishOnly": "npm run build"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@aragon-agent/core": "^0.2.
|
|
59
|
+
"@aragon-agent/core": "^0.2.58",
|
|
60
60
|
"chalk": "^5.6.2",
|
|
61
61
|
"cli-highlight": "^2.0.0",
|
|
62
62
|
"commander": "^12.1.0",
|