@wirecat/cli-memo 0.131.72 → 0.131.74
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/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-G6S5HOBT.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-LA6PXTPQ.js → anthropic-W7JXDZPL.js} +16 -7
- package/dist/bundle/{app-server-SESNZIAV.js → app-server-2LQJZC7Z.js} +50 -49
- package/dist/bundle/auto-OCCPDCFY.js +89 -0
- package/dist/bundle/{bun-PZNVNH4G.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-VICDK5FS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-FXZ7PQKG.js → chunk-3BEJUJEL.js} +8 -8
- package/dist/bundle/{chunk-IRBYZUI7.js → chunk-3OVYPDT6.js} +31 -50
- package/dist/bundle/{chunk-IXZWUHSG.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-SVVSGUMU.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-3LS76TFB.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-FPWF2XLH.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-FENNNSCI.js → chunk-6Q3JHCU7.js} +12 -12
- package/dist/bundle/{chunk-XXEHPPNS.js → chunk-AHAW3TOS.js} +1266 -952
- package/dist/bundle/{chunk-6B3GQMR6.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-2VETW2QK.js → chunk-BNJ2XK7D.js} +1192 -838
- package/dist/bundle/{chunk-II2SXJEO.js → chunk-BR4DCOA5.js} +47 -45
- package/dist/bundle/{chunk-FVJSDDSV.js → chunk-C6MWOBEL.js} +26 -22
- package/dist/bundle/{chunk-RGIS2DRA.js → chunk-CWWUZK2U.js} +9 -9
- package/dist/bundle/{chunk-LIF2HXIQ.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-MKOQDN3I.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-5XRCF57Z.js → chunk-EML43XLJ.js} +2 -2
- package/dist/bundle/{chunk-ASDOPGKC.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-B7LGXY3S.js → chunk-GPXHGG67.js} +12 -12
- package/dist/bundle/chunk-GWNLLQBD.js +177 -0
- package/dist/bundle/{chunk-FOPDWCRG.js → chunk-HEYIBJ5I.js} +12 -12
- package/dist/bundle/{chunk-PHL53ERQ.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-INQAQ55X.js → chunk-JINEHQ2T.js} +4911 -4900
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-QUPPO7DB.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-HIHZNBR7.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-PGOMGFXA.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-U3P5F57B.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-I4HWKPQR.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-G3FQTKHT.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-K55WZ67L.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/{chunk-NRLXWY4Q.js → chunk-OOKMABOJ.js} +1528 -852
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-A4UQKFGY.js → chunk-P6FPRA3P.js} +59 -35
- package/dist/bundle/{chunk-BD7AGXJJ.js → chunk-QCR5WJ7R.js} +53 -48
- package/dist/bundle/{chunk-RF6KPQWV.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-MSTWHRLN.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-CLQXHFKG.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-G7XOBQB5.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-ESYCZ575.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-KH43CUE2.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-3ZSPTUG3.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-H3LAORYX.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-M2DAITNE.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-YBL4QKLV.js → chunk-VRL5WRRQ.js} +83 -83
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-WT2P44YD.js → chunk-WBCY7WHV.js} +17 -17
- package/dist/bundle/{chunk-FDSM2TU6.js → chunk-WFXRR2JT.js} +11 -11
- package/dist/bundle/{chunk-2RNNWFU7.js → chunk-WM7MVKGU.js} +24 -24
- package/dist/bundle/{chunk-XNX3U6GD.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-MAGAWAPG.js → chunk-XMHWGHID.js} +4252 -4248
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-UCRR7R6Q.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-CPUQC7UF.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-6Z62U7NY.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-SL2LXOCN.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-STJWETNW.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-FHIGY5K6.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-ZM6J47GY.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-SR7C53CS.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-UX52EWLQ.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-WRWXOJML.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-MTCNTCST.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-PPPCHSTE.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-UJBIX6A2.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-7EYT2OA3.js +21 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/failure-YQJ43YFG.js +69 -0
- package/dist/bundle/{first-run-7HAWGQ3B.js → first-run-C7L7IACA.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-JKIO4JF7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-UCDMODSA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-3AIXDDDR.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-NX722DXD.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2NPSI7Q3.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-AFRN6Q36.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-J2IBN6X7.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-MRG4ZQQI.js → program-RHPSSKFA.js} +262 -153
- package/dist/bundle/{prompt-6XNKR4VQ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-G3GI32QS.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-DJO255PT.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-5SBZRIHF.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-BZVBKGU3.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3TQJ47Q6.js +62 -0
- package/dist/bundle/{server-D5BJDKTJ.js → server-FX7RKPL4.js} +71 -67
- package/dist/bundle/server-SHHKLBS2.js +48 -0
- package/dist/bundle/{state-A57F7T5D.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-JXD7SGIK.js → store-K45RFKGF.js} +13 -13
- package/dist/bundle/store-maintenance-command-EOTKQ3E5.js +47 -0
- package/dist/bundle/update-PW77Y4DM.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +15 -3
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +7 -7
- package/dist/digest/backfill.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +11 -3
- package/dist/examples.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/search/answers.d.ts +15 -3
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +76 -6
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +50 -8
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/search.d.ts +10 -2
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +18 -5
- package/dist/search/search.js.map +1 -1
- package/dist/store/group.d.ts +1 -1
- package/dist/store/group.d.ts.map +1 -1
- package/dist/store/group.js +2 -1
- package/dist/store/group.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/SKILL.md +3 -3
- package/skills/cli-memo/topics/meetings.md +2 -1
- package/skills/cli-memo/topics/search.md +1 -0
- package/dist/bundle/auto-WU47LYXJ.js +0 -85
- package/dist/bundle/chunk-THPGFRPZ.js +0 -262
- package/dist/bundle/command-contract-7QECBB6M.js +0 -32
- package/dist/bundle/entry-W6SHKRBE.js +0 -18
- package/dist/bundle/failure-NRJ3EPBO.js +0 -65
- package/dist/bundle/first-screen-FRRTKWFB.js +0 -30
- package/dist/bundle/mcp-OL6ZYF2T.js +0 -90
- package/dist/bundle/openai-U5CQFLRU.js +0 -23
- package/dist/bundle/server-AEZPZ3ZD.js +0 -48
- package/dist/bundle/server-CIT5B2SV.js +0 -61
- package/dist/bundle/store-maintenance-command-5DG4SEQA.js +0 -47
- package/dist/bundle/update-NI24ED4V.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-YSYFOIW7.js → chunk-IXSUVHW6.js} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CAPABILITY_STATEMENTS,
|
|
5
|
+
storeCapable
|
|
6
|
+
} from "./chunk-UIAGASGP.js";
|
|
7
|
+
import {
|
|
8
|
+
importFrom
|
|
9
|
+
} from "./chunk-Y5E2WNWB.js";
|
|
10
|
+
import {
|
|
11
|
+
__name
|
|
12
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
16
|
+
import { readFileSync } from "node:fs";
|
|
17
|
+
import { dirname } from "node:path";
|
|
18
|
+
var RESTARTED = "CLI_MESSAGING_SQLITE_RESTARTED";
|
|
19
|
+
var USER_LIBRARY_PATH = "CLI_MESSAGING_USER_LD_LIBRARY_PATH";
|
|
20
|
+
var FORWARDED = ["SIGTERM", "SIGHUP", "SIGQUIT"];
|
|
21
|
+
var ensureSqlite = /* @__PURE__ */ __name(async (runtime = nodeRuntime()) => {
|
|
22
|
+
const { env } = runtime;
|
|
23
|
+
if (env[RESTARTED]) {
|
|
24
|
+
if (env[USER_LIBRARY_PATH] === void 0)
|
|
25
|
+
delete env.LD_LIBRARY_PATH;
|
|
26
|
+
else
|
|
27
|
+
env.LD_LIBRARY_PATH = env[USER_LIBRARY_PATH];
|
|
28
|
+
delete env[USER_LIBRARY_PATH];
|
|
29
|
+
delete env[RESTARTED];
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (runtime.bun || runtime.platform !== "linux")
|
|
33
|
+
return;
|
|
34
|
+
const maps = runtime.maps();
|
|
35
|
+
if (!maps.includes("libsqlite3"))
|
|
36
|
+
return;
|
|
37
|
+
if (await runtime.capable())
|
|
38
|
+
return;
|
|
39
|
+
const library = await runtime.library(maps.includes("ld-musl"));
|
|
40
|
+
if (!library)
|
|
41
|
+
return;
|
|
42
|
+
const restarted = {
|
|
43
|
+
...env,
|
|
44
|
+
LD_LIBRARY_PATH: [dirname(library.path), env.LD_LIBRARY_PATH].filter(Boolean).join(":"),
|
|
45
|
+
[RESTARTED]: "1"
|
|
46
|
+
};
|
|
47
|
+
if (env.LD_LIBRARY_PATH !== void 0)
|
|
48
|
+
restarted[USER_LIBRARY_PATH] = env.LD_LIBRARY_PATH;
|
|
49
|
+
if (!runtime.works(restarted, library.version))
|
|
50
|
+
return;
|
|
51
|
+
await runtime.restart(restarted);
|
|
52
|
+
}, "ensureSqlite");
|
|
53
|
+
var trialScript = /* @__PURE__ */ __name((version) => `
|
|
54
|
+
const { DatabaseSync } = await import("node:sqlite")
|
|
55
|
+
const database = new DatabaseSync(":memory:")
|
|
56
|
+
if (database.prepare("SELECT sqlite_version() AS v").get().v !== ${JSON.stringify(version)}) process.exit(1)
|
|
57
|
+
for (const statement of ${JSON.stringify(CAPABILITY_STATEMENTS)}) database.exec(statement)
|
|
58
|
+
`, "trialScript");
|
|
59
|
+
var nodeRuntime = /* @__PURE__ */ __name(() => ({
|
|
60
|
+
env: process.env,
|
|
61
|
+
platform: process.platform,
|
|
62
|
+
bun: "Bun" in globalThis,
|
|
63
|
+
maps: /* @__PURE__ */ __name(() => {
|
|
64
|
+
try {
|
|
65
|
+
return readFileSync("/proc/self/maps", "utf8");
|
|
66
|
+
} catch {
|
|
67
|
+
return "";
|
|
68
|
+
}
|
|
69
|
+
}, "maps"),
|
|
70
|
+
capable: /* @__PURE__ */ __name(() => storeCapable().then(() => true, () => false), "capable"),
|
|
71
|
+
library: /* @__PURE__ */ __name(async (musl) => {
|
|
72
|
+
try {
|
|
73
|
+
const { libraryFor, SQLITE_VERSION } = await importFrom(new URL("sqlite-runtime.js", import.meta.resolve("@wirecat/cli-core")).href, "@wirecat/cli-core-sqlite");
|
|
74
|
+
const path = libraryFor({ musl });
|
|
75
|
+
return path === void 0 ? void 0 : { path, version: SQLITE_VERSION };
|
|
76
|
+
} catch {
|
|
77
|
+
return void 0;
|
|
78
|
+
}
|
|
79
|
+
}, "library"),
|
|
80
|
+
works: /* @__PURE__ */ __name((env, version) => spawnSync(process.execPath, ["--no-warnings", "--input-type=module", "-e", trialScript(version)], {
|
|
81
|
+
env,
|
|
82
|
+
stdio: "ignore",
|
|
83
|
+
timeout: 1e4
|
|
84
|
+
}).status === 0, "works"),
|
|
85
|
+
restart: /* @__PURE__ */ __name((env) => relay(spawn(process.execPath, [...process.execArgv, ...process.argv.slice(1)], { env, stdio: "inherit" })), "restart")
|
|
86
|
+
}), "nodeRuntime");
|
|
87
|
+
var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() => {
|
|
88
|
+
for (const signal of FORWARDED)
|
|
89
|
+
host.on(signal, () => child.kill(signal));
|
|
90
|
+
host.on("SIGINT", () => {
|
|
91
|
+
});
|
|
92
|
+
child.on("error", () => host.exit(1));
|
|
93
|
+
child.on("exit", (code, signal) => {
|
|
94
|
+
if (signal) {
|
|
95
|
+
host.removeAllListeners(signal);
|
|
96
|
+
host.kill(host.pid, signal);
|
|
97
|
+
} else
|
|
98
|
+
host.exit(code ?? 1);
|
|
99
|
+
});
|
|
100
|
+
}), "relay");
|
|
101
|
+
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
|
|
103
|
+
var COMMAND_SERVER_ARGV = ["commands", "--serve"];
|
|
104
|
+
var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
ensureSqlite,
|
|
108
|
+
isCommandServer
|
|
109
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -20,9 +20,11 @@ var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
|
20
20
|
throw new TimeLimitReached();
|
|
21
21
|
return 1;
|
|
22
22
|
}, "beforeTimeLimit");
|
|
23
|
+
var JOURNAL_SIZE_LIMIT = 64 * 1024 * 1024;
|
|
23
24
|
var PRAGMAS = `
|
|
24
25
|
PRAGMA busy_timeout = 5000;
|
|
25
26
|
PRAGMA journal_mode = WAL;
|
|
27
|
+
PRAGMA journal_size_limit = ${JOURNAL_SIZE_LIMIT};
|
|
26
28
|
PRAGMA foreign_keys = ON;
|
|
27
29
|
`;
|
|
28
30
|
var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SIQDO5DN.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2EZFUIL4.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LPGE6ACC.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2EZFUIL4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VYCLOFPC.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2EZFUIL4.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
|
27
27
|
}, "checkedOptions");
|
|
28
28
|
var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
31
31
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
32
32
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
33
33
|
if (images === void 0)
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SCYHDYLI.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2EZFUIL4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-X3WQN3CV.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-PSYENWGS.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VB4OLJHK.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W46O6RJ5.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "store")
|
|
@@ -69,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
69
69
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
70
70
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
71
71
|
|
|
72
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
72
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
73
73
|
var MESSAGE_AT_MOST = 500;
|
|
74
74
|
var CAUSES_AT_MOST = 5;
|
|
75
75
|
var FRAMES_AT_MOST = 15;
|
|
@@ -178,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
178
178
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
179
179
|
}, "redactText");
|
|
180
180
|
|
|
181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
182
182
|
var REDACTED = "[redacted]";
|
|
183
183
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
184
184
|
if (!record)
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UU3OAPGO.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2EZFUIL4.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -55,7 +55,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
|
55
55
|
}, "damagedFile");
|
|
56
56
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
59
59
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
60
60
|
"authorization",
|
|
61
61
|
"cookie",
|