@wirecat/tg-cli 0.101.0 → 0.103.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/tg.js +31 -19
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +14 -17
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-A3VD4Y6Z.js → adapter-QG3YFFOY.js} +101 -38
- package/dist/bundle/{all-profiles-UPVNHXB2.js → all-profiles-ECXH3TBF.js} +32 -11
- package/dist/bundle/{anthropic-IRKNWPIB.js → anthropic-5MKO3QX7.js} +10 -10
- package/dist/bundle/{bot-api-UNTQG2M5.js → bot-api-4DQPIOMK.js} +55 -58
- package/dist/bundle/{bot-history-V4RTY5K7.js → bot-history-UN74XXLU.js} +19 -19
- package/dist/bundle/{bun-2JZPG2NL.js → bun-PS73VF2C.js} +5 -5
- package/dist/bundle/{bun-sqlite-TZHKM225.js → bun-sqlite-RAWGPH23.js} +8 -8
- package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
- package/dist/bundle/{chunk-MLLJ74LM.js → chunk-3CP7RK5R.js} +4 -4
- package/dist/bundle/{chunk-BXQS5RCE.js → chunk-3IXKDIPH.js} +258 -83
- package/dist/bundle/{chunk-W2336E7Y.js → chunk-3QX6SOEO.js} +9 -9
- package/dist/bundle/{chunk-F7TDFWXY.js → chunk-537O7OVE.js} +6 -6
- package/dist/bundle/{chunk-N5UFBWDM.js → chunk-57XGUIXA.js} +9 -11
- package/dist/bundle/{chunk-3KHKYYCR.js → chunk-5D4AEUVA.js} +4 -3
- package/dist/bundle/{chunk-ODSVNH3H.js → chunk-5HPAPVCB.js} +2415 -1292
- package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
- package/dist/bundle/{chunk-XCKD54TN.js → chunk-6N25NZOE.js} +9 -9
- package/dist/bundle/chunk-AAMJZJYC.js +922 -0
- package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
- package/dist/bundle/{chunk-ZV24I2UJ.js → chunk-AUKAZRF6.js} +5 -5
- package/dist/bundle/{chunk-S7ZNLLY5.js → chunk-BV4N333Y.js} +6 -6
- package/dist/bundle/{chunk-UN6CKIBN.js → chunk-BYYSVINK.js} +11 -8
- package/dist/bundle/{chunk-54R2GDQ3.js → chunk-CMQ34EZL.js} +6 -6
- package/dist/bundle/{chunk-G2US6LJB.js → chunk-COZ74WW4.js} +4 -4
- package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
- package/dist/bundle/{chunk-VA5YEJS3.js → chunk-DLF3H6NP.js} +7 -7
- package/dist/bundle/{chunk-QOWSVDPZ.js → chunk-DWQ4QT6X.js} +111 -100
- package/dist/bundle/chunk-EMC57SOZ.js +440 -0
- package/dist/bundle/{chunk-RVCS7Q3A.js → chunk-EQHQ2AX3.js} +1390 -522
- package/dist/bundle/{chunk-64DK7S4F.js → chunk-F27OI4J2.js} +4 -4
- package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
- package/dist/bundle/{chunk-BX6HH4F6.js → chunk-FSPDODVT.js} +14 -14
- package/dist/bundle/{chunk-4ZS73HTJ.js → chunk-G5IMOOPB.js} +4 -4
- package/dist/bundle/{chunk-VCGL2ETF.js → chunk-GO354DJ5.js} +4 -4
- package/dist/bundle/{chunk-5TPT2S2Z.js → chunk-H2UTBYFC.js} +4 -4
- package/dist/bundle/{chunk-U46UNBMT.js → chunk-HCDZWFXO.js} +244 -21
- package/dist/bundle/{chunk-TGREFJVA.js → chunk-KCVDWZWS.js} +11 -11
- package/dist/bundle/{chunk-PUBS2F5J.js → chunk-KQ5BUI5T.js} +248 -248
- package/dist/bundle/{chunk-ACGTFLEB.js → chunk-LAYPLF7G.js} +35 -282
- package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
- package/dist/bundle/{chunk-DYNSP6FW.js → chunk-MHHDVR4G.js} +1449 -832
- package/dist/bundle/{chunk-S2JSZWEC.js → chunk-NIVZHTN4.js} +15 -15
- package/dist/bundle/{chunk-A5JSTZZZ.js → chunk-NKN54EDN.js} +6 -6
- package/dist/bundle/chunk-O5EHUB2V.js +2 -0
- package/dist/bundle/{chunk-5GKXETRP.js → chunk-OGVBRRWY.js} +615 -56
- package/dist/bundle/{chunk-VYDTI254.js → chunk-Q2LBOPKO.js} +99 -50
- package/dist/bundle/{chunk-LPB2MDUW.js → chunk-QF7VVIF4.js} +11 -11
- package/dist/bundle/{chunk-VRSN7VLO.js → chunk-RD7SSY7H.js} +4 -4
- package/dist/bundle/{chunk-ZEOCU24Z.js → chunk-RKQIEJFR.js} +5 -5
- package/dist/bundle/chunk-RMC2S3F4.js +264 -0
- package/dist/bundle/{chunk-2DGOFLDA.js → chunk-S5M4HFOZ.js} +6 -6
- package/dist/bundle/{chunk-X4Y2ROJI.js → chunk-SSALGKMJ.js} +94 -5
- package/dist/bundle/{chunk-G3ZRY436.js → chunk-SSV37M5T.js} +59 -59
- package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
- package/dist/bundle/{chunk-6IPY2QRG.js → chunk-TEO2KP52.js} +5 -5
- package/dist/bundle/{chunk-G77QOTXE.js → chunk-TPFLD4OM.js} +5 -5
- package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
- package/dist/bundle/{chunk-QYVVRQTN.js → chunk-VZN5LD26.js} +6 -6
- package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
- package/dist/bundle/{chunk-7CBUCTB6.js → chunk-WULARSC4.js} +33 -39
- package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
- package/dist/bundle/{chunk-H6OXALTJ.js → chunk-YI72UVTJ.js} +5 -5
- package/dist/bundle/{chunk-NC5WS7OP.js → chunk-Z2DPNTSU.js} +5 -5
- package/dist/bundle/{chunk-RF54YDBB.js → chunk-ZHXSRYJ5.js} +6 -6
- package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
- package/dist/bundle/command-contract-ZGFJTLB2.js +32 -0
- package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
- package/dist/bundle/{echarts-QZ6PR3VC.js → echarts-UEQDIHVQ.js} +5 -5
- package/dist/bundle/{embed-UBXCXSRD.js → embed-5DPZKRW5.js} +9 -8
- package/dist/bundle/{embedder-B4ZTKC23.js → embedder-NBQXDXAO.js} +12 -11
- package/dist/bundle/entry-EE6YRAP4.js +14 -0
- package/dist/bundle/first-run-OSEVVWNT.js +24 -0
- package/dist/bundle/first-screen-753THOU6.js +30 -0
- package/dist/bundle/identity-LNH33PN3.js +11 -0
- package/dist/bundle/instructions-PYGVIT7I.js +9 -0
- package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
- package/dist/bundle/{node-LZZX22VR.js → node-3OBKCX6M.js} +5 -5
- package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/{node-sqlite-BPGT6T5U.js → node-sqlite-DMMTDRFB.js} +8 -8
- package/dist/bundle/oauth-FX5DDCRS.js +18 -0
- package/dist/bundle/open-G6QRQAAL.js +20 -0
- package/dist/bundle/{process-GPUXC4PG.js → process-47MMIFIJ.js} +5 -5
- package/dist/bundle/{program-NEXEAL7T.js → program-LBHBWRK5.js} +67 -71
- package/dist/bundle/prompt-CJ6Y4JYC.js +13 -0
- package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
- package/dist/bundle/{recognize-UJBXORVD.js → recognize-7BLTOI45.js} +9 -9
- package/dist/bundle/remote-Q4A4JY6U.js +27 -0
- package/dist/bundle/{rerank-3Y2VZM3J.js → rerank-CQAR46L3.js} +10 -9
- package/dist/bundle/{serve-VDZIVOPR.js → serve-2UO2YMMG.js} +13 -13
- package/dist/bundle/{server-BERXP4GW.js → server-6XYURULQ.js} +80 -68
- package/dist/bundle/{server-ZFHN4GUF.js → server-FMKC4RLL.js} +46 -41
- package/dist/bundle/{state-DGR4EE3E.js → state-RNWN2RDY.js} +9 -9
- package/dist/bundle/{store-MRCFSCZD.js → store-BBHTR477.js} +14 -14
- package/dist/bundle/store-maintenance-command-GD6OLRXH.js +44 -0
- package/dist/bundle/tg.js +8 -8
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +52 -3
- package/dist/telegram/sending.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-22PQUX72.js +0 -190
- package/dist/bundle/chunk-2SJOUK6J.js +0 -2
- package/dist/bundle/chunk-CJ6IYCYP.js +0 -583
- package/dist/bundle/chunk-NKJJJAIJ.js +0 -237
- package/dist/bundle/chunk-NMGO6LW6.js +0 -1950
- package/dist/bundle/chunk-OILBDLWL.js +0 -724
- package/dist/bundle/chunk-OPBTNQ35.js +0 -1007
- package/dist/bundle/command-contract-TKDI7E56.js +0 -31
- package/dist/bundle/entry-BTUTHO5M.js +0 -14
- package/dist/bundle/first-run-UC4HRIFV.js +0 -24
- package/dist/bundle/first-screen-SMCX6YKY.js +0 -29
- package/dist/bundle/identity-QSDEGDH7.js +0 -11
- package/dist/bundle/instructions-BBGLZKO3.js +0 -9
- package/dist/bundle/node-UPPL626U.js +0 -21
- package/dist/bundle/oauth-XNE2KPKJ.js +0 -18
- package/dist/bundle/open-SXGYZLB5.js +0 -20
- package/dist/bundle/prompt-SORGLEYI.js +0 -13
- package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
- package/dist/bundle/remote-W72AR7KH.js +0 -26
- package/dist/bundle/store-maintenance-command-DCMZDMYS.js +0 -46
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
UNTRUSTED,
|
|
5
5
|
UNTRUSTED_NEUTRAL,
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
|
-
commandAvailability
|
|
9
|
-
} from "./chunk-U46UNBMT.js";
|
|
10
|
-
import {
|
|
8
|
+
commandAvailability,
|
|
11
9
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HCDZWFXO.js";
|
|
11
|
+
import {
|
|
12
|
+
callerOf
|
|
13
|
+
} from "./chunk-SSALGKMJ.js";
|
|
13
14
|
import {
|
|
14
15
|
lentConnection,
|
|
15
16
|
onlineDeps,
|
|
16
17
|
refuseLacking,
|
|
17
18
|
servicesFor,
|
|
18
19
|
storeModeDeps
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MHHDVR4G.js";
|
|
20
21
|
import {
|
|
21
22
|
ENTITIES
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DWQ4QT6X.js";
|
|
23
24
|
import {
|
|
24
25
|
DEFAULT_OUTPUT_BYTES,
|
|
25
26
|
LOCAL_WRITE,
|
|
26
27
|
REMOTE_WRITE,
|
|
27
28
|
answerSchema,
|
|
29
|
+
authorityAllowed,
|
|
30
|
+
botApiAllowed,
|
|
28
31
|
changesMessenger,
|
|
29
32
|
flatten,
|
|
33
|
+
inRun,
|
|
30
34
|
judgedAnswer,
|
|
31
35
|
judgedEffects,
|
|
36
|
+
keyForCommand,
|
|
37
|
+
levelFor,
|
|
32
38
|
listOf,
|
|
33
|
-
|
|
39
|
+
newRunId,
|
|
40
|
+
readKeysForCommand,
|
|
34
41
|
refuseStoreChange,
|
|
35
|
-
runContextOf,
|
|
36
42
|
sealed,
|
|
37
43
|
startRecording
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EQHQ2AX3.js";
|
|
39
45
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
newRunId,
|
|
46
|
-
readKeysForCommand
|
|
47
|
-
} from "./chunk-OPBTNQ35.js";
|
|
46
|
+
currentCaller,
|
|
47
|
+
keepsSuccess,
|
|
48
|
+
runContextOf,
|
|
49
|
+
withCaller
|
|
50
|
+
} from "./chunk-EMC57SOZ.js";
|
|
48
51
|
import {
|
|
49
52
|
MAX_BUFFERED_INPUT
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-TEO2KP52.js";
|
|
51
54
|
import {
|
|
52
55
|
captureStreams,
|
|
53
56
|
errorObjectOf,
|
|
54
57
|
mcpErrorResult
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-T4SDOYPY.js";
|
|
56
59
|
import {
|
|
57
60
|
CliError,
|
|
58
61
|
SNAKE_CASE,
|
|
@@ -91,15 +94,15 @@ import {
|
|
|
91
94
|
unknown,
|
|
92
95
|
word,
|
|
93
96
|
writes
|
|
94
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-67SRVSPU.js";
|
|
95
98
|
import {
|
|
96
99
|
__name
|
|
97
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
98
101
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
100
103
|
import { Readable } from "node:stream";
|
|
101
104
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
105
|
+
// 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
|
|
103
106
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
104
107
|
var lintRuleSchema = strictObject({
|
|
105
108
|
id: word,
|
|
@@ -226,7 +229,7 @@ var overridesSchema = array(strictObject({
|
|
|
226
229
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
227
230
|
}));
|
|
228
231
|
|
|
229
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
232
|
+
// 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
|
|
230
233
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
231
234
|
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");
|
|
232
235
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -284,9 +287,17 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
284
287
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
285
288
|
{
|
|
286
289
|
name: "all",
|
|
287
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa"
|
|
290
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
288
291
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
289
292
|
differences: []
|
|
293
|
+
},
|
|
294
|
+
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
295
|
+
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
296
|
+
{
|
|
297
|
+
name: "gcal-shared",
|
|
298
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
299
|
+
covers: ["commands", "upgrade", "notes", "meetings"],
|
|
300
|
+
differences: []
|
|
290
301
|
}
|
|
291
302
|
]);
|
|
292
303
|
var requiredRootSchema = strictObject({ path: pipe(array(segment), minLength(1)), meaning: text });
|
|
@@ -300,7 +311,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
300
311
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
301
312
|
]);
|
|
302
313
|
|
|
303
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
314
|
+
// 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
|
|
304
315
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
305
316
|
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");
|
|
306
317
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -316,7 +327,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
316
327
|
}
|
|
317
328
|
]);
|
|
318
329
|
|
|
319
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
330
|
+
// 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
|
|
320
331
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
321
332
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
322
333
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -338,7 +349,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
338
349
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
339
350
|
]);
|
|
340
351
|
|
|
341
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
352
|
+
// 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
|
|
342
353
|
var CALENDAR_FLAGS = [
|
|
343
354
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
344
355
|
{
|
|
@@ -396,10 +407,23 @@ var CALENDAR_FLAGS = [
|
|
|
396
407
|
role: "target",
|
|
397
408
|
type: "switch",
|
|
398
409
|
meaning: "act on the whole repeating event, not only this occurrence"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: "--following",
|
|
413
|
+
role: "target",
|
|
414
|
+
type: "switch",
|
|
415
|
+
meaning: "act on this occurrence and every later one of the repeating event"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "--to-calendar",
|
|
419
|
+
value: "<id>",
|
|
420
|
+
role: "target",
|
|
421
|
+
type: "id",
|
|
422
|
+
meaning: "the calendar it moves to, of the same account"
|
|
399
423
|
}
|
|
400
424
|
];
|
|
401
425
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
426
|
+
// 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
|
|
403
427
|
var HOW_FLAGS = [
|
|
404
428
|
{
|
|
405
429
|
name: "--limit",
|
|
@@ -1379,7 +1403,7 @@ var HOW_FLAGS = [
|
|
|
1379
1403
|
}
|
|
1380
1404
|
];
|
|
1381
1405
|
|
|
1382
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1406
|
+
// 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
|
|
1383
1407
|
var WHAT_FLAGS = [
|
|
1384
1408
|
{
|
|
1385
1409
|
name: "--analysis-provider",
|
|
@@ -1569,6 +1593,13 @@ var WHAT_FLAGS = [
|
|
|
1569
1593
|
type: "string",
|
|
1570
1594
|
meaning: "the profile to use, instead of the first word"
|
|
1571
1595
|
},
|
|
1596
|
+
{
|
|
1597
|
+
name: "--profiles",
|
|
1598
|
+
value: "<names|all>",
|
|
1599
|
+
role: "scope",
|
|
1600
|
+
type: "list",
|
|
1601
|
+
meaning: "the profiles an MCP server serves, comma-separated, or all of them"
|
|
1602
|
+
},
|
|
1572
1603
|
{
|
|
1573
1604
|
name: "--history-since-time",
|
|
1574
1605
|
value: "<time>",
|
|
@@ -2362,7 +2393,7 @@ var WHAT_FLAGS = [
|
|
|
2362
2393
|
}
|
|
2363
2394
|
];
|
|
2364
2395
|
|
|
2365
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2396
|
+
// 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
|
|
2366
2397
|
var FLAG_TYPES = [
|
|
2367
2398
|
"switch",
|
|
2368
2399
|
"count",
|
|
@@ -2470,7 +2501,9 @@ var verbs = [
|
|
|
2470
2501
|
["start", "start a running process, or a login session"],
|
|
2471
2502
|
["stop", "stop a running process"],
|
|
2472
2503
|
["restart", "stop and start a running process"],
|
|
2504
|
+
["serve", "run a server in this process and answer its clients until stopped"],
|
|
2473
2505
|
["end", "end a login session"],
|
|
2506
|
+
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2474
2507
|
["install", "install a system unit"],
|
|
2475
2508
|
["uninstall", "remove a system unit"],
|
|
2476
2509
|
["cancel", "stop a job or a pending thing"],
|
|
@@ -2535,7 +2568,7 @@ var verbs = [
|
|
|
2535
2568
|
["reject", "the owner refuses what an agent proposed"],
|
|
2536
2569
|
["review", "list what waits for the owner's decision"],
|
|
2537
2570
|
["resolve", "settle one thing that waits for the owner's decision, with the owner's choice"],
|
|
2538
|
-
["move", "move a
|
|
2571
|
+
["move", "move a thing to another place in the source: a file to a folder, an event to a calendar"],
|
|
2539
2572
|
["copy", "copy a file in the source"],
|
|
2540
2573
|
["run", "run a saved job once, now, as its timer would"],
|
|
2541
2574
|
["claim", "take a thing for a while so no other agent works it at once; the claim lapses by itself"],
|
|
@@ -2714,7 +2747,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2714
2747
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2715
2748
|
});
|
|
2716
2749
|
|
|
2717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2718
2751
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2719
2752
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2720
2753
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2833,7 +2866,7 @@ var toolsFromCommands = /* @__PURE__ */ __name((commands, options = {}) => {
|
|
|
2833
2866
|
path: info.path,
|
|
2834
2867
|
title: info.summary ?? info.description,
|
|
2835
2868
|
description: info.description,
|
|
2836
|
-
writes: writes(info.effects),
|
|
2869
|
+
writes: writes(info.effects) && options.fetchOnly?.(info.path) !== true,
|
|
2837
2870
|
input: schemaOf(fieldsOf(info, options)),
|
|
2838
2871
|
...info.output ? { output: info.output } : {}
|
|
2839
2872
|
}));
|
|
@@ -2900,7 +2933,8 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2900
2933
|
}, "failure"),
|
|
2901
2934
|
...ctx.overrides?.length ? { overrides: ctx.overrides } : {},
|
|
2902
2935
|
authority: levels !== void 0 && authorityAllowed(levels),
|
|
2903
|
-
botApi: levels !== void 0 && botApiAllowed(levels)
|
|
2936
|
+
botApi: levels !== void 0 && botApiAllowed(levels),
|
|
2937
|
+
...ctx.caller ?? currentCaller() ? { caller: ctx.caller ?? currentCaller() } : {}
|
|
2904
2938
|
},
|
|
2905
2939
|
// Opened only when the command asks: a read the store answers never connects.
|
|
2906
2940
|
...lend ? {
|
|
@@ -2925,7 +2959,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2925
2959
|
}
|
|
2926
2960
|
}, "runCommandForAgent");
|
|
2927
2961
|
|
|
2928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2929
2963
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2930
2964
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2931
2965
|
var message = pipe(
|
|
@@ -2990,16 +3024,22 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
2990
3024
|
const command = `mcp ${commandOf(key2, definition)}`;
|
|
2991
3025
|
const traceId = traceIdOf(ctx?.mcpReq?._meta?.traceparent);
|
|
2992
3026
|
const app = registration.messenger?.app;
|
|
2993
|
-
const
|
|
3027
|
+
const caller = registration.callers ? callerOf(ctx, key2, registration.callers) : currentCaller();
|
|
3028
|
+
const env = registration.defaults.env ?? process.env;
|
|
3029
|
+
const settings = registration.defaults.settings;
|
|
3030
|
+
const recording = key2 !== "runs_search" && settings.keepFailedRuns !== false && app?.appName ? startRecording({
|
|
2994
3031
|
app,
|
|
2995
3032
|
command,
|
|
2996
|
-
...
|
|
2997
|
-
env
|
|
2998
|
-
record: false,
|
|
3033
|
+
...settings.profile === void 0 ? {} : { profile: settings.profile },
|
|
3034
|
+
env,
|
|
3035
|
+
record: keepsSuccess({ record: settings.record ?? true, fromFlag: false, env, caller }),
|
|
2999
3036
|
keepFailed: true,
|
|
3000
3037
|
trace: false,
|
|
3001
3038
|
format: "json",
|
|
3002
|
-
context: runContextOf({ bin: app.command, command, env
|
|
3039
|
+
context: runContextOf({ bin: app.command, command, env, caller }),
|
|
3040
|
+
...settings.keepRunsForDays === void 0 ? {} : { keepDays: settings.keepRunsForDays },
|
|
3041
|
+
...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
|
|
3042
|
+
...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
|
|
3003
3043
|
...traceId === void 0 ? {} : { traceId }
|
|
3004
3044
|
}) : void 0;
|
|
3005
3045
|
const profile = registration.defaults.settings.profile;
|
|
@@ -3008,16 +3048,18 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
3008
3048
|
command,
|
|
3009
3049
|
startedAt,
|
|
3010
3050
|
...profile === void 0 ? {} : { profile },
|
|
3011
|
-
...traceId === void 0 ? {} : { traceId }
|
|
3051
|
+
...traceId === void 0 ? {} : { traceId },
|
|
3052
|
+
...recording ? { events: recording.events } : {}
|
|
3012
3053
|
};
|
|
3013
|
-
const
|
|
3054
|
+
const work = /* @__PURE__ */ __name(() => inRun(scope, () => {
|
|
3014
3055
|
const input = inputOf(definition, syncAllowedFor(key2, registration.defaults));
|
|
3015
3056
|
const parsed = safeParse(input, args);
|
|
3016
3057
|
return parsed.success ? run(key2, definition, parsed.output, ctx) : failed(new CliError("validation_error", `${commandOf(key2, definition)}: ${summarize(parsed.issues)}`, {
|
|
3017
3058
|
arguments: toJsonSchema(input)
|
|
3018
3059
|
}), app?.errors);
|
|
3019
|
-
});
|
|
3020
|
-
|
|
3060
|
+
}), "work");
|
|
3061
|
+
const result = await (caller ? withCaller(caller, work) : work());
|
|
3062
|
+
if (recording) {
|
|
3021
3063
|
if (result.isError) {
|
|
3022
3064
|
const error = result.structuredContent?.error;
|
|
3023
3065
|
const code = error?.code && errorCodes.includes(error.code) ? error.code : void 0;
|
|
@@ -3176,7 +3218,8 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3176
3218
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3177
3219
|
}, "failed");
|
|
3178
3220
|
|
|
3179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3222
|
+
import { randomUUID } from "node:crypto";
|
|
3180
3223
|
var MATCHES = 8;
|
|
3181
3224
|
var ANSWER = answerSchema();
|
|
3182
3225
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
@@ -3248,6 +3291,11 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3248
3291
|
});
|
|
3249
3292
|
return answered(list);
|
|
3250
3293
|
});
|
|
3294
|
+
const callers = {
|
|
3295
|
+
env: process.env,
|
|
3296
|
+
client: /* @__PURE__ */ __name(() => server.server.getClientVersion(), "client"),
|
|
3297
|
+
connectionId: randomUUID()
|
|
3298
|
+
};
|
|
3251
3299
|
const runner = /* @__PURE__ */ __name((writing) => async ({ command: asked, arguments: given }, ctx) => {
|
|
3252
3300
|
try {
|
|
3253
3301
|
const command = byNormal.get(normal(asked));
|
|
@@ -3260,14 +3308,15 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3260
3308
|
if (one.writes !== writing)
|
|
3261
3309
|
throw new CliError("validation_error", `"${command}" ${writing ? "only reads" : "writes"}: call it with ${prefix}_${writing ? "read" : "write"}`);
|
|
3262
3310
|
const args = writing ? agentArguments(given ?? {}) : given ?? {};
|
|
3311
|
+
const caller = currentCaller() ?? callerOf(ctx, command.replace(/[ -]/g, "_"), callers);
|
|
3263
3312
|
if (one.checked)
|
|
3264
|
-
return runnableOnly(await one.run(args, ctx), (named) => byNormal.has(normal(named)));
|
|
3313
|
+
return runnableOnly(await withCaller(caller, () => one.run(args, ctx)), (named) => byNormal.has(normal(named)));
|
|
3265
3314
|
const parsed = safeParse(strictObject(one.input.entries), args);
|
|
3266
3315
|
if (!parsed.success)
|
|
3267
3316
|
throw new CliError("validation_error", `${command}: ${summarize(parsed.issues)}`, {
|
|
3268
3317
|
arguments: toJsonSchema(one.input)
|
|
3269
3318
|
});
|
|
3270
|
-
return runnableOnly(await one.run(parsed.output, ctx), (named) => byNormal.has(normal(named)));
|
|
3319
|
+
return runnableOnly(await withCaller(caller, () => one.run(parsed.output, ctx)), (named) => byNormal.has(normal(named)));
|
|
3271
3320
|
} catch (error) {
|
|
3272
3321
|
return failed(error, errors);
|
|
3273
3322
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wrapAnsi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2ABQZVK4.js";
|
|
6
6
|
import {
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-57XGUIXA.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EQHQ2AX3.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-67SRVSPU.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
321
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
322
|
}, "installCommandHelp");
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
325
|
var WIRECAT_TOOLS = [
|
|
326
326
|
{
|
|
327
327
|
command: "tg",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6N25NZOE.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-67SRVSPU.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
14
|
// dist/telegram/map.js
|
|
15
15
|
import { extname } from "node:path";
|