@bulletproof-sh/ctrl-daemon 0.0.11 → 0.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4383,8 +4383,8 @@ function startSpinner(text) {
4383
4383
  function buildWebUrl(port, host) {
4384
4384
  if (port === DEFAULT_WS_PORT)
4385
4385
  return WEB_APP_BASE_URL;
4386
- const wsUrl = `ws://${host}:${port}/ws`;
4387
- return `${WEB_APP_BASE_URL}?daemon=${encodeURIComponent(wsUrl)}`;
4386
+ const clientHost = host === "0.0.0.0" ? "localhost" : host;
4387
+ return `${WEB_APP_BASE_URL}?daemon=ws://${clientHost}:${port}/ws`;
4388
4388
  }
4389
4389
  function printReady(port, host, version2, updateMsg) {
4390
4390
  const versionStr = version2 ? ` ${DM}v${version2}${RS}` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bulletproof-sh/ctrl-daemon",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "WebSocket daemon for ctrl — watches Claude Code sessions and broadcasts agent state",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",