@wirecat/tg-cli 0.103.0 → 0.105.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 +1 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-QG3YFFOY.js → adapter-WWYRCTPE.js} +37 -37
- package/dist/bundle/{all-profiles-ECXH3TBF.js → all-profiles-IJYM6NIJ.js} +5 -5
- package/dist/bundle/{anthropic-5MKO3QX7.js → anthropic-EDRWOXB5.js} +3 -3
- package/dist/bundle/app-server-2NF7ZH3C.js +222 -0
- package/dist/bundle/{bot-api-4DQPIOMK.js → bot-api-XCDLL6M2.js} +38 -38
- package/dist/bundle/{bot-history-UN74XXLU.js → bot-history-37WSQX3U.js} +10 -10
- package/dist/bundle/{bun-PS73VF2C.js → bun-ZX34DXTI.js} +2 -2
- package/dist/bundle/{bun-sqlite-RAWGPH23.js → bun-sqlite-7TZ73UKO.js} +2 -2
- package/dist/bundle/{chunk-DLF3H6NP.js → chunk-2A2KXY5G.js} +4 -4
- package/dist/bundle/{chunk-3CP7RK5R.js → chunk-2J2G3ELT.js} +1 -1
- package/dist/bundle/{chunk-H2UTBYFC.js → chunk-443D2OY7.js} +1 -1
- package/dist/bundle/{chunk-3IXKDIPH.js → chunk-4N53GVUI.js} +44 -42
- package/dist/bundle/{chunk-6N25NZOE.js → chunk-4UZE26T6.js} +5 -5
- package/dist/bundle/{chunk-WULARSC4.js → chunk-4VFRP2T2.js} +20 -20
- package/dist/bundle/{chunk-537O7OVE.js → chunk-56JDML7T.js} +2 -2
- package/dist/bundle/{chunk-RD7SSY7H.js → chunk-5PDGRPTS.js} +1 -1
- package/dist/bundle/{chunk-RKQIEJFR.js → chunk-6MQ3DEXF.js} +1 -1
- package/dist/bundle/{chunk-OGVBRRWY.js → chunk-73OWDRGK.js} +20 -20
- package/dist/bundle/{chunk-G5IMOOPB.js → chunk-AQGW6OHU.js} +1 -1
- package/dist/bundle/{chunk-HCDZWFXO.js → chunk-ETVQH5AL.js} +10 -9
- package/dist/bundle/{chunk-Q2LBOPKO.js → chunk-FNASJIAI.js} +25 -14
- package/dist/bundle/{chunk-DWQ4QT6X.js → chunk-GGIDY5KC.js} +92 -91
- package/dist/bundle/{chunk-COZ74WW4.js → chunk-HJSWUHHP.js} +20 -2
- package/dist/bundle/{chunk-BYYSVINK.js → chunk-J5OIB3OW.js} +2 -2
- package/dist/bundle/{chunk-EQHQ2AX3.js → chunk-J6B5DQ3I.js} +57 -48
- package/dist/bundle/{chunk-LAYPLF7G.js → chunk-L23IJ3IZ.js} +5 -5
- package/dist/bundle/{chunk-NIVZHTN4.js → chunk-LOIFBJBA.js} +9 -9
- package/dist/bundle/{chunk-GO354DJ5.js → chunk-MAV5ODPN.js} +1 -1
- package/dist/bundle/{chunk-QF7VVIF4.js → chunk-MHS2LEZA.js} +13 -6
- package/dist/bundle/{server-6XYURULQ.js → chunk-N5BGV5YZ.js} +46 -62
- package/dist/bundle/{chunk-AUKAZRF6.js → chunk-NBXUNS6Q.js} +1 -1
- package/dist/bundle/{chunk-TPFLD4OM.js → chunk-NEPB2EI6.js} +1 -1
- package/dist/bundle/{chunk-3QX6SOEO.js → chunk-OOBCCVYM.js} +4 -4
- package/dist/bundle/{chunk-YI72UVTJ.js → chunk-PFL3CCP2.js} +1 -1
- package/dist/bundle/{chunk-BV4N333Y.js → chunk-Q6NALH2X.js} +2 -2
- package/dist/bundle/{chunk-AAMJZJYC.js → chunk-QAW5QNOY.js} +8 -8
- package/dist/bundle/{chunk-EMC57SOZ.js → chunk-QPE72FCE.js} +9 -7
- package/dist/bundle/{chunk-RMC2S3F4.js → chunk-QVXMOHHN.js} +4 -4
- package/dist/bundle/{chunk-SSALGKMJ.js → chunk-QWPVSWQE.js} +2 -2
- package/dist/bundle/{chunk-VZN5LD26.js → chunk-RDO66SBI.js} +2 -2
- package/dist/bundle/{chunk-KCVDWZWS.js → chunk-RI7H2VVU.js} +7 -7
- package/dist/bundle/{chunk-ZHXSRYJ5.js → chunk-S3C2L3IE.js} +7 -5
- package/dist/bundle/{chunk-5HPAPVCB.js → chunk-S7FO7OU2.js} +2146 -1911
- package/dist/bundle/{chunk-TEO2KP52.js → chunk-SJIHZA4K.js} +1 -1
- package/dist/bundle/{chunk-57XGUIXA.js → chunk-SLFDNASB.js} +4 -4
- package/dist/bundle/{chunk-NKN54EDN.js → chunk-VIGQIMGM.js} +2 -2
- package/dist/bundle/{chunk-MHHDVR4G.js → chunk-WD7Q2H4J.js} +193 -193
- package/dist/bundle/{chunk-S5M4HFOZ.js → chunk-XP4JEE47.js} +1 -1
- package/dist/bundle/{chunk-Z2DPNTSU.js → chunk-YGYQY5AG.js} +1 -1
- package/dist/bundle/{chunk-FSPDODVT.js → chunk-YSIC5B32.js} +10 -10
- package/dist/bundle/{chunk-CMQ34EZL.js → chunk-Z6SXT5DV.js} +4 -3
- package/dist/bundle/{chunk-SSV37M5T.js → chunk-ZI7THBWF.js} +51 -47
- package/dist/bundle/{chunk-F27OI4J2.js → chunk-ZIG4WIVN.js} +1 -1
- package/dist/bundle/{chunk-KQ5BUI5T.js → chunk-ZM2AI3E5.js} +270 -251
- package/dist/bundle/{command-contract-ZGFJTLB2.js → command-contract-OF6TUQ5B.js} +12 -12
- package/dist/bundle/{echarts-UEQDIHVQ.js → echarts-WFLEME5I.js} +2 -2
- package/dist/bundle/{embed-5DPZKRW5.js → embed-ESTG27RK.js} +3 -3
- package/dist/bundle/{embedder-NBQXDXAO.js → embedder-P3W76VOZ.js} +6 -6
- package/dist/bundle/{entry-EE6YRAP4.js → entry-SNRZGNRA.js} +3 -3
- package/dist/bundle/{first-run-OSEVVWNT.js → first-run-JS24HORG.js} +5 -5
- package/dist/bundle/{first-screen-753THOU6.js → first-screen-U63BJPXI.js} +13 -13
- package/dist/bundle/{identity-LNH33PN3.js → identity-TYE57SHY.js} +1 -1
- package/dist/bundle/{instructions-PYGVIT7I.js → instructions-ERMZPVS4.js} +3 -1
- package/dist/bundle/{node-3OBKCX6M.js → node-KDZSMKIC.js} +2 -2
- package/dist/bundle/{node-sqlite-DMMTDRFB.js → node-sqlite-FR64YDYV.js} +2 -2
- package/dist/bundle/{oauth-FX5DDCRS.js → oauth-SPE76ZIY.js} +4 -4
- package/dist/bundle/{open-G6QRQAAL.js → open-UEFCMPLC.js} +1 -1
- package/dist/bundle/{process-47MMIFIJ.js → process-7MD6MEGB.js} +1 -1
- package/dist/bundle/{program-LBHBWRK5.js → program-NFFSOGUY.js} +40 -40
- package/dist/bundle/{prompt-CJ6Y4JYC.js → prompt-3PI4H66U.js} +2 -2
- package/dist/bundle/{recognize-7BLTOI45.js → recognize-54LQOU24.js} +3 -3
- package/dist/bundle/{remote-Q4A4JY6U.js → remote-JQ74NVUK.js} +4 -4
- package/dist/bundle/{rerank-CQAR46L3.js → rerank-66YCEORD.js} +4 -4
- package/dist/bundle/{serve-2UO2YMMG.js → serve-5SP2TCGV.js} +6 -6
- package/dist/bundle/{server-FMKC4RLL.js → server-GFICDJ6J.js} +26 -26
- package/dist/bundle/server-KMKRKOZP.js +55 -0
- package/dist/bundle/{state-RNWN2RDY.js → state-U7HXQB6I.js} +3 -3
- package/dist/bundle/{store-BBHTR477.js → store-O4QVYHFL.js} +7 -7
- package/dist/bundle/store-maintenance-command-BNRZ5IJD.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +1 -0
- package/dist/bundle/store-maintenance-command-GD6OLRXH.js +0 -44
package/README.md
CHANGED
|
@@ -269,6 +269,7 @@ form, so set up approval in your agent app.
|
|
|
269
269
|
|
|
270
270
|
```sh
|
|
271
271
|
claude mcp add tg -- tg personal mcp serve # Claude Code, by hand
|
|
272
|
+
claude mcp add tg -- tg mcp serve --profiles all # one server for every profile
|
|
272
273
|
tg personal mcp check # check the local MCP server
|
|
273
274
|
```
|
|
274
275
|
|
package/dist/bin/tg.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.105.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -29,7 +29,7 @@ if (
|
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
31
|
const running = import("../bundle/tg.js")
|
|
32
|
-
const chunks = ["../bundle/adapter-
|
|
32
|
+
const chunks = ["../bundle/adapter-WWYRCTPE.js","../bundle/all-profiles-IJYM6NIJ.js","../bundle/anthropic-EDRWOXB5.js","../bundle/app-server-2NF7ZH3C.js","../bundle/bot-api-XCDLL6M2.js","../bundle/bot-history-37WSQX3U.js","../bundle/bun-ZX34DXTI.js","../bundle/bun-sqlite-7TZ73UKO.js","../bundle/command-contract-OF6TUQ5B.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-WFLEME5I.js","../bundle/embed-ESTG27RK.js","../bundle/embedder-P3W76VOZ.js","../bundle/entry-SNRZGNRA.js","../bundle/first-run-JS24HORG.js","../bundle/first-screen-U63BJPXI.js","../bundle/identity-TYE57SHY.js","../bundle/instructions-ERMZPVS4.js","../bundle/mcp-OQBZXELQ.js","../bundle/node-KDZSMKIC.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-FR64YDYV.js","../bundle/oauth-SPE76ZIY.js","../bundle/open-UEFCMPLC.js","../bundle/process-7MD6MEGB.js","../bundle/program-NFFSOGUY.js","../bundle/prompt-3PI4H66U.js","../bundle/proxy-transport-YSBYG26I.js","../bundle/recognize-54LQOU24.js","../bundle/remote-JQ74NVUK.js","../bundle/rerank-66YCEORD.js","../bundle/serve-5SP2TCGV.js","../bundle/server-GFICDJ6J.js","../bundle/server-KMKRKOZP.js","../bundle/state-U7HXQB6I.js","../bundle/store-O4QVYHFL.js","../bundle/store-maintenance-command-BNRZ5IJD.js"]
|
|
33
33
|
// After the server answers its first request, so it starts no later.
|
|
34
34
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
35
|
await running
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6MQ3DEXF.js";
|
|
39
39
|
import {
|
|
40
40
|
proxiedTransport
|
|
41
41
|
} from "./chunk-WAGDZB62.js";
|
|
@@ -46,56 +46,56 @@ import {
|
|
|
46
46
|
bareCheck,
|
|
47
47
|
formatMarkdown,
|
|
48
48
|
providerRequest
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-S7FO7OU2.js";
|
|
50
|
+
import "./chunk-2J2G3ELT.js";
|
|
50
51
|
import "./chunk-FG2QTYEF.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-OGVBRRWY.js";
|
|
52
|
+
import "./chunk-MAV5ODPN.js";
|
|
53
|
+
import "./chunk-4VFRP2T2.js";
|
|
54
|
+
import "./chunk-ETVQH5AL.js";
|
|
55
|
+
import "./chunk-4N53GVUI.js";
|
|
56
|
+
import "./chunk-73OWDRGK.js";
|
|
57
57
|
import {
|
|
58
58
|
pickChat,
|
|
59
59
|
uploadBlob,
|
|
60
60
|
validateFormattedText
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-WD7Q2H4J.js";
|
|
62
|
+
import "./chunk-S3C2L3IE.js";
|
|
63
|
+
import "./chunk-MHS2LEZA.js";
|
|
64
64
|
import "./chunk-2ABQZVK4.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-SLFDNASB.js";
|
|
66
|
+
import "./chunk-GGIDY5KC.js";
|
|
67
67
|
import {
|
|
68
68
|
currentAttempt,
|
|
69
69
|
runEvent
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
71
|
+
import "./chunk-Z6SXT5DV.js";
|
|
72
|
+
import "./chunk-QPE72FCE.js";
|
|
73
|
+
import "./chunk-YSIC5B32.js";
|
|
74
74
|
import "./chunk-VMU4SGCE.js";
|
|
75
75
|
import "./chunk-MFS52LTZ.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-Q6NALH2X.js";
|
|
77
|
+
import "./chunk-LOIFBJBA.js";
|
|
78
|
+
import "./chunk-NBXUNS6Q.js";
|
|
79
|
+
import "./chunk-2A2KXY5G.js";
|
|
80
|
+
import "./chunk-RDO66SBI.js";
|
|
81
|
+
import "./chunk-5PDGRPTS.js";
|
|
82
|
+
import "./chunk-YGYQY5AG.js";
|
|
83
|
+
import "./chunk-PFL3CCP2.js";
|
|
84
|
+
import "./chunk-VIGQIMGM.js";
|
|
85
|
+
import "./chunk-L23IJ3IZ.js";
|
|
86
|
+
import "./chunk-QVXMOHHN.js";
|
|
87
87
|
import {
|
|
88
88
|
observedCounters
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-ZM2AI3E5.js";
|
|
90
|
+
import "./chunk-ZI7THBWF.js";
|
|
91
|
+
import "./chunk-RI7H2VVU.js";
|
|
92
|
+
import "./chunk-OOBCCVYM.js";
|
|
93
93
|
import "./chunk-O5EHUB2V.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-NEPB2EI6.js";
|
|
95
|
+
import "./chunk-4UZE26T6.js";
|
|
96
|
+
import "./chunk-AQGW6OHU.js";
|
|
97
|
+
import "./chunk-56JDML7T.js";
|
|
98
|
+
import "./chunk-SJIHZA4K.js";
|
|
99
99
|
import "./chunk-T4SDOYPY.js";
|
|
100
100
|
import {
|
|
101
101
|
CliError,
|
|
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZIG4WIVN.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QWPVSWQE.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-QPE72FCE.js";
|
|
17
17
|
import "./chunk-O5EHUB2V.js";
|
|
18
18
|
import "./chunk-T4SDOYPY.js";
|
|
19
19
|
import "./chunk-67SRVSPU.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
26
26
|
import { spawn } from "node:child_process";
|
|
27
27
|
import { randomUUID } from "node:crypto";
|
|
28
28
|
var PROTOCOL = "2025-06-18";
|
|
@@ -256,7 +256,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
256
256
|
}, "serveAllProfilesOverStdio");
|
|
257
257
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
258
258
|
const { build, close } = allProfilesServer(options);
|
|
259
|
-
const { serveOverHttp } = await import("./serve-
|
|
259
|
+
const { serveOverHttp } = await import("./serve-5SP2TCGV.js");
|
|
260
260
|
const listening = await serveOverHttp(build, {
|
|
261
261
|
...http,
|
|
262
262
|
appName: options.command,
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkedOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YGYQY5AG.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PFL3CCP2.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
12
|
} from "./chunk-ADLS6FVG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
26
26
|
var options = strictObject({
|
|
27
27
|
stop_sequences: optional(array(string()))
|
|
28
28
|
});
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PER_RUN,
|
|
5
|
+
envelope
|
|
6
|
+
} from "./chunk-N5BGV5YZ.js";
|
|
7
|
+
import {
|
|
8
|
+
answered,
|
|
9
|
+
failed,
|
|
10
|
+
registerCommands,
|
|
11
|
+
runCommandForAgent,
|
|
12
|
+
toolsFromCommands
|
|
13
|
+
} from "./chunk-FNASJIAI.js";
|
|
14
|
+
import {
|
|
15
|
+
mcpUrlOf
|
|
16
|
+
} from "./chunk-4VFRP2T2.js";
|
|
17
|
+
import {
|
|
18
|
+
agentJson,
|
|
19
|
+
skillResource
|
|
20
|
+
} from "./chunk-ETVQH5AL.js";
|
|
21
|
+
import {
|
|
22
|
+
answeredWire
|
|
23
|
+
} from "./chunk-ZIG4WIVN.js";
|
|
24
|
+
import {
|
|
25
|
+
StdioServerTransport,
|
|
26
|
+
serveStdio
|
|
27
|
+
} from "./chunk-QWPVSWQE.js";
|
|
28
|
+
import {
|
|
29
|
+
McpServer
|
|
30
|
+
} from "./chunk-5D4AEUVA.js";
|
|
31
|
+
import "./chunk-73OWDRGK.js";
|
|
32
|
+
import "./chunk-WD7Q2H4J.js";
|
|
33
|
+
import "./chunk-S3C2L3IE.js";
|
|
34
|
+
import "./chunk-SLFDNASB.js";
|
|
35
|
+
import "./chunk-GGIDY5KC.js";
|
|
36
|
+
import {
|
|
37
|
+
DEFAULT_OUTPUT_BYTES,
|
|
38
|
+
changesAuthorityAt,
|
|
39
|
+
describeProgram,
|
|
40
|
+
environmentOf,
|
|
41
|
+
fetchesOnlyAt,
|
|
42
|
+
judgedTargets,
|
|
43
|
+
rootOf2 as rootOf
|
|
44
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
45
|
+
import "./chunk-Z6SXT5DV.js";
|
|
46
|
+
import "./chunk-QPE72FCE.js";
|
|
47
|
+
import "./chunk-VMU4SGCE.js";
|
|
48
|
+
import "./chunk-MFS52LTZ.js";
|
|
49
|
+
import "./chunk-Q6NALH2X.js";
|
|
50
|
+
import {
|
|
51
|
+
readOnlyLockOf
|
|
52
|
+
} from "./chunk-NBXUNS6Q.js";
|
|
53
|
+
import {
|
|
54
|
+
mcpHttpMarker
|
|
55
|
+
} from "./chunk-2A2KXY5G.js";
|
|
56
|
+
import "./chunk-RDO66SBI.js";
|
|
57
|
+
import "./chunk-5PDGRPTS.js";
|
|
58
|
+
import {
|
|
59
|
+
appInstructions
|
|
60
|
+
} from "./chunk-HJSWUHHP.js";
|
|
61
|
+
import "./chunk-PFL3CCP2.js";
|
|
62
|
+
import "./chunk-VIGQIMGM.js";
|
|
63
|
+
import "./chunk-L23IJ3IZ.js";
|
|
64
|
+
import "./chunk-QVXMOHHN.js";
|
|
65
|
+
import "./chunk-ZM2AI3E5.js";
|
|
66
|
+
import "./chunk-ZI7THBWF.js";
|
|
67
|
+
import "./chunk-RI7H2VVU.js";
|
|
68
|
+
import "./chunk-OOBCCVYM.js";
|
|
69
|
+
import "./chunk-O5EHUB2V.js";
|
|
70
|
+
import "./chunk-NEPB2EI6.js";
|
|
71
|
+
import "./chunk-4UZE26T6.js";
|
|
72
|
+
import "./chunk-AQGW6OHU.js";
|
|
73
|
+
import "./chunk-SJIHZA4K.js";
|
|
74
|
+
import {
|
|
75
|
+
mcpErrorResult
|
|
76
|
+
} from "./chunk-T4SDOYPY.js";
|
|
77
|
+
import {
|
|
78
|
+
CliError
|
|
79
|
+
} from "./chunk-67SRVSPU.js";
|
|
80
|
+
import "./chunk-Y5E2WNWB.js";
|
|
81
|
+
import {
|
|
82
|
+
__name
|
|
83
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
84
|
+
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
86
|
+
var EXCLUDED = [["mcp"]];
|
|
87
|
+
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
88
|
+
const { app } = options;
|
|
89
|
+
const root = rootOf(command);
|
|
90
|
+
const environment = environmentOf(command);
|
|
91
|
+
if (!environment.runCommand)
|
|
92
|
+
throw new Error("the MCP server runs inside run(), which hands it the program");
|
|
93
|
+
const program = { run: environment.runCommand, commands: describeProgram(root) };
|
|
94
|
+
const flags = command.optsWithGlobals();
|
|
95
|
+
const overrides = flags.permission ?? [];
|
|
96
|
+
const { settings } = context;
|
|
97
|
+
const levels = /* @__PURE__ */ __name(() => options.resolveSettings(flags, { env: context.env }).permissions, "levels");
|
|
98
|
+
const readOnly = /* @__PURE__ */ __name(() => readOnlyLockOf(app, context.env) !== void 0, "readOnly");
|
|
99
|
+
const authority = changesAuthorityAt(root);
|
|
100
|
+
const targets = judgedTargets(root);
|
|
101
|
+
const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
|
|
102
|
+
const tools = toolsFromCommands(program.commands, {
|
|
103
|
+
includeUnavailable: true,
|
|
104
|
+
exclude: EXCLUDED,
|
|
105
|
+
levels: settings.permissions,
|
|
106
|
+
currentLevels: levels,
|
|
107
|
+
readOnly: readOnly(),
|
|
108
|
+
authority,
|
|
109
|
+
fetchOnly: fetchesOnlyAt(root),
|
|
110
|
+
permissions: options.permissions
|
|
111
|
+
});
|
|
112
|
+
const availability = /* @__PURE__ */ __name((one) => () => {
|
|
113
|
+
const permitted = one.availability?.() ?? { available: true };
|
|
114
|
+
if (!permitted.available)
|
|
115
|
+
return permitted;
|
|
116
|
+
return options.availability?.(one.path, settings.profile) ?? permitted;
|
|
117
|
+
}, "availability");
|
|
118
|
+
const commands = Object.fromEntries(tools.map((one) => [
|
|
119
|
+
one.command,
|
|
120
|
+
{
|
|
121
|
+
title: one.title,
|
|
122
|
+
description: one.description,
|
|
123
|
+
writes: one.writes,
|
|
124
|
+
availability: availability(one),
|
|
125
|
+
input: one.input,
|
|
126
|
+
run: /* @__PURE__ */ __name(async (input, ctx) => {
|
|
127
|
+
const own = options.availability?.(one.path, settings.profile);
|
|
128
|
+
if (own && !own.available)
|
|
129
|
+
return failed(new CliError("permission_error", `${one.command}: ${own.reason ?? "unavailable for this profile"}`, {
|
|
130
|
+
...own.permission ? { permission: own.permission } : {}
|
|
131
|
+
}), app.errors);
|
|
132
|
+
const traceparent = ctx?.mcpReq?._meta?.traceparent;
|
|
133
|
+
const env = typeof traceparent === "string" ? { ...context.env, TRACEPARENT: traceparent } : context.env;
|
|
134
|
+
const answer = await runCommandForAgent(program, one.path, input, {
|
|
135
|
+
profile: settings.profile,
|
|
136
|
+
readOnly: readOnly(),
|
|
137
|
+
env,
|
|
138
|
+
levels,
|
|
139
|
+
overrides,
|
|
140
|
+
authority,
|
|
141
|
+
permissions: options.permissions,
|
|
142
|
+
environment: passed
|
|
143
|
+
});
|
|
144
|
+
if ("error" in answer)
|
|
145
|
+
return mcpErrorResult(JSON.parse(agentJson(answer.error)));
|
|
146
|
+
try {
|
|
147
|
+
return answered(envelope(one.command, answer.result), DEFAULT_OUTPUT_BYTES, targets);
|
|
148
|
+
} catch (error) {
|
|
149
|
+
return failed(error, app.errors);
|
|
150
|
+
}
|
|
151
|
+
}, "run")
|
|
152
|
+
}
|
|
153
|
+
]));
|
|
154
|
+
const skill = options.skill ? skillResource(app, options.skill) : void 0;
|
|
155
|
+
const build = /* @__PURE__ */ __name(() => {
|
|
156
|
+
const server = new McpServer({ name: app.command, version: app.version }, {
|
|
157
|
+
instructions: appInstructions({
|
|
158
|
+
command: app.command,
|
|
159
|
+
name: options.name,
|
|
160
|
+
profile: settings.profile,
|
|
161
|
+
untrusted: options.untrusted,
|
|
162
|
+
...skill ? { skill: skill.instruction } : {}
|
|
163
|
+
})
|
|
164
|
+
});
|
|
165
|
+
registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
|
|
166
|
+
if (skill) {
|
|
167
|
+
const { uri, name, title, description, mimeType, read } = skill;
|
|
168
|
+
server.registerResource(name, uri, { title, description, mimeType }, read);
|
|
169
|
+
}
|
|
170
|
+
return server;
|
|
171
|
+
}, "build");
|
|
172
|
+
return { build, offered: Object.keys(commands) };
|
|
173
|
+
}, "createAppServer");
|
|
174
|
+
var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options) => {
|
|
175
|
+
const { build } = createAppServer(command, context, options);
|
|
176
|
+
const { stdin, stdout, signal } = environmentOf(command);
|
|
177
|
+
const own = stdin && stdout && stdin !== process.stdin;
|
|
178
|
+
const wire = answeredWire(own ? stdin : process.stdin, own ? stdout : process.stdout);
|
|
179
|
+
const handle = serveStdio(build, {
|
|
180
|
+
transport: new StdioServerTransport(wire.input, wire.output),
|
|
181
|
+
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
182
|
+
});
|
|
183
|
+
const ended = await new Promise((resolve) => {
|
|
184
|
+
wire.ended.then(() => resolve("input"));
|
|
185
|
+
if (own)
|
|
186
|
+
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
187
|
+
else {
|
|
188
|
+
process.once("SIGINT", () => resolve("stopped"));
|
|
189
|
+
process.once("SIGTERM", () => resolve("stopped"));
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
if (ended === "input")
|
|
193
|
+
await wire.answered();
|
|
194
|
+
wire.release();
|
|
195
|
+
await handle.close();
|
|
196
|
+
}, "serveAppOverStdio");
|
|
197
|
+
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
198
|
+
const { app } = options;
|
|
199
|
+
const { build } = createAppServer(command, context, options);
|
|
200
|
+
const { serveOverHttp } = await import("./serve-5SP2TCGV.js");
|
|
201
|
+
const listening = await serveOverHttp(build, {
|
|
202
|
+
...http,
|
|
203
|
+
appName: app.command,
|
|
204
|
+
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(app.envPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${app.command} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
205
|
+
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|
|
206
|
+
}).catch((error) => {
|
|
207
|
+
if (error.code === "EADDRINUSE")
|
|
208
|
+
throw new CliError("configuration_error", `port ${http.port} is in use \u2014 pass another with --port`);
|
|
209
|
+
throw error;
|
|
210
|
+
});
|
|
211
|
+
context.renderer.note(`serving on ${listening.url.href} \u2014 point your tunnel at it; connectors use ${mcpUrlOf(http.publicUrl).href}`);
|
|
212
|
+
await new Promise((resolve) => {
|
|
213
|
+
process.once("SIGINT", resolve);
|
|
214
|
+
process.once("SIGTERM", resolve);
|
|
215
|
+
});
|
|
216
|
+
await listening.close();
|
|
217
|
+
}, "serveAppOverHttp");
|
|
218
|
+
export {
|
|
219
|
+
createAppServer,
|
|
220
|
+
serveAppOverHttp,
|
|
221
|
+
serveAppOverStdio
|
|
222
|
+
};
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TELEGRAM_BOT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QAW5QNOY.js";
|
|
6
6
|
import {
|
|
7
7
|
BotTokenStore,
|
|
8
8
|
ChatRegistry,
|
|
@@ -12,58 +12,58 @@ import {
|
|
|
12
12
|
checkApiParameter,
|
|
13
13
|
generatedApiCommand,
|
|
14
14
|
prepareRpcApiBody
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S7FO7OU2.js";
|
|
16
|
+
import "./chunk-2J2G3ELT.js";
|
|
16
17
|
import "./chunk-FG2QTYEF.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-OGVBRRWY.js";
|
|
18
|
+
import "./chunk-MAV5ODPN.js";
|
|
19
|
+
import "./chunk-4VFRP2T2.js";
|
|
20
|
+
import "./chunk-ETVQH5AL.js";
|
|
21
|
+
import "./chunk-4N53GVUI.js";
|
|
22
|
+
import "./chunk-73OWDRGK.js";
|
|
23
23
|
import {
|
|
24
24
|
newOperationId,
|
|
25
25
|
readUpload,
|
|
26
26
|
uploadBytes
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-WD7Q2H4J.js";
|
|
28
|
+
import "./chunk-S3C2L3IE.js";
|
|
29
|
+
import "./chunk-MHS2LEZA.js";
|
|
30
30
|
import "./chunk-2ABQZVK4.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-SLFDNASB.js";
|
|
32
|
+
import "./chunk-GGIDY5KC.js";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_PERMISSIONS,
|
|
35
35
|
guardedWrite,
|
|
36
36
|
levelFor,
|
|
37
37
|
overrideSharedContract,
|
|
38
38
|
ownerOnlyOption
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
40
|
+
import "./chunk-Z6SXT5DV.js";
|
|
41
|
+
import "./chunk-QPE72FCE.js";
|
|
42
|
+
import "./chunk-YSIC5B32.js";
|
|
43
43
|
import "./chunk-VMU4SGCE.js";
|
|
44
44
|
import "./chunk-MFS52LTZ.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-Q6NALH2X.js";
|
|
46
|
+
import "./chunk-LOIFBJBA.js";
|
|
47
|
+
import "./chunk-NBXUNS6Q.js";
|
|
48
|
+
import "./chunk-443D2OY7.js";
|
|
49
|
+
import "./chunk-2A2KXY5G.js";
|
|
50
|
+
import "./chunk-RDO66SBI.js";
|
|
51
|
+
import "./chunk-5PDGRPTS.js";
|
|
52
|
+
import "./chunk-YGYQY5AG.js";
|
|
53
|
+
import "./chunk-PFL3CCP2.js";
|
|
54
|
+
import "./chunk-VIGQIMGM.js";
|
|
55
|
+
import "./chunk-L23IJ3IZ.js";
|
|
56
|
+
import "./chunk-QVXMOHHN.js";
|
|
57
|
+
import "./chunk-ZM2AI3E5.js";
|
|
58
|
+
import "./chunk-ZI7THBWF.js";
|
|
59
|
+
import "./chunk-RI7H2VVU.js";
|
|
60
|
+
import "./chunk-OOBCCVYM.js";
|
|
61
61
|
import "./chunk-O5EHUB2V.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-NEPB2EI6.js";
|
|
63
|
+
import "./chunk-4UZE26T6.js";
|
|
64
|
+
import "./chunk-AQGW6OHU.js";
|
|
65
|
+
import "./chunk-56JDML7T.js";
|
|
66
|
+
import "./chunk-SJIHZA4K.js";
|
|
67
67
|
import "./chunk-T4SDOYPY.js";
|
|
68
68
|
import {
|
|
69
69
|
CliError,
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
toCliError,
|
|
6
6
|
toHistoryChannel,
|
|
7
7
|
toHistoryMessages
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6MQ3DEXF.js";
|
|
9
9
|
import {
|
|
10
10
|
proxiedTransport
|
|
11
11
|
} from "./chunk-WAGDZB62.js";
|
|
12
12
|
import "./chunk-FG2QTYEF.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-S3C2L3IE.js";
|
|
14
|
+
import "./chunk-Z6SXT5DV.js";
|
|
15
|
+
import "./chunk-ZM2AI3E5.js";
|
|
16
|
+
import "./chunk-ZI7THBWF.js";
|
|
17
|
+
import "./chunk-RI7H2VVU.js";
|
|
18
|
+
import "./chunk-OOBCCVYM.js";
|
|
19
19
|
import "./chunk-O5EHUB2V.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-NEPB2EI6.js";
|
|
21
|
+
import "./chunk-4UZE26T6.js";
|
|
22
|
+
import "./chunk-AQGW6OHU.js";
|
|
23
23
|
import "./chunk-T4SDOYPY.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AQGW6OHU.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XP4JEE47.js";
|
|
7
7
|
import "./chunk-T4SDOYPY.js";
|
|
8
8
|
import "./chunk-67SRVSPU.js";
|
|
9
9
|
import {
|
|
@@ -13,7 +13,7 @@ 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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
17
17
|
var customised = false;
|
|
18
18
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
19
19
|
try {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RDO66SBI.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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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.",
|