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
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synabun",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "synabun",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.3.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"@inquirer/prompts": "^8.2.0",
|
|
17
17
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
18
18
|
"@openai/codex-sdk": "^0.160.0",
|
|
19
|
+
"@types/express": "^5.0.0",
|
|
20
|
+
"@types/node": "^22.12.0",
|
|
19
21
|
"@xterm/addon-fit": "0.11.0",
|
|
20
22
|
"@xterm/addon-search": "0.16.0",
|
|
21
23
|
"@xterm/addon-serialize": "0.14.0",
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
"express": "^4.21.2",
|
|
32
34
|
"node-html-markdown": "^2.0.0",
|
|
33
35
|
"playwright": "^1.59.1",
|
|
36
|
+
"typescript": "^5.9.3",
|
|
34
37
|
"undici": "^8.5.0",
|
|
35
38
|
"uuid": "^14.0.0",
|
|
36
39
|
"ws": "^8.21.0",
|
|
@@ -40,11 +43,6 @@
|
|
|
40
43
|
"bin": {
|
|
41
44
|
"synabun": "bin/synabun.js"
|
|
42
45
|
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/express": "^5.0.0",
|
|
45
|
-
"@types/node": "^22.12.0",
|
|
46
|
-
"typescript": "^5.9.3"
|
|
47
|
-
},
|
|
48
46
|
"engines": {
|
|
49
47
|
"node": ">=22.19.0"
|
|
50
48
|
},
|
|
@@ -1435,7 +1433,6 @@
|
|
|
1435
1433
|
"version": "1.19.6",
|
|
1436
1434
|
"resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",
|
|
1437
1435
|
"integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",
|
|
1438
|
-
"dev": true,
|
|
1439
1436
|
"license": "MIT",
|
|
1440
1437
|
"dependencies": {
|
|
1441
1438
|
"@types/connect": "*",
|
|
@@ -1446,7 +1443,6 @@
|
|
|
1446
1443
|
"version": "3.4.38",
|
|
1447
1444
|
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
|
|
1448
1445
|
"integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
|
|
1449
|
-
"dev": true,
|
|
1450
1446
|
"license": "MIT",
|
|
1451
1447
|
"dependencies": {
|
|
1452
1448
|
"@types/node": "*"
|
|
@@ -1456,7 +1452,6 @@
|
|
|
1456
1452
|
"version": "5.0.6",
|
|
1457
1453
|
"resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz",
|
|
1458
1454
|
"integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==",
|
|
1459
|
-
"dev": true,
|
|
1460
1455
|
"license": "MIT",
|
|
1461
1456
|
"dependencies": {
|
|
1462
1457
|
"@types/body-parser": "*",
|
|
@@ -1468,7 +1463,6 @@
|
|
|
1468
1463
|
"version": "5.1.1",
|
|
1469
1464
|
"resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz",
|
|
1470
1465
|
"integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==",
|
|
1471
|
-
"dev": true,
|
|
1472
1466
|
"license": "MIT",
|
|
1473
1467
|
"dependencies": {
|
|
1474
1468
|
"@types/node": "*",
|
|
@@ -1481,7 +1475,6 @@
|
|
|
1481
1475
|
"version": "2.0.5",
|
|
1482
1476
|
"resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",
|
|
1483
1477
|
"integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",
|
|
1484
|
-
"dev": true,
|
|
1485
1478
|
"license": "MIT"
|
|
1486
1479
|
},
|
|
1487
1480
|
"node_modules/@types/node": {
|
|
@@ -1497,21 +1490,18 @@
|
|
|
1497
1490
|
"version": "6.15.0",
|
|
1498
1491
|
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.0.tgz",
|
|
1499
1492
|
"integrity": "sha512-JawvT8iBVWpzTrz3EGw9BTQFg3BQNmwERdKE22vlTxawwtbyUSlMppvZYKLZzB5zgACXdXxbD3m1bXaMqP/9ow==",
|
|
1500
|
-
"dev": true,
|
|
1501
1493
|
"license": "MIT"
|
|
1502
1494
|
},
|
|
1503
1495
|
"node_modules/@types/range-parser": {
|
|
1504
1496
|
"version": "1.2.7",
|
|
1505
1497
|
"resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
|
|
1506
1498
|
"integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
|
|
1507
|
-
"dev": true,
|
|
1508
1499
|
"license": "MIT"
|
|
1509
1500
|
},
|
|
1510
1501
|
"node_modules/@types/send": {
|
|
1511
1502
|
"version": "1.2.1",
|
|
1512
1503
|
"resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz",
|
|
1513
1504
|
"integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==",
|
|
1514
|
-
"dev": true,
|
|
1515
1505
|
"license": "MIT",
|
|
1516
1506
|
"dependencies": {
|
|
1517
1507
|
"@types/node": "*"
|
|
@@ -1521,7 +1511,6 @@
|
|
|
1521
1511
|
"version": "2.2.0",
|
|
1522
1512
|
"resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz",
|
|
1523
1513
|
"integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==",
|
|
1524
|
-
"dev": true,
|
|
1525
1514
|
"license": "MIT",
|
|
1526
1515
|
"dependencies": {
|
|
1527
1516
|
"@types/http-errors": "*",
|
|
@@ -4182,7 +4171,6 @@
|
|
|
4182
4171
|
"version": "5.9.3",
|
|
4183
4172
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
|
4184
4173
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
4185
|
-
"dev": true,
|
|
4186
4174
|
"license": "Apache-2.0",
|
|
4187
4175
|
"bin": {
|
|
4188
4176
|
"tsc": "bin/tsc",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synabun",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"mcpName": "io.github.danilokhury/synabun",
|
|
5
5
|
"description": "Local-first persistent vector memory, MCP tooling, and multi-agent workflows for AI assistants",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"lib/first-launch-protection.js",
|
|
79
79
|
"lib/update-snapshot.js",
|
|
80
80
|
"lib/runtime-dependencies.js",
|
|
81
|
+
"lib/mcp-build.js",
|
|
81
82
|
"lib/mcp-dist.js",
|
|
82
83
|
"lib/tools-cli.js",
|
|
83
84
|
"lib/package-processes.js",
|
|
@@ -126,6 +127,8 @@
|
|
|
126
127
|
"@inquirer/prompts": "^8.2.0",
|
|
127
128
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
128
129
|
"@openai/codex-sdk": "^0.160.0",
|
|
130
|
+
"@types/express": "^5.0.0",
|
|
131
|
+
"@types/node": "^22.12.0",
|
|
129
132
|
"@xterm/addon-fit": "0.11.0",
|
|
130
133
|
"@xterm/addon-search": "0.16.0",
|
|
131
134
|
"@xterm/addon-serialize": "0.14.0",
|
|
@@ -141,6 +144,7 @@
|
|
|
141
144
|
"express": "^4.21.2",
|
|
142
145
|
"node-html-markdown": "^2.0.0",
|
|
143
146
|
"playwright": "^1.59.1",
|
|
147
|
+
"typescript": "^5.9.3",
|
|
144
148
|
"undici": "^8.5.0",
|
|
145
149
|
"uuid": "^14.0.0",
|
|
146
150
|
"ws": "^8.21.0",
|
|
@@ -150,11 +154,6 @@
|
|
|
150
154
|
"optionalDependencies": {
|
|
151
155
|
"node-pty": "^1.1.0"
|
|
152
156
|
},
|
|
153
|
-
"devDependencies": {
|
|
154
|
-
"@types/express": "^5.0.0",
|
|
155
|
-
"@types/node": "^22.12.0",
|
|
156
|
-
"typescript": "^5.9.3"
|
|
157
|
-
},
|
|
158
157
|
"overrides": {
|
|
159
158
|
"@hono/node-server": "^1.19.13",
|
|
160
159
|
"brace-expansion": "^2.1.2",
|
package/postinstall.js
CHANGED
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
* Runs after `npm i -g synabun` (and after `npm install` in a checkout). npm
|
|
7
7
|
* has already installed every runtime dependency at the package root, at the
|
|
8
8
|
* versions npm-shrinkwrap.json pins, so nothing is installed here: this only
|
|
9
|
-
* finishes what npm cannot (node-pty's binary, the MCP build of
|
|
10
|
-
*
|
|
9
|
+
* finishes what npm cannot (node-pty's binary, the MCP build of the installed
|
|
10
|
+
* source, the synabun:// handler, the updater shim's executable bit).
|
|
11
11
|
* Does NOT start the server — that's setup.js / `synabun` command.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { execFileSync } from 'node:child_process';
|
|
15
|
-
import { existsSync, chmodSync, lstatSync, readlinkSync, unlinkSync } from 'node:fs';
|
|
15
|
+
import { existsSync, chmodSync, lstatSync, readFileSync, readlinkSync, unlinkSync } from 'node:fs';
|
|
16
16
|
import { resolve, dirname, basename, join } from 'node:path';
|
|
17
17
|
import { fileURLToPath } from 'node:url';
|
|
18
18
|
import { platform } from 'node:os';
|
|
19
19
|
import { registerStartLauncher } from './lib/start-launcher.js';
|
|
20
|
-
import {
|
|
21
|
-
import { mcpDistMissing } from './lib/mcp-dist.js';
|
|
20
|
+
import { buildMcpServerSafely, mcpDistWhole } from './lib/mcp-build.js';
|
|
22
21
|
|
|
23
22
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
24
23
|
|
|
@@ -72,41 +71,33 @@ function rebuildPty() {
|
|
|
72
71
|
|
|
73
72
|
// ── MCP server build ──
|
|
74
73
|
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
// dist
|
|
74
|
+
// Every install and update builds the MCP server from the source it brought
|
|
75
|
+
// (lib/mcp-build.js), even when a dist is there: the shipped or previous dist
|
|
76
|
+
// may be from another version or source. The build goes into a temp folder and
|
|
77
|
+
// replaces dist only when it succeeded; a failure keeps the previous (or the
|
|
78
|
+
// shipped, prebuilt) dist and never fails `npm i -g`: exiting non-zero here
|
|
79
|
+
// would make npm roll the whole install back, which is worse than a working
|
|
80
|
+
// prebuilt server. TypeScript is a root dependency, so npm -g installs it.
|
|
79
81
|
|
|
80
82
|
function buildMcpServer() {
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
const result = buildMcpServerSafely(__dirname, {
|
|
84
|
+
force: true,
|
|
85
|
+
waitMs: 180_000,
|
|
86
|
+
log: { ok, info, warn, fail, error: (text) => console.error(text) },
|
|
87
|
+
});
|
|
88
|
+
// Failed and nothing whole to start from (a first install whose compile failed): said clearly, with the way out.
|
|
89
|
+
// Still exit 0: a non-zero exit makes npm remove the whole install, and a copy that setup.js refuses to start with a
|
|
90
|
+
// clear message is better than none; `synabun` says the same when it is run.
|
|
91
|
+
if (result.status === 'failed' && result.reason !== 'busy' && !mcpDistWhole(__dirname).complete) {
|
|
92
|
+
fail('The MCP server is not built: SynaBun cannot start until it is. See the compiler output above.');
|
|
93
|
+
info(`To repair: npm i -g synabun@${version()} (the same install again), or report this at https://github.com/danilokhury/Synabun/issues`);
|
|
94
|
+
return false;
|
|
85
95
|
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
86
98
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
else info('Building MCP server from source...');
|
|
90
|
-
const tsc = mcpCompiler(__dirname);
|
|
91
|
-
if (!tsc) {
|
|
92
|
-
fail('MCP server build failed: TypeScript is not installed (run npm install in the package root)');
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
try {
|
|
96
|
-
execFileSync(process.execPath, [tsc, '-p', resolve(__dirname, 'mcp-server')], {
|
|
97
|
-
cwd: resolve(__dirname, 'mcp-server'),
|
|
98
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
99
|
-
timeout: 120_000,
|
|
100
|
-
});
|
|
101
|
-
ok('MCP server built');
|
|
102
|
-
} catch (err) {
|
|
103
|
-
fail('MCP server build failed:');
|
|
104
|
-
const stdout = err.stdout?.toString().trim();
|
|
105
|
-
const stderr = err.stderr?.toString().trim();
|
|
106
|
-
if (stdout) console.error(stdout);
|
|
107
|
-
if (stderr) console.error(stderr);
|
|
108
|
-
if (!stdout && !stderr) console.error(err.message);
|
|
109
|
-
}
|
|
99
|
+
function version() {
|
|
100
|
+
try { return JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8')).version || 'latest'; } catch { return 'latest'; }
|
|
110
101
|
}
|
|
111
102
|
|
|
112
103
|
// ── Links an older postinstall left ──
|
|
@@ -173,11 +164,19 @@ function main() {
|
|
|
173
164
|
|
|
174
165
|
removeStalePartLinks();
|
|
175
166
|
rebuildPty();
|
|
176
|
-
buildMcpServer();
|
|
167
|
+
const built = buildMcpServer();
|
|
177
168
|
registerProtocolHandler();
|
|
178
169
|
ensureUpdaterShExecutable();
|
|
179
170
|
|
|
180
|
-
console.log(`\n ${c.green}✓${c.reset} Setup complete. Run ${c.cyan}synabun${c.reset} to start.\n`);
|
|
171
|
+
if (built) console.log(`\n ${c.green}✓${c.reset} Setup complete. Run ${c.cyan}synabun${c.reset} to start.\n`);
|
|
172
|
+
else console.log(`\n ${c.red}✗${c.reset} Setup did not complete: the MCP server is not built (see above).\n`);
|
|
181
173
|
}
|
|
182
174
|
|
|
183
|
-
|
|
175
|
+
// Never a non-zero exit: npm would roll the whole install back for it. Whatever goes wrong here is said, and
|
|
176
|
+
// setup.js (the `synabun` command) checks the build again and refuses to start a server that cannot load.
|
|
177
|
+
try {
|
|
178
|
+
main();
|
|
179
|
+
} catch (err) {
|
|
180
|
+
fail(`postinstall did not finish: ${err?.message || err}`);
|
|
181
|
+
info('Run synabun: it checks the build again and says what is missing.');
|
|
182
|
+
}
|
package/setup.js
CHANGED
|
@@ -56,7 +56,7 @@ import { packagedRuntime } from './lib/packaged-runtime.js';
|
|
|
56
56
|
import {
|
|
57
57
|
OPTIONAL_AT_ROOT, checkRuntimeDependencies, findInstalled, installAtPackageRoot, installKind, mcpCompiler,
|
|
58
58
|
} from './lib/runtime-dependencies.js';
|
|
59
|
-
import {
|
|
59
|
+
import { buildMcpServerSafely, mcpBuildNeeded, mcpDistWhole } from './lib/mcp-build.js';
|
|
60
60
|
import { superviseServer } from './lib/server-supervisor.js';
|
|
61
61
|
import { MCP_COMMAND, nodeArgs, runNode } from './bin/synabun.js';
|
|
62
62
|
|
|
@@ -400,42 +400,43 @@ function installPlaywrightChromium() {
|
|
|
400
400
|
|
|
401
401
|
// ── Phase 4: MCP server build ──
|
|
402
402
|
|
|
403
|
-
// Built
|
|
404
|
-
//
|
|
403
|
+
// Built and current: every runtime entry of dist and every module it imports are there (lib/mcp-dist.js), and its
|
|
404
|
+
// stamp names this version and this source (lib/mcp-build.js). A `git pull` changes the source, so the next start
|
|
405
|
+
// (and the next start of the server by the supervisor) builds it again. A packaged app has no compiler and is
|
|
406
|
+
// replaced whole: it only asks whether its dist is complete.
|
|
405
407
|
function needsBuild() {
|
|
406
|
-
return
|
|
408
|
+
return mcpBuildNeeded(PACKAGE_ROOT, { packaged: !!packagedRuntime() }).needed;
|
|
407
409
|
}
|
|
408
410
|
|
|
411
|
+
// Into a temp folder, swapped in only when it succeeded: a failed build keeps the previous dist. Another SynaBun
|
|
412
|
+
// process building at the same time (postinstall of an update, the server's own build route) is waited for.
|
|
413
|
+
// Returns the builder's result; never throws.
|
|
409
414
|
function buildMcpServer() {
|
|
410
415
|
if (!needsBuild()) {
|
|
411
|
-
ok('MCP server
|
|
412
|
-
return;
|
|
416
|
+
ok('MCP server build matches the installed source');
|
|
417
|
+
return { status: 'current' };
|
|
413
418
|
}
|
|
414
|
-
|
|
415
|
-
info('Building MCP server from source...');
|
|
416
419
|
startPhase('build');
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
console.error('\n Report this at: https://github.com/danilokhury/Synabun/issues');
|
|
438
|
-
}
|
|
420
|
+
const result = buildMcpServerSafely(PACKAGE_ROOT, {
|
|
421
|
+
packaged: !!packagedRuntime(),
|
|
422
|
+
waitMs: 180_000,
|
|
423
|
+
windowsHide: !!packagedRuntime(),
|
|
424
|
+
log: { ok, info, warn, fail, error: (text) => console.error(text) },
|
|
425
|
+
});
|
|
426
|
+
if (result.status === 'failed' && result.reason !== 'busy') console.error('\n Report this at: https://github.com/danilokhury/Synabun/issues');
|
|
427
|
+
return result;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// At launch: a server started over a dist that is not whole dies on a missing module, so when the build failed and
|
|
431
|
+
// no whole dist is there the start stops here, with the compiler's output above and the way to a working copy.
|
|
432
|
+
function ensureMcpServerBuilt() {
|
|
433
|
+
const result = buildMcpServer();
|
|
434
|
+
if (result.status !== 'failed' || mcpDistWhole(PACKAGE_ROOT).complete) return;
|
|
435
|
+
console.log('');
|
|
436
|
+
fail('The MCP server is not built, and SynaBun cannot start without it.');
|
|
437
|
+
info(`To repair: ${npmRepairCommand()} (a packaged application: reinstall it from https://synabun.ai).`);
|
|
438
|
+
startFailed('MCP_BUILD_FAILED', 'the MCP server could not be built: see the compiler output in the terminal');
|
|
439
|
+
process.exit(1);
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
// ── Phase 5: Setup state detection ──
|
|
@@ -513,6 +514,7 @@ function startServer() {
|
|
|
513
514
|
},
|
|
514
515
|
},
|
|
515
516
|
resolvePort: () => resolvePort({ dataHome: DATA_HOME }),
|
|
517
|
+
beforeRestart: buildMcpServer,
|
|
516
518
|
});
|
|
517
519
|
process.on('SIGINT', () => supervision.stop('SIGINT'));
|
|
518
520
|
process.on('SIGTERM', () => supervision.stop('SIGTERM'));
|
|
@@ -662,7 +664,7 @@ async function main() {
|
|
|
662
664
|
console.log('');
|
|
663
665
|
|
|
664
666
|
// Build
|
|
665
|
-
|
|
667
|
+
ensureMcpServerBuilt();
|
|
666
668
|
startPhase('checking');
|
|
667
669
|
console.log('');
|
|
668
670
|
|
|
@@ -154,6 +154,7 @@ Read the entire file, then determine the insertion point:
|
|
|
154
154
|
|
|
155
155
|
- **Case B — Today's date section does NOT exist:**
|
|
156
156
|
- Insert a new `## YYYY-MM-DD` section immediately after the first `# ` title line (and any blank line after it), before any existing `## ` date entries.
|
|
157
|
+
- **Raw worklog files** (the first line is `// FRESH CHANGELOG`, SynaBun's own convention): keep that marker as line 1 and insert the new section right after it. Never remove the marker and never delete or rewrite an older entry: the release pipeline archives the file verbatim (see "Release boundary" below).
|
|
157
158
|
- Place all drafted entries under the new date header.
|
|
158
159
|
|
|
159
160
|
Use the runtime's available file-editing tools for modifications to existing files.
|
|
@@ -185,6 +186,19 @@ Do NOT use an interactive choice prompt here — auto-remember is mandatory per
|
|
|
185
186
|
|
|
186
187
|
---
|
|
187
188
|
|
|
189
|
+
## Release boundary (SynaBun's own repository)
|
|
190
|
+
|
|
191
|
+
In the SynaBun repository the root `CHANGELOG.md` on the Dev branch is a **raw worklog**, not the published changelog: its first line is the marker `// FRESH CHANGELOG`, and it holds every dated entry since the last release, with run ids, paths and test names. Every release does two things with it, always, through `node scripts/release/archive-worklog.mjs` (`docs/release-pipeline.md` → After a release):
|
|
192
|
+
|
|
193
|
+
1. **Archive the raw worklog verbatim** as `changelog/v.<version>-RAW.md`, byte for byte, next to the earlier archives in `changelog/`. A raw entry is never lost and an archive is never rewritten.
|
|
194
|
+
2. **Produce the release entry** for that version: `changelog/v.<version>.md` on Dev and the top of Clean's `CHANGELOG.md`, grouped Keep a Changelog style (New / Fixed / Changed, Removed when something went away), written for users, with no commit ids, run ids, private paths, emails or names.
|
|
195
|
+
|
|
196
|
+
Then the root `CHANGELOG.md` is the marker plus only what was written after the release. The next release is refused while the last one's `-RAW.md` archive is missing.
|
|
197
|
+
|
|
198
|
+
What this means for **this skill**: write entries into the root `CHANGELOG.md` only, under the marker, newest date first; never write into `changelog/`, never delete, merge or reword an older entry, never remove the marker. The polished per-release entry is the release pipeline's job, not this skill's.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
188
202
|
## Guidelines
|
|
189
203
|
|
|
190
204
|
- **Be specific, not generic** — "Added Instagram browser extractor tools (5 tools)" not "Added social media support". Every entry should mention actual code constructs.
|