You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(apply): rename-preview barrel/reference rows; Phase B apply tests
Extend rename-preview with barrel_import_rows and reference_rows (deduped
vs imports/calls/definitions). Golden rename-preview-product-card; apply
harness map; cmd-apply --rows and replace-marker-kind disk e2e.
|**Apply CLI e2e**|`src/cli/cmd-apply.test.ts`| Temp project + full index: recipe dry-run/apply, `--rows`, second recipe disk apply. |
19
20
|**Check**|`bun run check`| build + lint + unit + scripts + golden + agent-eval. |
20
21
21
22
Refresh Tier A goldens after intentional fixture or schema changes:
@@ -30,6 +31,17 @@ bun scripts/query-golden.ts --update
30
31
31
32
Every `templates/recipes/<id>.sql` has **≥1** scenario in `fixtures/golden/scenarios.json` with `"recipe": "<id>"`. Enforced by `query-golden-coverage-matrix.test.mjs`. List ids: `codemap query --recipes-json` or `ls templates/recipes/*.sql`.
32
33
34
+
### Apply-shaped recipes (diff row contract)
35
+
36
+
| Recipe id | Golden scenario(s) | CLI e2e (`cmd-apply.test.ts`) |
- Direct named import specifiers from `imports.specifiers` when `imports.resolved_path` points at the target symbol file.
50
50
- AST call sites from `calls` where `callee_name` matches (`provenance` ast-only).
51
51
- Single-hop barrel re-export lines via `re_export_chains` when `include_re_exports` is true (default).
52
+
- Barrel **consumer** import specifiers (`barrel_import_rows`) when `resolved_path` is the barrel file and `re_export_chains` links the specifier to the target symbol.
53
+
- Binding-resolved identifier sites (`reference_rows`) from `bindings` × `references`, excluding definition spans and AST call lines already in other CTEs.
0 commit comments