@12ui/design 0.2.13 → 0.2.14
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/README.md +35 -9
- package/dist/branch-client.d.ts +155 -0
- package/dist/branch-client.d.ts.map +1 -0
- package/dist/branch-client.js +179 -0
- package/dist/branch-client.js.map +1 -0
- package/dist/branch-completion.d.ts +37 -0
- package/dist/branch-completion.d.ts.map +1 -0
- package/dist/branch-completion.js +137 -0
- package/dist/branch-completion.js.map +1 -0
- package/dist/branch-dispatch-loop.d.ts +84 -0
- package/dist/branch-dispatch-loop.d.ts.map +1 -0
- package/dist/branch-dispatch-loop.js +206 -0
- package/dist/branch-dispatch-loop.js.map +1 -0
- package/dist/branch-downloads.d.ts +43 -0
- package/dist/branch-downloads.d.ts.map +1 -0
- package/dist/branch-downloads.js +94 -0
- package/dist/branch-downloads.js.map +1 -0
- package/dist/branch-execution-types.d.ts +54 -0
- package/dist/branch-execution-types.d.ts.map +1 -0
- package/dist/branch-execution-types.js +2 -0
- package/dist/branch-execution-types.js.map +1 -0
- package/dist/branch-execution.d.ts +18 -0
- package/dist/branch-execution.d.ts.map +1 -0
- package/dist/branch-execution.js +261 -0
- package/dist/branch-execution.js.map +1 -0
- package/dist/branch-identity.d.ts +71 -0
- package/dist/branch-identity.d.ts.map +1 -0
- package/dist/branch-identity.js +72 -0
- package/dist/branch-identity.js.map +1 -0
- package/dist/branch-materialize.d.ts +22 -0
- package/dist/branch-materialize.d.ts.map +1 -0
- package/dist/branch-materialize.js +47 -0
- package/dist/branch-materialize.js.map +1 -0
- package/dist/branch-page-conversion.d.ts +39 -0
- package/dist/branch-page-conversion.d.ts.map +1 -0
- package/dist/branch-page-conversion.js +206 -0
- package/dist/branch-page-conversion.js.map +1 -0
- package/dist/branch-plan.d.ts +63 -0
- package/dist/branch-plan.d.ts.map +1 -0
- package/dist/branch-plan.js +95 -0
- package/dist/branch-plan.js.map +1 -0
- package/dist/branch-progress.d.ts +75 -0
- package/dist/branch-progress.d.ts.map +1 -0
- package/dist/branch-progress.js +159 -0
- package/dist/branch-progress.js.map +1 -0
- package/dist/branch-run-record.d.ts +153 -0
- package/dist/branch-run-record.d.ts.map +1 -0
- package/dist/branch-run-record.js +94 -0
- package/dist/branch-run-record.js.map +1 -0
- package/dist/branch-schedule.d.ts +74 -0
- package/dist/branch-schedule.d.ts.map +1 -0
- package/dist/branch-schedule.js +130 -0
- package/dist/branch-schedule.js.map +1 -0
- package/dist/branch-status.d.ts +11 -0
- package/dist/branch-status.d.ts.map +1 -0
- package/dist/branch-status.js +115 -0
- package/dist/branch-status.js.map +1 -0
- package/dist/branch-viewport-normalization.d.ts +74 -0
- package/dist/branch-viewport-normalization.d.ts.map +1 -0
- package/dist/branch-viewport-normalization.js +120 -0
- package/dist/branch-viewport-normalization.js.map +1 -0
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +4 -0
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli-branch-command.d.ts +46 -0
- package/dist/cli-branch-command.d.ts.map +1 -0
- package/dist/cli-branch-command.js +426 -0
- package/dist/cli-branch-command.js.map +1 -0
- package/dist/cli-capabilities.d.ts +28 -0
- package/dist/cli-capabilities.d.ts.map +1 -1
- package/dist/cli-capabilities.js +29 -1
- package/dist/cli-capabilities.js.map +1 -1
- package/dist/cli-create-command.d.ts +21 -0
- package/dist/cli-create-command.d.ts.map +1 -0
- package/dist/cli-create-command.js +319 -0
- package/dist/cli-create-command.js.map +1 -0
- package/dist/cli-detach.d.ts +62 -0
- package/dist/cli-detach.d.ts.map +1 -0
- package/dist/cli-detach.js +123 -0
- package/dist/cli-detach.js.map +1 -0
- package/dist/cli-draft-command.d.ts +63 -0
- package/dist/cli-draft-command.d.ts.map +1 -0
- package/dist/cli-draft-command.js +220 -0
- package/dist/cli-draft-command.js.map +1 -0
- package/dist/cli-export-command.d.ts.map +1 -1
- package/dist/cli-export-command.js +2 -3
- package/dist/cli-export-command.js.map +1 -1
- package/dist/cli-image-batch-command.d.ts +21 -0
- package/dist/cli-image-batch-command.d.ts.map +1 -1
- package/dist/cli-image-batch-command.js +65 -4
- package/dist/cli-image-batch-command.js.map +1 -1
- package/dist/cli-image-batch-resume.d.ts +7 -0
- package/dist/cli-image-batch-resume.d.ts.map +1 -1
- package/dist/cli-image-batch-resume.js +19 -2
- package/dist/cli-image-batch-resume.js.map +1 -1
- package/dist/cli-package-command.d.ts +18 -0
- package/dist/cli-package-command.d.ts.map +1 -0
- package/dist/cli-package-command.js +112 -0
- package/dist/cli-package-command.js.map +1 -0
- package/dist/cli-progress.d.ts +61 -0
- package/dist/cli-progress.d.ts.map +1 -1
- package/dist/cli-progress.js +53 -0
- package/dist/cli-progress.js.map +1 -1
- package/dist/cli-select-command.d.ts +12 -0
- package/dist/cli-select-command.d.ts.map +1 -0
- package/dist/cli-select-command.js +66 -0
- package/dist/cli-select-command.js.map +1 -0
- package/dist/cli.js +140 -7
- package/dist/cli.js.map +1 -1
- package/dist/create-identity.d.ts +25 -0
- package/dist/create-identity.d.ts.map +1 -0
- package/dist/create-identity.js +0 -0
- package/dist/create-identity.js.map +1 -0
- package/dist/draft-identity.d.ts +30 -0
- package/dist/draft-identity.d.ts.map +1 -0
- package/dist/draft-identity.js +0 -0
- package/dist/draft-identity.js.map +1 -0
- package/dist/draft-prompts.d.ts +35 -0
- package/dist/draft-prompts.d.ts.map +1 -0
- package/dist/draft-prompts.js +51 -0
- package/dist/draft-prompts.js.map +1 -0
- package/dist/draft-run.d.ts +32 -0
- package/dist/draft-run.d.ts.map +1 -0
- package/dist/draft-run.js +152 -0
- package/dist/draft-run.js.map +1 -0
- package/dist/draft-workspace.d.ts +90 -0
- package/dist/draft-workspace.d.ts.map +1 -0
- package/dist/draft-workspace.js +64 -0
- package/dist/draft-workspace.js.map +1 -0
- package/dist/image-batch-status.d.ts +42 -0
- package/dist/image-batch-status.d.ts.map +1 -0
- package/dist/image-batch-status.js +142 -0
- package/dist/image-batch-status.js.map +1 -0
- package/dist/image-dimensions.d.ts +12 -0
- package/dist/image-dimensions.d.ts.map +1 -0
- package/dist/image-dimensions.js +14 -0
- package/dist/image-dimensions.js.map +1 -0
- package/dist/image-generation-resume.d.ts +13 -0
- package/dist/image-generation-resume.d.ts.map +1 -1
- package/dist/image-generation-resume.js +13 -0
- package/dist/image-generation-resume.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy-skill-catalog.d.ts.map +1 -1
- package/dist/legacy-skill-catalog.js +115 -0
- package/dist/legacy-skill-catalog.js.map +1 -1
- package/dist/package-manifest-file.d.ts +21 -0
- package/dist/package-manifest-file.d.ts.map +1 -0
- package/dist/package-manifest-file.js +119 -0
- package/dist/package-manifest-file.js.map +1 -0
- package/dist/package-manifest-template.d.ts +23 -0
- package/dist/package-manifest-template.d.ts.map +1 -0
- package/dist/package-manifest-template.js +60 -0
- package/dist/package-manifest-template.js.map +1 -0
- package/dist/package-submission.d.ts +103 -0
- package/dist/package-submission.d.ts.map +1 -0
- package/dist/package-submission.js +173 -0
- package/dist/package-submission.js.map +1 -0
- package/dist/selection-record.d.ts +95 -0
- package/dist/selection-record.d.ts.map +1 -0
- package/dist/selection-record.js +121 -0
- package/dist/selection-record.js.map +1 -0
- package/package.json +1 -1
- package/skills/design/SKILL.md +40 -266
- package/skills/design-branch/SKILL.md +36 -116
- package/skills/design-convert/SKILL.md +62 -148
- package/skills/design-draft/SKILL.md +71 -135
- package/skills/design-search/SKILL.md +29 -78
- package/skills/design/references/continuation-contract.md +0 -60
- package/skills/design/references/selection-contract.md +0 -112
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# Selection evidence contract
|
|
2
|
-
|
|
3
|
-
Write `selection.json` before conversion. Use absolute image paths and exact
|
|
4
|
-
prompt text so a resumed run cannot silently select different evidence.
|
|
5
|
-
|
|
6
|
-
```json
|
|
7
|
-
{
|
|
8
|
-
"version": 6,
|
|
9
|
-
"createdAt": "<ISO-8601>",
|
|
10
|
-
"requestSummary": "<concise implementation contract>",
|
|
11
|
-
"viewportMode": "<first-viewport|primary-state|single-screen|complete-simple-surface>",
|
|
12
|
-
"designMode": "<new-interface|exploratory-redesign|structure-preserving-reskin>",
|
|
13
|
-
"redesignSource": {
|
|
14
|
-
"originalPath": "<absolute source path, or null when absent>",
|
|
15
|
-
"originalSha256": "<source sha256, or null when absent>",
|
|
16
|
-
"preparedPath": "<absolute crop or original path, or null when absent>",
|
|
17
|
-
"preparedSha256": "<prepared sha256, or null when absent>",
|
|
18
|
-
"preparation": "<none|first-viewport-crop>"
|
|
19
|
-
},
|
|
20
|
-
"contract": {
|
|
21
|
-
"preserve": ["<specific constraint>"],
|
|
22
|
-
"change": ["<specific intended change>"]
|
|
23
|
-
},
|
|
24
|
-
"referencePolicy": {
|
|
25
|
-
"retrieval": "<text-only|text-and-redesign-source>",
|
|
26
|
-
"generation": "<one-corpus-image-per-candidate|redesign-source-only>",
|
|
27
|
-
"imagesPerGeneration": 1
|
|
28
|
-
},
|
|
29
|
-
"corpus": {
|
|
30
|
-
"query": "<exact query>",
|
|
31
|
-
"mode": "<direct|balanced|adventurer>",
|
|
32
|
-
"fallback": null,
|
|
33
|
-
"idempotencyKey": "<manifest value>",
|
|
34
|
-
"setId": "<manifest value>",
|
|
35
|
-
"references": [
|
|
36
|
-
{
|
|
37
|
-
"id": "<id-1>",
|
|
38
|
-
"path": "<absolute path>",
|
|
39
|
-
"sha256": "<sha256>",
|
|
40
|
-
"aspect": "<portrait|landscape|square>"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"generation": {
|
|
45
|
-
"referenceMode": "<inspiration|preserve-structure>",
|
|
46
|
-
"manifestPath": "<absolute generation manifest path>",
|
|
47
|
-
"manifestSha256": "<sha256>",
|
|
48
|
-
"batchAttemptPath": "<absolute batch attempt path>"
|
|
49
|
-
},
|
|
50
|
-
"candidates": [
|
|
51
|
-
{
|
|
52
|
-
"id": "A",
|
|
53
|
-
"path": "<absolute PNG path>",
|
|
54
|
-
"sha256": "<sha256>",
|
|
55
|
-
"prompt": "<exact prompt>",
|
|
56
|
-
"promptSha256": "<sha256>",
|
|
57
|
-
"directionReferenceId": "<paired corpus id-1>",
|
|
58
|
-
"direction": "<short visibly grounded text direction>",
|
|
59
|
-
"generationReferencePath": "<paired corpus path or redesign-source path>",
|
|
60
|
-
"generationReferenceSha256": "<sha256>",
|
|
61
|
-
"referenceMode": "<inspiration|preserve-structure>",
|
|
62
|
-
"provider": "<codex|openai>",
|
|
63
|
-
"idempotencyKey": "<stable key>",
|
|
64
|
-
"providerIdempotencyEnforced": false,
|
|
65
|
-
"attemptEvidencePath": "<absolute attempt path>",
|
|
66
|
-
"rejectionReasons": []
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"recommendation": {
|
|
70
|
-
"candidateId": "<recommended candidate id, or null when the run indicated none>",
|
|
71
|
-
"source": "<where the recommendation came from, or null>"
|
|
72
|
-
},
|
|
73
|
-
"winner": "A",
|
|
74
|
-
"selectionSource": "<recommended|override|no-recommendation>",
|
|
75
|
-
"selectionOverrideReason": "<why the recommendation was not followed, or null>",
|
|
76
|
-
"rationale": "<visible, brief-specific rationale>"
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Include exactly four corpus references and candidates in endpoint order: A/1,
|
|
81
|
-
B/2, C/3, D/4. Copy the corpus mode and reference evidence from
|
|
82
|
-
`manifest.json`, and generation fields from the batch and candidate attempt
|
|
83
|
-
files. Never store credentials or invent IDs or provider guarantees. The winner
|
|
84
|
-
has no rejection reasons; every other candidate has at least one specific
|
|
85
|
-
visible reason. Set `providerIdempotencyEnforced` only to the recorded CLI
|
|
86
|
-
value.
|
|
87
|
-
|
|
88
|
-
Set `selectionSource` to `recommended` when the winner is the recommended
|
|
89
|
-
candidate, `override` when it is not, and `no-recommendation` when the run
|
|
90
|
-
indicated none. Use null `recommendation` fields in that last case. An
|
|
91
|
-
`override` requires a specific `selectionOverrideReason` — an explicit user
|
|
92
|
-
preference, a brief or steering directive the recommendation could not see, or a
|
|
93
|
-
named visible defect in the recommended candidate — and keeps
|
|
94
|
-
`selectionOverrideReason` null in every other case. A flow that also writes
|
|
95
|
-
`design-run.json` records the same pair there, the reason under
|
|
96
|
-
`selection_override_reason`.
|
|
97
|
-
|
|
98
|
-
Keep `corpus.fallback` null for the recommended Balanced result. If Direct or
|
|
99
|
-
Adventurer was used after a complete Balanced set failed the brief, replace it
|
|
100
|
-
with `{ "fromMode": "balanced", "reason": "<visible failure>",
|
|
101
|
-
"manifestPath": "<prior absolute manifest path>", "manifestSha256":
|
|
102
|
-
"<sha256>" }`. Do not record a transport or download failure as a mode fallback.
|
|
103
|
-
|
|
104
|
-
For `new-interface`, use null redesign-source paths/hashes, `text-only` retrieval, and one
|
|
105
|
-
paired corpus image per generation. For `exploratory-redesign`, record the
|
|
106
|
-
original and prepared source for retrieval but still use one paired corpus
|
|
107
|
-
image per generation. For `structure-preserving-reskin`, use the prepared
|
|
108
|
-
redesign source as the sole generation
|
|
109
|
-
image for all four candidates; each paired corpus image is represented only by
|
|
110
|
-
its short textual `direction`. Never attach the redesign source and a corpus
|
|
111
|
-
image to the same generation. Use `inspiration` reference mode for the first two
|
|
112
|
-
cases and `preserve-structure` for the last.
|