yam-flow 0.1.2 → 0.1.4
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/CHANGELOG.md +36 -0
- package/COMMANDS.md +31 -0
- package/README.md +30 -1
- package/ROADMAP.md +5 -5
- package/dist/bin/yam.js +855 -23
- package/dist/lib/trust-kernel.d.ts +41 -0
- package/dist/lib/trust-kernel.js +117 -0
- package/package.json +3 -2
- package/references/current-docs.md +3 -3
- package/references/doctor-scan.md +19 -0
- package/references/final-report.md +21 -0
- package/references/hook-lite.md +1 -1
- package/references/memory.md +1 -1
- package/references/mission.md +25 -0
- package/references/runtime-orchestration.md +25 -1
- package/references/tool-trust-layer.md +100 -6
- package/references/ueye-proof.md +54 -5
- package/references/ueye.md +24 -2
- package/skills/question/SKILL.md +1 -1
- package/skills/ueye/SKILL.md +16 -4
- package/src/bin/yam.ts +846 -21
- package/src/lib/trust-kernel.ts +147 -0
- package/templates/mission-plan.md +12 -0
- package/templates/runtime-proof.md +41 -2
- package/templates/tuning-log.md +11 -1
- package/templates/ueye-comparison.md +44 -0
- package/templates/ueye-review.md +44 -0
- package/templates/yam.project.md +2 -2
package/references/ueye.md
CHANGED
|
@@ -65,6 +65,7 @@ Use these when the task depends on visual truth, reference matching, or design q
|
|
|
65
65
|
2. Reference Read Proof.
|
|
66
66
|
3. Reference vs Implementation Matrix.
|
|
67
67
|
4. Design Quality Review.
|
|
68
|
+
5. Review Continuity and Comparison Report.
|
|
68
69
|
|
|
69
70
|
Default bound:
|
|
70
71
|
|
|
@@ -145,6 +146,26 @@ Review dimensions:
|
|
|
145
146
|
For each relevant dimension, record `pass`, `needs-polish`, or `fails`.
|
|
146
147
|
Keep actionable findings in P0-P3 order. Prefer fixing P0/P1 and cheap local P2 issues before broad polish.
|
|
147
148
|
|
|
149
|
+
### Review Continuity and Comparison Report
|
|
150
|
+
|
|
151
|
+
Use when a screen has more than one visual pass, a reference needs follow-up, or a previous Ueye report should stay connected to the next one.
|
|
152
|
+
|
|
153
|
+
Record:
|
|
154
|
+
|
|
155
|
+
- `review_session_id` for the current pass.
|
|
156
|
+
- previous report path or previous session id when available.
|
|
157
|
+
- reference sources and implementation screenshot sources.
|
|
158
|
+
- comparison result.
|
|
159
|
+
- previous and current screenshot ids when available.
|
|
160
|
+
- viewport and state.
|
|
161
|
+
- similar, different, and missing items.
|
|
162
|
+
- resolved findings, new findings, still-open findings, and regression status.
|
|
163
|
+
- design quality result.
|
|
164
|
+
- next visual action.
|
|
165
|
+
- truth status.
|
|
166
|
+
|
|
167
|
+
Use `yam ueye report --previous-report previous.json --review-session-id current-pass --similar "..." --different "..." --missing "..." --json` when you need a compact continuity record.
|
|
168
|
+
|
|
148
169
|
## P0-P3 Ledger
|
|
149
170
|
|
|
150
171
|
- P0: blocker, unusable, impossible to complete primary workflow, severe accessibility or responsive failure.
|
|
@@ -162,8 +183,9 @@ Keep actionable findings in P0-P3 order. Prefer fixing P0/P1 and cheap local P2
|
|
|
162
183
|
6. Screenshot/browser recheck when feasible.
|
|
163
184
|
7. Reference vs Implementation Matrix when reference fidelity matters.
|
|
164
185
|
8. Design Quality Review.
|
|
165
|
-
9.
|
|
166
|
-
10.
|
|
186
|
+
9. Review Continuity and Comparison Report when the work spans multiple passes.
|
|
187
|
+
10. P0/P1 closeout.
|
|
188
|
+
11. Truth status.
|
|
167
189
|
|
|
168
190
|
## Truth Caps
|
|
169
191
|
|
package/skills/question/SKILL.md
CHANGED
|
@@ -8,7 +8,7 @@ description: Very-light Q&A route. Use when the user invokes $question or asks a
|
|
|
8
8
|
Use for:
|
|
9
9
|
- Simple conceptual explanations.
|
|
10
10
|
- "What is X?" or "Can I do Y?" questions.
|
|
11
|
-
- Local
|
|
11
|
+
- Local workflow/project usage questions.
|
|
12
12
|
- Clarifying a decision that does not need fresh source gathering.
|
|
13
13
|
|
|
14
14
|
Do not use for:
|
package/skills/ueye/SKILL.md
CHANGED
|
@@ -36,7 +36,10 @@ Do not use for:
|
|
|
36
36
|
- Image evidence should stay bounded: inspect the primary screen first, then only the states/images needed to support the claim.
|
|
37
37
|
- Design quality judgment belongs after implementation/review: compare to the reference first, then judge whether the result is good design.
|
|
38
38
|
- Keep Ueye as one route: start fast, then opt into `yam ueye capture` and `yam ueye compare` only when a `verified` visual claim needs real screen evidence.
|
|
39
|
-
-
|
|
39
|
+
- Use `yam ueye report` when reference, implementation screenshot, comparison result, design quality, and next action should be recorded as one compact run report.
|
|
40
|
+
- For follow-up visual reviews, keep continuity explicit: previous report/source, current report/source, comparison delta, resolved findings, new findings, and next action.
|
|
41
|
+
- Generated media can guide direction, but it cannot verify the implemented screen without implementation screenshot evidence.
|
|
42
|
+
- Prefer the in-app browser for interactive visual checks. Do not switch to a profile-dependent browser unless the user explicitly asks or the task requires existing cookies, sessions, extensions, or profile state.
|
|
40
43
|
|
|
41
44
|
## Workflow
|
|
42
45
|
|
|
@@ -54,10 +57,12 @@ Do not use for:
|
|
|
54
57
|
6. Implement the smallest coherent design improvement when implementation is requested.
|
|
55
58
|
7. Check default, loading, error, empty, disabled, hover/focus, and mobile states when relevant.
|
|
56
59
|
8. Run browser/screenshot verification when feasible.
|
|
57
|
-
- Prefer the
|
|
58
|
-
- Do not silently use
|
|
59
|
-
- Use `yam ueye capture --url URL --out path.png` when a local
|
|
60
|
+
- Prefer the in-app browser for local pages, localhost, file URLs, and ordinary visual QA.
|
|
61
|
+
- Do not silently use a profile-dependent browser as a fallback. If the in-app browser cannot capture or inspect, report the visual cap as `partial` or `blocked`.
|
|
62
|
+
- Use `yam ueye capture --url URL --out path.png` when a project-local capture backend is available and the claim needs real browser evidence.
|
|
60
63
|
- Use `yam ueye compare --reference ref.png --actual shot.png` when reference fidelity needs a proof-ready local comparison record.
|
|
64
|
+
- Use `yam ueye report --reference ref.png --actual shot.png --design-quality needs-polish --json` to preserve the run-level visual provenance and next action.
|
|
65
|
+
- When continuing a prior review, include previous/current report or screenshot identifiers and mark the comparison as improved, regressed, unchanged, or not-verified.
|
|
61
66
|
9. Compare reference and implementation when reference fidelity was requested:
|
|
62
67
|
- matched, similar, different, not-applicable, or not-verified.
|
|
63
68
|
- Separate "faithful to reference" from "good design."
|
|
@@ -95,6 +100,12 @@ Use these artifacts for reference-led implementation or serious visual review. K
|
|
|
95
100
|
5. Design Quality Review:
|
|
96
101
|
- judge whether the result is good UI/UX/design after reference comparison.
|
|
97
102
|
- use pass, needs-polish, or fails for each relevant design dimension.
|
|
103
|
+
6. Review Continuity and Comparison Report, when this is a follow-up review:
|
|
104
|
+
- record previous source/report, current source/report, comparison delta, resolved findings, new findings, still-open findings, truth status, and next action.
|
|
105
|
+
7. Media Generation Proof, when generated images are part of the task:
|
|
106
|
+
- record whether generation was requested, attempted, blocked, or produced an output.
|
|
107
|
+
- use `yam media proof --requested --attempted --output path.png --wait-loop --json` when a generated image materially affects the design direction.
|
|
108
|
+
- never use generated media proof as a substitute for implemented screen evidence.
|
|
98
109
|
|
|
99
110
|
## Visual Truth Caps
|
|
100
111
|
|
|
@@ -135,6 +146,7 @@ Report:
|
|
|
135
146
|
- Source evidence used.
|
|
136
147
|
- Reference Read Proof and reference comparison result when a reference was used.
|
|
137
148
|
- Design Quality Review result when implementation or serious visual review was requested.
|
|
149
|
+
- Review continuity/comparison result when this continues a prior Ueye run.
|
|
138
150
|
- P0-P3 issues or confirmation that no blockers were found.
|
|
139
151
|
- States/viewports checked.
|
|
140
152
|
- Truth status and visual verification cap.
|