@hasna/switcher 0.2.17 → 0.2.19

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/Dockerfile CHANGED
@@ -26,7 +26,12 @@ RUN apk upgrade --no-cache \
26
26
  ENV NODE_EXTRA_CA_CERTS=/app/rds-global-bundle.pem \
27
27
  PGSSLROOTCERT=/app/rds-global-bundle.pem
28
28
  COPY package.json bun.lock ./
29
- RUN bun install --frozen-lockfile --production --ignore-scripts
29
+ # The server image runs switcher-serve and switcher-mint-key only. The MCP SDK (and the express and
30
+ # body-parser it brings) is an optional dependency used by the switcher-mcp bin, so it stays out.
31
+ RUN bun install --frozen-lockfile --production --omit=optional --ignore-scripts \
32
+ && test ! -e node_modules/@modelcontextprotocol/sdk \
33
+ && test ! -e node_modules/express \
34
+ && test ! -e node_modules/body-parser
30
35
  COPY --from=builder /app/dist ./dist
31
36
  COPY --from=builder /app/openapi.json ./openapi.json
32
37
  COPY --from=builder /app/hasna.contract.json ./hasna.contract.json
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 token is revoked. 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; 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.
625
625
 
626
626
  ```sh
627
627
  switcher gateway status # running, pid, port, launches and login unit