@tryhamster/gerbil 1.0.4 → 1.0.5

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 (84) hide show
  1. package/dist/cli.mjs +10 -10
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/frameworks/express.d.mts +1 -1
  4. package/dist/frameworks/express.mjs +1 -1
  5. package/dist/frameworks/fastify.d.mts +1 -1
  6. package/dist/frameworks/fastify.mjs +1 -1
  7. package/dist/frameworks/hono.d.mts +1 -1
  8. package/dist/frameworks/hono.mjs +1 -1
  9. package/dist/frameworks/next.d.mts +3 -3
  10. package/dist/frameworks/next.mjs +1 -1
  11. package/dist/frameworks/react.d.mts +1 -1
  12. package/dist/frameworks/trpc.d.mts +1 -1
  13. package/dist/frameworks/trpc.mjs +1 -1
  14. package/dist/gerbil-BgppGzKa.mjs +4 -0
  15. package/dist/{gerbil-BPbJy0_f.mjs → gerbil-CZYYq4Sq.mjs} +4 -4
  16. package/dist/{gerbil-BPbJy0_f.mjs.map → gerbil-CZYYq4Sq.mjs.map} +1 -1
  17. package/dist/{gerbil-BetB5xb0.d.mts → gerbil-CvNqpVg0.d.mts} +3 -3
  18. package/dist/{gerbil-BetB5xb0.d.mts.map → gerbil-CvNqpVg0.d.mts.map} +1 -1
  19. package/dist/gpu/hooks.d.mts +2 -2
  20. package/dist/gpu/hooks.d.mts.map +1 -1
  21. package/dist/gpu/hooks.mjs +4 -5
  22. package/dist/gpu/hooks.mjs.map +1 -1
  23. package/dist/gpu/index.d.mts +1 -1
  24. package/dist/gpu/index.mjs +2 -3
  25. package/dist/{gpu-Dszu2rk-.mjs → gpu-Ch2VuLdN.mjs} +25 -4
  26. package/dist/gpu-Ch2VuLdN.mjs.map +1 -0
  27. package/dist/{index-Dgmb2kE3.d.mts → index-Dy_9rDd5.d.mts} +2 -2
  28. package/dist/{index-Dgmb2kE3.d.mts.map → index-Dy_9rDd5.d.mts.map} +1 -1
  29. package/dist/{index-DukkJRMj.d.mts → index-Nl40RdSs.d.mts} +1 -1
  30. package/dist/{index-DukkJRMj.d.mts.map → index-Nl40RdSs.d.mts.map} +1 -1
  31. package/dist/index.d.mts +5 -5
  32. package/dist/index.mjs +8 -9
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/{indexeddb-store-BWIMtxxH.mjs → indexeddb-store-BEylGAex.mjs} +2 -2
  35. package/dist/{indexeddb-store-BWIMtxxH.mjs.map → indexeddb-store-BEylGAex.mjs.map} +1 -1
  36. package/dist/indexeddb-store-ClSHQxwz.mjs +4 -0
  37. package/dist/integrations/ai-sdk.d.mts +1 -1
  38. package/dist/integrations/ai-sdk.mjs +1 -1
  39. package/dist/integrations/langchain.d.mts +1 -1
  40. package/dist/integrations/langchain.mjs +1 -1
  41. package/dist/integrations/llamaindex.d.mts +1 -1
  42. package/dist/integrations/llamaindex.mjs +1 -1
  43. package/dist/integrations/mcp-client.mjs +1 -1
  44. package/dist/integrations/mcp.d.mts +3 -3
  45. package/dist/integrations/mcp.mjs +4 -4
  46. package/dist/{mcp-C8lTkR3D.mjs → mcp-DUgk28Kp.mjs} +3 -3
  47. package/dist/{mcp-C8lTkR3D.mjs.map → mcp-DUgk28Kp.mjs.map} +1 -1
  48. package/dist/memory/index.d.mts +2 -2
  49. package/dist/memory/index.mjs +4 -4
  50. package/dist/memory-CGRo6zY5.mjs +4 -0
  51. package/dist/{memory-DVN0MnIG.mjs → memory-Deo99oKh.mjs} +2 -2
  52. package/dist/{memory-DVN0MnIG.mjs.map → memory-Deo99oKh.mjs.map} +1 -1
  53. package/dist/{memory-Dj0J1v88.mjs → memory-wgo2ZK3M.mjs} +2 -2
  54. package/dist/{memory-Dj0J1v88.mjs.map → memory-wgo2ZK3M.mjs.map} +1 -1
  55. package/dist/moonshine-stt-DFIP4tIb.mjs +4 -0
  56. package/dist/{moonshine-stt-DNVw8v_Y.mjs → moonshine-stt-DR0-JbVW.mjs} +1 -1
  57. package/dist/{moonshine-stt-DNVw8v_Y.mjs.map → moonshine-stt-DR0-JbVW.mjs.map} +1 -1
  58. package/dist/{one-liner-VcUGmyTZ.mjs → one-liner-sTDG9Hum.mjs} +2 -2
  59. package/dist/{one-liner-VcUGmyTZ.mjs.map → one-liner-sTDG9Hum.mjs.map} +1 -1
  60. package/dist/repl-njlFQs4-.mjs +9 -0
  61. package/dist/skills/index.d.mts +14 -14
  62. package/dist/skills/index.d.mts.map +1 -1
  63. package/dist/skills/index.mjs +3 -3
  64. package/dist/{skills-B6Cor5wy.mjs → skills-CEUuOUlm.mjs} +2 -2
  65. package/dist/{skills-B6Cor5wy.mjs.map → skills-CEUuOUlm.mjs.map} +1 -1
  66. package/dist/{tools-DQ1mPUw5.mjs → tools-DbbNCJ5y.mjs} +1 -1
  67. package/dist/{tools-DQ1mPUw5.mjs.map → tools-DbbNCJ5y.mjs.map} +1 -1
  68. package/dist/{types-LlyYILII.d.mts → types-Bxwe_uS7.d.mts} +1 -1
  69. package/dist/{types-LlyYILII.d.mts.map → types-Bxwe_uS7.d.mts.map} +1 -1
  70. package/dist/{types-DQBe2lFo.d.mts → types-D7kn-0i2.d.mts} +1 -1
  71. package/dist/{types-DQBe2lFo.d.mts.map → types-D7kn-0i2.d.mts.map} +1 -1
  72. package/dist/{vector-B0panuy6.mjs → vector-C1U9vVVS.mjs} +1 -1
  73. package/dist/{vector-B0panuy6.mjs.map → vector-C1U9vVVS.mjs.map} +1 -1
  74. package/package.json +1 -1
  75. package/dist/defaults-9komdrbY.mjs +0 -24
  76. package/dist/defaults-9komdrbY.mjs.map +0 -1
  77. package/dist/gerbil-BoHXwcdY.mjs +0 -4
  78. package/dist/gpu-Dszu2rk-.mjs.map +0 -1
  79. package/dist/indexeddb-store-ClH12Xnl.mjs +0 -4
  80. package/dist/memory-D1P7Tmda.mjs +0 -4
  81. package/dist/moonshine-stt-rXESw8t8.mjs +0 -4
  82. package/dist/repl-WUbQ1UgU.mjs +0 -9
  83. /package/dist/{auto-update-BVaLXcDE.mjs → auto-update-DNbr3GLz.mjs} +0 -0
  84. /package/dist/{microphone-Bqmoz9_K.mjs → microphone-sj_bnRm-.mjs} +0 -0
package/dist/cli.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as __require } from "./chunk-B9cbKln6.mjs";
3
- import { n as BUILTIN_MODELS, r as DEFAULT_MODEL, t as Gerbil } from "./gerbil-BPbJy0_f.mjs";
3
+ import { n as BUILTIN_MODELS, r as DEFAULT_MODEL, t as Gerbil } from "./gerbil-CZYYq4Sq.mjs";
4
4
  import "./utils-DKO55ZmZ.mjs";
5
- import "./one-liner-VcUGmyTZ.mjs";
5
+ import "./one-liner-sTDG9Hum.mjs";
6
6
  import { n as isArchitectureSupported } from "./architectures-C1I5V3Dt.mjs";
7
- import { A as useSkill, E as getSkillInfo, O as listSkills, a as summarize, f as explain, h as commit, s as review, y as loadProjectSkills } from "./skills-B6Cor5wy.mjs";
8
- import { r as startMCPServer } from "./mcp-C8lTkR3D.mjs";
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-DQ1mPUw5.mjs";
7
+ import { A as useSkill, E as getSkillInfo, O as listSkills, a as summarize, f as explain, h as commit, s as review, y as loadProjectSkills } from "./skills-CEUuOUlm.mjs";
8
+ import { r as startMCPServer } from "./mcp-DUgk28Kp.mjs";
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-DbbNCJ5y.mjs";
10
10
  import fs, { existsSync, readFileSync, unlinkSync } from "node:fs";
11
11
  import os, { tmpdir } from "node:os";
12
12
  import path, { join } from "node:path";
@@ -24,7 +24,7 @@ import TextInput from "ink-text-input";
24
24
  import http from "node:http";
25
25
 
26
26
  //#region package.json
27
- var version = "1.0.4";
27
+ var version = "1.0.5";
28
28
 
29
29
  //#endregion
30
30
  //#region src/cli/repl/auto-update.ts
@@ -7701,7 +7701,7 @@ function App({ initialView = "menu" } = {}) {
7701
7701
  return () => {
7702
7702
  mounted = false;
7703
7703
  if (gerbilRef.current) {
7704
- import("./repl-WUbQ1UgU.mjs").then(({ setCleanupPromise: setCleanupPromise$1 }) => {
7704
+ import("./repl-njlFQs4-.mjs").then(({ setCleanupPromise: setCleanupPromise$1 }) => {
7705
7705
  setCleanupPromise$1(gerbilRef.current?.dispose(true) ?? Promise.resolve());
7706
7706
  });
7707
7707
  gerbilRef.current = null;
@@ -8997,7 +8997,7 @@ program.command("serve").description("Start Gerbil server (use --mcp or --http f
8997
8997
  }
8998
8998
  if (opts.mcp) await startMCPServer({ model: opts.model });
8999
8999
  else {
9000
- const { Gerbil: Gerbil$1 } = await import("./gerbil-BoHXwcdY.mjs");
9000
+ const { Gerbil: Gerbil$1 } = await import("./gerbil-BgppGzKa.mjs");
9001
9001
  const g = new Gerbil$1();
9002
9002
  const spinner = ora("Loading model...").start();
9003
9003
  await g.loadModel(opts.model);
@@ -9278,7 +9278,7 @@ program.command("bench").description("Benchmark model performance").option("-m,
9278
9278
  }
9279
9279
  });
9280
9280
  program.command("update").description("Update Gerbil to the latest version").action(async () => {
9281
- const { checkForUpdate: checkForUpdate$1, installUpdate: installUpdate$1, CURRENT_VERSION: CURRENT_VERSION$1 } = await import("./auto-update-BVaLXcDE.mjs");
9281
+ const { checkForUpdate: checkForUpdate$1, installUpdate: installUpdate$1, CURRENT_VERSION: CURRENT_VERSION$1 } = await import("./auto-update-DNbr3GLz.mjs");
9282
9282
  const spinner = ora("Checking for updates...").start();
9283
9283
  try {
9284
9284
  const check = await checkForUpdate$1();
@@ -9306,7 +9306,7 @@ program.parse = (...args) => {
9306
9306
  return result;
9307
9307
  };
9308
9308
  async function checkForUpdateCLI() {
9309
- const { checkForUpdate: checkForUpdate$1, CURRENT_VERSION: CURRENT_VERSION$1 } = await import("./auto-update-BVaLXcDE.mjs");
9309
+ const { checkForUpdate: checkForUpdate$1, CURRENT_VERSION: CURRENT_VERSION$1 } = await import("./auto-update-DNbr3GLz.mjs");
9310
9310
  const check = await checkForUpdate$1();
9311
9311
  if (check.updateAvailable) console.error(chalk.yellow(`\nUpdate available: v${CURRENT_VERSION$1} → v${check.latestVersion}. Run ${chalk.cyan("gerbil update")}.`));
9312
9312
  }