synabun 2.4.4 → 2.4.6
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 +42 -0
- package/README.md +1 -1
- package/docs/browser-extension-bridge.md +5 -4
- package/docs/whatsapp.md +19 -3
- package/hooks/claude-code/session-start.mjs +21 -18
- package/lib/claude-global-config.js +214 -0
- package/lib/client-config-repair.js +17 -3
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +6 -1
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +1 -0
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +1 -0
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +1 -1
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +18 -3
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +85 -16
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/skill-tools.d.ts +24 -5
- package/mcp-server/dist/tools/skill-tools.d.ts.map +1 -1
- package/mcp-server/dist/tools/skill-tools.js +88 -8
- package/mcp-server/dist/tools/skill-tools.js.map +1 -1
- package/mcp-server/dist/tools/tool-groups.d.ts.map +1 -1
- package/mcp-server/dist/tools/tool-groups.js +19 -4
- package/mcp-server/dist/tools/tool-groups.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/index.ts +6 -1
- package/mcp-server/src/services/neural-interface.ts +2 -1
- package/mcp-server/src/services/tool-catalog.ts +1 -1
- package/mcp-server/src/tools/agents.ts +78 -16
- package/mcp-server/src/tools/skill-tools.ts +82 -9
- package/mcp-server/src/tools/tool-groups.ts +19 -4
- package/neural-interface/i18n/en.json +484 -19
- package/neural-interface/i18n/pt-BR.json +484 -19
- package/neural-interface/lib/agents-studio-api.js +7 -2
- package/neural-interface/lib/antigravity/home.js +43 -8
- package/neural-interface/lib/antigravity/panel-bridge.js +7 -3
- package/neural-interface/lib/antigravity/tool-call.js +14 -0
- package/neural-interface/lib/assistant-brains/antigravity.js +4 -2
- package/neural-interface/lib/assistant-dispatch.js +15 -1
- package/neural-interface/lib/assistant-persona.js +8 -3
- package/neural-interface/lib/assistant-route-gate.js +11 -2
- package/neural-interface/lib/assistant-runtime.js +95 -13
- package/neural-interface/lib/assistant-spilled-output.js +53 -0
- package/neural-interface/lib/assistant-user-context.js +7 -3
- package/neural-interface/lib/browser-default.js +22 -2
- package/neural-interface/lib/browser-extension-bridge.js +50 -3
- package/neural-interface/lib/browser-extension-pin.json +7 -7
- package/neural-interface/lib/browser-extension-protocol.js +30 -1
- package/neural-interface/lib/browser-extension-setup.js +204 -36
- package/neural-interface/lib/claude-agent-bridge.js +13 -2
- package/neural-interface/lib/codex-thread-history.js +144 -7
- package/neural-interface/lib/codex-worker-app-server.js +84 -30
- package/neural-interface/lib/db.js +26 -0
- package/neural-interface/lib/greeting/sources.js +7 -3
- package/neural-interface/lib/jsonl-lines.js +10 -11
- package/neural-interface/lib/line-buffer.js +88 -0
- package/neural-interface/lib/loop-stall.js +15 -1
- package/neural-interface/lib/memory-list-read.js +105 -0
- package/neural-interface/lib/memory-timers.js +4 -1
- package/neural-interface/lib/native-loop-runtime.js +7 -3
- package/neural-interface/lib/provider-panel-api-key-auth.js +33 -6
- package/neural-interface/lib/remote-policy.js +24 -7
- package/neural-interface/lib/skills/api-v2.js +18 -3
- package/neural-interface/lib/skills/bundle.js +2 -2
- package/neural-interface/lib/skills/deploy.js +169 -34
- package/neural-interface/lib/skills/digest.js +57 -3
- package/neural-interface/lib/skills/health.js +55 -1
- package/neural-interface/lib/skills/known-bridge-digests.json +12 -0
- package/neural-interface/lib/skills/runtime-checks.js +7 -4
- package/neural-interface/lib/skills/scan-shell.js +56 -7
- package/neural-interface/lib/skills/scan.js +13 -12
- package/neural-interface/lib/skills/service.js +7 -2
- package/neural-interface/lib/skills/telemetry.js +2 -2
- package/neural-interface/lib/teams/README.md +34 -6
- package/neural-interface/lib/teams/api.js +94 -10
- package/neural-interface/lib/teams/index.js +4 -0
- package/neural-interface/lib/teams/landing.js +195 -75
- package/neural-interface/lib/teams/recovery.js +68 -0
- package/neural-interface/lib/teams/scheduler.js +380 -61
- package/neural-interface/lib/teams/worktrees.js +123 -30
- package/neural-interface/lib/terminal-token-redaction.js +228 -58
- package/neural-interface/lib/terminal-tokens.js +18 -0
- package/neural-interface/lib/whatsapp/brain.js +21 -0
- package/neural-interface/lib/whatsapp/bridge.js +40 -4
- package/neural-interface/package-lock.json +2 -2
- package/neural-interface/package.json +1 -1
- package/neural-interface/public/extension-setup.html +6 -2
- package/neural-interface/public/index.html +117 -37
- package/neural-interface/public/shared/agents/studio/ax-api.js +27 -0
- package/neural-interface/public/shared/agents/studio/ax-create-view.js +1 -1
- package/neural-interface/public/shared/agents/studio/ax-icons.js +1 -0
- package/neural-interface/public/shared/agents/studio/ax-library-view.js +3 -2
- package/neural-interface/public/shared/agents/studio/ax-main.js +127 -41
- package/neural-interface/public/shared/agents/studio/ax-review-view.js +3 -2
- package/neural-interface/public/shared/agents/studio/ax-teams-view.js +436 -33
- package/neural-interface/public/shared/agents/studio/ax-teams.js +357 -10
- package/neural-interface/public/shared/agents/studio/ax-ui.js +31 -0
- package/neural-interface/public/shared/agents/studio/ax-views.js +67 -69
- package/neural-interface/public/shared/agents/studio/ax-work-answer.js +86 -0
- package/neural-interface/public/shared/agents/studio/ax-work-view.js +305 -0
- package/neural-interface/public/shared/agents/studio/ax-work.css +74 -0
- package/neural-interface/public/shared/agents/studio/ax-work.js +300 -0
- package/neural-interface/public/shared/browser-extension-updates.js +3 -1
- package/neural-interface/public/shared/cdx/cdx-deferred.js +90 -0
- package/neural-interface/public/shared/cdx/cdx-render.js +18 -7
- package/neural-interface/public/shared/cdx/cdx-tabs.js +2 -1
- package/neural-interface/public/shared/extension-setup/es-page.js +23 -4
- package/neural-interface/public/shared/extension-setup/es-view.js +51 -11
- package/neural-interface/public/shared/extension-update-view.js +1 -1
- package/neural-interface/public/shared/loading-diagnostic-entry.js +16 -1
- package/neural-interface/public/shared/settings/settings-ai-browser.js +23 -3
- package/neural-interface/public/shared/settings/settings-browser-extension.js +575 -197
- package/neural-interface/public/shared/settings/settings-extension-diagrams.js +116 -0
- package/neural-interface/public/shared/settings/settings-extension-guide.js +222 -0
- package/neural-interface/public/shared/settings/settings-ia.js +2 -2
- package/neural-interface/public/shared/settings/settings-shell.js +5 -0
- package/neural-interface/public/shared/skills/studio/sx-operations-view.js +5 -0
- package/neural-interface/public/shared/skills/studio/sx-plan.js +42 -3
- package/neural-interface/public/shared/skills/studio/sx-publish-view.js +20 -4
- package/neural-interface/public/shared/styles.css +196 -13
- package/neural-interface/public/shared/ui-settings.js +48 -11
- package/neural-interface/server.js +336 -253
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -1
- package/skills/skill-forge/SKILL.md +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# SynaBun v.2.4.6
|
|
2
|
+
|
|
3
|
+
Agents Studio gets a Work view that gathers everything your workers need from you. This release also fixes a Safari web app that kept showing "Connection Failed", Claude Code signing out on Windows, and long freezes when opening large Codex threads.
|
|
4
|
+
|
|
5
|
+
## ✨ New
|
|
6
|
+
|
|
7
|
+
- **See all your work in one place.** Agents Studio opens on a new Work view next to your agents. Tasks are grouped into Needs you, Active, In review and Finished. When a worker asks a question or needs permission, you can answer it right in the list without opening the run.
|
|
8
|
+
|
|
9
|
+
## 🛠 Fixed
|
|
10
|
+
|
|
11
|
+
- **The Safari web app connects again.** After the server had been unavailable, the web app could keep showing "Connection Failed" even though the server was running. SynaBun now loads the page fresh every time. If the first screen still fails, it retries a few times and shows Connecting with a Retry button before asking. If the error appears once more after updating, quit and reopen the web app.
|
|
12
|
+
- **Faster startup with large memory stores.** Loading the memory list no longer blocks the server for several seconds on every page load. The Assistant's knowledge and the greeting also load much faster on large stores.
|
|
13
|
+
- **Claude Code stays signed in on Windows.** SynaBun could overwrite Claude Code's global settings while Claude Code was writing them, removing your sign-in. SynaBun now waits for Claude Code's lock, changes only its own entry and never writes a file it cannot read.
|
|
14
|
+
- **Large Codex threads open without freezing SynaBun.** A saved thread with many generated images could hold the server for over a minute. History now loads in smaller pages, and each image's data is fetched only when you open its card.
|
|
15
|
+
- **WhatsApp picks the account with usage left.** WhatsApp conversations on Claude Code or Codex move to the signed-in subscription with the most usage left when their account runs out, signs out or is removed, and they never take another provider's account. When every subscription has hit its limit, WhatsApp tells you when the first one resets.
|
|
16
|
+
- **Steering a Codex team worker redirects it.** A change you send to a running Codex worker in a team now updates its task instead of ending it. Codex team workers can also use the team board.
|
|
17
|
+
- **Landing a team matches what you confirmed.** Land always uses the team's original branch and only the changes the preview showed. If either branch moved since then, nothing is landed and Studio shows the updated preview.
|
|
18
|
+
- **Skills install correctly on Windows.** Skills with executable files no longer show as changed on Windows. The safety scanner also stops flagging command names inside longer words, such as Portuguese words with accents.
|
|
19
|
+
|
|
20
|
+
## ⚙️ Changed
|
|
21
|
+
|
|
22
|
+
- **Skills Studio checks each install right away.** Right after an install, each runtime shows whether it can find and use the skill, so you no longer need to press Verify first. Health also no longer marks Claude Code and Antigravity installs as unverified just because those runtimes cannot list their skills.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# SynaBun v.2.4.5
|
|
27
|
+
|
|
28
|
+
Browser setup now walks you through connecting Chrome, Edge or Brave. Agents Studio also shows when a team's work has already reached your branch and lets you clean up from the team card.
|
|
29
|
+
|
|
30
|
+
## ✨ New
|
|
31
|
+
|
|
32
|
+
- **Connect your browser in six steps.** Choose your installed browser in Settings → Browser. The guide shows where to enable Developer mode, load the extension and allow user scripts. Browser Bridge 1.6.0 checks the permission in your browser so you can see exactly when setup is complete.
|
|
33
|
+
- **Clean up merged teams.** When you merge a team's changes yourself, Agents Studio shows the branch that already contains them. Choose **Clean up & remove** to remove its worktrees, branches and card. If a worker is active, edits are pending or commits still need merging, Studio shows what needs attention.
|
|
34
|
+
|
|
35
|
+
## 🛠 Fixed
|
|
36
|
+
|
|
37
|
+
- **Finished teams stay finished.** Teams that were merged outside Studio can now be recognized after a restart. Open and finished teams appear in separate lists, and you can remove finished records once their worktrees are gone.
|
|
38
|
+
- **Read long tool results.** Assistants using Claude Code or Antigravity can read the full output when their command-line tool saves a long result to a file. This helps the Assistant finish reading a memory search or worker report in the same turn.
|
|
39
|
+
- **WhatsApp respects Autonomous mode.** The Assistant uses your saved model choice or picks one automatically. For ordinary text requests, it can act without an approval prompt. Pictures, forwarded or quoted messages, and audio still require approval for commands or file changes.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
1
43
|
# SynaBun v.2.4.4
|
|
2
44
|
|
|
3
45
|
You can now redirect an Assistant or worker mid-task and follow background commands as they run. This release also improves Windows updates and brings built-in page readers to the Browser Bridge.
|
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ Everything SynaBun stores is in one folder outside the app: `~/.synabun` on macO
|
|
|
178
178
|
|
|
179
179
|
## Links
|
|
180
180
|
|
|
181
|
-
- [Changelog](./CHANGELOG.md): what is new in 2.4.
|
|
181
|
+
- [Changelog](./CHANGELOG.md): what is new in 2.4.6 and before
|
|
182
182
|
- [Security](./SECURITY.md): security model and how to report a vulnerability
|
|
183
183
|
- [Contributing](./CONTRIBUTING.md): bug reports and feature requests are welcome as [issues](https://github.com/danilokhury/Synabun/issues); pull requests are not accepted
|
|
184
184
|
- [Website](https://synabun.ai), [docs](https://synabun.ai/docs) and [blog](https://synabun.ai/blog)
|
|
@@ -4,9 +4,9 @@ Connect Chrome or Edge to let an agent work in a browser profile where you are a
|
|
|
4
4
|
|
|
5
5
|
## Connect the extension
|
|
6
6
|
|
|
7
|
-
1. On macOS, Windows or Linux, open **Settings → Browser** in SynaBun.
|
|
8
|
-
2.
|
|
9
|
-
3.
|
|
7
|
+
1. On macOS, Windows or Linux, open **Settings → Browser** in SynaBun. Set **Connection mode** to **My browser · use the extension**, choose the **Installed browser** to set up (SynaBun preselects your default when it is a Chromium browser; a Safari or Firefox default is named and left as it is), and choose **Set up in <Browser>**. The first time, SynaBun downloads the extension from synabun.ai and verifies it, which takes a moment and needs an internet connection.
|
|
8
|
+
2. Follow the six steps shown in Settings, one browser action per page: open the browser's extensions page (**Open <Browser> extensions**; if it does not open, **Page didn't open?** copies the address and brings the browser forward on a SynaBun tab that only says where to paste, so pasting over it loses nothing), turn on **Developer mode**, choose **Load unpacked**, choose the unpacked folder (**Copy folder path**, or **Show in Finder** / **Show in Explorer** when you ask for it), open **Details** on SynaBun Browser Bridge, and turn on **Allow user scripts**. The guide keeps your browser and step when you switch windows, and moves on by itself when the extension reports in.
|
|
9
|
+
3. The extension pairs by itself through a small SynaBun tab in that browser; keep it open until Settings says **Ready in <Browser>**. If nothing changes after you load the folder, **Pair in <Browser>** opens that tab again; with more than one open, only the newest one pairs, so they never undo each other. Ready means four checks passed: the extension is connected from the browser you chose, the bridge is live, the browser runs the current copy, and the extension confirmed it may use user scripts (**Check again** asks it). For manual pairing, open **Advanced → Manual pairing** in Settings and enter the displayed port and code in the extension popup.
|
|
10
10
|
|
|
11
11
|
The extension connects to SynaBun on this computer at `127.0.0.1`. Setup requires neither a NativeMessagingHosts installation nor an allowed_origins manifest. If your organization blocks unpacked extensions, contact your browser administrator.
|
|
12
12
|
|
|
@@ -66,7 +66,7 @@ Automations that publish on X or pace their social posts are held to the same pu
|
|
|
66
66
|
| Message | What to do |
|
|
67
67
|
| --- | --- |
|
|
68
68
|
| `EXTENSION_NOT_CONNECTED` | Open the paired browser, check that the extension is enabled, and compare the port in its popup with the port in Settings. If the extension is missing from the browser after a SynaBun update, see [Where the extension comes from](#where-the-extension-comes-from). |
|
|
69
|
-
| `EXTENSION_DOWNLOAD_OFFLINE` | SynaBun could not reach synabun.ai. Check your internet connection, then choose **Try again**. |
|
|
69
|
+
| `EXTENSION_DOWNLOAD_OFFLINE` | SynaBun could not reach synabun.ai. Check your internet connection, then choose **Try again**. A browser that is already connected keeps working and keeps its status; the failed attempt stays under **Advanced → Setup** until you choose **Try again** or **Cancel setup**. |
|
|
70
70
|
| `EXTENSION_DOWNLOAD_UNAVAILABLE` | synabun.ai did not have the extension your SynaBun version needs. Try again later, or update SynaBun. |
|
|
71
71
|
| `EXTENSION_VERIFY_FAILED` | The download was not the file your SynaBun version expects, so SynaBun installed nothing. Choose **Try again**. If it keeps happening, update SynaBun. This check cannot be skipped. |
|
|
72
72
|
| `EXTENSION_FOLDER_UNSAFE` | `browser-extension` in SynaBun's data folder, or the data folder itself, is a link, belongs to another user, or can be written by others, so SynaBun changed nothing there. On Linux, a group that is not your own private group counts as others (see [Where the extension comes from](#where-the-extension-comes-from)); the server's log line says which check failed. Fix its owner and permissions, or remove the `browser-extension` folder, then choose **Connect your browser** again. |
|
|
@@ -149,5 +149,6 @@ What still needs SynaBun's own browser (or Allow User Scripts): `browser_evaluat
|
|
|
149
149
|
|
|
150
150
|
| Version | What changed | What the owner does |
|
|
151
151
|
| --- | --- | --- |
|
|
152
|
+
| 1.6.0 | Reports whether the browser lets it use user scripts (it asks `chrome.userScripts`, never runs a script in a tab) and which Chromium browser it runs in, so Settings can say **Allow user scripts**, **Browser update needed** or **Ready in <Browser>** from evidence. Pairs from a SynaBun setup tab that was already open when the extension was loaded (one tab: the one in view, else the one used last). No new permission. | Reload the extension. Settings shows the next step, if any. Until SynaBun itself is restarted after its update, Settings says **Connected** and cannot check user scripts yet. |
|
|
152
153
|
| 1.5.0 | Fixed page readers: `browser_content` text and Markdown with paging, a paged snapshot with whole paragraphs, the site extractors and YouTube Studio's channel lookup, `browser_wait` `domcontentloaded`. A new tab opens in a minimized window of its own when the browser has no window, and a refusal says what the browser said. Uploaded files get their real type (`video/mp4`, `image/png`, …). No new permission. | Reload the extension. **Allow User Scripts** is not needed for any of this. |
|
|
153
154
|
| 1.4.0 | `browser_evaluate` through user scripts and the `load` and `networkidle` waits. Permissions `userScripts` and `webRequest`. | Reload the extension; turn on **Allow User Scripts** only for page scripts. |
|
package/docs/whatsapp.md
CHANGED
|
@@ -39,7 +39,13 @@ Settings → Messages → WhatsApp → **Safety** decides what a message from th
|
|
|
39
39
|
|---|---|
|
|
40
40
|
| **Read-only** | Answers, research and plans only. Plan mode everywhere, no agents; a plan can be approved on the computer only. |
|
|
41
41
|
| **Ask on my phone** (default) | Before anything that would change files, run a command or start an agent, SynaBun asks on WhatsApp as a yes / no and acts only on your **yes** (once). Any other message approves nothing and the conversation carries on (see [Questions and approvals](#questions-and-approvals)). Where a task runs is asked the same way, and that answer approves exactly one agent: a second one is asked again. Agents started from WhatsApp get no computer use and run in a registered project folder. |
|
|
42
|
-
| **Autonomous** | Acts without asking, like the Assistant on the computer. It **stays on until you turn it off** in Settings → Messages → WhatsApp → **Safety** by choosing Ask on my phone or Read-only, and it survives restarts.
|
|
42
|
+
| **Autonomous** | Acts without asking, like the Assistant on the computer. It **stays on until you turn it off** in Settings → Messages → WhatsApp → **Safety** by choosing Ask on my phone or Read-only, and it survives restarts. Use it only with a locked phone, ideally on a second number (see below). |
|
|
43
|
+
|
|
44
|
+
**What Autonomous does.**
|
|
45
|
+
|
|
46
|
+
- **Where a task runs is never asked**, whatever the Assistant's route mode says (Always ask included): a saved route for the task's class is applied, otherwise the Assistant picks the model or worker itself, and it is told not to ask you to confirm.
|
|
47
|
+
- **Its tools run without a yes / no** (bypass permissions), except in a turn that carries a picture, a forwarded or quoted message or an audio file: that turn asks before anything that changes files or runs a command (and before controlling the Mac), but still not where it runs.
|
|
48
|
+
- **It can read any file your computer account can**, including SynaBun's WhatsApp login. Use it only with a locked phone, ideally on a second number.
|
|
43
49
|
|
|
44
50
|
**Ask and Autonomous need a Claude brain.** Which model runs the conversation is set under Conversation → **Model** (see [The model](#the-model)); the default is the Assistant panel's last-used brain. On a Codex, OpenCode or Antigravity brain the conversation runs **Read-only**, whatever the level says: Codex cannot ask before ordinary commands, and OpenCode keeps its own permissions. Codex runs in its read-only sandbox with the network off. OpenCode runs its plan agent, with `webfetch`, `websearch` and `codesearch` refused by SynaBun's gate plugin; if that plugin does not load, the conversation does not run. Antigravity's policy hook refuses everything the read-only classifier does ([docs/antigravity-sidepanel.md](./antigravity-sidepanel.md#the-brain-libassistant-brainsantigravityjs)). The phone is told once ("This conversation runs read-only because its brain is Codex; switch the WhatsApp brain to Claude for Ask/Autonomous.") and Safety shows the same warning.
|
|
45
51
|
|
|
@@ -74,7 +80,7 @@ With the switch on, the level decides:
|
|
|
74
80
|
|
|
75
81
|
Off as well, whatever the level: while WhatsApp is paused, in a conversation whose brain is Codex, OpenCode or Antigravity (it runs read-only), and when computer use is not set up on this Mac (the *Computer* switch in the Assistant panel runs the one-time setup).
|
|
76
82
|
|
|
77
|
-
**One yes, and when a second question still appears.**
|
|
83
|
+
**One yes, and when a second question still appears.** At Autonomous there is no route card at all (a turn that asks for the Mac asks only that). At Ask, the Assistant is told to route a task that needs the Mac as a *computer* task done here, on its own model. The route card then says in words that the Mac will be controlled, and its yes is both answers: where the task runs and the computer approval for the turn that carries it out. That turn is the one the card was asked in when you answer while the Assistant is still waiting, and otherwise the turn SynaBun starts with your decision. You are asked a second, separate question (*"Want me to control your Mac for this? I'll stop when this task is done. (yes / no)"*) at the first computer action when the card did not say the Mac would be controlled:
|
|
78
84
|
|
|
79
85
|
- the task was routed as something else (a quick task, research, browsing) and turned out to need the Mac;
|
|
80
86
|
- you named another model on the card instead of saying yes ("use Haiku"): the task continues on that model and asks about the Mac there;
|
|
@@ -143,7 +149,7 @@ On WhatsApp the Assistant talks like a person in a chat. There are no numbered c
|
|
|
143
149
|
| Asked | Example | What answers it |
|
|
144
150
|
|---|---|---|
|
|
145
151
|
| A tool | "I need your OK to run this: Bash: `npm test` OK to go ahead? (yes / no)" | `yes` allows once; `no` denies (`no, use staging` denies with that note) |
|
|
146
|
-
| Where a task runs | "For "Fix the login test", want me to hand it to Opus? (yes / no) I could also do it here with Sonnet or hand it to Haiku: just name it." | `yes` approves the first proposal; the name of another model it offered picks that one (`haiku`, `use haiku`, `no, use haiku`); `here` / `do it here` picks the Assistant's own model, `dispatch` / `a worker` / `hand it off` the first worker offered; `no` declines. A model of the Assistant's own provider is done here too ("do it here with Haiku"), never "handed". A choice done here names its effort as the card on the computer does ("do it here with Opus · xhigh", thinking off "· off", no effort no suffix; a worker's name already ends in its effort), so two choices on one model read apart: name one with its effort ("opus high", "Opus · xhigh"); the model alone names both and picks neither |
|
|
152
|
+
| Where a task runs (Ask and Read-only only; never at Autonomous) | "For "Fix the login test", want me to hand it to Opus? (yes / no) I could also do it here with Sonnet or hand it to Haiku: just name it." | `yes` approves the first proposal; the name of another model it offered picks that one (`haiku`, `use haiku`, `no, use haiku`); `here` / `do it here` picks the Assistant's own model, `dispatch` / `a worker` / `hand it off` the first worker offered; `no` declines. A model of the Assistant's own provider is done here too ("do it here with Haiku"), never "handed". A choice done here names its effort as the card on the computer does ("do it here with Opus · xhigh", thinking off "· off", no effort no suffix; a worker's name already ends in its effort), so two choices on one model read apart: name one with its effort ("opus high", "Opus · xhigh"); the model alone names both and picks neither |
|
|
147
153
|
| A plan | "Here's my plan: … Shall I go ahead? (yes / no, or tell me what to change)" | `yes` approves; `no` keeps planning |
|
|
148
154
|
| Where a Mac task runs (Ask, with the switch on) | "For "Tidy the desktop", want me to do it on your Mac, here with Sonnet? I'll control the screen until this task is done. (yes / no) I could also do it here with Haiku: just name it. Then I ask about the Mac separately." | `yes` approves the task here **and** computer use for it (one yes); a named model picks that model only; `no` declines. See [Computer use](#computer-use) |
|
|
149
155
|
| Controlling the Mac, asked on its own | "Want me to control your Mac for this? I'll stop when this task is done. (yes / no)" | `yes` turns computer use on for this task (this turn); `no` keeps it off for the rest of it. Asked only when the route question did not already cover the Mac |
|
|
@@ -187,6 +193,16 @@ The choice is stored in the WhatsApp settings (`brain`: `null` or `{ provider, m
|
|
|
187
193
|
|
|
188
194
|
A change applies **from your next message**, with nothing else to do: the bridge switches the session's brain before that turn (`runtime.updateSession`, what the panel's own model switch calls). Another model or effort of the same provider keeps the provider's conversation; another provider starts its own context inside the same SynaBun conversation, as on the desktop. A stored choice that is switched off or removed later falls back to **Same as the Assistant**, and the tab says why under the selector.
|
|
189
195
|
|
|
196
|
+
**The account** (Claude Code and Codex). Nobody on a phone can switch an account that ran out, so a WhatsApp conversation follows usage on its provider by itself, with no setting and no `/new` (`assistant-runtime.js` `phoneAccountMoves`, checked before every turn; existing conversations included). The conversation starts from the panel's account on the panel's provider (`lib/whatsapp/brain.js`), and from the provider's Default account on another. Then:
|
|
197
|
+
|
|
198
|
+
- **Default** (the panel's untouched brain, a model of another provider): a new conversation, or one just switched to this provider, starts on the signed-in subscription with the most usage left (`lib/account-usage.js` `chooseUsageAccount`, the rule of a route's Auto; Default whenever it has the most left). A conversation already under way stays on its account while it has usage left: a provider's history belongs to its account, so a better-ranked account alone never moves it.
|
|
199
|
+
- **A named account pinned in the panel**: kept while it has usage left. The panel's **Auto · most usage left** picks when a conversation starts (`startingAccount`) and then stays on its pick the same way.
|
|
200
|
+
- Any of them **limited, signed out or removed**: the next message moves the same conversation to the subscription of the same provider with the most usage left, never to another provider, with the chat so far handed to the new provider conversation. From then on the conversation is on Auto.
|
|
201
|
+
- **An API-key account** stays: a key is a configuration and has no quota, and Auto never picks one. With no signed-in subscription at all, the account runs as it is (only keys), or is refused with why (signed out).
|
|
202
|
+
- **Every subscription limited** (on a subscription): the message is not sent to any of them, and not moved to a key either; the phone hears when the first one is back, in local time ("The first one is back at 18:40"), or that the reset time is not known yet. The conversation is kept, and the next message after a reset runs.
|
|
203
|
+
|
|
204
|
+
A limit a turn hits midway (the provider's `rate_limit_event`) ends that turn with the provider's own words; it counts as the conversation's limit until its reset, so the next message moves. A switch to another provider never carries the old provider's account id. Other providers (OpenCode, Antigravity) have no SynaBun accounts and are unchanged. Workers the conversation dispatches get their account from Model routes exactly as on the desktop (a route's Auto, or the workers' default with its fallback when it ran out: [Assistant → Model routes](./assistant.md)).
|
|
205
|
+
|
|
190
206
|
## Conversation settings
|
|
191
207
|
|
|
192
208
|
| Setting | Values (default first) |
|
|
@@ -34,27 +34,30 @@ import { dirname, join } from 'node:path';
|
|
|
34
34
|
import { fileURLToPath } from 'node:url';
|
|
35
35
|
import { homedir } from 'node:os';
|
|
36
36
|
import { getHookFeatures, detectProject, cleanupStaleLoops, cleanupStalePendingRemember, cleanupStaleFiles, appendCapped, DATA_DIR, isTemporaryChat, niUrl, greetingSurface, greetingOff, GREETING_NOTE_DIR } from './shared.mjs';
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
37
|
+
import { updateClaudeGlobalConfig } from '../../lib/claude-global-config.js';
|
|
38
|
+
|
|
39
|
+
// CC updates (especially when installer runs as root) can strip
|
|
40
|
+
// mcpServers.SynaBun, leaving the side panel/CLI with MCP disabled until the
|
|
41
|
+
// user re-registers via SynaBun setup UI. A missing entry is re-added on every
|
|
42
|
+
// session start. ~/.claude.json is Claude Code's own file: it holds the
|
|
43
|
+
// sign-in's record and the flag that tells Claude Code on Windows its login is
|
|
44
|
+
// in the Credential Manager, so it is only ever changed through
|
|
45
|
+
// lib/claude-global-config.js (Claude Code's lock, never a file that does not
|
|
46
|
+
// read as JSON, an atomic replace). An entry that is there stays as it is (the
|
|
47
|
+
// server's registration and the setup repair own its shape), and a file that
|
|
48
|
+
// is not there is not made here.
|
|
42
49
|
function healSynaBunMcp() {
|
|
43
50
|
try {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
const isObject = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
52
|
+
const result = updateClaudeGlobalConfig(join(homedir(), '.claude.json'), (data) => {
|
|
53
|
+
if (isObject(data.mcpServers) && data.mcpServers.SynaBun) return null;
|
|
54
|
+
return { ...data, mcpServers: { ...(isObject(data.mcpServers) ? data.mcpServers : {}), SynaBun: { type: 'http', url: `${niUrl()}/mcp` } } };
|
|
55
|
+
}, { lockWaitMs: 1000 });
|
|
56
|
+
const line = result.changed ? 'MCP-HEAL re-registered SynaBun in ~/.claude.json'
|
|
57
|
+
: !result.ok && result.reason !== 'missing' ? `MCP-HEAL left ~/.claude.json unchanged (${result.reason})` : '';
|
|
58
|
+
if (line) {
|
|
59
|
+
try { appendCapped(join(DATA_DIR, 'compact-debug.log'), `[${new Date().toISOString()}] ${line}\n`); } catch { /* ok */ }
|
|
48
60
|
}
|
|
49
|
-
if (!data.mcpServers || typeof data.mcpServers !== 'object') data.mcpServers = {};
|
|
50
|
-
const existing = data.mcpServers.SynaBun;
|
|
51
|
-
const wanted = { type: 'http', url: 'http://localhost:3344/mcp' };
|
|
52
|
-
if (existing && existing.type === wanted.type && existing.url === wanted.url) return;
|
|
53
|
-
data.mcpServers.SynaBun = wanted;
|
|
54
|
-
writeFileSync(claudeJsonPath, JSON.stringify(data, null, 2));
|
|
55
|
-
try {
|
|
56
|
-
appendCapped(join(DATA_DIR, 'compact-debug.log'), `[${new Date().toISOString()}] MCP-HEAL re-registered SynaBun in ~/.claude.json\n`);
|
|
57
|
-
} catch { /* ok */ }
|
|
58
61
|
} catch { /* non-critical */ }
|
|
59
62
|
}
|
|
60
63
|
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════
|
|
2
|
+
// SynaBun — the one way SynaBun changes Claude Code's global config (~/.claude.json)
|
|
3
|
+
// ═══════════════════════════════════════════
|
|
4
|
+
//
|
|
5
|
+
// ~/.claude.json is Claude Code's file, not SynaBun's. Besides the MCP servers SynaBun registers there, it holds the
|
|
6
|
+
// sign-in's account record (`oauthAccount`), onboarding state, per-project history and the feature flags Claude Code
|
|
7
|
+
// caches (`cachedGrowthBookFeatures`). One of those flags decides where Claude Code on Windows keeps the login:
|
|
8
|
+
// Claude Code 2.1.288 reads its credentials from the Windows Credential Manager only while
|
|
9
|
+
// `cachedGrowthBookFeatures.tengu_windows_credman` is true in this file (a file it cannot parse counts as false), and
|
|
10
|
+
// once the Credential Manager holds the login it deletes the plaintext `.credentials.json`. A ~/.claude.json that
|
|
11
|
+
// loses that flag, or is half written when a Claude Code process starts, leaves that process signed out.
|
|
12
|
+
//
|
|
13
|
+
// Claude Code protects its own writes: it takes `<file>.lock` (proper-lockfile: a folder whose time it refreshes
|
|
14
|
+
// while it holds it, stale after 10 s), writes a temporary file and renames it into place, and refuses to write a
|
|
15
|
+
// copy that lost the sign-in. When the rename fails (on Windows: the file open elsewhere, an antivirus scan) it falls
|
|
16
|
+
// back to writing the file in place, so a reader can catch it empty or half written. SynaBun used to read the file,
|
|
17
|
+
// take anything it could not parse as `{}`, and write the whole file back without a lock or a rename: one unlucky
|
|
18
|
+
// moment and the sign-in record and the Credential Manager flag were gone.
|
|
19
|
+
//
|
|
20
|
+
// updateClaudeGlobalConfig() is what every SynaBun writer goes through instead:
|
|
21
|
+
// - Claude Code's own lock, waited for (never taken from a holder that keeps it fresh); a stale one is removed as
|
|
22
|
+
// proper-lockfile would;
|
|
23
|
+
// - a file that does not read as a JSON object (empty, half written, not JSON, an array, unreadable) is never
|
|
24
|
+
// written: the change is refused and the file stays exactly as it is;
|
|
25
|
+
// - the change is made on the content read under the lock, and only the keys the change touches differ;
|
|
26
|
+
// - a temporary file beside the real one (a linked config is written through to the file behind the link, the
|
|
27
|
+
// link stays), the file's own mode kept (owner-only for a new one), synced, then renamed into place; if the file
|
|
28
|
+
// changed meanwhile (a writer that takes no lock), the change is made again on what is there now; a rename that
|
|
29
|
+
// keeps failing is a refusal, never an in-place write.
|
|
30
|
+
// Synchronous: the session-start hook, the setup repair and the server's routes all run it in line.
|
|
31
|
+
|
|
32
|
+
import * as nodeFs from 'node:fs';
|
|
33
|
+
import { randomBytes } from 'node:crypto';
|
|
34
|
+
import { basename, dirname, join } from 'node:path';
|
|
35
|
+
|
|
36
|
+
/** proper-lockfile's default `stale`, which Claude Code's lock of ~/.claude.json uses. */
|
|
37
|
+
export const CLAUDE_CONFIG_LOCK_STALE_MS = 10_000;
|
|
38
|
+
/** How long a writer waits for Claude Code to release its lock before it gives up (the change is refused). */
|
|
39
|
+
export const CLAUDE_CONFIG_LOCK_WAIT_MS = 1_500;
|
|
40
|
+
|
|
41
|
+
// Rename failures worth another try: Windows reports a file open elsewhere (or being scanned) this way.
|
|
42
|
+
const RENAME_RETRY_CODES = new Set(['EPERM', 'EACCES', 'EBUSY']);
|
|
43
|
+
const RENAME_ATTEMPTS = 6;
|
|
44
|
+
|
|
45
|
+
function pause(ms) {
|
|
46
|
+
if (ms > 0) Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const isObject = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
50
|
+
const codeOf = (error) => (error && typeof error.code === 'string' ? error.code : '');
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Read the text of a ~/.claude.json: `{ ok: true, data }` for a JSON object (a UTF-8 byte order mark is allowed),
|
|
54
|
+
* else `{ ok: false, reason }` with reason 'empty' | 'unparseable' | 'not-an-object'.
|
|
55
|
+
*/
|
|
56
|
+
export function parseClaudeGlobalConfig(text) {
|
|
57
|
+
const body = String(text ?? '').replace(/^/, '');
|
|
58
|
+
if (!body.trim()) return { ok: false, reason: 'empty' };
|
|
59
|
+
let value;
|
|
60
|
+
try { value = JSON.parse(body); } catch { return { ok: false, reason: 'unparseable' }; }
|
|
61
|
+
if (!isObject(value)) return { ok: false, reason: 'not-an-object' };
|
|
62
|
+
return { ok: true, data: value };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** `{ state: 'ok', data }`, `{ state: 'missing' }` or `{ state: 'unreadable', reason }` for the file at `path`. */
|
|
66
|
+
export function readClaudeGlobalConfig(path, { fs = nodeFs } = {}) {
|
|
67
|
+
let text;
|
|
68
|
+
try { text = fs.readFileSync(path, 'utf8'); } catch (error) {
|
|
69
|
+
if (codeOf(error) === 'ENOENT') return { state: 'missing' };
|
|
70
|
+
return { state: 'unreadable', reason: codeOf(error) || 'read-failed' };
|
|
71
|
+
}
|
|
72
|
+
const parsed = parseClaudeGlobalConfig(text);
|
|
73
|
+
return parsed.ok ? { state: 'ok', data: parsed.data } : { state: 'unreadable', reason: parsed.reason };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function statOf(fs, path) {
|
|
77
|
+
try {
|
|
78
|
+
const stat = fs.statSync(path, { bigint: true });
|
|
79
|
+
return { ino: stat.ino, size: stat.size, mtimeNs: stat.mtimeNs, mode: Number(stat.mode) };
|
|
80
|
+
} catch (error) {
|
|
81
|
+
if (codeOf(error) === 'ENOENT') return null;
|
|
82
|
+
throw error;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const sameStat = (a, b) => (a === null || b === null ? a === b : a.ino === b.ino && a.size === b.size && a.mtimeNs === b.mtimeNs);
|
|
86
|
+
|
|
87
|
+
/** Take `lockPath` the way proper-lockfile does (mkdir). → true when taken, false when somebody keeps holding it. */
|
|
88
|
+
function takeLock(fs, lockPath, { waitMs, staleMs, sleep, clock }) {
|
|
89
|
+
const deadline = clock() + waitMs;
|
|
90
|
+
for (let attempt = 0; attempt < 1000; attempt += 1) {
|
|
91
|
+
try { fs.mkdirSync(lockPath); return true; } catch (error) {
|
|
92
|
+
if (codeOf(error) !== 'EEXIST') return false;
|
|
93
|
+
}
|
|
94
|
+
let age = 0;
|
|
95
|
+
try { age = Date.now() - fs.statSync(lockPath).mtimeMs; } catch (error) {
|
|
96
|
+
if (codeOf(error) === 'ENOENT') continue; // released meanwhile
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
// A holder refreshes the lock's time; one this old was left by a process that is gone. Only an empty folder
|
|
100
|
+
// is removed (rmdir), never anything else under that name.
|
|
101
|
+
if (age > staleMs) {
|
|
102
|
+
try { fs.rmdirSync(lockPath); continue; } catch (error) {
|
|
103
|
+
if (codeOf(error) === 'ENOENT') continue;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (clock() >= deadline) return false;
|
|
107
|
+
sleep(Math.min(100, 20 * (attempt + 1)));
|
|
108
|
+
}
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function writeTemp(fs, temp, text, mode) {
|
|
113
|
+
const fd = fs.openSync(temp, 'wx', mode);
|
|
114
|
+
try {
|
|
115
|
+
fs.writeSync(fd, text, null, 'utf8');
|
|
116
|
+
try { fs.fchmodSync(fd, mode); } catch { /* a file system without modes */ }
|
|
117
|
+
try { fs.fsyncSync(fd); } catch { /* a file system without fsync */ }
|
|
118
|
+
} finally {
|
|
119
|
+
fs.closeSync(fd);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function renameIntoPlace(fs, temp, target, sleep) {
|
|
124
|
+
for (let attempt = 1; ; attempt += 1) {
|
|
125
|
+
try { fs.renameSync(temp, target); return true; } catch (error) {
|
|
126
|
+
if (!RENAME_RETRY_CODES.has(codeOf(error)) || attempt >= RENAME_ATTEMPTS) return false;
|
|
127
|
+
sleep(40 * attempt);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Change ~/.claude.json (or the global config at `path`) safely. `mutate(data)` gets a copy of the config read
|
|
134
|
+
* under Claude Code's lock and returns the config to write, or null / undefined / false for "nothing to change".
|
|
135
|
+
* `create`: a missing file may be made (owner-only); without it a missing file is left missing.
|
|
136
|
+
* Never throws for the file's state; never writes a file it could not read as a JSON object.
|
|
137
|
+
* → `{ ok: true, changed }` or `{ ok: false, changed: false, reason }`; reason is 'missing' | 'empty' |
|
|
138
|
+
* 'unparseable' | 'not-an-object' | 'locked' | 'changed' | 'busy' | 'dangling-link' | a file-system error code.
|
|
139
|
+
*/
|
|
140
|
+
export function updateClaudeGlobalConfig(path, mutate, {
|
|
141
|
+
create = false,
|
|
142
|
+
fs = nodeFs,
|
|
143
|
+
lockWaitMs = CLAUDE_CONFIG_LOCK_WAIT_MS,
|
|
144
|
+
staleMs = CLAUDE_CONFIG_LOCK_STALE_MS,
|
|
145
|
+
attempts = 3,
|
|
146
|
+
sleep = pause,
|
|
147
|
+
clock = Date.now,
|
|
148
|
+
} = {}) {
|
|
149
|
+
if (typeof path !== 'string' || !path) throw new TypeError('updateClaudeGlobalConfig needs the path of the config');
|
|
150
|
+
if (typeof mutate !== 'function') throw new TypeError('updateClaudeGlobalConfig needs a change function');
|
|
151
|
+
const refused = (reason) => ({ ok: false, changed: false, reason });
|
|
152
|
+
|
|
153
|
+
// A linked config (dotfiles, a synced folder) is written through to the file behind the link; the link stays.
|
|
154
|
+
let target = path;
|
|
155
|
+
try {
|
|
156
|
+
if (fs.lstatSync(path).isSymbolicLink()) {
|
|
157
|
+
try { target = fs.realpathSync(path); } catch { return refused('dangling-link'); }
|
|
158
|
+
}
|
|
159
|
+
} catch (error) {
|
|
160
|
+
if (codeOf(error) !== 'ENOENT') return refused(codeOf(error) || 'stat-failed');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// The lock Claude Code takes for the path it knows the file by.
|
|
164
|
+
const lockPath = `${path}.lock`;
|
|
165
|
+
if (!takeLock(fs, lockPath, { waitMs: lockWaitMs, staleMs, sleep, clock })) return refused('locked');
|
|
166
|
+
try {
|
|
167
|
+
for (let attempt = 1; attempt <= attempts; attempt += 1) {
|
|
168
|
+
let before;
|
|
169
|
+
try { before = statOf(fs, target); } catch (error) { return refused(codeOf(error) || 'stat-failed'); }
|
|
170
|
+
const read = readClaudeGlobalConfig(target, { fs });
|
|
171
|
+
if (read.state === 'unreadable') return refused(read.reason);
|
|
172
|
+
if (read.state === 'missing' && !create) return refused('missing');
|
|
173
|
+
const base = read.state === 'ok' ? read.data : {};
|
|
174
|
+
const next = mutate(structuredClone(base));
|
|
175
|
+
if (next === null || next === undefined || next === false) return { ok: true, changed: false };
|
|
176
|
+
if (!isObject(next)) throw new TypeError('A change to ~/.claude.json must give back an object');
|
|
177
|
+
const text = JSON.stringify(next, null, 2);
|
|
178
|
+
if (read.state === 'ok' && JSON.stringify(base, null, 2) === text) return { ok: true, changed: false };
|
|
179
|
+
|
|
180
|
+
const mode = before ? (before.mode & 0o777) || 0o600 : 0o600;
|
|
181
|
+
const temp = join(dirname(target), `${basename(target)}.synabun-${process.pid}-${randomBytes(4).toString('hex')}.tmp`);
|
|
182
|
+
try { writeTemp(fs, temp, text, mode); } catch (error) {
|
|
183
|
+
try { fs.unlinkSync(temp); } catch { /* not made */ }
|
|
184
|
+
return refused(codeOf(error) || 'write-failed');
|
|
185
|
+
}
|
|
186
|
+
// A writer that takes no lock (an older Claude Code, its in-place fallback) wrote meanwhile: start again from
|
|
187
|
+
// what is there now, so nothing it wrote is lost.
|
|
188
|
+
let now;
|
|
189
|
+
try { now = statOf(fs, target); } catch { now = undefined; }
|
|
190
|
+
if (now === undefined || !sameStat(before, now)) {
|
|
191
|
+
try { fs.unlinkSync(temp); } catch { /* gone */ }
|
|
192
|
+
if (attempt < attempts) { sleep(30 * attempt); continue; }
|
|
193
|
+
return refused('changed');
|
|
194
|
+
}
|
|
195
|
+
if (!renameIntoPlace(fs, temp, target, sleep)) {
|
|
196
|
+
try { fs.unlinkSync(temp); } catch { /* gone */ }
|
|
197
|
+
return refused('busy');
|
|
198
|
+
}
|
|
199
|
+
return { ok: true, changed: true };
|
|
200
|
+
}
|
|
201
|
+
return refused('changed');
|
|
202
|
+
} finally {
|
|
203
|
+
try { fs.rmdirSync(lockPath); } catch { /* already gone */ }
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** One sentence for a refusal, for a route's answer or a log line. */
|
|
208
|
+
export function claudeGlobalConfigRefusal(reason) {
|
|
209
|
+
if (reason === 'missing') return 'Claude Code has no ~/.claude.json yet. Start Claude Code once, then try again.';
|
|
210
|
+
if (reason === 'locked' || reason === 'busy' || reason === 'changed') {
|
|
211
|
+
return 'Claude Code was writing ~/.claude.json, so SynaBun left it unchanged. Try again in a moment.';
|
|
212
|
+
}
|
|
213
|
+
return `~/.claude.json could not be read as Claude Code's configuration (${reason}), so SynaBun left it unchanged. Start Claude Code once so it can repair the file, then try again.`;
|
|
214
|
+
}
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
upsertCodexMcpContent,
|
|
32
32
|
} from '../mcp-server/dist/services/codex-config-heal.js';
|
|
33
33
|
import { mcpStdioCommand } from './packaged-runtime.js';
|
|
34
|
+
import { updateClaudeGlobalConfig } from './claude-global-config.js';
|
|
34
35
|
|
|
35
36
|
function readJson(path) {
|
|
36
37
|
try { return JSON.parse(readFileSync(path, 'utf-8')); } catch { return null; }
|
|
@@ -93,9 +94,22 @@ export function auditAndRepairClientConfigs({
|
|
|
93
94
|
SynaBun: { command: definition.command, args: definition.args, env: definition.env },
|
|
94
95
|
},
|
|
95
96
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
let changed = jsonChanged(claude, next);
|
|
98
|
+
let skipped = null;
|
|
99
|
+
if (apply && changed) {
|
|
100
|
+
// ~/.claude.json is Claude Code's own file (the sign-in's record, the flag that says where its login lives):
|
|
101
|
+
// written only through its lock, on what is there at that moment, never over a file that does not read as
|
|
102
|
+
// JSON (lib/claude-global-config.js).
|
|
103
|
+
const SynaBun = { command: definition.command, args: definition.args, env: definition.env };
|
|
104
|
+
const written = updateClaudeGlobalConfig(claudePath, (current) => {
|
|
105
|
+
const entry = current.mcpServers?.SynaBun;
|
|
106
|
+
if (!entry || !(entry.command || entry.args || entry.env)) return null;
|
|
107
|
+
return { ...current, mcpServers: { ...current.mcpServers, SynaBun } };
|
|
108
|
+
});
|
|
109
|
+
if (!written.ok) { changed = false; skipped = written.reason; }
|
|
110
|
+
else changed = written.changed;
|
|
111
|
+
}
|
|
112
|
+
results.claude = { exists: true, connected: true, changed, path: claudePath, transport: 'stdio', ...(skipped ? { skipped } : {}) };
|
|
99
113
|
} else {
|
|
100
114
|
results.claude = { exists: true, connected: true, changed: false, path: claudePath, transport: before.type || 'http' };
|
|
101
115
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAsCpE,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EACzD,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAuE9E,iHAAiH;AACjH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAuBD,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,WAAiD;;;;;;EAiD1G;AA+BD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,QAK9C;AAKD,MAAM,WAAW,sBAAsB;IACrC,iGAAiG;IACjG,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC;IACnC,yEAAyE;IACzE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAeD,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,aASnE;AAOD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,IAAI,CAE1E;AAYD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,E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|
319
319
|
// ── Main stdio server instance ──
|
|
320
320
|
const mainToolRuntime = new ToolRuntime(readInitialTools());
|
|
321
321
|
const server = new McpServer({ name: 'claude-memory', version: SERVER_VERSION }, { instructions: buildServerInstructions(mainToolRuntime) });
|
|
322
|
-
const
|
|
322
|
+
const mainToolRefs = registerTools(server, mainToolRuntime);
|
|
323
|
+
const { rememberTool, recallTool, reflectTool, memoriesTool } = mainToolRefs;
|
|
324
|
+
// The stdio server is a server of its own runtime like every HTTP session's: bindTeamContext (main) and
|
|
325
|
+
// setServerCapabilities find its runtime here. Without it a stdio child (a Codex, OpenCode or Antigravity worker)
|
|
326
|
+
// never asked for its team context and never had the `team` tool (2026-11-28).
|
|
327
|
+
serverToolRefs.set(server, mainToolRefs);
|
|
323
328
|
// ── Wire tool usage tracking into low-level server ──
|
|
324
329
|
// Intercept tool call notifications to count usage per tool name.
|
|
325
330
|
const _origToolCallHandler = server.server._requestHandlers?.get('tools/call');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEtJ,OAAO,EAAkB,mBAAmB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/G,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flowId?: string;
|
|
580
|
+
limit?: number;
|
|
580
581
|
}): Promise<NiResponse>;
|
|
581
582
|
/** Usage of one task ("current", an id) or the session ("all"); `runId` with "all" adds that run's totals over its tasks. */
|
|
582
583
|
export declare function assistantUsage(assistantSessionId: string, task?: string, runId?: string): Promise<NiResponse>;
|