@chatpanel/gateway 0.6.20 → 0.6.21

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.6.20",
3
+ "version": "0.6.21",
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/server.js CHANGED
@@ -42,7 +42,7 @@ import * as openai from './openai.js';
42
42
  import * as responses from './responses.js';
43
43
  import * as anthropic from './anthropic.js';
44
44
 
45
- export const VERSION = '0.6.20';
45
+ export const VERSION = '0.6.21';
46
46
 
47
47
  // WARM search tier — SQLite + FTS5 record store (falls back to an encrypted-JSON
48
48
  // store if SQLite can't load), fed by the extension's ingest sync + backup-ingest.
package/src/stt-models.js CHANGED
@@ -75,11 +75,13 @@ export function sttModelDtype(id) {
75
75
  return sttModel(id)?.dtype || null;
76
76
  }
77
77
 
78
- // Accept a user-supplied ("Advanced") whisper model id. STRICT: `org/name` shape,
79
- // must be a whisper export, no path traversal. Curated catalog ids come from the
80
- // private dl.chatpanel.net mirror; custom ids are fetched from Hugging Face
81
- // directly (the engine points remoteHost there only for the custom load).
78
+ // Accept a user-supplied / registry-picked STT model id. STRICT `org/name` shape,
79
+ // no path traversal. We DON'T require "whisper" in the id the extension's model
80
+ // registry only surfaces transformers.js automatic-speech-recognition models
81
+ // (whisper, moonshine, …), all of which load via the ASR pipeline; the engine
82
+ // fails open if a pick turns out incompatible. Curated ids use the private
83
+ // dl.chatpanel.net mirror; custom ids fetch from Hugging Face directly.
82
84
  export function isValidCustomSttId(id) {
83
85
  const s = String(id || '');
84
- return /^[A-Za-z0-9][\w.-]*\/[\w.-]+$/.test(s) && /whisper/i.test(s) && !s.includes('..');
86
+ return /^[A-Za-z0-9][\w.-]*\/[\w.-]+$/.test(s) && !s.includes('..');
85
87
  }