@12ui/design 0.2.66 → 0.2.68

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 (302) hide show
  1. package/README.md +42 -35
  2. package/SKILL.md +1 -1
  3. package/dist/branch-client.d.ts +4 -2
  4. package/dist/branch-client.d.ts.map +1 -1
  5. package/dist/branch-client.js +36 -21
  6. package/dist/branch-client.js.map +1 -1
  7. package/dist/branch-conversion-engine.d.ts +8 -0
  8. package/dist/branch-conversion-engine.d.ts.map +1 -0
  9. package/dist/branch-conversion-engine.js +43 -0
  10. package/dist/branch-conversion-engine.js.map +1 -0
  11. package/dist/branch-execution.d.ts +12 -0
  12. package/dist/branch-execution.d.ts.map +1 -1
  13. package/dist/branch-execution.js +62 -39
  14. package/dist/branch-execution.js.map +1 -1
  15. package/dist/branch-local-conversion.d.ts +27 -0
  16. package/dist/branch-local-conversion.d.ts.map +1 -0
  17. package/dist/branch-local-conversion.js +80 -0
  18. package/dist/branch-local-conversion.js.map +1 -0
  19. package/dist/branch-local-publication.d.ts +15 -0
  20. package/dist/branch-local-publication.d.ts.map +1 -0
  21. package/dist/branch-local-publication.js +111 -0
  22. package/dist/branch-local-publication.js.map +1 -0
  23. package/dist/branch-page-conversion.d.ts +7 -0
  24. package/dist/branch-page-conversion.d.ts.map +1 -1
  25. package/dist/branch-page-conversion.js +13 -0
  26. package/dist/branch-page-conversion.js.map +1 -1
  27. package/dist/branch-progress.d.ts +2 -0
  28. package/dist/branch-progress.d.ts.map +1 -1
  29. package/dist/branch-progress.js.map +1 -1
  30. package/dist/branch-run-record.d.ts +24 -2
  31. package/dist/branch-run-record.d.ts.map +1 -1
  32. package/dist/branch-run-record.js +3 -2
  33. package/dist/branch-run-record.js.map +1 -1
  34. package/dist/branch-status.d.ts.map +1 -1
  35. package/dist/branch-status.js +21 -3
  36. package/dist/branch-status.js.map +1 -1
  37. package/dist/branch-winner.d.ts.map +1 -1
  38. package/dist/branch-winner.js +1 -2
  39. package/dist/branch-winner.js.map +1 -1
  40. package/dist/cli-arguments.d.ts.map +1 -1
  41. package/dist/cli-arguments.js +1 -0
  42. package/dist/cli-arguments.js.map +1 -1
  43. package/dist/cli-branch-command.d.ts.map +1 -1
  44. package/dist/cli-branch-command.js +7 -2
  45. package/dist/cli-branch-command.js.map +1 -1
  46. package/dist/cli-capabilities.d.ts +29 -15
  47. package/dist/cli-capabilities.d.ts.map +1 -1
  48. package/dist/cli-capabilities.js +30 -23
  49. package/dist/cli-capabilities.js.map +1 -1
  50. package/dist/cli-codex-readiness.d.ts +11 -0
  51. package/dist/cli-codex-readiness.d.ts.map +1 -0
  52. package/dist/cli-codex-readiness.js +72 -0
  53. package/dist/cli-codex-readiness.js.map +1 -0
  54. package/dist/cli-conversion-engine.d.ts +11 -0
  55. package/dist/cli-conversion-engine.d.ts.map +1 -0
  56. package/dist/cli-conversion-engine.js +26 -0
  57. package/dist/cli-conversion-engine.js.map +1 -0
  58. package/dist/cli-conversion-receipt.d.ts +28 -0
  59. package/dist/cli-conversion-receipt.d.ts.map +1 -0
  60. package/dist/cli-conversion-receipt.js +130 -0
  61. package/dist/cli-conversion-receipt.js.map +1 -0
  62. package/dist/cli-convert-command.d.ts.map +1 -1
  63. package/dist/cli-convert-command.js +12 -5
  64. package/dist/cli-convert-command.js.map +1 -1
  65. package/dist/cli-corpus-command.d.ts.map +1 -1
  66. package/dist/cli-corpus-command.js +4 -5
  67. package/dist/cli-corpus-command.js.map +1 -1
  68. package/dist/cli-corpus-evidence.d.ts +0 -1
  69. package/dist/cli-corpus-evidence.d.ts.map +1 -1
  70. package/dist/cli-corpus-evidence.js +9 -50
  71. package/dist/cli-corpus-evidence.js.map +1 -1
  72. package/dist/cli-corpus-manifest.d.ts +18 -0
  73. package/dist/cli-corpus-manifest.d.ts.map +1 -0
  74. package/dist/cli-corpus-manifest.js +83 -0
  75. package/dist/cli-corpus-manifest.js.map +1 -0
  76. package/dist/cli-corpus-reference-downloads.d.ts.map +1 -1
  77. package/dist/cli-corpus-reference-downloads.js +5 -3
  78. package/dist/cli-corpus-reference-downloads.js.map +1 -1
  79. package/dist/cli-corpus-run.d.ts.map +1 -1
  80. package/dist/cli-corpus-run.js +19 -8
  81. package/dist/cli-corpus-run.js.map +1 -1
  82. package/dist/cli-corpus-types.d.ts +6 -6
  83. package/dist/cli-corpus-types.d.ts.map +1 -1
  84. package/dist/cli-engine.d.ts +10 -0
  85. package/dist/cli-engine.d.ts.map +1 -0
  86. package/dist/cli-engine.js +28 -0
  87. package/dist/cli-engine.js.map +1 -0
  88. package/dist/cli-help/conversion.d.ts +10 -3
  89. package/dist/cli-help/conversion.d.ts.map +1 -1
  90. package/dist/cli-help/conversion.js +14 -6
  91. package/dist/cli-help/conversion.js.map +1 -1
  92. package/dist/cli-help/design.d.ts +6 -6
  93. package/dist/cli-help/design.d.ts.map +1 -1
  94. package/dist/cli-help/design.js +8 -7
  95. package/dist/cli-help/design.js.map +1 -1
  96. package/dist/cli-help/index.d.ts +18 -11
  97. package/dist/cli-help/index.d.ts.map +1 -1
  98. package/dist/cli-help/setup.d.ts +2 -2
  99. package/dist/cli-help/setup.js +3 -3
  100. package/dist/cli-help/setup.js.map +1 -1
  101. package/dist/cli-image-backend.d.ts +3 -0
  102. package/dist/cli-image-backend.d.ts.map +1 -0
  103. package/dist/cli-image-backend.js +12 -0
  104. package/dist/cli-image-backend.js.map +1 -0
  105. package/dist/cli-local-conversion.d.ts +17 -0
  106. package/dist/cli-local-conversion.d.ts.map +1 -0
  107. package/dist/cli-local-conversion.js +74 -0
  108. package/dist/cli-local-conversion.js.map +1 -0
  109. package/dist/cli-local-dispatch.d.ts +4 -0
  110. package/dist/cli-local-dispatch.d.ts.map +1 -0
  111. package/dist/cli-local-dispatch.js +102 -0
  112. package/dist/cli-local-dispatch.js.map +1 -0
  113. package/dist/cli-local-export.d.ts +7 -0
  114. package/dist/cli-local-export.d.ts.map +1 -0
  115. package/dist/cli-local-export.js +31 -0
  116. package/dist/cli-local-export.js.map +1 -0
  117. package/dist/cli-local-improve-context.d.ts +3 -0
  118. package/dist/cli-local-improve-context.d.ts.map +1 -0
  119. package/dist/cli-local-improve-context.js +47 -0
  120. package/dist/cli-local-improve-context.js.map +1 -0
  121. package/dist/cli-local-improve.d.ts +16 -0
  122. package/dist/cli-local-improve.d.ts.map +1 -0
  123. package/dist/cli-local-improve.js +214 -0
  124. package/dist/cli-local-improve.js.map +1 -0
  125. package/dist/cli-local-record.d.ts +8 -0
  126. package/dist/cli-local-record.d.ts.map +1 -0
  127. package/dist/cli-local-record.js +67 -0
  128. package/dist/cli-local-record.js.map +1 -0
  129. package/dist/cli-local-runtime.d.ts +7 -0
  130. package/dist/cli-local-runtime.d.ts.map +1 -0
  131. package/dist/cli-local-runtime.js +21 -0
  132. package/dist/cli-local-runtime.js.map +1 -0
  133. package/dist/cli-next-command.d.ts +1 -0
  134. package/dist/cli-next-command.d.ts.map +1 -1
  135. package/dist/cli-next-command.js +12 -9
  136. package/dist/cli-next-command.js.map +1 -1
  137. package/dist/cli-run.d.ts.map +1 -1
  138. package/dist/cli-run.js +3 -0
  139. package/dist/cli-run.js.map +1 -1
  140. package/dist/cli-skill-command.d.ts +0 -3
  141. package/dist/cli-skill-command.d.ts.map +1 -1
  142. package/dist/cli-skill-command.js +9 -24
  143. package/dist/cli-skill-command.js.map +1 -1
  144. package/dist/cli-usage.d.ts.map +1 -1
  145. package/dist/cli-usage.js +20 -11
  146. package/dist/cli-usage.js.map +1 -1
  147. package/dist/concept-input.d.ts +1 -1
  148. package/dist/concept-input.d.ts.map +1 -1
  149. package/dist/concept-input.js +1 -1
  150. package/dist/concept-input.js.map +1 -1
  151. package/dist/conversion-status-contract.d.ts +13 -1
  152. package/dist/conversion-status-contract.d.ts.map +1 -1
  153. package/dist/conversion-status-contract.js +12 -11
  154. package/dist/conversion-status-contract.js.map +1 -1
  155. package/dist/corpus-client.d.ts +7 -6
  156. package/dist/corpus-client.d.ts.map +1 -1
  157. package/dist/corpus-client.js +14 -1
  158. package/dist/corpus-client.js.map +1 -1
  159. package/dist/corpus-inspiration-failure.js +1 -1
  160. package/dist/corpus-inspiration-failure.js.map +1 -1
  161. package/dist/corpus-request-error.d.ts +3 -10
  162. package/dist/corpus-request-error.d.ts.map +1 -1
  163. package/dist/corpus-request-error.js +1 -24
  164. package/dist/corpus-request-error.js.map +1 -1
  165. package/dist/http-response-diagnostic.d.ts +12 -0
  166. package/dist/http-response-diagnostic.d.ts.map +1 -0
  167. package/dist/http-response-diagnostic.js +58 -0
  168. package/dist/http-response-diagnostic.js.map +1 -0
  169. package/dist/improve-branch-stage.d.ts.map +1 -1
  170. package/dist/improve-branch-stage.js +6 -25
  171. package/dist/improve-branch-stage.js.map +1 -1
  172. package/dist/improve-concept.d.ts +1 -1
  173. package/dist/improve-concept.d.ts.map +1 -1
  174. package/dist/improve-concept.js +1 -1
  175. package/dist/improve-concept.js.map +1 -1
  176. package/dist/improve-core/concept-input.d.ts +2 -43
  177. package/dist/improve-core/concept-input.d.ts.map +1 -1
  178. package/dist/improve-core/concept-input.js +3 -53
  179. package/dist/improve-core/concept-input.js.map +1 -1
  180. package/dist/improve-core/improve-concept.d.ts +0 -6
  181. package/dist/improve-core/improve-concept.d.ts.map +1 -1
  182. package/dist/improve-core/improve-concept.js +4 -36
  183. package/dist/improve-core/improve-concept.js.map +1 -1
  184. package/dist/improve-core/improve-page-words.d.ts +2 -2
  185. package/dist/improve-core/improve-page-words.d.ts.map +1 -1
  186. package/dist/improve-core/improve-page-words.js +8 -6
  187. package/dist/improve-core/improve-page-words.js.map +1 -1
  188. package/dist/improve-generation-stages.d.ts.map +1 -1
  189. package/dist/improve-generation-stages.js +6 -24
  190. package/dist/improve-generation-stages.js.map +1 -1
  191. package/dist/improve-kit-readme.d.ts.map +1 -1
  192. package/dist/improve-kit-readme.js +1 -0
  193. package/dist/improve-kit-readme.js.map +1 -1
  194. package/dist/improve-source-words.d.ts +14 -0
  195. package/dist/improve-source-words.d.ts.map +1 -0
  196. package/dist/improve-source-words.js +66 -0
  197. package/dist/improve-source-words.js.map +1 -0
  198. package/dist/improve-workspace.d.ts +3 -0
  199. package/dist/improve-workspace.d.ts.map +1 -1
  200. package/dist/improve-workspace.js.map +1 -1
  201. package/dist/index.d.ts +1 -1
  202. package/dist/index.d.ts.map +1 -1
  203. package/dist/index.js +1 -1
  204. package/dist/index.js.map +1 -1
  205. package/dist/legacy-skill-catalog.d.ts.map +1 -1
  206. package/dist/legacy-skill-catalog.js +36 -5
  207. package/dist/legacy-skill-catalog.js.map +1 -1
  208. package/dist/package-client.d.ts +3 -1
  209. package/dist/package-client.d.ts.map +1 -1
  210. package/dist/package-client.js +34 -11
  211. package/dist/package-client.js.map +1 -1
  212. package/dist/prototype-gates.d.ts.map +1 -1
  213. package/dist/prototype-gates.js +1 -1
  214. package/dist/prototype-gates.js.map +1 -1
  215. package/dist/prototype-poststep.js +1 -1
  216. package/dist/prototype-poststep.js.map +1 -1
  217. package/dist/prototype-requests.d.ts +1 -0
  218. package/dist/prototype-requests.d.ts.map +1 -1
  219. package/dist/prototype-requests.js.map +1 -1
  220. package/dist/prototype-revision.d.ts +1 -1
  221. package/dist/prototype-revision.js +1 -1
  222. package/dist/prototype-runner.d.ts.map +1 -1
  223. package/dist/prototype-runner.js +9 -3
  224. package/dist/prototype-runner.js.map +1 -1
  225. package/dist/review-page.js +2 -2
  226. package/dist/review-page.js.map +1 -1
  227. package/dist/review-prototype-gap.js +1 -1
  228. package/dist/review-prototype-gap.js.map +1 -1
  229. package/dist/run-journal-commands.d.ts.map +1 -1
  230. package/dist/run-journal-commands.js +1 -0
  231. package/dist/run-journal-commands.js.map +1 -1
  232. package/dist/skill-installer.d.ts +2 -1
  233. package/dist/skill-installer.d.ts.map +1 -1
  234. package/dist/skill-installer.js +3 -3
  235. package/dist/skill-installer.js.map +1 -1
  236. package/open-design.json +2 -2
  237. package/package.json +5 -4
  238. package/prototype-kit/analyze.mjs +4 -1
  239. package/prototype-kit/build.mjs +29 -4
  240. package/prototype-kit/inventory.mjs +11 -2
  241. package/prototype-kit/lib/local-page.mjs +50 -0
  242. package/prototype-kit/lib/static-server.mjs +1 -0
  243. package/runtime/bootstrap.mjs +131 -0
  244. package/runtime/codex-conversion/README.md +75 -0
  245. package/runtime/codex-conversion/bin/convert.mjs +21 -0
  246. package/runtime/codex-conversion/bin/export.mjs +4 -0
  247. package/runtime/codex-conversion/bin/finish.mjs +11 -0
  248. package/runtime/codex-conversion/bin/improve.mjs +12 -0
  249. package/runtime/codex-conversion/bin/install-skill.mjs +36 -0
  250. package/runtime/codex-conversion/bin/recover-image.mjs +11 -0
  251. package/runtime/codex-conversion/bin/recovery/prepare.mjs +68 -0
  252. package/runtime/codex-conversion/bin/recovery/run.mjs +37 -0
  253. package/runtime/codex-conversion/npm-shrinkwrap.json +1199 -0
  254. package/runtime/codex-conversion/package.json +45 -0
  255. package/runtime/codex-conversion/src/codex/arguments.mjs +14 -0
  256. package/runtime/codex-conversion/src/codex/completion.mjs +14 -0
  257. package/runtime/codex-conversion/src/codex/events.mjs +41 -0
  258. package/runtime/codex-conversion/src/codex/home.mjs +37 -0
  259. package/runtime/codex-conversion/src/codex/invoke.mjs +79 -0
  260. package/runtime/codex-conversion/src/contract-repair.mjs +44 -0
  261. package/runtime/codex-conversion/src/contracts/compile.mjs +53 -0
  262. package/runtime/codex-conversion/src/contracts/contracts.mjs +19 -0
  263. package/runtime/codex-conversion/src/contracts/geometry.mjs +38 -0
  264. package/runtime/codex-conversion/src/contracts/grid-frame.mjs +22 -0
  265. package/runtime/codex-conversion/src/contracts/groups.mjs +14 -0
  266. package/runtime/codex-conversion/src/contracts/initial.mjs +9 -0
  267. package/runtime/codex-conversion/src/contracts/normalize.mjs +46 -0
  268. package/runtime/codex-conversion/src/exports/browser.mjs +26 -0
  269. package/runtime/codex-conversion/src/exports/editable.mjs +34 -0
  270. package/runtime/codex-conversion/src/exports/files.mjs +7 -0
  271. package/runtime/codex-conversion/src/exports/index.mjs +24 -0
  272. package/runtime/codex-conversion/src/exports/react.mjs +44 -0
  273. package/runtime/codex-conversion/src/exports/viewport.mjs +17 -0
  274. package/runtime/codex-conversion/src/finish/index.mjs +58 -0
  275. package/runtime/codex-conversion/src/finish/patch.mjs +14 -0
  276. package/runtime/codex-conversion/src/images/execute.mjs +52 -0
  277. package/runtime/codex-conversion/src/images/frame-normalization.mjs +10 -0
  278. package/runtime/codex-conversion/src/images/geometry.mjs +9 -0
  279. package/runtime/codex-conversion/src/images/local-operation.mjs +17 -0
  280. package/runtime/codex-conversion/src/images/local.mjs +18 -0
  281. package/runtime/codex-conversion/src/images/native-collect.mjs +43 -0
  282. package/runtime/codex-conversion/src/images/native-files.mjs +11 -0
  283. package/runtime/codex-conversion/src/images/native-invoke.mjs +49 -0
  284. package/runtime/codex-conversion/src/images/native-records.mjs +57 -0
  285. package/runtime/codex-conversion/src/images/native.mjs +41 -0
  286. package/runtime/codex-conversion/src/images/prompt.mjs +14 -0
  287. package/runtime/codex-conversion/src/images/provider.mjs +22 -0
  288. package/runtime/codex-conversion/src/output.mjs +28 -0
  289. package/runtime/codex-conversion/src/project/invoke.mjs +35 -0
  290. package/runtime/codex-conversion/src/project/prompt.mjs +13 -0
  291. package/runtime/codex-conversion/src/project/run.mjs +83 -0
  292. package/runtime/codex-conversion/src/project/source.mjs +21 -0
  293. package/runtime/codex-conversion/src/references.mjs +114 -0
  294. package/runtime/codex-conversion/src/run-store-io.mjs +38 -0
  295. package/runtime/codex-conversion/src/run-store.mjs +114 -0
  296. package/runtime/codex-conversion/src/run.mjs +108 -0
  297. package/runtime/codex-conversion/src/runtime-pin.mjs +12 -0
  298. package/runtime/codex-conversion/templates/initial.schema.json +90 -0
  299. package/runtime/codex-conversion/templates/initial.txt +22 -0
  300. package/skills/12ui-design/SKILL.md +34 -32
  301. package/skills/12ui-design/improve.md +48 -155
  302. package/skills/12ui-design/outputs.md +22 -0
@@ -1,10 +1,11 @@
1
+ import { readOptionalInspirationManifest, verifyInspirationManifest } from './cli-corpus-manifest.js';
1
2
  import { resolveReferenceSearch } from './reference-search-mode.js';
2
3
  import { randomUUID } from 'node:crypto';
3
4
  import { recordCorpusInspirationFailure } from './corpus-inspiration-failure.js';
4
5
  import { mkdir } from 'node:fs/promises';
5
6
  import path from 'node:path';
6
7
  import { CORPUS_QUERY_IDEMPOTENCY_REVISION } from './corpus-client.js';
7
- import { assertAttemptMatchesEvidence, assertInspirationRunIncomplete, readInspirationAttempt, readOptionalInspirationEvidence, validateInspirationSet, writeInspirationAttempt, writeInspirationEvidence, writeInspirationManifest, } from './cli-corpus-evidence.js';
8
+ import { assertAttemptMatchesEvidence, readInspirationAttempt, readOptionalInspirationEvidence, validateInspirationSet, writeInspirationAttempt, writeInspirationEvidence, writeInspirationManifest, } from './cli-corpus-evidence.js';
8
9
  import { completeReferenceDownloads } from './cli-corpus-reference-downloads.js';
9
10
  import { normalizeOptionalIdempotencyKey } from './idempotency-key.js';
10
11
  import { loadCorpusReferenceImage, stableReferenceImageIdempotencyKey, } from './cli-corpus-reference-image.js';
@@ -78,19 +79,21 @@ export const downloadCorpusInspiration = async (args) => {
78
79
  export const resumeCorpusInspiration = async (args) => {
79
80
  const outDir = path.resolve(args.outDir);
80
81
  const origin = new URL(args.origin).origin;
81
- const status = await args.client.status();
82
- args.onProgress?.({ stage: 'prepare', detail: 'service contract verified' });
83
- if (status.queryIdempotencyRevision !== CORPUS_QUERY_IDEMPOTENCY_REVISION) {
84
- throw new Error(`12UI Worker at ${origin} does not support ${CORPUS_QUERY_IDEMPOTENCY_REVISION};`
85
- + ' refusing corpus resume');
86
- }
87
- await assertInspirationRunIncomplete(outDir);
88
82
  const attempt = await readInspirationAttempt(outDir);
89
83
  if (attempt.origin !== origin) {
90
84
  throw new Error(`Corpus inspiration attempt belongs to ${attempt.origin}; refusing resume against ${origin}`);
91
85
  }
86
+ const completed = await readOptionalInspirationManifest(outDir);
92
87
  let evidence = await readOptionalInspirationEvidence(outDir);
93
88
  if (!evidence) {
89
+ if (completed)
90
+ throw new Error('Completed corpus manifest has no response evidence; preserve it and restore the recorded evidence before resuming.');
91
+ const status = await args.client.status();
92
+ args.onProgress?.({ stage: 'prepare', detail: 'service contract verified' });
93
+ if (status.queryIdempotencyRevision !== CORPUS_QUERY_IDEMPOTENCY_REVISION) {
94
+ throw new Error(`12UI Worker at ${origin} does not support ${CORPUS_QUERY_IDEMPOTENCY_REVISION};`
95
+ + ' refusing corpus resume');
96
+ }
94
97
  const referenceImage = attempt.referenceImage
95
98
  ? await loadCorpusReferenceImage(attempt.referenceImage.sourcePath, attempt.referenceImage)
96
99
  : undefined;
@@ -120,6 +123,8 @@ export const resumeCorpusInspiration = async (args) => {
120
123
  }
121
124
  assertAttemptMatchesEvidence(attempt, evidence);
122
125
  validateInspirationSet(evidence, outDir);
126
+ if (completed)
127
+ await verifyInspirationManifest({ manifest: completed, attempt, evidence, outDir });
123
128
  args.onProgress?.({
124
129
  stage: 'downloading_references',
125
130
  completed: 0,
@@ -132,6 +137,12 @@ export const resumeCorpusInspiration = async (args) => {
132
137
  origin,
133
138
  onProgress: (progress) => args.onProgress?.({ stage: 'downloading_references', ...progress }),
134
139
  });
140
+ if (completed) {
141
+ args.onProgress?.({ stage: 'complete', detail: 'verified recorded manifest and reference files' });
142
+ return { ...completed, references: completed.references.map((reference, index) => ({
143
+ ...reference, file: references[index].file,
144
+ })) };
145
+ }
135
146
  args.onProgress?.({ stage: 'publish', detail: 'writing the inspiration manifest' });
136
147
  return await writeInspirationManifest({ attempt, evidence, references, outDir, now: args.now });
137
148
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cli-corpus-run.js","sourceRoot":"","sources":["../src/cli-corpus-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAkC,MAAM,4BAA4B,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,KAAK,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number;
29
29
  id: string;
30
30
  /** Copied through from the served item; see CorpusInspirationItem.role. */
31
- role: string;
32
- arm: string;
33
- cell: string | null;
31
+ role?: string;
32
+ arm?: string;
33
+ cell?: string | null;
34
34
  aspect: CorpusAspect;
35
- relevance: number;
36
- relevancePercentile: number;
37
- qualityPercentile: number;
35
+ relevance?: number;
36
+ relevancePercentile?: number;
37
+ qualityPercentile?: number;
38
38
  /** Internal hedge retrieval diagnostics, copied byte-for-byte into Draft slots. */
39
39
  evidence?: Readonly<Record<string, unknown>>;
40
40
  file: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-corpus-types.d.ts","sourceRoot":"","sources":["../src/cli-corpus-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAEpF,eAAO,MAAM,mBAAmB,iFACgD,CAAC;AAEjF,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AACjE,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAC9F,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,CAAC,EAAE,yBAAyB,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAA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AAE,4BAA4B,CAAC;IAC9C,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,CAAC,EAAE,MAAM,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,yBAAyB,CAAC,YAAY,CAAC,CAAC;KACtD,CAAC;IACF,UAAU,EAAE,yBAAyB,EAAE,CAAC;CACzC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type CliFlags } from './cli-arguments.js';
2
+ export type EngineSelection = {
3
+ engine: 'codex' | 'api';
4
+ reason: string;
5
+ codexBin?: string;
6
+ codexHome?: string;
7
+ quiet?: boolean;
8
+ };
9
+ export declare function selectEngine(flags: CliFlags, supported: boolean, saved?: 'codex' | 'api'): Promise<EngineSelection>;
10
+ //# sourceMappingURL=cli-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-engine.d.ts","sourceRoot":"","sources":["../src/cli-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG/D,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,OAAO,GAAG,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAClI,wBAAsB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,CAiBzH"}
@@ -0,0 +1,28 @@
1
+ import { stringFlag } from './cli-arguments.js';
2
+ import { CliRefusal } from './cli-refusal.js';
3
+ import { probeCodexReadiness } from './cli-codex-readiness.js';
4
+ export async function selectEngine(flags, supported, saved) {
5
+ const requested = stringFlag(flags, 'engine') ?? process.env.TWELVE_UI_ENGINE ?? 'auto';
6
+ if (!['auto', 'codex', 'api'].includes(requested))
7
+ throw new CliRefusal('--engine must be auto, codex, or api', 'engine_invalid');
8
+ if (saved && stringFlag(flags, 'engine') && requested !== 'auto' && requested !== saved)
9
+ throw new CliRefusal(`This saved run uses ${saved}; resume with --engine ${saved}.`, 'engine_conflict');
10
+ let result;
11
+ if (saved)
12
+ result = { engine: saved, reason: 'saved run backend', codexBin: stringFlag(flags, 'codex-bin'), codexHome: stringFlag(flags, 'codex-home') };
13
+ else if (requested === 'api' || !supported) {
14
+ if (requested === 'codex')
15
+ throw new CliRefusal('This operation is not supported by the Codex engine. Use --engine api for hosted operations.', 'engine_unsupported');
16
+ result = { engine: 'api', reason: requested === 'api' ? 'explicit selection' : 'operation requires API' };
17
+ }
18
+ else {
19
+ const readiness = await probeCodexReadiness({ codexBin: stringFlag(flags, 'codex-bin'), codexHome: stringFlag(flags, 'codex-home') });
20
+ if (!readiness.ready && requested === 'codex')
21
+ throw new CliRefusal(readiness.reason, 'codex_unavailable');
22
+ result = { engine: readiness.ready ? 'codex' : 'api', reason: readiness.reason, codexBin: readiness.codexBin, codexHome: readiness.codexHome };
23
+ }
24
+ result.quiet = flags.quiet === true;
25
+ console.error(`12ui engine: ${result.engine} (${result.reason})`);
26
+ return result;
27
+ }
28
+ //# sourceMappingURL=cli-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-engine.js","sourceRoot":"","sources":["../src/cli-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0B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AS,EAAE,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC;QACtI,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,SAAS,KAAK,OAAO;YAAE,MAAM,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;QAC3G,MAAM,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,CAAC;IACjJ,CAAC;IACD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,KAAK,CAAC,gBAAgB,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -3,7 +3,7 @@ export declare const CONVERSION_HELP: {
3
3
  readonly summary: "Convert one visual file, or compose ordered viewport images into complete pages.";
4
4
  readonly sections: readonly [{
5
5
  readonly heading: "Single-file conversion";
6
- readonly items: readonly ["Accepts PNG, JPEG, WebP, public LayerDoc v2 JSON, or a finished conversion ID.", "Image input waits, streams progress, and downloads results. --output html writes both the LayerDoc and responsive HTML through the fused path.", "Conversion-id input requires --out-dir and derives comma-separated formats concurrently without another image conversion.", "Image inputs support --model and proportional --width. Responsive HTML supports --responsive-quality."];
6
+ readonly items: readonly ["Accepts PNG, JPEG, WebP, public LayerDoc v2 JSON, or a finished conversion ID.", "--engine auto|codex|api defaults to auto (TWELVE_UI_ENGINE overrides the default). Auto selects local Codex when available; hosted-specific options select API. Explicit codex refuses unsupported hosted options.", "Conversion-id input requires --out-dir and derives comma-separated formats concurrently without another image conversion.", "Local HTML is editable HTML/CSS and assets without LayerDoc. --image-backend external|native is independent of the engine. New runs choose external when OPENAI_API_KEY is nonblank, otherwise native. Explicit choices and saved runs remain fixed; explicit external requires the key before planner execution. --clean-assets accepts crop|enhance. API image inputs support --model and proportional --width; API responsive HTML supports --responsive-quality."];
7
7
  }, {
8
8
  readonly heading: "Package conversion";
9
9
  readonly items: readonly ["`12ui convert package` preserves ordered viewport slices and composes them into scrolling pages.", "`12ui convert package --template` prints a valid starter manifest without authentication or network access."];
@@ -19,11 +19,18 @@ export declare const CONVERSION_HELP: {
19
19
  readonly items: readonly ["--template prints starter JSON to stdout and guidance to stderr, then exits before reading credentials or contacting the service."];
20
20
  }];
21
21
  };
22
+ readonly export: {
23
+ readonly summary: "Derive assets, browser renders, PDF, or whole-page React from local HTML.";
24
+ readonly sections: readonly [{
25
+ readonly heading: "Behavior";
26
+ readonly items: readonly ["Accepts a completed local run directory or an HTML output directory. Requires --output assets|png|jpg|webp|pdf|react and --out-dir.", "Raster and PDF exports require Chromium. React exports whole-page JSX, CSS, and assets, not a functional application or native LayerDoc."];
27
+ }];
28
+ };
22
29
  readonly resume: {
23
- readonly summary: "Recover every artifact in an original conversion purchase.";
30
+ readonly summary: "Resume a recorded local run or recover an original hosted conversion purchase.";
24
31
  readonly sections: readonly [{
25
32
  readonly heading: "Behavior";
26
- readonly items: readonly ["With only a conversion ID, restores the conversion and any linked fused export to their original filenames and directories.", "--out-dir keeps the original basenames but writes the recovered purchase into another directory.", "The optional --output plus --out power form collects one named operation from an older or externally-created purchase.", "Collects existing work only: it never retries, reconfigures, changes format, or creates a conversion."];
33
+ readonly items: readonly ["A local run directory uses its recorded engine and inputs; it never silently changes to API after failure. Local resume does not accept --out-dir, --timeout-ms, --output, --out, or hosted authentication flags.", "With only a conversion ID, restores the conversion and any linked fused export to their original filenames and directories.", "For hosted conversion IDs, --out-dir keeps the original basenames but writes the recovered purchase into another directory.", "For hosted conversion IDs, the optional --output plus --out power form collects one named operation from an older or externally-created purchase.", "Hosted recovery collects existing work only: it never retries, reconfigures, changes format, or creates a conversion."];
27
34
  }];
28
35
  };
29
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/cli-help/conversion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDO,CAAC"}
1
+ {"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/cli-help/conversion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DO,CAAC"}
@@ -6,9 +6,9 @@ export const CONVERSION_HELP = {
6
6
  heading: 'Single-file conversion',
7
7
  items: [
8
8
  'Accepts PNG, JPEG, WebP, public LayerDoc v2 JSON, or a finished conversion ID.',
9
- 'Image input waits, streams progress, and downloads results. --output html writes both the LayerDoc and responsive HTML through the fused path.',
9
+ '--engine auto|codex|api defaults to auto (TWELVE_UI_ENGINE overrides the default). Auto selects local Codex when available; hosted-specific options select API. Explicit codex refuses unsupported hosted options.',
10
10
  'Conversion-id input requires --out-dir and derives comma-separated formats concurrently without another image conversion.',
11
- 'Image inputs support --model and proportional --width. Responsive HTML supports --responsive-quality.',
11
+ 'Local HTML is editable HTML/CSS and assets without LayerDoc. --image-backend external|native is independent of the engine. New runs choose external when OPENAI_API_KEY is nonblank, otherwise native. Explicit choices and saved runs remain fixed; explicit external requires the key before planner execution. --clean-assets accepts crop|enhance. API image inputs support --model and proportional --width; API responsive HTML supports --responsive-quality.',
12
12
  ],
13
13
  },
14
14
  {
@@ -39,15 +39,23 @@ export const CONVERSION_HELP = {
39
39
  },
40
40
  ],
41
41
  },
42
+ export: {
43
+ summary: 'Derive assets, browser renders, PDF, or whole-page React from local HTML.',
44
+ sections: [{ heading: 'Behavior', items: [
45
+ 'Accepts a completed local run directory or an HTML output directory. Requires --output assets|png|jpg|webp|pdf|react and --out-dir.',
46
+ 'Raster and PDF exports require Chromium. React exports whole-page JSX, CSS, and assets, not a functional application or native LayerDoc.',
47
+ ] }],
48
+ },
42
49
  resume: {
43
- summary: 'Recover every artifact in an original conversion purchase.',
50
+ summary: 'Resume a recorded local run or recover an original hosted conversion purchase.',
44
51
  sections: [{
45
52
  heading: 'Behavior',
46
53
  items: [
54
+ 'A local run directory uses its recorded engine and inputs; it never silently changes to API after failure. Local resume does not accept --out-dir, --timeout-ms, --output, --out, or hosted authentication flags.',
47
55
  'With only a conversion ID, restores the conversion and any linked fused export to their original filenames and directories.',
48
- '--out-dir keeps the original basenames but writes the recovered purchase into another directory.',
49
- 'The optional --output plus --out power form collects one named operation from an older or externally-created purchase.',
50
- 'Collects existing work only: it never retries, reconfigures, changes format, or creates a conversion.',
56
+ 'For hosted conversion IDs, --out-dir keeps the original basenames but writes the recovered purchase into another directory.',
57
+ 'For hosted conversion IDs, the optional --output plus --out power form collects one named operation from an older or externally-created purchase.',
58
+ 'Hosted recovery collects existing work only: it never retries, reconfigures, changes format, or creates a conversion.',
51
59
  ],
52
60
  }],
53
61
  },
@@ -1 +1 @@
1
- {"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../src/cli-help/conversion.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE;QACP,OAAO,EAAE,kFAAkF;QAC3F,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,wBAAwB;gBACjC,KAAK,EAAE;oBACL,gFAAgF;oBAChF,gJAAgJ;oBAChJ,2HAA2H;oBAC3H,uGAAuG;iBACxG;aACF;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,KAAK,EAAE;oBACL,kGAAkG;oBAClG,6GAA6G;iBAC9G;aACF;SACF;KACF;IACD,iBAAiB,EAAE;QACjB,OAAO,EAAE,iFAAiF;QAC1F,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,0IAA0I;oBAC1I,wHAAwH;oBACxH,+FAA+F;iBAChG;aACF;YACD;gBACE,OAAO,EAAE,eAAe;gBACxB,KAAK,EAAE;oBACL,mIAAmI;iBACpI;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE,4DAA4D;QACrE,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,6HAA6H;oBAC7H,kGAAkG;oBAClG,wHAAwH;oBACxH,uGAAuG;iBACxG;aACF,CAAC;KACH;CACgC,CAAC"}
1
+ {"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../src/cli-help/conversion.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE;QACP,OAAO,EAAE,kFAAkF;QAC3F,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,wBAAwB;gBACjC,KAAK,EAAE;oBACL,gFAAgF;oBAChF,oNAAoN;oBACpN,2HAA2H;oBAC3H,scAAsc;iBACvc;aACF;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,KAAK,EAAE;oBACL,kGAAkG;oBAClG,6GAA6G;iBAC9G;aACF;SACF;KACF;IACD,iBAAiB,EAAE;QACjB,OAAO,EAAE,iFAAiF;QAC1F,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,0IAA0I;oBAC1I,wHAAwH;oBACxH,+FAA+F;iBAChG;aACF;YACD;gBACE,OAAO,EAAE,eAAe;gBACxB,KAAK,EAAE;oBACL,mIAAmI;iBACpI;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE,2EAA2E;QACpF,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE;oBACvC,qIAAqI;oBACrI,0IAA0I;iBAC3I,EAAE,CAAC;KACL;IACD,MAAM,EAAE;QACN,OAAO,EAAE,gFAAgF;QACzF,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,mNAAmN;oBACnN,6HAA6H;oBAC7H,6HAA6H;oBAC7H,mJAAmJ;oBACnJ,uHAAuH;iBACxH;aACF,CAAC;KACH;CACgC,CAAC"}
@@ -20,7 +20,7 @@ export declare const DESIGN_HELP: {
20
20
  readonly summary: "Continue an incomplete corpus retrieval from its durable output directory.";
21
21
  readonly sections: readonly [{
22
22
  readonly heading: "Safety";
23
- readonly items: readonly ["Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.", "Completed attempts, changed reference inputs, and incompatible evidence are refused rather than redispatched."];
23
+ readonly items: readonly ["Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.", "Completed attempts verify the saved files; missing files resume under the original paid identity. Changed reference inputs and incompatible evidence are refused."];
24
24
  }];
25
25
  };
26
26
  readonly draft: {
@@ -81,23 +81,23 @@ export declare const DESIGN_HELP: {
81
81
  }];
82
82
  };
83
83
  readonly improve: {
84
- readonly summary: "Improve one live interface, site, or screenshot and produce a replayable implementation kit.";
84
+ readonly summary: "Improve an interface with local source edits or a hosted implementation kit.";
85
85
  readonly sections: readonly [{
86
86
  readonly heading: "Behavior";
87
- readonly items: readonly ["Page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.", "The pick is explicit and has no default. With no --pick and no pick already recorded, the run stops after the draw, prints where the candidates are and the exact command that continues (--from pick --pick <slot>), and buys no conversion: converting a candidate nobody chose spends money on a guess that cannot be cancelled. --target supplies the design instead and skips draft and pick.", "--retain says what to hold from the live page, in the four-facet vocabulary: layout, content, assets, style. It defaults to assets,content — keep the product's brand and words, rework its layout and visual system. Add layout to hold the geometry, add style to work inside the existing visual language, drop assets to let the brand be replaced. The /improve page exposes the same four as Keep layout, Keep copy, Keep brand, and Keep style. At least one of the four must be left free to change: keeping all four asks for the page back unchanged and is refused before anything is bought.", "Whatever is retained, no setting licenses inventing a product fact: with content held the page says the same things; with content freed the words may be rewritten but every claim, number, offer, and control must still be present and true.", "The draft stage searches references under the same policy as `12ui draft`. Improve always conditions that search on its own capture of the page, and the corpus refuses a hedge query carrying an image, so it searches balanced; --corpus-mode direct|adventurer chooses another. The mode is recorded in improve.json when you name it, so a resume searches what the run searched. A resume must repeat the recorded mode or drop the flag: naming a different one is refused before anything is bought, because the references were bought under the recorded mode and a different mode is a different run — start it with a fresh --out-dir. A resume after the draft settled replays the references it already bought and buys nothing.", "URL input uses one Playwright context for repeated --bootstrap actions, screenshot capture, and selector-verified DOM extraction. Image input normalizes the source locally.", string, "The kit keeps every candidate, winner, target, plan, assets, and improve.json replay record. Repeating a settled stage reuses it; --from pick --pick <slot> invalidates only the old target and plan.", "--responsive-quality selects standard or pro responsive export. If that export fails, is absent, or reaches the improve deadline after LayerDoc materialization, improve continues to plan with a warning and derives fixed HTML free when possible.", "--convert-stall-seconds is a no-progress bound for every hosted convert wait, including the free fixed-layout derivation (default: 960s standard and pro, 300s fast; refused below one typical wall). A newly polled live stage or active lane resets it, so healthy tall work stays attached to its original purchase and no second conversion is dispatched. A true no-progress stall with no LayerDoc writes plan/STALL.md and exits non-zero with free re-attachment commands. With a LayerDoc, improve derives fixed HTML for the plan and plan/STALL.md gives the free resume command that later collects responsive winner.html without changing that plan basis. Stopping the wait does not stop the conversion: there is no cancel, so an open run keeps billing.", "--fresh re-buys ONE conversion of the same settled winner under a new idempotency key: it records the abandoned conversion identity and reuses capture, draft and pick untouched. --redraw is the one that buys new candidates — it discards draft, pick, convert and plan, moves the old draw to candidates.previous, records any conversion it drops, and runs the draft stage again; it is also the one path allowed to change --direction, --candidates or --retain against the record. A temporarily unavailable stage retries once after 30 seconds.", "--target brings your own design image or LayerDoc, skips draft and pick, converts an image when needed, and aligns the plan to the captured URL DOM."];
87
+ readonly items: readonly ["--apply supports page scope only and capture/draft/pick source stages; branch/site/convert/plan options belong to hosted kits. --apply with a URL and --repo captures the current interface and edits the actual project locally. --target supplies an approved image; without a target, draft candidates and an explicit pick precede application. Omit --apply for the existing hosted kit workflow.", "Hosted page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.", "The pick is explicit and has no default. With no --pick and no pick already recorded, the run stops after the draw, prints where the candidates are and the exact command that continues (--from pick --pick <slot>), and buys no conversion: converting a candidate nobody chose spends money on a guess that cannot be cancelled. --target supplies the design instead and skips draft and pick.", "--retain says what to hold from the live page, in the four-facet vocabulary: layout, content, assets, style. It defaults to assets,content — keep the product's brand and words, rework its layout and visual system. Add layout to hold the geometry, add style to work inside the existing visual language, drop assets to let the brand be replaced. The /improve page exposes the same four as Keep layout, Keep copy, Keep brand, and Keep style. At least one of the four must be left free to change: keeping all four asks for the page back unchanged and is refused before anything is bought.", "Whatever is retained, no setting licenses inventing a product fact: with content held the page says the same things; with content freed the words may be rewritten but every claim, number, offer, and control must still be present and true.", "The draft stage searches references under the same policy as `12ui draft`. Improve always conditions that search on its own capture of the page, and the corpus refuses a hedge query carrying an image, so it searches balanced; --corpus-mode direct|adventurer chooses another. The mode is recorded in improve.json when you name it, so a resume searches what the run searched. A resume must repeat the recorded mode or drop the flag: naming a different one is refused before anything is bought, because the references were bought under the recorded mode and a different mode is a different run — start it with a fresh --out-dir. A resume after the draft settled replays the references it already bought and buys nothing.", "URL input uses one Playwright context for repeated --bootstrap actions, screenshot capture, and selector-verified DOM extraction. Image input normalizes the source locally.", string, "The kit keeps every candidate, winner, target, plan, assets, and improve.json replay record. Repeating a settled stage reuses it; --from pick --pick <slot> invalidates only the old target and plan.", "--responsive-quality selects standard or pro responsive export. If that export fails, is absent, or reaches the improve deadline after LayerDoc materialization, improve continues to plan with a warning and derives fixed HTML free when possible.", "--convert-stall-seconds is a no-progress bound for every hosted convert wait, including the free fixed-layout derivation (default: 960s standard and pro, 300s fast; refused below one typical wall). A newly polled live stage or active lane resets it, so healthy tall work stays attached to its original purchase and no second conversion is dispatched. A true no-progress stall with no LayerDoc writes plan/STALL.md and exits non-zero with free re-attachment commands. With a LayerDoc, improve derives fixed HTML for the plan and plan/STALL.md gives the free resume command that later collects responsive winner.html without changing that plan basis. Stopping the wait does not stop the conversion: there is no cancel, so an open run keeps billing.", "--fresh re-buys ONE conversion of the same settled winner under a new idempotency key: it records the abandoned conversion identity and reuses capture, draft and pick untouched. --redraw is the one that buys new candidates — it discards draft, pick, convert and plan, moves the old draw to candidates.previous, records any conversion it drops, and runs the draft stage again; it is also the one path allowed to change --direction, --candidates or --retain against the record. A temporarily unavailable stage retries once after 30 seconds.", "--target brings your own design image or LayerDoc, skips draft and pick, converts an image when needed, and aligns the plan to the captured URL DOM."];
88
88
  }, {
89
89
  readonly heading: "Whole-site polish";
90
- readonly items: readonly ["--scope site captures 2–8 same-origin pages including the root, then runs capture, draft, pick, branch, convert, plan, and site. The accepted root is the visual system; each current non-root page is edited against it.", "Root and page conversions share one resilience policy: an unavailable responsive export never discards its LayerDoc or blocks that page plan, and the site kit records fixed-layout or LayerDoc-only delivery honestly.", "--pages caps free one-hop discovery including the root (default 5); repeat --page to supply explicit same-origin pages instead. --page-concurrency defaults to 3, and --reference-order defaults to current-first.", "The site roll-up writes site-plan/tokens.css, shared-shell.md, pages.md, and APPLY.md. It deduplicates tokens and shared shell changes so the implementation plan applies them once before per-page residue.", "Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. The command never applies code."];
90
+ readonly items: readonly ["--scope site captures 2–8 same-origin pages including the root, then runs capture, draft, pick, branch, convert, plan, and site. The accepted root is the visual system; each current non-root page is edited against it.", "Root and page conversions share one resilience policy: an unavailable responsive export never discards its LayerDoc or blocks that page plan, and the site kit records fixed-layout or LayerDoc-only delivery honestly.", "--pages caps free one-hop discovery including the root (default 5); repeat --page to supply explicit same-origin pages instead. --page-concurrency defaults to 3, and --reference-order defaults to current-first.", "The site roll-up writes site-plan/tokens.css, shared-shell.md, pages.md, and APPLY.md. It deduplicates tokens and shared shell changes so the implementation plan applies them once before per-page residue.", "Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. Without --apply, the command never applies code."];
91
91
  }, {
92
92
  readonly heading: "Planning";
93
- readonly items: readonly ["URL plans require at least 60% plausible DOM-side coverage; a blocked gate writes GATE.md while target HTML and LayerDoc remain authoritative sidecars.", "Image plans are target-only by default. --plan-source-convert buys one source LayerDoc conversion for an unanchored LayerDoc comparison.", "--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. The command never applies code.", "--dry-run prints exact catalog price ceilings for every stage and makes no network request."];
93
+ readonly items: readonly ["URL plans require at least 60% plausible DOM-side coverage; a blocked gate writes GATE.md while target HTML and LayerDoc remain authoritative sidecars.", "Image plans are target-only by default. --plan-source-convert buys one source LayerDoc conversion for an unanchored LayerDoc comparison.", "--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. Without --apply, the command never applies code.", "--dry-run prints exact catalog price ceilings for every stage and makes no network request."];
94
94
  }];
95
95
  };
96
96
  readonly next: {
97
97
  readonly summary: "Read durable status and report the one useful command to run next.";
98
98
  readonly sections: readonly [{
99
99
  readonly heading: "Behavior";
100
- readonly items: readonly ["Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "A bare read never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.", "--wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.", "--wait polls with heartbeats until terminal status. It has no hidden deadline; use --timeout-ms only for a deadline supplied by the user or request, never as an invented polling interval.", "Replaces the retired per-subsystem status commands."];
100
+ readonly items: readonly ["Recognizes local Codex conversion and project-apply runs, draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "A bare read never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.", "For local runs, --wait only observes recorded state; it never dispatches. For hosted drafts, --wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.", "--wait polls with heartbeats until terminal status. It has no hidden deadline; use --timeout-ms only for a deadline supplied by the user or request, never as an invented polling interval.", "Replaces the retired per-subsystem status commands."];
101
101
  }];
102
102
  };
103
103
  readonly review: {
@@ -1 +1 @@
1
- {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/cli-help/design.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PW,CAAC"}
1
+ {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/cli-help/design.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4PW,CAAC"}
@@ -37,7 +37,7 @@ export const DESIGN_HELP = {
37
37
  heading: 'Safety',
38
38
  items: [
39
39
  'Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.',
40
- 'Completed attempts, changed reference inputs, and incompatible evidence are refused rather than redispatched.',
40
+ 'Completed attempts verify the saved files; missing files resume under the original paid identity. Changed reference inputs and incompatible evidence are refused.',
41
41
  ],
42
42
  }],
43
43
  },
@@ -167,12 +167,13 @@ export const DESIGN_HELP = {
167
167
  ],
168
168
  },
169
169
  improve: {
170
- summary: 'Improve one live interface, site, or screenshot and produce a replayable implementation kit.',
170
+ summary: 'Improve an interface with local source edits or a hosted implementation kit.',
171
171
  sections: [
172
172
  {
173
173
  heading: 'Behavior',
174
174
  items: [
175
- 'Page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.',
175
+ '--apply supports page scope only and capture/draft/pick source stages; branch/site/convert/plan options belong to hosted kits. --apply with a URL and --repo captures the current interface and edits the actual project locally. --target supplies an approved image; without a target, draft candidates and an explicit pick precede application. Omit --apply for the existing hosted kit workflow.',
176
+ 'Hosted page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.',
176
177
  'The pick is explicit and has no default. With no --pick and no pick already recorded, the run stops after the draw, prints where the candidates are and the exact command that continues (--from pick --pick <slot>), and buys no conversion: converting a candidate nobody chose spends money on a guess that cannot be cancelled. --target supplies the design instead and skips draft and pick.',
177
178
  '--retain says what to hold from the live page, in the four-facet vocabulary: layout, content, assets, style. It defaults to assets,content — keep the product\'s brand and words, rework its layout and visual system. Add layout to hold the geometry, add style to work inside the existing visual language, drop assets to let the brand be replaced. The /improve page exposes the same four as Keep layout, Keep copy, Keep brand, and Keep style. At least one of the four must be left free to change: keeping all four asks for the page back unchanged and is refused before anything is bought.',
178
179
  'Whatever is retained, no setting licenses inventing a product fact: with content held the page says the same things; with content freed the words may be rewritten but every claim, number, offer, and control must still be present and true.',
@@ -200,7 +201,7 @@ export const DESIGN_HELP = {
200
201
  'Root and page conversions share one resilience policy: an unavailable responsive export never discards its LayerDoc or blocks that page plan, and the site kit records fixed-layout or LayerDoc-only delivery honestly.',
201
202
  '--pages caps free one-hop discovery including the root (default 5); repeat --page to supply explicit same-origin pages instead. --page-concurrency defaults to 3, and --reference-order defaults to current-first.',
202
203
  'The site roll-up writes site-plan/tokens.css, shared-shell.md, pages.md, and APPLY.md. It deduplicates tokens and shared shell changes so the implementation plan applies them once before per-page residue.',
203
- 'Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. The command never applies code.',
204
+ 'Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. Without --apply, the command never applies code.',
204
205
  ],
205
206
  },
206
207
  {
@@ -208,7 +209,7 @@ export const DESIGN_HELP = {
208
209
  items: [
209
210
  'URL plans require at least 60% plausible DOM-side coverage; a blocked gate writes GATE.md while target HTML and LayerDoc remain authoritative sidecars.',
210
211
  'Image plans are target-only by default. --plan-source-convert buys one source LayerDoc conversion for an unanchored LayerDoc comparison.',
211
- '--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. The command never applies code.',
212
+ '--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. Without --apply, the command never applies code.',
212
213
  '--dry-run prints exact catalog price ceilings for every stage and makes no network request.',
213
214
  ],
214
215
  },
@@ -219,9 +220,9 @@ export const DESIGN_HELP = {
219
220
  sections: [{
220
221
  heading: 'Behavior',
221
222
  items: [
222
- 'Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.',
223
+ 'Recognizes local Codex conversion and project-apply runs, draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.',
223
224
  'A bare read never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.',
224
- '--wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.',
225
+ 'For local runs, --wait only observes recorded state; it never dispatches. For hosted drafts, --wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.',
225
226
  '--wait polls with heartbeats until terminal status. It has no hidden deadline; use --timeout-ms only for a deadline supplied by the user or request, never as an invented polling interval.',
226
227
  'Replaces the retired per-subsystem status commands.',
227
228
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/cli-help/design.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,OAAO,EAAE,2EAA2E;QACpF,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE;oBACL,yEAAyE;oBACzE,wEAAwE;iBACzE;aACF,CAAC;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,+KAA+K;oBAC/K,oYAAoY;oBACpY,2kBAA2kB;oBAC3kB,gPAAgP;oBAChP,+sBAA+sB;oBAC/sB,8KAA8K;oBAC9K,6EAA6E;0BAC3E,uFAAuF;0BACvF,uFAAuF;0BACvF,sFAAsF;0BACtF,mFAAmF;0BACnF,mFAAmF;0BACnF,kFAAkF;0BAClF,yBAAyB;oBAC3B,uMAAuM;oBACvM,sPAAsP;oBACtP,4uBAA4uB;oBAC5uB,4hBAA4hB;oBAC5hB,sJAAsJ;iBACvJ;aACF;YACD;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,KAAK,EAAE;oBACL,2NAA2N;oBAC3N,yNAAyN;oBACzN,oNAAoN;oBACpN,8MAA8M;oBAC9M,kSAAkS;iBACnS;aACF;YACD;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,yJAAyJ;oBACzJ,0IAA0I;oBAC1I,8GAA8G;oBAC9G,6FAA6F;iBAC9F;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,oEAAoE;QAC7E,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,yGAAyG;oBACzG,uKAAuK;oBACvK,gJAAgJ;oBAChJ,6LAA6L;oBAC7L,qDAAqD;iBACtD;aACF,CAAC;KACH;IACD,MAAM,EAAE;QACN,OAAO,EAAE,wEAAwE;QACjF,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,mGAAmG;oBACnG,2KAA2K;oBAC3K,uKAAuK;oBACvK,iGAAiG;iBAClG;aACF;YACD;gBACE,OAAO,EAAE,YAAY;gBACrB,KAAK,EAAE;oBACL,qNAAqN;oBACrN,iOAAiO;iBAClO;aACF;SACF;KACF;CACgC,CAAC"}
1
+ {"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/cli-help/design.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC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oBACL,qNAAqN;oBACrN,iOAAiO;iBAClO;aACF;SACF;KACF;CACgC,CAAC"}
@@ -36,7 +36,7 @@ export declare const CLI_HELP_CONTEXTS: {
36
36
  readonly summary: "Convert one visual file, or compose ordered viewport images into complete pages.";
37
37
  readonly sections: readonly [{
38
38
  readonly heading: "Single-file conversion";
39
- readonly items: readonly ["Accepts PNG, JPEG, WebP, public LayerDoc v2 JSON, or a finished conversion ID.", "Image input waits, streams progress, and downloads results. --output html writes both the LayerDoc and responsive HTML through the fused path.", "Conversion-id input requires --out-dir and derives comma-separated formats concurrently without another image conversion.", "Image inputs support --model and proportional --width. Responsive HTML supports --responsive-quality."];
39
+ readonly items: readonly ["Accepts PNG, JPEG, WebP, public LayerDoc v2 JSON, or a finished conversion ID.", "--engine auto|codex|api defaults to auto (TWELVE_UI_ENGINE overrides the default). Auto selects local Codex when available; hosted-specific options select API. Explicit codex refuses unsupported hosted options.", "Conversion-id input requires --out-dir and derives comma-separated formats concurrently without another image conversion.", "Local HTML is editable HTML/CSS and assets without LayerDoc. --image-backend external|native is independent of the engine. New runs choose external when OPENAI_API_KEY is nonblank, otherwise native. Explicit choices and saved runs remain fixed; explicit external requires the key before planner execution. --clean-assets accepts crop|enhance. API image inputs support --model and proportional --width; API responsive HTML supports --responsive-quality."];
40
40
  }, {
41
41
  readonly heading: "Package conversion";
42
42
  readonly items: readonly ["`12ui convert package` preserves ordered viewport slices and composes them into scrolling pages.", "`12ui convert package --template` prints a valid starter manifest without authentication or network access."];
@@ -52,11 +52,18 @@ export declare const CLI_HELP_CONTEXTS: {
52
52
  readonly items: readonly ["--template prints starter JSON to stdout and guidance to stderr, then exits before reading credentials or contacting the service."];
53
53
  }];
54
54
  };
55
+ readonly export: {
56
+ readonly summary: "Derive assets, browser renders, PDF, or whole-page React from local HTML.";
57
+ readonly sections: readonly [{
58
+ readonly heading: "Behavior";
59
+ readonly items: readonly ["Accepts a completed local run directory or an HTML output directory. Requires --output assets|png|jpg|webp|pdf|react and --out-dir.", "Raster and PDF exports require Chromium. React exports whole-page JSX, CSS, and assets, not a functional application or native LayerDoc."];
60
+ }];
61
+ };
55
62
  readonly resume: {
56
- readonly summary: "Recover every artifact in an original conversion purchase.";
63
+ readonly summary: "Resume a recorded local run or recover an original hosted conversion purchase.";
57
64
  readonly sections: readonly [{
58
65
  readonly heading: "Behavior";
59
- readonly items: readonly ["With only a conversion ID, restores the conversion and any linked fused export to their original filenames and directories.", "--out-dir keeps the original basenames but writes the recovered purchase into another directory.", "The optional --output plus --out power form collects one named operation from an older or externally-created purchase.", "Collects existing work only: it never retries, reconfigures, changes format, or creates a conversion."];
66
+ readonly items: readonly ["A local run directory uses its recorded engine and inputs; it never silently changes to API after failure. Local resume does not accept --out-dir, --timeout-ms, --output, --out, or hosted authentication flags.", "With only a conversion ID, restores the conversion and any linked fused export to their original filenames and directories.", "For hosted conversion IDs, --out-dir keeps the original basenames but writes the recovered purchase into another directory.", "For hosted conversion IDs, the optional --output plus --out power form collects one named operation from an older or externally-created purchase.", "Hosted recovery collects existing work only: it never retries, reconfigures, changes format, or creates a conversion."];
60
67
  }];
61
68
  };
62
69
  readonly corpus: {
@@ -80,7 +87,7 @@ export declare const CLI_HELP_CONTEXTS: {
80
87
  readonly summary: "Continue an incomplete corpus retrieval from its durable output directory.";
81
88
  readonly sections: readonly [{
82
89
  readonly heading: "Safety";
83
- readonly items: readonly ["Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.", "Completed attempts, changed reference inputs, and incompatible evidence are refused rather than redispatched."];
90
+ readonly items: readonly ["Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.", "Completed attempts verify the saved files; missing files resume under the original paid identity. Changed reference inputs and incompatible evidence are refused."];
84
91
  }];
85
92
  };
86
93
  readonly draft: {
@@ -141,23 +148,23 @@ export declare const CLI_HELP_CONTEXTS: {
141
148
  }];
142
149
  };
143
150
  readonly improve: {
144
- readonly summary: "Improve one live interface, site, or screenshot and produce a replayable implementation kit.";
151
+ readonly summary: "Improve an interface with local source edits or a hosted implementation kit.";
145
152
  readonly sections: readonly [{
146
153
  readonly heading: "Behavior";
147
- readonly items: readonly ["Page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.", "The pick is explicit and has no default. With no --pick and no pick already recorded, the run stops after the draw, prints where the candidates are and the exact command that continues (--from pick --pick <slot>), and buys no conversion: converting a candidate nobody chose spends money on a guess that cannot be cancelled. --target supplies the design instead and skips draft and pick.", "--retain says what to hold from the live page, in the four-facet vocabulary: layout, content, assets, style. It defaults to assets,content — keep the product's brand and words, rework its layout and visual system. Add layout to hold the geometry, add style to work inside the existing visual language, drop assets to let the brand be replaced. The /improve page exposes the same four as Keep layout, Keep copy, Keep brand, and Keep style. At least one of the four must be left free to change: keeping all four asks for the page back unchanged and is refused before anything is bought.", "Whatever is retained, no setting licenses inventing a product fact: with content held the page says the same things; with content freed the words may be rewritten but every claim, number, offer, and control must still be present and true.", "The draft stage searches references under the same policy as `12ui draft`. Improve always conditions that search on its own capture of the page, and the corpus refuses a hedge query carrying an image, so it searches balanced; --corpus-mode direct|adventurer chooses another. The mode is recorded in improve.json when you name it, so a resume searches what the run searched. A resume must repeat the recorded mode or drop the flag: naming a different one is refused before anything is bought, because the references were bought under the recorded mode and a different mode is a different run — start it with a fresh --out-dir. A resume after the draft settled replays the references it already bought and buys nothing.", "URL input uses one Playwright context for repeated --bootstrap actions, screenshot capture, and selector-verified DOM extraction. Image input normalizes the source locally.", string, "The kit keeps every candidate, winner, target, plan, assets, and improve.json replay record. Repeating a settled stage reuses it; --from pick --pick <slot> invalidates only the old target and plan.", "--responsive-quality selects standard or pro responsive export. If that export fails, is absent, or reaches the improve deadline after LayerDoc materialization, improve continues to plan with a warning and derives fixed HTML free when possible.", "--convert-stall-seconds is a no-progress bound for every hosted convert wait, including the free fixed-layout derivation (default: 960s standard and pro, 300s fast; refused below one typical wall). A newly polled live stage or active lane resets it, so healthy tall work stays attached to its original purchase and no second conversion is dispatched. A true no-progress stall with no LayerDoc writes plan/STALL.md and exits non-zero with free re-attachment commands. With a LayerDoc, improve derives fixed HTML for the plan and plan/STALL.md gives the free resume command that later collects responsive winner.html without changing that plan basis. Stopping the wait does not stop the conversion: there is no cancel, so an open run keeps billing.", "--fresh re-buys ONE conversion of the same settled winner under a new idempotency key: it records the abandoned conversion identity and reuses capture, draft and pick untouched. --redraw is the one that buys new candidates — it discards draft, pick, convert and plan, moves the old draw to candidates.previous, records any conversion it drops, and runs the draft stage again; it is also the one path allowed to change --direction, --candidates or --retain against the record. A temporarily unavailable stage retries once after 30 seconds.", "--target brings your own design image or LayerDoc, skips draft and pick, converts an image when needed, and aligns the plan to the captured URL DOM."];
154
+ readonly items: readonly ["--apply supports page scope only and capture/draft/pick source stages; branch/site/convert/plan options belong to hosted kits. --apply with a URL and --repo captures the current interface and edits the actual project locally. --target supplies an approved image; without a target, draft candidates and an explicit pick precede application. Omit --apply for the existing hosted kit workflow.", "Hosted page scope runs five stages in order: local capture, hosted draft candidates, explicit pick, fused LayerDoc and responsive HTML conversion, then a local implementation plan.", "The pick is explicit and has no default. With no --pick and no pick already recorded, the run stops after the draw, prints where the candidates are and the exact command that continues (--from pick --pick <slot>), and buys no conversion: converting a candidate nobody chose spends money on a guess that cannot be cancelled. --target supplies the design instead and skips draft and pick.", "--retain says what to hold from the live page, in the four-facet vocabulary: layout, content, assets, style. It defaults to assets,content — keep the product's brand and words, rework its layout and visual system. Add layout to hold the geometry, add style to work inside the existing visual language, drop assets to let the brand be replaced. The /improve page exposes the same four as Keep layout, Keep copy, Keep brand, and Keep style. At least one of the four must be left free to change: keeping all four asks for the page back unchanged and is refused before anything is bought.", "Whatever is retained, no setting licenses inventing a product fact: with content held the page says the same things; with content freed the words may be rewritten but every claim, number, offer, and control must still be present and true.", "The draft stage searches references under the same policy as `12ui draft`. Improve always conditions that search on its own capture of the page, and the corpus refuses a hedge query carrying an image, so it searches balanced; --corpus-mode direct|adventurer chooses another. The mode is recorded in improve.json when you name it, so a resume searches what the run searched. A resume must repeat the recorded mode or drop the flag: naming a different one is refused before anything is bought, because the references were bought under the recorded mode and a different mode is a different run — start it with a fresh --out-dir. A resume after the draft settled replays the references it already bought and buys nothing.", "URL input uses one Playwright context for repeated --bootstrap actions, screenshot capture, and selector-verified DOM extraction. Image input normalizes the source locally.", string, "The kit keeps every candidate, winner, target, plan, assets, and improve.json replay record. Repeating a settled stage reuses it; --from pick --pick <slot> invalidates only the old target and plan.", "--responsive-quality selects standard or pro responsive export. If that export fails, is absent, or reaches the improve deadline after LayerDoc materialization, improve continues to plan with a warning and derives fixed HTML free when possible.", "--convert-stall-seconds is a no-progress bound for every hosted convert wait, including the free fixed-layout derivation (default: 960s standard and pro, 300s fast; refused below one typical wall). A newly polled live stage or active lane resets it, so healthy tall work stays attached to its original purchase and no second conversion is dispatched. A true no-progress stall with no LayerDoc writes plan/STALL.md and exits non-zero with free re-attachment commands. With a LayerDoc, improve derives fixed HTML for the plan and plan/STALL.md gives the free resume command that later collects responsive winner.html without changing that plan basis. Stopping the wait does not stop the conversion: there is no cancel, so an open run keeps billing.", "--fresh re-buys ONE conversion of the same settled winner under a new idempotency key: it records the abandoned conversion identity and reuses capture, draft and pick untouched. --redraw is the one that buys new candidates — it discards draft, pick, convert and plan, moves the old draw to candidates.previous, records any conversion it drops, and runs the draft stage again; it is also the one path allowed to change --direction, --candidates or --retain against the record. A temporarily unavailable stage retries once after 30 seconds.", "--target brings your own design image or LayerDoc, skips draft and pick, converts an image when needed, and aligns the plan to the captured URL DOM."];
148
155
  }, {
149
156
  readonly heading: "Whole-site polish";
150
- readonly items: readonly ["--scope site captures 2–8 same-origin pages including the root, then runs capture, draft, pick, branch, convert, plan, and site. The accepted root is the visual system; each current non-root page is edited against it.", "Root and page conversions share one resilience policy: an unavailable responsive export never discards its LayerDoc or blocks that page plan, and the site kit records fixed-layout or LayerDoc-only delivery honestly.", "--pages caps free one-hop discovery including the root (default 5); repeat --page to supply explicit same-origin pages instead. --page-concurrency defaults to 3, and --reference-order defaults to current-first.", "The site roll-up writes site-plan/tokens.css, shared-shell.md, pages.md, and APPLY.md. It deduplicates tokens and shared shell changes so the implementation plan applies them once before per-page residue.", "Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. The command never applies code."];
157
+ readonly items: readonly ["--scope site captures 2–8 same-origin pages including the root, then runs capture, draft, pick, branch, convert, plan, and site. The accepted root is the visual system; each current non-root page is edited against it.", "Root and page conversions share one resilience policy: an unavailable responsive export never discards its LayerDoc or blocks that page plan, and the site kit records fixed-layout or LayerDoc-only delivery honestly.", "--pages caps free one-hop discovery including the root (default 5); repeat --page to supply explicit same-origin pages instead. --page-concurrency defaults to 3, and --reference-order defaults to current-first.", "The site roll-up writes site-plan/tokens.css, shared-shell.md, pages.md, and APPLY.md. It deduplicates tokens and shared shell changes so the implementation plan applies them once before per-page residue.", "Apply APPLY.md, then run `12ui improve <url> --scope site --out-dir <kit> --recheck`. It captures the root and every page once in one browser context, writes numbered recheck evidence, and replans only against kept targets without replaying settled stages. Without --apply, the command never applies code."];
151
158
  }, {
152
159
  readonly heading: "Planning";
153
- readonly items: readonly ["URL plans require at least 60% plausible DOM-side coverage; a blocked gate writes GATE.md while target HTML and LayerDoc remain authoritative sidecars.", "Image plans are target-only by default. --plan-source-convert buys one source LayerDoc conversion for an unanchored LayerDoc comparison.", "--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. The command never applies code.", "--dry-run prints exact catalog price ceilings for every stage and makes no network request."];
160
+ readonly items: readonly ["URL plans require at least 60% plausible DOM-side coverage; a blocked gate writes GATE.md while target HTML and LayerDoc remain authoritative sidecars.", "Image plans are target-only by default. --plan-source-convert buys one source LayerDoc conversion for an unanchored LayerDoc comparison.", "--repo adds evidence-ranked src/ TSX, JSX, and CSS file hints to a URL plan. Without --apply, the command never applies code.", "--dry-run prints exact catalog price ceilings for every stage and makes no network request."];
154
161
  }];
155
162
  };
156
163
  readonly next: {
157
164
  readonly summary: "Read durable status and report the one useful command to run next.";
158
165
  readonly sections: readonly [{
159
166
  readonly heading: "Behavior";
160
- readonly items: readonly ["Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "A bare read never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.", "--wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.", "--wait polls with heartbeats until terminal status. It has no hidden deadline; use --timeout-ms only for a deadline supplied by the user or request, never as an invented polling interval.", "Replaces the retired per-subsystem status commands."];
167
+ readonly items: readonly ["Recognizes local Codex conversion and project-apply runs, draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "A bare read never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.", "For local runs, --wait only observes recorded state; it never dispatches. For hosted drafts, --wait repairs only recorded draft slots that are still pending, dispatching exactly those never-started slots before polling and downloading.", "--wait polls with heartbeats until terminal status. It has no hidden deadline; use --timeout-ms only for a deadline supplied by the user or request, never as an invented polling interval.", "Replaces the retired per-subsystem status commands."];
161
168
  }];
162
169
  };
163
170
  readonly review: {
@@ -233,7 +240,7 @@ export declare const CLI_HELP_CONTEXTS: {
233
240
  readonly summary: "Manage the bundled design skill for supported coding agents.";
234
241
  readonly sections: readonly [{
235
242
  readonly heading: "Actions";
236
- readonly items: readonly ["install — install the skill and ensure the CLI and authentication are ready.", "status — inspect skill, enablement, and credential-file state.", "print — write the bundled SKILL.md to stdout.", "remove — remove the skill while retaining the CLI and credentials."];
243
+ readonly items: readonly ["install — install the shared skill and ensure the CLI is ready.", "status — inspect skill, enablement, and credential-file state.", "print — write the bundled SKILL.md to stdout.", "remove — remove the skill while retaining the CLI and credentials."];
237
244
  }, {
238
245
  readonly heading: "Targets";
239
246
  readonly items: readonly ["Without --client, every detected Codex, Claude Code, Grok, Cursor, Antigravity, and Copilot installation is targeted.", "--home selects a custom client home and therefore requires --client."];
@@ -243,7 +250,7 @@ export declare const CLI_HELP_CONTEXTS: {
243
250
  readonly summary: "Install the bundled design skill into selected or detected coding-agent clients.";
244
251
  readonly sections: readonly [{
245
252
  readonly heading: "What it does";
246
- readonly items: readonly ["Installs the skill transactionally, pins the CLI, enables Codex installations, and authenticates required scopes.", "--skip-auth leaves authentication untouched. --force replaces a conflicting unrecognized or locally modified skill."];
253
+ readonly items: readonly ["Installs the shared skill transactionally, pins the CLI, and enables Codex installations. Authentication is unchanged by default.", "Explicit --api-key, --key-name, or --login-origin requests authentication setup; these conflict with --skip-auth. --force replaces a conflicting unrecognized or locally modified skill."];
247
254
  }];
248
255
  };
249
256
  readonly 'skill status': {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli-help/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKK,CAAC;AAIpC,eAAO,MAAM,aAAa,GAAI,SAAS,SAAS,MAAM,EAAE,KAAG,SAAS,MAAM,EAUzE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,SAAS,MAAM,EAAE,KACzB,cAAc,GAAG,SAenB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli-help/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKK,CAAC;AAIpC,eAAO,MAAM,aAAa,GAAI,SAAS,SAAS,MAAM,EAAE,KAAG,SAAS,MAAM,EAUzE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,SAAS,MAAM,EAAE,KACzB,cAAc,GAAG,SAenB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -62,7 +62,7 @@ export declare const SETUP_HELP: {
62
62
  readonly summary: "Manage the bundled design skill for supported coding agents.";
63
63
  readonly sections: readonly [{
64
64
  readonly heading: "Actions";
65
- readonly items: readonly ["install — install the skill and ensure the CLI and authentication are ready.", "status — inspect skill, enablement, and credential-file state.", "print — write the bundled SKILL.md to stdout.", "remove — remove the skill while retaining the CLI and credentials."];
65
+ readonly items: readonly ["install — install the shared skill and ensure the CLI is ready.", "status — inspect skill, enablement, and credential-file state.", "print — write the bundled SKILL.md to stdout.", "remove — remove the skill while retaining the CLI and credentials."];
66
66
  }, {
67
67
  readonly heading: "Targets";
68
68
  readonly items: readonly ["Without --client, every detected Codex, Claude Code, Grok, Cursor, Antigravity, and Copilot installation is targeted.", "--home selects a custom client home and therefore requires --client."];
@@ -72,7 +72,7 @@ export declare const SETUP_HELP: {
72
72
  readonly summary: "Install the bundled design skill into selected or detected coding-agent clients.";
73
73
  readonly sections: readonly [{
74
74
  readonly heading: "What it does";
75
- readonly items: readonly ["Installs the skill transactionally, pins the CLI, enables Codex installations, and authenticates required scopes.", "--skip-auth leaves authentication untouched. --force replaces a conflicting unrecognized or locally modified skill."];
75
+ readonly items: readonly ["Installs the shared skill transactionally, pins the CLI, and enables Codex installations. Authentication is unchanged by default.", "Explicit --api-key, --key-name, or --login-origin requests authentication setup; these conflict with --skip-auth. --force replaces a conflicting unrecognized or locally modified skill."];
76
76
  }];
77
77
  };
78
78
  readonly 'skill status': {