@omniviewdev/runtime 0.13.0 → 0.14.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.
Files changed (31) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +199 -175
  4. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/binding.d.ts +8 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/index.d.ts +3 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/models.d.ts +33 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/{backend/pkg/plugin/settings → internal/profiling}/index.d.ts +1 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/models.d.ts +12 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +3 -0
  10. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +8 -0
  11. package/dist/context/plugins/usePluginContext.d.ts +0 -1
  12. package/dist/context/settings/SettingsContext.d.ts +0 -1
  13. package/dist/hooks/settings/index.d.ts +1 -0
  14. package/dist/hooks/settings/useScopedSettings.d.ts +30 -0
  15. package/dist/index.cjs +4 -4
  16. package/dist/index.js +1829 -1756
  17. package/dist/{models-Cg1YRHQm.js → models-BJgLAHwq.js} +1 -1
  18. package/dist/{models-UwESEW2B.js → models-BTzXdmUY.js} +183 -175
  19. package/dist/{models-dzj-SsFZ.cjs → models-BhsFYb70.cjs} +1 -1
  20. package/dist/models-NYvUa5Yc.cjs +1 -0
  21. package/dist/models.cjs +1 -1
  22. package/dist/models.js +8 -8
  23. package/dist/servicewrapper-B-DdHGSp.cjs +1 -0
  24. package/dist/servicewrapper-Bl98xvmZ.js +639 -0
  25. package/package.json +1 -1
  26. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +0 -19
  27. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +0 -2
  28. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +0 -52
  29. package/dist/models-DSGyy8lg.cjs +0 -1
  30. package/dist/servicewrapper-BhxHs5DR.js +0 -688
  31. package/dist/servicewrapper-CNtZecKV.cjs +0 -1
@@ -0,0 +1,639 @@
1
+ import { B as Y, N as y, M as S, A as a, a as p } from "./index-zyAgCXOO.js";
2
+ import { a as z, H as Z, b as ee, c as te, P as ne, D as re, V as oe, R as se, A as ie, C as ce, d as ae, e as ue, f as le, g as fe, L as pe, h as he, i as $e, Q as de } from "./models-BTzXdmUY.js";
3
+ import { B as r, a as h } from "./calls-DYGtxNJ6.js";
4
+ function $(e, t = []) {
5
+ let u = 0;
6
+ for (const i of t) {
7
+ if (i.length > 65536) throw new RangeError("Request routing byte limit");
8
+ u += new TextEncoder().encode(JSON.stringify(i)).length + 1;
9
+ }
10
+ if (u > 57344) throw new RangeError("Request routing byte limit");
11
+ let M = 0, N = 2, X = 0, W = 0;
12
+ const H = [], f = (i) => {
13
+ for (let l = 0; l < i.length; l++) {
14
+ const c = i.charCodeAt(l);
15
+ let d = c < 128 ? 1 : c < 2048 ? 2 : 3;
16
+ if (c >= 55296 && c <= 56319) {
17
+ const m = i.charCodeAt(++l);
18
+ if (!(m >= 56320 && m <= 57343)) throw new TypeError("Invalid Unicode");
19
+ d = 4;
20
+ } else if (c >= 56320 && c <= 57343) throw new TypeError("Invalid Unicode");
21
+ if (M += d, N += c === 34 || c === 92 ? 2 : d, M > 33554432 || N > 67043328) throw new RangeError("Request JSON byte limit");
22
+ }
23
+ H.push(i);
24
+ }, J = (i) => {
25
+ if (i.length > 33554432) throw new RangeError("Request JSON byte limit");
26
+ for (let l = 0; l < i.length; l++) {
27
+ const c = i.charCodeAt(l);
28
+ if (c >= 55296 && c <= 56319) {
29
+ const d = i.charCodeAt(++l);
30
+ if (!(d >= 56320 && d <= 57343)) throw new TypeError("Invalid Unicode");
31
+ } else if (c >= 56320 && c <= 57343) throw new TypeError("Invalid Unicode");
32
+ }
33
+ f(JSON.stringify(i));
34
+ }, G = (i, l) => {
35
+ if (++X > 262144 || l > 64) throw new RangeError("Request JSON structural limit");
36
+ if (i === null) {
37
+ f("null");
38
+ return;
39
+ }
40
+ if (typeof i == "string") {
41
+ J(i);
42
+ return;
43
+ }
44
+ if (typeof i == "boolean") {
45
+ f(i ? "true" : "false");
46
+ return;
47
+ }
48
+ if (typeof i == "number") {
49
+ if (!Number.isFinite(i)) throw new TypeError("Request numbers must be finite");
50
+ f(Object.is(i, -0) ? "-0" : JSON.stringify(i));
51
+ return;
52
+ }
53
+ if (Array.isArray(i)) {
54
+ f("[");
55
+ for (let c = 0; c < i.length; c++) {
56
+ if (++W > 1048576) throw new RangeError("Request JSON field limit");
57
+ c && f(","), G(i[c], l + 1);
58
+ }
59
+ f("]");
60
+ return;
61
+ }
62
+ if (typeof i == "object") {
63
+ f("{");
64
+ let c = !0;
65
+ for (const [d, m] of Object.entries(i))
66
+ if (m !== void 0) {
67
+ if (++W > 1048576) throw new RangeError("Request JSON field limit");
68
+ c || f(","), c = !1, J(d), f(":"), G(m, l + 1);
69
+ }
70
+ f("}");
71
+ return;
72
+ }
73
+ throw new TypeError("Unsupported request JSON value");
74
+ };
75
+ return G(e, 0), H.join("");
76
+ }
77
+ function ge(e) {
78
+ return r(93318075, e).then((t) => (t[0] = b(t[0]), t[1] = Y(t[1]), t));
79
+ }
80
+ function ye(e) {
81
+ return r(1353297556, e);
82
+ }
83
+ function me(e) {
84
+ return r(4182196712, e).then((t) => b(t));
85
+ }
86
+ function Se(e) {
87
+ return r(3993344525, e).then((t) => b(t));
88
+ }
89
+ function be(e, t) {
90
+ return r(1779192716, e, t).then((n) => Oe(n));
91
+ }
92
+ function Te() {
93
+ return r(4033362541).then((e) => Ae(e));
94
+ }
95
+ function Pe(e) {
96
+ return r(2619212338, e).then((t) => U(t));
97
+ }
98
+ function Re(e) {
99
+ return r(1371268636, e).then((t) => b(t));
100
+ }
101
+ function we(e) {
102
+ return r(3881019319, e);
103
+ }
104
+ function Ce() {
105
+ return r(3006426324).then((e) => je(e));
106
+ }
107
+ function Ge() {
108
+ return r(265791345).then((e) => Le(e));
109
+ }
110
+ function ve(e, t, n) {
111
+ return r(1492965384, e, t, n);
112
+ }
113
+ function Fe(e, t) {
114
+ return r(486465741, e, t);
115
+ }
116
+ const _e = z.createFrom, b = y(_e), B = Z.createFrom, Oe = y(B), U = S(p, B), Ae = S(p, U), je = a(p), Le = a(b);
117
+ function ke(e, t, n) {
118
+ return h("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession", e, t, $(n, [e, t])).then((s) => s === null ? null : z.createFrom(s));
119
+ }
120
+ const yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
+ __proto__: null,
122
+ AttachSession: ge,
123
+ CloseSession: ye,
124
+ CreateSession: ke,
125
+ CreateTerminal: me,
126
+ DetachSession: Se,
127
+ GetHandler: be,
128
+ GetHandlers: Te,
129
+ GetPluginHandlers: Pe,
130
+ GetSession: Re,
131
+ HasPlugin: we,
132
+ ListPlugins: Ce,
133
+ ListSessions: Ge,
134
+ ResizeSession: ve,
135
+ WriteSession: Fe
136
+ }, Symbol.toStringTag, { value: "Module" }));
137
+ function Ee(e) {
138
+ return r(182596922, e).then((t) => v(t));
139
+ }
140
+ function Me(e, t, n) {
141
+ return r(981100722, e, t, n).then((s) => F(s));
142
+ }
143
+ function Ne(e) {
144
+ return r(2157304970, e).then((t) => v(t));
145
+ }
146
+ function We(e) {
147
+ return r(650882, e).then((t) => q(t));
148
+ }
149
+ function He(e) {
150
+ return r(3624690437, e);
151
+ }
152
+ function Je() {
153
+ return r(2195697754).then((e) => F(e));
154
+ }
155
+ function ze() {
156
+ return r(167463150).then((e) => q(e));
157
+ }
158
+ function Be(e, t) {
159
+ return r(2090415403, e, t).then((n) => F(n));
160
+ }
161
+ const Ue = ee.createFrom, v = y(Ue), F = a(v), q = a(p);
162
+ function qe(e, t, n) {
163
+ return h("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession", e, t, $(n, [e, t]));
164
+ }
165
+ const mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
166
+ __proto__: null,
167
+ ClosePortForwardSession: Ee,
168
+ FindPortForwardSessions: Me,
169
+ GetPortForwardSession: Ne,
170
+ GetSupportedPortForwardTargets: We,
171
+ HasPlugin: He,
172
+ ListAllPortForwardSessions: Je,
173
+ ListPlugins: ze,
174
+ ListPortForwardSessions: Be,
175
+ StartResourcePortForwardingSession: qe
176
+ }, Symbol.toStringTag, { value: "Module" }));
177
+ function xe(e) {
178
+ return r(3150413499, e).then((t) => g(t));
179
+ }
180
+ function Qe(e) {
181
+ return r(1152913314, e).then((t) => ht(t));
182
+ }
183
+ function Ve(e) {
184
+ return r(111194374, e).then((t) => _(t));
185
+ }
186
+ function Ie(e) {
187
+ return r(3945933305, e);
188
+ }
189
+ function De(e) {
190
+ return r(2859775056, e).then((t) => x(t));
191
+ }
192
+ function Ke(e, t) {
193
+ return r(2209599792, e, t).then((n) => gt(n));
194
+ }
195
+ function Xe(e) {
196
+ return r(3963363730, e).then((t) => x(t));
197
+ }
198
+ function Ye(e) {
199
+ return r(1357029266, e).then((t) => g(t));
200
+ }
201
+ function Ze() {
202
+ return r(2477486666).then((e) => R(e));
203
+ }
204
+ function et() {
205
+ return r(976517756).then((e) => R(e));
206
+ }
207
+ function tt(e) {
208
+ return r(1020548995, e).then((t) => R(t));
209
+ }
210
+ function nt(e, t) {
211
+ return r(2004740384, e, t).then((n) => R(n));
212
+ }
213
+ function rt() {
214
+ return r(873697101).then((e) => Q(e));
215
+ }
216
+ function ot() {
217
+ return r(637134283).then((e) => mt(e));
218
+ }
219
+ function st() {
220
+ return r(550607756).then((e) => St(e));
221
+ }
222
+ function it(e, t) {
223
+ return r(288660195, e, t).then((n) => g(n));
224
+ }
225
+ function ct(e) {
226
+ return r(1771013494, e).then((t) => g(t));
227
+ }
228
+ function at(e) {
229
+ return r(2433379724, e).then((t) => g(t));
230
+ }
231
+ function ut(e, t, n) {
232
+ return r(2783597264, e, t, n).then((s) => Q(s));
233
+ }
234
+ function lt(e) {
235
+ return r(1369550929, e).then((t) => g(t));
236
+ }
237
+ function ft(e) {
238
+ return r(3828800061, e).then((t) => g(t));
239
+ }
240
+ const g = te.createFrom, pt = re.createFrom, ht = y(pt), _ = ne.createFrom, $t = oe.createFrom, x = a($t), dt = se.createFrom, gt = a(dt), R = y(_), yt = ie.createFrom, Q = a(yt), mt = a(_), St = a(g), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
241
+ __proto__: null,
242
+ GetPlugin: xe,
243
+ GetPluginDownloadStats: Qe,
244
+ GetPluginMeta: Ve,
245
+ GetPluginReadme: Ie,
246
+ GetPluginReleaseHistory: De,
247
+ GetPluginReviews: Ke,
248
+ GetPluginVersions: Xe,
249
+ InstallDevPluginFromPath: Ye,
250
+ InstallFromPathPrompt: Ze,
251
+ InstallInDevMode: et,
252
+ InstallPluginFromPath: tt,
253
+ InstallPluginVersion: nt,
254
+ ListAvailablePlugins: rt,
255
+ ListPluginMetas: ot,
256
+ ListPlugins: st,
257
+ LoadPlugin: it,
258
+ ReloadPlugin: ct,
259
+ RetryFailedPlugin: at,
260
+ SearchPlugins: ut,
261
+ UninstallPlugin: lt,
262
+ UnlinkDevPlugin: ft
263
+ }, Symbol.toStringTag, { value: "Module" }));
264
+ function bt(e, t) {
265
+ return r(1688967279, e, t).then((n) => V(n));
266
+ }
267
+ function Tt(e, t) {
268
+ return r(950535743, e, t).then((n) => O(n));
269
+ }
270
+ function Pt(e) {
271
+ return r(854008408, e);
272
+ }
273
+ function Rt() {
274
+ return r(1598984489).then((e) => _t(e));
275
+ }
276
+ function wt(e) {
277
+ return r(1775572154, e).then((t) => A(t));
278
+ }
279
+ function Ct() {
280
+ return r(3217612415).then((e) => Ot(e));
281
+ }
282
+ function Gt(e) {
283
+ return r(2037329938, e).then((t) => A(t));
284
+ }
285
+ function vt(e, t) {
286
+ return r(3276991559, e, t).then((n) => V(n));
287
+ }
288
+ function Ft(e, t) {
289
+ return r(794258089, e, t).then((n) => O(n));
290
+ }
291
+ const V = ce.createFrom, O = ae.createFrom, A = a(O), _t = S(p, A), Ot = a(p), At = "github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";
292
+ function o(e, ...t) {
293
+ return h(`${At}.${e}`, ...t);
294
+ }
295
+ const jt = (e) => o("Features", e), Lt = (e, t) => o("GetConnectionMetadata", e, t), kt = (e, t) => o("RefreshConnectionMetadata", e, t), Et = (e, t) => o("Catalog", e, t), Mt = (e, t) => o("Get", e, t), Nt = (e, t) => o("Enumerate", e, t), Wt = (e, t) => o("NativeQuery", e, $(t, [e])), Ht = (e, t) => o("Mutate", e, $(t, [e])), Jt = (e, t) => o("Action", e, $(t, [e])), zt = (e, t) => o("ResolveTarget", e, t), Bt = (e, t) => o("ResolveReference", e, t), Ut = (e, t, n) => o("GetSchemaDocument", e, t, n), qt = () => o("GetAllConnectionStates"), xt = (e) => o("ListConnectionProfiles", e), Qt = (e, t) => o("SaveConnectionProfile", e, t), Vt = (e, t) => o("ImportConnectionProfile", e, t), It = (e, t) => o("ResetConnectionProfile", e, t), Dt = (e, t) => o("RemoveConnection", e, t), Kt = (e, t) => o("GetResourceGroups", e, t), Xt = (e, t, n) => o("GetResourceDefinition", e, t, n), Yt = (e, t) => o("GetEditorSchemas", e, t), Zt = (e, t, n) => o("GetRelationships", e, t, n), en = (e, t) => o("ResolveRelationships", e, t), tn = (e, t, n) => o("GetHealth", e, $({
296
+ request: t,
297
+ body: n
298
+ }, [e])), nn = (e, t, n) => o("GetResourceEvents", e, t, n), rn = (e, t, n) => o("GetActions", e, t, n), on = (e, t) => o("StreamAction", e, $(t, [e])), sn = (e) => o("AttachStreamAction", e), cn = (e) => o("CancelStreamAction", e), an = (e, t) => o("StartConnectionWatch", e, t), un = (e, t) => o("StopConnectionWatch", e, t), ln = (e, t) => o("GetWatchState", e, t), fn = (e, t) => o("EnsureResourceWatch", e, t), pn = (e, t, n) => o("StopResourceWatch", e, t, n), hn = (e, t) => o("RestartResourceWatch", e, t), $n = (e, t, n) => o("IsResourceWatchRunning", e, t, n), dn = (e, t) => o("SubscribeResource", e, t), gn = (e, t) => o("UnsubscribeResource", e, t), yn = (e, t, n) => o("ScopeValues", e, t, n), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
299
+ __proto__: null,
300
+ Action: Jt,
301
+ AttachStreamAction: sn,
302
+ CancelStreamAction: cn,
303
+ Catalog: Et,
304
+ CheckConnection: bt,
305
+ EnsureResourceWatch: fn,
306
+ Enumerate: Nt,
307
+ Features: jt,
308
+ Get: Mt,
309
+ GetActions: rn,
310
+ GetAllConnectionStates: qt,
311
+ GetConnection: Tt,
312
+ GetConnectionMetadata: Lt,
313
+ GetEditorSchemas: Yt,
314
+ GetHealth: tn,
315
+ GetRelationships: Zt,
316
+ GetResourceDefinition: Xt,
317
+ GetResourceEvents: nn,
318
+ GetResourceGroups: Kt,
319
+ GetSchemaDocument: Ut,
320
+ GetWatchState: ln,
321
+ HasPlugin: Pt,
322
+ ImportConnectionProfile: Vt,
323
+ IsResourceWatchRunning: $n,
324
+ ListAllConnections: Rt,
325
+ ListConnectionProfiles: xt,
326
+ ListConnections: wt,
327
+ ListPlugins: Ct,
328
+ LoadConnections: Gt,
329
+ Mutate: Ht,
330
+ NativeQuery: Wt,
331
+ RefreshConnectionMetadata: kt,
332
+ RemoveConnection: Dt,
333
+ ResetConnectionProfile: It,
334
+ ResolveReference: Bt,
335
+ ResolveRelationships: en,
336
+ ResolveTarget: zt,
337
+ RestartResourceWatch: hn,
338
+ SaveConnectionProfile: Qt,
339
+ ScopeValues: yn,
340
+ StartConnection: vt,
341
+ StartConnectionWatch: an,
342
+ StopConnection: Ft,
343
+ StopConnectionWatch: un,
344
+ StopResourceWatch: pn,
345
+ StreamAction: on,
346
+ SubscribeResource: dn,
347
+ UnsubscribeResource: gn
348
+ }, Symbol.toStringTag, { value: "Module" })), w = "github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";
349
+ function mn(e, t, n, s, u) {
350
+ return h(`${w}.GetRelated`, e, t, n, s, u);
351
+ }
352
+ function Sn(e, t, n, s, u) {
353
+ return h(`${w}.GetRelationshipChain`, e, t, n, s, u);
354
+ }
355
+ function bn(e, t, n, s) {
356
+ return h(`${w}.GetDependencyTree`, e, t, n, s);
357
+ }
358
+ function Tn(e, t, n, s, u) {
359
+ return h(`${w}.GetSubgraph`, e, t, n, s, u);
360
+ }
361
+ const Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
362
+ __proto__: null,
363
+ GetDependencyTree: bn,
364
+ GetRelated: mn,
365
+ GetRelationshipChain: Sn,
366
+ GetSubgraph: Tn
367
+ }, Symbol.toStringTag, { value: "Module" }));
368
+ class j {
369
+ snapshot;
370
+ applied;
371
+ uncertain;
372
+ message;
373
+ /** Creates a new CommitResult instance. */
374
+ constructor(t = {}) {
375
+ "snapshot" in t || (this.snapshot = new T()), "applied" in t || (this.applied = !1), "uncertain" in t || (this.uncertain = !1), "message" in t || (this.message = ""), Object.assign(this, t);
376
+ }
377
+ /**
378
+ * Creates a new CommitResult instance from a string or object.
379
+ */
380
+ static createFrom(t = {}) {
381
+ const n = Pn;
382
+ let s = typeof t == "string" ? JSON.parse(t) : t;
383
+ return "snapshot" in s && (s.snapshot = n(s.snapshot)), new j(s);
384
+ }
385
+ }
386
+ class C {
387
+ kind;
388
+ pluginId;
389
+ /** Creates a new Scope instance. */
390
+ constructor(t = {}) {
391
+ "kind" in t || (this.kind = ""), Object.assign(this, t);
392
+ }
393
+ /**
394
+ * Creates a new Scope instance from a string or object.
395
+ */
396
+ static createFrom(t = {}) {
397
+ let n = typeof t == "string" ? JSON.parse(t) : t;
398
+ return new C(n);
399
+ }
400
+ }
401
+ class T {
402
+ scope;
403
+ categories;
404
+ /** Creates a new Snapshot instance. */
405
+ constructor(t = {}) {
406
+ "scope" in t || (this.scope = new C()), "categories" in t || (this.categories = {}), Object.assign(this, t);
407
+ }
408
+ /**
409
+ * Creates a new Snapshot instance from a string or object.
410
+ */
411
+ static createFrom(t = {}) {
412
+ const n = Rn, s = P;
413
+ let u = typeof t == "string" ? JSON.parse(t) : t;
414
+ return "scope" in u && (u.scope = n(u.scope)), "categories" in u && (u.categories = s(u.categories)), new T(u);
415
+ }
416
+ }
417
+ const Pn = T.createFrom, Rn = C.createFrom;
418
+ var P = function e(...t) {
419
+ return P === e && (P = Cn), P(...t);
420
+ };
421
+ const wn = ue.createFrom, Cn = S(p, wn);
422
+ function Gn(e, t) {
423
+ return r(1766083910, e, t).then((n) => _n(n));
424
+ }
425
+ function vn(e) {
426
+ return r(3969198041, e).then((t) => On(t));
427
+ }
428
+ function Fn(e, t, n) {
429
+ return r(3964153809, e, t, n).then((s) => An(s));
430
+ }
431
+ const _n = j.createFrom, On = T.createFrom, An = le.createFrom, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
432
+ __proto__: null,
433
+ Commit: Gn,
434
+ GetSnapshot: vn,
435
+ Validate: Fn
436
+ }, Symbol.toStringTag, { value: "Module" }));
437
+ function jn(e) {
438
+ return r(2106300110, e).then((t) => En(t));
439
+ }
440
+ function Ln(e) {
441
+ return r(765209827, e).then((t) => Mn(t));
442
+ }
443
+ function kn(e) {
444
+ return r(2355436169, e).then((t) => D(t));
445
+ }
446
+ const I = fe.createFrom, D = a(I), En = S(p, D), Mn = y(I), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
447
+ __proto__: null,
448
+ GetPluginComponents: jn,
449
+ GetResourceAreaComponent: Ln,
450
+ GetResourceComponents: kn
451
+ }, Symbol.toStringTag, { value: "Module" }));
452
+ function Nn(e) {
453
+ return r(2776241946, e);
454
+ }
455
+ function Wn(e) {
456
+ return r(1474987050, e).then((t) => L(t));
457
+ }
458
+ function Hn(e) {
459
+ return r(3156347865, e).then((t) => Vn(t));
460
+ }
461
+ function Jn(e) {
462
+ return r(1444002509, e);
463
+ }
464
+ function zn() {
465
+ return r(3104582886).then((e) => In(e));
466
+ }
467
+ function Bn() {
468
+ return r(2249742267).then((e) => Dn(e));
469
+ }
470
+ function Un(e, t) {
471
+ return r(1212190993, e, t);
472
+ }
473
+ function qn(e, t) {
474
+ return r(2177127885, e, t).then((n) => L(n));
475
+ }
476
+ const xn = pe.createFrom, L = y(xn), Qn = he.createFrom, Vn = a(Qn), In = a(p), Dn = a(L);
477
+ function Kn(e, t, n) {
478
+ return h("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession", e, t, $(n, [e, t]));
479
+ }
480
+ const wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
+ __proto__: null,
482
+ CloseSession: Nn,
483
+ CreateSession: Kn,
484
+ GetSession: Wn,
485
+ GetSupportedResources: Hn,
486
+ HasPlugin: Jn,
487
+ ListPlugins: zn,
488
+ ListSessions: Bn,
489
+ SendCommand: Un,
490
+ UpdateSessionOptions: qn
491
+ }, Symbol.toStringTag, { value: "Module" }));
492
+ class k {
493
+ plugin_id;
494
+ provider_id;
495
+ name;
496
+ icon;
497
+ description;
498
+ handlers;
499
+ /** Creates a new MetricProviderSummary instance. */
500
+ constructor(t = {}) {
501
+ "plugin_id" in t || (this.plugin_id = ""), "provider_id" in t || (this.provider_id = ""), "name" in t || (this.name = ""), "icon" in t || (this.icon = ""), "description" in t || (this.description = ""), "handlers" in t || (this.handlers = []), Object.assign(this, t);
502
+ }
503
+ /**
504
+ * Creates a new MetricProviderSummary instance from a string or object.
505
+ */
506
+ static createFrom(t = {}) {
507
+ const n = Yn;
508
+ let s = typeof t == "string" ? JSON.parse(t) : t;
509
+ return "handlers" in s && (s.handlers = n(s.handlers)), new k(s);
510
+ }
511
+ }
512
+ const Xn = $e.createFrom, Yn = a(Xn);
513
+ function Zn() {
514
+ return r(3919346639).then((e) => K(e));
515
+ }
516
+ function er(e) {
517
+ return r(3953821778, e).then((t) => K(t));
518
+ }
519
+ function tr(e) {
520
+ return r(1815388456, e);
521
+ }
522
+ function nr() {
523
+ return r(2730149903).then((e) => sr(e));
524
+ }
525
+ function rr(e) {
526
+ return r(3994236150, e);
527
+ }
528
+ const or = k.createFrom, K = a(or), sr = a(p);
529
+ de.createFrom;
530
+ const E = "github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";
531
+ function ir(e, t, n) {
532
+ return h(`${E}.Query`, e, t, $(n, [e, t]));
533
+ }
534
+ function cr(e, t) {
535
+ return h(`${E}.QueryAll`, e, $(t, [e]));
536
+ }
537
+ function ar(e, t, n) {
538
+ return h(`${E}.Subscribe`, e, t, $(n, [e, t]));
539
+ }
540
+ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
541
+ __proto__: null,
542
+ GetProviders: Zn,
543
+ GetProvidersForResource: er,
544
+ HasPlugin: tr,
545
+ ListPlugins: nr,
546
+ Query: ir,
547
+ QueryAll: cr,
548
+ Subscribe: ar,
549
+ Unsubscribe: rr
550
+ }, Symbol.toStringTag, { value: "Module" }));
551
+ function ur(e, t) {
552
+ return r(3653639550, e, t);
553
+ }
554
+ function lr(e, t) {
555
+ return r(851823419, e, t);
556
+ }
557
+ function fr(e) {
558
+ return r(2991415449, e).then((t) => hr(t));
559
+ }
560
+ function pr(e, t, n) {
561
+ return r(2695679023, e, t, n);
562
+ }
563
+ const hr = a(p), Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
564
+ __proto__: null,
565
+ Delete: ur,
566
+ Get: lr,
567
+ Keys: fr,
568
+ Set: pr
569
+ }, Symbol.toStringTag, { value: "Module" }));
570
+ export {
571
+ Nt as $,
572
+ kt as A,
573
+ lr as B,
574
+ Gn as C,
575
+ pr as D,
576
+ ke as E,
577
+ Kn as F,
578
+ vn as G,
579
+ Nn as H,
580
+ Vt as I,
581
+ Zn as J,
582
+ er as K,
583
+ wt as L,
584
+ ar as M,
585
+ Je as N,
586
+ Ee as O,
587
+ Me as P,
588
+ cr as Q,
589
+ It as R,
590
+ Ft as S,
591
+ qe as T,
592
+ rr as U,
593
+ Fn as V,
594
+ Ht as W,
595
+ Mt as X,
596
+ Ln as Y,
597
+ Kt as Z,
598
+ Wt as _,
599
+ Sr as a,
600
+ ln as a0,
601
+ dn as a1,
602
+ fn as a2,
603
+ gn as a3,
604
+ rn as a4,
605
+ Jt as a5,
606
+ Yt as a6,
607
+ Ut as a7,
608
+ cn as a8,
609
+ on as a9,
610
+ sn as aa,
611
+ mn as ab,
612
+ bn as ac,
613
+ Tn as ad,
614
+ Pr as b,
615
+ br as c,
616
+ Rr as d,
617
+ yr as e,
618
+ Ve as f,
619
+ Tr as g,
620
+ bt as h,
621
+ vt as i,
622
+ Qt as j,
623
+ Dt as k,
624
+ wr as l,
625
+ Cr as m,
626
+ mr as n,
627
+ Tt as o,
628
+ an as p,
629
+ un as q,
630
+ yn as r,
631
+ Gr as s,
632
+ qt as t,
633
+ Et as u,
634
+ zt as v,
635
+ at as w,
636
+ Rt as x,
637
+ xt as y,
638
+ Lt as z
639
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Omniview",
3
3
  "license": "AGPL-3.0-only",
4
4
  "name": "@omniviewdev/runtime",
5
- "version": "0.13.0",
5
+ "version": "0.14.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1,19 +0,0 @@
1
- import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
- import * as settings$0 from "../../../../../plugin-sdk/settings/models.js";
3
- export declare function GetSetting(plugin: string, id: string): $CancellablePromise<settings$0.Setting>;
4
- export declare function HasPlugin(pluginID: string): $CancellablePromise<boolean>;
5
- export declare function ListPlugins(): $CancellablePromise<string[]>;
6
- export declare function ListSettings(plugin: string): $CancellablePromise<{
7
- [_ in string]?: settings$0.Setting;
8
- }>;
9
- export declare function PluginValues(plugin: string): $CancellablePromise<{
10
- [_ in string]?: any;
11
- }>;
12
- export declare function SetSetting(plugin: string, id: string, value: any): $CancellablePromise<void>;
13
- export declare function SetSettings(plugin: string, settingsMap: {
14
- [_ in string]?: any;
15
- }): $CancellablePromise<void>;
16
- export declare function ValidateSetting(plugin: string, id: string, value: any): $CancellablePromise<settings$0.ValidationResult>;
17
- export declare function Values(): $CancellablePromise<{
18
- [_ in string]?: any;
19
- }>;
@@ -1,2 +0,0 @@
1
- import * as ServiceWrapper from "./servicewrapper.js";
2
- export { ServiceWrapper };