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