@aragon-agent/cli 0.6.8 → 0.6.9
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 +27 -0
- package/README.md +38 -37
- package/dist/agent/controller.d.ts +1 -1
- package/dist/agent/reducer.d.ts +7 -113
- package/dist/agent/reducer.js +0 -62
- package/dist/cli.js +48 -149
- package/dist/commands/perf.d.ts +32 -2
- package/dist/commands/perf.js +32 -2
- package/dist/commands/registry.d.ts +2 -2
- package/dist/config/env.js +0 -130
- package/dist/config/load.d.ts +0 -2
- package/dist/config/load.js +2 -31
- package/dist/config/schema.d.ts +1 -14
- package/dist/config/schema.js +0 -1
- package/dist/config/store.js +2 -0
- package/dist/logging/install.d.ts +2 -2
- package/dist/logging/install.js +2 -2
- package/dist/todo/follow-through.d.ts +0 -4
- package/dist/todo/follow-through.js +0 -4
- package/dist/todo/limits.d.ts +0 -10
- package/dist/todo/limits.js +0 -10
- package/dist/todo/prompt.d.ts +0 -15
- package/dist/ui/ActivityLine.d.ts +26 -34
- package/dist/ui/ActivityLine.js +30 -19
- package/dist/ui/App.d.ts +1 -41
- package/dist/ui/App.js +66 -128
- package/dist/ui/BottomStatusRow.d.ts +1 -3
- package/dist/ui/BottomStatusRow.js +4 -8
- package/dist/ui/Composer.d.ts +28 -1
- package/dist/ui/Composer.js +43 -17
- package/dist/ui/Header.d.ts +2 -16
- package/dist/ui/Header.js +3 -18
- package/dist/ui/Logo.d.ts +1 -17
- package/dist/ui/Logo.js +0 -16
- package/dist/ui/ModeChip.d.ts +7 -18
- package/dist/ui/ModeChip.js +9 -0
- package/dist/ui/PromptInput.d.ts +2 -28
- package/dist/ui/PromptInput.js +4 -7
- package/dist/ui/StatusBar.d.ts +0 -11
- package/dist/ui/ToastStack.d.ts +2 -18
- package/dist/ui/ToastStack.js +4 -11
- package/dist/ui/Transcript.d.ts +5 -71
- package/dist/ui/Transcript.js +9 -199
- package/dist/ui/entries/AssistantEntry.d.ts +0 -23
- package/dist/ui/entries/AssistantEntry.js +3 -4
- package/dist/ui/entries/DiffView.d.ts +1 -7
- package/dist/ui/entries/DiffView.js +2 -2
- package/dist/ui/entries/ToolCard.d.ts +0 -6
- package/dist/ui/entries/ToolCard.js +4 -13
- package/dist/ui/frame-differ.d.ts +13 -0
- package/dist/ui/frame-differ.js +36 -6
- package/dist/ui/ink-runtime.d.ts +1 -0
- package/dist/ui/ink-runtime.js +21 -0
- package/dist/ui/layout/AppShell.d.ts +1 -10
- package/dist/ui/layout/AppShell.js +2 -5
- package/dist/ui/layout/OverlayFrame.d.ts +1 -25
- package/dist/ui/layout/OverlayFrame.js +0 -24
- package/dist/ui/layout/ScrollViewport.d.ts +3 -0
- package/dist/ui/layout/ScrollViewport.js +17 -5
- package/dist/ui/layout/frame.d.ts +0 -22
- package/dist/ui/layout/frame.js +0 -36
- package/dist/ui/layout/todo-layout.d.ts +1 -3
- package/dist/ui/layout/todo-layout.js +7 -8
- package/dist/ui/layout/viewport-geometry.d.ts +1 -1
- package/dist/ui/layout/viewport-geometry.js +1 -1
- package/dist/ui/live-clamp.d.ts +1 -29
- package/dist/ui/live-clamp.js +1 -29
- package/dist/ui/overlays/HelpOverlay.js +1 -0
- package/dist/ui/run-status-row.d.ts +61 -0
- package/dist/ui/run-status-row.js +70 -0
- package/dist/ui/transcript-text.d.ts +0 -8
- package/dist/ui/transcript-text.js +0 -8
- package/dist/ui/use-startup-notices.d.ts +1 -57
- package/dist/ui/use-startup-notices.js +3 -54
- package/dist/ui/use-wheel-routing.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ui/TodoStrip.d.ts +0 -36
- package/dist/ui/TodoStrip.js +0 -32
package/dist/ui/TodoStrip.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TodoStrip — the inline-mode plan surface (todo-plan-followthrough §3.7 / W2).
|
|
3
|
-
*
|
|
4
|
-
* ASCII ONLY: every glyph comes from `pickGlyphs`; a literal here bypasses the
|
|
5
|
-
* capability probe and shows mojibake on a legacy console. This file is inside
|
|
6
|
-
* the glyph scanner's scope because it is under `ui/`, NOT because of the
|
|
7
|
-
* `todo/` clause (C-4) — moving it would not move the guard rail with it.
|
|
8
|
-
*
|
|
9
|
-
* WHY A STRIP AND NOT THE RAIL. `decideRenderMode` picks inline for every pipe,
|
|
10
|
-
* every `CI=1`, every `TERM=dumb` and every terminal under 12 rows, and inline
|
|
11
|
-
* has no fixed frame to hang a column off (round 1's non-goal 4). Before this,
|
|
12
|
-
* such a session had the tool and a `todo 3/7` counter in the status bar, and no
|
|
13
|
-
* way at all to see WHICH step was running (OQ-1).
|
|
14
|
-
*
|
|
15
|
-
* WHY NOT IN THE STATUS BAR. The bar's left cluster is `flexShrink={0}` and its
|
|
16
|
-
* own comment records what happens when the row over-subscribes: Ink drops a
|
|
17
|
-
* character from EACH cluster and it renders `idl` / `? hel`. A variable-length
|
|
18
|
-
* step title cannot go there (C-7), which is what forces this into its own row.
|
|
19
|
-
*
|
|
20
|
-
* EXACTLY ONE RENDERED ROW, ALWAYS (AC-29). A strip that wrapped would push the
|
|
21
|
-
* composer down by an unpredictable number of rows on every keystroke, which is
|
|
22
|
-
* the worst possible behaviour for the mode with no frame to absorb it — hence
|
|
23
|
-
* `wrap="truncate"` inside a `flexGrow`/`flexShrink` box and no exceptions.
|
|
24
|
-
*/
|
|
25
|
-
import React from 'react';
|
|
26
|
-
import type { Theme } from './theme.js';
|
|
27
|
-
import type { TermCapabilities } from './capabilities.js';
|
|
28
|
-
import type { TodoSnapshot } from '../todo/types.js';
|
|
29
|
-
export interface TodoStripProps {
|
|
30
|
-
snapshot: TodoSnapshot;
|
|
31
|
-
/** Full terminal width; the strip spans the row in inline mode. */
|
|
32
|
-
cols: number;
|
|
33
|
-
theme: Theme;
|
|
34
|
-
caps: TermCapabilities;
|
|
35
|
-
}
|
|
36
|
-
export declare function TodoStrip({ snapshot, cols, theme, caps }: TodoStripProps): React.ReactElement;
|
package/dist/ui/TodoStrip.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
import { pickGlyphs } from './glyphs.js';
|
|
4
|
-
import { TODO_LIMITS } from '../todo/limits.js';
|
|
5
|
-
import { todoAnchorIndex } from '../todo/panel-rows.js';
|
|
6
|
-
export function TodoStrip({ snapshot, cols, theme, caps }) {
|
|
7
|
-
const glyphs = pickGlyphs(caps);
|
|
8
|
-
// THE SAME FUNCTION THE RAIL USES (R-9 / AC-30). Two surfaces that each decide
|
|
9
|
-
// for themselves which step is "current" is two surfaces that disagree, and
|
|
10
|
-
// this one is on screen in exactly the mode where the rail is not, so the
|
|
11
|
-
// disagreement would never be seen side by side and never be reported.
|
|
12
|
-
const anchor = todoAnchorIndex(snapshot.items);
|
|
13
|
-
const item = snapshot.items[anchor];
|
|
14
|
-
const active = item?.status === 'in_progress';
|
|
15
|
-
// `activeForm` while in progress, `content` otherwise — `TodoPanel`'s rule.
|
|
16
|
-
const label = item ? (active ? item.activeForm : item.content) : '';
|
|
17
|
-
// The same degradation the status bar already applies, so the two counters can
|
|
18
|
-
// never disagree about how much room they need.
|
|
19
|
-
const counter = cols >= TODO_LIMITS.statusCompactCols
|
|
20
|
-
? `todo ${snapshot.doneCount}/${snapshot.total}`
|
|
21
|
-
: `[${snapshot.doneCount}/${snapshot.total}]`;
|
|
22
|
-
const showDone = snapshot.doneCount > 0 && cols >= TODO_LIMITS.stripDoneCols;
|
|
23
|
-
return (
|
|
24
|
-
// `width` IS LOAD-BEARING, exactly as it is on `TodoPanel` and for a related
|
|
25
|
-
// reason. Inline mode has no fixed frame, so nothing upstream constrains
|
|
26
|
-
// this row: without an explicit width the flexible middle cell is sized by
|
|
27
|
-
// whatever the parent offers, and a long item overflows the terminal and
|
|
28
|
-
// WRAPS — the one thing this component exists not to do. Pinning it here
|
|
29
|
-
// makes the truncation deterministic and self-contained rather than a
|
|
30
|
-
// property of the tree above.
|
|
31
|
-
_jsxs(Box, { flexDirection: "row", width: cols, overflow: "hidden", children: [_jsx(Box, { flexShrink: 0, children: _jsx(Text, { wrap: "truncate", color: theme.accent, children: counter }) }), _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { wrap: "truncate", color: theme.muted, children: [' ', glyphs.arrowRight, ' '] }) }), _jsx(Box, { flexGrow: 1, flexShrink: 1, overflow: "hidden", children: _jsx(Text, { wrap: "truncate", color: active ? theme.primary : theme.muted, bold: active, children: label }) }), showDone && (_jsx(Box, { flexShrink: 0, children: _jsxs(Text, { wrap: "truncate", color: theme.muted, children: [' ', "+", snapshot.doneCount, " done"] }) }))] }));
|
|
32
|
-
}
|