@chatpanel/gateway 0.1.1 → 0.1.2
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/ner.js +3 -1
- package/src/server.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/gateway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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
|
@@ -68,7 +68,10 @@ export function startNer(cfg) {
|
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
// Poll for readiness without blocking server start; wire detection when up.
|
|
71
|
+
// `stopped` MUST be declared before the async poller below references it (else a
|
|
72
|
+
// temporal-dead-zone ReferenceError crashes startup when autostart is on).
|
|
71
73
|
const ac = new AbortController();
|
|
74
|
+
let stopped = false;
|
|
72
75
|
(async () => {
|
|
73
76
|
const deadline = Date.now() + 120_000; // generous: first run installs deps
|
|
74
77
|
while (Date.now() < deadline && !stopped) {
|
|
@@ -88,7 +91,6 @@ export function startNer(cfg) {
|
|
|
88
91
|
if (!stopped) console.log('[ner] not ready after 120s — continuing deterministic-only (run ./ner/run.sh manually to debug).');
|
|
89
92
|
})();
|
|
90
93
|
|
|
91
|
-
let stopped = false;
|
|
92
94
|
const stop = () => {
|
|
93
95
|
if (stopped) return;
|
|
94
96
|
stopped = true;
|
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.
|
|
34
|
+
export const VERSION = '0.1.2';
|
|
35
35
|
|
|
36
36
|
const KNOWN_AGENTS = new Set(['codex', 'claude', 'opencode', 'pi', 'kiro', 'antigravity']);
|
|
37
37
|
|