@12ui/design 0.2.13 → 0.2.15

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.
Files changed (188) hide show
  1. package/README.md +35 -9
  2. package/dist/bounded-concurrency.d.ts +13 -0
  3. package/dist/bounded-concurrency.d.ts.map +1 -0
  4. package/dist/bounded-concurrency.js +43 -0
  5. package/dist/bounded-concurrency.js.map +1 -0
  6. package/dist/branch-client.d.ts +155 -0
  7. package/dist/branch-client.d.ts.map +1 -0
  8. package/dist/branch-client.js +179 -0
  9. package/dist/branch-client.js.map +1 -0
  10. package/dist/branch-completion.d.ts +37 -0
  11. package/dist/branch-completion.d.ts.map +1 -0
  12. package/dist/branch-completion.js +137 -0
  13. package/dist/branch-completion.js.map +1 -0
  14. package/dist/branch-dispatch-loop.d.ts +84 -0
  15. package/dist/branch-dispatch-loop.d.ts.map +1 -0
  16. package/dist/branch-dispatch-loop.js +206 -0
  17. package/dist/branch-dispatch-loop.js.map +1 -0
  18. package/dist/branch-downloads.d.ts +53 -0
  19. package/dist/branch-downloads.d.ts.map +1 -0
  20. package/dist/branch-downloads.js +114 -0
  21. package/dist/branch-downloads.js.map +1 -0
  22. package/dist/branch-execution-types.d.ts +54 -0
  23. package/dist/branch-execution-types.d.ts.map +1 -0
  24. package/dist/branch-execution-types.js +2 -0
  25. package/dist/branch-execution-types.js.map +1 -0
  26. package/dist/branch-execution.d.ts +20 -0
  27. package/dist/branch-execution.d.ts.map +1 -0
  28. package/dist/branch-execution.js +380 -0
  29. package/dist/branch-execution.js.map +1 -0
  30. package/dist/branch-identity.d.ts +71 -0
  31. package/dist/branch-identity.d.ts.map +1 -0
  32. package/dist/branch-identity.js +72 -0
  33. package/dist/branch-identity.js.map +1 -0
  34. package/dist/branch-materialize.d.ts +33 -0
  35. package/dist/branch-materialize.d.ts.map +1 -0
  36. package/dist/branch-materialize.js +64 -0
  37. package/dist/branch-materialize.js.map +1 -0
  38. package/dist/branch-page-conversion.d.ts +127 -0
  39. package/dist/branch-page-conversion.d.ts.map +1 -0
  40. package/dist/branch-page-conversion.js +382 -0
  41. package/dist/branch-page-conversion.js.map +1 -0
  42. package/dist/branch-plan.d.ts +63 -0
  43. package/dist/branch-plan.d.ts.map +1 -0
  44. package/dist/branch-plan.js +95 -0
  45. package/dist/branch-plan.js.map +1 -0
  46. package/dist/branch-progress.d.ts +99 -0
  47. package/dist/branch-progress.d.ts.map +1 -0
  48. package/dist/branch-progress.js +188 -0
  49. package/dist/branch-progress.js.map +1 -0
  50. package/dist/branch-run-record.d.ts +164 -0
  51. package/dist/branch-run-record.d.ts.map +1 -0
  52. package/dist/branch-run-record.js +94 -0
  53. package/dist/branch-run-record.js.map +1 -0
  54. package/dist/branch-schedule.d.ts +74 -0
  55. package/dist/branch-schedule.d.ts.map +1 -0
  56. package/dist/branch-schedule.js +130 -0
  57. package/dist/branch-schedule.js.map +1 -0
  58. package/dist/branch-status.d.ts +11 -0
  59. package/dist/branch-status.d.ts.map +1 -0
  60. package/dist/branch-status.js +118 -0
  61. package/dist/branch-status.js.map +1 -0
  62. package/dist/branch-viewport-normalization.d.ts +74 -0
  63. package/dist/branch-viewport-normalization.d.ts.map +1 -0
  64. package/dist/branch-viewport-normalization.js +120 -0
  65. package/dist/branch-viewport-normalization.js.map +1 -0
  66. package/dist/cli-arguments.d.ts.map +1 -1
  67. package/dist/cli-arguments.js +5 -0
  68. package/dist/cli-arguments.js.map +1 -1
  69. package/dist/cli-branch-command.d.ts +55 -0
  70. package/dist/cli-branch-command.d.ts.map +1 -0
  71. package/dist/cli-branch-command.js +475 -0
  72. package/dist/cli-branch-command.js.map +1 -0
  73. package/dist/cli-capabilities.d.ts +51 -0
  74. package/dist/cli-capabilities.d.ts.map +1 -1
  75. package/dist/cli-capabilities.js +52 -1
  76. package/dist/cli-capabilities.js.map +1 -1
  77. package/dist/cli-create-command.d.ts +21 -0
  78. package/dist/cli-create-command.d.ts.map +1 -0
  79. package/dist/cli-create-command.js +319 -0
  80. package/dist/cli-create-command.js.map +1 -0
  81. package/dist/cli-detach.d.ts +62 -0
  82. package/dist/cli-detach.d.ts.map +1 -0
  83. package/dist/cli-detach.js +123 -0
  84. package/dist/cli-detach.js.map +1 -0
  85. package/dist/cli-draft-command.d.ts +63 -0
  86. package/dist/cli-draft-command.d.ts.map +1 -0
  87. package/dist/cli-draft-command.js +220 -0
  88. package/dist/cli-draft-command.js.map +1 -0
  89. package/dist/cli-export-command.d.ts.map +1 -1
  90. package/dist/cli-export-command.js +2 -3
  91. package/dist/cli-export-command.js.map +1 -1
  92. package/dist/cli-image-batch-command.d.ts +21 -0
  93. package/dist/cli-image-batch-command.d.ts.map +1 -1
  94. package/dist/cli-image-batch-command.js +65 -4
  95. package/dist/cli-image-batch-command.js.map +1 -1
  96. package/dist/cli-image-batch-resume.d.ts +7 -0
  97. package/dist/cli-image-batch-resume.d.ts.map +1 -1
  98. package/dist/cli-image-batch-resume.js +19 -2
  99. package/dist/cli-image-batch-resume.js.map +1 -1
  100. package/dist/cli-package-command.d.ts +29 -0
  101. package/dist/cli-package-command.d.ts.map +1 -0
  102. package/dist/cli-package-command.js +128 -0
  103. package/dist/cli-package-command.js.map +1 -0
  104. package/dist/cli-progress.d.ts +137 -0
  105. package/dist/cli-progress.d.ts.map +1 -1
  106. package/dist/cli-progress.js +156 -0
  107. package/dist/cli-progress.js.map +1 -1
  108. package/dist/cli-select-command.d.ts +12 -0
  109. package/dist/cli-select-command.d.ts.map +1 -0
  110. package/dist/cli-select-command.js +66 -0
  111. package/dist/cli-select-command.js.map +1 -0
  112. package/dist/cli.js +150 -7
  113. package/dist/cli.js.map +1 -1
  114. package/dist/conversion-receipt.d.ts +127 -0
  115. package/dist/conversion-receipt.d.ts.map +1 -0
  116. package/dist/conversion-receipt.js +184 -0
  117. package/dist/conversion-receipt.js.map +1 -0
  118. package/dist/create-identity.d.ts +25 -0
  119. package/dist/create-identity.d.ts.map +1 -0
  120. package/dist/create-identity.js +0 -0
  121. package/dist/create-identity.js.map +1 -0
  122. package/dist/draft-identity.d.ts +30 -0
  123. package/dist/draft-identity.d.ts.map +1 -0
  124. package/dist/draft-identity.js +0 -0
  125. package/dist/draft-identity.js.map +1 -0
  126. package/dist/draft-prompts.d.ts +35 -0
  127. package/dist/draft-prompts.d.ts.map +1 -0
  128. package/dist/draft-prompts.js +51 -0
  129. package/dist/draft-prompts.js.map +1 -0
  130. package/dist/draft-run.d.ts +32 -0
  131. package/dist/draft-run.d.ts.map +1 -0
  132. package/dist/draft-run.js +152 -0
  133. package/dist/draft-run.js.map +1 -0
  134. package/dist/draft-workspace.d.ts +90 -0
  135. package/dist/draft-workspace.d.ts.map +1 -0
  136. package/dist/draft-workspace.js +64 -0
  137. package/dist/draft-workspace.js.map +1 -0
  138. package/dist/image-batch-status.d.ts +42 -0
  139. package/dist/image-batch-status.d.ts.map +1 -0
  140. package/dist/image-batch-status.js +142 -0
  141. package/dist/image-batch-status.js.map +1 -0
  142. package/dist/image-dimensions.d.ts +12 -0
  143. package/dist/image-dimensions.d.ts.map +1 -0
  144. package/dist/image-dimensions.js +14 -0
  145. package/dist/image-dimensions.js.map +1 -0
  146. package/dist/image-generation-resume.d.ts +13 -0
  147. package/dist/image-generation-resume.d.ts.map +1 -1
  148. package/dist/image-generation-resume.js +13 -0
  149. package/dist/image-generation-resume.js.map +1 -1
  150. package/dist/index.d.ts +6 -1
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +5 -1
  153. package/dist/index.js.map +1 -1
  154. package/dist/legacy-skill-catalog.d.ts.map +1 -1
  155. package/dist/legacy-skill-catalog.js +140 -0
  156. package/dist/legacy-skill-catalog.js.map +1 -1
  157. package/dist/package-client.d.ts +28 -0
  158. package/dist/package-client.d.ts.map +1 -1
  159. package/dist/package-client.js +21 -1
  160. package/dist/package-client.js.map +1 -1
  161. package/dist/package-manifest-file.d.ts +21 -0
  162. package/dist/package-manifest-file.d.ts.map +1 -0
  163. package/dist/package-manifest-file.js +119 -0
  164. package/dist/package-manifest-file.js.map +1 -0
  165. package/dist/package-manifest-template.d.ts +23 -0
  166. package/dist/package-manifest-template.d.ts.map +1 -0
  167. package/dist/package-manifest-template.js +60 -0
  168. package/dist/package-manifest-template.js.map +1 -0
  169. package/dist/package-source-refusal.d.ts +17 -0
  170. package/dist/package-source-refusal.d.ts.map +1 -0
  171. package/dist/package-source-refusal.js +61 -0
  172. package/dist/package-source-refusal.js.map +1 -0
  173. package/dist/package-submission.d.ts +134 -0
  174. package/dist/package-submission.d.ts.map +1 -0
  175. package/dist/package-submission.js +196 -0
  176. package/dist/package-submission.js.map +1 -0
  177. package/dist/selection-record.d.ts +95 -0
  178. package/dist/selection-record.d.ts.map +1 -0
  179. package/dist/selection-record.js +121 -0
  180. package/dist/selection-record.js.map +1 -0
  181. package/package.json +1 -1
  182. package/skills/design/SKILL.md +43 -266
  183. package/skills/design-branch/SKILL.md +37 -116
  184. package/skills/design-convert/SKILL.md +62 -148
  185. package/skills/design-draft/SKILL.md +71 -135
  186. package/skills/design-search/SKILL.md +29 -78
  187. package/skills/design/references/continuation-contract.md +0 -60
  188. 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.