@wirecat/drive-cli 0.53.0 → 0.54.0
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/drive.js +2 -2
- package/dist/bundle/{all-profiles-WRN35CUF.js → all-profiles-LFIPUPZI.js} +9 -9
- package/dist/bundle/{anthropic-DZASXWG3.js → anthropic-G5ZRRWG4.js} +5 -5
- package/dist/bundle/{app-server-4VHT7QZN.js → app-server-UVWATOQC.js} +46 -46
- package/dist/bundle/{bun-7SYKSCLA.js → bun-DNEFTPTR.js} +2 -2
- package/dist/bundle/{bun-sqlite-2GOM5PM3.js → bun-sqlite-FWBYHIXB.js} +4 -4
- package/dist/bundle/{chunk-PC4UA6UN.js → chunk-2CQT2WWN.js} +5 -5
- package/dist/bundle/{chunk-DZMK255Y.js → chunk-2D6AAGBP.js} +41 -31
- package/dist/bundle/{chunk-FG4XXZZE.js → chunk-2FFXRWI2.js} +2 -2
- package/dist/bundle/{chunk-MK3N7WX7.js → chunk-2HQPJ366.js} +3 -3
- package/dist/bundle/{chunk-54BYJQ77.js → chunk-2HWOGSTA.js} +25 -25
- package/dist/bundle/{chunk-7XKAVMCF.js → chunk-2MSJVFAS.js} +8 -8
- package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-2NWFZ43Q.js} +1 -1
- package/dist/bundle/{chunk-6XYGTRMQ.js → chunk-2Q3S47BC.js} +523 -268
- package/dist/bundle/{chunk-KPBCGUJC.js → chunk-47MEPBWG.js} +21 -21
- package/dist/bundle/{chunk-3RYX7IB6.js → chunk-4RDXCE45.js} +39 -38
- package/dist/bundle/{chunk-7IUMHMTP.js → chunk-5BPOAHVD.js} +2 -2
- package/dist/bundle/{chunk-VZ2I62HN.js → chunk-5LNOVPOR.js} +2 -2
- package/dist/bundle/{chunk-EKFEY3KP.js → chunk-5WQN2TUM.js} +1 -1
- package/dist/bundle/{chunk-ALJWBGD5.js → chunk-6MGSFYGL.js} +1 -1
- package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-6RAEXK7Y.js} +26 -26
- package/dist/bundle/{chunk-RNIHKIQP.js → chunk-6SOQJRGI.js} +4 -4
- package/dist/bundle/{chunk-CKBHR7QO.js → chunk-75DSLCPC.js} +1 -1
- package/dist/bundle/{chunk-YLKQSVLI.js → chunk-76JIVDKC.js} +2 -2
- package/dist/bundle/{chunk-LSGAJYVN.js → chunk-7WCZ2OZ5.js} +6 -6
- package/dist/bundle/{chunk-OQMK6WXQ.js → chunk-7XU3TR7K.js} +2 -2
- package/dist/bundle/{chunk-7SH4JHYW.js → chunk-A4FTLORC.js} +12 -12
- package/dist/bundle/{chunk-CITFEQ6S.js → chunk-AACQA2CO.js} +1 -1
- package/dist/bundle/{chunk-PSNHPFSK.js → chunk-AAHIBA36.js} +1 -1
- package/dist/bundle/{chunk-GPJEYW2J.js → chunk-BWBVBW5T.js} +8 -8
- package/dist/bundle/{chunk-HM352LJR.js → chunk-CVALO727.js} +24 -24
- package/dist/bundle/{chunk-E6XDFMRZ.js → chunk-FHW4ENRF.js} +32 -32
- package/dist/bundle/{chunk-2HHOMN2G.js → chunk-HAHARAJD.js} +23 -23
- package/dist/bundle/{chunk-SQHPJBNO.js → chunk-IBRXVPBI.js} +95 -95
- package/dist/bundle/{chunk-YQOVVCIA.js → chunk-IKODUUQG.js} +17 -16
- package/dist/bundle/{chunk-IJFZKQC4.js → chunk-IOMSC4ZG.js} +3 -3
- package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-JKEAZBEZ.js} +7 -7
- package/dist/bundle/{chunk-VTWADVEQ.js → chunk-KIQIF5M7.js} +2 -2
- package/dist/bundle/{chunk-IAQ4L6SM.js → chunk-KT5G3KVS.js} +3 -3
- package/dist/bundle/{chunk-BEL4XZ3M.js → chunk-L3RV42O3.js} +16 -16
- package/dist/bundle/{chunk-NHBUTCNR.js → chunk-LQXLWHKM.js} +9 -9
- package/dist/bundle/{chunk-PR3DA7KA.js → chunk-MATUQFYL.js} +11 -11
- package/dist/bundle/{chunk-F3KHUJEE.js → chunk-MULPNGM2.js} +10 -10
- package/dist/bundle/{chunk-FJW3DDCF.js → chunk-N4OO3SPQ.js} +5 -5
- package/dist/bundle/{chunk-6DHQTUB2.js → chunk-NDWWGBSM.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-NHDSJMAR.js} +1 -1
- package/dist/bundle/{chunk-CNKILAWA.js → chunk-O6YYFVDD.js} +30 -23
- package/dist/bundle/{chunk-FXWBUTR7.js → chunk-OYGEBFFO.js} +7 -7
- package/dist/bundle/{chunk-DOZOLBXE.js → chunk-P7E7K467.js} +3 -3
- package/dist/bundle/{chunk-GE4DP24O.js → chunk-PKNTBZXN.js} +51 -51
- package/dist/bundle/{chunk-PIMMF67N.js → chunk-PU4GANCD.js} +2 -2
- package/dist/bundle/{chunk-UFWK3L5Z.js → chunk-Q46JLJ5O.js} +6 -6
- package/dist/bundle/{chunk-R276546S.js → chunk-QKHFQHE7.js} +1 -1
- package/dist/bundle/{chunk-6BNALDGA.js → chunk-QUJCD5U7.js} +4 -4
- package/dist/bundle/{chunk-CL4GVCXS.js → chunk-RIYXQFKU.js} +46 -46
- package/dist/bundle/{chunk-DT2YCB2V.js → chunk-RWEFKLXJ.js} +24 -22
- package/dist/bundle/{chunk-R4TE4ZSD.js → chunk-SBOTSSYV.js} +342 -296
- package/dist/bundle/{chunk-SIWBUGBU.js → chunk-U3BOQ63L.js} +8 -8
- package/dist/bundle/{chunk-QXYGK6G5.js → chunk-UBJX5D2O.js} +2 -2
- package/dist/bundle/{chunk-WJRJBQIM.js → chunk-VCGQMTHW.js} +549 -288
- package/dist/bundle/{chunk-ZG6X24ON.js → chunk-VKYCMXEQ.js} +5 -5
- package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-VX4RAT3A.js} +1 -1
- package/dist/bundle/{chunk-2PVDFLJJ.js → chunk-W5SYBHRX.js} +2 -2
- package/dist/bundle/{chunk-KXMJE3XC.js → chunk-WGSTTWM5.js} +6 -6
- package/dist/bundle/{chunk-T334CFU4.js → chunk-WJRE45Z6.js} +4 -4
- package/dist/bundle/{chunk-TZLO3ZZF.js → chunk-WQPTZHHR.js} +17 -26
- package/dist/bundle/{chunk-JEOYFKUK.js → chunk-WSX5UQNT.js} +2 -2
- package/dist/bundle/{chunk-LJAX6YCF.js → chunk-WYDYSQ7T.js} +2 -2
- package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-XCUUYQN7.js} +4 -4
- package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-YOHOQ6ZR.js} +4 -4
- package/dist/bundle/{chunk-SVTYS36O.js → chunk-YZ5VMR2S.js} +3 -3
- package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ZMMOVTUB.js} +2 -2
- package/dist/bundle/command-contract-VZ3ZJLEF.js +35 -0
- package/dist/bundle/{decode-WAPM2VBH.js → decode-DN2DDFET.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-GXY34GHA.js → echarts-VMHZ2UYP.js} +2 -2
- package/dist/bundle/{embed-HW3N3KNP.js → embed-MDN7R7BA.js} +5 -5
- package/dist/bundle/{embedder-7WNFXYYP.js → embedder-KEVEDNDJ.js} +8 -8
- package/dist/bundle/{entry-J7YIRDPD.js → entry-HTNK5TJQ.js} +6 -6
- package/dist/bundle/{first-run-53CL2IYH.js → first-run-QNMCMP67.js} +9 -9
- package/dist/bundle/first-screen-RQBEHUQC.js +33 -0
- package/dist/bundle/{google-5NNVARNR.js → google-QAKMV57Q.js} +9 -9
- package/dist/bundle/{google-api-EQQH53QD.js → google-api-UJJS7ECO.js} +51 -51
- package/dist/bundle/grants-VMPKFEC2.js +98 -0
- package/dist/bundle/{identity-LBTXDMTA.js → identity-UODE3QAL.js} +4 -4
- package/dist/bundle/{instructions-K5BEQM4C.js → instructions-IWLHCDC7.js} +1 -1
- package/dist/bundle/{login-Y6ENYKC3.js → login-GIZXEN7I.js} +58 -60
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-RUYPQVYS.js} +2 -2
- package/dist/bundle/{node-ZYWB7IET.js → node-25IJLDBZ.js} +2 -2
- package/dist/bundle/{node-sqlite-FSQIKGED.js → node-sqlite-DYR4FEI4.js} +4 -4
- package/dist/bundle/{oauth-HF5USWXY.js → oauth-FLHXEDDY.js} +6 -6
- package/dist/bundle/{open-NHGJENCX.js → open-FWDZB7KX.js} +3 -3
- package/dist/bundle/{openai-3JCJYKNX.js → openai-HB7UGKPW.js} +13 -13
- package/dist/bundle/{process-ZXO2MWRJ.js → process-P6TW37HQ.js} +1 -1
- package/dist/bundle/{program-QAJ66K3Z.js → program-DVUNLXXS.js} +73 -73
- package/dist/bundle/{prompt-LQJBCCUF.js → prompt-MKWMYO3B.js} +4 -4
- package/dist/bundle/{reasons-J57GSRWN.js → reasons-25BEO2NE.js} +3 -3
- package/dist/bundle/{recognize-QM3LN4ZF.js → recognize-VXGNPROM.js} +3 -3
- package/dist/bundle/{remote-WREGEZJQ.js → remote-H5ZWLJHR.js} +6 -6
- package/dist/bundle/{rerank-YFUB6J6M.js → rerank-5A3JDK7O.js} +6 -6
- package/dist/bundle/{serve-7NFEZ564.js → serve-QNPNEZVR.js} +8 -8
- package/dist/bundle/{server-KBCFZ2AU.js → server-GWBVIRLY.js} +38 -38
- package/dist/bundle/server-QJU3HEGM.js +63 -0
- package/dist/bundle/{services-C3XWRA2W.js → services-PFXEWHJG.js} +29 -25
- package/dist/bundle/{sqlite-runtime-H3TSAMIN.js → sqlite-runtime-RGFISYXM.js} +4 -4
- package/dist/bundle/{state-S2Q53L6L.js → state-BUSX5BXF.js} +5 -5
- package/dist/bundle/{store-I27LAJPU.js → store-FIEE5HHG.js} +14 -14
- package/dist/bundle/{store-H345VQHP.js → store-HFF5KQ44.js} +12 -12
- package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +52 -0
- package/dist/bundle/tokens-B6MUZRFM.js +96 -0
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -4
- package/dist/login.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +0 -9
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-D4UG3D33.js +0 -35
- package/dist/bundle/first-screen-2KT7HM2K.js +0 -33
- package/dist/bundle/grants-4NETZ4MR.js +0 -98
- package/dist/bundle/server-UYVL2CFI.js +0 -63
- package/dist/bundle/store-maintenance-command-3XA73XMC.js +0 -52
- package/dist/bundle/tokens-7MUGKFEM.js +0 -96
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-HEA3XVAJ.js} +0 -0
package/dist/bin/drive.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.54.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -29,7 +29,7 @@ if (
|
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
31
|
const running = import("../bundle/drive.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-
|
|
32
|
+
const chunks = ["../bundle/all-profiles-LFIPUPZI.js","../bundle/anthropic-G5ZRRWG4.js","../bundle/app-server-UVWATOQC.js","../bundle/bun-DNEFTPTR.js","../bundle/bun-sqlite-FWBYHIXB.js","../bundle/command-contract-VZ3ZJLEF.js","../bundle/decode-DN2DDFET.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-VMHZ2UYP.js","../bundle/embed-MDN7R7BA.js","../bundle/embedder-KEVEDNDJ.js","../bundle/entry-HTNK5TJQ.js","../bundle/first-run-QNMCMP67.js","../bundle/first-screen-RQBEHUQC.js","../bundle/google-QAKMV57Q.js","../bundle/google-api-UJJS7ECO.js","../bundle/grants-VMPKFEC2.js","../bundle/identity-UODE3QAL.js","../bundle/instructions-IWLHCDC7.js","../bundle/login-GIZXEN7I.js","../bundle/mcp-RUYPQVYS.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-25IJLDBZ.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-DYR4FEI4.js","../bundle/oauth-FLHXEDDY.js","../bundle/open-FWDZB7KX.js","../bundle/openai-HB7UGKPW.js","../bundle/process-P6TW37HQ.js","../bundle/program-DVUNLXXS.js","../bundle/prompt-MKWMYO3B.js","../bundle/reasons-25BEO2NE.js","../bundle/recognize-VXGNPROM.js","../bundle/remote-H5ZWLJHR.js","../bundle/rerank-5A3JDK7O.js","../bundle/serve-QNPNEZVR.js","../bundle/server-GWBVIRLY.js","../bundle/server-QJU3HEGM.js","../bundle/services-PFXEWHJG.js","../bundle/sqlite-runtime-RGFISYXM.js","../bundle/state-BUSX5BXF.js","../bundle/store-FIEE5HHG.js","../bundle/store-HFF5KQ44.js","../bundle/store-maintenance-command-Z4SPEQUM.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-B6MUZRFM.js"]
|
|
33
33
|
// After the server answers its first request, so it starts no later.
|
|
34
34
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
35
|
await running
|
|
@@ -2,28 +2,28 @@ 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-AACQA2CO.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KIQIF5M7.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-BWBVBW5T.js";
|
|
17
|
+
import "./chunk-76JIVDKC.js";
|
|
18
|
+
import "./chunk-HEA3XVAJ.js";
|
|
19
|
+
import "./chunk-2D6AAGBP.js";
|
|
20
|
+
import "./chunk-JKEAZBEZ.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import { randomUUID } from "node:crypto";
|
|
29
29
|
var PROTOCOL = "2025-06-18";
|
|
@@ -257,7 +257,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
257
257
|
}, "serveAllProfilesOverStdio");
|
|
258
258
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
259
259
|
const { build, close } = allProfilesServer(options);
|
|
260
|
-
const { serveOverHttp } = await import("./serve-
|
|
260
|
+
const { serveOverHttp } = await import("./serve-QNPNEZVR.js");
|
|
261
261
|
const listening = await serveOverHttp(build, {
|
|
262
262
|
...http,
|
|
263
263
|
appName: options.command,
|
|
@@ -2,27 +2,27 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkedOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WYDYSQ7T.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LNOVPOR.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
12
|
} from "./chunk-ADLS6FVG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2D6AAGBP.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
optional,
|
|
17
17
|
strictObject,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
26
26
|
var options = strictObject({
|
|
27
27
|
stop_sequences: optional(array(string()))
|
|
28
28
|
});
|
|
@@ -3,46 +3,46 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FHW4ENRF.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CVALO727.js";
|
|
10
10
|
import {
|
|
11
11
|
answeredWire
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AACQA2CO.js";
|
|
13
13
|
import {
|
|
14
14
|
answered,
|
|
15
15
|
failed,
|
|
16
16
|
registerCommands,
|
|
17
17
|
runCommandForAgent,
|
|
18
18
|
toolsFromCommands
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O6YYFVDD.js";
|
|
20
20
|
import {
|
|
21
21
|
agentJson,
|
|
22
22
|
skillResource
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IKODUUQG.js";
|
|
24
24
|
import {
|
|
25
25
|
StdioServerTransport,
|
|
26
26
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KIQIF5M7.js";
|
|
28
28
|
import {
|
|
29
29
|
appInstructions
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VX4RAT3A.js";
|
|
31
31
|
import {
|
|
32
32
|
McpServer
|
|
33
33
|
} from "./chunk-5D4AEUVA.js";
|
|
34
34
|
import {
|
|
35
35
|
mcpHttpMarker
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-QUJCD5U7.js";
|
|
37
|
+
import "./chunk-2HWOGSTA.js";
|
|
38
|
+
import "./chunk-RWEFKLXJ.js";
|
|
39
|
+
import "./chunk-KT5G3KVS.js";
|
|
40
|
+
import "./chunk-2Q3S47BC.js";
|
|
41
|
+
import "./chunk-A4FTLORC.js";
|
|
42
|
+
import "./chunk-6RAEXK7Y.js";
|
|
43
|
+
import "./chunk-L3RV42O3.js";
|
|
44
|
+
import "./chunk-Q46JLJ5O.js";
|
|
45
|
+
import "./chunk-IBRXVPBI.js";
|
|
46
46
|
import {
|
|
47
47
|
DEFAULT_OUTPUT_BYTES,
|
|
48
48
|
changesAuthorityAt,
|
|
@@ -51,46 +51,46 @@ import {
|
|
|
51
51
|
fetchesOnlyAt,
|
|
52
52
|
judgedTargets,
|
|
53
53
|
rootOf2 as rootOf
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-4RDXCE45.js";
|
|
55
|
+
import "./chunk-BWBVBW5T.js";
|
|
56
|
+
import "./chunk-2NWFZ43Q.js";
|
|
57
|
+
import "./chunk-HAHARAJD.js";
|
|
58
|
+
import "./chunk-76JIVDKC.js";
|
|
59
|
+
import "./chunk-YOHOQ6ZR.js";
|
|
60
|
+
import "./chunk-VKYCMXEQ.js";
|
|
61
|
+
import "./chunk-NHDSJMAR.js";
|
|
62
|
+
import "./chunk-WJRE45Z6.js";
|
|
63
63
|
import {
|
|
64
64
|
readOnlyLockOf
|
|
65
|
-
} from "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
65
|
+
} from "./chunk-ZMMOVTUB.js";
|
|
66
|
+
import "./chunk-5BPOAHVD.js";
|
|
67
|
+
import "./chunk-5LNOVPOR.js";
|
|
68
|
+
import "./chunk-2HQPJ366.js";
|
|
69
|
+
import "./chunk-2CQT2WWN.js";
|
|
70
70
|
import "./chunk-5DPV7X27.js";
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-6SOQJRGI.js";
|
|
72
|
+
import "./chunk-SBOTSSYV.js";
|
|
73
|
+
import "./chunk-WSX5UQNT.js";
|
|
74
|
+
import "./chunk-PKNTBZXN.js";
|
|
75
|
+
import "./chunk-LQXLWHKM.js";
|
|
76
|
+
import "./chunk-HEA3XVAJ.js";
|
|
77
|
+
import "./chunk-2MSJVFAS.js";
|
|
78
|
+
import "./chunk-WGSTTWM5.js";
|
|
79
|
+
import "./chunk-UBJX5D2O.js";
|
|
80
|
+
import "./chunk-7WCZ2OZ5.js";
|
|
81
81
|
import {
|
|
82
82
|
mcpErrorResult
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-2D6AAGBP.js";
|
|
84
84
|
import {
|
|
85
85
|
CliError
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
87
87
|
import "./chunk-Y5E2WNWB.js";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-6MGSFYGL.js";
|
|
89
89
|
import {
|
|
90
90
|
__name
|
|
91
91
|
} from "./chunk-ZVVMGPBJ.js";
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
94
94
|
var EXCLUDED = [["mcp"]];
|
|
95
95
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
96
96
|
const { app } = options;
|
|
@@ -205,7 +205,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
205
205
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
206
206
|
const { app } = options;
|
|
207
207
|
const { build } = createAppServer(command, context, options);
|
|
208
|
-
const { serveOverHttp } = await import("./serve-
|
|
208
|
+
const { serveOverHttp } = await import("./serve-QNPNEZVR.js");
|
|
209
209
|
const listening = await serveOverHttp(build, {
|
|
210
210
|
...http,
|
|
211
211
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6MGSFYGL.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,9 +3,9 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2FFXRWI2.js";
|
|
7
|
+
import "./chunk-2D6AAGBP.js";
|
|
8
|
+
import "./chunk-JKEAZBEZ.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
17
17
|
var customised = false;
|
|
18
18
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
19
19
|
try {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
installFiles,
|
|
9
9
|
megabytes,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6SOQJRGI.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -19,12 +19,12 @@ 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.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
23
23
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
24
24
|
import { availableParallelism } from "node:os";
|
|
25
25
|
import { basename, join as join2 } from "node:path";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
30
30
|
import { join } from "node:path";
|
|
@@ -207,7 +207,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
207
207
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
208
208
|
}, "openSession");
|
|
209
209
|
|
|
210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
211
211
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
212
212
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
213
213
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
safeParse,
|
|
15
15
|
stepOf,
|
|
16
16
|
writes
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__name,
|
|
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
|
|
1890
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1890
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
1891
1891
|
var EXIT_CODES = {
|
|
1892
1892
|
validation_error: 2,
|
|
1893
1893
|
configuration_error: 3,
|
|
@@ -1907,7 +1907,7 @@ var EXIT_CODES = {
|
|
|
1907
1907
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
1908
1908
|
var GENERIC_FAILURE = 1;
|
|
1909
1909
|
|
|
1910
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1910
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
1911
1911
|
var CONTROL = (
|
|
1912
1912
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
1913
1913
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -1931,7 +1931,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
|
|
|
1931
1931
|
}, "visibleControls");
|
|
1932
1932
|
var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
|
|
1933
1933
|
|
|
1934
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1934
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1935
1935
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1936
1936
|
if (isCliError(failure))
|
|
1937
1937
|
return failure;
|
|
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}, "catchCrashes");
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2081
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2082
2082
|
import { createRequire } from "node:module";
|
|
2083
2083
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2084
2084
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2098,7 +2098,7 @@ var systemKeyring = {
|
|
|
2098
2098
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2099
2099
|
};
|
|
2100
2100
|
|
|
2101
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2101
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2102
2102
|
import { homedir, userInfo } from "node:os";
|
|
2103
2103
|
import { join, posix, win32 } from "node:path";
|
|
2104
2104
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -2150,11 +2150,11 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2150
2150
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2151
2151
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
2152
2152
|
|
|
2153
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2153
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2154
2154
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2155
2155
|
import { join as join3, resolve } from "node:path";
|
|
2156
2156
|
|
|
2157
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2157
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2158
2158
|
import { randomBytes } from "node:crypto";
|
|
2159
2159
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2160
2160
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2198,9 +2198,10 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2198
2198
|
`, 384);
|
|
2199
2199
|
}, "saveConfigFile");
|
|
2200
2200
|
|
|
2201
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2201
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2202
2202
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2203
2203
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2204
|
+
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2204
2205
|
var Credentials = class {
|
|
2205
2206
|
static {
|
|
2206
2207
|
__name(this, "Credentials");
|
|
@@ -2215,7 +2216,6 @@ var Credentials = class {
|
|
|
2215
2216
|
#warn;
|
|
2216
2217
|
/** Set only for a moved run with the system keyring. */
|
|
2217
2218
|
#temporaryService;
|
|
2218
|
-
#warned = false;
|
|
2219
2219
|
constructor(options) {
|
|
2220
2220
|
this.#configDir = options.configDir;
|
|
2221
2221
|
this.#storage = options.storage ?? "auto";
|
|
@@ -2233,23 +2233,29 @@ var Credentials = class {
|
|
|
2233
2233
|
const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
|
|
2234
2234
|
if (fromEnv)
|
|
2235
2235
|
return { secret: fromEnv, source: "environment" };
|
|
2236
|
+
const fromFile = this.#storage === "keyring" ? void 0 : this.#readFile()?.[account]?.secret;
|
|
2237
|
+
if (fromFile)
|
|
2238
|
+
return { secret: fromFile, source: "file" };
|
|
2236
2239
|
if (this.#storage !== "file") {
|
|
2237
2240
|
const temporary = this.#temporaryService;
|
|
2238
2241
|
const fromKeyring = this.#tryKeyring(() => temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account));
|
|
2239
2242
|
if (fromKeyring)
|
|
2240
2243
|
return { secret: fromKeyring, source: "keyring" };
|
|
2241
2244
|
}
|
|
2242
|
-
|
|
2243
|
-
return secret ? { secret, source: "file" } : void 0;
|
|
2245
|
+
return void 0;
|
|
2244
2246
|
}
|
|
2245
|
-
write(account, secret) {
|
|
2246
|
-
|
|
2247
|
+
write(account, secret, options = {}) {
|
|
2248
|
+
const inFile = this.#storage === "auto" && this.#readFile()?.[account] !== void 0;
|
|
2249
|
+
if (this.#storage === "keyring" || this.#storage === "auto" && (options.signIn || !inFile)) {
|
|
2247
2250
|
const stored = this.#tryKeyring(() => {
|
|
2248
2251
|
this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
|
|
2249
2252
|
return true;
|
|
2250
2253
|
});
|
|
2251
|
-
if (stored)
|
|
2254
|
+
if (stored) {
|
|
2255
|
+
if (inFile)
|
|
2256
|
+
this.#removeFromFile(account);
|
|
2252
2257
|
return "keyring";
|
|
2258
|
+
}
|
|
2253
2259
|
}
|
|
2254
2260
|
const store = this.#readFile();
|
|
2255
2261
|
if (!store) {
|
|
@@ -2269,14 +2275,18 @@ var Credentials = class {
|
|
|
2269
2275
|
this.#warn(removed.includes("keyring") ? `removed this run's own sign-in of ${account} from the OS keyring and kept the owner's: a run with moved folders never removes it` : `kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
|
|
2270
2276
|
}
|
|
2271
2277
|
}
|
|
2272
|
-
|
|
2273
|
-
if (store?.[account] !== void 0) {
|
|
2274
|
-
delete store[account];
|
|
2275
|
-
this.#writeFile(store);
|
|
2278
|
+
if (this.#storage !== "keyring" && this.#removeFromFile(account))
|
|
2276
2279
|
removed.push("file");
|
|
2277
|
-
}
|
|
2278
2280
|
return removed;
|
|
2279
2281
|
}
|
|
2282
|
+
#removeFromFile(account) {
|
|
2283
|
+
const store = this.#readFile();
|
|
2284
|
+
if (store?.[account] === void 0)
|
|
2285
|
+
return false;
|
|
2286
|
+
delete store[account];
|
|
2287
|
+
this.#writeFile(store);
|
|
2288
|
+
return true;
|
|
2289
|
+
}
|
|
2280
2290
|
/** Only for the warning: a keyring that fails here must not fail a removal that already happened. */
|
|
2281
2291
|
#ownersEntryExists(account) {
|
|
2282
2292
|
try {
|
|
@@ -2315,8 +2325,8 @@ var Credentials = class {
|
|
|
2315
2325
|
try {
|
|
2316
2326
|
return operation();
|
|
2317
2327
|
} catch (error) {
|
|
2318
|
-
if (!this.#
|
|
2319
|
-
this.#
|
|
2328
|
+
if (!warnedRuns.has(this.#env)) {
|
|
2329
|
+
warnedRuns.add(this.#env);
|
|
2320
2330
|
this.#warn(`could not reach the OS keyring \u2014 it may be locked, or no keyring service is running (${error instanceof Error ? error.message : String(error)}); using ${this.#path()} instead, readable only by you`);
|
|
2321
2331
|
}
|
|
2322
2332
|
return void 0;
|
|
@@ -2324,7 +2334,7 @@ var Credentials = class {
|
|
|
2324
2334
|
}
|
|
2325
2335
|
};
|
|
2326
2336
|
|
|
2327
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2337
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2328
2338
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2329
2339
|
if (signal?.aborted)
|
|
2330
2340
|
return Promise.reject(signal.reason);
|
|
@@ -2352,7 +2362,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2352
2362
|
});
|
|
2353
2363
|
}, "waitForDrain");
|
|
2354
2364
|
|
|
2355
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2365
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2356
2366
|
var processStreams = {
|
|
2357
2367
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2358
2368
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2381,7 +2391,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2381
2391
|
};
|
|
2382
2392
|
}, "captureStreams");
|
|
2383
2393
|
|
|
2384
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2394
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2385
2395
|
var DEFAULT_RETRY = {
|
|
2386
2396
|
retries: 1,
|
|
2387
2397
|
baseDelayMs: 250,
|
|
@@ -2393,7 +2403,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2393
2403
|
return Math.round(random() * ceiling);
|
|
2394
2404
|
}, "backoffMs");
|
|
2395
2405
|
|
|
2396
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2406
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2397
2407
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2398
2408
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2399
2409
|
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))))
|
|
@@ -2458,7 +2468,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2458
2468
|
return project(value, fields);
|
|
2459
2469
|
}, "projectFields");
|
|
2460
2470
|
|
|
2461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2471
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2462
2472
|
var BATCH_LIMITS = Object.freeze({
|
|
2463
2473
|
requests: 32,
|
|
2464
2474
|
input_bytes: 262144,
|
|
@@ -2585,7 +2595,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2585
2595
|
};
|
|
2586
2596
|
}, "runBatch");
|
|
2587
2597
|
|
|
2588
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2598
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2589
2599
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2590
2600
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2591
2601
|
if (signal?.aborted) {
|
|
@@ -2599,7 +2609,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2599
2609
|
}, { once: true });
|
|
2600
2610
|
}), "realSleep");
|
|
2601
2611
|
|
|
2602
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2612
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2603
2613
|
import { appendFileSync } from "node:fs";
|
|
2604
2614
|
var REDACTED_FIELDS = [
|
|
2605
2615
|
"authorization",
|
|
@@ -2694,7 +2704,7 @@ var silent = {
|
|
|
2694
2704
|
}, "error")
|
|
2695
2705
|
};
|
|
2696
2706
|
|
|
2697
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2707
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2698
2708
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2699
2709
|
import { styleText } from "node:util";
|
|
2700
2710
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2768,7 +2778,7 @@ var BORDERLESS = {
|
|
|
2768
2778
|
middle: ""
|
|
2769
2779
|
};
|
|
2770
2780
|
|
|
2771
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2781
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
2772
2782
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2773
2783
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2774
2784
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2,7 +2,7 @@ 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-JKEAZBEZ.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,7 +10,7 @@ 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.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/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")
|
|
@@ -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-2CQT2WWN.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JKEAZBEZ.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.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/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 = {
|