fecode-cli 1.1.2 → 1.2.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.
Files changed (85) hide show
  1. package/README.md +101 -10
  2. package/dist/error-D4a-8BXd.js +56 -0
  3. package/dist/index.js +9770 -4513
  4. package/dist/node.browser-2EgZAKSy.js +46 -0
  5. package/dist/node.browser-B5Gur0wd.js +46 -0
  6. package/dist/node.browser-BSlAsiSV.js +46 -0
  7. package/dist/node.browser-BraUi2yf.js +9 -0
  8. package/dist/node.browser-CdVAMgSg.js +46 -0
  9. package/dist/src-CSWdjU4j.js +31870 -0
  10. package/dist/src-DY3OmBmT.js +33646 -0
  11. package/dist/src-DcYf8vsK.js +31880 -0
  12. package/dist/src-DkWmcv2Q.js +33647 -0
  13. package/package.json +5 -2
  14. package/skills/accessibility/SKILL.md +98 -98
  15. package/skills/css/SKILL.md +90 -90
  16. package/skills/frontend-debugging/SKILL.md +201 -201
  17. package/skills/frontend-design/SKILL.md +358 -358
  18. package/skills/frontend-performance/SKILL.md +89 -89
  19. package/skills/frontend-testing/SKILL.md +87 -87
  20. package/skills/nextjs/SKILL.md +75 -75
  21. package/skills/react/SKILL.md +213 -213
  22. package/skills/responsive-design/SKILL.md +190 -190
  23. package/skills/svelte/SKILL.md +86 -86
  24. package/skills/tailwind/SKILL.md +74 -74
  25. package/skills/ui-review/SKILL.md +245 -245
  26. package/skills/vue/SKILL.md +72 -72
  27. package/dist/App.d.ts +0 -33
  28. package/dist/App.js +0 -2224
  29. package/dist/approvalResolver.d.ts +0 -12
  30. package/dist/approvalResolver.js +0 -112
  31. package/dist/commands.d.ts +0 -11
  32. package/dist/commands.js +0 -33
  33. package/dist/index.d.ts +0 -3
  34. package/dist/ui/AppShell.d.ts +0 -14
  35. package/dist/ui/AppShell.js +0 -25
  36. package/dist/ui/ApprovalPrompt.d.ts +0 -31
  37. package/dist/ui/ApprovalPrompt.js +0 -55
  38. package/dist/ui/BlockedView.d.ts +0 -13
  39. package/dist/ui/BlockedView.js +0 -7
  40. package/dist/ui/CommandPalette.d.ts +0 -8
  41. package/dist/ui/CommandPalette.js +0 -18
  42. package/dist/ui/CurrentStepView.d.ts +0 -16
  43. package/dist/ui/CurrentStepView.js +0 -28
  44. package/dist/ui/DiagnosticsView.d.ts +0 -45
  45. package/dist/ui/DiagnosticsView.js +0 -23
  46. package/dist/ui/ExecutionTimeline.d.ts +0 -15
  47. package/dist/ui/ExecutionTimeline.js +0 -51
  48. package/dist/ui/ExecutionView.d.ts +0 -42
  49. package/dist/ui/ExecutionView.js +0 -20
  50. package/dist/ui/Header.d.ts +0 -15
  51. package/dist/ui/Header.js +0 -47
  52. package/dist/ui/HelpView.d.ts +0 -3
  53. package/dist/ui/HelpView.js +0 -35
  54. package/dist/ui/MessageBubble.d.ts +0 -9
  55. package/dist/ui/MessageBubble.js +0 -58
  56. package/dist/ui/PlanStep.d.ts +0 -16
  57. package/dist/ui/PlanStep.js +0 -71
  58. package/dist/ui/PlanView.d.ts +0 -26
  59. package/dist/ui/PlanView.js +0 -24
  60. package/dist/ui/ProgressBar.d.ts +0 -10
  61. package/dist/ui/ProgressBar.js +0 -14
  62. package/dist/ui/RecoveryView.d.ts +0 -20
  63. package/dist/ui/RecoveryView.js +0 -19
  64. package/dist/ui/ReplanView.d.ts +0 -16
  65. package/dist/ui/ReplanView.js +0 -21
  66. package/dist/ui/ResumeView.d.ts +0 -15
  67. package/dist/ui/ResumeView.js +0 -25
  68. package/dist/ui/RiskNotice.d.ts +0 -10
  69. package/dist/ui/RiskNotice.js +0 -21
  70. package/dist/ui/RunHistoryView.d.ts +0 -15
  71. package/dist/ui/RunHistoryView.js +0 -39
  72. package/dist/ui/StatusBar.d.ts +0 -16
  73. package/dist/ui/StatusBar.js +0 -104
  74. package/dist/ui/TaskInput.d.ts +0 -15
  75. package/dist/ui/TaskInput.js +0 -8
  76. package/dist/ui/ThinkingBlock.d.ts +0 -8
  77. package/dist/ui/ThinkingBlock.js +0 -13
  78. package/dist/ui/ThinkingIndicator.d.ts +0 -7
  79. package/dist/ui/ThinkingIndicator.js +0 -20
  80. package/dist/ui/TurnView.d.ts +0 -13
  81. package/dist/ui/TurnView.js +0 -11
  82. package/dist/ui/WorkspaceStatus.d.ts +0 -20
  83. package/dist/ui/WorkspaceStatus.js +0 -23
  84. package/dist/ui/index.d.ts +0 -26
  85. package/dist/ui/index.js +0 -26
@@ -1,104 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import { Box, Text } from "ink";
4
- const SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
5
- const INTERVAL_MS = 80;
6
- const ACTIVE_STATUSES = new Set([
7
- "executing",
8
- "planning",
9
- "verifying",
10
- "recovering"
11
- ]);
12
- export const StatusBar = ({ status = "idle", activeStep, totalSteps, activeStepTitle, isGenerating = false, hasModal = false, modalType, customMessage, isReconciliation = false, recoveryMode = "confirm", activeView = "main" }) => {
13
- const [frame, setFrame] = useState(0);
14
- const isAnimating = isGenerating || ACTIVE_STATUSES.has(status.toLowerCase());
15
- useEffect(() => {
16
- if (!isAnimating)
17
- return;
18
- const timer = setInterval(() => {
19
- setFrame((prev) => (prev + 1) % SPINNER_FRAMES.length);
20
- }, INTERVAL_MS);
21
- return () => clearInterval(timer);
22
- }, [isAnimating]);
23
- const spinner = isAnimating ? `${SPINNER_FRAMES[frame]} ` : "";
24
- const renderStatusText = () => {
25
- if (customMessage) {
26
- return (_jsxs(Text, { color: "yellow", children: [spinner, customMessage] }));
27
- }
28
- if (activeStep !== undefined && totalSteps !== undefined && totalSteps > 0) {
29
- const stepText = `Step ${activeStep}/${totalSteps}${activeStepTitle ? `: ${activeStepTitle}` : ""}`;
30
- if (status === "executing" || isGenerating) {
31
- return (_jsxs(Text, { color: "green", children: [spinner, "Executing ", stepText] }));
32
- }
33
- if (status === "awaiting_step_approval") {
34
- return _jsxs(Text, { color: "yellow", children: ["\u26A0 Waiting for Approval (", stepText, ")"] });
35
- }
36
- if (status === "verifying") {
37
- return (_jsxs(Text, { color: "cyan", children: [spinner, "Verifying (", stepText, ")"] }));
38
- }
39
- if (status === "blocked") {
40
- return _jsxs(Text, { color: "red", children: ["! Blocked at ", stepText] });
41
- }
42
- }
43
- switch (status.toLowerCase()) {
44
- case "in_progress":
45
- case "generating":
46
- case "executing":
47
- case "running":
48
- return _jsxs(Text, { color: "green", children: [spinner, "Executing task..."] });
49
- case "planning":
50
- return _jsxs(Text, { color: "cyan", children: [spinner, "Generating task plan..."] });
51
- case "awaiting_plan_approval":
52
- return _jsx(Text, { color: "yellow", children: "\u26A0 Plan approval required" });
53
- case "awaiting_step_approval":
54
- return _jsx(Text, { color: "yellow", children: "\u26A0 Step approval required" });
55
- case "verifying":
56
- return _jsxs(Text, { color: "cyan", children: [spinner, "Verifying changes..."] });
57
- case "recovering":
58
- return _jsxs(Text, { color: "yellow", children: [spinner, "Performing recovery..."] });
59
- case "blocked":
60
- return _jsx(Text, { color: "red", children: "! Plan execution blocked" });
61
- case "completed":
62
- return _jsx(Text, { color: "green", children: "\u2713 Task completed" });
63
- case "failed":
64
- return _jsx(Text, { color: "red", children: "\u2717 Task failed" });
65
- case "cancelled":
66
- return _jsx(Text, { color: "gray", children: "\u2298 Task cancelled" });
67
- case "idle":
68
- default:
69
- return _jsx(Text, { color: "gray", children: "\u25CB Ready for task" });
70
- }
71
- };
72
- const renderShortcuts = () => {
73
- if (hasModal) {
74
- if (modalType === "approval") {
75
- return (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "[y]" }), _jsx(Text, { color: "gray", children: " Approve " }), _jsx(Text, { color: "yellow", children: "[n]" }), _jsx(Text, { color: "gray", children: " Reject " }), _jsx(Text, { color: "gray", children: "[Esc] Cancel" })] }));
76
- }
77
- if (modalType === "blocked") {
78
- if (isReconciliation) {
79
- return (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "[r]" }), _jsx(Text, { color: "gray", children: " Recover " }), _jsx(Text, { color: "cyan", children: "[p]" }), _jsx(Text, { color: "gray", children: " Replan " }), _jsx(Text, { color: "gray", children: "[x] Cancel" })] }));
80
- }
81
- return (_jsxs(Box, { children: [_jsx(Text, { color: "green", children: "[c]" }), _jsx(Text, { color: "gray", children: " Continue " }), _jsx(Text, { color: "cyan", children: "[r]" }), _jsx(Text, { color: "gray", children: " Replan " }), _jsx(Text, { color: "gray", children: "[x] Cancel" })] }));
82
- }
83
- if (modalType === "recovery") {
84
- if (recoveryMode === "still_blocked") {
85
- return (_jsxs(Box, { children: [_jsx(Text, { color: "cyan", children: "[r]" }), _jsx(Text, { color: "gray", children: " Replan " }), _jsx(Text, { color: "green", children: "[c]" }), _jsx(Text, { color: "gray", children: " Re-check " }), _jsx(Text, { color: "gray", children: "[x] Cancel" })] }));
86
- }
87
- if (recoveryMode === "continuation") {
88
- return (_jsxs(Box, { children: [_jsx(Text, { color: "green", children: "[y]" }), _jsx(Text, { color: "gray", children: " Continue " }), _jsx(Text, { color: "yellow", children: "[n]" }), _jsx(Text, { color: "gray", children: " Cancel " }), _jsx(Text, { color: "gray", children: "[Esc] Cancel" })] }));
89
- }
90
- return (_jsxs(Box, { children: [_jsx(Text, { color: "green", children: "[y]" }), _jsx(Text, { color: "gray", children: " Proceed " }), _jsx(Text, { color: "yellow", children: "[n]" }), _jsx(Text, { color: "gray", children: " Cancel " }), _jsx(Text, { color: "gray", children: "[Esc] Cancel" })] }));
91
- }
92
- return (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "[y]" }), _jsx(Text, { color: "gray", children: " Yes " }), _jsx(Text, { color: "yellow", children: "[n]" }), _jsx(Text, { color: "gray", children: " No " }), _jsx(Text, { color: "gray", children: "[Esc] Cancel" })] }));
93
- }
94
- if (activeView && activeView !== "main") {
95
- return (_jsxs(Box, { children: [_jsx(Text, { color: "gray", children: "[Esc] Main " }), _jsx(Text, { color: "cyan", children: "[p]" }), _jsx(Text, { color: "gray", children: " Plan " }), _jsx(Text, { color: "cyan", children: "[r]" }), _jsx(Text, { color: "gray", children: " Runs " }), _jsx(Text, { color: "cyan", children: "[d]" }), _jsx(Text, { color: "gray", children: " Diagnostics " }), _jsx(Text, { color: "cyan", children: "[?]" }), _jsx(Text, { color: "gray", children: " Help" })] }));
96
- }
97
- if (isGenerating) {
98
- return (_jsxs(Box, { children: [_jsx(Text, { color: "cyan", children: "[Ctrl+C]" }), _jsx(Text, { color: "gray", children: " Cancel" })] }));
99
- }
100
- return (_jsxs(Box, { children: [_jsx(Text, { color: "cyan", children: "[Ctrl+C]" }), _jsx(Text, { color: "gray", children: " Exit " }), _jsx(Text, { color: "cyan", children: "/plan" }), _jsx(Text, { color: "gray", children: " Plan " }), _jsx(Text, { color: "cyan", children: "/runs" }), _jsx(Text, { color: "gray", children: " Runs " }), _jsx(Text, { color: "cyan", children: "/debug" }), _jsx(Text, { color: "gray", children: " Diagnostics " }), _jsx(Text, { color: "cyan", children: "/help" }), _jsx(Text, { color: "gray", children: " Help" })] }));
101
- };
102
- return (_jsx(Box, { flexDirection: "column", borderStyle: "single", borderColor: "gray", paddingX: 1, marginTop: 1, children: _jsxs(Box, { justifyContent: "space-between", children: [_jsx(Box, { children: renderStatusText() }), _jsx(Box, { children: renderShortcuts() })] }) }));
103
- };
104
- //# sourceMappingURL=StatusBar.js.map
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import type { CommandDef } from "../commands.js";
3
- export interface TaskInputProps {
4
- value: string;
5
- onChange: (value: string) => void;
6
- onSubmit: (value: string) => void;
7
- isDisabled?: boolean;
8
- placeholder?: string;
9
- label?: string;
10
- pendingQuery?: string | null;
11
- suggestions?: CommandDef[];
12
- selectedSuggestion?: number;
13
- }
14
- export declare const TaskInput: React.FC<TaskInputProps>;
15
- //# sourceMappingURL=TaskInput.d.ts.map
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from "ink";
3
- import TextInput from "ink-text-input";
4
- import { CommandPalette } from "./CommandPalette.js";
5
- export const TaskInput = ({ value, onChange, onSubmit, isDisabled = false, placeholder = "Describe task or type /help...", label, pendingQuery, suggestions, selectedSuggestion = 0 }) => {
6
- return (_jsxs(Box, { flexDirection: "column", marginY: 0, children: [!label && (_jsx(Box, { marginBottom: 0, children: _jsx(Text, { color: "gray", dimColor: true, children: "─".repeat(48) }) })), label && (_jsx(Box, { marginBottom: 0, children: _jsx(Text, { bold: true, color: "white", children: label }) })), suggestions && suggestions.length > 0 && (_jsx(CommandPalette, { suggestions: suggestions, selectedIndex: selectedSuggestion })), _jsxs(Box, { children: [_jsx(Text, { color: "cyan", bold: true, children: "\u203A " }), isDisabled ? (_jsx(Text, { color: "gray", children: pendingQuery ? `[queued] ${pendingQuery}` : (value || placeholder) })) : (_jsx(TextInput, { value: value, onChange: onChange, onSubmit: onSubmit, placeholder: placeholder }))] }), isDisabled && pendingQuery && (_jsxs(Box, { marginTop: 0, children: [_jsx(Text, { color: "yellow", children: "\u23CE Queued: " }), _jsx(Text, { color: "white", children: pendingQuery }), _jsx(Text, { color: "gray", children: " (Ctrl+C to cancel)" })] }))] }));
7
- };
8
- //# sourceMappingURL=TaskInput.js.map
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- export interface ThinkingBlockProps {
3
- durationMs: number;
4
- tokenCount?: number;
5
- summary?: string;
6
- }
7
- export declare const ThinkingBlock: React.FC<ThinkingBlockProps>;
8
- //# sourceMappingURL=ThinkingBlock.d.ts.map
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from "ink";
3
- export const ThinkingBlock = ({ durationMs, tokenCount, summary }) => {
4
- if (!durationMs || isNaN(durationMs) || durationMs <= 0)
5
- return null;
6
- const seconds = (durationMs / 1000).toFixed(1);
7
- const tokenText = typeof tokenCount === "number" && !isNaN(tokenCount) && tokenCount > 0
8
- ? `, ${tokenCount} tokens`
9
- : "";
10
- const header = `Thought for ${seconds}s${tokenText}`;
11
- return (_jsxs(Box, { flexDirection: "column", marginLeft: 2, marginBottom: 0, children: [_jsxs(Box, { children: [_jsx(Text, { color: "gray", dimColor: true, children: "\u25B8 " }), _jsx(Text, { color: "gray", dimColor: true, italic: true, children: header })] }), summary && (_jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "gray", dimColor: true, italic: true, wrap: "wrap", children: summary.split("\n")[0] }) }))] }));
12
- };
13
- //# sourceMappingURL=ThinkingBlock.js.map
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export interface ThinkingIndicatorProps {
3
- isActive: boolean;
4
- label?: string;
5
- }
6
- export declare const ThinkingIndicator: React.FC<ThinkingIndicatorProps>;
7
- //# sourceMappingURL=ThinkingIndicator.d.ts.map
@@ -1,20 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import { Box, Text } from "ink";
4
- const SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
5
- const INTERVAL_MS = 80;
6
- export const ThinkingIndicator = ({ isActive, label = "Working..." }) => {
7
- const [frame, setFrame] = useState(0);
8
- useEffect(() => {
9
- if (!isActive)
10
- return;
11
- const timer = setInterval(() => {
12
- setFrame((prev) => (prev + 1) % SPINNER_FRAMES.length);
13
- }, INTERVAL_MS);
14
- return () => clearInterval(timer);
15
- }, [isActive]);
16
- if (!isActive)
17
- return null;
18
- return (_jsxs(Box, { children: [_jsxs(Text, { color: "cyan", children: [SPINNER_FRAMES[frame], " "] }), _jsx(Text, { color: "cyan", children: label })] }));
19
- };
20
- //# sourceMappingURL=ThinkingIndicator.js.map
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export interface TurnViewProps {
3
- prompt: string;
4
- response: string;
5
- status: "thinking" | "streaming" | "done" | "error" | "cancelled";
6
- error?: string;
7
- isLast?: boolean;
8
- thinkingMs?: number;
9
- thinkingTokens?: number;
10
- thinkingSummary?: string;
11
- }
12
- export declare const TurnView: React.FC<TurnViewProps>;
13
- //# sourceMappingURL=TurnView.d.ts.map
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from "ink";
3
- import { MessageBubble } from "./MessageBubble.js";
4
- import { ThinkingBlock } from "./ThinkingBlock.js";
5
- const SEPARATOR = "─".repeat(48);
6
- export const TurnView = ({ prompt, response, status, error, isLast = false, thinkingMs, thinkingTokens, thinkingSummary }) => {
7
- const isStreaming = status === "streaming" || status === "thinking";
8
- const hasError = status === "error";
9
- return (_jsxs(Box, { flexDirection: "column", marginY: 0, children: [_jsx(MessageBubble, { role: "user", content: prompt }), _jsx(Box, { height: 0 }), thinkingMs !== undefined && thinkingMs > 0 && (_jsx(ThinkingBlock, { durationMs: thinkingMs, tokenCount: thinkingTokens, summary: thinkingSummary })), _jsx(MessageBubble, { role: "agent", content: response, isStreaming: isStreaming && !response && !hasError, error: hasError ? (error || "An error occurred.") : undefined }), status === "cancelled" && (_jsx(Box, { marginLeft: 2, marginTop: 0, children: _jsx(Text, { color: "gray", dimColor: true, children: "\u2298 Cancelled" }) })), !isLast && (_jsx(Box, { marginTop: 1, marginBottom: 0, children: _jsx(Text, { color: "gray", dimColor: true, children: SEPARATOR }) }))] }));
10
- };
11
- //# sourceMappingURL=TurnView.js.map
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- export interface WorkspaceStatusProps {
3
- cwd?: string;
4
- branch?: string | null;
5
- isClean?: boolean;
6
- riskLevel?: string;
7
- checkpointRequired?: boolean;
8
- approvalRequired?: boolean;
9
- modifiedFiles?: string[];
10
- stagedFiles?: string[];
11
- untrackedFiles?: string[];
12
- hasDrift?: boolean;
13
- driftReason?: string;
14
- isStale?: boolean;
15
- staleReason?: string;
16
- reconciliationState?: string;
17
- formattedOutput?: string;
18
- }
19
- export declare const WorkspaceStatus: React.FC<WorkspaceStatusProps>;
20
- //# sourceMappingURL=WorkspaceStatus.d.ts.map
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from "ink";
3
- export const WorkspaceStatus = ({ cwd = process.cwd(), branch, isClean = true, riskLevel = "low", checkpointRequired = false, approvalRequired = false, modifiedFiles = [], stagedFiles = [], untrackedFiles = [], hasDrift = false, driftReason, isStale = false, staleReason, reconciliationState, formattedOutput }) => {
4
- if (formattedOutput) {
5
- return (_jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: "gray", paddingX: 1, marginY: 1, children: [_jsx(Box, { marginBottom: 0, children: _jsx(Text, { bold: true, color: "cyan", children: "Git & Workspace Status" }) }), _jsx(Text, { color: "white", children: formattedOutput })] }));
6
- }
7
- const getRiskColor = (risk) => {
8
- switch (risk.toLowerCase()) {
9
- case "critical":
10
- return "red";
11
- case "elevated":
12
- case "high":
13
- return "yellow";
14
- case "low":
15
- return "green";
16
- case "normal":
17
- default:
18
- return "cyan";
19
- }
20
- };
21
- return (_jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: "gray", paddingX: 1, marginY: 1, children: [_jsxs(Box, { justifyContent: "space-between", marginBottom: 0, children: [_jsx(Text, { bold: true, color: "cyan", children: "Git & Workspace Status" }), _jsxs(Box, { children: [_jsx(Text, { color: "gray", children: "Risk: " }), _jsx(Text, { bold: true, color: getRiskColor(riskLevel), children: riskLevel.toUpperCase() })] })] }), _jsxs(Box, { marginTop: 0, children: [_jsx(Text, { color: "gray", children: "Directory: " }), _jsx(Text, { color: "white", children: cwd })] }), branch !== undefined && (_jsxs(Box, { marginTop: 0, justifyContent: "space-between", children: [_jsxs(Box, { children: [_jsx(Text, { color: "gray", children: "Branch: " }), _jsx(Text, { color: "cyan", children: branch || "(detached / none)" }), _jsx(Text, { color: "gray", children: " | State: " }), _jsx(Text, { color: isClean ? "green" : "yellow", children: isClean ? "clean" : "modified" })] }), _jsxs(Box, { children: [_jsx(Text, { color: "gray", children: "Checkpoint: " }), _jsx(Text, { color: checkpointRequired ? "yellow" : "gray", children: checkpointRequired ? "REQUIRED" : "OPTIONAL" }), _jsx(Text, { color: "gray", children: " | Approval: " }), _jsx(Text, { color: approvalRequired ? "yellow" : "gray", children: approvalRequired ? "REQUIRED" : "NONE" })] })] })), hasDrift && (_jsx(Box, { marginTop: 0, children: _jsxs(Text, { color: "yellow", bold: true, children: ["\u26A0 Workspace drift: ", driftReason || "State changed outside session"] }) })), isStale && (_jsx(Box, { marginTop: 0, children: _jsxs(Text, { color: "red", bold: true, children: ["\u26A0 Plan stale: ", staleReason || "Prerequisites or files modified"] }) })), reconciliationState && (_jsxs(Box, { marginTop: 0, children: [_jsx(Text, { color: "gray", children: "Reconciliation: " }), _jsx(Text, { color: "white", children: reconciliationState })] })), modifiedFiles.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 0, children: [_jsxs(Text, { color: "gray", children: ["Modified (", modifiedFiles.length, "):"] }), modifiedFiles.slice(0, 4).map((f, i) => (_jsxs(Text, { color: "yellow", children: [" ", "M ", f] }, `mod-${i}`))), modifiedFiles.length > 4 && (_jsxs(Text, { color: "gray", children: [" ... and ", modifiedFiles.length - 4, " more"] }))] })), stagedFiles.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 0, children: [_jsxs(Text, { color: "gray", children: ["Staged (", stagedFiles.length, "):"] }), stagedFiles.slice(0, 4).map((f, i) => (_jsxs(Text, { color: "green", children: [" ", "A ", f] }, `stg-${i}`)))] })), untrackedFiles.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 0, children: [_jsxs(Text, { color: "gray", children: ["Untracked (", untrackedFiles.length, "):"] }), untrackedFiles.slice(0, 4).map((f, i) => (_jsxs(Text, { color: "gray", children: [" ", "? ", f] }, `unt-${i}`)))] }))] }));
22
- };
23
- //# sourceMappingURL=WorkspaceStatus.js.map
@@ -1,26 +0,0 @@
1
- export * from "./Header.js";
2
- export * from "./StatusBar.js";
3
- export * from "./AppShell.js";
4
- export * from "./ProgressBar.js";
5
- export * from "./CurrentStepView.js";
6
- export * from "./TaskInput.js";
7
- export * from "./PlanStep.js";
8
- export * from "./PlanView.js";
9
- export * from "./ExecutionView.js";
10
- export * from "./ExecutionTimeline.js";
11
- export * from "./ApprovalPrompt.js";
12
- export * from "./RiskNotice.js";
13
- export * from "./BlockedView.js";
14
- export * from "./RecoveryView.js";
15
- export * from "./ReplanView.js";
16
- export * from "./ResumeView.js";
17
- export * from "./DiagnosticsView.js";
18
- export * from "./RunHistoryView.js";
19
- export * from "./WorkspaceStatus.js";
20
- export * from "./HelpView.js";
21
- export * from "./ThinkingIndicator.js";
22
- export * from "./MessageBubble.js";
23
- export * from "./TurnView.js";
24
- export * from "./CommandPalette.js";
25
- export * from "./ThinkingBlock.js";
26
- //# sourceMappingURL=index.d.ts.map
package/dist/ui/index.js DELETED
@@ -1,26 +0,0 @@
1
- export * from "./Header.js";
2
- export * from "./StatusBar.js";
3
- export * from "./AppShell.js";
4
- export * from "./ProgressBar.js";
5
- export * from "./CurrentStepView.js";
6
- export * from "./TaskInput.js";
7
- export * from "./PlanStep.js";
8
- export * from "./PlanView.js";
9
- export * from "./ExecutionView.js";
10
- export * from "./ExecutionTimeline.js";
11
- export * from "./ApprovalPrompt.js";
12
- export * from "./RiskNotice.js";
13
- export * from "./BlockedView.js";
14
- export * from "./RecoveryView.js";
15
- export * from "./ReplanView.js";
16
- export * from "./ResumeView.js";
17
- export * from "./DiagnosticsView.js";
18
- export * from "./RunHistoryView.js";
19
- export * from "./WorkspaceStatus.js";
20
- export * from "./HelpView.js";
21
- export * from "./ThinkingIndicator.js";
22
- export * from "./MessageBubble.js";
23
- export * from "./TurnView.js";
24
- export * from "./CommandPalette.js";
25
- export * from "./ThinkingBlock.js";
26
- //# sourceMappingURL=index.js.map