@tryhamster/gerbil 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{architectures-CpmH4Gha.mjs → architectures-BHkqQ9xp.mjs} +1 -1
- package/dist/{architectures-CpmH4Gha.mjs.map → architectures-BHkqQ9xp.mjs.map} +1 -1
- package/dist/cli.mjs +13 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/{defaults-KnrRSIeJ.mjs → defaults-C_bJK9zs.mjs} +1 -1
- package/dist/{defaults-KnrRSIeJ.mjs.map → defaults-C_bJK9zs.mjs.map} +1 -1
- package/dist/frameworks/express.d.mts +2 -2
- package/dist/frameworks/express.mjs +3 -3
- package/dist/frameworks/fastify.d.mts +2 -2
- package/dist/frameworks/fastify.mjs +2 -2
- package/dist/frameworks/hono.d.mts +2 -2
- package/dist/frameworks/hono.mjs +2 -2
- package/dist/frameworks/next.d.mts +4 -4
- package/dist/frameworks/next.mjs +2 -2
- package/dist/frameworks/react.d.mts +2 -2
- package/dist/frameworks/trpc.d.mts +2 -2
- package/dist/frameworks/trpc.mjs +2 -2
- package/dist/gerbil-BKCknsZ6.mjs +4 -0
- package/dist/{gerbil-qJhKR8JR.mjs → gerbil-CJjj7BD_.mjs} +5 -5
- package/dist/{gerbil-qJhKR8JR.mjs.map → gerbil-CJjj7BD_.mjs.map} +1 -1
- package/dist/{gerbil-BHPSiECS.d.mts → gerbil-D7gfxZXW.d.mts} +4 -4
- package/dist/{gerbil-BHPSiECS.d.mts.map → gerbil-D7gfxZXW.d.mts.map} +1 -1
- package/dist/gpu/hooks.d.mts +3 -3
- package/dist/gpu/hooks.mjs +2 -2
- package/dist/gpu/index.d.mts +2 -2
- package/dist/gpu/index.mjs +4 -4
- package/dist/{gpu-BZVtzX9N.mjs → gpu-DOK8RgIN.mjs} +4 -4
- package/dist/{gpu-BZVtzX9N.mjs.map → gpu-DOK8RgIN.mjs.map} +1 -1
- package/dist/{index-CRDf-nS4.d.mts → index-B3tjyDJI.d.mts} +2 -2
- package/dist/{index-CRDf-nS4.d.mts.map → index-B3tjyDJI.d.mts.map} +1 -1
- package/dist/{index-CZVIHkaH.d.mts → index-HgdjgsLb.d.mts} +2 -2
- package/dist/{index-CZVIHkaH.d.mts.map → index-HgdjgsLb.d.mts.map} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +11 -11
- package/dist/indexeddb-store-B6HYVgQ_.mjs +4 -0
- package/dist/{indexeddb-store-BWIMtxxH.mjs → indexeddb-store-BiamQL7K.mjs} +2 -2
- package/dist/{indexeddb-store-BWIMtxxH.mjs.map → indexeddb-store-BiamQL7K.mjs.map} +1 -1
- package/dist/integrations/ai-sdk.d.mts +2 -2
- package/dist/integrations/ai-sdk.mjs +2 -2
- package/dist/integrations/langchain.d.mts +2 -2
- package/dist/integrations/langchain.mjs +2 -2
- package/dist/integrations/llamaindex.d.mts +2 -2
- package/dist/integrations/llamaindex.mjs +2 -2
- package/dist/integrations/mcp-client.mjs +2 -2
- package/dist/integrations/mcp.d.mts +4 -4
- package/dist/integrations/mcp.mjs +5 -5
- package/dist/{mcp-DIygAeaN.mjs → mcp-DaQJ2bie.mjs} +3 -3
- package/dist/{mcp-DIygAeaN.mjs.map → mcp-DaQJ2bie.mjs.map} +1 -1
- package/dist/memory/index.d.mts +2 -2
- package/dist/memory/index.mjs +4 -4
- package/dist/{memory-Dj0J1v88.mjs → memory-BCKc_Jfp.mjs} +2 -2
- package/dist/{memory-Dj0J1v88.mjs.map → memory-BCKc_Jfp.mjs.map} +1 -1
- package/dist/memory-BwYh_DZh.mjs +4 -0
- package/dist/{memory-DVN0MnIG.mjs → memory-Dnjhc1du.mjs} +2 -2
- package/dist/{memory-DVN0MnIG.mjs.map → memory-Dnjhc1du.mjs.map} +1 -1
- package/dist/moonshine-stt-CrTu77ps.mjs +4 -0
- package/dist/{moonshine-stt-BFIm_Xxk.mjs → moonshine-stt-Teic6SbK.mjs} +2 -2
- package/dist/{moonshine-stt-BFIm_Xxk.mjs.map → moonshine-stt-Teic6SbK.mjs.map} +1 -1
- package/dist/{one-liner-CGozk7xR.mjs → one-liner-BnBYesLF.mjs} +2 -2
- package/dist/{one-liner-CGozk7xR.mjs.map → one-liner-BnBYesLF.mjs.map} +1 -1
- package/dist/{outetts-Cr5oGk4z.d.mts → outetts-CAL3_K3j.d.mts} +1 -1
- package/dist/{outetts-Cr5oGk4z.d.mts.map → outetts-CAL3_K3j.d.mts.map} +1 -1
- package/dist/repl-DMur1t4G.mjs +9 -0
- package/dist/skills/index.d.mts +4 -4
- package/dist/skills/index.mjs +4 -4
- package/dist/{skills-DJ0cCjfD.mjs → skills-BfJI3GNK.mjs} +2 -2
- package/dist/{skills-DJ0cCjfD.mjs.map → skills-BfJI3GNK.mjs.map} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs → tools-DRYfLfKS.mjs} +2 -2
- package/dist/{tools-DQ1mPUw5.mjs.map → tools-DRYfLfKS.mjs.map} +1 -1
- package/dist/tune/index.d.mts +186 -0
- package/dist/tune/index.d.mts.map +1 -0
- package/dist/tune/index.mjs +297 -0
- package/dist/tune/index.mjs.map +1 -0
- package/dist/{types-Dqv4m0vo.d.mts → types-CIcNt_XS.d.mts} +1 -1
- package/dist/{types-Dqv4m0vo.d.mts.map → types-CIcNt_XS.d.mts.map} +1 -1
- package/dist/{types-BBDAW4MS.d.mts → types-DW-OBuAC.d.mts} +2 -2
- package/dist/{types-BBDAW4MS.d.mts.map → types-DW-OBuAC.d.mts.map} +1 -1
- package/dist/{utils-DKO55ZmZ.mjs → utils-CZBZ8dgR.mjs} +1 -1
- package/dist/{utils-DKO55ZmZ.mjs.map → utils-CZBZ8dgR.mjs.map} +1 -1
- package/dist/{vector-B0panuy6.mjs → vector-BJqdOci_.mjs} +1 -1
- package/dist/{vector-B0panuy6.mjs.map → vector-BJqdOci_.mjs.map} +1 -1
- package/package.json +5 -1
- package/dist/gerbil-eX40N7oB.mjs +0 -4
- package/dist/indexeddb-store-ClH12Xnl.mjs +0 -4
- package/dist/memory-D1P7Tmda.mjs +0 -4
- package/dist/moonshine-stt-D7BqG2pU.mjs +0 -4
- package/dist/repl-C_-ogJ09.mjs +0 -9
- /package/dist/{auto-update-BVaLXcDE.mjs → auto-update-DIh0uiTw.mjs} +0 -0
- /package/dist/{chunk-B9cbKln6.mjs → chunk-BeNUM--j.mjs} +0 -0
- /package/dist/{microphone-Bqmoz9_K.mjs → microphone-CsUwVP2O.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults-
|
|
1
|
+
{"version":3,"file":"defaults-C_bJK9zs.mjs","names":[],"sources":["../src/gpu/defaults.ts"],"sourcesContent":["/**\n * Default model per capability. Kept in its own tiny module (no heavy imports)\n * so the React hooks can resolve defaults without statically pulling in the GPU\n * engine — they import the engine dynamically to stay light.\n */\nexport const DEFAULT_MODELS = {\n /** Text generation (also the vision-capable checkpoint). */\n text: \"mlx-community/Qwen3.5-0.8B-4bit\",\n /** Image understanding — same checkpoint, vision tower built on demand. */\n vision: \"mlx-community/Qwen3.5-0.8B-4bit\",\n /** Text embeddings. */\n embedding: \"mlx-community/embeddinggemma-300m-4bit\",\n /** Text-to-speech (Apache-2.0; LFM2-350M backbone + NanoCodec). Small/fast default. */\n tts: \"nineninesix/kani-tts-450m-0.2-ft\",\n /**\n * Selectable many-voices TTS (OuteTTS-1.0-0.6B: Qwen3-0.6B codec-LM + DAC.speech).\n * Pass this as the `repo`/`model` to engine.speak()/useTTS to route to OuteTTS.\n */\n ttsOute: \"OuteAI/OuteTTS-1.0-0.6B\",\n /**\n * Selectable describe-your-voice TTS (Parler-TTS-mini-v1: Flan-T5 encoder +\n * cross-attending decoder LM + dac_44khz). Pass this as the `repo`/`model` to\n * engine.speak()/useTTS with a `describeVoice` natural-language description.\n */\n ttsParler: \"parler-tts/parler-tts-mini-v1\",\n /** Speech-to-text. */\n stt: \"UsefulSensors/moonshine-base\",\n} as const;\n\n/**\n * OuteTTS auxiliary assets. The DAC.speech codec ships only `.pth` (non-safetensors),\n * so the folded weights (prep-dac-speech.py output) and the preset speaker JSONs are\n * hosted on the Cloudflare R2 model mirror (same public host the engine reads via\n * GERBIL_MODEL_BASE — range + CORS, free egress, no redirect). Override via the OuteTTS\n * options when self-hosting.\n */\nconst OUTETTS_ASSET_BASE =\n \"https://pub-0522ecec25fc412bb35a523f3e3f63c6.r2.dev/tryhamster/gerbil-outetts-assets\";\nexport const OUTETTS_ASSETS = {\n /** Folded DAC.speech.v1.0 encoder+decoder weights (prep-dac-speech.py output). */\n codecWeightsURL: `${OUTETTS_ASSET_BASE}/dac-speech-folded.safetensors`,\n /** Base URL for the preset speaker JSONs (`{name}.json`). */\n speakersBaseURL: `${OUTETTS_ASSET_BASE}/speakers`,\n /** The default preset voice. */\n defaultVoice: \"en-female-1-neutral\",\n} as const;\n\n/**\n * Bundled OuteTTS preset voices.\n *\n * Provenance (honest labelling):\n * - `en-female-1-neutral` is the ONE AUTHENTIC OuteAI voice — the OuteTTS v3 bundled\n * default speaker (default_speakers/en-female-1-neutral), copied verbatim.\n * - `gerbil-voice-2..6` are DERIVED voices: distinct timbres produced by running\n * pitch/tempo-varied renderings of that authentic clip back through the REAL\n * DAC.speech encode + prosody pipeline (scripts/engine/stage-outetts-assets.py).\n * They are genuine DAC-encoded OuteSpeakers, but they are NOT OuteAI's own\n * `en-male-*` voices, so they are not labelled as such. (Earlier builds mislabelled\n * them as `en-male-2-neutral` etc.; renamed for honesty.)\n */\nexport const OUTETTS_PRESET_VOICES = [\n \"en-female-1-neutral\",\n \"gerbil-voice-2\",\n \"gerbil-voice-3\",\n \"gerbil-voice-4\",\n \"gerbil-voice-5\",\n \"gerbil-voice-6\",\n] as const;\n\n/** Resolve the model repo for a set of options, falling back to the defaults. */\nexport function resolveDefaultRepo(opts: {\n repo?: string;\n embedding?: boolean;\n enableVision?: boolean;\n}): string {\n if (opts.repo) return opts.repo;\n if (opts.embedding) return DEFAULT_MODELS.embedding;\n if (opts.enableVision) return DEFAULT_MODELS.vision;\n return DEFAULT_MODELS.text;\n}\n"],"mappings":";;;;;;AAKA,MAAa,iBAAiB;CAE5B,MAAM;CAEN,QAAQ;CAER,WAAW;CAEX,KAAK;CAKL,SAAS;CAMT,WAAW;CAEX,KAAK;CACN;;;;;;;;AASD,MAAM,qBACJ;AACF,MAAa,iBAAiB;CAE5B,iBAAiB,GAAG,mBAAmB;CAEvC,iBAAiB,GAAG,mBAAmB;CAEvC,cAAc;CACf;;;;;;;;;;;;;;AAeD,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACD;;AAGD,SAAgB,mBAAmB,MAIxB;AACT,KAAI,KAAK,KAAM,QAAO,KAAK;AAC3B,KAAI,KAAK,UAAW,QAAO,eAAe;AAC1C,KAAI,KAAK,aAAc,QAAO,eAAe;AAC7C,QAAO,eAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../outetts-
|
|
2
|
-
import { d as GerbilConfig } from "../types-
|
|
1
|
+
import "../outetts-CAL3_K3j.mjs";
|
|
2
|
+
import { d as GerbilConfig } from "../types-DW-OBuAC.mjs";
|
|
3
3
|
import { Request, Response, Router } from "express";
|
|
4
4
|
|
|
5
5
|
//#region src/frameworks/express.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __require } from "../chunk-
|
|
2
|
-
import { r as DEFAULT_MODEL, t as Gerbil } from "../gerbil-
|
|
3
|
-
import "../utils-
|
|
1
|
+
import { t as __require } from "../chunk-BeNUM--j.mjs";
|
|
2
|
+
import { r as DEFAULT_MODEL, t as Gerbil } from "../gerbil-CJjj7BD_.mjs";
|
|
3
|
+
import "../utils-CZBZ8dgR.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/frameworks/express.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../outetts-
|
|
2
|
-
import { d as GerbilConfig } from "../types-
|
|
1
|
+
import "../outetts-CAL3_K3j.mjs";
|
|
2
|
+
import { d as GerbilConfig } from "../types-DW-OBuAC.mjs";
|
|
3
3
|
import * as hono0 from "hono";
|
|
4
4
|
import * as hono_types0 from "hono/types";
|
|
5
5
|
|
package/dist/frameworks/hono.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../outetts-
|
|
2
|
-
import { d as GerbilConfig } from "../types-
|
|
3
|
-
import "../index-
|
|
4
|
-
import { t as Gerbil } from "../gerbil-
|
|
1
|
+
import "../outetts-CAL3_K3j.mjs";
|
|
2
|
+
import { d as GerbilConfig } from "../types-DW-OBuAC.mjs";
|
|
3
|
+
import "../index-HgdjgsLb.mjs";
|
|
4
|
+
import { t as Gerbil } from "../gerbil-D7gfxZXW.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/frameworks/next.d.ts
|
|
7
7
|
|
package/dist/frameworks/next.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../outetts-
|
|
2
|
-
import { d as GerbilConfig, l as GenerateOptions, u as GenerateResult } from "../types-
|
|
1
|
+
import "../outetts-CAL3_K3j.mjs";
|
|
2
|
+
import { d as GerbilConfig, l as GenerateOptions, u as GenerateResult } from "../types-DW-OBuAC.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/frameworks/react.d.ts
|
|
5
5
|
|
package/dist/frameworks/trpc.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as DEFAULT_MODEL, t as Gerbil } from "../gerbil-
|
|
2
|
-
import "../utils-
|
|
1
|
+
import { r as DEFAULT_MODEL, t as Gerbil } from "../gerbil-CJjj7BD_.mjs";
|
|
2
|
+
import "../utils-CZBZ8dgR.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/frameworks/trpc.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as zodToJsonSchema, t as extractJson } from "./utils-
|
|
1
|
+
import { n as zodToJsonSchema, t as extractJson } from "./utils-CZBZ8dgR.mjs";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1560,7 +1560,7 @@ The JSON must conform to this schema: ${JSON.stringify(zodToJsonSchema(schema))}
|
|
|
1560
1560
|
/** Lazily build (or reuse) the native MoonshineSTT engine (default repo). */
|
|
1561
1561
|
async ensureNativeSTT() {
|
|
1562
1562
|
if (!this.nativeSTT) {
|
|
1563
|
-
const { MoonshineSTT } = await import("./moonshine-stt-
|
|
1563
|
+
const { MoonshineSTT } = await import("./moonshine-stt-CrTu77ps.mjs");
|
|
1564
1564
|
this.nativeSTT = await MoonshineSTT.create();
|
|
1565
1565
|
}
|
|
1566
1566
|
return this.nativeSTT;
|
|
@@ -1642,7 +1642,7 @@ The JSON must conform to this schema: ${JSON.stringify(zodToJsonSchema(schema))}
|
|
|
1642
1642
|
* ```
|
|
1643
1643
|
*/
|
|
1644
1644
|
async listen(durationMs = 5e3, options = {}) {
|
|
1645
|
-
const { Microphone, isSoxAvailable } = await import("./microphone-
|
|
1645
|
+
const { Microphone, isSoxAvailable } = await import("./microphone-CsUwVP2O.mjs");
|
|
1646
1646
|
if (!isSoxAvailable()) throw new Error("Microphone recording requires SoX. Install with:\n macOS: brew install sox\n Ubuntu: sudo apt install sox\n Windows: https://sox.sourceforge.net/");
|
|
1647
1647
|
options.onProgress?.("Starting microphone...");
|
|
1648
1648
|
const mic = new Microphone({ sampleRate: 16e3 });
|
|
@@ -1659,7 +1659,7 @@ The JSON must conform to this schema: ${JSON.stringify(zodToJsonSchema(schema))}
|
|
|
1659
1659
|
*/
|
|
1660
1660
|
async isMicrophoneAvailable() {
|
|
1661
1661
|
try {
|
|
1662
|
-
const { isSoxAvailable } = await import("./microphone-
|
|
1662
|
+
const { isSoxAvailable } = await import("./microphone-CsUwVP2O.mjs");
|
|
1663
1663
|
return isSoxAvailable();
|
|
1664
1664
|
} catch {
|
|
1665
1665
|
return false;
|
|
@@ -1727,4 +1727,4 @@ The JSON must conform to this schema: ${JSON.stringify(zodToJsonSchema(schema))}
|
|
|
1727
1727
|
|
|
1728
1728
|
//#endregion
|
|
1729
1729
|
export { resolveModel as a, configureGlobalCache as c, listBuiltinModels as i, getGlobalCache as l, BUILTIN_MODELS as n, ResponseCache as o, DEFAULT_MODEL as r, clearGlobalCache as s, Gerbil as t };
|
|
1730
|
-
//# sourceMappingURL=gerbil-
|
|
1730
|
+
//# sourceMappingURL=gerbil-CJjj7BD_.mjs.map
|