@opentiny/next 0.1.0 → 0.1.2
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 +14 -13
- package/client.js +324 -298
- package/package.json +4 -3
- package/server.d.ts +2 -6
- package/server.js +218 -197
package/client.js
CHANGED
|
@@ -1,447 +1,473 @@
|
|
|
1
|
-
import { JSONRPCMessageSchema as
|
|
2
|
-
import { Client as
|
|
3
|
-
import { SSEClientTransport as
|
|
4
|
-
import { StreamableHTTPClientTransport as
|
|
5
|
-
const
|
|
1
|
+
import { JSONRPCMessageSchema as R } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { Client as P } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
|
+
import { SSEClientTransport as K } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
|
+
import { StreamableHTTPClientTransport as N } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
+
const o = d;
|
|
6
6
|
(function(n, t) {
|
|
7
|
-
const x =
|
|
7
|
+
const x = d, e = n();
|
|
8
8
|
for (; ; )
|
|
9
9
|
try {
|
|
10
|
-
if (parseInt(x(
|
|
10
|
+
if (parseInt(x(259)) / 1 * (-parseInt(x(282)) / 2) + -parseInt(x(256)) / 3 * (parseInt(x(240)) / 4) + parseInt(x(281)) / 5 + parseInt(x(235)) / 6 + -parseInt(x(233)) / 7 * (-parseInt(x(275)) / 8) + -parseInt(x(223)) / 9 + parseInt(x(230)) / 10 === t) break;
|
|
11
11
|
e.push(e.shift());
|
|
12
12
|
} catch {
|
|
13
13
|
e.push(e.shift());
|
|
14
14
|
}
|
|
15
|
-
})(
|
|
16
|
-
function
|
|
17
|
-
const x =
|
|
18
|
-
return
|
|
19
|
-
return e = e -
|
|
20
|
-
},
|
|
15
|
+
})(I, -24702 * -7 + 196624 * 2 + 12 * 6817);
|
|
16
|
+
function d(n, t) {
|
|
17
|
+
const x = I();
|
|
18
|
+
return d = function(e, s) {
|
|
19
|
+
return e = e - (-197 * 3 + 802 * -7 + 6427 * 1), x[e];
|
|
20
|
+
}, d(n, t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const n =
|
|
24
|
-
return
|
|
25
|
-
},
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
22
|
+
const M = () => {
|
|
23
|
+
const n = d, t = { zgySN: "2|4|1|0|3", MsWaq: function(s, r) {
|
|
24
|
+
return s !== r;
|
|
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;
|
|
29
|
+
for (; ; ) {
|
|
30
|
+
switch (x[e++]) {
|
|
31
|
+
case "0":
|
|
32
|
+
if (t[n(257)](typeof self, t[n(265)])) return self;
|
|
33
|
+
continue;
|
|
34
|
+
case "1":
|
|
35
|
+
if (t[n(257)](typeof global, n(271))) return global;
|
|
36
|
+
continue;
|
|
37
|
+
case "2":
|
|
38
|
+
if (typeof globalThis !== t.UcoBZ) return globalThis;
|
|
39
|
+
continue;
|
|
40
|
+
case "3":
|
|
41
|
+
return Function(t[n(227)])();
|
|
42
|
+
case "4":
|
|
43
|
+
if (t[n(241)](typeof window, t[n(265)])) return window;
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}, D = (n, t, x) => {
|
|
49
|
+
const e = d, s = { agBfL: function(r, a) {
|
|
50
|
+
return r !== a;
|
|
51
|
+
}, ziOks: e(271), DtIXM: function(r, a) {
|
|
52
|
+
return r in a;
|
|
53
|
+
}, UPfhE: e(247), IvNEu: function(r, a) {
|
|
54
|
+
return r === a;
|
|
55
|
+
}, kkcKP: e(268) };
|
|
56
|
+
s[e(250)](typeof window, s[e(242)]) ? n[e(247)](t, "*", x) : s.DtIXM(s.UPfhE, n) && s[e(254)](typeof n[e(247)], s.kkcKP) && n.postMessage(t, x);
|
|
57
|
+
}, X = (n, t) => {
|
|
58
|
+
const x = d, e = { SZtTy: function(s, r) {
|
|
59
|
+
return s in r;
|
|
60
|
+
}, nFwNi: x(249), TCbiB: function(s, r) {
|
|
61
|
+
return s === r;
|
|
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);
|
|
51
68
|
};
|
|
52
|
-
|
|
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"];
|
|
54
|
-
return l = function() {
|
|
55
|
-
return n;
|
|
56
|
-
}, l();
|
|
57
|
-
}
|
|
58
|
-
class _ {
|
|
69
|
+
class l {
|
|
59
70
|
constructor(t, x) {
|
|
60
|
-
const e =
|
|
61
|
-
let a =
|
|
71
|
+
const e = d, s = { IvPSV: e(279) }, r = s[e(238)][e(246)]("|");
|
|
72
|
+
let a = 3473 + 218 * 8 + -5217;
|
|
62
73
|
for (; ; ) {
|
|
63
|
-
switch (
|
|
74
|
+
switch (r[a++]) {
|
|
64
75
|
case "0":
|
|
65
|
-
this[e(
|
|
76
|
+
this[e(229)] = t;
|
|
66
77
|
continue;
|
|
67
78
|
case "1":
|
|
68
|
-
this
|
|
79
|
+
this._closed = !1;
|
|
69
80
|
continue;
|
|
70
81
|
case "2":
|
|
71
|
-
this[e(
|
|
82
|
+
this[e(258)] = !1;
|
|
72
83
|
continue;
|
|
73
84
|
case "3":
|
|
74
|
-
this
|
|
85
|
+
this[e(272)] = !1;
|
|
75
86
|
continue;
|
|
76
87
|
case "4":
|
|
77
|
-
this
|
|
88
|
+
this._started = !1;
|
|
78
89
|
continue;
|
|
79
90
|
case "5":
|
|
80
|
-
this[e(
|
|
91
|
+
this[e(224)] = x;
|
|
81
92
|
continue;
|
|
82
93
|
}
|
|
83
94
|
break;
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
|
-
async [
|
|
87
|
-
const t =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this[t(355)] = !0, this[t(346)][t(345)] = (e) => {
|
|
92
|
-
var s, a;
|
|
93
|
-
const r = t;
|
|
97
|
+
async [o(263)]() {
|
|
98
|
+
const t = o;
|
|
99
|
+
this[t(272)] || this[t(258)] || !this._port || (this[t(272)] = !0, this[t(229)].onmessage = (x) => {
|
|
100
|
+
var s, r;
|
|
101
|
+
const e = t;
|
|
94
102
|
try {
|
|
95
|
-
const
|
|
96
|
-
(s = this[
|
|
97
|
-
} catch (
|
|
98
|
-
const
|
|
99
|
-
(
|
|
103
|
+
const a = R[e(267)](x[e(283)]);
|
|
104
|
+
(s = this[e(222)]) == null || s.call(this, a);
|
|
105
|
+
} catch (a) {
|
|
106
|
+
const c = new Error(e(260) + a);
|
|
107
|
+
(r = this[e(266)]) == null || r.call(this, c);
|
|
100
108
|
}
|
|
101
|
-
}, this[t(
|
|
102
|
-
var
|
|
103
|
-
const
|
|
104
|
-
(
|
|
105
|
-
}, this[t(
|
|
109
|
+
}, this[t(229)][t(261)] = (x) => {
|
|
110
|
+
var r;
|
|
111
|
+
const e = t, s = new Error(e(276) + JSON.stringify(x));
|
|
112
|
+
(r = this[e(266)]) == null || r.call(this, s);
|
|
113
|
+
}, this[t(229)][t(263)]());
|
|
106
114
|
}
|
|
107
|
-
async [
|
|
108
|
-
const x =
|
|
109
|
-
return r
|
|
110
|
-
}, qnTYv: function(r, s) {
|
|
111
|
-
return r(s);
|
|
115
|
+
async [o(251)](t) {
|
|
116
|
+
const x = o, e = { HUpeu: function(s, r) {
|
|
117
|
+
return s(r);
|
|
112
118
|
} };
|
|
113
|
-
if (this[x(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
});
|
|
119
|
+
if (!(this[x(258)] || !this[x(229)]))
|
|
120
|
+
return new Promise((s, r) => {
|
|
121
|
+
var c;
|
|
122
|
+
const a = x;
|
|
123
|
+
try {
|
|
124
|
+
this[a(229)] && this[a(229)][a(247)](t), s();
|
|
125
|
+
} catch (i) {
|
|
126
|
+
const f = i instanceof Error ? i : new Error(e[a(248)](String, i));
|
|
127
|
+
(c = this[a(266)]) == null || c.call(this, f), r(f);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
125
130
|
}
|
|
126
|
-
async [
|
|
131
|
+
async [o(232)]() {
|
|
127
132
|
var x;
|
|
128
|
-
const t =
|
|
129
|
-
this
|
|
133
|
+
const t = o;
|
|
134
|
+
this._closed || !this[t(229)] || (this[t(258)] = !0, this._port[t(232)](), (x = this.onclose) == null || x.call(this));
|
|
130
135
|
}
|
|
131
|
-
get [
|
|
132
|
-
return this
|
|
136
|
+
get [o(269)]() {
|
|
137
|
+
return this[o(224)];
|
|
133
138
|
}
|
|
134
139
|
}
|
|
135
|
-
class
|
|
136
|
-
constructor(t, x =
|
|
137
|
-
const e =
|
|
138
|
-
return c(
|
|
140
|
+
class V extends l {
|
|
141
|
+
constructor(t, x = M()) {
|
|
142
|
+
const e = o, s = { wXgtx: function(c, i, f, T) {
|
|
143
|
+
return c(i, f, T);
|
|
139
144
|
} };
|
|
140
|
-
super(), this
|
|
141
|
-
const
|
|
142
|
-
this._port =
|
|
145
|
+
super(), this[e(253)] = t, this[e(245)] = x;
|
|
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)]]);
|
|
143
148
|
}
|
|
144
149
|
}
|
|
145
|
-
class
|
|
146
|
-
constructor(t, x =
|
|
147
|
-
const e =
|
|
148
|
-
return
|
|
149
|
-
},
|
|
150
|
-
return
|
|
151
|
-
},
|
|
152
|
-
return
|
|
150
|
+
class Y extends l {
|
|
151
|
+
constructor(t, x = M()) {
|
|
152
|
+
const e = o, s = { doghv: function(r, a) {
|
|
153
|
+
return r === a;
|
|
154
|
+
}, yKqkU: function(r) {
|
|
155
|
+
return r();
|
|
156
|
+
}, oTomg: function(r, a, c) {
|
|
157
|
+
return r(a, c);
|
|
153
158
|
} };
|
|
154
|
-
super(), this[e(
|
|
155
|
-
const a = e
|
|
156
|
-
|
|
157
|
-
}, aZmUD: function(o) {
|
|
158
|
-
return r.bRMGj(o);
|
|
159
|
-
} };
|
|
160
|
-
r[a(349)](j, this._globalObject, (o) => {
|
|
159
|
+
super(), this[e(253)] = t, this._globalObject = x, this[e(226)] = new Promise((r) => {
|
|
160
|
+
const a = e;
|
|
161
|
+
s[a(228)](X, this._globalObject, (c) => {
|
|
161
162
|
const i = a;
|
|
162
|
-
|
|
163
|
+
c[i(283)] && s[i(278)](c[i(283)][i(255)], this._endpoint) && (this._port = c[i(280)][3132 + -379 * 11 + 1037], this._sessionId = c[i(283)][i(269)], s[i(231)](r));
|
|
163
164
|
});
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
async [
|
|
167
|
-
return this[
|
|
167
|
+
async [o(252)]() {
|
|
168
|
+
return this[o(226)];
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
const
|
|
171
|
-
const n =
|
|
172
|
-
return [new
|
|
171
|
+
const G = () => {
|
|
172
|
+
const n = o, t = new MessageChannel(), x = crypto[n(273)]();
|
|
173
|
+
return [new l(t[n(244)], x), new l(t.port2, x)];
|
|
173
174
|
};
|
|
174
175
|
function I() {
|
|
175
|
-
const n = ["
|
|
176
|
+
const n = ["nkSuS", "16kqgkHi", "MessagePort error: ", "port2", "doghv", "4|1|0|5|3|2", "ports", "823960WaiIWX", "2KCGann", "data", "onmessage", "9629613gkwDzO", "_sessionId", "TCbiB", "_listen", "ClGcK", "oTomg", "_port", "21160090xIEKVr", "yKqkU", "close", "693161IjZSMv", "zgySN", "1778280dJrwsl", "YUNan", "QPOqH", "IvPSV", "message", "20QZRQxL", "HsPQJ", "ziOks", "GZUjd", "port1", "_globalObject", "split", "postMessage", "HUpeu", "addEventListener", "agBfL", "send", "listen", "_endpoint", "IvNEu", "endpoint", "134352gHidwg", "MsWaq", "_closed", "833384CAaezK", "Failed to parse message: ", "onmessageerror", "SZtTy", "start", "wXgtx", "UcoBZ", "onerror", "parse", "function", "sessionId", "NxTNs", "undefined", "_started", "randomUUID"];
|
|
176
177
|
return I = function() {
|
|
177
178
|
return n;
|
|
178
179
|
}, I();
|
|
179
180
|
}
|
|
180
181
|
(function(n, t) {
|
|
181
|
-
const x =
|
|
182
|
+
const x = u, e = n();
|
|
182
183
|
for (; ; )
|
|
183
184
|
try {
|
|
184
|
-
if (-parseInt(x(
|
|
185
|
+
if (-parseInt(x(497)) / 1 + parseInt(x(495)) / 2 + parseInt(x(464)) / 3 + parseInt(x(462)) / 4 + -parseInt(x(477)) / 5 * (-parseInt(x(502)) / 6) + parseInt(x(489)) / 7 + -parseInt(x(463)) / 8 === t) break;
|
|
185
186
|
e.push(e.shift());
|
|
186
187
|
} catch {
|
|
187
188
|
e.push(e.shift());
|
|
188
189
|
}
|
|
189
|
-
})(
|
|
190
|
-
function
|
|
191
|
-
const x =
|
|
192
|
-
return
|
|
193
|
-
return e = e -
|
|
194
|
-
},
|
|
190
|
+
})(g, -15 * -27049 + 534996 + -611060);
|
|
191
|
+
function u(n, t) {
|
|
192
|
+
const x = g();
|
|
193
|
+
return u = function(e, s) {
|
|
194
|
+
return e = e - (17 * -56 + -1 * -643 + -2 * -385), x[e];
|
|
195
|
+
}, u(n, t);
|
|
196
|
+
}
|
|
197
|
+
function g() {
|
|
198
|
+
const n = ["ping", "nsiiu", "prompts/list", "1603452cQDtyy", "4334048drUiAS", "1654965jYaqjS", "DXEjM", "onmessage", "svAat", "setLoggingLevel", "qSFQi", "2.0", "resources/list", "tools/call", "call", "_client", "initialize", "EVKPy", "985330YcbIQj", "resources/unsubscribe", "resources/read", "WjUev", "ogUTA", "listPrompts", "getPrompt", "subscribeResource", "notifications/initialized", "prompts/get", "xMSlt", "listResourceTemplates", "42105SSXPZa", "listTools", "_onnotification", "completion/complete", "resources/subscribe", "EFBli", "18192mJJKkV", "complete", "293268LWTUvT", "tools/list", "notification", "readResource", "send", "6rNzEHq"];
|
|
199
|
+
return g = function() {
|
|
200
|
+
return n;
|
|
201
|
+
}, g();
|
|
195
202
|
}
|
|
196
|
-
const
|
|
197
|
-
const x =
|
|
198
|
-
|
|
199
|
-
|
|
203
|
+
const j = async (n, t) => {
|
|
204
|
+
const x = u, e = { DXEjM: x(498), eqbmE: x(471), WjUev: x(478), tWlvR: x(486), ogUTA: x(461), svAat: x(503), qSFQi: x(492), EFBli: "2.0", EVKPy: function(i, f) {
|
|
205
|
+
return i !== f;
|
|
206
|
+
}, DhOkO: x(485) };
|
|
207
|
+
let s;
|
|
208
|
+
const { id: r, method: a, params: c } = t;
|
|
200
209
|
if (a) {
|
|
201
210
|
switch (a) {
|
|
202
|
-
case x(
|
|
203
|
-
|
|
211
|
+
case e[x(465)]:
|
|
212
|
+
s = await n[x(474)][x(490)](c);
|
|
204
213
|
break;
|
|
205
|
-
case
|
|
206
|
-
|
|
214
|
+
case x(472):
|
|
215
|
+
s = await n._client.callTool(c);
|
|
207
216
|
break;
|
|
208
|
-
case e.
|
|
209
|
-
|
|
217
|
+
case e.eqbmE:
|
|
218
|
+
s = await n[x(474)].listResources(c);
|
|
210
219
|
break;
|
|
211
|
-
case
|
|
212
|
-
|
|
220
|
+
case "resources/templates/list":
|
|
221
|
+
s = await n[x(474)][x(488)](c);
|
|
213
222
|
break;
|
|
214
|
-
case
|
|
215
|
-
|
|
223
|
+
case x(479):
|
|
224
|
+
s = await n._client[x(500)](c);
|
|
216
225
|
break;
|
|
217
|
-
case
|
|
218
|
-
|
|
226
|
+
case x(493):
|
|
227
|
+
s = await n._client[x(484)](c);
|
|
219
228
|
break;
|
|
220
|
-
case e[x(
|
|
221
|
-
|
|
229
|
+
case e[x(480)]:
|
|
230
|
+
s = await n[x(474)].unsubscribeResource(c);
|
|
222
231
|
break;
|
|
223
|
-
case e.
|
|
224
|
-
|
|
232
|
+
case e.tWlvR:
|
|
233
|
+
s = await n[x(474)][x(483)](c);
|
|
225
234
|
break;
|
|
226
|
-
case
|
|
227
|
-
|
|
235
|
+
case e[x(481)]:
|
|
236
|
+
s = await n[x(474)][x(482)](c);
|
|
228
237
|
break;
|
|
229
|
-
case e[x(
|
|
230
|
-
|
|
238
|
+
case e[x(467)]:
|
|
239
|
+
s = await n[x(474)][x(503)]();
|
|
231
240
|
break;
|
|
232
|
-
case x(
|
|
233
|
-
|
|
241
|
+
case e[x(469)]:
|
|
242
|
+
s = await n[x(474)][x(496)](c);
|
|
234
243
|
break;
|
|
235
|
-
case
|
|
236
|
-
|
|
244
|
+
case "logging/setLevel":
|
|
245
|
+
s = await n._client[x(468)](c);
|
|
237
246
|
break;
|
|
238
247
|
}
|
|
239
|
-
return
|
|
248
|
+
return s ? await n[x(501)]({ result: s, jsonrpc: e[x(494)], id: r }) : e[x(476)](a, x(475)) && a !== e.DhOkO && await n._client[x(499)]({ method: a, params: c }), s;
|
|
240
249
|
}
|
|
241
|
-
},
|
|
242
|
-
const t =
|
|
243
|
-
return r
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
+
}, q = (n) => {
|
|
251
|
+
const t = u, x = { DLYaY: function(s, r, a) {
|
|
252
|
+
return s(r, a);
|
|
253
|
+
}, nsiiu: function(s, r) {
|
|
254
|
+
return s === r;
|
|
255
|
+
} }, e = n[t(466)];
|
|
256
|
+
n[t(466)] = async (s) => {
|
|
257
|
+
const r = t;
|
|
258
|
+
if (n[r(474)]) {
|
|
259
|
+
let a;
|
|
260
|
+
try {
|
|
261
|
+
a = await x.DLYaY(j, n, s);
|
|
262
|
+
} catch {
|
|
263
|
+
}
|
|
264
|
+
if (x[r(504)](a, void 0) && e) try {
|
|
265
|
+
e[r(473)](n, s);
|
|
266
|
+
} catch {
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}, C = (n, t) => {
|
|
271
|
+
const x = u, e = { xMSlt: x(470) }, s = t[x(491)];
|
|
272
|
+
t[x(491)] = async (r) => {
|
|
273
|
+
const a = x, c = { ...r, jsonrpc: e[a(487)] };
|
|
274
|
+
try {
|
|
275
|
+
await n.send(c);
|
|
276
|
+
} catch {
|
|
250
277
|
}
|
|
278
|
+
s[a(473)](t, r);
|
|
251
279
|
};
|
|
252
280
|
};
|
|
253
|
-
|
|
254
|
-
function d(n, t) {
|
|
281
|
+
function p(n, t) {
|
|
255
282
|
var x = w();
|
|
256
|
-
return
|
|
257
|
-
e = e - (
|
|
258
|
-
var
|
|
259
|
-
return
|
|
260
|
-
},
|
|
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);
|
|
261
288
|
}
|
|
289
|
+
var h = p;
|
|
262
290
|
(function(n, t) {
|
|
263
|
-
for (var x =
|
|
291
|
+
for (var x = p, e = n(); ; )
|
|
264
292
|
try {
|
|
265
|
-
var
|
|
266
|
-
if (
|
|
293
|
+
var s = -parseInt(x(298)) / 1 + -parseInt(x(297)) / 2 + parseInt(x(293)) / 3 + parseInt(x(296)) / 4 + parseInt(x(295)) / 5 + -parseInt(x(294)) / 6 * (parseInt(x(288)) / 7) + parseInt(x(287)) / 8;
|
|
294
|
+
if (s === t) break;
|
|
267
295
|
e.push(e.shift());
|
|
268
296
|
} catch {
|
|
269
297
|
e.push(e.shift());
|
|
270
298
|
}
|
|
271
|
-
})(w,
|
|
299
|
+
})(w, -925946 + -106138 * 7 + 2280962);
|
|
272
300
|
function w() {
|
|
273
|
-
var n = ["
|
|
301
|
+
var n = ["850387Rhywws", "get", "1628240UyXpxS", "269570WdksxS", "_endpoint", "_client", "_startOrAuth", "sessionId", "2335485hFzAJa", "120vOAXdE", "6068850rUIBYq", "4750592nyiacy", "2301612pIeSBp"];
|
|
274
302
|
return w = function() {
|
|
275
303
|
return n;
|
|
276
304
|
}, w();
|
|
277
305
|
}
|
|
278
|
-
class
|
|
306
|
+
class A extends K {
|
|
279
307
|
constructor(t, x, e) {
|
|
280
|
-
var r =
|
|
281
|
-
|
|
308
|
+
var s = p, r = { xAREL: function(a, c, i) {
|
|
309
|
+
return a(c, i);
|
|
310
|
+
} };
|
|
311
|
+
super(t, x), this[s(290)] = e, r.xAREL(C, this, e);
|
|
282
312
|
}
|
|
283
|
-
[
|
|
284
|
-
var t =
|
|
285
|
-
return e(
|
|
313
|
+
[h(291)]() {
|
|
314
|
+
var t = h, x = { UgZXy: function(e, s) {
|
|
315
|
+
return e(s);
|
|
286
316
|
} };
|
|
287
|
-
return x
|
|
317
|
+
return x.UgZXy(q, this), super[t(291)]();
|
|
288
318
|
}
|
|
289
|
-
get
|
|
290
|
-
var t =
|
|
291
|
-
return this
|
|
319
|
+
get [h(292)]() {
|
|
320
|
+
var t = h;
|
|
321
|
+
return this[t(289)].searchParams[t(286)](t(292));
|
|
292
322
|
}
|
|
293
323
|
}
|
|
324
|
+
var B = b;
|
|
294
325
|
(function(n, t) {
|
|
295
|
-
for (var x =
|
|
326
|
+
for (var x = b, e = n(); ; )
|
|
296
327
|
try {
|
|
297
|
-
var
|
|
298
|
-
if (
|
|
328
|
+
var s = -parseInt(x(339)) / 1 + parseInt(x(348)) / 2 + parseInt(x(338)) / 3 * (parseInt(x(342)) / 4) + parseInt(x(343)) / 5 + -parseInt(x(340)) / 6 + parseInt(x(344)) / 7 + -parseInt(x(341)) / 8 * (-parseInt(x(347)) / 9);
|
|
329
|
+
if (s === t) break;
|
|
299
330
|
e.push(e.shift());
|
|
300
331
|
} catch {
|
|
301
332
|
e.push(e.shift());
|
|
302
333
|
}
|
|
303
|
-
})(
|
|
304
|
-
function
|
|
305
|
-
var
|
|
306
|
-
return
|
|
307
|
-
|
|
308
|
-
|
|
334
|
+
})(y, 221853 * 3 + -611616 + 89 * 4942);
|
|
335
|
+
function b(n, t) {
|
|
336
|
+
var x = y();
|
|
337
|
+
return b = function(e, s) {
|
|
338
|
+
e = e - (2093 + -13 * 135);
|
|
339
|
+
var r = x[e];
|
|
340
|
+
return r;
|
|
341
|
+
}, b(n, t);
|
|
309
342
|
}
|
|
310
|
-
function
|
|
311
|
-
var
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
return s;
|
|
316
|
-
}, m(n, t);
|
|
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();
|
|
317
348
|
}
|
|
318
|
-
class
|
|
349
|
+
class H extends N {
|
|
319
350
|
constructor(t, x, e) {
|
|
320
|
-
|
|
351
|
+
var s = b;
|
|
352
|
+
super(t, x), this[s(346)] = e, C(this, e);
|
|
321
353
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
return s(a);
|
|
325
|
-
} };
|
|
326
|
-
r.njiQB(J, this), super[e(214)](t, x);
|
|
354
|
+
[B(345)](t, x) {
|
|
355
|
+
q(this), super._handleSseStream(t, x);
|
|
327
356
|
}
|
|
328
357
|
}
|
|
329
|
-
function
|
|
330
|
-
const
|
|
331
|
-
return
|
|
332
|
-
return e = e - 168, x[e];
|
|
333
|
-
}, y(n, t);
|
|
334
|
-
}
|
|
335
|
-
function M() {
|
|
336
|
-
const n = ["768464GKECXk", "Bearer ", "27kqscCe", "15ZXNsAZ", "headers", "553900ANYVLj", "686728ZxjJHf", "3135648SVjOOD", "1196anMHWH", "6222293HgvQUc", "osFqL", "MgDAb", "5757bwhOTY", "2211402UjYIjQ"];
|
|
337
|
-
return M = function() {
|
|
358
|
+
function m() {
|
|
359
|
+
const n = ["2380215jFPhrm", "set", "Bearer ", "364TmWLVJ", "authorization", "480HfdPQN", "1303976lnZSBa", "204178SOQZTy", "639sCOWOz", "79330rorkkD", "NXzVD", "626yiaLRK", "21304HEXfjD", "9ALFadX", "56862cgWKDg", "253Qcspct", "261fxukey"];
|
|
360
|
+
return m = function() {
|
|
338
361
|
return n;
|
|
339
|
-
},
|
|
362
|
+
}, m();
|
|
340
363
|
}
|
|
341
364
|
(function(n, t) {
|
|
342
|
-
const x =
|
|
365
|
+
const x = k, e = n();
|
|
343
366
|
for (; ; )
|
|
344
367
|
try {
|
|
345
|
-
if (-parseInt(x(
|
|
368
|
+
if (-parseInt(x(212)) / 1 * (parseInt(x(207)) / 2) + parseInt(x(204)) / 3 * (parseInt(x(208)) / 4) + -parseInt(x(213)) / 5 + parseInt(x(210)) / 6 * (-parseInt(x(216)) / 7) + parseInt(x(202)) / 8 * (parseInt(x(209)) / 9) + parseInt(x(205)) / 10 * (-parseInt(x(211)) / 11) + parseInt(x(201)) / 12 * (parseInt(x(203)) / 13) === t) break;
|
|
346
369
|
e.push(e.shift());
|
|
347
370
|
} catch {
|
|
348
371
|
e.push(e.shift());
|
|
349
372
|
}
|
|
350
|
-
})(
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
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);
|
|
373
|
+
})(m, -43709 + 55 * -15509 + -20 * -79469);
|
|
374
|
+
function k(n, t) {
|
|
375
|
+
const x = m();
|
|
376
|
+
return k = function(e, s) {
|
|
377
|
+
return e = e - (5 * 1751 + -73 * -75 + -14029), x[e];
|
|
378
|
+
}, k(n, t);
|
|
362
379
|
}
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
return
|
|
380
|
+
const L = (n) => ({ requestInit: { headers: { Authorization: "Bearer " + n } }, eventSourceInit: { async fetch(t, x) {
|
|
381
|
+
const e = k, s = { NXzVD: e(217) }, r = new Headers((x == null ? void 0 : x.headers) || {});
|
|
382
|
+
return r[e(214)](s[e(206)], e(215) + n), fetch(t, { ...x, headers: r });
|
|
383
|
+
} } });
|
|
384
|
+
function v() {
|
|
385
|
+
const n = ["590wBCCAR", "22818bmfQdr", "28UrqpgS", "471931qBIhMO", "26qqSiOO", "11352EyhlhH", "123219dADItm", "679gqPsaK", "113531xHHwPd", "1666296OFAqwr", "60QTzTzj", "2GUnKTv", "1757295TVipTe"];
|
|
386
|
+
return v = function() {
|
|
366
387
|
return n;
|
|
367
|
-
},
|
|
388
|
+
}, v();
|
|
368
389
|
}
|
|
369
390
|
(function(n, t) {
|
|
370
|
-
const x =
|
|
391
|
+
const x = E, e = n();
|
|
371
392
|
for (; ; )
|
|
372
393
|
try {
|
|
373
|
-
if (parseInt(x(
|
|
394
|
+
if (-parseInt(x(150)) / 1 * (-parseInt(x(145)) / 2) + parseInt(x(153)) / 3 * (parseInt(x(149)) / 4) + parseInt(x(147)) / 5 * (-parseInt(x(148)) / 6) + parseInt(x(154)) / 7 * (parseInt(x(152)) / 8) + parseInt(x(146)) / 9 + -parseInt(x(144)) / 10 * (parseInt(x(155)) / 11) + -parseInt(x(143)) / 12 * (parseInt(x(151)) / 13) === t) break;
|
|
374
395
|
e.push(e.shift());
|
|
375
396
|
} catch {
|
|
376
397
|
e.push(e.shift());
|
|
377
398
|
}
|
|
378
|
-
})(
|
|
379
|
-
|
|
399
|
+
})(v, 11135 * -38 + 259275 + 24621 * 19);
|
|
400
|
+
function E(n, t) {
|
|
401
|
+
const x = v();
|
|
402
|
+
return E = function(e, s) {
|
|
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 } } });
|
|
380
407
|
(function(n, t) {
|
|
381
|
-
const x =
|
|
408
|
+
const x = _, e = n();
|
|
382
409
|
for (; ; )
|
|
383
410
|
try {
|
|
384
|
-
if (-parseInt(x(
|
|
411
|
+
if (-parseInt(x(168)) / 1 * (parseInt(x(175)) / 2) + -parseInt(x(171)) / 3 * (-parseInt(x(166)) / 4) + -parseInt(x(181)) / 5 + -parseInt(x(170)) / 6 * (parseInt(x(169)) / 7) + -parseInt(x(184)) / 8 + -parseInt(x(178)) / 9 * (parseInt(x(180)) / 10) + parseInt(x(172)) / 11 === t) break;
|
|
385
412
|
e.push(e.shift());
|
|
386
413
|
} catch {
|
|
387
414
|
e.push(e.shift());
|
|
388
415
|
}
|
|
389
|
-
})(
|
|
390
|
-
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
};
|
|
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);
|
|
416
|
+
})(S, 895005 + -291 * 6067 + 1795327);
|
|
417
|
+
function S() {
|
|
418
|
+
const n = ["49NYGXIr", "563478eKKhIa", "225099tMZgSO", "31384925cxHLvB", "RHeMk", "connect", "100148XEqitO", "randomUUID", "sessionId", "108396sgBXkl", "UCRxp", "280tqUeeb", "2391355uBOoXu", "1.0.0", "mcp-proxy-client", "3843240IuGxTj", "4xNUNiS", "XWhrN", "1VAkkeC"];
|
|
419
|
+
return S = function() {
|
|
420
|
+
return n;
|
|
421
|
+
}, S();
|
|
401
422
|
}
|
|
402
|
-
|
|
403
|
-
const
|
|
404
|
-
return
|
|
423
|
+
function _(n, t) {
|
|
424
|
+
const x = S();
|
|
425
|
+
return _ = function(e, s) {
|
|
426
|
+
return e = e - 166, x[e];
|
|
427
|
+
}, _(n, t);
|
|
428
|
+
}
|
|
429
|
+
const J = async (n) => {
|
|
430
|
+
const t = _, x = { XWhrN: function(f, T) {
|
|
431
|
+
return f(T);
|
|
432
|
+
}, UCRxp: t(183) }, { client: e, url: s, token: r } = n, a = new A(new URL(s), x[t(167)](L, r), e), c = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
433
|
+
return await new P({ name: x[t(179)], version: t(182) }, { capabilities: c }).connect(a), { transport: a, sessionId: a[t(177)] };
|
|
434
|
+
}, $ = async (n) => {
|
|
435
|
+
const t = _, x = { VGreD: t(183), RHeMk: t(182) }, { client: e, url: s, token: r } = n, a = crypto[t(176)](), c = new H(new URL(s), z(r, a), e), i = { prompts: {}, resources: {}, tools: {}, logging: {} };
|
|
436
|
+
return await new P({ name: x.VGreD, version: x[t(173)] }, { capabilities: i })[t(174)](c), { transport: c, sessionId: a };
|
|
405
437
|
};
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
return
|
|
409
|
-
|
|
410
|
-
|
|
438
|
+
function O(n, t) {
|
|
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);
|
|
411
445
|
}
|
|
412
446
|
(function(n, t) {
|
|
413
|
-
for (var x =
|
|
447
|
+
for (var x = O, e = n(); ; )
|
|
414
448
|
try {
|
|
415
|
-
var
|
|
416
|
-
if (
|
|
449
|
+
var s = -parseInt(x(224)) / 1 * (-parseInt(x(222)) / 2) + parseInt(x(220)) / 3 + -parseInt(x(219)) / 4 * (parseInt(x(223)) / 5) + parseInt(x(226)) / 6 + -parseInt(x(218)) / 7 + -parseInt(x(225)) / 8 + parseInt(x(221)) / 9;
|
|
450
|
+
if (s === t) break;
|
|
417
451
|
e.push(e.shift());
|
|
418
452
|
} catch {
|
|
419
453
|
e.push(e.shift());
|
|
420
454
|
}
|
|
421
|
-
})(
|
|
422
|
-
function
|
|
423
|
-
var n = ["
|
|
424
|
-
return
|
|
455
|
+
})(U, 676127);
|
|
456
|
+
function U() {
|
|
457
|
+
var n = ["402635EConrE", "3ntFyQQ", "2233520ZDPvuL", "3731628qYiSuk", "6614132YEkOIw", "4YARGAX", "2154165VKZojH", "1368783xJxSew", "325760kKEhMk"];
|
|
458
|
+
return U = function() {
|
|
425
459
|
return n;
|
|
426
|
-
},
|
|
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);
|
|
460
|
+
}, U();
|
|
435
461
|
}
|
|
436
462
|
export {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
463
|
+
V as MessageChannelClientTransport,
|
|
464
|
+
Y as MessageChannelServerTransport,
|
|
465
|
+
l as MessageChannelTransport,
|
|
466
|
+
A as ProxySSEClientTransport,
|
|
467
|
+
H as ProxyStreamClientTransport,
|
|
468
|
+
J as createSseProxy,
|
|
469
|
+
$ as createStreamProxy,
|
|
470
|
+
G as createTransportPair,
|
|
471
|
+
L as sseOptions,
|
|
472
|
+
z as streamOptions
|
|
447
473
|
};
|