@opentiny/next 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/README.md +14 -13
  2. package/client.js +299 -297
  3. package/package.json +3 -3
  4. package/server.d.ts +2 -6
  5. package/server.js +189 -185
package/client.js CHANGED
@@ -1,447 +1,449 @@
1
- import { JSONRPCMessageSchema as O } from "@modelcontextprotocol/sdk/types.js";
2
- import { Client as q } from "@modelcontextprotocol/sdk/client/index.js";
3
- import { SSEClientTransport as P } from "@modelcontextprotocol/sdk/client/sse.js";
4
- import { StreamableHTTPClientTransport as z } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
5
- const f = u;
1
+ import { JSONRPCMessageSchema as E } from "@modelcontextprotocol/sdk/types.js";
2
+ import { Client as O } from "@modelcontextprotocol/sdk/client/index.js";
3
+ import { SSEClientTransport as F } from "@modelcontextprotocol/sdk/client/sse.js";
4
+ import { StreamableHTTPClientTransport as T } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
5
+ const u = f;
6
6
  (function(n, t) {
7
- const x = u, e = n();
7
+ const x = f, e = n();
8
8
  for (; ; )
9
9
  try {
10
- if (parseInt(x(370)) / 1 + -parseInt(x(363)) / 2 + -parseInt(x(362)) / 3 + -parseInt(x(341)) / 4 + parseInt(x(339)) / 5 + parseInt(x(352)) / 6 + parseInt(x(316)) / 7 * (parseInt(x(373)) / 8) === 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;
11
11
  e.push(e.shift());
12
12
  } catch {
13
13
  e.push(e.shift());
14
14
  }
15
- })(l, -179 * -3226 + 133404 * 3 + -165520 * 4);
16
- function u(n, t) {
17
- const x = l();
18
- return u = function(e, r) {
19
- return e = e - 312, x[e];
20
- }, u(n, t);
21
- }
22
- const H = () => {
23
- const n = u, t = { irtUV: function(x, e) {
15
+ })(I, -357608 + 915883 * 1);
16
+ const P = () => {
17
+ const n = f, t = { eoFcc: function(x, e) {
18
+ return x !== e;
19
+ }, SxqCn: n(418), hzpbK: function(x, e) {
20
+ return x !== e;
21
+ }, keGCQ: function(x, e) {
24
22
  return x !== e;
25
- }, mXDSz: n(322), KNBRb: function(x, e) {
23
+ }, IhDbz: function(x, e) {
24
+ return x !== e;
25
+ }, swBtO: function(x, e) {
26
26
  return x(e);
27
- }, ohWWH: n(335) };
28
- return t[n(366)](typeof globalThis, t[n(348)]) ? globalThis : typeof window !== t[n(348)] ? window : typeof global < "u" ? global : t[n(366)](typeof self, t[n(348)]) ? self : t[n(338)](Function, t[n(333)])();
27
+ }, RJumM: n(422) };
28
+ return t[n(413)](typeof globalThis, t.SxqCn) ? globalThis : t[n(363)](typeof window, n(418)) ? window : t[n(378)](typeof global, t[n(395)]) ? global : t[n(372)](typeof self, t[n(395)]) ? self : t.swBtO(Function, t.RJumM)();
29
29
  }, K = (n, t, x) => {
30
- const e = u, r = { XHPhq: function(s, a) {
31
- return s !== a;
32
- }, aRjWD: e(322), fLXbe: function(s, a) {
33
- return s in a;
34
- }, eZZFt: e(312), zKrMy: function(s, a) {
35
- return s === a;
36
- }, tJWOK: e(343), djoDr: e(378) };
37
- if (r.XHPhq(typeof window, r.aRjWD)) n[e(312)](t, "*", x);
38
- else if (r[e(368)](r.eZZFt, n) && r[e(326)](typeof n.postMessage, r[e(372)])) n[e(312)](t, x);
39
- else throw new Error(r[e(360)]);
40
- }, j = (n, t) => {
41
- const x = u, e = { ClzlV: function(r, s) {
42
- return r in s;
43
- }, NhXwq: x(336), pnqyz: function(r, s) {
44
- return r === s;
45
- }, CfrUs: x(343), eClew: x(379), rbiTr: "onmessage", egMaC: function(r, s) {
46
- return r !== s;
47
- }, gzgkq: x(317) };
48
- if (e[x(330)](e.NhXwq, n) && e[x(376)](typeof n[x(336)], e[x(371)])) n[x(336)](e.eClew, t);
49
- else if (e[x(351)] in n && e[x(347)](typeof n.onmessage, x(322))) n[x(345)] = t;
50
- else throw new Error(e[x(357)]);
30
+ const e = f, s = { AwncL: function(r, a) {
31
+ return r !== a;
32
+ }, wZZqC: e(418), Ixnur: function(r, a) {
33
+ return r in a;
34
+ }, vUSIx: e(404), RPGPk: function(r, a) {
35
+ return r === a;
36
+ }, QDcVB: e(398) };
37
+ s[e(423)](typeof window, s[e(388)]) ? n[e(404)](t, "*", x) : s[e(362)](s.vUSIx, n) && s[e(359)](typeof n[e(404)], s[e(373)]) && n[e(404)](t, x);
38
+ }, A = (n, t) => {
39
+ const x = f, e = { ThjIi: function(s, r) {
40
+ return s in r;
41
+ }, HvuaL: x(421), CBUTj: function(s, r) {
42
+ return s === r;
43
+ }, sldHw: "function", BfokF: x(415), djaJW: function(s, r) {
44
+ return s !== r;
45
+ }, Kuecn: x(418) };
46
+ e[x(379)](e[x(417)], n) && e[x(361)](typeof n[x(421)], e[x(381)]) ? n.addEventListener(x(368), t) : e[x(379)](e[x(371)], n) && e[x(364)](typeof n[x(415)], e.Kuecn) && (n[x(415)] = t);
51
47
  };
52
- function l() {
53
- const n = ["_listen", "undefined", "data", "_globalObject", "parse", "zKrMy", "Failed to parse message: ", "port2", "Cannot start a closed MessageChannel Transport", "ClzlV", "JJxXS", "tDewr", "ohWWH", "randomUUID", "return this", "addEventListener", "iepzE", "KNBRb", "2392655DydLAq", "MessageChannel Transport is not initialized", "2169268PsEgqQ", "port1", "function", "stringify", "onmessage", "_port", "egMaC", "mXDSz", "tYSPY", "upOyB", "rbiTr", "587652XdbMOi", "_endpoint", "send", "_started", "Cannot send message on a closed MessageChannel Transport", "gzgkq", "bJXTH", "close", "djoDr", "onclose", "1015368tgWHKs", "898846ENoJoF", "ports", "listen", "irtUV", "_sessionId", "fLXbe", "ulrhL", "398219ovTVPK", "CfrUs", "tJWOK", "560FfSIPy", "start", "sessionId", "pnqyz", "qnTYv", "Unsupported environment for postMessage", "message", "postMessage", "aZmUD", "split", "onerror", "67109CNwrBs", "Unsupported environment for addEventListener", "_closed", "onmessageerror", "endpoint"];
54
- return l = function() {
55
- return n;
56
- }, l();
57
- }
58
- class _ {
48
+ class l {
59
49
  constructor(t, x) {
60
- const e = u, r = { bJXTH: "0|1|4|5|3|2" }, s = r[e(358)][e(314)]("|");
61
- let a = -77 * -41 + -166 * 7 + -1995;
50
+ const e = f, s = { Eolxy: e(382) }, r = s.Eolxy[e(400)]("|");
51
+ let a = -28 * 54 + -5195 * -1 + 29 * -127;
62
52
  for (; ; ) {
63
- switch (s[a++]) {
53
+ switch (r[a++]) {
64
54
  case "0":
65
- this[e(355)] = !1;
55
+ this[e(370)] = !1;
66
56
  continue;
67
57
  case "1":
68
- this[e(318)] = !1;
58
+ this[e(384)] = t;
69
59
  continue;
70
60
  case "2":
71
- this[e(318)] = !1;
61
+ this[e(419)] = x;
72
62
  continue;
73
63
  case "3":
74
- this._started = !1;
64
+ this[e(403)] = !1;
75
65
  continue;
76
66
  case "4":
77
- this[e(346)] = t;
67
+ this[e(403)] = !1;
78
68
  continue;
79
69
  case "5":
80
- this[e(367)] = x;
70
+ this._started = !1;
81
71
  continue;
82
72
  }
83
73
  break;
84
74
  }
85
75
  }
86
- async [f(374)]() {
87
- const t = f, x = { IShJM: "MessageChannel Transport already started!", aXAMK: t(329), tDewr: t(340) };
88
- if (this[t(355)]) throw new Error(x.IShJM);
89
- if (this[t(318)]) throw new Error(x.aXAMK);
90
- if (!this._port) throw new Error(x[t(332)]);
91
- this[t(355)] = !0, this[t(346)][t(345)] = (e) => {
92
- var s, a;
93
- const r = t;
76
+ async start() {
77
+ const t = f;
78
+ this[t(370)] || this[t(403)] || !this[t(384)] || (this[t(370)] = !0, this[t(384)].onmessage = (x) => {
79
+ var s, r;
80
+ const e = t;
94
81
  try {
95
- const c = O[r(325)](e.data);
96
- (s = this[r(345)]) == null || s.call(this, c);
97
- } catch (c) {
98
- const o = new Error(r(327) + c);
99
- (a = this[r(315)]) == null || a.call(this, o);
82
+ const a = E[e(393)](x[e(365)]);
83
+ (s = this.onmessage) == null || s.call(this, a);
84
+ } catch (a) {
85
+ const c = new Error(e(406) + a);
86
+ (r = this.onerror) == null || r.call(this, c);
100
87
  }
101
- }, this[t(346)][t(319)] = (e) => {
102
- var a;
103
- const r = t, s = new Error("MessagePort error: " + JSON[r(344)](e));
104
- (a = this.onerror) == null || a.call(this, s);
105
- }, this[t(346)].start();
88
+ }, this._port[t(392)] = (x) => {
89
+ var r;
90
+ const e = t, s = new Error(e(410) + JSON[e(414)](x));
91
+ (r = this[e(375)]) == null || r.call(this, s);
92
+ }, this[t(384)][t(391)]());
106
93
  }
107
- async [f(354)](t) {
108
- const x = f, e = { JJxXS: function(r) {
109
- return r();
110
- }, qnTYv: function(r, s) {
111
- return r(s);
94
+ async [u(376)](t) {
95
+ const x = u, e = { ibylp: function(s) {
96
+ return s();
97
+ }, YUWFy: function(s, r) {
98
+ return s instanceof r;
99
+ }, YiYoE: function(s, r) {
100
+ return s(r);
112
101
  } };
113
- if (this[x(318)]) throw new Error(x(356));
114
- if (!this[x(346)]) throw new Error(x(340));
115
- return new Promise((r, s) => {
116
- var c;
117
- const a = x;
118
- try {
119
- this[a(346)] && this[a(346)][a(312)](t), e[a(331)](r);
120
- } catch (o) {
121
- const i = o instanceof Error ? o : new Error(String(o));
122
- (c = this[a(315)]) == null || c.call(this, i), e[a(377)](s, i);
123
- }
124
- });
102
+ if (!(this[x(403)] || !this[x(384)]))
103
+ return new Promise((s, r) => {
104
+ var c;
105
+ const a = x;
106
+ try {
107
+ this._port && this[a(384)].postMessage(t), e[a(397)](s);
108
+ } catch (i) {
109
+ const o = e[a(390)](i, Error) ? i : new Error(String(i));
110
+ (c = this[a(375)]) == null || c.call(this, o), e[a(360)](r, o);
111
+ }
112
+ });
125
113
  }
126
- async [f(359)]() {
114
+ async [u(366)]() {
127
115
  var x;
128
- const t = f;
129
- this[t(318)] || !this[t(346)] || (this[t(318)] = !0, this[t(346)].close(), (x = this[t(361)]) == 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));
130
118
  }
131
- get [f(375)]() {
119
+ get [u(374)]() {
132
120
  return this._sessionId;
133
121
  }
134
122
  }
135
- class N extends _ {
136
- constructor(t, x = H()) {
137
- const e = f, r = { ulrhL: function(c, o, i, h) {
138
- return c(o, i, h);
123
+ function f(n, t) {
124
+ const x = I();
125
+ return f = function(e, s) {
126
+ return e = e - (131 * 66 + 5949 + -2 * 7118), x[e];
127
+ }, f(n, t);
128
+ }
129
+ function I() {
130
+ const n = ["addEventListener", "return this", "AwncL", "nOEGD", "RPGPk", "YiYoE", "CBUTj", "Ixnur", "hzpbK", "djaJW", "data", "close", "endpoint", "message", "4ARUZHf", "_started", "BfokF", "IhDbz", "QDcVB", "sessionId", "onerror", "send", "18OrLbcV", "keGCQ", "ThjIi", "onclose", "sldHw", "5|3|1|2|0|4", "iSruD", "_port", "port1", "port2", "495048vBsdEc", "wZZqC", "36493080fdzFDv", "YUWFy", "start", "onmessageerror", "parse", "751150hwZqMZ", "SxqCn", "6555311ueCxUu", "ibylp", "function", "randomUUID", "split", "ports", "_globalObject", "_closed", "postMessage", "listen", "Failed to parse message: ", "72NoMgwN", "_listen", "1996768zCYstd", "MessagePort error: ", "289845qNPMHf", "_endpoint", "eoFcc", "stringify", "onmessage", "JmWeq", "HvuaL", "undefined", "_sessionId", "332598Ndvxsi"];
131
+ return I = function() {
132
+ return n;
133
+ }, I();
134
+ }
135
+ class Z extends l {
136
+ constructor(t, x = P()) {
137
+ const e = u, s = { BckOF: function(c, i, o, _) {
138
+ return c(i, o, _);
139
139
  } };
140
- super(), this._endpoint = t, this._globalObject = x;
141
- const s = new MessageChannel(), a = crypto[e(334)]();
142
- this._port = s[e(342)], this[e(367)] = a, r[e(369)](K, this[e(324)], { endpoint: this[e(353)], sessionId: a }, [s.port2]);
140
+ super(), this[e(412)] = t, this[e(402)] = x;
141
+ const r = new MessageChannel(), a = crypto[e(399)]();
142
+ this[e(384)] = r[e(385)], this[e(419)] = a, s.BckOF(K, this._globalObject, { endpoint: this[e(412)], sessionId: a }, [r[e(386)]]);
143
143
  }
144
144
  }
145
- class Q extends _ {
146
- constructor(t, x = H()) {
147
- const e = f, r = { iepzE: function(s, a) {
148
- return s === a;
149
- }, bRMGj: function(s) {
150
- return s();
151
- }, tYSPY: function(s, a, c) {
152
- return s(a, c);
145
+ class Y extends l {
146
+ constructor(t, x = P()) {
147
+ const e = u, s = { JmWeq: function(r, a) {
148
+ return r === a;
149
+ }, nOEGD: function(r, a, c) {
150
+ return r(a, c);
153
151
  } };
154
- super(), this[e(353)] = t, this[e(324)] = x, this[e(321)] = new Promise((s) => {
155
- const a = e, c = { upOyB: function(o, i) {
156
- return r[u(337)](o, i);
157
- }, aZmUD: function(o) {
158
- return r.bRMGj(o);
152
+ super(), this._endpoint = t, this._globalObject = x, this[e(408)] = new Promise((r) => {
153
+ const a = e, c = { iSruD: function(i, o) {
154
+ return s[f(416)](i, o);
159
155
  } };
160
- r[a(349)](j, this._globalObject, (o) => {
161
- const i = a;
162
- o[i(323)] && c[i(350)](o[i(323)][i(320)], this[i(353)]) && (this[i(346)] = o[i(364)][0], this[i(367)] = o.data.sessionId, c[i(313)](s));
156
+ s[a(424)](A, this[a(402)], (i) => {
157
+ const o = a;
158
+ i[o(365)] && c[o(383)](i[o(365)][o(367)], this[o(412)]) && (this[o(384)] = i[o(401)][0], this._sessionId = i[o(365)].sessionId, r());
163
159
  });
164
160
  });
165
161
  }
166
- async [f(365)]() {
167
- return this[f(321)];
162
+ async [u(405)]() {
163
+ return this._listen;
168
164
  }
169
165
  }
170
- const W = () => {
171
- const n = f, t = new MessageChannel(), x = crypto[n(334)]();
172
- return [new _(t[n(342)], x), new _(t[n(328)], x)];
166
+ const V = () => {
167
+ const n = u, t = new MessageChannel(), x = crypto[n(399)]();
168
+ return [new l(t.port1, x), new l(t.port2, x)];
173
169
  };
174
- function I() {
175
- const n = ["20PfsCXS", "HeTlK", "3058278TcxTgZ", "resources/templates/list", "onmessage", "callTool", "fXsLH", "send", "listResourceTemplates", "2XuiztD", "prompts/get", "unsubscribeResource", "388411GmRGkg", "listTools", "6618624SxedHZ", "readResource", "getPrompt", "completion/complete", "2.0", "jRdbc", "Xkmnt", "logging/setLevel", "221995GhvRQq", "subscribeResource", "resources/unsubscribe", "1470616yIUdDc", "_client", "tools/list", "ping", "zXbrZ", "listResources", "gekXJ", "resources/subscribe", "bxPJM", "resources/read", "tools/call", "3013479CluPOf", "resources/list", "call", "setLoggingLevel", "4051215zGRJOX", "complete"];
176
- return I = function() {
170
+ function w() {
171
+ const n = ["16zpbCUg", "send", "299232cTDNRm", "listTools", "9IdFesc", "resources/unsubscribe", "_client", "unsubscribeResource", "listResources", "WcXnL", "getPrompt", "87521sFAfiL", "tools/list", "tools/call", "resources/templates/list", "prompts/list", "nyLgz", "ping", "FCnsg", "readResource", "WVgLX", "6103410cUPqsQ", "1122354BAbafV", "setLoggingLevel", "prompts/get", "listPrompts", "iLzbz", "subscribeResource", "815916VpOEeJ", "logging/setLevel", "BaZMh", "zIXSr", "onmessage", "6wRkslE", "856568XHDqii", "970705fXlpas", "wIOEc", "completion/complete", "complete", "resources/subscribe", "callTool", "SXnjF", "listResourceTemplates"];
172
+ return w = function() {
177
173
  return n;
178
- }, I();
174
+ }, w();
179
175
  }
180
176
  (function(n, t) {
181
- const x = b, e = n();
177
+ const x = p, e = n();
182
178
  for (; ; )
183
179
  try {
184
- if (-parseInt(x(364)) / 1 * (-parseInt(x(361)) / 2) + -parseInt(x(388)) / 3 + -parseInt(x(394)) / 4 * (-parseInt(x(374)) / 5) + -parseInt(x(396)) / 6 + parseInt(x(377)) / 7 + parseInt(x(366)) / 8 + parseInt(x(392)) / 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;
185
181
  e.push(e.shift());
186
182
  } catch {
187
183
  e.push(e.shift());
188
184
  }
189
- })(I, 513393 + 62117 * -11 + 5345 * 141);
190
- function b(n, t) {
191
- const x = I();
192
- return b = function(e, r) {
193
- return e = e - 355, x[e];
194
- }, b(n, t);
185
+ })(w, -402528 + -58573 * -11);
186
+ function p(n, t) {
187
+ const x = w();
188
+ return p = function(e, s) {
189
+ return e = e - (7 * 431 + -2082 + -828), x[e];
190
+ }, p(n, t);
195
191
  }
196
- const E = async (n, t) => {
197
- const x = b, e = { Xkmnt: x(387), nYRpq: x(389), KrwUG: x(355), HeTlK: x(386), fXsLH: x(384), bxPJM: x(376), teWxT: x(362), jRdbc: x(380), zXbrZ: x(373), gekXJ: x(370) };
198
- let r;
199
- const { id: s, method: a, params: c } = t;
192
+ const D = async (n, t) => {
193
+ const x = p, e = { zIXSr: x(143), bNLyR: "resources/list", iLzbz: "resources/read", SXnjF: x(126), nyLgz: x(135), wIOEc: x(145), WcXnL: x(147), FCnsg: x(124), WVgLX: x(116), BaZMh: "2.0" };
194
+ let s;
195
+ const { id: r, method: a, params: c } = t;
200
196
  if (a) {
201
197
  switch (a) {
202
- case x(379):
203
- r = await n[x(378)][x(365)](c);
198
+ case x(142):
199
+ s = await n[x(136)][x(133)](c);
204
200
  break;
205
- case e[x(372)]:
206
- r = await n._client[x(357)](c);
201
+ case e[x(118)]:
202
+ s = await n[x(136)][x(127)](c);
207
203
  break;
208
- case e.nYRpq:
209
- r = await n[x(378)][x(382)](c);
204
+ case e.bNLyR:
205
+ s = await n._client[x(138)](c);
210
206
  break;
211
- case e.KrwUG:
212
- r = await n[x(378)][x(360)](c);
207
+ case x(144):
208
+ s = await n[x(136)][x(129)](c);
213
209
  break;
214
- case e[x(395)]:
215
- r = await n[x(378)][x(367)](c);
210
+ case e[x(113)]:
211
+ s = await n._client[x(149)](c);
216
212
  break;
217
- case e[x(358)]:
218
- r = await n[x(378)][x(375)](c);
213
+ case e[x(128)]:
214
+ s = await n[x(136)][x(114)](c);
219
215
  break;
220
- case e[x(385)]:
221
- r = await n[x(378)][x(363)](c);
216
+ case e[x(146)]:
217
+ s = await n._client[x(137)](c);
222
218
  break;
223
- case e.teWxT:
224
- r = await n[x(378)][x(368)](c);
219
+ case x(111):
220
+ s = await n._client[x(140)](c);
225
221
  break;
226
- case "prompts/list":
227
- r = await n[x(378)].listPrompts(c);
222
+ case e[x(123)]:
223
+ s = await n[x(136)][x(112)](c);
228
224
  break;
229
- case e[x(371)]:
230
- r = await n._client[x(380)]();
225
+ case e[x(139)]:
226
+ s = await n._client[x(147)]();
231
227
  break;
232
- case x(369):
233
- r = await n[x(378)][x(393)](c);
228
+ case e[x(148)]:
229
+ s = await n[x(136)][x(125)](c);
234
230
  break;
235
- case e[x(381)]:
236
- r = await n[x(378)][x(391)](c);
231
+ case e[x(107)]:
232
+ s = await n._client[x(110)](c);
237
233
  break;
238
234
  }
239
- return r && await n[x(359)]({ result: r, jsonrpc: e[x(383)], id: s }), r;
235
+ return s && await n[x(131)]({ result: s, jsonrpc: e[x(117)], id: r }), s;
240
236
  }
241
- }, J = (n) => {
242
- const t = b, x = { wKrGQ: function(r, s) {
243
- return r === s;
244
- } }, e = n[t(356)];
245
- n[t(356)] = async (r) => {
246
- const s = t;
247
- if (n[s(378)]) {
248
- const a = await E(n, r);
249
- x.wKrGQ(a, void 0) && e && e[s(390)](n, r);
237
+ }, U = (n) => {
238
+ const t = p, x = { xxSai: function(s, r, a) {
239
+ return s(r, a);
240
+ } }, e = n[t(119)];
241
+ n[t(119)] = async (s) => {
242
+ if (n[t(136)]) {
243
+ let a;
244
+ try {
245
+ a = await x.xxSai(D, n, s);
246
+ } catch {
247
+ }
248
+ if (a === void 0 && e) try {
249
+ e.call(n, s);
250
+ } catch {
251
+ }
250
252
  }
251
253
  };
252
254
  };
253
- var C = d;
254
- function d(n, t) {
255
- var x = w();
256
- return d = function(e, r) {
257
- e = e - (2597 * -1 + 7787 + -5036);
258
- var s = x[e];
259
- return s;
260
- }, d(n, t);
261
- }
255
+ var h = d;
262
256
  (function(n, t) {
263
257
  for (var x = d, e = n(); ; )
264
258
  try {
265
- var r = parseInt(x(164)) / 1 * (-parseInt(x(156)) / 2) + parseInt(x(154)) / 3 + parseInt(x(162)) / 4 * (-parseInt(x(165)) / 5) + -parseInt(x(166)) / 6 * (parseInt(x(168)) / 7) + parseInt(x(159)) / 8 + parseInt(x(161)) / 9 + parseInt(x(155)) / 10 * (parseInt(x(158)) / 11);
266
- if (r === 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;
267
261
  e.push(e.shift());
268
262
  } catch {
269
263
  e.push(e.shift());
270
264
  }
271
- })(w, 93820 + -16076 * -11 + -1 * 53448);
272
- function w() {
273
- var n = ["347391ZqgnIm", "16gzYSLb", "kfuYF", "3YFAERQ", "205745xGcibJ", "3414mwqnnp", "gtnpw", "4900fKdYYQ", "_client", "592995JzZxea", "1580LcIaQp", "191018OIMpqs", "searchParams", "44847pHYuwi", "1489608xtnwPJ", "_startOrAuth"];
274
- return w = function() {
265
+ })(g, 1 * -449588 + -3190 * -137 + 434550);
266
+ function g() {
267
+ var n = ["_startOrAuth", "_endpoint", "7zIZSMn", "2hiLAlH", "cElFJ", "5161648yjaxED", "255ANGFHi", "13443750COGKfe", "5424318vfnanp", "sessionId", "364438dQxAHs", "4096116phzhvk", "_client", "1964505qsQcDj", "65552lnyjlg", "RUmce"];
268
+ return g = function() {
275
269
  return n;
276
- }, w();
270
+ }, g();
271
+ }
272
+ function d(n, t) {
273
+ var x = g();
274
+ return d = function(e, s) {
275
+ e = e - 100;
276
+ var r = x[e];
277
+ return r;
278
+ }, d(n, t);
277
279
  }
278
- class L extends P {
280
+ class G extends F {
279
281
  constructor(t, x, e) {
280
- var r = d;
281
- super(t, x), this[r(169)] = e;
282
+ var s = d;
283
+ super(t, x), this[s(109)] = e;
282
284
  }
283
- [C(160)]() {
284
- var t = C, x = { kfuYF: function(e, r) {
285
- return e(r);
285
+ [h(113)]() {
286
+ var t = h, x = { cElFJ: function(e, s) {
287
+ return e(s);
286
288
  } };
287
- return x[t(163)](J, this), super[t(160)]();
289
+ return x[t(101)](U, this), super._startOrAuth();
288
290
  }
289
- get sessionId() {
290
- var t = C, x = { gtnpw: "sessionId" };
291
- return this._endpoint[t(157)].get(x[t(167)]);
291
+ get [h(106)]() {
292
+ var t = h, x = { RUmce: "sessionId" };
293
+ return this[t(114)].searchParams.get(x[t(112)]);
292
294
  }
293
295
  }
296
+ var j = y;
294
297
  (function(n, t) {
295
- for (var x = m, e = n(); ; )
298
+ for (var x = y, e = n(); ; )
296
299
  try {
297
- var r = parseInt(x(222)) / 1 + -parseInt(x(218)) / 2 * (parseInt(x(216)) / 3) + parseInt(x(215)) / 4 * (parseInt(x(212)) / 5) + -parseInt(x(220)) / 6 + parseInt(x(213)) / 7 * (-parseInt(x(219)) / 8) + parseInt(x(223)) / 9 + parseInt(x(217)) / 10 * (parseInt(x(221)) / 11);
298
- if (r === 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;
299
302
  e.push(e.shift());
300
303
  } catch {
301
304
  e.push(e.shift());
302
305
  }
303
- })(g, -3 * -424526 + 29 * 38761 + -25 * 60010);
304
- function g() {
305
- var n = ["2463645ihxwHi", "7Xlqfmq", "_handleSseStream", "8sCLLgq", "2759076mHhENV", "18203510fJKTYV", "2jQorlm", "6073488MwdBvT", "7653132PKtsWH", "11efxgnF", "540600hYyrVN", "4548492MQImYH"];
306
- return g = function() {
307
- return n;
308
- }, g();
306
+ })(m, -9848 * 5 + 1019277 + 30403 * -9);
307
+ function y(n, t) {
308
+ var x = m();
309
+ return y = function(e, s) {
310
+ e = e - (-39 * -73 + -4 * 457 + 36 * -25);
311
+ var r = x[e];
312
+ return r;
313
+ }, y(n, t);
309
314
  }
310
- function m(n, t) {
311
- var x = g();
312
- return m = function(e, r) {
313
- e = e - (-1933 * 1 + -27 * 278 + 1 * 9651);
314
- var s = x[e];
315
- return s;
316
- }, m(n, t);
315
+ function m() {
316
+ var n = ["15ftBoio", "1002967ndyefF", "2681526yLpxue", "12Ifkajj", "uSxnE", "_handleSseStream", "3409302cGwgng", "1052916eryvQw", "2319LtRiKz", "88uKjRHp", "3356jaxgRE", "1622130KwRqid", "1KdIUCR", "5125016PhYfiZ", "9bwGriM"];
317
+ return m = function() {
318
+ return n;
319
+ }, m();
317
320
  }
318
- class R extends z {
321
+ class H extends T {
319
322
  constructor(t, x, e) {
320
323
  super(t, x), this._client = e;
321
324
  }
322
- _handleSseStream(t, x) {
323
- var e = m, r = { njiQB: function(s, a) {
324
- return s(a);
325
+ [j(131)](t, x) {
326
+ var e = j, s = { uSxnE: function(r, a) {
327
+ return r(a);
325
328
  } };
326
- r.njiQB(J, this), super[e(214)](t, x);
329
+ s[e(130)](U, this), super[e(131)](t, x);
327
330
  }
328
331
  }
329
- function y(n, t) {
330
- const x = M();
331
- return y = function(e, r) {
332
- return e = e - 168, x[e];
333
- }, y(n, t);
334
- }
335
- function M() {
336
- const n = ["768464GKECXk", "Bearer ", "27kqscCe", "15ZXNsAZ", "headers", "553900ANYVLj", "686728ZxjJHf", "3135648SVjOOD", "1196anMHWH", "6222293HgvQUc", "osFqL", "MgDAb", "5757bwhOTY", "2211402UjYIjQ"];
337
- return M = function() {
338
- return n;
339
- }, M();
340
- }
332
+ const z = v;
341
333
  (function(n, t) {
342
- const x = y, e = n();
334
+ const x = v, e = n();
343
335
  for (; ; )
344
336
  try {
345
- if (-parseInt(x(168)) / 1 + parseInt(x(170)) / 2 * (-parseInt(x(174)) / 3) + parseInt(x(169)) / 4 + -parseInt(x(179)) / 5 * (-parseInt(x(175)) / 6) + parseInt(x(171)) / 7 + -parseInt(x(176)) / 8 * (parseInt(x(178)) / 9) + -parseInt(x(181)) / 10 === 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;
346
338
  e.push(e.shift());
347
339
  } catch {
348
340
  e.push(e.shift());
349
341
  }
350
- })(M, 600658);
351
- const U = (n) => ({ requestInit: { headers: { Authorization: "Bearer " + n } }, eventSourceInit: { async fetch(t, x) {
352
- const e = y, r = { MgDAb: "authorization", osFqL: function(a, c, o) {
353
- return a(c, o);
354
- } }, s = new Headers((x == null ? void 0 : x[e(180)]) || {});
355
- return s.set(r[e(173)], e(177) + n), r[e(172)](fetch, t, { ...x, headers: s });
356
- } } }), D = T;
357
- function T(n, t) {
342
+ })(k, -167123 * -2 + 529 * 277 + 2 * 254510);
343
+ function v(n, t) {
358
344
  const x = k();
359
- return T = function(e, r) {
360
- return e = e - (8858 + 63 * -133), x[e];
361
- }, T(n, t);
345
+ return v = function(e, s) {
346
+ return e = e - (53 * 28 + 2885 + 790 * -5), x[e];
347
+ }, v(n, t);
362
348
  }
349
+ const W = (n) => ({ requestInit: { headers: { Authorization: z(432) + n } }, eventSourceInit: { async fetch(t, x) {
350
+ const e = z, s = { WcByG: e(423) }, r = new Headers((x == null ? void 0 : x[e(420)]) || {});
351
+ return r[e(424)](s.WcByG, "Bearer " + n), fetch(t, { ...x, headers: r });
352
+ } } });
363
353
  function k() {
364
- const n = ["150057pkrshx", "5nFvaWM", "randomUUID", "4741irPxMl", "104583hRndkX", "44rOAheK", "96idxIJL", "3374035HeiaJu", "652960VrnGlX", "580770nVioNm", "7660WbZMwL", "1021194ptAtig"];
354
+ const n = ["12kzfKfv", "8875816OnNJCw", "6189743tBuokP", "Bearer ", "52bHgQHR", "45xLJrGX", "169210jtomYW", "headers", "51384iewBdv", "556180Zyrvly", "authorization", "set", "2zfuGcv", "1386enrUML", "1263466KCXJIk", "1427883vgZiAK"];
365
355
  return k = function() {
366
356
  return n;
367
357
  }, k();
368
358
  }
359
+ function S(n, t) {
360
+ const x = C();
361
+ return S = function(e, s) {
362
+ return e = e - (-11607 + -193 * -62), x[e];
363
+ }, S(n, t);
364
+ }
365
+ function C() {
366
+ const n = ["417UVcHyC", "70BNqkVI", "5218160KoYyxe", "11uAsjeA", "78350LWLOrh", "41908GNRgxz", "8PnlnaZ", "5551284zpbfwR", "539310GXzeBe", "11680659LAYgsy", "12iKdvmz", "Bearer ", "randomUUID", "856304GsKlzB"];
367
+ return C = function() {
368
+ return n;
369
+ }, C();
370
+ }
371
+ const M = S;
369
372
  (function(n, t) {
370
- const x = T, e = n();
373
+ const x = S, e = n();
371
374
  for (; ; )
372
375
  try {
373
- if (parseInt(x(487)) / 1 + parseInt(x(486)) / 2 + -parseInt(x(482)) / 3 * (parseInt(x(483)) / 4) + -parseInt(x(479)) / 5 * (parseInt(x(489)) / 6) + parseInt(x(485)) / 7 + -parseInt(x(484)) / 8 * (parseInt(x(490)) / 9) + parseInt(x(488)) / 10 * (-parseInt(x(481)) / 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;
374
377
  e.push(e.shift());
375
378
  } catch {
376
379
  e.push(e.shift());
377
380
  }
378
- })(k, -287782 + 1 * 593145);
379
- const Y = (n, t = crypto[D(480)]()) => ({ requestInit: { headers: { Authorization: "Bearer " + n, "stream-session-id": t } } });
381
+ })(C, 57147 * 9 + -1009861 + 529 * 2399);
382
+ const q = (n, t = crypto[M(366)]()) => ({ requestInit: { headers: { Authorization: M(365) + n, "stream-session-id": t } } });
380
383
  (function(n, t) {
381
- const x = p, e = n();
384
+ const x = b, e = n();
382
385
  for (; ; )
383
386
  try {
384
- if (-parseInt(x(512)) / 1 * (parseInt(x(504)) / 2) + parseInt(x(515)) / 3 + parseInt(x(505)) / 4 * (-parseInt(x(501)) / 5) + parseInt(x(502)) / 6 + parseInt(x(513)) / 7 * (-parseInt(x(511)) / 8) + parseInt(x(503)) / 9 + parseInt(x(506)) / 10 === 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;
385
388
  e.push(e.shift());
386
389
  } catch {
387
390
  e.push(e.shift());
388
391
  }
389
- })(v, -425121 + -2 * 488431 + 2077404);
390
- const V = async (n) => {
391
- const t = p, x = { DzdQO: function(i, h) {
392
- return i(h);
393
- }, sZnTO: t(516), caFIK: t(509) }, { client: e, url: r, token: s } = n, a = new L(new URL(r), x[t(500)](U, s), e), c = { prompts: {}, resources: {}, tools: {}, logging: {} };
394
- return await new q({ name: x[t(517)], version: x[t(507)] }, { capabilities: c })[t(508)](a), { transport: a, sessionId: a[t(510)] };
395
- };
396
- function p(n, t) {
397
- const x = v();
398
- return p = function(e, r) {
399
- return e = e - (-3918 + 1 * 4418), x[e];
400
- }, p(n, t);
392
+ })(L, 13042 * 116 + -2 * 657329 + 590195);
393
+ function b(n, t) {
394
+ const x = L();
395
+ return b = function(e, s) {
396
+ return e = e - 494, x[e];
397
+ }, b(n, t);
401
398
  }
402
- const B = async (n) => {
403
- const t = p, x = { MUfaM: t(516) }, { client: e, url: r, token: s } = n, a = crypto[t(514)](), c = new R(new URL(r), Y(s, a), e), o = { prompts: {}, resources: {}, tools: {}, logging: {} };
404
- return await new q({ name: x.MUfaM, version: "1.0.0" }, { capabilities: o }).connect(c), { transport: c, sessionId: a };
405
- };
406
- function v() {
407
- const n = ["sessionId", "104AbhONA", "1009258ilzcHG", "85911aGAHdY", "randomUUID", "2339271ApAHeF", "mcp-proxy-client", "sZnTO", "DzdQO", "1480QTXNni", "1562010kSXwrq", "4157568JTeudu", "2bghoqe", "13712qwklco", "13568720HyAOKk", "caFIK", "connect", "1.0.0"];
408
- return v = function() {
399
+ function L() {
400
+ const n = ["577496cpSpFP", "12UBGSbK", "sessionId", "randomUUID", "4988543fFLAKA", "34133980KmfaoS", "2lToavD", "1463768ArSjsa", "tobyV", "1172608aqADCg", "1157193YlRxSn", "27VQSwSm", "3156835bHOtjA", "1.0.0", "BnNkK", "mcp-proxy-client", "ljWhW", "connect", "boQan"];
401
+ return L = function() {
409
402
  return n;
410
- }, v();
403
+ }, L();
411
404
  }
405
+ const $ = async (n) => {
406
+ const t = b, x = { boQan: function(o, _) {
407
+ return o(_);
408
+ }, tobyV: t(506) }, { client: e, url: s, token: r } = n, a = new G(new URL(s), x[t(509)](W, r), e), c = { prompts: {}, resources: {}, tools: {}, logging: {} };
409
+ return await new O({ name: x[t(499)], version: t(504) }, { capabilities: c }).connect(a), { transport: a, sessionId: a[t(512)] };
410
+ }, x0 = async (n) => {
411
+ const t = b, x = { BnNkK: "mcp-proxy-client", ljWhW: t(504) }, { client: e, url: s, token: r } = n, a = crypto[t(494)](), c = new H(new URL(s), q(r, a), e), i = { prompts: {}, resources: {}, tools: {}, logging: {} };
412
+ return await new O({ name: x[t(505)], version: x[t(507)] }, { capabilities: i })[t(508)](c), { transport: c, sessionId: a };
413
+ };
412
414
  (function(n, t) {
413
- for (var x = S, e = n(); ; )
415
+ for (var x = B, e = n(); ; )
414
416
  try {
415
- var r = -parseInt(x(381)) / 1 + -parseInt(x(372)) / 2 + parseInt(x(373)) / 3 * (parseInt(x(376)) / 4) + parseInt(x(379)) / 5 * (parseInt(x(374)) / 6) + parseInt(x(380)) / 7 + parseInt(x(378)) / 8 + -parseInt(x(377)) / 9 * (parseInt(x(375)) / 10);
416
- if (r === 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;
417
419
  e.push(e.shift());
418
420
  } catch {
419
421
  e.push(e.shift());
420
422
  }
421
- })(X, 1 * 20354 + 54306 + 226651);
422
- function X() {
423
- var n = ["65IyDgef", "859614GtLEmM", "513137EONGOH", "54464jRjryJ", "21921JTJtFZ", "66126BiXKiq", "88080PQFVdf", "284UNxwcr", "477VzusNg", "4189056Abbjbl"];
424
- return X = 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() {
425
427
  return n;
426
- }, X();
428
+ }, R();
427
429
  }
428
- function S(n, t) {
429
- var x = X();
430
- return S = function(e, r) {
431
- e = e - (8216 + 3922 * -2);
432
- var s = x[e];
433
- return s;
434
- }, S(n, t);
430
+ function B(n, t) {
431
+ var x = R();
432
+ return B = function(e, s) {
433
+ e = e - 369;
434
+ var r = x[e];
435
+ return r;
436
+ }, B(n, t);
435
437
  }
436
438
  export {
437
- N as MessageChannelClientTransport,
438
- Q as MessageChannelServerTransport,
439
- _ as MessageChannelTransport,
440
- L as ProxySSEClientTransport,
441
- R as ProxyStreamClientTransport,
442
- V as createSseProxy,
443
- B as createStreamProxy,
444
- W as createTransportPair,
445
- U as sseOptions,
446
- Y as streamOptions
439
+ Z as MessageChannelClientTransport,
440
+ Y as MessageChannelServerTransport,
441
+ l as MessageChannelTransport,
442
+ G as ProxySSEClientTransport,
443
+ H as ProxyStreamClientTransport,
444
+ $ as createSseProxy,
445
+ x0 as createStreamProxy,
446
+ V as createTransportPair,
447
+ W as sseOptions,
448
+ q as streamOptions
447
449
  };