@wirecat/drive-cli 0.68.0 → 0.70.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/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-FW3GK3QO.js} +24 -34
- package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-QVKJT3II.js} +8 -8
- package/dist/bundle/{app-server-EB4DH6T7.js → app-server-QU73RD5R.js} +68 -76
- package/dist/bundle/{bun-PWMM6L45.js → bun-5XCD5CBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-TIGSVNSV.js} +9 -9
- package/dist/bundle/{chunk-7BXVI7XF.js → chunk-2SBC4DVV.js} +4 -4
- package/dist/bundle/{chunk-UFPRP7MG.js → chunk-3AHBZP33.js} +10 -15
- package/dist/bundle/{chunk-QRSPFCRY.js → chunk-3CHW7JGR.js} +17 -17
- package/dist/bundle/chunk-3TCMANIM.js +387 -0
- package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-3UWRAIWA.js} +5 -7
- package/dist/bundle/{chunk-5G2BY4B6.js → chunk-3UZ4OH22.js} +32 -31
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-4WK26MPY.js} +1 -1
- package/dist/bundle/{chunk-WUFZGPXX.js → chunk-54BQWRJL.js} +7 -7
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
- package/dist/bundle/{chunk-QKY24RWV.js → chunk-5JTB4URG.js} +12 -12
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-6BMTW5A6.js} +9 -9
- package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6DPOWBKA.js} +6 -6
- package/dist/bundle/{chunk-YUGTJBV3.js → chunk-7C5KENNU.js} +3 -3
- package/dist/bundle/chunk-7DJNURKV.js +823 -0
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
- package/dist/bundle/chunk-7QSRODXM.js +259 -0
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
- package/dist/bundle/chunk-AV5UKJZM.js +729 -0
- package/dist/bundle/{chunk-IVOG6T6P.js → chunk-BBFXQPKD.js} +3 -3
- package/dist/bundle/{chunk-BXHFJTU5.js → chunk-BBRMDMIR.js} +3 -3
- package/dist/bundle/{chunk-DYLYH7VE.js → chunk-BD2K2ONK.js} +4 -4
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-BFKFKDPC.js} +1 -1
- package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-BXPC5TFG.js} +2 -2
- package/dist/bundle/chunk-DHX27E5M.js +31 -0
- package/dist/bundle/{chunk-6QR7NKMG.js → chunk-DR57KDAY.js} +109 -5
- package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-DVI72ZQG.js} +1 -1
- package/dist/bundle/{chunk-WGX4DZPW.js → chunk-DVVUJ254.js} +2 -2
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-EDO5LZVF.js} +1 -1
- package/dist/bundle/{chunk-QTRYJZL7.js → chunk-EG62WVR2.js} +6 -6
- package/dist/bundle/{chunk-WCNTDETD.js → chunk-F5KJWRF5.js} +98 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-FADAOLGB.js} +4 -4
- package/dist/bundle/{chunk-FAMXUI2X.js → chunk-FCSHWUMW.js} +5 -5
- package/dist/bundle/{chunk-O7T3WGCV.js → chunk-FN3RXBO7.js} +6 -6
- package/dist/bundle/{chunk-5W65QTYS.js → chunk-FONIFRYI.js} +4 -4
- package/dist/bundle/{chunk-UUQJVKPB.js → chunk-FVTKFIQH.js} +2340 -1436
- package/dist/bundle/{chunk-7A77GYCE.js → chunk-FYPW7NMH.js} +4 -4
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-GTLXBAJV.js → chunk-GAHIHE4K.js} +3035 -2482
- package/dist/bundle/{chunk-CMWFYZ45.js → chunk-GJZSVSV3.js} +2 -2
- package/dist/bundle/{chunk-QWGEOQHA.js → chunk-GK3BJMGK.js} +1 -1
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-GPDPEHYX.js} +1 -1
- package/dist/bundle/{chunk-KPKIHJIT.js → chunk-GV5DGHSA.js} +4 -4
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-HK225DAG.js} +1 -1
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-HRATXUFH.js} +22 -20
- package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-HWUPU6WX.js} +8 -8
- package/dist/bundle/{chunk-6WAC2LOS.js → chunk-HYXXMSVD.js} +8614 -8597
- package/dist/bundle/{chunk-YYIWPH53.js → chunk-I7YSHUPW.js} +13 -13
- package/dist/bundle/{chunk-MWCPKUU4.js → chunk-IFTX7AQU.js} +5 -5
- package/dist/bundle/{chunk-SOS4U2RF.js → chunk-IGNIUDI3.js} +71 -49
- package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
- package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-KSJAFMU5.js} +78 -31
- package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-LINBDWJK.js} +2 -2
- package/dist/bundle/{chunk-43NEDPXB.js → chunk-LMJBQFW6.js} +6 -6
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
- package/dist/bundle/{chunk-PGPHEC2X.js → chunk-MXNQZAJQ.js} +2 -2
- package/dist/bundle/{chunk-RT5NT62B.js → chunk-NP7LJATI.js} +16 -70
- package/dist/bundle/chunk-OY7TNUEC.js +16 -0
- package/dist/bundle/{chunk-74NCZKRW.js → chunk-P77FL6RY.js} +18 -18
- package/dist/bundle/chunk-P7PLKNPX.js +3611 -0
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-PAPY6Q6H.js} +1 -1
- package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-PN4JYURZ.js} +102 -57
- package/dist/bundle/{chunk-MOKEB656.js → chunk-PR7XD2DI.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-QBAOIMVB.js} +1 -1
- package/dist/bundle/{chunk-ULNN3LCY.js → chunk-RCTOWLCD.js} +44 -37
- package/dist/bundle/{chunk-7TNQZKRD.js → chunk-REM5WHHQ.js} +77 -76
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
- package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-RLNZ7NX5.js} +2 -2
- package/dist/bundle/chunk-RQNRYF6D.js +170 -0
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
- package/dist/bundle/{chunk-CRIEW4FP.js → chunk-T5D4OGDC.js} +2 -2
- package/dist/bundle/{chunk-MLSXHTUB.js → chunk-TGS5VPJD.js} +1228 -455
- package/dist/bundle/chunk-TNKQDS5A.js +335 -0
- package/dist/bundle/{chunk-DU23ET2O.js → chunk-VVN6GHAZ.js} +60 -81
- package/dist/bundle/{chunk-PWIEOATY.js → chunk-WJK6KTCS.js} +325 -14
- package/dist/bundle/{chunk-U52QE4QV.js → chunk-WWE5GO6G.js} +3 -3
- package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-XOL346TJ.js} +2 -2
- package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-XZBA6FVH.js} +3 -3
- package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
- package/dist/bundle/{chunk-DIZBJLPM.js → chunk-YRUR3E3E.js} +68 -78
- package/dist/bundle/{chunk-EEE4H2PA.js → chunk-YZPE72GE.js} +12 -12
- package/dist/bundle/{chunk-F7KAMSXA.js → chunk-ZCXWV4XO.js} +4 -4
- package/dist/bundle/{chunk-NV75QPML.js → chunk-ZHZYGY5R.js} +4 -4
- package/dist/bundle/{cli-L7P36YUH.js → cli-K4D4DIGQ.js} +137 -88
- package/dist/bundle/command-contract-V3F452QI.js +43 -0
- package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-WREK3QBB.js} +33 -31
- package/dist/bundle/decode-SEETPKBH.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-WZ5RKFCX.js} +2 -2
- package/dist/bundle/{embed-WUKOASQG.js → embed-B2UCRZZR.js} +9 -9
- package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-4R6Z7G7L.js} +12 -12
- package/dist/bundle/entry-ORZYRJ5N.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
- package/dist/bundle/first-run-KAKA6KBY.js +31 -0
- package/dist/bundle/first-screen-R645UHRH.js +41 -0
- package/dist/bundle/google-BSO3YB7N.js +45 -0
- package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-SAND2F7L.js} +70 -63
- package/dist/bundle/grants-PLNFYARD.js +118 -0
- package/dist/bundle/{identity-SRL6RSU2.js → identity-JVVGS4U6.js} +6 -6
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-JSMTSB22.js} +1 -1
- package/dist/bundle/{login-N243GGEE.js → login-6WG3YBDU.js} +78 -71
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
- package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
- package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
- package/dist/bundle/{node-BZDMUFTW.js → node-VJMVHOWD.js} +2 -2
- package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-DCNT3HVE.js} +10 -10
- package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
- package/dist/bundle/{open-RVTPKDA3.js → open-NFOEHVW7.js} +8 -8
- package/dist/bundle/{openai-6NN63BMH.js → openai-D47WY7EC.js} +32 -30
- package/dist/bundle/{process-756VBE7E.js → process-Q2FRU5VA.js} +1 -1
- package/dist/bundle/{program-B4QBJYB5.js → program-T2AJJQEM.js} +1327 -1329
- package/dist/bundle/{prompt-HGP2DSRW.js → prompt-YJSDABXN.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
- package/dist/bundle/{recognize-26SHB7HI.js → recognize-6OBEIEB3.js} +7 -7
- package/dist/bundle/{remote-Z4PWHZ5N.js → remote-3SL2QJ7T.js} +13 -13
- package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-L6F5SLIB.js} +10 -10
- package/dist/bundle/{serve-MYJW5IEM.js → serve-GYSWIWH4.js} +12 -12
- package/dist/bundle/server-BI46BSRE.js +80 -0
- package/dist/bundle/{server-XFW3V7CR.js → server-GWWP3RIT.js} +62 -53
- package/dist/bundle/{services-IQG2RVTO.js → services-BDQBRXT5.js} +91 -51
- package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
- package/dist/bundle/{state-ATQK2X3W.js → state-HLNGFI2T.js} +9 -9
- package/dist/bundle/{store-QUBUPK6F.js → store-I43KZNJW.js} +35 -26
- package/dist/bundle/{store-MEHEUOJH.js → store-OSRTGYGI.js} +23 -19
- package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
- package/dist/bundle/tokens-DB7O7QNB.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/policy.d.ts +1 -1
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -3
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.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-2UHQVRH2.js +0 -1235
- package/dist/bundle/chunk-AXYG2DDY.js +0 -4721
- package/dist/bundle/chunk-J5LXL435.js +0 -1316
- package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
- package/dist/bundle/command-contract-EYFGMKIG.js +0 -41
- package/dist/bundle/decode-JEU6JWCV.js +0 -165
- package/dist/bundle/entry-C4NUQFTF.js +0 -25
- package/dist/bundle/first-run-PKHBS7B4.js +0 -30
- package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
- package/dist/bundle/google-XXHSMTVK.js +0 -45
- package/dist/bundle/grants-2U4JVT6O.js +0 -111
- package/dist/bundle/oauth-CMAFXX6A.js +0 -22
- package/dist/bundle/server-HBZPIHDX.js +0 -74
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
- package/dist/bundle/tokens-A2GP4F34.js +0 -111
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CHART_KINDS,
|
|
5
|
+
CHART_SIZE,
|
|
6
|
+
chartAnswer,
|
|
7
|
+
chartPng,
|
|
8
|
+
chartRenderer,
|
|
9
|
+
chatChart,
|
|
10
|
+
keepRefreshedRefs,
|
|
11
|
+
mcpUrlOf,
|
|
12
|
+
refuseWriteBeforeConnecting,
|
|
13
|
+
registerPrompts,
|
|
14
|
+
syncsFirst
|
|
15
|
+
} from "./chunk-RCTOWLCD.js";
|
|
3
16
|
import {
|
|
4
17
|
BinaryResource,
|
|
5
18
|
Picture,
|
|
@@ -20,114 +33,99 @@ import {
|
|
|
20
33
|
tool,
|
|
21
34
|
toolKey,
|
|
22
35
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
CHART_KINDS,
|
|
26
|
-
CHART_SIZE,
|
|
27
|
-
chartAnswer,
|
|
28
|
-
chartPng,
|
|
29
|
-
chartRenderer,
|
|
30
|
-
chatChart,
|
|
31
|
-
keepRefreshedRefs,
|
|
32
|
-
mcpUrlOf,
|
|
33
|
-
refuseWriteBeforeConnecting,
|
|
34
|
-
registerPrompts,
|
|
35
|
-
syncsFirst
|
|
36
|
-
} from "./chunk-ULNN3LCY.js";
|
|
36
|
+
} from "./chunk-IGNIUDI3.js";
|
|
37
37
|
import {
|
|
38
38
|
agentJson,
|
|
39
39
|
skillResource
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
instructions
|
|
43
|
-
} from "./chunk-AIEMFRBU.js";
|
|
44
|
-
import {
|
|
45
|
-
answeredWire
|
|
46
|
-
} from "./chunk-R5FTCNLJ.js";
|
|
40
|
+
} from "./chunk-KSJAFMU5.js";
|
|
47
41
|
import {
|
|
48
42
|
StdioServerTransport,
|
|
43
|
+
answeredWire,
|
|
49
44
|
callerOf,
|
|
50
45
|
callingAgent,
|
|
51
46
|
serveStdio
|
|
52
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-F5KJWRF5.js";
|
|
48
|
+
import {
|
|
49
|
+
instructions
|
|
50
|
+
} from "./chunk-BFKFKDPC.js";
|
|
53
51
|
import {
|
|
54
52
|
McpServer,
|
|
55
53
|
ResourceTemplate
|
|
56
54
|
} from "./chunk-5D4AEUVA.js";
|
|
55
|
+
import {
|
|
56
|
+
mcpHttpMarker
|
|
57
|
+
} from "./chunk-ZHZYGY5R.js";
|
|
57
58
|
import {
|
|
58
59
|
connectedFor
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-3UZ4OH22.js";
|
|
60
61
|
import {
|
|
61
62
|
lackedNeed,
|
|
62
63
|
wholeList
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-AV5UKJZM.js";
|
|
64
65
|
import {
|
|
65
66
|
capability,
|
|
66
67
|
dateWindow,
|
|
67
68
|
guardFor,
|
|
68
69
|
servicesFor,
|
|
69
70
|
storedDeps
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-GAHIHE4K.js";
|
|
71
72
|
import {
|
|
72
73
|
imageSize
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
mcpHttpMarker
|
|
76
|
-
} from "./chunk-NV75QPML.js";
|
|
74
|
+
} from "./chunk-PN4JYURZ.js";
|
|
77
75
|
import {
|
|
78
76
|
warmEmbedders
|
|
79
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-IFTX7AQU.js";
|
|
80
78
|
import {
|
|
81
79
|
stdinFieldOf
|
|
82
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-EDO5LZVF.js";
|
|
83
81
|
import {
|
|
84
82
|
findCommand
|
|
85
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-3UWRAIWA.js";
|
|
86
84
|
import {
|
|
87
85
|
DEFAULT_OUTPUT_BYTES,
|
|
88
86
|
changesAuthorityAt,
|
|
89
87
|
describeProgram,
|
|
90
88
|
environmentOf,
|
|
89
|
+
fetchesAt,
|
|
91
90
|
fetchesOnlyAt,
|
|
92
91
|
itemOf,
|
|
93
92
|
judgedTargets,
|
|
93
|
+
levelFor,
|
|
94
|
+
readKeysForCommand,
|
|
94
95
|
readsOverMcpAt,
|
|
95
96
|
recalledAccount,
|
|
96
97
|
rootOf2 as rootOf,
|
|
97
98
|
sealed,
|
|
98
99
|
snakeKeys
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-TGS5VPJD.js";
|
|
100
101
|
import {
|
|
101
102
|
withCaller
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import {
|
|
104
|
-
levelFor,
|
|
105
|
-
readKeysForCommand
|
|
106
|
-
} from "./chunk-J5LXL435.js";
|
|
103
|
+
} from "./chunk-54BQWRJL.js";
|
|
107
104
|
import {
|
|
108
105
|
readOnlyLockOf
|
|
109
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-PR7XD2DI.js";
|
|
110
107
|
import {
|
|
111
108
|
openStore
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-HYXXMSVD.js";
|
|
113
110
|
import {
|
|
114
111
|
pdfPreviewLimits
|
|
115
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-BBRMDMIR.js";
|
|
116
113
|
import {
|
|
117
114
|
typedCommand
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import {
|
|
120
|
-
timezoneOf
|
|
121
|
-
} from "./chunk-UPCEHSIZ.js";
|
|
115
|
+
} from "./chunk-YCL3SK4T.js";
|
|
122
116
|
import {
|
|
123
117
|
isCliFailure
|
|
124
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-RLNZ7NX5.js";
|
|
119
|
+
import {
|
|
120
|
+
timezoneOf
|
|
121
|
+
} from "./chunk-Q5C6YKAY.js";
|
|
125
122
|
import {
|
|
123
|
+
errorObjectOf,
|
|
126
124
|
mcpErrorResult
|
|
127
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-SONPLYV7.js";
|
|
128
126
|
import {
|
|
129
127
|
visibleControls
|
|
130
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-ABZ2NYDT.js";
|
|
131
129
|
import {
|
|
132
130
|
description,
|
|
133
131
|
integer,
|
|
@@ -142,18 +140,18 @@ import {
|
|
|
142
140
|
regex,
|
|
143
141
|
strictObject,
|
|
144
142
|
string
|
|
145
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-HHAZ6DCY.js";
|
|
146
144
|
import {
|
|
147
145
|
CliError
|
|
148
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-54NDYVZA.js";
|
|
149
147
|
import {
|
|
150
148
|
__name
|
|
151
149
|
} from "./chunk-ZVVMGPBJ.js";
|
|
152
150
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
154
152
|
import { randomUUID } from "node:crypto";
|
|
155
153
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
157
155
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
158
156
|
let held;
|
|
159
157
|
return {
|
|
@@ -172,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
172
170
|
};
|
|
173
171
|
}, "agentLog");
|
|
174
172
|
|
|
175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
176
174
|
var LISTED = 100;
|
|
177
175
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
178
176
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -210,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
210
208
|
});
|
|
211
209
|
}, "registerResources");
|
|
212
210
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
214
212
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
215
213
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
216
214
|
var MessengerSession = class {
|
|
@@ -285,7 +283,7 @@ var MessengerSession = class {
|
|
|
285
283
|
}
|
|
286
284
|
};
|
|
287
285
|
|
|
288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
289
287
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
290
288
|
const _command = messenger.app.command;
|
|
291
289
|
return {
|
|
@@ -339,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
339
337
|
};
|
|
340
338
|
}, "attachmentsTools");
|
|
341
339
|
|
|
342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
343
341
|
var PHOTO_LIMIT = 512 * 1024;
|
|
344
342
|
var IMAGE_TYPES = [
|
|
345
343
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -355,14 +353,16 @@ var messagesPhotoTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
355
353
|
input: object({
|
|
356
354
|
chat: chatOf(messenger),
|
|
357
355
|
message,
|
|
358
|
-
|
|
356
|
+
attachment: optional(pipe(number(), integer(), minValue(1), description("which file of the message, from 1; omit for the first photo")))
|
|
359
357
|
}),
|
|
360
358
|
annotations: READ,
|
|
361
359
|
online: /* @__PURE__ */ __name(async (adapter, args, defaults) => {
|
|
362
360
|
const { id: chatId } = await adapter.resolve(args.chat);
|
|
363
361
|
const saveIt = `the owner can save it with \`${typedCommand(messenger.app.command, `messages download ${chatId} ${args.message}`)}\``;
|
|
364
362
|
const { files } = await capability(adapter, "download", "download attachments")(chatId, args.message);
|
|
365
|
-
|
|
363
|
+
if (args.attachment !== void 0 && args.attachment > files.length)
|
|
364
|
+
throw new CliError("not_found", `message ${args.message} has ${files.length} file${files.length === 1 ? "" : "s"}, no file ${args.attachment}`);
|
|
365
|
+
const photo = args.attachment === void 0 ? files.find((file) => file.kind === "photo") : files[args.attachment - 1];
|
|
366
366
|
if (!photo) {
|
|
367
367
|
const kinds = files.map((file) => file.kind).join(", ");
|
|
368
368
|
throw new CliError(files.length === 0 ? "not_found" : "validation_error", files.length === 0 ? `message ${args.message} has no photo` : `the message has a ${kinds}, not a photo \u2014 ${saveIt}`);
|
|
@@ -393,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
393
393
|
return new Uint8Array(Buffer.concat(chunks));
|
|
394
394
|
}, "readUpTo");
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
397
397
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
398
398
|
stats_charts: tool({
|
|
399
399
|
title: "A chart from a chat's statistics",
|
|
@@ -430,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
430
430
|
})
|
|
431
431
|
}), "statsTools");
|
|
432
432
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
434
434
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
435
435
|
...messagesPhotoTools(messenger),
|
|
436
436
|
...attachmentsTools(messenger),
|
|
437
437
|
...statsTools(messenger)
|
|
438
438
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
439
439
|
|
|
440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
441
441
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
442
442
|
"streams",
|
|
443
443
|
"stdin",
|
|
@@ -496,7 +496,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
496
496
|
return void 0;
|
|
497
497
|
}
|
|
498
498
|
}, "stdin");
|
|
499
|
-
const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && levelOf("messages.sync-first")
|
|
499
|
+
const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first")) && (path[0] !== "stats" || fetchesAt(levelOf(`${path.join(".")}.sync-first`))), "syncAllowed");
|
|
500
500
|
const generated = toolsFromCommands(program.commands, {
|
|
501
501
|
includeUnavailable: true,
|
|
502
502
|
exclude: [["bot"]],
|
|
@@ -602,8 +602,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
602
602
|
});
|
|
603
603
|
}), "invoke");
|
|
604
604
|
let queue = Promise.resolve();
|
|
605
|
-
const queued = /* @__PURE__ */ __name((one, input, env, caller) => {
|
|
606
|
-
const next = queue.then(() => invoke(one, input, env, caller));
|
|
605
|
+
const queued = /* @__PURE__ */ __name((one, input, env, caller, signal) => {
|
|
606
|
+
const next = queue.then(() => signal?.aborted ? { error: errorObjectOf(new CliError("cancelled", `${one.command} was cancelled before it started`)) } : invoke(one, input, env, caller));
|
|
607
607
|
queue = next.catch(() => void 0);
|
|
608
608
|
return next;
|
|
609
609
|
}, "queued");
|
|
@@ -619,7 +619,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
619
619
|
const traceparent = ctx?.mcpReq?._meta?.traceparent;
|
|
620
620
|
const env = typeof traceparent === "string" ? { ...context.env, TRACEPARENT: traceparent } : context.env;
|
|
621
621
|
const caller = callerOf(ctx, keyOfCommand(one.command), source);
|
|
622
|
-
const answer = await withCaller(caller, () => queued(one, args, env, caller));
|
|
622
|
+
const answer = await withCaller(caller, () => queued(one, args, env, caller, ctx?.mcpReq?.signal));
|
|
623
623
|
const result = "error" in answer ? mcpErrorResult(JSON.parse(agentJson(answer.error))) : (() => {
|
|
624
624
|
try {
|
|
625
625
|
return answered(envelope(one.command, answer.result), DEFAULT_OUTPUT_BYTES, targets);
|
|
@@ -675,7 +675,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
675
675
|
spawnJob: sessionOptions.spawnJob,
|
|
676
676
|
limit: settings.limit,
|
|
677
677
|
get syncAllowed() {
|
|
678
|
-
return syncsFirst(messenger) && levelOf("messages.sync-first")
|
|
678
|
+
return syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first"));
|
|
679
679
|
},
|
|
680
680
|
guard,
|
|
681
681
|
settings,
|
|
@@ -742,18 +742,8 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
742
742
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
743
743
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
744
744
|
});
|
|
745
|
-
|
|
746
|
-
wire.ended.then(() => resolve("input"));
|
|
747
|
-
if (own)
|
|
748
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
749
|
-
else {
|
|
750
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
751
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
752
|
-
}
|
|
753
|
-
});
|
|
745
|
+
await wire.finished(own ? signal : void 0);
|
|
754
746
|
try {
|
|
755
|
-
if (ended === "input")
|
|
756
|
-
await wire.answered();
|
|
757
747
|
wire.release();
|
|
758
748
|
await handle.close();
|
|
759
749
|
await session.close();
|
|
@@ -764,7 +754,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
764
754
|
}, "serveOverStdio");
|
|
765
755
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
766
756
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
767
|
-
const { serveOverHttp } = await import("./serve-
|
|
757
|
+
const { serveOverHttp } = await import("./serve-GYSWIWH4.js");
|
|
768
758
|
const appName = messenger.app.command;
|
|
769
759
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
770
760
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DVI72ZQG.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureSqlite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LINBDWJK.js";
|
|
9
9
|
import {
|
|
10
10
|
envName,
|
|
11
11
|
readOnlyLockOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PR7XD2DI.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SONPLYV7.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-54NDYVZA.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-WREK3QBB.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-YJSDABXN.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-KAKA6KBY.js"),
|
|
152
|
+
import("./command-contract-V3F452QI.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HHAZ6DCY.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-54NDYVZA.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.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
|
27
27
|
}, "checkedOptions");
|
|
28
28
|
var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
31
31
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
32
32
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
33
33
|
if (images === void 0)
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WWE5GO6G.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.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/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.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/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.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/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");
|