@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.
Files changed (3) hide show
  1. package/client.js +301 -268
  2. package/package.json +4 -3
  3. package/server.js +236 -213
package/client.js CHANGED
@@ -1,449 +1,482 @@
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;
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 = f, e = n();
7
+ const x = u, e = n();
8
8
  for (; ; )
9
9
  try {
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;
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
- })(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) {
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
- }, wZZqC: e(418), Ixnur: function(r, a) {
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
- }, 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) {
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
- }, HvuaL: x(421), CBUTj: function(s, r) {
60
+ }, AlAfb: "addEventListener", ITMfs: function(s, r) {
42
61
  return s === r;
43
- }, sldHw: "function", BfokF: x(415), djaJW: function(s, r) {
62
+ }, XbCwl: function(s, r) {
44
63
  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);
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 = f, s = { Eolxy: e(382) }, r = s.Eolxy[e(400)]("|");
51
- let a = -28 * 54 + -5195 * -1 + 29 * -127;
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[e(370)] = !1;
80
+ this._sessionId = x;
56
81
  continue;
57
82
  case "1":
58
- this[e(384)] = t;
83
+ this[e(364)] = !1;
59
84
  continue;
60
85
  case "2":
61
- this[e(419)] = x;
86
+ this[e(364)] = !1;
62
87
  continue;
63
88
  case "3":
64
- this[e(403)] = !1;
89
+ this._started = !1;
65
90
  continue;
66
91
  case "4":
67
- this[e(403)] = !1;
92
+ this[e(382)] = !1;
68
93
  continue;
69
94
  case "5":
70
- this._started = !1;
95
+ this._port = t;
71
96
  continue;
72
97
  }
73
98
  break;
74
99
  }
75
100
  }
76
- async start() {
101
+ async [f(362)]() {
77
102
  const t = f;
78
- this[t(370)] || this[t(403)] || !this[t(384)] || (this[t(370)] = !0, this[t(384)].onmessage = (x) => {
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 = E[e(393)](x[e(365)]);
83
- (s = this.onmessage) == null || s.call(this, a);
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(406) + a);
110
+ const c = new Error(e(405) + a);
86
111
  (r = this.onerror) == null || r.call(this, c);
87
112
  }
88
- }, this._port[t(392)] = (x) => {
113
+ }, this[t(369)].onmessageerror = (x) => {
89
114
  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)]());
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 [u(376)](t) {
95
- const x = u, e = { ibylp: function(s) {
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
- }, YiYoE: function(s, r) {
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(403)] || !this[x(384)]))
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._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);
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 [u(366)]() {
139
+ async [f(395)]() {
115
140
  var x;
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));
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 [u(374)]() {
120
- return this._sessionId;
144
+ get [f(408)]() {
145
+ return this[f(415)];
121
146
  }
122
147
  }
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)]]);
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 Y extends l {
146
- constructor(t, x = P()) {
147
- const e = u, s = { JmWeq: function(r, a) {
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
- }, nOEGD: function(r, a, c) {
150
- return r(a, c);
160
+ }, JwJXP: function(r) {
161
+ return r();
151
162
  } };
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);
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
- 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());
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 [u(405)]() {
175
+ async listen() {
163
176
  return this._listen;
164
177
  }
165
178
  }
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)];
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(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;
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
- })(w, -402528 + -58573 * -11);
192
+ })(I, -478347 + -3 * -96269 + -1075 * -451);
186
193
  function p(n, t) {
187
- const x = w();
194
+ const x = I();
188
195
  return p = function(e, s) {
189
- return e = e - (7 * 431 + -2082 + -828), x[e];
196
+ return e = e - (-4892 + -197 * -11 + 2968), x[e];
190
197
  }, p(n, t);
191
198
  }
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" };
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(142):
199
- s = await n[x(136)][x(133)](c);
207
+ case e[x(276)]:
208
+ s = await n._client[x(258)](c);
200
209
  break;
201
- case e[x(118)]:
202
- s = await n[x(136)][x(127)](c);
210
+ case e[x(260)]:
211
+ s = await n[x(257)][x(285)](c);
203
212
  break;
204
- case e.bNLyR:
205
- s = await n._client[x(138)](c);
213
+ case x(267):
214
+ s = await n._client.listResources(c);
206
215
  break;
207
- case x(144):
208
- s = await n[x(136)][x(129)](c);
216
+ case e.xIbLF:
217
+ s = await n[x(257)][x(251)](c);
209
218
  break;
210
- case e[x(113)]:
211
- s = await n._client[x(149)](c);
219
+ case x(282):
220
+ s = await n._client.readResource(c);
212
221
  break;
213
- case e[x(128)]:
214
- s = await n[x(136)][x(114)](c);
222
+ case e[x(263)]:
223
+ s = await n[x(257)].subscribeResource(c);
215
224
  break;
216
- case e[x(146)]:
217
- s = await n._client[x(137)](c);
225
+ case e[x(254)]:
226
+ s = await n[x(257)].unsubscribeResource(c);
218
227
  break;
219
- case x(111):
220
- s = await n._client[x(140)](c);
228
+ case e[x(287)]:
229
+ s = await n[x(257)][x(279)](c);
221
230
  break;
222
- case e[x(123)]:
223
- s = await n[x(136)][x(112)](c);
231
+ case "prompts/list":
232
+ s = await n[x(257)][x(280)](c);
224
233
  break;
225
- case e[x(139)]:
226
- s = await n._client[x(147)]();
234
+ case e.EEwSb:
235
+ s = await n[x(257)][x(259)]();
227
236
  break;
228
- case e[x(148)]:
229
- s = await n[x(136)][x(125)](c);
237
+ case e[x(252)]:
238
+ s = await n[x(257)][x(253)](c);
230
239
  break;
231
- case e[x(107)]:
232
- s = await n._client[x(110)](c);
240
+ case e[x(290)]:
241
+ s = await n._client[x(265)](c);
233
242
  break;
234
243
  }
235
- return s && await n[x(131)]({ result: s, jsonrpc: e[x(117)], id: r }), 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
- }, U = (n) => {
238
- const t = p, x = { xxSai: function(s, r, a) {
246
+ }, B = (n) => {
247
+ const t = p, x = { UbcJZ: function(s, r, a) {
239
248
  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 {
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
- var h = d;
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 = d, e = n(); ; )
286
+ for (var x = b, e = n(); ; )
258
287
  try {
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;
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
- })(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();
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
- }, d(n, t);
301
+ }, b(n, t);
279
302
  }
280
- class G extends F {
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 = d;
283
- super(t, x), this[s(109)] = e;
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
- [h(113)]() {
286
- var t = h, x = { cElFJ: function(e, s) {
316
+ [C(110)]() {
317
+ var t = C, x = { NUrkI: function(e, s) {
287
318
  return e(s);
288
319
  } };
289
- return x[t(101)](U, this), super._startOrAuth();
320
+ return x[t(116)](B, this), super[t(110)]();
290
321
  }
291
- get [h(106)]() {
292
- var t = h, x = { RUmce: "sessionId" };
293
- return this[t(114)].searchParams.get(x[t(112)]);
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 j = y;
327
+ var A = d;
297
328
  (function(n, t) {
298
- for (var x = y, e = n(); ; )
329
+ for (var x = d, e = n(); ; )
299
330
  try {
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);
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, -9848 * 5 + 1019277 + 30403 * -9);
307
- function y(n, t) {
308
- var x = m();
309
- return y = function(e, s) {
310
- e = e - (-39 * -73 + -4 * 457 + 36 * -25);
311
- var r = x[e];
312
- return r;
313
- }, y(n, t);
314
- }
337
+ })(m, 1053414 + -4817 * -239 + -1535 * 980);
315
338
  function m() {
316
- var n = ["15ftBoio", "1002967ndyefF", "2681526yLpxue", "12Ifkajj", "uSxnE", "_handleSseStream", "3409302cGwgng", "1052916eryvQw", "2319LtRiKz", "88uKjRHp", "3356jaxgRE", "1622130KwRqid", "1KdIUCR", "5125016PhYfiZ", "9bwGriM"];
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
- class H extends T {
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
- super(t, x), this._client = e;
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
- s[e(130)](U, this), super[e(131)](t, x);
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 z = v;
363
+ const Q = g;
333
364
  (function(n, t) {
334
- const x = v, e = n();
365
+ const x = g, e = n();
335
366
  for (; ; )
336
367
  try {
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;
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
- })(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);
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 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 });
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 k() {
354
- const n = ["12kzfKfv", "8875816OnNJCw", "6189743tBuokP", "Bearer ", "52bHgQHR", "45xLJrGX", "169210jtomYW", "headers", "51384iewBdv", "556180Zyrvly", "authorization", "set", "2zfuGcv", "1386enrUML", "1263466KCXJIk", "1427883vgZiAK"];
355
- return k = function() {
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
- }, k();
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 C() {
366
- const n = ["417UVcHyC", "70BNqkVI", "5218160KoYyxe", "11uAsjeA", "78350LWLOrh", "41908GNRgxz", "8PnlnaZ", "5551284zpbfwR", "539310GXzeBe", "11680659LAYgsy", "12iKdvmz", "Bearer ", "randomUUID", "856304GsKlzB"];
367
- return C = function() {
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
- }, C();
396
+ }, v();
370
397
  }
371
- const M = S;
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 = S, e = n();
406
+ const x = k, e = n();
374
407
  for (; ; )
375
408
  try {
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;
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
- })(C, 57147 * 9 + -1009861 + 529 * 2399);
382
- const q = (n, t = crypto[M(366)]()) => ({ requestInit: { headers: { Authorization: M(365) + 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 } } });
383
416
  (function(n, t) {
384
- const x = b, e = n();
417
+ const x = _, e = n();
385
418
  for (; ; )
386
419
  try {
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;
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
- })(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);
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
- }, L();
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 $ = 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 };
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 = B, e = n(); ; )
448
+ for (var x = M, e = n(); ; )
416
449
  try {
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);
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
- })(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() {
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
- }, R();
461
+ }, P();
429
462
  }
430
- function B(n, t) {
431
- var x = R();
432
- return B = function(e, s) {
433
- e = e - 369;
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
- }, B(n, t);
469
+ }, M(n, t);
437
470
  }
438
471
  export {
439
- Z as MessageChannelClientTransport,
440
- Y as MessageChannelServerTransport,
472
+ G as MessageChannelClientTransport,
473
+ q as MessageChannelServerTransport,
441
474
  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
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
  };