@wirecat/drive-cli 0.55.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-I5KJKZPF.js → all-profiles-7LSZ3CC3.js} +9 -9
- package/dist/bundle/{anthropic-DPM7BRKX.js → anthropic-3QRM4QXB.js} +5 -5
- package/dist/bundle/{app-server-FTGLOZ2K.js → app-server-WWNMUHID.js} +48 -48
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-NIIYUR5F.js} +2 -2
- package/dist/bundle/{bun-sqlite-7JJX6OUT.js → bun-sqlite-GSLSN3OT.js} +4 -4
- package/dist/bundle/{chunk-NPMVPKBD.js → chunk-2QLLKDE5.js} +48 -47
- package/dist/bundle/{chunk-P4ABC6C4.js → chunk-2ULJW5BA.js} +2 -2
- package/dist/bundle/{chunk-AR2HRFQO.js → chunk-373WJIHE.js} +2 -2
- package/dist/bundle/{chunk-K2DMCTTF.js → chunk-3BXSLNWW.js} +129 -97
- package/dist/bundle/{chunk-BO7ZKZCH.js → chunk-4F2VRJZE.js} +121 -46
- package/dist/bundle/{chunk-NDUYK676.js → chunk-4UQLL6RJ.js} +10 -9
- package/dist/bundle/{chunk-NFOUG7ES.js → chunk-566W4Q6L.js} +2 -2
- package/dist/bundle/{chunk-E7RDXCV2.js → chunk-5KNIVHP6.js} +5 -5
- package/dist/bundle/{chunk-VXZULAWV.js → chunk-64E6QXXQ.js} +14 -13
- package/dist/bundle/{chunk-FNDQFFLP.js → chunk-6CFSDU56.js} +11 -11
- package/dist/bundle/{chunk-ORRQDSDH.js → chunk-6ZA4NR5H.js} +3 -3
- package/dist/bundle/{chunk-PFTIYWOK.js → chunk-7SNS443B.js} +4 -4
- package/dist/bundle/{chunk-JPFF6MNK.js → chunk-AHBUTDS7.js} +8 -8
- package/dist/bundle/{chunk-TIEEVT2Z.js → chunk-AKPFH3KC.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-AL7MY7MW.js} +1 -1
- package/dist/bundle/{chunk-RMQGFLT2.js → chunk-B3TPS7BW.js} +6 -6
- package/dist/bundle/{chunk-2DZMGPUC.js → chunk-B64EY2SC.js} +123 -34
- package/dist/bundle/{chunk-2OGANEKA.js → chunk-CD736BG3.js} +2 -2
- package/dist/bundle/{chunk-C4QKY33N.js → chunk-CGCQNYB3.js} +2 -2
- package/dist/bundle/{chunk-2KARCTUU.js → chunk-EE7R457T.js} +949 -581
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-EFEI724Z.js} +1 -1
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-EFX6FIDM.js} +1 -1
- package/dist/bundle/{chunk-DNJ43DT5.js → chunk-ELIYJXIY.js} +2 -2
- package/dist/bundle/{chunk-NPKFXGYG.js → chunk-EN7OZ5JH.js} +41 -23
- package/dist/bundle/{chunk-IXXVCKWL.js → chunk-G34Y5RAC.js} +26 -26
- package/dist/bundle/{chunk-TBD362SJ.js → chunk-GIQFBXQN.js} +11 -7
- package/dist/bundle/{chunk-KWKRTYRL.js → chunk-GKHUHRSL.js} +4 -4
- package/dist/bundle/{chunk-VGTDXEYD.js → chunk-HNUSPNUQ.js} +26 -13
- package/dist/bundle/{chunk-XTNEYXAQ.js → chunk-IJ2S53WJ.js} +5 -5
- package/dist/bundle/{chunk-FUKJQZED.js → chunk-ISK4K7UE.js} +1 -1
- package/dist/bundle/{chunk-YP5FDMTG.js → chunk-J2HGHSLX.js} +2 -2
- package/dist/bundle/{chunk-ULPS2OAL.js → chunk-JIGMCW4C.js} +4 -4
- package/dist/bundle/{chunk-ALMQEGYO.js → chunk-JLKNUFL2.js} +2 -2
- package/dist/bundle/{chunk-UDWMRZL6.js → chunk-JUKVJ7M2.js} +21 -21
- package/dist/bundle/{chunk-LAVWTS4P.js → chunk-KHNDZNQA.js} +5333 -5108
- package/dist/bundle/{chunk-GB5YM5HK.js → chunk-KM4Y55ZE.js} +5 -5
- package/dist/bundle/{chunk-CP6M5P4X.js → chunk-KYNTSA6K.js} +3 -3
- package/dist/bundle/{chunk-4XRLPQ3N.js → chunk-L4BBK7UX.js} +2 -2
- package/dist/bundle/chunk-LBFFI6FE.js +247 -0
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-LSSIVBQI.js} +1 -1
- package/dist/bundle/{chunk-D6SRTPCV.js → chunk-NLLWLCUZ.js} +2 -2
- package/dist/bundle/{chunk-6OJMA4ZT.js → chunk-O5KDIVGE.js} +389 -255
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-OOR6PEHV.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-67A2YFAT.js → chunk-OZJMZSFB.js} +4 -4
- package/dist/bundle/{chunk-GC4JNVYF.js → chunk-Q3TMNETS.js} +98 -37
- package/dist/bundle/{chunk-5DEEBWDI.js → chunk-QAT6UXZZ.js} +38 -37
- package/dist/bundle/{chunk-VY3TYRCK.js → chunk-R5GJZPRF.js} +114 -59
- package/dist/bundle/{chunk-4I7EBJJV.js → chunk-RAEKC6TV.js} +6 -6
- package/dist/bundle/{chunk-HNR2BJJU.js → chunk-RB674T6L.js} +75 -17
- package/dist/bundle/{chunk-NCCL4QWR.js → chunk-SRNXTXJN.js} +3 -3
- package/dist/bundle/{chunk-TD4RAOMZ.js → chunk-TKVSJV5P.js} +3 -3
- package/dist/bundle/{chunk-W6DMCGMK.js → chunk-TR5656OS.js} +47 -22
- package/dist/bundle/{chunk-VY2AUZMJ.js → chunk-TZHCS5MG.js} +2 -2
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-U2RSVKR5.js} +1 -1
- package/dist/bundle/{chunk-IDK5QUBJ.js → chunk-UKMFPBAO.js} +4 -4
- package/dist/bundle/{chunk-GIRVMZD3.js → chunk-VTJF2L5E.js} +16 -16
- package/dist/bundle/{chunk-AQNY57J2.js → chunk-W5FOPSJZ.js} +7 -7
- package/dist/bundle/{chunk-FKHWVVMV.js → chunk-W6FYYQ2J.js} +3 -3
- package/dist/bundle/{chunk-VVMCGF5X.js → chunk-WAVJWGUC.js} +1811 -883
- package/dist/bundle/{chunk-FDM3JMQZ.js → chunk-WBYCUBYM.js} +89 -36
- package/dist/bundle/{chunk-TIVC4DB5.js → chunk-WJOKTIOJ.js} +2 -2
- package/dist/bundle/{chunk-7MVKSPEG.js → chunk-WJPVGXKA.js} +6 -6
- package/dist/bundle/{chunk-N4VNUOOD.js → chunk-XGNADVIA.js} +18 -18
- package/dist/bundle/{chunk-J6XLM4QW.js → chunk-XJVK7ETL.js} +28 -10
- package/dist/bundle/{chunk-3K4H2DTA.js → chunk-YZ6SYLDC.js} +12 -3
- package/dist/bundle/command-contract-XIACCAZL.js +35 -0
- package/dist/bundle/{decode-3LX3BLZM.js → decode-5MHMPYKE.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-CLB22SZS.js} +2 -2
- package/dist/bundle/{embed-FICTRZJL.js → embed-TF66ODAR.js} +5 -5
- package/dist/bundle/{embedder-DSMRCRSH.js → embedder-EDWOIAC2.js} +8 -8
- package/dist/bundle/{entry-4ZX3BNXK.js → entry-CWYCQ53A.js} +8 -6
- package/dist/bundle/{first-run-GRBQ3SQ5.js → first-run-YIH7EHJI.js} +9 -9
- package/dist/bundle/first-screen-THH3XD5Y.js +33 -0
- package/dist/bundle/{google-QV2B2KZA.js → google-A4F2WFO4.js} +9 -9
- package/dist/bundle/{google-api-EVO7F3WB.js → google-api-ZXGQOJUI.js} +51 -51
- package/dist/bundle/grants-3Z7DG3W3.js +98 -0
- package/dist/bundle/{identity-TKAX75OT.js → identity-4IO7WGG4.js} +4 -4
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-BXZZNAMS.js} +1 -1
- package/dist/bundle/{login-R2YEAKEM.js → login-A4QHJ5DA.js} +57 -57
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-R6ZNQ3NT.js} +2 -2
- package/dist/bundle/{node-sqlite-NZIBED3C.js → node-sqlite-AFQTE4XZ.js} +4 -4
- package/dist/bundle/{oauth-WUHT2JII.js → oauth-46XBJBML.js} +6 -6
- package/dist/bundle/{open-INBNHORD.js → open-WJCRBIP7.js} +3 -3
- package/dist/bundle/{openai-BMREUGJP.js → openai-3TIBDWZA.js} +13 -13
- package/dist/bundle/{process-XVDX4SPD.js → process-P36JP33R.js} +1 -1
- package/dist/bundle/{program-DUWFQOSL.js → program-AHZH65IT.js} +85 -77
- package/dist/bundle/{prompt-S7GHCPGR.js → prompt-FFGBIT4A.js} +4 -4
- package/dist/bundle/{reasons-T24V3AYS.js → reasons-VHCVYH54.js} +3 -3
- package/dist/bundle/{recognize-T3DABMW5.js → recognize-4EAKIMON.js} +3 -3
- package/dist/bundle/{remote-ASYGFT6E.js → remote-HX3JP4EH.js} +6 -6
- package/dist/bundle/{rerank-BQ5U252K.js → rerank-BW3A4PUU.js} +6 -6
- package/dist/bundle/{serve-JMLNKCUZ.js → serve-YYOOLIBS.js} +8 -8
- package/dist/bundle/{server-5E6RC7GZ.js → server-G6XTEEFI.js} +38 -38
- package/dist/bundle/server-YKYEUIJT.js +63 -0
- package/dist/bundle/{services-NFB3XSON.js → services-OAPILZOW.js} +45 -25
- package/dist/bundle/{sqlite-runtime-TAMYMQFR.js → sqlite-runtime-GTXDK4PE.js} +4 -4
- package/dist/bundle/{state-DS4G3ZXV.js → state-XG335LGZ.js} +5 -5
- package/dist/bundle/{store-MLMKYJLC.js → store-7KOXJNQP.js} +14 -12
- package/dist/bundle/{store-HAS2LRFE.js → store-N53SJOPS.js} +33 -15
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +52 -0
- package/dist/bundle/tokens-P7TEHKDD.js +96 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +10 -2
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -12
- package/dist/config.js.map +1 -1
- package/dist/profile-lock.js +2 -2
- package/dist/profile-lock.js.map +1 -1
- package/dist/reasons.js +1 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-3NAVOBGH.js +0 -331
- package/dist/bundle/command-contract-VXLGE6NV.js +0 -35
- package/dist/bundle/first-screen-JK3MZVCU.js +0 -33
- package/dist/bundle/grants-B642KK5M.js +0 -98
- package/dist/bundle/server-QI4C3CQT.js +0 -63
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +0 -52
- package/dist/bundle/tokens-UMSAYGOH.js +0 -96
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
|
|
530
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
530
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
531
531
|
import { existsSync } from "node:fs";
|
|
532
532
|
import { win32 } from "node:path";
|
|
533
533
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CGCQNYB3.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIQFBXQN.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -135,7 +135,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
135
135
|
return model;
|
|
136
136
|
}, "speechModel");
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
139
139
|
import { createHash, randomUUID } from "node:crypto";
|
|
140
140
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
141
141
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -7,22 +7,23 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RB674T6L.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YZ6SYLDC.js";
|
|
14
14
|
import {
|
|
15
|
+
QUERY_ARGUMENT,
|
|
15
16
|
lentConnection,
|
|
16
17
|
refuseLacking
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EN7OZ5JH.js";
|
|
18
19
|
import {
|
|
19
20
|
onlineDeps,
|
|
20
21
|
servicesFor,
|
|
21
22
|
storeModeDeps
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KHNDZNQA.js";
|
|
23
24
|
import {
|
|
24
25
|
ENTITIES
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3BXSLNWW.js";
|
|
26
27
|
import {
|
|
27
28
|
DEFAULT_OUTPUT_BYTES,
|
|
28
29
|
LOCAL_WRITE,
|
|
@@ -36,13 +37,13 @@ import {
|
|
|
36
37
|
refuseStoreChange,
|
|
37
38
|
sealed,
|
|
38
39
|
startRecording
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4F2VRJZE.js";
|
|
40
41
|
import {
|
|
41
42
|
currentCaller,
|
|
42
43
|
keepsSuccess,
|
|
43
44
|
runContextOf,
|
|
44
45
|
withCaller
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4UQLL6RJ.js";
|
|
46
47
|
import {
|
|
47
48
|
authorityAllowed,
|
|
48
49
|
botApiAllowed,
|
|
@@ -53,15 +54,18 @@ import {
|
|
|
53
54
|
newRunId,
|
|
54
55
|
readKeysForCommand,
|
|
55
56
|
traceOf
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TR5656OS.js";
|
|
57
58
|
import {
|
|
58
59
|
MAX_BUFFERED_INPUT
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-TZHCS5MG.js";
|
|
61
|
+
import {
|
|
62
|
+
queryDescription
|
|
63
|
+
} from "./chunk-XJVK7ETL.js";
|
|
60
64
|
import {
|
|
61
65
|
captureStreams,
|
|
62
66
|
errorObjectOf,
|
|
63
67
|
mcpErrorResult
|
|
64
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-XGNADVIA.js";
|
|
65
69
|
import {
|
|
66
70
|
CliError,
|
|
67
71
|
SNAKE_CASE,
|
|
@@ -100,15 +104,15 @@ import {
|
|
|
100
104
|
unknown,
|
|
101
105
|
word,
|
|
102
106
|
writes
|
|
103
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-GIQFBXQN.js";
|
|
104
108
|
import {
|
|
105
109
|
__name
|
|
106
110
|
} from "./chunk-ZVVMGPBJ.js";
|
|
107
111
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
109
113
|
import { Readable } from "node:stream";
|
|
110
114
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
116
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
113
117
|
var lintRuleSchema = strictObject({
|
|
114
118
|
id: word,
|
|
@@ -235,7 +239,7 @@ var overridesSchema = array(strictObject({
|
|
|
235
239
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
236
240
|
}));
|
|
237
241
|
|
|
238
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
242
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
243
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
240
244
|
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
245
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -295,18 +299,34 @@ var defineParityGroups = /* @__PURE__ */ __name((input) => parseRegistry("parity
|
|
|
295
299
|
...group.differences.filter((entry) => entry.absent && entry.expected).map((entry) => `${group.name}: "${entry.target}" has \`absent\`, which measures the values itself; drop \`expected\``)
|
|
296
300
|
])
|
|
297
301
|
]), "defineParityGroups");
|
|
302
|
+
var MEMO_HAS_NO_PROFILES = [
|
|
303
|
+
"mcp serve",
|
|
304
|
+
"mcp revoke",
|
|
305
|
+
"mcp server start",
|
|
306
|
+
"mcp server status",
|
|
307
|
+
"mcp server stop"
|
|
308
|
+
].map((path) => ({
|
|
309
|
+
rule: "same-path-contract",
|
|
310
|
+
target: `${path} --profiles`,
|
|
311
|
+
absent: "memo",
|
|
312
|
+
reason: "memo has no profiles: it reads other CLIs' stores and selects their accounts with --source and --account (https://github.com/WireCatLabs/cli-base/issues/390)"
|
|
313
|
+
}));
|
|
298
314
|
var PARITY_GROUPS = defineParityGroups([
|
|
299
315
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
300
316
|
{
|
|
301
317
|
name: "all",
|
|
302
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa"
|
|
318
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
303
319
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
304
|
-
differences:
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
320
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
321
|
+
},
|
|
322
|
+
// mail's `search messages` is cli-core's mail search, not the messengers' command: --complete took their 20-odd
|
|
323
|
+
// differences as inherited (https://github.com/WireCatLabs/cli-base/issues/390). mail is compared everywhere else
|
|
324
|
+
// and moves back into "all" once its search is aligned with the messengers' or renamed.
|
|
325
|
+
{
|
|
326
|
+
name: "mail-shared",
|
|
327
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
|
|
328
|
+
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "notes", "meetings"],
|
|
329
|
+
differences: MEMO_HAS_NO_PROFILES
|
|
310
330
|
},
|
|
311
331
|
// gcal is compared on what it already shares with every CLI; doctor, mcp, search and skill wait until the published
|
|
312
332
|
// CLIs agree there (https://github.com/WireCatLabs/cli-base/issues/390), then gcal moves back into "all".
|
|
@@ -328,7 +348,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
328
348
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
329
349
|
]);
|
|
330
350
|
|
|
331
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
351
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
332
352
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
333
353
|
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");
|
|
334
354
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -344,7 +364,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
344
364
|
}
|
|
345
365
|
]);
|
|
346
366
|
|
|
347
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
367
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
348
368
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
349
369
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
350
370
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -366,7 +386,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
366
386
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
367
387
|
]);
|
|
368
388
|
|
|
369
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
389
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
370
390
|
var CALENDAR_FLAGS = [
|
|
371
391
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
372
392
|
{
|
|
@@ -440,7 +460,7 @@ var CALENDAR_FLAGS = [
|
|
|
440
460
|
}
|
|
441
461
|
];
|
|
442
462
|
|
|
443
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
463
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
444
464
|
var HOW_FLAGS = [
|
|
445
465
|
{
|
|
446
466
|
name: "--limit",
|
|
@@ -1427,7 +1447,31 @@ var HOW_FLAGS = [
|
|
|
1427
1447
|
}
|
|
1428
1448
|
];
|
|
1429
1449
|
|
|
1430
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1450
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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-mail.js
|
|
1451
|
+
var MAIL_FLAGS = [
|
|
1452
|
+
{
|
|
1453
|
+
name: "--cc",
|
|
1454
|
+
value: "<address>",
|
|
1455
|
+
role: "value",
|
|
1456
|
+
type: "string",
|
|
1457
|
+
meaning: "an e-mail address that gets a copy; repeat it for more"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: "--bcc",
|
|
1461
|
+
value: "<address>",
|
|
1462
|
+
role: "value",
|
|
1463
|
+
type: "string",
|
|
1464
|
+
meaning: "an e-mail address that gets a blind copy; repeat it for more"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
name: "--reply-all",
|
|
1468
|
+
role: "value",
|
|
1469
|
+
type: "switch",
|
|
1470
|
+
meaning: "with --reply-to, an e-mail reply also goes to everyone the message went to"
|
|
1471
|
+
}
|
|
1472
|
+
];
|
|
1473
|
+
|
|
1474
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
1431
1475
|
var WHAT_FLAGS = [
|
|
1432
1476
|
{
|
|
1433
1477
|
name: "--analysis-provider",
|
|
@@ -1872,7 +1916,14 @@ var WHAT_FLAGS = [
|
|
|
1872
1916
|
meaning: "keep a token an operation returns only in this bot profile's keyring; never print it"
|
|
1873
1917
|
},
|
|
1874
1918
|
{ name: "--task", value: "<id>", role: "target", type: "id", meaning: "a task, by id" },
|
|
1875
|
-
{
|
|
1919
|
+
{
|
|
1920
|
+
name: "--to",
|
|
1921
|
+
value: "<chat>",
|
|
1922
|
+
role: "target",
|
|
1923
|
+
type: "id",
|
|
1924
|
+
otherValues: ["address"],
|
|
1925
|
+
meaning: "who it goes to: a chat in a messenger (<chat>), an e-mail address in mail (<address>, repeated for more)"
|
|
1926
|
+
},
|
|
1876
1927
|
{
|
|
1877
1928
|
name: "--topic-name",
|
|
1878
1929
|
value: "<name>",
|
|
@@ -2322,7 +2373,8 @@ var WHAT_FLAGS = [
|
|
|
2322
2373
|
value: "<ref>",
|
|
2323
2374
|
role: "value",
|
|
2324
2375
|
type: "string",
|
|
2325
|
-
|
|
2376
|
+
otherValues: ["text"],
|
|
2377
|
+
meaning: "what it is about: a reference in a note or task (<ref>), the subject line in mail (<text>)",
|
|
2326
2378
|
replaces: ["--about"]
|
|
2327
2379
|
},
|
|
2328
2380
|
{
|
|
@@ -2417,7 +2469,7 @@ var WHAT_FLAGS = [
|
|
|
2417
2469
|
}
|
|
2418
2470
|
];
|
|
2419
2471
|
|
|
2420
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2472
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.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
|
|
2421
2473
|
var FLAG_TYPES = [
|
|
2422
2474
|
"switch",
|
|
2423
2475
|
"count",
|
|
@@ -2459,6 +2511,11 @@ var flagSchema = strictObject({
|
|
|
2459
2511
|
type: picklist(FLAG_TYPES),
|
|
2460
2512
|
role: picklist(Object.keys(FLAG_ROLES)),
|
|
2461
2513
|
meaning: text,
|
|
2514
|
+
/**
|
|
2515
|
+
* Value names a domain other than the main one gives the flag, such as mail's `--to <address>` beside the
|
|
2516
|
+
* messengers' `<chat>`. The meaning for each says which is which. `flag-two-meanings` accepts these and no others.
|
|
2517
|
+
*/
|
|
2518
|
+
otherValues: optional(array(pipe(string(), regex(/^[a-z][a-z0-9-]*$/, "a value name such as address")))),
|
|
2462
2519
|
unit: optional(text),
|
|
2463
2520
|
/** Other names for the same flag, which `flag-synonym` refuses. */
|
|
2464
2521
|
replaces: optional(array(pipe(string(), regex(/^--[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a long flag"))))
|
|
@@ -2568,6 +2625,7 @@ var verbs = [
|
|
|
2568
2625
|
["vote", "answer a poll"],
|
|
2569
2626
|
["answer", "reply to a button someone pressed under a bot's message"],
|
|
2570
2627
|
["respond", "answer an invitation: accept, tentatively accept or decline it"],
|
|
2628
|
+
["remind", "tell the owner once about what starts soon: print it, or run the owner's own program for it"],
|
|
2571
2629
|
["press", "press a button under a bot's message; the bot sees who pressed it"],
|
|
2572
2630
|
["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
|
|
2573
2631
|
["watch", "follow new events as they come, and keep them"],
|
|
@@ -2622,6 +2680,7 @@ var collections = [
|
|
|
2622
2680
|
["chats", "conversations in a messenger"],
|
|
2623
2681
|
["contacts", "identities in a messenger's contact list"],
|
|
2624
2682
|
["messages", "posts in a messenger chat, or emails"],
|
|
2683
|
+
["drafts", "e-mails saved in a mailbox's Drafts folder, written and not sent"],
|
|
2625
2684
|
["polls", "polls in a chat"],
|
|
2626
2685
|
["reactions", "reactions to a message"],
|
|
2627
2686
|
["recipients", "who a message goes to"],
|
|
@@ -2768,10 +2827,10 @@ var VOCABULARY = defineVocabulary({
|
|
|
2768
2827
|
],
|
|
2769
2828
|
views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2770
2829
|
roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2771
|
-
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2830
|
+
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2772
2831
|
});
|
|
2773
2832
|
|
|
2774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2775
2834
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2776
2835
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2777
2836
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2830,8 +2889,10 @@ var optionField = /* @__PURE__ */ __name((option, long, negated) => {
|
|
|
2830
2889
|
}, "argv")
|
|
2831
2890
|
};
|
|
2832
2891
|
}, "optionField");
|
|
2833
|
-
var argumentField = /* @__PURE__ */ __name((argument) => {
|
|
2834
|
-
const
|
|
2892
|
+
var argumentField = /* @__PURE__ */ __name((argument, query) => {
|
|
2893
|
+
const own = argument.description || argument.name;
|
|
2894
|
+
const about = query && argument.name === "query" ? own === QUERY_ARGUMENT ? queryDescription(query) : `${own}; ${queryDescription(query)}` : own;
|
|
2895
|
+
const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(about);
|
|
2835
2896
|
return {
|
|
2836
2897
|
name: snake(argument.name),
|
|
2837
2898
|
required: argument.required,
|
|
@@ -2857,7 +2918,7 @@ var stdinField = /* @__PURE__ */ __name(({ name, description: description2, json
|
|
|
2857
2918
|
argv: /* @__PURE__ */ __name(() => [], "argv")
|
|
2858
2919
|
}), "stdinField");
|
|
2859
2920
|
var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin }) => {
|
|
2860
|
-
const fields = info.arguments.map(argumentField);
|
|
2921
|
+
const fields = info.arguments.map((argument) => argumentField(argument, info.query));
|
|
2861
2922
|
const read = stdin?.(info.path);
|
|
2862
2923
|
if (read)
|
|
2863
2924
|
fields.push(stdinField(read));
|
|
@@ -2992,7 +3053,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2992
3053
|
}
|
|
2993
3054
|
}, "runCommandForAgent");
|
|
2994
3055
|
|
|
2995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2996
3057
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2997
3058
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2998
3059
|
var message = pipe(
|
|
@@ -3106,7 +3167,7 @@ var entryRunner = /* @__PURE__ */ __name((registration) => {
|
|
|
3106
3167
|
...outcomeOf(result),
|
|
3107
3168
|
startedAt,
|
|
3108
3169
|
finishedAt: Date.now()
|
|
3109
|
-
})?.catch(() => void 0);
|
|
3170
|
+
}, caller)?.catch(() => void 0);
|
|
3110
3171
|
return result;
|
|
3111
3172
|
};
|
|
3112
3173
|
}, "entryRunner");
|
|
@@ -3251,7 +3312,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3251
3312
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3252
3313
|
}, "failed");
|
|
3253
3314
|
|
|
3254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3255
3316
|
import { randomUUID } from "node:crypto";
|
|
3256
3317
|
var MATCHES = 8;
|
|
3257
3318
|
var ANSWER = answerSchema();
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
registerPrompts,
|
|
14
14
|
stdinFieldOf,
|
|
15
15
|
syncsFirst
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WBYCUBYM.js";
|
|
17
17
|
import {
|
|
18
18
|
answeredWire
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EFX6FIDM.js";
|
|
20
20
|
import {
|
|
21
21
|
BinaryResource,
|
|
22
22
|
Picture,
|
|
@@ -37,87 +37,88 @@ import {
|
|
|
37
37
|
tool,
|
|
38
38
|
toolKey,
|
|
39
39
|
toolsFromCommands
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Q3TMNETS.js";
|
|
41
41
|
import {
|
|
42
42
|
agentJson,
|
|
43
43
|
skillResource
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RB674T6L.js";
|
|
45
45
|
import {
|
|
46
46
|
StdioServerTransport,
|
|
47
47
|
callerOf,
|
|
48
|
+
callingAgent,
|
|
48
49
|
serveStdio
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YZ6SYLDC.js";
|
|
50
51
|
import {
|
|
51
52
|
instructions
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-EFEI724Z.js";
|
|
53
54
|
import {
|
|
54
55
|
McpServer,
|
|
55
56
|
ResourceTemplate
|
|
56
57
|
} from "./chunk-5D4AEUVA.js";
|
|
57
58
|
import {
|
|
58
59
|
mcpHttpMarker
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-GKHUHRSL.js";
|
|
60
61
|
import {
|
|
61
62
|
connectedFor,
|
|
62
63
|
guardFor
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-B64EY2SC.js";
|
|
64
65
|
import {
|
|
65
66
|
lackedNeed,
|
|
66
67
|
wholeList
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EN7OZ5JH.js";
|
|
68
69
|
import {
|
|
69
70
|
capability,
|
|
70
71
|
dateWindow,
|
|
71
72
|
imageSize,
|
|
72
73
|
servicesFor,
|
|
73
74
|
storedDeps
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-KHNDZNQA.js";
|
|
75
76
|
import {
|
|
76
77
|
findCommand
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-RAEKC6TV.js";
|
|
78
79
|
import {
|
|
79
80
|
DEFAULT_OUTPUT_BYTES,
|
|
80
81
|
changesAuthorityAt,
|
|
81
82
|
describeProgram,
|
|
82
83
|
environmentOf,
|
|
83
|
-
fetchesOnlyAt,
|
|
84
84
|
itemOf,
|
|
85
85
|
judgedTargets,
|
|
86
|
+
readsOverMcpAt,
|
|
86
87
|
recalledAccount,
|
|
87
88
|
rootOf2 as rootOf,
|
|
88
89
|
sealed,
|
|
89
90
|
snakeKeys
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-4F2VRJZE.js";
|
|
91
92
|
import {
|
|
92
93
|
withCaller
|
|
93
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-4UQLL6RJ.js";
|
|
94
95
|
import {
|
|
95
96
|
levelFor,
|
|
96
97
|
readKeysForCommand,
|
|
97
98
|
typedCommand
|
|
98
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-TR5656OS.js";
|
|
99
100
|
import {
|
|
100
101
|
isCliFailure
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-2ULJW5BA.js";
|
|
102
103
|
import {
|
|
103
104
|
readOnlyLockOf
|
|
104
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-JLKNUFL2.js";
|
|
105
106
|
import {
|
|
106
107
|
warmEmbedders
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-KM4Y55ZE.js";
|
|
108
109
|
import {
|
|
109
110
|
openStore
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-WAVJWGUC.js";
|
|
111
112
|
import {
|
|
112
113
|
pdfPreviewLimits
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-373WJIHE.js";
|
|
114
115
|
import {
|
|
115
116
|
timezoneOf
|
|
116
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-XJVK7ETL.js";
|
|
117
118
|
import {
|
|
118
119
|
mcpErrorResult,
|
|
119
120
|
visibleControls
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-XGNADVIA.js";
|
|
121
122
|
import {
|
|
122
123
|
CliError,
|
|
123
124
|
description,
|
|
@@ -133,15 +134,15 @@ import {
|
|
|
133
134
|
regex,
|
|
134
135
|
strictObject,
|
|
135
136
|
string
|
|
136
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-GIQFBXQN.js";
|
|
137
138
|
import {
|
|
138
139
|
__name
|
|
139
140
|
} from "./chunk-ZVVMGPBJ.js";
|
|
140
141
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
142
143
|
import { randomUUID } from "node:crypto";
|
|
143
144
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
145
146
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
146
147
|
let held;
|
|
147
148
|
return {
|
|
@@ -160,7 +161,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
160
161
|
};
|
|
161
162
|
}, "agentLog");
|
|
162
163
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
164
165
|
var LISTED = 100;
|
|
165
166
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
166
167
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -198,7 +199,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
198
199
|
});
|
|
199
200
|
}, "registerResources");
|
|
200
201
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
202
203
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
203
204
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
204
205
|
var MessengerSession = class {
|
|
@@ -273,7 +274,7 @@ var MessengerSession = class {
|
|
|
273
274
|
}
|
|
274
275
|
};
|
|
275
276
|
|
|
276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
277
278
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
278
279
|
const _command = messenger.app.command;
|
|
279
280
|
return {
|
|
@@ -327,7 +328,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
327
328
|
};
|
|
328
329
|
}, "attachmentsTools");
|
|
329
330
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
331
332
|
var PHOTO_LIMIT = 512 * 1024;
|
|
332
333
|
var IMAGE_TYPES = [
|
|
333
334
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -381,7 +382,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
381
382
|
return new Uint8Array(Buffer.concat(chunks));
|
|
382
383
|
}, "readUpTo");
|
|
383
384
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
385
386
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
386
387
|
stats_charts: tool({
|
|
387
388
|
title: "A chart from a chat's statistics",
|
|
@@ -418,14 +419,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
418
419
|
})
|
|
419
420
|
}), "statsTools");
|
|
420
421
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
422
423
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
423
424
|
...messagesPhotoTools(messenger),
|
|
424
425
|
...attachmentsTools(messenger),
|
|
425
426
|
...statsTools(messenger)
|
|
426
427
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
427
428
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
429
430
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
430
431
|
"streams",
|
|
431
432
|
"stdin",
|
|
@@ -495,7 +496,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
495
496
|
readOnly: readOnlyLockOf(app, context.env) !== void 0,
|
|
496
497
|
keyOf,
|
|
497
498
|
authority,
|
|
498
|
-
fetchOnly:
|
|
499
|
+
fetchOnly: readsOverMcpAt(root),
|
|
499
500
|
offline: true,
|
|
500
501
|
stdin
|
|
501
502
|
}).map((one) => "sync_first" in one.input.entries && !syncAllowed(one.path) ? {
|
|
@@ -543,10 +544,10 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
543
544
|
});
|
|
544
545
|
const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
|
|
545
546
|
const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
|
|
546
|
-
const audit = /* @__PURE__ */ __name(async (call) => {
|
|
547
|
+
const audit = /* @__PURE__ */ __name(async (call, caller) => {
|
|
547
548
|
if (!recalledAccount(app, provider, settings.profile, context.env))
|
|
548
549
|
return;
|
|
549
|
-
await log.record({ actor: { bot: `${app.command}-mcp
|
|
550
|
+
await log.record({ actor: { bot: callingAgent(`${app.command}-mcp`, caller) }, ...call });
|
|
550
551
|
}, "audit");
|
|
551
552
|
const targets = judgedTargets(root);
|
|
552
553
|
const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
|
|
@@ -618,7 +619,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
618
619
|
...outcomeOf(result),
|
|
619
620
|
startedAt,
|
|
620
621
|
finishedAt: Date.now()
|
|
621
|
-
}).catch(() => void 0);
|
|
622
|
+
}, caller).catch(() => void 0);
|
|
622
623
|
return result;
|
|
623
624
|
}, "run")
|
|
624
625
|
}), "asCommand");
|
|
@@ -749,7 +750,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
749
750
|
}, "serveOverStdio");
|
|
750
751
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
751
752
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
752
|
-
const { serveOverHttp } = await import("./serve-
|
|
753
|
+
const { serveOverHttp } = await import("./serve-YYOOLIBS.js");
|
|
753
754
|
const appName = messenger.app.command;
|
|
754
755
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
755
756
|
const listening = await serveOverHttp(build, {
|