@bakapiano/ccsm 0.18.4 → 0.18.5

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/lib/tunnel.js +11 -1
  2. package/package.json +1 -1
package/lib/tunnel.js CHANGED
@@ -47,7 +47,17 @@ const PROVIDERS = {
47
47
  'Microsoft.devtunnel_Microsoft.Winget.Source_8wekyb3d8bbwe', 'devtunnel.exe'),
48
48
  ],
49
49
  args: (port) => ['host', '-p', String(port), '--allow-anonymous'],
50
- urlRegex: /https:\/\/[a-z0-9-]+\.[a-z0-9-]+\.devtunnels\.ms/i,
50
+ // devtunnel sometimes prints two URL forms for the same tunnel:
51
+ // https://<id>.<region>.devtunnels.ms:<port> ← port as suffix
52
+ // https://<id>-<port>.<region>.devtunnels.ms ← port baked into
53
+ // the subdomain
54
+ // The plain `<id>.<region>` form (without a `:<port>` suffix) is
55
+ // unreachable — browsers default to 443 and the tunnel serves
56
+ // nothing there, so we get a 404. We always want the subdomain-
57
+ // port form. Force the regex to require `-<digits>` in the
58
+ // subdomain so the bare form (which our old greedy match would
59
+ // capture first) gets skipped.
60
+ urlRegex: /https:\/\/[a-z0-9]+-\d+\.[a-z0-9-]+\.devtunnels\.ms/i,
51
61
  needsLogin: true,
52
62
  },
53
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakapiano/ccsm",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "Claude Code Session Manager — Windows web UI to manage many concurrent claude sessions: live list, snapshot/restore, focus existing window, new session in an isolated workspace with repo clones",
5
5
  "license": "MIT",
6
6
  "main": "server.js",