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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/apps/studio/acp/index.ts +35 -2
  2. package/apps/studio/acp/login-state.ts +3 -2
  3. package/apps/studio/actions/defs/chat.ts +4 -1
  4. package/apps/studio/actions.manifest.json +1 -1
  5. package/apps/studio/agent-runs.ts +3 -0
  6. package/apps/studio/ai/lease-home.ts +11 -1
  7. package/apps/studio/ai/run-lifecycle.ts +17 -0
  8. package/apps/studio/ai/runs.ts +64 -12
  9. package/apps/studio/api.ts +31 -5
  10. package/apps/studio/bridge/dgn-protocol.ts +13 -0
  11. package/apps/studio/canvas-imports.ts +23 -4
  12. package/apps/studio/canvas-lib.tsx +7 -0
  13. package/apps/studio/client/app.jsx +4 -0
  14. package/apps/studio/client/export-lane.js +4 -2
  15. package/apps/studio/client/fonts/LICENSE-Inter-Tight.txt +93 -0
  16. package/apps/studio/client/fonts/LICENSE-Inter.txt +93 -0
  17. package/apps/studio/client/fonts/LICENSE-JetBrains-Mono.txt +93 -0
  18. package/apps/studio/client/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
  19. package/apps/studio/client/fonts/inter-latin-wght-normal.woff2 +0 -0
  20. package/apps/studio/client/fonts/inter-tight-latin-ext-wght-normal.woff2 +0 -0
  21. package/apps/studio/client/fonts/inter-tight-latin-wght-normal.woff2 +0 -0
  22. package/apps/studio/client/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  23. package/apps/studio/client/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  24. package/apps/studio/client/hooks/use-canvas-bridge.jsx +6 -0
  25. package/apps/studio/client/index.html +0 -3
  26. package/apps/studio/client/panels/ChatPanel.jsx +10 -2
  27. package/apps/studio/client/panels/acp-runtime.js +14 -0
  28. package/apps/studio/client/styles/_index.css +2 -0
  29. package/apps/studio/client/styles/fonts.css +63 -0
  30. package/apps/studio/client/system/system-view.jsx +6 -2
  31. package/apps/studio/client/tree-row-menu.jsx +4 -0
  32. package/apps/studio/client/v2/ai/Advanced.jsx +23 -7
  33. package/apps/studio/client/v2/ai/AttachMenu.jsx +4 -0
  34. package/apps/studio/client/v2/ai/ChatList.jsx +7 -1
  35. package/apps/studio/client/v2/ai/ConnectSheet.jsx +75 -4
  36. package/apps/studio/client/v2/ai/NeedsYouSlot.jsx +42 -8
  37. package/apps/studio/client/v2/ai/NotReady.jsx +24 -3
  38. package/apps/studio/client/v2/ai/RunList.jsx +4 -0
  39. package/apps/studio/client/v2/ai/RunSurface.jsx +14 -4
  40. package/apps/studio/client/v2/ai/ScopeChip.jsx +4 -0
  41. package/apps/studio/client/v2/ai/Working.jsx +13 -1
  42. package/apps/studio/client/v2/ai/activity-line.js +390 -0
  43. package/apps/studio/client/v2/ai/activity-store.js +45 -0
  44. package/apps/studio/client/v2/ai/advanced-model.js +62 -12
  45. package/apps/studio/client/v2/ai/ai-list-advanced.css +7 -0
  46. package/apps/studio/client/v2/ai/ai-run.css +19 -0
  47. package/apps/studio/client/v2/ai/ai-send.js +6 -2
  48. package/apps/studio/client/v2/ai/connect-flow.js +29 -8
  49. package/apps/studio/client/v2/ai/needs-you.css +18 -0
  50. package/apps/studio/client/v2/ai/needs-you.js +10 -0
  51. package/apps/studio/client/v2/ai/ring-relay.js +11 -1
  52. package/apps/studio/client/v2/ai/use-activity-line.js +81 -0
  53. package/apps/studio/client/v2/annotations/templates-panel.jsx +4 -0
  54. package/apps/studio/client/v2/assets/kinds-chip.jsx +1 -1
  55. package/apps/studio/client/v2/assets/place-asset.js +20 -1
  56. package/apps/studio/client/v2/assets/tile-menu.jsx +1 -1
  57. package/apps/studio/client/v2/canvases/canvases-panel.jsx +5 -1
  58. package/apps/studio/client/v2/canvases/row-menu.jsx +4 -2
  59. package/apps/studio/client/v2/ds/review.css +2 -0
  60. package/apps/studio/client/v2/empty/ai-drafting.jsx +78 -0
  61. package/apps/studio/client/v2/empty/empty-host.jsx +17 -0
  62. package/apps/studio/client/v2/empty/empty.css +98 -0
  63. package/apps/studio/client/v2/export/advanced/render.jsx +5 -2
  64. package/apps/studio/client/v2/export/export-copy.js +11 -4
  65. package/apps/studio/client/v2/export/export-sheet.jsx +6 -2
  66. package/apps/studio/client/v2/export/exports-model.js +13 -0
  67. package/apps/studio/client/v2/export/exports-panel.jsx +4 -2
  68. package/apps/studio/client/v2/export/job-row.jsx +4 -0
  69. package/apps/studio/client/v2/export/other-formats.jsx +7 -1
  70. package/apps/studio/client/v2/export/sections/batch-model.js +3 -2
  71. package/apps/studio/client/v2/export/sections/batch.jsx +20 -4
  72. package/apps/studio/client/v2/inspector/sections/colour-popover.jsx +4 -0
  73. package/apps/studio/client/v2/inspector/token-chip.jsx +4 -0
  74. package/apps/studio/client/v2/kinds/SizePicker.jsx +4 -0
  75. package/apps/studio/client/v2/presence/faces.jsx +4 -0
  76. package/apps/studio/client/v2/share/role-menu.jsx +7 -1
  77. package/apps/studio/client/v2/share/share-model.js +20 -1
  78. package/apps/studio/client/v2/share/share-sheet.jsx +6 -4
  79. package/apps/studio/client/v2/shell/account-card.jsx +7 -1
  80. package/apps/studio/client/v2/shell/canvas-pointer.js +21 -0
  81. package/apps/studio/client/v2/shell/mode-switch.jsx +4 -0
  82. package/apps/studio/client/v2/shell/project-pill.jsx +4 -0
  83. package/apps/studio/client/v2/shell/save-status.js +10 -1
  84. package/apps/studio/client/v2/shell/share-cluster-host.jsx +2 -0
  85. package/apps/studio/client/v2/shell/share-cluster.jsx +6 -1
  86. package/apps/studio/client/v2/shell/use-dismiss-outside.js +14 -6
  87. package/apps/studio/client/v2/timeline/joins/transition-picker.jsx +7 -1
  88. package/apps/studio/client/v2/undo/undo-history.jsx +7 -1
  89. package/apps/studio/cloud/endpoints.ts +31 -1
  90. package/apps/studio/dist/client.bundle.js +921 -921
  91. package/apps/studio/dist/comment-mount.js +1 -1
  92. package/apps/studio/dist/styles.css +1 -1
  93. package/apps/studio/editing/canvas-pointer.ts +29 -0
  94. package/apps/studio/routes/cloud-move.ts +7 -4
  95. package/apps/studio/sync/ctl-provider.ts +4 -1
  96. package/apps/studio/sync/file-ledger.ts +12 -0
  97. package/apps/studio/sync/file-membership.ts +28 -0
  98. package/apps/studio/sync/file-plane.ts +119 -5
  99. package/apps/studio/sync/index.ts +55 -1
  100. package/apps/studio/sync/journal-client.ts +12 -0
  101. package/apps/studio/sync/poke.ts +30 -0
  102. package/apps/studio/sync/presentation.ts +6 -1
  103. package/apps/studio/sync/projection.ts +7 -0
  104. package/apps/studio/sync/retry-after.ts +27 -0
  105. package/apps/studio/sync/status.ts +9 -1
  106. package/apps/studio/video-play-overlay.tsx +67 -12
  107. package/apps/studio/whats-new.json +78 -6
  108. package/package.json +8 -8
@@ -4,6 +4,11 @@
4
4
  // out of reach; the button is its own hit target — one click plays or pauses, and the press never reaches the selection
5
5
  // handlers (`.dc-vplay` is in their chrome lists). Space still plays the selected clip (editing/video-play.ts).
6
6
  //
7
+ // rc3 walk (r4-1): a paused clip that has not started also shows WebKit's own big centre ▶ (and Chromium's), and in Edit
8
+ // a click on it only selected — the canvas takes the press. The layer draws its own centre ▶ exactly over it (the same
9
+ // 60 px disc, measured in a WKWebView), so the first click there plays; a click anywhere else on the clip still selects.
10
+ // It goes once the clip has started, when the native one does too.
11
+ //
7
12
  // Drawn as a body-level fixed layer (like asset-placeholder.tsx's frames), never inside the design, so it is never exported
8
13
  // and never part of the artboard's content. Outside the shell's frame (an export capture) nothing is drawn.
9
14
 
@@ -20,6 +25,8 @@ export const VPLAY_SELECTOR = '[data-vplay]';
20
25
  export const VPLAY_MIN = 48;
21
26
  const BTN = 30;
22
27
  const INSET = 8;
28
+ /** WebKit's (and Chromium's) start-playback disc over a paused clip: 60 px, centred, whatever the clip's size. */
29
+ export const VPLAY_CENTRE = 60;
23
30
 
24
31
  const CSS = `
25
32
  .dc-vplay-layer { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
@@ -29,6 +36,7 @@ const CSS = `
29
36
  .dc-vplay:hover { background: oklch(0.2 0.01 250 / 0.9); }
30
37
  .dc-vplay:focus-visible { outline: 2px solid oklch(0.64 0.165 238); outline-offset: 2px; }
31
38
  .dc-vplay svg { display: block; }
39
+ .dc-vplay--centre { width: ${VPLAY_CENTRE}px; height: ${VPLAY_CENTRE}px; background: oklch(0.2 0.01 250 / 0.8); box-shadow: none; }
32
40
  `;
33
41
 
34
42
  function ensureStyles(): void {
@@ -73,13 +81,31 @@ export function buttonBox(r: {
73
81
  return { left: Math.round(r.left + INSET), top: Math.round(r.top + INSET) };
74
82
  }
75
83
 
84
+ /** Where the centre ▶ sits over a clip: centred, the native disc's size; null when the clip cannot hold it. */
85
+ export function centreBox(r: {
86
+ left: number;
87
+ top: number;
88
+ width: number;
89
+ height: number;
90
+ }): { left: number; top: number } | null {
91
+ if (r.width < VPLAY_CENTRE + 2 * INSET || r.height < VPLAY_CENTRE + 2 * INSET) return null;
92
+ return {
93
+ left: Math.round(r.left + r.width / 2 - VPLAY_CENTRE / 2),
94
+ top: Math.round(r.top + r.height / 2 - VPLAY_CENTRE / 2),
95
+ };
96
+ }
97
+
76
98
  const isPlaying = (v: HTMLVideoElement): boolean => !v.paused && !v.ended;
99
+ /** The native centre ▶ is drawn only before the clip has started: so is this one. */
100
+ export const showsCentre = (v: HTMLVideoElement): boolean =>
101
+ v.paused && !v.ended && !(v.currentTime > 0);
77
102
 
78
103
  export function VideoPlayLayer({ inShell }: { inShell?: boolean } = {}): ReactElement | null {
79
104
  const sel = useSelectionSetOptional();
80
105
  const [hover, setHover] = useState<HTMLVideoElement | null>(null);
81
106
  const [, bump] = useState(0);
82
107
  const nodes = useRef(new Map<HTMLVideoElement, HTMLButtonElement>());
108
+ const centres = useRef(new Map<HTMLVideoElement, HTMLButtonElement>());
83
109
  const hoverRef = useRef<HTMLVideoElement | null>(null);
84
110
  const inside = inShell ?? (typeof window !== 'undefined' && window.parent !== window);
85
111
 
@@ -130,16 +156,20 @@ export function VideoPlayLayer({ inShell }: { inShell?: boolean } = {}): ReactEl
130
156
  const tick = () => {
131
157
  const present = canvasModeStore(window).get().mode === 'present';
132
158
  for (const v of targets) {
133
- const b = nodes.current.get(v);
134
- if (!b) continue;
135
- const at = v.isConnected && !present ? buttonBox(v.getBoundingClientRect()) : null;
136
- if (!at) {
137
- b.style.display = 'none';
138
- continue;
159
+ const rect = v.isConnected && !present ? v.getBoundingClientRect() : null;
160
+ for (const [b, at] of [
161
+ [nodes.current.get(v), rect ? buttonBox(rect) : null],
162
+ [centres.current.get(v), rect ? centreBox(rect) : null],
163
+ ] as const) {
164
+ if (!b) continue;
165
+ if (!at) {
166
+ b.style.display = 'none';
167
+ continue;
168
+ }
169
+ b.style.display = 'grid';
170
+ b.style.left = `${at.left}px`;
171
+ b.style.top = `${at.top}px`;
139
172
  }
140
- b.style.display = 'grid';
141
- b.style.left = `${at.left}px`;
142
- b.style.top = `${at.top}px`;
143
173
  }
144
174
  raf = requestAnimationFrame(tick);
145
175
  };
@@ -157,11 +187,35 @@ export function VideoPlayLayer({ inShell }: { inShell?: boolean } = {}): ReactEl
157
187
  if (!inside || typeof document === 'undefined' || targets.length === 0) return null;
158
188
  return createPortal(
159
189
  <div className="dc-vplay-layer" data-vplay-layer="" data-testid="video-play-layer">
160
- {targets.map((v) => {
190
+ {targets.flatMap((v) => {
161
191
  const playing = isPlaying(v);
162
- return (
192
+ const key = v.getAttribute('data-cd-id') ?? v.src;
193
+ const centre = showsCentre(v) ? (
194
+ <button
195
+ key={`${key}:centre`}
196
+ type="button"
197
+ className="dc-vplay dc-vplay--centre"
198
+ data-vplay=""
199
+ data-testid="video-play-centre"
200
+ aria-label="Play video"
201
+ title="Play"
202
+ ref={(el) => {
203
+ if (el) centres.current.set(v, el);
204
+ else centres.current.delete(v);
205
+ }}
206
+ onClick={(e) => {
207
+ e.stopPropagation();
208
+ toggle(v);
209
+ }}
210
+ >
211
+ <svg width="22" height="22" viewBox="0 0 14 14" aria-hidden="true" fill="currentColor">
212
+ <path d="M3.5 1.8v10.4L12 7z" />
213
+ </svg>
214
+ </button>
215
+ ) : null;
216
+ const corner = (
163
217
  <button
164
- key={v.getAttribute('data-cd-id') ?? v.src}
218
+ key={key}
165
219
  type="button"
166
220
  className="dc-vplay"
167
221
  data-vplay=""
@@ -183,6 +237,7 @@ export function VideoPlayLayer({ inShell }: { inShell?: boolean } = {}): ReactEl
183
237
  </svg>
184
238
  </button>
185
239
  );
240
+ return centre ? [corner, centre] : [corner];
186
241
  })}
187
242
  </div>,
188
243
  document.body
@@ -3,17 +3,89 @@
3
3
  "entries": [
4
4
  {
5
5
  "id": "maude-v2-canvas-window",
6
- "version": null,
7
- "date": null,
6
+ "version": "2.0.0",
7
+ "date": "2026-11-03",
8
8
  "kind": "feature",
9
9
  "title": "A new look: the canvas fills the window",
10
10
  "summary": "The canvas now fills the window, and everything else floats around it: one project menu, Home to start from, a tab per project, Share, and an AI chat panel that works on what you select. Preview adds whiteboard tools, Present shows a canvas to an audience, video artboards get a timeline, and a design system is a canvas of its own. Menu › Help › Take the tour walks through it.",
11
11
  "surface": "design-ui"
12
12
  },
13
+ {
14
+ "id": "ai-shows-what-it-is-doing",
15
+ "version": "2.0.0",
16
+ "date": "2026-11-03",
17
+ "kind": "improvement",
18
+ "title": "See what the AI is doing",
19
+ "summary": "While AI works, the chat says what it is doing right now — reading a canvas, thinking, drawing an artboard — and an empty canvas shows where the first artboard will land the moment AI starts.",
20
+ "surface": "design-ui"
21
+ },
22
+ {
23
+ "id": "claude-setup-shows-progress",
24
+ "version": "2.0.0",
25
+ "date": "2026-11-03",
26
+ "kind": "fix",
27
+ "title": "Setting up Claude shows what is happening",
28
+ "summary": "Connecting your Claude account now shows each step — installing Claude Code with a timer and how long it usually takes, then your browser opens to sign in by itself. A prompt you typed before that waits in the chat and sends itself once you are signed in.",
29
+ "surface": "design-ui"
30
+ },
31
+ {
32
+ "id": "ai-permissions-in-plain-words",
33
+ "version": "2.0.0",
34
+ "date": "2026-11-03",
35
+ "kind": "improvement",
36
+ "title": "AI permissions in plain words",
37
+ "summary": "The AI chat’s Advanced › Permissions says what AI may do without asking for each choice, and marks the one that skips every check as risky.",
38
+ "surface": "design-ui"
39
+ },
40
+ {
41
+ "id": "ai-big-canvas-ask",
42
+ "version": "2.0.0",
43
+ "date": "2026-11-03",
44
+ "kind": "fix",
45
+ "title": "AI works on canvases with hundreds of artboards",
46
+ "summary": "Asking the AI about a whole canvas with more than 200 artboards no longer leaves the chat on “AI is working” forever: it starts right away and takes each artboard as it changes it. If an ask cannot start, the chat now says why.",
47
+ "surface": "design-ui"
48
+ },
49
+ {
50
+ "id": "home-opens-dark",
51
+ "version": "2.0.0",
52
+ "date": "2026-11-03",
53
+ "kind": "fix",
54
+ "title": "Maude opens dark, never on a white window",
55
+ "summary": "The first window no longer sits white while it waits on the network: Home and every project tab draw on the dark background from the first moment, even offline.",
56
+ "surface": "design-ui"
57
+ },
58
+ {
59
+ "id": "sync-refused-files-held",
60
+ "version": "2.0.0",
61
+ "date": "2026-11-03",
62
+ "kind": "fix",
63
+ "title": "Sync stops retrying files the server refuses",
64
+ "summary": "A file the project’s server turns down is no longer sent again and again: it stays on this Mac and Sync details shows it with the server’s reason, and it is tried once more when you change it. A first sync of a big project also uses much less memory.",
65
+ "surface": "design-ui"
66
+ },
67
+ {
68
+ "id": "fonts-ship-with-maude",
69
+ "version": "2.0.0",
70
+ "date": "2026-11-03",
71
+ "kind": "improvement",
72
+ "title": "Maude’s fonts ship with the app",
73
+ "summary": "Inter, Inter Tight and JetBrains Mono now come with Maude, so the app makes no request to Google Fonts and looks the same offline.",
74
+ "surface": "design-ui"
75
+ },
76
+ {
77
+ "id": "rename-keeps-css-import",
78
+ "version": "2.0.0",
79
+ "date": "2026-11-03",
80
+ "kind": "fix",
81
+ "title": "Renaming a canvas keeps its styles",
82
+ "summary": "Renaming or moving a canvas carries its own stylesheet along and points the canvas at it, so the canvas renders right away instead of showing a “could not resolve” error.",
83
+ "surface": "design-ui"
84
+ },
13
85
  {
14
86
  "id": "fixed-artboard-full-height",
15
- "version": null,
16
- "date": null,
87
+ "version": "2.0.0",
88
+ "date": "2026-11-03",
17
89
  "kind": "fix",
18
90
  "title": "Fixed-size artboards keep their full height",
19
91
  "summary": "A fixed-size artboard no longer loses its bottom 24 px to the label: its page is exactly the size you set, so what you see on the canvas is what you export.",
@@ -21,8 +93,8 @@
21
93
  },
22
94
  {
23
95
  "id": "export-cli-and-print-pdf-dpi",
24
- "version": null,
25
- "date": null,
96
+ "version": "2.0.0",
97
+ "date": "2026-11-03",
26
98
  "kind": "fix",
27
99
  "title": "Export commands and print PDFs do what they say",
28
100
  "summary": "The export commands shown in the Export dialog work as printed: crop marks and bleed apply, numeric options like scale=2 are honoured, a bare zip export just works, and --out can be a folder. PDFs of print artboards now default to 300 dpi image quality.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1agh/maude",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0",
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.0-rc.1",
69
- "@1agh/maude-darwin-x64": "2.0.0-rc.1",
70
- "@1agh/maude-linux-arm64": "2.0.0-rc.1",
71
- "@1agh/maude-linux-arm64-musl": "2.0.0-rc.1",
72
- "@1agh/maude-linux-x64": "2.0.0-rc.1",
73
- "@1agh/maude-linux-x64-musl": "2.0.0-rc.1",
74
- "@1agh/maude-win32-x64": "2.0.0-rc.1"
68
+ "@1agh/maude-darwin-arm64": "2.0.0",
69
+ "@1agh/maude-darwin-x64": "2.0.0",
70
+ "@1agh/maude-linux-arm64": "2.0.0",
71
+ "@1agh/maude-linux-arm64-musl": "2.0.0",
72
+ "@1agh/maude-linux-x64": "2.0.0",
73
+ "@1agh/maude-linux-x64-musl": "2.0.0",
74
+ "@1agh/maude-win32-x64": "2.0.0"
75
75
  },
76
76
  "files": [
77
77
  "cli",