synabun 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/README.md +1 -1
- package/docs/whatsapp.md +52 -20
- package/hooks/claude-code/pre-websearch.mjs +4 -1
- package/hooks/claude-code/prompt-submit.mjs +7 -0
- package/lib/mcp-build.js +519 -0
- package/lib/mcp-dist.js +10 -4
- package/lib/release-scan.mjs +23 -10
- package/lib/server-supervisor.js +7 -1
- package/lib/virustotal.mjs +146 -40
- package/mcp-server/dist/http.d.ts +57 -0
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +128 -18
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +14 -9
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.d.ts +119 -0
- package/mcp-server/dist/services/browser-route-flow.d.ts.map +1 -0
- package/mcp-server/dist/services/browser-route-flow.js +340 -0
- package/mcp-server/dist/services/browser-route-flow.js.map +1 -0
- package/mcp-server/dist/services/desktop-client.js +2 -2
- package/mcp-server/dist/services/desktop-client.js.map +1 -1
- package/mcp-server/dist/services/embedding-service.d.ts.map +1 -1
- package/mcp-server/dist/services/embedding-service.js +2 -1
- package/mcp-server/dist/services/embedding-service.js.map +1 -1
- package/mcp-server/dist/services/identity.d.ts +66 -3
- package/mcp-server/dist/services/identity.d.ts.map +1 -1
- package/mcp-server/dist/services/identity.js +61 -4
- package/mcp-server/dist/services/identity.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +133 -1
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +630 -64
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +2 -2
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +3 -2
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +6 -4
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/bluesky.d.ts +20 -7
- package/mcp-server/dist/tools/bluesky.d.ts.map +1 -1
- package/mcp-server/dist/tools/bluesky.js +147 -45
- package/mcp-server/dist/tools/bluesky.js.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts +13 -2
- package/mcp-server/dist/tools/browser-advanced.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.js +153 -18
- package/mcp-server/dist/tools/browser-advanced.js.map +1 -1
- package/mcp-server/dist/tools/browser-cheatsheet.d.ts +2 -0
- package/mcp-server/dist/tools/browser-cheatsheet.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-cheatsheet.js +3 -0
- package/mcp-server/dist/tools/browser-cheatsheet.js.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.d.ts +3 -3
- package/mcp-server/dist/tools/browser-navigate.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.js +19 -16
- package/mcp-server/dist/tools/browser-navigate.js.map +1 -1
- package/mcp-server/dist/tools/browser-observe.d.ts +2 -1
- package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-observe.js +61 -20
- package/mcp-server/dist/tools/browser-observe.js.map +1 -1
- package/mcp-server/dist/tools/morelogin.d.ts +13 -3
- package/mcp-server/dist/tools/morelogin.d.ts.map +1 -1
- package/mcp-server/dist/tools/morelogin.js +82 -19
- package/mcp-server/dist/tools/morelogin.js.map +1 -1
- package/mcp-server/dist/tools/skill-tools.d.ts +4 -4
- package/mcp-server/dist/tools/youtube/helpers.d.ts +1 -0
- package/mcp-server/dist/tools/youtube/helpers.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.js +225 -88
- package/mcp-server/dist/tools/youtube/upload.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +135 -17
- package/mcp-server/src/index.ts +15 -9
- package/mcp-server/src/services/browser-route-flow.ts +403 -0
- package/mcp-server/src/services/desktop-client.ts +2 -2
- package/mcp-server/src/services/embedding-service.ts +2 -1
- package/mcp-server/src/services/identity.ts +80 -4
- package/mcp-server/src/services/neural-interface.ts +648 -73
- package/mcp-server/src/services/tool-catalog.ts +2 -2
- package/mcp-server/src/tools/agents.ts +8 -4
- package/mcp-server/src/tools/bluesky.ts +164 -51
- package/mcp-server/src/tools/browser-advanced.ts +142 -17
- package/mcp-server/src/tools/browser-cheatsheet.ts +3 -0
- package/mcp-server/src/tools/browser-navigate.ts +19 -16
- package/mcp-server/src/tools/browser-observe.ts +62 -20
- package/mcp-server/src/tools/morelogin.ts +82 -19
- package/mcp-server/src/tools/youtube/helpers.ts +2 -2
- package/mcp-server/src/tools/youtube/upload.ts +218 -99
- package/neural-interface/i18n/en.json +655 -123
- package/neural-interface/i18n/pt-BR.json +542 -10
- package/neural-interface/lib/assistant-api.js +90 -23
- package/neural-interface/lib/assistant-brains/claude.js +5 -0
- package/neural-interface/lib/assistant-catalog.js +134 -3
- package/neural-interface/lib/assistant-dispatch.js +97 -1
- package/neural-interface/lib/assistant-persona.js +15 -7
- package/neural-interface/lib/assistant-router.js +6 -4
- package/neural-interface/lib/assistant-runtime.js +18 -1
- package/neural-interface/lib/assistant-task-prompt.js +5 -0
- package/neural-interface/lib/assistant-tools.js +10 -1
- package/neural-interface/lib/automation-approval.js +249 -0
- package/neural-interface/lib/automation-browser-owner-access.js +82 -0
- package/neural-interface/lib/backup-service.js +16 -1
- package/neural-interface/lib/browser-automation-routes.js +84 -0
- package/neural-interface/lib/browser-background-tab.js +72 -3
- package/neural-interface/lib/browser-execution.js +16 -3
- package/neural-interface/lib/browser-extraction.js +106 -45
- package/neural-interface/lib/browser-owner.js +48 -0
- package/neural-interface/lib/browser-profile-choices.js +143 -0
- package/neural-interface/lib/browser-profiles.js +142 -0
- package/neural-interface/lib/browser-session-close.js +84 -0
- package/neural-interface/lib/browser-start-handoff.js +202 -0
- package/neural-interface/lib/browser-tab-recovery.js +153 -0
- package/neural-interface/lib/browser-tool-policy.js +23 -4
- package/neural-interface/lib/browser-wedge-retire.js +64 -0
- package/neural-interface/lib/chromium-on-device-model.js +67 -0
- package/neural-interface/lib/claude-agent-bridge.js +43 -5
- package/neural-interface/lib/claude-background-hold.js +239 -0
- package/neural-interface/lib/claude-model-catalog.js +12 -0
- package/neural-interface/lib/effort-levels.js +28 -2
- package/neural-interface/lib/exec-loop-command.js +8 -0
- package/neural-interface/lib/http-guards.js +11 -6
- package/neural-interface/lib/local-profile-proxy.js +362 -0
- package/neural-interface/lib/local-profiles.js +929 -0
- package/neural-interface/lib/loop-logger.js +31 -5
- package/neural-interface/lib/maritaca/api.js +179 -0
- package/neural-interface/lib/maritaca/attachments.js +44 -0
- package/neural-interface/lib/maritaca/client.js +362 -0
- package/neural-interface/lib/maritaca/key-store.js +122 -0
- package/neural-interface/lib/maritaca/models.js +181 -0
- package/neural-interface/lib/maritaca/modes.js +39 -0
- package/neural-interface/lib/maritaca/opencode-proxy.js +236 -0
- package/neural-interface/lib/maritaca/opencode-stream.js +345 -0
- package/neural-interface/lib/maritaca/opencode.js +218 -0
- package/neural-interface/lib/maritaca/panel-bridge.js +273 -0
- package/neural-interface/lib/maritaca/sessions.js +198 -0
- package/neural-interface/lib/mcp-external-servers.js +37 -10
- package/neural-interface/lib/morelogin-agent-profiles.js +149 -0
- package/neural-interface/lib/morelogin.js +278 -14
- package/neural-interface/lib/native-loop-providers.js +124 -11
- package/neural-interface/lib/native-loop-runtime.js +112 -11
- package/neural-interface/lib/owner-authority.js +137 -43
- package/neural-interface/lib/page-session.js +111 -27
- package/neural-interface/lib/peer-identity.js +263 -43
- package/neural-interface/lib/provider-panel-api-key-auth.js +7 -2
- package/neural-interface/lib/pty-host/core.js +36 -0
- package/neural-interface/lib/pty-host/protocol.js +2 -0
- package/neural-interface/lib/request-gate.js +2 -0
- package/neural-interface/lib/skills/api-v2.js +13 -2
- package/neural-interface/lib/skills/creation-api.js +3 -1
- package/neural-interface/lib/skills/evals-api.js +5 -1
- package/neural-interface/lib/social-write-pacing.js +151 -0
- package/neural-interface/lib/system-activity.js +1 -1
- package/neural-interface/lib/terminal-token-redaction.js +293 -0
- package/neural-interface/lib/terminal-tokens.js +436 -0
- package/neural-interface/lib/worker-mcp-channel.js +45 -10
- package/neural-interface/package-lock.json +3 -2
- package/neural-interface/package.json +2 -1
- package/neural-interface/public/assets/mascot/README.md +11 -0
- package/neural-interface/public/assets/mascot/ask.gif +0 -0
- package/neural-interface/public/assets/mascot/ask.png +0 -0
- package/neural-interface/public/assets/mascot/blocked.gif +0 -0
- package/neural-interface/public/assets/mascot/blocked.png +0 -0
- package/neural-interface/public/assets/mascot/budget.gif +0 -0
- package/neural-interface/public/assets/mascot/budget.png +0 -0
- package/neural-interface/public/assets/mascot/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/computer.png +0 -0
- package/neural-interface/public/assets/mascot/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/edit.png +0 -0
- package/neural-interface/public/assets/mascot/error.gif +0 -0
- package/neural-interface/public/assets/mascot/error.png +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.gif +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.png +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.gif +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.png +0 -0
- package/neural-interface/public/assets/mascot/idle.gif +0 -0
- package/neural-interface/public/assets/mascot/idle.png +0 -0
- package/neural-interface/public/assets/mascot/manifest.json +254 -0
- package/neural-interface/public/assets/mascot/mcp.gif +0 -0
- package/neural-interface/public/assets/mascot/mcp.png +0 -0
- package/neural-interface/public/assets/mascot/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/memory.png +0 -0
- package/neural-interface/public/assets/mascot/offline.gif +0 -0
- package/neural-interface/public/assets/mascot/offline.png +0 -0
- package/neural-interface/public/assets/mascot/pick.gif +0 -0
- package/neural-interface/public/assets/mascot/pick.png +0 -0
- package/neural-interface/public/assets/mascot/plan.gif +0 -0
- package/neural-interface/public/assets/mascot/plan.png +0 -0
- package/neural-interface/public/assets/mascot/present.gif +0 -0
- package/neural-interface/public/assets/mascot/present.png +0 -0
- package/neural-interface/public/assets/mascot/project.gif +0 -0
- package/neural-interface/public/assets/mascot/project.png +0 -0
- package/neural-interface/public/assets/mascot/read.gif +0 -0
- package/neural-interface/public/assets/mascot/read.png +0 -0
- package/neural-interface/public/assets/mascot/runs.gif +0 -0
- package/neural-interface/public/assets/mascot/runs.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/manifest.json +173 -0
- package/neural-interface/public/assets/mascot/scenes/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/memory.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.png +0 -0
- package/neural-interface/public/assets/mascot/search.gif +0 -0
- package/neural-interface/public/assets/mascot/search.png +0 -0
- package/neural-interface/public/assets/mascot/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/shell.png +0 -0
- package/neural-interface/public/assets/mascot/skill.gif +0 -0
- package/neural-interface/public/assets/mascot/skill.png +0 -0
- package/neural-interface/public/assets/mascot/sleep.gif +0 -0
- package/neural-interface/public/assets/mascot/sleep.png +0 -0
- package/neural-interface/public/assets/mascot/subagent.gif +0 -0
- package/neural-interface/public/assets/mascot/subagent.png +0 -0
- package/neural-interface/public/assets/mascot/success.gif +0 -0
- package/neural-interface/public/assets/mascot/success.png +0 -0
- package/neural-interface/public/assets/mascot/think.gif +0 -0
- package/neural-interface/public/assets/mascot/think.png +0 -0
- package/neural-interface/public/assets/mascot/wait.gif +0 -0
- package/neural-interface/public/assets/mascot/wait.png +0 -0
- package/neural-interface/public/assets/mascot/watch.gif +0 -0
- package/neural-interface/public/assets/mascot/watch.png +0 -0
- package/neural-interface/public/assets/mascot/web.gif +0 -0
- package/neural-interface/public/assets/mascot/web.png +0 -0
- package/neural-interface/public/onboarding.html +14 -1
- package/neural-interface/public/shared/agent-runtime-options.js +49 -8
- package/neural-interface/public/shared/agy/agy-panel.js +2 -2
- package/neural-interface/public/shared/agy/agy-render.js +41 -1
- package/neural-interface/public/shared/agy/agy-styles.js +5 -0
- package/neural-interface/public/shared/api.js +5 -4
- package/neural-interface/public/shared/assistant/asst-ask-styles.js +8 -8
- package/neural-interface/public/shared/assistant/asst-ask.js +1 -1
- package/neural-interface/public/shared/assistant/asst-brain-picker.js +99 -9
- package/neural-interface/public/shared/assistant/asst-computer.js +47 -2
- package/neural-interface/public/shared/assistant/asst-control.js +1 -1
- package/neural-interface/public/shared/assistant/asst-limit-wait.js +7 -5
- package/neural-interface/public/shared/assistant/asst-panel.js +13 -5
- package/neural-interface/public/shared/assistant/asst-rack-styles.js +4 -4
- package/neural-interface/public/shared/assistant/asst-render.js +16 -10
- package/neural-interface/public/shared/assistant/asst-route-models.js +64 -4
- package/neural-interface/public/shared/assistant/asst-route.js +24 -7
- package/neural-interface/public/shared/assistant/asst-routes-editor.js +154 -39
- package/neural-interface/public/shared/assistant/asst-run-stage.js +3 -3
- package/neural-interface/public/shared/assistant/asst-scene-styles.js +8 -111
- package/neural-interface/public/shared/assistant/asst-scenes.js +46 -318
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +2 -2
- package/neural-interface/public/shared/assistant/asst-state.js +72 -2
- package/neural-interface/public/shared/assistant/asst-styles.js +60 -15
- package/neural-interface/public/shared/automation-approval-view.js +75 -0
- package/neural-interface/public/shared/cdx/cdx-panel.js +2 -2
- package/neural-interface/public/shared/cdx/cdx-render.js +73 -7
- package/neural-interface/public/shared/cdx/cdx-tabs.js +3 -3
- package/neural-interface/public/shared/context-menu-model.js +2 -0
- package/neural-interface/public/shared/cp/cp-agents.js +8 -0
- package/neural-interface/public/shared/cp/cp-permissions.js +6 -2
- package/neural-interface/public/shared/cp/cp-rehydrate.js +25 -1
- package/neural-interface/public/shared/cp/cp-tasks-model.js +33 -0
- package/neural-interface/public/shared/editor/editor-panel-logic.js +10 -0
- package/neural-interface/public/shared/editor/editor-panel.js +10 -2
- package/neural-interface/public/shared/html-shell.js +30 -22
- package/neural-interface/public/shared/judgments-log-origins.js +29 -0
- package/neural-interface/public/shared/morelogin-profile-choices.js +107 -0
- package/neural-interface/public/shared/morelogin-profile-field.js +186 -0
- package/neural-interface/public/shared/mtc/mtc-client.js +181 -0
- package/neural-interface/public/shared/mtc/mtc-compose.js +40 -0
- package/neural-interface/public/shared/mtc/mtc-copy.js +253 -0
- package/neural-interface/public/shared/mtc/mtc-logic.js +478 -0
- package/neural-interface/public/shared/mtc/mtc-panel.js +1354 -0
- package/neural-interface/public/shared/mtc/mtc-render.js +172 -0
- package/neural-interface/public/shared/mtc/mtc-styles.js +437 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-automation-ownership.js +23 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-events.js +13 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-icons.js +3 -1
- package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +10 -4
- package/neural-interface/public/shared/ocp-v2/ocp-v2-render.js +6 -86
- package/neural-interface/public/shared/ocp-v2/ocp-v2-ws.js +5 -2
- package/neural-interface/public/shared/owner-access.js +134 -0
- package/neural-interface/public/shared/owner-authority-view.js +92 -0
- package/neural-interface/public/shared/page-session.js +143 -14
- package/neural-interface/public/shared/poll-backoff.js +59 -0
- package/neural-interface/public/shared/provider-icons.js +3 -0
- package/neural-interface/public/shared/schedules-view.js +7 -0
- package/neural-interface/public/shared/server-back.js +50 -0
- package/neural-interface/public/shared/settings/settings-browser-owner-access.js +72 -0
- package/neural-interface/public/shared/settings/settings-data.js +7 -1
- package/neural-interface/public/shared/settings/settings-ia.js +3 -1
- package/neural-interface/public/shared/settings/settings-kit.js +11 -3
- package/neural-interface/public/shared/settings/settings-local-profiles.js +153 -0
- package/neural-interface/public/shared/settings/settings-maritaca-opencode.js +105 -0
- package/neural-interface/public/shared/settings/settings-shell.js +7 -0
- package/neural-interface/public/shared/shown-children.js +72 -0
- package/neural-interface/public/shared/sidepanel-session-status.js +16 -2
- package/neural-interface/public/shared/state.js +1 -1
- package/neural-interface/public/shared/static-bg-state.js +22 -0
- package/neural-interface/public/shared/styles.css +457 -164
- package/neural-interface/public/shared/synabun-mascot-assets.js +67 -0
- package/neural-interface/public/shared/synabun-mascot.js +136 -12
- package/neural-interface/public/shared/synabun-ticker.js +3 -0
- package/neural-interface/public/shared/synabun-tools.js +173 -0
- package/neural-interface/public/shared/tool-heartbeat.js +43 -0
- package/neural-interface/public/shared/tool-list-picker.js +3 -1
- package/neural-interface/public/shared/tool-list-view.js +23 -4
- package/neural-interface/public/shared/topright-overflow-logic.js +1 -0
- package/neural-interface/public/shared/ui-automation-approval.js +188 -0
- package/neural-interface/public/shared/ui-automation-studio.js +138 -91
- package/neural-interface/public/shared/ui-claude-panel.js +209 -31
- package/neural-interface/public/shared/ui-judgments.js +37 -10
- package/neural-interface/public/shared/ui-maritaca-panel.js +15 -0
- package/neural-interface/public/shared/ui-navbar.js +23 -0
- package/neural-interface/public/shared/ui-owner-access.js +191 -0
- package/neural-interface/public/shared/ui-owner-authority.js +162 -0
- package/neural-interface/public/shared/ui-panels.js +3 -1
- package/neural-interface/public/shared/ui-schedules-studio.js +118 -17
- package/neural-interface/public/shared/ui-scroll-follow.js +3 -0
- package/neural-interface/public/shared/ui-sessions.js +45 -16
- package/neural-interface/public/shared/ui-settings.js +676 -42
- package/neural-interface/public/shared/ui-sidepanel-session-entry.js +8 -2
- package/neural-interface/public/shared/ui-sidepanel-sessions.js +3 -3
- package/neural-interface/public/shared/ui-sidepanel-tray.js +24 -0
- package/neural-interface/public/shared/ui-sidepanel-windows.js +1 -1
- package/neural-interface/public/shared/ui-terminal.js +15 -7
- package/neural-interface/public/shared/ui-tutorial-preview.js +4 -0
- package/neural-interface/public/shared/ui-update.js +3 -0
- package/neural-interface/public/shared/ui-whiteboard.js +4 -0
- package/neural-interface/public/shared/window-keys.js +38 -0
- package/neural-interface/scripts/build-mascot-assets.mjs +30 -0
- package/neural-interface/server.js +2903 -359
- package/npm-shrinkwrap.json +5 -17
- package/package.json +5 -6
- package/postinstall.js +38 -39
- package/setup.js +33 -31
- package/skills/synabun/modules/changelog.md +14 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
// SynaBun — Maritaca Panel: Styles
|
|
2
|
+
//
|
|
3
|
+
// The Codex / Antigravity panels' visual language (DESIGN.md → Codex sidepanel `panel-codex`): the same shell,
|
|
4
|
+
// surfaces, edges, text levels, radii, type sizes and motion, under the panel's own --mtc-* names with the same
|
|
5
|
+
// values. The one colour of its own is the provider's (provider-icons.js PROVIDER_META.maritaca, Maritaca's green):
|
|
6
|
+
// its mark and nothing else. Every rule below uses a token; add a value to the block first.
|
|
7
|
+
|
|
8
|
+
export function injectMaritacaStyles() {
|
|
9
|
+
if (document.getElementById('maritaca-panel-styles')) return;
|
|
10
|
+
const style = document.createElement('style');
|
|
11
|
+
style.id = 'maritaca-panel-styles';
|
|
12
|
+
style.textContent = `
|
|
13
|
+
.mtc-panel, .mtc-session-pill, .mtc-pop {
|
|
14
|
+
--mtc-shell: rgba(16, 18, 22, 0.92);
|
|
15
|
+
--mtc-shell-border: rgba(255,255,255,0.08);
|
|
16
|
+
--mtc-pop-bg: rgb(22, 22, 26);
|
|
17
|
+
--mtc-surface-1: var(--s-subtle);
|
|
18
|
+
--mtc-surface-2: var(--s-hover);
|
|
19
|
+
--mtc-surface-3: var(--s-active);
|
|
20
|
+
--mtc-border: var(--b-light);
|
|
21
|
+
--mtc-border-strong: var(--b-visible);
|
|
22
|
+
--mtc-border-input: rgba(255,255,255,0.36);
|
|
23
|
+
--mtc-text: var(--t-bright);
|
|
24
|
+
--mtc-text-2: var(--t-primary);
|
|
25
|
+
--mtc-text-3: var(--t-secondary);
|
|
26
|
+
--mtc-text-off: var(--t-muted);
|
|
27
|
+
--mtc-solid: #ededed;
|
|
28
|
+
--mtc-solid-hover: #ffffff;
|
|
29
|
+
--mtc-on-solid: #171717;
|
|
30
|
+
--mtc-running: #0ea5e9;
|
|
31
|
+
--mtc-success: #22c55e;
|
|
32
|
+
--mtc-warning: #f59e0b;
|
|
33
|
+
--mtc-danger: #ef4444;
|
|
34
|
+
--mtc-link: var(--accent-blue);
|
|
35
|
+
--mtc-focus: var(--t-primary);
|
|
36
|
+
--mtc-brand: #70d44b;
|
|
37
|
+
--mtc-radius-sm: 4px;
|
|
38
|
+
--mtc-radius-md: var(--r-card);
|
|
39
|
+
--mtc-radius-lg: 12px;
|
|
40
|
+
--mtc-radius-pill: 999px;
|
|
41
|
+
--mtc-radius-shell: 16px;
|
|
42
|
+
--mtc-space-1: 4px;
|
|
43
|
+
--mtc-space-2: 8px;
|
|
44
|
+
--mtc-space-3: 12px;
|
|
45
|
+
--mtc-space-4: 16px;
|
|
46
|
+
--mtc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
47
|
+
--mtc-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
|
48
|
+
--mtc-fs-xs: calc(10px * var(--font-scale, 1));
|
|
49
|
+
--mtc-fs-sm: calc(11px * var(--font-scale, 1));
|
|
50
|
+
--mtc-fs-md: calc(12px * var(--font-scale, 1));
|
|
51
|
+
--mtc-fs-lg: calc(13px * var(--font-scale, 1));
|
|
52
|
+
--mtc-lh-tight: 1.35;
|
|
53
|
+
--mtc-lh: 1.6;
|
|
54
|
+
--mtc-dur: 0.25s;
|
|
55
|
+
--mtc-dur-fast: 150ms;
|
|
56
|
+
--mtc-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
57
|
+
--mtc-shadow-pop: 0 8px 24px rgba(0,0,0,0.35);
|
|
58
|
+
/* The sibling panels' values: the cards of the header and the composer (the Claude panel's), the context
|
|
59
|
+
pressure of the cog's dot and the meter (Claude / Codex / OpenCode), the dialog's scrim (Codex). */
|
|
60
|
+
--mtc-card-bg: rgba(22, 22, 26, 0.95);
|
|
61
|
+
--mtc-card-ring: 0 0 0 1px rgba(255,255,255,0.06);
|
|
62
|
+
--mtc-radius-card: 10px;
|
|
63
|
+
--mtc-pressure-high: #d4a848;
|
|
64
|
+
--mtc-pressure-critical: #ef7070;
|
|
65
|
+
--mtc-scrim: rgba(0,0,0,0.55);
|
|
66
|
+
--mtc-space-5: 24px;
|
|
67
|
+
}
|
|
68
|
+
.mtc-panel {
|
|
69
|
+
position: fixed; top: calc(var(--navbar-height, 48px) + 20px); right: 20px; width: 22%; min-width: 320px; max-width: 700px; bottom: 20px; z-index: 205;
|
|
70
|
+
display: flex; flex-direction: column; background: var(--mtc-shell); backdrop-filter: blur(28px) saturate(1.45); -webkit-backdrop-filter: blur(28px) saturate(1.45);
|
|
71
|
+
border: 0.5px solid var(--mtc-shell-border); border-radius: var(--mtc-radius-shell);
|
|
72
|
+
box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.14), 0 32px 64px rgba(0,0,0,0.18);
|
|
73
|
+
overflow: hidden; transform: translateX(calc(100% + 20px)); opacity: 0; transition: transform var(--mtc-dur) var(--mtc-ease), opacity var(--mtc-dur) ease;
|
|
74
|
+
font-family: var(--mtc-font); font-size: var(--mtc-fs-md); color: var(--mtc-text);
|
|
75
|
+
}
|
|
76
|
+
.mtc-panel.open { transform: translateX(0); opacity: 1; overflow: visible; }
|
|
77
|
+
html.platform-win32 .mtc-panel, html.desktop-titlebar--win32 .mtc-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
78
|
+
.mtc-panel:has(.cc-dropdown.open) { z-index: 99999; }
|
|
79
|
+
.mtc-panel :is(a, button, input, textarea, summary, [tabindex]):focus-visible, .mtc-pop :is(a, button, input, textarea, summary, [tabindex]):focus-visible, .mtc-session-pill:focus-visible { outline: 2px solid var(--mtc-focus); outline-offset: 2px; }
|
|
80
|
+
.mtc-panel input::placeholder, .mtc-panel textarea::placeholder, .mtc-pop input::placeholder, .mtc-pop textarea::placeholder { color: var(--mtc-text-3); opacity: 1; }
|
|
81
|
+
.mtc-panel [hidden], .mtc-pop [hidden] { display: none !important; }
|
|
82
|
+
.mtc-resize-handle { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
|
|
83
|
+
|
|
84
|
+
/* The header and the composer are the Claude panel's two cards: one dark fill, a hairline ring, the small shadow. */
|
|
85
|
+
.mtc-header { position: relative; display: flex; align-items: center; flex-shrink: 0; margin: 8px 8px 0; padding: 10px 10px 10px 14px; border-radius: var(--mtc-radius-card); background: var(--mtc-card-bg); box-shadow: var(--shadow-sm), var(--mtc-card-ring); z-index: 3; container: mtc-header / inline-size; }
|
|
86
|
+
.mtc-session-btn { display: flex; align-items: center; gap: 6px; min-width: 32px; flex: 1 0 88px; max-width: max-content; overflow: hidden; padding: 5px 10px; border: none; border-radius: var(--mtc-radius-md) 0 0 var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text-2); font: 400 var(--mtc-fs-sm)/1.2 var(--mtc-font); cursor: pointer; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast); }
|
|
87
|
+
.mtc-session-btn:hover, .mtc-session-btn[aria-expanded="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); }
|
|
88
|
+
.mtc-session-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
|
|
89
|
+
.mtc-session-label input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: var(--mtc-text); font: inherit; padding: 0; }
|
|
90
|
+
.mtc-dd-arrow { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); flex-shrink: 0; }
|
|
91
|
+
.mtc-mark { width: 14px; height: 14px; flex: 0 0 auto; display: inline-flex; color: var(--mtc-brand); }
|
|
92
|
+
.mtc-mark svg { width: 14px; height: 14px; }
|
|
93
|
+
.mtc-header-rename { display: inline-flex; align-items: center; justify-content: center; width: 24px; align-self: stretch; flex-shrink: 0; margin-right: 3px; border: none; border-left: 1px solid var(--mtc-border); border-radius: 0 var(--mtc-radius-md) var(--mtc-radius-md) 0; background: var(--mtc-surface-1); color: var(--mtc-text-3); cursor: pointer; }
|
|
94
|
+
.mtc-header-rename:hover:not(:disabled) { color: var(--mtc-text); background: var(--mtc-surface-2); }
|
|
95
|
+
.mtc-header-rename:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
96
|
+
.mtc-header-rename svg { width: 12px; height: 12px; }
|
|
97
|
+
.mtc-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; flex-shrink: 0; }
|
|
98
|
+
.mtc-btn { position: relative; width: 24px; height: 24px; padding: 0; border: none; border-radius: var(--mtc-radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--mtc-surface-1); color: var(--mtc-text-3); cursor: pointer; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast); }
|
|
99
|
+
.mtc-btn:hover:not(:disabled) { background: var(--mtc-surface-2); color: var(--mtc-text); }
|
|
100
|
+
.mtc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
101
|
+
.mtc-btn svg { width: 12px; height: 12px; }
|
|
102
|
+
.mtc-btn-danger:hover:not(:disabled) { color: var(--mtc-danger); }
|
|
103
|
+
/* The cog: Context settings (the context window, the conversation, the connection; Settings from there). Its one
|
|
104
|
+
decoration is a dot: context pressure from 80% / 90% of the window, or the warning colour while no key is set. */
|
|
105
|
+
.mtc-btn.mtc-cog svg { width: 14px; height: 14px; }
|
|
106
|
+
.mtc-btn.mtc-cog[aria-expanded="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); }
|
|
107
|
+
.mtc-cog-dot { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: var(--mtc-radius-pill); background: var(--mtc-pressure-high); pointer-events: none; }
|
|
108
|
+
.mtc-cog-dot-critical { background: var(--mtc-pressure-critical); }
|
|
109
|
+
.mtc-cog-dot-nokey { background: var(--mtc-warning); }
|
|
110
|
+
|
|
111
|
+
.mtc-tabs { display: flex; gap: 4px; padding: 6px 12px 0; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
|
|
112
|
+
.mtc-tabs:empty { display: none; }
|
|
113
|
+
.mtc-tab { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 3px 6px 3px 8px; flex-shrink: 0; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text-3); font: var(--mtc-fs-sm)/1.35 var(--mtc-font); cursor: pointer; }
|
|
114
|
+
.mtc-tab:hover { background: var(--mtc-surface-1); color: var(--mtc-text-2); }
|
|
115
|
+
.mtc-tab[aria-selected="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); border-color: var(--mtc-border-strong); }
|
|
116
|
+
.mtc-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
117
|
+
.mtc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mtc-text-off); flex: 0 0 auto; }
|
|
118
|
+
.mtc-tab.running .mtc-dot { background: var(--mtc-running); animation: mtc-working 1.6s ease-in-out infinite; }
|
|
119
|
+
.mtc-tab-close { border: 0; background: none; color: var(--mtc-text-3); cursor: pointer; padding: 0 2px; font-size: var(--mtc-fs-lg); line-height: 1; border-radius: var(--mtc-radius-sm); }
|
|
120
|
+
.mtc-tab-close:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
|
|
121
|
+
@keyframes mtc-working { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
|
|
122
|
+
|
|
123
|
+
.mtc-messages-container { position: relative; flex: 1; min-height: 0; overflow: hidden; margin: 6px 8px; }
|
|
124
|
+
.mtc-transcript { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; padding: 12px 0 8px; display: flex; flex-direction: column; font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
|
|
125
|
+
.mtc-transcript::before { content: ''; margin-top: auto; }
|
|
126
|
+
.mtc-jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; padding: 4px 10px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-pill); background: var(--mtc-pop-bg); color: var(--mtc-text-2); font: 500 var(--mtc-fs-sm)/1.2 var(--mtc-font); cursor: pointer; box-shadow: var(--mtc-shadow-pop); }
|
|
127
|
+
.mtc-empty { margin: auto 0; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 18px; text-align: center; color: var(--mtc-text-3); }
|
|
128
|
+
.mtc-empty-mark { display: flex; color: var(--mtc-brand); opacity: 0.7; }
|
|
129
|
+
.mtc-empty-mark svg { width: 32px; height: 36px; }
|
|
130
|
+
.mtc-empty-name { font-size: var(--mtc-fs-lg); font-weight: 500; color: var(--mtc-text-3); }
|
|
131
|
+
.mtc-empty-status { font-size: var(--mtc-fs-sm); line-height: 1.5; max-width: 320px; }
|
|
132
|
+
.mtc-empty-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
|
|
133
|
+
.mtc-link { color: var(--mtc-link); font-size: var(--mtc-fs-sm); text-decoration: none; }
|
|
134
|
+
.mtc-link:hover { text-decoration: underline; }
|
|
135
|
+
|
|
136
|
+
.mtc-system { align-self: center; box-sizing: border-box; max-width: calc(100% - 32px); margin: 4px 16px; padding: 4px 0; font-size: var(--mtc-fs-sm); line-height: 1.45; color: var(--mtc-text-3); text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; flex-shrink: 0; }
|
|
137
|
+
.mtc-system.error { color: var(--mtc-danger); }
|
|
138
|
+
.mtc-system.warning { color: var(--mtc-warning); }
|
|
139
|
+
.mtc-system.working { color: var(--mtc-running); align-self: flex-start; margin-left: var(--mtc-space-2); }
|
|
140
|
+
.mtc-system.working::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: mtc-working 1.6s ease-in-out infinite; }
|
|
141
|
+
.mtc-msg { display: flex; padding: var(--mtc-space-2); flex-shrink: 0; min-width: 0; }
|
|
142
|
+
.mtc-msg-user { justify-content: flex-end; padding: var(--mtc-space-3) var(--mtc-space-2) var(--mtc-space-1); }
|
|
143
|
+
.mtc-msg-user .mtc-msg-card { max-width: 85%; border-radius: var(--mtc-radius-lg); background: var(--mtc-surface-2); padding: var(--mtc-space-2) var(--mtc-space-3); }
|
|
144
|
+
.mtc-msg-text { white-space: pre-wrap; word-break: break-word; font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); }
|
|
145
|
+
.mtc-msg-agent { flex-direction: column; color: var(--mtc-text); word-break: break-word; gap: 4px; }
|
|
146
|
+
.mtc-md { font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); color: var(--mtc-text); min-width: 0; overflow-wrap: anywhere; }
|
|
147
|
+
.mtc-md > :first-child { margin-top: 0; } .mtc-md > :last-child { margin-bottom: 0; }
|
|
148
|
+
.mtc-md :is(p, ul, ol, pre, blockquote, table) { margin: 0 0 8px; }
|
|
149
|
+
.mtc-md :is(h1, h2, h3, h4) { margin: 12px 0 6px; font-size: var(--mtc-fs-lg); font-weight: 600; line-height: var(--mtc-lh-tight); }
|
|
150
|
+
.mtc-md :is(ul, ol) { padding-left: 18px; }
|
|
151
|
+
.mtc-md a { color: var(--mtc-link); }
|
|
152
|
+
.mtc-md code { font-family: var(--mtc-mono); font-size: 0.92em; background: var(--mtc-surface-2); padding: 1px 4px; border-radius: var(--mtc-radius-sm); }
|
|
153
|
+
.mtc-md pre { background: var(--mtc-surface-1); border-radius: var(--mtc-radius-md); padding: 8px 10px; overflow-x: auto; font: var(--mtc-fs-sm)/1.55 var(--mtc-mono); }
|
|
154
|
+
.mtc-md pre code { background: none; padding: 0; }
|
|
155
|
+
.mtc-md blockquote { border-left: 2px solid var(--mtc-border-strong); padding-left: 10px; color: var(--mtc-text-2); }
|
|
156
|
+
.mtc-md table { border-collapse: collapse; display: block; overflow-x: auto; }
|
|
157
|
+
.mtc-md :is(th, td) { border: 1px solid var(--mtc-border); padding: 3px 8px; text-align: left; }
|
|
158
|
+
.mtc-thought { margin: 2px 0; font-size: var(--mtc-fs-sm); color: var(--mtc-text-3); flex-shrink: 0; }
|
|
159
|
+
.mtc-thought summary { cursor: pointer; list-style: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
|
|
160
|
+
.mtc-thought summary::-webkit-details-marker { display: none; }
|
|
161
|
+
.mtc-thought summary::before { content: '\\25B8'; font-size: var(--mtc-fs-xs); transition: transform var(--mtc-dur-fast); }
|
|
162
|
+
.mtc-thought[open] summary::before { transform: rotate(90deg); }
|
|
163
|
+
.mtc-thought-body { white-space: pre-wrap; padding: 4px 0 6px 10px; border-left: 1px solid var(--mtc-border); line-height: 1.55; max-height: 240px; overflow: auto; }
|
|
164
|
+
.mtc-turn-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
|
|
165
|
+
.mtc-turn-meta { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
|
|
166
|
+
.mtc-turn-actions { display: flex; gap: 2px; flex-shrink: 0; opacity: 0; transition: opacity var(--mtc-dur-fast); }
|
|
167
|
+
.mtc-msg-agent:hover .mtc-turn-actions, .mtc-msg-agent:focus-within .mtc-turn-actions { opacity: 1; }
|
|
168
|
+
.mtc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: var(--mtc-radius-sm); background: none; color: var(--mtc-text-3); cursor: pointer; }
|
|
169
|
+
.mtc-icon-btn:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
|
|
170
|
+
.mtc-icon-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
|
|
171
|
+
|
|
172
|
+
.mtc-bottom { position: relative; z-index: 10; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; margin: 0 8px 8px; padding: 6px 0 4px; border-radius: var(--mtc-radius-card); background: var(--mtc-card-bg); box-shadow: var(--shadow-sm), var(--mtc-card-ring); }
|
|
173
|
+
.mtc-bottom > :is(.mtc-banner, .mtc-edit-notice, .mtc-staged, .mtc-hints) { margin: 0 8px; }
|
|
174
|
+
.mtc-bottom > .mtc-projectbar { padding: 0 8px; }
|
|
175
|
+
.mtc-banner { padding: 6px 10px; border-radius: var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); line-height: 1.45; }
|
|
176
|
+
.mtc-banner.error { color: var(--mtc-danger); }
|
|
177
|
+
.mtc-banner button { margin-left: 8px; border: none; background: none; color: var(--mtc-link); font: inherit; cursor: pointer; padding: 0; }
|
|
178
|
+
.mtc-projectbar { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
179
|
+
.mtc-projectbar .cc-dropdown { flex: 1 1 0; min-width: 0; }
|
|
180
|
+
.mtc-projectbar .mtc-branch-dd { flex: 0 1 38%; }
|
|
181
|
+
.mtc-projectbar .cc-dropdown[hidden] { display: none; }
|
|
182
|
+
.mtc-composer { display: flex; flex-direction: column; gap: 6px; }
|
|
183
|
+
.mtc-input-shell { display: flex; align-items: flex-end; gap: 4px; padding: 5px 5px 5px 14px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-lg); background: var(--mtc-surface-1); transition: border-color var(--mtc-dur-fast); }
|
|
184
|
+
.mtc-input-shell:focus-within { border-color: var(--mtc-focus); }
|
|
185
|
+
.mtc-input { flex: 1; min-width: 0; min-height: 22px; max-height: 180px; resize: none; border: none; outline: none; background: transparent; color: var(--mtc-text); font: var(--mtc-fs-lg)/1.5 var(--mtc-font); padding: 4px 0; overflow-wrap: break-word; scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
|
|
186
|
+
/* Send: the panel's one solid control while there is something to send; Stop is a red outline (the Codex panel's). */
|
|
187
|
+
.mtc-send { width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; align-self: flex-end; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast), border-color var(--mtc-dur-fast), opacity var(--mtc-dur-fast); }
|
|
188
|
+
.mtc-send:not(:disabled) { background: var(--mtc-solid); border-color: transparent; color: var(--mtc-on-solid); }
|
|
189
|
+
.mtc-send:hover:not(:disabled) { background: var(--mtc-solid-hover); }
|
|
190
|
+
.mtc-send:disabled { opacity: 0.5; cursor: default; }
|
|
191
|
+
.mtc-send[data-mode="stop"], .mtc-send[data-mode="stop"]:not(:disabled) { background: transparent; border-color: var(--mtc-danger); color: var(--mtc-danger); }
|
|
192
|
+
.mtc-send[data-mode="stop"]:hover:not(:disabled) { background: var(--mtc-surface-1); }
|
|
193
|
+
.mtc-send svg { width: 12px; height: 12px; }
|
|
194
|
+
.mtc-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; padding: 2px 10px 0; container: mtc-footer / inline-size; }
|
|
195
|
+
/* The controls on the right keep their size; the status line on the left gives way first (an ellipsis). */
|
|
196
|
+
.mtc-footer-left { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; }
|
|
197
|
+
.mtc-footer-left .mtc-status-line { flex: 1 1 auto; min-width: 0; }
|
|
198
|
+
.mtc-footer-right { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; min-width: 0; }
|
|
199
|
+
.mtc-footer .cc-dropdown { max-width: 160px; min-width: 0; }
|
|
200
|
+
.mtc-footer .cc-dropdown-trigger { width: 100%; box-sizing: border-box; min-width: 0; max-width: 160px; border-color: transparent; background: transparent; }
|
|
201
|
+
.mtc-footer .cc-dropdown-trigger:hover, .mtc-footer .cc-dropdown.open .cc-dropdown-trigger { background: var(--mtc-surface-2); border-color: var(--mtc-border); }
|
|
202
|
+
.mtc-footer .cc-dropdown-menu { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; min-width: 240px; max-height: 320px; overflow-y: auto; }
|
|
203
|
+
.mtc-brand-link { display: inline-flex; color: var(--mtc-brand); opacity: 0.8; }
|
|
204
|
+
.mtc-brand-link svg { width: 14px; height: 16px; }
|
|
205
|
+
.mtc-brand-link:hover { opacity: 1; }
|
|
206
|
+
.mtc-status-line { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
207
|
+
|
|
208
|
+
.mtc-action { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text); font: 500 var(--mtc-fs-md)/1 var(--mtc-font); text-decoration: none; cursor: pointer; user-select: none; transition: background var(--mtc-dur-fast), border-color var(--mtc-dur-fast); }
|
|
209
|
+
.mtc-action:hover:not(:disabled) { background: var(--mtc-surface-2); }
|
|
210
|
+
.mtc-action:disabled { opacity: 0.5; cursor: default; }
|
|
211
|
+
.mtc-action.mtc-btn-primary { background: var(--mtc-solid); border-color: var(--mtc-solid); color: var(--mtc-on-solid); }
|
|
212
|
+
.mtc-action.mtc-btn-primary:hover:not(:disabled) { background: var(--mtc-solid-hover); border-color: var(--mtc-solid-hover); }
|
|
213
|
+
.mtc-action.mtc-btn-deny { color: var(--mtc-danger); }
|
|
214
|
+
|
|
215
|
+
.mtc-pop { position: fixed; z-index: 100000; width: 340px; max-width: calc(100vw - 24px); max-height: min(70vh, 560px); overflow: auto; padding: 12px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-lg); background: var(--mtc-pop-bg); color: var(--mtc-text); box-shadow: var(--mtc-shadow-pop); font-family: var(--mtc-font); font-size: var(--mtc-fs-md); display: flex; flex-direction: column; gap: 10px; }
|
|
216
|
+
.mtc-pop-title { font-size: var(--mtc-fs-lg); font-weight: 600; }
|
|
217
|
+
.mtc-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
|
|
218
|
+
.mtc-field > span:first-child { font-weight: 500; }
|
|
219
|
+
.mtc-field input[type="password"], .mtc-field input[type="number"], .mtc-field textarea, .mtc-session-search { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text); font: var(--mtc-fs-md)/1.4 var(--mtc-font); outline: none; }
|
|
220
|
+
.mtc-field input:focus, .mtc-field textarea:focus, .mtc-session-search:focus { border-color: var(--mtc-focus); }
|
|
221
|
+
.mtc-field textarea { resize: vertical; min-height: 56px; }
|
|
222
|
+
.mtc-field-row input[type="number"] { width: 90px; }
|
|
223
|
+
.mtc-field-note { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
|
|
224
|
+
.mtc-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
225
|
+
.mtc-pop-note { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); line-height: 1.45; min-height: 0; }
|
|
226
|
+
.mtc-pop-note.error, .mtc-settings-notice.error { color: var(--mtc-danger); }
|
|
227
|
+
.mtc-settings-notice.ok { color: var(--mtc-success); }
|
|
228
|
+
.mtc-settings-notice:empty { display: none; }
|
|
229
|
+
.mtc-pop-links { display: flex; flex-direction: column; gap: 4px; }
|
|
230
|
+
.mtc-session-list { display: flex; flex-direction: column; gap: 2px; }
|
|
231
|
+
.mtc-session-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--mtc-radius-md); cursor: pointer; }
|
|
232
|
+
.mtc-session-row:hover, .mtc-session-row.active { background: var(--mtc-surface-2); }
|
|
233
|
+
.mtc-session-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
234
|
+
.mtc-session-meta { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); white-space: nowrap; }
|
|
235
|
+
.mtc-session-delete { font-size: var(--mtc-fs-lg); }
|
|
236
|
+
|
|
237
|
+
.mtc-session-pill .term-minimized-pill-icon { color: var(--mtc-brand); display: inline-flex; }
|
|
238
|
+
.mtc-session-pill .term-minimized-pill-icon svg { width: 12px; height: 13px; }
|
|
239
|
+
.mtc-session-pill.mtc-pill-running .term-minimized-pill-icon { animation: mtc-working 1.6s ease-in-out infinite; }
|
|
240
|
+
|
|
241
|
+
/* Parity states use the existing shell, tray geometry and semantic palette. */
|
|
242
|
+
.mtc-panel .mtc-input:focus-visible { outline: none; }
|
|
243
|
+
.mtc-panel :is(button, summary), .mtc-pop button { transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast), opacity var(--mtc-dur-fast), transform var(--mtc-dur-fast); }
|
|
244
|
+
.mtc-panel button:active:not(:disabled), .mtc-pop button:active:not(:disabled) { transform: translateY(1px); }
|
|
245
|
+
.mtc-icon-btn:disabled { opacity: .4; cursor: default; }
|
|
246
|
+
.mtc-messages-container::before, .mtc-messages-container::after { content: ''; position: absolute; left: 0; right: 0; height: 16px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--mtc-dur-fast); }
|
|
247
|
+
.mtc-messages-container::before { top: 0; background: linear-gradient(var(--mtc-shell), transparent); }
|
|
248
|
+
.mtc-messages-container::after { bottom: 0; background: linear-gradient(transparent, var(--mtc-shell)); }
|
|
249
|
+
.mtc-messages-container.mtc-scroll-top::before, .mtc-messages-container.mtc-scroll-bottom::after { opacity: 1; }
|
|
250
|
+
.mtc-stream-cursor { display: inline-block; width: 2px; height: 1em; background: var(--mtc-text-2); animation: mtc-working 1s ease-in-out infinite; }
|
|
251
|
+
.mtc-thought.thinking summary { color: var(--mtc-text-2); text-shadow: 0 0 12px var(--mtc-text-off); animation: mtc-working 1.6s ease-in-out infinite; }
|
|
252
|
+
.mtc-thought.thinking { border-left: 1px solid var(--mtc-border-strong); padding-left: var(--mtc-space-2); }
|
|
253
|
+
.mtc-msg-user:hover .mtc-turn-actions, .mtc-msg-user:focus-within .mtc-turn-actions { opacity: 1; }
|
|
254
|
+
.mtc-msg-user .mtc-turn-actions { justify-content: flex-end; }
|
|
255
|
+
.mtc-usage-chip, .mtc-cost-pill { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: var(--mtc-radius-sm); background: var(--mtc-surface-1); color: var(--mtc-text-3); font: var(--mtc-fs-xs)/1.5 var(--mtc-mono); }
|
|
256
|
+
.mtc-cost-pill { color: var(--mtc-text-2); border: 1px solid var(--mtc-border); }
|
|
257
|
+
.mtc-system.error { align-self: stretch; max-width: none; margin: var(--mtc-space-1) 0; padding: var(--mtc-space-2); border: 1px solid color-mix(in srgb, var(--mtc-danger) 35%, transparent); border-radius: var(--mtc-radius-md); background: color-mix(in srgb, var(--mtc-danger) 6%, transparent); text-align: left; }
|
|
258
|
+
.mtc-banner { display: flex; gap: var(--mtc-space-2); align-items: flex-start; white-space: pre-wrap; }
|
|
259
|
+
.mtc-banner > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
260
|
+
.mtc-banner.error { box-shadow: inset 2px 0 0 var(--mtc-danger); }
|
|
261
|
+
.mtc-banner.ok { color: var(--mtc-success); }
|
|
262
|
+
.mtc-input-wrap { position: relative; margin: 2px 8px; border-radius: var(--mtc-radius-lg); padding: 1px; background: var(--mtc-border-input); min-width: 0; transition: background var(--mtc-dur-fast), box-shadow var(--mtc-dur-fast); }
|
|
263
|
+
.mtc-input-shell { position: relative; border: none; border-radius: calc(var(--mtc-radius-lg) - 1px); background: var(--mtc-pop-bg); }
|
|
264
|
+
.mtc-input-wrap:focus-within { background: var(--mtc-focus); box-shadow: 0 0 0 1px var(--mtc-focus); }
|
|
265
|
+
.mtc-staged { display: flex; flex-wrap: wrap; gap: var(--mtc-space-1); max-height: 96px; overflow-y: auto; }
|
|
266
|
+
.mtc-attachment { display: inline-flex; align-items: center; gap: var(--mtc-space-1); max-width: 100%; min-width: 0; padding: 2px 6px; background: var(--mtc-surface-2); border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); font-size: var(--mtc-fs-sm); }
|
|
267
|
+
.mtc-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
268
|
+
.mtc-attachment-size { color: var(--mtc-text-3); white-space: nowrap; font-family: var(--mtc-mono); }
|
|
269
|
+
.mtc-attach svg { width: 16px; height: 16px; }
|
|
270
|
+
.mtc-composer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--mtc-space-2); padding: 0 10px 2px; color: var(--mtc-text-3); font-size: var(--mtc-fs-xs); }
|
|
271
|
+
.mtc-edit-notice { display: flex; align-items: center; gap: var(--mtc-space-2); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
|
|
272
|
+
.mtc-edit-notice > span { flex: 1; }
|
|
273
|
+
.mtc-hints { max-height: 180px; overflow-y: auto; padding: var(--mtc-space-1); border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: var(--mtc-pop-bg); }
|
|
274
|
+
.mtc-hint { display: flex; align-items: baseline; gap: var(--mtc-space-2); width: 100%; padding: 5px 8px; border: none; border-radius: var(--mtc-radius-sm); color: var(--mtc-text-2); background: transparent; font: var(--mtc-fs-sm)/1.4 var(--mtc-font); text-align: left; cursor: pointer; }
|
|
275
|
+
.mtc-hint > span:first-child { font-family: var(--mtc-mono); color: var(--mtc-text); }
|
|
276
|
+
.mtc-hint.active, .mtc-hint:hover { background: var(--mtc-surface-2); }
|
|
277
|
+
.mtc-session-filter { display: flex; align-items: center; gap: var(--mtc-space-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
|
|
278
|
+
.mtc-session-row { grid-template-columns: minmax(0, 1fr) auto; }
|
|
279
|
+
.mtc-session-title { grid-column: 1; }
|
|
280
|
+
.mtc-session-meta { grid-column: 1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; }
|
|
281
|
+
.mtc-session-delete { grid-column: 2; grid-row: 1 / 3; }
|
|
282
|
+
.mtc-delete-confirm { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--mtc-space-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
|
|
283
|
+
.mtc-dragging .mtc-input-wrap { outline: 2px solid var(--mtc-focus); outline-offset: 2px; }
|
|
284
|
+
.mtc-dragging .mtc-input-wrap::after { content: attr(data-drop-label); position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; border-radius: inherit; background: var(--mtc-pop-bg); color: var(--mtc-text); font-size: var(--mtc-fs-md); }
|
|
285
|
+
|
|
286
|
+
/* OpenCode's compositor ring pattern: rotate a square under a masked hairline. */
|
|
287
|
+
.mtc-pill-ring, .mtc-composer-ring { position: absolute; inset: 0; display: none; border-radius: inherit; padding: 1px; overflow: hidden; pointer-events: none; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
|
|
288
|
+
.mtc-pill-ring > i, .mtc-composer-ring > i { position: absolute; left: 50%; top: 50%; width: calc(100% + 64px); aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(transparent, var(--mtc-text-2), var(--mtc-text-off), var(--mtc-text-2), transparent); animation: mtc-ring-turn 2.4s linear infinite; }
|
|
289
|
+
.mtc-session-pill { position: relative; overflow: hidden; }
|
|
290
|
+
.mtc-session-pill.mtc-pill-running { border-color: var(--mtc-border-strong); }
|
|
291
|
+
.mtc-pill-running .mtc-pill-ring { display: block; }
|
|
292
|
+
/* The composer's ring in Sabiá green (--mtc-brand), as the Claude panel's gold .cp-spin-ring and the
|
|
293
|
+
Assistant's: a size container whose square (142cqmax + 4px) covers the box's diagonal at any shape,
|
|
294
|
+
faded in on focus (slow turn) and while a reply streams (faster, brighter). Reduced motion (below)
|
|
295
|
+
stops the turn; the ring stays as a still hairline. */
|
|
296
|
+
.mtc-composer-ring { z-index: 1; display: block; container-type: size; opacity: 0; transition: opacity 0.4s; }
|
|
297
|
+
.mtc-composer-ring > i { width: calc(142cqmax + 4px); animation: none; background: conic-gradient(transparent 0%, color-mix(in srgb, var(--mtc-brand) 38%, transparent) 25%, color-mix(in srgb, var(--mtc-brand) 10%, transparent) 50%, color-mix(in srgb, var(--mtc-brand) 38%, transparent) 75%, transparent 100%); }
|
|
298
|
+
.mtc-input-wrap:focus-within > .mtc-composer-ring, .mtc-streaming .mtc-composer-ring { opacity: 1; }
|
|
299
|
+
.mtc-input-wrap:focus-within > .mtc-composer-ring > i { animation: mtc-ring-turn 3s linear infinite; }
|
|
300
|
+
.mtc-streaming .mtc-composer-ring > i { animation: mtc-ring-turn 1.8s linear infinite; background: conic-gradient(transparent 0%, color-mix(in srgb, var(--mtc-brand) 75%, transparent) 25%, color-mix(in srgb, var(--mtc-brand) 15%, transparent) 50%, color-mix(in srgb, var(--mtc-brand) 75%, transparent) 75%, transparent 100%); }
|
|
301
|
+
@keyframes mtc-ring-turn { to { rotate: 360deg; } }
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/* ── Footer toggles (the Codex panel's): flat uppercase labels, an underline when on ── */
|
|
305
|
+
.mtc-toolbar-toggle { position: relative; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 4px 6px 6px; border: none; background: transparent; color: var(--mtc-text-3); font: 600 var(--mtc-fs-xs)/1 var(--mtc-font); text-transform: uppercase; cursor: pointer; transition: color var(--mtc-dur-fast); }
|
|
306
|
+
.mtc-toolbar-toggle > svg { width: var(--mtc-space-3); height: var(--mtc-space-3); flex-shrink: 0; }
|
|
307
|
+
.mtc-toolbar-toggle::after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 1.5px; background: var(--mtc-text-3); transform: scaleX(0); transition: transform var(--mtc-dur) var(--mtc-ease), background var(--mtc-dur-fast); }
|
|
308
|
+
.mtc-toolbar-toggle:hover:not(:disabled) { color: var(--mtc-text-2); }
|
|
309
|
+
.mtc-toolbar-toggle:hover:not(:disabled)::after { transform: scaleX(1); }
|
|
310
|
+
.mtc-toolbar-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
311
|
+
.mtc-toolbar-toggle:disabled::after { transform: scaleX(0); }
|
|
312
|
+
.mtc-toolbar-toggle .mtc-btn-label { font-size: var(--mtc-fs-xs); }
|
|
313
|
+
.mtc-plan-toggle.active { color: var(--mtc-text); }
|
|
314
|
+
.mtc-plan-toggle.active::after { transform: scaleX(1); background: var(--mtc-text); }
|
|
315
|
+
/* Effort: the level reads from the lit dots and the underline's length (Off, Low, Medium, High). */
|
|
316
|
+
.mtc-effort-wrap { position: relative; display: flex; align-items: center; }
|
|
317
|
+
.mtc-effort-dots { display: flex; align-items: center; gap: 2px; margin-left: 2px; }
|
|
318
|
+
.mtc-effort-dots i { display: block; width: 3px; height: 3px; border-radius: var(--mtc-radius-pill); background: currentColor; opacity: 0.25; transition: opacity var(--mtc-dur); }
|
|
319
|
+
.mtc-effort-dots i.lit { opacity: 1; }
|
|
320
|
+
.mtc-effort-toggle[data-effort="unsupported"] .mtc-effort-dots { display: none; }
|
|
321
|
+
.mtc-effort-toggle[data-effort="low"]::after { transform: scaleX(0.4); }
|
|
322
|
+
.mtc-effort-toggle[data-effort="medium"] { color: var(--mtc-text-2); }
|
|
323
|
+
.mtc-effort-toggle[data-effort="medium"]::after { transform: scaleX(0.7); }
|
|
324
|
+
.mtc-effort-toggle[data-effort="high"] { color: var(--mtc-text); }
|
|
325
|
+
.mtc-effort-toggle[data-effort="high"]::after { transform: scaleX(1); background: var(--mtc-text-2); }
|
|
326
|
+
.mtc-effort-toggle[aria-expanded="true"] { color: var(--mtc-text); }
|
|
327
|
+
.mtc-effort-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 45; width: 240px; max-height: 300px; overflow-y: auto; padding: 5px; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: var(--mtc-pop-bg); box-shadow: var(--mtc-shadow-pop); }
|
|
328
|
+
.mtc-effort-menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text-2); font-family: var(--mtc-font); text-align: left; cursor: pointer; }
|
|
329
|
+
.mtc-effort-menu-item:hover, .mtc-effort-menu-item:focus-visible { background: var(--mtc-surface-1); }
|
|
330
|
+
.mtc-effort-menu-item.selected { background: var(--mtc-surface-2); color: var(--mtc-text); }
|
|
331
|
+
.mtc-effort-menu-label { font-size: var(--mtc-fs-sm); font-weight: 600; }
|
|
332
|
+
.mtc-effort-menu-desc { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
|
|
333
|
+
.mtc-effort-menu-empty { padding: 7px 8px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-3); }
|
|
334
|
+
/* A narrow footer keeps the icons and the dots; the words go first. */
|
|
335
|
+
@container mtc-footer (width < 340px) {
|
|
336
|
+
.mtc-toolbar-toggle .mtc-btn-label, .mtc-status-line { display: none; }
|
|
337
|
+
.mtc-footer .cc-dropdown, .mtc-footer .cc-dropdown-trigger { max-width: 120px; }
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* ── Context settings popover (the sibling panels' grammar: 28px heads and rows, hairlines between sections) ── */
|
|
341
|
+
.mtc-pop.mtc-ctxpop { display: block; gap: 0; width: 300px; padding: 12px; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); font: 400 var(--mtc-fs-sm)/16px var(--mtc-font); font-variant-numeric: tabular-nums; outline: none; }
|
|
342
|
+
.mtc-ctxpop-section + .mtc-ctxpop-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mtc-border); }
|
|
343
|
+
.mtc-ctxpop-head, .mtc-ctxpop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; }
|
|
344
|
+
.mtc-ctxpop-head { margin-bottom: 4px; }
|
|
345
|
+
.mtc-ctxpop-title { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--mtc-fs-sm)/16px var(--mtc-font); color: var(--mtc-text); }
|
|
346
|
+
.mtc-ctxpop-bar { height: 4px; margin: 8px 0; overflow: hidden; border-radius: var(--mtc-radius-sm); background: var(--mtc-surface-2); }
|
|
347
|
+
.mtc-ctxpop-fill { height: 100%; border-radius: var(--mtc-radius-sm); background: var(--mtc-text-3); transition: width var(--mtc-dur) var(--mtc-ease); }
|
|
348
|
+
.mtc-ctxpop-fill.mtc-ctxpop-high { background: var(--mtc-pressure-high); }
|
|
349
|
+
.mtc-ctxpop-fill.mtc-ctxpop-critical { background: var(--mtc-pressure-critical); }
|
|
350
|
+
.mtc-ctxpop-usage { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 20px; margin-bottom: 4px; }
|
|
351
|
+
.mtc-ctxpop-used { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
352
|
+
.mtc-ctxpop-share { flex-shrink: 0; }
|
|
353
|
+
.mtc-ctxpop-k { flex: 0 0 auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mtc-text-2); }
|
|
354
|
+
.mtc-ctxpop-v { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--mtc-text); }
|
|
355
|
+
.mtc-ctxpop-muted { color: var(--mtc-text-3); }
|
|
356
|
+
.mtc-ctxpop-status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
|
|
357
|
+
.mtc-ctxpop-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--mtc-radius-pill); background: var(--mtc-text-off); }
|
|
358
|
+
.mtc-ctxpop-dot-ok { background: var(--mtc-success); }
|
|
359
|
+
.mtc-ctxpop-dot-warn { background: var(--mtc-warning); }
|
|
360
|
+
.mtc-ctxpop-dot-err { background: var(--mtc-danger); }
|
|
361
|
+
.mtc-ctxpop-link, .mtc-ctxpop-copy { height: 20px; padding: 0; border: none; background: none; font: 400 var(--mtc-fs-sm)/20px var(--mtc-font); text-decoration: none; cursor: pointer; }
|
|
362
|
+
.mtc-ctxpop-link { flex: 0 0 auto; color: var(--mtc-link); }
|
|
363
|
+
.mtc-ctxpop-link:hover { filter: brightness(1.2); }
|
|
364
|
+
.mtc-ctxpop-copy { color: var(--mtc-text); font-family: var(--mtc-mono); }
|
|
365
|
+
.mtc-ctxpop-copy:hover, .mtc-ctxpop-copy.mtc-ctxpop-copied { color: var(--mtc-link); }
|
|
366
|
+
|
|
367
|
+
/* ── Plan mode: the chip on plan replies and the review card (the Codex panel's post-plan card) ── */
|
|
368
|
+
.mtc-plan-chip { display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-sm); color: var(--mtc-text-2); font: 600 var(--mtc-fs-xs)/1.5 var(--mtc-font); text-transform: uppercase; }
|
|
369
|
+
.mtc-plan-msg { flex-shrink: 0; padding: 0 var(--mtc-space-2) var(--mtc-space-3); }
|
|
370
|
+
.mtc-plan-card { display: grid; gap: var(--mtc-space-4); min-width: 0; padding: var(--mtc-space-3) var(--mtc-space-4); border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-md); transition: opacity var(--mtc-dur-fast) ease; }
|
|
371
|
+
.mtc-plan-card.is-busy { opacity: 0.72; }
|
|
372
|
+
.mtc-plan-header { font-size: var(--mtc-fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mtc-text-3); }
|
|
373
|
+
.mtc-plan-note { margin-top: calc(var(--mtc-space-3) * -1); font-size: var(--mtc-fs-md); line-height: 1.5; color: var(--mtc-text-2); }
|
|
374
|
+
.mtc-plan-decision { display: grid; }
|
|
375
|
+
.mtc-plan-decision .mtc-request-btn { width: 100%; min-height: 36px; justify-content: center; }
|
|
376
|
+
.mtc-plan-feedback-group { display: grid; gap: var(--mtc-space-2); min-width: 0; }
|
|
377
|
+
.mtc-plan-feedback-label { color: var(--mtc-text-2); font: 500 var(--mtc-fs-md)/1.5 var(--mtc-font); }
|
|
378
|
+
.mtc-plan-feedback { width: 100%; min-height: 56px; max-height: 132px; box-sizing: border-box; resize: none; overflow-y: auto; padding: var(--mtc-space-2) var(--mtc-space-3); border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text); font: 400 var(--mtc-fs-md)/1.5 var(--mtc-font); transition: border-color var(--mtc-dur-fast) ease; }
|
|
379
|
+
.mtc-plan-feedback:hover:not(:disabled), .mtc-plan-feedback:focus-visible { border-color: var(--mtc-text-3); }
|
|
380
|
+
.mtc-plan-feedback:disabled { opacity: 0.6; }
|
|
381
|
+
.mtc-plan-feedback-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--mtc-space-2); }
|
|
382
|
+
.mtc-plan-feedback-hint { min-width: 0; color: var(--mtc-text-3); font: 400 var(--mtc-fs-sm)/1.5 var(--mtc-font); }
|
|
383
|
+
.mtc-plan-utilities { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--mtc-space-2); }
|
|
384
|
+
.mtc-plan-utilities .mtc-request-btn.secondary { border-color: transparent; color: var(--mtc-text-2); font-weight: 500; }
|
|
385
|
+
.mtc-plan-utilities .mtc-request-btn.secondary:hover:not(:disabled) { border-color: transparent; background: var(--mtc-surface-2); color: var(--mtc-text); }
|
|
386
|
+
|
|
387
|
+
/* ── Buttons of the dialog and the plan card: solid for the one primary action, hairline for the rest ── */
|
|
388
|
+
.mtc-request-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 5px var(--mtc-space-3); border: 1px solid transparent; border-radius: var(--mtc-radius-md); background: var(--mtc-solid); color: var(--mtc-on-solid); font: 600 var(--mtc-fs-md)/1.5 var(--mtc-font); cursor: pointer; transition: background var(--mtc-dur-fast), border-color var(--mtc-dur-fast), color var(--mtc-dur-fast); }
|
|
389
|
+
.mtc-request-btn:hover:not(:disabled) { background: var(--mtc-solid-hover); }
|
|
390
|
+
.mtc-request-btn.secondary, .mtc-request-btn.danger { border-color: var(--mtc-border-strong); background: transparent; color: var(--mtc-text); }
|
|
391
|
+
.mtc-request-btn.danger { color: var(--mtc-danger); }
|
|
392
|
+
.mtc-request-btn.secondary:hover:not(:disabled), .mtc-request-btn.danger:hover:not(:disabled) { background: var(--mtc-surface-1); border-color: var(--mtc-border-input); }
|
|
393
|
+
.mtc-request-btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
394
|
+
|
|
395
|
+
/* ── Settings: a dialog inside the panel (the Codex panel's settings overlay) ── */
|
|
396
|
+
.mtc-settings-overlay { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding-top: var(--mtc-space-5); border-radius: var(--mtc-radius-shell); background: var(--mtc-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: mtc-fade-in var(--mtc-dur-fast) ease; }
|
|
397
|
+
@keyframes mtc-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
398
|
+
.mtc-settings-panel { display: flex; flex-direction: column; width: 92%; max-height: calc(100% - 48px); overflow: hidden; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-lg); background: var(--mtc-pop-bg); box-shadow: var(--mtc-shadow-pop); color: var(--mtc-text); font-family: var(--mtc-font); }
|
|
399
|
+
.mtc-settings-header { display: flex; align-items: center; justify-content: space-between; gap: var(--mtc-space-2); padding: 14px 16px 12px; border-bottom: 1px solid var(--mtc-border); font-size: var(--mtc-fs-lg); font-weight: 600; }
|
|
400
|
+
.mtc-settings-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
401
|
+
.mtc-settings-close { min-width: 24px; min-height: 24px; padding: 2px 4px; border: none; border-radius: var(--mtc-radius-sm); background: none; color: var(--mtc-text-3); font-size: var(--mtc-fs-lg); line-height: 1; cursor: pointer; }
|
|
402
|
+
.mtc-settings-close:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
|
|
403
|
+
.mtc-settings-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 16px 8px; scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
|
|
404
|
+
.mtc-settings-section { display: grid; gap: var(--mtc-space-2); padding: 12px 0; border-bottom: 1px solid var(--mtc-border); }
|
|
405
|
+
.mtc-settings-section:last-child { border-bottom: none; }
|
|
406
|
+
.mtc-settings-section-title { margin: 0; font-size: var(--mtc-fs-xs); font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--mtc-text-3); }
|
|
407
|
+
.mtc-settings-status { display: flex; align-items: center; gap: 6px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
|
|
408
|
+
.mtc-settings-actions { display: flex; flex-wrap: wrap; gap: var(--mtc-space-2); }
|
|
409
|
+
.mtc-settings-hint { font-size: var(--mtc-fs-xs); line-height: 1.5; color: var(--mtc-text-3); overflow-wrap: anywhere; }
|
|
410
|
+
.mtc-settings-links { display: flex; flex-wrap: wrap; gap: var(--mtc-space-3); }
|
|
411
|
+
.mtc-settings-notice:empty, .mtc-settings-result:empty { display: none; }
|
|
412
|
+
.mtc-settings-notice, .mtc-settings-result { font-size: var(--mtc-fs-sm); line-height: 1.45; color: var(--mtc-text-2); }
|
|
413
|
+
.mtc-settings-notice[data-tone="ok"], .mtc-settings-result[data-tone="ok"] { color: var(--mtc-success); }
|
|
414
|
+
.mtc-settings-notice[data-tone="error"], .mtc-settings-result[data-tone="error"] { color: var(--mtc-danger); }
|
|
415
|
+
.mtc-settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--mtc-space-2); padding: 10px 16px 12px; border-top: 1px solid var(--mtc-border); }
|
|
416
|
+
.mtc-settings-footer .mtc-settings-result { flex: 1 1 auto; min-width: 0; margin-right: auto; }
|
|
417
|
+
.mtc-config-row { display: flex; align-items: center; gap: var(--mtc-space-3); min-height: 30px; }
|
|
418
|
+
.mtc-config-stack { display: grid; gap: 6px; }
|
|
419
|
+
.mtc-config-label { flex: 0 0 104px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
|
|
420
|
+
.mtc-config-control { flex: 1 1 auto; min-width: 0; }
|
|
421
|
+
.mtc-config-control .cc-dropdown, .mtc-config-control .cc-dropdown-trigger { width: 100%; max-width: none; box-sizing: border-box; }
|
|
422
|
+
.mtc-config-control .cc-dropdown-trigger { min-height: 28px; font-size: var(--mtc-fs-sm); }
|
|
423
|
+
.mtc-config-control .cc-dropdown-menu { max-height: 260px; overflow-y: auto; }
|
|
424
|
+
.mtc-config-input { width: 100%; box-sizing: border-box; min-height: 28px; padding: 5px 8px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text); font: 400 var(--mtc-fs-md)/1.45 var(--mtc-font); outline: none; transition: border-color var(--mtc-dur-fast); }
|
|
425
|
+
.mtc-config-input:hover { border-color: var(--mtc-text-3); }
|
|
426
|
+
.mtc-config-input:focus-visible { border-color: var(--mtc-text-2); outline: 2px solid var(--mtc-focus); outline-offset: 1px; }
|
|
427
|
+
textarea.mtc-config-input { min-height: 84px; resize: vertical; }
|
|
428
|
+
input.mtc-config-input[type="number"] { max-width: 120px; }
|
|
429
|
+
@container mtc-header (width < 300px) { .mtc-header-rename { display: none; } }
|
|
430
|
+
body.ui-interacting :is(.mtc-thought.thinking summary, .mtc-stream-cursor, .mtc-dot, .mtc-pill-ring > i, .mtc-composer-ring > i, .mtc-pill-running .term-minimized-pill-icon) { animation-play-state: paused !important; }
|
|
431
|
+
html.sp-resizing .mtc-panel { backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
|
|
432
|
+
@media (prefers-reduced-motion: reduce) {
|
|
433
|
+
.mtc-panel, .mtc-panel *, .mtc-panel *::before, .mtc-panel *::after, .mtc-session-pill, .mtc-session-pill *, .mtc-pop, .mtc-pop * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
|
434
|
+
}
|
|
435
|
+
`;
|
|
436
|
+
document.head.appendChild(style);
|
|
437
|
+
}
|
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
|
|
6
6
|
const _runBySession = new Map();
|
|
7
7
|
const _registeredListeners = new Set();
|
|
8
|
+
// The automation sessions whose run is live (starting, running, or suspended by a server restart and
|
|
9
|
+
// resumed on the next start): the panel's own book of them (ocp-v2-panel.js `_automationRunning`), kept
|
|
10
|
+
// here so the socket layer can read it without importing the panel.
|
|
11
|
+
const _liveRuns = new Set();
|
|
12
|
+
|
|
13
|
+
/** The set of automation sessions whose run is live. The panel adds and deletes; everyone else reads. */
|
|
14
|
+
export function liveAutomationSessions() {
|
|
15
|
+
return _liveRuns;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* True when the run that drives `sessionId` answers that session's own permission asks by itself: an
|
|
20
|
+
* automation's root session while its run is live. Its native adapter replies to every ask (by the
|
|
21
|
+
* worker's confinement, or "once" when it has none; lib/native-loop-providers.js policyReply), and the
|
|
22
|
+
* asks it hands to a person go to the Assistant's own card. A protected worker's OpenCode rules ask for
|
|
23
|
+
* every shell call, so such an ask is a step of the run, not news. A sub-agent's ask is not answered by
|
|
24
|
+
* the run (the adapter keeps to its own session), and an ended run answers nothing.
|
|
25
|
+
*/
|
|
26
|
+
export function automationRunAnswersAsks(sessionId) {
|
|
27
|
+
const sid = clean(sessionId);
|
|
28
|
+
return !!sid && _runBySession.has(sid) && _liveRuns.has(sid);
|
|
29
|
+
}
|
|
8
30
|
|
|
9
31
|
function clean(value) {
|
|
10
32
|
return String(value || '').trim();
|
|
@@ -29,6 +51,7 @@ export function unregisterAutomationSession(sessionId, runId = null) {
|
|
|
29
51
|
if (!sid || !_runBySession.has(sid)) return false;
|
|
30
52
|
const expectedRunId = runId == null ? null : clean(runId);
|
|
31
53
|
if (expectedRunId != null && _runBySession.get(sid) !== expectedRunId) return false;
|
|
54
|
+
_liveRuns.delete(sid);
|
|
32
55
|
return _runBySession.delete(sid);
|
|
33
56
|
}
|
|
34
57
|
|
|
@@ -62,6 +62,19 @@ export function eventSessionId(ev) {
|
|
|
62
62
|
|
|
63
63
|
export const permissionRequestId = (ev) => String(ev?.requestID || ev?.id || ev?.permissionID || '');
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Whether a new ask is announced to the person (sound, toast, OS banner). A permission ask
|
|
67
|
+
* of a session whose live automation run answers it by itself (`runAnswers(sessionId)`) is
|
|
68
|
+
* not: that run's adapter replies at once, and a protected worker's OpenCode rules ask for
|
|
69
|
+
* every shell call, so announcing it pinged the user after every step of the worker. A
|
|
70
|
+
* question, a sub-agent's ask and everything outside a live run still wait on a person.
|
|
71
|
+
*/
|
|
72
|
+
export function askNotifies(kind, ev, { runAnswers = () => false } = {}) {
|
|
73
|
+
if (kind !== 'permission') return true;
|
|
74
|
+
const owner = eventSessionId(ev);
|
|
75
|
+
return !(owner && runAnswers(owner));
|
|
76
|
+
}
|
|
77
|
+
|
|
65
78
|
// Requests a sub-agent raises have no panel of their own unless its child
|
|
66
79
|
// panel is open; they still have to reach the user.
|
|
67
80
|
const ASKED_EVENTS = new Set(['permission.asked', 'question.asked']);
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
// ocp/ tree.
|
|
5
5
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
6
6
|
|
|
7
|
+
import { synabunToolKey } from '../synabun-tools.js';
|
|
8
|
+
|
|
7
9
|
export const TOOL_ICONS = {
|
|
8
10
|
bash: '<svg viewBox="0 0 24 24"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',
|
|
9
11
|
write: '<svg viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>',
|
|
@@ -24,7 +26,7 @@ export const TOOL_ICONS = {
|
|
|
24
26
|
const SYNABUN_ICON = '<img src="logoHD.png" alt="" style="width:14px;height:14px;object-fit:contain;">';
|
|
25
27
|
|
|
26
28
|
export function toolIcon(name) {
|
|
27
|
-
if (name && (name
|
|
29
|
+
if (name && synabunToolKey(name) != null) return SYNABUN_ICON;
|
|
28
30
|
const key = (name || '').toLowerCase().replace(/[^a-z]/g, '');
|
|
29
31
|
return TOOL_ICONS[key] || TOOL_ICONS.bash;
|
|
30
32
|
}
|
|
@@ -35,6 +35,7 @@ import { setSelectOptions, projectOptionRows } from './ocp-v2-select.js';
|
|
|
35
35
|
import { replyFailed, replyError } from './ocp-v2-caps.js';
|
|
36
36
|
import { rehydratePanelSession, recoveredErrorSweep } from './ocp-v2-rehydrate.js';
|
|
37
37
|
import { headerStatus } from './ocp-v2-render-logic.js';
|
|
38
|
+
import { runTurnLive } from '../sidepanel-session-status.js';
|
|
38
39
|
import {
|
|
39
40
|
getState, subscribe, setSession, setServerStatus, setCwd, clearMessages, pushError, clearErrors, setHealing,
|
|
40
41
|
addAttachedImage, getDefaultStore, setRunning,
|
|
@@ -59,7 +60,7 @@ import { mountCliBanner } from '../ui-cli-banner.js';
|
|
|
59
60
|
import { backToAssistant, buildWorkerEndCard, endWorkerRunOnClose, forgetWorkerEnd, trackWorkerEnd } from '../ui-worker-end.js';
|
|
60
61
|
import { isDispatchedRun } from '../worker-end.js';
|
|
61
62
|
import {
|
|
62
|
-
registerAutomationSession, unregisterAutomationSession, stopAutomationRun, isAutomationSession,
|
|
63
|
+
registerAutomationSession, unregisterAutomationSession, stopAutomationRun, isAutomationSession, liveAutomationSessions,
|
|
63
64
|
} from './ocp-v2-automation-ownership.js';
|
|
64
65
|
import {
|
|
65
66
|
registerPrimaryPanel, bindPrimarySession, isChildPanelOpen, getVisibleChildPanel, openChildSession,
|
|
@@ -101,7 +102,9 @@ let _tabSessionIds = []; // ordered session IDs that own a tray pill
|
|
|
101
102
|
let _tabPills = new Map(); // sessionId -> pill element
|
|
102
103
|
let _tabInfoCache = new Map(); // sessionId -> last-known session info (title, etc.)
|
|
103
104
|
const _automationRunIds = new Map(); // sessionId -> native loop runId
|
|
104
|
-
|
|
105
|
+
// The sessions whose automation run is live. The ownership module keeps the set, so that the socket layer
|
|
106
|
+
// knows which asks a run answers by itself (automationRunAnswersAsks) and announces none of them.
|
|
107
|
+
const _automationRunning = liveAutomationSessions();
|
|
105
108
|
// sessionId → what a live automation run's turn does ('working', 'waiting' on the user, 'idle' between turns:
|
|
106
109
|
// automationTurnPhase of the run's descriptor): its pill follows the turn, not the run.
|
|
107
110
|
const _automationTurn = new Map();
|
|
@@ -2540,6 +2543,7 @@ export async function attachOpenCodeAutomation(run, { focus = !!run?.focus, isCa
|
|
|
2540
2543
|
const previousRunId = _automationRunIds.get(sessionId);
|
|
2541
2544
|
const restart = workerRestart(run);
|
|
2542
2545
|
const running = restart.active;
|
|
2546
|
+
const turnLive = runTurnLive(run);
|
|
2543
2547
|
_workerRestarts.set(sessionId, restart);
|
|
2544
2548
|
// The user continued this run's session by hand after the run ended: the tab stays theirs.
|
|
2545
2549
|
const released = !running && previousRunId === run.runId
|
|
@@ -2592,10 +2596,12 @@ export async function attachOpenCodeAutomation(run, { focus = !!run?.focus, isCa
|
|
|
2592
2596
|
if (!_visible) await showPrimaryOpencodePanel();
|
|
2593
2597
|
await switchToSession(sessionId, info, { nav });
|
|
2594
2598
|
} else if (getState().sessionId === sessionId) {
|
|
2595
|
-
setRunning(
|
|
2599
|
+
setRunning(turnLive);
|
|
2596
2600
|
await rehydrateActiveSession().catch(() => {});
|
|
2597
2601
|
}
|
|
2598
|
-
|
|
2602
|
+
// The store's `running` (the composer's stop button, the thinking row) follows the run's turn, not the run: a
|
|
2603
|
+
// warm worker between turns rests (its pill says idle: tabPillState), and a run that ended works no more.
|
|
2604
|
+
if (getState().sessionId === sessionId) setRunning(turnLive);
|
|
2599
2605
|
_renderer?.render();
|
|
2600
2606
|
// (A dispatched worker's failure, with its reason, is on its end card.)
|
|
2601
2607
|
if (run.status === 'failed' && run.error && !isDispatchedRun(run) && getState().sessionId === sessionId
|