@wirecat/tg-cli 0.133.0 → 0.135.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/README.md +2 -3
- package/contracts/wirecat.json +82 -2
- package/dist/bin/tg.js +2 -2
- package/dist/bot/generated/types.d.ts +188 -0
- package/dist/bot/generated/types.d.ts.map +1 -1
- package/dist/bundle/{adapter-GSGX3WBH.js → adapter-OHJF6PB5.js} +104 -69
- package/dist/bundle/agent-QPF2KU4I.js +37 -0
- package/dist/bundle/{all-profiles-VOCJ55YH.js → all-profiles-LQ73BIFB.js} +62 -20
- package/dist/bundle/{anthropic-J6CTLU3W.js → anthropic-YYBMT2HD.js} +5 -5
- package/dist/bundle/{app-server-GVFGA4TJ.js → app-server-HV4C4CSA.js} +72 -62
- package/dist/bundle/{bot-api-LWONPIGK.js → bot-api-URQXWMVR.js} +73 -92
- package/dist/bundle/{bot-history-XOW7Y2GC.js → bot-history-FRLCHPDQ.js} +23 -22
- package/dist/bundle/{bun-436CH6CP.js → bun-J3ML43BO.js} +2 -2
- package/dist/bundle/{bun-sqlite-ZLB5RK5Q.js → bun-sqlite-ZNB2B2DL.js} +6 -6
- package/dist/bundle/{chunk-UGS57TT5.js → chunk-24G3SEXH.js} +2 -2
- package/dist/bundle/chunk-27F6QBPY.js +555 -0
- package/dist/bundle/{chunk-6VCSOQFL.js → chunk-2OFCIF2W.js} +2 -2
- package/dist/bundle/{chunk-VGN5YXYI.js → chunk-2U7XA4IH.js} +2 -100
- package/dist/bundle/{chunk-LBZEZO32.js → chunk-4CLSIEWN.js} +65 -43
- package/dist/bundle/chunk-5CEKH6R6.js +340 -0
- package/dist/bundle/{chunk-SMI2EUH4.js → chunk-5WEEK65F.js} +1 -1
- package/dist/bundle/{chunk-OX73ERZW.js → chunk-6VWVYPH2.js} +3 -4
- package/dist/bundle/{chunk-5HKPQPD4.js → chunk-6WS474NQ.js} +6 -6
- package/dist/bundle/{chunk-IYAXLLGR.js → chunk-7GWOGEWJ.js} +6 -6
- package/dist/bundle/{chunk-TPD37ECC.js → chunk-AMRMU23L.js} +16 -3
- package/dist/bundle/{chunk-ZHO3TPHM.js → chunk-B2UXNYCD.js} +30 -15
- package/dist/bundle/{chunk-YY6FGKGD.js → chunk-B4ZMFU5I.js} +2 -2
- package/dist/bundle/{chunk-54WLIPIQ.js → chunk-BFKPMG5T.js} +1 -1
- package/dist/bundle/{chunk-KHUXDSXN.js → chunk-BQSODAU3.js} +1 -1
- package/dist/bundle/{chunk-N3JUHGKM.js → chunk-BXUMZWMN.js} +3786 -3364
- package/dist/bundle/{chunk-VTQMR3XG.js → chunk-E2VIO7RY.js} +3 -3
- package/dist/bundle/{chunk-UZ63ORMY.js → chunk-F5FOS64B.js} +4 -4
- package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/chunk-GUERS64O.js +108 -0
- package/dist/bundle/{chunk-5LRTYBZW.js → chunk-HILS2UL7.js} +12 -12
- package/dist/bundle/{chunk-6S77EKZU.js → chunk-IOJOLV25.js} +17 -15
- package/dist/bundle/{chunk-IBCXEVNY.js → chunk-JBS4VPAX.js} +3 -3
- package/dist/bundle/{chunk-5L44DSHV.js → chunk-K5QGBYDL.js} +4 -4
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/chunk-L2ZQDTDU.js +7 -0
- package/dist/bundle/{chunk-HB5DP6L5.js → chunk-LFPUW7DR.js} +18 -18
- package/dist/bundle/{chunk-QWO7L4UH.js → chunk-LGYATGQI.js} +7 -7
- package/dist/bundle/{chunk-IH4Z3KZU.js → chunk-MA27675E.js} +2 -2
- package/dist/bundle/{chunk-6H2NW6HK.js → chunk-MDI7554C.js} +3 -3
- package/dist/bundle/{chunk-KVFUH5IT.js → chunk-MMZ4QAKJ.js} +1 -1
- package/dist/bundle/{chunk-XOX4BX5A.js → chunk-MOPBEBVS.js} +4 -4
- package/dist/bundle/{chunk-XKOMP3HV.js → chunk-MPRXUTIK.js} +6 -6
- package/dist/bundle/{chunk-QYLZD4DS.js → chunk-N7F5KT6U.js} +1 -1
- package/dist/bundle/{chunk-KUA24HWG.js → chunk-NBP6LXSY.js} +2 -2
- package/dist/bundle/{chunk-UQYL6TJ7.js → chunk-NP46ZKQW.js} +4 -4
- package/dist/bundle/{chunk-QGWISM4W.js → chunk-NRSJXUUO.js} +34 -28
- package/dist/bundle/{chunk-7NYP4RBO.js → chunk-NVWZ7S3I.js} +2294 -1221
- package/dist/bundle/chunk-OBIMTRA7.js +80 -0
- package/dist/bundle/{chunk-VWJTYAIQ.js → chunk-OQJURSRL.js} +17 -17
- package/dist/bundle/chunk-OU3WN4YH.js +50 -0
- package/dist/bundle/{chunk-VCAOH45X.js → chunk-PBK2ECXT.js} +1 -1
- package/dist/bundle/{chunk-TTDZVWDU.js → chunk-PHAFT2BO.js} +1 -1
- package/dist/bundle/{chunk-NTWXL2QV.js → chunk-PKIGE4NE.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-NAXOT35J.js → chunk-QBRQLOZA.js} +3 -3
- package/dist/bundle/{chunk-RABUG4KA.js → chunk-QD4MTOI7.js} +511 -472
- package/dist/bundle/{chunk-LOS4D6ZB.js → chunk-QHQ52UMF.js} +159 -569
- package/dist/bundle/{chunk-6CHIGUCY.js → chunk-R2G3MWEF.js} +31 -20
- package/dist/bundle/{chunk-THYGLTRB.js → chunk-RCEP5OXD.js} +7 -7
- package/dist/bundle/chunk-RHJ2VGHV.js +353 -0
- package/dist/bundle/{chunk-QVGEL66U.js → chunk-RXBKVNOK.js} +53 -11
- package/dist/bundle/{chunk-ZYAHZKYF.js → chunk-RZ7POTFA.js} +3 -3
- package/dist/bundle/{chunk-KEN4B57V.js → chunk-S7PIM4GG.js} +2 -2
- package/dist/bundle/{chunk-BXVB42KJ.js → chunk-SIDGH56R.js} +2 -2
- package/dist/bundle/{chunk-XDQU5HBO.js → chunk-SRMELB6Q.js} +12 -12
- package/dist/bundle/{chunk-SMU6NA7F.js → chunk-SVPNU7PD.js} +4 -4
- package/dist/bundle/{chunk-JPNVEPS4.js → chunk-TB2MG6PE.js} +2351 -2028
- package/dist/bundle/{chunk-JGMXBAGH.js → chunk-UN5TH2CG.js} +156 -434
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-7NF3V5L2.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-LQQSDGQ6.js → chunk-VJEMCJPL.js} +56 -46
- package/dist/bundle/{chunk-UIAKLELF.js → chunk-VK2NDTBS.js} +94 -64
- package/dist/bundle/{chunk-UKBK2VWZ.js → chunk-W6A2OZ3C.js} +232 -176
- package/dist/bundle/{chunk-IPPCQ7IK.js → chunk-WDI6LA4X.js} +2 -2
- package/dist/bundle/{chunk-N7QREPZW.js → chunk-WTGRQGQL.js} +16 -9
- package/dist/bundle/{chunk-57KJ3TRS.js → chunk-WUCTF2XE.js} +9 -9
- package/dist/bundle/{chunk-JKSD43L7.js → chunk-WZCRCCOZ.js} +6 -6
- package/dist/bundle/{chunk-H7ML7X3G.js → chunk-XB6O445X.js} +144 -10
- package/dist/bundle/{chunk-O6JUVATT.js → chunk-XKFES4EM.js} +35 -12
- package/dist/bundle/chunk-YBUX6EAK.js +388 -0
- package/dist/bundle/{chunk-WCYKVX3B.js → chunk-YMRL7MYS.js} +7 -7
- package/dist/bundle/{chunk-M6QOM6SL.js → chunk-Z6M6NZUX.js} +1 -1
- package/dist/bundle/chunk-ZCDRXKCR.js +727 -0
- package/dist/bundle/{chunk-6A44ZZFC.js → chunk-ZJ3S4S6H.js} +43 -64
- package/dist/bundle/{chunk-TCI7I6YF.js → chunk-ZL7TJXFL.js} +11 -25
- package/dist/bundle/{chunk-2KQDJHF3.js → chunk-ZMBVZWUW.js} +29 -1
- package/dist/bundle/{chunk-OWY52JBO.js → chunk-ZMTASSIB.js} +7 -7
- package/dist/bundle/{chunk-D2SJLZSH.js → chunk-ZQ5ERQHO.js} +2 -2
- package/dist/bundle/{chunk-CEJYNB3I.js → chunk-ZWVDXVG3.js} +4 -4
- package/dist/bundle/command-contract-K4MU32K6.js +37 -0
- package/dist/bundle/{command-server-entry-AE27QXTE.js → command-server-entry-XP6BVJIK.js} +27 -27
- package/dist/bundle/{decode-RQPPZ72F.js → decode-TUB45ALX.js} +5 -5
- package/dist/bundle/{dispatch-KQO2MCSH.js → dispatch-ICPUKMEG.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FZRIACN4.js → echarts-HJ7D7XTM.js} +2 -2
- package/dist/bundle/{embed-TOSWWMDL.js → embed-4QDN36YF.js} +6 -6
- package/dist/bundle/{embedder-JHIQSBGD.js → embedder-Q7ID2LEG.js} +9 -9
- package/dist/bundle/{entry-DU4KRXTG.js → entry-Z6VRZP7F.js} +9 -9
- package/dist/bundle/{failure-3YC3YGYO.js → failure-PEPNEEK7.js} +2 -2
- package/dist/bundle/{first-run-DQQT4FID.js → first-run-GKBEHAAX.js} +12 -12
- package/dist/bundle/first-screen-IA3ONZ75.js +37 -0
- package/dist/bundle/{instructions-WI64CJQ6.js → instructions-26ZXYYMY.js} +1 -1
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-KUV2HP52.js +23 -0
- package/dist/bundle/{meeting-model-XNRSREIK.js → meeting-model-JB7X4CA3.js} +11 -11
- package/dist/bundle/{meeting-semantic-OOSCHQMB.js → meeting-semantic-MQNUVG33.js} +6 -6
- package/dist/bundle/{node-JLKDNVKV.js → node-RIANITAT.js} +2 -2
- package/dist/bundle/{node-sqlite-YOGH26O2.js → node-sqlite-I2P26Z3S.js} +7 -7
- package/dist/bundle/{oauth-FOMXM5HP.js → oauth-GFMJL2ZZ.js} +8 -8
- package/dist/bundle/{open-SM2UXUKM.js → open-CWVYEFNN.js} +5 -5
- package/dist/bundle/{openai-J2H7S6ZF.js → openai-PQLK7YTJ.js} +15 -15
- package/dist/bundle/{process-HI7OZBOI.js → process-P4D4KFWE.js} +1 -1
- package/dist/bundle/{program-VY4HFU25.js → program-MF4QZJKH.js} +70 -64
- package/dist/bundle/{prompt-NUUVFMOF.js → prompt-JWIOYU53.js} +5 -5
- package/dist/bundle/{proxy-transport-AN4VMRRN.js → proxy-transport-DWY6ABVT.js} +5 -5
- package/dist/bundle/{recognize-MALJHPDI.js → recognize-IPJL4CQZ.js} +4 -4
- package/dist/bundle/{remote-QUDRSTS2.js → remote-DVY6F6YO.js} +9 -9
- package/dist/bundle/{rerank-2DSO3D3S.js → rerank-XSPWLBIO.js} +7 -7
- package/dist/bundle/{serve-NCJ52MY3.js → serve-AJAVEH2M.js} +15 -15
- package/dist/bundle/server-GGXUR5BZ.js +78 -0
- package/dist/bundle/{server-Y3M544AM.js → server-GII7NIKF.js} +65 -54
- package/dist/bundle/{sqlite-runtime-NJUSXVKK.js → sqlite-runtime-KFDYJTUO.js} +6 -6
- package/dist/bundle/{state-AVOWQVET.js → state-76OJSCQC.js} +6 -6
- package/dist/bundle/{store-MMIYOL4H.js → store-2KJS4YMH.js} +28 -17
- package/dist/bundle/{store-BZ5ICDRP.js → store-FBP2J23G.js} +20 -19
- package/dist/bundle/store-maintenance-command-NUWOUZ62.js +65 -0
- package/dist/bundle/surface-EGSHCISG.js +64 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/adapter.d.ts +9 -2
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +5 -6
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/messages.d.ts +12 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +40 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +7 -4
- package/skills/tg-cli/references/messages.md +5 -1
- package/skills/tg-cli/references/search.md +2 -0
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-TQIARAB4.js +0 -37
- package/dist/bundle/first-screen-7N4CTZSA.js +0 -37
- package/dist/bundle/meeting-combined-3RAOFQ7M.js +0 -23
- package/dist/bundle/server-CHGON5I2.js +0 -70
- package/dist/bundle/store-maintenance-command-VKZ4WHUB.js +0 -61
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GCUFGDKE.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -12,7 +12,13 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NRSJXUUO.js";
|
|
16
|
+
import {
|
|
17
|
+
skillResources
|
|
18
|
+
} from "./chunk-YBUX6EAK.js";
|
|
19
|
+
import {
|
|
20
|
+
instructions
|
|
21
|
+
} from "./chunk-BFKPMG5T.js";
|
|
16
22
|
import {
|
|
17
23
|
BinaryResource,
|
|
18
24
|
Picture,
|
|
@@ -27,60 +33,64 @@ import {
|
|
|
27
33
|
outcomeOf,
|
|
28
34
|
outputOf,
|
|
29
35
|
registerCommands,
|
|
30
|
-
runCommandForAgent,
|
|
31
36
|
surfaceCommands,
|
|
32
37
|
tierOf,
|
|
33
38
|
tool,
|
|
34
|
-
toolKey
|
|
35
|
-
|
|
36
|
-
} from "./chunk-LOS4D6ZB.js";
|
|
39
|
+
toolKey
|
|
40
|
+
} from "./chunk-27F6QBPY.js";
|
|
37
41
|
import {
|
|
38
|
-
agentJson
|
|
39
|
-
|
|
40
|
-
} from "./chunk-JGMXBAGH.js";
|
|
42
|
+
agentJson
|
|
43
|
+
} from "./chunk-UN5TH2CG.js";
|
|
41
44
|
import {
|
|
42
45
|
StdioServerTransport,
|
|
43
46
|
answeredWire,
|
|
44
|
-
callerOf,
|
|
45
|
-
callingAgent,
|
|
46
47
|
serveStdio
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
McpServer,
|
|
50
|
-
ResourceTemplate
|
|
51
|
-
} from "./chunk-5D4AEUVA.js";
|
|
48
|
+
} from "./chunk-2U7XA4IH.js";
|
|
52
49
|
import {
|
|
53
50
|
connectedFor
|
|
54
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-IOJOLV25.js";
|
|
52
|
+
import {
|
|
53
|
+
wholeList
|
|
54
|
+
} from "./chunk-RHJ2VGHV.js";
|
|
55
55
|
import {
|
|
56
|
-
capability,
|
|
57
|
-
dateWindow,
|
|
58
56
|
guardFor,
|
|
59
57
|
imageSize,
|
|
60
58
|
lackedNeed,
|
|
61
59
|
servicesFor,
|
|
62
|
-
storedDeps
|
|
63
|
-
|
|
64
|
-
} from "./chunk-N3JUHGKM.js";
|
|
60
|
+
storedDeps
|
|
61
|
+
} from "./chunk-BXUMZWMN.js";
|
|
65
62
|
import {
|
|
66
63
|
mcpHttpMarker
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-F5FOS64B.js";
|
|
68
65
|
import {
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
runCommandForAgent,
|
|
67
|
+
toolsFromCommands
|
|
68
|
+
} from "./chunk-QHQ52UMF.js";
|
|
69
|
+
import {
|
|
70
|
+
callerOf,
|
|
71
|
+
callingAgent
|
|
72
|
+
} from "./chunk-GUERS64O.js";
|
|
73
|
+
import {
|
|
74
|
+
capability,
|
|
75
|
+
dateWindow
|
|
76
|
+
} from "./chunk-ZCDRXKCR.js";
|
|
77
|
+
import {
|
|
78
|
+
McpServer,
|
|
79
|
+
ResourceTemplate
|
|
80
|
+
} from "./chunk-PL5P7UKW.js";
|
|
71
81
|
import {
|
|
72
82
|
warmEmbedders
|
|
73
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-ZJ3S4S6H.js";
|
|
74
84
|
import {
|
|
75
85
|
stdinFieldOf
|
|
76
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-BQSODAU3.js";
|
|
77
87
|
import {
|
|
78
88
|
openStore,
|
|
79
89
|
pdfPreviewLimits
|
|
80
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-NVWZ7S3I.js";
|
|
81
91
|
import {
|
|
82
92
|
findCommand
|
|
83
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-SVPNU7PD.js";
|
|
84
94
|
import {
|
|
85
95
|
DEFAULT_OUTPUT_BYTES,
|
|
86
96
|
changesAuthorityAt,
|
|
@@ -97,22 +107,22 @@ import {
|
|
|
97
107
|
rootOf2 as rootOf,
|
|
98
108
|
sealed,
|
|
99
109
|
snakeKeys
|
|
100
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
101
111
|
import {
|
|
102
112
|
withCaller
|
|
103
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-LGYATGQI.js";
|
|
104
114
|
import {
|
|
105
115
|
readOnlyLockOf
|
|
106
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-S7PIM4GG.js";
|
|
107
117
|
import {
|
|
108
118
|
typedCommand
|
|
109
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-4CLSIEWN.js";
|
|
110
120
|
import {
|
|
111
121
|
isCliFailure
|
|
112
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-RZ7POTFA.js";
|
|
113
123
|
import {
|
|
114
124
|
timezoneOf
|
|
115
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-QD4MTOI7.js";
|
|
116
126
|
import {
|
|
117
127
|
description,
|
|
118
128
|
errorObjectOf,
|
|
@@ -129,19 +139,19 @@ import {
|
|
|
129
139
|
regex,
|
|
130
140
|
strictObject,
|
|
131
141
|
string
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-RXBKVNOK.js";
|
|
133
143
|
import {
|
|
134
144
|
CliError,
|
|
135
145
|
visibleControls
|
|
136
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-GCUFGDKE.js";
|
|
137
147
|
import {
|
|
138
148
|
__name
|
|
139
149
|
} from "./chunk-ZVVMGPBJ.js";
|
|
140
150
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
142
152
|
import { randomUUID } from "node:crypto";
|
|
143
153
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
145
155
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
146
156
|
let held;
|
|
147
157
|
return {
|
|
@@ -160,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
160
170
|
};
|
|
161
171
|
}, "agentLog");
|
|
162
172
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
164
174
|
var LISTED = 100;
|
|
165
175
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
166
176
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -198,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
198
208
|
});
|
|
199
209
|
}, "registerResources");
|
|
200
210
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
202
212
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
203
213
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
204
214
|
var MessengerSession = class {
|
|
@@ -273,7 +283,7 @@ var MessengerSession = class {
|
|
|
273
283
|
}
|
|
274
284
|
};
|
|
275
285
|
|
|
276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
277
287
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
278
288
|
const _command = messenger.app.command;
|
|
279
289
|
return {
|
|
@@ -327,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
327
337
|
};
|
|
328
338
|
}, "attachmentsTools");
|
|
329
339
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
331
341
|
var PHOTO_LIMIT = 512 * 1024;
|
|
332
342
|
var IMAGE_TYPES = [
|
|
333
343
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -383,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
383
393
|
return new Uint8Array(Buffer.concat(chunks));
|
|
384
394
|
}, "readUpTo");
|
|
385
395
|
|
|
386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
387
397
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
388
398
|
stats_charts: tool({
|
|
389
399
|
title: "A chart from a chat's statistics",
|
|
@@ -420,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
420
430
|
})
|
|
421
431
|
}), "statsTools");
|
|
422
432
|
|
|
423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
424
434
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
425
435
|
...messagesPhotoTools(messenger),
|
|
426
436
|
...attachmentsTools(messenger),
|
|
427
437
|
...statsTools(messenger)
|
|
428
438
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
429
439
|
|
|
430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
431
441
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
432
442
|
"streams",
|
|
433
443
|
"stdin",
|
|
@@ -743,7 +753,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
743
753
|
}, "serveOverStdio");
|
|
744
754
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
745
755
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
746
|
-
const { serveOverHttp } = await import("./serve-
|
|
756
|
+
const { serveOverHttp } = await import("./serve-AJAVEH2M.js");
|
|
747
757
|
const appName = messenger.app.command;
|
|
748
758
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
749
759
|
const listening = await serveOverHttp(build, {
|