@tryhamster/gerbil 1.0.0-rc.6 → 1.0.0-rc.7
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/browser/index.js +6 -6
- package/dist/cli.mjs +7 -7
- package/dist/cli.mjs.map +1 -1
- package/dist/frameworks/express.d.mts +1 -1
- package/dist/frameworks/express.mjs +1 -1
- package/dist/frameworks/fastify.d.mts +1 -1
- package/dist/frameworks/fastify.mjs +1 -1
- package/dist/frameworks/hono.d.mts +1 -1
- package/dist/frameworks/hono.mjs +1 -1
- package/dist/frameworks/next.d.mts +2 -2
- package/dist/frameworks/next.mjs +1 -1
- package/dist/frameworks/react.d.mts +1 -1
- package/dist/frameworks/trpc.d.mts +1 -1
- package/dist/frameworks/trpc.mjs +1 -1
- package/dist/gerbil-CJ3ifloF.mjs +4 -0
- package/dist/{gerbil-CgLjZy0K.mjs → gerbil-Dw4Qj77e.mjs} +3 -3
- package/dist/{gerbil-CgLjZy0K.mjs.map → gerbil-Dw4Qj77e.mjs.map} +1 -1
- package/dist/{gerbil-CnncBh38.d.mts → gerbil-qOTe1nl2.d.mts} +2 -2
- package/dist/{gerbil-CnncBh38.d.mts.map → gerbil-qOTe1nl2.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/integrations/ai-sdk.d.mts +1 -1
- package/dist/integrations/ai-sdk.mjs +2 -2
- package/dist/integrations/langchain.d.mts +1 -1
- package/dist/integrations/langchain.mjs +1 -1
- package/dist/integrations/llamaindex.d.mts +1 -1
- package/dist/integrations/llamaindex.mjs +1 -1
- package/dist/integrations/mcp.d.mts +2 -2
- package/dist/integrations/mcp.mjs +4 -4
- package/dist/kokoro-BNTb6egA.mjs +20210 -0
- package/dist/kokoro-BNTb6egA.mjs.map +1 -0
- package/dist/{kokoro-DFRQ1OeM.js → kokoro-CMOGDSgT.js} +2 -2
- package/dist/{kokoro-DFRQ1OeM.js.map → kokoro-CMOGDSgT.js.map} +1 -1
- package/dist/{mcp-DGK69gbU.mjs → mcp-BvbriaBy.mjs} +3 -3
- package/dist/{mcp-DGK69gbU.mjs.map → mcp-BvbriaBy.mjs.map} +1 -1
- package/dist/{one-liner-BJ7hDVlY.mjs → one-liner-s-lD8rCC.mjs} +2 -2
- package/dist/{one-liner-BJ7hDVlY.mjs.map → one-liner-s-lD8rCC.mjs.map} +1 -1
- package/dist/{repl-BTq1JyH7.mjs → repl-DveXw36T.mjs} +3 -3
- package/dist/skills/index.d.mts +6 -6
- package/dist/skills/index.d.mts.map +1 -1
- package/dist/skills/index.mjs +3 -3
- package/dist/{skills-Hf3iEkq4.mjs → skills-CD3Orlex.mjs} +12 -12
- package/dist/skills-CD3Orlex.mjs.map +1 -0
- package/dist/{stt-Te8Qz-Ay.js → stt-Bu-E23Sc.js} +2 -2
- package/dist/{stt-Te8Qz-Ay.js.map → stt-Bu-E23Sc.js.map} +1 -1
- package/dist/{transformers.web-M6mCnEYJ.js → transformers.web-DiD1gTwk.js} +14483 -170
- package/dist/transformers.web-DiD1gTwk.js.map +1 -0
- package/dist/{transformers.web-DokyH3rP.js → transformers.web-u34VxRFM.js} +1 -1
- package/dist/{tts-C0xx3CtE.js → tts-CqroPaSK.js} +3 -3
- package/dist/{tts-C0xx3CtE.js.map → tts-CqroPaSK.js.map} +1 -1
- package/dist/{tts-DzJDBsFR.mjs → tts-DXgsKGCe.mjs} +1 -1
- package/dist/{tts-D5hrNcGD.mjs → tts-DeGANMNV.mjs} +2 -2
- package/dist/{tts-D5hrNcGD.mjs.map → tts-DeGANMNV.mjs.map} +1 -1
- package/dist/{types-DJhOZ6Ct.d.mts → types-CiTc7ez3.d.mts} +1 -1
- package/dist/{types-DJhOZ6Ct.d.mts.map → types-CiTc7ez3.d.mts.map} +1 -1
- package/package.json +4 -4
- package/dist/gerbil-IwhB_Sip.mjs +0 -4
- package/dist/skills-Hf3iEkq4.mjs.map +0 -1
- package/dist/transformers.web-M6mCnEYJ.js.map +0 -1
package/dist/browser/index.js
CHANGED
|
@@ -1366,7 +1366,7 @@ function useSpeech(options = {}) {
|
|
|
1366
1366
|
message: `Loading ${isSupertonic ? "Supertonic" : "Kokoro"} TTS...`
|
|
1367
1367
|
});
|
|
1368
1368
|
if (isSupertonic) {
|
|
1369
|
-
const { pipeline } = await import("../transformers.web-
|
|
1369
|
+
const { pipeline } = await import("../transformers.web-u34VxRFM.js");
|
|
1370
1370
|
const tts = await pipeline("text-to-speech", config.repo, {
|
|
1371
1371
|
device: "webgpu",
|
|
1372
1372
|
progress_callback: (progress) => {
|
|
@@ -1409,7 +1409,7 @@ function useSpeech(options = {}) {
|
|
|
1409
1409
|
config
|
|
1410
1410
|
};
|
|
1411
1411
|
} else {
|
|
1412
|
-
const { KokoroTTS } = await import("../kokoro-
|
|
1412
|
+
const { KokoroTTS } = await import("../kokoro-CMOGDSgT.js");
|
|
1413
1413
|
const tts = await KokoroTTS.from_pretrained(config.repo, {
|
|
1414
1414
|
dtype: "fp32",
|
|
1415
1415
|
progress_callback: (progress) => {
|
|
@@ -1752,7 +1752,7 @@ function useVoiceInput(options = {}) {
|
|
|
1752
1752
|
status: "loading",
|
|
1753
1753
|
message: "Loading STT model..."
|
|
1754
1754
|
});
|
|
1755
|
-
const { WhisperSTT } = await import("../stt-
|
|
1755
|
+
const { WhisperSTT } = await import("../stt-Bu-E23Sc.js");
|
|
1756
1756
|
if (cancelled || !mountedRef.current) return;
|
|
1757
1757
|
const stt = new WhisperSTT(model);
|
|
1758
1758
|
await stt.load({ onProgress: (p) => {
|
|
@@ -1888,7 +1888,7 @@ function useVoiceInput(options = {}) {
|
|
|
1888
1888
|
if (streaming && !sttRef.current) {
|
|
1889
1889
|
if (!shouldLoad) setShouldLoad(true);
|
|
1890
1890
|
setIsLoading(true);
|
|
1891
|
-
const { WhisperSTT } = await import("../stt-
|
|
1891
|
+
const { WhisperSTT } = await import("../stt-Bu-E23Sc.js");
|
|
1892
1892
|
const stt = new WhisperSTT(model);
|
|
1893
1893
|
await stt.load({ onProgress: (p) => {
|
|
1894
1894
|
if (mountedRef.current) {
|
|
@@ -2171,7 +2171,7 @@ function useVoiceChat(options = {}) {
|
|
|
2171
2171
|
setIsLoading(true);
|
|
2172
2172
|
setError(null);
|
|
2173
2173
|
setLoadingMessage("Loading speech recognition (Whisper)...");
|
|
2174
|
-
const { WhisperSTT } = await import("../stt-
|
|
2174
|
+
const { WhisperSTT } = await import("../stt-Bu-E23Sc.js");
|
|
2175
2175
|
if (cancelled || !mountedRef.current) return;
|
|
2176
2176
|
const stt = new WhisperSTT(sttModel);
|
|
2177
2177
|
await stt.load({ onProgress: (p) => {
|
|
@@ -2197,7 +2197,7 @@ function useVoiceChat(options = {}) {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
llmWorkerRef.current = worker;
|
|
2199
2199
|
setLoadingMessage(`Loading text-to-speech (${ttsModelId === "supertonic-66m" ? "Supertonic" : "Kokoro"})...`);
|
|
2200
|
-
const { createTTS } = await import("../tts-
|
|
2200
|
+
const { createTTS } = await import("../tts-CqroPaSK.js");
|
|
2201
2201
|
if (cancelled || !mountedRef.current) return;
|
|
2202
2202
|
const tts = createTTS(ttsModelId);
|
|
2203
2203
|
await tts.load({ onProgress: (p) => {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as __require } from "./chunk-CkXuGtQK.mjs";
|
|
3
|
-
import { n as BUILTIN_MODELS, t as Gerbil } from "./gerbil-
|
|
3
|
+
import { n as BUILTIN_MODELS, t as Gerbil } from "./gerbil-Dw4Qj77e.mjs";
|
|
4
4
|
import { n as getChromeCachedModels, r as refreshCachedModelSizes } from "./chrome-backend-CORwaIyC.mjs";
|
|
5
5
|
import "./utils-CZBZ8dgR.mjs";
|
|
6
|
-
import "./one-liner-
|
|
7
|
-
import { D as listSkills, T as getSkillInfo, a as summarize, d as explain, k as useSkill, m as commit, s as review, v as loadProjectSkills } from "./skills-
|
|
8
|
-
import { r as startMCPServer } from "./mcp-
|
|
6
|
+
import "./one-liner-s-lD8rCC.mjs";
|
|
7
|
+
import { D as listSkills, T as getSkillInfo, a as summarize, d as explain, k as useSkill, m as commit, s as review, v as loadProjectSkills } from "./skills-CD3Orlex.mjs";
|
|
8
|
+
import { r as startMCPServer } from "./mcp-BvbriaBy.mjs";
|
|
9
9
|
import { a as getToolDefinitions, c as setToolContext, i as getTool, n as executeToolCall, o as loadProjectTools, r as formatToolsForPrompt, s as parseToolCall } from "./tools-Bi1P7Xoy.mjs";
|
|
10
10
|
import { exec, spawn, spawnSync } from "node:child_process";
|
|
11
11
|
import fs, { existsSync, readFileSync, unlinkSync } from "node:fs";
|
|
@@ -24,7 +24,7 @@ import SelectInput from "ink-select-input";
|
|
|
24
24
|
import TextInput from "ink-text-input";
|
|
25
25
|
|
|
26
26
|
//#region package.json
|
|
27
|
-
var version = "1.0.0-rc.
|
|
27
|
+
var version = "1.0.0-rc.7";
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/cli/repl/auto-update.ts
|
|
@@ -8181,7 +8181,7 @@ function App({ initialView = "menu", forcedDevice } = {}) {
|
|
|
8181
8181
|
return () => {
|
|
8182
8182
|
mounted = false;
|
|
8183
8183
|
if (gerbilRef.current) {
|
|
8184
|
-
import("./repl-
|
|
8184
|
+
import("./repl-DveXw36T.mjs").then(({ setCleanupPromise: setCleanupPromise$1 }) => {
|
|
8185
8185
|
setCleanupPromise$1(gerbilRef.current?.dispose(true) ?? Promise.resolve());
|
|
8186
8186
|
});
|
|
8187
8187
|
gerbilRef.current = null;
|
|
@@ -9508,7 +9508,7 @@ program.command("serve").description("Start Gerbil server (use --mcp or --http f
|
|
|
9508
9508
|
}
|
|
9509
9509
|
if (opts.mcp) await startMCPServer({ model: opts.model });
|
|
9510
9510
|
else {
|
|
9511
|
-
const { Gerbil: Gerbil$1 } = await import("./gerbil-
|
|
9511
|
+
const { Gerbil: Gerbil$1 } = await import("./gerbil-CJ3ifloF.mjs");
|
|
9512
9512
|
const g = new Gerbil$1();
|
|
9513
9513
|
const spinner = ora("Loading model...").start();
|
|
9514
9514
|
await g.loadModel(opts.model);
|