@nick848/fet 1.1.7 → 1.1.8
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 +6 -1
- package/README_en.md +6 -1
- package/dist/cli/index.js +976 -100
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,9 @@ FET 是一个围绕 OpenSpec 构建的前端开发工作流编排 CLI。它不
|
|
|
13
13
|
- 统一语言:默认使用中文输出交互信息和生成产物,可通过 `--lang <language>` 切换。
|
|
14
14
|
- 保护关键阶段:在 `sync` / `archive` 前检查 FET verify 状态,降低未验证变更被合入或归档的风险。
|
|
15
15
|
- 可选代码图:可接入 GitNexus,在大范围扫描前优先提供结构化代码上下文。
|
|
16
|
-
- Figma 守卫:当 change 产物含 Figma
|
|
16
|
+
- Figma 守卫:当 change 产物含 Figma 链接时,自动写入 `figma-apply-instructions.md`(apply 前必读稿)与 `figma-stop.md`(读稿失败则停下问用户,禁止猜样式)。
|
|
17
|
+
- UI 展示契约:当 change 含 Figma 和/或接口文档引用时,生成 `ui-display-contract.yaml` 草案与 `ui-field-apply-instructions.md`;规划 spec 须写入「仅展示 displayFields」Requirement,避免按 OpenAPI 全量渲染。
|
|
18
|
+
- Spec 分层双语:英文 Requirements/Scenario 为权威,每个 Requirement 配 `<!-- 中文:... -->`;LLM 更新 spec 时须同次编辑同步中文说明(见 `fet.specLanguage` 与 `.cursor/rules/fet-spec-language.mdc`)。
|
|
17
19
|
|
|
18
20
|
## 基本原理
|
|
19
21
|
|
|
@@ -178,10 +180,13 @@ FET 可能创建或更新:
|
|
|
178
180
|
- `.cursor/skills/fet-*/SKILL.md`
|
|
179
181
|
- `.cursor/rules/fet-context.mdc`
|
|
180
182
|
- `.cursor/rules/fet-figma-stop.mdc`
|
|
183
|
+
- `.cursor/rules/fet-spec-language.mdc`
|
|
181
184
|
- `.cursor/rules/karpathy-guidelines.mdc`
|
|
182
185
|
- `.codex/fet/context.md`
|
|
183
186
|
- `.codex/fet/figma-stop.md`
|
|
187
|
+
- `.codex/fet/spec-language.md`
|
|
184
188
|
- `.codex/fet/karpathy-guidelines.md`
|
|
189
|
+
- `openspec/changes/<change-id>/.fet/figma-apply-instructions.md`(apply 时含 Figma 链接则写入,实施 UI 前必读)
|
|
185
190
|
- `openspec/changes/<change-id>/.fet/figma-stop.md`(change 含 Figma 链接时自动写入)
|
|
186
191
|
- `.codex/fet/commands/*.md`
|
|
187
192
|
- `$CODEX_HOME/prompts/fet-*.md`
|
package/README_en.md
CHANGED
|
@@ -13,7 +13,9 @@ FET is a frontend development workflow orchestration CLI built around OpenSpec.
|
|
|
13
13
|
- Unifies language: Chinese is the default for interaction messages and generated artifacts; use `--lang <language>` to switch.
|
|
14
14
|
- Guards critical stages: checks FET verification state before `sync` / `archive`.
|
|
15
15
|
- Supports optional code graphs: integrates with GitNexus so AI tools can prefer structured code context before broad repository scans.
|
|
16
|
-
- Figma guard: when a change references Figma, FET writes
|
|
16
|
+
- Figma guard: when a change references Figma, FET writes `figma-apply-instructions.md` (read design before UI work on apply) and `figma-stop.md` (stop and ask the user when Figma cannot be read—no guessed styles).
|
|
17
|
+
- Layered bilingual specs: English Requirements/Scenario stay canonical; each Requirement gets a `<!-- 中文:... -->` note. LLM edits must refresh Chinese notes in the same edit (`fet.specLanguage`, `.cursor/rules/fet-spec-language.mdc`).
|
|
18
|
+
- UI display contract: when a change references Figma and/or API docs, FET writes `ui-display-contract.yaml` (draft) and `ui-field-apply-instructions.md`; planning specs must include a Requirement that only `displayFields` may render—OpenAPI must not drive full UI field lists.
|
|
17
19
|
|
|
18
20
|
## How It Works
|
|
19
21
|
|
|
@@ -180,10 +182,13 @@ FET may create or update:
|
|
|
180
182
|
- `.cursor/skills/fet-*/SKILL.md`
|
|
181
183
|
- `.cursor/rules/fet-context.mdc`
|
|
182
184
|
- `.cursor/rules/fet-figma-stop.mdc`
|
|
185
|
+
- `.cursor/rules/fet-spec-language.mdc`
|
|
183
186
|
- `.cursor/rules/karpathy-guidelines.mdc`
|
|
184
187
|
- `.codex/fet/context.md`
|
|
185
188
|
- `.codex/fet/figma-stop.md`
|
|
189
|
+
- `.codex/fet/spec-language.md`
|
|
186
190
|
- `.codex/fet/karpathy-guidelines.md`
|
|
191
|
+
- `openspec/changes/<change-id>/.fet/figma-apply-instructions.md` (written on apply when the change references Figma)
|
|
187
192
|
- `openspec/changes/<change-id>/.fet/figma-stop.md` (written when the change references Figma)
|
|
188
193
|
- `.codex/fet/commands/*.md`
|
|
189
194
|
- `$CODEX_HOME/prompts/fet-*.md`
|