@wirecat/drive-cli 0.64.0 → 0.65.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-BPPT2AK5.js → all-profiles-PD7GJHFA.js} +14 -13
- package/dist/bundle/{anthropic-JW6GOJUD.js → anthropic-PJKFON5H.js} +20 -11
- package/dist/bundle/{app-server-KAQIOJMZ.js → app-server-6ELQA6FJ.js} +59 -56
- package/dist/bundle/{bun-UT7GNTPV.js → bun-P54TGES2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2OIVV3LS.js → bun-sqlite-TND5ZRJH.js} +12 -8
- package/dist/bundle/chunk-2AFI4KGI.js +185 -0
- package/dist/bundle/{chunk-WWCYTMAV.js → chunk-3HXNDF6Q.js} +2 -2
- package/dist/bundle/{chunk-46CD64J2.js → chunk-3ONWN3IA.js} +166 -53
- package/dist/bundle/{chunk-4YRENUB5.js → chunk-42G2XNPN.js} +2 -2
- package/dist/bundle/chunk-4AOINPN2.js +66 -0
- package/dist/bundle/{chunk-ZF6GUZCE.js → chunk-4EDWLR22.js} +1 -1
- package/dist/bundle/{chunk-BEZJA44H.js → chunk-4Y5YBFMS.js} +7 -7
- package/dist/bundle/{chunk-B7XBIOMR.js → chunk-54V4H6PM.js} +16 -16
- package/dist/bundle/{chunk-4CNTID2X.js → chunk-5XSBCMAF.js} +4 -4
- package/dist/bundle/{chunk-IDAK4DDK.js → chunk-6DCLZLGX.js} +1 -1
- package/dist/bundle/{chunk-G4KEKKDE.js → chunk-7AQGVX5O.js} +20 -20
- package/dist/bundle/{chunk-34BIDKF4.js → chunk-7TAP7Y2E.js} +508 -155
- package/dist/bundle/{chunk-BZ2ZKILM.js → chunk-A27UVLPK.js} +3 -3
- package/dist/bundle/{chunk-SIOIMO62.js → chunk-A4QNADEX.js} +57 -51
- package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
- package/dist/bundle/{chunk-66AF4FBW.js → chunk-B2LPCHQN.js} +4 -4
- package/dist/bundle/{chunk-M73NNJ3X.js → chunk-CGQRZRTH.js} +2 -2
- package/dist/bundle/{chunk-KVW4XNKB.js → chunk-CWLL63JD.js} +107 -48
- package/dist/bundle/{chunk-CPMRM3GQ.js → chunk-D6Z43SOG.js} +1592 -335
- package/dist/bundle/{chunk-QXCKJUZY.js → chunk-D7WB54P7.js} +111 -27
- package/dist/bundle/{chunk-VT2UFYPJ.js → chunk-DA63E2UM.js} +13 -9
- package/dist/bundle/{chunk-2FEZ24DK.js → chunk-ECEP4SO3.js} +20 -20
- package/dist/bundle/{chunk-ZSZJLJIA.js → chunk-EHU6EYGO.js} +38 -28
- package/dist/bundle/{chunk-EJ4PNHPP.js → chunk-ELJUBPY4.js} +1 -1
- package/dist/bundle/{chunk-F2VDAG32.js → chunk-EM7NL5ES.js} +3 -3
- package/dist/bundle/{chunk-O2QO5UZC.js → chunk-EU5MD24W.js} +13 -13
- package/dist/bundle/{chunk-KIN6PDFE.js → chunk-EZ2OLYEK.js} +4 -4
- package/dist/bundle/{chunk-OH3K2E7X.js → chunk-F56DRBGY.js} +655 -1220
- package/dist/bundle/{chunk-VIJ6ACYB.js → chunk-FA6JNXCC.js} +8 -8
- package/dist/bundle/{chunk-KE4XPPRQ.js → chunk-FBHSWQU7.js} +1531 -136
- package/dist/bundle/{chunk-ZRZ4HTCK.js → chunk-GW3LBY3T.js} +51 -67
- package/dist/bundle/{chunk-6B37XO6B.js → chunk-HP3NT6JJ.js} +3 -3
- package/dist/bundle/{chunk-IX7NQJLY.js → chunk-I272E6UR.js} +9 -8
- package/dist/bundle/{chunk-5HSRQ53R.js → chunk-IBO23OID.js} +2 -2
- package/dist/bundle/{chunk-EZ6O3ST3.js → chunk-II4S2DBJ.js} +3 -3
- package/dist/bundle/{chunk-3NULZGQU.js → chunk-IKHOIXJR.js} +2 -2
- package/dist/bundle/{chunk-JRXFW7HE.js → chunk-IMHW7VIV.js} +5 -5
- package/dist/bundle/{chunk-USLZE36C.js → chunk-JMJIH6JH.js} +6 -6
- package/dist/bundle/{chunk-C7WBNOYW.js → chunk-JPPPLKAO.js} +26 -1
- package/dist/bundle/{chunk-EQEGJVO2.js → chunk-LMKPP2JP.js} +1 -1
- package/dist/bundle/{chunk-G3NULXOM.js → chunk-M7ELUGU6.js} +4 -4
- package/dist/bundle/{chunk-6G53ZFUT.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-EWGVDFPT.js → chunk-NI5PD5KM.js} +39203 -35871
- package/dist/bundle/{chunk-AHB4OJCI.js → chunk-NQ5XMSLA.js} +3678 -2049
- package/dist/bundle/chunk-NQRTKYJB.js +257 -0
- package/dist/bundle/{chunk-3J5KAFNA.js → chunk-O6K2E7OA.js} +3917 -3005
- package/dist/bundle/{chunk-J62DI53V.js → chunk-O7ZDCOZE.js} +1 -1
- package/dist/bundle/{chunk-XPXKD63J.js → chunk-OFJXHEFT.js} +13 -13
- package/dist/bundle/chunk-OWMZUWCM.js +109 -0
- package/dist/bundle/chunk-PHOL2DZM.js +138 -0
- package/dist/bundle/{chunk-KG2XKEHL.js → chunk-PLP5527C.js} +5 -5
- package/dist/bundle/{chunk-5ZBR55US.js → chunk-RNHGQ35R.js} +1 -1
- package/dist/bundle/{chunk-IK6KH3RE.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-K6BSB53R.js → chunk-SE352DBY.js} +1 -1
- package/dist/bundle/chunk-SEQWBZYH.js +18 -0
- package/dist/bundle/{chunk-LOMW6F2E.js → chunk-SIWXYB4E.js} +3734 -3448
- package/dist/bundle/{chunk-GW3U6OLD.js → chunk-SNLSEYJO.js} +1 -1
- package/dist/bundle/{chunk-UJR272CP.js → chunk-SS4LKLD7.js} +52 -605
- package/dist/bundle/{chunk-BEUAICUD.js → chunk-TMHF4BCL.js} +2 -2
- package/dist/bundle/{chunk-BDYWZ7JE.js → chunk-TOVWMURV.js} +30 -6
- package/dist/bundle/{chunk-N622LRPM.js → chunk-TTP4NOP3.js} +4 -4
- package/dist/bundle/chunk-UTNRBOEN.js +53 -0
- package/dist/bundle/{chunk-36GPBPWM.js → chunk-VDZY3L7U.js} +3 -1
- package/dist/bundle/chunk-VHQYWFWV.js +13 -0
- package/dist/bundle/{chunk-VPLFD5RJ.js → chunk-VLXWAH5E.js} +4 -4
- package/dist/bundle/{chunk-UIEA6FIV.js → chunk-VMAMRFFC.js} +23 -23
- package/dist/bundle/{chunk-HW4UPST2.js → chunk-W2XY6C5S.js} +2 -2
- package/dist/bundle/{chunk-P7DEGRZA.js → chunk-WRAUO5EJ.js} +22 -24
- package/dist/bundle/{chunk-QEAD2LF4.js → chunk-WRMJN6UQ.js} +3 -3
- package/dist/bundle/{chunk-UD55VB2N.js → chunk-WVJHZIDH.js} +3 -3
- package/dist/bundle/{chunk-B67BLRAI.js → chunk-X7YGGWXI.js} +1 -59
- package/dist/bundle/{chunk-EC2XGDKJ.js → chunk-XPWZSW6Y.js} +4 -4
- package/dist/bundle/{chunk-E2LBCCTG.js → chunk-XYE7XZPB.js} +5 -5
- package/dist/bundle/{chunk-TNV2FXVK.js → chunk-Y5PKRITX.js} +5 -5
- package/dist/bundle/{chunk-5OFA5EXE.js → chunk-Z2ADO6UA.js} +2 -2
- package/dist/bundle/{chunk-PBMSBCVB.js → chunk-ZD4MB7NH.js} +1 -1
- package/dist/bundle/{chunk-2W464HAE.js → chunk-ZILALBYQ.js} +4 -4
- package/dist/bundle/{chunk-OEVHZOHC.js → chunk-ZR2EJPMQ.js} +44 -15
- package/dist/bundle/command-contract-25E4PYMD.js +40 -0
- package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
- package/dist/bundle/{decode-HTOQ6S3V.js → decode-T5ZW57WZ.js} +8 -8
- package/dist/bundle/{dispatch-SH5SP6LA.js → dispatch-RMA2XFYA.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-KFHB6SLX.js → echarts-KQ44LPSF.js} +2 -2
- package/dist/bundle/{embed-YATFB2PN.js → embed-Q7XST53J.js} +9 -9
- package/dist/bundle/{embedder-MQPDFGTJ.js → embedder-RWZSBVW2.js} +12 -12
- package/dist/bundle/entry-HPLW4QL2.js +25 -0
- package/dist/bundle/{failure-4FQL4XJI.js → failure-7NP4QPIN.js} +4 -4
- package/dist/bundle/first-run-RL3RKYZW.js +30 -0
- package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
- package/dist/bundle/google-DPD5N6AQ.js +42 -0
- package/dist/bundle/{google-api-QMFGCXBM.js → google-api-P5DRHD7L.js} +61 -55
- package/dist/bundle/grants-TX4MHLI4.js +109 -0
- package/dist/bundle/{identity-FYVDK4M2.js → identity-VDV6CHRW.js} +6 -6
- package/dist/bundle/{instructions-D3GF3B7M.js → instructions-Q45FVY6H.js} +1 -1
- package/dist/bundle/{login-COFZ2IWP.js → login-XKN3NI6X.js} +67 -61
- package/dist/bundle/{mcp-RKJG22KM.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-OFICOKX3.js → node-MSW565D3.js} +2 -2
- package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
- package/dist/bundle/{node-sqlite-DNBTDOXD.js → node-sqlite-S74XVVHL.js} +13 -9
- package/dist/bundle/oauth-6R7AWAES.js +22 -0
- package/dist/bundle/{open-PTPR2YWX.js → open-P7UQG7XJ.js} +8 -8
- package/dist/bundle/{openai-2KV5LUW4.js → openai-DDHJ57KZ.js} +19 -40
- package/dist/bundle/{process-EAW6NST2.js → process-NMUB5SHK.js} +1 -1
- package/dist/bundle/{program-6UV5Q5YN.js → program-PJNWP6JW.js} +294 -137
- package/dist/bundle/{prompt-634TPMJK.js → prompt-VOSMK4C2.js} +8 -8
- package/dist/bundle/{reasons-DDWCEYSQ.js → reasons-KDAXOC5S.js} +5 -5
- package/dist/bundle/{recognize-SJO6QUDW.js → recognize-GZIY63HS.js} +7 -7
- package/dist/bundle/{remote-6JXZITKF.js → remote-V3YGN7LN.js} +10 -10
- package/dist/bundle/{rerank-MD5VOPQ6.js → rerank-XRU6AVN7.js} +10 -10
- package/dist/bundle/{serve-LZTROA2M.js → serve-NDOAFA57.js} +12 -12
- package/dist/bundle/{server-NSA3UAFY.js → server-BKGWJYMC.js} +46 -44
- package/dist/bundle/server-QD2MUJJZ.js +72 -0
- package/dist/bundle/{services-F5A6XQCV.js → services-TYDMFQCA.js} +101 -41
- package/dist/bundle/{sqlite-runtime-7YF6REKS.js → sqlite-runtime-UAFJKSJR.js} +9 -9
- package/dist/bundle/{start-MUFLE6FA.js → start-2ZLDP2OE.js} +7 -7
- package/dist/bundle/{state-UC54F3YZ.js → state-6SP27J2K.js} +9 -9
- package/dist/bundle/{store-J53YNAH6.js → store-4UUY545Q.js} +25 -18
- package/dist/bundle/{store-F5FJGWMR.js → store-EJN27MXI.js} +61 -28
- package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
- package/dist/bundle/tokens-MTFJPTYT.js +107 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +6 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts +2 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +39 -3
- package/dist/commands/documents.js.map +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +32 -2
- package/dist/config.js.map +1 -1
- package/dist/documents-add.d.ts +49 -0
- package/dist/documents-add.d.ts.map +1 -0
- package/dist/documents-add.js +122 -0
- package/dist/documents-add.js.map +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -1
- package/dist/errors.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +15 -17
- package/dist/knowledge.js.map +1 -1
- package/dist/model.d.ts +3 -0
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +22 -15
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +25 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +20 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-DD7EFG6B.js +0 -35
- package/dist/bundle/chunk-GSMYXGFR.js +0 -62
- package/dist/bundle/command-contract-H5OYJOPF.js +0 -38
- package/dist/bundle/entry-YZBB647C.js +0 -22
- package/dist/bundle/first-run-5JT3UQZB.js +0 -30
- package/dist/bundle/first-screen-BEMDEWO7.js +0 -36
- package/dist/bundle/google-DVADVICN.js +0 -36
- package/dist/bundle/grants-WKB2E4TA.js +0 -103
- package/dist/bundle/oauth-PDQHWFBF.js +0 -22
- package/dist/bundle/server-GT7X666D.js +0 -69
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +0 -58
- package/dist/bundle/tokens-H2EJKGA5.js +0 -101
- package/dist/bundle/{chunk-SW6C6WH5.js → chunk-YVNHQFLC.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
package/dist/bin/drive.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.65.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-PD7GJHFA.js","../bundle/anthropic-PJKFON5H.js","../bundle/app-server-6ELQA6FJ.js","../bundle/bun-P54TGES2.js","../bundle/bun-sqlite-TND5ZRJH.js","../bundle/command-contract-25E4PYMD.js","../bundle/command-server-entry-36JXYIJB.js","../bundle/decode-T5ZW57WZ.js","../bundle/dispatch-RMA2XFYA.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-KQ44LPSF.js","../bundle/embed-Q7XST53J.js","../bundle/embedder-RWZSBVW2.js","../bundle/entry-HPLW4QL2.js","../bundle/failure-7NP4QPIN.js","../bundle/first-run-RL3RKYZW.js","../bundle/first-screen-NX3TM2VJ.js","../bundle/google-DPD5N6AQ.js","../bundle/google-api-P5DRHD7L.js","../bundle/grants-TX4MHLI4.js","../bundle/identity-VDV6CHRW.js","../bundle/instructions-Q45FVY6H.js","../bundle/login-XKN3NI6X.js","../bundle/mcp-7KQUJNFN.js","../bundle/mdast-util-from-markdown-CE73EWJ2.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-MSW565D3.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-S74XVVHL.js","../bundle/oauth-6R7AWAES.js","../bundle/open-P7UQG7XJ.js","../bundle/openai-DDHJ57KZ.js","../bundle/process-NMUB5SHK.js","../bundle/program-PJNWP6JW.js","../bundle/prompt-VOSMK4C2.js","../bundle/reasons-KDAXOC5S.js","../bundle/recognize-GZIY63HS.js","../bundle/remote-V3YGN7LN.js","../bundle/rerank-XRU6AVN7.js","../bundle/serve-NDOAFA57.js","../bundle/server-BKGWJYMC.js","../bundle/server-QD2MUJJZ.js","../bundle/services-TYDMFQCA.js","../bundle/sqlite-runtime-UAFJKSJR.js","../bundle/start-2ZLDP2OE.js","../bundle/state-6SP27J2K.js","../bundle/store-4UUY545Q.js","../bundle/store-EJN27MXI.js","../bundle/store-maintenance-command-LETURZDC.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-MTFJPTYT.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -2,32 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4EDWLR22.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-42G2XNPN.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DA63E2UM.js";
|
|
17
|
+
import "./chunk-X7YGGWXI.js";
|
|
18
|
+
import "./chunk-4AOINPN2.js";
|
|
19
|
+
import "./chunk-YVNHQFLC.js";
|
|
20
|
+
import "./chunk-7AQGVX5O.js";
|
|
21
|
+
import "./chunk-PLP5527C.js";
|
|
21
22
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-6DCLZLGX.js";
|
|
24
|
+
import "./chunk-W2XY6C5S.js";
|
|
25
|
+
import "./chunk-TOVWMURV.js";
|
|
26
|
+
import "./chunk-ELJUBPY4.js";
|
|
26
27
|
import {
|
|
27
28
|
__name
|
|
28
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
30
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
31
32
|
import { spawn } from "node:child_process";
|
|
32
33
|
import { randomUUID } from "node:crypto";
|
|
33
34
|
var PROTOCOL = "2025-06-18";
|
|
@@ -261,7 +262,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
261
262
|
}, "serveAllProfilesOverStdio");
|
|
262
263
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
263
264
|
const { build, close } = allProfilesServer(options);
|
|
264
|
-
const { serveOverHttp } = await import("./serve-
|
|
265
|
+
const { serveOverHttp } = await import("./serve-NDOAFA57.js");
|
|
265
266
|
const listening = await serveOverHttp(build, {
|
|
266
267
|
...http,
|
|
267
268
|
appName: options.command,
|
|
@@ -4,29 +4,38 @@ import {
|
|
|
4
4
|
checkedOptions,
|
|
5
5
|
messagesFor,
|
|
6
6
|
systemFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EZ2OLYEK.js";
|
|
8
8
|
import {
|
|
9
9
|
Anthropic
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ADLS6FVG.js";
|
|
11
|
+
import "./chunk-7AQGVX5O.js";
|
|
12
|
+
import "./chunk-PLP5527C.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-6DCLZLGX.js";
|
|
15
|
+
import "./chunk-W2XY6C5S.js";
|
|
16
16
|
import {
|
|
17
17
|
array,
|
|
18
|
+
literal,
|
|
18
19
|
optional,
|
|
20
|
+
picklist,
|
|
21
|
+
record,
|
|
19
22
|
strictObject,
|
|
20
|
-
string
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
string,
|
|
24
|
+
unknown
|
|
25
|
+
} from "./chunk-TOVWMURV.js";
|
|
26
|
+
import "./chunk-ELJUBPY4.js";
|
|
23
27
|
import {
|
|
24
28
|
__name
|
|
25
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
30
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
28
32
|
var options = strictObject({
|
|
29
|
-
stop_sequences: optional(array(string()))
|
|
33
|
+
stop_sequences: optional(array(string())),
|
|
34
|
+
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
35
|
+
output_config: optional(strictObject({
|
|
36
|
+
effort: optional(picklist(["low", "medium", "high"])),
|
|
37
|
+
format: optional(strictObject({ type: literal("json_schema"), schema: record(string(), unknown()) }))
|
|
38
|
+
}))
|
|
30
39
|
});
|
|
31
40
|
var anthropic = {
|
|
32
41
|
images: true,
|
|
@@ -3,34 +3,52 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A4QNADEX.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GW3LBY3T.js";
|
|
10
10
|
import {
|
|
11
11
|
answered,
|
|
12
12
|
failed,
|
|
13
13
|
registerCommands,
|
|
14
14
|
runCommandForAgent,
|
|
15
15
|
toolsFromCommands
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3ONWN3IA.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D7WB54P7.js";
|
|
21
|
+
import {
|
|
22
|
+
appInstructions
|
|
23
|
+
} from "./chunk-RNHGQ35R.js";
|
|
21
24
|
import {
|
|
22
25
|
answeredWire
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4EDWLR22.js";
|
|
24
27
|
import {
|
|
25
28
|
StdioServerTransport,
|
|
26
29
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-42G2XNPN.js";
|
|
28
31
|
import {
|
|
29
32
|
McpServer
|
|
30
33
|
} from "./chunk-5D4AEUVA.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-SS4LKLD7.js";
|
|
35
|
+
import "./chunk-WRAUO5EJ.js";
|
|
36
|
+
import "./chunk-O6K2E7OA.js";
|
|
37
|
+
import "./chunk-FBHSWQU7.js";
|
|
38
|
+
import "./chunk-EU5MD24W.js";
|
|
39
|
+
import "./chunk-TTP4NOP3.js";
|
|
40
|
+
import "./chunk-MCPOZNWG.js";
|
|
41
|
+
import {
|
|
42
|
+
mcpHttpMarker
|
|
43
|
+
} from "./chunk-5XSBCMAF.js";
|
|
44
|
+
import "./chunk-EM7NL5ES.js";
|
|
45
|
+
import "./chunk-EZ2OLYEK.js";
|
|
46
|
+
import "./chunk-II4S2DBJ.js";
|
|
47
|
+
import "./chunk-CWLL63JD.js";
|
|
48
|
+
import "./chunk-IMHW7VIV.js";
|
|
49
|
+
import "./chunk-5DPV7X27.js";
|
|
50
|
+
import "./chunk-SEQWBZYH.js";
|
|
51
|
+
import "./chunk-Y5PKRITX.js";
|
|
34
52
|
import {
|
|
35
53
|
DEFAULT_OUTPUT_BYTES,
|
|
36
54
|
changesAuthorityAt,
|
|
@@ -39,64 +57,49 @@ import {
|
|
|
39
57
|
judgedTargets,
|
|
40
58
|
readsOverMcpAt,
|
|
41
59
|
rootOf2 as rootOf
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import
|
|
46
|
-
|
|
47
|
-
} from "./chunk-4CNTID2X.js";
|
|
48
|
-
import "./chunk-F2VDAG32.js";
|
|
49
|
-
import "./chunk-J62DI53V.js";
|
|
50
|
-
import {
|
|
51
|
-
appInstructions
|
|
52
|
-
} from "./chunk-5ZBR55US.js";
|
|
53
|
-
import "./chunk-3J5KAFNA.js";
|
|
54
|
-
import "./chunk-KE4XPPRQ.js";
|
|
55
|
-
import "./chunk-O2QO5UZC.js";
|
|
56
|
-
import "./chunk-OH3K2E7X.js";
|
|
57
|
-
import "./chunk-N622LRPM.js";
|
|
58
|
-
import "./chunk-6G53ZFUT.js";
|
|
60
|
+
} from "./chunk-SIWXYB4E.js";
|
|
61
|
+
import "./chunk-DA63E2UM.js";
|
|
62
|
+
import "./chunk-F56DRBGY.js";
|
|
63
|
+
import "./chunk-OWMZUWCM.js";
|
|
64
|
+
import "./chunk-VLXWAH5E.js";
|
|
59
65
|
import {
|
|
60
66
|
readOnlyLockOf
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-DD7EFG6B.js";
|
|
77
|
-
import "./chunk-USLZE36C.js";
|
|
78
|
-
import "./chunk-EQEGJVO2.js";
|
|
79
|
-
import "./chunk-5OFA5EXE.js";
|
|
67
|
+
} from "./chunk-IKHOIXJR.js";
|
|
68
|
+
import "./chunk-O7ZDCOZE.js";
|
|
69
|
+
import "./chunk-A27UVLPK.js";
|
|
70
|
+
import "./chunk-B2LPCHQN.js";
|
|
71
|
+
import "./chunk-Z2ADO6UA.js";
|
|
72
|
+
import "./chunk-NI5PD5KM.js";
|
|
73
|
+
import "./chunk-WVJHZIDH.js";
|
|
74
|
+
import "./chunk-FA6JNXCC.js";
|
|
75
|
+
import "./chunk-JMJIH6JH.js";
|
|
76
|
+
import "./chunk-D6Z43SOG.js";
|
|
77
|
+
import "./chunk-ECEP4SO3.js";
|
|
78
|
+
import "./chunk-X7YGGWXI.js";
|
|
79
|
+
import "./chunk-4AOINPN2.js";
|
|
80
|
+
import "./chunk-4Y5YBFMS.js";
|
|
81
|
+
import "./chunk-LMKPP2JP.js";
|
|
80
82
|
import "./chunk-D72URWJE.js";
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-RX5CJ55S.js";
|
|
84
|
+
import "./chunk-YVNHQFLC.js";
|
|
85
|
+
import "./chunk-VDZY3L7U.js";
|
|
86
|
+
import "./chunk-UTNRBOEN.js";
|
|
87
|
+
import "./chunk-7AQGVX5O.js";
|
|
85
88
|
import {
|
|
86
89
|
mcpErrorResult
|
|
87
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-PLP5527C.js";
|
|
88
91
|
import "./chunk-Y5E2WNWB.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-6DCLZLGX.js";
|
|
93
|
+
import "./chunk-W2XY6C5S.js";
|
|
94
|
+
import "./chunk-TOVWMURV.js";
|
|
92
95
|
import {
|
|
93
96
|
CliError
|
|
94
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-ELJUBPY4.js";
|
|
95
98
|
import {
|
|
96
99
|
__name
|
|
97
100
|
} from "./chunk-ZVVMGPBJ.js";
|
|
98
101
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
100
103
|
var EXCLUDED = [["mcp"]];
|
|
101
104
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
102
105
|
const { app } = options;
|
|
@@ -214,7 +217,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
214
217
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
215
218
|
const { app } = options;
|
|
216
219
|
const { build } = createAppServer(command, context, options);
|
|
217
|
-
const { serveOverHttp } = await import("./serve-
|
|
220
|
+
const { serveOverHttp } = await import("./serve-NDOAFA57.js");
|
|
218
221
|
const listening = await serveOverHttp(build, {
|
|
219
222
|
...http,
|
|
220
223
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LMKPP2JP.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,21 +3,24 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
} from "./chunk-IBO23OID.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-UTNRBOEN.js";
|
|
10
|
+
import "./chunk-7AQGVX5O.js";
|
|
11
|
+
import "./chunk-PLP5527C.js";
|
|
9
12
|
import {
|
|
10
13
|
importFrom
|
|
11
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6DCLZLGX.js";
|
|
16
|
+
import "./chunk-W2XY6C5S.js";
|
|
17
|
+
import "./chunk-TOVWMURV.js";
|
|
18
|
+
import "./chunk-ELJUBPY4.js";
|
|
16
19
|
import {
|
|
17
20
|
__name
|
|
18
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
22
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
21
24
|
var customised = false;
|
|
22
25
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
23
26
|
try {
|
|
@@ -40,6 +43,7 @@ var bunDatabase = /* @__PURE__ */ __name(async () => {
|
|
|
40
43
|
}, "bunDatabase");
|
|
41
44
|
var openWithBunSqlite = /* @__PURE__ */ __name(async (path) => cacheOverBunSqlite(await bunClient(path)), "openWithBunSqlite");
|
|
42
45
|
var bunClient = /* @__PURE__ */ __name(async (path, options) => {
|
|
46
|
+
refuseOwnerStoreInTests(path);
|
|
43
47
|
const Database = await bunDatabase();
|
|
44
48
|
const extension = await vectorExtension();
|
|
45
49
|
const client = options ? new Database(path, options) : new Database(path);
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
stdinFieldOf
|
|
5
|
+
} from "./chunk-SEQWBZYH.js";
|
|
6
|
+
import {
|
|
7
|
+
isCommandServer
|
|
8
|
+
} from "./chunk-VHQYWFWV.js";
|
|
9
|
+
import {
|
|
10
|
+
commandPathOf
|
|
11
|
+
} from "./chunk-Y5PKRITX.js";
|
|
12
|
+
import {
|
|
13
|
+
commandServerRequest,
|
|
14
|
+
metaOf
|
|
15
|
+
} from "./chunk-SIWXYB4E.js";
|
|
16
|
+
import {
|
|
17
|
+
errorObjectOf,
|
|
18
|
+
renderError
|
|
19
|
+
} from "./chunk-PLP5527C.js";
|
|
20
|
+
import {
|
|
21
|
+
CliError
|
|
22
|
+
} from "./chunk-ELJUBPY4.js";
|
|
23
|
+
import {
|
|
24
|
+
__name
|
|
25
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
26
|
+
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/command-server.js
|
|
28
|
+
import { createInterface } from "node:readline";
|
|
29
|
+
var COMMAND_SERVER_PROTOCOL = 1;
|
|
30
|
+
var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
|
|
31
|
+
var COMMAND_SERVER_CONCURRENT = 8;
|
|
32
|
+
var runsAlone = /* @__PURE__ */ __name((command) => commandPathOf(command)[0] === "store", "runsAlone");
|
|
33
|
+
var enterCommandServer = /* @__PURE__ */ __name(async (command, cli) => {
|
|
34
|
+
const request = commandServerRequest();
|
|
35
|
+
if (!request)
|
|
36
|
+
return;
|
|
37
|
+
refuseInCommandServer(command, cli);
|
|
38
|
+
if (runsAlone(command))
|
|
39
|
+
await request.alone();
|
|
40
|
+
}, "enterCommandServer");
|
|
41
|
+
var refuseInCommandServer = /* @__PURE__ */ __name((command, cli) => {
|
|
42
|
+
if (!commandServerRequest())
|
|
43
|
+
return;
|
|
44
|
+
const typed = [cli, ...commandPathOf(command)].join(" ");
|
|
45
|
+
const { lifetime } = metaOf(command);
|
|
46
|
+
if (lifetime)
|
|
47
|
+
throw new CliError("validation_error", `\`${typed}\` ${lifetime === "persistent" ? "runs until it is stopped" : "waits on a person"}; the command server runs only commands that return \u2014 start it as a process of its own`);
|
|
48
|
+
if (stdinFieldOf(command))
|
|
49
|
+
throw new CliError("validation_error", `\`${typed}\` reads its input on stdin, which the command server does not pass on \u2014 start it as a process of its own`);
|
|
50
|
+
}, "refuseInCommandServer");
|
|
51
|
+
var refusal = /* @__PURE__ */ __name((cli, message) => `${renderError(errorObjectOf(new CliError("validation_error", message)), { cli, interactive: false })}
|
|
52
|
+
`, "refusal");
|
|
53
|
+
var requestOf = /* @__PURE__ */ __name((line, cli) => {
|
|
54
|
+
let parsed;
|
|
55
|
+
try {
|
|
56
|
+
parsed = JSON.parse(line);
|
|
57
|
+
} catch {
|
|
58
|
+
return { id: null, error: "a request is one JSON object per line" };
|
|
59
|
+
}
|
|
60
|
+
const { id, argv } = parsed ?? {};
|
|
61
|
+
const known = typeof id === "number" && Number.isFinite(id) ? id : null;
|
|
62
|
+
if (known === null)
|
|
63
|
+
return { id: null, error: 'a request needs a numeric "id"' };
|
|
64
|
+
if (!Array.isArray(argv) || !argv.every((word) => typeof word === "string"))
|
|
65
|
+
return { id: known, error: '"argv" is a list of strings' };
|
|
66
|
+
if (isCommandServer(argv))
|
|
67
|
+
return { id: known, error: `\`${cli} commands --serve\` cannot run inside itself` };
|
|
68
|
+
return { id: known, argv };
|
|
69
|
+
}, "requestOf");
|
|
70
|
+
var serveCommands = /* @__PURE__ */ __name(async ({ input, write, run, cli, version, idleMs = COMMAND_SERVER_IDLE_MS, concurrent = COMMAND_SERVER_CONCURRENT, signal }) => {
|
|
71
|
+
const send = /* @__PURE__ */ __name((value) => write(`${JSON.stringify(value)}
|
|
72
|
+
`), "send");
|
|
73
|
+
await send({ ready: true, protocol: COMMAND_SERVER_PROTOCOL, version, concurrent });
|
|
74
|
+
const lines = createInterface({ input, crlfDelay: Number.POSITIVE_INFINITY });
|
|
75
|
+
return new Promise((resolve) => {
|
|
76
|
+
const waiting = [];
|
|
77
|
+
let active = 0;
|
|
78
|
+
let running = 0;
|
|
79
|
+
let gated = false;
|
|
80
|
+
let drained;
|
|
81
|
+
let turns = Promise.resolve();
|
|
82
|
+
let timer;
|
|
83
|
+
let ending = false;
|
|
84
|
+
let done = false;
|
|
85
|
+
const finish = /* @__PURE__ */ __name(() => {
|
|
86
|
+
if (done)
|
|
87
|
+
return;
|
|
88
|
+
done = true;
|
|
89
|
+
clearTimeout(timer);
|
|
90
|
+
lines.close();
|
|
91
|
+
resolve(0);
|
|
92
|
+
}, "finish");
|
|
93
|
+
const settle = /* @__PURE__ */ __name(() => {
|
|
94
|
+
if (running === 0 && drained) {
|
|
95
|
+
const go = drained;
|
|
96
|
+
drained = void 0;
|
|
97
|
+
go();
|
|
98
|
+
}
|
|
99
|
+
pump();
|
|
100
|
+
if (active > 0 || waiting.length > 0 || done)
|
|
101
|
+
return;
|
|
102
|
+
if (ending)
|
|
103
|
+
finish();
|
|
104
|
+
else {
|
|
105
|
+
clearTimeout(timer);
|
|
106
|
+
timer = setTimeout(finish, idleMs);
|
|
107
|
+
}
|
|
108
|
+
}, "settle");
|
|
109
|
+
const start = /* @__PURE__ */ __name((line) => {
|
|
110
|
+
active += 1;
|
|
111
|
+
running += 1;
|
|
112
|
+
let holdsPlace = true;
|
|
113
|
+
let ended = false;
|
|
114
|
+
let turn;
|
|
115
|
+
let release;
|
|
116
|
+
const alone = /* @__PURE__ */ __name(() => {
|
|
117
|
+
if (turn)
|
|
118
|
+
return turn;
|
|
119
|
+
holdsPlace = false;
|
|
120
|
+
running -= 1;
|
|
121
|
+
turn = turns.then(() => new Promise((go) => {
|
|
122
|
+
if (ended)
|
|
123
|
+
return go();
|
|
124
|
+
gated = true;
|
|
125
|
+
drained = /* @__PURE__ */ __name(() => {
|
|
126
|
+
if (ended)
|
|
127
|
+
gated = false;
|
|
128
|
+
else {
|
|
129
|
+
holdsPlace = true;
|
|
130
|
+
running += 1;
|
|
131
|
+
}
|
|
132
|
+
go();
|
|
133
|
+
}, "drained");
|
|
134
|
+
settle();
|
|
135
|
+
}));
|
|
136
|
+
turns = turn.then(() => ended && !holdsPlace ? void 0 : new Promise((free) => release = free));
|
|
137
|
+
return turn;
|
|
138
|
+
}, "alone");
|
|
139
|
+
const answer = /* @__PURE__ */ __name(async () => {
|
|
140
|
+
const request = requestOf(line, cli);
|
|
141
|
+
if ("error" in request)
|
|
142
|
+
return send({ id: request.id, code: 2, stdout: "", stderr: refusal(cli, request.error) });
|
|
143
|
+
const answered = await run(request.argv, alone);
|
|
144
|
+
return send({ id: request.id, ...answered });
|
|
145
|
+
}, "answer");
|
|
146
|
+
answer().catch(finish).finally(() => {
|
|
147
|
+
ended = true;
|
|
148
|
+
active -= 1;
|
|
149
|
+
if (holdsPlace)
|
|
150
|
+
running -= 1;
|
|
151
|
+
if (release) {
|
|
152
|
+
gated = false;
|
|
153
|
+
release();
|
|
154
|
+
}
|
|
155
|
+
settle();
|
|
156
|
+
});
|
|
157
|
+
}, "start");
|
|
158
|
+
const pump = /* @__PURE__ */ __name(() => {
|
|
159
|
+
while (!done && !gated && running < concurrent && waiting.length > 0)
|
|
160
|
+
start(waiting.shift());
|
|
161
|
+
}, "pump");
|
|
162
|
+
lines.on("line", (line) => {
|
|
163
|
+
if (done || ending || line.trim() === "")
|
|
164
|
+
return;
|
|
165
|
+
clearTimeout(timer);
|
|
166
|
+
waiting.push(line);
|
|
167
|
+
pump();
|
|
168
|
+
});
|
|
169
|
+
const end = /* @__PURE__ */ __name(() => {
|
|
170
|
+
ending = true;
|
|
171
|
+
settle();
|
|
172
|
+
}, "end");
|
|
173
|
+
lines.on("close", end);
|
|
174
|
+
if (signal?.aborted)
|
|
175
|
+
end();
|
|
176
|
+
signal?.addEventListener("abort", end, { once: true });
|
|
177
|
+
settle();
|
|
178
|
+
});
|
|
179
|
+
}, "serveCommands");
|
|
180
|
+
|
|
181
|
+
export {
|
|
182
|
+
COMMAND_SERVER_CONCURRENT,
|
|
183
|
+
enterCommandServer,
|
|
184
|
+
serveCommands
|
|
185
|
+
};
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5XSBCMAF.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|