@12ui/design 0.2.56 → 0.2.57
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/SKILL.md +1 -1
- package/dist/branch-client.d.ts +2 -0
- package/dist/branch-client.d.ts.map +1 -1
- package/dist/branch-client.js +1 -0
- package/dist/branch-client.js.map +1 -1
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +1 -0
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli-convert-command.d.ts.map +1 -1
- package/dist/cli-convert-command.js +110 -15
- package/dist/cli-convert-command.js.map +1 -1
- package/dist/cli-corpus-command.d.ts.map +1 -1
- package/dist/cli-corpus-command.js +5 -2
- package/dist/cli-corpus-command.js.map +1 -1
- package/dist/cli-corpus-evidence.d.ts.map +1 -1
- package/dist/cli-corpus-evidence.js +2 -1
- package/dist/cli-corpus-evidence.js.map +1 -1
- package/dist/cli-corpus-reference-downloads.d.ts +1 -0
- package/dist/cli-corpus-reference-downloads.d.ts.map +1 -1
- package/dist/cli-corpus-reference-downloads.js +13 -3
- package/dist/cli-corpus-reference-downloads.js.map +1 -1
- package/dist/cli-corpus-types.d.ts +2 -0
- package/dist/cli-corpus-types.d.ts.map +1 -1
- package/dist/cli-help/design.d.ts +1 -1
- package/dist/cli-help/design.d.ts.map +1 -1
- package/dist/cli-help/design.js +6 -2
- package/dist/cli-help/design.js.map +1 -1
- package/dist/cli-help/index.d.ts +1 -1
- package/dist/cli-improve-command.d.ts.map +1 -1
- package/dist/cli-improve-command.js +68 -5
- package/dist/cli-improve-command.js.map +1 -1
- package/dist/cli-usage.js +2 -2
- package/dist/concept-input.d.ts +21 -0
- package/dist/concept-input.d.ts.map +1 -1
- package/dist/concept-input.js +32 -10
- package/dist/concept-input.js.map +1 -1
- package/dist/conversion-client.d.ts +39 -1
- package/dist/conversion-client.d.ts.map +1 -1
- package/dist/conversion-client.js +205 -3
- package/dist/conversion-client.js.map +1 -1
- package/dist/corpus-client.d.ts +7 -1
- package/dist/corpus-client.d.ts.map +1 -1
- package/dist/corpus-client.js +6 -2
- package/dist/corpus-client.js.map +1 -1
- package/dist/corpus-reference-download-retry.d.ts +68 -0
- package/dist/corpus-reference-download-retry.d.ts.map +1 -0
- package/dist/corpus-reference-download-retry.js +123 -0
- package/dist/corpus-reference-download-retry.js.map +1 -0
- package/dist/corpus-request-error.d.ts +17 -0
- package/dist/corpus-request-error.d.ts.map +1 -0
- package/dist/corpus-request-error.js +21 -0
- package/dist/corpus-request-error.js.map +1 -0
- package/dist/draft-run.d.ts +9 -0
- package/dist/draft-run.d.ts.map +1 -1
- package/dist/draft-run.js +22 -5
- package/dist/draft-run.js.map +1 -1
- package/dist/draft-workspace.d.ts +2 -1
- package/dist/draft-workspace.d.ts.map +1 -1
- package/dist/draft-workspace.js.map +1 -1
- package/dist/hosted-draft-identity.d.ts +1 -0
- package/dist/hosted-draft-identity.d.ts.map +1 -1
- package/dist/hosted-draft-identity.js +1 -0
- package/dist/hosted-draft-identity.js.map +1 -1
- package/dist/improve-added-specs.d.ts +9 -0
- package/dist/improve-added-specs.d.ts.map +1 -1
- package/dist/improve-added-specs.js +28 -7
- package/dist/improve-added-specs.js.map +1 -1
- package/dist/improve-bootstrap-secret.d.ts +35 -0
- package/dist/improve-bootstrap-secret.d.ts.map +1 -0
- package/dist/improve-bootstrap-secret.js +61 -0
- package/dist/improve-bootstrap-secret.js.map +1 -0
- package/dist/improve-capture-redirect.d.ts +46 -0
- package/dist/improve-capture-redirect.d.ts.map +1 -0
- package/dist/improve-capture-redirect.js +68 -0
- package/dist/improve-capture-redirect.js.map +1 -0
- package/dist/improve-concept.d.ts +14 -1
- package/dist/improve-concept.d.ts.map +1 -1
- package/dist/improve-concept.js +29 -8
- package/dist/improve-concept.js.map +1 -1
- package/dist/improve-conversion-attempts.d.ts +9 -5
- package/dist/improve-conversion-attempts.d.ts.map +1 -1
- package/dist/improve-conversion-attempts.js +6 -1
- package/dist/improve-conversion-attempts.js.map +1 -1
- package/dist/improve-conversion-stage.d.ts +7 -0
- package/dist/improve-conversion-stage.d.ts.map +1 -1
- package/dist/improve-conversion-stage.js +188 -171
- package/dist/improve-conversion-stage.js.map +1 -1
- package/dist/improve-convert-progress.d.ts +36 -0
- package/dist/improve-convert-progress.d.ts.map +1 -0
- package/dist/improve-convert-progress.js +43 -0
- package/dist/improve-convert-progress.js.map +1 -0
- package/dist/improve-convert-resilience.d.ts +44 -53
- package/dist/improve-convert-resilience.d.ts.map +1 -1
- package/dist/improve-convert-resilience.js +51 -58
- package/dist/improve-convert-resilience.js.map +1 -1
- package/dist/improve-delivery-stages.d.ts.map +1 -1
- package/dist/improve-delivery-stages.js +4 -0
- package/dist/improve-delivery-stages.js.map +1 -1
- package/dist/improve-generation-stages.d.ts.map +1 -1
- package/dist/improve-generation-stages.js +32 -3
- package/dist/improve-generation-stages.js.map +1 -1
- package/dist/improve-icon-svg.d.ts +47 -0
- package/dist/improve-icon-svg.d.ts.map +1 -0
- package/dist/improve-icon-svg.js +83 -0
- package/dist/improve-icon-svg.js.map +1 -0
- package/dist/improve-kit-ignore.d.ts +32 -0
- package/dist/improve-kit-ignore.d.ts.map +1 -0
- package/dist/improve-kit-ignore.js +111 -0
- package/dist/improve-kit-ignore.js.map +1 -0
- package/dist/improve-kit-readme.d.ts.map +1 -1
- package/dist/improve-kit-readme.js +101 -11
- package/dist/improve-kit-readme.js.map +1 -1
- package/dist/improve-kit-stall.d.ts +48 -2
- package/dist/improve-kit-stall.d.ts.map +1 -1
- package/dist/improve-kit-stall.js +167 -15
- package/dist/improve-kit-stall.js.map +1 -1
- package/dist/improve-kit-status.d.ts +36 -0
- package/dist/improve-kit-status.d.ts.map +1 -1
- package/dist/improve-kit-status.js +74 -4
- package/dist/improve-kit-status.js.map +1 -1
- package/dist/improve-options.d.ts +6 -0
- package/dist/improve-options.d.ts.map +1 -1
- package/dist/improve-options.js +3 -0
- package/dist/improve-options.js.map +1 -1
- package/dist/improve-plan-annotated-render.d.ts +13 -1
- package/dist/improve-plan-annotated-render.d.ts.map +1 -1
- package/dist/improve-plan-annotated-render.js +21 -0
- package/dist/improve-plan-annotated-render.js.map +1 -1
- package/dist/improve-plan-annotator.d.ts +5 -0
- package/dist/improve-plan-annotator.d.ts.map +1 -1
- package/dist/improve-plan-annotator.js +1 -0
- package/dist/improve-plan-annotator.js.map +1 -1
- package/dist/improve-run-summary.d.ts.map +1 -1
- package/dist/improve-run-summary.js +51 -5
- package/dist/improve-run-summary.js.map +1 -1
- package/dist/improve-stage-shared.d.ts +39 -1
- package/dist/improve-stage-shared.d.ts.map +1 -1
- package/dist/improve-stage-shared.js +80 -3
- package/dist/improve-stage-shared.js.map +1 -1
- package/dist/improve-terminal-event.d.ts.map +1 -1
- package/dist/improve-terminal-event.js +7 -1
- package/dist/improve-terminal-event.js.map +1 -1
- package/dist/improve-token-patch.d.ts +2 -0
- package/dist/improve-token-patch.d.ts.map +1 -1
- package/dist/improve-token-patch.js +23 -5
- package/dist/improve-token-patch.js.map +1 -1
- package/dist/improve-workspace.d.ts +84 -7
- package/dist/improve-workspace.d.ts.map +1 -1
- package/dist/improve-workspace.js +16 -1
- package/dist/improve-workspace.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy-skill-catalog.d.ts.map +1 -1
- package/dist/legacy-skill-catalog.js +123 -0
- package/dist/legacy-skill-catalog.js.map +1 -1
- package/dist/mcp-tool-definitions.js +1 -1
- package/dist/mcp-tool-definitions.js.map +1 -1
- package/dist/mcp-tool-handler.d.ts.map +1 -1
- package/dist/mcp-tool-handler.js +3 -0
- package/dist/mcp-tool-handler.js.map +1 -1
- package/dist/redesign-capture.d.ts +1 -0
- package/dist/redesign-capture.d.ts.map +1 -1
- package/dist/redesign-capture.js +6 -0
- package/dist/redesign-capture.js.map +1 -1
- package/dist/responsive-alternative-materializer.d.ts +19 -0
- package/dist/responsive-alternative-materializer.d.ts.map +1 -0
- package/dist/responsive-alternative-materializer.js +76 -0
- package/dist/responsive-alternative-materializer.js.map +1 -0
- package/open-design.json +2 -2
- package/package.json +1 -1
- package/skills/12ui-design/SKILL.md +7 -1
- package/skills/12ui-design/improve.md +20 -5
- package/skills/12ui-design/inspire.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool-handler.js","sourceRoot":"","sources":["../src/mcp-tool-handler.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAA0B,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EACL,wBAAwB,GAGzB,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,GAGrB,MAAM,oBAAoB,CAAC;AAwB5B,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAwB,EAAuB,EAAE,CAAC,CAAC;IAC3F,MAAM;IACN,gBAAgB,EAAE,IAAI,wBAAwB,CAAC,MAAM,CAAC;IACtD,YAAY,EAAE,IAAI,oBAAoB,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,IAAI,oBAAoB,CAAC,MAAM,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,KAAc,EAAiB,EAAE,CAAC,CAAC;IACrD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,I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AAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAiC1D,CAAC"}
|
package/dist/redesign-capture.js
CHANGED
|
@@ -213,6 +213,11 @@ export const captureImprovePage = async (args) => {
|
|
|
213
213
|
await page.waitForURL(action.waitUrl, { waitUntil: 'networkidle' });
|
|
214
214
|
}
|
|
215
215
|
await page.screenshot({ path: args.screenshotFile, fullPage: args.fullPage });
|
|
216
|
+
// The page that was actually photographed, which is not always the page
|
|
217
|
+
// that was asked for: an auth gate answers `/app` with `/signin?next=/app`
|
|
218
|
+
// and every stage after this one improves the sign-in card (F27). Only
|
|
219
|
+
// capture knows both URLs, so only capture can report the one it landed on.
|
|
220
|
+
const capturedUrl = page.url();
|
|
216
221
|
const domDoc = await page.evaluate(extractImproveDomInPage, { fullPage: args.fullPage });
|
|
217
222
|
await writeFile(args.domDocFile, `${JSON.stringify(domDoc, null, 2)}\n`, 'utf8');
|
|
218
223
|
const canvas = domDoc && typeof domDoc === 'object' && 'canvas' in domDoc
|
|
@@ -221,6 +226,7 @@ export const captureImprovePage = async (args) => {
|
|
|
221
226
|
return {
|
|
222
227
|
width: typeof canvas?.width === 'number' ? canvas.width : args.viewport.width,
|
|
223
228
|
height: typeof canvas?.height === 'number' ? canvas.height : args.viewport.height,
|
|
229
|
+
url: capturedUrl,
|
|
224
230
|
};
|
|
225
231
|
}
|
|
226
232
|
finally {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redesign-capture.js","sourceRoot":"","sources":["../src/redesign-capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC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,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ConversionOperation, type ResponsiveArtifactCoverage, type TwelveUiConversionClient } from './conversion-client.js';
|
|
2
|
+
export type MaterializedResponsiveAlternative = {
|
|
3
|
+
disposition: 'partial_responsive' | 'fixed_html_alternative';
|
|
4
|
+
coverage: ResponsiveArtifactCoverage;
|
|
5
|
+
outFile: string;
|
|
6
|
+
manifestFile: string;
|
|
7
|
+
artifactCount: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Materializes a failed run's explicit alternative without asking the service
|
|
11
|
+
* for a canonical result. Partial bands stay separate and the requested path
|
|
12
|
+
* becomes their typed JSON manifest; fixed-only bytes stay byte-for-byte HTML.
|
|
13
|
+
*/
|
|
14
|
+
export declare const materializeResponsiveAlternative: (args: {
|
|
15
|
+
client: Pick<TwelveUiConversionClient, "downloadResponsiveAlternative">;
|
|
16
|
+
operation: ConversionOperation;
|
|
17
|
+
outFile: string;
|
|
18
|
+
}) => Promise<MaterializedResponsiveAlternative>;
|
|
19
|
+
//# sourceMappingURL=responsive-alternative-materializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-alternative-materializer.d.ts","sourceRoot":"","sources":["../src/responsive-alternative-materializer.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,EAAE,oBAAoB,GAAG,wBAAwB,CAAC;IAC7D,QAAQ,EAAE,0BAA0B,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AASF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAU,MAAM;IAC3D,MAAM,EAAE,IAAI,CAAC,wBAAwB,EAAE,+BAA+B,CAAC,CAAC;IACxE,SAAS,EAAE,mBAAmB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,KAAG,OAAO,CAAC,iCAAiC,CAgE5C,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { mkdir, writeFile } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { RESPONSIVE_PARTIAL_HTML_MANIFEST_MEDIA_TYPE, } from './conversion-client.js';
|
|
5
|
+
const assertDigest = (artifact, bytes) => {
|
|
6
|
+
const digest = createHash('sha256').update(bytes).digest('hex');
|
|
7
|
+
if (digest !== artifact.sha256) {
|
|
8
|
+
throw new Error(`Responsive alternative artifact ${artifact.id} failed SHA-256 verification`);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Materializes a failed run's explicit alternative without asking the service
|
|
13
|
+
* for a canonical result. Partial bands stay separate and the requested path
|
|
14
|
+
* becomes their typed JSON manifest; fixed-only bytes stay byte-for-byte HTML.
|
|
15
|
+
*/
|
|
16
|
+
export const materializeResponsiveAlternative = async (args) => {
|
|
17
|
+
const downloaded = await args.client.downloadResponsiveAlternative(args.operation);
|
|
18
|
+
const directory = `${args.outFile}.assets`;
|
|
19
|
+
await mkdir(directory, { recursive: true });
|
|
20
|
+
if (downloaded.disposition === 'fixed_html_alternative') {
|
|
21
|
+
assertDigest(downloaded.artifact, downloaded.download.bytes);
|
|
22
|
+
await writeFile(args.outFile, downloaded.download.bytes);
|
|
23
|
+
const manifestFile = path.join(directory, 'responsive-alternative.json');
|
|
24
|
+
await writeFile(manifestFile, `${JSON.stringify({
|
|
25
|
+
revision: 'responsive-html-alternative-local-v1',
|
|
26
|
+
conversion_id: args.operation.id,
|
|
27
|
+
disposition: downloaded.disposition,
|
|
28
|
+
responsive_complete: false,
|
|
29
|
+
coverage: downloaded.coverage,
|
|
30
|
+
artifact: {
|
|
31
|
+
id: downloaded.artifact.id,
|
|
32
|
+
media_type: downloaded.download.mediaType,
|
|
33
|
+
sha256: downloaded.artifact.sha256,
|
|
34
|
+
local_path: args.outFile,
|
|
35
|
+
},
|
|
36
|
+
}, null, 2)}\n`, 'utf8');
|
|
37
|
+
return {
|
|
38
|
+
disposition: downloaded.disposition,
|
|
39
|
+
coverage: downloaded.coverage,
|
|
40
|
+
outFile: args.outFile,
|
|
41
|
+
manifestFile,
|
|
42
|
+
artifactCount: 1,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const bands = await Promise.all(downloaded.bands.map(async (band) => {
|
|
46
|
+
assertDigest(band.artifact, band.download.bytes);
|
|
47
|
+
const localPath = path.join(directory, `${band.anchor_id}-${band.viewport_width}-${band.artifact.sha256.slice(0, 12)}.html`);
|
|
48
|
+
await writeFile(localPath, band.download.bytes);
|
|
49
|
+
return {
|
|
50
|
+
anchor_id: band.anchor_id,
|
|
51
|
+
viewport_width: band.viewport_width,
|
|
52
|
+
artifact_id: band.artifact.id,
|
|
53
|
+
media_type: band.download.mediaType,
|
|
54
|
+
sha256: band.artifact.sha256,
|
|
55
|
+
local_path: localPath,
|
|
56
|
+
};
|
|
57
|
+
}));
|
|
58
|
+
const manifest = {
|
|
59
|
+
revision: 'responsive-html-partial-band-manifest-local-v1',
|
|
60
|
+
conversion_id: args.operation.id,
|
|
61
|
+
disposition: downloaded.disposition,
|
|
62
|
+
media_type: RESPONSIVE_PARTIAL_HTML_MANIFEST_MEDIA_TYPE,
|
|
63
|
+
responsive_complete: false,
|
|
64
|
+
coverage: downloaded.coverage,
|
|
65
|
+
bands,
|
|
66
|
+
};
|
|
67
|
+
await writeFile(args.outFile, `${JSON.stringify(manifest, null, 2)}\n`, 'utf8');
|
|
68
|
+
return {
|
|
69
|
+
disposition: downloaded.disposition,
|
|
70
|
+
coverage: downloaded.coverage,
|
|
71
|
+
outFile: args.outFile,
|
|
72
|
+
manifestFile: args.outFile,
|
|
73
|
+
artifactCount: bands.length,
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=responsive-alternative-materializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-alternative-materializer.js","sourceRoot":"","sources":["../src/responsive-alternative-materializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,2CAA2C,GAK5C,MAAM,wBAAwB,CAAC;AAUhC,MAAM,YAAY,GAAG,CAAC,QAA4B,EAAE,KAAiB,EAAQ,EAAE;IAC7E,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChE,IAAI,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,CAAC,EAAE,8BAA8B,CAAC,CAAC;IAChG,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,EAAE,IAItD,EAA8C,EAAE;IAC/C,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnF,MAAM,SAAS,GAAG,GAAG,IAAI,CAAC,OAAO,SAAS,CAAC;IAC3C,MAAM,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5C,IAAI,UAAU,CAAC,WAAW,KAAK,wBAAwB,EAAE,CAAC;QACxD,YAAY,CAAC,UAAU,CAAC,QAAQ,EAAE,UAA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
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.57",
|
|
7
7
|
"description": "Explore corpus-grounded interface directions, choose one, and convert it into production-ready responsive or native artifacts with 12UI.",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Just Every",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"command": "npx",
|
|
50
50
|
"args": [
|
|
51
51
|
"-y",
|
|
52
|
-
"@12ui/design@0.2.
|
|
52
|
+
"@12ui/design@0.2.57",
|
|
53
53
|
"mcp"
|
|
54
54
|
]
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -76,9 +76,15 @@ Read `inspire.md` for search modes, ranked manifest order, and interrupted-searc
|
|
|
76
76
|
Use improve when one existing interface should get better end to end. Use draft for a new first viewport; use redesign when a live site should be redrawn and expanded across several pages.
|
|
77
77
|
|
|
78
78
|
12ui improve <url|image.png>
|
|
79
|
-
12ui improve <url|image.png> --direction "<detailed style and goal>"
|
|
79
|
+
12ui improve <url|image.png> --direction "<detailed style and goal, 693 chars max>"
|
|
80
80
|
12ui improve <url> --target <image.png|layerdoc.json>
|
|
81
81
|
|
|
82
|
+
Without `--target` this is two commands. The first stops after drafting by design: it converts nothing, exits 0, and prints where the candidate PNGs are. Inspect them, then run the pick. The pick is mandatory — always run it, and the run's `Next:` line prints the exact command:
|
|
83
|
+
|
|
84
|
+
12ui improve <url|image.png> --out-dir <kit> --from pick --pick <slot>
|
|
85
|
+
|
|
86
|
+
Convert and plan run from there. Exit code 0 with an INCOMPLETE kit means nothing has been picked yet, not that the run failed. Never work around the checkpoint by approximating the design in CSS.
|
|
87
|
+
|
|
82
88
|
The kit's README says what to keep and what to do if a stage stalled; read it before touching code.
|
|
83
89
|
|
|
84
90
|
Only if needed, read `improve.md` for the full modes.
|
|
@@ -22,6 +22,8 @@ Use `--target` to align or restore a live page to an existing design. A target i
|
|
|
22
22
|
|
|
23
23
|
Use `--direction` to steer generation. Give detailed, style-anchored direction: state the intended hierarchy, rhythm, typography, surfaces, color, controls, and mood. Detailed direction beat vague criticism in the measured prompt pass.
|
|
24
24
|
|
|
25
|
+
`--direction` accepts at most 693 characters, and the CLI refuses a longer one before anything is captured, drawn, or bought. That is not the 1200-character concept limit the `--concept` flags carry: improve sends a 1200-character concept and spends 507 of it on its own style preamble and no-invention clause, so 693 is what the flag has left. Compose within 693 rather than trimming after a refusal; the refusal names the limit, what was written, and how much to cut.
|
|
26
|
+
|
|
25
27
|
Never name emptiness or thin content as a defect. Models fabricate UI to fill it. The default concept already says to keep all real content, data, and controls and invent nothing.
|
|
26
28
|
|
|
27
29
|
## Candidates and picking
|
|
@@ -55,15 +57,24 @@ Picking is free. The new winner still needs its target conversion and plan; thei
|
|
|
55
57
|
- `capture/` and `current.domdoc.json` hold the URL screenshot and selector-verified DOM extraction. Screenshot mode keeps `source.png` instead.
|
|
56
58
|
- `candidates/` keeps every generated option. `winner.png` is the explicit selection or supplied target image.
|
|
57
59
|
- `target/` holds the target LayerDoc, responsive HTML when generated, and extracted assets.
|
|
58
|
-
- If responsive HTML fails or reaches the improve deadline, the kit warns that its free HTML fallback is fixed-layout and still continues to the LayerDoc-based plan.
|
|
60
|
+
- If responsive HTML fails or reaches the improve deadline, the kit warns that its free HTML fallback is fixed-layout and still continues to the LayerDoc-based plan. That run also writes `plan/STALL.md` and says so in its summary and README status: it is a recovered run, not a clean one.
|
|
59
61
|
- `plan/` holds the selector diff, annotated implementation plan, `token-patch.css`, and added-element specs or assets.
|
|
62
|
+
- `token-patch.css` never imports a font over the network. When the design uses a Google font, the patch declares it as a comment and a CSS custom property named for the family, and the plan and README name the family under "Fonts": load it the way the repository already loads fonts — self-host it, or add it to the existing loader — or keep the current family and skip that token.
|
|
60
63
|
|
|
61
64
|
URL plans pass only with at least 60% plausible DOM-side coverage after content, spatial, and neighbour matching. If the gate blocks, use `plan/GATE.md` to inspect the mismatch. The target HTML and LayerDoc remain a sidecar source of truth, but do not treat an unsafe selector mapping as an inline patch.
|
|
62
65
|
|
|
63
66
|
## Using the kit
|
|
64
67
|
|
|
68
|
+
A kit whose `pick` stage reads INCOMPLETE is a drafts-only kit. The CLI stops after the draw by design: it converted nothing and exited 0. Inspect the candidate PNGs in `candidates/`, then run the pick. The pick is mandatory — always run it, and the run's last line prints the exact command under `Next:`:
|
|
69
|
+
|
|
70
|
+
12ui improve <url> --out-dir <kit> --from pick --pick <slot>
|
|
71
|
+
|
|
72
|
+
Convert and plan run from there. Exit code 0 with an INCOMPLETE kit means nothing has been picked yet, not that the run failed. Never work around the checkpoint by approximating the design in CSS.
|
|
73
|
+
|
|
65
74
|
Read `README.md` first. It carries the run's honest status, the assets table for this kit, and the recovery commands when a stage did not settle. The table's ship column is the instruction: copy the files marked ship, keep one of any alternate resolution, and read the references without shipping them.
|
|
66
75
|
|
|
76
|
+
A kit written inside the repository is local audit evidence, not source: when `--out-dir` sits under a `.improve/` directory in a git working tree the CLI appends a `.improve/` rule to the repository root `.gitignore` if nothing ignores it already, and for any other in-repo out-dir it prints one line telling you to ignore that path before committing — never commit the kit.
|
|
77
|
+
|
|
67
78
|
Plates and cutouts arrive at full resolution and run over a megabyte. Pick one resolution per layer and optimise the PNG — or convert it to WebP where the repository already uses one — before committing, keeping the filename stem so the plan still matches.
|
|
68
79
|
|
|
69
80
|
### Asset roles
|
|
@@ -80,9 +91,11 @@ When the target LayerDoc declares a raster layer, copy its file into the reposit
|
|
|
80
91
|
|
|
81
92
|
### When a stage stalls
|
|
82
93
|
|
|
83
|
-
Wait to the bound the CLI prints; never stop a conversion inside its typical window. `--convert-stall-seconds` bounds each hosted wait the convert stage makes, including the free fixed-layout derivation; it defaults to twice the model's typical wall (480s standard and pro, 300s fast). At the bound the CLI either derives fixed-layout HTML free from a LayerDoc that did land, or — when nothing landed and there is nothing to derive —
|
|
94
|
+
Wait to the bound the CLI prints; never stop a conversion inside its typical window. `--convert-stall-seconds` bounds each hosted wait the convert stage makes, including the free fixed-layout derivation; it defaults to twice the model's typical wall (480s standard and pro, 300s fast). At the bound the CLI buys nothing. It either derives fixed-layout HTML free from a LayerDoc that did land, or — when nothing landed and there is nothing to derive — stops and hands the conversion back by id, because that conversion is still running, still billing, and cannot be cancelled. The wait is not silent: a `[wait]` line every minute names the elapsed time, the bound, the conversion id, and the service stage.
|
|
95
|
+
|
|
96
|
+
A fixed-layout fallback still finishes the kit and still writes `plan/STALL.md`, which names what stalled, how long it waited, and the `12ui resume <conversion-id> --out-dir <kit>/target` that collects the responsive export later if it completes. `resume` recovers an existing purchase and buys nothing. Do not re-run improve to chase a responsive target.
|
|
84
97
|
|
|
85
|
-
|
|
98
|
+
One operator command dispatches at most one conversion, on every model. Resuming with `--from convert` rebuilds the same idempotency key, so it re-attaches to the conversion the kit already bought however many times you run it, and `12ui resume <conversion-id> --out-dir <kit>/target` collects that conversion directly once it finishes. `--fresh` is the only way to buy another, and it is you asking. Every conversion the kit dispatches is priced in `improve.json` before it starts, under `conversionAttempts` and `stages.convert`, so the kit can state its own spend even when nothing settled.
|
|
86
99
|
|
|
87
100
|
Past that, `plan/STALL.md` names the stage, the hosted run, any abandoned conversions, and the recovery, each command annotated with what it spends:
|
|
88
101
|
|
|
@@ -90,9 +103,11 @@ Past that, `plan/STALL.md` names the stage, the hosted run, any abandoned conver
|
|
|
90
103
|
12ui convert <kit>/winner.png --output html # buys one conversion
|
|
91
104
|
12ui improve <url> --target <kit>/winner.png # buys one fused target conversion
|
|
92
105
|
|
|
93
|
-
The third form is offered for a URL input only. Do not approximate the design in CSS from the PNG while a stage is incomplete; resume or convert first.
|
|
106
|
+
The third form is offered for a URL input only. Once the LayerDoc exists, carry its raster layers as real assets — copy the files and reference them. Do not approximate the design's layout or text in CSS from the PNG while a stage is incomplete; resume or convert first. The README and `STALL.md` print that one sentence, so an incomplete kit cannot tell you two things.
|
|
107
|
+
|
|
108
|
+
`plan/STALL.md` has a lifecycle: the CLI writes it at its own bound as well as on a signal, and a later run that settles the stage REPLACES it with a short resolved note naming when the kit stalled and when it settled. A file saying INCOMPLETE beside a README saying settled is not a state this kit can be in; read the README for status either way.
|
|
94
109
|
|
|
95
|
-
A stopped run writes the same `STALL.md` and README as a stalled one, at whatever stage it had reached (a signal that arrives after the last requested stage settled writes no `STALL.md` — that run is complete), and closes the kit's `journal.jsonl` with a terminal event naming the stop or the stall. `12ui next <kit>` reads that event and still reports the hosted run as live, because it is: stopping the CLI does not stop the conversion, and there is no cancel —
|
|
110
|
+
A stopped run writes the same `STALL.md` and README as a stalled one, at whatever stage it had reached (a signal that arrives after the last requested stage settled writes no `STALL.md` — that run is complete), and closes the kit's `journal.jsonl` with a terminal event naming the stop or the stall. `12ui next <kit>` reads that event and still reports the hosted run as live, because it is: stopping the CLI does not stop the conversion, and there is no cancel — a conversion nobody collects runs to completion and bills. `abandonedConversions` in `improve.json` lists the conversions YOU walked away from — a re-pick, a redraw, a `--fresh`; the CLI never adds one of its own. A conversion a stopped or stalled run was still waiting on is not abandoned: every dispatch writes its idempotency key to `conversionAttempts` before it happens, so `STALL.md` names the run the resume attaches to and `--from convert` re-attaches to it instead of buying another. SIGKILL is the exception: it runs no handler, so the kit is not written and the journal's last progress line is the record.
|
|
96
111
|
|
|
97
112
|
### When the coverage gate blocks
|
|
98
113
|
|
|
@@ -4,7 +4,7 @@ Use this only when reference imagery itself is needed, or when you need direct c
|
|
|
4
4
|
|
|
5
5
|
12ui corpus inspire --query "<product, audience, surface, goal, personality>" --out-dir <directory> --count 4
|
|
6
6
|
|
|
7
|
-
`balanced` is the default mode. Use `--mode direct|balanced|adventurer` to
|
|
7
|
+
`balanced` is the default mode. Use `--mode direct|balanced|adventurer|hedge` to select a locked retrieval policy; `hedge` carries retrieval evidence and its returned order is authoritative. Add `--reference-image <image.png>` to rank against an existing interface. Preserve manifest order: it is ranked and diversified.
|
|
8
8
|
|
|
9
9
|
If retrieval is interrupted, continue the same durable attempt:
|
|
10
10
|
|