@dexhq/canvas 0.0.0-stage → 0.13.0

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 (1280) hide show
  1. package/CHANGELOG.md +911 -0
  2. package/LICENSE +21 -0
  3. package/README.md +525 -2
  4. package/app/app.tsx +194 -0
  5. package/app/base.ts +99 -0
  6. package/app/canvas/activity-bar.tsx +223 -0
  7. package/app/canvas/activity-model.ts +461 -0
  8. package/app/canvas/activity-parts.tsx +237 -0
  9. package/app/canvas/activity.tsx +947 -0
  10. package/app/canvas/add-to-spec.ts +131 -0
  11. package/app/canvas/agent-changes.ts +122 -0
  12. package/app/canvas/anchoring.ts +439 -0
  13. package/app/canvas/canvas-chrome.tsx +531 -0
  14. package/app/canvas/canvas-clipboard.ts +172 -0
  15. package/app/canvas/canvas-commands.ts +542 -0
  16. package/app/canvas/canvas-context-menu.tsx +54 -0
  17. package/app/canvas/canvas-context.tsx +151 -0
  18. package/app/canvas/canvas-corners.tsx +86 -0
  19. package/app/canvas/canvas-document.ts +1024 -0
  20. package/app/canvas/canvas-input.ts +554 -0
  21. package/app/canvas/canvas-keys.ts +360 -0
  22. package/app/canvas/canvas-menus.tsx +289 -0
  23. package/app/canvas/canvas-merge.ts +547 -0
  24. package/app/canvas/canvas-model.ts +1048 -0
  25. package/app/canvas/canvas-panels.ts +187 -0
  26. package/app/canvas/canvas-scene.ts +679 -0
  27. package/app/canvas/canvas-ui.ts +119 -0
  28. package/app/canvas/canvas.css +1017 -0
  29. package/app/canvas/change-notice.tsx +133 -0
  30. package/app/canvas/command-menu.tsx +154 -0
  31. package/app/canvas/comment-layer.tsx +449 -0
  32. package/app/canvas/comments.tsx +2210 -0
  33. package/app/canvas/device-edits.ts +207 -0
  34. package/app/canvas/device-icons.ts +26 -0
  35. package/app/canvas/device-picker.tsx +117 -0
  36. package/app/canvas/devices-panel.tsx +287 -0
  37. package/app/canvas/draw-layer.tsx +373 -0
  38. package/app/canvas/draw-model.ts +105 -0
  39. package/app/canvas/editable-text.tsx +167 -0
  40. package/app/canvas/element-picker.ts +577 -0
  41. package/app/canvas/engine/camera.ts +263 -0
  42. package/app/canvas/engine/canvas-gestures.ts +816 -0
  43. package/app/canvas/engine/canvas-store.ts +407 -0
  44. package/app/canvas/engine/canvas-view.tsx +345 -0
  45. package/app/canvas/engine/engine.css +97 -0
  46. package/app/canvas/floating-panel.tsx +155 -0
  47. package/app/canvas/flow-canvas.tsx +808 -0
  48. package/app/canvas/flow-naming.ts +23 -0
  49. package/app/canvas/flow-renames.ts +118 -0
  50. package/app/canvas/follow-pin.ts +49 -0
  51. package/app/canvas/forced-states.ts +219 -0
  52. package/app/canvas/frame-choices.tsx +85 -0
  53. package/app/canvas/frame-context-menu.tsx +554 -0
  54. package/app/canvas/frame-copies.ts +538 -0
  55. package/app/canvas/frame-drops.ts +159 -0
  56. package/app/canvas/frame-node.tsx +1519 -0
  57. package/app/canvas/frame-pictures.ts +573 -0
  58. package/app/canvas/frame-resize.tsx +193 -0
  59. package/app/canvas/frame-shown.ts +31 -0
  60. package/app/canvas/frame-source.ts +107 -0
  61. package/app/canvas/frame-thumb.tsx +69 -0
  62. package/app/canvas/grid-overlay.tsx +50 -0
  63. package/app/canvas/grid-panel.tsx +379 -0
  64. package/app/canvas/imported-reviews.tsx +843 -0
  65. package/app/canvas/insert-hint.tsx +163 -0
  66. package/app/canvas/inspect-layer.tsx +66 -0
  67. package/app/canvas/inspect-tools.ts +134 -0
  68. package/app/canvas/jpeg-pdf.ts +141 -0
  69. package/app/canvas/label-action.tsx +50 -0
  70. package/app/canvas/large-canvas-notice.tsx +51 -0
  71. package/app/canvas/layout.ts +1253 -0
  72. package/app/canvas/live-page.ts +416 -0
  73. package/app/canvas/measure-box.tsx +23 -0
  74. package/app/canvas/new-frame.ts +279 -0
  75. package/app/canvas/note-placing.ts +110 -0
  76. package/app/canvas/number-field.tsx +89 -0
  77. package/app/canvas/open-page.ts +50 -0
  78. package/app/canvas/page-heights.tsx +134 -0
  79. package/app/canvas/page-scroll.ts +66 -0
  80. package/app/canvas/pass-wheel.ts +48 -0
  81. package/app/canvas/pasted-cuts.ts +38 -0
  82. package/app/canvas/person-busy.ts +32 -0
  83. package/app/canvas/picks-menu.tsx +178 -0
  84. package/app/canvas/picks.ts +139 -0
  85. package/app/canvas/point-menu.tsx +77 -0
  86. package/app/canvas/props-model.ts +123 -0
  87. package/app/canvas/props-panel.tsx +371 -0
  88. package/app/canvas/quick-bar.tsx +149 -0
  89. package/app/canvas/removed-views-panel.tsx +500 -0
  90. package/app/canvas/review-marker.tsx +74 -0
  91. package/app/canvas/review-panel.tsx +1422 -0
  92. package/app/canvas/row-node.tsx +59 -0
  93. package/app/canvas/scene-context.tsx +74 -0
  94. package/app/canvas/section-node.tsx +278 -0
  95. package/app/canvas/selection.ts +49 -0
  96. package/app/canvas/server-notice.tsx +71 -0
  97. package/app/canvas/size-label.tsx +31 -0
  98. package/app/canvas/sketch-boxes.css +57 -0
  99. package/app/canvas/sketch-boxes.tsx +407 -0
  100. package/app/canvas/sketch-layer.tsx +448 -0
  101. package/app/canvas/sketch-model.ts +542 -0
  102. package/app/canvas/slide-frame.tsx +165 -0
  103. package/app/canvas/slide-full-screen.tsx +201 -0
  104. package/app/canvas/slide-page.tsx +197 -0
  105. package/app/canvas/slide-pdf.tsx +222 -0
  106. package/app/canvas/snapping.ts +182 -0
  107. package/app/canvas/spec-copies.ts +117 -0
  108. package/app/canvas/spec-frame.tsx +440 -0
  109. package/app/canvas/spec-full-screen.tsx +351 -0
  110. package/app/canvas/spec-margin.tsx +323 -0
  111. package/app/canvas/spec-mode.tsx +147 -0
  112. package/app/canvas/spec-placing.tsx +273 -0
  113. package/app/canvas/spec-threads.ts +63 -0
  114. package/app/canvas/spec-title.tsx +63 -0
  115. package/app/canvas/spot-pins.tsx +67 -0
  116. package/app/canvas/stack-node.tsx +92 -0
  117. package/app/canvas/state-store.ts +52 -0
  118. package/app/canvas/sticker-model.ts +124 -0
  119. package/app/canvas/sticker-sheet.tsx +545 -0
  120. package/app/canvas/stored-viewport.ts +64 -0
  121. package/app/canvas/styles-layer.tsx +301 -0
  122. package/app/canvas/tell-open-page.tsx +76 -0
  123. package/app/canvas/text-layer.tsx +274 -0
  124. package/app/canvas/thread-focus.tsx +75 -0
  125. package/app/canvas/thread-place.ts +77 -0
  126. package/app/canvas/tip.tsx +118 -0
  127. package/app/canvas/tool-cursors.ts +170 -0
  128. package/app/canvas/tool-icons.tsx +68 -0
  129. package/app/canvas/toolbar-parts.tsx +173 -0
  130. package/app/canvas/toolbar.tsx +345 -0
  131. package/app/canvas/tools.ts +61 -0
  132. package/app/canvas/typing.ts +47 -0
  133. package/app/canvas/unknown-frame.tsx +70 -0
  134. package/app/canvas/use-activity.ts +293 -0
  135. package/app/canvas/use-agent-changes.tsx +327 -0
  136. package/app/canvas/use-canvas-clipboard.tsx +401 -0
  137. package/app/canvas/use-canvas-commands.ts +91 -0
  138. package/app/canvas/use-canvas-editor.ts +267 -0
  139. package/app/canvas/use-component-drops.ts +161 -0
  140. package/app/canvas/use-spec-copies.ts +102 -0
  141. package/app/canvas/viewports.ts +21 -0
  142. package/app/canvas/wireframe-panel.tsx +330 -0
  143. package/app/canvas/xray.ts +28 -0
  144. package/app/client.d.ts +27 -0
  145. package/app/content.d.ts +17 -0
  146. package/app/design-system/components-address.ts +6 -0
  147. package/app/design-system/components-canvas.ts +379 -0
  148. package/app/design-system/components-prototype.tsx +468 -0
  149. package/app/design-system/pseudo-states.ts +187 -0
  150. package/app/editor/annotations.ts +250 -0
  151. package/app/editor/blocks.ts +570 -0
  152. package/app/editor/document-context.tsx +75 -0
  153. package/app/editor/embed-arrange.tsx +405 -0
  154. package/app/editor/embed-box.ts +301 -0
  155. package/app/editor/extensions.ts +56 -0
  156. package/app/editor/markdown-source.ts +245 -0
  157. package/app/editor/node-views.tsx +376 -0
  158. package/app/editor/quote-bubble.tsx +84 -0
  159. package/app/editor/two-versions.ts +82 -0
  160. package/app/flags.ts +14 -0
  161. package/app/frame/file-errors.ts +39 -0
  162. package/app/frame/frame-app.tsx +147 -0
  163. package/app/frame/frame-history.ts +58 -0
  164. package/app/frame/frame-links.ts +66 -0
  165. package/app/frame/hold-window-focus.ts +45 -0
  166. package/app/frame/left-view.tsx +57 -0
  167. package/app/frame/studio-view.tsx +36 -0
  168. package/app/frame/view-files.ts +13 -0
  169. package/app/frame/views.ts +161 -0
  170. package/app/frame.css +14 -0
  171. package/app/frame.html +31 -0
  172. package/app/frame.tsx +40 -0
  173. package/app/git/branch-panel.tsx +831 -0
  174. package/app/git/change-list.tsx +119 -0
  175. package/app/git/clash.tsx +114 -0
  176. package/app/git/git-controls.tsx +424 -0
  177. package/app/git/git-state.ts +206 -0
  178. package/app/git/git-toasts.tsx +507 -0
  179. package/app/git/paused.tsx +192 -0
  180. package/app/git/saved-list.tsx +96 -0
  181. package/app/git/sync-panel.tsx +334 -0
  182. package/app/i18n/locales/en/messages.po +4902 -0
  183. package/app/i18n/locales/en/messages.ts +1 -0
  184. package/app/i18n/locales/pseudo/messages.po +4902 -0
  185. package/app/i18n/locales/pseudo/messages.ts +1 -0
  186. package/app/i18n/locales.ts +41 -0
  187. package/app/i18n/provider.tsx +27 -0
  188. package/app/icons/index.tsx +38 -0
  189. package/app/icons/sets/hugeicons.tsx +259 -0
  190. package/app/icons/sets/lucide.tsx +253 -0
  191. package/app/icons/sets/phosphor.tsx +251 -0
  192. package/app/icons/types.ts +19 -0
  193. package/app/index.html +46 -0
  194. package/app/kit/inspect-runtime.ts +292 -0
  195. package/app/kit/sample-people.ts +77 -0
  196. package/app/kit/use-flow.ts +23 -0
  197. package/app/kit/use-simulated-load.ts +24 -0
  198. package/app/kit/use-simulated-stream.ts +50 -0
  199. package/app/kit/use-view-control.ts +31 -0
  200. package/app/kit/use-view-param.ts +9 -0
  201. package/app/live/deployed-preview.ts +34 -0
  202. package/app/live/focus-reporter.ts +96 -0
  203. package/app/live/guest-review.ts +515 -0
  204. package/app/live/restart-wait.ts +68 -0
  205. package/app/live/server-connection.ts +98 -0
  206. package/app/live/studio-action.ts +42 -0
  207. package/app/live/studio-api.ts +769 -0
  208. package/app/live/studio-data.ts +177 -0
  209. package/app/live/studio-live.ts +343 -0
  210. package/app/live/studio-request.ts +133 -0
  211. package/app/live/thread-state.ts +59 -0
  212. package/app/live/use-devices.ts +92 -0
  213. package/app/live/use-focus.ts +39 -0
  214. package/app/live/use-last-edited.ts +31 -0
  215. package/app/live/use-show-requests.ts +27 -0
  216. package/app/live/use-workspace.ts +88 -0
  217. package/app/main.tsx +50 -0
  218. package/app/next/fonts.ts +34 -0
  219. package/app/next/image.tsx +117 -0
  220. package/app/next/navigation.ts +64 -0
  221. package/app/next/router.ts +41 -0
  222. package/app/pages/agent-settings.tsx +57 -0
  223. package/app/pages/ask-the-agent.tsx +40 -0
  224. package/app/pages/canvas.tsx +789 -0
  225. package/app/pages/chrome-extension.tsx +132 -0
  226. package/app/pages/commands-settings.tsx +709 -0
  227. package/app/pages/deployment-settings.tsx +190 -0
  228. package/app/pages/doc.tsx +31 -0
  229. package/app/pages/file-sort.ts +49 -0
  230. package/app/pages/git-checks.tsx +174 -0
  231. package/app/pages/guidelines.tsx +202 -0
  232. package/app/pages/home.tsx +515 -0
  233. package/app/pages/host.tsx +21 -0
  234. package/app/pages/markup-demo.jpg +0 -0
  235. package/app/pages/markup-settings.tsx +274 -0
  236. package/app/pages/not-found.tsx +18 -0
  237. package/app/pages/people.tsx +115 -0
  238. package/app/pages/play-bar.tsx +433 -0
  239. package/app/pages/play-size.ts +86 -0
  240. package/app/pages/play.tsx +992 -0
  241. package/app/pages/profile.tsx +57 -0
  242. package/app/pages/prototype.tsx +136 -0
  243. package/app/pages/render.tsx +162 -0
  244. package/app/pages/settings.tsx +37 -0
  245. package/app/pages/workspace-general.tsx +323 -0
  246. package/app/pages/workspace-git.tsx +385 -0
  247. package/app/pages/your-guidelines.tsx +77 -0
  248. package/app/pages/your-picture.tsx +205 -0
  249. package/app/public/apple-touch-icon.png +0 -0
  250. package/app/public/favicon-32.png +0 -0
  251. package/app/public/favicon.svg +1 -0
  252. package/app/public/sudio-192.png +0 -0
  253. package/app/public/sudio-512.png +0 -0
  254. package/app/public/sudio-maskable-512.png +0 -0
  255. package/app/registry-files.ts +53 -0
  256. package/app/registry.ts +243 -0
  257. package/app/renamed-storage.ts +42 -0
  258. package/app/save-file.ts +13 -0
  259. package/app/shell/about.tsx +125 -0
  260. package/app/shell/agent-logos.tsx +98 -0
  261. package/app/shell/agent-manual.tsx +172 -0
  262. package/app/shell/avatar-pictures.ts +131 -0
  263. package/app/shell/avatar.tsx +128 -0
  264. package/app/shell/bell.tsx +382 -0
  265. package/app/shell/broke.tsx +46 -0
  266. package/app/shell/chrome-theme.tsx +91 -0
  267. package/app/shell/connect-agent.tsx +538 -0
  268. package/app/shell/copy-text.tsx +53 -0
  269. package/app/shell/deployed-preview-bar.tsx +23 -0
  270. package/app/shell/desktop-app.tsx +290 -0
  271. package/app/shell/empty-state.tsx +35 -0
  272. package/app/shell/feedback-details.ts +114 -0
  273. package/app/shell/feedback-form.tsx +630 -0
  274. package/app/shell/feedback-link.tsx +82 -0
  275. package/app/shell/file-bytes.ts +11 -0
  276. package/app/shell/host.ts +96 -0
  277. package/app/shell/info-tip.tsx +15 -0
  278. package/app/shell/install-prompt.ts +55 -0
  279. package/app/shell/instructions-editor.tsx +842 -0
  280. package/app/shell/instructions.tsx +114 -0
  281. package/app/shell/main-sidebar.tsx +346 -0
  282. package/app/shell/markdown.tsx +9 -0
  283. package/app/shell/open-agent.tsx +90 -0
  284. package/app/shell/page-header.tsx +154 -0
  285. package/app/shell/page-title.ts +129 -0
  286. package/app/shell/presence.tsx +500 -0
  287. package/app/shell/prototype-menu.tsx +293 -0
  288. package/app/shell/quick-start.tsx +311 -0
  289. package/app/shell/recents.ts +113 -0
  290. package/app/shell/report-issue.ts +130 -0
  291. package/app/shell/restart-toast.tsx +258 -0
  292. package/app/shell/save-state.tsx +45 -0
  293. package/app/shell/scaled-frame.tsx +151 -0
  294. package/app/shell/settings-sections.ts +190 -0
  295. package/app/shell/settings-sidebar.tsx +81 -0
  296. package/app/shell/settings-ui.tsx +185 -0
  297. package/app/shell/shell-bar.ts +16 -0
  298. package/app/shell/sidebar.tsx +88 -0
  299. package/app/shell/skeleton.ts +376 -0
  300. package/app/shell/status-badge.tsx +29 -0
  301. package/app/shell/studio-shell.tsx +217 -0
  302. package/app/shell/thread-list.tsx +217 -0
  303. package/app/shell/time-ago.ts +45 -0
  304. package/app/shell/toasts.tsx +119 -0
  305. package/app/shell/update-notice.tsx +883 -0
  306. package/app/shell/use-copied.ts +26 -0
  307. package/app/shell/use-space.ts +27 -0
  308. package/app/shell/watch-switch.tsx +32 -0
  309. package/app/shell/welcome.tsx +205 -0
  310. package/app/shell/window-buttons.tsx +103 -0
  311. package/app/shell/working-on.tsx +35 -0
  312. package/app/shell/workspace-mark.tsx +278 -0
  313. package/app/shell/workspace-tile.jpg +0 -0
  314. package/app/studio-ui.d.ts +106 -0
  315. package/app/styles.css +571 -0
  316. package/app/types.ts +257 -0
  317. package/app/ui/boundary.tsx +48 -0
  318. package/app/ui/prompt-editor.tsx +474 -0
  319. package/app/ui/reference.tsx +114 -0
  320. package/app/ui/segmented.tsx +73 -0
  321. package/app/ui/shadcn/attachment.tsx +207 -0
  322. package/app/ui/shadcn/badge.tsx +51 -0
  323. package/app/ui/shadcn/button.tsx +62 -0
  324. package/app/ui/shadcn/card.tsx +102 -0
  325. package/app/ui/shadcn/checkbox.tsx +28 -0
  326. package/app/ui/shadcn/dialog.tsx +157 -0
  327. package/app/ui/shadcn/dropdown-menu.tsx +276 -0
  328. package/app/ui/shadcn/input-group.tsx +158 -0
  329. package/app/ui/shadcn/input.tsx +19 -0
  330. package/app/ui/shadcn/kbd.tsx +26 -0
  331. package/app/ui/shadcn/native-select.tsx +65 -0
  332. package/app/ui/shadcn/popover.tsx +89 -0
  333. package/app/ui/shadcn/separator.tsx +24 -0
  334. package/app/ui/shadcn/sheet.tsx +135 -0
  335. package/app/ui/shadcn/spinner.tsx +17 -0
  336. package/app/ui/shadcn/switch.tsx +31 -0
  337. package/app/ui/shadcn/tabs.tsx +82 -0
  338. package/app/ui/shadcn/textarea.tsx +17 -0
  339. package/app/ui/shadcn/toggle-group.tsx +89 -0
  340. package/app/ui/shadcn/toggle.tsx +44 -0
  341. package/app/ui/shadcn/tooltip.tsx +67 -0
  342. package/app/ui/theme-provider.tsx +31 -0
  343. package/app/ui/theme-switch.tsx +27 -0
  344. package/app/ui/theme.css +715 -0
  345. package/bin/dex.mjs +44 -0
  346. package/bin/sudio.mjs +9 -0
  347. package/dist/cli/banner.d.mts +75 -0
  348. package/dist/cli/banner.mjs +206 -0
  349. package/dist/cli/command.d.mts +47 -0
  350. package/dist/cli/command.mjs +40 -0
  351. package/dist/cli/commands/agents/add.d.mts +11 -0
  352. package/dist/cli/commands/agents/add.mjs +24 -0
  353. package/dist/cli/commands/agents.d.mts +5 -0
  354. package/dist/cli/commands/agents.mjs +13 -0
  355. package/dist/cli/commands/app.d.mts +5 -0
  356. package/dist/cli/commands/app.mjs +104 -0
  357. package/dist/cli/commands/build.d.mts +4 -0
  358. package/dist/cli/commands/build.mjs +33 -0
  359. package/dist/cli/commands/claude.d.mts +10 -0
  360. package/dist/cli/commands/claude.mjs +44 -0
  361. package/dist/cli/commands/cloud/args.d.mts +17 -0
  362. package/dist/cli/commands/cloud/args.mjs +18 -0
  363. package/dist/cli/commands/cloud/link.d.mts +15 -0
  364. package/dist/cli/commands/cloud/link.mjs +20 -0
  365. package/dist/cli/commands/cloud/live.d.mts +38 -0
  366. package/dist/cli/commands/cloud/live.mjs +29 -0
  367. package/dist/cli/commands/cloud/login.d.mts +15 -0
  368. package/dist/cli/commands/cloud/login.mjs +19 -0
  369. package/dist/cli/commands/cloud/publish.d.mts +5 -0
  370. package/dist/cli/commands/cloud/publish.mjs +51 -0
  371. package/dist/cli/commands/cloud/push.d.mts +4 -0
  372. package/dist/cli/commands/cloud/push.mjs +15 -0
  373. package/dist/cli/commands/cloud/status.d.mts +4 -0
  374. package/dist/cli/commands/cloud/status.mjs +15 -0
  375. package/dist/cli/commands/cloud/unlink.d.mts +4 -0
  376. package/dist/cli/commands/cloud/unlink.mjs +15 -0
  377. package/dist/cli/commands/cloud.d.mts +5 -0
  378. package/dist/cli/commands/cloud.mjs +21 -0
  379. package/dist/cli/commands/components.d.mts +14 -0
  380. package/dist/cli/commands/components.mjs +26 -0
  381. package/dist/cli/commands/create.d.mts +233 -0
  382. package/dist/cli/commands/create.mjs +147 -0
  383. package/dist/cli/commands/dev.d.mts +24 -0
  384. package/dist/cli/commands/dev.mjs +135 -0
  385. package/dist/cli/commands/doctor.d.mts +9 -0
  386. package/dist/cli/commands/doctor.mjs +24 -0
  387. package/dist/cli/commands/extension.d.mts +10 -0
  388. package/dist/cli/commands/extension.mjs +32 -0
  389. package/dist/cli/commands/hook.d.mts +19 -0
  390. package/dist/cli/commands/hook.mjs +72 -0
  391. package/dist/cli/commands/init.d.mts +94 -0
  392. package/dist/cli/commands/init.mjs +22 -0
  393. package/dist/cli/commands/mcp.d.mts +15 -0
  394. package/dist/cli/commands/mcp.mjs +48 -0
  395. package/dist/cli/commands/merge-contributors.d.mts +24 -0
  396. package/dist/cli/commands/merge-contributors.mjs +43 -0
  397. package/dist/cli/commands/merge-spec.d.mts +32 -0
  398. package/dist/cli/commands/merge-spec.mjs +75 -0
  399. package/dist/cli/commands/preview.d.mts +4 -0
  400. package/dist/cli/commands/preview.mjs +15 -0
  401. package/dist/cli/commands/stop.d.mts +4 -0
  402. package/dist/cli/commands/stop.mjs +21 -0
  403. package/dist/cli/commands/upgrade.d.mts +14 -0
  404. package/dist/cli/commands/upgrade.mjs +47 -0
  405. package/dist/cli/commands/work/args.d.mts +33 -0
  406. package/dist/cli/commands/work/args.mjs +34 -0
  407. package/dist/cli/commands/work/check.d.mts +4 -0
  408. package/dist/cli/commands/work/check.mjs +19 -0
  409. package/dist/cli/commands/work/contributor.d.mts +25 -0
  410. package/dist/cli/commands/work/contributor.mjs +36 -0
  411. package/dist/cli/commands/work/new.d.mts +30 -0
  412. package/dist/cli/commands/work/new.mjs +33 -0
  413. package/dist/cli/commands/work/presence.d.mts +34 -0
  414. package/dist/cli/commands/work/presence.mjs +38 -0
  415. package/dist/cli/commands/work/scope.d.mts +21 -0
  416. package/dist/cli/commands/work/scope.mjs +25 -0
  417. package/dist/cli/commands/work/snapshot.d.mts +20 -0
  418. package/dist/cli/commands/work/snapshot.mjs +28 -0
  419. package/dist/cli/commands/work/thread.d.mts +36 -0
  420. package/dist/cli/commands/work/thread.mjs +40 -0
  421. package/dist/cli/commands/work/threads.d.mts +14 -0
  422. package/dist/cli/commands/work/threads.mjs +25 -0
  423. package/dist/cli/commands/work/whoami.d.mts +4 -0
  424. package/dist/cli/commands/work/whoami.mjs +14 -0
  425. package/dist/cli/help.d.mts +9 -0
  426. package/dist/cli/help.mjs +161 -0
  427. package/dist/cli/main.d.mts +463 -0
  428. package/dist/cli/main.mjs +113 -0
  429. package/dist/cli/mcp-relay.d.mts +60 -0
  430. package/dist/cli/mcp-relay.mjs +342 -0
  431. package/dist/cli/recovery-server.d.mts +25 -0
  432. package/dist/cli/recovery-server.mjs +68 -0
  433. package/dist/cli/strict-flags.d.mts +30 -0
  434. package/dist/cli/strict-flags.mjs +115 -0
  435. package/dist/cli/supervise.d.mts +42 -0
  436. package/dist/cli/supervise.mjs +300 -0
  437. package/dist/cli/ui.d.mts +109 -0
  438. package/dist/cli/ui.mjs +240 -0
  439. package/dist/config/design-system.d.mts +75 -0
  440. package/dist/config/design-system.mjs +202 -0
  441. package/dist/config/index.d.mts +260 -0
  442. package/dist/config/index.mjs +20 -0
  443. package/dist/config/load.d.mts +55 -0
  444. package/dist/config/load.mjs +121 -0
  445. package/dist/config/package-manager.d.mts +15 -0
  446. package/dist/config/package-manager.mjs +61 -0
  447. package/dist/config/project-files.d.mts +94 -0
  448. package/dist/config/project-files.mjs +507 -0
  449. package/dist/config/renamed.d.mts +22 -0
  450. package/dist/config/renamed.mjs +34 -0
  451. package/dist/config/schema.d.mts +240 -0
  452. package/dist/config/schema.mjs +172 -0
  453. package/dist/content/biome.d.mts +10 -0
  454. package/dist/content/biome.mjs +35 -0
  455. package/dist/content/capture.d.mts +81 -0
  456. package/dist/content/capture.mjs +723 -0
  457. package/dist/content/commands.d.mts +67 -0
  458. package/dist/content/commands.mjs +180 -0
  459. package/dist/content/comments-log.d.mts +61 -0
  460. package/dist/content/comments-log.mjs +161 -0
  461. package/dist/content/component-props.d.mts +17 -0
  462. package/dist/content/component-props.mjs +354 -0
  463. package/dist/content/content.d.mts +581 -0
  464. package/dist/content/content.mjs +1369 -0
  465. package/dist/content/devices.d.mts +17 -0
  466. package/dist/content/devices.mjs +49 -0
  467. package/dist/content/file-turns.d.mts +9 -0
  468. package/dist/content/file-turns.mjs +35 -0
  469. package/dist/content/first-run.d.mts +9 -0
  470. package/dist/content/first-run.mjs +45 -0
  471. package/dist/content/flow-specs.d.mts +68 -0
  472. package/dist/content/flow-specs.mjs +161 -0
  473. package/dist/content/insert-edit.d.mts +24 -0
  474. package/dist/content/insert-edit.mjs +139 -0
  475. package/dist/content/jsx-source.d.mts +9 -0
  476. package/dist/content/jsx-source.mjs +30 -0
  477. package/dist/content/last-edited.d.mts +10 -0
  478. package/dist/content/last-edited.mjs +34 -0
  479. package/dist/content/layout.d.mts +10 -0
  480. package/dist/content/layout.mjs +23 -0
  481. package/dist/content/merge-rules.d.mts +16 -0
  482. package/dist/content/merge-rules.mjs +61 -0
  483. package/dist/content/prop-edit.d.mts +45 -0
  484. package/dist/content/prop-edit.mjs +151 -0
  485. package/dist/content/prototype-checks.d.mts +30 -0
  486. package/dist/content/prototype-checks.mjs +117 -0
  487. package/dist/content/prototype-summary.d.mts +93 -0
  488. package/dist/content/prototype-summary.mjs +86 -0
  489. package/dist/content/prototypes.d.mts +117 -0
  490. package/dist/content/prototypes.mjs +232 -0
  491. package/dist/content/read-text.d.mts +4 -0
  492. package/dist/content/read-text.mjs +12 -0
  493. package/dist/content/review-import.d.mts +13 -0
  494. package/dist/content/review-import.mjs +54 -0
  495. package/dist/content/review-pages.d.mts +26 -0
  496. package/dist/content/review-pages.mjs +240 -0
  497. package/dist/content/screenshot.d.mts +60 -0
  498. package/dist/content/screenshot.mjs +274 -0
  499. package/dist/content/snapshot-client.d.mts +25 -0
  500. package/dist/content/snapshot-client.mjs +60 -0
  501. package/dist/content/store.d.mts +52 -0
  502. package/dist/content/store.mjs +123 -0
  503. package/dist/content/text-edit.d.mts +24 -0
  504. package/dist/content/text-edit.mjs +92 -0
  505. package/dist/content/thread-module.d.mts +79 -0
  506. package/dist/content/thread-module.mjs +201 -0
  507. package/dist/content/threads.d.mts +29 -0
  508. package/dist/content/threads.mjs +193 -0
  509. package/dist/content/trash.d.mts +69 -0
  510. package/dist/content/trash.mjs +206 -0
  511. package/dist/paste/figma/appearance.d.mts +7 -0
  512. package/dist/paste/figma/appearance.mjs +156 -0
  513. package/dist/paste/figma/captures.d.mts +14 -0
  514. package/dist/paste/figma/captures.mjs +112 -0
  515. package/dist/paste/figma/decode.d.mts +376 -0
  516. package/dist/paste/figma/decode.mjs +235 -0
  517. package/dist/paste/figma/document.d.mts +70 -0
  518. package/dist/paste/figma/document.mjs +323 -0
  519. package/dist/paste/figma/layout.d.mts +19 -0
  520. package/dist/paste/figma/layout.mjs +190 -0
  521. package/dist/paste/figma/paint.d.mts +9 -0
  522. package/dist/paste/figma/paint.mjs +198 -0
  523. package/dist/paste/figma/render.d.mts +8 -0
  524. package/dist/paste/figma/render.mjs +102 -0
  525. package/dist/paste/figma/styles.d.mts +52 -0
  526. package/dist/paste/figma/styles.mjs +53 -0
  527. package/dist/paste/figma/text.d.mts +6 -0
  528. package/dist/paste/figma/text.mjs +282 -0
  529. package/dist/paste/figma/vector.d.mts +15 -0
  530. package/dist/paste/figma/vector.mjs +254 -0
  531. package/dist/paste/fonts.d.mts +9 -0
  532. package/dist/paste/fonts.mjs +81 -0
  533. package/dist/paste/paste.d.mts +27 -0
  534. package/dist/paste/paste.mjs +131 -0
  535. package/dist/paths.d.mts +66 -0
  536. package/dist/paths.mjs +138 -0
  537. package/dist/server/agent-env.d.mts +12 -0
  538. package/dist/server/agent-env.mjs +47 -0
  539. package/dist/server/agent-session.d.mts +62 -0
  540. package/dist/server/agent-session.mjs +131 -0
  541. package/dist/server/agents.d.mts +133 -0
  542. package/dist/server/agents.mjs +771 -0
  543. package/dist/server/allowed-request.d.mts +31 -0
  544. package/dist/server/allowed-request.mjs +54 -0
  545. package/dist/server/avatars.d.mts +18 -0
  546. package/dist/server/avatars.mjs +60 -0
  547. package/dist/server/brief.d.mts +37 -0
  548. package/dist/server/brief.mjs +242 -0
  549. package/dist/server/briefing.d.mts +97 -0
  550. package/dist/server/briefing.mjs +99 -0
  551. package/dist/server/build-pictures.d.mts +55 -0
  552. package/dist/server/build-pictures.mjs +209 -0
  553. package/dist/server/build-settings.d.mts +13 -0
  554. package/dist/server/build-settings.mjs +30 -0
  555. package/dist/server/changelog.d.mts +10 -0
  556. package/dist/server/changelog.mjs +39 -0
  557. package/dist/server/channel.d.mts +244 -0
  558. package/dist/server/channel.mjs +654 -0
  559. package/dist/server/close-check.d.mts +31 -0
  560. package/dist/server/close-check.mjs +129 -0
  561. package/dist/server/cloud.d.mts +89 -0
  562. package/dist/server/cloud.mjs +229 -0
  563. package/dist/server/command-settings.d.mts +23 -0
  564. package/dist/server/command-settings.mjs +59 -0
  565. package/dist/server/component-catalogue.d.mts +47 -0
  566. package/dist/server/component-catalogue.mjs +166 -0
  567. package/dist/server/config-settings.d.mts +19 -0
  568. package/dist/server/config-settings.mjs +44 -0
  569. package/dist/server/content-type.d.mts +3 -0
  570. package/dist/server/content-type.mjs +25 -0
  571. package/dist/server/dependency-clash.d.mts +23 -0
  572. package/dist/server/dependency-clash.mjs +225 -0
  573. package/dist/server/dev-server.d.mts +11 -0
  574. package/dist/server/dev-server.mjs +189 -0
  575. package/dist/server/features.d.mts +29 -0
  576. package/dist/server/features.mjs +34 -0
  577. package/dist/server/file-errors.d.mts +17 -0
  578. package/dist/server/file-errors.mjs +88 -0
  579. package/dist/server/file-lock.d.mts +18 -0
  580. package/dist/server/file-lock.mjs +68 -0
  581. package/dist/server/git-asks.d.mts +23 -0
  582. package/dist/server/git-asks.mjs +57 -0
  583. package/dist/server/git-host.d.mts +38 -0
  584. package/dist/server/git-host.mjs +182 -0
  585. package/dist/server/git-paused.d.mts +19 -0
  586. package/dist/server/git-paused.mjs +163 -0
  587. package/dist/server/git-settings.d.mts +18 -0
  588. package/dist/server/git-settings.mjs +64 -0
  589. package/dist/server/git-sync.d.mts +67 -0
  590. package/dist/server/git-sync.mjs +499 -0
  591. package/dist/server/git.d.mts +148 -0
  592. package/dist/server/git.mjs +652 -0
  593. package/dist/server/icon-set.d.mts +15 -0
  594. package/dist/server/icon-set.mjs +31 -0
  595. package/dist/server/instructions.d.mts +27 -0
  596. package/dist/server/instructions.mjs +71 -0
  597. package/dist/server/live-mirror.d.mts +60 -0
  598. package/dist/server/live-mirror.mjs +319 -0
  599. package/dist/server/live.d.mts +10 -0
  600. package/dist/server/live.mjs +155 -0
  601. package/dist/server/machine-update.d.mts +77 -0
  602. package/dist/server/machine-update.mjs +486 -0
  603. package/dist/server/mcp-handover.d.mts +37 -0
  604. package/dist/server/mcp-handover.mjs +76 -0
  605. package/dist/server/mcp.d.mts +63 -0
  606. package/dist/server/mcp.mjs +156 -0
  607. package/dist/server/me.d.mts +30 -0
  608. package/dist/server/me.mjs +43 -0
  609. package/dist/server/next.d.mts +21 -0
  610. package/dist/server/next.mjs +96 -0
  611. package/dist/server/notices.d.mts +84 -0
  612. package/dist/server/notices.mjs +281 -0
  613. package/dist/server/open-page.d.mts +58 -0
  614. package/dist/server/open-page.mjs +101 -0
  615. package/dist/server/own-copies.d.mts +64 -0
  616. package/dist/server/own-copies.mjs +260 -0
  617. package/dist/server/people.d.mts +19 -0
  618. package/dist/server/people.mjs +57 -0
  619. package/dist/server/personal-folder.d.mts +7 -0
  620. package/dist/server/personal-folder.mjs +32 -0
  621. package/dist/server/pictures.d.mts +39 -0
  622. package/dist/server/pictures.mjs +248 -0
  623. package/dist/server/port.d.mts +60 -0
  624. package/dist/server/port.mjs +106 -0
  625. package/dist/server/preferences.d.mts +7 -0
  626. package/dist/server/preferences.mjs +22 -0
  627. package/dist/server/presence.d.mts +40 -0
  628. package/dist/server/presence.mjs +98 -0
  629. package/dist/server/project-id.d.mts +4 -0
  630. package/dist/server/project-id.mjs +13 -0
  631. package/dist/server/project-public.d.mts +4 -0
  632. package/dist/server/project-public.mjs +53 -0
  633. package/dist/server/prototype-brief.d.mts +26 -0
  634. package/dist/server/prototype-brief.mjs +117 -0
  635. package/dist/server/push-notice.d.mts +23 -0
  636. package/dist/server/push-notice.mjs +43 -0
  637. package/dist/server/quiet-run.d.mts +25 -0
  638. package/dist/server/quiet-run.mjs +47 -0
  639. package/dist/server/registry.d.mts +23 -0
  640. package/dist/server/registry.mjs +113 -0
  641. package/dist/server/requests.d.mts +63 -0
  642. package/dist/server/requests.mjs +1483 -0
  643. package/dist/server/response-budget.d.mts +66 -0
  644. package/dist/server/response-budget.mjs +78 -0
  645. package/dist/server/restart.d.mts +77 -0
  646. package/dist/server/restart.mjs +115 -0
  647. package/dist/server/roster.d.mts +76 -0
  648. package/dist/server/roster.mjs +191 -0
  649. package/dist/server/saved.d.mts +18 -0
  650. package/dist/server/saved.mjs +46 -0
  651. package/dist/server/source-stamp.d.mts +19 -0
  652. package/dist/server/source-stamp.mjs +120 -0
  653. package/dist/server/spec-decisions.d.mts +31 -0
  654. package/dist/server/spec-decisions.mjs +59 -0
  655. package/dist/server/spec-suggestions.d.mts +21 -0
  656. package/dist/server/spec-suggestions.mjs +59 -0
  657. package/dist/server/state.d.mts +118 -0
  658. package/dist/server/state.mjs +165 -0
  659. package/dist/server/stop-studio.d.mts +17 -0
  660. package/dist/server/stop-studio.mjs +37 -0
  661. package/dist/server/studio-for.d.mts +58 -0
  662. package/dist/server/studio-for.mjs +73 -0
  663. package/dist/server/sync-install.d.mts +44 -0
  664. package/dist/server/sync-install.mjs +66 -0
  665. package/dist/server/thread-forms.d.mts +50 -0
  666. package/dist/server/thread-forms.mjs +159 -0
  667. package/dist/server/thread-place.d.mts +39 -0
  668. package/dist/server/thread-place.mjs +87 -0
  669. package/dist/server/thread-source.d.mts +60 -0
  670. package/dist/server/thread-source.mjs +197 -0
  671. package/dist/server/tools/close-reply.d.mts +6 -0
  672. package/dist/server/tools/close-reply.mjs +138 -0
  673. package/dist/server/tools/comment.d.mts +6 -0
  674. package/dist/server/tools/comment.mjs +49 -0
  675. package/dist/server/tools/context.d.mts +67 -0
  676. package/dist/server/tools/context.mjs +66 -0
  677. package/dist/server/tools/describe.d.mts +18 -0
  678. package/dist/server/tools/describe.mjs +35 -0
  679. package/dist/server/tools/feedback.d.mts +7 -0
  680. package/dist/server/tools/feedback.mjs +142 -0
  681. package/dist/server/tools/place-frame.d.mts +6 -0
  682. package/dist/server/tools/place-frame.mjs +104 -0
  683. package/dist/server/tools/prototype-name.d.mts +12 -0
  684. package/dist/server/tools/prototype-name.mjs +20 -0
  685. package/dist/server/tools/reading.d.mts +10 -0
  686. package/dist/server/tools/reading.mjs +152 -0
  687. package/dist/server/tools/result.d.mts +16 -0
  688. package/dist/server/tools/result.mjs +35 -0
  689. package/dist/server/tools/show.d.mts +7 -0
  690. package/dist/server/tools/show.mjs +87 -0
  691. package/dist/server/tools/snapshot.d.mts +10 -0
  692. package/dist/server/tools/snapshot.mjs +72 -0
  693. package/dist/server/tools/thread-list.d.mts +6 -0
  694. package/dist/server/tools/thread-list.mjs +105 -0
  695. package/dist/server/tools/watch.d.mts +6 -0
  696. package/dist/server/tools/watch.mjs +286 -0
  697. package/dist/server/unresolved-imports.d.mts +5 -0
  698. package/dist/server/unresolved-imports.mjs +82 -0
  699. package/dist/server/update-branch.d.mts +14 -0
  700. package/dist/server/update-branch.mjs +153 -0
  701. package/dist/server/update-studio.d.mts +38 -0
  702. package/dist/server/update-studio.mjs +101 -0
  703. package/dist/server/updates.d.mts +81 -0
  704. package/dist/server/updates.mjs +187 -0
  705. package/dist/server/vite.d.mts +115 -0
  706. package/dist/server/vite.mjs +754 -0
  707. package/dist/server/web-app.d.mts +24 -0
  708. package/dist/server/web-app.mjs +182 -0
  709. package/dist/server/welcome.d.mts +7 -0
  710. package/dist/server/welcome.mjs +43 -0
  711. package/dist/server/work-groups.d.mts +50 -0
  712. package/dist/server/work-groups.mjs +247 -0
  713. package/dist/server/workspace-settings.d.mts +55 -0
  714. package/dist/server/workspace-settings.mjs +340 -0
  715. package/dist/server/zip.d.mts +29 -0
  716. package/dist/server/zip.mjs +124 -0
  717. package/dist/setup/apply.d.mts +76 -0
  718. package/dist/setup/apply.mjs +464 -0
  719. package/dist/setup/commit-lint.d.mts +71 -0
  720. package/dist/setup/commit-lint.mjs +286 -0
  721. package/dist/setup/components.d.mts +27 -0
  722. package/dist/setup/components.mjs +67 -0
  723. package/dist/setup/config-choices.d.mts +14 -0
  724. package/dist/setup/config-choices.mjs +32 -0
  725. package/dist/setup/config-source.d.mts +58 -0
  726. package/dist/setup/config-source.mjs +384 -0
  727. package/dist/setup/create.d.mts +50 -0
  728. package/dist/setup/create.mjs +983 -0
  729. package/dist/setup/design-md-setup.d.mts +91 -0
  730. package/dist/setup/design-md-setup.mjs +164 -0
  731. package/dist/setup/design-md.d.mts +144 -0
  732. package/dist/setup/design-md.mjs +773 -0
  733. package/dist/setup/design-system-checks.d.mts +39 -0
  734. package/dist/setup/design-system-checks.mjs +264 -0
  735. package/dist/setup/design-system-guide.d.mts +10 -0
  736. package/dist/setup/design-system-guide.mjs +41 -0
  737. package/dist/setup/desktop-app-script.d.mts +28 -0
  738. package/dist/setup/desktop-app-script.mjs +774 -0
  739. package/dist/setup/desktop-app-start.d.mts +59 -0
  740. package/dist/setup/desktop-app-start.mjs +114 -0
  741. package/dist/setup/desktop-app.d.mts +166 -0
  742. package/dist/setup/desktop-app.mjs +535 -0
  743. package/dist/setup/detect/workspace.d.mts +207 -0
  744. package/dist/setup/detect/workspace.mjs +747 -0
  745. package/dist/setup/detect.d.mts +81 -0
  746. package/dist/setup/detect.mjs +346 -0
  747. package/dist/setup/doctor.d.mts +48 -0
  748. package/dist/setup/doctor.mjs +290 -0
  749. package/dist/setup/existing-setup.d.mts +60 -0
  750. package/dist/setup/existing-setup.mjs +323 -0
  751. package/dist/setup/findings.d.mts +16 -0
  752. package/dist/setup/findings.mjs +9 -0
  753. package/dist/setup/git-checks.d.mts +41 -0
  754. package/dist/setup/git-checks.mjs +247 -0
  755. package/dist/setup/hints.d.mts +20 -0
  756. package/dist/setup/hints.mjs +171 -0
  757. package/dist/setup/host-format.d.mts +13 -0
  758. package/dist/setup/host-format.mjs +89 -0
  759. package/dist/setup/migrate/agent-files.d.mts +23 -0
  760. package/dist/setup/migrate/agent-files.mjs +112 -0
  761. package/dist/setup/migrate/config-name.d.mts +21 -0
  762. package/dist/setup/migrate/config-name.mjs +68 -0
  763. package/dist/setup/migrate/design-system.d.mts +62 -0
  764. package/dist/setup/migrate/design-system.mjs +484 -0
  765. package/dist/setup/migrate/explorations.d.mts +5 -0
  766. package/dist/setup/migrate/explorations.mjs +31 -0
  767. package/dist/setup/migrate/files-folder.d.mts +43 -0
  768. package/dist/setup/migrate/files-folder.mjs +293 -0
  769. package/dist/setup/migrate/guides.d.mts +5 -0
  770. package/dist/setup/migrate/guides.mjs +55 -0
  771. package/dist/setup/migrate/migration.d.mts +67 -0
  772. package/dist/setup/migrate/migration.mjs +7 -0
  773. package/dist/setup/migrate/migrations.d.mts +22 -0
  774. package/dist/setup/migrate/migrations.mjs +52 -0
  775. package/dist/setup/migrate/people-folders.d.mts +26 -0
  776. package/dist/setup/migrate/people-folders.mjs +206 -0
  777. package/dist/setup/migrate/project-files.d.mts +5 -0
  778. package/dist/setup/migrate/project-files.mjs +28 -0
  779. package/dist/setup/migrate/row-titles.d.mts +5 -0
  780. package/dist/setup/migrate/row-titles.mjs +35 -0
  781. package/dist/setup/migrate/studio-state.d.mts +22 -0
  782. package/dist/setup/migrate/studio-state.mjs +130 -0
  783. package/dist/setup/own-app.d.mts +69 -0
  784. package/dist/setup/own-app.mjs +259 -0
  785. package/dist/setup/placement.d.mts +32 -0
  786. package/dist/setup/placement.mjs +249 -0
  787. package/dist/setup/plan.d.mts +157 -0
  788. package/dist/setup/plan.mjs +397 -0
  789. package/dist/setup/project.d.mts +156 -0
  790. package/dist/setup/project.mjs +299 -0
  791. package/dist/setup/prompts.d.mts +78 -0
  792. package/dist/setup/prompts.mjs +786 -0
  793. package/dist/setup/provider.d.mts +19 -0
  794. package/dist/setup/provider.mjs +118 -0
  795. package/dist/setup/questions.d.mts +140 -0
  796. package/dist/setup/questions.mjs +232 -0
  797. package/dist/setup/starters.d.mts +68 -0
  798. package/dist/setup/starters.mjs +166 -0
  799. package/dist/setup/templates.d.mts +75 -0
  800. package/dist/setup/templates.mjs +148 -0
  801. package/dist/setup/workspace-setup.d.mts +38 -0
  802. package/dist/setup/workspace-setup.mjs +159 -0
  803. package/dist/setup/write.d.mts +117 -0
  804. package/dist/setup/write.mjs +205 -0
  805. package/dist/shared/agent-prompts.d.mts +10 -0
  806. package/dist/shared/agent-prompts.mjs +11 -0
  807. package/dist/shared/annotations-core.d.mts +158 -0
  808. package/dist/shared/annotations-core.mjs +263 -0
  809. package/dist/shared/avatar-file.d.mts +11 -0
  810. package/dist/shared/avatar-file.mjs +12 -0
  811. package/dist/shared/block-merge.d.mts +28 -0
  812. package/dist/shared/block-merge.mjs +176 -0
  813. package/dist/shared/build-settings.d.mts +13 -0
  814. package/dist/shared/build-settings.mjs +9 -0
  815. package/dist/shared/built-pictures.d.mts +29 -0
  816. package/dist/shared/built-pictures.mjs +34 -0
  817. package/dist/shared/canvas-core.d.mts +478 -0
  818. package/dist/shared/canvas-core.mjs +859 -0
  819. package/dist/shared/checks.d.mts +8 -0
  820. package/dist/shared/checks.mjs +9 -0
  821. package/dist/shared/commands-core.d.mts +117 -0
  822. package/dist/shared/commands-core.mjs +90 -0
  823. package/dist/shared/contributors-merge.d.mts +8 -0
  824. package/dist/shared/contributors-merge.mjs +54 -0
  825. package/dist/shared/design-system.d.mts +89 -0
  826. package/dist/shared/design-system.mjs +1 -0
  827. package/dist/shared/devices.d.mts +59 -0
  828. package/dist/shared/devices.mjs +172 -0
  829. package/dist/shared/element-steps.d.mts +38 -0
  830. package/dist/shared/element-steps.mjs +40 -0
  831. package/dist/shared/feedback.d.mts +79 -0
  832. package/dist/shared/feedback.mjs +192 -0
  833. package/dist/shared/file-errors.d.mts +25 -0
  834. package/dist/shared/file-errors.mjs +25 -0
  835. package/dist/shared/fix-prompt.d.mts +30 -0
  836. package/dist/shared/fix-prompt.mjs +43 -0
  837. package/dist/shared/frame-grids.d.mts +43 -0
  838. package/dist/shared/frame-grids.mjs +107 -0
  839. package/dist/shared/front-matter.d.mts +37 -0
  840. package/dist/shared/front-matter.mjs +74 -0
  841. package/dist/shared/generated-sections.d.mts +29 -0
  842. package/dist/shared/generated-sections.mjs +117 -0
  843. package/dist/shared/git-core.d.mts +207 -0
  844. package/dist/shared/git-core.mjs +122 -0
  845. package/dist/shared/icon-sets.d.mts +9 -0
  846. package/dist/shared/icon-sets.mjs +21 -0
  847. package/dist/shared/json-style.d.mts +11 -0
  848. package/dist/shared/json-style.mjs +50 -0
  849. package/dist/shared/listing.d.mts +4 -0
  850. package/dist/shared/listing.mjs +10 -0
  851. package/dist/shared/live-core.d.mts +59 -0
  852. package/dist/shared/live-core.mjs +157 -0
  853. package/dist/shared/live-presence.d.mts +75 -0
  854. package/dist/shared/live-presence.mjs +128 -0
  855. package/dist/shared/markup-prompt.d.mts +17 -0
  856. package/dist/shared/markup-prompt.mjs +56 -0
  857. package/dist/shared/open-page-core.d.mts +38 -0
  858. package/dist/shared/open-page-core.mjs +39 -0
  859. package/dist/shared/page-messages.d.mts +68 -0
  860. package/dist/shared/page-messages.mjs +66 -0
  861. package/dist/shared/page-review.d.mts +100 -0
  862. package/dist/shared/page-review.mjs +138 -0
  863. package/dist/shared/paste-arrangement.d.mts +20 -0
  864. package/dist/shared/paste-arrangement.mjs +31 -0
  865. package/dist/shared/pasted-image.d.mts +16 -0
  866. package/dist/shared/pasted-image.mjs +11 -0
  867. package/dist/shared/people-core.d.mts +158 -0
  868. package/dist/shared/people-core.mjs +469 -0
  869. package/dist/shared/presence-core.d.mts +22 -0
  870. package/dist/shared/presence-core.mjs +7 -0
  871. package/dist/shared/product.d.mts +3 -0
  872. package/dist/shared/product.mjs +4 -0
  873. package/dist/shared/prototypes-core.d.mts +168 -0
  874. package/dist/shared/prototypes-core.mjs +270 -0
  875. package/dist/shared/references-core.d.mts +30 -0
  876. package/dist/shared/references-core.mjs +46 -0
  877. package/dist/shared/removed-views-core.d.mts +101 -0
  878. package/dist/shared/removed-views-core.mjs +115 -0
  879. package/dist/shared/review-file.d.mts +101 -0
  880. package/dist/shared/review-file.mjs +97 -0
  881. package/dist/shared/server-page.d.mts +74 -0
  882. package/dist/shared/server-page.mjs +294 -0
  883. package/dist/shared/signup.d.mts +42 -0
  884. package/dist/shared/signup.mjs +97 -0
  885. package/dist/shared/sketch-core.d.mts +61 -0
  886. package/dist/shared/sketch-core.mjs +329 -0
  887. package/dist/shared/snapshot-clipboard.d.mts +90 -0
  888. package/dist/shared/snapshot-clipboard.mjs +50 -0
  889. package/dist/shared/snapshot-images.d.mts +23 -0
  890. package/dist/shared/snapshot-images.mjs +80 -0
  891. package/dist/shared/spec-quote.d.mts +25 -0
  892. package/dist/shared/spec-quote.mjs +100 -0
  893. package/dist/shared/studio-events.d.mts +136 -0
  894. package/dist/shared/studio-events.mjs +95 -0
  895. package/dist/shared/studio-files.d.mts +50 -0
  896. package/dist/shared/studio-files.mjs +58 -0
  897. package/dist/shared/studio-routes.d.mts +844 -0
  898. package/dist/shared/studio-routes.mjs +137 -0
  899. package/dist/shared/threads-core.d.mts +455 -0
  900. package/dist/shared/threads-core.mjs +678 -0
  901. package/dist/shared/unzip.d.mts +9 -0
  902. package/dist/shared/unzip.mjs +56 -0
  903. package/dist/shared/update-core.d.mts +111 -0
  904. package/dist/shared/update-core.mjs +21 -0
  905. package/dist/shared/word-diff.d.mts +33 -0
  906. package/dist/shared/word-diff.mjs +118 -0
  907. package/dist/shared/workspace.d.mts +26 -0
  908. package/dist/shared/workspace.mjs +17 -0
  909. package/extension/dist/background.js +1 -0
  910. package/extension/dist/feedback.html +19 -0
  911. package/extension/dist/feedback.js +699 -0
  912. package/extension/dist/icons/128.png +0 -0
  913. package/extension/dist/icons/16.png +0 -0
  914. package/extension/dist/icons/32.png +0 -0
  915. package/extension/dist/icons/48.png +0 -0
  916. package/extension/dist/inter.woff2 +0 -0
  917. package/extension/dist/manifest.json +54 -0
  918. package/extension/dist/offscreen.html +9 -0
  919. package/extension/dist/offscreen.js +1 -0
  920. package/extension/dist/picker.js +678 -0
  921. package/package.json +207 -4
  922. package/src/cli/banner.ts +374 -0
  923. package/src/cli/command.ts +87 -0
  924. package/src/cli/commands/agents/add.ts +31 -0
  925. package/src/cli/commands/agents.ts +13 -0
  926. package/src/cli/commands/app.ts +128 -0
  927. package/src/cli/commands/build.ts +33 -0
  928. package/src/cli/commands/claude.ts +65 -0
  929. package/src/cli/commands/cloud/args.ts +19 -0
  930. package/src/cli/commands/cloud/link.ts +19 -0
  931. package/src/cli/commands/cloud/live.ts +26 -0
  932. package/src/cli/commands/cloud/login.ts +14 -0
  933. package/src/cli/commands/cloud/publish.ts +63 -0
  934. package/src/cli/commands/cloud/push.ts +16 -0
  935. package/src/cli/commands/cloud/status.ts +17 -0
  936. package/src/cli/commands/cloud/unlink.ts +17 -0
  937. package/src/cli/commands/cloud.ts +20 -0
  938. package/src/cli/commands/components.ts +25 -0
  939. package/src/cli/commands/create.ts +183 -0
  940. package/src/cli/commands/dev.ts +234 -0
  941. package/src/cli/commands/doctor.ts +34 -0
  942. package/src/cli/commands/extension.ts +33 -0
  943. package/src/cli/commands/hook.ts +99 -0
  944. package/src/cli/commands/init.ts +24 -0
  945. package/src/cli/commands/mcp.ts +58 -0
  946. package/src/cli/commands/merge-contributors.ts +39 -0
  947. package/src/cli/commands/merge-spec.ts +54 -0
  948. package/src/cli/commands/preview.ts +18 -0
  949. package/src/cli/commands/stop.ts +27 -0
  950. package/src/cli/commands/upgrade.ts +76 -0
  951. package/src/cli/commands/work/args.ts +38 -0
  952. package/src/cli/commands/work/check.ts +21 -0
  953. package/src/cli/commands/work/contributor.ts +34 -0
  954. package/src/cli/commands/work/new.ts +28 -0
  955. package/src/cli/commands/work/presence.ts +37 -0
  956. package/src/cli/commands/work/scope.ts +23 -0
  957. package/src/cli/commands/work/snapshot.ts +27 -0
  958. package/src/cli/commands/work/thread.ts +40 -0
  959. package/src/cli/commands/work/threads.ts +20 -0
  960. package/src/cli/commands/work/whoami.ts +12 -0
  961. package/src/cli/help.ts +213 -0
  962. package/src/cli/main.ts +140 -0
  963. package/src/cli/mcp-relay.ts +538 -0
  964. package/src/cli/recovery-server.ts +123 -0
  965. package/src/cli/strict-flags.ts +208 -0
  966. package/src/cli/supervise.ts +416 -0
  967. package/src/cli/ui.ts +402 -0
  968. package/src/config/design-system.ts +349 -0
  969. package/src/config/index.ts +288 -0
  970. package/src/config/load.ts +201 -0
  971. package/src/config/package-manager.ts +93 -0
  972. package/src/config/project-files.ts +856 -0
  973. package/src/config/renamed.ts +59 -0
  974. package/src/config/schema.ts +195 -0
  975. package/src/content/biome.ts +51 -0
  976. package/src/content/capture.ts +1114 -0
  977. package/src/content/commands.ts +288 -0
  978. package/src/content/comments-log.ts +288 -0
  979. package/src/content/component-props.ts +642 -0
  980. package/src/content/content.ts +2470 -0
  981. package/src/content/devices.ts +63 -0
  982. package/src/content/file-turns.ts +60 -0
  983. package/src/content/first-run.ts +62 -0
  984. package/src/content/flow-specs.ts +267 -0
  985. package/src/content/insert-edit.ts +225 -0
  986. package/src/content/jsx-source.ts +54 -0
  987. package/src/content/last-edited.ts +58 -0
  988. package/src/content/layout.ts +32 -0
  989. package/src/content/merge-rules.ts +77 -0
  990. package/src/content/prop-edit.ts +262 -0
  991. package/src/content/prototype-checks.ts +239 -0
  992. package/src/content/prototype-summary.ts +216 -0
  993. package/src/content/prototypes.ts +413 -0
  994. package/src/content/read-text.ts +12 -0
  995. package/src/content/review-import.ts +77 -0
  996. package/src/content/review-pages.ts +329 -0
  997. package/src/content/screenshot.ts +457 -0
  998. package/src/content/snapshot-client.ts +99 -0
  999. package/src/content/store.ts +237 -0
  1000. package/src/content/text-edit.ts +134 -0
  1001. package/src/content/thread-module.ts +368 -0
  1002. package/src/content/threads.ts +328 -0
  1003. package/src/content/trash.ts +350 -0
  1004. package/src/paste/figma/appearance.ts +253 -0
  1005. package/src/paste/figma/captures.ts +175 -0
  1006. package/src/paste/figma/decode.ts +604 -0
  1007. package/src/paste/figma/document.ts +541 -0
  1008. package/src/paste/figma/layout.ts +233 -0
  1009. package/src/paste/figma/paint.ts +327 -0
  1010. package/src/paste/figma/render.ts +149 -0
  1011. package/src/paste/figma/styles.ts +119 -0
  1012. package/src/paste/figma/text.ts +439 -0
  1013. package/src/paste/figma/vector.ts +405 -0
  1014. package/src/paste/fonts.ts +119 -0
  1015. package/src/paste/paste.ts +202 -0
  1016. package/src/paths.ts +208 -0
  1017. package/src/server/agent-env.ts +60 -0
  1018. package/src/server/agent-session.ts +209 -0
  1019. package/src/server/agents.ts +1220 -0
  1020. package/src/server/allowed-request.ts +95 -0
  1021. package/src/server/avatars.ts +87 -0
  1022. package/src/server/brief.ts +506 -0
  1023. package/src/server/briefing.ts +235 -0
  1024. package/src/server/build-pictures.ts +302 -0
  1025. package/src/server/build-settings.ts +47 -0
  1026. package/src/server/changelog.ts +59 -0
  1027. package/src/server/channel.ts +1092 -0
  1028. package/src/server/close-check.ts +218 -0
  1029. package/src/server/cloud.ts +404 -0
  1030. package/src/server/command-settings.ts +100 -0
  1031. package/src/server/component-catalogue.ts +294 -0
  1032. package/src/server/config-settings.ts +63 -0
  1033. package/src/server/content-type.ts +25 -0
  1034. package/src/server/dependency-clash.ts +345 -0
  1035. package/src/server/dev-server.ts +343 -0
  1036. package/src/server/features.ts +58 -0
  1037. package/src/server/file-errors.ts +167 -0
  1038. package/src/server/file-lock.ts +114 -0
  1039. package/src/server/git-asks.ts +91 -0
  1040. package/src/server/git-host.ts +263 -0
  1041. package/src/server/git-paused.ts +204 -0
  1042. package/src/server/git-settings.ts +88 -0
  1043. package/src/server/git-sync.ts +729 -0
  1044. package/src/server/git.ts +991 -0
  1045. package/src/server/icon-set.ts +56 -0
  1046. package/src/server/instructions.ts +124 -0
  1047. package/src/server/live-mirror.ts +483 -0
  1048. package/src/server/live.ts +275 -0
  1049. package/src/server/machine-update.ts +780 -0
  1050. package/src/server/mcp-handover.ts +147 -0
  1051. package/src/server/mcp.ts +294 -0
  1052. package/src/server/me.ts +68 -0
  1053. package/src/server/next.ts +135 -0
  1054. package/src/server/notices.ts +580 -0
  1055. package/src/server/open-page.ts +192 -0
  1056. package/src/server/own-copies.ts +419 -0
  1057. package/src/server/people.ts +98 -0
  1058. package/src/server/personal-folder.ts +34 -0
  1059. package/src/server/pictures.ts +365 -0
  1060. package/src/server/port.ts +178 -0
  1061. package/src/server/preferences.ts +34 -0
  1062. package/src/server/presence.ts +175 -0
  1063. package/src/server/project-id.ts +17 -0
  1064. package/src/server/project-public.ts +73 -0
  1065. package/src/server/prototype-brief.ts +208 -0
  1066. package/src/server/push-notice.ts +69 -0
  1067. package/src/server/quiet-run.ts +85 -0
  1068. package/src/server/registry.ts +161 -0
  1069. package/src/server/requests.ts +2387 -0
  1070. package/src/server/response-budget.ts +109 -0
  1071. package/src/server/restart.ts +187 -0
  1072. package/src/server/roster.ts +302 -0
  1073. package/src/server/saved.ts +77 -0
  1074. package/src/server/source-stamp.ts +194 -0
  1075. package/src/server/spec-decisions.ts +113 -0
  1076. package/src/server/spec-suggestions.ts +87 -0
  1077. package/src/server/state.ts +287 -0
  1078. package/src/server/stop-studio.ts +44 -0
  1079. package/src/server/studio-for.ts +161 -0
  1080. package/src/server/sync-install.ts +87 -0
  1081. package/src/server/thread-forms.ts +246 -0
  1082. package/src/server/thread-place.ts +160 -0
  1083. package/src/server/thread-source.ts +328 -0
  1084. package/src/server/tools/close-reply.ts +271 -0
  1085. package/src/server/tools/comment.ts +96 -0
  1086. package/src/server/tools/context.ts +179 -0
  1087. package/src/server/tools/describe.ts +53 -0
  1088. package/src/server/tools/feedback.ts +225 -0
  1089. package/src/server/tools/place-frame.ts +167 -0
  1090. package/src/server/tools/prototype-name.ts +50 -0
  1091. package/src/server/tools/reading.ts +271 -0
  1092. package/src/server/tools/result.ts +32 -0
  1093. package/src/server/tools/show.ts +159 -0
  1094. package/src/server/tools/snapshot.ts +114 -0
  1095. package/src/server/tools/thread-list.ts +185 -0
  1096. package/src/server/tools/watch.ts +436 -0
  1097. package/src/server/unresolved-imports.ts +103 -0
  1098. package/src/server/update-branch.ts +226 -0
  1099. package/src/server/update-studio.ts +164 -0
  1100. package/src/server/updates.ts +360 -0
  1101. package/src/server/vite.ts +1186 -0
  1102. package/src/server/web-app.ts +235 -0
  1103. package/src/server/welcome.ts +57 -0
  1104. package/src/server/work-groups.ts +373 -0
  1105. package/src/server/workspace-settings.ts +508 -0
  1106. package/src/server/zip.ts +151 -0
  1107. package/src/setup/apply.ts +802 -0
  1108. package/src/setup/commit-lint.ts +403 -0
  1109. package/src/setup/components.ts +124 -0
  1110. package/src/setup/config-choices.ts +56 -0
  1111. package/src/setup/config-source.ts +660 -0
  1112. package/src/setup/create.ts +1705 -0
  1113. package/src/setup/design-md-setup.ts +319 -0
  1114. package/src/setup/design-md.ts +1293 -0
  1115. package/src/setup/design-system-checks.ts +487 -0
  1116. package/src/setup/design-system-guide.ts +106 -0
  1117. package/src/setup/desktop-app-script.ts +814 -0
  1118. package/src/setup/desktop-app-start.ts +152 -0
  1119. package/src/setup/desktop-app.ts +828 -0
  1120. package/src/setup/detect/workspace.ts +1487 -0
  1121. package/src/setup/detect.ts +552 -0
  1122. package/src/setup/doctor.ts +526 -0
  1123. package/src/setup/existing-setup.ts +567 -0
  1124. package/src/setup/findings.ts +27 -0
  1125. package/src/setup/git-checks.ts +434 -0
  1126. package/src/setup/hints.ts +308 -0
  1127. package/src/setup/host-format.ts +153 -0
  1128. package/src/setup/migrate/agent-files.ts +161 -0
  1129. package/src/setup/migrate/config-name.ts +109 -0
  1130. package/src/setup/migrate/design-system.ts +888 -0
  1131. package/src/setup/migrate/explorations.ts +49 -0
  1132. package/src/setup/migrate/files-folder.ts +470 -0
  1133. package/src/setup/migrate/guides.ts +93 -0
  1134. package/src/setup/migrate/migration.ts +80 -0
  1135. package/src/setup/migrate/migrations.ts +82 -0
  1136. package/src/setup/migrate/people-folders.ts +347 -0
  1137. package/src/setup/migrate/project-files.ts +35 -0
  1138. package/src/setup/migrate/row-titles.ts +56 -0
  1139. package/src/setup/migrate/studio-state.ts +186 -0
  1140. package/src/setup/own-app.ts +442 -0
  1141. package/src/setup/placement.ts +408 -0
  1142. package/src/setup/plan.ts +783 -0
  1143. package/src/setup/project.ts +612 -0
  1144. package/src/setup/prompts.ts +1272 -0
  1145. package/src/setup/provider.ts +180 -0
  1146. package/src/setup/questions.ts +426 -0
  1147. package/src/setup/starters.ts +272 -0
  1148. package/src/setup/templates.ts +280 -0
  1149. package/src/setup/workspace-setup.ts +267 -0
  1150. package/src/setup/write.ts +337 -0
  1151. package/src/shared/agent-prompts.ts +14 -0
  1152. package/src/shared/annotations-core.ts +478 -0
  1153. package/src/shared/avatar-file.ts +22 -0
  1154. package/src/shared/block-merge.ts +271 -0
  1155. package/src/shared/build-settings.ts +22 -0
  1156. package/src/shared/built-pictures.ts +62 -0
  1157. package/src/shared/canvas-core.ts +1408 -0
  1158. package/src/shared/checks.ts +16 -0
  1159. package/src/shared/commands-core.ts +237 -0
  1160. package/src/shared/contributors-merge.ts +93 -0
  1161. package/src/shared/design-system.ts +136 -0
  1162. package/src/shared/devices.ts +292 -0
  1163. package/src/shared/element-steps.ts +99 -0
  1164. package/src/shared/feedback.ts +284 -0
  1165. package/src/shared/file-errors.ts +57 -0
  1166. package/src/shared/fix-prompt.ts +85 -0
  1167. package/src/shared/frame-grids.ts +182 -0
  1168. package/src/shared/front-matter.ts +119 -0
  1169. package/src/shared/generated-sections.ts +185 -0
  1170. package/src/shared/git-core.ts +398 -0
  1171. package/src/shared/icon-sets.ts +23 -0
  1172. package/src/shared/json-style.ts +74 -0
  1173. package/src/shared/listing.ts +13 -0
  1174. package/src/shared/live-core.ts +255 -0
  1175. package/src/shared/live-presence.ts +217 -0
  1176. package/src/shared/markup-prompt.ts +69 -0
  1177. package/src/shared/open-page-core.ts +89 -0
  1178. package/src/shared/page-messages.ts +156 -0
  1179. package/src/shared/page-review.ts +287 -0
  1180. package/src/shared/paste-arrangement.ts +52 -0
  1181. package/src/shared/pasted-image.ts +23 -0
  1182. package/src/shared/people-core.ts +826 -0
  1183. package/src/shared/presence-core.ts +30 -0
  1184. package/src/shared/product.ts +4 -0
  1185. package/src/shared/prototypes-core.ts +450 -0
  1186. package/src/shared/references-core.ts +89 -0
  1187. package/src/shared/removed-views-core.ts +223 -0
  1188. package/src/shared/review-file.ts +216 -0
  1189. package/src/shared/server-page.ts +384 -0
  1190. package/src/shared/signup.ts +103 -0
  1191. package/src/shared/sketch-core.ts +425 -0
  1192. package/src/shared/snapshot-clipboard.ts +139 -0
  1193. package/src/shared/snapshot-images.ts +130 -0
  1194. package/src/shared/spec-quote.ts +153 -0
  1195. package/src/shared/studio-events.ts +215 -0
  1196. package/src/shared/studio-files.ts +131 -0
  1197. package/src/shared/studio-routes.ts +684 -0
  1198. package/src/shared/threads-core.ts +1485 -0
  1199. package/src/shared/unzip.ts +95 -0
  1200. package/src/shared/update-core.ts +126 -0
  1201. package/src/shared/word-diff.ts +163 -0
  1202. package/src/shared/workspace.ts +38 -0
  1203. package/templates/DESIGN.md +0 -0
  1204. package/templates/context/.gitkeep +0 -0
  1205. package/templates/feedback-workflow.md +1 -0
  1206. package/templates/mcp-instructions.md +1 -0
  1207. package/templates/methods/component-examples.md +75 -0
  1208. package/templates/methods/components.md +78 -0
  1209. package/templates/methods/critique.md +54 -0
  1210. package/templates/methods/design-md.md +92 -0
  1211. package/templates/methods/explore.md +101 -0
  1212. package/templates/methods/handoff.md +40 -0
  1213. package/templates/methods/hifi.md +24 -0
  1214. package/templates/methods/review.md +156 -0
  1215. package/templates/rules/always.md +38 -0
  1216. package/templates/rules/canvas.md +307 -0
  1217. package/templates/rules/commands.md +30 -0
  1218. package/templates/rules/prototypes.md +171 -0
  1219. package/templates/rules/scope.md +41 -0
  1220. package/templates/rules/studio.md +89 -0
  1221. package/templates/skills/break/SKILL.md +16 -0
  1222. package/templates/skills/connect-frames/SKILL.md +9 -0
  1223. package/templates/skills/duplicate-and-refine/SKILL.md +9 -0
  1224. package/templates/skills/polish-responsive/SKILL.md +9 -0
  1225. package/templates/skills/remember-as-guideline/SKILL.md +9 -0
  1226. package/templates/skills/remove/SKILL.md +8 -0
  1227. package/templates/skills/tighten-copy/SKILL.md +8 -0
  1228. package/templates/skills/use-design-system/SKILL.md +10 -0
  1229. package/templates/starter-prototype/welcome.tsx +47 -0
  1230. package/templates/starters/standalone/README.md +21 -0
  1231. package/templates/starters/standalone/components.json +25 -0
  1232. package/templates/starters/standalone/gitignore +4 -0
  1233. package/templates/starters/standalone/package.json +24 -0
  1234. package/templates/starters/standalone/tsconfig.json +14 -0
  1235. package/templates/starters/turborepo/README.md +22 -0
  1236. package/templates/starters/turborepo/apps/web/components.json +25 -0
  1237. package/templates/starters/turborepo/apps/web/index.html +12 -0
  1238. package/templates/starters/turborepo/apps/web/package.json +28 -0
  1239. package/templates/starters/turborepo/apps/web/src/app.tsx +44 -0
  1240. package/templates/starters/turborepo/apps/web/src/index.css +5 -0
  1241. package/templates/starters/turborepo/apps/web/src/main.tsx +13 -0
  1242. package/templates/starters/turborepo/apps/web/tsconfig.json +11 -0
  1243. package/templates/starters/turborepo/apps/web/vite.config.ts +11 -0
  1244. package/templates/starters/turborepo/gitignore +5 -0
  1245. package/templates/starters/turborepo/package.json +19 -0
  1246. package/templates/starters/turborepo/packages/ui/components.json +25 -0
  1247. package/templates/starters/turborepo/packages/ui/package.json +33 -0
  1248. package/templates/starters/turborepo/packages/ui/src/hooks/.gitkeep +0 -0
  1249. package/templates/starters/turborepo/packages/ui/tsconfig.json +7 -0
  1250. package/templates/starters/turborepo/tsconfig.json +14 -0
  1251. package/templates/starters/turborepo/turbo.json +19 -0
  1252. package/templates/starters/vite/README.md +18 -0
  1253. package/templates/starters/vite/components.json +25 -0
  1254. package/templates/starters/vite/gitignore +4 -0
  1255. package/templates/starters/vite/index.html +12 -0
  1256. package/templates/starters/vite/package.json +32 -0
  1257. package/templates/starters/vite/src/app.tsx +43 -0
  1258. package/templates/starters/vite/src/components/ui/attachment.tsx +207 -0
  1259. package/templates/starters/vite/src/components/ui/badge.tsx +51 -0
  1260. package/templates/starters/vite/src/components/ui/button.tsx +57 -0
  1261. package/templates/starters/vite/src/components/ui/card.tsx +102 -0
  1262. package/templates/starters/vite/src/components/ui/dialog.tsx +157 -0
  1263. package/templates/starters/vite/src/components/ui/dropdown-menu.tsx +264 -0
  1264. package/templates/starters/vite/src/components/ui/field.tsx +236 -0
  1265. package/templates/starters/vite/src/components/ui/input-group.tsx +156 -0
  1266. package/templates/starters/vite/src/components/ui/input.tsx +19 -0
  1267. package/templates/starters/vite/src/components/ui/label.tsx +17 -0
  1268. package/templates/starters/vite/src/components/ui/native-select.tsx +61 -0
  1269. package/templates/starters/vite/src/components/ui/popover.tsx +89 -0
  1270. package/templates/starters/vite/src/components/ui/separator.tsx +22 -0
  1271. package/templates/starters/vite/src/components/ui/spinner.tsx +14 -0
  1272. package/templates/starters/vite/src/components/ui/switch.tsx +31 -0
  1273. package/templates/starters/vite/src/components/ui/textarea.tsx +17 -0
  1274. package/templates/starters/vite/src/components/ui/toggle-group.tsx +89 -0
  1275. package/templates/starters/vite/src/components/ui/toggle.tsx +42 -0
  1276. package/templates/starters/vite/src/index.css +130 -0
  1277. package/templates/starters/vite/src/lib/utils.ts +1 -0
  1278. package/templates/starters/vite/src/main.tsx +13 -0
  1279. package/templates/starters/vite/tsconfig.json +15 -0
  1280. package/templates/starters/vite/vite.config.ts +11 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Connor Forsyth
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,526 @@
1
- # Temporary Holding Version
1
+ # Dex Canvas
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Dex as a package, `@dexhq/canvas`: the app, the canvas, the dev server and
4
+ the `dex` CLI. A project installs it, owns its content, and upgrades when
5
+ it likes, the way Storybook works.
6
+
7
+ ## Quick start
8
+
9
+ ```sh
10
+ npm create dex@latest # finds your components, wires up your agent
11
+ npm run studio # http://localhost:3008
12
+ npx playwright install chromium # once, for `dex snapshot`
13
+ ```
14
+
15
+ `dex snapshot` screenshots every frame of a prototype in light and dark,
16
+ so an agent can look at its own work. It drives Playwright's Chromium, which
17
+ a fresh install does not have yet: install it once with
18
+ `npx playwright install chromium`. Until you do, `dex snapshot` stops and
19
+ names that command, and `dex doctor` warns about it.
20
+
21
+ Then open **Quick start** in the studio and click through it:
22
+
23
+ 1. **Add yourself**, so prototypes and comments carry your name.
24
+ 2. **Write the team's instructions** on the Instructions page. They are
25
+ `DESIGN.md`, edited as rich text; your agent gets every edit with your
26
+ next message. Design tokens in YAML front matter (Google's DESIGN.md
27
+ format) show above the editor, read-only, and are kept exactly as written.
28
+ A DESIGN.md the design system links from elsewhere (`designSystem.guide`)
29
+ is listed too, as "Design system guide" with its path, read-only.
30
+ 3. **Connect your agent.** Pick Claude Code, Codex, Cursor, GitHub Copilot
31
+ or OpenCode and click Add MCP config: the studio writes its MCP server
32
+ into that agent's own config, and only then. Open <agent> starts it in a
33
+ Terminal window where agents start (Claude Code listening to the studio),
34
+ and Open terminal here opens a plain one there; away from a Mac, each
35
+ gives the command to copy. Make it your default agent, and wherever you
36
+ ask an agent while none is connected, the studio offers to open it. The
37
+ choice is yours, in `~/.config/dex/preferences.json`, never committed.
38
+ 4. **Create a prototype** with New prototype. You get a folder, a first view
39
+ and a canvas.
40
+ 5. **Review it.** On the canvas, comment on anything (C), measure it (M), or
41
+ click a dashed cell to ask for a new view. With Watch on, new comments
42
+ reach a listening Claude Code, or any agent asked to watch the studio, as
43
+ they are posted; turned off, they wait. It resolves each thread
44
+ with what changed.
45
+
46
+ ## Feedback between people and agents
47
+
48
+ Every comment is a thread in the prototype's `comments/` folder (one file per
49
+ thread, so teammates never conflict in git), tracked until it
50
+ is resolved or dismissed, and committed with the prototype.
51
+
52
+ - **For the agent or for people.** Threads for the agent are work: agents
53
+ watching the studio pick them up, say when they start and resolve them with
54
+ what changed. Threads for people are a discussion agents leave alone. Hand a
55
+ thread over either way at any time. Requests for new views are always for
56
+ the agent.
57
+ - **Questions come back to you.** When an agent replies with a question, the
58
+ thread shows as waiting for you: on its pin, in the canvas's Comments panel,
59
+ on the Feedback page and beside Feedback in the sidebar. Answer it and the
60
+ agent picks it up again.
61
+ - **Snapshots.** The browser extension copies any element from any page
62
+ (including localhost and pages behind a login), with its styles,
63
+ animations and the menus it opens; paste it
64
+ on a canvas as a view to iterate on, which reflows as its frame is resized.
65
+ `npx dex extension` installs it. Frames copied in Figma paste onto the
66
+ canvas the same way, from Figma's own data: auto layout as flexbox, text,
67
+ vectors, components and variables.
68
+ - **Reactions and who it is for.** React to any message, and choose in the
69
+ composer whether a comment is for the agent or for people.
70
+ - **Agents comment too.** With `comment` an agent pins notes to the
71
+ element they are about, for example each finding of a critique.
72
+ - **On the canvas.** Pins sit on their element and follow it, the open
73
+ thread's element is outlined, a note appears when an agent answers, and
74
+ `/files/<slug>/canvas?thread=<id>` opens a thread where it is.
75
+
76
+ The MCP tools for threads are `threads`, `watch`,
77
+ `close`, `reply` and `comment`; without MCP, `dex
78
+ threads` and `dex thread` do the same from the command line.
79
+
80
+ ## The canvas
81
+
82
+ A canvas is made of sections, each laid out as a grid. Steps run left to
83
+ right; rows below the first are iterations of the section: states, errors,
84
+ alternatives, other sizes. Frames snap into cells when dragged, so nothing
85
+ overlaps and every state stays on show. See `templates/rules/canvas.md`.
86
+
87
+ ## Cloud workspaces (Team plan)
88
+
89
+ A studio on its own keeps comments in each prototype's `comments/` folder. Link it
90
+ to a cloud workspace and they live there instead, shared by every teammate's
91
+ studio and every teammate's agent within a few seconds. Views, canvases and
92
+ instructions stay in git.
93
+
94
+ ```sh
95
+ npx dex cloud link --workspace <slug> [--url <service url>] # writes studio.cloud.json; commit it
96
+ npx dex cloud login --token <token> [--url <service url>] # token from the workspace's settings, Tokens
97
+ npx dex cloud push # bring existing comment threads
98
+ npx dex cloud publish # host the studio at <service>/s/<slug>/
99
+ ```
100
+
101
+ `STUDIO_CLOUD_TOKEN` overrides the stored token, for CI and hosted agents. The
102
+ service holds workspaces, members and roles (viewers are free), tokens and
103
+ the published studio.
104
+
105
+ ### Pages from the host
106
+
107
+ Whoever serves the studio for others can add pages of its own to the sidebar,
108
+ such as a cloud workspace's settings, opened inside the studio. The page they
109
+ serve carries a tag:
110
+
111
+ ```html
112
+ <meta name="studio-host" content='{"name":"Acme design","pages":[{"id":"settings","label":"Workspace settings","url":"https://studio.example.com/app/acme/settings"}]}'>
113
+ ```
114
+
115
+ Each page shows under the `name` group at `/host/<id>`, framed, with the
116
+ studio's theme as `?theme=light` or `dark` on its address. `dex dev`
117
+ writes the tag from `STUDIO_HOST_PAGES` (the same JSON). A studio you run
118
+ yourself has no tag, so it shows no such pages.
119
+
120
+ ## Add a studio to a project
121
+
122
+ ```sh
123
+ npm create dex@latest
124
+ ```
125
+
126
+ `pnpm create dex`, `yarn create dex` and `bun create dex` work too;
127
+ with npm, flags go after `--` (`npm create dex@latest -- --yes`). It runs
128
+ `dex create` from `@dexhq/canvas`, which `npx @dexhq/canvas create` runs
129
+ directly.
130
+
131
+ Run it where the project's `package.json` is, or anywhere in a workspace
132
+ (monorepo). In an empty folder it starts a new project from the shadcn
133
+ starter instead (Vite, React and shadcn on Base UI, with every component the
134
+ studio's own interface uses), then sets the studio up in it the same way. It
135
+ says what it does at each step:
136
+
137
+ 1. **Looks.** It finds the project's own components, so prototypes use them
138
+ instead of new copies: from `components.json` (here or in any workspace
139
+ package) or the usual folders (`components/ui`, `src/components`…).
140
+ Components can be files (`button.tsx`, `Button.tsx`) or folders with an
141
+ index file. It finds the global stylesheet (tokens, fonts, Tailwind), the
142
+ agents you use (Claude Code, Codex, Cursor, GitHub Copilot, OpenCode) and
143
+ the package manager (`packageManager` or the lockfile). MUI, Mantine,
144
+ Chakra, Ant Design and Radix Themes are read from dependencies; Mantine,
145
+ Chakra and Radix Themes also need a provider around every view (below).
146
+ Each finding says where it came from (`components.json → aliases.ui`).
147
+ 2. **Asks.** In a terminal it confirms the components, the styles, whether
148
+ the studio's own buttons and menus should be built from your components
149
+ (shadcn on Base UI only), the provider when the design system needs one,
150
+ how `DESIGN.md` starts (below) and which agents to connect. "Yes" is first each time; "No" lets you pick another folder or
151
+ file, and shows how prototypes will import it. If it cannot tell, it asks
152
+ for the import.
153
+ 3. **Plans.** It lists every file it will create or edit and every command it
154
+ will run, then asks "Go ahead?". `--dry-run` stops here.
155
+ 4. **Writes** `dex.config.ts` with the choices made, and nothing your
156
+ project's own files say (components.json, a package's name and exports,
157
+ the defaults): Dex reads those on every start. `studio/` gets
158
+ `DESIGN.md` (drafted, imported or empty; below), a `tsconfig.json` that
159
+ extends your project's, so views import through its `paths` and
160
+ `baseUrl` as they are on any day, its own `.gitignore` (the studio's
161
+ `.studio/` state and comments' temporary files) and, for a design system
162
+ that needs one, `provider.tsx`. `package.json` gets one `studio` script;
163
+ your own `.gitignore` is left alone. Each agent's config (for Claude Code
164
+ the hooks and the MCP server in `.mcp.json`), and two lines in the root
165
+ `AGENTS.md` (or `CLAUDE.md`), when there is one, saying prototypes live in
166
+ `studio/`. `contributors.json` and `files/` are made when the studio
167
+ first starts. Codex's server goes in `.codex/config.toml`. It never overwrites a
168
+ file of yours, and stops if the studio folder has an `AGENTS.md` it did not write.
169
+ 5. **Installs** `@dexhq/canvas` with your package manager, showing its
170
+ output (`npm i -D @dexhq/canvas`). A studio linked into the project
171
+ (`bun link`) is kept, not installed from npm.
172
+ 6. **Checks** the setup with `dex doctor` and prints what to do next,
173
+ with the command that repeats the same setup without questions.
174
+
175
+ Run it again where a studio is set up (in a workspace, any package's) and
176
+ it plans only what differs from what this version writes, as `storybook
177
+ automigrate` does. The choices come from `dex.config.ts` first, then flags,
178
+ then what it finds. Facts the project's files say are dropped from
179
+ `designSystem`, only where the design system resolves the same without them;
180
+ `ui.icons` and `plugins: [next()]` are added; a studio `tsconfig.json` that
181
+ copies the project's paths extends its tsconfig instead; a file, an agent's
182
+ config or the install an earlier run left out is made; and a `@dexhq/canvas`
183
+ range too old for what it writes is raised. The config keeps its other keys,
184
+ comments and formatting. What an older setup added to the project's own files
185
+ (`.gitignore` lines, the `studio:build` and `studio:claude` scripts) stays,
186
+ and the plan says so in a `note`; `DESIGN.md`, `provider.tsx`,
187
+ `contributors.json` and files are never touched. It asks "Go ahead?" once;
188
+ `--yes` takes it, and a second run plans nothing.
189
+
190
+ ### DESIGN.md
191
+
192
+ `DESIGN.md` tells agents your design language. It is written in Google's
193
+ DESIGN.md format (`@google/design.md`): tokens in YAML front matter, then
194
+ sections. Setup finds any DESIGN.md already there (in the project and its
195
+ `docs/`, the workspace root, and the package that holds your components)
196
+ and offers four starts (`--design-md`):
197
+
198
+ - **A draft from your design system** (`draft`, recommended, the default even
199
+ when one exists). Tokens come from the chosen stylesheet and the project's
200
+ own files it `@import`s (`:root`, `.dark` and `@theme` custom properties,
201
+ colours converted to hex), and the component list from the components
202
+ folder, each with its import. It writes Colors, Typography, Layout, Shapes
203
+ and Components from those facts only: no placeholder text, no guesses. Values
204
+ the format cannot hold (`calc()`, a font a loader sets at runtime) are
205
+ listed in prose. Then ask your agent "Finish DESIGN.md with me": it follows
206
+ `methods/design-md.md`, asks you a few questions, writes the rest and runs
207
+ the format's linter. `--dry-run` shows what the draft would hold.
208
+ - **An existing DESIGN.md, linked** (a path inside the repository, such as
209
+ `--design-md ./DESIGN.md`). It goes into the config as
210
+ `designSystem.guide`, not copied: the design system owns it. The studio's
211
+ own `DESIGN.md` starts empty, for the team's prototyping instructions.
212
+ `brief` names the guide for agents to read, the Claude hook says
213
+ when it changes, and the Instructions page shows it read-only.
214
+ - **A file or URL to import** (a path outside the repository, or
215
+ `https://…`): copied into the studio's `DESIGN.md`, for example a template
216
+ or a Stitch export. It warns when the front matter does not parse.
217
+ - **Nothing for now** (`none`): an empty `DESIGN.md`.
218
+
219
+ ### In a workspace (Turborepo, pnpm, npm, Bun or Yarn workspaces, Nx)
220
+
221
+ It finds the workspace root from wherever you run it (`pnpm-workspace.yaml`,
222
+ `workspaces` in `package.json`, `turbo.json`, `nx.json`), its package
223
+ manager from the root, its packages and which of them hold components, and
224
+ asks where the studio goes:
225
+
226
+ - **Its own app, `apps/studio`**, when the components are in a shared
227
+ package (`packages/ui`). It depends on that package as your apps do
228
+ (`workspace:*`, or `*` with npm), with React's version copied from an app
229
+ that uses it, so prototypes import `@acme/ui/components/button` with no
230
+ path rewriting.
231
+ - **Inside the app that has them** (`apps/web/studio`), when the components
232
+ live in one app only, behind its `@/` aliases. Run from another app, it
233
+ still recommends the app that has them, and offers yours next with a
234
+ warning that it could not import them.
235
+ - **You choose**, when they are in several apps and no shared package:
236
+ without a terminal it exits with code 2 and lists `--in apps/web`,
237
+ `--in apps/admin`.
238
+ - Run from inside an app that has components, or when no package has any:
239
+ inside that app first.
240
+
241
+ `--app <name>` (its own app, `apps/<name>`) or `--in <package>` (inside a
242
+ package, by folder or name) decides without asking.
243
+
244
+ For its own app it writes `apps/studio/package.json` (scripts `dev`,
245
+ `preview` and `studio:build`: no `build`, which `pnpm -r build` or turbo's
246
+ build would run with the repo's own), `dex.config.ts` (its content folder is the app's
247
+ own, the default), a `tsconfig.json` that extends the workspace's shared one (a
248
+ `*typescript-config*` package, `tsconfig.base.json`, or a root
249
+ `tsconfig.json` of options only) and the studio's files. At the root it adds
250
+ a `studio` script (`turbo run dev --filter=@acme/studio` with Turborepo, else
251
+ `pnpm --filter`, `bun run --filter`, `npm run -w` or `yarn workspace`).
252
+ `turbo.json` is left alone; `apps/studio/turbo.json`
253
+ is written only when the root has no persistent `dev` task, or its `dev`
254
+ does not build dependencies first while the design system package has a
255
+ build. It warns when the shared package's components import with its own
256
+ aliases (`@/lib/utils`), which another app cannot resolve. Inside an app, it
257
+ adds the `studio` script and `@dexhq/canvas` to that app's `package.json` and
258
+ the `studio` script at the root.
259
+
260
+ Either way the agents' configs (`.mcp.json`, `.claude/settings.json`, the
261
+ skill) go at the workspace root, where agents start, pointing at the studio
262
+ (`--root apps/studio`), and the hooks and MCP server run the `dex`
263
+ command from wherever the install puts it: with the project's own runner
264
+ (`pnpm exec dex`, `yarn dex`, `bun x dex` or `npx dex`) where it is
265
+ at the root, and by its path in the app where the package manager keeps it
266
+ there (pnpm, Bun). Setup's next steps and `doctor`'s fixes name the same
267
+ runner, and the brief tells agents to read the rules' `npx dex` as it. It
268
+ installs once, from the root, with the root's package manager (`bun
269
+ install`). Then `bun run studio` at the root starts it.
270
+
271
+ Every question has a flag, so agents and CI can run it without a terminal:
272
+
273
+ | Flag | Answers |
274
+ | --- | --- |
275
+ | `[folder]` | Where: the project, or a new one (default: here) |
276
+ | `--app <name>` \| `--in <package>` | In a workspace: its own app, `apps/<name>`, or inside a package |
277
+ | `--components <folder>` \| `none`, `--shadcn` | The components; `--shadcn` sets up shadcn first |
278
+ | `--import <specifier>` | How prototypes import them, when it cannot tell |
279
+ | `--styles <file>` \| `none` | The global stylesheet |
280
+ | `--primitives`, `--no-primitives` | The studio's own interface from your components |
281
+ | `--icons lucide\|phosphor\|hugeicons` | The icon set the interface draws with (`ui.icons`, always written). Default: `components.json`'s `iconLibrary`, else the set in your dependencies, else Lucide. Lucide comes with Dex; Phosphor and Hugeicons are optional peers, which setup installs when the project lacks them |
282
+ | `--provider <module>` \| `none` | What wraps every view (`designSystem.provider`): your own module, or none. Default: for Mantine, Chakra UI (its version decides which provider) or Radix Themes, a `provider.tsx` it writes in the studio's folder; otherwise none |
283
+ | `--design-md draft` \| `none` \| `<path>` \| `<url>` | How `DESIGN.md` starts: a draft (default), empty, a file in the repository linked as the design system's guide, or a file or URL copied in |
284
+ | `--agent <ids>` \| `none` | The agents: `claude,codex,cursor,copilot,opencode` |
285
+ | `--dir <folder>` | The studio's folder in a project or app (default `studio`) |
286
+ | `--pm bun\|pnpm\|yarn\|npm` | The package manager (default: the project's) |
287
+ | `--studio <spec>`, `--skip-install` | Install from elsewhere (`file:./dexhq-canvas-0.2.0.tgz`, `^0.2.0`), or not at all |
288
+ | `-y, --yes` | Take what it finds, asking nothing |
289
+ | `--dry-run` | Show the plan and write nothing |
290
+ | `--json` | One JSON object per line |
291
+
292
+ Without a terminal (a pipe, CI, an agent) or with `--yes`, it takes what it
293
+ found and prints each choice beside its flag, warning about a guess (the
294
+ components in `src/components`, beside the app's own). When nothing it found
295
+ is safe to take, such as components in two folders and nothing to say which,
296
+ it writes nothing and exits with code 2, listing the flags to choose with.
297
+ `--dry-run` goes on with the first choice instead, to show the rest.
298
+
299
+ With `--json`, each line is one event, `step` first. What it isn't sure of
300
+ is a `question`, each choice with the exact flags that answer it, so an
301
+ agent asks the person, runs it again with those flags, and gets no
302
+ questions. A `hint` is for the agent's part: a provider the design system
303
+ exports, components that aren't React, a Tailwind 3 config.
304
+
305
+ ```json
306
+ {"step":"detect","key":"components","value":{"folder":"src/components/ui","import":"@/components/ui","count":12},"evidence":"components.json → aliases.ui","confidence":"certain"}
307
+ {"step":"decide","key":"components","value":{"folder":"src/components/ui","import":"@/components/ui"},"source":"components.json → aliases.ui","flag":"--components"}
308
+ {"step":"question","key":"icons","question":"Which icon set should Dex's interface draw with?","choices":[{"value":"phosphor","label":"Phosphor","flags":["--icons","phosphor"]},{"value":"hugeicons","label":"Hugeicons","flags":["--icons","hugeicons"]}],"default":"phosphor","flag":"--icons"}
309
+ {"step":"hint","key":"provider","message":"@primer/react exports BaseStyles and ThemeProvider: if its components need them, wrap every view in them with a provider module (designSystem.provider).","evidence":"node_modules/@primer/react/lib/index.d.ts"}
310
+ {"step":"plan","action":"create","path":"dex.config.ts","detail":"design system acme, scanned from src/components/ui"}
311
+ {"step":"write","action":"create","path":"dex.config.ts"}
312
+ {"step":"run","command":"npm i -D @dexhq/canvas","status":"done"}
313
+ {"step":"check","level":"ok","message":"Node 22.19.0"}
314
+ {"step":"done","ok":true,"installed":true,"next":["…"]}
315
+ ```
316
+
317
+ | `step` | Fields |
318
+ | --- | --- |
319
+ | `detect` | `key` (`studio` where one is set up: `{config, content}`; `workspace`, `components`, `styles`, `primitives`, `icons`, `designMd`, `agents`, `packageManager`, and `provider` when the design system needs one: `{library, component}`), `value`, `evidence`, `confidence` (`certain`, `likely`, `guess`) |
320
+ | `decide` | `key` (those, `dir`, and `placement` in a workspace: `{kind, folder, name}` or `{kind, folder, package}`), `value`, `source` (the flag, or the evidence), `flag`, `warning` for a guess. `designMd`'s value is `{kind: "draft", summary}` (counts of colours, typography, radii, spacing and components, the sections and the stylesheets), `{kind: "link", file}`, `{kind: "import", from, lines, problem}` or `{kind: "none"}`. `provider` (when the design system needs one, or `--provider` names one) is `{kind: "write", file, component}`, `{kind: "module", module}` or `"none"` |
321
+ | `question` | A decision it took without being sure: `key` (`components`, `styles`, `icons`, `designMd`, `packageManager` or `placement`), `question` (one sentence), `choices` (what it found, plus `none` where that is an answer: each `{value, label, evidence, flags}`, `flags` the exact arguments that answer with it), `default` (the `value` it takes; left out when no choice is safe, and then a run that writes stops with code 2), `flag` |
322
+ | `hint` | For the agent's part, changing nothing setup does: `key` (`provider`: a provider or theme the design system exports; `framework`: components that are Svelte, Vue, Lit or Astro; `tailwind`: a Tailwind 3 config views get; `next`: `next()` written), `message`, `evidence` |
323
+ | `plan` | `action` (`create`, `edit`, `run`, `ask`, or `note` for what it leaves in your own files), `path` or `command`, `detail`: on a set-up studio, only what differs |
324
+ | `write` | `action`, `path` |
325
+ | `run` | `command`, `status` (`start`, `done`, `failed`) |
326
+ | `check` | `level` (`ok`, `note`, `warn`, `fail`), `message`, `fix` |
327
+ | `done` | `ok`; `dryRun`, `installed`, `designMd` (`{kind, written}`), `next`; `changed: false` when a set-up studio needed nothing; or `exitCode`, `message` and `choices` when it needs a choice |
328
+
329
+ `dex init` still works, with its old flags, as `dex create` here.
330
+
331
+ `npx dex agents add <agent>` adds the studio to an agent later, as the
332
+ studio's "Add MCP config" button does.
333
+
334
+
335
+ `npx dex doctor` checks the setup and says how to fix what is wrong
336
+ (`--json` for one JSON object per check).
337
+
338
+ ## The CLI
339
+
340
+ `npx dex --help` lists the commands, and `npx dex <command> --help`
341
+ one command's options. An unknown flag is an error that names the nearest
342
+ one (`--breif`: "Did you mean --brief?"). Without a terminal (an agent, CI,
343
+ a pipe) the CLI asks nothing and prints plain lines without colour.
344
+ `dex claude` passes every argument after it to Claude Code. It needs
345
+ Node 20.12 or later.
346
+
347
+ ## What the project owns
348
+
349
+ Everything in the content folder: prototypes, `DESIGN.md`, contributors, and
350
+ any rules and methods of its own. The design system is set in
351
+ `dex.config.ts`; the studio imports components through the project's own
352
+ `tsconfig` paths, so a prototype imports `@/components/ui/button` exactly as
353
+ the app does.
354
+
355
+ The studio keeps its own state in `studio/.studio/`: presence, `studio
356
+ snapshot` screenshots, the Watch switch, the prototype you have open, the
357
+ agents connected over MCP, the stylesheet it generates and Vite's cache. It
358
+ is machine-local and gitignored, and deleting it loses nothing that matters
359
+ (Watch turns back on and the open prototype is forgotten). Its `README.md`
360
+ says what each file is, who writes it and how long it lasts.
361
+
362
+ ```ts
363
+ import { defineConfig } from "@dexhq/canvas/config";
364
+
365
+ export default defineConfig({
366
+ content: "./studio",
367
+ designSystem: {
368
+ name: "Acme UI",
369
+ // Scanned on every start: a new component file is listed for agents
370
+ // without setting anything up again.
371
+ components: { folder: "./src/components/ui", import: "@/components/ui" },
372
+ styles: ["./src/index.css"], // Tailwind is added first if this lacks it
373
+ provider: "./src/studio-provider.tsx", // wraps every view: themes, global setup
374
+ },
375
+ ui: { primitives: true }, // the studio's buttons and menus are yours
376
+ plugins: [], // next() in a Next app; StyleX, vanilla-extract…
377
+ vite: (config) => ({ ...config, define: { __FLAG__: "true" } }),
378
+ });
379
+ ```
380
+
381
+ What `designSystem` leaves out is read from the project's own files on
382
+ every start, and a value written in it wins. A shadcn `components.json`
383
+ gives the components, the stylesheet, the styling and the marker, so a
384
+ shadcn app's config can be `ui` alone. `components` can also name a package
385
+ whose entry exports them (`components: "@primer/react"`): its components are
386
+ listed from what it exports, and views import them from it. With Tailwind 3,
387
+ views get your `tailwind.config`'s theme; with a design system not styled
388
+ with Tailwind, they get Tailwind's utilities without its reset.
389
+
390
+ In a Next app, `create` writes `plugins: [next()]`, imported from
391
+ `@dexhq/canvas/next`, and nothing else about Next. It gives views what Next's
392
+ bundler gives the app's components: `process.env`, `next/link`, an `<img>`
393
+ for `next/image`, `next/font` with no font files, and a router for
394
+ `next/navigation` and `next/router` whose moves go nowhere. A config from
395
+ before it has none, and `dex dev` applies it in a Next app anyway.
396
+
397
+ `designSystem.provider` is a module whose default export wraps every
398
+ prototype view wherever it renders: the canvas, Play, a view opened on its
399
+ own and a built studio. Put what your components need around them there,
400
+ such as `MantineProvider` or MUI's `ThemeProvider` with your theme:
401
+
402
+ ```tsx
403
+ // src/studio-provider.tsx
404
+ import "@mantine/core/styles.css"; // Mantine 7 and later
405
+ import { MantineProvider } from "@mantine/core";
406
+ import type { ReactNode } from "react";
407
+ import { theme } from "./theme";
408
+
409
+ export default function Provider({ children }: { children: ReactNode }) {
410
+ return <MantineProvider theme={theme}>{children}</MantineProvider>;
411
+ }
412
+ ```
413
+
414
+ It can be a package's module instead (`"@acme/ui/provider"`). Without one,
415
+ views render as they are, with nothing around them. `npx dex doctor`
416
+ checks that the module is there and has a default export, and agents are
417
+ told views are wrapped already, so they never wrap them again.
418
+
419
+ The config is checked when it loads, and a mistake names its path
420
+ (`designSystem.components.folder`). Agents read what views may import from
421
+ `brief`; `npx dex components --json` lists the components. The studio no longer reads `design-system/index.ts`, the
422
+ adapter older versions wrote: a studio that still has one has no design
423
+ system until `npx dex upgrade` moves it into the config, and
424
+ `npx dex doctor` fails until then (see Upgrading).
425
+
426
+ ## Upgrading
427
+
428
+ The studio is one versioned package, like Storybook: update `@dexhq/canvas`
429
+ with your package manager and the app, canvas, CLI, and the rules and methods
430
+ agents follow all update with it. `AGENTS.md` is regenerated from the installed
431
+ version whenever the studio starts. A file in your studio's `rules/` or
432
+ `methods/` replaces the installed one of the same name.
433
+
434
+ A studio set up by an older version runs `npx dex upgrade` once
435
+ (`--dry-run` first shows what would change, writing nothing). It is safe to
436
+ run again:
437
+
438
+ - **The config** is renamed from `studio.config.ts`, its name before Dex,
439
+ to `dex.config.ts` (any extension). Until then the studio reads the old
440
+ name, and `npx dex doctor` says so.
441
+ - **The design system** moves from `design-system/index.ts` into
442
+ `designSystem` in `dex.config.ts`. The studio no longer reads
443
+ `index.ts`, so until then it has no design system, and
444
+ `npx dex doctor` fails. A component list `init` wrote becomes
445
+ the folder it came from (what people wrote about each goes in `about`), a
446
+ `styles.css` that only imports becomes `styles`, `chromeTheme` moves to
447
+ `ui.chromeTheme`, and the foundations, guidance and contributing notes people
448
+ wrote become sections of `DESIGN.md`. `index.ts` and its README are deleted,
449
+ and the content `tsconfig.json` loses the adapter's paths. A config not
450
+ written as `export default defineConfig({ … })` is left alone: upgrade
451
+ prints what to add, writes nothing and exits with code 2.
452
+ - **The studio's state.** Studios from before `.studio/` held presence
453
+ (`.presence.json`) and snapshots (`.snapshots/`) beside it, each with a
454
+ `.gitignore` line. The old lines become the one `.studio/` line, the old
455
+ presence file goes, and snapshots move into `.studio/snapshots/`.
456
+ `npx dex doctor` warns until this is done.
457
+ - **Rules and methods** copied in before versioned rules (the studio has
458
+ `studio.lock.json`): the copies nobody edited are removed, and edited ones
459
+ kept as your own.
460
+
461
+ ## Working on the package
462
+
463
+ - `app/` is the studio UI. It ships as source and compiles inside each
464
+ project, so it imports project files only through aliases:
465
+ - `@studio-content`
466
+ - `@studio-entry.css` (the interface's stylesheet)
467
+ - `@studio-frame.css` (the frame page's: the design system's CSS)
468
+
469
+ It has two pages. `index.html` is the interface. `frame.html` shows one
470
+ view, at `/frame.html#/files/<slug>/views/<view>?<params>`,
471
+ and has its own bundle with none of the interface (`app/frame/`). Canvas
472
+ frames, Play and thumbnails load it. Its router keeps its place in memory,
473
+ and links in a view go only to the prototype's other views or to other
474
+ sites (`frame/frame-links.ts`).
475
+
476
+ and reads the config through virtual modules: `virtual:studio-ui` (the
477
+ `ui` settings), `virtual:studio-design-system` (the design system's
478
+ name and components) and `virtual:studio-provider` (what wraps every view:
479
+ `designSystem.provider`'s default export, or a passthrough).
480
+ - `src/` is the CLI (`src/cli/main.ts`), setup, the dev server and the
481
+ shared cores, built into `dist/` (`bun run build`). Its layout and rules
482
+ are in the repository's `CONTRIBUTING.md`.
483
+ - `templates/` holds the agents' guide, rules and methods (read from the
484
+ installed package, never copied), what `create` writes once when it is
485
+ missing (`DESIGN.md`, `CLAUDE.md`), and the starters `create` copies for a
486
+ new project (`starters/`: `vite`, `standalone` and `turborepo`; the shadcn
487
+ components are kept once, in `vite`, and the others take them from there),
488
+ with the first prototype in `starter-prototype/`.
489
+ - The interface's buttons, menus and dialogs (`app/ui/shadcn`) are stock
490
+ shadcn on Base UI (Vega style, Hugeicons), and its theme is plain shadcn
491
+ neutral with Inter: the studio's own look, never the design system's.
492
+ `node scripts/interface-components.mjs` brings them back to stock. A
493
+ project's own Base UI components replace them with `ui.primitives`.
494
+ - Icons (`app/icons`): one vocabulary of names (lucide's, which shadcn uses)
495
+ and a set per library in `sets/`, each drawing every name. `ui.icons`
496
+ picks the set and only it is bundled. To add an icon, add its name to
497
+ `names.ts` and draw it in every set; TypeScript lists any set missing it.
498
+ - Languages (`app/i18n`): Lingui. Write interface text with its macros
499
+ (`<Trans>`, t`…`, msg`…`), then `npm run i18n --workspace dex`
500
+ to extract and compile the catalogs in `app/i18n/locales` (committed).
501
+ `pseudo` is a test locale: `?locale=pseudo` shows any text left out.
502
+ - `examples/shadcn-starter` in this repository is the first consumer: the
503
+ shadcn starter as `create` makes it. Run it with `bun run shadcn-starter`
504
+ from the repository root.
505
+
506
+ Keep the interface quiet. No eyebrows, no all-caps labels and no monospace.
507
+
508
+ ```sh
509
+ bun run test # src/ and app/, on Vitest (vitest.config.ts at the root)
510
+ bun run typecheck
511
+ ```
512
+
513
+ To try the package the way people install it, from the repository root:
514
+
515
+ ```sh
516
+ npm run studio:playground # pack it, create ~/studio-playground with it
517
+ npm run studio:playground -- --update # repack after a change
518
+ npm run studio:playground -- --fresh # start again
519
+ npm run studio:playground -- /tmp/turbo --template turborepo --pm bun
520
+ # another starter, package manager
521
+ ```
522
+
523
+ It packs `@dexhq/canvas` exactly as `npm publish` would and creates a brand-new
524
+ project from a starter (the Vite + React app by default) that installs that
525
+ package, so it catches what only shows outside the monorepo (missing files,
526
+ dependencies, paths).