@1agh/maude 2.0.8 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/apps/hub/src/project-transactions/kernel.mjs +13 -7
- package/apps/studio/access/closure.ts +86 -10
- package/apps/studio/access/filters.ts +18 -1
- package/apps/studio/access/request.ts +8 -0
- package/apps/studio/acp/design-write-verb.ts +12 -2
- package/apps/studio/acp/env.ts +7 -2
- package/apps/studio/acp/index.ts +15 -4
- package/apps/studio/acp/login-state.ts +22 -5
- package/apps/studio/acp/may-scope.ts +38 -1
- package/apps/studio/acp/plugin-bootstrap.ts +13 -1
- package/apps/studio/acp/probe.ts +11 -4
- package/apps/studio/actions/agents.ts +110 -28
- package/apps/studio/actions/canvas-keys.ts +4 -2
- package/apps/studio/actions/ctx.ts +3 -0
- package/apps/studio/actions/defs/annotation.ts +84 -2
- package/apps/studio/actions/defs/app.ts +28 -1
- package/apps/studio/actions/defs/edit.ts +13 -0
- package/apps/studio/actions/defs/export.ts +12 -0
- package/apps/studio/actions/defs/sync.ts +18 -0
- package/apps/studio/actions/defs/video.ts +9 -0
- package/apps/studio/actions/documents.ts +6 -1
- package/apps/studio/actions/keymap.gen.ts +147 -9
- package/apps/studio/actions/menu.ts +5 -1
- package/apps/studio/actions/types.ts +4 -2
- package/apps/studio/actions/verbs.ts +9 -0
- package/apps/studio/actions.manifest.json +300 -45
- package/apps/studio/actions.parity.json +19 -1
- package/apps/studio/ai/save-hold.ts +2 -1
- package/apps/studio/ai/write-claim-scope.ts +7 -1
- package/apps/studio/ai/write-claim.ts +154 -3
- package/apps/studio/annotations/ai-read.ts +42 -6
- package/apps/studio/annotations/ai-write.ts +145 -2
- package/apps/studio/annotations/board-ops.ts +34 -3
- package/apps/studio/annotations/checklist-ops.ts +374 -0
- package/apps/studio/annotations/elements/checkitem.model.ts +129 -0
- package/apps/studio/annotations/elements/sticky.model.ts +54 -2
- package/apps/studio/annotations/ops.ts +30 -0
- package/apps/studio/annotations/registry.ts +9 -1
- package/apps/studio/annotations/templates.ts +4 -2
- package/apps/studio/annotations/text-steps.ts +114 -10
- package/apps/studio/annotations/ui/checklist-wire.ts +129 -0
- package/apps/studio/annotations/ui/checklist.tsx +429 -0
- package/apps/studio/annotations/ui/element-node.tsx +48 -2
- package/apps/studio/annotations/ui/template-place.ts +11 -1
- package/apps/studio/annotations/v1-adapter.ts +22 -3
- package/apps/studio/annotations-context-toolbar.tsx +12 -0
- package/apps/studio/annotations-layer.tsx +442 -49
- package/apps/studio/annotations-model.ts +4 -2
- package/apps/studio/api.ts +148 -21
- package/apps/studio/artboard-live-gate.tsx +54 -17
- package/apps/studio/artboard-still-persist.ts +166 -0
- package/apps/studio/artboard-still-raster.ts +6 -2
- package/apps/studio/artboard-still.ts +390 -20
- package/apps/studio/asset-added.ts +154 -0
- package/apps/studio/asset-details.ts +46 -3
- package/apps/studio/asset-origins.ts +5 -3
- package/apps/studio/asset-trash.ts +6 -1
- package/apps/studio/bin/_agent-browser-safe.mjs +3 -4
- package/apps/studio/bin/_annotate-post.mjs +14 -5
- package/apps/studio/bin/_audio-search.mjs +8 -2
- package/apps/studio/bin/_curl-local.mjs +7 -4
- package/apps/studio/bin/_desktop-locate.sh +145 -0
- package/apps/studio/bin/_ds-check-live.mjs +2 -1
- package/apps/studio/bin/_exports.mjs +38 -2
- package/apps/studio/bin/_history.mjs +79 -8
- package/apps/studio/bin/_import-asset.mjs +14 -9
- package/apps/studio/bin/_import-figma.mjs +510 -98
- package/apps/studio/bin/_index-cli.mjs +10 -21
- package/apps/studio/bin/_ingest-footage.mjs +24 -6
- package/apps/studio/bin/_media-probe.mjs +232 -0
- package/apps/studio/bin/_perf-probe-open.mjs +6 -0
- package/apps/studio/bin/_perf-probe-safari.mjs +6 -0
- package/apps/studio/bin/_perf-probe-studio.mjs +6 -1
- package/apps/studio/bin/_perf-probe.mjs +8 -3
- package/apps/studio/bin/_perf-sweep-shared.mjs +789 -0
- package/apps/studio/bin/_perf-sweep.mjs +240 -0
- package/apps/studio/bin/_record-shot.sh +33 -8
- package/apps/studio/bin/_screenshot-playwright.mjs +45 -2
- package/apps/studio/bin/_studio-verb.mjs +8 -3
- package/apps/studio/bin/_thumb-route.mjs +21 -0
- package/apps/studio/bin/_thumbs-playwright.mjs +83 -1
- package/apps/studio/bin/_transcribe.mjs +22 -6
- package/apps/studio/bin/_unsynced-refs.mjs +22 -0
- package/apps/studio/bin/_url-guard.mjs +120 -5
- package/apps/studio/bin/_url-guard.sh +29 -7
- package/apps/studio/bin/_video-limits.mjs +104 -0
- package/apps/studio/bin/_video-playwright.mjs +119 -19
- package/apps/studio/bin/_video-proxy.mjs +130 -0
- package/apps/studio/bin/_write-claim.mjs +38 -16
- package/apps/studio/bin/annotate.mjs +12 -2
- package/apps/studio/bin/canvas-rects.sh +19 -4
- package/apps/studio/bin/chat-open.sh +7 -1
- package/apps/studio/bin/draw-proof.sh +6 -2
- package/apps/studio/bin/generate.sh +32 -10
- package/apps/studio/bin/handoff.sh +2 -2
- package/apps/studio/bin/perf.sh +96 -15
- package/apps/studio/bin/photo-adjust.sh +6 -3
- package/apps/studio/bin/photo-bg-remove.sh +2 -2
- package/apps/studio/bin/prep.sh +21 -4
- package/apps/studio/bin/read-annotations.mjs +3 -0
- package/apps/studio/bin/runtime-health.sh +27 -1
- package/apps/studio/bin/screenshot.sh +152 -12
- package/apps/studio/bin/server-up.sh +64 -6
- package/apps/studio/bin/smoke.sh +43 -8
- package/apps/studio/bin/to-lottie.sh +3 -2
- package/apps/studio/bin/video-proxy.sh +27 -0
- package/apps/studio/bin/visual-sanity.sh +3 -1
- package/apps/studio/bridge/dgn-protocol.ts +157 -1
- package/apps/studio/bridge/mode-shows.ts +8 -6
- package/apps/studio/bridge/still-webp.ts +233 -0
- package/apps/studio/build.ts +18 -0
- package/apps/studio/canvas-build.ts +93 -11
- package/apps/studio/canvas-comment-mount.tsx +53 -8
- package/apps/studio/canvas-edit.ts +34 -1
- package/apps/studio/canvas-lib-module.ts +210 -0
- package/apps/studio/canvas-lib.tsx +3 -12
- package/apps/studio/canvas-pipeline.ts +111 -5
- package/apps/studio/canvas-shell.tsx +8 -11
- package/apps/studio/canvas-theme-pill.tsx +5 -3
- package/apps/studio/check/index.ts +12 -5
- package/apps/studio/check/video.ts +18 -2
- package/apps/studio/client/app.jsx +65 -7
- package/apps/studio/client/clipboard-relay.ts +193 -16
- package/apps/studio/client/comments-overlay.css +18 -0
- package/apps/studio/client/export-center.jsx +30 -0
- package/apps/studio/client/generate-dialog.jsx +49 -4
- package/apps/studio/client/github.js +7 -0
- package/apps/studio/client/home/HomeAccountsRow.jsx +221 -0
- package/apps/studio/client/home/HomeConnection.jsx +111 -0
- package/apps/studio/client/home/home-accounts-model.js +110 -1
- package/apps/studio/client/home/home-api.js +9 -2
- package/apps/studio/client/home/home-app.jsx +126 -13
- package/apps/studio/client/home/home-model.js +69 -1
- package/apps/studio/client/home/home-where-model.js +105 -0
- package/apps/studio/client/home/home.css +239 -1
- package/apps/studio/client/hooks/use-canvas-bridge.jsx +173 -98
- package/apps/studio/client/hooks/use-palette-and-panels.jsx +5 -1
- package/apps/studio/client/hooks/use-tabs.jsx +11 -4
- package/apps/studio/client/panels/DiffView.jsx +7 -1
- package/apps/studio/client/panels/TeamProjects.jsx +137 -134
- package/apps/studio/client/panels/chat-context.js +2 -0
- package/apps/studio/client/panels/slash-commands.gen.js +13 -13
- package/apps/studio/client/selection-scope.js +16 -9
- package/apps/studio/client/share-link.js +12 -0
- package/apps/studio/client/shell/viewport.jsx +11 -1
- package/apps/studio/client/shell-events.js +8 -0
- package/apps/studio/client/styles/3-kit-maude-v2.css +16 -0
- package/apps/studio/client/styles/_index.css +4 -0
- package/apps/studio/client/v2/ai/Feed.jsx +1 -1
- package/apps/studio/client/v2/ai/OfferCard.jsx +34 -0
- package/apps/studio/client/v2/ai/activity-line.js +54 -1
- package/apps/studio/client/v2/ai/ai-offer.js +21 -1
- package/apps/studio/client/v2/ai/run-model.js +3 -1
- package/apps/studio/client/v2/annotations/vote-store.js +28 -4
- package/apps/studio/client/v2/assets/asset-drop-session.js +37 -2
- package/apps/studio/client/v2/assets/canvas-drop-catcher.jsx +7 -5
- package/apps/studio/client/v2/assets/details-model.js +1 -1
- package/apps/studio/client/v2/assets/details.jsx +5 -0
- package/apps/studio/client/v2/assets/tile-drag.js +11 -7
- package/apps/studio/client/v2/comments/comments-panel.jsx +22 -3
- package/apps/studio/client/v2/create/duplicate-done.js +6 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +1 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-model.js +32 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +35 -8
- package/apps/studio/client/v2/diagnostics/diagnostics.css +34 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +113 -3
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +343 -6
- package/apps/studio/client/v2/diagnostics/sync-details/unsynced-refs.js +55 -0
- package/apps/studio/client/v2/ds/review.css +1 -1
- package/apps/studio/client/v2/export/exports-model.js +7 -0
- package/apps/studio/client/v2/export/exports-panel.jsx +1 -0
- package/apps/studio/client/v2/export/job-row.jsx +32 -2
- package/apps/studio/client/v2/handoff/ready-card.jsx +1 -1
- package/apps/studio/client/v2/history/compare-view.jsx +1 -0
- package/apps/studio/client/v2/inspector/css-write.js +6 -1
- package/apps/studio/client/v2/inspector/frame.jsx +28 -4
- package/apps/studio/client/v2/inspector/kinds/clip-model.js +51 -0
- package/apps/studio/client/v2/inspector/kinds/clip.jsx +75 -2
- package/apps/studio/client/v2/inspector/model.js +21 -0
- package/apps/studio/client/v2/inspector/sections/fill.jsx +12 -3
- package/apps/studio/client/v2/inspector/sections/recent-colours.js +8 -5
- package/apps/studio/client/v2/inspector/view-mode.jsx +11 -1
- package/apps/studio/client/v2/link-server/LinkServerDialog.jsx +492 -0
- package/apps/studio/client/v2/link-server/LinkServerHost.jsx +42 -0
- package/apps/studio/client/v2/link-server/link-server-api.js +142 -0
- package/apps/studio/client/v2/link-server/link-server-model.js +438 -0
- package/apps/studio/client/v2/link-server/link-server.css +109 -0
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +31 -86
- package/apps/studio/client/v2/onboarding/onboarding-model.js +1 -18
- package/apps/studio/client/v2/preview/link-follow.js +4 -2
- package/apps/studio/client/v2/preview/preview-chrome-host.jsx +16 -6
- package/apps/studio/client/v2/search/help-model.js +2 -0
- package/apps/studio/client/v2/search/search-keywords.js +3 -2
- package/apps/studio/client/v2/settings/account.jsx +4 -2
- package/apps/studio/client/v2/settings/advanced-section.jsx +344 -137
- package/apps/studio/client/v2/settings/connection-row.jsx +3 -59
- package/apps/studio/client/v2/settings/connections-section.jsx +118 -425
- package/apps/studio/client/v2/settings/general-section.jsx +155 -24
- package/apps/studio/client/v2/settings/project-sync-settings.jsx +4 -3
- package/apps/studio/client/v2/settings/reset-section.jsx +14 -3
- package/apps/studio/client/v2/settings/settings-card.jsx +142 -0
- package/apps/studio/client/v2/settings/settings-cards.js +220 -0
- package/apps/studio/client/v2/settings/settings-handlers.js +7 -6
- package/apps/studio/client/v2/settings/settings-model.js +100 -31
- package/apps/studio/client/v2/settings/settings-sheet.jsx +25 -6
- package/apps/studio/client/v2/settings/settings.css +374 -64
- package/apps/studio/client/v2/settings/this-project-card.jsx +730 -0
- package/apps/studio/client/v2/settings/this-project-model.js +172 -0
- package/apps/studio/client/v2/settings/use-connections.js +3 -2
- package/apps/studio/client/v2/settings/use-open-card.js +37 -0
- package/apps/studio/client/v2/share/share-sheet.jsx +28 -11
- package/apps/studio/client/v2/shell/api-session-boot.js +6 -0
- package/apps/studio/client/v2/shell/api-session.js +126 -0
- package/apps/studio/client/v2/shell/connection-state.js +197 -0
- package/apps/studio/client/v2/shell/floating-panels.css +31 -1
- package/apps/studio/client/v2/shell/image-pick.js +61 -8
- package/apps/studio/client/v2/shell/menu-aim.js +43 -0
- package/apps/studio/client/v2/shell/menu-runner.js +25 -7
- package/apps/studio/client/v2/shell/occlusion-insets.js +18 -1
- package/apps/studio/client/v2/shell/project-account-bus.js +36 -0
- package/apps/studio/client/v2/shell/project-account-card.jsx +357 -148
- package/apps/studio/client/v2/shell/project-account-model.js +272 -149
- package/apps/studio/client/v2/shell/project-account-toast.js +66 -0
- package/apps/studio/client/v2/shell/project-account.css +237 -0
- package/apps/studio/client/v2/shell/project-pill.jsx +52 -6
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +166 -83
- package/apps/studio/client/v2/shell/shell-parity.js +3 -2
- package/apps/studio/client/v2/shell/shell-parity.json +71 -36
- package/apps/studio/client/v2/shell/still-bridge.js +194 -0
- package/apps/studio/client/v2/shell/still-store.js +319 -0
- package/apps/studio/client/v2/shell/use-account.js +2 -0
- package/apps/studio/client/v2/shell/use-tool-panels.js +2 -1
- package/apps/studio/client/v2/signin/use-signin.js +1 -1
- package/apps/studio/client/v2/timeline/Timeline.jsx +15 -0
- package/apps/studio/client/v2/timeline/frame-handle-model.js +142 -0
- package/apps/studio/client/v2/timeline/frame-handle.jsx +151 -0
- package/apps/studio/clip-ops.ts +126 -8
- package/apps/studio/cloud/endpoints.ts +29 -4
- package/apps/studio/collab/ai-activity.ts +10 -8
- package/apps/studio/collab/awareness-bridge.ts +34 -9
- package/apps/studio/collab/index.ts +3 -0
- package/apps/studio/collab/registry.ts +41 -10
- package/apps/studio/comment-reattach.ts +149 -0
- package/apps/studio/comments/mine-stamp.ts +15 -7
- package/apps/studio/comments/ops.ts +52 -8
- package/apps/studio/comments-overlay.tsx +146 -9
- package/apps/studio/dist/client.bundle.js +892 -885
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/dom-selection.ts +87 -18
- package/apps/studio/ds/board/directions.css +8 -0
- package/apps/studio/ds/board/outline.tsx +16 -0
- package/apps/studio/ds/canvas-check.ts +6 -0
- package/apps/studio/edit-ops/clip/reframe.ts +19 -3
- package/apps/studio/edit-ops/clip-carry.ts +602 -0
- package/apps/studio/edit-ops/clipboard.ts +318 -23
- package/apps/studio/edit-ops/dispatch.ts +20 -2
- package/apps/studio/edit-ops/scope-names.ts +249 -40
- package/apps/studio/edit-ops/slot-defaults.ts +3 -0
- package/apps/studio/edit-ops/types.ts +6 -0
- package/apps/studio/editing/align-bar.tsx +33 -9
- package/apps/studio/editing/artboard-actions.ts +5 -0
- package/apps/studio/editing/artboard-menu.tsx +6 -2
- package/apps/studio/editing/click-to-type.ts +1 -1
- package/apps/studio/editing/clip-words.ts +48 -0
- package/apps/studio/editing/clipboard.ts +21 -6
- package/apps/studio/editing/declared-background.ts +25 -0
- package/apps/studio/editing/index.tsx +3 -0
- package/apps/studio/editing/object-keys.ts +4 -4
- package/apps/studio/editing/object-menu.tsx +13 -3
- package/apps/studio/editing/pen/points.tsx +61 -0
- package/apps/studio/editing/text-in-place.tsx +11 -0
- package/apps/studio/editing/video-frame-handle.tsx +425 -0
- package/apps/studio/exporters/capture-prepass.ts +374 -0
- package/apps/studio/exporters/degraded.ts +148 -0
- package/apps/studio/exporters/hub-render-door.ts +28 -2
- package/apps/studio/exporters/index.ts +3 -1
- package/apps/studio/exporters/job-budget.ts +93 -0
- package/apps/studio/exporters/jobs.ts +215 -28
- package/apps/studio/exporters/parity-check.ts +254 -0
- package/apps/studio/exporters/remote.ts +209 -15
- package/apps/studio/exporters/svg-inline.ts +87 -0
- package/apps/studio/exporters/video-render-lib.ts +88 -26
- package/apps/studio/exporters/video.ts +29 -6
- package/apps/studio/figma/assets.ts +58 -43
- package/apps/studio/figma/codegen-fonts.ts +100 -0
- package/apps/studio/figma/fig-decode.ts +390 -25
- package/apps/studio/figma/fig-kiwi.ts +18 -4
- package/apps/studio/figma/fig-vector.ts +59 -3
- package/apps/studio/figma/sanitize.ts +2 -0
- package/apps/studio/figma/style-map.ts +293 -48
- package/apps/studio/figma/to-artboard.ts +455 -69
- package/apps/studio/figma/to-strokes.ts +44 -11
- package/apps/studio/figma/types.ts +13 -0
- package/apps/studio/footage/schema.ts +3 -3
- package/apps/studio/generation/adapters/elevenlabs.ts +7 -1
- package/apps/studio/generation/adapters/groq.ts +8 -1
- package/apps/studio/generation/spend.ts +312 -0
- package/apps/studio/generation/types.ts +12 -0
- package/apps/studio/handoff/run.ts +1 -1
- package/apps/studio/handoff/targets.ts +2 -2
- package/apps/studio/handoff/write-scopes.ts +1 -1
- package/apps/studio/history/describe-annotations.ts +4 -0
- package/apps/studio/home/accounts.ts +30 -11
- package/apps/studio/home/cloud.ts +6 -1
- package/apps/studio/home/create-local.ts +32 -3
- package/apps/studio/home/hub-health.ts +76 -0
- package/apps/studio/home/routes.ts +15 -4
- package/apps/studio/http.ts +438 -86
- package/apps/studio/imported-module-ids.ts +91 -0
- package/apps/studio/inspect.ts +2 -0
- package/apps/studio/migrate/hub.ts +8 -1
- package/apps/studio/notifications.tsx +47 -5
- package/apps/studio/paths.ts +10 -1
- package/apps/studio/port.ts +3 -2
- package/apps/studio/preview/preview-camera.tsx +15 -382
- package/apps/studio/readiness.ts +10 -1
- package/apps/studio/release-build.ts +51 -0
- package/apps/studio/routes/agent.ts +188 -9
- package/apps/studio/routes/ai.ts +43 -11
- package/apps/studio/routes/annotations.ts +27 -1
- package/apps/studio/routes/assets.ts +18 -1
- package/apps/studio/routes/canvas-origin.ts +12 -9
- package/apps/studio/routes/cloud-move.ts +15 -0
- package/apps/studio/routes/edit.ts +3 -0
- package/apps/studio/routes/export.ts +51 -0
- package/apps/studio/routes/generate.ts +42 -12
- package/apps/studio/routes/hub-link-folder.ts +334 -0
- package/apps/studio/routes/hub-signin.ts +78 -1
- package/apps/studio/routes/index.ts +9 -1
- package/apps/studio/routes/shell.ts +217 -5
- package/apps/studio/routes/sync.ts +136 -8
- package/apps/studio/routes/votes.ts +2 -1
- package/apps/studio/schema/annotations.v2.schema.json +143 -1
- package/apps/studio/schema/beats.v1.schema.json +1 -1
- package/apps/studio/schema/edl.v1.schema.json +1 -1
- package/apps/studio/schema/formats.ts +3 -3
- package/apps/studio/schema/transcript.v1.schema.json +1 -1
- package/apps/studio/server.ts +142 -43
- package/apps/studio/shell/api-key.ts +503 -0
- package/apps/studio/shell/attest.ts +59 -0
- package/apps/studio/shell/capture-url.ts +20 -0
- package/apps/studio/shell/cli-yield.ts +276 -0
- package/apps/studio/shell/clip-transfer.ts +302 -0
- package/apps/studio/shell/key-file.ts +108 -0
- package/apps/studio/shell/server-json.ts +75 -0
- package/apps/studio/shell/worktree.ts +19 -0
- package/apps/studio/spoof-chars.ts +9 -0
- package/apps/studio/studio-page-host.ts +1 -1
- package/apps/studio/sync/accepted-cold-start.ts +144 -8
- package/apps/studio/sync/accepted-link.ts +76 -29
- package/apps/studio/sync/action-stage.ts +575 -44
- package/apps/studio/sync/adopt-held.ts +85 -0
- package/apps/studio/sync/ctl-heal.ts +58 -0
- package/apps/studio/sync/file-ledger.ts +38 -4
- package/apps/studio/sync/file-membership.ts +16 -1
- package/apps/studio/sync/file-plane.ts +289 -22
- package/apps/studio/sync/held-deletes.ts +86 -5
- package/apps/studio/sync/hub-link.ts +8 -0
- package/apps/studio/sync/index.ts +196 -12
- package/apps/studio/sync/journal-client.ts +50 -4
- package/apps/studio/sync/link-consent.ts +22 -75
- package/apps/studio/sync/link-survey.ts +252 -0
- package/apps/studio/sync/local-kernel.ts +296 -8
- package/apps/studio/sync/projection.ts +22 -3
- package/apps/studio/sync/seed-progress.ts +12 -0
- package/apps/studio/sync/source-recovery.ts +59 -3
- package/apps/studio/sync/status.ts +19 -2
- package/apps/studio/sync/unsynced-refs.ts +397 -0
- package/apps/studio/sync/writer-registry.ts +20 -0
- package/apps/studio/thumbs/service.ts +4 -1
- package/apps/studio/tool-palette.tsx +23 -0
- package/apps/studio/ui-prefs.ts +40 -0
- package/apps/studio/use-agent-presence.tsx +2 -2
- package/apps/studio/use-canvas-keys.ts +6 -1
- package/apps/studio/video/format-ids.ts +2 -2
- package/apps/studio/video/inject.ts +31 -0
- package/apps/studio/video/media-risk.ts +58 -0
- package/apps/studio/video/object-fit.ts +137 -0
- package/apps/studio/video/provider-transcript.ts +141 -0
- package/apps/studio/whats-new.json +137 -0
- package/apps/studio/workspace-mode.ts +1 -0
- package/apps/studio/ws.ts +5 -0
- package/cli/commands/design.mjs +119 -8
- package/cli/lib/bash-guard.mjs +366 -6
- package/cli/lib/confine-read.mjs +1 -0
- package/cli/lib/design-help.gen.mjs +3 -2
- package/cli/lib/design-hook.mjs +387 -81
- package/cli/lib/design-link.mjs +16 -1
- package/cli/lib/design-open.mjs +49 -3
- package/cli/lib/desktop-locate.mjs +770 -0
- package/cli/lib/handoff.mjs +1 -1
- package/cli/lib/hook-state.mjs +291 -0
- package/cli/lib/pkg-root.mjs +65 -13
- package/cli/lib/studio-locate.mjs +59 -16
- package/package.json +15 -8
- package/plugins/design/templates/_shell.html +13 -0
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +0 -212
- package/apps/studio/client/v2/shell/account-card-model.js +0 -114
- package/apps/studio/client/v2/shell/account-card.jsx +0 -189
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// #151 T2.3b — which IMPORTED file an element id lives in.
|
|
2
|
+
//
|
|
3
|
+
// A canvas that renders components from a sibling file (a shared hi-fi library) gets those elements a
|
|
4
|
+
// `data-cd-id` at build time (canvas-pipeline.ts `stampImportedModule`) so they can be selected and
|
|
5
|
+
// commented. The edit engine reads only the canvas file, so an edit aimed at one cannot land. The id
|
|
6
|
+
// stays 8 hex (the hold, link and text-patch checks all match that shape), so it cannot carry the
|
|
7
|
+
// file; instead the server asks here, on the miss: walk the canvas's own relative imports, recompute
|
|
8
|
+
// the ids each stampable module gets (the same walk the build ran) and answer with the first module
|
|
9
|
+
// that holds the id. Every edit surface turns the answer into one refusal that names the file
|
|
10
|
+
// (`moduleRefusal`) instead of "not on this canvas" / "data-cd-id … not found in <abs path>".
|
|
11
|
+
//
|
|
12
|
+
// Pure of the network and of the canvas's build cache: it re-reads the files, so it is only asked once an
|
|
13
|
+
// id was not found in the canvas itself (a rare, failing path), never on a successful edit.
|
|
14
|
+
|
|
15
|
+
import { existsSync, readFileSync, realpathSync, statSync } from 'node:fs';
|
|
16
|
+
import path from 'node:path';
|
|
17
|
+
|
|
18
|
+
import { relativeImportCandidates } from './access/closure.ts';
|
|
19
|
+
import { importedModuleIds, importedModuleScope } from './canvas-pipeline.ts';
|
|
20
|
+
|
|
21
|
+
/** A walk past this many files is not a hi-fi library but a planted import fan-out. */
|
|
22
|
+
const MAX_MODULES = 200;
|
|
23
|
+
const MAX_BYTES = 1024 * 1024;
|
|
24
|
+
const CODE_EXT_RE = /\.[cm]?[jt]sx?$/;
|
|
25
|
+
const STAMPED_EXT_RE = /\.[jt]sx$/;
|
|
26
|
+
|
|
27
|
+
function real(p: string): string {
|
|
28
|
+
try {
|
|
29
|
+
return realpathSync(p);
|
|
30
|
+
} catch {
|
|
31
|
+
return path.resolve(p);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function readSmall(file: string): string | null {
|
|
36
|
+
try {
|
|
37
|
+
const st = statSync(file);
|
|
38
|
+
if (!st.isFile() || st.size > MAX_BYTES) return null;
|
|
39
|
+
return readFileSync(file, 'utf8');
|
|
40
|
+
} catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The design-root-relative path of the imported module (reached from `canvasAbs` through relative
|
|
47
|
+
* imports, transitively) whose elements carry `id`, or null when the id is not an imported module's
|
|
48
|
+
* (the canvas's own id, an unknown one, a design-system component).
|
|
49
|
+
*/
|
|
50
|
+
export function moduleOwningId(canvasAbs: string, designRoot: string, id: string): string | null {
|
|
51
|
+
if (!id) return null;
|
|
52
|
+
const root = real(designRoot);
|
|
53
|
+
const first = readSmall(canvasAbs);
|
|
54
|
+
if (first === null) return null;
|
|
55
|
+
// real paths throughout: the import clamp compares prefixes, and macOS reports /var as /private/var
|
|
56
|
+
const start = real(canvasAbs);
|
|
57
|
+
const seen = new Set<string>([start]);
|
|
58
|
+
const queue: Array<{ file: string; text: string }> = [{ file: start, text: first }];
|
|
59
|
+
let visited = 0;
|
|
60
|
+
for (let head = 0; head < queue.length; head++) {
|
|
61
|
+
const { file, text } = queue[head] as { file: string; text: string };
|
|
62
|
+
for (const cand of relativeImportCandidates(text, file, root)) {
|
|
63
|
+
if (!CODE_EXT_RE.test(cand) || !existsSync(cand)) continue;
|
|
64
|
+
const abs = real(cand);
|
|
65
|
+
if (seen.has(abs)) continue;
|
|
66
|
+
seen.add(abs);
|
|
67
|
+
if (++visited > MAX_MODULES) return null;
|
|
68
|
+
const src = readSmall(abs);
|
|
69
|
+
if (src === null) continue;
|
|
70
|
+
if (STAMPED_EXT_RE.test(abs)) {
|
|
71
|
+
const scope = importedModuleScope(abs, root);
|
|
72
|
+
if (scope && importedModuleIds(abs, src, scope).has(id)) return scope;
|
|
73
|
+
}
|
|
74
|
+
queue.push({ file: abs, text: src });
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The refusal a person reads (a toast, a panel line): what happened · what is safe · where the thing
|
|
82
|
+
* is. Words: CONTRACT §3–§4 (no "we"/"I", no exclamation mark).
|
|
83
|
+
*/
|
|
84
|
+
export function moduleRefusal(module: string): string {
|
|
85
|
+
return `That part comes from ${module}, another file, so it can’t be edited here. Nothing changed.`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** The same refusal for the AI (`maude design canvas-edit`): it can act on the file itself. */
|
|
89
|
+
export function moduleRefusalForAi(module: string): string {
|
|
90
|
+
return `${moduleRefusal(module)} It is a file of its own: edit ${module} directly, or change what the canvas passes to the component.`;
|
|
91
|
+
}
|
package/apps/studio/inspect.ts
CHANGED
|
@@ -736,6 +736,8 @@ const INSPECTOR_SCRIPT = `
|
|
|
736
736
|
}, true);
|
|
737
737
|
|
|
738
738
|
window.addEventListener('message', function(e) {
|
|
739
|
+
// #168 F3: only the shell (this frame's parent) sets the pins or focuses one; any other window is ignored
|
|
740
|
+
if (e.source !== window.parent) return;
|
|
739
741
|
var m = e.data;
|
|
740
742
|
if (!m || typeof m !== 'object' || !m.dgn) return;
|
|
741
743
|
if (m.dgn === 'comments-set' && Array.isArray(m.comments)) {
|
|
@@ -81,7 +81,11 @@ export function createHubFormatClient(
|
|
|
81
81
|
return {
|
|
82
82
|
async health() {
|
|
83
83
|
try {
|
|
84
|
-
|
|
84
|
+
// 2.1.1 T8 — never follow a redirect off the server (every call below carries the bearer)
|
|
85
|
+
const res = await fetchImpl(`${base}/health`, {
|
|
86
|
+
redirect: 'manual',
|
|
87
|
+
signal: AbortSignal.timeout(10_000),
|
|
88
|
+
});
|
|
85
89
|
if (!res.ok) return { ok: false };
|
|
86
90
|
const j = (await res.json()) as {
|
|
87
91
|
formatVersion?: unknown;
|
|
@@ -115,6 +119,7 @@ export function createHubFormatClient(
|
|
|
115
119
|
try {
|
|
116
120
|
const res = await fetchImpl(`${base}${MODE_PATH}`, {
|
|
117
121
|
headers: { authorization: `Bearer ${hub.token}` },
|
|
122
|
+
redirect: 'manual',
|
|
118
123
|
signal: AbortSignal.timeout(10_000),
|
|
119
124
|
});
|
|
120
125
|
const j = (await res.json().catch(() => null)) as {
|
|
@@ -149,6 +154,7 @@ export function createHubFormatClient(
|
|
|
149
154
|
const res = await fetchImpl(`${base}${MODE_PATH}`, {
|
|
150
155
|
method: 'POST',
|
|
151
156
|
headers: { 'content-type': 'application/json', authorization: `Bearer ${hub.token}` },
|
|
157
|
+
redirect: 'manual',
|
|
152
158
|
// #166 (2.0.4): a dry run here reads only the blockers, so it asks for them alone —
|
|
153
159
|
// the hub's full preview imports (opens) every document. An older hub ignores the flag.
|
|
154
160
|
body: JSON.stringify({
|
|
@@ -205,6 +211,7 @@ export function createHubFormatClient(
|
|
|
205
211
|
formatVersion,
|
|
206
212
|
...(expectEpoch !== undefined ? { expectEpoch } : {}),
|
|
207
213
|
}),
|
|
214
|
+
redirect: 'manual',
|
|
208
215
|
signal: AbortSignal.timeout(20_000),
|
|
209
216
|
});
|
|
210
217
|
const j = (await res.json().catch(() => null)) as {
|
|
@@ -28,12 +28,13 @@ export interface Notice {
|
|
|
28
28
|
placement?: 'top' | 'bottom';
|
|
29
29
|
/** A kit glyph name (STICONS) that overrides the kind's own. */
|
|
30
30
|
icon?: string;
|
|
31
|
-
action
|
|
31
|
+
/** `armAfterMs`: the action is inert (disabled, a click does nothing) that long after the notice appears. */
|
|
32
|
+
action?: { label: string; onClick: () => void; armAfterMs?: number };
|
|
32
33
|
onDismiss?: () => void;
|
|
33
34
|
}
|
|
34
35
|
/** `canvasTriggered` — shell words raised in direct response to a canvas message (V2-8.9 r2 C1): they rank
|
|
35
36
|
* below the shell's own notices, never above them. Set only by `notifyCanvasTriggered`. */
|
|
36
|
-
type Entry = Notice & { id: string; canvasTriggered?: boolean };
|
|
37
|
+
type Entry = Notice & { id: string; canvasTriggered?: boolean; actionArmedAt?: number };
|
|
37
38
|
let entries: Entry[] = [];
|
|
38
39
|
let sequence = 0;
|
|
39
40
|
const listeners = new Set<() => void>();
|
|
@@ -79,6 +80,9 @@ function upsert(input: Notice, canvasTriggered: boolean): string {
|
|
|
79
80
|
};
|
|
80
81
|
const id = notice.id ?? `notice-${++sequence}`;
|
|
81
82
|
const next: Entry = canvasTriggered ? { ...notice, id, canvasTriggered } : { ...notice, id };
|
|
83
|
+
// every (re)show re-arms: a reused notice whose words changed is inert again for its delay
|
|
84
|
+
const arm = notice.action?.armAfterMs;
|
|
85
|
+
if (typeof arm === 'number' && arm > 0) next.actionArmedAt = Date.now() + arm;
|
|
82
86
|
const existing = entries.findIndex((entry) => entry.id === id);
|
|
83
87
|
if (existing < 0) entries = [...entries, next];
|
|
84
88
|
else entries = entries.map((entry) => (entry.id === id ? next : entry));
|
|
@@ -177,10 +181,27 @@ export function summarizeNoticeText(text: unknown): string {
|
|
|
177
181
|
return compact.length > 280 ? `${compact.slice(0, 279)}…` : compact;
|
|
178
182
|
}
|
|
179
183
|
|
|
184
|
+
// #170 (T2.4b) — a toolbar popover is open inside the active canvas (`toolbar-popover`, use-canvas-bridge.jsx). The
|
|
185
|
+
// popovers open upward into the dock, so while one is open the toast stack steps to the top instead of covering it.
|
|
186
|
+
let canvasPopoverOpen = false;
|
|
187
|
+
const popoverListeners = new Set<() => void>();
|
|
188
|
+
export function setCanvasPopoverOpen(open: boolean): void {
|
|
189
|
+
if (canvasPopoverOpen === open) return;
|
|
190
|
+
canvasPopoverOpen = open;
|
|
191
|
+
for (const l of popoverListeners) l();
|
|
192
|
+
}
|
|
193
|
+
function subscribePopover(l: () => void): () => void {
|
|
194
|
+
popoverListeners.add(l);
|
|
195
|
+
return () => popoverListeners.delete(l);
|
|
196
|
+
}
|
|
197
|
+
const popoverSnapshot = () => canvasPopoverOpen;
|
|
198
|
+
|
|
180
199
|
/** ONE rule (v2-p8-c4-toast-dock-or-top): the pill sits in the dock — bottom-centre above the canvas toolbar —
|
|
181
200
|
* unless the caller says it is a state of the app (`placement: 'top'`) or the video timeline occupies the dock
|
|
182
|
-
* (07: Split / Captions added), where a bottom pill would cover it.
|
|
183
|
-
|
|
201
|
+
* (07: Split / Captions added), where a bottom pill would cover it. A canvas toolbar popover open in the dock
|
|
202
|
+
* (#170) moves every pill to the top while it is open — it is transient, and covering it is the bug. */
|
|
203
|
+
export function noticePlacement(entry: Notice): 'top' | 'bottom' {
|
|
204
|
+
if (canvasPopoverOpen) return 'top';
|
|
184
205
|
if (entry.placement) return entry.placement;
|
|
185
206
|
return typeof document !== 'undefined' && document.querySelector('.tl-track') ? 'top' : 'bottom';
|
|
186
207
|
}
|
|
@@ -197,6 +218,15 @@ const KIND_ICON: Partial<Record<NoticeKind, string>> = {
|
|
|
197
218
|
* carries a description or extra content wraps, but keeps the same pill. */
|
|
198
219
|
export function NoticeCard({ entry }: { entry: Entry }) {
|
|
199
220
|
const glyph = entry.icon ?? KIND_ICON[entry.kind ?? 'info'];
|
|
221
|
+
const armedAt = entry.actionArmedAt ?? 0;
|
|
222
|
+
const [armed, setArmed] = useState(() => Date.now() >= armedAt);
|
|
223
|
+
useEffect(() => {
|
|
224
|
+
const wait = armedAt - Date.now();
|
|
225
|
+
setArmed(wait <= 0);
|
|
226
|
+
if (wait <= 0) return;
|
|
227
|
+
const t = setTimeout(() => setArmed(true), wait);
|
|
228
|
+
return () => clearTimeout(t);
|
|
229
|
+
}, [armedAt]);
|
|
200
230
|
return (
|
|
201
231
|
<div
|
|
202
232
|
className="maude-notice"
|
|
@@ -219,7 +249,10 @@ export function NoticeCard({ entry }: { entry: Entry }) {
|
|
|
219
249
|
<button
|
|
220
250
|
type="button"
|
|
221
251
|
className="maude-notice-action"
|
|
252
|
+
disabled={!armed}
|
|
222
253
|
onClick={(event) => {
|
|
254
|
+
// inert until armed, even if a click reaches it some other way
|
|
255
|
+
if (Date.now() < armedAt) return;
|
|
223
256
|
event.currentTarget.blur();
|
|
224
257
|
entry.action?.onClick();
|
|
225
258
|
acknowledge(entry.id);
|
|
@@ -253,6 +286,8 @@ function MountedNotice({
|
|
|
253
286
|
paused: boolean;
|
|
254
287
|
}) {
|
|
255
288
|
const duration = noticeDuration(entry);
|
|
289
|
+
// #170 — re-place a shown pill when a canvas popover opens or closes (Sonner moves a toast whose id it knows)
|
|
290
|
+
const popoverOpen = useSyncExternalStore(subscribePopover, popoverSnapshot, popoverSnapshot);
|
|
256
291
|
const presentationId = useRef<string | null>(null);
|
|
257
292
|
const remaining = useRef(duration);
|
|
258
293
|
// biome-ignore lint/correctness/useExhaustiveDependencies: a new lifecycle phase gets a fresh duration.
|
|
@@ -272,6 +307,7 @@ function MountedNotice({
|
|
|
272
307
|
}, [visible, paused, entry.paused, duration, entry.timerKey, entry.id]);
|
|
273
308
|
// Sonner invokes onDismiss even for programmatic removal. Invalidate the
|
|
274
309
|
// presentation before hiding so opening history never acknowledges a job.
|
|
310
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: popoverOpen re-runs the placement (read inside noticePlacement)
|
|
275
311
|
useEffect(() => {
|
|
276
312
|
if (visible) {
|
|
277
313
|
const token = presentationId.current ?? `${entry.id}:view-${++sequence}`;
|
|
@@ -289,7 +325,7 @@ function MountedNotice({
|
|
|
289
325
|
presentationId.current = null;
|
|
290
326
|
toast.dismiss(token);
|
|
291
327
|
}
|
|
292
|
-
}, [entry, visible]);
|
|
328
|
+
}, [entry, visible, popoverOpen]);
|
|
293
329
|
useEffect(
|
|
294
330
|
() => () => {
|
|
295
331
|
const token = presentationId.current;
|
|
@@ -310,6 +346,12 @@ const NOTICE_CSS = `
|
|
|
310
346
|
.maude-notifications [data-sonner-toast][data-expanded=false][data-front=false] {
|
|
311
347
|
overflow: hidden; border-radius: var(--radius-md, 8px);
|
|
312
348
|
}
|
|
349
|
+
/* #170 R29: sonner's own 400 ms transform / opacity / height run on the shell's motion tokens instead (220 ms, no height
|
|
350
|
+
transition - a toast arrives and leaves, it does not grow), so reduced motion (which collapses the tokens) reaches them */
|
|
351
|
+
.maude-notifications [data-sonner-toast] {
|
|
352
|
+
transition: transform var(--dur-panel, 220ms) var(--ease-out, ease-out),
|
|
353
|
+
opacity var(--dur-panel, 220ms) var(--ease-out, ease-out), box-shadow var(--dur-soft, 160ms);
|
|
354
|
+
}
|
|
313
355
|
.maude-notifications[data-paused=true] { visibility: hidden; pointer-events: none; }
|
|
314
356
|
.maude-notice { box-sizing: border-box; position: relative; width: 100%; min-height: 40px;
|
|
315
357
|
padding: var(--space-1, 4px) var(--space-2, 8px) var(--space-1, 4px) var(--space-4, 16px);
|
package/apps/studio/paths.ts
CHANGED
|
@@ -107,7 +107,7 @@ export const SCHEMA_DIR: string = join(DEV_SERVER_ROOT, 'schema');
|
|
|
107
107
|
*/
|
|
108
108
|
export function pluginDirFrom(
|
|
109
109
|
devServerRoot: string,
|
|
110
|
-
plugin: 'design' | 'flow' | 'kgai'
|
|
110
|
+
plugin: 'design' | 'design-video' | 'flow' | 'kgai'
|
|
111
111
|
): string | null {
|
|
112
112
|
const dir = join(devServerRoot, '..', '..', 'plugins', plugin);
|
|
113
113
|
return existsSync(join(dir, '.claude-plugin', 'plugin.json')) ? dir : null;
|
|
@@ -116,6 +116,15 @@ export function pluginDirFrom(
|
|
|
116
116
|
/** Bundled `design` plugin tree, or `null` (npm/web layout). See {@link pluginDirFrom}. */
|
|
117
117
|
export const DESIGN_PLUGIN_DIR: string | null = pluginDirFrom(DEV_SERVER_ROOT, 'design');
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Bundled `design-video` plugin tree (the opt-in video split, DDR-249), or `null` (npm/web layout).
|
|
121
|
+
* See {@link pluginDirFrom}.
|
|
122
|
+
*/
|
|
123
|
+
export const DESIGN_VIDEO_PLUGIN_DIR: string | null = pluginDirFrom(
|
|
124
|
+
DEV_SERVER_ROOT,
|
|
125
|
+
'design-video'
|
|
126
|
+
);
|
|
127
|
+
|
|
119
128
|
/** Bundled `flow` plugin tree, or `null` (npm/web layout). See {@link pluginDirFrom}. */
|
|
120
129
|
export const FLOW_PLUGIN_DIR: string | null = pluginDirFrom(DEV_SERVER_ROOT, 'flow');
|
|
121
130
|
|
package/apps/studio/port.ts
CHANGED
|
@@ -36,7 +36,8 @@ export const E2E_PORT_BASE = 47399;
|
|
|
36
36
|
|
|
37
37
|
export function resolvePort(
|
|
38
38
|
argv: string[] = process.argv,
|
|
39
|
-
env: Record<string, string | undefined> = process.env
|
|
39
|
+
env: Record<string, string | undefined> = process.env,
|
|
40
|
+
release?: boolean
|
|
40
41
|
): { port: number; explicit: boolean } {
|
|
41
42
|
const i = argv.indexOf('--port');
|
|
42
43
|
if (i !== -1 && argv[i + 1]) return { port: Number(argv[i + 1]), explicit: true };
|
|
@@ -45,7 +46,7 @@ export function resolvePort(
|
|
|
45
46
|
const base = Number(env.MAUDE_PORT_BASE);
|
|
46
47
|
if (Number.isInteger(base) && base > 0 && base < 65536 - PORT_LADDER)
|
|
47
48
|
return { port: base, explicit: false };
|
|
48
|
-
if (isE2eEnv(env)) return { port: E2E_PORT_BASE, explicit: false };
|
|
49
|
+
if (isE2eEnv(env, release)) return { port: E2E_PORT_BASE, explicit: false };
|
|
49
50
|
if (env[APP_SIDECAR_ENV] === '1') return { port: APP_PORT_BASE, explicit: false };
|
|
50
51
|
return { port: CLI_DEFAULT_PORT, explicit: false };
|
|
51
52
|
}
|