@opentiny/next 0.0.1 → 0.1.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 +436 -1
- package/client.d.ts +237 -0
- package/client.js +343 -265
- package/package.json +11 -2
- package/server.d.ts +95 -0
- package/server.js +224 -174
package/client.js
CHANGED
|
@@ -1,369 +1,447 @@
|
|
|
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 O } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { Client as q } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
|
+
import { SSEClientTransport as P } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
|
+
import { StreamableHTTPClientTransport as z } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
+
const f = u;
|
|
6
|
+
(function(n, t) {
|
|
7
|
+
const x = u, e = n();
|
|
16
8
|
for (; ; )
|
|
17
9
|
try {
|
|
18
|
-
if (parseInt(x(
|
|
10
|
+
if (parseInt(x(370)) / 1 + -parseInt(x(363)) / 2 + -parseInt(x(362)) / 3 + -parseInt(x(341)) / 4 + parseInt(x(339)) / 5 + parseInt(x(352)) / 6 + parseInt(x(316)) / 7 * (parseInt(x(373)) / 8) === t) break;
|
|
19
11
|
e.push(e.shift());
|
|
20
12
|
} catch {
|
|
21
13
|
e.push(e.shift());
|
|
22
14
|
}
|
|
23
|
-
})(l,
|
|
15
|
+
})(l, -179 * -3226 + 133404 * 3 + -165520 * 4);
|
|
16
|
+
function u(n, t) {
|
|
17
|
+
const x = l();
|
|
18
|
+
return u = function(e, r) {
|
|
19
|
+
return e = e - 312, x[e];
|
|
20
|
+
}, u(n, t);
|
|
21
|
+
}
|
|
22
|
+
const H = () => {
|
|
23
|
+
const n = u, t = { irtUV: function(x, e) {
|
|
24
|
+
return x !== e;
|
|
25
|
+
}, mXDSz: n(322), KNBRb: function(x, e) {
|
|
26
|
+
return x(e);
|
|
27
|
+
}, ohWWH: n(335) };
|
|
28
|
+
return t[n(366)](typeof globalThis, t[n(348)]) ? globalThis : typeof window !== t[n(348)] ? window : typeof global < "u" ? global : t[n(366)](typeof self, t[n(348)]) ? self : t[n(338)](Function, t[n(333)])();
|
|
29
|
+
}, K = (n, t, x) => {
|
|
30
|
+
const e = u, r = { XHPhq: function(s, a) {
|
|
31
|
+
return s !== a;
|
|
32
|
+
}, aRjWD: e(322), fLXbe: function(s, a) {
|
|
33
|
+
return s in a;
|
|
34
|
+
}, eZZFt: e(312), zKrMy: function(s, a) {
|
|
35
|
+
return s === a;
|
|
36
|
+
}, tJWOK: e(343), djoDr: e(378) };
|
|
37
|
+
if (r.XHPhq(typeof window, r.aRjWD)) n[e(312)](t, "*", x);
|
|
38
|
+
else if (r[e(368)](r.eZZFt, n) && r[e(326)](typeof n.postMessage, r[e(372)])) n[e(312)](t, x);
|
|
39
|
+
else throw new Error(r[e(360)]);
|
|
40
|
+
}, j = (n, t) => {
|
|
41
|
+
const x = u, e = { ClzlV: function(r, s) {
|
|
42
|
+
return r in s;
|
|
43
|
+
}, NhXwq: x(336), pnqyz: function(r, s) {
|
|
44
|
+
return r === s;
|
|
45
|
+
}, CfrUs: x(343), eClew: x(379), rbiTr: "onmessage", egMaC: function(r, s) {
|
|
46
|
+
return r !== s;
|
|
47
|
+
}, gzgkq: x(317) };
|
|
48
|
+
if (e[x(330)](e.NhXwq, n) && e[x(376)](typeof n[x(336)], e[x(371)])) n[x(336)](e.eClew, t);
|
|
49
|
+
else if (e[x(351)] in n && e[x(347)](typeof n.onmessage, x(322))) n[x(345)] = t;
|
|
50
|
+
else throw new Error(e[x(357)]);
|
|
51
|
+
};
|
|
24
52
|
function l() {
|
|
25
|
-
const
|
|
53
|
+
const n = ["_listen", "undefined", "data", "_globalObject", "parse", "zKrMy", "Failed to parse message: ", "port2", "Cannot start a closed MessageChannel Transport", "ClzlV", "JJxXS", "tDewr", "ohWWH", "randomUUID", "return this", "addEventListener", "iepzE", "KNBRb", "2392655DydLAq", "MessageChannel Transport is not initialized", "2169268PsEgqQ", "port1", "function", "stringify", "onmessage", "_port", "egMaC", "mXDSz", "tYSPY", "upOyB", "rbiTr", "587652XdbMOi", "_endpoint", "send", "_started", "Cannot send message on a closed MessageChannel Transport", "gzgkq", "bJXTH", "close", "djoDr", "onclose", "1015368tgWHKs", "898846ENoJoF", "ports", "listen", "irtUV", "_sessionId", "fLXbe", "ulrhL", "398219ovTVPK", "CfrUs", "tJWOK", "560FfSIPy", "start", "sessionId", "pnqyz", "qnTYv", "Unsupported environment for postMessage", "message", "postMessage", "aZmUD", "split", "onerror", "67109CNwrBs", "Unsupported environment for addEventListener", "_closed", "onmessageerror", "endpoint"];
|
|
26
54
|
return l = function() {
|
|
27
|
-
return
|
|
55
|
+
return n;
|
|
28
56
|
}, l();
|
|
29
57
|
}
|
|
30
|
-
class
|
|
58
|
+
class _ {
|
|
31
59
|
constructor(t, x) {
|
|
32
|
-
const e =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
60
|
+
const e = u, r = { bJXTH: "0|1|4|5|3|2" }, s = r[e(358)][e(314)]("|");
|
|
61
|
+
let a = -77 * -41 + -166 * 7 + -1995;
|
|
62
|
+
for (; ; ) {
|
|
63
|
+
switch (s[a++]) {
|
|
64
|
+
case "0":
|
|
65
|
+
this[e(355)] = !1;
|
|
66
|
+
continue;
|
|
67
|
+
case "1":
|
|
68
|
+
this[e(318)] = !1;
|
|
69
|
+
continue;
|
|
70
|
+
case "2":
|
|
71
|
+
this[e(318)] = !1;
|
|
72
|
+
continue;
|
|
73
|
+
case "3":
|
|
74
|
+
this._started = !1;
|
|
75
|
+
continue;
|
|
76
|
+
case "4":
|
|
77
|
+
this[e(346)] = t;
|
|
78
|
+
continue;
|
|
79
|
+
case "5":
|
|
80
|
+
this[e(367)] = x;
|
|
81
|
+
continue;
|
|
45
82
|
}
|
|
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
|
-
};
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
51
85
|
}
|
|
52
|
-
async [f(
|
|
53
|
-
const t = f, x = {
|
|
54
|
-
if (this[t(
|
|
55
|
-
if (this[t(
|
|
56
|
-
this
|
|
86
|
+
async [f(374)]() {
|
|
87
|
+
const t = f, x = { IShJM: "MessageChannel Transport already started!", aXAMK: t(329), tDewr: t(340) };
|
|
88
|
+
if (this[t(355)]) throw new Error(x.IShJM);
|
|
89
|
+
if (this[t(318)]) throw new Error(x.aXAMK);
|
|
90
|
+
if (!this._port) throw new Error(x[t(332)]);
|
|
91
|
+
this[t(355)] = !0, this[t(346)][t(345)] = (e) => {
|
|
92
|
+
var s, a;
|
|
93
|
+
const r = t;
|
|
94
|
+
try {
|
|
95
|
+
const c = O[r(325)](e.data);
|
|
96
|
+
(s = this[r(345)]) == null || s.call(this, c);
|
|
97
|
+
} catch (c) {
|
|
98
|
+
const o = new Error(r(327) + c);
|
|
99
|
+
(a = this[r(315)]) == null || a.call(this, o);
|
|
100
|
+
}
|
|
101
|
+
}, this[t(346)][t(319)] = (e) => {
|
|
102
|
+
var a;
|
|
103
|
+
const r = t, s = new Error("MessagePort error: " + JSON[r(344)](e));
|
|
104
|
+
(a = this.onerror) == null || a.call(this, s);
|
|
105
|
+
}, this[t(346)].start();
|
|
57
106
|
}
|
|
58
|
-
async [f(
|
|
59
|
-
const x = f, e = {
|
|
60
|
-
return
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
107
|
+
async [f(354)](t) {
|
|
108
|
+
const x = f, e = { JJxXS: function(r) {
|
|
109
|
+
return r();
|
|
110
|
+
}, qnTYv: function(r, s) {
|
|
111
|
+
return r(s);
|
|
112
|
+
} };
|
|
113
|
+
if (this[x(318)]) throw new Error(x(356));
|
|
114
|
+
if (!this[x(346)]) throw new Error(x(340));
|
|
115
|
+
return new Promise((r, s) => {
|
|
64
116
|
var c;
|
|
65
|
-
const
|
|
117
|
+
const a = x;
|
|
66
118
|
try {
|
|
67
|
-
this[
|
|
119
|
+
this[a(346)] && this[a(346)][a(312)](t), e[a(331)](r);
|
|
68
120
|
} catch (o) {
|
|
69
121
|
const i = o instanceof Error ? o : new Error(String(o));
|
|
70
|
-
(c = this[
|
|
122
|
+
(c = this[a(315)]) == null || c.call(this, i), e[a(377)](s, i);
|
|
71
123
|
}
|
|
72
124
|
});
|
|
73
125
|
}
|
|
74
|
-
async [f(
|
|
126
|
+
async [f(359)]() {
|
|
75
127
|
var x;
|
|
76
128
|
const t = f;
|
|
77
|
-
this[t(
|
|
129
|
+
this[t(318)] || !this[t(346)] || (this[t(318)] = !0, this[t(346)].close(), (x = this[t(361)]) == null || x.call(this));
|
|
78
130
|
}
|
|
79
|
-
get [f(
|
|
131
|
+
get [f(375)]() {
|
|
80
132
|
return this._sessionId;
|
|
81
133
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
134
|
+
}
|
|
135
|
+
class N extends _ {
|
|
136
|
+
constructor(t, x = H()) {
|
|
137
|
+
const e = f, r = { ulrhL: function(c, o, i, h) {
|
|
138
|
+
return c(o, i, h);
|
|
139
|
+
} };
|
|
140
|
+
super(), this._endpoint = t, this._globalObject = x;
|
|
141
|
+
const s = new MessageChannel(), a = crypto[e(334)]();
|
|
142
|
+
this._port = s[e(342)], this[e(367)] = a, r[e(369)](K, this[e(324)], { endpoint: this[e(353)], sessionId: a }, [s.port2]);
|
|
85
143
|
}
|
|
86
144
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
145
|
+
class Q extends _ {
|
|
146
|
+
constructor(t, x = H()) {
|
|
147
|
+
const e = f, r = { iepzE: function(s, a) {
|
|
148
|
+
return s === a;
|
|
149
|
+
}, bRMGj: function(s) {
|
|
150
|
+
return s();
|
|
151
|
+
}, tYSPY: function(s, a, c) {
|
|
152
|
+
return s(a, c);
|
|
153
|
+
} };
|
|
154
|
+
super(), this[e(353)] = t, this[e(324)] = x, this[e(321)] = new Promise((s) => {
|
|
155
|
+
const a = e, c = { upOyB: function(o, i) {
|
|
156
|
+
return r[u(337)](o, i);
|
|
157
|
+
}, aZmUD: function(o) {
|
|
158
|
+
return r.bRMGj(o);
|
|
159
|
+
} };
|
|
160
|
+
r[a(349)](j, this._globalObject, (o) => {
|
|
161
|
+
const i = a;
|
|
162
|
+
o[i(323)] && c[i(350)](o[i(323)][i(320)], this[i(353)]) && (this[i(346)] = o[i(364)][0], this[i(367)] = o.data.sessionId, c[i(313)](s));
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
async [f(365)]() {
|
|
167
|
+
return this[f(321)];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const W = () => {
|
|
171
|
+
const n = f, t = new MessageChannel(), x = crypto[n(334)]();
|
|
172
|
+
return [new _(t[n(342)], x), new _(t[n(328)], x)];
|
|
93
173
|
};
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
return
|
|
98
|
-
},
|
|
174
|
+
function I() {
|
|
175
|
+
const n = ["20PfsCXS", "HeTlK", "3058278TcxTgZ", "resources/templates/list", "onmessage", "callTool", "fXsLH", "send", "listResourceTemplates", "2XuiztD", "prompts/get", "unsubscribeResource", "388411GmRGkg", "listTools", "6618624SxedHZ", "readResource", "getPrompt", "completion/complete", "2.0", "jRdbc", "Xkmnt", "logging/setLevel", "221995GhvRQq", "subscribeResource", "resources/unsubscribe", "1470616yIUdDc", "_client", "tools/list", "ping", "zXbrZ", "listResources", "gekXJ", "resources/subscribe", "bxPJM", "resources/read", "tools/call", "3013479CluPOf", "resources/list", "call", "setLoggingLevel", "4051215zGRJOX", "complete"];
|
|
176
|
+
return I = function() {
|
|
177
|
+
return n;
|
|
178
|
+
}, I();
|
|
99
179
|
}
|
|
100
|
-
(function(
|
|
101
|
-
const x =
|
|
180
|
+
(function(n, t) {
|
|
181
|
+
const x = b, e = n();
|
|
102
182
|
for (; ; )
|
|
103
183
|
try {
|
|
104
|
-
if (-parseInt(x(
|
|
184
|
+
if (-parseInt(x(364)) / 1 * (-parseInt(x(361)) / 2) + -parseInt(x(388)) / 3 + -parseInt(x(394)) / 4 * (-parseInt(x(374)) / 5) + -parseInt(x(396)) / 6 + parseInt(x(377)) / 7 + parseInt(x(366)) / 8 + parseInt(x(392)) / 9 === t) break;
|
|
105
185
|
e.push(e.shift());
|
|
106
186
|
} catch {
|
|
107
187
|
e.push(e.shift());
|
|
108
188
|
}
|
|
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
|
-
|
|
189
|
+
})(I, 513393 + 62117 * -11 + 5345 * 141);
|
|
190
|
+
function b(n, t) {
|
|
191
|
+
const x = I();
|
|
192
|
+
return b = function(e, r) {
|
|
193
|
+
return e = e - 355, x[e];
|
|
194
|
+
}, b(n, t);
|
|
195
|
+
}
|
|
196
|
+
const E = async (n, t) => {
|
|
197
|
+
const x = b, e = { Xkmnt: x(387), nYRpq: x(389), KrwUG: x(355), HeTlK: x(386), fXsLH: x(384), bxPJM: x(376), teWxT: x(362), jRdbc: x(380), zXbrZ: x(373), gekXJ: x(370) };
|
|
198
|
+
let r;
|
|
199
|
+
const { id: s, method: a, params: c } = t;
|
|
200
|
+
if (a) {
|
|
201
|
+
switch (a) {
|
|
202
|
+
case x(379):
|
|
203
|
+
r = await n[x(378)][x(365)](c);
|
|
204
|
+
break;
|
|
205
|
+
case e[x(372)]:
|
|
206
|
+
r = await n._client[x(357)](c);
|
|
207
|
+
break;
|
|
208
|
+
case e.nYRpq:
|
|
209
|
+
r = await n[x(378)][x(382)](c);
|
|
210
|
+
break;
|
|
211
|
+
case e.KrwUG:
|
|
212
|
+
r = await n[x(378)][x(360)](c);
|
|
213
|
+
break;
|
|
214
|
+
case e[x(395)]:
|
|
215
|
+
r = await n[x(378)][x(367)](c);
|
|
216
|
+
break;
|
|
217
|
+
case e[x(358)]:
|
|
218
|
+
r = await n[x(378)][x(375)](c);
|
|
219
|
+
break;
|
|
220
|
+
case e[x(385)]:
|
|
221
|
+
r = await n[x(378)][x(363)](c);
|
|
222
|
+
break;
|
|
223
|
+
case e.teWxT:
|
|
224
|
+
r = await n[x(378)][x(368)](c);
|
|
225
|
+
break;
|
|
226
|
+
case "prompts/list":
|
|
227
|
+
r = await n[x(378)].listPrompts(c);
|
|
228
|
+
break;
|
|
229
|
+
case e[x(371)]:
|
|
230
|
+
r = await n._client[x(380)]();
|
|
231
|
+
break;
|
|
232
|
+
case x(369):
|
|
233
|
+
r = await n[x(378)][x(393)](c);
|
|
234
|
+
break;
|
|
235
|
+
case e[x(381)]:
|
|
236
|
+
r = await n[x(378)][x(391)](c);
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
return r && await n[x(359)]({ result: r, jsonrpc: e[x(383)], id: s }), r;
|
|
151
240
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (r[a(390)]) {
|
|
162
|
-
const s = await x[a(389)](B, r, n);
|
|
163
|
-
x[a(407)](s, void 0) && e && e[a(398)](r, n);
|
|
241
|
+
}, J = (n) => {
|
|
242
|
+
const t = b, x = { wKrGQ: function(r, s) {
|
|
243
|
+
return r === s;
|
|
244
|
+
} }, e = n[t(356)];
|
|
245
|
+
n[t(356)] = async (r) => {
|
|
246
|
+
const s = t;
|
|
247
|
+
if (n[s(378)]) {
|
|
248
|
+
const a = await E(n, r);
|
|
249
|
+
x.wKrGQ(a, void 0) && e && e[s(390)](n, r);
|
|
164
250
|
}
|
|
165
251
|
};
|
|
166
252
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
253
|
+
var C = d;
|
|
254
|
+
function d(n, t) {
|
|
255
|
+
var x = w();
|
|
256
|
+
return d = function(e, r) {
|
|
257
|
+
e = e - (2597 * -1 + 7787 + -5036);
|
|
258
|
+
var s = x[e];
|
|
259
|
+
return s;
|
|
260
|
+
}, d(n, t);
|
|
172
261
|
}
|
|
173
|
-
|
|
174
|
-
(
|
|
175
|
-
for (var x = v, e = r(); ; )
|
|
262
|
+
(function(n, t) {
|
|
263
|
+
for (var x = d, e = n(); ; )
|
|
176
264
|
try {
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
265
|
+
var r = parseInt(x(164)) / 1 * (-parseInt(x(156)) / 2) + parseInt(x(154)) / 3 + parseInt(x(162)) / 4 * (-parseInt(x(165)) / 5) + -parseInt(x(166)) / 6 * (parseInt(x(168)) / 7) + parseInt(x(159)) / 8 + parseInt(x(161)) / 9 + parseInt(x(155)) / 10 * (parseInt(x(158)) / 11);
|
|
266
|
+
if (r === t) break;
|
|
179
267
|
e.push(e.shift());
|
|
180
268
|
} catch {
|
|
181
269
|
e.push(e.shift());
|
|
182
270
|
}
|
|
183
|
-
})(w,
|
|
271
|
+
})(w, 93820 + -16076 * -11 + -1 * 53448);
|
|
184
272
|
function w() {
|
|
185
|
-
var
|
|
273
|
+
var n = ["347391ZqgnIm", "16gzYSLb", "kfuYF", "3YFAERQ", "205745xGcibJ", "3414mwqnnp", "gtnpw", "4900fKdYYQ", "_client", "592995JzZxea", "1580LcIaQp", "191018OIMpqs", "searchParams", "44847pHYuwi", "1489608xtnwPJ", "_startOrAuth"];
|
|
186
274
|
return w = function() {
|
|
187
|
-
return
|
|
275
|
+
return n;
|
|
188
276
|
}, w();
|
|
189
277
|
}
|
|
190
|
-
|
|
191
|
-
var x = w();
|
|
192
|
-
return v = function(e, n) {
|
|
193
|
-
e = e - (-2367 + -2 * 1273 + 5161);
|
|
194
|
-
var a = x[e];
|
|
195
|
-
return a;
|
|
196
|
-
}, v(r, t);
|
|
197
|
-
}
|
|
198
|
-
class X extends D {
|
|
278
|
+
class L extends P {
|
|
199
279
|
constructor(t, x, e) {
|
|
200
|
-
|
|
280
|
+
var r = d;
|
|
281
|
+
super(t, x), this[r(169)] = e;
|
|
201
282
|
}
|
|
202
|
-
[
|
|
203
|
-
var t =
|
|
204
|
-
return e(
|
|
283
|
+
[C(160)]() {
|
|
284
|
+
var t = C, x = { kfuYF: function(e, r) {
|
|
285
|
+
return e(r);
|
|
205
286
|
} };
|
|
206
|
-
return x
|
|
287
|
+
return x[t(163)](J, this), super[t(160)]();
|
|
207
288
|
}
|
|
208
|
-
get
|
|
209
|
-
var t =
|
|
210
|
-
return this[t(
|
|
289
|
+
get sessionId() {
|
|
290
|
+
var t = C, x = { gtnpw: "sessionId" };
|
|
291
|
+
return this._endpoint[t(157)].get(x[t(167)]);
|
|
211
292
|
}
|
|
212
293
|
}
|
|
213
|
-
|
|
214
|
-
(
|
|
215
|
-
for (var x = u, e = r(); ; )
|
|
294
|
+
(function(n, t) {
|
|
295
|
+
for (var x = m, e = n(); ; )
|
|
216
296
|
try {
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
297
|
+
var r = parseInt(x(222)) / 1 + -parseInt(x(218)) / 2 * (parseInt(x(216)) / 3) + parseInt(x(215)) / 4 * (parseInt(x(212)) / 5) + -parseInt(x(220)) / 6 + parseInt(x(213)) / 7 * (-parseInt(x(219)) / 8) + parseInt(x(223)) / 9 + parseInt(x(217)) / 10 * (parseInt(x(221)) / 11);
|
|
298
|
+
if (r === t) break;
|
|
219
299
|
e.push(e.shift());
|
|
220
300
|
} catch {
|
|
221
301
|
e.push(e.shift());
|
|
222
302
|
}
|
|
223
|
-
})(g, -
|
|
303
|
+
})(g, -3 * -424526 + 29 * 38761 + -25 * 60010);
|
|
224
304
|
function g() {
|
|
225
|
-
var
|
|
305
|
+
var n = ["2463645ihxwHi", "7Xlqfmq", "_handleSseStream", "8sCLLgq", "2759076mHhENV", "18203510fJKTYV", "2jQorlm", "6073488MwdBvT", "7653132PKtsWH", "11efxgnF", "540600hYyrVN", "4548492MQImYH"];
|
|
226
306
|
return g = function() {
|
|
227
|
-
return
|
|
307
|
+
return n;
|
|
228
308
|
}, g();
|
|
229
309
|
}
|
|
230
|
-
function
|
|
310
|
+
function m(n, t) {
|
|
231
311
|
var x = g();
|
|
232
|
-
return
|
|
233
|
-
e = e - (
|
|
234
|
-
var
|
|
235
|
-
return
|
|
236
|
-
},
|
|
312
|
+
return m = function(e, r) {
|
|
313
|
+
e = e - (-1933 * 1 + -27 * 278 + 1 * 9651);
|
|
314
|
+
var s = x[e];
|
|
315
|
+
return s;
|
|
316
|
+
}, m(n, t);
|
|
237
317
|
}
|
|
238
|
-
class
|
|
318
|
+
class R extends z {
|
|
239
319
|
constructor(t, x, e) {
|
|
240
|
-
|
|
241
|
-
super(t, x), this[n(231)] = e;
|
|
320
|
+
super(t, x), this._client = e;
|
|
242
321
|
}
|
|
243
|
-
|
|
244
|
-
var e =
|
|
245
|
-
return a
|
|
322
|
+
_handleSseStream(t, x) {
|
|
323
|
+
var e = m, r = { njiQB: function(s, a) {
|
|
324
|
+
return s(a);
|
|
246
325
|
} };
|
|
247
|
-
|
|
326
|
+
r.njiQB(J, this), super[e(214)](t, x);
|
|
248
327
|
}
|
|
249
328
|
}
|
|
250
|
-
function y(
|
|
251
|
-
const x =
|
|
252
|
-
return y = function(e,
|
|
253
|
-
return e = e -
|
|
254
|
-
}, y(
|
|
329
|
+
function y(n, t) {
|
|
330
|
+
const x = M();
|
|
331
|
+
return y = function(e, r) {
|
|
332
|
+
return e = e - 168, x[e];
|
|
333
|
+
}, y(n, t);
|
|
255
334
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
335
|
+
function M() {
|
|
336
|
+
const n = ["768464GKECXk", "Bearer ", "27kqscCe", "15ZXNsAZ", "headers", "553900ANYVLj", "686728ZxjJHf", "3135648SVjOOD", "1196anMHWH", "6222293HgvQUc", "osFqL", "MgDAb", "5757bwhOTY", "2211402UjYIjQ"];
|
|
337
|
+
return M = function() {
|
|
338
|
+
return n;
|
|
339
|
+
}, M();
|
|
340
|
+
}
|
|
341
|
+
(function(n, t) {
|
|
342
|
+
const x = y, e = n();
|
|
259
343
|
for (; ; )
|
|
260
344
|
try {
|
|
261
|
-
if (-parseInt(x(
|
|
345
|
+
if (-parseInt(x(168)) / 1 + parseInt(x(170)) / 2 * (-parseInt(x(174)) / 3) + parseInt(x(169)) / 4 + -parseInt(x(179)) / 5 * (-parseInt(x(175)) / 6) + parseInt(x(171)) / 7 + -parseInt(x(176)) / 8 * (parseInt(x(178)) / 9) + -parseInt(x(181)) / 10 === t) break;
|
|
262
346
|
e.push(e.shift());
|
|
263
347
|
} catch {
|
|
264
348
|
e.push(e.shift());
|
|
265
349
|
}
|
|
266
|
-
})(
|
|
267
|
-
const
|
|
268
|
-
const e =
|
|
269
|
-
return
|
|
270
|
-
} },
|
|
271
|
-
return
|
|
272
|
-
} } });
|
|
273
|
-
function
|
|
274
|
-
const
|
|
275
|
-
return
|
|
276
|
-
return
|
|
277
|
-
},
|
|
350
|
+
})(M, 600658);
|
|
351
|
+
const U = (n) => ({ requestInit: { headers: { Authorization: "Bearer " + n } }, eventSourceInit: { async fetch(t, x) {
|
|
352
|
+
const e = y, r = { MgDAb: "authorization", osFqL: function(a, c, o) {
|
|
353
|
+
return a(c, o);
|
|
354
|
+
} }, s = new Headers((x == null ? void 0 : x[e(180)]) || {});
|
|
355
|
+
return s.set(r[e(173)], e(177) + n), r[e(172)](fetch, t, { ...x, headers: s });
|
|
356
|
+
} } }), D = T;
|
|
357
|
+
function T(n, t) {
|
|
358
|
+
const x = k();
|
|
359
|
+
return T = function(e, r) {
|
|
360
|
+
return e = e - (8858 + 63 * -133), x[e];
|
|
361
|
+
}, T(n, t);
|
|
278
362
|
}
|
|
279
|
-
function
|
|
280
|
-
const
|
|
281
|
-
return
|
|
282
|
-
return
|
|
283
|
-
},
|
|
363
|
+
function k() {
|
|
364
|
+
const n = ["150057pkrshx", "5nFvaWM", "randomUUID", "4741irPxMl", "104583hRndkX", "44rOAheK", "96idxIJL", "3374035HeiaJu", "652960VrnGlX", "580770nVioNm", "7660WbZMwL", "1021194ptAtig"];
|
|
365
|
+
return k = function() {
|
|
366
|
+
return n;
|
|
367
|
+
}, k();
|
|
284
368
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const x = k, e = r();
|
|
369
|
+
(function(n, t) {
|
|
370
|
+
const x = T, e = n();
|
|
288
371
|
for (; ; )
|
|
289
372
|
try {
|
|
290
|
-
if (
|
|
373
|
+
if (parseInt(x(487)) / 1 + parseInt(x(486)) / 2 + -parseInt(x(482)) / 3 * (parseInt(x(483)) / 4) + -parseInt(x(479)) / 5 * (parseInt(x(489)) / 6) + parseInt(x(485)) / 7 + -parseInt(x(484)) / 8 * (parseInt(x(490)) / 9) + parseInt(x(488)) / 10 * (-parseInt(x(481)) / 11) === t) break;
|
|
291
374
|
e.push(e.shift());
|
|
292
375
|
} catch {
|
|
293
376
|
e.push(e.shift());
|
|
294
377
|
}
|
|
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();
|
|
378
|
+
})(k, -287782 + 1 * 593145);
|
|
379
|
+
const Y = (n, t = crypto[D(480)]()) => ({ requestInit: { headers: { Authorization: "Bearer " + n, "stream-session-id": t } } });
|
|
380
|
+
(function(n, t) {
|
|
381
|
+
const x = p, e = n();
|
|
305
382
|
for (; ; )
|
|
306
383
|
try {
|
|
307
|
-
if (parseInt(x(
|
|
384
|
+
if (-parseInt(x(512)) / 1 * (parseInt(x(504)) / 2) + parseInt(x(515)) / 3 + parseInt(x(505)) / 4 * (-parseInt(x(501)) / 5) + parseInt(x(502)) / 6 + parseInt(x(513)) / 7 * (-parseInt(x(511)) / 8) + parseInt(x(503)) / 9 + parseInt(x(506)) / 10 === t) break;
|
|
308
385
|
e.push(e.shift());
|
|
309
386
|
} catch {
|
|
310
387
|
e.push(e.shift());
|
|
311
388
|
}
|
|
312
|
-
})(
|
|
313
|
-
|
|
314
|
-
const x =
|
|
315
|
-
|
|
316
|
-
|
|
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 };
|
|
389
|
+
})(v, -425121 + -2 * 488431 + 2077404);
|
|
390
|
+
const V = async (n) => {
|
|
391
|
+
const t = p, x = { DzdQO: function(i, h) {
|
|
392
|
+
return i(h);
|
|
393
|
+
}, sZnTO: t(516), caFIK: t(509) }, { client: e, url: r, token: s } = n, a = new L(new URL(r), x[t(500)](U, s), e), c = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
394
|
+
return await new q({ name: x[t(517)], version: x[t(507)] }, { capabilities: c })[t(508)](a), { transport: a, sessionId: a[t(510)] };
|
|
327
395
|
};
|
|
328
|
-
function
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
return
|
|
332
|
-
},
|
|
396
|
+
function p(n, t) {
|
|
397
|
+
const x = v();
|
|
398
|
+
return p = function(e, r) {
|
|
399
|
+
return e = e - (-3918 + 1 * 4418), x[e];
|
|
400
|
+
}, p(n, t);
|
|
333
401
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
return
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
402
|
+
const B = async (n) => {
|
|
403
|
+
const t = p, x = { MUfaM: t(516) }, { client: e, url: r, token: s } = n, a = crypto[t(514)](), c = new R(new URL(r), Y(s, a), e), o = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
404
|
+
return await new q({ name: x.MUfaM, version: "1.0.0" }, { capabilities: o }).connect(c), { transport: c, sessionId: a };
|
|
405
|
+
};
|
|
406
|
+
function v() {
|
|
407
|
+
const n = ["sessionId", "104AbhONA", "1009258ilzcHG", "85911aGAHdY", "randomUUID", "2339271ApAHeF", "mcp-proxy-client", "sZnTO", "DzdQO", "1480QTXNni", "1562010kSXwrq", "4157568JTeudu", "2bghoqe", "13712qwklco", "13568720HyAOKk", "caFIK", "connect", "1.0.0"];
|
|
408
|
+
return v = function() {
|
|
409
|
+
return n;
|
|
410
|
+
}, v();
|
|
341
411
|
}
|
|
342
|
-
(function(
|
|
343
|
-
for (var x =
|
|
412
|
+
(function(n, t) {
|
|
413
|
+
for (var x = S, e = n(); ; )
|
|
344
414
|
try {
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
415
|
+
var r = -parseInt(x(381)) / 1 + -parseInt(x(372)) / 2 + parseInt(x(373)) / 3 * (parseInt(x(376)) / 4) + parseInt(x(379)) / 5 * (parseInt(x(374)) / 6) + parseInt(x(380)) / 7 + parseInt(x(378)) / 8 + -parseInt(x(377)) / 9 * (parseInt(x(375)) / 10);
|
|
416
|
+
if (r === t) break;
|
|
347
417
|
e.push(e.shift());
|
|
348
418
|
} catch {
|
|
349
419
|
e.push(e.shift());
|
|
350
420
|
}
|
|
351
|
-
})(
|
|
352
|
-
function
|
|
353
|
-
var
|
|
354
|
-
return
|
|
355
|
-
return
|
|
356
|
-
},
|
|
421
|
+
})(X, 1 * 20354 + 54306 + 226651);
|
|
422
|
+
function X() {
|
|
423
|
+
var n = ["65IyDgef", "859614GtLEmM", "513137EONGOH", "54464jRjryJ", "21921JTJtFZ", "66126BiXKiq", "88080PQFVdf", "284UNxwcr", "477VzusNg", "4189056Abbjbl"];
|
|
424
|
+
return X = function() {
|
|
425
|
+
return n;
|
|
426
|
+
}, X();
|
|
427
|
+
}
|
|
428
|
+
function S(n, t) {
|
|
429
|
+
var x = X();
|
|
430
|
+
return S = function(e, r) {
|
|
431
|
+
e = e - (8216 + 3922 * -2);
|
|
432
|
+
var s = x[e];
|
|
433
|
+
return s;
|
|
434
|
+
}, S(n, t);
|
|
357
435
|
}
|
|
358
436
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
B as
|
|
366
|
-
W as
|
|
367
|
-
|
|
368
|
-
|
|
437
|
+
N as MessageChannelClientTransport,
|
|
438
|
+
Q as MessageChannelServerTransport,
|
|
439
|
+
_ as MessageChannelTransport,
|
|
440
|
+
L as ProxySSEClientTransport,
|
|
441
|
+
R as ProxyStreamClientTransport,
|
|
442
|
+
V as createSseProxy,
|
|
443
|
+
B as createStreamProxy,
|
|
444
|
+
W as createTransportPair,
|
|
445
|
+
U as sseOptions,
|
|
446
|
+
Y as streamOptions
|
|
369
447
|
};
|