@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
|
@@ -35,10 +35,7 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
proxiedTransport
|
|
41
|
-
} from "./chunk-BXVB42KJ.js";
|
|
38
|
+
} from "./chunk-B4ZMFU5I.js";
|
|
42
39
|
import {
|
|
43
40
|
ADMIN_RIGHTS,
|
|
44
41
|
ADMIN_RIGHT_FIELDS,
|
|
@@ -46,80 +43,89 @@ import {
|
|
|
46
43
|
bareCheck,
|
|
47
44
|
formatMarkdown,
|
|
48
45
|
providerRequest
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-TB2MG6PE.js";
|
|
47
|
+
import "./chunk-Z6M6NZUX.js";
|
|
48
|
+
import {
|
|
49
|
+
proxiedTransport
|
|
50
|
+
} from "./chunk-SIDGH56R.js";
|
|
51
|
+
import "./chunk-NBP6LXSY.js";
|
|
52
|
+
import "./chunk-6VWVYPH2.js";
|
|
53
|
+
import "./chunk-NRSJXUUO.js";
|
|
54
|
+
import "./chunk-YBUX6EAK.js";
|
|
55
|
+
import "./chunk-UN5TH2CG.js";
|
|
56
|
+
import "./chunk-VK2NDTBS.js";
|
|
57
|
+
import "./chunk-IOJOLV25.js";
|
|
58
|
+
import "./chunk-RHJ2VGHV.js";
|
|
57
59
|
import {
|
|
58
60
|
uploadBlob,
|
|
59
61
|
validateFormattedText
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-BXUMZWMN.js";
|
|
63
|
+
import "./chunk-B2UXNYCD.js";
|
|
64
|
+
import "./chunk-ZL7TJXFL.js";
|
|
65
|
+
import "./chunk-RCEP5OXD.js";
|
|
64
66
|
import "./chunk-2ABQZVK4.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./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-
|
|
67
|
+
import "./chunk-ZMBVZWUW.js";
|
|
68
|
+
import "./chunk-HILS2UL7.js";
|
|
69
|
+
import "./chunk-ZWVDXVG3.js";
|
|
70
|
+
import "./chunk-KKXF6TSS.js";
|
|
71
|
+
import "./chunk-SRMELB6Q.js";
|
|
72
|
+
import "./chunk-F5FOS64B.js";
|
|
73
|
+
import "./chunk-AMRMU23L.js";
|
|
74
|
+
import "./chunk-OU3WN4YH.js";
|
|
75
|
+
import "./chunk-5CEKH6R6.js";
|
|
76
|
+
import "./chunk-ZCDRXKCR.js";
|
|
77
|
+
import "./chunk-OQJURSRL.js";
|
|
78
|
+
import "./chunk-6WS474NQ.js";
|
|
79
|
+
import "./chunk-WUCTF2XE.js";
|
|
80
|
+
import "./chunk-ZJ3S4S6H.js";
|
|
81
|
+
import "./chunk-E2VIO7RY.js";
|
|
82
|
+
import "./chunk-ZMTASSIB.js";
|
|
83
|
+
import "./chunk-BQSODAU3.js";
|
|
84
|
+
import "./chunk-5WEEK65F.js";
|
|
85
|
+
import "./chunk-MDI7554C.js";
|
|
86
|
+
import "./chunk-24G3SEXH.js";
|
|
82
87
|
import {
|
|
83
88
|
observedCounters,
|
|
84
89
|
pickChat
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-NVWZ7S3I.js";
|
|
91
|
+
import "./chunk-WTGRQGQL.js";
|
|
92
|
+
import "./chunk-XKFES4EM.js";
|
|
93
|
+
import "./chunk-PHAFT2BO.js";
|
|
94
|
+
import "./chunk-OBIMTRA7.js";
|
|
95
|
+
import "./chunk-PBK2ECXT.js";
|
|
96
|
+
import "./chunk-MOPBEBVS.js";
|
|
97
|
+
import "./chunk-V3ZWYMXT.js";
|
|
92
98
|
import "./chunk-D72URWJE.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-PKIGE4NE.js";
|
|
100
|
+
import "./chunk-7GWOGEWJ.js";
|
|
101
|
+
import "./chunk-MMZ4QAKJ.js";
|
|
102
|
+
import "./chunk-SVPNU7PD.js";
|
|
103
|
+
import "./chunk-W6A2OZ3C.js";
|
|
104
|
+
import "./chunk-LGYATGQI.js";
|
|
105
|
+
import "./chunk-QBRQLOZA.js";
|
|
106
|
+
import "./chunk-S7PIM4GG.js";
|
|
107
|
+
import "./chunk-N7F5KT6U.js";
|
|
108
|
+
import "./chunk-JBS4VPAX.js";
|
|
109
|
+
import "./chunk-WZCRCCOZ.js";
|
|
110
|
+
import "./chunk-XB6O445X.js";
|
|
111
|
+
import "./chunk-K5QGBYDL.js";
|
|
106
112
|
import {
|
|
107
113
|
currentAttempt,
|
|
108
114
|
runEvent
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
115
|
+
} from "./chunk-4CLSIEWN.js";
|
|
116
|
+
import "./chunk-RZ7POTFA.js";
|
|
117
|
+
import "./chunk-MA27675E.js";
|
|
118
|
+
import "./chunk-YMRL7MYS.js";
|
|
119
|
+
import "./chunk-QD4MTOI7.js";
|
|
120
|
+
import "./chunk-L2ZQDTDU.js";
|
|
121
|
+
import "./chunk-2OFCIF2W.js";
|
|
122
|
+
import "./chunk-R2G3MWEF.js";
|
|
123
|
+
import "./chunk-RXBKVNOK.js";
|
|
118
124
|
import "./chunk-Y5E2WNWB.js";
|
|
119
125
|
import {
|
|
120
126
|
CliError,
|
|
121
127
|
isCliError
|
|
122
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-GCUFGDKE.js";
|
|
123
129
|
import {
|
|
124
130
|
__name
|
|
125
131
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1636,6 +1642,36 @@ var scheduled = /* @__PURE__ */ __name((feature, reference) => {
|
|
|
1636
1642
|
return queued.map(toMessage).sort((a, b) => a.timestamp.localeCompare(b.timestamp));
|
|
1637
1643
|
});
|
|
1638
1644
|
}, "scheduled");
|
|
1645
|
+
var scheduledNumbers = /* @__PURE__ */ __name((ids) => ids.map((id) => messageNumber(id, "a scheduled id is a number")), "scheduledNumbers");
|
|
1646
|
+
var cancelScheduled = /* @__PURE__ */ __name((feature, chatId, ids) => {
|
|
1647
|
+
const numbers = scheduledNumbers(ids);
|
|
1648
|
+
return feature.write("the scheduled messages may have been cancelled \u2014 repeating it is safe", () => feature.client.deleteScheduledMessages(Number(chatId), numbers));
|
|
1649
|
+
}, "cancelScheduled");
|
|
1650
|
+
var editScheduled = /* @__PURE__ */ __name((feature, chatId, messageId, { text, formatting, at }) => {
|
|
1651
|
+
const [id] = scheduledNumbers([messageId]);
|
|
1652
|
+
const body = text === void 0 ? void 0 : formatting ? toFormatted(text, formatting) : text;
|
|
1653
|
+
return feature.call(async () => {
|
|
1654
|
+
try {
|
|
1655
|
+
return toMessage(await feature.client.editMessage({
|
|
1656
|
+
chatId: Number(chatId),
|
|
1657
|
+
message: id,
|
|
1658
|
+
...body === void 0 ? {} : { text: body },
|
|
1659
|
+
scheduleDate: new Date(at)
|
|
1660
|
+
}));
|
|
1661
|
+
} catch (error) {
|
|
1662
|
+
if (tl8.RpcError.is(error, "MESSAGE_NOT_MODIFIED")) {
|
|
1663
|
+
const [current] = await feature.client.getScheduledMessages(Number(chatId), [id]);
|
|
1664
|
+
if (current)
|
|
1665
|
+
return toMessage(current);
|
|
1666
|
+
}
|
|
1667
|
+
throw unknownIfUnanswered(error, "the edit may have been made \u2014 repeating it is safe");
|
|
1668
|
+
}
|
|
1669
|
+
});
|
|
1670
|
+
}, "editScheduled");
|
|
1671
|
+
var sendScheduled = /* @__PURE__ */ __name((feature, chatId, ids) => {
|
|
1672
|
+
const numbers = scheduledNumbers(ids);
|
|
1673
|
+
return feature.write("the scheduled messages may have been sent \u2014 check the chat and its scheduled list before repeating", async () => (await feature.client.sendScheduled(Number(chatId), numbers)).map(toMessage));
|
|
1674
|
+
}, "sendScheduled");
|
|
1639
1675
|
var saveDraft = /* @__PURE__ */ __name((feature, chatId, text, { replyTo, threadId, formatting, noPreview }) => {
|
|
1640
1676
|
if (text.trim() === "")
|
|
1641
1677
|
throw new CliError("validation_error", "a draft needs nonempty text; clearing is not supported");
|
|
@@ -2710,12 +2746,11 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
2710
2746
|
fetchCounters(reference, messageId, fields, signal) {
|
|
2711
2747
|
return fetchCounters(this.#feature, reference, messageId, fields, signal);
|
|
2712
2748
|
}
|
|
2713
|
-
permalink(chatId, messageId)
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
}
|
|
2749
|
+
permalink = /* @__PURE__ */ __name((chatId, messageId) => permalink(this.#feature, chatId, messageId), "permalink");
|
|
2750
|
+
scheduled = /* @__PURE__ */ __name((reference) => scheduled(this.#feature, reference), "scheduled");
|
|
2751
|
+
cancelScheduled = /* @__PURE__ */ __name((chatId, ids) => cancelScheduled(this.#feature, chatId, ids), "cancelScheduled");
|
|
2752
|
+
editScheduled = /* @__PURE__ */ __name((chatId, id, change) => editScheduled(this.#feature, chatId, id, change), "editScheduled");
|
|
2753
|
+
sendScheduled = /* @__PURE__ */ __name((chatId, ids) => sendScheduled(this.#feature, chatId, ids), "sendScheduled");
|
|
2719
2754
|
send(chatId, text, options) {
|
|
2720
2755
|
return send(this.#feature, chatId, text, options);
|
|
2721
2756
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
runCommandForAgent,
|
|
5
|
+
toolsFromCommands
|
|
6
|
+
} from "./chunk-QHQ52UMF.js";
|
|
7
|
+
import "./chunk-OU3WN4YH.js";
|
|
8
|
+
import "./chunk-GUERS64O.js";
|
|
9
|
+
import "./chunk-5CEKH6R6.js";
|
|
10
|
+
import "./chunk-ZCDRXKCR.js";
|
|
11
|
+
import "./chunk-PL5P7UKW.js";
|
|
12
|
+
import "./chunk-OBIMTRA7.js";
|
|
13
|
+
import "./chunk-W6A2OZ3C.js";
|
|
14
|
+
import "./chunk-LGYATGQI.js";
|
|
15
|
+
import "./chunk-QBRQLOZA.js";
|
|
16
|
+
import "./chunk-S7PIM4GG.js";
|
|
17
|
+
import "./chunk-N7F5KT6U.js";
|
|
18
|
+
import "./chunk-JBS4VPAX.js";
|
|
19
|
+
import "./chunk-WZCRCCOZ.js";
|
|
20
|
+
import "./chunk-XB6O445X.js";
|
|
21
|
+
import "./chunk-K5QGBYDL.js";
|
|
22
|
+
import "./chunk-4CLSIEWN.js";
|
|
23
|
+
import "./chunk-RZ7POTFA.js";
|
|
24
|
+
import "./chunk-MA27675E.js";
|
|
25
|
+
import "./chunk-YMRL7MYS.js";
|
|
26
|
+
import "./chunk-QD4MTOI7.js";
|
|
27
|
+
import "./chunk-L2ZQDTDU.js";
|
|
28
|
+
import "./chunk-2OFCIF2W.js";
|
|
29
|
+
import "./chunk-R2G3MWEF.js";
|
|
30
|
+
import "./chunk-RXBKVNOK.js";
|
|
31
|
+
import "./chunk-Y5E2WNWB.js";
|
|
32
|
+
import "./chunk-GCUFGDKE.js";
|
|
33
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
34
|
+
export {
|
|
35
|
+
runCommandForAgent,
|
|
36
|
+
toolsFromCommands
|
|
37
|
+
};
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CALLER_META_KEY,
|
|
5
|
-
PROXY_CLIENT_NAME,
|
|
6
4
|
StdioServerTransport,
|
|
7
5
|
answeredWire,
|
|
8
|
-
callerOf,
|
|
9
6
|
serveStdio
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2U7XA4IH.js";
|
|
8
|
+
import {
|
|
9
|
+
CALLER_META_KEY,
|
|
10
|
+
PROXY_CLIENT_NAME,
|
|
11
|
+
callerOf
|
|
12
|
+
} from "./chunk-GUERS64O.js";
|
|
11
13
|
import {
|
|
14
|
+
InMemoryTransport,
|
|
12
15
|
McpServer
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-PL5P7UKW.js";
|
|
17
|
+
import "./chunk-LGYATGQI.js";
|
|
18
|
+
import "./chunk-RZ7POTFA.js";
|
|
19
|
+
import "./chunk-L2ZQDTDU.js";
|
|
20
|
+
import "./chunk-R2G3MWEF.js";
|
|
18
21
|
import {
|
|
19
22
|
errorObjectOf,
|
|
20
23
|
mcpErrorResult
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RXBKVNOK.js";
|
|
22
25
|
import "./chunk-Y5E2WNWB.js";
|
|
23
26
|
import {
|
|
24
27
|
CliError
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GCUFGDKE.js";
|
|
26
29
|
import {
|
|
27
30
|
__name
|
|
28
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
32
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// 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/all-profiles.js
|
|
31
34
|
import { spawn } from "node:child_process";
|
|
32
35
|
import { randomUUID } from "node:crypto";
|
|
33
36
|
var PROTOCOL = "2025-06-18";
|
|
@@ -168,13 +171,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
168
171
|
inputSchema: {
|
|
169
172
|
...tool.inputSchema,
|
|
170
173
|
properties: {
|
|
171
|
-
profile:
|
|
174
|
+
profile: profiles.length === 0 ? (
|
|
175
|
+
// An empty enum matches nothing, and a directory that checks the schema refuses the tool.
|
|
176
|
+
{
|
|
177
|
+
type: "string",
|
|
178
|
+
description: `Which ${name} account, by its profile. None is set up on this computer yet.`
|
|
179
|
+
}
|
|
180
|
+
) : {
|
|
172
181
|
type: "string",
|
|
173
182
|
enum: [...profiles],
|
|
174
|
-
oneOf: profiles.map((
|
|
175
|
-
const: profile,
|
|
176
|
-
title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
|
|
177
|
-
})),
|
|
183
|
+
oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
|
|
178
184
|
description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
|
|
179
185
|
},
|
|
180
186
|
...schema.properties
|
|
@@ -197,9 +203,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
197
203
|
const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
|
|
198
204
|
const build = /* @__PURE__ */ __name(() => {
|
|
199
205
|
const profiles = [...options.profiles()].sort();
|
|
200
|
-
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
206
|
+
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
207
|
+
capabilities: { tools: {} },
|
|
208
|
+
// Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
|
|
209
|
+
instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
|
|
210
|
+
${options.instructions}` : options.instructions
|
|
211
|
+
});
|
|
201
212
|
server.server.setRequestHandler("tools/list", async () => ({
|
|
202
|
-
tools: profiles.length === 0 ? [] :
|
|
213
|
+
tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
|
|
203
214
|
}));
|
|
204
215
|
const callers = {
|
|
205
216
|
env: options.env ?? process.env,
|
|
@@ -209,6 +220,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
209
220
|
server.server.setRequestHandler("tools/call", async (request, ctx) => {
|
|
210
221
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
211
222
|
const { profile, ...rest } = given;
|
|
223
|
+
if (profiles.length === 0)
|
|
224
|
+
return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
|
|
212
225
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
213
226
|
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
214
227
|
if (!signedIn(profile))
|
|
@@ -230,6 +243,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
230
243
|
}, "build");
|
|
231
244
|
return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
|
|
232
245
|
}, "allProfilesServer");
|
|
246
|
+
var listedTools = /* @__PURE__ */ __name(async (server) => {
|
|
247
|
+
const [own, other] = InMemoryTransport.createLinkedPair();
|
|
248
|
+
const answers = /* @__PURE__ */ new Map();
|
|
249
|
+
other.onmessage = (message) => {
|
|
250
|
+
const { id, result, error } = message;
|
|
251
|
+
if (typeof id === "number")
|
|
252
|
+
answers.get(id)?.(result, error);
|
|
253
|
+
};
|
|
254
|
+
const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
|
|
255
|
+
answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
|
|
256
|
+
void other.send({ jsonrpc: "2.0", id, method, params });
|
|
257
|
+
}), "ask");
|
|
258
|
+
await server.connect(own);
|
|
259
|
+
try {
|
|
260
|
+
await ask(1, "initialize", {
|
|
261
|
+
protocolVersion: PROTOCOL,
|
|
262
|
+
capabilities: {},
|
|
263
|
+
clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
|
|
264
|
+
});
|
|
265
|
+
await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
|
|
266
|
+
const answer = await ask(2, "tools/list", {});
|
|
267
|
+
if (!Array.isArray(answer.tools))
|
|
268
|
+
throw new Error("the catalogue server listed no tools");
|
|
269
|
+
return answer.tools;
|
|
270
|
+
} finally {
|
|
271
|
+
await server.close();
|
|
272
|
+
}
|
|
273
|
+
}, "listedTools");
|
|
233
274
|
var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
|
|
234
275
|
const { build, close } = allProfilesServer(options);
|
|
235
276
|
const own = io.stdin !== void 0 && io.stdin !== process.stdin;
|
|
@@ -248,7 +289,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
248
289
|
}, "serveAllProfilesOverStdio");
|
|
249
290
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
250
291
|
const { build, close } = allProfilesServer(options);
|
|
251
|
-
const { serveOverHttp } = await import("./serve-
|
|
292
|
+
const { serveOverHttp } = await import("./serve-AJAVEH2M.js");
|
|
252
293
|
const listening = await serveOverHttp(build, {
|
|
253
294
|
...http,
|
|
254
295
|
appName: options.command,
|
|
@@ -271,6 +312,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
|
271
312
|
export {
|
|
272
313
|
CHILD_IDLE_MS,
|
|
273
314
|
allProfilesServer,
|
|
315
|
+
listedTools,
|
|
274
316
|
serveAllProfilesOverHttp,
|
|
275
317
|
serveAllProfilesOverStdio,
|
|
276
318
|
withProfile
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MOPBEBVS.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-R2G3MWEF.js";
|
|
13
13
|
import {
|
|
14
14
|
array,
|
|
15
15
|
literal,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
strictObject,
|
|
20
20
|
string,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RXBKVNOK.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-GCUFGDKE.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// 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/models/anthropic.js
|
|
30
30
|
var options = strictObject({
|
|
31
31
|
stop_sequences: optional(array(string())),
|
|
32
32
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,61 +3,71 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VJEMCJPL.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NRSJXUUO.js";
|
|
10
|
+
import {
|
|
11
|
+
skillResources
|
|
12
|
+
} from "./chunk-YBUX6EAK.js";
|
|
13
|
+
import {
|
|
14
|
+
appInstructions
|
|
15
|
+
} from "./chunk-BFKPMG5T.js";
|
|
10
16
|
import {
|
|
11
17
|
answered,
|
|
12
18
|
failed,
|
|
13
|
-
registerCommands
|
|
14
|
-
|
|
15
|
-
toolsFromCommands
|
|
16
|
-
} from "./chunk-LOS4D6ZB.js";
|
|
19
|
+
registerCommands
|
|
20
|
+
} from "./chunk-27F6QBPY.js";
|
|
17
21
|
import {
|
|
18
|
-
agentJson
|
|
19
|
-
|
|
20
|
-
} from "./chunk-JGMXBAGH.js";
|
|
22
|
+
agentJson
|
|
23
|
+
} from "./chunk-UN5TH2CG.js";
|
|
21
24
|
import {
|
|
22
25
|
StdioServerTransport,
|
|
23
26
|
answeredWire,
|
|
24
27
|
serveStdio
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-CEJYNB3I.js";
|
|
35
|
-
import "./chunk-NO2LIHWA.js";
|
|
28
|
+
} from "./chunk-2U7XA4IH.js";
|
|
29
|
+
import "./chunk-IOJOLV25.js";
|
|
30
|
+
import "./chunk-RHJ2VGHV.js";
|
|
31
|
+
import "./chunk-BXUMZWMN.js";
|
|
32
|
+
import "./chunk-B2UXNYCD.js";
|
|
33
|
+
import "./chunk-ZL7TJXFL.js";
|
|
34
|
+
import "./chunk-ZMBVZWUW.js";
|
|
35
|
+
import "./chunk-ZWVDXVG3.js";
|
|
36
|
+
import "./chunk-KKXF6TSS.js";
|
|
36
37
|
import {
|
|
37
38
|
mcpHttpMarker
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-F5FOS64B.js";
|
|
40
|
+
import "./chunk-AMRMU23L.js";
|
|
40
41
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
42
|
+
runCommandForAgent,
|
|
43
|
+
toolsFromCommands
|
|
44
|
+
} from "./chunk-QHQ52UMF.js";
|
|
45
|
+
import "./chunk-OU3WN4YH.js";
|
|
46
|
+
import "./chunk-GUERS64O.js";
|
|
47
|
+
import "./chunk-5CEKH6R6.js";
|
|
48
|
+
import "./chunk-ZCDRXKCR.js";
|
|
49
|
+
import {
|
|
50
|
+
McpServer
|
|
51
|
+
} from "./chunk-PL5P7UKW.js";
|
|
52
|
+
import "./chunk-OQJURSRL.js";
|
|
53
|
+
import "./chunk-6WS474NQ.js";
|
|
54
|
+
import "./chunk-WUCTF2XE.js";
|
|
55
|
+
import "./chunk-ZJ3S4S6H.js";
|
|
56
|
+
import "./chunk-E2VIO7RY.js";
|
|
57
|
+
import "./chunk-BQSODAU3.js";
|
|
58
|
+
import "./chunk-24G3SEXH.js";
|
|
59
|
+
import "./chunk-NVWZ7S3I.js";
|
|
60
|
+
import "./chunk-WTGRQGQL.js";
|
|
61
|
+
import "./chunk-XKFES4EM.js";
|
|
62
|
+
import "./chunk-PHAFT2BO.js";
|
|
63
|
+
import "./chunk-OBIMTRA7.js";
|
|
64
|
+
import "./chunk-PBK2ECXT.js";
|
|
65
|
+
import "./chunk-MOPBEBVS.js";
|
|
66
|
+
import "./chunk-V3ZWYMXT.js";
|
|
57
67
|
import "./chunk-D72URWJE.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-7GWOGEWJ.js";
|
|
69
|
+
import "./chunk-MMZ4QAKJ.js";
|
|
70
|
+
import "./chunk-SVPNU7PD.js";
|
|
61
71
|
import {
|
|
62
72
|
DEFAULT_OUTPUT_BYTES,
|
|
63
73
|
changesAuthorityAt,
|
|
@@ -67,37 +77,37 @@ import {
|
|
|
67
77
|
judgedTargets,
|
|
68
78
|
readsOverMcpAt,
|
|
69
79
|
rootOf2 as rootOf
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
81
|
+
import "./chunk-LGYATGQI.js";
|
|
82
|
+
import "./chunk-QBRQLOZA.js";
|
|
73
83
|
import {
|
|
74
84
|
readOnlyLockOf
|
|
75
|
-
} from "./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-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
85
|
+
} from "./chunk-S7PIM4GG.js";
|
|
86
|
+
import "./chunk-N7F5KT6U.js";
|
|
87
|
+
import "./chunk-JBS4VPAX.js";
|
|
88
|
+
import "./chunk-WZCRCCOZ.js";
|
|
89
|
+
import "./chunk-XB6O445X.js";
|
|
90
|
+
import "./chunk-K5QGBYDL.js";
|
|
91
|
+
import "./chunk-4CLSIEWN.js";
|
|
92
|
+
import "./chunk-RZ7POTFA.js";
|
|
93
|
+
import "./chunk-MA27675E.js";
|
|
94
|
+
import "./chunk-YMRL7MYS.js";
|
|
95
|
+
import "./chunk-QD4MTOI7.js";
|
|
96
|
+
import "./chunk-L2ZQDTDU.js";
|
|
97
|
+
import "./chunk-2OFCIF2W.js";
|
|
98
|
+
import "./chunk-R2G3MWEF.js";
|
|
89
99
|
import {
|
|
90
100
|
mcpErrorResult
|
|
91
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-RXBKVNOK.js";
|
|
92
102
|
import "./chunk-Y5E2WNWB.js";
|
|
93
103
|
import {
|
|
94
104
|
CliError
|
|
95
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-GCUFGDKE.js";
|
|
96
106
|
import {
|
|
97
107
|
__name
|
|
98
108
|
} from "./chunk-ZVVMGPBJ.js";
|
|
99
109
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
110
|
+
// 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/app-server.js
|
|
101
111
|
var EXCLUDED = [["mcp"]];
|
|
102
112
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
103
113
|
let at = root;
|
|
@@ -213,7 +223,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
213
223
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
214
224
|
const { app } = options;
|
|
215
225
|
const { build } = createAppServer(command, context, options);
|
|
216
|
-
const { serveOverHttp } = await import("./serve-
|
|
226
|
+
const { serveOverHttp } = await import("./serve-AJAVEH2M.js");
|
|
217
227
|
const listening = await serveOverHttp(build, {
|
|
218
228
|
...http,
|
|
219
229
|
appName: app.command,
|