qfai 1.7.0 → 1.7.1
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/assets/init/.qfai/assistant/skills/qfai-implement/SKILL.md +7 -0
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +7 -0
- package/assets/init/.qfai/evidence/README.md +30 -0
- package/dist/cli/index.cjs +565 -74
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +551 -60
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +396 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +397 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,13 @@ QFAI Skill Body (SSOT)
|
|
|
45
45
|
|
|
46
46
|
Execute the TDD micro-cycle for each pending item in `test-list.md`, transitioning each through Red -> Green -> Refactor -> Done, producing tested production code aligned with the spec.
|
|
47
47
|
|
|
48
|
+
## Visual Review Guard
|
|
49
|
+
|
|
50
|
+
- Review rendered output, screenshot evidence, or HTML output before closing any UI-affecting item.
|
|
51
|
+
- Read the DDP (Design Direction Pack) first whenever implementation touches UI or critique-driven behavior.
|
|
52
|
+
- Read order: DDP -> Design Token -> UI Contract -> HTML Mock -> Flow.
|
|
53
|
+
- If code intent and rendered output diverge, treat the rendered/HTML result as the blocking review input and reconcile before DONE.
|
|
54
|
+
|
|
48
55
|
## Non-goals
|
|
49
56
|
|
|
50
57
|
- Writing spec artifacts (use `/qfai-sdd`).
|
|
@@ -49,6 +49,13 @@ This stage is complete only when all specs pass the minimum runtime contract:
|
|
|
49
49
|
- DB objects needed for runtime are present (real DB or documented in-memory substitute).
|
|
50
50
|
- Evidence is captured and validate can enforce it.
|
|
51
51
|
|
|
52
|
+
## Visual Review Guard
|
|
53
|
+
|
|
54
|
+
- Review rendered output, screenshot captures, or generated HTML for every UI-affecting slice; code-only inspection is insufficient.
|
|
55
|
+
- Read the DDP (Design Direction Pack) first before comparing visuals or wiring critique outcomes into implementation.
|
|
56
|
+
- Read order: DDP -> Design Token -> UI Contract -> HTML Mock -> Flow.
|
|
57
|
+
- If rendered/HTML evidence disagrees with code intent, fix the rendered result before declaring completion.
|
|
58
|
+
|
|
52
59
|
## Definition of Done by fidelity level (Mandatory)
|
|
53
60
|
|
|
54
61
|
- L1 (`skeleton`):
|
|
@@ -49,6 +49,36 @@ Recommended approach:
|
|
|
49
49
|
|
|
50
50
|
When `uiFidelity` is present, keep all minimum fields above.
|
|
51
51
|
|
|
52
|
+
### Render evidence bundle conventions
|
|
53
|
+
|
|
54
|
+
When render capture is enabled, keep render metadata path-only and store artifacts on disk:
|
|
55
|
+
|
|
56
|
+
- default bundle path: `.qfai/evidence/render.json`
|
|
57
|
+
- default viewports: `desktop`, `mobile`
|
|
58
|
+
- `uiFidelity.screens[].renders[]` is the normalized in-band source for validator/report use
|
|
59
|
+
- captured entries require `imagePath` and `htmlPath`
|
|
60
|
+
- skipped entries require `skippedReason`
|
|
61
|
+
- failed entries require `error`
|
|
62
|
+
|
|
63
|
+
Degraded mode is allowed:
|
|
64
|
+
|
|
65
|
+
- if renderer setup is unavailable, record `status: "skipped"` with a concrete reason
|
|
66
|
+
- do not inline screenshot bytes or HTML bodies into JSON
|
|
67
|
+
- keep `prototyping.json` and `render.json` aligned by file path only
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"renderEvidence": {
|
|
72
|
+
"status": "skipped",
|
|
73
|
+
"requested": true,
|
|
74
|
+
"autogenEnabled": false,
|
|
75
|
+
"viewports": ["desktop", "mobile"],
|
|
76
|
+
"outputPath": ".qfai/evidence/render.json",
|
|
77
|
+
"reason": "render requested without autogen-ui-fidelity"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
52
82
|
Good example references:
|
|
53
83
|
|
|
54
84
|
- Repository docs sample: `docs/examples/prototyping-ui-fidelity.good.json`
|