@1agh/maude 2.0.4 → 2.0.8

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 (272) hide show
  1. package/apps/hub/src/project-transactions/kernel.mjs +10 -1
  2. package/apps/studio/access/closure.ts +156 -16
  3. package/apps/studio/access/filters.ts +39 -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/actions/agents.ts +59 -0
  7. package/apps/studio/actions/ctx.ts +3 -0
  8. package/apps/studio/actions/defs/app.ts +12 -0
  9. package/apps/studio/actions/defs/sync.ts +13 -0
  10. package/apps/studio/actions/defs/view.ts +59 -3
  11. package/apps/studio/actions/keymap.gen.ts +35 -0
  12. package/apps/studio/actions/menu.ts +2 -0
  13. package/apps/studio/actions/types.ts +3 -1
  14. package/apps/studio/actions.manifest.json +148 -1
  15. package/apps/studio/actions.parity.json +31 -1
  16. package/apps/studio/annotations/ui/ai-seen.tsx +4 -3
  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/ride.ts +2 -1
  20. package/apps/studio/annotations/ui/text-style.ts +1 -1
  21. package/apps/studio/annotations-context-toolbar.tsx +5 -4
  22. package/apps/studio/annotations-layer.tsx +4 -15
  23. package/apps/studio/api.ts +425 -128
  24. package/apps/studio/artboard-activity-overlay.tsx +4 -4
  25. package/apps/studio/artboard-ai-copies.tsx +4 -4
  26. package/apps/studio/artboard-freeze.ts +108 -0
  27. package/apps/studio/artboard-live-gate.tsx +636 -0
  28. package/apps/studio/artboard-live.ts +831 -0
  29. package/apps/studio/artboard-placeholder.ts +197 -0
  30. package/apps/studio/artboard-still-raster.ts +485 -0
  31. package/apps/studio/artboard-still-warmup.ts +221 -0
  32. package/apps/studio/artboard-still.ts +1188 -0
  33. package/apps/studio/artboard-webgl.ts +669 -0
  34. package/apps/studio/asset-placeholder.tsx +237 -132
  35. package/apps/studio/asset-upload-bars.tsx +4 -4
  36. package/apps/studio/bin/_agent-browser-bin.mjs +8 -0
  37. package/apps/studio/bin/_agent-browser-safe.mjs +2 -1
  38. package/apps/studio/bin/_canvas-reasons.mjs +34 -0
  39. package/apps/studio/bin/_ds-check-live.mjs +37 -0
  40. package/apps/studio/bin/_ds-check.mjs +4 -1
  41. package/apps/studio/bin/_ds-prove-judge.mjs +167 -0
  42. package/apps/studio/bin/_ds-prove-playwright.mjs +183 -105
  43. package/apps/studio/bin/_import-asset.mjs +2 -1
  44. package/apps/studio/bin/_perf-probe-open.mjs +364 -0
  45. package/apps/studio/bin/_perf-probe.mjs +2 -1
  46. package/apps/studio/bin/_perf-shared.mjs +12 -7
  47. package/apps/studio/bin/_pw-launch.mjs +26 -1
  48. package/apps/studio/bin/_studio-verb.mjs +24 -3
  49. package/apps/studio/bin/_thumb-blank.mjs +70 -0
  50. package/apps/studio/bin/_thumb-cover.mjs +35 -0
  51. package/apps/studio/bin/_thumbs-playwright.mjs +89 -12
  52. package/apps/studio/bin/ds-check.sh +5 -1
  53. package/apps/studio/bin/perf.sh +30 -1
  54. package/apps/studio/bin/server-up.sh +7 -2
  55. package/apps/studio/bin/smoke.sh +19 -0
  56. package/apps/studio/bridge/dgn-protocol.ts +35 -0
  57. package/apps/studio/canvas-build-sandbox.ts +69 -13
  58. package/apps/studio/canvas-camera.ts +90 -0
  59. package/apps/studio/canvas-comment-mount.tsx +9 -9
  60. package/apps/studio/canvas-lib.tsx +289 -44
  61. package/apps/studio/canvas-pages-view.tsx +465 -0
  62. package/apps/studio/canvas-pages.ts +305 -0
  63. package/apps/studio/canvas-rows.ts +62 -0
  64. package/apps/studio/canvas-shell.tsx +62 -16
  65. package/apps/studio/canvas-theme-icons.tsx +41 -0
  66. package/apps/studio/canvas-theme-pill.tsx +15 -6
  67. package/apps/studio/canvas-theme.ts +12 -11
  68. package/apps/studio/client/app.jsx +7 -0
  69. package/apps/studio/client/canvas-url.js +36 -1
  70. package/apps/studio/client/home/HomeAccounts.jsx +262 -0
  71. package/apps/studio/client/home/Shelves.jsx +4 -3
  72. package/apps/studio/client/home/home-accounts-model.js +121 -0
  73. package/apps/studio/client/home/home-api.js +6 -0
  74. package/apps/studio/client/home/home-app.jsx +141 -40
  75. package/apps/studio/client/home/home-model.js +172 -6
  76. package/apps/studio/client/home/home.css +169 -5
  77. package/apps/studio/client/home/shell-mode.js +8 -1
  78. package/apps/studio/client/hooks/canvas-origin-probe.js +34 -0
  79. package/apps/studio/client/hooks/use-action-keys.jsx +3 -1
  80. package/apps/studio/client/hooks/use-canvas-bridge.jsx +1 -1
  81. package/apps/studio/client/hooks/use-palette-and-panels.jsx +23 -6
  82. package/apps/studio/client/hooks/use-photo-and-timeline.jsx +16 -8
  83. package/apps/studio/client/hooks/use-project-data.jsx +13 -2
  84. package/apps/studio/client/hooks/use-shell-core.jsx +19 -9
  85. package/apps/studio/client/index-loader.ts +41 -21
  86. package/apps/studio/client/inspector/inspector-panel.jsx +35 -14
  87. package/apps/studio/client/panels/ChatPanel.jsx +27 -20
  88. package/apps/studio/client/panels/CreateProject.jsx +19 -5
  89. package/apps/studio/client/panels/caps-cache.js +46 -0
  90. package/apps/studio/client/shell/viewport.jsx +66 -22
  91. package/apps/studio/client/tree/tree.jsx +17 -0
  92. package/apps/studio/client/v2/access/access-client.js +2 -0
  93. package/apps/studio/client/v2/access/access-host.jsx +12 -1
  94. package/apps/studio/client/v2/access/trashed-banner.jsx +6 -3
  95. package/apps/studio/client/v2/ai/Advanced.jsx +12 -0
  96. package/apps/studio/client/v2/ai/Composer.jsx +27 -10
  97. package/apps/studio/client/v2/canvases/canvases-panel.jsx +24 -0
  98. package/apps/studio/client/v2/canvases/use-canvas-index.js +24 -1
  99. package/apps/studio/client/v2/code/canvas-error-card.jsx +14 -2
  100. package/apps/studio/client/v2/code/canvas-imports-card.jsx +19 -14
  101. package/apps/studio/client/v2/code/canvas-imports-words.js +60 -0
  102. package/apps/studio/client/v2/code/canvas-waiting-card.jsx +59 -5
  103. package/apps/studio/client/v2/code/canvas-waiting.js +18 -1
  104. package/apps/studio/client/v2/code/code-bus.js +5 -0
  105. package/apps/studio/client/v2/code/code-consent-sheet.jsx +87 -0
  106. package/apps/studio/client/v2/code/code-consent.js +67 -0
  107. package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +62 -10
  108. package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +314 -5
  109. package/apps/studio/client/v2/ds/advanced-host.jsx +11 -26
  110. package/apps/studio/client/v2/ds/ds-refresh.js +161 -0
  111. package/apps/studio/client/v2/ds/library-host.jsx +45 -45
  112. package/apps/studio/client/v2/ds/make-host.jsx +13 -15
  113. package/apps/studio/client/v2/ds/off-system-host.jsx +18 -19
  114. package/apps/studio/client/v2/ds/review-host.jsx +7 -1
  115. package/apps/studio/client/v2/ds/truth-host.jsx +15 -17
  116. package/apps/studio/client/v2/ds/upgrade-host.jsx +26 -10
  117. package/apps/studio/client/v2/history/branch-actions.js +13 -9
  118. package/apps/studio/client/v2/history/git-advanced.jsx +8 -1
  119. package/apps/studio/client/v2/history/git-model.js +3 -1
  120. package/apps/studio/client/v2/history/git-parts.jsx +16 -1
  121. package/apps/studio/client/v2/layers/artboard-layers.jsx +24 -5
  122. package/apps/studio/client/v2/layers/layers-request.js +49 -0
  123. package/apps/studio/client/v2/left-panel/canvases-pinned.jsx +93 -3
  124. package/apps/studio/client/v2/left-panel/ds-boards.js +39 -0
  125. package/apps/studio/client/v2/left-panel/left-panel-model.js +13 -0
  126. package/apps/studio/client/v2/left-panel/left-panel.css +24 -0
  127. package/apps/studio/client/v2/presence/faces.jsx +42 -14
  128. package/apps/studio/client/v2/shell/account-card.jsx +10 -4
  129. package/apps/studio/client/v2/shell/canvas-crash-guard.js +172 -0
  130. package/apps/studio/client/v2/shell/canvas-mode.js +17 -1
  131. package/apps/studio/client/v2/shell/floating-panels.css +37 -1
  132. package/apps/studio/client/v2/shell/github-signin-host.jsx +42 -0
  133. package/apps/studio/client/v2/shell/menu-runner.js +11 -0
  134. package/apps/studio/client/v2/shell/mode-switch.jsx +14 -3
  135. package/apps/studio/client/v2/shell/opening-skeleton.js +118 -0
  136. package/apps/studio/client/v2/shell/opening-skeleton.jsx +103 -0
  137. package/apps/studio/client/v2/shell/pages-pick.js +49 -0
  138. package/apps/studio/client/v2/shell/project-account-card.jsx +203 -0
  139. package/apps/studio/client/v2/shell/project-account-model.js +182 -0
  140. package/apps/studio/client/v2/shell/project-menu-model.js +3 -0
  141. package/apps/studio/client/v2/shell/share-cluster-host.jsx +140 -11
  142. package/apps/studio/client/v2/shell/share-cluster.css +58 -0
  143. package/apps/studio/client/v2/shell/share-cluster.jsx +26 -7
  144. package/apps/studio/client/v2/shell/shell-parity.json +8 -0
  145. package/apps/studio/client/v2/shell/team-switch.js +94 -0
  146. package/apps/studio/client/v2/shell/too-heavy-card.jsx +38 -0
  147. package/apps/studio/client/v2/shell/use-account.js +8 -1
  148. package/apps/studio/client/v2/shell/use-canvas-mode-lane.js +30 -0
  149. package/apps/studio/collab/persistence.ts +9 -1
  150. package/apps/studio/collab/registry.ts +32 -0
  151. package/apps/studio/collab/room.ts +8 -0
  152. package/apps/studio/comments-overlay.tsx +12 -11
  153. package/apps/studio/config-reload-wire.ts +56 -0
  154. package/apps/studio/config.schema.json +6 -0
  155. package/apps/studio/context.ts +37 -1
  156. package/apps/studio/dist/client.bundle.js +1198 -1198
  157. package/apps/studio/dist/comment-mount.js +2 -2
  158. package/apps/studio/dist/styles.css +1 -1
  159. package/apps/studio/ds/board/board.css +6 -0
  160. package/apps/studio/ds/board/ds-bar.tsx +21 -3
  161. package/apps/studio/ds/board/specimen.tsx +16 -2
  162. package/apps/studio/ds/board/template.ts +39 -19
  163. package/apps/studio/ds/canvas-cli.ts +58 -2
  164. package/apps/studio/ds/check.ts +26 -1
  165. package/apps/studio/ds/cli.ts +14 -4
  166. package/apps/studio/ds/component-list.ts +2 -1
  167. package/apps/studio/ds/convert.ts +34 -6
  168. package/apps/studio/ds/default.ts +6 -1
  169. package/apps/studio/ds/ds-resolver.ts +58 -8
  170. package/apps/studio/ds/ds-verb.ts +13 -0
  171. package/apps/studio/ds/engine.ts +3 -1
  172. package/apps/studio/ds/folder-systems.ts +199 -0
  173. package/apps/studio/ds/pairing-css.ts +2 -1
  174. package/apps/studio/ds/post-build.ts +38 -0
  175. package/apps/studio/ds/rename.ts +10 -3
  176. package/apps/studio/ds/shell-fallbacks.ts +2 -1
  177. package/apps/studio/ds/upgrade-apply.ts +27 -5
  178. package/apps/studio/ds/upgrade-cli.ts +22 -2
  179. package/apps/studio/ds/upgrade-prove.ts +198 -15
  180. package/apps/studio/ds/upgrade-stage.ts +10 -3
  181. package/apps/studio/editing/ai-point-ring.tsx +4 -4
  182. package/apps/studio/editing/ai-scope-outline.tsx +4 -4
  183. package/apps/studio/editing/align-bar.tsx +4 -4
  184. package/apps/studio/editing/anchor-report.ts +3 -2
  185. package/apps/studio/editing/artboard-handles.tsx +4 -4
  186. package/apps/studio/editing/corner-dots.tsx +4 -4
  187. package/apps/studio/editing/crop-mode.tsx +4 -4
  188. package/apps/studio/editing/drop-chip.tsx +4 -4
  189. package/apps/studio/editing/empty-report.ts +3 -2
  190. package/apps/studio/editing/focus-model.tsx +4 -4
  191. package/apps/studio/editing/gap-bands.tsx +3 -3
  192. package/apps/studio/editing/hold-rings.tsx +4 -4
  193. package/apps/studio/editing/lock-badge.tsx +3 -3
  194. package/apps/studio/editing/long-page.ts +23 -1
  195. package/apps/studio/editing/nudge.tsx +2 -2
  196. package/apps/studio/editing/page-activity.ts +4 -3
  197. package/apps/studio/editing/paste-bar.tsx +4 -4
  198. package/apps/studio/editing/pen/overlay.tsx +4 -3
  199. package/apps/studio/editing/place-freely.tsx +3 -3
  200. package/apps/studio/editing/reorder-slot.tsx +3 -3
  201. package/apps/studio/editing/selection.tsx +4 -4
  202. package/apps/studio/editing/size-ghost.tsx +4 -4
  203. package/apps/studio/editing/tab-order.tsx +4 -4
  204. package/apps/studio/editing/text-in-place.tsx +4 -4
  205. package/apps/studio/editing/undo-preview.tsx +3 -3
  206. package/apps/studio/equal-spacing-handles.tsx +3 -3
  207. package/apps/studio/frame-clock.ts +89 -0
  208. package/apps/studio/history/trash.ts +6 -0
  209. package/apps/studio/home/accounts.ts +87 -0
  210. package/apps/studio/home/index-reader.ts +24 -2
  211. package/apps/studio/home/routes.ts +19 -0
  212. package/apps/studio/http.ts +80 -34
  213. package/apps/studio/index/ds-usage.ts +4 -1
  214. package/apps/studio/index-cache.ts +272 -0
  215. package/apps/studio/inspect-overlay.tsx +4 -3
  216. package/apps/studio/inspect.ts +7 -2
  217. package/apps/studio/link-chip-overlay.tsx +4 -3
  218. package/apps/studio/measure-overlay.tsx +4 -3
  219. package/apps/studio/present/pointer-dot.tsx +3 -2
  220. package/apps/studio/present/present-media.ts +6 -2
  221. package/apps/studio/present/present-stage.tsx +3 -2
  222. package/apps/studio/preview/preview-camera.tsx +3 -2
  223. package/apps/studio/routes/ds-convert.ts +18 -0
  224. package/apps/studio/routes/sync.ts +176 -0
  225. package/apps/studio/routes/trash.ts +16 -1
  226. package/apps/studio/safe-zones-overlay.tsx +3 -2
  227. package/apps/studio/server.ts +8 -10
  228. package/apps/studio/skip-dirs.ts +103 -47
  229. package/apps/studio/studio-page-host.ts +70 -0
  230. package/apps/studio/sync/accepted-cold-start.ts +28 -13
  231. package/apps/studio/sync/asset-push.ts +146 -23
  232. package/apps/studio/sync/asset-state.ts +3 -2
  233. package/apps/studio/sync/code-module-consent.ts +86 -0
  234. package/apps/studio/sync/file-ledger.ts +24 -0
  235. package/apps/studio/sync/file-membership.ts +28 -3
  236. package/apps/studio/sync/file-plane.ts +497 -61
  237. package/apps/studio/sync/file-pull.ts +304 -33
  238. package/apps/studio/sync/held-deletes.ts +230 -0
  239. package/apps/studio/sync/hub-link.ts +1 -2
  240. package/apps/studio/sync/hubs-config.ts +59 -2
  241. package/apps/studio/sync/index.ts +405 -163
  242. package/apps/studio/sync/journal-client.ts +94 -5
  243. package/apps/studio/sync/pending-deletes.ts +100 -0
  244. package/apps/studio/sync/projection.ts +77 -12
  245. package/apps/studio/sync/seed-progress.ts +104 -3
  246. package/apps/studio/sync/settings.ts +36 -1
  247. package/apps/studio/sync/status.ts +17 -1
  248. package/apps/studio/sync/writer-registry.ts +5 -0
  249. package/apps/studio/text-caret.ts +5 -3
  250. package/apps/studio/thumbs/service.ts +12 -2
  251. package/apps/studio/thumbs/validate.ts +7 -0
  252. package/apps/studio/toolbars/toolbar-rect.ts +3 -2
  253. package/apps/studio/ui-prefs-migrate.ts +4 -0
  254. package/apps/studio/use-annotation-resize.tsx +4 -3
  255. package/apps/studio/use-artboard-drag.tsx +3 -2
  256. package/apps/studio/use-element-resize.tsx +7 -6
  257. package/apps/studio/use-grid-track-handles.tsx +5 -4
  258. package/apps/studio/use-selection-set.tsx +64 -4
  259. package/apps/studio/use-spacing-handles.tsx +7 -6
  260. package/apps/studio/video-comp.tsx +75 -39
  261. package/apps/studio/video-play-overlay.tsx +4 -3
  262. package/apps/studio/whats-new.json +99 -0
  263. package/cli/commands/design.mjs +5 -2
  264. package/cli/commands/hub.mjs +10 -1
  265. package/cli/lib/bash-guard.mjs +27 -1
  266. package/cli/lib/design-help.gen.mjs +1 -1
  267. package/cli/lib/design-hook.mjs +20 -0
  268. package/cli/lib/design-link.mjs +42 -17
  269. package/cli/lib/hub-purge.mjs +183 -0
  270. package/cli/lib/studio-locate.mjs +35 -10
  271. package/package.json +8 -8
  272. package/plugins/design/templates/_shell.html +164 -1
@@ -3,6 +3,9 @@
3
3
  import type { ActionDef } from '../types.ts';
4
4
  import { IN_CANVAS, IN_CANVAS_ANY, kb } from './_v1.ts';
5
5
 
6
+ /** 2.0.7 B2 — what ⌘K says after Preview / Present while the canvas shows Pages. */
7
+ export const PAGES_NOTE = 'switch to Canvas first';
8
+
6
9
  export const VIEW_ACTIONS: ActionDef[] = [
7
10
  {
8
11
  // V2-4.5b (CONTRACT §2 [A7], V2-1.2 §9 Q1): ⌥⌘P switches to Preview; in Preview it toggles back
@@ -15,7 +18,9 @@ export const VIEW_ACTIONS: ActionDef[] = [
15
18
  icon: 'eye',
16
19
  exec: 'canvas',
17
20
  keys: [kb('⌥⌘P', 'global', { inText: true, when: { mode: ['edit', 'preview', 'viewing'] } })],
18
- search: { keywords: ['mode', 'live', 'interact', 'edit'] },
21
+ // 2.0.7 B2 — off while the canvas shows Pages (greyed with the reason, never hidden)
22
+ enabled: { notFacts: ['pagesView'] },
23
+ search: { keywords: ['mode', 'live', 'interact', 'edit'], note: PAGES_NOTE },
19
24
  },
20
25
  {
21
26
  // S3.10a — back out of a followed link (S3-links-format §5 "Back"): the PreviewBar's "‹ Homepage". No key
@@ -400,7 +405,8 @@ export const VIEW_ACTIONS: ActionDef[] = [
400
405
  exec: 'shell',
401
406
  fromCanvas: true,
402
407
  keys: [kb('⌥⌘↵', 'global', { when: { mode: ['edit', 'viewing', 'preview'] } })],
403
- search: { keywords: ['presentation', 'slideshow', 'artboards', 'selected'] },
408
+ enabled: { notFacts: ['pagesView'] },
409
+ search: { keywords: ['presentation', 'slideshow', 'artboards', 'selected'], note: PAGES_NOTE },
404
410
  },
405
411
  {
406
412
  // S3.1 — ⇧⌥⌘↵: the same, from the first artboard in canvas order.
@@ -410,7 +416,8 @@ export const VIEW_ACTIONS: ActionDef[] = [
410
416
  exec: 'shell',
411
417
  fromCanvas: true,
412
418
  keys: [kb('⇧⌥⌘↵', 'global', { when: { mode: ['edit', 'viewing', 'preview'] } })],
413
- search: { keywords: ['presentation', 'slideshow', 'beginning', 'first'] },
419
+ enabled: { notFacts: ['pagesView'] },
420
+ search: { keywords: ['presentation', 'slideshow', 'beginning', 'first'], note: PAGES_NOTE },
414
421
  },
415
422
  {
416
423
  // S3.2b (md-keys, `present` scope): → and space go on, ← and ⇧space go back. With the canvas focused the
@@ -444,6 +451,8 @@ export const VIEW_ACTIONS: ActionDef[] = [
444
451
  label: 'Present the canvas',
445
452
  kind: 'toggle',
446
453
  exec: 'shell',
454
+ enabled: { notFacts: ['pagesView'] },
455
+ search: { note: PAGES_NOTE },
447
456
  legacy: { menu: 'Presentation Mode' },
448
457
  },
449
458
  {
@@ -550,6 +559,53 @@ export const VIEW_ACTIONS: ActionDef[] = [
550
559
  kb(`⌥⌘${n}`, 'global', { inText: true, alias: i > 0, when: IN_CANVAS_ANY })
551
560
  ),
552
561
  },
562
+ // 2.0.7 B2 (decision `v2-207-pages-view`) — Canvas | Pages beside Light | Dark on the canvas's pill: Pages shows one
563
+ // artboard at a time, filling the view, in the Present order (else the layout order). Per canvas, per Mac (the view
564
+ // file, `canvasView`). The canvas owns it (canvas-pages.ts); the shell only asks over `run-action`. Edit and Viewing
565
+ // only — Preview and Present are off while it is on (`pagesView`), and Pages does not show in them. No key.
566
+ {
567
+ id: 'view.pages',
568
+ label: 'Pages',
569
+ kind: 'toggle',
570
+ exec: 'canvas',
571
+ enabled: { facts: ['canvasOpen'], mode: ['edit', 'viewing'] },
572
+ help: { group: 'canvas', order: 60 },
573
+ search: { keywords: ['pages', 'one at a time', 'artboards', 'page', 'canvas', 'slides'] },
574
+ },
575
+ {
576
+ // PageDown / PageUp, and → / ← with nothing selected (a selection's arrows nudge it). Only in the canvas, only
577
+ // while Pages is on: anywhere else the canvas leaves the key alone.
578
+ id: 'pages.next',
579
+ label: 'Next page',
580
+ kind: 'command',
581
+ exec: 'canvas',
582
+ enabled: { facts: ['canvasOpen', 'pagesView'] },
583
+ keys: [
584
+ kb('PageDown', 'global', { when: { focus: ['canvas'], mode: ['edit', 'viewing'] } }),
585
+ kb('→', 'global', {
586
+ alias: true,
587
+ when: { focus: ['canvas'], mode: ['edit', 'viewing'], selection: ['none'] },
588
+ }),
589
+ ],
590
+ help: { group: 'canvas', order: 61 },
591
+ search: { keywords: ['pages', 'forward', 'artboard', 'page'] },
592
+ },
593
+ {
594
+ id: 'pages.prev',
595
+ label: 'Previous page',
596
+ kind: 'command',
597
+ exec: 'canvas',
598
+ enabled: { facts: ['canvasOpen', 'pagesView'] },
599
+ keys: [
600
+ kb('PageUp', 'global', { when: { focus: ['canvas'], mode: ['edit', 'viewing'] } }),
601
+ kb('←', 'global', {
602
+ alias: true,
603
+ when: { focus: ['canvas'], mode: ['edit', 'viewing'], selection: ['none'] },
604
+ }),
605
+ ],
606
+ help: { group: 'canvas', order: 62 },
607
+ search: { keywords: ['pages', 'back', 'artboard', 'page'] },
608
+ },
553
609
  // V2-4.10 — ⌘K: every panel's › Advanced fold at once (per Mac, client/v2/fold/fold-store.js).
554
610
  {
555
611
  id: 'view.advanced-open-all',
@@ -375,6 +375,7 @@ export const CANVAS_KEYMAP: readonly KeyedAction[] = [
375
375
  {
376
376
  id: 'mode.preview',
377
377
  exec: 'canvas',
378
+ enabled: { notFacts: ['pagesView'] },
378
379
  keys: [
379
380
  {
380
381
  chord: '⌥⌘P',
@@ -422,12 +423,14 @@ export const CANVAS_KEYMAP: readonly KeyedAction[] = [
422
423
  {
423
424
  id: 'present.from-selection',
424
425
  exec: 'shell',
426
+ enabled: { notFacts: ['pagesView'] },
425
427
  fromCanvas: true,
426
428
  keys: [{ chord: '⌥⌘↵', layer: 'global', when: { mode: ['edit', 'viewing', 'preview'] } }],
427
429
  },
428
430
  {
429
431
  id: 'present.from-start',
430
432
  exec: 'shell',
433
+ enabled: { notFacts: ['pagesView'] },
431
434
  fromCanvas: true,
432
435
  keys: [{ chord: '⌥⇧⌘↵', layer: 'global', when: { mode: ['edit', 'viewing', 'preview'] } }],
433
436
  },
@@ -545,6 +548,38 @@ export const CANVAS_KEYMAP: readonly KeyedAction[] = [
545
548
  },
546
549
  ],
547
550
  },
551
+ {
552
+ id: 'pages.next',
553
+ exec: 'canvas',
554
+ enabled: { facts: ['canvasOpen', 'pagesView'] },
555
+ keys: [
556
+ {
557
+ chord: 'PageDown',
558
+ layer: 'global',
559
+ when: { focus: ['canvas'], mode: ['edit', 'viewing'] },
560
+ },
561
+ {
562
+ chord: '→',
563
+ layer: 'global',
564
+ alias: true,
565
+ when: { focus: ['canvas'], mode: ['edit', 'viewing'], selection: ['none'] },
566
+ },
567
+ ],
568
+ },
569
+ {
570
+ id: 'pages.prev',
571
+ exec: 'canvas',
572
+ enabled: { facts: ['canvasOpen', 'pagesView'] },
573
+ keys: [
574
+ { chord: 'PageUp', layer: 'global', when: { focus: ['canvas'], mode: ['edit', 'viewing'] } },
575
+ {
576
+ chord: '←',
577
+ layer: 'global',
578
+ alias: true,
579
+ when: { focus: ['canvas'], mode: ['edit', 'viewing'], selection: ['none'] },
580
+ },
581
+ ],
582
+ },
548
583
  {
549
584
  id: 'tool.select',
550
585
  exec: 'canvas',
@@ -82,6 +82,8 @@ export const PROJECT_MENU: readonly MenuNode[] = [
82
82
  { id: 'view.assets' },
83
83
  { id: 'view.exports' },
84
84
  { id: 'view.annotations' },
85
+ // 2.0.7 B2 — Canvas | Pages (the pill's switch): checked while the canvas shows one artboard at a time
86
+ { id: 'view.pages' },
85
87
  SEP,
86
88
  // S3.14 (04 md-keys "Menu › View, amended"): Preview ⌥⌘P opens the group, then S3.1's Present ⌥⌘↵ ·
87
89
  // Present from the start ⇧⌥⌘↵ · Present the canvas.
@@ -69,7 +69,9 @@ export type Fact =
69
69
  // S8.16 — the one selected picture is a generated take with siblings: ← → step between the takes, not nudge
70
70
  | 'selectionHasTakes'
71
71
  // p8-v1-drop — a design system in this project is below Conformant: ⌘K offers "Bring it up to the schema"
72
- | 'dsUpgradeOffered';
72
+ | 'dsUpgradeOffered'
73
+ // 2.0.7 B2 — the active canvas shows Pages (one artboard at a time): Preview and Present are off, paging is on
74
+ | 'pagesView';
73
75
 
74
76
  /** Declarative predicate — serialisable into the manifest, evaluable in the shell, the iframe and
75
77
  * (role half) the server. Every present field must hold (AND); `any` is an OR of sub-predicates. */
@@ -2,7 +2,7 @@
2
2
  "generated": "scripts/gen-actions.mjs — do not edit by hand",
3
3
  "format": "maude.actions-manifest",
4
4
  "v": 1,
5
- "manifestVersion": "4ae7b6bdb900",
5
+ "manifestVersion": "fb02f78da791",
6
6
  "actions": [
7
7
  {
8
8
  "id": "search.open",
@@ -2540,6 +2540,39 @@
2540
2540
  "verb": "maude design open <canvas>#<artboard>"
2541
2541
  }
2542
2542
  },
2543
+ {
2544
+ "id": "view.pages",
2545
+ "label": "Pages",
2546
+ "kind": "toggle",
2547
+ "exec": "canvas",
2548
+ "effect": "none",
2549
+ "agent": {
2550
+ "path": "human",
2551
+ "because": "view-pref"
2552
+ }
2553
+ },
2554
+ {
2555
+ "id": "pages.next",
2556
+ "label": "Next page",
2557
+ "kind": "command",
2558
+ "exec": "canvas",
2559
+ "effect": "none",
2560
+ "agent": {
2561
+ "path": "human",
2562
+ "because": "view-pref"
2563
+ }
2564
+ },
2565
+ {
2566
+ "id": "pages.prev",
2567
+ "label": "Previous page",
2568
+ "kind": "command",
2569
+ "exec": "canvas",
2570
+ "effect": "none",
2571
+ "agent": {
2572
+ "path": "human",
2573
+ "because": "view-pref"
2574
+ }
2575
+ },
2543
2576
  {
2544
2577
  "id": "view.advanced-open-all",
2545
2578
  "label": "Open all Advanced sections",
@@ -4386,6 +4419,18 @@
4386
4419
  "note": "the desktop app’s profiles; an agent never picks an account"
4387
4420
  }
4388
4421
  },
4422
+ {
4423
+ "id": "account.github-signin",
4424
+ "label": "Sign in with GitHub…",
4425
+ "kind": "command",
4426
+ "exec": "shell",
4427
+ "effect": "none",
4428
+ "agent": {
4429
+ "path": "human",
4430
+ "because": "native-window",
4431
+ "note": "GitHub’s device flow; an agent never signs anyone in"
4432
+ }
4433
+ },
4389
4434
  {
4390
4435
  "id": "ai.chat",
4391
4436
  "label": "AI chat",
@@ -6240,6 +6285,108 @@
6240
6285
  "verb": "maude design curl-local -X POST http://127.0.0.1:<port>/_api/sync/cancel-assets"
6241
6286
  }
6242
6287
  },
6288
+ {
6289
+ "id": "sync.allow-code",
6290
+ "label": "Allow shared code…",
6291
+ "kind": "command",
6292
+ "exec": "shell",
6293
+ "effect": "external",
6294
+ "minRole": "edit",
6295
+ "server": {
6296
+ "route": "/_api/sync/code-consent/set",
6297
+ "method": "POST"
6298
+ },
6299
+ "agent": {
6300
+ "path": "human",
6301
+ "because": "consent",
6302
+ "note": "the person’s yes to shared code from this project’s hub running on their Mac"
6303
+ }
6304
+ },
6305
+ {
6306
+ "id": "sync.stop-code",
6307
+ "label": "Stop allowing shared code…",
6308
+ "kind": "command",
6309
+ "exec": "shell",
6310
+ "effect": "none",
6311
+ "minRole": "edit",
6312
+ "server": {
6313
+ "route": "/_api/sync/code-consent/set",
6314
+ "method": "POST"
6315
+ },
6316
+ "agent": {
6317
+ "path": "human",
6318
+ "because": "consent",
6319
+ "note": "takes back the person’s yes to shared code"
6320
+ }
6321
+ },
6322
+ {
6323
+ "id": "sync.ignore-folder",
6324
+ "label": "Don’t sync this folder",
6325
+ "kind": "command",
6326
+ "exec": "shell",
6327
+ "effect": "none",
6328
+ "minRole": "edit",
6329
+ "server": {
6330
+ "route": "/_api/sync/settings",
6331
+ "method": "POST"
6332
+ },
6333
+ "agent": {
6334
+ "path": "human",
6335
+ "because": "hub-link",
6336
+ "note": "which folders the project syncs is the person’s choice"
6337
+ }
6338
+ },
6339
+ {
6340
+ "id": "sync.sync-folder-again",
6341
+ "label": "Sync it again",
6342
+ "kind": "command",
6343
+ "exec": "shell",
6344
+ "effect": "none",
6345
+ "minRole": "edit",
6346
+ "server": {
6347
+ "route": "/_api/sync/settings",
6348
+ "method": "POST"
6349
+ },
6350
+ "agent": {
6351
+ "path": "human",
6352
+ "because": "hub-link",
6353
+ "note": "which folders the project syncs is the person’s choice"
6354
+ }
6355
+ },
6356
+ {
6357
+ "id": "sync.delete-held-on-hub",
6358
+ "label": "Move to the hub’s trash too…",
6359
+ "kind": "command",
6360
+ "exec": "shell",
6361
+ "effect": "shared",
6362
+ "minRole": "edit",
6363
+ "server": {
6364
+ "route": "/_api/sync/held-deletes",
6365
+ "method": "POST"
6366
+ },
6367
+ "agent": {
6368
+ "path": "human",
6369
+ "because": "hub-link",
6370
+ "note": "deleting a batch of files on the project’s hub is the person’s choice"
6371
+ }
6372
+ },
6373
+ {
6374
+ "id": "sync.keep-held-on-hub",
6375
+ "label": "Keep on the hub",
6376
+ "kind": "command",
6377
+ "exec": "shell",
6378
+ "effect": "none",
6379
+ "minRole": "edit",
6380
+ "server": {
6381
+ "route": "/_api/sync/held-deletes",
6382
+ "method": "POST"
6383
+ },
6384
+ "agent": {
6385
+ "path": "human",
6386
+ "because": "hub-link",
6387
+ "note": "which deleted files stay on the hub is the person’s choice"
6388
+ }
6389
+ },
6243
6390
  {
6244
6391
  "id": "sync.get-latest",
6245
6392
  "label": "Get latest",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$comment": "Lead-owned (contract V2-1.11 §5.7). humanMax/pendingMax may only be lowered; raising either, or adding a humanDecisions reason, is a lead change citing a decision id.",
3
- "humanMax": 176,
3
+ "humanMax": 186,
4
4
  "pendingMax": 0,
5
5
  "pending": [],
6
6
  "humanDecisions": {
@@ -268,6 +268,36 @@
268
268
  "from": 175,
269
269
  "by": "decision:maude/v2-204-asset-spotlight-registry-action",
270
270
  "why": "2.0.4 (#191) registers assets.spotlight (View larger: the large preview of an Assets tile, dblclick / Space / tile menu). Human 'view-pref': it only changes what the person is looking at; an agent reads the file itself. One human row."
271
+ },
272
+ {
273
+ "to": 177,
274
+ "from": 176,
275
+ "by": "decision:maude/v2-205-w4-github-signin-action",
276
+ "why": "2.0.5 W4 registers account.github-signin (Sign in to GitHub from the account card: GitHub's device flow, the person types the code in their own browser). Human 'native-window': an agent never signs anyone in. One human row."
277
+ },
278
+ {
279
+ "to": 179,
280
+ "from": 177,
281
+ "by": "decision:maude/v2-207-a3-code-consent-in-app",
282
+ "why": "2.0.7 A3 registers sync.allow-code and sync.stop-code (Sync details / the canvas-waiting card: the person's yes or no to shared code from the project's hub, which runs on their Mac outside the canvas sandbox). Both human 'consent': an agent never says yes for the person. Two human rows."
283
+ },
284
+ {
285
+ "to": 182,
286
+ "from": 179,
287
+ "by": "decision:maude/v2-207-pages-view",
288
+ "why": "2.0.7 B2 registers view.pages (Canvas | Pages on the canvas pill) and its paging, pages.next / pages.prev. Human 'view-pref': they only change how the person looks at the canvas (the view file, per Mac); an agent reads the canvas itself. Three human rows."
289
+ },
290
+ {
291
+ "to": 184,
292
+ "from": 182,
293
+ "by": "decision:maude/v2-207-ignore-folders-in-linkedhub",
294
+ "why": "2.0.7 #7 registers sync.ignore-folder and sync.sync-folder-again (Sync details: leave a folder of pictures out of sync on this Mac, or bring it back). Human 'hub-link': they change what this project exchanges with its hub, the person's call. Two human rows."
295
+ },
296
+ {
297
+ "to": 186,
298
+ "from": 184,
299
+ "by": "decision:maude/v2-207-7b-held-delete-answers",
300
+ "why": "2.0.7 #7b registers sync.delete-held-on-hub and sync.keep-held-on-hub (Sync details › Deleted on this Mac, held: Delete on the hub too… / Keep on the hub). Human 'hub-link': deleting a batch on the project's hub reaches every teammate, and which deleted files stay on the hub is the person's choice. Two human rows."
271
301
  }
272
302
  ],
273
303
  "humanMaxRaisedNote": "V2-5 A1 integration: the three slice raises stack on 86 (84 -> 86 by decision:maude/v2-4-gate-github-doors, human 'accounts'). S4.1/S4.3/S4.4 and S2.2-S2.4 add no human row. 86 + 4 + 6 + 4 = 100 human actions in the merged registry. V2-5 A2 integration: S5.4 builds `maude design runs list|stop`, so ai.runs.list and ai.stop turn cli (decision:maude/v2-S5.3-run-actions-human-until-s5.4 resolved by decision:maude/v2-S5.4-runs-fallback-prompts) and the cap lowers 100 -> 98; S3.1, S4.2, S4.5, S9.4, S2.5 and S1.4 add no human row. V2-5 A4 integration: measured 107 human actions in the merged registry (98 on feat + tool.pointer from S3.2b + 7 chat.advanced.* from S5.12 + object.select-matching from S2.6); every other A4 slice adds no human row. V2-5 A5 integration: measured 113 human actions in the merged registry (107 on feat + trash.clear from S1.7b + four ai.attach-* from S5.10 + present.presenter-view from S3.6b); every other A5 slice adds no human row. V2-5 A6a integration: measured 118 human actions in the merged registry (113 on feat + artboard.ask-ai S2.10 + element.set-id S2.2b/lead + edit.undo-history S2.20 + history.filter S1.12b − view.trash S1.17 (cli) + tab.overview + tab.rename S1.22b); every other A6a slice adds no human row."
@@ -13,6 +13,7 @@
13
13
  import { useEffect, useRef, useState } from 'react';
14
14
  import { createPortal } from 'react-dom';
15
15
  import { acceptFromShell } from '../../bridge/dgn-protocol.ts';
16
+ import { frameCaf, frameRaf } from '../../frame-clock.ts';
16
17
 
17
18
  export interface SeenTarget {
18
19
  ref: string;
@@ -83,11 +84,11 @@ export function AiSeenRings(): null | React.JSX.Element {
83
84
  ring.style.height = `${Math.round(r.height + PAD * 2)}px`;
84
85
  });
85
86
  }
86
- raf = requestAnimationFrame(tick);
87
+ raf = frameRaf(tick);
87
88
  };
88
- raf = requestAnimationFrame(tick);
89
+ raf = frameRaf(tick);
89
90
  return () => {
90
- if (raf != null) cancelAnimationFrame(raf);
91
+ if (raf != null) frameCaf(raf);
91
92
  };
92
93
  }, [targets]);
93
94