@omniviewdev/runtime 0.24.0 → 0.25.0
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/api.cjs +1 -1
- package/dist/api.js +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +3 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +68 -68
- package/dist/{models-CX8HlqvF.cjs → models-BHsd9kBp.cjs} +1 -1
- package/dist/{models-B_Ef0-Dw.js → models-CLq49NOj.js} +1 -1
- package/dist/{models-eKPHQdEl.js → models-CewFz24b.js} +4 -1
- package/dist/models-DH1E1koG.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.js +3 -3
- package/dist/{service-CbJRfldb.js → service-Bu30yNPj.js} +1 -1
- package/dist/{service-DyXmAdcM.cjs → service-wGUMmq3M.cjs} +1 -1
- package/package.json +1 -1
- package/dist/models-B3B5AdrM.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsx as k, jsxs as X, Fragment as Vt } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as x } from "react/compiler-runtime";
|
|
3
3
|
import L, { useEffect as ge, useContext as ze, createContext as ht, useSyncExternalStore as We, useCallback as we, useState as pe, useRef as ce, createElement as Yn, useId as Xn, useMemo as Zn, useLayoutEffect as es, Component as ts } from "react";
|
|
4
4
|
import "./index-zyAgCXOO.js";
|
|
5
|
-
import { G as ns, C as ss, V as rs, F as os, O as is, h as cs, i as as, S as ls, j as us, k as ds, I as fs, R as ps, o as gs, p as hs, L as ys, q as ms, r as vs, t as bs, u as ws, v as Es, w as Ss, x as Is, y as Cs, z as _s, A as Ds, B as Ns, D as Rs, E as ks, H as Os, J as As, K as Ts, M as Ps, N as xs, Q as qs, P as Ls, U as ln, T as Fs, W as Sn, X as $s, Y as Ms, Z as In, _ as Us, $ as Ks, a0 as Gs, a1 as js, a2 as Cn, a3 as Qs, a4 as un, a5 as zs, a6 as Ws, a7 as Bs, a8 as Js, a9 as Vs, aa as Hs, ab as Ys, ac as Xs, ad as dn, ae as Zs, af as er, ag as tr, ah as nr, ai as sr, aj as rr } from "./service-
|
|
5
|
+
import { G as ns, C as ss, V as rs, F as os, O as is, h as cs, i as as, S as ls, j as us, k as ds, I as fs, R as ps, o as gs, p as hs, L as ys, q as ms, r as vs, t as bs, u as ws, v as Es, w as Ss, x as Is, y as Cs, z as _s, A as Ds, B as Ns, D as Rs, E as ks, H as Os, J as As, K as Ts, M as Ps, N as xs, Q as qs, P as Ls, U as ln, T as Fs, W as Sn, X as $s, Y as Ms, Z as In, _ as Us, $ as Ks, a0 as Gs, a1 as js, a2 as Cn, a3 as Qs, a4 as un, a5 as zs, a6 as Ws, a7 as Bs, a8 as Js, a9 as Vs, aa as Hs, ab as Ys, ac as Xs, ad as dn, ae as Zs, af as er, ag as tr, ah as nr, ai as sr, aj as rr } from "./service-Bu30yNPj.js";
|
|
6
6
|
import { O as G, E as or, a as _n } from "./events-uBheGmqm.js";
|
|
7
7
|
import { s as ir } from "./graph-iJFYWdRz.js";
|
|
8
|
-
import { useQueryClient as te, useQuery as j, useMutation as Y, keepPreviousData as Dn, CancelledError as
|
|
8
|
+
import { useQueryClient as te, useQuery as j, useMutation as Y, keepPreviousData as Dn, CancelledError as dt, skipToken as se, useIsMutating as cr, useQueries as ar, hashKey as Nt } from "@tanstack/react-query";
|
|
9
9
|
import { Link as lr, useNavigate as ur, useLocation as dr, createMemoryRouter as fr } from "react-router";
|
|
10
|
-
import { useToast as pr, Card as gr, Toolbar as fn, Text as Re, IconButton as
|
|
11
|
-
import { P as vr, S as Nn, F as br } from "./models-
|
|
10
|
+
import { useToast as pr, Card as gr, Toolbar as fn, Text as Re, IconButton as lt, EmptyState as hr, Button as xe, Code as yr, Spinner as mr } from "@omniviewdev/base-ui";
|
|
11
|
+
import { P as vr, S as Nn, F as br } from "./models-CewFz24b.js";
|
|
12
12
|
import { RouterProvider as wr } from "react-router/dom";
|
|
13
13
|
const Ht = L.createContext(void 0), Ut = {
|
|
14
14
|
kind: "host"
|
|
@@ -223,14 +223,14 @@ function Ot() {
|
|
|
223
223
|
recovery: "none"
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
if (e >
|
|
226
|
+
function Ze(t, e) {
|
|
227
|
+
if (e > 12) return;
|
|
228
228
|
if (t === "cancelled") return Ot();
|
|
229
229
|
if (typeof t == "string") {
|
|
230
|
-
const n = t.trim();
|
|
231
|
-
if (!n.startsWith("
|
|
230
|
+
const n = t.trim(), r = n.indexOf("{");
|
|
231
|
+
if (r < 0 && !n.startsWith('"')) return;
|
|
232
232
|
try {
|
|
233
|
-
return
|
|
233
|
+
return Ze(JSON.parse(n.startsWith('"') ? n : n.slice(r)), e + 1);
|
|
234
234
|
} catch {
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
@@ -244,15 +244,15 @@ function dt(t, e) {
|
|
|
244
244
|
title: s.title,
|
|
245
245
|
status: s.status,
|
|
246
246
|
detail: s.detail
|
|
247
|
-
};
|
|
248
|
-
fe(s.code, 64) && (n.code = s.code), fe(s.requestId, 256) && (n.requestId = s.requestId), fe(s.instance, 512) && (n.instance = s.instance), Array.isArray(s.suggestions) && (n.suggestions = s.suggestions.filter((
|
|
249
|
-
const
|
|
250
|
-
return !!
|
|
247
|
+
}, r = Ze(s.detail, e + 1);
|
|
248
|
+
r ? n.detail = `${r.title}: ${r.detail}` : /^\s*[{"]|:\s*\{/.test(s.detail) && (n.detail = "The operation could not be completed."), fe(s.code, 64) && (n.code = s.code), fe(s.requestId, 256) && (n.requestId = s.requestId), fe(s.instance, 512) && (n.instance = s.instance), Array.isArray(s.suggestions) && (n.suggestions = s.suggestions.filter((o) => fe(o, 512)).slice(0, 8)), Array.isArray(s.actions) && (n.actions = s.actions.filter((o) => {
|
|
249
|
+
const a = kt(o);
|
|
250
|
+
return !!a && ["navigate", "retry", "open-url", "copy"].includes(String(a.type)) && fe(a.label, 256) && (a.target === void 0 || fe(a.target, 4096));
|
|
251
251
|
}).slice(0, 8)), ["correctRequest", "refreshContract", "restartQuery", "reconnect", "none"].includes(String(s.recovery)) && (n.recovery = s.recovery);
|
|
252
|
-
const
|
|
253
|
-
return
|
|
254
|
-
start:
|
|
255
|
-
end:
|
|
252
|
+
const i = kt(s.location);
|
|
253
|
+
return i?.unit === "utf8-byte" && typeof i.start == "number" && typeof i.end == "number" && Number.isSafeInteger(i.start) && Number.isSafeInteger(i.end) && i.start >= 0 && i.end >= i.start && (n.location = {
|
|
254
|
+
start: i.start,
|
|
255
|
+
end: i.end,
|
|
256
256
|
unit: "utf8-byte"
|
|
257
257
|
}), n;
|
|
258
258
|
}
|
|
@@ -272,11 +272,11 @@ function dt(t, e) {
|
|
|
272
272
|
} : {}
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
return
|
|
275
|
+
return Ze(s.message, e + 1) ?? Ze(s.cause, e + 1);
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
function he(t) {
|
|
279
|
-
return
|
|
279
|
+
return Ze(t, 0) ?? {
|
|
280
280
|
type: V.INTERNAL,
|
|
281
281
|
title: t == null ? "Unknown error" : "Error",
|
|
282
282
|
status: 500,
|
|
@@ -334,7 +334,7 @@ function An(t, e) {
|
|
|
334
334
|
actions: t.actions?.map(Dr)
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function tt(t, e, s) {
|
|
338
338
|
if (ft(e)) return;
|
|
339
339
|
const n = he(e);
|
|
340
340
|
t(An(n, s));
|
|
@@ -663,7 +663,7 @@ function Gt(t, e) {
|
|
|
663
663
|
throw new Lr(e);
|
|
664
664
|
}
|
|
665
665
|
var qn = ["debug", "log", "warn", "error", "silent"], Fr = qn.indexOf("log");
|
|
666
|
-
function
|
|
666
|
+
function ut(t) {
|
|
667
667
|
return function() {
|
|
668
668
|
if (qn.indexOf(t) >= Fr) {
|
|
669
669
|
var e = console[t] || console.log;
|
|
@@ -672,7 +672,7 @@ function lt(t) {
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
(function(t) {
|
|
675
|
-
t.debug =
|
|
675
|
+
t.debug = ut("debug"), t.log = ut("log"), t.warn = ut("warn"), t.error = ut("error");
|
|
676
676
|
})(Gt || (Gt = {}));
|
|
677
677
|
const Ln = ht(void 0), $r = () => ze(Ln);
|
|
678
678
|
function Fn(t) {
|
|
@@ -1135,10 +1135,10 @@ const re = {
|
|
|
1135
1135
|
/* @__PURE__ */ k(Re, { size: "sm", weight: "semibold", children: "Notifications" }),
|
|
1136
1136
|
/* @__PURE__ */ k(Re, { size: "xs", tone: "muted", children: r.length }),
|
|
1137
1137
|
/* @__PURE__ */ X(fn.Group, { style: re.HeaderActions, children: [
|
|
1138
|
-
/* @__PURE__ */ k(
|
|
1138
|
+
/* @__PURE__ */ k(lt, { size: "sm", variant: "ghost", "aria-label": "Clear history", title: "Clear history", disabled: r.length === 0, onClick: () => {
|
|
1139
1139
|
i([]), c(void 0), d("");
|
|
1140
1140
|
}, children: /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ k("path", { d: "m3 3 6 6m0-6L3 9M13 6h8M3 14h18M3 20h18" }) }) }),
|
|
1141
|
-
/* @__PURE__ */ k(
|
|
1141
|
+
/* @__PURE__ */ k(lt, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
|
|
1142
1142
|
a(!1);
|
|
1143
1143
|
}, children: /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ k("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
1144
1144
|
] })
|
|
@@ -1156,10 +1156,10 @@ const re = {
|
|
|
1156
1156
|
/* @__PURE__ */ k(xe, { size: "sm", variant: "ghost", style: re.Message, "aria-expanded": h, "aria-controls": `notification-${m.id}`, title: m.message, onClick: () => {
|
|
1157
1157
|
c(h ? void 0 : m.id), d("");
|
|
1158
1158
|
}, children: /* @__PURE__ */ k(Re, { size: "sm", style: re.MessageText, truncate: !h, children: m.message }) }),
|
|
1159
|
-
/* @__PURE__ */ k(
|
|
1159
|
+
/* @__PURE__ */ k(lt, { size: "sm", variant: "ghost", "aria-label": h ? "Collapse details" : "Expand details", title: h ? "Collapse details" : "Expand details", "aria-expanded": h, "aria-controls": `notification-${m.id}`, onClick: () => {
|
|
1160
1160
|
c(h ? void 0 : m.id), d("");
|
|
1161
1161
|
}, children: /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ k("path", { d: h ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
|
|
1162
|
-
/* @__PURE__ */ k(
|
|
1162
|
+
/* @__PURE__ */ k(lt, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${m.message}`, title: "Dismiss notification", onClick: () => {
|
|
1163
1163
|
i((v) => v.filter((b) => b.id !== m.id)), h && (c(void 0), d(""));
|
|
1164
1164
|
}, children: /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ k("path", { d: "m6 6 12 12m0-12L6 18" }) }) })
|
|
1165
1165
|
] }),
|
|
@@ -1224,12 +1224,12 @@ function ke(t, e) {
|
|
|
1224
1224
|
starts: /* @__PURE__ */ new Set()
|
|
1225
1225
|
}, ae.set(s, n)), n;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function et(t, e) {
|
|
1228
1228
|
t.snapshot.phase === "connected" && e.phase !== "connected" && (t.generation = ++Zt), t.snapshot = e;
|
|
1229
1229
|
for (const s of t.listeners) s();
|
|
1230
1230
|
}
|
|
1231
1231
|
function Oe(t, e, s = !1) {
|
|
1232
|
-
t.generation = ++Zt, t.version++, s || (t.operation = void 0),
|
|
1232
|
+
t.generation = ++Zt, t.version++, s || (t.operation = void 0), et(t, e);
|
|
1233
1233
|
}
|
|
1234
1234
|
function Wr(t) {
|
|
1235
1235
|
switch (t) {
|
|
@@ -1330,22 +1330,22 @@ function Ce(t, e, s = !1) {
|
|
|
1330
1330
|
if (t.stop) return Promise.reject(new Error("Connection is disconnecting. Wait for it to stop before connecting."));
|
|
1331
1331
|
const n = Be.get(t.pluginID);
|
|
1332
1332
|
if (n)
|
|
1333
|
-
return
|
|
1333
|
+
return et(t, {
|
|
1334
1334
|
phase: "error",
|
|
1335
1335
|
message: n,
|
|
1336
1336
|
connection: t.snapshot.connection
|
|
1337
1337
|
}), Promise.reject(new Error(n));
|
|
1338
1338
|
if (t.operation && (e === "check" || t.operation.kind === "start")) return t.operation.promise;
|
|
1339
1339
|
const r = ++t.version;
|
|
1340
|
-
(!s || t.snapshot.phase !== "connected") &&
|
|
1340
|
+
(!s || t.snapshot.phase !== "connected") && et(t, {
|
|
1341
1341
|
phase: e === "start" ? "connecting" : "checking",
|
|
1342
1342
|
connection: t.snapshot.connection
|
|
1343
1343
|
}), e === "start" && t.starts.add(r);
|
|
1344
1344
|
const i = Promise.resolve().then(() => {
|
|
1345
1345
|
if (t.version !== r) throw new Error("Connection readiness changed before the operation began.");
|
|
1346
1346
|
return e === "start" ? us(t.pluginID, t.connectionID) : as(t.pluginID, t.connectionID);
|
|
1347
|
-
}).then((o) => (t.version === r &&
|
|
1348
|
-
throw t.version === r &&
|
|
1347
|
+
}).then((o) => (t.version === r && et(t, Un(o, o.connection ?? t.snapshot.connection)), o), (o) => {
|
|
1348
|
+
throw t.version === r && et(t, Kn(o, t.snapshot.connection)), o;
|
|
1349
1349
|
}).finally(() => {
|
|
1350
1350
|
e === "start" && t.starts.delete(r), t.operation?.version === r && (t.operation = void 0);
|
|
1351
1351
|
});
|
|
@@ -1685,7 +1685,7 @@ function ie(t, e) {
|
|
|
1685
1685
|
const s = te();
|
|
1686
1686
|
return we(async (n, r, i, o = e) => {
|
|
1687
1687
|
const a = o, l = Gn(t, a), c = () => l !== void 0 && jn(t, a, l);
|
|
1688
|
-
if (r.aborted || !c()) throw new
|
|
1688
|
+
if (r.aborted || !c()) throw new dt({
|
|
1689
1689
|
revert: !0
|
|
1690
1690
|
});
|
|
1691
1691
|
let u, d = !1, f = !1;
|
|
@@ -1707,12 +1707,12 @@ function ie(t, e) {
|
|
|
1707
1707
|
once: !0
|
|
1708
1708
|
});
|
|
1709
1709
|
try {
|
|
1710
|
-
if (r.aborted || d || !c()) throw new
|
|
1710
|
+
if (r.aborted || d || !c()) throw new dt({
|
|
1711
1711
|
revert: !0
|
|
1712
1712
|
});
|
|
1713
1713
|
u = i();
|
|
1714
1714
|
const m = await u;
|
|
1715
|
-
if (r.aborted || d || !c()) throw new
|
|
1715
|
+
if (r.aborted || d || !c()) throw new dt({
|
|
1716
1716
|
revert: !0
|
|
1717
1717
|
});
|
|
1718
1718
|
return m;
|
|
@@ -2153,7 +2153,7 @@ function bi(t) {
|
|
|
2153
2153
|
let r;
|
|
2154
2154
|
return e[3] !== s || e[4] !== t || e[5] !== n ? (r = /* @__PURE__ */ Yn(io, { ...t, pluginID: s, key: n }), e[3] = s, e[4] = t, e[5] = n, e[6] = r) : r = e[6], r;
|
|
2155
2155
|
}
|
|
2156
|
-
const
|
|
2156
|
+
const nt = {
|
|
2157
2157
|
supported: void 0,
|
|
2158
2158
|
transportAvailable: !1,
|
|
2159
2159
|
isLoading: !1
|
|
@@ -2176,7 +2176,7 @@ function Qe(t, e) {
|
|
|
2176
2176
|
return n || (n = {
|
|
2177
2177
|
pluginID: t,
|
|
2178
2178
|
connectionID: e,
|
|
2179
|
-
state:
|
|
2179
|
+
state: nt,
|
|
2180
2180
|
listeners: /* @__PURE__ */ new Set(),
|
|
2181
2181
|
epoch: 0,
|
|
2182
2182
|
eventVersion: 0
|
|
@@ -2213,7 +2213,7 @@ function Jn(t, e) {
|
|
|
2213
2213
|
s.retired.add(s.registrationID);
|
|
2214
2214
|
for (const i of s.connections.values())
|
|
2215
2215
|
i.epoch++, i.pending = void 0, i.revision = void 0, Ie(i, {
|
|
2216
|
-
...
|
|
2216
|
+
...nt,
|
|
2217
2217
|
snapshot: void 0,
|
|
2218
2218
|
error: void 0
|
|
2219
2219
|
});
|
|
@@ -2293,7 +2293,7 @@ function wi(t, e) {
|
|
|
2293
2293
|
s[0] !== e || s[1] !== r || s[2] !== n ? (i = (p) => r ? nn(Qe(n, e), p) : uo, s[0] = e, s[1] = r, s[2] = n, s[3] = i) : i = s[3];
|
|
2294
2294
|
const o = i;
|
|
2295
2295
|
let a;
|
|
2296
|
-
s[4] !== e || s[5] !== r || s[6] !== n ? (a = () => r ? Qe(n, e).state :
|
|
2296
|
+
s[4] !== e || s[5] !== r || s[6] !== n ? (a = () => r ? Qe(n, e).state : nt, s[4] = e, s[5] = r, s[6] = n, s[7] = a) : a = s[7];
|
|
2297
2297
|
const c = We(o, a, lo);
|
|
2298
2298
|
let u;
|
|
2299
2299
|
s[8] !== e || s[9] !== r || s[10] !== n ? (u = () => {
|
|
@@ -2308,7 +2308,7 @@ function wi(t, e) {
|
|
|
2308
2308
|
}, s[12] = d, s[13] = c, s[14] = f) : f = s[14], f;
|
|
2309
2309
|
}
|
|
2310
2310
|
function lo() {
|
|
2311
|
-
return
|
|
2311
|
+
return nt;
|
|
2312
2312
|
}
|
|
2313
2313
|
function uo() {
|
|
2314
2314
|
}
|
|
@@ -2340,7 +2340,7 @@ function po(t, e, s) {
|
|
|
2340
2340
|
let n, r;
|
|
2341
2341
|
return {
|
|
2342
2342
|
read() {
|
|
2343
|
-
const i = e === void 0 ?
|
|
2343
|
+
const i = e === void 0 ? nt : Qe(t, e).state;
|
|
2344
2344
|
return n !== i && (r = s(i), n = i), r;
|
|
2345
2345
|
}
|
|
2346
2346
|
};
|
|
@@ -2507,7 +2507,7 @@ const _i = () => {
|
|
|
2507
2507
|
raw: y.detail
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
}),
|
|
2510
|
+
}), tt(s, p, "Failed to start session"), null;
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
2513
|
}).mutateAsync
|
|
@@ -2562,7 +2562,7 @@ function Ni(t) {
|
|
|
2562
2562
|
...T
|
|
2563
2563
|
})), !0;
|
|
2564
2564
|
} catch (A) {
|
|
2565
|
-
return
|
|
2565
|
+
return tt(i, A, "Failed to open native terminal"), !1;
|
|
2566
2566
|
}
|
|
2567
2567
|
}, e[14] = r, e[15] = i, e[16] = b) : b = e[16];
|
|
2568
2568
|
let E;
|
|
@@ -3487,7 +3487,7 @@ function Oo(t, e) {
|
|
|
3487
3487
|
};
|
|
3488
3488
|
const o = (c, u) => {
|
|
3489
3489
|
i(), e.removeEventListener("abort", a), c ? n(c) : s(u);
|
|
3490
|
-
}, a = () => o(new
|
|
3490
|
+
}, a = () => o(new dt({
|
|
3491
3491
|
revert: !0
|
|
3492
3492
|
})), l = () => {
|
|
3493
3493
|
const c = t.getSnapshot();
|
|
@@ -3605,13 +3605,13 @@ const Ki = (t) => {
|
|
|
3605
3605
|
const Z = J;
|
|
3606
3606
|
return c && U && await (await U.client).refresh(), Pe(...Z);
|
|
3607
3607
|
}, e[55] = c, e[56] = U, e[57] = Pe, e[58] = Fe) : Fe = e[58];
|
|
3608
|
-
const
|
|
3609
|
-
let
|
|
3610
|
-
e[59] !== c || e[60] !==
|
|
3608
|
+
const st = Fe;
|
|
3609
|
+
let rt;
|
|
3610
|
+
e[59] !== c || e[60] !== st || e[61] !== Se ? (rt = c ? {
|
|
3611
3611
|
...Se,
|
|
3612
|
-
refetch:
|
|
3613
|
-
} : Se, e[59] = c, e[60] =
|
|
3614
|
-
const Je =
|
|
3612
|
+
refetch: st
|
|
3613
|
+
} : Se, e[59] = c, e[60] = st, e[61] = Se, e[62] = rt) : rt = e[62];
|
|
3614
|
+
const Je = rt, [Ve, rn] = L.useState();
|
|
3615
3615
|
let $e = Ve;
|
|
3616
3616
|
if (A && h && Je.isSuccess && Je.data) {
|
|
3617
3617
|
if (Ve?.identity !== A || Ve.requestHash !== p) {
|
|
@@ -3625,9 +3625,9 @@ const Ki = (t) => {
|
|
|
3625
3625
|
} else
|
|
3626
3626
|
Ve && Ve.identity !== A && ($e = void 0, rn(void 0));
|
|
3627
3627
|
const ue = A && $e?.identity === A ? $e.request : void 0;
|
|
3628
|
-
let
|
|
3629
|
-
e[67] !== ue || e[68] !== C ? (
|
|
3630
|
-
const bt =
|
|
3628
|
+
let ot;
|
|
3629
|
+
e[67] !== ue || e[68] !== C ? (ot = C(ue), e[67] = ue, e[68] = C, e[69] = ot) : ot = e[69];
|
|
3630
|
+
const bt = ot;
|
|
3631
3631
|
let Me;
|
|
3632
3632
|
e[70] !== ue || e[71] !== c || e[72] !== ee || e[73] !== _ ? (Me = _ && ue && !c ? (J) => {
|
|
3633
3633
|
const {
|
|
@@ -3636,24 +3636,24 @@ const Ki = (t) => {
|
|
|
3636
3636
|
} = J;
|
|
3637
3637
|
return ee(ue, Z, de);
|
|
3638
3638
|
} : se, e[70] = ue, e[71] = c, e[72] = ee, e[73] = _, e[74] = Me) : Me = e[74];
|
|
3639
|
-
let
|
|
3640
|
-
e[75] !== bt || e[76] !== Me ? (
|
|
3639
|
+
let it;
|
|
3640
|
+
e[75] !== bt || e[76] !== Me ? (it = {
|
|
3641
3641
|
queryKey: bt,
|
|
3642
3642
|
queryFn: Me,
|
|
3643
3643
|
enabled: !1,
|
|
3644
3644
|
retry: !1,
|
|
3645
3645
|
gcTime: 0,
|
|
3646
3646
|
placeholderData: void 0
|
|
3647
|
-
}, e[75] = bt, e[76] = Me, e[77] =
|
|
3648
|
-
const He = j(
|
|
3649
|
-
let
|
|
3650
|
-
e[78] !== ue || e[79] !== He.data ? (
|
|
3647
|
+
}, e[75] = bt, e[76] = Me, e[77] = it) : it = e[77];
|
|
3648
|
+
const He = j(it);
|
|
3649
|
+
let ct;
|
|
3650
|
+
e[78] !== ue || e[79] !== He.data ? (ct = ue && He.data ? {
|
|
3651
3651
|
request: ue,
|
|
3652
3652
|
page: He.data
|
|
3653
|
-
} : void 0, e[78] = ue, e[79] = He.data, e[80] =
|
|
3654
|
-
const Ye =
|
|
3655
|
-
let
|
|
3656
|
-
return e[81] !== Ye || e[82] !== Je || e[83] !== ve || e[84] !== wt || e[85] !== Et || e[86] !== St || e[87] !== It || e[88] !== Ct || e[89] !== _t || e[90] !== Dt ? (
|
|
3653
|
+
} : void 0, e[78] = ue, e[79] = He.data, e[80] = ct) : ct = e[80];
|
|
3654
|
+
const Ye = ct, ve = U && Q?.key === P ? Q.status : void 0, wt = !!Ye && $e?.requestHash === p, Et = c ? st : He.refetch, St = Ye?.page.view, It = ve?.state === "following", Ct = ve?.state === "opening" || ve?.state === "snapshotting" || ve?.state === "resetRequired", _t = ve?.state === "following" || ve?.state === "finished", Dt = ve?.state === "failed";
|
|
3655
|
+
let at;
|
|
3656
|
+
return e[81] !== Ye || e[82] !== Je || e[83] !== ve || e[84] !== wt || e[85] !== Et || e[86] !== St || e[87] !== It || e[88] !== Ct || e[89] !== _t || e[90] !== Dt ? (at = {
|
|
3657
3657
|
resources: Je,
|
|
3658
3658
|
acquired: Ye,
|
|
3659
3659
|
isAcquiredRequestCurrent: wt,
|
|
@@ -3664,7 +3664,7 @@ const Ki = (t) => {
|
|
|
3664
3664
|
isSyncing: Ct,
|
|
3665
3665
|
isSynced: _t,
|
|
3666
3666
|
sourceError: Dt
|
|
3667
|
-
}, e[81] = Ye, e[82] = Je, e[83] = ve, e[84] = wt, e[85] = Et, e[86] = St, e[87] = It, e[88] = Ct, e[89] = _t, e[90] = Dt, e[91] =
|
|
3667
|
+
}, e[81] = Ye, e[82] = Je, e[83] = ve, e[84] = wt, e[85] = Et, e[86] = St, e[87] = It, e[88] = Ct, e[89] = _t, e[90] = Dt, e[91] = at) : at = e[91], at;
|
|
3668
3668
|
};
|
|
3669
3669
|
function Ao() {
|
|
3670
3670
|
}
|
|
@@ -3753,7 +3753,7 @@ const Gi = (t) => {
|
|
|
3753
3753
|
}, e[2] = n, e[3] = r, e[4] = a) : a = e[4];
|
|
3754
3754
|
let l;
|
|
3755
3755
|
e[5] !== i ? (l = (f, p) => {
|
|
3756
|
-
|
|
3756
|
+
tt(i, f, `Failed to execute action "${p.action}"`);
|
|
3757
3757
|
}, e[5] = i, e[6] = l) : l = e[6];
|
|
3758
3758
|
let c;
|
|
3759
3759
|
e[7] !== o || e[8] !== a || e[9] !== l ? (c = {
|
|
@@ -4205,7 +4205,7 @@ const Vi = ({
|
|
|
4205
4205
|
status: ft(b) ? "cancelled" : "error",
|
|
4206
4206
|
message: b.title,
|
|
4207
4207
|
completedAt: Date.now()
|
|
4208
|
-
}),
|
|
4208
|
+
}), tt(s, b, u), o(d);
|
|
4209
4209
|
} else if (m.type === "complete") {
|
|
4210
4210
|
d.terminal = !0;
|
|
4211
4211
|
const b = typeof v.message == "string" ? v.message : `${u} completed`;
|
|
@@ -4232,7 +4232,7 @@ const Vi = ({
|
|
|
4232
4232
|
status: ft(f) ? "cancelled" : "error",
|
|
4233
4233
|
message: he(f).title,
|
|
4234
4234
|
completedAt: Date.now()
|
|
4235
|
-
}),
|
|
4235
|
+
}), tt(s, f, `Failed to start "${c.action}"`)), o(d), f;
|
|
4236
4236
|
}
|
|
4237
4237
|
}, [e, n, r, s, o]), l = L.useCallback((c) => {
|
|
4238
4238
|
for (const u of i.current) if (u.handle === c) {
|
|
@@ -4806,7 +4806,7 @@ export {
|
|
|
4806
4806
|
ui as selectResourceEditor,
|
|
4807
4807
|
Er as settingsQueryKey,
|
|
4808
4808
|
On as settingsWindowTarget,
|
|
4809
|
-
|
|
4809
|
+
tt as showAppError,
|
|
4810
4810
|
Lo as toRelatedResources,
|
|
4811
4811
|
Bi as useActiveSyncs,
|
|
4812
4812
|
Vn as useBottomDrawer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-
|
|
1
|
+
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-DH1E1koG.cjs");class r{Provider;Connection;ResourceType;Object;Action;Scope;constructor(i={}){"Provider"in i||(this.Provider=""),"Connection"in i||(this.Connection=""),"ResourceType"in i||(this.ResourceType=""),"Object"in i||(this.Object=""),"Action"in i||(this.Action=""),"Scope"in i||(this.Scope={}),Object.assign(this,i)}static createFrom(i={}){const t=P;let n=typeof i=="string"?JSON.parse(i):i;return"Scope"in n&&(n.Scope=t(n.Scope)),new r(n)}}const P=s.Map(s.Any,s.Any);class l{enabled;port;endpoint;token;blockConnectionsByDefault;globalPreset;userPresets;constructor(i={}){"enabled"in i||(this.enabled=!1),"port"in i||(this.port=0),"endpoint"in i||(this.endpoint=""),"token"in i||(this.token=""),"blockConnectionsByDefault"in i||(this.blockConnectionsByDefault=!1),"globalPreset"in i||(this.globalPreset=""),"userPresets"in i||(this.userPresets=[]),Object.assign(this,i)}static createFrom(i={}){const t=j;let n=typeof i=="string"?JSON.parse(i):i;return"userPresets"in n&&(n.userPresets=t(n.userPresets)),new l(n)}}class S{id;approved;reason;constructor(i={}){"id"in i||(this.id=""),"approved"in i||(this.approved=!1),"reason"in i||(this.reason=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new S(t)}}class o{pluginID;pluginName;connectionID;connectionName;access;effectiveAccess;preset;effectivePreset;constructor(i={}){"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"access"in i||(this.access=""),"effectiveAccess"in i||(this.effectiveAccess=!1),"preset"in i||(this.preset=""),"effectivePreset"in i||(this.effectivePreset=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new o(t)}}class f{id;mcpName;pluginID;pluginName;connectionID;connectionName;argumentsJSON;requestedAt;origin;credentialID;sessionID;invocationID;target;policyRevision;catalogRevision;constructor(i={}){"id"in i||(this.id=""),"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"argumentsJSON"in i||(this.argumentsJSON=""),"requestedAt"in i||(this.requestedAt="0001-01-01T00:00:00.000Z"),"origin"in i||(this.origin=""),"credentialID"in i||(this.credentialID=""),"sessionID"in i||(this.sessionID=""),"invocationID"in i||(this.invocationID=""),"target"in i||(this.target=new r),"policyRevision"in i||(this.policyRevision=0),"catalogRevision"in i||(this.catalogRevision=0),Object.assign(this,i)}static createFrom(i={}){const t=F;let n=typeof i=="string"?JSON.parse(i):i;return"target"in n&&(n.target=t(n.target)),new f(n)}}class p{name;builtIn;toolCount;constructor(i={}){"name"in i||(this.name=""),"builtIn"in i||(this.builtIn=!1),"toolCount"in i||(this.toolCount=0),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new p(t)}}class b{pluginID;connectionID;constructor(i={}){"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new b(t)}}class c{enabled;running;endpoint;error;constructor(i={}){"enabled"in i||(this.enabled=!1),"running"in i||(this.running=!1),"endpoint"in i||(this.endpoint=""),"error"in i||(this.error=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new c(t)}}class v{enabled;confirm;constructor(i={}){Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new v(t)}}class d{mcpName;pluginID;connectionID;pluginName;name;title;description;scope;status;builtIn;readOnly;listed;ready;destructive;enabled;enabledSource;confirm;confirmSource;overrideEnabled;overrideConfirm;constructor(i={}){"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),"pluginName"in i||(this.pluginName=""),"name"in i||(this.name=""),"title"in i||(this.title=""),"description"in i||(this.description=""),"scope"in i||(this.scope=""),"status"in i||(this.status=""),"builtIn"in i||(this.builtIn=!1),"readOnly"in i||(this.readOnly=!1),"listed"in i||(this.listed=!1),"ready"in i||(this.ready=!1),"destructive"in i||(this.destructive=!1),"enabled"in i||(this.enabled=!1),"enabledSource"in i||(this.enabledSource=""),"confirm"in i||(this.confirm=!1),"confirmSource"in i||(this.confirmSource=""),"overrideEnabled"in i||(this.overrideEnabled=null),"overrideConfirm"in i||(this.overrideConfirm=null),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new d(t)}}const j=s.Array(s.Any),F=r.createFrom,w=Object.freeze(Object.defineProperty({__proto__:null,ConfigView:l,ConfirmationResolved:S,ConnectionPolicyView:o,PendingConfirmation:f,PresetView:p,Scope:b,Status:c,ToolOverride:v,ToolView:d},Symbol.toStringTag,{value:"Module"}));class a{file;line;column;message;constructor(i={}){"file"in i||(this.file=""),"line"in i||(this.line=0),"column"in i||(this.column=0),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new a(t)}}var D=(e=>(e.$zero="",e.DevProcessStatusIdle="idle",e.DevProcessStatusStarting="starting",e.DevProcessStatusBuilding="building",e.DevProcessStatusRunning="running",e.DevProcessStatusReady="ready",e.DevProcessStatusError="error",e.DevProcessStatusStopped="stopped",e.DevProcessStatusNotApplicable="n/a",e))(D||{});class g{pluginID;errors;constructor(i={}){"pluginID"in i||(this.pluginID=""),"errors"in i||(this.errors=[]),Object.assign(this,i)}static createFrom(i={}){const t=J;let n=typeof i=="string"?JSON.parse(i):i;return"errors"in n&&(n.errors=t(n.errors)),new g(n)}}var y=(e=>(e.$zero="",e.DevServerModeIdle="idle",e.DevServerModeManaged="managed",e))(y||{});class h{pluginID;mode;devPath;vitePort;viteURL;viteStatus;goStatus;lastBuildDuration;lastBuildTime;lastError;grpcConnected;generation;hmrURL;buildStatus;rpcStatus;controllerStatus;ready;constructor(i={}){"pluginID"in i||(this.pluginID=""),"mode"in i||(this.mode=""),"devPath"in i||(this.devPath=""),"vitePort"in i||(this.vitePort=0),"viteURL"in i||(this.viteURL=""),"viteStatus"in i||(this.viteStatus=""),"goStatus"in i||(this.goStatus=""),"lastBuildDuration"in i||(this.lastBuildDuration=N.Duration.$zero),"lastBuildTime"in i||(this.lastBuildTime=""),"lastError"in i||(this.lastError=""),"grpcConnected"in i||(this.grpcConnected=!1),"generation"in i||(this.generation=""),"hmrURL"in i||(this.hmrURL=""),"buildStatus"in i||(this.buildStatus=""),"rpcStatus"in i||(this.rpcStatus=""),"controllerStatus"in i||(this.controllerStatus=""),"ready"in i||(this.ready=!1),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new h(t)}}var I=(e=>(e.$zero="",e.StagePending="pending",e.StageBuilding="building",e.StageReady="ready",e.StageError="error",e.StageStopped="stopped",e.StageNotApplicable="n/a",e))(I||{});let u=class O{timestamp;source;level;message;pluginID;constructor(i={}){"timestamp"in i||(this.timestamp=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),"pluginID"in i||(this.pluginID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new O(t)}};const C=a.createFrom,J=s.Array(C),R=Object.freeze(Object.defineProperty({__proto__:null,BuildError:a,DevProcessStatus:D,DevServerErrorPayload:g,DevServerMode:y,DevServerState:h,LifecycleStage:I,LogEntry:u},Symbol.toStringTag,{value:"Module"}));class m{timestamp;pluginID;source;level;message;constructor(i={}){"timestamp"in i||(this.timestamp=""),"pluginID"in i||(this.pluginID=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new m(t)}}const A=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:m},Symbol.toStringTag,{value:"Module"}));exports.BuildError=a;exports.ConfigView=l;exports.ConnectionPolicyView=o;exports.DevProcessStatus=D;exports.DevServerErrorPayload=g;exports.DevServerMode=y;exports.DevServerState=h;exports.LifecycleStage=I;exports.LogEntry=u;exports.LogEntry$1=m;exports.PendingConfirmation=f;exports.PresetView=p;exports.Status=c;exports.ToolView=d;exports.models=R;exports.models$1=w;exports.models$2=A;
|
|
@@ -279,9 +279,12 @@ class st {
|
|
|
279
279
|
max_ide_version;
|
|
280
280
|
capabilities;
|
|
281
281
|
created_at;
|
|
282
|
+
compatible;
|
|
283
|
+
compatibility_reason;
|
|
284
|
+
discovery_supported;
|
|
282
285
|
/** Creates a new VersionInfo instance. */
|
|
283
286
|
constructor(t = {}) {
|
|
284
|
-
"version" in t || (this.version = ""), "description" in t || (this.description = ""), "changelog" in t || (this.changelog = ""), "min_ide_version" in t || (this.min_ide_version = ""), "max_ide_version" in t || (this.max_ide_version = ""), "capabilities" in t || (this.capabilities = []), "created_at" in t || (this.created_at = ""), Object.assign(this, t);
|
|
287
|
+
"version" in t || (this.version = ""), "description" in t || (this.description = ""), "changelog" in t || (this.changelog = ""), "min_ide_version" in t || (this.min_ide_version = ""), "max_ide_version" in t || (this.max_ide_version = ""), "capabilities" in t || (this.capabilities = []), "created_at" in t || (this.created_at = ""), "compatible" in t || (this.compatible = !1), "compatibility_reason" in t || (this.compatibility_reason = ""), "discovery_supported" in t || (this.discovery_supported = !1), Object.assign(this, t);
|
|
285
288
|
}
|
|
286
289
|
/**
|
|
287
290
|
* Creates a new VersionInfo instance from a string or object.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index-BVi9X4oU.cjs");class fe{connection;constructor(e={}){"connection"in e||(this.connection=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new fe(n)}}class he{address;incarnation;constructor(e={}){"address"in e||(this.address=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new he(n)}}let U=class ke{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=H,i=_;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new ke(s)}},ze=class Be{plugin;resource;target_builder;default_command;supports_native_command;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new U),"default_command"in e||(this.default_command=[]),"supports_native_command"in e||(this.supports_native_command=!1),Object.assign(this,e)}static createFrom(e={}){const n=Qe,i=H;let s=typeof e=="string"?JSON.parse(e):e;return"target_builder"in s&&(s.target_builder=n(s.target_builder)),"default_command"in s&&(s.default_command=i(s.default_command)),new Be(s)}};class q{created_at;labels;params;id;command;attached;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),"params"in e||(this.params={}),"id"in e||(this.id=""),"command"in e||(this.command=[]),"attached"in e||(this.attached=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,s=H;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=n(r.labels)),"params"in r&&(r.params=i(r.params)),"command"in r&&(r.command=s(r.command)),new q(r)}}class D{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(e={}){"params"in e||(this.params={}),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"resource_plugin"in e||(this.resource_plugin=""),"resource_key"in e||(this.resource_key=""),"command"in e||(this.command=[]),"tty"in e||(this.tty=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,s=et,r=it,de=H;let o=typeof e=="string"?JSON.parse(e):e;return"params"in o&&(o.params=n(o.params)),"labels"in o&&(o.labels=i(o.labels)),"reference"in o&&(o.reference=s(o.reference)),"route"in o&&(o.route=r(o.route)),"command"in o&&(o.command=de(o.command)),new D(o)}}const H=a.Array(a.Any),_=a.Map(a.Any,a.Any),Qe=U.createFrom,$e=he.createFrom,et=a.Nullable($e),tt=fe.createFrom,it=a.Nullable(tt),nt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:U,Handler:ze,Session:q,SessionOptions:D},Symbol.toStringTag,{value:"Module"}));class G{resource_id;connection_id;constructor(e={}){"resource_id"in e||(this.resource_id=""),"connection_id"in e||(this.connection_id=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new G(n)}}var me=(t=>(t.$zero="",t.PortForwardConnectionTypeResource="RESOURCE",t.PortForwardConnectionTypeStatic="STATIC",t))(me||{}),ge=(t=>(t.$zero="",t.PortForwardProtocolTCP="TCP",t.PortForwardProtocolUDP="UDP",t))(ge||{});class Z{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"updated_at"in e||(this.updated_at="0001-01-01T00:00:00.000Z"),"connection"in e||(this.connection=null),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"protocol"in e||(this.protocol=""),"state"in e||(this.state=""),"connection_type"in e||(this.connection_type=""),"encryption"in e||(this.encryption=new p),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const n=st,i=at;let s=typeof e=="string"?JSON.parse(e):e;return"labels"in s&&(s.labels=n(s.labels)),"encryption"in s&&(s.encryption=i(s.encryption)),new Z(s)}}class p{algorithm;key;enabled;constructor(e={}){"algorithm"in e||(this.algorithm=""),"key"in e||(this.key=""),"enabled"in e||(this.enabled=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new p(n)}}var _e=(t=>(t.$zero="",t.SessionStateActive="ACTIVE",t.SessionStatePaused="PAUSED",t.SessionStateStopped="STOPPED",t.SessionStateFailed="FAILED",t))(_e||{});const st=a.Map(a.Any,a.Any),at=p.createFrom,rt=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:G,PortForwardConnectionType:me,PortForwardProtocol:ge,PortForwardSession:Z,PortForwardSessionEncryption:p,SessionState:_e},Symbol.toStringTag,{value:"Module"}));class L{id;name;description;icon_url;category;tags;license;official;featured;download_count;average_rating;review_count;repository;url;publisher_name;installed;installed_version;latest_version;update_available;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"icon_url"in e||(this.icon_url=""),"category"in e||(this.category=""),"tags"in e||(this.tags=[]),"license"in e||(this.license=""),"official"in e||(this.official=!1),"featured"in e||(this.featured=!1),"download_count"in e||(this.download_count=0),"average_rating"in e||(this.average_rating=0),"review_count"in e||(this.review_count=0),"repository"in e||(this.repository=""),"url"in e||(this.url=""),"publisher_name"in e||(this.publisher_name=""),"installed"in e||(this.installed=!1),"installed_version"in e||(this.installed_version=""),"latest_version"in e||(this.latest_version=""),"update_available"in e||(this.update_available=!1),Object.assign(this,e)}static createFrom(e={}){const n=We;let i=typeof e=="string"?JSON.parse(e):e;return"tags"in i&&(i.tags=n(i.tags)),new L(i)}}class M{date;count;constructor(e={}){"date"in e||(this.date=""),"count"in e||(this.count=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new M(n)}}class V{total;last_month;last_week;daily_stats;constructor(e={}){"total"in e||(this.total=0),"last_month"in e||(this.last_month=0),"last_week"in e||(this.last_week=0),"daily_stats"in e||(this.daily_stats=[]),Object.assign(this,e)}static createFrom(e={}){const n=ot;let i=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new V(i)}}class Y{id;user_id;rating;title;body;created_at;constructor(e={}){"id"in e||(this.id=""),"user_id"in e||(this.user_id=0),"rating"in e||(this.rating=0),"title"in e||(this.title=""),"body"in e||(this.body=""),"created_at"in e||(this.created_at=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Y(n)}}class X{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;compatible;compatibility_reason;discovery_supported;constructor(e={}){"version"in e||(this.version=""),"description"in e||(this.description=""),"changelog"in e||(this.changelog=""),"min_ide_version"in e||(this.min_ide_version=""),"max_ide_version"in e||(this.max_ide_version=""),"capabilities"in e||(this.capabilities=[]),"created_at"in e||(this.created_at=""),"compatible"in e||(this.compatible=!1),"compatibility_reason"in e||(this.compatibility_reason=""),"discovery_supported"in e||(this.discovery_supported=!1),Object.assign(this,e)}static createFrom(e={}){const n=We;let i=typeof e=="string"?JSON.parse(e):e;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new X(i)}}const We=a.Array(a.Any),lt=M.createFrom,ot=a.Array(lt),ct=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:L,DailyStat:M,DownloadStats:V,Review:Y,VersionInfo:X},Symbol.toStringTag,{value:"Module"}));class y{operations;resource_types;constructor(e={}){"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new y(s)}}class b{plugin;operations;resource_types;constructor(e={}){"plugin"in e||(this.plugin=""),"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new b(s)}}class S{connections;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=dt;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new S(i)}}class F{name;email;url;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),"url"in e||(this.url=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new F(n)}}var ye=(t=>(t.$zero="",t.PluginComponentAreaEditor="EDITOR",t.PluginComponentAreaSidebar="SIDEBAR",t))(ye||{});class d{resource;constructor(e={}){"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const n=ht;let i=typeof e=="string"?JSON.parse(e):e;return"resource"in i&&(i.resource=n(i.resource)),new d(i)}}class O{name;email;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new O(n)}}class f{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;exports;requires;state_isolation;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"name"in e||(this.name=""),"icon"in e||(this.icon=""),"icon_url"in e||(this.icon_url=""),"description"in e||(this.description=""),"repository"in e||(this.repository=""),"website"in e||(this.website=""),"category"in e||(this.category=""),"license"in e||(this.license=""),"maintainers"in e||(this.maintainers=[]),"tags"in e||(this.tags=[]),"dependencies"in e||(this.dependencies=[]),"capabilities"in e||(this.capabilities=[]),"theme"in e||(this.theme=new h),"components"in e||(this.components=new d),"schema_version"in e||(this.schema_version=0),"sdk_protocol_version"in e||(this.sdk_protocol_version=0),Object.assign(this,e)}static createFrom(e={}){const n=gt,i=yt,s=c,r=c,de=c,o=bt,Ve=St,Ye=Ot,Xe=wt,Ke=Tt;let l=typeof e=="string"?JSON.parse(e):e;return"author"in l&&(l.author=n(l.author)),"maintainers"in l&&(l.maintainers=i(l.maintainers)),"tags"in l&&(l.tags=s(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=de(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Ve(l.components)),"exports"in l&&(l.exports=Ye(l.exports)),"requires"in l&&(l.requires=Xe(l.requires)),"state_isolation"in l&&(l.state_isolation=Ke(l.state_isolation)),new f(l)}}class u{name;plugin;area;resources;extension;constructor(e={}){"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"area"in e||(this.area=""),"resources"in e||(this.resources=[]),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){const n=c;let i=typeof e=="string"?JSON.parse(e):e;return"resources"in i&&(i.resources=n(i.resources)),new u(i)}}class h{colors;constructor(e={}){"colors"in e||(this.colors=new m),Object.assign(this,e)}static createFrom(e={}){const n=Nt;let i=typeof e=="string"?JSON.parse(e):e;return"colors"in i&&(i.colors=n(i.colors)),new h(i)}}class m{primary;secondary;tertiary;constructor(e={}){"primary"in e||(this.primary=""),"secondary"in e||(this.secondary=""),"tertiary"in e||(this.tertiary=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new m(n)}}class w{connections;constructor(e={}){"connections"in e||(this.connections=[]),Object.assign(this,e)}static createFrom(e={}){const n=At;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new w(i)}}class v{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(e={}){"schema_version"in e||(this.schema_version=0),"capability"in e||(this.capability=""),"sdk_module"in e||(this.sdk_module=""),"sdk_revision"in e||(this.sdk_revision=""),"binary_sha256"in e||(this.binary_sha256=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new v(n)}}const c=a.Array(a.Any),pt=y.createFrom,dt=a.Nullable(pt),ft=u.createFrom,ht=a.Array(ft),mt=F.createFrom,gt=a.Nullable(mt),_t=O.createFrom,yt=a.Array(_t),bt=h.createFrom,St=d.createFrom,Ft=S.createFrom,Ot=a.Nullable(Ft),ut=w.createFrom,wt=a.Nullable(ut),vt=v.createFrom,Tt=a.Nullable(vt),Nt=m.createFrom,jt=b.createFrom,At=a.Array(jt),Jt=Object.freeze(Object.defineProperty({__proto__:null,ConnectionExport:y,ConnectionRequirement:b,ExportsSpec:S,PluginAuthor:F,PluginComponentArea:ye,PluginComponents:d,PluginMaintainer:O,PluginMeta:f,PluginResourceComponent:u,PluginTheme:h,PluginThemeColors:m,RequiresSpec:w,StateIsolationProvenance:v},Symbol.toStringTag,{value:"Module"}));var T=(t=>(t[t.$zero=0]="$zero",t[t.minDuration=-9223372036854776e3]="minDuration",t[t.maxDuration=9223372036854776e3]="maxDuration",t[t.Nanosecond=1]="Nanosecond",t[t.Microsecond=1e3]="Microsecond",t[t.Millisecond=1e6]="Millisecond",t[t.Second=1e9]="Second",t[t.Minute=6e10]="Minute",t[t.Hour=36e11]="Hour",t))(T||{});const Pt=Object.freeze(Object.defineProperty({__proto__:null,Duration:T},Symbol.toStringTag,{value:"Module"}));var Ue=(t=>(t.$zero="",t.CapabilityResource="resource",t.CapabilityExec="exec",t.CapabilityNetworker="networker",t.CapabilityLog="log",t.CapabilityMetric="metric",t.CapabilitySettings="settings",t.CapabilityTools="tools",t.CapabilityUI="ui",t))(Ue||{});class K{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(e={}){"last_refresh"in e||(this.last_refresh="0001-01-01T00:00:00.000Z"),"data"in e||(this.data={}),"labels"in e||(this.labels={}),"lifecycle"in e||(this.lifecycle=new N),"id"in e||(this.id=""),"uid"in e||(this.uid=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"avatar"in e||(this.avatar=""),"expiry_time"in e||(this.expiry_time=T.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const n=xe,i=xe,s=It;let r=typeof e=="string"?JSON.parse(e):e;return"data"in r&&(r.data=n(r.data)),"labels"in r&&(r.labels=i(r.labels)),"lifecycle"in r&&(r.lifecycle=s(r.lifecycle)),new K(r)}}class Q{enabled;triggers;retry;constructor(e={}){"enabled"in e||(this.enabled=!1),"triggers"in e||(this.triggers=[]),"retry"in e||(this.retry=""),Object.assign(this,e)}static createFrom(e={}){const n=Ct;let i=typeof e=="string"?JSON.parse(e):e;return"triggers"in i&&(i.triggers=n(i.triggers)),new Q(i)}}var qe=(t=>(t.$zero="",t.ConnectionAutoConnectRetryNone="NONE",t.ConnectionAutoConnectRetryOnChange="ON_CHANGE",t))(qe||{}),De=(t=>(t.$zero="",t.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",t.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",t))(De||{});class N{auto_connect;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=Rt;let i=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new N(i)}}class be{connection;status;error;details;constructor(e={}){"connection"in e||(this.connection=null),"status"in e||(this.status=""),"error"in e||(this.error=""),"details"in e||(this.details=""),Object.assign(this,e)}static createFrom(e={}){const n=kt;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new be(i)}}var He=(t=>(t.$zero="",t.ConnectionStatusUnknown="UNKNOWN",t.ConnectionStatusConnected="CONNECTED",t.ConnectionStatusDisconnected="DISCONNECTED",t.ConnectionStatusPending="PENDING",t.ConnectionStatusFailed="FAILED",t.ConnectionStatusError="ERROR",t.ConnectionStatusUnauthorized="UNAUTHORIZED",t.ConnectionStatusForbidden="FORBIDDEN",t.ConnectionStatusBadRequest="BAD_REQUEST",t.ConnectionStatusNotFound="NOT_FOUND",t.ConnectionStatusTimeout="TIMEOUT",t.ConnectionStatusUnavailable="UNAVAILABLE",t.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",t))(He||{});class Se{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(e={}){"id"in e||(this.id=""),"metadata"in e||(this.metadata=new f),"phase"in e||(this.phase=""),"enabled"in e||(this.enabled=!1),"devMode"in e||(this.devMode=!1),"capabilities"in e||(this.capabilities=[]),Object.assign(this,e)}static createFrom(e={}){const n=zt,i=Bt;let s=typeof e=="string"?JSON.parse(e):e;return"metadata"in s&&(s.metadata=n(s.metadata)),"capabilities"in s&&(s.capabilities=i(s.capabilities)),new Se(s)}}const xe=a.Map(a.Any,a.Any),It=N.createFrom,Ct=a.Array(a.Any),Et=Q.createFrom,Rt=a.Nullable(Et),xt=K.createFrom,kt=a.Nullable(xt),zt=f.createFrom,Bt=a.Array(a.Any);class ${settings;id;label;description;icon;constructor(e={}){"settings"in e||(this.settings={}),"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"icon"in e||(this.icon=""),Object.assign(this,e)}static createFrom(e={}){const n=Ut;let i=typeof e=="string"?JSON.parse(e):e;return"settings"in i&&(i.settings=n(i.settings)),new $(i)}}class j{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;requiresRestart;pendingRestart;constructor(e={}){"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"type"in e||(this.type=""),"value"in e||(this.value=null),"default"in e||(this.default=null),"options"in e||(this.options=[]),"fileSelection"in e||(this.fileSelection=null),"sensitive"in e||(this.sensitive=!1),"devOnly"in e||(this.devOnly=!1),"requiresRestart"in e||(this.requiresRestart=!1),"pendingRestart"in e||(this.pendingRestart=!1),Object.assign(this,e)}static createFrom(e={}){const n=Dt,i=Gt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"fileSelection"in s&&(s.fileSelection=i(s.fileSelection)),new j(s)}}class A{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(e={}){"enabled"in e||(this.enabled=!1),"allowFolders"in e||(this.allowFolders=!1),"extensions"in e||(this.extensions=[]),"multiple"in e||(this.multiple=!1),"relative"in e||(this.relative=!1),"defaultPath"in e||(this.defaultPath=""),Object.assign(this,e)}static createFrom(e={}){const n=Zt;let i=typeof e=="string"?JSON.parse(e):e;return"extensions"in i&&(i.extensions=n(i.extensions)),new A(i)}}class J{label;description;value;constructor(e={}){"label"in e||(this.label=""),"description"in e||(this.description=""),"value"in e||(this.value=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new J(n)}}var Fe=(t=>(t.$zero="",t.Text="text",t.Select="select",t.MultiSelect="multiselect",t.Integer="integer",t.Float="float",t.Toggle="toggle",t.Color="color",t.DateTime="datetime",t.Password="password",t))(Fe||{});class ee{valid;code;message;constructor(e={}){"valid"in e||(this.valid=!1),"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ee(n)}}const Wt=j.createFrom,Ut=a.Map(a.Any,Wt),qt=J.createFrom,Dt=a.Array(qt),Ht=A.createFrom,Gt=a.Nullable(Ht),Zt=a.Array(a.Any),Lt=Object.freeze(Object.defineProperty({__proto__:null,Category:$,Setting:j,SettingFileSelection:A,SettingOption:J,SettingType:Fe,ValidationResult:ee},Symbol.toStringTag,{value:"Module"}));class te{plugin;constructor(e={}){"plugin"in e||(this.plugin=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new te(n)}}class ie{plugin;resource;area;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ie(n)}}class ne{plugin;resource;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ne(n)}}class se{owner;name;plugin;resource;area;extension;constructor(e={}){"owner"in e||(this.owner=""),"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new se(n)}}var Oe=(t=>(t.$zero="",t.ResourceComponentAreaSidebar="SIDEBAR",t.ResourceComponentAreaTable="TABLE",t))(Oe||{});const Mt=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:te,GetResourceAreaComponentInput:ie,GetResourceComponentsInput:ne,ResourceComponent:se,ResourceComponentArea:Oe},Symbol.toStringTag,{value:"Module"}));class P{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=Vt,i=ve;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new P(s)}}let Ge=class Ze{plugin;resource;target_builder;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new P),Object.assign(this,e)}static createFrom(e={}){const n=Yt;let i=typeof e=="string"?JSON.parse(e):e;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Ze(i)}};class ae{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(e={}){"id"in e||(this.id=""),"plugin_id"in e||(this.plugin_id=""),"connection_id"in e||(this.connection_id=""),"resource_key"in e||(this.resource_key=""),"resource_id"in e||(this.resource_id=""),"options"in e||(this.options=new g),"status"in e||(this.status=0),"active_sources"in e||(this.active_sources=[]),"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=Xt,i=Qt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"active_sources"in s&&(s.active_sources=i(s.active_sources)),new ae(s)}}class g{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(e={}){"target"in e||(this.target=""),"follow"in e||(this.follow=!1),"include_previous"in e||(this.include_previous=!1),"include_timestamps"in e||(this.include_timestamps=!1),"tail_lines"in e||(this.tail_lines=0),"since_seconds"in e||(this.since_seconds=0),"limit_bytes"in e||(this.limit_bytes=0),"include_source_events"in e||(this.include_source_events=!1),"params"in e||(this.params={}),Object.assign(this,e)}static createFrom(e={}){const n=ve;let i=typeof e=="string"?JSON.parse(e):e;return"params"in i&&(i.params=n(i.params)),new g(i)}}var ue=(t=>(t[t.$zero=0]="$zero",t[t.LogSessionStatusActive=0]="LogSessionStatusActive",t[t.LogSessionStatusPaused=1]="LogSessionStatusPaused",t[t.LogSessionStatusClosed=2]="LogSessionStatusClosed",t[t.LogSessionStatusError=3]="LogSessionStatusError",t[t.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",t[t.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",t))(ue||{});class I{id;labels;constructor(e={}){"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ve;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new I(i)}}var we=(t=>(t[t.$zero=0]="$zero",t[t.StreamCommandPause=0]="StreamCommandPause",t[t.StreamCommandResume=1]="StreamCommandResume",t[t.StreamCommandClose=2]="StreamCommandClose",t))(we||{});const Vt=a.Array(a.Any),ve=a.Map(a.Any,a.Any),Yt=P.createFrom,Xt=g.createFrom,Kt=I.createFrom,Qt=a.Array(Kt),$t=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:P,Handler:Ge,LogSession:ae,LogSessionOptions:g,LogSessionStatus:ue,LogSource:I,LogStreamCommand:we},Symbol.toStringTag,{value:"Module"}));class C{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"min"in e||(this.min=0),"max"in e||(this.max=0),"avg"in e||(this.avg=0),"sum"in e||(this.sum=0),"p50"in e||(this.p50=0),"p90"in e||(this.p90=0),"p99"in e||(this.p99=0),"count"in e||(this.count=0),"window"in e||(this.window=T.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new C(i)}}class E{min;max;color;constructor(e={}){"min"in e||(this.min=0),"max"in e||(this.max=0),"color"in e||(this.color=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new E(n)}}class R{metric_id;value;timestamp;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"value"in e||(this.value=0),"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new R(i)}}class x{timestamp;value;labels;constructor(e={}){"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"value"in e||(this.value=0),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new x(i)}}class re{resource;metrics;constructor(e={}){"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const n=ti;let i=typeof e=="string"?JSON.parse(e):e;return"metrics"in i&&(i.metrics=n(i.metrics)),new re(i)}}class k{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"unit"in e||(this.unit=0),"icon"in e||(this.icon=""),"color_ranges"in e||(this.color_ranges=[]),"format_string"in e||(this.format_string=""),"supported_shapes"in e||(this.supported_shapes=[]),"chart_group"in e||(this.chart_group=""),Object.assign(this,e)}static createFrom(e={}){const n=ni,i=si;let s=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in s&&(s.color_ranges=n(s.color_ranges)),"supported_shapes"in s&&(s.supported_shapes=i(s.supported_shapes)),new k(s)}}class z{time_series;current_value;aggregate_value;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=ri,i=oi,s=pi;let r=typeof e=="string"?JSON.parse(e):e;return"time_series"in r&&(r.time_series=n(r.time_series)),"current_value"in r&&(r.current_value=i(r.current_value)),"aggregate_value"in r&&(r.aggregate_value=s(r.aggregate_value)),new z(r)}}var Te=(t=>(t[t.$zero=0]="$zero",t[t.ShapeCurrent=0]="ShapeCurrent",t[t.ShapeTimeseries=1]="ShapeTimeseries",t[t.ShapeAggregate=2]="ShapeAggregate",t))(Te||{}),Ne=(t=>(t[t.$zero=0]="$zero",t[t.UnitNone=0]="UnitNone",t[t.UnitBytes=1]="UnitBytes",t[t.UnitKB=2]="UnitKB",t[t.UnitMB=3]="UnitMB",t[t.UnitGB=4]="UnitGB",t[t.UnitPercentage=5]="UnitPercentage",t[t.UnitMillis=6]="UnitMillis",t[t.UnitSeconds=7]="UnitSeconds",t[t.UnitCount=8]="UnitCount",t[t.UnitOpsPerSec=9]="UnitOpsPerSec",t[t.UnitBytesPerSec=10]="UnitBytesPerSec",t[t.UnitMillicores=11]="UnitMillicores",t[t.UnitCores=12]="UnitCores",t))(Ne||{});class le{success;results;error;constructor(e={}){"success"in e||(this.success=!1),"results"in e||(this.results=[]),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=fi;let i=typeof e=="string"?JSON.parse(e):e;return"results"in i&&(i.results=n(i.results)),new le(i)}}class B{metric_id;data_points;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"data_points"in e||(this.data_points=[]),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=mi,i=oe;let s=typeof e=="string"?JSON.parse(e):e;return"data_points"in s&&(s.data_points=n(s.data_points)),"labels"in s&&(s.labels=i(s.labels)),new B(s)}}const oe=a.Map(a.Any,a.Any),ei=k.createFrom,ti=a.Array(ei),ii=E.createFrom,ni=a.Array(ii),si=a.Array(a.Any),ai=B.createFrom,ri=a.Nullable(ai),li=R.createFrom,oi=a.Nullable(li),ci=C.createFrom,pi=a.Nullable(ci),di=z.createFrom,fi=a.Array(di),hi=x.createFrom,mi=a.Array(hi),gi=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:C,ColorRange:E,CurrentValue:R,DataPoint:x,Handler:re,MetricDescriptor:k,MetricResult:z,MetricShape:Te,MetricUnit:Ne,QueryResponse:le,TimeSeries:B},Symbol.toStringTag,{value:"Module"}));class je{sessionId;sourceWindow;dragType;payload;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),"payload"in e||(this.payload=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new je(n)}}class Ae{sessionId;sourceWindow;dragType;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ae(n)}}class Je{sessionId;constructor(e={}){"sessionId"in e||(this.sessionId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Je(n)}}class Pe{sessionId;targetWindow;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Pe(n)}}class Ie{sessionId;targetWindow;payload;clientX;clientY;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),"payload"in e||(this.payload=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ie(n)}}class ce{accepted;targetWindow;targetInstanceId;constructor(e={}){"accepted"in e||(this.accepted=!1),"targetWindow"in e||(this.targetWindow=""),"targetInstanceId"in e||(this.targetInstanceId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ce(n)}}class W{name;kind;focused;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"focused"in e||(this.focused=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new W(n)}}var Le=(t=>(t.$zero="",t.KindWorkspace="workspace",t.KindPanel="panel",t.KindSettings="settings",t))(Le||{});class Ce{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(e={}){"kind"in e||(this.kind=""),"initialState"in e||(this.initialState={}),"anchorWindow"in e||(this.anchorWindow=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),"hasPosition"in e||(this.hasPosition=!1),"width"in e||(this.width=0),"height"in e||(this.height=0),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"initialState"in i&&(i.initialState=n(i.initialState)),new Ce(i)}}class pe{requestId;target;visible;constructor(e={}){"requestId"in e||(this.requestId=0),"target"in e||(this.target=""),"visible"in e||(this.visible=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new pe(n)}}class Ee{name;kind;states;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"states"in e||(this.states={}),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"states"in i&&(i.states=n(i.states)),new Ee(i)}}class Re{windows;constructor(e={}){"windows"in e||(this.windows=[]),Object.assign(this,e)}static createFrom(e={}){const n=yi;let i=typeof e=="string"?JSON.parse(e):e;return"windows"in i&&(i.windows=n(i.windows)),new Re(i)}}const Me=a.Map(a.Any,a.Any),_i=W.createFrom,yi=a.Array(_i),bi=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:je,DragBeginEvent:Ae,DragEndEvent:Je,DragLeaveEvent:Pe,DragPointerEvent:Ie,DropResult:ce,Info:W,Kind:Le,OpenRequest:Ce,SettingsState:pe,WindowClosedEvent:Ee,WindowsChangedEvent:Re},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=U;exports.AggregateValue=C;exports.AvailablePlugin=L;exports.Capability=Ue;exports.Category=$;exports.ColorRange=E;exports.Connection=K;exports.ConnectionAutoConnect=Q;exports.ConnectionAutoConnectRetry=qe;exports.ConnectionAutoConnectTrigger=De;exports.ConnectionExport=y;exports.ConnectionLifecycle=N;exports.ConnectionRequirement=b;exports.ConnectionStatus=be;exports.ConnectionStatusCode=He;exports.CurrentValue=R;exports.DataPoint=x;exports.DownloadStats=V;exports.DropResult=ce;exports.Duration=T;exports.ExportsSpec=S;exports.FindPortForwardSessionRequest=G;exports.GetPluginComponentsInput=te;exports.GetResourceAreaComponentInput=ie;exports.GetResourceComponentsInput=ne;exports.Handler=ze;exports.Handler$1=Ge;exports.Handler$2=re;exports.Info=W;exports.LogSession=ae;exports.LogSessionOptions=g;exports.LogSessionStatus=ue;exports.LogSource=I;exports.LogStreamCommand=we;exports.MetricDescriptor=k;exports.MetricResult=z;exports.MetricShape=Te;exports.MetricUnit=Ne;exports.PluginAuthor=F;exports.PluginComponentArea=ye;exports.PluginComponents=d;exports.PluginInfo=Se;exports.PluginMaintainer=O;exports.PluginMeta=f;exports.PluginResourceComponent=u;exports.PluginTheme=h;exports.PluginThemeColors=m;exports.PortForwardConnectionType=me;exports.PortForwardProtocol=ge;exports.PortForwardSession=Z;exports.PortForwardSessionEncryption=p;exports.QueryResponse=le;exports.RequiresSpec=w;exports.ResourceComponent=se;exports.ResourceComponentArea=Oe;exports.Review=Y;exports.Session=q;exports.SessionOptions=D;exports.SessionState=_e;exports.Setting=j;exports.SettingFileSelection=A;exports.SettingOption=J;exports.SettingType=Fe;exports.SettingsState=pe;exports.StateIsolationProvenance=v;exports.TimeSeries=B;exports.ValidationResult=ee;exports.VersionInfo=X;exports.models=Jt;exports.models$1=nt;exports.models$2=$t;exports.models$3=gi;exports.models$4=rt;exports.models$5=ct;exports.models$6=Lt;exports.models$7=Pt;exports.models$8=Mt;exports.models$9=bi;
|
package/dist/models.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-DH1E1koG.cjs"),C=require("./graph-D4xtzkXX.cjs"),n=require("./models-BHsd9kBp.cjs");class s{defaultDirectory;defaultFilename;title;filters;showHiddenFiles;canCreateDirectories;resolvesAliases;treatPackagesAsDirectories;constructor(t={}){"defaultDirectory"in t||(this.defaultDirectory=""),"defaultFilename"in t||(this.defaultFilename=""),"title"in t||(this.title=""),"filters"in t||(this.filters=[]),"showHiddenFiles"in t||(this.showHiddenFiles=!1),"canCreateDirectories"in t||(this.canCreateDirectories=!1),"resolvesAliases"in t||(this.resolvesAliases=!1),"treatPackagesAsDirectories"in t||(this.treatPackagesAsDirectories=!1),Object.assign(this,t)}static createFrom(t={}){const o=S;let i=typeof t=="string"?JSON.parse(t):t;return"filters"in i&&(i.filters=o(i.filters)),new s(i)}}class r{displayName;pattern;constructor(t={}){"displayName"in t||(this.displayName=""),"pattern"in t||(this.pattern=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new r(o)}}const p=r.createFrom,S=g.Array(p);function d(l,t){const o={...l};for(const[i,u]of Object.entries(l)){if(i==="$zero"||!i.startsWith(t))continue;const c=i.slice(t.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();c&&(o[c]=u)}return o}const m=d(e.ConnectionStatusCode,"ConnectionStatus"),f=Object.freeze(Object.defineProperty({__proto__:null,Connection:e.Connection,ConnectionAutoConnect:e.ConnectionAutoConnect,ConnectionAutoConnectRetry:e.ConnectionAutoConnectRetry,ConnectionAutoConnectTrigger:e.ConnectionAutoConnectTrigger,ConnectionLifecycle:e.ConnectionLifecycle,ConnectionStatus:e.ConnectionStatus,ConnectionStatusCode:m,PluginCapability:e.Capability,PluginInfo:e.PluginInfo},Symbol.toStringTag,{value:"Module"}));class a{filename;contents;constructor(t={}){"filename"in t||(this.filename=""),"contents"in t||(this.contents=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new a(o)}}const y=Object.freeze(Object.defineProperty({__proto__:null,GetLanguageInput:a},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=e.ActionTargetBuilder;exports.AggregateValue=e.AggregateValue;exports.Category=e.Category;exports.ColorRange=e.ColorRange;exports.Connection=e.Connection;exports.ConnectionAutoConnect=e.ConnectionAutoConnect;exports.ConnectionAutoConnectRetry=e.ConnectionAutoConnectRetry;exports.ConnectionAutoConnectTrigger=e.ConnectionAutoConnectTrigger;exports.ConnectionExport=e.ConnectionExport;exports.ConnectionLifecycle=e.ConnectionLifecycle;exports.ConnectionRequirement=e.ConnectionRequirement;exports.ConnectionStatus=e.ConnectionStatus;exports.ConnectionStatusCode=e.ConnectionStatusCode;exports.CurrentValue=e.CurrentValue;exports.DataPoint=e.DataPoint;exports.ExportsSpec=e.ExportsSpec;exports.FindPortForwardSessionRequest=e.FindPortForwardSessionRequest;exports.GetPluginComponentsInput=e.GetPluginComponentsInput;exports.GetResourceAreaComponentInput=e.GetResourceAreaComponentInput;exports.GetResourceComponentsInput=e.GetResourceComponentsInput;exports.Handler=e.Handler;exports.LogSession=e.LogSession;exports.LogSessionOptions=e.LogSessionOptions;exports.LogSessionStatus=e.LogSessionStatus;exports.LogSource=e.LogSource;exports.LogStreamCommand=e.LogStreamCommand;exports.MetricDescriptor=e.MetricDescriptor;exports.MetricResult=e.MetricResult;exports.MetricShape=e.MetricShape;exports.MetricUnit=e.MetricUnit;exports.PluginAuthor=e.PluginAuthor;exports.PluginCapability=e.Capability;exports.PluginComponentArea=e.PluginComponentArea;exports.PluginComponents=e.PluginComponents;exports.PluginInfo=e.PluginInfo;exports.PluginMaintainer=e.PluginMaintainer;exports.PluginMeta=e.PluginMeta;exports.PluginResourceComponent=e.PluginResourceComponent;exports.PluginTheme=e.PluginTheme;exports.PluginThemeColors=e.PluginThemeColors;exports.PortForwardConnectionType=e.PortForwardConnectionType;exports.PortForwardProtocol=e.PortForwardProtocol;exports.PortForwardSession=e.PortForwardSession;exports.PortForwardSessionEncryption=e.PortForwardSessionEncryption;exports.QueryResponse=e.QueryResponse;exports.RequiresSpec=e.RequiresSpec;exports.ResourceComponent=e.ResourceComponent;exports.ResourceComponentArea=e.ResourceComponentArea;exports.Session=e.Session;exports.SessionOptions=e.SessionOptions;exports.SessionState=e.SessionState;exports.Setting=e.Setting;exports.SettingFileSelection=e.SettingFileSelection;exports.SettingOption=e.SettingOption;exports.SettingType=e.SettingType;exports.StateIsolationProvenance=e.StateIsolationProvenance;exports.TimeSeries=e.TimeSeries;exports.ValidationResult=e.ValidationResult;exports.config=e.models;exports.exec=e.models$1;exports.logs=e.models$2;exports.metric=e.models$3;exports.networker=e.models$4;exports.registry=e.models$5;exports.settings=e.models$6;exports.time=e.models$7;exports.ui=e.models$8;exports.window=e.models$9;exports.sameGraphNode=C.sameGraphNode;exports.BuildError=n.BuildError;exports.DevProcessStatus=n.DevProcessStatus;exports.DevServerErrorPayload=n.DevServerErrorPayload;exports.DevServerLogEntry=n.LogEntry;exports.DevServerMode=n.DevServerMode;exports.DevServerState=n.DevServerState;exports.LifecycleStage=n.LifecycleStage;exports.PluginLogEntry=n.LogEntry$1;exports.devserver=n.models;exports.mcprelay=n.models$1;exports.pluginlog=n.models$2;exports.FileDialogOptions=s;exports.FileFilter=r;exports.types=f;exports.utils=y;
|
package/dist/models.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as c } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { l as p, d as g, m as f, n as u, o as m, p as d, C as S, q as C, c as y } from "./models-
|
|
3
|
-
import { r as L, s as T, e as M, t as j, u as N, v as E, w as _, x, E as k, F as z, G, y as H, z as I, H as q, L as B, B as J, J as U, K as V, M as Q, N as W, O as Z, T as K, U as X, W as Y, X as $, Y as ee, Z as te, P as ae, _ as se, $ as ie, a0 as ne, a1 as oe, a2 as re, b as le, a3 as ce, Q as pe, a4 as ge, g as fe, a5 as ue, a as me, S as de, a6 as Se, a7 as Ce, a8 as ye, a9 as Pe, aa as he, ab as ve, ac as Fe, f as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Re, ai as Le, aj as Te, ak as Me, al as je, am as Ne } from "./models-
|
|
2
|
+
import { l as p, d as g, m as f, n as u, o as m, p as d, C as S, q as C, c as y } from "./models-CewFz24b.js";
|
|
3
|
+
import { r as L, s as T, e as M, t as j, u as N, v as E, w as _, x, E as k, F as z, G, y as H, z as I, H as q, L as B, B as J, J as U, K as V, M as Q, N as W, O as Z, T as K, U as X, W as Y, X as $, Y as ee, Z as te, P as ae, _ as se, $ as ie, a0 as ne, a1 as oe, a2 as re, b as le, a3 as ce, Q as pe, a4 as ge, g as fe, a5 as ue, a as me, S as de, a6 as Se, a7 as Ce, a8 as ye, a9 as Pe, aa as he, ab as ve, ac as Fe, f as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Re, ai as Le, aj as Te, ak as Me, al as je, am as Ne } from "./models-CewFz24b.js";
|
|
4
4
|
import { s as _e } from "./graph-iJFYWdRz.js";
|
|
5
|
-
import { B as ke, d as ze, e as Ge, L as He, f as Ie, D as qe, g as Be, c as Je, m as Ue, h as Ve, i as Qe } from "./models-
|
|
5
|
+
import { B as ke, d as ze, e as Ge, L as He, f as Ie, D as qe, g as Be, c as Je, m as Ue, h as Ve, i as Qe } from "./models-CLq49NOj.js";
|
|
6
6
|
class r {
|
|
7
7
|
defaultDirectory;
|
|
8
8
|
defaultFilename;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as ee, N as S, M as y, A as a, a as l } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { a as B, H as te, b as ne, c as re, P as oe, D as ie, V as se, R as ce, A as ae, C as ue, d as le, e as fe, f as pe, g as he, L as $e, h as ge, i as de, Q as Se, j as ye, k as me, I as Te } from "./models-
|
|
2
|
+
import { a as B, H as te, b as ne, c as re, P as oe, D as ie, V as se, R as ce, A as ae, C as ue, d as le, e as fe, f as pe, g as he, L as $e, h as ge, i as de, Q as Se, j as ye, k as me, I as Te } from "./models-CewFz24b.js";
|
|
3
3
|
import { B as n, a as h } from "./calls-DYGtxNJ6.js";
|
|
4
4
|
function p(e, t = []) {
|
|
5
5
|
let u = 0;
|