@chatpanel/bridge 0.2.15 → 0.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/bridge",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "description": "Local bridge that exposes the AI coding agents installed on your machine — Claude Code (CLI), Codex (CLI), and Gemini CLI — to the ChatPanel Chrome extension over a localhost SSE endpoint. Bring your own agent.",
6
6
  "keywords": [
@@ -15,7 +15,9 @@ targets=(
15
15
  for t in "${targets[@]}"; do
16
16
  target="${t%%:*}"; out="${t##*:}"
17
17
  echo "→ building dist/$out ($target)"
18
- bun build src/server.js --compile --target="$target" --outfile "dist/$out"
18
+ # --external: the optional Claude Agent SDK fallback is off in compiled
19
+ # binaries, so don't bundle it (or its native `sharp`).
20
+ bun build src/server.js --compile --target="$target" --external @anthropic-ai/claude-agent-sdk --outfile "dist/$out"
19
21
  done
20
22
  echo "✓ binaries in dist/"
21
23
  ls -la dist
package/src/server.js CHANGED
@@ -23,7 +23,10 @@ import { installService, uninstallService, serviceStatus, restartService } from
23
23
  import { enrichPath, findAgentBin } from './env.js';
24
24
  import { checkForUpdate, selfUpdate } from './update.js';
25
25
 
26
- const VERSION = '0.2.13';
26
+ // Hardcoded (not read from package.json) so it survives Bun's single-file
27
+ // --compile, where package.json isn't on a readable FS. CI fails the publish if
28
+ // this drifts from package.json, so the two can't silently diverge.
29
+ const VERSION = '0.2.16';
27
30
  const HOST = process.env.CHATPANEL_BRIDGE_HOST || '127.0.0.1';
28
31
  const PORT = Number(process.env.CHATPANEL_BRIDGE_PORT) || 4319;
29
32