@imgly/codesign-mcp 0.2.0 → 0.2.1-next.20260820151648.ge42664a
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/docs/handbook/SKILL.md +1 -1
- package/assets/docs/judge/SKILL.md +1 -0
- package/dist/assets/inline.generated.js +2 -2
- package/dist/assets/inline.generated.js.map +1 -1
- package/dist/cli/trial-license.generated.d.ts +1 -1
- package/dist/cli/trial-license.generated.js +1 -1
- package/dist/cli/trial-license.generated.js.map +1 -1
- package/dist/instructions.js +1 -1
- package/dist/instructions.js.map +1 -1
- package/dist/revisions/scorecards.d.ts +38 -0
- package/dist/revisions/scorecards.d.ts.map +1 -0
- package/dist/revisions/scorecards.js +59 -0
- package/dist/revisions/scorecards.js.map +1 -0
- package/dist/revisions/store.d.ts +14 -1
- package/dist/revisions/store.d.ts.map +1 -1
- package/dist/revisions/store.js +26 -0
- package/dist/revisions/store.js.map +1 -1
- package/dist/revisions/types.d.ts +10 -0
- package/dist/revisions/types.d.ts.map +1 -1
- package/dist/revisions/types.js.map +1 -1
- package/dist/tools/export.d.ts.map +1 -1
- package/dist/tools/export.js +9 -1
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/preview.d.ts.map +1 -1
- package/dist/tools/preview.js +16 -0
- package/dist/tools/preview.js.map +1 -1
- package/dist/tools/scorecard.d.ts +7 -0
- package/dist/tools/scorecard.d.ts.map +1 -0
- package/dist/tools/scorecard.js +75 -0
- package/dist/tools/scorecard.js.map +1 -0
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ You MUST follow these steps in order for ANY canvas change:
|
|
|
28
28
|
3. **Run `edit({ parent, code, note? })`** — execute the JS body. The response's first text part is JSON `{ revision, parent }` — save `revision`; it's your `parent` for the next edit.
|
|
29
29
|
4. **Visually verify.** Call `preview({ blockIds: [<pageId>], revision })` — `revision` is REQUIRED; omit `blockIds` for every page. Never tell the user something "looks good" without seeing it yourself.
|
|
30
30
|
|
|
31
|
-
5. **Judge & remediate before reporting done.** When the design is a candidate for "done", run the
|
|
31
|
+
5. **Judge & remediate before reporting done.** When the design is a candidate for "done", run the `judge` loop: score the 8 axes against your actual `preview` renders, dry-run the §6.1.11 + §6.5.2 checklists (design-rules.md), remediate any applicable axis below 8 via further `edit`s, re-preview, re-judge. On pass, record `scorecard({ revision, verdict: 'pass' })`; later content `edit`s re-arm this step. Never report an unjudged design as done.
|
|
32
32
|
|
|
33
33
|
Steps 1, 2, 4, and 5 are NOT optional. Step 3's `note` is encouraged: a one-liner describing what you accomplished, so you can re-ground later.
|
|
34
34
|
|
|
@@ -87,6 +87,7 @@ A variant that is clean on its own but diverges from the source on any of these
|
|
|
87
87
|
|
|
88
88
|
4. **Remediate** — apply the fixes via `edit` on the latest revision. Remediation is surgical: fix the flagged blocks in place (handbook §5 "Prefer surgical fixes"); respect the reshape trap (line-height/font changes → reshape → re-apply every color/style range, §6.1.3). Never rebuild the scene to fix a spacing violation.
|
|
89
89
|
5. **Re-preview → re-judge** — repeat from step 1 until the gate passes, but re-capture only what you changed: `preview({ blockIds: [<the pages you fixed>], revision })`. Re-rendering untouched pages puts near-identical copies of the same design at different revisions into the conversation, which makes it harder, not easier, to see what moved. Then report done, with the final scorecard.
|
|
90
|
+
6. **Record the verdict** — `scorecard({ revision: <the revision the passing renders came from>, verdict: 'pass' })`. This closes the loop: `export` checks the latest recorded scorecard and reminds you when a delivered revision carries changes it does not cover. If the loop is being cut short with an axis still below 8 (e.g. the user says ship anyway), record `verdict: 'fail'` — the failure belongs on record, not silently dropped. **The record is a claim about work done**: never record a verdict for renders you did not score, and after any further content `edit` the gate re-arms — judge again, record again.
|
|
90
91
|
|
|
91
92
|
## Judging discipline
|
|
92
93
|
|