@wirecat/zoom-cli 0.57.0 → 0.59.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/zm.js +2 -2
- package/dist/bundle/{all-profiles-EKHWTGOY.js → all-profiles-RS5IWIGR.js} +7 -7
- package/dist/bundle/answer-policy-K56DZ3AS.js +96 -0
- package/dist/bundle/{anthropic-VL54IUGF.js → anthropic-5QHQR4WF.js} +4 -4
- package/dist/bundle/app-server-7LANSZGE.js +232 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2SDA3YOT.js → bun-sqlite-PEJM6CS4.js} +3 -3
- package/dist/bundle/{chunk-SQJ7EH2D.js → chunk-24DLFGES.js} +2 -2
- package/dist/bundle/{chunk-SB6WOSHG.js → chunk-27P22POE.js} +24 -24
- package/dist/bundle/{chunk-BW52AJ4R.js → chunk-3SCTDFNO.js} +38 -27
- package/dist/bundle/{chunk-ICSKEDPI.js → chunk-3SERIWJD.js} +220 -220
- package/dist/bundle/{chunk-S4S7E54J.js → chunk-4AURKUDZ.js} +4 -4
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{chunk-2IKY7VBH.js → chunk-4ZIROI4H.js} +1 -1
- package/dist/bundle/{server-WLJCU7KK.js → chunk-5DVW77VC.js} +37 -60
- package/dist/bundle/{chunk-NN5B24KP.js → chunk-5RM5TCUY.js} +27 -27
- package/dist/bundle/{chunk-7A6PZUDR.js → chunk-62NCJILK.js} +22 -12
- package/dist/bundle/{chunk-NW3X3G5X.js → chunk-6FL25KC5.js} +4 -4
- package/dist/bundle/{chunk-TLQUKHEM.js → chunk-7D2CD3E3.js} +5 -5
- package/dist/bundle/{chunk-6MX5T6AQ.js → chunk-7GVNQOV6.js} +1 -1
- package/dist/bundle/{chunk-VPPYYWOH.js → chunk-7H3ZRDLW.js} +2 -2
- package/dist/bundle/{chunk-EOQFWJJD.js → chunk-7Z4ANTAK.js} +20 -20
- package/dist/bundle/{chunk-NO7CJEYV.js → chunk-A6323R5P.js} +2 -2
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-R3HPOCZD.js → chunk-AQDWGJZT.js} +2 -2
- package/dist/bundle/{chunk-CB5UTASG.js → chunk-B32SF7J3.js} +2 -2
- package/dist/bundle/{chunk-GKMGS7G5.js → chunk-BAQLQIMI.js} +26 -26
- package/dist/bundle/{chunk-I4VQDXFR.js → chunk-BXZ6WSVF.js} +4 -4
- package/dist/bundle/{chunk-6M6FJV5D.js → chunk-CTGI4ES2.js} +6 -6
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-OIHDCGV4.js → chunk-DP5DX45H.js} +3 -3
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-YB4DMKYX.js → chunk-DXZTLB24.js} +5 -4
- package/dist/bundle/{chunk-HCNMFFG3.js → chunk-G27MRA24.js} +2 -2
- package/dist/bundle/{chunk-2WOGZDZG.js → chunk-IYAGQXED.js} +10 -8
- package/dist/bundle/{chunk-LQ3T2ZIX.js → chunk-K76WFW4I.js} +4 -4
- package/dist/bundle/{chunk-7GUG6UZS.js → chunk-KVHRHBLY.js} +5 -5
- package/dist/bundle/{chunk-SE75DPBY.js → chunk-L2UIJDWB.js} +2 -2
- package/dist/bundle/{chunk-RMV4C2YL.js → chunk-L3VS3H34.js} +6 -6
- package/dist/bundle/{chunk-HG5KRV55.js → chunk-MBT7GP7K.js} +9 -9
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-4YLS4YLS.js → chunk-MMT46EN4.js} +2 -2
- package/dist/bundle/{chunk-MAEFLDHG.js → chunk-MNUTWGSA.js} +39 -37
- package/dist/bundle/{chunk-HKYLSIZ2.js → chunk-N7GAQ27N.js} +3 -3
- package/dist/bundle/{chunk-GARCOIB6.js → chunk-NDXAZB5Z.js} +6 -6
- package/dist/bundle/{chunk-CLMXBW53.js → chunk-NOKFJJPA.js} +6 -6
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-K72SEMYI.js → chunk-OBZWUNO4.js} +9 -9
- package/dist/bundle/{chunk-6P3YHT54.js → chunk-OZS7QXCQ.js} +4 -4
- package/dist/bundle/{chunk-WQ24UC44.js → chunk-PACC5N6T.js} +4 -3
- package/dist/bundle/{chunk-TKCHUT2H.js → chunk-PF25S7L4.js} +2 -2
- package/dist/bundle/{chunk-O66V2WHK.js → chunk-PKTFZAXG.js} +2 -2
- package/dist/bundle/{chunk-WJHK5D7Z.js → chunk-PNBEREOU.js} +258 -244
- package/dist/bundle/{chunk-LXB6ONWC.js → chunk-PP3JGQQE.js} +51 -51
- package/dist/bundle/{chunk-MZH4GDR4.js → chunk-QCFHL4ES.js} +2 -2
- package/dist/bundle/{chunk-7JZJMHQY.js → chunk-QFGBMS67.js} +12 -7
- package/dist/bundle/{chunk-BW2WPOXP.js → chunk-RXDIG23Z.js} +6 -6
- package/dist/bundle/{chunk-OVSWVPXL.js → chunk-SIA7HJE2.js} +49 -47
- package/dist/bundle/{chunk-TZ2MKETI.js → chunk-SL3SXQZ5.js} +6 -6
- package/dist/bundle/{chunk-RRRBMQ2E.js → chunk-T6AAM7UT.js} +19 -17
- package/dist/bundle/{chunk-NTDWAAGL.js → chunk-U6QW67SU.js} +797 -559
- package/dist/bundle/{chunk-Z4TZ6TAF.js → chunk-UKR7KH3H.js} +2 -2
- package/dist/bundle/{chunk-LSVI3A5X.js → chunk-UOFOMU3T.js} +9 -9
- package/dist/bundle/{chunk-G4R4ZIGD.js → chunk-URO44C5T.js} +95 -94
- package/dist/bundle/{chunk-5F7IOESV.js → chunk-UXM7I35J.js} +4 -4
- package/dist/bundle/{chunk-4R7HYNZS.js → chunk-UYJUTZTT.js} +3 -3
- package/dist/bundle/{chunk-QLIB3PEC.js → chunk-VOAVOK4I.js} +18 -18
- package/dist/bundle/{chunk-LPTIQLDW.js → chunk-VSUY7PDW.js} +2 -2
- package/dist/bundle/{chunk-A4ETXPMZ.js → chunk-VYUSEJE4.js} +2 -2
- package/dist/bundle/{chunk-OCGPZHXW.js → chunk-XFCSPOLZ.js} +2 -2
- package/dist/bundle/{chunk-LHRCJYFC.js → chunk-XPNFF6SE.js} +1 -1
- package/dist/bundle/{chunk-4VCA7QU3.js → chunk-XT7XVPEM.js} +13 -13
- package/dist/bundle/{chunk-QTR6D5HT.js → chunk-YIFIY7ZE.js} +2 -2
- package/dist/bundle/{chunk-AE4BOXH7.js → chunk-YIMI6O7R.js} +25 -25
- package/dist/bundle/{chunk-UI5UTMSZ.js → chunk-YJRMMZI5.js} +10 -10
- package/dist/bundle/{chunk-QUJPQMHJ.js → chunk-YSHSCBPM.js} +8 -8
- package/dist/bundle/{chunk-BAYNCCNM.js → chunk-ZC5UXEIH.js} +11 -11
- package/dist/bundle/{chunk-G4VZDINN.js → chunk-ZHXIXDH5.js} +4 -4
- package/dist/bundle/{chunk-5QESMCQK.js → chunk-ZTOAAYFV.js} +3 -3
- package/dist/bundle/{cli-72EQATJF.js → cli-IQTASP44.js} +59 -53
- package/dist/bundle/command-contract-WHZPF7NA.js +38 -0
- package/dist/bundle/config-N7ENOITZ.js +79 -0
- package/dist/bundle/{dist-IBNHCQXT.js → dist-WT73DF46.js} +14 -14
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-7QYA2ZZE.js → embed-XEMH4LNX.js} +4 -4
- package/dist/bundle/{embedder-YNN6PCHG.js → embedder-ZCYKSKAE.js} +7 -7
- package/dist/bundle/{first-run-EVSRQKZJ.js → first-run-LGYDLIUM.js} +8 -8
- package/dist/bundle/first-screen-LYQKPNF4.js +36 -0
- package/dist/bundle/{folders-JEPOMYM4.js → folders-5ZBUQHAM.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{main-NYGJXPH7.js → main-C2V7TVLV.js} +16 -16
- package/dist/bundle/{mcp-VGSZDCKK.js → mcp-44GCZJZF.js} +64 -64
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/mcp-VISEXTVC.js +92 -0
- package/dist/bundle/{meetings-IBPI4MM4.js → meetings-XPBHVZAU.js} +4 -4
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-ZNGOBA5Q.js → node-sqlite-BBEDYBWO.js} +3 -3
- package/dist/bundle/{oauth-Q6LKF7DB.js → oauth-UHVRGKZU.js} +5 -5
- package/dist/bundle/{open-LJ332Y5O.js → open-J4FCAUAJ.js} +2 -2
- package/dist/bundle/{output-file-RYQZ3RTE.js → output-file-SXV2ANW7.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-IBRQBQ6W.js → program-GPY5SU7M.js} +80 -80
- package/dist/bundle/{prompt-RT7GUUXH.js → prompt-LUUMQTMY.js} +3 -3
- package/dist/bundle/{recognize-QXGE7YJH.js → recognize-EMHQX4XF.js} +4 -4
- package/dist/bundle/{remote-FD4MZQV3.js → remote-ZXS6D7VB.js} +5 -5
- package/dist/bundle/{rerank-V6AVV755.js → rerank-WP7RKZNB.js} +5 -5
- package/dist/bundle/{run-log-RE2EI3UU.js → run-log-GS2L66G6.js} +53 -53
- package/dist/bundle/{serve-HIJTFAW7.js → serve-L6KLLXK2.js} +7 -7
- package/dist/bundle/server-NOFYENP5.js +53 -0
- package/dist/bundle/server-P5TXAPBY.js +66 -0
- package/dist/bundle/{services-KC5KQFBS.js → services-SPOEWVK3.js} +26 -26
- package/dist/bundle/{speech-5JOXLYDA.js → speech-6OBAKMND.js} +4 -4
- package/dist/bundle/{state-PPGRB3T6.js → state-HN5EJKXQ.js} +4 -4
- package/dist/bundle/{store-WB5BICTG.js → store-LEU3M6IN.js} +13 -13
- package/dist/bundle/{store-LODVDPK3.js → store-ZP2URKET.js} +15 -15
- package/dist/bundle/store-connection-5MOUQ2MU.js +76 -0
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +54 -0
- package/dist/bundle/{streaming-UGFFNOXL.js → streaming-AK6Q2ZGQ.js} +4 -4
- package/dist/bundle/{tokens-AF5CPY2F.js → tokens-CCM3D4ZT.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +12 -2
- package/dist/contract-overrides.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-KH2IFXPN.js +0 -96
- package/dist/bundle/command-contract-4MHSZUN3.js +0 -38
- package/dist/bundle/config-GFIJK6G2.js +0 -79
- package/dist/bundle/first-screen-RG4GUKW7.js +0 -36
- package/dist/bundle/mcp-XKP2PXLS.js +0 -92
- package/dist/bundle/server-3QOXOYYL.js +0 -53
- package/dist/bundle/store-connection-EG6Z5ITP.js +0 -76
- package/dist/bundle/store-maintenance-command-Q5WMFUZ2.js +0 -54
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XT7XVPEM.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7H3ZRDLW.js";
|
|
13
13
|
import {
|
|
14
14
|
lentConnection,
|
|
15
15
|
refuseLacking
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VOAVOK4I.js";
|
|
17
17
|
import {
|
|
18
18
|
onlineDeps,
|
|
19
19
|
servicesFor,
|
|
20
20
|
storeModeDeps
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3SERIWJD.js";
|
|
22
22
|
import {
|
|
23
23
|
ENTITIES
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-URO44C5T.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_OUTPUT_BYTES,
|
|
27
27
|
LOCAL_WRITE,
|
|
@@ -35,30 +35,32 @@ import {
|
|
|
35
35
|
refuseStoreChange,
|
|
36
36
|
sealed,
|
|
37
37
|
startRecording
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MNUTWGSA.js";
|
|
39
39
|
import {
|
|
40
40
|
currentCaller,
|
|
41
41
|
keepsSuccess,
|
|
42
42
|
runContextOf,
|
|
43
43
|
withCaller
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IYAGQXED.js";
|
|
45
45
|
import {
|
|
46
|
+
enclosingTraceId,
|
|
46
47
|
inRun,
|
|
47
|
-
newRunId
|
|
48
|
-
|
|
48
|
+
newRunId,
|
|
49
|
+
traceOf
|
|
50
|
+
} from "./chunk-7Z4ANTAK.js";
|
|
49
51
|
import {
|
|
50
52
|
failureContext
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PACC5N6T.js";
|
|
52
54
|
import {
|
|
53
55
|
authorityAllowed,
|
|
54
56
|
botApiAllowed,
|
|
55
57
|
keyForCommand,
|
|
56
58
|
levelFor,
|
|
57
59
|
readKeysForCommand
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PF25S7L4.js";
|
|
59
61
|
import {
|
|
60
62
|
MAX_BUFFERED_INPUT
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-G27MRA24.js";
|
|
62
64
|
import {
|
|
63
65
|
CliError,
|
|
64
66
|
SNAKE_CASE,
|
|
@@ -100,15 +102,15 @@ import {
|
|
|
100
102
|
unknown,
|
|
101
103
|
word,
|
|
102
104
|
writes
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-YIMI6O7R.js";
|
|
104
106
|
import {
|
|
105
107
|
__name
|
|
106
108
|
} from "./chunk-ZVVMGPBJ.js";
|
|
107
109
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
109
111
|
import { Readable } from "node:stream";
|
|
110
112
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
112
114
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
113
115
|
var lintRuleSchema = strictObject({
|
|
114
116
|
id: word,
|
|
@@ -235,7 +237,7 @@ var overridesSchema = array(strictObject({
|
|
|
235
237
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
236
238
|
}));
|
|
237
239
|
|
|
238
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
240
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
239
241
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
240
242
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
241
243
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -317,7 +319,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
317
319
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
318
320
|
]);
|
|
319
321
|
|
|
320
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
322
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
321
323
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
322
324
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
323
325
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -333,7 +335,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
333
335
|
}
|
|
334
336
|
]);
|
|
335
337
|
|
|
336
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
338
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
337
339
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
338
340
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
339
341
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -355,7 +357,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
355
357
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
356
358
|
]);
|
|
357
359
|
|
|
358
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
360
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
359
361
|
var CALENDAR_FLAGS = [
|
|
360
362
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
361
363
|
{
|
|
@@ -429,7 +431,7 @@ var CALENDAR_FLAGS = [
|
|
|
429
431
|
}
|
|
430
432
|
];
|
|
431
433
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
433
435
|
var HOW_FLAGS = [
|
|
434
436
|
{
|
|
435
437
|
name: "--limit",
|
|
@@ -1409,7 +1411,7 @@ var HOW_FLAGS = [
|
|
|
1409
1411
|
}
|
|
1410
1412
|
];
|
|
1411
1413
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1413
1415
|
var WHAT_FLAGS = [
|
|
1414
1416
|
{
|
|
1415
1417
|
name: "--analysis-provider",
|
|
@@ -2399,7 +2401,7 @@ var WHAT_FLAGS = [
|
|
|
2399
2401
|
}
|
|
2400
2402
|
];
|
|
2401
2403
|
|
|
2402
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.
|
|
2404
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2403
2405
|
var FLAG_TYPES = [
|
|
2404
2406
|
"switch",
|
|
2405
2407
|
"count",
|
|
@@ -2753,7 +2755,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2753
2755
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2754
2756
|
});
|
|
2755
2757
|
|
|
2756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2757
2759
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2758
2760
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2759
2761
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2922,7 +2924,16 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2922
2924
|
let result;
|
|
2923
2925
|
let failure;
|
|
2924
2926
|
const streams = captureStreams();
|
|
2925
|
-
const
|
|
2927
|
+
const command = `mcp ${path.join(" ")}`;
|
|
2928
|
+
const traceId = enclosingTraceId() ?? traceOf(ctx.env ?? {}).traceId;
|
|
2929
|
+
const scope = {
|
|
2930
|
+
runId: newRunId(/* @__PURE__ */ new Date(), command),
|
|
2931
|
+
command,
|
|
2932
|
+
startedAt: Date.now(),
|
|
2933
|
+
profile: ctx.profile,
|
|
2934
|
+
...traceId === void 0 ? {} : { traceId }
|
|
2935
|
+
};
|
|
2936
|
+
const code = await inRun(scope, () => program.run(argv, {
|
|
2926
2937
|
...ctx.environment,
|
|
2927
2938
|
streams,
|
|
2928
2939
|
tty: false,
|
|
@@ -2950,7 +2961,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2950
2961
|
connection: /* @__PURE__ */ __name(() => borrowed ??= lend().then((adapter) => lentConnection(adapter)), "connection")
|
|
2951
2962
|
}
|
|
2952
2963
|
} : {}
|
|
2953
|
-
});
|
|
2964
|
+
}));
|
|
2954
2965
|
if (failure)
|
|
2955
2966
|
return { error: failure };
|
|
2956
2967
|
if (answered2)
|
|
@@ -2965,7 +2976,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2965
2976
|
}
|
|
2966
2977
|
}, "runCommandForAgent");
|
|
2967
2978
|
|
|
2968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2969
2980
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2970
2981
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2971
2982
|
var message = pipe(
|
|
@@ -3224,7 +3235,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3224
3235
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3225
3236
|
}, "failed");
|
|
3226
3237
|
|
|
3227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3228
3239
|
import { randomUUID } from "node:crypto";
|
|
3229
3240
|
var MATCHES = 8;
|
|
3230
3241
|
var ANSWER = answerSchema();
|