@wirecat/drive-cli 0.62.0 → 0.64.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/README.md +2 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-BPPT2AK5.js} +13 -14
- package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-JB2AEWWL.js → app-server-KAQIOJMZ.js} +53 -54
- package/dist/bundle/{bun-CC44AAND.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-N7OZPKU7.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-UGXN5D7U.js → chunk-34BIDKF4.js} +332 -430
- package/dist/bundle/{chunk-WZKEU7WR.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-LQKD257P.js → chunk-3J5KAFNA.js} +2255 -1125
- package/dist/bundle/{chunk-7W5HYGVW.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-46CD64J2.js} +155 -36
- package/dist/bundle/{chunk-DWJHL6DV.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-LWE4JGRN.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-SW4I5BR7.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-IR4SQLBR.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-R347FPYU.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-RWSXVCSG.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-HCNQT3QE.js → chunk-AHB4OJCI.js} +1951 -580
- package/dist/bundle/{chunk-JK3U25QZ.js → chunk-B67BLRAI.js} +59 -1
- package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-TDX4GZFO.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-RIDQNVZM.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-CJHY5YIF.js → chunk-CPMRM3GQ.js} +489 -210
- package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-W4RTIL7S.js → chunk-E2LBCCTG.js} +5 -5
- package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
- package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
- package/dist/bundle/{chunk-XS5POQST.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-U2BFYSQV.js → chunk-EWGVDFPT.js} +8983 -3343
- package/dist/bundle/{chunk-OBH5BA62.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-HG6CAYJH.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-RPMKG63Z.js → chunk-G3NULXOM.js} +4 -4
- package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
- package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
- package/dist/bundle/{chunk-XZUS7XRO.js → chunk-GW3U6OLD.js} +1 -1
- package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
- package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
- package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-YMWENGKH.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-AH5C3D3D.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-KLFSRKHB.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ONP2IBHY.js → chunk-KE4XPPRQ.js} +98 -81
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-T5NWWXS2.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-QH7DOVO3.js → chunk-KVW4XNKB.js} +45 -29
- package/dist/bundle/{chunk-PEQA6LA5.js → chunk-LOMW6F2E.js} +230 -236
- package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-YPFUYQDP.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-QCX6XZLA.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-VAYB52HF.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-YXYTY4GF.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-67ZQCWBV.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-JN5TVEEL.js → chunk-QXCKJUZY.js} +124 -22
- package/dist/bundle/{chunk-T7X53FCJ.js → chunk-SIOIMO62.js} +37 -37
- package/dist/bundle/{chunk-O7ALBI2I.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/chunk-UD55VB2N.js +87 -0
- package/dist/bundle/{chunk-L7K2MOIC.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-EW7PKB4M.js → chunk-UJR272CP.js} +29 -29
- package/dist/bundle/{chunk-YALI4C7C.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-YOJDGAPT.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VQDD64A4.js → chunk-VT2UFYPJ.js} +8 -10
- package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-DJOAMGF4.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-E43ENLJJ.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-XEW2EN6F.js → chunk-ZRZ4HTCK.js} +60 -34
- package/dist/bundle/{chunk-2KN35F32.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-WIIX3Y2X.js → decode-HTOQ6S3V.js} +8 -8
- package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-OYINM4C4.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-DWZIYMBX.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-MQPDFGTJ.js} +12 -12
- package/dist/bundle/entry-YZBB647C.js +22 -0
- package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
- package/dist/bundle/first-run-5JT3UQZB.js +30 -0
- package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
- package/dist/bundle/{google-KLZSUAVY.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-QMFGCXBM.js} +55 -57
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-J2DON4IO.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-BD2TS4GY.js → login-COFZ2IWP.js} +61 -63
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-CPKTDPH7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-O7P3ZV3Y.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-RCFQKCXC.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-KXDRJO22.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-UCHFC7JQ.js → program-6UV5Q5YN.js} +310 -279
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-MRCYGP2J.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-L3L4PHKF.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-PSOE6XFT.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-72OGS3BF.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-SCXKYHBO.js → server-NSA3UAFY.js} +43 -44
- package/dist/bundle/{services-YAFTELBI.js → services-F5A6XQCV.js} +69 -34
- package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-T5VNAJSZ.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-4OFK7PKQ.js → store-F5FJGWMR.js} +58 -20
- package/dist/bundle/{store-R6MSY2IM.js → store-J53YNAH6.js} +43 -18
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
- package/dist/bundle/tokens-H2EJKGA5.js +101 -0
- package/dist/commands/account.d.ts +4 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +33 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/profile-lock.d.ts +1 -0
- package/dist/profile-lock.d.ts.map +1 -1
- package/dist/profile-lock.js +1 -0
- package/dist/profile-lock.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.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/chunk-AQVUEZEP.js +0 -22
- package/dist/bundle/chunk-DRZZBN3V.js +0 -33
- package/dist/bundle/chunk-UOXOLGNG.js +0 -42
- package/dist/bundle/command-contract-OB5BRABN.js +0 -39
- package/dist/bundle/entry-V5V3TOTY.js +0 -22
- package/dist/bundle/first-run-V3VVLQF4.js +0 -30
- package/dist/bundle/first-screen-Y3RIN7FU.js +0 -37
- package/dist/bundle/grants-L7XLHLUT.js +0 -105
- package/dist/bundle/oauth-HOGY4YBB.js +0 -22
- package/dist/bundle/prompt-EVPPBN5W.js +0 -17
- package/dist/bundle/server-C5TGNFXW.js +0 -70
- package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
- package/dist/bundle/tokens-HIG36RNS.js +0 -103
- /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
package/README.md
CHANGED
|
@@ -70,7 +70,8 @@ your own Desktop client and leave it in Testing, Google usually ends its sign-in
|
|
|
70
70
|
|
|
71
71
|
Use `drive work …` for another account. Each Google account has one local profile. `drive session list`
|
|
72
72
|
lists configured profiles. `session end` removes local sign-in while retaining cached data and
|
|
73
|
-
configuration so re-login preserves document identities.
|
|
73
|
+
configuration so re-login preserves document identities. `account remove --keep-data` or `--delete-data` goes
|
|
74
|
+
further: it revokes the sign-in at Google and forgets the profile, and `--delete-data` also deletes its snapshots.
|
|
74
75
|
|
|
75
76
|
## Search and export
|
|
76
77
|
|
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.64.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-BPPT2AK5.js","../bundle/anthropic-JW6GOJUD.js","../bundle/app-server-KAQIOJMZ.js","../bundle/bun-UT7GNTPV.js","../bundle/bun-sqlite-2OIVV3LS.js","../bundle/command-contract-H5OYJOPF.js","../bundle/decode-HTOQ6S3V.js","../bundle/dispatch-SH5SP6LA.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-KFHB6SLX.js","../bundle/embed-YATFB2PN.js","../bundle/embedder-MQPDFGTJ.js","../bundle/entry-YZBB647C.js","../bundle/failure-4FQL4XJI.js","../bundle/first-run-5JT3UQZB.js","../bundle/first-screen-BEMDEWO7.js","../bundle/google-DVADVICN.js","../bundle/google-api-QMFGCXBM.js","../bundle/grants-WKB2E4TA.js","../bundle/identity-FYVDK4M2.js","../bundle/instructions-D3GF3B7M.js","../bundle/login-COFZ2IWP.js","../bundle/mcp-RKJG22KM.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-KM3CUABH.js","../bundle/node-OFICOKX3.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-DNBTDOXD.js","../bundle/oauth-PDQHWFBF.js","../bundle/open-PTPR2YWX.js","../bundle/openai-2KV5LUW4.js","../bundle/process-EAW6NST2.js","../bundle/program-6UV5Q5YN.js","../bundle/prompt-634TPMJK.js","../bundle/reasons-DDWCEYSQ.js","../bundle/recognize-SJO6QUDW.js","../bundle/remote-6JXZITKF.js","../bundle/rerank-MD5VOPQ6.js","../bundle/serve-LZTROA2M.js","../bundle/server-GT7X666D.js","../bundle/server-NSA3UAFY.js","../bundle/services-F5A6XQCV.js","../bundle/sqlite-runtime-7YF6REKS.js","../bundle/start-MUFLE6FA.js","../bundle/state-UC54F3YZ.js","../bundle/store-F5FJGWMR.js","../bundle/store-J53YNAH6.js","../bundle/store-maintenance-command-GJVXLBAB.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-H2EJKGA5.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -2,33 +2,32 @@ 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-ZF6GUZCE.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-4YRENUB5.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-
|
|
21
|
-
import "./chunk-UQLWMGSD.js";
|
|
16
|
+
import "./chunk-VT2UFYPJ.js";
|
|
17
|
+
import "./chunk-B67BLRAI.js";
|
|
18
|
+
import "./chunk-SW6C6WH5.js";
|
|
19
|
+
import "./chunk-G4KEKKDE.js";
|
|
20
|
+
import "./chunk-KG2XKEHL.js";
|
|
22
21
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-IDAK4DDK.js";
|
|
23
|
+
import "./chunk-HW4UPST2.js";
|
|
24
|
+
import "./chunk-BDYWZ7JE.js";
|
|
25
|
+
import "./chunk-EJ4PNHPP.js";
|
|
27
26
|
import {
|
|
28
27
|
__name
|
|
29
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
29
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
31
|
import { spawn } from "node:child_process";
|
|
33
32
|
import { randomUUID } from "node:crypto";
|
|
34
33
|
var PROTOCOL = "2025-06-18";
|
|
@@ -262,7 +261,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
262
261
|
}, "serveAllProfilesOverStdio");
|
|
263
262
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
264
263
|
const { build, close } = allProfilesServer(options);
|
|
265
|
-
const { serveOverHttp } = await import("./serve-
|
|
264
|
+
const { serveOverHttp } = await import("./serve-LZTROA2M.js");
|
|
266
265
|
const listening = await serveOverHttp(build, {
|
|
267
266
|
...http,
|
|
268
267
|
appName: options.command,
|
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
checkedOptions
|
|
5
|
-
} from "./chunk-DRZZBN3V.js";
|
|
6
|
-
import {
|
|
4
|
+
checkedOptions,
|
|
7
5
|
messagesFor,
|
|
8
6
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KIN6PDFE.js";
|
|
10
8
|
import {
|
|
11
9
|
Anthropic
|
|
12
10
|
} from "./chunk-FXBHOCJK.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-G4KEKKDE.js";
|
|
12
|
+
import "./chunk-KG2XKEHL.js";
|
|
15
13
|
import "./chunk-Y5E2WNWB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IDAK4DDK.js";
|
|
15
|
+
import "./chunk-HW4UPST2.js";
|
|
18
16
|
import {
|
|
19
17
|
array,
|
|
20
18
|
optional,
|
|
21
19
|
strictObject,
|
|
22
20
|
string
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
22
|
+
import "./chunk-EJ4PNHPP.js";
|
|
25
23
|
import {
|
|
26
24
|
__name
|
|
27
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
26
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
30
28
|
var options = strictObject({
|
|
31
29
|
stop_sequences: optional(array(string()))
|
|
32
30
|
});
|
|
@@ -66,6 +64,10 @@ var anthropic = {
|
|
|
66
64
|
throw new Error("incomplete response");
|
|
67
65
|
return {
|
|
68
66
|
text: response.content.filter((block) => block.type === "text").map((block) => block.text).join(""),
|
|
67
|
+
usage: {
|
|
68
|
+
input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
|
|
69
|
+
output: response.usage.output_tokens
|
|
70
|
+
},
|
|
69
71
|
tokens: response.usage.input_tokens + response.usage.output_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0)
|
|
70
72
|
};
|
|
71
73
|
}, "complete")
|
|
@@ -3,34 +3,34 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SIOIMO62.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZRZ4HTCK.js";
|
|
10
10
|
import {
|
|
11
11
|
answered,
|
|
12
12
|
failed,
|
|
13
13
|
registerCommands,
|
|
14
14
|
runCommandForAgent,
|
|
15
15
|
toolsFromCommands
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-46CD64J2.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QXCKJUZY.js";
|
|
21
21
|
import {
|
|
22
22
|
answeredWire
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZF6GUZCE.js";
|
|
24
24
|
import {
|
|
25
25
|
StdioServerTransport,
|
|
26
26
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4YRENUB5.js";
|
|
28
28
|
import {
|
|
29
29
|
McpServer
|
|
30
30
|
} from "./chunk-5D4AEUVA.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-UJR272CP.js";
|
|
32
|
+
import "./chunk-P7DEGRZA.js";
|
|
33
|
+
import "./chunk-TNV2FXVK.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_OUTPUT_BYTES,
|
|
36
36
|
changesAuthorityAt,
|
|
@@ -39,65 +39,64 @@ import {
|
|
|
39
39
|
judgedTargets,
|
|
40
40
|
readsOverMcpAt,
|
|
41
41
|
rootOf2 as rootOf
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
readOnlyLockOf
|
|
47
|
-
} from "./chunk-7W5HYGVW.js";
|
|
42
|
+
} from "./chunk-LOMW6F2E.js";
|
|
43
|
+
import "./chunk-VT2UFYPJ.js";
|
|
44
|
+
import "./chunk-VPLFD5RJ.js";
|
|
48
45
|
import {
|
|
49
46
|
mcpHttpMarker
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-4CNTID2X.js";
|
|
48
|
+
import "./chunk-F2VDAG32.js";
|
|
49
|
+
import "./chunk-J62DI53V.js";
|
|
53
50
|
import {
|
|
54
51
|
appInstructions
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-5ZBR55US.js";
|
|
53
|
+
import "./chunk-3J5KAFNA.js";
|
|
54
|
+
import "./chunk-KE4XPPRQ.js";
|
|
55
|
+
import "./chunk-O2QO5UZC.js";
|
|
56
|
+
import "./chunk-OH3K2E7X.js";
|
|
57
|
+
import "./chunk-N622LRPM.js";
|
|
58
|
+
import "./chunk-6G53ZFUT.js";
|
|
59
|
+
import {
|
|
60
|
+
readOnlyLockOf
|
|
61
|
+
} from "./chunk-3NULZGQU.js";
|
|
62
|
+
import "./chunk-KIN6PDFE.js";
|
|
63
|
+
import "./chunk-EZ6O3ST3.js";
|
|
64
|
+
import "./chunk-KVW4XNKB.js";
|
|
65
|
+
import "./chunk-BZ2ZKILM.js";
|
|
66
|
+
import "./chunk-JRXFW7HE.js";
|
|
66
67
|
import "./chunk-5DPV7X27.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
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-XS5POQST.js";
|
|
80
|
-
import "./chunk-IR4SQLBR.js";
|
|
68
|
+
import "./chunk-66AF4FBW.js";
|
|
69
|
+
import "./chunk-EWGVDFPT.js";
|
|
70
|
+
import "./chunk-UD55VB2N.js";
|
|
71
|
+
import "./chunk-CPMRM3GQ.js";
|
|
72
|
+
import "./chunk-2FEZ24DK.js";
|
|
73
|
+
import "./chunk-B67BLRAI.js";
|
|
74
|
+
import "./chunk-VIJ6ACYB.js";
|
|
75
|
+
import "./chunk-BEZJA44H.js";
|
|
76
|
+
import "./chunk-DD7EFG6B.js";
|
|
77
|
+
import "./chunk-USLZE36C.js";
|
|
78
|
+
import "./chunk-EQEGJVO2.js";
|
|
79
|
+
import "./chunk-5OFA5EXE.js";
|
|
81
80
|
import "./chunk-D72URWJE.js";
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-IK6KH3RE.js";
|
|
82
|
+
import "./chunk-SW6C6WH5.js";
|
|
83
|
+
import "./chunk-36GPBPWM.js";
|
|
84
|
+
import "./chunk-G4KEKKDE.js";
|
|
86
85
|
import {
|
|
87
86
|
mcpErrorResult
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-KG2XKEHL.js";
|
|
89
88
|
import "./chunk-Y5E2WNWB.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-IDAK4DDK.js";
|
|
90
|
+
import "./chunk-HW4UPST2.js";
|
|
91
|
+
import "./chunk-BDYWZ7JE.js";
|
|
93
92
|
import {
|
|
94
93
|
CliError
|
|
95
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
96
95
|
import {
|
|
97
96
|
__name
|
|
98
97
|
} from "./chunk-ZVVMGPBJ.js";
|
|
99
98
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
99
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
101
100
|
var EXCLUDED = [["mcp"]];
|
|
102
101
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
103
102
|
const { app } = options;
|
|
@@ -215,7 +214,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
215
214
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
216
215
|
const { app } = options;
|
|
217
216
|
const { build } = createAppServer(command, context, options);
|
|
218
|
-
const { serveOverHttp } = await import("./serve-
|
|
217
|
+
const { serveOverHttp } = await import("./serve-LZTROA2M.js");
|
|
219
218
|
const listening = await serveOverHttp(build, {
|
|
220
219
|
...http,
|
|
221
220
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EQEGJVO2.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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/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,21 +3,21 @@ 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-5HSRQ53R.js";
|
|
7
|
+
import "./chunk-G4KEKKDE.js";
|
|
8
|
+
import "./chunk-KG2XKEHL.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-IDAK4DDK.js";
|
|
13
|
+
import "./chunk-HW4UPST2.js";
|
|
14
|
+
import "./chunk-BDYWZ7JE.js";
|
|
15
|
+
import "./chunk-EJ4PNHPP.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
21
21
|
var customised = false;
|
|
22
22
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
23
23
|
try {
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
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/query/types.js
|
|
32
32
|
var QUERY_LIMITS = {
|
|
33
33
|
bytes: 8192,
|
|
34
34
|
depth: 32,
|
|
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
72
72
|
__name(queryError, "queryError");
|
|
73
73
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
75
|
+
// 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/query/dates.js
|
|
76
76
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
77
77
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
78
78
|
try {
|
|
@@ -217,7 +217,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
217
217
|
};
|
|
218
218
|
}, "dateRange");
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
220
|
+
// 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/query/evaluate.js
|
|
221
221
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
222
222
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
223
223
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -272,7 +272,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
272
272
|
}, "matches");
|
|
273
273
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
274
274
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
275
|
+
// 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/query/fields.js
|
|
276
276
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
277
277
|
var OPERATORS_BY_TYPE = {
|
|
278
278
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -351,7 +351,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
351
351
|
return [...own, ...relations, ...states];
|
|
352
352
|
}, "queryFieldsOf");
|
|
353
353
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
354
|
+
// 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/query/help.js
|
|
355
355
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
356
356
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
357
357
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -388,7 +388,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
388
388
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
389
389
|
}, "queryDescription");
|
|
390
390
|
|
|
391
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// 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/query/parser.js
|
|
392
392
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
393
393
|
var reserved = /* @__PURE__ */ new Set([
|
|
394
394
|
"+",
|
|
@@ -697,7 +697,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
697
697
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
698
698
|
}, "implicitTextTerms");
|
|
699
699
|
|
|
700
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
700
|
+
// 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/query/validate.js
|
|
701
701
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
702
702
|
try {
|
|
703
703
|
run();
|
|
@@ -772,7 +772,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
772
772
|
}, "validateQuery");
|
|
773
773
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
775
|
+
// 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/query/registry.js
|
|
776
776
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
777
777
|
entity: registry.entity,
|
|
778
778
|
backend: registry.backend,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
checkApiParameter,
|
|
12
12
|
operations,
|
|
13
13
|
parseApiJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AHB4OJCI.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
boolean,
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
string,
|
|
28
28
|
transform,
|
|
29
29
|
unknown
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
31
31
|
import {
|
|
32
32
|
CliError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
38
|
+
// 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/codegen/runtime.js
|
|
39
39
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
40
40
|
var INTEGER = /^-?\d+$/;
|
|
41
41
|
var INT64_MIN = -(2n ** 63n);
|