synabun 2.3.0 → 2.4.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 +38 -0
- package/README.md +1 -1
- package/browser-extension/content.js +169 -0
- package/browser-extension/engine.js +477 -0
- package/browser-extension/icons/icon-128.png +0 -0
- package/browser-extension/icons/icon-16.png +0 -0
- package/browser-extension/icons/icon-32.png +0 -0
- package/browser-extension/icons/icon-48.png +0 -0
- package/browser-extension/icons/status-off-16.png +0 -0
- package/browser-extension/icons/status-off-32.png +0 -0
- package/browser-extension/icons/status-off-48.png +0 -0
- package/browser-extension/icons/status-on-16.png +0 -0
- package/browser-extension/icons/status-on-32.png +0 -0
- package/browser-extension/icons/status-on-48.png +0 -0
- package/browser-extension/manifest.json +56 -0
- package/browser-extension/popup-strings.js +244 -0
- package/browser-extension/popup-view.js +151 -0
- package/browser-extension/popup.css +165 -0
- package/browser-extension/popup.html +105 -0
- package/browser-extension/popup.js +347 -0
- package/browser-extension/protocol.js +226 -0
- package/browser-extension/service-worker.js +267 -0
- package/browser-extension/setup-content.js +36 -0
- package/browser-extension/tokens.css +326 -0
- package/docs/browser-extension-bridge.md +84 -0
- package/docs/whatsapp.md +1 -1
- package/mcp-server/dist/http.d.ts +2 -0
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +9 -1
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/index.d.ts +11 -0
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +38 -3
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.d.ts +6 -2
- package/mcp-server/dist/services/browser-route-flow.d.ts.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.js +10 -3
- package/mcp-server/dist/services/browser-route-flow.js.map +1 -1
- package/mcp-server/dist/services/codex-config-heal.d.ts.map +1 -1
- package/mcp-server/dist/services/codex-config-heal.js +7 -0
- package/mcp-server/dist/services/codex-config-heal.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +94 -3
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +168 -23
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/team-context.d.ts +18 -0
- package/mcp-server/dist/services/team-context.d.ts.map +1 -0
- package/mcp-server/dist/services/team-context.js +29 -0
- package/mcp-server/dist/services/team-context.js.map +1 -0
- package/mcp-server/dist/services/tool-catalog.d.ts +5 -2
- package/mcp-server/dist/services/tool-catalog.d.ts.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +22 -6
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/services/tool-list.d.ts.map +1 -1
- package/mcp-server/dist/services/tool-list.js +4 -0
- package/mcp-server/dist/services/tool-list.js.map +1 -1
- package/mcp-server/dist/services/tool-runtime.d.ts +8 -1
- package/mcp-server/dist/services/tool-runtime.d.ts.map +1 -1
- package/mcp-server/dist/services/tool-runtime.js +18 -1
- package/mcp-server/dist/services/tool-runtime.js.map +1 -1
- package/mcp-server/dist/tools/agent-definition.d.ts +133 -0
- package/mcp-server/dist/tools/agent-definition.d.ts.map +1 -0
- package/mcp-server/dist/tools/agent-definition.js +483 -0
- package/mcp-server/dist/tools/agent-definition.js.map +1 -0
- package/mcp-server/dist/tools/agents.d.ts +91 -9
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +161 -20
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts +8 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.js +70 -6
- package/mcp-server/dist/tools/browser-advanced.js.map +1 -1
- package/mcp-server/dist/tools/git-tools.d.ts +4 -2
- package/mcp-server/dist/tools/git-tools.d.ts.map +1 -1
- package/mcp-server/dist/tools/git-tools.js +283 -2
- package/mcp-server/dist/tools/git-tools.js.map +1 -1
- package/mcp-server/dist/tools/morelogin.d.ts +8 -2
- package/mcp-server/dist/tools/morelogin.d.ts.map +1 -1
- package/mcp-server/dist/tools/morelogin.js +22 -5
- package/mcp-server/dist/tools/morelogin.js.map +1 -1
- package/mcp-server/dist/tools/team.d.ts +32 -0
- package/mcp-server/dist/tools/team.d.ts.map +1 -0
- package/mcp-server/dist/tools/team.js +87 -0
- package/mcp-server/dist/tools/team.js.map +1 -0
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +9 -1
- package/mcp-server/src/index.ts +34 -4
- package/mcp-server/src/services/browser-route-flow.ts +12 -5
- package/mcp-server/src/services/codex-config-heal.ts +7 -0
- package/mcp-server/src/services/neural-interface.ts +190 -29
- package/mcp-server/src/services/team-context.ts +27 -0
- package/mcp-server/src/services/tool-catalog.ts +26 -8
- package/mcp-server/src/services/tool-list.ts +4 -0
- package/mcp-server/src/services/tool-runtime.ts +21 -2
- package/mcp-server/src/tools/agent-definition.ts +458 -0
- package/mcp-server/src/tools/agents.ts +175 -19
- package/mcp-server/src/tools/browser-advanced.ts +60 -6
- package/mcp-server/src/tools/git-tools.ts +249 -3
- package/mcp-server/src/tools/morelogin.ts +20 -5
- package/mcp-server/src/tools/team.ts +97 -0
- package/neural-interface/i18n/en.json +1174 -47
- package/neural-interface/i18n/pt-BR.json +1174 -47
- package/neural-interface/lib/account-usage.js +1 -1
- package/neural-interface/lib/agents/density.js +101 -0
- package/neural-interface/lib/agents/forge-host.js +223 -0
- package/neural-interface/lib/agents/native-export-targets.js +190 -0
- package/neural-interface/lib/agents/native-export.js +365 -0
- package/neural-interface/lib/agents/registry.js +840 -0
- package/neural-interface/lib/agents/resolve.js +544 -0
- package/neural-interface/lib/agents/schema.js +642 -0
- package/neural-interface/lib/agents/split.js +37 -0
- package/neural-interface/lib/agents-studio-api.js +591 -0
- package/neural-interface/lib/assistant-api.js +76 -7
- package/neural-interface/lib/assistant-catalog.js +2 -0
- package/neural-interface/lib/assistant-continuity.js +49 -0
- package/neural-interface/lib/assistant-dispatch.js +229 -102
- package/neural-interface/lib/assistant-persona.js +105 -8
- package/neural-interface/lib/assistant-route-gate.js +24 -9
- package/neural-interface/lib/assistant-router.js +384 -42
- package/neural-interface/lib/assistant-run-tail.js +151 -0
- package/neural-interface/lib/assistant-run-wait.js +183 -0
- package/neural-interface/lib/assistant-runtime.js +440 -93
- package/neural-interface/lib/assistant-task-prompt.js +11 -2
- package/neural-interface/lib/assistant-usage.js +3 -2
- package/neural-interface/lib/automation-approval.js +2 -2
- package/neural-interface/lib/browser-close-evidence.js +80 -0
- package/neural-interface/lib/browser-default.js +210 -0
- package/neural-interface/lib/browser-extension-adapter.js +255 -0
- package/neural-interface/lib/browser-extension-bridge.js +418 -0
- package/neural-interface/lib/browser-extension-folder.js +116 -0
- package/neural-interface/lib/browser-extension-setup.js +140 -0
- package/neural-interface/lib/browser-profile-choices.js +3 -3
- package/neural-interface/lib/browser-profiles.js +1 -1
- package/neural-interface/lib/browser-tool-policy.js +1 -1
- package/neural-interface/lib/claude-account-links.js +301 -0
- package/neural-interface/lib/claude-accounts.js +45 -20
- package/neural-interface/lib/claude-agent-bridge.js +142 -10
- package/neural-interface/lib/claude-model-catalog.js +6 -0
- package/neural-interface/lib/claude-panel-session.js +33 -0
- package/neural-interface/lib/cli-install-api.js +23 -0
- package/neural-interface/lib/codex-accounts.js +67 -24
- package/neural-interface/lib/coordination/README.md +384 -0
- package/neural-interface/lib/coordination/service.js +563 -0
- package/neural-interface/lib/coordination/store.js +1138 -0
- package/neural-interface/lib/db.js +22 -1
- package/neural-interface/lib/editor-completion-opencode.js +4 -3
- package/neural-interface/lib/effort-levels.js +10 -1
- package/neural-interface/lib/maritaca/opencode-proxy.js +7 -2
- package/neural-interface/lib/maritaca/opencode.js +35 -0
- package/neural-interface/lib/memory-list-page.js +49 -0
- package/neural-interface/lib/memory-list-stamp.js +60 -0
- package/neural-interface/lib/morelogin-outside-close.js +186 -0
- package/neural-interface/lib/morelogin-profile-failures.js +206 -0
- package/neural-interface/lib/morelogin-start-cooldown.js +160 -0
- package/neural-interface/lib/morelogin.js +219 -7
- package/neural-interface/lib/native-loop-runtime.js +24 -1
- package/neural-interface/lib/opencode-build-preflight.js +116 -0
- package/neural-interface/lib/opencode-launch-error.js +13 -0
- package/neural-interface/lib/opencode-native-boundary.js +800 -84
- package/neural-interface/lib/opencode-serve-probe.js +426 -0
- package/neural-interface/lib/opencode-serve-records.js +14 -9
- package/neural-interface/lib/opencode-serve-scan.js +108 -0
- package/neural-interface/lib/page-session.js +1 -1
- package/neural-interface/lib/peer-identity.js +60 -21
- package/neural-interface/lib/process-identity.js +235 -7
- package/neural-interface/lib/request-gate.js +3 -0
- package/neural-interface/lib/screenshot-location.js +33 -0
- package/neural-interface/lib/skills/creation.js +1 -1
- package/neural-interface/lib/skills/known-bridge-digests.json +40 -0
- package/neural-interface/lib/studio-attention.js +56 -0
- package/neural-interface/lib/teams/README.md +382 -0
- package/neural-interface/lib/teams/api.js +287 -0
- package/neural-interface/lib/teams/brief.js +185 -0
- package/neural-interface/lib/teams/claims.js +315 -0
- package/neural-interface/lib/teams/git.js +293 -0
- package/neural-interface/lib/teams/index.js +122 -0
- package/neural-interface/lib/teams/integration.js +580 -0
- package/neural-interface/lib/teams/landing.js +184 -0
- package/neural-interface/lib/teams/recovery.js +256 -0
- package/neural-interface/lib/teams/scheduler.js +1474 -0
- package/neural-interface/lib/teams/schema.js +559 -0
- package/neural-interface/lib/teams/state.js +181 -0
- package/neural-interface/lib/teams/test-runner.js +86 -0
- package/neural-interface/lib/teams/test-sandbox.js +99 -0
- package/neural-interface/lib/teams/worktrees.js +757 -0
- package/neural-interface/lib/tool-permission-choices.js +226 -0
- package/neural-interface/lib/whatsapp/cards.js +24 -10
- package/neural-interface/lib/worker-confinement.js +206 -6
- package/neural-interface/lib/worker-mcp-channel.js +38 -1
- package/neural-interface/package-lock.json +4 -2
- package/neural-interface/package.json +3 -1
- package/neural-interface/public/extension-setup.html +107 -0
- package/neural-interface/public/index.html +52 -12
- package/neural-interface/public/shared/agent-runtime-options.js +3 -1
- package/neural-interface/public/shared/agents/studio/ax-agent-view.js +614 -0
- package/neural-interface/public/shared/agents/studio/ax-api.js +198 -0
- package/neural-interface/public/shared/agents/studio/ax-create-view.js +221 -0
- package/neural-interface/public/shared/agents/studio/ax-diff.js +143 -0
- package/neural-interface/public/shared/agents/studio/ax-editor-view.js +392 -0
- package/neural-interface/public/shared/agents/studio/ax-export-view.js +94 -0
- package/neural-interface/public/shared/agents/studio/ax-form.js +191 -0
- package/neural-interface/public/shared/agents/studio/ax-icons.js +87 -0
- package/neural-interface/public/shared/agents/studio/ax-library-view.js +158 -0
- package/neural-interface/public/shared/agents/studio/ax-library.js +162 -0
- package/neural-interface/public/shared/agents/studio/ax-main.js +712 -0
- package/neural-interface/public/shared/agents/studio/ax-native-export.js +35 -0
- package/neural-interface/public/shared/agents/studio/ax-options.js +198 -0
- package/neural-interface/public/shared/agents/studio/ax-review-view.js +175 -0
- package/neural-interface/public/shared/agents/studio/ax-revisions-view.js +189 -0
- package/neural-interface/public/shared/agents/studio/ax-runs-view.js +202 -0
- package/neural-interface/public/shared/agents/studio/ax-runs.js +82 -0
- package/neural-interface/public/shared/agents/studio/ax-teams-view.js +256 -0
- package/neural-interface/public/shared/agents/studio/ax-teams.js +200 -0
- package/neural-interface/public/shared/agents/studio/ax-templates.js +50 -0
- package/neural-interface/public/shared/agents/studio/ax-ui.js +194 -0
- package/neural-interface/public/shared/agents/studio/ax-views.js +170 -0
- package/neural-interface/public/shared/agy/agy-panel.js +142 -28
- package/neural-interface/public/shared/agy/agy-styles.js +25 -5
- package/neural-interface/public/shared/assistant/asst-account-menu.js +13 -13
- package/neural-interface/public/shared/assistant/asst-ask-styles.js +2 -3
- package/neural-interface/public/shared/assistant/asst-brain-picker.js +91 -9
- package/neural-interface/public/shared/assistant/asst-control.js +3 -0
- package/neural-interface/public/shared/assistant/asst-interaction-hold.js +99 -0
- package/neural-interface/public/shared/assistant/asst-limit-dismissals.js +111 -0
- package/neural-interface/public/shared/assistant/asst-limit-dock.js +37 -3
- package/neural-interface/public/shared/assistant/asst-limit-wait.js +30 -7
- package/neural-interface/public/shared/assistant/asst-panel.js +177 -30
- package/neural-interface/public/shared/assistant/asst-rack-styles.js +15 -8
- package/neural-interface/public/shared/assistant/asst-render.js +36 -6
- package/neural-interface/public/shared/assistant/asst-route.js +78 -12
- package/neural-interface/public/shared/assistant/asst-routes-editor.js +148 -70
- package/neural-interface/public/shared/assistant/asst-roving.js +17 -1
- package/neural-interface/public/shared/assistant/asst-scene-styles.js +7 -2
- package/neural-interface/public/shared/assistant/asst-scenes.js +12 -1
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +12 -2
- package/neural-interface/public/shared/assistant/asst-state.js +66 -1
- package/neural-interface/public/shared/assistant/asst-styles.js +98 -44
- package/neural-interface/public/shared/assistant/route-identity.js +16 -0
- package/neural-interface/public/shared/cdx/cdx-output.js +10 -0
- package/neural-interface/public/shared/cdx/cdx-panel.js +18 -16
- package/neural-interface/public/shared/cdx/cdx-plan.js +3 -2
- package/neural-interface/public/shared/cdx/cdx-render.js +122 -45
- package/neural-interface/public/shared/cdx/cdx-requests.js +4 -4
- package/neural-interface/public/shared/cdx/cdx-styles.js +8 -36
- package/neural-interface/public/shared/cdx/cdx-tabs.js +110 -42
- package/neural-interface/public/shared/claude-panel-lazy.js +12 -0
- package/neural-interface/public/shared/code-copy.js +120 -0
- package/neural-interface/public/shared/constants.js +7 -0
- package/neural-interface/public/shared/context-menu-model.js +1 -0
- package/neural-interface/public/shared/cp/cp-markdown.js +7 -2
- package/neural-interface/public/shared/cp/cp-session-model.js +86 -5
- package/neural-interface/public/shared/cp/cp-session-settings.js +58 -30
- package/neural-interface/public/shared/cp/cp-styles.js +9 -0
- package/neural-interface/public/shared/dom-change-flag.js +66 -0
- package/neural-interface/public/shared/dom-morph.js +124 -0
- package/neural-interface/public/shared/extension-setup/es-page.css +134 -0
- package/neural-interface/public/shared/extension-setup/es-page.js +120 -0
- package/neural-interface/public/shared/extension-setup/es-view.js +100 -0
- package/neural-interface/public/shared/html-shell.js +33 -4
- package/neural-interface/public/shared/i18n.js +14 -1
- package/neural-interface/public/shared/idle-queue.js +78 -0
- package/neural-interface/public/shared/iface-config.js +227 -0
- package/neural-interface/public/shared/lazy-module.js +108 -0
- package/neural-interface/public/shared/memory-list.js +117 -0
- package/neural-interface/public/shared/morelogin-profile-choices.js +1 -1
- package/neural-interface/public/shared/morelogin-profile-field.js +3 -3
- package/neural-interface/public/shared/mtc/mtc-panel.js +3 -1
- package/neural-interface/public/shared/mtc/mtc-styles.js +4 -1
- package/neural-interface/public/shared/ocp-v2/ocp-v2-manager.js +35 -15
- package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +77 -23
- package/neural-interface/public/shared/ocp-v2/ocp-v2-projectbar.js +3 -6
- package/neural-interface/public/shared/ocp-v2/ocp-v2-render.js +24 -21
- package/neural-interface/public/shared/ocp-v2/ocp-v2-send-logic.js +16 -5
- package/neural-interface/public/shared/ocp-v2/ocp-v2-sessions-logic.js +16 -2
- package/neural-interface/public/shared/ocp-v2/ocp-v2-styles.js +27 -43
- package/neural-interface/public/shared/ocp-v2/ocp-v2-ws.js +73 -9
- package/neural-interface/public/shared/opencode-verify-view.js +175 -0
- package/neural-interface/public/shared/schedules-view.js +2 -2
- package/neural-interface/public/shared/session-project-items.js +11 -0
- package/neural-interface/public/shared/settings/settings-ai-browser.js +119 -0
- package/neural-interface/public/shared/settings/settings-browser-extension.js +446 -0
- package/neural-interface/public/shared/settings/settings-ia.js +4 -2
- package/neural-interface/public/shared/settings/settings-morelogin-cooldown.js +63 -0
- package/neural-interface/public/shared/settings/settings-tool-permissions.js +70 -0
- package/neural-interface/public/shared/sidepanel-lazy.js +40 -0
- package/neural-interface/public/shared/sidepanel-session-status.js +8 -14
- package/neural-interface/public/shared/sidepanel-shown.js +73 -0
- package/neural-interface/public/shared/storage.js +6 -1
- package/neural-interface/public/shared/studio-attention.js +83 -0
- package/neural-interface/public/shared/styles.css +713 -61
- package/neural-interface/public/shared/term-browser-tabs.js +34 -0
- package/neural-interface/public/shared/transcript-rows.js +334 -0
- package/neural-interface/public/shared/tray-auto-close.js +106 -0
- package/neural-interface/public/shared/ui-agents.js +97 -0
- package/neural-interface/public/shared/ui-antigravity-panel.js +16 -14
- package/neural-interface/public/shared/ui-automation-studio.js +3 -3
- package/neural-interface/public/shared/ui-claude-panel.js +162 -95
- package/neural-interface/public/shared/ui-code-copy.js +256 -0
- package/neural-interface/public/shared/ui-codex-panel.js +14 -10
- package/neural-interface/public/shared/ui-context-menu.js +1 -1
- package/neural-interface/public/shared/ui-file-explorer.js +2 -3
- package/neural-interface/public/shared/ui-games.js +1 -1
- package/neural-interface/public/shared/ui-loading.js +12 -1
- package/neural-interface/public/shared/ui-maritaca-panel.js +12 -11
- package/neural-interface/public/shared/ui-menubar.js +23 -0
- package/neural-interface/public/shared/ui-native-loop-router.js +1 -1
- package/neural-interface/public/shared/ui-navbar.js +15 -9
- package/neural-interface/public/shared/ui-opencode-panel-v2.js +13 -11
- package/neural-interface/public/shared/ui-opencode-verify.js +120 -0
- package/neural-interface/public/shared/ui-schedules-studio.js +3 -3
- package/neural-interface/public/shared/ui-scroll-follow.js +39 -0
- package/neural-interface/public/shared/ui-sessions.js +3 -3
- package/neural-interface/public/shared/ui-settings-entry.js +55 -0
- package/neural-interface/public/shared/ui-settings.js +372 -402
- package/neural-interface/public/shared/ui-sidepanel-layout.js +44 -25
- package/neural-interface/public/shared/ui-sidepanel-session-entry.js +22 -9
- package/neural-interface/public/shared/ui-sidepanel-sessions.js +10 -2
- package/neural-interface/public/shared/ui-sidepanel-tray.js +36 -41
- package/neural-interface/public/shared/ui-sidepanel-windows.js +14 -1
- package/neural-interface/public/shared/ui-styleguide.js +10 -2
- package/neural-interface/public/shared/ui-sync.js +5 -0
- package/neural-interface/public/shared/ui-terminal.js +13 -9
- package/neural-interface/public/shared/ui-tooltip.js +28 -7
- package/neural-interface/public/shared/ui-topright-overflow.js +26 -4
- package/neural-interface/public/shared/ui-tray-columns.js +375 -0
- package/neural-interface/public/shared/ui-whiteboard.js +51 -6
- package/neural-interface/public/shared/ui-worker-end.js +28 -1
- package/neural-interface/public/shared/ui-workspaces.js +13 -0
- package/neural-interface/public/shared/window-keys.js +71 -0
- package/neural-interface/public/variant/2d/main.js +2 -0
- package/neural-interface/public/variant/3d/app.js +620 -0
- package/neural-interface/public/variant/3d/boot-reveal.js +47 -0
- package/neural-interface/public/variant/3d/main.js +21 -544
- package/neural-interface/public/variant/3d/map-controls.js +4 -2
- package/neural-interface/public/vendor/fonts/fonts.css +508 -0
- package/neural-interface/public/vendor/fonts/inter-OFL.txt +93 -0
- package/neural-interface/public/vendor/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-cyrillic.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-greek-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-greek.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-latin-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-latin.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/inter-vietnamese.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-OFL.txt +93 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-cyrillic-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-cyrillic.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-greek.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-latin-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-latin.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/jetbrains-mono-vietnamese.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/manifest.json +142 -0
- package/neural-interface/public/vendor/fonts/space-grotesk-OFL.txt +93 -0
- package/neural-interface/public/vendor/fonts/space-grotesk-latin-ext.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/space-grotesk-latin.woff2 +0 -0
- package/neural-interface/public/vendor/fonts/space-grotesk-vietnamese.woff2 +0 -0
- package/neural-interface/scripts/boot-graph.mjs +270 -0
- package/neural-interface/scripts/vendor-fonts.mjs +124 -0
- package/neural-interface/server.js +1164 -157
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -1
- package/skills/agent-forge/SKILL.md +182 -0
- package/skills/agent-forge/evals/evals.json +56 -0
- package/skills/agent-forge/references/definition-fields.md +61 -0
- package/skills/agent-forge/references/examples.md +105 -0
- package/skills/agent-forge/references/instructions.md +51 -0
- package/skills/agent-forge/references/review-and-export.md +84 -0
|
@@ -124,6 +124,10 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
124
124
|
// catalogRefreshing: rows are drawn from the page's last catalog while a new build is read.
|
|
125
125
|
const state = { data: null, catalog: null, version: null, mode: DEFAULT_ROUTE_MODE, initialMode: DEFAULT_ROUTE_MODE, prefs: {}, patch: {}, loading: true, modelsLoading: true, catalogRefreshing: false, modelError: false, error: '', conflict: false, saving: false, confirm: null, suspended: false, offline: navigator.onLine === false, menuFocus: '', notice: '' };
|
|
126
126
|
state.expandedTask = null;
|
|
127
|
+
let pendingTaskScroll = null;
|
|
128
|
+
// A mode change restores its starting view. Opening a disclosure never edits routing.
|
|
129
|
+
state.showTasks = null;
|
|
130
|
+
const tasksOpen = () => state.showTasks ?? (state.mode === 'never');
|
|
127
131
|
const effectivePref = key => own(state.patch, key) ? state.patch[key] : state.prefs[key] || null;
|
|
128
132
|
const changes = () => routeEditorPatch(state.mode, state.initialMode, state.prefs, state.patch);
|
|
129
133
|
const dirty = () => Object.keys(changes()).length > 0;
|
|
@@ -139,7 +143,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
139
143
|
});
|
|
140
144
|
|
|
141
145
|
function button(cls, label, action) {
|
|
142
|
-
const b = el('button', cls, label); b.type = 'button'; b.setAttribute('aria-label', label); if (action) b.addEventListener('click', action); return b;
|
|
146
|
+
const b = el('button', cls, label); b.type = 'button'; if (label) b.setAttribute('aria-label', label); if (action) b.addEventListener('click', action); return b;
|
|
143
147
|
}
|
|
144
148
|
function fieldButton(cls, task, field, label, action) {
|
|
145
149
|
const b = button(`asst-dd ${cls}`, '', action);
|
|
@@ -184,7 +188,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
184
188
|
const proceed = button('asst-btn asst-btn-secondary asst-routes-confirm-action', kind === 'discard' ? tr('assistant.routes.editorState.discard', 'Discard changes') : tr('assistant.routes.editorState.resetConfirm', 'Reset choices'), () => {
|
|
185
189
|
if (kind === 'discard') { finishClose(); return; }
|
|
186
190
|
for (const key of new Set([...Object.keys(state.prefs), ...Object.keys(state.patch)])) state.patch[key] = null;
|
|
187
|
-
confirmationOff(); render();
|
|
191
|
+
confirmationOff(); render('task-routes');
|
|
188
192
|
});
|
|
189
193
|
confirmation.append(copy, keep, proceed); keep.focus();
|
|
190
194
|
}
|
|
@@ -230,15 +234,45 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
230
234
|
document.body.append(overlay);
|
|
231
235
|
// On the next frame: showing or hiding the cue resizes the body it is measured from, and a
|
|
232
236
|
// write inside the observer's own callback makes WebKit report a ResizeObserver loop error.
|
|
233
|
-
const resizeObserver = typeof ResizeObserver === 'function' ? new ResizeObserver(
|
|
237
|
+
const resizeObserver = typeof ResizeObserver === 'function' ? new ResizeObserver(entries => {
|
|
238
|
+
const viewportResized = entries.some(entry => entry.target === overlay);
|
|
239
|
+
requestAnimationFrame(() => {
|
|
240
|
+
if (viewportResized) updateCollapsedHeight();
|
|
241
|
+
updateCue();
|
|
242
|
+
});
|
|
243
|
+
}) : null;
|
|
244
|
+
resizeObserver?.observe(body);
|
|
245
|
+
resizeObserver?.observe(overlay);
|
|
234
246
|
editor = { el: overlay, close, focus: () => focus() };
|
|
235
247
|
|
|
248
|
+
function updateCollapsedHeight() {
|
|
249
|
+
if (!overlay.isConnected || !state.data || state.confirm || state.suspended) return;
|
|
250
|
+
const scroll = body.scrollTop;
|
|
251
|
+
// Keep the current task list and measure it with every inline editor closed.
|
|
252
|
+
modal.dataset.measureCollapsed = '';
|
|
253
|
+
const height = modal.getBoundingClientRect().height;
|
|
254
|
+
delete modal.dataset.measureCollapsed;
|
|
255
|
+
modal.style.setProperty('--asst-routes-collapsed-height', `${height}px`);
|
|
256
|
+
body.scrollTop = scroll;
|
|
257
|
+
}
|
|
258
|
+
|
|
236
259
|
function updateCue() {
|
|
237
260
|
if (!overlay.isConnected || state.confirm || state.suspended) return;
|
|
238
|
-
const more =
|
|
261
|
+
const more = tasksOpen() && body.scrollHeight - body.clientHeight - body.scrollTop > 4;
|
|
239
262
|
cue.hidden = !more;
|
|
240
263
|
cue.textContent = tr('assistant.routes.editorState.moreBelow', 'More task routes below ↓'); cue.setAttribute('aria-label', cue.textContent);
|
|
241
264
|
}
|
|
265
|
+
function scrollTaskIntoView(row) {
|
|
266
|
+
if (!row?.isConnected || pendingTaskScroll !== row.dataset.taskClass || state.confirm || state.suspended) return;
|
|
267
|
+
pendingTaskScroll = null;
|
|
268
|
+
updateCue();
|
|
269
|
+
const bounds = row.getBoundingClientRect();
|
|
270
|
+
const top = bounds.top - body.getBoundingClientRect().top - body.clientTop;
|
|
271
|
+
const height = body.clientHeight;
|
|
272
|
+
// Keep the summary at the top if the expanded row is taller than the scroller.
|
|
273
|
+
const delta = top < 0 || bounds.height > height ? top : Math.max(0, top + bounds.height - height);
|
|
274
|
+
if (Math.abs(delta) > 0.5) body.scrollBy({ top: delta, behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'instant' : 'smooth' });
|
|
275
|
+
}
|
|
242
276
|
function issueText(issue, task) {
|
|
243
277
|
switch (issue) {
|
|
244
278
|
case 'disabled': return tr('assistant.routes.issue.disabled', 'Hidden in Models. Show it there or choose another model.');
|
|
@@ -282,16 +316,22 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
282
316
|
saveBtn.disabled = !state.data || !changed || state.loading || state.saving || state.conflict || state.offline || invalidEdit;
|
|
283
317
|
saveBtn.title = invalidEdit ? tr('assistant.routes.editorState.fixChoices', 'Fix the highlighted choices or reset them before saving.') : '';
|
|
284
318
|
resetAllBtn.disabled = !state.data || !countChoices() || state.saving;
|
|
285
|
-
resetAllBtn.hidden = state.
|
|
319
|
+
resetAllBtn.hidden = !state.data || !tasksOpen();
|
|
320
|
+
const countLabel = body.querySelector('.asst-routes-choice-count');
|
|
321
|
+
const choices = countChoices();
|
|
322
|
+
if (countLabel) countLabel.textContent = choices === 1 ? tr('assistant.routes.oneChoice', '1 choice') : tr('assistant.routes.choiceCount', '{count} choices', { count: choices });
|
|
323
|
+
const validation = body.querySelector('.asst-routes-validation');
|
|
324
|
+
if (validation) validation.hidden = !invalidEdit;
|
|
286
325
|
cancelBtn.disabled = state.saving; closeBtn.disabled = state.saving || !!state.confirm;
|
|
287
326
|
body.inert = state.saving || !!state.confirm;
|
|
288
327
|
modal.dataset.dirty = changed ? 'true' : 'false';
|
|
328
|
+
updateCollapsedHeight();
|
|
289
329
|
}
|
|
290
330
|
function banner(text, actionLabel, action, tone = 'status') {
|
|
291
331
|
const b = el('div', `asst-routes-error${tone === 'status' ? ' asst-routes-notice' : ''}`); b.setAttribute('role', tone === 'error' ? 'alert' : 'status'); b.append(el('span', '', text));
|
|
292
332
|
if (action) b.append(button('asst-btn asst-btn-secondary', actionLabel, action)); body.append(b);
|
|
293
333
|
}
|
|
294
|
-
function render(focusKey) {
|
|
334
|
+
function render(focusKey, reveal = false) {
|
|
295
335
|
state.pendingRender = false;
|
|
296
336
|
const scroll = body.scrollTop;
|
|
297
337
|
const active = focusKey || document.activeElement?.dataset?.focusKey;
|
|
@@ -302,60 +342,95 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
302
342
|
if (state.loading && !state.data) body.append(el('div', 'asst-modal-note', tr('assistant.routes.editorState.loadingRoutes', 'Loading routing settings and models…')));
|
|
303
343
|
if (!state.data) { updateFoot(); return; }
|
|
304
344
|
const section = el('section', 'asst-routes-section asst-routes-ask');
|
|
305
|
-
// One slim row: the heading, the segmented control and the conversation's own mode; one line under it.
|
|
306
345
|
const askHead = el('div', 'asst-routes-section-head asst-routes-ask-head');
|
|
307
|
-
const heading = el('h2', 'asst-routes-section-title', tr('assistant.routes.
|
|
346
|
+
const heading = el('h2', 'asst-routes-section-title', tr('assistant.routes.globalMode', 'Default for conversations')); heading.id = `${id}-modes`;
|
|
308
347
|
askHead.append(heading);
|
|
309
348
|
const modes = el('div', 'asst-routes-modes'); modes.setAttribute('role', 'radiogroup'); modes.setAttribute('aria-labelledby', heading.id);
|
|
310
349
|
const modeCopy = {
|
|
311
|
-
'always-ask': '
|
|
312
|
-
'ask-unsure': '
|
|
313
|
-
never: 'Runs valid saved routes immediately
|
|
350
|
+
'always-ask': 'Confirm each actionable task. Your saved route is offered first when available.',
|
|
351
|
+
'ask-unsure': 'Saved routes guide suggestions. Confirm below {pct}% confidence or when the proposed model cannot run the task.',
|
|
352
|
+
never: 'Runs valid saved routes immediately. The assistant chooses for unassigned tasks.',
|
|
314
353
|
};
|
|
315
354
|
for (const mode of ROUTE_MODES) {
|
|
316
355
|
const label = el('label', 'asst-routes-mode'); label.dataset.mode = mode;
|
|
317
356
|
const input = document.createElement('input'); input.type = 'radio'; input.name = `${id}-mode`; input.value = mode; input.checked = mode === state.mode; input.dataset.focusKey = `mode-${mode}`;
|
|
318
|
-
input.setAttribute('aria-labelledby', `${id}-${mode}-label`); input.setAttribute('aria-describedby', `${id}-mode-desc`);
|
|
357
|
+
input.setAttribute('aria-labelledby', `${id}-${mode}-label`); if (input.checked) input.setAttribute('aria-describedby', `${id}-mode-desc`);
|
|
319
358
|
const name = el('span', 'asst-routes-mode-label', routeModeLabel(mode, hooks.t)); name.id = `${id}-${mode}-label`;
|
|
320
359
|
label.append(input, name);
|
|
321
|
-
input.addEventListener('change', () => {
|
|
360
|
+
input.addEventListener('change', () => {
|
|
361
|
+
if (!input.checked) return;
|
|
362
|
+
closeMenu(); state.mode = mode; state.showTasks = null; state.expandedTask = null;
|
|
363
|
+
state.notice = ''; body.scrollTop = 0; render(`mode-${mode}`);
|
|
364
|
+
}); modes.append(label);
|
|
322
365
|
}
|
|
323
366
|
const desc = el('p', 'asst-routes-mode-desc', tr(`assistant.routes.modeSummary.${state.mode}`, modeCopy[state.mode], { pct: threshold() })); desc.id = `${id}-mode-desc`;
|
|
324
367
|
desc.title = desc.textContent;
|
|
325
368
|
askHead.append(modes);
|
|
326
369
|
const current = hooks.getRouting?.();
|
|
327
|
-
if (current?.mode != null) {
|
|
328
|
-
const note = el('p', 'asst-routes-session-note', tr('assistant.routes.editorSessionOverride', 'This conversation overrides the default: {mode}.', { mode: routeModeLabel(current.effectiveMode || current.mode, hooks.t) }));
|
|
329
|
-
note.title = note.textContent; askHead.append(note);
|
|
330
|
-
}
|
|
331
370
|
section.append(askHead, desc);
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
if (active && !state.confirm && !state.suspended) focus(active);
|
|
338
|
-
requestAnimationFrame(updateCue);
|
|
339
|
-
return;
|
|
371
|
+
if (current) {
|
|
372
|
+
const scope = current.mode != null
|
|
373
|
+
? tr('assistant.routes.sessionOverride', 'This conversation uses {mode}. Change its override in the routing menu.', { mode: routeModeLabel(current.effectiveMode || current.mode, hooks.t) })
|
|
374
|
+
: tr('assistant.routes.followsDefault', 'This conversation follows the default.');
|
|
375
|
+
section.append(el('p', 'asst-routes-session-note', scope));
|
|
340
376
|
}
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
const
|
|
344
|
-
const
|
|
345
|
-
const
|
|
377
|
+
body.append(section);
|
|
378
|
+
const top = el('div', 'asst-routes-section-head asst-routes-task-head');
|
|
379
|
+
const taskHeading = el('h2', 'asst-routes-section-title');
|
|
380
|
+
const taskLabel = tr('assistant.routes.taskRoutes', 'Task routes');
|
|
381
|
+
const disclosure = button('asst-routes-disclosure', '', () => {
|
|
382
|
+
state.showTasks = !tasksOpen(); state.expandedTask = null; render('task-routes', state.showTasks);
|
|
383
|
+
});
|
|
384
|
+
disclosure.dataset.focusKey = 'task-routes';
|
|
385
|
+
disclosure.setAttribute('aria-expanded', String(tasksOpen()));
|
|
386
|
+
disclosure.setAttribute('aria-controls', `${id}-assignments`);
|
|
387
|
+
const arrow = el('span', 'asst-routes-chevron'); arrow.innerHTML = ICON_CARET;
|
|
388
|
+
disclosure.append(arrow, el('span', '', taskLabel), el('span', 'asst-routes-choice-count'));
|
|
389
|
+
taskHeading.append(disclosure);
|
|
346
390
|
const brainLabel = hooks.brainName?.() || routeModelLabel(brain(), state.catalog) || tr('assistant.routes.theBrain', 'The assistant');
|
|
347
|
-
taskHeading.title = tr('assistant.routes.brainLabel', 'Routing brain: {model}', { model: brainLabel });
|
|
348
|
-
top.append(
|
|
391
|
+
taskHeading.title = tr('assistant.routes.brainLabel', 'Routing brain: {model}', { model: brainLabel });
|
|
392
|
+
top.append(taskHeading); body.append(top);
|
|
393
|
+
const validation = el('p', 'asst-routes-validation', tr('assistant.routes.editorState.fixChoices', 'Fix the highlighted choices or reset them before saving.'));
|
|
394
|
+
validation.setAttribute('role', 'status'); validation.hidden = true; body.append(validation);
|
|
395
|
+
const assignments = el('div', 'asst-routes-reveal asst-routes-assignments'); assignments.hidden = !tasksOpen();
|
|
396
|
+
const table = el('section', 'asst-routes-section'); table.id = `${id}-assignments`; table.setAttribute('aria-label', taskLabel);
|
|
397
|
+
assignments.append(table); body.append(assignments);
|
|
398
|
+
if (tasksOpen()) {
|
|
399
|
+
table.classList.add('asst-routes-tasks');
|
|
400
|
+
renderAssignments(top, table);
|
|
401
|
+
} else cue.hidden = true;
|
|
402
|
+
updateFoot(); body.scrollTop = scroll;
|
|
403
|
+
if (active && !state.confirm && !state.suspended) focus(active);
|
|
404
|
+
const rowToScroll = pendingTaskScroll && pendingTaskScroll === state.expandedTask
|
|
405
|
+
? body.querySelector(`.asst-routes-row[data-task-class="${CSS.escape(pendingTaskScroll)}"]`)
|
|
406
|
+
: null;
|
|
407
|
+
const trigger = reveal && !matchMedia('(prefers-reduced-motion: reduce)').matches
|
|
408
|
+
? body.querySelector(`[data-focus-key="${CSS.escape(focusKey)}"]`)
|
|
409
|
+
: null;
|
|
410
|
+
const region = trigger && document.getElementById(trigger.getAttribute('aria-controls'))?.closest('.asst-routes-reveal');
|
|
411
|
+
if (region) {
|
|
412
|
+
region.style.setProperty('--asst-routes-reveal-height', `${region.getBoundingClientRect().height}px`);
|
|
413
|
+
region.dataset.opening = '';
|
|
414
|
+
const finishReveal = () => {
|
|
415
|
+
delete region.dataset.opening;
|
|
416
|
+
scrollTaskIntoView(rowToScroll);
|
|
417
|
+
};
|
|
418
|
+
region.addEventListener('animationend', finishReveal, { once: true });
|
|
419
|
+
region.addEventListener('animationcancel', finishReveal, { once: true });
|
|
420
|
+
} else scrollTaskIntoView(rowToScroll);
|
|
421
|
+
requestAnimationFrame(updateCue);
|
|
422
|
+
}
|
|
423
|
+
function renderAssignments(top, table) {
|
|
349
424
|
const actions = el('div', 'asst-routes-list-actions');
|
|
350
425
|
// A new build in progress is said in place of the Reload action, never as a spinner over the rows.
|
|
351
426
|
const reloadText = state.modelsLoading ? tr('assistant.routes.editorState.loadingModels', 'Loading models…') : state.catalogRefreshing ? tr('assistant.routes.editorState.modelsUpdating', 'Updating models…') : tr('assistant.routes.reloadModels', 'Reload models');
|
|
352
427
|
const reload = button('asst-btn asst-btn-secondary asst-routes-reload-models', reloadText, reloadModels); reload.disabled = state.modelsLoading || state.catalogRefreshing || state.saving || state.offline; reload.dataset.focusKey = 'reload-models';
|
|
353
428
|
reload.dataset.state = state.modelsLoading ? 'loading' : state.catalogRefreshing ? 'refreshing' : 'idle';
|
|
354
429
|
const manage = button('asst-btn asst-btn-secondary asst-routes-manage-models', tr('assistant.models.manage', 'Manage models…'), () => manageModels('manage-models')); manage.dataset.focusKey = 'manage-models';
|
|
355
|
-
actions.append(manage, reload); top.append(actions);
|
|
430
|
+
actions.append(manage, reload); top.append(actions);
|
|
356
431
|
if (!state.modelsLoading && state.modelError) {
|
|
357
432
|
const note = el('div', 'asst-routes-catalog-note'); note.setAttribute('role', 'status'); note.append(el('span', '', tr('assistant.routes.editorState.modelsFailed', 'Could not refresh the model list. Showing provider lists where available. Reload models to verify your choices.'))); table.append(note);
|
|
358
|
-
} else if (!rowsOf(state.catalog).length) table.append(el('div', 'asst-routes-catalog-note', tr('assistant.routes.editorState.modelsEmpty', 'No models are available. Check Models or connect a provider, then reload.')));
|
|
433
|
+
} else if (!state.modelsLoading && !rowsOf(state.catalog).length) table.append(el('div', 'asst-routes-catalog-note', tr('assistant.routes.editorState.modelsEmpty', 'No models are available. Check Models or connect a provider, then reload.')));
|
|
359
434
|
const list = el('div', 'asst-routes-list'); list.setAttribute('aria-busy', state.modelsLoading || state.catalogRefreshing ? 'true' : 'false');
|
|
360
435
|
const taskList = tasks();
|
|
361
436
|
const groups = [
|
|
@@ -364,20 +439,19 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
364
439
|
['desktop', 'Web & desktop', ['browser', 'computer', 'automation']],
|
|
365
440
|
['media', 'Design & media', ['design', 'image_gen', 'video_gen', 'vision']],
|
|
366
441
|
];
|
|
442
|
+
const otherIds = taskList.filter(t => !groups.some(([, , ids]) => ids.includes(t.id))).map(t => t.id);
|
|
443
|
+
groups.push(['other', 'Other tasks', otherIds]);
|
|
367
444
|
for (const [key, label, ids] of groups) {
|
|
445
|
+
const members = taskList.filter(t => ids.includes(t.id));
|
|
446
|
+
if (!members.length) continue;
|
|
368
447
|
const group = el('section', 'asst-routes-group');
|
|
369
448
|
const heading = el('h3', '', tr(`assistant.routes.groups.${key}`, label));
|
|
370
449
|
heading.id = `${id}-group-${key}`; group.setAttribute('aria-labelledby', heading.id); group.append(heading);
|
|
371
|
-
for (const task of
|
|
450
|
+
for (const task of members) group.append(taskRow(task));
|
|
372
451
|
list.append(group);
|
|
373
452
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (!taskList.length) list.append(el('div', 'asst-modal-note', tr('assistant.routes.editorState.tasksEmpty', 'No task classes are available on this server.')));
|
|
377
|
-
table.append(list); body.append(table);
|
|
378
|
-
updateFoot(); body.scrollTop = scroll;
|
|
379
|
-
if (active && !state.confirm && !state.suspended) focus(active);
|
|
380
|
-
requestAnimationFrame(updateCue);
|
|
453
|
+
if (!taskList.some(task => task.id !== 'vision')) table.append(el('div', 'asst-modal-note', tr('assistant.routes.editorState.tasksEmpty', 'No task classes are available on this server.')));
|
|
454
|
+
table.append(list);
|
|
381
455
|
}
|
|
382
456
|
function taskRow(task) {
|
|
383
457
|
const pref = effectivePref(task.id);
|
|
@@ -387,9 +461,9 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
387
461
|
const node = el('div', 'asst-routes-row'); node.dataset.taskClass = task.id;
|
|
388
462
|
const nameId = `${id}-task-${task.id}`;
|
|
389
463
|
node.setAttribute('role', 'group'); node.setAttribute('aria-labelledby', nameId);
|
|
464
|
+
const expanded = state.expandedTask === task.id;
|
|
465
|
+
const details = el('div', 'asst-routes-details'); details.id = `${nameId}-details`; details.hidden = !expanded;
|
|
390
466
|
const main = el('div', 'asst-routes-row-main');
|
|
391
|
-
const name = el('div', 'asst-routes-row-label', task.label); name.id = nameId; main.append(name);
|
|
392
|
-
name.title = task.label;
|
|
393
467
|
const description = el('div', 'asst-routes-row-desc', task.description); description.title = task.description;
|
|
394
468
|
main.append(description);
|
|
395
469
|
if (task.dispatchOnly || task.id === 'computer' || task.id === 'vision') {
|
|
@@ -406,7 +480,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
406
480
|
description.hidden = true;
|
|
407
481
|
capabilityNote = el('div', 'asst-routes-row-note', empty); capabilityNote.title = empty;
|
|
408
482
|
}
|
|
409
|
-
|
|
483
|
+
details.append(main);
|
|
410
484
|
const modelCell = el('div', 'asst-routes-cell asst-routes-model-cell');
|
|
411
485
|
modelCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.model', 'Model')));
|
|
412
486
|
const label = pref ? routeModelLabel(pref, state.catalog) : tr('assistant.routes.brainDecides', 'Assistant chooses');
|
|
@@ -450,7 +524,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
450
524
|
source.id = `${nameId}-source`; source.setAttribute('role', 'img'); source.setAttribute('aria-label', sourceText); source.title = sourceText;
|
|
451
525
|
source.innerHTML = issue ? ICON_ISSUE : pref ? ICON_CHOICE : ICON_AUTO;
|
|
452
526
|
modelBtn.insertBefore(source, modelBtn.querySelector('.asst-dd-caret')); modelBtn.setAttribute('aria-describedby', source.id);
|
|
453
|
-
|
|
527
|
+
details.append(modelCell);
|
|
454
528
|
|
|
455
529
|
const efforts = pref ? routeEffortChoices(pref.provider, model) : [];
|
|
456
530
|
const hasEffort = efforts.some(e => !e.off);
|
|
@@ -470,7 +544,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
470
544
|
const effortValue = effortBtn.disabled ? unusedValue : pref.effort ? effortText : tr('assistant.routes.editorEffortAuto', 'Auto');
|
|
471
545
|
effortBtn.querySelector('.asst-dd-label').textContent = effortValue;
|
|
472
546
|
if (effortValue !== unusedValue && effortValue !== effortText) effortBtn.setAttribute('aria-label', tr('assistant.routes.fieldLabel', '{task}: {field}, {value}', { task: task.label, field: tr('assistant.routes.columns.effort', 'Effort'), value: `${effortValue} · ${effortText}` }));
|
|
473
|
-
const effortCell = el('div', 'asst-routes-cell asst-routes-effort-cell'); effortCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.effort', 'Effort')), effortBtn);
|
|
547
|
+
const effortCell = el('div', 'asst-routes-cell asst-routes-effort-cell'); effortCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.effort', 'Effort')), effortBtn); details.append(effortCell);
|
|
474
548
|
const kind = routeExecutionKind(pref, task, brain());
|
|
475
549
|
const runLabel = task.id === 'chat' ? tr('assistant.routes.inConversation', 'In conversation') : !pref ? task.dispatchOnly ? tr('assistant.routes.workerChooses', 'Worker · assistant chooses') : tr('assistant.routes.brainDecides', 'Assistant chooses') : kind === 'direct' ? tr('assistant.routes.inConversation', 'In conversation') : tr('assistant.routes.onWorker', '{provider} worker', { provider: providerMeta(pref.provider).label });
|
|
476
550
|
const run = fieldButton('asst-routes-run', task, tr('assistant.routes.columns.run', 'Runs in'), runLabel, () => openMenuFor(run, tr('assistant.routes.columns.run', 'Runs in'), [
|
|
@@ -486,7 +560,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
486
560
|
run.title = runLabel;
|
|
487
561
|
if (task.dispatchOnly) run.title = tr('assistant.routes.workerOnly', 'Worker only');
|
|
488
562
|
else if (pref && pref.provider !== brain().provider && task.id !== 'chat') run.title = tr('assistant.routes.otherProviderWorker', 'A model from another provider runs on a worker.');
|
|
489
|
-
const runCell = el('div', 'asst-routes-cell asst-routes-run-cell'); runCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.run', 'Runs in')), run);
|
|
563
|
+
const runCell = el('div', 'asst-routes-cell asst-routes-run-cell'); runCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.run', 'Runs in')), run); details.append(runCell);
|
|
490
564
|
const account = routeAccountView(pref, task, brain(), { 'claude-code': getCachedClaudeAccounts(), codex: getCachedCodexAccounts() }, { 'claude-code': getClaudeWorkerAccountId(), codex: getCodexWorkerAccountId() }, hooks.t);
|
|
491
565
|
const accountCell = el('div', 'asst-routes-cell asst-routes-account-cell');
|
|
492
566
|
const accountBtn = fieldButton('asst-routes-account', task, tr('assistant.routes.columns.account', 'Account'), account.label, () => {
|
|
@@ -496,12 +570,11 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
496
570
|
accountBtn.dataset.focusKey = `${task.id}-account`; accountBtn.disabled = account.readOnly; accountBtn.title = account.hint;
|
|
497
571
|
if (!account.readOnly) caret(accountBtn);
|
|
498
572
|
if (account.warning) accountBtn.classList.add('asst-dd-warn');
|
|
499
|
-
accountCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.account', 'Account')), accountBtn);
|
|
573
|
+
accountCell.append(el('span', 'asst-routes-cell-label', tr('assistant.routes.columns.account', 'Account')), accountBtn); details.append(accountCell);
|
|
500
574
|
const resetCell = el('div', 'asst-routes-reset-cell');
|
|
501
575
|
if (pref) { const reset = button('asst-iconbtn asst-routes-reset', tr('assistant.routes.reset', 'Reset {taskClass}', { taskClass: task.label }), () => setChoice(task.id, null, `${task.id}-model`)); reset.dataset.focusKey = `${task.id}-reset`; reset.title = reset.getAttribute('aria-label'); reset.innerHTML = ICON_RESET; resetCell.append(reset); }
|
|
502
|
-
|
|
503
|
-
//
|
|
504
|
-
// (one line, cut with an ellipsis, whole in its title), so every row keeps the same height.
|
|
576
|
+
details.append(resetCell);
|
|
577
|
+
// The summary names the exception. The open editor explains it beside the affected fields.
|
|
505
578
|
if (account.warning) { const note = el('div', 'asst-routes-row-warning', account.warning); note.title = account.warning; note.id = `${nameId}-account-warning`; accountBtn.setAttribute('aria-describedby', note.id); description.hidden = true; main.append(note); }
|
|
506
579
|
if (capabilityNote) main.append(capabilityNote);
|
|
507
580
|
if (issue) { description.hidden = true; main.querySelector('.asst-routes-row-note')?.remove(); const note = el('div', 'asst-routes-row-warning', issueText(issue, task)); note.title = note.textContent; note.id = `${nameId}-issue`; modelBtn.setAttribute('aria-describedby', `${source.id} ${note.id}`); modelBtn.title = `${label} — ${note.textContent}`; main.append(note); }
|
|
@@ -509,37 +582,38 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
509
582
|
description.hidden = true;
|
|
510
583
|
const text = task.id === 'chat' ? tr('assistant.routes.chatInactive', 'Plain chat stays on the current brain. A stored Chat choice is not applied in any mode.') : tr('assistant.routes.visionFallback', 'Vision fallback, not a task class. Used when the chosen model cannot see image input.');
|
|
511
584
|
const context = el('div', 'asst-routes-row-context', text); context.title = text; context.id = `${nameId}-context`; main.append(context);
|
|
512
|
-
context.hidden = !!issue;
|
|
513
585
|
modelBtn.setAttribute('aria-describedby', `${modelBtn.getAttribute('aria-describedby')} ${context.id}`);
|
|
514
|
-
if (task.id === 'chat')
|
|
586
|
+
if (task.id === 'chat') node.dataset.inactive = 'true';
|
|
515
587
|
}
|
|
516
|
-
const expanded = state.expandedTask === task.id;
|
|
517
|
-
const details = el('div', 'asst-routes-details'); details.id = `${nameId}-details`; details.hidden = !expanded;
|
|
518
|
-
// Move the existing controls, preserving their draft semantics and custom menus.
|
|
519
|
-
for (const child of [...node.children]) if (child !== main) details.append(child);
|
|
520
588
|
const summary = button('asst-routes-toggle', '', () => {
|
|
521
|
-
closeMenu(); state.expandedTask = expanded ? null : task.id; render(`${task.id}-toggle
|
|
589
|
+
closeMenu(); state.expandedTask = expanded ? null : task.id; pendingTaskScroll = state.expandedTask; render(`${task.id}-toggle`, !expanded);
|
|
522
590
|
});
|
|
523
591
|
summary.dataset.focusKey = `${task.id}-toggle`;
|
|
524
592
|
summary.setAttribute('aria-expanded', String(expanded)); summary.setAttribute('aria-controls', details.id);
|
|
525
|
-
const summaryName = el('span', 'asst-routes-summary-name', task.label);
|
|
593
|
+
const summaryName = el('span', 'asst-routes-summary-name asst-routes-row-label', task.label); summaryName.id = nameId;
|
|
526
594
|
const summaryValue = el('span', 'asst-routes-summary-value');
|
|
527
595
|
if (pref?.provider) {
|
|
528
596
|
const mark = el('span', 'asst-icon'); mark.setAttribute('aria-hidden', 'true');
|
|
529
597
|
const shown = providerMeta(displayProvider(pref)); mark.innerHTML = shown.icon; mark.style.color = shown.color; summaryValue.append(mark);
|
|
530
598
|
}
|
|
531
599
|
summaryValue.append(el('span', 'asst-routes-summary-model', label));
|
|
532
|
-
|
|
533
|
-
|
|
600
|
+
let statusText = '';
|
|
601
|
+
if (issue) statusText = tr(`assistant.routes.issueLabel.${issue}`, 'Unverified');
|
|
602
|
+
else if (capabilityNote) statusText = tr('assistant.routes.noMatch', 'No capable model');
|
|
603
|
+
else if (account.warning) statusText = tr('assistant.routes.checkAccount', 'Check account');
|
|
604
|
+
else if (task.id === 'chat') statusText = tr('assistant.routes.notApplied', 'Not applied');
|
|
605
|
+
else if (task.id === 'vision') statusText = tr('assistant.routes.fallbackLabel', 'Fallback');
|
|
606
|
+
if (edited && !statusText) statusText = tr('assistant.routes.choiceEdited', 'Edited');
|
|
607
|
+
const status = el('span', 'asst-routes-summary-status', statusText);
|
|
608
|
+
status.hidden = !statusText;
|
|
534
609
|
const chevron = el('span', 'asst-routes-chevron'); chevron.innerHTML = ICON_CARET; chevron.setAttribute('aria-hidden', 'true');
|
|
535
610
|
summary.append(summaryName, summaryValue, status, chevron);
|
|
536
611
|
summary.title = [task.label, label, pref ? runLabel : '', issue ? issueText(issue, task) : ''].filter(Boolean).join(' · ');
|
|
537
|
-
summary.setAttribute('aria-label', [task.label, label,
|
|
538
|
-
node.dataset.custom = String(!!pref);
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
description.hidden = !expanded || description.hidden;
|
|
612
|
+
summary.setAttribute('aria-label', [task.label, pref && providerMeta(displayProvider(pref)).label, label, pref?.effort && effortName(pref.effort), pref && runLabel, statusText].filter(Boolean).join(' · '));
|
|
613
|
+
node.dataset.custom = String(!!pref);
|
|
614
|
+
node.dataset.issue = String(!!(issue || account.warning || capabilityNote));
|
|
615
|
+
const reveal = el('div', 'asst-routes-reveal'); reveal.append(details);
|
|
616
|
+
node.append(summary, reveal);
|
|
543
617
|
return node;
|
|
544
618
|
}
|
|
545
619
|
async function manageModels(focusKey = 'reload-models') {
|
|
@@ -550,11 +624,13 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
550
624
|
}
|
|
551
625
|
async function reloadModels() {
|
|
552
626
|
if (state.modelsLoading || state.catalogRefreshing || state.offline) return;
|
|
627
|
+
const restoreFocus = document.activeElement?.dataset.focusKey === 'reload-models';
|
|
553
628
|
state.modelsLoading = true; closeMenu(); render();
|
|
554
629
|
try { state.catalog = await loadRouteModels(); state.modelError = routeModelsStatus().partial; modelsWatch.seed(state.catalog); }
|
|
555
630
|
catch { state.modelError = true; }
|
|
556
631
|
if (!overlay.isConnected) return;
|
|
557
|
-
state.modelsLoading = false; state.notice = state.modelError ? '' : tr('assistant.routes.editorState.modelsUpdated', 'Model list updated. Your unsaved changes are kept.');
|
|
632
|
+
state.modelsLoading = false; state.notice = state.modelError ? '' : tr('assistant.routes.editorState.modelsUpdated', 'Model list updated. Your unsaved changes are kept.');
|
|
633
|
+
render(restoreFocus && document.activeElement === closeBtn ? 'reload-models' : undefined);
|
|
558
634
|
}
|
|
559
635
|
function adoptRouting(data, pending) {
|
|
560
636
|
state.data = data; state.version = data.version ?? null; state.initialMode = normalizeRouteMode(data.routing?.defaultMode, DEFAULT_ROUTE_MODE);
|
|
@@ -598,6 +674,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
598
674
|
const accountsDone = Promise.allSettled([fetchClaudeAccounts(true), fetchCodexAccounts(true)]).then(() => {
|
|
599
675
|
if (overlay.isConnected && state.data && JSON.stringify([getCachedClaudeAccounts(), getCachedCodexAccounts()]) !== accountsBefore && !currentMenu()) render(document.activeElement?.dataset?.focusKey);
|
|
600
676
|
});
|
|
677
|
+
let routingChanged = false;
|
|
601
678
|
try {
|
|
602
679
|
const data = await loadRouting();
|
|
603
680
|
if (!overlay.isConnected) return;
|
|
@@ -605,6 +682,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
605
682
|
// A later version while the user already edits: say so, as a Reload does; otherwise adopt it quietly.
|
|
606
683
|
if (!state.data || moved || preserve) {
|
|
607
684
|
adoptRouting(data, state.data ? changes() : pending);
|
|
685
|
+
routingChanged = true;
|
|
608
686
|
if (preserve || (moved && dirty())) state.notice = tr('assistant.routes.editorState.settingsReloaded', 'Latest settings loaded. Your edits are kept; review them before saving.');
|
|
609
687
|
}
|
|
610
688
|
} catch (err) {
|
|
@@ -612,7 +690,7 @@ export async function openRoutesEditor(hooks = {}) {
|
|
|
612
690
|
state.error = err.status === 403 ? tr('assistant.routes.editorState.permission', 'You do not have permission to edit routing settings.') : err.status === 404 ? tr('assistant.routes.unavailable', 'Model routing is not available on this server yet.') : tr('assistant.routes.loadFailed', 'Could not load model routes');
|
|
613
691
|
}
|
|
614
692
|
state.loading = false;
|
|
615
|
-
if (!kept || state.notice || state.error) render(document.activeElement?.dataset?.focusKey); else updateFoot();
|
|
693
|
+
if (routingChanged || !kept || state.notice || state.error) render(document.activeElement?.dataset?.focusKey); else updateFoot();
|
|
616
694
|
if (!preserve && !kept) focus();
|
|
617
695
|
// The open is done at the first complete paint; the catalog and the accounts finish on their own.
|
|
618
696
|
catalogDone.catch(() => {}); accountsDone.catch(() => {});
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
// is re-checked on DOM changes AND on resize — otherwise a hidden control
|
|
13
13
|
// could leave the bar without a tab stop.
|
|
14
14
|
|
|
15
|
+
//
|
|
16
|
+
// Which controls show is a layout question (getClientRects). Inside a closed side panel nothing shows and
|
|
17
|
+
// nothing can take focus, so the question is not asked there: it made the engine lay the hidden panel out on
|
|
18
|
+
// every change of the bar, from the first load on. The tab stop is settled when the panel is shown
|
|
19
|
+
// (sidepanel-shown.js).
|
|
20
|
+
|
|
21
|
+
import { createShownGate } from '../sidepanel-shown.js';
|
|
22
|
+
|
|
15
23
|
const KEYS = new Set(['ArrowLeft', 'ArrowRight', 'Home', 'End']);
|
|
16
24
|
|
|
17
25
|
/** @returns {{ sync(preferred?: Element): void, items(): HTMLElement[], destroy(): void }} */
|
|
@@ -22,12 +30,19 @@ export function createRovingToolbar(toolbar, { selector = 'button', lead = null
|
|
|
22
30
|
// The arrow order: the lead controls first, then the bar's own.
|
|
23
31
|
const order = () => [...(lead ? [...lead.querySelectorAll(selector)].filter(usable) : []), ...items()];
|
|
24
32
|
|
|
25
|
-
function
|
|
33
|
+
function settle(preferred = null) {
|
|
26
34
|
const list = items();
|
|
27
35
|
if (!list.length) return;
|
|
28
36
|
const current = (preferred && list.includes(preferred) && preferred) || list.find((b) => b.tabIndex === 0) || list[0];
|
|
29
37
|
for (const b of all()) b.tabIndex = b === current ? 0 : -1;
|
|
30
38
|
}
|
|
39
|
+
// The one a caller asked for while the panel was closed is the one settled on when it is shown.
|
|
40
|
+
let wanted = null;
|
|
41
|
+
const gate = createShownGate(toolbar, () => { const preferred = wanted; wanted = null; settle(preferred); });
|
|
42
|
+
function sync(preferred = null) {
|
|
43
|
+
if (preferred) wanted = preferred;
|
|
44
|
+
gate.request();
|
|
45
|
+
}
|
|
31
46
|
|
|
32
47
|
const onFocusIn = (e) => {
|
|
33
48
|
const b = e.target.closest?.(selector);
|
|
@@ -65,6 +80,7 @@ export function createRovingToolbar(toolbar, { selector = 'button', lead = null
|
|
|
65
80
|
sync,
|
|
66
81
|
items,
|
|
67
82
|
destroy() {
|
|
83
|
+
gate.cancel();
|
|
68
84
|
mutations?.disconnect();
|
|
69
85
|
resizes?.disconnect();
|
|
70
86
|
toolbar.removeEventListener('focusin', onFocusIn);
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
// standing layer hints: a moving layer is promoted (will-change) only while
|
|
23
23
|
// its scene is live and on screen.
|
|
24
24
|
//
|
|
25
|
+
import { installInteractionHold } from './asst-interaction-hold.js';
|
|
26
|
+
|
|
25
27
|
export const SCENE_STYLE_ID = 'asst-scene-styles';
|
|
26
28
|
|
|
27
29
|
export const SCENE_CSS = `
|
|
@@ -176,7 +178,8 @@ export const SCENE_CSS = `
|
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
/* ── Motion ─────────────────────────────────────────────────────────── */
|
|
179
|
-
|
|
181
|
+
/* A scene carries data-ui-held while the UI is dragged (asst-interaction-hold.js): see the rack's sheet. */
|
|
182
|
+
.asst-scene[data-ui-held] *,
|
|
180
183
|
body.ui-interacting .asst-run-stage-sweep::after { animation-play-state: paused !important; }
|
|
181
184
|
@media (prefers-reduced-motion: reduce) {
|
|
182
185
|
.asst-run-stage-wrap,
|
|
@@ -192,7 +195,9 @@ export const SCENE_CSS = `
|
|
|
192
195
|
|
|
193
196
|
/** Add the stage and scene stylesheet once, right after the rack's (else the main assistant styles, else the head's end). */
|
|
194
197
|
export function injectSceneStyles(doc = globalThis.document) {
|
|
195
|
-
if (!doc
|
|
198
|
+
if (!doc) return;
|
|
199
|
+
installInteractionHold(doc); // the sheet's data-ui-held rule does nothing without it
|
|
200
|
+
if (doc.getElementById(SCENE_STYLE_ID)) return;
|
|
196
201
|
const style = doc.createElement('style');
|
|
197
202
|
style.id = SCENE_STYLE_ID;
|
|
198
203
|
style.textContent = SCENE_CSS;
|
|
@@ -449,7 +449,18 @@ if (typeof document !== 'undefined' && typeof MutationObserver !== 'undefined')
|
|
|
449
449
|
for (const entry of entries) sceneVisibility.set(entry.target, entry.isIntersecting);
|
|
450
450
|
syncSceneArt();
|
|
451
451
|
});
|
|
452
|
-
|
|
452
|
+
// One pass per frame, however much the page changed. This observer hears every node added and every class
|
|
453
|
+
// changed anywhere in the document (a streamed token, a tooltip, a pill), and a pass reads layout
|
|
454
|
+
// (getClientRects) for each live scene on screen: run straight from the callback, it forced a layout after
|
|
455
|
+
// every one of those changes for as long as a worker's scene was showing. A hidden page draws no frame, so
|
|
456
|
+
// there the pass runs at once (it reads no layout then: nothing is animated in a hidden page).
|
|
457
|
+
let scenePass = 0;
|
|
458
|
+
const scheduleSceneSync = () => {
|
|
459
|
+
if (scenePass) return;
|
|
460
|
+
if (document.hidden || typeof requestAnimationFrame !== 'function') { syncSceneArt(); return; }
|
|
461
|
+
scenePass = requestAnimationFrame(() => { scenePass = 0; syncSceneArt(); });
|
|
462
|
+
};
|
|
463
|
+
const observer = new MutationObserver(scheduleSceneSync);
|
|
453
464
|
observer.observe(document.documentElement, { subtree: true, childList: true, attributes: true,
|
|
454
465
|
attributeFilter: ['data-live', 'data-offscreen', 'class'] });
|
|
455
466
|
document.addEventListener('visibilitychange', () => syncSceneArt());
|
|
@@ -342,6 +342,9 @@ function mountTab({ sessionId, meta = null, brain = null, label = '', userRename
|
|
|
342
342
|
} else if (_activeIdx < 0) {
|
|
343
343
|
_activeIdx = _tabs.length - 1;
|
|
344
344
|
markActive();
|
|
345
|
+
// It became the tab that shows without being shown: in an open panel its conversation does not wait
|
|
346
|
+
// for idle time (asst-panel.js loadConversation).
|
|
347
|
+
if (_visible) { try { tab.ctl?.wake?.(); } catch { /* ignore */ } }
|
|
345
348
|
}
|
|
346
349
|
renderHeader();
|
|
347
350
|
renderPills();
|
|
@@ -409,8 +412,12 @@ function closeTab(idx, { closeServer = true } = {}) {
|
|
|
409
412
|
function focusSession(sessionId, { prompt = '' } = {}) {
|
|
410
413
|
const idx = _tabs.findIndex(tab => tab.sessionId === sessionId);
|
|
411
414
|
if (idx < 0) return;
|
|
412
|
-
if (!_visible)
|
|
413
|
-
|
|
415
|
+
if (!_visible) {
|
|
416
|
+
// A closed panel goes to this session first and is shown after: showing it first woke the session it was
|
|
417
|
+
// left on (onShown, the focus note) before the one that was clicked. applyVisibility shows the new one.
|
|
418
|
+
switchTo(idx);
|
|
419
|
+
setVisible(true);
|
|
420
|
+
} else if (idx !== _activeIdx || !_tabs[idx].viewport.classList.contains('active')) switchTo(idx);
|
|
414
421
|
else { try { _tabs[idx].ctl?.onShown(); } catch { /* ignore */ } }
|
|
415
422
|
focusSidepanel(PANEL_OWNER);
|
|
416
423
|
noteAssistantFocus(sessionId, HOST_ID);
|
|
@@ -793,6 +800,9 @@ async function restoreSavedTabs(saved, retries) {
|
|
|
793
800
|
const shown = _tabs.findIndex(tab => tab.sessionId === shownId);
|
|
794
801
|
_activeIdx = shown >= 0 ? shown : Math.min(Math.max(0, saved.activeIdx), _tabs.length - 1);
|
|
795
802
|
markActive();
|
|
803
|
+
// The tabs were made before any was the active one, so each put its conversation off to idle time
|
|
804
|
+
// (asst-panel.js loadConversation). The one that is on screen now does not wait.
|
|
805
|
+
if (_visible) { try { activeTab()?.ctl?.wake?.(); } catch { /* ignore */ } }
|
|
796
806
|
renderHeader();
|
|
797
807
|
renderPills();
|
|
798
808
|
// Paths that were sent while the sessions were being asked about go to the one that is showing again.
|