@wirecat/tg-cli 0.132.0 → 0.134.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 +139 -319
- 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-OXVMOWVE.js → adapter-Y4IXTXAG.js} +104 -68
- package/dist/bundle/agent-G7VHOJMS.js +37 -0
- package/dist/bundle/{all-profiles-6OQC7PBL.js → all-profiles-SUGID6CX.js} +62 -20
- package/dist/bundle/{anthropic-YFMIHFW5.js → anthropic-4QKTXT4B.js} +5 -5
- package/dist/bundle/{app-server-S7CJPJXN.js → app-server-TPOD6LIJ.js} +75 -65
- package/dist/bundle/{bot-api-KJ6EZ4R6.js → bot-api-KBESP422.js} +73 -91
- package/dist/bundle/{bot-history-JYCXDFW4.js → bot-history-3EORA23G.js} +23 -22
- package/dist/bundle/{bun-FVTOBYZ2.js → bun-FL76M4M2.js} +2 -2
- package/dist/bundle/{bun-sqlite-KDGWBNOR.js → bun-sqlite-H37OSTAJ.js} +6 -6
- package/dist/bundle/{chunk-JZJV3DYK.js → chunk-2GT563YH.js} +2 -2
- package/dist/bundle/{chunk-EPR67IRV.js → chunk-2JWY7CXJ.js} +4 -4
- package/dist/bundle/{chunk-UGD4SCUI.js → chunk-3O25FAPA.js} +3 -4
- package/dist/bundle/{chunk-AERP2QR6.js → chunk-3PG6QVQZ.js} +11 -25
- package/dist/bundle/{chunk-DXPGMUOR.js → chunk-3QQWTP77.js} +2 -2
- package/dist/bundle/{chunk-FIUH52FE.js → chunk-3ZNO27UE.js} +1 -1
- package/dist/bundle/{chunk-Y57EKZZK.js → chunk-4R2ZJGFF.js} +3274 -1674
- package/dist/bundle/{chunk-6LPUK62N.js → chunk-4S2DHHJM.js} +2 -100
- package/dist/bundle/{chunk-LF6FACSW.js → chunk-4X6BX3XP.js} +144 -10
- package/dist/bundle/{chunk-LZ3HFDYL.js → chunk-6DGVK5KS.js} +2 -2
- package/dist/bundle/chunk-6DJJVFSG.js +388 -0
- package/dist/bundle/{chunk-BSXS7VAC.js → chunk-6MEHKUN6.js} +1 -1
- package/dist/bundle/{chunk-44A2XRDE.js → chunk-6UNLEQA5.js} +31 -20
- package/dist/bundle/{chunk-M2TV6BDB.js → chunk-77E7Q4EQ.js} +7 -7
- package/dist/bundle/chunk-7GGDCQJ5.js +353 -0
- package/dist/bundle/{chunk-OGZZUDJJ.js → chunk-AHVWZDXO.js} +79 -64
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-ANBI3OXK.js} +1 -1
- package/dist/bundle/{chunk-PR4F3TYK.js → chunk-AYWST6NA.js} +60 -51
- package/dist/bundle/{chunk-7SEVVE3X.js → chunk-CA7DY2YU.js} +3 -3
- package/dist/bundle/{chunk-O43PARFS.js → chunk-CDKXZLMP.js} +273 -176
- package/dist/bundle/{chunk-YAPO7QNO.js → chunk-CNGNR4CY.js} +6 -6
- package/dist/bundle/{chunk-2UGSIHLV.js → chunk-CSXCCK6J.js} +2 -2
- package/dist/bundle/{chunk-N5LZ6L4D.js → chunk-DG35TQ6P.js} +3 -3
- package/dist/bundle/{chunk-LMGVPDXN.js → chunk-EXMAWEHC.js} +2 -2
- package/dist/bundle/{chunk-A5D3J7XZ.js → chunk-FR3ATU5I.js} +4 -4
- package/dist/bundle/{chunk-JDNDWZYS.js → chunk-FR4Y5CGW.js} +4 -4
- package/dist/bundle/{chunk-YSNQGOUI.js → chunk-GIGZTI74.js} +2115 -1975
- package/dist/bundle/{chunk-3QHKZLBU.js → chunk-H3TLAYGY.js} +4 -4
- package/dist/bundle/{chunk-KJICORS4.js → chunk-HD7DV5B2.js} +65 -43
- package/dist/bundle/{chunk-NLRGMP7M.js → chunk-HETHFOHC.js} +3 -3
- package/dist/bundle/{chunk-4YB7JU2W.js → chunk-HEZK4W3U.js} +6 -6
- package/dist/bundle/{chunk-2LZD2VFV.js → chunk-IJ7R2WMK.js} +4 -4
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-ITJ7DGNA.js} +4 -4
- package/dist/bundle/{chunk-5UPEEMEF.js → chunk-J5RB4ASI.js} +142 -372
- package/dist/bundle/{chunk-IY7CTAOQ.js → chunk-JAL443BH.js} +9 -9
- package/dist/bundle/{chunk-U7PHJSTX.js → chunk-JCDD5T3A.js} +2 -2
- package/dist/bundle/{chunk-BLZEQVP4.js → chunk-JHZJBNDO.js} +2 -2
- package/dist/bundle/chunk-JWLODUN3.js +555 -0
- package/dist/bundle/{chunk-4CKYANQH.js → chunk-JWNSG5GI.js} +1 -1
- package/dist/bundle/{chunk-YRXSNH3R.js → chunk-JXEO5EIN.js} +2 -2
- package/dist/bundle/{chunk-DSJNZXTP.js → chunk-K5FK6WWN.js} +1 -1
- package/dist/bundle/{chunk-LG3K5NHX.js → chunk-L47PFECD.js} +7 -7
- package/dist/bundle/{chunk-OIRNHSAH.js → chunk-L4PNDW4S.js} +6 -6
- package/dist/bundle/{chunk-WAVRUADL.js → chunk-M323L5SG.js} +30 -15
- package/dist/bundle/{chunk-AUZWIBHJ.js → chunk-MMDFPBFZ.js} +43 -64
- package/dist/bundle/{chunk-FKGYXIN7.js → chunk-MUV73B5A.js} +7 -7
- package/dist/bundle/chunk-MXA3FU2R.js +116 -0
- package/dist/bundle/{chunk-42MXCMW6.js → chunk-NUD4CBHK.js} +3 -3
- package/dist/bundle/{chunk-PG37E63A.js → chunk-NYEVPAF2.js} +511 -472
- package/dist/bundle/{chunk-QS46C5SW.js → chunk-O3QBO6NW.js} +17 -17
- package/dist/bundle/{chunk-CFWFESBO.js → chunk-O4ZOQJ6W.js} +9 -9
- package/dist/bundle/{chunk-74UPKW7H.js → chunk-OJSPB4LA.js} +2 -2
- package/dist/bundle/{chunk-JNWKV3QV.js → chunk-PCBVSHKD.js} +4 -4
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-PK5WEGPJ.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-BMI2NWFI.js → chunk-PRI2XTM7.js} +35 -12
- package/dist/bundle/chunk-PRM7GKBV.js +340 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-PZ2ZFPGO.js} +1 -1
- package/dist/bundle/chunk-QYRK4XXH.js +727 -0
- package/dist/bundle/{chunk-QNEAPLOP.js → chunk-RVA3CRSY.js} +12 -12
- package/dist/bundle/{chunk-4EDJJQJI.js → chunk-SPXNI53Z.js} +38 -9
- package/dist/bundle/{chunk-ZRW3DF25.js → chunk-TI5U6AUT.js} +34 -28
- package/dist/bundle/{chunk-SMQ45RZX.js → chunk-TKWYXM7L.js} +9 -60
- package/dist/bundle/{chunk-ZJIGVT6Z.js → chunk-TZCFJJEU.js} +6 -6
- package/dist/bundle/chunk-UTTEAOJ3.js +7 -0
- package/dist/bundle/chunk-V6G4LTXU.js +50 -0
- package/dist/bundle/{chunk-JMJOWT4N.js → chunk-VH4J7IIS.js} +1 -1
- package/dist/bundle/{chunk-UAFSDTID.js → chunk-VNJRWFHP.js} +1 -1
- package/dist/bundle/chunk-W2QSDPG6.js +80 -0
- package/dist/bundle/{chunk-ESOFH7PA.js → chunk-WGGUKQE7.js} +134 -558
- package/dist/bundle/{chunk-NWDADTPE.js → chunk-WPXVJGSL.js} +3 -3
- package/dist/bundle/{chunk-NWCFO37P.js → chunk-XLNV3U6N.js} +3 -3
- package/dist/bundle/{chunk-JPSRC732.js → chunk-XS4EE7MO.js} +17 -15
- package/dist/bundle/{chunk-FPSRT2TX.js → chunk-XVRLD3LN.js} +2 -2
- package/dist/bundle/{chunk-O3AM32YN.js → chunk-XZ6XEAJP.js} +18 -18
- package/dist/bundle/{chunk-B4LGDOG5.js → chunk-YHTSJMZ5.js} +3734 -3380
- package/dist/bundle/chunk-YPJCURT6.js +108 -0
- package/dist/bundle/{chunk-HBSKP7OV.js → chunk-Z77R76S2.js} +1 -1
- package/dist/bundle/{chunk-PYECFCPD.js → chunk-ZC7OEYDX.js} +1 -1
- package/dist/bundle/{chunk-IYJ4B632.js → chunk-ZW2N2GI2.js} +12 -12
- package/dist/bundle/command-contract-LEFXJAA3.js +37 -0
- package/dist/bundle/{command-server-entry-TM264M2J.js → command-server-entry-WQAE5UGU.js} +27 -27
- package/dist/bundle/{decode-RJFOSHCE.js → decode-2J2DOVGV.js} +5 -5
- package/dist/bundle/{dispatch-7OZP3X4O.js → dispatch-IZ2TP5GW.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-PYKF4D7B.js → echarts-GFIIHZ4U.js} +2 -2
- package/dist/bundle/{embed-JFN6Z5TG.js → embed-AGOXADHW.js} +6 -6
- package/dist/bundle/{embedder-WN54JIMY.js → embedder-PCIXGM2Y.js} +9 -9
- package/dist/bundle/{entry-Z6LO6N6S.js → entry-HUQXUV52.js} +9 -9
- package/dist/bundle/{failure-UONA2IA5.js → failure-JSRHZ2S6.js} +2 -2
- package/dist/bundle/{first-run-WQAKES7G.js → first-run-2LXN7B33.js} +12 -12
- package/dist/bundle/first-screen-VUE6RCSF.js +37 -0
- package/dist/bundle/{instructions-PR4BBBTM.js → instructions-RSLTJVFJ.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MMENCB7I.js} +2 -2
- package/dist/bundle/meeting-combined-PBNPHOM3.js +23 -0
- package/dist/bundle/{meeting-model-YVTUOM4H.js → meeting-model-SI77WMMK.js} +11 -11
- package/dist/bundle/{meeting-semantic-X4KG6RNV.js → meeting-semantic-WRXWUR4M.js} +6 -6
- package/dist/bundle/{node-OVS5LTVZ.js → node-5XGMCUGQ.js} +2 -2
- package/dist/bundle/{node-sqlite-LC44SM4Z.js → node-sqlite-ES7SQSIC.js} +7 -7
- package/dist/bundle/{oauth-NSVUFQCW.js → oauth-QFM4Y6N7.js} +8 -8
- package/dist/bundle/{open-XN5SJFVY.js → open-2MD2DKGQ.js} +5 -5
- package/dist/bundle/{openai-WOYZHJNL.js → openai-6TMKJKYO.js} +15 -15
- package/dist/bundle/{process-UFBRGTQC.js → process-VA2DP7MY.js} +1 -1
- package/dist/bundle/{program-RAGBRRQH.js → program-K3SLEA42.js} +70 -63
- package/dist/bundle/{prompt-6HAKBUQN.js → prompt-VZSPCE6E.js} +5 -5
- package/dist/bundle/{proxy-transport-5EJVFUTC.js → proxy-transport-OJU2EOOC.js} +5 -5
- package/dist/bundle/{recognize-CN5COBVJ.js → recognize-LH3ZZEIL.js} +4 -4
- package/dist/bundle/{remote-STX5AMGE.js → remote-JNW5HN2I.js} +9 -9
- package/dist/bundle/{rerank-ZCOWTXIJ.js → rerank-P23UJMII.js} +7 -7
- package/dist/bundle/{serve-XMQEOIG2.js → serve-VSLLMILH.js} +15 -15
- package/dist/bundle/{server-PGGUD3DM.js → server-FBRRRKCS.js} +68 -57
- package/dist/bundle/server-TA4QP7PG.js +78 -0
- package/dist/bundle/{sqlite-runtime-PS4DSOIU.js → sqlite-runtime-LWATDAAU.js} +6 -6
- package/dist/bundle/{state-GL4ZC57O.js → state-3AFJL2EL.js} +6 -6
- package/dist/bundle/{store-VISFXSHL.js → store-6TLYL2VU.js} +30 -17
- package/dist/bundle/{store-HJ76TLWD.js → store-PEXV5DNA.js} +24 -19
- package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +65 -0
- package/dist/bundle/surface-L4VY4WFG.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 +80 -576
- package/skills/tg-cli/references/files.md +64 -0
- package/skills/tg-cli/references/history.md +22 -0
- package/skills/tg-cli/references/mcp-and-bots.md +54 -0
- package/skills/tg-cli/references/messages.md +115 -0
- package/skills/tg-cli/references/people.md +85 -0
- package/skills/tg-cli/references/search.md +132 -0
- package/skills/tg-cli/references/setup.md +91 -0
- package/skills/tg-cli/references/stats.md +45 -0
- package/skills/tg-cli/references/tasks.md +54 -0
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-FRH7LBGE.js +0 -37
- package/dist/bundle/first-screen-4RFG22SA.js +0 -35
- package/dist/bundle/meeting-combined-MHWTZOF2.js +0 -23
- package/dist/bundle/server-WTNYWCZ4.js +0 -69
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +0 -60
|
@@ -35,10 +35,7 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
proxiedTransport
|
|
41
|
-
} from "./chunk-BLZEQVP4.js";
|
|
38
|
+
} from "./chunk-2GT563YH.js";
|
|
42
39
|
import {
|
|
43
40
|
ADMIN_RIGHTS,
|
|
44
41
|
ADMIN_RIGHT_FIELDS,
|
|
@@ -46,79 +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-GIGZTI74.js";
|
|
47
|
+
import "./chunk-6MEHKUN6.js";
|
|
48
|
+
import {
|
|
49
|
+
proxiedTransport
|
|
50
|
+
} from "./chunk-JHZJBNDO.js";
|
|
51
|
+
import "./chunk-CSXCCK6J.js";
|
|
52
|
+
import "./chunk-3O25FAPA.js";
|
|
53
|
+
import "./chunk-TI5U6AUT.js";
|
|
54
|
+
import "./chunk-6DJJVFSG.js";
|
|
55
|
+
import "./chunk-J5RB4ASI.js";
|
|
56
|
+
import "./chunk-AHVWZDXO.js";
|
|
57
|
+
import "./chunk-XS4EE7MO.js";
|
|
58
|
+
import "./chunk-7GGDCQJ5.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-YHTSJMZ5.js";
|
|
63
|
+
import "./chunk-M323L5SG.js";
|
|
64
|
+
import "./chunk-3PG6QVQZ.js";
|
|
65
|
+
import "./chunk-TKWYXM7L.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-
|
|
67
|
+
import "./chunk-MXA3FU2R.js";
|
|
68
|
+
import "./chunk-ZW2N2GI2.js";
|
|
69
|
+
import "./chunk-FR3ATU5I.js";
|
|
70
|
+
import "./chunk-ANBI3OXK.js";
|
|
71
|
+
import "./chunk-RVA3CRSY.js";
|
|
72
|
+
import "./chunk-H3TLAYGY.js";
|
|
73
|
+
import "./chunk-HETHFOHC.js";
|
|
74
|
+
import "./chunk-V6G4LTXU.js";
|
|
75
|
+
import "./chunk-PRM7GKBV.js";
|
|
76
|
+
import "./chunk-QYRK4XXH.js";
|
|
77
|
+
import "./chunk-O3QBO6NW.js";
|
|
78
|
+
import "./chunk-CNGNR4CY.js";
|
|
79
|
+
import "./chunk-JAL443BH.js";
|
|
80
|
+
import "./chunk-MMDFPBFZ.js";
|
|
81
|
+
import "./chunk-DG35TQ6P.js";
|
|
82
|
+
import "./chunk-MUV73B5A.js";
|
|
83
|
+
import "./chunk-ZC7OEYDX.js";
|
|
84
|
+
import "./chunk-Z77R76S2.js";
|
|
85
|
+
import "./chunk-NUD4CBHK.js";
|
|
86
|
+
import "./chunk-JXEO5EIN.js";
|
|
81
87
|
import {
|
|
82
88
|
observedCounters,
|
|
83
89
|
pickChat
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-4R2ZJGFF.js";
|
|
91
|
+
import "./chunk-O4ZOQJ6W.js";
|
|
92
|
+
import "./chunk-PRI2XTM7.js";
|
|
93
|
+
import "./chunk-3ZNO27UE.js";
|
|
94
|
+
import "./chunk-W2QSDPG6.js";
|
|
95
|
+
import "./chunk-VNJRWFHP.js";
|
|
96
|
+
import "./chunk-FR4Y5CGW.js";
|
|
97
|
+
import "./chunk-PZ2ZFPGO.js";
|
|
91
98
|
import "./chunk-D72URWJE.js";
|
|
92
|
-
import "./chunk-
|
|
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-
|
|
99
|
+
import "./chunk-3QQWTP77.js";
|
|
100
|
+
import "./chunk-L4PNDW4S.js";
|
|
101
|
+
import "./chunk-VH4J7IIS.js";
|
|
102
|
+
import "./chunk-IJ7R2WMK.js";
|
|
103
|
+
import "./chunk-CDKXZLMP.js";
|
|
104
|
+
import "./chunk-L47PFECD.js";
|
|
105
|
+
import "./chunk-CA7DY2YU.js";
|
|
106
|
+
import "./chunk-OJSPB4LA.js";
|
|
107
|
+
import "./chunk-K5FK6WWN.js";
|
|
108
|
+
import "./chunk-XLNV3U6N.js";
|
|
109
|
+
import "./chunk-HEZK4W3U.js";
|
|
110
|
+
import "./chunk-4X6BX3XP.js";
|
|
111
|
+
import "./chunk-2JWY7CXJ.js";
|
|
105
112
|
import {
|
|
106
113
|
currentAttempt,
|
|
107
114
|
runEvent
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
115
|
+
} from "./chunk-HD7DV5B2.js";
|
|
116
|
+
import "./chunk-WPXVJGSL.js";
|
|
117
|
+
import "./chunk-JCDD5T3A.js";
|
|
118
|
+
import "./chunk-77E7Q4EQ.js";
|
|
119
|
+
import "./chunk-NYEVPAF2.js";
|
|
120
|
+
import "./chunk-UTTEAOJ3.js";
|
|
121
|
+
import "./chunk-XVRLD3LN.js";
|
|
122
|
+
import "./chunk-6UNLEQA5.js";
|
|
123
|
+
import "./chunk-SPXNI53Z.js";
|
|
117
124
|
import "./chunk-Y5E2WNWB.js";
|
|
118
125
|
import {
|
|
119
126
|
CliError,
|
|
120
127
|
isCliError
|
|
121
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-PK5WEGPJ.js";
|
|
122
129
|
import {
|
|
123
130
|
__name
|
|
124
131
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1635,6 +1642,36 @@ var scheduled = /* @__PURE__ */ __name((feature, reference) => {
|
|
|
1635
1642
|
return queued.map(toMessage).sort((a, b) => a.timestamp.localeCompare(b.timestamp));
|
|
1636
1643
|
});
|
|
1637
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");
|
|
1638
1675
|
var saveDraft = /* @__PURE__ */ __name((feature, chatId, text, { replyTo, threadId, formatting, noPreview }) => {
|
|
1639
1676
|
if (text.trim() === "")
|
|
1640
1677
|
throw new CliError("validation_error", "a draft needs nonempty text; clearing is not supported");
|
|
@@ -2709,12 +2746,11 @@ var TelegramAdapter = class _TelegramAdapter {
|
|
|
2709
2746
|
fetchCounters(reference, messageId, fields, signal) {
|
|
2710
2747
|
return fetchCounters(this.#feature, reference, messageId, fields, signal);
|
|
2711
2748
|
}
|
|
2712
|
-
permalink(chatId, messageId)
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
}
|
|
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");
|
|
2718
2754
|
send(chatId, text, options) {
|
|
2719
2755
|
return send(this.#feature, chatId, text, options);
|
|
2720
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-WGGUKQE7.js";
|
|
7
|
+
import "./chunk-V6G4LTXU.js";
|
|
8
|
+
import "./chunk-YPJCURT6.js";
|
|
9
|
+
import "./chunk-PRM7GKBV.js";
|
|
10
|
+
import "./chunk-QYRK4XXH.js";
|
|
11
|
+
import "./chunk-PL5P7UKW.js";
|
|
12
|
+
import "./chunk-W2QSDPG6.js";
|
|
13
|
+
import "./chunk-CDKXZLMP.js";
|
|
14
|
+
import "./chunk-L47PFECD.js";
|
|
15
|
+
import "./chunk-CA7DY2YU.js";
|
|
16
|
+
import "./chunk-OJSPB4LA.js";
|
|
17
|
+
import "./chunk-K5FK6WWN.js";
|
|
18
|
+
import "./chunk-XLNV3U6N.js";
|
|
19
|
+
import "./chunk-HEZK4W3U.js";
|
|
20
|
+
import "./chunk-4X6BX3XP.js";
|
|
21
|
+
import "./chunk-2JWY7CXJ.js";
|
|
22
|
+
import "./chunk-HD7DV5B2.js";
|
|
23
|
+
import "./chunk-WPXVJGSL.js";
|
|
24
|
+
import "./chunk-JCDD5T3A.js";
|
|
25
|
+
import "./chunk-77E7Q4EQ.js";
|
|
26
|
+
import "./chunk-NYEVPAF2.js";
|
|
27
|
+
import "./chunk-UTTEAOJ3.js";
|
|
28
|
+
import "./chunk-XVRLD3LN.js";
|
|
29
|
+
import "./chunk-6UNLEQA5.js";
|
|
30
|
+
import "./chunk-SPXNI53Z.js";
|
|
31
|
+
import "./chunk-Y5E2WNWB.js";
|
|
32
|
+
import "./chunk-PK5WEGPJ.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-4S2DHHJM.js";
|
|
8
|
+
import {
|
|
9
|
+
CALLER_META_KEY,
|
|
10
|
+
PROXY_CLIENT_NAME,
|
|
11
|
+
callerOf
|
|
12
|
+
} from "./chunk-YPJCURT6.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-L47PFECD.js";
|
|
18
|
+
import "./chunk-WPXVJGSL.js";
|
|
19
|
+
import "./chunk-UTTEAOJ3.js";
|
|
20
|
+
import "./chunk-6UNLEQA5.js";
|
|
18
21
|
import {
|
|
19
22
|
errorObjectOf,
|
|
20
23
|
mcpErrorResult
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SPXNI53Z.js";
|
|
22
25
|
import "./chunk-Y5E2WNWB.js";
|
|
23
26
|
import {
|
|
24
27
|
CliError
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PK5WEGPJ.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.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/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-VSLLMILH.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-FR4Y5CGW.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6UNLEQA5.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-SPXNI53Z.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-PK5WEGPJ.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.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/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,60 +3,71 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AYWST6NA.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TI5U6AUT.js";
|
|
10
|
+
import {
|
|
11
|
+
skillResources
|
|
12
|
+
} from "./chunk-6DJJVFSG.js";
|
|
13
|
+
import {
|
|
14
|
+
appInstructions
|
|
15
|
+
} from "./chunk-JWNSG5GI.js";
|
|
10
16
|
import {
|
|
11
17
|
answered,
|
|
12
18
|
failed,
|
|
13
|
-
registerCommands
|
|
14
|
-
|
|
15
|
-
toolsFromCommands
|
|
16
|
-
} from "./chunk-ESOFH7PA.js";
|
|
19
|
+
registerCommands
|
|
20
|
+
} from "./chunk-JWLODUN3.js";
|
|
17
21
|
import {
|
|
18
|
-
agentJson
|
|
19
|
-
|
|
20
|
-
} from "./chunk-5UPEEMEF.js";
|
|
22
|
+
agentJson
|
|
23
|
+
} from "./chunk-J5RB4ASI.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-YVI5SQPY.js";
|
|
28
|
+
} from "./chunk-4S2DHHJM.js";
|
|
29
|
+
import "./chunk-XS4EE7MO.js";
|
|
30
|
+
import "./chunk-7GGDCQJ5.js";
|
|
31
|
+
import "./chunk-YHTSJMZ5.js";
|
|
32
|
+
import "./chunk-M323L5SG.js";
|
|
33
|
+
import "./chunk-3PG6QVQZ.js";
|
|
34
|
+
import "./chunk-MXA3FU2R.js";
|
|
35
|
+
import "./chunk-FR3ATU5I.js";
|
|
36
|
+
import "./chunk-ANBI3OXK.js";
|
|
35
37
|
import {
|
|
36
38
|
mcpHttpMarker
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-H3TLAYGY.js";
|
|
40
|
+
import "./chunk-HETHFOHC.js";
|
|
39
41
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
42
|
+
runCommandForAgent,
|
|
43
|
+
toolsFromCommands
|
|
44
|
+
} from "./chunk-WGGUKQE7.js";
|
|
45
|
+
import "./chunk-V6G4LTXU.js";
|
|
46
|
+
import "./chunk-YPJCURT6.js";
|
|
47
|
+
import "./chunk-PRM7GKBV.js";
|
|
48
|
+
import "./chunk-QYRK4XXH.js";
|
|
49
|
+
import {
|
|
50
|
+
McpServer
|
|
51
|
+
} from "./chunk-PL5P7UKW.js";
|
|
52
|
+
import "./chunk-O3QBO6NW.js";
|
|
53
|
+
import "./chunk-CNGNR4CY.js";
|
|
54
|
+
import "./chunk-JAL443BH.js";
|
|
55
|
+
import "./chunk-MMDFPBFZ.js";
|
|
56
|
+
import "./chunk-DG35TQ6P.js";
|
|
57
|
+
import "./chunk-ZC7OEYDX.js";
|
|
58
|
+
import "./chunk-JXEO5EIN.js";
|
|
59
|
+
import "./chunk-4R2ZJGFF.js";
|
|
60
|
+
import "./chunk-O4ZOQJ6W.js";
|
|
61
|
+
import "./chunk-PRI2XTM7.js";
|
|
62
|
+
import "./chunk-3ZNO27UE.js";
|
|
63
|
+
import "./chunk-W2QSDPG6.js";
|
|
64
|
+
import "./chunk-VNJRWFHP.js";
|
|
65
|
+
import "./chunk-FR4Y5CGW.js";
|
|
66
|
+
import "./chunk-PZ2ZFPGO.js";
|
|
56
67
|
import "./chunk-D72URWJE.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-L4PNDW4S.js";
|
|
69
|
+
import "./chunk-VH4J7IIS.js";
|
|
70
|
+
import "./chunk-IJ7R2WMK.js";
|
|
60
71
|
import {
|
|
61
72
|
DEFAULT_OUTPUT_BYTES,
|
|
62
73
|
changesAuthorityAt,
|
|
@@ -66,37 +77,37 @@ import {
|
|
|
66
77
|
judgedTargets,
|
|
67
78
|
readsOverMcpAt,
|
|
68
79
|
rootOf2 as rootOf
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-CDKXZLMP.js";
|
|
81
|
+
import "./chunk-L47PFECD.js";
|
|
82
|
+
import "./chunk-CA7DY2YU.js";
|
|
72
83
|
import {
|
|
73
84
|
readOnlyLockOf
|
|
74
|
-
} from "./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-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
85
|
+
} from "./chunk-OJSPB4LA.js";
|
|
86
|
+
import "./chunk-K5FK6WWN.js";
|
|
87
|
+
import "./chunk-XLNV3U6N.js";
|
|
88
|
+
import "./chunk-HEZK4W3U.js";
|
|
89
|
+
import "./chunk-4X6BX3XP.js";
|
|
90
|
+
import "./chunk-2JWY7CXJ.js";
|
|
91
|
+
import "./chunk-HD7DV5B2.js";
|
|
92
|
+
import "./chunk-WPXVJGSL.js";
|
|
93
|
+
import "./chunk-JCDD5T3A.js";
|
|
94
|
+
import "./chunk-77E7Q4EQ.js";
|
|
95
|
+
import "./chunk-NYEVPAF2.js";
|
|
96
|
+
import "./chunk-UTTEAOJ3.js";
|
|
97
|
+
import "./chunk-XVRLD3LN.js";
|
|
98
|
+
import "./chunk-6UNLEQA5.js";
|
|
88
99
|
import {
|
|
89
100
|
mcpErrorResult
|
|
90
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-SPXNI53Z.js";
|
|
91
102
|
import "./chunk-Y5E2WNWB.js";
|
|
92
103
|
import {
|
|
93
104
|
CliError
|
|
94
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-PK5WEGPJ.js";
|
|
95
106
|
import {
|
|
96
107
|
__name
|
|
97
108
|
} from "./chunk-ZVVMGPBJ.js";
|
|
98
109
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
100
111
|
var EXCLUDED = [["mcp"]];
|
|
101
112
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
102
113
|
let at = root;
|
|
@@ -177,7 +188,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
177
188
|
}, "run")
|
|
178
189
|
}
|
|
179
190
|
]));
|
|
180
|
-
const
|
|
191
|
+
const skills = options.skill ? skillResources(app, options.skill) : [];
|
|
192
|
+
const skill = skills[0];
|
|
181
193
|
const build = /* @__PURE__ */ __name(() => {
|
|
182
194
|
const server = new McpServer({ name: app.command, version: app.version }, {
|
|
183
195
|
instructions: appInstructions({
|
|
@@ -189,10 +201,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
189
201
|
})
|
|
190
202
|
});
|
|
191
203
|
registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
|
|
192
|
-
|
|
193
|
-
const { uri, name, title, description, mimeType, read } = skill;
|
|
204
|
+
for (const { uri, name, title, description, mimeType, read } of skills)
|
|
194
205
|
server.registerResource(name, uri, { title, description, mimeType }, read);
|
|
195
|
-
}
|
|
196
206
|
return server;
|
|
197
207
|
}, "build");
|
|
198
208
|
return { build, offered: Object.keys(commands) };
|
|
@@ -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-VSLLMILH.js");
|
|
217
227
|
const listening = await serveOverHttp(build, {
|
|
218
228
|
...http,
|
|
219
229
|
appName: app.command,
|