@1agh/maude 1.9.1 → 2.0.0-rc.1

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 (1986) hide show
  1. package/README.md +4 -4
  2. package/apps/hub/src/project-transactions/baseline.mjs +276 -0
  3. package/apps/hub/src/project-transactions/kernel.mjs +1756 -0
  4. package/apps/hub/src/project-transactions/lanes.mjs +287 -0
  5. package/apps/hub/src/project-transactions/runs-core.mjs +639 -0
  6. package/apps/hub/src/project-transactions/store-core.mjs +831 -0
  7. package/apps/studio/access/closure.ts +1075 -0
  8. package/apps/studio/access/filters.ts +1193 -0
  9. package/apps/studio/access/frame.ts +365 -0
  10. package/apps/studio/access/known-canvases.ts +82 -0
  11. package/apps/studio/access/request.ts +637 -0
  12. package/apps/studio/access/roles.ts +187 -0
  13. package/apps/studio/access/scope.ts +407 -0
  14. package/apps/studio/access/share-map.ts +434 -0
  15. package/apps/studio/acp/adapter-stderr.ts +22 -0
  16. package/apps/studio/acp/agent-path.ts +39 -0
  17. package/apps/studio/acp/ask-queue.ts +238 -0
  18. package/apps/studio/acp/audience.ts +615 -0
  19. package/apps/studio/acp/bootstrap-brief.ts +32 -15
  20. package/apps/studio/acp/bridge.ts +890 -114
  21. package/apps/studio/acp/chat-search.ts +195 -0
  22. package/apps/studio/acp/connected-fact.ts +83 -0
  23. package/apps/studio/acp/design-write-verb.ts +71 -0
  24. package/apps/studio/acp/env.ts +86 -0
  25. package/apps/studio/acp/index.ts +775 -58
  26. package/apps/studio/acp/login-state.ts +15 -1
  27. package/apps/studio/acp/may-scope.ts +771 -0
  28. package/apps/studio/acp/plugin-bootstrap.ts +90 -5
  29. package/apps/studio/acp/probe.ts +18 -4
  30. package/apps/studio/acp/repo-private.ts +73 -0
  31. package/apps/studio/acp/running.ts +50 -5
  32. package/apps/studio/acp/transcript.ts +356 -21
  33. package/apps/studio/acp/write-scope.ts +141 -11
  34. package/apps/studio/actions/agents.ts +2068 -0
  35. package/apps/studio/actions/canvas-keys.ts +41 -0
  36. package/apps/studio/actions/ctx.ts +118 -0
  37. package/apps/studio/actions/defs/_v1.ts +55 -0
  38. package/apps/studio/actions/defs/ai-runs.ts +56 -0
  39. package/apps/studio/actions/defs/annotation.ts +164 -0
  40. package/apps/studio/actions/defs/app.ts +269 -0
  41. package/apps/studio/actions/defs/canvas.ts +281 -0
  42. package/apps/studio/actions/defs/chat.ts +158 -0
  43. package/apps/studio/actions/defs/diagnostics.ts +52 -0
  44. package/apps/studio/actions/defs/ds.ts +139 -0
  45. package/apps/studio/actions/defs/edit.ts +986 -0
  46. package/apps/studio/actions/defs/export.ts +221 -0
  47. package/apps/studio/actions/defs/history.ts +175 -0
  48. package/apps/studio/actions/defs/native.ts +264 -0
  49. package/apps/studio/actions/defs/presence.ts +53 -0
  50. package/apps/studio/actions/defs/search.ts +90 -0
  51. package/apps/studio/actions/defs/sync.ts +47 -0
  52. package/apps/studio/actions/defs/timeline.ts +254 -0
  53. package/apps/studio/actions/defs/tool.ts +152 -0
  54. package/apps/studio/actions/defs/ui.ts +38 -0
  55. package/apps/studio/actions/defs/video.ts +115 -0
  56. package/apps/studio/actions/defs/view.ts +556 -0
  57. package/apps/studio/actions/documents.ts +32 -0
  58. package/apps/studio/actions/forward.ts +48 -0
  59. package/apps/studio/actions/help.ts +115 -0
  60. package/apps/studio/actions/index.ts +51 -0
  61. package/apps/studio/actions/keymap.gen.ts +1170 -0
  62. package/apps/studio/actions/keys.ts +271 -0
  63. package/apps/studio/actions/legacy.ts +250 -0
  64. package/apps/studio/actions/manifest-version.ts +18 -0
  65. package/apps/studio/actions/menu.ts +203 -0
  66. package/apps/studio/actions/native-menu.ts +132 -0
  67. package/apps/studio/actions/resolve.ts +118 -0
  68. package/apps/studio/actions/types.ts +266 -0
  69. package/apps/studio/actions/uniqueness.ts +119 -0
  70. package/apps/studio/actions/verbs.ts +306 -0
  71. package/apps/studio/actions.manifest.json +7826 -0
  72. package/apps/studio/actions.parity.json +268 -0
  73. package/apps/studio/activity.ts +4 -31
  74. package/apps/studio/agent-runs.ts +676 -0
  75. package/apps/studio/ai/attach-grants.ts +497 -0
  76. package/apps/studio/ai/copy-meta.ts +204 -0
  77. package/apps/studio/ai/create-claim.ts +88 -0
  78. package/apps/studio/ai/lease-home.ts +202 -0
  79. package/apps/studio/ai/run-doing.ts +106 -0
  80. package/apps/studio/ai/run-lifecycle.ts +320 -0
  81. package/apps/studio/ai/run-progress.ts +154 -0
  82. package/apps/studio/ai/runs.ts +1180 -0
  83. package/apps/studio/ai/save-hold.ts +565 -0
  84. package/apps/studio/ai/watch-progress.ts +182 -0
  85. package/apps/studio/ai/write-claim-scope.ts +39 -0
  86. package/apps/studio/ai/write-claim.ts +193 -0
  87. package/apps/studio/ai-banner.tsx +8 -14
  88. package/apps/studio/annotations/ai-read.ts +289 -1
  89. package/apps/studio/annotations/ai-write.ts +281 -23
  90. package/apps/studio/annotations/artboard-members.ts +86 -0
  91. package/apps/studio/annotations/board-ops.ts +358 -0
  92. package/apps/studio/annotations/board-schema.ts +81 -0
  93. package/apps/studio/annotations/constants.ts +2 -0
  94. package/apps/studio/annotations/elements/_shared.ts +290 -1
  95. package/apps/studio/annotations/elements/arrow.model.ts +29 -2
  96. package/apps/studio/annotations/elements/ballot.model.ts +110 -0
  97. package/apps/studio/annotations/elements/media.model.ts +11 -1
  98. package/apps/studio/annotations/elements/section.model.ts +3 -1
  99. package/apps/studio/annotations/elements/stamp.model.ts +83 -0
  100. package/apps/studio/annotations/elements/sticky.model.ts +235 -0
  101. package/apps/studio/annotations/elements/vote.model.ts +71 -0
  102. package/apps/studio/annotations/fields.ts +51 -0
  103. package/apps/studio/annotations/figjam-into.ts +119 -0
  104. package/apps/studio/annotations/hosts.ts +231 -0
  105. package/apps/studio/annotations/migrate-v1.ts +21 -2
  106. package/apps/studio/annotations/ops.ts +23 -0
  107. package/apps/studio/annotations/registry.ts +154 -16
  108. package/apps/studio/annotations/route.ts +268 -0
  109. package/apps/studio/annotations/run-tag.ts +150 -0
  110. package/apps/studio/annotations/stamp-kinds.ts +66 -0
  111. package/apps/studio/annotations/templates.ts +154 -0
  112. package/apps/studio/annotations/text-steps.ts +253 -0
  113. package/apps/studio/annotations/time-marks.ts +140 -0
  114. package/apps/studio/annotations/types.ts +22 -0
  115. package/apps/studio/annotations/ui/ai-marks.tsx +64 -0
  116. package/apps/studio/annotations/ui/ai-seen.tsx +117 -0
  117. package/apps/studio/annotations/ui/arrow-bind.ts +347 -0
  118. package/apps/studio/annotations/ui/arrow-cards.tsx +396 -0
  119. package/apps/studio/annotations/ui/arrow-kinds.ts +90 -0
  120. package/apps/studio/annotations/ui/bar-place.ts +18 -0
  121. package/apps/studio/annotations/ui/element-node.tsx +300 -52
  122. package/apps/studio/annotations/ui/host-view.ts +99 -0
  123. package/apps/studio/annotations/ui/locked.tsx +83 -0
  124. package/apps/studio/annotations/ui/lod.tsx +246 -0
  125. package/apps/studio/annotations/ui/placement.tsx +270 -0
  126. package/apps/studio/annotations/ui/pointer-pipeline.ts +10 -0
  127. package/apps/studio/annotations/ui/posture.ts +124 -0
  128. package/apps/studio/annotations/ui/quiet-tip.ts +28 -0
  129. package/apps/studio/annotations/ui/render-model.ts +27 -2
  130. package/apps/studio/annotations/ui/rest-route.ts +152 -0
  131. package/apps/studio/annotations/ui/ride.ts +957 -0
  132. package/apps/studio/annotations/ui/scene.tsx +59 -11
  133. package/apps/studio/annotations/ui/section-fold.ts +95 -0
  134. package/apps/studio/annotations/ui/shell-asks.ts +62 -0
  135. package/apps/studio/annotations/ui/stamps.ts +221 -0
  136. package/apps/studio/annotations/ui/stamps.tsx +272 -0
  137. package/apps/studio/annotations/ui/sticker-drop.ts +147 -0
  138. package/apps/studio/annotations/ui/sticker-preview.ts +41 -0
  139. package/apps/studio/annotations/ui/sticky-resolve.ts +106 -0
  140. package/apps/studio/annotations/ui/template-place.ts +108 -0
  141. package/apps/studio/annotations/ui/text-editor.tsx +6 -4
  142. package/apps/studio/annotations/ui/text-session.ts +63 -1
  143. package/apps/studio/annotations/ui/text-style.ts +11 -3
  144. package/apps/studio/annotations/ui/time-pins.tsx +134 -0
  145. package/apps/studio/annotations/ui/tool-prefs.ts +242 -0
  146. package/apps/studio/annotations/ui/tool-state.ts +211 -0
  147. package/apps/studio/annotations/ui/visibility.ts +76 -0
  148. package/apps/studio/annotations/ui/vote-dots.tsx +283 -0
  149. package/apps/studio/annotations/v1-adapter.ts +88 -5
  150. package/apps/studio/annotations/validate-board.ts +257 -0
  151. package/apps/studio/annotations/vote-guard.ts +48 -0
  152. package/apps/studio/annotations/votes-local.ts +481 -0
  153. package/apps/studio/annotations-bindings.ts +54 -8
  154. package/apps/studio/annotations-context-toolbar.tsx +612 -150
  155. package/apps/studio/annotations-layer.tsx +1768 -674
  156. package/apps/studio/annotations-model.ts +80 -5
  157. package/apps/studio/api.ts +1522 -454
  158. package/apps/studio/artboard-activity-overlay.tsx +530 -3
  159. package/apps/studio/artboard-ai-copies.tsx +187 -0
  160. package/apps/studio/artboard-convert-marks.tsx +142 -0
  161. package/apps/studio/artboard-gap-mark.tsx +177 -0
  162. package/apps/studio/artboard-ghosts-overlay.tsx +106 -0
  163. package/apps/studio/artboard-growth-memory.ts +56 -0
  164. package/apps/studio/artboard-growth-tag.tsx +115 -0
  165. package/apps/studio/artboard-guides-overlay.tsx +86 -26
  166. package/apps/studio/artboard-marquee.tsx +21 -6
  167. package/apps/studio/artboard-new-section.tsx +188 -0
  168. package/apps/studio/artboard-warn-mark.tsx +330 -0
  169. package/apps/studio/asset-details.ts +339 -0
  170. package/apps/studio/asset-generated.ts +99 -0
  171. package/apps/studio/asset-origins.ts +147 -0
  172. package/apps/studio/asset-placeholder.tsx +481 -0
  173. package/apps/studio/asset-rename.ts +171 -0
  174. package/apps/studio/asset-trash.ts +176 -0
  175. package/apps/studio/asset-upload-bars.tsx +167 -0
  176. package/apps/studio/asset-upload.ts +145 -1
  177. package/apps/studio/attribute-artboards.ts +327 -0
  178. package/apps/studio/bin/_ab-headless.sh +35 -0
  179. package/apps/studio/bin/_ab-park.sh +83 -0
  180. package/apps/studio/bin/_agent-browser-safe.mjs +36 -3
  181. package/apps/studio/bin/_annotate-post.mjs +137 -0
  182. package/apps/studio/bin/_assets.mjs +213 -0
  183. package/apps/studio/bin/_brand-colours.mjs +189 -0
  184. package/apps/studio/bin/_brand-fonts.mjs +158 -0
  185. package/apps/studio/bin/_brand-site.mjs +309 -0
  186. package/apps/studio/bin/_canvas-errors.mjs +143 -0
  187. package/apps/studio/bin/_canvas-rects-playwright.mjs +6 -3
  188. package/apps/studio/bin/_canvas-rects-static.mjs +1 -1
  189. package/apps/studio/bin/_check.mjs +122 -0
  190. package/apps/studio/bin/_comments.mjs +274 -0
  191. package/apps/studio/bin/_curl-local.mjs +122 -3
  192. package/apps/studio/bin/_decode-webaudio.mjs +120 -0
  193. package/apps/studio/bin/_describe.mjs +220 -0
  194. package/apps/studio/bin/_ds-check.mjs +26 -0
  195. package/apps/studio/bin/_ds-prove-playwright.mjs +327 -0
  196. package/apps/studio/bin/_ds-upgrade.mjs +14 -0
  197. package/apps/studio/bin/_ds.mjs +82 -0
  198. package/apps/studio/bin/_enumerate-artboards-playwright.mjs +6 -3
  199. package/apps/studio/bin/_exports.mjs +244 -0
  200. package/apps/studio/bin/_fetch-asset.mjs +209 -15
  201. package/apps/studio/bin/_history.mjs +509 -0
  202. package/apps/studio/bin/_html-playwright.mjs +10 -3
  203. package/apps/studio/bin/_import-asset.mjs +446 -15
  204. package/apps/studio/bin/_import-brand.mjs +40 -156
  205. package/apps/studio/bin/_import-figma.mjs +878 -20
  206. package/apps/studio/bin/_import-tokens.mjs +8 -118
  207. package/apps/studio/bin/_index-cli.mjs +126 -0
  208. package/apps/studio/bin/_layout-check.mjs +35 -0
  209. package/apps/studio/bin/_logs.mjs +130 -0
  210. package/apps/studio/bin/_motion-sample-playwright.mjs +6 -3
  211. package/apps/studio/bin/_no-egress.sh +36 -0
  212. package/apps/studio/bin/_pdf-playwright.mjs +9 -3
  213. package/apps/studio/bin/_perf-probe-safari.mjs +327 -37
  214. package/apps/studio/bin/_perf-probe-studio.mjs +259 -0
  215. package/apps/studio/bin/_perf-probe.mjs +35 -1
  216. package/apps/studio/bin/_perf-shared.mjs +377 -12
  217. package/apps/studio/bin/_place.mjs +35 -0
  218. package/apps/studio/bin/_png-playwright.mjs +27 -7
  219. package/apps/studio/bin/_pptx-playwright.mjs +4 -3
  220. package/apps/studio/bin/_pw-launch.mjs +124 -2
  221. package/apps/studio/bin/_record-shot.sh +65 -0
  222. package/apps/studio/bin/_rects-input.mjs +69 -0
  223. package/apps/studio/bin/_reel-place.mjs +160 -0
  224. package/apps/studio/bin/_region.mjs +37 -1
  225. package/apps/studio/bin/_runs.mjs +178 -0
  226. package/apps/studio/bin/_screenshot-playwright.mjs +6 -3
  227. package/apps/studio/bin/_studio-verb.mjs +220 -0
  228. package/apps/studio/bin/_svg-playwright.mjs +4 -3
  229. package/apps/studio/bin/_sync.mjs +179 -0
  230. package/apps/studio/bin/_thumbs-playwright.mjs +704 -0
  231. package/apps/studio/bin/_tile-draw.mjs +74 -0
  232. package/apps/studio/bin/_transcribe-local.mjs +243 -0
  233. package/apps/studio/bin/_transcribe.mjs +48 -56
  234. package/apps/studio/bin/_trash.mjs +287 -0
  235. package/apps/studio/bin/_url-guard.mjs +88 -0
  236. package/apps/studio/bin/_url-guard.sh +16 -0
  237. package/apps/studio/bin/_video-playwright.mjs +9 -3
  238. package/apps/studio/bin/_video-verbs.mjs +403 -0
  239. package/apps/studio/bin/_write-claim.mjs +124 -0
  240. package/apps/studio/bin/annotate.mjs +348 -330
  241. package/apps/studio/bin/assets.sh +28 -0
  242. package/apps/studio/bin/beats.mjs +237 -0
  243. package/apps/studio/bin/beats.sh +24 -0
  244. package/apps/studio/bin/bootstrap-check.sh +2 -1
  245. package/apps/studio/bin/canvas-edit.sh +17 -9
  246. package/apps/studio/bin/canvas-errors.sh +18 -0
  247. package/apps/studio/bin/canvas-rects.sh +14 -0
  248. package/apps/studio/bin/canvas-source.sh +18 -0
  249. package/apps/studio/bin/captions.sh +13 -0
  250. package/apps/studio/bin/chat-open.sh +2 -2
  251. package/apps/studio/bin/check.sh +27 -0
  252. package/apps/studio/bin/comments.sh +20 -0
  253. package/apps/studio/bin/cut-to-beat.sh +13 -0
  254. package/apps/studio/bin/cut-words.sh +13 -0
  255. package/apps/studio/bin/describe.sh +28 -0
  256. package/apps/studio/bin/draw-proof.sh +41 -8
  257. package/apps/studio/bin/ds-check.sh +30 -0
  258. package/apps/studio/bin/ds-upgrade.sh +30 -0
  259. package/apps/studio/bin/ds.sh +29 -0
  260. package/apps/studio/bin/exports.sh +19 -0
  261. package/apps/studio/bin/generate.sh +45 -3
  262. package/apps/studio/bin/handoff.sh +60 -1
  263. package/apps/studio/bin/history.sh +24 -0
  264. package/apps/studio/bin/import-brand.sh +5 -3
  265. package/apps/studio/bin/index.sh +26 -0
  266. package/apps/studio/bin/layout-check.sh +20 -0
  267. package/apps/studio/bin/logs.sh +17 -0
  268. package/apps/studio/bin/perf.sh +93 -3
  269. package/apps/studio/bin/photo-bg-remove.sh +49 -7
  270. package/apps/studio/bin/place.sh +20 -0
  271. package/apps/studio/bin/read-annotations.mjs +52 -1
  272. package/apps/studio/bin/reel-place.sh +15 -0
  273. package/apps/studio/bin/runs.sh +19 -0
  274. package/apps/studio/bin/screenshot.sh +37 -21
  275. package/apps/studio/bin/server-up.sh +50 -13
  276. package/apps/studio/bin/smoke.sh +10 -0
  277. package/apps/studio/bin/sync.sh +18 -0
  278. package/apps/studio/bin/to-lottie.sh +1 -1
  279. package/apps/studio/bin/transcribe-local.sh +27 -0
  280. package/apps/studio/bin/trash.sh +23 -0
  281. package/apps/studio/bin/visual-sanity.sh +1 -0
  282. package/apps/studio/bridge/canvas-mode-store.ts +301 -0
  283. package/apps/studio/bridge/canvas-modes.ts +548 -0
  284. package/apps/studio/bridge/dgn-protocol.ts +2671 -0
  285. package/apps/studio/bridge/esc-ladder.ts +98 -0
  286. package/apps/studio/bridge/link-target.ts +157 -0
  287. package/apps/studio/bridge/mode-shows.ts +167 -0
  288. package/apps/studio/bridge/occlusion.ts +108 -0
  289. package/apps/studio/bridge/paste-data.ts +101 -0
  290. package/apps/studio/build.ts +12 -1
  291. package/apps/studio/bunfig.toml +4 -0
  292. package/apps/studio/canvas-build-sandbox.ts +34 -5
  293. package/apps/studio/canvas-build-worker.ts +23 -1
  294. package/apps/studio/canvas-build.ts +419 -15
  295. package/apps/studio/canvas-comment-mount.tsx +113 -25
  296. package/apps/studio/canvas-create.ts +285 -49
  297. package/apps/studio/canvas-cursors.ts +12 -0
  298. package/apps/studio/canvas-ds-icons.tsx +241 -0
  299. package/apps/studio/canvas-edit.ts +1188 -172
  300. package/apps/studio/canvas-hud-tokens.gen.ts +120 -0
  301. package/apps/studio/canvas-icons.tsx +47 -0
  302. package/apps/studio/canvas-lib-inline.ts +57 -3
  303. package/apps/studio/canvas-lib.tsx +1033 -263
  304. package/apps/studio/canvas-list-watch.ts +73 -2
  305. package/apps/studio/canvas-meta.schema.json +11 -0
  306. package/apps/studio/canvas-notifications.tsx +28 -3
  307. package/apps/studio/canvas-pipeline.ts +43 -8
  308. package/apps/studio/canvas-replay-keys.ts +65 -0
  309. package/apps/studio/canvas-rows.ts +116 -0
  310. package/apps/studio/canvas-shell.tsx +784 -698
  311. package/apps/studio/canvas-source/errors.ts +315 -0
  312. package/apps/studio/canvas-source/source-map.ts +69 -0
  313. package/apps/studio/canvas-theme-pill.tsx +164 -0
  314. package/apps/studio/canvas-theme.ts +133 -0
  315. package/apps/studio/canvas-top-level.ts +69 -0
  316. package/apps/studio/check/ids.ts +28 -0
  317. package/apps/studio/check/index.ts +586 -0
  318. package/apps/studio/check/link-resolver.ts +75 -0
  319. package/apps/studio/check/meta.ts +79 -0
  320. package/apps/studio/check/video.ts +352 -0
  321. package/apps/studio/client/actions/shell-key-handlers.js +450 -0
  322. package/apps/studio/client/app.jsx +2914 -1203
  323. package/apps/studio/client/canvas-url.js +241 -5
  324. package/apps/studio/client/clipboard-relay.ts +144 -0
  325. package/apps/studio/client/command-palette-match.js +4 -2
  326. package/apps/studio/client/comments-overlay.css +529 -144
  327. package/apps/studio/client/dialogs/asset-picker.jsx +77 -32
  328. package/apps/studio/client/dialogs/command-palette.jsx +453 -67
  329. package/apps/studio/client/dialogs/export-dialog.jsx +6 -781
  330. package/apps/studio/client/dialogs/help-modal.jsx +31 -2
  331. package/apps/studio/client/dialogs/shortcuts-overlay.jsx +201 -106
  332. package/apps/studio/client/edit-op-relay.ts +77 -0
  333. package/apps/studio/client/embed-view.jsx +25 -5
  334. package/apps/studio/client/export-bridge-scope.js +72 -0
  335. package/apps/studio/client/export-center.jsx +179 -369
  336. package/apps/studio/client/export-lane.js +117 -0
  337. package/apps/studio/client/export-region.ts +25 -0
  338. package/apps/studio/client/file-tree.jsx +4 -4
  339. package/apps/studio/client/frame-cap.js +132 -0
  340. package/apps/studio/client/generate-dialog.jsx +38 -36
  341. package/apps/studio/client/github.js +85 -26
  342. package/apps/studio/client/home/HomeAsk.jsx +220 -0
  343. package/apps/studio/client/home/InviteSheet.jsx +150 -0
  344. package/apps/studio/client/home/Shelves.jsx +216 -0
  345. package/apps/studio/client/home/Starters.jsx +42 -0
  346. package/apps/studio/client/home/TargetChip.jsx +152 -0
  347. package/apps/studio/client/home/home-api.js +275 -0
  348. package/apps/studio/client/home/home-app.jsx +1884 -0
  349. package/apps/studio/client/home/home-icons.jsx +143 -0
  350. package/apps/studio/client/home/home-menu.js +43 -0
  351. package/apps/studio/client/home/home-model.js +514 -0
  352. package/apps/studio/client/home/home-starters.js +136 -0
  353. package/apps/studio/client/home/home.css +1681 -0
  354. package/apps/studio/client/home/invite-flow.js +422 -0
  355. package/apps/studio/client/home/shell-mode.js +49 -0
  356. package/apps/studio/client/hooks/annotations-hidden-toast.js +21 -0
  357. package/apps/studio/client/hooks/canvas-origin-probe.js +26 -0
  358. package/apps/studio/client/hooks/edit-scope-query.js +16 -0
  359. package/apps/studio/client/hooks/use-action-keys.jsx +121 -0
  360. package/apps/studio/client/hooks/use-canvas-bridge.jsx +881 -247
  361. package/apps/studio/client/hooks/use-git-actions.jsx +33 -12
  362. package/apps/studio/client/hooks/use-palette-and-panels.jsx +722 -287
  363. package/apps/studio/client/hooks/use-photo-and-timeline.jsx +268 -307
  364. package/apps/studio/client/hooks/use-project-data.jsx +23 -2
  365. package/apps/studio/client/hooks/use-shell-core.jsx +582 -126
  366. package/apps/studio/client/hooks/use-tabs.jsx +268 -126
  367. package/apps/studio/client/index-loader.ts +3 -1
  368. package/apps/studio/client/inspector/color-picker.jsx +29 -18
  369. package/apps/studio/client/inspector/css-knobs.jsx +765 -436
  370. package/apps/studio/client/inspector/css-vocab.jsx +37 -4
  371. package/apps/studio/client/inspector/ds-tokens.js +127 -15
  372. package/apps/studio/client/inspector/grid-tracks-editor.jsx +21 -15
  373. package/apps/studio/client/inspector/inspect-computed.jsx +17 -15
  374. package/apps/studio/client/inspector/inspector-panel.jsx +314 -207
  375. package/apps/studio/client/inspector/layers.jsx +90 -65
  376. package/apps/studio/client/inspector/selection.js +20 -0
  377. package/apps/studio/client/inspector/token-popover.jsx +42 -28
  378. package/apps/studio/client/inspector-controls.jsx +453 -106
  379. package/apps/studio/client/panels/BrandUploadPanel.jsx +8 -229
  380. package/apps/studio/client/panels/ChatPanel.jsx +391 -1674
  381. package/apps/studio/client/panels/CloudBar.jsx +548 -252
  382. package/apps/studio/client/panels/CollabModelInfographic.jsx +77 -20
  383. package/apps/studio/client/panels/CreateProject.jsx +224 -40
  384. package/apps/studio/client/panels/DiffView.jsx +27 -10
  385. package/apps/studio/client/panels/ElicitationPrompt.jsx +4 -3
  386. package/apps/studio/client/panels/FigmaImportPanel.jsx +12 -263
  387. package/apps/studio/client/panels/IdentityBar.jsx +262 -74
  388. package/apps/studio/client/panels/IntroVideoDialog.jsx +6 -1
  389. package/apps/studio/client/panels/PermissionPrompt.jsx +85 -9
  390. package/apps/studio/client/panels/ReadinessList.jsx +71 -46
  391. package/apps/studio/client/panels/RepoBranchSwitcher.jsx +124 -745
  392. package/apps/studio/client/panels/SettingsPanel.jsx +492 -608
  393. package/apps/studio/client/panels/SetupChecklist.jsx +10 -3
  394. package/apps/studio/client/panels/SourceConflictPanel.jsx +96 -20
  395. package/apps/studio/client/panels/SyncConsentDialog.jsx +14 -13
  396. package/apps/studio/client/panels/TeamProjects.jsx +365 -119
  397. package/apps/studio/client/panels/ToolGroup.jsx +6 -2
  398. package/apps/studio/client/panels/acp-runtime.js +127 -22
  399. package/apps/studio/client/panels/acp-usage.js +4 -1
  400. package/apps/studio/client/panels/chat-context.js +74 -5
  401. package/apps/studio/client/panels/chat-header.jsx +67 -0
  402. package/apps/studio/client/panels/chat-markdown.jsx +6 -2
  403. package/apps/studio/client/panels/file-deep-link-dialog.jsx +88 -17
  404. package/apps/studio/client/panels/file-preview.jsx +50 -24
  405. package/apps/studio/client/panels/git-grouping.js +9 -2
  406. package/apps/studio/client/panels/slash-commands.gen.js +171 -0
  407. package/apps/studio/client/panels/slash-commands.js +65 -25
  408. package/apps/studio/client/panels/timeline-media-cache.js +68 -2
  409. package/apps/studio/client/panels/timeline-parse.js +62 -22
  410. package/apps/studio/client/panels/timeline-snap.js +4 -1
  411. package/apps/studio/client/panels/transcript-view.js +9 -0
  412. package/apps/studio/client/photo-knobs.jsx +225 -46
  413. package/apps/studio/client/prefs-migrate.js +79 -0
  414. package/apps/studio/client/report-bug.jsx +59 -26
  415. package/apps/studio/client/selection-scope.js +215 -0
  416. package/apps/studio/client/share-link.js +104 -8
  417. package/apps/studio/client/shell/account-tone.js +28 -0
  418. package/apps/studio/client/shell/banners.jsx +21 -188
  419. package/apps/studio/client/shell/comments-panel.jsx +5 -176
  420. package/apps/studio/client/shell/constants.js +1 -0
  421. package/apps/studio/client/shell/dock.jsx +217 -31
  422. package/apps/studio/client/shell/drop-guard.js +52 -0
  423. package/apps/studio/client/shell/icons.jsx +165 -23
  424. package/apps/studio/client/shell/util.js +20 -33
  425. package/apps/studio/client/shell/viewport.jsx +249 -95
  426. package/apps/studio/client/shell-bus.js +82 -0
  427. package/apps/studio/client/shell-events.js +251 -0
  428. package/apps/studio/client/stamp-follow.js +62 -0
  429. package/apps/studio/client/stores/shell-store.jsx +15 -0
  430. package/apps/studio/client/styles/0-reset.css +79 -16
  431. package/apps/studio/client/styles/1-tokens-maude-v2.css +367 -0
  432. package/apps/studio/client/styles/1-tokens-shell.css +374 -0
  433. package/apps/studio/client/styles/2-layout.css +404 -24
  434. package/apps/studio/client/styles/3-kit-maude-v2.css +683 -0
  435. package/apps/studio/client/styles/_index.css +183 -18
  436. package/apps/studio/client/system/system-view.jsx +52 -6
  437. package/apps/studio/client/tour/collab-tour.js +43 -38
  438. package/apps/studio/client/tour/overlay.jsx +61 -19
  439. package/apps/studio/client/tour/quick-setup-tour.js +27 -20
  440. package/apps/studio/client/tour/tour-model.js +36 -0
  441. package/apps/studio/client/tour/usage-tour.js +43 -24
  442. package/apps/studio/client/tree/tree.jsx +661 -409
  443. package/apps/studio/client/tree-expansion.js +5 -2
  444. package/apps/studio/client/tree-row-menu.jsx +43 -29
  445. package/apps/studio/client/ui-open.js +104 -0
  446. package/apps/studio/client/use-tree-drag.js +2 -0
  447. package/apps/studio/client/v2/access/access-card.jsx +54 -0
  448. package/apps/studio/client/v2/access/access-client.js +525 -0
  449. package/apps/studio/client/v2/access/access-host.jsx +328 -0
  450. package/apps/studio/client/v2/access/access.css +163 -0
  451. package/apps/studio/client/v2/access/ask-to-edit.jsx +97 -0
  452. package/apps/studio/client/v2/access/disabled-reason.js +50 -0
  453. package/apps/studio/client/v2/access/link-off-card.jsx +37 -0
  454. package/apps/studio/client/v2/access/trashed-banner.jsx +123 -0
  455. package/apps/studio/client/v2/advanced/where-matrix.js +231 -0
  456. package/apps/studio/client/v2/ai/AChip.jsx +158 -0
  457. package/apps/studio/client/v2/ai/Advanced.jsx +640 -0
  458. package/apps/studio/client/v2/ai/AiChatIsland.jsx +108 -0
  459. package/apps/studio/client/v2/ai/AskSelectionHost.jsx +173 -0
  460. package/apps/studio/client/v2/ai/AttachMenu.jsx +190 -0
  461. package/apps/studio/client/v2/ai/BigChat.jsx +195 -0
  462. package/apps/studio/client/v2/ai/ChatList.jsx +614 -0
  463. package/apps/studio/client/v2/ai/ChatUndo.jsx +164 -0
  464. package/apps/studio/client/v2/ai/ChoiceCard.jsx +178 -0
  465. package/apps/studio/client/v2/ai/Composer.jsx +655 -0
  466. package/apps/studio/client/v2/ai/ConnectSheet.jsx +118 -0
  467. package/apps/studio/client/v2/ai/Consent.jsx +66 -0
  468. package/apps/studio/client/v2/ai/DropOverlay.jsx +113 -0
  469. package/apps/studio/client/v2/ai/Feed.jsx +589 -0
  470. package/apps/studio/client/v2/ai/FoldNeeds.jsx +23 -0
  471. package/apps/studio/client/v2/ai/NeedsYouSlot.jsx +250 -0
  472. package/apps/studio/client/v2/ai/NotReady.jsx +110 -0
  473. package/apps/studio/client/v2/ai/OfferCard.jsx +165 -0
  474. package/apps/studio/client/v2/ai/PermissionCard.jsx +168 -0
  475. package/apps/studio/client/v2/ai/PickedShots.jsx +33 -0
  476. package/apps/studio/client/v2/ai/ProblemCard.jsx +41 -0
  477. package/apps/studio/client/v2/ai/QuitDialog.jsx +127 -0
  478. package/apps/studio/client/v2/ai/RawLog.jsx +68 -0
  479. package/apps/studio/client/v2/ai/Result.jsx +144 -0
  480. package/apps/studio/client/v2/ai/RunList.jsx +352 -0
  481. package/apps/studio/client/v2/ai/RunSurface.jsx +248 -0
  482. package/apps/studio/client/v2/ai/ScopeChip.jsx +239 -0
  483. package/apps/studio/client/v2/ai/SentStrip.jsx +70 -0
  484. package/apps/studio/client/v2/ai/StoppedDivider.jsx +84 -0
  485. package/apps/studio/client/v2/ai/Suggest.jsx +153 -0
  486. package/apps/studio/client/v2/ai/TurnResult.jsx +95 -0
  487. package/apps/studio/client/v2/ai/WaitingCard.jsx +133 -0
  488. package/apps/studio/client/v2/ai/WillChange.jsx +40 -0
  489. package/apps/studio/client/v2/ai/Working.jsx +74 -0
  490. package/apps/studio/client/v2/ai/advanced-handlers.js +56 -0
  491. package/apps/studio/client/v2/ai/advanced-model.js +214 -0
  492. package/apps/studio/client/v2/ai/ai-list-advanced.css +625 -0
  493. package/apps/studio/client/v2/ai/ai-may.js +75 -0
  494. package/apps/studio/client/v2/ai/ai-offer.js +178 -0
  495. package/apps/studio/client/v2/ai/ai-run.css +281 -0
  496. package/apps/studio/client/v2/ai/ai-send.js +164 -0
  497. package/apps/studio/client/v2/ai/ai.css +261 -0
  498. package/apps/studio/client/v2/ai/answer-note.js +44 -0
  499. package/apps/studio/client/v2/ai/ask-frame.js +131 -0
  500. package/apps/studio/client/v2/ai/ask-selection-lane.js +100 -0
  501. package/apps/studio/client/v2/ai/ask-selection.css +142 -0
  502. package/apps/studio/client/v2/ai/ask-selection.js +84 -0
  503. package/apps/studio/client/v2/ai/attach.css +366 -0
  504. package/apps/studio/client/v2/ai/attach.js +186 -0
  505. package/apps/studio/client/v2/ai/chat-list-model.js +333 -0
  506. package/apps/studio/client/v2/ai/chat-store-api.js +93 -0
  507. package/apps/studio/client/{styles/6-acp-chat.css → v2/ai/chat.css} +1152 -797
  508. package/apps/studio/client/v2/ai/connect-flow.js +75 -0
  509. package/apps/studio/client/v2/ai/gate-lines.js +121 -0
  510. package/apps/studio/client/v2/ai/icons.jsx +66 -0
  511. package/apps/studio/client/v2/ai/jump-model.js +61 -0
  512. package/apps/studio/client/v2/ai/made-by-ai.js +179 -0
  513. package/apps/studio/client/v2/ai/needs-you-store.js +112 -0
  514. package/apps/studio/client/v2/ai/needs-you-toast.js +104 -0
  515. package/apps/studio/client/v2/ai/needs-you.css +554 -0
  516. package/apps/studio/client/v2/ai/needs-you.js +391 -0
  517. package/apps/studio/client/v2/ai/panel-focus.js +71 -0
  518. package/apps/studio/client/v2/ai/panel.css +88 -0
  519. package/apps/studio/client/v2/ai/paste-chips.jsx +108 -0
  520. package/apps/studio/client/v2/ai/picked-shots.js +48 -0
  521. package/apps/studio/client/v2/ai/quit.css +64 -0
  522. package/apps/studio/client/v2/ai/result-shown.js +50 -0
  523. package/apps/studio/client/v2/ai/ring-relay.js +143 -0
  524. package/apps/studio/client/v2/ai/row-slots-lane.js +67 -0
  525. package/apps/studio/client/v2/ai/run-api.js +137 -0
  526. package/apps/studio/client/v2/ai/run-cards.js +31 -0
  527. package/apps/studio/client/v2/ai/run-compare.js +60 -0
  528. package/apps/studio/client/v2/ai/run-icons.jsx +53 -0
  529. package/apps/studio/client/v2/ai/run-model.js +348 -0
  530. package/apps/studio/client/v2/ai/runs-model.js +568 -0
  531. package/apps/studio/client/v2/ai/runs-store.js +161 -0
  532. package/apps/studio/client/v2/ai/runs.css +226 -0
  533. package/apps/studio/client/v2/ai/scope.js +298 -0
  534. package/apps/studio/client/v2/ai/seen-relay.js +95 -0
  535. package/apps/studio/client/v2/ai/sent-attachments.js +77 -0
  536. package/apps/studio/client/v2/ai/stopped.js +69 -0
  537. package/apps/studio/client/v2/ai/suggest-why.js +200 -0
  538. package/apps/studio/client/v2/ai/use-ai-scope.js +198 -0
  539. package/apps/studio/client/v2/ai/use-ask-ai.js +63 -0
  540. package/apps/studio/client/v2/ai/use-ask-selection.js +41 -0
  541. package/apps/studio/client/v2/ai/use-attachments.js +239 -0
  542. package/apps/studio/client/v2/ai/use-chat-runs.js +32 -0
  543. package/apps/studio/client/v2/ai/use-run-versions.js +39 -0
  544. package/apps/studio/client/v2/ai/video/ClipsAttached.jsx +23 -0
  545. package/apps/studio/client/v2/ai/video/LeftOut.jsx +29 -0
  546. package/apps/studio/client/v2/ai/video/WatchProgress.jsx +65 -0
  547. package/apps/studio/client/v2/ai/video/card-model.js +107 -0
  548. package/apps/studio/client/v2/ai/video/cards.jsx +51 -0
  549. package/apps/studio/client/v2/ai/video/clip-pic.js +12 -0
  550. package/apps/studio/client/v2/ai/video/video-cards.css +168 -0
  551. package/apps/studio/client/v2/annotations/annotation-asks.js +171 -0
  552. package/apps/studio/client/v2/annotations/annotation-list-model.js +238 -0
  553. package/apps/studio/client/v2/annotations/annotation-list.css +277 -0
  554. package/apps/studio/client/v2/annotations/annotation-list.jsx +433 -0
  555. package/apps/studio/client/v2/annotations/recent-stickers.js +64 -0
  556. package/apps/studio/client/v2/annotations/stamp-row.jsx +66 -0
  557. package/apps/studio/client/v2/annotations/stamps-glyphs.jsx +35 -0
  558. package/apps/studio/client/v2/annotations/sticker-preload.js +44 -0
  559. package/apps/studio/client/v2/annotations/sticker-search.js +155 -0
  560. package/apps/studio/client/v2/annotations/stickers-gallery.css +295 -0
  561. package/apps/studio/client/v2/annotations/stickers-gallery.jsx +454 -0
  562. package/apps/studio/client/v2/annotations/templates-panel.css +344 -0
  563. package/apps/studio/client/v2/annotations/templates-panel.jsx +240 -0
  564. package/apps/studio/client/v2/annotations/v2-scope.js +20 -0
  565. package/apps/studio/client/v2/annotations/vote-bar.jsx +212 -0
  566. package/apps/studio/client/v2/annotations/vote-sheet.jsx +200 -0
  567. package/apps/studio/client/v2/annotations/vote-store.js +392 -0
  568. package/apps/studio/client/v2/annotations/vote.css +153 -0
  569. package/apps/studio/client/v2/assets/ask-once.js +65 -0
  570. package/apps/studio/client/v2/assets/asset-drop-session.js +238 -0
  571. package/apps/studio/client/v2/assets/asset-state-lane.js +267 -0
  572. package/apps/studio/client/v2/assets/assets-bus.js +109 -0
  573. package/apps/studio/client/v2/assets/browse-model.js +90 -0
  574. package/apps/studio/client/v2/assets/browse-view.jsx +202 -0
  575. package/apps/studio/client/v2/assets/canvas-drop-catcher.jsx +114 -0
  576. package/apps/studio/client/v2/assets/connect-key-sheet.jsx +69 -0
  577. package/apps/studio/client/v2/assets/copy-asset.js +37 -0
  578. package/apps/studio/client/v2/assets/describe-client.js +156 -0
  579. package/apps/studio/client/v2/assets/describe-consent.jsx +184 -0
  580. package/apps/studio/client/v2/assets/describe.css +72 -0
  581. package/apps/studio/client/v2/assets/details-advanced.jsx +76 -0
  582. package/apps/studio/client/v2/assets/details-model.js +233 -0
  583. package/apps/studio/client/v2/assets/details.jsx +292 -0
  584. package/apps/studio/client/v2/assets/generate-ask.jsx +506 -0
  585. package/apps/studio/client/v2/assets/generated.js +83 -0
  586. package/apps/studio/client/v2/assets/import-lines.js +228 -0
  587. package/apps/studio/client/v2/assets/import-offline.js +32 -0
  588. package/apps/studio/client/v2/assets/import-toast.js +56 -0
  589. package/apps/studio/client/v2/assets/just-added.js +32 -0
  590. package/apps/studio/client/v2/assets/kinds-chip.jsx +77 -0
  591. package/apps/studio/client/v2/assets/library-foot.js +42 -0
  592. package/apps/studio/client/v2/assets/missing-frame.css +60 -0
  593. package/apps/studio/client/v2/assets/missing-frame.jsx +218 -0
  594. package/apps/studio/client/v2/assets/multi-select.js +58 -0
  595. package/apps/studio/client/v2/assets/place-asset.js +128 -0
  596. package/apps/studio/client/v2/assets/relink.js +96 -0
  597. package/apps/studio/client/v2/assets/rename-asset.js +83 -0
  598. package/apps/studio/client/v2/assets/search-marks.jsx +75 -0
  599. package/apps/studio/client/v2/assets/takes-overlay.jsx +86 -0
  600. package/apps/studio/client/v2/assets/takes.css +177 -0
  601. package/apps/studio/client/v2/assets/takes.js +224 -0
  602. package/apps/studio/client/v2/assets/tidy.jsx +144 -0
  603. package/apps/studio/client/v2/assets/tile-drag.js +53 -0
  604. package/apps/studio/client/v2/assets/tile-menu.jsx +119 -0
  605. package/apps/studio/client/v2/assets/tile.jsx +131 -0
  606. package/apps/studio/client/v2/assets/trash-assets.js +98 -0
  607. package/apps/studio/client/v2/assets/use-asset-details.js +58 -0
  608. package/apps/studio/client/v2/assets/use-assets.js +121 -0
  609. package/apps/studio/client/v2/assets/use-takes-lane.js +150 -0
  610. package/apps/studio/client/v2/canvases/canvas-icons.jsx +107 -0
  611. package/apps/studio/client/v2/canvases/canvases-panel.jsx +1466 -0
  612. package/apps/studio/client/v2/canvases/canvases.css +699 -0
  613. package/apps/studio/client/v2/canvases/covers.js +32 -0
  614. package/apps/studio/client/v2/canvases/inline-rename.jsx +122 -0
  615. package/apps/studio/client/v2/canvases/jump-list.jsx +100 -0
  616. package/apps/studio/client/v2/canvases/jump-model.js +102 -0
  617. package/apps/studio/client/v2/canvases/kept-on-this-mac.jsx +192 -0
  618. package/apps/studio/client/v2/canvases/last-canvas.js +36 -0
  619. package/apps/studio/client/v2/canvases/move-model.js +45 -0
  620. package/apps/studio/client/v2/canvases/move-sheet.jsx +91 -0
  621. package/apps/studio/client/v2/canvases/open-link.js +154 -0
  622. package/apps/studio/client/v2/canvases/panel-search.js +156 -0
  623. package/apps/studio/client/v2/canvases/rename-model.js +134 -0
  624. package/apps/studio/client/v2/canvases/row-menu.jsx +145 -0
  625. package/apps/studio/client/v2/canvases/row-slots.js +224 -0
  626. package/apps/studio/client/v2/canvases/sort.js +132 -0
  627. package/apps/studio/client/v2/canvases/support-model.js +68 -0
  628. package/apps/studio/client/v2/canvases/trash-canvas.js +120 -0
  629. package/apps/studio/client/v2/canvases/tree-model.js +760 -0
  630. package/apps/studio/client/v2/canvases/use-canvas-index.js +50 -0
  631. package/apps/studio/client/v2/canvases/use-canvases-sort.js +59 -0
  632. package/apps/studio/client/v2/canvases/use-move.js +61 -0
  633. package/apps/studio/client/v2/canvases/use-pins.js +80 -0
  634. package/apps/studio/client/v2/cloud/browser-door.js +152 -0
  635. package/apps/studio/client/v2/cloud/cloud-name.js +38 -0
  636. package/apps/studio/client/v2/code/canvas-error-card.jsx +407 -0
  637. package/apps/studio/client/v2/code/canvas-imports-card.jsx +31 -0
  638. package/apps/studio/client/v2/code/code-bus.js +63 -0
  639. package/apps/studio/client/v2/code/code-view.jsx +277 -0
  640. package/apps/studio/client/v2/code/code.css +373 -0
  641. package/apps/studio/client/v2/code/highlight.js +163 -0
  642. package/apps/studio/client/v2/code/use-canvas-source.js +338 -0
  643. package/apps/studio/client/v2/comments/comment-bridge.js +154 -0
  644. package/apps/studio/client/v2/comments/comment-client.js +84 -0
  645. package/apps/studio/client/v2/comments/comment-tool.js +18 -0
  646. package/apps/studio/client/v2/comments/comments-model.js +213 -0
  647. package/apps/studio/client/v2/comments/comments-panel.jsx +400 -0
  648. package/apps/studio/client/v2/comments/comments.css +305 -0
  649. package/apps/studio/client/v2/comments/mention-callouts.jsx +90 -0
  650. package/apps/studio/client/v2/comments/mention-model.js +118 -0
  651. package/apps/studio/client/v2/comments/native-mention-notice.js +73 -0
  652. package/apps/studio/client/v2/comments/reply-focus.js +30 -0
  653. package/apps/studio/client/v2/comments/use-comments-shell.jsx +176 -0
  654. package/apps/studio/client/v2/create/NameDialog.jsx +95 -0
  655. package/apps/studio/client/v2/create/NameDialogHost.jsx +141 -0
  656. package/apps/studio/client/v2/create/create-project.css +260 -0
  657. package/apps/studio/client/v2/create/duplicate-done.js +45 -0
  658. package/apps/studio/client/v2/create/empty-project.css +113 -0
  659. package/apps/studio/client/v2/create/empty-project.jsx +162 -0
  660. package/apps/studio/client/v2/create/first-draft.js +30 -0
  661. package/apps/studio/client/v2/create/intent-host.jsx +40 -0
  662. package/apps/studio/client/v2/create/name-dialog-bus.js +41 -0
  663. package/apps/studio/client/v2/create/name-dialog.css +36 -0
  664. package/apps/studio/client/v2/create/new-canvas.js +64 -0
  665. package/apps/studio/client/v2/create/open-sizes.js +41 -0
  666. package/apps/studio/client/v2/create/render-error.css +29 -0
  667. package/apps/studio/client/v2/create/render-error.jsx +107 -0
  668. package/apps/studio/client/v2/create/repair-offer.js +36 -0
  669. package/apps/studio/client/v2/create/take-intent.js +154 -0
  670. package/apps/studio/client/v2/create/use-project-empty.js +85 -0
  671. package/apps/studio/client/v2/create/use-render-error.js +116 -0
  672. package/apps/studio/client/v2/diagnostics/diagnostics-bus.js +47 -0
  673. package/apps/studio/client/v2/diagnostics/diagnostics-handlers.js +108 -0
  674. package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +196 -0
  675. package/apps/studio/client/v2/diagnostics/diagnostics-model.js +253 -0
  676. package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +557 -0
  677. package/apps/studio/client/v2/diagnostics/diagnostics.css +612 -0
  678. package/apps/studio/client/v2/diagnostics/resync-model.js +51 -0
  679. package/apps/studio/client/v2/diagnostics/resync-run.js +79 -0
  680. package/apps/studio/client/v2/diagnostics/sync-actions.js +38 -0
  681. package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +241 -0
  682. package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +392 -0
  683. package/apps/studio/client/v2/diagnostics/use-diagnostics-menu.js +58 -0
  684. package/apps/studio/client/v2/ds/advanced-bus.js +40 -0
  685. package/apps/studio/client/v2/ds/advanced-host.jsx +228 -0
  686. package/apps/studio/client/v2/ds/advanced-model.js +110 -0
  687. package/apps/studio/client/v2/ds/advanced-store.js +47 -0
  688. package/apps/studio/client/v2/ds/advanced.css +277 -0
  689. package/apps/studio/client/v2/ds/advanced.jsx +203 -0
  690. package/apps/studio/client/v2/ds/check-card.jsx +80 -0
  691. package/apps/studio/client/v2/ds/colour-picker.jsx +121 -0
  692. package/apps/studio/client/v2/ds/colour-words.js +48 -0
  693. package/apps/studio/client/v2/ds/conflict-pick.jsx +151 -0
  694. package/apps/studio/client/v2/ds/contrast-warning.jsx +80 -0
  695. package/apps/studio/client/v2/ds/contrast.js +137 -0
  696. package/apps/studio/client/v2/ds/convert-dialog.jsx +133 -0
  697. package/apps/studio/client/v2/ds/convert-host.jsx +143 -0
  698. package/apps/studio/client/v2/ds/convert-model.js +221 -0
  699. package/apps/studio/client/v2/ds/default-write.js +69 -0
  700. package/apps/studio/client/v2/ds/direction-bar.jsx +287 -0
  701. package/apps/studio/client/v2/ds/door-write.js +163 -0
  702. package/apps/studio/client/v2/ds/edge-model.js +151 -0
  703. package/apps/studio/client/v2/ds/edge-write.js +91 -0
  704. package/apps/studio/client/v2/ds/edges.css +152 -0
  705. package/apps/studio/client/v2/ds/follower-swap.js +88 -0
  706. package/apps/studio/client/v2/ds/go-to.js +71 -0
  707. package/apps/studio/client/v2/ds/kinds/master.jsx +214 -0
  708. package/apps/studio/client/v2/ds/kinds/token.jsx +546 -0
  709. package/apps/studio/client/v2/ds/library-bus.js +43 -0
  710. package/apps/studio/client/v2/ds/library-card.jsx +379 -0
  711. package/apps/studio/client/v2/ds/library-host.jsx +436 -0
  712. package/apps/studio/client/v2/ds/library-model.js +305 -0
  713. package/apps/studio/client/v2/ds/library-store.js +45 -0
  714. package/apps/studio/client/v2/ds/library.css +148 -0
  715. package/apps/studio/client/v2/ds/make-host.jsx +244 -0
  716. package/apps/studio/client/v2/ds/make-model.js +208 -0
  717. package/apps/studio/client/v2/ds/make-sheet.jsx +264 -0
  718. package/apps/studio/client/v2/ds/make-write.js +90 -0
  719. package/apps/studio/client/v2/ds/make.css +242 -0
  720. package/apps/studio/client/v2/ds/master-write.js +145 -0
  721. package/apps/studio/client/v2/ds/new-canvas-default.js +89 -0
  722. package/apps/studio/client/v2/ds/off-system-host.jsx +107 -0
  723. package/apps/studio/client/v2/ds/off-system.jsx +101 -0
  724. package/apps/studio/client/v2/ds/outside-banner.jsx +153 -0
  725. package/apps/studio/client/v2/ds/pinned-rows.js +138 -0
  726. package/apps/studio/client/v2/ds/pins.js +102 -0
  727. package/apps/studio/client/v2/ds/preview-bar.jsx +220 -0
  728. package/apps/studio/client/v2/ds/preview-doors.js +47 -0
  729. package/apps/studio/client/v2/ds/preview-mode.js +163 -0
  730. package/apps/studio/client/v2/ds/reach-data.js +68 -0
  731. package/apps/studio/client/v2/ds/reach-model.js +184 -0
  732. package/apps/studio/client/v2/ds/reach-view.jsx +577 -0
  733. package/apps/studio/client/v2/ds/reach.css +298 -0
  734. package/apps/studio/client/v2/ds/rename-write.js +88 -0
  735. package/apps/studio/client/v2/ds/review-bus.js +41 -0
  736. package/apps/studio/client/v2/ds/review-host.jsx +438 -0
  737. package/apps/studio/client/v2/ds/review-model.js +307 -0
  738. package/apps/studio/client/v2/ds/review-sheet.jsx +390 -0
  739. package/apps/studio/client/v2/ds/review.css +894 -0
  740. package/apps/studio/client/v2/ds/row-dots.js +41 -0
  741. package/apps/studio/client/v2/ds/switch-bus.js +56 -0
  742. package/apps/studio/client/v2/ds/switch-host.jsx +241 -0
  743. package/apps/studio/client/v2/ds/switch-model.js +254 -0
  744. package/apps/studio/client/v2/ds/switch-sheet.jsx +364 -0
  745. package/apps/studio/client/v2/ds/switch.css +263 -0
  746. package/apps/studio/client/v2/ds/system-menu.jsx +81 -0
  747. package/apps/studio/client/v2/ds/system-rename.jsx +102 -0
  748. package/apps/studio/client/v2/ds/token-write.js +241 -0
  749. package/apps/studio/client/v2/ds/token.css +185 -0
  750. package/apps/studio/client/v2/ds/trash-token-sheet.jsx +112 -0
  751. package/apps/studio/client/v2/ds/truth-card.jsx +85 -0
  752. package/apps/studio/client/v2/ds/truth-host.jsx +239 -0
  753. package/apps/studio/client/v2/ds/truth-model.js +315 -0
  754. package/apps/studio/client/v2/ds/truth-store.js +45 -0
  755. package/apps/studio/client/v2/ds/truth.css +143 -0
  756. package/apps/studio/client/v2/ds/update-available.jsx +261 -0
  757. package/apps/studio/client/v2/ds/update-dots.js +103 -0
  758. package/apps/studio/client/v2/ds/update-model.js +295 -0
  759. package/apps/studio/client/v2/ds/upgrade-bus.js +40 -0
  760. package/apps/studio/client/v2/ds/upgrade-host.jsx +185 -0
  761. package/apps/studio/client/v2/ds/upgrade-model.js +266 -0
  762. package/apps/studio/client/v2/ds/upgrade-offers.js +34 -0
  763. package/apps/studio/client/v2/ds/upgrade-sheet.jsx +277 -0
  764. package/apps/studio/client/v2/ds/upgrade.css +166 -0
  765. package/apps/studio/client/v2/ds/use-covers.js +27 -0
  766. package/apps/studio/client/v2/ds/use-ds-frames.js +165 -0
  767. package/apps/studio/client/v2/ds/use-ds-model.js +61 -0
  768. package/apps/studio/client/v2/ds/use-ds-search.js +61 -0
  769. package/apps/studio/client/v2/ds/use-ds-state.js +65 -0
  770. package/apps/studio/client/v2/ds/uses-link.jsx +58 -0
  771. package/apps/studio/client/v2/empty/all-trashed-model.js +321 -0
  772. package/apps/studio/client/v2/empty/all-trashed-relay.js +65 -0
  773. package/apps/studio/client/v2/empty/all-trashed.jsx +229 -0
  774. package/apps/studio/client/v2/empty/arriving.jsx +180 -0
  775. package/apps/studio/client/v2/empty/artboard-hint.jsx +47 -0
  776. package/apps/studio/client/v2/empty/ask-button.jsx +35 -0
  777. package/apps/studio/client/v2/empty/confetti.jsx +46 -0
  778. package/apps/studio/client/v2/empty/empty-canvas.jsx +96 -0
  779. package/apps/studio/client/v2/empty/empty-copy.js +265 -0
  780. package/apps/studio/client/v2/empty/empty-hint-store.js +31 -0
  781. package/apps/studio/client/v2/empty/empty-host.jsx +168 -0
  782. package/apps/studio/client/v2/empty/empty.css +440 -0
  783. package/apps/studio/client/v2/empty/empty.jsx +162 -0
  784. package/apps/studio/client/v2/empty/fill-ask.js +22 -0
  785. package/apps/studio/client/v2/empty/free-centre.js +11 -0
  786. package/apps/studio/client/v2/empty/index.js +40 -0
  787. package/apps/studio/client/v2/empty/layers-empty.jsx +22 -0
  788. package/apps/studio/client/v2/empty/not-local.jsx +111 -0
  789. package/apps/studio/client/v2/empty/select-new-artboard.js +32 -0
  790. package/apps/studio/client/v2/empty/skeleton.jsx +51 -0
  791. package/apps/studio/client/v2/empty/spot-art.jsx +923 -0
  792. package/apps/studio/client/v2/empty/spot.jsx +96 -0
  793. package/apps/studio/client/v2/empty/suggestions.jsx +18 -0
  794. package/apps/studio/client/v2/empty/use-empty-canvas.js +251 -0
  795. package/apps/studio/client/v2/export/access-line.jsx +48 -0
  796. package/apps/studio/client/v2/export/advanced/advanced-copy.js +77 -0
  797. package/apps/studio/client/v2/export/advanced/advanced.css +252 -0
  798. package/apps/studio/client/v2/export/advanced/advanced.jsx +148 -0
  799. package/apps/studio/client/v2/export/advanced/command.js +128 -0
  800. package/apps/studio/client/v2/export/advanced/command.jsx +50 -0
  801. package/apps/studio/client/v2/export/advanced/fields.jsx +132 -0
  802. package/apps/studio/client/v2/export/advanced/image.jsx +124 -0
  803. package/apps/studio/client/v2/export/advanced/model.js +199 -0
  804. package/apps/studio/client/v2/export/advanced/names.jsx +65 -0
  805. package/apps/studio/client/v2/export/advanced/print.jsx +99 -0
  806. package/apps/studio/client/v2/export/advanced/render.jsx +63 -0
  807. package/apps/studio/client/v2/export/advanced/video.jsx +76 -0
  808. package/apps/studio/client/v2/export/annotations-policy.js +28 -0
  809. package/apps/studio/client/v2/export/cloud-queue.js +69 -0
  810. package/apps/studio/client/v2/export/copy-command.js +72 -0
  811. package/apps/studio/client/v2/export/copy-png.js +144 -0
  812. package/apps/studio/client/v2/export/done-toast.jsx +89 -0
  813. package/apps/studio/client/v2/export/edges.css +74 -0
  814. package/apps/studio/client/v2/export/export-copy.js +352 -0
  815. package/apps/studio/client/v2/export/export-sheet.jsx +804 -0
  816. package/apps/studio/client/v2/export/export-sizes.js +217 -0
  817. package/apps/studio/client/v2/export/export.css +832 -0
  818. package/apps/studio/client/v2/export/exports-model.js +383 -0
  819. package/apps/studio/client/v2/export/exports-panel.css +192 -0
  820. package/apps/studio/client/v2/export/exports-panel.jsx +164 -0
  821. package/apps/studio/client/v2/export/file-rows.jsx +84 -0
  822. package/apps/studio/client/v2/export/inspector-export.jsx +335 -0
  823. package/apps/studio/client/v2/export/job-row.jsx +358 -0
  824. package/apps/studio/client/v2/export/last-finished.js +34 -0
  825. package/apps/studio/client/v2/export/native-save.js +160 -0
  826. package/apps/studio/client/v2/export/other-formats.jsx +199 -0
  827. package/apps/studio/client/v2/export/parts.jsx +117 -0
  828. package/apps/studio/client/v2/export/preflight/fonts.js +27 -0
  829. package/apps/studio/client/v2/export/preflight/paper.jsx +177 -0
  830. package/apps/studio/client/v2/export/preflight/safe-margin.js +24 -0
  831. package/apps/studio/client/v2/export/preflight/use-preflight.js +74 -0
  832. package/apps/studio/client/v2/export/preview.jsx +79 -0
  833. package/apps/studio/client/v2/export/print.css +219 -0
  834. package/apps/studio/client/v2/export/run-export.js +177 -0
  835. package/apps/studio/client/v2/export/scope-bar.jsx +70 -0
  836. package/apps/studio/client/v2/export/sections/batch-model.js +224 -0
  837. package/apps/studio/client/v2/export/sections/batch.jsx +235 -0
  838. package/apps/studio/client/v2/export/sections/image.jsx +93 -0
  839. package/apps/studio/client/v2/export/sections/print-copy.js +41 -0
  840. package/apps/studio/client/v2/export/sections/print.jsx +285 -0
  841. package/apps/studio/client/v2/export/sections/render-row.jsx +81 -0
  842. package/apps/studio/client/v2/export/sections/version.jsx +176 -0
  843. package/apps/studio/client/v2/export/sections/video-copy.js +92 -0
  844. package/apps/studio/client/v2/export/sections/video-model.js +127 -0
  845. package/apps/studio/client/v2/export/sections/video.jsx +397 -0
  846. package/apps/studio/client/v2/export/sections/web.jsx +151 -0
  847. package/apps/studio/client/v2/export/share-hint.jsx +51 -0
  848. package/apps/studio/client/v2/export/use-export-spec.js +546 -0
  849. package/apps/studio/client/v2/export/video-content.js +75 -0
  850. package/apps/studio/client/v2/export/video.css +221 -0
  851. package/apps/studio/client/v2/fold/advanced-fold.jsx +96 -0
  852. package/apps/studio/client/v2/fold/fold-store.js +151 -0
  853. package/apps/studio/client/v2/fold/fold.css +59 -0
  854. package/apps/studio/client/v2/fold/use-fold.js +36 -0
  855. package/apps/studio/client/v2/handoff/edges.jsx +74 -0
  856. package/apps/studio/client/v2/handoff/handoff-sheet.jsx +469 -0
  857. package/apps/studio/client/v2/handoff/handoff.css +181 -0
  858. package/apps/studio/client/v2/handoff/ready-card.jsx +84 -0
  859. package/apps/studio/client/v2/handoff/targets.js +111 -0
  860. package/apps/studio/client/v2/help/add-guides.js +43 -0
  861. package/apps/studio/client/v2/help/help.css +995 -0
  862. package/apps/studio/client/v2/history/blame.js +161 -0
  863. package/apps/studio/client/v2/history/branch-actions.js +214 -0
  864. package/apps/studio/client/v2/history/change-list.jsx +102 -0
  865. package/apps/studio/client/v2/history/clear-band.js +144 -0
  866. package/apps/studio/client/v2/history/compare-store.js +80 -0
  867. package/apps/studio/client/v2/history/compare-view.jsx +318 -0
  868. package/apps/studio/client/v2/history/compare-words.js +8 -0
  869. package/apps/studio/client/v2/history/git-advanced.jsx +580 -0
  870. package/apps/studio/client/v2/history/git-io.js +58 -0
  871. package/apps/studio/client/v2/history/git-model.js +526 -0
  872. package/apps/studio/client/v2/history/git-parts.jsx +662 -0
  873. package/apps/studio/client/v2/history/history-host.jsx +78 -0
  874. package/apps/studio/client/v2/history/history-panel.jsx +599 -0
  875. package/apps/studio/client/v2/history/history.css +1477 -0
  876. package/apps/studio/client/v2/history/name-dialog.jsx +109 -0
  877. package/apps/studio/client/v2/history/object-filter.js +143 -0
  878. package/apps/studio/client/v2/history/object-history-ask.js +62 -0
  879. package/apps/studio/client/v2/history/object-view.jsx +236 -0
  880. package/apps/studio/client/v2/history/rows.ts +445 -0
  881. package/apps/studio/client/v2/history/use-versions.js +391 -0
  882. package/apps/studio/client/v2/history/view-bar.jsx +80 -0
  883. package/apps/studio/client/v2/import/brand-model.js +145 -0
  884. package/apps/studio/client/v2/import/brand-result.jsx +197 -0
  885. package/apps/studio/client/v2/import/brand-sheet.jsx +434 -0
  886. package/apps/studio/client/v2/import/brand.css +378 -0
  887. package/apps/studio/client/v2/import/figma-artboard.jsx +121 -0
  888. package/apps/studio/client/v2/import/figma-model.js +237 -0
  889. package/apps/studio/client/v2/import/figma-prefill.js +23 -0
  890. package/apps/studio/client/v2/import/figma-sheet.jsx +525 -0
  891. package/apps/studio/client/v2/import/figma-summary.jsx +62 -0
  892. package/apps/studio/client/v2/import/figma.css +179 -0
  893. package/apps/studio/client/v2/import/frame-picker.jsx +57 -0
  894. package/apps/studio/client/v2/inspect/inspect-host.jsx +53 -0
  895. package/apps/studio/client/v2/inspect/inspect-model.js +132 -0
  896. package/apps/studio/client/v2/inspect/inspect-panel.jsx +214 -0
  897. package/apps/studio/client/v2/inspect/inspect.css +87 -0
  898. package/apps/studio/client/v2/inspector/advanced-rows-default.jsx +773 -0
  899. package/apps/studio/client/v2/inspector/advanced-rows.js +106 -0
  900. package/apps/studio/client/v2/inspector/advanced.jsx +286 -0
  901. package/apps/studio/client/v2/inspector/blocks.js +57 -0
  902. package/apps/studio/client/v2/inspector/colour-groups.js +129 -0
  903. package/apps/studio/client/v2/inspector/component-picker.css +133 -0
  904. package/apps/studio/client/v2/inspector/component-picker.jsx +367 -0
  905. package/apps/studio/client/v2/inspector/crumbs.jsx +89 -0
  906. package/apps/studio/client/v2/inspector/css-text.js +179 -0
  907. package/apps/studio/client/v2/inspector/css-write.js +204 -0
  908. package/apps/studio/client/v2/inspector/element-code.js +39 -0
  909. package/apps/studio/client/v2/inspector/element-id.js +70 -0
  910. package/apps/studio/client/v2/inspector/formats-ui.js +101 -0
  911. package/apps/studio/client/v2/inspector/formats-write.js +60 -0
  912. package/apps/studio/client/v2/inspector/frame.jsx +336 -0
  913. package/apps/studio/client/v2/inspector/inspector-actions.js +60 -0
  914. package/apps/studio/client/v2/inspector/inspector.css +2872 -0
  915. package/apps/studio/client/v2/inspector/jsx-slice.js +219 -0
  916. package/apps/studio/client/v2/inspector/kinds/add-width.js +55 -0
  917. package/apps/studio/client/v2/inspector/kinds/artboard-advanced-rows.jsx +89 -0
  918. package/apps/studio/client/v2/inspector/kinds/artboard-advanced.jsx +62 -0
  919. package/apps/studio/client/v2/inspector/kinds/artboard-fixed.jsx +111 -0
  920. package/apps/studio/client/v2/inspector/kinds/artboard-kinds-model.js +171 -0
  921. package/apps/studio/client/v2/inspector/kinds/artboard-model.js +155 -0
  922. package/apps/studio/client/v2/inspector/kinds/artboard-multi.jsx +142 -0
  923. package/apps/studio/client/v2/inspector/kinds/artboard-print-advanced.jsx +210 -0
  924. package/apps/studio/client/v2/inspector/kinds/artboard-print-model.js +112 -0
  925. package/apps/studio/client/v2/inspector/kinds/artboard-print.jsx +268 -0
  926. package/apps/studio/client/v2/inspector/kinds/artboard-rows.jsx +124 -0
  927. package/apps/studio/client/v2/inspector/kinds/artboard-video.jsx +144 -0
  928. package/apps/studio/client/v2/inspector/kinds/artboard-web.jsx +170 -0
  929. package/apps/studio/client/v2/inspector/kinds/artboard.jsx +168 -0
  930. package/apps/studio/client/v2/inspector/kinds/caption.jsx +203 -0
  931. package/apps/studio/client/v2/inspector/kinds/clip-model.js +190 -0
  932. package/apps/studio/client/v2/inspector/kinds/clip.css +157 -0
  933. package/apps/studio/client/v2/inspector/kinds/clip.jsx +447 -0
  934. package/apps/studio/client/v2/inspector/kinds/frame.jsx +118 -0
  935. package/apps/studio/client/v2/inspector/kinds/image.jsx +267 -0
  936. package/apps/studio/client/v2/inspector/kinds/index.js +180 -0
  937. package/apps/studio/client/v2/inspector/kinds/instance.jsx +377 -0
  938. package/apps/studio/client/v2/inspector/kinds/multi-artboard.jsx +129 -0
  939. package/apps/studio/client/v2/inspector/kinds/multi.jsx +220 -0
  940. package/apps/studio/client/v2/inspector/kinds/music.jsx +294 -0
  941. package/apps/studio/client/v2/inspector/kinds/path.jsx +174 -0
  942. package/apps/studio/client/v2/inspector/kinds/shape.jsx +59 -0
  943. package/apps/studio/client/v2/inspector/kinds/text.jsx +518 -0
  944. package/apps/studio/client/v2/inspector/kinds/title-rows.jsx +135 -0
  945. package/apps/studio/client/v2/inspector/kinds/video-facts.js +142 -0
  946. package/apps/studio/client/v2/inspector/layers-row-tools.jsx +93 -0
  947. package/apps/studio/client/v2/inspector/layers-slot.jsx +93 -0
  948. package/apps/studio/client/v2/inspector/link-write.js +52 -0
  949. package/apps/studio/client/v2/inspector/live-size.js +96 -0
  950. package/apps/studio/client/v2/inspector/model.js +228 -0
  951. package/apps/studio/client/v2/inspector/path-point.js +104 -0
  952. package/apps/studio/client/v2/inspector/print-write.js +85 -0
  953. package/apps/studio/client/v2/inspector/safe-zones-write.js +88 -0
  954. package/apps/studio/client/v2/inspector/sections/add-requests.js +35 -0
  955. package/apps/studio/client/v2/inspector/sections/border.jsx +141 -0
  956. package/apps/studio/client/v2/inspector/sections/color-control.jsx +246 -0
  957. package/apps/studio/client/v2/inspector/sections/colour-custom.jsx +826 -0
  958. package/apps/studio/client/v2/inspector/sections/colour-model.js +404 -0
  959. package/apps/studio/client/v2/inspector/sections/colour-popover.jsx +631 -0
  960. package/apps/studio/client/v2/inspector/sections/colour-words.js +131 -0
  961. package/apps/studio/client/v2/inspector/sections/corners.jsx +177 -0
  962. package/apps/studio/client/v2/inspector/sections/effects.jsx +67 -0
  963. package/apps/studio/client/v2/inspector/sections/export-slot.jsx +60 -0
  964. package/apps/studio/client/v2/inspector/sections/fill.jsx +187 -0
  965. package/apps/studio/client/v2/inspector/sections/formats.jsx +209 -0
  966. package/apps/studio/client/v2/inspector/sections/index.js +74 -0
  967. package/apps/studio/client/v2/inspector/sections/interaction.jsx +204 -0
  968. package/apps/studio/client/v2/inspector/sections/layout.jsx +314 -0
  969. package/apps/studio/client/v2/inspector/sections/opacity-row.jsx +37 -0
  970. package/apps/studio/client/v2/inspector/sections/point.jsx +102 -0
  971. package/apps/studio/client/v2/inspector/sections/position.jsx +259 -0
  972. package/apps/studio/client/v2/inspector/sections/recent-colours.js +106 -0
  973. package/apps/studio/client/v2/inspector/sections/row.jsx +91 -0
  974. package/apps/studio/client/v2/inspector/sections/safe-zones.jsx +174 -0
  975. package/apps/studio/client/v2/inspector/sections/sections.css +1474 -0
  976. package/apps/studio/client/v2/inspector/sections/size.jsx +104 -0
  977. package/apps/studio/client/v2/inspector/sections/type.jsx +168 -0
  978. package/apps/studio/client/v2/inspector/sections/warnings.css +44 -0
  979. package/apps/studio/client/v2/inspector/sections/warnings.jsx +137 -0
  980. package/apps/studio/client/v2/inspector/sections.js +226 -0
  981. package/apps/studio/client/v2/inspector/slots.js +110 -0
  982. package/apps/studio/client/v2/inspector/token-chip.jsx +315 -0
  983. package/apps/studio/client/v2/inspector/view-mode.jsx +193 -0
  984. package/apps/studio/client/v2/inspector/warning-fix.js +111 -0
  985. package/apps/studio/client/v2/kinds/ConvertDialog.jsx +183 -0
  986. package/apps/studio/client/v2/kinds/KindChips.jsx +60 -0
  987. package/apps/studio/client/v2/kinds/KindDimHost.jsx +35 -0
  988. package/apps/studio/client/v2/kinds/LayersKindFilter.jsx +108 -0
  989. package/apps/studio/client/v2/kinds/SizePicker.jsx +566 -0
  990. package/apps/studio/client/v2/kinds/SizePickerHost.jsx +104 -0
  991. package/apps/studio/client/v2/kinds/advanced-rows.js +40 -0
  992. package/apps/studio/client/v2/kinds/convert-api.js +116 -0
  993. package/apps/studio/client/v2/kinds/convert.css +87 -0
  994. package/apps/studio/client/v2/kinds/kind-dim-relay.js +93 -0
  995. package/apps/studio/client/v2/kinds/kind-filter-model.js +106 -0
  996. package/apps/studio/client/v2/kinds/kind-filter-store.js +71 -0
  997. package/apps/studio/client/v2/kinds/kind-filter.css +105 -0
  998. package/apps/studio/client/v2/kinds/layers-kind-model.js +99 -0
  999. package/apps/studio/client/v2/kinds/size-picker-model.js +189 -0
  1000. package/apps/studio/client/v2/kinds/size-picker.css +393 -0
  1001. package/apps/studio/client/v2/layers/artboard-layers.jsx +105 -0
  1002. package/apps/studio/client/v2/layers/layers.css +94 -0
  1003. package/apps/studio/client/v2/left-panel/advanced-model.js +98 -0
  1004. package/apps/studio/client/v2/left-panel/assets-panel.jsx +1203 -0
  1005. package/apps/studio/client/v2/left-panel/canvas-file-menu.js +115 -0
  1006. package/apps/studio/client/v2/left-panel/canvases-advanced.jsx +270 -0
  1007. package/apps/studio/client/v2/left-panel/canvases-pinned.jsx +274 -0
  1008. package/apps/studio/client/v2/left-panel/layers-advanced.jsx +179 -0
  1009. package/apps/studio/client/v2/left-panel/left-panel-bus.js +83 -0
  1010. package/apps/studio/client/v2/left-panel/left-panel-model.js +184 -0
  1011. package/apps/studio/client/v2/left-panel/left-panel.css +1846 -0
  1012. package/apps/studio/client/v2/left-panel/selector-scope.js +42 -0
  1013. package/apps/studio/client/v2/left-panel/trash-model.js +282 -0
  1014. package/apps/studio/client/v2/left-panel/trash-view.jsx +257 -0
  1015. package/apps/studio/client/v2/left-panel/use-trash.js +172 -0
  1016. package/apps/studio/client/v2/left-panel/view-prefs.js +84 -0
  1017. package/apps/studio/client/v2/onboarding/AdvSheet.jsx +114 -0
  1018. package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +239 -0
  1019. package/apps/studio/client/v2/onboarding/CliSheet.jsx +101 -0
  1020. package/apps/studio/client/v2/onboarding/ConnectAiSheet.jsx +60 -0
  1021. package/apps/studio/client/v2/onboarding/FigmaSheet.jsx +96 -0
  1022. package/apps/studio/client/v2/onboarding/FolderGithubSheet.jsx +77 -0
  1023. package/apps/studio/client/v2/onboarding/GithubSegment.jsx +241 -0
  1024. package/apps/studio/client/v2/onboarding/HubSheet.jsx +244 -0
  1025. package/apps/studio/client/v2/onboarding/connect-ai-home.js +94 -0
  1026. package/apps/studio/client/v2/onboarding/github-home.js +84 -0
  1027. package/apps/studio/client/v2/onboarding/onboarding-model.js +106 -0
  1028. package/apps/studio/client/v2/onboarding/onboarding.css +546 -0
  1029. package/apps/studio/client/v2/photo/apply-every-use-sheet.jsx +196 -0
  1030. package/apps/studio/client/v2/photo/canvas-rel.js +20 -0
  1031. package/apps/studio/client/v2/photo/looks.js +129 -0
  1032. package/apps/studio/client/v2/photo/photo-section.jsx +625 -0
  1033. package/apps/studio/client/v2/photo/photo.css +218 -0
  1034. package/apps/studio/client/v2/portal-scope.jsx +14 -0
  1035. package/apps/studio/client/v2/presence/faces.jsx +356 -0
  1036. package/apps/studio/client/v2/presence/presence.css +187 -0
  1037. package/apps/studio/client/v2/presence/use-presence-host.js +83 -0
  1038. package/apps/studio/client/v2/present/audience-window.js +63 -0
  1039. package/apps/studio/client/v2/present/canvas-pill.jsx +55 -0
  1040. package/apps/studio/client/v2/present/copy-link.js +82 -0
  1041. package/apps/studio/client/v2/present/follow-location.js +82 -0
  1042. package/apps/studio/client/v2/present/follow-model.js +68 -0
  1043. package/apps/studio/client/v2/present/follow-view.jsx +354 -0
  1044. package/apps/studio/client/v2/present/follow.css +91 -0
  1045. package/apps/studio/client/v2/present/order-map.jsx +64 -0
  1046. package/apps/studio/client/v2/present/order-notes-artboards.js +88 -0
  1047. package/apps/studio/client/v2/present/order-notes-model.js +141 -0
  1048. package/apps/studio/client/v2/present/order-notes-mount.jsx +26 -0
  1049. package/apps/studio/client/v2/present/order-notes-sheet.jsx +293 -0
  1050. package/apps/studio/client/v2/present/order-notes.css +150 -0
  1051. package/apps/studio/client/v2/present/present-chrome-host.jsx +95 -0
  1052. package/apps/studio/client/v2/present/present-controls-model.js +114 -0
  1053. package/apps/studio/client/v2/present/present-controls.jsx +263 -0
  1054. package/apps/studio/client/v2/present/present-zoom-store.js +33 -0
  1055. package/apps/studio/client/v2/present/present.css +258 -0
  1056. package/apps/studio/client/v2/present/presenter-button.jsx +25 -0
  1057. package/apps/studio/client/v2/present/presenter-host.jsx +246 -0
  1058. package/apps/studio/client/v2/present/presenter-model.js +167 -0
  1059. package/apps/studio/client/v2/present/presenter-store.js +140 -0
  1060. package/apps/studio/client/v2/present/presenter-view.css +298 -0
  1061. package/apps/studio/client/v2/present/presenter-view.jsx +241 -0
  1062. package/apps/studio/client/v2/present/video-present-model.js +92 -0
  1063. package/apps/studio/client/v2/present/video-present.css +164 -0
  1064. package/apps/studio/client/v2/present/video-present.jsx +331 -0
  1065. package/apps/studio/client/v2/preview/external-link-confirm.jsx +245 -0
  1066. package/apps/studio/client/v2/preview/link-follow.js +109 -0
  1067. package/apps/studio/client/v2/preview/open-in-app.jsx +46 -0
  1068. package/apps/studio/client/v2/preview/preview-back.js +21 -0
  1069. package/apps/studio/client/v2/preview/preview-bar.jsx +86 -0
  1070. package/apps/studio/client/v2/preview/preview-chrome-host.jsx +234 -0
  1071. package/apps/studio/client/v2/preview/preview-history.js +61 -0
  1072. package/apps/studio/client/v2/preview/preview.css +262 -0
  1073. package/apps/studio/client/v2/preview/zoom-only.jsx +58 -0
  1074. package/apps/studio/client/v2/search/help-model.js +275 -0
  1075. package/apps/studio/client/v2/search/moved-keys.js +74 -0
  1076. package/apps/studio/client/v2/search/palette-icons.js +45 -0
  1077. package/apps/studio/client/v2/search/search-ds.js +142 -0
  1078. package/apps/studio/client/v2/search/search-env.js +110 -0
  1079. package/apps/studio/client/v2/search/search-keywords.js +162 -0
  1080. package/apps/studio/client/v2/search/search-model.js +623 -0
  1081. package/apps/studio/client/v2/search/search-projects.js +214 -0
  1082. package/apps/studio/client/v2/search/search-recent.js +94 -0
  1083. package/apps/studio/client/v2/search/search-remote.js +30 -0
  1084. package/apps/studio/client/v2/search/search.css +519 -0
  1085. package/apps/studio/client/v2/settings/account.jsx +164 -0
  1086. package/apps/studio/client/v2/settings/advanced-prefs.js +91 -0
  1087. package/apps/studio/client/v2/settings/advanced-section.jsx +308 -0
  1088. package/apps/studio/client/v2/settings/connection-row.jsx +79 -0
  1089. package/apps/studio/client/v2/settings/connections-model.js +138 -0
  1090. package/apps/studio/client/v2/settings/connections-section.jsx +663 -0
  1091. package/apps/studio/client/v2/settings/general-section.jsx +155 -0
  1092. package/apps/studio/client/v2/settings/parts.jsx +48 -0
  1093. package/apps/studio/client/v2/settings/prefs-migrate.js +141 -0
  1094. package/apps/studio/client/v2/settings/project-sync-settings.jsx +255 -0
  1095. package/apps/studio/client/v2/settings/reset-section.jsx +164 -0
  1096. package/apps/studio/client/v2/settings/settings-handlers.js +46 -0
  1097. package/apps/studio/client/v2/settings/settings-model.js +523 -0
  1098. package/apps/studio/client/v2/settings/settings-sheet.jsx +204 -0
  1099. package/apps/studio/client/v2/settings/settings.css +975 -0
  1100. package/apps/studio/client/v2/settings/theme-auto.js +75 -0
  1101. package/apps/studio/client/v2/settings/use-advanced-prefs.js +32 -0
  1102. package/apps/studio/client/v2/settings/use-connections.js +485 -0
  1103. package/apps/studio/client/v2/share/glyphs.jsx +92 -0
  1104. package/apps/studio/client/v2/share/invite-row.jsx +68 -0
  1105. package/apps/studio/client/v2/share/link-dialog.js +53 -0
  1106. package/apps/studio/client/v2/share/link-row.jsx +38 -0
  1107. package/apps/studio/client/v2/share/move-to-cloud.jsx +88 -0
  1108. package/apps/studio/client/v2/share/people-list.jsx +151 -0
  1109. package/apps/studio/client/v2/share/person.jsx +26 -0
  1110. package/apps/studio/client/v2/share/role-menu.jsx +145 -0
  1111. package/apps/studio/client/v2/share/share-advanced.jsx +411 -0
  1112. package/apps/studio/client/v2/share/share-model.js +469 -0
  1113. package/apps/studio/client/v2/share/share-sheet.jsx +602 -0
  1114. package/apps/studio/client/v2/share/share.css +828 -0
  1115. package/apps/studio/client/v2/shell/account-card-model.js +114 -0
  1116. package/apps/studio/client/v2/shell/account-card.jsx +177 -0
  1117. package/apps/studio/client/v2/shell/annotation-prefs-store.js +105 -0
  1118. package/apps/studio/client/v2/shell/ask-to-edit.js +33 -0
  1119. package/apps/studio/client/v2/shell/callouts-host.jsx +151 -0
  1120. package/apps/studio/client/v2/shell/callouts-model.js +358 -0
  1121. package/apps/studio/client/v2/shell/callouts.css +164 -0
  1122. package/apps/studio/client/v2/shell/callouts.jsx +162 -0
  1123. package/apps/studio/client/v2/shell/canvas-mode.js +393 -0
  1124. package/apps/studio/client/v2/shell/contrast.css +37 -0
  1125. package/apps/studio/client/v2/shell/corner-icons.jsx +153 -0
  1126. package/apps/studio/client/v2/shell/dock-rail-homes.js +106 -0
  1127. package/apps/studio/client/v2/shell/f6-cycle.js +124 -0
  1128. package/apps/studio/client/v2/shell/floating-panels.css +2858 -0
  1129. package/apps/studio/client/v2/shell/fold-ghost.js +70 -0
  1130. package/apps/studio/client/v2/shell/format-update.css +43 -0
  1131. package/apps/studio/client/v2/shell/format-update.js +487 -0
  1132. package/apps/studio/client/v2/shell/format-update.jsx +479 -0
  1133. package/apps/studio/client/v2/shell/held-conflict.js +51 -0
  1134. package/apps/studio/client/v2/shell/image-pick.js +140 -0
  1135. package/apps/studio/client/v2/shell/insets-now.js +35 -0
  1136. package/apps/studio/client/v2/shell/inspector-follow.js +113 -0
  1137. package/apps/studio/client/v2/shell/menu-runner.js +711 -0
  1138. package/apps/studio/client/v2/shell/modal-focus.js +259 -0
  1139. package/apps/studio/client/v2/shell/mode-switch.jsx +418 -0
  1140. package/apps/studio/client/v2/shell/native-doors.js +121 -0
  1141. package/apps/studio/client/v2/shell/occlusion-insets.js +116 -0
  1142. package/apps/studio/client/v2/shell/panel-availability.js +27 -0
  1143. package/apps/studio/client/v2/shell/panel-layout.js +144 -0
  1144. package/apps/studio/client/v2/shell/panel-sizes.js +150 -0
  1145. package/apps/studio/client/v2/shell/paste-forward.js +43 -0
  1146. package/apps/studio/client/v2/shell/present-from-label.js +19 -0
  1147. package/apps/studio/client/v2/shell/project-menu-model.js +216 -0
  1148. package/apps/studio/client/v2/shell/project-pill.css +214 -0
  1149. package/apps/studio/client/v2/shell/project-pill.jsx +456 -0
  1150. package/apps/studio/client/v2/shell/recovery-store.js +139 -0
  1151. package/apps/studio/client/v2/shell/role-denial.js +73 -0
  1152. package/apps/studio/client/v2/shell/role-gate.js +29 -0
  1153. package/apps/studio/client/v2/shell/save-hold-notice.js +69 -0
  1154. package/apps/studio/client/v2/shell/save-status.js +191 -0
  1155. package/apps/studio/client/v2/shell/scroll-lock.js +49 -0
  1156. package/apps/studio/client/v2/shell/share-cluster-host.jsx +389 -0
  1157. package/apps/studio/client/v2/shell/share-cluster.css +608 -0
  1158. package/apps/studio/client/v2/shell/share-cluster.jsx +255 -0
  1159. package/apps/studio/client/v2/shell/shell-error-boundary.jsx +81 -0
  1160. package/apps/studio/client/v2/shell/shell-panels-relay.js +95 -0
  1161. package/apps/studio/client/v2/shell/shell-parity.js +457 -0
  1162. package/apps/studio/client/v2/shell/shell-parity.json +2106 -0
  1163. package/apps/studio/client/v2/shell/single-keys-store.js +49 -0
  1164. package/apps/studio/client/v2/shell/tool-panels.css +39 -0
  1165. package/apps/studio/client/v2/shell/tool-panels.js +156 -0
  1166. package/apps/studio/client/v2/shell/use-account.js +59 -0
  1167. package/apps/studio/client/v2/shell/use-annotation-prefs.js +77 -0
  1168. package/apps/studio/client/v2/shell/use-canvas-mode-lane.js +388 -0
  1169. package/apps/studio/client/v2/shell/use-dismiss-outside.js +35 -0
  1170. package/apps/studio/client/v2/shell/use-fit-on-ai-pin.js +42 -0
  1171. package/apps/studio/client/v2/shell/use-fit-while-ai-drafts.js +37 -0
  1172. package/apps/studio/client/v2/shell/use-occluded-insets.js +107 -0
  1173. package/apps/studio/client/v2/shell/use-panel-layout.js +45 -0
  1174. package/apps/studio/client/v2/shell/use-single-keys.js +56 -0
  1175. package/apps/studio/client/v2/shell/use-tool-panels.js +205 -0
  1176. package/apps/studio/client/v2/signin/CreateLocalSheet.jsx +155 -0
  1177. package/apps/studio/client/v2/signin/SignInCard.jsx +284 -0
  1178. package/apps/studio/client/v2/signin/SignInToast.jsx +22 -0
  1179. package/apps/studio/client/v2/signin/WhatsNewLine.jsx +64 -0
  1180. package/apps/studio/client/v2/signin/advanced-rows.js +40 -0
  1181. package/apps/studio/client/v2/signin/signin-model.js +138 -0
  1182. package/apps/studio/client/v2/signin/signin.css +484 -0
  1183. package/apps/studio/client/v2/signin/use-signin.js +209 -0
  1184. package/apps/studio/client/v2/signin/use-whats-new-line.js +94 -0
  1185. package/apps/studio/client/v2/sync-states/back-online.jsx +61 -0
  1186. package/apps/studio/client/v2/sync-states/conflict-card.jsx +326 -0
  1187. package/apps/studio/client/v2/sync-states/offline-foot.jsx +79 -0
  1188. package/apps/studio/client/v2/sync-states/row-words.js +83 -0
  1189. package/apps/studio/client/v2/sync-states/sync-states-model.js +264 -0
  1190. package/apps/studio/client/v2/sync-states/sync-states.css +232 -0
  1191. package/apps/studio/client/v2/timeline/Timeline.jsx +3194 -0
  1192. package/apps/studio/client/v2/timeline/TimelineHost.jsx +360 -0
  1193. package/apps/studio/client/v2/timeline/advanced/actions.js +27 -0
  1194. package/apps/studio/client/v2/timeline/advanced/advanced-store.js +116 -0
  1195. package/apps/studio/client/v2/timeline/advanced/advanced.css +323 -0
  1196. package/apps/studio/client/v2/timeline/advanced/cut-as-code.jsx +127 -0
  1197. package/apps/studio/client/v2/timeline/advanced/easing-curve.jsx +200 -0
  1198. package/apps/studio/client/v2/timeline/advanced/foot.jsx +210 -0
  1199. package/apps/studio/client/v2/timeline/advanced/model.js +121 -0
  1200. package/apps/studio/client/v2/timeline/advanced/render-settings.jsx +62 -0
  1201. package/apps/studio/client/v2/timeline/advanced/video-cap.js +174 -0
  1202. package/apps/studio/client/v2/timeline/ai-edge-model.js +111 -0
  1203. package/apps/studio/client/v2/timeline/ai-edge.css +104 -0
  1204. package/apps/studio/client/v2/timeline/ai-edge.jsx +113 -0
  1205. package/apps/studio/client/v2/timeline/anchor-lane.js +80 -0
  1206. package/apps/studio/client/v2/timeline/anchor.js +80 -0
  1207. package/apps/studio/client/v2/timeline/assemble-video.js +64 -0
  1208. package/apps/studio/client/v2/timeline/clip-search.js +88 -0
  1209. package/apps/studio/client/v2/timeline/clip-verb.js +224 -0
  1210. package/apps/studio/client/v2/timeline/comment-strip-host.jsx +93 -0
  1211. package/apps/studio/client/v2/timeline/comment-strip-model.js +103 -0
  1212. package/apps/studio/client/v2/timeline/comment-strip.jsx +82 -0
  1213. package/apps/studio/client/v2/timeline/edit/clip-menu.js +118 -0
  1214. package/apps/studio/client/v2/timeline/edit/clip-menu.jsx +48 -0
  1215. package/apps/studio/client/v2/timeline/edit/drop.jsx +101 -0
  1216. package/apps/studio/client/v2/timeline/edit/move.jsx +43 -0
  1217. package/apps/studio/client/v2/timeline/edit/ripple.js +43 -0
  1218. package/apps/studio/client/v2/timeline/edit/trim.jsx +52 -0
  1219. package/apps/studio/client/v2/timeline/edit/words.js +65 -0
  1220. package/apps/studio/client/v2/timeline/fit-fill.jsx +172 -0
  1221. package/apps/studio/client/v2/timeline/fit-model.js +137 -0
  1222. package/apps/studio/client/v2/timeline/fold.js +128 -0
  1223. package/apps/studio/client/v2/timeline/footage-rows.jsx +46 -0
  1224. package/apps/studio/client/v2/timeline/footage-state.js +135 -0
  1225. package/apps/studio/client/v2/timeline/glyphs.jsx +118 -0
  1226. package/apps/studio/client/v2/timeline/island-context.js +29 -0
  1227. package/apps/studio/client/v2/timeline/island-controls.jsx +83 -0
  1228. package/apps/studio/client/v2/timeline/island.jsx +54 -0
  1229. package/apps/studio/client/v2/timeline/joins/join-model.js +133 -0
  1230. package/apps/studio/client/v2/timeline/joins/joins.css +277 -0
  1231. package/apps/studio/client/v2/timeline/joins/transition-picker.jsx +240 -0
  1232. package/apps/studio/client/v2/timeline/keys.js +74 -0
  1233. package/apps/studio/client/v2/timeline/lanes/caption-lane.jsx +149 -0
  1234. package/apps/studio/client/v2/timeline/lanes/music-lane.jsx +294 -0
  1235. package/apps/studio/client/v2/timeline/lanes/music-media.js +200 -0
  1236. package/apps/studio/client/v2/timeline/lanes/music-model.js +190 -0
  1237. package/apps/studio/client/v2/timeline/loop-handle.jsx +70 -0
  1238. package/apps/studio/client/v2/timeline/marker-store.js +117 -0
  1239. package/apps/studio/client/v2/timeline/markers.js +79 -0
  1240. package/apps/studio/client/v2/timeline/marks.jsx +152 -0
  1241. package/apps/studio/client/v2/timeline/music-hint.jsx +98 -0
  1242. package/apps/studio/client/v2/timeline/other-takes-model.js +103 -0
  1243. package/apps/studio/client/v2/timeline/other-takes-store.js +49 -0
  1244. package/apps/studio/client/v2/timeline/other-takes.css +98 -0
  1245. package/apps/studio/client/v2/timeline/other-takes.jsx +269 -0
  1246. package/apps/studio/client/v2/timeline/peers.jsx +246 -0
  1247. package/apps/studio/client/v2/timeline/playhead.js +97 -0
  1248. package/apps/studio/client/v2/timeline/poster.js +109 -0
  1249. package/apps/studio/client/v2/timeline/reframe-island.jsx +478 -0
  1250. package/apps/studio/client/v2/timeline/reframe-model.js +135 -0
  1251. package/apps/studio/client/v2/timeline/reframe.css +150 -0
  1252. package/apps/studio/client/v2/timeline/ruler.js +61 -0
  1253. package/apps/studio/client/v2/timeline/selection.js +110 -0
  1254. package/apps/studio/client/v2/timeline/timeline-empty.jsx +108 -0
  1255. package/apps/studio/client/v2/timeline/timeline-store.js +147 -0
  1256. package/apps/studio/client/v2/timeline/timeline.css +2879 -0
  1257. package/apps/studio/client/v2/timeline/together.css +85 -0
  1258. package/apps/studio/client/v2/timeline/track-toggle.js +56 -0
  1259. package/apps/studio/client/v2/timeline/tracks.js +68 -0
  1260. package/apps/studio/client/v2/timeline/transport.js +66 -0
  1261. package/apps/studio/client/v2/timeline/zoom.js +37 -0
  1262. package/apps/studio/client/v2/transcript/TranscriptHost.jsx +162 -0
  1263. package/apps/studio/client/v2/transcript/TranscriptPanel.jsx +358 -0
  1264. package/apps/studio/client/v2/transcript/captions-api.js +297 -0
  1265. package/apps/studio/client/v2/transcript/captions-file-flag.js +38 -0
  1266. package/apps/studio/client/v2/transcript/comp-media-store.js +89 -0
  1267. package/apps/studio/client/v2/transcript/transcript-model.js +240 -0
  1268. package/apps/studio/client/v2/transcript/transcript.css +262 -0
  1269. package/apps/studio/client/v2/undo/projection.js +291 -0
  1270. package/apps/studio/client/v2/undo/undo-history.jsx +286 -0
  1271. package/apps/studio/client/v2/undo/undo.css +81 -0
  1272. package/apps/studio/client/v2/undo/use-undo-mode-lane.js +96 -0
  1273. package/apps/studio/client/v2/undo/use-undo-projection.jsx +460 -0
  1274. package/apps/studio/client/v2/undo/zoom-undo.jsx +79 -0
  1275. package/apps/studio/client/whats-new-seen.js +40 -0
  1276. package/apps/studio/client/whats-new.jsx +65 -62
  1277. package/apps/studio/clip-ops.ts +38 -6
  1278. package/apps/studio/cloud/config-path.ts +42 -0
  1279. package/apps/studio/cloud/endpoints.ts +212 -50
  1280. package/apps/studio/cloud/renew.ts +29 -16
  1281. package/apps/studio/collab/ai-activity.ts +19 -0
  1282. package/apps/studio/collab/awareness-bridge.ts +131 -4
  1283. package/apps/studio/collab/git-lifecycle.ts +52 -20
  1284. package/apps/studio/collab/holds.ts +69 -0
  1285. package/apps/studio/collab/index.ts +25 -0
  1286. package/apps/studio/collab/protocol.ts +64 -0
  1287. package/apps/studio/collab/registry.ts +59 -6
  1288. package/apps/studio/collab/room.ts +374 -16
  1289. package/apps/studio/collab/timeline-awareness.ts +123 -0
  1290. package/apps/studio/collab/timeline-presence.tsx +219 -0
  1291. package/apps/studio/commands/move-artboards-command.ts +45 -4
  1292. package/apps/studio/comments/anchors.ts +147 -0
  1293. package/apps/studio/comments/author-face.ts +41 -0
  1294. package/apps/studio/comments/from-line.ts +43 -0
  1295. package/apps/studio/comments/imported-from.ts +113 -0
  1296. package/apps/studio/comments/local-author.ts +41 -0
  1297. package/apps/studio/comments/mentions.ts +115 -0
  1298. package/apps/studio/comments/mine-stamp.ts +78 -0
  1299. package/apps/studio/comments/ops.ts +293 -0
  1300. package/apps/studio/comments/people.ts +66 -0
  1301. package/apps/studio/comments/where.ts +136 -0
  1302. package/apps/studio/comments-overlay.tsx +1220 -253
  1303. package/apps/studio/config.schema.json +33 -0
  1304. package/apps/studio/context-menu.tsx +126 -42
  1305. package/apps/studio/context.ts +178 -13
  1306. package/apps/studio/cursors-overlay.tsx +28 -11
  1307. package/apps/studio/debug-bundle.ts +21 -5
  1308. package/apps/studio/describe/batch.ts +414 -0
  1309. package/apps/studio/describe/budget.ts +147 -0
  1310. package/apps/studio/describe/claude.ts +273 -0
  1311. package/apps/studio/describe/consent.ts +120 -0
  1312. package/apps/studio/describe/validate.ts +192 -0
  1313. package/apps/studio/design-setup-readiness.ts +2 -2
  1314. package/apps/studio/diagnostics/store.ts +220 -0
  1315. package/apps/studio/dist/client.bundle.js +2429 -2329
  1316. package/apps/studio/dist/comment-mount.js +12 -9
  1317. package/apps/studio/dist/styles.css +1 -1
  1318. package/apps/studio/dom-selection.ts +239 -23
  1319. package/apps/studio/drag-bus.ts +211 -0
  1320. package/apps/studio/draw/serialize-animate.ts +4 -4
  1321. package/apps/studio/ds/board/board-specimen.css +199 -0
  1322. package/apps/studio/ds/board/board.css +674 -0
  1323. package/apps/studio/ds/board/brand-notes.ts +92 -0
  1324. package/apps/studio/ds/board/build-model.ts +418 -0
  1325. package/apps/studio/ds/board/component-states.ts +111 -0
  1326. package/apps/studio/ds/board/directions-model.ts +145 -0
  1327. package/apps/studio/ds/board/directions.css +169 -0
  1328. package/apps/studio/ds/board/directions.tsx +100 -0
  1329. package/apps/studio/ds/board/ds-bar.tsx +107 -0
  1330. package/apps/studio/ds/board/index.tsx +71 -0
  1331. package/apps/studio/ds/board/logo-paint.ts +118 -0
  1332. package/apps/studio/ds/board/outline.tsx +127 -0
  1333. package/apps/studio/ds/board/parts.tsx +160 -0
  1334. package/apps/studio/ds/board/section-brand.tsx +148 -0
  1335. package/apps/studio/ds/board/section-colour.tsx +160 -0
  1336. package/apps/studio/ds/board/section-components.tsx +146 -0
  1337. package/apps/studio/ds/board/section-motion.tsx +106 -0
  1338. package/apps/studio/ds/board/section-patterns.tsx +89 -0
  1339. package/apps/studio/ds/board/section-space.tsx +109 -0
  1340. package/apps/studio/ds/board/section-type.tsx +129 -0
  1341. package/apps/studio/ds/board/specimen.tsx +61 -0
  1342. package/apps/studio/ds/board/state.ts +105 -0
  1343. package/apps/studio/ds/board/template.ts +152 -0
  1344. package/apps/studio/ds/board/types.ts +346 -0
  1345. package/apps/studio/ds/canvas-check.ts +914 -0
  1346. package/apps/studio/ds/canvas-cli.ts +346 -0
  1347. package/apps/studio/ds/check-system-verb.ts +88 -0
  1348. package/apps/studio/ds/check-system.ts +293 -0
  1349. package/apps/studio/ds/check.ts +541 -0
  1350. package/apps/studio/ds/cli.ts +348 -0
  1351. package/apps/studio/ds/component-list.ts +150 -0
  1352. package/apps/studio/ds/contrast.ts +438 -0
  1353. package/apps/studio/ds/convert-map.ts +126 -0
  1354. package/apps/studio/ds/convert.ts +603 -0
  1355. package/apps/studio/ds/css-scan.ts +292 -0
  1356. package/apps/studio/ds/default-components.tsx +377 -0
  1357. package/apps/studio/ds/default.ts +58 -0
  1358. package/apps/studio/ds/design-system.tsx.tpl +40 -0
  1359. package/apps/studio/ds/ds-resolver.ts +205 -0
  1360. package/apps/studio/ds/ds-verb.ts +563 -0
  1361. package/apps/studio/ds/edges.ts +412 -0
  1362. package/apps/studio/ds/emit.ts +217 -0
  1363. package/apps/studio/ds/engine.ts +1652 -0
  1364. package/apps/studio/ds/fallbacks.ts +116 -0
  1365. package/apps/studio/ds/generate.ts +746 -0
  1366. package/apps/studio/ds/head.ts +372 -0
  1367. package/apps/studio/ds/instance-info.ts +90 -0
  1368. package/apps/studio/ds/library.ts +1137 -0
  1369. package/apps/studio/ds/make.ts +726 -0
  1370. package/apps/studio/ds/migrate-emitter.ts +42 -0
  1371. package/apps/studio/ds/nearest.ts +163 -0
  1372. package/apps/studio/ds/outside.ts +343 -0
  1373. package/apps/studio/ds/override-map.ts +213 -0
  1374. package/apps/studio/ds/pairing-css.ts +145 -0
  1375. package/apps/studio/ds/pin-scope.ts +268 -0
  1376. package/apps/studio/ds/registry.ts +228 -0
  1377. package/apps/studio/ds/rename.ts +104 -0
  1378. package/apps/studio/ds/render-rev.ts +144 -0
  1379. package/apps/studio/ds/revision.ts +268 -0
  1380. package/apps/studio/ds/shell-fallbacks.ts +84 -0
  1381. package/apps/studio/ds/switch.ts +426 -0
  1382. package/apps/studio/ds/system-files.ts +251 -0
  1383. package/apps/studio/ds/system.ts +312 -0
  1384. package/apps/studio/ds/undo-hook.ts +46 -0
  1385. package/apps/studio/ds/upgrade-apply.ts +258 -0
  1386. package/apps/studio/ds/upgrade-cli.ts +216 -0
  1387. package/apps/studio/ds/upgrade-codemod.ts +116 -0
  1388. package/apps/studio/ds/upgrade-progress.ts +153 -0
  1389. package/apps/studio/ds/upgrade-prove.ts +429 -0
  1390. package/apps/studio/ds/upgrade-stage.ts +387 -0
  1391. package/apps/studio/ds/upgrade.ts +394 -0
  1392. package/apps/studio/ds/value-types.ts +190 -0
  1393. package/apps/studio/edit-ops/align.ts +43 -0
  1394. package/apps/studio/edit-ops/arrange.ts +93 -0
  1395. package/apps/studio/edit-ops/artboard-facts.ts +70 -0
  1396. package/apps/studio/edit-ops/artboard-resize.ts +50 -0
  1397. package/apps/studio/edit-ops/artboard-trash.ts +77 -0
  1398. package/apps/studio/edit-ops/clear-link.ts +16 -0
  1399. package/apps/studio/edit-ops/clip/captions.ts +154 -0
  1400. package/apps/studio/edit-ops/clip/comp.ts +124 -0
  1401. package/apps/studio/edit-ops/clip/cut-source-range.ts +100 -0
  1402. package/apps/studio/edit-ops/clip/cut-to-beat.ts +136 -0
  1403. package/apps/studio/edit-ops/clip/duck.ts +123 -0
  1404. package/apps/studio/edit-ops/clip/easing.ts +76 -0
  1405. package/apps/studio/edit-ops/clip/formats.ts +163 -0
  1406. package/apps/studio/edit-ops/clip/gestures.ts +161 -0
  1407. package/apps/studio/edit-ops/clip/index.ts +543 -0
  1408. package/apps/studio/edit-ops/clip/jsx.ts +251 -0
  1409. package/apps/studio/edit-ops/clip/place.ts +127 -0
  1410. package/apps/studio/edit-ops/clip/reframe.ts +194 -0
  1411. package/apps/studio/edit-ops/clip/take-swap.ts +53 -0
  1412. package/apps/studio/edit-ops/clip/title-motion.ts +103 -0
  1413. package/apps/studio/edit-ops/clip/title-style.ts +177 -0
  1414. package/apps/studio/edit-ops/clip/track.ts +102 -0
  1415. package/apps/studio/edit-ops/clipboard.ts +482 -0
  1416. package/apps/studio/edit-ops/combine.ts +264 -0
  1417. package/apps/studio/edit-ops/constraints.ts +148 -0
  1418. package/apps/studio/edit-ops/convert-kind.ts +203 -0
  1419. package/apps/studio/edit-ops/corner-radius.ts +86 -0
  1420. package/apps/studio/edit-ops/crop.ts +303 -0
  1421. package/apps/studio/edit-ops/czech-ties.ts +84 -0
  1422. package/apps/studio/edit-ops/detach-instance.ts +119 -0
  1423. package/apps/studio/edit-ops/dispatch.ts +552 -0
  1424. package/apps/studio/edit-ops/distribute.ts +31 -0
  1425. package/apps/studio/edit-ops/ds-instance-update.ts +46 -0
  1426. package/apps/studio/edit-ops/ds-use-nearest.ts +72 -0
  1427. package/apps/studio/edit-ops/duplicate-at-width.ts +241 -0
  1428. package/apps/studio/edit-ops/frame.ts +68 -0
  1429. package/apps/studio/edit-ops/guides.ts +67 -0
  1430. package/apps/studio/edit-ops/hide.ts +30 -0
  1431. package/apps/studio/edit-ops/hover-rules.ts +94 -0
  1432. package/apps/studio/edit-ops/image-fit.ts +571 -0
  1433. package/apps/studio/edit-ops/insert-component.ts +344 -0
  1434. package/apps/studio/edit-ops/insert-preset.ts +151 -0
  1435. package/apps/studio/edit-ops/insert-shape.ts +326 -0
  1436. package/apps/studio/edit-ops/instance-model.ts +286 -0
  1437. package/apps/studio/edit-ops/instance-tree.ts +215 -0
  1438. package/apps/studio/edit-ops/layout-patch.ts +81 -0
  1439. package/apps/studio/edit-ops/lock.ts +30 -0
  1440. package/apps/studio/edit-ops/op-label.ts +155 -0
  1441. package/apps/studio/edit-ops/path-model.ts +671 -0
  1442. package/apps/studio/edit-ops/path.ts +172 -0
  1443. package/apps/studio/edit-ops/photo-every-use.ts +64 -0
  1444. package/apps/studio/edit-ops/photo-use.ts +41 -0
  1445. package/apps/studio/edit-ops/place-freely.ts +47 -0
  1446. package/apps/studio/edit-ops/place-plan.ts +60 -0
  1447. package/apps/studio/edit-ops/print.ts +104 -0
  1448. package/apps/studio/edit-ops/references.ts +231 -0
  1449. package/apps/studio/edit-ops/relink.ts +49 -0
  1450. package/apps/studio/edit-ops/reorder.ts +104 -0
  1451. package/apps/studio/edit-ops/reset-overrides.ts +75 -0
  1452. package/apps/studio/edit-ops/revert.ts +63 -0
  1453. package/apps/studio/edit-ops/rotate.ts +58 -0
  1454. package/apps/studio/edit-ops/safe-zones.ts +38 -0
  1455. package/apps/studio/edit-ops/scope-names.ts +151 -0
  1456. package/apps/studio/edit-ops/select-matching.ts +48 -0
  1457. package/apps/studio/edit-ops/set-gap.ts +65 -0
  1458. package/apps/studio/edit-ops/set-id.ts +42 -0
  1459. package/apps/studio/edit-ops/set-link.ts +39 -0
  1460. package/apps/studio/edit-ops/siblings.ts +105 -0
  1461. package/apps/studio/edit-ops/slot-defaults.ts +48 -0
  1462. package/apps/studio/edit-ops/stamp.ts +27 -0
  1463. package/apps/studio/edit-ops/swap-variant.ts +163 -0
  1464. package/apps/studio/edit-ops/text-copy.ts +146 -0
  1465. package/apps/studio/edit-ops/text-detach.ts +62 -0
  1466. package/apps/studio/edit-ops/text-style-ops.ts +131 -0
  1467. package/apps/studio/edit-ops/text-style.ts +141 -0
  1468. package/apps/studio/edit-ops/tidy.ts +72 -0
  1469. package/apps/studio/edit-ops/types.ts +229 -0
  1470. package/apps/studio/edit-ops/unframe.ts +53 -0
  1471. package/apps/studio/edit-ops/words-css.ts +487 -0
  1472. package/apps/studio/edit-ops/words-paint.ts +521 -0
  1473. package/apps/studio/edit-ops/z-order.ts +81 -0
  1474. package/apps/studio/editing/ai-point-ring.tsx +158 -0
  1475. package/apps/studio/editing/ai-scope-outline.tsx +180 -0
  1476. package/apps/studio/editing/align-bar.tsx +510 -0
  1477. package/apps/studio/editing/anchor-report.ts +123 -0
  1478. package/apps/studio/editing/anchor-reporter.tsx +64 -0
  1479. package/apps/studio/editing/aria-live.tsx +162 -0
  1480. package/apps/studio/editing/arrange.ts +345 -0
  1481. package/apps/studio/editing/artboard-actions.ts +275 -0
  1482. package/apps/studio/editing/artboard-commands.tsx +232 -0
  1483. package/apps/studio/editing/artboard-guides.tsx +265 -0
  1484. package/apps/studio/editing/artboard-handles.tsx +524 -0
  1485. package/apps/studio/editing/artboard-menu.tsx +153 -0
  1486. package/apps/studio/editing/artboard-resize.ts +306 -0
  1487. package/apps/studio/editing/ask-bubble.tsx +161 -0
  1488. package/apps/studio/editing/asset-drag.ts +70 -0
  1489. package/apps/studio/editing/click-to-type.ts +207 -0
  1490. package/apps/studio/editing/clipboard-actions.ts +91 -0
  1491. package/apps/studio/editing/clipboard.ts +194 -0
  1492. package/apps/studio/editing/clipped-grab.ts +45 -0
  1493. package/apps/studio/editing/corner-dots.tsx +394 -0
  1494. package/apps/studio/editing/crop-geometry.ts +128 -0
  1495. package/apps/studio/editing/crop-mode.tsx +522 -0
  1496. package/apps/studio/editing/crumbs.ts +158 -0
  1497. package/apps/studio/editing/draw-geometry.ts +151 -0
  1498. package/apps/studio/editing/draw-tools.tsx +490 -0
  1499. package/apps/studio/editing/drop-chip.tsx +105 -0
  1500. package/apps/studio/editing/duplicate-rhythm.ts +166 -0
  1501. package/apps/studio/editing/edit-chrome-gate.tsx +58 -0
  1502. package/apps/studio/editing/edit-op.ts +90 -0
  1503. package/apps/studio/editing/empty-report.ts +182 -0
  1504. package/apps/studio/editing/empty-reporter.tsx +74 -0
  1505. package/apps/studio/editing/figma-paste.ts +71 -0
  1506. package/apps/studio/editing/finder-drop-model.ts +130 -0
  1507. package/apps/studio/editing/finder-drop.tsx +400 -0
  1508. package/apps/studio/editing/focus-model.tsx +429 -0
  1509. package/apps/studio/editing/gap-bands.tsx +257 -0
  1510. package/apps/studio/editing/hold-rings.tsx +461 -0
  1511. package/apps/studio/editing/image-drop.tsx +193 -0
  1512. package/apps/studio/editing/index.tsx +402 -0
  1513. package/apps/studio/editing/instance-actions.ts +152 -0
  1514. package/apps/studio/editing/kids-summary.ts +75 -0
  1515. package/apps/studio/editing/kind-dim.tsx +54 -0
  1516. package/apps/studio/editing/layout-actions.ts +159 -0
  1517. package/apps/studio/editing/lock-badge.tsx +178 -0
  1518. package/apps/studio/editing/long-page.ts +102 -0
  1519. package/apps/studio/editing/minimap-context.tsx +161 -0
  1520. package/apps/studio/editing/nudge.tsx +212 -0
  1521. package/apps/studio/editing/object-actions.ts +156 -0
  1522. package/apps/studio/editing/object-keys.ts +58 -0
  1523. package/apps/studio/editing/object-menu.tsx +216 -0
  1524. package/apps/studio/editing/object-ops.ts +114 -0
  1525. package/apps/studio/editing/paste-bar.tsx +388 -0
  1526. package/apps/studio/editing/pen/combine-run.ts +113 -0
  1527. package/apps/studio/editing/pen/draw.tsx +364 -0
  1528. package/apps/studio/editing/pen/index.tsx +48 -0
  1529. package/apps/studio/editing/pen/overlay.tsx +147 -0
  1530. package/apps/studio/editing/pen/pen-geometry.ts +234 -0
  1531. package/apps/studio/editing/pen/point-store.ts +64 -0
  1532. package/apps/studio/editing/pen/points.tsx +421 -0
  1533. package/apps/studio/editing/place-freely.tsx +389 -0
  1534. package/apps/studio/editing/place-ghost.tsx +418 -0
  1535. package/apps/studio/editing/place-image.tsx +219 -0
  1536. package/apps/studio/editing/preset-ruler.tsx +218 -0
  1537. package/apps/studio/editing/rename-order.ts +58 -0
  1538. package/apps/studio/editing/reorder-slot.tsx +567 -0
  1539. package/apps/studio/editing/rotate-handle.tsx +353 -0
  1540. package/apps/studio/editing/selection.tsx +319 -0
  1541. package/apps/studio/editing/set-gap.ts +55 -0
  1542. package/apps/studio/editing/size-ghost.tsx +343 -0
  1543. package/apps/studio/editing/space-tap.ts +56 -0
  1544. package/apps/studio/editing/sticky-name.tsx +112 -0
  1545. package/apps/studio/editing/tab-order.tsx +298 -0
  1546. package/apps/studio/editing/take-keys.ts +115 -0
  1547. package/apps/studio/editing/text-actions.ts +214 -0
  1548. package/apps/studio/editing/text-in-place.tsx +187 -0
  1549. package/apps/studio/editing/tidy-preview.tsx +83 -0
  1550. package/apps/studio/editing/token-ruler.tsx +231 -0
  1551. package/apps/studio/editing/type-role.ts +122 -0
  1552. package/apps/studio/editing/undo-preview.tsx +120 -0
  1553. package/apps/studio/editing/video-label.ts +66 -0
  1554. package/apps/studio/editing/video-play.ts +65 -0
  1555. package/apps/studio/editing/world-menu.ts +36 -0
  1556. package/apps/studio/element-ids.ts +1030 -0
  1557. package/apps/studio/equal-spacing-handles.tsx +1 -1
  1558. package/apps/studio/exporters/_runtime.ts +64 -24
  1559. package/apps/studio/exporters/audio.ts +136 -0
  1560. package/apps/studio/exporters/door-fingerprint.ts +202 -0
  1561. package/apps/studio/exporters/estimate.ts +314 -0
  1562. package/apps/studio/exporters/file-names.ts +197 -0
  1563. package/apps/studio/exporters/format-scopes.ts +7 -1
  1564. package/apps/studio/exporters/hub-render-door.ts +368 -0
  1565. package/apps/studio/exporters/index.ts +53 -7
  1566. package/apps/studio/exporters/jobs.ts +484 -80
  1567. package/apps/studio/exporters/jpg.ts +21 -0
  1568. package/apps/studio/exporters/pdf-fonts.ts +102 -0
  1569. package/apps/studio/exporters/pdf.ts +133 -14
  1570. package/apps/studio/exporters/png.ts +136 -9
  1571. package/apps/studio/exporters/print-back.ts +92 -0
  1572. package/apps/studio/exporters/print-preflight.ts +373 -0
  1573. package/apps/studio/exporters/rects-runner.ts +130 -0
  1574. package/apps/studio/exporters/remote.ts +726 -3
  1575. package/apps/studio/exporters/render-seconds.ts +57 -0
  1576. package/apps/studio/exporters/replay.ts +48 -0
  1577. package/apps/studio/exporters/scope.ts +560 -15
  1578. package/apps/studio/exporters/spec-run.ts +270 -0
  1579. package/apps/studio/exporters/spec-v2.ts +408 -0
  1580. package/apps/studio/exporters/video-cap.ts +280 -0
  1581. package/apps/studio/exporters/wait-ai.ts +192 -0
  1582. package/apps/studio/figma/client.ts +67 -0
  1583. package/apps/studio/figma/comments-to-pins.ts +249 -0
  1584. package/apps/studio/figma/comments-to-strokes.ts +6 -1
  1585. package/apps/studio/figma/into-board.ts +141 -0
  1586. package/apps/studio/figma/to-strokes.ts +54 -0
  1587. package/apps/studio/format.ts +172 -30
  1588. package/apps/studio/fs-watch.ts +28 -1
  1589. package/apps/studio/generation/adapters/gemini.ts +3 -0
  1590. package/apps/studio/generation/adapters/stub.ts +133 -0
  1591. package/apps/studio/generation/gen-sidecar.ts +108 -0
  1592. package/apps/studio/generation/registry.ts +16 -5
  1593. package/apps/studio/generation/takes.ts +398 -0
  1594. package/apps/studio/generation/types.ts +7 -0
  1595. package/apps/studio/git/service.ts +143 -14
  1596. package/apps/studio/github/endpoints.ts +1 -1
  1597. package/apps/studio/github/identity-cache.ts +53 -14
  1598. package/apps/studio/handoff/blockers.ts +120 -0
  1599. package/apps/studio/handoff/run.ts +233 -0
  1600. package/apps/studio/handoff/targets.ts +334 -0
  1601. package/apps/studio/handoff/write-scopes.ts +57 -0
  1602. package/apps/studio/handoff.ts +24 -5
  1603. package/apps/studio/history/changes.ts +199 -0
  1604. package/apps/studio/history/describe-annotations.ts +216 -0
  1605. package/apps/studio/history/describe-css.ts +592 -0
  1606. package/apps/studio/history/describe-match.ts +866 -0
  1607. package/apps/studio/history/describe-meta.ts +281 -0
  1608. package/apps/studio/history/describe-version.ts +89 -0
  1609. package/apps/studio/history/describe-words.ts +513 -0
  1610. package/apps/studio/history/describe.ts +1452 -0
  1611. package/apps/studio/history/last-good.ts +123 -0
  1612. package/apps/studio/history/links.ts +112 -0
  1613. package/apps/studio/history/object-history.ts +535 -0
  1614. package/apps/studio/history/render-ok-signal.ts +81 -0
  1615. package/apps/studio/history/restore-artboard-action.ts +183 -0
  1616. package/apps/studio/history/restore-artboard.ts +607 -0
  1617. package/apps/studio/history/restore-object.ts +168 -0
  1618. package/apps/studio/history/run-label.ts +18 -0
  1619. package/apps/studio/history/surface-requests.ts +115 -0
  1620. package/apps/studio/history/titles.ts +259 -0
  1621. package/apps/studio/history/trash.ts +314 -0
  1622. package/apps/studio/history/version-lanes.ts +115 -0
  1623. package/apps/studio/history/versions.ts +458 -0
  1624. package/apps/studio/hmr-broadcast.ts +55 -1
  1625. package/apps/studio/home/ai.ts +79 -0
  1626. package/apps/studio/home/cli.ts +221 -0
  1627. package/apps/studio/home/cloud.ts +297 -0
  1628. package/apps/studio/home/create-local.ts +164 -0
  1629. package/apps/studio/home/github.ts +99 -0
  1630. package/apps/studio/home/hub.ts +340 -0
  1631. package/apps/studio/home/index-gc.ts +288 -0
  1632. package/apps/studio/home/index-reader.ts +338 -0
  1633. package/apps/studio/home/invite.ts +204 -0
  1634. package/apps/studio/home/main.ts +159 -0
  1635. package/apps/studio/home/pid.ts +12 -0
  1636. package/apps/studio/home/routes.ts +591 -0
  1637. package/apps/studio/home/signin.ts +285 -0
  1638. package/apps/studio/home/user-state.ts +177 -0
  1639. package/apps/studio/home/whats-new.ts +42 -0
  1640. package/apps/studio/http.ts +2589 -947
  1641. package/apps/studio/index/assets-response.ts +34 -0
  1642. package/apps/studio/index/assets.ts +335 -0
  1643. package/apps/studio/index/ds-usage.ts +983 -0
  1644. package/apps/studio/index/extract.ts +348 -0
  1645. package/apps/studio/index/extractors/asset-usage.ts +349 -0
  1646. package/apps/studio/index/extractors/attribution-cache.ts +225 -0
  1647. package/apps/studio/index/history-refs.ts +301 -0
  1648. package/apps/studio/index/history-source.ts +39 -0
  1649. package/apps/studio/index/match.ts +307 -0
  1650. package/apps/studio/index/scan-kick.ts +47 -0
  1651. package/apps/studio/index/service.ts +367 -0
  1652. package/apps/studio/index/snapshot.ts +135 -0
  1653. package/apps/studio/index/types.ts +139 -0
  1654. package/apps/studio/index/version-feed.ts +71 -0
  1655. package/apps/studio/input-router.tsx +522 -55
  1656. package/apps/studio/inspect-canvas.ts +86 -0
  1657. package/apps/studio/inspect-overlay.tsx +192 -0
  1658. package/apps/studio/inspect.ts +96 -33
  1659. package/apps/studio/kinds/convert.ts +175 -0
  1660. package/apps/studio/kinds/export-defaults.ts +42 -0
  1661. package/apps/studio/kinds/meta.ts +237 -0
  1662. package/apps/studio/kinds/physical.ts +84 -0
  1663. package/apps/studio/kinds/presets.ts +452 -0
  1664. package/apps/studio/kinds/print-custom.ts +165 -0
  1665. package/apps/studio/kinds/print-edit.ts +130 -0
  1666. package/apps/studio/kinds/print-guides.ts +23 -0
  1667. package/apps/studio/kinds/safe-zones.ts +250 -0
  1668. package/apps/studio/kinds/warnings.ts +422 -0
  1669. package/apps/studio/layer-name.ts +148 -0
  1670. package/apps/studio/layout/free-space.ts +131 -0
  1671. package/apps/studio/link-chip-overlay.tsx +175 -0
  1672. package/apps/studio/link-import.ts +617 -0
  1673. package/apps/studio/loopback-listen.ts +105 -0
  1674. package/apps/studio/macro-guard.ts +67 -0
  1675. package/apps/studio/managed-projects.ts +63 -14
  1676. package/apps/studio/marquee-overlay.tsx +2 -2
  1677. package/apps/studio/measure-overlay.tsx +10 -4
  1678. package/apps/studio/migrate/cli.ts +164 -0
  1679. package/apps/studio/migrate/ds-registry.ts +42 -0
  1680. package/apps/studio/migrate/engine.ts +926 -0
  1681. package/apps/studio/migrate/hub.ts +219 -0
  1682. package/apps/studio/migrate/steps.ts +627 -0
  1683. package/apps/studio/notifications.tsx +197 -52
  1684. package/apps/studio/outbox/content.ts +139 -0
  1685. package/apps/studio/outbox/drain.ts +269 -0
  1686. package/apps/studio/outbox/hub-reachability.ts +58 -0
  1687. package/apps/studio/outbox/index.ts +57 -0
  1688. package/apps/studio/outbox/policy.ts +859 -0
  1689. package/apps/studio/outbox/senders/export-cloud.ts +116 -0
  1690. package/apps/studio/outbox/store.ts +336 -0
  1691. package/apps/studio/outbox/types.ts +160 -0
  1692. package/apps/studio/participants-chrome.tsx +178 -60
  1693. package/apps/studio/paths.ts +8 -0
  1694. package/apps/studio/photo-store.ts +230 -1
  1695. package/apps/studio/port.ts +93 -0
  1696. package/apps/studio/presence/canvas-presence.tsx +522 -0
  1697. package/apps/studio/presence/fields.ts +93 -0
  1698. package/apps/studio/presence/model.ts +296 -0
  1699. package/apps/studio/presence/tones.ts +39 -0
  1700. package/apps/studio/present/fit.ts +138 -0
  1701. package/apps/studio/present/follow.ts +142 -0
  1702. package/apps/studio/present/media-presence.ts +105 -0
  1703. package/apps/studio/present/meta-schema.ts +612 -0
  1704. package/apps/studio/present/order.ts +153 -0
  1705. package/apps/studio/present/pointer-dot.tsx +379 -0
  1706. package/apps/studio/present/pointer-point.ts +24 -0
  1707. package/apps/studio/present/present-media.ts +446 -0
  1708. package/apps/studio/present/present-stage.tsx +1018 -0
  1709. package/apps/studio/present/present-zoom.ts +63 -0
  1710. package/apps/studio/present/relay-strip.ts +136 -0
  1711. package/apps/studio/preview/preview-camera.tsx +442 -0
  1712. package/apps/studio/preview/wheel-scroll.ts +85 -0
  1713. package/apps/studio/print/units.ts +3 -0
  1714. package/apps/studio/print-overlay-content.tsx +127 -10
  1715. package/apps/studio/read-only-mode.ts +83 -0
  1716. package/apps/studio/readiness.ts +18 -3
  1717. package/apps/studio/ripple.ts +19 -1
  1718. package/apps/studio/routes/agent.ts +1025 -0
  1719. package/apps/studio/routes/ai.ts +422 -0
  1720. package/apps/studio/routes/annotations.ts +649 -0
  1721. package/apps/studio/routes/asset-details.ts +87 -0
  1722. package/apps/studio/routes/asset-rename.ts +60 -0
  1723. package/apps/studio/routes/asset-state.ts +137 -0
  1724. package/apps/studio/routes/asset-trash.ts +77 -0
  1725. package/apps/studio/routes/assets.ts +217 -0
  1726. package/apps/studio/routes/availability.ts +94 -0
  1727. package/apps/studio/routes/canvas-meta-rider.ts +304 -0
  1728. package/apps/studio/routes/canvas-origin.ts +88 -0
  1729. package/apps/studio/routes/canvas-source.ts +315 -0
  1730. package/apps/studio/routes/chat-attach.ts +335 -0
  1731. package/apps/studio/routes/chat.ts +137 -0
  1732. package/apps/studio/routes/cloud-move.ts +364 -0
  1733. package/apps/studio/routes/cloud-plan.ts +36 -0
  1734. package/apps/studio/routes/comments.ts +118 -0
  1735. package/apps/studio/routes/connections.ts +132 -0
  1736. package/apps/studio/routes/describe.ts +122 -0
  1737. package/apps/studio/routes/diagnostics.ts +118 -0
  1738. package/apps/studio/routes/ds-check.ts +124 -0
  1739. package/apps/studio/routes/ds-convert.ts +55 -0
  1740. package/apps/studio/routes/ds-edges.ts +136 -0
  1741. package/apps/studio/routes/ds-library.ts +194 -0
  1742. package/apps/studio/routes/ds-make.ts +91 -0
  1743. package/apps/studio/routes/ds-switch.ts +68 -0
  1744. package/apps/studio/routes/ds-upgrade.ts +139 -0
  1745. package/apps/studio/routes/ds.ts +808 -0
  1746. package/apps/studio/routes/edit.ts +658 -0
  1747. package/apps/studio/routes/element-links.ts +155 -0
  1748. package/apps/studio/routes/export.ts +486 -0
  1749. package/apps/studio/routes/figma.ts +200 -0
  1750. package/apps/studio/routes/generate.ts +443 -0
  1751. package/apps/studio/routes/handoff.ts +319 -0
  1752. package/apps/studio/routes/help-guides.ts +37 -0
  1753. package/apps/studio/routes/history.ts +739 -0
  1754. package/apps/studio/routes/import-link.ts +186 -0
  1755. package/apps/studio/routes/index.ts +293 -0
  1756. package/apps/studio/routes/kinds.ts +257 -0
  1757. package/apps/studio/routes/links.ts +72 -0
  1758. package/apps/studio/routes/outbox.ts +87 -0
  1759. package/apps/studio/routes/photo-every-use.ts +241 -0
  1760. package/apps/studio/routes/pins.ts +66 -0
  1761. package/apps/studio/routes/present.ts +187 -0
  1762. package/apps/studio/routes/project-format.ts +148 -0
  1763. package/apps/studio/routes/project-undo.ts +497 -0
  1764. package/apps/studio/routes/settings.ts +179 -0
  1765. package/apps/studio/routes/share.ts +463 -0
  1766. package/apps/studio/routes/shell.ts +137 -0
  1767. package/apps/studio/routes/sync-conflicts.ts +150 -0
  1768. package/apps/studio/routes/sync.ts +172 -0
  1769. package/apps/studio/routes/table.ts +224 -0
  1770. package/apps/studio/routes/trash.ts +393 -0
  1771. package/apps/studio/routes/video.ts +395 -0
  1772. package/apps/studio/routes/votes.ts +486 -0
  1773. package/apps/studio/safe-zones-overlay.tsx +269 -0
  1774. package/apps/studio/scaffold-design.ts +72 -124
  1775. package/apps/studio/schema/annotations.v2.schema.json +2303 -0
  1776. package/apps/studio/schema/beats.v1.schema.json +94 -0
  1777. package/apps/studio/schema/canvas-meta.v2.schema.json +264 -0
  1778. package/apps/studio/schema/canvas-tsx.md +357 -0
  1779. package/apps/studio/schema/comments.v2.schema.json +125 -0
  1780. package/apps/studio/schema/ds-components-v1.schema.json +96 -0
  1781. package/apps/studio/schema/ds-formats.md +146 -0
  1782. package/apps/studio/schema/ds-head-v1.schema.json +67 -0
  1783. package/apps/studio/schema/ds-revision-v1.schema.json +31 -0
  1784. package/apps/studio/schema/ds-schema-v1.fallbacks.css +118 -0
  1785. package/apps/studio/schema/ds-schema-v1.json +2029 -0
  1786. package/apps/studio/schema/ds-schema-v1.schema.json +663 -0
  1787. package/apps/studio/schema/ds-tokens-v1.schema.json +210 -0
  1788. package/apps/studio/schema/edl.v1.schema.json +124 -0
  1789. package/apps/studio/schema/formats.ts +175 -0
  1790. package/apps/studio/schema/gen.v1.schema.json +33 -0
  1791. package/apps/studio/schema/transcript.v1.schema.json +133 -0
  1792. package/apps/studio/server.ts +454 -166
  1793. package/apps/studio/shell/info-file.ts +54 -0
  1794. package/apps/studio/shell/parent-watch.ts +97 -0
  1795. package/apps/studio/shell/profile.ts +61 -0
  1796. package/apps/studio/shell-canvas-file.ts +36 -0
  1797. package/apps/studio/skip-dirs.ts +455 -0
  1798. package/apps/studio/spoof-chars.ts +17 -0
  1799. package/apps/studio/static-lane.ts +212 -0
  1800. package/apps/studio/sync/accepted-cold-start.ts +35 -13
  1801. package/apps/studio/sync/accepted-link.ts +524 -27
  1802. package/apps/studio/sync/access-notices.ts +143 -0
  1803. package/apps/studio/sync/action-feed.ts +145 -0
  1804. package/apps/studio/sync/action-stage.ts +831 -165
  1805. package/apps/studio/sync/asset-push.ts +24 -2
  1806. package/apps/studio/sync/asset-state.ts +391 -0
  1807. package/apps/studio/sync/atomic-write.ts +42 -1
  1808. package/apps/studio/sync/availability.ts +185 -0
  1809. package/apps/studio/sync/canvas-path.ts +70 -6
  1810. package/apps/studio/sync/cell-pairing.ts +5 -24
  1811. package/apps/studio/sync/comment-door.ts +104 -0
  1812. package/apps/studio/sync/conflict-record.ts +186 -0
  1813. package/apps/studio/sync/create-collision.ts +297 -0
  1814. package/apps/studio/sync/ctl-provider.ts +13 -1
  1815. package/apps/studio/sync/file-membership.ts +95 -10
  1816. package/apps/studio/sync/file-plane.ts +76 -7
  1817. package/apps/studio/sync/format-sync.ts +13 -7
  1818. package/apps/studio/sync/history-fields.ts +61 -0
  1819. package/apps/studio/sync/hub-link.ts +24 -4
  1820. package/apps/studio/sync/hub-text-undo.ts +178 -0
  1821. package/apps/studio/sync/hubs-config.ts +122 -20
  1822. package/apps/studio/sync/index.ts +1444 -127
  1823. package/apps/studio/sync/journal-client.ts +44 -0
  1824. package/apps/studio/sync/keep-both.ts +187 -0
  1825. package/apps/studio/sync/link-consent.ts +390 -0
  1826. package/apps/studio/sync/local-kernel.ts +2725 -0
  1827. package/apps/studio/sync/media-gate.ts +97 -0
  1828. package/apps/studio/sync/object-conflict.ts +199 -0
  1829. package/apps/studio/sync/poke.ts +20 -0
  1830. package/apps/studio/sync/presentation.ts +14 -1
  1831. package/apps/studio/sync/project-config-push.ts +5 -2
  1832. package/apps/studio/sync/projection.ts +201 -34
  1833. package/apps/studio/sync/resync-trace.ts +220 -0
  1834. package/apps/studio/sync/status.ts +8 -1
  1835. package/apps/studio/sync/supervisor.ts +20 -2
  1836. package/apps/studio/sync/transaction-client.ts +364 -34
  1837. package/apps/studio/sync/trash-clear-copies.ts +120 -0
  1838. package/apps/studio/sync/trash-watch.ts +157 -0
  1839. package/apps/studio/sync/trash.ts +50 -2
  1840. package/apps/studio/sync/undo-target.ts +110 -0
  1841. package/apps/studio/sync/workspace-signin.ts +14 -3
  1842. package/apps/studio/sync/write-hold.ts +238 -0
  1843. package/apps/studio/sync/writer-registry.ts +380 -5
  1844. package/apps/studio/sync-name-key.ts +59 -0
  1845. package/apps/studio/thumbs/keys.ts +147 -0
  1846. package/apps/studio/thumbs/routes.ts +68 -0
  1847. package/apps/studio/thumbs/service.ts +884 -0
  1848. package/apps/studio/thumbs/store.ts +114 -0
  1849. package/apps/studio/thumbs/validate.ts +62 -0
  1850. package/apps/studio/tool-palette.tsx +782 -563
  1851. package/apps/studio/toolbars/marker-tip.ts +22 -0
  1852. package/apps/studio/toolbars/shell-panels.ts +55 -0
  1853. package/apps/studio/toolbars/tool-panel.ts +89 -0
  1854. package/apps/studio/toolbars/toolbar-css.ts +283 -0
  1855. package/apps/studio/toolbars/toolbar-icons.tsx +135 -0
  1856. package/apps/studio/toolbars/toolbar-rect.ts +82 -0
  1857. package/apps/studio/ui-prefs-migrate.ts +467 -0
  1858. package/apps/studio/ui-prefs.ts +305 -3
  1859. package/apps/studio/undo-stack.ts +10 -0
  1860. package/apps/studio/use-annotation-resize.tsx +23 -17
  1861. package/apps/studio/use-artboard-drag.tsx +156 -15
  1862. package/apps/studio/use-canvas-keys.ts +58 -0
  1863. package/apps/studio/use-chrome-visibility.tsx +13 -0
  1864. package/apps/studio/use-collab.tsx +556 -56
  1865. package/apps/studio/use-element-resize.tsx +13 -9
  1866. package/apps/studio/use-governed-mode.ts +23 -0
  1867. package/apps/studio/use-keyboard-discipline.tsx +114 -49
  1868. package/apps/studio/use-selection-set.tsx +110 -9
  1869. package/apps/studio/use-snap-guides.tsx +74 -5
  1870. package/apps/studio/use-spacing-handles.tsx +90 -27
  1871. package/apps/studio/use-tool-mode.tsx +204 -10
  1872. package/apps/studio/use-undo-stack.tsx +19 -23
  1873. package/apps/studio/video/beats.ts +484 -0
  1874. package/apps/studio/video/decode-webaudio.ts +115 -0
  1875. package/apps/studio/video/decode.ts +288 -0
  1876. package/apps/studio/video/derive.ts +647 -0
  1877. package/apps/studio/video/format-ids.ts +158 -0
  1878. package/apps/studio/video/framing.ts +246 -0
  1879. package/apps/studio/video/inject.ts +324 -0
  1880. package/apps/studio/video/keyframes.ts +356 -0
  1881. package/apps/studio/video/link-groups.ts +40 -0
  1882. package/apps/studio/video/linked-formats.ts +142 -0
  1883. package/apps/studio/video/mask-comments.ts +36 -0
  1884. package/apps/studio/video/media-analysis.ts +169 -0
  1885. package/apps/studio/video/reel-place.ts +286 -0
  1886. package/apps/studio/video/reframe-read.ts +90 -0
  1887. package/apps/studio/video/schema.ts +422 -0
  1888. package/apps/studio/video/speech.ts +129 -0
  1889. package/apps/studio/video/title-motion.ts +85 -0
  1890. package/apps/studio/video/transcript-cut.ts +91 -0
  1891. package/apps/studio/video/whisper-parse.ts +123 -0
  1892. package/apps/studio/video/words-run.ts +210 -0
  1893. package/apps/studio/video/words-timing.ts +222 -0
  1894. package/apps/studio/video-comp.tsx +238 -9
  1895. package/apps/studio/video-links-overlay.tsx +272 -0
  1896. package/apps/studio/video-natural.ts +73 -0
  1897. package/apps/studio/video-play-chrome.tsx +229 -0
  1898. package/apps/studio/video-play-overlay.tsx +190 -0
  1899. package/apps/studio/video-vocab.tsx +460 -0
  1900. package/apps/studio/view-only-gesture.tsx +101 -0
  1901. package/apps/studio/viewport-fit.ts +28 -0
  1902. package/apps/studio/web-overlay-content.tsx +4 -2
  1903. package/apps/studio/whats-new.json +55 -20
  1904. package/apps/studio/whats-new.schema.json +10 -0
  1905. package/apps/studio/whats-new.ts +4 -0
  1906. package/apps/studio/workspace-mode.ts +10 -0
  1907. package/apps/studio/ws.ts +299 -8
  1908. package/cli/bin/maude.mjs +2 -0
  1909. package/cli/commands/design.mjs +401 -72
  1910. package/cli/commands/flow.mjs +73 -0
  1911. package/cli/commands/help.mjs +14 -1
  1912. package/cli/commands/init.mjs +1 -1
  1913. package/cli/commands/migrate.mjs +55 -0
  1914. package/cli/lib/bash-guard.mjs +1691 -0
  1915. package/cli/lib/cache.mjs +1 -1
  1916. package/cli/lib/confine-out.mjs +150 -0
  1917. package/cli/lib/confine-read.mjs +179 -0
  1918. package/cli/lib/confine-root.mjs +157 -0
  1919. package/cli/lib/ddr-to-kgai.mjs +2 -2
  1920. package/cli/lib/design-help.gen.mjs +119 -0
  1921. package/cli/lib/design-hook.mjs +1764 -0
  1922. package/cli/lib/design-link.mjs +68 -4
  1923. package/cli/lib/design-open.mjs +238 -0
  1924. package/cli/lib/export-spec.mjs +394 -0
  1925. package/cli/lib/finding-text.mjs +63 -0
  1926. package/cli/lib/flow-usage.mjs +133 -0
  1927. package/cli/lib/gitignore-block.mjs +1 -0
  1928. package/cli/lib/handoff.mjs +285 -0
  1929. package/cli/lib/handoff.schema.json +336 -0
  1930. package/cli/lib/hubs-config.mjs +10 -0
  1931. package/cli/lib/json-schema-lite.mjs +260 -0
  1932. package/cli/lib/project-links.mjs +88 -0
  1933. package/cli/lib/studio-locate.mjs +83 -0
  1934. package/cli/lib/sub-verbs.mjs +111 -0
  1935. package/cli/lib/workspace-plan.mjs +16 -3
  1936. package/package.json +30 -11
  1937. package/plugins/design/README.md +46 -0
  1938. package/plugins/design/templates/_shell.html +749 -69
  1939. package/plugins/design/templates/blank-canvas.tsx.template +26 -0
  1940. package/plugins/design/templates/brief-board.tsx.template +12 -11
  1941. package/plugins/design/templates/canvas.tsx.template +3 -3
  1942. package/plugins/design/templates/design-system-inspiration/core/README.philosophy.md.tpl +104 -0
  1943. package/plugins/design/templates/design-system-inspiration/core/colors_and_type.css.tpl +38 -3
  1944. package/plugins/design/templates/design-system-inspiration/core/components.json.tpl +127 -0
  1945. package/plugins/design/templates/design-system-inspiration/core/config.json.tpl +1 -0
  1946. package/plugins/design/templates/design-system-inspiration/core/preview/_components.css.tpl +111 -0
  1947. package/plugins/flow/.claude-plugin/config.schema.json +170 -9
  1948. package/plugins/flow/README.md +18 -17
  1949. package/plugins/flow/dependencies.json +25 -26
  1950. package/plugins/flow/templates/ai-skeleton/INDEX.md +3 -3
  1951. package/plugins/flow/templates/ai-skeleton/README.md +5 -5
  1952. package/plugins/flow/templates/ai-skeleton/context/README.md +1 -1
  1953. package/plugins/flow/templates/ai-skeleton/logs/README.md +1 -1
  1954. package/plugins/flow/templates/ai-skeleton/plans/README.md +1 -1
  1955. package/plugins/flow/templates/ai-skeleton/reviews/README.md +2 -2
  1956. package/plugins/flow/templates/ai-skeleton/scenario-guide.md +4 -4
  1957. package/plugins/flow/templates/ai-skeleton/scenarios/README.md +2 -2
  1958. package/plugins/flow/templates/ai-skeleton/templates/HANDOFF.md +1 -1
  1959. package/apps/studio/annotations/ui/edit-actions.ts +0 -551
  1960. package/apps/studio/canvas-header.ts +0 -165
  1961. package/apps/studio/client/hmr.mjs +0 -113
  1962. package/apps/studio/client/hooks/use-keyboard-shortcuts.jsx +0 -297
  1963. package/apps/studio/client/iframe-lazy.mjs +0 -121
  1964. package/apps/studio/client/inspector/artboard-knobs.jsx +0 -456
  1965. package/apps/studio/client/menus/menubar.jsx +0 -856
  1966. package/apps/studio/client/panels/CapabilityBar.jsx +0 -101
  1967. package/apps/studio/client/panels/ClipInspector.jsx +0 -409
  1968. package/apps/studio/client/panels/GitPanel.jsx +0 -1026
  1969. package/apps/studio/client/panels/OnboardingWizard.jsx +0 -642
  1970. package/apps/studio/client/panels/StickerPicker.jsx +0 -160
  1971. package/apps/studio/client/panels/SyncPanel.jsx +0 -1190
  1972. package/apps/studio/client/panels/TimelinePanel.jsx +0 -2259
  1973. package/apps/studio/client/share-dialog.jsx +0 -91
  1974. package/apps/studio/client/shell/collapsed-rail.jsx +0 -23
  1975. package/apps/studio/client/shell/status-bar.jsx +0 -215
  1976. package/apps/studio/client/styles/1-tokens-maude.css +0 -296
  1977. package/apps/studio/client/styles/1-tokens.css +0 -304
  1978. package/apps/studio/client/styles/3-shell-maude.css +0 -3158
  1979. package/apps/studio/client/styles/3-shell.css +0 -1036
  1980. package/apps/studio/client/styles/4-components-maude.css +0 -134
  1981. package/apps/studio/client/styles/4-components.css +0 -2204
  1982. package/apps/studio/client/styles/5-maude-overrides.css +0 -162
  1983. package/apps/studio/client/styles.css +0 -1264
  1984. package/apps/studio/contextual-toolbar.tsx +0 -512
  1985. package/apps/studio/export-dialog.tsx +0 -827
  1986. package/apps/studio/undo-hud.tsx +0 -16
@@ -0,0 +1,2068 @@
1
+ // agents.ts — every action's AI path (contract V2-1.11 §5.1; V2-2.4b).
2
+ //
3
+ // One entry per registered action with kind !== 'place': its effect and exactly ONE agent path —
4
+ // file a documented format plus the skill section that teaches it,
5
+ // cli a `maude` verb (its tier is in verbs.ts),
6
+ // human a reason from the closed HumanReason list,
7
+ // pending allowed only under the §5.7 ratchet; names the package that builds the path and the
8
+ // path it will become.
9
+ // scripts/gen-actions.mjs folds these into apps/studio/actions.manifest.json;
10
+ // test/ai-parity-coverage.test.ts fails on a missing entry, a stale one, or a pending count above
11
+ // actions.parity.json's pendingMax. A new action lands with its entry in the same change (rule 14).
12
+ //
13
+ // Kept beside the registry (keyed by id) rather than on each ActionDef: 115 definitions across 12
14
+ // files, three of them factories. The manifest is the merged view either way.
15
+
16
+ import { TEMPLATES } from '../annotations/templates.ts';
17
+ import type { ActionDefAI, ActionId, AgentPath, HumanReason } from './types.ts';
18
+
19
+ const file = (
20
+ format: Extract<AgentPath, { path: 'file' }>['format'],
21
+ skill: Extract<AgentPath, { path: 'file' }>['skill'],
22
+ how: string
23
+ ): AgentPath => ({ path: 'file', format, skill, how });
24
+ const cli = (verb: string): AgentPath => ({ path: 'cli', verb });
25
+ const human = (because: HumanReason, note?: string): AgentPath =>
26
+ note ? { path: 'human', because, note } : { path: 'human', because };
27
+ // No `pending` helper: pendingMax reached 0 at the V2-2.4b gate and stays 0 (§5.7 rule 2).
28
+
29
+ // `maude design open` moves the user's view through the same registry actions (client/ui-open.js).
30
+ const NAV = (note: string): ActionDefAI => ({
31
+ effect: 'none',
32
+ agent: cli(`maude design open ${note}`),
33
+ });
34
+ const PREF = (note?: string): ActionDefAI => ({ effect: 'none', agent: human('view-pref', note) });
35
+ const TSX = (how: string, skill: `design:${string}` = 'design:design'): ActionDefAI => ({
36
+ effect: 'project',
37
+ agent: file('canvas-tsx', skill, how),
38
+ });
39
+ const BOARD = (how: string): ActionDefAI => ({
40
+ effect: 'project',
41
+ agent: file('annotations', 'design:whiteboard', how),
42
+ });
43
+ // V2-2.4b — the last pending paths (§5.7 rule 2: pendingMax 0). `maude design open` moves the view
44
+ // but opens no panel, so the panels' paths are the read verbs (V2-1.9 §5.11: history.open →
45
+ // `history list`). Undo/redo keys are human (V2-1.5 §5.3 "human (keys)"): they walk the person's
46
+ // own stack, and an agent has no "newest step" there — it undoes ONE accepted action by id, as a new
47
+ // version, which is V2-1.5's separate `history.undo-action` / `chat.undo` path
48
+ // (decision:maude/v2-2.4b-undo-keys-human).
49
+ const UNDO_KEYS: ActionDefAI = {
50
+ effect: 'none',
51
+ agent: human(
52
+ 'keys',
53
+ 'the person’s own undo stack; an agent undoes one action by id: `maude design history undo --action <id>`'
54
+ ),
55
+ };
56
+ const COMMENTS: ActionDefAI = { effect: 'none', agent: cli('maude design comments list') };
57
+ const RESTORE = (verb: string): ActionDefAI => ({
58
+ effect: 'destructive',
59
+ minRole: 'edit',
60
+ undo: 'step',
61
+ server: { route: '/_api/project/restore', method: 'POST' },
62
+ agent: cli(verb),
63
+ });
64
+ // S11.10 — Version history › Advanced's git buttons: the person's working tree or remote (human 'git').
65
+ const GIT = (route: string, git: string, write = true): ActionDefAI => ({
66
+ effect: 'shared',
67
+ ...(write ? { minRole: 'edit' as const } : {}),
68
+ server: { route, method: 'POST' },
69
+ agent: human('git', `an agent runs git itself in the project folder: ${git}`),
70
+ });
71
+ // S9.7b — the comment TOOL's agent path is the write verb: an agent leaves a comment by posting it
72
+ // (`POST /_api/comments/op`, as the session, AI-written). The action itself only picks a tool
73
+ // (fromCanvas ⇒ effect none); the verb's own tier is shared → prompt (verbs.ts).
74
+ const COMMENT_ADD: ActionDefAI = {
75
+ effect: 'none',
76
+ agent: cli('maude design comments add --as-ai'),
77
+ };
78
+ const HELP: ActionDefAI = { effect: 'none', agent: human('onboarding') };
79
+ // S7.6c — a video tool whose UI write is one edit op: one undo step, refused below Can edit.
80
+ const VIDEO_OP = (agent: AgentPath): ActionDefAI => ({
81
+ effect: 'project',
82
+ minRole: 'edit',
83
+ undo: 'step',
84
+ server: { route: '/_api/edit-op', method: 'POST' },
85
+ agent,
86
+ });
87
+
88
+ const CLIP_MENU_TSX = (how: string): ActionDefAI =>
89
+ VIDEO_OP(file('canvas-tsx', 'design:video-comp', how));
90
+
91
+ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
92
+ // ── diagnostics (V2-4.7b) ──
93
+ 'diag.sync': { effect: 'none', agent: cli('maude design sync status') },
94
+ 'diag.server': { effect: 'none', agent: cli('maude design status') },
95
+ 'diag.ai': { effect: 'none', agent: cli('maude doctor') },
96
+ 'diag.ai-recheck': { effect: 'none', agent: cli('maude doctor') },
97
+ // S11.11 — `maude design logs` prints the same redacted lines the sheet shows (the files sit in
98
+ // ~/.maude/logs); copying and revealing the folder are the person's clipboard and Finder.
99
+ 'diag.logs': { effect: 'none', agent: cli('maude design logs') },
100
+ 'diag.copy-logs': { effect: 'none', agent: cli('maude design logs') },
101
+ 'diag.logs-show-in-finder': {
102
+ effect: 'none',
103
+ agent: human(
104
+ 'native-window',
105
+ 'reveals ~/.maude/logs in Finder; the agent reads `maude design logs`'
106
+ ),
107
+ },
108
+ 'diag.address': {
109
+ effect: 'none',
110
+ agent: human('view-pref', 'copies a value the agent already has from `maude design status`'),
111
+ },
112
+ 'diag.process': {
113
+ effect: 'none',
114
+ agent: human('view-pref', 'copies a value the agent already has from `maude design status`'),
115
+ },
116
+ 'diag.project-folder': {
117
+ effect: 'none',
118
+ agent: human('view-pref', 'copies the project path the agent already works in'),
119
+ },
120
+ // S11.11 — `maude design sync resync` waits for the trace and prints the result sentence (a
121
+ // shared effect: it prompts). The route refuses a read-only session and a cloud member.
122
+ 'sync.resync': {
123
+ effect: 'shared',
124
+ agent: cli('maude design sync resync'),
125
+ minRole: 'edit',
126
+ server: { route: '/_api/sync/resync', method: 'POST' },
127
+ },
128
+ // S11.17 — lands the canvas writes a full disk held (they also land by themselves once there is room).
129
+ // An agent's own writes go straight to the files; it frees space and may press Retry the same way.
130
+ 'save.retry-held': {
131
+ effect: 'project',
132
+ agent: cli(
133
+ 'maude design curl-local -X POST http://127.0.0.1:<port>/_api/diagnostics/disk-retry'
134
+ ),
135
+ minRole: 'edit',
136
+ server: { route: '/_api/diagnostics/disk-retry', method: 'POST' },
137
+ },
138
+ 'sync.download-all': {
139
+ effect: 'none',
140
+ agent: human('hub-link', 'pulls every file of a linked project onto this Mac'),
141
+ },
142
+ // S11.12 — Sync details (06 ad-syncd). A held SOURCE conflict's three picks; the slug is the
143
+ // `source-conflict-<slug>` notice id `maude design sync status` lists. Keep both writes this Mac's
144
+ // version as a new canvas "<name> this Mac" (ONE doc.create — one undo step) + a history aside.
145
+ ...Object.fromEntries(
146
+ (
147
+ [
148
+ ['keep-mine', 'mine'],
149
+ ['use-theirs', 'theirs'],
150
+ ['keep-both', 'keep-both'],
151
+ ] as const
152
+ ).map(([k, choice]) => [
153
+ `sync.${k}`,
154
+ {
155
+ effect: 'shared',
156
+ minRole: 'edit',
157
+ undo: 'step',
158
+ server: { route: '/_api/project/conflict', method: 'POST' },
159
+ agent: cli(
160
+ `maude design curl-local -X POST http://127.0.0.1:<port>/_api/project/conflict -d '{"file":"<slug>","choice":"${choice}"}'`
161
+ ),
162
+ } satisfies ActionDefAI,
163
+ ])
164
+ ),
165
+ ...Object.fromEntries(
166
+ (['publish', 'discard'] as const).map((choice) => [
167
+ `sync.${choice}-ai-edit`,
168
+ {
169
+ effect: 'shared',
170
+ minRole: 'edit',
171
+ server: { route: '/_api/project/ai-action', method: 'POST' },
172
+ agent: cli(
173
+ `maude design curl-local -X POST http://127.0.0.1:<port>/_api/project/ai-action -d '{"choice":"${choice}"}'`
174
+ ),
175
+ } satisfies ActionDefAI,
176
+ ])
177
+ ),
178
+ 'sync.cancel-transfer': {
179
+ effect: 'none',
180
+ minRole: 'edit',
181
+ server: { route: '/_api/sync/cancel-assets', method: 'POST' },
182
+ agent: cli('maude design curl-local -X POST http://127.0.0.1:<port>/_api/sync/cancel-assets'),
183
+ },
184
+ // p8-held-conflict-status — the two versions of a held source conflict (read only): this Mac's file and
185
+ // the project's, kept in `_history/<slug>/sync-recovery/`. `maude design sync status` lists the slugs.
186
+ // No `server`: the action itself only opens a sheet; the read under it is Sync details' own GET.
187
+ 'sync.compare': {
188
+ effect: 'none',
189
+ agent: cli(
190
+ 'maude design curl-local "http://127.0.0.1:<port>/_api/project/conflict?file=<slug>"'
191
+ ),
192
+ },
193
+ 'sync.get-latest': GIT('/_api/git/pull', 'git pull'),
194
+ 'sync.sign-in-again': {
195
+ effect: 'none',
196
+ agent: human('hub-link', 'signing in to the cloud is the person’s own credential'),
197
+ },
198
+ // ── search ──
199
+ 'search.open': { effect: 'none', agent: cli('maude design index') },
200
+ 'canvases.search': { effect: 'none', agent: cli('maude design index') },
201
+ 'canvases.find': { effect: 'none', agent: cli('maude design index') },
202
+ 'canvases.refresh': { effect: 'none', agent: cli('maude design index') },
203
+ // ── canvas ──
204
+ // V2-8.16 (lead: option a) — a new canvas is MADE by the app's own create (POST /_api/canvas, which
205
+ // records it in Version history and claims it for the chat's run — runForCreate), then edited. The
206
+ // design hook refuses a hand-written new canvas (new-canvas); test/ai-parity-hook-crosscheck.test.ts.
207
+ 'canvas.new': TSX(
208
+ `Create it with \`maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"kind":"blank","name":"<name>"}'\` (port: .design/_server.json; the answer's rel is the file), then Edit that .tsx: a DCArtboard per screen`
209
+ ),
210
+ 'canvas.new-brief': TSX(
211
+ `Create it with \`maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"kind":"brief-board","name":"<name>"}'\` (port: .design/_server.json; the answer's rel is the file), then Edit that brief .tsx`
212
+ ),
213
+ // S6.3 — a canvas from one sentence (V2-1.1 §5.9: `file:'canvas-tsx'`). From Home the server has already made
214
+ // the file from the sentence; otherwise the agent makes it with the app's create first (V2-8.16).
215
+ 'home.ask': TSX(
216
+ `The canvas exists when Home asks (the server made it from the sentence); otherwise create it with \`maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"kind":"blank"}'\` (the answer's rel is the file). Then Edit it: add every artboard empty with kind and size first, then fill big before small, words last (SKILL.md § A first draft from Home)`
217
+ ),
218
+ // V2-8.16 — whole-file ops go through the studio's own routes: the design hook refuses an agent's
219
+ // mv / cp / rm of a versioned design file (bash-guard use-verb · not-a-writer · use-trash), and the
220
+ // route is what records the move / create in Version history. test/ai-parity-hook-crosscheck.test.ts.
221
+ 'canvas.duplicate': {
222
+ effect: 'project',
223
+ agent: cli(
224
+ `maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"duplicateOf":"<canvas path>"}'`
225
+ ),
226
+ },
227
+ 'canvas.rename': {
228
+ effect: 'project',
229
+ agent: cli(
230
+ `maude design curl-local http://127.0.0.1:<port>/_api/fs-move --method POST --header "Content-Type: application/json" --data '{"file":"<canvas path>","toName":"<new name>"}'`
231
+ ),
232
+ },
233
+ 'canvas.move': {
234
+ effect: 'project',
235
+ agent: cli(
236
+ `maude design curl-local http://127.0.0.1:<port>/_api/fs-move --method POST --header "Content-Type: application/json" --data '{"file":"<canvas path>","toDir":"<folder>"}'`
237
+ ),
238
+ },
239
+ // S11.7 — the code view and the broken-canvas card. The agent reads the same two routes through verbs
240
+ // (S11.6): `canvas-source` is the code (or one artboard's lines), `canvas-errors` the structured errors.
241
+ 'canvas.view-code': { effect: 'none', agent: cli('maude design canvas-source') },
242
+ 'canvas.copy-error': { effect: 'none', agent: cli('maude design canvas-errors') },
243
+ // "Ask AI to fix it" only PRE-FILLS the composer; the agent's own way to the same place is to read the
244
+ // structured error (file, line, column) and edit the .tsx — so the path is the read verb, not a human gate.
245
+ 'canvas.ask-ai-fix': { effect: 'none', agent: cli('maude design canvas-errors') },
246
+ 'canvas.last-good': RESTORE('maude design history restore <canvas> @last-good'),
247
+ // S1.2 — the row menu's other rows. The link is the canvas's address (`maude design open <canvas>` moves
248
+ // the person's view to it). Trash: `maude design trash move` (V2-8.16) sends the row menu's own
249
+ // `DELETE /_api/canvas`, so Version history records the delete — the design hook refuses an agent's mv/rm.
250
+ // S11.9 — the row menu's Advanced group. The two native doors open Finder / the editor on the PERSON's Mac:
251
+ // an agent already holds the file (the project path is in `maude design index`), so they are the person's.
252
+ 'canvas.reveal-in-finder': {
253
+ effect: 'none',
254
+ agent: human(
255
+ 'native-window',
256
+ 'opens Finder on the person’s Mac; an agent already holds the file'
257
+ ),
258
+ },
259
+ 'canvas.open-in-editor': {
260
+ effect: 'none',
261
+ agent: human(
262
+ 'native-window',
263
+ 'opens the person’s editor on the file; an agent edits the .tsx itself'
264
+ ),
265
+ },
266
+ 'canvas.copy-file-path': { effect: 'none', agent: cli('maude design index') },
267
+ 'canvas.rename-file': {
268
+ effect: 'project',
269
+ agent: cli(
270
+ `maude design curl-local http://127.0.0.1:<port>/_api/fs-move --method POST --header "Content-Type: application/json" --data '{"file":"<canvas path>","toName":"<new name>"}'`
271
+ ),
272
+ },
273
+ 'canvas.copy-link': {
274
+ effect: 'none',
275
+ agent: human('view-pref', 'copies to the clipboard; an agent shares the canvas path instead'),
276
+ },
277
+ 'canvas.trash': {
278
+ effect: 'project',
279
+ minRole: 'edit',
280
+ undo: 'version',
281
+ agent: cli('maude design trash move <canvas>'),
282
+ },
283
+ // S1.2 — pins are the person's (`/_api/pins`); the sort order is a per-project view preference.
284
+ 'canvases.pin': PREF(
285
+ 'a per-person pin; an agent reads the canvas list with `maude design index`'
286
+ ),
287
+ 'canvases.unpin': PREF(
288
+ 'a per-person pin; an agent reads the canvas list with `maude design index`'
289
+ ),
290
+ 'canvases.sort': PREF(
291
+ 'the order the Canvases panel lists in; `maude design index` lists them all'
292
+ ),
293
+ // S7.24 — the kind chips narrow the Canvases list in the person's window; `maude design index` reads each
294
+ // canvas's artboard kinds (the same index the counts come from).
295
+ 'canvases.filter-kind': PREF(
296
+ 'narrows the Canvases list in the person’s window; `maude design index` lists every canvas with its artboard kinds'
297
+ ),
298
+ // S8.17 — the sheet lists a page's frames and brings the picked ones in as pictures (one new canvas); spends the
299
+ // person's Figma token and reaches the network. `--list` / `--frames <url> --pick <ids>` are the same two halves.
300
+ 'import.figma': {
301
+ effect: 'external',
302
+ minRole: 'edit',
303
+ server: { route: '/_api/figma/import-frames', method: 'POST' },
304
+ agent: cli('maude design import-figma'),
305
+ },
306
+ // S8.18 — a website read is third-party network (the fetch-asset gate); a logo alone writes assets/logos/
307
+ 'import.brand': { effect: 'external', agent: cli('maude design import-brand') },
308
+ 'view.advanced-open-all': PREF('opens every panel’s Advanced fold; a UI preference'),
309
+ 'view.advanced-close-all': PREF('folds every panel’s Advanced section; a UI preference'),
310
+ 'canvas.reload': PREF('reloads the user’s view; the studio reloads on every file change'),
311
+ 'canvas.new-video': TSX(
312
+ `Create it with \`maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"kind":"video-comp","name":"<name>","clips":[]}'\` (port: .design/_server.json; the answer's rel is the file), then Edit that video-comp .tsx`,
313
+ 'design:video-comp'
314
+ ),
315
+ 'canvas.close': PREF('closes the user’s tab'),
316
+ 'video.assemble': {
317
+ effect: 'project',
318
+ agent: file('edl', 'design:footage-director', 'Write the <slug>.edl.json cut, then the comp'),
319
+ },
320
+ // ── video tools (S7.6c, V2-1.10 §5.7): the UI's writes are edit ops (`POST /_api/edit-op`, minRole
321
+ // edit — the server refuses below it); an agent runs the verb that ends in the same op, or writes
322
+ // the same literal props itself.
323
+ 'video.captions.add': VIDEO_OP(cli('maude design captions add')),
324
+ 'video.captions.style': VIDEO_OP(
325
+ file(
326
+ 'canvas-tsx',
327
+ 'design:video-comp',
328
+ 'Set words / position / font / highlight / maxChars on the comp’s one <Captions>'
329
+ )
330
+ ),
331
+ 'video.captions.fix-word': VIDEO_OP(
332
+ file(
333
+ 'canvas-tsx',
334
+ 'design:video-comp',
335
+ 'Add { src, at, text } to <Captions fixes> as a JSON literal (text null hides the word)'
336
+ )
337
+ ),
338
+ 'video.captions.export': {
339
+ effect: 'project',
340
+ minRole: 'comment',
341
+ agent: cli('maude design captions export'),
342
+ },
343
+ // S7.11 — the panel is a per-person view of the same words `captions list` prints; reading them needs no write
344
+ 'video.transcript.open': PREF(
345
+ 'the Transcript panel is a per-person view; an agent reads the same words with `maude design captions list`'
346
+ ),
347
+ 'video.transcript.cut': VIDEO_OP(cli('maude design cut-words')),
348
+ // S7.11b — both run through `POST /_api/media-analysis` (Can edit; the job is the verb's own helper)
349
+ 'video.transcript.find-speech': {
350
+ effect: 'project',
351
+ minRole: 'edit',
352
+ server: { route: '/_api/media-analysis', method: 'POST' },
353
+ agent: cli('maude design transcribe-local'),
354
+ },
355
+ 'video.music.beats': {
356
+ effect: 'project',
357
+ minRole: 'edit',
358
+ server: { route: '/_api/media-analysis', method: 'POST' },
359
+ agent: cli('maude design beats'),
360
+ },
361
+ 'video.music.duck': VIDEO_OP(
362
+ file(
363
+ 'canvas-tsx',
364
+ 'design:video-comp',
365
+ 'Wrap the one music <Audio> in <Duck db attackMs releaseMs>; unwrap to turn it off'
366
+ )
367
+ ),
368
+ 'video.music.volume': VIDEO_OP(
369
+ file(
370
+ 'canvas-tsx',
371
+ 'design:video-comp',
372
+ 'Set the literal volume (0..1) of the music <Audio>; 1 removes the prop'
373
+ )
374
+ ),
375
+ 'video.cut-to-beat': VIDEO_OP(cli('maude design cut-to-beat')),
376
+ 'video.snap': {
377
+ effect: 'project',
378
+ minRole: 'edit',
379
+ agent: file(
380
+ 'canvas-meta',
381
+ 'design:video-comp',
382
+ 'artboardMeta.<id>.snap: "beat" | "off" in the canvas .meta.json'
383
+ ),
384
+ },
385
+ 'video.reframe': VIDEO_OP(
386
+ file(
387
+ 'canvas-tsx',
388
+ 'design:video-comp',
389
+ 'Wrap the clip’s media in <Reframe focus zoom formats> (source-second keyframes, sorted)'
390
+ )
391
+ ),
392
+ // S7.18 — a keyframe's curve: `{ easing: Easing.bezier(a, b, c, d) }` on the k-th interpolate(frame, …) of the clip's
393
+ // component, `Easing` imported from remotion. The Timeline's Advanced draws it as cubic-bezier(a, b, c, d).
394
+ 'video.easing.set': VIDEO_OP(
395
+ file(
396
+ 'canvas-tsx',
397
+ 'design:video-comp',
398
+ 'Add { easing: Easing.bezier(a, b, c, d) } as the options of the k-th interpolate(frame, …) in the clip’s component; import Easing from remotion'
399
+ )
400
+ ),
401
+ // S7.18 (C22) — the artboard's own export ceiling, in the canvas .meta.json
402
+ 'video.allow-longer': {
403
+ effect: 'project',
404
+ minRole: 'edit',
405
+ agent: file(
406
+ 'canvas-meta',
407
+ 'design:video-comp',
408
+ 'artboardMeta.<id>.maxFrames: an integer up to 18000 in the canvas .meta.json (3600 without it)'
409
+ ),
410
+ },
411
+ // S7.16 — ruler markers are part of the cut: a list in the canvas .meta.json, which the agent reads and writes
412
+ 'timeline.marker.add': {
413
+ effect: 'project',
414
+ minRole: 'edit',
415
+ agent: file(
416
+ 'canvas-meta',
417
+ 'design:video-comp',
418
+ 'artboardMeta.<id>.markers: a list of { frame, name } in the canvas .meta.json (an integer frame ≥ 0, a plain-text name up to 60 characters, one per frame, at most 200)'
419
+ ),
420
+ },
421
+ 'timeline.marker.remove': {
422
+ effect: 'project',
423
+ minRole: 'edit',
424
+ agent: file(
425
+ 'canvas-meta',
426
+ 'design:video-comp',
427
+ 'Remove the entry from artboardMeta.<id>.markers in the canvas .meta.json (an empty list takes them all away)'
428
+ ),
429
+ },
430
+ // moving the playhead is the person's own view; the agent reads the markers from the meta
431
+ 'timeline.marker.jump': PREF(
432
+ 'where the playhead is (the markers themselves are in the canvas meta)'
433
+ ),
434
+ 'video.poster.set': {
435
+ effect: 'project',
436
+ minRole: 'edit',
437
+ agent: file(
438
+ 'canvas-meta',
439
+ 'design:video-comp',
440
+ 'artboardMeta.<id>.poster: a comp frame, in the canvas .meta.json'
441
+ ),
442
+ },
443
+ 'video.format.add': VIDEO_OP(
444
+ file(
445
+ 'canvas-tsx',
446
+ 'design:video-comp',
447
+ 'Copy the video DCArtboard with a new id and size; its <VideoComp> keeps component={X} (linked)'
448
+ )
449
+ ),
450
+ 'video.format.unlink': VIDEO_OP(
451
+ file(
452
+ 'canvas-tsx',
453
+ 'design:video-comp',
454
+ 'Copy the comp under a new name and point this artboard’s <VideoComp component> at it'
455
+ )
456
+ ),
457
+ 'video.take.swap': VIDEO_OP(
458
+ file(
459
+ 'canvas-tsx',
460
+ 'design:video-comp',
461
+ 'Set the clip media’s trimBefore (output frames) to the other take; keep durationInFrames'
462
+ )
463
+ ),
464
+ 'video.fit': VIDEO_OP(
465
+ file(
466
+ 'canvas-tsx',
467
+ 'design:video-comp',
468
+ 'Set fit="fit" | "blur" on the clip’s <Reframe> (fill is the default)'
469
+ )
470
+ ),
471
+ 'video.place': VIDEO_OP(
472
+ file(
473
+ 'canvas-tsx',
474
+ 'design:video-comp',
475
+ 'Wrap the title’s content in <Place at={[x, y]} formats={{ "16:9": [x, y] }}> (centre anchor, fractions of the output frame)'
476
+ )
477
+ ),
478
+ 'video.title.motion': VIDEO_OP(
479
+ file(
480
+ 'canvas-tsx',
481
+ 'design:video-comp',
482
+ 'Wrap the title’s content in <TitleMotion preset="none|fade|slide-up|pop|type-on|per-word" frames={12}> (inside its <Place> when it has one); none takes the wrapper off'
483
+ )
484
+ ),
485
+ // S7.11b — the Title inspector's Font and Colour: fontFamily / color in the style of the element holding the words
486
+ 'video.title.style': VIDEO_OP(
487
+ file(
488
+ 'canvas-tsx',
489
+ 'design:video-comp',
490
+ 'Set fontFamily "var(--font-…)" (a design-system font token) and color (a token or one plain CSS colour) in the style object literal of the element holding the title’s words; remove the property to take it off'
491
+ )
492
+ ),
493
+ 'video.transition.set': VIDEO_OP(
494
+ file(
495
+ 'canvas-tsx',
496
+ 'design:video-comp',
497
+ 'Set presentation={fade() | slide() | wipe() | flip() | clockWipe(…) | none()} and the timing frames on the <TransitionSeries.Transition> at the join (Cut is none())'
498
+ )
499
+ ),
500
+ 'artboard.new-desktop': TSX('Add a DCArtboard sized 1440×1024'),
501
+ 'artboard.new-laptop': TSX('Add a DCArtboard sized 1280×800'),
502
+ 'artboard.new-tablet': TSX('Add a DCArtboard sized 834×1194'),
503
+ 'artboard.new-mobile': TSX('Add a DCArtboard sized 390×844'),
504
+ 'artboard.new-a4': TSX('Add a DCArtboard kind="print" sized A4'),
505
+ 'artboard.new-letter': TSX('Add a DCArtboard kind="print" sized Letter'),
506
+ // S7.20 — the F size picker. The kind travels with the pick: one DCArtboard of the preset's kind.
507
+ 'artboard.new-video': TSX(
508
+ 'Add <DCArtboard kind="video" width={1920} height={1080}> with a <VideoComp component={…} durationInFrames={150} fps={30} width={1920} height={1080} /> inside and the comp function — see canvas-tsx.md § Add an artboard of a kind'
509
+ ),
510
+ 'artboard.insert-preset': TSX(
511
+ 'Add <DCArtboard id label kind width height> of the preset’s kind: kind="digital" fixed for App and Social sizes, kind="web" (width, height is the floor) for a Web page, kind="print" print={{ paper, orientation }} with px = trim + 2 × bleed for Print, kind="video" with a <VideoComp> for Video; a custom print size is print={{ paper: <nearest larger preset>, orientation, sizeMm: [w, h], bleedMm }} and never paper "custom"; its x / y in layout.artboards[] of the .meta.json — see canvas-tsx.md § Add an artboard of a kind'
512
+ ),
513
+ // ── edit / select / object ──
514
+ 'edit.undo': UNDO_KEYS,
515
+ 'edit.redo': UNDO_KEYS,
516
+ 'edit.undo-history': {
517
+ effect: 'none',
518
+ agent: human(
519
+ 'keys',
520
+ 'the person’s own undo stack, shown; an agent reads history with `maude design history list`'
521
+ ),
522
+ },
523
+ 'edit.cut': PREF('the clipboard is the user’s; remove the content from the source instead'),
524
+ 'edit.paste': PREF('the clipboard is the user’s; write the content into the source instead'),
525
+ 'edit.copy': PREF('the clipboard is the user’s; read the source instead'),
526
+ 'select.all': NAV('<canvas> --select all'),
527
+ 'select.none': NAV('<canvas> --select none'),
528
+ 'select.all-annotations': NAV('<canvas> --select annotations'),
529
+ 'object.duplicate': TSX('Copy the element’s JSX next to it; give the copy a new element id'),
530
+ // V2-clipboard-objects — the agent writes the source itself; the clipboard is the person's
531
+ 'object.copy': {
532
+ effect: 'none',
533
+ agent: file(
534
+ 'canvas-tsx',
535
+ 'design:design',
536
+ 'Read the element’s JSX in the source (the clipboard is the person’s)'
537
+ ),
538
+ },
539
+ 'object.cut': TSX('Move the element’s JSX in the source (the clipboard is the user’s)'),
540
+ 'artboard.copy': {
541
+ effect: 'none',
542
+ agent: file(
543
+ 'canvas-tsx',
544
+ 'design:design',
545
+ 'Read the artboard’s JSX in the source (the clipboard is the person’s)'
546
+ ),
547
+ },
548
+ 'canvas.paste': TSX(
549
+ 'Write the JSX into the source; a copy gets new element ids (the clipboard is the user’s)'
550
+ ),
551
+ // S2.2 — Inspector › Advanced. The copies read what is already in the file; the id is the
552
+ // `data-cd-id` literal (V2-1.4 §5.5), renamed together with every reference to it.
553
+ 'inspector.copy-css': {
554
+ effect: 'none',
555
+ agent: file('canvas-tsx', 'design:design', 'Read the element’s style={{…}} in the .tsx'),
556
+ },
557
+ 'element.copy-id': {
558
+ effect: 'none',
559
+ agent: file('canvas-tsx', 'design:design', 'Read the element’s data-cd-id in the .tsx'),
560
+ },
561
+ // S8.19c — one edit-op; an agent edits the same string literals by hand.
562
+ 'asset.relink': TSX(
563
+ 'Replace every string literal that names the missing file with the copy’s assets/<sha8>.<ext> path (import it first: `maude design import-asset <file>`); keep each reference’s leading / or ./'
564
+ ),
565
+ // S2.8 — an artboard's size is its JSX width/height (+ the bare `fixed` prop); its place is the meta layout.
566
+ 'artboard.resize': TSX(
567
+ 'Set the DCArtboard’s width and height props (64–8192); add the bare `fixed` prop to make the height exact. Its position is layout.artboards[] in the .meta.json, not a prop'
568
+ ),
569
+ 'artboard.add-width': TSX(
570
+ 'Copy the DCArtboard’s JSX beside it with a new id, a label that names the width, and that width prop; add its layout.artboards[] position in the .meta.json'
571
+ ),
572
+ // S2.9 — Tidy up: positions only, the layout lane of the .meta.json.
573
+ 'artboard.tidy': TSX(
574
+ 'Sort the selected artboards left to right by x; give them all the largest y; keep the first x and set each next x = previous x + width + gap (gap = the mean of today’s edge-to-edge gaps, 80 when boards overlap), in layout.artboards[] of the .meta.json — see canvas-tsx.md § Tidy up artboards'
575
+ ),
576
+ // S2.10 — the artboard menu. A copy is a splice of the DCArtboard's JSX; its place is layout.artboards[].
577
+ 'artboard.duplicate': TSX(
578
+ 'Copy the DCArtboard’s JSX right after it with a new id (desktop → desktop-2), a new label (Desktop → Desktop 2) and no data-cd-id or data-cd-locked inside; put it at the source’s right edge + the row’s gap in layout.artboards[] of the .meta.json — see canvas-tsx.md § Duplicate an artboard'
579
+ ),
580
+ 'artboard.duplicate-at-width': TSX(
581
+ 'Copy the DCArtboard’s JSX right after it with a new id (desktop-390), the label “<label> (390px)”, that width prop and no data-cd-id or data-cd-locked inside; add its layout.artboards[] position beside the source — see canvas-tsx.md § Duplicate an artboard'
582
+ ),
583
+ // S7.22 — safe zones: a plain string prop; the bands are drawn on the canvas only and no exporter paints them.
584
+ 'artboard.set-safe-zones': TSX(
585
+ 'Set the DCArtboard’s safeZones prop to one preset id — instagram-story, instagram-reels, instagram-grid, tiktok, youtube-shorts or facebook-event-cover — or remove the prop for none; whether the bands are drawn is the person’s own view state, not the file — see canvas-tsx.md § Artboard props that Maude 2 adds'
586
+ ),
587
+ // S7.23 — the print inspector: `print` is design intent AND the artboard's width/height are its trim plus bleed in px, so an
588
+ // agent keeps the two in step (print/units.ts: px = round(mm × 96 ÷ 25.4), artboard = trim + 2 × bleed).
589
+ 'artboard.set-print': TSX(
590
+ 'Edit the DCArtboard’s print prop ({ paper, orientation, bleedMm, marginsMm, sizeMm: [w, h] for a custom trim }) and set its width and height props to the trim plus 2 × bleed in px (mm × 96 ÷ 25.4, rounded) — A6 with 3 mm bleed is 419 × 581; a different paper clears sizeMm — see canvas-tsx.md § Artboard props that Maude 2 adds'
591
+ ),
592
+ // S7.25 — Change kind makes a copy: the original keeps every byte; the print is the copy with kind, print, px size and ONE scaling wrapper.
593
+ 'artboard.convert-kind': TSX(
594
+ "Copy the DCArtboard right after itself with a new id and label, set kind=\"print\", print={{ paper, orientation, bleedMm }} and width/height to the paper plus 2 × bleed in px, drop safeZones, and put the copy’s children in one <div style={{ position: 'relative', flex: 'none', width, height, zoom }}> that scales the design to the paper’s width; optionally artboardMeta.<copy>.madeFrom = { artboard, label } in the .meta.json — see canvas-tsx.md § Change an artboard’s kind"
595
+ ),
596
+ // S7.25 — the one verb of a warning row: each is an ordinary edit, so an agent makes the same edit.
597
+ 'warning.fix': TSX(
598
+ 'Make the edit the warning’s verb names: Move inside (translate the layer inside the safe margin), Allow longer (artboardMeta.<id>.maxFrames up to 18000 in the .meta.json), Fix size (width/height = paper + 2 × bleed in px), Fit to width (max-width: 100% on the layer), Replace… (a larger picture), Show (nothing to write) — see canvas-tsx.md § Change an artboard’s kind, and the warnings; GET /_api/kinds/warnings?canvas= lists them'
599
+ ),
600
+ 'artboard.set-print-guides': TSX(
601
+ 'Set showGuides: true or false inside the DCArtboard’s print prop to show or hide its bleed, trim and margin guides whatever View says; remove the key to follow View › Advanced › Print guides again — see canvas-tsx.md § Artboard props that Maude 2 adds'
602
+ ),
603
+ 'artboard.set-guides': TSX(
604
+ 'Set the DCArtboard’s guides prop — { columns: { count, gutter, margin }, rows: { … }, grid: { size } } — or remove the prop; the guides are drawn on the canvas only and never exported — see canvas-tsx.md § Artboard props that Maude 2 adds'
605
+ ),
606
+ 'artboard.rename': TSX('Set the DCArtboard’s label prop (up to 80 characters; accents are kept)'),
607
+ 'artboard.reset-position': TSX(
608
+ 'Remove the artboard’s entry from layout.artboards[] in the .meta.json; it returns to its default-grid slot'
609
+ ),
610
+ 'artboard.ask-ai': { effect: 'none', agent: human('ai-chat') },
611
+ // S2.19 — ⌘/ on a selection: the person's way into the AI chat with a scope; an agent IS the chat
612
+ 'ai.ask-selection': { effect: 'none', agent: human('ai-chat'), minRole: 'edit' },
613
+ // A5 lead (S2.2b): an agent does not rename ids — the references live in lanes it never writes
614
+ // (_comments/, the board's hosts); `maude design check` reports the old id as id-lost.
615
+ 'element.set-id': {
616
+ effect: 'project',
617
+ agent: human(
618
+ 'keys',
619
+ 'ask the person to use Element id; an agent never rewrites the comments file'
620
+ ),
621
+ },
622
+ // S4.11 — the stamp is the write: an agent that creates or rewrites an element gives it a readable id itself.
623
+ 'element.stamp': {
624
+ effect: 'project',
625
+ minRole: 'edit',
626
+ undo: 'none',
627
+ server: { route: '/_api/edit-op', method: 'POST' },
628
+ agent: file(
629
+ 'canvas-tsx',
630
+ 'design:design',
631
+ 'Give the element a readable data-cd-id (kebab-case, unique on the canvas) so an arrow can point at it'
632
+ ),
633
+ },
634
+ // S3.10a — `data-cd-link` is the one data-cd-* an agent may write (S3-links-format §8; checked by link-format ·
635
+ // link-no-id · link-dangling). The studio writes it through POST /_api/edit-op (edit-ops/{set,clear}-link.ts).
636
+ 'element.set-link': {
637
+ effect: 'project',
638
+ minRole: 'edit',
639
+ undo: 'step',
640
+ server: { route: '/_api/edit-op', method: 'POST' },
641
+ agent: file(
642
+ 'canvas-tsx',
643
+ 'design:design',
644
+ 'Add data-cd-link="#<artboard>" | "<canvas>.tsx#<artboard>" | "https://…" to the element, next to its data-cd-id (add an id if it has none)'
645
+ ),
646
+ },
647
+ 'element.clear-link': {
648
+ effect: 'project',
649
+ minRole: 'edit',
650
+ undo: 'step',
651
+ server: { route: '/_api/edit-op', method: 'POST' },
652
+ agent: file('canvas-tsx', 'design:design', 'Remove the element’s data-cd-link attribute'),
653
+ },
654
+ 'preview.back': NAV('<canvas> --mode preview'), // an agent opens the canvas it wants
655
+ // S2.10c — the same result by hand: the board's JSX, its layout entry and its annotations go together.
656
+ 'artboard.trash': TSX(
657
+ 'Remove the <DCArtboard id="…"> element (canvas-tsx.md § Remove an artboard), its layout.artboards[] entry in the .meta.json and, in the .annotations.json, the annotations whose parentArtboard is it with what sits in its sections; the canvas keeps at least one artboard'
658
+ ),
659
+ // S11.8 — Inspector › Advanced, the code half. Copy code is the element's JSX read from the .tsx; Edit CSS as
660
+ // text is the style props; Detach is `/_api/detach-component` (clone the definition, repoint ONE usage).
661
+ 'inspector.copy-code': {
662
+ effect: 'none',
663
+ agent: file(
664
+ 'canvas-tsx',
665
+ 'design:design',
666
+ 'Read the element’s JSX in the .tsx (find its data-cd-id)'
667
+ ),
668
+ },
669
+ 'inspector.edit-css-as-text': TSX(
670
+ 'Edit the element’s style={{…}} props in the .tsx, one declaration per property'
671
+ ),
672
+ 'element.detach': TSX(
673
+ 'Copy the component definition under a new name and point this one instance at the copy; the other places keep the original'
674
+ ),
675
+ // S3.11 — the Inspect panel: Copy code is the clipboard (read the JSX from the .tsx instead); Edit ↵ is a view change.
676
+ 'inspect.copy-code': {
677
+ effect: 'none',
678
+ agent: file(
679
+ 'canvas-tsx',
680
+ 'design:design',
681
+ 'Read the element’s JSX in the .tsx (find its data-cd-id)'
682
+ ),
683
+ },
684
+ 'inspect.edit': NAV('<canvas>@<element> --mode edit'),
685
+ 'edit.copy-properties': PREF('the clipboard is the user’s; read the source instead'),
686
+ 'edit.paste-properties': TSX('Copy the style props from one element’s JSX to another'),
687
+ 'object.enter': NAV('<canvas>@<element>'),
688
+ 'object.step-out': NAV('<canvas>@<element>'),
689
+ 'object.select-child': NAV('<canvas>@<element>'),
690
+ 'object.select-parent': NAV('<canvas>@<element>'),
691
+ 'object.select-next': NAV('<canvas>@<element>'),
692
+ 'object.select-prev': NAV('<canvas>@<element>'),
693
+ 'object.remove': TSX('Delete the element’s JSX (a removed DCArtboard is parked in the trash)'),
694
+ 'object.nudge': TSX('Change the element’s position props'),
695
+ // S2.6 — the object menu. Each is one edit-op on the canvas file; an agent edits the same JSX by hand.
696
+ 'object.frame': TSX(
697
+ 'Wrap the elements in a <div data-cd-id="frame" style={{display:"flex",flexDirection:"column"}}> at the first one; every element keeps its data-cd-id'
698
+ ),
699
+ 'object.unframe': TSX(
700
+ 'Replace the frame with its children, in order; the frame’s own attributes go'
701
+ ),
702
+ 'object.bring-front': TSX(
703
+ 'Move the element’s JSX after its last sibling (later siblings paint on top)'
704
+ ),
705
+ 'object.bring-forward': TSX('Move the element’s JSX after the next sibling'),
706
+ 'object.send-backward': TSX('Move the element’s JSX before the previous sibling'),
707
+ 'object.send-back': TSX('Move the element’s JSX before its first sibling'),
708
+ 'object.lock': TSX(
709
+ 'Add or remove the data-cd-locked attribute on the element (shared by everyone)'
710
+ ),
711
+ 'object.hide': TSX(
712
+ 'Set style.display to "none" and add data-cd-hidden="<previous display>"; Show restores it and drops the marker'
713
+ ),
714
+ 'object.select-matching': PREF(
715
+ 'a selection in the person’s window; an agent greps the canvas for the same className and style'
716
+ ),
717
+ // S2.7 — the align bar and the rotate handle. Objects: set left / top on the element's inline style
718
+ // (the same result by hand); artboards: set x / y in the canvas's .meta.json layout.
719
+ 'align.left': TSX(
720
+ 'Give every selected element the same left (the leftmost one’s); for artboards set the same x in .meta.json layout.artboards'
721
+ ),
722
+ 'align.hcentre': TSX(
723
+ 'Centre every selected element on the middle of the selection’s horizontal extent (left = middle − width/2); artboards: x in .meta.json'
724
+ ),
725
+ 'align.right': TSX(
726
+ 'Give every selected element the same right edge (left = rightmost edge − width); artboards: x in .meta.json'
727
+ ),
728
+ 'align.top': TSX(
729
+ 'Give every selected element the same top (the highest one’s); artboards: y in .meta.json layout.artboards'
730
+ ),
731
+ 'align.vmiddle': TSX(
732
+ 'Centre every selected element on the middle of the selection’s vertical extent (top = middle − height/2); artboards: y in .meta.json'
733
+ ),
734
+ 'align.bottom': TSX(
735
+ 'Give every selected element the same bottom edge (top = lowest edge − height); artboards: y in .meta.json'
736
+ ),
737
+ 'distribute.h': TSX(
738
+ 'Keep the leftmost and rightmost element; set left on those between so the gaps are equal; artboards: x in .meta.json'
739
+ ),
740
+ 'distribute.v': TSX(
741
+ 'Keep the top and bottom element; set top on those between so the gaps are equal; artboards: y in .meta.json'
742
+ ),
743
+ 'object.rotate': TSX(
744
+ 'Set rotate(<deg>) in the element’s style.transform, keeping any other transform functions'
745
+ ),
746
+ // S2.11 — layout. Place freely / constraints are inline CSS on the element; reordering is moving the
747
+ // element's JSX among its siblings (their order IS the layout order).
748
+ 'object.place-freely': TSX(
749
+ 'Give the element style position: "absolute" with left, top, width and height (px) as it sits now; if its parent is static, give the parent position: "relative"'
750
+ ),
751
+ 'object.reorder-earlier': TSX(
752
+ 'Move the element’s JSX one place earlier among its siblings (in an auto layout the order in the code is the order on the canvas)'
753
+ ),
754
+ 'object.reorder-later': TSX(
755
+ 'Move the element’s JSX one place later among its siblings (in an auto layout the order in the code is the order on the canvas)'
756
+ ),
757
+ 'object.reorder-to': TSX(
758
+ 'Move the element’s JSX before, after or inside another element; for a copy, duplicate it first (a copy keeps no data-cd-id)'
759
+ ),
760
+ 'object.constrain': TSX(
761
+ 'On an element placed freely, keep the pinned edges: right/bottom instead of left/top (distance to the frame edge), both edges instead of a width; centre is calc(50% ± Npx); scale is percentages'
762
+ ),
763
+ 'layout.set-gap': TSX(
764
+ 'Set style.gap on each frame to the same value: var(--space-N) when the system names that stop, else px; one edit for all the frames. Over HTTP: POST /_api/edit-op {file, op: "layout.set-gap", targets: [{artboard, element}…], params: {gap: {token: "--space-N"} | {px: n}}} — one write, one undo step, a locked or non-layout target refuses the whole request'
765
+ ),
766
+ 'layout.convert-to-absolute': TSX(
767
+ 'Give each child position: "absolute" with left/top/width/height as rendered, and a static parent position: "relative" with its own width/height fixed if it would collapse; the children then no longer take part in the layout'
768
+ ),
769
+ // S2.12 — text in place, styles and the Czech ties
770
+ 'text.set': TSX(
771
+ 'Replace the element’s text child with the new copy (escape { } < > &). In a Czech element (lang="cs" on it or an ancestor) set the copy as Czech sets it: a no-break space (U+00A0) after every one-letter word (v k s z o u i a …) and „quotes“ — never inside a URL or `code`. Over HTTP: POST /_api/edit-op {file, op: "text.set", targets: [{artboard, element}], params: {text, before?, lang?}}'
772
+ ),
773
+ 'text.set-language': TSX(
774
+ 'Set lang="<tag>" on the element (cs, en, sk, de, pl). For cs also set the copy as Czech sets it: U+00A0 after every one-letter word, „quotes“; other languages leave the copy alone. Over HTTP: POST /_api/edit-op {file, op: "text.set-language", targets, params: {lang}}'
775
+ ),
776
+ 'text.set-case': TSX(
777
+ 'AA is style.textTransform "uppercase"; As typed removes it (write "none" when the element’s style sets a case). Over HTTP: POST /_api/edit-op {op: "text.set-case", params: {case: "upper"|"typed", explicit?}}'
778
+ ),
779
+ 'text.use-style': TSX(
780
+ 'Give the element the style’s class from system/<ds>/components.json typeRoles (heading → t-heading), replacing any other t-* class, and take out its inline fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, textTransform and fontStyle so the style shows. Over HTTP: POST /_api/edit-op {op: "text.use-style", params: {role: "t-heading"}}'
781
+ ),
782
+ 'text.reset-style': TSX(
783
+ 'Delete the inline fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, textTransform and fontStyle from the element’s style so its t-* class shows (params.props names fewer). Over HTTP: POST /_api/edit-op {op: "text.reset-style", params: {props?}}'
784
+ ),
785
+ 'component.insert': TSX(
786
+ 'Add the component to the artboard (or the frame) as a linked instance: put its name in the file’s `import { … } from "@maude/ds"` once and write `<Button variant="primary">…</Button>` as the last child, with a data-cd-id. On a canvas whose meta has dsRev (left out of the system’s current revision) add data-ds-rev="head" to it. Names and variants: GET /_api/ds/components or system/<ds>/components.json. Over HTTP: POST /_api/edit-op {op: "component.insert", targets: [frame?], params: {component, variant?, text?, artboard?, at?: {x: number|"centre", y}}}'
787
+ ),
788
+ // S2.15 — pictures: plain `<img>` edits; the recipes are canvas-tsx.md § Place, replace and crop an image.
789
+ 'image.place': TSX(
790
+ 'Add <img src="assets/<sha8>.<ext>" alt="" style={{ display: "block", width: "100%", height: "100%", objectFit: "cover" }} /> as the last child of the frame (import the file first: `maude design import-asset <file>` prints its assets/<sha8>.<ext>; src is always a flat assets/ name). On a frame or picture that already holds one picture, change only its src. On an artboard use position: "absolute", left: "0", top: "0" and put it first. Over HTTP: POST /_api/edit-op {op: "image.place", targets: [frame?], params: {asset | assets, mode: "fill" | "loose" | "fill-in-order" | "grid", artboard?, natural?: {w, h}, alt?}}'
791
+ ),
792
+ 'image.crop': TSX(
793
+ 'Fill is objectFit: "cover"; Fit is objectFit: "contain"; Crop is "cover" + objectPosition: "X% Y%" + data-image-fit="crop", and past 100 % transform: "scale(Z)" with transformOrigin: "X% Y%" and overflow: "hidden" on the frame; Tile is a <div role="img" data-image-tile="assets/…" style={{ backgroundImage: "url(\\"assets/…\\")", backgroundRepeat: "repeat" }}>. Over HTTP: POST /_api/edit-op {op: "image.crop", targets: [picture], params: {fit?, zoom?, x?, y?}}'
794
+ ),
795
+ 'image.replace': TSX(
796
+ 'Change the <img>’s src to the new assets/<sha8>.<ext> and remove its data-photo-edit (a per-use edit belongs to the old picture); keep the box, the fit and the alt. Over HTTP: POST /_api/edit-op {op: "image.replace", targets: [picture], params: {asset}}'
797
+ ),
798
+ // S8.15 — a photo edit per use (canvas-tsx.md § Edit one use of a photo; contract S8-asset-sidecars §5.1).
799
+ 'photo.use-edit': {
800
+ effect: 'project',
801
+ minRole: 'edit',
802
+ undo: 'step',
803
+ // the attribute is the action (one undo step); its file goes first through PUT /_api/photo-edit?perUse=1
804
+ server: { route: '/_api/edit-op', method: 'POST' },
805
+ agent: file(
806
+ 'canvas-tsx',
807
+ 'design:design',
808
+ 'Write the use’s own edit as assets/<img8>.<edit8>.photo.json (a v1 PhotoEdit, no new keys; <edit8> = the first 8 hex of the sha256 of its canonical JSON, keys sorted, no whitespace; never rewrite one, write a new one), then data-photo-edit="<edit8>" on the <img> / <image> / tiled picture whose src is assets/<img8>.<ext>; remove the attribute to show the every-use look again. Over HTTP: PUT /_api/photo-edit?asset=assets/<img8>.<ext>&perUse=1 with the PhotoEdit answers {edit: "<edit8>"}, then POST /_api/edit-op {op: "photo.use-edit", targets: [picture], params: {edit: "<edit8>" | null}}'
809
+ ),
810
+ },
811
+ 'photo.apply-every-use': {
812
+ effect: 'project',
813
+ minRole: 'edit',
814
+ undo: 'step',
815
+ server: { route: '/_api/photo-every-use', method: 'POST' },
816
+ agent: file(
817
+ 'canvas-tsx',
818
+ 'design:design',
819
+ 'Write the edit as assets/<img8>.photo.json (every use, a v1 PhotoEdit), then remove data-photo-edit from every <img> / <image> / tiled picture whose src is assets/<img8>.<ext> in every canvas (`maude design assets --usage assets/<img8>.<ext>` lists them), only when you may change every one of those canvases. Over HTTP: GET /_api/photo-every-use?asset=assets/<img8>.<ext> names the canvases ({uses, canApply, reason?}); POST /_api/photo-every-use {asset, edit} answers {path, canvases: [{canvas, ok}]}'
820
+ ),
821
+ },
822
+ // S8.17 — Make editable on an imported frame: DDR-219 codegen over the LOCAL Dev Mode server, one artboard
823
+ // (`maude design import-figma --editable <artboard> --canvas <dir>/<Canvas>.tsx`, = `--explode`).
824
+ 'figma.make-editable': {
825
+ effect: 'external',
826
+ minRole: 'edit',
827
+ server: { route: '/_api/figma/explode', method: 'POST' },
828
+ agent: cli('maude design import-figma'),
829
+ },
830
+ // S8.12 — the Assets tab's ↵ on a picked tile: the same write as `image.place`, started from the tab. The agent edits the TSX.
831
+ // V2-8.16 (journey S8) — Assets › Add files…: a file comes in cleaned (an SVG sanitized, DDR-167) and content-named
832
+ // assets/<sha8>.<ext>. The verb is the same import, so an agent never copies or hand-cleans a file into the project.
833
+ 'assets.add': {
834
+ effect: 'project',
835
+ minRole: 'edit',
836
+ undo: 'none',
837
+ agent: cli('maude design import-asset <file>'),
838
+ },
839
+ // p8-import-link — Assets › Add from a link…: the SERVER fetches it under the link gate (https, public addresses only,
840
+ // pinned, capped, typed by its bytes). An agent holds its own download tools (under Claude Code's permission card) and
841
+ // brings the downloaded file in like any other: the same import, so it never copies a file into the project by hand.
842
+ 'assets.add-link': {
843
+ effect: 'external',
844
+ minRole: 'edit',
845
+ undo: 'none',
846
+ server: { route: '/_api/import-link', method: 'POST' },
847
+ agent: cli('maude design import-asset <file>'),
848
+ },
849
+ 'assets.place': {
850
+ effect: 'project',
851
+ minRole: 'edit',
852
+ undo: 'step',
853
+ server: { route: '/_api/edit-op', method: 'POST' },
854
+ agent: file(
855
+ 'canvas-tsx',
856
+ 'design:design',
857
+ 'Same as image.place: add <img src="assets/<sha8>.<ext>" alt="" style={{ display: "block", width: "100%", height: "100%", objectFit: "cover" }} /> to the selected frame, or first inside the selected artboard (position: "absolute", left: "0", top: "0"). Which files exist and where they are used: `maude design assets`. Over HTTP: POST /_api/edit-op {op: "image.place", targets: [frame?], params: {asset, mode: "fill" | "loose", artboard?}}'
858
+ ),
859
+ },
860
+ // S8.16 — N takes in the selected artboard's shape, behind a single-use consent quote; the client places the best.
861
+ 'assets.generate': {
862
+ effect: 'external',
863
+ minRole: 'edit',
864
+ undo: 'step',
865
+ server: { route: '/_api/generate-takes', method: 'POST' },
866
+ agent: cli('maude design generate'),
867
+ },
868
+ // S8.16 — ← → between a generated picture's takes: image.replace aimed at the neighbour take (GET /_api/generate-takes/of).
869
+ 'image.next-take': {
870
+ effect: 'project',
871
+ minRole: 'edit',
872
+ undo: 'step',
873
+ server: { route: '/_api/edit-op', method: 'POST' },
874
+ agent: cli('maude design generate --take next'),
875
+ },
876
+ 'image.prev-take': {
877
+ effect: 'project',
878
+ minRole: 'edit',
879
+ undo: 'step',
880
+ server: { route: '/_api/edit-op', method: 'POST' },
881
+ agent: cli('maude design generate --take prev'),
882
+ },
883
+ // S8.21 — the details of one asset: kind, size, Made by AI (prompt, provider, licence), what AI saw (footage), the canvases and
884
+ // artboards that show it, and Advanced (stored as, Original on this Mac, edits, cut-out, command). A read for every role; the
885
+ // Original is told only to a project session on a Mac. An agent reads the same files: `assets/<sha8>.gen.json` (maude.gen v1),
886
+ // `.audio.json`, `.footage.json`, `.photo.json`.
887
+ 'assets.details': {
888
+ effect: 'none',
889
+ minRole: 'view',
890
+ // a read for every role (GET /_api/asset-details): no per-role refusal row, so no `server` key (as S10.9's ds.show-reach)
891
+ agent: cli('maude design assets --usage <asset> --details'),
892
+ },
893
+ // S8.20 — search in pictures: the person's own yes (or Stop) to describing their pictures with THEIR Claude account on
894
+ // THEIR Mac (V2-1.17 §5.9, Q9). An agent cannot say yes for the person whose account it spends.
895
+ 'assets.describe': {
896
+ effect: 'external',
897
+ server: { route: '/_api/describe/consent', method: 'POST' },
898
+ agent: human(
899
+ 'consent',
900
+ "the person's yes to AI describing their pictures; once on, re-describing is S12.13's `maude design describe`"
901
+ ),
902
+ },
903
+ 'assets.describe-stop': {
904
+ effect: 'none',
905
+ server: { route: '/_api/describe/stop', method: 'POST' },
906
+ agent: human('consent', 'Stop / Resume of the describing the person said yes to'),
907
+ },
908
+ // S8.13 — Move to trash on an asset: the picture and its sidecars go to `_trash/` together (the manifest says where each
909
+ // lives, so Trash and Undo bring them all back). Never a picture a canvas uses or an older version still shows.
910
+ 'assets.trash': {
911
+ effect: 'project',
912
+ minRole: 'edit',
913
+ undo: 'none',
914
+ server: { route: '/_api/assets/trash', method: 'POST' },
915
+ // V2-8.16 — the route, not mv: it refuses a picture a canvas uses or an older version shows and
916
+ // answers per item (moved, or used | kept-by-versions | checking); `assets --not-used` lists them.
917
+ agent: cli(
918
+ `maude design curl-local http://127.0.0.1:<port>/_api/assets/trash --method POST --header "Content-Type: application/json" --data '{"assets":["assets/<name>"]}'`
919
+ ),
920
+ },
921
+ // P8 round 7 — Rename… an asset: assets/<name>.<ext> and its sidecars take the new name (asset-rename.ts). Never a
922
+ // picture a canvas uses or an older version shows — their references would break — so nothing else is rewritten.
923
+ 'assets.rename': {
924
+ effect: 'project',
925
+ minRole: 'edit',
926
+ undo: 'none',
927
+ server: { route: '/_api/assets/rename', method: 'POST' },
928
+ // V2-8.16 — the route, not mv: {ok, to} or 409 {reason: used | kept-by-versions | checking | exists |
929
+ // same | bad-name | invalid | missing}.
930
+ agent: cli(
931
+ `maude design curl-local http://127.0.0.1:<port>/_api/assets/rename --method POST --header "Content-Type: application/json" --data '{"asset":"assets/<name>.<ext>","name":"<new name>"}'`
932
+ ),
933
+ },
934
+ 'tool.create-default': TSX(
935
+ 'Add the element’s JSX at its default size: a frame or rectangle is 100 × 100 (see object.insert-shape), a text is a <p> with the words “Text”'
936
+ ),
937
+ 'tool.crop': TSX('Crop a picture: see image.crop (objectPosition and transform on the <img>)'),
938
+ 'tool.components': TSX(
939
+ 'Place a component from the design system: see component.insert (write `<Name>` with `import { Name } from "@maude/ds"`)'
940
+ ),
941
+ // S2.17 — an instance: the same result by hand is in canvas-tsx.md § Instances of a design-system component
942
+ 'component.swap-variant': TSX(
943
+ 'Change `variant="…"` on the component (add or delete the attribute); a variant must be one system/<ds>/components.json lists for it. To change the component, rename the tag (open and close), import the new name from "@maude/ds" once and drop the old import when nothing else uses it — only between components that hold words (Button · Chip · Badge · Card · Callout). The words and style stay. Over HTTP: POST /_api/edit-op {op: "component.swap-variant", targets: [instance], params: {variant?: string|null, component?}}'
944
+ ),
945
+ 'component.reset': TSX(
946
+ 'Set the instance’s words back to the master’s (the component name) and delete its inline style declarations that are not placement (position, left, right, top, bottom, inset, zIndex, transform, translate, rotate, margin) — delete the style attribute when none is left. variant, data-cd-id and placement stay. Over HTTP: POST /_api/edit-op {op: "component.reset", targets: [instance], params: {props?}}'
947
+ ),
948
+ 'component.detach': TSX(
949
+ 'Replace the instance with the plain markup it renders to: the same tags, className, style (token references stay var(--…)) and words, the same data-cd-id, no @maude/ds component and no data-ds-rev; delete an import nothing uses any more. A local component’s usage: copy the definition under a new name and point that one usage at the copy (see element.detach). Over HTTP: POST /_api/edit-op {op: "component.detach", targets: [instance], params: {tree}} — tree is the rendered subtree {tag, attrs, kids}'
950
+ ),
951
+ 'component.go-to-main': NAV('<design-system canvas>@<component>'),
952
+ 'text.detach-style': TSX(
953
+ 'Write the style’s values as inline style (fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, textTransform, fontStyle — keep any the element already sets) and delete its t-* class; the text looks the same and stops following the style. Over HTTP: POST /_api/edit-op {op: "text.detach-style", params: {values: {"font-size": "var(--type-xl)", …}}} — the values as the design system wrote them (tokens), not px'
954
+ ),
955
+ // ── view ──
956
+ 'view.panels': PREF(),
957
+ 'view.pin-panels': PREF(),
958
+ 'view.hidden-files': PREF(),
959
+ // S11.9 — the left panel's Advanced switches: what this person SEES (kept on this Mac), and a selection
960
+ // in their window. An agent addresses elements by id in the .tsx (`maude design canvas-rects`).
961
+ 'canvases.show-file-names': PREF('a second line under each canvas, in the person’s own view'),
962
+ 'layers.show-tags': PREF('tag and id after each layer’s name, in the person’s own view'),
963
+ 'layers.select-by-selector': PREF(
964
+ 'a selection in the person’s window; an agent finds elements with `maude design canvas-rects`'
965
+ ),
966
+ // S7.24b — the Layers chips dim the other artboards in the person's window; `maude design index` lists every
967
+ // canvas with its artboard kinds, `maude design canvas-rects` the artboards of the open one.
968
+ 'layers.filter-kind': PREF(
969
+ 'dims the other artboards in the person’s window; `maude design index` lists every canvas with its artboard kinds'
970
+ ),
971
+ 'view.design-system': { effect: 'none', agent: cli('maude design open --panel design-system') },
972
+ 'view.comments': COMMENTS,
973
+ // S9.22 — the panel's filters are the verb's flags; an agent reads the same list the person sees.
974
+ 'comments.filter-open': { effect: 'none', agent: cli('maude design comments list --open') },
975
+ 'comments.filter-mine': { effect: 'none', agent: cli('maude design comments list --mine') },
976
+ 'comments.filter-resolved': {
977
+ effect: 'none',
978
+ agent: cli('maude design comments list --resolved'),
979
+ },
980
+ 'comments.filter-all': { effect: 'none', agent: cli('maude design comments list --all') },
981
+ 'comments.open-thread': { effect: 'none', agent: cli('maude design comments list') },
982
+ 'history.open': { effect: 'none', agent: cli('maude design history list') },
983
+ // S1.12b (V2-1.9 §5.11). Filtering is the person's own panel (human view-pref, as the contract
984
+ // has it); an agent reads one version with `history show` (§5.11's `open --at` is not built),
985
+ // Compare's words with `history diff`, and names with `history name` (shared — it prompts).
986
+ 'history.filter': PREF(
987
+ 'All · Named · Made by AI · People; the rows themselves: maude design history list'
988
+ ),
989
+ 'history.view-version': { effect: 'none', agent: cli('maude design history show') },
990
+ 'history.compare': { effect: 'none', agent: cli('maude design history diff') },
991
+ // S1.16 (V2-1.9 §5.9): one object's versions — the sticky / object menu's "Version history".
992
+ 'history.object': {
993
+ effect: 'none',
994
+ agent: cli('maude design history object <canvas> <artboard>/<id>'),
995
+ },
996
+ // S1.15: the picture compare (DiffView, before / after as ?sha= panes) is for looking — an agent reads the
997
+ // same two versions as words with `history diff`.
998
+ 'history.compare-pictures': PREF('the same two versions as words: maude design history diff'),
999
+ 'history.name': {
1000
+ effect: 'shared',
1001
+ minRole: 'edit',
1002
+ agent: cli('maude design history name <canvas> <ref> "<name>"'),
1003
+ },
1004
+ // S1.13 (V2-1.9 §5.8 / §5.11): every restore is a new version over Now — destructive (it prompts),
1005
+ // one undo step, refused below edit by POST /_api/project/restore.
1006
+ 'history.restore': RESTORE('maude design history restore <canvas> <ref>'),
1007
+ 'history.restore-artboard': RESTORE(
1008
+ 'maude design history restore <canvas> <ref> --artboard <id>'
1009
+ ),
1010
+ 'history.restore-object': RESTORE(
1011
+ 'maude design history restore <canvas> <ref> --element <artboard>/<id>'
1012
+ ),
1013
+ 'history.go-back': RESTORE('maude design history restore <canvas> @last-good'),
1014
+ // S11.10 — the git half of Version history › Advanced. Each is the person's working tree or remote: an agent
1015
+ // runs git itself in the project folder, so these are human 'git' (decision:maude/v2-S11.10-git-actions-human).
1016
+ // `server` pins the route the button calls; the server refuses Can comment / Can view on every write.
1017
+ 'history.branch-switch': GIT('/_api/git/checkout', 'git switch <branch>'),
1018
+ 'history.new-branch': GIT('/_api/git/branch', 'git switch -c <branch>'),
1019
+ // a fetch moves remote refs only: the role matrix allows it for a viewer, so the fold hides it by role alone
1020
+ 'history.fetch': GIT('/_api/git/fetch', 'git fetch', false),
1021
+ 'history.publish': GIT('/_api/git/push', 'git push'),
1022
+ 'history.save-with-note': GIT('/_api/git/commit', 'git commit -m "<note>"'),
1023
+ 'history.open-pr': GIT('/_api/git/fold', 'gh pr create (or git merge locally)'),
1024
+ 'history.discard-file': GIT('/_api/git/discard', 'git restore <file>'),
1025
+ 'history.continue-draft': GIT('/_api/git/checkout', 'git switch <draft>'),
1026
+ // V2-1.5 §5.3: undo one accepted action by id, as a new version; a teammate's later edits are kept.
1027
+ 'history.undo-action': {
1028
+ effect: 'project',
1029
+ minRole: 'edit',
1030
+ undo: 'version',
1031
+ server: { route: '/_api/project/undo', method: 'POST' },
1032
+ agent: cli('maude design history undo --action <id>'),
1033
+ },
1034
+ 'view.exports': { effect: 'none', agent: cli('maude design exports list') },
1035
+ // V2-4.4a — the left panel's tabs and its Trash row are views; the data is files (assets/, _trash/).
1036
+ // `asset-sweep` reports what is in <designRoot>/assets/ and where each file is used — what the tab lists.
1037
+ 'view.assets': { effect: 'none', agent: cli('maude design asset-sweep') },
1038
+ 'view.layers-panel': { effect: 'none', agent: cli('maude design open --panel layers-panel') },
1039
+ // S1.17 — the Trash list is `trash list` (GET /_api/trash, the route the Trash view reads); restoring
1040
+ // one item is `trash restore <id>` (POST /_api/trash/restore, the Restore button's route and body).
1041
+ 'view.trash': { effect: 'none', agent: cli('maude design trash list') },
1042
+ 'trash.restore': {
1043
+ effect: 'project',
1044
+ minRole: 'edit',
1045
+ undo: 'version',
1046
+ server: { route: '/_api/trash/restore', method: 'POST' },
1047
+ agent: cli('maude design trash restore <id>'),
1048
+ },
1049
+ // S1.7b — clearing out deletes for good what the whole team could still restore: the OWNER
1050
+ // confirms it, never an agent (decision:maude/v2-lead-trash-clear-human-only). The server
1051
+ // refuses every role below owner (test/_role-refusals.ts).
1052
+ 'trash.clear': {
1053
+ effect: 'project',
1054
+ minRole: 'owner',
1055
+ undo: 'none',
1056
+ server: { route: '/_api/trash/clear', method: 'POST' },
1057
+ agent: human(
1058
+ 'clear-trash',
1059
+ 'only the project owner, in the Trash view; nothing an agent may do'
1060
+ ),
1061
+ },
1062
+ 'view.inspector': { effect: 'none', agent: cli('maude design open --panel inspector') },
1063
+ 'view.timeline-keep-open': PREF(),
1064
+ 'view.annotations': PREF(),
1065
+ 'annotations.hide-resolved': PREF(
1066
+ 'per-person view preference (C29); never written to the annotations'
1067
+ ),
1068
+ 'view.layers': { effect: 'none', agent: cli('maude design open --panel layers') },
1069
+ 'view.inspector-on-select': PREF(),
1070
+ 'view.minimap': PREF(),
1071
+ 'view.zoom-controls': PREF(),
1072
+ 'view.print-guides': PREF(),
1073
+ 'present.canvas': NAV('<canvas> --mode present'),
1074
+ 'present.from-selection': NAV('<canvas> --mode present'),
1075
+ 'present.from-start': NAV('<canvas> --mode present'),
1076
+ // S3.2b — an agent steps by opening the canvas in Present at the artboard it wants (`#<artboard>`);
1077
+ // the Pointer is a mouse gesture, human below.
1078
+ 'present.next': NAV('<canvas>#<artboard> --mode present'),
1079
+ 'present.prev': NAV('<canvas>#<artboard> --mode present'),
1080
+ // S3.5 — the agent writes the same keys the sheet does, in the canvas's .meta.json (V2-1.12 R6);
1081
+ // the studio's own writes go through PATCH /_api/present-meta, which refuses every role below edit.
1082
+ 'present.order-notes': {
1083
+ effect: 'project',
1084
+ minRole: 'edit',
1085
+ undo: 'step',
1086
+ server: { route: '/_api/present-meta', method: 'PATCH' },
1087
+ agent: file(
1088
+ 'canvas-meta',
1089
+ 'design:design',
1090
+ 'present.order / present.skip and artboardMeta.<id>.notes in the canvas .meta.json'
1091
+ ),
1092
+ },
1093
+ // S3.6b — needs a person and a second display; an agent can't open a window on one.
1094
+ 'present.presenter-view': {
1095
+ effect: 'none',
1096
+ agent: human('native-window', 'needs a person and a second display'),
1097
+ },
1098
+ // S3.7b — in a cloud-linked project `maude design open <canvas> --mode present` also prints the link.
1099
+ 'present.copy-link': { ...NAV('<canvas> --mode present'), minRole: 'edit' },
1100
+ 'settings.theme': PREF(),
1101
+ // S11.13 — Settings › Advanced: this Mac's own preferences (prefs.json), not project state.
1102
+ 'settings.reset-panel-layout': PREF('puts the panels back where they started; a UI preference'),
1103
+ 'settings.reset-all': PREF(
1104
+ 'puts this Mac’s Maude preferences back to a fresh Mac’s; keys and sign-ins stay'
1105
+ ),
1106
+ // S11.14 — Settings › Connections. A credential or a link is the person's: an agent never types a
1107
+ // token or picks an account. The routes are the existing ones; their classes are access/request.ts's
1108
+ // (`/_api/hub/link` + `/_api/cloud/detach` are session writes, attach + probe are `edit`).
1109
+ 'connections.replace-hub-token': {
1110
+ effect: 'external',
1111
+ server: { route: '/_api/hub/link', method: 'POST' },
1112
+ agent: human('hub-link', 'the person pastes the new token; it is never handed to an agent'),
1113
+ },
1114
+ 'connections.figma-test': {
1115
+ effect: 'external',
1116
+ minRole: 'edit',
1117
+ server: { route: '/_api/figma/probe', method: 'POST' },
1118
+ agent: human(
1119
+ 'accounts',
1120
+ 'spends the person’s Figma token; an agent imports with `maude design import-figma`'
1121
+ ),
1122
+ },
1123
+ 'connections.cloud-project-connect': {
1124
+ effect: 'shared',
1125
+ minRole: 'edit',
1126
+ server: { route: '/_api/cloud/attach', method: 'POST' },
1127
+ agent: human('hub-link', 'links this folder to a cloud project under the person’s account'),
1128
+ },
1129
+ 'connections.cloud-project-disconnect': {
1130
+ effect: 'shared',
1131
+ server: { route: '/_api/cloud/detach', method: 'POST' },
1132
+ agent: human('hub-link', 'unlinks this folder and forgets its stored sign-in'),
1133
+ },
1134
+ 'settings.use-own-plugin-copy': PREF(
1135
+ 'prefs.json ownPluginCopy: the AI chat loads your own plugin copy'
1136
+ ),
1137
+ 'settings.experimental-teams': PREF(
1138
+ 'prefs.json experimentalTeams: agent teams at the next AI session'
1139
+ ),
1140
+ 'view.zoom-in': PREF(),
1141
+ 'view.zoom-out': PREF(),
1142
+ 'view.zoom-fit': PREF(),
1143
+ 'view.zoom-actual': PREF(),
1144
+ 'view.zoom-to-artboard': NAV('<canvas>#<artboard>'),
1145
+ 'view.jump-artboard': NAV('<canvas>#<artboard>'),
1146
+ // ── tools ──
1147
+ 'tool.select': PREF('a pointer mode'),
1148
+ 'tool.hand': PREF('a pointer mode'),
1149
+ 'tool.hand-hold': PREF('a pointer mode'),
1150
+ 'tool.comment': COMMENT_ADD,
1151
+ 'tool.pen': BOARD('Add a pen element to the canvas’s .annotations.json'),
1152
+ 'tool.highlighter': BOARD('Add a highlighter element to the canvas’s .annotations.json'),
1153
+ 'tool.shape': BOARD('Add a shape element to the canvas’s .annotations.json'),
1154
+ 'tool.arrow': BOARD('Add an arrow element (with binds) to the .annotations.json'),
1155
+ 'tool.sticky': BOARD('Add a sticky element to the canvas’s .annotations.json'),
1156
+ 'tool.text': BOARD('Add a text element to the canvas’s .annotations.json'),
1157
+ 'tool.section': BOARD('Add a section element to the canvas’s .annotations.json'),
1158
+ 'tool.eraser': BOARD('Remove the elements from the canvas’s .annotations.json'),
1159
+ 'tool.browse': PREF('a pointer mode'),
1160
+ 'tool.rect': BOARD('Add a rect shape element to the canvas’s .annotations.json'),
1161
+ // S2.13 — Edit's Ellipse (More) draws a design shape in the TSX; Preview's Shape (`tool.shape`) stays the board's.
1162
+ 'tool.ellipse': TSX(
1163
+ 'Add a <div data-shape="ellipse"> with position: "absolute", left / top / width / height in px, borderRadius: "50%" and background: "var(--accent)" — see canvas-tsx.md § Draw a frame or a shape'
1164
+ ),
1165
+ // V2-4.5b — the toolbar slots derived from MODE_TOOLS (defs/tool.ts)
1166
+ 'tool.frame': TSX(
1167
+ 'Add a frame (a <div> with position: "absolute", left / top / width / height in px, background: "var(--bg-1)") to the artboard or the frame in the canvas .tsx; on empty canvas add a <DCArtboard kind="digital" fixed> with its place in layout.artboards[] — see canvas-tsx.md § Draw a frame or a shape'
1168
+ ),
1169
+ 'tool.el-shape': TSX(
1170
+ 'Add a <div data-shape="rectangle"> with position: "absolute", left / top / width / height in px and background: "var(--accent)" — see canvas-tsx.md § Draw a frame or a shape'
1171
+ ),
1172
+ 'tool.line': TSX(
1173
+ 'Add a <div data-shape="line"> with position: "absolute", left / top at the first point, width = the length, height: 0, borderTop: "2px solid var(--fg-0)", transform: rotate(<deg>) and transformOrigin: "0 0" — see canvas-tsx.md § Draw a frame or a shape'
1174
+ ),
1175
+ 'tool.polygon': TSX(
1176
+ 'Add a <div data-shape="polygon"> with position: "absolute", left / top / width / height in px, background: "var(--accent)" and clipPath: "polygon(…%)" — see canvas-tsx.md § Draw a frame or a shape'
1177
+ ),
1178
+ // Export area writes nothing to the file; an agent exports a region with the export verb.
1179
+ 'tool.slice': { effect: 'none', agent: cli('maude design export') },
1180
+ 'object.insert-shape': TSX(
1181
+ 'Add a <div> (data-shape="rectangle|ellipse|line|polygon" for a shape) as the last child of the frame or artboard, position: "absolute" with left / top / width / height in px; give a static parent position: "relative" — see canvas-tsx.md § Draw a frame or a shape'
1182
+ ),
1183
+ 'artboard.draw': TSX(
1184
+ 'Add <DCArtboard id="artboard-N" label="Artboard N" kind="digital" width={w} height={h} fixed> and its x / y in layout.artboards[] of the .meta.json — see canvas-tsx.md § Draw a frame or a shape'
1185
+ ),
1186
+ 'object.set-corner-radius': TSX(
1187
+ 'Set style.borderRadius on the element: one value while the four corners are equal, four in CSS order (↖ ↗ ↘ ↙) when they differ; a --radius-* token as var(--radius-md); remove the border-*-radius longhands — see canvas-tsx.md § Corner radius'
1188
+ ),
1189
+ // S2.14 — the Pen: a path is a plain <svg>; Combine composes shapes inside one <svg> (non-destructive, Q6)
1190
+ 'tool.el-pen': TSX(
1191
+ 'Add <svg data-cd-id="path" data-shape="path" width viewBox style={{ position: "absolute", left, top, overflow: "visible", fill: "none", stroke: "var(--accent)", strokeWidth: "4px", strokeLinecap: "round", strokeLinejoin: "round" }}><path d="M…C…" /></svg> to the artboard or frame; the svg box is the path bounds and d is relative to it — see canvas-tsx.md § Draw a path'
1192
+ ),
1193
+ 'object.insert-path': TSX(
1194
+ 'Add the same <svg data-shape="path"> as the Pen tool writes (d in the box\'s own px, left / top its place in the frame) — see canvas-tsx.md § Draw a path'
1195
+ ),
1196
+ 'path.edit': TSX(
1197
+ "Rewrite the d of the svg's <path>, then width, height, viewBox and style left / top to the new bounds so every point keeps its place — see canvas-tsx.md § Draw a path"
1198
+ ),
1199
+ 'shape.combine.union': TSX(
1200
+ 'Replace the shapes with one <svg data-shape="path" data-combine="union"> holding ONE <path d> of every outline (each wound clockwise), fillRule="nonzero" — see canvas-tsx.md § Combine shapes'
1201
+ ),
1202
+ 'shape.combine.exclude': TSX(
1203
+ 'Replace the shapes with one <svg data-shape="path" data-combine="exclude"> holding ONE <path d> of every outline, fillRule="evenodd" — see canvas-tsx.md § Combine shapes'
1204
+ ),
1205
+ 'shape.combine.subtract': TSX(
1206
+ 'Replace the shapes with one <svg data-shape="path" data-combine="subtract">: the bottom shape\'s <path mask="url(#id-mask)"> first, then <defs><mask> holding a white <rect> and the other shapes in black — see canvas-tsx.md § Combine shapes'
1207
+ ),
1208
+ 'shape.combine.intersect': TSX(
1209
+ 'Replace the shapes with one <svg data-shape="path" data-combine="intersect">: the bottom shape\'s <path clipPath="url(#id-clip-1)"> first, then <defs> with a <clipPath> per other shape (more than one nest <g clipPath>) — see canvas-tsx.md § Combine shapes'
1210
+ ),
1211
+ 'tool.el-text': TSX('Add a text element to the artboard in the canvas .tsx'),
1212
+ 'tool.image': TSX('Add an <img> (a project asset) to the artboard in the canvas .tsx'),
1213
+ 'tool.inspect': PREF('a pointer mode'),
1214
+ 'tool.pointer': {
1215
+ effect: 'none',
1216
+ agent: human('keys', 'the presenter’s own pointer; an agent has no mouse to show'),
1217
+ },
1218
+ 'tool.stickers': BOARD('Add a sticker element to the canvas’s .annotations.json'),
1219
+ // S4.4: a template is a --board spec; the verb is the agent's door to the same expansion
1220
+ ...Object.fromEntries(
1221
+ TEMPLATES.map((t) => [
1222
+ `annotation.template-${t.id}`,
1223
+ {
1224
+ effect: 'project',
1225
+ agent: cli(`maude design annotate <canvas> --board ${t.id}`),
1226
+ } satisfies ActionDefAI,
1227
+ ])
1228
+ ),
1229
+ 'mode.preview': NAV('<canvas> --mode preview'),
1230
+ // ── ui / timeline ──
1231
+ 'ui.step-back': PREF('the user’s navigation history'),
1232
+ 'ui.cycle-region': PREF('where the keyboard is in the window'),
1233
+ 'timeline.play': PREF('playback'),
1234
+ 'timeline.step': PREF('playback'),
1235
+ 'timeline.to-start': PREF('playback'),
1236
+ 'timeline.to-end': PREF('playback'),
1237
+ 'timeline.prev-keyframe': PREF('playback'),
1238
+ 'timeline.next-keyframe': PREF('playback'),
1239
+ // S7.18 — "+ track": which empty tracks the timeline draws is the person's own view; the lanes follow the clips
1240
+ 'timeline.add-track': PREF('which empty tracks the timeline draws (the lanes follow the clips)'),
1241
+ // S7.16 — folding a track is the person's own view of a long video; the comp is untouched
1242
+ 'timeline.fold-track': PREF('which tracks of a long video are put away (the comp is untouched)'),
1243
+ // S7.9 — the timeline's edit gestures (one `clip.*` op each) and the 17-row clip menu. An agent writes the
1244
+ // same literal props in the canvas .tsx; `comment` and `generate` have a verb of their own.
1245
+ 'timeline.trim': VIDEO_OP(
1246
+ file(
1247
+ 'canvas-tsx',
1248
+ 'design:video-comp',
1249
+ 'Set the clip’s durationInFrames (later beats close up; the comp’s total follows the last clip)'
1250
+ )
1251
+ ),
1252
+ 'timeline.move-clip': VIDEO_OP(
1253
+ file(
1254
+ 'canvas-tsx',
1255
+ 'design:video-comp',
1256
+ 'Move a series beat before or after another (with its transition), or set a layer’s from'
1257
+ )
1258
+ ),
1259
+ 'timeline.add-clips': VIDEO_OP(
1260
+ file(
1261
+ 'canvas-tsx',
1262
+ 'design:video-comp',
1263
+ 'Add a <Sequence> with the media at the end (or between two beats); the total grows by its length'
1264
+ )
1265
+ ),
1266
+ 'timeline.clip-menu.comment': {
1267
+ effect: 'none',
1268
+ minRole: 'comment',
1269
+ agent: cli('maude design comments add --as-ai'),
1270
+ },
1271
+ 'timeline.clip-menu.generate': {
1272
+ effect: 'project',
1273
+ minRole: 'edit',
1274
+ agent: cli('maude design generate'),
1275
+ },
1276
+ 'timeline.clip-menu.adjust': CLIP_MENU_TSX(
1277
+ 'Set the clip’s playbackRate, volume, crop (<Reframe>) or filter props directly'
1278
+ ),
1279
+ 'timeline.clip-menu.hide': CLIP_MENU_TSX(
1280
+ 'Gate the clip’s body behind {false && …}; the tag and its time slot stay'
1281
+ ),
1282
+ 'timeline.clip-menu.show': CLIP_MENU_TSX('Remove the {false && …} gate from the clip’s body'),
1283
+ 'timeline.clip-menu.remove': CLIP_MENU_TSX(
1284
+ 'Delete the clip’s <Sequence>; a series beat also shortens the comp’s total'
1285
+ ),
1286
+ 'timeline.clip-menu.replace': CLIP_MENU_TSX(
1287
+ 'Change the clip’s media src to a contained asset path'
1288
+ ),
1289
+ 'timeline.clip-menu.mute': CLIP_MENU_TSX('Add muted to the clip’s <Video>'),
1290
+ 'timeline.clip-menu.unmute': CLIP_MENU_TSX(
1291
+ 'Remove muted (and volume={0}) from the clip’s <Video>'
1292
+ ),
1293
+ 'timeline.clip-menu.detach-audio': CLIP_MENU_TSX(
1294
+ 'Mute the <Video> and add an <Audio> Sequence with the same src and timing'
1295
+ ),
1296
+ 'timeline.clip-menu.to-overlay': CLIP_MENU_TSX(
1297
+ 'Move the beat out of the series into a standalone <Sequence from> at the same frames'
1298
+ ),
1299
+ 'timeline.clip-menu.to-storyline': CLIP_MENU_TSX(
1300
+ 'Move the standalone <Sequence> into the series as a beat'
1301
+ ),
1302
+ 'timeline.clip-menu.layer-up': CLIP_MENU_TSX(
1303
+ 'Reorder the standalone <Sequence>s: document order is the stacking order'
1304
+ ),
1305
+ 'timeline.clip-menu.layer-down': CLIP_MENU_TSX(
1306
+ 'Reorder the standalone <Sequence>s: document order is the stacking order'
1307
+ ),
1308
+ 'timeline.clip-menu.earlier': CLIP_MENU_TSX(
1309
+ 'Swap the beat with the one before it (with its transition); a layer moves up the stack'
1310
+ ),
1311
+ 'timeline.clip-menu.later': CLIP_MENU_TSX(
1312
+ 'Swap the beat with the one after it (with its transition); a layer moves down the stack'
1313
+ ),
1314
+ 'timeline.clip-menu.replace-layer': CLIP_MENU_TSX('Change that layer’s media src'),
1315
+ 'timeline.split': TSX('Split the clip into two sequences at the frame', 'design:video-comp'),
1316
+ 'timeline.zoom-in': PREF(),
1317
+ 'timeline.zoom-out': PREF(),
1318
+ 'timeline.zoom-fit': PREF(),
1319
+ 'timeline.loop-in': PREF('the loop range is playback state, never written to the file'),
1320
+ 'timeline.loop-out': PREF('the loop range is playback state, never written to the file'),
1321
+ 'timeline.loop-clear': PREF('the loop range is playback state, never written to the file'),
1322
+ 'timeline.expand': PREF('the timeline island’s size; a per-person view preference'),
1323
+ 'timeline.compact': PREF('the timeline island’s size; a per-person view preference'),
1324
+ 'timeline.comment-mode': COMMENT_ADD,
1325
+ // ── export / share ──
1326
+ // S8.1c — the sheet's params are the CLI's flags: {scope, format, canvas, folder, region, at} ↔
1327
+ // `<format> --scope --canvas --folder --region x,y,w,h --at <sha>` (ExportSpec v2, S8-export-spec §5.7).
1328
+ 'export.open': {
1329
+ effect: 'none',
1330
+ agent: cli(
1331
+ 'maude design export <format> --scope selection|canvas|folder|project [--canvas <rel>] [--folder <rel>] [--region x,y,w,h] [--at <sha>]'
1332
+ ),
1333
+ },
1334
+ // S8.8 — the clipboard is the person's; an agent exports the same PNG to a file (`export png`) and reads it.
1335
+ 'export.copy-png': {
1336
+ effect: 'none',
1337
+ agent: cli('maude design export png'),
1338
+ },
1339
+ // 06 ad-search — the line it copies IS the agent's route: `maude design export …` with the same flags.
1340
+ 'export.copy-command': {
1341
+ effect: 'none',
1342
+ agent: cli('maude design export <format> --scope selection|canvas|folder|project'),
1343
+ },
1344
+ // S8.10 — Handoff to production writes code into the project (one AI run, its target file only; the server
1345
+ // refuses below Can edit). An agent runs the same verb (`--target web`), or /design:to-rn and /design:to-lottie.
1346
+ // Opening the sheet changes nothing (fromCanvas ⇒ effect none, V2-1.3 inv. 3); the sheet's Hand off is the write (POST /_api/handoff, Can edit).
1347
+ 'handoff.open': { effect: 'none', agent: cli('maude design handoff') },
1348
+ 'export.rerun-last': {
1349
+ effect: 'project',
1350
+ agent: cli('maude design exports again <id>'),
1351
+ },
1352
+ // S8.4 — Retry <name>: only the items of one export that did not make it. The terminal path is the
1353
+ // panel's own route, and a job that is not yours is a missing one (V2-1.16 U1).
1354
+ 'export.retry': {
1355
+ effect: 'project',
1356
+ minRole: 'comment',
1357
+ server: { route: '/_api/export-jobs/retry', method: 'POST' },
1358
+ agent: cli('maude design exports retry <id> [--item <id,…>]'),
1359
+ },
1360
+ 'share.open': { effect: 'shared', agent: human('links') },
1361
+ // S9.20: where the hub has links, the owner's Copy link makes the project's link (POST); everyone
1362
+ // else copies the location, which grants nothing. Making a link is the owner's, refused there.
1363
+ 'share.copy-link': {
1364
+ effect: 'shared',
1365
+ minRole: 'owner',
1366
+ server: { route: '/_api/share/links', method: 'POST' },
1367
+ agent: human('links'),
1368
+ },
1369
+ 'share.link-settings': {
1370
+ effect: 'shared',
1371
+ minRole: 'owner',
1372
+ server: { route: '/_api/share/links/:id', method: 'PATCH' },
1373
+ agent: human('links'),
1374
+ },
1375
+ // S6.0c: uploads the whole project to the person's billed cloud account — the window only; the
1376
+ // studio refuses a POST without its Sec-Fetch-Site and the design hook denies one (human-only).
1377
+ 'share.move-to-cloud': {
1378
+ effect: 'external',
1379
+ agent: human('billing', 'moves the project to the person’s billed Maude Cloud account'),
1380
+ },
1381
+ // gate-b-sec4: Connect is the person consenting that THIS Mac's credential for that hub may serve
1382
+ // this folder — a committed config cannot give it, and neither can an agent (human-only).
1383
+ 'sync.connect-link': {
1384
+ effect: 'external',
1385
+ minRole: 'edit',
1386
+ server: { route: '/_api/sync/link/confirm', method: 'POST' },
1387
+ agent: human(
1388
+ 'hub-link',
1389
+ 'confirms on this Mac that the folder’s hub may receive this Mac’s credential'
1390
+ ),
1391
+ },
1392
+ // S9.19 — owner-only, decided by the hub; routes/share.ts refuses a session without `invite` first.
1393
+ 'share.invite': {
1394
+ effect: 'shared',
1395
+ minRole: 'owner',
1396
+ server: { route: '/_api/share/invites', method: 'POST' },
1397
+ agent: human('invite'),
1398
+ },
1399
+ 'share.set-role': {
1400
+ effect: 'shared',
1401
+ minRole: 'owner',
1402
+ server: { route: '/_api/share/people/:id', method: 'PATCH' },
1403
+ agent: human('roles'),
1404
+ },
1405
+ 'share.remove': {
1406
+ effect: 'shared',
1407
+ minRole: 'owner',
1408
+ server: { route: '/_api/share/people/:id/remove', method: 'POST' },
1409
+ agent: human('roles'),
1410
+ },
1411
+ 'share.resend': {
1412
+ effect: 'shared',
1413
+ minRole: 'owner',
1414
+ server: { route: '/_api/share/invites/:id/resend', method: 'POST' },
1415
+ agent: human('invite'),
1416
+ },
1417
+ // S9.21 — asking for more access and granting it are a person's (an agent never asks on someone's
1418
+ // behalf, never answers for an owner). Ask is any role's (the hub answers an editor 409); the answer is
1419
+ // the owner's, refused below owner by routes/share.ts first and by the hub (`invite`) always.
1420
+ 'share.ask-to-edit': {
1421
+ effect: 'shared',
1422
+ minRole: 'view',
1423
+ server: { route: '/_api/share/requests', method: 'POST' },
1424
+ agent: human('roles'),
1425
+ },
1426
+ 'share.request-approve': {
1427
+ effect: 'shared',
1428
+ minRole: 'owner',
1429
+ server: { route: '/_api/share/requests/:id/approve', method: 'POST' },
1430
+ agent: human('roles'),
1431
+ },
1432
+ 'share.request-decline': {
1433
+ effect: 'shared',
1434
+ minRole: 'owner',
1435
+ server: { route: '/_api/share/requests/:id/decline', method: 'POST' },
1436
+ agent: human('roles'),
1437
+ },
1438
+ // ── presence (S9.23) ──
1439
+ // Where people are is awareness, not a file: an agent reads the room through the studio, never writes
1440
+ // it. Go to is the view move `maude design open` already does; Bring everyone here is a person's
1441
+ // gesture to other people (the `summon` capability), so it is human.
1442
+ 'presence.follow': {
1443
+ effect: 'none',
1444
+ agent: human('summon', 'a person watching another person’s camera'),
1445
+ },
1446
+ 'presence.go-to': NAV('<canvas>#<artboard>'),
1447
+ 'presence.bring-everyone': {
1448
+ effect: 'none',
1449
+ minRole: 'edit',
1450
+ agent: human(
1451
+ 'summon',
1452
+ 'moves other people’s cameras; the hub strips `summon` without the capability'
1453
+ ),
1454
+ },
1455
+ 'presence.stop': { effect: 'none', agent: human('summon', 'ends a Follow or the spotlight') },
1456
+ // ── app / help / ai ──
1457
+ 'settings.open': { effect: 'none', agent: cli('maude design open --panel settings') },
1458
+ 'ai.chat': { effect: 'none', agent: human('summon') },
1459
+ // S11.2: opens the chat with words in the field; the agent writes the artboard itself, no verb needed
1460
+ 'ai.ask-fill-artboard': { effect: 'none', agent: human('summon') },
1461
+ 'help.shortcuts': { effect: 'none', agent: cli('maude design open --panel shortcuts') },
1462
+ 'help.guides': HELP,
1463
+ // S6.15 (Q10): adds the two guide canvases on request — the person's own question to Help; an agent that wants the
1464
+ // guides' words reads the plugin docs, and an agent that wants a canvas makes one. Refused below edit by the route.
1465
+ 'help.add-guides': {
1466
+ effect: 'project',
1467
+ minRole: 'edit',
1468
+ server: { route: '/_api/help/add-guides', method: 'POST' },
1469
+ agent: human(
1470
+ 'onboarding',
1471
+ 'Help › Help and guides adds the guide canvases to a project on request'
1472
+ ),
1473
+ },
1474
+ 'ai.generate': { effect: 'external', agent: cli('maude design generate') },
1475
+ 'ai.draw-mark': { effect: 'external', agent: cli('maude design draw-build') },
1476
+ // ── AI runs (S5.3, V2-1.15 §5.10). S5.4 built `maude design runs list|stop`: a terminal
1477
+ // Claude sees the busy artboards before it plans, and stops only its person's own runs. Keep
1478
+ // going / cancel are human by Q5. Run on a copy is a file edit — the `artboard-busy` deny names
1479
+ // it. No `server` field yet: rule 7 wants a per-role refusal row a role suite runs (S9's
1480
+ // access-local-gate); the routes are routes/ai.ts. ──
1481
+ // S9.24 — a conflict pick. The record is this Mac's `_state/conflicts/<slug>.json` (the held element,
1482
+ // `mine` = this Mac's version, `theirs` = the head's); the pick is an ordinary board edit an agent
1483
+ // makes in the board file, then drops the entry. The route refuses every role below edit.
1484
+ ...Object.fromEntries(
1485
+ (
1486
+ [
1487
+ [
1488
+ 'keep-mine',
1489
+ 'replace the element (same id) in <slug>.annotations.json with the record’s `mine`',
1490
+ ],
1491
+ ['keep-theirs', 'leave <slug>.annotations.json as it is'],
1492
+ [
1493
+ 'keep-both',
1494
+ 'add the record’s `mine` to <slug>.annotations.json under a NEW id, to the right of the element',
1495
+ ],
1496
+ ] as const
1497
+ ).map(([k, how]) => [
1498
+ `sync.conflict.${k}`,
1499
+ {
1500
+ effect: 'project',
1501
+ minRole: 'edit',
1502
+ undo: 'step',
1503
+ server: { route: '/_api/sync/conflicts/resolve', method: 'POST' },
1504
+ agent: file(
1505
+ 'annotations',
1506
+ 'design:whiteboard',
1507
+ `${how}; then remove that conflict from <designRoot>/_state/conflicts/<slug>.json`
1508
+ ),
1509
+ } satisfies ActionDefAI,
1510
+ ])
1511
+ ),
1512
+ 'ai.runs.list': {
1513
+ effect: 'none',
1514
+ minRole: 'edit',
1515
+ agent: cli('maude design runs list'),
1516
+ },
1517
+ 'ai.stop': {
1518
+ effect: 'project',
1519
+ minRole: 'edit',
1520
+ agent: cli('maude design runs stop <run>'),
1521
+ },
1522
+ 'ai.run-on-copy': {
1523
+ effect: 'project',
1524
+ minRole: 'edit',
1525
+ agent: file(
1526
+ 'canvas-tsx',
1527
+ 'design:design',
1528
+ 'Duplicate the busy DCArtboard beside it with a new id and edit the copy (skill section "AI runs and busy artboards")'
1529
+ ),
1530
+ },
1531
+ 'ai.cancel-waiting': {
1532
+ effect: 'none',
1533
+ minRole: 'edit',
1534
+ agent: human('ai-chat'),
1535
+ },
1536
+ 'ai.keep-going': {
1537
+ effect: 'project',
1538
+ minRole: 'edit',
1539
+ agent: human('ai-chat'),
1540
+ },
1541
+ 'help.whats-new': { effect: 'none', agent: cli('maude design open --panel whats-new') },
1542
+ 'help.tour': HELP,
1543
+ 'help.intro': HELP,
1544
+ 'help.sharing': HELP,
1545
+ 'help.setup': HELP,
1546
+ 'help.ai-readiness': HELP,
1547
+ 'help.report-bug': { effect: 'shared', agent: human('report-bug') },
1548
+ // ── annotations (selection-scoped edits of the board file) ──
1549
+ 'annotation.group': BOARD('Set a shared group id on the elements'),
1550
+ 'annotation.ungroup': BOARD('Clear the elements’ group id'),
1551
+ 'annotation.lock': BOARD('Toggle the elements’ locked field'),
1552
+ 'annotation.duplicate': BOARD('Copy the elements with new ids, offset'),
1553
+ 'annotation.to-front': BOARD('Move the elements to the end of the element order'),
1554
+ 'annotation.forward': BOARD('Move the elements one step later in the element order'),
1555
+ 'annotation.to-back': BOARD('Move the elements to the start of the element order'),
1556
+ 'annotation.backward': BOARD('Move the elements one step earlier in the element order'),
1557
+ 'annotation.copy': PREF('the clipboard is the user’s; read the annotations file instead'),
1558
+ 'annotation.cut': BOARD('Remove the elements (the clipboard half is the user’s)'),
1559
+ 'annotation.chain': BOARD('Add the next element bound to the selected one'),
1560
+ 'annotation.edit-text': BOARD('Change the element’s text field'),
1561
+ 'annotation.nudge': BOARD('Change the elements’ x / y'),
1562
+ 'annotation.remove': BOARD('Remove the elements from the annotations file'),
1563
+ 'annotation.resolve': BOARD(
1564
+ 'Set the sticky’s resolved to { by, at } (the person’s name, an ISO UTC time); remove it to reopen'
1565
+ ),
1566
+ 'annotation.fan-out': BOARD('Change the stacked stickies’ x / y so they sit in a row'),
1567
+ 'annotation.to-comment': {
1568
+ effect: 'project',
1569
+ minRole: 'edit',
1570
+ undo: 'step',
1571
+ // The studio's route (POST /_api/annotations/to-comment, S4.7) is the person's door and the one place
1572
+ // minRole is enforced; its refusal row is in test/_role-refusals.ts (S4.13).
1573
+ server: { route: '/_api/annotations/to-comment', method: 'POST' },
1574
+ agent: file(
1575
+ 'comments',
1576
+ 'design:whiteboard',
1577
+ 'Write the thread into the comments file with from { kind: sticky, … } set, and remove the sticky from the annotations file'
1578
+ ),
1579
+ },
1580
+ 'annotation.fold': BOARD('Set the section’s folded to true; remove it to unfold'),
1581
+ // The agent IS the AI: what a person asks it about a selection, it reads from the board.
1582
+ 'annotation.ask-ai': { effect: 'none', agent: cli('maude design read-annotations') },
1583
+ 'annotations.trash-resolved': BOARD(
1584
+ 'Remove the stickies whose resolved is set from the annotations file'
1585
+ ),
1586
+ 'annotations.select-resolved': { effect: 'none', agent: cli('maude design read-annotations') },
1587
+ // S4.14 — people vote; the agent reads the result section. The doors are /_api/votes/start|end (edit).
1588
+ 'annotations.start-vote': {
1589
+ effect: 'shared',
1590
+ minRole: 'edit',
1591
+ server: { route: '/_api/votes/start', method: 'POST' },
1592
+ agent: human(
1593
+ 'vote',
1594
+ 'the result section is in the annotations when it ends: `maude design read-annotations`'
1595
+ ),
1596
+ },
1597
+ 'annotations.end-vote': {
1598
+ effect: 'shared',
1599
+ minRole: 'edit',
1600
+ server: { route: '/_api/votes/end', method: 'POST' },
1601
+ agent: human('vote', 'the counts and the result section: `maude design read-annotations`'),
1602
+ },
1603
+ 'annotation.point-to': BOARD(
1604
+ 'Set the arrow’s startHost / endHost to the new ab:<artboard> or el:<artboard>/<id> ref (with the name it is shown under) and move its start / end cache to where the host is'
1605
+ ),
1606
+ // ── native ──
1607
+ // V2-1.1 §5.9
1608
+ 'project.new': { effect: 'project', agent: human('onboarding') },
1609
+ 'project.pull-copy': {
1610
+ effect: 'project',
1611
+ agent: human(
1612
+ 'accounts',
1613
+ 'clones a GitHub project the signed-in person can read; an agent uses git itself'
1614
+ ),
1615
+ },
1616
+ 'project.share-github': {
1617
+ effect: 'shared',
1618
+ agent: human(
1619
+ 'accounts',
1620
+ 'invites a GitHub user to the project repository under the person’s account'
1621
+ ),
1622
+ },
1623
+ 'project.open': { effect: 'none', agent: human('native-window') },
1624
+ 'home.open': { effect: 'none', agent: human('native-window') },
1625
+ // S6.4 — Home's own rows. Search across projects is navigation (V2-1.11 §5.1: the agent moves the person's
1626
+ // view with `maude design open`; it reads one project through `maude design index`, never the cross-project
1627
+ // index). Opening a cloud project that is not on this Mac is the person's hub link.
1628
+ 'home.search': { effect: 'none', agent: cli('maude design open') },
1629
+ 'cloud.open-remote': {
1630
+ effect: 'external',
1631
+ agent: human(
1632
+ 'hub-link',
1633
+ 'makes the person’s own copy of a cloud project on this Mac, then opens it'
1634
+ ),
1635
+ },
1636
+ // S6.8 — the person signs in to their own cloud account in their own browser; an agent never holds one.
1637
+ 'home.signin': {
1638
+ effect: 'external',
1639
+ agent: human(
1640
+ 'accounts',
1641
+ 'opens the person’s browser on cloud.maude.sh; the credential reaches the Home server, never a page or an agent'
1642
+ ),
1643
+ },
1644
+ // gate-b-sec3b — an invitation addressed to the person's own account, answered on Home › Shared with you. Joining
1645
+ // puts the person into a project under THEIR account and Leaving turns it down; an agent invites others
1646
+ // (`share.invite`) but never answers for the person. The Home server (page secret + the profile's device token)
1647
+ // is the only door: `/_home/invite/pending/accept|leave`.
1648
+ 'invite.join': {
1649
+ effect: 'external',
1650
+ agent: human(
1651
+ 'accounts',
1652
+ 'accepts an invitation addressed to the person’s own cloud account; the device token stays in the Home server'
1653
+ ),
1654
+ },
1655
+ 'invite.leave': {
1656
+ effect: 'external',
1657
+ agent: human(
1658
+ 'accounts',
1659
+ 'turns down an invitation addressed to the person’s own cloud account'
1660
+ ),
1661
+ },
1662
+ // S6.9 — the Advanced sheets on Home. A credential is typed (or approved in the browser) by the person; an
1663
+ // agent never holds one, and it already runs inside `maude` and Claude Code, so installing them is theirs.
1664
+ 'hub.connect': {
1665
+ effect: 'external',
1666
+ agent: human(
1667
+ 'hub-link',
1668
+ 'signs the person in to a self-hosted team server (the password goes to the Home server once); linking a folder (`maude design link`) is done by the person in a terminal (an AI session is refused)'
1669
+ ),
1670
+ },
1671
+ 'project.open-github': {
1672
+ effect: 'external',
1673
+ agent: human(
1674
+ 'accounts',
1675
+ 'opens a folder or a GitHub project as a tab; the GitHub token stays in Rust. An agent works inside the project it was started in'
1676
+ ),
1677
+ },
1678
+ 'ai.connect': {
1679
+ effect: 'external',
1680
+ agent: human(
1681
+ 'accounts',
1682
+ 'the person’s own Claude sign-in in their browser; an agent is already running on one'
1683
+ ),
1684
+ },
1685
+ 'cli.install': {
1686
+ effect: 'external',
1687
+ agent: human(
1688
+ 'onboarding',
1689
+ 'links the bundled maude into ~/.local/bin and adds the Claude Code plugin; an agent is already running through both'
1690
+ ),
1691
+ },
1692
+ 'nav.home': { effect: 'none', agent: human('native-window') },
1693
+ // V2-4.2: a person's sign-in; an agent never picks an account.
1694
+ 'account.switch': {
1695
+ effect: 'none',
1696
+ agent: human('native-window', 'the desktop app’s profiles; an agent never picks an account'),
1697
+ },
1698
+ // V2-3.9: the shell's tab bar — a person's window, never an agent's.
1699
+ 'tab.close': { effect: 'none', agent: human('native-window') },
1700
+ 'tab.next': { effect: 'none', agent: human('native-window') },
1701
+ 'tab.prev': { effect: 'none', agent: human('native-window') },
1702
+ ...Object.fromEntries(
1703
+ [1, 2, 3, 4, 5, 6, 7, 8].map((n) => [
1704
+ `tab.select-${n}`,
1705
+ { effect: 'none', agent: human('native-window') },
1706
+ ])
1707
+ ),
1708
+ 'tab.select-last': { effect: 'none', agent: human('native-window') },
1709
+ // S1.22b: the strip's tab overview and the tab menu's Rename… (a machine-local display name).
1710
+ 'tab.overview': { effect: 'none', agent: human('native-window') },
1711
+ 'tab.rename': {
1712
+ effect: 'none',
1713
+ agent: human(
1714
+ 'native-window',
1715
+ 'the name this Mac shows for a tab; the project files never change'
1716
+ ),
1717
+ },
1718
+ 'app.check-updates': { effect: 'none', agent: human('native-window') },
1719
+ // ── AI chat (S5.7) ──
1720
+ // The chat is Claude Code on this Mac; an agent is already the AI, so these rows are the
1721
+ // person's way to drive the conversation list. `_chat/` is per-Mac runtime state (DDR-115),
1722
+ // never versioned and never synced, hence effect 'none'.
1723
+ 'chat.new': { effect: 'none', agent: human('ai-chat') },
1724
+ 'chat.rename': { effect: 'none', agent: human('ai-chat'), minRole: 'edit' },
1725
+ 'chat.archive': { effect: 'none', agent: human('ai-chat'), minRole: 'edit' },
1726
+ 'chat.trash': { effect: 'none', agent: human('ai-chat'), minRole: 'edit' },
1727
+ 'chat.copy-transcript': { effect: 'none', agent: human('ai-chat') },
1728
+ // S5.12: the Advanced fold's rows. A row only takes the person to a setting (the settings themselves are the
1729
+ // chat session's config, per Mac and per chat); an agent sets them through its own session — human `ai-chat`.
1730
+ ...Object.fromEntries(
1731
+ ['ask-before', 'model', 'effort', 'fast-mode', 'show-in-chat', 'suggestions', 'raw-log'].map(
1732
+ (r) => [`chat.advanced.${r}`, { effect: 'none', agent: human('ai-chat') }]
1733
+ )
1734
+ ),
1735
+ // S5.5b — undoes accepted actions for everyone on a synced project: the `history undo` verb's
1736
+ // permission card (tier shared).
1737
+ 'chat.undo': {
1738
+ effect: 'shared',
1739
+ minRole: 'edit',
1740
+ agent: cli('maude design history undo --chat <id>'),
1741
+ },
1742
+ // S5.10 — attaching is how a PERSON hands the AI a file or a folder; an agent already reads files
1743
+ // itself (and a folder grant is consent only the person can give).
1744
+ 'ai.attach-files': { effect: 'project', minRole: 'edit', agent: human('ai-chat') },
1745
+ 'ai.attach-folder': { effect: 'none', minRole: 'edit', agent: human('ai-chat') },
1746
+ 'ai.attach-assets': { effect: 'none', minRole: 'edit', agent: human('ai-chat') },
1747
+ 'ai.attach-screenshot': { effect: 'project', minRole: 'edit', agent: human('ai-chat') },
1748
+ // decision v2-S5-open-in-terminal-native: the Tauri command spawns Terminal; an agent already
1749
+ // runs in a shell and resumes a session with `claude --resume` itself.
1750
+ 'chat.open-in-terminal': {
1751
+ effect: 'none',
1752
+ agent: human(
1753
+ 'native-window',
1754
+ 'opens the person’s Terminal; an agent runs `claude --resume <session>` in its own shell'
1755
+ ),
1756
+ },
1757
+ // ── design system (S10.2 engine, V2-1.6 §5.11). The verbs are S10.3's `maude design ds …`
1758
+ // (S10 §2.4); the routes are routes/ds.ts (S10.3), whose Q15 gates test/_role-refusals.ts
1759
+ // rows hold (S10.3b). ──
1760
+ 'ds.publish': {
1761
+ effect: 'project',
1762
+ minRole: 'edit',
1763
+ undo: 'step',
1764
+ server: { route: '/_api/ds/publish', method: 'POST' },
1765
+ agent: cli('maude design ds publish <ds> [--leave-out <canvas>…]'),
1766
+ },
1767
+ 'ds.cancel-pending': {
1768
+ effect: 'project',
1769
+ minRole: 'edit',
1770
+ undo: 'step',
1771
+ server: { route: '/_api/ds/pending', method: 'POST' },
1772
+ agent: cli('maude design ds pending <ds> --cancel'),
1773
+ },
1774
+ // S10.7 — a token edited in place. One waiting edit in the system's pending changes (`tokens[<css>]`:
1775
+ // `<theme>: <value>`, `valueNames`, `darkFollows`; `expect[<css>]` = the entry's `at` you read, null when none),
1776
+ // then the same `ds publish` as any other change. A locked token answers `ds-token-locked`.
1777
+ 'ds.set-token': {
1778
+ effect: 'project',
1779
+ minRole: 'edit',
1780
+ undo: 'step',
1781
+ server: { route: '/_api/ds/pending', method: 'POST' },
1782
+ agent: cli('maude design ds pending <ds> --set <file.json>'),
1783
+ },
1784
+ 'ds.set-dark-follows': {
1785
+ effect: 'project',
1786
+ minRole: 'edit',
1787
+ undo: 'step',
1788
+ server: { route: '/_api/ds/pending', method: 'POST' },
1789
+ agent: cli('maude design ds pending <ds> --set <file.json>'),
1790
+ },
1791
+ // S10.10 — a component master edited in place: Corners · Fill · Text · Height are declaration patches in the
1792
+ // master's class rule (`components[<Master>][.<class>][<prop>]: {value}`), waiting like a token until the same
1793
+ // `ds publish`. An agent merges them with the same file; `from` instead pushes an element's own overrides.
1794
+ 'ds.set-master': {
1795
+ effect: 'project',
1796
+ minRole: 'edit',
1797
+ undo: 'step',
1798
+ server: { route: '/_api/ds/pending', method: 'POST' },
1799
+ agent: cli('maude design ds pending <ds> --set <file.json>'),
1800
+ },
1801
+ // S10.16a — making a system (ds/make.ts; one route, an `action` in the body). A new system starts as an outline with
1802
+ // no published revision (head null); the AI writes each direction with `draft` (`{label?, tokens: {"--name": "v" |
1803
+ // {light, dark}}}`), the person picks one (`use`) or takes whole groups from others (`mix --take colour=c`), the
1804
+ // sections fill through the working files, and `done` publishes the first revision (a `make` log entry) and makes
1805
+ // it the project default. Nothing here reaches a canvas: a system being made has no followers.
1806
+ 'ds.make': {
1807
+ effect: 'project',
1808
+ minRole: 'edit',
1809
+ undo: 'version',
1810
+ server: { route: '/_api/ds/make', method: 'POST' },
1811
+ agent: cli('maude design ds make <ds> [--label <name>]'),
1812
+ },
1813
+ 'ds.draft': {
1814
+ effect: 'project',
1815
+ minRole: 'edit',
1816
+ undo: 'none',
1817
+ server: { route: '/_api/ds/make', method: 'POST' },
1818
+ agent: cli('maude design ds draft <ds> --direction <x> --tokens <file.json>'),
1819
+ },
1820
+ 'ds.use-direction': {
1821
+ effect: 'project',
1822
+ minRole: 'edit',
1823
+ undo: 'none',
1824
+ server: { route: '/_api/ds/make', method: 'POST' },
1825
+ agent: cli('maude design ds use <ds> <x>'),
1826
+ },
1827
+ 'ds.mix': {
1828
+ effect: 'project',
1829
+ minRole: 'edit',
1830
+ undo: 'none',
1831
+ server: { route: '/_api/ds/make', method: 'POST' },
1832
+ agent: cli('maude design ds mix <ds> <x> --take <group>=<y>…'),
1833
+ },
1834
+ 'ds.make-done': {
1835
+ effect: 'project',
1836
+ minRole: 'edit',
1837
+ undo: 'version',
1838
+ server: { route: '/_api/ds/make', method: 'POST' },
1839
+ agent: cli('maude design ds done <ds> [--no-default]'),
1840
+ },
1841
+ // S10.12 — convert `system/<ds>/` folders (ds/convert.ts): one all-or-nothing run (a copy of what it modifies under
1842
+ // `_history/_ds-convert/`), R0 = the working files, head.json last; the files a 1.x peer reads keep their bytes.
1843
+ // `--dry-run` lists what each folder becomes (`maude.ds-convert/1`). Restore moves head.json and the Design system
1844
+ // canvas to the trash; the revisions stay.
1845
+ 'ds.convert': {
1846
+ effect: 'project',
1847
+ minRole: 'edit',
1848
+ undo: 'version',
1849
+ server: { route: '/_api/ds/convert', method: 'POST' },
1850
+ agent: cli('maude design ds convert [<ds>…] [--dry-run]'),
1851
+ },
1852
+ 'ds.convert-restore': {
1853
+ effect: 'project',
1854
+ minRole: 'edit',
1855
+ undo: 'none',
1856
+ server: { route: '/_api/ds/convert', method: 'POST' },
1857
+ agent: cli('maude design ds convert <ds> --restore'),
1858
+ },
1859
+ // S10.15a — "Bring it up to the schema" (ds/upgrade*.ts, V2-1.13 §5.10): analyse → stage (throwaway before/ +
1860
+ // after/ copies) → prove (two headless studios, the in-page ΔE gate) → apply as ONE action (the codemodded
1861
+ // canvases through the kernel, the system files after it; one ⌘Z takes both back). The sheet is S10.15b's.
1862
+ 'ds.upgrade': {
1863
+ effect: 'project',
1864
+ minRole: 'edit',
1865
+ undo: 'step',
1866
+ server: { route: '/_api/ds/upgrade', method: 'POST' },
1867
+ agent: cli(
1868
+ 'maude design ds-upgrade <ds> --analyse | --stage <plan.json> | --prove <stage> | --apply <stage> | --status | --cancel <stage> | --discard <stage>'
1869
+ ),
1870
+ },
1871
+ // S10.18c — team libraries (ds/library.ts, V2-1.6 §5.14): link copies the verified head revision BY ID (an invalid
1872
+ // upstream revision is never written, an older hub fails closed); update is the review → ONE action (the unticked
1873
+ // canvases stay at the old head), ⌘Z through the undo hook; unlink makes the copy an ordinary local system. The
1874
+ // grant is read from a file, never an argument, and lives on this Mac only.
1875
+ 'ds.library-link': {
1876
+ effect: 'project',
1877
+ minRole: 'edit',
1878
+ undo: 'none',
1879
+ server: { route: '/_api/ds/library', method: 'POST' },
1880
+ agent: cli('maude design ds library link <url> [--grant-file <f>] [--label <l>]'),
1881
+ },
1882
+ 'ds.library-update': {
1883
+ effect: 'project',
1884
+ minRole: 'edit',
1885
+ undo: 'step',
1886
+ server: { route: '/_api/ds/library', method: 'POST' },
1887
+ agent: cli('maude design ds library check|update [<ds>] [--force|--dry-run]'),
1888
+ },
1889
+ 'ds.library-unlink': {
1890
+ effect: 'project',
1891
+ minRole: 'edit',
1892
+ undo: 'none',
1893
+ server: { route: '/_api/ds/library', method: 'POST' },
1894
+ agent: cli('maude design ds library unlink [<ds>]'),
1895
+ },
1896
+ 'ds.keep-outside': {
1897
+ effect: 'project',
1898
+ minRole: 'edit',
1899
+ undo: 'version',
1900
+ server: { route: '/_api/ds/outside', method: 'POST' },
1901
+ agent: cli('maude design ds keep <ds>'),
1902
+ },
1903
+ 'ds.undo-outside': {
1904
+ effect: 'destructive',
1905
+ minRole: 'edit',
1906
+ undo: 'none',
1907
+ server: { route: '/_api/ds/outside', method: 'POST' },
1908
+ agent: cli('maude design ds undo <ds>'),
1909
+ },
1910
+ 'ds.pick': {
1911
+ effect: 'project',
1912
+ minRole: 'edit',
1913
+ undo: 'step',
1914
+ server: { route: '/_api/ds/pick', method: 'POST' },
1915
+ agent: cli('maude design ds pick <ds> <css> --use canvas|file'),
1916
+ },
1917
+ 'ds.canvas-update': {
1918
+ effect: 'project',
1919
+ minRole: 'edit',
1920
+ undo: 'step',
1921
+ server: { route: '/_api/ds/canvas', method: 'POST' },
1922
+ agent: cli('maude design ds canvas update <canvas>'),
1923
+ },
1924
+ 'ds.canvas-leave': {
1925
+ effect: 'project',
1926
+ minRole: 'edit',
1927
+ undo: 'step',
1928
+ server: { route: '/_api/ds/canvas', method: 'POST' },
1929
+ agent: cli('maude design ds canvas leave <canvas>'),
1930
+ },
1931
+ 'ds.trash-token': {
1932
+ effect: 'project',
1933
+ minRole: 'edit',
1934
+ undo: 'step',
1935
+ server: { route: '/_api/ds/trash', method: 'POST' },
1936
+ agent: cli('maude design ds trash <ds> <css> --replacement <css>'),
1937
+ },
1938
+ 'ds.restore-token': {
1939
+ effect: 'project',
1940
+ minRole: 'edit',
1941
+ undo: 'step',
1942
+ server: { route: '/_api/ds/restore', method: 'POST' },
1943
+ agent: cli('maude design ds restore <ds> <css>'),
1944
+ },
1945
+ 'ds.clear-token': {
1946
+ effect: 'destructive',
1947
+ minRole: 'owner',
1948
+ undo: 'version',
1949
+ server: { route: '/_api/ds/clear', method: 'POST' },
1950
+ agent: cli('maude design ds clear <ds> <css>'),
1951
+ },
1952
+ // S10.6 — the Design system canvas: opening it is navigation (`maude design open` moves the
1953
+ // person's view). Light | Dark is the canvas's own viewing preference and writes nothing; an
1954
+ // agent sees the other mode by capturing the canvas URL with `&dsMode=dark`.
1955
+ 'ds.open': NAV('<ds.path>/design-system.tsx'),
1956
+ // S10.8 — the entries into the review. Push an override: merge it into the system's pending changes,
1957
+ // then the same publish as any other change. Go to: navigation. Instance update: one edit on the
1958
+ // instance (data-ds-rev="head"), one ⌘Z.
1959
+ 'ds.review-update': {
1960
+ effect: 'project',
1961
+ minRole: 'edit',
1962
+ undo: 'step',
1963
+ server: { route: '/_api/ds/pending', method: 'POST' },
1964
+ agent: cli('maude design ds pending <ds> --set <file.json> then maude design ds publish <ds>'),
1965
+ },
1966
+ 'ds.go-to': NAV('<ds.path>/design-system.tsx@<--token|Component>'),
1967
+ 'ds.instance-update': {
1968
+ ...TSX(
1969
+ 'Add data-ds-rev="head" to the instance’s element (right after its data-cd-id; overwrite the attribute if it has one); the rest of the canvas keeps its version. Over HTTP: POST /_api/edit-op {op: "ds.instance-update", targets: [instance]} — refused on a canvas that follows the system already'
1970
+ ),
1971
+ minRole: 'edit',
1972
+ undo: 'step',
1973
+ server: { route: '/_api/edit-op', method: 'POST' },
1974
+ },
1975
+ // S10.13 — the project's default system (config.json), and the empty row's door: the sheet is the person's
1976
+ // three inputs; an agent makes a system with the verb (S10.16a builds the sub-verb).
1977
+ 'ds.set-default': {
1978
+ effect: 'project',
1979
+ minRole: 'edit',
1980
+ undo: 'version',
1981
+ server: { route: '/_api/ds/default', method: 'POST' },
1982
+ agent: cli('maude design ds default <ds>'),
1983
+ },
1984
+ // P8 round 7 — "Rename…": the system's label in config.json (ds/rename.ts); canvases pin it by id, so only the label moves
1985
+ 'ds.rename': {
1986
+ effect: 'project',
1987
+ minRole: 'edit',
1988
+ undo: 'version',
1989
+ server: { route: '/_api/ds/rename', method: 'POST' },
1990
+ agent: cli('maude design ds rename <ds> <new name>'),
1991
+ },
1992
+ // S10.14 — the switch is one review and one kernel action (ds/switch.ts); the preview is a session-only URL
1993
+ // override of the canvas URL's `tokens=` / `components=` (canvas-url.js `dsPreview`), so an agent looks at another
1994
+ // system by screenshotting the canvas URL with that system's files.
1995
+ 'ds.switch': {
1996
+ effect: 'project',
1997
+ minRole: 'edit',
1998
+ undo: 'step',
1999
+ server: { route: '/_api/ds/switch', method: 'POST' },
2000
+ agent: cli('maude design ds switch <canvas|folder|--all> --to <ds> [--dry-run]'),
2001
+ },
2002
+ 'ds.preview': {
2003
+ effect: 'none',
2004
+ agent: human(
2005
+ 'view-pref',
2006
+ 'a person looking at the project in another system (session-only, nothing stored); an agent screenshots the canvas URL with that system’s files: `&tokens=<ds.path>/colors_and_type.css&components=<ds.path>/preview/_components.css`'
2007
+ ),
2008
+ },
2009
+ 'ds.set-theme-preview': {
2010
+ effect: 'none',
2011
+ agent: cli('maude design screenshot --url "<canvas-url>&dsMode=dark" --full --out <png>'),
2012
+ },
2013
+ // S10.17 — the edges. The contrast fix and a new colour are waiting edits (`maude design ds pending` is the general
2014
+ // door; these two verbs are the one-step forms the buttons are); the substitution is an edit on the canvas.
2015
+ // `maude design ds nearest` / `off-system` are the questions behind the trash sheet and the quiet question.
2016
+ 'ds.fix-contrast': {
2017
+ effect: 'project',
2018
+ minRole: 'edit',
2019
+ undo: 'step',
2020
+ server: { route: '/_api/ds/fix-contrast', method: 'POST' },
2021
+ agent: cli('maude design ds fix-contrast <ds> <css> [--theme <t>] [--dry-run]'),
2022
+ },
2023
+ 'ds.add-colour': {
2024
+ effect: 'project',
2025
+ minRole: 'edit',
2026
+ undo: 'step',
2027
+ server: { route: '/_api/ds/add-colour', method: 'POST' },
2028
+ agent: cli('maude design ds add-colour <ds> <colour> [--label <name>] [--css <--x-name>]'),
2029
+ },
2030
+ 'ds.use-nearest': {
2031
+ ...TSX(
2032
+ 'Replace the hand-picked colour literal with var(--token) at the place `maude design ds off-system <canvas>` names (line, col). Over HTTP: POST /_api/edit-op {op: "ds.use-nearest", targets: [element], params: {literal, css, line, col}} — refused when the colour is no longer at that place'
2033
+ ),
2034
+ minRole: 'edit',
2035
+ undo: 'step',
2036
+ server: { route: '/_api/edit-op', method: 'POST' },
2037
+ },
2038
+ // S10.9 — the rings are a picture; the places behind them are the usage index, which the verb reads
2039
+ // (`--json` carries the canvases, artboards and element ids the view rings).
2040
+ 'ds.show-reach': {
2041
+ effect: 'none',
2042
+ agent: cli('maude design ds usage <ds> --css <--token> --json'),
2043
+ },
2044
+ // S10.19 — Design system › Advanced. The check is a verb that keeps `_state/ds-check/<ds>.json` (per Mac, ignored);
2045
+ // the files an agent hands off ARE `tokens.json` + `colors_and_type.css` (the sheet writes nothing new); Finder
2046
+ // opens on the person's Mac.
2047
+ 'ds.check-system': {
2048
+ effect: 'none',
2049
+ minRole: 'edit',
2050
+ server: { route: '/_api/ds/check-system', method: 'POST' },
2051
+ agent: cli('maude design ds check-system <ds> [--json]'),
2052
+ },
2053
+ 'ds.handoff-tokens': {
2054
+ effect: 'none',
2055
+ agent: file(
2056
+ 'tokens',
2057
+ 'design:design-system',
2058
+ 'the handoff of tokens IS system/<ds>/tokens.json (design tokens, both modes) and colors_and_type.css: read them, or run maude design ds-check <ds> --emit to regenerate tokens.json first'
2059
+ ),
2060
+ },
2061
+ 'ds.reveal-files': {
2062
+ effect: 'none',
2063
+ agent: human(
2064
+ 'native-window',
2065
+ 'opens Finder on the person’s Mac; an agent already holds system/<ds>/ and reads it in place'
2066
+ ),
2067
+ },
2068
+ };