@chatpanel/gateway 0.6.96 → 0.6.97

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.
@@ -14,6 +14,7 @@
14
14
  // chatpanel-gateway --status is auto-start registered?
15
15
  // chatpanel-gateway --version print version
16
16
  // chatpanel-gateway --bridge run the embedded bridge (the supervisor's child; not for hands)
17
+ // chatpanel-gateway --mcp-stdio <url> the embedded bridge's per-turn tool proxy (spawned by CLI agents; not for hands)
17
18
  //
18
19
  // Config comes from gateway.config.json / env (see src/config.js).
19
20
  export {}; // mark as an ES module (all imports below are dynamic)
@@ -30,6 +31,16 @@ try {
30
31
  process.env.CHATPANEL_BRIDGE_EMBEDDED = '1';
31
32
  process.argv.splice(2, 1);
32
33
  await import('@chatpanel/bridge/src/server.js');
34
+ } else if (arg === '--mcp-stdio') {
35
+ // THE EMBEDDED BRIDGE'S PER-TURN TOOL SERVER. The bridge hands every CLI agent (Claude
36
+ // Code, Codex, a custom CLI) its per-turn ChatPanel tools — `team`, page, notes — as a
37
+ // stdio MCP server whose command is "re-run me with --mcp-stdio <url>"; embedded, "me"
38
+ // is this bin. Refusing the flag made the proxy exit 2 and Claude Code report the
39
+ // ChatPanel tools as "Connection closed" — a saved team ran as one agent doing a web
40
+ // search. Bridge 0.11.22+ sends `--bridge --mcp-stdio`; this keeps the older embedded
41
+ // copy working too. Not the history `mcp` server above — that one proxies to the gateway.
42
+ process.env.CHATPANEL_BRIDGE_EMBEDDED = '1';
43
+ await import('@chatpanel/bridge/src/server.js');
33
44
  } else if (arg === 'mcp') {
34
45
  // Its own path: proxies to the running gateway over HTTP and must NOT import
35
46
  // server.js (which would open a second handle on the warm SQLite store).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/gateway",
3
- "version": "0.6.96",
3
+ "version": "0.6.97",
4
4
  "description": "Local privacy gateway — redacts PII out of OpenAI/Anthropic API traffic before it reaches a model, then restores it in the reply. Point opencode, codex, aider, Claude Code, etc. at it.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/server.js CHANGED
@@ -63,7 +63,7 @@ import * as openai from './openai.js';
63
63
  import * as responses from './responses.js';
64
64
  import * as anthropic from './anthropic.js';
65
65
 
66
- export const VERSION = '0.6.96';
66
+ export const VERSION = '0.6.97';
67
67
 
68
68
  // WARM search tier — SQLite + FTS5 record store (falls back to an encrypted-JSON
69
69
  // store if SQLite can't load), fed by the extension's ingest sync + backup-ingest.