@1agh/maude 2.0.8 → 2.1.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 (401) hide show
  1. package/README.md +2 -1
  2. package/apps/hub/src/project-transactions/kernel.mjs +13 -7
  3. package/apps/studio/access/closure.ts +86 -10
  4. package/apps/studio/access/filters.ts +18 -1
  5. package/apps/studio/access/request.ts +8 -0
  6. package/apps/studio/acp/design-write-verb.ts +12 -2
  7. package/apps/studio/acp/env.ts +7 -2
  8. package/apps/studio/acp/index.ts +15 -4
  9. package/apps/studio/acp/login-state.ts +22 -5
  10. package/apps/studio/acp/may-scope.ts +38 -1
  11. package/apps/studio/acp/plugin-bootstrap.ts +13 -1
  12. package/apps/studio/acp/probe.ts +11 -4
  13. package/apps/studio/actions/agents.ts +110 -28
  14. package/apps/studio/actions/canvas-keys.ts +4 -2
  15. package/apps/studio/actions/ctx.ts +3 -0
  16. package/apps/studio/actions/defs/annotation.ts +84 -2
  17. package/apps/studio/actions/defs/app.ts +28 -1
  18. package/apps/studio/actions/defs/edit.ts +13 -0
  19. package/apps/studio/actions/defs/export.ts +12 -0
  20. package/apps/studio/actions/defs/sync.ts +18 -0
  21. package/apps/studio/actions/defs/video.ts +9 -0
  22. package/apps/studio/actions/documents.ts +6 -1
  23. package/apps/studio/actions/keymap.gen.ts +147 -9
  24. package/apps/studio/actions/menu.ts +5 -1
  25. package/apps/studio/actions/types.ts +4 -2
  26. package/apps/studio/actions/verbs.ts +9 -0
  27. package/apps/studio/actions.manifest.json +300 -45
  28. package/apps/studio/actions.parity.json +19 -1
  29. package/apps/studio/ai/save-hold.ts +2 -1
  30. package/apps/studio/ai/write-claim-scope.ts +7 -1
  31. package/apps/studio/ai/write-claim.ts +154 -3
  32. package/apps/studio/annotations/ai-read.ts +42 -6
  33. package/apps/studio/annotations/ai-write.ts +145 -2
  34. package/apps/studio/annotations/board-ops.ts +34 -3
  35. package/apps/studio/annotations/checklist-ops.ts +374 -0
  36. package/apps/studio/annotations/elements/checkitem.model.ts +129 -0
  37. package/apps/studio/annotations/elements/sticky.model.ts +54 -2
  38. package/apps/studio/annotations/ops.ts +30 -0
  39. package/apps/studio/annotations/registry.ts +9 -1
  40. package/apps/studio/annotations/templates.ts +4 -2
  41. package/apps/studio/annotations/text-steps.ts +114 -10
  42. package/apps/studio/annotations/ui/checklist-wire.ts +129 -0
  43. package/apps/studio/annotations/ui/checklist.tsx +429 -0
  44. package/apps/studio/annotations/ui/element-node.tsx +48 -2
  45. package/apps/studio/annotations/ui/template-place.ts +11 -1
  46. package/apps/studio/annotations/v1-adapter.ts +22 -3
  47. package/apps/studio/annotations-context-toolbar.tsx +12 -0
  48. package/apps/studio/annotations-layer.tsx +442 -49
  49. package/apps/studio/annotations-model.ts +4 -2
  50. package/apps/studio/api.ts +148 -21
  51. package/apps/studio/artboard-live-gate.tsx +54 -17
  52. package/apps/studio/artboard-still-persist.ts +166 -0
  53. package/apps/studio/artboard-still-raster.ts +6 -2
  54. package/apps/studio/artboard-still.ts +390 -20
  55. package/apps/studio/asset-added.ts +154 -0
  56. package/apps/studio/asset-details.ts +46 -3
  57. package/apps/studio/asset-origins.ts +5 -3
  58. package/apps/studio/asset-trash.ts +6 -1
  59. package/apps/studio/bin/_agent-browser-safe.mjs +3 -4
  60. package/apps/studio/bin/_annotate-post.mjs +14 -5
  61. package/apps/studio/bin/_audio-search.mjs +8 -2
  62. package/apps/studio/bin/_curl-local.mjs +7 -4
  63. package/apps/studio/bin/_desktop-locate.sh +145 -0
  64. package/apps/studio/bin/_ds-check-live.mjs +2 -1
  65. package/apps/studio/bin/_exports.mjs +38 -2
  66. package/apps/studio/bin/_history.mjs +79 -8
  67. package/apps/studio/bin/_import-asset.mjs +14 -9
  68. package/apps/studio/bin/_import-figma.mjs +510 -98
  69. package/apps/studio/bin/_index-cli.mjs +10 -21
  70. package/apps/studio/bin/_ingest-footage.mjs +24 -6
  71. package/apps/studio/bin/_media-probe.mjs +232 -0
  72. package/apps/studio/bin/_perf-probe-open.mjs +6 -0
  73. package/apps/studio/bin/_perf-probe-safari.mjs +6 -0
  74. package/apps/studio/bin/_perf-probe-studio.mjs +6 -1
  75. package/apps/studio/bin/_perf-probe.mjs +8 -3
  76. package/apps/studio/bin/_perf-sweep-shared.mjs +789 -0
  77. package/apps/studio/bin/_perf-sweep.mjs +240 -0
  78. package/apps/studio/bin/_record-shot.sh +33 -8
  79. package/apps/studio/bin/_screenshot-playwright.mjs +45 -2
  80. package/apps/studio/bin/_studio-verb.mjs +8 -3
  81. package/apps/studio/bin/_thumb-route.mjs +21 -0
  82. package/apps/studio/bin/_thumbs-playwright.mjs +83 -1
  83. package/apps/studio/bin/_transcribe.mjs +22 -6
  84. package/apps/studio/bin/_unsynced-refs.mjs +22 -0
  85. package/apps/studio/bin/_url-guard.mjs +120 -5
  86. package/apps/studio/bin/_url-guard.sh +29 -7
  87. package/apps/studio/bin/_video-limits.mjs +104 -0
  88. package/apps/studio/bin/_video-playwright.mjs +119 -19
  89. package/apps/studio/bin/_video-proxy.mjs +130 -0
  90. package/apps/studio/bin/_write-claim.mjs +38 -16
  91. package/apps/studio/bin/annotate.mjs +12 -2
  92. package/apps/studio/bin/canvas-rects.sh +19 -4
  93. package/apps/studio/bin/chat-open.sh +7 -1
  94. package/apps/studio/bin/draw-proof.sh +6 -2
  95. package/apps/studio/bin/generate.sh +32 -10
  96. package/apps/studio/bin/handoff.sh +2 -2
  97. package/apps/studio/bin/perf.sh +96 -15
  98. package/apps/studio/bin/photo-adjust.sh +6 -3
  99. package/apps/studio/bin/photo-bg-remove.sh +2 -2
  100. package/apps/studio/bin/prep.sh +21 -4
  101. package/apps/studio/bin/read-annotations.mjs +3 -0
  102. package/apps/studio/bin/runtime-health.sh +27 -1
  103. package/apps/studio/bin/screenshot.sh +152 -12
  104. package/apps/studio/bin/server-up.sh +64 -6
  105. package/apps/studio/bin/smoke.sh +43 -8
  106. package/apps/studio/bin/to-lottie.sh +3 -2
  107. package/apps/studio/bin/video-proxy.sh +27 -0
  108. package/apps/studio/bin/visual-sanity.sh +3 -1
  109. package/apps/studio/bridge/dgn-protocol.ts +157 -1
  110. package/apps/studio/bridge/mode-shows.ts +8 -6
  111. package/apps/studio/bridge/still-webp.ts +233 -0
  112. package/apps/studio/build.ts +18 -0
  113. package/apps/studio/canvas-build.ts +93 -11
  114. package/apps/studio/canvas-comment-mount.tsx +53 -8
  115. package/apps/studio/canvas-edit.ts +34 -1
  116. package/apps/studio/canvas-lib-module.ts +210 -0
  117. package/apps/studio/canvas-lib.tsx +3 -12
  118. package/apps/studio/canvas-pipeline.ts +111 -5
  119. package/apps/studio/canvas-shell.tsx +8 -11
  120. package/apps/studio/canvas-theme-pill.tsx +5 -3
  121. package/apps/studio/check/index.ts +12 -5
  122. package/apps/studio/check/video.ts +18 -2
  123. package/apps/studio/client/app.jsx +65 -7
  124. package/apps/studio/client/clipboard-relay.ts +193 -16
  125. package/apps/studio/client/comments-overlay.css +18 -0
  126. package/apps/studio/client/export-center.jsx +30 -0
  127. package/apps/studio/client/generate-dialog.jsx +49 -4
  128. package/apps/studio/client/github.js +7 -0
  129. package/apps/studio/client/home/HomeAccountsRow.jsx +221 -0
  130. package/apps/studio/client/home/HomeConnection.jsx +111 -0
  131. package/apps/studio/client/home/home-accounts-model.js +110 -1
  132. package/apps/studio/client/home/home-api.js +9 -2
  133. package/apps/studio/client/home/home-app.jsx +126 -13
  134. package/apps/studio/client/home/home-model.js +69 -1
  135. package/apps/studio/client/home/home-where-model.js +105 -0
  136. package/apps/studio/client/home/home.css +239 -1
  137. package/apps/studio/client/hooks/use-canvas-bridge.jsx +173 -98
  138. package/apps/studio/client/hooks/use-palette-and-panels.jsx +5 -1
  139. package/apps/studio/client/hooks/use-tabs.jsx +11 -4
  140. package/apps/studio/client/panels/DiffView.jsx +7 -1
  141. package/apps/studio/client/panels/TeamProjects.jsx +137 -134
  142. package/apps/studio/client/panels/chat-context.js +2 -0
  143. package/apps/studio/client/panels/slash-commands.gen.js +13 -13
  144. package/apps/studio/client/selection-scope.js +16 -9
  145. package/apps/studio/client/share-link.js +12 -0
  146. package/apps/studio/client/shell/viewport.jsx +11 -1
  147. package/apps/studio/client/shell-events.js +8 -0
  148. package/apps/studio/client/styles/3-kit-maude-v2.css +16 -0
  149. package/apps/studio/client/styles/_index.css +4 -0
  150. package/apps/studio/client/v2/ai/Feed.jsx +1 -1
  151. package/apps/studio/client/v2/ai/OfferCard.jsx +34 -0
  152. package/apps/studio/client/v2/ai/activity-line.js +54 -1
  153. package/apps/studio/client/v2/ai/ai-offer.js +21 -1
  154. package/apps/studio/client/v2/ai/run-model.js +3 -1
  155. package/apps/studio/client/v2/annotations/vote-store.js +28 -4
  156. package/apps/studio/client/v2/assets/asset-drop-session.js +37 -2
  157. package/apps/studio/client/v2/assets/canvas-drop-catcher.jsx +7 -5
  158. package/apps/studio/client/v2/assets/details-model.js +1 -1
  159. package/apps/studio/client/v2/assets/details.jsx +5 -0
  160. package/apps/studio/client/v2/assets/tile-drag.js +11 -7
  161. package/apps/studio/client/v2/comments/comments-panel.jsx +22 -3
  162. package/apps/studio/client/v2/create/duplicate-done.js +6 -2
  163. package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +1 -0
  164. package/apps/studio/client/v2/diagnostics/diagnostics-model.js +32 -2
  165. package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +35 -8
  166. package/apps/studio/client/v2/diagnostics/diagnostics.css +34 -0
  167. package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +113 -3
  168. package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +343 -6
  169. package/apps/studio/client/v2/diagnostics/sync-details/unsynced-refs.js +55 -0
  170. package/apps/studio/client/v2/ds/review.css +1 -1
  171. package/apps/studio/client/v2/export/exports-model.js +7 -0
  172. package/apps/studio/client/v2/export/exports-panel.jsx +1 -0
  173. package/apps/studio/client/v2/export/job-row.jsx +32 -2
  174. package/apps/studio/client/v2/handoff/ready-card.jsx +1 -1
  175. package/apps/studio/client/v2/history/compare-view.jsx +1 -0
  176. package/apps/studio/client/v2/inspector/css-write.js +6 -1
  177. package/apps/studio/client/v2/inspector/frame.jsx +28 -4
  178. package/apps/studio/client/v2/inspector/kinds/clip-model.js +51 -0
  179. package/apps/studio/client/v2/inspector/kinds/clip.jsx +75 -2
  180. package/apps/studio/client/v2/inspector/model.js +21 -0
  181. package/apps/studio/client/v2/inspector/sections/fill.jsx +12 -3
  182. package/apps/studio/client/v2/inspector/sections/recent-colours.js +8 -5
  183. package/apps/studio/client/v2/inspector/view-mode.jsx +11 -1
  184. package/apps/studio/client/v2/link-server/LinkServerDialog.jsx +492 -0
  185. package/apps/studio/client/v2/link-server/LinkServerHost.jsx +42 -0
  186. package/apps/studio/client/v2/link-server/link-server-api.js +142 -0
  187. package/apps/studio/client/v2/link-server/link-server-model.js +438 -0
  188. package/apps/studio/client/v2/link-server/link-server.css +109 -0
  189. package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +31 -86
  190. package/apps/studio/client/v2/onboarding/onboarding-model.js +1 -18
  191. package/apps/studio/client/v2/preview/link-follow.js +4 -2
  192. package/apps/studio/client/v2/preview/preview-chrome-host.jsx +16 -6
  193. package/apps/studio/client/v2/search/help-model.js +2 -0
  194. package/apps/studio/client/v2/search/search-keywords.js +3 -2
  195. package/apps/studio/client/v2/settings/account.jsx +4 -2
  196. package/apps/studio/client/v2/settings/advanced-section.jsx +344 -137
  197. package/apps/studio/client/v2/settings/connection-row.jsx +3 -59
  198. package/apps/studio/client/v2/settings/connections-section.jsx +118 -425
  199. package/apps/studio/client/v2/settings/general-section.jsx +155 -24
  200. package/apps/studio/client/v2/settings/project-sync-settings.jsx +4 -3
  201. package/apps/studio/client/v2/settings/reset-section.jsx +14 -3
  202. package/apps/studio/client/v2/settings/settings-card.jsx +142 -0
  203. package/apps/studio/client/v2/settings/settings-cards.js +220 -0
  204. package/apps/studio/client/v2/settings/settings-handlers.js +7 -6
  205. package/apps/studio/client/v2/settings/settings-model.js +100 -31
  206. package/apps/studio/client/v2/settings/settings-sheet.jsx +25 -6
  207. package/apps/studio/client/v2/settings/settings.css +374 -64
  208. package/apps/studio/client/v2/settings/this-project-card.jsx +730 -0
  209. package/apps/studio/client/v2/settings/this-project-model.js +172 -0
  210. package/apps/studio/client/v2/settings/use-connections.js +3 -2
  211. package/apps/studio/client/v2/settings/use-open-card.js +37 -0
  212. package/apps/studio/client/v2/share/share-sheet.jsx +28 -11
  213. package/apps/studio/client/v2/shell/api-session-boot.js +6 -0
  214. package/apps/studio/client/v2/shell/api-session.js +126 -0
  215. package/apps/studio/client/v2/shell/connection-state.js +197 -0
  216. package/apps/studio/client/v2/shell/floating-panels.css +31 -1
  217. package/apps/studio/client/v2/shell/image-pick.js +61 -8
  218. package/apps/studio/client/v2/shell/menu-aim.js +43 -0
  219. package/apps/studio/client/v2/shell/menu-runner.js +25 -7
  220. package/apps/studio/client/v2/shell/occlusion-insets.js +18 -1
  221. package/apps/studio/client/v2/shell/project-account-bus.js +36 -0
  222. package/apps/studio/client/v2/shell/project-account-card.jsx +357 -148
  223. package/apps/studio/client/v2/shell/project-account-model.js +272 -149
  224. package/apps/studio/client/v2/shell/project-account-toast.js +66 -0
  225. package/apps/studio/client/v2/shell/project-account.css +237 -0
  226. package/apps/studio/client/v2/shell/project-pill.jsx +52 -6
  227. package/apps/studio/client/v2/shell/share-cluster-host.jsx +166 -83
  228. package/apps/studio/client/v2/shell/shell-parity.js +3 -2
  229. package/apps/studio/client/v2/shell/shell-parity.json +71 -36
  230. package/apps/studio/client/v2/shell/still-bridge.js +194 -0
  231. package/apps/studio/client/v2/shell/still-store.js +319 -0
  232. package/apps/studio/client/v2/shell/use-account.js +2 -0
  233. package/apps/studio/client/v2/shell/use-tool-panels.js +2 -1
  234. package/apps/studio/client/v2/signin/use-signin.js +1 -1
  235. package/apps/studio/client/v2/timeline/Timeline.jsx +15 -0
  236. package/apps/studio/client/v2/timeline/frame-handle-model.js +142 -0
  237. package/apps/studio/client/v2/timeline/frame-handle.jsx +151 -0
  238. package/apps/studio/clip-ops.ts +126 -8
  239. package/apps/studio/cloud/endpoints.ts +29 -4
  240. package/apps/studio/collab/ai-activity.ts +10 -8
  241. package/apps/studio/collab/awareness-bridge.ts +34 -9
  242. package/apps/studio/collab/index.ts +3 -0
  243. package/apps/studio/collab/registry.ts +41 -10
  244. package/apps/studio/comment-reattach.ts +149 -0
  245. package/apps/studio/comments/mine-stamp.ts +15 -7
  246. package/apps/studio/comments/ops.ts +52 -8
  247. package/apps/studio/comments-overlay.tsx +146 -9
  248. package/apps/studio/dist/client.bundle.js +892 -885
  249. package/apps/studio/dist/comment-mount.js +2 -2
  250. package/apps/studio/dist/styles.css +1 -1
  251. package/apps/studio/dom-selection.ts +87 -18
  252. package/apps/studio/ds/board/directions.css +8 -0
  253. package/apps/studio/ds/board/outline.tsx +16 -0
  254. package/apps/studio/ds/canvas-check.ts +6 -0
  255. package/apps/studio/edit-ops/clip/reframe.ts +19 -3
  256. package/apps/studio/edit-ops/clip-carry.ts +602 -0
  257. package/apps/studio/edit-ops/clipboard.ts +318 -23
  258. package/apps/studio/edit-ops/dispatch.ts +20 -2
  259. package/apps/studio/edit-ops/scope-names.ts +249 -40
  260. package/apps/studio/edit-ops/slot-defaults.ts +3 -0
  261. package/apps/studio/edit-ops/types.ts +6 -0
  262. package/apps/studio/editing/align-bar.tsx +33 -9
  263. package/apps/studio/editing/artboard-actions.ts +5 -0
  264. package/apps/studio/editing/artboard-menu.tsx +6 -2
  265. package/apps/studio/editing/click-to-type.ts +1 -1
  266. package/apps/studio/editing/clip-words.ts +48 -0
  267. package/apps/studio/editing/clipboard.ts +21 -6
  268. package/apps/studio/editing/declared-background.ts +25 -0
  269. package/apps/studio/editing/index.tsx +3 -0
  270. package/apps/studio/editing/object-keys.ts +4 -4
  271. package/apps/studio/editing/object-menu.tsx +13 -3
  272. package/apps/studio/editing/pen/points.tsx +61 -0
  273. package/apps/studio/editing/text-in-place.tsx +11 -0
  274. package/apps/studio/editing/video-frame-handle.tsx +425 -0
  275. package/apps/studio/exporters/capture-prepass.ts +374 -0
  276. package/apps/studio/exporters/degraded.ts +148 -0
  277. package/apps/studio/exporters/hub-render-door.ts +28 -2
  278. package/apps/studio/exporters/index.ts +3 -1
  279. package/apps/studio/exporters/job-budget.ts +93 -0
  280. package/apps/studio/exporters/jobs.ts +215 -28
  281. package/apps/studio/exporters/parity-check.ts +254 -0
  282. package/apps/studio/exporters/remote.ts +209 -15
  283. package/apps/studio/exporters/svg-inline.ts +87 -0
  284. package/apps/studio/exporters/video-render-lib.ts +88 -26
  285. package/apps/studio/exporters/video.ts +29 -6
  286. package/apps/studio/figma/assets.ts +58 -43
  287. package/apps/studio/figma/codegen-fonts.ts +100 -0
  288. package/apps/studio/figma/fig-decode.ts +390 -25
  289. package/apps/studio/figma/fig-kiwi.ts +18 -4
  290. package/apps/studio/figma/fig-vector.ts +59 -3
  291. package/apps/studio/figma/sanitize.ts +2 -0
  292. package/apps/studio/figma/style-map.ts +293 -48
  293. package/apps/studio/figma/to-artboard.ts +455 -69
  294. package/apps/studio/figma/to-strokes.ts +44 -11
  295. package/apps/studio/figma/types.ts +13 -0
  296. package/apps/studio/footage/schema.ts +3 -3
  297. package/apps/studio/generation/adapters/elevenlabs.ts +7 -1
  298. package/apps/studio/generation/adapters/groq.ts +8 -1
  299. package/apps/studio/generation/spend.ts +312 -0
  300. package/apps/studio/generation/types.ts +12 -0
  301. package/apps/studio/handoff/run.ts +1 -1
  302. package/apps/studio/handoff/targets.ts +2 -2
  303. package/apps/studio/handoff/write-scopes.ts +1 -1
  304. package/apps/studio/history/describe-annotations.ts +4 -0
  305. package/apps/studio/home/accounts.ts +30 -11
  306. package/apps/studio/home/cloud.ts +6 -1
  307. package/apps/studio/home/create-local.ts +32 -3
  308. package/apps/studio/home/hub-health.ts +76 -0
  309. package/apps/studio/home/routes.ts +15 -4
  310. package/apps/studio/http.ts +438 -86
  311. package/apps/studio/imported-module-ids.ts +91 -0
  312. package/apps/studio/inspect.ts +2 -0
  313. package/apps/studio/migrate/hub.ts +8 -1
  314. package/apps/studio/notifications.tsx +47 -5
  315. package/apps/studio/paths.ts +10 -1
  316. package/apps/studio/port.ts +3 -2
  317. package/apps/studio/preview/preview-camera.tsx +15 -382
  318. package/apps/studio/readiness.ts +10 -1
  319. package/apps/studio/release-build.ts +51 -0
  320. package/apps/studio/routes/agent.ts +188 -9
  321. package/apps/studio/routes/ai.ts +43 -11
  322. package/apps/studio/routes/annotations.ts +27 -1
  323. package/apps/studio/routes/assets.ts +18 -1
  324. package/apps/studio/routes/canvas-origin.ts +12 -9
  325. package/apps/studio/routes/cloud-move.ts +15 -0
  326. package/apps/studio/routes/edit.ts +3 -0
  327. package/apps/studio/routes/export.ts +51 -0
  328. package/apps/studio/routes/generate.ts +42 -12
  329. package/apps/studio/routes/hub-link-folder.ts +334 -0
  330. package/apps/studio/routes/hub-signin.ts +78 -1
  331. package/apps/studio/routes/index.ts +9 -1
  332. package/apps/studio/routes/shell.ts +217 -5
  333. package/apps/studio/routes/sync.ts +136 -8
  334. package/apps/studio/routes/votes.ts +2 -1
  335. package/apps/studio/schema/annotations.v2.schema.json +143 -1
  336. package/apps/studio/schema/beats.v1.schema.json +1 -1
  337. package/apps/studio/schema/edl.v1.schema.json +1 -1
  338. package/apps/studio/schema/formats.ts +3 -3
  339. package/apps/studio/schema/transcript.v1.schema.json +1 -1
  340. package/apps/studio/server.ts +142 -43
  341. package/apps/studio/shell/api-key.ts +503 -0
  342. package/apps/studio/shell/attest.ts +59 -0
  343. package/apps/studio/shell/capture-url.ts +20 -0
  344. package/apps/studio/shell/cli-yield.ts +276 -0
  345. package/apps/studio/shell/clip-transfer.ts +302 -0
  346. package/apps/studio/shell/key-file.ts +108 -0
  347. package/apps/studio/shell/server-json.ts +75 -0
  348. package/apps/studio/shell/worktree.ts +19 -0
  349. package/apps/studio/spoof-chars.ts +9 -0
  350. package/apps/studio/studio-page-host.ts +1 -1
  351. package/apps/studio/sync/accepted-cold-start.ts +144 -8
  352. package/apps/studio/sync/accepted-link.ts +76 -29
  353. package/apps/studio/sync/action-stage.ts +575 -44
  354. package/apps/studio/sync/adopt-held.ts +85 -0
  355. package/apps/studio/sync/ctl-heal.ts +58 -0
  356. package/apps/studio/sync/file-ledger.ts +38 -4
  357. package/apps/studio/sync/file-membership.ts +16 -1
  358. package/apps/studio/sync/file-plane.ts +289 -22
  359. package/apps/studio/sync/held-deletes.ts +86 -5
  360. package/apps/studio/sync/hub-link.ts +8 -0
  361. package/apps/studio/sync/index.ts +196 -12
  362. package/apps/studio/sync/journal-client.ts +50 -4
  363. package/apps/studio/sync/link-consent.ts +22 -75
  364. package/apps/studio/sync/link-survey.ts +252 -0
  365. package/apps/studio/sync/local-kernel.ts +296 -8
  366. package/apps/studio/sync/projection.ts +22 -3
  367. package/apps/studio/sync/seed-progress.ts +12 -0
  368. package/apps/studio/sync/source-recovery.ts +59 -3
  369. package/apps/studio/sync/status.ts +19 -2
  370. package/apps/studio/sync/unsynced-refs.ts +397 -0
  371. package/apps/studio/sync/writer-registry.ts +20 -0
  372. package/apps/studio/thumbs/service.ts +4 -1
  373. package/apps/studio/tool-palette.tsx +23 -0
  374. package/apps/studio/ui-prefs.ts +40 -0
  375. package/apps/studio/use-agent-presence.tsx +2 -2
  376. package/apps/studio/use-canvas-keys.ts +6 -1
  377. package/apps/studio/video/format-ids.ts +2 -2
  378. package/apps/studio/video/inject.ts +31 -0
  379. package/apps/studio/video/media-risk.ts +58 -0
  380. package/apps/studio/video/object-fit.ts +137 -0
  381. package/apps/studio/video/provider-transcript.ts +141 -0
  382. package/apps/studio/whats-new.json +137 -0
  383. package/apps/studio/workspace-mode.ts +1 -0
  384. package/apps/studio/ws.ts +5 -0
  385. package/cli/commands/design.mjs +119 -8
  386. package/cli/lib/bash-guard.mjs +366 -6
  387. package/cli/lib/confine-read.mjs +1 -0
  388. package/cli/lib/design-help.gen.mjs +3 -2
  389. package/cli/lib/design-hook.mjs +387 -81
  390. package/cli/lib/design-link.mjs +16 -1
  391. package/cli/lib/design-open.mjs +49 -3
  392. package/cli/lib/desktop-locate.mjs +770 -0
  393. package/cli/lib/handoff.mjs +1 -1
  394. package/cli/lib/hook-state.mjs +291 -0
  395. package/cli/lib/pkg-root.mjs +65 -13
  396. package/cli/lib/studio-locate.mjs +59 -16
  397. package/package.json +15 -8
  398. package/plugins/design/templates/_shell.html +13 -0
  399. package/apps/studio/client/v2/onboarding/HubSheet.jsx +0 -212
  400. package/apps/studio/client/v2/shell/account-card-model.js +0 -114
  401. package/apps/studio/client/v2/shell/account-card.jsx +0 -189
@@ -25,6 +25,8 @@ export interface UseCanvasKeysOptions {
25
25
  capture?: boolean;
26
26
  /** S3.11 — what the canvas has selected right now (read per keydown), for a selection-keyed binding. */
27
27
  selection?: () => SelKind;
28
+ /** #113 — is this keydown's target a checklist row or entry (the `checkItemFocused` fact)? Read per keydown. */
29
+ checkItemFocused?: (e: KeyboardEvent) => boolean;
28
30
  }
29
31
 
30
32
  export function useCanvasKeys(handlers: CanvasKeyHandlers, opts: UseCanvasKeysOptions = {}): void {
@@ -34,6 +36,8 @@ export function useCanvasKeys(handlers: CanvasKeyHandlers, opts: UseCanvasKeysOp
34
36
  const { target = 'window', capture = false } = opts;
35
37
  const selectionRef = useRef(opts.selection);
36
38
  selectionRef.current = opts.selection;
39
+ const checkRef = useRef(opts.checkItemFocused);
40
+ checkRef.current = opts.checkItemFocused;
37
41
  useEffect(() => {
38
42
  if (typeof window === 'undefined') return;
39
43
  const index = canvasKeyIndex(ids.split('|'));
@@ -48,7 +52,8 @@ export function useCanvasKeys(handlers: CanvasKeyHandlers, opts: UseCanvasKeysOp
48
52
  // `inspect.edit`, can only match with it); undefined on a free canvas = the v1 context ('edit')
49
53
  canvasModeStore(window).get().mode ?? undefined,
50
54
  canvasSingleKeys(),
51
- selectionRef.current?.()
55
+ selectionRef.current?.(),
56
+ checkRef.current?.(ke) ?? false
52
57
  );
53
58
  if (id) handlersRef.current[id]?.(ke);
54
59
  };
@@ -56,7 +56,7 @@ export function transcriptJsonSchema(): JsonSchema {
56
56
  $id: TRANSCRIPT_SCHEMA_ID,
57
57
  title: 'Maude transcript sidecar (assets/<sha8>.transcript.json), v1',
58
58
  description:
59
- 'GENERATED by scripts/gen-actions.mjs from apps/studio/video/format-ids.ts — the runtime source is validateTranscript (video/schema.ts). V2-1.10 §5.1: one per source asset with sound, written by transcribe-local / transcribe / maude migrate v2, never by hand. Preserving: a key this build does not know is kept by every reader and writer, so additionalProperties stays open. Rules the schema cannot state: words sorted by t0 with unique ids and t1 > t0; regions sorted and non-overlapping; words [] when engine.id is "energy". Word text is untrusted content. Skill: design:video-comp.',
59
+ 'GENERATED by scripts/gen-actions.mjs from apps/studio/video/format-ids.ts — the runtime source is validateTranscript (video/schema.ts). V2-1.10 §5.1: one per source asset with sound, written by transcribe-local / transcribe / maude migrate v2, never by hand. Preserving: a key this build does not know is kept by every reader and writer, so additionalProperties stays open. Rules the schema cannot state: words sorted by t0 with unique ids and t1 > t0; regions sorted and non-overlapping; words [] when engine.id is "energy". Word text is untrusted content. Skill: design-video:video-comp.',
60
60
  type: 'object',
61
61
  required: ['format', 'v', 'asset', 'engine', 'words', 'speech', 'createdAt'],
62
62
  properties: {
@@ -111,7 +111,7 @@ export function beatsJsonSchema(): JsonSchema {
111
111
  $id: BEATS_SCHEMA_ID,
112
112
  title: 'Maude beat-grid sidecar (assets/<sha8>.beats.json), v1',
113
113
  description:
114
- 'GENERATED by scripts/gen-actions.mjs from apps/studio/video/format-ids.ts — the runtime source is validateBeats (video/schema.ts). V2-1.10 §5.2: one per music asset, written by `maude design beats` and the studio. Preserving (additionalProperties open). Rule the schema cannot state: beats strictly ascending. beats[bar.phase + 4k] are downbeats; tempoStrength < 0.15 means no clear beat. Skill: design:video-comp.',
114
+ 'GENERATED by scripts/gen-actions.mjs from apps/studio/video/format-ids.ts — the runtime source is validateBeats (video/schema.ts). V2-1.10 §5.2: one per music asset, written by `maude design beats` and the studio. Preserving (additionalProperties open). Rule the schema cannot state: beats strictly ascending. beats[bar.phase + 4k] are downbeats; tempoStrength < 0.15 means no clear beat. Skill: design-video:video-comp.',
115
115
  type: 'object',
116
116
  required: [
117
117
  'format',
@@ -322,3 +322,34 @@ export function videoDepsFor(source: string, canvasAbs: string, designRoot: stri
322
322
 
323
323
  // The closure's freshness deps reach this parser only through the registration (access/closure.ts).
324
324
  registerVideoDeps(videoDepsFor);
325
+
326
+ const SPEECH_MEDIA_EXT_RE = /\.(?:mp4|m4v|mov|webm|mkv)$/i;
327
+
328
+ /**
329
+ * The clips under a canvas-lib `<Captions>` that have no usable `assets/<sha8>.transcript.json`
330
+ * (absent, unreadable or invalid) — `assets/<sha8>.<ext>` paths, sorted. Only what the captions
331
+ * read: unmuted video clips on the video tracks (the music bed and stills are not speech to caption).
332
+ * Empty when the canvas has no canvas-lib `<Captions>`. Never throws.
333
+ */
334
+ export function missingTranscriptsFor(
335
+ source: string,
336
+ canvasAbs: string,
337
+ designRoot: string
338
+ ): string[] {
339
+ const plan = planOf(canvasAbs, source);
340
+ if (!plan) return [];
341
+ const out = new Set<string>();
342
+ const comps = new Set(plan.sites.filter((s) => s.kind === 'captions').map((s) => s.comp));
343
+ for (const comp of comps) {
344
+ const c = clipsOf(canvasAbs, source, plan, comp);
345
+ if (!c) continue;
346
+ for (const span of c.clips) {
347
+ if (span.muted || (span.track !== 'video' && span.track !== 'video2')) continue;
348
+ if (!SPEECH_MEDIA_EXT_RE.test(span.src)) continue;
349
+ const at = transcriptAbs(designRoot, span.src);
350
+ if (!at) continue;
351
+ if (!readTranscriptAt(at.abs, at.rel)) out.add(span.src);
352
+ }
353
+ }
354
+ return [...out].sort();
355
+ }
@@ -0,0 +1,58 @@
1
+ // The clips of a comp that an export may not be able to use — HEVC, variable frame rate, a second audio
2
+ // track (#128 §1, root cause of #127). The export reads this before the render and, when the audio renderer
3
+ // then gives up and the file is captured frame by frame, names the clip and the codec in the notice
4
+ // (`undecodableMediaGap`, exporters/degraded.ts) instead of leaving "the video could not be decoded".
5
+ //
6
+ // Soft on every side: no ffprobe, a clip that is not in `assets/`, a path that leaves the design root — each
7
+ // answers "nothing to say". Never throws, never blocks an export.
8
+
9
+ import { realpathSync, statSync } from 'node:fs';
10
+ import path from 'node:path';
11
+
12
+ import { issuesPhrase, mediaIssues, probeMedia } from '../bin/_media-probe.mjs';
13
+
14
+ export interface RiskyMedia {
15
+ /** `assets/<sha8>.<ext>` as the canvas names it */
16
+ asset: string;
17
+ /** the codec and the other findings: `HEVC (H.265), variable frame rate (about 32.5 fps)` */
18
+ what: string;
19
+ }
20
+
21
+ /** How many clips are probed per export (each is one ffprobe run). */
22
+ const MAX_PROBED = 12;
23
+ const CLIP_RE = /assets\/[A-Za-z0-9_][A-Za-z0-9._-]*\.(?:mp4|m4v|mov|webm)\b/g;
24
+
25
+ /** The video clips a canvas source names, once each, in order of appearance. */
26
+ export function clipsNamedIn(source: string): string[] {
27
+ return [...new Set(source.match(CLIP_RE) ?? [])].slice(0, MAX_PROBED);
28
+ }
29
+
30
+ /**
31
+ * Probe every `assets/*` clip the source names and return the ones with something to say.
32
+ * `probe` is a seam for the tests; production passes nothing.
33
+ */
34
+ export function riskyMediaIn(
35
+ source: string,
36
+ designRoot: string,
37
+ probe: typeof probeMedia = probeMedia
38
+ ): RiskyMedia[] {
39
+ const out: RiskyMedia[] = [];
40
+ let designReal: string;
41
+ try {
42
+ designReal = realpathSync(designRoot);
43
+ } catch {
44
+ return out;
45
+ }
46
+ for (const rel of clipsNamedIn(source)) {
47
+ try {
48
+ const abs = realpathSync(path.join(designRoot, ...rel.split('/')));
49
+ // a clip that is a symlink out of the design root is not ours to feed to a media parser
50
+ if (!abs.startsWith(designReal + path.sep) || !statSync(abs).isFile()) continue;
51
+ const issues = mediaIssues(probe(abs));
52
+ if (issues.length) out.push({ asset: rel, what: issuesPhrase(issues) });
53
+ } catch {
54
+ /* a clip that is missing or unreadable has no codec to name */
55
+ }
56
+ }
57
+ return out;
58
+ }
@@ -0,0 +1,137 @@
1
+ // video/object-fit.ts — #128 §3: `style.objectFit` on @remotion/media's <Video> is silently dropped.
2
+ //
3
+ // <Video> takes `objectFit` as a PROP (default "contain") and overwrites `style.objectFit` with it, so a
4
+ // 16:9 clip in a 9:16 artboard with `style={{ objectFit: "cover" }}` stayed letterboxed, in the preview
5
+ // and in the export (the old <OffthreadVideo> read the style, so existing kits spread a `cover()` helper
6
+ // into it). The canvas build therefore reads the style's objectFit into the prop for the author, and
7
+ // `maude design check` (check/video.ts) tells them to write the prop themselves.
8
+ //
9
+ // <Video style={{ objectFit: "cover" }} /> → <Video objectFit={({ objectFit: "cover" })?.objectFit} style=… />
10
+ //
11
+ // The source on disk is never touched (the build maps the text it is about to bundle, like video/inject.ts).
12
+ // Rules: the prop wins when both are given; a clip directly inside a canvas-lib <Reframe> is left alone
13
+ // (Reframe frames its child itself); the style is read at run time (`(style)?.objectFit`), so a spread
14
+ // helper or a const works too. Pure: oxc-parser only (check/video.ts imports `objectFitSites`).
15
+
16
+ import { parseSync } from 'oxc-parser';
17
+
18
+ // biome-ignore lint/suspicious/noExplicitAny: oxc's ESTree nodes are walked structurally
19
+ type Node = any;
20
+
21
+ const MEDIA = '@remotion/media';
22
+ const LIB = '@maude/canvas-lib';
23
+ /** The video components of @remotion/media (the ones that read the `objectFit` prop). */
24
+ const VIDEO_EXPORTS = new Set(['Video', 'experimental_Video']);
25
+
26
+ export interface ObjectFitSite {
27
+ el: Node;
28
+ /** the source text of the `style` expression: `{ objectFit: "cover" }` */
29
+ styleText: string;
30
+ /** where the new attribute goes: straight after the tag name, so a later attribute (a spread) wins */
31
+ insertAt: number;
32
+ }
33
+
34
+ function importedNames(
35
+ program: Node,
36
+ from: string,
37
+ wanted: (name: string) => boolean
38
+ ): Set<string> {
39
+ const out = new Set<string>();
40
+ for (const st of program?.body ?? []) {
41
+ if (st.type !== 'ImportDeclaration' || st.source?.value !== from) continue;
42
+ for (const sp of st.specifiers ?? []) {
43
+ if (sp.type !== 'ImportSpecifier') continue;
44
+ const imported = sp.imported?.name ?? sp.imported?.value;
45
+ if (typeof imported === 'string' && wanted(imported) && sp.local?.name)
46
+ out.add(sp.local.name);
47
+ }
48
+ }
49
+ return out;
50
+ }
51
+
52
+ const tagName = (el: Node): string | null =>
53
+ el?.openingElement?.name?.type === 'JSXIdentifier' ? el.openingElement.name.name : null;
54
+
55
+ /** Every JSXElement with the element it sits directly under (null at the top). */
56
+ function walk(program: Node): Array<{ el: Node; parent: Node | null }> {
57
+ const out: Array<{ el: Node; parent: Node | null }> = [];
58
+ const visit = (node: Node, parent: Node | null): void => {
59
+ if (!node || typeof node !== 'object') return;
60
+ if (Array.isArray(node)) {
61
+ for (const c of node) visit(c, parent);
62
+ return;
63
+ }
64
+ if (typeof node.type !== 'string') return;
65
+ if (node.type === 'JSXElement') out.push({ el: node, parent });
66
+ for (const k of Object.keys(node)) {
67
+ if (k === 'loc' || k === 'range' || k === 'start' || k === 'end' || k === 'type') continue;
68
+ visit(node[k], node.type === 'JSXElement' ? node : parent);
69
+ }
70
+ };
71
+ visit(program, null);
72
+ return out.sort((a, b) => a.el.start - b.el.start);
73
+ }
74
+
75
+ /** `{ a: 1, b }` with no spread and no `objectFit` key: nothing in it can set the fit. */
76
+ function cannotSetFit(expr: Node): boolean {
77
+ if (expr?.type !== 'ObjectExpression') return false;
78
+ return !(expr.properties ?? []).some(
79
+ (p: Node) =>
80
+ p.type === 'SpreadElement' || p.computed || (p.key?.name ?? p.key?.value) === 'objectFit'
81
+ );
82
+ }
83
+
84
+ /**
85
+ * The @remotion/media `<Video>` elements whose `style` may carry an objectFit and which have no
86
+ * `objectFit` prop of their own. `text` is the program's source.
87
+ */
88
+ export function objectFitSites(program: Node, text: string): ObjectFitSite[] {
89
+ const videos = importedNames(program, MEDIA, (n) => VIDEO_EXPORTS.has(n));
90
+ if (videos.size === 0) return [];
91
+ const reframes = importedNames(program, LIB, (n) => n === 'Reframe');
92
+ const out: ObjectFitSite[] = [];
93
+ for (const { el, parent } of walk(program)) {
94
+ const tag = tagName(el);
95
+ if (!tag || !videos.has(tag)) continue;
96
+ if (parent && reframes.has(tagName(parent) ?? '')) continue;
97
+ const attrs: Node[] = el.openingElement.attributes ?? [];
98
+ const named = (n: string) =>
99
+ attrs.find(
100
+ (a) => a.type === 'JSXAttribute' && a.name?.type === 'JSXIdentifier' && a.name.name === n
101
+ );
102
+ if (named('objectFit')) continue;
103
+ const style = named('style');
104
+ const container = style?.value;
105
+ if (container?.type !== 'JSXExpressionContainer') continue;
106
+ const expr = container.expression;
107
+ if (!expr || expr.type === 'JSXEmptyExpression' || cannotSetFit(expr)) continue;
108
+ out.push({
109
+ el,
110
+ styleText: text.slice(expr.start, expr.end),
111
+ insertAt: el.openingElement.name.end as number,
112
+ });
113
+ }
114
+ return out;
115
+ }
116
+
117
+ /**
118
+ * `text` (a canvas module the build is about to bundle) with every site's `objectFit` prop added.
119
+ * Never throws: text that does not parse comes back unchanged, the bundler reports the syntax.
120
+ */
121
+ export function mapVideoObjectFit(file: string, text: string): string {
122
+ // no `objectFit` text gate: the helper that sets it (`cover()`) may live in another file
123
+ if (!text.includes(MEDIA)) return text;
124
+ let program: Node;
125
+ try {
126
+ const parsed = parseSync(file, text, { sourceType: 'module', lang: 'tsx' });
127
+ if (parsed.errors?.length) return text;
128
+ program = parsed.program;
129
+ } catch {
130
+ return text;
131
+ }
132
+ const sites = objectFitSites(program, text);
133
+ let code = text;
134
+ for (const s of sites.sort((a, b) => b.insertAt - a.insertAt))
135
+ code = `${code.slice(0, s.insertAt)} objectFit={(${s.styleText})?.objectFit}${code.slice(s.insertAt)}`;
136
+ return code;
137
+ }
@@ -0,0 +1,141 @@
1
+ // video/provider-transcript.ts — #128 §7: a cloud transcription engine (ElevenLabs Scribe, Groq
2
+ // Whisper) leaves the SAME word-timing sidecar the local whisper path does:
3
+ // `assets/<sha8>.transcript.json` (maude.transcript v1), written through the strict writer
4
+ // (`writeTranscriptSidecar`) — not a second words file. Input is the engines' common shape,
5
+ // `{ text, start, end }[]` in seconds (`GenWord`).
6
+
7
+ import {
8
+ MAX_WORD_TEXT,
9
+ round3,
10
+ sidecarRelFor,
11
+ type Transcript,
12
+ type TranscriptWord,
13
+ } from './schema.ts';
14
+ import { speechRegionsFromWords } from './speech.ts';
15
+ import { writeTranscriptSidecar } from './words-run.ts';
16
+
17
+ export interface ProviderWord {
18
+ text: string;
19
+ start: number;
20
+ end: number;
21
+ }
22
+
23
+ export interface ProviderEngine {
24
+ /** a schema `ENGINE_IDS` member: `elevenlabs-scribe` | `groq-whisper` */
25
+ id: string;
26
+ /** `provider` (per word) or `segment` (the engine only timed whole lines) */
27
+ timing: 'provider' | 'segment';
28
+ model?: string;
29
+ }
30
+
31
+ export interface ProviderTranscriptOptions {
32
+ lang?: string;
33
+ now?: Date;
34
+ }
35
+
36
+ /** The sidecar engine id of a generation provider, or null for one that is not a transcriber. */
37
+ export function engineIdForProvider(provider: string): string | null {
38
+ if (provider === 'elevenlabs') return 'elevenlabs-scribe';
39
+ if (provider === 'groq') return 'groq-whisper';
40
+ return null;
41
+ }
42
+
43
+ const MIN_WORD_SEC = 0.02;
44
+
45
+ /** Provider words -> a `Transcript` the strict writer accepts: sorted, blanks dropped, every word
46
+ * at least {MIN_WORD_SEC} long, ids `w0…`, speech regions from the words. */
47
+ export function providerWordsToTranscript(
48
+ words: readonly ProviderWord[],
49
+ asset: string,
50
+ engine: ProviderEngine,
51
+ opts: ProviderTranscriptOptions = {}
52
+ ): Transcript {
53
+ const clean = words
54
+ .map((w) => ({
55
+ text: String(w.text ?? '')
56
+ .trim()
57
+ .slice(0, MAX_WORD_TEXT),
58
+ t0: Number.isFinite(w.start) ? Math.max(0, w.start) : 0,
59
+ t1: Number.isFinite(w.end) ? Math.max(0, w.end) : 0,
60
+ }))
61
+ .filter((w) => w.text.length > 0)
62
+ .map((w) => ({ ...w, t1: w.t1 > w.t0 ? w.t1 : w.t0 + MIN_WORD_SEC }))
63
+ .sort((a, b) => a.t0 - b.t0);
64
+ const list: TranscriptWord[] = clean.map((w, i) => ({
65
+ id: `w${i}`,
66
+ t0: round3(w.t0),
67
+ t1: round3(Math.max(w.t1, w.t0 + MIN_WORD_SEC)),
68
+ text: w.text,
69
+ }));
70
+ const durationSec = list.length ? round3(Math.max(...list.map((w) => w.t1))) : undefined;
71
+ return {
72
+ format: 'maude.transcript',
73
+ v: 1,
74
+ asset,
75
+ ...(durationSec !== undefined ? { durationSec } : {}),
76
+ ...(opts.lang && /^[a-z]{2,3}$/.test(opts.lang) ? { lang: opts.lang } : {}),
77
+ engine: {
78
+ id: engine.id,
79
+ timing: engine.timing,
80
+ ...(engine.model ? { model: engine.model.slice(0, 64) } : {}),
81
+ },
82
+ words: list,
83
+ speech: {
84
+ source: 'words',
85
+ regions: speechRegionsFromWords(
86
+ list,
87
+ list.map(() => true),
88
+ durationSec
89
+ ),
90
+ },
91
+ createdAt: (opts.now ?? new Date()).toISOString(),
92
+ };
93
+ }
94
+
95
+ /**
96
+ * Write `assets/<sha8>.transcript.json` for a cloud engine's words. Returns the design-root
97
+ * relative path, or null when there is nothing to write (no words, or `asset` cannot carry a
98
+ * sidecar). A value the strict writer refuses throws (`SidecarWriteError`) — the caller decides
99
+ * whether that may lose the SRT it already has.
100
+ */
101
+ export function writeProviderTranscript(
102
+ designRoot: string,
103
+ asset: string,
104
+ words: readonly ProviderWord[],
105
+ engine: ProviderEngine,
106
+ opts: ProviderTranscriptOptions = {}
107
+ ): string | null {
108
+ if (!sidecarRelFor(asset, 'transcript')) return null;
109
+ const t = providerWordsToTranscript(words, asset, engine, opts);
110
+ if (t.words.length === 0) return null;
111
+ return writeTranscriptSidecar(designRoot, t);
112
+ }
113
+
114
+ /**
115
+ * The transcription branch of the generate-jobs route: persist the words of a finished cloud job
116
+ * next to its source. Never throws — the SRT the job already wrote is the paid-for result and must
117
+ * not be lost to a sidecar refusal; the reason comes back instead so the route can log it.
118
+ * `null` path + `skipped` = the engine returned no words (the caption path warns about that).
119
+ */
120
+ export function persistCloudTranscript(
121
+ designRoot: string,
122
+ req: { provider: string; model?: string; sourceAsset: string; lang?: string },
123
+ asset: { words?: readonly ProviderWord[]; wordTiming?: 'provider' | 'segment' }
124
+ ): { path: string | null; skipped?: string } {
125
+ const id = engineIdForProvider(req.provider);
126
+ if (!id) return { path: null, skipped: `${req.provider} is not a transcription engine` };
127
+ if (!asset.words || asset.words.length === 0)
128
+ return { path: null, skipped: 'the engine returned no word timings' };
129
+ try {
130
+ const path = writeProviderTranscript(
131
+ designRoot,
132
+ req.sourceAsset,
133
+ asset.words,
134
+ { id, timing: asset.wordTiming ?? 'provider', ...(req.model ? { model: req.model } : {}) },
135
+ { lang: req.lang }
136
+ );
137
+ return path ? { path } : { path: null, skipped: 'no usable words or no sidecar-able source' };
138
+ } catch (err) {
139
+ return { path: null, skipped: err instanceof Error ? err.message : String(err) };
140
+ }
141
+ }
@@ -1,6 +1,143 @@
1
1
  {
2
2
  "$schema": "./whats-new.schema.json",
3
3
  "entries": [
4
+ {
5
+ "id": "accounts-and-where-projects-live",
6
+ "version": "2.1.1",
7
+ "date": "2026-11-09",
8
+ "kind": "feature",
9
+ "title": "See where each project lives",
10
+ "summary": "The account button now shows which account a project uses, where it lives and whether it connects, with Sign in again one click away when a sign-in stops working. Link your server sends a folder to your own server and asks first when that server already holds work, and Settings opens with This project.",
11
+ "surface": "design-ui"
12
+ },
13
+ {
14
+ "id": "own-server-sync-fixes-2-1-1",
15
+ "version": "2.1.1",
16
+ "date": "2026-11-09",
17
+ "kind": "fix",
18
+ "title": "Signing in to your own server works again",
19
+ "summary": "Sign-in to your team's own server finishes again after the browser hands back. Files the owner removed for good stay removed, and a first link keeps your comments, sticky notes and layout.",
20
+ "surface": "design-ui"
21
+ },
22
+ {
23
+ "id": "generation-spend-limits",
24
+ "version": "2.1.0",
25
+ "date": "2026-11-08",
26
+ "kind": "improvement",
27
+ "title": "Spend limits on generated media",
28
+ "summary": "Generating pictures, sound and video now stops at $2 per session or $10 per day, and asks you first before a single job over $1. Change the amounts in Settings › Advanced › Generation spend.",
29
+ "learnMore": "https://maude.sh/docs/design",
30
+ "surface": "design-ui"
31
+ },
32
+ {
33
+ "id": "assets-added-by-everywhere",
34
+ "version": "2.1.0",
35
+ "date": "2026-11-08",
36
+ "kind": "improvement",
37
+ "title": "Who added a picture, for everyone",
38
+ "summary": "Assets › details now say who added a picture on every teammate's Mac, not just the one that imported it.",
39
+ "surface": "design-ui"
40
+ },
41
+ {
42
+ "id": "annotations-checklist",
43
+ "version": "2.1.0",
44
+ "date": "2026-11-08",
45
+ "kind": "feature",
46
+ "title": "Checklists on the canvas",
47
+ "summary": "Turn a sticky into a to-do list: tick entries off with a click or Space, add the next with Enter, and see a 3/5 count. Two people can tick at once, every tick undoes with Command-Z, and Claude can write and tick entries too.",
48
+ "learnMore": "https://maude.sh/docs/desktop/window",
49
+ "surface": "design-ui"
50
+ },
51
+ {
52
+ "id": "video-clip-export-warnings",
53
+ "version": "2.1.0",
54
+ "date": "2026-11-08",
55
+ "kind": "fix",
56
+ "title": "Clips that would export without sound are flagged",
57
+ "summary": "An iPhone HEVC clip, a clip with a variable frame rate or one with extra sound tracks is now flagged when you bring it in, in its details and in the export notice. Ask the AI for a video proxy to get an H.264 copy that exports with sound; your original stays as it is.",
58
+ "learnMore": "https://maude.sh/docs/design/video",
59
+ "surface": "design-ui"
60
+ },
61
+ {
62
+ "id": "retire-v1-ai-bracket",
63
+ "version": "2.1.0",
64
+ "date": "2026-11-08",
65
+ "kind": "fix",
66
+ "title": "AI edits from an old terminal plugin",
67
+ "summary": "A 1.x design plugin in a terminal announced its edits in an old way that could not mark them as the AI's, so they landed as yours. Maude now turns that old way down. Update the plugin (/plugin marketplace update maude) and its hooks mark every AI edit again.",
68
+ "learnMore": "https://maude.sh/docs/moving-from-1",
69
+ "surface": "design-ui"
70
+ },
71
+ {
72
+ "id": "comment-reattach-element",
73
+ "version": "2.1.0",
74
+ "date": "2026-11-08",
75
+ "kind": "feature",
76
+ "title": "Move a comment to another element",
77
+ "summary": "A comment that lost its element, or was placed on the wrong one, can be re-attached. Open the comment, press Re-attach, then click the element it belongs on. Comments on repeated elements also stay on the right one when rows are added or removed above them.",
78
+ "learnMore": "https://maude.sh/docs/desktop/window",
79
+ "surface": "design-ui"
80
+ },
81
+ {
82
+ "id": "design-video-plugin",
83
+ "version": "2.1.0",
84
+ "date": "2026-11-08",
85
+ "kind": "improvement",
86
+ "title": "Video is its own plugin in a terminal",
87
+ "summary": "Reels, clip analysis, video canvases and Lottie export now live in a separate design-video plugin, so a terminal session without video stays lighter. In Maude nothing changes. From a terminal, install design-video@maude next to design; the commands are now /design-video:reel, /design-video:video-analyze and /design-video:to-lottie.",
88
+ "learnMore": "https://maude.sh/docs/design-video",
89
+ "surface": "design-ui"
90
+ },
91
+ {
92
+ "id": "only-drag-adopts",
93
+ "version": "2.1.0",
94
+ "date": "2026-11-08",
95
+ "kind": "fix",
96
+ "title": "Only a drag puts an object into a section",
97
+ "summary": "Fan out, align, distribute and the arrow keys no longer drop an object into a section it ends up over. Drag it in when you want it there.",
98
+ "learnMore": "https://maude.sh/docs/desktop/window",
99
+ "surface": "design-ui"
100
+ },
101
+ {
102
+ "id": "object-menu-add-comment",
103
+ "version": "2.1.0",
104
+ "date": "2026-11-08",
105
+ "kind": "improvement",
106
+ "title": "Add comment, right in the object menu",
107
+ "summary": "Right-click an object and Add comment is now near the top, under Ask AI, instead of inside Advanced.",
108
+ "learnMore": "https://maude.sh/docs/desktop/window",
109
+ "surface": "design-ui"
110
+ },
111
+ {
112
+ "id": "preview-bar-only-with-back",
113
+ "version": "2.1.0",
114
+ "date": "2026-11-08",
115
+ "kind": "improvement",
116
+ "title": "A quieter Preview",
117
+ "summary": "The Previewing bar at the top of Preview now shows only after you follow a link in the design, to take you back. A plain switch to Preview changes only the toolbar.",
118
+ "learnMore": "https://maude.sh/docs/desktop/window",
119
+ "surface": "design-ui"
120
+ },
121
+ {
122
+ "id": "preview-keeps-panels",
123
+ "version": "2.1.0",
124
+ "date": "2026-11-08",
125
+ "kind": "improvement",
126
+ "title": "Preview keeps your panels open",
127
+ "summary": "Switching to Preview now changes only the toolbar. The Canvases and AI chat panels stay where you left them, and ⌘\\ still hides every panel.",
128
+ "learnMore": "https://maude.sh/docs/desktop/window",
129
+ "surface": "design-ui"
130
+ },
131
+ {
132
+ "id": "text-esc-keeps-words",
133
+ "version": "2.1.0",
134
+ "date": "2026-11-08",
135
+ "kind": "improvement",
136
+ "title": "Esc keeps the words you typed",
137
+ "summary": "When you edit a text on the canvas, Esc now ends the edit and keeps what you typed, for every text. Press ⌘Z to put the old words back.",
138
+ "learnMore": "https://maude.sh/docs/design",
139
+ "surface": "design-ui"
140
+ },
4
141
  {
5
142
  "id": "canvas-pages-view",
6
143
  "version": "2.0.7",
@@ -112,6 +112,7 @@ export const FORBIDDEN_ROUTE_PREFIXES: ReadonlyArray<{
112
112
  '/_api/export-jobs',
113
113
  '/_api/export-jobs/download',
114
114
  '/_api/export-jobs/retry',
115
+ '/_api/export-jobs/cancel',
115
116
  '/_api/export-history',
116
117
  '/_api/export-assemble',
117
118
  '/_api/export-warmup',
package/apps/studio/ws.ts CHANGED
@@ -440,6 +440,11 @@ export function createWs(
440
440
  // (queued → running → done/failed). Same privileged-data class + snapshot
441
441
  // shape as export:job; the notification center reuses the export-center chrome.
442
442
  ctx.bus.on('generate:job', (job: unknown) => broadcast({ type: 'generate:job', payload: job }));
443
+ // A paid generation above the person's confirm threshold waits for their OK (generation/spend.ts): the app
444
+ // shows a card with Approve / Not now. Amount + plain words only — never a prompt or a key.
445
+ ctx.bus.on('generate:approval', (a: unknown) =>
446
+ broadcast({ type: 'generate:approval', payload: a })
447
+ );
443
448
 
444
449
  // HMR broadcaster — turns fs:any change events into `canvas-hmr` messages.
445
450
  // The iframe-side client (in _shell.html) decides reload strategy from `mode`.