@wirecat/tg-cli 0.102.0 → 0.104.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 +31 -19
- package/dist/bundle/{adapter-M2HRSFFL.js → adapter-QTAHA2JC.js} +49 -48
- package/dist/bundle/{all-profiles-GOD2QNTK.js → all-profiles-7CXBVRFU.js} +13 -13
- package/dist/bundle/{anthropic-LKU7RWMA.js → anthropic-FWBQ7JHT.js} +10 -10
- package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
- package/dist/bundle/{bot-api-X3MPFVPL.js → bot-api-XDMMWRYI.js} +50 -49
- package/dist/bundle/{bot-history-OUMVVG22.js → bot-history-TU2X7RNN.js} +19 -19
- package/dist/bundle/{bun-LIZ6MKFS.js → bun-6GSDPKNZ.js} +5 -5
- package/dist/bundle/{bun-sqlite-2IFQYQ44.js → bun-sqlite-AO27E35V.js} +8 -8
- package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
- package/dist/bundle/{chunk-5DFGJPT6.js → chunk-3GGU65YR.js} +9 -7
- package/dist/bundle/{chunk-QEPZUFPL.js → chunk-3XZQQGCB.js} +59 -59
- package/dist/bundle/{chunk-W5EB4JLV.js → chunk-54RJDS3X.js} +6 -6
- package/dist/bundle/{chunk-WMOEOVWZ.js → chunk-5D4AEUVA.js} +3 -3
- package/dist/bundle/{chunk-BBC546ZA.js → chunk-5K7E36ND.js} +6 -6
- package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
- package/dist/bundle/{chunk-TXBUDJ3P.js → chunk-6K4QGBXU.js} +5 -5
- package/dist/bundle/{chunk-264DAFJV.js → chunk-6YUFPSSE.js} +7 -7
- package/dist/bundle/{chunk-HLAZ65AW.js → chunk-7WHM3KNI.js} +5 -5
- package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
- package/dist/bundle/{chunk-M5UH5CF3.js → chunk-ADMV4WGV.js} +8 -8
- package/dist/bundle/{chunk-WVEHUKCZ.js → chunk-B7TTM75D.js} +4 -4
- package/dist/bundle/{chunk-OHBHHBYL.js → chunk-BI2AXVHY.js} +6 -6
- package/dist/bundle/{chunk-XXTJUZMB.js → chunk-BIWJK5YU.js} +4 -4
- package/dist/bundle/{chunk-Q2NYEX4A.js → chunk-BKVJNPA6.js} +71 -30
- package/dist/bundle/{chunk-5D6OJREA.js → chunk-C5N7G6UH.js} +4 -4
- package/dist/bundle/{chunk-UK3GAN7Q.js → chunk-DANCAYRP.js} +16 -11
- package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
- package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
- package/dist/bundle/{chunk-DE7LFMY2.js → chunk-FRZHF2X6.js} +13 -11
- package/dist/bundle/{chunk-VUJ34PEQ.js → chunk-FUWSIEYY.js} +15 -15
- package/dist/bundle/{chunk-GSKFAE3I.js → chunk-GE22MYA6.js} +158 -56
- package/dist/bundle/{chunk-5VSR5ENL.js → chunk-GZ5CR5QB.js} +11 -11
- package/dist/bundle/{chunk-PSH7K6TL.js → chunk-HOR7DS3P.js} +25 -25
- package/dist/bundle/{chunk-CLWYQNSC.js → chunk-KRLCUBII.js} +9 -9
- package/dist/bundle/chunk-LJCGQMGN.js +264 -0
- package/dist/bundle/{chunk-OCWARAFE.js → chunk-LOFG3Q35.js} +5 -5
- package/dist/bundle/{chunk-SRU3OF4R.js → chunk-LSQUNABH.js} +5 -5
- package/dist/bundle/{chunk-MGG7JSNO.js → chunk-MB3PCNRL.js} +6 -6
- package/dist/bundle/{chunk-U4RRZUNP.js → chunk-MCD2GANK.js} +35 -282
- package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
- package/dist/bundle/{chunk-ENE5CSVY.js → chunk-MR4LW4EC.js} +2176 -1927
- package/dist/bundle/{chunk-2SUTCDGO.js → chunk-N6VHHMSZ.js} +5 -5
- package/dist/bundle/chunk-O5EHUB2V.js +2 -0
- package/dist/bundle/{chunk-FBWOQMPE.js → chunk-P3WU6UYJ.js} +227 -283
- package/dist/bundle/{chunk-F2TG3BA2.js → chunk-PHQTSF44.js} +9 -9
- package/dist/bundle/{chunk-AUOXTGTU.js → chunk-PWIE7VBL.js} +4 -4
- package/dist/bundle/{chunk-TV5DGHBT.js → chunk-QVTCOBN5.js} +263 -249
- package/dist/bundle/{chunk-JFSVXMN6.js → chunk-QY7MW7HK.js} +6 -6
- package/dist/bundle/{chunk-V52SBQYF.js → chunk-RRWMYR2H.js} +18 -17
- package/dist/bundle/{chunk-4QB4WDLT.js → chunk-RTAV5XNT.js} +15 -15
- package/dist/bundle/{server-YWL4HDOP.js → chunk-SZE6425L.js} +54 -67
- package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
- package/dist/bundle/{chunk-334UBWOB.js → chunk-TJR37WKA.js} +14 -14
- package/dist/bundle/{chunk-ERQDBK5I.js → chunk-U2AK4QXY.js} +23 -5
- package/dist/bundle/{chunk-BQYTIYGB.js → chunk-UDXRDFHN.js} +97 -96
- package/dist/bundle/{chunk-Y4XSWI22.js → chunk-UT6G2X7T.js} +7 -6
- package/dist/bundle/{chunk-4PDEQL6T.js → chunk-UTVANQN5.js} +6 -6
- package/dist/bundle/{chunk-FOUE7XLK.js → chunk-UVYY5EIS.js} +4 -4
- package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
- package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
- package/dist/bundle/{chunk-YHB57PFN.js → chunk-Y3VNNLUT.js} +4 -4
- package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
- package/dist/bundle/{chunk-ZRNRQFTF.js → chunk-Y5PJQPMQ.js} +5 -5
- package/dist/bundle/{chunk-CRZPQQHE.js → chunk-YBQ753RP.js} +26 -26
- package/dist/bundle/{chunk-QL7CQ6VZ.js → chunk-YD6ZQ6LM.js} +50 -48
- package/dist/bundle/{chunk-UR6ASUSG.js → chunk-ZBH7Z6WX.js} +6 -6
- package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
- package/dist/bundle/command-contract-RICU4OWW.js +32 -0
- package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
- package/dist/bundle/{echarts-27W2CIBD.js → echarts-2YP32GX5.js} +5 -5
- package/dist/bundle/{embed-FGJ273X2.js → embed-QNWVBCL5.js} +9 -8
- package/dist/bundle/{embedder-7ELL3CQ3.js → embedder-ENS7ARPP.js} +12 -11
- package/dist/bundle/entry-MPYSQPZO.js +14 -0
- package/dist/bundle/first-run-YLB7RNGP.js +24 -0
- package/dist/bundle/first-screen-AYOE4JFC.js +30 -0
- package/dist/bundle/identity-XQLO7NYW.js +11 -0
- package/dist/bundle/instructions-5F4XG3B6.js +11 -0
- package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
- package/dist/bundle/{node-RSL3HANO.js → node-JOUDFPFN.js} +5 -5
- package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/{node-sqlite-7R3PYQGJ.js → node-sqlite-ZY6ZFFXS.js} +8 -8
- package/dist/bundle/oauth-KOR3ZNTA.js +18 -0
- package/dist/bundle/open-JACXAGY5.js +20 -0
- package/dist/bundle/{process-RMV3AKLB.js → process-7W3X5VME.js} +5 -5
- package/dist/bundle/{program-PIUYQHBF.js → program-NSZWGHNJ.js} +52 -51
- package/dist/bundle/prompt-CRRG5UB6.js +13 -0
- package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
- package/dist/bundle/{recognize-3GMOLZF4.js → recognize-ASXEB45M.js} +9 -9
- package/dist/bundle/remote-CB3GAXGJ.js +27 -0
- package/dist/bundle/{rerank-W3OSXXBN.js → rerank-PDD5BPID.js} +10 -9
- package/dist/bundle/{serve-ZCPO44NO.js → serve-M4XFAYUM.js} +13 -13
- package/dist/bundle/{server-FXU4QFRB.js → server-IN673OYO.js} +37 -35
- package/dist/bundle/server-ISWPSKQ6.js +55 -0
- package/dist/bundle/{state-MJPTDIB5.js → state-626GOOVZ.js} +9 -9
- package/dist/bundle/{store-6VNQG56O.js → store-6JM4HJU5.js} +14 -14
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +44 -0
- package/dist/bundle/tg.js +8 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/tg-cli/SKILL.md +1 -0
- package/dist/bundle/chunk-2SJOUK6J.js +0 -2
- package/dist/bundle/command-contract-A6VZN3ZR.js +0 -31
- package/dist/bundle/entry-SEE5YWIX.js +0 -14
- package/dist/bundle/first-run-BD7FEC3W.js +0 -24
- package/dist/bundle/first-screen-ASZV6LSA.js +0 -29
- package/dist/bundle/identity-QR4F42T6.js +0 -11
- package/dist/bundle/instructions-L74K64PV.js +0 -9
- package/dist/bundle/node-UPPL626U.js +0 -21
- package/dist/bundle/oauth-4ESGXF6U.js +0 -18
- package/dist/bundle/open-DFYEUGTA.js +0 -20
- package/dist/bundle/prompt-H7GYQQLL.js +0 -13
- package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
- package/dist/bundle/remote-IRWTCI2B.js +0 -26
- package/dist/bundle/store-maintenance-command-62TQTMER.js +0 -43
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
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// cli-dev bundle loader
|
|
3
3
|
import * as module from "node:module"
|
|
4
4
|
|
|
5
|
-
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
6
|
-
module.enableCompileCache()
|
|
7
5
|
const words = process.argv.slice(2)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
// As the CLI answers it, unless a test records the argv: then the CLI writes the record too.
|
|
7
|
+
if (
|
|
8
|
+
words.length === 1 &&
|
|
9
|
+
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
|
+
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
|
+
) {
|
|
12
|
+
process.stdout.write("0.104.0\n")
|
|
13
|
+
} else {
|
|
14
|
+
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
|
+
module.enableCompileCache()
|
|
16
|
+
const serves = ((words) => {
|
|
17
|
+
const plain = words.filter((word) => !word.startsWith("-"));
|
|
18
|
+
return plain
|
|
19
|
+
.slice(0, 4)
|
|
20
|
+
.some((word, at) => word === "serve" || word === "watch" || (word === "mcp" && plain[at + 1] === undefined));
|
|
21
|
+
})(words)
|
|
22
|
+
if (serves && module.registerHooks) {
|
|
23
|
+
const bundle = new URL("../bundle/", import.meta.url).href
|
|
24
|
+
module.registerHooks({
|
|
25
|
+
resolve: (specifier, context, next) =>
|
|
26
|
+
specifier.startsWith("./") && context.parentURL?.startsWith(bundle)
|
|
27
|
+
? { url: new URL(specifier, context.parentURL).href, format: "module", shortCircuit: true }
|
|
28
|
+
: next(specifier, context),
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
const running = import("../bundle/tg.js")
|
|
32
|
+
const chunks = ["../bundle/adapter-QTAHA2JC.js","../bundle/all-profiles-7CXBVRFU.js","../bundle/anthropic-FWBQ7JHT.js","../bundle/app-server-XF4GY2Y6.js","../bundle/bot-api-XDMMWRYI.js","../bundle/bot-history-TU2X7RNN.js","../bundle/bun-6GSDPKNZ.js","../bundle/bun-sqlite-AO27E35V.js","../bundle/command-contract-RICU4OWW.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-2YP32GX5.js","../bundle/embed-QNWVBCL5.js","../bundle/embedder-ENS7ARPP.js","../bundle/entry-MPYSQPZO.js","../bundle/first-run-YLB7RNGP.js","../bundle/first-screen-AYOE4JFC.js","../bundle/identity-XQLO7NYW.js","../bundle/instructions-5F4XG3B6.js","../bundle/mcp-OQBZXELQ.js","../bundle/node-JOUDFPFN.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-ZY6ZFFXS.js","../bundle/oauth-KOR3ZNTA.js","../bundle/open-JACXAGY5.js","../bundle/process-7W3X5VME.js","../bundle/program-NSZWGHNJ.js","../bundle/prompt-CRRG5UB6.js","../bundle/proxy-transport-YSBYG26I.js","../bundle/recognize-ASXEB45M.js","../bundle/remote-CB3GAXGJ.js","../bundle/rerank-PDD5BPID.js","../bundle/serve-M4XFAYUM.js","../bundle/server-IN673OYO.js","../bundle/server-ISWPSKQ6.js","../bundle/state-626GOOVZ.js","../bundle/store-6JM4HJU5.js","../bundle/store-maintenance-command-DI2UX4V3.js"]
|
|
33
|
+
// After the server answers its first request, so it starts no later.
|
|
34
|
+
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
|
+
await running
|
|
19
36
|
}
|
|
20
|
-
const running = import("../bundle/tg.js")
|
|
21
|
-
const chunks = ["../bundle/adapter-M2HRSFFL.js","../bundle/all-profiles-GOD2QNTK.js","../bundle/anthropic-LKU7RWMA.js","../bundle/bot-api-X3MPFVPL.js","../bundle/bot-history-OUMVVG22.js","../bundle/bun-LIZ6MKFS.js","../bundle/bun-sqlite-2IFQYQ44.js","../bundle/command-contract-A6VZN3ZR.js","../bundle/dist-RJMT44PL.js","../bundle/echarts-27W2CIBD.js","../bundle/embed-FGJ273X2.js","../bundle/embedder-7ELL3CQ3.js","../bundle/entry-SEE5YWIX.js","../bundle/first-run-BD7FEC3W.js","../bundle/first-screen-ASZV6LSA.js","../bundle/identity-QR4F42T6.js","../bundle/instructions-L74K64PV.js","../bundle/mcp-4Y37G2UY.js","../bundle/node-IUL5HSYI.js","../bundle/node-RSL3HANO.js","../bundle/node-UPPL626U.js","../bundle/node-sqlite-7R3PYQGJ.js","../bundle/oauth-4ESGXF6U.js","../bundle/open-DFYEUGTA.js","../bundle/process-RMV3AKLB.js","../bundle/program-PIUYQHBF.js","../bundle/prompt-H7GYQQLL.js","../bundle/proxy-transport-G4MA6BGU.js","../bundle/recognize-3GMOLZF4.js","../bundle/remote-IRWTCI2B.js","../bundle/rerank-W3OSXXBN.js","../bundle/serve-ZCPO44NO.js","../bundle/server-FXU4QFRB.js","../bundle/server-YWL4HDOP.js","../bundle/state-MJPTDIB5.js","../bundle/store-6VNQG56O.js","../bundle/store-maintenance-command-62TQTMER.js"]
|
|
22
|
-
// After the server answers its first request, so it starts no later.
|
|
23
|
-
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
24
|
-
await running
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answerId,
|
|
5
5
|
attachmentsOf,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6K4QGBXU.js";
|
|
39
39
|
import {
|
|
40
40
|
proxiedTransport
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WAGDZB62.js";
|
|
42
42
|
import {
|
|
43
43
|
ADMIN_RIGHTS,
|
|
44
44
|
ADMIN_RIGHT_FIELDS,
|
|
@@ -46,64 +46,65 @@ import {
|
|
|
46
46
|
bareCheck,
|
|
47
47
|
formatMarkdown,
|
|
48
48
|
providerRequest
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-MR4LW4EC.js";
|
|
50
|
+
import "./chunk-C5N7G6UH.js";
|
|
51
|
+
import "./chunk-FG2QTYEF.js";
|
|
52
|
+
import "./chunk-PWIE7VBL.js";
|
|
53
|
+
import "./chunk-YBQ753RP.js";
|
|
54
|
+
import "./chunk-RRWMYR2H.js";
|
|
55
|
+
import "./chunk-YD6ZQ6LM.js";
|
|
56
|
+
import "./chunk-HOR7DS3P.js";
|
|
57
57
|
import {
|
|
58
58
|
pickChat,
|
|
59
59
|
uploadBlob,
|
|
60
60
|
validateFormattedText
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-P3WU6UYJ.js";
|
|
62
|
+
import "./chunk-3GGU65YR.js";
|
|
63
|
+
import "./chunk-DANCAYRP.js";
|
|
64
|
+
import "./chunk-2ABQZVK4.js";
|
|
65
|
+
import "./chunk-ADMV4WGV.js";
|
|
66
|
+
import "./chunk-UDXRDFHN.js";
|
|
67
67
|
import {
|
|
68
68
|
currentAttempt,
|
|
69
69
|
runEvent
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
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-
|
|
70
|
+
} from "./chunk-GE22MYA6.js";
|
|
71
|
+
import "./chunk-UT6G2X7T.js";
|
|
72
|
+
import "./chunk-FRZHF2X6.js";
|
|
73
|
+
import "./chunk-TJR37WKA.js";
|
|
74
|
+
import "./chunk-VMU4SGCE.js";
|
|
75
|
+
import "./chunk-MFS52LTZ.js";
|
|
76
|
+
import "./chunk-BI2AXVHY.js";
|
|
77
|
+
import "./chunk-FUWSIEYY.js";
|
|
78
|
+
import "./chunk-N6VHHMSZ.js";
|
|
79
|
+
import "./chunk-6YUFPSSE.js";
|
|
80
|
+
import "./chunk-54RJDS3X.js";
|
|
81
|
+
import "./chunk-B7TTM75D.js";
|
|
82
|
+
import "./chunk-LSQUNABH.js";
|
|
83
|
+
import "./chunk-LOFG3Q35.js";
|
|
84
|
+
import "./chunk-QY7MW7HK.js";
|
|
85
|
+
import "./chunk-MCD2GANK.js";
|
|
86
|
+
import "./chunk-LJCGQMGN.js";
|
|
86
87
|
import {
|
|
87
88
|
observedCounters
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-QVTCOBN5.js";
|
|
90
|
+
import "./chunk-3XZQQGCB.js";
|
|
91
|
+
import "./chunk-GZ5CR5QB.js";
|
|
92
|
+
import "./chunk-PHQTSF44.js";
|
|
93
|
+
import "./chunk-O5EHUB2V.js";
|
|
94
|
+
import "./chunk-Y5PJQPMQ.js";
|
|
95
|
+
import "./chunk-KRLCUBII.js";
|
|
96
|
+
import "./chunk-Y3VNNLUT.js";
|
|
97
|
+
import "./chunk-MB3PCNRL.js";
|
|
98
|
+
import "./chunk-7WHM3KNI.js";
|
|
99
|
+
import "./chunk-T4SDOYPY.js";
|
|
99
100
|
import {
|
|
100
101
|
CliError,
|
|
101
102
|
isCliError
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import "./chunk-
|
|
103
|
+
} from "./chunk-67SRVSPU.js";
|
|
104
|
+
import "./chunk-Y5E2WNWB.js";
|
|
104
105
|
import {
|
|
105
106
|
__name
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
107
108
|
|
|
108
109
|
// dist/telegram/adapter.js
|
|
109
110
|
import { chmodSync, existsSync, mkdirSync } from "node:fs";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BIWJK5YU.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-5K7E36ND.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-5D4AEUVA.js";
|
|
16
|
+
import "./chunk-FRZHF2X6.js";
|
|
17
|
+
import "./chunk-O5EHUB2V.js";
|
|
18
|
+
import "./chunk-T4SDOYPY.js";
|
|
19
|
+
import "./chunk-67SRVSPU.js";
|
|
20
|
+
import "./chunk-Y5E2WNWB.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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-M4XFAYUM.js");
|
|
260
260
|
const listening = await serveOverHttp(build, {
|
|
261
261
|
...http,
|
|
262
262
|
appName: options.command,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkedOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LSQUNABH.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LOFG3Q35.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ADLS6FVG.js";
|
|
13
|
+
import "./chunk-T4SDOYPY.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
optional,
|
|
17
17
|
strictObject,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-67SRVSPU.js";
|
|
20
|
+
import "./chunk-Y5E2WNWB.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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-SZE6425L.js";
|
|
7
|
+
import {
|
|
8
|
+
answered,
|
|
9
|
+
failed,
|
|
10
|
+
registerCommands,
|
|
11
|
+
runCommandForAgent,
|
|
12
|
+
toolsFromCommands
|
|
13
|
+
} from "./chunk-BKVJNPA6.js";
|
|
14
|
+
import {
|
|
15
|
+
mcpUrlOf
|
|
16
|
+
} from "./chunk-YBQ753RP.js";
|
|
17
|
+
import {
|
|
18
|
+
agentJson,
|
|
19
|
+
skillResource
|
|
20
|
+
} from "./chunk-RRWMYR2H.js";
|
|
21
|
+
import {
|
|
22
|
+
answeredWire
|
|
23
|
+
} from "./chunk-BIWJK5YU.js";
|
|
24
|
+
import {
|
|
25
|
+
StdioServerTransport,
|
|
26
|
+
serveStdio
|
|
27
|
+
} from "./chunk-5K7E36ND.js";
|
|
28
|
+
import {
|
|
29
|
+
McpServer
|
|
30
|
+
} from "./chunk-5D4AEUVA.js";
|
|
31
|
+
import "./chunk-HOR7DS3P.js";
|
|
32
|
+
import "./chunk-P3WU6UYJ.js";
|
|
33
|
+
import "./chunk-3GGU65YR.js";
|
|
34
|
+
import "./chunk-ADMV4WGV.js";
|
|
35
|
+
import "./chunk-UDXRDFHN.js";
|
|
36
|
+
import {
|
|
37
|
+
DEFAULT_OUTPUT_BYTES,
|
|
38
|
+
changesAuthorityAt,
|
|
39
|
+
describeProgram,
|
|
40
|
+
environmentOf,
|
|
41
|
+
fetchesOnlyAt,
|
|
42
|
+
judgedTargets,
|
|
43
|
+
rootOf2 as rootOf
|
|
44
|
+
} from "./chunk-GE22MYA6.js";
|
|
45
|
+
import "./chunk-UT6G2X7T.js";
|
|
46
|
+
import "./chunk-FRZHF2X6.js";
|
|
47
|
+
import "./chunk-VMU4SGCE.js";
|
|
48
|
+
import "./chunk-MFS52LTZ.js";
|
|
49
|
+
import "./chunk-BI2AXVHY.js";
|
|
50
|
+
import {
|
|
51
|
+
readOnlyLockOf
|
|
52
|
+
} from "./chunk-N6VHHMSZ.js";
|
|
53
|
+
import {
|
|
54
|
+
mcpHttpMarker
|
|
55
|
+
} from "./chunk-6YUFPSSE.js";
|
|
56
|
+
import "./chunk-54RJDS3X.js";
|
|
57
|
+
import "./chunk-B7TTM75D.js";
|
|
58
|
+
import {
|
|
59
|
+
appInstructions
|
|
60
|
+
} from "./chunk-U2AK4QXY.js";
|
|
61
|
+
import "./chunk-LOFG3Q35.js";
|
|
62
|
+
import "./chunk-QY7MW7HK.js";
|
|
63
|
+
import "./chunk-MCD2GANK.js";
|
|
64
|
+
import "./chunk-LJCGQMGN.js";
|
|
65
|
+
import "./chunk-QVTCOBN5.js";
|
|
66
|
+
import "./chunk-3XZQQGCB.js";
|
|
67
|
+
import "./chunk-GZ5CR5QB.js";
|
|
68
|
+
import "./chunk-PHQTSF44.js";
|
|
69
|
+
import "./chunk-O5EHUB2V.js";
|
|
70
|
+
import "./chunk-Y5PJQPMQ.js";
|
|
71
|
+
import "./chunk-KRLCUBII.js";
|
|
72
|
+
import "./chunk-Y3VNNLUT.js";
|
|
73
|
+
import "./chunk-7WHM3KNI.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.473.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._b1c2181cd33bddb10eb51dd3b7fa80c8/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-M4XFAYUM.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
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createRequire as
|
|
2
|
-
const require =
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TELEGRAM_BOT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RTAV5XNT.js";
|
|
6
6
|
import {
|
|
7
7
|
BotTokenStore,
|
|
8
8
|
ChatRegistry,
|
|
@@ -12,58 +12,59 @@ import {
|
|
|
12
12
|
checkApiParameter,
|
|
13
13
|
generatedApiCommand,
|
|
14
14
|
prepareRpcApiBody
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-MR4LW4EC.js";
|
|
16
|
+
import "./chunk-C5N7G6UH.js";
|
|
17
|
+
import "./chunk-FG2QTYEF.js";
|
|
18
|
+
import "./chunk-PWIE7VBL.js";
|
|
19
|
+
import "./chunk-YBQ753RP.js";
|
|
20
|
+
import "./chunk-RRWMYR2H.js";
|
|
21
|
+
import "./chunk-YD6ZQ6LM.js";
|
|
22
|
+
import "./chunk-HOR7DS3P.js";
|
|
23
23
|
import {
|
|
24
24
|
newOperationId,
|
|
25
25
|
readUpload,
|
|
26
26
|
uploadBytes
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-P3WU6UYJ.js";
|
|
28
|
+
import "./chunk-3GGU65YR.js";
|
|
29
|
+
import "./chunk-DANCAYRP.js";
|
|
30
|
+
import "./chunk-2ABQZVK4.js";
|
|
31
|
+
import "./chunk-ADMV4WGV.js";
|
|
32
|
+
import "./chunk-UDXRDFHN.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-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
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-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-GE22MYA6.js";
|
|
40
|
+
import "./chunk-UT6G2X7T.js";
|
|
41
|
+
import "./chunk-FRZHF2X6.js";
|
|
42
|
+
import "./chunk-TJR37WKA.js";
|
|
43
|
+
import "./chunk-VMU4SGCE.js";
|
|
44
|
+
import "./chunk-MFS52LTZ.js";
|
|
45
|
+
import "./chunk-BI2AXVHY.js";
|
|
46
|
+
import "./chunk-FUWSIEYY.js";
|
|
47
|
+
import "./chunk-N6VHHMSZ.js";
|
|
48
|
+
import "./chunk-UVYY5EIS.js";
|
|
49
|
+
import "./chunk-6YUFPSSE.js";
|
|
50
|
+
import "./chunk-54RJDS3X.js";
|
|
51
|
+
import "./chunk-B7TTM75D.js";
|
|
52
|
+
import "./chunk-LSQUNABH.js";
|
|
53
|
+
import "./chunk-LOFG3Q35.js";
|
|
54
|
+
import "./chunk-QY7MW7HK.js";
|
|
55
|
+
import "./chunk-MCD2GANK.js";
|
|
56
|
+
import "./chunk-LJCGQMGN.js";
|
|
57
|
+
import "./chunk-QVTCOBN5.js";
|
|
58
|
+
import "./chunk-3XZQQGCB.js";
|
|
59
|
+
import "./chunk-GZ5CR5QB.js";
|
|
60
|
+
import "./chunk-PHQTSF44.js";
|
|
61
|
+
import "./chunk-O5EHUB2V.js";
|
|
62
|
+
import "./chunk-Y5PJQPMQ.js";
|
|
63
|
+
import "./chunk-KRLCUBII.js";
|
|
64
|
+
import "./chunk-Y3VNNLUT.js";
|
|
65
|
+
import "./chunk-MB3PCNRL.js";
|
|
66
|
+
import "./chunk-7WHM3KNI.js";
|
|
67
|
+
import "./chunk-T4SDOYPY.js";
|
|
67
68
|
import {
|
|
68
69
|
CliError,
|
|
69
70
|
array,
|
|
@@ -79,11 +80,11 @@ import {
|
|
|
79
80
|
string,
|
|
80
81
|
transform,
|
|
81
82
|
union
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
83
|
+
} from "./chunk-67SRVSPU.js";
|
|
84
|
+
import "./chunk-Y5E2WNWB.js";
|
|
84
85
|
import {
|
|
85
86
|
__name
|
|
86
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
87
88
|
|
|
88
89
|
// dist/commands/bot-api.js
|
|
89
90
|
import { statSync } from "node:fs";
|
|
@@ -34544,7 +34545,7 @@ If you'd like to make sure that the webhook was set by you, you can specify secr
|
|
|
34544
34545
|
}
|
|
34545
34546
|
];
|
|
34546
34547
|
|
|
34547
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34548
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
34548
34549
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
34549
34550
|
var INTEGER = /^-?\d+$/;
|
|
34550
34551
|
var INT64_MIN = -(2n ** 63n);
|