@mcp-use/inspector 5.0.2-canary.4 → 6.0.0-canary.5
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/dist/cdn/inspector.js
CHANGED
|
@@ -26920,7 +26920,7 @@ var Gd = class {
|
|
|
26920
26920
|
//#region src/client/telemetry/utils.ts
|
|
26921
26921
|
function cf() {
|
|
26922
26922
|
try {
|
|
26923
|
-
return "
|
|
26923
|
+
return "6.0.0-canary.5";
|
|
26924
26924
|
} catch {
|
|
26925
26925
|
return "0.0.0";
|
|
26926
26926
|
}
|
|
@@ -48457,9 +48457,9 @@ var $A, ej, tj, nj, rj, ij, aj, oj, sj, cj, lj, uj, dj, fj, pj, mj, hj, gj, _j,
|
|
|
48457
48457
|
}(), lL);
|
|
48458
48458
|
}));
|
|
48459
48459
|
//#endregion
|
|
48460
|
-
//#region ../mcp-use/dist/chunk-
|
|
48460
|
+
//#region ../mcp-use/dist/chunk-KDYUSJ4O.js
|
|
48461
48461
|
Zp();
|
|
48462
|
-
var ble = "1.
|
|
48462
|
+
var ble = "1.28.0-canary.5";
|
|
48463
48463
|
function mL() {
|
|
48464
48464
|
return ble;
|
|
48465
48465
|
}
|
|
@@ -55697,7 +55697,7 @@ var Ide = class extends Fle {
|
|
|
55697
55697
|
}
|
|
55698
55698
|
this.streamableTransport = t, this.connectionManager = { stop: /* @__PURE__ */ W(async () => {
|
|
55699
55699
|
if (this.streamableTransport) try {
|
|
55700
|
-
await this.streamableTransport.
|
|
55700
|
+
await this.streamableTransport.close();
|
|
55701
55701
|
} catch (e) {
|
|
55702
55702
|
rm.warn(`Error closing Streamable HTTP transport: ${e}`);
|
|
55703
55703
|
} finally {
|
|
@@ -55741,6 +55741,14 @@ var Ide = class extends Fle {
|
|
|
55741
55741
|
getTransportType() {
|
|
55742
55742
|
return this.transportType;
|
|
55743
55743
|
}
|
|
55744
|
+
async cleanupResources() {
|
|
55745
|
+
if (this.streamableTransport) try {
|
|
55746
|
+
await this.streamableTransport.terminateSession();
|
|
55747
|
+
} catch (e) {
|
|
55748
|
+
rm.debug(`Error terminating Streamable HTTP session: ${e}`);
|
|
55749
|
+
}
|
|
55750
|
+
await super.cleanupResources();
|
|
55751
|
+
}
|
|
55744
55752
|
};
|
|
55745
55753
|
function Rde(e, t) {
|
|
55746
55754
|
return {
|
|
@@ -56189,6 +56197,17 @@ var Kde = class {
|
|
|
56189
56197
|
this._refreshPromise = null;
|
|
56190
56198
|
}
|
|
56191
56199
|
}
|
|
56200
|
+
async forceRefresh() {
|
|
56201
|
+
let e = await this.store.get(this.getKey("tokens"));
|
|
56202
|
+
if (!e) return null;
|
|
56203
|
+
let t;
|
|
56204
|
+
try {
|
|
56205
|
+
t = JSON.parse(e);
|
|
56206
|
+
} catch {
|
|
56207
|
+
return null;
|
|
56208
|
+
}
|
|
56209
|
+
return t.refresh_token ? this._dedupedRefresh(t) : null;
|
|
56210
|
+
}
|
|
56192
56211
|
};
|
|
56193
56212
|
async function Jde(e) {
|
|
56194
56213
|
return typeof e == "string" ? e : e instanceof URLSearchParams || e instanceof FormData ? Object.fromEntries(e.entries()) : e instanceof Blob ? await e.text() : e;
|
|
@@ -145086,7 +145105,7 @@ function L0e({ children: e }) {
|
|
|
145086
145105
|
}) });
|
|
145087
145106
|
}
|
|
145088
145107
|
//#endregion
|
|
145089
|
-
//#region ../mcp-use/dist/chunk-
|
|
145108
|
+
//#region ../mcp-use/dist/chunk-MMRBRXYD.js
|
|
145090
145109
|
Zp();
|
|
145091
145110
|
function $9(e) {
|
|
145092
145111
|
let t = /* @__PURE__ */ W(() => {
|
|
@@ -145104,28 +145123,7 @@ function R0e([e, t]) {
|
|
|
145104
145123
|
return `${encodeURIComponent(e)}${t.length > 0 ? `=${encodeURIComponent(t)}` : ""}`;
|
|
145105
145124
|
}
|
|
145106
145125
|
W(R0e, "sanitizeParam");
|
|
145107
|
-
var z0e = class {
|
|
145108
|
-
static {
|
|
145109
|
-
W(this, "LocalStorageKVStore");
|
|
145110
|
-
}
|
|
145111
|
-
get(e) {
|
|
145112
|
-
return localStorage.getItem(e);
|
|
145113
|
-
}
|
|
145114
|
-
set(e, t) {
|
|
145115
|
-
localStorage.setItem(e, t);
|
|
145116
|
-
}
|
|
145117
|
-
remove(e) {
|
|
145118
|
-
localStorage.removeItem(e);
|
|
145119
|
-
}
|
|
145120
|
-
keys() {
|
|
145121
|
-
let e = [];
|
|
145122
|
-
for (let t = 0; t < localStorage.length; t++) {
|
|
145123
|
-
let n = localStorage.key(t);
|
|
145124
|
-
n && e.push(n);
|
|
145125
|
-
}
|
|
145126
|
-
return e;
|
|
145127
|
-
}
|
|
145128
|
-
}, B0e = class e {
|
|
145126
|
+
var z0e = class e {
|
|
145129
145127
|
static {
|
|
145130
145128
|
W(this, "OAuthSessionStore");
|
|
145131
145129
|
}
|
|
@@ -145284,6 +145282,42 @@ var z0e = class {
|
|
|
145284
145282
|
this._refreshPromise = null;
|
|
145285
145283
|
}
|
|
145286
145284
|
}
|
|
145285
|
+
async forceRefresh() {
|
|
145286
|
+
let e = await this.store.get(this.getKey("tokens"));
|
|
145287
|
+
if (!e) return null;
|
|
145288
|
+
let t;
|
|
145289
|
+
try {
|
|
145290
|
+
t = JSON.parse(e);
|
|
145291
|
+
} catch {
|
|
145292
|
+
return null;
|
|
145293
|
+
}
|
|
145294
|
+
return t.refresh_token ? this._dedupedRefresh(t) : null;
|
|
145295
|
+
}
|
|
145296
|
+
};
|
|
145297
|
+
//#endregion
|
|
145298
|
+
//#region ../mcp-use/dist/chunk-ZXGVZARC.js
|
|
145299
|
+
Zp();
|
|
145300
|
+
var B0e = class {
|
|
145301
|
+
static {
|
|
145302
|
+
W(this, "LocalStorageKVStore");
|
|
145303
|
+
}
|
|
145304
|
+
get(e) {
|
|
145305
|
+
return localStorage.getItem(e);
|
|
145306
|
+
}
|
|
145307
|
+
set(e, t) {
|
|
145308
|
+
localStorage.setItem(e, t);
|
|
145309
|
+
}
|
|
145310
|
+
remove(e) {
|
|
145311
|
+
localStorage.removeItem(e);
|
|
145312
|
+
}
|
|
145313
|
+
keys() {
|
|
145314
|
+
let e = [];
|
|
145315
|
+
for (let t = 0; t < localStorage.length; t++) {
|
|
145316
|
+
let n = localStorage.key(t);
|
|
145317
|
+
n && e.push(n);
|
|
145318
|
+
}
|
|
145319
|
+
return e;
|
|
145320
|
+
}
|
|
145287
145321
|
};
|
|
145288
145322
|
async function V0e(e) {
|
|
145289
145323
|
return typeof e == "string" ? e : e instanceof URLSearchParams || e instanceof FormData ? Object.fromEntries(e.entries()) : e instanceof Blob ? await e.text() : e;
|
|
@@ -145304,7 +145338,7 @@ var H0e = class {
|
|
|
145304
145338
|
_lastOriginalResource = null;
|
|
145305
145339
|
onPopupWindow;
|
|
145306
145340
|
constructor(e, t = {}) {
|
|
145307
|
-
this.serverUrl = e, this.session = new
|
|
145341
|
+
this.serverUrl = e, this.session = new z0e(e, t, new B0e()), this.preventAutoAuth = t.preventAutoAuth, this.useRedirectFlow = t.useRedirectFlow, this.oauthProxyUrl = t.oauthProxyUrl, this.connectionUrl = t.connectionUrl, this.staticClientInfo = t.staticClientInfo, this.onPopupWindow = t.onPopupWindow;
|
|
145308
145342
|
}
|
|
145309
145343
|
get storageKeyPrefix() {
|
|
145310
145344
|
return this.session.storageKeyPrefix;
|