@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
|
@@ -32,7 +32,10 @@ const NAV = (note: string): ActionDefAI => ({
|
|
|
32
32
|
agent: cli(`maude design open ${note}`),
|
|
33
33
|
});
|
|
34
34
|
const PREF = (note?: string): ActionDefAI => ({ effect: 'none', agent: human('view-pref', note) });
|
|
35
|
-
const TSX = (
|
|
35
|
+
const TSX = (
|
|
36
|
+
how: string,
|
|
37
|
+
skill: `design:${string}` | `design-video:${string}` = 'design:design'
|
|
38
|
+
): ActionDefAI => ({
|
|
36
39
|
effect: 'project',
|
|
37
40
|
agent: file('canvas-tsx', skill, how),
|
|
38
41
|
});
|
|
@@ -86,7 +89,7 @@ const VIDEO_OP = (agent: AgentPath): ActionDefAI => ({
|
|
|
86
89
|
});
|
|
87
90
|
|
|
88
91
|
const CLIP_MENU_TSX = (how: string): ActionDefAI =>
|
|
89
|
-
VIDEO_OP(file('canvas-tsx', 'design:video-comp', how));
|
|
92
|
+
VIDEO_OP(file('canvas-tsx', 'design-video:video-comp', how));
|
|
90
93
|
|
|
91
94
|
export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
92
95
|
// ── diagnostics (V2-4.7b) ──
|
|
@@ -213,6 +216,40 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
213
216
|
server: { route: '/_api/sync/held-deletes', method: 'POST' },
|
|
214
217
|
agent: human('hub-link', 'which deleted files stay on the hub is the person’s choice'),
|
|
215
218
|
},
|
|
219
|
+
// 2.1.1 T13 — the answer to a batch the PROJECT deleted, held on this Mac by the inbound breaker.
|
|
220
|
+
// Removing files from this Mac's project folder (into the trash) or keeping them is the person's call.
|
|
221
|
+
'sync.remove-held-here': {
|
|
222
|
+
effect: 'project',
|
|
223
|
+
minRole: 'edit',
|
|
224
|
+
server: { route: '/_api/sync/held-deletes', method: 'POST' },
|
|
225
|
+
agent: human(
|
|
226
|
+
'hub-link',
|
|
227
|
+
'removing a batch of the project’s files from this Mac is the person’s choice'
|
|
228
|
+
),
|
|
229
|
+
},
|
|
230
|
+
'sync.keep-held-here': {
|
|
231
|
+
effect: 'none',
|
|
232
|
+
minRole: 'edit',
|
|
233
|
+
server: { route: '/_api/sync/held-deletes', method: 'POST' },
|
|
234
|
+
agent: human('hub-link', 'which deleted files stay on this Mac is the person’s choice'),
|
|
235
|
+
},
|
|
236
|
+
// #167 T5.3 — a file the hub holds back from the code lane: adopting teammate bytes as the owner's code
|
|
237
|
+
// is the owner's own call (implicit adoption was rejected on purpose), never the AI's.
|
|
238
|
+
'sync.adopt-as-code': {
|
|
239
|
+
effect: 'shared',
|
|
240
|
+
minRole: 'edit',
|
|
241
|
+
server: { route: '/_api/sync/adopt-held', method: 'POST' },
|
|
242
|
+
agent: human('hub-link', 'adopting a held file as the owner’s code is the owner’s choice'),
|
|
243
|
+
},
|
|
244
|
+
// The canvas folders are `canvasGroups` in <designRoot>/config.json: the button opens the person's
|
|
245
|
+
// editor on it, like Open in editor.
|
|
246
|
+
'sync.open-canvas-folders': {
|
|
247
|
+
effect: 'none',
|
|
248
|
+
agent: human(
|
|
249
|
+
'native-window',
|
|
250
|
+
'opens the person’s editor on config.json; an agent edits canvasGroups itself'
|
|
251
|
+
),
|
|
252
|
+
},
|
|
216
253
|
// p8-held-conflict-status — the two versions of a held source conflict (read only): this Mac's file and
|
|
217
254
|
// the project's, kept in `_history/<slug>/sync-recovery/`. `maude design sync status` lists the slugs.
|
|
218
255
|
// No `server`: the action itself only opens a sheet; the read under it is Sync details' own GET.
|
|
@@ -360,12 +397,16 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
360
397
|
'canvas.reload': PREF('reloads the user’s view; the studio reloads on every file change'),
|
|
361
398
|
'canvas.new-video': TSX(
|
|
362
399
|
`Create it with \`maude design curl-local http://127.0.0.1:<port>/_api/canvas --method POST --header "Content-Type: application/json" --data '{"kind":"video-comp","name":"<name>","clips":[]}'\` (port: .design/_server.json; the answer's rel is the file), then Edit that video-comp .tsx`,
|
|
363
|
-
'design:video-comp'
|
|
400
|
+
'design-video:video-comp'
|
|
364
401
|
),
|
|
365
402
|
'canvas.close': PREF('closes the user’s tab'),
|
|
366
403
|
'video.assemble': {
|
|
367
404
|
effect: 'project',
|
|
368
|
-
agent: file(
|
|
405
|
+
agent: file(
|
|
406
|
+
'edl',
|
|
407
|
+
'design-video:footage-director',
|
|
408
|
+
'Write the <slug>.edl.json cut, then the comp'
|
|
409
|
+
),
|
|
369
410
|
},
|
|
370
411
|
// ── video tools (S7.6c, V2-1.10 §5.7): the UI's writes are edit ops (`POST /_api/edit-op`, minRole
|
|
371
412
|
// edit — the server refuses below it); an agent runs the verb that ends in the same op, or writes
|
|
@@ -374,14 +415,14 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
374
415
|
'video.captions.style': VIDEO_OP(
|
|
375
416
|
file(
|
|
376
417
|
'canvas-tsx',
|
|
377
|
-
'design:video-comp',
|
|
418
|
+
'design-video:video-comp',
|
|
378
419
|
'Set words / position / font / highlight / maxChars on the comp’s one <Captions>'
|
|
379
420
|
)
|
|
380
421
|
),
|
|
381
422
|
'video.captions.fix-word': VIDEO_OP(
|
|
382
423
|
file(
|
|
383
424
|
'canvas-tsx',
|
|
384
|
-
'design:video-comp',
|
|
425
|
+
'design-video:video-comp',
|
|
385
426
|
'Add { src, at, text } to <Captions fixes> as a JSON literal (text null hides the word)'
|
|
386
427
|
)
|
|
387
428
|
),
|
|
@@ -411,14 +452,14 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
411
452
|
'video.music.duck': VIDEO_OP(
|
|
412
453
|
file(
|
|
413
454
|
'canvas-tsx',
|
|
414
|
-
'design:video-comp',
|
|
455
|
+
'design-video:video-comp',
|
|
415
456
|
'Wrap the one music <Audio> in <Duck db attackMs releaseMs>; unwrap to turn it off'
|
|
416
457
|
)
|
|
417
458
|
),
|
|
418
459
|
'video.music.volume': VIDEO_OP(
|
|
419
460
|
file(
|
|
420
461
|
'canvas-tsx',
|
|
421
|
-
'design:video-comp',
|
|
462
|
+
'design-video:video-comp',
|
|
422
463
|
'Set the literal volume (0..1) of the music <Audio>; 1 removes the prop'
|
|
423
464
|
)
|
|
424
465
|
),
|
|
@@ -428,23 +469,31 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
428
469
|
minRole: 'edit',
|
|
429
470
|
agent: file(
|
|
430
471
|
'canvas-meta',
|
|
431
|
-
'design:video-comp',
|
|
472
|
+
'design-video:video-comp',
|
|
432
473
|
'artboardMeta.<id>.snap: "beat" | "off" in the canvas .meta.json'
|
|
433
474
|
),
|
|
434
475
|
},
|
|
435
476
|
'video.reframe': VIDEO_OP(
|
|
436
477
|
file(
|
|
437
478
|
'canvas-tsx',
|
|
438
|
-
'design:video-comp',
|
|
479
|
+
'design-video:video-comp',
|
|
439
480
|
'Wrap the clip’s media in <Reframe focus zoom formats> (source-second keyframes, sorted)'
|
|
440
481
|
)
|
|
441
482
|
),
|
|
483
|
+
// #128 §5 (T3.6b) — the on-canvas pan / zoom handle writes exactly what video.reframe writes
|
|
484
|
+
'video.frame-handle': VIDEO_OP(
|
|
485
|
+
file(
|
|
486
|
+
'canvas-tsx',
|
|
487
|
+
'design-video:video-comp',
|
|
488
|
+
'Move or zoom the clip’s picture: <Reframe focus zoom> on its media, the same write as video.reframe'
|
|
489
|
+
)
|
|
490
|
+
),
|
|
442
491
|
// S7.18 — a keyframe's curve: `{ easing: Easing.bezier(a, b, c, d) }` on the k-th interpolate(frame, …) of the clip's
|
|
443
492
|
// component, `Easing` imported from remotion. The Timeline's Advanced draws it as cubic-bezier(a, b, c, d).
|
|
444
493
|
'video.easing.set': VIDEO_OP(
|
|
445
494
|
file(
|
|
446
495
|
'canvas-tsx',
|
|
447
|
-
'design:video-comp',
|
|
496
|
+
'design-video:video-comp',
|
|
448
497
|
'Add { easing: Easing.bezier(a, b, c, d) } as the options of the k-th interpolate(frame, …) in the clip’s component; import Easing from remotion'
|
|
449
498
|
)
|
|
450
499
|
),
|
|
@@ -454,7 +503,7 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
454
503
|
minRole: 'edit',
|
|
455
504
|
agent: file(
|
|
456
505
|
'canvas-meta',
|
|
457
|
-
'design:video-comp',
|
|
506
|
+
'design-video:video-comp',
|
|
458
507
|
'artboardMeta.<id>.maxFrames: an integer up to 18000 in the canvas .meta.json (3600 without it)'
|
|
459
508
|
),
|
|
460
509
|
},
|
|
@@ -464,7 +513,7 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
464
513
|
minRole: 'edit',
|
|
465
514
|
agent: file(
|
|
466
515
|
'canvas-meta',
|
|
467
|
-
'design:video-comp',
|
|
516
|
+
'design-video:video-comp',
|
|
468
517
|
'artboardMeta.<id>.markers: a list of { frame, name } in the canvas .meta.json (an integer frame ≥ 0, a plain-text name up to 60 characters, one per frame, at most 200)'
|
|
469
518
|
),
|
|
470
519
|
},
|
|
@@ -473,7 +522,7 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
473
522
|
minRole: 'edit',
|
|
474
523
|
agent: file(
|
|
475
524
|
'canvas-meta',
|
|
476
|
-
'design:video-comp',
|
|
525
|
+
'design-video:video-comp',
|
|
477
526
|
'Remove the entry from artboardMeta.<id>.markers in the canvas .meta.json (an empty list takes them all away)'
|
|
478
527
|
),
|
|
479
528
|
},
|
|
@@ -486,49 +535,49 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
486
535
|
minRole: 'edit',
|
|
487
536
|
agent: file(
|
|
488
537
|
'canvas-meta',
|
|
489
|
-
'design:video-comp',
|
|
538
|
+
'design-video:video-comp',
|
|
490
539
|
'artboardMeta.<id>.poster: a comp frame, in the canvas .meta.json'
|
|
491
540
|
),
|
|
492
541
|
},
|
|
493
542
|
'video.format.add': VIDEO_OP(
|
|
494
543
|
file(
|
|
495
544
|
'canvas-tsx',
|
|
496
|
-
'design:video-comp',
|
|
545
|
+
'design-video:video-comp',
|
|
497
546
|
'Copy the video DCArtboard with a new id and size; its <VideoComp> keeps component={X} (linked)'
|
|
498
547
|
)
|
|
499
548
|
),
|
|
500
549
|
'video.format.unlink': VIDEO_OP(
|
|
501
550
|
file(
|
|
502
551
|
'canvas-tsx',
|
|
503
|
-
'design:video-comp',
|
|
552
|
+
'design-video:video-comp',
|
|
504
553
|
'Copy the comp under a new name and point this artboard’s <VideoComp component> at it'
|
|
505
554
|
)
|
|
506
555
|
),
|
|
507
556
|
'video.take.swap': VIDEO_OP(
|
|
508
557
|
file(
|
|
509
558
|
'canvas-tsx',
|
|
510
|
-
'design:video-comp',
|
|
559
|
+
'design-video:video-comp',
|
|
511
560
|
'Set the clip media’s trimBefore (output frames) to the other take; keep durationInFrames'
|
|
512
561
|
)
|
|
513
562
|
),
|
|
514
563
|
'video.fit': VIDEO_OP(
|
|
515
564
|
file(
|
|
516
565
|
'canvas-tsx',
|
|
517
|
-
'design:video-comp',
|
|
566
|
+
'design-video:video-comp',
|
|
518
567
|
'Set fit="fit" | "blur" on the clip’s <Reframe> (fill is the default)'
|
|
519
568
|
)
|
|
520
569
|
),
|
|
521
570
|
'video.place': VIDEO_OP(
|
|
522
571
|
file(
|
|
523
572
|
'canvas-tsx',
|
|
524
|
-
'design:video-comp',
|
|
573
|
+
'design-video:video-comp',
|
|
525
574
|
'Wrap the title’s content in <Place at={[x, y]} formats={{ "16:9": [x, y] }}> (centre anchor, fractions of the output frame)'
|
|
526
575
|
)
|
|
527
576
|
),
|
|
528
577
|
'video.title.motion': VIDEO_OP(
|
|
529
578
|
file(
|
|
530
579
|
'canvas-tsx',
|
|
531
|
-
'design:video-comp',
|
|
580
|
+
'design-video:video-comp',
|
|
532
581
|
'Wrap the title’s content in <TitleMotion preset="none|fade|slide-up|pop|type-on|per-word" frames={12}> (inside its <Place> when it has one); none takes the wrapper off'
|
|
533
582
|
)
|
|
534
583
|
),
|
|
@@ -536,14 +585,14 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
536
585
|
'video.title.style': VIDEO_OP(
|
|
537
586
|
file(
|
|
538
587
|
'canvas-tsx',
|
|
539
|
-
'design:video-comp',
|
|
588
|
+
'design-video:video-comp',
|
|
540
589
|
'Set fontFamily "var(--font-…)" (a design-system font token) and color (a token or one plain CSS colour) in the style object literal of the element holding the title’s words; remove the property to take it off'
|
|
541
590
|
)
|
|
542
591
|
),
|
|
543
592
|
'video.transition.set': VIDEO_OP(
|
|
544
593
|
file(
|
|
545
594
|
'canvas-tsx',
|
|
546
|
-
'design:video-comp',
|
|
595
|
+
'design-video:video-comp',
|
|
547
596
|
'Set presentation={fade() | slide() | wipe() | flip() | clockWipe(…) | none()} and the timing frames on the <TransitionSeries.Transition> at the join (Cut is none())'
|
|
548
597
|
)
|
|
549
598
|
),
|
|
@@ -595,6 +644,7 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
595
644
|
'Read the artboard’s JSX in the source (the clipboard is the person’s)'
|
|
596
645
|
),
|
|
597
646
|
},
|
|
647
|
+
'artboard.cut': TSX('Move the artboard’s JSX in the source (the clipboard is the person’s)'),
|
|
598
648
|
'canvas.paste': TSX(
|
|
599
649
|
'Write the JSX into the source; a copy gets new element ids (the clipboard is the user’s)'
|
|
600
650
|
),
|
|
@@ -1304,21 +1354,21 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1304
1354
|
'timeline.trim': VIDEO_OP(
|
|
1305
1355
|
file(
|
|
1306
1356
|
'canvas-tsx',
|
|
1307
|
-
'design:video-comp',
|
|
1357
|
+
'design-video:video-comp',
|
|
1308
1358
|
'Set the clip’s durationInFrames (later beats close up; the comp’s total follows the last clip)'
|
|
1309
1359
|
)
|
|
1310
1360
|
),
|
|
1311
1361
|
'timeline.move-clip': VIDEO_OP(
|
|
1312
1362
|
file(
|
|
1313
1363
|
'canvas-tsx',
|
|
1314
|
-
'design:video-comp',
|
|
1364
|
+
'design-video:video-comp',
|
|
1315
1365
|
'Move a series beat before or after another (with its transition), or set a layer’s from'
|
|
1316
1366
|
)
|
|
1317
1367
|
),
|
|
1318
1368
|
'timeline.add-clips': VIDEO_OP(
|
|
1319
1369
|
file(
|
|
1320
1370
|
'canvas-tsx',
|
|
1321
|
-
'design:video-comp',
|
|
1371
|
+
'design-video:video-comp',
|
|
1322
1372
|
'Add a <Sequence> with the media at the end (or between two beats); the total grows by its length'
|
|
1323
1373
|
)
|
|
1324
1374
|
),
|
|
@@ -1371,7 +1421,10 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1371
1421
|
'Swap the beat with the one after it (with its transition); a layer moves down the stack'
|
|
1372
1422
|
),
|
|
1373
1423
|
'timeline.clip-menu.replace-layer': CLIP_MENU_TSX('Change that layer’s media src'),
|
|
1374
|
-
'timeline.split': TSX(
|
|
1424
|
+
'timeline.split': TSX(
|
|
1425
|
+
'Split the clip into two sequences at the frame',
|
|
1426
|
+
'design-video:video-comp'
|
|
1427
|
+
),
|
|
1375
1428
|
'timeline.zoom-in': PREF(),
|
|
1376
1429
|
'timeline.zoom-out': PREF(),
|
|
1377
1430
|
'timeline.zoom-fit': PREF(),
|
|
@@ -1401,7 +1454,7 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1401
1454
|
agent: cli('maude design export <format> --scope selection|canvas|folder|project'),
|
|
1402
1455
|
},
|
|
1403
1456
|
// S8.10 — Handoff to production writes code into the project (one AI run, its target file only; the server
|
|
1404
|
-
// refuses below Can edit). An agent runs the same verb (`--target web`), or /design:to-rn and /design:to-lottie.
|
|
1457
|
+
// refuses below Can edit). An agent runs the same verb (`--target web`), or /design:to-rn and /design-video:to-lottie.
|
|
1405
1458
|
// Opening the sheet changes nothing (fromCanvas ⇒ effect none, V2-1.3 inv. 3); the sheet's Hand off is the write (POST /_api/handoff, Can edit).
|
|
1406
1459
|
'handoff.open': { effect: 'none', agent: cli('maude design handoff') },
|
|
1407
1460
|
'export.rerun-last': {
|
|
@@ -1416,6 +1469,13 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1416
1469
|
server: { route: '/_api/export-jobs/retry', method: 'POST' },
|
|
1417
1470
|
agent: cli('maude design exports retry <id> [--item <id,…>]'),
|
|
1418
1471
|
},
|
|
1472
|
+
// #128 T3.7b — Cancel a running cloud export: the owner's own job only, a stranger's id is a missing one.
|
|
1473
|
+
'export.cancel': {
|
|
1474
|
+
effect: 'project',
|
|
1475
|
+
minRole: 'comment',
|
|
1476
|
+
server: { route: '/_api/export-jobs/cancel', method: 'POST' },
|
|
1477
|
+
agent: cli('maude design exports cancel <id>'),
|
|
1478
|
+
},
|
|
1419
1479
|
'share.open': { effect: 'shared', agent: human('links') },
|
|
1420
1480
|
// S9.20: where the hub has links, the owner's Copy link makes the project's link (POST); everyone
|
|
1421
1481
|
// else copies the location, which grants nothing. Making a link is the owner's, refused there.
|
|
@@ -1659,6 +1719,18 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1659
1719
|
server: { route: '/_api/votes/end', method: 'POST' },
|
|
1660
1720
|
agent: human('vote', 'the counts and the result section: `maude design read-annotations`'),
|
|
1661
1721
|
},
|
|
1722
|
+
// #113 — a checklist is a sticky with `checkitem` records (list, text, done); the AI writes them through annotate.
|
|
1723
|
+
'annotation.make-checklist': BOARD(
|
|
1724
|
+
'Add checkitem records whose list is the sticky’s id (its task lines become the entries, the rest stays its text)'
|
|
1725
|
+
),
|
|
1726
|
+
'checklist.toggle': BOARD('Set the checkitem’s done to { by, at }; remove it to untick'),
|
|
1727
|
+
'checklist.edit': BOARD('Change the checkitem’s text field'),
|
|
1728
|
+
'checklist.add-below': BOARD('Add a checkitem with the same list, ordered after this one'),
|
|
1729
|
+
'checklist.remove-empty': BOARD('Remove the empty checkitem from the annotations file'),
|
|
1730
|
+
'checklist.move-up': BOARD('Change the checkitem’s index so it sorts before the one above'),
|
|
1731
|
+
'checklist.move-down': BOARD('Change the checkitem’s index so it sorts after the one below'),
|
|
1732
|
+
'checklist.focus-prev': { effect: 'none', agent: cli('maude design read-annotations') },
|
|
1733
|
+
'checklist.focus-next': { effect: 'none', agent: cli('maude design read-annotations') },
|
|
1662
1734
|
'annotation.point-to': BOARD(
|
|
1663
1735
|
'Set the arrow’s startHost / endHost to the new ab:<artboard> or el:<artboard>/<id> ref (with the name it is shown under) and move its start / end cache to where the host is'
|
|
1664
1736
|
),
|
|
@@ -1754,6 +1826,16 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1754
1826
|
effect: 'none',
|
|
1755
1827
|
agent: human('native-window', 'the desktop app’s profiles; an agent never picks an account'),
|
|
1756
1828
|
},
|
|
1829
|
+
// 2.1.1 B1: a new Maude Cloud account signs in in the person's own browser.
|
|
1830
|
+
'account.add-cloud': {
|
|
1831
|
+
effect: 'none',
|
|
1832
|
+
agent: human('native-window', 'Maude Cloud’s sign-in page; an agent never signs anyone in'),
|
|
1833
|
+
},
|
|
1834
|
+
// 2.1.1 B2: linking a server is a sign-in on that server's page, in the person's own browser.
|
|
1835
|
+
'account.link-server': {
|
|
1836
|
+
effect: 'none',
|
|
1837
|
+
agent: human('native-window', 'the server’s sign-in page; an agent never signs anyone in'),
|
|
1838
|
+
},
|
|
1757
1839
|
// 2.0.5 W4: GitHub's device flow — a person types the code in their own browser.
|
|
1758
1840
|
'account.github-signin': {
|
|
1759
1841
|
effect: 'none',
|
|
@@ -29,13 +29,15 @@ export function resolveCanvasKey(
|
|
|
29
29
|
/** The shell's "Single-key shortcuts" switch (bridge `key-prefs`, canvas-mode-store); absent = on. */
|
|
30
30
|
singleKeys?: boolean,
|
|
31
31
|
/** S3.11 — what the canvas has selected, for a binding keyed to it (`inspect.edit`); absent = 'none'. */
|
|
32
|
-
selection?: SelKind
|
|
32
|
+
selection?: SelKind,
|
|
33
|
+
/** #113 — focus is on a checklist row or in an entry (the `checkItemFocused` fact). */
|
|
34
|
+
checkItemFocused?: boolean
|
|
33
35
|
): ActionId | null {
|
|
34
36
|
return (
|
|
35
37
|
resolveChord(
|
|
36
38
|
index,
|
|
37
39
|
chordFromEvent(e),
|
|
38
|
-
canvasKeyCtx({ typing, readOnly: false, mode, singleKeys, selection })
|
|
40
|
+
canvasKeyCtx({ typing, readOnly: false, mode, singleKeys, selection, checkItemFocused })
|
|
39
41
|
)?.action.id ?? null
|
|
40
42
|
);
|
|
41
43
|
}
|
|
@@ -102,6 +102,8 @@ export interface CanvasKeyState {
|
|
|
102
102
|
toolArmed?: boolean;
|
|
103
103
|
/** S8.16 — the selected picture has other takes (the shell's `gen-takes`): ← → are not a nudge then. */
|
|
104
104
|
selectionHasTakes?: boolean;
|
|
105
|
+
/** #113 — focus is on a checklist row or in an entry's text (annotations/ui/checklist.tsx). */
|
|
106
|
+
checkItemFocused?: boolean;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
/** The canvas iframe's KeyCtx for a keydown it received. */
|
|
@@ -115,6 +117,7 @@ export function canvasKeyCtx(s: CanvasKeyState): KeyCtx {
|
|
|
115
117
|
facts: new Set<Fact>([
|
|
116
118
|
...(s.toolArmed ? (['toolArmed'] as const) : []),
|
|
117
119
|
...(s.selectionHasTakes ? (['selectionHasTakes'] as const) : []),
|
|
120
|
+
...(s.checkItemFocused ? (['checkItemFocused'] as const) : []),
|
|
118
121
|
]),
|
|
119
122
|
...(s.singleKeys === false ? { singleKeys: false } : {}),
|
|
120
123
|
};
|
|
@@ -11,6 +11,16 @@ const ANN = { ...IN_CANVAS, selection: ['annotation' as const] };
|
|
|
11
11
|
// S2.6: the chords an Edit-mode OBJECT op also binds (⌘G ⇧⌘G ⇧⌘L ] [ ⌘] ⌘[) belong to the board only in
|
|
12
12
|
// Preview — in Edit, annotations are quiet and click-through, so a press never reaches a sticky.
|
|
13
13
|
const ANN_PREVIEW = { ...ANN, mode: ['preview' as const] };
|
|
14
|
+
// #113 — a checklist row (or an entry being typed in) has the keys while it has focus. The layer reports the
|
|
15
|
+
// sticky's selection kind ('annotation') whenever a row has focus, so these share the annotation scope.
|
|
16
|
+
const ROW = {
|
|
17
|
+
focus: ['canvas' as const],
|
|
18
|
+
selection: ['annotation' as const],
|
|
19
|
+
facts: ['checkItemFocused' as const],
|
|
20
|
+
};
|
|
21
|
+
const ENTRY = { ...ROW, focus: ['text' as const] };
|
|
22
|
+
// …and the sticky's own keys stand aside on that row (↑ ↓ move between rows, ↵ edits the entry).
|
|
23
|
+
const ANN_NOT_ROW = { ...ANN, notFacts: ['checkItemFocused' as const] };
|
|
14
24
|
const ann = (id: string, label: string, keys: ReturnType<typeof kb>[]): ActionDef => ({
|
|
15
25
|
id,
|
|
16
26
|
label,
|
|
@@ -19,6 +29,77 @@ const ann = (id: string, label: string, keys: ReturnType<typeof kb>[]): ActionDe
|
|
|
19
29
|
keys,
|
|
20
30
|
});
|
|
21
31
|
|
|
32
|
+
/** #113 (contract 113-checklist §5.5) — a checklist's rows. The layer answers them (keys through
|
|
33
|
+
* `useCanvasKeys`, ⌘K rows on the `run-action` lane); a tick works on a locked list, the rest do not. */
|
|
34
|
+
const check = (
|
|
35
|
+
id: string,
|
|
36
|
+
label: string,
|
|
37
|
+
keys: ReturnType<typeof kb>[],
|
|
38
|
+
extra: Partial<ActionDef> = {}
|
|
39
|
+
): ActionDef => ({
|
|
40
|
+
id,
|
|
41
|
+
label,
|
|
42
|
+
kind: 'command',
|
|
43
|
+
exec: 'canvas',
|
|
44
|
+
enabled: { minRole: 'edit', selection: ['annotation'] },
|
|
45
|
+
keys,
|
|
46
|
+
...extra,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const CHECKLIST_ACTIONS: ActionDef[] = [
|
|
50
|
+
{
|
|
51
|
+
id: 'annotation.make-checklist',
|
|
52
|
+
label: 'Turn into checklist',
|
|
53
|
+
kind: 'command',
|
|
54
|
+
exec: 'canvas',
|
|
55
|
+
enabled: { minRole: 'edit', selection: ['annotation'] },
|
|
56
|
+
search: { keywords: ['checklist', 'todo', 'to-do', 'tasks', 'tick', 'sticky', 'list'] },
|
|
57
|
+
},
|
|
58
|
+
// ⌘↵ in an entry ticks it; outside an entry ⌘↵ stays `annotation.chain` (focus: canvas).
|
|
59
|
+
check(
|
|
60
|
+
'checklist.toggle',
|
|
61
|
+
'Tick / untick',
|
|
62
|
+
[kb('Space', 'selection', { when: ROW }), kb('⌘↵', 'selection', { when: ENTRY, inText: true })],
|
|
63
|
+
{ search: { keywords: ['tick', 'check', 'done', 'todo', 'checklist'] } }
|
|
64
|
+
),
|
|
65
|
+
check('checklist.edit', 'Edit item', [kb('↵', 'selection', { when: ROW })], {
|
|
66
|
+
search: { keywords: ['checklist', 'item', 'rename', 'reword'] },
|
|
67
|
+
}),
|
|
68
|
+
check(
|
|
69
|
+
'checklist.add-below',
|
|
70
|
+
'Add an item',
|
|
71
|
+
[kb('↵', 'selection', { when: ENTRY, inText: true })],
|
|
72
|
+
{
|
|
73
|
+
search: { keywords: ['checklist', 'item', 'add', 'todo', 'new'] },
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
check(
|
|
77
|
+
'checklist.remove-empty',
|
|
78
|
+
'Remove the empty item',
|
|
79
|
+
[kb('⌫', 'selection', { when: ENTRY, inText: true })],
|
|
80
|
+
{ search: { keywords: ['checklist', 'item', 'remove', 'delete'] } }
|
|
81
|
+
),
|
|
82
|
+
check(
|
|
83
|
+
'checklist.move-up',
|
|
84
|
+
'Move item up',
|
|
85
|
+
[kb('⌥⌘↑', 'selection', { when: { ...ROW, focus: ['canvas', 'text'] }, inText: true })],
|
|
86
|
+
{ search: { keywords: ['checklist', 'reorder', 'up'] } }
|
|
87
|
+
),
|
|
88
|
+
check(
|
|
89
|
+
'checklist.move-down',
|
|
90
|
+
'Move item down',
|
|
91
|
+
[kb('⌥⌘↓', 'selection', { when: { ...ROW, focus: ['canvas', 'text'] }, inText: true })],
|
|
92
|
+
{ search: { keywords: ['checklist', 'reorder', 'down'] } }
|
|
93
|
+
),
|
|
94
|
+
// Roving focus between rows (one tab stop per list): never a ⌘K row.
|
|
95
|
+
check('checklist.focus-prev', 'Previous item', [kb('↑', 'selection', { when: ROW })], {
|
|
96
|
+
search: { hidden: true },
|
|
97
|
+
}),
|
|
98
|
+
check('checklist.focus-next', 'Next item', [kb('↓', 'selection', { when: ROW })], {
|
|
99
|
+
search: { hidden: true },
|
|
100
|
+
}),
|
|
101
|
+
];
|
|
102
|
+
|
|
22
103
|
export const ANNOTATION_ACTIONS: ActionDef[] = [
|
|
23
104
|
ann('annotation.group', 'Group', [kb('⌘G', 'selection', { when: ANN_PREVIEW })]),
|
|
24
105
|
ann('annotation.ungroup', 'Ungroup', [kb('⇧⌘G', 'selection', { when: ANN_PREVIEW })]),
|
|
@@ -31,11 +112,11 @@ export const ANNOTATION_ACTIONS: ActionDef[] = [
|
|
|
31
112
|
ann('annotation.copy', 'Copy', [kb('⌘C', 'selection', { when: ANN })]),
|
|
32
113
|
ann('annotation.cut', 'Cut', [kb('⌘X', 'selection', { when: ANN })]),
|
|
33
114
|
ann('annotation.chain', 'Add the next one', [kb('⌘↵', 'selection', { when: ANN })]),
|
|
34
|
-
ann('annotation.edit-text', 'Edit text', [kb('↵', 'selection', { when:
|
|
115
|
+
ann('annotation.edit-text', 'Edit text', [kb('↵', 'selection', { when: ANN_NOT_ROW })]),
|
|
35
116
|
ann(
|
|
36
117
|
'annotation.nudge',
|
|
37
118
|
'Nudge',
|
|
38
|
-
['←', '→', '↑', '↓'].flatMap((a) => mods(a, '⇧', 'selection', { when:
|
|
119
|
+
['←', '→', '↑', '↓'].flatMap((a) => mods(a, '⇧', 'selection', { when: ANN_NOT_ROW }))
|
|
39
120
|
),
|
|
40
121
|
ann('annotation.remove', 'Remove', [
|
|
41
122
|
...mods('⌫', '⇧', 'selection', { when: ANN }),
|
|
@@ -99,6 +180,7 @@ export const ANNOTATION_ACTIONS: ActionDef[] = [
|
|
|
99
180
|
keys: [kb('⌘/', 'selection', { when: ANN_PREVIEW })],
|
|
100
181
|
search: { keywords: ['ask ai', 'sticky', 'section', 'selection'] },
|
|
101
182
|
},
|
|
183
|
+
...CHECKLIST_ACTIONS,
|
|
102
184
|
];
|
|
103
185
|
|
|
104
186
|
// S4.9 (C29): resolved stickies stay struck through in place; this hides them for the person who
|
|
@@ -109,11 +109,38 @@ export const APP_ACTIONS: ActionDef[] = [
|
|
|
109
109
|
// from the Share panel as usual. V2-4.8a: a CLOUD tab has it too — there it ends the browser session
|
|
110
110
|
// (the v1 menubar's account chip + "Sign out", Cloud Phase 27 C4: who you are, and how to stop
|
|
111
111
|
// being them) and the hub asks for a sign-in again; the row shows the account's email.
|
|
112
|
+
// 2.1.1 T4 (canvas 17 · ac-switch): on the desktop it opens the avatar menu's Switch account list —
|
|
113
|
+
// the accounts already on this Mac and "No account — this Mac only" (`project_use_account`, a
|
|
114
|
+
// confirm sheet first). It never moves a project to a fresh, empty account any more.
|
|
112
115
|
id: 'account.switch',
|
|
113
|
-
label: '
|
|
116
|
+
label: 'Switch account…',
|
|
114
117
|
kind: 'command',
|
|
115
118
|
exec: 'shell',
|
|
116
119
|
visible: { shell: ['desktop', 'cloud'] },
|
|
120
|
+
search: { keywords: ['account', 'sign in', 'profile', 'no account', 'this mac only'] },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
// 2.1.1 T4 — the Switch account list's foot: a Maude Cloud account this Mac does not hold yet. The
|
|
124
|
+
// V2-3.8 path: `cloud_sign_in_prepare` (a profile already signed in to Maude Cloud is never
|
|
125
|
+
// re-signed — the project moves to a fresh profile of its own, and the page reloads), then the cloud
|
|
126
|
+
// sign-in in Settings › Connections.
|
|
127
|
+
id: 'account.add-cloud',
|
|
128
|
+
label: 'Add a Maude Cloud account…',
|
|
129
|
+
kind: 'command',
|
|
130
|
+
exec: 'shell',
|
|
131
|
+
visible: { shell: ['desktop'] },
|
|
132
|
+
search: { keywords: ['cloud', 'sign in', 'account', 'login'] },
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
// 2.1.1 T3/T4/T5 — "Link your server…" / "Sign in with custom server…": the one team-server dialog
|
|
136
|
+
// (B2 wires it: it hears the `maude:link-server` event and prevents its default). Until it is there
|
|
137
|
+
// the row opens Settings › Connections, where today's team-server dialog lives.
|
|
138
|
+
id: 'account.link-server',
|
|
139
|
+
label: 'Link your server…',
|
|
140
|
+
kind: 'command',
|
|
141
|
+
exec: 'shell',
|
|
142
|
+
visible: { shell: ['desktop', 'browser'] },
|
|
143
|
+
search: { keywords: ['team server', 'hub', 'self-hosted', 'custom server', 'sign in', 'link'] },
|
|
117
144
|
},
|
|
118
145
|
{
|
|
119
146
|
// 2.0.5 W4: GitHub sign-in from anywhere — the avatar's card, ⌘K and every "Sign in with GitHub to
|
|
@@ -203,6 +203,19 @@ export const EDIT_ACTIONS: ActionDef[] = [
|
|
|
203
203
|
search: { hidden: true },
|
|
204
204
|
help: { group: 'objects', order: 903 },
|
|
205
205
|
},
|
|
206
|
+
{
|
|
207
|
+
// #122 — ⌘X on an artboard selection: the copy and the move to the Trash in ONE write (edit-ops
|
|
208
|
+
// `artboard.cut`), so a cut board nobody pastes is in the Trash, not only in a forgettable clip. The paste
|
|
209
|
+
// is its own action on the other canvas, in that canvas's own ⌘Z.
|
|
210
|
+
id: 'artboard.cut',
|
|
211
|
+
label: 'Cut artboard',
|
|
212
|
+
kind: 'command',
|
|
213
|
+
exec: 'canvas',
|
|
214
|
+
enabled: { ...EDITS, selection: ['artboard'] },
|
|
215
|
+
keys: [kb('⌘X', 'selection', { when: { ...OBJ, mode: ['edit'], selection: ['artboard'] } })],
|
|
216
|
+
search: { hidden: true },
|
|
217
|
+
help: { group: 'objects', order: 904 },
|
|
218
|
+
},
|
|
206
219
|
{
|
|
207
220
|
id: 'canvas.paste',
|
|
208
221
|
label: 'Paste objects',
|
|
@@ -94,6 +94,18 @@ export const EXPORT_ACTIONS: ActionDef[] = [
|
|
|
94
94
|
visible: { minRole: 'comment' },
|
|
95
95
|
search: { hidden: true },
|
|
96
96
|
},
|
|
97
|
+
// #128 T3.7b — "Cancel" on a running cloud export (client/v2/export/job-row.jsx, testid
|
|
98
|
+
// `export-job-cancel-<id>`): stops it, which also stops it on the render service, through
|
|
99
|
+
// POST /_api/export-jobs/cancel (the export class, the owner's jobs only). A row action, so it is
|
|
100
|
+
// hidden from ⌘K: it needs the job it acts on.
|
|
101
|
+
{
|
|
102
|
+
id: 'export.cancel',
|
|
103
|
+
label: 'Cancel',
|
|
104
|
+
kind: 'command',
|
|
105
|
+
exec: 'shell',
|
|
106
|
+
visible: { minRole: 'comment' },
|
|
107
|
+
search: { hidden: true },
|
|
108
|
+
},
|
|
97
109
|
// ── no key in v1 ──
|
|
98
110
|
{
|
|
99
111
|
id: 'share.open',
|
|
@@ -54,6 +54,24 @@ export const SYNC_ACTIONS: ActionDef[] = [
|
|
|
54
54
|
// one confirmed batch, or keep the files on the hub (`POST /_api/sync/held-deletes { answer }`).
|
|
55
55
|
pick('sync.delete-held-on-hub', 'Move to the hub’s trash too…'),
|
|
56
56
|
pick('sync.keep-held-on-hub', 'Keep on the hub'),
|
|
57
|
+
// 2.1.1 T13 — Sync details › Deleted by the project, held here: file the batch into the trash on this
|
|
58
|
+
// Mac, or keep this Mac's copies (`POST /_api/sync/held-deletes { answer: remove-here | keep-here }`).
|
|
59
|
+
pick('sync.remove-held-here', 'Remove here too'),
|
|
60
|
+
pick('sync.keep-held-here', 'Keep them here'),
|
|
61
|
+
// #167 T5.3 — Sync details › a file the hub holds back from the code lane (the owner's held list):
|
|
62
|
+
// keep it as code (`POST /_api/sync/adopt-held { path }` → the hub's owner-only adopt door), or open
|
|
63
|
+
// the canvas folders (config.json `canvasGroups`) to keep it as a canvas. The second is the Mac
|
|
64
|
+
// app's native editor door, like Open in editor.
|
|
65
|
+
pick('sync.adopt-as-code', 'Adopt as code'),
|
|
66
|
+
{
|
|
67
|
+
id: 'sync.open-canvas-folders',
|
|
68
|
+
label: 'Open canvas folders',
|
|
69
|
+
kind: 'command',
|
|
70
|
+
icon: 'folder',
|
|
71
|
+
exec: 'native',
|
|
72
|
+
visible: { shell: ['desktop'], facts: ['native'], minRole: 'edit' },
|
|
73
|
+
search: ROW,
|
|
74
|
+
},
|
|
57
75
|
// Get latest (moved here from Version history) and Sign in again: every role keeps them
|
|
58
76
|
{ id: 'sync.get-latest', label: 'Get latest', kind: 'command', exec: 'shell', search: ROW },
|
|
59
77
|
{ id: 'sync.sign-in-again', label: 'Sign in again', kind: 'command', exec: 'shell', search: ROW },
|
|
@@ -64,6 +64,15 @@ export const VIDEO_ACTIONS: ActionDef[] = [
|
|
|
64
64
|
keywords: ['reframe', 'crop', 'framing', 'vertical', 'focus', 'window'],
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
|
+
// #128 §5 (T3.6b) — bound: the clip inspector's "Move on canvas" and ⌘K turn the on-canvas pan / zoom handle of the
|
|
68
|
+
// selected clip on and off (editing/video-frame-handle.tsx draws it; the write is video.reframe)
|
|
69
|
+
{
|
|
70
|
+
...row('video.frame-handle', 'Move and zoom on the canvas', 'Timeline › Clip'),
|
|
71
|
+
search: {
|
|
72
|
+
where: 'Timeline › Clip',
|
|
73
|
+
keywords: ['move', 'zoom', 'pan', 'crop', 'position', 'scale', 'drag', 'video', 'framing'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
67
76
|
// S7.8 — bound: the playhead's frame becomes the poster (`artboardMeta.poster`), from ⌘K and the Poster flag on
|
|
68
77
|
// the ruler. The inspector's Poster section (S7.5+) places the same id.
|
|
69
78
|
{
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
// belongs to — and its `when.focus` already does: chrome / timeline / modal are shell foci, canvas
|
|
6
6
|
// is the iframe's; a binding without a focus list belongs to both (the canvas forwards it when its
|
|
7
7
|
// action is `fromCanvas`, V2-1.3 §5.7). Timeline-layer bindings need timeline focus — shell only.
|
|
8
|
+
// A binding whose ONLY foci are text fields (#113: a checklist entry being typed in) is the canvas's —
|
|
9
|
+
// the shell's own text bindings always name a shell focus beside it.
|
|
8
10
|
|
|
9
11
|
import { indexKeys, type KeyIndex } from './resolve.ts';
|
|
10
12
|
import type { ActionDef, ActionId, KeyBinding, KeyedAction } from './types.ts';
|
|
@@ -19,7 +21,10 @@ export function bindingInDocument(b: KeyBinding, doc: KeyDocument): boolean {
|
|
|
19
21
|
!focus ||
|
|
20
22
|
focus.some((f) => f === 'chrome' || f === 'timeline' || f === 'modal')
|
|
21
23
|
);
|
|
22
|
-
return
|
|
24
|
+
return (
|
|
25
|
+
b.layer !== 'timeline' &&
|
|
26
|
+
(!focus || focus.includes('canvas') || focus.every((f) => f === 'text'))
|
|
27
|
+
);
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
/** The index one document resolves: the bindings it owns, of the actions it has handlers for. */
|