@aragon-agent/cli 0.5.4 → 0.5.8
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 +747 -577
- package/README.md +1163 -995
- package/dist/agent/controller.d.ts +71 -1
- package/dist/agent/controller.js +135 -1
- package/dist/agent/entry-limits.d.ts +65 -0
- package/dist/agent/entry-limits.js +133 -0
- package/dist/agent/headless.d.ts +29 -0
- package/dist/agent/headless.js +86 -1
- package/dist/agent/reducer.d.ts +53 -0
- package/dist/agent/reducer.js +145 -14
- package/dist/agent/system-prompt.d.ts +8 -0
- package/dist/agent/system-prompt.js +2 -0
- package/dist/cli.js +76 -3
- package/dist/commands/builtins.js +171 -0
- package/dist/commands/perf.d.ts +45 -0
- package/dist/commands/perf.js +78 -0
- package/dist/commands/registry.d.ts +27 -1
- package/dist/config/env.d.ts +3 -1
- package/dist/config/env.js +74 -1
- package/dist/config/load.d.ts +41 -0
- package/dist/config/load.js +67 -2
- package/dist/config/schema.d.ts +108 -8
- package/dist/config/schema.js +81 -6
- package/dist/config/store.js +10 -1
- package/dist/session/persist.d.ts +19 -1
- package/dist/session/persist.js +21 -2
- package/dist/team/subagent.js +11 -0
- package/dist/todo/follow-through.d.ts +117 -0
- package/dist/todo/follow-through.js +186 -0
- package/dist/todo/limits.d.ts +114 -0
- package/dist/todo/limits.js +114 -0
- package/dist/todo/normalize.d.ts +33 -0
- package/dist/todo/normalize.js +117 -0
- package/dist/todo/panel-rows.d.ts +53 -0
- package/dist/todo/panel-rows.js +103 -0
- package/dist/todo/prompt.d.ts +54 -0
- package/dist/todo/prompt.js +76 -0
- package/dist/todo/store.d.ts +86 -0
- package/dist/todo/store.js +183 -0
- package/dist/todo/todo-tool.d.ts +38 -0
- package/dist/todo/todo-tool.js +134 -0
- package/dist/todo/types.d.ts +62 -0
- package/dist/todo/types.js +12 -0
- package/dist/tools/index.d.ts +16 -2
- package/dist/tools/index.js +13 -0
- package/dist/ui/App.js +328 -14
- package/dist/ui/Markdown.d.ts +7 -1
- package/dist/ui/Markdown.js +15 -48
- package/dist/ui/StatusBar.d.ts +31 -0
- package/dist/ui/StatusBar.js +7 -2
- package/dist/ui/TodoPanel.d.ts +48 -0
- package/dist/ui/TodoPanel.js +74 -0
- package/dist/ui/TodoStrip.d.ts +36 -0
- package/dist/ui/TodoStrip.js +32 -0
- package/dist/ui/Transcript.d.ts +56 -4
- package/dist/ui/Transcript.js +123 -11
- package/dist/ui/entries/AssistantEntry.d.ts +18 -1
- package/dist/ui/entries/AssistantEntry.js +33 -3
- package/dist/ui/entries/TeamCard.d.ts +9 -1
- package/dist/ui/entries/TeamCard.js +22 -1
- package/dist/ui/entries/TodoCard.d.ts +39 -0
- package/dist/ui/entries/TodoCard.js +57 -0
- package/dist/ui/entries/ToolCard.d.ts +13 -1
- package/dist/ui/entries/ToolCard.js +39 -5
- package/dist/ui/entries/ToolPreview.d.ts +2 -2
- package/dist/ui/entries/UserEntry.d.ts +9 -1
- package/dist/ui/entries/UserEntry.js +17 -1
- package/dist/ui/exit-snapshot.d.ts +7 -0
- package/dist/ui/glyphs.d.ts +12 -0
- package/dist/ui/glyphs.js +8 -0
- package/dist/ui/layout/AppShell.d.ts +34 -1
- package/dist/ui/layout/AppShell.js +3 -3
- package/dist/ui/layout/MeasuredEntry.d.ts +21 -0
- package/dist/ui/layout/MeasuredEntry.js +30 -0
- package/dist/ui/layout/ScrollViewport.d.ts +13 -1
- package/dist/ui/layout/ScrollViewport.js +10 -4
- package/dist/ui/layout/rail.d.ts +56 -0
- package/dist/ui/layout/rail.js +68 -0
- package/dist/ui/layout/viewport-geometry.d.ts +28 -0
- package/dist/ui/layout/viewport-geometry.js +27 -0
- package/dist/ui/layout/virtual-window.d.ts +100 -0
- package/dist/ui/layout/virtual-window.js +204 -0
- package/dist/ui/live-clamp.d.ts +42 -0
- package/dist/ui/live-clamp.js +74 -0
- package/dist/ui/markdown-blocks.d.ts +25 -1
- package/dist/ui/markdown-blocks.js +43 -0
- package/dist/ui/overlays/HelpOverlay.js +4 -0
- package/dist/ui/render-cache.d.ts +81 -0
- package/dist/ui/render-cache.js +195 -0
- package/dist/ui/render-governor.d.ts +54 -0
- package/dist/ui/render-governor.js +78 -0
- package/dist/ui/transcript-text.d.ts +11 -0
- package/dist/ui/transcript-text.js +5 -0
- package/dist/ui/use-height-store.d.ts +31 -0
- package/dist/ui/use-height-store.js +76 -0
- package/dist/ui/use-render-governor.d.ts +39 -0
- package/dist/ui/use-render-governor.js +57 -0
- package/dist/ui/use-startup-notices.d.ts +9 -1
- package/dist/ui/use-startup-notices.js +35 -1
- package/package.json +3 -2
|
@@ -25,7 +25,21 @@ import { getLogger } from '../logging/logger.js';
|
|
|
25
25
|
*/
|
|
26
26
|
const MOUSE_SELECTION_NOTICE = 'Mouse wheel scrolls the transcript. Hold Shift to select text, ' +
|
|
27
27
|
'or turn it off with `aragon config set mouse false`.';
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The §5.1 notice (tui-render-performance). Shown once per run, and only when
|
|
30
|
+
* the user's own `transcriptRetain` was below `transcriptWindow`.
|
|
31
|
+
*
|
|
32
|
+
* The raise itself is not negotiable — retaining fewer entries than the horizon
|
|
33
|
+
* can scroll to makes part of that horizon permanently unreachable — but doing
|
|
34
|
+
* it in silence would leave a user staring at a `/perf` line that disagrees with
|
|
35
|
+
* the number in their own config file and no way to connect the two.
|
|
36
|
+
*/
|
|
37
|
+
function retainRaisedNotice(requested, resolved) {
|
|
38
|
+
return (`transcriptRetain ${requested} is below transcriptWindow ${resolved}; using ${resolved} ` +
|
|
39
|
+
'so the whole scroll horizon stays reachable. Lower transcriptWindow too if you meant ' +
|
|
40
|
+
'to cap memory.');
|
|
41
|
+
}
|
|
42
|
+
export function useStartupNotices(dispatch, mouseNotice, retainNotice) {
|
|
29
43
|
// The sink gives up after repeated write failures (a read-only log directory,
|
|
30
44
|
// a full disk). Silently logging nothing is exactly the state a user must not
|
|
31
45
|
// discover later, from an empty file, while trying to explain a bug.
|
|
@@ -62,4 +76,24 @@ export function useStartupNotices(dispatch, mouseNotice) {
|
|
|
62
76
|
dispatch({ type: 'notice', level: 'info', text: MOUSE_SELECTION_NOTICE });
|
|
63
77
|
noticeRef.current?.onSeen();
|
|
64
78
|
}, [mouseEnabled, dispatch]);
|
|
79
|
+
// A `warn` notice rather than a toast: it is about a value the user typed, so
|
|
80
|
+
// it belongs in the transcript where it can be scrolled back to, not in a row
|
|
81
|
+
// that expires. DEPENDS ON THE TWO SCALARS, never on the options object —
|
|
82
|
+
// `App` builds that literal during render, and depending on it would re-run
|
|
83
|
+
// this effect on every frame of the session.
|
|
84
|
+
const retainRequested = retainNotice?.requested;
|
|
85
|
+
const retainResolved = retainNotice?.resolved;
|
|
86
|
+
const retainNoticeShown = useRef(false);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (retainRequested === undefined || retainResolved === undefined)
|
|
89
|
+
return;
|
|
90
|
+
if (retainNoticeShown.current)
|
|
91
|
+
return;
|
|
92
|
+
retainNoticeShown.current = true;
|
|
93
|
+
dispatch({
|
|
94
|
+
type: 'notice',
|
|
95
|
+
level: 'warn',
|
|
96
|
+
text: retainRaisedNotice(retainRequested, retainResolved),
|
|
97
|
+
});
|
|
98
|
+
}, [retainRequested, retainResolved, dispatch]);
|
|
65
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon-agent/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
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",
|
|
@@ -46,12 +46,13 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && node scripts/prepend-shebang.mjs",
|
|
48
48
|
"dev": "tsc -p tsconfig.json --watch",
|
|
49
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
49
50
|
"test": "vitest run",
|
|
50
51
|
"start": "node dist/cli.js",
|
|
51
52
|
"prepublishOnly": "npm run build"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@aragon-agent/core": "^0.2.
|
|
55
|
+
"@aragon-agent/core": "^0.2.8",
|
|
55
56
|
"chalk": "^5.6.2",
|
|
56
57
|
"cli-highlight": "^2.0.0",
|
|
57
58
|
"commander": "^12.1.0",
|