@wirecat/drive-cli 0.50.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WQTVOCIS.js → all-profiles-CYW6XBBS.js} +8 -8
- package/dist/bundle/{anthropic-YCA2AWIJ.js → anthropic-KW6KU36Y.js} +5 -5
- package/dist/bundle/{app-server-ZQOYUQJH.js → app-server-TCJZ333E.js} +53 -52
- package/dist/bundle/{bun-5NFIDHGM.js → bun-7SYKSCLA.js} +2 -2
- package/dist/bundle/{bun-sqlite-OAQE4M2E.js → bun-sqlite-RI7DR6RZ.js} +4 -4
- package/dist/bundle/{chunk-KZEOWOZV.js → chunk-234MHU76.js} +7 -7
- package/dist/bundle/{chunk-IGG4RBIZ.js → chunk-2623YE5I.js} +109 -98
- package/dist/bundle/{chunk-POD2GHQB.js → chunk-2AUXBJRX.js} +19 -19
- package/dist/bundle/{chunk-KEQ35HQQ.js → chunk-2UIMEMWU.js} +3 -3
- package/dist/bundle/{chunk-LNWRRK2H.js → chunk-33NVQGUY.js} +6 -6
- package/dist/bundle/{chunk-ZXD2I5ZQ.js → chunk-43QVYW3K.js} +49 -49
- package/dist/bundle/{chunk-BUALWXBT.js → chunk-4A2PIGC6.js} +1 -1
- package/dist/bundle/{chunk-3HNUH632.js → chunk-4CPLOMRK.js} +6 -6
- package/dist/bundle/{chunk-E656DAZT.js → chunk-4Z6TCU5T.js} +1 -1
- package/dist/bundle/{chunk-INVF3GXW.js → chunk-54O62JWP.js} +10 -10
- package/dist/bundle/{chunk-JA2YY7D4.js → chunk-5PLJKSG4.js} +7 -7
- package/dist/bundle/{chunk-XEETGCOC.js → chunk-6DHQTUB2.js} +1 -1
- package/dist/bundle/{chunk-ZKGYW63J.js → chunk-725OHXKR.js} +9 -9
- package/dist/bundle/chunk-7SH4JHYW.js +379 -0
- package/dist/bundle/{chunk-AO3NCZNT.js → chunk-7XKAVMCF.js} +8 -8
- package/dist/bundle/{chunk-PNUS224S.js → chunk-7YMDL4JQ.js} +8 -6
- package/dist/bundle/{chunk-CEUEXMIR.js → chunk-A4UNTWAX.js} +31 -27
- package/dist/bundle/{chunk-KYMGVMOS.js → chunk-ALJWBGD5.js} +1 -1
- package/dist/bundle/{chunk-QY3LK3OT.js → chunk-BSSCTWWK.js} +12 -12
- package/dist/bundle/{chunk-CCEVICWU.js → chunk-C6Z25IBJ.js} +49 -24
- package/dist/bundle/{chunk-ZJBRKR42.js → chunk-CB7SBYLO.js} +27 -27
- package/dist/bundle/{chunk-4VLUX3V5.js → chunk-CITFEQ6S.js} +1 -1
- package/dist/bundle/{chunk-Y73IZWRI.js → chunk-CKBHR7QO.js} +1 -1
- package/dist/bundle/{chunk-M2D4FXKY.js → chunk-CM7GAXGD.js} +5 -5
- package/dist/bundle/{chunk-OKSS7YUN.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-T7UZHKAS.js → chunk-DO4PDQY5.js} +2 -2
- package/dist/bundle/{chunk-P3T2SZW2.js → chunk-DW46P2DY.js} +1 -1
- package/dist/bundle/{chunk-Q3VG3UYV.js → chunk-F7UUZATI.js} +11 -11
- package/dist/bundle/{chunk-7SYSC7KX.js → chunk-FCJAHD4R.js} +2 -2
- package/dist/bundle/{chunk-QBECV7NO.js → chunk-FDWYPONW.js} +46 -34
- package/dist/bundle/{chunk-4SSUKRO4.js → chunk-FG4XXZZE.js} +2 -2
- package/dist/bundle/{chunk-DTHWL5YU.js → chunk-FJW3DDCF.js} +5 -5
- package/dist/bundle/{chunk-JHBX53SK.js → chunk-G6QF5KWF.js} +35 -35
- package/dist/bundle/{chunk-4J7UGHPK.js → chunk-G7DCVJ4F.js} +5 -5
- package/dist/bundle/{chunk-ZP735UUT.js → chunk-GR5GGZKH.js} +3 -3
- package/dist/bundle/{chunk-OL22OOIW.js → chunk-GVCN3GLZ.js} +16 -4
- package/dist/bundle/{chunk-2M5XEGVE.js → chunk-H47W2J6S.js} +638 -809
- package/dist/bundle/{chunk-HGWMX7BM.js → chunk-HQVJK5E7.js} +44 -22
- package/dist/bundle/{chunk-M6FQOGUW.js → chunk-HX7Y2ASG.js} +351 -282
- package/dist/bundle/{chunk-FSAM4Y2S.js → chunk-I7UH5CTA.js} +8 -8
- package/dist/bundle/{chunk-FABKIQ24.js → chunk-IDUNJCFO.js} +2 -2
- package/dist/bundle/{chunk-652YTDT5.js → chunk-IWFBAWZK.js} +15 -15
- package/dist/bundle/{chunk-3XX52F42.js → chunk-JEOYFKUK.js} +2 -2
- package/dist/bundle/{chunk-RTIMGPLN.js → chunk-KYVXMEBC.js} +3 -3
- package/dist/bundle/{chunk-IFM2APQB.js → chunk-LJAX6YCF.js} +2 -2
- package/dist/bundle/{chunk-R7XMCREL.js → chunk-LONV6HIK.js} +20 -20
- package/dist/bundle/{chunk-G75FZQAZ.js → chunk-NHBUTCNR.js} +10 -10
- package/dist/bundle/{chunk-5ZJHQ4TN.js → chunk-NPSZPUK6.js} +2 -2
- package/dist/bundle/{chunk-53UWCVSU.js → chunk-NSIFQ5OP.js} +1 -1
- package/dist/bundle/{chunk-HURI56SB.js → chunk-O6IOL6RX.js} +21 -21
- package/dist/bundle/{chunk-IA6LNKCF.js → chunk-PAXKALHV.js} +5 -5
- package/dist/bundle/{chunk-Z54E5LKF.js → chunk-PDGECM5D.js} +7 -7
- package/dist/bundle/{chunk-5OMLYNYB.js → chunk-PEOCBV2Z.js} +8 -8
- package/dist/bundle/{chunk-TATRMMOG.js → chunk-PQJYM5ES.js} +3 -3
- package/dist/bundle/{chunk-XGJUEH5C.js → chunk-PQYVPCJ2.js} +26 -26
- package/dist/bundle/{chunk-3CQNJKJT.js → chunk-PSNHPFSK.js} +1 -1
- package/dist/bundle/{chunk-6DDXB5WB.js → chunk-Q765VPZY.js} +2 -2
- package/dist/bundle/{chunk-YOABRW2M.js → chunk-R276546S.js} +1 -1
- package/dist/bundle/{chunk-QSDXVUJG.js → chunk-RNSP57TC.js} +4 -4
- package/dist/bundle/{chunk-VAETCXRI.js → chunk-UC22Q5KU.js} +11 -11
- package/dist/bundle/{chunk-EXYEDKTX.js → chunk-UR32UWTQ.js} +2 -2
- package/dist/bundle/{chunk-YROVFHPJ.js → chunk-VJZST5RD.js} +2 -2
- package/dist/bundle/{chunk-MMOG7ZVF.js → chunk-VSOLLTYT.js} +2 -2
- package/dist/bundle/{chunk-IUZ4PT2V.js → chunk-VZ2I62HN.js} +2 -2
- package/dist/bundle/{chunk-CTIQ77AB.js → chunk-W7IK7E4B.js} +17 -17
- package/dist/bundle/{chunk-C4PNAHI4.js → chunk-WBTVGFXI.js} +11 -11
- package/dist/bundle/{chunk-P6VN5UB4.js → chunk-WLFUBNFX.js} +4 -4
- package/dist/bundle/{chunk-Q27HCATD.js → chunk-WQJBAWQP.js} +534 -348
- package/dist/bundle/{chunk-4OLWMHS6.js → chunk-WQRGA75U.js} +15 -3
- package/dist/bundle/{chunk-5WN7JHQE.js → chunk-WUX7AUOQ.js} +26 -26
- package/dist/bundle/{chunk-VAK2Q2XG.js → chunk-X6ID5EAR.js} +16 -16
- package/dist/bundle/{chunk-5Z63NTC7.js → chunk-XOLQSCMF.js} +6 -6
- package/dist/bundle/{chunk-EY4CUQW2.js → chunk-YKZ4IPLB.js} +26 -9
- package/dist/bundle/{chunk-24TOKSZE.js → chunk-YNFELLNQ.js} +2 -2
- package/dist/bundle/{chunk-JSMPSOEM.js → chunk-YVPHJHIL.js} +3 -3
- package/dist/bundle/{chunk-QNLD7Y6Z.js → chunk-Z47LOJUS.js} +7 -7
- package/dist/bundle/{chunk-NHRJW3PH.js → chunk-ZDLIO76S.js} +2 -2
- package/dist/bundle/{chunk-OQEBGY74.js → chunk-ZNZUZGSV.js} +54 -47
- package/dist/bundle/{chunk-6E4PFCQ4.js → chunk-ZSXRDF6I.js} +1 -1
- package/dist/bundle/{chunk-UVPKSZSC.js → chunk-ZWSG7OCA.js} +4 -4
- package/dist/bundle/command-contract-I2YB5IXI.js +38 -0
- package/dist/bundle/{decode-YZRTP54O.js → decode-EDN2ARXZ.js} +19 -17
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-C6HUK2FL.js → echarts-GXY34GHA.js} +2 -2
- package/dist/bundle/{embed-QRQ7ITFC.js → embed-3GSQIQXE.js} +5 -5
- package/dist/bundle/{embedder-EZDB3JPA.js → embedder-6ULWRG3R.js} +8 -8
- package/dist/bundle/{entry-4WQQKSYG.js → entry-IPRJLFHO.js} +6 -6
- package/dist/bundle/failure-4CVEVY45.js +37 -0
- package/dist/bundle/{first-run-ZAS4OV3T.js → first-run-FGHGWHC2.js} +9 -9
- package/dist/bundle/first-screen-M62KTPZG.js +36 -0
- package/dist/bundle/{google-KNILTIDW.js → google-BD3ZNFVJ.js} +9 -9
- package/dist/bundle/google-api-BDUWZMRV.js +83 -0
- package/dist/bundle/{identity-VBCGUXT5.js → identity-QLBSASO5.js} +2 -2
- package/dist/bundle/{instructions-II4M2WL3.js → instructions-K5BEQM4C.js} +1 -1
- package/dist/bundle/{login-4JACQVMD.js → login-VNZKRSAD.js} +65 -64
- package/dist/bundle/{mcp-6ZIAWU3N.js → mcp-5SNSMI2M.js} +82 -81
- package/dist/bundle/mcp-JZSYPQA4.js +96 -0
- package/dist/bundle/{mcp-ZYZ4DFW2.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-LIN7L4VQ.js → node-ZYWB7IET.js} +2 -2
- package/dist/bundle/{node-sqlite-VAH4KZN3.js → node-sqlite-J3OODPYK.js} +4 -4
- package/dist/bundle/{oauth-QUE3VCTU.js → oauth-L4VTCBLF.js} +6 -6
- package/dist/bundle/{open-DQ3EVYPB.js → open-SGUN7ZVF.js} +3 -3
- package/dist/bundle/openai-RLVISEDH.js +251 -0
- package/dist/bundle/{process-46XDWPVW.js → process-ZXO2MWRJ.js} +1 -1
- package/dist/bundle/{program-X3CZ4XDN.js → program-6S5EH7BS.js} +105 -103
- package/dist/bundle/{prompt-SAZYCZV3.js → prompt-AUWTBLO7.js} +4 -4
- package/dist/bundle/{reasons-366PI7OV.js → reasons-M5AKCNCU.js} +3 -3
- package/dist/bundle/{recognize-SSBOHOTW.js → recognize-ORX2UBQW.js} +5 -3
- package/dist/bundle/{remote-EL3FWCQE.js → remote-AGIJY73X.js} +6 -6
- package/dist/bundle/{rerank-RPIQRJIW.js → rerank-R6PE44M5.js} +6 -6
- package/dist/bundle/{serve-AX44DIKK.js → serve-VOBAQHAQ.js} +8 -8
- package/dist/bundle/server-24PS4M7U.js +70 -0
- package/dist/bundle/server-G6HFZ2CK.js +57 -0
- package/dist/bundle/{services-K4UOEMQD.js → services-HZFTTZSF.js} +35 -28
- package/dist/bundle/{sqlite-runtime-N7N3EYGH.js → sqlite-runtime-DTGPR2T2.js} +4 -4
- package/dist/bundle/{state-C3S5FD7V.js → state-WG3JKJM3.js} +5 -5
- package/dist/bundle/{store-4N3NBUGX.js → store-33VHIMEO.js} +14 -14
- package/dist/bundle/{store-QV4ZNEQ3.js → store-EV72MT5U.js} +16 -16
- package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +58 -0
- package/dist/bundle/tokens-XDQXUFDQ.js +104 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +1 -0
- package/dist/store.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/command-contract-TAWVO2G3.js +0 -38
- package/dist/bundle/failure-EEJGMWEP.js +0 -37
- package/dist/bundle/first-screen-6ICWD2N3.js +0 -36
- package/dist/bundle/google-api-CZACYX5T.js +0 -82
- package/dist/bundle/mcp-2BR2EX7L.js +0 -95
- package/dist/bundle/server-DCJIGUW2.js +0 -56
- package/dist/bundle/server-WWQSQBFT.js +0 -69
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +0 -57
- package/dist/bundle/tokens-Y7HCOXOA.js +0 -103
- /package/dist/bundle/{chunk-2WNDZFGG.js → chunk-62EDJKGP.js} +0 -0
- /package/dist/bundle/{chunk-VDZZ46RT.js → chunk-FQRJWVEB.js} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEOCBV2Z.js";
|
|
13
13
|
import {
|
|
14
14
|
Option,
|
|
15
15
|
annotate,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
metaOf,
|
|
18
18
|
resolveOutput,
|
|
19
19
|
stepTargets
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-725OHXKR.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_RERANK_MODEL,
|
|
23
23
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
typedCommand,
|
|
39
39
|
useAsProcessRun,
|
|
40
40
|
withWriteScope
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LONV6HIK.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VSOLLTYT.js";
|
|
45
45
|
import {
|
|
46
46
|
CEILING_KEY,
|
|
47
47
|
COMMAND_PATH_KEY,
|
|
@@ -52,25 +52,25 @@ import {
|
|
|
52
52
|
keyForCommand,
|
|
53
53
|
layerPermissions,
|
|
54
54
|
permissionOverrides
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-Q765VPZY.js";
|
|
56
56
|
import {
|
|
57
57
|
count,
|
|
58
58
|
text
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-GVCN3GLZ.js";
|
|
60
60
|
import {
|
|
61
61
|
permissionCeiling
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-WLFUBNFX.js";
|
|
63
63
|
import {
|
|
64
64
|
envName,
|
|
65
65
|
readOnlyLockOf,
|
|
66
66
|
readOnlyRefusal
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ZDLIO76S.js";
|
|
68
68
|
import {
|
|
69
69
|
sharedConfigPath
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XOLQSCMF.js";
|
|
71
71
|
import {
|
|
72
72
|
storePath
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-VJZST5RD.js";
|
|
74
74
|
import {
|
|
75
75
|
configFilePath,
|
|
76
76
|
createRecordLog,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
resolvePaths,
|
|
80
80
|
saveConfigFile,
|
|
81
81
|
writeSecurely
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HQVJK5E7.js";
|
|
83
83
|
import {
|
|
84
84
|
CliError,
|
|
85
85
|
MAX_NEXT_STEPS,
|
|
@@ -114,12 +114,12 @@ import {
|
|
|
114
114
|
union,
|
|
115
115
|
unknown,
|
|
116
116
|
writes
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
118
118
|
import {
|
|
119
119
|
__name
|
|
120
120
|
} from "./chunk-ZVVMGPBJ.js";
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
123
123
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
124
124
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
125
125
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
@@ -141,7 +141,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
141
141
|
}
|
|
142
142
|
}, "withAbort");
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
145
145
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
146
146
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
147
147
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -188,7 +188,7 @@ var rootOf = /* @__PURE__ */ __name((command) => {
|
|
|
188
188
|
return root;
|
|
189
189
|
}, "rootOf");
|
|
190
190
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
192
192
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
193
193
|
import { join } from "node:path";
|
|
194
194
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -210,7 +210,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
210
210
|
}, "profilesWithAccounts");
|
|
211
211
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
212
212
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
214
214
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
215
215
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
216
216
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -244,7 +244,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
244
244
|
cache: "cache.answered"
|
|
245
245
|
};
|
|
246
246
|
|
|
247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
248
248
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
249
249
|
const recording = startRecording(options);
|
|
250
250
|
try {
|
|
@@ -429,7 +429,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
429
429
|
return void 0;
|
|
430
430
|
}, "partialOutcome");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
433
433
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
434
434
|
if (ms === void 0)
|
|
435
435
|
return body();
|
|
@@ -455,10 +455,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
455
455
|
}
|
|
456
456
|
}, "withDeadline");
|
|
457
457
|
|
|
458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
459
459
|
import { existsSync as existsSync3 } from "node:fs";
|
|
460
460
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
462
462
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
463
463
|
try {
|
|
464
464
|
const url2 = new URL(value);
|
|
@@ -468,7 +468,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
468
468
|
}
|
|
469
469
|
}, "endpoint");
|
|
470
470
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
472
472
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
473
473
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
474
474
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -537,7 +537,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
537
537
|
};
|
|
538
538
|
}, "modelTarget");
|
|
539
539
|
|
|
540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
541
541
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
542
542
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
543
543
|
var AI_FIELDS = {
|
|
@@ -581,7 +581,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
581
581
|
};
|
|
582
582
|
}, "resolveAISettings");
|
|
583
583
|
|
|
584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
585
585
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
586
586
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
587
587
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -871,7 +871,7 @@ var readConfigFile = /* @__PURE__ */ __name((path) => {
|
|
|
871
871
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
872
872
|
}, "readConfigFile");
|
|
873
873
|
|
|
874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
875
875
|
import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
876
876
|
import { dirname, join as join2 } from "node:path";
|
|
877
877
|
var DEFAULT_CONFIG = {
|
|
@@ -900,7 +900,7 @@ function ensureDefaultConfig(path, config = DEFAULT_CONFIG) {
|
|
|
900
900
|
}
|
|
901
901
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
902
902
|
|
|
903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
904
904
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
905
905
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
906
906
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -1290,7 +1290,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
1290
1290
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
1291
1291
|
}, "given");
|
|
1292
1292
|
|
|
1293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
1294
1294
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
1295
1295
|
const slot = environmentOf(command).exit;
|
|
1296
1296
|
if (slot)
|
|
@@ -1397,7 +1397,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
1397
1397
|
return words.join(" ");
|
|
1398
1398
|
}, "commandPath");
|
|
1399
1399
|
|
|
1400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
1401
1401
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
1402
1402
|
var FETCH = { remote: "read", local: "write" };
|
|
1403
1403
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -1482,7 +1482,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
1482
1482
|
throw readOnlyRefusal(lock, what);
|
|
1483
1483
|
}, "refuseUnderReadOnly");
|
|
1484
1484
|
|
|
1485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
1486
1486
|
var STEPS2 = defineSteps([
|
|
1487
1487
|
...STEPS,
|
|
1488
1488
|
{
|
|
@@ -1740,7 +1740,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
1740
1740
|
].join(" ");
|
|
1741
1741
|
}, "stepLine");
|
|
1742
1742
|
|
|
1743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
1744
1744
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
1745
1745
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
1746
1746
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -1754,11 +1754,11 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
1754
1754
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
1755
1755
|
}, "strip");
|
|
1756
1756
|
|
|
1757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
1758
1758
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
1759
1759
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
1760
1760
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
1761
|
-
const { items, limit, has_more, cursor, paging, page, args = {}, next = [], missing, meta } = input;
|
|
1761
|
+
const { items, limit, has_more, cursor, paging, page, total, args = {}, next = [], missing, meta } = input;
|
|
1762
1762
|
const byCursor = paging === "cursor" || cursor !== void 0;
|
|
1763
1763
|
const more = has_more ? [
|
|
1764
1764
|
nextStep("page.next", {
|
|
@@ -1769,7 +1769,19 @@ var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
|
1769
1769
|
] : [];
|
|
1770
1770
|
const body = {
|
|
1771
1771
|
items,
|
|
1772
|
-
page: byCursor ? {
|
|
1772
|
+
page: byCursor ? {
|
|
1773
|
+
mode: "cursor",
|
|
1774
|
+
limit,
|
|
1775
|
+
has_more,
|
|
1776
|
+
...has_more && cursor !== void 0 ? { next_cursor: cursor } : {},
|
|
1777
|
+
...total ? { total } : {}
|
|
1778
|
+
} : {
|
|
1779
|
+
mode: "page",
|
|
1780
|
+
limit,
|
|
1781
|
+
has_more,
|
|
1782
|
+
...has_more ? { next_page: (page ?? 1) + 1 } : {},
|
|
1783
|
+
...total ? { total } : {}
|
|
1784
|
+
},
|
|
1773
1785
|
...capped2([...more, ...next]),
|
|
1774
1786
|
...missing && missing.length > 0 ? { missing } : {},
|
|
1775
1787
|
...meta ? { meta } : {}
|
|
@@ -1876,7 +1888,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
1876
1888
|
renderer.result(item);
|
|
1877
1889
|
}, "printItem");
|
|
1878
1890
|
|
|
1879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
1880
1892
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
1881
1893
|
var storeTable = strictObject({
|
|
1882
1894
|
name: text,
|
|
@@ -1885,7 +1897,7 @@ var storeTable = strictObject({
|
|
|
1885
1897
|
bytes: optional(nullable(count))
|
|
1886
1898
|
});
|
|
1887
1899
|
|
|
1888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
1889
1901
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
1890
1902
|
const run = currentRun();
|
|
1891
1903
|
const trace = traceId ?? run.traceId;
|
|
@@ -2,7 +2,7 @@ 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-YKZ4IPLB.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
XLSX,
|
|
9
9
|
supported,
|
|
10
10
|
tooManyEntries
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CKBHR7QO.js";
|
|
12
12
|
import {
|
|
13
13
|
googleError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R276546S.js";
|
|
15
15
|
import {
|
|
16
16
|
extractText
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WUX7AUOQ.js";
|
|
18
18
|
import {
|
|
19
19
|
MAX_TEXT_CHARS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JEOYFKUK.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
24
24
|
import {
|
|
25
25
|
importFrom
|
|
26
26
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
registerPrompts,
|
|
13
13
|
stdinFieldOf,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-A4UNTWAX.js";
|
|
16
16
|
import {
|
|
17
17
|
mcpUrlOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DO4PDQY5.js";
|
|
19
19
|
import {
|
|
20
20
|
answeredWire
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CITFEQ6S.js";
|
|
22
22
|
import {
|
|
23
23
|
BinaryResource,
|
|
24
24
|
Picture,
|
|
@@ -39,44 +39,44 @@ import {
|
|
|
39
39
|
tool,
|
|
40
40
|
toolKey,
|
|
41
41
|
toolsFromCommands
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PQYVPCJ2.js";
|
|
43
43
|
import {
|
|
44
44
|
agentJson,
|
|
45
45
|
skillResource
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-IWFBAWZK.js";
|
|
47
47
|
import {
|
|
48
48
|
StdioServerTransport,
|
|
49
49
|
callerOf,
|
|
50
50
|
serveStdio
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-FCJAHD4R.js";
|
|
52
52
|
import {
|
|
53
53
|
instructions
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZSXRDF6I.js";
|
|
55
55
|
import {
|
|
56
56
|
McpServer,
|
|
57
57
|
ResourceTemplate
|
|
58
58
|
} from "./chunk-5FONRUG6.js";
|
|
59
59
|
import {
|
|
60
60
|
mcpHttpMarker
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RNSP57TC.js";
|
|
62
62
|
import {
|
|
63
63
|
connectedFor,
|
|
64
64
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-CB7SBYLO.js";
|
|
66
66
|
import {
|
|
67
67
|
lackedNeed,
|
|
68
68
|
wholeList
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-2AUXBJRX.js";
|
|
70
70
|
import {
|
|
71
71
|
capability,
|
|
72
72
|
dateWindow,
|
|
73
73
|
imageSize,
|
|
74
74
|
servicesFor,
|
|
75
75
|
storedDeps
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-H47W2J6S.js";
|
|
77
77
|
import {
|
|
78
78
|
findCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-5PLJKSG4.js";
|
|
80
80
|
import {
|
|
81
81
|
DEFAULT_OUTPUT_BYTES,
|
|
82
82
|
changesAuthorityAt,
|
|
@@ -88,42 +88,42 @@ import {
|
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FDWYPONW.js";
|
|
92
92
|
import {
|
|
93
93
|
withCaller
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-PEOCBV2Z.js";
|
|
95
95
|
import {
|
|
96
96
|
describeProgram
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-725OHXKR.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-LONV6HIK.js";
|
|
101
101
|
import {
|
|
102
102
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-VSOLLTYT.js";
|
|
104
104
|
import {
|
|
105
105
|
levelFor,
|
|
106
106
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-Q765VPZY.js";
|
|
108
108
|
import {
|
|
109
109
|
readOnlyLockOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-ZDLIO76S.js";
|
|
111
111
|
import {
|
|
112
112
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-CM7GAXGD.js";
|
|
114
114
|
import {
|
|
115
115
|
openStore
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-WQJBAWQP.js";
|
|
117
117
|
import {
|
|
118
118
|
pdfPreviewLimits
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JEOYFKUK.js";
|
|
120
120
|
import {
|
|
121
121
|
timezoneOf
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-NHBUTCNR.js";
|
|
123
123
|
import {
|
|
124
124
|
mcpErrorResult,
|
|
125
125
|
visibleControls
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-HQVJK5E7.js";
|
|
127
127
|
import {
|
|
128
128
|
CliError,
|
|
129
129
|
description,
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
regex,
|
|
140
140
|
strictObject,
|
|
141
141
|
string
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
143
143
|
import {
|
|
144
144
|
__name
|
|
145
145
|
} from "./chunk-ZVVMGPBJ.js";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
148
148
|
import { randomUUID } from "node:crypto";
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
151
151
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
152
152
|
let held;
|
|
153
153
|
return {
|
|
@@ -166,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
166
166
|
};
|
|
167
167
|
}, "agentLog");
|
|
168
168
|
|
|
169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
170
170
|
var LISTED = 100;
|
|
171
171
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
172
172
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -204,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
204
204
|
});
|
|
205
205
|
}, "registerResources");
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
208
208
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
209
209
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
210
210
|
var MessengerSession = class {
|
|
@@ -279,7 +279,7 @@ var MessengerSession = class {
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
283
283
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
284
284
|
const _command = messenger.app.command;
|
|
285
285
|
return {
|
|
@@ -333,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
333
333
|
};
|
|
334
334
|
}, "attachmentsTools");
|
|
335
335
|
|
|
336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
337
337
|
var PHOTO_LIMIT = 512 * 1024;
|
|
338
338
|
var IMAGE_TYPES = [
|
|
339
339
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -387,7 +387,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
387
387
|
return new Uint8Array(Buffer.concat(chunks));
|
|
388
388
|
}, "readUpTo");
|
|
389
389
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
391
391
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
392
392
|
stats_charts: tool({
|
|
393
393
|
title: "A chart from a chat's statistics",
|
|
@@ -424,14 +424,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
424
424
|
})
|
|
425
425
|
}), "statsTools");
|
|
426
426
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
428
428
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
429
429
|
...messagesPhotoTools(messenger),
|
|
430
430
|
...attachmentsTools(messenger),
|
|
431
431
|
...statsTools(messenger)
|
|
432
432
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
433
433
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
435
435
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
436
436
|
"streams",
|
|
437
437
|
"stdin",
|
|
@@ -755,7 +755,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
755
755
|
}, "serveOverStdio");
|
|
756
756
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
757
757
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
758
|
-
const { serveOverHttp } = await import("./serve-
|
|
758
|
+
const { serveOverHttp } = await import("./serve-VOBAQHAQ.js");
|
|
759
759
|
const appName = messenger.app.command;
|
|
760
760
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
761
761
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DHQTUB2.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YNFELLNQ.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RNSP57TC.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YKZ4IPLB.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.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
32
32
|
import { randomUUID } from "node:crypto";
|
|
33
33
|
var MCP_PATH = "/mcp";
|
|
34
34
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
operations,
|
|
6
6
|
validateApiParams,
|
|
7
7
|
validateRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YVPHJHIL.js";
|
|
9
9
|
import {
|
|
10
10
|
googleError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R276546S.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,6 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
array,
|
|
5
|
+
boolean,
|
|
5
6
|
integer,
|
|
6
7
|
isoTime,
|
|
7
8
|
isoTimestamp,
|
|
@@ -17,9 +18,9 @@ import {
|
|
|
17
18
|
strictObject,
|
|
18
19
|
string,
|
|
19
20
|
unknown
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YKZ4IPLB.js";
|
|
21
22
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
23
24
|
var text = string();
|
|
24
25
|
var id = pipe(string(), minLength(1));
|
|
25
26
|
var time = isoTime;
|
|
@@ -27,13 +28,23 @@ var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
|
|
|
27
28
|
var count = pipe(number(), integer(), minValue(0));
|
|
28
29
|
var untrusted = optional(array(text));
|
|
29
30
|
var providerMetadata = optional(record(string(), unknown()));
|
|
31
|
+
var evidenceSource = strictObject({
|
|
32
|
+
ref: nullable(reference),
|
|
33
|
+
kind: text,
|
|
34
|
+
title: nullable(text),
|
|
35
|
+
sender: nullable(text),
|
|
36
|
+
at: nullable(time),
|
|
37
|
+
excerpt: nullable(text),
|
|
38
|
+
tool: nullable(text),
|
|
39
|
+
missing: boolean()
|
|
40
|
+
});
|
|
30
41
|
var author = strictObject({
|
|
31
42
|
type: picklist(["person", "bot"]),
|
|
32
43
|
id,
|
|
33
44
|
name: nullable(text)
|
|
34
45
|
});
|
|
35
46
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
37
48
|
var link = {
|
|
38
49
|
target_text: nullable(text),
|
|
39
50
|
kind: text,
|
|
@@ -74,7 +85,7 @@ var note = strictObject({
|
|
|
74
85
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
75
86
|
});
|
|
76
87
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
88
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
78
89
|
var organization = strictObject({
|
|
79
90
|
id,
|
|
80
91
|
ref: reference,
|
|
@@ -112,6 +123,7 @@ export {
|
|
|
112
123
|
count,
|
|
113
124
|
untrusted,
|
|
114
125
|
providerMetadata,
|
|
126
|
+
evidenceSource,
|
|
115
127
|
author,
|
|
116
128
|
note,
|
|
117
129
|
organization,
|