@12ui/design 0.2.26 → 0.2.28

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 (361) hide show
  1. package/README.md +72 -87
  2. package/SKILL.md +5 -5
  3. package/dist/branch-client.d.ts +7 -0
  4. package/dist/branch-client.d.ts.map +1 -1
  5. package/dist/branch-client.js +1 -0
  6. package/dist/branch-client.js.map +1 -1
  7. package/dist/branch-completion.d.ts +8 -0
  8. package/dist/branch-completion.d.ts.map +1 -1
  9. package/dist/branch-completion.js +84 -16
  10. package/dist/branch-completion.js.map +1 -1
  11. package/dist/branch-execution.d.ts +8 -0
  12. package/dist/branch-execution.d.ts.map +1 -1
  13. package/dist/branch-execution.js +62 -11
  14. package/dist/branch-execution.js.map +1 -1
  15. package/dist/branch-identity.d.ts +10 -4
  16. package/dist/branch-identity.d.ts.map +1 -1
  17. package/dist/branch-identity.js +9 -6
  18. package/dist/branch-identity.js.map +1 -1
  19. package/dist/branch-page-conversion.d.ts +14 -8
  20. package/dist/branch-page-conversion.d.ts.map +1 -1
  21. package/dist/branch-page-conversion.js +32 -15
  22. package/dist/branch-page-conversion.js.map +1 -1
  23. package/dist/branch-page-packaging.d.ts +31 -0
  24. package/dist/branch-page-packaging.d.ts.map +1 -0
  25. package/dist/branch-page-packaging.js +86 -0
  26. package/dist/branch-page-packaging.js.map +1 -0
  27. package/dist/branch-plan.d.ts +44 -0
  28. package/dist/branch-plan.d.ts.map +1 -1
  29. package/dist/branch-plan.js +89 -18
  30. package/dist/branch-plan.js.map +1 -1
  31. package/dist/branch-progress.d.ts +22 -0
  32. package/dist/branch-progress.d.ts.map +1 -1
  33. package/dist/branch-progress.js +46 -8
  34. package/dist/branch-progress.js.map +1 -1
  35. package/dist/branch-run-record.d.ts +36 -1
  36. package/dist/branch-run-record.d.ts.map +1 -1
  37. package/dist/branch-run-record.js.map +1 -1
  38. package/dist/branch-status.d.ts +2 -0
  39. package/dist/branch-status.d.ts.map +1 -1
  40. package/dist/branch-status.js +60 -15
  41. package/dist/branch-status.js.map +1 -1
  42. package/dist/branch-winner.d.ts +13 -15
  43. package/dist/branch-winner.d.ts.map +1 -1
  44. package/dist/branch-winner.js +25 -77
  45. package/dist/branch-winner.js.map +1 -1
  46. package/dist/cli-auth-command.d.ts.map +1 -1
  47. package/dist/cli-auth-command.js +5 -0
  48. package/dist/cli-auth-command.js.map +1 -1
  49. package/dist/cli-auth-onboarding.d.ts +12 -0
  50. package/dist/cli-auth-onboarding.d.ts.map +1 -0
  51. package/dist/cli-auth-onboarding.js +21 -0
  52. package/dist/cli-auth-onboarding.js.map +1 -0
  53. package/dist/cli-branch-command.d.ts +14 -19
  54. package/dist/cli-branch-command.d.ts.map +1 -1
  55. package/dist/cli-branch-command.js +207 -137
  56. package/dist/cli-branch-command.js.map +1 -1
  57. package/dist/cli-capabilities.d.ts +10 -51
  58. package/dist/cli-capabilities.d.ts.map +1 -1
  59. package/dist/cli-capabilities.js +13 -26
  60. package/dist/cli-capabilities.js.map +1 -1
  61. package/dist/cli-cli-command.d.ts +3 -0
  62. package/dist/cli-cli-command.d.ts.map +1 -1
  63. package/dist/cli-cli-command.js +15 -3
  64. package/dist/cli-cli-command.js.map +1 -1
  65. package/dist/cli-conversion-derivation.d.ts +30 -0
  66. package/dist/cli-conversion-derivation.d.ts.map +1 -0
  67. package/dist/{cli-export-command.js → cli-conversion-derivation.js} +178 -110
  68. package/dist/cli-conversion-derivation.js.map +1 -0
  69. package/dist/cli-conversion-output-directory.d.ts +5 -0
  70. package/dist/cli-conversion-output-directory.d.ts.map +1 -0
  71. package/dist/{cli-export-output-directory.js → cli-conversion-output-directory.js} +10 -10
  72. package/dist/cli-conversion-output-directory.js.map +1 -0
  73. package/dist/cli-convert-command.d.ts +9 -0
  74. package/dist/cli-convert-command.d.ts.map +1 -1
  75. package/dist/cli-convert-command.js +528 -158
  76. package/dist/cli-convert-command.js.map +1 -1
  77. package/dist/cli-corpus-command.d.ts.map +1 -1
  78. package/dist/cli-corpus-command.js +77 -10
  79. package/dist/cli-corpus-command.js.map +1 -1
  80. package/dist/cli-corpus-reference-downloads.d.ts +5 -0
  81. package/dist/cli-corpus-reference-downloads.d.ts.map +1 -1
  82. package/dist/cli-corpus-reference-downloads.js +18 -7
  83. package/dist/cli-corpus-reference-downloads.js.map +1 -1
  84. package/dist/cli-corpus-run.d.ts +9 -0
  85. package/dist/cli-corpus-run.d.ts.map +1 -1
  86. package/dist/cli-corpus-run.js +18 -0
  87. package/dist/cli-corpus-run.js.map +1 -1
  88. package/dist/cli-detach.d.ts +12 -4
  89. package/dist/cli-detach.d.ts.map +1 -1
  90. package/dist/cli-detach.js +49 -17
  91. package/dist/cli-detach.js.map +1 -1
  92. package/dist/cli-draft-command.d.ts +44 -61
  93. package/dist/cli-draft-command.d.ts.map +1 -1
  94. package/dist/cli-draft-command.js +307 -180
  95. package/dist/cli-draft-command.js.map +1 -1
  96. package/dist/cli-help/conversion.d.ts +30 -0
  97. package/dist/cli-help/conversion.d.ts.map +1 -0
  98. package/dist/cli-help/conversion.js +55 -0
  99. package/dist/cli-help/conversion.js.map +1 -0
  100. package/dist/cli-help/design.d.ts +74 -0
  101. package/dist/cli-help/design.d.ts.map +1 -0
  102. package/dist/cli-help/design.js +131 -0
  103. package/dist/cli-help/design.js.map +1 -0
  104. package/dist/cli-help/index.d.ts +224 -0
  105. package/dist/cli-help/index.d.ts.map +1 -0
  106. package/dist/cli-help/index.js +32 -0
  107. package/dist/cli-help/index.js.map +1 -0
  108. package/dist/cli-help/meta.d.ts +24 -0
  109. package/dist/cli-help/meta.d.ts.map +1 -0
  110. package/dist/cli-help/meta.js +30 -0
  111. package/dist/cli-help/meta.js.map +1 -0
  112. package/dist/cli-help/render.d.ts +4 -0
  113. package/dist/cli-help/render.d.ts.map +1 -0
  114. package/dist/cli-help/render.js +28 -0
  115. package/dist/cli-help/render.js.map +1 -0
  116. package/dist/cli-help/setup.d.ts +93 -0
  117. package/dist/cli-help/setup.d.ts.map +1 -0
  118. package/dist/cli-help/setup.js +142 -0
  119. package/dist/cli-help/setup.js.map +1 -0
  120. package/dist/cli-help/types.d.ts +10 -0
  121. package/dist/cli-help/types.d.ts.map +1 -0
  122. package/dist/cli-help/types.js +2 -0
  123. package/dist/cli-help/types.js.map +1 -0
  124. package/dist/cli-next-command.d.ts +11 -8
  125. package/dist/cli-next-command.d.ts.map +1 -1
  126. package/dist/cli-next-command.js +288 -88
  127. package/dist/cli-next-command.js.map +1 -1
  128. package/dist/cli-output-paths.d.ts +2 -23
  129. package/dist/cli-output-paths.d.ts.map +1 -1
  130. package/dist/cli-output-paths.js +2 -36
  131. package/dist/cli-output-paths.js.map +1 -1
  132. package/dist/cli-package-command.d.ts +1 -0
  133. package/dist/cli-package-command.d.ts.map +1 -1
  134. package/dist/cli-package-command.js +107 -34
  135. package/dist/cli-package-command.js.map +1 -1
  136. package/dist/cli-pending-auth.d.ts +20 -0
  137. package/dist/cli-pending-auth.d.ts.map +1 -0
  138. package/dist/cli-pending-auth.js +160 -0
  139. package/dist/cli-pending-auth.js.map +1 -0
  140. package/dist/cli-progress.d.ts +256 -75
  141. package/dist/cli-progress.d.ts.map +1 -1
  142. package/dist/cli-progress.js +425 -98
  143. package/dist/cli-progress.js.map +1 -1
  144. package/dist/cli-run.d.ts +2 -0
  145. package/dist/cli-run.d.ts.map +1 -1
  146. package/dist/cli-run.js +56 -75
  147. package/dist/cli-run.js.map +1 -1
  148. package/dist/cli-skill-command.d.ts +3 -0
  149. package/dist/cli-skill-command.d.ts.map +1 -1
  150. package/dist/cli-skill-command.js +26 -3
  151. package/dist/cli-skill-command.js.map +1 -1
  152. package/dist/cli-usage.d.ts +17 -8
  153. package/dist/cli-usage.d.ts.map +1 -1
  154. package/dist/cli-usage.js +55 -40
  155. package/dist/cli-usage.js.map +1 -1
  156. package/dist/config.d.ts +1 -0
  157. package/dist/config.d.ts.map +1 -1
  158. package/dist/config.js +8 -2
  159. package/dist/config.js.map +1 -1
  160. package/dist/conversion-client.d.ts +4 -0
  161. package/dist/conversion-client.d.ts.map +1 -1
  162. package/dist/conversion-client.js +23 -3
  163. package/dist/conversion-client.js.map +1 -1
  164. package/dist/conversion-outputs.d.ts +11 -0
  165. package/dist/conversion-outputs.d.ts.map +1 -1
  166. package/dist/conversion-outputs.js +13 -1
  167. package/dist/conversion-outputs.js.map +1 -1
  168. package/dist/conversion-receipt.d.ts +1 -1
  169. package/dist/conversion-receipt.js +1 -1
  170. package/dist/conversion-recovery.d.ts +20 -0
  171. package/dist/conversion-recovery.d.ts.map +1 -0
  172. package/dist/conversion-recovery.js +61 -0
  173. package/dist/conversion-recovery.js.map +1 -0
  174. package/dist/conversion-status-contract.js +1 -1
  175. package/dist/conversion-status-contract.js.map +1 -1
  176. package/dist/credential-setup.d.ts +9 -1
  177. package/dist/credential-setup.d.ts.map +1 -1
  178. package/dist/credential-setup.js +13 -1
  179. package/dist/credential-setup.js.map +1 -1
  180. package/dist/draft-adoption.d.ts +9 -3
  181. package/dist/draft-adoption.d.ts.map +1 -1
  182. package/dist/draft-adoption.js +26 -41
  183. package/dist/draft-adoption.js.map +1 -1
  184. package/dist/draft-identity.d.ts +9 -12
  185. package/dist/draft-identity.d.ts.map +1 -1
  186. package/dist/draft-identity.js +0 -0
  187. package/dist/draft-identity.js.map +1 -1
  188. package/dist/draft-run.d.ts +9 -19
  189. package/dist/draft-run.d.ts.map +1 -1
  190. package/dist/draft-run.js +67 -95
  191. package/dist/draft-run.js.map +1 -1
  192. package/dist/draft-workspace.d.ts +26 -18
  193. package/dist/draft-workspace.d.ts.map +1 -1
  194. package/dist/draft-workspace.js +16 -5
  195. package/dist/draft-workspace.js.map +1 -1
  196. package/dist/hosted-draft-identity.d.ts +20 -0
  197. package/dist/hosted-draft-identity.d.ts.map +1 -0
  198. package/dist/hosted-draft-identity.js +30 -0
  199. package/dist/hosted-draft-identity.js.map +1 -0
  200. package/dist/hosted-draft-run.d.ts +60 -0
  201. package/dist/hosted-draft-run.d.ts.map +1 -0
  202. package/dist/hosted-draft-run.js +97 -0
  203. package/dist/hosted-draft-run.js.map +1 -0
  204. package/dist/legacy-codex-cleanup.d.ts +13 -0
  205. package/dist/legacy-codex-cleanup.d.ts.map +1 -1
  206. package/dist/legacy-codex-cleanup.js +83 -0
  207. package/dist/legacy-codex-cleanup.js.map +1 -1
  208. package/dist/legacy-skill-catalog.d.ts +2 -2
  209. package/dist/legacy-skill-catalog.d.ts.map +1 -1
  210. package/dist/legacy-skill-catalog.js +76 -5
  211. package/dist/legacy-skill-catalog.js.map +1 -1
  212. package/dist/login-auth.d.ts +38 -0
  213. package/dist/login-auth.d.ts.map +1 -1
  214. package/dist/login-auth.js +67 -16
  215. package/dist/login-auth.js.map +1 -1
  216. package/dist/mcp-tool-definitions.js +1 -1
  217. package/dist/mcp-tool-definitions.js.map +1 -1
  218. package/dist/next-target.d.ts +1 -4
  219. package/dist/next-target.d.ts.map +1 -1
  220. package/dist/next-target.js +5 -9
  221. package/dist/next-target.js.map +1 -1
  222. package/dist/next-wait-lease.d.ts +17 -0
  223. package/dist/next-wait-lease.d.ts.map +1 -0
  224. package/dist/next-wait-lease.js +92 -0
  225. package/dist/next-wait-lease.js.map +1 -0
  226. package/dist/operation-poll-policy.d.ts +89 -0
  227. package/dist/operation-poll-policy.d.ts.map +1 -0
  228. package/dist/operation-poll-policy.js +99 -0
  229. package/dist/operation-poll-policy.js.map +1 -0
  230. package/dist/package-client.d.ts +30 -0
  231. package/dist/package-client.d.ts.map +1 -1
  232. package/dist/package-client.js +48 -9
  233. package/dist/package-client.js.map +1 -1
  234. package/dist/package-submission.d.ts +17 -0
  235. package/dist/package-submission.d.ts.map +1 -1
  236. package/dist/package-submission.js +43 -2
  237. package/dist/package-submission.js.map +1 -1
  238. package/dist/pending-auth-store.d.ts +15 -0
  239. package/dist/pending-auth-store.d.ts.map +1 -0
  240. package/dist/pending-auth-store.js +90 -0
  241. package/dist/pending-auth-store.js.map +1 -0
  242. package/dist/responsive-quality.d.ts +2 -2
  243. package/dist/responsive-quality.js +2 -2
  244. package/dist/run-journal-commands.d.ts.map +1 -1
  245. package/dist/run-journal-commands.js +30 -78
  246. package/dist/run-journal-commands.js.map +1 -1
  247. package/dist/run-journal-in-flight.d.ts +2 -2
  248. package/dist/run-journal-in-flight.d.ts.map +1 -1
  249. package/dist/run-journal-in-flight.js +0 -0
  250. package/dist/run-journal-in-flight.js.map +1 -1
  251. package/dist/skill-installer.d.ts +2 -2
  252. package/dist/skill-installer.d.ts.map +1 -1
  253. package/dist/skill-installer.js +2 -2
  254. package/dist/skill-installer.js.map +1 -1
  255. package/open-design.json +3 -3
  256. package/package.json +1 -1
  257. package/skills/12ui-design/SKILL.md +62 -0
  258. package/skills/12ui-design/agents/openai.yaml +6 -0
  259. package/skills/12ui-design/inspire.md +11 -0
  260. package/dist/cli-create-command.d.ts +0 -59
  261. package/dist/cli-create-command.d.ts.map +0 -1
  262. package/dist/cli-create-command.js +0 -354
  263. package/dist/cli-create-command.js.map +0 -1
  264. package/dist/cli-export-command.d.ts +0 -26
  265. package/dist/cli-export-command.d.ts.map +0 -1
  266. package/dist/cli-export-command.js.map +0 -1
  267. package/dist/cli-export-output-directory.d.ts +0 -5
  268. package/dist/cli-export-output-directory.d.ts.map +0 -1
  269. package/dist/cli-export-output-directory.js.map +0 -1
  270. package/dist/cli-image-batch-command.d.ts +0 -29
  271. package/dist/cli-image-batch-command.d.ts.map +0 -1
  272. package/dist/cli-image-batch-command.js +0 -236
  273. package/dist/cli-image-batch-command.js.map +0 -1
  274. package/dist/cli-image-batch-materialize.d.ts +0 -27
  275. package/dist/cli-image-batch-materialize.d.ts.map +0 -1
  276. package/dist/cli-image-batch-materialize.js +0 -41
  277. package/dist/cli-image-batch-materialize.js.map +0 -1
  278. package/dist/cli-image-batch-resume.d.ts +0 -36
  279. package/dist/cli-image-batch-resume.d.ts.map +0 -1
  280. package/dist/cli-image-batch-resume.js +0 -176
  281. package/dist/cli-image-batch-resume.js.map +0 -1
  282. package/dist/cli-image-command.d.ts +0 -10
  283. package/dist/cli-image-command.d.ts.map +0 -1
  284. package/dist/cli-image-command.js +0 -106
  285. package/dist/cli-image-command.js.map +0 -1
  286. package/dist/cli-select-command.d.ts +0 -16
  287. package/dist/cli-select-command.d.ts.map +0 -1
  288. package/dist/cli-select-command.js +0 -60
  289. package/dist/cli-select-command.js.map +0 -1
  290. package/dist/create-identity.d.ts +0 -25
  291. package/dist/create-identity.d.ts.map +0 -1
  292. package/dist/create-identity.js +0 -0
  293. package/dist/create-identity.js.map +0 -1
  294. package/dist/draft-prompts.d.ts +0 -35
  295. package/dist/draft-prompts.d.ts.map +0 -1
  296. package/dist/draft-prompts.js +0 -51
  297. package/dist/draft-prompts.js.map +0 -1
  298. package/dist/image-batch-status.d.ts +0 -42
  299. package/dist/image-batch-status.d.ts.map +0 -1
  300. package/dist/image-batch-status.js +0 -143
  301. package/dist/image-batch-status.js.map +0 -1
  302. package/dist/image-generation-batch-attempt.d.ts +0 -28
  303. package/dist/image-generation-batch-attempt.d.ts.map +0 -1
  304. package/dist/image-generation-batch-attempt.js +0 -48
  305. package/dist/image-generation-batch-attempt.js.map +0 -1
  306. package/dist/image-generation-batch-manifest.d.ts +0 -25
  307. package/dist/image-generation-batch-manifest.d.ts.map +0 -1
  308. package/dist/image-generation-batch-manifest.js +0 -97
  309. package/dist/image-generation-batch-manifest.js.map +0 -1
  310. package/dist/image-generation-completion.d.ts +0 -43
  311. package/dist/image-generation-completion.d.ts.map +0 -1
  312. package/dist/image-generation-completion.js +0 -54
  313. package/dist/image-generation-completion.js.map +0 -1
  314. package/dist/image-generation-error.d.ts +0 -3
  315. package/dist/image-generation-error.d.ts.map +0 -1
  316. package/dist/image-generation-error.js +0 -30
  317. package/dist/image-generation-error.js.map +0 -1
  318. package/dist/image-generation-evidence.d.ts +0 -43
  319. package/dist/image-generation-evidence.d.ts.map +0 -1
  320. package/dist/image-generation-evidence.js +0 -28
  321. package/dist/image-generation-evidence.js.map +0 -1
  322. package/dist/image-generation-fs.d.ts +0 -3
  323. package/dist/image-generation-fs.d.ts.map +0 -1
  324. package/dist/image-generation-fs.js +0 -23
  325. package/dist/image-generation-fs.js.map +0 -1
  326. package/dist/image-generation-output.d.ts +0 -3
  327. package/dist/image-generation-output.d.ts.map +0 -1
  328. package/dist/image-generation-output.js +0 -51
  329. package/dist/image-generation-output.js.map +0 -1
  330. package/dist/image-generation-request.d.ts +0 -43
  331. package/dist/image-generation-request.d.ts.map +0 -1
  332. package/dist/image-generation-request.js +0 -52
  333. package/dist/image-generation-request.js.map +0 -1
  334. package/dist/image-generation-resume.d.ts +0 -49
  335. package/dist/image-generation-resume.d.ts.map +0 -1
  336. package/dist/image-generation-resume.js +0 -96
  337. package/dist/image-generation-resume.js.map +0 -1
  338. package/dist/image-generation-run.d.ts +0 -46
  339. package/dist/image-generation-run.d.ts.map +0 -1
  340. package/dist/image-generation-run.js +0 -158
  341. package/dist/image-generation-run.js.map +0 -1
  342. package/dist/image-generation-staging.d.ts +0 -25
  343. package/dist/image-generation-staging.d.ts.map +0 -1
  344. package/dist/image-generation-staging.js +0 -80
  345. package/dist/image-generation-staging.js.map +0 -1
  346. package/dist/image-generation-usage.d.ts +0 -75
  347. package/dist/image-generation-usage.d.ts.map +0 -1
  348. package/dist/image-generation-usage.js +0 -219
  349. package/dist/image-generation-usage.js.map +0 -1
  350. package/dist/image-provider-preflight.d.ts +0 -21
  351. package/dist/image-provider-preflight.d.ts.map +0 -1
  352. package/dist/image-provider-preflight.js +0 -184
  353. package/dist/image-provider-preflight.js.map +0 -1
  354. package/dist/selection-record.d.ts +0 -97
  355. package/dist/selection-record.d.ts.map +0 -1
  356. package/dist/selection-record.js +0 -138
  357. package/dist/selection-record.js.map +0 -1
  358. package/skills/design/SKILL.md +0 -116
  359. package/skills/design/agents/openai.yaml +0 -8
  360. package/skills/design/assets/large-logo.svg +0 -3
  361. package/skills/design/assets/small-400px.png +0 -0
@@ -0,0 +1,30 @@
1
+ export declare const CONVERSION_HELP: {
2
+ readonly convert: {
3
+ readonly summary: "Convert one visual file, or compose ordered viewport images into complete pages.";
4
+ readonly sections: readonly [{
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."];
7
+ }, {
8
+ readonly heading: "Package conversion";
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."];
10
+ }];
11
+ };
12
+ readonly 'convert package': {
13
+ readonly summary: "Convert ordered viewport images and compose them into complete scrolling pages.";
14
+ readonly sections: readonly [{
15
+ readonly heading: "Behavior";
16
+ readonly items: readonly ["Reads a manifest containing one or more pages, converts each page’s ordered viewports, and writes page outputs plus package.result.json.", "Viewport image paths are relative to the manifest. sourceConversionId reuses an existing conversion of the same bytes.", "Blocks until terminal and refuses an output directory that already contains a package result."];
17
+ }, {
18
+ readonly heading: "Template mode";
19
+ readonly items: readonly ["--template prints starter JSON to stdout and guidance to stderr, then exits before reading credentials or contacting the service."];
20
+ }];
21
+ };
22
+ readonly resume: {
23
+ readonly summary: "Recover every artifact in an original conversion purchase.";
24
+ readonly sections: readonly [{
25
+ 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."];
27
+ }];
28
+ };
29
+ };
30
+ //# sourceMappingURL=conversion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/cli-help/conversion.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDO,CAAC"}
@@ -0,0 +1,55 @@
1
+ export const CONVERSION_HELP = {
2
+ convert: {
3
+ summary: 'Convert one visual file, or compose ordered viewport images into complete pages.',
4
+ sections: [
5
+ {
6
+ heading: 'Single-file conversion',
7
+ items: [
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.',
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.',
12
+ ],
13
+ },
14
+ {
15
+ heading: 'Package conversion',
16
+ items: [
17
+ '`12ui convert package` preserves ordered viewport slices and composes them into scrolling pages.',
18
+ '`12ui convert package --template` prints a valid starter manifest without authentication or network access.',
19
+ ],
20
+ },
21
+ ],
22
+ },
23
+ 'convert package': {
24
+ summary: 'Convert ordered viewport images and compose them into complete scrolling pages.',
25
+ sections: [
26
+ {
27
+ heading: 'Behavior',
28
+ items: [
29
+ 'Reads a manifest containing one or more pages, converts each page’s ordered viewports, and writes page outputs plus package.result.json.',
30
+ 'Viewport image paths are relative to the manifest. sourceConversionId reuses an existing conversion of the same bytes.',
31
+ 'Blocks until terminal and refuses an output directory that already contains a package result.',
32
+ ],
33
+ },
34
+ {
35
+ heading: 'Template mode',
36
+ items: [
37
+ '--template prints starter JSON to stdout and guidance to stderr, then exits before reading credentials or contacting the service.',
38
+ ],
39
+ },
40
+ ],
41
+ },
42
+ resume: {
43
+ summary: 'Recover every artifact in an original conversion purchase.',
44
+ sections: [{
45
+ heading: 'Behavior',
46
+ items: [
47
+ '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.',
51
+ ],
52
+ }],
53
+ },
54
+ };
55
+ //# sourceMappingURL=conversion.js.map
@@ -0,0 +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"}
@@ -0,0 +1,74 @@
1
+ export declare const DESIGN_HELP: {
2
+ readonly corpus: {
3
+ readonly summary: "Search the Design Corpus or resume a durable reference-retrieval attempt.";
4
+ readonly sections: readonly [{
5
+ readonly heading: "Actions";
6
+ readonly items: readonly ["inspire — retrieve and download visual references for a design problem.", "resume — finish an interrupted retrieval from its saved attempt state."];
7
+ }];
8
+ };
9
+ readonly 'corpus inspire': {
10
+ readonly summary: "Search the Design Corpus and download validated visual references.";
11
+ readonly sections: readonly [{
12
+ readonly heading: "Behavior";
13
+ readonly items: readonly ["Runs in the foreground and writes an attempt record before the metered search, then a manifest, evidence, receipts, and downloaded references.", "Defaults to four references in balanced mode; --count accepts 1–48.", "--reference-image conditions retrieval on an existing PNG, JPEG, or WebP."];
14
+ }, {
15
+ readonly heading: "Modes";
16
+ readonly items: readonly ["direct stays closest to the literal query.", "balanced is the default relevance, quality, and variety trade-off.", "adventurer keeps a relevant head while exploring less expected directions."];
17
+ }];
18
+ };
19
+ readonly 'corpus resume': {
20
+ readonly summary: "Continue an incomplete corpus retrieval from its durable output directory.";
21
+ readonly sections: readonly [{
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."];
24
+ }];
25
+ };
26
+ readonly draft: {
27
+ readonly summary: "Retrieve references and generate first-viewport UI candidates.";
28
+ readonly sections: readonly [{
29
+ readonly heading: "Behavior";
30
+ readonly items: readonly ["Creates a resumable temporary run directory, prints it first, pairs one balanced corpus reference with each candidate, and claims one hosted /api/v1/create run.", "--candidates accepts 2–16 and defaults to four; prefer at least four distinct directions.", "Each service slot is dispatched at most once and its real PNG downloads into <run-dir>/candidates/. Generation continues in the background unless --wait is supplied.", "Defaults to landscape. Authentication is 12ui-only; no Codex session or caller-side image-provider key is read."];
31
+ }, {
32
+ readonly heading: "Redesign modes";
33
+ readonly items: readonly ["Without --redesign-source, creates a new interface.", "exploratory conditions retrieval on the source but uses the returned references as loose generation inspiration.", "reskin uses the source for every candidate and asks the provider to preserve its structure."];
34
+ }, {
35
+ readonly heading: "Next";
36
+ readonly items: readonly ["Run `12ui next <run-dir>` to follow generation. Convert one chosen image, or pass it to `12ui branch execute --start`."];
37
+ }];
38
+ };
39
+ readonly branch: {
40
+ readonly summary: "Expand one approved first-view design into a complete page or small site.";
41
+ readonly sections: readonly [{
42
+ readonly heading: "Actions";
43
+ readonly items: readonly ["execute — plan and generate screens, optionally converting complete pages to responsive HTML.", "resume — continue an incomplete branch from its durable recorded state."];
44
+ }];
45
+ };
46
+ readonly 'branch execute': {
47
+ readonly summary: "Plan and generate the rest of an approved page or site.";
48
+ readonly sections: readonly [{
49
+ readonly heading: "Behavior";
50
+ readonly items: readonly ["Starts from the PNG, JPEG, or WebP named by --start and creates a unique run directory when --out-dir is omitted.", "scope page grows one continuous page; scope site also plans sibling pages.", "With --convert html, each complete page is converted as one ordered viewport package while other work continues.", "Runs in the background unless --wait or --dry-run is supplied. Screens and converted pages land beneath the branch directory."];
51
+ }, {
52
+ readonly heading: "Controls";
53
+ readonly items: readonly ["--max-screens keeps the first N planned screens and records what was omitted.", "--page-concurrency allows 1–10 simultaneous page conversions and defaults to 3. --source-conversion-id reuses a proven source conversion.", "--dry-run validates inputs and prints the run identity and estimate without claiming or buying work."];
54
+ }, {
55
+ readonly heading: "Next";
56
+ readonly items: readonly ["Run `12ui next <run-dir>` to inspect durable progress."];
57
+ }];
58
+ };
59
+ readonly 'branch resume': {
60
+ readonly summary: "Continue an incomplete branch using its original durable inputs.";
61
+ readonly sections: readonly [{
62
+ readonly heading: "Safety";
63
+ readonly items: readonly ["Reloads the recorded winner, concept, scope, screen cap, conversion settings, and run identity.", "Reuses settled screens and verifies that a local winner image has not changed.", "A run that never started or already has a terminal completion record cannot be resumed. Resume detaches unless --wait is supplied."];
64
+ }];
65
+ };
66
+ readonly next: {
67
+ readonly summary: "Read durable status and report the one useful command to run next.";
68
+ readonly sections: readonly [{
69
+ readonly heading: "Behavior";
70
+ readonly items: readonly ["Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "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 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."];
71
+ }];
72
+ };
73
+ };
74
+ //# sourceMappingURL=design.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/cli-help/design.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIW,CAAC"}
@@ -0,0 +1,131 @@
1
+ export const DESIGN_HELP = {
2
+ corpus: {
3
+ summary: 'Search the Design Corpus or resume a durable reference-retrieval attempt.',
4
+ sections: [{
5
+ heading: 'Actions',
6
+ items: [
7
+ 'inspire — retrieve and download visual references for a design problem.',
8
+ 'resume — finish an interrupted retrieval from its saved attempt state.',
9
+ ],
10
+ }],
11
+ },
12
+ 'corpus inspire': {
13
+ summary: 'Search the Design Corpus and download validated visual references.',
14
+ sections: [
15
+ {
16
+ heading: 'Behavior',
17
+ items: [
18
+ 'Runs in the foreground and writes an attempt record before the metered search, then a manifest, evidence, receipts, and downloaded references.',
19
+ 'Defaults to four references in balanced mode; --count accepts 1–48.',
20
+ '--reference-image conditions retrieval on an existing PNG, JPEG, or WebP.',
21
+ ],
22
+ },
23
+ {
24
+ heading: 'Modes',
25
+ items: [
26
+ 'direct stays closest to the literal query.',
27
+ 'balanced is the default relevance, quality, and variety trade-off.',
28
+ 'adventurer keeps a relevant head while exploring less expected directions.',
29
+ ],
30
+ },
31
+ ],
32
+ },
33
+ 'corpus resume': {
34
+ summary: 'Continue an incomplete corpus retrieval from its durable output directory.',
35
+ sections: [{
36
+ heading: 'Safety',
37
+ items: [
38
+ 'Reuses the saved request and idempotency key, preserves verified downloads, and fetches only what remains.',
39
+ 'Completed attempts, changed reference inputs, and incompatible evidence are refused rather than redispatched.',
40
+ ],
41
+ }],
42
+ },
43
+ draft: {
44
+ summary: 'Retrieve references and generate first-viewport UI candidates.',
45
+ sections: [
46
+ {
47
+ heading: 'Behavior',
48
+ items: [
49
+ 'Creates a resumable temporary run directory, prints it first, pairs one balanced corpus reference with each candidate, and claims one hosted /api/v1/create run.',
50
+ '--candidates accepts 2–16 and defaults to four; prefer at least four distinct directions.',
51
+ 'Each service slot is dispatched at most once and its real PNG downloads into <run-dir>/candidates/. Generation continues in the background unless --wait is supplied.',
52
+ 'Defaults to landscape. Authentication is 12ui-only; no Codex session or caller-side image-provider key is read.',
53
+ ],
54
+ },
55
+ {
56
+ heading: 'Redesign modes',
57
+ items: [
58
+ 'Without --redesign-source, creates a new interface.',
59
+ 'exploratory conditions retrieval on the source but uses the returned references as loose generation inspiration.',
60
+ 'reskin uses the source for every candidate and asks the provider to preserve its structure.',
61
+ ],
62
+ },
63
+ {
64
+ heading: 'Next',
65
+ items: [
66
+ 'Run `12ui next <run-dir>` to follow generation. Convert one chosen image, or pass it to `12ui branch execute --start`.',
67
+ ],
68
+ },
69
+ ],
70
+ },
71
+ branch: {
72
+ summary: 'Expand one approved first-view design into a complete page or small site.',
73
+ sections: [{
74
+ heading: 'Actions',
75
+ items: [
76
+ 'execute — plan and generate screens, optionally converting complete pages to responsive HTML.',
77
+ 'resume — continue an incomplete branch from its durable recorded state.',
78
+ ],
79
+ }],
80
+ },
81
+ 'branch execute': {
82
+ summary: 'Plan and generate the rest of an approved page or site.',
83
+ sections: [
84
+ {
85
+ heading: 'Behavior',
86
+ items: [
87
+ 'Starts from the PNG, JPEG, or WebP named by --start and creates a unique run directory when --out-dir is omitted.',
88
+ 'scope page grows one continuous page; scope site also plans sibling pages.',
89
+ 'With --convert html, each complete page is converted as one ordered viewport package while other work continues.',
90
+ 'Runs in the background unless --wait or --dry-run is supplied. Screens and converted pages land beneath the branch directory.',
91
+ ],
92
+ },
93
+ {
94
+ heading: 'Controls',
95
+ items: [
96
+ '--max-screens keeps the first N planned screens and records what was omitted.',
97
+ '--page-concurrency allows 1–10 simultaneous page conversions and defaults to 3. --source-conversion-id reuses a proven source conversion.',
98
+ '--dry-run validates inputs and prints the run identity and estimate without claiming or buying work.',
99
+ ],
100
+ },
101
+ {
102
+ heading: 'Next',
103
+ items: ['Run `12ui next <run-dir>` to inspect durable progress.'],
104
+ },
105
+ ],
106
+ },
107
+ 'branch resume': {
108
+ summary: 'Continue an incomplete branch using its original durable inputs.',
109
+ sections: [{
110
+ heading: 'Safety',
111
+ items: [
112
+ 'Reloads the recorded winner, concept, scope, screen cap, conversion settings, and run identity.',
113
+ 'Reuses settled screens and verifies that a local winner image has not changed.',
114
+ 'A run that never started or already has a terminal completion record cannot be resumed. Resume detaches unless --wait is supplied.',
115
+ ],
116
+ }],
117
+ },
118
+ next: {
119
+ summary: 'Read durable status and report the one useful command to run next.',
120
+ sections: [{
121
+ heading: 'Behavior',
122
+ items: [
123
+ 'Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.',
124
+ 'Never starts, retries, or resumes work. Human status is the default; --json writes the machine record to stdout and suppresses the human progress stream.',
125
+ '--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.',
126
+ 'Replaces the retired per-subsystem status commands.',
127
+ ],
128
+ }],
129
+ },
130
+ };
131
+ //# sourceMappingURL=design.js.map
@@ -0,0 +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;KACH;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,oEAAoE;QAC7E,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,gJAAgJ;oBAChJ,qEAAqE;oBACrE,2EAA2E;iBAC5E;aACF;YACD;gBACE,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE;oBACL,4CAA4C;oBAC5C,oEAAoE;oBACpE,4EAA4E;iBAC7E;aACF;SACF;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,4EAA4E;QACrF,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE;oBACL,4GAA4G;oBAC5G,+GAA+G;iBAChH;aACF,CAAC;KACH;IACD,KAAK,EAAE;QACL,OAAO,EAAE,gEAAgE;QACzE,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,kKAAkK;oBAClK,2FAA2F;oBAC3F,uKAAuK;oBACvK,iHAAiH;iBAClH;aACF;YACD;gBACE,OAAO,EAAE,gBAAgB;gBACzB,KAAK,EAAE;oBACL,qDAAqD;oBACrD,kHAAkH;oBAClH,6FAA6F;iBAC9F;aACF;YACD;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE;oBACL,wHAAwH;iBACzH;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE,2EAA2E;QACpF,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE;oBACL,+FAA+F;oBAC/F,yEAAyE;iBAC1E;aACF,CAAC;KACH;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,yDAAyD;QAClE,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,mHAAmH;oBACnH,4EAA4E;oBAC5E,kHAAkH;oBAClH,+HAA+H;iBAChI;aACF;YACD;gBACE,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,+EAA+E;oBAC/E,2IAA2I;oBAC3I,sGAAsG;iBACvG;aACF;YACD;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,CAAC,wDAAwD,CAAC;aAClE;SACF;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,kEAAkE;QAC3E,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,QAAQ;gBACjB,KAAK,EAAE;oBACL,iGAAiG;oBACjG,gFAAgF;oBAChF,oIAAoI;iBACrI;aACF,CAAC;KACH;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,oEAAoE;QAC7E,QAAQ,EAAE,CAAC;gBACT,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,yGAAyG;oBACzG,2JAA2J;oBAC3J,6LAA6L;oBAC7L,qDAAqD;iBACtD;aACF,CAAC;KACH;CACgC,CAAC"}
@@ -0,0 +1,224 @@
1
+ import type { CliHelpContext } from './types.js';
2
+ export { renderHelpContext } from './render.js';
3
+ export declare const CLI_HELP_CONTEXTS: {
4
+ readonly capabilities: {
5
+ readonly summary: "Print the machine-readable 12ui capability contract as JSON.";
6
+ readonly sections: readonly [{
7
+ readonly heading: "Includes";
8
+ readonly items: readonly ["Accepted inputs and outputs, models, limits, responsive qualities, project profiles, duration hints, journals, receipts, and concurrency.", "This is local and read-only; it performs no authentication, generation, conversion, or update check."];
9
+ }];
10
+ };
11
+ readonly mcp: {
12
+ readonly summary: "Start the 12ui Model Context Protocol server over stdin and stdout.";
13
+ readonly sections: readonly [{
14
+ readonly heading: "Behavior";
15
+ readonly items: readonly ["Exposes conversion, corpus, draft-status, and branch-status tools to an MCP client.", "Runs until the client disconnects. This is a JSON-RPC transport command, not an interactive terminal interface."];
16
+ }];
17
+ };
18
+ readonly version: {
19
+ readonly summary: "Print the installed 12ui package version.";
20
+ readonly sections: readonly [{
21
+ readonly heading: "Notes";
22
+ readonly items: readonly ["Reads the running package identity locally; it does not contact the service or check for updates."];
23
+ }];
24
+ };
25
+ readonly convert: {
26
+ readonly summary: "Convert one visual file, or compose ordered viewport images into complete pages.";
27
+ readonly sections: readonly [{
28
+ readonly heading: "Single-file conversion";
29
+ 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."];
30
+ }, {
31
+ readonly heading: "Package conversion";
32
+ 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."];
33
+ }];
34
+ };
35
+ readonly 'convert package': {
36
+ readonly summary: "Convert ordered viewport images and compose them into complete scrolling pages.";
37
+ readonly sections: readonly [{
38
+ readonly heading: "Behavior";
39
+ readonly items: readonly ["Reads a manifest containing one or more pages, converts each page’s ordered viewports, and writes page outputs plus package.result.json.", "Viewport image paths are relative to the manifest. sourceConversionId reuses an existing conversion of the same bytes.", "Blocks until terminal and refuses an output directory that already contains a package result."];
40
+ }, {
41
+ readonly heading: "Template mode";
42
+ readonly items: readonly ["--template prints starter JSON to stdout and guidance to stderr, then exits before reading credentials or contacting the service."];
43
+ }];
44
+ };
45
+ readonly resume: {
46
+ readonly summary: "Recover every artifact in an original conversion purchase.";
47
+ readonly sections: readonly [{
48
+ readonly heading: "Behavior";
49
+ 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."];
50
+ }];
51
+ };
52
+ readonly corpus: {
53
+ readonly summary: "Search the Design Corpus or resume a durable reference-retrieval attempt.";
54
+ readonly sections: readonly [{
55
+ readonly heading: "Actions";
56
+ readonly items: readonly ["inspire — retrieve and download visual references for a design problem.", "resume — finish an interrupted retrieval from its saved attempt state."];
57
+ }];
58
+ };
59
+ readonly 'corpus inspire': {
60
+ readonly summary: "Search the Design Corpus and download validated visual references.";
61
+ readonly sections: readonly [{
62
+ readonly heading: "Behavior";
63
+ readonly items: readonly ["Runs in the foreground and writes an attempt record before the metered search, then a manifest, evidence, receipts, and downloaded references.", "Defaults to four references in balanced mode; --count accepts 1–48.", "--reference-image conditions retrieval on an existing PNG, JPEG, or WebP."];
64
+ }, {
65
+ readonly heading: "Modes";
66
+ readonly items: readonly ["direct stays closest to the literal query.", "balanced is the default relevance, quality, and variety trade-off.", "adventurer keeps a relevant head while exploring less expected directions."];
67
+ }];
68
+ };
69
+ readonly 'corpus resume': {
70
+ readonly summary: "Continue an incomplete corpus retrieval from its durable output directory.";
71
+ readonly sections: readonly [{
72
+ readonly heading: "Safety";
73
+ 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."];
74
+ }];
75
+ };
76
+ readonly draft: {
77
+ readonly summary: "Retrieve references and generate first-viewport UI candidates.";
78
+ readonly sections: readonly [{
79
+ readonly heading: "Behavior";
80
+ readonly items: readonly ["Creates a resumable temporary run directory, prints it first, pairs one balanced corpus reference with each candidate, and claims one hosted /api/v1/create run.", "--candidates accepts 2–16 and defaults to four; prefer at least four distinct directions.", "Each service slot is dispatched at most once and its real PNG downloads into <run-dir>/candidates/. Generation continues in the background unless --wait is supplied.", "Defaults to landscape. Authentication is 12ui-only; no Codex session or caller-side image-provider key is read."];
81
+ }, {
82
+ readonly heading: "Redesign modes";
83
+ readonly items: readonly ["Without --redesign-source, creates a new interface.", "exploratory conditions retrieval on the source but uses the returned references as loose generation inspiration.", "reskin uses the source for every candidate and asks the provider to preserve its structure."];
84
+ }, {
85
+ readonly heading: "Next";
86
+ readonly items: readonly ["Run `12ui next <run-dir>` to follow generation. Convert one chosen image, or pass it to `12ui branch execute --start`."];
87
+ }];
88
+ };
89
+ readonly branch: {
90
+ readonly summary: "Expand one approved first-view design into a complete page or small site.";
91
+ readonly sections: readonly [{
92
+ readonly heading: "Actions";
93
+ readonly items: readonly ["execute — plan and generate screens, optionally converting complete pages to responsive HTML.", "resume — continue an incomplete branch from its durable recorded state."];
94
+ }];
95
+ };
96
+ readonly 'branch execute': {
97
+ readonly summary: "Plan and generate the rest of an approved page or site.";
98
+ readonly sections: readonly [{
99
+ readonly heading: "Behavior";
100
+ readonly items: readonly ["Starts from the PNG, JPEG, or WebP named by --start and creates a unique run directory when --out-dir is omitted.", "scope page grows one continuous page; scope site also plans sibling pages.", "With --convert html, each complete page is converted as one ordered viewport package while other work continues.", "Runs in the background unless --wait or --dry-run is supplied. Screens and converted pages land beneath the branch directory."];
101
+ }, {
102
+ readonly heading: "Controls";
103
+ readonly items: readonly ["--max-screens keeps the first N planned screens and records what was omitted.", "--page-concurrency allows 1–10 simultaneous page conversions and defaults to 3. --source-conversion-id reuses a proven source conversion.", "--dry-run validates inputs and prints the run identity and estimate without claiming or buying work."];
104
+ }, {
105
+ readonly heading: "Next";
106
+ readonly items: readonly ["Run `12ui next <run-dir>` to inspect durable progress."];
107
+ }];
108
+ };
109
+ readonly 'branch resume': {
110
+ readonly summary: "Continue an incomplete branch using its original durable inputs.";
111
+ readonly sections: readonly [{
112
+ readonly heading: "Safety";
113
+ readonly items: readonly ["Reloads the recorded winner, concept, scope, screen cap, conversion settings, and run identity.", "Reuses settled screens and verifies that a local winner image has not changed.", "A run that never started or already has a terminal completion record cannot be resumed. Resume detaches unless --wait is supplied."];
114
+ }];
115
+ };
116
+ readonly next: {
117
+ readonly summary: "Read durable status and report the one useful command to run next.";
118
+ readonly sections: readonly [{
119
+ readonly heading: "Behavior";
120
+ readonly items: readonly ["Recognizes draft and branch directories, hosted run IDs, conversion IDs, and journal-backed workspaces.", "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 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."];
121
+ }];
122
+ };
123
+ readonly auth: {
124
+ readonly summary: "Manage the personal 12ui credential saved on this machine.";
125
+ readonly sections: readonly [{
126
+ readonly heading: "Actions";
127
+ readonly items: readonly ["login — approve or import an API key, verify it, and save it locally.", "status — verify the saved key and show its account, scopes, origin, and quota.", "logout — revoke the saved key and remove the local copy."];
128
+ }];
129
+ };
130
+ readonly 'auth login': {
131
+ readonly summary: "Connect this machine to a personal 12ui account.";
132
+ readonly sections: readonly [{
133
+ readonly heading: "What it does";
134
+ readonly items: readonly ["Opens device approval, waits for authorization, verifies the new credential, and saves it locally.", "With --api-key, imports and verifies that key instead of opening browser approval."];
135
+ }, {
136
+ readonly heading: "Key options";
137
+ readonly items: readonly ["--login-origin selects the authentication service; --origin selects the 12ui API saved with the key.", "--key-name sets the human-readable credential label."];
138
+ }];
139
+ };
140
+ readonly 'auth status': {
141
+ readonly summary: "Verify the saved credential and report the account it belongs to.";
142
+ readonly sections: readonly [{
143
+ readonly heading: "Reports";
144
+ readonly items: readonly ["Account and credential IDs, granted scopes, the saved API origin, and conversion quota when available.", "--json writes only the structured status object. This command checks the saved key, not an ephemeral --api-key."];
145
+ }];
146
+ };
147
+ readonly 'auth logout': {
148
+ readonly summary: "Disconnect the saved personal 12ui credential.";
149
+ readonly sections: readonly [{
150
+ readonly heading: "What it does";
151
+ readonly items: readonly ["Revokes the credential remotely, then removes the local credential file.", "If remote revocation fails, the local credential is retained so the failure can be resolved safely."];
152
+ }];
153
+ };
154
+ readonly cli: {
155
+ readonly summary: "Manage the durable pinned 12ui launcher.";
156
+ readonly sections: readonly [{
157
+ readonly heading: "Actions";
158
+ readonly items: readonly ["install — pin this released CLI version into the managed launcher.", "status — show the pinned version, launcher path, and managed data root.", "These commands do not install agent skills or change authentication."];
159
+ }];
160
+ };
161
+ readonly 'cli install': {
162
+ readonly summary: "Make the exact CLI release currently running available as the durable `12ui` command.";
163
+ readonly sections: readonly [{
164
+ readonly heading: "What it changes";
165
+ readonly items: readonly ["Installs the running package into the managed version directory, updates the launcher, and verifies its version.", "It does not check for a newer release, install skills, or connect an account."];
166
+ }];
167
+ };
168
+ readonly 'cli status': {
169
+ readonly summary: "Inspect the managed 12ui installation on this machine.";
170
+ readonly sections: readonly [{
171
+ readonly heading: "Reports";
172
+ readonly items: readonly ["The pinned package version, launcher path, and managed data root.", "--json emits the same local inventory as structured data; this is not a network update or service-health check."];
173
+ }];
174
+ };
175
+ readonly skill: {
176
+ readonly summary: "Manage the bundled design skill for supported coding agents.";
177
+ readonly sections: readonly [{
178
+ readonly heading: "Actions";
179
+ 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."];
180
+ }, {
181
+ readonly heading: "Targets";
182
+ 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."];
183
+ }];
184
+ };
185
+ readonly 'skill install': {
186
+ readonly summary: "Install the bundled design skill into selected or detected coding-agent clients.";
187
+ readonly sections: readonly [{
188
+ readonly heading: "What it does";
189
+ 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."];
190
+ }];
191
+ };
192
+ readonly 'skill status': {
193
+ readonly summary: "Inspect installed design skills without changing them.";
194
+ readonly sections: readonly [{
195
+ readonly heading: "Reports";
196
+ readonly items: readonly ["Each target is current, different, or not installed; Codex targets also report whether the skill is enabled.", "Credential status means a credential file exists. Use `12ui auth status` to verify that credential live."];
197
+ }];
198
+ };
199
+ readonly 'skill print': {
200
+ readonly summary: "Write the exact bundled design SKILL.md to stdout.";
201
+ readonly sections: readonly [{
202
+ readonly heading: "Notes";
203
+ readonly items: readonly ["This performs no client discovery, installation, authentication, or network request."];
204
+ }];
205
+ };
206
+ readonly 'skill remove': {
207
+ readonly summary: "Remove the design skill from selected or detected coding-agent clients.";
208
+ readonly sections: readonly [{
209
+ readonly heading: "Important";
210
+ readonly items: readonly ["The pinned CLI and saved credentials are retained.", "The resolved design-skill directory is removed even when its contents differ from the bundled skill; inspect status first."];
211
+ }];
212
+ };
213
+ };
214
+ /**
215
+ * Resolve command context by longest literal prefix.
216
+ *
217
+ * The CLI parser keeps positional arguments in `command`, so
218
+ * `convert hero.png --help` arrives as `["convert", "hero.png"]`. The literal
219
+ * `convert` context is the right answer; the filename must never become a help
220
+ * key. The same applies to draft run directories and hosted run ids.
221
+ */
222
+ export declare const helpContextFor: (command: readonly string[]) => CliHelpContext | undefined;
223
+ export type { CliHelpCatalog, CliHelpContext, CliHelpSection } from './types.js';
224
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,SAAS,MAAM,EAAE,KACzB,cAAc,GAAG,SAUnB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { CONVERSION_HELP } from './conversion.js';
2
+ import { DESIGN_HELP } from './design.js';
3
+ import { META_HELP } from './meta.js';
4
+ import { SETUP_HELP } from './setup.js';
5
+ export { renderHelpContext } from './render.js';
6
+ export const CLI_HELP_CONTEXTS = {
7
+ ...SETUP_HELP,
8
+ ...DESIGN_HELP,
9
+ ...CONVERSION_HELP,
10
+ ...META_HELP,
11
+ };
12
+ /**
13
+ * Resolve command context by longest literal prefix.
14
+ *
15
+ * The CLI parser keeps positional arguments in `command`, so
16
+ * `convert hero.png --help` arrives as `["convert", "hero.png"]`. The literal
17
+ * `convert` context is the right answer; the filename must never become a help
18
+ * key. The same applies to draft run directories and hosted run ids.
19
+ */
20
+ export const helpContextFor = (command) => {
21
+ const normalized = command[0] === '--version'
22
+ ? ['version', ...command.slice(1)]
23
+ : command;
24
+ for (let depth = normalized.length; depth > 0; depth -= 1) {
25
+ const key = normalized.slice(0, depth).join(' ');
26
+ const context = CLI_HELP_CONTEXTS[key];
27
+ if (context)
28
+ return context;
29
+ }
30
+ return undefined;
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli-help/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,UAAU;IACb,GAAG,WAAW;IACd,GAAG,eAAe;IAClB,GAAG,SAAS;CACqB,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA0B,EACE,EAAE;IAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,WAAW;QAC3C,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC,CAAC,OAAO,CAAC;IACZ,KAAK,IAAI,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1D,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAqC,CAAC,CAAC;QACzE,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC;IAC9B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const META_HELP: {
2
+ readonly capabilities: {
3
+ readonly summary: "Print the machine-readable 12ui capability contract as JSON.";
4
+ readonly sections: readonly [{
5
+ readonly heading: "Includes";
6
+ readonly items: readonly ["Accepted inputs and outputs, models, limits, responsive qualities, project profiles, duration hints, journals, receipts, and concurrency.", "This is local and read-only; it performs no authentication, generation, conversion, or update check."];
7
+ }];
8
+ };
9
+ readonly mcp: {
10
+ readonly summary: "Start the 12ui Model Context Protocol server over stdin and stdout.";
11
+ readonly sections: readonly [{
12
+ readonly heading: "Behavior";
13
+ readonly items: readonly ["Exposes conversion, corpus, draft-status, and branch-status tools to an MCP client.", "Runs until the client disconnects. This is a JSON-RPC transport command, not an interactive terminal interface."];
14
+ }];
15
+ };
16
+ readonly version: {
17
+ readonly summary: "Print the installed 12ui package version.";
18
+ readonly sections: readonly [{
19
+ readonly heading: "Notes";
20
+ readonly items: readonly ["Reads the running package identity locally; it does not contact the service or check for updates."];
21
+ }];
22
+ };
23
+ };
24
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/cli-help/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CA4Ba,CAAC"}