@chatpanel/gateway 0.6.16 → 0.6.17
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/backup-ingest.js +7 -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.17",
|
|
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/backup-ingest.js
CHANGED
|
@@ -61,6 +61,13 @@ export function backupToRecords(data) {
|
|
|
61
61
|
if (segs) parts.push('', 'TRANSCRIPT:', segs);
|
|
62
62
|
out.push({ id: `meeting:${id}`, type: 'meeting', title, date, text: parts.join('\n').trim() });
|
|
63
63
|
}
|
|
64
|
+
// Notes (backup v5+) — plain markdown; the whole body is searchable.
|
|
65
|
+
for (const n of data?.notes || []) {
|
|
66
|
+
if (!n?.id) continue;
|
|
67
|
+
const title = n.title || 'Note';
|
|
68
|
+
const date = n.updatedAt || n.createdAt || 0;
|
|
69
|
+
out.push({ id: `note:${n.id}`, type: 'note', title, date, text: `NOTE: ${title}\n\n${String(n.body || '')}`.trim() });
|
|
70
|
+
}
|
|
64
71
|
return out;
|
|
65
72
|
}
|
|
66
73
|
|
package/src/server.js
CHANGED
|
@@ -40,7 +40,7 @@ import * as openai from './openai.js';
|
|
|
40
40
|
import * as responses from './responses.js';
|
|
41
41
|
import * as anthropic from './anthropic.js';
|
|
42
42
|
|
|
43
|
-
export const VERSION = '0.6.
|
|
43
|
+
export const VERSION = '0.6.17';
|
|
44
44
|
|
|
45
45
|
// WARM search tier — SQLite + FTS5 record store (falls back to an encrypted-JSON
|
|
46
46
|
// store if SQLite can't load), fed by the extension's ingest sync + backup-ingest.
|