@tacuchi/agent-workflow-cli 8.0.0 → 9.0.0
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/dist/cli/main.js +0 -0
- package/dist/cli/tui/app.d.ts.map +1 -1
- package/dist/cli/tui/app.js +119 -61
- package/dist/cli/tui/app.js.map +1 -1
- package/dist/cli/tui/components/activity-feed.d.ts +16 -0
- package/dist/cli/tui/components/activity-feed.d.ts.map +1 -0
- package/dist/cli/tui/components/activity-feed.js +35 -0
- package/dist/cli/tui/components/activity-feed.js.map +1 -0
- package/dist/cli/tui/components/command-palette.d.ts +0 -1
- package/dist/cli/tui/components/command-palette.d.ts.map +1 -1
- package/dist/cli/tui/components/command-palette.js +5 -5
- package/dist/cli/tui/components/command-palette.js.map +1 -1
- package/dist/cli/tui/components/confirm-banner.d.ts +10 -0
- package/dist/cli/tui/components/confirm-banner.d.ts.map +1 -0
- package/dist/cli/tui/components/confirm-banner.js +11 -0
- package/dist/cli/tui/components/confirm-banner.js.map +1 -0
- package/dist/cli/tui/components/detail-panel.d.ts +34 -0
- package/dist/cli/tui/components/detail-panel.d.ts.map +1 -0
- package/dist/cli/tui/components/detail-panel.js +83 -0
- package/dist/cli/tui/components/detail-panel.js.map +1 -0
- package/dist/cli/tui/components/family-card.d.ts +5 -1
- package/dist/cli/tui/components/family-card.d.ts.map +1 -1
- package/dist/cli/tui/components/family-card.js +34 -4
- package/dist/cli/tui/components/family-card.js.map +1 -1
- package/dist/cli/tui/components/inline-wizard.d.ts +19 -0
- package/dist/cli/tui/components/inline-wizard.d.ts.map +1 -0
- package/dist/cli/tui/components/inline-wizard.js +16 -0
- package/dist/cli/tui/components/inline-wizard.js.map +1 -0
- package/dist/cli/tui/components/list-row.d.ts +11 -3
- package/dist/cli/tui/components/list-row.d.ts.map +1 -1
- package/dist/cli/tui/components/list-row.js +71 -13
- package/dist/cli/tui/components/list-row.js.map +1 -1
- package/dist/cli/tui/components/page-head.d.ts +8 -16
- package/dist/cli/tui/components/page-head.d.ts.map +1 -1
- package/dist/cli/tui/components/page-head.js +21 -14
- package/dist/cli/tui/components/page-head.js.map +1 -1
- package/dist/cli/tui/components/phase-card.d.ts +2 -1
- package/dist/cli/tui/components/phase-card.d.ts.map +1 -1
- package/dist/cli/tui/components/phase-card.js +9 -4
- package/dist/cli/tui/components/phase-card.js.map +1 -1
- package/dist/cli/tui/components/quick-actions.d.ts +9 -0
- package/dist/cli/tui/components/quick-actions.d.ts.map +1 -0
- package/dist/cli/tui/components/quick-actions.js +9 -0
- package/dist/cli/tui/components/quick-actions.js.map +1 -0
- package/dist/cli/tui/components/section-head.d.ts +10 -0
- package/dist/cli/tui/components/section-head.d.ts.map +1 -0
- package/dist/cli/tui/components/section-head.js +8 -0
- package/dist/cli/tui/components/section-head.js.map +1 -0
- package/dist/cli/tui/components/sidebar.d.ts +27 -0
- package/dist/cli/tui/components/sidebar.d.ts.map +1 -0
- package/dist/cli/tui/components/sidebar.js +37 -0
- package/dist/cli/tui/components/sidebar.js.map +1 -0
- package/dist/cli/tui/components/stat-tile.d.ts +4 -2
- package/dist/cli/tui/components/stat-tile.d.ts.map +1 -1
- package/dist/cli/tui/components/stat-tile.js +9 -8
- package/dist/cli/tui/components/stat-tile.js.map +1 -1
- package/dist/cli/tui/components/toast-stack.d.ts +3 -3
- package/dist/cli/tui/components/toast-stack.js +3 -3
- package/dist/cli/tui/data/activity.d.ts +21 -0
- package/dist/cli/tui/data/activity.d.ts.map +1 -0
- package/dist/cli/tui/data/activity.js +83 -0
- package/dist/cli/tui/data/activity.js.map +1 -0
- package/dist/cli/tui/tabs/mcp-tab.d.ts +3 -11
- package/dist/cli/tui/tabs/mcp-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/mcp-tab.js +113 -85
- package/dist/cli/tui/tabs/mcp-tab.js.map +1 -1
- package/dist/cli/tui/tabs/project-tab.d.ts +0 -11
- package/dist/cli/tui/tabs/project-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/project-tab.js +38 -78
- package/dist/cli/tui/tabs/project-tab.js.map +1 -1
- package/dist/cli/tui/tabs/skills-tab.d.ts +1 -21
- package/dist/cli/tui/tabs/skills-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/skills-tab.js +65 -85
- package/dist/cli/tui/tabs/skills-tab.js.map +1 -1
- package/dist/cli/tui/tabs/status-tab.d.ts +4 -1
- package/dist/cli/tui/tabs/status-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/status-tab.js +50 -11
- package/dist/cli/tui/tabs/status-tab.js.map +1 -1
- package/dist/cli/tui/tabs/workflow-tab.d.ts +3 -1
- package/dist/cli/tui/tabs/workflow-tab.d.ts.map +1 -1
- package/dist/cli/tui/tabs/workflow-tab.js +31 -15
- package/dist/cli/tui/tabs/workflow-tab.js.map +1 -1
- package/dist/cli/tui/theme.d.ts +75 -55
- package/dist/cli/tui/theme.d.ts.map +1 -1
- package/dist/cli/tui/theme.js +75 -50
- package/dist/cli/tui/theme.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/commands/orchestration.d.ts +0 -5
- package/dist/cli/commands/orchestration.d.ts.map +0 -1
- package/dist/cli/commands/orchestration.js +0 -84
- package/dist/cli/commands/orchestration.js.map +0 -1
- package/dist/cli/commands/wave2-extras.d.ts +0 -7
- package/dist/cli/commands/wave2-extras.d.ts.map +0 -1
- package/dist/cli/commands/wave2-extras.js +0 -87
- package/dist/cli/commands/wave2-extras.js.map +0 -1
- package/dist/cli/commands/wave2-final.d.ts +0 -8
- package/dist/cli/commands/wave2-final.d.ts.map +0 -1
- package/dist/cli/commands/wave2-final.js +0 -134
- package/dist/cli/commands/wave2-final.js.map +0 -1
- package/dist/cli/commands/wave4d-simple.d.ts +0 -6
- package/dist/cli/commands/wave4d-simple.d.ts.map +0 -1
- package/dist/cli/commands/wave4d-simple.js +0 -138
- package/dist/cli/commands/wave4d-simple.js.map +0 -1
- package/dist/cli/tui/components/action-modal.d.ts +0 -33
- package/dist/cli/tui/components/action-modal.d.ts.map +0 -1
- package/dist/cli/tui/components/action-modal.js +0 -41
- package/dist/cli/tui/components/action-modal.js.map +0 -1
- package/dist/cli/tui/components/confirm-modal.d.ts +0 -12
- package/dist/cli/tui/components/confirm-modal.d.ts.map +0 -1
- package/dist/cli/tui/components/confirm-modal.js +0 -18
- package/dist/cli/tui/components/confirm-modal.js.map +0 -1
- package/dist/cli/tui/components/connections-grid.d.ts +0 -8
- package/dist/cli/tui/components/connections-grid.d.ts.map +0 -1
- package/dist/cli/tui/components/connections-grid.js +0 -55
- package/dist/cli/tui/components/connections-grid.js.map +0 -1
- package/dist/cli/tui/components/connections-table.d.ts +0 -5
- package/dist/cli/tui/components/connections-table.d.ts.map +0 -1
- package/dist/cli/tui/components/connections-table.js +0 -11
- package/dist/cli/tui/components/connections-table.js.map +0 -1
- package/dist/cli/tui/components/footer.d.ts +0 -4
- package/dist/cli/tui/components/footer.d.ts.map +0 -1
- package/dist/cli/tui/components/footer.js +0 -6
- package/dist/cli/tui/components/footer.js.map +0 -1
- package/dist/cli/tui/components/frame-box.d.ts +0 -10
- package/dist/cli/tui/components/frame-box.d.ts.map +0 -1
- package/dist/cli/tui/components/frame-box.js +0 -9
- package/dist/cli/tui/components/frame-box.js.map +0 -1
- package/dist/cli/tui/components/header.d.ts +0 -14
- package/dist/cli/tui/components/header.d.ts.map +0 -1
- package/dist/cli/tui/components/header.js +0 -21
- package/dist/cli/tui/components/header.js.map +0 -1
- package/dist/cli/tui/components/host-chip.d.ts +0 -28
- package/dist/cli/tui/components/host-chip.d.ts.map +0 -1
- package/dist/cli/tui/components/host-chip.js +0 -35
- package/dist/cli/tui/components/host-chip.js.map +0 -1
- package/dist/cli/tui/components/keymap-bar.d.ts +0 -17
- package/dist/cli/tui/components/keymap-bar.d.ts.map +0 -1
- package/dist/cli/tui/components/keymap-bar.js +0 -13
- package/dist/cli/tui/components/keymap-bar.js.map +0 -1
- package/dist/cli/tui/components/pill.d.ts +0 -16
- package/dist/cli/tui/components/pill.d.ts.map +0 -1
- package/dist/cli/tui/components/pill.js +0 -24
- package/dist/cli/tui/components/pill.js.map +0 -1
- package/dist/cli/tui/components/sectioned-menu.d.ts +0 -24
- package/dist/cli/tui/components/sectioned-menu.d.ts.map +0 -1
- package/dist/cli/tui/components/sectioned-menu.js +0 -72
- package/dist/cli/tui/components/sectioned-menu.js.map +0 -1
- package/dist/cli/tui/components/tab-bar.d.ts +0 -23
- package/dist/cli/tui/components/tab-bar.d.ts.map +0 -1
- package/dist/cli/tui/components/tab-bar.js +0 -17
- package/dist/cli/tui/components/tab-bar.js.map +0 -1
- package/dist/cli/tui/screens/main-menu.d.ts +0 -8
- package/dist/cli/tui/screens/main-menu.d.ts.map +0 -1
- package/dist/cli/tui/screens/main-menu.js +0 -24
- package/dist/cli/tui/screens/main-menu.js.map +0 -1
- package/dist/cli/tui/screens/mcp-done.d.ts +0 -10
- package/dist/cli/tui/screens/mcp-done.d.ts.map +0 -1
- package/dist/cli/tui/screens/mcp-done.js +0 -24
- package/dist/cli/tui/screens/mcp-done.js.map +0 -1
- package/dist/cli/tui/screens/mcp-wizard.d.ts +0 -10
- package/dist/cli/tui/screens/mcp-wizard.d.ts.map +0 -1
- package/dist/cli/tui/screens/mcp-wizard.js +0 -97
- package/dist/cli/tui/screens/mcp-wizard.js.map +0 -1
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
2
|
+
import { Box, Text, useInput } from "ink";
|
|
3
|
+
import { useState } from "react";
|
|
3
4
|
import { FamilyCard } from "../components/family-card.js";
|
|
4
|
-
import { FrameBox } from "../components/frame-box.js";
|
|
5
5
|
import { PageHead } from "../components/page-head.js";
|
|
6
6
|
import { PhaseCard } from "../components/phase-card.js";
|
|
7
|
+
import { QuickActions } from "../components/quick-actions.js";
|
|
8
|
+
import { SectionHead } from "../components/section-head.js";
|
|
7
9
|
import { WORKFLOW_CONTENT } from "../data/workflow-content.js";
|
|
8
|
-
import { colors
|
|
9
|
-
function
|
|
10
|
-
const out = [];
|
|
11
|
-
for (let i = 0; i < arr.length; i += size) {
|
|
12
|
-
out.push(arr.slice(i, i + size));
|
|
13
|
-
}
|
|
14
|
-
return out;
|
|
15
|
-
}
|
|
16
|
-
export function WorkflowTab(_props) {
|
|
10
|
+
import { colors } from "../theme.js";
|
|
11
|
+
export function WorkflowTab({ isActive, activePhase = 0 }) {
|
|
17
12
|
const w = WORKFLOW_CONTENT;
|
|
18
|
-
const
|
|
13
|
+
const [cursor, setCursor] = useState(0);
|
|
14
|
+
const [expandedId, setExpandedId] = useState(w.commandFamilies[0]?.id ?? null);
|
|
15
|
+
useInput((_input, key) => {
|
|
16
|
+
if (!isActive)
|
|
17
|
+
return;
|
|
18
|
+
if (key.upArrow) {
|
|
19
|
+
setCursor((c) => Math.max(0, c - 1));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (key.downArrow) {
|
|
23
|
+
setCursor((c) => Math.min(w.commandFamilies.length - 1, c + 1));
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (key.return) {
|
|
27
|
+
const fam = w.commandFamilies[cursor];
|
|
28
|
+
if (fam)
|
|
29
|
+
setExpandedId((prev) => (prev === fam.id ? null : fam.id));
|
|
30
|
+
}
|
|
31
|
+
}, { isActive });
|
|
19
32
|
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(PageHead, { title: "Workflow", count: {
|
|
20
|
-
label: `${
|
|
21
|
-
tone: "
|
|
22
|
-
}
|
|
33
|
+
label: `${w.slashCommands.length} commands · ${w.commandFamilies.length} families · ${w.hooks.length} hooks`,
|
|
34
|
+
tone: "accent",
|
|
35
|
+
}, action: _jsx(Text, { color: colors.mute, children: "universal session-lifecycle harness" }) }), _jsxs(Box, { flexDirection: "row", children: [_jsxs(Box, { flexDirection: "column", flexGrow: 1, paddingRight: 2, children: [_jsx(SectionHead, { label: "Session lifecycle", rightAction: "day-to-day flow" }), _jsx(Box, { marginTop: 0, flexDirection: "column", children: w.phases.map((p) => (_jsx(PhaseCard, { phase: p, active: activePhase === p.n }, p.id))) })] }), _jsxs(Box, { flexDirection: "column", flexGrow: 1, paddingLeft: 1, children: [_jsx(SectionHead, { label: "Command families", count: w.commandFamilies.length, rightAction: "\u21B5 to expand" }), _jsxs(Box, { marginTop: 0, flexDirection: "column", children: [w.commandFamilies.map((f, i) => (_jsx(FamilyCard, { family: f, active: i === cursor, expanded: expandedId === f.id }, f.id))), w.commandFamilies.length > 8 ? (_jsxs(Text, { color: colors.faint, children: ["\u2026+", w.commandFamilies.length - 8, " more families"] })) : null] }), _jsx(SectionHead, { label: "Slash \u00B7 Hooks", rightAction: "claude \u00B7 codex", marginTop: 1 }), _jsxs(Box, { marginLeft: 2, marginTop: 0, flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: colors.bright, bold: true, children: w.slashCommands.length }), _jsx(Text, { color: colors.dim, children: " slash commands \u00B7 " }), _jsx(Text, { color: colors.accent, children: "/agent-workflow:<name>" })] }), _jsxs(Box, { flexWrap: "wrap", children: [_jsx(Text, { color: colors.bright, bold: true, children: w.hooks.length }), _jsx(Text, { color: colors.dim, children: " hooks \u00B7 " }), w.hooks.map((h, i) => (_jsxs(Box, { children: [i > 0 ? _jsx(Text, { color: colors.dim, children: ", " }) : null, _jsx(Text, { color: colors.ok, children: h.name })] }, h.name)))] })] })] })] }), _jsx(Box, { marginTop: 1, children: _jsx(QuickActions, { actions: [
|
|
36
|
+
{ key: "⏎", label: "expand" },
|
|
37
|
+
{ key: "^K", label: "palette" },
|
|
38
|
+
] }) })] }));
|
|
23
39
|
}
|
|
24
40
|
//# sourceMappingURL=workflow-tab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-tab.js","sourceRoot":"","sources":["../../../../src/cli/tui/tabs/workflow-tab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAA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AAC,MAAM,GAClB,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG,wCAA2B,EAClD,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,uCAAqC,IAC3D,EACN,MAAC,GAAG,IAAC,QAAQ,EAAC,MAAM,aAClB,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,kBAC7B,CAAC,CAAC,KAAK,CAAC,MAAM,GACV,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG,+BAAkB,EACxC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,MAAC,GAAG,eACD,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG,mBAAW,CAAC,CAAC,CAAC,IAAI,EAClD,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,EAAE,YAAG,CAAC,CAAC,IAAI,GAAQ,KAF/B,CAAC,CAAC,IAAI,CAGV,CACP,CAAC,IACE,IACF,IACF,IACF,EAEN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,YAAY,IACX,OAAO,EAAE;wBACP,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;wBAC7B,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;qBAChC,GACD,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
package/dist/cli/tui/theme.d.ts
CHANGED
|
@@ -1,57 +1,72 @@
|
|
|
1
1
|
export declare const palette: {
|
|
2
|
-
readonly bg: "#
|
|
3
|
-
readonly bgElev1: "#
|
|
4
|
-
readonly bgElev2: "#
|
|
5
|
-
readonly bgElev3: "#
|
|
6
|
-
readonly bgHover: "#
|
|
7
|
-
readonly bgSelected: "#
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
2
|
+
readonly bg: "#0c0a14";
|
|
3
|
+
readonly bgElev1: "#0c0a14";
|
|
4
|
+
readonly bgElev2: "#0c0a14";
|
|
5
|
+
readonly bgElev3: "#0c0a14";
|
|
6
|
+
readonly bgHover: "#1a172a";
|
|
7
|
+
readonly bgSelected: "#3a2f5c";
|
|
8
|
+
readonly bgHighlight: "#3a2f5c";
|
|
9
|
+
readonly borderFaint: "#1a172a";
|
|
10
|
+
readonly border: "#2a2540";
|
|
11
|
+
readonly borderStrong: "#4a4368";
|
|
12
|
+
readonly borderAccent: "#a78bfa";
|
|
13
|
+
readonly bright: "#f4f1fc";
|
|
14
|
+
readonly text: "#d4d0e2";
|
|
15
|
+
readonly dim: "#9b94b8";
|
|
16
|
+
readonly mute: "#6e6588";
|
|
17
|
+
readonly faint: "#4a4368";
|
|
18
|
+
readonly textBright: "#f4f1fc";
|
|
19
|
+
readonly textDim: "#9b94b8";
|
|
20
|
+
readonly textMute: "#6e6588";
|
|
21
|
+
readonly textFaint: "#4a4368";
|
|
22
|
+
readonly accent: "#a78bfa";
|
|
23
|
+
readonly accentSoft: "#c4b5fd";
|
|
24
|
+
readonly purple: "#a78bfa";
|
|
25
|
+
readonly purpleSoft: "#c4b5fd";
|
|
26
|
+
readonly blue: "#93c5fd";
|
|
27
|
+
readonly cyan: "#93c5fd";
|
|
28
|
+
readonly green: "#6ee7b7";
|
|
29
|
+
readonly greenDim: "#34d399";
|
|
30
|
+
readonly yellow: "#fbbf24";
|
|
31
|
+
readonly orange: "#fbbf24";
|
|
32
|
+
readonly red: "#fb7185";
|
|
33
|
+
readonly ok: "#6ee7b7";
|
|
34
|
+
readonly warn: "#fbbf24";
|
|
35
|
+
readonly err: "#fb7185";
|
|
36
|
+
readonly info: "#93c5fd";
|
|
32
37
|
};
|
|
33
38
|
export declare const colors: {
|
|
34
|
-
readonly primary: "#
|
|
35
|
-
readonly accent: "#
|
|
36
|
-
readonly accentSoft: "#
|
|
37
|
-
readonly secondary: "#
|
|
38
|
-
readonly success: "#
|
|
39
|
-
readonly warning: "#
|
|
40
|
-
readonly error: "#
|
|
41
|
-
readonly info: "#
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
39
|
+
readonly primary: "#a78bfa";
|
|
40
|
+
readonly accent: "#a78bfa";
|
|
41
|
+
readonly accentSoft: "#c4b5fd";
|
|
42
|
+
readonly secondary: "#c4b5fd";
|
|
43
|
+
readonly success: "#6ee7b7";
|
|
44
|
+
readonly warning: "#fbbf24";
|
|
45
|
+
readonly error: "#fb7185";
|
|
46
|
+
readonly info: "#93c5fd";
|
|
47
|
+
readonly purple: "#a78bfa";
|
|
48
|
+
readonly fg: "#d4d0e2";
|
|
49
|
+
readonly fgBright: "#f4f1fc";
|
|
50
|
+
readonly fgSubtle: "#9b94b8";
|
|
51
|
+
readonly fgMoreSubtle: "#6e6588";
|
|
52
|
+
readonly fgFaint: "#4a4368";
|
|
53
|
+
readonly border: "#2a2540";
|
|
54
|
+
readonly borderFaint: "#1a172a";
|
|
55
|
+
readonly borderStrong: "#4a4368";
|
|
56
|
+
readonly borderActive: "#a78bfa";
|
|
57
|
+
readonly bg: "#0c0a14";
|
|
58
|
+
readonly bgElev: "#0c0a14";
|
|
59
|
+
readonly bgHover: "#1a172a";
|
|
60
|
+
readonly bgSelected: "#3a2f5c";
|
|
61
|
+
readonly bgHighlight: "#3a2f5c";
|
|
62
|
+
readonly bright: "#f4f1fc";
|
|
63
|
+
readonly text: "#d4d0e2";
|
|
64
|
+
readonly dim: "#9b94b8";
|
|
65
|
+
readonly mute: "#6e6588";
|
|
66
|
+
readonly faint: "#4a4368";
|
|
67
|
+
readonly ok: "#6ee7b7";
|
|
68
|
+
readonly warn: "#fbbf24";
|
|
69
|
+
readonly err: "#fb7185";
|
|
55
70
|
};
|
|
56
71
|
export declare const icons: {
|
|
57
72
|
readonly check: "✓";
|
|
@@ -60,14 +75,14 @@ export declare const icons: {
|
|
|
60
75
|
readonly spinner: "⋯";
|
|
61
76
|
readonly arrow: "→";
|
|
62
77
|
readonly section: "─";
|
|
63
|
-
readonly focusBullet: "
|
|
78
|
+
readonly focusBullet: "▎";
|
|
64
79
|
readonly dimBullet: " ";
|
|
65
|
-
readonly bullet: "
|
|
80
|
+
readonly bullet: "·";
|
|
66
81
|
readonly diamond: "◆";
|
|
67
82
|
readonly brand: "◆";
|
|
68
83
|
readonly promptMark: "›";
|
|
69
|
-
readonly tabActiveLeft: "
|
|
70
|
-
readonly tabActiveRight: "
|
|
84
|
+
readonly tabActiveLeft: "";
|
|
85
|
+
readonly tabActiveRight: "";
|
|
71
86
|
readonly tabSeparator: " ";
|
|
72
87
|
readonly divider: "─";
|
|
73
88
|
readonly chevron: "›";
|
|
@@ -101,6 +116,11 @@ export declare const icons: {
|
|
|
101
116
|
readonly alertDot: "●";
|
|
102
117
|
readonly ring: "●";
|
|
103
118
|
readonly pin: "⌖";
|
|
119
|
+
readonly focusBar: "▎";
|
|
120
|
+
readonly caret: "▍";
|
|
121
|
+
readonly expandCollapsed: "▸";
|
|
122
|
+
readonly expandExpanded: "▾";
|
|
123
|
+
readonly sectionDot: "·";
|
|
104
124
|
};
|
|
105
125
|
export type ColorName = (typeof colors)[keyof typeof colors];
|
|
106
126
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/theme.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/cli/tui/theme.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDV,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCT,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDR,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/cli/tui/theme.js
CHANGED
|
@@ -1,52 +1,60 @@
|
|
|
1
|
-
// Paleta
|
|
1
|
+
// Paleta mono violet — handoff design_handoff_tui_simplified (v9.0.0).
|
|
2
2
|
// Hex strings — Ink 5 acepta `Text color="#xxx"`.
|
|
3
3
|
//
|
|
4
4
|
// Convención:
|
|
5
|
-
// - `accent`
|
|
6
|
-
// - `
|
|
7
|
-
// -
|
|
8
|
-
// -
|
|
9
|
-
// - Semánticos: `ok / warn / err / info`.
|
|
5
|
+
// - `accent` — único acento de marca (violet). Focus, selección, brand glyph.
|
|
6
|
+
// - `accentSoft` — hover state, sub-accent.
|
|
7
|
+
// - Texto: 5 niveles (bright/text/dim/mute/faint).
|
|
8
|
+
// - Border: 2 niveles (border/borderFaint).
|
|
9
|
+
// - Semánticos: `ok / warn / err / info / purple`.
|
|
10
10
|
export const palette = {
|
|
11
|
-
// surfaces
|
|
12
|
-
bg: "#
|
|
13
|
-
bgElev1: "#
|
|
14
|
-
bgElev2: "#
|
|
15
|
-
bgElev3: "#
|
|
16
|
-
bgHover: "#
|
|
17
|
-
bgSelected: "#
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
11
|
+
// surfaces
|
|
12
|
+
bg: "#0c0a14",
|
|
13
|
+
bgElev1: "#0c0a14",
|
|
14
|
+
bgElev2: "#0c0a14",
|
|
15
|
+
bgElev3: "#0c0a14",
|
|
16
|
+
bgHover: "#1a172a",
|
|
17
|
+
bgSelected: "#3a2f5c",
|
|
18
|
+
// Highlight para filas focused — fondo violet visible tipo marker.
|
|
19
|
+
bgHighlight: "#3a2f5c",
|
|
20
|
+
// borders
|
|
21
|
+
borderFaint: "#1a172a",
|
|
22
|
+
border: "#2a2540",
|
|
23
|
+
borderStrong: "#4a4368",
|
|
24
|
+
borderAccent: "#a78bfa",
|
|
25
|
+
// text (5 niveles)
|
|
26
|
+
bright: "#f4f1fc",
|
|
27
|
+
text: "#d4d0e2",
|
|
28
|
+
dim: "#9b94b8",
|
|
29
|
+
mute: "#6e6588",
|
|
30
|
+
faint: "#4a4368",
|
|
31
|
+
// text legacy aliases
|
|
32
|
+
textBright: "#f4f1fc",
|
|
33
|
+
textDim: "#9b94b8",
|
|
34
|
+
textMute: "#6e6588",
|
|
35
|
+
textFaint: "#4a4368",
|
|
36
|
+
// accent
|
|
37
|
+
accent: "#a78bfa",
|
|
38
|
+
accentSoft: "#c4b5fd",
|
|
39
|
+
// soportes (mantenidos para compat con codebase)
|
|
40
|
+
purple: "#a78bfa",
|
|
41
|
+
purpleSoft: "#c4b5fd",
|
|
42
|
+
blue: "#93c5fd",
|
|
43
|
+
cyan: "#93c5fd",
|
|
44
|
+
green: "#6ee7b7",
|
|
45
|
+
greenDim: "#34d399",
|
|
46
|
+
yellow: "#fbbf24",
|
|
47
|
+
orange: "#fbbf24",
|
|
48
|
+
red: "#fb7185",
|
|
42
49
|
// semánticos
|
|
43
|
-
ok: "#
|
|
44
|
-
warn: "#
|
|
45
|
-
err: "#
|
|
46
|
-
info: "#
|
|
50
|
+
ok: "#6ee7b7",
|
|
51
|
+
warn: "#fbbf24",
|
|
52
|
+
err: "#fb7185",
|
|
53
|
+
info: "#93c5fd",
|
|
47
54
|
};
|
|
48
|
-
//
|
|
55
|
+
// `colors.*` con nombres legacy + nombres canónicos del handoff.
|
|
49
56
|
export const colors = {
|
|
57
|
+
// legacy aliases (preservados para compat con tabs v8)
|
|
50
58
|
primary: palette.accent,
|
|
51
59
|
accent: palette.accent,
|
|
52
60
|
accentSoft: palette.accentSoft,
|
|
@@ -55,11 +63,12 @@ export const colors = {
|
|
|
55
63
|
warning: palette.warn,
|
|
56
64
|
error: palette.err,
|
|
57
65
|
info: palette.info,
|
|
66
|
+
purple: palette.purple,
|
|
58
67
|
fg: palette.text,
|
|
59
|
-
fgBright: palette.
|
|
60
|
-
fgSubtle: palette.
|
|
61
|
-
fgMoreSubtle: palette.
|
|
62
|
-
fgFaint: palette.
|
|
68
|
+
fgBright: palette.bright,
|
|
69
|
+
fgSubtle: palette.dim,
|
|
70
|
+
fgMoreSubtle: palette.mute,
|
|
71
|
+
fgFaint: palette.faint,
|
|
63
72
|
border: palette.border,
|
|
64
73
|
borderFaint: palette.borderFaint,
|
|
65
74
|
borderStrong: palette.borderStrong,
|
|
@@ -68,6 +77,16 @@ export const colors = {
|
|
|
68
77
|
bgElev: palette.bgElev2,
|
|
69
78
|
bgHover: palette.bgHover,
|
|
70
79
|
bgSelected: palette.bgSelected,
|
|
80
|
+
bgHighlight: palette.bgHighlight,
|
|
81
|
+
// canónicos del handoff (nuevos componentes)
|
|
82
|
+
bright: palette.bright,
|
|
83
|
+
text: palette.text,
|
|
84
|
+
dim: palette.dim,
|
|
85
|
+
mute: palette.mute,
|
|
86
|
+
faint: palette.faint,
|
|
87
|
+
ok: palette.ok,
|
|
88
|
+
warn: palette.warn,
|
|
89
|
+
err: palette.err,
|
|
71
90
|
};
|
|
72
91
|
export const icons = {
|
|
73
92
|
check: "✓",
|
|
@@ -76,14 +95,14 @@ export const icons = {
|
|
|
76
95
|
spinner: "⋯",
|
|
77
96
|
arrow: "→",
|
|
78
97
|
section: "─",
|
|
79
|
-
focusBullet: "
|
|
98
|
+
focusBullet: "▎",
|
|
80
99
|
dimBullet: " ",
|
|
81
|
-
bullet: "
|
|
100
|
+
bullet: "·",
|
|
82
101
|
diamond: "◆",
|
|
83
102
|
brand: "◆",
|
|
84
103
|
promptMark: "›",
|
|
85
|
-
tabActiveLeft: "
|
|
86
|
-
tabActiveRight: "
|
|
104
|
+
tabActiveLeft: "",
|
|
105
|
+
tabActiveRight: "",
|
|
87
106
|
tabSeparator: " ",
|
|
88
107
|
divider: "─",
|
|
89
108
|
chevron: "›",
|
|
@@ -117,5 +136,11 @@ export const icons = {
|
|
|
117
136
|
alertDot: "●",
|
|
118
137
|
ring: "●",
|
|
119
138
|
pin: "⌖",
|
|
139
|
+
// canónicos del handoff
|
|
140
|
+
focusBar: "▎",
|
|
141
|
+
caret: "▍",
|
|
142
|
+
expandCollapsed: "▸",
|
|
143
|
+
expandExpanded: "▾",
|
|
144
|
+
sectionDot: "·",
|
|
120
145
|
};
|
|
121
146
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/cli/tui/theme.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/cli/tui/theme.ts"],"names":[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agent-workflow-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Agnostic runtime CLI for session-lifecycle workflows. Auto-detects namespace from any `.<ns>/sessions/` dir in CWD; falls back to 'agent-workflow'. Bundles the universal `agent-workflow` skill (35 skills + 17 commands + 7 hooks template) in the tarball — `self install-skill --target <host>` (obligatory) copies it to the host's skill directory. Multi-empresa parametrization via `profile.json` cascade (flag → AW_PROFILE env → ~/.config/agent-workflow/profile.json → workspace → defaults). Hooks for Claude Code via `self install-hooks --target claude` (JSON merge into ~/.claude/settings.json with backup).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { QtcCommand } from "../registry.js";
|
|
2
|
-
export declare const autoPlanDecideCommand: QtcCommand;
|
|
3
|
-
export declare const topicChangeCheckCommand: QtcCommand;
|
|
4
|
-
export declare const specialtyChooseCommand: QtcCommand;
|
|
5
|
-
//# sourceMappingURL=orchestration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/orchestration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiBjD,eAAO,MAAM,qBAAqB,EAAE,UAUnC,CAAC;AASF,eAAO,MAAM,uBAAuB,EAAE,UAmBrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UA0BpC,CAAC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
|
-
import { shouldSkipFullPlan } from "../../application/auto-plan.js";
|
|
3
|
-
import { chooseSpecialty, detectTopicChange } from "../../application/orchestration.js";
|
|
4
|
-
import { writeStdout } from "../render.js";
|
|
5
|
-
async function readObjetivoIfPresent(args) {
|
|
6
|
-
const inline = args.values.get("objetivo");
|
|
7
|
-
if (inline !== undefined)
|
|
8
|
-
return inline;
|
|
9
|
-
const file = args.values.get("objetivo-file");
|
|
10
|
-
if (file !== undefined) {
|
|
11
|
-
try {
|
|
12
|
-
return await readFile(file, "utf8");
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
export const autoPlanDecideCommand = {
|
|
21
|
-
name: "auto-plan-decide",
|
|
22
|
-
describe: "Decide plan scope (skip|lite|full) for an OBJETIVO.",
|
|
23
|
-
async execute(args) {
|
|
24
|
-
const objetivo = await readObjetivoIfPresent(args);
|
|
25
|
-
const result = shouldSkipFullPlan(objetivo ?? "");
|
|
26
|
-
// Mirror Python json.dumps which emits floats with `.0` suffix even when integral.
|
|
27
|
-
writeStdout(`${stringifyWithFloatField(result, "eta_hours")}\n`);
|
|
28
|
-
return { ok: true, exitCode: 0 };
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
function stringifyWithFloatField(value, floatField) {
|
|
32
|
-
const json = JSON.stringify(value, null, 2);
|
|
33
|
-
// Replace `"floatField": <integer>` with `"floatField": <integer>.0` (preserve Python repr).
|
|
34
|
-
const re = new RegExp(`("${floatField}":\\s+)(-?\\d+)(,?)$`, "gm");
|
|
35
|
-
return json.replace(re, "$1$2.0$3");
|
|
36
|
-
}
|
|
37
|
-
export const topicChangeCheckCommand = {
|
|
38
|
-
name: "topic-change-check",
|
|
39
|
-
describe: "Check whether the current request diverges from session OBJETIVO.",
|
|
40
|
-
async execute(args) {
|
|
41
|
-
const objetivo = await readObjetivoIfPresent(args);
|
|
42
|
-
const request = args.values.get("request");
|
|
43
|
-
if (!objetivo || !request) {
|
|
44
|
-
return {
|
|
45
|
-
ok: false,
|
|
46
|
-
error: {
|
|
47
|
-
code: "INVALID_INPUT",
|
|
48
|
-
message: "se requieren --objetivo (o --objetivo-file) y --request",
|
|
49
|
-
},
|
|
50
|
-
data: { error: "se requieren --objetivo (o --objetivo-file) y --request" },
|
|
51
|
-
exitCode: 1,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
return { ok: true, data: detectTopicChange(objetivo, request), exitCode: 0 };
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
export const specialtyChooseCommand = {
|
|
58
|
-
name: "specialty-choose",
|
|
59
|
-
describe: "Recommend specialty skills for a phase + OBJETIVO.",
|
|
60
|
-
async execute(args) {
|
|
61
|
-
const phase = args.values.get("phase");
|
|
62
|
-
if (!phase) {
|
|
63
|
-
return {
|
|
64
|
-
ok: false,
|
|
65
|
-
error: { code: "INVALID_INPUT", message: "--phase es obligatorio" },
|
|
66
|
-
data: { error: "--phase es obligatorio" },
|
|
67
|
-
exitCode: 1,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
const objetivo = await readObjetivoIfPresent(args);
|
|
71
|
-
const result = chooseSpecialty(phase, objetivo ?? "");
|
|
72
|
-
return {
|
|
73
|
-
ok: true,
|
|
74
|
-
data: {
|
|
75
|
-
phase,
|
|
76
|
-
suggestions: result.suggestions,
|
|
77
|
-
rationale: result.rationale,
|
|
78
|
-
invoke_explicitly: result.invoke_explicitly,
|
|
79
|
-
},
|
|
80
|
-
exitCode: 0,
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=orchestration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.js","sourceRoot":"","sources":["../../../src/cli/commands/orchestration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAIxF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,KAAK,UAAU,qBAAqB,CAAC,IAAgB;IACnD,MAAM,M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KAAK,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC;QACtD,OAAO;YACL,EAAE,EAAE,IAAI;YACR,IAAI,EAAE;gBACJ,KAAK;gBACL,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;aAC5C;YACD,QAAQ,EAAE,CAAC;SACZ,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { QtcCommand } from "../registry.js";
|
|
2
|
-
export declare const stackCommand: QtcCommand;
|
|
3
|
-
export declare const workspaceModeCommand: QtcCommand;
|
|
4
|
-
export declare const skillIndexCommand: QtcCommand;
|
|
5
|
-
export declare const phaseDetectCommand: QtcCommand;
|
|
6
|
-
export declare const workflowsCommand: QtcCommand;
|
|
7
|
-
//# sourceMappingURL=wave2-extras.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wave2-extras.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/wave2-extras.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,UAQ1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAQlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAc/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAgBhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAyB9B,CAAC"}
|