@projectarachne/cli 0.1.0-beta.2 โ 0.1.0-beta.3
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/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +54 -12
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/components/ApprovalPrompt.d.ts +10 -0
- package/dist/tui/components/ApprovalPrompt.d.ts.map +1 -0
- package/dist/tui/components/ApprovalPrompt.js +50 -0
- package/dist/tui/components/ApprovalPrompt.js.map +1 -0
- package/dist/tui/components/Box.d.ts.map +1 -1
- package/dist/tui/components/Box.js +4 -1
- package/dist/tui/components/Box.js.map +1 -1
- package/dist/tui/components/ChatInput.d.ts.map +1 -1
- package/dist/tui/components/ChatInput.js +10 -2
- package/dist/tui/components/ChatInput.js.map +1 -1
- package/dist/tui/components/CommandInput.d.ts.map +1 -1
- package/dist/tui/components/CommandInput.js +9 -2
- package/dist/tui/components/CommandInput.js.map +1 -1
- package/dist/tui/components/Content.d.ts.map +1 -1
- package/dist/tui/components/Content.js +11 -4
- package/dist/tui/components/Content.js.map +1 -1
- package/dist/tui/components/DagView.d.ts.map +1 -1
- package/dist/tui/components/DagView.js +5 -3
- package/dist/tui/components/DagView.js.map +1 -1
- package/dist/tui/components/ElapsedTimer.d.ts +8 -0
- package/dist/tui/components/ElapsedTimer.d.ts.map +1 -0
- package/dist/tui/components/ElapsedTimer.js +35 -0
- package/dist/tui/components/ElapsedTimer.js.map +1 -0
- package/dist/tui/components/FileChangesList.d.ts +8 -0
- package/dist/tui/components/FileChangesList.d.ts.map +1 -0
- package/dist/tui/components/FileChangesList.js +40 -0
- package/dist/tui/components/FileChangesList.js.map +1 -0
- package/dist/tui/components/Footer.d.ts.map +1 -1
- package/dist/tui/components/Footer.js +10 -1
- package/dist/tui/components/Footer.js.map +1 -1
- package/dist/tui/components/Frame.d.ts.map +1 -1
- package/dist/tui/components/Frame.js +8 -1
- package/dist/tui/components/Frame.js.map +1 -1
- package/dist/tui/components/GoalInput.d.ts.map +1 -1
- package/dist/tui/components/GoalInput.js +10 -1
- package/dist/tui/components/GoalInput.js.map +1 -1
- package/dist/tui/components/Header.d.ts +1 -1
- package/dist/tui/components/Header.d.ts.map +1 -1
- package/dist/tui/components/Header.js +9 -2
- package/dist/tui/components/Header.js.map +1 -1
- package/dist/tui/components/Help.d.ts.map +1 -1
- package/dist/tui/components/Help.js +8 -1
- package/dist/tui/components/Help.js.map +1 -1
- package/dist/tui/components/HomeView.d.ts.map +1 -1
- package/dist/tui/components/HomeView.js +2 -1
- package/dist/tui/components/HomeView.js.map +1 -1
- package/dist/tui/components/OutputView.d.ts.map +1 -1
- package/dist/tui/components/OutputView.js +9 -2
- package/dist/tui/components/OutputView.js.map +1 -1
- package/dist/tui/components/PlannerView.d.ts +6 -2
- package/dist/tui/components/PlannerView.d.ts.map +1 -1
- package/dist/tui/components/PlannerView.js +19 -4
- package/dist/tui/components/PlannerView.js.map +1 -1
- package/dist/tui/components/Settings.d.ts.map +1 -1
- package/dist/tui/components/Settings.js +171 -4
- package/dist/tui/components/Settings.js.map +1 -1
- package/dist/tui/components/Sidebar.d.ts.map +1 -1
- package/dist/tui/components/Sidebar.js +11 -2
- package/dist/tui/components/Sidebar.js.map +1 -1
- package/dist/tui/components/Splash.d.ts.map +1 -1
- package/dist/tui/components/Splash.js +4 -1
- package/dist/tui/components/Splash.js.map +1 -1
- package/dist/tui/components/StepEditor.d.ts.map +1 -1
- package/dist/tui/components/StepEditor.js +10 -3
- package/dist/tui/components/StepEditor.js.map +1 -1
- package/dist/tui/components/ThemeDesigner.d.ts.map +1 -1
- package/dist/tui/components/ThemeDesigner.js +297 -8
- package/dist/tui/components/ThemeDesigner.js.map +1 -1
- package/dist/tui/components/VerboseOutput.d.ts +8 -0
- package/dist/tui/components/VerboseOutput.d.ts.map +1 -0
- package/dist/tui/components/VerboseOutput.js +34 -0
- package/dist/tui/components/VerboseOutput.js.map +1 -0
- package/dist/tui/components/WorkflowPicker.d.ts.map +1 -1
- package/dist/tui/components/WorkflowPicker.js +3 -2
- package/dist/tui/components/WorkflowPicker.js.map +1 -1
- package/dist/tui/components/index.d.ts +4 -0
- package/dist/tui/components/index.d.ts.map +1 -1
- package/dist/tui/components/index.js +4 -0
- package/dist/tui/components/index.js.map +1 -1
- package/dist/tui/services/executor.d.ts +3 -2
- package/dist/tui/services/executor.d.ts.map +1 -1
- package/dist/tui/services/executor.js +56 -1
- package/dist/tui/services/executor.js.map +1 -1
- package/dist/tui/services/fileWatcher.d.ts +17 -0
- package/dist/tui/services/fileWatcher.d.ts.map +1 -0
- package/dist/tui/services/fileWatcher.js +150 -0
- package/dist/tui/services/fileWatcher.js.map +1 -0
- package/dist/tui/services/generateSteps.d.ts +12 -1
- package/dist/tui/services/generateSteps.d.ts.map +1 -1
- package/dist/tui/services/generateSteps.js +66 -3
- package/dist/tui/services/generateSteps.js.map +1 -1
- package/dist/tui/services/settings.d.ts +12 -1
- package/dist/tui/services/settings.d.ts.map +1 -1
- package/dist/tui/services/settings.js +79 -0
- package/dist/tui/services/settings.js.map +1 -1
- package/dist/tui/services/theme.d.ts +48 -0
- package/dist/tui/services/theme.d.ts.map +1 -1
- package/dist/tui/services/theme.js +209 -0
- package/dist/tui/services/theme.js.map +1 -1
- package/dist/tui/services/themeGenerator.d.ts.map +1 -1
- package/dist/tui/services/themeGenerator.js +26 -1
- package/dist/tui/services/themeGenerator.js.map +1 -1
- package/dist/tui/types.d.ts +47 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandInput.js","sourceRoot":"","sources":["../../../src/tui/components/CommandInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,SAAS,M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EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE;IAC/D,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE;CACtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Content.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK7E,UAAU,YAAY;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,OAAO,GAAI,+JAarB,YAAY,4CAoGd,CAAC"}
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
|
+
import { resolveComponentBorder } from '../services/theme.js';
|
|
3
4
|
import { useTheme } from '../theme-context.js';
|
|
4
5
|
import { DagView } from './DagView.js';
|
|
5
6
|
import { StepEditor } from './StepEditor.js';
|
|
6
7
|
import { OutputView } from './OutputView.js';
|
|
7
8
|
export const Content = ({ view, workflow, selectedStepIndex, providers, output, isRunning, editingField, onPromptChange, onProviderSelect, onModelSelect, onEditingChange, focused = true, }) => {
|
|
8
9
|
const theme = useTheme();
|
|
9
|
-
const
|
|
10
|
+
const spacing = theme.layout.spacing;
|
|
11
|
+
const contentBorder = resolveComponentBorder(theme, 'content', {
|
|
12
|
+
borderStyle: theme.borders.panel,
|
|
13
|
+
borderColor: theme.colors.panel.border,
|
|
14
|
+
borderFocus: theme.colors.panel.borderFocus,
|
|
15
|
+
});
|
|
16
|
+
const borderColor = focused ? contentBorder.borderFocus : contentBorder.borderColor;
|
|
10
17
|
const selectedStep = workflow?.steps[selectedStepIndex];
|
|
11
18
|
// No workflow loaded
|
|
12
19
|
if (!workflow) {
|
|
13
|
-
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle:
|
|
20
|
+
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle: contentBorder.borderStyle, borderColor: borderColor, padding: spacing.md, justifyContent: "center", alignItems: "center", children: [_jsx(Text, { color: theme.colors.muted, children: "No workflow loaded" }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "Select a workflow from the sidebar or press [N] to create new" })] }));
|
|
14
21
|
}
|
|
15
22
|
// Running view
|
|
16
23
|
if (view === 'running' || view === 'output') {
|
|
17
|
-
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle:
|
|
24
|
+
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle: contentBorder.borderStyle, borderColor: borderColor, children: [_jsxs(Box, { paddingX: spacing.sm, marginBottom: 0, children: [_jsx(Text, { color: theme.colors.accent, bold: true, children: workflow.name || 'Untitled Workflow' }), workflow.dirty && _jsx(Text, { color: theme.colors.warning, children: " [unsaved]" })] }), _jsx(OutputView, { steps: workflow.steps, output: output, isRunning: isRunning })] }));
|
|
18
25
|
}
|
|
19
26
|
// Main/editing view
|
|
20
|
-
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle:
|
|
27
|
+
return (_jsxs(Box, { flexDirection: "column", flexGrow: 1, borderStyle: contentBorder.borderStyle, borderColor: borderColor, children: [_jsxs(Box, { paddingX: spacing.sm, marginBottom: 0, justifyContent: "space-between", children: [_jsxs(Box, { children: [_jsx(Text, { color: theme.colors.accent, bold: true, children: workflow.name || 'Untitled Workflow' }), workflow.dirty && _jsx(Text, { color: theme.colors.warning, children: " [unsaved]" })] }), _jsx(Text, { color: theme.colors.muted, children: workflow.path || 'not saved' })] }), _jsx(DagView, { steps: workflow.steps, selectedIndex: selectedStepIndex }), _jsx(Box, { paddingX: spacing.sm, children: _jsx(Text, { color: theme.colors.muted, children: 'โ'.repeat(50) }) }), selectedStep ? (_jsx(StepEditor, { step: selectedStep, providers: providers, editing: editingField, onPromptChange: onPromptChange, onProviderSelect: onProviderSelect, onModelSelect: onModelSelect, onEditingChange: onEditingChange })) : (_jsx(Box, { padding: spacing.md, children: _jsx(Text, { color: theme.colors.muted, children: "No step selected. Press [A] to add a step." }) }))] }));
|
|
21
28
|
};
|
|
22
29
|
//# sourceMappingURL=Content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/tui/components/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iB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,GAAG,IAAC,OAAO,EAAE,OAAO,CAAC,EAAE,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,2DAAmD,GAC9E,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DagView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/DagView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,UAAU,YAAY;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"DagView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/DagView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,UAAU,YAAY;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;AAuFD,eAAO,MAAM,OAAO,GAAI,0BAA0B,YAAY,4CAqC7D,CAAC"}
|
|
@@ -15,6 +15,7 @@ const getStatusIcon = (status, themeColors) => {
|
|
|
15
15
|
};
|
|
16
16
|
const StepNode = ({ step, index, isSelected, isLast, }) => {
|
|
17
17
|
const theme = useTheme();
|
|
18
|
+
const spacing = theme.layout.spacing;
|
|
18
19
|
const { icon, color } = getStatusIcon(step.status, {
|
|
19
20
|
success: theme.colors.success,
|
|
20
21
|
warning: theme.colors.warning,
|
|
@@ -29,19 +30,20 @@ const StepNode = ({ step, index, isSelected, isLast, }) => {
|
|
|
29
30
|
? theme.colors.danger
|
|
30
31
|
: theme.colors.panel.border;
|
|
31
32
|
const title = step.title || step.id;
|
|
32
|
-
return (_jsxs(Box, { flexDirection: "row", alignItems: "center", children: [_jsxs(Box, { flexDirection: "column", borderStyle:
|
|
33
|
+
return (_jsxs(Box, { flexDirection: "row", alignItems: "center", children: [_jsxs(Box, { flexDirection: "column", borderStyle: theme.borders.panel, borderColor: borderColor, paddingX: spacing.sm, width: 18, children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsxs(Text, { color: theme.colors.muted, dimColor: true, children: ["#", index + 1] }), _jsx(Text, { color: color, children: icon })] }), _jsx(Text, { color: isSelected ? theme.colors.accent : theme.colors.text, bold: isSelected, children: title.length > 12 ? title.slice(0, 10) + '..' : title }), _jsxs(Text, { color: theme.colors.muted, dimColor: true, children: [step.provider, step.model ? `:${step.model}` : ''] }), step.duration !== undefined && (_jsxs(Text, { color: theme.colors.muted, dimColor: true, children: [(step.duration / 1000).toFixed(1), "s"] })), step.commitHash && (_jsx(Text, { color: theme.colors.success, dimColor: true, children: step.commitHash }))] }), !isLast && (_jsx(Box, { marginX: spacing.sm, children: _jsx(Text, { color: theme.colors.muted, children: "\u2500\u2500\u2500\u25B6" }) }))] }));
|
|
33
34
|
};
|
|
34
35
|
export const DagView = ({ steps, selectedIndex }) => {
|
|
35
36
|
const theme = useTheme();
|
|
37
|
+
const spacing = theme.layout.spacing;
|
|
36
38
|
if (steps.length === 0) {
|
|
37
|
-
return (_jsx(Box, { padding:
|
|
39
|
+
return (_jsx(Box, { padding: spacing.md, children: _jsx(Text, { color: theme.colors.muted, children: "No steps in workflow. Press [A] to add a step." }) }));
|
|
38
40
|
}
|
|
39
41
|
// Show steps in rows of 3
|
|
40
42
|
const rows = [];
|
|
41
43
|
for (let i = 0; i < steps.length; i += 3) {
|
|
42
44
|
rows.push(steps.slice(i, i + 3));
|
|
43
45
|
}
|
|
44
|
-
return (_jsx(Box, { flexDirection: "column", padding:
|
|
46
|
+
return (_jsx(Box, { flexDirection: "column", padding: spacing.sm, children: rows.map((row, rowIndex) => (_jsx(Box, { flexDirection: "row", marginBottom: spacing.sm, children: row.map((step, colIndex) => {
|
|
45
47
|
const globalIndex = rowIndex * 3 + colIndex;
|
|
46
48
|
return (_jsx(StepNode, { step: step, index: globalIndex, isSelected: globalIndex === selectedIndex, isLast: globalIndex === steps.length - 1 }, step.id));
|
|
47
49
|
}) }, rowIndex))) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DagView.js","sourceRoot":"","sources":["../../../src/tui/components/DagView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,aAAa,GAAG,CACpB,MAAsB,EACtB,WAAgF,EAC/C,EAAE;IACnC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC;QACnD,KAAK,QAAQ;YACX,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;QAClD;YACE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;IACnD,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAChB,IAAI,EACJ,KAAK,EACL,UAAU,EACV,MAAM,GAMP,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE;QACjD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QAC7B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;KAC1B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W,KAAK,aAAa,EACzC,MAAM,EAAE,WAAW,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,IAJnC,IAAI,CAAC,EAAE,CAKZ,CACH,CAAC;YACJ,CAAC,CAAC,IAZM,QAAQ,CAaZ,CACP,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ElapsedTimerProps {
|
|
2
|
+
workflowStartTime: number | null;
|
|
3
|
+
stepStartTime: number | null;
|
|
4
|
+
isRunning: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ElapsedTimer: ({ workflowStartTime, stepStartTime, isRunning, }: ElapsedTimerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ElapsedTimer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElapsedTimer.d.ts","sourceRoot":"","sources":["../../../src/tui/components/ElapsedTimer.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB;AAgBD,eAAO,MAAM,YAAY,GAAI,kDAI1B,iBAAiB,mDA+BnB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { Box, Text } from 'ink';
|
|
4
|
+
import { useTheme } from '../theme-context.js';
|
|
5
|
+
function formatElapsed(ms) {
|
|
6
|
+
const seconds = Math.floor(ms / 1000);
|
|
7
|
+
const minutes = Math.floor(seconds / 60);
|
|
8
|
+
const hours = Math.floor(minutes / 60);
|
|
9
|
+
const s = seconds % 60;
|
|
10
|
+
const m = minutes % 60;
|
|
11
|
+
if (hours > 0) {
|
|
12
|
+
return `${hours}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;
|
|
13
|
+
}
|
|
14
|
+
return `${m}:${s.toString().padStart(2, '0')}`;
|
|
15
|
+
}
|
|
16
|
+
export const ElapsedTimer = ({ workflowStartTime, stepStartTime, isRunning, }) => {
|
|
17
|
+
const theme = useTheme();
|
|
18
|
+
const spacing = theme.layout.spacing;
|
|
19
|
+
const [now, setNow] = useState(Date.now());
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!isRunning)
|
|
22
|
+
return;
|
|
23
|
+
const interval = setInterval(() => {
|
|
24
|
+
setNow(Date.now());
|
|
25
|
+
}, 1000);
|
|
26
|
+
return () => clearInterval(interval);
|
|
27
|
+
}, [isRunning]);
|
|
28
|
+
if (!isRunning || !workflowStartTime) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const totalElapsed = now - workflowStartTime;
|
|
32
|
+
const stepElapsed = stepStartTime ? now - stepStartTime : 0;
|
|
33
|
+
return (_jsx(Box, { marginBottom: spacing.sm, children: _jsxs(Text, { color: theme.colors.muted, children: ["Step: ", _jsx(Text, { color: theme.colors.warning, children: formatElapsed(stepElapsed) }), ' | ', "Total: ", _jsx(Text, { color: theme.colors.accent, children: formatElapsed(totalElapsed) })] }) }));
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=ElapsedTimer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElapsedTimer.js","sourceRoot":"","sources":["../../../src/tui/components/ElapsedTimer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,SAAS,aAAa,CAAC,EAAU;IAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,E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SAAS,CAAC,CAAC,CAAC;IAEhB,IAAI,CAAC,SAAS,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,YAAY,GAAG,GAAG,GAAG,iBAAiB,CAAC;IAC7C,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5D,OAAO,CACL,KAAC,GAAG,IAAC,YAAY,EAAE,OAAO,CAAC,EAAE,YAC3B,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,uBACvB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,YAAG,aAAa,CAAC,WAAW,CAAC,GAAQ,EAC3E,KAAK,aACC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,YAAG,aAAa,CAAC,YAAY,CAAC,GAAQ,IACxE,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FileChange } from '../types.js';
|
|
2
|
+
interface FileChangesListProps {
|
|
3
|
+
changes: FileChange[];
|
|
4
|
+
maxItems?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const FileChangesList: ({ changes, maxItems, }: FileChangesListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=FileChangesList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileChangesList.d.ts","sourceRoot":"","sources":["../../../src/tui/components/FileChangesList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,GAAI,wBAG7B,oBAAoB,mDA8DtB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from 'ink';
|
|
3
|
+
import { useTheme } from '../theme-context.js';
|
|
4
|
+
export const FileChangesList = ({ changes, maxItems = 5, }) => {
|
|
5
|
+
const theme = useTheme();
|
|
6
|
+
const spacing = theme.layout.spacing;
|
|
7
|
+
if (changes.length === 0) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
// Show most recent changes first, limited to maxItems
|
|
11
|
+
const displayChanges = changes.slice(0, maxItems);
|
|
12
|
+
const getIcon = (type) => {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case 'created':
|
|
15
|
+
return '+';
|
|
16
|
+
case 'modified':
|
|
17
|
+
return 'M';
|
|
18
|
+
case 'deleted':
|
|
19
|
+
return '-';
|
|
20
|
+
default:
|
|
21
|
+
return '?';
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const getColor = (type) => {
|
|
25
|
+
switch (type) {
|
|
26
|
+
case 'created':
|
|
27
|
+
return theme.colors.success;
|
|
28
|
+
case 'modified':
|
|
29
|
+
return theme.colors.warning;
|
|
30
|
+
case 'deleted':
|
|
31
|
+
return theme.colors.danger;
|
|
32
|
+
default:
|
|
33
|
+
return theme.colors.text;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: spacing.sm, children: [_jsxs(Box, { marginBottom: 0, children: [_jsx(Text, { color: theme.colors.muted, bold: true, children: "FILES CHANGED" }), changes.length > maxItems && (_jsxs(Text, { color: theme.colors.muted, children: [" (+", changes.length - maxItems, " more)"] }))] }), displayChanges.map((change, index) => (_jsxs(Box, { children: [_jsxs(Text, { color: getColor(change.type), bold: true, children: [getIcon(change.type), ' '] }), _jsx(Text, { color: theme.colors.text, children: change.path.length > 50
|
|
37
|
+
? '...' + change.path.slice(-47)
|
|
38
|
+
: change.path })] }, `${change.path}-${index}`)))] }));
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=FileChangesList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileChangesList.js","sourceRoot":"","sources":["../../../src/tui/components/FileChangesList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,OAAO,EACP,QAAQ,GAAG,CAAC,GACS,EAAE,EAAE;IACzB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IAErC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,sDAAsD;IACtD,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAElD,MAAM,OAAO,GAAG,CAAC,IAAwB,EAAU,EAAE;QACnD,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb,KAAK,UAAU;gBACb,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb;gBACE,OAAO,GAAG,CAAC;QACf,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,IAAwB,EAAU,EAAE;QACpD,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;YAC9B,KAAK,UAAU;gBACb,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;YAC9B,KAAK,SAAS;gBACZ,OAA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","sourceRoot":"","sources":["../../../src/tui/components/Footer.tsx"],"names":[],"mappings":"AAIA,UAAU,WAAW;IACnB,SAAS,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,MAAM,GAAI,eAAe,WAAW,4CAgChD,CAAC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
|
+
import { resolveComponentBorder } from '../services/theme.js';
|
|
4
|
+
import { useTheme } from '../theme-context.js';
|
|
3
5
|
export const Footer = ({ shortcuts }) => {
|
|
4
|
-
|
|
6
|
+
const theme = useTheme();
|
|
7
|
+
const spacing = theme.layout.spacing;
|
|
8
|
+
const footerBorder = resolveComponentBorder(theme, 'footer', {
|
|
9
|
+
borderStyle: theme.borders.panel,
|
|
10
|
+
borderColor: theme.colors.panel.border,
|
|
11
|
+
borderFocus: theme.colors.panel.borderFocus,
|
|
12
|
+
});
|
|
13
|
+
return (_jsxs(Box, { borderStyle: footerBorder.borderStyle, borderColor: footerBorder.borderColor, paddingX: spacing.sm, justifyContent: "space-between", children: [_jsx(Box, { children: shortcuts.map((shortcut, index) => (_jsxs(Box, { marginRight: spacing.sm, children: [_jsxs(Text, { color: theme.colors.accent, children: ["[", shortcut.key, "]"] }), _jsxs(Text, { color: theme.colors.text, children: [" ", shortcut.label] }), index < shortcuts.length - 1 && (_jsx(Text, { color: theme.colors.muted, children: " " }))] }, shortcut.key))) }), _jsx(Box, { children: _jsx(Text, { color: theme.colors.muted, children: "[/] Commands [?] Help [Q] Quit" }) })] }));
|
|
5
14
|
};
|
|
6
15
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/tui/components/Footer.tsx"],"names":[],"mappings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AAC,KAAK,IAAQ,EACvD,KAAK,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CAC/B,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,kBAAU,CAC1C,KALO,QAAQ,CAAC,GAAG,CAMhB,CACP,CAAC,GACE,EACN,KAAC,GAAG,cACF,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,iDAAyC,GACpE,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Frame.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Frame.tsx"],"names":[],"mappings":"AAIA,UAAU,UAAU;IAGlB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,eAAO,MAAM,KAAK,GAAI,cAAc,UAAU,4CA2B7C,CAAC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, useStdout } from 'ink';
|
|
3
|
+
import { resolveComponentBorder } from '../services/theme.js';
|
|
3
4
|
import { useTheme } from '../theme-context.js';
|
|
4
5
|
export const Frame = ({ children }) => {
|
|
5
6
|
const theme = useTheme();
|
|
6
7
|
const { stdout } = useStdout();
|
|
7
8
|
const rows = stdout?.rows ?? 24;
|
|
8
|
-
|
|
9
|
+
const spacing = theme.layout.spacing;
|
|
10
|
+
const frameBorder = resolveComponentBorder(theme, 'frame', {
|
|
11
|
+
borderStyle: theme.borders.frame,
|
|
12
|
+
borderColor: theme.colors.frame.outer,
|
|
13
|
+
borderFocus: theme.colors.frame.middle,
|
|
14
|
+
});
|
|
15
|
+
return (_jsx(Box, { flexDirection: "column", width: "100%", height: rows, minHeight: rows, children: _jsx(Box, { borderStyle: frameBorder.borderStyle, borderColor: frameBorder.borderColor, paddingX: spacing.sm, paddingY: spacing.xs, width: "100%", height: rows, minHeight: rows, flexDirection: "column", children: children }) }));
|
|
9
16
|
};
|
|
10
17
|
//# sourceMappingURL=Frame.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../src/tui/components/Frame.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAc,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../src/tui/components/Frame.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAc,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;IAChC,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACrC,MAAM,WAAW,GAAG,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE;QACzD,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;QAChC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;QACrC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;KACvC,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,YACpE,KAAC,GAAG,IACF,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,QAAQ,EAAE,OAAO,CAAC,EAAE,EACpB,QAAQ,EAAE,OAAO,CAAC,EAAE,EACpB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,IAAI,EACf,aAAa,EAAC,QAAQ,YAErB,QAAQ,GACL,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoalInput.d.ts","sourceRoot":"","sources":["../../../src/tui/components/GoalInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GoalInput.d.ts","sourceRoot":"","sources":["../../../src/tui/components/GoalInput.tsx"],"names":[],"mappings":"AAMA,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,GAAI,mEAMvB,cAAc,4CAgEhB,CAAC"}
|
|
@@ -2,7 +2,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
import TextInput from 'ink-text-input';
|
|
4
4
|
import Spinner from 'ink-spinner';
|
|
5
|
+
import { resolveComponentBorder } from '../services/theme.js';
|
|
6
|
+
import { useTheme } from '../theme-context.js';
|
|
5
7
|
export const GoalInput = ({ goal, onGoalChange, onSubmit, isGenerating, generatingStatus, }) => {
|
|
6
|
-
|
|
8
|
+
const theme = useTheme();
|
|
9
|
+
const spacing = theme.layout.spacing;
|
|
10
|
+
const inputBorder = resolveComponentBorder(theme, 'chat', {
|
|
11
|
+
borderStyle: theme.borders.input,
|
|
12
|
+
borderColor: theme.colors.input.border,
|
|
13
|
+
borderFocus: theme.colors.input.borderActive,
|
|
14
|
+
});
|
|
15
|
+
return (_jsxs(Box, { flexDirection: "column", padding: spacing.sm, children: [_jsx(Box, { marginBottom: spacing.sm, children: _jsx(Text, { color: theme.colors.accent, bold: true, children: "What do you want to build?" }) }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "Describe your goal and Arachne will generate a multi-step workflow." }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "Press Enter to generate steps, or Esc to cancel." }), _jsx(Box, { marginTop: spacing.sm, marginBottom: spacing.sm, children: _jsx(Box, { borderStyle: inputBorder.borderStyle, borderColor: isGenerating ? theme.colors.warning : inputBorder.borderColor, padding: spacing.sm, width: "100%", children: isGenerating ? (_jsxs(Box, { children: [_jsx(Spinner, { type: "dots" }), _jsxs(Text, { color: theme.colors.warning, children: [" ", generatingStatus || 'Generating steps...'] })] })) : (_jsx(TextInput, { value: goal, onChange: onGoalChange, placeholder: "e.g., Build a REST API with authentication and tests", onSubmit: onSubmit })) }) }), !isGenerating && (_jsx(Box, { marginTop: spacing.sm, children: _jsx(Text, { color: theme.colors.muted, children: "Examples:" }) })), !isGenerating && (_jsxs(Box, { flexDirection: "column", marginLeft: spacing.md, children: [_jsx(Text, { color: theme.colors.muted, dimColor: true, children: "\u2022 \"Analyze this codebase and suggest improvements\"" }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "\u2022 \"Write a CLI tool that converts CSV to JSON\"" }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "\u2022 \"Create unit tests for the user authentication module\"" }), _jsx(Text, { color: theme.colors.muted, dimColor: true, children: "\u2022 \"Review PR #123 and summarize the changes\"" })] }))] }));
|
|
7
16
|
};
|
|
8
17
|
//# sourceMappingURL=GoalInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoalInput.js","sourceRoot":"","sources":["../../../src/tui/components/GoalInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,OAAO,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"GoalInput.js","sourceRoot":"","sources":["../../../src/tui/components/GoalInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAU/C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,gBAAgB,GACD,EAAE,EAAE;IACnB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACrC,MAAM,WAAW,GAAG,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE;QACxD,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;QAChC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;QACtC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY;KAC7C,CAAC,CAAC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0BAExB,GACH,CACP,EACA,CAAC,YAAY,IAAI,CAChB,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,UAAU,EAAE,OAAO,CAAC,EAAE,aAChD,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,gFAA0D,EACnG,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,4EAAsD,EAC/F,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,sFAAgE,EACzG,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,0EAAoD,IACzF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,6 @@ interface HeaderProps {
|
|
|
3
3
|
version?: string;
|
|
4
4
|
gitBranch?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const Header: ({ userName,
|
|
6
|
+
export declare const Header: ({ userName, gitBranch }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":"AAWA,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,GAAI,yBAAyB,WAAW,4CAmB1D,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
import { useTheme } from '../theme-context.js';
|
|
4
|
-
|
|
4
|
+
const LOGO_LINES = [
|
|
5
|
+
'โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ',
|
|
6
|
+
'โ โโโ โโโ โโโ โ โโโ โโโ โโโ โโโ โโโ โโโ โโโ โ โ โโ โ โโโ โ',
|
|
7
|
+
'โ โโโ โโโ โ โ โ โ โโโ โ โ โโโ โโโ โโโ โ โโโ โ โโ โโโ โ',
|
|
8
|
+
'โ โ โ โ โโโ โโโ โโโ โโโ โ โ โ โ โ โ โ โโโ โ โ โ โ โโโ โ',
|
|
9
|
+
'โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ',
|
|
10
|
+
];
|
|
11
|
+
export const Header = ({ userName, gitBranch }) => {
|
|
5
12
|
const theme = useTheme();
|
|
6
|
-
return (_jsxs(Box, {
|
|
13
|
+
return (_jsxs(Box, { flexDirection: "row", justifyContent: "space-between", children: [_jsx(Box, { flexDirection: "column", children: LOGO_LINES.map((line, index) => (_jsx(Text, { color: theme.colors.accent, children: line }, index))) }), _jsxs(Box, { flexDirection: "column", alignItems: "flex-end", justifyContent: "center", children: [userName && _jsx(Text, { color: theme.colors.text, children: userName }), gitBranch && (_jsx(Text, { color: theme.colors.muted, children: gitBranch }))] })] }));
|
|
7
14
|
};
|
|
8
15
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,UAAU,GAAG;IACjB,mEAAmE;IACnE,mEAAmE;IACnE,mEAAmE;IACnE,mEAAmE;IACnE,mEAAmE;CACpE,CAAC;AAQF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAe,EAAE,EAAE;IAC7D,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,cAAc,EAAC,eAAe,aACrD,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACxB,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,KAAC,IAAI,IAAa,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,YACzC,IAAI,IADI,KAAK,CAET,CACR,CAAC,GACE,EACN,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,UAAU,EAAC,UAAU,EAAC,cAAc,EAAC,QAAQ,aACtE,QAAQ,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,YAAG,QAAQ,GAAQ,EAC7D,SAAS,IAAI,CACZ,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,YAAG,SAAS,GAAQ,CACpD,IACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Help.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Help.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Help.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Help.tsx"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,aAAa,SAAS,4CAkJ1C,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
|
+
import { resolveComponentBorder } from '../services/theme.js';
|
|
3
4
|
import { useTheme } from '../theme-context.js';
|
|
4
5
|
export const Help = ({ onClose }) => {
|
|
5
6
|
const theme = useTheme();
|
|
6
|
-
|
|
7
|
+
const spacing = theme.layout.spacing;
|
|
8
|
+
const dialogBorder = resolveComponentBorder(theme, 'dialog', {
|
|
9
|
+
borderStyle: theme.borders.dialogFocus,
|
|
10
|
+
borderColor: theme.colors.panel.borderFocus,
|
|
11
|
+
borderFocus: theme.colors.panel.borderFocus,
|
|
12
|
+
});
|
|
13
|
+
return (_jsxs(Box, { flexDirection: "column", borderStyle: dialogBorder.borderStyle, borderColor: dialogBorder.borderColor, padding: spacing.sm, width: 60, children: [_jsxs(Box, { marginBottom: spacing.sm, justifyContent: "space-between", children: [_jsx(Text, { color: theme.colors.accent, bold: true, children: "Project Arachne Help" }), _jsx(Text, { color: theme.colors.muted, children: "[Esc] to close" })] }), _jsx(Box, { borderStyle: theme.borders.panel, borderColor: theme.colors.panel.border, marginBottom: spacing.sm }), _jsx(Box, { marginBottom: spacing.sm, children: _jsx(Text, { color: theme.colors.warning, bold: true, children: "Navigation" }) }), _jsxs(Box, { flexDirection: "column", marginLeft: spacing.md, marginBottom: spacing.sm, children: [_jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "\u2191/\u2193" }), _jsx(Text, { color: theme.colors.muted, children: " Navigate steps / workflow list" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "Enter" }), _jsx(Text, { color: theme.colors.muted, children: " Open selected item" })] })] }), _jsx(Box, { marginBottom: spacing.sm, children: _jsx(Text, { color: theme.colors.warning, bold: true, children: "Commands" }) }), _jsxs(Box, { flexDirection: "column", marginLeft: spacing.md, marginBottom: spacing.sm, children: [_jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "/" }), _jsx(Text, { color: theme.colors.muted, children: " Open command palette" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "A" }), _jsx(Text, { color: theme.colors.muted, children: " Auto plan (home) / Change provider (workflow)" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "M" }), _jsx(Text, { color: theme.colors.muted, children: " Manual plan (home/load) / Change model (workflow)" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "L" }), _jsx(Text, { color: theme.colors.muted, children: " Load workflow" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "S" }), _jsx(Text, { color: theme.colors.muted, children: " Settings (home) / Save workflow" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "P" }), _jsx(Text, { color: theme.colors.muted, children: " Plan (load/workflow) / Pause execution" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "C" }), _jsx(Text, { color: theme.colors.muted, children: " Focus input" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "Tab" }), _jsx(Text, { color: theme.colors.muted, children: " Toggle focus (steps/details)" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "Esc Esc" }), _jsx(Text, { color: theme.colors.muted, children: " Quit from home screen" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "+" }), _jsx(Text, { color: theme.colors.muted, children: " Add step to workflow" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "-" }), _jsx(Text, { color: theme.colors.muted, children: " Remove step from workflow" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "E" }), _jsx(Text, { color: theme.colors.muted, children: " Edit selected step" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "R" }), _jsx(Text, { color: theme.colors.muted, children: " Run workflow / Resume" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "V" }), _jsx(Text, { color: theme.colors.muted, children: " View full prompt" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "/theme" }), _jsx(Text, { color: theme.colors.muted, children: " Open Theme Studio" })] })] }), _jsx(Box, { marginBottom: spacing.sm, children: _jsx(Text, { color: theme.colors.warning, bold: true, children: "During Execution" }) }), _jsxs(Box, { flexDirection: "column", marginLeft: spacing.md, marginBottom: spacing.sm, children: [_jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "Space" }), _jsx(Text, { color: theme.colors.muted, children: " Pause / Resume execution" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "R" }), _jsx(Text, { color: theme.colors.muted, children: " Resume execution" })] }), _jsxs(Text, { children: [_jsx(Text, { color: theme.colors.accent, children: "Ctrl+C" }), _jsx(Text, { color: theme.colors.muted, children: " Cancel execution" })] })] }), _jsx(Box, { marginBottom: spacing.sm, children: _jsx(Text, { color: theme.colors.warning, bold: true, children: "AI Features" }) }), _jsxs(Box, { flexDirection: "column", marginLeft: spacing.md, children: [_jsx(Text, { color: theme.colors.muted, children: "\u2022 Describe a goal, AI generates steps" }), _jsx(Text, { color: theme.colors.muted, children: "\u2022 Each step runs with full file access" }), _jsx(Text, { color: theme.colors.muted, children: "\u2022 Changes auto-committed to git" }), _jsx(Text, { color: theme.colors.muted, children: "\u2022 Supports claude, codex, gemini, ollama" })] })] }));
|
|
7
14
|
};
|
|
8
15
|
//# sourceMappingURL=Help.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Help.js","sourceRoot":"","sources":["../../../src/tui/components/Help.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OA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AK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,8DAAiD,IAC5E,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomeView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/HomeView.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,+
|
|
1
|
+
{"version":3,"file":"HomeView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/HomeView.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,+CA4BpB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { Box, Text } from 'ink';
|
|
|
3
3
|
import { useTheme } from '../theme-context.js';
|
|
4
4
|
export const HomeView = () => {
|
|
5
5
|
const theme = useTheme();
|
|
6
|
-
|
|
6
|
+
const spacing = theme.layout.spacing;
|
|
7
|
+
return (_jsx(Box, { flexDirection: "column", padding: spacing.sm, flexGrow: 1, children: _jsxs(Box, { flexDirection: "column", marginBottom: spacing.md, children: [_jsx(Text, { color: theme.colors.accent, bold: true, children: "QUICK ACTIONS" }), _jsxs(Box, { marginTop: spacing.sm, flexDirection: "row", gap: spacing.lg, children: [_jsxs(Text, { color: theme.colors.text, children: [_jsx(Text, { color: theme.colors.warning, children: "[A]" }), " Auto plan"] }), _jsxs(Text, { color: theme.colors.text, children: [_jsx(Text, { color: theme.colors.warning, children: "[M]" }), " Manual plan"] }), _jsxs(Text, { color: theme.colors.text, children: [_jsx(Text, { color: theme.colors.warning, children: "[L]" }), " Load workflow"] }), _jsxs(Text, { color: theme.colors.text, children: [_jsx(Text, { color: theme.colors.warning, children: "[S]" }), " Settings"] })] })] }) }));
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=HomeView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomeView.js","sourceRoot":"","sources":["../../../src/tui/components/HomeView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IA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AAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,aAC5B,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,oBAAY,sBACxC,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,aAC5B,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,oBAAY,iBACxC,IACH,IACF,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/OutputView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OutputView.d.ts","sourceRoot":"","sources":["../../../src/tui/components/OutputView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,UAAU,eAAe;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,GAAI,8BAA8B,eAAe,4CAgHvE,CAAC"}
|