@wirecat/cli-memo 0.131.50 → 0.131.52
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/author.d.ts +6 -3
- package/dist/author.d.ts.map +1 -1
- package/dist/author.js +9 -4
- package/dist/author.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-ZFVBLT2D.js} +9 -9
- package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-UG2YHOT7.js} +6 -6
- package/dist/bundle/{app-server-6EKWAYJI.js → app-server-AQYA4TB6.js} +42 -42
- package/dist/bundle/auto-2AY6K6DI.js +86 -0
- package/dist/bundle/{bun-HUHQD76Z.js → bun-QJUFWKEZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-GWVRHYF4.js} +5 -5
- package/dist/bundle/{chunk-N6IHOYMT.js → chunk-2CBOPOC7.js} +165 -37
- package/dist/bundle/{chunk-6N6BVPVX.js → chunk-2GEV2TXW.js} +4 -4
- package/dist/bundle/{chunk-2OIGV355.js → chunk-3O46NA2H.js} +105 -63
- package/dist/bundle/{chunk-UDJTRFRV.js → chunk-4ISZPK6D.js} +1 -1
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
- package/dist/bundle/{chunk-ZDHNEYKO.js → chunk-55GFDV24.js} +8 -8
- package/dist/bundle/{chunk-NJDGZRF5.js → chunk-5WT6SEXS.js} +30 -14
- package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
- package/dist/bundle/{chunk-LZWXGO3G.js → chunk-65576OCE.js} +2 -2
- package/dist/bundle/{chunk-57LMWEDK.js → chunk-6BVWU2UM.js} +3 -3
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-DVA6MQWK.js → chunk-6GF4TIVM.js} +1 -1
- package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-6PQIXQFD.js} +9 -9
- package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-6ZQK3L35.js} +3 -3
- package/dist/bundle/{chunk-SSPSNSC5.js → chunk-7SVHEGRO.js} +1 -1
- package/dist/bundle/{chunk-PUTGTW6W.js → chunk-A36ASW3I.js} +1 -1
- package/dist/bundle/{chunk-5TWUUDKP.js → chunk-A7DXLOMS.js} +2 -2
- package/dist/bundle/{chunk-UAR6UMFL.js → chunk-AGOUP5AH.js} +5 -5
- package/dist/bundle/{chunk-P2LMXIHL.js → chunk-AU5GAMGM.js} +415 -359
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
- package/dist/bundle/{chunk-ND6D4A6H.js → chunk-EEEZGK2J.js} +3 -3
- package/dist/bundle/{chunk-XZZFHQGM.js → chunk-EKQNL6VJ.js} +25 -23
- package/dist/bundle/{chunk-7ZLOZGIC.js → chunk-EQUPZVV6.js} +6 -6
- package/dist/bundle/{chunk-RKFKRCOH.js → chunk-ERZBEQAY.js} +276 -268
- package/dist/bundle/{chunk-D5KGXYG6.js → chunk-ETYAJPIT.js} +22 -22
- package/dist/bundle/{chunk-PYRHU35W.js → chunk-FWCFEJWD.js} +179 -159
- package/dist/bundle/{chunk-IXXBPSXO.js → chunk-G4Z4WSIG.js} +2 -2
- package/dist/bundle/{chunk-OT23U5LT.js → chunk-G52Y3KOO.js} +2 -2
- package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-G7K4J3NS.js} +4 -4
- package/dist/bundle/{chunk-UJLYVXP6.js → chunk-GJWNHWG7.js} +34 -34
- package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-I4LXP4HQ.js} +4 -4
- package/dist/bundle/{chunk-PEYCLVIO.js → chunk-IALGFO44.js} +2 -2
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-FOM7WE2C.js → chunk-IKG2OPHU.js} +8 -16
- package/dist/bundle/{chunk-HCMXUHHF.js → chunk-KGPD3OCD.js} +180 -67
- package/dist/bundle/{chunk-2MFBZ2UM.js → chunk-LUHMRW3P.js} +9 -6
- package/dist/bundle/{chunk-SLIF5EMS.js → chunk-LX65W7IK.js} +7 -7
- package/dist/bundle/{chunk-DJRBSOWH.js → chunk-M64NVDB4.js} +4 -4
- package/dist/bundle/{chunk-QCPUC3HW.js → chunk-MICF3K6S.js} +13 -13
- package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
- package/dist/bundle/{chunk-PJMGQJAX.js → chunk-N5J6GT7C.js} +7 -7
- package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-NIUWQP7F.js} +32 -30
- package/dist/bundle/{chunk-355PHJYX.js → chunk-NNUP36UQ.js} +1 -1
- package/dist/bundle/{chunk-GV6XJMUW.js → chunk-NOEXRGYH.js} +12 -12
- package/dist/bundle/{chunk-RYMYE5PF.js → chunk-NUQ3N3V3.js} +8 -8
- package/dist/bundle/{chunk-O3KOW7RG.js → chunk-NZKDNBYE.js} +8 -8
- package/dist/bundle/{chunk-AKD62EUH.js → chunk-OIPJYDLZ.js} +2 -2
- package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-OWS67HTV.js} +2 -2
- package/dist/bundle/{chunk-GIDZGGAD.js → chunk-PBM5GH7S.js} +4 -4
- package/dist/bundle/{chunk-EJDV5IIF.js → chunk-PKVXZZTM.js} +58 -1
- package/dist/bundle/{chunk-5JVA43HX.js → chunk-RYY4YRKQ.js} +6 -6
- package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-S7X5ZMQN.js} +3 -3
- package/dist/bundle/{chunk-P2TISY3R.js → chunk-TM6R3Z45.js} +1 -1
- package/dist/bundle/{chunk-4VQPPX47.js → chunk-TQS6ZKC3.js} +487 -406
- package/dist/bundle/{chunk-TSUNLSIN.js → chunk-U4ZD5SYO.js} +2 -2
- package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-U6E3BGHO.js} +11 -11
- package/dist/bundle/{chunk-HXOAPH47.js → chunk-VOWEZBOJ.js} +1 -1
- package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
- package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-X6XIW76O.js} +6 -6
- package/dist/bundle/{chunk-5RVL7GYA.js → chunk-XIHQOSCT.js} +2 -2
- package/dist/bundle/{chunk-XH6K2B5L.js → chunk-ZKXIZD4C.js} +4 -4
- package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-ZVJAZXME.js} +6 -6
- package/dist/bundle/{chunk-3BG5VYMV.js → chunk-ZVR6S4XB.js} +10 -10
- package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-ZYQEWB6P.js} +3 -3
- package/dist/bundle/command-contract-7AADJ3UC.js +32 -0
- package/dist/bundle/{decode-IYWZ3X7X.js → decode-XMIBTI5O.js} +5 -5
- package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
- package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-W7DPDJA5.js} +2 -2
- package/dist/bundle/{embed-EGY2R4FN.js → embed-EP3KKO6Y.js} +6 -6
- package/dist/bundle/{embedder-K2BGPWNX.js → embedder-ENGCALJ7.js} +9 -9
- package/dist/bundle/{entry-NMAZNDNU.js → entry-BGSKREOS.js} +7 -7
- package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
- package/dist/bundle/failure-ZKQVXWAB.js +66 -0
- package/dist/bundle/{first-run-QDCSWX3N.js → first-run-4EBMV2EM.js} +11 -11
- package/dist/bundle/first-screen-2TM3BF2Y.js +30 -0
- package/dist/bundle/{instructions-P72XX4AK.js → instructions-A42XETMK.js} +1 -1
- package/dist/bundle/mcp-5LAWRSJK.js +90 -0
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/memo.js +41 -17
- package/dist/bundle/{node-ZB4RNICS.js → node-IRL66JK2.js} +2 -2
- package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-SOGTH72B.js} +6 -6
- package/dist/bundle/{oauth-FMH3JIPT.js → oauth-RB5W3AC7.js} +7 -7
- package/dist/bundle/{open-PRCTOHHL.js → open-552EJ4JC.js} +5 -5
- package/dist/bundle/{openai-VW4W6SIO.js → openai-ZLOHEEDH.js} +10 -10
- package/dist/bundle/{process-XNN4WG6N.js → process-46SUXGWW.js} +1 -1
- package/dist/bundle/{program-TVT22XUQ.js → program-ZLWKMT65.js} +72 -65
- package/dist/bundle/{prompt-RT55UZGB.js → prompt-2NHJSYKX.js} +5 -5
- package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-2LDM6KHL.js} +4 -4
- package/dist/bundle/{remote-T3P5OWRR.js → remote-DBYHHENF.js} +7 -7
- package/dist/bundle/{rerank-743T3675.js → rerank-N5T2TIIY.js} +7 -7
- package/dist/bundle/{serve-BSKOU4FJ.js → serve-S6B54R2F.js} +9 -9
- package/dist/bundle/server-KZZHFPTZ.js +61 -0
- package/dist/bundle/{server-ECOTCYJ3.js → server-QH6AKPRV.js} +58 -58
- package/dist/bundle/server-WAIPBBM7.js +48 -0
- package/dist/bundle/{state-MDMI3I2Z.js → state-ZXZGIIJW.js} +6 -6
- package/dist/bundle/{store-I3DIZALN.js → store-PNJNDMQ4.js} +13 -13
- package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +48 -0
- package/dist/bundle/update-6HXLLGTQ.js +69 -0
- package/dist/doctor/command.d.ts +30 -0
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +1 -1
- package/dist/doctor/command.js.map +1 -1
- package/dist/failure.js +2 -2
- package/dist/failure.js.map +1 -1
- package/dist/knowledge/relationships-scan.d.ts.map +1 -1
- package/dist/knowledge/relationships-scan.js +4 -3
- package/dist/knowledge/relationships-scan.js.map +1 -1
- package/dist/mcp/catalogue.js +1 -1
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +3 -1
- package/dist/people/command.js.map +1 -1
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +3 -2
- package/dist/run/import.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/cli-memo/SKILL.md +1 -1
- package/skills/cli-memo/topics/proposals.md +2 -2
- package/skills/mail-triage/SKILL.md +1 -1
- package/skills/morning-digest/SKILL.md +1 -1
- package/dist/bundle/auto-C7G3WVRU.js +0 -86
- package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
- package/dist/bundle/failure-FW4NJI7G.js +0 -66
- package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
- package/dist/bundle/mcp-QRZ2HSON.js +0 -90
- package/dist/bundle/server-VMWVYGK7.js +0 -48
- package/dist/bundle/server-ZFHSK6TT.js +0 -61
- package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
- package/dist/bundle/update-ZIZAU5RE.js +0 -69
- /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-DPRGC5YX.js} +0 -0
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4ZW6ZJ2V.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.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G52Y3KOO.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X6XIW76O.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-64JCY7XJ.js";
|
|
14
14
|
import {
|
|
15
15
|
importFrom
|
|
16
16
|
} from "./chunk-Y5E2WNWB.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,14 +112,14 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
118
118
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
119
119
|
`);
|
|
120
120
|
}, "logVersion");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
123
123
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
124
124
|
argv: process.argv,
|
|
125
125
|
env: process.env,
|
|
@@ -173,8 +173,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
173
173
|
if (command.optsWithGlobals().dryRun === true)
|
|
174
174
|
return;
|
|
175
175
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
176
|
-
import("./first-run-
|
|
177
|
-
import("./command-contract-
|
|
176
|
+
import("./first-run-4EBMV2EM.js"),
|
|
177
|
+
import("./command-contract-7AADJ3UC.js")
|
|
178
178
|
]);
|
|
179
179
|
await setupAtStart({
|
|
180
180
|
command: entry.app.command,
|
|
@@ -189,7 +189,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
189
189
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
190
190
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
191
191
|
return false;
|
|
192
|
-
const { readSecret } = await import("./prompt-
|
|
192
|
+
const { readSecret } = await import("./prompt-2NHJSYKX.js");
|
|
193
193
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
194
194
|
input: io.stdin,
|
|
195
195
|
output: io.stderr,
|
|
@@ -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.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-64JCY7XJ.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError,
|
|
26
26
|
visibleControls
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__name,
|
|
@@ -1897,7 +1897,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
1899
|
|
|
1900
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1900
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1901
1901
|
import { homedir, userInfo } from "node:os";
|
|
1902
1902
|
import { join, posix, win32 } from "node:path";
|
|
1903
1903
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1948,7 +1948,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1948
1948
|
}, "homeIsMoved");
|
|
1949
1949
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1950
1950
|
|
|
1951
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1951
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1952
1952
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1953
1953
|
if (signal?.aborted)
|
|
1954
1954
|
return Promise.reject(signal.reason);
|
|
@@ -1976,7 +1976,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
1976
1976
|
});
|
|
1977
1977
|
}, "waitForDrain");
|
|
1978
1978
|
|
|
1979
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1979
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
1980
1980
|
var processStreams = {
|
|
1981
1981
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
1982
1982
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2005,7 +2005,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2005
2005
|
};
|
|
2006
2006
|
}, "captureStreams");
|
|
2007
2007
|
|
|
2008
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2008
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2009
2009
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2010
2010
|
import { styleText } from "node:util";
|
|
2011
2011
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2079,7 +2079,7 @@ var BORDERLESS = {
|
|
|
2079
2079
|
middle: ""
|
|
2080
2080
|
};
|
|
2081
2081
|
|
|
2082
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2082
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2083
2083
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2084
2084
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2085
2085
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2116,7 +2116,7 @@ var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processS
|
|
|
2116
2116
|
};
|
|
2117
2117
|
}, "createRenderer");
|
|
2118
2118
|
|
|
2119
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2119
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2120
2120
|
var DEFAULT_RETRY = {
|
|
2121
2121
|
retries: 1,
|
|
2122
2122
|
baseDelayMs: 250,
|
|
@@ -2128,7 +2128,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2128
2128
|
return Math.round(random() * ceiling);
|
|
2129
2129
|
}, "backoffMs");
|
|
2130
2130
|
|
|
2131
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2131
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2132
2132
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2133
2133
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2134
2134
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2193,7 +2193,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2193
2193
|
return project(value, fields);
|
|
2194
2194
|
}, "projectFields");
|
|
2195
2195
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2196
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2197
2197
|
var BATCH_LIMITS = Object.freeze({
|
|
2198
2198
|
requests: 32,
|
|
2199
2199
|
input_bytes: 262144,
|
|
@@ -2340,7 +2340,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2340
2340
|
};
|
|
2341
2341
|
}, "runBatch");
|
|
2342
2342
|
|
|
2343
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2343
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2344
2344
|
import { randomBytes } from "node:crypto";
|
|
2345
2345
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2346
2346
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2384,16 +2384,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2384
2384
|
`, 384);
|
|
2385
2385
|
}, "saveConfigFile");
|
|
2386
2386
|
|
|
2387
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2387
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2388
2388
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2389
2389
|
var baseConstantsSchema = object({});
|
|
2390
2390
|
var LayerSchema = record(string(), unknown());
|
|
2391
2391
|
|
|
2392
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2392
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2393
2393
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2394
2394
|
import { join as join3, resolve } from "node:path";
|
|
2395
2395
|
|
|
2396
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2396
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2397
2397
|
import { createRequire } from "node:module";
|
|
2398
2398
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2399
2399
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2413,7 +2413,7 @@ var systemKeyring = {
|
|
|
2413
2413
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2414
2414
|
};
|
|
2415
2415
|
|
|
2416
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2416
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2417
2417
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2418
2418
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2419
2419
|
var Credentials = class {
|
|
@@ -2548,7 +2548,7 @@ var Credentials = class {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
};
|
|
2550
2550
|
|
|
2551
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2551
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2552
2552
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2553
2553
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2554
2554
|
if (signal?.aborted) {
|
|
@@ -2562,7 +2562,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2562
2562
|
}, { once: true });
|
|
2563
2563
|
}), "realSleep");
|
|
2564
2564
|
|
|
2565
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2565
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
2566
2566
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2567
2567
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2568
2568
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2646,10 +2646,10 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2646
2646
|
};
|
|
2647
2647
|
}, "createDeadline");
|
|
2648
2648
|
|
|
2649
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2649
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2650
2650
|
import { appendFileSync } from "node:fs";
|
|
2651
2651
|
|
|
2652
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2652
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2653
2653
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2654
2654
|
var logRecordSchema = strictObject({
|
|
2655
2655
|
time: isoTime,
|
|
@@ -2727,7 +2727,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2727
2727
|
return traceId;
|
|
2728
2728
|
}, "traceIdOf");
|
|
2729
2729
|
|
|
2730
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2730
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2731
2731
|
var REDACTED_FIELDS = [
|
|
2732
2732
|
"authorization",
|
|
2733
2733
|
"Authorization",
|
|
@@ -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-A36ASW3I.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4ZW6ZJ2V.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.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/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.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/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-GWVRHYF4.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-SOGTH72B.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VOWEZBOJ.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IALGFO44.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-S6B54R2F.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-65576OCE.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WLKDS65F.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -3,32 +3,32 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2GEV2TXW.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZYQEWB6P.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_TRANSCRIBE_MODEL,
|
|
12
12
|
VAD,
|
|
13
13
|
filesPresent,
|
|
14
14
|
modelsDirectory,
|
|
15
15
|
vadPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G7K4J3NS.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_RETRY,
|
|
19
19
|
backoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WLKDS65F.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
29
29
|
import { setTimeout as wait } from "node:timers/promises";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
32
32
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
33
33
|
if (!header)
|
|
34
34
|
return void 0;
|
|
@@ -52,7 +52,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
52
52
|
}, "parseRateLimitReset");
|
|
53
53
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
56
56
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
57
57
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
58
58
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -73,7 +73,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
73
73
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
74
74
|
}, "encodeWav");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
77
77
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
78
78
|
var JOINED_SECONDS = 0.2;
|
|
79
79
|
var PAD_SECONDS = 0.2;
|
|
@@ -195,7 +195,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
195
195
|
return pieces;
|
|
196
196
|
}, "piecesOf");
|
|
197
197
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
198
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
198
|
+
const { openSpeechCutter } = await import("./recognize-2LDM6KHL.js");
|
|
199
199
|
return openSpeechCutter(vadModel);
|
|
200
200
|
}, "openCutter");
|
|
201
201
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RYY4YRKQ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4ZW6ZJ2V.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.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-PBM5GH7S.js";
|
|
10
|
+
import "./chunk-FWCFEJWD.js";
|
|
11
|
+
import "./chunk-IKG2OPHU.js";
|
|
12
|
+
import "./chunk-M64NVDB4.js";
|
|
13
|
+
import "./chunk-G52Y3KOO.js";
|
|
14
|
+
import "./chunk-6GF4TIVM.js";
|
|
15
|
+
import "./chunk-KGPD3OCD.js";
|
|
16
|
+
import "./chunk-PKVXZZTM.js";
|
|
17
|
+
import "./chunk-ZVJAZXME.js";
|
|
18
|
+
import "./chunk-G7K4J3NS.js";
|
|
19
|
+
import "./chunk-65576OCE.js";
|
|
20
|
+
import "./chunk-SW6C6WH5.js";
|
|
21
|
+
import "./chunk-WLKDS65F.js";
|
|
22
|
+
import "./chunk-64JCY7XJ.js";
|
|
23
|
+
import "./chunk-Y5E2WNWB.js";
|
|
24
|
+
import "./chunk-4ZW6ZJ2V.js";
|
|
25
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
26
|
+
export {
|
|
27
|
+
SCHEMA_DIALECT,
|
|
28
|
+
commandContract,
|
|
29
|
+
commandPathOf,
|
|
30
|
+
findCommand,
|
|
31
|
+
outputOf
|
|
32
|
+
};
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
decodeChannels,
|
|
7
7
|
formatOf,
|
|
8
8
|
runFfmpeg
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6BVWU2UM.js";
|
|
10
|
+
import "./chunk-2GEV2TXW.js";
|
|
11
|
+
import "./chunk-WLKDS65F.js";
|
|
12
|
+
import "./chunk-64JCY7XJ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-4ZW6ZJ2V.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
LONGEST_AUDIO_SECONDS,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
BUILT_IN_COMMANDS,
|
|
8
8
|
DESCRIBE_FLAG,
|
|
9
|
+
DESCRIBE_MAX_BYTES,
|
|
9
10
|
FIRST_PARTY_TOOLS,
|
|
10
11
|
PROGRAM_PREFIX,
|
|
11
12
|
TOOL_NAME,
|
|
@@ -13,22 +14,22 @@ import {
|
|
|
13
14
|
parseDescribe,
|
|
14
15
|
shimFiles,
|
|
15
16
|
writeShim
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EBDX6DNB.js";
|
|
17
18
|
import "./chunk-Y5E2WNWB.js";
|
|
18
19
|
import {
|
|
19
20
|
CliError
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4ZW6ZJ2V.js";
|
|
21
22
|
import {
|
|
22
23
|
__name,
|
|
23
24
|
__toESM
|
|
24
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
26
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
27
28
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
28
29
|
import { randomUUID } from "node:crypto";
|
|
29
30
|
import { constants } from "node:os";
|
|
30
31
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
32
33
|
import { readdirSync, statSync } from "node:fs";
|
|
33
34
|
import { join } from "node:path";
|
|
34
35
|
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
@@ -100,10 +101,9 @@ var findTools = /* @__PURE__ */ __name((search) => {
|
|
|
100
101
|
}, "findTools");
|
|
101
102
|
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
102
103
|
|
|
103
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
104
105
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
105
106
|
import { readFileSync } from "node:fs";
|
|
106
|
-
var MAX_ANSWER_BYTES = 64 * 1024;
|
|
107
107
|
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
108
108
|
let child;
|
|
109
109
|
try {
|
|
@@ -131,7 +131,7 @@ var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Pro
|
|
|
131
131
|
const timer = setTimeout(giveUp, timeoutMs);
|
|
132
132
|
child.stdout?.on("data", (chunk) => {
|
|
133
133
|
size += chunk.length;
|
|
134
|
-
if (size >
|
|
134
|
+
if (size > DESCRIBE_MAX_BYTES)
|
|
135
135
|
giveUp();
|
|
136
136
|
else
|
|
137
137
|
chunks.push(chunk);
|
|
@@ -149,7 +149,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
|
|
|
149
149
|
}
|
|
150
150
|
}, "baseVersion");
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
153
153
|
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
154
154
|
import { basename, dirname } from "node:path";
|
|
155
155
|
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
@@ -241,7 +241,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
|
|
|
241
241
|
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
242
242
|
}), "removeShortcuts");
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
245
245
|
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
246
246
|
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
247
247
|
const installed = installedPrograms(context);
|
|
@@ -338,7 +338,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
|
|
|
338
338
|
});
|
|
339
339
|
}), "runTool");
|
|
340
340
|
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
341
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-
|
|
341
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-GQHAQVGH.js");
|
|
342
342
|
const object = errorObjectOf(error);
|
|
343
343
|
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
344
344
|
`);
|