synabun 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/README.md +1 -1
- package/docs/whatsapp.md +52 -20
- package/hooks/claude-code/pre-websearch.mjs +4 -1
- package/hooks/claude-code/prompt-submit.mjs +7 -0
- package/lib/mcp-build.js +519 -0
- package/lib/mcp-dist.js +10 -4
- package/lib/release-scan.mjs +23 -10
- package/lib/server-supervisor.js +7 -1
- package/lib/virustotal.mjs +146 -40
- package/mcp-server/dist/http.d.ts +57 -0
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +128 -18
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +14 -9
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.d.ts +119 -0
- package/mcp-server/dist/services/browser-route-flow.d.ts.map +1 -0
- package/mcp-server/dist/services/browser-route-flow.js +340 -0
- package/mcp-server/dist/services/browser-route-flow.js.map +1 -0
- package/mcp-server/dist/services/desktop-client.js +2 -2
- package/mcp-server/dist/services/desktop-client.js.map +1 -1
- package/mcp-server/dist/services/embedding-service.d.ts.map +1 -1
- package/mcp-server/dist/services/embedding-service.js +2 -1
- package/mcp-server/dist/services/embedding-service.js.map +1 -1
- package/mcp-server/dist/services/identity.d.ts +66 -3
- package/mcp-server/dist/services/identity.d.ts.map +1 -1
- package/mcp-server/dist/services/identity.js +61 -4
- package/mcp-server/dist/services/identity.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +133 -1
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +630 -64
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +2 -2
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +3 -2
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +6 -4
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/bluesky.d.ts +20 -7
- package/mcp-server/dist/tools/bluesky.d.ts.map +1 -1
- package/mcp-server/dist/tools/bluesky.js +147 -45
- package/mcp-server/dist/tools/bluesky.js.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts +13 -2
- package/mcp-server/dist/tools/browser-advanced.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.js +153 -18
- package/mcp-server/dist/tools/browser-advanced.js.map +1 -1
- package/mcp-server/dist/tools/browser-cheatsheet.d.ts +2 -0
- package/mcp-server/dist/tools/browser-cheatsheet.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-cheatsheet.js +3 -0
- package/mcp-server/dist/tools/browser-cheatsheet.js.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.d.ts +3 -3
- package/mcp-server/dist/tools/browser-navigate.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.js +19 -16
- package/mcp-server/dist/tools/browser-navigate.js.map +1 -1
- package/mcp-server/dist/tools/browser-observe.d.ts +2 -1
- package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-observe.js +61 -20
- package/mcp-server/dist/tools/browser-observe.js.map +1 -1
- package/mcp-server/dist/tools/morelogin.d.ts +13 -3
- package/mcp-server/dist/tools/morelogin.d.ts.map +1 -1
- package/mcp-server/dist/tools/morelogin.js +82 -19
- package/mcp-server/dist/tools/morelogin.js.map +1 -1
- package/mcp-server/dist/tools/skill-tools.d.ts +4 -4
- package/mcp-server/dist/tools/youtube/helpers.d.ts +1 -0
- package/mcp-server/dist/tools/youtube/helpers.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.js +225 -88
- package/mcp-server/dist/tools/youtube/upload.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +135 -17
- package/mcp-server/src/index.ts +15 -9
- package/mcp-server/src/services/browser-route-flow.ts +403 -0
- package/mcp-server/src/services/desktop-client.ts +2 -2
- package/mcp-server/src/services/embedding-service.ts +2 -1
- package/mcp-server/src/services/identity.ts +80 -4
- package/mcp-server/src/services/neural-interface.ts +648 -73
- package/mcp-server/src/services/tool-catalog.ts +2 -2
- package/mcp-server/src/tools/agents.ts +8 -4
- package/mcp-server/src/tools/bluesky.ts +164 -51
- package/mcp-server/src/tools/browser-advanced.ts +142 -17
- package/mcp-server/src/tools/browser-cheatsheet.ts +3 -0
- package/mcp-server/src/tools/browser-navigate.ts +19 -16
- package/mcp-server/src/tools/browser-observe.ts +62 -20
- package/mcp-server/src/tools/morelogin.ts +82 -19
- package/mcp-server/src/tools/youtube/helpers.ts +2 -2
- package/mcp-server/src/tools/youtube/upload.ts +218 -99
- package/neural-interface/i18n/en.json +655 -123
- package/neural-interface/i18n/pt-BR.json +542 -10
- package/neural-interface/lib/assistant-api.js +90 -23
- package/neural-interface/lib/assistant-brains/claude.js +5 -0
- package/neural-interface/lib/assistant-catalog.js +134 -3
- package/neural-interface/lib/assistant-dispatch.js +97 -1
- package/neural-interface/lib/assistant-persona.js +15 -7
- package/neural-interface/lib/assistant-router.js +6 -4
- package/neural-interface/lib/assistant-runtime.js +18 -1
- package/neural-interface/lib/assistant-task-prompt.js +5 -0
- package/neural-interface/lib/assistant-tools.js +10 -1
- package/neural-interface/lib/automation-approval.js +249 -0
- package/neural-interface/lib/automation-browser-owner-access.js +82 -0
- package/neural-interface/lib/backup-service.js +16 -1
- package/neural-interface/lib/browser-automation-routes.js +84 -0
- package/neural-interface/lib/browser-background-tab.js +72 -3
- package/neural-interface/lib/browser-execution.js +16 -3
- package/neural-interface/lib/browser-extraction.js +106 -45
- package/neural-interface/lib/browser-owner.js +48 -0
- package/neural-interface/lib/browser-profile-choices.js +143 -0
- package/neural-interface/lib/browser-profiles.js +142 -0
- package/neural-interface/lib/browser-session-close.js +84 -0
- package/neural-interface/lib/browser-start-handoff.js +202 -0
- package/neural-interface/lib/browser-tab-recovery.js +153 -0
- package/neural-interface/lib/browser-tool-policy.js +23 -4
- package/neural-interface/lib/browser-wedge-retire.js +64 -0
- package/neural-interface/lib/chromium-on-device-model.js +67 -0
- package/neural-interface/lib/claude-agent-bridge.js +43 -5
- package/neural-interface/lib/claude-background-hold.js +239 -0
- package/neural-interface/lib/claude-model-catalog.js +12 -0
- package/neural-interface/lib/effort-levels.js +28 -2
- package/neural-interface/lib/exec-loop-command.js +8 -0
- package/neural-interface/lib/http-guards.js +11 -6
- package/neural-interface/lib/local-profile-proxy.js +362 -0
- package/neural-interface/lib/local-profiles.js +929 -0
- package/neural-interface/lib/loop-logger.js +31 -5
- package/neural-interface/lib/maritaca/api.js +179 -0
- package/neural-interface/lib/maritaca/attachments.js +44 -0
- package/neural-interface/lib/maritaca/client.js +362 -0
- package/neural-interface/lib/maritaca/key-store.js +122 -0
- package/neural-interface/lib/maritaca/models.js +181 -0
- package/neural-interface/lib/maritaca/modes.js +39 -0
- package/neural-interface/lib/maritaca/opencode-proxy.js +236 -0
- package/neural-interface/lib/maritaca/opencode-stream.js +345 -0
- package/neural-interface/lib/maritaca/opencode.js +218 -0
- package/neural-interface/lib/maritaca/panel-bridge.js +273 -0
- package/neural-interface/lib/maritaca/sessions.js +198 -0
- package/neural-interface/lib/mcp-external-servers.js +37 -10
- package/neural-interface/lib/morelogin-agent-profiles.js +149 -0
- package/neural-interface/lib/morelogin.js +278 -14
- package/neural-interface/lib/native-loop-providers.js +124 -11
- package/neural-interface/lib/native-loop-runtime.js +112 -11
- package/neural-interface/lib/owner-authority.js +137 -43
- package/neural-interface/lib/page-session.js +111 -27
- package/neural-interface/lib/peer-identity.js +263 -43
- package/neural-interface/lib/provider-panel-api-key-auth.js +7 -2
- package/neural-interface/lib/pty-host/core.js +36 -0
- package/neural-interface/lib/pty-host/protocol.js +2 -0
- package/neural-interface/lib/request-gate.js +2 -0
- package/neural-interface/lib/skills/api-v2.js +13 -2
- package/neural-interface/lib/skills/creation-api.js +3 -1
- package/neural-interface/lib/skills/evals-api.js +5 -1
- package/neural-interface/lib/social-write-pacing.js +151 -0
- package/neural-interface/lib/system-activity.js +1 -1
- package/neural-interface/lib/terminal-token-redaction.js +293 -0
- package/neural-interface/lib/terminal-tokens.js +436 -0
- package/neural-interface/lib/worker-mcp-channel.js +45 -10
- package/neural-interface/package-lock.json +3 -2
- package/neural-interface/package.json +2 -1
- package/neural-interface/public/assets/mascot/README.md +11 -0
- package/neural-interface/public/assets/mascot/ask.gif +0 -0
- package/neural-interface/public/assets/mascot/ask.png +0 -0
- package/neural-interface/public/assets/mascot/blocked.gif +0 -0
- package/neural-interface/public/assets/mascot/blocked.png +0 -0
- package/neural-interface/public/assets/mascot/budget.gif +0 -0
- package/neural-interface/public/assets/mascot/budget.png +0 -0
- package/neural-interface/public/assets/mascot/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/computer.png +0 -0
- package/neural-interface/public/assets/mascot/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/edit.png +0 -0
- package/neural-interface/public/assets/mascot/error.gif +0 -0
- package/neural-interface/public/assets/mascot/error.png +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.gif +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.png +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.gif +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.png +0 -0
- package/neural-interface/public/assets/mascot/idle.gif +0 -0
- package/neural-interface/public/assets/mascot/idle.png +0 -0
- package/neural-interface/public/assets/mascot/manifest.json +254 -0
- package/neural-interface/public/assets/mascot/mcp.gif +0 -0
- package/neural-interface/public/assets/mascot/mcp.png +0 -0
- package/neural-interface/public/assets/mascot/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/memory.png +0 -0
- package/neural-interface/public/assets/mascot/offline.gif +0 -0
- package/neural-interface/public/assets/mascot/offline.png +0 -0
- package/neural-interface/public/assets/mascot/pick.gif +0 -0
- package/neural-interface/public/assets/mascot/pick.png +0 -0
- package/neural-interface/public/assets/mascot/plan.gif +0 -0
- package/neural-interface/public/assets/mascot/plan.png +0 -0
- package/neural-interface/public/assets/mascot/present.gif +0 -0
- package/neural-interface/public/assets/mascot/present.png +0 -0
- package/neural-interface/public/assets/mascot/project.gif +0 -0
- package/neural-interface/public/assets/mascot/project.png +0 -0
- package/neural-interface/public/assets/mascot/read.gif +0 -0
- package/neural-interface/public/assets/mascot/read.png +0 -0
- package/neural-interface/public/assets/mascot/runs.gif +0 -0
- package/neural-interface/public/assets/mascot/runs.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/manifest.json +173 -0
- package/neural-interface/public/assets/mascot/scenes/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/memory.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.png +0 -0
- package/neural-interface/public/assets/mascot/search.gif +0 -0
- package/neural-interface/public/assets/mascot/search.png +0 -0
- package/neural-interface/public/assets/mascot/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/shell.png +0 -0
- package/neural-interface/public/assets/mascot/skill.gif +0 -0
- package/neural-interface/public/assets/mascot/skill.png +0 -0
- package/neural-interface/public/assets/mascot/sleep.gif +0 -0
- package/neural-interface/public/assets/mascot/sleep.png +0 -0
- package/neural-interface/public/assets/mascot/subagent.gif +0 -0
- package/neural-interface/public/assets/mascot/subagent.png +0 -0
- package/neural-interface/public/assets/mascot/success.gif +0 -0
- package/neural-interface/public/assets/mascot/success.png +0 -0
- package/neural-interface/public/assets/mascot/think.gif +0 -0
- package/neural-interface/public/assets/mascot/think.png +0 -0
- package/neural-interface/public/assets/mascot/wait.gif +0 -0
- package/neural-interface/public/assets/mascot/wait.png +0 -0
- package/neural-interface/public/assets/mascot/watch.gif +0 -0
- package/neural-interface/public/assets/mascot/watch.png +0 -0
- package/neural-interface/public/assets/mascot/web.gif +0 -0
- package/neural-interface/public/assets/mascot/web.png +0 -0
- package/neural-interface/public/onboarding.html +14 -1
- package/neural-interface/public/shared/agent-runtime-options.js +49 -8
- package/neural-interface/public/shared/agy/agy-panel.js +2 -2
- package/neural-interface/public/shared/agy/agy-render.js +41 -1
- package/neural-interface/public/shared/agy/agy-styles.js +5 -0
- package/neural-interface/public/shared/api.js +5 -4
- package/neural-interface/public/shared/assistant/asst-ask-styles.js +8 -8
- package/neural-interface/public/shared/assistant/asst-ask.js +1 -1
- package/neural-interface/public/shared/assistant/asst-brain-picker.js +99 -9
- package/neural-interface/public/shared/assistant/asst-computer.js +47 -2
- package/neural-interface/public/shared/assistant/asst-control.js +1 -1
- package/neural-interface/public/shared/assistant/asst-limit-wait.js +7 -5
- package/neural-interface/public/shared/assistant/asst-panel.js +13 -5
- package/neural-interface/public/shared/assistant/asst-rack-styles.js +4 -4
- package/neural-interface/public/shared/assistant/asst-render.js +16 -10
- package/neural-interface/public/shared/assistant/asst-route-models.js +64 -4
- package/neural-interface/public/shared/assistant/asst-route.js +24 -7
- package/neural-interface/public/shared/assistant/asst-routes-editor.js +154 -39
- package/neural-interface/public/shared/assistant/asst-run-stage.js +3 -3
- package/neural-interface/public/shared/assistant/asst-scene-styles.js +8 -111
- package/neural-interface/public/shared/assistant/asst-scenes.js +46 -318
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +2 -2
- package/neural-interface/public/shared/assistant/asst-state.js +72 -2
- package/neural-interface/public/shared/assistant/asst-styles.js +60 -15
- package/neural-interface/public/shared/automation-approval-view.js +75 -0
- package/neural-interface/public/shared/cdx/cdx-panel.js +2 -2
- package/neural-interface/public/shared/cdx/cdx-render.js +73 -7
- package/neural-interface/public/shared/cdx/cdx-tabs.js +3 -3
- package/neural-interface/public/shared/context-menu-model.js +2 -0
- package/neural-interface/public/shared/cp/cp-agents.js +8 -0
- package/neural-interface/public/shared/cp/cp-permissions.js +6 -2
- package/neural-interface/public/shared/cp/cp-rehydrate.js +25 -1
- package/neural-interface/public/shared/cp/cp-tasks-model.js +33 -0
- package/neural-interface/public/shared/editor/editor-panel-logic.js +10 -0
- package/neural-interface/public/shared/editor/editor-panel.js +10 -2
- package/neural-interface/public/shared/html-shell.js +30 -22
- package/neural-interface/public/shared/judgments-log-origins.js +29 -0
- package/neural-interface/public/shared/morelogin-profile-choices.js +107 -0
- package/neural-interface/public/shared/morelogin-profile-field.js +186 -0
- package/neural-interface/public/shared/mtc/mtc-client.js +181 -0
- package/neural-interface/public/shared/mtc/mtc-compose.js +40 -0
- package/neural-interface/public/shared/mtc/mtc-copy.js +253 -0
- package/neural-interface/public/shared/mtc/mtc-logic.js +478 -0
- package/neural-interface/public/shared/mtc/mtc-panel.js +1354 -0
- package/neural-interface/public/shared/mtc/mtc-render.js +172 -0
- package/neural-interface/public/shared/mtc/mtc-styles.js +437 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-automation-ownership.js +23 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-events.js +13 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-icons.js +3 -1
- package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +10 -4
- package/neural-interface/public/shared/ocp-v2/ocp-v2-render.js +6 -86
- package/neural-interface/public/shared/ocp-v2/ocp-v2-ws.js +5 -2
- package/neural-interface/public/shared/owner-access.js +134 -0
- package/neural-interface/public/shared/owner-authority-view.js +92 -0
- package/neural-interface/public/shared/page-session.js +143 -14
- package/neural-interface/public/shared/poll-backoff.js +59 -0
- package/neural-interface/public/shared/provider-icons.js +3 -0
- package/neural-interface/public/shared/schedules-view.js +7 -0
- package/neural-interface/public/shared/server-back.js +50 -0
- package/neural-interface/public/shared/settings/settings-browser-owner-access.js +72 -0
- package/neural-interface/public/shared/settings/settings-data.js +7 -1
- package/neural-interface/public/shared/settings/settings-ia.js +3 -1
- package/neural-interface/public/shared/settings/settings-kit.js +11 -3
- package/neural-interface/public/shared/settings/settings-local-profiles.js +153 -0
- package/neural-interface/public/shared/settings/settings-maritaca-opencode.js +105 -0
- package/neural-interface/public/shared/settings/settings-shell.js +7 -0
- package/neural-interface/public/shared/shown-children.js +72 -0
- package/neural-interface/public/shared/sidepanel-session-status.js +16 -2
- package/neural-interface/public/shared/state.js +1 -1
- package/neural-interface/public/shared/static-bg-state.js +22 -0
- package/neural-interface/public/shared/styles.css +457 -164
- package/neural-interface/public/shared/synabun-mascot-assets.js +67 -0
- package/neural-interface/public/shared/synabun-mascot.js +136 -12
- package/neural-interface/public/shared/synabun-ticker.js +3 -0
- package/neural-interface/public/shared/synabun-tools.js +173 -0
- package/neural-interface/public/shared/tool-heartbeat.js +43 -0
- package/neural-interface/public/shared/tool-list-picker.js +3 -1
- package/neural-interface/public/shared/tool-list-view.js +23 -4
- package/neural-interface/public/shared/topright-overflow-logic.js +1 -0
- package/neural-interface/public/shared/ui-automation-approval.js +188 -0
- package/neural-interface/public/shared/ui-automation-studio.js +138 -91
- package/neural-interface/public/shared/ui-claude-panel.js +209 -31
- package/neural-interface/public/shared/ui-judgments.js +37 -10
- package/neural-interface/public/shared/ui-maritaca-panel.js +15 -0
- package/neural-interface/public/shared/ui-navbar.js +23 -0
- package/neural-interface/public/shared/ui-owner-access.js +191 -0
- package/neural-interface/public/shared/ui-owner-authority.js +162 -0
- package/neural-interface/public/shared/ui-panels.js +3 -1
- package/neural-interface/public/shared/ui-schedules-studio.js +118 -17
- package/neural-interface/public/shared/ui-scroll-follow.js +3 -0
- package/neural-interface/public/shared/ui-sessions.js +45 -16
- package/neural-interface/public/shared/ui-settings.js +676 -42
- package/neural-interface/public/shared/ui-sidepanel-session-entry.js +8 -2
- package/neural-interface/public/shared/ui-sidepanel-sessions.js +3 -3
- package/neural-interface/public/shared/ui-sidepanel-tray.js +24 -0
- package/neural-interface/public/shared/ui-sidepanel-windows.js +1 -1
- package/neural-interface/public/shared/ui-terminal.js +15 -7
- package/neural-interface/public/shared/ui-tutorial-preview.js +4 -0
- package/neural-interface/public/shared/ui-update.js +3 -0
- package/neural-interface/public/shared/ui-whiteboard.js +4 -0
- package/neural-interface/public/shared/window-keys.js +38 -0
- package/neural-interface/scripts/build-mascot-assets.mjs +30 -0
- package/neural-interface/server.js +2903 -359
- package/npm-shrinkwrap.json +5 -17
- package/package.json +5 -6
- package/postinstall.js +38 -39
- package/setup.js +33 -31
- package/skills/synabun/modules/changelog.md +14 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════
|
|
2
|
+
// SynaBun — Maritaca panel: every sentence it says (no DOM)
|
|
3
|
+
// ═══════════════════════════════════════════
|
|
4
|
+
//
|
|
5
|
+
// The English text lives here, once; `maritacaPanel.*` in i18n/en.json must equal it and
|
|
6
|
+
// i18n/pt-BR.json must have the same keys and placeholders (tests/maritaca-panel-logic.test.mjs).
|
|
7
|
+
// A detached window or a test renders before the locale bundle is ready: the English is the fallback.
|
|
8
|
+
|
|
9
|
+
export const MTC_COPY = Object.freeze({
|
|
10
|
+
title: 'Maritaca',
|
|
11
|
+
toolbar: 'Maritaca side panel',
|
|
12
|
+
transcript: 'Maritaca conversation',
|
|
13
|
+
newSession: 'New conversation',
|
|
14
|
+
newTab: 'New tab',
|
|
15
|
+
closeTab: 'Close tab',
|
|
16
|
+
minimize: 'Minimize to pill',
|
|
17
|
+
rename: 'Rename conversation',
|
|
18
|
+
sessions: 'Conversations',
|
|
19
|
+
sessionsEmpty: 'No Maritaca conversations yet.',
|
|
20
|
+
sessionsLoading: 'Loading conversations…',
|
|
21
|
+
sessionsFailed: 'Could not list conversations: {error}',
|
|
22
|
+
sessionsSearch: 'Search conversations',
|
|
23
|
+
delete: 'Delete',
|
|
24
|
+
deleteConfirm: 'Delete "{title}"?',
|
|
25
|
+
cancel: 'Cancel',
|
|
26
|
+
save: 'Save',
|
|
27
|
+
project: 'Project',
|
|
28
|
+
chooseProject: 'Choose a project',
|
|
29
|
+
noProjectLabel: 'No project',
|
|
30
|
+
branch: 'Branch',
|
|
31
|
+
noBranch: 'No branch',
|
|
32
|
+
branchStopFirst: 'Stop the active Sabiá turn before switching branches.',
|
|
33
|
+
branchStatusIncomplete: 'Git status is incomplete. Refresh before switching branches.',
|
|
34
|
+
branchConfirm: 'Switch from {from} to {to} with {count} uncommitted change(s)? Git will preserve them when possible.',
|
|
35
|
+
branchCurrentFallback: 'the current branch',
|
|
36
|
+
branchSwitched: 'Switched working tree to {branch}.',
|
|
37
|
+
branchFailed: 'Branch checkout failed: {error}',
|
|
38
|
+
placeholder: 'Ask Sabiá…',
|
|
39
|
+
placeholderNoKey: 'Add your Maritaca API key to start.',
|
|
40
|
+
send: 'Send',
|
|
41
|
+
stop: 'Stop',
|
|
42
|
+
model: 'Model',
|
|
43
|
+
modelDefault: 'Default model',
|
|
44
|
+
effort: 'Reasoning',
|
|
45
|
+
effortDefault: 'Model default',
|
|
46
|
+
effort_none: 'Off',
|
|
47
|
+
effort_low: 'Low',
|
|
48
|
+
effort_medium: 'Medium',
|
|
49
|
+
effort_high: 'High',
|
|
50
|
+
effortLabel: 'Effort',
|
|
51
|
+
effortMenu: 'Reasoning effort',
|
|
52
|
+
effortDefaultDesc: 'Now {level}',
|
|
53
|
+
effortDesc_none: 'No reasoning: the fastest and cheapest replies',
|
|
54
|
+
effortDesc_low: 'Short reasoning',
|
|
55
|
+
effortDesc_medium: 'Balanced quality and cost',
|
|
56
|
+
effortDesc_high: 'Longest reasoning, for hard problems',
|
|
57
|
+
effortTitle: 'Reasoning effort: {level} ({model})',
|
|
58
|
+
effortTitleDefault: 'Reasoning effort: {level}, the default ({model})',
|
|
59
|
+
effortUnsupported: '{model} has no reasoning levels. Pick an S5 model to choose one.',
|
|
60
|
+
effortUnsupportedShort: 'This model has no reasoning levels.',
|
|
61
|
+
effortUnknown: 'Reasoning levels show once the model list has loaded.',
|
|
62
|
+
plan: 'Plan',
|
|
63
|
+
planOn: 'Plan',
|
|
64
|
+
planOff: 'Chat',
|
|
65
|
+
planToggleOn: 'Plan mode: on. Replies are plans to review before any work (Shift+Tab)',
|
|
66
|
+
planToggleOff: 'Plan mode: off (Shift+Tab)',
|
|
67
|
+
planUnavailable: 'Plan mode needs a SynaBun restart: this server does not know it yet.',
|
|
68
|
+
planPlaceholder: 'Describe what to plan…',
|
|
69
|
+
planBadge: 'Plan',
|
|
70
|
+
planReview: 'Plan review',
|
|
71
|
+
planHeader: 'Plan complete',
|
|
72
|
+
planNote: 'Review the plan. Continue to have Sabiá carry it out, or suggest changes for a new version.',
|
|
73
|
+
planContinue: 'Continue with this plan',
|
|
74
|
+
planFeedbackLabel: 'Suggest changes',
|
|
75
|
+
planFeedbackPlaceholder: 'Add a requirement, change the approach, remove a step…',
|
|
76
|
+
planFeedbackHint: '⌘/Ctrl + Enter to update',
|
|
77
|
+
planUpdate: 'Update plan',
|
|
78
|
+
planCopy: 'Copy plan',
|
|
79
|
+
planDismiss: 'Dismiss',
|
|
80
|
+
planContinuePrompt: 'The plan above is approved. Carry it out now, step by step, and give the complete result.',
|
|
81
|
+
planRevisePrompt: 'Revise the plan with these changes:\n\n{changes}',
|
|
82
|
+
contextSettings: 'Context settings',
|
|
83
|
+
contextSettingsPressure: 'Context settings, {share} of the context window used',
|
|
84
|
+
ctxSectionContext: 'Context window',
|
|
85
|
+
ctxSectionConversation: 'Conversation',
|
|
86
|
+
ctxSectionConnection: 'Connection',
|
|
87
|
+
ctxNotReported: 'Not reported yet',
|
|
88
|
+
ctxUsage: '{used} / {size}',
|
|
89
|
+
ctxHeadline: '{share} of the context window used ({used} of {size} tokens)',
|
|
90
|
+
ctxWindow: 'Window',
|
|
91
|
+
ctxLastInput: 'Last prompt',
|
|
92
|
+
ctxLastOutput: 'Last answer',
|
|
93
|
+
ctxCached: 'Cached input',
|
|
94
|
+
ctxReasoningTokens: 'Reasoning tokens',
|
|
95
|
+
ctxMode: 'Mode',
|
|
96
|
+
ctxEffortNone: 'Not offered',
|
|
97
|
+
ctxMessages: 'Messages',
|
|
98
|
+
ctxReplies: 'Replies',
|
|
99
|
+
ctxCost: 'Cost',
|
|
100
|
+
ctxDraft: 'Draft',
|
|
101
|
+
ctxConversationId: 'Conversation ID',
|
|
102
|
+
ctxNotStarted: 'Not started',
|
|
103
|
+
ctxCopied: 'Copied',
|
|
104
|
+
ctxCopyId: 'Copy conversation ID',
|
|
105
|
+
ctxSystemOn: 'On ({count} characters)',
|
|
106
|
+
ctxSystemOff: 'Off',
|
|
107
|
+
ctxTempDefault: 'Default (0.7)',
|
|
108
|
+
ctxTempIgnored: '{value} (not sent to S5 models)',
|
|
109
|
+
ctxKey: 'API key',
|
|
110
|
+
ctxKeyMissing: 'Not set',
|
|
111
|
+
ctxKeySaved: 'Saved ({masked})',
|
|
112
|
+
ctxKeyEnv: 'Environment ({masked})',
|
|
113
|
+
ctxServer: 'Panel server',
|
|
114
|
+
ctxServerReady: 'Up to date',
|
|
115
|
+
ctxServerRestart: 'Restart SynaBun for plan mode',
|
|
116
|
+
ctxSettings: 'Settings',
|
|
117
|
+
ctxSettingsName: 'Maritaca settings',
|
|
118
|
+
ctxMeter: '{share} · {used}/{size}',
|
|
119
|
+
ctxMeterEmpty: '{size} context',
|
|
120
|
+
ctxMeterLabel: 'Context window usage',
|
|
121
|
+
working: 'Thinking…',
|
|
122
|
+
workingFor: 'Thinking… {seconds}s',
|
|
123
|
+
reasoning: 'Reasoning',
|
|
124
|
+
reasoningFor: 'Reasoned',
|
|
125
|
+
emptyTitle: 'Maritaca AI',
|
|
126
|
+
emptyBody: 'Sabiá models, trained for Portuguese and the Brazilian context, through Maritaca\'s API. Pick a model below and ask away.',
|
|
127
|
+
emptyNoKey: 'SynaBun needs your Maritaca API key. Create one on the Maritaca platform and paste it in the panel settings.',
|
|
128
|
+
emptyKeyButton: 'Add API key',
|
|
129
|
+
emptyKeyLink: 'Get a key at plataforma.maritaca.ai',
|
|
130
|
+
settingsTitle: 'Maritaca settings',
|
|
131
|
+
settingsClose: 'Close settings',
|
|
132
|
+
settingsSectionKey: 'API key',
|
|
133
|
+
settingsSectionDefaults: 'Defaults',
|
|
134
|
+
settingsSectionInstructions: 'Instructions',
|
|
135
|
+
settingsSectionSampling: 'Sampling',
|
|
136
|
+
settingsSectionAbout: 'About',
|
|
137
|
+
settingsKeySave: 'Save key',
|
|
138
|
+
settingsKeyHint: 'Kept in SynaBun\'s data folder and never sent back to the page. MARITACA_API_KEY in the server\'s environment is used when no key is saved.',
|
|
139
|
+
settingsDefaultsHint: 'New tabs start on the default model. Each tab can pick its own model, reasoning level and mode in the footer.',
|
|
140
|
+
settingsSystemCount: '{count} / {max} characters · sent first in every request',
|
|
141
|
+
settingsTemperatureDefault: 'Default',
|
|
142
|
+
settingsSaveDefaults: 'Save settings',
|
|
143
|
+
settingsSaving: 'Saving…',
|
|
144
|
+
settingsUnsaved: 'Unsaved changes',
|
|
145
|
+
settingsNotApplied: 'Saved, but the server kept other values for: {fields}',
|
|
146
|
+
settingsKey: 'API key',
|
|
147
|
+
settingsKeyPlaceholder: 'Paste your Maritaca API key',
|
|
148
|
+
settingsKeySaved: 'Key saved ({masked})',
|
|
149
|
+
settingsKeyEnv: 'Key from the MARITACA_API_KEY environment variable ({masked})',
|
|
150
|
+
settingsKeyNone: 'No key saved',
|
|
151
|
+
settingsKeyForget: 'Forget key',
|
|
152
|
+
settingsKeyTest: 'Test connection',
|
|
153
|
+
settingsKeyTesting: 'Testing…',
|
|
154
|
+
settingsKeyOk: 'Maritaca accepted the key.',
|
|
155
|
+
settingsKeyFailed: 'Test failed: {error}',
|
|
156
|
+
settingsSaved: 'Settings saved.',
|
|
157
|
+
settingsKeyStored: 'Key saved.',
|
|
158
|
+
settingsKeyForgotten: 'Key forgotten.',
|
|
159
|
+
settingsFailed: 'Could not save: {error}',
|
|
160
|
+
settingsModel: 'Default model',
|
|
161
|
+
settingsEffort: 'Default reasoning (S5)',
|
|
162
|
+
settingsSystem: 'System prompt',
|
|
163
|
+
settingsSystemPlaceholder: 'Instructions sent at the start of every conversation (optional)',
|
|
164
|
+
settingsTemperature: 'Temperature',
|
|
165
|
+
settingsTemperatureHint: 'Empty uses Maritaca\'s default (0.7). The S5 family ignores temperature.',
|
|
166
|
+
settingsDocs: 'Maritaca API documentation',
|
|
167
|
+
settingsKeys: 'Manage keys on the Maritaca platform',
|
|
168
|
+
settingsRestart: 'This server does not know the Maritaca panel yet: restart SynaBun to use it.',
|
|
169
|
+
usage_in: '{value} in',
|
|
170
|
+
usage_out: '{value} out',
|
|
171
|
+
usage_cached: '{value} cached',
|
|
172
|
+
costBrl: 'R$ {value}',
|
|
173
|
+
copy: 'Copy',
|
|
174
|
+
copied: 'Copied',
|
|
175
|
+
copyAnswer: 'Copy answer',
|
|
176
|
+
retry: 'Regenerate reply',
|
|
177
|
+
editResend: 'Edit and resend from here',
|
|
178
|
+
editNotice: 'Editing an earlier prompt. Sending replaces the replies after it; attached files stay included.',
|
|
179
|
+
cancelEdit: 'Cancel edit',
|
|
180
|
+
attach: 'Attach text or code files',
|
|
181
|
+
attachmentRemove: 'Remove {name}',
|
|
182
|
+
attachmentCount: 'At most {count} files per message.',
|
|
183
|
+
attachmentSize: 'Each file must be at most {size}.',
|
|
184
|
+
attachmentTooLarge: 'Each file must be at most 100 KB.',
|
|
185
|
+
attachmentType: '{name} must be a text or code file in UTF-8.',
|
|
186
|
+
attachmentTextOnly: 'Attach UTF-8 text or code files. Binary files are not supported.',
|
|
187
|
+
attachmentDamaged: 'An attachment arrived damaged. Remove it and attach it again.',
|
|
188
|
+
attachmentFailed: 'Could not attach {name}: {error}',
|
|
189
|
+
imageUnsupported: 'This model does not read images. Attach a text or code file instead.',
|
|
190
|
+
promptTooLong: 'The message including files is longer than 200,000 characters.',
|
|
191
|
+
uploading: 'Reading files…',
|
|
192
|
+
sending: 'Sending…',
|
|
193
|
+
draftHint: '{chars} characters · ~{tokens} tokens (estimate)',
|
|
194
|
+
dropFiles: 'Drop text or code files here',
|
|
195
|
+
conversationCost: 'Conversation: R$ {value}',
|
|
196
|
+
dismiss: 'Dismiss notice',
|
|
197
|
+
copyFailed: 'Could not copy. Select the text and copy it manually.',
|
|
198
|
+
renameFailed: 'Could not rename: {error}',
|
|
199
|
+
deleteFailed: 'Could not delete: {error}',
|
|
200
|
+
sessionsProject: 'This project only',
|
|
201
|
+
shortcuts: 'Enter sends · Shift+Enter newline · Shift+Tab plan mode · Esc stops · Ctrl/⌘+Alt+N new tab · Ctrl/⌘+Alt+←/→ switch tabs',
|
|
202
|
+
commandMenu: 'Panel commands',
|
|
203
|
+
cmd_new: 'Start a new conversation',
|
|
204
|
+
cmd_sessions: 'Search conversations',
|
|
205
|
+
cmd_rename: 'Rename this conversation',
|
|
206
|
+
cmd_retry: 'Regenerate the latest reply',
|
|
207
|
+
cmd_copy: 'Copy the latest reply',
|
|
208
|
+
cmd_model: 'Pick a model',
|
|
209
|
+
cmd_plan: 'Turn plan mode on or off (/plan on, /plan off)',
|
|
210
|
+
cmd_effort: 'Pick the reasoning effort (/effort low, medium, high, off, default)',
|
|
211
|
+
cmd_context: 'Show the context window and the conversation details',
|
|
212
|
+
cmd_settings: 'Open panel settings',
|
|
213
|
+
cmd_help: 'Show commands and keyboard shortcuts',
|
|
214
|
+
finishLength: 'The reply stopped at the model\'s output limit.',
|
|
215
|
+
finishCancelled: 'Stopped.',
|
|
216
|
+
turnFailed: 'Maritaca could not answer: {error}',
|
|
217
|
+
errorNoKey: 'Save a Maritaca API key first.',
|
|
218
|
+
errorKeyRejected: 'Maritaca rejected the saved key. Check it in the panel settings.',
|
|
219
|
+
errorRateLimited: 'Maritaca is rate limiting this key. Wait a moment and try again.',
|
|
220
|
+
errorUnreachable: 'Could not reach Maritaca. Check the connection and try again.',
|
|
221
|
+
errorDisconnected: 'The connection to SynaBun dropped. Reconnecting…',
|
|
222
|
+
connBlocked_restart: 'This server does not know the Maritaca panel yet: restart SynaBun to use it.',
|
|
223
|
+
connBlocked_automation: 'The Maritaca panel is not available in SynaBun\'s automation browser.',
|
|
224
|
+
connBlocked_guest: 'The Maritaca panel is the owner\'s: an invite guest cannot use it.',
|
|
225
|
+
connBlocked_refused: 'SynaBun refused the Maritaca panel socket: {message}',
|
|
226
|
+
connRetrying: 'Reconnecting to SynaBun… ({attempt})',
|
|
227
|
+
freeTag: 'free',
|
|
228
|
+
brTag: 'BR',
|
|
229
|
+
priceTag: 'R$ {input} / {output} per 1M',
|
|
230
|
+
contextTag: '{context} context',
|
|
231
|
+
jumpLatest: 'Latest',
|
|
232
|
+
tabTitleFallback: 'Conversation',
|
|
233
|
+
providerNote: 'Maritaca is a chat API: it answers here and is not a worker the Assistant can dispatch to.',
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
let _translate = null;
|
|
237
|
+
export function setMaritacaTranslator(fn) { _translate = typeof fn === 'function' ? fn : null; }
|
|
238
|
+
|
|
239
|
+
function fill(template, params = {}) {
|
|
240
|
+
return String(template).replace(/\{(\w+)\}/g, (m, k) => (params[k] === undefined || params[k] === null ? m : String(params[k])));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** The sentence `key` names, translated when the page has a translator, else the English above. */
|
|
244
|
+
export function mtcText(key, params = {}) {
|
|
245
|
+
const fallback = MTC_COPY[key];
|
|
246
|
+
if (_translate) {
|
|
247
|
+
try {
|
|
248
|
+
const value = _translate(`maritacaPanel.${key}`, params);
|
|
249
|
+
if (typeof value === 'string' && value && value !== `maritacaPanel.${key}`) return value;
|
|
250
|
+
} catch { /* fallback below */ }
|
|
251
|
+
}
|
|
252
|
+
return fallback === undefined ? key : fill(fallback, params);
|
|
253
|
+
}
|