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,72 +1,72 @@
1
- ---
2
- name: vue
3
- description: Vue 3 Composition API, Options API, single-file components, and reactivity patterns.
4
- category: framework
5
- version: 2.1.0
6
- ---
7
-
8
- ## When to use
9
-
10
- - authoring Vue components
11
- - using Vue Composition API or Options API
12
- - handling Vue reactive state
13
-
14
- ## Instructions
15
-
16
- ### Project Detection & Existing Rules
17
- - **Inspect package.json**: Identify Vue version (e.g., Vue 2 vs Vue 3).
18
- - **API Style**: Check if the existing project uses Composition API (`<script setup>`) or Options API (`export default { data() ... }`).
19
- - **Follow existing patterns**: Do not force Composition API if the existing project uses Options API, unless the user explicitly requests migration.
20
-
21
- ### Core Mental Model
22
- - **Components**: Encapsulated UI units.
23
- - **Props**: Immutable inputs from parents.
24
- - **Emits**: Custom events emitted to parents.
25
- - **Reactive State**: Mutable UI state driving the template.
26
- - **Computed Values**: Derived reactive state.
27
- - **Watchers**: Side effects triggered by reactive state changes.
28
-
29
- ### Reactivity
30
- - Distinguish between **reactive state**, **computed values**, and **watchers**.
31
- - Prefer computed values (`computed()`) for derived state.
32
- - Use watchers (`watch()`, `watchEffect()`) for side effects rather than ordinary derivation.
33
-
34
- ### Composition
35
- - Use Vue Single File Components (.vue).
36
- - Extract reusable logic into composables (when using Composition API).
37
- - Maintain clear component boundaries; break down large templates into smaller components.
38
- - Use slots for flexible component composition and content distribution.
39
- - Use provide/inject for deep dependency injection when appropriate.
40
-
41
- ### Forms
42
- - Use `v-model` for two-way data binding on form inputs.
43
- - Handle validation, loading/error states, and controlled data flow cleanly.
44
-
45
- ### Common Failure Modes
46
- - **Unnecessary watchers**: Using watchers to update state when a computed property would suffice.
47
- - **Mutating props incorrectly**: Attempting to mutate props directly, which violates one-way data flow.
48
- - **Duplicated derived state**: Initializing state with a prop value instead of computing it dynamically.
49
- - **Incorrect reactive references**: Forgetting `.value` when accessing refs in the script section (Composition API).
50
- - **Overly large components**: Failing to break down monolithic Vue files.
51
-
52
- ## Anti-Patterns
53
-
54
- - **Mutating props directly**
55
- - *What*: Directly editing a prop passed from a parent component.
56
- - *Why*: It creates unpredictable data flow and Vue will emit warnings.
57
- - *Instead*: Emit an event to the parent to update the data, or use a writable computed property.
58
- - **Using watchers for derived state**
59
- - *What*: Putting logic in a `watch` block to calculate a value from other state.
60
- - *Why*: It's imperative, harder to track, and often leads to out-of-sync state.
61
- - *Instead*: Use `computed()` to declaratively derive state.
62
-
63
- ## Workflow
64
-
65
- ### Debugging
66
- - Use Vue DevTools to inspect component state, props, and emitted events.
67
- - Check if reactivity is lost by inspecting object destructuring (use `toRefs` if necessary).
68
-
69
- ### Verification
70
- - Run project linting.
71
- - Run project tests.
72
- - Build the project using the existing scripts.
1
+ ---
2
+ name: vue
3
+ description: Vue 3 Composition API, Options API, single-file components, and reactivity patterns.
4
+ category: framework
5
+ version: 2.1.0
6
+ ---
7
+
8
+ ## When to use
9
+
10
+ - authoring Vue components
11
+ - using Vue Composition API or Options API
12
+ - handling Vue reactive state
13
+
14
+ ## Instructions
15
+
16
+ ### Project Detection & Existing Rules
17
+ - **Inspect package.json**: Identify Vue version (e.g., Vue 2 vs Vue 3).
18
+ - **API Style**: Check if the existing project uses Composition API (`<script setup>`) or Options API (`export default { data() ... }`).
19
+ - **Follow existing patterns**: Do not force Composition API if the existing project uses Options API, unless the user explicitly requests migration.
20
+
21
+ ### Core Mental Model
22
+ - **Components**: Encapsulated UI units.
23
+ - **Props**: Immutable inputs from parents.
24
+ - **Emits**: Custom events emitted to parents.
25
+ - **Reactive State**: Mutable UI state driving the template.
26
+ - **Computed Values**: Derived reactive state.
27
+ - **Watchers**: Side effects triggered by reactive state changes.
28
+
29
+ ### Reactivity
30
+ - Distinguish between **reactive state**, **computed values**, and **watchers**.
31
+ - Prefer computed values (`computed()`) for derived state.
32
+ - Use watchers (`watch()`, `watchEffect()`) for side effects rather than ordinary derivation.
33
+
34
+ ### Composition
35
+ - Use Vue Single File Components (.vue).
36
+ - Extract reusable logic into composables (when using Composition API).
37
+ - Maintain clear component boundaries; break down large templates into smaller components.
38
+ - Use slots for flexible component composition and content distribution.
39
+ - Use provide/inject for deep dependency injection when appropriate.
40
+
41
+ ### Forms
42
+ - Use `v-model` for two-way data binding on form inputs.
43
+ - Handle validation, loading/error states, and controlled data flow cleanly.
44
+
45
+ ### Common Failure Modes
46
+ - **Unnecessary watchers**: Using watchers to update state when a computed property would suffice.
47
+ - **Mutating props incorrectly**: Attempting to mutate props directly, which violates one-way data flow.
48
+ - **Duplicated derived state**: Initializing state with a prop value instead of computing it dynamically.
49
+ - **Incorrect reactive references**: Forgetting `.value` when accessing refs in the script section (Composition API).
50
+ - **Overly large components**: Failing to break down monolithic Vue files.
51
+
52
+ ## Anti-Patterns
53
+
54
+ - **Mutating props directly**
55
+ - *What*: Directly editing a prop passed from a parent component.
56
+ - *Why*: It creates unpredictable data flow and Vue will emit warnings.
57
+ - *Instead*: Emit an event to the parent to update the data, or use a writable computed property.
58
+ - **Using watchers for derived state**
59
+ - *What*: Putting logic in a `watch` block to calculate a value from other state.
60
+ - *Why*: It's imperative, harder to track, and often leads to out-of-sync state.
61
+ - *Instead*: Use `computed()` to declaratively derive state.
62
+
63
+ ## Workflow
64
+
65
+ ### Debugging
66
+ - Use Vue DevTools to inspect component state, props, and emitted events.
67
+ - Check if reactivity is lost by inspecting object destructuring (use `toRefs` if necessary).
68
+
69
+ ### Verification
70
+ - Run project linting.
71
+ - Run project tests.
72
+ - Build the project using the existing scripts.
package/dist/App.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import React from "react";
2
- import { type ProductRuntime, type Agent, type ProjectContext, type SessionStore, type PersistedSessionData, type CheckpointManager, type RecoveryManager, type ExecutionPolicy, type RunHistoryStore } from "@fecode/agent";
3
- import { InteractiveApprovalResolver } from "./approvalResolver.js";
4
- export interface Turn {
5
- id: string;
6
- prompt: string;
7
- response: string;
8
- status: "thinking" | "streaming" | "done" | "error" | "cancelled";
9
- error?: string;
10
- thinkingMs?: number;
11
- thinkingTokens?: number;
12
- thinkingSummary?: string;
13
- }
14
- export interface AppProps {
15
- agent?: Agent;
16
- productRuntime?: ProductRuntime;
17
- cwd?: string;
18
- providerName?: string;
19
- modelName?: string;
20
- approvalResolver?: InteractiveApprovalResolver;
21
- onExit?: () => void;
22
- configError?: string;
23
- projectContext?: ProjectContext;
24
- sessionStore?: SessionStore;
25
- initialSessionData?: PersistedSessionData;
26
- gitRepository?: import("@fecode/agent").GitRepository;
27
- checkpointManager?: CheckpointManager;
28
- recoveryManager?: RecoveryManager;
29
- executionPolicy?: ExecutionPolicy;
30
- historyStore?: RunHistoryStore;
31
- }
32
- export declare const App: React.FC<AppProps>;
33
- //# sourceMappingURL=App.d.ts.map