@dexhq/canvas 0.14.0 → 0.16.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 (451) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +5 -3
  3. package/app/canvas/activity-parts.tsx +50 -6
  4. package/app/canvas/activity.tsx +10 -18
  5. package/app/canvas/agent-changes.ts +18 -8
  6. package/app/canvas/anchoring.ts +15 -7
  7. package/app/canvas/canvas-context.tsx +6 -2
  8. package/app/canvas/canvas-input.ts +186 -14
  9. package/app/canvas/canvas-keys.ts +9 -0
  10. package/app/canvas/canvas-model.ts +7 -44
  11. package/app/canvas/canvas-panels.ts +1 -17
  12. package/app/canvas/canvas-scene.ts +250 -27
  13. package/app/canvas/canvas-ui.ts +13 -3
  14. package/app/canvas/canvas.css +147 -29
  15. package/app/canvas/change-notice.tsx +10 -1
  16. package/app/canvas/comment-layer.tsx +2 -1
  17. package/app/canvas/comments.tsx +270 -111
  18. package/app/canvas/element-link.ts +135 -0
  19. package/app/canvas/element-picker.ts +223 -27
  20. package/app/canvas/engine/canvas-gestures.ts +72 -17
  21. package/app/canvas/engine/canvas-store.ts +17 -1
  22. package/app/canvas/engine/engine.css +6 -3
  23. package/app/canvas/export-dialog.tsx +265 -0
  24. package/app/canvas/find-bar.tsx +817 -0
  25. package/app/canvas/find-model.ts +135 -0
  26. package/app/canvas/flow-canvas.tsx +83 -16
  27. package/app/canvas/follow-pin.ts +26 -6
  28. package/app/canvas/frame-context-menu.tsx +61 -7
  29. package/app/canvas/frame-node.tsx +19 -20
  30. package/app/canvas/imported-reviews.tsx +12 -22
  31. package/app/canvas/layout.ts +68 -22
  32. package/app/canvas/linked-element.tsx +196 -0
  33. package/app/canvas/live-page.ts +156 -19
  34. package/app/canvas/mentions.tsx +209 -0
  35. package/app/canvas/page-find.ts +220 -0
  36. package/app/canvas/page-style.ts +23 -0
  37. package/app/canvas/picked-box.tsx +21 -0
  38. package/app/canvas/removed-views-panel.tsx +4 -4
  39. package/app/canvas/request-node.tsx +151 -0
  40. package/app/canvas/review-panel.tsx +8 -3
  41. package/app/canvas/section-node.tsx +6 -133
  42. package/app/canvas/spec-margin.tsx +4 -1
  43. package/app/canvas/spec-threads.ts +24 -23
  44. package/app/canvas/teammates-layer.tsx +205 -0
  45. package/app/canvas/text-layer.tsx +103 -17
  46. package/app/canvas/thread-focus.tsx +14 -12
  47. package/app/canvas/tool-cursors.ts +7 -6
  48. package/app/canvas/tool-icons.tsx +24 -56
  49. package/app/canvas/typing.ts +12 -0
  50. package/app/canvas/use-activity.ts +0 -8
  51. package/app/canvas/use-agent-changes.tsx +40 -42
  52. package/app/canvas/use-canvas-clipboard.tsx +11 -14
  53. package/app/canvas/use-canvas-editor.ts +4 -2
  54. package/app/canvas/xray.ts +3 -12
  55. package/app/export/player-model.ts +159 -0
  56. package/app/export/player.tsx +198 -0
  57. package/app/export.html +31 -0
  58. package/app/export.tsx +9 -0
  59. package/app/frame/announce-refreshes.ts +21 -0
  60. package/app/frame/start-frame.tsx +50 -0
  61. package/app/frame/view-loads.ts +161 -0
  62. package/app/frame/views.ts +13 -49
  63. package/app/frame.tsx +2 -33
  64. package/app/i18n/locales/en/messages.po +233 -14
  65. package/app/i18n/locales/en/messages.ts +1 -1
  66. package/app/i18n/locales/pseudo/messages.po +232 -13
  67. package/app/i18n/locales/pseudo/messages.ts +1 -1
  68. package/app/icons/dex-glyphs.tsx +219 -0
  69. package/app/icons/glyphs.tsx +80 -80
  70. package/app/kit/use-flow.ts +2 -1
  71. package/app/live/canvas-teammates.ts +90 -0
  72. package/app/live/studio-api.ts +30 -20
  73. package/app/main.tsx +3 -0
  74. package/app/pages/canvas.tsx +45 -14
  75. package/app/pages/commands-settings.tsx +17 -3
  76. package/app/pages/render.tsx +39 -11
  77. package/app/shell/bell.tsx +15 -5
  78. package/app/shell/feedback-form.tsx +10 -21
  79. package/app/shell/feedback-link.tsx +2 -1
  80. package/app/shell/presence.tsx +123 -26
  81. package/app/shell/scaled-frame.tsx +21 -9
  82. package/app/shell/thread-list.tsx +25 -8
  83. package/app/shell/working-on.tsx +35 -3
  84. package/app/types.ts +21 -205
  85. package/app/ui/file-drop.ts +128 -0
  86. package/app/ui/prompt-editor.tsx +39 -11
  87. package/app/ui/reference.tsx +21 -8
  88. package/app/ui/shadcn/input-group.tsx +2 -2
  89. package/bin/sudio.mjs +1 -1
  90. package/dist/cli/banner.d.mts +4 -2
  91. package/dist/cli/banner.mjs +34 -11
  92. package/dist/cli/commands/app.mjs +19 -11
  93. package/dist/cli/commands/create.d.mts +5 -5
  94. package/dist/cli/commands/create.mjs +4 -4
  95. package/dist/cli/commands/export.d.mts +40 -0
  96. package/dist/cli/commands/export.mjs +66 -0
  97. package/dist/cli/commands/hook.mjs +2 -1
  98. package/dist/cli/commands/init.d.mts +2 -2
  99. package/dist/cli/commands/upgrade.mjs +1 -1
  100. package/dist/cli/help.d.mts +1 -1
  101. package/dist/cli/help.mjs +13 -7
  102. package/dist/cli/main.d.mts +42 -5
  103. package/dist/cli/main.mjs +1 -0
  104. package/dist/config/load.mjs +14 -2
  105. package/dist/config/project-files.d.mts +11 -0
  106. package/dist/config/project-files.mjs +23 -2
  107. package/dist/config/renamed.d.mts +7 -2
  108. package/dist/config/renamed.mjs +13 -3
  109. package/dist/content/capture.d.mts +2 -2
  110. package/dist/content/capture.mjs +2 -2
  111. package/dist/content/commands.d.mts +11 -9
  112. package/dist/content/commands.mjs +22 -16
  113. package/dist/content/comments-log.mjs +2 -1
  114. package/dist/content/content.d.mts +13 -143
  115. package/dist/content/content.mjs +55 -76
  116. package/dist/content/element-words.d.mts +42 -0
  117. package/dist/content/element-words.mjs +112 -0
  118. package/dist/content/flow-specs.mjs +1 -1
  119. package/dist/content/hosted-person.d.mts +31 -0
  120. package/dist/content/hosted-person.mjs +68 -0
  121. package/dist/content/merge-rules.d.mts +5 -0
  122. package/dist/content/merge-rules.mjs +17 -1
  123. package/dist/content/prototype-summary.d.mts +3 -39
  124. package/dist/content/prototype-summary.mjs +2 -3
  125. package/dist/content/prototypes.mjs +1 -1
  126. package/dist/content/screenshot.mjs +9 -0
  127. package/dist/content/text-edit.d.mts +24 -14
  128. package/dist/content/text-edit.mjs +92 -81
  129. package/dist/content/text-replace.d.mts +30 -0
  130. package/dist/content/text-replace.mjs +285 -0
  131. package/dist/content/thread-module.d.mts +2 -4
  132. package/dist/content/thread-module.mjs +4 -5
  133. package/dist/content/threads.mjs +1 -1
  134. package/dist/paste/paste.mjs +1 -1
  135. package/dist/paths.d.mts +0 -2
  136. package/dist/paths.mjs +1 -3
  137. package/dist/server/agent-env.d.mts +5 -1
  138. package/dist/server/agent-env.mjs +7 -2
  139. package/dist/server/agent-session.d.mts +14 -1
  140. package/dist/server/agent-session.mjs +84 -19
  141. package/dist/server/agents.d.mts +10 -0
  142. package/dist/server/agents.mjs +21 -6
  143. package/dist/server/build-pictures.mjs +1 -1
  144. package/dist/server/canvas-presence.d.mts +22 -0
  145. package/dist/server/canvas-presence.mjs +160 -0
  146. package/dist/server/channel.d.mts +13 -24
  147. package/dist/server/channel.mjs +55 -37
  148. package/dist/server/claimed-presence.d.mts +3 -2
  149. package/dist/server/claimed-presence.mjs +15 -7
  150. package/dist/server/close-check.mjs +2 -2
  151. package/dist/server/command-settings.mjs +1 -1
  152. package/dist/server/comments/actions.d.mts +145 -0
  153. package/dist/server/comments/actions.mjs +146 -0
  154. package/dist/server/comments/routes.d.mts +25 -0
  155. package/dist/server/comments/routes.mjs +67 -0
  156. package/dist/server/comments/tools.d.mts +6 -0
  157. package/dist/server/comments/tools.mjs +154 -0
  158. package/dist/server/dev-server.mjs +59 -23
  159. package/dist/server/export/build.d.mts +15 -0
  160. package/dist/server/export/build.mjs +220 -0
  161. package/dist/server/export/page.d.mts +25 -0
  162. package/dist/server/export/page.mjs +40 -0
  163. package/dist/server/export/plugin.d.mts +31 -0
  164. package/dist/server/export/plugin.mjs +69 -0
  165. package/dist/server/export/run.d.mts +9 -0
  166. package/dist/server/export/run.mjs +61 -0
  167. package/dist/server/export/save.d.mts +7 -0
  168. package/dist/server/export/save.mjs +29 -0
  169. package/dist/server/file-lock.d.mts +2 -2
  170. package/dist/server/file-lock.mjs +130 -36
  171. package/dist/server/hosted.d.mts +8 -0
  172. package/dist/server/hosted.mjs +78 -0
  173. package/dist/server/live-mirror.mjs +66 -10
  174. package/dist/server/live.mjs +28 -1
  175. package/dist/server/mcp.d.mts +0 -2
  176. package/dist/server/mcp.mjs +9 -8
  177. package/dist/server/me.d.mts +3 -1
  178. package/dist/server/me.mjs +8 -2
  179. package/dist/server/notices.d.mts +1 -1
  180. package/dist/server/notices.mjs +1 -1
  181. package/dist/server/open-page.d.mts +22 -0
  182. package/dist/server/open-page.mjs +20 -2
  183. package/dist/server/outcome.d.mts +22 -0
  184. package/dist/server/outcome.mjs +8 -0
  185. package/dist/server/own-copies.mjs +1 -1
  186. package/dist/server/people.d.mts +8 -3
  187. package/dist/server/people.mjs +6 -2
  188. package/dist/server/pictures.d.mts +1 -1
  189. package/dist/server/pictures.mjs +2 -2
  190. package/dist/server/port.d.mts +12 -0
  191. package/dist/server/port.mjs +66 -14
  192. package/dist/server/prebundle.d.mts +32 -0
  193. package/dist/server/prebundle.mjs +115 -0
  194. package/dist/server/presence.d.mts +4 -1
  195. package/dist/server/presence.mjs +2 -2
  196. package/dist/server/problems.d.mts +8 -0
  197. package/dist/server/problems.mjs +13 -0
  198. package/dist/server/requests.d.mts +5 -1
  199. package/dist/server/requests.mjs +76 -78
  200. package/dist/server/source-stamp.d.mts +4 -3
  201. package/dist/server/source-stamp.mjs +60 -31
  202. package/dist/server/state.d.mts +19 -10
  203. package/dist/server/state.mjs +27 -18
  204. package/dist/server/studio-for.d.mts +5 -0
  205. package/dist/server/studio-for.mjs +17 -3
  206. package/dist/server/sync-install.d.mts +8 -12
  207. package/dist/server/sync-install.mjs +12 -30
  208. package/dist/server/thread-source.d.mts +8 -0
  209. package/dist/server/thread-source.mjs +25 -6
  210. package/dist/server/tools/describe.d.mts +1 -1
  211. package/dist/server/tools/describe.mjs +1 -1
  212. package/dist/server/tools/export.d.mts +5 -0
  213. package/dist/server/tools/export.mjs +35 -0
  214. package/dist/server/tools/feedback.d.mts +1 -1
  215. package/dist/server/tools/place-frame.mjs +16 -16
  216. package/dist/server/tools/reading.mjs +13 -4
  217. package/dist/server/tools/show.d.mts +1 -1
  218. package/dist/server/tools/snapshot.d.mts +1 -1
  219. package/dist/server/tools/thread-list.mjs +2 -2
  220. package/dist/server/tools/watch.mjs +5 -3
  221. package/dist/server/vite.d.mts +9 -4
  222. package/dist/server/vite.mjs +65 -63
  223. package/dist/server/web-app.mjs +4 -7
  224. package/dist/server/welcome.mjs +2 -1
  225. package/dist/server/work-groups.mjs +1 -1
  226. package/dist/setup/apply.d.mts +4 -0
  227. package/dist/setup/apply.mjs +5 -4
  228. package/dist/setup/create.d.mts +4 -2
  229. package/dist/setup/create.mjs +72 -22
  230. package/dist/setup/design-system-checks.mjs +3 -17
  231. package/dist/setup/desktop-app-script.mjs +4 -3
  232. package/dist/setup/desktop-app-start.d.mts +8 -2
  233. package/dist/setup/desktop-app-start.mjs +64 -29
  234. package/dist/setup/desktop-app.d.mts +8 -0
  235. package/dist/setup/desktop-app.mjs +19 -3
  236. package/dist/setup/detect/workspace.d.mts +10 -10
  237. package/dist/setup/detect/workspace.mjs +10 -12
  238. package/dist/setup/detect.d.mts +0 -2
  239. package/dist/setup/detect.mjs +1 -3
  240. package/dist/setup/doctor.d.mts +4 -1
  241. package/dist/setup/doctor.mjs +8 -6
  242. package/dist/setup/migrate/dex-folder.d.mts +61 -0
  243. package/dist/setup/migrate/dex-folder.mjs +544 -0
  244. package/dist/setup/migrate/files-folder.mjs +1 -1
  245. package/dist/setup/migrate/guides.mjs +1 -1
  246. package/dist/setup/migrate/migrations.mjs +4 -0
  247. package/dist/setup/migrate/row-titles.mjs +1 -1
  248. package/dist/setup/migrate/setup-files.d.mts +5 -0
  249. package/dist/setup/migrate/setup-files.mjs +115 -0
  250. package/dist/setup/migrate/studio-state.d.mts +2 -2
  251. package/dist/setup/migrate/studio-state.mjs +4 -4
  252. package/dist/setup/placement.d.mts +1 -1
  253. package/dist/setup/placement.mjs +5 -4
  254. package/dist/setup/plan.d.mts +5 -5
  255. package/dist/setup/plan.mjs +8 -12
  256. package/dist/setup/project.d.mts +6 -1
  257. package/dist/setup/project.mjs +10 -10
  258. package/dist/setup/prompts.d.mts +2 -1
  259. package/dist/setup/prompts.mjs +4 -3
  260. package/dist/setup/questions.mjs +3 -2
  261. package/dist/setup/starters.d.mts +3 -1
  262. package/dist/setup/starters.mjs +9 -3
  263. package/dist/setup/write.d.mts +15 -3
  264. package/dist/setup/write.mjs +23 -3
  265. package/dist/shared/annotations-core.mjs +1 -1
  266. package/dist/shared/canvas-core.d.mts +22 -7
  267. package/dist/shared/canvas-core.mjs +39 -11
  268. package/dist/shared/canvas-file.d.mts +201 -0
  269. package/dist/shared/canvas-file.mjs +1 -0
  270. package/dist/shared/comments/routes.d.mts +55 -0
  271. package/dist/shared/comments/routes.mjs +39 -0
  272. package/dist/shared/export-core.d.mts +62 -0
  273. package/dist/shared/export-core.mjs +101 -0
  274. package/dist/shared/feedback.d.mts +8 -0
  275. package/dist/shared/feedback.mjs +10 -2
  276. package/dist/shared/live-core.d.mts +2 -0
  277. package/dist/shared/live-core.mjs +6 -1
  278. package/dist/shared/live-presence.d.mts +57 -2
  279. package/dist/shared/live-presence.mjs +90 -4
  280. package/dist/shared/page-messages.d.mts +14 -1
  281. package/dist/shared/page-messages.mjs +30 -3
  282. package/dist/shared/page-review.d.mts +2 -11
  283. package/dist/shared/page-review.mjs +4 -13
  284. package/dist/shared/people-core.d.mts +28 -0
  285. package/dist/shared/people-core.mjs +27 -1
  286. package/dist/shared/presence-core.d.mts +13 -0
  287. package/dist/shared/presence-core.mjs +11 -2
  288. package/dist/shared/references-core.d.mts +4 -0
  289. package/dist/shared/references-core.mjs +12 -4
  290. package/dist/shared/review-file.d.mts +5 -0
  291. package/dist/shared/review-file.mjs +23 -13
  292. package/dist/shared/server-page.mjs +1 -1
  293. package/dist/shared/signup.d.mts +2 -5
  294. package/dist/shared/signup.mjs +2 -35
  295. package/dist/shared/studio-events.d.mts +0 -6
  296. package/dist/shared/studio-events.mjs +1 -5
  297. package/dist/shared/studio-files.d.mts +21 -0
  298. package/dist/shared/studio-files.mjs +16 -2
  299. package/dist/shared/studio-routes.d.mts +29 -63
  300. package/dist/shared/studio-routes.mjs +1 -69
  301. package/dist/shared/threads-core.d.mts +29 -6
  302. package/dist/shared/threads-core.mjs +68 -13
  303. package/extension/dist/feedback.js +104 -284
  304. package/extension/dist/manifest.json +1 -1
  305. package/extension/dist/picker.js +104 -284
  306. package/package.json +2 -2
  307. package/src/cli/banner.ts +45 -11
  308. package/src/cli/commands/app.ts +23 -8
  309. package/src/cli/commands/create.ts +4 -4
  310. package/src/cli/commands/export.ts +78 -0
  311. package/src/cli/commands/hook.ts +4 -1
  312. package/src/cli/commands/upgrade.ts +1 -1
  313. package/src/cli/help.ts +13 -7
  314. package/src/cli/main.ts +1 -0
  315. package/src/config/load.ts +26 -2
  316. package/src/config/project-files.ts +36 -6
  317. package/src/config/renamed.ts +19 -4
  318. package/src/content/capture.ts +6 -12
  319. package/src/content/commands.ts +30 -18
  320. package/src/content/comments-log.ts +4 -1
  321. package/src/content/content.ts +71 -257
  322. package/src/content/element-words.ts +175 -0
  323. package/src/content/flow-specs.ts +2 -1
  324. package/src/content/hosted-person.ts +107 -0
  325. package/src/content/merge-rules.ts +29 -0
  326. package/src/content/prototype-summary.ts +4 -44
  327. package/src/content/review-pages.ts +2 -1
  328. package/src/content/screenshot.ts +14 -0
  329. package/src/content/text-edit.ts +172 -105
  330. package/src/content/text-replace.ts +420 -0
  331. package/src/content/thread-module.ts +2 -4
  332. package/src/content/trash.ts +1 -1
  333. package/src/paths.ts +0 -8
  334. package/src/server/agent-env.ts +12 -2
  335. package/src/server/agent-session.ts +124 -34
  336. package/src/server/agents.ts +48 -17
  337. package/src/server/canvas-presence.ts +237 -0
  338. package/src/server/channel.ts +95 -53
  339. package/src/server/claimed-presence.ts +26 -10
  340. package/src/server/command-settings.ts +1 -1
  341. package/src/server/comments/actions.ts +333 -0
  342. package/src/server/comments/routes.ts +131 -0
  343. package/src/server/comments/tools.ts +317 -0
  344. package/src/server/dev-server.ts +94 -33
  345. package/src/server/export/build.ts +310 -0
  346. package/src/server/export/page.ts +85 -0
  347. package/src/server/export/plugin.ts +138 -0
  348. package/src/server/export/run.ts +79 -0
  349. package/src/server/export/save.ts +38 -0
  350. package/src/server/file-lock.ts +205 -54
  351. package/src/server/hosted.ts +113 -0
  352. package/src/server/live-mirror.ts +93 -8
  353. package/src/server/live.ts +46 -1
  354. package/src/server/machine-update.ts +3 -3
  355. package/src/server/mcp.ts +15 -14
  356. package/src/server/me.ts +12 -6
  357. package/src/server/notices.ts +2 -2
  358. package/src/server/open-page.ts +54 -4
  359. package/src/server/outcome.ts +26 -0
  360. package/src/server/people.ts +13 -3
  361. package/src/server/pictures.ts +2 -2
  362. package/src/server/port.ts +94 -20
  363. package/src/server/prebundle.ts +230 -0
  364. package/src/server/presence.ts +12 -4
  365. package/src/server/problems.ts +11 -0
  366. package/src/server/requests.ts +115 -110
  367. package/src/server/roster.ts +1 -1
  368. package/src/server/saved.ts +1 -1
  369. package/src/server/source-stamp.ts +118 -37
  370. package/src/server/state.ts +53 -31
  371. package/src/server/studio-for.ts +26 -2
  372. package/src/server/sync-install.ts +35 -26
  373. package/src/server/thread-place.ts +2 -4
  374. package/src/server/thread-source.ts +35 -3
  375. package/src/server/tools/export.ts +56 -0
  376. package/src/server/tools/place-frame.ts +23 -15
  377. package/src/server/tools/reading.ts +16 -3
  378. package/src/server/tools/thread-list.ts +1 -1
  379. package/src/server/tools/watch.ts +7 -7
  380. package/src/server/updates.ts +2 -2
  381. package/src/server/vite.ts +106 -110
  382. package/src/server/web-app.ts +11 -9
  383. package/src/server/welcome.ts +3 -1
  384. package/src/setup/apply.ts +8 -5
  385. package/src/setup/create.ts +101 -27
  386. package/src/setup/design-system-checks.ts +8 -21
  387. package/src/setup/desktop-app-script.ts +4 -3
  388. package/src/setup/desktop-app-start.ts +94 -26
  389. package/src/setup/desktop-app.ts +23 -2
  390. package/src/setup/detect/workspace.ts +20 -21
  391. package/src/setup/detect.ts +0 -4
  392. package/src/setup/doctor.ts +13 -6
  393. package/src/setup/migrate/dex-folder.ts +842 -0
  394. package/src/setup/migrate/files-folder.ts +1 -1
  395. package/src/setup/migrate/guides.ts +3 -1
  396. package/src/setup/migrate/migrations.ts +8 -2
  397. package/src/setup/migrate/setup-files.ts +198 -0
  398. package/src/setup/migrate/studio-state.ts +12 -10
  399. package/src/setup/own-app.ts +1 -1
  400. package/src/setup/placement.ts +7 -6
  401. package/src/setup/plan.ts +13 -18
  402. package/src/setup/project.ts +11 -10
  403. package/src/setup/prompts.ts +5 -4
  404. package/src/setup/questions.ts +6 -3
  405. package/src/setup/starters.ts +11 -4
  406. package/src/setup/write.ts +34 -3
  407. package/src/shared/canvas-core.ts +48 -9
  408. package/src/shared/canvas-file.ts +205 -0
  409. package/src/shared/comments/routes.ts +81 -0
  410. package/src/shared/export-core.ts +198 -0
  411. package/src/shared/feedback.ts +14 -4
  412. package/src/shared/live-core.ts +8 -0
  413. package/src/shared/live-presence.ts +171 -2
  414. package/src/shared/page-messages.ts +38 -2
  415. package/src/shared/page-review.ts +11 -16
  416. package/src/shared/people-core.ts +44 -0
  417. package/src/shared/presence-core.ts +18 -2
  418. package/src/shared/references-core.ts +22 -3
  419. package/src/shared/review-file.ts +28 -12
  420. package/src/shared/server-page.ts +2 -1
  421. package/src/shared/signup.ts +4 -28
  422. package/src/shared/studio-events.ts +0 -13
  423. package/src/shared/studio-files.ts +29 -1
  424. package/src/shared/studio-routes.ts +32 -65
  425. package/src/shared/threads-core.ts +134 -12
  426. package/templates/methods/explore.md +1 -1
  427. package/templates/methods/handoff.md +1 -1
  428. package/templates/methods/review.md +2 -1
  429. package/templates/rules/canvas-frames.md +6 -3
  430. package/templates/rules/commands.md +1 -0
  431. package/templates/rules/prototypes.md +1 -1
  432. package/templates/rules/studio.md +17 -11
  433. package/templates/skills/comprehend/SKILL.md +56 -0
  434. package/templates/skills/distill/SKILL.md +172 -0
  435. package/templates/skills/export-prototype/SKILL.md +35 -0
  436. package/templates/skills/riff/SKILL.md +21 -0
  437. package/templates/skills/riff-deep/SKILL.md +40 -0
  438. package/templates/skills/riff-max/SKILL.md +46 -0
  439. package/templates/skills/riff-state/SKILL.md +45 -0
  440. package/templates/skills/riff-up/SKILL.md +38 -0
  441. package/templates/skills/riff-wide/SKILL.md +40 -0
  442. package/templates/starters/standalone/README.md +1 -1
  443. package/templates/starters/turborepo/README.md +2 -2
  444. package/templates/starters/turborepo/apps/web/src/app.tsx +2 -2
  445. package/templates/starters/vite/README.md +1 -1
  446. package/dist/server/tools/close-reply.d.mts +0 -6
  447. package/dist/server/tools/close-reply.mjs +0 -138
  448. package/dist/server/tools/comment.d.mts +0 -6
  449. package/dist/server/tools/comment.mjs +0 -49
  450. package/src/server/tools/close-reply.ts +0 -271
  451. package/src/server/tools/comment.ts +0 -96
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: comprehend
3
+ description: "First-time readers at several model strengths say what they think it is"
4
+ ---
5
+
6
+ Find out what the element in focus, and the screen it sits on, say to
7
+ someone seeing the product for the first time, from a picture alone. This
8
+ surfaces insight: change nothing in the design.
9
+
10
+ ## Readers
11
+
12
+ Take a screenshot of the screen, in the state it is in. Send one
13
+ **reader** per model strength you can run, all at once: a sub-agent each,
14
+ from the smallest model to the strongest (in Claude Code: haiku, sonnet,
15
+ opus, and fable where you have it). Four by default; the request can name
16
+ fewer or others. A strength is a reader's depth of attention: what only
17
+ the strongest reader gets, a hurried person may miss.
18
+
19
+ A reader sees **pixels only**: the screenshot, and no files, code or
20
+ markup. Point it at the element by what is visible, its words, shape and
21
+ place on the screen ("the round button with a plus, bottom right"), never
22
+ by a selector, a component's name or a file's. Without sub-agents, give
23
+ each reader the picture in turn and write as each, from the smallest up,
24
+ before reading the next.
25
+
26
+ Give each reader this brief, with the element filled in:
27
+
28
+ > You are using this product for the first time, in a user interview,
29
+ > thinking aloud. Look at the screenshot and answer in the first person,
30
+ > as you would speak: "I think this is…", "I'd expect this to…", "I'm not
31
+ > sure whether…".
32
+ >
33
+ > 1. What you think this product and this screen are for, and who they are for.
34
+ > 2. What you think <the element> is, and what happens when you use it.
35
+ > 3. Three other things on the screen and what you think each one does.
36
+ > 4. Where you hesitate, and what you would do first.
37
+ > 5. The questions you would ask the interviewer.
38
+ >
39
+ > Say what you believe, even when unsure, and how sure you are.
40
+
41
+ ## Playback
42
+
43
+ Compare the readers, element by element. Done when every element any
44
+ reader named is placed in one of these, in plain words:
45
+
46
+ - **Clear**: every reader read it the same way, and as the design means it.
47
+ - **Misread**: a reader was sure of something it is not. Quote them.
48
+ - **Divided**: readers disagreed. Say which strength read what.
49
+ - **Missed**: only the stronger readers noticed it, or none did.
50
+
51
+ Then the questions people would ask, merged and in their words.
52
+
53
+ Write it up as one document, titled "Comprehend: <screen>", with each
54
+ reader's think-aloud in full under the playback, and save it beside the
55
+ work, where the project keeps documents. Reply with the headline: what
56
+ the screen read as, and the biggest misread.
@@ -0,0 +1,172 @@
1
+ ---
2
+ name: distill
3
+ description: "Distills reusable components and a theme from it, on shadcn's tokens"
4
+ ---
5
+
6
+ Distill the element in focus into reusable components and a theme. The
7
+ element might be a snapshot, several elements, or a whole screen. Leave
8
+ the original as it is: what you distill goes beside it, and the rebuild
9
+ goes in a row below it.
10
+
11
+ The tokens are shadcn's, and the components are shadcn's wherever one
12
+ fits. Where the project has no shadcn (no `components.json`), do the same
13
+ with its design system's own tokens and components.
14
+
15
+ **Read.** Read every element in focus, and its stylesheet. A snapshot's
16
+ CSS file holds its design, and a snapshot that is one image holds it in
17
+ the image. Write down each raw value it uses: colours, radii, spacing,
18
+ type (family, sizes, weights, line heights), borders, shadows and motion.
19
+ Then write down the parts it repeats: the same card, row or control
20
+ appearing twice, or appearing in each of several elements, is one
21
+ component with variants.
22
+
23
+ **Map the tokens.** Give every colour a role, not a name. Use the role it
24
+ plays on the screen, whatever its hue:
25
+
26
+ - Page and text: `background`, `foreground`.
27
+ - Raised surfaces: `card`, `popover`, and their `-foreground`.
28
+ - The main action: `primary`. Quieter actions: `secondary`. Hover and
29
+ selected: `accent`. Subdued surfaces and secondary text: `muted`,
30
+ `muted-foreground`.
31
+ - Danger: `destructive`. Lines: `border`, `input`. Focus: `ring`.
32
+ - Data: `chart-1` to `chart-5`. A side navigation: the `sidebar-*` tokens.
33
+
34
+ Values close to each other are one token. Two greys a few steps apart are
35
+ one `muted-foreground`, not two. A colour with no role here is either
36
+ data (a `chart-*`) or an accent worth one new token, named for its role
37
+ (`--success`, `--warning`). A status that is not an action (a critical
38
+ badge, an info banner) is one of these, never `destructive`, which is
39
+ for actions that destroy. Keep new tokens to the fewest the design
40
+ needs. The corner radius becomes `--radius`, and the theme derives its
41
+ other radii from it. Fonts become `--font-sans` and `--font-mono`.
42
+ Spacing, widths and heights map to the nearest step of Tailwind's scale
43
+ (`w-50`, `max-w-256`), rounded, never written out. Type does too, except the size most of the text uses: when
44
+ that falls between two steps (13px, between 12 and 14), set the design
45
+ system's token for that step to it in the theme, rather than resize
46
+ every line.
47
+
48
+ **Write the theme.** Write a `theme.css` in your folder (`people/<you>/`),
49
+ with every token in `oklch()`, scoped under a class named for where the
50
+ design came from (`.theme-<name>`). The source's own scheme gets its
51
+ values, under `.theme-<name>` for light or `.dark .theme-<name>` for
52
+ dark. Derive the other scheme, and say that you did. Leave out a token
53
+ whose value matches the project's theme. A token the design system
54
+ derives from others on `:root` (a hover or focus colour mixed from
55
+ `--primary`, say) keeps the root's value under your class, so set it
56
+ again in the theme. The project's own theme belongs to the design
57
+ system, so never change it here. Each view that uses the distilled
58
+ design imports `theme.css` and puts the class on its root, and the
59
+ design system's components inside it take the theme from there.
60
+
61
+ **Choose each component.** Go through the repeated parts and the
62
+ one-offs worth naming, and find each one with `components` before
63
+ writing any:
64
+
65
+ 1. **A shadcn component as it is**, with one of its variants or sizes.
66
+ Prefer this whenever the difference from the source is only its tokens,
67
+ which the theme now carries.
68
+ 2. **A new variant** of a shadcn component, when the source needs a look
69
+ that it lacks. Add the variant in your folder by wrapping the
70
+ component with `cva`, never by editing the design system's copy.
71
+ 3. **A composition** of shadcn components, when the part is several of
72
+ them used together (a stat card, a settings row, a toolbar).
73
+ 4. **Base UI**, only when the part needs behaviour that no shadcn
74
+ component has (a meter, a number field, a hover card or an unusual
75
+ menu). Build it on `@base-ui/react` primitives as shadcn's own
76
+ components are built: `data-slot` on each part, styled with tokens
77
+ and `cva`, and states from Base UI's data attributes
78
+ (`data-[open]`, `data-[disabled]`).
79
+
80
+ Icons come from the design system's icon library, matched by meaning. An
81
+ icon that is the source's own (a logo, a status glyph) is copied as an
82
+ SVG component into `components/icons.tsx`.
83
+
84
+ `class-variance-authority`, `@base-ui/react` and the icon library may not
85
+ be among the imports the design system allows views. Where `dex check`
86
+ warns about one, keep using it, and say in your reply that it needs
87
+ adding to `designSystem.imports` in `dex.config.ts`.
88
+
89
+ Each component is a file in `people/<you>/components/`, named for the
90
+ job it does (`plan-card.tsx`, not `blue-box.tsx`). These are your own,
91
+ built from the design system's. They are not new design-system
92
+ components, which the rules say never to add. Its props are the content
93
+ and the variants (a `size` variant is fine), never colours or pixels. Its
94
+ classes use only tokens: no colours, spacing or arbitrary values written
95
+ out. A new token is used through its variable, `text-(--success)`.
96
+
97
+ **Rebuild.** Build the element again from the distilled components and
98
+ theme, in a new row below it, with the source frame's size. Add the row
99
+ with `place_frame`, then set the frame's `size` in `canvas.json`. The
100
+ rebuild keeps the source's sizes, words and layout. Then add a view
101
+ showing each component in each of its variants, using `useViewControl`
102
+ for its states, in a row of its own.
103
+
104
+ Beside it, add a **token sheet**: a view that shows the theme, so people
105
+ see what was set up without reading CSS. Render it inside the theme's
106
+ class, so it reads every value from `theme.css` and never repeats one:
107
+
108
+ - A swatch for each colour token the theme sets, and for each of the
109
+ project's it keeps, marked as kept, with its name and its role in a
110
+ few words. Mark the new tokens. Show dark beside it from a copy inside
111
+ an element with the `dark` class. (The values it
112
+ replaced go in the report: `dex check` flags colours written in a view.)
113
+ - The radius on a card and a control, the type styles the source uses,
114
+ and its spacing steps, as bars.
115
+
116
+ Compare the rebuild with the source in the source's own scheme and at
117
+ the source frame's width (a snapshot may render wider than its frame),
118
+ and check that the derived scheme reads well. Done when they match, and
119
+ when the rebuild's view holds no value written out.
120
+
121
+ **Write the guidelines.** Write how to design with what you distilled,
122
+ so the next screen built from it looks as if it belonged. Put it in a
123
+ spec in your folder, `specs/distill-<name>.md`. Use the sections of
124
+ Google's DESIGN.md format, in the order `methods/design-md.md` gives
125
+ them, and include only the ones you have something to say for:
126
+
127
+ - **Overview**: how the design feels and how dense it is, as the source
128
+ shows it, in two or three lines.
129
+ - **Colors**: each token by its role: what it is for, and what it is
130
+ never for ("`primary` is the one action per screen; never a link").
131
+ - **Typography**: the few type styles the source uses, and which text
132
+ each is for.
133
+ - **Layout**: the spacing steps it uses and where each goes, the widths
134
+ of its columns, and its alignment.
135
+ - **Elevation & Depth** and **Shapes**: whether depth comes from
136
+ borders, shadows or tonal surfaces, and which radius goes where.
137
+ - **Components**: each distilled component, with what it is for, when to
138
+ use something else, and its variants.
139
+ - **Do's and Don'ts**: the patterns the source keeps to, and the
140
+ mistakes a rebuild made before you fixed them.
141
+
142
+ Write only what the source shows. Where you cannot tell why it does
143
+ something, say what it does and leave the why out. A guess becomes a rule
144
+ for every screen after it. People place specs on the canvas, not you:
145
+ reply that the person can place this one in the section (D on the canvas),
146
+ so that work there follows it.
147
+
148
+ The workspace's guidelines (`DESIGN.md`) are shared by every file. Add to
149
+ them only when the request asks for that, or says the source is the
150
+ team's own product. Then follow `methods/design-md.md`: the rules go
151
+ under its sections, and its front matter gets the tokens only once they
152
+ are in the design system's stylesheets. Otherwise, name the three rules
153
+ that are most worth adding there in your reply.
154
+
155
+ **Report.** Write up what happened as one document, titled "Distill:
156
+ <element>", and save it beside the work, where the project keeps
157
+ documents. It is the record of the distilling; how to use the result is
158
+ the spec's. Include:
159
+
160
+ 1. **Tokens**: each one you set, and the source values it replaced.
161
+ Include any new ones, with why.
162
+ 2. **Sources**: for each component, where it came from (as it is, a
163
+ variant, a composition, or Base UI) and where the source used it.
164
+ 3. **Gaps**: what the shadcn components could not carry, and what was
165
+ rounded or merged.
166
+ 4. **Promote**: the components and tokens worth proposing to the design
167
+ system, with why. Name them only: changing the design system is its
168
+ owners' call, made apart from this file, with `methods/components.md`
169
+ when someone asks for it.
170
+
171
+ Reply with the number of components and tokens, the biggest gap, the
172
+ imports that need allowing, and where the guidelines went.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: export-prototype
3
+ description: "Prepares frames for an exported prototype, then exports them"
4
+ ---
5
+
6
+ Get the frames the comment is on (or its section's) ready to send as a
7
+ prototype that opens by double-click, offline, then export them with the
8
+ `export` tool (or `npx dex export`). The comment's words say which kind:
9
+ `clickable` unless they say otherwise.
10
+
11
+ Export makes the build: never write HTML, a bundler config or a zip
12
+ yourself. What you do is make the frames work on their own:
13
+
14
+ - **Every kind:** the frames should move on as the real product would. A
15
+ step's main action calls `useFlow().next()` (`@studio/kit/use-flow`), or
16
+ links to the next view (`<a href="/files/<slug>/views/<view>">`); follow
17
+ `connect-frames` where they don't. The exported page steps through the
18
+ frames as Play does, so leave the frames where they are.
19
+ - **content:** move the words and data people will want to change out of
20
+ each view's JSX into `content.json` beside your views (in your
21
+ `people/<you>/` folder), and import it in the view
22
+ (`import copy from "../content.json"`). Keep the JSON plain: strings,
23
+ numbers, lists and objects, keyed by what each is ("heading",
24
+ "cta"), so someone who has never seen the code can edit it.
25
+ - **source:** keep the views' own code in your folder (data, parts,
26
+ stylesheets beside them), importing only the design system and
27
+ `@studio/kit`, so what the export takes is what it needs.
28
+ - **pages:** nothing more: each frame gets a page of its own.
29
+
30
+ Change only views in your own folder. For a view of someone else's, copy
31
+ it into yours first (as the rules say) or leave it, and say which.
32
+
33
+ Then export with `export` (`kind`, the comment's `frames` or `sections`,
34
+ and `flows: true` when people should switch between several flows), and
35
+ close the comment with what the zip holds and where it is.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: riff
3
+ description: "Riffs on the element in words: picks deep, state, wide, up or max"
4
+ ---
5
+
6
+ Pick the riff the request asks for, say which in your reply, and follow
7
+ that skill's SKILL.md, in its folder beside this one, for the element in
8
+ focus:
9
+
10
+ - **riff-deep**: where it leads, one person further into the experience.
11
+ "What happens next", "then", a journey.
12
+ - **riff-state**: every state it can be in. "Empty", "error", "states",
13
+ "edge cases".
14
+ - **riff-wide**: other kinds of the same thing. "Types", "variations",
15
+ "versions", "other ways".
16
+ - **riff-up**: the need above it and other ways to meet that need. "Why",
17
+ "what for", "bigger picture".
18
+ - **riff-max**: deeper, states and wide at once, passed between
19
+ perspectives. "Everything", "go wide and deep", "brainwrite".
20
+
21
+ With no hint, riff-deep.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: riff-deep
3
+ description: "Follows one person further into the experience, step by step"
4
+ ---
5
+
6
+ Riff deep on the element in focus: "and then what?", one person further
7
+ into the experience than the screen goes. A riff extends the idea in
8
+ words: change nothing in the design.
9
+
10
+ **Seed.** Read the element, the screen around it, and any spec or notes
11
+ on who uses it. Write in a few lines what it is, the job it does for
12
+ someone, what sits around it and leads to it, and the states it has
13
+ today. Name only what the screen shows, never what you hope it will.
14
+
15
+ **Perspective.** Take one person: the one the request names, else one the
16
+ project's notes describe, else a situation (someone on their first visit,
17
+ someone who uses it daily, someone in a hurry or recovering from a
18
+ mistake).
19
+
20
+ **Walk.** Go forward from where the screen ends, five steps. The screen
21
+ already shows what it shows: each step is something it does not have
22
+ yet, a screen, a moment or a decision further on (what they check, who
23
+ they tell, what they come back to tomorrow). Each step is what they see,
24
+ what they do, and what they now want, in a line or two, and builds on the
25
+ step before. Where a step could go two ways, name the other way as a
26
+ **branch** in a line and keep going on the likelier one. Done when the
27
+ person has reached what they came for, or five steps, and every branch
28
+ is named.
29
+
30
+ **Harvest.** Write it up as one document, titled "Riff deep: <element>":
31
+
32
+ 1. The seed.
33
+ 2. The walk, step by step, its branches under the step they leave from.
34
+ 3. **Holds together**: what came up more than once, and where two steps
35
+ pull against each other.
36
+ 4. **Build next**: three ideas worth building, each a line on what it
37
+ would answer.
38
+
39
+ Save it beside the work, where the project keeps documents, and reply
40
+ with the strongest idea in a line.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: riff-max
3
+ description: "Brainwrites on it between perspectives: deep, states and wide"
4
+ ---
5
+
6
+ Riff on the element in focus as a brainwriting round: ideas written down,
7
+ passed on, and built on by the next writer. A riff extends the idea in
8
+ words: change nothing in the design.
9
+
10
+ **Seed.** Read the element, the screen around it, and any spec or notes
11
+ on who uses it. Write in a few lines what it is, the job it does for
12
+ someone, what sits around it and leads to it, and the states it has
13
+ today. Name only what the screen shows, never what you hope it will.
14
+
15
+ **Writers.** One per perspective, three by default: the people the
16
+ request names, else those the project's notes describe, else situations
17
+ (someone on their first visit, someone who uses it daily, someone in a
18
+ hurry or recovering from a mistake).
19
+
20
+ **Rounds.** Each writer starts a **sheet** from the seed. Each round,
21
+ every sheet passes to the next writer. Write every turn yourself, in
22
+ order, as each writer in turn: you see every sheet, so an idea already on
23
+ one is never written again on another. A writer reads the seed and the
24
+ whole sheet so far, and adds three ideas, each building on one already
25
+ there ("yes, and"), from its perspective:
26
+
27
+ - **Deeper**: one step further into the experience.
28
+ - **State**: a state the sheet lacks (empty, loading, partial, error,
29
+ many, no permission, done, undone).
30
+ - **Wide**: another kind of the same thing.
31
+
32
+ Three rounds, so every sheet has passed through every writer. Done when
33
+ every sheet has had every round, and each idea names the one it builds on.
34
+
35
+ **Harvest.** Write it up as one document, titled "Riff max: <element>":
36
+
37
+ 1. The seed.
38
+ 2. Each sheet round by round, every idea with its writer and the idea it
39
+ builds on, so the idea's evolution can be read.
40
+ 3. **Holds together**: what came up on more than one sheet, and where two
41
+ ideas pull against each other.
42
+ 4. **Build next**: three ideas worth building, each a line on what it
43
+ would answer.
44
+
45
+ Save it beside the work, where the project keeps documents, and reply
46
+ with the strongest idea in a line.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: riff-state
3
+ description: "Every state it can be in: empty, loading, error, many and more"
4
+ ---
5
+
6
+ Riff on every state the element in focus can be in. A riff extends the
7
+ idea in words: change nothing in the design.
8
+
9
+ **Seed.** Read the element, the screen around it, and any spec or notes
10
+ on who uses it. Write in a few lines what it is, the job it does for
11
+ someone, what sits around it and leads to it, and the states it has
12
+ today. Name only what the screen shows, never what you hope it will.
13
+
14
+ **States.** Go through each in turn, the UI stack and past it:
15
+
16
+ - **Ideal**: the state the screen shows, as the seed says.
17
+ - **Empty**: nothing yet, the first time and after everything is cleared.
18
+ - **Loading**: waiting, and waiting too long.
19
+ - **Partial**: some there, some still to come or to fill in.
20
+ - **Error**: what failed, and what the person can do about it.
21
+ - **Many**: hundreds, long names, the crowded end.
22
+ - **No permission**: seen by someone who can look but not act.
23
+ - **Done** and **undone**: just after it worked, and taking its result back.
24
+ - **Needs you**: waiting on the person, for an answer or a choice.
25
+ - **Others**: someone else's, or several people's at once.
26
+ - **In the way**: a small window, or covering something the person needs.
27
+ - **Reduced motion**: what still says the state when nothing moves.
28
+
29
+ Then add any state only this element has, from the seed, that none of
30
+ these covers; a state the seed names that fits one above goes in that
31
+ row. For each, write what the person sees and what they can do next, in
32
+ a line or two. A state the element cannot be in gets a line on why. Done
33
+ when every state has its line.
34
+
35
+ **Harvest.** Write it up as one document, titled "Riff state: <element>":
36
+
37
+ 1. The seed.
38
+ 2. The states as a table: state, what they see, what they can do next.
39
+ 3. **Holds together**: what several states share, and where two pull
40
+ against each other.
41
+ 4. **Build next**: three states worth building first, each a line on what
42
+ it would answer.
43
+
44
+ Save it beside the work, where the project keeps documents, and reply
45
+ with the state most worth building in a line.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: riff-up
3
+ description: "Climbs to the need above it, and finds other ways to meet it"
4
+ ---
5
+
6
+ Riff up from the element in focus, an abstraction ladder. A riff extends
7
+ the idea in words: change nothing in the design.
8
+
9
+ **Seed.** Read the element, the screen around it, and any spec or notes
10
+ on who uses it. Write in a few lines what it is, the job it does for
11
+ someone, what sits around it and leads to it, and the states it has
12
+ today. Name only what the screen shows, never what you hope it will.
13
+
14
+ **Climb.** Ask "why does someone use this?" and write the answer as a
15
+ need, then ask why of that need. Three rungs, each a line, from the
16
+ element to a need a person would say in their own words.
17
+
18
+ **Come down.** From each rung, ask "how else could we meet this?" and
19
+ write two other ways, in a line each, with what each would cost and what
20
+ it would replace. Lower rungs give near neighbours of the element; the top
21
+ rung gives other features altogether, one of them with no interface of
22
+ its own, and may show the element is not needed.
23
+
24
+ **Weigh.** Mark the way down you would try first, and say why in a line.
25
+ Done when there are three rungs, each with two ways down, and one marked.
26
+
27
+ **Harvest.** Write it up as one document, titled "Riff up: <element>":
28
+
29
+ 1. The seed.
30
+ 2. The ladder: the element at the bottom, each rung above it, its ways
31
+ down beside it.
32
+ 3. **Holds together**: what the ways down share, and where two pull
33
+ against each other.
34
+ 4. **Build next**: three ways worth building, each a line on what it
35
+ would answer, the marked one first.
36
+
37
+ Save it beside the work, where the project keeps documents, and reply
38
+ with the marked way in a line.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: riff-wide
3
+ description: "Other kinds of the same thing: types, sizes, versions"
4
+ ---
5
+
6
+ Riff wide on the element in focus: other kinds of the same thing, each
7
+ doing its job another way. A riff extends the idea in words: change
8
+ nothing in the design.
9
+
10
+ **Seed.** Read the element, the screen around it, and any spec or notes
11
+ on who uses it. Write in a few lines what it is, the job it does for
12
+ someone, what sits around it and leads to it, and the states it has
13
+ today. Name only what the screen shows, never what you hope it will.
14
+
15
+ **Variations.** Write eight, each one line: what it is, and what it does
16
+ better or worse than the element. Each moves on a different axis, so no
17
+ two differ only in colour or copy:
18
+
19
+ - **Type**: another kind of control or content for the same job.
20
+ - **Size**: smaller, larger, inline, full screen.
21
+ - **Density**: one at a time, a list, a grid.
22
+ - **Substitute**, **combine**, **remove**: swap a part, merge it with a
23
+ neighbour, take a part away and see what still works.
24
+ - **Reverse**: the order, the default, or who acts first.
25
+ - **Channel**: off the screen: a notification, a sound, a message.
26
+
27
+ The request can name the axes ("sizes only"). Done when there are eight,
28
+ each on its own axis, or as many as the request's axes allow.
29
+
30
+ **Harvest.** Write it up as one document, titled "Riff wide: <element>":
31
+
32
+ 1. The seed.
33
+ 2. The variations, each with its axis.
34
+ 3. **Holds together**: what the strongest variations share, and where two
35
+ pull against each other.
36
+ 4. **Build next**: three variations worth building, each a line on what
37
+ it would answer.
38
+
39
+ Save it beside the work, where the project keeps documents, and reply
40
+ with the strongest variation in a line.
@@ -18,4 +18,4 @@ If your design system is a published package, install it and point
18
18
  `designSystem` in `dex.config.ts` at it.
19
19
 
20
20
  Studio settings are in `dex.config.ts`; Dex files and guidelines for
21
- agents (`DESIGN.md`) are in `studio/`.
21
+ agents (`DESIGN.md`) are in its Dex folder, `dex/`.
@@ -12,11 +12,11 @@ __PM__ run dex # Dex only: files on @workspace/ui
12
12
  | --- | --- |
13
13
  | `apps/web` | Your product: Vite and React, built from `@workspace/ui`. |
14
14
  | `packages/ui` | The design system, `@workspace/ui`: shadcn on Base UI in the look of Dex's own interface (Inter, Lucide icons), with the tokens in `src/styles/globals.css`. |
15
- | `apps/studio` | Dex. It depends on `@workspace/ui` as `apps/web` does, and its agents build files with those components. |
15
+ | `apps/dex` | Dex. It depends on `@workspace/ui` as `apps/web` does, and its agents build files with those components. |
16
16
 
17
17
  Add components to the shared package with `npx shadcn@latest add <name>` from
18
18
  `apps/web` (its `components.json` sends them to `packages/ui`). Dex's own
19
19
  interface keeps its own buttons, menus and icons, whatever your components look
20
20
  like.
21
21
 
22
- Dex files and guidelines for agents (`DESIGN.md`) are in `apps/studio`.
22
+ Dex files and guidelines for agents (`DESIGN.md`) are in `apps/dex`.
@@ -27,8 +27,8 @@ export function App() {
27
27
  </CardHeader>
28
28
  <CardContent>
29
29
  <p className="text-muted-foreground">
30
- Prototype it in Dex, apps/studio: run <code>__PM__ run dex</code>{" "}
31
- from the repository's root.
30
+ Prototype it in Dex, apps/dex: run <code>__PM__ run dex</code> from
31
+ the repository's root.
32
32
  </p>
33
33
  </CardContent>
34
34
  <CardFooter>
@@ -16,4 +16,4 @@ files with them. Dex's own interface keeps its own buttons, menus and icons,
16
16
  whatever your components look like.
17
17
 
18
18
  Studio settings are in `dex.config.ts`; Dex files and guidelines for
19
- agents (`DESIGN.md`) are in `studio/`.
19
+ agents (`DESIGN.md`) are in its Dex folder, `dex/`.
@@ -1,6 +0,0 @@
1
- import { ToolContext } from "./context.mjs";
2
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
- //#region src/server/tools/close-reply.d.ts
4
- /** Register `close` and `reply` on `server`. */
5
- export declare function registerCloseAndReplyTools(server: McpServer, context: ToolContext): void;
6
- //#endregion