@chatpanel/bridge 0.11.21 → 0.11.22
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 +1 -1
- package/src/env.js +7 -2
- package/src/server.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/bridge",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.22",
|
|
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 Antigravity CLI (formerly Gemini CLI, which remains available for business/enterprise) — to the ChatPanel Chrome extension over a localhost SSE endpoint. Bring your own agent.",
|
|
6
6
|
"keywords": [
|
package/src/env.js
CHANGED
|
@@ -53,9 +53,14 @@ export function isCompiledBinary() {
|
|
|
53
53
|
export function selfMcpStdio(url) {
|
|
54
54
|
const args = ['--mcp-stdio', url];
|
|
55
55
|
if (isCompiledBinary()) return { command: process.execPath, args };
|
|
56
|
-
// Node/Bun: re-run this same entry script
|
|
56
|
+
// Node/Bun: re-run this same entry script under the same runtime. Embedded in the
|
|
57
|
+
// gateway (CHATPANEL_BRIDGE_EMBEDDED=1) that script is the GATEWAY's bin, which only
|
|
58
|
+
// hands argv to us behind its `--bridge` flag — without it the gateway CLI answers
|
|
59
|
+
// "unknown option: --mcp-stdio", the proxy exits 2, and every CLI agent sees the
|
|
60
|
+
// per-turn ChatPanel tools as "Connection closed".
|
|
57
61
|
const entry = process.argv[1] || path.join(process.cwd(), 'src', 'server.js');
|
|
58
|
-
|
|
62
|
+
const via = process.env.CHATPANEL_BRIDGE_EMBEDDED === '1' ? ['--bridge'] : [];
|
|
63
|
+
return { command: process.execPath, args: [entry, ...via, ...args] };
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
// Ask the user's login shell to locate a command — no hardcoded locations, works
|
package/src/server.js
CHANGED
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
// Hardcoded (not read from package.json) so it survives Bun's single-file
|
|
79
79
|
// --compile, where package.json isn't on a readable FS. CI fails the publish if
|
|
80
80
|
// this drifts from package.json, so the two can't silently diverge.
|
|
81
|
-
const VERSION = '0.11.
|
|
81
|
+
const VERSION = '0.11.22';
|
|
82
82
|
const HOST = process.env.CHATPANEL_BRIDGE_HOST || '127.0.0.1';
|
|
83
83
|
const PORT = Number(process.env.CHATPANEL_BRIDGE_PORT) || 4319;
|
|
84
84
|
|