@wirecat/mail-cli 0.9.0 → 0.11.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/CHANGELOG.md +50 -0
- package/README.md +4 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-X6ROLLMF.js → all-profiles-OJPRIFKU.js} +9 -9
- package/dist/bundle/{anthropic-MPARKCMJ.js → anthropic-3AXHD4WH.js} +6 -6
- package/dist/bundle/{app-server-JQ5XCXWT.js → app-server-V4KHCUGE.js} +45 -46
- package/dist/bundle/{bun-H7LT5433.js → bun-ISYNUTQJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGK2BHAN.js → bun-sqlite-FH3D4AXL.js} +5 -5
- package/dist/bundle/{chunk-IYC3IHEZ.js → chunk-2TTCKOQ7.js} +2 -2
- package/dist/bundle/{chunk-5NYUCY5W.js → chunk-35Y3INBK.js} +2 -2
- package/dist/bundle/{chunk-UHBCL66Y.js → chunk-44LVUMS2.js} +1 -1
- package/dist/bundle/{chunk-U6BDAY55.js → chunk-4D52FA34.js} +1 -1
- package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
- package/dist/bundle/{chunk-6FBBDIX6.js → chunk-4GPPRLIG.js} +7 -42
- package/dist/bundle/{chunk-BNPCRWZ6.js → chunk-5TACUBRJ.js} +8 -8
- package/dist/bundle/{chunk-PC3AFEEA.js → chunk-6LNRNQHJ.js} +4 -4
- package/dist/bundle/{chunk-3LMWAO6A.js → chunk-6QNPJSRM.js} +6 -6
- package/dist/bundle/{chunk-PXQ7A5HQ.js → chunk-6UT3MXOB.js} +3 -3
- package/dist/bundle/{chunk-SEL7SJCM.js → chunk-AJ4JS2ZR.js} +36 -11
- package/dist/bundle/{chunk-RGM66WZ3.js → chunk-BYQ3Z6UL.js} +3 -3
- package/dist/bundle/{chunk-FEA5E7WQ.js → chunk-DN54W657.js} +2 -2
- package/dist/bundle/{chunk-J4MY3QIN.js → chunk-F3QDSQ7V.js} +34 -28
- package/dist/bundle/{chunk-YXQIZORE.js → chunk-FYMQPAE5.js} +4 -4
- package/dist/bundle/{chunk-2FDROA4Q.js → chunk-G2WDY5XB.js} +2 -2
- package/dist/bundle/{chunk-KWHFDVAF.js → chunk-GAIVTJ3E.js} +121 -32
- package/dist/bundle/{chunk-INVEYTAL.js → chunk-GFCNSU3B.js} +48 -48
- package/dist/bundle/{chunk-SYFBRZ5F.js → chunk-GUFWLTOW.js} +2 -2
- package/dist/bundle/{chunk-YLSV3WOO.js → chunk-GYNHU56E.js} +4 -4
- package/dist/bundle/{chunk-CHK3V7FG.js → chunk-HVVLSCFB.js} +1 -1
- package/dist/bundle/{chunk-4EFKQXA5.js → chunk-IG2WXKIT.js} +8 -8
- package/dist/bundle/{chunk-3Y7H3CXI.js → chunk-IS6KAUSG.js} +2 -5
- package/dist/bundle/{chunk-24MHYGNE.js → chunk-IWHXM2S7.js} +1620 -671
- package/dist/bundle/{chunk-TVZFDVZP.js → chunk-IXYKM7OJ.js} +13 -13
- package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
- package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
- package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
- package/dist/bundle/{chunk-25N52S7U.js → chunk-K2F7YMMM.js} +6 -6
- package/dist/bundle/{chunk-OZGDPG6I.js → chunk-KJP2B65C.js} +30 -30
- package/dist/bundle/{chunk-EUJTQY43.js → chunk-KVN4RY7E.js} +52 -53
- package/dist/bundle/{chunk-JZMPDFM4.js → chunk-L3PVAY3M.js} +2 -2
- package/dist/bundle/{chunk-64FN5JK6.js → chunk-LIQ5LICB.js} +3 -3
- package/dist/bundle/{chunk-DQHAXX33.js → chunk-LXHLQ6RK.js} +7 -7
- package/dist/bundle/{chunk-HZ42NO25.js → chunk-MDIRW3AT.js} +2 -2
- package/dist/bundle/{chunk-K3RWO7LR.js → chunk-N6P55LDU.js} +84 -8
- package/dist/bundle/{chunk-PTDJXPXG.js → chunk-NBQQ2ZTF.js} +19 -14
- package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
- package/dist/bundle/{chunk-VOGSDGVL.js → chunk-OHC4GVWV.js} +2 -2
- package/dist/bundle/{chunk-QO4K6R7K.js → chunk-PLPSFJO6.js} +6 -6
- package/dist/bundle/{chunk-3W6VSSQQ.js → chunk-PSXAC6OO.js} +1 -1
- package/dist/bundle/{chunk-4MIC7S7B.js → chunk-QB54TE52.js} +1 -1
- package/dist/bundle/{chunk-QXXBDW6N.js → chunk-QPQSMJBW.js} +10 -10
- package/dist/bundle/{chunk-SUB4DRMA.js → chunk-S64N24ON.js} +3 -3
- package/dist/bundle/{chunk-M55XFZMG.js → chunk-SW5NVASW.js} +9 -9
- package/dist/bundle/{chunk-N6YA4OQI.js → chunk-SYBMOE6F.js} +865 -838
- package/dist/bundle/{chunk-Z3TZTOR2.js → chunk-T3AGR4TI.js} +4840 -894
- package/dist/bundle/{chunk-JYVZDJNO.js → chunk-TTKNBUMT.js} +45 -5
- package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
- package/dist/bundle/{chunk-FUDHVV4R.js → chunk-UDJIC6YL.js} +67 -30
- package/dist/bundle/{chunk-HWLAV2HM.js → chunk-V6K2GX2Y.js} +17 -17
- package/dist/bundle/{chunk-65SVO3T7.js → chunk-VEXXVLBM.js} +3 -3
- package/dist/bundle/{chunk-NTWORG4T.js → chunk-WL7CYT7O.js} +1 -1
- package/dist/bundle/{chunk-DL32PWLR.js → chunk-X37KLD23.js} +14 -14
- package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
- package/dist/bundle/{chunk-GPCKNZIA.js → chunk-YDUES6ET.js} +4 -4
- package/dist/bundle/{chunk-TKFQ3GNY.js → chunk-YRZ23RCS.js} +164 -59
- package/dist/bundle/command-contract-TW44FY47.js +33 -0
- package/dist/bundle/{decode-ZATANRER.js → decode-FM4C2WWG.js} +5 -5
- package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
- package/dist/bundle/{dist-JN22LNLZ.js → dist-7LNVI7VB.js} +17 -13
- package/dist/bundle/{echarts-WKTVUY3O.js → echarts-5C2A72XM.js} +2 -2
- package/dist/bundle/{embed-AVKPYK4V.js → embed-N56P6YVY.js} +6 -6
- package/dist/bundle/{embedder-PSV2E5TR.js → embedder-QLYKFLOL.js} +9 -9
- package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
- package/dist/bundle/{first-run-YN4SF5RZ.js → first-run-VMF4PJ7Q.js} +11 -11
- package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
- package/dist/bundle/{instructions-W5SJW23S.js → instructions-QA5FHDOJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
- package/dist/bundle/{node-BHBFRH6H.js → node-OXJZWUYZ.js} +2 -2
- package/dist/bundle/{node-sqlite-7FHC3W5U.js → node-sqlite-7GCEI67B.js} +5 -5
- package/dist/bundle/{oauth-ORPM6FLL.js → oauth-VTPIYBTP.js} +7 -7
- package/dist/bundle/{open-AY5KLPWO.js → open-7XX3YF2X.js} +4 -4
- package/dist/bundle/{openai-U7VALRI7.js → openai-D3KRCXSY.js} +14 -14
- package/dist/bundle/{process-7AWARSC5.js → process-KFI7SXQD.js} +1 -1
- package/dist/bundle/{program-2W4J47LM.js → program-INCGQV4G.js} +1334 -857
- package/dist/bundle/{prompt-STNX6JL7.js → prompt-TBZT3APW.js} +5 -5
- package/dist/bundle/{recognize-2XWWTN6Y.js → recognize-WQSE5ZPL.js} +4 -4
- package/dist/bundle/{remote-OIC32DKQ.js → remote-J5HHRNVQ.js} +7 -7
- package/dist/bundle/{rerank-IFTSO576.js → rerank-DP2Y3WDT.js} +7 -7
- package/dist/bundle/{serve-P2D2AJAU.js → serve-VXPOQDQO.js} +9 -9
- package/dist/bundle/{server-DFEJBMXO.js → server-OSBNGA2F.js} +37 -38
- package/dist/bundle/server-XHWSCXVX.js +62 -0
- package/dist/bundle/{sqlite-runtime-DD4Y35DQ.js → sqlite-runtime-XY32WOIT.js} +5 -5
- package/dist/bundle/{state-XUSQMIKJ.js → state-KPOPMR6O.js} +6 -6
- package/dist/bundle/{store-T3PKOLER.js → store-FWRGNGP3.js} +25 -17
- package/dist/bundle/{store-EQC5DKSY.js → store-UBI2YCRC.js} +13 -13
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +3 -3
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +6 -4
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts +7 -0
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +8 -4
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +36 -20
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +7 -2
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +13 -7
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +92 -87
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +26 -5
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts +0 -3
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -33
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -1
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -3
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +3 -3
- package/skills/mail-cli/SKILL.md +1 -0
- package/dist/bundle/chunk-EVG7MOAH.js +0 -3604
- package/dist/bundle/command-contract-T3H5CAX3.js +0 -34
- package/dist/bundle/first-screen-IJJZJP6Q.js +0 -32
- package/dist/bundle/server-6D7W5Q4A.js +0 -63
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +0 -52
- /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6LNRNQHJ.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4DPICEPQ.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6QNPJSRM.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -5,16 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JAWJZTFL.js";
|
|
9
|
+
import {
|
|
10
|
+
COMPACT_FLAG
|
|
11
|
+
} from "./chunk-NSDOYHIS.js";
|
|
9
12
|
import {
|
|
10
13
|
CliError,
|
|
11
14
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4DPICEPQ.js";
|
|
13
16
|
import {
|
|
14
17
|
__name
|
|
15
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
19
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
18
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
19
22
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
20
23
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -409,7 +412,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
409
412
|
}
|
|
410
413
|
}, "assertRetentionEvidenceRead");
|
|
411
414
|
|
|
412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
413
416
|
var named = /* @__PURE__ */ __name((work) => {
|
|
414
417
|
try {
|
|
415
418
|
return work();
|
|
@@ -436,13 +439,19 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
436
439
|
return projectFields(value, fields);
|
|
437
440
|
}), "projectFields");
|
|
438
441
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
440
443
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
441
444
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
442
|
-
var
|
|
445
|
+
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
446
|
+
var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isRecord");
|
|
447
|
+
var isSnakeHit = /* @__PURE__ */ __name((value) => isRecord(value) && typeof value.ref === "string" && typeof value.excerpt === "string", "isSnakeHit");
|
|
448
|
+
var isHit = /* @__PURE__ */ __name((value) => isSnakeHit(value) || isRecord(value) && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
449
|
+
var picked = /* @__PURE__ */ __name((hit, keys) => Object.fromEntries(keys.flatMap((key) => hit[key] === void 0 || hit[key] === null ? [] : [[key, hit[key]]])), "picked");
|
|
443
450
|
var shaped = /* @__PURE__ */ __name((hit, detail) => {
|
|
451
|
+
if (isSnakeHit(hit))
|
|
452
|
+
return detail === "brief" ? picked(hit, SNAKE_BRIEF) : hit;
|
|
444
453
|
if (detail === "brief")
|
|
445
|
-
return
|
|
454
|
+
return picked(hit, BRIEF);
|
|
446
455
|
const { text, providerMetadata, ...rest } = hit;
|
|
447
456
|
for (const key of RARELY_SET)
|
|
448
457
|
if (rest[key] === null)
|
|
@@ -466,10 +475,20 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
466
475
|
return value;
|
|
467
476
|
}, "atDetail");
|
|
468
477
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
470
|
-
var
|
|
478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/output.js
|
|
479
|
+
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
480
|
+
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
481
|
+
if (other)
|
|
482
|
+
throw new CliError("validation_error", `${COMPACT_FLAG} and ${other} ask for different output \u2014 pick one`, {
|
|
483
|
+
reason: "output.conflict",
|
|
484
|
+
param: COMPACT_FLAG
|
|
485
|
+
});
|
|
486
|
+
}, "refuseCompact");
|
|
487
|
+
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture, compact } = {}) => {
|
|
488
|
+
if (compact)
|
|
489
|
+
refuseCompact({ json, jsonl, fields, hitDetail });
|
|
471
490
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
472
|
-
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
491
|
+
const format = jsonl ? "jsonl" : json || compact || !interactive ? "json" : "pretty";
|
|
473
492
|
const painted = format === "pretty" && (color ?? (env.NO_COLOR === void 0 && env.TERM !== "dumb" && !env.CI));
|
|
474
493
|
const printing = createRenderer({ format, color: painted, streams });
|
|
475
494
|
const rendered = capture ? { ...printing, result: capture, stream: /* @__PURE__ */ __name((items) => capture([...items]), "stream") } : printing;
|
|
@@ -486,7 +505,13 @@ var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = proc
|
|
|
486
505
|
result: /* @__PURE__ */ __name((value) => created.result(projectFields2(value, paths)), "result"),
|
|
487
506
|
stream: /* @__PURE__ */ __name((items) => created.stream([...items].map((item) => projectFields2(item, paths))), "stream")
|
|
488
507
|
} : created;
|
|
489
|
-
return {
|
|
508
|
+
return {
|
|
509
|
+
format,
|
|
510
|
+
color: painted,
|
|
511
|
+
streams,
|
|
512
|
+
renderer: quiet ? silence(renderer) : renderer,
|
|
513
|
+
...compact ? { compact: true, full: hitDetail === "full" } : {}
|
|
514
|
+
};
|
|
490
515
|
}, "resolveOutput");
|
|
491
516
|
var MULTI_LINE = /* @__PURE__ */ new Set(["text", "description"]);
|
|
492
517
|
var oneLineFields = /* @__PURE__ */ __name((renderer) => ({
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-44LVUMS2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JAWJZTFL.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GYNHU56E.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NBQQ2ZTF.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TTKNBUMT.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G2WDY5XB.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
@@ -20,15 +20,13 @@ import {
|
|
|
20
20
|
refuseLacking,
|
|
21
21
|
servicesFor,
|
|
22
22
|
storeModeDeps
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SYBMOE6F.js";
|
|
24
24
|
import {
|
|
25
25
|
MAX_BUFFERED_INPUT
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
ENTITIES
|
|
29
|
-
} from "./chunk-EVG7MOAH.js";
|
|
26
|
+
} from "./chunk-L3PVAY3M.js";
|
|
30
27
|
import {
|
|
31
28
|
DEFAULT_OUTPUT_BYTES,
|
|
29
|
+
ENTITIES,
|
|
32
30
|
LOCAL_WRITE,
|
|
33
31
|
REMOTE_WRITE,
|
|
34
32
|
answerSchema,
|
|
@@ -44,28 +42,29 @@ import {
|
|
|
44
42
|
sealed,
|
|
45
43
|
startRecording,
|
|
46
44
|
traceOf
|
|
47
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-T3AGR4TI.js";
|
|
48
46
|
import {
|
|
49
47
|
authorityAllowed,
|
|
50
48
|
botApiAllowed,
|
|
51
49
|
keyForCommand,
|
|
52
50
|
levelFor,
|
|
53
51
|
readKeysForCommand
|
|
54
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AJ4JS2ZR.js";
|
|
55
53
|
import {
|
|
56
54
|
currentCaller,
|
|
57
55
|
keepsSuccess,
|
|
58
56
|
runContextOf,
|
|
59
57
|
withCaller
|
|
60
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-SW5NVASW.js";
|
|
61
59
|
import {
|
|
62
60
|
queryDescription
|
|
63
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KVN4RY7E.js";
|
|
64
62
|
import {
|
|
65
63
|
captureStreams,
|
|
66
64
|
traceIdOf
|
|
67
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-JAWJZTFL.js";
|
|
68
66
|
import {
|
|
67
|
+
COMPACT_FLAG,
|
|
69
68
|
SNAKE_CASE,
|
|
70
69
|
array,
|
|
71
70
|
boolean,
|
|
@@ -102,19 +101,19 @@ import {
|
|
|
102
101
|
unknown,
|
|
103
102
|
word,
|
|
104
103
|
writes
|
|
105
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-NSDOYHIS.js";
|
|
106
105
|
import {
|
|
107
106
|
CliError,
|
|
108
107
|
errorCodes
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-4DPICEPQ.js";
|
|
110
109
|
import {
|
|
111
110
|
__name
|
|
112
111
|
} from "./chunk-ZVVMGPBJ.js";
|
|
113
112
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
115
114
|
import { Readable } from "node:stream";
|
|
116
115
|
|
|
117
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
118
117
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
119
118
|
var lintRuleSchema = strictObject({
|
|
120
119
|
id: word,
|
|
@@ -241,7 +240,7 @@ var overridesSchema = array(strictObject({
|
|
|
241
240
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
242
241
|
}));
|
|
243
242
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
243
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
245
244
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
246
245
|
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");
|
|
247
246
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -350,7 +349,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
350
349
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
351
350
|
]);
|
|
352
351
|
|
|
353
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
352
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
354
353
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
355
354
|
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");
|
|
356
355
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -366,7 +365,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
366
365
|
}
|
|
367
366
|
]);
|
|
368
367
|
|
|
369
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
368
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
370
369
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
371
370
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
372
371
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -388,7 +387,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
388
387
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
389
388
|
]);
|
|
390
389
|
|
|
391
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
392
391
|
var CALENDAR_FLAGS = [
|
|
393
392
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
394
393
|
{
|
|
@@ -462,7 +461,7 @@ var CALENDAR_FLAGS = [
|
|
|
462
461
|
}
|
|
463
462
|
];
|
|
464
463
|
|
|
465
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
464
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
466
465
|
var HOW_FLAGS = [
|
|
467
466
|
{
|
|
468
467
|
name: "--limit",
|
|
@@ -549,6 +548,12 @@ var HOW_FLAGS = [
|
|
|
549
548
|
type: "switch",
|
|
550
549
|
meaning: "each item as its reference, title, time and excerpt only"
|
|
551
550
|
},
|
|
551
|
+
{
|
|
552
|
+
name: COMPACT_FLAG,
|
|
553
|
+
role: "output",
|
|
554
|
+
type: "switch",
|
|
555
|
+
meaning: "one line per item, built from the same answer as --json, with its paging and next steps as # lines"
|
|
556
|
+
},
|
|
552
557
|
{
|
|
553
558
|
name: "--chart-kind",
|
|
554
559
|
value: "<messages|active|membership>",
|
|
@@ -1449,7 +1454,7 @@ var HOW_FLAGS = [
|
|
|
1449
1454
|
}
|
|
1450
1455
|
];
|
|
1451
1456
|
|
|
1452
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1457
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
1453
1458
|
var MAIL_FLAGS = [
|
|
1454
1459
|
{
|
|
1455
1460
|
name: "--cc",
|
|
@@ -1473,7 +1478,7 @@ var MAIL_FLAGS = [
|
|
|
1473
1478
|
}
|
|
1474
1479
|
];
|
|
1475
1480
|
|
|
1476
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1481
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
1477
1482
|
var WHAT_FLAGS = [
|
|
1478
1483
|
{
|
|
1479
1484
|
name: "--analysis-provider",
|
|
@@ -2471,7 +2476,7 @@ var WHAT_FLAGS = [
|
|
|
2471
2476
|
}
|
|
2472
2477
|
];
|
|
2473
2478
|
|
|
2474
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2479
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.74.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
|
|
2475
2480
|
var FLAG_TYPES = [
|
|
2476
2481
|
"switch",
|
|
2477
2482
|
"count",
|
|
@@ -2627,6 +2632,7 @@ var verbs = [
|
|
|
2627
2632
|
["vote", "answer a poll"],
|
|
2628
2633
|
["answer", "reply to a button someone pressed under a bot's message"],
|
|
2629
2634
|
["respond", "answer an invitation: accept, tentatively accept or decline it"],
|
|
2635
|
+
["remind", "tell the owner once about what starts soon: print it, or run the owner's own program for it"],
|
|
2630
2636
|
["press", "press a button under a bot's message; the bot sees who pressed it"],
|
|
2631
2637
|
["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
|
|
2632
2638
|
["watch", "follow new events as they come, and keep them"],
|
|
@@ -2831,7 +2837,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2831
2837
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2832
2838
|
});
|
|
2833
2839
|
|
|
2834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2835
2841
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2836
2842
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2837
2843
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3054,7 +3060,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3054
3060
|
}
|
|
3055
3061
|
}, "runCommandForAgent");
|
|
3056
3062
|
|
|
3057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3058
3064
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3059
3065
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3060
3066
|
var message = pipe(
|
|
@@ -3313,7 +3319,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3313
3319
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3314
3320
|
}, "failed");
|
|
3315
3321
|
|
|
3316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3317
3323
|
import { randomUUID } from "node:crypto";
|
|
3318
3324
|
var MATCHES = 8;
|
|
3319
3325
|
var ANSWER = answerSchema();
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4DPICEPQ.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.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SW5NVASW.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|