@wirecat/zoom-cli 0.73.0 → 0.75.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 +5 -4
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-V47CUJFK.js → all-profiles-WFLKFKJC.js} +19 -29
- package/dist/bundle/answer-policy-XCKC2LLN.js +110 -0
- package/dist/bundle/{anthropic-SID7Z3QN.js → anthropic-H45W4P22.js} +2 -2
- package/dist/bundle/{app-server-KCMUSY4A.js → app-server-I4FPLBIX.js} +49 -66
- package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-3TLKUN5A.js → bun-sqlite-X2YZPHDS.js} +3 -3
- package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-PACLT6IW.js → chunk-3U3W6YY5.js} +69 -68
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-IKNOTHG2.js → chunk-3YRPDNWK.js} +544 -142
- package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-Y3IH7EZC.js → chunk-4XDWV6VJ.js} +16 -16
- package/dist/bundle/{chunk-KHBZ4OEP.js → chunk-4YNUQGDP.js} +1 -1
- package/dist/bundle/{chunk-35CYSRGJ.js → chunk-532H3KT3.js} +2 -2
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/chunk-7ZVWV33Z.js +707 -0
- package/dist/bundle/{chunk-ERQRY6WZ.js → chunk-A3Q3PG54.js} +1 -1
- package/dist/bundle/{chunk-JQF4LM3V.js → chunk-AVCYD4WQ.js} +20 -19
- package/dist/bundle/{chunk-P4FU6R3Z.js → chunk-B6Q53CVA.js} +7 -7
- package/dist/bundle/{chunk-KSNJK4QM.js → chunk-BY2YPKZZ.js} +12 -12
- package/dist/bundle/{chunk-L6YSKCC3.js → chunk-C5WQ57AB.js} +1 -1
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-G2TSDMTA.js → chunk-DQBLDZ7M.js} +3 -3
- package/dist/bundle/{chunk-ILDGZBZD.js → chunk-DUPFAY35.js} +6 -6
- package/dist/bundle/{chunk-GCZMYDKU.js → chunk-ELD5AC7Q.js} +2 -2
- package/dist/bundle/{chunk-CIUJEQH4.js → chunk-EOZAJGB4.js} +11 -12
- package/dist/bundle/{chunk-VJVYGTPM.js → chunk-F6RB5FHZ.js} +1 -1
- package/dist/bundle/{chunk-LVDTSCIN.js → chunk-F7K2V6OA.js} +10 -10
- package/dist/bundle/{chunk-4LFFDUUW.js → chunk-FBYGBR4Q.js} +3 -3
- package/dist/bundle/{chunk-6AO2RSYH.js → chunk-GPVSGZ4R.js} +1608 -1096
- package/dist/bundle/{chunk-2NQPB6MT.js → chunk-GU4FVTJV.js} +17 -1
- package/dist/bundle/{chunk-6NI4FE5G.js → chunk-HKPNQL52.js} +3 -3
- package/dist/bundle/{chunk-KUL7S5Y3.js → chunk-IDGWBKMH.js} +10 -10
- package/dist/bundle/{chunk-QS6DWXDB.js → chunk-IMDTC4MD.js} +34 -20
- package/dist/bundle/{chunk-LSVQCI6V.js → chunk-IO3BQ6JU.js} +22 -22
- package/dist/bundle/{chunk-V5Q2QKYM.js → chunk-IW245Q5B.js} +23 -25
- package/dist/bundle/{chunk-DPSTOVKC.js → chunk-JDTZCZ5K.js} +2 -2
- package/dist/bundle/{chunk-JIS34MLC.js → chunk-JTYWSXJG.js} +7 -7
- package/dist/bundle/{chunk-K5JFX5TK.js → chunk-K5E5MB4C.js} +18 -18
- package/dist/bundle/{chunk-VPPNYUQM.js → chunk-L5UILROP.js} +322 -11
- package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-OKOJEBHK.js → chunk-MNVT7EJS.js} +2 -2
- package/dist/bundle/{chunk-HAMDPWEZ.js → chunk-NE4GYKQA.js} +5 -5
- package/dist/bundle/{chunk-PKON63JH.js → chunk-NL6AZ6S2.js} +1 -1
- package/dist/bundle/{chunk-N3SOTKXC.js → chunk-NQLL4KRN.js} +5 -5
- package/dist/bundle/{chunk-XLY7V2LB.js → chunk-NQQVNLO6.js} +10 -10
- package/dist/bundle/{chunk-44YVZIA4.js → chunk-NU4FSSMN.js} +2 -2
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-OU5OXA6Q.js → chunk-P4ZQQLZF.js} +1772 -718
- package/dist/bundle/{chunk-OMLVWOEF.js → chunk-P6MQ6FS4.js} +184 -16
- package/dist/bundle/{chunk-NBA2V6LB.js → chunk-PCJRHC5Y.js} +7 -7
- package/dist/bundle/{chunk-G3SIY4MQ.js → chunk-PPM7UTCT.js} +22 -21
- package/dist/bundle/{chunk-3ADFJ3UP.js → chunk-PX4IMYVB.js} +2 -2
- package/dist/bundle/{chunk-FJMRDRPN.js → chunk-QBKKTTA3.js} +1155 -484
- package/dist/bundle/{chunk-ZX4QWTMQ.js → chunk-QEO3XTIE.js} +37 -29
- package/dist/bundle/{chunk-FZLJ2G7A.js → chunk-QXQUANWE.js} +4 -4
- package/dist/bundle/{chunk-MG2CCAVG.js → chunk-RABCFGT3.js} +2 -2
- package/dist/bundle/{chunk-SYIOT45G.js → chunk-RBYVQE3S.js} +4 -4
- package/dist/bundle/{chunk-6WUTUCKH.js → chunk-RKI4BGWG.js} +2 -2
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-LQYMN36C.js → chunk-SR5X7YKB.js} +1 -1
- package/dist/bundle/{chunk-KK2IVZUQ.js → chunk-T25PR26L.js} +5 -5
- package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-SO52EJ2W.js → chunk-TSHUBGN4.js} +2 -2
- package/dist/bundle/{chunk-OFA22L4G.js → chunk-V3UK6E5B.js} +4 -4
- package/dist/bundle/{chunk-Q43KX56Z.js → chunk-VLK3X53X.js} +2 -2
- package/dist/bundle/{chunk-Z5XCU4S7.js → chunk-VPSQZ2YR.js} +44 -52
- package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-K7EMVFJ7.js → chunk-W2AC2RAG.js} +13 -13
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-ETQNHS3A.js → chunk-WUWF4EXZ.js} +6 -6
- package/dist/bundle/{chunk-HO3GBTIT.js → chunk-XCJGDPMN.js} +1547 -917
- package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-IE7YBRUO.js → chunk-Y5J5CAG2.js} +1 -1
- package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-CQBLPBZU.js → chunk-ZVVRRMLW.js} +98 -6
- package/dist/bundle/{cli-4ZYJ6OZE.js → cli-NPRYCWFH.js} +112 -83
- package/dist/bundle/command-contract-OJYRKQHR.js +41 -0
- package/dist/bundle/{command-server-entry-CASONRIJ.js → command-server-entry-BV4SUPUI.js} +24 -26
- package/dist/bundle/config-UMEV24OE.js +97 -0
- package/dist/bundle/{decode-KEFCVGEB.js → decode-PRMKCHHC.js} +2 -2
- package/dist/bundle/{dist-GCQ7KCKN.js → dist-HGLDGKUW.js} +18 -15
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-43VJEPM6.js → embed-OZN2BIJY.js} +3 -3
- package/dist/bundle/{embedder-Q4ZHAGRP.js → embedder-RBDHO6Z6.js} +6 -6
- package/dist/bundle/{first-run-CPOLQVNA.js → first-run-HNCD7U3B.js} +6 -6
- package/dist/bundle/first-screen-374BBMO6.js +39 -0
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{main-NA3QVPXS.js → main-FPMCCRIQ.js} +15 -15
- package/dist/bundle/{meetings-7CVIQJTA.js → meetings-WYCVHAIP.js} +17 -1
- package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-QHGB23B4.js → node-sqlite-O4C6IWSM.js} +4 -4
- package/dist/bundle/{oauth-BMEMCM2I.js → oauth-6VXOUXSE.js} +4 -4
- package/dist/bundle/{open-JGU2NRJP.js → open-AMUIWV3Y.js} +2 -2
- package/dist/bundle/{openai-VTXXFNCS.js → openai-MEDN6FSK.js} +10 -10
- package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-XM6CDIJ2.js → program-CF2NKA2A.js} +84 -87
- package/dist/bundle/{prompt-2IPFXJ4B.js → prompt-N3UZE4ZR.js} +2 -2
- package/dist/bundle/{recognize-672E2RIB.js → recognize-I5F3K3CZ.js} +1 -1
- package/dist/bundle/{remote-YLHRVPDS.js → remote-CJF5KMMY.js} +6 -6
- package/dist/bundle/{rerank-NBXQG3OS.js → rerank-6WLY6MKY.js} +4 -4
- package/dist/bundle/{run-log-3WITBT2F.js → run-log-FKF4ZX4M.js} +55 -57
- package/dist/bundle/{serve-FNLOUMYP.js → serve-FOQJ3WMX.js} +6 -6
- package/dist/bundle/server-BAGY5HEZ.js +74 -0
- package/dist/bundle/{server-7ZB5AK5H.js → server-OEEGRSQD.js} +47 -47
- package/dist/bundle/{services-Z4UWN64R.js → services-Q6SFESMS.js} +43 -28
- package/dist/bundle/{speech-XSYVCKR3.js → speech-PBVEIG4N.js} +12 -12
- package/dist/bundle/{sqlite-runtime-GAPXJNWU.js → sqlite-runtime-IWR65V6I.js} +3 -3
- package/dist/bundle/{state-QSA53EF5.js → state-G54C2N6U.js} +3 -3
- package/dist/bundle/{store-NOF5EYUC.js → store-7EWMPTTW.js} +20 -16
- package/dist/bundle/{store-EKI4OAJH.js → store-D5OLXIFW.js} +14 -14
- package/dist/bundle/store-connection-34747SCC.js +90 -0
- package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
- package/dist/bundle/{tokens-WJQYQ3FK.js → tokens-J7TFHLEG.js} +4 -4
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-Y7RMWLVU.js → zoom-app-SULPMVN4.js} +2 -2
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +2 -2
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/answer-policy-W6H72X2R.js +0 -112
- package/dist/bundle/chunk-2BAZRRJP.js +0 -1239
- package/dist/bundle/chunk-KQD4ZVNC.js +0 -153
- package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
- package/dist/bundle/chunk-USIMMGWS.js +0 -997
- package/dist/bundle/command-contract-FJDDCHYP.js +0 -43
- package/dist/bundle/config-4DZHX2WX.js +0 -99
- package/dist/bundle/first-screen-XYESRGWW.js +0 -41
- package/dist/bundle/server-GGRGD4SH.js +0 -77
- package/dist/bundle/store-connection-2OZQGEIO.js +0 -92
- package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +0 -67
package/contracts/wirecat.json
CHANGED
|
@@ -229,9 +229,9 @@
|
|
|
229
229
|
"meetings",
|
|
230
230
|
"list"
|
|
231
231
|
],
|
|
232
|
-
"summary": "
|
|
232
|
+
"summary": "meetings, newest first: the service's and the stored ones, kept in the store",
|
|
233
233
|
"effects": {
|
|
234
|
-
"remote": "
|
|
234
|
+
"remote": "read",
|
|
235
235
|
"local": "read"
|
|
236
236
|
},
|
|
237
237
|
"permission": "meetings.list",
|
|
@@ -242,9 +242,9 @@
|
|
|
242
242
|
"meetings",
|
|
243
243
|
"show"
|
|
244
244
|
],
|
|
245
|
-
"summary": "show a
|
|
245
|
+
"summary": "show a meeting, read again from the service with its people, transcript and…",
|
|
246
246
|
"effects": {
|
|
247
|
-
"remote": "
|
|
247
|
+
"remote": "read",
|
|
248
248
|
"local": "read"
|
|
249
249
|
},
|
|
250
250
|
"permission": "meetings.show",
|
|
@@ -1246,6 +1246,7 @@
|
|
|
1246
1246
|
"meeting": {
|
|
1247
1247
|
"fields": [
|
|
1248
1248
|
"id",
|
|
1249
|
+
"provider_id",
|
|
1249
1250
|
"title",
|
|
1250
1251
|
"started_at",
|
|
1251
1252
|
"ended_at",
|
package/dist/bin/zm.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.75.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-WFLKFKJC.js","../bundle/answer-policy-XCKC2LLN.js","../bundle/anthropic-H45W4P22.js","../bundle/app-server-I4FPLBIX.js","../bundle/bun-V5QLYBZU.js","../bundle/bun-sqlite-X2YZPHDS.js","../bundle/cli-NPRYCWFH.js","../bundle/command-contract-OJYRKQHR.js","../bundle/command-server-entry-BV4SUPUI.js","../bundle/config-UMEV24OE.js","../bundle/decode-PRMKCHHC.js","../bundle/dispatch-EU67WGME.js","../bundle/dist-HGLDGKUW.js","../bundle/dist-XUFQCJXW.js","../bundle/echarts-QIXLXS3G.js","../bundle/embed-OZN2BIJY.js","../bundle/embedder-RBDHO6Z6.js","../bundle/failure-CTJLEB2R.js","../bundle/first-run-HNCD7U3B.js","../bundle/first-screen-374BBMO6.js","../bundle/folders-MSBTAPAG.js","../bundle/instructions-MD2RZT5Z.js","../bundle/main-FPMCCRIQ.js","../bundle/mcp-TDKGDB4V.js","../bundle/meetings-WYCVHAIP.js","../bundle/node-IEVT2FSJ.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-O4C6IWSM.js","../bundle/oauth-6VXOUXSE.js","../bundle/open-AMUIWV3Y.js","../bundle/openai-MEDN6FSK.js","../bundle/output-file-VDOCYH2G.js","../bundle/process-6Q23D3TO.js","../bundle/program-CF2NKA2A.js","../bundle/prompt-N3UZE4ZR.js","../bundle/recognize-I5F3K3CZ.js","../bundle/remote-CJF5KMMY.js","../bundle/rerank-6WLY6MKY.js","../bundle/run-log-FKF4ZX4M.js","../bundle/serve-FOQJ3WMX.js","../bundle/server-BAGY5HEZ.js","../bundle/server-OEEGRSQD.js","../bundle/services-Q6SFESMS.js","../bundle/speech-PBVEIG4N.js","../bundle/sqlite-runtime-IWR65V6I.js","../bundle/state-G54C2N6U.js","../bundle/store-7EWMPTTW.js","../bundle/store-D5OLXIFW.js","../bundle/store-connection-34747SCC.js","../bundle/store-maintenance-command-QBO67F7Z.js","../bundle/streaming-PQEXKTE5.js","../bundle/tokens-J7TFHLEG.js","../bundle/zoom-app-SULPMVN4.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
answeredWire
|
|
5
|
-
} from "./chunk-R5FTCNLJ.js";
|
|
6
3
|
import {
|
|
7
4
|
CALLER_META_KEY,
|
|
8
5
|
PROXY_CLIENT_NAME,
|
|
9
6
|
StdioServerTransport,
|
|
7
|
+
answeredWire,
|
|
10
8
|
callerOf,
|
|
11
9
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZVVRRMLW.js";
|
|
13
11
|
import {
|
|
14
12
|
McpServer
|
|
15
13
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DUPFAY35.js";
|
|
15
|
+
import "./chunk-3YKAFLXY.js";
|
|
16
|
+
import "./chunk-VUPWDCYV.js";
|
|
19
17
|
import "./chunk-XWBPP2HX.js";
|
|
20
18
|
import "./chunk-HNWDEDMU.js";
|
|
21
|
-
import
|
|
19
|
+
import {
|
|
20
|
+
errorObjectOf,
|
|
21
|
+
mcpErrorResult
|
|
22
|
+
} from "./chunk-4RJL32PF.js";
|
|
22
23
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import
|
|
24
|
+
import {
|
|
25
|
+
CliError
|
|
26
|
+
} from "./chunk-EA2OB75T.js";
|
|
24
27
|
import "./chunk-HCZYJMBP.js";
|
|
25
28
|
import {
|
|
26
29
|
__name
|
|
27
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
31
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
30
33
|
import { spawn } from "node:child_process";
|
|
31
34
|
import { randomUUID } from "node:crypto";
|
|
32
35
|
var PROTOCOL = "2025-06-18";
|
|
@@ -182,10 +185,7 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
182
185
|
}
|
|
183
186
|
};
|
|
184
187
|
}, "withProfile");
|
|
185
|
-
var refusal = /* @__PURE__ */ __name((text) => ({
|
|
186
|
-
isError: true,
|
|
187
|
-
content: [{ type: "text", text }]
|
|
188
|
-
}), "refusal");
|
|
188
|
+
var refusal = /* @__PURE__ */ __name((code, text, details) => mcpErrorResult(errorObjectOf(new CliError(code, text, details), { effects: { remote: "none", local: "none" } })), "refusal");
|
|
189
189
|
var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
190
190
|
const children = pool(options);
|
|
191
191
|
let listed;
|
|
@@ -212,9 +212,9 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
212
212
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
213
213
|
const { profile, ...rest } = given;
|
|
214
214
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
215
|
-
return refusal(`${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
215
|
+
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
216
216
|
if (!signedIn(profile))
|
|
217
|
-
return refusal(options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
217
|
+
return refusal("authentication_error", options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
218
218
|
try {
|
|
219
219
|
return await children.use(profile, (child) => (
|
|
220
220
|
// Children are shared by every session, so each call names its own caller.
|
|
@@ -225,7 +225,7 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
225
225
|
})
|
|
226
226
|
));
|
|
227
227
|
} catch (error) {
|
|
228
|
-
return refusal(`profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
228
|
+
return refusal("outcome_unknown", `profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
return server;
|
|
@@ -240,18 +240,8 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
240
240
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
241
241
|
onerror: /* @__PURE__ */ __name((error) => options.note?.(`mcp: ${error.message}`), "onerror")
|
|
242
242
|
});
|
|
243
|
-
|
|
244
|
-
wire.ended.then(() => resolve("input"));
|
|
245
|
-
if (own)
|
|
246
|
-
io.signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
247
|
-
else {
|
|
248
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
249
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
250
|
-
}
|
|
251
|
-
});
|
|
243
|
+
await wire.finished(own ? io.signal : void 0);
|
|
252
244
|
try {
|
|
253
|
-
if (ended === "input")
|
|
254
|
-
await wire.answered();
|
|
255
245
|
wire.release();
|
|
256
246
|
await handle.close();
|
|
257
247
|
} finally {
|
|
@@ -260,7 +250,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
260
250
|
}, "serveAllProfilesOverStdio");
|
|
261
251
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
262
252
|
const { build, close } = allProfilesServer(options);
|
|
263
|
-
const { serveOverHttp } = await import("./serve-
|
|
253
|
+
const { serveOverHttp } = await import("./serve-FOQJ3WMX.js");
|
|
264
254
|
const listening = await serveOverHttp(build, {
|
|
265
255
|
...http,
|
|
266
256
|
appName: options.command,
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import "./chunk-GPVSGZ4R.js";
|
|
4
|
+
import "./chunk-F7K2V6OA.js";
|
|
5
|
+
import "./chunk-C5WQ57AB.js";
|
|
6
|
+
import "./chunk-6XNTELM5.js";
|
|
7
|
+
import "./chunk-QEO3XTIE.js";
|
|
8
|
+
import "./chunk-SEJBS7SI.js";
|
|
9
|
+
import "./chunk-EOZAJGB4.js";
|
|
10
|
+
import "./chunk-3U3W6YY5.js";
|
|
11
|
+
import "./chunk-PPM7UTCT.js";
|
|
12
|
+
import "./chunk-7ZVWV33Z.js";
|
|
13
|
+
import "./chunk-QXQUANWE.js";
|
|
14
|
+
import "./chunk-NQQVNLO6.js";
|
|
15
|
+
import "./chunk-IDGWBKMH.js";
|
|
16
|
+
import "./chunk-VLK3X53X.js";
|
|
17
|
+
import {
|
|
18
|
+
failureContext
|
|
19
|
+
} from "./chunk-GU4FVTJV.js";
|
|
20
|
+
import "./chunk-NL6AZ6S2.js";
|
|
21
|
+
import "./chunk-HTQTIKWP.js";
|
|
22
|
+
import "./chunk-V3UK6E5B.js";
|
|
23
|
+
import "./chunk-PX4IMYVB.js";
|
|
24
|
+
import "./chunk-P4ZQQLZF.js";
|
|
25
|
+
import "./chunk-Y5J5CAG2.js";
|
|
26
|
+
import "./chunk-W2AC2RAG.js";
|
|
27
|
+
import "./chunk-FT7X74RT.js";
|
|
28
|
+
import "./chunk-FIVFP53N.js";
|
|
29
|
+
import "./chunk-WUWF4EXZ.js";
|
|
30
|
+
import "./chunk-532H3KT3.js";
|
|
31
|
+
import "./chunk-JTYWSXJG.js";
|
|
32
|
+
import "./chunk-4XDWV6VJ.js";
|
|
33
|
+
import "./chunk-NE4GYKQA.js";
|
|
34
|
+
import "./chunk-T25PR26L.js";
|
|
35
|
+
import "./chunk-XUHQ7DVT.js";
|
|
36
|
+
import "./chunk-MHXZ62CU.js";
|
|
37
|
+
import "./chunk-DQBLDZ7M.js";
|
|
38
|
+
import {
|
|
39
|
+
judgedEffects,
|
|
40
|
+
judgedTargets
|
|
41
|
+
} from "./chunk-QBKKTTA3.js";
|
|
42
|
+
import "./chunk-ZBYKCVSV.js";
|
|
43
|
+
import "./chunk-DUPFAY35.js";
|
|
44
|
+
import "./chunk-HKPNQL52.js";
|
|
45
|
+
import "./chunk-P6MQ6FS4.js";
|
|
46
|
+
import "./chunk-WQOGHND4.js";
|
|
47
|
+
import "./chunk-SR5X7YKB.js";
|
|
48
|
+
import "./chunk-MAE5UGRQ.js";
|
|
49
|
+
import "./chunk-RKI4BGWG.js";
|
|
50
|
+
import "./chunk-FBYGBR4Q.js";
|
|
51
|
+
import "./chunk-T4FMXDDV.js";
|
|
52
|
+
import "./chunk-2Q4CB4EI.js";
|
|
53
|
+
import "./chunk-XCJGDPMN.js";
|
|
54
|
+
import "./chunk-PCJRHC5Y.js";
|
|
55
|
+
import "./chunk-K5E5MB4C.js";
|
|
56
|
+
import "./chunk-4YNUQGDP.js";
|
|
57
|
+
import "./chunk-IO3BQ6JU.js";
|
|
58
|
+
import "./chunk-3YKAFLXY.js";
|
|
59
|
+
import "./chunk-IMDTC4MD.js";
|
|
60
|
+
import "./chunk-VUPWDCYV.js";
|
|
61
|
+
import "./chunk-L5UILROP.js";
|
|
62
|
+
import "./chunk-3URYKAJP.js";
|
|
63
|
+
import {
|
|
64
|
+
VERSION,
|
|
65
|
+
ZM
|
|
66
|
+
} from "./chunk-F6RB5FHZ.js";
|
|
67
|
+
import "./chunk-M4OP5ASJ.js";
|
|
68
|
+
import "./chunk-D72URWJE.js";
|
|
69
|
+
import "./chunk-A3Q3PG54.js";
|
|
70
|
+
import "./chunk-MNVT7EJS.js";
|
|
71
|
+
import "./chunk-NQLL4KRN.js";
|
|
72
|
+
import "./chunk-OUM4ZO53.js";
|
|
73
|
+
import "./chunk-3YRPDNWK.js";
|
|
74
|
+
import "./chunk-3HTJBGNP.js";
|
|
75
|
+
import "./chunk-XWBPP2HX.js";
|
|
76
|
+
import "./chunk-HNWDEDMU.js";
|
|
77
|
+
import {
|
|
78
|
+
errorObjectOf,
|
|
79
|
+
errorRecordOf,
|
|
80
|
+
exitCodeOfError,
|
|
81
|
+
renderError
|
|
82
|
+
} from "./chunk-4RJL32PF.js";
|
|
83
|
+
import "./chunk-Y5E2WNWB.js";
|
|
84
|
+
import "./chunk-EA2OB75T.js";
|
|
85
|
+
import "./chunk-HCZYJMBP.js";
|
|
86
|
+
import {
|
|
87
|
+
__name
|
|
88
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
89
|
+
|
|
90
|
+
// dist/answer-policy.js
|
|
91
|
+
var hostFailureContext = /* @__PURE__ */ __name((registry, effects) => ({
|
|
92
|
+
...failureContext(ZM.errors),
|
|
93
|
+
...effects ? { effects: judgedEffects(effects) } : {},
|
|
94
|
+
...registry ? { targets: judgedTargets(registry) } : {}
|
|
95
|
+
}), "hostFailureContext");
|
|
96
|
+
var reportFailure = /* @__PURE__ */ __name((failure, args, deps, command = "zm", context = hostFailureContext()) => {
|
|
97
|
+
const end = args.indexOf("--");
|
|
98
|
+
const flags = args.slice(0, end < 0 ? void 0 : end);
|
|
99
|
+
const machine = flags.some((word) => word === "--json" || word === "--jsonl");
|
|
100
|
+
const object = errorObjectOf(failure, context);
|
|
101
|
+
const record = flags.includes("--debug") ? errorRecordOf(failure, object, { command, service: "zm", version: VERSION }) : void 0;
|
|
102
|
+
const interactive = deps.outputIsTTY === true && !machine;
|
|
103
|
+
deps.diagnostic(`${renderError(object, { cli: "zm", interactive, ...record ? { record } : {} })}
|
|
104
|
+
`);
|
|
105
|
+
return exitCodeOfError(object);
|
|
106
|
+
}, "reportFailure");
|
|
107
|
+
export {
|
|
108
|
+
hostFailureContext,
|
|
109
|
+
reportFailure
|
|
110
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-532H3KT3.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-FXBHOCJK.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
31
31
|
var options = strictObject({
|
|
32
32
|
stop_sequences: optional(array(string())),
|
|
33
33
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,53 +3,51 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VPSQZ2YR.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
answeredWire
|
|
12
|
-
} from "./chunk-R5FTCNLJ.js";
|
|
9
|
+
} from "./chunk-QEO3XTIE.js";
|
|
13
10
|
import {
|
|
14
11
|
answered,
|
|
15
12
|
failed,
|
|
16
13
|
registerCommands,
|
|
17
14
|
runCommandForAgent,
|
|
18
15
|
toolsFromCommands
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AVCYD4WQ.js";
|
|
20
17
|
import {
|
|
21
18
|
agentJson,
|
|
22
19
|
skillResource
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EOZAJGB4.js";
|
|
24
21
|
import {
|
|
25
22
|
StdioServerTransport,
|
|
23
|
+
answeredWire,
|
|
26
24
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZVVRRMLW.js";
|
|
28
26
|
import {
|
|
29
27
|
McpServer
|
|
30
28
|
} from "./chunk-5D4AEUVA.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-PPM7UTCT.js";
|
|
30
|
+
import "./chunk-7ZVWV33Z.js";
|
|
31
|
+
import "./chunk-GU4FVTJV.js";
|
|
34
32
|
import {
|
|
35
33
|
mcpHttpMarker
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-V3UK6E5B.js";
|
|
35
|
+
import "./chunk-PX4IMYVB.js";
|
|
38
36
|
import {
|
|
39
37
|
appInstructions
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-CAQ5GW3A.js";
|
|
39
|
+
import "./chunk-P4ZQQLZF.js";
|
|
40
|
+
import "./chunk-Y5J5CAG2.js";
|
|
41
|
+
import "./chunk-W2AC2RAG.js";
|
|
44
42
|
import "./chunk-FT7X74RT.js";
|
|
45
43
|
import "./chunk-FIVFP53N.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-WUWF4EXZ.js";
|
|
45
|
+
import "./chunk-532H3KT3.js";
|
|
46
|
+
import "./chunk-JTYWSXJG.js";
|
|
47
|
+
import "./chunk-4XDWV6VJ.js";
|
|
48
|
+
import "./chunk-NE4GYKQA.js";
|
|
49
|
+
import "./chunk-MHXZ62CU.js";
|
|
50
|
+
import "./chunk-DQBLDZ7M.js";
|
|
53
51
|
import {
|
|
54
52
|
DEFAULT_OUTPUT_BYTES,
|
|
55
53
|
changesAuthorityAt,
|
|
@@ -59,37 +57,35 @@ import {
|
|
|
59
57
|
judgedTargets,
|
|
60
58
|
readsOverMcpAt,
|
|
61
59
|
rootOf2 as rootOf
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-ILDGZBZD.js";
|
|
64
|
-
import "./chunk-6NI4FE5G.js";
|
|
65
|
-
import "./chunk-KQD4ZVNC.js";
|
|
66
|
-
import "./chunk-UIKVP23D.js";
|
|
67
|
-
import "./chunk-USIMMGWS.js";
|
|
60
|
+
} from "./chunk-QBKKTTA3.js";
|
|
68
61
|
import {
|
|
69
62
|
readOnlyLockOf
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-ZBYKCVSV.js";
|
|
64
|
+
import "./chunk-DUPFAY35.js";
|
|
65
|
+
import "./chunk-HKPNQL52.js";
|
|
66
|
+
import "./chunk-P6MQ6FS4.js";
|
|
67
|
+
import "./chunk-WQOGHND4.js";
|
|
68
|
+
import "./chunk-SR5X7YKB.js";
|
|
73
69
|
import "./chunk-MAE5UGRQ.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-RKI4BGWG.js";
|
|
71
|
+
import "./chunk-FBYGBR4Q.js";
|
|
72
|
+
import "./chunk-2Q4CB4EI.js";
|
|
73
|
+
import "./chunk-XCJGDPMN.js";
|
|
74
|
+
import "./chunk-PCJRHC5Y.js";
|
|
75
|
+
import "./chunk-K5E5MB4C.js";
|
|
76
|
+
import "./chunk-4YNUQGDP.js";
|
|
77
|
+
import "./chunk-IO3BQ6JU.js";
|
|
78
|
+
import "./chunk-3YKAFLXY.js";
|
|
79
|
+
import "./chunk-IMDTC4MD.js";
|
|
80
|
+
import "./chunk-VUPWDCYV.js";
|
|
81
|
+
import "./chunk-L5UILROP.js";
|
|
82
|
+
import "./chunk-3URYKAJP.js";
|
|
87
83
|
import "./chunk-M4OP5ASJ.js";
|
|
88
84
|
import "./chunk-D72URWJE.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-A3Q3PG54.js";
|
|
86
|
+
import "./chunk-NQLL4KRN.js";
|
|
87
|
+
import "./chunk-OUM4ZO53.js";
|
|
88
|
+
import "./chunk-3YRPDNWK.js";
|
|
93
89
|
import "./chunk-3HTJBGNP.js";
|
|
94
90
|
import "./chunk-XWBPP2HX.js";
|
|
95
91
|
import "./chunk-HNWDEDMU.js";
|
|
@@ -105,7 +101,7 @@ import {
|
|
|
105
101
|
__name
|
|
106
102
|
} from "./chunk-ZVVMGPBJ.js";
|
|
107
103
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
109
105
|
var EXCLUDED = [["mcp"]];
|
|
110
106
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
111
107
|
let at = root;
|
|
@@ -215,27 +211,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
215
211
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
216
212
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
217
213
|
});
|
|
218
|
-
|
|
219
|
-
wire.ended.then(() => resolve("input"));
|
|
220
|
-
if (own) {
|
|
221
|
-
if (signal?.aborted)
|
|
222
|
-
resolve("stopped");
|
|
223
|
-
else
|
|
224
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
225
|
-
} else {
|
|
226
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
227
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
if (ended === "input")
|
|
231
|
-
await wire.answered();
|
|
214
|
+
await wire.finished(own ? signal : void 0);
|
|
232
215
|
wire.release();
|
|
233
216
|
await handle.close();
|
|
234
217
|
}, "serveAppOverStdio");
|
|
235
218
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
236
219
|
const { app } = options;
|
|
237
220
|
const { build } = createAppServer(command, context, options);
|
|
238
|
-
const { serveOverHttp } = await import("./serve-
|
|
221
|
+
const { serveOverHttp } = await import("./serve-FOQJ3WMX.js");
|
|
239
222
|
const listening = await serveOverHttp(build, {
|
|
240
223
|
...http,
|
|
241
224
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3URYKAJP.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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4J5GJJ2I.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A3Q3PG54.js";
|
|
10
10
|
import "./chunk-HNWDEDMU.js";
|
|
11
11
|
import "./chunk-4RJL32PF.js";
|
|
12
12
|
import {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
22
22
|
var customised = false;
|
|
23
23
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
24
24
|
try {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|