@wirecat/drive-cli 0.50.0 → 0.51.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-WQTVOCIS.js → all-profiles-H3APJWSO.js} +5 -5
- package/dist/bundle/{anthropic-YCA2AWIJ.js → anthropic-P7DXFYFE.js} +3 -3
- package/dist/bundle/{app-server-ZQOYUQJH.js → app-server-IQUR7ZC2.js} +46 -46
- package/dist/bundle/{bun-5NFIDHGM.js → bun-LZUEW2ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-OAQE4M2E.js → bun-sqlite-6LUE7UA6.js} +2 -2
- package/dist/bundle/{chunk-P6VN5UB4.js → chunk-2TPENYCK.js} +3 -3
- package/dist/bundle/{chunk-M6FQOGUW.js → chunk-35IHF562.js} +244 -244
- package/dist/bundle/{chunk-3XX52F42.js → chunk-3KTDFSSK.js} +1 -1
- package/dist/bundle/{chunk-RTIMGPLN.js → chunk-4GFAOETW.js} +2 -2
- package/dist/bundle/{chunk-QNLD7Y6Z.js → chunk-4YG2FZ53.js} +5 -5
- package/dist/bundle/{chunk-QBECV7NO.js → chunk-5C7RKU7O.js} +30 -30
- package/dist/bundle/{chunk-652YTDT5.js → chunk-6FXFYXTR.js} +10 -10
- package/dist/bundle/{chunk-FSAM4Y2S.js → chunk-7LYVWMKD.js} +7 -7
- package/dist/bundle/{chunk-KZEOWOZV.js → chunk-7ZNM6KXP.js} +5 -5
- package/dist/bundle/{chunk-M2D4FXKY.js → chunk-AKW5MNQP.js} +4 -4
- package/dist/bundle/{chunk-Z54E5LKF.js → chunk-AUW45JPI.js} +5 -5
- package/dist/bundle/{chunk-DTHWL5YU.js → chunk-BMI5VCR4.js} +2 -2
- package/dist/bundle/{chunk-ZKGYW63J.js → chunk-BVDAP3FQ.js} +3 -3
- package/dist/bundle/{chunk-2M5XEGVE.js → chunk-CT6Z6Z64.js} +319 -235
- package/dist/bundle/{chunk-QY3LK3OT.js → chunk-CX7HQ6KK.js} +4 -4
- package/dist/bundle/{chunk-3HNUH632.js → chunk-D222O57O.js} +3 -3
- package/dist/bundle/{chunk-ZXD2I5ZQ.js → chunk-D3UFQC7K.js} +46 -46
- package/dist/bundle/{chunk-NHRJW3PH.js → chunk-DDD3FS6G.js} +1 -1
- package/dist/bundle/{chunk-CTIQ77AB.js → chunk-DEVPGI27.js} +15 -15
- package/dist/bundle/{chunk-JSMPSOEM.js → chunk-F3PPSIKI.js} +1 -1
- package/dist/bundle/{chunk-AO3NCZNT.js → chunk-FCZ762RV.js} +7 -7
- package/dist/bundle/{chunk-CEUEXMIR.js → chunk-FV5WG4WU.js} +25 -25
- package/dist/bundle/{chunk-24TOKSZE.js → chunk-GK2VUKQY.js} +2 -2
- package/dist/bundle/{chunk-JA2YY7D4.js → chunk-HBRTKJ3J.js} +6 -6
- package/dist/bundle/{chunk-CCEVICWU.js → chunk-HYT3FJVB.js} +3 -3
- package/dist/bundle/{chunk-KYMGVMOS.js → chunk-I7EP3VPJ.js} +1 -1
- package/dist/bundle/{chunk-VAK2Q2XG.js → chunk-J2S7QDOP.js} +12 -12
- package/dist/bundle/{chunk-5Z63NTC7.js → chunk-JI5KFKTL.js} +4 -4
- package/dist/bundle/{chunk-4OLWMHS6.js → chunk-K3EK4MTU.js} +1 -1
- package/dist/bundle/{chunk-4J7UGHPK.js → chunk-K6JSVXDN.js} +4 -4
- package/dist/bundle/{chunk-MMOG7ZVF.js → chunk-LLMHJE5Q.js} +1 -1
- package/dist/bundle/{chunk-JHBX53SK.js → chunk-LZKPT7GY.js} +32 -32
- package/dist/bundle/{chunk-T7UZHKAS.js → chunk-MPTD5P53.js} +1 -1
- package/dist/bundle/{chunk-UVPKSZSC.js → chunk-N33EOINW.js} +4 -4
- package/dist/bundle/{chunk-LNWRRK2H.js → chunk-NO34DAIB.js} +5 -5
- package/dist/bundle/{chunk-5OMLYNYB.js → chunk-NRWDEBJB.js} +7 -7
- package/dist/bundle/{chunk-C4PNAHI4.js → chunk-NVHPYKYC.js} +10 -10
- package/dist/bundle/{chunk-5ZJHQ4TN.js → chunk-OASIFIXM.js} +1 -1
- package/dist/bundle/{chunk-KEQ35HQQ.js → chunk-OQVJQSEH.js} +2 -2
- package/dist/bundle/{chunk-INVF3GXW.js → chunk-POFLDSTX.js} +8 -8
- package/dist/bundle/{chunk-IUZ4PT2V.js → chunk-PQGIV36R.js} +1 -1
- package/dist/bundle/{chunk-XEETGCOC.js → chunk-PRBPVOW4.js} +1 -1
- package/dist/bundle/{chunk-IFM2APQB.js → chunk-PT6XDCOY.js} +1 -1
- package/dist/bundle/{chunk-ZP735UUT.js → chunk-Q5CLTK5R.js} +1 -1
- package/dist/bundle/{chunk-QSDXVUJG.js → chunk-SRIPLP7N.js} +4 -4
- package/dist/bundle/{chunk-Q27HCATD.js → chunk-SRONUWOM.js} +262 -247
- package/dist/bundle/{chunk-OL22OOIW.js → chunk-SZWQFR5X.js} +3 -3
- package/dist/bundle/{chunk-XGJUEH5C.js → chunk-TEH76MZK.js} +16 -16
- package/dist/bundle/{chunk-HURI56SB.js → chunk-TSZJXI4N.js} +18 -18
- package/dist/bundle/{chunk-4SSUKRO4.js → chunk-TVJU245P.js} +1 -1
- package/dist/bundle/{chunk-E656DAZT.js → chunk-U3OS6V6S.js} +1 -1
- package/dist/bundle/{chunk-IGG4RBIZ.js → chunk-U7DPS46V.js} +96 -96
- package/dist/bundle/{chunk-6E4PFCQ4.js → chunk-UM4E2OFL.js} +1 -1
- package/dist/bundle/{chunk-OQEBGY74.js → chunk-UMY4IQE2.js} +43 -43
- package/dist/bundle/{chunk-POD2GHQB.js → chunk-UW7VXKKZ.js} +17 -17
- package/dist/bundle/{chunk-TATRMMOG.js → chunk-VCPS7Q2W.js} +2 -2
- package/dist/bundle/{chunk-EXYEDKTX.js → chunk-VH4GVA2N.js} +1 -1
- package/dist/bundle/{chunk-VAETCXRI.js → chunk-WACVI3CS.js} +8 -8
- package/dist/bundle/{chunk-BUALWXBT.js → chunk-WX2NQO2D.js} +1 -1
- package/dist/bundle/{chunk-3CQNJKJT.js → chunk-WYWXOIGT.js} +1 -1
- package/dist/bundle/{chunk-7SYSC7KX.js → chunk-XBENRRBS.js} +2 -2
- package/dist/bundle/{chunk-ZJBRKR42.js → chunk-XCXUP76D.js} +25 -25
- package/dist/bundle/{chunk-5WN7JHQE.js → chunk-XE2GEE3E.js} +25 -25
- package/dist/bundle/{chunk-R7XMCREL.js → chunk-XXLTVVMT.js} +18 -18
- package/dist/bundle/{chunk-6DDXB5WB.js → chunk-Y4YBW5S4.js} +1 -1
- package/dist/bundle/{chunk-IA6LNKCF.js → chunk-YLC4JVQZ.js} +3 -3
- package/dist/bundle/{chunk-FABKIQ24.js → chunk-YVQJPLPU.js} +2 -2
- package/dist/bundle/{chunk-4VLUX3V5.js → chunk-YXHMEFL7.js} +1 -1
- package/dist/bundle/{chunk-53UWCVSU.js → chunk-Z3GWVRW3.js} +1 -1
- package/dist/bundle/{chunk-YROVFHPJ.js → chunk-Z6KTSXE3.js} +1 -1
- package/dist/bundle/{chunk-Q3VG3UYV.js → chunk-ZKAAFY4C.js} +9 -9
- package/dist/bundle/command-contract-R6CGYG7L.js +38 -0
- package/dist/bundle/{decode-YZRTP54O.js → decode-4EENADOV.js} +2 -2
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-C6HUK2FL.js → echarts-ZFC37XW7.js} +2 -2
- package/dist/bundle/{embed-QRQ7ITFC.js → embed-UZMNP26C.js} +3 -3
- package/dist/bundle/{embedder-EZDB3JPA.js → embedder-7VDWDBKF.js} +6 -6
- package/dist/bundle/{entry-4WQQKSYG.js → entry-JJKCHVIK.js} +4 -4
- package/dist/bundle/{failure-EEJGMWEP.js → failure-VBQBKCD5.js} +11 -11
- package/dist/bundle/{first-run-ZAS4OV3T.js → first-run-FJTEUJBF.js} +5 -5
- package/dist/bundle/first-screen-NSPQWNMQ.js +36 -0
- package/dist/bundle/{google-KNILTIDW.js → google-JBJASYKY.js} +4 -4
- package/dist/bundle/google-api-2FKF4UUN.js +82 -0
- package/dist/bundle/{identity-VBCGUXT5.js → identity-XE73ALJH.js} +2 -2
- package/dist/bundle/{instructions-II4M2WL3.js → instructions-Q4ASITKO.js} +1 -1
- package/dist/bundle/{login-4JACQVMD.js → login-BD2WQT5F.js} +54 -54
- package/dist/bundle/{mcp-6ZIAWU3N.js → mcp-G6U2Q63E.js} +68 -68
- package/dist/bundle/mcp-H3XD47NW.js +95 -0
- package/dist/bundle/{node-LIN7L4VQ.js → node-CYM7VXFR.js} +2 -2
- package/dist/bundle/{node-sqlite-VAH4KZN3.js → node-sqlite-RK4MHW57.js} +2 -2
- package/dist/bundle/{oauth-QUE3VCTU.js → oauth-CQXQRHJR.js} +4 -4
- package/dist/bundle/{open-DQ3EVYPB.js → open-WSE4NBD2.js} +1 -1
- package/dist/bundle/{process-46XDWPVW.js → process-7HHZZZLA.js} +1 -1
- package/dist/bundle/{program-X3CZ4XDN.js → program-ZMQYZNV5.js} +77 -77
- package/dist/bundle/{prompt-SAZYCZV3.js → prompt-YSBBQJGF.js} +2 -2
- package/dist/bundle/{recognize-SSBOHOTW.js → recognize-AZKGPCAS.js} +1 -1
- package/dist/bundle/{remote-EL3FWCQE.js → remote-EYSK3XKD.js} +4 -4
- package/dist/bundle/{rerank-RPIQRJIW.js → rerank-LOW6VIDF.js} +4 -4
- package/dist/bundle/{serve-AX44DIKK.js → serve-UJ52HGA7.js} +6 -6
- package/dist/bundle/server-CA2VLY25.js +56 -0
- package/dist/bundle/server-TW75RDEP.js +69 -0
- package/dist/bundle/{services-K4UOEMQD.js → services-B4QUSCFN.js} +22 -22
- package/dist/bundle/{sqlite-runtime-N7N3EYGH.js → sqlite-runtime-GEURBVK5.js} +2 -2
- package/dist/bundle/{state-C3S5FD7V.js → state-OJNSKOXO.js} +3 -3
- package/dist/bundle/{store-4N3NBUGX.js → store-62SBP45X.js} +10 -10
- package/dist/bundle/{store-QV4ZNEQ3.js → store-FTS2HVVB.js} +12 -12
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +57 -0
- package/dist/bundle/tokens-JALZUGEM.js +103 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-TAWVO2G3.js +0 -38
- package/dist/bundle/first-screen-6ICWD2N3.js +0 -36
- package/dist/bundle/google-api-CZACYX5T.js +0 -82
- package/dist/bundle/mcp-2BR2EX7L.js +0 -95
- package/dist/bundle/server-DCJIGUW2.js +0 -56
- package/dist/bundle/server-WWQSQBFT.js +0 -69
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +0 -57
- package/dist/bundle/tokens-Y7HCOXOA.js +0 -103
- /package/dist/bundle/{chunk-VDZZ46RT.js → chunk-UO5O3665.js} +0 -0
|
@@ -2,14 +2,14 @@ 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-YXHMEFL7.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-XBENRRBS.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5FONRUG6.js";
|
|
@@ -17,7 +17,7 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
import { randomUUID } from "node:crypto";
|
|
23
23
|
var PROTOCOL = "2025-06-18";
|
|
@@ -251,7 +251,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
251
251
|
}, "serveAllProfilesOverStdio");
|
|
252
252
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
253
253
|
const { build, close } = allProfilesServer(options);
|
|
254
|
-
const { serveOverHttp } = await import("./serve-
|
|
254
|
+
const { serveOverHttp } = await import("./serve-UJ52HGA7.js");
|
|
255
255
|
const listening = await serveOverHttp(build, {
|
|
256
256
|
...http,
|
|
257
257
|
appName: options.command,
|
|
@@ -7,14 +7,14 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-6LUE7UA6.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-RK4MHW57.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LLMHJE5Q.js";
|
|
6
6
|
import {
|
|
7
7
|
isContentKey
|
|
8
8
|
} from "./chunk-EY4CUQW2.js";
|
|
@@ -10,14 +10,14 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { createHash } from "node:crypto";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
18
18
|
import { homedir } from "node:os";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
21
21
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
22
22
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
23
23
|
if (event.event === "warning") {
|
|
@@ -65,7 +65,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
65
65
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
66
66
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
67
67
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
68
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
69
69
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
70
70
|
"authorization",
|
|
71
71
|
"cookie",
|
|
@@ -146,7 +146,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
146
146
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
147
147
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
150
150
|
var MESSAGE_AT_MOST = 500;
|
|
151
151
|
var CAUSES_AT_MOST = 5;
|
|
152
152
|
var FRAMES_AT_MOST = 15;
|
|
@@ -254,7 +254,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
254
254
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
255
255
|
}, "redactText");
|
|
256
256
|
|
|
257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
258
258
|
var REDACTED = "[redacted]";
|
|
259
259
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
260
260
|
if (!record)
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
readSetupAnswers,
|
|
10
10
|
unanswered,
|
|
11
11
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2TPENYCK.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_STEMMERS,
|
|
15
15
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FCZ762RV.js";
|
|
17
17
|
import {
|
|
18
18
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JI5KFKTL.js";
|
|
20
20
|
import {
|
|
21
21
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z6KTSXE3.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
28
28
|
import { spawnSync } from "node:child_process";
|
|
29
29
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
30
30
|
import { delimiter, join } from "node:path";
|
|
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
82
82
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
83
83
|
}, "suggested");
|
|
84
84
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
85
|
-
const { openStore } = await import("./store-
|
|
85
|
+
const { openStore } = await import("./store-62SBP45X.js");
|
|
86
86
|
const store = await openStore({ env });
|
|
87
87
|
let rebuild = false;
|
|
88
88
|
try {
|
|
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
111
111
|
if (!rebuild)
|
|
112
112
|
return;
|
|
113
113
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
114
|
-
import("./open-
|
|
115
|
-
import("./store-maintenance-command-
|
|
114
|
+
import("./open-WSE4NBD2.js"),
|
|
115
|
+
import("./store-maintenance-command-FQMB3R4E.js")
|
|
116
116
|
]);
|
|
117
117
|
const database = await openCache(storePath(env));
|
|
118
118
|
try {
|
|
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
124
124
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
125
125
|
const { command, env, io } = run;
|
|
126
126
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
127
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
127
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-NSPQWNMQ.js");
|
|
128
128
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
129
129
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
130
130
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
197
197
|
contentLanguages: start.contentLanguages,
|
|
198
198
|
all: start.path[0] === "setup",
|
|
199
199
|
io: {
|
|
200
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
200
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-YSBBQJGF.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
201
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
202
|
`), "say")
|
|
203
203
|
}
|
|
@@ -12,7 +12,7 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -2,7 +2,7 @@ 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-AKW5MNQP.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-EY4CUQW2.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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/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 = {
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DDD3FS6G.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YVQJPLPU.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
12
|
} from "./chunk-HGWMX7BM.js";
|
|
@@ -17,17 +17,17 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
24
|
import { appendFileSync } from "node:fs";
|
|
25
25
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
26
26
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
27
27
|
`);
|
|
28
28
|
}, "logVersion");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
31
31
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
32
32
|
argv: process.argv,
|
|
33
33
|
env: process.env,
|
|
@@ -81,8 +81,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
81
81
|
if (command.optsWithGlobals().dryRun === true)
|
|
82
82
|
return;
|
|
83
83
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
84
|
-
import("./first-run-
|
|
85
|
-
import("./command-contract-
|
|
84
|
+
import("./first-run-FJTEUJBF.js"),
|
|
85
|
+
import("./command-contract-R6CGYG7L.js")
|
|
86
86
|
]);
|
|
87
87
|
await setupAtStart({
|
|
88
88
|
command: entry.app.command,
|
|
@@ -97,7 +97,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
97
97
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
98
98
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
99
99
|
return false;
|
|
100
|
-
const { readSecret } = await import("./prompt-
|
|
100
|
+
const { readSecret } = await import("./prompt-YSBBQJGF.js");
|
|
101
101
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
102
102
|
input: io.stdin,
|
|
103
103
|
output: io.stderr,
|
|
@@ -7,7 +7,7 @@ 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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/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)
|
|
@@ -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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4GFAOETW.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.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|