@chatpanel/gateway 0.6.78 → 0.6.79
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/router.js +4 -0
- package/src/server.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/gateway",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.79",
|
|
4
4
|
"description": "Local privacy gateway \u2014 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/router.js
CHANGED
|
@@ -60,6 +60,10 @@ export function resolveDestination(model, cfg, kind, { destination = '' } = {})
|
|
|
60
60
|
// matches its own agent destination here — so it ALWAYS goes to the bridge).
|
|
61
61
|
(model && dests.find((d) => Array.isArray(d.models) && d.models.includes(model)))
|
|
62
62
|
|| (model && dests.find((d) => d.id === model || d.agent === model))
|
|
63
|
+
// `claude/opus` names an agent AND the model it should run: the agent's own destination,
|
|
64
|
+
// never the backend default — which is codex, and "Codex exited 1" on a model it has no
|
|
65
|
+
// idea about was how a whole team came back empty.
|
|
66
|
+
|| (model && model.includes('/') && dests.find((d) => d.type === 'agent' && (d.agent === model.slice(0, model.indexOf('/')) || d.id === model.slice(0, model.indexOf('/')))))
|
|
63
67
|
// No match: fall back to the BACKEND's natural default — an API destination on the
|
|
64
68
|
// api backend, an agent on the bridge backend. Never silently send an unknown
|
|
65
69
|
// model name to a CLI agent (that's why gemma must not hit codex).
|
package/src/server.js
CHANGED
|
@@ -58,7 +58,7 @@ import * as openai from './openai.js';
|
|
|
58
58
|
import * as responses from './responses.js';
|
|
59
59
|
import * as anthropic from './anthropic.js';
|
|
60
60
|
|
|
61
|
-
export const VERSION = '0.6.
|
|
61
|
+
export const VERSION = '0.6.79';
|
|
62
62
|
|
|
63
63
|
// WARM search tier — SQLite + FTS5 record store (falls back to an encrypted-JSON
|
|
64
64
|
// store if SQLite can't load), fed by the extension's ingest sync + backup-ingest.
|