@1agh/maude 2.0.3 → 2.0.6
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 +6 -5
- package/apps/hub/src/project-transactions/kernel.mjs +10 -1
- package/apps/studio/access/filters.ts +12 -5
- package/apps/studio/access/known-canvases.ts +24 -1
- package/apps/studio/access/refused-inputs.ts +89 -0
- package/apps/studio/access/request.ts +0 -1
- package/apps/studio/acp/adapter-stderr.ts +43 -13
- package/apps/studio/acp/background-tasks.ts +155 -0
- package/apps/studio/acp/bridge.ts +44 -5
- package/apps/studio/acp/connected-fact.ts +15 -4
- package/apps/studio/acp/index.ts +14 -5
- package/apps/studio/actions/agents.ts +10 -0
- package/apps/studio/actions/defs/app.ts +12 -0
- package/apps/studio/actions/defs/view.ts +12 -0
- package/apps/studio/actions.manifest.json +25 -1
- package/apps/studio/actions.parity.json +13 -1
- package/apps/studio/annotations/ui/element-node.tsx +139 -54
- package/apps/studio/annotations/ui/lod.tsx +1 -1
- package/apps/studio/annotations/ui/text-style.ts +1 -1
- package/apps/studio/annotations-layer.tsx +0 -12
- package/apps/studio/api.ts +73 -24
- package/apps/studio/artboard-live-gate.tsx +267 -0
- package/apps/studio/artboard-live.ts +336 -0
- package/apps/studio/artboard-webgl.ts +668 -0
- package/apps/studio/bin/_agent-browser-bin.mjs +8 -0
- package/apps/studio/bin/_agent-browser-safe.mjs +2 -1
- package/apps/studio/bin/_canvas-reasons.mjs +34 -0
- package/apps/studio/bin/_ds-check-live.mjs +37 -0
- package/apps/studio/bin/_ds-check.mjs +4 -1
- package/apps/studio/bin/_ds-prove-judge.mjs +167 -0
- package/apps/studio/bin/_ds-prove-playwright.mjs +183 -105
- package/apps/studio/bin/_import-asset.mjs +2 -1
- package/apps/studio/bin/_perf-probe.mjs +2 -1
- package/apps/studio/bin/_png-playwright.mjs +10 -1
- package/apps/studio/bin/_pw-launch.mjs +14 -0
- package/apps/studio/bin/_studio-verb.mjs +24 -3
- package/apps/studio/bin/_thumb-blank.mjs +70 -0
- package/apps/studio/bin/_thumb-cover.mjs +35 -0
- package/apps/studio/bin/_thumbs-playwright.mjs +93 -13
- package/apps/studio/bin/ds-check.sh +5 -1
- package/apps/studio/bin/perf.sh +11 -1
- package/apps/studio/bin/server-up.sh +7 -2
- package/apps/studio/bin/smoke.sh +19 -0
- package/apps/studio/boot-progress.ts +31 -0
- package/apps/studio/canvas-build-sandbox.ts +275 -42
- package/apps/studio/canvas-build-worker.ts +10 -0
- package/apps/studio/canvas-create.ts +24 -0
- package/apps/studio/canvas-lib.tsx +131 -12
- package/apps/studio/canvas-module-cache.ts +93 -0
- package/apps/studio/canvas-source/errors.ts +39 -0
- package/apps/studio/canvas-source/waiting.ts +290 -0
- package/apps/studio/client/actions/shell-key-handlers.js +5 -0
- package/apps/studio/client/app.jsx +19 -9
- package/apps/studio/client/canvas-url.js +13 -0
- package/apps/studio/client/github.js +23 -3
- package/apps/studio/client/home/HomeAccounts.jsx +262 -0
- package/apps/studio/client/home/Shelves.jsx +4 -3
- package/apps/studio/client/home/home-accounts-model.js +121 -0
- package/apps/studio/client/home/home-api.js +36 -19
- package/apps/studio/client/home/home-app.jsx +141 -40
- package/apps/studio/client/home/home-model.js +172 -6
- package/apps/studio/client/home/home.css +169 -5
- package/apps/studio/client/home/shell-mode.js +8 -1
- package/apps/studio/client/hooks/use-git-actions.jsx +2 -1
- package/apps/studio/client/hooks/use-project-data.jsx +2 -0
- package/apps/studio/client/hooks/use-shell-core.jsx +3 -0
- package/apps/studio/client/hooks/use-tabs.jsx +64 -35
- package/apps/studio/client/index-loader.ts +23 -3
- package/apps/studio/client/panels/ChatPanel.jsx +49 -57
- package/apps/studio/client/panels/CreateProject.jsx +19 -5
- package/apps/studio/client/panels/DiffView.jsx +314 -248
- package/apps/studio/client/panels/TeamProjects.jsx +119 -69
- package/apps/studio/client/panels/acp-runtime.js +25 -0
- package/apps/studio/client/panels/caps-cache.js +46 -0
- package/apps/studio/client/panels/chat-finish.js +66 -0
- package/apps/studio/client/shell/frame-cap.js +53 -0
- package/apps/studio/client/shell/viewport.jsx +45 -8
- package/apps/studio/client/styles/_index.css +2 -0
- package/apps/studio/client/tree/tree.jsx +48 -21
- package/apps/studio/client/v2/access/access-client.js +2 -0
- package/apps/studio/client/v2/access/access-host.jsx +12 -1
- package/apps/studio/client/v2/access/trashed-banner.jsx +6 -3
- package/apps/studio/client/v2/ai/Advanced.jsx +12 -0
- package/apps/studio/client/v2/ai/BackgroundStrip.jsx +120 -0
- package/apps/studio/client/v2/ai/Composer.jsx +27 -10
- package/apps/studio/client/v2/ai/StoppedDivider.jsx +2 -1
- package/apps/studio/client/v2/ai/ai-run.css +87 -3
- package/apps/studio/client/v2/ai/background-model.js +113 -0
- package/apps/studio/client/v2/ai/needs-you-store.js +2 -1
- package/apps/studio/client/v2/ai/run-api.js +7 -3
- package/apps/studio/client/v2/ai/runs-store.js +2 -1
- package/apps/studio/client/v2/annotations/vote-store.js +11 -5
- package/apps/studio/client/v2/assets/asset-state-lane.js +6 -3
- package/apps/studio/client/v2/assets/assets-bus.js +10 -8
- package/apps/studio/client/v2/assets/browse-view.jsx +2 -0
- package/apps/studio/client/v2/assets/ds-library-view.jsx +47 -0
- package/apps/studio/client/v2/assets/spotlight-model.js +75 -0
- package/apps/studio/client/v2/assets/spotlight.css +153 -0
- package/apps/studio/client/v2/assets/spotlight.jsx +199 -0
- package/apps/studio/client/v2/assets/tile-menu.jsx +3 -1
- package/apps/studio/client/v2/assets/tile.jsx +3 -0
- package/apps/studio/client/v2/assets/use-assets.js +2 -1
- package/apps/studio/client/v2/canvases/canvases-panel.jsx +13 -2
- package/apps/studio/client/v2/canvases/covers.js +11 -5
- package/apps/studio/client/v2/canvases/folder-ask.js +139 -0
- package/apps/studio/client/v2/canvases/folder-dialogs.jsx +150 -0
- package/apps/studio/client/v2/canvases/trash-canvas.js +10 -2
- package/apps/studio/client/v2/canvases/trash-queue.js +152 -0
- package/apps/studio/client/v2/canvases/use-canvas-index.js +42 -18
- package/apps/studio/client/v2/canvases/use-pins.js +2 -1
- package/apps/studio/client/v2/code/canvas-error-card.jsx +70 -5
- package/apps/studio/client/v2/code/canvas-imports-card.jsx +15 -14
- package/apps/studio/client/v2/code/canvas-imports-words.js +44 -0
- package/apps/studio/client/v2/code/canvas-waiting-card.jsx +128 -0
- package/apps/studio/client/v2/code/canvas-waiting.js +164 -0
- package/apps/studio/client/v2/code/code-bus.js +5 -0
- package/apps/studio/client/v2/code/code.css +67 -0
- package/apps/studio/client/v2/code/use-canvas-source.js +19 -4
- package/apps/studio/client/v2/create/NameDialog.jsx +4 -2
- package/apps/studio/client/v2/create/name-dialog.css +10 -0
- package/apps/studio/client/v2/ds/advanced-host.jsx +11 -23
- package/apps/studio/client/v2/ds/ds-refresh.js +161 -0
- package/apps/studio/client/v2/ds/library-host.jsx +45 -45
- package/apps/studio/client/v2/ds/make-host.jsx +13 -12
- package/apps/studio/client/v2/ds/off-system-host.jsx +18 -16
- package/apps/studio/client/v2/ds/review-host.jsx +7 -1
- package/apps/studio/client/v2/ds/truth-host.jsx +15 -14
- package/apps/studio/client/v2/ds/upgrade-host.jsx +26 -10
- package/apps/studio/client/v2/empty/arriving.jsx +29 -12
- package/apps/studio/client/v2/empty/empty-host.jsx +8 -2
- package/apps/studio/client/v2/empty/not-local.jsx +31 -1
- package/apps/studio/client/v2/empty/use-empty-canvas.js +10 -1
- package/apps/studio/client/v2/export/last-finished.js +2 -1
- package/apps/studio/client/v2/history/branch-actions.js +13 -9
- package/apps/studio/client/v2/history/git-advanced.jsx +8 -1
- package/apps/studio/client/v2/history/git-model.js +21 -5
- package/apps/studio/client/v2/history/git-parts.jsx +76 -43
- package/apps/studio/client/v2/history/history.css +6 -0
- package/apps/studio/client/v2/left-panel/assets-panel.jsx +87 -10
- package/apps/studio/client/v2/left-panel/use-trash.js +2 -1
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +100 -33
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +51 -83
- package/apps/studio/client/v2/onboarding/onboarding-model.js +10 -6
- package/apps/studio/client/v2/presence/faces.jsx +42 -14
- package/apps/studio/client/v2/present/order-notes-artboards.js +2 -1
- package/apps/studio/client/v2/search/search-recent.js +3 -1
- package/apps/studio/client/v2/search/search-remote.js +6 -4
- package/apps/studio/client/v2/settings/connections-model.js +1 -1
- package/apps/studio/client/v2/shell/account-card.jsx +10 -4
- package/apps/studio/client/v2/shell/canvas-crash-guard.js +137 -0
- package/apps/studio/client/v2/shell/github-signin-host.jsx +42 -0
- package/apps/studio/client/v2/shell/menu-runner.js +12 -0
- package/apps/studio/client/v2/shell/occlusion-insets.js +14 -2
- package/apps/studio/client/v2/shell/project-account-card.jsx +203 -0
- package/apps/studio/client/v2/shell/project-account-model.js +182 -0
- package/apps/studio/client/v2/shell/recovery-store.js +2 -1
- package/apps/studio/client/v2/shell/served-routes.js +120 -0
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +139 -11
- package/apps/studio/client/v2/shell/share-cluster.css +58 -0
- package/apps/studio/client/v2/shell/share-cluster.jsx +26 -7
- package/apps/studio/client/v2/shell/shell-activity.js +19 -0
- package/apps/studio/client/v2/shell/team-switch.js +94 -0
- package/apps/studio/client/v2/shell/too-heavy-card.jsx +38 -0
- package/apps/studio/client/v2/shell/use-account.js +8 -1
- package/apps/studio/client/v2/shell/use-occluded-insets.js +3 -0
- package/apps/studio/client/v2/sync-states/conflict-card.jsx +7 -2
- package/apps/studio/client/v2/undo/use-undo-projection.jsx +3 -1
- package/apps/studio/cloud/endpoints.ts +23 -1
- package/apps/studio/collab/persistence.ts +9 -1
- package/apps/studio/collab/registry.ts +32 -0
- package/apps/studio/collab/room.ts +8 -0
- package/apps/studio/config-reload-wire.ts +53 -0
- package/apps/studio/dist/client.bundle.js +1098 -1102
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/ds/board/specimen.tsx +12 -1
- package/apps/studio/ds/canvas-cli.ts +58 -2
- package/apps/studio/ds/check.ts +26 -1
- package/apps/studio/ds/cli.ts +7 -3
- package/apps/studio/ds/convert.ts +34 -6
- package/apps/studio/ds/ds-verb.ts +13 -0
- package/apps/studio/ds/post-build.ts +38 -0
- package/apps/studio/ds/upgrade-apply.ts +27 -5
- package/apps/studio/ds/upgrade-cli.ts +22 -2
- package/apps/studio/ds/upgrade-prove.ts +198 -15
- package/apps/studio/ds/upgrade-stage.ts +4 -1
- package/apps/studio/editing/minimap-context.tsx +3 -3
- package/apps/studio/editing/page-activity.ts +251 -0
- package/apps/studio/editing/rotate-handle.tsx +9 -5
- package/apps/studio/editing/sticky-name.tsx +4 -4
- package/apps/studio/history/restore-artboard-action.ts +40 -0
- package/apps/studio/history/trash.ts +6 -0
- package/apps/studio/home/accounts.ts +87 -0
- package/apps/studio/home/hub.ts +77 -175
- package/apps/studio/home/index-reader.ts +24 -2
- package/apps/studio/home/routes.ts +66 -8
- package/apps/studio/http.ts +131 -68
- package/apps/studio/index-flight.ts +40 -0
- package/apps/studio/managed-projects.ts +52 -24
- package/apps/studio/migrate/hub.ts +7 -1
- package/apps/studio/routes/canvas-source.ts +44 -2
- package/apps/studio/routes/ds-convert.ts +18 -0
- package/apps/studio/routes/history.ts +28 -5
- package/apps/studio/routes/hub-signin.ts +115 -0
- package/apps/studio/routes/index.ts +4 -0
- package/apps/studio/routes/table.ts +7 -0
- package/apps/studio/routes/trash.ts +19 -1
- package/apps/studio/server.ts +19 -10
- package/apps/studio/sync/accepted-cold-start.ts +54 -16
- package/apps/studio/sync/accepted-link.ts +9 -4
- package/apps/studio/sync/asset-push.ts +146 -23
- package/apps/studio/sync/asset-state.ts +3 -2
- package/apps/studio/sync/code-module-consent.ts +74 -0
- package/apps/studio/sync/file-ledger.ts +35 -0
- package/apps/studio/sync/file-membership.ts +28 -3
- package/apps/studio/sync/file-plane.ts +483 -86
- package/apps/studio/sync/file-pull.ts +304 -33
- package/apps/studio/sync/hub-browser-signin.ts +377 -0
- package/apps/studio/sync/hub-link.ts +1 -2
- package/apps/studio/sync/hub-text-undo.ts +30 -10
- package/apps/studio/sync/index.ts +381 -161
- package/apps/studio/sync/journal-client.ts +94 -5
- package/apps/studio/sync/pending-deletes.ts +100 -0
- package/apps/studio/sync/projection.ts +121 -14
- package/apps/studio/sync/pull-pacer.ts +160 -0
- package/apps/studio/sync/pull-priority.ts +119 -0
- package/apps/studio/sync/seed-progress.ts +58 -3
- package/apps/studio/sync/status.ts +3 -1
- package/apps/studio/sync/transaction-client.ts +71 -6
- package/apps/studio/sync/workspace-signin.ts +6 -256
- package/apps/studio/sync/writer-registry.ts +5 -1
- package/apps/studio/thumbs/service.ts +12 -2
- package/apps/studio/thumbs/validate.ts +7 -0
- package/apps/studio/ui-prefs-migrate.ts +4 -0
- package/apps/studio/video-comp.tsx +23 -0
- package/apps/studio/video-links-overlay.tsx +3 -2
- package/apps/studio/whats-new.json +126 -0
- package/cli/lib/bash-guard.mjs +13 -1
- package/cli/lib/design-help.gen.mjs +1 -1
- package/cli/lib/design-hook.mjs +20 -0
- package/cli/lib/studio-locate.mjs +35 -10
- package/cli/lib/workspace-plan.mjs +14 -0
- package/package.json +8 -8
|
@@ -890,6 +890,11 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
890
890
|
// a read for every role (GET /_api/asset-details): no per-role refusal row, so no `server` key (as S10.9's ds.show-reach)
|
|
891
891
|
agent: cli('maude design assets --usage <asset> --details'),
|
|
892
892
|
},
|
|
893
|
+
// 2.0.4 (#191) — View larger: a picture, clip or sound in a window over the person's screen. A read of a file the agent
|
|
894
|
+
// already has (`maude design assets`), so there is nothing for it to run.
|
|
895
|
+
'assets.spotlight': PREF(
|
|
896
|
+
"opens a large view on the person's screen; an agent reads the file itself"
|
|
897
|
+
),
|
|
893
898
|
// S8.20 — search in pictures: the person's own yes (or Stop) to describing their pictures with THEIR Claude account on
|
|
894
899
|
// THEIR Mac (V2-1.17 §5.9, Q9). An agent cannot say yes for the person whose account it spends.
|
|
895
900
|
'assets.describe': {
|
|
@@ -1695,6 +1700,11 @@ export const AGENT_PATHS: Readonly<Record<ActionId, ActionDefAI>> = {
|
|
|
1695
1700
|
effect: 'none',
|
|
1696
1701
|
agent: human('native-window', 'the desktop app’s profiles; an agent never picks an account'),
|
|
1697
1702
|
},
|
|
1703
|
+
// 2.0.5 W4: GitHub's device flow — a person types the code in their own browser.
|
|
1704
|
+
'account.github-signin': {
|
|
1705
|
+
effect: 'none',
|
|
1706
|
+
agent: human('native-window', 'GitHub’s device flow; an agent never signs anyone in'),
|
|
1707
|
+
},
|
|
1698
1708
|
// V2-3.9: the shell's tab bar — a person's window, never an agent's.
|
|
1699
1709
|
'tab.close': { effect: 'none', agent: human('native-window') },
|
|
1700
1710
|
'tab.next': { effect: 'none', agent: human('native-window') },
|
|
@@ -115,6 +115,18 @@ export const APP_ACTIONS: ActionDef[] = [
|
|
|
115
115
|
exec: 'shell',
|
|
116
116
|
visible: { shell: ['desktop', 'cloud'] },
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
// 2.0.5 W4: GitHub sign-in from anywhere — the avatar's card, ⌘K and every "Sign in with GitHub to
|
|
120
|
+
// publish" line. The shell's own device flow (`github_sign_in`, oauth.rs): it stores on THIS project's
|
|
121
|
+
// profile and, for another account on a shared profile, binds a new one (v2-3.8-bind-on-sign-in). The
|
|
122
|
+
// mounted host (github-signin-host.jsx) runs it and shows the code; a browser tab has no keychain.
|
|
123
|
+
id: 'account.github-signin',
|
|
124
|
+
label: 'Sign in with GitHub…',
|
|
125
|
+
kind: 'command',
|
|
126
|
+
exec: 'shell',
|
|
127
|
+
visible: { shell: ['desktop'] },
|
|
128
|
+
search: { keywords: ['github', 'sign in', 'login', 'publish', 'connect'] },
|
|
129
|
+
},
|
|
118
130
|
{
|
|
119
131
|
id: 'ai.chat',
|
|
120
132
|
label: 'AI chat',
|
|
@@ -181,6 +181,18 @@ export const VIEW_ACTIONS: ActionDef[] = [
|
|
|
181
181
|
],
|
|
182
182
|
search: { hidden: true },
|
|
183
183
|
},
|
|
184
|
+
{
|
|
185
|
+
// 2.0.4 (#191) — View larger: the picked tile's picture, clip or sound in a window (a double-click opens the same one).
|
|
186
|
+
// ← → walk the tiles the tab shows, esc or a click outside closes. A read, so every role has it. Only while a tile is
|
|
187
|
+
// picked and focus is in the tab (`assetTileSelected`) — Space is the Hand tool's key in the canvas, which this never is.
|
|
188
|
+
id: 'assets.spotlight',
|
|
189
|
+
label: 'View larger',
|
|
190
|
+
kind: 'command',
|
|
191
|
+
icon: 'image',
|
|
192
|
+
exec: 'shell',
|
|
193
|
+
keys: [kb('Space', 'selection', { when: { focus: ['chrome'], facts: ['assetTileSelected'] } })],
|
|
194
|
+
search: { hidden: true },
|
|
195
|
+
},
|
|
184
196
|
{
|
|
185
197
|
// S8.13 — Move to trash on the picked tile (its menu row; the tidy view's "Move 31 to the trash…" is the same route).
|
|
186
198
|
// A write: Can edit and up, refused by the server as well. The server also refuses a picture a canvas uses or an
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"generated": "scripts/gen-actions.mjs — do not edit by hand",
|
|
3
3
|
"format": "maude.actions-manifest",
|
|
4
4
|
"v": 1,
|
|
5
|
-
"manifestVersion": "
|
|
5
|
+
"manifestVersion": "3b10dc94b530",
|
|
6
6
|
"actions": [
|
|
7
7
|
{
|
|
8
8
|
"id": "search.open",
|
|
@@ -2048,6 +2048,18 @@
|
|
|
2048
2048
|
"verb": "maude design assets --usage <asset> --details"
|
|
2049
2049
|
}
|
|
2050
2050
|
},
|
|
2051
|
+
{
|
|
2052
|
+
"id": "assets.spotlight",
|
|
2053
|
+
"label": "View larger",
|
|
2054
|
+
"kind": "command",
|
|
2055
|
+
"exec": "shell",
|
|
2056
|
+
"effect": "none",
|
|
2057
|
+
"agent": {
|
|
2058
|
+
"path": "human",
|
|
2059
|
+
"because": "view-pref",
|
|
2060
|
+
"note": "opens a large view on the person's screen; an agent reads the file itself"
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2051
2063
|
{
|
|
2052
2064
|
"id": "assets.trash",
|
|
2053
2065
|
"label": "Move to trash",
|
|
@@ -4374,6 +4386,18 @@
|
|
|
4374
4386
|
"note": "the desktop app’s profiles; an agent never picks an account"
|
|
4375
4387
|
}
|
|
4376
4388
|
},
|
|
4389
|
+
{
|
|
4390
|
+
"id": "account.github-signin",
|
|
4391
|
+
"label": "Sign in with GitHub…",
|
|
4392
|
+
"kind": "command",
|
|
4393
|
+
"exec": "shell",
|
|
4394
|
+
"effect": "none",
|
|
4395
|
+
"agent": {
|
|
4396
|
+
"path": "human",
|
|
4397
|
+
"because": "native-window",
|
|
4398
|
+
"note": "GitHub’s device flow; an agent never signs anyone in"
|
|
4399
|
+
}
|
|
4400
|
+
},
|
|
4377
4401
|
{
|
|
4378
4402
|
"id": "ai.chat",
|
|
4379
4403
|
"label": "AI chat",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Lead-owned (contract V2-1.11 §5.7). humanMax/pendingMax may only be lowered; raising either, or adding a humanDecisions reason, is a lead change citing a decision id.",
|
|
3
|
-
"humanMax":
|
|
3
|
+
"humanMax": 177,
|
|
4
4
|
"pendingMax": 0,
|
|
5
5
|
"pending": [],
|
|
6
6
|
"humanDecisions": {
|
|
@@ -262,6 +262,18 @@
|
|
|
262
262
|
"from": 173,
|
|
263
263
|
"by": "decision:maude/v2-gate-b-sec3b-home-invite-actions-human",
|
|
264
264
|
"why": "gate-b-sec3b registers invite.join and invite.leave (Home › Shared with you: accept or turn down an invitation addressed to the person's own cloud account). Both human 'accounts': an agent invites others with share.invite but never answers for the person; the Home server holds the device token. Two human rows (raised from the current feat 172)."
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"to": 176,
|
|
268
|
+
"from": 175,
|
|
269
|
+
"by": "decision:maude/v2-204-asset-spotlight-registry-action",
|
|
270
|
+
"why": "2.0.4 (#191) registers assets.spotlight (View larger: the large preview of an Assets tile, dblclick / Space / tile menu). Human 'view-pref': it only changes what the person is looking at; an agent reads the file itself. One human row."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"to": 177,
|
|
274
|
+
"from": 176,
|
|
275
|
+
"by": "decision:maude/v2-205-w4-github-signin-action",
|
|
276
|
+
"why": "2.0.5 W4 registers account.github-signin (Sign in to GitHub from the account card: GitHub's device flow, the person types the code in their own browser). Human 'native-window': an agent never signs anyone in. One human row."
|
|
265
277
|
}
|
|
266
278
|
],
|
|
267
279
|
"humanMaxRaisedNote": "V2-5 A1 integration: the three slice raises stack on 86 (84 -> 86 by decision:maude/v2-4-gate-github-doors, human 'accounts'). S4.1/S4.3/S4.4 and S2.2-S2.4 add no human row. 86 + 4 + 6 + 4 = 100 human actions in the merged registry. V2-5 A2 integration: S5.4 builds `maude design runs list|stop`, so ai.runs.list and ai.stop turn cli (decision:maude/v2-S5.3-run-actions-human-until-s5.4 resolved by decision:maude/v2-S5.4-runs-fallback-prompts) and the cap lowers 100 -> 98; S3.1, S4.2, S4.5, S9.4, S2.5 and S1.4 add no human row. V2-5 A4 integration: measured 107 human actions in the merged registry (98 on feat + tool.pointer from S3.2b + 7 chat.advanced.* from S5.12 + object.select-matching from S2.6); every other A4 slice adds no human row. V2-5 A5 integration: measured 113 human actions in the merged registry (107 on feat + trash.clear from S1.7b + four ai.attach-* from S5.10 + present.presenter-view from S3.6b); every other A5 slice adds no human row. V2-5 A6a integration: measured 118 human actions in the merged registry (113 on feat + artboard.ask-ai S2.10 + element.set-id S2.2b/lead + edit.undo-history S2.20 + history.filter S1.12b − view.trash S1.17 (cli) + tab.overview + tab.rename S1.22b); every other A6a slice adds no human row."
|
|
@@ -41,7 +41,12 @@ import {
|
|
|
41
41
|
type WorldPoint,
|
|
42
42
|
} from '../../annotations-model.ts';
|
|
43
43
|
import { arrowPrimitives, type SvgPrimitive } from '../../canvas-arrowheads.ts';
|
|
44
|
-
import {
|
|
44
|
+
import {
|
|
45
|
+
countRender,
|
|
46
|
+
cssCounterScaledChrome,
|
|
47
|
+
screenSizedRef,
|
|
48
|
+
useLiveViewport,
|
|
49
|
+
} from '../../canvas-lib.tsx';
|
|
45
50
|
import { SECTION_FOLDED_H } from '../constants.ts';
|
|
46
51
|
import { authorLine, provenanceLine, relativeTime, tiltOf } from '../elements/sticky.model.ts';
|
|
47
52
|
import type { AnnotationElement } from '../types.ts';
|
|
@@ -283,6 +288,14 @@ export function stickyBoxPath(x: number, y: number, w: number, h: number, r: num
|
|
|
283
288
|
].join(' ');
|
|
284
289
|
}
|
|
285
290
|
|
|
291
|
+
/**
|
|
292
|
+
* The "lifted paper" shadow: feDropShadow dx 0 · dy 4 · stdDeviation 8 · #000 @ 0.28, as a CSS box-shadow (blur radius
|
|
293
|
+
* = 2 × stdDeviation). It is the same in both themes - the filter never read one. It is a box-shadow on the NODE, not
|
|
294
|
+
* an SVG filter on the shape: WebKit re-rasters the world layer at every zoom frame, and 221 software filters made each
|
|
295
|
+
* frame ~230 ms on the retention-ladder board (v2.0.5 annot-zoom).
|
|
296
|
+
*/
|
|
297
|
+
const PAPER_SHADOW = '0 4px 16px rgba(0, 0, 0, 0.28)';
|
|
298
|
+
|
|
286
299
|
function StickyView({ el, interactive, edit, quiet, selected, mine, typist }: ElementNodeProps) {
|
|
287
300
|
const x = num(el.x);
|
|
288
301
|
const y = num(el.y);
|
|
@@ -331,7 +344,17 @@ function StickyView({ el, interactive, edit, quiet, selected, mine, typist }: El
|
|
|
331
344
|
const shown = [line, origin, doneLine].filter(Boolean).join(' · ');
|
|
332
345
|
const pin = useTimePin(el); // S4.16 — the time chip, the fade off range, "Not printed"
|
|
333
346
|
return (
|
|
334
|
-
<Node
|
|
347
|
+
<Node
|
|
348
|
+
el={el}
|
|
349
|
+
x={x}
|
|
350
|
+
y={y}
|
|
351
|
+
w={w}
|
|
352
|
+
h={h}
|
|
353
|
+
rot={rot}
|
|
354
|
+
raised={!!edit}
|
|
355
|
+
extraAttrs={pin.attrs}
|
|
356
|
+
extraStyle={{ borderRadius: r, boxShadow: PAPER_SHADOW }}
|
|
357
|
+
>
|
|
335
358
|
<PinTags pin={pin} />
|
|
336
359
|
<Geo x={x} y={y} w={w} h={h}>
|
|
337
360
|
<path
|
|
@@ -340,7 +363,6 @@ function StickyView({ el, interactive, edit, quiet, selected, mine, typist }: El
|
|
|
340
363
|
stroke={aiMade ? AI_SPARK : 'rgba(0,0,0,0.05)'}
|
|
341
364
|
strokeWidth={aiMade ? 2 : 1}
|
|
342
365
|
vectorEffect="non-scaling-stroke"
|
|
343
|
-
filter="url(#dc-sticky-shadow)"
|
|
344
366
|
pointerEvents={hit(interactive)}
|
|
345
367
|
/>
|
|
346
368
|
{typist ? (
|
|
@@ -791,6 +813,9 @@ function ImageView({ el, interactive, resolveAsset }: ElementNodeProps) {
|
|
|
791
813
|
);
|
|
792
814
|
}
|
|
793
815
|
|
|
816
|
+
/** A link / media card is a rounded rect (rx 8) with the same lifted-paper shadow, on its node. */
|
|
817
|
+
const CARD_SHADOW_STYLE: CSSProperties = { borderRadius: 8, boxShadow: PAPER_SHADOW };
|
|
818
|
+
|
|
794
819
|
function LinkView({ el, interactive }: ElementNodeProps) {
|
|
795
820
|
const x = num(el.x);
|
|
796
821
|
const y = num(el.y);
|
|
@@ -799,7 +824,7 @@ function LinkView({ el, interactive }: ElementNodeProps) {
|
|
|
799
824
|
const lay = linkCardLayout(x, y, w, h);
|
|
800
825
|
const font = { fontFamily: TEXT_FONT } as const;
|
|
801
826
|
return (
|
|
802
|
-
<Node el={el} x={x} y={y} w={w} h={h} rot={num(el.rot)}>
|
|
827
|
+
<Node el={el} x={x} y={y} w={w} h={h} rot={num(el.rot)} extraStyle={CARD_SHADOW_STYLE}>
|
|
803
828
|
<Geo x={x} y={y} w={w} h={h}>
|
|
804
829
|
<g
|
|
805
830
|
data-url={str(el.url)}
|
|
@@ -818,7 +843,6 @@ function LinkView({ el, interactive }: ElementNodeProps) {
|
|
|
818
843
|
stroke={LINK_CARD_STROKE}
|
|
819
844
|
strokeWidth={1}
|
|
820
845
|
vectorEffect="non-scaling-stroke"
|
|
821
|
-
filter="url(#dc-sticky-shadow)"
|
|
822
846
|
/>
|
|
823
847
|
<svg
|
|
824
848
|
x={lay.glyph.x}
|
|
@@ -873,7 +897,7 @@ function MediaRefView({ el, interactive }: ElementNodeProps) {
|
|
|
873
897
|
const src = str(el.src);
|
|
874
898
|
const font = { fontFamily: TEXT_FONT } as const;
|
|
875
899
|
return (
|
|
876
|
-
<Node el={el} x={x} y={y} w={w} h={h} rot={num(el.rot)}>
|
|
900
|
+
<Node el={el} x={x} y={y} w={w} h={h} rot={num(el.rot)} extraStyle={CARD_SHADOW_STYLE}>
|
|
877
901
|
<Geo x={x} y={y} w={w} h={h}>
|
|
878
902
|
<g
|
|
879
903
|
data-src={src}
|
|
@@ -892,7 +916,6 @@ function MediaRefView({ el, interactive }: ElementNodeProps) {
|
|
|
892
916
|
stroke={LINK_CARD_STROKE}
|
|
893
917
|
strokeWidth={1}
|
|
894
918
|
vectorEffect="non-scaling-stroke"
|
|
895
|
-
filter="url(#dc-sticky-shadow)"
|
|
896
919
|
/>
|
|
897
920
|
<svg
|
|
898
921
|
x={x + 8}
|
|
@@ -945,22 +968,123 @@ export function sectionChip(label: string, zoom: number) {
|
|
|
945
968
|
return { fontSize, chipH, gap, padX, chipW };
|
|
946
969
|
}
|
|
947
970
|
|
|
948
|
-
|
|
949
|
-
el,
|
|
950
|
-
interactive,
|
|
951
|
-
edit,
|
|
952
|
-
note,
|
|
953
|
-
count,
|
|
954
|
-
}: {
|
|
971
|
+
type SectionChipProps = {
|
|
955
972
|
el: AnnotationElement;
|
|
956
973
|
interactive: boolean;
|
|
957
974
|
edit: EditRequest | null;
|
|
958
975
|
note?: string;
|
|
959
976
|
/** S4.13 - how many an open section holds, drawn as a small number after its name. */
|
|
960
977
|
count?: string;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* 2.0.5 W2 — on Blink the chip is drawn once at its SCREEN size and counter-scaled by CSS: the viewport
|
|
982
|
+
* controller writes `--dc-zoom` straight onto it (`screenSizedRef`, past the scene's `--dc-zoom` reset), so a
|
|
983
|
+
* pan/zoom gesture renders no chip — it re-rendered every chip at ~20 Hz from `useLiveViewport()`. It scales
|
|
984
|
+
* about the section's top-left corner, where it hangs from. WebKit (the desktop app) keeps the live-zoom chip:
|
|
985
|
+
* the per-frame transform was not shown to be free there (`cssCounterScaledChrome`).
|
|
986
|
+
*/
|
|
987
|
+
function SectionChip({ el, interactive, edit, note, count }: SectionChipProps) {
|
|
988
|
+
if (edit) return <SectionChipEditor el={el} interactive={interactive} edit={edit} />;
|
|
989
|
+
if (!cssCounterScaledChrome())
|
|
990
|
+
return <SectionChipLive el={el} interactive={interactive} note={note} count={count} />;
|
|
991
|
+
countRender('sectionChipRenders');
|
|
992
|
+
const { label, g, style, box } = sectionChipStyles(el, interactive, 1);
|
|
993
|
+
const lift = g.chipH + g.gap;
|
|
994
|
+
return (
|
|
995
|
+
<div
|
|
996
|
+
ref={screenSizedRef}
|
|
997
|
+
className="dc-annot-chip"
|
|
998
|
+
data-section-chip="1"
|
|
999
|
+
style={{
|
|
1000
|
+
...box,
|
|
1001
|
+
width: note || count ? undefined : g.chipW,
|
|
1002
|
+
whiteSpace: 'nowrap',
|
|
1003
|
+
transform: 'scale(calc(1 / var(--dc-zoom, 1)))',
|
|
1004
|
+
transformOrigin: `0 ${lift}px`,
|
|
1005
|
+
}}
|
|
1006
|
+
>
|
|
1007
|
+
<SectionChipTitle label={label} style={style} note={note} count={count} />
|
|
1008
|
+
</div>
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/** WebKit: the chip sized from the live zoom (re-renders with it), exactly as before 2.0.5. */
|
|
1013
|
+
function SectionChipLive({ el, interactive, note, count }: Omit<SectionChipProps, 'edit'>) {
|
|
1014
|
+
countRender('sectionChipRenders');
|
|
1015
|
+
// Counter-scaled chrome needs the live zoom, not the settle-cadence one.
|
|
1016
|
+
const zoom = useLiveViewport().zoom || 1;
|
|
1017
|
+
const { label, g, style, box } = sectionChipStyles(el, interactive, zoom);
|
|
1018
|
+
return (
|
|
1019
|
+
<div
|
|
1020
|
+
className="dc-annot-chip"
|
|
1021
|
+
data-section-chip="1"
|
|
1022
|
+
style={{ ...box, width: note || count ? undefined : g.chipW, whiteSpace: 'nowrap' }}
|
|
1023
|
+
>
|
|
1024
|
+
<SectionChipTitle label={label} style={style} note={note} count={count} />
|
|
1025
|
+
</div>
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
function SectionChipTitle({
|
|
1030
|
+
label,
|
|
1031
|
+
style,
|
|
1032
|
+
note,
|
|
1033
|
+
count,
|
|
1034
|
+
}: {
|
|
1035
|
+
label: string;
|
|
1036
|
+
style: CSSProperties;
|
|
1037
|
+
note?: string;
|
|
1038
|
+
count?: string;
|
|
961
1039
|
}) {
|
|
1040
|
+
return (
|
|
1041
|
+
<div className="dc-annot-text dc-annot-text--nowrap" style={style}>
|
|
1042
|
+
{label}
|
|
1043
|
+
{count ? (
|
|
1044
|
+
<span data-section-count="1" style={{ opacity: 0.65, marginLeft: 6, fontWeight: 500 }}>
|
|
1045
|
+
{count}
|
|
1046
|
+
</span>
|
|
1047
|
+
) : null}
|
|
1048
|
+
{note ? (
|
|
1049
|
+
<span data-fold-note="1" style={{ opacity: 0.75, marginLeft: 8, fontWeight: 500 }}>
|
|
1050
|
+
{note}
|
|
1051
|
+
</span>
|
|
1052
|
+
) : null}
|
|
1053
|
+
</div>
|
|
1054
|
+
);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/** Renaming a section: the editor sizes its text in world px, so it keeps the live-zoom sizing. */
|
|
1058
|
+
function SectionChipEditor({
|
|
1059
|
+
el,
|
|
1060
|
+
interactive,
|
|
1061
|
+
edit,
|
|
1062
|
+
}: Pick<SectionChipProps, 'el' | 'interactive'> & { edit: EditRequest }) {
|
|
1063
|
+
countRender('sectionChipRenders');
|
|
962
1064
|
// Counter-scaled chrome needs the live zoom, not the settle-cadence one.
|
|
963
1065
|
const zoom = useLiveViewport().zoom || 1;
|
|
1066
|
+
const { label, g, style, box } = sectionChipStyles(el, interactive, zoom);
|
|
1067
|
+
return (
|
|
1068
|
+
<div className="dc-annot-chip" style={{ ...box, zIndex: 1 }}>
|
|
1069
|
+
<TextEditor
|
|
1070
|
+
initialText={label}
|
|
1071
|
+
singleLine
|
|
1072
|
+
className="dc-annot-text dc-annot-text--nowrap"
|
|
1073
|
+
style={style}
|
|
1074
|
+
size={{ kind: 'fit-both', minWidth: g.chipW }}
|
|
1075
|
+
fmt={{ fontSize: g.fontSize }}
|
|
1076
|
+
caretPoint={edit.caretPoint}
|
|
1077
|
+
ariaLabel="Rename section"
|
|
1078
|
+
onCommit={edit.onCommit}
|
|
1079
|
+
onCancel={edit.onCancel}
|
|
1080
|
+
onDraft={edit.onDraft}
|
|
1081
|
+
/>
|
|
1082
|
+
</div>
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/** The chip's box + title styles at `zoom` (1 = screen px, for the CSS-scaled chip). */
|
|
1087
|
+
function sectionChipStyles(el: AnnotationElement, interactive: boolean, zoom: number) {
|
|
964
1088
|
const label = str(el.label, 'Section');
|
|
965
1089
|
const color = str(el.color, '#8a8a8a');
|
|
966
1090
|
const g = sectionChip(label, zoom);
|
|
@@ -982,46 +1106,7 @@ function SectionChip({
|
|
|
982
1106
|
backgroundColor: color,
|
|
983
1107
|
pointerEvents: interactive ? 'auto' : 'none',
|
|
984
1108
|
};
|
|
985
|
-
|
|
986
|
-
return (
|
|
987
|
-
<div className="dc-annot-chip" style={{ ...box, zIndex: 1 }}>
|
|
988
|
-
<TextEditor
|
|
989
|
-
initialText={label}
|
|
990
|
-
singleLine
|
|
991
|
-
className="dc-annot-text dc-annot-text--nowrap"
|
|
992
|
-
style={style}
|
|
993
|
-
size={{ kind: 'fit-both', minWidth: g.chipW }}
|
|
994
|
-
fmt={{ fontSize: g.fontSize }}
|
|
995
|
-
caretPoint={edit.caretPoint}
|
|
996
|
-
ariaLabel="Rename section"
|
|
997
|
-
onCommit={edit.onCommit}
|
|
998
|
-
onCancel={edit.onCancel}
|
|
999
|
-
onDraft={edit.onDraft}
|
|
1000
|
-
/>
|
|
1001
|
-
</div>
|
|
1002
|
-
);
|
|
1003
|
-
}
|
|
1004
|
-
return (
|
|
1005
|
-
<div
|
|
1006
|
-
className="dc-annot-chip"
|
|
1007
|
-
data-section-chip="1"
|
|
1008
|
-
style={{ ...box, width: note || count ? undefined : g.chipW, whiteSpace: 'nowrap' }}
|
|
1009
|
-
>
|
|
1010
|
-
<div className="dc-annot-text dc-annot-text--nowrap" style={style}>
|
|
1011
|
-
{label}
|
|
1012
|
-
{count ? (
|
|
1013
|
-
<span data-section-count="1" style={{ opacity: 0.65, marginLeft: 6, fontWeight: 500 }}>
|
|
1014
|
-
{count}
|
|
1015
|
-
</span>
|
|
1016
|
-
) : null}
|
|
1017
|
-
{note ? (
|
|
1018
|
-
<span data-fold-note="1" style={{ opacity: 0.75, marginLeft: 8, fontWeight: 500 }}>
|
|
1019
|
-
{note}
|
|
1020
|
-
</span>
|
|
1021
|
-
) : null}
|
|
1022
|
-
</div>
|
|
1023
|
-
</div>
|
|
1024
|
-
);
|
|
1109
|
+
return { label, g, style, box };
|
|
1025
1110
|
}
|
|
1026
1111
|
|
|
1027
1112
|
function SectionView({ el, interactive, edit, foldNote }: ElementNodeProps) {
|
|
@@ -118,7 +118,7 @@ function personLabel(key: string): string {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export const LOD_CSS = `
|
|
121
|
-
.dc-annot-lod { position: absolute; left: 0; top: 0; width: 0; height: 0; }
|
|
121
|
+
.dc-annot-lod { position: absolute; left: 0; top: 0; width: 0; height: 0; --dc-zoom: initial; }
|
|
122
122
|
.dc-annot-lod[data-quiet] { opacity: 0.45; }
|
|
123
123
|
.dc-annot-lod [data-lod] { position: absolute; box-sizing: border-box; pointer-events: none; }
|
|
124
124
|
.dc-annot-lod[data-live] [data-lod="section"] { pointer-events: auto; cursor: zoom-in; }
|
|
@@ -100,7 +100,7 @@ export function stripListMarkers(text: string, list?: ListStyle): string {
|
|
|
100
100
|
* like plain text (no border, no resize grip, inherited font).
|
|
101
101
|
*/
|
|
102
102
|
export const TEXT_LAYER_CSS = `
|
|
103
|
-
.dc-annot-scene { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; }
|
|
103
|
+
.dc-annot-scene { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; --dc-zoom: initial; }
|
|
104
104
|
.dc-annot-el { position: absolute; pointer-events: none; }
|
|
105
105
|
.dc-annot-el > svg.dc-annot-geo { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
|
|
106
106
|
.dc-annot-text { box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
|
|
@@ -5502,18 +5502,6 @@ function AnnotationsSvg({
|
|
|
5502
5502
|
data-selection={annotSel?.selectedIds.join(' ') ?? ''}
|
|
5503
5503
|
data-annot-state={gestureState}
|
|
5504
5504
|
>
|
|
5505
|
-
<defs>
|
|
5506
|
-
{/* Phase 21 — soft "lifted paper" drop shadow for sticky notes. */}
|
|
5507
|
-
<filter id="dc-sticky-shadow" x="-25%" y="-25%" width="150%" height="170%">
|
|
5508
|
-
<feDropShadow
|
|
5509
|
-
dx="0"
|
|
5510
|
-
dy="4"
|
|
5511
|
-
stdDeviation="8"
|
|
5512
|
-
floodColor="#000000"
|
|
5513
|
-
floodOpacity="0.28"
|
|
5514
|
-
/>
|
|
5515
|
-
</filter>
|
|
5516
|
-
</defs>
|
|
5517
5505
|
{selectedStrokes.map((s) => (
|
|
5518
5506
|
<SelectionHalo
|
|
5519
5507
|
key={`halo-${s.id}`}
|