@omniviewdev/runtime 0.25.0 → 0.26.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.d.ts +2 -0
- package/dist/api.js +492 -276
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +85 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +3 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/models.d.ts +127 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +45 -18
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +0 -22
- package/dist/compat/types.d.ts +2 -1
- package/dist/hooks/resource/index.d.ts +1 -0
- package/dist/hooks/resource/useEditorSchemas.d.ts +9 -8
- package/dist/hooks/resource/useSchemaFields.d.ts +45 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1685 -1582
- package/dist/{models-CewFz24b.js → models-BwT6PfKo.js} +41 -38
- package/dist/{models-CLq49NOj.js → models-CcH0zldZ.js} +1 -1
- package/dist/{models-BHsd9kBp.cjs → models-CpFXL1IY.cjs} +1 -1
- package/dist/models-R2rKpSiU.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +4 -1
- package/dist/models.js +100 -94
- package/dist/resource/v2/ancillary.d.ts +1 -8
- package/dist/resource/v2/client.d.ts +5 -2
- package/dist/resource/v2/domain.d.ts +0 -2
- package/dist/resource/v2/query-lease.d.ts +145 -0
- package/dist/resource/v2/query-observer.d.ts +37 -0
- package/dist/resource/v2/query.d.ts +120 -0
- package/dist/resource/v2/schema.d.ts +86 -0
- package/dist/{service-Bu30yNPj.js → service-Brxo1pLe.js} +306 -299
- package/dist/service-COOtx0k6.cjs +1 -0
- package/package.json +1 -1
- package/dist/models-DH1E1koG.cjs +0 -1
- package/dist/service-wGUMmq3M.cjs +0 -1
package/dist/api.js
CHANGED
|
@@ -1,48 +1,263 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { A as
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as
|
|
5
|
-
|
|
1
|
+
import { s as Ht, e as Qt, g as Xt, l as Kt, m as Yt, n as $t, a as en, c as tn, b as nn, d as rn, f as sn } from "./service-Brxo1pLe.js";
|
|
2
|
+
import { A as l, N, a as m, M as R } from "./index-zyAgCXOO.js";
|
|
3
|
+
import { B as r } from "./calls-DYGtxNJ6.js";
|
|
4
|
+
import { C as M, S as L, a as z, P as J, b as q, T as B, D as U, L as V, c as W } from "./models-CcH0zldZ.js";
|
|
5
|
+
const d = {
|
|
6
|
+
kind: "none"
|
|
7
|
+
}, Z = (1n << 64n) - 1n, g = (t) => typeof t == "string" && /^(0|[1-9][0-9]*)$/.test(t) && t.length <= 20 && BigInt(t) <= Z, A = (t, e) => Number.isSafeInteger(t) && t >= 0 && t <= e;
|
|
8
|
+
function a(t, e, n = []) {
|
|
9
|
+
return t !== null && typeof t == "object" && !Array.isArray(t) && e.every((i) => Object.prototype.hasOwnProperty.call(t, i)) && Object.keys(t).every((i) => e.includes(i) || n.includes(i));
|
|
10
|
+
}
|
|
11
|
+
function f(t) {
|
|
12
|
+
return typeof t == "string";
|
|
13
|
+
}
|
|
14
|
+
function o(t) {
|
|
15
|
+
return f(t) && t.length > 0;
|
|
16
|
+
}
|
|
17
|
+
function _(t) {
|
|
18
|
+
return t === "complete" || t === "partial" || t === "unknown";
|
|
19
|
+
}
|
|
20
|
+
function H(t) {
|
|
21
|
+
return !a(t, ["type", "title", "status", "detail"], ["instance", "suggestions", "actions", "code", "requestId", "recovery", "location"]) || !f(t.type) || !f(t.title) || !Number.isSafeInteger(t.status) || !f(t.detail) || ["instance", "code", "requestId", "recovery"].some((e) => e in t && !f(t[e])) || "suggestions" in t && (!Array.isArray(t.suggestions) || !t.suggestions.every(f)) || "actions" in t && (!Array.isArray(t.actions) || !t.actions.every((e) => a(e, ["type", "label"], ["target"]) && f(e.type) && f(e.label) && (!("target" in e) || f(e.target)))) ? !1 : !("location" in t) || a(t.location, ["start", "end", "unit"]) && Number.isSafeInteger(t.location.start) && Number.isSafeInteger(t.location.end) && f(t.location.unit);
|
|
22
|
+
}
|
|
23
|
+
function Q(t) {
|
|
24
|
+
if (!a(t, ["coverage", "limitations", "freshness", "count"], ["continuation"]) || !_(t.coverage) || !Array.isArray(t.limitations) || !t.limitations.every(f) || !["current", "snapshot", "stale"].includes(t.freshness) || "continuation" in t && !o(t.continuation)) return !1;
|
|
25
|
+
const e = t.count;
|
|
26
|
+
return a(e, ["kind"]) && e.kind === "unknown" || a(e, ["kind", "value"]) && (e.kind === "exact" || e.kind === "estimate") && g(e.value);
|
|
27
|
+
}
|
|
28
|
+
function X(t) {
|
|
29
|
+
if (!a(t, ["lane", "leaseId", "payload"], ["generation", "sequence"]) || !o(t.leaseId)) return !1;
|
|
30
|
+
const e = t.payload;
|
|
31
|
+
return t.lane === "control" ? !a(t, ["lane", "leaseId", "payload"]) || !a(e, ["kind"], ["reason", "generation", "nextGeneration", "state", "error"]) ? !1 : e.kind === "reset" ? a(e, ["kind", "generation", "nextGeneration", "reason"]) && o(e.generation) && o(e.nextGeneration) && ["gap", "overflow", "sourceInvalidated", "bindingChanged"].includes(e.reason) : e.kind === "control" ? a(e, ["kind", "state", "generation"]) && e.state === "complete" && o(e.generation) : e.kind === "close" ? a(e, ["kind", "reason"], ["error"]) && ["closed", "cancelled", "failed", "accessInvalidated"].includes(e.reason) && (!("error" in e) || H(e.error)) : !1 : t.lane !== "data" || !a(t, ["lane", "leaseId", "generation", "sequence", "payload"]) || !o(t.generation) || !g(t.sequence) || !a(e, ["kind", "metadata"], ["rows", "changes"]) || !Q(e.metadata) ? !1 : e.kind === "open" ? a(e, ["kind", "rows", "metadata"]) && Array.isArray(e.rows) && e.rows.every(p) : e.kind !== "changes" || !a(e, ["kind", "changes", "metadata"]) || !Array.isArray(e.changes) ? !1 : e.changes.every((n) => a(n, ["kind"], ["index", "key", "row"]) ? n.kind === "enter" ? a(n, ["kind", "index", "row"]) && Number.isSafeInteger(n.index) && p(n.row) : n.kind === "update" ? a(n, ["kind", "key", "row"]) && o(n.key) && p(n.row) : n.kind === "move" ? a(n, ["kind", "key", "index"]) && o(n.key) && Number.isSafeInteger(n.index) : (n.kind === "leave" || n.kind === "delete") && a(n, ["kind", "key"]) && o(n.key) : !1);
|
|
32
|
+
}
|
|
33
|
+
function w(t, e = 0) {
|
|
34
|
+
if (!t || e > 64 || !a(t, t.kind === "null" ? ["kind"] : ["kind", "value"])) return !1;
|
|
35
|
+
switch (t.kind) {
|
|
36
|
+
case "null":
|
|
37
|
+
return !0;
|
|
38
|
+
case "bool":
|
|
39
|
+
return typeof t.value == "boolean";
|
|
40
|
+
case "string":
|
|
41
|
+
case "timestamp":
|
|
42
|
+
return typeof t.value == "string";
|
|
43
|
+
case "double":
|
|
44
|
+
return typeof t.value == "number" && Number.isFinite(t.value);
|
|
45
|
+
case "uint64":
|
|
46
|
+
return g(t.value);
|
|
47
|
+
case "int64":
|
|
48
|
+
return typeof t.value == "string" && /^(-[1-9][0-9]*|0|[1-9][0-9]*)$/.test(t.value) && t.value.length <= 20 && BigInt(t.value) >= -(1n << 63n) && BigInt(t.value) < 1n << 63n;
|
|
49
|
+
case "list":
|
|
50
|
+
return Array.isArray(t.value) && t.value.every((n) => w(n, e + 1));
|
|
51
|
+
case "map":
|
|
52
|
+
return !!t.value && typeof t.value == "object" && !Array.isArray(t.value) && Object.values(t.value).every((n) => w(n, e + 1));
|
|
53
|
+
default:
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function p(t) {
|
|
58
|
+
return !a(t, ["key", "targetId", "resource", "representation", "provenance", "values"]) || !o(t.key) || !o(t.targetId) || !a(t.resource, ["address"], ["incarnation"]) || "incarnation" in t.resource && !o(t.resource.incarnation) || !a(t.resource.address, ["provider", "authority", "type", "scope", "id"]) || !o(t.resource.address.provider) || !o(t.resource.address.authority) || !o(t.resource.address.type) || !o(t.resource.address.id) || !Array.isArray(t.resource.address.scope) || !t.resource.address.scope.every((e) => a(e, ["dimension", "value"]) && o(e.dimension) && f(e.value)) || !a(t.representation, ["id", "revision"]) || !o(t.representation.id) || !o(t.representation.revision) || !a(t.provenance, ["source", "coverage", "stale"]) || !o(t.provenance.source) || !_(t.provenance.coverage) || typeof t.provenance.stale != "boolean" || !t.values || typeof t.values != "object" || Array.isArray(t.values) ? !1 : Object.values(t.values).every((e) => a(e, ["state"]) && (e.state === "absent" || e.state === "null") || a(e, ["state", "value"]) && e.state === "value" && w(e.value));
|
|
59
|
+
}
|
|
60
|
+
function K(t) {
|
|
61
|
+
const e = structuredClone(t), n = (i) => {
|
|
62
|
+
i && typeof i == "object" && !Object.isFrozen(i) && (Object.values(i).forEach(n), Object.freeze(i));
|
|
63
|
+
};
|
|
64
|
+
return n(e), e;
|
|
65
|
+
}
|
|
66
|
+
class Nt {
|
|
67
|
+
constructor(e, n) {
|
|
68
|
+
if (this.leaseId = e, this.maxRows = n, !e || !Number.isSafeInteger(n) || n < 1 || n > 512) throw new RangeError("Invalid lease or window bound");
|
|
69
|
+
}
|
|
70
|
+
leaseId;
|
|
71
|
+
maxRows;
|
|
72
|
+
snapshot = Object.freeze({
|
|
73
|
+
status: "attaching",
|
|
74
|
+
rows: Object.freeze([]),
|
|
75
|
+
stale: !1
|
|
76
|
+
});
|
|
77
|
+
generation;
|
|
78
|
+
sequence = 0n;
|
|
79
|
+
opened = !1;
|
|
80
|
+
recovering = !1;
|
|
81
|
+
previousReset;
|
|
82
|
+
getSnapshot() {
|
|
83
|
+
return this.snapshot;
|
|
84
|
+
}
|
|
85
|
+
attach(e) {
|
|
86
|
+
if (!e || this.snapshot.status !== "attaching") throw new Error("Invalid attachment");
|
|
87
|
+
this.generation = e, this.publish({
|
|
88
|
+
status: "pending",
|
|
89
|
+
generation: e,
|
|
90
|
+
rows: [],
|
|
91
|
+
stale: !1
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/** A lost drain response cannot be retried: discard the lease and reopen. */
|
|
95
|
+
disconnected() {
|
|
96
|
+
return this.close(), {
|
|
97
|
+
kind: "reopen"
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
close() {
|
|
101
|
+
this.generation = void 0, this.previousReset = void 0, this.opened = !1, this.recovering = !1, this.publish({
|
|
102
|
+
status: "closed",
|
|
103
|
+
rows: [],
|
|
104
|
+
stale: !1
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
apply(e) {
|
|
108
|
+
if (this.snapshot.status === "closed" || e && typeof e == "object" && typeof e.leaseId == "string" && e.leaseId !== this.leaseId) return d;
|
|
109
|
+
if (this.snapshot.status === "attaching") return this.fail();
|
|
110
|
+
try {
|
|
111
|
+
if (!X(e) || new TextEncoder().encode(JSON.stringify(e)).length > 256 * 1024)
|
|
112
|
+
return this.publish({
|
|
113
|
+
...this.snapshot,
|
|
114
|
+
rows: [],
|
|
115
|
+
metadata: void 0,
|
|
116
|
+
stale: !1
|
|
117
|
+
}), this.snapshot.status === "complete" ? this.disconnected() : this.fail();
|
|
118
|
+
} catch {
|
|
119
|
+
return this.publish({
|
|
120
|
+
...this.snapshot,
|
|
121
|
+
rows: [],
|
|
122
|
+
metadata: void 0,
|
|
123
|
+
stale: !1
|
|
124
|
+
}), this.snapshot.status === "complete" ? this.disconnected() : this.fail();
|
|
125
|
+
}
|
|
126
|
+
if (this.snapshot.status === "complete" && (e.lane === "data" || e.lane === "control" && e.payload.kind === "reset")) return this.disconnected();
|
|
127
|
+
if (e.lane === "control") {
|
|
128
|
+
const n = e.payload;
|
|
129
|
+
if (n.kind === "close")
|
|
130
|
+
return this.close(), n.error && this.publish({
|
|
131
|
+
status: "closed",
|
|
132
|
+
rows: [],
|
|
133
|
+
stale: !1,
|
|
134
|
+
error: n.error
|
|
135
|
+
}), d;
|
|
136
|
+
if (n.kind === "control")
|
|
137
|
+
return n.generation === this.generation && this.opened && !this.recovering && this.publish({
|
|
138
|
+
...this.snapshot,
|
|
139
|
+
status: "complete"
|
|
140
|
+
}), d;
|
|
141
|
+
if (n.generation !== this.generation) return d;
|
|
142
|
+
if (!n.nextGeneration || n.nextGeneration === n.generation || n.nextGeneration === this.previousReset?.generation)
|
|
143
|
+
return this.publish({
|
|
144
|
+
...this.snapshot,
|
|
145
|
+
rows: [],
|
|
146
|
+
metadata: void 0,
|
|
147
|
+
stale: !1
|
|
148
|
+
}), this.fail();
|
|
149
|
+
this.previousReset = {
|
|
150
|
+
generation: n.generation,
|
|
151
|
+
nextGeneration: n.nextGeneration
|
|
152
|
+
}, this.generation = n.nextGeneration, this.sequence = 0n, this.opened = !1, this.recovering = !1;
|
|
153
|
+
const i = n.reason === "bindingChanged" || n.reason === "sourceInvalidated";
|
|
154
|
+
return this.publish({
|
|
155
|
+
status: "pending",
|
|
156
|
+
generation: this.generation,
|
|
157
|
+
rows: i ? [] : this.snapshot.rows,
|
|
158
|
+
metadata: i ? void 0 : this.snapshot.metadata,
|
|
159
|
+
stale: !i && this.snapshot.rows.length > 0
|
|
160
|
+
}), d;
|
|
161
|
+
}
|
|
162
|
+
if (e.generation !== this.generation || this.recovering) return d;
|
|
163
|
+
try {
|
|
164
|
+
if (new TextEncoder().encode(JSON.stringify(e)).length > 256 * 1024) return this.fail();
|
|
165
|
+
if (!g(e.sequence) || BigInt(e.sequence) !== this.sequence + 1n) return this.fail();
|
|
166
|
+
const n = e.payload;
|
|
167
|
+
if (n.metadata.count.kind !== "unknown" && !g(n.metadata.count.value)) return this.fail();
|
|
168
|
+
let i;
|
|
169
|
+
if (n.kind === "open") {
|
|
170
|
+
if (this.opened || n.rows.length > this.maxRows) return this.fail();
|
|
171
|
+
if (i = n.rows.slice(), i.some((s) => !p(s)) || new Set(i.map((s) => s.key)).size !== i.length) return this.fail();
|
|
172
|
+
} else {
|
|
173
|
+
if (!this.opened || n.changes.length > 128) return this.fail();
|
|
174
|
+
i = this.snapshot.rows.slice();
|
|
175
|
+
for (const s of n.changes)
|
|
176
|
+
if (s.kind === "enter") {
|
|
177
|
+
if (!p(s.row) || i.some((u) => u.key === s.row.key) || !A(s.index, i.length) || i.length >= this.maxRows) return this.fail();
|
|
178
|
+
i.splice(s.index, 0, s.row);
|
|
179
|
+
} else {
|
|
180
|
+
const u = i.findIndex((h) => h.key === s.key);
|
|
181
|
+
if (u < 0) return this.fail();
|
|
182
|
+
if (s.kind === "update") {
|
|
183
|
+
if (!p(s.row) || s.row.key !== s.key) return this.fail();
|
|
184
|
+
i[u] = s.row;
|
|
185
|
+
} else if (s.kind === "move") {
|
|
186
|
+
const [h] = i.splice(u, 1);
|
|
187
|
+
if (!A(s.index, i.length)) return this.fail();
|
|
188
|
+
i.splice(s.index, 0, h);
|
|
189
|
+
} else if (s.kind === "leave" || s.kind === "delete") i.splice(u, 1);
|
|
190
|
+
else return this.fail();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return this.sequence = BigInt(e.sequence), this.opened = !0, this.publish({
|
|
194
|
+
status: "ready",
|
|
195
|
+
generation: this.generation,
|
|
196
|
+
rows: i,
|
|
197
|
+
metadata: n.metadata,
|
|
198
|
+
stale: !1
|
|
199
|
+
}), d;
|
|
200
|
+
} catch {
|
|
201
|
+
return this.fail();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
fail() {
|
|
205
|
+
return this.generation ? this.recovering ? d : (this.recovering = !0, this.publish({
|
|
206
|
+
...this.snapshot,
|
|
207
|
+
status: "recovering",
|
|
208
|
+
stale: this.snapshot.rows.length > 0
|
|
209
|
+
}), {
|
|
210
|
+
kind: "recover",
|
|
211
|
+
generation: this.generation
|
|
212
|
+
}) : (this.close(), {
|
|
213
|
+
kind: "reopen"
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
publish(e) {
|
|
217
|
+
this.snapshot = K(e);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
let Y = class P {
|
|
6
221
|
running;
|
|
7
222
|
url;
|
|
8
223
|
source;
|
|
9
224
|
error;
|
|
10
225
|
/** Creates a new Status instance. */
|
|
11
|
-
constructor(
|
|
12
|
-
"running" in
|
|
226
|
+
constructor(e = {}) {
|
|
227
|
+
"running" in e || (this.running = !1), "url" in e || (this.url = ""), "source" in e || (this.source = ""), "error" in e || (this.error = ""), Object.assign(this, e);
|
|
13
228
|
}
|
|
14
229
|
/**
|
|
15
230
|
* Creates a new Status instance from a string or object.
|
|
16
231
|
*/
|
|
17
|
-
static createFrom(
|
|
18
|
-
let
|
|
19
|
-
return new
|
|
232
|
+
static createFrom(e = {}) {
|
|
233
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
234
|
+
return new P(n);
|
|
20
235
|
}
|
|
21
236
|
};
|
|
22
|
-
function
|
|
23
|
-
return
|
|
237
|
+
function $() {
|
|
238
|
+
return r(3755720097).then((t) => ee(t));
|
|
24
239
|
}
|
|
25
|
-
const
|
|
240
|
+
const ee = Y.createFrom, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
241
|
__proto__: null,
|
|
27
|
-
GetStatus:
|
|
242
|
+
GetStatus: $
|
|
28
243
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
29
|
-
class
|
|
244
|
+
class k {
|
|
30
245
|
pid;
|
|
31
246
|
startIdentity;
|
|
32
247
|
executable;
|
|
33
248
|
/** Creates a new ProcessObservation instance. */
|
|
34
|
-
constructor(
|
|
35
|
-
"pid" in
|
|
249
|
+
constructor(e = {}) {
|
|
250
|
+
"pid" in e || (this.pid = 0), "startIdentity" in e || (this.startIdentity = ""), "executable" in e || (this.executable = ""), Object.assign(this, e);
|
|
36
251
|
}
|
|
37
252
|
/**
|
|
38
253
|
* Creates a new ProcessObservation instance from a string or object.
|
|
39
254
|
*/
|
|
40
|
-
static createFrom(
|
|
41
|
-
let
|
|
42
|
-
return new
|
|
255
|
+
static createFrom(e = {}) {
|
|
256
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
257
|
+
return new k(n);
|
|
43
258
|
}
|
|
44
259
|
}
|
|
45
|
-
class
|
|
260
|
+
class v {
|
|
46
261
|
key;
|
|
47
262
|
role;
|
|
48
263
|
pluginID;
|
|
@@ -53,61 +268,61 @@ class d {
|
|
|
53
268
|
evidence;
|
|
54
269
|
error;
|
|
55
270
|
/** Creates a new Process instance. */
|
|
56
|
-
constructor(
|
|
57
|
-
"key" in
|
|
271
|
+
constructor(e = {}) {
|
|
272
|
+
"key" in e || (this.key = ""), "role" in e || (this.role = ""), "pluginID" in e || (this.pluginID = ""), "ownership" in e || (this.ownership = ""), "identity" in e || (this.identity = null), "windows" in e || (this.windows = []), "windowAssociation" in e || (this.windowAssociation = ""), "evidence" in e || (this.evidence = ""), "error" in e || (this.error = ""), Object.assign(this, e);
|
|
58
273
|
}
|
|
59
274
|
/**
|
|
60
275
|
* Creates a new Process instance from a string or object.
|
|
61
276
|
*/
|
|
62
|
-
static createFrom(
|
|
63
|
-
const
|
|
64
|
-
let
|
|
65
|
-
return "identity" in
|
|
277
|
+
static createFrom(e = {}) {
|
|
278
|
+
const n = ne, i = re;
|
|
279
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
280
|
+
return "identity" in s && (s.identity = n(s.identity)), "windows" in s && (s.windows = i(s.windows)), new v(s);
|
|
66
281
|
}
|
|
67
282
|
}
|
|
68
|
-
class
|
|
283
|
+
class I {
|
|
69
284
|
observedAt;
|
|
70
285
|
processes;
|
|
71
286
|
/** Creates a new Snapshot instance. */
|
|
72
|
-
constructor(
|
|
73
|
-
"observedAt" in
|
|
287
|
+
constructor(e = {}) {
|
|
288
|
+
"observedAt" in e || (this.observedAt = "0001-01-01T00:00:00.000Z"), "processes" in e || (this.processes = []), Object.assign(this, e);
|
|
74
289
|
}
|
|
75
290
|
/**
|
|
76
291
|
* Creates a new Snapshot instance from a string or object.
|
|
77
292
|
*/
|
|
78
|
-
static createFrom(
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
return "processes" in
|
|
293
|
+
static createFrom(e = {}) {
|
|
294
|
+
const n = ae;
|
|
295
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
296
|
+
return "processes" in i && (i.processes = n(i.processes)), new I(i);
|
|
82
297
|
}
|
|
83
298
|
}
|
|
84
|
-
class
|
|
299
|
+
class O {
|
|
85
300
|
name;
|
|
86
301
|
id;
|
|
87
302
|
nativeID;
|
|
88
303
|
ownership;
|
|
89
304
|
error;
|
|
90
305
|
/** Creates a new Window instance. */
|
|
91
|
-
constructor(
|
|
92
|
-
"name" in
|
|
306
|
+
constructor(e = {}) {
|
|
307
|
+
"name" in e || (this.name = ""), "id" in e || (this.id = 0), "nativeID" in e || (this.nativeID = 0), "ownership" in e || (this.ownership = ""), "error" in e || (this.error = ""), Object.assign(this, e);
|
|
93
308
|
}
|
|
94
309
|
/**
|
|
95
310
|
* Creates a new Window instance from a string or object.
|
|
96
311
|
*/
|
|
97
|
-
static createFrom(
|
|
98
|
-
let
|
|
99
|
-
return new
|
|
312
|
+
static createFrom(e = {}) {
|
|
313
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
314
|
+
return new O(n);
|
|
100
315
|
}
|
|
101
316
|
}
|
|
102
|
-
const
|
|
103
|
-
function
|
|
104
|
-
return
|
|
317
|
+
const te = k.createFrom, ne = N(te), ie = O.createFrom, re = l(ie), se = v.createFrom, ae = l(se);
|
|
318
|
+
function oe() {
|
|
319
|
+
return r(3873589115).then((t) => ce(t));
|
|
105
320
|
}
|
|
106
|
-
const
|
|
321
|
+
const ce = I.createFrom, Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
107
322
|
__proto__: null,
|
|
108
|
-
GetSnapshot:
|
|
323
|
+
GetSnapshot: oe
|
|
109
324
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
110
|
-
class
|
|
325
|
+
class T {
|
|
111
326
|
supported;
|
|
112
327
|
enabled;
|
|
113
328
|
engine;
|
|
@@ -116,235 +331,235 @@ class y {
|
|
|
116
331
|
target;
|
|
117
332
|
error;
|
|
118
333
|
/** Creates a new Status instance. */
|
|
119
|
-
constructor(
|
|
120
|
-
"supported" in
|
|
334
|
+
constructor(e = {}) {
|
|
335
|
+
"supported" in e || (this.supported = !1), "enabled" in e || (this.enabled = !1), "engine" in e || (this.engine = ""), "window" in e || (this.window = ""), "application" in e || (this.application = ""), "target" in e || (this.target = ""), "error" in e || (this.error = ""), Object.assign(this, e);
|
|
121
336
|
}
|
|
122
337
|
/**
|
|
123
338
|
* Creates a new Status instance from a string or object.
|
|
124
339
|
*/
|
|
125
|
-
static createFrom(
|
|
126
|
-
let
|
|
127
|
-
return new
|
|
340
|
+
static createFrom(e = {}) {
|
|
341
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
342
|
+
return new T(n);
|
|
128
343
|
}
|
|
129
344
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
345
|
+
function le(t) {
|
|
346
|
+
return r(2352399502, t).then((e) => fe(e));
|
|
132
347
|
}
|
|
133
|
-
const
|
|
348
|
+
const fe = T.createFrom, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
134
349
|
__proto__: null,
|
|
135
|
-
GetStatus:
|
|
350
|
+
GetStatus: le
|
|
136
351
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
137
|
-
function
|
|
138
|
-
return
|
|
352
|
+
function de(t, e) {
|
|
353
|
+
return r(1112300727, t, e);
|
|
139
354
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
355
|
+
function ue(t) {
|
|
356
|
+
return r(3545575747, t);
|
|
142
357
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
358
|
+
function pe() {
|
|
359
|
+
return r(973353934).then((t) => xe(t));
|
|
145
360
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
361
|
+
function he() {
|
|
362
|
+
return r(3274001154).then((t) => De(t));
|
|
148
363
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
364
|
+
function ge() {
|
|
365
|
+
return r(1957733758).then((t) => Ne(t));
|
|
151
366
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
367
|
+
function ye() {
|
|
368
|
+
return r(3570265771).then((t) => Pe(t));
|
|
154
369
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
370
|
+
function me() {
|
|
371
|
+
return r(338269344).then((t) => Ee(t));
|
|
157
372
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
373
|
+
function be(t) {
|
|
374
|
+
return r(2544305887, t).then((e) => Re(e));
|
|
160
375
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
376
|
+
function Se(t, e) {
|
|
377
|
+
return r(1042852749, t, e);
|
|
163
378
|
}
|
|
164
|
-
function
|
|
165
|
-
return
|
|
379
|
+
function we() {
|
|
380
|
+
return r(3071199936);
|
|
166
381
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
382
|
+
function ke(t) {
|
|
383
|
+
return r(2852029597, t);
|
|
169
384
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
385
|
+
function ve(t) {
|
|
386
|
+
return r(2119350976, t);
|
|
172
387
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
388
|
+
function Ie(t, e, n) {
|
|
389
|
+
return r(1507504662, t, e, n);
|
|
175
390
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
391
|
+
function Oe(t) {
|
|
392
|
+
return r(4286704285, t);
|
|
178
393
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
394
|
+
function Te(t, e) {
|
|
395
|
+
return r(323373508, t, e);
|
|
181
396
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
397
|
+
function Fe(t) {
|
|
398
|
+
return r(2912056327, t);
|
|
184
399
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
400
|
+
function je(t, e, n) {
|
|
401
|
+
return r(3748367702, t, e, n);
|
|
187
402
|
}
|
|
188
|
-
const
|
|
403
|
+
const xe = M.createFrom, De = L.createFrom, Ae = z.createFrom, Ne = l(Ae), _e = J.createFrom, Pe = l(_e), Ce = q.createFrom, Ee = l(Ce), Ge = B.createFrom, Re = l(Ge), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
189
404
|
__proto__: null,
|
|
190
|
-
ApplyPreset:
|
|
191
|
-
DeleteUserPreset:
|
|
192
|
-
GetConfig:
|
|
193
|
-
GetStatus:
|
|
194
|
-
ListConnectionPolicies:
|
|
195
|
-
ListPendingConfirmations:
|
|
196
|
-
ListPresets:
|
|
197
|
-
ListTools:
|
|
198
|
-
ResolveConfirmation:
|
|
199
|
-
RotateToken:
|
|
200
|
-
SaveUserPreset:
|
|
201
|
-
SetBlockConnectionsByDefault:
|
|
202
|
-
SetConnectionAccess:
|
|
203
|
-
SetEnabled:
|
|
204
|
-
SetPluginEnabled:
|
|
205
|
-
SetPort:
|
|
206
|
-
SetToolOverride:
|
|
405
|
+
ApplyPreset: de,
|
|
406
|
+
DeleteUserPreset: ue,
|
|
407
|
+
GetConfig: pe,
|
|
408
|
+
GetStatus: he,
|
|
409
|
+
ListConnectionPolicies: ge,
|
|
410
|
+
ListPendingConfirmations: ye,
|
|
411
|
+
ListPresets: me,
|
|
412
|
+
ListTools: be,
|
|
413
|
+
ResolveConfirmation: Se,
|
|
414
|
+
RotateToken: we,
|
|
415
|
+
SaveUserPreset: ke,
|
|
416
|
+
SetBlockConnectionsByDefault: ve,
|
|
417
|
+
SetConnectionAccess: Ie,
|
|
418
|
+
SetEnabled: Oe,
|
|
419
|
+
SetPluginEnabled: Te,
|
|
420
|
+
SetPort: Fe,
|
|
421
|
+
SetToolOverride: je
|
|
207
422
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
208
|
-
function
|
|
209
|
-
return
|
|
423
|
+
function Me(t) {
|
|
424
|
+
return r(3503478684, t);
|
|
210
425
|
}
|
|
211
|
-
const
|
|
426
|
+
const Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
212
427
|
__proto__: null,
|
|
213
|
-
DetectLanguage:
|
|
428
|
+
DetectLanguage: Me
|
|
214
429
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
215
|
-
function
|
|
216
|
-
return
|
|
430
|
+
function Le(t, e) {
|
|
431
|
+
return r(2691208406, t, e);
|
|
217
432
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
433
|
+
function ze(t, e) {
|
|
434
|
+
return r(3932965591, t, e);
|
|
220
435
|
}
|
|
221
|
-
function
|
|
222
|
-
return
|
|
436
|
+
function Je(t, e) {
|
|
437
|
+
return r(1686862755, t, e);
|
|
223
438
|
}
|
|
224
|
-
function
|
|
225
|
-
return
|
|
439
|
+
function qe(t, e, n) {
|
|
440
|
+
return r(3705442919, t, e, n);
|
|
226
441
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
442
|
+
function Be(t) {
|
|
443
|
+
return r(3024854267, t);
|
|
229
444
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
445
|
+
function Ue(t) {
|
|
446
|
+
return r(3423289677, t);
|
|
232
447
|
}
|
|
233
|
-
function
|
|
234
|
-
return
|
|
448
|
+
function Ve(t) {
|
|
449
|
+
return r(158417611, t);
|
|
235
450
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
451
|
+
function We(t) {
|
|
452
|
+
return r(3413815733, t);
|
|
238
453
|
}
|
|
239
|
-
function
|
|
240
|
-
return
|
|
454
|
+
function Ze(t, e) {
|
|
455
|
+
return r(2047870999, t, e);
|
|
241
456
|
}
|
|
242
|
-
const
|
|
457
|
+
const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
243
458
|
__proto__: null,
|
|
244
|
-
Debug:
|
|
245
|
-
Error:
|
|
246
|
-
Info:
|
|
247
|
-
Log:
|
|
248
|
-
ReadLog:
|
|
249
|
-
ReportStartupReady:
|
|
250
|
-
StartTail:
|
|
251
|
-
StopTail:
|
|
252
|
-
Warn:
|
|
459
|
+
Debug: Le,
|
|
460
|
+
Error: ze,
|
|
461
|
+
Info: Je,
|
|
462
|
+
Log: qe,
|
|
463
|
+
ReadLog: Be,
|
|
464
|
+
ReportStartupReady: Ue,
|
|
465
|
+
StartTail: Ve,
|
|
466
|
+
StopTail: We,
|
|
467
|
+
Warn: Ze
|
|
253
468
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
254
|
-
class
|
|
469
|
+
class F {
|
|
255
470
|
windowName;
|
|
256
471
|
token;
|
|
257
472
|
pending;
|
|
258
473
|
/** Creates a new Registration instance. */
|
|
259
|
-
constructor(
|
|
260
|
-
"windowName" in
|
|
474
|
+
constructor(e = {}) {
|
|
475
|
+
"windowName" in e || (this.windowName = ""), "token" in e || (this.token = ""), Object.assign(this, e);
|
|
261
476
|
}
|
|
262
477
|
/**
|
|
263
478
|
* Creates a new Registration instance from a string or object.
|
|
264
479
|
*/
|
|
265
|
-
static createFrom(
|
|
266
|
-
let
|
|
267
|
-
return new
|
|
480
|
+
static createFrom(e = {}) {
|
|
481
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
482
|
+
return new F(n);
|
|
268
483
|
}
|
|
269
484
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
485
|
+
function He() {
|
|
486
|
+
return r(2260974144).then((t) => Ke(t));
|
|
272
487
|
}
|
|
273
|
-
function
|
|
274
|
-
return
|
|
488
|
+
function Qe(t, e, n, i) {
|
|
489
|
+
return r(286400678, t, e, n, i);
|
|
275
490
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
491
|
+
function Xe(t) {
|
|
492
|
+
return r(1772773955, t);
|
|
278
493
|
}
|
|
279
|
-
const
|
|
494
|
+
const Ke = F.createFrom, Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
280
495
|
__proto__: null,
|
|
281
|
-
Register:
|
|
282
|
-
Respond:
|
|
283
|
-
Unregister:
|
|
496
|
+
Register: He,
|
|
497
|
+
Respond: Qe,
|
|
498
|
+
Unregister: Xe
|
|
284
499
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
285
|
-
function
|
|
286
|
-
return
|
|
500
|
+
function Ye(t, e) {
|
|
501
|
+
return r(712656304, t, e).then((n) => ct(n));
|
|
287
502
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
503
|
+
function $e(t) {
|
|
504
|
+
return r(4153226260, t).then((e) => y(e));
|
|
290
505
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
506
|
+
function et(t) {
|
|
507
|
+
return r(1859413816, t);
|
|
293
508
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
509
|
+
function tt() {
|
|
510
|
+
return r(2707386443).then((t) => lt(t));
|
|
296
511
|
}
|
|
297
|
-
function
|
|
298
|
-
return
|
|
512
|
+
function nt(t) {
|
|
513
|
+
return r(2381063937, t);
|
|
299
514
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
515
|
+
function it(t) {
|
|
516
|
+
return r(123659362, t).then((e) => y(e));
|
|
302
517
|
}
|
|
303
|
-
function
|
|
304
|
-
return
|
|
518
|
+
function rt(t) {
|
|
519
|
+
return r(709599671, t).then((e) => y(e));
|
|
305
520
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
521
|
+
function st(t, e) {
|
|
522
|
+
return r(2105869281, t, e).then((n) => y(n));
|
|
308
523
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
524
|
+
function at(t) {
|
|
525
|
+
return r(1371062537, t);
|
|
311
526
|
}
|
|
312
|
-
const
|
|
527
|
+
const ot = V.createFrom, ct = l(ot), y = U.createFrom, lt = l(y), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
313
528
|
__proto__: null,
|
|
314
|
-
GetDevServerLogs:
|
|
315
|
-
GetDevServerState:
|
|
316
|
-
IsManaged:
|
|
317
|
-
ListDevServerStates:
|
|
318
|
-
RebuildPlugin:
|
|
319
|
-
RestartDevServer:
|
|
320
|
-
StartDevServer:
|
|
321
|
-
StartDevServerForPath:
|
|
322
|
-
StopDevServer:
|
|
529
|
+
GetDevServerLogs: Ye,
|
|
530
|
+
GetDevServerState: $e,
|
|
531
|
+
IsManaged: et,
|
|
532
|
+
ListDevServerStates: tt,
|
|
533
|
+
RebuildPlugin: nt,
|
|
534
|
+
RestartDevServer: it,
|
|
535
|
+
StartDevServer: rt,
|
|
536
|
+
StartDevServerForPath: st,
|
|
537
|
+
StopDevServer: at
|
|
323
538
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
324
|
-
function
|
|
325
|
-
return
|
|
539
|
+
function ft(t, e) {
|
|
540
|
+
return r(1867216983, t, e).then((n) => C(n));
|
|
326
541
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
542
|
+
function dt() {
|
|
543
|
+
return r(3418650705).then((t) => yt(t));
|
|
329
544
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
545
|
+
function ut(t, e) {
|
|
546
|
+
return r(4138610615, t, e).then((n) => C(n));
|
|
332
547
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
548
|
+
function pt(t) {
|
|
549
|
+
return r(3055914536, t);
|
|
335
550
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
551
|
+
function ht(t) {
|
|
552
|
+
return r(1502487629, t);
|
|
338
553
|
}
|
|
339
|
-
const
|
|
554
|
+
const gt = W.createFrom, C = l(gt), yt = l(m), zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
340
555
|
__proto__: null,
|
|
341
|
-
GetLogs:
|
|
342
|
-
ListStreams:
|
|
343
|
-
SearchLogs:
|
|
344
|
-
Subscribe:
|
|
345
|
-
Unsubscribe:
|
|
556
|
+
GetLogs: ft,
|
|
557
|
+
ListStreams: dt,
|
|
558
|
+
SearchLogs: ut,
|
|
559
|
+
Subscribe: pt,
|
|
560
|
+
Unsubscribe: ht
|
|
346
561
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
347
|
-
class
|
|
562
|
+
class b {
|
|
348
563
|
browser;
|
|
349
564
|
vite;
|
|
350
565
|
hmr;
|
|
@@ -352,35 +567,35 @@ class p {
|
|
|
352
567
|
control;
|
|
353
568
|
health;
|
|
354
569
|
/** Creates a new Endpoints instance. */
|
|
355
|
-
constructor(
|
|
356
|
-
"browser" in
|
|
570
|
+
constructor(e = {}) {
|
|
571
|
+
"browser" in e || (this.browser = null), "vite" in e || (this.vite = null), "hmr" in e || (this.hmr = null), "mcp" in e || (this.mcp = null), "control" in e || (this.control = null), "health" in e || (this.health = null), Object.assign(this, e);
|
|
357
572
|
}
|
|
358
573
|
/**
|
|
359
574
|
* Creates a new Endpoints instance from a string or object.
|
|
360
575
|
*/
|
|
361
|
-
static createFrom(
|
|
362
|
-
let
|
|
363
|
-
return new
|
|
576
|
+
static createFrom(e = {}) {
|
|
577
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
578
|
+
return new b(n);
|
|
364
579
|
}
|
|
365
580
|
}
|
|
366
|
-
class
|
|
581
|
+
let mt = class E {
|
|
367
582
|
code;
|
|
368
583
|
message;
|
|
369
584
|
details;
|
|
370
585
|
/** Creates a new Error instance. */
|
|
371
|
-
constructor(
|
|
372
|
-
"code" in
|
|
586
|
+
constructor(e = {}) {
|
|
587
|
+
"code" in e || (this.code = ""), "message" in e || (this.message = ""), Object.assign(this, e);
|
|
373
588
|
}
|
|
374
589
|
/**
|
|
375
590
|
* Creates a new Error instance from a string or object.
|
|
376
591
|
*/
|
|
377
|
-
static createFrom(
|
|
378
|
-
const
|
|
379
|
-
let
|
|
380
|
-
return "details" in
|
|
592
|
+
static createFrom(e = {}) {
|
|
593
|
+
const n = bt;
|
|
594
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
595
|
+
return "details" in i && (i.details = n(i.details)), new E(i);
|
|
381
596
|
}
|
|
382
|
-
}
|
|
383
|
-
class
|
|
597
|
+
};
|
|
598
|
+
class j {
|
|
384
599
|
schemaVersion;
|
|
385
600
|
workspaceID;
|
|
386
601
|
instanceID;
|
|
@@ -399,19 +614,19 @@ class w {
|
|
|
399
614
|
lastError;
|
|
400
615
|
startedAt;
|
|
401
616
|
/** Creates a new InstanceDescriptor instance. */
|
|
402
|
-
constructor(
|
|
403
|
-
"schemaVersion" in
|
|
617
|
+
constructor(e = {}) {
|
|
618
|
+
"schemaVersion" in e || (this.schemaVersion = 0), "workspaceID" in e || (this.workspaceID = ""), "instanceID" in e || (this.instanceID = ""), "generation" in e || (this.generation = ""), "kind" in e || (this.kind = ""), "channel" in e || (this.channel = ""), "displayName" in e || (this.displayName = ""), "stateRoot" in e || (this.stateRoot = ""), "process" in e || (this.process = new S()), "version" in e || (this.version = ""), "commit" in e || (this.commit = ""), "repositories" in e || (this.repositories = []), "endpoints" in e || (this.endpoints = new b()), "plugins" in e || (this.plugins = []), "readiness" in e || (this.readiness = ""), "startedAt" in e || (this.startedAt = "0001-01-01T00:00:00.000Z"), Object.assign(this, e);
|
|
404
619
|
}
|
|
405
620
|
/**
|
|
406
621
|
* Creates a new InstanceDescriptor instance from a string or object.
|
|
407
622
|
*/
|
|
408
|
-
static createFrom(
|
|
409
|
-
const
|
|
410
|
-
let
|
|
411
|
-
return "process" in
|
|
623
|
+
static createFrom(e = {}) {
|
|
624
|
+
const n = St, i = kt, s = vt, u = Ot, h = G;
|
|
625
|
+
let c = typeof e == "string" ? JSON.parse(e) : e;
|
|
626
|
+
return "process" in c && (c.process = n(c.process)), "repositories" in c && (c.repositories = i(c.repositories)), "endpoints" in c && (c.endpoints = s(c.endpoints)), "plugins" in c && (c.plugins = u(c.plugins)), "lastError" in c && (c.lastError = h(c.lastError)), new j(c);
|
|
412
627
|
}
|
|
413
628
|
}
|
|
414
|
-
class
|
|
629
|
+
class x {
|
|
415
630
|
id;
|
|
416
631
|
version;
|
|
417
632
|
source;
|
|
@@ -424,19 +639,19 @@ class b {
|
|
|
424
639
|
operationID;
|
|
425
640
|
lastError;
|
|
426
641
|
/** Creates a new PluginState instance. */
|
|
427
|
-
constructor(
|
|
428
|
-
"id" in
|
|
642
|
+
constructor(e = {}) {
|
|
643
|
+
"id" in e || (this.id = ""), "version" in e || (this.version = ""), "source" in e || (this.source = ""), "generation" in e || (this.generation = ""), "mode" in e || (this.mode = ""), "buildStatus" in e || (this.buildStatus = ""), "viteStatus" in e || (this.viteStatus = ""), "rpcStatus" in e || (this.rpcStatus = ""), "controllerStatus" in e || (this.controllerStatus = ""), Object.assign(this, e);
|
|
429
644
|
}
|
|
430
645
|
/**
|
|
431
646
|
* Creates a new PluginState instance from a string or object.
|
|
432
647
|
*/
|
|
433
|
-
static createFrom(
|
|
434
|
-
const
|
|
435
|
-
let
|
|
436
|
-
return "lastError" in
|
|
648
|
+
static createFrom(e = {}) {
|
|
649
|
+
const n = G;
|
|
650
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
651
|
+
return "lastError" in i && (i.lastError = n(i.lastError)), new x(i);
|
|
437
652
|
}
|
|
438
653
|
}
|
|
439
|
-
class
|
|
654
|
+
class S {
|
|
440
655
|
pid;
|
|
441
656
|
startIdentity;
|
|
442
657
|
executable;
|
|
@@ -445,75 +660,76 @@ class f {
|
|
|
445
660
|
role;
|
|
446
661
|
source;
|
|
447
662
|
/** Creates a new ProcessIdentity instance. */
|
|
448
|
-
constructor(
|
|
449
|
-
"pid" in
|
|
663
|
+
constructor(e = {}) {
|
|
664
|
+
"pid" in e || (this.pid = 0), "startIdentity" in e || (this.startIdentity = ""), "executable" in e || (this.executable = ""), "workspaceID" in e || (this.workspaceID = ""), "generation" in e || (this.generation = ""), "role" in e || (this.role = ""), Object.assign(this, e);
|
|
450
665
|
}
|
|
451
666
|
/**
|
|
452
667
|
* Creates a new ProcessIdentity instance from a string or object.
|
|
453
668
|
*/
|
|
454
|
-
static createFrom(
|
|
455
|
-
let
|
|
456
|
-
return new
|
|
669
|
+
static createFrom(e = {}) {
|
|
670
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
671
|
+
return new S(n);
|
|
457
672
|
}
|
|
458
673
|
}
|
|
459
|
-
class
|
|
674
|
+
class D {
|
|
460
675
|
id;
|
|
461
676
|
path;
|
|
462
677
|
ref;
|
|
463
678
|
commit;
|
|
464
679
|
/** Creates a new RepositoryResolution instance. */
|
|
465
|
-
constructor(
|
|
466
|
-
"id" in
|
|
680
|
+
constructor(e = {}) {
|
|
681
|
+
"id" in e || (this.id = ""), "path" in e || (this.path = ""), "ref" in e || (this.ref = ""), "commit" in e || (this.commit = ""), Object.assign(this, e);
|
|
467
682
|
}
|
|
468
683
|
/**
|
|
469
684
|
* Creates a new RepositoryResolution instance from a string or object.
|
|
470
685
|
*/
|
|
471
|
-
static createFrom(
|
|
472
|
-
let
|
|
473
|
-
return new
|
|
686
|
+
static createFrom(e = {}) {
|
|
687
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
688
|
+
return new D(n);
|
|
474
689
|
}
|
|
475
690
|
}
|
|
476
|
-
const
|
|
477
|
-
function
|
|
478
|
-
return
|
|
691
|
+
const bt = R(m, m), St = S.createFrom, wt = D.createFrom, kt = l(wt), vt = b.createFrom, It = x.createFrom, Ot = l(It), Tt = mt.createFrom, G = N(Tt);
|
|
692
|
+
function Jt() {
|
|
693
|
+
return r(678226073).then((t) => Ft(t));
|
|
479
694
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
695
|
+
function qt() {
|
|
696
|
+
return r(1706570792);
|
|
482
697
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
698
|
+
function Bt(t) {
|
|
699
|
+
return r(2957909098, t).then((e) => jt(e));
|
|
485
700
|
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
701
|
+
function Ut(t) {
|
|
702
|
+
return r(473489213, t);
|
|
488
703
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
704
|
+
function Vt(t, e) {
|
|
705
|
+
return r(3778694836, t, e);
|
|
491
706
|
}
|
|
492
|
-
const
|
|
707
|
+
const Ft = j.createFrom, jt = l(m);
|
|
493
708
|
export {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
709
|
+
Ht as DataClient,
|
|
710
|
+
Lt as DevServerManager,
|
|
711
|
+
Rt as DiagnosticsClient,
|
|
712
|
+
Qt as ExecClient,
|
|
713
|
+
Mt as ExtensionDiagnosticsClient,
|
|
714
|
+
Jt as GetInstanceInfo,
|
|
715
|
+
qt as GetOperatingSystem,
|
|
716
|
+
Xt as GraphClient,
|
|
717
|
+
_t as HostProfiling,
|
|
718
|
+
Kt as LogsClient,
|
|
719
|
+
Et as McpRelayClient,
|
|
720
|
+
Yt as MetricClient,
|
|
721
|
+
$t as NetworkerClient,
|
|
722
|
+
Bt as OpenFileSelectionDialog,
|
|
723
|
+
zt as PluginLogManager,
|
|
724
|
+
en as PluginManager,
|
|
725
|
+
Pt as ProcessInventory,
|
|
726
|
+
Nt as QueryLeaseObserver,
|
|
727
|
+
tn as ResourceClient,
|
|
728
|
+
Ut as SaveFileDialog,
|
|
729
|
+
nn as SettingsService,
|
|
730
|
+
rn as UIClient,
|
|
731
|
+
Ct as UiInspection,
|
|
732
|
+
Gt as UtilsClient,
|
|
733
|
+
sn as WindowClient,
|
|
734
|
+
Vt as WriteFileContent
|
|
519
735
|
};
|