synabun 2.3.1 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +1 -1
- package/browser-extension/content.js +189 -0
- package/browser-extension/engine.js +508 -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 +250 -0
- package/browser-extension/popup-view.js +151 -0
- package/browser-extension/popup.css +166 -0
- package/browser-extension/popup.html +108 -0
- package/browser-extension/popup.js +359 -0
- package/browser-extension/protocol.js +232 -0
- package/browser-extension/service-worker.js +275 -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/lib/data-home-files.js +45 -0
- package/lib/data-home-migration.js +34 -58
- 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 +95 -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 +92 -9
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +163 -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 +191 -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 +177 -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 +1119 -47
- package/neural-interface/i18n/pt-BR.json +1119 -47
- package/neural-interface/lib/account-usage.js +1 -1
- package/neural-interface/lib/agents/builtins.json +207 -0
- 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 +885 -0
- package/neural-interface/lib/agents/resolve.js +603 -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-brains/opencode.js +60 -11
- 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 +351 -121
- 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 +432 -47
- 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 +449 -94
- 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/backup-service.js +64 -105
- 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 +264 -0
- package/neural-interface/lib/browser-extension-bridge.js +441 -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-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/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/effort-levels.js +10 -1
- 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 +194 -8
- package/neural-interface/lib/native-loop-runtime.js +26 -7
- package/neural-interface/lib/opencode-build-preflight.js +28 -8
- package/neural-interface/lib/opencode-native-boundary.js +83 -13
- package/neural-interface/lib/opencode-serve-records.js +14 -9
- package/neural-interface/lib/page-session.js +1 -1
- package/neural-interface/lib/peer-identity.js +73 -29
- package/neural-interface/lib/process-identity.js +68 -7
- package/neural-interface/lib/request-gate.js +3 -0
- package/neural-interface/lib/screenshot-location.js +33 -0
- package/neural-interface/lib/session-cache-builder.js +41 -3
- 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/package-lock.json +2 -2
- package/neural-interface/package.json +1 -1
- package/neural-interface/public/extension-setup.html +107 -0
- package/neural-interface/public/index.html +103 -12
- package/neural-interface/public/offline.html +4 -3
- 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/api.js +2 -1
- 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 +37 -6
- package/neural-interface/public/shared/assistant/asst-route.js +80 -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/cc-dropdown.js +21 -15
- 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 +34 -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/owner-authority-view.js +4 -10
- package/neural-interface/public/shared/page-session.js +1 -1
- 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/start-bridge.js +2 -2
- 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 +694 -50
- 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 +83 -19
- 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 +50 -21
- 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-owner-authority.js +48 -25
- 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 +363 -400
- 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 +6 -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/sw.js +4 -3
- 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 +30 -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 +1083 -164
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -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
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
routeKindLabel,
|
|
40
40
|
routeTargetLabel,
|
|
41
41
|
routeEffortWord,
|
|
42
|
+
routeLabelEffortWord,
|
|
42
43
|
ROUTE_EFFORT_OFF,
|
|
43
44
|
OPTIONAL_PROVIDERS,
|
|
44
45
|
UNPRICED_PROVIDERS,
|
|
@@ -57,7 +58,9 @@ export function routeEffortChoices(provider, row) {
|
|
|
57
58
|
const offId = ROUTE_EFFORT_OFF;
|
|
58
59
|
const rest = levels.filter(e => String(e.id).toLowerCase() !== offId).map(e => ({ id: e.id, label: e.label || e.id, off: false }));
|
|
59
60
|
const listsOff = levels.some(e => String(e.id).toLowerCase() === offId);
|
|
60
|
-
|
|
61
|
+
// (A Claude model whose CLI cannot turn its thinking off, `thinkingOff: false`, offers no Off.)
|
|
62
|
+
const alwaysOn = provider === 'claude-code' && !!row && (row.thinkingOff === false || row.supportsThinkingOff === false);
|
|
63
|
+
const canOff = provider === 'claude-code' ? rest.length > 0 && !alwaysOn : provider === 'antigravity' ? false : listsOff;
|
|
61
64
|
return canOff ? [{ id: offId, label: 'Off', off: true }, ...rest] : rest;
|
|
62
65
|
}
|
|
63
66
|
function num(v) { const n = Number(v); return v != null && v !== '' && typeof v !== 'boolean' && Number.isFinite(n) ? n : null; }
|
|
@@ -142,6 +145,7 @@ function normalizeRouteOption(o) {
|
|
|
142
145
|
vision: src.vision === true,
|
|
143
146
|
price: priceOf(src.price),
|
|
144
147
|
contextWindow: num(src.contextWindow),
|
|
148
|
+
...(src.agentRef ? { agentRef: str(src.agentRef) } : {}),
|
|
145
149
|
reason: str(src.reason),
|
|
146
150
|
warning: str(src.warning) || null,
|
|
147
151
|
budget: str(src.budget) || null,
|
|
@@ -157,6 +161,12 @@ function normalizeRouteSides(sides) {
|
|
|
157
161
|
return { direct: side(src.direct), dispatch: side(src.dispatch) };
|
|
158
162
|
}
|
|
159
163
|
|
|
164
|
+
export function routeSplitText(split, t) {
|
|
165
|
+
if (!split || !Number.isInteger(split.workers)) return '';
|
|
166
|
+
const label = tf(t)( 'assistant.routes.splitWorkers', '{count} workers planned', { count: split.workers });
|
|
167
|
+
return `${label}: ${arr(split.slices).map(String).join(' · ')}${split.reason ? ` — ${split.reason}` : ''}`;
|
|
168
|
+
}
|
|
169
|
+
|
|
160
170
|
/** Normalize a route control packet (or its `request`) into the card model. */
|
|
161
171
|
export function normalizeRouteRequest(packet) {
|
|
162
172
|
const p = obj(packet);
|
|
@@ -176,11 +186,13 @@ export function normalizeRouteRequest(packet) {
|
|
|
176
186
|
runIds: arr(req.runIds).map(String).filter(Boolean),
|
|
177
187
|
workflowId: str(req.workflowId) || null,
|
|
178
188
|
sessionId: str(req.sessionId) || null,
|
|
189
|
+
taskId: str(req.taskId) || null, taskKey: str(req.taskKey),
|
|
179
190
|
mode: normalizeRouteMode(req.mode, null),
|
|
180
191
|
reasons: arr(req.reasons).map(String).filter(Boolean),
|
|
181
192
|
taskClass: str(req.taskClass) || 'general',
|
|
182
193
|
taskClassLabel: str(req.taskClassLabel) || humanizeClass(req.taskClass),
|
|
183
194
|
summary: str(req.summary),
|
|
195
|
+
plannedSplit: obj(req.plannedSplit),
|
|
184
196
|
confidence: num(req.confidence),
|
|
185
197
|
needsVision: req.needsVision === true,
|
|
186
198
|
// Image / video creation: the medium the model must generate ('image' | 'video'), always on a worker.
|
|
@@ -282,6 +294,49 @@ function badgeText(o, n, tr) {
|
|
|
282
294
|
}
|
|
283
295
|
}
|
|
284
296
|
|
|
297
|
+
// ── The effort in a row's title ───────────────────────────────────────────
|
|
298
|
+
// Two "here" rows can be on one model and differ only by effort (the brain's suggestion and the saved
|
|
299
|
+
// route, in Always ask): the title names the effort, so the row the card opens on reads as what it is.
|
|
300
|
+
// A title is read for the card's own words ("off" for `none`, the id otherwise) and the router's
|
|
301
|
+
// (lib/assistant-router.js effortWord: "thinking off"); it is written in the card's.
|
|
302
|
+
|
|
303
|
+
/** Whether `title` already ends in `effort` (" · high", " · thinking off"). */
|
|
304
|
+
export function routeTitleHasEffort(title, effort) {
|
|
305
|
+
return !!routeLabelEffortWord(title, effort);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/** `title` without its trailing effort (`effort` as it was), else as it is. */
|
|
309
|
+
export function routeTitleWithoutEffort(title, effort) {
|
|
310
|
+
const text = str(title);
|
|
311
|
+
const word = routeLabelEffortWord(text, effort);
|
|
312
|
+
return word ? text.slice(0, text.length - word.length - 3) : text;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** `base` with ` · <effort>` in the card's words (none → "off"); no effort (or the auto "off"): `base`. */
|
|
316
|
+
export function routeTitleWithEffort(base, effort) {
|
|
317
|
+
const text = str(base);
|
|
318
|
+
const level = str(effort);
|
|
319
|
+
return level && level !== 'off' && !routeTitleHasEffort(text, level) ? `${text} · ${routeEffortWord(level)}` : text;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* A row with another effort (the card's effort field): its title with the new effort in place of the
|
|
324
|
+
* one it named → { title, titleEffort }. A worker row whose label never named an effort gets one too.
|
|
325
|
+
*/
|
|
326
|
+
export function routeRetitled(o, effort) {
|
|
327
|
+
const base = o?.titleEffort ? routeTitleWithoutEffort(o.title, o.effort) : str(o?.title);
|
|
328
|
+
const title = routeTitleWithEffort(base, effort);
|
|
329
|
+
return { title, titleEffort: routeTitleHasEffort(title, effort) };
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A "here" option's model as the router labels it ("Do it here with ‹model›"), without the lead and
|
|
334
|
+
* without an effort a label may carry: what the title and a decided route name. '' with no label.
|
|
335
|
+
*/
|
|
336
|
+
export function routeHereModelLabel(o) {
|
|
337
|
+
return routeTitleWithoutEffort(str(o?.label).replace(/^do it here with\s+/i, ''), o?.effort);
|
|
338
|
+
}
|
|
339
|
+
|
|
285
340
|
/**
|
|
286
341
|
* Display options for the card: the default (suggested) first and preselected,
|
|
287
342
|
* then "Do it here with ‹current model›", remembered, cheaper, stronger.
|
|
@@ -327,18 +382,23 @@ export function routeOptions(n, { brainLabel = '', t = null } = {}) {
|
|
|
327
382
|
const hereModel = brainLabel || routeTargetLabel(n.brain) || tr('assistant.routes.currentModel', 'the current model');
|
|
328
383
|
// The router labels every option done here "Do it here with <model>" (English): the title names the model once,
|
|
329
384
|
// in the user's language ("Do it here with Do it here with Sonnet 5" before).
|
|
330
|
-
const labelOf =
|
|
385
|
+
const labelOf = routeHereModelLabel;
|
|
331
386
|
return kept.map((o, i) => {
|
|
332
387
|
const isHere = hereRow(o);
|
|
333
388
|
const label = routeTargetLabel(o);
|
|
389
|
+
// "here" is the brain's own model: prefer its display label over a raw id. Another model of its
|
|
390
|
+
// provider (a continuation) is done here too, and says so the same way. A row done here names its
|
|
391
|
+
// effort ("… · high"); a worker row's label already does when it has one.
|
|
392
|
+
const title = isHere ? routeTitleWithEffort(tr('assistant.routes.doHere', 'Do it here with {model}', { model: labelOf(o) || hereModel }), o.effort)
|
|
393
|
+
: o.kind === 'direct' ? routeTitleWithEffort(tr('assistant.routes.doHere', 'Do it here with {model}', { model: labelOf(o) || modelShortName(o.model) || o.id }), o.effort)
|
|
394
|
+
: (label || o.id);
|
|
334
395
|
return {
|
|
335
396
|
...o,
|
|
336
397
|
number: i + 1,
|
|
337
398
|
here: isHere,
|
|
338
|
-
|
|
339
|
-
//
|
|
340
|
-
|
|
341
|
-
: o.kind === 'direct' ? tr('assistant.routes.doHere', 'Do it here with {model}', { model: labelOf(o) || modelShortName(o.model) || o.id }) : (label || o.id),
|
|
399
|
+
title,
|
|
400
|
+
// The grey line under the title leaves the effort out when the title already says it.
|
|
401
|
+
titleEffort: routeTitleHasEffort(title, o.effort),
|
|
342
402
|
badgeText: badgeText(o, n, tr),
|
|
343
403
|
disabledReason: o.budget === 'share_used_up' || o.budget === 'unpriced' ? routeBudgetReason({ provider: o.provider, unpriced: o.budget === 'unpriced' }, t) : o.disabledReason,
|
|
344
404
|
selected: o.id === defaultId,
|
|
@@ -393,7 +453,7 @@ export function routeCardSides(n, options, { t = null } = {}) {
|
|
|
393
453
|
|
|
394
454
|
/** control_response payload for a route card. `decline:true` is the Cancel answer. */
|
|
395
455
|
export function buildRouteResponse(n, choice = {}) {
|
|
396
|
-
if (choice.decline) return { kind: 'route', optionId: null, remember: false, decline: true };
|
|
456
|
+
if (choice.decline) return { kind: 'route', optionId: null, remember: false, decline: true, ...(choice.reason ? { reason: choice.reason } : {}) };
|
|
397
457
|
const optionId = str(choice.optionId) || n?.defaultOptionId || null;
|
|
398
458
|
const out = { kind: 'route', optionId, remember: choice.remember === true && n?.remember?.available === true };
|
|
399
459
|
if (optionId === 'other') {
|
|
@@ -512,6 +572,8 @@ export function routeLineParts(route, phase = 'decided', { brainLabel = '', t =
|
|
|
512
572
|
default: decided = r.remembered ? tr('assistant.routes.remembered', 'your saved choice') : '';
|
|
513
573
|
}
|
|
514
574
|
const meta = [];
|
|
575
|
+
if (kind === 'dispatch' && r.agentRef) meta.push(r.agentRef);
|
|
576
|
+
if (r.plannedSplit?.workers) meta.push(tf(t)('assistant.routes.splitWorkers', '{count} workers planned', { count: r.plannedSplit.workers }));
|
|
515
577
|
const accountLabel = routeDisplayAccount(target, t);
|
|
516
578
|
if (accountLabel) meta.push(accountLabel);
|
|
517
579
|
if (effort && effort !== 'off') meta.push(routeEffortWord(effort));
|
|
@@ -671,6 +733,8 @@ export function createRouteLine(route, opts = {}) {
|
|
|
671
733
|
|
|
672
734
|
detail.innerHTML = '';
|
|
673
735
|
const rows = [];
|
|
736
|
+
const splitText = routeSplitText(current.route.plannedSplit, opts.t);
|
|
737
|
+
if (splitText) rows.push(['split', splitText]);
|
|
674
738
|
if (p.reason) rows.push(['reason', p.reason]);
|
|
675
739
|
if (p.decidedText) rows.push(['decided', p.decidedText]);
|
|
676
740
|
if (p.alternatives.length) rows.push(['alternatives', `${tr('assistant.routes.alternatives', 'Also considered')}: ${p.alternatives.join(' · ')}`]);
|
|
@@ -851,6 +915,8 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
851
915
|
const status = head.querySelector('.asst-control-status');
|
|
852
916
|
|
|
853
917
|
if (n.summary) card.appendChild(el('div', 'asst-route-summary', n.summary));
|
|
918
|
+
const splitText = routeSplitText(n.plannedSplit, hooks.t);
|
|
919
|
+
if (splitText) card.appendChild(el('div', 'asst-route-summary asst-route-split', splitText));
|
|
854
920
|
const reasons = routeReasonLabels(n, hooks.t);
|
|
855
921
|
if (reasons.length) card.appendChild(el('div', 'asst-route-reasons', reasons.join(' · ')));
|
|
856
922
|
// Asked from WhatsApp: on the phone, a yes to one option of this card also allows controlling the Mac.
|
|
@@ -894,7 +960,7 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
894
960
|
row.setAttribute('aria-disabled', o.disabled ? 'true' : 'false');
|
|
895
961
|
row.tabIndex = -1;
|
|
896
962
|
const kindWord = o.kind && o.kind !== 'direct' ? routeKindWord(o.kind, hooks.t) : '';
|
|
897
|
-
const sub = [kindWord, routeDisplayAccount(o, hooks.t), o.effort && o.effort !== 'off' ? routeEffortWord(o.effort) : '', o.price ? priceText(o.price) : '', o.vision ? tr('assistant.brain.vision', 'vision') : '', o.reason].filter(Boolean).join(' · ');
|
|
963
|
+
const sub = [kindWord, o.agentRef, routeDisplayAccount(o, hooks.t), o.effort && o.effort !== 'off' && !o.titleEffort ? routeEffortWord(o.effort) : '', o.price ? priceText(o.price) : '', o.vision ? tr('assistant.brain.vision', 'vision') : '', o.reason].filter(Boolean).join(' · ');
|
|
898
964
|
row.innerHTML = `
|
|
899
965
|
<span class="asst-route-num" aria-hidden="true">${esc(o.number)}</span>
|
|
900
966
|
<span class="asst-route-opt-icon asst-icon" aria-hidden="true"${o.provider ? ` style="color:${esc(providerColor(o.provider))}"` : ''}>${providerIconHtml(o.provider, hooks)}</span>
|
|
@@ -1004,7 +1070,9 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
1004
1070
|
if (busy()) return;
|
|
1005
1071
|
const from = selected();
|
|
1006
1072
|
if (!from) return;
|
|
1007
|
-
|
|
1073
|
+
// Another effort: the title names the new one in place of the old (never both).
|
|
1074
|
+
const titled = Object.hasOwn(patch, 'effort') ? routeRetitled(from, patch.effort) : {};
|
|
1075
|
+
state.others[state.side] = { ...from, accountId: from.accountChoice || from.accountId || null, accountChoice: Object.hasOwn(patch, 'accountId') ? patch.accountId : from.accountChoice || null, disabled: false, disabledReason: null, accountError: null, ...patch, ...titled, id: 'other', number: sideOptions().length + 1, badge: null, badgeText: tr('assistant.routes.badge.other', 'Your choice') };
|
|
1008
1076
|
state.picks[state.side] = 'other';
|
|
1009
1077
|
renderOptions();
|
|
1010
1078
|
}
|
|
@@ -1153,7 +1221,7 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
1153
1221
|
decidedBy: 'user',
|
|
1154
1222
|
optionId: selectedId(),
|
|
1155
1223
|
remembered: state.remember,
|
|
1156
|
-
target: o ? { kind: o.kind || 'direct', provider: o.provider, model: o.model, effort: o.effort, accountId: o.accountId || null, label: (o.kind === 'direct' ?
|
|
1224
|
+
target: o ? { kind: o.kind || 'direct', provider: o.provider, model: o.model, effort: o.effort, accountId: o.accountId || null, label: (o.kind === 'direct' ? routeHereModelLabel(o) : o.label) || (o.here ? routeTargetLabel(o) : o.title) } : null,
|
|
1157
1225
|
alternatives: allOptions().filter(x => x.id !== selectedId()).map(x => ({ provider: x.provider, model: x.model, effort: x.effort, label: x.label })),
|
|
1158
1226
|
};
|
|
1159
1227
|
}
|
|
@@ -1216,7 +1284,7 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
1216
1284
|
}
|
|
1217
1285
|
error.hidden = true;
|
|
1218
1286
|
setPending(true, tr('assistant.routes.cancelling', 'Cancelling…'));
|
|
1219
|
-
try { hooks.onRespond?.(buildRouteResponse(n, { decline: true }), n); } catch { /* ignore */ }
|
|
1287
|
+
try { hooks.onRespond?.(buildRouteResponse(n, { decline: true, reason: 'cancelled' }), n); } catch { /* ignore */ }
|
|
1220
1288
|
state.grace = setTimeout(() => { state.grace = null; if (!state.collapsed) collapse('declined', { target: null }); }, 1800);
|
|
1221
1289
|
}
|
|
1222
1290
|
|
|
@@ -1255,7 +1323,7 @@ export function renderRouteCard(container, input, hooks = {}) {
|
|
|
1255
1323
|
}
|
|
1256
1324
|
if (e.key === 'Escape') {
|
|
1257
1325
|
e.preventDefault(); e.stopPropagation();
|
|
1258
|
-
|
|
1326
|
+
returnFocus();
|
|
1259
1327
|
return;
|
|
1260
1328
|
}
|
|
1261
1329
|
if (e.key === ' ' && e.target?.classList?.contains('asst-route-option')) {
|