@opentiny/next 0.0.1 → 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/client.js CHANGED
@@ -1,369 +1,449 @@
1
- import { JSONRPCMessageSchema as L } from "@modelcontextprotocol/sdk/types.js";
2
- import { McpServer as G } from "@modelcontextprotocol/sdk/server/mcp.js";
3
- import { Client as E } from "@modelcontextprotocol/sdk/client/index.js";
4
- import { z as R } from "zod";
5
- import { SSEClientTransport as D } from "@modelcontextprotocol/sdk/client/sse.js";
6
- import { StreamableHTTPClientTransport as Z } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
7
- function d(r, t) {
8
- const x = l();
9
- return d = function(e, n) {
10
- return e = e - (5798 + -1555 * -2 + -8483), x[e];
11
- }, d(r, t);
12
- }
13
- const f = d;
14
- (function(r, t) {
15
- const x = d, e = r();
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
+ (function(n, t) {
7
+ const x = f, e = n();
16
8
  for (; ; )
17
9
  try {
18
- if (parseInt(x(457)) / 1 + -parseInt(x(462)) / 2 * (-parseInt(x(435)) / 3) + -parseInt(x(446)) / 4 + parseInt(x(443)) / 5 * (-parseInt(x(455)) / 6) + -parseInt(x(466)) / 7 * (-parseInt(x(431)) / 8) + parseInt(x(430)) / 9 * (-parseInt(x(463)) / 10) + parseInt(x(427)) / 11 * (-parseInt(x(450)) / 12) === t) break;
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;
19
11
  e.push(e.shift());
20
12
  } catch {
21
13
  e.push(e.shift());
22
14
  }
23
- })(l, 700627 + -132 * 2359);
24
- function l() {
25
- const r = ["4764UdwdOM", "KSmUX", "createChannelPair", "lprlU", "onclose", "2479686gjPOzS", "onmessage", "493467GsCYxh", "randomUUID", "1.0.0", "mcp-client", "eNzLV", "2awWUUf", "123690KoCruP", "port1", "KcgGf", "7490XpuFCp", "close", "send", "121kxxemZ", "parse", "_port", "531rMpYcy", "5672GJAyCg", "mcp-server", "RQiAv", "connect", "1917633HBFRij", "Cannot send on a closed MessageChannel Transport", "GESyW", "MessageChannel Transport already started! If using Client or Server class, note that connect() calls start() automatically.", "_started", "stringify", "onerror", "sessionId", "5KgRBLO", "Failed to parse message: ", "_sessionId", "1418600zQvqgX", "_closed", "start", "MessagePort error: "];
26
- return l = function() {
27
- return r;
28
- }, l();
29
- }
30
- class h {
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) {
22
+ return x !== e;
23
+ }, IhDbz: function(x, e) {
24
+ return x !== e;
25
+ }, swBtO: function(x, e) {
26
+ return x(e);
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
+ }, K = (n, t, x) => {
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);
47
+ };
48
+ class l {
31
49
  constructor(t, x) {
32
- const e = d, n = { GESyW: function(a, s) {
33
- return a || s;
34
- } };
35
- if (this[e(439)] = !1, this._closed = !1, n[e(437)](!t, !x)) throw new Error("MessagePort and sessionId are required");
36
- this[e(429)] = t, this[e(445)] = x, this[e(429)][e(456)] = (a) => {
37
- var c, o;
38
- const s = e;
39
- try {
40
- const i = L[s(428)](a.data);
41
- (c = this[s(456)]) == null || c.call(this, i);
42
- } catch (i) {
43
- const b = new Error(s(444) + i);
44
- (o = this[s(441)]) == null || o.call(this, b);
50
+ const e = f, s = { Eolxy: e(382) }, r = s.Eolxy[e(400)]("|");
51
+ let a = -28 * 54 + -5195 * -1 + 29 * -127;
52
+ for (; ; ) {
53
+ switch (r[a++]) {
54
+ case "0":
55
+ this[e(370)] = !1;
56
+ continue;
57
+ case "1":
58
+ this[e(384)] = t;
59
+ continue;
60
+ case "2":
61
+ this[e(419)] = x;
62
+ continue;
63
+ case "3":
64
+ this[e(403)] = !1;
65
+ continue;
66
+ case "4":
67
+ this[e(403)] = !1;
68
+ continue;
69
+ case "5":
70
+ this._started = !1;
71
+ continue;
45
72
  }
46
- }, this._port.onmessageerror = (a) => {
47
- var o;
48
- const s = e, c = new Error(s(449) + JSON[s(440)](a));
49
- (o = this[s(441)]) == null || o.call(this, c);
50
- };
51
- }
52
- async [f(448)]() {
53
- const t = f, x = { KcgGf: t(438), lprlU: "Cannot start a closed MessageChannel Transport" };
54
- if (this[t(439)]) throw new Error(x[t(465)]);
55
- if (this[t(447)]) throw new Error(x[t(453)]);
56
- this[t(439)] = !0, this._port[t(448)]();
73
+ break;
74
+ }
57
75
  }
58
- async [f(426)](t) {
59
- const x = f, e = { KSmUX: function(n, a) {
60
- return n(a);
61
- }, RQiAv: x(436) };
62
- if (this[x(447)]) throw new Error(e[x(433)]);
63
- return new Promise((n, a) => {
64
- var c;
65
- const s = x;
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;
66
81
  try {
67
- this[s(429)].postMessage(t), n();
68
- } catch (o) {
69
- const i = o instanceof Error ? o : new Error(String(o));
70
- (c = this[s(441)]) == null || c.call(this, i), e[s(451)](a, i);
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);
71
87
  }
72
- });
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)]());
73
93
  }
74
- async [f(425)]() {
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);
101
+ } };
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
+ });
113
+ }
114
+ async [u(366)]() {
75
115
  var x;
76
- const t = f;
77
- this[t(447)] || (this[t(447)] = !0, this._port[t(425)](), (x = this[t(454)]) == null || x.call(this));
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));
78
118
  }
79
- get [f(442)]() {
119
+ get [u(374)]() {
80
120
  return this._sessionId;
81
121
  }
82
- static [f(452)]() {
83
- const t = f, x = new MessageChannel(), e = crypto[t(458)]();
84
- return [new h(x[t(464)], e), new h(x.port2, e)];
122
+ }
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
+ } };
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)]]);
85
143
  }
86
144
  }
87
- const Y = (r = () => {
88
- }) => {
89
- const t = f, x = { LdcbZ: t(432), RWaMs: t(460), eNzLV: function(o, i, b) {
90
- return o(i, b);
91
- } }, e = { prompts: {}, resources: {}, tools: {}, logging: {} }, n = new G({ name: x.LdcbZ, version: "1.0.0" }, { capabilities: e }), a = new E({ name: x.RWaMs, version: t(459) }), [s, c] = h[t(452)]();
92
- return x[t(461)](r, n, R), n[t(434)](c), a[t(434)](s), { server: n, client: a };
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);
151
+ } };
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);
155
+ } };
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());
159
+ });
160
+ });
161
+ }
162
+ async [u(405)]() {
163
+ return this._listen;
164
+ }
165
+ }
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)];
93
169
  };
94
- function m() {
95
- const r = ["dZsKq", "complete", "1502725XnlLTC", "1101600usBKvN", "resources/read", "2.0", "resources/list", "listPrompts", "MwbTE", "_client", "resources/templates/list", "1633935QzcGvG", "2724148UFeanL", "12eZtXdU", "zKeUL", "DumHR", "785422kiepnW", "call", "resources/unsubscribe", "10953ViJeCs", "ping", "unsubscribeResource", "getPrompt", "TrrDq", "setLoggingLevel", "onmessage", "iEjtz", "1482502TeKCuw", "16280BsGJPx", "logging/setLevel", "prompts/get", "zjAvw", "tools/list", "SADBi", "ubZKy", "yliVD", "resources/subscribe", "subscribeResource"];
96
- return m = function() {
97
- return r;
98
- }, m();
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();
99
175
  }
100
- (function(r, t) {
101
- const x = p, e = r();
176
+ (function(n, t) {
177
+ const x = p, e = n();
102
178
  for (; ; )
103
179
  try {
104
- if (-parseInt(x(397)) / 1 + parseInt(x(408)) / 2 + -parseInt(x(422)) / 3 + -parseInt(x(393)) / 4 + -parseInt(x(392)) / 5 + parseInt(x(394)) / 6 * (-parseInt(x(421)) / 7) + parseInt(x(409)) / 8 * (parseInt(x(400)) / 9) === t) break;
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;
105
181
  e.push(e.shift());
106
182
  } catch {
107
183
  e.push(e.shift());
108
184
  }
109
- })(m, 628050);
110
- const B = async (r, t) => {
111
- const x = p, e = { SADBi: x(413), DumHR: x(391), ubZKy: x(385), zKeUL: x(417), zjAvw: x(399), TrrDq: x(411), yliVD: "completion/complete", xDswn: x(410), dZsKq: x(386) };
112
- let n;
113
- const { id: a, method: s, params: c } = t;
114
- switch (s) {
115
- case e[x(414)]:
116
- n = await r[x(390)].listTools(c);
117
- break;
118
- case "tools/call":
119
- n = await r._client.callTool(c);
120
- break;
121
- case x(387):
122
- n = await r[x(390)].listResources(c);
123
- break;
124
- case e[x(396)]:
125
- n = await r[x(390)].listResourceTemplates(c);
126
- break;
127
- case e[x(415)]:
128
- n = await r[x(390)].readResource(c);
129
- break;
130
- case e[x(395)]:
131
- n = await r[x(390)][x(418)](c);
132
- break;
133
- case e[x(412)]:
134
- n = await r._client[x(402)](c);
135
- break;
136
- case e[x(404)]:
137
- n = await r[x(390)][x(403)](c);
138
- break;
139
- case "prompts/list":
140
- n = await r[x(390)][x(388)](c);
141
- break;
142
- case x(401):
143
- n = await r[x(390)][x(401)]();
144
- break;
145
- case e[x(416)]:
146
- n = await r._client[x(420)](c);
147
- break;
148
- case e.xDswn:
149
- n = await r[x(390)][x(405)](c);
150
- break;
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);
191
+ }
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;
196
+ if (a) {
197
+ switch (a) {
198
+ case x(142):
199
+ s = await n[x(136)][x(133)](c);
200
+ break;
201
+ case e[x(118)]:
202
+ s = await n[x(136)][x(127)](c);
203
+ break;
204
+ case e.bNLyR:
205
+ s = await n._client[x(138)](c);
206
+ break;
207
+ case x(144):
208
+ s = await n[x(136)][x(129)](c);
209
+ break;
210
+ case e[x(113)]:
211
+ s = await n._client[x(149)](c);
212
+ break;
213
+ case e[x(128)]:
214
+ s = await n[x(136)][x(114)](c);
215
+ break;
216
+ case e[x(146)]:
217
+ s = await n._client[x(137)](c);
218
+ break;
219
+ case x(111):
220
+ s = await n._client[x(140)](c);
221
+ break;
222
+ case e[x(123)]:
223
+ s = await n[x(136)][x(112)](c);
224
+ break;
225
+ case e[x(139)]:
226
+ s = await n._client[x(147)]();
227
+ break;
228
+ case e[x(148)]:
229
+ s = await n[x(136)][x(125)](c);
230
+ break;
231
+ case e[x(107)]:
232
+ s = await n._client[x(110)](c);
233
+ break;
234
+ }
235
+ return s && await n[x(131)]({ result: s, jsonrpc: e[x(117)], id: r }), s;
151
236
  }
152
- return n && await r.send({ result: n, jsonrpc: e[x(419)], id: a }), n;
153
- }, W = (r) => {
154
- const t = p, x = { MwbTE: function(n, a, s) {
155
- return n(a, s);
156
- }, iEjtz: function(n, a) {
157
- return n === a;
158
- } }, e = r[t(406)];
159
- r[t(406)] = async (n) => {
160
- const a = t;
161
- if (r[a(390)]) {
162
- const s = await x[a(389)](B, r, n);
163
- x[a(407)](s, void 0) && e && e[a(398)](r, n);
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
+ }
164
252
  }
165
253
  };
166
254
  };
167
- function p(r, t) {
168
- const x = m();
169
- return p = function(e, n) {
170
- return e = e - (1 * 6661 + -1044 + -654 * 8), x[e];
171
- }, p(r, t);
172
- }
173
- var I = v;
174
- (function(r, t) {
175
- for (var x = v, e = r(); ; )
255
+ var h = d;
256
+ (function(n, t) {
257
+ for (var x = d, e = n(); ; )
176
258
  try {
177
- var n = -parseInt(x(263)) / 1 * (parseInt(x(254)) / 2) + -parseInt(x(250)) / 3 * (-parseInt(x(258)) / 4) + parseInt(x(256)) / 5 + -parseInt(x(252)) / 6 + -parseInt(x(251)) / 7 + -parseInt(x(259)) / 8 + parseInt(x(260)) / 9 * (parseInt(x(248)) / 10);
178
- if (n === t) break;
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;
179
261
  e.push(e.shift());
180
262
  } catch {
181
263
  e.push(e.shift());
182
264
  }
183
- })(w, 569667);
184
- function w() {
185
- var r = ["9908RAWmuZ", "806928raUIFf", "188919HJdJIi", "get", "sessionId", "8733lkrysk", "730zOVKoE", "searchParams", "81XCPGEs", "6221306QPNCKR", "354804MqDtGl", "_endpoint", "50nEwqBE", "_startOrAuth", "1187640OJeJbF", "WmZgm"];
186
- return w = function() {
187
- return r;
188
- }, w();
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() {
269
+ return n;
270
+ }, g();
189
271
  }
190
- function v(r, t) {
191
- var x = w();
192
- return v = function(e, n) {
193
- e = e - (-2367 + -2 * 1273 + 5161);
194
- var a = x[e];
195
- return a;
196
- }, v(r, t);
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);
197
279
  }
198
- class X extends D {
280
+ class G extends F {
199
281
  constructor(t, x, e) {
200
- super(t, x), this._client = e;
282
+ var s = d;
283
+ super(t, x), this[s(109)] = e;
201
284
  }
202
- [I(255)]() {
203
- var t = I, x = { KlprW: function(e, n) {
204
- return e(n);
285
+ [h(113)]() {
286
+ var t = h, x = { cElFJ: function(e, s) {
287
+ return e(s);
205
288
  } };
206
- return x.KlprW(W, this), super[t(255)]();
289
+ return x[t(101)](U, this), super._startOrAuth();
207
290
  }
208
- get [I(262)]() {
209
- var t = I, x = { WmZgm: t(262) };
210
- return this[t(253)][t(249)][t(261)](x[t(257)]);
291
+ get [h(106)]() {
292
+ var t = h, x = { RUmce: "sessionId" };
293
+ return this[t(114)].searchParams.get(x[t(112)]);
211
294
  }
212
295
  }
213
- var K = u;
214
- (function(r, t) {
215
- for (var x = u, e = r(); ; )
296
+ var j = y;
297
+ (function(n, t) {
298
+ for (var x = y, e = n(); ; )
216
299
  try {
217
- var n = parseInt(x(230)) / 1 + -parseInt(x(223)) / 2 + parseInt(x(219)) / 3 * (-parseInt(x(227)) / 4) + -parseInt(x(222)) / 5 + parseInt(x(220)) / 6 * (parseInt(x(225)) / 7) + -parseInt(x(228)) / 8 * (parseInt(x(221)) / 9) + parseInt(x(229)) / 10 * (parseInt(x(226)) / 11);
218
- if (n === t) break;
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;
219
302
  e.push(e.shift());
220
303
  } catch {
221
304
  e.push(e.shift());
222
305
  }
223
- })(g, -37 * 31790 + -183607 + -4462 * -479);
224
- function g() {
225
- var r = ["_handleSseStream", "7959EzTlkS", "30437cYBhBN", "4VMrUav", "3332944bXrvSc", "15710QHWiVc", "2372msSGdK", "_client", "3025299GtGxgI", "5028DRLNzc", "18ZTuYsY", "6086715mGnaWO", "2931324hbUmdd"];
226
- return g = function() {
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];
227
312
  return r;
228
- }, g();
313
+ }, y(n, t);
229
314
  }
230
- function u(r, t) {
231
- var x = g();
232
- return u = function(e, n) {
233
- e = e - (9830 + 653 * 3 + -11570);
234
- var a = x[e];
235
- return a;
236
- }, u(r, 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();
237
320
  }
238
- class q extends Z {
321
+ class H extends T {
239
322
  constructor(t, x, e) {
240
- var n = u;
241
- super(t, x), this[n(231)] = e;
323
+ super(t, x), this._client = e;
242
324
  }
243
- [K(224)](t, x) {
244
- var e = K, n = { LmWtX: function(a, s) {
245
- return a(s);
325
+ [j(131)](t, x) {
326
+ var e = j, s = { uSxnE: function(r, a) {
327
+ return r(a);
246
328
  } };
247
- n.LmWtX(W, this), super[e(224)](t, x);
329
+ s[e(130)](U, this), super[e(131)](t, x);
248
330
  }
249
331
  }
250
- function y(r, t) {
251
- const x = S();
252
- return y = function(e, n) {
253
- return e = e - (-895 * 6 + -3838 + -4658 * -2), x[e];
254
- }, y(r, t);
255
- }
256
- const M = y;
257
- (function(r, t) {
258
- const x = y, e = r();
332
+ const z = v;
333
+ (function(n, t) {
334
+ const x = v, e = n();
259
335
  for (; ; )
260
336
  try {
261
- if (-parseInt(x(122)) / 1 * (-parseInt(x(120)) / 2) + parseInt(x(116)) / 3 * (-parseInt(x(109)) / 4) + parseInt(x(108)) / 5 * (-parseInt(x(114)) / 6) + -parseInt(x(123)) / 7 * (parseInt(x(124)) / 8) + parseInt(x(113)) / 9 * (parseInt(x(118)) / 10) + parseInt(x(112)) / 11 + -parseInt(x(121)) / 12 * (-parseInt(x(119)) / 13) === t) break;
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;
262
338
  e.push(e.shift());
263
339
  } catch {
264
340
  e.push(e.shift());
265
341
  }
266
- })(S, -2 * 48047 + 222569 + -12914);
267
- const O = (r) => ({ requestInit: { headers: { Authorization: M(111) + r } }, eventSourceInit: { async fetch(t, x) {
268
- const e = M, n = { zIsjM: function(s, c, o) {
269
- return s(c, o);
270
- } }, a = new Headers((x == null ? void 0 : x[e(110)]) || {});
271
- return a[e(115)](e(117), e(111) + r), n.zIsjM(fetch, t, { ...x, headers: a });
342
+ })(k, -167123 * -2 + 529 * 277 + 2 * 254510);
343
+ function v(n, t) {
344
+ const x = k();
345
+ return v = function(e, s) {
346
+ return e = e - (53 * 28 + 2885 + 790 * -5), x[e];
347
+ }, v(n, t);
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 });
272
352
  } } });
273
- function S() {
274
- const r = ["76068npKzhx", "89474pKnAYj", "7JjBPYg", "750776iHWMKr", "50QfZiHM", "524764AqqOcM", "headers", "Bearer ", "731863CXhTWI", "3573YaybDZ", "95574WpuBnn", "set", "3SxnlyG", "authorization", "450guMjtf", "481IaDsSq", "4dIjvWv"];
275
- return S = function() {
276
- return r;
277
- }, S();
353
+ function k() {
354
+ const n = ["12kzfKfv", "8875816OnNJCw", "6189743tBuokP", "Bearer ", "52bHgQHR", "45xLJrGX", "169210jtomYW", "headers", "51384iewBdv", "556180Zyrvly", "authorization", "set", "2zfuGcv", "1386enrUML", "1263466KCXJIk", "1427883vgZiAK"];
355
+ return k = function() {
356
+ return n;
357
+ }, k();
278
358
  }
279
- function T() {
280
- const r = ["6477370xyodVl", "Bearer ", "875669QtjGqe", "3MomDlc", "33qYDBOp", "232622BqWdTx", "3205265WNYSNo", "18sxptgk", "1592104SLKGtW", "randomUUID", "1511994JJGCEs", "1981652wBzRVJ", "15AdTEbV"];
281
- return T = function() {
282
- return r;
283
- }, T();
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();
284
370
  }
285
- const P = k;
286
- (function(r, t) {
287
- const x = k, e = r();
371
+ const M = S;
372
+ (function(n, t) {
373
+ const x = S, e = n();
288
374
  for (; ; )
289
375
  try {
290
- if (-parseInt(x(409)) / 1 + -parseInt(x(412)) / 2 * (-parseInt(x(410)) / 3) + parseInt(x(418)) / 4 * (-parseInt(x(406)) / 5) + parseInt(x(417)) / 6 + parseInt(x(413)) / 7 + parseInt(x(415)) / 8 * (parseInt(x(414)) / 9) + -parseInt(x(407)) / 10 * (-parseInt(x(411)) / 11) === t) break;
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;
291
377
  e.push(e.shift());
292
378
  } catch {
293
379
  e.push(e.shift());
294
380
  }
295
- })(T, 805534);
296
- function k(r, t) {
297
- const x = T();
298
- return k = function(e, n) {
299
- return e = e - (-4997 + 25 * 384 + -4197), x[e];
300
- }, k(r, t);
301
- }
302
- const j = (r, t = crypto[P(416)]()) => ({ requestInit: { headers: { Authorization: P(408) + r, "streamable-session-id": t } } });
303
- (function(r, t) {
304
- const x = _, e = r();
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 } } });
383
+ (function(n, t) {
384
+ const x = b, e = n();
305
385
  for (; ; )
306
386
  try {
307
- if (parseInt(x(493)) / 1 + -parseInt(x(494)) / 2 + -parseInt(x(496)) / 3 * (parseInt(x(497)) / 4) + -parseInt(x(502)) / 5 + parseInt(x(490)) / 6 + parseInt(x(491)) / 7 * (-parseInt(x(498)) / 8) + parseInt(x(492)) / 9 === t) break;
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;
308
388
  e.push(e.shift());
309
389
  } catch {
310
390
  e.push(e.shift());
311
391
  }
312
- })(C, -1327556 * 1 + -1891652 + 4168627);
313
- function _(r, t) {
314
- const x = C();
315
- return _ = function(e, n) {
316
- return e = e - (11781 + 23 * -491), x[e];
317
- }, _(r, t);
318
- }
319
- const Q = async ({ client: r, url: t, token: x }) => {
320
- const e = _, n = { ILXUm: e(499), GdOxH: "1.0.0" }, a = new X(new URL(t), O(x), r);
321
- return await new E({ name: n[e(501)], version: n[e(489)] })[e(500)](a), { transport: a, sessionId: a[e(495)] };
322
- }, $ = async ({ client: r, url: t, token: x }) => {
323
- const e = _, n = { pxTtH: function(o, i, b) {
324
- return o(i, b);
325
- } }, a = crypto.randomUUID(), s = new q(new URL(t), n[e(488)](j, x, a), r);
326
- return await new E({ name: "mcp-client", version: "1.0.0" })[e(500)](s), { transport: s, sessionId: a };
327
- };
328
- function C() {
329
- const r = ["20098845pduEUI", "1266070BIEvev", "2960640aWFIcr", "sessionId", "431259IFIole", "4upzvKF", "1288uqVgNC", "mcp-client", "connect", "ILXUm", "1398350mvgIbg", "pxTtH", "GdOxH", "933036cvTSLX", "34853wcPshd"];
330
- return C = function() {
331
- return r;
332
- }, C();
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);
333
398
  }
334
- function z(r, t) {
335
- var x = U();
336
- return z = function(e, n) {
337
- e = e - (-1769 * -4 + -3075 + -3840);
338
- var a = x[e];
339
- return a;
340
- }, z(r, t);
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() {
402
+ return n;
403
+ }, L();
341
404
  }
342
- (function(r, t) {
343
- for (var x = z, e = r(); ; )
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
+ };
414
+ (function(n, t) {
415
+ for (var x = B, e = n(); ; )
344
416
  try {
345
- var n = -parseInt(x(170)) / 1 * (parseInt(x(166)) / 2) + parseInt(x(168)) / 3 + -parseInt(x(167)) / 4 + parseInt(x(164)) / 5 * (-parseInt(x(165)) / 6) + parseInt(x(163)) / 7 * (-parseInt(x(161)) / 8) + parseInt(x(162)) / 9 + -parseInt(x(169)) / 10 * (-parseInt(x(171)) / 11);
346
- if (n === t) break;
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;
347
419
  e.push(e.shift());
348
420
  } catch {
349
421
  e.push(e.shift());
350
422
  }
351
- })(U, -129 * -3543 + 953 * 911 + -695742);
352
- function U() {
353
- var r = ["11ZXCyxZ", "32PZjlTj", "7631388OMSauB", "298375hCFbXJ", "937865gsxXxi", "36TQWUTK", "7508PIVzcw", "4573908NoOuyZ", "2353410hAUrVo", "19057510yZouFz", "125kHwzXL"];
354
- return U = function() {
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() {
427
+ return n;
428
+ }, R();
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];
355
435
  return r;
356
- }, U();
436
+ }, B(n, t);
357
437
  }
358
438
  export {
359
- h as MessageChannelTransport,
360
- X as ProxySSEClientTransport,
361
- q as ProxyStreamableHTTPClientTransport,
362
- Y as createClientServerPair,
363
- Q as createSseProxy,
364
- $ as createStreamableProxy,
365
- B as forward,
366
- W as fowardMessage,
367
- O as sseOptions,
368
- j as streamableOptions
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
369
449
  };