@chatpanel/gateway 0.6.96 → 0.6.98
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/bin/chatpanel-gateway.js +11 -0
- package/package.json +2 -2
- package/src/server.js +1 -1
- package/src/team-board.js +3 -1
package/bin/chatpanel-gateway.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.6.98",
|
|
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": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@chatpanel/bridge": "^0.11.
|
|
30
|
+
"@chatpanel/bridge": "^0.11.23",
|
|
31
31
|
"@chatpanel/pii": "^0.7.4",
|
|
32
32
|
"@huggingface/transformers": "^4.2.0",
|
|
33
33
|
"onnxruntime-web": "1.26.0-dev.20260416-b7804b056c",
|
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.
|
|
66
|
+
export const VERSION = '0.6.98';
|
|
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.
|
package/src/team-board.js
CHANGED
|
@@ -75,7 +75,9 @@ export function parseFindings(text, { role, taskId } = {}) {
|
|
|
75
75
|
// ── threads, posts, asks ────────────────────────────────────────────────────────────────
|
|
76
76
|
|
|
77
77
|
export const THREAD_KINDS = Object.freeze(['task', 'ask', 'discussion', 'proposal']);
|
|
78
|
-
|
|
78
|
+
// `failed`: the task behind the thread ended without an answer (every model on the roster
|
|
79
|
+
// tried, or a hard error) — not `resolved`, which read as "done" on the board.
|
|
80
|
+
export const THREAD_STATUSES = Object.freeze(['open', 'waiting', 'resolved', 'failed', 'approved', 'rejected']);
|
|
79
81
|
export const POST_KINDS = Object.freeze(['finding', 'note', 'question', 'answer', 'draft', 'decision']);
|
|
80
82
|
export const POST_STATUSES = Object.freeze(['open', 'proposed', 'approved', 'rejected']);
|
|
81
83
|
export const ASK_TYPES = Object.freeze(['info', 'budget', 'permission', 'direction']);
|