@opentiny/next 0.1.1 → 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/client.js +293 -269
- package/package.json +4 -3
- package/server.js +213 -196
package/client.js
CHANGED
|
@@ -1,449 +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 (
|
|
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
|
-
})(I, -
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
},
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
+
}
|
|
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) {
|
|
31
50
|
return r !== a;
|
|
32
|
-
},
|
|
51
|
+
}, ziOks: e(271), DtIXM: function(r, a) {
|
|
33
52
|
return r in a;
|
|
34
|
-
},
|
|
53
|
+
}, UPfhE: e(247), IvNEu: function(r, a) {
|
|
35
54
|
return r === a;
|
|
36
|
-
},
|
|
37
|
-
s[e(
|
|
38
|
-
},
|
|
39
|
-
const x =
|
|
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) {
|
|
40
59
|
return s in r;
|
|
41
|
-
},
|
|
60
|
+
}, nFwNi: x(249), TCbiB: function(s, r) {
|
|
42
61
|
return s === r;
|
|
43
|
-
},
|
|
62
|
+
}, GZUjd: x(239), NxTNs: function(s, r) {
|
|
63
|
+
return s in r;
|
|
64
|
+
}, QPOqH: x(222), nkSuS: function(s, r) {
|
|
44
65
|
return s !== r;
|
|
45
|
-
},
|
|
46
|
-
e[x(
|
|
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);
|
|
47
68
|
};
|
|
48
69
|
class l {
|
|
49
70
|
constructor(t, x) {
|
|
50
|
-
const e =
|
|
51
|
-
let a =
|
|
71
|
+
const e = d, s = { IvPSV: e(279) }, r = s[e(238)][e(246)]("|");
|
|
72
|
+
let a = 3473 + 218 * 8 + -5217;
|
|
52
73
|
for (; ; ) {
|
|
53
74
|
switch (r[a++]) {
|
|
54
75
|
case "0":
|
|
55
|
-
this[e(
|
|
76
|
+
this[e(229)] = t;
|
|
56
77
|
continue;
|
|
57
78
|
case "1":
|
|
58
|
-
this
|
|
79
|
+
this._closed = !1;
|
|
59
80
|
continue;
|
|
60
81
|
case "2":
|
|
61
|
-
this[e(
|
|
82
|
+
this[e(258)] = !1;
|
|
62
83
|
continue;
|
|
63
84
|
case "3":
|
|
64
|
-
this[e(
|
|
85
|
+
this[e(272)] = !1;
|
|
65
86
|
continue;
|
|
66
87
|
case "4":
|
|
67
|
-
this
|
|
88
|
+
this._started = !1;
|
|
68
89
|
continue;
|
|
69
90
|
case "5":
|
|
70
|
-
this
|
|
91
|
+
this[e(224)] = x;
|
|
71
92
|
continue;
|
|
72
93
|
}
|
|
73
94
|
break;
|
|
74
95
|
}
|
|
75
96
|
}
|
|
76
|
-
async
|
|
77
|
-
const t =
|
|
78
|
-
this[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) => {
|
|
79
100
|
var s, r;
|
|
80
101
|
const e = t;
|
|
81
102
|
try {
|
|
82
|
-
const a =
|
|
83
|
-
(s = this
|
|
103
|
+
const a = R[e(267)](x[e(283)]);
|
|
104
|
+
(s = this[e(222)]) == null || s.call(this, a);
|
|
84
105
|
} catch (a) {
|
|
85
|
-
const c = new Error(e(
|
|
86
|
-
(r = this
|
|
106
|
+
const c = new Error(e(260) + a);
|
|
107
|
+
(r = this[e(266)]) == null || r.call(this, c);
|
|
87
108
|
}
|
|
88
|
-
}, this
|
|
109
|
+
}, this[t(229)][t(261)] = (x) => {
|
|
89
110
|
var r;
|
|
90
|
-
const e = t, s = new Error(e(
|
|
91
|
-
(r = this[e(
|
|
92
|
-
}, this[t(
|
|
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)]());
|
|
93
114
|
}
|
|
94
|
-
async [
|
|
95
|
-
const x =
|
|
96
|
-
return s();
|
|
97
|
-
}, YUWFy: function(s, r) {
|
|
98
|
-
return s instanceof r;
|
|
99
|
-
}, YiYoE: function(s, r) {
|
|
115
|
+
async [o(251)](t) {
|
|
116
|
+
const x = o, e = { HUpeu: function(s, r) {
|
|
100
117
|
return s(r);
|
|
101
118
|
} };
|
|
102
|
-
if (!(this[x(
|
|
119
|
+
if (!(this[x(258)] || !this[x(229)]))
|
|
103
120
|
return new Promise((s, r) => {
|
|
104
121
|
var c;
|
|
105
122
|
const a = x;
|
|
106
123
|
try {
|
|
107
|
-
this
|
|
124
|
+
this[a(229)] && this[a(229)][a(247)](t), s();
|
|
108
125
|
} catch (i) {
|
|
109
|
-
const
|
|
110
|
-
(c = this[a(
|
|
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);
|
|
111
128
|
}
|
|
112
129
|
});
|
|
113
130
|
}
|
|
114
|
-
async [
|
|
131
|
+
async [o(232)]() {
|
|
115
132
|
var x;
|
|
116
|
-
const t =
|
|
117
|
-
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));
|
|
118
135
|
}
|
|
119
|
-
get [
|
|
120
|
-
return this
|
|
136
|
+
get [o(269)]() {
|
|
137
|
+
return this[o(224)];
|
|
121
138
|
}
|
|
122
139
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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, _);
|
|
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[e(
|
|
141
|
-
const r = new MessageChannel(), a = crypto
|
|
142
|
-
this
|
|
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
150
|
class Y extends l {
|
|
146
|
-
constructor(t, x =
|
|
147
|
-
const e =
|
|
151
|
+
constructor(t, x = M()) {
|
|
152
|
+
const e = o, s = { doghv: function(r, a) {
|
|
148
153
|
return r === a;
|
|
149
|
-
},
|
|
154
|
+
}, yKqkU: function(r) {
|
|
155
|
+
return r();
|
|
156
|
+
}, oTomg: function(r, a, c) {
|
|
150
157
|
return r(a, c);
|
|
151
158
|
} };
|
|
152
|
-
super(), this
|
|
153
|
-
const a = e
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
+
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) => {
|
|
162
|
+
const i = a;
|
|
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));
|
|
159
164
|
});
|
|
160
165
|
});
|
|
161
166
|
}
|
|
162
|
-
async [
|
|
163
|
-
return this
|
|
167
|
+
async [o(252)]() {
|
|
168
|
+
return this[o(226)];
|
|
164
169
|
}
|
|
165
170
|
}
|
|
166
|
-
const
|
|
167
|
-
const n =
|
|
168
|
-
return [new l(t
|
|
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)];
|
|
169
174
|
};
|
|
170
|
-
function
|
|
171
|
-
const n = ["
|
|
172
|
-
return
|
|
175
|
+
function I() {
|
|
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"];
|
|
177
|
+
return I = function() {
|
|
173
178
|
return n;
|
|
174
|
-
},
|
|
179
|
+
}, I();
|
|
175
180
|
}
|
|
176
181
|
(function(n, t) {
|
|
177
|
-
const x =
|
|
182
|
+
const x = u, e = n();
|
|
178
183
|
for (; ; )
|
|
179
184
|
try {
|
|
180
|
-
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;
|
|
181
186
|
e.push(e.shift());
|
|
182
187
|
} catch {
|
|
183
188
|
e.push(e.shift());
|
|
184
189
|
}
|
|
185
|
-
})(
|
|
186
|
-
function
|
|
187
|
-
const x =
|
|
188
|
-
return
|
|
189
|
-
return e = e - (
|
|
190
|
-
},
|
|
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);
|
|
191
196
|
}
|
|
192
|
-
|
|
193
|
-
const
|
|
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();
|
|
202
|
+
}
|
|
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) };
|
|
194
207
|
let s;
|
|
195
208
|
const { id: r, method: a, params: c } = t;
|
|
196
209
|
if (a) {
|
|
197
210
|
switch (a) {
|
|
198
|
-
case x(
|
|
199
|
-
s = await n[x(
|
|
211
|
+
case e[x(465)]:
|
|
212
|
+
s = await n[x(474)][x(490)](c);
|
|
200
213
|
break;
|
|
201
|
-
case
|
|
202
|
-
s = await n
|
|
214
|
+
case x(472):
|
|
215
|
+
s = await n._client.callTool(c);
|
|
203
216
|
break;
|
|
204
|
-
case e.
|
|
205
|
-
s = await n
|
|
217
|
+
case e.eqbmE:
|
|
218
|
+
s = await n[x(474)].listResources(c);
|
|
206
219
|
break;
|
|
207
|
-
case
|
|
208
|
-
s = await n[x(
|
|
220
|
+
case "resources/templates/list":
|
|
221
|
+
s = await n[x(474)][x(488)](c);
|
|
209
222
|
break;
|
|
210
|
-
case
|
|
211
|
-
s = await n._client[x(
|
|
223
|
+
case x(479):
|
|
224
|
+
s = await n._client[x(500)](c);
|
|
212
225
|
break;
|
|
213
|
-
case
|
|
214
|
-
s = await n[x(
|
|
226
|
+
case x(493):
|
|
227
|
+
s = await n._client[x(484)](c);
|
|
215
228
|
break;
|
|
216
|
-
case e[x(
|
|
217
|
-
s = await n
|
|
229
|
+
case e[x(480)]:
|
|
230
|
+
s = await n[x(474)].unsubscribeResource(c);
|
|
218
231
|
break;
|
|
219
|
-
case
|
|
220
|
-
s = await n
|
|
232
|
+
case e.tWlvR:
|
|
233
|
+
s = await n[x(474)][x(483)](c);
|
|
221
234
|
break;
|
|
222
|
-
case e[x(
|
|
223
|
-
s = await n[x(
|
|
235
|
+
case e[x(481)]:
|
|
236
|
+
s = await n[x(474)][x(482)](c);
|
|
224
237
|
break;
|
|
225
|
-
case e[x(
|
|
226
|
-
s = await n
|
|
238
|
+
case e[x(467)]:
|
|
239
|
+
s = await n[x(474)][x(503)]();
|
|
227
240
|
break;
|
|
228
|
-
case e[x(
|
|
229
|
-
s = await n[x(
|
|
241
|
+
case e[x(469)]:
|
|
242
|
+
s = await n[x(474)][x(496)](c);
|
|
230
243
|
break;
|
|
231
|
-
case
|
|
232
|
-
s = await n._client[x(
|
|
244
|
+
case "logging/setLevel":
|
|
245
|
+
s = await n._client[x(468)](c);
|
|
233
246
|
break;
|
|
234
247
|
}
|
|
235
|
-
return s
|
|
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;
|
|
236
249
|
}
|
|
237
|
-
},
|
|
238
|
-
const t =
|
|
250
|
+
}, q = (n) => {
|
|
251
|
+
const t = u, x = { DLYaY: function(s, r, a) {
|
|
239
252
|
return s(r, a);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
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)]) {
|
|
243
259
|
let a;
|
|
244
260
|
try {
|
|
245
|
-
a = await x.
|
|
261
|
+
a = await x.DLYaY(j, n, s);
|
|
246
262
|
} catch {
|
|
247
263
|
}
|
|
248
|
-
if (a
|
|
249
|
-
e
|
|
264
|
+
if (x[r(504)](a, void 0) && e) try {
|
|
265
|
+
e[r(473)](n, s);
|
|
250
266
|
} catch {
|
|
251
267
|
}
|
|
252
268
|
}
|
|
253
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 {
|
|
277
|
+
}
|
|
278
|
+
s[a(473)](t, r);
|
|
279
|
+
};
|
|
254
280
|
};
|
|
255
|
-
|
|
281
|
+
function p(n, t) {
|
|
282
|
+
var x = w();
|
|
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;
|
|
256
290
|
(function(n, t) {
|
|
257
|
-
for (var x =
|
|
291
|
+
for (var x = p, e = n(); ; )
|
|
258
292
|
try {
|
|
259
|
-
var s = -parseInt(x(
|
|
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;
|
|
260
294
|
if (s === t) break;
|
|
261
295
|
e.push(e.shift());
|
|
262
296
|
} catch {
|
|
263
297
|
e.push(e.shift());
|
|
264
298
|
}
|
|
265
|
-
})(
|
|
266
|
-
function
|
|
267
|
-
var n = ["
|
|
268
|
-
return
|
|
299
|
+
})(w, -925946 + -106138 * 7 + 2280962);
|
|
300
|
+
function w() {
|
|
301
|
+
var n = ["850387Rhywws", "get", "1628240UyXpxS", "269570WdksxS", "_endpoint", "_client", "_startOrAuth", "sessionId", "2335485hFzAJa", "120vOAXdE", "6068850rUIBYq", "4750592nyiacy", "2301612pIeSBp"];
|
|
302
|
+
return w = function() {
|
|
269
303
|
return n;
|
|
270
|
-
},
|
|
271
|
-
}
|
|
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);
|
|
304
|
+
}, w();
|
|
279
305
|
}
|
|
280
|
-
class
|
|
306
|
+
class A extends K {
|
|
281
307
|
constructor(t, x, e) {
|
|
282
|
-
var s =
|
|
283
|
-
|
|
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);
|
|
284
312
|
}
|
|
285
|
-
[h(
|
|
286
|
-
var t = h, x = {
|
|
313
|
+
[h(291)]() {
|
|
314
|
+
var t = h, x = { UgZXy: function(e, s) {
|
|
287
315
|
return e(s);
|
|
288
316
|
} };
|
|
289
|
-
return x
|
|
317
|
+
return x.UgZXy(q, this), super[t(291)]();
|
|
290
318
|
}
|
|
291
|
-
get [h(
|
|
292
|
-
var t = h
|
|
293
|
-
return this[t(
|
|
319
|
+
get [h(292)]() {
|
|
320
|
+
var t = h;
|
|
321
|
+
return this[t(289)].searchParams[t(286)](t(292));
|
|
294
322
|
}
|
|
295
323
|
}
|
|
296
|
-
var
|
|
324
|
+
var B = b;
|
|
297
325
|
(function(n, t) {
|
|
298
|
-
for (var x =
|
|
326
|
+
for (var x = b, e = n(); ; )
|
|
299
327
|
try {
|
|
300
|
-
var s = -parseInt(x(
|
|
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);
|
|
301
329
|
if (s === t) break;
|
|
302
330
|
e.push(e.shift());
|
|
303
331
|
} catch {
|
|
304
332
|
e.push(e.shift());
|
|
305
333
|
}
|
|
306
|
-
})(
|
|
307
|
-
function
|
|
308
|
-
var x =
|
|
309
|
-
return
|
|
310
|
-
e = e - (
|
|
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);
|
|
311
339
|
var r = x[e];
|
|
312
340
|
return r;
|
|
313
|
-
},
|
|
341
|
+
}, b(n, t);
|
|
314
342
|
}
|
|
315
|
-
function
|
|
316
|
-
var n = ["
|
|
317
|
-
return
|
|
343
|
+
function y() {
|
|
344
|
+
var n = ["42570AtnolJ", "4912649diEKKf", "_handleSseStream", "_client", "198fESTMB", "1537282OIloLe", "3WqFJPv", "696177OUssRv", "3769434fxRMKR", "75592RCiIbK", "525428zfwUdm"];
|
|
345
|
+
return y = function() {
|
|
318
346
|
return n;
|
|
319
|
-
},
|
|
347
|
+
}, y();
|
|
320
348
|
}
|
|
321
|
-
class H extends
|
|
349
|
+
class H extends N {
|
|
322
350
|
constructor(t, x, e) {
|
|
323
|
-
|
|
351
|
+
var s = b;
|
|
352
|
+
super(t, x), this[s(346)] = e, C(this, e);
|
|
324
353
|
}
|
|
325
|
-
[
|
|
326
|
-
|
|
327
|
-
return r(a);
|
|
328
|
-
} };
|
|
329
|
-
s[e(130)](U, this), super[e(131)](t, x);
|
|
354
|
+
[B(345)](t, x) {
|
|
355
|
+
q(this), super._handleSseStream(t, x);
|
|
330
356
|
}
|
|
331
357
|
}
|
|
332
|
-
|
|
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() {
|
|
361
|
+
return n;
|
|
362
|
+
}, m();
|
|
363
|
+
}
|
|
333
364
|
(function(n, t) {
|
|
334
|
-
const x =
|
|
365
|
+
const x = k, e = n();
|
|
335
366
|
for (; ; )
|
|
336
367
|
try {
|
|
337
|
-
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;
|
|
338
369
|
e.push(e.shift());
|
|
339
370
|
} catch {
|
|
340
371
|
e.push(e.shift());
|
|
341
372
|
}
|
|
342
|
-
})(
|
|
343
|
-
function
|
|
344
|
-
const x =
|
|
345
|
-
return
|
|
346
|
-
return e = e - (
|
|
347
|
-
},
|
|
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);
|
|
348
379
|
}
|
|
349
|
-
const
|
|
350
|
-
const e =
|
|
351
|
-
return r[e(
|
|
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 });
|
|
352
383
|
} } });
|
|
353
|
-
function
|
|
354
|
-
const n = ["
|
|
355
|
-
return
|
|
384
|
+
function v() {
|
|
385
|
+
const n = ["590wBCCAR", "22818bmfQdr", "28UrqpgS", "471931qBIhMO", "26qqSiOO", "11352EyhlhH", "123219dADItm", "679gqPsaK", "113531xHHwPd", "1666296OFAqwr", "60QTzTzj", "2GUnKTv", "1757295TVipTe"];
|
|
386
|
+
return v = function() {
|
|
356
387
|
return n;
|
|
357
|
-
},
|
|
388
|
+
}, v();
|
|
358
389
|
}
|
|
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();
|
|
370
|
-
}
|
|
371
|
-
const M = S;
|
|
372
390
|
(function(n, t) {
|
|
373
|
-
const x =
|
|
391
|
+
const x = E, e = n();
|
|
374
392
|
for (; ; )
|
|
375
393
|
try {
|
|
376
|
-
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;
|
|
377
395
|
e.push(e.shift());
|
|
378
396
|
} catch {
|
|
379
397
|
e.push(e.shift());
|
|
380
398
|
}
|
|
381
|
-
})(
|
|
382
|
-
|
|
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 } } });
|
|
383
407
|
(function(n, t) {
|
|
384
|
-
const x =
|
|
408
|
+
const x = _, e = n();
|
|
385
409
|
for (; ; )
|
|
386
410
|
try {
|
|
387
|
-
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;
|
|
388
412
|
e.push(e.shift());
|
|
389
413
|
} catch {
|
|
390
414
|
e.push(e.shift());
|
|
391
415
|
}
|
|
392
|
-
})(
|
|
393
|
-
function
|
|
394
|
-
const
|
|
395
|
-
return
|
|
396
|
-
return e = e - 494, x[e];
|
|
397
|
-
}, b(n, t);
|
|
398
|
-
}
|
|
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() {
|
|
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() {
|
|
402
420
|
return n;
|
|
403
|
-
},
|
|
421
|
+
}, S();
|
|
404
422
|
}
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
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 };
|
|
413
437
|
};
|
|
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);
|
|
445
|
+
}
|
|
414
446
|
(function(n, t) {
|
|
415
|
-
for (var x =
|
|
447
|
+
for (var x = O, e = n(); ; )
|
|
416
448
|
try {
|
|
417
|
-
var s = -parseInt(x(
|
|
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;
|
|
418
450
|
if (s === t) break;
|
|
419
451
|
e.push(e.shift());
|
|
420
452
|
} catch {
|
|
421
453
|
e.push(e.shift());
|
|
422
454
|
}
|
|
423
|
-
})(
|
|
424
|
-
function
|
|
425
|
-
var n = ["
|
|
426
|
-
return
|
|
455
|
+
})(U, 676127);
|
|
456
|
+
function U() {
|
|
457
|
+
var n = ["402635EConrE", "3ntFyQQ", "2233520ZDPvuL", "3731628qYiSuk", "6614132YEkOIw", "4YARGAX", "2154165VKZojH", "1368783xJxSew", "325760kKEhMk"];
|
|
458
|
+
return U = function() {
|
|
427
459
|
return n;
|
|
428
|
-
},
|
|
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];
|
|
435
|
-
return r;
|
|
436
|
-
}, B(n, t);
|
|
460
|
+
}, U();
|
|
437
461
|
}
|
|
438
462
|
export {
|
|
439
|
-
|
|
463
|
+
V as MessageChannelClientTransport,
|
|
440
464
|
Y as MessageChannelServerTransport,
|
|
441
465
|
l as MessageChannelTransport,
|
|
442
|
-
|
|
466
|
+
A as ProxySSEClientTransport,
|
|
443
467
|
H as ProxyStreamClientTransport,
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
468
|
+
J as createSseProxy,
|
|
469
|
+
$ as createStreamProxy,
|
|
470
|
+
G as createTransportPair,
|
|
471
|
+
L as sseOptions,
|
|
472
|
+
z as streamOptions
|
|
449
473
|
};
|