@1agh/maude 2.0.3 → 2.0.6

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 (242) hide show
  1. package/README.md +6 -5
  2. package/apps/hub/src/project-transactions/kernel.mjs +10 -1
  3. package/apps/studio/access/filters.ts +12 -5
  4. package/apps/studio/access/known-canvases.ts +24 -1
  5. package/apps/studio/access/refused-inputs.ts +89 -0
  6. package/apps/studio/access/request.ts +0 -1
  7. package/apps/studio/acp/adapter-stderr.ts +43 -13
  8. package/apps/studio/acp/background-tasks.ts +155 -0
  9. package/apps/studio/acp/bridge.ts +44 -5
  10. package/apps/studio/acp/connected-fact.ts +15 -4
  11. package/apps/studio/acp/index.ts +14 -5
  12. package/apps/studio/actions/agents.ts +10 -0
  13. package/apps/studio/actions/defs/app.ts +12 -0
  14. package/apps/studio/actions/defs/view.ts +12 -0
  15. package/apps/studio/actions.manifest.json +25 -1
  16. package/apps/studio/actions.parity.json +13 -1
  17. package/apps/studio/annotations/ui/element-node.tsx +139 -54
  18. package/apps/studio/annotations/ui/lod.tsx +1 -1
  19. package/apps/studio/annotations/ui/text-style.ts +1 -1
  20. package/apps/studio/annotations-layer.tsx +0 -12
  21. package/apps/studio/api.ts +73 -24
  22. package/apps/studio/artboard-live-gate.tsx +267 -0
  23. package/apps/studio/artboard-live.ts +336 -0
  24. package/apps/studio/artboard-webgl.ts +668 -0
  25. package/apps/studio/bin/_agent-browser-bin.mjs +8 -0
  26. package/apps/studio/bin/_agent-browser-safe.mjs +2 -1
  27. package/apps/studio/bin/_canvas-reasons.mjs +34 -0
  28. package/apps/studio/bin/_ds-check-live.mjs +37 -0
  29. package/apps/studio/bin/_ds-check.mjs +4 -1
  30. package/apps/studio/bin/_ds-prove-judge.mjs +167 -0
  31. package/apps/studio/bin/_ds-prove-playwright.mjs +183 -105
  32. package/apps/studio/bin/_import-asset.mjs +2 -1
  33. package/apps/studio/bin/_perf-probe.mjs +2 -1
  34. package/apps/studio/bin/_png-playwright.mjs +10 -1
  35. package/apps/studio/bin/_pw-launch.mjs +14 -0
  36. package/apps/studio/bin/_studio-verb.mjs +24 -3
  37. package/apps/studio/bin/_thumb-blank.mjs +70 -0
  38. package/apps/studio/bin/_thumb-cover.mjs +35 -0
  39. package/apps/studio/bin/_thumbs-playwright.mjs +93 -13
  40. package/apps/studio/bin/ds-check.sh +5 -1
  41. package/apps/studio/bin/perf.sh +11 -1
  42. package/apps/studio/bin/server-up.sh +7 -2
  43. package/apps/studio/bin/smoke.sh +19 -0
  44. package/apps/studio/boot-progress.ts +31 -0
  45. package/apps/studio/canvas-build-sandbox.ts +275 -42
  46. package/apps/studio/canvas-build-worker.ts +10 -0
  47. package/apps/studio/canvas-create.ts +24 -0
  48. package/apps/studio/canvas-lib.tsx +131 -12
  49. package/apps/studio/canvas-module-cache.ts +93 -0
  50. package/apps/studio/canvas-source/errors.ts +39 -0
  51. package/apps/studio/canvas-source/waiting.ts +290 -0
  52. package/apps/studio/client/actions/shell-key-handlers.js +5 -0
  53. package/apps/studio/client/app.jsx +19 -9
  54. package/apps/studio/client/canvas-url.js +13 -0
  55. package/apps/studio/client/github.js +23 -3
  56. package/apps/studio/client/home/HomeAccounts.jsx +262 -0
  57. package/apps/studio/client/home/Shelves.jsx +4 -3
  58. package/apps/studio/client/home/home-accounts-model.js +121 -0
  59. package/apps/studio/client/home/home-api.js +36 -19
  60. package/apps/studio/client/home/home-app.jsx +141 -40
  61. package/apps/studio/client/home/home-model.js +172 -6
  62. package/apps/studio/client/home/home.css +169 -5
  63. package/apps/studio/client/home/shell-mode.js +8 -1
  64. package/apps/studio/client/hooks/use-git-actions.jsx +2 -1
  65. package/apps/studio/client/hooks/use-project-data.jsx +2 -0
  66. package/apps/studio/client/hooks/use-shell-core.jsx +3 -0
  67. package/apps/studio/client/hooks/use-tabs.jsx +64 -35
  68. package/apps/studio/client/index-loader.ts +23 -3
  69. package/apps/studio/client/panels/ChatPanel.jsx +49 -57
  70. package/apps/studio/client/panels/CreateProject.jsx +19 -5
  71. package/apps/studio/client/panels/DiffView.jsx +314 -248
  72. package/apps/studio/client/panels/TeamProjects.jsx +119 -69
  73. package/apps/studio/client/panels/acp-runtime.js +25 -0
  74. package/apps/studio/client/panels/caps-cache.js +46 -0
  75. package/apps/studio/client/panels/chat-finish.js +66 -0
  76. package/apps/studio/client/shell/frame-cap.js +53 -0
  77. package/apps/studio/client/shell/viewport.jsx +45 -8
  78. package/apps/studio/client/styles/_index.css +2 -0
  79. package/apps/studio/client/tree/tree.jsx +48 -21
  80. package/apps/studio/client/v2/access/access-client.js +2 -0
  81. package/apps/studio/client/v2/access/access-host.jsx +12 -1
  82. package/apps/studio/client/v2/access/trashed-banner.jsx +6 -3
  83. package/apps/studio/client/v2/ai/Advanced.jsx +12 -0
  84. package/apps/studio/client/v2/ai/BackgroundStrip.jsx +120 -0
  85. package/apps/studio/client/v2/ai/Composer.jsx +27 -10
  86. package/apps/studio/client/v2/ai/StoppedDivider.jsx +2 -1
  87. package/apps/studio/client/v2/ai/ai-run.css +87 -3
  88. package/apps/studio/client/v2/ai/background-model.js +113 -0
  89. package/apps/studio/client/v2/ai/needs-you-store.js +2 -1
  90. package/apps/studio/client/v2/ai/run-api.js +7 -3
  91. package/apps/studio/client/v2/ai/runs-store.js +2 -1
  92. package/apps/studio/client/v2/annotations/vote-store.js +11 -5
  93. package/apps/studio/client/v2/assets/asset-state-lane.js +6 -3
  94. package/apps/studio/client/v2/assets/assets-bus.js +10 -8
  95. package/apps/studio/client/v2/assets/browse-view.jsx +2 -0
  96. package/apps/studio/client/v2/assets/ds-library-view.jsx +47 -0
  97. package/apps/studio/client/v2/assets/spotlight-model.js +75 -0
  98. package/apps/studio/client/v2/assets/spotlight.css +153 -0
  99. package/apps/studio/client/v2/assets/spotlight.jsx +199 -0
  100. package/apps/studio/client/v2/assets/tile-menu.jsx +3 -1
  101. package/apps/studio/client/v2/assets/tile.jsx +3 -0
  102. package/apps/studio/client/v2/assets/use-assets.js +2 -1
  103. package/apps/studio/client/v2/canvases/canvases-panel.jsx +13 -2
  104. package/apps/studio/client/v2/canvases/covers.js +11 -5
  105. package/apps/studio/client/v2/canvases/folder-ask.js +139 -0
  106. package/apps/studio/client/v2/canvases/folder-dialogs.jsx +150 -0
  107. package/apps/studio/client/v2/canvases/trash-canvas.js +10 -2
  108. package/apps/studio/client/v2/canvases/trash-queue.js +152 -0
  109. package/apps/studio/client/v2/canvases/use-canvas-index.js +42 -18
  110. package/apps/studio/client/v2/canvases/use-pins.js +2 -1
  111. package/apps/studio/client/v2/code/canvas-error-card.jsx +70 -5
  112. package/apps/studio/client/v2/code/canvas-imports-card.jsx +15 -14
  113. package/apps/studio/client/v2/code/canvas-imports-words.js +44 -0
  114. package/apps/studio/client/v2/code/canvas-waiting-card.jsx +128 -0
  115. package/apps/studio/client/v2/code/canvas-waiting.js +164 -0
  116. package/apps/studio/client/v2/code/code-bus.js +5 -0
  117. package/apps/studio/client/v2/code/code.css +67 -0
  118. package/apps/studio/client/v2/code/use-canvas-source.js +19 -4
  119. package/apps/studio/client/v2/create/NameDialog.jsx +4 -2
  120. package/apps/studio/client/v2/create/name-dialog.css +10 -0
  121. package/apps/studio/client/v2/ds/advanced-host.jsx +11 -23
  122. package/apps/studio/client/v2/ds/ds-refresh.js +161 -0
  123. package/apps/studio/client/v2/ds/library-host.jsx +45 -45
  124. package/apps/studio/client/v2/ds/make-host.jsx +13 -12
  125. package/apps/studio/client/v2/ds/off-system-host.jsx +18 -16
  126. package/apps/studio/client/v2/ds/review-host.jsx +7 -1
  127. package/apps/studio/client/v2/ds/truth-host.jsx +15 -14
  128. package/apps/studio/client/v2/ds/upgrade-host.jsx +26 -10
  129. package/apps/studio/client/v2/empty/arriving.jsx +29 -12
  130. package/apps/studio/client/v2/empty/empty-host.jsx +8 -2
  131. package/apps/studio/client/v2/empty/not-local.jsx +31 -1
  132. package/apps/studio/client/v2/empty/use-empty-canvas.js +10 -1
  133. package/apps/studio/client/v2/export/last-finished.js +2 -1
  134. package/apps/studio/client/v2/history/branch-actions.js +13 -9
  135. package/apps/studio/client/v2/history/git-advanced.jsx +8 -1
  136. package/apps/studio/client/v2/history/git-model.js +21 -5
  137. package/apps/studio/client/v2/history/git-parts.jsx +76 -43
  138. package/apps/studio/client/v2/history/history.css +6 -0
  139. package/apps/studio/client/v2/left-panel/assets-panel.jsx +87 -10
  140. package/apps/studio/client/v2/left-panel/use-trash.js +2 -1
  141. package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +100 -33
  142. package/apps/studio/client/v2/onboarding/HubSheet.jsx +51 -83
  143. package/apps/studio/client/v2/onboarding/onboarding-model.js +10 -6
  144. package/apps/studio/client/v2/presence/faces.jsx +42 -14
  145. package/apps/studio/client/v2/present/order-notes-artboards.js +2 -1
  146. package/apps/studio/client/v2/search/search-recent.js +3 -1
  147. package/apps/studio/client/v2/search/search-remote.js +6 -4
  148. package/apps/studio/client/v2/settings/connections-model.js +1 -1
  149. package/apps/studio/client/v2/shell/account-card.jsx +10 -4
  150. package/apps/studio/client/v2/shell/canvas-crash-guard.js +137 -0
  151. package/apps/studio/client/v2/shell/github-signin-host.jsx +42 -0
  152. package/apps/studio/client/v2/shell/menu-runner.js +12 -0
  153. package/apps/studio/client/v2/shell/occlusion-insets.js +14 -2
  154. package/apps/studio/client/v2/shell/project-account-card.jsx +203 -0
  155. package/apps/studio/client/v2/shell/project-account-model.js +182 -0
  156. package/apps/studio/client/v2/shell/recovery-store.js +2 -1
  157. package/apps/studio/client/v2/shell/served-routes.js +120 -0
  158. package/apps/studio/client/v2/shell/share-cluster-host.jsx +139 -11
  159. package/apps/studio/client/v2/shell/share-cluster.css +58 -0
  160. package/apps/studio/client/v2/shell/share-cluster.jsx +26 -7
  161. package/apps/studio/client/v2/shell/shell-activity.js +19 -0
  162. package/apps/studio/client/v2/shell/team-switch.js +94 -0
  163. package/apps/studio/client/v2/shell/too-heavy-card.jsx +38 -0
  164. package/apps/studio/client/v2/shell/use-account.js +8 -1
  165. package/apps/studio/client/v2/shell/use-occluded-insets.js +3 -0
  166. package/apps/studio/client/v2/sync-states/conflict-card.jsx +7 -2
  167. package/apps/studio/client/v2/undo/use-undo-projection.jsx +3 -1
  168. package/apps/studio/cloud/endpoints.ts +23 -1
  169. package/apps/studio/collab/persistence.ts +9 -1
  170. package/apps/studio/collab/registry.ts +32 -0
  171. package/apps/studio/collab/room.ts +8 -0
  172. package/apps/studio/config-reload-wire.ts +53 -0
  173. package/apps/studio/dist/client.bundle.js +1098 -1102
  174. package/apps/studio/dist/styles.css +1 -1
  175. package/apps/studio/ds/board/specimen.tsx +12 -1
  176. package/apps/studio/ds/canvas-cli.ts +58 -2
  177. package/apps/studio/ds/check.ts +26 -1
  178. package/apps/studio/ds/cli.ts +7 -3
  179. package/apps/studio/ds/convert.ts +34 -6
  180. package/apps/studio/ds/ds-verb.ts +13 -0
  181. package/apps/studio/ds/post-build.ts +38 -0
  182. package/apps/studio/ds/upgrade-apply.ts +27 -5
  183. package/apps/studio/ds/upgrade-cli.ts +22 -2
  184. package/apps/studio/ds/upgrade-prove.ts +198 -15
  185. package/apps/studio/ds/upgrade-stage.ts +4 -1
  186. package/apps/studio/editing/minimap-context.tsx +3 -3
  187. package/apps/studio/editing/page-activity.ts +251 -0
  188. package/apps/studio/editing/rotate-handle.tsx +9 -5
  189. package/apps/studio/editing/sticky-name.tsx +4 -4
  190. package/apps/studio/history/restore-artboard-action.ts +40 -0
  191. package/apps/studio/history/trash.ts +6 -0
  192. package/apps/studio/home/accounts.ts +87 -0
  193. package/apps/studio/home/hub.ts +77 -175
  194. package/apps/studio/home/index-reader.ts +24 -2
  195. package/apps/studio/home/routes.ts +66 -8
  196. package/apps/studio/http.ts +131 -68
  197. package/apps/studio/index-flight.ts +40 -0
  198. package/apps/studio/managed-projects.ts +52 -24
  199. package/apps/studio/migrate/hub.ts +7 -1
  200. package/apps/studio/routes/canvas-source.ts +44 -2
  201. package/apps/studio/routes/ds-convert.ts +18 -0
  202. package/apps/studio/routes/history.ts +28 -5
  203. package/apps/studio/routes/hub-signin.ts +115 -0
  204. package/apps/studio/routes/index.ts +4 -0
  205. package/apps/studio/routes/table.ts +7 -0
  206. package/apps/studio/routes/trash.ts +19 -1
  207. package/apps/studio/server.ts +19 -10
  208. package/apps/studio/sync/accepted-cold-start.ts +54 -16
  209. package/apps/studio/sync/accepted-link.ts +9 -4
  210. package/apps/studio/sync/asset-push.ts +146 -23
  211. package/apps/studio/sync/asset-state.ts +3 -2
  212. package/apps/studio/sync/code-module-consent.ts +74 -0
  213. package/apps/studio/sync/file-ledger.ts +35 -0
  214. package/apps/studio/sync/file-membership.ts +28 -3
  215. package/apps/studio/sync/file-plane.ts +483 -86
  216. package/apps/studio/sync/file-pull.ts +304 -33
  217. package/apps/studio/sync/hub-browser-signin.ts +377 -0
  218. package/apps/studio/sync/hub-link.ts +1 -2
  219. package/apps/studio/sync/hub-text-undo.ts +30 -10
  220. package/apps/studio/sync/index.ts +381 -161
  221. package/apps/studio/sync/journal-client.ts +94 -5
  222. package/apps/studio/sync/pending-deletes.ts +100 -0
  223. package/apps/studio/sync/projection.ts +121 -14
  224. package/apps/studio/sync/pull-pacer.ts +160 -0
  225. package/apps/studio/sync/pull-priority.ts +119 -0
  226. package/apps/studio/sync/seed-progress.ts +58 -3
  227. package/apps/studio/sync/status.ts +3 -1
  228. package/apps/studio/sync/transaction-client.ts +71 -6
  229. package/apps/studio/sync/workspace-signin.ts +6 -256
  230. package/apps/studio/sync/writer-registry.ts +5 -1
  231. package/apps/studio/thumbs/service.ts +12 -2
  232. package/apps/studio/thumbs/validate.ts +7 -0
  233. package/apps/studio/ui-prefs-migrate.ts +4 -0
  234. package/apps/studio/video-comp.tsx +23 -0
  235. package/apps/studio/video-links-overlay.tsx +3 -2
  236. package/apps/studio/whats-new.json +126 -0
  237. package/cli/lib/bash-guard.mjs +13 -1
  238. package/cli/lib/design-help.gen.mjs +1 -1
  239. package/cli/lib/design-hook.mjs +20 -0
  240. package/cli/lib/studio-locate.mjs +35 -10
  241. package/cli/lib/workspace-plan.mjs +14 -0
  242. package/package.json +8 -8
@@ -186,6 +186,10 @@ export const KEY_CLASS: Readonly<Record<string, KeyRule>> = {
186
186
  class: 'v2-new',
187
187
  note: 'v2 (S8.5b): Advanced › Where it renders › Video, per Mac; new in v2, nothing to migrate.',
188
188
  },
189
+ 'maude-acp-caps': {
190
+ class: 'v2-new',
191
+ note: '2.0.5 (client/panels/caps-cache.js, `maude-acp-caps:<project>`): the last AI capability set, a per-Mac UI cache so the Advanced fold draws without starting Claude; never synced, new in v2, nothing to migrate.',
192
+ },
189
193
  'maude-ds-upgrade-': {
190
194
  class: 'v2-new',
191
195
  note: 'Not a storage key: ds/upgrade-stage.ts STAGE_PREFIX names the staged-copy temp dirs; the scanner reads any *_PREFIX const.',
@@ -29,6 +29,7 @@ import {
29
29
  useState,
30
30
  useSyncExternalStore,
31
31
  } from 'react';
32
+ import { useArtboardActive } from './artboard-live-gate.tsx';
32
33
  import { canvasModeStore } from './bridge/canvas-mode-store.ts';
33
34
  import { videoLabelTail } from './editing/video-label.ts';
34
35
  import { resolvedPoster } from './kinds/meta.ts';
@@ -581,6 +582,28 @@ export function VideoComp({
581
582
  ? 0
582
583
  : clamp(liveTimelineFrame.get(compId) ?? posterFrame, 0, maxFrame);
583
584
 
585
+ // 2.0.5 — a comp in a sleeping artboard (offscreen, or the canvas zoomed out to its overview) stops
586
+ // decoding: pause it, and play it again on wake only if WE paused it. Never in a capture (always live).
587
+ const live = useArtboardActive();
588
+ const pausedAsleep = useRef(false);
589
+ useEffect(() => {
590
+ const p = ref.current;
591
+ if (!p) return;
592
+ try {
593
+ if (!live) {
594
+ if (p.isPlaying()) {
595
+ p.pause();
596
+ pausedAsleep.current = true;
597
+ }
598
+ } else if (pausedAsleep.current) {
599
+ pausedAsleep.current = false;
600
+ p.play();
601
+ }
602
+ } catch {
603
+ /* Player transitional — the next change settles it */
604
+ }
605
+ }, [live]);
606
+
584
607
  // Register with the seek bridge for the lifetime of this mount.
585
608
  useEffect(() => {
586
609
  installMaudeSeekBridge();
@@ -18,6 +18,7 @@
18
18
  import { useSyncExternalStore } from 'react';
19
19
 
20
20
  import { useArtboardsContext } from './canvas-lib.tsx';
21
+ import { activeInterval } from './editing/page-activity.ts';
21
22
  import { type LinkGroup, linkGroups, unlinkedBase } from './video/link-groups.ts';
22
23
 
23
24
  export interface PillRect {
@@ -162,8 +163,8 @@ function subscribe(fn: () => void): () => void {
162
163
  : (window as unknown as Record<symbol, PlayheadHubLike | undefined>);
163
164
  const hub = w?.[HUB_KEY];
164
165
  if (!hub) {
165
- const t = setInterval(fn, 500);
166
- return () => clearInterval(t);
166
+ // 2.0.4: only while the page is in use — this ran 2×/s on every idle canvas (page-activity.ts)
167
+ return activeInterval(fn, 500);
167
168
  }
168
169
  hub.listeners.add(fn);
169
170
  return () => void hub.listeners.delete(fn);
@@ -1,6 +1,132 @@
1
1
  {
2
2
  "$schema": "./whats-new.schema.json",
3
3
  "entries": [
4
+ {
5
+ "id": "heavy-canvases-stay-up",
6
+ "version": "2.0.5",
7
+ "date": "2026-11-05",
8
+ "kind": "fix",
9
+ "title": "Heavy canvases no longer crash the window",
10
+ "summary": "Only the artboards near where you look run live. Offscreen artboards, and every artboard when you zoom far out, pause their 3D scenes, videos and animations and keep their last picture, so a canvas with dozens of scenes pans smoothly. The design system canvas draws each page when you reach it. A canvas that still crashes twice opens with Show visible artboards only instead of crashing again. Exports still draw everything.",
11
+ "surface": "design-ui"
12
+ },
13
+ {
14
+ "id": "home-accounts",
15
+ "version": "2.0.5",
16
+ "date": "2026-11-05",
17
+ "kind": "feature",
18
+ "title": "All your accounts on Home",
19
+ "summary": "Click your face on Home to see every account on this Mac: Maude Cloud, your team servers and GitHub. Sign out of one, or add another. Each project now says how it is connected and as whom, and a project you have in two places shows once.",
20
+ "surface": "design-ui"
21
+ },
22
+ {
23
+ "id": "project-account-card",
24
+ "version": "2.0.5",
25
+ "date": "2026-11-05",
26
+ "kind": "feature",
27
+ "title": "See which account a project uses",
28
+ "summary": "Click your face at the top right to see how this project is signed in: a team server, Maude Cloud or GitHub, which account, and which profile on this Mac. Sign out or switch accounts from there, a team server too, and sign in with GitHub. Click the sync word, such as Syncing… or Offline, to open its details.",
29
+ "surface": "design-ui"
30
+ },
31
+ {
32
+ "id": "home-covers-and-shared-empty",
33
+ "version": "2.0.5",
34
+ "date": "2026-11-05",
35
+ "kind": "fix",
36
+ "title": "Better covers and a calmer empty Shared card on Home",
37
+ "summary": "A canvas whose first artboard is a thin header now gets a cover of its real content, whiteboards show their board, and blank pictures no longer stick as covers. The empty Shared with you card is a single quiet line instead of tilted placeholders.",
38
+ "surface": "design-ui"
39
+ },
40
+ {
41
+ "id": "board-zoom-stays-smooth",
42
+ "version": "2.0.5",
43
+ "date": "2026-11-05",
44
+ "kind": "fix",
45
+ "title": "Zooming a busy board stays smooth",
46
+ "summary": "A board with hundreds of notes no longer stutters when you zoom in the desktop app. The notes keep the same soft shadow.",
47
+ "surface": "design-ui"
48
+ },
49
+ {
50
+ "id": "ai-starts-when-you-do",
51
+ "version": "2.0.5",
52
+ "date": "2026-11-05",
53
+ "kind": "improvement",
54
+ "title": "AI starts when you start typing",
55
+ "summary": "Reopening or reloading Maude no longer starts Claude in the background. It starts the moment you click into the message box.",
56
+ "surface": "design-ui"
57
+ },
58
+ {
59
+ "id": "faster-steadier-uploads",
60
+ "version": "2.0.5",
61
+ "date": "2026-11-05",
62
+ "kind": "fix",
63
+ "title": "Faster, steadier uploads",
64
+ "summary": "A big project's pictures and media now go up to your team server a few at a time, so one slow file no longer holds up the rest, and a file that timed out gets a second try. Sync details counts only the files that still have to move, and files in deeply nested folders, like a 3D asset pack, now sync too. A server too old to take them lists each one with the reason.",
65
+ "surface": "design-ui"
66
+ },
67
+ {
68
+ "id": "first-download-stops-repeating",
69
+ "version": "2.0.5",
70
+ "date": "2026-11-05",
71
+ "kind": "fix",
72
+ "title": "A first download from an older team server finishes",
73
+ "summary": "Getting a project from a team server that runs an older Maude no longer asks for the same files over and over. A file that can't be fetched waits with a reason instead of being asked for on every pass, and a server that doesn't answer is asked again a minute later.",
74
+ "surface": "design-ui"
75
+ },
76
+ {
77
+ "id": "team-server-browser-signin",
78
+ "version": "2.0.4",
79
+ "date": "2026-11-05",
80
+ "kind": "feature",
81
+ "title": "Sign in to a team server in your browser",
82
+ "summary": "Signing in to your own team server now opens that server's sign-in page in your browser, with every way it offers, such as your company account. When you're done, you're back in the app. The app no longer asks for a team server's password.",
83
+ "surface": "design-ui"
84
+ },
85
+ {
86
+ "id": "canvas-says-what-it-waits-for",
87
+ "version": "2.0.4",
88
+ "date": "2026-11-05",
89
+ "kind": "fix",
90
+ "title": "A canvas says what it is waiting for",
91
+ "summary": "A canvas that is still downloading shows how far along it is and opens by itself when its files arrive. One that can't open yet, or a design system that is still building, says why instead of \"can't be drawn\".",
92
+ "surface": "design-ui"
93
+ },
94
+ {
95
+ "id": "faster-first-download",
96
+ "version": "2.0.4",
97
+ "date": "2026-11-05",
98
+ "kind": "fix",
99
+ "title": "A new Mac gets a project much faster",
100
+ "summary": "Opening a big project on another Mac for the first time downloads it several times faster, and the canvas you have open comes first. A cloud project's shared code now arrives too, so canvases that use it draw everywhere.",
101
+ "surface": "design-ui"
102
+ },
103
+ {
104
+ "id": "less-memory-and-rest",
105
+ "version": "2.0.4",
106
+ "date": "2026-11-05",
107
+ "kind": "fix",
108
+ "title": "Less memory, quieter when idle",
109
+ "summary": "Maude keeps far less in memory as you move between canvases and uses almost no CPU when you're not working. Up to three projects run at once, and a project you haven't used for 15 minutes rests until you come back to it.",
110
+ "surface": "design-ui"
111
+ },
112
+ {
113
+ "id": "folders-trash-spotlight",
114
+ "version": "2.0.4",
115
+ "date": "2026-11-05",
116
+ "kind": "fix",
117
+ "title": "Folders, trash and a bigger look",
118
+ "summary": "New folder and Rename work again. Moving canvases to the trash shows right away and handles several in a row. Double-click a picture or video in Assets to see it large.",
119
+ "surface": "design-ui"
120
+ },
121
+ {
122
+ "id": "ai-background-work-shown",
123
+ "version": "2.0.4",
124
+ "date": "2026-11-05",
125
+ "kind": "feature",
126
+ "title": "See what the AI runs in the background",
127
+ "summary": "When the AI starts helpers or long commands, the chat shows what is still running and for how long, until it's done.",
128
+ "surface": "design-ui"
129
+ },
4
130
  {
5
131
  "id": "lfs-placeholder-fix",
6
132
  "version": "2.0.3",
@@ -1245,7 +1245,19 @@ export function classifyBash(command, { cwd, designRoot, root, sessionRoot = nul
1245
1245
  // a .design path the script names, runtime (`.design/_…`) ones excepted unless guarded
1246
1246
  // `.design` in any case (a case alias on APFS); a symlink to the root the script reaches
1247
1247
  // by another name is not seen here — residual, the script is text, not a path
1248
- const all = [...text.matchAll(/\.design(?:\/([^\s'"`),;]*))?/gi)].map((m) => m[1] ?? '');
1248
+ // fix/ds-convert-hooks-cli #12 — only a `.design` path segment (never `ctx.designRoot`), and
1249
+ // only one that can be THIS project's: an absolute (or `~`) path that resolves outside its
1250
+ // design root — a throwaway copy under /private/tmp/…/before/.design/ — is another tree.
1251
+ // A relative or computed prefix still counts (the script may chdir anywhere).
1252
+ const all = [...text.matchAll(/([^\s'"`(),;=]*?)\.design(?![\w-])(?:\/([^\s'"`),;]*))?/gi)]
1253
+ .filter((m) => {
1254
+ const pre = m[1] ?? '';
1255
+ if (!/^(?:\/|~\/)/.test(pre) || /[$*?[{]/.test(pre)) return true;
1256
+ const abs = pre.startsWith('~/') ? join(homedir(), pre.slice(2)) : pre;
1257
+ const rel = relative(realRoot(), realpathDeep(`${abs}.design${m[2] ? `/${m[2]}` : ''}`));
1258
+ return !(rel === '..' || rel.startsWith(`..${sep}`) || isAbsolute(rel));
1259
+ })
1260
+ .map((m) => m[2] ?? '');
1249
1261
  const runtime = (after) => {
1250
1262
  const first = after.split('/')[0] ?? '';
1251
1263
  return first.startsWith('_') || first.startsWith('.');
@@ -1,6 +1,6 @@
1
1
  // GENERATED by scripts/gen-actions.mjs from apps/studio/actions/verbs.ts — DO NOT EDIT BY HAND.
2
2
  // What `maude design help` prints under the static usage (contract V2-1.11 §5.7 rule 6).
3
- // manifest e8a66e17ea3e
3
+ // manifest 3b10dc94b530
4
4
 
5
5
  export const DESIGN_VERB_TIERS_HELP =
6
6
  "Verbs by permission tier (generated from actions.manifest.json, contract V2-1.11 §5.3):\n auto No prompt in the Maude chat (effect none/project):\n prep · bootstrap-check · slug · server-up · runtime-health · screenshot · smoke\n visual-sanity · perf · canvas-rects · canvas-errors · canvas-source\n read-annotations · svg-optimize · asset-sweep · draw-proof · probe-footage\n smart-frames · agent-browser-safe · chat-open · serve · status · index · assets\n help · check · place · layout-check · open · history list · history show\n history diff · history object · trash list · comments list · exports list\n exports again · runs list · runs stop · logs · sync status · annotate · canvas-edit\n handoff · import-asset · import-tokens · ingest-footage · photo-adjust\n transcribe-local · beats · captions list · captions add · captions export · captions\n cut-words · cut-to-beat · reel-place · ds-check · ds-upgrade analyse\n ds-upgrade plan · ds-upgrade validate · ds-upgrade status · ds-upgrade stage\n ds-upgrade prove · ds-upgrade discard · ds-upgrade cancel · trash move\n trash restore · ds status · ds usage · ds check-system · ds revisions\n prompt Shows the permission card:\n hook · export · curl-local · draw-build · to-lottie · generate · audio-search\n fetch-asset · ensure-browser · transcribe · import-figma · import-brand\n photo-bg-remove · describe · init · ds-upgrade · bulk-deletes · history restore\n trash · history undo · history name · exports · sync resync · sync · runs · ds\n comments reply · comments resolve · comments reopen · comments add · comments\n history\n human For people in a terminal. Never in the AI allow list:\n trash clear · link · adopt · unlink · detach\n Every studio capability's file or verb: the design plugin's studio-actions skill.\n";
@@ -1367,6 +1367,13 @@ async function preBash(ctx, input) {
1367
1367
  // the guard can't read every language, so post-bash binds what changed during the call. No
1368
1368
  // snapshot for those (no named file): the studio maps the change to every artboard it touched.
1369
1369
  if (!writers.length && !(toolUseId && bashMayWrite(command, manifestVerbs(ctx)))) return null;
1370
+ // fix/ds-convert-hooks-cli #11 — a call whose only writers are `maude design` verbs (nothing else in
1371
+ // it can write: no interpreter, no redirect into the design root). What such a verb writes besides
1372
+ // the canvases the command names (a `ds convert`'s revisions + head.json, the imports `ds switch`
1373
+ // rewrites, a board sync lands meanwhile) is Maude's write, not the AI's: post-bash binds only the
1374
+ // named canvases it snapshotted below.
1375
+ const claiming = claimingVerbs(ctx);
1376
+ const verbOnly = writers.length > 0 && claiming !== null && !bashMayWrite(command, claiming);
1370
1377
  const snaps = {};
1371
1378
  for (const w of writers) {
1372
1379
  for (const word of w.cmd.words) {
@@ -1408,6 +1415,7 @@ async function preBash(ctx, input) {
1408
1415
  JSON.stringify({
1409
1416
  at,
1410
1417
  snaps,
1418
+ ...(verbOnly ? { verbOnly: true } : {}),
1411
1419
  ...bg,
1412
1420
  ...(interp ? { interp: true, files, hashes, ...(all ? { all: true } : {}) } : {}),
1413
1421
  })
@@ -1529,6 +1537,7 @@ async function bindBashWrites(ctx, toolUseId, mark, by, since) {
1529
1537
  const files = designWritesSince(ctx.designRoot, since);
1530
1538
  if (!files.length) return;
1531
1539
  for (const rel of files) {
1540
+ if (!aiMayHaveWritten(mark, rel)) continue;
1532
1541
  let at;
1533
1542
  try {
1534
1543
  at = statSync(join(ctx.designRoot, rel)).mtimeMs;
@@ -1557,6 +1566,16 @@ async function bindBashWrites(ctx, toolUseId, mark, by, since) {
1557
1566
  );
1558
1567
  }
1559
1568
 
1569
+ /**
1570
+ * fix/ds-convert-hooks-cli #11 — may the AI's own call have written `rel`? A call of `maude design`
1571
+ * verbs only (`verbOnly`) wrote, as the AI's, just the canvases its command named (`snaps`); the rest
1572
+ * a verb or sync wrote during it is Maude's: it is not bound, and no shell mark keeps a later edit
1573
+ * from taking it as the run's base, so Stop never holds the AI to it.
1574
+ */
1575
+ const aiMayHaveWritten = (mark, rel) =>
1576
+ mark?.verbOnly !== true ||
1577
+ (!!mark.snaps && typeof mark.snaps === 'object' && Object.hasOwn(mark.snaps, rel));
1578
+
1560
1579
  /**
1561
1580
  * p8-sec2-attrib A1 — what a call that cannot claim may have written: the canvases it named, plus every
1562
1581
  * canvas lane whose bytes changed against the hashes pre-bash took (none taken: by mtime alone).
@@ -1610,6 +1629,7 @@ async function drainBackground(ctx, studio) {
1610
1629
  }
1611
1630
  // the write is the newest call's whose window it falls in
1612
1631
  const owner = marks.find((x) => at === undefined || sinceOf(x) <= at) ?? marks[0];
1632
+ if (!aiMayHaveWritten(owner.m, rel)) continue;
1613
1633
  const by = typeof owner.m.by === 'string' ? owner.m.by : 'main';
1614
1634
  recordTouch(ctx, rel, { by, via: 'bash', artboards: null, at });
1615
1635
  markShellWrite(ctx, rel); // F4 — no base taken after this write
@@ -39,26 +39,51 @@ export function rootIdentity(root) {
39
39
 
40
40
  /** `{ port, base }` of the studio serving `root`, or null. Never throws. */
41
41
  export async function locateStudio(root, { timeoutMs = 300 } = {}) {
42
+ return (await probeStudio(root, { timeoutMs })).studio ?? null;
43
+ }
44
+
45
+ /**
46
+ * fix/ds-convert-hooks-cli #13 — `locateStudio` that tells "not running" from "busy": a live
47
+ * server whose `/_health` did not answer within `timeoutMs` is retried (`attempts` in all, with
48
+ * `retryDelayMs` between) and, still silent, reported `{ state: 'busy' }` — a studio under load
49
+ * (an export, a big sync) is not "no studio". `{ studio }`, `{ state: 'none' }` or
50
+ * `{ state: 'busy' }`. Never throws.
51
+ */
52
+ export async function probeStudio(
53
+ root,
54
+ { timeoutMs = 300, attempts = 1, retryDelayMs = 250 } = {}
55
+ ) {
56
+ let port;
42
57
  try {
43
58
  const info = JSON.parse(readFileSync(join(root, DESIGN_REL, '_server.json'), 'utf8'));
44
- const port = Number(info?.port);
45
- if (!Number.isInteger(port) || port < 1 || port > 65535) return null;
59
+ port = Number(info?.port);
60
+ if (!Number.isInteger(port) || port < 1 || port > 65535) return { state: 'none' };
46
61
  if (Number.isInteger(info?.pid)) {
47
62
  try {
48
63
  process.kill(info.pid, 0);
49
64
  } catch (e) {
50
- if (e?.code !== 'EPERM') return null; // a dead server's file
65
+ if (e?.code !== 'EPERM') return { state: 'none' }; // a dead server's file
51
66
  }
52
67
  }
53
- const base = `http://127.0.0.1:${port}`;
54
- const res = await fetch(`${base}/_health`, { signal: AbortSignal.timeout(timeoutMs) });
55
- if (!res.ok) return null;
56
- const health = await res.json();
57
- if (health?.app !== 'design' || health.rootId !== rootIdentity(root)) return null;
58
- return { port, base, health };
59
68
  } catch {
60
- return null;
69
+ return { state: 'none' };
70
+ }
71
+ const base = `http://127.0.0.1:${port}`;
72
+ for (let i = 0; i < Math.max(1, attempts); i++) {
73
+ if (i > 0) await new Promise((r) => setTimeout(r, retryDelayMs));
74
+ try {
75
+ const res = await fetch(`${base}/_health`, { signal: AbortSignal.timeout(timeoutMs) });
76
+ if (!res.ok) return { state: 'none' };
77
+ const health = await res.json();
78
+ if (health?.app !== 'design' || health.rootId !== rootIdentity(root))
79
+ return { state: 'none' };
80
+ return { studio: { port, base, health } };
81
+ } catch (e) {
82
+ // only a timeout is "busy": a refused connection is no server on that port
83
+ if (e?.name !== 'TimeoutError' && e?.name !== 'AbortError') return { state: 'none' };
84
+ }
61
85
  }
86
+ return { state: 'busy' };
62
87
  }
63
88
 
64
89
  /** POST JSON to a located studio. `{ status, body }`, or null on any transport failure. */
@@ -629,6 +629,20 @@ services:
629
629
  # without this the project's only record is its current bytes.
630
630
  MAUDE_REPO_DIR: /repo
631
631
  ${envLines(hubEnv)}
632
+ # Tuning for a big project on a small or shared host (docs: Workspace →
633
+ # Big projects on small hosts). Set a value in .env to change it.
634
+ # How long the studio may boot without progress, and its hard ceiling.
635
+ # Defaults written out: an empty value read as 0 by older hub images.
636
+ MAUDE_STUDIO_READY_MS: \${MAUDE_STUDIO_READY_MS:-60000}
637
+ MAUDE_STUDIO_READY_CEILING_MS: \${MAUDE_STUDIO_READY_CEILING_MS:-600000}
638
+ # The sandboxed canvas build: its hard ceiling, how long one request waits
639
+ # for it, its memory limit and how many built canvases are kept. Empty
640
+ # means the built-in default (90000 / 20000 / 768 / 64).
641
+ MAUDE_CANVAS_BUILD_TIMEOUT_MS: \${MAUDE_CANVAS_BUILD_TIMEOUT_MS:-}
642
+ MAUDE_CANVAS_BUILD_WAIT_MS: \${MAUDE_CANVAS_BUILD_WAIT_MS:-}
643
+ MAUDE_CANVAS_BUILD_RSS_MB: \${MAUDE_CANVAS_BUILD_RSS_MB:-}
644
+ MAUDE_CANVAS_CACHE_ENTRIES: \${MAUDE_CANVAS_CACHE_ENTRIES:-}
645
+ MAUDE_CANVAS_MODULE_CACHE_MB: \${MAUDE_CANVAS_MODULE_CACHE_MB:-}
632
646
  volumes:
633
647
  - hub-data:/data
634
648
  # A SEPARATE volume from hub-data on purpose: the checkout is the one
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1agh/maude",
3
- "version": "2.0.3",
3
+ "version": "2.0.6",
4
4
  "description": "Marketplace of Claude Code plugins by Michal Dovrtěl: `design` (canvas-first design iteration) + `flow` (generic agentic workflow loop with .ai second brain). Ships the `maude` CLI (with `mdcc` legacy alias) to scaffold workspace, run the design dev server, and manage configs.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -65,13 +65,13 @@
65
65
  "test:e2e:desktop:parity:cloud": "pnpm --filter @maude/desktop-e2e e2e:parity:cloud"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@1agh/maude-darwin-arm64": "2.0.3",
69
- "@1agh/maude-darwin-x64": "2.0.3",
70
- "@1agh/maude-linux-arm64": "2.0.3",
71
- "@1agh/maude-linux-arm64-musl": "2.0.3",
72
- "@1agh/maude-linux-x64": "2.0.3",
73
- "@1agh/maude-linux-x64-musl": "2.0.3",
74
- "@1agh/maude-win32-x64": "2.0.3"
68
+ "@1agh/maude-darwin-arm64": "2.0.6",
69
+ "@1agh/maude-darwin-x64": "2.0.6",
70
+ "@1agh/maude-linux-arm64": "2.0.6",
71
+ "@1agh/maude-linux-arm64-musl": "2.0.6",
72
+ "@1agh/maude-linux-x64": "2.0.6",
73
+ "@1agh/maude-linux-x64-musl": "2.0.6",
74
+ "@1agh/maude-win32-x64": "2.0.6"
75
75
  },
76
76
  "files": [
77
77
  "cli",