@wirecat/drive-cli 0.61.0 → 0.62.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/browse.d.ts +20 -0
- package/dist/browse.d.ts.map +1 -0
- package/dist/browse.js +146 -0
- package/dist/browse.js.map +1 -0
- package/dist/bundle/{all-profiles-H4L3Z5UM.js → all-profiles-CKD2DWUK.js} +14 -14
- package/dist/bundle/{anthropic-PPGFISVP.js → anthropic-E3T4USLA.js} +9 -9
- package/dist/bundle/{app-server-YXVK2FUZ.js → app-server-JB2AEWWL.js} +58 -55
- package/dist/bundle/{bun-DKZAL6ML.js → bun-CC44AAND.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTZY36QK.js → bun-sqlite-AUMFKYVR.js} +8 -8
- package/dist/bundle/{chunk-KV4267S4.js → chunk-27YUUGXQ.js} +1 -1
- package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-2HF2MRXI.js} +1 -1
- package/dist/bundle/{chunk-3I2D5TK2.js → chunk-2KN35F32.js} +10 -10
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-4OSSOWDM.js} +1 -1
- package/dist/bundle/{chunk-UO2IUDVK.js → chunk-4SIZEJ3M.js} +2 -2
- package/dist/bundle/{chunk-6Y2FWJZ4.js → chunk-67ZQCWBV.js} +3 -3
- package/dist/bundle/{chunk-OFFA54TW.js → chunk-6EY46GAN.js} +2 -2
- package/dist/bundle/{chunk-ECEYAQGN.js → chunk-7W5HYGVW.js} +4 -2
- package/dist/bundle/{chunk-67HS46KM.js → chunk-7ZXIWZQ6.js} +12 -12
- package/dist/bundle/{chunk-J5UDQD5S.js → chunk-AH5C3D3D.js} +5 -5
- package/dist/bundle/{chunk-BCWUDTYQ.js → chunk-AQVUEZEP.js} +2 -2
- package/dist/bundle/{chunk-K7LS3NGM.js → chunk-CJHY5YIF.js} +494 -227
- package/dist/bundle/{chunk-PY7LKNOS.js → chunk-CZ2GJHLL.js} +2 -2
- package/dist/bundle/{chunk-NIX2MWHZ.js → chunk-DJOAMGF4.js} +39 -25
- package/dist/bundle/{chunk-AWN22PJK.js → chunk-DRZZBN3V.js} +3 -3
- package/dist/bundle/{chunk-DEPMQHXQ.js → chunk-DWJHL6DV.js} +4 -4
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-E43ENLJJ.js} +1 -1
- package/dist/bundle/{chunk-NZ2EIZLX.js → chunk-EOOGWUTP.js} +10 -10
- package/dist/bundle/{chunk-5W56YMQS.js → chunk-EW7PKB4M.js} +58 -49
- package/dist/bundle/{chunk-VYXVPYA3.js → chunk-FEZF3TII.js} +6 -6
- package/dist/bundle/{chunk-I26VL4W7.js → chunk-FNWIJ6EJ.js} +2 -2
- package/dist/bundle/{chunk-OLPJRD4S.js → chunk-FUITWY7O.js} +1 -1
- package/dist/bundle/{chunk-XZBR2O63.js → chunk-HCNQT3QE.js} +1439 -770
- package/dist/bundle/{chunk-Q4XVBKX4.js → chunk-HG6CAYJH.js} +3 -3
- package/dist/bundle/{chunk-O5CUFS7T.js → chunk-IR4SQLBR.js} +2 -2
- package/dist/bundle/{chunk-VPDAH7PJ.js → chunk-JK3U25QZ.js} +1 -1
- package/dist/bundle/{chunk-UKOYQC5O.js → chunk-JN5TVEEL.js} +94 -26
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-KLFSRKHB.js} +1 -1
- package/dist/bundle/{chunk-RFRCOAWS.js → chunk-L7K2MOIC.js} +22 -22
- package/dist/bundle/{chunk-XYCCGGKN.js → chunk-LQKD257P.js} +582 -424
- package/dist/bundle/{chunk-73WSULMI.js → chunk-LWE4JGRN.js} +2 -2
- package/dist/bundle/{chunk-XGMDWIUP.js → chunk-MN4VXU3M.js} +4 -4
- package/dist/bundle/{chunk-N2RLJTIW.js → chunk-N7OZPKU7.js} +4 -4
- package/dist/bundle/{chunk-OGNOQDWB.js → chunk-O2XOX4HB.js} +34 -10
- package/dist/bundle/{chunk-3SJQNS72.js → chunk-O7ALBI2I.js} +5 -5
- package/dist/bundle/{chunk-3WZH3WV3.js → chunk-OBH5BA62.js} +3 -3
- package/dist/bundle/{chunk-DCBFNBEB.js → chunk-OD4U7GUY.js} +20 -20
- package/dist/bundle/{chunk-PJTX2MOI.js → chunk-ONP2IBHY.js} +26 -26
- package/dist/bundle/{chunk-BXR7BKM3.js → chunk-OTROVC4E.js} +1 -1
- package/dist/bundle/{chunk-JVBLXSAA.js → chunk-PEQA6LA5.js} +617 -243
- package/dist/bundle/{chunk-XLFJLZJL.js → chunk-Q2LRPOKL.js} +22 -14
- package/dist/bundle/{chunk-E5EXJ2XS.js → chunk-QCKZ3GAA.js} +4 -4
- package/dist/bundle/{chunk-BQMIDYBA.js → chunk-QCX6XZLA.js} +12 -12
- package/dist/bundle/{chunk-TKGAYKXW.js → chunk-QH7DOVO3.js} +204 -58
- package/dist/bundle/{chunk-YMBFZA3H.js → chunk-QTI6IVHZ.js} +8 -8
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-R347FPYU.js} +1 -1
- package/dist/bundle/chunk-RIDQNVZM.js +64 -0
- package/dist/bundle/{chunk-AM4RIWOZ.js → chunk-RPMKG63Z.js} +18 -4
- package/dist/bundle/{chunk-EPCJUL6M.js → chunk-RWSXVCSG.js} +3 -3
- package/dist/bundle/{chunk-36CWGEVX.js → chunk-SVPCHFKI.js} +2 -2
- package/dist/bundle/{chunk-ZHYRHERD.js → chunk-SW4I5BR7.js} +2 -2
- package/dist/bundle/{chunk-FE5JJXKA.js → chunk-T5NWWXS2.js} +2 -2
- package/dist/bundle/{chunk-E6J5YH2N.js → chunk-T7X53FCJ.js} +34 -34
- package/dist/bundle/{chunk-X2CXW4HM.js → chunk-TDX4GZFO.js} +7 -7
- package/dist/bundle/{chunk-3UPIJ7DW.js → chunk-U2BFYSQV.js} +14158 -2039
- package/dist/bundle/{chunk-HFM653T3.js → chunk-UGXN5D7U.js} +719 -128
- package/dist/bundle/{chunk-WUP2MJDN.js → chunk-UOXOLGNG.js} +2 -2
- package/dist/bundle/{chunk-J4HQVHMN.js → chunk-UQLWMGSD.js} +5 -5
- package/dist/bundle/{chunk-6DN4VPA7.js → chunk-VAYB52HF.js} +33 -31
- package/dist/bundle/{chunk-BF6TQMNB.js → chunk-VQDD64A4.js} +8 -8
- package/dist/bundle/{chunk-ZMNYK3FC.js → chunk-W4RTIL7S.js} +5 -5
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-WZKEU7WR.js} +4 -2
- package/dist/bundle/{chunk-QR5VQXQ5.js → chunk-XEW2EN6F.js} +51 -37
- package/dist/bundle/{chunk-DXPOVLQC.js → chunk-XFRRKZHQ.js} +223 -89
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-XS5POQST.js} +1 -1
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-XZUS7XRO.js} +1 -1
- package/dist/bundle/{chunk-6SUGANRJ.js → chunk-YALI4C7C.js} +6 -6
- package/dist/bundle/{chunk-WIU733D2.js → chunk-YMWENGKH.js} +1 -1
- package/dist/bundle/{chunk-CACYL36O.js → chunk-YOJDGAPT.js} +8 -8
- package/dist/bundle/{chunk-S4YK6TTG.js → chunk-YPFUYQDP.js} +13 -13
- package/dist/bundle/{chunk-3252WXOL.js → chunk-YUWPNG7B.js} +1 -1
- package/dist/bundle/{chunk-2RJA4BQB.js → chunk-YXYTY4GF.js} +39 -26
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-ZMOUUOT2.js} +1 -1
- package/dist/bundle/command-contract-OB5BRABN.js +39 -0
- package/dist/bundle/{decode-62A3HGPW.js → decode-WIIX3Y2X.js} +8 -8
- package/dist/bundle/{dispatch-IE7PBEQC.js → dispatch-GEFIXA6X.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-OYINM4C4.js} +2 -2
- package/dist/bundle/{embed-J3IBVV2V.js → embed-DWZIYMBX.js} +9 -9
- package/dist/bundle/{embedder-QFPMDRT2.js → embedder-ILWH7ZRM.js} +12 -12
- package/dist/bundle/entry-V5V3TOTY.js +22 -0
- package/dist/bundle/{failure-BKOGBMIC.js → failure-GV77W3CD.js} +4 -4
- package/dist/bundle/first-run-V3VVLQF4.js +30 -0
- package/dist/bundle/first-screen-Y3RIN7FU.js +37 -0
- package/dist/bundle/{google-RXM2XEPD.js → google-KLZSUAVY.js} +13 -13
- package/dist/bundle/{google-api-NC65BZO4.js → google-api-HZQ5R4ZO.js} +57 -57
- package/dist/bundle/grants-L7XLHLUT.js +105 -0
- package/dist/bundle/{identity-PI6F2GWA.js → identity-J2DON4IO.js} +6 -6
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-HGOJ23AJ.js} +1 -1
- package/dist/bundle/{login-HTY7GT2S.js → login-BD2TS4GY.js} +63 -63
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-GWDA3HOA.js} +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-CPKTDPH7.js} +2 -2
- package/dist/bundle/{node-sqlite-G2Y5SFJM.js → node-sqlite-IXDCRLSX.js} +9 -9
- package/dist/bundle/oauth-HOGY4YBB.js +22 -0
- package/dist/bundle/{open-WD4GFSJD.js → open-O7P3ZV3Y.js} +8 -8
- package/dist/bundle/{openai-QVM4PMY7.js → openai-RCFQKCXC.js} +17 -17
- package/dist/bundle/{process-SWPJGPQC.js → process-KXDRJO22.js} +1 -1
- package/dist/bundle/{program-WHYFAMXR.js → program-UCHFC7JQ.js} +228 -85
- package/dist/bundle/prompt-EVPPBN5W.js +17 -0
- package/dist/bundle/{reasons-Q34DQWB6.js → reasons-57J2D77K.js} +5 -5
- package/dist/bundle/{recognize-DM3YWHSE.js → recognize-MRCYGP2J.js} +7 -7
- package/dist/bundle/{remote-KXVWRK7J.js → remote-L3L4PHKF.js} +10 -10
- package/dist/bundle/{rerank-TINXM3MY.js → rerank-PSOE6XFT.js} +10 -10
- package/dist/bundle/{serve-IY2WL656.js → serve-72OGS3BF.js} +12 -12
- package/dist/bundle/server-C5TGNFXW.js +70 -0
- package/dist/bundle/{server-VPY3OWPC.js → server-SCXKYHBO.js} +44 -44
- package/dist/bundle/{services-PXNBOCOC.js → services-YAFTELBI.js} +42 -32
- package/dist/bundle/{sqlite-runtime-5ZK2CV7Y.js → sqlite-runtime-DLK4SU33.js} +9 -9
- package/dist/bundle/{start-LDVCN3DK.js → start-AFFA3LKM.js} +9 -7
- package/dist/bundle/{state-3MKTT3VS.js → state-T5VNAJSZ.js} +9 -9
- package/dist/bundle/{store-7M4MSUJV.js → store-4OFK7PKQ.js} +48 -28
- package/dist/bundle/{store-4VQOT5IJ.js → store-R6MSY2IM.js} +20 -18
- package/dist/bundle/store-maintenance-command-QDMCXGV6.js +60 -0
- package/dist/bundle/tokens-HIG36RNS.js +103 -0
- package/dist/commands/folders.d.ts +2 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +16 -3
- package/dist/commands/folders.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +15 -6
- 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/chunk-W767AUNR.js +0 -132
- package/dist/bundle/command-contract-T3EO5AYD.js +0 -39
- package/dist/bundle/entry-YQSYER66.js +0 -22
- package/dist/bundle/first-run-ZIFPVZAI.js +0 -30
- package/dist/bundle/first-screen-L5U26EY7.js +0 -37
- package/dist/bundle/grants-SEWUYYH3.js +0 -105
- package/dist/bundle/oauth-MWBKBI4T.js +0 -22
- package/dist/bundle/prompt-OVYCGZB7.js +0 -17
- package/dist/bundle/server-EMWVVT2C.js +0 -70
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +0 -60
- package/dist/bundle/tokens-XUKLM3SL.js +0 -103
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-ZQ3GWKDQ.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.62.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-CKD2DWUK.js","../bundle/anthropic-E3T4USLA.js","../bundle/app-server-JB2AEWWL.js","../bundle/bun-CC44AAND.js","../bundle/bun-sqlite-AUMFKYVR.js","../bundle/command-contract-OB5BRABN.js","../bundle/decode-WIIX3Y2X.js","../bundle/dispatch-GEFIXA6X.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-OYINM4C4.js","../bundle/embed-DWZIYMBX.js","../bundle/embedder-ILWH7ZRM.js","../bundle/entry-V5V3TOTY.js","../bundle/failure-GV77W3CD.js","../bundle/first-run-V3VVLQF4.js","../bundle/first-screen-Y3RIN7FU.js","../bundle/google-KLZSUAVY.js","../bundle/google-api-HZQ5R4ZO.js","../bundle/grants-L7XLHLUT.js","../bundle/identity-J2DON4IO.js","../bundle/instructions-HGOJ23AJ.js","../bundle/login-BD2TS4GY.js","../bundle/mcp-GWDA3HOA.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-CPKTDPH7.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-IXDCRLSX.js","../bundle/oauth-HOGY4YBB.js","../bundle/open-O7P3ZV3Y.js","../bundle/openai-RCFQKCXC.js","../bundle/process-KXDRJO22.js","../bundle/program-UCHFC7JQ.js","../bundle/prompt-EVPPBN5W.js","../bundle/reasons-57J2D77K.js","../bundle/recognize-MRCYGP2J.js","../bundle/remote-L3L4PHKF.js","../bundle/rerank-PSOE6XFT.js","../bundle/serve-72OGS3BF.js","../bundle/server-C5TGNFXW.js","../bundle/server-SCXKYHBO.js","../bundle/services-YAFTELBI.js","../bundle/sqlite-runtime-DLK4SU33.js","../bundle/start-AFFA3LKM.js","../bundle/state-T5VNAJSZ.js","../bundle/store-4OFK7PKQ.js","../bundle/store-R6MSY2IM.js","../bundle/store-maintenance-command-QDMCXGV6.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-HIG36RNS.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
package/dist/browse.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ListBody } from "@wirecat/cli-core/cli";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
/** Not a Google id: Drive has no folder for the files others shared, so browse names that root itself. */
|
|
4
|
+
export declare const SHARED_WITH_ME = "shared-with-me";
|
|
5
|
+
export type Call = (method: string, params: Record<string, unknown>) => Promise<unknown>;
|
|
6
|
+
export declare const browseRow: v.StrictObjectSchema<{
|
|
7
|
+
readonly id: v.StringSchema<undefined>;
|
|
8
|
+
readonly name: v.StringSchema<undefined>;
|
|
9
|
+
readonly kind: v.PicklistSchema<["my_drive", "shared_with_me", "shared_drive", "folder"], undefined>;
|
|
10
|
+
readonly parent: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly location: v.PicklistSchema<["my_drive", "shared_with_me", "shared_drive"], undefined>;
|
|
12
|
+
readonly drive_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly child_folders: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
14
|
+
readonly added: v.BooleanSchema<undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
export type BrowseRow = v.InferOutput<typeof browseRow>;
|
|
17
|
+
export declare const BROWSE_HELP = "\nEach item, one level of the tree (--json prints them under \"items\"):\n id folder id to pass to --parent or to folders add; shared-with-me at the top level\n name folder name as Google shows it\n kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)\n parent the --parent given, or null at the top level\n location where the folder lives: my_drive, shared_with_me or shared_drive\n drive_id the shared drive's id, or null\n child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)\n added whether sync already imports this folder (folders add)\nFolders are listed by name. Only folders are listed; files inside them are not.\nFailures carry error.reason: oauth.missing (not signed in), oauth.expired (sign in again),\nprovider.rate-limited (retry later), not_found code (no such folder).";
|
|
18
|
+
/** One level of the owner's remote folders, read-only: the top level, or the folders directly inside `parent`. */
|
|
19
|
+
export declare const browseFolders: (call: Call, parent: string | undefined, selected: readonly string[]) => Promise<ListBody<BrowseRow>>;
|
|
20
|
+
//# sourceMappingURL=browse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../src/browse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,0GAA0G;AAC1G,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAE9C,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAExF,eAAO,MAAM,SAAS;;;;;;;;;aASpB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,WAAW,q7BAY8C,CAAA;AAyHtE,kHAAkH;AAClH,eAAO,MAAM,aAAa,SAClB,IAAI,UACF,MAAM,GAAG,SAAS,YAChB,SAAS,MAAM,EAAE,KAC1B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAmC7B,CAAA"}
|
package/dist/browse.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { CliError } from "@wirecat/cli-base";
|
|
2
|
+
import { listOf } from "@wirecat/cli-core/cli";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
import { FOLDER } from "./model.js";
|
|
5
|
+
import { MAX_ENTRIES } from "./supported.js";
|
|
6
|
+
/** Not a Google id: Drive has no folder for the files others shared, so browse names that root itself. */
|
|
7
|
+
export const SHARED_WITH_ME = "shared-with-me";
|
|
8
|
+
export const browseRow = v.strictObject({
|
|
9
|
+
id: v.string(),
|
|
10
|
+
name: v.string(),
|
|
11
|
+
kind: v.picklist(["my_drive", "shared_with_me", "shared_drive", "folder"]),
|
|
12
|
+
parent: v.nullable(v.string()),
|
|
13
|
+
location: v.picklist(["my_drive", "shared_with_me", "shared_drive"]),
|
|
14
|
+
drive_id: v.nullable(v.string()),
|
|
15
|
+
child_folders: v.nullable(v.number()),
|
|
16
|
+
added: v.boolean(),
|
|
17
|
+
});
|
|
18
|
+
export const BROWSE_HELP = `
|
|
19
|
+
Each item, one level of the tree (--json prints them under "items"):
|
|
20
|
+
id folder id to pass to --parent or to folders add; shared-with-me at the top level
|
|
21
|
+
name folder name as Google shows it
|
|
22
|
+
kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)
|
|
23
|
+
parent the --parent given, or null at the top level
|
|
24
|
+
location where the folder lives: my_drive, shared_with_me or shared_drive
|
|
25
|
+
drive_id the shared drive's id, or null
|
|
26
|
+
child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)
|
|
27
|
+
added whether sync already imports this folder (folders add)
|
|
28
|
+
Folders are listed by name. Only folders are listed; files inside them are not.
|
|
29
|
+
Failures carry error.reason: oauth.missing (not signed in), oauth.expired (sign in again),
|
|
30
|
+
provider.rate-limited (retry later), not_found code (no such folder).`;
|
|
31
|
+
const PAGE_BOUND = 1000;
|
|
32
|
+
const COUNTED_LEVEL = 1000;
|
|
33
|
+
const COUNT_CHUNK = 50;
|
|
34
|
+
const SAFE_ID = /^[A-Za-z0-9_-]{1,200}$/;
|
|
35
|
+
const NOT_TRASHED_FOLDER = `mimeType = '${FOLDER}' and trashed = false`;
|
|
36
|
+
const ACROSS_DRIVES = { supportsAllDrives: true, includeItemsFromAllDrives: true };
|
|
37
|
+
/** Every page of one Google list, bounded like sync's folder listing. */
|
|
38
|
+
const everyPage = async (call, method, params, key) => {
|
|
39
|
+
const rows = [];
|
|
40
|
+
const seen = new Set();
|
|
41
|
+
let incomplete = false;
|
|
42
|
+
let pageToken;
|
|
43
|
+
for (let page = 0; page < PAGE_BOUND; page++) {
|
|
44
|
+
const data = ((await call(method, { ...params, ...(pageToken ? { pageToken } : {}) })) ?? {});
|
|
45
|
+
for (const row of data[key] ?? [])
|
|
46
|
+
rows.push(row);
|
|
47
|
+
if (data.incompleteSearch)
|
|
48
|
+
incomplete = true;
|
|
49
|
+
if (rows.length > MAX_ENTRIES)
|
|
50
|
+
throw new CliError("provider_error", `this level holds more than ${MAX_ENTRIES} folders; drive lists at most that`, {
|
|
51
|
+
reason: "listing.too-large",
|
|
52
|
+
});
|
|
53
|
+
if (!data.nextPageToken)
|
|
54
|
+
return { rows, incomplete };
|
|
55
|
+
if (seen.has(data.nextPageToken))
|
|
56
|
+
throw new CliError("invalid_response", "Google repeated a folder page token");
|
|
57
|
+
seen.add(data.nextPageToken);
|
|
58
|
+
pageToken = data.nextPageToken;
|
|
59
|
+
}
|
|
60
|
+
throw new CliError("provider_error", "folder pagination exceeded its bound", { reason: "listing.too-large" });
|
|
61
|
+
};
|
|
62
|
+
/** One batched query per 50 folders instead of one per folder; null when the level is too big to count. */
|
|
63
|
+
const childCounts = async (call, ids) => {
|
|
64
|
+
const counted = ids.filter((id) => SAFE_ID.test(id));
|
|
65
|
+
if (counted.length > COUNTED_LEVEL)
|
|
66
|
+
return undefined;
|
|
67
|
+
const counts = new Map(counted.map((id) => [id, 0]));
|
|
68
|
+
for (let start = 0; start < counted.length; start += COUNT_CHUNK) {
|
|
69
|
+
const chunk = counted.slice(start, start + COUNT_CHUNK);
|
|
70
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
71
|
+
q: `${NOT_TRASHED_FOLDER} and (${chunk.map((id) => `'${id}' in parents`).join(" or ")})`,
|
|
72
|
+
fields: "nextPageToken,incompleteSearch,files(parents)",
|
|
73
|
+
pageSize: 1000,
|
|
74
|
+
...ACROSS_DRIVES,
|
|
75
|
+
}, "files");
|
|
76
|
+
if (incomplete)
|
|
77
|
+
return undefined;
|
|
78
|
+
for (const row of rows)
|
|
79
|
+
for (const parent of row.parents ?? []) {
|
|
80
|
+
const count = counts.get(parent);
|
|
81
|
+
if (count !== undefined)
|
|
82
|
+
counts.set(parent, count + 1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return counts;
|
|
86
|
+
};
|
|
87
|
+
const byName = (a, b) => a.name.localeCompare(b.name, undefined, { sensitivity: "base", numeric: true }) || a.id.localeCompare(b.id);
|
|
88
|
+
const listed = (items, incomplete) => listOf("", {
|
|
89
|
+
items,
|
|
90
|
+
limit: Math.max(1, items.length),
|
|
91
|
+
has_more: false,
|
|
92
|
+
...(incomplete
|
|
93
|
+
? { missing: [{ field: "items", why: "Google searched only some of the drives; some folders may be missing" }] }
|
|
94
|
+
: {}),
|
|
95
|
+
});
|
|
96
|
+
const roots = async (call, added) => {
|
|
97
|
+
const myDrive = ((await call("drive.files.get", { fileId: "root", fields: "id" })) ?? {});
|
|
98
|
+
if (!myDrive.id)
|
|
99
|
+
throw new CliError("invalid_response", "Google did not return the My Drive folder");
|
|
100
|
+
const { rows: drives } = await everyPage(call, "drive.drives.list", { pageSize: 100, fields: "nextPageToken,drives(id,name)" }, "drives");
|
|
101
|
+
const shared = drives.flatMap((drive) => (drive.id ? [{ id: drive.id, name: drive.name ?? "" }] : []));
|
|
102
|
+
const counts = await childCounts(call, [myDrive.id, ...shared.map((drive) => drive.id)]);
|
|
103
|
+
const top = (id, name, kind) => ({
|
|
104
|
+
id,
|
|
105
|
+
name,
|
|
106
|
+
kind,
|
|
107
|
+
parent: null,
|
|
108
|
+
location: kind,
|
|
109
|
+
drive_id: kind === "shared_drive" ? id : null,
|
|
110
|
+
child_folders: kind === "shared_with_me" ? null : (counts?.get(id) ?? null),
|
|
111
|
+
added: added(id) || (kind === "my_drive" && added("root")),
|
|
112
|
+
});
|
|
113
|
+
return listed([
|
|
114
|
+
top(myDrive.id, "My Drive", "my_drive"),
|
|
115
|
+
top(SHARED_WITH_ME, "Shared with me", "shared_with_me"),
|
|
116
|
+
...shared.map((drive) => top(drive.id, drive.name, "shared_drive")).sort(byName),
|
|
117
|
+
], false);
|
|
118
|
+
};
|
|
119
|
+
/** One level of the owner's remote folders, read-only: the top level, or the folders directly inside `parent`. */
|
|
120
|
+
export const browseFolders = async (call, parent, selected) => {
|
|
121
|
+
const added = (id) => selected.includes(id);
|
|
122
|
+
if (parent === undefined)
|
|
123
|
+
return roots(call, added);
|
|
124
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
125
|
+
q: parent === SHARED_WITH_ME
|
|
126
|
+
? `sharedWithMe = true and ${NOT_TRASHED_FOLDER}`
|
|
127
|
+
: `'${parent}' in parents and ${NOT_TRASHED_FOLDER}`,
|
|
128
|
+
fields: "nextPageToken,incompleteSearch,files(id,name,driveId,ownedByMe)",
|
|
129
|
+
pageSize: 1000,
|
|
130
|
+
...ACROSS_DRIVES,
|
|
131
|
+
}, "files");
|
|
132
|
+
const folders = rows.filter((row) => Boolean(row.id));
|
|
133
|
+
const counts = await childCounts(call, folders.map((folder) => folder.id));
|
|
134
|
+
const items = folders.map((folder) => ({
|
|
135
|
+
id: folder.id,
|
|
136
|
+
name: folder.name ?? "",
|
|
137
|
+
kind: "folder",
|
|
138
|
+
parent,
|
|
139
|
+
location: folder.driveId ? "shared_drive" : folder.ownedByMe === false ? "shared_with_me" : "my_drive",
|
|
140
|
+
drive_id: folder.driveId ?? null,
|
|
141
|
+
child_folders: counts?.get(folder.id) ?? null,
|
|
142
|
+
added: added(folder.id),
|
|
143
|
+
}));
|
|
144
|
+
return listed(items.sort(byName), incomplete);
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=browse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browse.js","sourceRoot":"","sources":["../src/browse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,0GAA0G;AAC1G,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAA;AAI9C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,YAAY,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;IAC1E,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;IACpE,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,aAAa,EAAE,CAAC,CAAC,QAAQ,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B,EAAE;QACxD,MAAM,EAAE,iEAAiE;QACzE,QAAQ,EAAE,IAAI;QACd,GAAG,aAAa;KACjB,EACD,OAAO,CACR,CAAA;IACD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAuC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;IAC1F,MAAM,MAAM,GAAG,MAAM,WAAW,CAC9B,IAAI,EACJ,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CACnC,CAAA;IACD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CACvB,CAAC,MAAM,EAAa,EAAE,CAAC,CAAC;QACtB,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM;QACN,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU;QACtG,QAAQ,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;QAChC,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,IAAI;QAC7C,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;KACxB,CAAC,CACH,CAAA;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAA;AAC/C,CAAC,CAAA"}
|
|
@@ -2,33 +2,33 @@ 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-E43ENLJJ.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-LWE4JGRN.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-
|
|
16
|
+
import "./chunk-VQDD64A4.js";
|
|
17
|
+
import "./chunk-AQVUEZEP.js";
|
|
18
|
+
import "./chunk-JK3U25QZ.js";
|
|
19
|
+
import "./chunk-ZQ3GWKDQ.js";
|
|
20
|
+
import "./chunk-OD4U7GUY.js";
|
|
21
|
+
import "./chunk-UQLWMGSD.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-2HF2MRXI.js";
|
|
24
|
+
import "./chunk-6EY46GAN.js";
|
|
25
|
+
import "./chunk-FEZF3TII.js";
|
|
26
|
+
import "./chunk-4OSSOWDM.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
33
33
|
import { randomUUID } from "node:crypto";
|
|
34
34
|
var PROTOCOL = "2025-06-18";
|
|
@@ -262,7 +262,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
262
262
|
}, "serveAllProfilesOverStdio");
|
|
263
263
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
264
264
|
const { build, close } = allProfilesServer(options);
|
|
265
|
-
const { serveOverHttp } = await import("./serve-
|
|
265
|
+
const { serveOverHttp } = await import("./serve-72OGS3BF.js");
|
|
266
266
|
const listening = await serveOverHttp(build, {
|
|
267
267
|
...http,
|
|
268
268
|
appName: options.command,
|
|
@@ -2,31 +2,31 @@ 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-DRZZBN3V.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T5NWWXS2.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
12
|
} from "./chunk-FXBHOCJK.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-OD4U7GUY.js";
|
|
14
|
+
import "./chunk-UQLWMGSD.js";
|
|
15
15
|
import "./chunk-Y5E2WNWB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2HF2MRXI.js";
|
|
17
|
+
import "./chunk-6EY46GAN.js";
|
|
18
18
|
import {
|
|
19
19
|
array,
|
|
20
20
|
optional,
|
|
21
21
|
strictObject,
|
|
22
22
|
string
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-FEZF3TII.js";
|
|
24
|
+
import "./chunk-4OSSOWDM.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
30
30
|
var options = strictObject({
|
|
31
31
|
stop_sequences: optional(array(string()))
|
|
32
32
|
});
|
|
@@ -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-T7X53FCJ.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XEW2EN6F.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-XFRRKZHQ.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JN5TVEEL.js";
|
|
21
21
|
import {
|
|
22
22
|
answeredWire
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-E43ENLJJ.js";
|
|
24
24
|
import {
|
|
25
25
|
StdioServerTransport,
|
|
26
26
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LWE4JGRN.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-EW7PKB4M.js";
|
|
32
|
+
import "./chunk-YXYTY4GF.js";
|
|
33
|
+
import "./chunk-O7ALBI2I.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_OUTPUT_BYTES,
|
|
36
36
|
changesAuthorityAt,
|
|
@@ -39,65 +39,65 @@ import {
|
|
|
39
39
|
judgedTargets,
|
|
40
40
|
readsOverMcpAt,
|
|
41
41
|
rootOf2 as rootOf
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-PEQA6LA5.js";
|
|
43
|
+
import "./chunk-VQDD64A4.js";
|
|
44
|
+
import "./chunk-MN4VXU3M.js";
|
|
45
45
|
import {
|
|
46
46
|
readOnlyLockOf
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7W5HYGVW.js";
|
|
48
48
|
import {
|
|
49
49
|
mcpHttpMarker
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-DWJHL6DV.js";
|
|
51
|
+
import "./chunk-HG6CAYJH.js";
|
|
52
|
+
import "./chunk-YMWENGKH.js";
|
|
53
53
|
import {
|
|
54
54
|
appInstructions
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-R347FPYU.js";
|
|
56
|
+
import "./chunk-LQKD257P.js";
|
|
57
|
+
import "./chunk-ONP2IBHY.js";
|
|
58
|
+
import "./chunk-YPFUYQDP.js";
|
|
59
|
+
import "./chunk-VAYB52HF.js";
|
|
60
|
+
import "./chunk-AQVUEZEP.js";
|
|
61
|
+
import "./chunk-QCKZ3GAA.js";
|
|
62
|
+
import "./chunk-ZMOUUOT2.js";
|
|
63
|
+
import "./chunk-T5NWWXS2.js";
|
|
64
|
+
import "./chunk-OBH5BA62.js";
|
|
65
|
+
import "./chunk-AH5C3D3D.js";
|
|
66
66
|
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-
|
|
80
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-Q2LRPOKL.js";
|
|
68
|
+
import "./chunk-QH7DOVO3.js";
|
|
69
|
+
import "./chunk-RIDQNVZM.js";
|
|
70
|
+
import "./chunk-U2BFYSQV.js";
|
|
71
|
+
import "./chunk-UOXOLGNG.js";
|
|
72
|
+
import "./chunk-CJHY5YIF.js";
|
|
73
|
+
import "./chunk-EOOGWUTP.js";
|
|
74
|
+
import "./chunk-JK3U25QZ.js";
|
|
75
|
+
import "./chunk-YOJDGAPT.js";
|
|
76
|
+
import "./chunk-TDX4GZFO.js";
|
|
77
|
+
import "./chunk-FNWIJ6EJ.js";
|
|
78
|
+
import "./chunk-YALI4C7C.js";
|
|
79
|
+
import "./chunk-XS5POQST.js";
|
|
80
|
+
import "./chunk-IR4SQLBR.js";
|
|
81
81
|
import "./chunk-D72URWJE.js";
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-27YUUGXQ.js";
|
|
83
|
+
import "./chunk-ZQ3GWKDQ.js";
|
|
84
|
+
import "./chunk-WZKEU7WR.js";
|
|
85
|
+
import "./chunk-OD4U7GUY.js";
|
|
86
86
|
import {
|
|
87
87
|
mcpErrorResult
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-UQLWMGSD.js";
|
|
89
89
|
import "./chunk-Y5E2WNWB.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-2HF2MRXI.js";
|
|
91
|
+
import "./chunk-6EY46GAN.js";
|
|
92
|
+
import "./chunk-FEZF3TII.js";
|
|
93
93
|
import {
|
|
94
94
|
CliError
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-4OSSOWDM.js";
|
|
96
96
|
import {
|
|
97
97
|
__name
|
|
98
98
|
} from "./chunk-ZVVMGPBJ.js";
|
|
99
99
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
101
101
|
var EXCLUDED = [["mcp"]];
|
|
102
102
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
103
103
|
const { app } = options;
|
|
@@ -197,9 +197,12 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
197
197
|
});
|
|
198
198
|
const ended = await new Promise((resolve) => {
|
|
199
199
|
wire.ended.then(() => resolve("input"));
|
|
200
|
-
if (own)
|
|
201
|
-
signal?.
|
|
202
|
-
|
|
200
|
+
if (own) {
|
|
201
|
+
if (signal?.aborted)
|
|
202
|
+
resolve("stopped");
|
|
203
|
+
else
|
|
204
|
+
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
205
|
+
} else {
|
|
203
206
|
process.once("SIGINT", () => resolve("stopped"));
|
|
204
207
|
process.once("SIGTERM", () => resolve("stopped"));
|
|
205
208
|
}
|
|
@@ -212,7 +215,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
212
215
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
213
216
|
const { app } = options;
|
|
214
217
|
const { build } = createAppServer(command, context, options);
|
|
215
|
-
const { serveOverHttp } = await import("./serve-
|
|
218
|
+
const { serveOverHttp } = await import("./serve-72OGS3BF.js");
|
|
216
219
|
const listening = await serveOverHttp(build, {
|
|
217
220
|
...http,
|
|
218
221
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XS5POQST.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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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-SW4I5BR7.js";
|
|
7
|
+
import "./chunk-OD4U7GUY.js";
|
|
8
|
+
import "./chunk-UQLWMGSD.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-2HF2MRXI.js";
|
|
13
|
+
import "./chunk-6EY46GAN.js";
|
|
14
|
+
import "./chunk-FEZF3TII.js";
|
|
15
|
+
import "./chunk-4OSSOWDM.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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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 {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
8
8
|
var CONTROL = (
|
|
9
9
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
10
10
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7W5HYGVW.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SVPCHFKI.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQLWMGSD.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4OSSOWDM.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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
24
|
import { appendFileSync } from "node:fs";
|
|
25
25
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
26
26
|
const words = [];
|
|
@@ -44,7 +44,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
44
44
|
`);
|
|
45
45
|
}, "logVersion");
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
48
48
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
49
49
|
argv: process.argv,
|
|
50
50
|
env: process.env,
|
|
@@ -98,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
98
98
|
if (command.optsWithGlobals().dryRun === true)
|
|
99
99
|
return;
|
|
100
100
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
101
|
-
import("./first-run-
|
|
102
|
-
import("./command-contract-
|
|
101
|
+
import("./first-run-V3VVLQF4.js"),
|
|
102
|
+
import("./command-contract-OB5BRABN.js")
|
|
103
103
|
]);
|
|
104
104
|
await setupAtStart({
|
|
105
105
|
command: entry.app.command,
|
|
@@ -114,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
114
114
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
115
115
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
116
116
|
return false;
|
|
117
|
-
const { readSecret } = await import("./prompt-
|
|
117
|
+
const { readSecret } = await import("./prompt-EVPPBN5W.js");
|
|
118
118
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
119
119
|
input: io.stdin,
|
|
120
120
|
output: io.stderr,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|