@tryhamster/gerbil 1.0.0-rc.5 → 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.
Files changed (69) hide show
  1. package/dist/browser/index.js +6 -6
  2. package/dist/cli.mjs +7 -7
  3. package/dist/cli.mjs.map +1 -1
  4. package/dist/frameworks/express.d.mts +1 -1
  5. package/dist/frameworks/express.mjs +1 -1
  6. package/dist/frameworks/fastify.d.mts +1 -1
  7. package/dist/frameworks/fastify.mjs +1 -1
  8. package/dist/frameworks/hono.d.mts +1 -1
  9. package/dist/frameworks/hono.mjs +1 -1
  10. package/dist/frameworks/next.d.mts +2 -2
  11. package/dist/frameworks/next.mjs +1 -1
  12. package/dist/frameworks/react.d.mts +1 -1
  13. package/dist/frameworks/trpc.d.mts +1 -1
  14. package/dist/frameworks/trpc.mjs +1 -1
  15. package/dist/gerbil-CJ3ifloF.mjs +4 -0
  16. package/dist/{gerbil-CocYaJhE.mjs → gerbil-Dw4Qj77e.mjs} +5 -5
  17. package/dist/{gerbil-CocYaJhE.mjs.map → gerbil-Dw4Qj77e.mjs.map} +1 -1
  18. package/dist/{gerbil-CnncBh38.d.mts → gerbil-qOTe1nl2.d.mts} +2 -2
  19. package/dist/{gerbil-CnncBh38.d.mts.map → gerbil-qOTe1nl2.d.mts.map} +1 -1
  20. package/dist/index.d.mts +2 -2
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.mjs +4 -4
  23. package/dist/integrations/ai-sdk.d.mts +1 -1
  24. package/dist/integrations/ai-sdk.mjs +3 -3
  25. package/dist/integrations/langchain.d.mts +1 -1
  26. package/dist/integrations/langchain.mjs +1 -1
  27. package/dist/integrations/llamaindex.d.mts +1 -1
  28. package/dist/integrations/llamaindex.mjs +1 -1
  29. package/dist/integrations/mcp.d.mts +2 -2
  30. package/dist/integrations/mcp.mjs +4 -4
  31. package/dist/kokoro-BNTb6egA.mjs +20210 -0
  32. package/dist/kokoro-BNTb6egA.mjs.map +1 -0
  33. package/dist/{kokoro-BSHqCbNW.js → kokoro-CMOGDSgT.js} +2 -2
  34. package/dist/{kokoro-BSHqCbNW.js.map → kokoro-CMOGDSgT.js.map} +1 -1
  35. package/dist/{mcp-m9BkEngp.mjs → mcp-BvbriaBy.mjs} +3 -3
  36. package/dist/{mcp-m9BkEngp.mjs.map → mcp-BvbriaBy.mjs.map} +1 -1
  37. package/dist/{one-liner-BBbeCywj.mjs → one-liner-s-lD8rCC.mjs} +2 -2
  38. package/dist/{one-liner-BBbeCywj.mjs.map → one-liner-s-lD8rCC.mjs.map} +1 -1
  39. package/dist/{repl-DX6JI6fo.mjs → repl-DveXw36T.mjs} +3 -3
  40. package/dist/skills/index.d.mts +2 -2
  41. package/dist/skills/index.d.mts.map +1 -1
  42. package/dist/skills/index.mjs +3 -3
  43. package/dist/{skills-CBpAWeKy.mjs → skills-CD3Orlex.mjs} +12 -12
  44. package/dist/skills-CD3Orlex.mjs.map +1 -0
  45. package/dist/{stt-BN46nKJd.js → stt-Bu-E23Sc.js} +2 -8
  46. package/dist/stt-Bu-E23Sc.js.map +1 -0
  47. package/dist/{stt-CkfJswka.mjs → stt-CpLYbGFd.mjs} +2 -8
  48. package/dist/stt-CpLYbGFd.mjs.map +1 -0
  49. package/dist/stt-DRPLEEHB.mjs +3 -0
  50. package/dist/{transformers.web-BschYzqZ.js → transformers.web-DiD1gTwk.js} +14484 -171
  51. package/dist/transformers.web-DiD1gTwk.js.map +1 -0
  52. package/dist/transformers.web-u34VxRFM.js +3 -0
  53. package/dist/{tts-Bn_zwjoM.js → tts-CqroPaSK.js} +3 -13
  54. package/dist/tts-CqroPaSK.js.map +1 -0
  55. package/dist/{tts-C8NaF1jo.mjs → tts-DXgsKGCe.mjs} +1 -1
  56. package/dist/{tts-CmaC0yA9.mjs → tts-DeGANMNV.mjs} +3 -13
  57. package/dist/tts-DeGANMNV.mjs.map +1 -0
  58. package/dist/{types-DJhOZ6Ct.d.mts → types-CiTc7ez3.d.mts} +1 -1
  59. package/dist/{types-DJhOZ6Ct.d.mts.map → types-CiTc7ez3.d.mts.map} +1 -1
  60. package/package.json +4 -4
  61. package/dist/gerbil-CjnM4Pra.mjs +0 -4
  62. package/dist/skills-CBpAWeKy.mjs.map +0 -1
  63. package/dist/stt-BN46nKJd.js.map +0 -1
  64. package/dist/stt-BT4Rt49f.mjs +0 -3
  65. package/dist/stt-CkfJswka.mjs.map +0 -1
  66. package/dist/transformers.web-BFh4CnBR.js +0 -3
  67. package/dist/transformers.web-BschYzqZ.js.map +0 -1
  68. package/dist/tts-Bn_zwjoM.js.map +0 -1
  69. package/dist/tts-CmaC0yA9.mjs.map +0 -1
@@ -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-BFh4CnBR.js");
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-BSHqCbNW.js");
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-BN46nKJd.js");
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-BN46nKJd.js");
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-BN46nKJd.js");
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-Bn_zwjoM.js");
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-CocYaJhE.mjs";
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-BBbeCywj.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-CBpAWeKy.mjs";
8
- import { r as startMCPServer } from "./mcp-m9BkEngp.mjs";
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.5";
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-DX6JI6fo.mjs").then(({ setCleanupPromise: setCleanupPromise$1 }) => {
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-CjnM4Pra.mjs");
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);