@opentiny/next 0.1.1 → 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 +301 -268
- package/package.json +4 -3
- package/server.js +236 -213
package/client.js
CHANGED
|
@@ -1,449 +1,482 @@
|
|
|
1
|
-
import { JSONRPCMessageSchema as
|
|
2
|
-
import { Client as
|
|
3
|
-
import { SSEClientTransport as
|
|
4
|
-
import { StreamableHTTPClientTransport as
|
|
5
|
-
const
|
|
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
|
+
import { StreamableHTTPClientTransport as N } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
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 (
|
|
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
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
},
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
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
|
+
}
|
|
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) {
|
|
26
|
+
return s !== r;
|
|
27
|
+
}, XTSBQ: function(s, r) {
|
|
28
|
+
return s !== r;
|
|
29
|
+
} }, x = t[n(414)][n(379)]("|");
|
|
30
|
+
let e = 0;
|
|
31
|
+
for (; ; ) {
|
|
32
|
+
switch (x[e++]) {
|
|
33
|
+
case "0":
|
|
34
|
+
return Function(n(394))();
|
|
35
|
+
case "1":
|
|
36
|
+
if (t[n(373)](typeof self, t[n(383)])) return self;
|
|
37
|
+
continue;
|
|
38
|
+
case "2":
|
|
39
|
+
if (t[n(368)](typeof window, n(413))) return window;
|
|
40
|
+
continue;
|
|
41
|
+
case "3":
|
|
42
|
+
if (t.XTSBQ(typeof globalThis, n(413))) return globalThis;
|
|
43
|
+
continue;
|
|
44
|
+
case "4":
|
|
45
|
+
if (t.FMQlm(typeof global, t[n(383)])) return global;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}, L = (n, t, x) => {
|
|
51
|
+
const e = u, s = { vPMSQ: function(r, a) {
|
|
31
52
|
return r !== a;
|
|
32
|
-
},
|
|
33
|
-
return r in a;
|
|
34
|
-
}, vUSIx: e(404), RPGPk: function(r, a) {
|
|
53
|
+
}, hFSmL: e(397), LcjQl: function(r, a) {
|
|
35
54
|
return r === a;
|
|
36
|
-
}
|
|
37
|
-
s[e(
|
|
38
|
-
},
|
|
39
|
-
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) {
|
|
40
59
|
return s in r;
|
|
41
|
-
},
|
|
60
|
+
}, AlAfb: "addEventListener", ITMfs: function(s, r) {
|
|
42
61
|
return s === r;
|
|
43
|
-
},
|
|
62
|
+
}, XbCwl: function(s, r) {
|
|
44
63
|
return s !== r;
|
|
45
|
-
}
|
|
46
|
-
e
|
|
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);
|
|
47
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
|
+
}
|
|
48
73
|
class l {
|
|
49
74
|
constructor(t, x) {
|
|
50
|
-
const e =
|
|
51
|
-
let a =
|
|
75
|
+
const e = u, s = { AUWQS: e(371) }, r = s[e(365)][e(379)]("|");
|
|
76
|
+
let a = 1365 + 8 * -52 + -949 * 1;
|
|
52
77
|
for (; ; ) {
|
|
53
78
|
switch (r[a++]) {
|
|
54
79
|
case "0":
|
|
55
|
-
this
|
|
80
|
+
this._sessionId = x;
|
|
56
81
|
continue;
|
|
57
82
|
case "1":
|
|
58
|
-
this[e(
|
|
83
|
+
this[e(364)] = !1;
|
|
59
84
|
continue;
|
|
60
85
|
case "2":
|
|
61
|
-
this[e(
|
|
86
|
+
this[e(364)] = !1;
|
|
62
87
|
continue;
|
|
63
88
|
case "3":
|
|
64
|
-
this
|
|
89
|
+
this._started = !1;
|
|
65
90
|
continue;
|
|
66
91
|
case "4":
|
|
67
|
-
this[e(
|
|
92
|
+
this[e(382)] = !1;
|
|
68
93
|
continue;
|
|
69
94
|
case "5":
|
|
70
|
-
this.
|
|
95
|
+
this._port = t;
|
|
71
96
|
continue;
|
|
72
97
|
}
|
|
73
98
|
break;
|
|
74
99
|
}
|
|
75
100
|
}
|
|
76
|
-
async
|
|
101
|
+
async [f(362)]() {
|
|
77
102
|
const t = f;
|
|
78
|
-
this[t(
|
|
103
|
+
this[t(382)] || this[t(364)] || !this[t(369)] || (this[t(382)] = !0, this[t(369)].onmessage = (x) => {
|
|
79
104
|
var s, r;
|
|
80
105
|
const e = t;
|
|
81
106
|
try {
|
|
82
|
-
const a =
|
|
83
|
-
(s = this
|
|
107
|
+
const a = O[e(370)](x.data);
|
|
108
|
+
(s = this[e(375)]) == null || s.call(this, a);
|
|
84
109
|
} catch (a) {
|
|
85
|
-
const c = new Error(e(
|
|
110
|
+
const c = new Error(e(405) + a);
|
|
86
111
|
(r = this.onerror) == null || r.call(this, c);
|
|
87
112
|
}
|
|
88
|
-
}, this
|
|
113
|
+
}, this[t(369)].onmessageerror = (x) => {
|
|
89
114
|
var r;
|
|
90
|
-
const e = t, s = new Error(e(
|
|
91
|
-
(r = this[e(
|
|
92
|
-
}, 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)]());
|
|
93
118
|
}
|
|
94
|
-
async
|
|
95
|
-
const x =
|
|
96
|
-
return s();
|
|
97
|
-
}, YUWFy: function(s, r) {
|
|
119
|
+
async send(t) {
|
|
120
|
+
const x = f, e = { wFeCb: function(s, r) {
|
|
98
121
|
return s instanceof r;
|
|
99
|
-
},
|
|
122
|
+
}, vzpHB: function(s, r) {
|
|
123
|
+
return s(r);
|
|
124
|
+
}, cdjiy: function(s, r) {
|
|
100
125
|
return s(r);
|
|
101
126
|
} };
|
|
102
|
-
if (!(this[x(
|
|
127
|
+
if (!(this[x(364)] || !this[x(369)]))
|
|
103
128
|
return new Promise((s, r) => {
|
|
104
129
|
var c;
|
|
105
130
|
const a = x;
|
|
106
131
|
try {
|
|
107
|
-
this
|
|
108
|
-
} catch (
|
|
109
|
-
const
|
|
110
|
-
(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);
|
|
111
136
|
}
|
|
112
137
|
});
|
|
113
138
|
}
|
|
114
|
-
async [
|
|
139
|
+
async [f(395)]() {
|
|
115
140
|
var x;
|
|
116
|
-
const t =
|
|
117
|
-
this[t(
|
|
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));
|
|
118
143
|
}
|
|
119
|
-
get [
|
|
120
|
-
return this
|
|
144
|
+
get [f(408)]() {
|
|
145
|
+
return this[f(415)];
|
|
121
146
|
}
|
|
122
147
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
} };
|
|
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)]]);
|
|
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)]]);
|
|
143
154
|
}
|
|
144
155
|
}
|
|
145
|
-
class
|
|
146
|
-
constructor(t, x =
|
|
147
|
-
const e =
|
|
156
|
+
class q extends l {
|
|
157
|
+
constructor(t, x = z()) {
|
|
158
|
+
const e = f, s = { zjysK: function(r, a) {
|
|
148
159
|
return r === a;
|
|
149
|
-
},
|
|
150
|
-
return r(
|
|
160
|
+
}, JwJXP: function(r) {
|
|
161
|
+
return r();
|
|
151
162
|
} };
|
|
152
|
-
super(), this._endpoint = t, this
|
|
153
|
-
const a = e, c = {
|
|
154
|
-
return s[
|
|
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);
|
|
155
168
|
} };
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
i
|
|
169
|
+
J(this[a(392)], (o) => {
|
|
170
|
+
const i = a;
|
|
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));
|
|
159
172
|
});
|
|
160
173
|
});
|
|
161
174
|
}
|
|
162
|
-
async
|
|
175
|
+
async listen() {
|
|
163
176
|
return this._listen;
|
|
164
177
|
}
|
|
165
178
|
}
|
|
166
|
-
const
|
|
167
|
-
const n =
|
|
168
|
-
return [new l(t
|
|
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)];
|
|
169
182
|
};
|
|
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() {
|
|
173
|
-
return n;
|
|
174
|
-
}, w();
|
|
175
|
-
}
|
|
176
183
|
(function(n, t) {
|
|
177
184
|
const x = p, e = n();
|
|
178
185
|
for (; ; )
|
|
179
186
|
try {
|
|
180
|
-
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;
|
|
181
188
|
e.push(e.shift());
|
|
182
189
|
} catch {
|
|
183
190
|
e.push(e.shift());
|
|
184
191
|
}
|
|
185
|
-
})(
|
|
192
|
+
})(I, -478347 + -3 * -96269 + -1075 * -451);
|
|
186
193
|
function p(n, t) {
|
|
187
|
-
const x =
|
|
194
|
+
const x = I();
|
|
188
195
|
return p = function(e, s) {
|
|
189
|
-
return e = e - (
|
|
196
|
+
return e = e - (-4892 + -197 * -11 + 2968), x[e];
|
|
190
197
|
}, p(n, t);
|
|
191
198
|
}
|
|
192
|
-
const
|
|
193
|
-
const x = p, e = {
|
|
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" };
|
|
194
203
|
let s;
|
|
195
204
|
const { id: r, method: a, params: c } = t;
|
|
196
205
|
if (a) {
|
|
197
206
|
switch (a) {
|
|
198
|
-
case x(
|
|
199
|
-
s = await n[x(
|
|
207
|
+
case e[x(276)]:
|
|
208
|
+
s = await n._client[x(258)](c);
|
|
200
209
|
break;
|
|
201
|
-
case e[x(
|
|
202
|
-
s = await n[x(
|
|
210
|
+
case e[x(260)]:
|
|
211
|
+
s = await n[x(257)][x(285)](c);
|
|
203
212
|
break;
|
|
204
|
-
case
|
|
205
|
-
s = await n._client
|
|
213
|
+
case x(267):
|
|
214
|
+
s = await n._client.listResources(c);
|
|
206
215
|
break;
|
|
207
|
-
case
|
|
208
|
-
s = await n[x(
|
|
216
|
+
case e.xIbLF:
|
|
217
|
+
s = await n[x(257)][x(251)](c);
|
|
209
218
|
break;
|
|
210
|
-
case
|
|
211
|
-
s = await n._client
|
|
219
|
+
case x(282):
|
|
220
|
+
s = await n._client.readResource(c);
|
|
212
221
|
break;
|
|
213
|
-
case e[x(
|
|
214
|
-
s = await n[x(
|
|
222
|
+
case e[x(263)]:
|
|
223
|
+
s = await n[x(257)].subscribeResource(c);
|
|
215
224
|
break;
|
|
216
|
-
case e[x(
|
|
217
|
-
s = await n
|
|
225
|
+
case e[x(254)]:
|
|
226
|
+
s = await n[x(257)].unsubscribeResource(c);
|
|
218
227
|
break;
|
|
219
|
-
case x(
|
|
220
|
-
s = await n
|
|
228
|
+
case e[x(287)]:
|
|
229
|
+
s = await n[x(257)][x(279)](c);
|
|
221
230
|
break;
|
|
222
|
-
case
|
|
223
|
-
s = await n[x(
|
|
231
|
+
case "prompts/list":
|
|
232
|
+
s = await n[x(257)][x(280)](c);
|
|
224
233
|
break;
|
|
225
|
-
case e
|
|
226
|
-
s = await n
|
|
234
|
+
case e.EEwSb:
|
|
235
|
+
s = await n[x(257)][x(259)]();
|
|
227
236
|
break;
|
|
228
|
-
case e[x(
|
|
229
|
-
s = await n[x(
|
|
237
|
+
case e[x(252)]:
|
|
238
|
+
s = await n[x(257)][x(253)](c);
|
|
230
239
|
break;
|
|
231
|
-
case e[x(
|
|
232
|
-
s = await n._client[x(
|
|
240
|
+
case e[x(290)]:
|
|
241
|
+
s = await n._client[x(265)](c);
|
|
233
242
|
break;
|
|
234
243
|
}
|
|
235
|
-
return s
|
|
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;
|
|
236
245
|
}
|
|
237
|
-
},
|
|
238
|
-
const t = p, x = {
|
|
246
|
+
}, B = (n) => {
|
|
247
|
+
const t = p, x = { UbcJZ: function(s, r, a) {
|
|
239
248
|
return s(r, a);
|
|
240
|
-
} }, e = n[t(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
+
}
|
|
251
263
|
}
|
|
252
264
|
}
|
|
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)] };
|
|
271
|
+
try {
|
|
272
|
+
await n[a(271)](c);
|
|
273
|
+
} catch {
|
|
274
|
+
}
|
|
275
|
+
s[a(284)](t, r);
|
|
253
276
|
};
|
|
254
277
|
};
|
|
255
|
-
|
|
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();
|
|
283
|
+
}
|
|
284
|
+
var C = b;
|
|
256
285
|
(function(n, t) {
|
|
257
|
-
for (var x =
|
|
286
|
+
for (var x = b, e = n(); ; )
|
|
258
287
|
try {
|
|
259
|
-
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);
|
|
260
289
|
if (s === t) break;
|
|
261
290
|
e.push(e.shift());
|
|
262
291
|
} catch {
|
|
263
292
|
e.push(e.shift());
|
|
264
293
|
}
|
|
265
|
-
})(
|
|
266
|
-
function
|
|
267
|
-
var
|
|
268
|
-
return
|
|
269
|
-
|
|
270
|
-
}, g();
|
|
271
|
-
}
|
|
272
|
-
function d(n, t) {
|
|
273
|
-
var x = g();
|
|
274
|
-
return d = function(e, s) {
|
|
275
|
-
e = e - 100;
|
|
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);
|
|
276
299
|
var r = x[e];
|
|
277
300
|
return r;
|
|
278
|
-
},
|
|
301
|
+
}, b(n, t);
|
|
279
302
|
}
|
|
280
|
-
|
|
303
|
+
function w() {
|
|
304
|
+
var n = ["ozTZy", "2026719afumPv", "245283gIIfvg", "_endpoint", "66AmGFRf", "NUrkI", "kpaeS", "7404nyyBCe", "2488EwPGSE", "sessionId", "19382iSxgqP", "38365HVaadj", "12QfucWW", "106347UlJhXm", "_client", "7409080OKLnQg", "20cIGngf", "12971DXPsbO", "_startOrAuth"];
|
|
305
|
+
return w = function() {
|
|
306
|
+
return n;
|
|
307
|
+
}, w();
|
|
308
|
+
}
|
|
309
|
+
class V extends U {
|
|
281
310
|
constructor(t, x, e) {
|
|
282
|
-
var s =
|
|
283
|
-
|
|
311
|
+
var s = b, r = { kpaeS: function(a, c, o) {
|
|
312
|
+
return a(c, o);
|
|
313
|
+
} };
|
|
314
|
+
super(t, x), this[s(125)] = e, r[s(117)](F, this, e);
|
|
284
315
|
}
|
|
285
|
-
[
|
|
286
|
-
var t =
|
|
316
|
+
[C(110)]() {
|
|
317
|
+
var t = C, x = { NUrkI: function(e, s) {
|
|
287
318
|
return e(s);
|
|
288
319
|
} };
|
|
289
|
-
return x[t(
|
|
320
|
+
return x[t(116)](B, this), super[t(110)]();
|
|
290
321
|
}
|
|
291
|
-
get
|
|
292
|
-
var t =
|
|
293
|
-
return this[t(114)].searchParams.get(x[t(
|
|
322
|
+
get sessionId() {
|
|
323
|
+
var t = C, x = { ozTZy: t(120) };
|
|
324
|
+
return this[t(114)].searchParams.get(x[t(111)]);
|
|
294
325
|
}
|
|
295
326
|
}
|
|
296
|
-
var
|
|
327
|
+
var A = d;
|
|
297
328
|
(function(n, t) {
|
|
298
|
-
for (var x =
|
|
329
|
+
for (var x = d, e = n(); ; )
|
|
299
330
|
try {
|
|
300
|
-
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;
|
|
301
332
|
if (s === t) break;
|
|
302
333
|
e.push(e.shift());
|
|
303
334
|
} catch {
|
|
304
335
|
e.push(e.shift());
|
|
305
336
|
}
|
|
306
|
-
})(m, -
|
|
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);
|
|
314
|
-
}
|
|
337
|
+
})(m, 1053414 + -4817 * -239 + -1535 * 980);
|
|
315
338
|
function m() {
|
|
316
|
-
var n = ["
|
|
339
|
+
var n = ["136705pohpDC", "4FsndJo", "28jNguJQ", "2342961csporP", "51806004VzAdTV", "ENejo", "1nzFbEV", "_client", "10LYjkAz", "9855miNlny", "2360332QWKvZn", "832664mWZTbO", "_handleSseStream", "7328629udHvjc", "126SuKvXw"];
|
|
317
340
|
return m = function() {
|
|
318
341
|
return n;
|
|
319
342
|
}, m();
|
|
320
343
|
}
|
|
321
|
-
|
|
344
|
+
function d(n, t) {
|
|
345
|
+
var x = m();
|
|
346
|
+
return d = function(e, s) {
|
|
347
|
+
e = e - (447 + -44 * -1);
|
|
348
|
+
var r = x[e];
|
|
349
|
+
return r;
|
|
350
|
+
}, d(n, t);
|
|
351
|
+
}
|
|
352
|
+
class D extends N {
|
|
322
353
|
constructor(t, x, e) {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
[j(131)](t, x) {
|
|
326
|
-
var e = j, s = { uSxnE: function(r, a) {
|
|
327
|
-
return r(a);
|
|
354
|
+
var s = d, r = { ENejo: function(a, c, o) {
|
|
355
|
+
return a(c, o);
|
|
328
356
|
} };
|
|
329
|
-
|
|
357
|
+
super(t, x), this[s(495)] = e, r[s(493)](F, this, e);
|
|
358
|
+
}
|
|
359
|
+
[A(500)](t, x) {
|
|
360
|
+
B(this), super._handleSseStream(t, x);
|
|
330
361
|
}
|
|
331
362
|
}
|
|
332
|
-
const
|
|
363
|
+
const Q = g;
|
|
333
364
|
(function(n, t) {
|
|
334
|
-
const x =
|
|
365
|
+
const x = g, e = n();
|
|
335
366
|
for (; ; )
|
|
336
367
|
try {
|
|
337
|
-
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;
|
|
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
|
+
})(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);
|
|
348
379
|
}
|
|
349
|
-
const
|
|
350
|
-
const e =
|
|
351
|
-
|
|
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 });
|
|
352
385
|
} } });
|
|
353
|
-
function
|
|
354
|
-
const n = ["
|
|
355
|
-
return
|
|
386
|
+
function y() {
|
|
387
|
+
const n = ["10aFKAvH", "1632360aeNKje", "Bearer ", "12wpzBCB", "2297516BDZPEa", "378561EjWPGr", "485681thirRS", "3352345TLwAVz", "rYWUh", "234601LtFMpu", "authorization", "set", "1900143qjBhtI", "headers"];
|
|
388
|
+
return y = function() {
|
|
356
389
|
return n;
|
|
357
|
-
},
|
|
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);
|
|
390
|
+
}, y();
|
|
364
391
|
}
|
|
365
|
-
function
|
|
366
|
-
const n = ["
|
|
367
|
-
return
|
|
392
|
+
function v() {
|
|
393
|
+
const n = ["4SkJKJL", "9zKKMwH", "12IATTGu", "Bearer ", "2328136tnNXGw", "13111439kofmQB", "7028DxzoFj", "12aHQLzS", "randomUUID", "10ZcCFQv", "21194277dSsQRo", "1225892GmoNMD", "2604453DQpZXf", "1840aFNRvJ", "140854VsCYIF"];
|
|
394
|
+
return v = function() {
|
|
368
395
|
return n;
|
|
369
|
-
},
|
|
396
|
+
}, v();
|
|
370
397
|
}
|
|
371
|
-
|
|
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;
|
|
372
405
|
(function(n, t) {
|
|
373
|
-
const x =
|
|
406
|
+
const x = k, e = n();
|
|
374
407
|
for (; ; )
|
|
375
408
|
try {
|
|
376
|
-
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;
|
|
377
410
|
e.push(e.shift());
|
|
378
411
|
} catch {
|
|
379
412
|
e.push(e.shift());
|
|
380
413
|
}
|
|
381
|
-
})(
|
|
382
|
-
const
|
|
414
|
+
})(v, 341649 + 12867 * 29 + 254587);
|
|
415
|
+
const W = (n, t = crypto[E(447)]()) => ({ requestInit: { headers: { Authorization: E(442) + n, "stream-session-id": t } } });
|
|
383
416
|
(function(n, t) {
|
|
384
|
-
const x =
|
|
417
|
+
const x = _, e = n();
|
|
385
418
|
for (; ; )
|
|
386
419
|
try {
|
|
387
|
-
if (parseInt(x(
|
|
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;
|
|
388
421
|
e.push(e.shift());
|
|
389
422
|
} catch {
|
|
390
423
|
e.push(e.shift());
|
|
391
424
|
}
|
|
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() {
|
|
425
|
+
})(S, 21 * 10856 + -1289478 + 1872590);
|
|
426
|
+
function S() {
|
|
427
|
+
const n = ["OFZDO", "3078402bfKTDc", "aPrQB", "165rMVxea", "sessionId", "UkwnV", "1.0.0", "2730562IApyhv", "8251971BQcDYN", "connect", "mcp-proxy-client", "1382582OHWLMY", "181014nWtnBj", "40YGaUQY", "1439628aYTeUJ", "2957922NBEiGW"];
|
|
428
|
+
return S = function() {
|
|
402
429
|
return n;
|
|
403
|
-
},
|
|
430
|
+
}, S();
|
|
431
|
+
}
|
|
432
|
+
function _(n, t) {
|
|
433
|
+
const x = S();
|
|
434
|
+
return _ = function(e, s) {
|
|
435
|
+
return e = e - (-6477 + 43 * 157), x[e];
|
|
436
|
+
}, _(n, t);
|
|
404
437
|
}
|
|
405
|
-
const
|
|
406
|
-
const t =
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
return await new
|
|
410
|
-
},
|
|
411
|
-
const t =
|
|
412
|
-
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 };
|
|
413
446
|
};
|
|
414
447
|
(function(n, t) {
|
|
415
|
-
for (var x =
|
|
448
|
+
for (var x = M, e = n(); ; )
|
|
416
449
|
try {
|
|
417
|
-
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);
|
|
418
451
|
if (s === t) break;
|
|
419
452
|
e.push(e.shift());
|
|
420
453
|
} catch {
|
|
421
454
|
e.push(e.shift());
|
|
422
455
|
}
|
|
423
|
-
})(
|
|
424
|
-
function
|
|
425
|
-
var n = ["
|
|
426
|
-
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() {
|
|
427
460
|
return n;
|
|
428
|
-
},
|
|
461
|
+
}, P();
|
|
429
462
|
}
|
|
430
|
-
function
|
|
431
|
-
var x =
|
|
432
|
-
return
|
|
433
|
-
e = e -
|
|
463
|
+
function M(n, t) {
|
|
464
|
+
var x = P();
|
|
465
|
+
return M = function(e, s) {
|
|
466
|
+
e = e - 258;
|
|
434
467
|
var r = x[e];
|
|
435
468
|
return r;
|
|
436
|
-
},
|
|
469
|
+
}, M(n, t);
|
|
437
470
|
}
|
|
438
471
|
export {
|
|
439
|
-
|
|
440
|
-
|
|
472
|
+
G as MessageChannelClientTransport,
|
|
473
|
+
q as MessageChannelServerTransport,
|
|
441
474
|
l as MessageChannelTransport,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
|
449
482
|
};
|