@1agh/maude 1.8.1 → 1.9.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 (73) hide show
  1. package/apps/studio/acp/bridge.ts +14 -2
  2. package/apps/studio/acp/probe.ts +51 -1
  3. package/apps/studio/api.ts +19 -4
  4. package/apps/studio/bin/_curl-local.mjs +7 -0
  5. package/apps/studio/bin/annotate.mjs +16 -7
  6. package/apps/studio/bin/read-annotations.mjs +62 -4
  7. package/apps/studio/client/app.jsx +428 -15977
  8. package/apps/studio/client/dialogs/asset-picker.jsx +331 -0
  9. package/apps/studio/client/dialogs/command-palette.jsx +112 -0
  10. package/apps/studio/client/dialogs/export-dialog.jsx +782 -0
  11. package/apps/studio/client/dialogs/help-modal.jsx +324 -0
  12. package/apps/studio/client/dialogs/shortcuts-overlay.jsx +144 -0
  13. package/apps/studio/client/hooks/use-canvas-bridge.jsx +2150 -0
  14. package/apps/studio/client/hooks/use-git-actions.jsx +236 -0
  15. package/apps/studio/client/hooks/use-keyboard-shortcuts.jsx +297 -0
  16. package/apps/studio/client/hooks/use-palette-and-panels.jsx +474 -0
  17. package/apps/studio/client/hooks/use-photo-and-timeline.jsx +901 -0
  18. package/apps/studio/client/hooks/use-project-data.jsx +90 -0
  19. package/apps/studio/client/hooks/use-shell-core.jsx +1212 -0
  20. package/apps/studio/client/hooks/use-tabs.jsx +723 -0
  21. package/apps/studio/client/hooks/use-web-socket.jsx +13 -0
  22. package/apps/studio/client/inspector/artboard-knobs.jsx +456 -0
  23. package/apps/studio/client/inspector/color-picker.jsx +196 -0
  24. package/apps/studio/client/inspector/color.js +92 -0
  25. package/apps/studio/client/inspector/css-knobs.jsx +1720 -0
  26. package/apps/studio/client/inspector/css-vocab.jsx +131 -0
  27. package/apps/studio/client/inspector/ds-tokens.js +90 -0
  28. package/apps/studio/client/inspector/grid-tracks-editor.jsx +97 -0
  29. package/apps/studio/client/inspector/inspect-computed.jsx +68 -0
  30. package/apps/studio/client/inspector/inspector-panel.jsx +769 -0
  31. package/apps/studio/client/inspector/layers.jsx +322 -0
  32. package/apps/studio/client/inspector/selection.js +65 -0
  33. package/apps/studio/client/inspector/token-popover.jsx +301 -0
  34. package/apps/studio/client/menus/menubar.jsx +856 -0
  35. package/apps/studio/client/selection-scope.js +40 -0
  36. package/apps/studio/client/shell/banners.jsx +272 -0
  37. package/apps/studio/client/shell/collapsed-rail.jsx +23 -0
  38. package/apps/studio/client/shell/comments-panel.jsx +177 -0
  39. package/apps/studio/client/shell/constants.js +60 -0
  40. package/apps/studio/client/shell/dock.jsx +131 -0
  41. package/apps/studio/client/shell/icons.jsx +370 -0
  42. package/apps/studio/client/shell/status-bar.jsx +215 -0
  43. package/apps/studio/client/shell/util.js +332 -0
  44. package/apps/studio/client/shell/viewport.jsx +254 -0
  45. package/apps/studio/client/system/system-view.jsx +255 -0
  46. package/apps/studio/client/tree/tree.jsx +1243 -0
  47. package/apps/studio/comments-overlay.tsx +6 -4
  48. package/apps/studio/config.schema.json +5 -0
  49. package/apps/studio/context.ts +13 -0
  50. package/apps/studio/dist/client.bundle.js +1337 -1337
  51. package/apps/studio/dist/comment-mount.js +2 -2
  52. package/apps/studio/exporters/_browser-bundles.ts +21 -2
  53. package/apps/studio/exporters/jobs.ts +75 -15
  54. package/apps/studio/exporters/scope.ts +15 -12
  55. package/apps/studio/format.ts +296 -0
  56. package/apps/studio/http.ts +213 -23
  57. package/apps/studio/server.ts +118 -29
  58. package/apps/studio/sync/accepted-link.ts +6 -0
  59. package/apps/studio/sync/agent.ts +9 -1
  60. package/apps/studio/sync/cold-start-apply.ts +29 -4
  61. package/apps/studio/sync/cold-start.ts +78 -0
  62. package/apps/studio/sync/file-plane.ts +61 -1
  63. package/apps/studio/sync/format-sync.ts +160 -0
  64. package/apps/studio/sync/index.ts +134 -10
  65. package/apps/studio/sync/journal-client.ts +25 -5
  66. package/apps/studio/sync/migrate-seed.ts +8 -1
  67. package/apps/studio/sync/status.ts +2 -0
  68. package/apps/studio/sync/transaction-client.ts +130 -13
  69. package/apps/studio/ui-prefs.ts +95 -10
  70. package/apps/studio/whats-new.json +9 -0
  71. package/apps/studio/ws.ts +19 -4
  72. package/cli/bin/claude-design-server.mjs +0 -0
  73. package/package.json +10 -8
@@ -618,7 +618,9 @@ export function CommentsOverlay(): React.ReactNode {
618
618
 
619
619
  interface CommitterRow {
620
620
  name: string;
621
- email: string;
621
+ /** Absent on the canvas origin: it answers a no-e-mail projection (V2-2.8
622
+ * S6) — this composer runs there. The shell's own copy carries it. */
623
+ email?: string;
622
624
  commits: number;
623
625
  }
624
626
 
@@ -721,7 +723,7 @@ function MentionAwareTextarea({
721
723
  const list = !q
722
724
  ? committers
723
725
  : committers.filter(
724
- (c) => c.name.toLowerCase().includes(q) || c.email.toLowerCase().includes(q)
726
+ (c) => c.name.toLowerCase().includes(q) || (c.email ?? '').toLowerCase().includes(q)
725
727
  );
726
728
  return list.slice(0, 8);
727
729
  }, [token, committers]);
@@ -832,7 +834,7 @@ function MentionAwareTextarea({
832
834
  const selected = i === highlight;
833
835
  return (
834
836
  <li
835
- key={`${c.name}-${c.email}`}
837
+ key={`${c.name}-${c.email ?? ''}`}
836
838
  role="option"
837
839
  aria-selected={selected}
838
840
  className="cm-mention-popup__item"
@@ -845,7 +847,7 @@ function MentionAwareTextarea({
845
847
  }}
846
848
  >
847
849
  <span className="cm-mention-popup__name">@{firstNameSlug(c.name)}</span>
848
- <span className="cm-mention-popup__email">{c.email}</span>
850
+ {c.email ? <span className="cm-mention-popup__email">{c.email}</span> : null}
849
851
  </li>
850
852
  );
851
853
  })}
@@ -207,6 +207,11 @@
207
207
  "description": "Name of the DS used when a canvas's .meta.json has no 'designSystem' field. For single-DS projects, this is the only DS. For multi-DS, pick the most common.",
208
208
  "default": null
209
209
  },
210
+ "formatVersion": {
211
+ "type": "integer",
212
+ "minimum": 1,
213
+ "description": "The project's file format (V2-1.12, Gate 0 A17). Absent = 1 (Maude 1). Written as 2 by `maude migrate v2` / Update project; a build edits only the format it supports and opens any other format view only. Never hand-edit — use `maude migrate v2 [--reverse]`."
214
+ },
210
215
  "linkedHub": {
211
216
  "type": "object",
212
217
  "description": "Pairs this repo with a Maude hub for cross-machine file sync (Phase 9 Task 3+4). Written by 'maude design link <url> --token <hex>'. Token NEVER lives in this committed config — it's stored per-machine in ~/.config/maude/hubs.json. When present, 'maude design serve' starts the bidirectional Yjs↔fs sync agent (Task 4).",
@@ -118,6 +118,11 @@ export interface DevServerConfig {
118
118
  newCanvasDir: string;
119
119
  newComponentDir: string;
120
120
  linkedHub?: LinkedHub;
121
+ /**
122
+ * V2-1.12 (Gate 0 A17) — the project's file format; absent = 1. Written only
123
+ * by `maude migrate v2` / Update project. The gate is `format.ts`.
124
+ */
125
+ formatVersion?: number;
121
126
  /**
122
127
  * feature-ai-media-generation (DDR-16x) — BYOK generation preferences.
123
128
  * NON-SECRET ONLY: provider keys live in the OS keychain / ~/.config/maude/
@@ -219,6 +224,14 @@ export interface Context {
219
224
  * URLs. Undefined in tests / before the canvas listener boots.
220
225
  */
221
226
  canvasOrigin?: string;
227
+ /**
228
+ * V2-2.8 S9 (V2-1.16 L21) — origin of the read-only CAPTURE listener
229
+ * (`http://localhost:<port>`), set by server.ts on a desktop / plain server
230
+ * while the origin split is on. The main origin 307s headless canvas-shell
231
+ * renders here (http.ts); never advertised to clients. Undefined in a cell,
232
+ * with the split off, in tests and before boot.
233
+ */
234
+ captureOrigin?: string;
222
235
  /**
223
236
  * T2 (9.1-A) — origin of the MAIN dev-server listener (e.g.
224
237
  * `http://localhost:4399`), set by server.ts once the primary listener binds.