@wirecat/drive-cli 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
- package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
- package/dist/bundle/app-server-BVBZT3UY.js +237 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
- package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
- package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
- package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
- package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
- package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
- package/dist/bundle/{chunk-66N2DGGC.js → chunk-5MYFPQDA.js} +21 -14
- package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
- package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
- package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
- package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
- package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
- package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
- package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
- package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
- package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
- package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
- package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
- package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
- package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
- package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
- package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
- package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
- package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
- package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
- package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
- package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
- package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
- package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
- package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
- package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
- package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
- package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
- package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
- package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
- package/dist/bundle/{chunk-MJR2OTO4.js → chunk-LZ5OTVWH.js} +6 -6
- package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
- package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
- package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
- package/dist/bundle/{chunk-4TIC23D2.js → chunk-NM26XAS2.js} +1 -1
- package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
- package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
- package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
- package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
- package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
- package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
- package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
- package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
- package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
- package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
- package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
- package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
- package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
- package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
- package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
- package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
- package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
- package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
- package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
- package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
- package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
- package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
- package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
- package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
- package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-ZKXDI45R.js} +1 -1
- package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
- package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
- package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
- package/dist/bundle/failure-M5HSCCJJ.js +37 -0
- package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
- package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
- package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
- package/dist/bundle/google-api-2GT5PAW2.js +82 -0
- package/dist/bundle/{identity-53ZMPL2O.js → identity-R5OKB5O5.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
- package/dist/bundle/mcp-JOQMFGBC.js +95 -0
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/{mcp-F4XZO76F.js → mcp-Z362OMZG.js} +77 -83
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
- package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
- package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-YX7DZMPR.js → program-PA2J6OFM.js} +129 -151
- package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
- package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
- package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
- package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
- package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
- package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
- package/dist/bundle/server-BFOEPMR7.js +56 -0
- package/dist/bundle/server-K566PJ7H.js +69 -0
- package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
- package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
- package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
- package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
- package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
- package/dist/bundle/tokens-DFCFRF7I.js +103 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +5 -9
- package/dist/commands/mcp.js.map +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +13 -32
- package/dist/contract-overrides.js.map +1 -1
- package/dist/mcp.d.ts +1 -8
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +1 -8
- package/dist/mcp.js.map +1 -1
- package/dist/state.d.ts +8 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +7 -0
- package/dist/state.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-HX35D7KV.js +0 -38
- package/dist/bundle/failure-XBWHHBEW.js +0 -37
- package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
- package/dist/bundle/google-api-TJCFOOAP.js +0 -82
- package/dist/bundle/mcp-2CJCJXSW.js +0 -95
- package/dist/bundle/server-R4JUHFSW.js +0 -56
- package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
- package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
registerPrompts,
|
|
13
13
|
stdinFieldOf,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IGMRWQP3.js";
|
|
16
16
|
import {
|
|
17
17
|
mcpUrlOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SWMMR3FR.js";
|
|
19
19
|
import {
|
|
20
20
|
answeredWire
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CVIKKIGE.js";
|
|
22
22
|
import {
|
|
23
23
|
BinaryResource,
|
|
24
24
|
Picture,
|
|
@@ -39,50 +39,44 @@ import {
|
|
|
39
39
|
tool,
|
|
40
40
|
toolKey,
|
|
41
41
|
toolsFromCommands
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XAZQTJXR.js";
|
|
43
43
|
import {
|
|
44
44
|
agentJson,
|
|
45
45
|
skillResource
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XF5MFUEB.js";
|
|
47
47
|
import {
|
|
48
48
|
StdioServerTransport,
|
|
49
49
|
callerOf,
|
|
50
50
|
serveStdio
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-HOIUIKWS.js";
|
|
51
|
+
} from "./chunk-G3FAOS52.js";
|
|
53
52
|
import {
|
|
54
53
|
instructions
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-DXKVEOSS.js";
|
|
56
55
|
import {
|
|
57
56
|
McpServer,
|
|
58
57
|
ResourceTemplate
|
|
59
58
|
} from "./chunk-5FONRUG6.js";
|
|
60
59
|
import {
|
|
61
60
|
mcpHttpMarker
|
|
62
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3HRDEJJW.js";
|
|
63
62
|
import {
|
|
64
63
|
connectedFor,
|
|
65
64
|
guardFor
|
|
66
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-IAW5A7OR.js";
|
|
67
66
|
import {
|
|
68
67
|
lackedNeed,
|
|
69
68
|
wholeList
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-7PVNJAQ2.js";
|
|
69
|
+
} from "./chunk-JVTVAZ5X.js";
|
|
72
70
|
import {
|
|
73
71
|
capability,
|
|
74
72
|
dateWindow,
|
|
75
73
|
imageSize,
|
|
76
74
|
servicesFor,
|
|
77
75
|
storedDeps
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-PWKXHDBQ.js";
|
|
80
|
-
import "./chunk-PDH2QQQV.js";
|
|
81
|
-
import "./chunk-LNB7BIZL.js";
|
|
76
|
+
} from "./chunk-DL7D6Y3B.js";
|
|
82
77
|
import {
|
|
83
78
|
findCommand
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import "./chunk-OECPFZLP.js";
|
|
79
|
+
} from "./chunk-K74PQVQZ.js";
|
|
86
80
|
import {
|
|
87
81
|
DEFAULT_OUTPUT_BYTES,
|
|
88
82
|
changesAuthorityAt,
|
|
@@ -94,60 +88,42 @@ import {
|
|
|
94
88
|
rootOf2 as rootOf,
|
|
95
89
|
sealed,
|
|
96
90
|
snakeKeys
|
|
97
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-AUS6TKP5.js";
|
|
98
92
|
import {
|
|
99
93
|
withCaller
|
|
100
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-3Z7WSD2A.js";
|
|
101
95
|
import {
|
|
102
96
|
describeProgram
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import "./chunk-PIN5RZ3D.js";
|
|
97
|
+
} from "./chunk-LOTQ2HMT.js";
|
|
105
98
|
import {
|
|
106
99
|
typedCommand
|
|
107
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-CFZWPIVC.js";
|
|
108
101
|
import {
|
|
109
102
|
isCliFailure
|
|
110
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-GOR3Z2FR.js";
|
|
111
104
|
import {
|
|
112
105
|
levelFor,
|
|
113
106
|
readKeysForCommand
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-VO4KOLQZ.js";
|
|
116
|
-
import "./chunk-4UE7AVHZ.js";
|
|
117
|
-
import "./chunk-LW2G4U6W.js";
|
|
118
|
-
import "./chunk-LWT55XC5.js";
|
|
107
|
+
} from "./chunk-PJ7IQVOM.js";
|
|
119
108
|
import {
|
|
120
109
|
readOnlyLockOf
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import "./chunk-YJZBJ2TM.js";
|
|
123
|
-
import "./chunk-ZS635F4O.js";
|
|
124
|
-
import "./chunk-ZU732VCC.js";
|
|
110
|
+
} from "./chunk-RJ633GFA.js";
|
|
125
111
|
import {
|
|
126
112
|
warmEmbedders
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-5DPV7X27.js";
|
|
129
|
-
import "./chunk-C4XP5T73.js";
|
|
113
|
+
} from "./chunk-RCS2SCX5.js";
|
|
130
114
|
import {
|
|
131
115
|
openStore
|
|
132
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-FEULDMWM.js";
|
|
133
117
|
import {
|
|
134
118
|
pdfPreviewLimits
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import "./chunk-WZUJKUBK.js";
|
|
137
|
-
import "./chunk-YJX4X564.js";
|
|
138
|
-
import "./chunk-3V6NPZY7.js";
|
|
119
|
+
} from "./chunk-5TC3NCAF.js";
|
|
139
120
|
import {
|
|
140
121
|
timezoneOf
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import "./chunk-IVQ6342B.js";
|
|
143
|
-
import "./chunk-2FTZBZOB.js";
|
|
144
|
-
import "./chunk-WQMVSQPP.js";
|
|
145
|
-
import "./chunk-P5KGFT7U.js";
|
|
146
|
-
import "./chunk-QLZGLPJL.js";
|
|
122
|
+
} from "./chunk-R2QRP7EJ.js";
|
|
147
123
|
import {
|
|
148
124
|
mcpErrorResult,
|
|
149
125
|
visibleControls
|
|
150
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-VHT2WI4I.js";
|
|
151
127
|
import {
|
|
152
128
|
CliError,
|
|
153
129
|
description,
|
|
@@ -163,17 +139,15 @@ import {
|
|
|
163
139
|
regex,
|
|
164
140
|
strictObject,
|
|
165
141
|
string
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import "./chunk-Y5E2WNWB.js";
|
|
168
|
-
import "./chunk-LY26NW3I.js";
|
|
142
|
+
} from "./chunk-BJ3JRO34.js";
|
|
169
143
|
import {
|
|
170
144
|
__name
|
|
171
145
|
} from "./chunk-ZVVMGPBJ.js";
|
|
172
146
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
174
148
|
import { randomUUID } from "node:crypto";
|
|
175
149
|
|
|
176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
177
151
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
178
152
|
let held;
|
|
179
153
|
return {
|
|
@@ -192,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
192
166
|
};
|
|
193
167
|
}, "agentLog");
|
|
194
168
|
|
|
195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
196
170
|
var LISTED = 100;
|
|
197
171
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
198
172
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -230,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
230
204
|
});
|
|
231
205
|
}, "registerResources");
|
|
232
206
|
|
|
233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
234
208
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
235
209
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
236
210
|
var MessengerSession = class {
|
|
@@ -305,7 +279,7 @@ var MessengerSession = class {
|
|
|
305
279
|
}
|
|
306
280
|
};
|
|
307
281
|
|
|
308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
309
283
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
310
284
|
const _command = messenger.app.command;
|
|
311
285
|
return {
|
|
@@ -359,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
359
333
|
};
|
|
360
334
|
}, "attachmentsTools");
|
|
361
335
|
|
|
362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
363
337
|
var PHOTO_LIMIT = 512 * 1024;
|
|
364
338
|
var IMAGE_TYPES = [
|
|
365
339
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -413,7 +387,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
413
387
|
return new Uint8Array(Buffer.concat(chunks));
|
|
414
388
|
}, "readUpTo");
|
|
415
389
|
|
|
416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
417
391
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
418
392
|
stats_charts: tool({
|
|
419
393
|
title: "A chart from a chat's statistics",
|
|
@@ -450,14 +424,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
450
424
|
})
|
|
451
425
|
}), "statsTools");
|
|
452
426
|
|
|
453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
454
428
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
455
429
|
...messagesPhotoTools(messenger),
|
|
456
430
|
...attachmentsTools(messenger),
|
|
457
431
|
...statsTools(messenger)
|
|
458
432
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
459
433
|
|
|
460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
461
435
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
462
436
|
"streams",
|
|
463
437
|
"stdin",
|
|
@@ -781,7 +755,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
781
755
|
}, "serveOverStdio");
|
|
782
756
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
783
757
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
784
|
-
const { serveOverHttp } = await import("./serve-
|
|
758
|
+
const { serveOverHttp } = await import("./serve-PDNNI6O6.js");
|
|
785
759
|
const appName = messenger.app.command;
|
|
786
760
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
787
761
|
const listening = await serveOverHttp(build, {
|
|
@@ -811,8 +785,11 @@ var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context,
|
|
|
811
785
|
await embedders.close();
|
|
812
786
|
}
|
|
813
787
|
}, "serveOverHttpUntilStopped");
|
|
788
|
+
|
|
814
789
|
export {
|
|
790
|
+
PER_RUN,
|
|
791
|
+
envelope,
|
|
815
792
|
createServer,
|
|
816
|
-
|
|
817
|
-
|
|
793
|
+
serveOverStdio,
|
|
794
|
+
serveOverHttpUntilStopped
|
|
818
795
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BJ3JRO34.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|