@tryhamster/gerbil 1.0.3 → 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.
- package/dist/cli.mjs +10 -10
- 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 +3 -3
- 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-BgppGzKa.mjs +4 -0
- package/dist/{gerbil-D4eIu8hx.mjs → gerbil-CZYYq4Sq.mjs} +4 -4
- package/dist/{gerbil-D4eIu8hx.mjs.map → gerbil-CZYYq4Sq.mjs.map} +1 -1
- package/dist/{gerbil-BetB5xb0.d.mts → gerbil-CvNqpVg0.d.mts} +3 -3
- package/dist/{gerbil-BetB5xb0.d.mts.map → gerbil-CvNqpVg0.d.mts.map} +1 -1
- package/dist/gpu/hooks.d.mts +2 -2
- package/dist/gpu/hooks.d.mts.map +1 -1
- package/dist/gpu/hooks.mjs +4 -5
- package/dist/gpu/hooks.mjs.map +1 -1
- package/dist/gpu/index.d.mts +1 -1
- package/dist/gpu/index.mjs +2 -3
- package/dist/{gpu-rziY7czu.mjs → gpu-Ch2VuLdN.mjs} +25 -4
- package/dist/gpu-Ch2VuLdN.mjs.map +1 -0
- package/dist/{index-Dgmb2kE3.d.mts → index-Dy_9rDd5.d.mts} +2 -2
- package/dist/{index-Dgmb2kE3.d.mts.map → index-Dy_9rDd5.d.mts.map} +1 -1
- package/dist/{index-DukkJRMj.d.mts → index-Nl40RdSs.d.mts} +1 -1
- package/dist/{index-DukkJRMj.d.mts.map → index-Nl40RdSs.d.mts.map} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{indexeddb-store-BWIMtxxH.mjs → indexeddb-store-BEylGAex.mjs} +2 -2
- package/dist/{indexeddb-store-BWIMtxxH.mjs.map → indexeddb-store-BEylGAex.mjs.map} +1 -1
- package/dist/indexeddb-store-ClSHQxwz.mjs +4 -0
- package/dist/integrations/ai-sdk.d.mts +1 -1
- package/dist/integrations/ai-sdk.mjs +1 -1
- 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-client.mjs +1 -1
- package/dist/integrations/mcp.d.mts +3 -3
- package/dist/integrations/mcp.mjs +4 -4
- package/dist/{mcp-DujeDKfA.mjs → mcp-DUgk28Kp.mjs} +3 -3
- package/dist/{mcp-DujeDKfA.mjs.map → mcp-DUgk28Kp.mjs.map} +1 -1
- package/dist/memory/index.d.mts +2 -2
- package/dist/memory/index.mjs +4 -4
- package/dist/memory-CGRo6zY5.mjs +4 -0
- package/dist/{memory-DVN0MnIG.mjs → memory-Deo99oKh.mjs} +2 -2
- package/dist/{memory-DVN0MnIG.mjs.map → memory-Deo99oKh.mjs.map} +1 -1
- package/dist/{memory-Dj0J1v88.mjs → memory-wgo2ZK3M.mjs} +2 -2
- package/dist/{memory-Dj0J1v88.mjs.map → memory-wgo2ZK3M.mjs.map} +1 -1
- package/dist/moonshine-stt-DFIP4tIb.mjs +4 -0
- package/dist/{moonshine-stt-BdccCmYH.mjs → moonshine-stt-DR0-JbVW.mjs} +2 -6
- package/dist/{moonshine-stt-BdccCmYH.mjs.map → moonshine-stt-DR0-JbVW.mjs.map} +1 -1
- package/dist/{one-liner-D8cM1Mg2.mjs → one-liner-sTDG9Hum.mjs} +2 -2
- package/dist/{one-liner-D8cM1Mg2.mjs.map → one-liner-sTDG9Hum.mjs.map} +1 -1
- package/dist/repl-njlFQs4-.mjs +9 -0
- package/dist/skills/index.d.mts +3 -3
- package/dist/skills/index.mjs +3 -3
- package/dist/{skills-FEBy8-pu.mjs → skills-CEUuOUlm.mjs} +2 -2
- package/dist/{skills-FEBy8-pu.mjs.map → skills-CEUuOUlm.mjs.map} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs → tools-DbbNCJ5y.mjs} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs.map → tools-DbbNCJ5y.mjs.map} +1 -1
- package/dist/{types-LlyYILII.d.mts → types-Bxwe_uS7.d.mts} +1 -1
- package/dist/{types-LlyYILII.d.mts.map → types-Bxwe_uS7.d.mts.map} +1 -1
- package/dist/{types-DQBe2lFo.d.mts → types-D7kn-0i2.d.mts} +1 -1
- package/dist/{types-DQBe2lFo.d.mts.map → types-D7kn-0i2.d.mts.map} +1 -1
- package/dist/{vector-B0panuy6.mjs → vector-C1U9vVVS.mjs} +1 -1
- package/dist/{vector-B0panuy6.mjs.map → vector-C1U9vVVS.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/defaults-9komdrbY.mjs +0 -24
- package/dist/defaults-9komdrbY.mjs.map +0 -1
- package/dist/gerbil-Dk6sTA7P.mjs +0 -4
- package/dist/gpu-rziY7czu.mjs.map +0 -1
- package/dist/indexeddb-store-ClH12Xnl.mjs +0 -4
- package/dist/memory-D1P7Tmda.mjs +0 -4
- package/dist/moonshine-stt-CBX849nI.mjs +0 -4
- package/dist/repl-DuACpxEj.mjs +0 -9
- /package/dist/{auto-update-BVaLXcDE.mjs → auto-update-DNbr3GLz.mjs} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
8
|
-
import { r as startMCPServer } from "./mcp-
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
}
|