@wirecat/amo-cli 0.2.0 → 0.4.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/CHANGELOG.md +47 -0
- package/README.md +19 -14
- package/contracts/wirecat.json +58 -19
- package/dist/amo/button.d.ts +53 -0
- package/dist/amo/button.d.ts.map +1 -0
- package/dist/amo/button.js +234 -0
- package/dist/amo/button.js.map +1 -0
- package/dist/amo/oauth.d.ts +12 -3
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +19 -6
- package/dist/amo/oauth.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-43BMVBX2.js +40 -0
- package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PRNXEZRH.js} +63 -21
- package/dist/bundle/amo.js +28 -26
- package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-FDI24DU2.js} +5 -5
- package/dist/bundle/{app-server-2MST5EZ5.js → app-server-WAKJVDLN.js} +79 -68
- package/dist/bundle/{bun-4NHWOFX2.js → bun-YPXUXMBI.js} +2 -2
- package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-UBQ5M47X.js} +6 -6
- package/dist/bundle/chunk-23AQD7JU.js +559 -0
- package/dist/bundle/{chunk-2I5UVMLW.js → chunk-2AIG2SSJ.js} +1733 -1160
- package/dist/bundle/{chunk-DQV2IKCF.js → chunk-2UJ7ZZZC.js} +10 -3
- package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3K6T2G52.js} +43 -64
- package/dist/bundle/chunk-3PCVQCCV.js +108 -0
- package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/chunk-4PQECIU2.js +30 -0
- package/dist/bundle/{chunk-T2UDLX76.js → chunk-5HZMXHRH.js} +6 -6
- package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-5II6TAJE.js} +1 -1
- package/dist/bundle/{chunk-RPWAJYI6.js → chunk-5SJEJYQZ.js} +3 -3
- package/dist/bundle/{chunk-5QFHNBGB.js → chunk-6PILR4AX.js} +2 -2
- package/dist/bundle/{chunk-TNUFLULO.js → chunk-6QMSKJB4.js} +8 -8
- package/dist/bundle/{chunk-5RLUHTK6.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-AUBB72VF.js → chunk-7OVTUADG.js} +41 -10
- package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-A4W7J6VN.js} +34 -22
- package/dist/bundle/chunk-ABMPZL2P.js +734 -0
- package/dist/bundle/{chunk-EROSAUNP.js → chunk-AN6IJYH3.js} +5 -5
- package/dist/bundle/{chunk-SZ2V62HB.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-ESZSMZKT.js → chunk-ASU63X5C.js} +2 -2
- package/dist/bundle/{chunk-EPOV5UIO.js → chunk-BCIZAUDV.js} +11 -11
- package/dist/bundle/{chunk-7PKFYX7V.js → chunk-CEBX63XY.js} +8 -8
- package/dist/bundle/{chunk-7GTUZY7M.js → chunk-CYHIM5SL.js} +3 -3
- package/dist/bundle/chunk-DWA5TZMP.js +209 -0
- package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-DWD3KDJA.js} +1 -1
- package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-E3EWS6DF.js} +23 -7
- package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EAX5RO7S.js} +1 -1
- package/dist/bundle/{chunk-LJQUYECN.js → chunk-EBNCUQLV.js} +1 -1
- package/dist/bundle/{chunk-UBRREVLJ.js → chunk-ELAKOEIO.js} +2 -2
- package/dist/bundle/{chunk-DAY6TSPF.js → chunk-FEUNZG7U.js} +62 -50
- package/dist/bundle/{chunk-63F65DHU.js → chunk-FQRP6JWX.js} +2 -2
- package/dist/bundle/{chunk-SMSTGO2G.js → chunk-G3LAYJJJ.js} +4 -4
- package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-GBQ76X6T.js} +2 -2
- package/dist/bundle/{chunk-CHUKWON6.js → chunk-GJBOZAUD.js} +3 -3
- package/dist/bundle/{chunk-A33TIM5D.js → chunk-GMHRPX5M.js} +225 -225
- package/dist/bundle/{chunk-O2UCU52O.js → chunk-GQKEMBM6.js} +171 -569
- package/dist/bundle/{chunk-EQUKVVHX.js → chunk-HDZNSOV5.js} +7 -7
- package/dist/bundle/{chunk-ZM7I52EP.js → chunk-HZZ56JO7.js} +3 -4
- package/dist/bundle/{chunk-XQL7FEF4.js → chunk-IBEHYGG6.js} +9 -9
- package/dist/bundle/{chunk-U7RLVJ34.js → chunk-IPNIF5JE.js} +4 -4
- package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KBAOJISR.js} +18 -8
- package/dist/bundle/{chunk-ADEWU4P4.js → chunk-KORZEYZN.js} +1 -1
- package/dist/bundle/{chunk-JMDLPBXK.js → chunk-KQZTX4LM.js} +17 -17
- package/dist/bundle/{chunk-NHXJYS4R.js → chunk-KRD375P7.js} +32 -28
- package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-LAR2DLTI.js} +4 -4
- package/dist/bundle/{chunk-NC76INB2.js → chunk-LZ4IWN43.js} +3088 -2266
- package/dist/bundle/{chunk-BVMNXI53.js → chunk-M33XHJTM.js} +25 -25
- package/dist/bundle/{chunk-WCYCUTSK.js → chunk-M54YKD3I.js} +7 -7
- package/dist/bundle/{chunk-LSND5QYI.js → chunk-MW7HUD6R.js} +9 -9
- package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-NFWD4QX3.js} +2 -2
- package/dist/bundle/{chunk-PM77PRB6.js → chunk-NKYWQTS2.js} +189 -163
- package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-NXNUCGGO.js} +6 -6
- package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-O3WE5IGP.js} +9 -9
- package/dist/bundle/chunk-OYMHPQF7.js +52 -0
- package/dist/bundle/{chunk-VVHRQ46X.js → chunk-PIOR6PIO.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-XEFAMLSD.js → chunk-PL7TNKAY.js} +3 -3
- package/dist/bundle/chunk-PLU2IQXC.js +80 -0
- package/dist/bundle/{chunk-73CXFE36.js → chunk-QGFURWEP.js} +29 -1
- package/dist/bundle/{chunk-CDY2NJFE.js → chunk-RQPB2BSH.js} +2 -2
- package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-S6DTLAOB.js} +12 -12
- package/dist/bundle/{chunk-DJD7TBYG.js → chunk-SCMB4LI6.js} +76 -74
- package/dist/bundle/{chunk-TGEQNS6G.js → chunk-SFZVMKB6.js} +1 -1
- package/dist/bundle/{chunk-PFO76YFP.js → chunk-SHOSFYI7.js} +18 -18
- package/dist/bundle/{chunk-5SBLU7D7.js → chunk-SMM7GS4Q.js} +1 -1
- package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-SNBYFQHT.js} +1 -1
- package/dist/bundle/{chunk-GNTJMB6X.js → chunk-SZX7EPPY.js} +4 -4
- package/dist/bundle/{chunk-VX37MPTJ.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TEGQVVCZ.js} +1992 -885
- package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-TIR3AB35.js} +758 -1205
- package/dist/bundle/{chunk-5HGGG3QO.js → chunk-U46RNOEQ.js} +16 -3
- package/dist/bundle/{chunk-Y37A3232.js → chunk-UCM7C773.js} +130 -8
- package/dist/bundle/{chunk-L6AFE73L.js → chunk-UEN5NWNW.js} +1 -1
- package/dist/bundle/{chunk-6RS7OYTD.js → chunk-V2QWX6B3.js} +3 -3
- package/dist/bundle/{chunk-3IRJDH2U.js → chunk-V5SETIQK.js} +2 -100
- package/dist/bundle/{chunk-JR6TSMFX.js → chunk-VEFAYLKX.js} +103 -70
- package/dist/bundle/{chunk-CUZRHF34.js → chunk-VG26HDKH.js} +4 -4
- package/dist/bundle/{chunk-4ZAK773N.js → chunk-VG2ERHFJ.js} +3 -3
- package/dist/bundle/{chunk-CHH42KI4.js → chunk-WAFB3IWJ.js} +8 -8
- package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-DXGGCGRP.js → chunk-WEWJA42Q.js} +14 -14
- package/dist/bundle/chunk-WR2FPZTE.js +353 -0
- package/dist/bundle/chunk-XEYT2EQT.js +338 -0
- package/dist/bundle/{chunk-DOSJONCX.js → chunk-YFRTEJ6V.js} +7 -7
- package/dist/bundle/{chunk-XRTD2GCU.js → chunk-YHVHDRED.js} +19 -258
- package/dist/bundle/{chunk-JH3UOHRE.js → chunk-YREKMP24.js} +4 -4
- package/dist/bundle/{chunk-V77XNPXG.js → chunk-Z2B3VNRI.js} +11 -11
- package/dist/bundle/{chunk-FKR3M62D.js → chunk-ZJC2XJQC.js} +13 -13
- package/dist/bundle/{chunk-5E5R65CA.js → chunk-ZKRWNL4T.js} +2 -2
- package/dist/bundle/{cli-QVWTXADI.js → cli-QDPKC2HJ.js} +150 -103
- package/dist/bundle/command-contract-KWNCP3MQ.js +39 -0
- package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-TX7WNN7G.js} +28 -28
- package/dist/bundle/{decode-SQ5WGNDX.js → decode-BLPC7OYE.js} +5 -5
- package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-5JUT55CS.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-25Z3RINX.js → echarts-54D3FOCL.js} +2 -2
- package/dist/bundle/{embed-BNOTNXMA.js → embed-O7KMDYM7.js} +6 -6
- package/dist/bundle/{embedder-BCUT7KKV.js → embedder-4PE67CLX.js} +9 -9
- package/dist/bundle/{failure-PKAC6XCT.js → failure-NNQYTB3Z.js} +2 -2
- package/dist/bundle/{first-run-EO5K5GME.js → first-run-EAU5SHBI.js} +12 -12
- package/dist/bundle/first-screen-APSNGZYZ.js +39 -0
- package/dist/bundle/{instructions-VLM3QAYB.js → instructions-ONXP5DZQ.js} +1 -1
- package/dist/bundle/{mcp-7ILNMJH5.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-W2XIYXFU.js +24 -0
- package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-FWIZRKVN.js} +11 -11
- package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-M4YVJ57W.js} +6 -6
- package/dist/bundle/{node-CT3N3TNL.js → node-UTQCYQF5.js} +2 -2
- package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-APJG6MGL.js} +7 -7
- package/dist/bundle/{oauth-YBH5OKC2.js → oauth-TY7RMIBL.js} +8 -8
- package/dist/bundle/{open-WNSBWTAG.js → open-WDVEQL75.js} +5 -5
- package/dist/bundle/{openai-XSNMNLW6.js → openai-H5UJHSEZ.js} +15 -15
- package/dist/bundle/{process-I2QKOMM7.js → process-MGMXXPMY.js} +1 -1
- package/dist/bundle/{program-G6O3IJR2.js → program-IF36C6VR.js} +969 -1127
- package/dist/bundle/{prompt-SOG4AKPM.js → prompt-4RLIWLMF.js} +5 -5
- package/dist/bundle/{recognize-WMQLWMXH.js → recognize-UIRTMWM4.js} +4 -4
- package/dist/bundle/{remote-4BTFOLFY.js → remote-L3MNWZQK.js} +9 -9
- package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-F4KZQTY6.js} +7 -7
- package/dist/bundle/{serve-B6UANKXN.js → serve-37AUYTWS.js} +10 -10
- package/dist/bundle/server-CRF4QSZR.js +86 -0
- package/dist/bundle/{server-YRH6GJ5Z.js → server-UBG676ZJ.js} +73 -61
- package/dist/bundle/source-Z7GH7T4B.js +44 -0
- package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-CI3RW7VA.js} +6 -6
- package/dist/bundle/{state-DIJ5YUOE.js → state-JOHLSLUO.js} +6 -6
- package/dist/bundle/{store-MYTYDV6A.js → store-2MBG4IUS.js} +28 -21
- package/dist/bundle/{store-6WFWW7EC.js → store-OSOUXBYL.js} +28 -23
- package/dist/bundle/store-SNW6U32Y.js +34 -0
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +73 -0
- package/dist/bundle/surface-ESJS2FUI.js +72 -0
- package/dist/bundle/writer-BJDQMKUV.js +46 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +23 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +122 -77
- package/dist/commands/session.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.js +2 -2
- package/dist/reasons.js.map +1 -1
- package/dist/setup/flow.d.ts.map +1 -1
- package/dist/setup/flow.js +74 -4
- package/dist/setup/flow.js.map +1 -1
- package/dist/setup/texts.en.json +22 -1
- package/dist/setup/texts.es.json +22 -1
- package/dist/setup/texts.ru.json +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/amo-cli/references/setup.md +8 -2
- package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
- package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
- package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
- package/dist/bundle/server-S6XD6V6E.js +0 -77
- package/dist/bundle/source-DGFTA2TN.js +0 -42
- package/dist/bundle/store-CHWY2USQ.js +0 -32
- package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
- package/dist/bundle/writer-GP7VIMAU.js +0 -44
|
@@ -12,10 +12,31 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KRD375P7.js";
|
|
16
|
+
import {
|
|
17
|
+
skillResources
|
|
18
|
+
} from "./chunk-YHVHDRED.js";
|
|
19
|
+
import {
|
|
20
|
+
StdioServerTransport,
|
|
21
|
+
answeredWire,
|
|
22
|
+
serveStdio
|
|
23
|
+
} from "./chunk-V5SETIQK.js";
|
|
16
24
|
import {
|
|
17
25
|
stdinFieldOf
|
|
18
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UEN5NWNW.js";
|
|
27
|
+
import {
|
|
28
|
+
connectedFor
|
|
29
|
+
} from "./chunk-A4W7J6VN.js";
|
|
30
|
+
import {
|
|
31
|
+
wholeList
|
|
32
|
+
} from "./chunk-WR2FPZTE.js";
|
|
33
|
+
import {
|
|
34
|
+
runCommandForAgent,
|
|
35
|
+
toolsFromCommands
|
|
36
|
+
} from "./chunk-GQKEMBM6.js";
|
|
37
|
+
import {
|
|
38
|
+
instructions
|
|
39
|
+
} from "./chunk-SNBYFQHT.js";
|
|
19
40
|
import {
|
|
20
41
|
BinaryResource,
|
|
21
42
|
Picture,
|
|
@@ -30,52 +51,43 @@ import {
|
|
|
30
51
|
outcomeOf,
|
|
31
52
|
outputOf,
|
|
32
53
|
registerCommands,
|
|
33
|
-
runCommandForAgent,
|
|
34
54
|
surfaceCommands,
|
|
35
55
|
tierOf,
|
|
36
56
|
tool,
|
|
37
|
-
toolKey
|
|
38
|
-
|
|
39
|
-
} from "./chunk-O2UCU52O.js";
|
|
40
|
-
import {
|
|
41
|
-
agentJson,
|
|
42
|
-
skillResources
|
|
43
|
-
} from "./chunk-XRTD2GCU.js";
|
|
57
|
+
toolKey
|
|
58
|
+
} from "./chunk-23AQD7JU.js";
|
|
44
59
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
callerOf,
|
|
48
|
-
callingAgent,
|
|
49
|
-
serveStdio
|
|
50
|
-
} from "./chunk-3IRJDH2U.js";
|
|
60
|
+
agentJson
|
|
61
|
+
} from "./chunk-DWA5TZMP.js";
|
|
51
62
|
import {
|
|
52
|
-
connectedFor
|
|
53
|
-
} from "./chunk-7U5HJEPZ.js";
|
|
54
|
-
import {
|
|
55
|
-
capability,
|
|
56
63
|
imageSize,
|
|
57
64
|
lackedNeed,
|
|
58
65
|
servicesFor,
|
|
59
|
-
storedDeps
|
|
60
|
-
|
|
61
|
-
} from "./chunk-Q2VNBY4Y.js";
|
|
66
|
+
storedDeps
|
|
67
|
+
} from "./chunk-TIR3AB35.js";
|
|
62
68
|
import {
|
|
63
|
-
dateWindow,
|
|
64
69
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-2AIG2SSJ.js";
|
|
66
71
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
callerOf,
|
|
73
|
+
callingAgent
|
|
74
|
+
} from "./chunk-3PCVQCCV.js";
|
|
75
|
+
import {
|
|
76
|
+
capability
|
|
77
|
+
} from "./chunk-4PQECIU2.js";
|
|
78
|
+
import {
|
|
79
|
+
dateWindow
|
|
80
|
+
} from "./chunk-ABMPZL2P.js";
|
|
69
81
|
import {
|
|
70
82
|
McpServer,
|
|
71
83
|
ResourceTemplate
|
|
72
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-PL5P7UKW.js";
|
|
73
85
|
import {
|
|
74
86
|
mcpHttpMarker
|
|
75
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-YREKMP24.js";
|
|
76
88
|
import {
|
|
77
89
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AN6IJYH3.js";
|
|
79
91
|
import {
|
|
80
92
|
DEFAULT_OUTPUT_BYTES,
|
|
81
93
|
changesAuthorityAt,
|
|
@@ -90,31 +102,31 @@ import {
|
|
|
90
102
|
rootOf2 as rootOf,
|
|
91
103
|
sealed,
|
|
92
104
|
snakeKeys
|
|
93
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-NKYWQTS2.js";
|
|
94
106
|
import {
|
|
95
107
|
withCaller
|
|
96
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-M54YKD3I.js";
|
|
97
109
|
import {
|
|
98
110
|
openStore,
|
|
99
111
|
pdfPreviewLimits
|
|
100
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TEGQVVCZ.js";
|
|
101
113
|
import {
|
|
102
114
|
typedCommand
|
|
103
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-M33XHJTM.js";
|
|
104
116
|
import {
|
|
105
117
|
isCliFailure
|
|
106
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-ELAKOEIO.js";
|
|
107
119
|
import {
|
|
108
120
|
warmEmbedders
|
|
109
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-3K6T2G52.js";
|
|
110
122
|
import {
|
|
111
123
|
fetchesAt,
|
|
112
124
|
levelFor,
|
|
113
125
|
readKeysForCommand
|
|
114
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-KBAOJISR.js";
|
|
115
127
|
import {
|
|
116
128
|
timezoneOf
|
|
117
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-GMHRPX5M.js";
|
|
118
130
|
import {
|
|
119
131
|
description,
|
|
120
132
|
errorObjectOf,
|
|
@@ -131,19 +143,19 @@ import {
|
|
|
131
143
|
regex,
|
|
132
144
|
strictObject,
|
|
133
145
|
string
|
|
134
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-7OVTUADG.js";
|
|
135
147
|
import {
|
|
136
148
|
CliError,
|
|
137
149
|
visibleControls
|
|
138
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-AP3CWDRK.js";
|
|
139
151
|
import {
|
|
140
152
|
__name
|
|
141
153
|
} from "./chunk-ZVVMGPBJ.js";
|
|
142
154
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
144
156
|
import { randomUUID } from "node:crypto";
|
|
145
157
|
|
|
146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
147
159
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
148
160
|
let held;
|
|
149
161
|
return {
|
|
@@ -162,7 +174,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
162
174
|
};
|
|
163
175
|
}, "agentLog");
|
|
164
176
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
166
178
|
var LISTED = 100;
|
|
167
179
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
168
180
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -200,7 +212,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
200
212
|
});
|
|
201
213
|
}, "registerResources");
|
|
202
214
|
|
|
203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
204
216
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
205
217
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
206
218
|
var MessengerSession = class {
|
|
@@ -275,7 +287,7 @@ var MessengerSession = class {
|
|
|
275
287
|
}
|
|
276
288
|
};
|
|
277
289
|
|
|
278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
279
291
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
280
292
|
const _command = messenger.app.command;
|
|
281
293
|
return {
|
|
@@ -329,7 +341,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
329
341
|
};
|
|
330
342
|
}, "attachmentsTools");
|
|
331
343
|
|
|
332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
333
345
|
var PHOTO_LIMIT = 512 * 1024;
|
|
334
346
|
var IMAGE_TYPES = [
|
|
335
347
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -385,7 +397,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
385
397
|
return new Uint8Array(Buffer.concat(chunks));
|
|
386
398
|
}, "readUpTo");
|
|
387
399
|
|
|
388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
389
401
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
390
402
|
stats_charts: tool({
|
|
391
403
|
title: "A chart from a chat's statistics",
|
|
@@ -422,14 +434,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
422
434
|
})
|
|
423
435
|
}), "statsTools");
|
|
424
436
|
|
|
425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
426
438
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
427
439
|
...messagesPhotoTools(messenger),
|
|
428
440
|
...attachmentsTools(messenger),
|
|
429
441
|
...statsTools(messenger)
|
|
430
442
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
431
443
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
433
445
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
434
446
|
"streams",
|
|
435
447
|
"stdin",
|
|
@@ -745,7 +757,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
745
757
|
}, "serveOverStdio");
|
|
746
758
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
747
759
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
748
|
-
const { serveOverHttp } = await import("./serve-
|
|
760
|
+
const { serveOverHttp } = await import("./serve-37AUYTWS.js");
|
|
749
761
|
const appName = messenger.app.command;
|
|
750
762
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
751
763
|
const listening = await serveOverHttp(build, {
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AP3CWDRK.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YFRTEJ6V.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZKRWNL4T.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AP3CWDRK.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AP3CWDRK.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
ENTITIES,
|
|
5
5
|
LOST,
|
|
6
6
|
WON
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DWD3KDJA.js";
|
|
8
8
|
import {
|
|
9
9
|
fieldNamed,
|
|
10
10
|
foldFieldName,
|
|
11
11
|
optionOf,
|
|
12
12
|
values_exports
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2AIG2SSJ.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError,
|
|
16
16
|
isCliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AP3CWDRK.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|