yam-flow 0.1.3 → 0.1.5
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 +49 -0
- package/COMMANDS.md +29 -2
- package/README.md +21 -4
- package/ROADMAP.md +5 -5
- package/dist/bin/yam.js +661 -35
- package/dist/lib/trust-kernel.d.ts +26 -0
- package/dist/lib/trust-kernel.js +30 -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 +63 -7
- package/references/ueye.md +40 -2
- package/skills/question/SKILL.md +1 -1
- package/skills/ueye/SKILL.md +18 -9
- package/src/bin/yam.ts +660 -34
- package/src/lib/trust-kernel.ts +57 -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 +73 -0
- package/templates/ueye-review.md +73 -0
- package/templates/yam.project.md +2 -2
- package/yam.manifest.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to yam-flow are documented here.
|
|
4
|
+
|
|
5
|
+
## v0.1.5 - 2026-06-04
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added Ueye surface context metadata for provider context, provider badge, execution surface, app surface, browser surface, control mode, preserved URL, preserved state, and evidence id.
|
|
10
|
+
- Added surface context output to `yam ueye capture`, `yam ueye compare`, and `yam ueye report` so visual evidence can say where and how it was observed.
|
|
11
|
+
- Added provider and execution surface fields to Ueye visual provenance records.
|
|
12
|
+
|
|
13
|
+
### Improved
|
|
14
|
+
|
|
15
|
+
- Strengthened `yam ueye report` for fast UI state preservation without making capture or compare an always-on gate.
|
|
16
|
+
- Updated Ueye docs and templates so visual proof can distinguish source files, local screenshots, in-app browser checks, and other execution surfaces.
|
|
17
|
+
|
|
18
|
+
## v0.1.4 - 2026-06-03
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- Added `yam runtime evidence` details for pid, port, URL, exit code, screenshot id, and runtime timing metadata.
|
|
23
|
+
- Added `yam mission queue` patch queue items with lane id, status, dependencies, tool intent, patch envelope, rollback hint, optional JSON output, and queue depth.
|
|
24
|
+
- Added Ueye review continuity fields for resolved findings, new findings, still-open items, regressions, viewport, state, previous screenshot id, and current screenshot id.
|
|
25
|
+
- Added release tarball provenance and release freshness summaries to `yam release report`.
|
|
26
|
+
- Added structured diagnostic next-action metadata with priority, owner route, tool intent, fix-first, and release-blocking signals.
|
|
27
|
+
- Added `yam benchmark report` for compact before/after performance notes.
|
|
28
|
+
|
|
29
|
+
### Improved
|
|
30
|
+
|
|
31
|
+
- Expanded CLI smoke coverage for Ueye report continuity, runtime evidence, mission queue, and benchmark report commands.
|
|
32
|
+
- Strengthened docs, skill guidance, and templates for visual provenance, mission lane handoff, runtime proof, and final report evidence.
|
|
33
|
+
- Kept advanced scheduler, persistent queue, and attachment-gate ideas deferred so the default flow stays fast.
|
|
34
|
+
|
|
35
|
+
## v0.1.3 - 2026-05-31
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- Added `yam ueye report` for compact visual run reports with reference sources, implementation screenshots, comparison result, design quality, next action, and truth status.
|
|
40
|
+
- Added `yam media proof` to record media generation attempts, outputs, blocked states, and proof caps without treating generated media as implemented UI evidence.
|
|
41
|
+
- Added runtime backend evidence fields to `yam proof`, including backend, claim, evidence id, command, cleanup check, and truth status.
|
|
42
|
+
- Added `yam doctor --json` with machine-readable issues and next-action hints.
|
|
43
|
+
- Added framework mini checklist output to `yam detect` and `yam tools doctor`.
|
|
44
|
+
|
|
45
|
+
### Improved
|
|
46
|
+
|
|
47
|
+
- Expanded Ueye proof guidance for reference evidence, implementation screenshots, comparison reports, and generated media limits.
|
|
48
|
+
- Extended CLI smoke checks to cover the new Ueye report and media proof commands.
|
|
49
|
+
- Kept visual and media proof helpers opt-in so fast routes remain lightweight.
|
package/COMMANDS.md
CHANGED
|
@@ -44,7 +44,7 @@ Opt-in visual evidence helpers:
|
|
|
44
44
|
```bash
|
|
45
45
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
46
46
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png
|
|
47
|
-
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --json
|
|
47
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --review-session-id pricing-card-v1 --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --similar "overall hierarchy" --different "button glow intensity" --missing "mobile state" --design-quality needs-polish --json
|
|
48
48
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
49
49
|
yam proof --route ueye --truth partial --visual "browser/local screenshot comparison executed" --require-visual
|
|
50
50
|
```
|
|
@@ -133,6 +133,7 @@ yam memory summary /path/to/project
|
|
|
133
133
|
```bash
|
|
134
134
|
yam budget quick
|
|
135
135
|
yam measure quick --files 3 --commands 1 --report-lines 5 --seconds 40
|
|
136
|
+
yam template tuning
|
|
136
137
|
```
|
|
137
138
|
|
|
138
139
|
## Tool Doctor / Proof / Safety
|
|
@@ -148,8 +149,11 @@ yam proof --route ueye --truth verified --visual "reference image only"
|
|
|
148
149
|
yam proof --route ueye --truth partial --visual-provenance '{"source_kind":"reference","source_hash":"unknown","comparison_result":"not-verified","truth_status":"partial"}'
|
|
149
150
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
150
151
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
|
|
151
|
-
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --json
|
|
152
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --json
|
|
152
153
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
154
|
+
yam runtime evidence --backend terminal --claim observed --evidence-id dev-server-1 --command "npm run dev" --json
|
|
155
|
+
yam mission queue --agent-id implementer --scope "checkout form" --changed src/checkout.tsx --verification-hint "npm run typecheck" --rollback-hint "revert checkout form patch if typecheck or smoke fails" --json
|
|
156
|
+
yam benchmark report --label "render time" --baseline 100 --current 86 --unit ms --target lower --json
|
|
153
157
|
yam proof --route mission --mission-envelope '{"agent_id":"implementer","assigned_scope":"target component","changed_files":["src/file.ts"],"verification_hint":"npm run typecheck","truth_status":"partial"}'
|
|
154
158
|
yam proof --route deep --truth proven --require-runtime --runtime "mock server fixture"
|
|
155
159
|
yam proof write /path/to/project --route deep --truth partial --command "npm run build: pass"
|
|
@@ -163,6 +167,29 @@ Release reporting intentionally runs the release checks and returns a machine-re
|
|
|
163
167
|
yam release report --json
|
|
164
168
|
```
|
|
165
169
|
|
|
170
|
+
## Flow Artifact Shapes
|
|
171
|
+
|
|
172
|
+
Use existing templates and JSON outputs for compact support records:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
yam template proof
|
|
176
|
+
yam template mission
|
|
177
|
+
yam template tuning
|
|
178
|
+
yam tools doctor /path/to/project --json
|
|
179
|
+
yam release report --json
|
|
180
|
+
yam runtime evidence --backend terminal --claim cleanup-verified --cleanup-checked --json
|
|
181
|
+
yam mission queue --agent-id reviewer --scope "changed files review" --changed src/bin/yam.ts --verification-hint "npm run typecheck" --json
|
|
182
|
+
yam benchmark report --label "bundle size" --baseline 120 --current 118 --unit kB --target lower --json
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Supported report shapes:
|
|
186
|
+
|
|
187
|
+
- Runtime evidence mini: command/process, observation, cleanup, truth status, next action.
|
|
188
|
+
- Patch queue lite: mission lane status, changed files, verification hint, rollback hint, truth status.
|
|
189
|
+
- Benchmark optimization loop lite: baseline, one change, rerun, keep/revert decision.
|
|
190
|
+
- Structured diagnostic next action: severity, evidence, owner route, next action, truth status.
|
|
191
|
+
- Ueye continuity/comparison: previous report, current report, comparison delta, design quality, next action.
|
|
192
|
+
|
|
166
193
|
## Lite Hook
|
|
167
194
|
|
|
168
195
|
Advisory-only hook. It does not run checks or force routes.
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ End with remaining tasks and fix-first items.
|
|
|
19
19
|
- `$quick`: fast scoped implementation, small fixes, and quick error scans.
|
|
20
20
|
- `$ueye`: tight UI/UX/design implementation and visual review with reference-read proof, comparison, and quality judgment.
|
|
21
21
|
- `$question`: direct Q&A without turning simple questions into research projects.
|
|
22
|
-
- `$scout`:
|
|
22
|
+
- `$scout`: conduct broad investigations, gather evidence, analyze options, and provide recommendations.
|
|
23
23
|
- `$deep`: single-agent heavy verification by request, including runtime/tmux/browser/process proof when needed.
|
|
24
24
|
- `$mission`: approved-plan execution with real subagent/team lanes, cross-verification, doctor scan, and final proof.
|
|
25
25
|
|
|
@@ -129,7 +129,7 @@ yam proof --route ueye --truth verified --visual "reference image only"
|
|
|
129
129
|
yam proof --route ueye --truth partial --visual-provenance '{"source_kind":"reference","source_hash":"unknown","comparison_result":"not-verified","truth_status":"partial"}'
|
|
130
130
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
131
131
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png
|
|
132
|
-
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --json
|
|
132
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --provider-context local --execution-surface in-app-browser --app-surface codex-app --browser-surface in-app-browser --preserved-state --json
|
|
133
133
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
134
134
|
yam proof --route mission --mission-envelope '{"agent_id":"implementer","assigned_scope":"target component","changed_files":["src/file.ts"],"verification_hint":"npm run typecheck","truth_status":"partial"}'
|
|
135
135
|
yam release report --json
|
|
@@ -177,12 +177,29 @@ Publishing still requires confirming the final npm package name and account acce
|
|
|
177
177
|
- runtime truth matrix
|
|
178
178
|
- visual evidence caps
|
|
179
179
|
- Ueye visual run reports
|
|
180
|
+
- Ueye surface context metadata
|
|
180
181
|
- runtime backend evidence
|
|
182
|
+
- runtime evidence mini summaries
|
|
183
|
+
- mission patch queue lite records
|
|
184
|
+
- release report JSON
|
|
185
|
+
- structured diagnostic next actions
|
|
181
186
|
- media generation proof caps
|
|
182
187
|
- DB/Supabase safety signals
|
|
183
188
|
|
|
184
189
|
It is implemented locally in `src/lib/trust-kernel.ts` and kept route-scoped. It is not an always-on release gate.
|
|
185
190
|
|
|
191
|
+
## Flow Artifact Shapes
|
|
192
|
+
|
|
193
|
+
These shapes keep reports machine-readable without turning normal work into a heavy gate.
|
|
194
|
+
|
|
195
|
+
- Runtime evidence mini: compact route, command/process, observation, cleanup, truth status, and next action fields for `$deep` or `$mission` runtime claims.
|
|
196
|
+
- Patch queue lite: `$mission` lane records with pending/applied/verified/reverted/blocked state, changed files, verification hint, rollback hint, truth status, and next action.
|
|
197
|
+
- Release report JSON: `yam release report --json` summarizes typecheck, forbidden-name scan, package boundary, registry status, CLI smoke, dist freshness, diagnostics, and final truth status.
|
|
198
|
+
- Benchmark optimization loop lite: use `yam measure <route>` and `yam template tuning` to record baseline, one route wording change, rerun result, keep/revert decision, and stop condition.
|
|
199
|
+
- Structured diagnostic next action: every doctor/release diagnostic should say what was observed, what evidence supports it, what to do next, owner route, severity, and truth status.
|
|
200
|
+
- Ueye review continuity/comparison report: `$ueye` run reports can link a previous review, current evidence, comparison delta, design quality result, and next action.
|
|
201
|
+
- Ueye surface context: `$ueye` run reports can record provider context, provider badge, execution surface, app surface, browser surface, control mode, preserved URL/state, and evidence id.
|
|
202
|
+
|
|
186
203
|
## Ueye Capture And Compare
|
|
187
204
|
|
|
188
205
|
`$ueye` stays one skill. It starts fast by default, then uses capture/compare only when a visual claim needs real evidence.
|
|
@@ -190,14 +207,14 @@ It is implemented locally in `src/lib/trust-kernel.ts` and kept route-scoped. It
|
|
|
190
207
|
```bash
|
|
191
208
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
192
209
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
|
|
193
|
-
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --json
|
|
210
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --preserved-state --json
|
|
194
211
|
```
|
|
195
212
|
|
|
196
213
|
`capture` uses a Playwright install from the current project when present, then falls back to the package context. It does not install browsers or add runtime dependencies by itself. If capture is unavailable, the visual claim stays `partial` or `blocked` until a real screenshot is supplied.
|
|
197
214
|
|
|
198
215
|
`compare` is local-only and dependency-free. It records file hashes, dimensions, comparison result, and proof-ready visual provenance. Exact image matches can be `verified`; different screenshots stay `partial` so visual parity is not overclaimed.
|
|
199
216
|
|
|
200
|
-
`report` gathers reference sources, implementation screenshots, comparison result, design quality judgment, and next action into one compact proof-ready JSON object.
|
|
217
|
+
`report` gathers reference sources, implementation screenshots, comparison result, continuity fields, design quality judgment, surface context, and next action into one compact proof-ready JSON object.
|
|
201
218
|
|
|
202
219
|
Generated media can guide visual direction, but it cannot prove the implemented UI by itself:
|
|
203
220
|
|
package/ROADMAP.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Implemented:
|
|
6
6
|
|
|
7
|
-
- Skills-first
|
|
7
|
+
- Skills-first workflow.
|
|
8
8
|
- Six routes: quick, ueye, question, scout, deep, mission.
|
|
9
9
|
- Shared references.
|
|
10
10
|
- Local CLI: list, status, verify, doctor, examples, path, install, uninstall.
|
|
@@ -54,7 +54,7 @@ Tasks:
|
|
|
54
54
|
|
|
55
55
|
### 4. Token Budget Reporter
|
|
56
56
|
|
|
57
|
-
Goal: keep the
|
|
57
|
+
Goal: keep the workflow honest about context usage.
|
|
58
58
|
|
|
59
59
|
Tasks:
|
|
60
60
|
|
|
@@ -275,7 +275,7 @@ Tasks:
|
|
|
275
275
|
### 15. Lite Hook / Progressive Tool Trust Layer
|
|
276
276
|
|
|
277
277
|
Goal: keep beginner momentum while creating a path toward professional proof-first work.
|
|
278
|
-
The hook stays light, but the
|
|
278
|
+
The hook stays light, but the `yam` direction does not. `yam` should support a depth ladder: direction fit first, focused proof for ordinary work, strong proof for risky work, and real team proof for `$mission`.
|
|
279
279
|
|
|
280
280
|
Kept:
|
|
281
281
|
|
|
@@ -325,7 +325,7 @@ Rules:
|
|
|
325
325
|
|
|
326
326
|
#### Mission Patch Queue Lite
|
|
327
327
|
|
|
328
|
-
Status:
|
|
328
|
+
Status: documented lite shape for `$mission` only; implementation remains route-scoped.
|
|
329
329
|
|
|
330
330
|
Trigger:
|
|
331
331
|
|
|
@@ -381,7 +381,7 @@ Status: later.
|
|
|
381
381
|
Trigger:
|
|
382
382
|
|
|
383
383
|
- Tool intent labels are no longer enough.
|
|
384
|
-
- The
|
|
384
|
+
- The workflow starts coordinating multiple external tools inside one route.
|
|
385
385
|
- Write or destructive actions could run near read-only checks.
|
|
386
386
|
- Parallel tool execution becomes common and needs ordering.
|
|
387
387
|
- A mission needs deterministic tool sequence proof.
|