@hasna/switcher 0.2.20 → 0.2.21
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/README.md +1 -1
- package/dist/claude-desktop.js +95 -95
- package/dist/cli/index.js +130 -54
- package/dist/harness-types.d.ts +6 -0
- package/dist/index.js +96 -96
- package/dist/inference-gateway.d.ts +6 -0
- package/dist/mcp/index.js +100 -100
- package/dist/sdk.js +96 -96
- package/dist/serve/index.js +2 -2
- package/docs/GATEWAY-SERVICE.md +59 -10
- package/openapi.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -621,7 +621,7 @@ Cline uses its native ACP backend with per-launch configuration, durable session
|
|
|
621
621
|
|
|
622
622
|
## Background sessions and the persistent gateway
|
|
623
623
|
|
|
624
|
-
Launches register with one persistent gateway per user on a stable `127.0.0.1` port. A launch's token keeps working for as long as any process it started still runs, including Claude Code's detached background host and its background sessions after `switcher launch` exits. When nothing from the launch remains, the launch ends. For 30 days after that, a request with its token from a process of this user running under a current launch, such as a background session that Claude Code's background host started again, revives it; a copied token used from anywhere else stays refused. For the default `~/.hasna/switcher` home the gateway runs under launchd (macOS) or systemd `--user` (Linux), starts at login, and is installed automatically by the first launch of the installed `switcher`. Other homes and other copies of Switcher use a detached gateway that exits when idle.
|
|
624
|
+
Launches register with one persistent gateway per user on a stable `127.0.0.1` port. A launch's token keeps working for as long as any process it started still runs, including Claude Code's detached background host and its background sessions after `switcher launch` exits. When nothing from the launch remains, the launch ends. For 30 days after that, a request with its token from a process of this user running under a current launch, such as a background session that Claude Code's background host started again, revives it; for a launch without a durable Claude route, a copied token used from anywhere else stays refused, and holding a launch that only its durable route revived does not count as running under a current launch. A Claude launch also writes its route into the session's `--settings` file (mode 0600 in the profile's private session folder), so a session the background host restores after a station restart, or opens from another folder, keeps its route without a current launch. So for 30 days after a Claude launch was last used, the gateway serves its token to any running process of this user that presents it, a shell or script included; another account's process, or a connection the gateway cannot trace, is refused when it would revive an ended launch. While any launch is current, the gateway serves its token on any loopback connection that presents it, without a process check. For the default `~/.hasna/switcher` home the gateway runs under launchd (macOS) or systemd `--user` (Linux), starts at login, and is installed automatically by the first launch of the installed `switcher`. Other homes and other copies of Switcher use a detached gateway that exits when idle.
|
|
625
625
|
|
|
626
626
|
```sh
|
|
627
627
|
switcher gateway status # running, pid, port, launches and login unit
|