fecode-cli 1.1.3 → 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.
- package/README.md +92 -8
- package/dist/index.js +23293 -1
- package/dist/{node.browser-BsGbhAIw.js → node.browser-2EgZAKSy.js} +1 -1
- package/dist/{node.browser-B5CfqNxN.js → node.browser-B5Gur0wd.js} +1 -1
- package/dist/{node.browser-BWLpZywP.js → node.browser-BSlAsiSV.js} +1 -1
- package/dist/{node.browser-7pW7d9_e.js → node.browser-CdVAMgSg.js} +1 -1
- package/dist/{src-CxriUNOE.js → src-CSWdjU4j.js} +4836 -4522
- package/dist/{src-DBoGZaxi.js → src-DY3OmBmT.js} +6670 -4557
- package/dist/{src-B_Z8CdqT.js → src-DcYf8vsK.js} +4850 -4526
- package/dist/{src-Bhec3XmL.js → src-DkWmcv2Q.js} +6677 -4604
- package/package.json +5 -2
- package/skills/accessibility/SKILL.md +98 -98
- package/skills/css/SKILL.md +90 -90
- package/skills/frontend-debugging/SKILL.md +201 -201
- package/skills/frontend-design/SKILL.md +358 -358
- package/skills/frontend-performance/SKILL.md +89 -89
- package/skills/frontend-testing/SKILL.md +87 -87
- package/skills/nextjs/SKILL.md +75 -75
- package/skills/react/SKILL.md +213 -213
- package/skills/responsive-design/SKILL.md +190 -190
- package/skills/svelte/SKILL.md +86 -86
- package/skills/tailwind/SKILL.md +74 -74
- package/skills/ui-review/SKILL.md +245 -245
- package/skills/vue/SKILL.md +72 -72
- package/dist/App.d.ts +0 -33
- package/dist/App.js +0 -2224
- package/dist/approvalResolver.d.ts +0 -12
- package/dist/approvalResolver.js +0 -112
- package/dist/commands.d.ts +0 -11
- package/dist/commands.js +0 -33
- package/dist/error-qAR8Lv-R.js +0 -57
- package/dist/index.d.ts +0 -3
- package/dist/node.browser-C9Wg-Fje.js +0 -46
- package/dist/node.browser-CADgAblr.js +0 -46
- package/dist/node.browser-Cse19Rko.js +0 -47
- package/dist/node.browser-Cx8sZi1Z.js +0 -46
- package/dist/node.browser-DtPNhPGQ.js +0 -46
- package/dist/node.browser-DvjMZMaq.js +0 -46
- package/dist/node.browser-EewJmuUw.js +0 -46
- package/dist/node.browser-J7voHtuR.js +0 -10
- package/dist/src-4fKRO0jn.js +0 -31655
- package/dist/src-8kA-5Kbs.js +0 -31591
- package/dist/src-C8Oe06wn.js +0 -31580
- package/dist/src-D78uLcuc.js +0 -31573
- package/dist/src-EyWDnffN.js +0 -31636
- package/dist/src-dhvwrHAJ.js +0 -31590
- package/dist/ui/AppShell.d.ts +0 -14
- package/dist/ui/AppShell.js +0 -25
- package/dist/ui/ApprovalPrompt.d.ts +0 -31
- package/dist/ui/ApprovalPrompt.js +0 -55
- package/dist/ui/BlockedView.d.ts +0 -13
- package/dist/ui/BlockedView.js +0 -7
- package/dist/ui/CommandPalette.d.ts +0 -8
- package/dist/ui/CommandPalette.js +0 -18
- package/dist/ui/CurrentStepView.d.ts +0 -16
- package/dist/ui/CurrentStepView.js +0 -28
- package/dist/ui/DiagnosticsView.d.ts +0 -45
- package/dist/ui/DiagnosticsView.js +0 -23
- package/dist/ui/ExecutionTimeline.d.ts +0 -15
- package/dist/ui/ExecutionTimeline.js +0 -51
- package/dist/ui/ExecutionView.d.ts +0 -42
- package/dist/ui/ExecutionView.js +0 -20
- package/dist/ui/Header.d.ts +0 -15
- package/dist/ui/Header.js +0 -47
- package/dist/ui/HelpView.d.ts +0 -3
- package/dist/ui/HelpView.js +0 -35
- package/dist/ui/MessageBubble.d.ts +0 -9
- package/dist/ui/MessageBubble.js +0 -58
- package/dist/ui/PlanStep.d.ts +0 -16
- package/dist/ui/PlanStep.js +0 -71
- package/dist/ui/PlanView.d.ts +0 -26
- package/dist/ui/PlanView.js +0 -24
- package/dist/ui/ProgressBar.d.ts +0 -10
- package/dist/ui/ProgressBar.js +0 -14
- package/dist/ui/RecoveryView.d.ts +0 -20
- package/dist/ui/RecoveryView.js +0 -19
- package/dist/ui/ReplanView.d.ts +0 -16
- package/dist/ui/ReplanView.js +0 -21
- package/dist/ui/ResumeView.d.ts +0 -15
- package/dist/ui/ResumeView.js +0 -25
- package/dist/ui/RiskNotice.d.ts +0 -10
- package/dist/ui/RiskNotice.js +0 -21
- package/dist/ui/RunHistoryView.d.ts +0 -15
- package/dist/ui/RunHistoryView.js +0 -39
- package/dist/ui/StatusBar.d.ts +0 -16
- package/dist/ui/StatusBar.js +0 -104
- package/dist/ui/TaskInput.d.ts +0 -15
- package/dist/ui/TaskInput.js +0 -8
- package/dist/ui/ThinkingBlock.d.ts +0 -8
- package/dist/ui/ThinkingBlock.js +0 -13
- package/dist/ui/ThinkingIndicator.d.ts +0 -7
- package/dist/ui/ThinkingIndicator.js +0 -20
- package/dist/ui/TurnView.d.ts +0 -13
- package/dist/ui/TurnView.js +0 -11
- package/dist/ui/WorkspaceStatus.d.ts +0 -20
- package/dist/ui/WorkspaceStatus.js +0 -23
- package/dist/ui/index.d.ts +0 -26
- package/dist/ui/index.js +0 -26
package/dist/ui/ThinkingBlock.js
DELETED
|
@@ -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,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
|
package/dist/ui/TurnView.d.ts
DELETED
|
@@ -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
|
package/dist/ui/TurnView.js
DELETED
|
@@ -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
|
package/dist/ui/index.d.ts
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.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
|