@wirecat/zoom-cli 0.80.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/wirecat.json +71 -3
- package/dist/answers.d.ts +44 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +45 -0
- package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-3ASMN35R.js} +64 -22
- package/dist/bundle/answer-policy-PTH4F2DW.js +129 -0
- package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-XXI53VNI.js} +6 -6
- package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-B7WLNZNQ.js} +90 -80
- package/dist/bundle/{bun-M5IGY2TG.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-3NNHTOGM.js} +7 -7
- package/dist/bundle/{chunk-P2JTVRGU.js → chunk-2ELGSNX3.js} +17 -17
- package/dist/bundle/{chunk-5RVXXDN7.js → chunk-2GNGR265.js} +1 -1
- package/dist/bundle/{chunk-W2QDYMAM.js → chunk-2RFWRJFK.js} +7 -7
- package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/chunk-337ALCXQ.js +640 -0
- package/dist/bundle/{chunk-4F7Q5CET.js → chunk-35FVYRH5.js} +20 -18
- package/dist/bundle/{chunk-HH7GR6TN.js → chunk-3M436OO2.js} +6 -6
- package/dist/bundle/{chunk-5QXQIZJY.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/{chunk-NRVMK5H3.js → chunk-437DLSB3.js} +1211 -615
- package/dist/bundle/{chunk-L2TURFT6.js → chunk-46EF6P2J.js} +3 -3
- package/dist/bundle/{chunk-GVKZZT7E.js → chunk-4B335BCJ.js} +7 -78
- package/dist/bundle/chunk-4BU3LRTB.js +561 -0
- package/dist/bundle/{chunk-W32HK7KG.js → chunk-4BXLHSXY.js} +2 -2
- package/dist/bundle/{chunk-JGSVWLL2.js → chunk-4FSH7K6N.js} +2 -2
- package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-4VOCXLMJ.js} +6 -6
- package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-4ZXJ4AZW.js} +26 -26
- package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-5EWYDHBH.js} +2 -2
- package/dist/bundle/{chunk-HGSBLY6M.js → chunk-5SEBLX6B.js} +12 -12
- package/dist/bundle/{chunk-TDBVM2SS.js → chunk-77TJ3AJH.js} +3 -3
- package/dist/bundle/{chunk-5XO2AY6D.js → chunk-7JWVPJIP.js} +10 -10
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-PCPOO5FS.js → chunk-AWJQ6FAX.js} +2 -2
- package/dist/bundle/{chunk-N5YUHN6S.js → chunk-B2WBWKYN.js} +12 -12
- package/dist/bundle/{chunk-W7M4JYEE.js → chunk-BQBC2WIG.js} +1 -1
- package/dist/bundle/{chunk-NXFKZFTC.js → chunk-BZXHJKKI.js} +3 -3
- package/dist/bundle/{chunk-BPSURRAD.js → chunk-C4BBCSGK.js} +43 -64
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-2P6MQH4V.js → chunk-D26K6756.js} +6 -6
- package/dist/bundle/{chunk-XKLU5KV2.js → chunk-D7CDHBDX.js} +1 -1
- package/dist/bundle/{chunk-6LY4LBSD.js → chunk-DMJLJVD3.js} +7 -7
- package/dist/bundle/{chunk-K672XJ2P.js → chunk-EEBSKMEA.js} +12 -12
- package/dist/bundle/{chunk-SUG6YGAF.js → chunk-EPASOAEI.js} +166 -161
- package/dist/bundle/{chunk-M4LAF627.js → chunk-EWEQ7AXL.js} +19 -19
- package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-F2J2FQUB.js} +9 -9
- package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-6QCBTBDA.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-EI37UXDR.js → chunk-FXCR4DGU.js} +1 -1
- package/dist/bundle/{chunk-D4HKTC2T.js → chunk-FXZPAGHT.js} +2 -2
- package/dist/bundle/{chunk-CW6CPQHI.js → chunk-G3DWMG7Y.js} +4 -4
- package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/chunk-GDRFVBCB.js +108 -0
- package/dist/bundle/{chunk-A3TUG2DP.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GW2A2FJH.js +209 -0
- package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-HHQROAJQ.js} +1 -1
- package/dist/bundle/{chunk-BRMV33MO.js → chunk-HIFPHARA.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-ONJPUFLX.js → chunk-IBYGNUO7.js} +1 -1
- package/dist/bundle/{chunk-GGKEQQME.js → chunk-IDUKCXL7.js} +8 -8
- package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-IFM4G4MT.js} +4 -4
- package/dist/bundle/chunk-IVZACJ6X.js +52 -0
- package/dist/bundle/{chunk-XIHENZW6.js → chunk-IYNICUCC.js} +4 -4
- package/dist/bundle/chunk-J5EHZBO5.js +68 -0
- package/dist/bundle/{chunk-FIJREKLA.js → chunk-JK24A3RP.js} +3 -3
- package/dist/bundle/{chunk-TNL3YQ33.js → chunk-JKEMW6E4.js} +2 -2
- package/dist/bundle/{chunk-3AOESMW6.js → chunk-K7CTCDYX.js} +18 -259
- package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-KZ3B6HW5.js} +3 -3
- package/dist/bundle/{chunk-E3JVLVVB.js → chunk-L2ERFXB7.js} +30 -28
- package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-L54I45OX.js} +19 -16
- package/dist/bundle/{chunk-475P3LWG.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LGESUPKO.js} +20 -20
- package/dist/bundle/{chunk-75JW7X2W.js → chunk-LVCCZI5A.js} +71 -61
- package/dist/bundle/chunk-M7OYEMLI.js +340 -0
- package/dist/bundle/{chunk-O4ZBFATF.js → chunk-MA4UJNUI.js} +12 -12
- package/dist/bundle/{chunk-RFXJLG5V.js → chunk-MBBR7QHI.js} +3377 -2720
- package/dist/bundle/{chunk-BNEJKGG7.js → chunk-N5ROXGY4.js} +78 -76
- package/dist/bundle/{chunk-BW5JEOBE.js → chunk-N62P5FY4.js} +12 -12
- package/dist/bundle/{chunk-5K54M6RD.js → chunk-NM5XMKWO.js} +1 -1
- package/dist/bundle/{chunk-EMYRUJCV.js → chunk-NQGGTO3B.js} +8 -8
- package/dist/bundle/{chunk-7U5X37TE.js → chunk-NS3JWBDR.js} +6 -6
- package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-NX3BLISW.js} +23 -7
- package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-GCPO7T2X.js → chunk-PS7HQ5LQ.js} +3 -3
- package/dist/bundle/{chunk-MH4L5LL6.js → chunk-Q26UFIH4.js} +3 -3
- package/dist/bundle/{chunk-JXSEH64A.js → chunk-QFK52FG6.js} +3 -3
- package/dist/bundle/chunk-QNG27PGH.js +751 -0
- package/dist/bundle/{chunk-YR5TRWT2.js → chunk-R4CXFYQN.js} +139 -574
- package/dist/bundle/{chunk-YAA2D6RP.js → chunk-R6HP2XKD.js} +5 -5
- package/dist/bundle/{chunk-CHEHK6IW.js → chunk-RQFRXUI4.js} +77 -67
- package/dist/bundle/{chunk-CWCDCNXA.js → chunk-RRYHLP3A.js} +6 -6
- package/dist/bundle/{chunk-EPIA2UUM.js → chunk-SRUAUMBL.js} +12 -12
- package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-T2BHIC37.js} +65 -65
- package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7QPZYRZ.js} +7 -7
- package/dist/bundle/{chunk-PKW3TPNP.js → chunk-TI4WJOEX.js} +13 -13
- package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-UHMJSSQO.js} +1 -1
- package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UMPUY77T.js} +10 -10
- package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-UPR2S5IE.js} +9 -9
- package/dist/bundle/chunk-UUVWAVKN.js +80 -0
- package/dist/bundle/{chunk-DYRISFHZ.js → chunk-V3ZTAAJ6.js} +19 -9
- package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-VAW7QGJA.js} +3 -3
- package/dist/bundle/{chunk-L6FM5RQY.js → chunk-VQTYJ6XH.js} +3 -3
- package/dist/bundle/{chunk-BIKHHFD2.js → chunk-VXD65V67.js} +1395 -1529
- package/dist/bundle/{chunk-XTCAWNBP.js → chunk-WHXYPLUE.js} +4 -4
- package/dist/bundle/chunk-WIX6BFRF.js +353 -0
- package/dist/bundle/{chunk-JJX4HKDV.js → chunk-WKNYNK7W.js} +4 -4
- package/dist/bundle/{chunk-NMETTKCV.js → chunk-XWKUGAG6.js} +14 -14
- package/dist/bundle/{chunk-3UONR5HW.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-RMX2WPWS.js → chunk-Y7XJA4EW.js} +4 -4
- package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-YIIGF643.js} +306 -306
- package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-YISJJNXT.js} +3 -3
- package/dist/bundle/{chunk-UX4JZMA4.js → chunk-YJKXCINQ.js} +28 -3
- package/dist/bundle/{chunk-U5N2PKKM.js → chunk-YNWBRDBX.js} +2 -2
- package/dist/bundle/{chunk-ZPZT46O6.js → chunk-YRDQ54G5.js} +33 -10
- package/dist/bundle/{chunk-VN7TKMOW.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-ZFRYFDZN.js} +2 -2
- package/dist/bundle/{chunk-IQWBGMCR.js → chunk-ZLYICF6A.js} +4 -4
- package/dist/bundle/{chunk-G5VH4WUF.js → chunk-ZMAPXIGC.js} +2 -2
- package/dist/bundle/{chunk-6MDL2LZA.js → chunk-ZNAX7GUV.js} +8 -8
- package/dist/bundle/{cli-QNBYDOKV.js → cli-WTGAGSXV.js} +142 -97
- package/dist/bundle/command-contract-3IKVWPDL.js +45 -0
- package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-47CAYN3E.js} +35 -35
- package/dist/bundle/config-ZOGOKGTU.js +116 -0
- package/dist/bundle/{decode-7PXUXNIP.js → decode-2G7QS5IQ.js} +6 -6
- package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-ZAP3KBVJ.js} +9 -9
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{dist-TSBH4FOU.js → dist-WY6R3WH7.js} +21 -21
- package/dist/bundle/{echarts-WIDIUEO6.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-EIRVQF5E.js → embed-B5H3OW2O.js} +7 -7
- package/dist/bundle/{embedder-MXPM6OXK.js → embedder-3O73SP6Y.js} +10 -10
- package/dist/bundle/{failure-JZW73RP7.js → failure-EYGW7JMC.js} +3 -3
- package/dist/bundle/first-run-MPKMDEMA.js +29 -0
- package/dist/bundle/first-screen-AIAAC3KF.js +45 -0
- package/dist/bundle/{folders-TGFOE7DY.js → folders-4CGFWM6H.js} +5 -5
- package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{main-OHW5Z56X.js → main-DOGY6FJP.js} +24 -24
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-YKPKTKGA.js +26 -0
- package/dist/bundle/meeting-model-HTXSGHNM.js +26 -0
- package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-FOEBWV3P.js} +8 -8
- package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-PVE4C2NF.js} +7 -7
- package/dist/bundle/{node-UEWUFR7N.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-MLRYKVCQ.js} +8 -8
- package/dist/bundle/oauth-AC55C6SG.js +20 -0
- package/dist/bundle/{open-EFYTWUGC.js → open-3LGTYP6M.js} +6 -6
- package/dist/bundle/openai-E2MSLVIX.js +28 -0
- package/dist/bundle/{output-file-J4SU6X4I.js → output-file-FXMTTLOI.js} +6 -6
- package/dist/bundle/{process-U5PLNIDC.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-3JICCSA6.js → program-E5BSSIGY.js} +164 -155
- package/dist/bundle/{prompt-YPDMSOKC.js → prompt-AIA6QSZK.js} +6 -6
- package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-M57VNTEV.js} +5 -5
- package/dist/bundle/{remote-R5HMDHOG.js → remote-3OTENZ7Z.js} +11 -11
- package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-P5WHDFDU.js} +8 -8
- package/dist/bundle/run-log-EOQ4EQDS.js +143 -0
- package/dist/bundle/{serve-CU3RMWU7.js → serve-BRLC2QVV.js} +11 -11
- package/dist/bundle/{server-SOQSVX2Q.js → server-25NF7DMS.js} +80 -69
- package/dist/bundle/server-EW2RL2EL.js +93 -0
- package/dist/bundle/{services-LROZ3RDT.js → services-MJE43OGD.js} +54 -52
- package/dist/bundle/{speech-AS77HFIF.js → speech-4AVCWTQH.js} +28 -28
- package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-U4TQXWMC.js} +7 -7
- package/dist/bundle/{state-CPEVKK66.js → state-GNUGVMY7.js} +7 -7
- package/dist/bundle/{store-6CHRMJM7.js → store-KBFZVQWF.js} +31 -24
- package/dist/bundle/{store-QKHCZOYR.js → store-MHVBFUBB.js} +27 -26
- package/dist/bundle/store-connection-SKRUAI4L.js +109 -0
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +81 -0
- package/dist/bundle/{streaming-VDJOYGMO.js → streaming-6F7AFEHD.js} +7 -7
- package/dist/bundle/surface-DWEWB5RG.js +79 -0
- package/dist/bundle/{tokens-JBN2OHQB.js → tokens-BB4MQBLH.js} +11 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YTGOZ2FS.js} +8 -8
- package/dist/commands.d.ts +1 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +8 -2
- package/dist/commands.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +31 -5
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-api/types.d.ts +5 -0
- package/dist/zoom-api/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
- package/dist/bundle/chunk-3BTRJYIT.js +0 -729
- package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
- package/dist/bundle/config-ZFQFDEVL.js +0 -109
- package/dist/bundle/first-run-K6EHRAIM.js +0 -29
- package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
- package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
- package/dist/bundle/meeting-model-4XNF725D.js +0 -26
- package/dist/bundle/oauth-KOONTGLW.js +0 -20
- package/dist/bundle/openai-6Y2JRDNY.js +0 -28
- package/dist/bundle/run-log-LG3TI3WI.js +0 -136
- package/dist/bundle/server-X7JYRMKX.js +0 -85
- package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CLIENT_INFO_META_KEY,
|
|
5
4
|
DEFAULT_MAX_SUBSCRIPTIONS,
|
|
6
5
|
McpServer,
|
|
7
6
|
ProtocolErrorCode,
|
|
@@ -24,12 +23,7 @@ import {
|
|
|
24
23
|
serverIdentityOf,
|
|
25
24
|
setNegotiatedProtocolVersion,
|
|
26
25
|
validateEnvelopeMeta
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
agentOf,
|
|
30
|
-
clientHash,
|
|
31
|
-
currentCaller
|
|
32
|
-
} from "./chunk-FSLR2YGR.js";
|
|
26
|
+
} from "./chunk-PL5P7UKW.js";
|
|
33
27
|
import {
|
|
34
28
|
__name
|
|
35
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,95 +535,7 @@ function toError(value) {
|
|
|
541
535
|
}
|
|
542
536
|
__name(toError, "toError");
|
|
543
537
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
-
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
|
-
const client = caller?.agent?.client?.name;
|
|
547
|
-
if (client && client !== "unknown")
|
|
548
|
-
return client;
|
|
549
|
-
const kind = caller?.agent?.kind;
|
|
550
|
-
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
551
|
-
}, "callingAgent");
|
|
552
|
-
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
553
|
-
var PROXY_CLIENT_NAME = "all-profiles";
|
|
554
|
-
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
555
|
-
var plain = /* @__PURE__ */ __name((value) => typeof value === "string" && NAME.test(value.trim()) ? value.trim() : void 0, "plain");
|
|
556
|
-
var clientFrom = /* @__PURE__ */ __name((value) => {
|
|
557
|
-
if (!value || typeof value !== "object")
|
|
558
|
-
return void 0;
|
|
559
|
-
const { name, version } = value;
|
|
560
|
-
const named = plain(name);
|
|
561
|
-
if (!named)
|
|
562
|
-
return void 0;
|
|
563
|
-
const versioned = plain(version);
|
|
564
|
-
return { name: named, ...versioned ? { version: versioned } : {} };
|
|
565
|
-
}, "clientFrom");
|
|
566
|
-
var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
|
|
567
|
-
const meta = ctx?.mcpReq?._meta;
|
|
568
|
-
const requestId = ctx?.mcpReq?.id;
|
|
569
|
-
const initialized = source.client?.();
|
|
570
|
-
const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
|
|
571
|
-
if (proxied)
|
|
572
|
-
return proxied;
|
|
573
|
-
const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
|
|
574
|
-
const mcp = /* @__PURE__ */ __name((connection) => ({
|
|
575
|
-
tool,
|
|
576
|
-
...requestId === void 0 ? {} : { request_id: String(requestId) },
|
|
577
|
-
...connection ? { connection_id: connection } : {}
|
|
578
|
-
}), "mcp");
|
|
579
|
-
const auth = ctx?.http?.authInfo;
|
|
580
|
-
if (auth) {
|
|
581
|
-
const registered = plain(auth.extra?.clientName);
|
|
582
|
-
return {
|
|
583
|
-
via: "mcp-http",
|
|
584
|
-
agent: {
|
|
585
|
-
kind: "mcp-client",
|
|
586
|
-
session_id: ctx?.sessionId ?? null,
|
|
587
|
-
client: {
|
|
588
|
-
name: registered ?? client?.name ?? "unknown",
|
|
589
|
-
...client?.version ? { version: client.version } : {},
|
|
590
|
-
id: clientHash(auth.clientId)
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
mcp: mcp(ctx?.sessionId)
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
const agent = agentOf(source.env) ?? { kind: "mcp-client", session_id: null };
|
|
597
|
-
return { via: "mcp-stdio", agent: { ...agent, ...client ? { client } : {} }, mcp: mcp(source.connectionId) };
|
|
598
|
-
}, "callerOf");
|
|
599
|
-
var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
600
|
-
if (!value || typeof value !== "object")
|
|
601
|
-
return void 0;
|
|
602
|
-
const { via, agent, mcp } = value;
|
|
603
|
-
if (via !== "mcp-stdio" && via !== "mcp-http")
|
|
604
|
-
return void 0;
|
|
605
|
-
const a = agent && typeof agent === "object" ? agent : void 0;
|
|
606
|
-
const kind = plain(a?.kind);
|
|
607
|
-
const session = typeof a?.session_id === "string" && /^[A-Za-z0-9._:-]{1,128}$/.test(a.session_id) ? a.session_id : null;
|
|
608
|
-
const client = clientFrom(a?.client);
|
|
609
|
-
const id = a?.client && typeof a.client === "object" ? a.client.id : void 0;
|
|
610
|
-
const m = mcp && typeof mcp === "object" ? mcp : {};
|
|
611
|
-
const request = plain(m.request_id);
|
|
612
|
-
const connection = typeof m.connection_id === "string" && /^[\w-]{1,128}$/.test(m.connection_id) ? m.connection_id : void 0;
|
|
613
|
-
return {
|
|
614
|
-
via,
|
|
615
|
-
...kind ? {
|
|
616
|
-
agent: {
|
|
617
|
-
kind,
|
|
618
|
-
session_id: session,
|
|
619
|
-
...a?.from_chat === true ? { from_chat: true } : {},
|
|
620
|
-
...client ? { client: { ...client, ...typeof id === "string" && /^[0-9a-f]{8}$/.test(id) ? { id } : {} } } : {}
|
|
621
|
-
}
|
|
622
|
-
} : {},
|
|
623
|
-
mcp: {
|
|
624
|
-
tool,
|
|
625
|
-
...request ? { request_id: request } : {},
|
|
626
|
-
...connection ? { connection_id: connection } : {},
|
|
627
|
-
proxied: true
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
}, "passedOn");
|
|
631
|
-
|
|
632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
633
539
|
import { PassThrough, Writable } from "node:stream";
|
|
634
540
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
635
541
|
let rest = "";
|
|
@@ -723,9 +629,5 @@ var answeredWire = /* @__PURE__ */ __name((source, sink) => {
|
|
|
723
629
|
export {
|
|
724
630
|
StdioServerTransport,
|
|
725
631
|
serveStdio,
|
|
726
|
-
callingAgent,
|
|
727
|
-
CALLER_META_KEY,
|
|
728
|
-
PROXY_CLIENT_NAME,
|
|
729
|
-
callerOf,
|
|
730
632
|
answeredWire
|
|
731
633
|
};
|