@chatpanel/gateway 0.1.5 → 0.1.7

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/gateway",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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/ner.js CHANGED
@@ -58,10 +58,13 @@ export function startNer(cfg) {
58
58
  const n = cfg.ner;
59
59
  if (!n || !n.autostart) return null;
60
60
 
61
- // Respect an explicitly-configured detector — don't touch it.
61
+ // Respect an explicitly-configured detector — don't relaunch — but still apply
62
+ // the full-tier bump (else a persisted config with detection-on but tier:basic
63
+ // would never redact entities even though a detector is available).
62
64
  const det = cfg.redaction?.detection;
63
65
  if (det && det.backend && det.backend !== 'off') {
64
- console.log(`[ner] detection already configured (${det.backend}) leaving it as-is`);
66
+ if (n.enableFullTier && cfg.redaction.tier !== 'full') cfg.redaction.tier = 'full';
67
+ console.log(`[ner] detection already configured (${det.backend}) — full tier ${cfg.redaction.tier === 'full' ? 'on' : 'off'}`);
65
68
  return null;
66
69
  }
67
70
 
@@ -84,7 +87,16 @@ export function startNer(cfg) {
84
87
  try {
85
88
  child = spawn(resolveBash(), ['run.sh'], {
86
89
  cwd: NER_DIR,
87
- env: { ...process.env, PORT: String(port), PATH: enrichedPath() },
90
+ env: {
91
+ ...process.env,
92
+ PORT: String(port),
93
+ PATH: enrichedPath(),
94
+ // Force official PyPI: a machine pinned to a private/corp index (in
95
+ // pip.conf) can't reach it off-VPN, which breaks the one-time install.
96
+ PIP_INDEX_URL: process.env.CHATPANEL_PIP_INDEX_URL || 'https://pypi.org/simple',
97
+ PIP_EXTRA_INDEX_URL: '',
98
+ PIP_DISABLE_PIP_VERSION_CHECK: '1',
99
+ },
88
100
  stdio: ['ignore', 'pipe', 'pipe'],
89
101
  });
90
102
  } catch (e) {
package/src/server.js CHANGED
@@ -31,7 +31,7 @@ import * as openai from './openai.js';
31
31
  import * as responses from './responses.js';
32
32
  import * as anthropic from './anthropic.js';
33
33
 
34
- export const VERSION = '0.1.5';
34
+ export const VERSION = '0.1.7';
35
35
 
36
36
  const KNOWN_AGENTS = new Set(['codex', 'claude', 'opencode', 'pi', 'kiro', 'antigravity']);
37
37