@chatpanel/gateway 0.6.85 → 0.6.86
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/server.js +1 -1
- package/src/team-store.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/gateway",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.86",
|
|
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/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.86';
|
|
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.
|
package/src/team-store.js
CHANGED
|
@@ -97,6 +97,9 @@ export class TeamStore {
|
|
|
97
97
|
const v = clone({ ...run, events: undefined });
|
|
98
98
|
delete v.events;
|
|
99
99
|
v.stale = LIVE.has(run.status) && this.now() - run.lastEventAt > this.staleAfterMs;
|
|
100
|
+
// How long since the running client last wrote — a person who knows the process died
|
|
101
|
+
// does not have to wait for the stale mark to pick the run up.
|
|
102
|
+
v.quietMs = LIVE.has(run.status) ? Math.max(0, this.now() - run.lastEventAt) : 0;
|
|
100
103
|
// Can a client pick this run up again? Not while its own client is live on it.
|
|
101
104
|
v.resumable = isResumable(v);
|
|
102
105
|
if (events) v.events = clone(run.events);
|