Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
Revert "feat(models): consume a signed, dynamically updated model registry (#2683)" (#2685)
Joshua7bfa1d732f76
diff --git a/CLAUDE.md b/CLAUDE.mdindex 105a6b169..2ca25312d 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -452,9 +452,7 @@ Non-secret env vars persisted to `.env` (via `saveAllKeysToEnvFile()`):### 8. Model Registry Architecture-Desktop model definitions are authored in the public [model-registry repository](https://github.com/OpenWhispr/model-registry). Merging a compatible catalog edit publishes a signed update that the desktop checks after startup and every 15 minutes. `src/models/modelRegistryData.json` is a generated offline snapshot, not an editing source. API routing, admin policy catalogs, and mobile catalogs remain separate contracts (see below).--To update the offline snapshot, run `npm run model-registry:sync -- --revision <exact published-branch commit>`, then commit the generated files together. `npm run model-registry:verify` checks their signature, source digests and parity without network access; normal builds never fetch the latest registry. New providers or native engines still require code and a release. Operational details and regression boundaries are in `docs/superpowers/specs/2026-10-14-dynamic-model-registry.md`.+All desktop AI model definitions are centralized in `src/models/modelRegistryData.json` as the single source of truth. The mobile app keeps its own hand-updated copies (see below):```json{@@ -465,11 +463,7 @@ To update the offline snapshot, run `npm run model-registry:sync -- --revision <**Key files:**-- `src/models/modelRegistryData.json`, `registryBundle.json`, `registryMetadata.json` - Generated offline catalog, signed envelope and exact source/publication provenance-- `src/models/registryData.js` - Live process-local store; use this instead of importing the snapshot in runtime readers-- `src/helpers/registryLoader.js` - Main-only signature/schema/compatibility validation, bounded cache and background refresh; `OPENWHISPR_MODEL_REGISTRY_MODE=bundled` disables cache and network activation-- `src/models/registryBootstrap.js`, `registrySync.js` - Verified preload snapshot before settings migrations, then IPC updates; React catalog consumers subscribe through `useRegistryVersion`-- `src/models/cloudModelCatalog.ts` - Shared Tinfoil live overlay for pickers and settings; never mutates canonical signed data+- `src/models/modelRegistryData.json` - Single source of truth for all desktop models- `openwhispr-mobile/src/config/providerCatalog.json` - Mobile's trimmed copy of the OpenAI and Groq entries. It, mobile's endpoint rules and its agent prompt (`openwhispr-mobile/src/config/prompts/defaultPrompts.json`) are copies, not shared code, so update them by hand when desktop's change (the catalog is covered in `openwhispr-mobile/CONTRIBUTING.md`)- `src/models/ModelRegistry.ts` - TypeScript wrapper with helper methods; also derives`REASONING_PROVIDERS` (`buildReasoningProviders()`), consumed by the model pickersdiff --git a/docs/superpowers/plans/2026-10-14-dynamic-model-registry.md b/docs/superpowers/plans/2026-10-14-dynamic-model-registry.mddeleted file mode 100644index f9af460c2..000000000--- a/docs/superpowers/plans/2026-10-14-dynamic-model-registry.md+++ /dev/null@@ -1,127 +0,0 @@-# Dynamic Model Registry Implementation Plan--> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. Josh has authorized implementation, PR creation, and merge; execution is native with one code writer and a fresh independent read-only reviewer.--**Goal:** Move the desktop catalog into a public Git-managed registry and merge a verified live-update consumer for the next desktop release.--**Architecture:** A separate catalog repository publishes signed, versioned data while desktop retains a reproducible bundled floor. One main-process loader verifies updates and synchronizes a pure data store to renderer stores over IPC. Existing provider/engine contracts remain fixed; only supported catalog data changes live.--**Tech Stack:** Node 24, Electron 41, existing Zod 4, Node `crypto` Ed25519, React `useSyncExternalStore`, GitHub Actions, existing Node/tsx test harness.--**Spec:** `docs/superpowers/specs/2026-10-14-dynamic-model-registry.md`--## Global Constraints--- Desktop baseline `2516e6e00`; audit API `48ad289` and admin `e60aff8`, refreshing exact heads before merge.-- `deep_research: yes`; `codex_review: yes`; native execution with one code writer and an independent read-only reviewer.-- `schemaVersion: 1`; positive safe-integer `manifestVersion`; Ed25519 over exact decoded payload bytes.-- 2 MiB maximum envelope; 15-second request timeout; 5-second startup refresh; 15-minute refresh interval; single-flight, cookie-free requests.-- `OPENWHISPR_MODEL_REGISTRY_MODE=bundled` skips cache activation and remote requests.-- Preserve all existing and previously published model IDs, provider IDs, saved selections, policy restrictions, download identities, native engines, and public response shapes.-- No dynamic credentials, endpoints, provider adapters, executable URLs, automatic selection migration, API policy expansion, or mobile catalog rewrite.-- New download artifacts require SHA-256; legacy artifact identities remain fixed. Verify resumed/reused files before installation.-- The next native release ships this consumer; a merged PR is not evidence of native release or physical-device acceptance.--## Review Focus--- A remotely added model is selected and the next publication omits it: reject that publication, preserving the selection and catalog (Tasks 1 and 4).-- A new registry event arrives while a renderer's initial snapshot request is pending: an older response cannot overwrite it (Task 4).-- The app upgrades while an older verified cache exists: the bundled version remains the floor; a newer compatible verified cache still works offline (Task 4).-- An update occurs during a download, or a resumed/reused file has incorrect bytes: the operation keeps its original configuration and never promotes an unverified artifact (Task 2).-- A user is under provider restrictions or has a fresh Tinfoil overlay: catalog updates neither widen policy access nor overwrite that overlay (Tasks 3 and 5).-------## File structure--New registry repository paths below are relative to `OpenWhispr/model-registry`, initialized locally at `/Users/joshuadavidpadoa/dev/openwhispr-model-registry` on `codex/catalog-migration`; desktop paths are relative to this worktree.--| Unit | Responsibility |-| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |-| Registry `registry/*.json`, `lib/schema.cjs` | Canonical catalog and pure validation/compatibility rules. |-| Registry `scripts/{validate,check-previous,publish}.cjs`, `test/*.test.cjs` | Reproducible build, signed publication, provenance, and CI verification. |-| Registry `.github/workflows/{validate,publish}.yml`, `README.md`, `.github/CODEOWNERS` | Reviewed edit-to-publish workflow and actual custody/rollback instructions. |-| Desktop `src/models/{registrySchema.cjs,registryData.js,registryData.d.ts,registryMetadata.json,registryTrustedKeys.json}` | Vendored schema, pure atomic store/types, bundled provenance, compiled public trust roots. |-| Desktop `src/helpers/registryLoader.js` | Signature/cache/network state machine; no React dependencies. |-| Desktop `src/models/registrySync.js`, `src/hooks/useRegistryVersion.ts` | IPC synchronization and renderer subscriptions. |-| Desktop `scripts/sync-model-registry.mjs` | Explicit verified snapshot/schema vendoring from an exact revision. |-| Desktop `src/models/modelRegistryData.json` | Generated bundled snapshot; keep the existing filename and shape. |--## Task 1: Extract and validate the canonical catalog--**Files:** Registry `registry/*.json`, `lib/schema.cjs`, `scripts/validate.mjs`, `test/registry.test.mjs`, `package.json`, `README.md`; desktop `src/models/registrySchema.cjs` and `test/helpers/registrySchema.test.js`.--**Interfaces:** `validateRegistry(data, { baseline, previous, appVersion }) -> validatedData`; `validateManifest(manifest, options) -> validatedManifest`. Inputs use the existing catalog shape plus optional `minAppVersion`, `sha256`, and `draftSha256`; malformed data throws. Existing version comparison semantics are reused rather than adding competing semver logic.--- [ ] Write failing contract tests: the extracted baseline deep-equals the current JSON; duplicate IDs, unknown provider/transport changes, removal of a bundled or previously published ID, changed download identity, and malformed capability/path data are rejected. A supported added cloud model succeeds; a newer-version new entry is filtered without hiding an existing entry.-- [ ] Run `npm test` in the registry repository and the focused desktop schema test; record the expected missing-implementation failures.-- [ ] Copy the full current catalog, implement strict shared validation, and pin immutable provider/engine/download identity fields. Preserve extra existing sections. Require checksums for every new downloadable blob, including optional GGUF draft artifacts.-- [ ] Run the contract tests and validate the complete extracted catalog. Add README instructions distinguishing supported-model additions from provider/engine code changes.-- [ ] Commit this independently reviewable extraction and validation change. Record the original desktop source SHA.--## Task 2: Verify model artifacts before installation--**Files:** Modify `src/helpers/downloadUtils.js`, `src/helpers/whisper.js`, `src/helpers/parakeet.js`, `src/helpers/modelManagerBridge.js`, and relevant model interfaces in `src/models/ModelRegistry.ts`; test `test/helpers/downloadIntegrity.test.js` and existing download/manager tests.--**Interfaces:** Extend `downloadFile(url, destPath, options)` with optional `expectedSha256`; add reusable `verifyFileSha256(filePath, expectedSha256) -> Promise<void>`. Preserve current return values, progress callback, cancellation, retries, and optional-drafter semantics. Download operations capture the model entry at start.--- [ ] Write failing tests: wrong digest cannot create/replace destination; digest covers existing resumed bytes; valid digest promotes the complete file; bad reused archive is rejected before extraction; a registry update during a download cannot change its expected digest/path; optional drafter failure retains a valid main GGUF. Add safe archive path/link rejection coverage for new remote archives.-- [ ] Run `node --import tsx --test test/helpers/downloadIntegrity.test.js` and retain the expected red evidence.-- [ ] Hash the completed temporary file before rename and existing archives before reuse. Propagate primary/draft hashes through managers. Validate new remote archive entries before extraction and keep legitimate existing URL/CDN behavior working. Restrict these data-driven paths without breaking unrelated executable download helpers.-- [ ] Run the new tests plus the existing download, Whisper, Parakeet, model-manager, and cancellation tests selected from the current test tree; all relevant assertions pass.-- [ ] Commit artifact verification as a standalone hardening change before enabling remote catalogs.--## Task 3: Unify the runtime store and migrate every reader--**Files:** Create `src/models/registryData.js`, `src/models/registryData.d.ts`, `src/hooks/useRegistryVersion.ts`; modify all 15 JSON import sites: `src/models/ModelRegistry.ts`; `src/stores/settingsStore.ts`, `policyRules.ts`; `src/helpers/whisper.js`, `parakeet.js`, `modelManagerBridge.js`, `tinfoilTranscription.js`, `localTranscriptionModels.js`, `parakeetModelInfo.js`, `policyValidation.js`, `dictationStreamingRouting.js`, `localASROrganization.ts`, `ipcHandlers.js` (two sites). Audit `streamingProvidersStore.ts`, `audioManager.js`, `geminiLiveStreaming.js`, `realtimeTokenProviders.js`, and every consumer of `REASONING_PROVIDERS`, `WHISPER_MODEL_INFO`, and `PARAKEET_MODEL_INFO`.--**Interfaces:** `getRegistryData() -> RegistryData`; `getRegistryVersion() -> number`; `subscribeRegistry(listener: () => void) -> () => void`; `replaceRegistryData(snapshot: { data, manifestVersion }) -> boolean`; `useRegistryVersion() -> number`. The store has no browser/React/Electron/settings imports; main requires the ESM module synchronously. All public model lookup signatures remain compatible.--- [ ] Write failing tests in `test/helpers/registryData.test.js`: CJS and ESM readers in one process observe the same replacement; getters, local HTTP catalog, policy-required-ID resolution, reasoning exports, and local ASR metadata see additions; existing provider denies and saved IDs stay unchanged; one replacement produces one notification; rejected/older replacement produces none.-- [ ] Run the focused test and prove the stale-import/derived-state assertions fail against the baseline.-- [ ] Implement the atomic store and replace static imports. Rebuild derived provider/maps on each accepted replacement or convert consumers to getters; keep fixed provider-policy constants explicit. Preserve the independent Tinfoil discovery overlay when rebuilding and do not mutate canonical signed data through it.-- [ ] Replace hardcoded OpenAI realtime membership and Gemini BYOK live-model selection with registry-derived supported IDs; pass the selected compatible BYOK model to the existing Gemini streaming adapter. Add assertions that newly added streaming models actually route, stale IDs from another provider do not cross-route, and managed server-token/default-model paths are unchanged.-- [ ] Subscribe registry-dependent pickers, onboarding, settings, and notes editors using the hook. Include the version in registry-derived `useMemo` dependencies. Audit `ReasoningModelSelector`, `TranscriptionModelPicker`, `EnterpriseProviderConfig`, `EnterpriseSection`, `LocalModelPicker`, `LocalWhisperPicker`, `settings/InferenceConfigEditor`, `notes/UploadAudioView`, and current onboarding consumers; do not rely on the July list.-- [ ] Run the focused store tests and relevant existing policy, Tinfoil, model selection, onboarding, local HTTP, and streaming tests. Use `rg` to confirm only the approved bootstrap/schema/vendor tooling reads the JSON directly and no stale derived registry values remain.-- [ ] Commit the runtime-store refactor. Offline behavior must already work before remote fetching exists.--## Task 4: Implement verified cache, background refresh, and IPC--**Files:** Create `src/helpers/registryLoader.js`, `src/models/registrySync.js`, `src/models/registryMetadata.json`, `src/models/registryTrustedKeys.json`; modify `main.js`, `preload.js`, `src/helpers/ipcHandlers.js`, `src/types/electron.ts`, `src/main.jsx`; test `test/helpers/registryLoader.test.js` and `test/helpers/registrySync.test.js`.--**Interfaces:** `createRegistryLoader({ cachePath, bundledSnapshot, trustedKeys, fetch, appVersion, applySnapshot, ...clockOptions }) -> { start(), refresh(): Promise<void>, stop(), getSnapshot() }`. Preload exposes `initialModelRegistrySnapshot: { data, manifestVersion }` synchronously, obtained from the already verified main store. `getModelRegistry()` IPC returns the same shape; `onModelRegistryUpdated(callback)` returns unsubscribe. Renderer bootstrap applies the synchronous initial snapshot before settings modules evaluate, then `startRegistrySync(electronAPI) -> () => void` subscribes before reconciliation snapshot retrieval and applies only the newest version. Production defaults are fixed in the spec; injected dependencies make tests deterministic.--- [ ] Write failing loader tests using generated test-only Ed25519 keys: valid update, invalid key/signature/schema, rollback/equivocation, removed remote-added model, newer-bundle precedence, newer verified offline cache, tampered/oversized/partial cache, response streaming limit, timeout, retry, single-flight, disk-write failure, bundled mode, and timer cleanup. Assert no startup path awaits the network.-- [ ] Write failing IPC tests: restarting with a saved remote-added model and valid cache preserves that selection through settings initialization; an event at version 3 followed by delayed request response version 2 retains 3; multiple windows receive a valid replacement; double initialization/cleanup does not leak listeners; fresh Tinfoil overlay survives canonical update.-- [ ] Run both focused test files and retain failures showing the missing behavior.-- [ ] Implement exact-byte signature verification, bounded read/fetch, atomic cache write, floor/version checks, refresh scheduling, and graceful fallback. Finish cache verification before creating renderer windows, while always providing synchronous bundled data. Install the verified preload snapshot before settings-store migrations run. Wire IPC and every renderer bootstrap path; stop timers on app quit.-- [ ] Run focused tests plus current typecheck. Verify unknown/tampered input never reaches runtime readers and bundled mode performs zero cache/network activation.-- [ ] Commit verified live synchronization.--## Task 5: Publish the catalog and pin the desktop snapshot--**Files:** Registry `scripts/{compile,publish}.mjs`, `.github/workflows/{validate,publish}.yml`, `.github/CODEOWNERS`, README/runbook, publication-history metadata; desktop `scripts/sync-model-registry.mjs`, `package.json`, generated registry files, current CI workflow/scope files as required.--**Interfaces:** Registry compile emits exact manifest bytes; publish wraps and signs those bytes and writes `published/manifest.json`. `sync-model-registry.mjs --revision <exact-published-commit>` verifies and vendors the snapshot/schema/provenance; ordinary builds do not fetch. Source paths and hashes are recorded so regeneration is deterministic.--- [ ] Write failing publication tests: two successive publications have increasing versions, a rerun cannot reuse a version for different content, stale source cannot publish after a newer merge, omission of a previous identity fails, and the exact published source regenerates identical desktop files. PR validation cannot access signing inputs.-- [ ] Run registry tests and desktop sync tests to capture the failures.-- [ ] Create the public repository and trusted default branch through the authorized GitHub workflow. Configure signing custody without printing private material. Implement serialized non-cancelling publication with a last-head check, exact-source provenance, history, and additive rollback. Configure actual supported protections and document any provider limits honestly.-- [ ] Open and attach the registry PR, run checks/review, and merge under the user's existing authorization. Observe a successful publication, fetch its exact bytes, and verify signature/provenance independently with the public key. No disabled signing/publish prerequisite may be left behind.-- [ ] Vendor that exact signed publication into desktop using the sync command. Run generated-file parity verification, a no-network build, and a test signed compatible update showing new entries reach both main and renderer without restart; preserve selections, API/admin policy fixtures, Tinfoil, and local HTTP response shape.-- [ ] Commit desktop integration and publication evidence. Record which native/manual checks ran and which remain release-time acceptance.--## Task 6: Regression review, authorized merge, and handoff--**Files:** This spec/plan, narrowly relevant architecture docs, test evidence, PR descriptions; no unrelated API/admin/mobile rewrites.--- [ ] Run the completed focused suites, relevant existing suites, `npm run typecheck`, `npm run lint`, `npm run i18n:check`, and `npm run build:renderer`. Run the full desktop suite once if the environment supports it; rebuild ABI-dependent dependencies for Node 24 before interpreting DB failures. Record any baseline failures separately.-- [ ] Refresh API/admin/mobile/CLI repository heads and confirm no newly introduced cross-repository contract drift. Preserve the audited provider-policy/required-local-model contracts in explicit parity assertions or documented compared fixtures; do not claim separate API/admin tests from desktop tests alone.-- [ ] Have a fresh independent reviewer inspect the complete desktop and registry diffs and the cross-repository audit. Fix actionable findings, then repeat only affected tests and required CI.-- [ ] Open/attach the desktop PR with the actual final scope and evidence, wait for required checks, review the exact final head, and merge under Josh's explicit authorization. Verify default-branch merge SHAs and that the registry publication still verifies.-- [ ] Remove generated renderer output after verification. Remove only session-owned clean, pushed, idle worktrees; explicitly retain any required checkout with a handover reason. Preserve other sessions' work.-- [ ] Report both PR URLs, merge SHAs, verified publication version/source, supported live changes, exclusions, and the separate next-release requirement. Update the active goal to complete only when the migration and publication are merged and no required implementation/review work remains.--## Self-review--All five Review Focus cases have owning tests above. The spec's additive compatibility, artifact trust, stale-derived-state, publication ordering, provenance, cache, IPC, and cross-repository conditions map to Tasks 1–6. The July stretch phases are intentionally absent from this first migration; implementation must not silently imply they shipped.diff --git a/docs/superpowers/specs/2026-10-14-dynamic-model-registry.md b/docs/superpowers/specs/2026-10-14-dynamic-model-registry.mddeleted file mode 100644index f76ec8a95..000000000--- a/docs/superpowers/specs/2026-10-14-dynamic-model-registry.md+++ /dev/null@@ -1,98 +0,0 @@-# Dynamic model registry migration--Date: 2026-10-14. Desktop audit baseline: `2516e6e00`. API audit baseline: `48ad289`. Admin audit baseline: `e60aff8`.--Josh authorized analysis, implementation, PR creation, and merge in this chat. This specification narrows Gabe's July proposal to a complete, safe first migration. Execution is native with one code writer and a fresh independent read-only reviewer. `deep_research: yes`; `codex_review: yes`. The current source audits supersede the July file counts and architecture assumptions.--## Outcome--The public `OpenWhispr/model-registry` repository becomes the editable source of the desktop model catalog. Merging a valid catalog PR publishes a signed update. The next desktop release can discover supported models during an existing app session without another desktop release, while an offline installation continues to use its bundled catalog.--GitHub's editor, pull requests, validation, review, and history are the CMS in this migration. A separate admin editing screen is not required to achieve this outcome. Publishing a catalog cannot introduce a new provider adapter, change a credential destination, replace a model installation in place, or change a user's selected model.--## Corrections to the original proposal--| Original assumption | Current finding and decision |-| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| The source stays inside the desktop repository. | Josh requested a separate repository. Retain a generated, provenance-pinned desktop snapshot and sync command to prevent drift. |-| Four main-process imports and no stale derived constants. | There are 15 direct JSON import sites, including settings, policy, streaming, local ASR organization, main helpers, and renderer consumers. Every site must be classified and migrated. OpenAI realtime model IDs and the Gemini live model are also hardcoded outside the registry. |-| There is no desktop version comparator. | `src/utils/version.ts` already provides `compareAppVersions`; reuse its semantics. |-| Tests run in `tests.yml`. | That workflow no longer exists. Current gates include `build-and-notarize.yml` and `ci-changes.yml`; integrate with the current CI scope. |-| Mobile is already entirely server-driven. | The monorepo has `openwhispr-mobile/src/config/providerCatalog.json` and a distinct local model catalog/native engines. Desktop data cannot replace them wholesale. |-| API/admin catalogs can simply load the desktop registry. | Provider IDs and required local model IDs are policy contracts. API inference routing remains authoritative; admin's local model catalog was omitted from the proposal. |-| Retirement can automatically pick another model. | Selection migration is outside this first migration. Preserve every existing and previously published model identity. |-| A new OpenAI-compatible provider is just data. | Credentials, policy enums, network adapters, and UI entry points still require coordinated code. Keep provider membership and transport configuration fixed. |-| OIDC by itself protects an Actions signing secret. | Repository permissions, workflow review, environment access, and key custody provide the actual controls. Do not claim an OIDC security property that is not configured. |--## Repository coverage and preserved contracts--| Surface | Treatment |-| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Desktop `OpenWhispr/openwhispr` | Implement the loader, generated snapshot, shared runtime store, renderer subscription, and artifact verification. Keep all public interfaces and saved IDs working. |-| New `OpenWhispr/model-registry` | Own split `registry/*.json`, validation schema, publication tooling, signed artifacts, publication history, and maintenance instructions. |-| API | No runtime dependency on the public catalog. Preserve provider-policy IDs, `requiredLocalModels`, hosted inference routing, note-recording behavior, and current policy versioning. |-| OpenWhispr admin | Preserve provider and local-model policy catalogs. A remotely added local model may be individually selectable in desktop but is not automatically a new organization-required-model option. |-| Mobile in the monorepo | Preserve `providerCatalog.json`, `localModelCatalog.ts`, and native engines. A future mobile projection needs its own consumer contract and minimum-version gates. |-| CLI/local HTTP API | Preserve the `/v1/transcribe/models` response shape and existing IDs; new supported entries may be additive. |-| Website/docs and release tooling | Audit references and packaging so the generated snapshot and keys ship. No unrelated website deployment or native release is part of merging this migration. |--## Data and trust contract--1. Preserve the existing JSON shape and all existing sections on extraction. Avoid deleting purportedly dead sections as part of the migration.-2. A signed envelope has `algorithm: "Ed25519"`, `keyId`, `payload`, and `signature`. `payload` is base64 of the exact UTF-8 manifest bytes; `signature` is base64 of the Ed25519 signature over those bytes. Verify before parsing the manifest. Do not reserialize JSON for verification.-3. The manifest contains `schemaVersion: 1`, a positive safe-integer `manifestVersion`, ISO `publishedAt`, a 40-character Git `sourceCommit`, signed `contractHashes` for the shared code, and `data`. Catalog validation is shared between CI and desktop from the same pinned source revision.-4. Desktop accepts only compiled-in public keys and schema version 1. No key material, authorization headers, arbitrary executable configuration, or credential routing is accepted from catalog data. A second pinned recovery public key is useful only if its private key has genuinely separate custody.-5. Provider IDs, transport endpoints, default-selection behavior, engine identities, and credential bindings come from the bundled compatibility contract. A remote catalog cannot add providers or move a model between providers. Existing download identities and runtime/decoder types cannot change in place.-6. New models may use only already-supported providers, engines, types, and capability fields. Optional `minAppVersion` filters new entries requiring a newer desktop; it never hides an existing usable identity. Unknown shape/adapter changes require a new supported schema or desktop release.-7. Reject a publication that removes an identity from the baseline or previous publication. Desktop also rejects removal from its last accepted canonical catalog. Rollback republishes corrected content with a higher version while retaining added identities; copying an older catalog verbatim may violate this rule.-8. Mandatory English name/description and existing translation-key fallbacks keep new entries readable in every locale. Translation automation is not required for publication.-9. Newly introduced downloads require a valid SHA-256 for every artifact, including a GGUF draft artifact when present. Legacy un-hashed bundled entries may continue unchanged; adding a checksum is allowed, changing the underlying URL/file/repository is not. No claim of blanket verification for legacy downloads is made.-10. Model IDs and file/extract names reject absolute paths, traversal, Windows separators/drives, control characters, and ambiguous decoded separators. Initial model download URLs require HTTPS and explicit compatible origins/repository paths. Downloads retain the existing automatic CDN redirects, omit session cookies and API credentials, and verify the final artifact's digest for newly introduced downloads.-11. Verify the complete temporary file, including resumed bytes, before promoting it. Reused archives with a catalog checksum are verified again before extraction. Reject unsafe archive entries/links before extracting a new remotely introduced archive. Executable downloads remain code-pinned.--## Desktop architecture--`src/models/registryData.js` is a pure ESM data store without Electron, React, browser globals, settings, or network imports. CommonJS main helpers use Node 24's synchronous `require(esm)` support; renderer modules import the same module. Each process has its own store, synchronized by IPC, rather than pretending imports share memory across processes. The shared validation contract may be a vendored `schema.cjs`, with its source digest recorded alongside the snapshot.--The store exposes `getRegistryData()`, `getRegistryVersion()`, `subscribeRegistry(listener)`, and `replaceRegistryData(snapshot)`. Replacement is atomic and one accepted replacement produces one notification. Getters read the current snapshot; module-scope derived maps must either be rebuilt on replacement or remain explicitly immutable compatibility constants. The registry's provider map and reasoning/Whisper/Parakeet exports must never retain the old snapshot.--`registryLoader.js` is the only main-process remote loader. It verifies a bounded cache at boot, chooses the newest compatible verified snapshot above the bundled floor, and starts fetches without delaying startup. Cache/network errors retain the usable snapshot. Cache writes use a temporary file plus rename; disk failure does not break model selection or startup.--Defaults: HTTPS GitHub raw publication URL under `OpenWhispr/model-registry`, 2 MiB envelope limit, 15-second request timeout, startup refresh after 5 seconds, refresh every 15 minutes, one request in flight, and `useSessionCookies: false`. Enforce the byte limit on streaming responses and disk cache reads, not just `Content-Length`. `OPENWHISPR_MODEL_REGISTRY_MODE=bundled` skips both cache activation and network access for managed offline use. This is a local control, not an invented server policy field.--IPC adds a snapshot request and a change event. Main verifies cached data before creating renderer windows; preload exposes the verified initial snapshot synchronously. Renderer bootstrap installs that snapshot before settings-store migrations normalize saved model IDs, preventing a valid remote-added selection from being erased on restart. It subscribes before requesting the reconciliation snapshot and ignores an older response if a newer change event already arrived. Every relevant window bootstraps synchronization. React consumers use `useSyncExternalStore`; `useMemo` values include the registry version when their result depends on registry data. Long-running operations capture the model configuration they started with.--OpenAI's `REALTIME_MODELS` set and Gemini live routing must derive eligible BYOK model IDs from the current registry, while preserving explicit provider checks. A new streaming model must both appear in the picker and reach the correct existing adapter. The Gemini streaming client must accept the selected compatible BYOK model instead of overwriting it with a constant. Managed OpenWhispr token/default-model paths remain server-controlled.--Batch routing checks live provider membership before legacy model-name heuristics. Gemini uses its pinned batch fallback only for a streaming or unknown selection; a selected compatible batch model keeps its ID. Deepgram includes the selected BYOK model in its socket identity and reconnect options, while preserving the existing Nova-3 language fallback and managed model selection. xAI and Corti transcription adapters send no model-selection parameter, so the shared contract rejects new transcription IDs for those providers until their adapters support them. Tinfoil additions remain streaming-only because its batch adapter owns a fixed attested model.--When a new OpenAI, Tinfoil, or Gemini selection replaces an unfinished warm connection, main buffers up to three seconds of initial PCM and sends it only to the selected connection. Failure clears the queue. Orukeet retains its existing larger startup buffer; Deepgram keeps its existing audio-driven connection behavior.--Tinfoil's live discovery remains its existing independent overlay, including its confirmed-fetch retirement behavior. A generic catalog refresh must not overwrite a fresher Tinfoil overlay, and Tinfoil overlay mutation must not affect canonical signature or additive validation. The migration does not alter other provider selection defaults, existing policy deny decisions, or installed-model ownership.--The desktop LLM canary scripts continue to inspect the bundled snapshot. Remotely added models enter that canary's coverage after an explicit snapshot sync; catalog publication alone is not a successful inference canary for the new model.--## Publication and snapshot provenance--The new repository publishes to a dedicated `published` branch. Desktop fetches `https://raw.githubusercontent.com/OpenWhispr/model-registry/published/manifest.json`. A custom domain, Pages configuration, and third-party CMS are unnecessary dependencies.--Publication runs only for trusted default-branch source or a deliberate dispatch. Its write/sign step is serialized with cancellation disabled and `queue: max` so a stale rerun cannot evict the latest pending publication. It fetches the current publication, chooses a strictly larger safe-integer version, validates additive compatibility, and verifies that the build source still equals the latest default-branch head immediately before publishing. A stale source run must skip or restart from the latest head. Concurrency queues alone are not assumed to be FIFO. Persist version history so a workflow rerun cannot reuse a version for different bytes.--Pull-request checks never receive the signing key. Use repository Actions secrets for the signing private key; do not print it, commit it, place it in generated artifacts, or expose it to PR code. Protect and review publication tooling/CODEOWNERS where supported, documenting the actual configured controls. Keys are public-only in desktop and repository sources.--Desktop's sync command accepts an exact publication/source revision, verifies its signature, schema, and bundled compatibility, then writes the snapshot, shared schema, and provenance metadata reproducibly. It must not silently download "latest" during an ordinary build. CI proves checked-in generated files match their recorded source and that normal builds work offline.--## Acceptance and merge conditions--- A valid signed fixture adds a cloud model and local model to the running main and renderer catalogs, preserving selections, providers, local HTTP response shape, policy restrictions, and Tinfoil overlay behavior.-- Malformed, oversized, unsupported, tampered, stale, or partially written data cannot replace the last usable catalog. A fresh offline install has the complete original catalog.-- A newer bundled snapshot beats an older cache; a compatible newer verified cache works offline and preserves a remote-added saved selection before settings migrations; a live update wins over an older in-flight IPC snapshot.-- Downloads reject bad hashes and unsafe paths before installation, including resumed data and archive reuse. Existing download cancellation/progress/optional-drafter behavior remains valid.-- New repository CI is green, publication exists and verifies with the compiled key, and the desktop snapshot is tied to that exact source. Publication infrastructure must be demonstrated rather than left as a disabled workflow.-- Focused regression tests, relevant existing tests, desktop typecheck/lint/build, and current required CI pass. Show new regression tests failing against the original implementation where applicable.-- A fresh independent reviewer reads the complete changes and cross-repository boundary evidence; actionable findings are fixed and rechecked before the authorized merge.-- Report merged PRs separately from signed/native release or production device acceptance. Remove generated build output and retire or explicitly retain all session-created worktrees.--## Deferred work--New provider adapters, provider key storage redesign, automatic model retirement, rollout cohorts, translation bots, new API policy fields, mobile catalog convergence, and an admin catalog editor are separate extensions. They are unnecessary for adding supported models through the registry CMS and would increase this migration's regression surface.diff --git a/main.js b/main.jsindex b4a22d88d..a9cb5e263 100644--- a/main.js+++ b/main.js@@ -298,12 +298,6 @@ const dockManager = require("./src/helpers/dockManager");const autoStart = require("./src/helpers/autoStart");const IPCHandlers = require("./src/helpers/ipcHandlers");const CliBridge = require("./src/helpers/cliBridge");-const { createRegistryLoader } = require("./src/helpers/registryLoader");-const { registerRegistryIpc } = require("./src/helpers/registryIpc");-const { replaceRegistryData } = require("./src/models/registryData.js");-const registryTrustedKeys = require("./src/models/registryTrustedKeys.json");-let registryLoader = null;-let disposeRegistryIpc = null;const UpdateManager = require("./src/updater");const GlobeKeyManager = require("./src/helpers/globeKeyManager");const DevServerManager = require("./src/helpers/devServerManager");@@ -1159,28 +1153,6 @@ async function startApp() {// contend for its port or storage lock.await reapStaleSidecars();- // Only local signature/cache verification is awaited. Remote refresh starts- // later, so offline startup and settings migrations see a usable catalog.- registryLoader = createRegistryLoader({- cachePath: path.join(app.getPath("userData"), "model-registry.json"),- bundledSnapshot: {- data: require("./src/models/modelRegistryData.json"),- manifestVersion: require("./src/models/registryMetadata.json").manifestVersion,- },- trustedKeys: registryTrustedKeys,- appVersion: app.getVersion(),- applySnapshot: replaceRegistryData,- fetch: (...args) => net.fetch(...args),- onError: (error) =>- debugLogger.warn("Model registry update unavailable", { error: error.message }),- });- await registryLoader.start();- disposeRegistryIpc = registerRegistryIpc(ipcMain, (channel, snapshot) => {- for (const window of BrowserWindow.getAllWindows()) {- if (!window.isDestroyed()) window.webContents.send(channel, snapshot);- }- });-// Phase 1: Core managers + IPC handlers before windowsinitializeCoreManagers();await environmentManager.init();@@ -2133,9 +2105,6 @@ if (gotSingleInstanceLock) {}function performSyncTeardown() {- registryLoader?.stop();- disposeRegistryIpc?.();- disposeRegistryIpc = null;if (wakeRewarmTimer) {clearTimeout(wakeRewarmTimer);wakeRewarmTimer = null;diff --git a/package.json b/package.jsonindex b7377ca33..16763f17c 100644--- a/package.json+++ b/package.json@@ -77,12 +77,10 @@"lint": "eslint . && cd src && eslint .","test": "node --import tsx --test \"test/**/*.test.js\"","typecheck": "cd src && tsc --noEmit",- "quality-check": "npm run model-registry:verify && npm run format:check && npm run typecheck",+ "quality-check": "npm run format:check && npm run typecheck","i18n:check": "node scripts/check-i18n.js","preview": "cd src && vite preview",- "clean": "node cleanup.js",- "model-registry:verify": "node scripts/sync-model-registry.mjs --check",- "model-registry:sync": "node scripts/sync-model-registry.mjs"+ "clean": "node cleanup.js"},"keywords": ["dictation",diff --git a/preload.js b/preload.jsindex e104b67b0..1a9a11c60 100644--- a/preload.js+++ b/preload.js@@ -63,12 +63,6 @@ const registerListener = (channel, handlerFactory) => {};contextBridge.exposeInMainWorld("electronAPI", {- initialModelRegistrySnapshot: ipcRenderer.sendSync?.("model-registry-initial"),- getModelRegistry: () => ipcRenderer.invoke("get-model-registry"),- onModelRegistryUpdated: registerListener(- "model-registry-updated",- (callback) => (_event, snapshot) => callback(snapshot)- ),setOnboardingWindowMode: (mode) => ipcRenderer.invoke("onboarding-set-window-mode", mode),setOnboardingActive: (active) => ipcRenderer.invoke("onboarding-set-active", active),openPermissionGuide: (state) => ipcRenderer.invoke("permission-guide-open", state),diff --git a/scripts/sync-model-registry.mjs b/scripts/sync-model-registry.mjsdeleted file mode 100644index 076e3062c..000000000--- a/scripts/sync-model-registry.mjs+++ /dev/null@@ -1,101 +0,0 @@-#!/usr/bin/env node-import fs from "node:fs/promises";-import path from "node:path";-import { fileURLToPath } from "node:url";-import { createHash } from "node:crypto";-import { createRequire } from "node:module";-const require = createRequire(import.meta.url);-const { verifyEnvelope, MAX_ENVELOPE_BYTES } = require("../src/models/registryEnvelope.cjs");-const { validateManifest, assertCompatibleCatalog } = require("../src/models/registrySchema.cjs");-const pinnedKeys = require("../src/models/registryTrustedKeys.json");-const bundled = require("../src/models/modelRegistryData.json");-const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");-const output = path.join(root, "src/models");-const names = {- schema: "registrySchema.cjs",- envelope: "registryEnvelope.cjs",- selection: "registrySelection.js",-};-const sourceNames = {- schema: "schema.cjs",- envelope: "envelope.cjs",- selection: "registrySelection.js",-};-const hash = (bytes) => createHash("sha256").update(bytes).digest("hex");-const json = (value) => JSON.stringify(value, null, 2) + "\n";--export function createVendoredFiles({ bytes, revision, contracts, trustedKeys = pinnedKeys }) {- if (!/^[a-f0-9]{40}$/.test(revision))- throw new Error("Use an exact 40-character publication commit");- const manifest = validateManifest(verifyEnvelope(bytes, trustedKeys));- assertCompatibleCatalog(manifest.data, bundled);- const files = {};- for (const [key, name] of Object.entries(names)) {- if (hash(contracts[key]) !== manifest.contractHashes[key])- throw new Error(`Contract digest mismatch: ${key}`);- files[name] = contracts[key];- }- files["modelRegistryData.json"] = json(manifest.data);- files["registryBundle.json"] = json(JSON.parse(bytes));- files["registryMetadata.json"] = json({- schemaVersion: manifest.schemaVersion,- manifestVersion: manifest.manifestVersion,- publicationCommit: revision,- sourceCommit: manifest.sourceCommit,- contractHashes: manifest.contractHashes,- payloadSha256: hash(Buffer.from(JSON.parse(bytes).payload, "base64")),- });- return files;-}--async function fetchText(url) {- const response = await fetch(url, { signal: AbortSignal.timeout(15000), redirect: "error" });- if (!response.ok) throw new Error(`Registry source HTTP ${response.status}`);- const chunks = [];- let size = 0;- for await (const chunk of response.body) {- size += chunk.length;- if (size > MAX_ENVELOPE_BYTES) throw new Error("Registry source exceeds size limit");- chunks.push(Buffer.from(chunk));- }- return Buffer.concat(chunks).toString("utf8");-}--async function main() {- const check = process.argv.includes("--check");- const metadata = check- ? JSON.parse(await fs.readFile(path.join(output, "registryMetadata.json"), "utf8"))- : null;- const revision = check- ? metadata.publicationCommit- : process.argv[process.argv.indexOf("--revision") + 1];- if (!/^[a-f0-9]{40}$/.test(revision || ""))- throw new Error("Pass --revision <exact publication commit> or --check");- const base = "https://raw.githubusercontent.com/OpenWhispr/model-registry";- const bytes = check- ? await fs.readFile(path.join(output, "registryBundle.json"), "utf8")- : await fetchText(`${base}/${revision}/manifest.json`);- const manifest = validateManifest(verifyEnvelope(bytes, pinnedKeys));- const contracts = {};- for (const [key, name] of Object.entries(names)) {- contracts[key] = check- ? await fs.readFile(path.join(output, name), "utf8")- : await fetchText(`${base}/${manifest.sourceCommit}/lib/${sourceNames[key]}`);- }- const files = createVendoredFiles({ bytes, revision, contracts });- for (const [name, contents] of Object.entries(files)) {- if (check) {- if ((await fs.readFile(path.join(output, name), "utf8")) !== contents)- throw new Error(`Generated registry file differs: ${name}`);- } else await fs.writeFile(path.join(output, name), contents);- }- console.log(- `${check ? "Verified" : "Vendored"} signed model registry ${manifest.manifestVersion} from ${manifest.sourceCommit}`- );-}-if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {- main().catch((error) => {- console.error(error.message);- process.exitCode = 1;- });-}diff --git a/src/.prettierignore b/src/.prettierignoreindex 494e9b2cd..6544c1221 100644--- a/src/.prettierignore+++ b/src/.prettierignore@@ -1,6 +1,2 @@dist/data/emoji/--# Generated byte-for-byte from the signed model registry; verified by model-registry:verify.-models/registrySelection.js-models/modelRegistryData.jsondiff --git a/src/components/EnterpriseProviderConfig.tsx b/src/components/EnterpriseProviderConfig.tsxindex c80a4c8da..b75e70248 100644--- a/src/components/EnterpriseProviderConfig.tsx+++ b/src/components/EnterpriseProviderConfig.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";import { useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { Loader2, Search } from "./icons";@@ -92,9 +91,8 @@ function FieldHint({ children }: { children: React.ReactNode }) {}function useSuggestedModels(provider: "bedrock" | "vertex") {- useRegistryVersion();const { t } = useTranslation();- return (() => {+ return useMemo(() => {const providerData = REASONING_PROVIDERS[provider];if (!providerData?.models?.length) return [];const iconUrl = getProviderIcon(provider);@@ -107,7 +105,7 @@ function useSuggestedModels(provider: "bedrock" | "vertex") {icon: iconUrl,invertInDark,}));- })();+ }, [t, provider]);}type BedrockCatalogState =diff --git a/src/components/EnterpriseSection.tsx b/src/components/EnterpriseSection.tsxindex ccafab37c..f121395d0 100644--- a/src/components/EnterpriseSection.tsx+++ b/src/components/EnterpriseSection.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";import { useCallback } from "react";import { ProviderTabs } from "./ui/ProviderTabs";import EnterpriseProviderConfig from "./EnterpriseProviderConfig";@@ -30,7 +29,6 @@ export default function EnterpriseSection({setReasoningModel,setLocalReasoningProvider,}: EnterpriseSectionProps) {- useRegistryVersion();const azureDeploymentName = useSettingsStore((s) => s.azureDeploymentName);const bedrockRegion = useSettingsStore((s) => s.bedrockRegion);const policyState = usePolicySnapshot();diff --git a/src/components/LocalWhisperPicker.tsx b/src/components/LocalWhisperPicker.tsxindex 1ace14c6c..81387d2d6 100644--- a/src/components/LocalWhisperPicker.tsx+++ b/src/components/LocalWhisperPicker.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";import { useState, useEffect, useCallback, useMemo, useRef } from "react";import { useTranslation } from "react-i18next";import { DownloadProgressBar } from "./ui/DownloadProgressBar";@@ -31,10 +30,9 @@ export default function LocalWhisperPicker({className = "",variant = "settings",}: LocalWhisperPickerProps) {- const registryVersion = useRegistryVersion();const { t } = useTranslation();const [models, setModels] = useState<WhisperModel[]>([]);- const loadedRegistryVersion = useRef(-1);+ const hasLoadedRef = useRef(false);const downloadingModelRef = useRef<string | null>(null);const selectedModelRef = useRef(selectedModel);const onModelSelectRef = useRef(onModelSelect);@@ -78,8 +76,8 @@ export default function LocalWhisperPicker({}, [validateAndSelectModel]);useEffect(() => {- if (loadedRegistryVersion.current === registryVersion) return;- loadedRegistryVersion.current = registryVersion;+ if (hasLoadedRef.current) return;+ hasLoadedRef.current = true;window.electronAPI?.listWhisperModels()@@ -93,7 +91,7 @@ export default function LocalWhisperPicker({console.error("[LocalWhisperPicker] Failed to load models:", error);setModels([]);});- }, [validateAndSelectModel, registryVersion]);+ }, [validateAndSelectModel]);const {downloads,@@ -147,7 +145,7 @@ export default function LocalWhisperPicker({[showConfirmDialog, deleteModel, validateAndSelectModel, t]);- const progressDisplay = (() => {+ const progressDisplay = useMemo(() => {if (!downloadingModel) return null;const modelInfo = WHISPER_MODEL_INFO[downloadingModel];return (@@ -160,7 +158,7 @@ export default function LocalWhisperPicker({}}/>);- })();+ }, [activeDownload, downloadingModel]);const whisperIcon = getProviderIcon("whisper");diff --git a/src/components/ReasoningModelSelector.tsx b/src/components/ReasoningModelSelector.tsxindex 99364159a..cb8813673 100644--- a/src/components/ReasoningModelSelector.tsx+++ b/src/components/ReasoningModelSelector.tsx@@ -1,5 +1,4 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";-import { useState, useEffect, useCallback } from "react";+import { useState, useEffect, useCallback, useMemo } from "react";import { useTranslation } from "react-i18next";import type {LlamaServerStatus,@@ -345,7 +344,6 @@ export default function ReasoningModelSelector({setReasoningMode: setReasoningModeProp,mode,}: ReasoningModelSelectorProps) {- useRegistryVersion();const { t } = useTranslation();const openaiApiKey = useSettingsStore((s) => s.openaiApiKey);const setOpenaiApiKey = useSettingsStore((s) => s.setOpenaiApiKey);@@ -370,20 +368,23 @@ export default function ReasoningModelSelector({[policyState]);- const cloudProviderTabs = (() =>- filterByokProviderOptionsByPolicy(- CLOUD_PROVIDER_IDS.map((id): ProviderTabItem => ({- id,- name:- id === "custom"- ? t("reasoning.custom.providerName")- : id === OPENROUTER_TAB- ? "OpenRouter"- : REASONING_PROVIDERS[id as keyof typeof REASONING_PROVIDERS]?.name || id,- })),- "llm",- policyState- ))();+ const cloudProviderTabs = useMemo(+ () =>+ filterByokProviderOptionsByPolicy(+ CLOUD_PROVIDER_IDS.map((id): ProviderTabItem => ({+ id,+ name:+ id === "custom"+ ? t("reasoning.custom.providerName")+ : id === OPENROUTER_TAB+ ? "OpenRouter"+ : REASONING_PROVIDERS[id as keyof typeof REASONING_PROVIDERS]?.name || id,+ })),+ "llm",+ policyState+ ),+ [policyState, t]+ );const cloudProviders = cloudProviderTabs;const cloudProviderFallback = reconcileProviderSelection(selectedCloudProvider, cloudProviders);const displayedCloudProvider = cloudProviderFallback ?? selectedCloudProvider;@@ -406,7 +407,7 @@ export default function ReasoningModelSelector({? selectedMode: (modeTabs[0]?.id as "cloud" | "local" | undefined));- const localProviders = (() => {+ const localProviders = useMemo<LocalProvider[]>(() => {return modelRegistry.getAllProviders().map((provider) => ({id: provider.id,name: provider.name,@@ -421,9 +422,9 @@ export default function ReasoningModelSelector({recommended: model.recommended,})),}));- })();+ }, []);- const openaiModelOptions = (() => {+ const openaiModelOptions = useMemo<CloudModelOption[]>(() => {const { icon, invertInDark } = getRemoteProviderIcon("openai");return REASONING_PROVIDERS.openai.models.map((model) => ({...model,@@ -433,9 +434,9 @@ export default function ReasoningModelSelector({icon,invertInDark,}));- })();+ }, [t]);- const selectedCloudModels = (() => {+ const selectedCloudModels = useMemo<CloudModelOption[]>(() => {if (displayedCloudProvider === "openai") return openaiModelOptions;if (displayedCloudProvider === "custom" || displayedCloudProvider === OPENROUTER_TAB) return [];@@ -456,12 +457,10 @@ export default function ReasoningModelSelector({icon: iconUrl,invertInDark,}));- })();+ }, [displayedCloudProvider, openaiModelOptions, tinfoilModels, t]);useEffect(() => {- // Only a committed provider change resets browsing. Catalog refreshes- // update model cards without jumping back to the saved provider tab.- const localProviderIds = modelRegistry.getAllProviders().map((p) => p.id);+ const localProviderIds = localProviders.map((p) => p.id);if (localProviderIds.includes(localReasoningProvider)) {setSelectedMode("local");setSelectedLocalProvider(localReasoningProvider);@@ -469,7 +468,7 @@ export default function ReasoningModelSelector({setSelectedMode("cloud");setSelectedCloudProvider(localReasoningProvider);}- }, [localReasoningProvider]);+ }, [localProviders, localReasoningProvider]);// A selection commits only on an explicit click: the model together with// the provider tab it was clicked under. Tab switching is pure browsing.diff --git a/src/components/RequiredModelsBanner.tsx b/src/components/RequiredModelsBanner.tsxindex 43cfaa9ab..05b157c44 100644--- a/src/components/RequiredModelsBanner.tsx+++ b/src/components/RequiredModelsBanner.tsx@@ -1,5 +1,4 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";-import { useCallback, useState } from "react";+import { useCallback, useMemo, useState } from "react";import { AlertTriangle } from "./icons";import { useTranslation } from "react-i18next";import { Button } from "./ui/button";@@ -18,7 +17,6 @@ import { getParakeetModels, getWhisperModels } from "../models/ModelRegistry";* if one goes missing again. Deliberately a nag surface, not a hard block.*/export function RequiredModelsBanner() {- useRegistryVersion();const { t } = useTranslation();const { missing, loading, refresh } = useRequiredLocalModels();const whisperDownload = useModelDownload({ modelType: "whisper", onDownloadComplete: refresh });@@ -27,10 +25,13 @@ export function RequiredModelsBanner() {const parakeetCatalog = getParakeetModels();const whisperCatalog = getWhisperModels();- const missingNames = (() =>- missing- .map((modelId) => (parakeetCatalog[modelId] ?? whisperCatalog[modelId])?.name ?? modelId)- .join(", "))();+ const missingNames = useMemo(+ () =>+ missing+ .map((modelId) => (parakeetCatalog[modelId] ?? whisperCatalog[modelId])?.name ?? modelId)+ .join(", "),+ [missing, parakeetCatalog, whisperCatalog]+ );const downloadMissing = useCallback(async () => {setDownloadingAll(true);diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex d721f5f2f..0a8f8ce1c 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";import React, { useState, useCallback, useEffect, useRef } from "react";import { useTranslation } from "react-i18next";import { Button } from "./ui/button";@@ -1145,7 +1144,6 @@ export default function SettingsPage({onNavigateToSection,initialSubTab,}: SettingsPageProps) {- useRegistryVersion();const { isCompact } = useSettingsLayout();const {confirmDialog,diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsxindex e682c1892..73338e9ba 100644--- a/src/components/TranscriptionModelPicker.tsx+++ b/src/components/TranscriptionModelPicker.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../hooks/useRegistryVersion";import { useState, useEffect, useCallback, useMemo, useRef, type ReactNode } from "react";import { useTranslation } from "react-i18next";import { Button } from "./ui/button";@@ -440,7 +439,6 @@ export default function TranscriptionModelPicker({mode,streamingOnly = false,}: TranscriptionModelPickerProps) {- const registryVersion = useRegistryVersion();const { t } = useTranslation();const switchCloudTranscriptionProvider = useSettingsStore((s) => s.switchCloudTranscriptionProvider@@ -563,17 +561,17 @@ export default function TranscriptionModelPicker({// providers note recording can actually run — not every streaming provider.// Upload is always http-batch, and the realtime-only providers have no batch// route at all (transcriptionRoute fails them closed), so they are hidden there.- const availableCloudProviders = (() => {+ const availableCloudProviders = useMemo(() => {if (streamingOnly) return getMeetingStreamingTranscriptionProviders();const providers = getTranscriptionProviders();if (transcriptionContext !== "upload") return providers;return providers.filter((provider) => !STREAMING_ONLY_PROVIDERS.has(provider.id));- })();+ }, [streamingOnly, transcriptionContext]);const cloudProviders = useMemo(() => filterByokProviderOptionsByPolicy(availableCloudProviders, "transcription", policyState),[availableCloudProviders, policyState]);- const cloudProviderTabs = (() => {+ const cloudProviderTabs = useMemo(() => {const availableIds = new Set(availableCloudProviders.map((p) => p.id));if (!streamingOnly) availableIds.add("custom");const tabs = CLOUD_PROVIDER_TABS.filter((provider) => availableIds.has(provider.id)).map(@@ -583,7 +581,7 @@ export default function TranscriptionModelPicker({: provider);return filterByokProviderOptionsByPolicy(tabs, "transcription", policyState);- })();+ }, [availableCloudProviders, policyState, streamingOnly, t]);const localProviderTabs = useMemo(() =>LOCAL_PROVIDER_TABS.map((provider) =>@@ -735,11 +733,6 @@ export default function TranscriptionModelPicker({useEffect(() => {loadParakeetModelsRef.current = loadParakeetModels;}, [loadParakeetModels]);- useEffect(() => {- hasLoadedRef.current = false;- hasLoadedParakeetRef.current = false;- }, [registryVersion]);-useEffect(() => {if (!effectiveLocal) return;@@ -750,7 +743,7 @@ export default function TranscriptionModelPicker({hasLoadedParakeetRef.current = true;loadParakeetModelsRef.current?.();}- }, [effectiveLocal, internalLocalProvider, registryVersion]);+ }, [effectiveLocal, internalLocalProvider]);useEffect(() => {if (effectiveLocal) return;@@ -1115,7 +1108,7 @@ export default function TranscriptionModelPicker({}));}, [currentCloudProvider, displayedCloudProvider, t]);- const progressDisplay = (() => {+ const progressDisplay = useMemo(() => {if (!effectiveLocal) return null;const activeDownloads = [@@ -1146,7 +1139,7 @@ export default function TranscriptionModelPicker({})}</div>);- })();+ }, [effectiveLocal, whisperDownloads, parakeetDownloads]);const renderLocalModels = () => {const modelsToRender =diff --git a/src/components/notes/UploadAudioView.tsx b/src/components/notes/UploadAudioView.tsxindex f220710b9..0b2d3114b 100644--- a/src/components/notes/UploadAudioView.tsx+++ b/src/components/notes/UploadAudioView.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import React, { useState, useRef, useEffect } from "react";import { useTranslation } from "react-i18next";import {@@ -141,7 +140,6 @@ interface UploadAudioViewProps {}export default function UploadAudioView({ onNoteCreated, onOpenSettings }: UploadAudioViewProps) {- useRegistryVersion();const { t } = useTranslation();const [state, setState] = useState<UploadState>("idle");const [file, setFile] = useState<{diff --git a/src/components/onboarding/BackgroundModelDownloadTray.tsx b/src/components/onboarding/BackgroundModelDownloadTray.tsxindex 9ee190012..a5871a23e 100644--- a/src/components/onboarding/BackgroundModelDownloadTray.tsx+++ b/src/components/onboarding/BackgroundModelDownloadTray.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties } from "react";import { useTranslation } from "react-i18next";import { ProviderIcon } from "../ui/ProviderIcon";@@ -148,7 +147,6 @@ export default function BackgroundModelDownloadTray({}: {placement?: "onboarding" | "control-panel";}) {- useRegistryVersion();const { t } = useTranslation();const [downloads, setDownloads] = useState<Record<string, ActiveDownload>>({});const [hydrated, setHydrated] = useState(false);diff --git a/src/components/onboarding/ProviderSetupStep.tsx b/src/components/onboarding/ProviderSetupStep.tsxindex 931f5da9a..2500e8738 100644--- a/src/components/onboarding/ProviderSetupStep.tsx+++ b/src/components/onboarding/ProviderSetupStep.tsx@@ -1,5 +1,4 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";-import { useCallback, useEffect, useRef, useState, type ReactNode } from "react";+import { useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react";import { AudioLines, Check, CircleCheck, Download, MousePointer2 } from "../icons";import { useTranslation } from "react-i18next";import ProviderConnectionTest from "./ProviderConnectionTest";@@ -326,7 +325,6 @@ export function ByokProviderStep({resumeState?: OnboardingByokDraft;onResumeStateChange?: (state: OnboardingByokDraft) => void;}) {- const registryVersion = useRegistryVersion();const { t } = useTranslation();const store = useSettingsStore();const policy = usePolicySnapshot();@@ -335,12 +333,15 @@ export function ByokProviderStep({const selfHostedAllowed =isModeAllowedByPolicy(policy, scope, "self-hosted") &&isProviderAllowedByPolicy(policy, scope, "custom");- const providers = (() =>- filterByokProviderOptionsByPolicy<HostedProvider>(- assistant ? modelRegistry.getCloudProviders() : getTranscriptionProviders(),- scope,- policy- ))();+ const providers = useMemo(+ () =>+ filterByokProviderOptionsByPolicy<HostedProvider>(+ assistant ? modelRegistry.getCloudProviders() : getTranscriptionProviders(),+ scope,+ policy+ ),+ [assistant, policy, scope]+ );// The session's draft wins; without one (onboarding was restarted, or an older build// left it blank) the step reopens on what the user already saved, the same order// LocalModelSetupStep uses. The draft never records keys, so the stored custom key is@@ -791,7 +792,6 @@ export function LocalModelSetupStep({resumeState?: OnboardingLocalModelDraft;onResumeStateChange?: (state: OnboardingLocalModelDraft) => void;}) {- const registryVersion = useRegistryVersion();const { t } = useTranslation();const store = useSettingsStore();const assistant = stepId === "local-assistant";@@ -863,9 +863,9 @@ export function LocalModelSetupStep({useEffect(() => {void refreshDownloadedModels();- }, [refreshDownloadedModels, registryVersion]);+ }, [refreshDownloadedModels]);- const providerOptions = (() => {+ const providerOptions = useMemo(() => {if (assistant) {return modelRegistry.getAllProviders().map((provider) => ({id: provider.id,@@ -879,9 +879,9 @@ export function LocalModelSetupStep({icon: organization.id === "whisper" ? "openai" : organization.id,}));- })();+ }, [assistant]);- const models = (() => {+ const models = useMemo(() => {if (assistant) {return (modelRegistry.getProvider(selectedProvider)?.models ?? []).map((model) => ({id: model.id,@@ -909,7 +909,7 @@ export function LocalModelSetupStep({recommended: model.recommended,icon: "openai",}));- })();+ }, [assistant, selectedProvider]);useEffect(() => {if (selectedModel && !models.some((model) => model.id === selectedModel)) {diff --git a/src/components/onboarding/RequiredModelDownloadStep.tsx b/src/components/onboarding/RequiredModelDownloadStep.tsxindex 0f1b4858c..9f20cfb1d 100644--- a/src/components/onboarding/RequiredModelDownloadStep.tsx+++ b/src/components/onboarding/RequiredModelDownloadStep.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { useCallback, useEffect, useMemo, useRef } from "react";import { AlertCircle, Check } from "../icons";import { useTranslation } from "react-i18next";@@ -35,7 +34,6 @@ export function RequiredModelDownloadStep({refresh,onProceed,}: RequiredModelDownloadStepProps) {- useRegistryVersion();const { t } = useTranslation();const whisperCatalog = getWhisperModels();const parakeetCatalog = getParakeetModels();diff --git a/src/components/onboarding/SetupChoiceStep.tsx b/src/components/onboarding/SetupChoiceStep.tsxindex e28735eb1..87041a727 100644--- a/src/components/onboarding/SetupChoiceStep.tsx+++ b/src/components/onboarding/SetupChoiceStep.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { Fragment, forwardRef, useRef, useState } from "react";import {AlertCircle,@@ -124,7 +123,6 @@ export default function SetupChoiceStep({onSelect,onRequestAuthentication,}: SetupChoiceStepProps) {- useRegistryVersion();const { t } = useTranslation();const policy = usePolicySnapshot();const [pending, setPending] = useState<WarningSetupMode | null>(null);diff --git a/src/components/settings/InferenceConfigEditor.tsx b/src/components/settings/InferenceConfigEditor.tsxindex 80a366504..239df3444 100644--- a/src/components/settings/InferenceConfigEditor.tsx+++ b/src/components/settings/InferenceConfigEditor.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { useCallback } from "react";import { useShallow } from "zustand/react/shallow";import { useTranslation } from "react-i18next";@@ -58,7 +57,6 @@ export default function InferenceConfigEditor({onModeChange,allowedModes,}: InferenceConfigEditorProps) {- useRegistryVersion();const { t } = useTranslation();const policyState = usePolicySnapshot();const config = useSettingsStore(diff --git a/src/components/settings/MeetingSettings.tsx b/src/components/settings/MeetingSettings.tsxindex 8d4c106b0..b71c3895d 100644--- a/src/components/settings/MeetingSettings.tsx+++ b/src/components/settings/MeetingSettings.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { useCallback } from "react";import { useTranslation } from "react-i18next";import { Cloud, Key, Cpu, Network } from "../icons";@@ -51,7 +50,6 @@ function MeetingEchoCancellationRow() {const noop = () => {};export function MeetingTranscriptionPanel() {- useRegistryVersion();const { t } = useTranslation();const policySnapshot = usePolicySnapshot();diff --git a/src/components/ui/PromptStudio.tsx b/src/components/ui/PromptStudio.tsxindex 701ccbad7..62339e043 100644--- a/src/components/ui/PromptStudio.tsx+++ b/src/components/ui/PromptStudio.tsx@@ -1,4 +1,3 @@-import { useRegistryVersion } from "../../hooks/useRegistryVersion";import { useState } from "react";import { useTranslation } from "react-i18next";import { useShallow } from "zustand/react/shallow";@@ -53,7 +52,6 @@ const PROVIDER_CONFIG: Record<string, ProviderConfig> = {};export default function PromptStudio({ className = "", kind = "cleanup" }: PromptStudioProps) {- useRegistryVersion();const { t } = useTranslation();const [activeTab, setActiveTab] = useState<"current" | "edit" | "test">("current");const [testText, setTestText] = useState(() =>diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.jsindex 7adda5caf..e5dcd6392 100644--- a/src/helpers/audioManager.js+++ b/src/helpers/audioManager.js@@ -150,8 +150,7 @@ import {isSelectionQuestionResponse,} from "./selectionEditing";import {- isOpenAiRealtimeSelection,- isGeminiLiveSelection,+ REALTIME_MODELS,defaultStreamingProviderName,orukeetDetectedLanguageFields,resolveManagedOrukeetRoute,@@ -4191,13 +4190,11 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);const selfHostedModel = resolveSelfHostedTranscriptionModel(s);if (selfHostedModel) return selfHostedModel;const provider = s.cloudTranscriptionProvider || "openai";- // A streaming selection needs the provider's batch fallback. A selected- // compatible batch model must retain its own ID, including live additions.+ // Tinfoil and Gemini pin their batch model in the registry rather than in+ // settings: their streaming model has no batch endpoint, so a streaming+ // fallback that reused the selected model would POST an unusable id.const batchModel = getBatchTranscriptionModel(provider);- const selectedModel = getTranscriptionProvider(provider)?.models.find(- (model) => model.id === s.cloudTranscriptionModel?.trim()- );- if (batchModel && (!selectedModel || selectedModel.streaming)) return batchModel;+ if (batchModel) return batchModel;return resolveByokModel(provider, s.cloudTranscriptionModel);} catch (error) {return "gpt-transcribe";@@ -4600,7 +4597,9 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);// Gemini Live streams over its own WSS on either credential; the batch// Gemini model on the same provider stays on HTTP.if (s.cloudTranscriptionProvider === "gemini") {- if (!isGeminiLiveSelection(s)) return false;+ const provider = getTranscriptionProvider("gemini");+ const model = provider?.models.find((m) => m.id === s.cloudTranscriptionModel);+ if (!model?.streaming) return false;if (s.cloudTranscriptionMode === "byok") return !!s.geminiApiKey;return !!(isSignedInOverride ?? s.isSignedIn);}@@ -4622,7 +4621,7 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);return false;}- if (isOpenAiRealtimeSelection(s)) {+ if (REALTIME_MODELS.has(s.cloudTranscriptionModel)) {// Realtime WS is OpenAI-only — other providers fall through to HTTP.if ((s.cloudTranscriptionProvider || "openai") !== "openai") return false;if (s.cloudTranscriptionMode === "byok") return !!s.openaiApiKey;diff --git a/src/helpers/deepgramStreaming.js b/src/helpers/deepgramStreaming.jsindex dfe892342..ba432466f 100644--- a/src/helpers/deepgramStreaming.js+++ b/src/helpers/deepgramStreaming.js@@ -1,6 +1,5 @@const WebSocket = require("ws");const debugLogger = require("./debugLogger");-const { getRegistryData } = require("../models/registryData.js");const SAMPLE_RATE = 16000;const WEBSOCKET_TIMEOUT_MS = 30000;@@ -73,23 +72,6 @@ const SILENCE_FRAME = Buffer.alloc((SAMPLE_RATE / 10) * 2);// only as `Token`, `Bearer` only for what /v1/auth/grant mints (managed). #2140const authorizationHeader = (mode, token) => `${mode === "byok" ? "Token" : "Bearer"} ${token}`;-function resolveModel(options) {- const selected = typeof options.model === "string" ? options.model.trim() : "";- if (- options.mode === "byok" &&- selected !== "nova-3" &&- getRegistryData()- .transcriptionProviders.find((provider) => provider.id === "deepgram")- ?.models.some((model) => model.id === selected && model.streaming)- ) {- return selected;- }- // Keep the existing Nova-3 language fallback and managed routing contract.- const lang = options.language && options.language !== "auto" ? options.language : null;- const baseLang = lang ? lang.split("-")[0].toLowerCase() : null;- return !lang || NOVA3_LANGUAGES.has(lang) || NOVA3_LANGUAGES.has(baseLang) ? "nova-3" : "nova-2";-}-// Everything buildWebSocketUrl pins on the socket, folded the way it folds it, so// a warm connection can be compared against the session that wants to ride it.// Dictation warms on the UI language before it can know a translation wants the@@ -99,7 +81,6 @@ const urlIdentity = (options) =>options.sampleRate || SAMPLE_RATE,options.language && options.language !== "auto" ? options.language : null,(options.keyterms || []).filter(Boolean),- resolveModel(options),]);class DeepgramStreaming {@@ -156,10 +137,15 @@ class DeepgramStreaming {buildWebSocketUrl(options) {const sampleRate = options.sampleRate || SAMPLE_RATE;const lang = options.language && options.language !== "auto" ? options.language : null;- const model = resolveModel(options);+ const baseLang = lang ? lang.split("-")[0].toLowerCase() : null;+ const useNova3 = !lang || NOVA3_LANGUAGES.has(lang) || NOVA3_LANGUAGES.has(baseLang);+ // options.model is intentionally ignored: the registry only offers nova-3,+ // and honouring a user-pinned family would defeat the nova-2 downgrade that+ // keeps languages outside NOVA3_LANGUAGES working.+ const model = useNova3 ? "nova-3" : "nova-2";this.currentModel = model;- if (model === "nova-2") {+ if (!useNova3) {debugLogger.debug("Deepgram falling back to nova-2", { language: lang });}@@ -176,7 +162,7 @@ class DeepgramStreaming {}if (Array.isArray(options.keyterms)) {// Nova-3 uses "keyterm", Nova-2 uses "keywords"- const paramName = model.startsWith("nova-2") ? "keywords" : "keyterm";+ const paramName = useNova3 ? "keyterm" : "keywords";for (const term of options.keyterms) {if (term) params.append(paramName, term);}@@ -631,7 +617,6 @@ class DeepgramStreaming {language: options.language,keyterms: options.keyterms,mode: options.mode,- model: options.model,};this.accumulatedText = "";this.finalSegments = [];diff --git a/src/helpers/dictationStreamingRouting.js b/src/helpers/dictationStreamingRouting.jsindex bba980c4a..8421db5be 100644--- a/src/helpers/dictationStreamingRouting.js+++ b/src/helpers/dictationStreamingRouting.js@@ -6,7 +6,7 @@// allowlist rejected undefined). Pure module, mirrors meetingTranscriptionRouting.import { isOrukeetStreaming } from "./selfHostedTranscription.js";import { STREAMING_ONLY_PROVIDERS } from "./transcriptionRoute.ts";-import { registryData as modelRegistryData, subscribeRegistry } from "../models/registryData.js";+import modelRegistryData from "../models/modelRegistryData.json" with { type: "json" };export const ORUKEET_MODEL = "orukeet-v0.1.0";const ORUKEET_LANGUAGES = new Set(@@ -58,46 +58,13 @@ export function orukeetDetectedLanguageFields(final) {};}-export function isRegistryStreamingModel(providerId, modelId) {- return (- modelRegistryData.transcriptionProviders- .find((provider) => provider.id === providerId)- ?.models.some((model) => model.id === modelId && model.streaming) ?? false- );-}-const MANAGED_REALTIME_MODELS = new Set(["gpt-4o-mini-transcribe", "gpt-4o-transcribe"]);-export const REALTIME_MODELS = new Set();-export function isOpenAiRealtimeSelection(settings) {- return settings.cloudTranscriptionMode === "byok"- ? (settings.cloudTranscriptionProvider || "openai") === "openai" &&- REALTIME_MODELS.has(settings.cloudTranscriptionModel)- : MANAGED_REALTIME_MODELS.has(settings.cloudTranscriptionModel);-}-function refreshRealtimeModels() {- REALTIME_MODELS.clear();- for (const model of modelRegistryData.transcriptionProviders.find(- (provider) => provider.id === "openai"- )?.models || []) {- if (model.streaming) REALTIME_MODELS.add(model.id);- }-}-refreshRealtimeModels();-subscribeRegistry(refreshRealtimeModels);+export const REALTIME_MODELS = new Set(["gpt-4o-mini-transcribe", "gpt-4o-transcribe"]);// REALTIME_MODELS is the OpenAI-only shortcut (it forces "openai-realtime"), so// Gemini's live model routes on its own. Keying on the model id and not the// provider is required: the batch model on the same provider is HTTP-only.export const GEMINI_LIVE_MODEL = "gemini-3.5-transcribe-live";-export function isGeminiLiveSelection(settings) {- return (- settings.cloudTranscriptionProvider === "gemini" &&- (settings.cloudTranscriptionMode === "byok"- ? isRegistryStreamingModel("gemini", settings.cloudTranscriptionModel)- : settings.cloudTranscriptionModel === GEMINI_LIVE_MODEL)- );-}-export function defaultStreamingProviderName(context) {return context === "notes" ? "deepgram" : "openai-realtime";}@@ -137,7 +104,10 @@ export function resolveStreamingProviderName({ settings, context, sttConfig, lan) {return "corti";}- if (isGeminiLiveSelection(settings)) {+ if (+ settings.cloudTranscriptionProvider === "gemini" &&+ settings.cloudTranscriptionModel === GEMINI_LIVE_MODEL+ ) {return "gemini";}// Realtime-only providers have no batch endpoint, so BYOK selection alone@@ -150,7 +120,7 @@ export function resolveStreamingProviderName({ settings, context, sttConfig, lan) {return settings.cloudTranscriptionProvider;}- if (isOpenAiRealtimeSelection(settings)) {+ if (REALTIME_MODELS.has(settings.cloudTranscriptionModel)) {return "openai-realtime";}return sttConfig?.streamingProvider || defaultStreamingProviderName(context);diff --git a/src/helpers/downloadUtils.js b/src/helpers/downloadUtils.jsindex b1fb5b825..35b3773df 100644--- a/src/helpers/downloadUtils.js+++ b/src/helpers/downloadUtils.js@@ -1,7 +1,6 @@const fs = require("fs");const { promises: fsPromises } = require("fs");const path = require("path");-const { createHash } = require("node:crypto");const { net } = require("electron");const { execFile } = require("child_process");const { pipeline } = require("stream");@@ -120,7 +119,7 @@ function downloadAttempt(url, tempPath, options) {signal.onAbort = onAbort;}- request = net.request({ url, method: "GET", useSessionCookies: false });+ request = net.request({ url, method: "GET" });for (const [name, value] of Object.entries(headers)) {request.setHeader(name, value);}@@ -265,21 +264,6 @@ async function fetchJson(url, options = {}) {return response.json();}-async function verifyFileSha256(filePath, expectedSha256, signal) {- if (!expectedSha256) return;- if (!/^[a-f0-9]{64}$/.test(expectedSha256)) throw new Error("Invalid expected SHA-256");- const hash = createHash("sha256");- for await (const chunk of fs.createReadStream(filePath)) {- if (signal?.aborted) throw Object.assign(new Error("Download cancelled"), { isAbort: true });- hash.update(chunk);- }- if (hash.digest("hex") !== expectedSha256) {- throw Object.assign(new Error("Model SHA-256 verification failed"), {- code: "ERR_MODEL_INTEGRITY",- });- }-}-async function downloadFile(url, destPath, options = {}) {const { onProgress, maxRetries = DEFAULT_MAX_RETRIES, signal, expectedSize = 0 } = options;@@ -327,9 +311,6 @@ async function downloadFile(url, destPath, options = {}) {expectedSize,});- await verifyFileSha256(tempPath, options.expectedSha256, signal);- if (signal?.aborted) throw Object.assign(new Error("Download cancelled"), { isAbort: true });-// Atomic move to final pathtry {await fsPromises.rename(tempPath, destPath);@@ -544,7 +525,6 @@ async function findFiles(dir, pattern, maxDepth = 5, depth = 0) {module.exports = {downloadFile,- verifyFileSha256,fetchJson,createDownloadSignal,createDownloadInProgressError,diff --git a/src/helpers/geminiLiveStreaming.js b/src/helpers/geminiLiveStreaming.jsindex 31825f5ff..aa550fdbc 100644--- a/src/helpers/geminiLiveStreaming.js+++ b/src/helpers/geminiLiveStreaming.js@@ -1,7 +1,6 @@const WebSocket = require("ws");const debugLogger = require("./debugLogger");const { computePcm16Rms } = require("../utils/audioUtils");-const { getRegistryData } = require("../models/registryData.js");const SAMPLE_RATE = 16000;const WEBSOCKET_TIMEOUT_MS = 15000;@@ -20,15 +19,10 @@ const MAX_CUSTOM_VOCABULARY = 100;const TURN_REOPEN_RMS = 0.012;const GEMINI_LIVE_MODEL = "gemini-3.5-transcribe-live";-function resolveGeminiLiveModel({ model, mode } = {}) {- if (mode !== "byok" || typeof model !== "string") return GEMINI_LIVE_MODEL;- const selected = model.trim();- const registered = getRegistryData()- .transcriptionProviders.find((provider) => provider.id === "gemini")- ?.models.some((entry) => entry.id === selected && entry.streaming);- // Keep legacy Gemini IDs usable; new IDs are scoped to the verified catalog.- return registered || selected.startsWith("gemini-") ? selected : GEMINI_LIVE_MODEL;-}+// In managed mode the model comes from the BYOK-shaped settings, which still+// hold another provider's id, so anything but a Gemini id is ignored.+const resolveLiveModel = (model) =>+ model && model.startsWith("gemini-") ? model : GEMINI_LIVE_MODEL;const WS_BASE = "wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage";@@ -126,7 +120,7 @@ class GeminiLiveStreaming {return buildGeminiLiveUrl(options);}- buildSetupMessage({ model, mode, language, keyterms } = {}) {+ buildSetupMessage({ model, language, keyterms } = {}) {const customVocabulary = (keyterms || []).map((term) => String(term).trim()).filter(Boolean)@@ -140,7 +134,7 @@ class GeminiLiveStreaming {return {setup: {- model: `models/${resolveGeminiLiveModel({ model, mode })}`,+ model: `models/${resolveLiveModel(model)}`,generationConfig: { responseModalities: ["TEXT"] },inputAudioTranscription,},@@ -164,7 +158,7 @@ class GeminiLiveStreaming {this.completedSegments = [];this.openTurnPartial = "";this.audioBytesSent = 0;- this.currentModel = resolveGeminiLiveModel(options);+ this.currentModel = resolveLiveModel(options.model);this._connectionLossNotified = false;this._audioStreamEndSentAt = null;this._turnEnded = false;@@ -505,9 +499,4 @@ class GeminiLiveStreaming {}}-module.exports = {- GeminiLiveStreaming,- buildGeminiLiveUrl,- GEMINI_LIVE_MODEL,- resolveGeminiLiveModel,-};+module.exports = { GeminiLiveStreaming, buildGeminiLiveUrl, GEMINI_LIVE_MODEL };diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex b6d8693d8..fc3f3839e 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -53,10 +53,10 @@ const { createNoteAttendeesLookup, searchContacts } = require("./connectors/cont// The renderer's ModelRegistry is not main-loadable; the raw registry data is// packaged, and the route resolver only needs {id, baseUrl} per provider.const transcriptionProviderBaseUrls = () =>- require("../models/registryData.js").registryData.transcriptionProviders;+ require("../models/modelRegistryData.json").transcriptionProviders;// Classified errors show the provider's display name; routes only carry its id.const transcriptionProviderName = (id) =>- require("../models/registryData.js").registryData.transcriptionProviders.find((p) => p.id === id)+ require("../models/modelRegistryData.json").transcriptionProviders.find((p) => p.id === id)?.name || id;// ipcMain.handle keeps only the message when a promise rejects, dropping custom// props — proxy handlers return the classified fields so the renderer can@@ -108,11 +108,7 @@ const HyprlandShortcutManager = require("./hyprlandShortcut");const AssemblyAiStreaming = require("./assemblyAiStreaming");const { i18nMain, changeLanguage } = require("./i18nMain");const DeepgramStreaming = require("./deepgramStreaming");-const {- GeminiLiveStreaming,- GEMINI_LIVE_MODEL,- resolveGeminiLiveModel,-} = require("./geminiLiveStreaming");+const { GeminiLiveStreaming, GEMINI_LIVE_MODEL } = require("./geminiLiveStreaming");const CortiStreaming = require("./cortiStreaming");const OpenAIRealtimeStreaming = require("./openaiRealtimeStreaming");const { getCortiToken } = require("./cortiAuth");@@ -9679,18 +9675,7 @@ class IPCHandlers {return warmup;});- let dictationStartInProgress = false;- let dictationBufferStartAudio = false;- let dictationStartAudio = [];- let dictationStartAudioBytes = 0;- const DICTATION_START_AUDIO_MAX = 3 * 16000 * 2;-ipcMain.handle("dictation-realtime-start", async (event, options = {}) => {- if (dictationStartInProgress) return { success: false, error: "Operation in progress" };- dictationStartInProgress = true;- // OpenAI and Tinfoil finish setup without audio. Keep the first frames- // away from an older warmup while a different model is being selected.- dictationBufferStartAudio = options.provider !== "orukeet";try {clearDictationIdleTimer();this._dictationPreviewEnabled = !!options.preview;@@ -9700,27 +9685,13 @@ class IPCHandlers {) {await connectDictationStreaming(event, options);}- for (const buffer of dictationStartAudio) this._dictationStreaming?.sendAudio(buffer);return { success: true };} catch (err) {return streamingStartFailure(err);- } finally {- dictationStartInProgress = false;- dictationBufferStartAudio = false;- dictationStartAudio = [];- dictationStartAudioBytes = 0;}});ipcMain.on("dictation-realtime-send", (_event, buffer) => {- if (dictationBufferStartAudio) {- const bytes = Buffer.from(buffer);- if (dictationStartAudioBytes + bytes.length <= DICTATION_START_AUDIO_MAX) {- dictationStartAudio.push(bytes);- dictationStartAudioBytes += bytes.length;- }- return;- }this._dictationStreaming?.sendAudio(Buffer.from(buffer));});@@ -11641,11 +11612,6 @@ class IPCHandlers {let geminiStreamingStartInProgress = false;let geminiSendDropCount = 0;- let geminiStartAudio = [];- let geminiStartAudioBytes = 0;- // Match the client's three-second cold-start bound. A model-changing start- // owns these frames, even while a previous warm handshake is finishing.- const GEMINI_START_AUDIO_MAX = 3 * 16000 * 2;// One handshake at a time. A start that raced an in-flight warmup used to// clear the cold-start buffer, spend a second single-use managed token and// report success while the warmup's handshake (and its failure) were still@@ -11670,15 +11636,10 @@ class IPCHandlers {return streaming;};- // Managed tokens are constrained to the server's existing model. BYOK can- // select newly published compatible models, each requiring its own socket.- const geminiConnectionModel = resolveGeminiLiveModel;- // A warm socket cannot cross credentials, modes, or selected models.+ // What a Gemini connection authenticated with: a managed one never serves a+ // BYOK start or the reverse, and a BYOK one is not reused after a key save.const geminiConnectionKey = (options) =>- JSON.stringify([- options.mode === "byok" ? `byok:${credentialGeneration}` : "managed",- geminiConnectionModel(options),- ]);+ options.mode === "byok" ? `byok:${credentialGeneration}` : "managed";const connectGeminiStreaming = (event, options) => {if (geminiConnectInFlight) return geminiConnectInFlight;@@ -11694,7 +11655,6 @@ class IPCHandlers {const token = await fetchRealtimeToken(event, tokenOptions);await streaming.connect({...options,- model: geminiConnectionModel(options),token,refreshToken: () => fetchRealtimeToken(event, tokenOptions),});@@ -11726,8 +11686,6 @@ class IPCHandlers {}geminiStreamingStartInProgress = true;- geminiStartAudio = [];- geminiStartAudioBytes = 0;try {const streaming = ensureGeminiStreaming(event);if (geminiConnectInFlight) await geminiConnectInFlight;@@ -11739,7 +11697,6 @@ class IPCHandlers {if (streaming.isConnected) await streaming.disconnect(false);await connectGeminiStreaming(event, options);}- for (const buffer of geminiStartAudio) streaming.sendAudio(buffer);geminiSendDropCount = 0;debugLogger.debug("Gemini streaming started", { usedWarmConnection }, "streaming");return { success: true, usedWarmConnection };@@ -11751,21 +11708,11 @@ class IPCHandlers {return streamingStartFailure(error);} finally {geminiStreamingStartInProgress = false;- geminiStartAudio = [];- geminiStartAudioBytes = 0;}});ipcMain.on("gemini-streaming-send", (_event, audioBuffer) => {try {- if (geminiStreamingStartInProgress) {- const buffer = Buffer.from(audioBuffer);- if (geminiStartAudioBytes + buffer.length <= GEMINI_START_AUDIO_MAX) {- geminiStartAudio.push(buffer);- geminiStartAudioBytes += buffer.length;- }- return;- }if (!this.geminiStreaming) return;const sent = this.geminiStreaming.sendAudio(Buffer.from(audioBuffer));if (!sent) {diff --git a/src/helpers/localASROrganization.ts b/src/helpers/localASROrganization.tsindex 91ebf26c3..4450ed7c5 100644--- a/src/helpers/localASROrganization.ts+++ b/src/helpers/localASROrganization.ts@@ -1,6 +1,9 @@-import { registryData as modelData } from "../models/registryData.js";+import modelData from "../models/modelRegistryData.json";-const catalog = () => modelData.parakeetModels;+const catalog = modelData.parakeetModels as Record<+ string,+ { organization?: { id: string }; modelType?: string; recommended?: boolean }+>;// Oruk leads: it is the recommended local route, so it is the first tab everywhere.export const LOCAL_ASR_ORGANIZATIONS = [{ id: "oruk", name: "Oruk" },@@ -13,15 +16,15 @@ export const LOCAL_ASR_ORGANIZATIONS = [export const DEFAULT_LOCAL_ASR_SELECTION = {provider: "oruk",modelId:- Object.keys(catalog()).find(- (id) => catalog()[id]?.organization?.id === "oruk" && catalog()[id]?.recommended+ Object.keys(catalog).find(+ (id) => catalog[id]?.organization?.id === "oruk" && catalog[id]?.recommended) ?? "",};export function getASRModelOrganization(modelId: string): string {return (- catalog()[modelId]?.organization?.id ||- (catalog()[modelId]?.modelType === "cohere-transcribe" ? "cohere" : "nvidia")+ catalog[modelId]?.organization?.id ||+ (catalog[modelId]?.modelType === "cohere-transcribe" ? "cohere" : "nvidia"));}diff --git a/src/helpers/localTranscriptionModels.js b/src/helpers/localTranscriptionModels.jsindex 80b4d6c01..a72f00b5e 100644--- a/src/helpers/localTranscriptionModels.js+++ b/src/helpers/localTranscriptionModels.js@@ -1,4 +1,4 @@-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const { getModelType } = require("./parakeetModelInfo");// Every local speech-to-text model the registry knows, with whether it is ondiff --git a/src/helpers/modelArchiveIntegrity.js b/src/helpers/modelArchiveIntegrity.jsdeleted file mode 100644index bc0b6f42e..000000000--- a/src/helpers/modelArchiveIntegrity.js+++ /dev/null@@ -1,57 +0,0 @@-const fs = require("node:fs");-const { pipeline } = require("node:stream/promises");--function assertSafeModelArchiveEntry(entry, expectedRoot) {- const name = entry.path.replace(/^\.\//, "");- const parts = name.split("/");- if (- !["File", "Directory"].includes(entry.type) ||- /[\\:\x00-\x1f]/.test(name) ||- parts[0] !== expectedRoot ||- parts.some((part) => part === ".." || part === "." || /[. ]$/.test(part)) ||- parts.slice(0, -1).includes("")- )- throw new Error("Unsafe model archive entry");-}--async function validateModelArchive(archivePath, expectedRoot, signal) {- const tar = require("tar");- const unbzip2 = require("unbzip2-stream");- let count = 0;- let size = 0;- const parser = tar.t({- strict: true,- onReadEntry(entry) {- try {- assertSafeModelArchiveEntry(entry, expectedRoot);- count += 1;- size += entry.size;- if (count > 100000 || size > 200 * 1024 ** 3)- throw new Error("Model archive exceeds limits");- } catch (error) {- parser.abort(error);- }- },- });- // Downloads use the shared lightweight cancellation signal. Bridge it to- // streams so cancelling a large archive also stops decompression promptly.- const controller = new AbortController();- const previousAbort = signal?.onAbort;- const abort = () => controller.abort();- if (signal) signal.onAbort = abort;- if (signal?.aborted) abort();- try {- await pipeline(fs.createReadStream(archivePath), unbzip2(), parser, {- signal: controller.signal,- });- } catch (error) {- if (signal?.aborted)- throw Object.assign(new Error("Archive verification cancelled"), { isAbort: true });- throw error;- } finally {- if (signal?.onAbort === abort) signal.onAbort = previousAbort;- }- if (!count) throw new Error("Empty model archive");-}--module.exports = { assertSafeModelArchiveEntry, validateModelArchive };diff --git a/src/helpers/modelManagerBridge.js b/src/helpers/modelManagerBridge.jsindex e973f3062..d6813ed15 100644--- a/src/helpers/modelManagerBridge.js+++ b/src/helpers/modelManagerBridge.js@@ -9,7 +9,7 @@ const {checkDiskSpace,} = require("./downloadUtils");-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const LlamaServerManager = require("./llamaServer");const debugLogger = require("./debugLogger");const { readGgufMetadataFromFile } = require("./ggufMetadata");@@ -373,7 +373,6 @@ class ModelManager {await sharedDownloadFile(downloadUrl, modelPath, {signal,- expectedSha256: model.sha256,onProgress: hasDrafter? (downloadedBytes) => emitCombined(downloadedBytes): (downloadedBytes, totalBytes) => {@@ -407,7 +406,6 @@ class ModelManager {try {await sharedDownloadFile(this.getDraftDownloadUrl(provider, model), draftPath, {signal,- expectedSha256: model.draftSha256,onProgress: (downloadedBytes) => emitCombined(stats.size + downloadedBytes),});const draftStats = await fsPromises.stat(draftPath);diff --git a/src/helpers/parakeet.js b/src/helpers/parakeet.jsindex b2161ebdd..6a6309c41 100644--- a/src/helpers/parakeet.js+++ b/src/helpers/parakeet.js@@ -6,19 +6,17 @@ const debugLogger = require("./debugLogger");const { runSystemTar } = require("./systemTar");const {downloadFile,- verifyFileSha256,fetchJson,createDownloadSignal,createDownloadInProgressError,cleanupStaleDownloads,checkDiskSpace,} = require("./downloadUtils");-const { validateModelArchive } = require("./modelArchiveIntegrity");const ParakeetServerManager = require("./parakeetServer");const { getModelsDirForService } = require("./modelDirUtils");const { assertParakeetSupported, getParakeetCapability } = require("./parakeetCapability");-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const {getModelRuntime,getRequiredModelFiles,@@ -30,7 +28,6 @@ function getParakeetModelConfig(modelName) {if (!modelInfo) return null;return {url: modelInfo.downloadUrl,- sha256: modelInfo.sha256,manifestUrl: modelInfo.manifestUrl,size: modelInfo.expectedSizeBytes || modelInfo.sizeMb * 1_000_000,expectedSizeBytes: modelInfo.expectedSizeBytes,@@ -369,7 +366,6 @@ class ParakeetManager {const stats = await fsPromises.stat(archivePath);// A visibly truncated leftover would just fail extraction forever.if (stats.size >= modelConfig.size * 0.9) {- if (modelConfig.sha256) await verifyFileSha256(archivePath, modelConfig.sha256, signal);archiveReady = true;debugLogger.info("Reusing existing archive from previous attempt", {archivePath,@@ -378,13 +374,10 @@ class ParakeetManager {} else if (stats.size > 0) {await fsPromises.unlink(archivePath).catch(() => {});}- } catch {- await fsPromises.unlink(archivePath).catch(() => {});- }+ } catch {}if (!archiveReady) {await downloadFile(modelConfig.url, archivePath, {- expectedSha256: modelConfig.sha256,timeout: 600000,signal,onProgress: (downloadedBytes, totalBytes) => {@@ -405,9 +398,6 @@ class ParakeetManager {});}- if (modelConfig.sha256)- await validateModelArchive(archivePath, modelConfig.extractDir, signal);- if (signal.aborted) throw Object.assign(new Error("Download cancelled"), { isAbort: true });downloadProcess.phase = "installing";downloadProcess.percentage = 100;if (progressCallback) {@@ -417,7 +407,7 @@ class ParakeetManager {const MAX_EXTRACT_RETRIES = 2;for (let attempt = 1; attempt <= MAX_EXTRACT_RETRIES; attempt++) {try {- await this._extractModel(archivePath, modelName, modelConfig);+ await this._extractModel(archivePath, modelName);break;} catch (extractError) {debugLogger.warn("Model extraction failed", {@@ -469,7 +459,7 @@ class ParakeetManager {return { model: modelName, downloaded: true, path: modelPath, success: true };} catch (error) {- if (error.isAbort || signal.aborted) {+ if (error.isAbort) {await fsPromises.unlink(archivePath).catch(() => {});throw Object.assign(new Error("Download interrupted by user"), {code: "DOWNLOAD_CANCELLED",@@ -509,12 +499,12 @@ class ParakeetManager {);}- async _extractModel(archivePath, modelName, modelConfig = getParakeetModelConfig(modelName)) {+ async _extractModel(archivePath, modelName) {const modelsDir = this.getModelsDir();+ const modelConfig = getParakeetModelConfig(modelName);const extractDir = path.join(modelsDir, `temp-extract-${modelName}`);try {- if (modelConfig.sha256) await fsPromises.rm(extractDir, { recursive: true, force: true });await fsPromises.mkdir(extractDir, { recursive: true });debugLogger.info("Extracting parakeet archive", { archivePath, extractDir });await this._runTarExtract(archivePath, extractDir);diff --git a/src/helpers/parakeetModelInfo.js b/src/helpers/parakeetModelInfo.jsindex 9dd50073f..a7f8c47ad 100644--- a/src/helpers/parakeetModelInfo.js+++ b/src/helpers/parakeetModelInfo.js@@ -1,4 +1,4 @@-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const TRANSDUCER_MODEL_FILES = ["encoder.int8.onnx",diff --git a/src/helpers/policyValidation.js b/src/helpers/policyValidation.jsindex 8b392349f..6a4230d96 100644--- a/src/helpers/policyValidation.js+++ b/src/helpers/policyValidation.js@@ -4,7 +4,7 @@// policy as "allow everything" — so a managed response must carry a// structurally valid policy or the whole response is malformed.const { isCanonicalAppVersion } = require("./appVersion");-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const POLICY_SCOPES = ["transcription", "llm"];const TRANSCRIPTION_MODES = new Set([diff --git a/src/helpers/registryIpc.js b/src/helpers/registryIpc.jsdeleted file mode 100644index bf314d656..000000000--- a/src/helpers/registryIpc.js+++ /dev/null@@ -1,18 +0,0 @@-const { getRegistrySnapshot, subscribeRegistry } = require("../models/registryData.js");--function registerRegistryIpc(ipcMain, broadcast) {- const initial = (event) => {- event.returnValue = getRegistrySnapshot();- };- ipcMain.on("model-registry-initial", initial);- ipcMain.handle("get-model-registry", getRegistrySnapshot);- const unsubscribe = subscribeRegistry(() =>- broadcast("model-registry-updated", getRegistrySnapshot())- );- return () => {- unsubscribe();- ipcMain.removeListener("model-registry-initial", initial);- ipcMain.removeHandler("get-model-registry");- };-}-module.exports = { registerRegistryIpc };diff --git a/src/helpers/registryLoader.js b/src/helpers/registryLoader.jsdeleted file mode 100644index 2c6b51310..000000000--- a/src/helpers/registryLoader.js+++ /dev/null@@ -1,169 +0,0 @@-const fs = require("node:fs/promises");-const path = require("node:path");-const { verifyEnvelope, MAX_ENVELOPE_BYTES } = require("../models/registryEnvelope.cjs");-const {- validateManifest,- assertCompatibleCatalog,- selectCatalog,-} = require("../models/registrySchema.cjs");--const REGISTRY_URL =- "https://raw.githubusercontent.com/OpenWhispr/model-registry/published/manifest.json";--async function readBoundedCache(file) {- const handle = await fs.open(file, "r");- try {- if ((await handle.stat()).size > MAX_ENVELOPE_BYTES)- throw new Error("Registry cache too large");- const buffer = Buffer.alloc(MAX_ENVELOPE_BYTES + 1);- const { bytesRead } = await handle.read(buffer, 0, buffer.length, 0);- if (bytesRead > MAX_ENVELOPE_BYTES) throw new Error("Registry cache too large");- return buffer.subarray(0, bytesRead);- } finally {- await handle.close();- }-}--async function readBoundedResponse(response) {- if (!response.ok) throw new Error(`Registry HTTP ${response.status}`);- if (Number(response.headers.get("content-length")) > MAX_ENVELOPE_BYTES)- throw new Error("Registry response too large");- if (!response.body) throw new Error("Empty registry response");- const reader = response.body.getReader();- const chunks = [];- let size = 0;- try {- while (true) {- const { value, done } = await reader.read();- if (done) break;- size += value.byteLength;- if (size > MAX_ENVELOPE_BYTES) throw new Error("Registry response too large");- chunks.push(Buffer.from(value));- }- return Buffer.concat(chunks, size);- } finally {- await reader.cancel().catch(() => {});- reader.releaseLock();- }-}--function createRegistryLoader({- cachePath,- bundledSnapshot,- trustedKeys,- appVersion,- applySnapshot,- fetch,- mode = process.env.OPENWHISPR_MODEL_REGISTRY_MODE,- onError = () => {},- startupDelayMs = 5000,- intervalMs = 15 * 60 * 1000,- timeoutMs = 15000,-}) {- // Canonical data retains future-version entries; visible data is filtered.- // Comparing a full publication against a filtered baseline would shift order.- let snapshot = { ...bundledSnapshot, data: selectCatalog(bundledSnapshot.data, {}, appVersion) };- let canonical = structuredClone(bundledSnapshot.data);- let inFlight = null;- let controller = null;- let startupTimer = null;- let interval = null;- let stopped = false;- let started = false;-- function accept(bytes) {- const manifest = validateManifest(verifyEnvelope(bytes, trustedKeys));- if (stopped || manifest.manifestVersion <= snapshot.manifestVersion) return false;- assertCompatibleCatalog(manifest.data, bundledSnapshot.data);- assertCompatibleCatalog(manifest.data, canonical);- const next = {- data: selectCatalog(manifest.data, snapshot.data, appVersion),- manifestVersion: manifest.manifestVersion,- };- applySnapshot(next);- canonical = manifest.data;- snapshot = next;- return true;- }-- async function persist(bytes) {- const temporary = `${cachePath}.tmp`;- try {- await fs.mkdir(path.dirname(cachePath), { recursive: true });- await fs.writeFile(temporary, bytes, { mode: 0o600 });- await fs.rename(temporary, cachePath);- } catch (error) {- await fs.unlink(temporary).catch(() => {});- onError(error);- }- }-- function refresh() {- if (mode === "bundled" || stopped) return Promise.resolve();- if (inFlight) return inFlight;- controller = new AbortController();- const signal = controller.signal;- const timer = setTimeout(() => controller?.abort(), timeoutMs);- // Race the entire response read, including a stalled body. The fetch- // implementation also receives the signal to release network resources.- const abort = new Promise((_, reject) =>- signal.addEventListener("abort", () => reject(new Error("Registry request aborted")), {- once: true,- })- );- inFlight = (async () => {- try {- const bytes = await Promise.race([- (async () =>- readBoundedResponse(- await fetch(REGISTRY_URL, {- method: "GET",- credentials: "omit",- useSessionCookies: false,- cache: "no-store",- redirect: "error",- signal,- })- ))(),- abort,- ]);- if (!stopped && !signal.aborted && accept(bytes)) await persist(bytes);- } catch (error) {- if (!stopped) onError(error);- } finally {- clearTimeout(timer);- controller = null;- inFlight = null;- }- })();- return inFlight;- }-- async function start() {- if (started || stopped || mode === "bundled") return;- started = true;- try {- accept(await readBoundedCache(cachePath));- } catch (error) {- if (error.code !== "ENOENT") onError(error);- }- if (stopped) return;- startupTimer = setTimeout(() => {- void refresh();- }, startupDelayMs);- interval = setInterval(() => {- void refresh();- }, intervalMs);- startupTimer.unref?.();- interval.unref?.();- }-- function stop() {- stopped = true;- clearTimeout(startupTimer);- clearInterval(interval);- controller?.abort();- }- return { start, refresh, stop, getSnapshot: () => structuredClone(snapshot) };-}-module.exports = { createRegistryLoader, REGISTRY_URL };diff --git a/src/helpers/tinfoilTranscription.js b/src/helpers/tinfoilTranscription.jsindex e0278f85b..b47e08075 100644--- a/src/helpers/tinfoilTranscription.js+++ b/src/helpers/tinfoilTranscription.js@@ -1,5 +1,5 @@const debugLogger = require("./debugLogger");-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const { tinfoilSecureFetch } = require("./tinfoilSecureClient");const {PROVIDER_ERROR_CODES,diff --git a/src/helpers/transcriptionRoute.ts b/src/helpers/transcriptionRoute.tsindex 006da075c..2f188436b 100644--- a/src/helpers/transcriptionRoute.ts+++ b/src/helpers/transcriptionRoute.ts@@ -28,7 +28,6 @@ import {type TranscriptionProviderBaseUrl,} from "../services/transcriptionBaseUrl.ts";import type { ManagedEnterpriseRequestContext } from "../types/enterpriseIdentity.ts";-import { getRegistryData } from "../models/registryData.js";const BYOK_FILE_SIZE_LIMIT = 25 * 1024 * 1024;@@ -173,14 +172,15 @@ export const XAI_STT_LANGUAGES = new Set(["vi",]);-// Honor the live provider catalog first. Retain the legacy prefix fallback for-// saved retired IDs, which may no longer appear in the bundled picker.+// Prefix-matched rather than registry-checked on purpose: this module loads in+// the packaged main process without the registry, and strict validation would+// reset the model of anyone still on a retired id. The registry-backed picker+// rules live in settingsStore; transcriptionRouteModelAgreement.test.js pins the+// two together for every shipping model.export function resolveByokModel(provider: string, configuredModel?: string): string {const trimmed = (configuredModel || "").trim();if (provider === "custom") return trimmed || "whisper-1";if (trimmed) {- const catalogProvider = getRegistryData().transcriptionProviders.find((p) => p.id === provider);- if (catalogProvider?.models.some((model) => model.id === trimmed)) return trimmed;const matchesProvider =(provider === "groq" && trimmed.startsWith("whisper-large-v3")) ||(provider === "openai" &&diff --git a/src/helpers/whisper.js b/src/helpers/whisper.jsindex c541ae693..0a3301c5b 100644--- a/src/helpers/whisper.js+++ b/src/helpers/whisper.js@@ -14,7 +14,7 @@ const WhisperServerManager = require("./whisperServer");const { createAbortError } = require("./abortError");const { getModelsDirForService } = require("./modelDirUtils");-const { registryData: modelRegistryData } = require("../models/registryData.js");+const modelRegistryData = require("../models/modelRegistryData.json");const CACHE_TTL_MS = 30000;@@ -23,7 +23,6 @@ function getWhisperModelConfig(modelName) {if (!modelInfo) return null;return {url: modelInfo.downloadUrl,- sha256: modelInfo.sha256,size: modelInfo.expectedSizeBytes || modelInfo.sizeMb * 1_000_000,fileName: modelInfo.fileName,};@@ -657,7 +656,6 @@ class WhisperManager {timeout: 600000,signal,expectedSize: modelConfig.size,- expectedSha256: modelConfig.sha256,onProgress: (downloadedBytes, totalBytes) => {downloadProcess.percentage =totalBytes > 0 ? Math.round((downloadedBytes / totalBytes) * 100) : 0;diff --git a/src/hooks/useLocalModels.ts b/src/hooks/useLocalModels.tsindex 453990aca..cf39a904f 100644--- a/src/hooks/useLocalModels.ts+++ b/src/hooks/useLocalModels.ts@@ -1,4 +1,3 @@-import { useRegistryVersion } from "./useRegistryVersion";import { useState, useEffect, useCallback } from "react";import { ModelDefinition } from "../models/ModelRegistry";import "../types/electron";@@ -17,7 +16,6 @@ interface LLMDownloadProgressEvent {}export function useLocalModels() {- const registryVersion = useRegistryVersion();const [models, setModels] = useState<ModelWithStatus[]>([]);const [isLoading, setIsLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -49,7 +47,7 @@ export function useLocalModels() {return () => {disposeProgress?.();};- }, [loadModels, registryVersion]);+ }, [loadModels]);const downloadModel = useCallback(async (modelId: string) => {diff --git a/src/hooks/useRegistryVersion.ts b/src/hooks/useRegistryVersion.tsdeleted file mode 100644index 3fe4cafad..000000000--- a/src/hooks/useRegistryVersion.ts+++ /dev/null@@ -1,6 +0,0 @@-import { useSyncExternalStore } from "react";-import { getRegistryVersion, subscribeRegistry } from "../models/registryData";--export function useRegistryVersion(): number {- return useSyncExternalStore(subscribeRegistry, getRegistryVersion, getRegistryVersion);-}diff --git a/src/hooks/useTinfoilModels.ts b/src/hooks/useTinfoilModels.tsindex 8dd4f9f65..a0992a877 100644--- a/src/hooks/useTinfoilModels.ts+++ b/src/hooks/useTinfoilModels.ts@@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef, useState } from "react";import { getTinfoilModels, type CloudModelDefinition } from "../models/ModelRegistry";import { isTinfoilListFresh, refreshTinfoilModels } from "../models/tinfoilModels";import logger from "../utils/logger";-import { useRegistryVersion } from "./useRegistryVersion";interface UseTinfoilModelsResult {models: CloudModelDefinition[];@@ -18,18 +17,11 @@ interface UseTinfoilModelsResult {* fails, so the picker stays usable offline.*/export function useTinfoilModels(enabled: boolean): UseTinfoilModelsResult {- const registryVersion = useRegistryVersion();const [models, setModels] = useState<CloudModelDefinition[]>(() => getTinfoilModels());const [loading, setLoading] = useState(false);const [error, setError] = useState<string | null>(null);const isMountedRef = useRef(true);- useEffect(() => {- // Canonical additions remain visible offline; the getter gives any- // confirmed live Tinfoil overlay precedence over the signed catalog.- setModels(getTinfoilModels());- }, [registryVersion]);-useEffect(() => {isMountedRef.current = true;return () => {diff --git a/src/main.jsx b/src/main.jsxindex c52354b70..f3308d1b6 100644--- a/src/main.jsx+++ b/src/main.jsx@@ -1,4 +1,3 @@-import "./models/registryBootstrap.js";import React from "react";import ReactDOM from "react-dom/client";import { I18nextProvider } from "react-i18next";diff --git a/src/models/ModelRegistry.ts b/src/models/ModelRegistry.tsindex d7fe90811..92eba21f9 100644--- a/src/models/ModelRegistry.ts+++ b/src/models/ModelRegistry.ts@@ -1,6 +1,6 @@-import { registryData as modelData, subscribeRegistry } from "./registryData.js";+import modelDataRaw from "./modelRegistryData.json";import { isCloudCleanupMode, getSettings } from "../stores/settingsStore";-import { getCloudModelProviders, setTinfoilModelOverlay } from "./cloudModelCatalog";+import { readCachedTinfoilModels } from "./tinfoilModelCache";import { filterMeetingStreamingProviders } from "../helpers/meetingTranscriptionRouting";import type { InferenceMode } from "../types/electron";@@ -11,9 +11,7 @@ export interface ModelDefinition {sizeBytes: number;description: string;descriptionKey?: string;- minAppVersion?: string;fileName: string;- sha256?: string;quantization: string;contextLength: number;hfRepo: string;@@ -23,7 +21,6 @@ export interface ModelDefinition {draftHfRepo?: string;draftFileName?: string;draftSizeBytes?: number;- draftSha256?: string;}export interface LocalProviderData {@@ -46,7 +43,6 @@ export interface CloudModelDefinition {name: string;description: string;descriptionKey?: string;- minAppVersion?: string;disableThinking?: boolean;supportsThinking?: boolean;supportsVision?: boolean;@@ -71,7 +67,6 @@ export interface TranscriptionModelDefinition {name: string;description: string;descriptionKey?: string;- minAppVersion?: string;streaming?: boolean;}@@ -88,11 +83,9 @@ export interface WhisperModelInfo {name: string;description: string;descriptionKey?: string;- minAppVersion?: string;size: string;sizeMb: number;fileName: string;- sha256?: string;downloadUrl: string;recommended?: boolean;}@@ -101,7 +94,6 @@ export interface WhisperModelConfig {url: string;size: number;fileName: string;- sha256?: string;}export type WhisperModelsMap = Record<string, WhisperModelInfo>;@@ -126,13 +118,11 @@ export interface ParakeetModelInfo {recommended?: boolean;downloadUrl: string;extractDir: string;- sha256?: string;- minAppVersion?: string;}export type ParakeetModelsMap = Record<string, ParakeetModelInfo>;-export interface ModelRegistryData {+interface ModelRegistryData {parakeetModels: ParakeetModelsMap;whisperModels: WhisperModelsMap;transcriptionProviders: TranscriptionProviderData[];@@ -141,8 +131,18 @@ export interface ModelRegistryData {localProviders: LocalProviderData[];}+const modelData: ModelRegistryData = modelDataRaw as ModelRegistryData;+function getTinfoilCloudProvider(): CloudProviderData | undefined {- return modelRegistry.getCloudProviders().find((provider) => provider.id === "tinfoil");+ return modelData.cloudProviders.find((provider) => provider.id === "tinfoil");+}++const cachedTinfoilModels = readCachedTinfoilModels().models;+if (cachedTinfoilModels.length > 0) {+ const tinfoilProvider = getTinfoilCloudProvider();+ if (tinfoilProvider) {+ tinfoilProvider.models = cachedTinfoilModels;+ }}class ModelRegistry {@@ -151,7 +151,6 @@ class ModelRegistry {private constructor() {this.registerProvidersFromData();- subscribeRegistry(() => this.registerProvidersFromData());}static getInstance(): ModelRegistry {@@ -194,7 +193,7 @@ class ModelRegistry {}getCloudProviders(): CloudProviderData[] {- return getCloudModelProviders();+ return modelData.cloudProviders;}getEnterpriseProviders(): EnterpriseProviderData[] {@@ -320,7 +319,10 @@ export function getCloudProviderDefaultModelId(providerId: string): string | und}export function applyTinfoilModels(models: CloudModelDefinition[]): void {- setTinfoilModelOverlay(models);+ const provider = getTinfoilCloudProvider();+ if (provider) {+ provider.models = models;+ }const reasoningProvider = REASONING_PROVIDERS.tinfoil;if (reasoningProvider) {reasoningProvider.models = models.map(toReasoningModel);@@ -471,13 +473,13 @@ export function getWhisperModelInfo(modelId: string): WhisperModelInfo | undefinreturn modelData.whisperModels[modelId];}-export const WHISPER_MODEL_INFO = { ...modelData.whisperModels };+export const WHISPER_MODEL_INFO = modelData.whisperModels;export function getCloudModel(modelId: string,providerId?: string): CloudModelDefinition | undefined {- for (const provider of modelRegistry.getCloudProviders()) {+ for (const provider of modelData.cloudProviders) {const model = provider.models.find((m) => m.id === modelId);if (model) return model;}@@ -563,7 +565,7 @@ export function isSherpaLocalProvider(provider: string): boolean {return provider === "nvidia" || provider === "cohere";}-export const PARAKEET_MODEL_INFO = { ...modelData.parakeetModels };+export const PARAKEET_MODEL_INFO = modelData.parakeetModels;export function getWhisperModelConfig(modelId: string): WhisperModelConfig | null {const modelInfo = modelData.whisperModels[modelId];@@ -578,11 +580,3 @@ export function getWhisperModelConfig(modelId: string): WhisperModelConfig | nulexport function getValidWhisperModelNames(): string[] {return Object.keys(modelData.whisperModels);}--// Maintain stable exported objects for existing consumers while rebuilding all-// derived lists after the canonical snapshot changes. Tinfoil stays an overlay.-subscribeRegistry(() => {- Object.assign(REASONING_PROVIDERS, buildReasoningProviders());- Object.assign(WHISPER_MODEL_INFO, modelData.whisperModels);- Object.assign(PARAKEET_MODEL_INFO, modelData.parakeetModels);-});diff --git a/src/models/cloudModelCatalog.ts b/src/models/cloudModelCatalog.tsdeleted file mode 100644index d1c317962..000000000--- a/src/models/cloudModelCatalog.ts+++ /dev/null@@ -1,18 +0,0 @@-import { registryData } from "./registryData.js";-import { readCachedTinfoilModels } from "./tinfoilModelCache";-import type { CloudModelDefinition, CloudProviderData } from "./ModelRegistry";--// A leaf shared with settings startup: the provider's live discovery can retire-// models without mutating the signed catalog or importing the settings store.-const cached = readCachedTinfoilModels().models;-let tinfoilOverlay: CloudModelDefinition[] | null = cached.length ? cached : null;--export function getCloudModelProviders(): CloudProviderData[] {- return registryData.cloudProviders.map((provider) =>- provider.id === "tinfoil" && tinfoilOverlay ? { ...provider, models: tinfoilOverlay } : provider- );-}--export function setTinfoilModelOverlay(models: CloudModelDefinition[]): void {- tinfoilOverlay = models;-}diff --git a/src/models/modelRegistryData.json b/src/models/modelRegistryData.jsonindex 46edf45ed..a72cc641e 100644--- a/src/models/modelRegistryData.json+++ b/src/models/modelRegistryData.json@@ -1,72 +1,9 @@{- "whisperModels": {- "tiny": {- "name": "Tiny",- "description": "Fastest, lower quality",- "descriptionKey": "models.descriptions.whisper.tiny",- "size": "75MB",- "sizeMb": 75,- "expectedSizeBytes": 78000000,- "fileName": "ggml-tiny.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin"- },- "base": {- "name": "Base",- "description": "Good balance",- "descriptionKey": "models.descriptions.whisper.base",- "size": "142MB",- "sizeMb": 142,- "expectedSizeBytes": 148000000,- "fileName": "ggml-base.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin",- "recommended": true- },- "small": {- "name": "Small",- "description": "Better quality, slower",- "descriptionKey": "models.descriptions.whisper.small",- "size": "466MB",- "sizeMb": 466,- "expectedSizeBytes": 488000000,- "fileName": "ggml-small.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin"- },- "medium": {- "name": "Medium",- "description": "High quality",- "descriptionKey": "models.descriptions.whisper.medium",- "size": "1.5GB",- "sizeMb": 1500,- "expectedSizeBytes": 1570000000,- "fileName": "ggml-medium.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin"- },- "large": {- "name": "Large",- "description": "Best quality, slowest",- "descriptionKey": "models.descriptions.whisper.large",- "size": "3GB",- "sizeMb": 3000,- "expectedSizeBytes": 3140000000,- "fileName": "ggml-large-v3.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3.bin"- },- "turbo": {- "name": "Turbo",- "description": "Fast with good quality",- "descriptionKey": "models.descriptions.whisper.turbo",- "size": "1.6GB",- "sizeMb": 1600,- "expectedSizeBytes": 1670000000,- "fileName": "ggml-large-v3-turbo.bin",- "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo.bin"- }- },"parakeetModels": {"parakeet-tdt-0.6b-v3": {"name": "Parakeet TDT 0.6B",+ "sherpaModelType": "nemo_transducer","description": "Fast multilingual ASR with auto language detection",- "descriptionKey": "models.descriptions.parakeet.parakeet_tdt_0_6b_v3","size": "680MB","sizeMb": 680,"language": "multilingual",@@ -99,39 +36,34 @@],"downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8.tar.bz2","extractDir": "sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8",- "sherpaModelType": "nemo_transducer"+ "descriptionKey": "models.descriptions.parakeet.parakeet_tdt_0_6b_v3"},"parakeet-unified-en-0.6b": {"name": "Parakeet Unified EN 0.6B","description": "English-only ASR with state-of-the-art accuracy (5.91% avg WER)",- "descriptionKey": "models.descriptions.parakeet.parakeet_unified_en_0_6b","size": "631MB","sizeMb": 631,"language": "en",- "supportedLanguages": [- "en"- ],+ "supportedLanguages": ["en"],"downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-parakeet-unified-en-0.6b-int8-non-streaming.tar.bz2",- "extractDir": "sherpa-onnx-nemo-parakeet-unified-en-0.6b-int8-non-streaming"+ "extractDir": "sherpa-onnx-nemo-parakeet-unified-en-0.6b-int8-non-streaming",+ "descriptionKey": "models.descriptions.parakeet.parakeet_unified_en_0_6b"},"nemotron-speech-streaming-en-0.6b": {"name": "Nemotron Speech Streaming EN 0.6B","description": "English streaming ASR from NVIDIA Nemotron",- "descriptionKey": "models.descriptions.parakeet.nemotron_speech_streaming_en_0_6b","size": "632MB","sizeMb": 632,"language": "en",- "supportedLanguages": [- "en"- ],+ "supportedLanguages": ["en"],+ "runtime": "online","downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemotron-speech-streaming-en-0.6b-560ms-int8-2026-04-25.tar.bz2","extractDir": "sherpa-onnx-nemotron-speech-streaming-en-0.6b-560ms-int8-2026-04-25",- "runtime": "online"+ "descriptionKey": "models.descriptions.parakeet.nemotron_speech_streaming_en_0_6b"},"nemotron-3.5-asr-streaming-0.6b": {"name": "Nemotron 3.5 ASR Streaming 0.6B","description": "Multilingual streaming ASR from NVIDIA Nemotron with auto language detection (15 languages)",- "descriptionKey": "models.descriptions.parakeet.nemotron_3_5_asr_streaming_0_6b","size": "650MB","sizeMb": 650,"language": "multilingual",@@ -152,14 +84,14 @@"vi","uk"],+ "runtime": "online","downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemotron-3.5-asr-streaming-0.6b-560ms-int8-2026-06-11.tar.bz2","extractDir": "sherpa-onnx-nemotron-3.5-asr-streaming-0.6b-560ms-int8-2026-06-11",- "runtime": "online"+ "descriptionKey": "models.descriptions.parakeet.nemotron_3_5_asr_streaming_0_6b"},"cohere-transcribe-03-2026": {"name": "Cohere Transcribe 2B","description": "Most accurate local ASR (5.42% avg WER, 14 languages). No auto language detection",- "descriptionKey": "models.descriptions.cohere.cohere_transcribe_03_2026","size": "2.7GB","sizeMb": 2700,"expectedSizeBytes": 1699791751,@@ -180,9 +112,10 @@"vi","zh"],+ "modelType": "cohere-transcribe","downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01.tar.bz2","extractDir": "sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01",- "modelType": "cohere-transcribe"+ "descriptionKey": "models.descriptions.cohere.cohere_transcribe_03_2026"},"orukeet-v0.1.0": {"name": "Orukeet",@@ -219,12 +152,12 @@"ru","uk"],- "downloadUrl": "https://huggingface.co/oruk/orukeet/resolve/55a984d46f68323301837194ce647c702f55facc/onnx/sherpa-onnx-orukeet-v0.1.0-int8.tar.bz2",- "extractDir": "sherpa-onnx-orukeet-v0.1.0-int8",- "manifestUrl": "https://huggingface.co/oruk/orukeet/resolve/55a984d46f68323301837194ce647c702f55facc/onnx/manifest.json","runtime": "offline","sherpaModelType": "nemo_transducer","recommended": true,+ "extractDir": "sherpa-onnx-orukeet-v0.1.0-int8",+ "downloadUrl": "https://huggingface.co/oruk/orukeet/resolve/55a984d46f68323301837194ce647c702f55facc/onnx/sherpa-onnx-orukeet-v0.1.0-int8.tar.bz2",+ "manifestUrl": "https://huggingface.co/oruk/orukeet/resolve/55a984d46f68323301837194ce647c702f55facc/onnx/manifest.json","license": "CC-BY-SA-4.0","organization": {"id": "oruk",@@ -232,110 +165,365 @@},"modelCardUrl": "https://huggingface.co/oruk/orukeet"}- },+ },+ "diarizationModels": {+ "sherpa-onnx-pyannote-segmentation-3-0": {+ "name": "Pyannote Segmentation 3.0",+ "description": "Speech boundary detection for speaker diarization",+ "size": "6.6 MB",+ "sizeMb": 6.6,+ "downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-segmentation-models/sherpa-onnx-pyannote-segmentation-3-0.tar.bz2",+ "extractDir": "sherpa-onnx-pyannote-segmentation-3-0",+ "descriptionKey": "models.descriptions.diarization.segmentation"+ },+ "3dspeaker-campplus-en": {+ "name": "CAM++ Speaker Embedding (English)",+ "description": "Speaker voice fingerprinting for identification",+ "size": "28.2 MB",+ "sizeMb": 28.2,+ "downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_en_voxceleb_16k.onnx",+ "fileName": "3dspeaker_speech_campplus_sv_en_voxceleb_16k.onnx",+ "descriptionKey": "models.descriptions.diarization.embedding_en"+ }+ },+ "whisperModels": {+ "tiny": {+ "name": "Tiny",+ "description": "Fastest, lower quality",+ "size": "75MB",+ "sizeMb": 75,+ "expectedSizeBytes": 78000000,+ "fileName": "ggml-tiny.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin",+ "descriptionKey": "models.descriptions.whisper.tiny"+ },+ "base": {+ "name": "Base",+ "description": "Good balance",+ "size": "142MB",+ "sizeMb": 142,+ "expectedSizeBytes": 148000000,+ "fileName": "ggml-base.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin",+ "recommended": true,+ "descriptionKey": "models.descriptions.whisper.base"+ },+ "small": {+ "name": "Small",+ "description": "Better quality, slower",+ "size": "466MB",+ "sizeMb": 466,+ "expectedSizeBytes": 488000000,+ "fileName": "ggml-small.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin",+ "descriptionKey": "models.descriptions.whisper.small"+ },+ "medium": {+ "name": "Medium",+ "description": "High quality",+ "size": "1.5GB",+ "sizeMb": 1500,+ "expectedSizeBytes": 1570000000,+ "fileName": "ggml-medium.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin",+ "descriptionKey": "models.descriptions.whisper.medium"+ },+ "large": {+ "name": "Large",+ "description": "Best quality, slowest",+ "size": "3GB",+ "sizeMb": 3000,+ "expectedSizeBytes": 3140000000,+ "fileName": "ggml-large-v3.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3.bin",+ "descriptionKey": "models.descriptions.whisper.large"+ },+ "turbo": {+ "name": "Turbo",+ "description": "Fast with good quality",+ "size": "1.6GB",+ "sizeMb": 1600,+ "expectedSizeBytes": 1670000000,+ "fileName": "ggml-large-v3-turbo.bin",+ "downloadUrl": "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo.bin",+ "descriptionKey": "models.descriptions.whisper.turbo"+ }+ },+ "transcriptionProviders": [+ {+ "id": "openai",+ "name": "OpenAI",+ "baseUrl": "https://api.openai.com/v1",+ "models": [+ {+ "id": "gpt-transcribe",+ "name": "GPT Transcribe",+ "description": "Newest, most accurate transcription",+ "descriptionKey": "models.descriptions.transcription.openai_gpt_transcribe"+ },+ {+ "id": "gpt-4o-mini-transcribe",+ "name": "GPT-4o Mini Transcribe",+ "description": "Fast and accurate transcription",+ "descriptionKey": "models.descriptions.transcription.openai_gpt_4o_mini_transcribe",+ "streaming": true+ },+ {+ "id": "gpt-4o-transcribe",+ "name": "GPT-4o Transcribe",+ "description": "Most accurate transcription",+ "descriptionKey": "models.descriptions.transcription.openai_gpt_4o_transcribe",+ "streaming": true+ },+ {+ "id": "whisper-1",+ "name": "Whisper",+ "description": "Original Whisper model",+ "descriptionKey": "models.descriptions.transcription.openai_whisper_1"+ }+ ]+ },+ {+ "id": "groq",+ "name": "Groq",+ "baseUrl": "https://api.groq.com/openai/v1",+ "models": [+ {+ "id": "whisper-large-v3",+ "name": "Whisper Large v3",+ "description": "High accuracy speech recognition",+ "descriptionKey": "models.descriptions.transcription.groq_whisper_large_v3"+ },+ {+ "id": "whisper-large-v3-turbo",+ "name": "Whisper Large v3 Turbo",+ "description": "216x real-time speed",+ "descriptionKey": "models.descriptions.transcription.groq_whisper_large_v3_turbo"+ }+ ]+ },+ {+ "id": "xai",+ "name": "xAI",+ "baseUrl": "https://api.x.ai/v1",+ "models": [+ {+ "id": "grok-stt",+ "name": "Grok STT",+ "description": "High-accuracy speech recognition by xAI",+ "descriptionKey": "models.descriptions.transcription.xai_grok_stt"+ }+ ]+ },+ {+ "id": "mistral",+ "name": "Mistral",+ "baseUrl": "https://api.mistral.ai/v1",+ "models": [+ {+ "id": "voxtral-mini-latest",+ "name": "Voxtral Mini",+ "description": "Fast multilingual transcription",+ "descriptionKey": "models.descriptions.transcription.mistral_voxtral_mini_latest"+ }+ ]+ },+ {+ "id": "gemini",+ "name": "Gemini",+ "baseUrl": "https://generativelanguage.googleapis.com/v1beta",+ "batchModel": "gemini-3.5-transcribe",+ "models": [+ {+ "id": "gemini-3.5-transcribe",+ "name": "Gemini 3.5 Transcribe",+ "description": "Google's Gemini speech-to-text",+ "descriptionKey": "models.descriptions.transcription.gemini_3_5_transcribe"+ },+ {+ "id": "gemini-3.5-transcribe-live",+ "name": "Gemini 3.5 Transcribe Live",+ "description": "Realtime streaming speech-to-text",+ "descriptionKey": "models.descriptions.transcription.gemini_3_5_transcribe_live",+ "streaming": true+ }+ ]+ },+ {+ "id": "corti",+ "name": "Corti",+ "baseUrl": "https://api.us.corti.app/v2",+ "models": [+ {+ "id": "corti-transcribe",+ "name": "Corti Transcribe",+ "description": "Clinical-grade medical transcription",+ "descriptionKey": "models.descriptions.transcription.corti_transcribe",+ "streaming": true+ }+ ]+ },+ {+ "id": "tinfoil",+ "name": "Tinfoil",+ "baseUrl": "https://inference.tinfoil.sh/v1",+ "batchModel": "voxtral-small-24b",+ "models": [+ {+ "id": "voxtral-mini-4b-realtime",+ "name": "Voxtral",+ "description": "Verifiably private transcription",+ "descriptionKey": "models.descriptions.transcription.tinfoil_voxtral",+ "streaming": true+ }+ ]+ },+ {+ "id": "deepgram",+ "name": "Deepgram",+ "baseUrl": "https://api.deepgram.com/v1",+ "models": [+ {+ "id": "nova-3",+ "name": "Nova-3",+ "description": "Deepgram's most accurate realtime model",+ "descriptionKey": "models.descriptions.transcription.deepgram_nova_3",+ "streaming": true+ }+ ]+ },+ {+ "id": "assemblyai",+ "name": "AssemblyAI",+ "baseUrl": "https://api.assemblyai.com/v2",+ "models": [+ {+ "id": "universal-3-5-pro",+ "name": "Universal-3.5 Pro",+ "description": "Highest accuracy realtime, 18 languages",+ "descriptionKey": "models.descriptions.transcription.assemblyai_universal_3_5_pro",+ "streaming": true+ },+ {+ "id": "universal-streaming-english",+ "name": "Universal Streaming (English)",+ "description": "Immutable realtime transcripts, English",+ "descriptionKey": "models.descriptions.transcription.assemblyai_universal_streaming_english",+ "streaming": true+ },+ {+ "id": "universal-streaming-multilingual",+ "name": "Universal Streaming (Multilingual)",+ "description": "Immutable realtime transcripts, multilingual",+ "descriptionKey": "models.descriptions.transcription.assemblyai_universal_streaming_multilingual",+ "streaming": true+ }+ ]+ }+ ],"cloudProviders": [{"id": "openai","name": "OpenAI","models": [{+ "id": "gpt-6-astra","name": "GPT-6 Astra","description": "OpenAI's most capable model for coding, computer use, and research, 1M context","descriptionKey": "models.descriptions.cloud.openai_gpt_6_astra",- "id": "gpt-6-astra",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5.6-sol","name": "GPT-5.6 Sol","description": "Flagship GPT-5.6 for complex coding, research, and agentic work, 1M context","descriptionKey": "models.descriptions.cloud.openai_gpt_5_6_sol",- "id": "gpt-5.6-sol",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5.6-terra","name": "GPT-5.6 Terra","description": "Balanced capability, speed, and cost for everyday work","descriptionKey": "models.descriptions.cloud.openai_gpt_5_6_terra",- "id": "gpt-5.6-terra",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5.6-luna","name": "GPT-5.6 Luna","description": "Fastest and lowest-cost model in the GPT-5.6 family","descriptionKey": "models.descriptions.cloud.openai_gpt_5_6_luna",- "id": "gpt-5.6-luna",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5.5","name": "GPT-5.5","description": "Frontier model for complex reasoning, 1M context","descriptionKey": "models.descriptions.cloud.openai_gpt_5_5",- "id": "gpt-5.5",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5.2","name": "GPT-5.2","description": "Strong reasoning model","descriptionKey": "models.descriptions.cloud.openai_gpt_5_2",- "id": "gpt-5.2",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5-mini","name": "GPT-5 Mini","description": "Fast and cost-efficient","descriptionKey": "models.descriptions.cloud.openai_gpt_5_mini",- "id": "gpt-5-mini",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-5-nano","name": "GPT-5 Nano","description": "Ultra-fast, low latency","descriptionKey": "models.descriptions.cloud.openai_gpt_5_nano",- "id": "gpt-5-nano",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "gpt-4.1","name": "GPT-4.1","description": "Strong baseline, 1M context","descriptionKey": "models.descriptions.cloud.openai_gpt_4_1",- "id": "gpt-4.1",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "gpt-4.1-mini","name": "GPT-4.1 Mini","description": "Smaller GPT-4.1 model","descriptionKey": "models.descriptions.cloud.openai_gpt_4_1_mini",- "id": "gpt-4.1-mini",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "gpt-4.1-nano","name": "GPT-4.1 Nano","description": "Lowest latency GPT-4.1","descriptionKey": "models.descriptions.cloud.openai_gpt_4_1_nano",- "id": "gpt-4.1-nano",- "supportsVision": true,"tokenParam": "max_completion_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true}]},@@ -344,92 +532,92 @@"name": "Anthropic","models": [{+ "id": "claude-fable-5-1","name": "Claude Fable 5.1","description": "Anthropic's most capable model, Mythos-class, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_fable_5_1",- "id": "claude-fable-5-1",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-fable-5","name": "Claude Fable 5","description": "Previous Mythos-class flagship, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_fable_5",- "id": "claude-fable-5",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-sonnet-5","name": "Claude Sonnet 5","description": "Fast, capable agentic model at lower cost","descriptionKey": "models.descriptions.cloud.anthropic_claude_sonnet_5",- "id": "claude-sonnet-5",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-sonnet-4-6","name": "Claude Sonnet 4.6","description": "Balanced performance","descriptionKey": "models.descriptions.cloud.anthropic_claude_sonnet_4_6",- "id": "claude-sonnet-4-6",- "supportsVision": true,- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "claude-haiku-4-5","name": "Claude Haiku 4.5","description": "Fast with near-frontier intelligence","descriptionKey": "models.descriptions.cloud.anthropic_claude_haiku_4_5",- "id": "claude-haiku-4-5",- "supportsVision": true,- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "claude-opus-5","name": "Claude Opus 5","description": "Most capable Opus model, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_opus_5",- "id": "claude-opus-5",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-opus-4-8","name": "Claude Opus 4.8","description": "Powerful Opus model tuned for honesty and reliability, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_opus_4_8",- "id": "claude-opus-4-8",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-opus-4-7","name": "Claude Opus 4.7","description": "Powerful Opus model, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_opus_4_7",- "id": "claude-opus-4-7",- "supportsVision": true,- "supportsTemperature": false+ "supportsTemperature": false,+ "supportsVision": true},{+ "id": "claude-opus-4-6","name": "Claude Opus 4.6","description": "Previous Opus generation, 1M context","descriptionKey": "models.descriptions.cloud.anthropic_claude_opus_4_6",- "id": "claude-opus-4-6",- "supportsVision": true,- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "claude-sonnet-4-5","name": "Claude Sonnet 4.5","description": "Previous Sonnet generation","descriptionKey": "models.descriptions.cloud.anthropic_claude_sonnet_4_5",- "id": "claude-sonnet-4-5",- "supportsVision": true,- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true},{+ "id": "claude-opus-4-5","name": "Claude Opus 4.5","description": "Earlier Opus model","descriptionKey": "models.descriptions.cloud.anthropic_claude_opus_4_5",- "id": "claude-opus-4-5",- "supportsVision": true,- "supportsTemperature": true+ "supportsTemperature": true,+ "supportsVision": true}]},@@ -438,62 +626,62 @@"name": "Google Gemini","models": [{+ "id": "gemini-3.5-flash","name": "Gemini 3.5 Flash","description": "Latest fast, high-capability Gemini model","descriptionKey": "models.descriptions.cloud.gemini_gemini_3_5_flash",- "id": "gemini-3.5-flash","supportsThinking": true,"supportsVision": true},{+ "id": "gemini-3.5-flash-lite","name": "Gemini 3.5 Flash Lite","description": "Fastest, most cost-effective 3.5 model","descriptionKey": "models.descriptions.cloud.gemini_gemini_3_5_flash_lite",- "id": "gemini-3.5-flash-lite","supportsThinking": true,"supportsVision": true},{+ "id": "gemini-3.1-pro-preview","name": "Gemini 3.1 Pro","description": "Next-gen flagship model for complex reasoning","descriptionKey": "models.descriptions.cloud.gemini_gemini_3_1_pro_preview",- "id": "gemini-3.1-pro-preview","supportsThinking": true,"supportsVision": true},{+ "id": "gemini-3.1-flash-lite","name": "Gemini 3.1 Flash Lite","description": "Frontier-class performance at low cost","descriptionKey": "models.descriptions.cloud.gemini_gemini_3_1_flash_lite",- "id": "gemini-3.1-flash-lite","supportsVision": true},{+ "id": "gemini-3-flash-preview","name": "Gemini 3 Flash","description": "Ultra-fast, high-capability next-gen model","descriptionKey": "models.descriptions.cloud.gemini_gemini_3_flash_preview",- "id": "gemini-3-flash-preview","supportsThinking": true,"supportsVision": true},{+ "id": "gemini-2.5-flash-lite","name": "Gemini 2.5 Flash Lite","description": "Lowest latency and cost","descriptionKey": "models.descriptions.cloud.gemini_gemini_2_5_flash_lite",- "id": "gemini-2.5-flash-lite","supportsVision": true},{+ "id": "gemma-4-31b-it","name": "Gemma 4 31B","description": "Google's largest Gemma 4, 31B dense, 256K context",- "descriptionKey": "models.descriptions.cloud.gemini_gemma_4_31b_it",- "id": "gemma-4-31b-it"+ "descriptionKey": "models.descriptions.cloud.gemini_gemma_4_31b_it"},{+ "id": "gemma-4-26b-a4b-it","name": "Gemma 4 26B MoE","description": "Google's Gemma 4 MoE, 4B active params, 256K context",- "descriptionKey": "models.descriptions.cloud.gemini_gemma_4_26b_a4b_it",- "id": "gemma-4-26b-a4b-it"+ "descriptionKey": "models.descriptions.cloud.gemini_gemma_4_26b_a4b_it"}]},@@ -502,30 +690,30 @@"name": "Groq","models": [{+ "id": "openai/gpt-oss-120b","name": "GPT-OSS 120B","description": "OpenAI's open-source flagship, 500 T/sec",- "descriptionKey": "models.descriptions.cloud.groq_openai_gpt_oss_120b",- "id": "openai/gpt-oss-120b",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.cloud.groq_openai_gpt_oss_120b"},{+ "id": "openai/gpt-oss-20b","name": "GPT-OSS 20B","description": "Fast open-source model, 1000 T/sec",- "descriptionKey": "models.descriptions.cloud.groq_openai_gpt_oss_20b",- "id": "openai/gpt-oss-20b",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.cloud.groq_openai_gpt_oss_20b"},{+ "id": "groq/compound","name": "Compound","description": "Groq's compound system, 450 T/sec",- "descriptionKey": "models.descriptions.cloud.groq_compound",- "id": "groq/compound"+ "descriptionKey": "models.descriptions.cloud.groq_compound"},{+ "id": "groq/compound-mini","name": "Compound Mini","description": "Fast compound system, 3x lower latency",- "descriptionKey": "models.descriptions.cloud.groq_compound_mini",- "id": "groq/compound-mini"+ "descriptionKey": "models.descriptions.cloud.groq_compound_mini"}]},@@ -535,31 +723,31 @@"defaultModel": "glm-5-3","models": [{+ "id": "glm-5-3","name": "GLM-5.3","description": "Private agentic coding model in secure enclaves, 1M context",- "descriptionKey": "models.descriptions.cloud.tinfoil_glm_5_3",- "id": "glm-5-3",- "supportsThinking": true,"tokenParam": "max_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "descriptionKey": "models.descriptions.cloud.tinfoil_glm_5_3",+ "supportsThinking": true},{+ "id": "gpt-oss-120b","name": "GPT-OSS 120B","description": "Private open-weight reasoning model with tool use, 131K context",- "descriptionKey": "models.descriptions.cloud.tinfoil_gpt_oss_120b",- "id": "gpt-oss-120b",- "supportsThinking": true,"tokenParam": "max_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "descriptionKey": "models.descriptions.cloud.tinfoil_gpt_oss_120b",+ "supportsThinking": true},{+ "id": "gemma4-31b","name": "Gemma 4 31B","description": "Private multilingual reasoning model with tool calling, 256K context",- "descriptionKey": "models.descriptions.cloud.tinfoil_gemma4_31b",- "id": "gemma4-31b",- "supportsThinking": true,"tokenParam": "max_tokens",- "supportsTemperature": true+ "supportsTemperature": true,+ "descriptionKey": "models.descriptions.cloud.tinfoil_gemma4_31b",+ "supportsThinking": true}]},@@ -568,34 +756,34 @@"name": "Corti","models": [{+ "id": "corti-s1-instant","name": "Corti S1 Instant","description": "Fast healthcare model, no reasoning trace","descriptionKey": "models.descriptions.cloud.corti_corti_s1_instant",- "id": "corti-s1-instant","tokenParam": "max_tokens","supportsTemperature": true},{+ "id": "corti-s1","name": "Corti S1","description": "Most capable clinical model with reasoning","descriptionKey": "models.descriptions.cloud.corti_corti_s1",- "id": "corti-s1","tokenParam": "max_tokens","supportsTemperature": true},{+ "id": "corti-s1-mini-instant","name": "Corti S1 Mini Instant","description": "Compact healthcare model, fastest and lowest cost","descriptionKey": "models.descriptions.cloud.corti_corti_s1_mini_instant",- "id": "corti-s1-mini-instant","tokenParam": "max_tokens","supportsTemperature": true},{+ "id": "corti-s1-mini","name": "Corti S1 Mini","description": "Compact clinical model with reasoning at half the price","descriptionKey": "models.descriptions.cloud.corti_corti_s1_mini",- "id": "corti-s1-mini","tokenParam": "max_tokens","supportsTemperature": true}@@ -609,243 +797,71 @@"allowCustomModelId": true,"models": [{+ "id": "us.anthropic.claude-fable-5","name": "Claude Fable 5","description": "Most capable Claude model, Mythos-class. Best for the hardest Agent Mode tasks.",- "descriptionKey": "models.descriptions.enterprise.bedrock_claude_fable_5",- "id": "us.anthropic.claude-fable-5"+ "descriptionKey": "models.descriptions.enterprise.bedrock_claude_fable_5"},{+ "id": "us.anthropic.claude-haiku-4-5-20251001-v1:0","name": "Claude Haiku 4.5","description": "Fast and cheap. Great default for text cleanup.",- "descriptionKey": "models.descriptions.enterprise.bedrock_claude_haiku_4_5",- "id": "us.anthropic.claude-haiku-4-5-20251001-v1:0"+ "descriptionKey": "models.descriptions.enterprise.bedrock_claude_haiku_4_5"},{+ "id": "us.anthropic.claude-sonnet-5","name": "Claude Sonnet 5","description": "Balanced workhorse. Best default for Agent Mode.",- "descriptionKey": "models.descriptions.enterprise.bedrock_claude_sonnet_5",- "id": "us.anthropic.claude-sonnet-5"+ "descriptionKey": "models.descriptions.enterprise.bedrock_claude_sonnet_5"},{+ "id": "us.anthropic.claude-opus-4-8","name": "Claude Opus 4.8",- "description": "Max intelligence. Best for complex Agent Mode tasks.",- "descriptionKey": "models.descriptions.enterprise.bedrock_claude_opus_4_8",- "id": "us.anthropic.claude-opus-4-8"- },- {- "name": "GPT-OSS 120B",- "description": "Open-weight OpenAI model. Strong reasoning at low cost.",- "descriptionKey": "models.descriptions.enterprise.bedrock_gpt_oss_120b",- "id": "openai.gpt-oss-120b-1:0"- },- {- "name": "DeepSeek V3.2",- "description": "Open-weight frontier model. Great value for Agent Mode.",- "descriptionKey": "models.descriptions.enterprise.bedrock_deepseek_v3_2",- "id": "deepseek.v3.2"- },- {- "name": "Qwen3 Next 80B",- "description": "Sparse open-weight model. Fast and multilingual.",- "descriptionKey": "models.descriptions.enterprise.bedrock_qwen3_next_80b",- "id": "qwen.qwen3-next-80b-a3b"- }- ]- },- {- "id": "azure",- "name": "Azure OpenAI",- "allowCustomModelId": true,- "models": []- },- {- "id": "vertex",- "name": "GCP Vertex AI",- "allowCustomModelId": true,- "models": [- {- "name": "Gemini 2.5 Flash",- "description": "Fast multimodal model via Vertex",- "descriptionKey": "models.descriptions.enterprise.vertex_gemini_2_5_flash",- "id": "gemini-2.5-flash"- },- {- "name": "Gemini 2.5 Pro",- "description": "Advanced reasoning via Vertex",- "descriptionKey": "models.descriptions.enterprise.vertex_gemini_2_5_pro",- "id": "gemini-2.5-pro"- }- ]- }- ],- "transcriptionProviders": [- {- "id": "openai",- "name": "OpenAI",- "baseUrl": "https://api.openai.com/v1",- "models": [- {- "name": "GPT Transcribe",- "description": "Newest, most accurate transcription",- "descriptionKey": "models.descriptions.transcription.openai_gpt_transcribe",- "id": "gpt-transcribe"- },- {- "name": "GPT-4o Mini Transcribe",- "description": "Fast and accurate transcription",- "descriptionKey": "models.descriptions.transcription.openai_gpt_4o_mini_transcribe",- "id": "gpt-4o-mini-transcribe",- "streaming": true- },- {- "name": "GPT-4o Transcribe",- "description": "Most accurate transcription",- "descriptionKey": "models.descriptions.transcription.openai_gpt_4o_transcribe",- "id": "gpt-4o-transcribe",- "streaming": true- },- {- "name": "Whisper",- "description": "Original Whisper model",- "descriptionKey": "models.descriptions.transcription.openai_whisper_1",- "id": "whisper-1"- }- ]- },- {- "id": "groq",- "name": "Groq",- "baseUrl": "https://api.groq.com/openai/v1",- "models": [- {- "name": "Whisper Large v3",- "description": "High accuracy speech recognition",- "descriptionKey": "models.descriptions.transcription.groq_whisper_large_v3",- "id": "whisper-large-v3"- },- {- "name": "Whisper Large v3 Turbo",- "description": "216x real-time speed",- "descriptionKey": "models.descriptions.transcription.groq_whisper_large_v3_turbo",- "id": "whisper-large-v3-turbo"- }- ]- },- {- "id": "xai",- "name": "xAI",- "baseUrl": "https://api.x.ai/v1",- "models": [- {- "name": "Grok STT",- "description": "High-accuracy speech recognition by xAI",- "descriptionKey": "models.descriptions.transcription.xai_grok_stt",- "id": "grok-stt"- }- ]- },- {- "id": "mistral",- "name": "Mistral",- "baseUrl": "https://api.mistral.ai/v1",- "models": [- {- "name": "Voxtral Mini",- "description": "Fast multilingual transcription",- "descriptionKey": "models.descriptions.transcription.mistral_voxtral_mini_latest",- "id": "voxtral-mini-latest"- }- ]- },- {- "id": "gemini",- "name": "Gemini",- "baseUrl": "https://generativelanguage.googleapis.com/v1beta",- "batchModel": "gemini-3.5-transcribe",- "models": [- {- "name": "Gemini 3.5 Transcribe",- "description": "Google's Gemini speech-to-text",- "descriptionKey": "models.descriptions.transcription.gemini_3_5_transcribe",- "id": "gemini-3.5-transcribe"- },- {- "name": "Gemini 3.5 Transcribe Live",- "description": "Realtime streaming speech-to-text",- "descriptionKey": "models.descriptions.transcription.gemini_3_5_transcribe_live",- "id": "gemini-3.5-transcribe-live",- "streaming": true- }- ]- },- {- "id": "corti",- "name": "Corti",- "baseUrl": "https://api.us.corti.app/v2",- "models": [+ "description": "Max intelligence. Best for complex Agent Mode tasks.",+ "descriptionKey": "models.descriptions.enterprise.bedrock_claude_opus_4_8"+ },{- "name": "Corti Transcribe",- "description": "Clinical-grade medical transcription",- "descriptionKey": "models.descriptions.transcription.corti_transcribe",- "id": "corti-transcribe",- "streaming": true- }- ]- },- {- "id": "tinfoil",- "name": "Tinfoil",- "baseUrl": "https://inference.tinfoil.sh/v1",- "batchModel": "voxtral-small-24b",- "models": [+ "id": "openai.gpt-oss-120b-1:0",+ "name": "GPT-OSS 120B",+ "description": "Open-weight OpenAI model. Strong reasoning at low cost.",+ "descriptionKey": "models.descriptions.enterprise.bedrock_gpt_oss_120b"+ },{- "name": "Voxtral",- "description": "Verifiably private transcription",- "descriptionKey": "models.descriptions.transcription.tinfoil_voxtral",- "id": "voxtral-mini-4b-realtime",- "streaming": true+ "id": "deepseek.v3.2",+ "name": "DeepSeek V3.2",+ "description": "Open-weight frontier model. Great value for Agent Mode.",+ "descriptionKey": "models.descriptions.enterprise.bedrock_deepseek_v3_2"+ },+ {+ "id": "qwen.qwen3-next-80b-a3b",+ "name": "Qwen3 Next 80B",+ "description": "Sparse open-weight model. Fast and multilingual.",+ "descriptionKey": "models.descriptions.enterprise.bedrock_qwen3_next_80b"}]},{- "id": "deepgram",- "name": "Deepgram",- "baseUrl": "https://api.deepgram.com/v1",- "models": [- {- "name": "Nova-3",- "description": "Deepgram's most accurate realtime model",- "descriptionKey": "models.descriptions.transcription.deepgram_nova_3",- "id": "nova-3",- "streaming": true- }- ]+ "id": "azure",+ "name": "Azure OpenAI",+ "allowCustomModelId": true,+ "models": []},{- "id": "assemblyai",- "name": "AssemblyAI",- "baseUrl": "https://api.assemblyai.com/v2",+ "id": "vertex",+ "name": "GCP Vertex AI",+ "allowCustomModelId": true,"models": [{- "name": "Universal-3.5 Pro",- "description": "Highest accuracy realtime, 18 languages",- "descriptionKey": "models.descriptions.transcription.assemblyai_universal_3_5_pro",- "id": "universal-3-5-pro",- "streaming": true- },- {- "name": "Universal Streaming (English)",- "description": "Immutable realtime transcripts, English",- "descriptionKey": "models.descriptions.transcription.assemblyai_universal_streaming_english",- "id": "universal-streaming-english",- "streaming": true+ "id": "gemini-2.5-flash",+ "name": "Gemini 2.5 Flash",+ "description": "Fast multimodal model via Vertex",+ "descriptionKey": "models.descriptions.enterprise.vertex_gemini_2_5_flash"},{- "name": "Universal Streaming (Multilingual)",- "description": "Immutable realtime transcripts, multilingual",- "descriptionKey": "models.descriptions.transcription.assemblyai_universal_streaming_multilingual",- "id": "universal-streaming-multilingual",- "streaming": true+ "id": "gemini-2.5-pro",+ "name": "Gemini 2.5 Pro",+ "description": "Advanced reasoning via Vertex",+ "descriptionKey": "models.descriptions.enterprise.vertex_gemini_2_5_pro"}]}@@ -857,157 +873,157 @@"baseUrl": "https://huggingface.co","models": [{- "name": "Qwen3.5 9B",- "description": "Powerful hybrid model",- "descriptionKey": "models.descriptions.local.qwen_qwen3_5_9b_q4_k_m","id": "qwen3.5-9b-q4_k_m",+ "name": "Qwen3.5 9B","size": "5.5GB","sizeBytes": 5889811552,+ "description": "Powerful hybrid model","fileName": "Qwen_Qwen3.5-9B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,"hfRepo": "bartowski/Qwen_Qwen3.5-9B-GGUF","recommended": true,- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_5_9b_q4_k_m"},{- "name": "Qwen3.5 4B",- "description": "Balanced Qwen3.5 for general use",- "descriptionKey": "models.descriptions.local.qwen_qwen3_5_4b_q4_k_m","id": "qwen3.5-4b-q4_k_m",+ "name": "Qwen3.5 4B","size": "2.7GB","sizeBytes": 2871743520,+ "description": "Balanced Qwen3.5 for general use","fileName": "Qwen_Qwen3.5-4B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,"hfRepo": "bartowski/Qwen_Qwen3.5-4B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_5_4b_q4_k_m"},{- "name": "Qwen3.5 2B",- "description": "Small Qwen3.5 for quick tasks",- "descriptionKey": "models.descriptions.local.qwen_qwen3_5_2b_q4_k_m","id": "qwen3.5-2b-q4_k_m",+ "name": "Qwen3.5 2B","size": "1.3GB","sizeBytes": 1329766560,+ "description": "Small Qwen3.5 for quick tasks","fileName": "Qwen_Qwen3.5-2B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,"hfRepo": "bartowski/Qwen_Qwen3.5-2B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_5_2b_q4_k_m"},{- "name": "Qwen3 8B",- "description": "Latest Qwen3 with thinking mode support",- "descriptionKey": "models.descriptions.local.qwen_qwen3_8b_q4_k_m","id": "qwen3-8b-q4_k_m",+ "name": "Qwen3 8B","size": "5.0GB","sizeBytes": 5402263552,+ "description": "Latest Qwen3 with thinking mode support","fileName": "Qwen3-8B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,"hfRepo": "Qwen/Qwen3-8B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_8b_q4_k_m"},{- "name": "Qwen3 8B (Q5)",- "description": "Higher quality Qwen3 with thinking mode",- "descriptionKey": "models.descriptions.local.qwen_qwen3_8b_q5_k_m","id": "qwen3-8b-q5_k_m",+ "name": "Qwen3 8B (Q5)","size": "5.9GB","sizeBytes": 6281625600,+ "description": "Higher quality Qwen3 with thinking mode","fileName": "Qwen3-8B-Q5_K_M.gguf","quantization": "q5_k_m","contextLength": 131072,"hfRepo": "Qwen/Qwen3-8B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_8b_q5_k_m"},{- "name": "Qwen3 4B",- "description": "Compact Qwen3 with reasoning capabilities",- "descriptionKey": "models.descriptions.local.qwen_qwen3_4b_q4_k_m","id": "qwen3-4b-q4_k_m",+ "name": "Qwen3 4B","size": "2.5GB","sizeBytes": 2684354560,+ "description": "Compact Qwen3 with reasoning capabilities","fileName": "Qwen3-4B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,"hfRepo": "Qwen/Qwen3-4B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_4b_q4_k_m"},{- "name": "Qwen3 1.7B",- "description": "Small but capable Qwen3 model",- "descriptionKey": "models.descriptions.local.qwen_qwen3_1_7b_q8_0","id": "qwen3-1.7b-q8_0",+ "name": "Qwen3 1.7B","size": "1.8GB","sizeBytes": 1965555712,+ "description": "Small but capable Qwen3 model","fileName": "Qwen3-1.7B-Q8_0.gguf","quantization": "q8_0","contextLength": 131072,"hfRepo": "Qwen/Qwen3-1.7B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_1_7b_q8_0"},{- "name": "Qwen3 32B",- "description": "Most powerful local Qwen3 with deep reasoning",- "descriptionKey": "models.descriptions.local.qwen_qwen3_32b_q4_k_m","id": "qwen3-32b-q4_k_m",+ "name": "Qwen3 32B","size": "19.8GB","sizeBytes": 21260251955,+ "description": "Most powerful local Qwen3 with deep reasoning","fileName": "Qwen3-32B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,"hfRepo": "Qwen/Qwen3-32B-GGUF",- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.qwen_qwen3_32b_q4_k_m"},{- "name": "Qwen2.5 1.5B",- "description": "Small model, good for basic tasks",- "descriptionKey": "models.descriptions.local.qwen_qwen2_5_1_5b_instruct_q5_k_m","id": "qwen2.5-1.5b-instruct-q5_k_m",+ "name": "Qwen2.5 1.5B","size": "1.3GB","sizeBytes": 1395864371,+ "description": "Small model, good for basic tasks","fileName": "qwen2.5-1.5b-instruct-q5_k_m.gguf","quantization": "q5_k_m","contextLength": 32768,- "hfRepo": "Qwen/Qwen2.5-1.5B-Instruct-GGUF"+ "hfRepo": "Qwen/Qwen2.5-1.5B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.qwen_qwen2_5_1_5b_instruct_q5_k_m"},{- "name": "Qwen2.5 3B",- "description": "Balanced model for general use",- "descriptionKey": "models.descriptions.local.qwen_qwen2_5_3b_instruct_q5_k_m","id": "qwen2.5-3b-instruct-q5_k_m",+ "name": "Qwen2.5 3B","size": "2.4GB","sizeBytes": 2620055552,+ "description": "Balanced model for general use","fileName": "qwen2.5-3b-instruct-q5_k_m.gguf","quantization": "q5_k_m","contextLength": 32768,- "hfRepo": "Qwen/Qwen2.5-3B-Instruct-GGUF"+ "hfRepo": "Qwen/Qwen2.5-3B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.qwen_qwen2_5_3b_instruct_q5_k_m"},{- "name": "Qwen2.5 7B",- "description": "Large model with high quality (Q4_K_M)",- "descriptionKey": "models.descriptions.local.qwen_qwen2_5_7b_instruct_q4_k_m","id": "qwen2.5-7b-instruct-q4_k_m",+ "name": "Qwen2.5 7B","size": "4.7GB","sizeBytes": 5025128858,+ "description": "Large model with high quality (Q4_K_M)","fileName": "Qwen2.5-7B-Instruct-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 128000,- "hfRepo": "bartowski/Qwen2.5-7B-Instruct-GGUF"+ "hfRepo": "bartowski/Qwen2.5-7B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.qwen_qwen2_5_7b_instruct_q4_k_m"},{- "name": "Qwen2.5 7B (Q5)",- "description": "Large model, high quality reasoning (Q5_K_M)",- "descriptionKey": "models.descriptions.local.qwen_qwen2_5_7b_instruct_q5_k_m","id": "qwen2.5-7b-instruct-q5_k_m",+ "name": "Qwen2.5 7B (Q5)","size": "5.4GB","sizeBytes": 5841530470,+ "description": "Large model, high quality reasoning (Q5_K_M)","fileName": "Qwen2.5-7B-Instruct-Q5_K_M.gguf","quantization": "q5_k_m","contextLength": 128000,- "hfRepo": "bartowski/Qwen2.5-7B-Instruct-GGUF"+ "hfRepo": "bartowski/Qwen2.5-7B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.qwen_qwen2_5_7b_instruct_q5_k_m"}]},@@ -1017,41 +1033,41 @@"baseUrl": "https://huggingface.co","models": [{- "name": "Mistral Nemo 12B",- "description": "Mistral's 12B model, strong multilingual performance",- "descriptionKey": "models.descriptions.local.mistral_nemo_12b_instruct_q4_k_m","id": "mistral-nemo-12b-instruct-q4_k_m",+ "name": "Mistral Nemo 12B","size": "7.5GB","sizeBytes": 8028321792,+ "description": "Mistral's 12B model, strong multilingual performance","fileName": "Mistral-Nemo-12B-Instruct.Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,"hfRepo": "mradermacher/Mistral-Nemo-12B-Instruct-GGUF",- "recommended": true+ "recommended": true,+ "descriptionKey": "models.descriptions.local.mistral_nemo_12b_instruct_q4_k_m"},{- "name": "Mistral 7B Instruct v0.3",- "description": "Fast and efficient instruction model",- "descriptionKey": "models.descriptions.local.mistral_mistral_7b_instruct_v0_3_q4_k_m","id": "mistral-7b-instruct-v0.3-q4_k_m",+ "name": "Mistral 7B Instruct v0.3","size": "4.4GB","sizeBytes": 4692635648,+ "description": "Fast and efficient instruction model","fileName": "Mistral-7B-Instruct-v0.3-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 32768,- "hfRepo": "bartowski/Mistral-7B-Instruct-v0.3-GGUF"+ "hfRepo": "bartowski/Mistral-7B-Instruct-v0.3-GGUF",+ "descriptionKey": "models.descriptions.local.mistral_mistral_7b_instruct_v0_3_q4_k_m"},{- "name": "Mistral 7B Instruct v0.3 (Q5)",- "description": "Higher quality instruction model",- "descriptionKey": "models.descriptions.local.mistral_mistral_7b_instruct_v0_3_q5_k_m","id": "mistral-7b-instruct-v0.3-q5_k_m",+ "name": "Mistral 7B Instruct v0.3 (Q5)","size": "5.1GB","sizeBytes": 5519900672,+ "description": "Higher quality instruction model","fileName": "Mistral-7B-Instruct-v0.3-Q5_K_M.gguf","quantization": "q5_k_m","contextLength": 32768,- "hfRepo": "bartowski/Mistral-7B-Instruct-v0.3-GGUF"+ "hfRepo": "bartowski/Mistral-7B-Instruct-v0.3-GGUF",+ "descriptionKey": "models.descriptions.local.mistral_mistral_7b_instruct_v0_3_q5_k_m"}]},@@ -1061,41 +1077,41 @@"baseUrl": "https://huggingface.co","models": [{- "name": "Llama 3.2 1B",- "description": "Tiny model for edge devices",- "descriptionKey": "models.descriptions.local.llama_llama_3_2_1b_instruct_q4_k_m","id": "llama-3.2-1b-instruct-q4_k_m",+ "name": "Llama 3.2 1B","size": "0.8GB","sizeBytes": 847249408,+ "description": "Tiny model for edge devices","fileName": "Llama-3.2-1B-Instruct-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,- "hfRepo": "bartowski/Llama-3.2-1B-Instruct-GGUF"+ "hfRepo": "bartowski/Llama-3.2-1B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.llama_llama_3_2_1b_instruct_q4_k_m"},{- "name": "Llama 3.2 3B",- "description": "Small but capable multilingual model",- "descriptionKey": "models.descriptions.local.llama_llama_3_2_3b_instruct_q4_k_m","id": "llama-3.2-3b-instruct-q4_k_m",+ "name": "Llama 3.2 3B","size": "2.0GB","sizeBytes": 2168958976,+ "description": "Small but capable multilingual model","fileName": "Llama-3.2-3B-Instruct-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,"hfRepo": "bartowski/Llama-3.2-3B-Instruct-GGUF",- "recommended": true+ "recommended": true,+ "descriptionKey": "models.descriptions.local.llama_llama_3_2_3b_instruct_q4_k_m"},{- "name": "Llama 3.1 8B",- "description": "Powerful model with great performance",- "descriptionKey": "models.descriptions.local.llama_llama_3_1_8b_instruct_q4_k_m","id": "llama-3.1-8b-instruct-q4_k_m",+ "name": "Llama 3.1 8B","size": "4.9GB","sizeBytes": 5282717696,+ "description": "Powerful model with great performance","fileName": "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,- "hfRepo": "bartowski/Meta-Llama-3.1-8B-Instruct-GGUF"+ "hfRepo": "bartowski/Meta-Llama-3.1-8B-Instruct-GGUF",+ "descriptionKey": "models.descriptions.local.llama_llama_3_1_8b_instruct_q4_k_m"}]},@@ -1105,18 +1121,18 @@"baseUrl": "https://huggingface.co","models": [{- "name": "GPT-OSS 20B",- "description": "OpenAI's open-weight model for consumer hardware",- "descriptionKey": "models.descriptions.local.openai_oss_gpt_oss_20b_mxfp4","id": "gpt-oss-20b-mxfp4",+ "name": "GPT-OSS 20B","size": "12.1GB","sizeBytes": 12999763968,+ "description": "OpenAI's open-weight model for consumer hardware","fileName": "gpt-oss-20b-MXFP4.gguf","quantization": "mxfp4","contextLength": 128000,"hfRepo": "ggml-org/gpt-oss-20b-GGUF","recommended": true,- "supportsThinking": true+ "supportsThinking": true,+ "descriptionKey": "models.descriptions.local.openai_oss_gpt_oss_20b_mxfp4"}]},@@ -1126,150 +1142,150 @@"baseUrl": "https://huggingface.co","models": [{- "name": "Gemma 4 31B",- "description": "Google's largest Gemma 4, best quality",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_31b_it_q4_k_m","id": "gemma-4-31b-it-q4_k_m",+ "name": "Gemma 4 31B","size": "19.6GB","sizeBytes": 19598487712,+ "description": "Google's largest Gemma 4, best quality","fileName": "google_gemma-4-31B-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,- "hfRepo": "bartowski/google_gemma-4-31B-it-GGUF"+ "hfRepo": "bartowski/google_gemma-4-31B-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_31b_it_q4_k_m"},{- "name": "Gemma 4 31B QAT",- "description": "Google's official QAT build, smaller with quality preserved",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_31b_it_qat_q4_0","id": "gemma-4-31b-it-qat-q4_0",+ "name": "Gemma 4 31B QAT","size": "17.9GB","sizeBytes": 17651001568,+ "description": "Google's official QAT build, smaller with quality preserved","fileName": "gemma-4-31B_q4_0-it.gguf","quantization": "q4_0","contextLength": 262144,"hfRepo": "google/gemma-4-31B-it-qat-q4_0-gguf","draftHfRepo": "unsloth/gemma-4-31B-it-qat-GGUF","draftFileName": "mtp-gemma-4-31B-it.gguf",- "draftSizeBytes": 279955968+ "draftSizeBytes": 279955968,+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_31b_it_qat_q4_0"},{- "name": "Gemma 4 26B MoE",- "description": "Google's MoE Gemma 4, fast with 4B active params",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_26b_a4b_it_q4_k_m","id": "gemma-4-26b-a4b-it-q4_k_m",+ "name": "Gemma 4 26B MoE","size": "17.0GB","sizeBytes": 17035037632,+ "description": "Google's MoE Gemma 4, fast with 4B active params","fileName": "google_gemma-4-26B-A4B-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,- "hfRepo": "bartowski/google_gemma-4-26B-A4B-it-GGUF"+ "hfRepo": "bartowski/google_gemma-4-26B-A4B-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_26b_a4b_it_q4_k_m"},{- "name": "Gemma 4 26B MoE QAT",- "description": "Google's official QAT MoE build, smaller with quality preserved",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_26b_a4b_it_qat_q4_0","id": "gemma-4-26b-a4b-it-qat-q4_0",+ "name": "Gemma 4 26B MoE QAT","size": "14.7GB","sizeBytes": 14439363584,+ "description": "Google's official QAT MoE build, smaller with quality preserved","fileName": "gemma-4-26B_q4_0-it.gguf","quantization": "q4_0","contextLength": 262144,"hfRepo": "google/gemma-4-26B-A4B-it-qat-q4_0-gguf","draftHfRepo": "unsloth/gemma-4-26B-A4B-it-qat-GGUF","draftFileName": "mtp-gemma-4-26B-A4B-it.gguf",- "draftSizeBytes": 251939328+ "draftSizeBytes": 251939328,+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_26b_a4b_it_qat_q4_0"},{- "name": "Gemma 4 E4B",- "description": "Google's latest multimodal, strong reasoning",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_e4b_it_q4_k_m","id": "gemma-4-e4b-it-q4_k_m",+ "name": "Gemma 4 E4B","size": "5.4GB","sizeBytes": 5812137984,+ "description": "Google's latest multimodal, strong reasoning","fileName": "google_gemma-4-E4B-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,- "hfRepo": "bartowski/google_gemma-4-E4B-it-GGUF"+ "hfRepo": "bartowski/google_gemma-4-E4B-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_e4b_it_q4_k_m"},{- "name": "Gemma 4 E4B QAT",- "description": "Google's official QAT build, strong reasoning, smaller size",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_e4b_it_qat_q4_0","id": "gemma-4-e4b-it-qat-q4_0",+ "name": "Gemma 4 E4B QAT","size": "5.2GB","sizeBytes": 5154941280,+ "description": "Google's official QAT build, strong reasoning, smaller size","fileName": "gemma-4-E4B_q4_0-it.gguf","quantization": "q4_0","contextLength": 262144,"hfRepo": "google/gemma-4-E4B-it-qat-q4_0-gguf",- "recommended": true,"draftHfRepo": "unsloth/gemma-4-E4B-it-qat-GGUF","draftFileName": "mtp-gemma-4-E4B-it.gguf",- "draftSizeBytes": 59678016+ "draftSizeBytes": 59678016,+ "recommended": true,+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_e4b_it_qat_q4_0"},{- "name": "Gemma 4 E2B",- "description": "Google's compact Gemma 4, fast and efficient",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_e2b_it_q4_k_m","id": "gemma-4-e2b-it-q4_k_m",+ "name": "Gemma 4 E2B","size": "3.5GB","sizeBytes": 3711514624,+ "description": "Google's compact Gemma 4, fast and efficient","fileName": "google_gemma-4-E2B-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 262144,- "hfRepo": "bartowski/google_gemma-4-E2B-it-GGUF"+ "hfRepo": "bartowski/google_gemma-4-E2B-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_e2b_it_q4_k_m"},{- "name": "Gemma 4 E2B QAT",- "description": "Google's official compact QAT build, quality preserved",- "descriptionKey": "models.descriptions.local.gemma_gemma_4_e2b_it_qat_q4_0","id": "gemma-4-e2b-it-qat-q4_0",+ "name": "Gemma 4 E2B QAT","size": "3.4GB","sizeBytes": 3349516256,+ "description": "Google's official compact QAT build, quality preserved","fileName": "gemma-4-E2B_q4_0-it.gguf","quantization": "q4_0","contextLength": 262144,"hfRepo": "google/gemma-4-E2B-it-qat-q4_0-gguf","draftHfRepo": "unsloth/gemma-4-E2B-it-qat-GGUF","draftFileName": "mtp-gemma-4-E2B-it.gguf",- "draftSizeBytes": 59235648+ "draftSizeBytes": 59235648,+ "descriptionKey": "models.descriptions.local.gemma_gemma_4_e2b_it_qat_q4_0"},{- "name": "Gemma 3 12B",- "description": "Google's mid-range model, strong reasoning",- "descriptionKey": "models.descriptions.local.gemma_gemma_3_12b_it_q4_k_m","id": "gemma-3-12b-it-q4_k_m",+ "name": "Gemma 3 12B","size": "7.3GB","sizeBytes": 7847624704,+ "description": "Google's mid-range model, strong reasoning","fileName": "google_gemma-3-12b-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,- "hfRepo": "bartowski/google_gemma-3-12b-it-GGUF"+ "hfRepo": "bartowski/google_gemma-3-12b-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_3_12b_it_q4_k_m"},{- "name": "Gemma 3 4B",- "description": "Google's open-weight model, great balance of speed and quality",- "descriptionKey": "models.descriptions.local.gemma_gemma_3_4b_it_q4_k_m","id": "gemma-3-4b-it-q4_k_m",+ "name": "Gemma 3 4B","size": "2.49GB","sizeBytes": 2489758112,+ "description": "Google's open-weight model, great balance of speed and quality","fileName": "google_gemma-3-4b-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 131072,- "hfRepo": "bartowski/google_gemma-3-4b-it-GGUF"+ "hfRepo": "bartowski/google_gemma-3-4b-it-GGUF",+ "descriptionKey": "models.descriptions.local.gemma_gemma_3_4b_it_q4_k_m"},{- "name": "Gemma 3 1B",- "description": "Ultra-fast Google model, best for short dictation cleanup",- "descriptionKey": "models.descriptions.local.gemma_gemma_3_1b_it_q4_k_m","id": "gemma-3-1b-it-q4_k_m",+ "name": "Gemma 3 1B","size": "0.81GB","sizeBytes": 806058496,+ "description": "Ultra-fast Google model, best for short dictation cleanup","fileName": "google_gemma-3-1b-it-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 32768,"hfRepo": "bartowski/google_gemma-3-1b-it-GGUF",- "recommended": false+ "recommended": false,+ "descriptionKey": "models.descriptions.local.gemma_gemma_3_1b_it_q4_k_m"}]},@@ -1279,89 +1295,69 @@"baseUrl": "https://huggingface.co","models": [{- "name": "LFM2.5 1.2B",- "description": "Liquid AI's efficient on-device model, excellent instruction following",- "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_1_2b_instruct_q4_k_m","id": "lfm2.5-1.2b-instruct-q4_k_m",+ "name": "LFM2.5 1.2B","size": "0.73GB","sizeBytes": 730895168,+ "description": "Liquid AI's efficient on-device model, excellent instruction following","fileName": "LFM2.5-1.2B-Instruct-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 32768,"hfRepo": "LiquidAI/LFM2.5-1.2B-Instruct-GGUF",- "recommended": true+ "recommended": true,+ "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_1_2b_instruct_q4_k_m"},{- "name": "LFM2.5 8B MoE",- "description": "Liquid AI's MoE, high quality with only 1.5B active params",- "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_8b_a1b_q4_k_m","id": "lfm2.5-8b-a1b-q4_k_m",+ "name": "LFM2.5 8B MoE","size": "4.8GB","sizeBytes": 5155564768,+ "description": "Liquid AI's MoE, high quality with only 1.5B active params","fileName": "LFM2.5-8B-A1B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 32768,- "hfRepo": "LiquidAI/LFM2.5-8B-A1B-GGUF"+ "hfRepo": "LiquidAI/LFM2.5-8B-A1B-GGUF",+ "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_8b_a1b_q4_k_m"},{- "name": "LFM2 2.6B",- "description": "Balanced LFM2 for higher quality cleanup",- "descriptionKey": "models.descriptions.local.liquidai_lfm2_2_6b_q4_k_m","id": "lfm2-2.6b-q4_k_m",+ "name": "LFM2 2.6B","size": "1.5GB","sizeBytes": 1563668704,+ "description": "Balanced LFM2 for higher quality cleanup","fileName": "LFM2-2.6B-Q4_K_M.gguf","quantization": "q4_k_m","contextLength": 32768,- "hfRepo": "LiquidAI/LFM2-2.6B-GGUF"+ "hfRepo": "LiquidAI/LFM2-2.6B-GGUF",+ "descriptionKey": "models.descriptions.local.liquidai_lfm2_2_6b_q4_k_m"},{- "name": "LFM2.5 350M",- "description": "Ultra-light model for fast dictation cleanup",- "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_350m_q8_0","id": "lfm2.5-350m-q8_0",+ "name": "LFM2.5 350M","size": "0.38GB","sizeBytes": 379217632,+ "description": "Ultra-light model for fast dictation cleanup","fileName": "LFM2.5-350M-Q8_0.gguf","quantization": "q8_0","contextLength": 32768,- "hfRepo": "LiquidAI/LFM2.5-350M-GGUF"+ "hfRepo": "LiquidAI/LFM2.5-350M-GGUF",+ "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_350m_q8_0"},{- "name": "LFM2.5 230M",- "description": "Tiny model, instant cleanup on modest hardware",- "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_230m_q8_0","id": "lfm2.5-230m-q8_0",+ "name": "LFM2.5 230M","size": "0.25GB","sizeBytes": 246598496,+ "description": "Tiny model, instant cleanup on modest hardware","fileName": "LFM2.5-230M-Q8_0.gguf","quantization": "q8_0","contextLength": 32768,- "hfRepo": "LiquidAI/LFM2.5-230M-GGUF"+ "hfRepo": "LiquidAI/LFM2.5-230M-GGUF",+ "descriptionKey": "models.descriptions.local.liquidai_lfm2_5_230m_q8_0"}]}],- "diarizationModels": {- "sherpa-onnx-pyannote-segmentation-3-0": {- "name": "Pyannote Segmentation 3.0",- "description": "Speech boundary detection for speaker diarization",- "size": "6.6 MB",- "sizeMb": 6.6,- "downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-segmentation-models/sherpa-onnx-pyannote-segmentation-3-0.tar.bz2",- "extractDir": "sherpa-onnx-pyannote-segmentation-3-0",- "descriptionKey": "models.descriptions.diarization.segmentation"- },- "3dspeaker-campplus-en": {- "name": "CAM++ Speaker Embedding (English)",- "description": "Speaker voice fingerprinting for identification",- "size": "28.2 MB",- "sizeMb": 28.2,- "downloadUrl": "https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_en_voxceleb_16k.onnx",- "fileName": "3dspeaker_speech_campplus_sv_en_voxceleb_16k.onnx",- "descriptionKey": "models.descriptions.diarization.embedding_en"- }- },"openwhisprCloudModels": {"tiers": [{diff --git a/src/models/registryBootstrap.js b/src/models/registryBootstrap.jsdeleted file mode 100644index fa0026e15..000000000--- a/src/models/registryBootstrap.js+++ /dev/null@@ -1,6 +0,0 @@-import { startRegistrySync } from "./registrySync.js";--// This must be the first entrypoint import: settings-store migrations run as-// modules evaluate and must recognize previously selected remote-added models.-const stop = startRegistrySync(globalThis.window?.electronAPI);-if (import.meta.hot) import.meta.hot.dispose(stop);diff --git a/src/models/registryBundle.json b/src/models/registryBundle.jsondeleted file mode 100644index b7fd58a0b..000000000--- a/src/models/registryBundle.json+++ /dev/null@@ -1,6 +0,0 @@-{- "algorithm": "Ed25519",- "keyId": "primary-2026-10",- "payload": "eyJzY2hlbWFWZXJzaW9uIjoxLCJjb250cmFjdEhhc2hlcyI6eyJzY2hlbWEiOiIxMzI2NTAyN2ZhZDBmMTg5YjRiMDQ4ZDhlNTI3YmM1M2JlMWVjNTllMTU1NTQ1YTU4ZmQ3Y2Y4OWQ5ZGJmMDZmIi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3Ryb25nIGdlbmVyYWwtcHVycG9zZSByZWFzb25pbmcifV19XX19fQ==",- "signature": "eJmTczMIca64P74IvfRB1fNpH0/Hu81894guvegFrC1g15sP+cX66kJ0k9bosF1e2ag/cw8IaW5chndDTeJYBA=="-}diff --git a/src/models/registryData.d.ts b/src/models/registryData.d.tsdeleted file mode 100644index 84e200410..000000000--- a/src/models/registryData.d.ts+++ /dev/null@@ -1,8 +0,0 @@-import type { ModelRegistryData } from "./ModelRegistry";-export type RegistrySnapshot = { data: ModelRegistryData; manifestVersion: number };-export const registryData: ModelRegistryData;-export function getRegistryData(): ModelRegistryData;-export function getRegistryVersion(): number;-export function getRegistrySnapshot(): RegistrySnapshot;-export function subscribeRegistry(listener: () => void): () => void;-export function replaceRegistryData(snapshot: RegistrySnapshot): boolean;diff --git a/src/models/registryData.js b/src/models/registryData.jsdeleted file mode 100644index 1dfec3383..000000000--- a/src/models/registryData.js+++ /dev/null@@ -1,48 +0,0 @@-import bundled from "./modelRegistryData.json" with { type: "json" };-import { selectCatalogForVersion } from "./registrySelection.js";-import appPackage from "../../package.json" with { type: "json" };-import metadata from "./registryMetadata.json" with { type: "json" };--function freeze(value) {- if (value && typeof value === "object") {- Object.values(value).forEach(freeze);- Object.freeze(value);- }- return value;-}--// A stable top-level reference keeps existing CJS and ESM readers live. Each-// replacement owns immutable child objects, so in-flight work keeps its config.-export const registryData = { ...freeze(selectCatalogForVersion(bundled, {}, appPackage.version)) };-let version = metadata.manifestVersion;-const listeners = new Set();-export const getRegistryData = () => registryData;-export const getRegistryVersion = () => version;-export const getRegistrySnapshot = () => ({- data: structuredClone(registryData),- manifestVersion: version,-});-export function subscribeRegistry(listener) {- listeners.add(listener);- return () => listeners.delete(listener);-}--// Only the verified main loader and its preload/IPC mirror call this boundary.-// Signature and compatibility checks belong in main, never in the renderer.-export function replaceRegistryData(snapshot) {- if (!Number.isSafeInteger(snapshot?.manifestVersion) || snapshot.manifestVersion <= version)- return false;- if (!snapshot.data || Object.keys(bundled).some((key) => !Object.hasOwn(snapshot.data, key)))- return false;- const next = freeze(structuredClone(snapshot.data));- Object.assign(registryData, next);- version = snapshot.manifestVersion;- for (const listener of listeners) {- try {- listener();- } catch (error) {- console.error("Model registry subscriber failed", error);- }- }- return true;-}diff --git a/src/models/registryEnvelope.cjs b/src/models/registryEnvelope.cjsdeleted file mode 100644index 6f3de1646..000000000--- a/src/models/registryEnvelope.cjs+++ /dev/null@@ -1,51 +0,0 @@-const crypto = require("node:crypto");-const MAX_ENVELOPE_BYTES = 2 * 1024 * 1024;--function signEnvelope(payload, keyId, privateKey) {- return {- algorithm: "Ed25519",- keyId,- payload: payload.toString("base64"),- signature: crypto.sign(null, payload, privateKey).toString("base64"),- };-}--function decodeBase64(value) {- if (- typeof value !== "string" ||- !value ||- value.length % 4 ||- !/^[A-Za-z0-9+/]*={0,2}$/.test(value)- )- throw new Error("Invalid registry encoding");- const decoded = Buffer.from(value, "base64");- if (decoded.toString("base64") !== value)- throw new Error("Non-canonical registry encoding");- return decoded;-}--function verifyEnvelope(bytes, trustedKeys) {- if (Buffer.byteLength(bytes) > MAX_ENVELOPE_BYTES)- throw new Error("Registry envelope too large");- const envelope = JSON.parse(bytes.toString());- if (- !envelope ||- Object.keys(envelope).sort().join(",") !==- "algorithm,keyId,payload,signature" ||- envelope.algorithm !== "Ed25519" ||- typeof envelope.keyId !== "string" ||- !Object.hasOwn(trustedKeys, envelope.keyId)- )- throw new Error("Untrusted registry envelope");- const payload = decodeBase64(envelope.payload);- const signature = decodeBase64(envelope.signature);- const key = crypto.createPublicKey(trustedKeys[envelope.keyId]);- if (- key.asymmetricKeyType !== "ed25519" ||- signature.length !== 64 ||- !crypto.verify(null, payload, key, signature)- )- throw new Error("Invalid registry signature");- return JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(payload));-}-module.exports = { signEnvelope, verifyEnvelope, MAX_ENVELOPE_BYTES };diff --git a/src/models/registryMetadata.json b/src/models/registryMetadata.jsondeleted file mode 100644index ac670c581..000000000--- a/src/models/registryMetadata.json+++ /dev/null@@ -1,12 +0,0 @@-{- "schemaVersion": 1,- "manifestVersion": 2,- "publicationCommit": "5a384967fc022ec1e763f230fab59d1ccdcd2812",- "sourceCommit": "a633e57e21eb768c292f21c7cda723221d8e1c32",- "contractHashes": {- "schema": "13265027fad0f189b4b048d8e527bc53be1ec59e155545a58fd7cf89d9dbf06f",- "envelope": "ad6476c1f69d0a0a141c4856f456b6ecc1b0abed38dcca57ce10b8aab21b7ca9",- "selection": "ac0b1bb56c0918addeb03b662378e448304aaa658745785c910df6d8ddb2775c"- },- "payloadSha256": "0205f39330826101d09d7b8ba04de4a207b945391e1f061f408c27f9bf557006"-}diff --git a/src/models/registrySchema.cjs b/src/models/registrySchema.cjsdeleted file mode 100644index 738416e0d..000000000--- a/src/models/registrySchema.cjs+++ /dev/null@@ -1,497 +0,0 @@-const { z } = require("zod");-const { selectCatalogForVersion } = require("./registrySelection.js");--const text = z.string().min(1).max(4096);-const id = z- .string()- .min(1)- .max(200)- .regex(/^[A-Za-z0-9][A-Za-z0-9._:/+-]*$/);-const version = z- .string()- .regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/)- .refine((value) =>- value.split(".").every((part) => Number.isSafeInteger(Number(part))),- );-const sha256 = z.string().regex(/^[a-f0-9]{64}$/);-const positive = z.number().positive().finite();-const safeName = z- .string()- .min(1)- .max(240)- .regex(/^[A-Za-z0-9][A-Za-z0-9._+-]*$/)- .refine(- (value) =>- !value.includes("..") &&- !/^temp-extract-/i.test(value) &&- !/\.(tmp|tar\.bz2)$/i.test(value) &&- !value.endsWith(".") &&- !/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(value),- );-const hfRepo = z- .string()- .regex(/^[A-Za-z0-9][A-Za-z0-9._-]*\/[A-Za-z0-9][A-Za-z0-9._-]*$/)- .refine((value) => !value.includes(".."));--function isModelUrl(value) {- try {- const url = new URL(value);- if (- url.protocol !== "https:" ||- url.username ||- url.password ||- url.port ||- url.search ||- url.hash ||- /[\\\s%]/.test(value) ||- value.split("/").some((part) => part === "." || part === "..")- )- return false;- if (url.hostname === "huggingface.co")- return /^\/[^/]+\/[^/]+\/resolve\/[^/]+\/.+/.test(url.pathname);- return (- url.hostname === "github.com" &&- /^\/(k2-fsa|ggml-org|OpenWhispr)\/[^/]+\/releases\/download\/[^/]+\/.+/.test(- url.pathname,- )- );- } catch {- return false;- }-}-const modelUrl = z- .string()- .max(2048)- .refine(isModelUrl, "Unsupported model download URL");-const description = {- name: text,- description: text,- descriptionKey: text.optional(),- minAppVersion: version.optional(),-};-const cloudModel = z- .object({- ...description,- id,- disableThinking: z.boolean().optional(),- supportsThinking: z.boolean().optional(),- supportsVision: z.boolean().optional(),- tokenParam: z.enum(["max_tokens", "max_completion_tokens"]).optional(),- supportsTemperature: z.boolean().optional(),- })- .strict();-const transcriptionModel = z- .object({ ...description, id, streaming: z.boolean().optional() })- .strict();-const localModel = z- .object({- ...description,- id,- size: text,- sizeBytes: positive,- fileName: safeName,- quantization: text,- contextLength: z.number().int().positive().max(10000000),- hfRepo,- recommended: z.boolean().optional(),- supportsThinking: z.boolean().optional(),- sha256: sha256.optional(),- draftHfRepo: hfRepo.optional(),- draftFileName: safeName.optional(),- draftSizeBytes: positive.optional(),- draftSha256: sha256.optional(),- })- .strict()- .refine((model) => {- const draft = [- model.draftHfRepo,- model.draftFileName,- model.draftSizeBytes,- ];- return draft.every((value) => value === undefined)- ? model.draftSha256 === undefined- : draft.every((value) => value !== undefined);- }, "Incomplete draft artifact");-const whisperModel = z- .object({- ...description,- size: text,- sizeMb: positive,- expectedSizeBytes: positive.optional(),- fileName: safeName,- downloadUrl: modelUrl,- recommended: z.boolean().optional(),- sha256: sha256.optional(),- })- .strict();-const parakeetModel = z- .object({- ...description,- size: text,- sizeMb: positive,- expectedSizeBytes: positive.optional(),- language: text,- supportedLanguages: z.array(z.string().min(1).max(20)).max(1000),- downloadUrl: modelUrl,- extractDir: safeName,- manifestUrl: modelUrl.optional(),- runtime: z.enum(["offline", "online"]).optional(),- modelType: z.enum(["transducer", "cohere-transcribe"]).optional(),- sherpaModelType: z.literal("nemo_transducer").optional(),- recommended: z.boolean().optional(),- sha256: sha256.optional(),- license: text.optional(),- organization: z- .object({ id: z.enum(["oruk", "nvidia", "cohere"]), name: text })- .strict()- .optional(),- modelCardUrl: z- .string()- .url()- .refine((value) => value.startsWith("https://huggingface.co/"))- .optional(),- })- .strict();-const provider = { id: safeName, name: text };-const list = (schema) => z.array(schema).max(1000);-const catalogSchema = z- .object({- whisperModels: z.record(safeName, whisperModel),- parakeetModels: z.record(safeName, parakeetModel),- cloudProviders: list(- z- .object({- ...provider,- defaultModel: id.optional(),- models: list(cloudModel),- })- .strict(),- ),- enterpriseProviders: list(- z- .object({- ...provider,- allowCustomModelId: z.boolean(),- defaultModel: id.optional(),- models: list(cloudModel),- })- .strict(),- ),- transcriptionProviders: list(- z- .object({- ...provider,- baseUrl: z.string().url(),- batchModel: id.optional(),- models: list(transcriptionModel),- })- .strict(),- ),- localProviders: list(- z- .object({- ...provider,- baseUrl: z.literal("https://huggingface.co"),- models: list(localModel),- })- .strict(),- ),- // Preserved legacy sections have no runtime consumer. They cannot be edited remotely.- diarizationModels: z.record(z.string(), z.json()),- openwhisprCloudModels: z.json(),- })- .strict();--const PROVIDER_SECTIONS = [- "cloudProviders",- "enterpriseProviders",- "transcriptionProviders",- "localProviders",-];-const MAP_SECTIONS = ["whisperModels", "parakeetModels"];-const same = (a, b) => JSON.stringify(a) === JSON.stringify(b);-const requireCondition = (condition, message) => {- if (!condition) throw new Error(message);-};--function rejectUnsafeKeys(value) {- if (!value || typeof value !== "object") return;- for (const [key, child] of Object.entries(value)) {- requireCondition(- !["__proto__", "prototype", "constructor"].includes(key),- "Unsafe registry property",- );- rejectUnsafeKeys(child);- }-}--function validateCatalog(input) {- rejectUnsafeKeys(input);- const data = catalogSchema.parse(input);- for (const section of PROVIDER_SECTIONS) {- const providers = new Set();- for (const item of data[section]) {- requireCondition(- !providers.has(item.id),- `Duplicate provider ${item.id}`,- );- providers.add(item.id);- const models = new Set();- for (const model of item.models) {- requireCondition(- !models.has(model.id),- `Duplicate model ${item.id}/${model.id}`,- );- models.add(model.id);- }- if (item.defaultModel)- requireCondition(- models.has(item.defaultModel),- `Missing default for ${item.id}`,- );- }- }- return data;-}--const NATIVE_MUTABLE_FIELDS = new Set([- "name",- "description",- "descriptionKey",- "minAppVersion",- "sha256",- "draftSha256",-]);-function assertNativeIdentity(next, previous) {- for (const key of new Set([...Object.keys(next), ...Object.keys(previous)])) {- if (NATIVE_MUTABLE_FIELDS.has(key)) continue;- requireCondition(- same(next[key], previous[key]),- `Changed native model identity: ${key}`,- );- }- for (const key of ["sha256", "draftSha256"]) {- if (previous[key])- requireCondition(- next[key] === previous[key],- `Changed artifact digest: ${key}`,- );- }-}-function assertNewDownload(model) {- requireCondition(!!model.sha256, "New model download requires sha256");- if (model.draftFileName)- requireCondition(- !!model.draftSha256,- "New draft download requires draftSha256",- );-}--function assertCompatibleCatalog(input, previousInput) {- const next = validateCatalog(input);- const previous = validateCatalog(previousInput);- for (const section of PROVIDER_SECTIONS) {- requireCondition(- same(- next[section].map((p) => p.id),- previous[section].map((p) => p.id),- ),- `Changed provider order in ${section}`,- );- requireCondition(- next[section].length === previous[section].length,- `Changed providers in ${section}`,- );- for (const oldProvider of previous[section]) {- const provider = next[section].find((item) => item.id === oldProvider.id);- requireCondition(!!provider, `Removed provider ${oldProvider.id}`);- for (const field of [- "baseUrl",- "allowCustomModelId",- "defaultModel",- "batchModel",- ]) {- requireCondition(- provider[field] === oldProvider[field],- `Changed provider contract ${provider.id}/${field}`,- );- }- requireCondition(- provider.models[0]?.id === oldProvider.models[0]?.id,- `Changed default model for ${provider.id}`,- );- requireCondition(- same(- provider.models.slice(0, oldProvider.models.length).map((m) => m.id),- oldProvider.models.map((m) => m.id),- ),- `Existing models must retain their order in ${provider.id}`,- );- for (const model of provider.models) {- if (!oldProvider.models.some((old) => old.id === model.id)) {- const sections =- section === "localProviders"- ? ["localProviders"]- : section === "transcriptionProviders"- ? ["transcriptionProviders"]- : ["cloudProviders", "enterpriseProviders"];- const matches = sections- .flatMap((key) => next[key])- .flatMap((p) => p.models)- .filter((m) => m.id === model.id);- requireCondition(- matches.length === 1,- `Ambiguous new model ID ${model.id}`,- );- if (section === "transcriptionProviders") {- requireCondition(- !["xai", "corti"].includes(provider.id),- `Transcription adapter ${provider.id} does not support model selection`,- );- requireCondition(- !model.streaming || oldProvider.models.some((m) => m.streaming),- `Unsupported streaming provider ${provider.id}`,- );- requireCondition(- model.streaming || oldProvider.models.some((m) => !m.streaming),- `Unsupported batch provider ${provider.id}`,- );- }- if (section === "localProviders") {- const occupied = next.localProviders- .flatMap((p) => p.models)- .filter((m) => m !== model)- .flatMap((m) => [m.fileName, m.draftFileName].filter(Boolean))- .map((name) => name.toLowerCase());- requireCondition(- !occupied.includes(model.fileName.toLowerCase()) &&- (!model.draftFileName ||- (!occupied.includes(model.draftFileName.toLowerCase()) &&- model.fileName.toLowerCase() !==- model.draftFileName.toLowerCase())),- "Colliding model artifact filename",- );- }- }- }- for (const oldModel of oldProvider.models) {- const model = provider.models.find((item) => item.id === oldModel.id);- requireCondition(- !!model,- `Removed model ${provider.id}/${oldModel.id}`,- );- requireCondition(- model.minAppVersion === oldModel.minAppVersion,- "Changed published minimum app version",- );- if (section === "localProviders") assertNativeIdentity(model, oldModel);- if (section === "transcriptionProviders")- requireCondition(- model.streaming === oldModel.streaming,- "Changed transcription transport",- );- }- if (section === "localProviders")- for (const model of provider.models) {- if (!oldProvider.models.some((old) => old.id === model.id))- assertNewDownload(model);- }- }- }- for (const section of MAP_SECTIONS) {- requireCondition(- same(- Object.keys(next[section]).slice(- 0,- Object.keys(previous[section]).length,- ),- Object.keys(previous[section]),- ),- `Existing models must retain their order in ${section}`,- );- for (const [modelId, model] of Object.entries(next[section])) {- if (Object.hasOwn(previous[section], modelId)) continue;- requireCondition(- MAP_SECTIONS.filter((key) => Object.hasOwn(next[key], modelId))- .length === 1,- `Ambiguous local model ID ${modelId}`,- );- if (section === "whisperModels")- requireCondition(- Object.entries(next.whisperModels).every(- ([id, other]) =>- id === modelId ||- other.fileName.toLowerCase() !== model.fileName.toLowerCase(),- ),- "Colliding Whisper filename",- );- if (section === "parakeetModels") {- requireCondition(- Object.keys(next.parakeetModels).filter(- (id) => id.toLowerCase() === modelId.toLowerCase(),- ).length === 1,- "Colliding Parakeet directory",- );- const engine = (m) => [- m.runtime || "offline",- m.modelType || "transducer",- m.sherpaModelType || "auto",- ];- requireCondition(- Object.values(previous.parakeetModels).some((old) =>- same(engine(old), engine(model)),- ),- "Unsupported native engine combination",- );- }- }- for (const [modelId, oldModel] of Object.entries(previous[section])) {- requireCondition(Object.hasOwn(next[section], modelId), `Removed model ${modelId}`);- requireCondition(- next[section][modelId].minAppVersion === oldModel.minAppVersion,- "Changed published minimum app version",- );- assertNativeIdentity(next[section][modelId], oldModel);- }- for (const [modelId, model] of Object.entries(next[section]))- if (!Object.hasOwn(previous[section], modelId)) assertNewDownload(model);- }- for (const section of ["diarizationModels", "openwhisprCloudModels"])- requireCondition(- same(next[section], previous[section]),- `Changed legacy section ${section}`,- );- return next;-}--function selectCatalog(input, fallback, appVersion) {- const data = validateCatalog(input);- version.parse(appVersion);- return selectCatalogForVersion(data, fallback, appVersion);-}--const manifestSchema = z- .object({- schemaVersion: z.literal(1),- contractHashes: z- .object({ schema: sha256, envelope: sha256, selection: sha256 })- .strict(),- manifestVersion: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),- publishedAt: z.iso.datetime(),- sourceCommit: z.string().regex(/^[a-f0-9]{40}$/),- data: catalogSchema,- })- .strict();-function validateManifest(input) {- const manifest = manifestSchema.parse(input);- manifest.data = validateCatalog(manifest.data);- return manifest;-}--module.exports = {- validateCatalog,- assertCompatibleCatalog,- selectCatalog,- validateManifest,- isModelUrl,-};diff --git a/src/models/registrySelection.js b/src/models/registrySelection.jsdeleted file mode 100644index 052164162..000000000--- a/src/models/registrySelection.js+++ /dev/null@@ -1,44 +0,0 @@-// Pure selection logic shared by Node validation and the renderer's offline-// bootstrap. Version syntax is the desktop's canonical major.minor.patch form.-export function isModelSupported(model, appVersion) {- if (!model.minAppVersion) return true;- const running = appVersion.split(".").map(Number);- const required = model.minAppVersion.split(".").map(Number);- for (let i = 0; i < 3; i++) {- if (running[i] !== required[i]) return running[i] > required[i];- }- return true;-}-export function selectCatalogForVersion(input, fallback, appVersion) {- const data = structuredClone(input);- for (const section of [- "cloudProviders",- "enterpriseProviders",- "transcriptionProviders",- "localProviders",- ]) {- for (const provider of data[section]) {- const old = fallback[section]?.find((item) => item.id === provider.id);- provider.models = provider.models.flatMap((model) =>- isModelSupported(model, appVersion)- ? [model]- : old?.models.filter(- (item) =>- item.id === model.id && isModelSupported(item, appVersion),- ) || [],- );- }- }- for (const section of ["whisperModels", "parakeetModels"]) {- for (const [id, model] of Object.entries(data[section]))- if (!isModelSupported(model, appVersion)) {- if (- Object.hasOwn(fallback[section] || {}, id) &&- isModelSupported(fallback[section][id], appVersion)- )- data[section][id] = structuredClone(fallback[section][id]);- else delete data[section][id];- }- }- return data;-}diff --git a/src/models/registrySync.js b/src/models/registrySync.jsdeleted file mode 100644index ee447aa69..000000000--- a/src/models/registrySync.js+++ /dev/null@@ -1,33 +0,0 @@-import { replaceRegistryData } from "./registryData.js";--const active = new WeakMap();-export function startRegistrySync(api) {- if (!api?.onModelRegistryUpdated) return () => {};- let state = active.get(api);- if (!state) {- // Preload obtained this snapshot from verified main state before any settings- // module evaluated. Subscribing before the async reconciliation closes the race.- if (api.initialModelRegistrySnapshot) replaceRegistryData(api.initialModelRegistrySnapshot);- state = { count: 0, stopped: false, unsubscribe: null };- const accept = (snapshot) => {- if (!state.stopped) replaceRegistryData(snapshot);- };- state.unsubscribe = api.onModelRegistryUpdated(accept);- active.set(api, state);- api- .getModelRegistry?.()- .then(accept)- .catch(() => {});- }- state.count++;- let disposed = false;- return () => {- if (disposed) return;- disposed = true;- if (--state.count === 0) {- state.stopped = true;- state.unsubscribe?.();- active.delete(api);- }- };-}diff --git a/src/models/registryTrustedKeys.json b/src/models/registryTrustedKeys.jsondeleted file mode 100644index 2f6d77cb7..000000000--- a/src/models/registryTrustedKeys.json+++ /dev/null@@ -1,3 +0,0 @@-{- "primary-2026-10": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAy2by5d3AY+zXEYZvXrrrVUBKklYw0eh1sMi6qEyjeBA=\n-----END PUBLIC KEY-----\n"-}diff --git a/src/stores/policyRules.ts b/src/stores/policyRules.tsindex d5bd8be58..c1dc0b8a9 100644--- a/src/stores/policyRules.ts+++ b/src/stores/policyRules.ts@@ -2,9 +2,10 @@ import type { InferenceMode, ShareVisibility } from "../types/electron";import type { OrgPolicy, PolicyScope } from "../types/policy";import type { SettingsState } from "./settingsStore";import { compareAppVersions } from "../utils/version.ts";-// The pure registry store keeps this policy module usable without browser globals.-// Provider membership is code-pinned by catalog compatibility validation.-import { registryData as modelRegistryData } from "../models/registryData.js";+// The registry JSON directly (like policyValidation.js), NOT ModelRegistry:+// that module pulls the settings/identity stores, whose module scope needs+// real browser globals, and this file is imported by node-run sync tests.+import modelRegistryData from "../models/modelRegistryData.json" with { type: "json" };export type PolicyStatus = "idle" | "loading" | "managed" | "unmanaged" | "error";diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 707c45c00..0abd72985 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -1,4 +1,3 @@-import "../models/registryBootstrap.js";import { create } from "zustand";import { API_ENDPOINTS } from "../config/constants";import i18n, { normalizeUiLanguage } from "../i18n";@@ -32,8 +31,7 @@ import {} from "../config/inferenceScopes";import { normalizeChineseScriptPreference } from "../utils/chineseScript";import { adjustBedrockModelForRegion } from "../utils/bedrockRegions";-import { registryData as modelRegistryData } from "../models/registryData.js";-import { getCloudModelProviders } from "../models/cloudModelCatalog";+import modelRegistryData from "../models/modelRegistryData.json";import { pickDefaultModelId } from "../models/providerDefaultModel";// Both are leaves: tinfoilModelCache imports only a type from ModelRegistry and// the switch store only zustand, so neither reopens the ModelRegistry cycle.@@ -154,10 +152,10 @@ function canonicalTranscriptionBaseUrl(providerId: string): string | null {function reasoningModelBelongsToProvider(providerId: string, modelId: string): boolean {if (!modelId) return false;// Custom and OpenRouter ids are free-form; any remembered id is valid.- // Tinfoil's separate live overlay is shared with the picker and policy defaults.+ // Tinfoil's registry entry is refreshed in place from its live catalog.if (providerId === "custom" || providerId === "openrouter") return true;return (- getCloudModelProviders()+ modelRegistryData.cloudProviders.find((provider) => provider.id === providerId)?.models.some((model) => model.id === modelId) ?? false);@@ -169,7 +167,7 @@ function defaultLlmModel(mode: InferenceMode, providerId: string, bedrockRegion:? modelRegistryData.localProviders: mode === "enterprise"? modelRegistryData.enterpriseProviders- : getCloudModelProviders();+ : modelRegistryData.cloudProviders;const defaultModel = pickDefaultModelId(providers.find(({ id }) => id === providerId));return mode === "enterprise" && providerId === "bedrock"? adjustBedrockModelForRegion(defaultModel, bedrockRegion)diff --git a/src/types/electron.ts b/src/types/electron.tsindex e5288e440..a26fef843 100644--- a/src/types/electron.ts+++ b/src/types/electron.ts@@ -2235,11 +2235,6 @@ declare global {checkForUpdates: () => Promise<UpdateCheckResult>;downloadUpdate: () => Promise<UpdateResult>;installUpdate: () => Promise<UpdateResult>;- initialModelRegistrySnapshot: import("../models/registryData").RegistrySnapshot;- getModelRegistry: () => Promise<import("../models/registryData").RegistrySnapshot>;- onModelRegistryUpdated: (- callback: (snapshot: import("../models/registryData").RegistrySnapshot) => void- ) => () => void;getAppVersion: () => Promise<AppVersionResult>;getPostMigrationState: () => Promise<{ justMigrated: boolean }>;getOAuthProtocolRegistered: () => Promise<boolean>;diff --git a/test/fixtures/model-archives.json b/test/fixtures/model-archives.jsondeleted file mode 100644index 7353a51b1..000000000--- a/test/fixtures/model-archives.json+++ /dev/null@@ -1,5 +0,0 @@-{- "valid": "QlpoOTFBWSZTWfBwBcsAAHd9gMmAAAJAAfcAAADuB55ACAggAFQykZA00aNAemp6gkknqANGgAB97YQQg2dCES6lUY210oEMDFHl7idhGcCLNxlGk7bjilR705Gc+CqlILfVns0ZkkD8XckU4UJDwcAXLA==",- "traversal": "QlpoOTFBWSZTWfWq5n8AAHX7gMmAAAJAAf8AEABuBt4ACAggAFRGqGjTRo0YmJmmgklGQaNMgAB9rAoQg2chCL+p2GN1taBDAxKXjTeJ7CI5gmvVDLqMFibTsdvaJei7keyK5RwAIsC7kinChIetVzP4",- "link": "QlpoOTFBWSZTWSY6F5oAAHb7gMiAABBAAfWABgAqAN4AAAggAFQkqaZAZG1DNIJJRmpiZAZB90MJBPNCEa4toSHdAhgYetQ9iKLCPIIg1Ss20jkfG7jlBndXuYjtiaSD8XckU4UJAmOheaA="-}diff --git a/test/helpers/apiKeyUpdatesIpc.test.js b/test/helpers/apiKeyUpdatesIpc.test.jsindex f1fcfbd79..a7c6f3ab9 100644--- a/test/helpers/apiKeyUpdatesIpc.test.js+++ b/test/helpers/apiKeyUpdatesIpc.test.js@@ -24,7 +24,6 @@ const bindings = [})),];const handlers = new Map();-const eventHandlers = new Map();const keys = new Map();const notifications = [];const editor = { id: 1 };@@ -116,11 +115,7 @@ const electron = {on() {},isPackaged: false,},- ipcMain: {- handle: (name, fn) => handlers.set(name, fn),- on: (name, fn) => eventHandlers.set(name, fn),- removeHandler() {},- },+ ipcMain: { handle: (name, fn) => handlers.set(name, fn), on() {}, removeHandler() {} },BrowserWindow: {getAllWindows: () => windows,fromWebContents: () => windows[1],@@ -153,10 +148,7 @@ Module._load = function (request, parent, isMain) {if (request === "./orukeetStreaming")return { OrukeetStreaming: FakeOrukeet, MANAGED_STREAM_OPTIONS: {} };if (request === "./geminiLiveStreaming")- return {- ...originalLoad.call(this, request, parent, isMain),- GeminiLiveStreaming: FakeStreaming,- };+ return { GeminiLiveStreaming: FakeStreaming, GEMINI_LIVE_MODEL: "gemini-live" };if (request === "./debugLogger") return new Proxy({}, { get: () => () => {} });if (request === "./tokenStore")return {@@ -398,39 +390,6 @@ test("assemblyai: a socket opened on the old key loses to the save, even when itassert.equal(target.assemblyAiStreaming.token, "token-B");});-test("gemini: live registry IDs reach the selected connection without a prefix requirement", async (t) => {- const store = require("../../src/models/registryData.js");- const old = store.getRegistrySnapshot();- const next = structuredClone(old.data);- next.transcriptionProviders- .find((p) => p.id === "gemini")- .models.push({- id: "registry-google-live",- name: "New Google model",- description: "Fixture",- streaming: true,- });- store.replaceRegistryData({ data: next, manifestVersion: old.manifestVersion + 1 });- const originalConnect = FakeStreaming.prototype.connect;- t.after(() => {- store.replaceRegistryData({ data: old.data, manifestVersion: old.manifestVersion + 2 });- FakeStreaming.prototype.connect = originalConnect;- });- FakeStreaming.prototype.connect = async function (options) {- this.currentModel = options.model;- return originalConnect.call(this, options);- };- target.geminiStreaming = null;- invoke("save-gemini-key", "A");- const result = await invoke("gemini-streaming-start", {- mode: "byok",- model: "registry-google-live",- });- assert.equal(result.success, true);- assert.equal(target.geminiStreaming.currentModel, "registry-google-live");- await invoke("gemini-streaming-stop");-});-test("gemini: a warm socket never crosses between managed and BYOK", async (t) => {withManagedApi(t);target.geminiStreaming = null;@@ -446,121 +405,6 @@ test("gemini: a warm socket never crosses between managed and BYOK", async (t) =assert.equal(target.geminiStreaming.token, "token-Bearer account");});-for (const inFlight of [false, true]) {- test(`gemini: changing the live model replaces a ${inFlight ? "connecting" : "ready"} warm socket`, async (t) => {- target.geminiStreaming = null;- invoke("save-gemini-key", "A");- const originalConnect = FakeStreaming.prototype.connect;- const entered = deferred();- const gate = deferred();- t.after(() => {- FakeStreaming.prototype.connect = originalConnect;- gate.resolve();- });- FakeStreaming.prototype.connect = async function (options) {- this.currentModel = options.model;- if (options.model === "gemini-old-live") {- entered.resolve();- if (inFlight) await gate.promise;- }- return originalConnect.call(this, options);- };- const warmup = invoke("gemini-streaming-warmup", { mode: "byok", model: "gemini-old-live" });- await entered.promise;- if (!inFlight) await warmup;- const start = invoke("gemini-streaming-start", { mode: "byok", model: "gemini-next-live" });- gate.resolve();- await warmup;- const result = await start;- assert.equal(result.success, true);- assert.equal(result.usedWarmConnection, false);- assert.equal(target.geminiStreaming.currentModel, "gemini-next-live");- await invoke("gemini-streaming-stop");- });-}--test("gemini: microphone frames during a model switch reach only the requested model", async (t) => {- target.geminiStreaming = null;- invoke("save-gemini-key", "A");- const originalConnect = FakeStreaming.prototype.connect;- const entered = deferred();- const gate = deferred();- const received = new Map();- t.after(() => {- FakeStreaming.prototype.connect = originalConnect;- gate.resolve();- });- FakeStreaming.prototype.connect = async function (options) {- this.currentModel = options.model;- received.set(options.model, []);- this.sendAudio = (bytes) => {- received.get(this.currentModel).push(Buffer.from(bytes));- return true;- };- if (options.model === "gemini-old-live") {- entered.resolve();- await gate.promise;- }- return originalConnect.call(this, options);- };- const warmup = invoke("gemini-streaming-warmup", { mode: "byok", model: "gemini-old-live" });- await entered.promise;- const starting = invoke("gemini-streaming-start", { mode: "byok", model: "gemini-next-live" });- const send = (bytes) => eventHandlers.get("gemini-streaming-send")({ sender: editor }, bytes);- send(Buffer.from([1, 2]));- gate.resolve();- await warmup;- assert.equal((await starting).success, true);- send(Buffer.from([3, 4]));- assert.deepEqual(received.get("gemini-old-live"), []);- assert.deepEqual(Buffer.concat(received.get("gemini-next-live")), Buffer.from([1, 2, 3, 4]));- await invoke("gemini-streaming-stop");-});--for (const [provider, saveChannel] of [- ["openai-realtime", "save-openai-key"],- ["tinfoil-realtime", "save-tinfoil-key"],-]) {- test(`${provider}: microphone frames during a model switch reach only the requested model`, async (t) => {- target._dictationStreaming = null;- invoke(saveChannel, "A");- const originalConnect = FakeStreaming.prototype.connect;- const entered = deferred();- const gate = deferred();- const received = new Map();- t.after(async () => {- FakeStreaming.prototype.connect = originalConnect;- gate.resolve();- await invoke("dictation-realtime-stop");- });- FakeStreaming.prototype.connect = async function (options) {- this.currentModel = options.model;- received.set(options.model, []);- this.sendAudio = (bytes) => {- received.get(this.currentModel).push(Buffer.from(bytes));- return true;- };- if (options.model === "old-live") {- entered.resolve();- await gate.promise;- }- return originalConnect.call(this, options);- };- const options = { mode: "byok", provider };- const warmup = invoke("dictation-realtime-warmup", { ...options, model: "old-live" });- await entered.promise;- const starting = invoke("dictation-realtime-start", { ...options, model: "new-live" });- const send = (bytes) => eventHandlers.get("dictation-realtime-send")({ sender: editor }, bytes);- send(Buffer.from([1, 2]));- gate.resolve();- await warmup;- assert.equal((await starting).success, true);- send(Buffer.from([3, 4]));- assert.deepEqual(received.get("old-live"), []);- assert.deepEqual(Buffer.concat(received.get("new-live")), Buffer.from([1, 2, 3, 4]));- });-}-// Tinfoil reads the saved key whatever the transcription mode says.for (const [provider, saveChannel, mode] of [["openai-realtime", "save-openai-key", "byok"],diff --git a/test/helpers/audioManagerStreamingRouting.test.js b/test/helpers/audioManagerStreamingRouting.test.jsindex 77f5d10a1..171ab814c 100644--- a/test/helpers/audioManagerStreamingRouting.test.js+++ b/test/helpers/audioManagerStreamingRouting.test.js@@ -158,46 +158,6 @@ test("managed OpenWhispr Cloud still respects its batch configuration", async (tassert.equal(manager.shouldUseStreaming(), false);});-test("new BYOK streaming models never override managed cloud routing", async (t) => {- const { createManager, vite } = await loadAudioManager(t, {- cachePrefix: "registry-streaming-boundary-",- settingsKey: "__streamingRoutingSettings",- });- const manager = createManager();- manager.sttConfig = { dictation: { mode: "batch" }, streamingProvider: "openai-realtime" };- const store = await vite.ssrLoadModule("/models/registryData.js");- const data = structuredClone(store.getRegistryData());- for (const provider of ["openai", "gemini"]) {- data.transcriptionProviders- .find((p) => p.id === provider)- .models.push({- id: `${provider}-future-live`,- name: "Future",- description: "Fixture",- streaming: true,- });- }- store.replaceRegistryData({ data, manifestVersion: store.getRegistryVersion() + 1 });- for (const provider of ["openai", "gemini"]) {- setSettings({- cloudTranscriptionProvider: provider,- cloudTranscriptionModel: `${provider}-future-live`,- geminiApiKey: "test",- });- assert.equal(manager.shouldUseStreaming(), true, `${provider} BYOK`);- assert.equal(- manager.getStreamingProviderName(),- provider === "openai" ? "openai-realtime" : "gemini"- );- setSettings({- cloudTranscriptionMode: "openwhispr",- cloudTranscriptionProvider: provider,- cloudTranscriptionModel: `${provider}-future-live`,- });- assert.equal(manager.shouldUseStreaming(), false, `${provider} managed batch`);- }-});-test("explicit Orukeet custom endpoint uses PCM streaming without cloud login", async (t) => {const manager = await loadManager(t);setSettings({diff --git a/test/helpers/deepgramStreaming.test.js b/test/helpers/deepgramStreaming.test.jsindex ae564742d..e1b1a5e83 100644--- a/test/helpers/deepgramStreaming.test.js+++ b/test/helpers/deepgramStreaming.test.js@@ -74,59 +74,6 @@ function dialLoopback(streaming, url) {buildRealUrl(options).replace("wss://api.deepgram.com/v1/listen", url);}-test("live BYOK models keep their selection across warm sockets and reconnects", async (t) => {- const store = require("../../src/models/registryData.js");- const old = store.getRegistrySnapshot();- const next = structuredClone(old.data);- next.transcriptionProviders- .find((p) => p.id === "deepgram")- .models.push({- id: "registry-deepgram-new",- name: "New compatible model",- description: "Fixture",- streaming: true,- });- t.after(() =>- store.replaceRegistryData({ data: old.data, manifestVersion: old.manifestVersion + 2 })- );- store.replaceRegistryData({ data: next, manifestVersion: old.manifestVersion + 1 });- await withMetadataServer(async (url, connections) => {- const streaming = new DeepgramStreaming();- dialLoopback(streaming, url);- try {- await streaming.warmup({ token: "byok-key", mode: "byok", model: "nova-3", language: "en" });- await streaming.connect({- token: "byok-key",- mode: "byok",- model: "registry-deepgram-new",- language: "en",- });- assert.equal(connections.length, 2, "a different model cannot reuse the warm socket");- assert.match(connections[1], /model=registry-deepgram-new/);- assert.equal(streaming.currentModel, "registry-deepgram-new");- assert.equal(streaming.connectionOptions.model, "registry-deepgram-new");- } finally {- streaming.cleanupAll();- }- });- const streaming = new DeepgramStreaming();- const modelFor = (options) =>- new URL(streaming.buildWebSocketUrl(options)).searchParams.get("model");- assert.equal(modelFor({ mode: "byok", model: "nova-3", language: "zh" }), "nova-2");- assert.equal(- modelFor({ mode: "byok", model: "registry-deepgram-new", language: "zh" }),- "registry-deepgram-new"- );- assert.equal(- modelFor({ mode: "openwhispr", model: "registry-deepgram-new", language: "en" }),- "nova-3"- );- assert.equal(- modelFor({ mode: "byok", model: "another-provider-model", language: "en" }),- "nova-3"- );-});-test("a warm connection opened for another language is not reused", async () => {await withMetadataServer(async (url, connections) => {const streaming = new DeepgramStreaming();diff --git a/test/helpers/downloadIntegrity.test.js b/test/helpers/downloadIntegrity.test.jsdeleted file mode 100644index 65cafe52d..000000000--- a/test/helpers/downloadIntegrity.test.js+++ /dev/null@@ -1,156 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const fs = require("node:fs");-const os = require("node:os");-const path = require("node:path");-const { createHash } = require("node:crypto");-const { EventEmitter } = require("node:events");-const { PassThrough } = require("node:stream");-const digest = (bytes) => createHash("sha256").update(bytes).digest("hex");--function setup(t, body, offset = 0) {- const dir = fs.mkdtempSync(path.join(os.tmpdir(), "model-integrity-"));- const dest = path.join(dir, "model.bin");- const electron = require.resolve("electron");- const modulePath = require.resolve("../../src/helpers/downloadUtils");- const prior = require.cache[electron];- const requests = [];- require.cache[electron] = {- exports: {- app: { isReady: () => false },- net: {- request(options) {- requests.push(options);- const req = new EventEmitter();- req.setHeader = () => {};- req.abort = () => {};- req.end = () =>- queueMicrotask(() => {- const response = new PassThrough();- response.statusCode = offset ? 206 : 200;- response.headers = {- "content-length": String(body.length),- "content-range": `bytes ${offset}-${offset + body.length - 1}/${offset + body.length}`,- };- req.emit("response", response);- response.end(body);- });- return req;- },- },- },- };- delete require.cache[modulePath];- const api = require(modulePath);- t.after(() => {- delete require.cache[modulePath];- if (prior) require.cache[electron] = prior;- else delete require.cache[electron];- fs.rmSync(dir, { recursive: true, force: true });- });- return { ...api, dest, requests };-}--test("incorrect bytes never replace an existing installed model", async (t) => {- const { downloadFile, dest } = setup(t, Buffer.from("corrupted"));- fs.writeFileSync(dest, "working model");- await assert.rejects(- downloadFile("https://example.com/model", dest, {- expectedSha256: digest("correct"),- maxRetries: 0,- }),- /SHA-256/- );- assert.equal(fs.readFileSync(dest, "utf8"), "working model");- assert.equal(fs.existsSync(`${dest}.tmp`), false);-});--test("a resumed download hashes the entire temporary file before installation", async (t) => {- const { downloadFile, dest } = setup(t, Buffer.from("suffix"), 6);- fs.writeFileSync(`${dest}.tmp`, "prefix");- await downloadFile("https://example.com/model", dest, {- expectedSha256: digest("prefixsuffix"),- maxRetries: 0,- });- assert.equal(fs.readFileSync(dest, "utf8"), "prefixsuffix");-});--test("corrupted resumed bytes fail even when the fetched suffix is correct", async (t) => {- const { downloadFile, dest } = setup(t, Buffer.from("suffix"), 6);- fs.writeFileSync(`${dest}.tmp`, "broken");- await assert.rejects(- downloadFile("https://example.com/model", dest, {- expectedSha256: digest("prefixsuffix"),- maxRetries: 0,- }),- /SHA-256/- );- assert.equal(fs.existsSync(dest), false);-});--test("reused artifacts are verified against the expected digest", async (t) => {- const { verifyFileSha256, dest } = setup(t, Buffer.alloc(0));- fs.writeFileSync(dest, "archive");- await verifyFileSha256(dest, digest("archive"));- await assert.rejects(verifyFileSha256(dest, digest("other")), /SHA-256/);-});--test("model archive entries cannot escape their declared root or create links", () => {- const { assertSafeModelArchiveEntry } = require("../../src/helpers/modelArchiveIntegrity");- for (const name of ["root/encoder.onnx", "root/sub/tokens.txt", "./root/"]) {- assert.doesNotThrow(() =>- assertSafeModelArchiveEntry(- { path: name, type: name.endsWith("/") ? "Directory" : "File" },- "root"- )- );- }- for (const name of [- "../outside",- "/root/file",- "root/../../file",- "root/..\\outside",- "C:/root/file",- "other/file",- ]) {- assert.throws(- () => assertSafeModelArchiveEntry({ path: name, type: "File" }, "root"),- /Unsafe/- );- }- for (const type of ["SymbolicLink", "Link", "CharacterDevice", "FIFO"]) {- assert.throws(() => assertSafeModelArchiveEntry({ path: "root/file", type }, "root"), /Unsafe/);- }-});--test("complete compressed archives are checked before extraction", async (t) => {- const { validateModelArchive } = require("../../src/helpers/modelArchiveIntegrity");- const { dest } = setup(t, Buffer.alloc(0));- const archives = require("../fixtures/model-archives.json");- fs.writeFileSync(dest, Buffer.from(archives.valid, "base64"));- await validateModelArchive(dest, "root");- for (const name of ["traversal", "link"]) {- fs.writeFileSync(dest, Buffer.from(archives[name], "base64"));- await assert.rejects(validateModelArchive(dest, "root"), /Unsafe/);- }-});--test("cancelling archive verification stops the read before extraction can begin", async (t) => {- const { validateModelArchive } = require("../../src/helpers/modelArchiveIntegrity");- const { createDownloadSignal, dest } = setup(t, Buffer.alloc(0));- const originalRead = fs.createReadStream;- const stalled = new PassThrough();- fs.createReadStream = () => stalled;- t.after(() => {- fs.createReadStream = originalRead;- stalled.destroy();- });- const { signal, abort } = createDownloadSignal();- const verifying = validateModelArchive(dest, "root", signal);- abort();- // Give the old validator a terminal input too: it wrongly succeeds instead- // of hanging this regression test while ignoring the cancelled signal.- stalled.end(Buffer.from(require("../fixtures/model-archives.json").valid, "base64"));- await assert.rejects(verifying, /abort|cancel/i);- assert.equal(stalled.destroyed, true);-});diff --git a/test/helpers/geminiLiveStreaming.test.js b/test/helpers/geminiLiveStreaming.test.jsindex 167fdf63c..119330f5f 100644--- a/test/helpers/geminiLiveStreaming.test.js+++ b/test/helpers/geminiLiveStreaming.test.js@@ -42,34 +42,6 @@ async function withServer(run, script) {const audioFrames = (received) => received.filter((message) => message.realtimeInput?.audio);-test("live registry IDs reach the Gemini setup message while managed models stay fixed", async (t) => {- const store = require("../../src/models/registryData.js");- const old = store.getRegistrySnapshot();- const next = structuredClone(old.data);- next.transcriptionProviders- .find((provider) => provider.id === "gemini")- .models.push({- id: "registry-google-live",- name: "New Google model",- description: "Fixture",- streaming: true,- });- t.after(() =>- store.replaceRegistryData({ data: old.data, manifestVersion: old.manifestVersion + 2 })- );- store.replaceRegistryData({ data: next, manifestVersion: old.manifestVersion + 1 });- await withServer(async ({ streaming, received }) => {- await streaming.connect({ token: "key", mode: "byok", model: "registry-google-live" });- assert.equal(received[0].setup.model, "models/registry-google-live");- assert.equal(streaming.currentModel, "registry-google-live");- assert.equal(- streaming.buildSetupMessage({ mode: "openwhispr", model: "registry-google-live" }).setup- .model,- "models/gemini-3.5-transcribe-live"- );- });-});-test("url: the two Live methods are auth-disjoint and pinned per mode", () => {assert.equal(buildGeminiLiveUrl({ mode: "byok", token: "AI-KEY" }),@@ -93,12 +65,7 @@ test("setup: the custom dictionary always ships; a language only when chosen", (});assert.deepEqual(- streaming.buildSetupMessage({- mode: "byok",- model: "gemini-next",- language: "en",- keyterms: [],- }),+ streaming.buildSetupMessage({ model: "gemini-next", language: "en", keyterms: [] }),{setup: {model: "models/gemini-next",diff --git a/test/helpers/parakeetRegistryCancellation.test.js b/test/helpers/parakeetRegistryCancellation.test.jsdeleted file mode 100644index 037773818..000000000--- a/test/helpers/parakeetRegistryCancellation.test.js+++ /dev/null@@ -1,93 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const fs = require("node:fs");-const os = require("node:os");-const path = require("node:path");-const vm = require("node:vm");-const { createRequire } = require("node:module");--test("a cancellation during archive verification never installs or completes the model", async (t) => {- const root = fs.mkdtempSync(path.join(os.tmpdir(), "registry-cancel-"));- t.after(() => fs.rmSync(root, { recursive: true, force: true }));- const data = structuredClone(require("../../src/models/modelRegistryData.json"));- const model = Object.keys(data.parakeetModels)[0];- data.parakeetModels[model].sha256 = "a".repeat(64);- let entered;- let release;- const waiting = new Promise((r) => {- entered = r;- });- const gate = new Promise((r) => {- release = r;- });- const file = path.resolve(__dirname, "../../src/helpers/parakeet.js");- const realRequire = createRequire(file);- const stubs = {- "../models/registryData.js": { registryData: data },- "./debugLogger": { info() {}, warn() {}, debug() {} },- "./modelDirUtils": { getModelsDirForService: () => root },- "./parakeetCapability": { assertParakeetSupported() {} },- "./parakeetServer": class {- isModelDownloaded() {- return false;- }- isAvailable() {- return false;- }- getServerStatus() {- return {};- }- },- "./downloadUtils": {- createDownloadSignal() {- const signal = { aborted: false };- return {- signal,- abort() {- signal.aborted = true;- signal.onAbort?.();- },- };- },- async downloadFile(_url, target) {- fs.writeFileSync(target, "archive");- },- async checkDiskSpace() {- return { ok: true };- },- },- "./modelArchiveIntegrity": {- async validateModelArchive() {- entered();- await gate;- },- },- };- const module = { exports: {} };- vm.runInNewContext(- fs.readFileSync(file, "utf8"),- {- require: (name) => stubs[name] || realRequire(name),- module,- process,- Buffer,- console,- },- { filename: file }- );- const manager = new module.exports();- manager.isInitialized = true;- let extracted = false;- manager._extractModel = async () => {- extracted = true;- };- const events = [];- const downloading = manager.downloadParakeetModel(model, (e) => events.push(e.type));- await waiting;- assert.equal((await manager.cancelDownload()).success, true);- release();- await assert.rejects(downloading, { code: "DOWNLOAD_CANCELLED" });- assert.equal(extracted, false);- assert.equal(events.includes("complete"), false);- assert.equal(manager.currentDownloadProcess, null);-});diff --git a/test/helpers/registryBatchRouting.test.js b/test/helpers/registryBatchRouting.test.jsdeleted file mode 100644index efd6c811c..000000000--- a/test/helpers/registryBatchRouting.test.js+++ /dev/null@@ -1,77 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const seed = require("../../src/models/modelRegistryData.json");-const { assertCompatibleCatalog } = require("../../src/models/registrySchema.cjs");-const { loadAudioManager } = require("./harness/audioManager");--function nextCatalog() {- const next = structuredClone(seed);- for (const [provider, id] of [- ["openai", "gpt-5-transcribe"],- ["gemini", "gemini-next-transcribe"],- ]) {- next.transcriptionProviders- .find((p) => p.id === provider)- .models.push({ id, name: "New batch model", description: "Compatible batch model" });- }- assertCompatibleCatalog(next, seed);- return next;-}--test("new batch selections reach the selected provider without a legacy ID rewrite", async (t) => {- const store = require("../../src/models/registryData.js");- const { resolveTranscriptionRoute } = await import("../../src/helpers/transcriptionRoute.ts");- const old = store.getRegistrySnapshot();- t.after(() =>- store.replaceRegistryData({ data: old.data, manifestVersion: old.manifestVersion + 2 })- );- store.replaceRegistryData({ data: nextCatalog(), manifestVersion: old.manifestVersion + 1 });- for (const [provider, model] of [- ["openai", "gpt-5-transcribe"],- ["gemini", "gemini-next-transcribe"],- ]) {- const route = resolveTranscriptionRoute({- settings: {- transcriptionMode: "providers",- cloudTranscriptionProvider: provider,- cloudTranscriptionModel: model,- },- });- assert.equal(route.provider, provider);- assert.equal(route.model, model);- }- const wrongProvider = resolveTranscriptionRoute({- settings: {- transcriptionMode: "providers",- cloudTranscriptionProvider: "groq",- cloudTranscriptionModel: "gpt-5-transcribe",- },- });- assert.equal(wrongProvider.model, "whisper-large-v3-turbo");-});--test("dictation honors a new Gemini batch selection and retains streaming fallbacks", async (t) => {- const { createManager, setSettings, vite } = await loadAudioManager(t, {- cachePrefix: "openwhispr-registry-batch-routing-",- settingsKey: "__registryBatchRoutingSettings",- });- const store = await vite.ssrLoadModule("/models/registryData.js");- const old = store.getRegistrySnapshot();- store.replaceRegistryData({ data: nextCatalog(), manifestVersion: old.manifestVersion + 1 });- const manager = createManager();- setSettings({- cloudTranscriptionProvider: "gemini",- cloudTranscriptionModel: "gemini-next-transcribe",- });- assert.equal(manager.getTranscriptionModel(), "gemini-next-transcribe");- setSettings({- cloudTranscriptionProvider: "gemini",- cloudTranscriptionModel: "gemini-3.5-transcribe-live",- });- assert.equal(manager.getTranscriptionModel(), "gemini-3.5-transcribe");- setSettings({- cloudTranscriptionProvider: "tinfoil",- cloudTranscriptionModel: "voxtral-mini-4b-realtime",- });- assert.equal(manager.getTranscriptionModel(), "voxtral-small-24b");-});diff --git a/test/helpers/registryData.test.js b/test/helpers/registryData.test.jsdeleted file mode 100644index b131ab037..000000000--- a/test/helpers/registryData.test.js+++ /dev/null@@ -1,111 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const seed = require("../../src/models/modelRegistryData.json");--test("one atomic update reaches CJS helpers, ESM readers and derived model lists", async () => {- const store = require("../../src/models/registryData.js");- const esm = await import("../../src/models/registryData.js");- const { listLocalTranscriptionModels } = require("../../src/helpers/localTranscriptionModels");- const { getASRModelOrganization } = require("../../src/helpers/localASROrganization.ts");- const models = require("../../src/models/ModelRegistry.ts");- const routing = require("../../src/helpers/dictationStreamingRouting.js");- const old = store.getRegistrySnapshot();- const next = structuredClone(seed);- next.whisperModels["registry-test"] = { ...next.whisperModels.base, name: "New whisper" };- next.parakeetModels["registry-asr"] = { ...next.parakeetModels["orukeet-v0.1.0"] };- next.cloudProviders[0].models.push({ id: "registry-cloud", name: "New", description: "New" });- next.localProviders[0].models.push({ ...next.localProviders[0].models[0], id: "registry-local" });- next.transcriptionProviders- .find((p) => p.id === "openai")- .models.push({- id: "registry-realtime",- name: "Realtime",- description: "New",- streaming: true,- });- next.transcriptionProviders- .find((p) => p.id === "gemini")- .models.push({ id: "gemini-registry-live", name: "Live", description: "New", streaming: true });- let events = 0;- const unsubscribe = store.subscribeRegistry(() => {- events++;- });- models.applyTinfoilModels([{ id: "fresh-tinfoil", name: "Fresh", description: "Overlay" }]);- try {- assert.equal(- store.replaceRegistryData({ data: next, manifestVersion: old.manifestVersion + 1 }),- true- );- assert.equal(events, 1);- assert.equal(esm.getRegistryData(), store.getRegistryData());- assert.equal(store.replaceRegistryData(old), false);- assert.equal(events, 1);- assert.equal(models.getCloudModel("registry-cloud").name, "New");- assert.ok(models.modelRegistry.getModel("registry-local"));- assert.ok(models.WHISPER_MODEL_INFO["registry-test"]);- assert.ok(models.REASONING_PROVIDERS.openai.models.some((m) => m.value === "registry-cloud"));- assert.deepEqual(- models.getTinfoilModels().map((m) => m.id),- ["fresh-tinfoil"]- );- assert.notEqual(- store.getRegistryData().cloudProviders.find((p) => p.id === "tinfoil").models[0].id,- "fresh-tinfoil"- );- assert.equal(getASRModelOrganization("registry-asr"), "oruk");- const local = listLocalTranscriptionModels({- whisperManager: { isModelDownloaded: () => false },- parakeetManager: { isModelDownloaded: () => false },- env: {},- });- assert.deepEqual(- local.find((m) => m.model === "registry-test"),- { provider: "whisper", model: "registry-test", downloaded: false, default: false }- );- assert.ok(routing.REALTIME_MODELS.has("registry-realtime"));- assert.equal(- routing.isOpenAiRealtimeSelection({- cloudTranscriptionModel: "registry-realtime",- cloudTranscriptionMode: "openwhispr",- cloudTranscriptionProvider: "openai",- }),- false- );- assert.equal(- routing.resolveStreamingProviderName({- settings: {- cloudTranscriptionProvider: "openai",- cloudTranscriptionMode: "byok",- cloudTranscriptionModel: "registry-realtime",- },- context: "dictation",- }),- "openai-realtime"- );- assert.equal(- routing.resolveStreamingProviderName({- settings: {- cloudTranscriptionProvider: "gemini",- cloudTranscriptionMode: "byok",- cloudTranscriptionModel: "gemini-registry-live",- },- context: "dictation",- }),- "gemini"- );- assert.equal(- routing.resolveStreamingProviderName({- settings: {- cloudTranscriptionProvider: "groq",- cloudTranscriptionMode: "byok",- cloudTranscriptionModel: "registry-realtime",- },- context: "notes",- }),- "deepgram"- );- } finally {- unsubscribe();- store.replaceRegistryData({ data: old.data, manifestVersion: old.manifestVersion + 2 });- }-});diff --git a/test/helpers/registryLoader.test.js b/test/helpers/registryLoader.test.jsdeleted file mode 100644index adec6e26a..000000000--- a/test/helpers/registryLoader.test.js+++ /dev/null@@ -1,208 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const fs = require("node:fs");-const os = require("node:os");-const path = require("node:path");-const { generateKeyPairSync } = require("node:crypto");-const { signEnvelope, MAX_ENVELOPE_BYTES } = require("../../src/models/registryEnvelope.cjs");-const { createRegistryLoader } = require("../../src/helpers/registryLoader");-const seed = require("../../src/models/modelRegistryData.json");-const pair = generateKeyPairSync("ed25519");-const trustedKeys = { fixture: pair.publicKey.export({ type: "spki", format: "pem" }) };-function signed(version, data = seed) {- return JSON.stringify(- signEnvelope(- Buffer.from(- JSON.stringify({- schemaVersion: 1,- contractHashes: {- schema: "a".repeat(64),- envelope: "b".repeat(64),- selection: "c".repeat(64),- },- manifestVersion: version,- publishedAt: "2026-10-14T12:00:00Z",- sourceCommit: "a".repeat(40),- data,- })- ),- "fixture",- pair.privateKey- )- );-}-function setup(t, options = {}) {- const dir = fs.mkdtempSync(path.join(os.tmpdir(), "registry-loader-"));- t.after(() => fs.rmSync(dir, { recursive: true, force: true }));- const applied = [];- const errors = [];- let requests = 0;- const config = {- cachePath: path.join(dir, "registry.json"),- bundledSnapshot: { data: seed, manifestVersion: 1 },- trustedKeys,- appVersion: "1.10.3",- applySnapshot: (x) => applied.push(x),- onError: (e) => errors.push(e),- fetch: async () => {- requests++;- return new Response(signed(2));- },- ...options,- };- const loader = createRegistryLoader(config);- t.after(() => loader.stop());- return { loader, config, applied, errors, requests: () => requests };-}--test("verified updates persist, startup never waits for network, and older versions cannot overwrite them", async (t) => {- const x = setup(t);- await x.loader.start();- assert.equal(x.requests(), 0);- await x.loader.refresh();- assert.equal(x.applied.at(-1).manifestVersion, 2);- assert.equal(fs.readFileSync(x.config.cachePath, "utf8"), signed(2));- await x.loader.refresh();- assert.equal(x.applied.length, 1);-});-test("tampering, removed IDs, new endpoints, unknown schema and rollback retain the usable catalog", async (t) => {- let response = signed(2);- const x = setup(t, { fetch: async () => new Response(response) });- await x.loader.refresh();- const removed = structuredClone(seed);- delete removed.whisperModels.base;- const redirect = structuredClone(seed);- redirect.transcriptionProviders[0].baseUrl = "https://evil.example";- for (const bad of [- signed(1),- signed(3, removed),- signed(3, redirect),- signed(3).replace("Ed25519", "none"),- "{",- ]) {- response = bad;- await x.loader.refresh();- assert.equal(x.loader.getSnapshot().manifestVersion, 2);- }- assert.equal(x.applied.length, 1);-});-test("a remotely added selected ID cannot disappear in a later signed publication", async (t) => {- const next = structuredClone(seed);- next.cloudProviders[0].models.push({- id: "remote-selected",- name: "Remote",- description: "Fixture",- });- let response = signed(2, next);- const x = setup(t, { fetch: async () => new Response(response) });- await x.loader.refresh();- response = signed(3);- await x.loader.refresh();- assert.equal(x.loader.getSnapshot().manifestVersion, 2);- assert.equal(x.loader.getSnapshot().data.cloudProviders[0].models.at(-1).id, "remote-selected");-});-test("a newer verified offline cache is activated but an older cache never overrides the bundle", async (t) => {- for (const version of [1, 2, 4]) {- const x = setup(t, { bundledSnapshot: { data: seed, manifestVersion: 2 } });- fs.writeFileSync(x.config.cachePath, signed(version));- await x.loader.start();- assert.equal(x.loader.getSnapshot().manifestVersion, Math.max(2, version));- assert.equal(x.requests(), 0);- }-});-test("partial, tampered and oversized cache files safely use the bundle", async (t) => {- for (const bytes of [- "{",- signed(4).replace("Ed25519", "none"),- " ".repeat(MAX_ENVELOPE_BYTES + 1),- ]) {- const x = setup(t);- fs.writeFileSync(x.config.cachePath, bytes);- await x.loader.start();- assert.equal(x.loader.getSnapshot().manifestVersion, 1);- }-});-test("streaming response limit is enforced without trusting Content-Length", async (t) => {- const x = setup(t, {- fetch: async () =>- new Response(- new ReadableStream({- start(c) {- c.enqueue(new Uint8Array(MAX_ENVELOPE_BYTES + 1));- c.close();- },- })- ),- });- await x.loader.refresh();- assert.equal(x.applied.length, 0);- assert.match(x.errors[0].message, /large/);-});-test("concurrent refreshes share one request and stop aborts pending work", async (t) => {- let calls = 0;- let release;- const x = setup(t, {- fetch: async () => {- calls++;- return await new Promise((r) => (release = r));- },- });- const a = x.loader.refresh();- const b = x.loader.refresh();- assert.equal(calls, 1);- x.loader.stop();- release(new Response(signed(2)));- await Promise.all([a, b]);- assert.equal(x.applied.length, 0);-});-test("timeout is recoverable and a later refresh succeeds", async (t) => {- let slow = true;- const x = setup(t, {- timeoutMs: 5,- fetch: async (_url, init) =>- slow- ? new Promise((_r, reject) =>- init.signal.addEventListener("abort", () => reject(new Error("timeout")))- )- : new Response(signed(2)),- });- await x.loader.refresh();- assert.equal(x.applied.length, 0);- slow = false;- await x.loader.refresh();- assert.equal(x.applied.length, 1);-});-test("disk failure retains the valid live update and bundled mode activates no cache or network", async (t) => {- const x = setup(t);- fs.mkdirSync(x.config.cachePath);- await x.loader.refresh();- assert.equal(x.loader.getSnapshot().manifestVersion, 2);- assert.equal(x.applied.length, 1);- const off = setup(t, { mode: "bundled" });- fs.writeFileSync(off.config.cachePath, signed(4));- await off.loader.start();- await off.loader.refresh();- assert.equal(off.requests(), 0);- assert.equal(off.applied.length, 0);-});--test("future entries in the bundle do not prevent later compatible publications", async (t) => {- const data = structuredClone(seed);- data.cloudProviders[0].models.push(- { id: "future-a", name: "Future", description: "Fixture", minAppVersion: "2.0.0" },- { id: "supported-b", name: "Supported", description: "Fixture", minAppVersion: "1.10.3" }- );- const next = structuredClone(data);- next.cloudProviders[0].models.push({ id: "supported-c", name: "Newest", description: "Fixture" });- const x = setup(t, {- bundledSnapshot: { data, manifestVersion: 2 },- fetch: async () => new Response(signed(3, next)),- });- assert.equal(- x.loader.getSnapshot().data.cloudProviders[0].models.some((m) => m.id === "future-a"),- false- );- await x.loader.refresh();- assert.equal(x.loader.getSnapshot().manifestVersion, 3);- assert.equal(x.loader.getSnapshot().data.cloudProviders[0].models.at(-1).id, "supported-c");-});diff --git a/test/helpers/registryPickerBrowsing.test.js b/test/helpers/registryPickerBrowsing.test.jsdeleted file mode 100644index b4b3e0a52..000000000--- a/test/helpers/registryPickerBrowsing.test.js+++ /dev/null@@ -1,67 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const {- createRendererServer,- installBrowserGlobals,- installHostDom,-} = require("../lib/rendererTestHarness");--test("browsing reasoning providers survives rerenders and a live catalog update", async (t) => {- installBrowserGlobals(t);- const container = installHostDom(t);- const React = require("react");- const previousReact = globalThis.React;- globalThis.React = React;- t.after(() => {- if (previousReact === undefined) delete globalThis.React;- else globalThis.React = previousReact;- delete globalThis.registryPickerTabs;- });- const vite = await createRendererServer(t, {- cachePrefix: "registry-picker-",- mockModules: {- "/ui/ProviderTabs": `export const ProviderTabs = props => { globalThis.registryPickerTabs = props; return null; };`,- "/ui/ApiKeyInput": "export default () => null;",- "/ui/ModelCardList": "export default () => null;",- "/LocalModelPicker": "export default () => null;",- "/OpenAICompatiblePanel": "export default () => null;",- "/ui/GetApiKeyLink": "export const GetApiKeyLink = () => null;",- "/hooks/usePolicy":- "export const usePolicySnapshot = () => ({status:'unmanaged',policy:null});",- "/hooks/useTinfoilModels":- "export const useTinfoilModels = () => ({models:[],loading:false,error:null});",- "/utils/platform": "export const getCachedPlatform = () => 'darwin';",- "/utils/providerIcons": "export const getRemoteProviderIcon = () => ({});",- "react-i18next": "const t = key => key; export const useTranslation = () => ({t});",- },- });- const { default: Selector } = await vite.ssrLoadModule("/components/ReasoningModelSelector.tsx");- const store = await vite.ssrLoadModule("/models/registryData.js");- const { createRoot } = require("react-dom/client");- const root = createRoot(container);- const props = {- mode: "cloud",- localReasoningProvider: "openai",- reasoningModel: "gpt-5-mini",- setReasoningModel() {},- setLocalReasoningProvider() {},- cloudReasoningBaseUrl: "",- setCloudReasoningBaseUrl() {},- };- try {- await React.act(async () => root.render(React.createElement(Selector, props)));- assert.equal(globalThis.registryPickerTabs.selectedId, "openai");- await React.act(async () => globalThis.registryPickerTabs.onSelect("groq"));- assert.equal(globalThis.registryPickerTabs.selectedId, "groq");- const data = structuredClone(store.getRegistryData());- data.cloudProviders- .find((p) => p.id === "groq")- .models.push({ id: "new-groq", name: "New", description: "Fixture" });- await React.act(async () =>- store.replaceRegistryData({ data, manifestVersion: store.getRegistryVersion() + 1 })- );- assert.equal(globalThis.registryPickerTabs.selectedId, "groq");- } finally {- await React.act(async () => root.unmount());- }-});diff --git a/test/helpers/registrySync.test.js b/test/helpers/registrySync.test.jsdeleted file mode 100644index a20bfa0c5..000000000--- a/test/helpers/registrySync.test.js+++ /dev/null@@ -1,121 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const seed = require("../../src/models/modelRegistryData.json");-const { createRendererServer, installBrowserGlobals } = require("../lib/rendererTestHarness");--test("a cached remote model is present before settings startup migrations normalize saved selections", async (t) => {- const data = structuredClone(seed);- data.cloudProviders[0].models.push({- id: "remote-saved",- name: "Remote",- description: "Fixture",- });- installBrowserGlobals(t, {- initialStorage: {- _llmScopeKeysMigrated: "1",- _providerSettingsMigrated: "1",- cleanupMode: "providers",- cleanupProvider: "openai",- cleanupModel: "remote-saved",- },- });- globalThis.window.electronAPI = {- ...globalThis.window.electronAPI,- initialModelRegistrySnapshot: { data, manifestVersion: 100 },- onModelRegistryUpdated: () => () => {},- getModelRegistry: async () => ({ data, manifestVersion: 100 }),- };- const vite = await createRendererServer(t, { cachePrefix: "registry-bootstrap-" });- const { useSettingsStore } = await vite.ssrLoadModule("/stores/settingsStore.ts");- assert.equal(useSettingsStore.getState().cleanupModel, "remote-saved");-});--test("new events beat delayed snapshots and repeated starts share a cleaned-up listener", async () => {- const { startRegistrySync } = require("../../src/models/registrySync.js");- const store = require("../../src/models/registryData.js");- let resolve;- let callback;- let subscriptions = 0;- let removed = 0;- const initial = store.getRegistryVersion();- const api = {- initialModelRegistrySnapshot: { data: seed, manifestVersion: initial + 1 },- getModelRegistry: () => new Promise((r) => (resolve = r)),- onModelRegistryUpdated: (fn) => {- subscriptions++;- callback = fn;- return () => removed++;- },- };- const first = startRegistrySync(api);- const second = startRegistrySync(api);- assert.equal(subscriptions, 1);- callback({ data: seed, manifestVersion: initial + 3 });- resolve({ data: seed, manifestVersion: initial + 2 });- await Promise.resolve();- assert.equal(store.getRegistryVersion(), initial + 3);- first();- assert.equal(removed, 0);- second();- assert.equal(removed, 1);-});--test("the IPC initial snapshot and update broadcast use the same main catalog", () => {- const { EventEmitter } = require("node:events");- const { registerRegistryIpc } = require("../../src/helpers/registryIpc");- const store = require("../../src/models/registryData.js");- const ipc = new EventEmitter();- const handlers = new Map();- ipc.handle = (name, fn) => handlers.set(name, fn);- ipc.removeHandler = (name) => handlers.delete(name);- const windows = [[], []];- const cleanup = registerRegistryIpc(ipc, (name, value) =>- windows.forEach((w) => w.push({ name, value }))- );- try {- const event = {};- ipc.emit("model-registry-initial", event);- assert.equal(event.returnValue.manifestVersion, store.getRegistryVersion());- store.replaceRegistryData({ data: seed, manifestVersion: store.getRegistryVersion() + 1 });- assert.equal(windows[0].length, 1);- assert.deepEqual(windows[0], windows[1]);- assert.deepEqual(handlers.get("get-model-registry")(), windows[0][0].value);- } finally {- cleanup();- }- assert.equal(ipc.listenerCount("model-registry-initial"), 0);-});--test("a mounted model consumer renders a new catalog without remounting", async (t) => {- const { installHookDom } = require("../lib/rendererTestHarness");- installBrowserGlobals(t);- const container = installHookDom(t);- const vite = await createRendererServer(t, { cachePrefix: "registry-reactive-" });- const { useRegistryVersion } = await vite.ssrLoadModule("/hooks/useRegistryVersion.ts");- const store = await vite.ssrLoadModule("/models/registryData.js");- const React = require("react");- const { createRoot } = require("react-dom/client");- const root = createRoot(container);- const observed = [];- function Picker() {- useRegistryVersion();- observed.push(store.getRegistryData().cloudProviders[0].models.map((model) => model.id));- return null;- }- try {- await React.act(async () => root.render(React.createElement(Picker)));- assert.equal(observed.at(-1).includes("visible-live"), false);- const data = structuredClone(seed);- data.cloudProviders[0].models.push({- id: "visible-live",- name: "Live",- description: "Fixture",- });- await React.act(async () =>- store.replaceRegistryData({ data, manifestVersion: store.getRegistryVersion() + 1 })- );- assert.equal(observed.at(-1).includes("visible-live"), true);- } finally {- await React.act(async () => root.unmount());- }-});diff --git a/test/helpers/registryTinfoilHook.test.js b/test/helpers/registryTinfoilHook.test.jsdeleted file mode 100644index 9c5585ad5..000000000--- a/test/helpers/registryTinfoilHook.test.js+++ /dev/null@@ -1,58 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const {- createRendererServer,- installBrowserGlobals,- installHookDom,-} = require("../lib/rendererTestHarness");--for (const hasLiveOverlay of [false, true]) {- test(`an open Tinfoil picker ${hasLiveOverlay ? "preserves its confirmed live list" : "receives a signed catalog update while offline"}`, async (t) => {- const live = [{ id: "live-only", name: "Live", description: "Fixture" }];- installBrowserGlobals(t, {- initialStorage: hasLiveOverlay- ? { tinfoilModels: JSON.stringify({ models: live, fetchedAt: Date.now() }) }- : {},- });- globalThis.window.electronAPI.getTinfoilChatModels = async () => {- throw new Error("offline fixture");- };- const container = installHookDom(t);- const vite = await createRendererServer(t, {- cachePrefix: "registry-tinfoil-hook-",- mockModules: { "/utils/logger": "export default {debug(){},info(){},warn(){},error(){}};" },- });- const { useTinfoilModels } = await vite.ssrLoadModule("/hooks/useTinfoilModels.ts");- const store = await vite.ssrLoadModule("/models/registryData.js");- const React = require("react");- const { createRoot } = require("react-dom/client");- const root = createRoot(container);- let result;- function Picker() {- result = useTinfoilModels(true);- return null;- }- try {- await React.act(async () => root.render(React.createElement(Picker)));- if (!hasLiveOverlay) assert.equal(result.error, "offline fixture");- const data = structuredClone(store.getRegistryData());- data.cloudProviders- .find((p) => p.id === "tinfoil")- .models.push({ id: "signed-new", name: "New", description: "Fixture" });- await React.act(async () =>- store.replaceRegistryData({ data, manifestVersion: store.getRegistryVersion() + 1 })- );- assert.equal(- result.models.some((m) => m.id === "signed-new"),- !hasLiveOverlay- );- if (hasLiveOverlay)- assert.deepEqual(- result.models.map((m) => m.id),- ["live-only"]- );- } finally {- await React.act(async () => root.unmount());- }- });-}diff --git a/test/helpers/tinfoilDefaultModel.test.js b/test/helpers/tinfoilDefaultModel.test.jsindex 3b25a36a5..0f091b160 100644--- a/test/helpers/tinfoilDefaultModel.test.js+++ b/test/helpers/tinfoilDefaultModel.test.js@@ -102,62 +102,6 @@ test("a cached catalog does not displace the named Tinfoil default", async (t) =assert.equal(effective.cleanupModel, "glm-5-3");});-test("policy fallback and provider memory follow Tinfoil's live catalog when its seed default retires", async (t) => {- const live = [{ id: "live-new-model", name: "Live model", description: "Fixture" }];- installBrowserGlobals(t, {- initialStorage: {- _llmScopeKeysMigrated: "1",- tinfoilModels: JSON.stringify({ models: live, fetchedAt: Date.now() }),- cleanupMode: "providers",- cleanupProvider: "openai",- cleanupModel: "gpt-5-mini",- },- });- const vite = await createRendererServer(t, { cachePrefix: "registry-tinfoil-overlay-" });- const registry = await vite.ssrLoadModule("/models/ModelRegistry.ts");- const { useSettingsStore, selectPolicyEffectiveSettings } = await vite.ssrLoadModule(- "/stores/settingsStore.ts"- );- const snapshot = {- status: "managed",- appVersion: "1.10.3",- policy: {- version: 1,- transcription: { allowedModes: ["local"], allowedByokProviders: [] },- llm: {- allowedModes: ["providers"],- allowedByokProviders: ["tinfoil"],- allowedEnterpriseProviders: [],- },- features: { agentEnabled: true, webSearchEnabled: true },- sharing: { externalLinkSharing: "allowed" },- dataRetention: {- audioRetentionMaxDays: null,- localHistoryMode: "user_choice",- cloudBackupAllowed: true,- },- minAppVersion: null,- },- };- assert.equal(- selectPolicyEffectiveSettings(useSettingsStore.getState(), snapshot).cleanupModel,- "live-new-model"- );- registry.applyTinfoilModels([{ id: "live-next-model", name: "Next", description: "Fixture" }]);- assert.equal(- selectPolicyEffectiveSettings(useSettingsStore.getState(), snapshot).cleanupModel,- "live-next-model"- );- useSettingsStore- .getState()- .switchReasoningProvider("dictationCleanup", "tinfoil", "live-next-model");- useSettingsStore.getState().switchReasoningProvider("dictationCleanup", "openai", "gpt-5-mini");- useSettingsStore- .getState()- .switchReasoningProvider("dictationCleanup", "tinfoil", "wrong-fallback");- assert.equal(useSettingsStore.getState().cleanupModel, "live-next-model");-});-test("a persisted glm-5-2 selection is repointed before any request", async (t) => {installBrowserGlobals(t, {initialStorage: {@@ -269,10 +213,7 @@ test("a provider's named default beats its list position", async (t) => {// The seed leads with its own default, so only a list that doesn't can// tell the two rules apart.assert.equal(- pickDefaultModelId({- models: [{ id: "listed-first" }, { id: "named" }],- defaultModel: "named",- }),+ pickDefaultModelId({ models: [{ id: "listed-first" }, { id: "named" }], defaultModel: "named" }),"named");assert.equal(pickDefaultModelId(byId.tinfoil), "glm-5-3");diff --git a/test/helpers/transcriptionRouteModelAgreement.test.js b/test/helpers/transcriptionRouteModelAgreement.test.jsindex 9d2e73157..d3f89fdc3 100644--- a/test/helpers/transcriptionRouteModelAgreement.test.js+++ b/test/helpers/transcriptionRouteModelAgreement.test.js@@ -4,7 +4,9 @@ const assert = require("node:assert/strict");const registry = require("../../src/models/modelRegistryData.json");const load = () => import("../../src/helpers/transcriptionRoute.ts");-// Every model the picker can write must survive a round trip through the resolver, or a user+// resolveByokModel validates by prefix so it can run in the packaged main process+// without the registry, which means the two can silently drift apart. Every model+// the picker can write must survive a round trip through the resolver, or a user// who picks it has their choice replaced by the provider default at request time.//// Tinfoil is excluded: its batch model comes from the registry directlydiff --git a/test/scripts/modelRegistrySync.test.js b/test/scripts/modelRegistrySync.test.jsdeleted file mode 100644index c5b0c1fe4..000000000--- a/test/scripts/modelRegistrySync.test.js+++ /dev/null@@ -1,57 +0,0 @@-const test = require("node:test");-const assert = require("node:assert/strict");-const { createHash, generateKeyPairSync } = require("node:crypto");-const { signEnvelope } = require("../../src/models/registryEnvelope.cjs");-const seed = require("../../src/models/modelRegistryData.json");-const keys = generateKeyPairSync("ed25519");-const trustedKeys = { fixture: keys.publicKey.export({ type: "spki", format: "pem" }) };-const contracts = {- schema: "schema source\n",- envelope: "envelope source\n",- selection: "selection source\n",-};-const hashes = Object.fromEntries(- Object.entries(contracts).map(([key, value]) => [- key,- createHash("sha256").update(value).digest("hex"),- ])-);-const manifest = {- schemaVersion: 1,- manifestVersion: 10,- publishedAt: "2026-10-14T12:00:00Z",- sourceCommit: "b".repeat(40),- contractHashes: hashes,- data: seed,-};-const bytes = JSON.stringify(- signEnvelope(Buffer.from(JSON.stringify(manifest)), "fixture", keys.privateKey)-);--test("an exact signed publication produces deterministic snapshot, contracts and provenance", async () => {- const { createVendoredFiles } = await import("../../scripts/sync-model-registry.mjs");- const options = { bytes, contracts, revision: "a".repeat(40), trustedKeys };- const first = createVendoredFiles(options);- assert.deepEqual(createVendoredFiles(options), first);- assert.deepEqual(JSON.parse(first["modelRegistryData.json"]), seed);- assert.equal(first["registrySchema.cjs"], contracts.schema);- assert.equal(JSON.parse(first["registryMetadata.json"]).sourceCommit, manifest.sourceCommit);- assert.equal(JSON.parse(first["registryMetadata.json"]).publicationCommit, "a".repeat(40));-});-test("vendoring rejects unsigned code changes and mutable revision names", async () => {- const { createVendoredFiles } = await import("../../scripts/sync-model-registry.mjs");- assert.throws(- () =>- createVendoredFiles({- bytes,- contracts: { ...contracts, schema: "changed" },- revision: "a".repeat(40),- trustedKeys,- }),- /digest/- );- assert.throws(- () => createVendoredFiles({ bytes, contracts, revision: "published", trustedKeys }),- /exact/- );-});diff --git a/test/services/promptStudioAgentPurpose.test.js b/test/services/promptStudioAgentPurpose.test.jsindex 5f6393223..88bec5502 100644--- a/test/services/promptStudioAgentPurpose.test.js+++ b/test/services/promptStudioAgentPurpose.test.js@@ -75,9 +75,6 @@ test("Prompt Studio labels dictation-agent runs for policy enforcement", async (const value = call === 1 ? "test" : typeof initial === "function" ? initial() : initial;return [value, () => {}];}- export function useSyncExternalStore(_subscribe, getSnapshot) {- return getSnapshot();- }`;}if (id === "\0prompt-studio-jsx-runtime") {