@opentiny/next 0.1.2 → 0.1.4
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/client.js +354 -333
- package/package.json +2 -2
- package/server.js +242 -224
package/client.js
CHANGED
|
@@ -1,473 +1,494 @@
|
|
|
1
|
-
import { JSONRPCMessageSchema as
|
|
2
|
-
import { Client as
|
|
3
|
-
import { SSEClientTransport as
|
|
4
|
-
import { StreamableHTTPClientTransport as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
1
|
+
import { JSONRPCMessageSchema as P } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { Client as C } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
|
+
import { SSEClientTransport as A } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
|
+
import { StreamableHTTPClientTransport as L } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
+
const f = u;
|
|
6
|
+
function _() {
|
|
7
|
+
const n = ["4|3|2|0|1", "port1", "679224RAgtsv", "undefined", "postMessage", "uxyaO", "MessagePort error: ", "356yKKReV", "uJFvk", "_port", "AkUMV", "onclose", "data", "KORLb", "rErKj", "phDrU", "stringify", "_started", "randomUUID", "function", "onmessageerror", "9DHNIof", "1071009WHRYjd", "YQtxD", "BPROw", "5ASndSO", "split", "2236OiZOuq", "sYiAO", "onmessage", "hskou", "RSOqz", "iOEyU", "endpoint", "AwGTN", "close", "bRXzv", "_endpoint", "IDJSL", "listen", "_sessionId", "_globalObject", "onerror", "hTcZx", "port2", "_closed", "kVBRC", "11812oaqyFE", "addEventListener", "cnNyz", "return this", "SLQrX", "_listen", "5679540HLvIsa", "start", "618472IVkSDy", "2221037PeQXnH", "yslLa"];
|
|
8
|
+
return _ = function() {
|
|
9
|
+
return n;
|
|
10
|
+
}, _();
|
|
11
|
+
}
|
|
12
|
+
(function(n, e) {
|
|
13
|
+
const x = u, t = n();
|
|
8
14
|
for (; ; )
|
|
9
15
|
try {
|
|
10
|
-
if (parseInt(x(
|
|
11
|
-
|
|
16
|
+
if (parseInt(x(306)) / 1 * (-parseInt(x(286)) / 2) + parseInt(x(301)) / 3 + parseInt(x(268)) / 4 * (parseInt(x(304)) / 5) + parseInt(x(281)) / 6 + -parseInt(x(277)) / 7 + -parseInt(x(276)) / 8 * (parseInt(x(300)) / 9) + parseInt(x(274)) / 10 === e) break;
|
|
17
|
+
t.push(t.shift());
|
|
12
18
|
} catch {
|
|
13
|
-
|
|
19
|
+
t.push(t.shift());
|
|
14
20
|
}
|
|
15
|
-
})(
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, UcoBZ: n(271), ClGcK: "return this", HsPQJ: function(s, r) {
|
|
26
|
-
return s !== r;
|
|
27
|
-
} }, x = t[n(234)][n(246)]("|");
|
|
28
|
-
let e = -2 * -3944 + -2 * -262 + -3 * 2804;
|
|
21
|
+
})(_, -75076 + -7651 * 53 + 1295 * 563);
|
|
22
|
+
const V = () => {
|
|
23
|
+
const n = u, e = { AkUMV: n(279), hTcZx: function(s, a) {
|
|
24
|
+
return s !== a;
|
|
25
|
+
}, cXUVU: function(s, a) {
|
|
26
|
+
return s(a);
|
|
27
|
+
}, cnNyz: n(271), BPROw: function(s, a) {
|
|
28
|
+
return s !== a;
|
|
29
|
+
}, KORLb: n(282) }, x = e[n(289)][n(305)]("|");
|
|
30
|
+
let t = -3 * -3093 + -281 * -7 + -11246;
|
|
29
31
|
for (; ; ) {
|
|
30
|
-
switch (x[
|
|
32
|
+
switch (x[t++]) {
|
|
31
33
|
case "0":
|
|
32
|
-
if (
|
|
34
|
+
if (e[n(264)](typeof self, n(282))) return self;
|
|
33
35
|
continue;
|
|
34
36
|
case "1":
|
|
35
|
-
|
|
36
|
-
continue;
|
|
37
|
+
return e.cXUVU(Function, e[n(270)])();
|
|
37
38
|
case "2":
|
|
38
|
-
if (typeof
|
|
39
|
+
if (e[n(303)](typeof global, e[n(292)])) return global;
|
|
39
40
|
continue;
|
|
40
41
|
case "3":
|
|
41
|
-
|
|
42
|
+
if (e.BPROw(typeof window, n(282))) return window;
|
|
43
|
+
continue;
|
|
42
44
|
case "4":
|
|
43
|
-
if (
|
|
45
|
+
if (e[n(264)](typeof globalThis, e[n(292)])) return globalThis;
|
|
44
46
|
continue;
|
|
45
47
|
}
|
|
46
48
|
break;
|
|
47
49
|
}
|
|
48
|
-
},
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return s
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
}, GZUjd: x(239), NxTNs: function(s, r) {
|
|
63
|
-
return s in r;
|
|
64
|
-
}, QPOqH: x(222), nkSuS: function(s, r) {
|
|
65
|
-
return s !== r;
|
|
66
|
-
}, YUNan: x(271) };
|
|
67
|
-
e[x(262)](e.nFwNi, n) && e[x(225)](typeof n[x(249)], x(268)) ? n.addEventListener(e[x(243)], t) : e[x(270)](e[x(237)], n) && e[x(274)](typeof n[x(222)], e[x(236)]) && (n.onmessage = t);
|
|
50
|
+
}, J = (n, e, x) => {
|
|
51
|
+
const t = u, s = { RSOqz: function(a, r) {
|
|
52
|
+
return a === r;
|
|
53
|
+
}, sYiAO: t(298) };
|
|
54
|
+
typeof window !== t(282) ? n[t(283)](e, "*", x) : t(283) in n && s[t(310)](typeof n[t(283)], s[t(307)]) && n[t(283)](e, x);
|
|
55
|
+
}, q = (n, e) => {
|
|
56
|
+
const x = u, t = { hskou: function(s, a) {
|
|
57
|
+
return s in a;
|
|
58
|
+
}, jKyCk: x(269), CHloe: function(s, a) {
|
|
59
|
+
return s === a;
|
|
60
|
+
}, uxyaO: "message", yslLa: x(308), SLQrX: function(s, a) {
|
|
61
|
+
return s !== a;
|
|
62
|
+
}, phDrU: x(282) };
|
|
63
|
+
t[x(309)](t.jKyCk, n) && t.CHloe(typeof n[x(269)], "function") ? n[x(269)](t[x(284)], e) : t.hskou(t[x(278)], n) && t[x(272)](typeof n[x(308)], t[x(294)]) && (n[x(308)] = e);
|
|
68
64
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
function u(n, e) {
|
|
66
|
+
const x = _();
|
|
67
|
+
return u = function(t, s) {
|
|
68
|
+
return t = t - (-7068 + 1639 * 5 + -3 * 289), x[t];
|
|
69
|
+
}, u(n, e);
|
|
70
|
+
}
|
|
71
|
+
class I {
|
|
72
|
+
constructor(e, x) {
|
|
73
|
+
const t = u, s = "4|3|2|0|5|1"[t(305)]("|");
|
|
74
|
+
let a = -5991 + 8167 * -1 + 14158;
|
|
73
75
|
for (; ; ) {
|
|
74
|
-
switch (
|
|
76
|
+
switch (s[a++]) {
|
|
75
77
|
case "0":
|
|
76
|
-
this[
|
|
78
|
+
this[t(261)] = x;
|
|
77
79
|
continue;
|
|
78
80
|
case "1":
|
|
79
|
-
this
|
|
81
|
+
this[t(266)] = !1;
|
|
80
82
|
continue;
|
|
81
83
|
case "2":
|
|
82
|
-
this[
|
|
84
|
+
this[t(288)] = e;
|
|
83
85
|
continue;
|
|
84
86
|
case "3":
|
|
85
|
-
this[
|
|
87
|
+
this[t(266)] = !1;
|
|
86
88
|
continue;
|
|
87
89
|
case "4":
|
|
88
90
|
this._started = !1;
|
|
89
91
|
continue;
|
|
90
92
|
case "5":
|
|
91
|
-
this[
|
|
93
|
+
this[t(296)] = !1;
|
|
92
94
|
continue;
|
|
93
95
|
}
|
|
94
96
|
break;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
|
-
async [
|
|
98
|
-
const
|
|
99
|
-
this[
|
|
100
|
-
var s,
|
|
101
|
-
const
|
|
99
|
+
async [f(275)]() {
|
|
100
|
+
const e = f;
|
|
101
|
+
this[e(296)] || this[e(266)] || !this._port || (this[e(296)] = !0, this[e(288)].onmessage = (x) => {
|
|
102
|
+
var s, a;
|
|
103
|
+
const t = e;
|
|
102
104
|
try {
|
|
103
|
-
const
|
|
104
|
-
(s = this
|
|
105
|
-
} catch (
|
|
106
|
-
const c = new Error(
|
|
107
|
-
(
|
|
105
|
+
const r = P.parse(x[t(291)]);
|
|
106
|
+
(s = this.onmessage) == null || s.call(this, r);
|
|
107
|
+
} catch (r) {
|
|
108
|
+
const c = new Error("Failed to parse message: " + r);
|
|
109
|
+
(a = this.onerror) == null || a.call(this, c);
|
|
108
110
|
}
|
|
109
|
-
}, this[
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
(
|
|
113
|
-
}, this[
|
|
111
|
+
}, this[e(288)][e(299)] = (x) => {
|
|
112
|
+
var a;
|
|
113
|
+
const t = e, s = new Error(t(285) + JSON[t(295)](x));
|
|
114
|
+
(a = this.onerror) == null || a.call(this, s);
|
|
115
|
+
}, this[e(288)].start());
|
|
114
116
|
}
|
|
115
|
-
async
|
|
116
|
-
const x =
|
|
117
|
-
return s(
|
|
117
|
+
async send(e) {
|
|
118
|
+
const x = f, t = { YQtxD: function(s) {
|
|
119
|
+
return s();
|
|
120
|
+
}, uJFvk: function(s, a) {
|
|
121
|
+
return s instanceof a;
|
|
122
|
+
}, AwGTN: function(s, a) {
|
|
123
|
+
return s(a);
|
|
118
124
|
} };
|
|
119
|
-
if (!(this[x(
|
|
120
|
-
return new Promise((s,
|
|
125
|
+
if (!(this[x(266)] || !this[x(288)]))
|
|
126
|
+
return new Promise((s, a) => {
|
|
121
127
|
var c;
|
|
122
|
-
const
|
|
128
|
+
const r = x;
|
|
123
129
|
try {
|
|
124
|
-
this[
|
|
125
|
-
} catch (
|
|
126
|
-
const
|
|
127
|
-
(c = this[
|
|
130
|
+
this[r(288)] && this[r(288)][r(283)](e), t[r(302)](s);
|
|
131
|
+
} catch (o) {
|
|
132
|
+
const i = t[r(287)](o, Error) ? o : new Error(String(o));
|
|
133
|
+
(c = this[r(263)]) == null || c.call(this, i), t[r(313)](a, i);
|
|
128
134
|
}
|
|
129
135
|
});
|
|
130
136
|
}
|
|
131
|
-
async [
|
|
137
|
+
async [f(314)]() {
|
|
132
138
|
var x;
|
|
133
|
-
const
|
|
134
|
-
this
|
|
139
|
+
const e = f;
|
|
140
|
+
this[e(266)] || !this[e(288)] || (this._closed = !0, this._port[e(314)](), (x = this[e(290)]) == null || x.call(this));
|
|
135
141
|
}
|
|
136
|
-
get
|
|
137
|
-
return this[
|
|
142
|
+
get sessionId() {
|
|
143
|
+
return this[f(261)];
|
|
138
144
|
}
|
|
139
145
|
}
|
|
140
|
-
class
|
|
141
|
-
constructor(
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const r = new MessageChannel(), a = crypto.randomUUID();
|
|
147
|
-
this._port = r.port1, this._sessionId = a, s[e(264)](D, this[e(245)], { endpoint: this[e(253)], sessionId: a }, [r[e(277)]]);
|
|
146
|
+
class Y extends I {
|
|
147
|
+
constructor(e, x = V()) {
|
|
148
|
+
const t = f;
|
|
149
|
+
super(), this[t(316)] = e, this[t(262)] = x;
|
|
150
|
+
const s = new MessageChannel(), a = crypto[t(297)]();
|
|
151
|
+
this._port = s[t(280)], this._sessionId = a, J(this[t(262)], { endpoint: this._endpoint, sessionId: a }, [s.port2]);
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
|
-
class
|
|
151
|
-
constructor(
|
|
152
|
-
const
|
|
153
|
-
return
|
|
154
|
-
},
|
|
155
|
-
return
|
|
156
|
-
},
|
|
157
|
-
return r
|
|
154
|
+
class $ extends I {
|
|
155
|
+
constructor(e, x = V()) {
|
|
156
|
+
const t = f, s = { iOEyU: function(a, r) {
|
|
157
|
+
return a === r;
|
|
158
|
+
}, IDJSL: function(a) {
|
|
159
|
+
return a();
|
|
160
|
+
}, kVBRC: function(a, r, c) {
|
|
161
|
+
return a(r, c);
|
|
158
162
|
} };
|
|
159
|
-
super(), this[
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
super(), this[t(316)] = e, this[t(262)] = x, this[t(273)] = new Promise((a) => {
|
|
164
|
+
const r = t, c = { bRXzv: function(o, i) {
|
|
165
|
+
return s[u(311)](o, i);
|
|
166
|
+
}, rErKj: function(o) {
|
|
167
|
+
return s[u(317)](o);
|
|
168
|
+
} };
|
|
169
|
+
s[r(267)](q, this[r(262)], (o) => {
|
|
170
|
+
const i = r;
|
|
171
|
+
o[i(291)] && c[i(315)](o.data[i(312)], this._endpoint) && (this[i(288)] = o.ports[-5711 * 1 + -4211 + 9922], this[i(261)] = o[i(291)].sessionId, c[i(293)](a));
|
|
164
172
|
});
|
|
165
173
|
});
|
|
166
174
|
}
|
|
167
|
-
async [
|
|
168
|
-
return this[
|
|
175
|
+
async [f(260)]() {
|
|
176
|
+
return this[f(273)];
|
|
169
177
|
}
|
|
170
178
|
}
|
|
171
|
-
const
|
|
172
|
-
const n =
|
|
173
|
-
return [new
|
|
179
|
+
const x0 = () => {
|
|
180
|
+
const n = f, e = new MessageChannel(), x = crypto[n(297)]();
|
|
181
|
+
return [new I(e[n(280)], x), new I(e[n(265)], x)];
|
|
174
182
|
};
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
return I = function() {
|
|
178
|
-
return n;
|
|
179
|
-
}, I();
|
|
180
|
-
}
|
|
181
|
-
(function(n, t) {
|
|
182
|
-
const x = u, e = n();
|
|
183
|
+
(function(n, e) {
|
|
184
|
+
const x = h, t = n();
|
|
183
185
|
for (; ; )
|
|
184
186
|
try {
|
|
185
|
-
if (
|
|
186
|
-
|
|
187
|
+
if (parseInt(x(206)) / 1 + -parseInt(x(193)) / 2 + -parseInt(x(199)) / 3 + -parseInt(x(157)) / 4 * (parseInt(x(180)) / 5) + -parseInt(x(183)) / 6 * (-parseInt(x(170)) / 7) + -parseInt(x(184)) / 8 + parseInt(x(189)) / 9 * (parseInt(x(186)) / 10) === e) break;
|
|
188
|
+
t.push(t.shift());
|
|
187
189
|
} catch {
|
|
188
|
-
|
|
190
|
+
t.push(t.shift());
|
|
189
191
|
}
|
|
190
|
-
})(
|
|
191
|
-
function
|
|
192
|
-
const x =
|
|
193
|
-
return
|
|
194
|
-
return
|
|
195
|
-
},
|
|
192
|
+
})(w, -30554 * -52 + -1 * 606613 + -57292);
|
|
193
|
+
function h(n, e) {
|
|
194
|
+
const x = w();
|
|
195
|
+
return h = function(t, s) {
|
|
196
|
+
return t = t - (-11 * -185 + 336 + -443 * 5), x[t];
|
|
197
|
+
}, h(n, e);
|
|
196
198
|
}
|
|
197
|
-
function
|
|
198
|
-
const n = ["
|
|
199
|
-
return
|
|
199
|
+
function w() {
|
|
200
|
+
const n = ["resources/subscribe", "ping", "resources/read", "393530yIHVtY", "forward", "XZETl", "pwSKX", "initialize", "unsubscribeResource", "notification", "172pkalSl", "tools/call", "completion/complete", "readResource", "_onrequest", "setLoggingLevel", "resources/list", "protocolVersion", "prompts/list", "listResourceTemplates", "Tzjin", "iaOEj", "onmessage", "1227289EsxKGN", "subscribeResource", "IsISs", "WOdsW", "KBlBl", "tIVIZ", "resources/unsubscribe", "tools/list", "qfKYm", "callTool", "106490VdOZkx", "MwUMO", "logging/setLevel", "30AFvHVm", "9889840NnrolI", "_onnotification", "20dKDpUE", "send", "notifications/initialized", "16467786obemSM", "resources/templates/list", "prompts/get", "_client", "2611030UuZguQ", "2.0", "isSet", "OVBQA", "FIXVX", "_transport", "1641633Qjhlmh", "call", "CendM", "listPrompts"];
|
|
201
|
+
return w = function() {
|
|
200
202
|
return n;
|
|
201
|
-
},
|
|
203
|
+
}, w();
|
|
202
204
|
}
|
|
203
|
-
const
|
|
204
|
-
const x =
|
|
205
|
-
return i !==
|
|
206
|
-
},
|
|
205
|
+
const Q = async (n, e) => {
|
|
206
|
+
const x = h, t = { Chjbn: x(177), FIXVX: x(158), Tzjin: x(163), ogPKJ: x(203), OVBQA: x(191), iaOEj: x(165), tIVIZ: x(204), qfKYm: x(159), WFkgE: x(182), MwUMO: "2.0", pwSKX: function(i, p) {
|
|
207
|
+
return i !== p;
|
|
208
|
+
}, KBlBl: x(210), IsISs: function(i, p) {
|
|
209
|
+
return i !== p;
|
|
210
|
+
}, CendM: "notifications/cancelled" };
|
|
207
211
|
let s;
|
|
208
|
-
const { id:
|
|
209
|
-
if (
|
|
210
|
-
switch (
|
|
211
|
-
case
|
|
212
|
-
s = await n[x(
|
|
212
|
+
const { id: a, method: r, params: c, result: o } = e;
|
|
213
|
+
if (r) {
|
|
214
|
+
switch (r) {
|
|
215
|
+
case t.Chjbn:
|
|
216
|
+
s = await n[x(192)].listTools(c);
|
|
213
217
|
break;
|
|
214
|
-
case x(
|
|
215
|
-
s = await n._client
|
|
218
|
+
case t[x(197)]:
|
|
219
|
+
s = await n._client[x(179)](c);
|
|
216
220
|
break;
|
|
217
|
-
case
|
|
218
|
-
s = await n
|
|
221
|
+
case t[x(167)]:
|
|
222
|
+
s = await n._client.listResources(c);
|
|
219
223
|
break;
|
|
220
|
-
case
|
|
221
|
-
s = await n[x(
|
|
224
|
+
case x(190):
|
|
225
|
+
s = await n[x(192)][x(166)](c);
|
|
222
226
|
break;
|
|
223
|
-
case x(
|
|
224
|
-
s = await n._client[x(
|
|
227
|
+
case x(205):
|
|
228
|
+
s = await n._client[x(160)](c);
|
|
225
229
|
break;
|
|
226
|
-
case
|
|
227
|
-
s = await n
|
|
230
|
+
case t.ogPKJ:
|
|
231
|
+
s = await n[x(192)][x(171)](c);
|
|
228
232
|
break;
|
|
229
|
-
case
|
|
230
|
-
s = await n[x(
|
|
233
|
+
case x(176):
|
|
234
|
+
s = await n[x(192)][x(211)](c);
|
|
231
235
|
break;
|
|
232
|
-
case
|
|
233
|
-
s = await n
|
|
236
|
+
case t[x(196)]:
|
|
237
|
+
s = await n._client.getPrompt(c);
|
|
234
238
|
break;
|
|
235
|
-
case
|
|
236
|
-
s = await n[x(
|
|
239
|
+
case t[x(168)]:
|
|
240
|
+
s = await n[x(192)][x(202)](c);
|
|
237
241
|
break;
|
|
238
|
-
case
|
|
239
|
-
s = await n[x(
|
|
242
|
+
case t[x(175)]:
|
|
243
|
+
s = await n[x(192)][x(204)]();
|
|
240
244
|
break;
|
|
241
|
-
case
|
|
242
|
-
s = await n[x(
|
|
245
|
+
case t[x(178)]:
|
|
246
|
+
s = await n[x(192)].complete(c);
|
|
243
247
|
break;
|
|
244
|
-
case
|
|
245
|
-
s = await n._client[x(
|
|
248
|
+
case t.WFkgE:
|
|
249
|
+
s = await n._client[x(162)](c.level);
|
|
246
250
|
break;
|
|
247
251
|
}
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
252
|
+
s ? await n[x(187)]({ result: s, jsonrpc: t[x(181)], id: a }) : t[x(209)](r, t[x(174)]) && t[x(209)](r, x(188)) && (t[x(172)](r, t[x(201)]) || c[x(207)]) && await n[x(192)][x(156)]({ method: r, params: c });
|
|
253
|
+
} else o && !o[x(164)] && (await n[x(192)][x(198)][x(187)](e), s = o);
|
|
254
|
+
return s;
|
|
255
|
+
}, K = (n) => {
|
|
256
|
+
const e = h, x = { XZETl: function(s, a, r) {
|
|
257
|
+
return s(a, r);
|
|
258
|
+
}, iqgfj: function(s, a) {
|
|
259
|
+
return s === a;
|
|
260
|
+
} }, t = n[e(169)];
|
|
261
|
+
if (!t.isSet) {
|
|
262
|
+
async function s(a, r) {
|
|
263
|
+
const c = e;
|
|
264
|
+
if (n._client) {
|
|
265
|
+
let o;
|
|
266
|
+
try {
|
|
267
|
+
o = await x[c(208)](Q, n, a);
|
|
268
|
+
} catch {
|
|
269
|
+
}
|
|
270
|
+
if (x.iqgfj(o, void 0) && t) try {
|
|
271
|
+
t[c(200)](n, a, r);
|
|
272
|
+
} catch {
|
|
273
|
+
}
|
|
267
274
|
}
|
|
268
275
|
}
|
|
276
|
+
s[e(195)] = !0, n.onmessage = s;
|
|
277
|
+
}
|
|
278
|
+
}, M = (n, e) => {
|
|
279
|
+
const x = h, t = { WOdsW: x(194) };
|
|
280
|
+
e[x(161)] = async (a) => {
|
|
281
|
+
try {
|
|
282
|
+
await n.send(a);
|
|
283
|
+
} catch {
|
|
284
|
+
}
|
|
269
285
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const a = x, c = { ...r, jsonrpc: e[a(487)] };
|
|
286
|
+
const s = e[x(185)];
|
|
287
|
+
e[x(185)] = async (a) => {
|
|
288
|
+
const r = x;
|
|
274
289
|
try {
|
|
275
|
-
await n
|
|
290
|
+
await n[r(187)]({ ...a, jsonrpc: t[r(173)] });
|
|
276
291
|
} catch {
|
|
277
292
|
}
|
|
278
|
-
s[
|
|
293
|
+
s[r(200)](e, a);
|
|
279
294
|
};
|
|
280
295
|
};
|
|
281
|
-
function
|
|
282
|
-
var x =
|
|
283
|
-
return p = function(e, s) {
|
|
284
|
-
e = e - (277 * 2 + 1651 * 1 + -1919);
|
|
285
|
-
var r = x[e];
|
|
286
|
-
return r;
|
|
287
|
-
}, p(n, t);
|
|
288
|
-
}
|
|
289
|
-
var h = p;
|
|
290
|
-
(function(n, t) {
|
|
291
|
-
for (var x = p, e = n(); ; )
|
|
296
|
+
(function(n, e) {
|
|
297
|
+
for (var x = b, t = n(); ; )
|
|
292
298
|
try {
|
|
293
|
-
var s =
|
|
294
|
-
if (s ===
|
|
295
|
-
|
|
299
|
+
var s = parseInt(x(383)) / 1 * (parseInt(x(391)) / 2) + parseInt(x(386)) / 3 * (parseInt(x(396)) / 4) + -parseInt(x(385)) / 5 * (parseInt(x(379)) / 6) + -parseInt(x(387)) / 7 * (parseInt(x(380)) / 8) + -parseInt(x(382)) / 9 * (-parseInt(x(392)) / 10) + -parseInt(x(381)) / 11 * (-parseInt(x(388)) / 12) + -parseInt(x(389)) / 13;
|
|
300
|
+
if (s === e) break;
|
|
301
|
+
t.push(t.shift());
|
|
296
302
|
} catch {
|
|
297
|
-
|
|
303
|
+
t.push(t.shift());
|
|
298
304
|
}
|
|
299
|
-
})(
|
|
300
|
-
function
|
|
301
|
-
var n = ["
|
|
302
|
-
return
|
|
305
|
+
})(m, 389 * -1754 + -3 * 97355 + 1317170);
|
|
306
|
+
function m() {
|
|
307
|
+
var n = ["5022OmnyKA", "10LdrZKx", "get", "142565gVQzoS", "4419UtroOm", "3268391tMBvKD", "14244EMXwWb", "8517808LylLmW", "_client", "64166GVytov", "8430JLnKxF", "uRope", "sessionId", "searchParams", "724hXVbSd", "_startOrAuth", "_endpoint", "12GXPNZL", "8qTvGNm", "4301CiXaaz"];
|
|
308
|
+
return m = function() {
|
|
303
309
|
return n;
|
|
304
|
-
},
|
|
310
|
+
}, m();
|
|
305
311
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
+
function b(n, e) {
|
|
313
|
+
var x = m();
|
|
314
|
+
return b = function(t, s) {
|
|
315
|
+
t = t - (5050 + 4337 * -1 + -335);
|
|
316
|
+
var a = x[t];
|
|
317
|
+
return a;
|
|
318
|
+
}, b(n, e);
|
|
319
|
+
}
|
|
320
|
+
class B extends A {
|
|
321
|
+
constructor(e, x, t) {
|
|
322
|
+
var s = b;
|
|
323
|
+
super(e, x), this[s(390)] = t, M(this, t);
|
|
312
324
|
}
|
|
313
|
-
|
|
314
|
-
var
|
|
315
|
-
return
|
|
325
|
+
_startOrAuth() {
|
|
326
|
+
var e = b, x = { JnUhn: function(t, s) {
|
|
327
|
+
return t(s);
|
|
316
328
|
} };
|
|
317
|
-
return x.
|
|
329
|
+
return x.JnUhn(K, this), super[e(397)]();
|
|
318
330
|
}
|
|
319
|
-
get
|
|
320
|
-
var
|
|
321
|
-
return this[
|
|
331
|
+
get sessionId() {
|
|
332
|
+
var e = b, x = { uRope: e(394) };
|
|
333
|
+
return this[e(378)][e(395)][e(384)](x[e(393)]);
|
|
322
334
|
}
|
|
323
335
|
}
|
|
324
|
-
var
|
|
325
|
-
(function(n,
|
|
326
|
-
for (var x =
|
|
336
|
+
var T = d;
|
|
337
|
+
(function(n, e) {
|
|
338
|
+
for (var x = d, t = n(); ; )
|
|
327
339
|
try {
|
|
328
|
-
var s = -parseInt(x(
|
|
329
|
-
if (s ===
|
|
330
|
-
|
|
340
|
+
var s = -parseInt(x(264)) / 1 * (-parseInt(x(271)) / 2) + parseInt(x(278)) / 3 * (-parseInt(x(272)) / 4) + parseInt(x(263)) / 5 * (parseInt(x(265)) / 6) + -parseInt(x(268)) / 7 * (-parseInt(x(269)) / 8) + parseInt(x(277)) / 9 * (parseInt(x(267)) / 10) + -parseInt(x(270)) / 11 + parseInt(x(275)) / 12 * (parseInt(x(266)) / 13);
|
|
341
|
+
if (s === e) break;
|
|
342
|
+
t.push(t.shift());
|
|
331
343
|
} catch {
|
|
332
|
-
|
|
344
|
+
t.push(t.shift());
|
|
333
345
|
}
|
|
334
|
-
})(y,
|
|
335
|
-
function
|
|
346
|
+
})(y, 2 * -294638 + -857 * -1018 + 168624);
|
|
347
|
+
function d(n, e) {
|
|
336
348
|
var x = y();
|
|
337
|
-
return
|
|
338
|
-
|
|
339
|
-
var
|
|
340
|
-
return
|
|
341
|
-
},
|
|
342
|
-
}
|
|
343
|
-
function y() {
|
|
344
|
-
var n = ["42570AtnolJ", "4912649diEKKf", "_handleSseStream", "_client", "198fESTMB", "1537282OIloLe", "3WqFJPv", "696177OUssRv", "3769434fxRMKR", "75592RCiIbK", "525428zfwUdm"];
|
|
345
|
-
return y = function() {
|
|
346
|
-
return n;
|
|
347
|
-
}, y();
|
|
349
|
+
return d = function(t, s) {
|
|
350
|
+
t = t - (-107 * -52 + -9209 * -1 + -1451 * 10);
|
|
351
|
+
var a = x[t];
|
|
352
|
+
return a;
|
|
353
|
+
}, d(n, e);
|
|
348
354
|
}
|
|
349
|
-
class
|
|
350
|
-
constructor(
|
|
351
|
-
var s =
|
|
352
|
-
|
|
355
|
+
class N extends L {
|
|
356
|
+
constructor(e, x, t) {
|
|
357
|
+
var s = d, a = { Wkuiz: function(r, c, o) {
|
|
358
|
+
return r(c, o);
|
|
359
|
+
} };
|
|
360
|
+
super(e, x), this._client = t, a[s(274)](M, this, t);
|
|
353
361
|
}
|
|
354
|
-
[
|
|
355
|
-
|
|
362
|
+
[T(276)](e, x) {
|
|
363
|
+
var t = T, s = { jhXtX: function(a, r) {
|
|
364
|
+
return a(r);
|
|
365
|
+
} };
|
|
366
|
+
s[t(273)](K, this), super[t(276)](e, x);
|
|
356
367
|
}
|
|
357
368
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
return
|
|
369
|
+
function y() {
|
|
370
|
+
var n = ["9qaucRd", "65uQwPii", "2GMTeDE", "308838LBJQJN", "1361685edIBxA", "3241950hJdseW", "13559oRTimU", "1128blaCel", "7753944SDuEQc", "5474nfaAVO", "725596Wfvlqr", "jhXtX", "Wkuiz", "12hYhJyj", "_handleSseStream", "18MhUuVA"];
|
|
371
|
+
return y = function() {
|
|
361
372
|
return n;
|
|
362
|
-
},
|
|
373
|
+
}, y();
|
|
363
374
|
}
|
|
364
|
-
|
|
365
|
-
|
|
375
|
+
const E = g;
|
|
376
|
+
(function(n, e) {
|
|
377
|
+
const x = g, t = n();
|
|
366
378
|
for (; ; )
|
|
367
379
|
try {
|
|
368
|
-
if (
|
|
369
|
-
|
|
380
|
+
if (parseInt(x(302)) / 1 * (parseInt(x(299)) / 2) + parseInt(x(312)) / 3 * (-parseInt(x(305)) / 4) + parseInt(x(297)) / 5 * (-parseInt(x(309)) / 6) + parseInt(x(304)) / 7 * (-parseInt(x(308)) / 8) + -parseInt(x(313)) / 9 + -parseInt(x(311)) / 10 * (-parseInt(x(307)) / 11) + parseInt(x(306)) / 12 * (parseInt(x(301)) / 13) === e) break;
|
|
381
|
+
t.push(t.shift());
|
|
370
382
|
} catch {
|
|
371
|
-
|
|
383
|
+
t.push(t.shift());
|
|
372
384
|
}
|
|
373
|
-
})(
|
|
374
|
-
function
|
|
375
|
-
const x =
|
|
376
|
-
return
|
|
377
|
-
return
|
|
378
|
-
},
|
|
385
|
+
})(k, 609845);
|
|
386
|
+
function g(n, e) {
|
|
387
|
+
const x = k();
|
|
388
|
+
return g = function(t, s) {
|
|
389
|
+
return t = t - (-31 * -298 + -513 * 5 + -6376), x[t];
|
|
390
|
+
}, g(n, e);
|
|
391
|
+
}
|
|
392
|
+
function k() {
|
|
393
|
+
const n = ["Bearer ", "130ubnbXA", "38879VOegQR", "sIbfU", "63tamhTw", "5860rATNON", "1214988htFrdb", "11zVJjZH", "389576ywXhav", "1226886lQQmBP", "authorization", "11690620IaVmMm", "1407QuUABf", "5585148VIesXa", "10iWlXME", "set", "30wtelFC"];
|
|
394
|
+
return k = function() {
|
|
395
|
+
return n;
|
|
396
|
+
}, k();
|
|
379
397
|
}
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
|
|
398
|
+
const W = (n) => ({ requestInit: { headers: { Authorization: E(300) + n } }, eventSourceInit: { async fetch(e, x) {
|
|
399
|
+
const t = E, s = { sIbfU: t(310), ibcOG: function(r, c, o) {
|
|
400
|
+
return r(c, o);
|
|
401
|
+
} }, a = new Headers((x == null ? void 0 : x.headers) || {});
|
|
402
|
+
return a[t(298)](s[t(303)], t(300) + n), s.ibcOG(fetch, e, { ...x, headers: a });
|
|
383
403
|
} } });
|
|
384
404
|
function v() {
|
|
385
|
-
const n = ["
|
|
405
|
+
const n = ["30553pEiuTa", "808pkhgKb", "126329USsomm", "22977LUaclj", "66oWTfhh", "227436VsPWvX", "Bearer ", "4269460GObhyR", "920125kzwNyQ", "26VxzVCI", "12807awgiCn", "randomUUID"];
|
|
386
406
|
return v = function() {
|
|
387
407
|
return n;
|
|
388
408
|
}, v();
|
|
389
409
|
}
|
|
390
|
-
|
|
391
|
-
const x =
|
|
410
|
+
function O(n, e) {
|
|
411
|
+
const x = v();
|
|
412
|
+
return O = function(t, s) {
|
|
413
|
+
return t = t - (366 * -26 + -594 + -29 * -362), x[t];
|
|
414
|
+
}, O(n, e);
|
|
415
|
+
}
|
|
416
|
+
const X = O;
|
|
417
|
+
(function(n, e) {
|
|
418
|
+
const x = O, t = n();
|
|
392
419
|
for (; ; )
|
|
393
420
|
try {
|
|
394
|
-
if (-parseInt(x(
|
|
395
|
-
|
|
421
|
+
if (-parseInt(x(392)) / 1 * (parseInt(x(389)) / 2) + -parseInt(x(395)) / 3 + parseInt(x(397)) / 4 + parseInt(x(388)) / 5 + parseInt(x(396)) / 6 * (-parseInt(x(394)) / 7) + parseInt(x(393)) / 8 * (parseInt(x(390)) / 9) + parseInt(x(399)) / 10 === e) break;
|
|
422
|
+
t.push(t.shift());
|
|
396
423
|
} catch {
|
|
397
|
-
|
|
424
|
+
t.push(t.shift());
|
|
398
425
|
}
|
|
399
|
-
})(v,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return e = e - (270 + 4 * -889 + 3429), x[e];
|
|
404
|
-
}, E(n, t);
|
|
405
|
-
}
|
|
406
|
-
const z = (n, t = crypto.randomUUID()) => ({ requestInit: { headers: { Authorization: "Bearer " + n, "stream-session-id": t } } });
|
|
407
|
-
(function(n, t) {
|
|
408
|
-
const x = _, e = n();
|
|
426
|
+
})(v, -217834 * -1 + 414155 + -423801);
|
|
427
|
+
const F = (n, e = crypto[X(391)]()) => ({ requestInit: { headers: { Authorization: X(398) + n, "stream-session-id": e } } });
|
|
428
|
+
(function(n, e) {
|
|
429
|
+
const x = l, t = n();
|
|
409
430
|
for (; ; )
|
|
410
431
|
try {
|
|
411
|
-
if (
|
|
412
|
-
|
|
432
|
+
if (parseInt(x(159)) / 1 * (-parseInt(x(156)) / 2) + -parseInt(x(157)) / 3 * (-parseInt(x(149)) / 4) + -parseInt(x(153)) / 5 * (-parseInt(x(163)) / 6) + parseInt(x(165)) / 7 * (parseInt(x(148)) / 8) + parseInt(x(162)) / 9 + parseInt(x(161)) / 10 + parseInt(x(154)) / 11 * (-parseInt(x(145)) / 12) === e) break;
|
|
433
|
+
t.push(t.shift());
|
|
413
434
|
} catch {
|
|
414
|
-
|
|
435
|
+
t.push(t.shift());
|
|
415
436
|
}
|
|
416
|
-
})(S,
|
|
437
|
+
})(S, -2 * -356012 + 5 * 185831 + -430571 * 2);
|
|
417
438
|
function S() {
|
|
418
|
-
const n = ["
|
|
439
|
+
const n = ["10579914JkMOvS", "6rEhTxH", "lYWRE", "2329537vnNeJF", "24ALvRXi", "mcp-proxy-client", "QRpGh", "8pdqlaq", "5836416IwzHzF", "randomUUID", "oshJo", "KnRqG", "706165zIRaKP", "16954927rXFijE", "connect", "4vEYPmW", "3biXmpN", "1.0.0", "165023JeoCuN", "sessionId", "10841230ZbeHac"];
|
|
419
440
|
return S = function() {
|
|
420
441
|
return n;
|
|
421
442
|
}, S();
|
|
422
443
|
}
|
|
423
|
-
function
|
|
444
|
+
function l(n, e) {
|
|
424
445
|
const x = S();
|
|
425
|
-
return
|
|
426
|
-
return
|
|
427
|
-
},
|
|
446
|
+
return l = function(t, s) {
|
|
447
|
+
return t = t - (6 * 1345 + -109 * 85 + 134 * 10), x[t];
|
|
448
|
+
}, l(n, e);
|
|
428
449
|
}
|
|
429
|
-
const
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
return await new
|
|
450
|
+
const t0 = async (n) => {
|
|
451
|
+
const e = l, x = { KnRqG: e(146), lYWRE: e(158) }, { client: t, url: s, token: a } = n, r = new B(new URL(s), W(a), t), c = { prompts: {}, resources: {}, tools: {}, logging: {}, roots: { listChanged: !0 }, sampling: {} };
|
|
452
|
+
return await new C({ name: x[e(152)], version: x[e(164)] }, { capabilities: c })[e(155)](r), { transport: r, sessionId: r[e(160)] };
|
|
453
|
+
}, e0 = async (n) => {
|
|
454
|
+
const e = l, x = { QRpGh: function(p, z, j) {
|
|
455
|
+
return p(z, j);
|
|
456
|
+
}, dxxzZ: e(146), oshJo: e(158) }, { client: t, url: s, token: a } = n, r = crypto[e(150)](), c = new N(new URL(s), x[e(147)](F, a, r), t), o = { prompts: {}, resources: {}, tools: {}, logging: {}, roots: { listChanged: !0 }, sampling: {} };
|
|
457
|
+
return await new C({ name: x.dxxzZ, version: x[e(151)] }, { capabilities: o })[e(155)](c), { transport: c, sessionId: r };
|
|
437
458
|
};
|
|
438
|
-
function
|
|
439
|
-
var x = U();
|
|
440
|
-
return O = function(e, s) {
|
|
441
|
-
e = e - (-7248 + -10 * -64 + 6826);
|
|
442
|
-
var r = x[e];
|
|
443
|
-
return r;
|
|
444
|
-
}, O(n, t);
|
|
445
|
-
}
|
|
446
|
-
(function(n, t) {
|
|
447
|
-
for (var x = O, e = n(); ; )
|
|
459
|
+
(function(n, e) {
|
|
460
|
+
for (var x = U, t = n(); ; )
|
|
448
461
|
try {
|
|
449
|
-
var s = -parseInt(x(
|
|
450
|
-
if (s ===
|
|
451
|
-
|
|
462
|
+
var s = -parseInt(x(192)) / 1 * (-parseInt(x(184)) / 2) + parseInt(x(189)) / 3 + -parseInt(x(191)) / 4 + -parseInt(x(190)) / 5 * (parseInt(x(187)) / 6) + -parseInt(x(188)) / 7 + -parseInt(x(186)) / 8 + -parseInt(x(185)) / 9 * (-parseInt(x(183)) / 10);
|
|
463
|
+
if (s === e) break;
|
|
464
|
+
t.push(t.shift());
|
|
452
465
|
} catch {
|
|
453
|
-
|
|
466
|
+
t.push(t.shift());
|
|
454
467
|
}
|
|
455
|
-
})(
|
|
456
|
-
function
|
|
457
|
-
var n = ["
|
|
458
|
-
return
|
|
468
|
+
})(R, -1423438 + 1 * 705865 + 1452266);
|
|
469
|
+
function R() {
|
|
470
|
+
var n = ["4322934YRzirF", "35urgodU", "1113112McoPZj", "1pAOfQT", "73690GqkJoh", "2806274NFWKYE", "927oDzgqo", "5963992rUDokS", "920904gLnKFU", "5391848BByiTj"];
|
|
471
|
+
return R = function() {
|
|
459
472
|
return n;
|
|
460
|
-
},
|
|
473
|
+
}, R();
|
|
474
|
+
}
|
|
475
|
+
function U(n, e) {
|
|
476
|
+
var x = R();
|
|
477
|
+
return U = function(t, s) {
|
|
478
|
+
t = t - (-3319 * 1 + 1 * 3530 + 14 * -2);
|
|
479
|
+
var a = x[t];
|
|
480
|
+
return a;
|
|
481
|
+
}, U(n, e);
|
|
461
482
|
}
|
|
462
483
|
export {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
484
|
+
Y as MessageChannelClientTransport,
|
|
485
|
+
$ as MessageChannelServerTransport,
|
|
486
|
+
I as MessageChannelTransport,
|
|
487
|
+
B as ProxySSEClientTransport,
|
|
488
|
+
N as ProxyStreamClientTransport,
|
|
489
|
+
t0 as createSseProxy,
|
|
490
|
+
e0 as createStreamProxy,
|
|
491
|
+
x0 as createTransportPair,
|
|
492
|
+
W as sseOptions,
|
|
493
|
+
F as streamOptions
|
|
473
494
|
};
|