@opentiny/next 0.0.1 → 0.1.1
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 +437 -1
- package/client.d.ts +237 -0
- package/client.js +361 -281
- package/package.json +13 -4
- package/server.d.ts +91 -0
- package/server.js +236 -182
package/client.js
CHANGED
|
@@ -1,369 +1,449 @@
|
|
|
1
|
-
import { JSONRPCMessageSchema as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const x = l();
|
|
9
|
-
return d = function(e, n) {
|
|
10
|
-
return e = e - (5798 + -1555 * -2 + -8483), x[e];
|
|
11
|
-
}, d(r, t);
|
|
12
|
-
}
|
|
13
|
-
const f = d;
|
|
14
|
-
(function(r, t) {
|
|
15
|
-
const x = d, e = r();
|
|
1
|
+
import { JSONRPCMessageSchema as E } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { Client as O } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
|
+
import { SSEClientTransport as F } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
|
+
import { StreamableHTTPClientTransport as T } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
+
const u = f;
|
|
6
|
+
(function(n, t) {
|
|
7
|
+
const x = f, e = n();
|
|
16
8
|
for (; ; )
|
|
17
9
|
try {
|
|
18
|
-
if (parseInt(x(
|
|
10
|
+
if (-parseInt(x(394)) / 1 + parseInt(x(369)) / 2 * (parseInt(x(420)) / 3) + -parseInt(x(407)) / 4 * (parseInt(x(411)) / 5) + -parseInt(x(387)) / 6 + -parseInt(x(396)) / 7 + parseInt(x(409)) / 8 * (-parseInt(x(377)) / 9) + parseInt(x(389)) / 10 === t) break;
|
|
19
11
|
e.push(e.shift());
|
|
20
12
|
} catch {
|
|
21
13
|
e.push(e.shift());
|
|
22
14
|
}
|
|
23
|
-
})(
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
15
|
+
})(I, -357608 + 915883 * 1);
|
|
16
|
+
const P = () => {
|
|
17
|
+
const n = f, t = { eoFcc: function(x, e) {
|
|
18
|
+
return x !== e;
|
|
19
|
+
}, SxqCn: n(418), hzpbK: function(x, e) {
|
|
20
|
+
return x !== e;
|
|
21
|
+
}, keGCQ: function(x, e) {
|
|
22
|
+
return x !== e;
|
|
23
|
+
}, IhDbz: function(x, e) {
|
|
24
|
+
return x !== e;
|
|
25
|
+
}, swBtO: function(x, e) {
|
|
26
|
+
return x(e);
|
|
27
|
+
}, RJumM: n(422) };
|
|
28
|
+
return t[n(413)](typeof globalThis, t.SxqCn) ? globalThis : t[n(363)](typeof window, n(418)) ? window : t[n(378)](typeof global, t[n(395)]) ? global : t[n(372)](typeof self, t[n(395)]) ? self : t.swBtO(Function, t.RJumM)();
|
|
29
|
+
}, K = (n, t, x) => {
|
|
30
|
+
const e = f, s = { AwncL: function(r, a) {
|
|
31
|
+
return r !== a;
|
|
32
|
+
}, wZZqC: e(418), Ixnur: function(r, a) {
|
|
33
|
+
return r in a;
|
|
34
|
+
}, vUSIx: e(404), RPGPk: function(r, a) {
|
|
35
|
+
return r === a;
|
|
36
|
+
}, QDcVB: e(398) };
|
|
37
|
+
s[e(423)](typeof window, s[e(388)]) ? n[e(404)](t, "*", x) : s[e(362)](s.vUSIx, n) && s[e(359)](typeof n[e(404)], s[e(373)]) && n[e(404)](t, x);
|
|
38
|
+
}, A = (n, t) => {
|
|
39
|
+
const x = f, e = { ThjIi: function(s, r) {
|
|
40
|
+
return s in r;
|
|
41
|
+
}, HvuaL: x(421), CBUTj: function(s, r) {
|
|
42
|
+
return s === r;
|
|
43
|
+
}, sldHw: "function", BfokF: x(415), djaJW: function(s, r) {
|
|
44
|
+
return s !== r;
|
|
45
|
+
}, Kuecn: x(418) };
|
|
46
|
+
e[x(379)](e[x(417)], n) && e[x(361)](typeof n[x(421)], e[x(381)]) ? n.addEventListener(x(368), t) : e[x(379)](e[x(371)], n) && e[x(364)](typeof n[x(415)], e.Kuecn) && (n[x(415)] = t);
|
|
47
|
+
};
|
|
48
|
+
class l {
|
|
31
49
|
constructor(t, x) {
|
|
32
|
-
const e =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
const e = f, s = { Eolxy: e(382) }, r = s.Eolxy[e(400)]("|");
|
|
51
|
+
let a = -28 * 54 + -5195 * -1 + 29 * -127;
|
|
52
|
+
for (; ; ) {
|
|
53
|
+
switch (r[a++]) {
|
|
54
|
+
case "0":
|
|
55
|
+
this[e(370)] = !1;
|
|
56
|
+
continue;
|
|
57
|
+
case "1":
|
|
58
|
+
this[e(384)] = t;
|
|
59
|
+
continue;
|
|
60
|
+
case "2":
|
|
61
|
+
this[e(419)] = x;
|
|
62
|
+
continue;
|
|
63
|
+
case "3":
|
|
64
|
+
this[e(403)] = !1;
|
|
65
|
+
continue;
|
|
66
|
+
case "4":
|
|
67
|
+
this[e(403)] = !1;
|
|
68
|
+
continue;
|
|
69
|
+
case "5":
|
|
70
|
+
this._started = !1;
|
|
71
|
+
continue;
|
|
45
72
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const s = e, c = new Error(s(449) + JSON[s(440)](a));
|
|
49
|
-
(o = this[s(441)]) == null || o.call(this, c);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
async [f(448)]() {
|
|
53
|
-
const t = f, x = { KcgGf: t(438), lprlU: "Cannot start a closed MessageChannel Transport" };
|
|
54
|
-
if (this[t(439)]) throw new Error(x[t(465)]);
|
|
55
|
-
if (this[t(447)]) throw new Error(x[t(453)]);
|
|
56
|
-
this[t(439)] = !0, this._port[t(448)]();
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
57
75
|
}
|
|
58
|
-
async
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return new Promise((n, a) => {
|
|
64
|
-
var c;
|
|
65
|
-
const s = x;
|
|
76
|
+
async start() {
|
|
77
|
+
const t = f;
|
|
78
|
+
this[t(370)] || this[t(403)] || !this[t(384)] || (this[t(370)] = !0, this[t(384)].onmessage = (x) => {
|
|
79
|
+
var s, r;
|
|
80
|
+
const e = t;
|
|
66
81
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
82
|
+
const a = E[e(393)](x[e(365)]);
|
|
83
|
+
(s = this.onmessage) == null || s.call(this, a);
|
|
84
|
+
} catch (a) {
|
|
85
|
+
const c = new Error(e(406) + a);
|
|
86
|
+
(r = this.onerror) == null || r.call(this, c);
|
|
71
87
|
}
|
|
72
|
-
})
|
|
88
|
+
}, this._port[t(392)] = (x) => {
|
|
89
|
+
var r;
|
|
90
|
+
const e = t, s = new Error(e(410) + JSON[e(414)](x));
|
|
91
|
+
(r = this[e(375)]) == null || r.call(this, s);
|
|
92
|
+
}, this[t(384)][t(391)]());
|
|
73
93
|
}
|
|
74
|
-
async [
|
|
94
|
+
async [u(376)](t) {
|
|
95
|
+
const x = u, e = { ibylp: function(s) {
|
|
96
|
+
return s();
|
|
97
|
+
}, YUWFy: function(s, r) {
|
|
98
|
+
return s instanceof r;
|
|
99
|
+
}, YiYoE: function(s, r) {
|
|
100
|
+
return s(r);
|
|
101
|
+
} };
|
|
102
|
+
if (!(this[x(403)] || !this[x(384)]))
|
|
103
|
+
return new Promise((s, r) => {
|
|
104
|
+
var c;
|
|
105
|
+
const a = x;
|
|
106
|
+
try {
|
|
107
|
+
this._port && this[a(384)].postMessage(t), e[a(397)](s);
|
|
108
|
+
} catch (i) {
|
|
109
|
+
const o = e[a(390)](i, Error) ? i : new Error(String(i));
|
|
110
|
+
(c = this[a(375)]) == null || c.call(this, o), e[a(360)](r, o);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
async [u(366)]() {
|
|
75
115
|
var x;
|
|
76
|
-
const t =
|
|
77
|
-
this[t(
|
|
116
|
+
const t = u;
|
|
117
|
+
this[t(403)] || !this[t(384)] || (this[t(403)] = !0, this[t(384)].close(), (x = this[t(380)]) == null || x.call(this));
|
|
78
118
|
}
|
|
79
|
-
get [
|
|
119
|
+
get [u(374)]() {
|
|
80
120
|
return this._sessionId;
|
|
81
121
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
122
|
+
}
|
|
123
|
+
function f(n, t) {
|
|
124
|
+
const x = I();
|
|
125
|
+
return f = function(e, s) {
|
|
126
|
+
return e = e - (131 * 66 + 5949 + -2 * 7118), x[e];
|
|
127
|
+
}, f(n, t);
|
|
128
|
+
}
|
|
129
|
+
function I() {
|
|
130
|
+
const n = ["addEventListener", "return this", "AwncL", "nOEGD", "RPGPk", "YiYoE", "CBUTj", "Ixnur", "hzpbK", "djaJW", "data", "close", "endpoint", "message", "4ARUZHf", "_started", "BfokF", "IhDbz", "QDcVB", "sessionId", "onerror", "send", "18OrLbcV", "keGCQ", "ThjIi", "onclose", "sldHw", "5|3|1|2|0|4", "iSruD", "_port", "port1", "port2", "495048vBsdEc", "wZZqC", "36493080fdzFDv", "YUWFy", "start", "onmessageerror", "parse", "751150hwZqMZ", "SxqCn", "6555311ueCxUu", "ibylp", "function", "randomUUID", "split", "ports", "_globalObject", "_closed", "postMessage", "listen", "Failed to parse message: ", "72NoMgwN", "_listen", "1996768zCYstd", "MessagePort error: ", "289845qNPMHf", "_endpoint", "eoFcc", "stringify", "onmessage", "JmWeq", "HvuaL", "undefined", "_sessionId", "332598Ndvxsi"];
|
|
131
|
+
return I = function() {
|
|
132
|
+
return n;
|
|
133
|
+
}, I();
|
|
134
|
+
}
|
|
135
|
+
class Z extends l {
|
|
136
|
+
constructor(t, x = P()) {
|
|
137
|
+
const e = u, s = { BckOF: function(c, i, o, _) {
|
|
138
|
+
return c(i, o, _);
|
|
139
|
+
} };
|
|
140
|
+
super(), this[e(412)] = t, this[e(402)] = x;
|
|
141
|
+
const r = new MessageChannel(), a = crypto[e(399)]();
|
|
142
|
+
this[e(384)] = r[e(385)], this[e(419)] = a, s.BckOF(K, this._globalObject, { endpoint: this[e(412)], sessionId: a }, [r[e(386)]]);
|
|
85
143
|
}
|
|
86
144
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
145
|
+
class Y extends l {
|
|
146
|
+
constructor(t, x = P()) {
|
|
147
|
+
const e = u, s = { JmWeq: function(r, a) {
|
|
148
|
+
return r === a;
|
|
149
|
+
}, nOEGD: function(r, a, c) {
|
|
150
|
+
return r(a, c);
|
|
151
|
+
} };
|
|
152
|
+
super(), this._endpoint = t, this._globalObject = x, this[e(408)] = new Promise((r) => {
|
|
153
|
+
const a = e, c = { iSruD: function(i, o) {
|
|
154
|
+
return s[f(416)](i, o);
|
|
155
|
+
} };
|
|
156
|
+
s[a(424)](A, this[a(402)], (i) => {
|
|
157
|
+
const o = a;
|
|
158
|
+
i[o(365)] && c[o(383)](i[o(365)][o(367)], this[o(412)]) && (this[o(384)] = i[o(401)][0], this._sessionId = i[o(365)].sessionId, r());
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
async [u(405)]() {
|
|
163
|
+
return this._listen;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const V = () => {
|
|
167
|
+
const n = u, t = new MessageChannel(), x = crypto[n(399)]();
|
|
168
|
+
return [new l(t.port1, x), new l(t.port2, x)];
|
|
93
169
|
};
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
return
|
|
98
|
-
},
|
|
170
|
+
function w() {
|
|
171
|
+
const n = ["16zpbCUg", "send", "299232cTDNRm", "listTools", "9IdFesc", "resources/unsubscribe", "_client", "unsubscribeResource", "listResources", "WcXnL", "getPrompt", "87521sFAfiL", "tools/list", "tools/call", "resources/templates/list", "prompts/list", "nyLgz", "ping", "FCnsg", "readResource", "WVgLX", "6103410cUPqsQ", "1122354BAbafV", "setLoggingLevel", "prompts/get", "listPrompts", "iLzbz", "subscribeResource", "815916VpOEeJ", "logging/setLevel", "BaZMh", "zIXSr", "onmessage", "6wRkslE", "856568XHDqii", "970705fXlpas", "wIOEc", "completion/complete", "complete", "resources/subscribe", "callTool", "SXnjF", "listResourceTemplates"];
|
|
172
|
+
return w = function() {
|
|
173
|
+
return n;
|
|
174
|
+
}, w();
|
|
99
175
|
}
|
|
100
|
-
(function(
|
|
101
|
-
const x = p, e =
|
|
176
|
+
(function(n, t) {
|
|
177
|
+
const x = p, e = n();
|
|
102
178
|
for (; ; )
|
|
103
179
|
try {
|
|
104
|
-
if (-parseInt(x(
|
|
180
|
+
if (-parseInt(x(132)) / 1 + -parseInt(x(121)) / 2 + parseInt(x(109)) / 3 + parseInt(x(115)) / 4 + -parseInt(x(122)) / 5 * (parseInt(x(120)) / 6) + -parseInt(x(141)) / 7 * (parseInt(x(130)) / 8) + parseInt(x(134)) / 9 * (parseInt(x(108)) / 10) === t) break;
|
|
105
181
|
e.push(e.shift());
|
|
106
182
|
} catch {
|
|
107
183
|
e.push(e.shift());
|
|
108
184
|
}
|
|
109
|
-
})(
|
|
110
|
-
|
|
111
|
-
const x =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
185
|
+
})(w, -402528 + -58573 * -11);
|
|
186
|
+
function p(n, t) {
|
|
187
|
+
const x = w();
|
|
188
|
+
return p = function(e, s) {
|
|
189
|
+
return e = e - (7 * 431 + -2082 + -828), x[e];
|
|
190
|
+
}, p(n, t);
|
|
191
|
+
}
|
|
192
|
+
const D = async (n, t) => {
|
|
193
|
+
const x = p, e = { zIXSr: x(143), bNLyR: "resources/list", iLzbz: "resources/read", SXnjF: x(126), nyLgz: x(135), wIOEc: x(145), WcXnL: x(147), FCnsg: x(124), WVgLX: x(116), BaZMh: "2.0" };
|
|
194
|
+
let s;
|
|
195
|
+
const { id: r, method: a, params: c } = t;
|
|
196
|
+
if (a) {
|
|
197
|
+
switch (a) {
|
|
198
|
+
case x(142):
|
|
199
|
+
s = await n[x(136)][x(133)](c);
|
|
200
|
+
break;
|
|
201
|
+
case e[x(118)]:
|
|
202
|
+
s = await n[x(136)][x(127)](c);
|
|
203
|
+
break;
|
|
204
|
+
case e.bNLyR:
|
|
205
|
+
s = await n._client[x(138)](c);
|
|
206
|
+
break;
|
|
207
|
+
case x(144):
|
|
208
|
+
s = await n[x(136)][x(129)](c);
|
|
209
|
+
break;
|
|
210
|
+
case e[x(113)]:
|
|
211
|
+
s = await n._client[x(149)](c);
|
|
212
|
+
break;
|
|
213
|
+
case e[x(128)]:
|
|
214
|
+
s = await n[x(136)][x(114)](c);
|
|
215
|
+
break;
|
|
216
|
+
case e[x(146)]:
|
|
217
|
+
s = await n._client[x(137)](c);
|
|
218
|
+
break;
|
|
219
|
+
case x(111):
|
|
220
|
+
s = await n._client[x(140)](c);
|
|
221
|
+
break;
|
|
222
|
+
case e[x(123)]:
|
|
223
|
+
s = await n[x(136)][x(112)](c);
|
|
224
|
+
break;
|
|
225
|
+
case e[x(139)]:
|
|
226
|
+
s = await n._client[x(147)]();
|
|
227
|
+
break;
|
|
228
|
+
case e[x(148)]:
|
|
229
|
+
s = await n[x(136)][x(125)](c);
|
|
230
|
+
break;
|
|
231
|
+
case e[x(107)]:
|
|
232
|
+
s = await n._client[x(110)](c);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
return s && await n[x(131)]({ result: s, jsonrpc: e[x(117)], id: r }), s;
|
|
151
236
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
237
|
+
}, U = (n) => {
|
|
238
|
+
const t = p, x = { xxSai: function(s, r, a) {
|
|
239
|
+
return s(r, a);
|
|
240
|
+
} }, e = n[t(119)];
|
|
241
|
+
n[t(119)] = async (s) => {
|
|
242
|
+
if (n[t(136)]) {
|
|
243
|
+
let a;
|
|
244
|
+
try {
|
|
245
|
+
a = await x.xxSai(D, n, s);
|
|
246
|
+
} catch {
|
|
247
|
+
}
|
|
248
|
+
if (a === void 0 && e) try {
|
|
249
|
+
e.call(n, s);
|
|
250
|
+
} catch {
|
|
251
|
+
}
|
|
164
252
|
}
|
|
165
253
|
};
|
|
166
254
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
return e = e - (1 * 6661 + -1044 + -654 * 8), x[e];
|
|
171
|
-
}, p(r, t);
|
|
172
|
-
}
|
|
173
|
-
var I = v;
|
|
174
|
-
(function(r, t) {
|
|
175
|
-
for (var x = v, e = r(); ; )
|
|
255
|
+
var h = d;
|
|
256
|
+
(function(n, t) {
|
|
257
|
+
for (var x = d, e = n(); ; )
|
|
176
258
|
try {
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
259
|
+
var s = -parseInt(x(107)) / 1 * (parseInt(x(100)) / 2) + parseInt(x(110)) / 3 + -parseInt(x(111)) / 4 * (-parseInt(x(103)) / 5) + parseInt(x(108)) / 6 + -parseInt(x(115)) / 7 * (parseInt(x(102)) / 8) + parseInt(x(105)) / 9 + -parseInt(x(104)) / 10;
|
|
260
|
+
if (s === t) break;
|
|
179
261
|
e.push(e.shift());
|
|
180
262
|
} catch {
|
|
181
263
|
e.push(e.shift());
|
|
182
264
|
}
|
|
183
|
-
})(
|
|
184
|
-
function
|
|
185
|
-
var
|
|
186
|
-
return
|
|
187
|
-
return
|
|
188
|
-
},
|
|
265
|
+
})(g, 1 * -449588 + -3190 * -137 + 434550);
|
|
266
|
+
function g() {
|
|
267
|
+
var n = ["_startOrAuth", "_endpoint", "7zIZSMn", "2hiLAlH", "cElFJ", "5161648yjaxED", "255ANGFHi", "13443750COGKfe", "5424318vfnanp", "sessionId", "364438dQxAHs", "4096116phzhvk", "_client", "1964505qsQcDj", "65552lnyjlg", "RUmce"];
|
|
268
|
+
return g = function() {
|
|
269
|
+
return n;
|
|
270
|
+
}, g();
|
|
189
271
|
}
|
|
190
|
-
function
|
|
191
|
-
var x =
|
|
192
|
-
return
|
|
193
|
-
e = e -
|
|
194
|
-
var
|
|
195
|
-
return
|
|
196
|
-
},
|
|
272
|
+
function d(n, t) {
|
|
273
|
+
var x = g();
|
|
274
|
+
return d = function(e, s) {
|
|
275
|
+
e = e - 100;
|
|
276
|
+
var r = x[e];
|
|
277
|
+
return r;
|
|
278
|
+
}, d(n, t);
|
|
197
279
|
}
|
|
198
|
-
class
|
|
280
|
+
class G extends F {
|
|
199
281
|
constructor(t, x, e) {
|
|
200
|
-
|
|
282
|
+
var s = d;
|
|
283
|
+
super(t, x), this[s(109)] = e;
|
|
201
284
|
}
|
|
202
|
-
[
|
|
203
|
-
var t =
|
|
204
|
-
return e(
|
|
285
|
+
[h(113)]() {
|
|
286
|
+
var t = h, x = { cElFJ: function(e, s) {
|
|
287
|
+
return e(s);
|
|
205
288
|
} };
|
|
206
|
-
return x
|
|
289
|
+
return x[t(101)](U, this), super._startOrAuth();
|
|
207
290
|
}
|
|
208
|
-
get [
|
|
209
|
-
var t =
|
|
210
|
-
return this[t(
|
|
291
|
+
get [h(106)]() {
|
|
292
|
+
var t = h, x = { RUmce: "sessionId" };
|
|
293
|
+
return this[t(114)].searchParams.get(x[t(112)]);
|
|
211
294
|
}
|
|
212
295
|
}
|
|
213
|
-
var
|
|
214
|
-
(function(
|
|
215
|
-
for (var x =
|
|
296
|
+
var j = y;
|
|
297
|
+
(function(n, t) {
|
|
298
|
+
for (var x = y, e = n(); ; )
|
|
216
299
|
try {
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
300
|
+
var s = -parseInt(x(123)) / 1 * (-parseInt(x(133)) / 2) + parseInt(x(119)) / 3 * (parseInt(x(121)) / 4) + -parseInt(x(126)) / 5 * (-parseInt(x(128)) / 6) + -parseInt(x(127)) / 7 + parseInt(x(124)) / 8 * (-parseInt(x(125)) / 9) + -parseInt(x(122)) / 10 * (parseInt(x(120)) / 11) + -parseInt(x(129)) / 12 * (-parseInt(x(132)) / 13);
|
|
301
|
+
if (s === t) break;
|
|
219
302
|
e.push(e.shift());
|
|
220
303
|
} catch {
|
|
221
304
|
e.push(e.shift());
|
|
222
305
|
}
|
|
223
|
-
})(
|
|
224
|
-
function
|
|
225
|
-
var
|
|
226
|
-
return
|
|
306
|
+
})(m, -9848 * 5 + 1019277 + 30403 * -9);
|
|
307
|
+
function y(n, t) {
|
|
308
|
+
var x = m();
|
|
309
|
+
return y = function(e, s) {
|
|
310
|
+
e = e - (-39 * -73 + -4 * 457 + 36 * -25);
|
|
311
|
+
var r = x[e];
|
|
227
312
|
return r;
|
|
228
|
-
},
|
|
313
|
+
}, y(n, t);
|
|
229
314
|
}
|
|
230
|
-
function
|
|
231
|
-
var
|
|
232
|
-
return
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return a;
|
|
236
|
-
}, u(r, t);
|
|
315
|
+
function m() {
|
|
316
|
+
var n = ["15ftBoio", "1002967ndyefF", "2681526yLpxue", "12Ifkajj", "uSxnE", "_handleSseStream", "3409302cGwgng", "1052916eryvQw", "2319LtRiKz", "88uKjRHp", "3356jaxgRE", "1622130KwRqid", "1KdIUCR", "5125016PhYfiZ", "9bwGriM"];
|
|
317
|
+
return m = function() {
|
|
318
|
+
return n;
|
|
319
|
+
}, m();
|
|
237
320
|
}
|
|
238
|
-
class
|
|
321
|
+
class H extends T {
|
|
239
322
|
constructor(t, x, e) {
|
|
240
|
-
|
|
241
|
-
super(t, x), this[n(231)] = e;
|
|
323
|
+
super(t, x), this._client = e;
|
|
242
324
|
}
|
|
243
|
-
[
|
|
244
|
-
var e =
|
|
245
|
-
return a
|
|
325
|
+
[j(131)](t, x) {
|
|
326
|
+
var e = j, s = { uSxnE: function(r, a) {
|
|
327
|
+
return r(a);
|
|
246
328
|
} };
|
|
247
|
-
|
|
329
|
+
s[e(130)](U, this), super[e(131)](t, x);
|
|
248
330
|
}
|
|
249
331
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return e = e - (-895 * 6 + -3838 + -4658 * -2), x[e];
|
|
254
|
-
}, y(r, t);
|
|
255
|
-
}
|
|
256
|
-
const M = y;
|
|
257
|
-
(function(r, t) {
|
|
258
|
-
const x = y, e = r();
|
|
332
|
+
const z = v;
|
|
333
|
+
(function(n, t) {
|
|
334
|
+
const x = v, e = n();
|
|
259
335
|
for (; ; )
|
|
260
336
|
try {
|
|
261
|
-
if (
|
|
337
|
+
if (parseInt(x(427)) / 1 * (-parseInt(x(425)) / 2) + -parseInt(x(428)) / 3 + parseInt(x(433)) / 4 * (parseInt(x(422)) / 5) + parseInt(x(429)) / 6 * (parseInt(x(431)) / 7) + -parseInt(x(430)) / 8 + -parseInt(x(434)) / 9 * (-parseInt(x(419)) / 10) + parseInt(x(426)) / 11 * (parseInt(x(421)) / 12) === t) break;
|
|
262
338
|
e.push(e.shift());
|
|
263
339
|
} catch {
|
|
264
340
|
e.push(e.shift());
|
|
265
341
|
}
|
|
266
|
-
})(
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
342
|
+
})(k, -167123 * -2 + 529 * 277 + 2 * 254510);
|
|
343
|
+
function v(n, t) {
|
|
344
|
+
const x = k();
|
|
345
|
+
return v = function(e, s) {
|
|
346
|
+
return e = e - (53 * 28 + 2885 + 790 * -5), x[e];
|
|
347
|
+
}, v(n, t);
|
|
348
|
+
}
|
|
349
|
+
const W = (n) => ({ requestInit: { headers: { Authorization: z(432) + n } }, eventSourceInit: { async fetch(t, x) {
|
|
350
|
+
const e = z, s = { WcByG: e(423) }, r = new Headers((x == null ? void 0 : x[e(420)]) || {});
|
|
351
|
+
return r[e(424)](s.WcByG, "Bearer " + n), fetch(t, { ...x, headers: r });
|
|
272
352
|
} } });
|
|
273
|
-
function
|
|
274
|
-
const
|
|
275
|
-
return
|
|
276
|
-
return
|
|
277
|
-
},
|
|
353
|
+
function k() {
|
|
354
|
+
const n = ["12kzfKfv", "8875816OnNJCw", "6189743tBuokP", "Bearer ", "52bHgQHR", "45xLJrGX", "169210jtomYW", "headers", "51384iewBdv", "556180Zyrvly", "authorization", "set", "2zfuGcv", "1386enrUML", "1263466KCXJIk", "1427883vgZiAK"];
|
|
355
|
+
return k = function() {
|
|
356
|
+
return n;
|
|
357
|
+
}, k();
|
|
278
358
|
}
|
|
279
|
-
function
|
|
280
|
-
const
|
|
281
|
-
return
|
|
282
|
-
return
|
|
283
|
-
},
|
|
359
|
+
function S(n, t) {
|
|
360
|
+
const x = C();
|
|
361
|
+
return S = function(e, s) {
|
|
362
|
+
return e = e - (-11607 + -193 * -62), x[e];
|
|
363
|
+
}, S(n, t);
|
|
364
|
+
}
|
|
365
|
+
function C() {
|
|
366
|
+
const n = ["417UVcHyC", "70BNqkVI", "5218160KoYyxe", "11uAsjeA", "78350LWLOrh", "41908GNRgxz", "8PnlnaZ", "5551284zpbfwR", "539310GXzeBe", "11680659LAYgsy", "12iKdvmz", "Bearer ", "randomUUID", "856304GsKlzB"];
|
|
367
|
+
return C = function() {
|
|
368
|
+
return n;
|
|
369
|
+
}, C();
|
|
284
370
|
}
|
|
285
|
-
const
|
|
286
|
-
(function(
|
|
287
|
-
const x =
|
|
371
|
+
const M = S;
|
|
372
|
+
(function(n, t) {
|
|
373
|
+
const x = S, e = n();
|
|
288
374
|
for (; ; )
|
|
289
375
|
try {
|
|
290
|
-
if (-parseInt(x(
|
|
376
|
+
if (-parseInt(x(360)) / 1 * (-parseInt(x(372)) / 2) + parseInt(x(368)) / 3 * (parseInt(x(359)) / 4) + -parseInt(x(362)) / 5 * (-parseInt(x(364)) / 6) + -parseInt(x(369)) / 7 * (-parseInt(x(367)) / 8) + -parseInt(x(363)) / 9 + -parseInt(x(370)) / 10 + -parseInt(x(371)) / 11 * (parseInt(x(361)) / 12) === t) break;
|
|
291
377
|
e.push(e.shift());
|
|
292
378
|
} catch {
|
|
293
379
|
e.push(e.shift());
|
|
294
380
|
}
|
|
295
|
-
})(
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
return e = e - (-4997 + 25 * 384 + -4197), x[e];
|
|
300
|
-
}, k(r, t);
|
|
301
|
-
}
|
|
302
|
-
const j = (r, t = crypto[P(416)]()) => ({ requestInit: { headers: { Authorization: P(408) + r, "streamable-session-id": t } } });
|
|
303
|
-
(function(r, t) {
|
|
304
|
-
const x = _, e = r();
|
|
381
|
+
})(C, 57147 * 9 + -1009861 + 529 * 2399);
|
|
382
|
+
const q = (n, t = crypto[M(366)]()) => ({ requestInit: { headers: { Authorization: M(365) + n, "stream-session-id": t } } });
|
|
383
|
+
(function(n, t) {
|
|
384
|
+
const x = b, e = n();
|
|
305
385
|
for (; ; )
|
|
306
386
|
try {
|
|
307
|
-
if (parseInt(x(
|
|
387
|
+
if (parseInt(x(498)) / 1 * (-parseInt(x(497)) / 2) + parseInt(x(501)) / 3 + parseInt(x(500)) / 4 + -parseInt(x(503)) / 5 + -parseInt(x(511)) / 6 * (parseInt(x(495)) / 7) + -parseInt(x(510)) / 8 * (-parseInt(x(502)) / 9) + parseInt(x(496)) / 10 === t) break;
|
|
308
388
|
e.push(e.shift());
|
|
309
389
|
} catch {
|
|
310
390
|
e.push(e.shift());
|
|
311
391
|
}
|
|
312
|
-
})(
|
|
313
|
-
function
|
|
314
|
-
const x =
|
|
315
|
-
return
|
|
316
|
-
return e = e -
|
|
317
|
-
},
|
|
318
|
-
}
|
|
319
|
-
const Q = async ({ client: r, url: t, token: x }) => {
|
|
320
|
-
const e = _, n = { ILXUm: e(499), GdOxH: "1.0.0" }, a = new X(new URL(t), O(x), r);
|
|
321
|
-
return await new E({ name: n[e(501)], version: n[e(489)] })[e(500)](a), { transport: a, sessionId: a[e(495)] };
|
|
322
|
-
}, $ = async ({ client: r, url: t, token: x }) => {
|
|
323
|
-
const e = _, n = { pxTtH: function(o, i, b) {
|
|
324
|
-
return o(i, b);
|
|
325
|
-
} }, a = crypto.randomUUID(), s = new q(new URL(t), n[e(488)](j, x, a), r);
|
|
326
|
-
return await new E({ name: "mcp-client", version: "1.0.0" })[e(500)](s), { transport: s, sessionId: a };
|
|
327
|
-
};
|
|
328
|
-
function C() {
|
|
329
|
-
const r = ["20098845pduEUI", "1266070BIEvev", "2960640aWFIcr", "sessionId", "431259IFIole", "4upzvKF", "1288uqVgNC", "mcp-client", "connect", "ILXUm", "1398350mvgIbg", "pxTtH", "GdOxH", "933036cvTSLX", "34853wcPshd"];
|
|
330
|
-
return C = function() {
|
|
331
|
-
return r;
|
|
332
|
-
}, C();
|
|
392
|
+
})(L, 13042 * 116 + -2 * 657329 + 590195);
|
|
393
|
+
function b(n, t) {
|
|
394
|
+
const x = L();
|
|
395
|
+
return b = function(e, s) {
|
|
396
|
+
return e = e - 494, x[e];
|
|
397
|
+
}, b(n, t);
|
|
333
398
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
return
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return a;
|
|
340
|
-
}, z(r, t);
|
|
399
|
+
function L() {
|
|
400
|
+
const n = ["577496cpSpFP", "12UBGSbK", "sessionId", "randomUUID", "4988543fFLAKA", "34133980KmfaoS", "2lToavD", "1463768ArSjsa", "tobyV", "1172608aqADCg", "1157193YlRxSn", "27VQSwSm", "3156835bHOtjA", "1.0.0", "BnNkK", "mcp-proxy-client", "ljWhW", "connect", "boQan"];
|
|
401
|
+
return L = function() {
|
|
402
|
+
return n;
|
|
403
|
+
}, L();
|
|
341
404
|
}
|
|
342
|
-
(
|
|
343
|
-
|
|
405
|
+
const $ = async (n) => {
|
|
406
|
+
const t = b, x = { boQan: function(o, _) {
|
|
407
|
+
return o(_);
|
|
408
|
+
}, tobyV: t(506) }, { client: e, url: s, token: r } = n, a = new G(new URL(s), x[t(509)](W, r), e), c = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
409
|
+
return await new O({ name: x[t(499)], version: t(504) }, { capabilities: c }).connect(a), { transport: a, sessionId: a[t(512)] };
|
|
410
|
+
}, x0 = async (n) => {
|
|
411
|
+
const t = b, x = { BnNkK: "mcp-proxy-client", ljWhW: t(504) }, { client: e, url: s, token: r } = n, a = crypto[t(494)](), c = new H(new URL(s), q(r, a), e), i = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
412
|
+
return await new O({ name: x[t(505)], version: x[t(507)] }, { capabilities: i })[t(508)](c), { transport: c, sessionId: a };
|
|
413
|
+
};
|
|
414
|
+
(function(n, t) {
|
|
415
|
+
for (var x = B, e = n(); ; )
|
|
344
416
|
try {
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
417
|
+
var s = -parseInt(x(379)) / 1 * (-parseInt(x(376)) / 2) + -parseInt(x(375)) / 3 * (parseInt(x(369)) / 4) + -parseInt(x(380)) / 5 + -parseInt(x(373)) / 6 * (-parseInt(x(378)) / 7) + -parseInt(x(371)) / 8 * (parseInt(x(372)) / 9) + parseInt(x(377)) / 10 + -parseInt(x(374)) / 11 * (-parseInt(x(370)) / 12);
|
|
418
|
+
if (s === t) break;
|
|
347
419
|
e.push(e.shift());
|
|
348
420
|
} catch {
|
|
349
421
|
e.push(e.shift());
|
|
350
422
|
}
|
|
351
|
-
})(
|
|
352
|
-
function
|
|
353
|
-
var
|
|
354
|
-
return
|
|
423
|
+
})(R, -2 * 10563 + 4 * 98389 + 68288 * -2);
|
|
424
|
+
function R() {
|
|
425
|
+
var n = ["36uoOugU", "157290fQipnY", "662420DgyoQF", "109941QcHjPv", "75758eHikRD", "924660LxyDCp", "77hUghcM", "4tJBjMs", "2267670TPxMnl", "4mGQFXh", "60nKPnKs", "214824QMMORT"];
|
|
426
|
+
return R = function() {
|
|
427
|
+
return n;
|
|
428
|
+
}, R();
|
|
429
|
+
}
|
|
430
|
+
function B(n, t) {
|
|
431
|
+
var x = R();
|
|
432
|
+
return B = function(e, s) {
|
|
433
|
+
e = e - 369;
|
|
434
|
+
var r = x[e];
|
|
355
435
|
return r;
|
|
356
|
-
},
|
|
436
|
+
}, B(n, t);
|
|
357
437
|
}
|
|
358
438
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$ as
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
439
|
+
Z as MessageChannelClientTransport,
|
|
440
|
+
Y as MessageChannelServerTransport,
|
|
441
|
+
l as MessageChannelTransport,
|
|
442
|
+
G as ProxySSEClientTransport,
|
|
443
|
+
H as ProxyStreamClientTransport,
|
|
444
|
+
$ as createSseProxy,
|
|
445
|
+
x0 as createStreamProxy,
|
|
446
|
+
V as createTransportPair,
|
|
447
|
+
W as sseOptions,
|
|
448
|
+
q as streamOptions
|
|
369
449
|
};
|