@opentiny/next 0.1.2 → 0.1.3
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 +279 -270
- package/package.json +2 -2
- package/server.js +219 -213
package/client.js
CHANGED
|
@@ -1,421 +1,430 @@
|
|
|
1
|
-
import { JSONRPCMessageSchema as
|
|
2
|
-
import { Client as
|
|
3
|
-
import { SSEClientTransport as
|
|
1
|
+
import { JSONRPCMessageSchema as O } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { Client as j } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
|
+
import { SSEClientTransport as U } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
4
|
import { StreamableHTTPClientTransport as N } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
-
const
|
|
5
|
+
const f = u;
|
|
6
6
|
(function(n, t) {
|
|
7
|
-
const x =
|
|
7
|
+
const x = u, e = n();
|
|
8
8
|
for (; ; )
|
|
9
9
|
try {
|
|
10
|
-
if (parseInt(x(
|
|
10
|
+
if (parseInt(x(381)) / 1 * (-parseInt(x(367)) / 2) + -parseInt(x(400)) / 3 * (parseInt(x(393)) / 4) + parseInt(x(376)) / 5 + -parseInt(x(377)) / 6 + parseInt(x(387)) / 7 * (parseInt(x(389)) / 8) + parseInt(x(380)) / 9 * (-parseInt(x(396)) / 10) + parseInt(x(372)) / 11 === 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
|
+
})(h, -5 * 243483 + 1280137 + 811227);
|
|
16
|
+
function u(n, t) {
|
|
17
|
+
const x = h();
|
|
18
|
+
return u = function(e, s) {
|
|
19
|
+
return e = e - (8905 + -1613 * 5 + -480 * 1), x[e];
|
|
20
|
+
}, u(n, t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const n =
|
|
22
|
+
const z = () => {
|
|
23
|
+
const n = u, t = { KOkQn: n(402), DXJIO: function(s, r) {
|
|
24
|
+
return s !== r;
|
|
25
|
+
}, swzGV: n(413), FMQlm: function(s, r) {
|
|
24
26
|
return s !== r;
|
|
25
|
-
},
|
|
27
|
+
}, XTSBQ: function(s, r) {
|
|
26
28
|
return s !== r;
|
|
27
|
-
} }, x = t[n(
|
|
28
|
-
let e =
|
|
29
|
+
} }, x = t[n(414)][n(379)]("|");
|
|
30
|
+
let e = 0;
|
|
29
31
|
for (; ; ) {
|
|
30
32
|
switch (x[e++]) {
|
|
31
33
|
case "0":
|
|
32
|
-
|
|
33
|
-
continue;
|
|
34
|
+
return Function(n(394))();
|
|
34
35
|
case "1":
|
|
35
|
-
if (t[n(
|
|
36
|
+
if (t[n(373)](typeof self, t[n(383)])) return self;
|
|
36
37
|
continue;
|
|
37
38
|
case "2":
|
|
38
|
-
if (typeof
|
|
39
|
+
if (t[n(368)](typeof window, n(413))) return window;
|
|
39
40
|
continue;
|
|
40
41
|
case "3":
|
|
41
|
-
|
|
42
|
+
if (t.XTSBQ(typeof globalThis, n(413))) return globalThis;
|
|
43
|
+
continue;
|
|
42
44
|
case "4":
|
|
43
|
-
if (t
|
|
45
|
+
if (t.FMQlm(typeof global, t[n(383)])) return global;
|
|
44
46
|
continue;
|
|
45
47
|
}
|
|
46
48
|
break;
|
|
47
49
|
}
|
|
48
|
-
},
|
|
49
|
-
const e =
|
|
50
|
+
}, L = (n, t, x) => {
|
|
51
|
+
const e = u, s = { vPMSQ: function(r, a) {
|
|
50
52
|
return r !== a;
|
|
51
|
-
},
|
|
52
|
-
return r in a;
|
|
53
|
-
}, UPfhE: e(247), IvNEu: function(r, a) {
|
|
53
|
+
}, hFSmL: e(397), LcjQl: function(r, a) {
|
|
54
54
|
return r === a;
|
|
55
|
-
}
|
|
56
|
-
s[e(
|
|
57
|
-
},
|
|
58
|
-
const x =
|
|
55
|
+
} };
|
|
56
|
+
s[e(374)](typeof window, "undefined") ? n[e(397)](t, "*", x) : s[e(360)] in n && s.LcjQl(typeof n[e(397)], e(384)) && n.postMessage(t, x);
|
|
57
|
+
}, J = (n, t) => {
|
|
58
|
+
const x = u, e = { CMVeQ: function(s, r) {
|
|
59
59
|
return s in r;
|
|
60
|
-
},
|
|
60
|
+
}, AlAfb: "addEventListener", ITMfs: function(s, r) {
|
|
61
61
|
return s === r;
|
|
62
|
-
},
|
|
63
|
-
return s in r;
|
|
64
|
-
}, QPOqH: x(222), nkSuS: function(s, r) {
|
|
62
|
+
}, XbCwl: function(s, r) {
|
|
65
63
|
return s !== r;
|
|
66
|
-
}
|
|
67
|
-
e[x(
|
|
64
|
+
} };
|
|
65
|
+
e.CMVeQ(e[x(410)], n) && e[x(385)](typeof n[x(407)], x(384)) ? n[x(407)](x(391), t) : "onmessage" in n && e[x(399)](typeof n[x(375)], x(413)) && (n[x(375)] = t);
|
|
68
66
|
};
|
|
67
|
+
function h() {
|
|
68
|
+
const n = ["wFeCb", "split", "297ZYngTH", "65293VHyWyI", "_started", "swzGV", "function", "ITMfs", "MessagePort error: ", "581RuUBJM", "onclose", "45352MkhdPv", "zjysK", "message", "_globalObject", "12rNtUCN", "return this", "close", "50230eJRSZp", "postMessage", "stringify", "XbCwl", "809106WfyjLS", "_endpoint", "3|2|4|1|0", "vzpHB", "onerror", "Failed to parse message: ", "port1", "addEventListener", "sessionId", "mkXkB", "AlAfb", "endpoint", "data", "undefined", "KOkQn", "_sessionId", "hFSmL", "port2", "start", "randomUUID", "_closed", "AUWQS", "cdjiy", "38RIHtWs", "FMQlm", "_port", "parse", "3|1|5|0|4|2", "27290384onvWZe", "DXJIO", "vPMSQ", "onmessage", "8234415iHOLlw", "9053838tFCGGq"];
|
|
69
|
+
return h = function() {
|
|
70
|
+
return n;
|
|
71
|
+
}, h();
|
|
72
|
+
}
|
|
69
73
|
class l {
|
|
70
74
|
constructor(t, x) {
|
|
71
|
-
const e =
|
|
72
|
-
let a =
|
|
75
|
+
const e = u, s = { AUWQS: e(371) }, r = s[e(365)][e(379)]("|");
|
|
76
|
+
let a = 1365 + 8 * -52 + -949 * 1;
|
|
73
77
|
for (; ; ) {
|
|
74
78
|
switch (r[a++]) {
|
|
75
79
|
case "0":
|
|
76
|
-
this
|
|
80
|
+
this._sessionId = x;
|
|
77
81
|
continue;
|
|
78
82
|
case "1":
|
|
79
|
-
this
|
|
83
|
+
this[e(364)] = !1;
|
|
80
84
|
continue;
|
|
81
85
|
case "2":
|
|
82
|
-
this[e(
|
|
86
|
+
this[e(364)] = !1;
|
|
83
87
|
continue;
|
|
84
88
|
case "3":
|
|
85
|
-
this
|
|
89
|
+
this._started = !1;
|
|
86
90
|
continue;
|
|
87
91
|
case "4":
|
|
88
|
-
this
|
|
92
|
+
this[e(382)] = !1;
|
|
89
93
|
continue;
|
|
90
94
|
case "5":
|
|
91
|
-
this
|
|
95
|
+
this._port = t;
|
|
92
96
|
continue;
|
|
93
97
|
}
|
|
94
98
|
break;
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
|
-
async [
|
|
98
|
-
const t =
|
|
99
|
-
this[t(
|
|
101
|
+
async [f(362)]() {
|
|
102
|
+
const t = f;
|
|
103
|
+
this[t(382)] || this[t(364)] || !this[t(369)] || (this[t(382)] = !0, this[t(369)].onmessage = (x) => {
|
|
100
104
|
var s, r;
|
|
101
105
|
const e = t;
|
|
102
106
|
try {
|
|
103
|
-
const a =
|
|
104
|
-
(s = this[e(
|
|
107
|
+
const a = O[e(370)](x.data);
|
|
108
|
+
(s = this[e(375)]) == null || s.call(this, a);
|
|
105
109
|
} catch (a) {
|
|
106
|
-
const c = new Error(e(
|
|
107
|
-
(r = this
|
|
110
|
+
const c = new Error(e(405) + a);
|
|
111
|
+
(r = this.onerror) == null || r.call(this, c);
|
|
108
112
|
}
|
|
109
|
-
}, this[t(
|
|
113
|
+
}, this[t(369)].onmessageerror = (x) => {
|
|
110
114
|
var r;
|
|
111
|
-
const e = t, s = new Error(e(
|
|
112
|
-
(r = this[e(
|
|
113
|
-
}, this[t(
|
|
115
|
+
const e = t, s = new Error(e(386) + JSON[e(398)](x));
|
|
116
|
+
(r = this[e(404)]) == null || r.call(this, s);
|
|
117
|
+
}, this[t(369)][t(362)]());
|
|
114
118
|
}
|
|
115
|
-
async
|
|
116
|
-
const x =
|
|
119
|
+
async send(t) {
|
|
120
|
+
const x = f, e = { wFeCb: function(s, r) {
|
|
121
|
+
return s instanceof r;
|
|
122
|
+
}, vzpHB: function(s, r) {
|
|
123
|
+
return s(r);
|
|
124
|
+
}, cdjiy: function(s, r) {
|
|
117
125
|
return s(r);
|
|
118
126
|
} };
|
|
119
|
-
if (!(this[x(
|
|
127
|
+
if (!(this[x(364)] || !this[x(369)]))
|
|
120
128
|
return new Promise((s, r) => {
|
|
121
129
|
var c;
|
|
122
130
|
const a = x;
|
|
123
131
|
try {
|
|
124
|
-
this[a(
|
|
125
|
-
} catch (
|
|
126
|
-
const
|
|
127
|
-
(c = this[a(
|
|
132
|
+
this[a(369)] && this[a(369)][a(397)](t), s();
|
|
133
|
+
} catch (o) {
|
|
134
|
+
const i = e[a(378)](o, Error) ? o : new Error(e[a(403)](String, o));
|
|
135
|
+
(c = this[a(404)]) == null || c.call(this, i), e[a(366)](r, i);
|
|
128
136
|
}
|
|
129
137
|
});
|
|
130
138
|
}
|
|
131
|
-
async [
|
|
139
|
+
async [f(395)]() {
|
|
132
140
|
var x;
|
|
133
|
-
const t =
|
|
134
|
-
this
|
|
141
|
+
const t = f;
|
|
142
|
+
this[t(364)] || !this[t(369)] || (this[t(364)] = !0, this[t(369)][t(395)](), (x = this[t(388)]) == null || x.call(this));
|
|
135
143
|
}
|
|
136
|
-
get [
|
|
137
|
-
return this[
|
|
144
|
+
get [f(408)]() {
|
|
145
|
+
return this[f(415)];
|
|
138
146
|
}
|
|
139
147
|
}
|
|
140
|
-
class
|
|
141
|
-
constructor(t, x =
|
|
142
|
-
const e =
|
|
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)]]);
|
|
148
|
+
class G extends l {
|
|
149
|
+
constructor(t, x = z()) {
|
|
150
|
+
const e = f;
|
|
151
|
+
super(), this._endpoint = t, this._globalObject = x;
|
|
152
|
+
const s = new MessageChannel(), r = crypto[e(363)]();
|
|
153
|
+
this[e(369)] = s[e(406)], this[e(415)] = r, L(this[e(392)], { endpoint: this[e(401)], sessionId: r }, [s[e(361)]]);
|
|
148
154
|
}
|
|
149
155
|
}
|
|
150
|
-
class
|
|
151
|
-
constructor(t, x =
|
|
152
|
-
const e =
|
|
156
|
+
class q extends l {
|
|
157
|
+
constructor(t, x = z()) {
|
|
158
|
+
const e = f, s = { zjysK: function(r, a) {
|
|
153
159
|
return r === a;
|
|
154
|
-
},
|
|
160
|
+
}, JwJXP: function(r) {
|
|
155
161
|
return r();
|
|
156
|
-
}, oTomg: function(r, a, c) {
|
|
157
|
-
return r(a, c);
|
|
158
162
|
} };
|
|
159
|
-
super(), this
|
|
160
|
-
const a = e
|
|
161
|
-
|
|
163
|
+
super(), this._endpoint = t, this[e(392)] = x, this._listen = new Promise((r) => {
|
|
164
|
+
const a = e, c = { mkXkB: function(o, i) {
|
|
165
|
+
return s[u(390)](o, i);
|
|
166
|
+
}, vKRow: function(o) {
|
|
167
|
+
return s.JwJXP(o);
|
|
168
|
+
} };
|
|
169
|
+
J(this[a(392)], (o) => {
|
|
162
170
|
const i = a;
|
|
163
|
-
|
|
171
|
+
o[i(412)] && c[i(409)](o[i(412)][i(411)], this._endpoint) && (this[i(369)] = o.ports[7172 + 2512 * 3 + -14708], this._sessionId = o[i(412)][i(408)], c.vKRow(r));
|
|
164
172
|
});
|
|
165
173
|
});
|
|
166
174
|
}
|
|
167
|
-
async
|
|
168
|
-
return this
|
|
175
|
+
async listen() {
|
|
176
|
+
return this._listen;
|
|
169
177
|
}
|
|
170
178
|
}
|
|
171
|
-
const
|
|
172
|
-
const n =
|
|
173
|
-
return [new l(t[n(
|
|
179
|
+
const $ = () => {
|
|
180
|
+
const n = f, t = new MessageChannel(), x = crypto[n(363)]();
|
|
181
|
+
return [new l(t[n(406)], x), new l(t.port2, x)];
|
|
174
182
|
};
|
|
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() {
|
|
178
|
-
return n;
|
|
179
|
-
}, I();
|
|
180
|
-
}
|
|
181
183
|
(function(n, t) {
|
|
182
|
-
const x =
|
|
184
|
+
const x = p, e = n();
|
|
183
185
|
for (; ; )
|
|
184
186
|
try {
|
|
185
|
-
if (-parseInt(x(
|
|
187
|
+
if (-parseInt(x(288)) / 1 + parseInt(x(266)) / 2 + -parseInt(x(246)) / 3 * (-parseInt(x(274)) / 4) + parseInt(x(275)) / 5 * (-parseInt(x(264)) / 6) + parseInt(x(243)) / 7 + parseInt(x(255)) / 8 * (parseInt(x(256)) / 9) + -parseInt(x(286)) / 10 * (parseInt(x(249)) / 11) === t) break;
|
|
186
188
|
e.push(e.shift());
|
|
187
189
|
} catch {
|
|
188
190
|
e.push(e.shift());
|
|
189
191
|
}
|
|
190
|
-
})(
|
|
191
|
-
function
|
|
192
|
-
const x =
|
|
193
|
-
return
|
|
194
|
-
return e = e - (
|
|
195
|
-
},
|
|
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();
|
|
192
|
+
})(I, -478347 + -3 * -96269 + -1075 * -451);
|
|
193
|
+
function p(n, t) {
|
|
194
|
+
const x = I();
|
|
195
|
+
return p = function(e, s) {
|
|
196
|
+
return e = e - (-4892 + -197 * -11 + 2968), x[e];
|
|
197
|
+
}, p(n, t);
|
|
202
198
|
}
|
|
203
|
-
const
|
|
204
|
-
const x =
|
|
205
|
-
return
|
|
206
|
-
},
|
|
199
|
+
const R = async (n, t) => {
|
|
200
|
+
const x = p, e = { PitKE: x(270), maubQ: "tools/call", xIbLF: x(268), zdWOe: "resources/subscribe", rpoYy: "resources/unsubscribe", HzfVS: x(247), EEwSb: "ping", TBOui: x(250), CDYcU: x(244), aojBA: x(289), PkqjY: function(o, i) {
|
|
201
|
+
return o !== i;
|
|
202
|
+
}, gRqrR: "notifications/initialized" };
|
|
207
203
|
let s;
|
|
208
204
|
const { id: r, method: a, params: c } = t;
|
|
209
205
|
if (a) {
|
|
210
206
|
switch (a) {
|
|
211
|
-
case e[x(
|
|
212
|
-
s = await n[x(
|
|
207
|
+
case e[x(276)]:
|
|
208
|
+
s = await n._client[x(258)](c);
|
|
213
209
|
break;
|
|
214
|
-
case x(
|
|
215
|
-
s = await n
|
|
210
|
+
case e[x(260)]:
|
|
211
|
+
s = await n[x(257)][x(285)](c);
|
|
216
212
|
break;
|
|
217
|
-
case
|
|
218
|
-
s = await n
|
|
213
|
+
case x(267):
|
|
214
|
+
s = await n._client.listResources(c);
|
|
219
215
|
break;
|
|
220
|
-
case
|
|
221
|
-
s = await n[x(
|
|
216
|
+
case e.xIbLF:
|
|
217
|
+
s = await n[x(257)][x(251)](c);
|
|
222
218
|
break;
|
|
223
|
-
case x(
|
|
224
|
-
s = await n._client
|
|
219
|
+
case x(282):
|
|
220
|
+
s = await n._client.readResource(c);
|
|
225
221
|
break;
|
|
226
|
-
case x(
|
|
227
|
-
s = await n
|
|
222
|
+
case e[x(263)]:
|
|
223
|
+
s = await n[x(257)].subscribeResource(c);
|
|
228
224
|
break;
|
|
229
|
-
case e[x(
|
|
230
|
-
s = await n[x(
|
|
225
|
+
case e[x(254)]:
|
|
226
|
+
s = await n[x(257)].unsubscribeResource(c);
|
|
231
227
|
break;
|
|
232
|
-
case e
|
|
233
|
-
s = await n[x(
|
|
228
|
+
case e[x(287)]:
|
|
229
|
+
s = await n[x(257)][x(279)](c);
|
|
234
230
|
break;
|
|
235
|
-
case
|
|
236
|
-
s = await n[x(
|
|
231
|
+
case "prompts/list":
|
|
232
|
+
s = await n[x(257)][x(280)](c);
|
|
237
233
|
break;
|
|
238
|
-
case e
|
|
239
|
-
s = await n[x(
|
|
234
|
+
case e.EEwSb:
|
|
235
|
+
s = await n[x(257)][x(259)]();
|
|
240
236
|
break;
|
|
241
|
-
case e[x(
|
|
242
|
-
s = await n[x(
|
|
237
|
+
case e[x(252)]:
|
|
238
|
+
s = await n[x(257)][x(253)](c);
|
|
243
239
|
break;
|
|
244
|
-
case
|
|
245
|
-
s = await n._client[x(
|
|
240
|
+
case e[x(290)]:
|
|
241
|
+
s = await n._client[x(265)](c);
|
|
246
242
|
break;
|
|
247
243
|
}
|
|
248
|
-
return s ? await n[x(
|
|
244
|
+
return s ? await n[x(271)]({ result: s, jsonrpc: e[x(281)], id: r }) : e[x(269)](a, x(248)) && e[x(269)](a, e[x(273)]) && (a !== x(245) || c[x(278)]) && await n[x(257)].notification({ method: a, params: c }), s;
|
|
249
245
|
}
|
|
250
|
-
},
|
|
251
|
-
const t =
|
|
246
|
+
}, B = (n) => {
|
|
247
|
+
const t = p, x = { UbcJZ: function(s, r, a) {
|
|
252
248
|
return s(r, a);
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
249
|
+
} }, e = n[t(261)];
|
|
250
|
+
if (!e[t(272)]) {
|
|
251
|
+
async function s(r, a) {
|
|
252
|
+
const c = t;
|
|
253
|
+
if (n[c(257)]) {
|
|
254
|
+
let o;
|
|
255
|
+
try {
|
|
256
|
+
o = await x[c(262)](R, n, r);
|
|
257
|
+
} catch {
|
|
258
|
+
}
|
|
259
|
+
if (o === void 0 && e) try {
|
|
260
|
+
e[c(284)](n, r, a);
|
|
261
|
+
} catch {
|
|
262
|
+
}
|
|
267
263
|
}
|
|
268
264
|
}
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
265
|
+
s[t(272)] = !0, n[t(261)] = s;
|
|
266
|
+
}
|
|
267
|
+
}, F = (n, t) => {
|
|
268
|
+
const x = p, e = { uVICw: "2.0" }, s = t._onnotification;
|
|
269
|
+
t[x(283)] = async (r) => {
|
|
270
|
+
const a = x, c = { ...r, jsonrpc: e[a(277)] };
|
|
274
271
|
try {
|
|
275
|
-
await n
|
|
272
|
+
await n[a(271)](c);
|
|
276
273
|
} catch {
|
|
277
274
|
}
|
|
278
|
-
s[a(
|
|
275
|
+
s[a(284)](t, r);
|
|
279
276
|
};
|
|
280
277
|
};
|
|
281
|
-
function
|
|
282
|
-
|
|
283
|
-
return
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return r;
|
|
287
|
-
}, p(n, t);
|
|
278
|
+
function I() {
|
|
279
|
+
const n = ["1902432oaNMmN", "logging/setLevel", "notifications/cancelled", "423vnTEpV", "prompts/get", "initialize", "38423iPDJzE", "completion/complete", "listResourceTemplates", "TBOui", "complete", "rpoYy", "8WCGEFo", "2308032MvAygh", "_client", "listTools", "ping", "maubQ", "onmessage", "UbcJZ", "zdWOe", "16194SVjsAa", "setLoggingLevel", "1036224YsKPJD", "resources/list", "resources/templates/list", "PkqjY", "tools/list", "send", "isSet", "gRqrR", "9884vhoTIc", "790tyyHbr", "PitKE", "uVICw", "forward", "getPrompt", "listPrompts", "aojBA", "resources/read", "_onnotification", "call", "callTool", "1390iMNkwv", "HzfVS", "187493tmEvWX", "2.0", "CDYcU"];
|
|
280
|
+
return I = function() {
|
|
281
|
+
return n;
|
|
282
|
+
}, I();
|
|
288
283
|
}
|
|
289
|
-
var
|
|
284
|
+
var C = b;
|
|
290
285
|
(function(n, t) {
|
|
291
|
-
for (var x =
|
|
286
|
+
for (var x = b, e = n(); ; )
|
|
292
287
|
try {
|
|
293
|
-
var s =
|
|
288
|
+
var s = parseInt(x(124)) / 1 * (-parseInt(x(123)) / 2) + -parseInt(x(113)) / 3 * (-parseInt(x(127)) / 4) + -parseInt(x(122)) / 5 * (parseInt(x(115)) / 6) + parseInt(x(128)) / 7 * (parseInt(x(119)) / 8) + -parseInt(x(112)) / 9 + -parseInt(x(126)) / 10 + parseInt(x(121)) / 11 * (parseInt(x(118)) / 12);
|
|
294
289
|
if (s === t) break;
|
|
295
290
|
e.push(e.shift());
|
|
296
291
|
} catch {
|
|
297
292
|
e.push(e.shift());
|
|
298
293
|
}
|
|
299
|
-
})(w,
|
|
294
|
+
})(w, 1767 * 253 + -687857 + 8 * 78058);
|
|
295
|
+
function b(n, t) {
|
|
296
|
+
var x = w();
|
|
297
|
+
return b = function(e, s) {
|
|
298
|
+
e = e - (7038 + -5 * -1006 + -11958);
|
|
299
|
+
var r = x[e];
|
|
300
|
+
return r;
|
|
301
|
+
}, b(n, t);
|
|
302
|
+
}
|
|
300
303
|
function w() {
|
|
301
|
-
var n = ["
|
|
304
|
+
var n = ["ozTZy", "2026719afumPv", "245283gIIfvg", "_endpoint", "66AmGFRf", "NUrkI", "kpaeS", "7404nyyBCe", "2488EwPGSE", "sessionId", "19382iSxgqP", "38365HVaadj", "12QfucWW", "106347UlJhXm", "_client", "7409080OKLnQg", "20cIGngf", "12971DXPsbO", "_startOrAuth"];
|
|
302
305
|
return w = function() {
|
|
303
306
|
return n;
|
|
304
307
|
}, w();
|
|
305
308
|
}
|
|
306
|
-
class
|
|
309
|
+
class V extends U {
|
|
307
310
|
constructor(t, x, e) {
|
|
308
|
-
var s =
|
|
309
|
-
return a(c,
|
|
311
|
+
var s = b, r = { kpaeS: function(a, c, o) {
|
|
312
|
+
return a(c, o);
|
|
310
313
|
} };
|
|
311
|
-
super(t, x), this[s(
|
|
314
|
+
super(t, x), this[s(125)] = e, r[s(117)](F, this, e);
|
|
312
315
|
}
|
|
313
|
-
[
|
|
314
|
-
var t =
|
|
316
|
+
[C(110)]() {
|
|
317
|
+
var t = C, x = { NUrkI: function(e, s) {
|
|
315
318
|
return e(s);
|
|
316
319
|
} };
|
|
317
|
-
return x
|
|
320
|
+
return x[t(116)](B, this), super[t(110)]();
|
|
318
321
|
}
|
|
319
|
-
get
|
|
320
|
-
var t =
|
|
321
|
-
return this[t(
|
|
322
|
+
get sessionId() {
|
|
323
|
+
var t = C, x = { ozTZy: t(120) };
|
|
324
|
+
return this[t(114)].searchParams.get(x[t(111)]);
|
|
322
325
|
}
|
|
323
326
|
}
|
|
324
|
-
var
|
|
327
|
+
var A = d;
|
|
325
328
|
(function(n, t) {
|
|
326
|
-
for (var x =
|
|
329
|
+
for (var x = d, e = n(); ; )
|
|
327
330
|
try {
|
|
328
|
-
var s = -parseInt(x(
|
|
331
|
+
var s = -parseInt(x(494)) / 1 * (parseInt(x(498)) / 2) + -parseInt(x(491)) / 3 * (parseInt(x(504)) / 4) + parseInt(x(503)) / 5 * (-parseInt(x(502)) / 6) + -parseInt(x(505)) / 7 * (parseInt(x(499)) / 8) + parseInt(x(497)) / 9 + -parseInt(x(496)) / 10 * (parseInt(x(501)) / 11) + parseInt(x(492)) / 12;
|
|
329
332
|
if (s === t) break;
|
|
330
333
|
e.push(e.shift());
|
|
331
334
|
} catch {
|
|
332
335
|
e.push(e.shift());
|
|
333
336
|
}
|
|
334
|
-
})(
|
|
335
|
-
function
|
|
336
|
-
var
|
|
337
|
-
return
|
|
338
|
-
|
|
337
|
+
})(m, 1053414 + -4817 * -239 + -1535 * 980);
|
|
338
|
+
function m() {
|
|
339
|
+
var n = ["136705pohpDC", "4FsndJo", "28jNguJQ", "2342961csporP", "51806004VzAdTV", "ENejo", "1nzFbEV", "_client", "10LYjkAz", "9855miNlny", "2360332QWKvZn", "832664mWZTbO", "_handleSseStream", "7328629udHvjc", "126SuKvXw"];
|
|
340
|
+
return m = function() {
|
|
341
|
+
return n;
|
|
342
|
+
}, m();
|
|
343
|
+
}
|
|
344
|
+
function d(n, t) {
|
|
345
|
+
var x = m();
|
|
346
|
+
return d = function(e, s) {
|
|
347
|
+
e = e - (447 + -44 * -1);
|
|
339
348
|
var r = x[e];
|
|
340
349
|
return r;
|
|
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();
|
|
350
|
+
}, d(n, t);
|
|
348
351
|
}
|
|
349
|
-
class
|
|
352
|
+
class D extends N {
|
|
350
353
|
constructor(t, x, e) {
|
|
351
|
-
var s =
|
|
352
|
-
|
|
354
|
+
var s = d, r = { ENejo: function(a, c, o) {
|
|
355
|
+
return a(c, o);
|
|
356
|
+
} };
|
|
357
|
+
super(t, x), this[s(495)] = e, r[s(493)](F, this, e);
|
|
353
358
|
}
|
|
354
|
-
[
|
|
355
|
-
|
|
359
|
+
[A(500)](t, x) {
|
|
360
|
+
B(this), super._handleSseStream(t, x);
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
|
-
|
|
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
|
-
}
|
|
363
|
+
const Q = g;
|
|
364
364
|
(function(n, t) {
|
|
365
|
-
const x =
|
|
365
|
+
const x = g, e = n();
|
|
366
366
|
for (; ; )
|
|
367
367
|
try {
|
|
368
|
-
if (-parseInt(x(
|
|
368
|
+
if (-parseInt(x(322)) / 1 + -parseInt(x(313)) / 2 * (-parseInt(x(318)) / 3) + -parseInt(x(317)) / 4 + parseInt(x(320)) / 5 + parseInt(x(316)) / 6 * (-parseInt(x(319)) / 7) + -parseInt(x(314)) / 8 + parseInt(x(325)) / 9 === t) break;
|
|
369
369
|
e.push(e.shift());
|
|
370
370
|
} catch {
|
|
371
371
|
e.push(e.shift());
|
|
372
372
|
}
|
|
373
|
-
})(
|
|
374
|
-
function
|
|
375
|
-
const x =
|
|
376
|
-
return
|
|
377
|
-
return e = e - (
|
|
378
|
-
},
|
|
373
|
+
})(y, -284853 * 1 + 337349 + 308244);
|
|
374
|
+
function g(n, t) {
|
|
375
|
+
const x = y();
|
|
376
|
+
return g = function(e, s) {
|
|
377
|
+
return e = e - (193 * 25 + 215 * 13 + -1 * 7307), x[e];
|
|
378
|
+
}, g(n, t);
|
|
379
379
|
}
|
|
380
|
-
const
|
|
381
|
-
const e =
|
|
382
|
-
|
|
380
|
+
const K = (n) => ({ requestInit: { headers: { Authorization: Q(315) + n } }, eventSourceInit: { async fetch(t, x) {
|
|
381
|
+
const e = Q, s = { rYWUh: function(a, c, o) {
|
|
382
|
+
return a(c, o);
|
|
383
|
+
} }, r = new Headers((x == null ? void 0 : x[e(326)]) || {});
|
|
384
|
+
return r[e(324)](e(323), "Bearer " + n), s[e(321)](fetch, t, { ...x, headers: r });
|
|
383
385
|
} } });
|
|
386
|
+
function y() {
|
|
387
|
+
const n = ["10aFKAvH", "1632360aeNKje", "Bearer ", "12wpzBCB", "2297516BDZPEa", "378561EjWPGr", "485681thirRS", "3352345TLwAVz", "rYWUh", "234601LtFMpu", "authorization", "set", "1900143qjBhtI", "headers"];
|
|
388
|
+
return y = function() {
|
|
389
|
+
return n;
|
|
390
|
+
}, y();
|
|
391
|
+
}
|
|
384
392
|
function v() {
|
|
385
|
-
const n = ["
|
|
393
|
+
const n = ["4SkJKJL", "9zKKMwH", "12IATTGu", "Bearer ", "2328136tnNXGw", "13111439kofmQB", "7028DxzoFj", "12aHQLzS", "randomUUID", "10ZcCFQv", "21194277dSsQRo", "1225892GmoNMD", "2604453DQpZXf", "1840aFNRvJ", "140854VsCYIF"];
|
|
386
394
|
return v = function() {
|
|
387
395
|
return n;
|
|
388
396
|
}, v();
|
|
389
397
|
}
|
|
398
|
+
function k(n, t) {
|
|
399
|
+
const x = v();
|
|
400
|
+
return k = function(e, s) {
|
|
401
|
+
return e = e - (1 * 4855 + 2015 * -3 + -541 * -3), x[e];
|
|
402
|
+
}, k(n, t);
|
|
403
|
+
}
|
|
404
|
+
const E = k;
|
|
390
405
|
(function(n, t) {
|
|
391
|
-
const x =
|
|
406
|
+
const x = k, e = n();
|
|
392
407
|
for (; ; )
|
|
393
408
|
try {
|
|
394
|
-
if (-parseInt(x(
|
|
409
|
+
if (-parseInt(x(435)) / 1 + parseInt(x(439)) / 2 * (parseInt(x(436)) / 3) + parseInt(x(445)) / 4 * (parseInt(x(437)) / 5) + parseInt(x(446)) / 6 * (-parseInt(x(438)) / 7) + -parseInt(x(443)) / 8 * (-parseInt(x(440)) / 9) + parseInt(x(433)) / 10 * (parseInt(x(444)) / 11) + -parseInt(x(441)) / 12 * (parseInt(x(434)) / 13) === t) break;
|
|
395
410
|
e.push(e.shift());
|
|
396
411
|
} catch {
|
|
397
412
|
e.push(e.shift());
|
|
398
413
|
}
|
|
399
|
-
})(v,
|
|
400
|
-
|
|
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 } } });
|
|
414
|
+
})(v, 341649 + 12867 * 29 + 254587);
|
|
415
|
+
const W = (n, t = crypto[E(447)]()) => ({ requestInit: { headers: { Authorization: E(442) + n, "stream-session-id": t } } });
|
|
407
416
|
(function(n, t) {
|
|
408
417
|
const x = _, e = n();
|
|
409
418
|
for (; ; )
|
|
410
419
|
try {
|
|
411
|
-
if (
|
|
420
|
+
if (parseInt(x(275)) / 1 + -parseInt(x(287)) / 2 + -parseInt(x(281)) / 3 + parseInt(x(278)) / 4 + -parseInt(x(283)) / 5 * (-parseInt(x(276)) / 6) + -parseInt(x(288)) / 7 + -parseInt(x(277)) / 8 * (-parseInt(x(279)) / 9) === t) break;
|
|
412
421
|
e.push(e.shift());
|
|
413
422
|
} catch {
|
|
414
423
|
e.push(e.shift());
|
|
415
424
|
}
|
|
416
|
-
})(S,
|
|
425
|
+
})(S, 21 * 10856 + -1289478 + 1872590);
|
|
417
426
|
function S() {
|
|
418
|
-
const n = ["
|
|
427
|
+
const n = ["OFZDO", "3078402bfKTDc", "aPrQB", "165rMVxea", "sessionId", "UkwnV", "1.0.0", "2730562IApyhv", "8251971BQcDYN", "connect", "mcp-proxy-client", "1382582OHWLMY", "181014nWtnBj", "40YGaUQY", "1439628aYTeUJ", "2957922NBEiGW"];
|
|
419
428
|
return S = function() {
|
|
420
429
|
return n;
|
|
421
430
|
}, S();
|
|
@@ -423,51 +432,51 @@ function S() {
|
|
|
423
432
|
function _(n, t) {
|
|
424
433
|
const x = S();
|
|
425
434
|
return _ = function(e, s) {
|
|
426
|
-
return e = e -
|
|
435
|
+
return e = e - (-6477 + 43 * 157), x[e];
|
|
427
436
|
}, _(n, t);
|
|
428
437
|
}
|
|
429
|
-
const
|
|
430
|
-
const t = _, x = {
|
|
431
|
-
return
|
|
432
|
-
},
|
|
433
|
-
return await new
|
|
434
|
-
},
|
|
435
|
-
const t = _, x = {
|
|
436
|
-
return await new
|
|
438
|
+
const x0 = async (n) => {
|
|
439
|
+
const t = _, x = { aPrQB: function(i, T) {
|
|
440
|
+
return i(T);
|
|
441
|
+
}, KNpgk: t(286) }, { client: e, url: s, token: r } = n, a = new V(new URL(s), x[t(282)](K, r), e), c = { prompts: {}, resources: {}, tools: {}, logging: {}, roots: { listChanged: !0 }, sampling: {} };
|
|
442
|
+
return await new j({ name: t(274), version: x.KNpgk }, { capabilities: c }).connect(a), { transport: a, sessionId: a[t(284)] };
|
|
443
|
+
}, e0 = async (n) => {
|
|
444
|
+
const t = _, x = { UkwnV: "mcp-proxy-client", OFZDO: t(286) }, { client: e, url: s, token: r } = n, a = crypto.randomUUID(), c = new D(new URL(s), W(r, a), e), o = { prompts: {}, resources: {}, tools: {}, logging: {}, roots: { listChanged: !0 }, sampling: {} };
|
|
445
|
+
return await new j({ name: x[t(285)], version: x[t(280)] }, { capabilities: o })[t(289)](c), { transport: c, sessionId: a };
|
|
437
446
|
};
|
|
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
|
-
}
|
|
446
447
|
(function(n, t) {
|
|
447
|
-
for (var x =
|
|
448
|
+
for (var x = M, e = n(); ; )
|
|
448
449
|
try {
|
|
449
|
-
var s = -parseInt(x(
|
|
450
|
+
var s = -parseInt(x(263)) / 1 * (-parseInt(x(265)) / 2) + -parseInt(x(266)) / 3 + -parseInt(x(260)) / 4 * (parseInt(x(264)) / 5) + -parseInt(x(261)) / 6 + -parseInt(x(259)) / 7 + -parseInt(x(262)) / 8 + parseInt(x(258)) / 9 * (parseInt(x(267)) / 10);
|
|
450
451
|
if (s === t) break;
|
|
451
452
|
e.push(e.shift());
|
|
452
453
|
} catch {
|
|
453
454
|
e.push(e.shift());
|
|
454
455
|
}
|
|
455
|
-
})(
|
|
456
|
-
function
|
|
457
|
-
var n = ["
|
|
458
|
-
return
|
|
456
|
+
})(P, -51445 * -2 + 47946 * 7 + -25451 * 6);
|
|
457
|
+
function P() {
|
|
458
|
+
var n = ["4FylPba", "983805jQaDCg", "117826OFmOiY", "1560156wNEzZE", "3350pVYacf", "24669aEBmhn", "289737sUbMZE", "4wIBQsd", "2166XHMuiF", "876128zNinIk"];
|
|
459
|
+
return P = function() {
|
|
459
460
|
return n;
|
|
460
|
-
},
|
|
461
|
+
}, P();
|
|
462
|
+
}
|
|
463
|
+
function M(n, t) {
|
|
464
|
+
var x = P();
|
|
465
|
+
return M = function(e, s) {
|
|
466
|
+
e = e - 258;
|
|
467
|
+
var r = x[e];
|
|
468
|
+
return r;
|
|
469
|
+
}, M(n, t);
|
|
461
470
|
}
|
|
462
471
|
export {
|
|
463
|
-
|
|
464
|
-
|
|
472
|
+
G as MessageChannelClientTransport,
|
|
473
|
+
q as MessageChannelServerTransport,
|
|
465
474
|
l as MessageChannelTransport,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
475
|
+
V as ProxySSEClientTransport,
|
|
476
|
+
D as ProxyStreamClientTransport,
|
|
477
|
+
x0 as createSseProxy,
|
|
478
|
+
e0 as createStreamProxy,
|
|
479
|
+
$ as createTransportPair,
|
|
480
|
+
K as sseOptions,
|
|
481
|
+
W as streamOptions
|
|
473
482
|
};
|