@omniviewdev/runtime 0.0.0-nightly.20260311 → 0.0.0-nightly.20260313

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.
@@ -1,10 +1,10 @@
1
1
  function c(n, e) {
2
2
  return window.go.settings.Client.GetSetting(n, e);
3
3
  }
4
- function w() {
4
+ function a() {
5
5
  return window.go.settings.Client.ListPlugins();
6
6
  }
7
- function a(n) {
7
+ function w(n) {
8
8
  return window.go.settings.Client.ListSettings(n);
9
9
  }
10
10
  function d(n) {
@@ -19,11 +19,11 @@ function C(n, e) {
19
19
  function f() {
20
20
  return window.go.settings.Client.Values();
21
21
  }
22
- const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
+ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23
23
  __proto__: null,
24
24
  GetSetting: c,
25
- ListPlugins: w,
26
- ListSettings: a,
25
+ ListPlugins: a,
26
+ ListSettings: w,
27
27
  PluginValues: d,
28
28
  SetSetting: S,
29
29
  SetSettings: C,
@@ -50,13 +50,13 @@ function b(n, e) {
50
50
  function M(n) {
51
51
  return window.go.plugin.pluginManager.GetPluginVersions(n);
52
52
  }
53
- function m(n) {
53
+ function h(n) {
54
54
  return window.go.plugin.pluginManager.HandlePluginCrash(n);
55
55
  }
56
- function L(n) {
56
+ function m(n) {
57
57
  return window.go.plugin.pluginManager.Initialize(n);
58
58
  }
59
- function h() {
59
+ function L() {
60
60
  return window.go.plugin.pluginManager.InstallFromPathPrompt();
61
61
  }
62
62
  function _() {
@@ -83,16 +83,16 @@ function T(n, e) {
83
83
  function j(n) {
84
84
  return window.go.plugin.pluginManager.ReloadPlugin(n);
85
85
  }
86
- function $(n) {
86
+ function H(n) {
87
87
  return window.go.plugin.pluginManager.Run(n);
88
88
  }
89
- function x(n, e, t) {
89
+ function $(n, e, t) {
90
90
  return window.go.plugin.pluginManager.SearchPlugins(n, e, t);
91
91
  }
92
- function z(n) {
92
+ function x(n) {
93
93
  return window.go.plugin.pluginManager.SetDevServerChecker(n);
94
94
  }
95
- function H(n) {
95
+ function z(n) {
96
96
  return window.go.plugin.pluginManager.SetDevServerManager(n);
97
97
  }
98
98
  function W(n) {
@@ -107,7 +107,7 @@ function D(n) {
107
107
  function U(n) {
108
108
  return window.go.plugin.pluginManager.UnloadPlugin(n);
109
109
  }
110
- const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110
+ const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
111
111
  __proto__: null,
112
112
  GetPlugin: p,
113
113
  GetPluginDownloadStats: G,
@@ -116,9 +116,9 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
116
  GetPluginReleaseHistory: v,
117
117
  GetPluginReviews: b,
118
118
  GetPluginVersions: M,
119
- HandlePluginCrash: m,
120
- Initialize: L,
121
- InstallFromPathPrompt: h,
119
+ HandlePluginCrash: h,
120
+ Initialize: m,
121
+ InstallFromPathPrompt: L,
122
122
  InstallInDevMode: _,
123
123
  InstallPluginFromPath: y,
124
124
  InstallPluginVersion: F,
@@ -127,10 +127,10 @@ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
127
  ListPlugins: O,
128
128
  LoadPlugin: T,
129
129
  ReloadPlugin: j,
130
- Run: $,
131
- SearchPlugins: x,
132
- SetDevServerChecker: z,
133
- SetDevServerManager: H,
130
+ Run: H,
131
+ SearchPlugins: $,
132
+ SetDevServerChecker: x,
133
+ SetDevServerManager: z,
134
134
  SetPluginLogManager: W,
135
135
  Shutdown: V,
136
136
  UninstallPlugin: D,
@@ -185,27 +185,30 @@ function rn() {
185
185
  return window.go.settings.provider.LoadSettings();
186
186
  }
187
187
  function un(n, e) {
188
- return window.go.settings.provider.RegisterSetting(n, e);
188
+ return window.go.settings.provider.RegisterChangeHandler(n, e);
189
189
  }
190
190
  function sn(n, e) {
191
+ return window.go.settings.provider.RegisterSetting(n, e);
192
+ }
193
+ function gn(n, e) {
191
194
  return window.go.settings.provider.RegisterSettings(n, e);
192
195
  }
193
- function gn(n) {
196
+ function ln(n) {
194
197
  return window.go.settings.provider.ResetSetting(n);
195
198
  }
196
- function ln() {
199
+ function cn() {
197
200
  return window.go.settings.provider.SaveSettings();
198
201
  }
199
- function cn(n, e) {
202
+ function an(n, e) {
200
203
  return window.go.settings.provider.SetSetting(n, e);
201
204
  }
202
205
  function wn(n) {
203
206
  return window.go.settings.provider.SetSettings(n);
204
207
  }
205
- function an() {
208
+ function dn() {
206
209
  return window.go.settings.provider.Values();
207
210
  }
208
- const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
211
+ const Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
212
  __proto__: null,
210
213
  GetBool: k,
211
214
  GetCategories: E,
@@ -223,45 +226,46 @@ const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
226
  Initialize: tn,
224
227
  ListSettings: on,
225
228
  LoadSettings: rn,
226
- RegisterSetting: un,
227
- RegisterSettings: sn,
228
- ResetSetting: gn,
229
- SaveSettings: ln,
230
- SetSetting: cn,
229
+ RegisterChangeHandler: un,
230
+ RegisterSetting: sn,
231
+ RegisterSettings: gn,
232
+ ResetSetting: ln,
233
+ SaveSettings: cn,
234
+ SetSetting: an,
231
235
  SetSettings: wn,
232
- Values: an
236
+ Values: dn
233
237
  }, Symbol.toStringTag, { value: "Module" }));
234
- function dn(n, e) {
238
+ function Sn(n, e) {
235
239
  return window.go.resource.Client.AddConnection(n, e);
236
240
  }
237
- function Sn(n, e) {
241
+ function Cn(n, e) {
238
242
  return window.go.resource.Client.CheckConnection(n, e);
239
243
  }
240
- function Cn(n, e, t, o) {
244
+ function fn(n, e, t, o) {
241
245
  return window.go.resource.Client.Create(n, e, t, o);
242
246
  }
243
- function fn(n, e, t, o) {
247
+ function pn(n, e, t, o) {
244
248
  return window.go.resource.Client.Delete(n, e, t, o);
245
249
  }
246
- function pn(n, e, t) {
250
+ function Gn(n, e, t) {
247
251
  return window.go.resource.Client.EnsureResourceWatch(n, e, t);
248
252
  }
249
- function Gn(n, e, t, o, i) {
253
+ function Pn(n, e, t, o, i) {
250
254
  return window.go.resource.Client.ExecuteAction(n, e, t, o, i);
251
255
  }
252
- function Pn(n, e, t, o) {
256
+ function Rn(n, e, t, o) {
253
257
  return window.go.resource.Client.Find(n, e, t, o);
254
258
  }
255
- function Rn(n, e, t, o) {
259
+ function vn(n, e, t, o) {
256
260
  return window.go.resource.Client.Get(n, e, t, o);
257
261
  }
258
- function vn(n, e, t) {
262
+ function bn(n, e, t) {
259
263
  return window.go.resource.Client.GetActions(n, e, t);
260
264
  }
261
- function bn() {
265
+ function Mn() {
262
266
  return window.go.resource.Client.GetAllConnectionStates();
263
267
  }
264
- function Mn(n, e) {
268
+ function hn(n, e) {
265
269
  return window.go.resource.Client.GetConnection(n, e);
266
270
  }
267
271
  function mn(n, e) {
@@ -270,31 +274,31 @@ function mn(n, e) {
270
274
  function Ln(n, e) {
271
275
  return window.go.resource.Client.GetEditorSchemas(n, e);
272
276
  }
273
- function hn(n, e, t) {
277
+ function _n(n, e, t) {
274
278
  return window.go.resource.Client.GetFilterFields(n, e, t);
275
279
  }
276
- function _n(n, e, t, o) {
280
+ function yn(n, e, t, o) {
277
281
  return window.go.resource.Client.GetHealth(n, e, t, o);
278
282
  }
279
- function yn(n, e) {
283
+ function Fn(n, e) {
280
284
  return window.go.resource.Client.GetRelationships(n, e);
281
285
  }
282
- function Fn(n, e) {
286
+ function An(n, e) {
283
287
  return window.go.resource.Client.GetResourceCapabilities(n, e);
284
288
  }
285
- function An(n, e) {
289
+ function In(n, e) {
286
290
  return window.go.resource.Client.GetResourceDefinition(n, e);
287
291
  }
288
- function In(n, e, t, o, i, r) {
292
+ function On(n, e, t, o, i, r) {
289
293
  return window.go.resource.Client.GetResourceEvents(n, e, t, o, i, r);
290
294
  }
291
- function On(n, e) {
295
+ function Tn(n, e) {
292
296
  return window.go.resource.Client.GetResourceGroup(n, e);
293
297
  }
294
- function Tn(n, e) {
298
+ function jn(n, e) {
295
299
  return window.go.resource.Client.GetResourceGroups(n, e);
296
300
  }
297
- function jn(n, e, t) {
301
+ function Hn(n, e, t) {
298
302
  return window.go.resource.Client.GetResourceSchema(n, e, t);
299
303
  }
300
304
  function $n(n, e) {
@@ -306,241 +310,241 @@ function xn(n, e) {
306
310
  function zn(n, e) {
307
311
  return window.go.resource.Client.GetWatchState(n, e);
308
312
  }
309
- function Hn(n, e) {
313
+ function Wn(n, e) {
310
314
  return window.go.resource.Client.HasResourceType(n, e);
311
315
  }
312
- function Wn(n, e, t) {
316
+ function Vn(n, e, t) {
313
317
  return window.go.resource.Client.IsResourceWatchRunning(n, e, t);
314
318
  }
315
- function Vn(n, e, t, o) {
319
+ function Dn(n, e, t, o) {
316
320
  return window.go.resource.Client.List(n, e, t, o);
317
321
  }
318
- function Dn() {
322
+ function Un() {
319
323
  return window.go.resource.Client.ListAllConnections();
320
324
  }
321
- function Un(n) {
325
+ function kn(n) {
322
326
  return window.go.resource.Client.ListConnections(n);
323
327
  }
324
- function kn() {
328
+ function En() {
325
329
  return window.go.resource.Client.ListPlugins();
326
330
  }
327
- function En(n) {
331
+ function Qn(n) {
328
332
  return window.go.resource.Client.LoadConnections(n);
329
333
  }
330
- function Qn(n, e) {
334
+ function Bn(n, e) {
331
335
  return window.go.resource.Client.RemoveConnection(n, e);
332
336
  }
333
- function Bn(n, e, t, o, i) {
337
+ function Nn(n, e, t, o, i) {
334
338
  return window.go.resource.Client.ResolveRelationships(n, e, t, o, i);
335
339
  }
336
- function Nn(n, e, t) {
340
+ function qn(n, e, t) {
337
341
  return window.go.resource.Client.RestartResourceWatch(n, e, t);
338
342
  }
339
- function qn(n, e) {
343
+ function Jn(n, e) {
340
344
  return window.go.resource.Client.StartConnection(n, e);
341
345
  }
342
- function Jn(n, e) {
346
+ function Kn(n, e) {
343
347
  return window.go.resource.Client.StartConnectionWatch(n, e);
344
348
  }
345
- function Kn(n, e) {
349
+ function Xn(n, e) {
346
350
  return window.go.resource.Client.StopConnection(n, e);
347
351
  }
348
- function Xn(n, e) {
352
+ function Yn(n, e) {
349
353
  return window.go.resource.Client.StopConnectionWatch(n, e);
350
354
  }
351
- function Yn(n, e, t) {
355
+ function Zn(n, e, t) {
352
356
  return window.go.resource.Client.StopResourceWatch(n, e, t);
353
357
  }
354
- function Zn(n, e, t, o, i) {
358
+ function ne(n, e, t, o, i) {
355
359
  return window.go.resource.Client.StreamAction(n, e, t, o, i);
356
360
  }
357
- function ne(n, e, t) {
361
+ function ee(n, e, t) {
358
362
  return window.go.resource.Client.SubscribeResource(n, e, t);
359
363
  }
360
- function ee(n, e, t) {
364
+ function te(n, e, t) {
361
365
  return window.go.resource.Client.UnsubscribeResource(n, e, t);
362
366
  }
363
- function te(n, e, t, o) {
367
+ function oe(n, e, t, o) {
364
368
  return window.go.resource.Client.Update(n, e, t, o);
365
369
  }
366
- function oe(n, e) {
370
+ function ie(n, e) {
367
371
  return window.go.resource.Client.UpdateConnection(n, e);
368
372
  }
369
- const Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
373
+ const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
370
374
  __proto__: null,
371
- AddConnection: dn,
372
- CheckConnection: Sn,
373
- Create: Cn,
374
- Delete: fn,
375
- EnsureResourceWatch: pn,
376
- ExecuteAction: Gn,
377
- Find: Pn,
378
- Get: Rn,
379
- GetActions: vn,
380
- GetAllConnectionStates: bn,
381
- GetConnection: Mn,
375
+ AddConnection: Sn,
376
+ CheckConnection: Cn,
377
+ Create: fn,
378
+ Delete: pn,
379
+ EnsureResourceWatch: Gn,
380
+ ExecuteAction: Pn,
381
+ Find: Rn,
382
+ Get: vn,
383
+ GetActions: bn,
384
+ GetAllConnectionStates: Mn,
385
+ GetConnection: hn,
382
386
  GetConnectionNamespaces: mn,
383
387
  GetEditorSchemas: Ln,
384
- GetFilterFields: hn,
385
- GetHealth: _n,
386
- GetRelationships: yn,
387
- GetResourceCapabilities: Fn,
388
- GetResourceDefinition: An,
389
- GetResourceEvents: In,
390
- GetResourceGroup: On,
391
- GetResourceGroups: Tn,
392
- GetResourceSchema: jn,
388
+ GetFilterFields: _n,
389
+ GetHealth: yn,
390
+ GetRelationships: Fn,
391
+ GetResourceCapabilities: An,
392
+ GetResourceDefinition: In,
393
+ GetResourceEvents: On,
394
+ GetResourceGroup: Tn,
395
+ GetResourceGroups: jn,
396
+ GetResourceSchema: Hn,
393
397
  GetResourceType: $n,
394
398
  GetResourceTypes: xn,
395
399
  GetWatchState: zn,
396
- HasResourceType: Hn,
397
- IsResourceWatchRunning: Wn,
398
- List: Vn,
399
- ListAllConnections: Dn,
400
- ListConnections: Un,
401
- ListPlugins: kn,
402
- LoadConnections: En,
403
- RemoveConnection: Qn,
404
- ResolveRelationships: Bn,
405
- RestartResourceWatch: Nn,
406
- StartConnection: qn,
407
- StartConnectionWatch: Jn,
408
- StopConnection: Kn,
409
- StopConnectionWatch: Xn,
410
- StopResourceWatch: Yn,
411
- StreamAction: Zn,
412
- SubscribeResource: ne,
413
- UnsubscribeResource: ee,
414
- Update: te,
415
- UpdateConnection: oe
400
+ HasResourceType: Wn,
401
+ IsResourceWatchRunning: Vn,
402
+ List: Dn,
403
+ ListAllConnections: Un,
404
+ ListConnections: kn,
405
+ ListPlugins: En,
406
+ LoadConnections: Qn,
407
+ RemoveConnection: Bn,
408
+ ResolveRelationships: Nn,
409
+ RestartResourceWatch: qn,
410
+ StartConnection: Jn,
411
+ StartConnectionWatch: Kn,
412
+ StopConnection: Xn,
413
+ StopConnectionWatch: Yn,
414
+ StopResourceWatch: Zn,
415
+ StreamAction: ne,
416
+ SubscribeResource: ee,
417
+ UnsubscribeResource: te,
418
+ Update: oe,
419
+ UpdateConnection: ie
416
420
  }, Symbol.toStringTag, { value: "Module" }));
417
- function ie(n) {
421
+ function re(n) {
418
422
  return window.go.exec.Client.AttachSession(n);
419
423
  }
420
- function re(n) {
424
+ function ue(n) {
421
425
  return window.go.exec.Client.CloseSession(n);
422
426
  }
423
- function ue(n, e, t) {
427
+ function se(n, e, t) {
424
428
  return window.go.exec.Client.CreateSession(n, e, t);
425
429
  }
426
- function se(n) {
430
+ function ge(n) {
427
431
  return window.go.exec.Client.CreateTerminal(n);
428
432
  }
429
- function ge(n) {
433
+ function le(n) {
430
434
  return window.go.exec.Client.DetachSession(n);
431
435
  }
432
- function le(n, e) {
436
+ function ce(n, e) {
433
437
  return window.go.exec.Client.GetHandler(n, e);
434
438
  }
435
- function ce() {
439
+ function ae() {
436
440
  return window.go.exec.Client.GetHandlers();
437
441
  }
438
442
  function we(n) {
439
443
  return window.go.exec.Client.GetPluginHandlers(n);
440
444
  }
441
- function ae(n) {
445
+ function de(n) {
442
446
  return window.go.exec.Client.GetSession(n);
443
447
  }
444
- function de() {
448
+ function Se() {
445
449
  return window.go.exec.Client.ListPlugins();
446
450
  }
447
- function Se() {
451
+ function Ce() {
448
452
  return window.go.exec.Client.ListSessions();
449
453
  }
450
- function Ce(n, e, t) {
454
+ function fe(n, e, t) {
451
455
  return window.go.exec.Client.ResizeSession(n, e, t);
452
456
  }
453
- function fe(n, e) {
457
+ function pe(n, e) {
454
458
  return window.go.exec.Client.WriteSession(n, e);
455
459
  }
456
- const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
460
+ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
457
461
  __proto__: null,
458
- AttachSession: ie,
459
- CloseSession: re,
460
- CreateSession: ue,
461
- CreateTerminal: se,
462
- DetachSession: ge,
463
- GetHandler: le,
464
- GetHandlers: ce,
462
+ AttachSession: re,
463
+ CloseSession: ue,
464
+ CreateSession: se,
465
+ CreateTerminal: ge,
466
+ DetachSession: le,
467
+ GetHandler: ce,
468
+ GetHandlers: ae,
465
469
  GetPluginHandlers: we,
466
- GetSession: ae,
467
- ListPlugins: de,
468
- ListSessions: Se,
469
- ResizeSession: Ce,
470
- WriteSession: fe
470
+ GetSession: de,
471
+ ListPlugins: Se,
472
+ ListSessions: Ce,
473
+ ResizeSession: fe,
474
+ WriteSession: pe
471
475
  }, Symbol.toStringTag, { value: "Module" }));
472
- function pe(n) {
476
+ function Ge(n) {
473
477
  return window.go.logs.Client.CloseSession(n);
474
478
  }
475
- function Ge(n, e, t) {
479
+ function Pe(n, e, t) {
476
480
  return window.go.logs.Client.CreateSession(n, e, t);
477
481
  }
478
- function Pe(n) {
482
+ function Re(n) {
479
483
  return window.go.logs.Client.GetSession(n);
480
484
  }
481
- function Re(n) {
485
+ function ve(n) {
482
486
  return window.go.logs.Client.GetSupportedResources(n);
483
487
  }
484
- function ve() {
488
+ function be() {
485
489
  return window.go.logs.Client.ListSessions();
486
490
  }
487
- function be(n) {
491
+ function Me(n) {
488
492
  return window.go.logs.Client.PauseSession(n);
489
493
  }
490
- function Me(n) {
494
+ function he(n) {
491
495
  return window.go.logs.Client.ResumeSession(n);
492
496
  }
493
497
  function me(n, e) {
494
498
  return window.go.logs.Client.UpdateSessionOptions(n, e);
495
499
  }
496
- const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
+ const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
497
501
  __proto__: null,
498
- CloseSession: pe,
499
- CreateSession: Ge,
500
- GetSession: Pe,
501
- GetSupportedResources: Re,
502
- ListSessions: ve,
503
- PauseSession: be,
504
- ResumeSession: Me,
502
+ CloseSession: Ge,
503
+ CreateSession: Pe,
504
+ GetSession: Re,
505
+ GetSupportedResources: ve,
506
+ ListSessions: be,
507
+ PauseSession: Me,
508
+ ResumeSession: he,
505
509
  UpdateSessionOptions: me
506
510
  }, Symbol.toStringTag, { value: "Module" }));
507
511
  function Le() {
508
512
  return window.go.metric.Client.GetProviders();
509
513
  }
510
- function he(n) {
514
+ function _e(n) {
511
515
  return window.go.metric.Client.GetProvidersForResource(n);
512
516
  }
513
- function _e(n, e, t) {
517
+ function ye(n, e, t) {
514
518
  return window.go.metric.Client.Query(n, e, t);
515
519
  }
516
- function ye(n, e, t, o, i, r, u, s, g, l) {
520
+ function Fe(n, e, t, o, i, r, u, s, g, l) {
517
521
  return window.go.metric.Client.QueryAll(n, e, t, o, i, r, u, s, g, l);
518
522
  }
519
- function Fe(n, e, t) {
523
+ function Ae(n, e, t) {
520
524
  return window.go.metric.Client.Subscribe(n, e, t);
521
525
  }
522
- function Ae(n) {
526
+ function Ie(n) {
523
527
  return window.go.metric.Client.Unsubscribe(n);
524
528
  }
525
- const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
529
+ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
526
530
  __proto__: null,
527
531
  GetProviders: Le,
528
- GetProvidersForResource: he,
529
- Query: _e,
530
- QueryAll: ye,
531
- Subscribe: Fe,
532
- Unsubscribe: Ae
532
+ GetProvidersForResource: _e,
533
+ Query: ye,
534
+ QueryAll: Fe,
535
+ Subscribe: Ae,
536
+ Unsubscribe: Ie
533
537
  }, Symbol.toStringTag, { value: "Module" }));
534
- function Ie(n) {
538
+ function Oe(n) {
535
539
  return window.go.networker.Client.ClosePortForwardSession(n);
536
540
  }
537
- function Oe(n, e, t) {
541
+ function Te(n, e, t) {
538
542
  return window.go.networker.Client.FindPortForwardSessions(n, e, t);
539
543
  }
540
- function Te(n) {
544
+ function je(n) {
541
545
  return window.go.networker.Client.GetPortForwardSession(n);
542
546
  }
543
- function je(n) {
547
+ function He(n) {
544
548
  return window.go.networker.Client.GetSupportedPortForwardTargets(n);
545
549
  }
546
550
  function $e() {
@@ -552,81 +556,81 @@ function xe(n, e) {
552
556
  function ze(n, e, t) {
553
557
  return window.go.networker.Client.StartResourcePortForwardingSession(n, e, t);
554
558
  }
555
- const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
559
+ const Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
556
560
  __proto__: null,
557
- ClosePortForwardSession: Ie,
558
- FindPortForwardSessions: Oe,
559
- GetPortForwardSession: Te,
560
- GetSupportedPortForwardTargets: je,
561
+ ClosePortForwardSession: Oe,
562
+ FindPortForwardSessions: Te,
563
+ GetPortForwardSession: je,
564
+ GetSupportedPortForwardTargets: He,
561
565
  ListAllPortForwardSessions: $e,
562
566
  ListPortForwardSessions: xe,
563
567
  StartResourcePortForwardingSession: ze
564
568
  }, Symbol.toStringTag, { value: "Module" }));
565
- function He(n) {
569
+ function We(n) {
566
570
  return window.go.ui.Client.GetPluginComponents(n);
567
571
  }
568
- function We(n) {
572
+ function Ve(n) {
569
573
  return window.go.ui.Client.GetResourceAreaComponent(n);
570
574
  }
571
- function Ve(n) {
575
+ function De(n) {
572
576
  return window.go.ui.Client.GetResourceComponents(n);
573
577
  }
574
- const Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
578
+ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
575
579
  __proto__: null,
576
- GetPluginComponents: He,
577
- GetResourceAreaComponent: We,
578
- GetResourceComponents: Ve
580
+ GetPluginComponents: We,
581
+ GetResourceAreaComponent: Ve,
582
+ GetResourceComponents: De
579
583
  }, Symbol.toStringTag, { value: "Module" }));
580
584
  export {
581
- Rn as A,
582
- We as B,
583
- Qe as C,
584
- fn as D,
585
- Tn as E,
586
- Oe as F,
585
+ vn as A,
586
+ Ve as B,
587
+ Be as C,
588
+ pn as D,
589
+ jn as E,
590
+ Te as F,
587
591
  P as G,
588
- Vn as H,
592
+ Dn as H,
589
593
  $n as I,
590
594
  xn as J,
591
- Cn as K,
592
- Un as L,
593
- ne as M,
594
- ee as N,
595
- vn as O,
595
+ fn as K,
596
+ kn as L,
597
+ ee as M,
598
+ te as N,
599
+ bn as O,
596
600
  d as P,
597
- ye as Q,
598
- Qn as R,
599
- qn as S,
600
- Gn as T,
601
- oe as U,
602
- an as V,
601
+ Fe as Q,
602
+ Bn as R,
603
+ Jn as S,
604
+ Pn as T,
605
+ ie as U,
606
+ dn as V,
603
607
  Ln as W,
604
608
  zn as X,
605
- Zn as Y,
606
- qe as a,
607
- Ee as b,
608
- De as c,
609
- ke as d,
610
- Je as e,
611
- Be as f,
612
- Ne as g,
613
- Kn as h,
614
- Mn as i,
615
- Jn as j,
616
- Xn as k,
609
+ ne as Y,
610
+ Je as a,
611
+ Qe as b,
612
+ Ue as c,
613
+ Ee as d,
614
+ Ke as e,
615
+ Ne as f,
616
+ qe as g,
617
+ Xn as h,
618
+ hn as i,
619
+ Kn as j,
620
+ Yn as k,
617
621
  mn as l,
618
- bn as m,
619
- Dn as n,
620
- ue as o,
621
- Ue as p,
622
- Ge as q,
623
- pe as r,
622
+ Mn as m,
623
+ Un as n,
624
+ se as o,
625
+ ke as p,
626
+ Pe as q,
627
+ Ge as r,
624
628
  Le as s,
625
- he as t,
626
- Fe as u,
627
- Ae as v,
629
+ _e as t,
630
+ Ae as u,
631
+ Ie as v,
628
632
  $e as w,
629
- Ie as x,
633
+ Oe as x,
630
634
  ze as y,
631
- te as z
635
+ oe as z
632
636
  };
@@ -0,0 +1 @@
1
+ "use strict";function Y(e,n){return window.go.settings.Client.GetSetting(e,n)}function Z(){return window.go.settings.Client.ListPlugins()}function ee(e){return window.go.settings.Client.ListSettings(e)}function u(e){return window.go.settings.Client.PluginValues(e)}function ne(e,n,t){return window.go.settings.Client.SetSetting(e,n,t)}function te(e,n){return window.go.settings.Client.SetSettings(e,n)}function oe(){return window.go.settings.Client.Values()}const ie=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:Y,ListPlugins:Z,ListSettings:ee,PluginValues:u,SetSetting:ne,SetSettings:te,Values:oe},Symbol.toStringTag,{value:"Module"}));function re(e){return window.go.plugin.pluginManager.GetPlugin(e)}function ue(e){return window.go.plugin.pluginManager.GetPluginDownloadStats(e)}function s(e){return window.go.plugin.pluginManager.GetPluginMeta(e)}function se(e){return window.go.plugin.pluginManager.GetPluginReadme(e)}function ge(e){return window.go.plugin.pluginManager.GetPluginReleaseHistory(e)}function le(e,n){return window.go.plugin.pluginManager.GetPluginReviews(e,n)}function ce(e){return window.go.plugin.pluginManager.GetPluginVersions(e)}function we(e){return window.go.plugin.pluginManager.HandlePluginCrash(e)}function ae(e){return window.go.plugin.pluginManager.Initialize(e)}function de(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function Ce(){return window.go.plugin.pluginManager.InstallInDevMode()}function Se(e){return window.go.plugin.pluginManager.InstallPluginFromPath(e)}function fe(e,n){return window.go.plugin.pluginManager.InstallPluginVersion(e,n)}function pe(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function Ge(){return window.go.plugin.pluginManager.ListPluginMetas()}function Pe(){return window.go.plugin.pluginManager.ListPlugins()}function Re(e,n){return window.go.plugin.pluginManager.LoadPlugin(e,n)}function ve(e){return window.go.plugin.pluginManager.ReloadPlugin(e)}function be(e){return window.go.plugin.pluginManager.Run(e)}function he(e,n,t){return window.go.plugin.pluginManager.SearchPlugins(e,n,t)}function me(e){return window.go.plugin.pluginManager.SetDevServerChecker(e)}function Me(e){return window.go.plugin.pluginManager.SetDevServerManager(e)}function Le(e){return window.go.plugin.pluginManager.SetPluginLogManager(e)}function Fe(){return window.go.plugin.pluginManager.Shutdown()}function ye(e){return window.go.plugin.pluginManager.UninstallPlugin(e)}function _e(e){return window.go.plugin.pluginManager.UnloadPlugin(e)}const Ae=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:re,GetPluginDownloadStats:ue,GetPluginMeta:s,GetPluginReadme:se,GetPluginReleaseHistory:ge,GetPluginReviews:le,GetPluginVersions:ce,HandlePluginCrash:we,Initialize:ae,InstallFromPathPrompt:de,InstallInDevMode:Ce,InstallPluginFromPath:Se,InstallPluginVersion:fe,ListAvailablePlugins:pe,ListPluginMetas:Ge,ListPlugins:Pe,LoadPlugin:Re,ReloadPlugin:ve,Run:be,SearchPlugins:he,SetDevServerChecker:me,SetDevServerManager:Me,SetPluginLogManager:Le,Shutdown:Fe,UninstallPlugin:ye,UnloadPlugin:_e},Symbol.toStringTag,{value:"Module"}));function $e(e){return window.go.settings.provider.GetBool(e)}function Ie(){return window.go.settings.provider.GetCategories()}function Te(e){return window.go.settings.provider.GetCategory(e)}function Oe(e){return window.go.settings.provider.GetCategoryValues(e)}function We(e){return window.go.settings.provider.GetFloat(e)}function je(e){return window.go.settings.provider.GetFloatSlice(e)}function He(e){return window.go.settings.provider.GetInt(e)}function Ue(e){return window.go.settings.provider.GetIntSlice(e)}function Ve(e){return window.go.settings.provider.GetSetting(e)}function xe(e){return window.go.settings.provider.GetSettingValue(e)}function ze(e){return window.go.settings.provider.GetString(e)}function De(e){return window.go.settings.provider.GetStringSlice(e)}function ke(e){return window.go.settings.provider.HasSetting(e)}function Ee(e,n){return window.go.settings.provider.Initialize(e,n)}function Qe(){return window.go.settings.provider.ListSettings()}function Ne(){return window.go.settings.provider.LoadSettings()}function Be(e,n){return window.go.settings.provider.RegisterChangeHandler(e,n)}function qe(e,n){return window.go.settings.provider.RegisterSetting(e,n)}function Je(e,n){return window.go.settings.provider.RegisterSettings(e,n)}function Ke(e){return window.go.settings.provider.ResetSetting(e)}function Xe(){return window.go.settings.provider.SaveSettings()}function Ye(e,n){return window.go.settings.provider.SetSetting(e,n)}function Ze(e){return window.go.settings.provider.SetSettings(e)}function g(){return window.go.settings.provider.Values()}const en=Object.freeze(Object.defineProperty({__proto__:null,GetBool:$e,GetCategories:Ie,GetCategory:Te,GetCategoryValues:Oe,GetFloat:We,GetFloatSlice:je,GetInt:He,GetIntSlice:Ue,GetSetting:Ve,GetSettingValue:xe,GetString:ze,GetStringSlice:De,HasSetting:ke,Initialize:Ee,ListSettings:Qe,LoadSettings:Ne,RegisterChangeHandler:Be,RegisterSetting:qe,RegisterSettings:Je,ResetSetting:Ke,SaveSettings:Xe,SetSetting:Ye,SetSettings:Ze,Values:g},Symbol.toStringTag,{value:"Module"}));function nn(e,n){return window.go.resource.Client.AddConnection(e,n)}function tn(e,n){return window.go.resource.Client.CheckConnection(e,n)}function l(e,n,t,o){return window.go.resource.Client.Create(e,n,t,o)}function c(e,n,t,o){return window.go.resource.Client.Delete(e,n,t,o)}function on(e,n,t){return window.go.resource.Client.EnsureResourceWatch(e,n,t)}function w(e,n,t,o,i){return window.go.resource.Client.ExecuteAction(e,n,t,o,i)}function rn(e,n,t,o){return window.go.resource.Client.Find(e,n,t,o)}function a(e,n,t,o){return window.go.resource.Client.Get(e,n,t,o)}function d(e,n,t){return window.go.resource.Client.GetActions(e,n,t)}function C(){return window.go.resource.Client.GetAllConnectionStates()}function S(e,n){return window.go.resource.Client.GetConnection(e,n)}function f(e,n){return window.go.resource.Client.GetConnectionNamespaces(e,n)}function p(e,n){return window.go.resource.Client.GetEditorSchemas(e,n)}function un(e,n,t){return window.go.resource.Client.GetFilterFields(e,n,t)}function sn(e,n,t,o){return window.go.resource.Client.GetHealth(e,n,t,o)}function gn(e,n){return window.go.resource.Client.GetRelationships(e,n)}function ln(e,n){return window.go.resource.Client.GetResourceCapabilities(e,n)}function cn(e,n){return window.go.resource.Client.GetResourceDefinition(e,n)}function wn(e,n,t,o,i,r){return window.go.resource.Client.GetResourceEvents(e,n,t,o,i,r)}function an(e,n){return window.go.resource.Client.GetResourceGroup(e,n)}function G(e,n){return window.go.resource.Client.GetResourceGroups(e,n)}function dn(e,n,t){return window.go.resource.Client.GetResourceSchema(e,n,t)}function P(e,n){return window.go.resource.Client.GetResourceType(e,n)}function R(e,n){return window.go.resource.Client.GetResourceTypes(e,n)}function v(e,n){return window.go.resource.Client.GetWatchState(e,n)}function Cn(e,n){return window.go.resource.Client.HasResourceType(e,n)}function Sn(e,n,t){return window.go.resource.Client.IsResourceWatchRunning(e,n,t)}function b(e,n,t,o){return window.go.resource.Client.List(e,n,t,o)}function h(){return window.go.resource.Client.ListAllConnections()}function m(e){return window.go.resource.Client.ListConnections(e)}function fn(){return window.go.resource.Client.ListPlugins()}function pn(e){return window.go.resource.Client.LoadConnections(e)}function M(e,n){return window.go.resource.Client.RemoveConnection(e,n)}function Gn(e,n,t,o,i){return window.go.resource.Client.ResolveRelationships(e,n,t,o,i)}function Pn(e,n,t){return window.go.resource.Client.RestartResourceWatch(e,n,t)}function L(e,n){return window.go.resource.Client.StartConnection(e,n)}function F(e,n){return window.go.resource.Client.StartConnectionWatch(e,n)}function y(e,n){return window.go.resource.Client.StopConnection(e,n)}function _(e,n){return window.go.resource.Client.StopConnectionWatch(e,n)}function Rn(e,n,t){return window.go.resource.Client.StopResourceWatch(e,n,t)}function A(e,n,t,o,i){return window.go.resource.Client.StreamAction(e,n,t,o,i)}function $(e,n,t){return window.go.resource.Client.SubscribeResource(e,n,t)}function I(e,n,t){return window.go.resource.Client.UnsubscribeResource(e,n,t)}function T(e,n,t,o){return window.go.resource.Client.Update(e,n,t,o)}function O(e,n){return window.go.resource.Client.UpdateConnection(e,n)}const vn=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:nn,CheckConnection:tn,Create:l,Delete:c,EnsureResourceWatch:on,ExecuteAction:w,Find:rn,Get:a,GetActions:d,GetAllConnectionStates:C,GetConnection:S,GetConnectionNamespaces:f,GetEditorSchemas:p,GetFilterFields:un,GetHealth:sn,GetRelationships:gn,GetResourceCapabilities:ln,GetResourceDefinition:cn,GetResourceEvents:wn,GetResourceGroup:an,GetResourceGroups:G,GetResourceSchema:dn,GetResourceType:P,GetResourceTypes:R,GetWatchState:v,HasResourceType:Cn,IsResourceWatchRunning:Sn,List:b,ListAllConnections:h,ListConnections:m,ListPlugins:fn,LoadConnections:pn,RemoveConnection:M,ResolveRelationships:Gn,RestartResourceWatch:Pn,StartConnection:L,StartConnectionWatch:F,StopConnection:y,StopConnectionWatch:_,StopResourceWatch:Rn,StreamAction:A,SubscribeResource:$,UnsubscribeResource:I,Update:T,UpdateConnection:O},Symbol.toStringTag,{value:"Module"}));function bn(e){return window.go.exec.Client.AttachSession(e)}function hn(e){return window.go.exec.Client.CloseSession(e)}function W(e,n,t){return window.go.exec.Client.CreateSession(e,n,t)}function mn(e){return window.go.exec.Client.CreateTerminal(e)}function Mn(e){return window.go.exec.Client.DetachSession(e)}function Ln(e,n){return window.go.exec.Client.GetHandler(e,n)}function Fn(){return window.go.exec.Client.GetHandlers()}function yn(e){return window.go.exec.Client.GetPluginHandlers(e)}function _n(e){return window.go.exec.Client.GetSession(e)}function An(){return window.go.exec.Client.ListPlugins()}function $n(){return window.go.exec.Client.ListSessions()}function In(e,n,t){return window.go.exec.Client.ResizeSession(e,n,t)}function Tn(e,n){return window.go.exec.Client.WriteSession(e,n)}const On=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:bn,CloseSession:hn,CreateSession:W,CreateTerminal:mn,DetachSession:Mn,GetHandler:Ln,GetHandlers:Fn,GetPluginHandlers:yn,GetSession:_n,ListPlugins:An,ListSessions:$n,ResizeSession:In,WriteSession:Tn},Symbol.toStringTag,{value:"Module"}));function j(e){return window.go.logs.Client.CloseSession(e)}function H(e,n,t){return window.go.logs.Client.CreateSession(e,n,t)}function Wn(e){return window.go.logs.Client.GetSession(e)}function jn(e){return window.go.logs.Client.GetSupportedResources(e)}function Hn(){return window.go.logs.Client.ListSessions()}function Un(e){return window.go.logs.Client.PauseSession(e)}function Vn(e){return window.go.logs.Client.ResumeSession(e)}function xn(e,n){return window.go.logs.Client.UpdateSessionOptions(e,n)}const zn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:j,CreateSession:H,GetSession:Wn,GetSupportedResources:jn,ListSessions:Hn,PauseSession:Un,ResumeSession:Vn,UpdateSessionOptions:xn},Symbol.toStringTag,{value:"Module"}));function U(){return window.go.metric.Client.GetProviders()}function V(e){return window.go.metric.Client.GetProvidersForResource(e)}function Dn(e,n,t){return window.go.metric.Client.Query(e,n,t)}function x(e,n,t,o,i,r,q,J,K,X){return window.go.metric.Client.QueryAll(e,n,t,o,i,r,q,J,K,X)}function z(e,n,t){return window.go.metric.Client.Subscribe(e,n,t)}function D(e){return window.go.metric.Client.Unsubscribe(e)}const kn=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:U,GetProvidersForResource:V,Query:Dn,QueryAll:x,Subscribe:z,Unsubscribe:D},Symbol.toStringTag,{value:"Module"}));function k(e){return window.go.networker.Client.ClosePortForwardSession(e)}function E(e,n,t){return window.go.networker.Client.FindPortForwardSessions(e,n,t)}function En(e){return window.go.networker.Client.GetPortForwardSession(e)}function Qn(e){return window.go.networker.Client.GetSupportedPortForwardTargets(e)}function Q(){return window.go.networker.Client.ListAllPortForwardSessions()}function Nn(e,n){return window.go.networker.Client.ListPortForwardSessions(e,n)}function N(e,n,t){return window.go.networker.Client.StartResourcePortForwardingSession(e,n,t)}const Bn=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:k,FindPortForwardSessions:E,GetPortForwardSession:En,GetSupportedPortForwardTargets:Qn,ListAllPortForwardSessions:Q,ListPortForwardSessions:Nn,StartResourcePortForwardingSession:N},Symbol.toStringTag,{value:"Module"}));function qn(e){return window.go.ui.Client.GetPluginComponents(e)}function B(e){return window.go.ui.Client.GetResourceAreaComponent(e)}function Jn(e){return window.go.ui.Client.GetResourceComponents(e)}const Kn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:qn,GetResourceAreaComponent:B,GetResourceComponents:Jn},Symbol.toStringTag,{value:"Module"}));exports.Client=On;exports.Client$1=Bn;exports.Client$2=vn;exports.Client$3=ie;exports.Client$4=Kn;exports.Client$5=zn;exports.Client$6=kn;exports.ClosePortForwardSession=k;exports.CloseSession=j;exports.Create=l;exports.CreateSession=W;exports.CreateSession$1=H;exports.Delete=c;exports.ExecuteAction=w;exports.FindPortForwardSessions=E;exports.Get=a;exports.GetActions=d;exports.GetAllConnectionStates=C;exports.GetConnection=S;exports.GetConnectionNamespaces=f;exports.GetEditorSchemas=p;exports.GetPluginMeta=s;exports.GetProviders=U;exports.GetProvidersForResource=V;exports.GetResourceAreaComponent=B;exports.GetResourceGroups=G;exports.GetResourceType=P;exports.GetResourceTypes=R;exports.GetWatchState=v;exports.List=b;exports.ListAllConnections=h;exports.ListAllPortForwardSessions=Q;exports.ListConnections=m;exports.PluginValues=u;exports.QueryAll=x;exports.RemoveConnection=M;exports.StartConnection=L;exports.StartConnectionWatch=F;exports.StartResourcePortForwardingSession=N;exports.StopConnection=y;exports.StopConnectionWatch=_;exports.StreamAction=A;exports.Subscribe=z;exports.SubscribeResource=$;exports.Unsubscribe=D;exports.UnsubscribeResource=I;exports.Update=T;exports.UpdateConnection=O;exports.Values=g;exports.pluginManager=Ae;exports.provider=en;
package/dist/api.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Client-DHqavZ6d.cjs");function i(e){return window.go.utils.Client.DetectLanguage(e)}const o=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:i},Symbol.toStringTag,{value:"Module"}));function g(e,n){return window.go.diagnostics.DiagnosticsClient.Debug(e,n)}function a(e,n){return window.go.diagnostics.DiagnosticsClient.Error(e,n)}function u(e,n){return window.go.diagnostics.DiagnosticsClient.Info(e,n)}function l(e,n,t){return window.go.diagnostics.DiagnosticsClient.Log(e,n,t)}function s(e){return window.go.diagnostics.DiagnosticsClient.ReadLog(e)}function v(e){return window.go.diagnostics.DiagnosticsClient.StartTail(e)}function c(e){return window.go.diagnostics.DiagnosticsClient.StopTail(e)}function d(e,n){return window.go.diagnostics.DiagnosticsClient.Warn(e,n)}const S=Object.freeze(Object.defineProperty({__proto__:null,Debug:g,Error:a,Info:u,Log:l,ReadLog:s,StartTail:v,StopTail:c,Warn:d},Symbol.toStringTag,{value:"Module"}));function w(e,n){return window.go.devserver.DevServerManager.GetDevServerLogs(e,n)}function D(e){return window.go.devserver.DevServerManager.GetDevServerState(e)}function f(e){return window.go.devserver.DevServerManager.GetExternalPluginInfo(e)}function p(e){return window.go.devserver.DevServerManager.Initialize(e)}function M(e){return window.go.devserver.DevServerManager.IsManaged(e)}function C(){return window.go.devserver.DevServerManager.ListDevServerStates()}function b(e){return window.go.devserver.DevServerManager.RebuildPlugin(e)}function L(e){return window.go.devserver.DevServerManager.RestartDevServer(e)}function m(){return window.go.devserver.DevServerManager.Shutdown()}function O(e){return window.go.devserver.DevServerManager.StartDevServer(e)}function _(e,n){return window.go.devserver.DevServerManager.StartDevServerForPath(e,n)}function P(e){return window.go.devserver.DevServerManager.StopDevServer(e)}const y=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:w,GetDevServerState:D,GetExternalPluginInfo:f,Initialize:p,IsManaged:M,ListDevServerStates:C,RebuildPlugin:b,RestartDevServer:L,Shutdown:m,StartDevServer:O,StartDevServerForPath:_,StopDevServer:P},Symbol.toStringTag,{value:"Module"}));function F(){return window.go.pluginlog.Manager.Close()}function G(e,n){return window.go.pluginlog.Manager.GetLogs(e,n)}function j(){return window.go.pluginlog.Manager.ListStreams()}function I(){return window.go.pluginlog.Manager.LogDir()}function T(e){return window.go.pluginlog.Manager.OnEmit(e)}function E(e,n){return window.go.pluginlog.Manager.SearchLogs(e,n)}function R(e){return window.go.pluginlog.Manager.Stream(e)}function $(e){return window.go.pluginlog.Manager.Subscribe(e)}function h(e){return window.go.pluginlog.Manager.Unsubscribe(e)}const z=Object.freeze(Object.defineProperty({__proto__:null,Close:F,GetLogs:G,ListStreams:j,LogDir:I,OnEmit:T,SearchLogs:E,Stream:R,Subscribe:$,Unsubscribe:h},Symbol.toStringTag,{value:"Module"}));function W(){return window.go.main.App.GetOperatingSystem()}function A(e){return window.go.main.App.OpenFileSelectionDialog(e)}function U(e){return window.go.main.App.SaveFileDialog(e)}function x(e,n){return window.go.main.App.WriteFileContent(e,n)}exports.ExecClient=r.Client;exports.LogsClient=r.Client$5;exports.MetricClient=r.Client$6;exports.NetworkerClient=r.Client$1;exports.PluginManager=r.pluginManager;exports.ResourceClient=r.Client$2;exports.SettingsClient=r.Client$3;exports.SettingsProvider=r.provider;exports.UIClient=r.Client$4;exports.DevServerManager=y;exports.DiagnosticsClient=S;exports.GetOperatingSystem=W;exports.OpenFileSelectionDialog=A;exports.PluginLogManager=z;exports.SaveFileDialog=U;exports.UtilsClient=o;exports.WriteFileContent=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Client-CLvQWnuz.cjs");function i(e){return window.go.utils.Client.DetectLanguage(e)}const o=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:i},Symbol.toStringTag,{value:"Module"}));function g(e,n){return window.go.diagnostics.DiagnosticsClient.Debug(e,n)}function a(e,n){return window.go.diagnostics.DiagnosticsClient.Error(e,n)}function u(e,n){return window.go.diagnostics.DiagnosticsClient.Info(e,n)}function l(e,n,t){return window.go.diagnostics.DiagnosticsClient.Log(e,n,t)}function s(e){return window.go.diagnostics.DiagnosticsClient.ReadLog(e)}function v(e){return window.go.diagnostics.DiagnosticsClient.StartTail(e)}function c(e){return window.go.diagnostics.DiagnosticsClient.StopTail(e)}function d(e,n){return window.go.diagnostics.DiagnosticsClient.Warn(e,n)}const S=Object.freeze(Object.defineProperty({__proto__:null,Debug:g,Error:a,Info:u,Log:l,ReadLog:s,StartTail:v,StopTail:c,Warn:d},Symbol.toStringTag,{value:"Module"}));function w(e,n){return window.go.devserver.DevServerManager.GetDevServerLogs(e,n)}function D(e){return window.go.devserver.DevServerManager.GetDevServerState(e)}function f(e){return window.go.devserver.DevServerManager.GetExternalPluginInfo(e)}function p(e){return window.go.devserver.DevServerManager.Initialize(e)}function M(e){return window.go.devserver.DevServerManager.IsManaged(e)}function C(){return window.go.devserver.DevServerManager.ListDevServerStates()}function b(e){return window.go.devserver.DevServerManager.RebuildPlugin(e)}function L(e){return window.go.devserver.DevServerManager.RestartDevServer(e)}function m(){return window.go.devserver.DevServerManager.Shutdown()}function O(e){return window.go.devserver.DevServerManager.StartDevServer(e)}function _(e,n){return window.go.devserver.DevServerManager.StartDevServerForPath(e,n)}function P(e){return window.go.devserver.DevServerManager.StopDevServer(e)}const y=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:w,GetDevServerState:D,GetExternalPluginInfo:f,Initialize:p,IsManaged:M,ListDevServerStates:C,RebuildPlugin:b,RestartDevServer:L,Shutdown:m,StartDevServer:O,StartDevServerForPath:_,StopDevServer:P},Symbol.toStringTag,{value:"Module"}));function F(){return window.go.pluginlog.Manager.Close()}function G(e,n){return window.go.pluginlog.Manager.GetLogs(e,n)}function j(){return window.go.pluginlog.Manager.ListStreams()}function I(){return window.go.pluginlog.Manager.LogDir()}function T(e){return window.go.pluginlog.Manager.OnEmit(e)}function E(e,n){return window.go.pluginlog.Manager.SearchLogs(e,n)}function R(e){return window.go.pluginlog.Manager.Stream(e)}function $(e){return window.go.pluginlog.Manager.Subscribe(e)}function h(e){return window.go.pluginlog.Manager.Unsubscribe(e)}const z=Object.freeze(Object.defineProperty({__proto__:null,Close:F,GetLogs:G,ListStreams:j,LogDir:I,OnEmit:T,SearchLogs:E,Stream:R,Subscribe:$,Unsubscribe:h},Symbol.toStringTag,{value:"Module"}));function W(){return window.go.main.App.GetOperatingSystem()}function A(e){return window.go.main.App.OpenFileSelectionDialog(e)}function U(e){return window.go.main.App.SaveFileDialog(e)}function x(e,n){return window.go.main.App.WriteFileContent(e,n)}exports.ExecClient=r.Client;exports.LogsClient=r.Client$5;exports.MetricClient=r.Client$6;exports.NetworkerClient=r.Client$1;exports.PluginManager=r.pluginManager;exports.ResourceClient=r.Client$2;exports.SettingsClient=r.Client$3;exports.SettingsProvider=r.provider;exports.UIClient=r.Client$4;exports.DevServerManager=y;exports.DiagnosticsClient=S;exports.GetOperatingSystem=W;exports.OpenFileSelectionDialog=A;exports.PluginLogManager=z;exports.SaveFileDialog=U;exports.UtilsClient=o;exports.WriteFileContent=x;
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as q, f as B, g as H, a as J, p as K, b as Q, c as V, d as X, e as Y } from "./Client-D4njqvNH.js";
1
+ import { C as q, f as B, g as H, a as J, p as K, b as Q, c as V, d as X, e as Y } from "./Client-07zrOerN.js";
2
2
  function t(e) {
3
3
  return window.go.utils.Client.DetectLanguage(e);
4
4
  }
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var Tt=Object.defineProperty;var Nt=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>Nt(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),l=require("react"),Z=require("react-router-dom"),E=require("./Client-DHqavZ6d.cjs"),I=require("./models.cjs"),_=require("@tanstack/react-query"),Mt=require("@omniviewdev/ui/feedback"),O=require("./runtime.cjs"),ue=l.createContext(void 0),k={PLUGIN_NOT_FOUND:"omniview:plugin/not-found",PLUGIN_NOT_LOADED:"omniview:plugin/not-loaded",PLUGIN_ALREADY_LOADED:"omniview:plugin/already-loaded",PLUGIN_INSTALL_FAILED:"omniview:plugin/install-failed",PLUGIN_LOAD_FAILED:"omniview:plugin/load-failed",PLUGIN_BUILD_FAILED:"omniview:plugin/build-failed",SETTINGS_MISSING_CONFIG:"omniview:settings/missing-config",SETTINGS_INVALID_CONFIG:"omniview:settings/invalid-config",RESOURCE_NOT_FOUND:"omniview:resource/not-found",RESOURCE_FORBIDDEN:"omniview:resource/forbidden",RESOURCE_UNAUTHORIZED:"omniview:resource/unauthorized",RESOURCE_CONFLICT:"omniview:resource/conflict",RESOURCE_TIMEOUT:"omniview:resource/timeout",CONNECTION_NOT_FOUND:"omniview:connection/not-found",CONNECTION_FAILED:"omniview:connection/failed",RESOURCE_CONNECTION_ERROR:"omniview:resource/connection-error",RESOURCE_CERTIFICATE_ERROR:"omniview:resource/certificate-error",SESSION_NOT_FOUND:"omniview:session/not-found",SESSION_FAILED:"omniview:session/failed",CANCELLED:"omniview:cancelled",INTERNAL:"omniview:internal",VALIDATION:"omniview:validation",NOT_IMPLEMENTED:"omniview:not-implemented"};function kt(e){switch(e){case"NOT_FOUND":return{typeUri:k.RESOURCE_NOT_FOUND,status:404};case"FORBIDDEN":return{typeUri:k.RESOURCE_FORBIDDEN,status:403};case"UNAUTHORIZED":return{typeUri:k.RESOURCE_UNAUTHORIZED,status:401};case"CONFLICT":case"ALREADY_EXISTS":return{typeUri:k.RESOURCE_CONFLICT,status:409};case"TIMEOUT":return{typeUri:k.RESOURCE_TIMEOUT,status:408};case"CONNECTION_ERROR":return{typeUri:k.RESOURCE_CONNECTION_ERROR,status:503};case"CERTIFICATE_ERROR":return{typeUri:k.RESOURCE_CERTIFICATE_ERROR,status:502};default:return{typeUri:k.INTERNAL,status:500}}}function $(e){if(e==null)return{type:k.INTERNAL,title:"Unknown error",status:500,detail:"An unknown error occurred."};let t;if(typeof e=="string"?t=e:e instanceof Error?t=e.message:t=String(e),t.startsWith("{"))try{const n=JSON.parse(t);if(typeof n.type=="string"&&typeof n.title=="string"&&typeof n.status=="number"&&typeof n.detail=="string")return n;if(typeof n.code=="string"&&typeof n.title=="string"&&typeof n.message=="string"){const{typeUri:r,status:s}=kt(n.code);return{type:r,title:n.title,status:s,detail:n.message,suggestions:Array.isArray(n.suggestions)?n.suggestions:void 0}}}catch{}return{type:k.INTERNAL,title:"Error",status:500,detail:t}}function Ae(e){return e==null?!1:(typeof e=="string"?e:e instanceof Error?e.message:String(e))==="cancelled"?!0:$(e).type===k.CANCELLED}function Ze(e){switch(e.type){case"navigate":return{label:e.label,onClick:()=>{window.location.hash=e.target??""}};case"open-url":return{label:e.label,onClick:()=>{window.open(e.target,"_blank")}};case"copy":return{label:e.label,onClick:()=>{navigator.clipboard.writeText(e.target??"")}};case"retry":return{label:e.label,onClick:()=>{}};default:return{label:e.label,onClick:()=>{}}}}function et(e,t){var s,i;const n=[e.detail,...((s=e.suggestions)==null?void 0:s.map(o=>`• ${o}`))??[]].join(`
1
+ "use strict";var Tt=Object.defineProperty;var Nt=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>Nt(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),l=require("react"),Z=require("react-router-dom"),E=require("./Client-CLvQWnuz.cjs"),I=require("./models.cjs"),_=require("@tanstack/react-query"),Mt=require("@omniviewdev/ui/feedback"),O=require("./runtime.cjs"),ue=l.createContext(void 0),k={PLUGIN_NOT_FOUND:"omniview:plugin/not-found",PLUGIN_NOT_LOADED:"omniview:plugin/not-loaded",PLUGIN_ALREADY_LOADED:"omniview:plugin/already-loaded",PLUGIN_INSTALL_FAILED:"omniview:plugin/install-failed",PLUGIN_LOAD_FAILED:"omniview:plugin/load-failed",PLUGIN_BUILD_FAILED:"omniview:plugin/build-failed",SETTINGS_MISSING_CONFIG:"omniview:settings/missing-config",SETTINGS_INVALID_CONFIG:"omniview:settings/invalid-config",RESOURCE_NOT_FOUND:"omniview:resource/not-found",RESOURCE_FORBIDDEN:"omniview:resource/forbidden",RESOURCE_UNAUTHORIZED:"omniview:resource/unauthorized",RESOURCE_CONFLICT:"omniview:resource/conflict",RESOURCE_TIMEOUT:"omniview:resource/timeout",CONNECTION_NOT_FOUND:"omniview:connection/not-found",CONNECTION_FAILED:"omniview:connection/failed",RESOURCE_CONNECTION_ERROR:"omniview:resource/connection-error",RESOURCE_CERTIFICATE_ERROR:"omniview:resource/certificate-error",SESSION_NOT_FOUND:"omniview:session/not-found",SESSION_FAILED:"omniview:session/failed",CANCELLED:"omniview:cancelled",INTERNAL:"omniview:internal",VALIDATION:"omniview:validation",NOT_IMPLEMENTED:"omniview:not-implemented"};function kt(e){switch(e){case"NOT_FOUND":return{typeUri:k.RESOURCE_NOT_FOUND,status:404};case"FORBIDDEN":return{typeUri:k.RESOURCE_FORBIDDEN,status:403};case"UNAUTHORIZED":return{typeUri:k.RESOURCE_UNAUTHORIZED,status:401};case"CONFLICT":case"ALREADY_EXISTS":return{typeUri:k.RESOURCE_CONFLICT,status:409};case"TIMEOUT":return{typeUri:k.RESOURCE_TIMEOUT,status:408};case"CONNECTION_ERROR":return{typeUri:k.RESOURCE_CONNECTION_ERROR,status:503};case"CERTIFICATE_ERROR":return{typeUri:k.RESOURCE_CERTIFICATE_ERROR,status:502};default:return{typeUri:k.INTERNAL,status:500}}}function $(e){if(e==null)return{type:k.INTERNAL,title:"Unknown error",status:500,detail:"An unknown error occurred."};let t;if(typeof e=="string"?t=e:e instanceof Error?t=e.message:t=String(e),t.startsWith("{"))try{const n=JSON.parse(t);if(typeof n.type=="string"&&typeof n.title=="string"&&typeof n.status=="number"&&typeof n.detail=="string")return n;if(typeof n.code=="string"&&typeof n.title=="string"&&typeof n.message=="string"){const{typeUri:r,status:s}=kt(n.code);return{type:r,title:n.title,status:s,detail:n.message,suggestions:Array.isArray(n.suggestions)?n.suggestions:void 0}}}catch{}return{type:k.INTERNAL,title:"Error",status:500,detail:t}}function Ae(e){return e==null?!1:(typeof e=="string"?e:e instanceof Error?e.message:String(e))==="cancelled"?!0:$(e).type===k.CANCELLED}function Ze(e){switch(e.type){case"navigate":return{label:e.label,onClick:()=>{window.location.hash=e.target??""}};case"open-url":return{label:e.label,onClick:()=>{window.open(e.target,"_blank")}};case"copy":return{label:e.label,onClick:()=>{navigator.clipboard.writeText(e.target??"")}};case"retry":return{label:e.label,onClick:()=>{}};default:return{label:e.label,onClick:()=>{}}}}function et(e,t){var s,i;const n=[e.detail,...((s=e.suggestions)==null?void 0:s.map(o=>`• ${o}`))??[]].join(`
2
2
  `);return{message:t||(e.title!=="Error"?e.title:"Operation failed"),status:"error",details:n,actions:(i=e.actions)==null?void 0:i.map(Ze)}}function G(e,t,n){if(Ae(t))return;const r=$(t);e(et(r,n))}function x(e,t){return n=>{if(Ae(n))return;const r=$(n);e(et(r,r.title!=="Error"?r.title:t))}}function Lt(e){const{children:t,pluginId:n}=e,[r,s]=l.useState({}),[i,o]=l.useState(new I.config.PluginMeta),[a,u]=l.useState(!1),[d,c]=l.useState(null);console.debug("[PluginContextProvider] render",{pluginId:n,metaLoaded:a,metaError:!!d});const m=()=>{n===void 0||n===""||(console.debug(`[PluginContextProvider] fetching settings for "${n}"`),E.PluginValues(n).then(f=>{console.debug(`[PluginContextProvider] settings loaded for "${n}"`,Object.keys(f)),s(f)}).catch(f=>{const g=$(f);console.error(`[PluginContextProvider] error fetching settings for "${n}":`,g.detail)}))},p=()=>{if(n===void 0||n===""){console.debug("[PluginContextProvider] skipping meta fetch — empty pluginId");return}console.debug(`[PluginContextProvider] fetching meta for "${n}"`),c(null),E.GetPluginMeta(n).then(f=>{console.debug(`[PluginContextProvider] meta loaded for "${n}"`,{name:f==null?void 0:f.name,version:f==null?void 0:f.version}),o(f),u(!0)}).catch(f=>{const g=$(f);console.error(`[PluginContextProvider] error fetching meta for "${n}":`,g.detail),c(g.detail),u(!1)})};return l.useEffect(()=>{console.debug(`[PluginContextProvider] useEffect — pluginId changed to "${n}"`),m(),p()},[n]),d?R.jsx("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center",padding:24},children:R.jsxs("div",{style:{maxWidth:480,width:"100%",border:"1px solid #7F1D1D",borderRadius:8,backgroundColor:"#1C1917",padding:20,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[R.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#EF4444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("circle",{cx:"12",cy:"12",r:"10"}),R.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),R.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),R.jsx("span",{style:{fontSize:14,fontWeight:600,color:"#FECACA"},children:"Plugin failed to load"})]}),R.jsx("p",{style:{fontSize:13,color:"#A1A1AA",margin:"0 0 16px"},children:d}),R.jsx("button",{onClick:()=>p(),style:{background:"transparent",color:"#F87171",border:"1px solid #7F1D1D",borderRadius:6,padding:"6px 14px",fontSize:13,fontWeight:500,cursor:"pointer"},children:"Retry"})]})}):a?R.jsx(ue.Provider,{value:{pluginId:n,settings:r,meta:i},children:t}):R.jsxs("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:[R.jsx("div",{style:{width:24,height:24,border:"2px solid #3F3F46",borderTopColor:"#A1A1AA",borderRadius:"50%",animation:"plugin-spin 0.8s linear infinite"}}),R.jsx("style",{children:"@keyframes plugin-spin { to { transform: rotate(360deg); } }"})]})}function le(){const e=l.useContext(ue);if(!e)throw new Error("usePluginContext must be used within a PluginContextProvider");return e}function $t(){return le().settings}const Te=l.createContext(void 0),Ut=({children:e})=>{const[t,n]=l.useState({}),r=()=>{E.Values().then(i=>{console.log("Fetched settings:",i),n(i)}).catch(i=>{console.error("Error fetching settings:",i)})};l.useEffect(()=>{r()},[]);const s=()=>{r()};return R.jsx(Te.Provider,{value:{settings:t,reload:s},children:e})},tt={height:32,focused:0,tabs:[],createTab:()=>{},createTabs:()=>{},updateTab:()=>{},focusTab:()=>{},reorderTab:()=>{},closeTab:()=>{},closeTabs:()=>{},resizeDrawer:()=>{},closeDrawer:()=>{},fullscreenDrawer:()=>{}},nt=l.createContext(tt),rt=l.createContext(void 0),st=l.createContext(void 0),Ne=l.createContext(void 0),qt=3e4,jt=({children:e})=>{const[t,n]=l.useState([]),r=l.useCallback(a=>{n(u=>[a,...u])},[]),s=l.useCallback((a,u)=>{n(d=>d.map(c=>c.id===a?{...c,...u}:c))},[]),i=l.useCallback(a=>{n(u=>u.filter(d=>d.id!==a))},[]);l.useEffect(()=>{const a=[];for(const u of t)if(u.status==="completed"||u.status==="error"){const d=Date.now()-(u.completedAt??u.startedAt),c=Math.max(0,qt-d);a.push(setTimeout(()=>i(u.id),c))}return()=>a.forEach(clearTimeout)},[t,i]);const o=l.useMemo(()=>({operations:t,addOperation:r,updateOperation:s,removeOperation:i}),[t,r,s,i]);return R.jsx(Ne.Provider,{value:o,children:e})};var be=function(e,t){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},be(e,t)};function Qt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");be(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var _e="Invariant Violation",Ge=Object.setPrototypeOf,Gt=Ge===void 0?function(e,t){return e.__proto__=t,e}:Ge,zt=function(e){Qt(t,e);function t(n){n===void 0&&(n=_e);var r=e.call(this,typeof n=="number"?_e+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=_e,Gt(r,t.prototype),r}return t}(Error);function ve(e,t){if(!e)throw new zt(t)}var ot=["debug","log","warn","error","silent"],Kt=ot.indexOf("log");function re(e){return function(){if(ot.indexOf(e)>=Kt){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=re("debug"),e.log=re("log"),e.warn=re("warn"),e.error=re("error")})(ve||(ve={}));const it=l.createContext(void 0),at=()=>l.useContext(it);function Wt(e){const t=at(),n=l.useRef(null),r=t==null?void 0:t.getExtensionPoint(e),s=l.useCallback(o=>{const a=[];return t&&a.push(t.subscribe(o)),r&&a.push(r.subscribe(o)),()=>{for(const u of a)u()}},[t,e,r]),i=l.useCallback(()=>{const o=t==null?void 0:t.getExtensionPoint(e);if(!o){if(n.current&&n.current.store===void 0)return n.current.sentinel;const d={};return n.current={store:void 0,version:-1,sentinel:d},d}const a=n.current;if(a&&a.store===o&&a.version===o.version)return a.sentinel;const u={};return n.current={store:o,version:o.version,sentinel:u},u},[t,e]);return l.useSyncExternalStore(s,i),t==null?void 0:t.getExtensionPoint(e)}const Bt=({registry:e,children:t})=>{const n=l.useRef(e);return ve(n.current===e,"You can't change the extension registry after it has been rendered"),R.jsx(it.Provider,{value:n.current,children:t})},Ee=e=>{if(!e||typeof e!="string")throw new TypeError(`extensionName is required to be a string and can't be: "${e}" (${typeof e})`);return e.trim()};class ct{constructor(t){F(this,"id");F(this,"mode");F(this,"_pluginId");F(this,"_version",0);F(this,"_contributions",new Map);F(this,"_lookupCache",new Map);F(this,"_matcher");F(this,"_select");F(this,"_listeners",new Set);this.id=t.id,this.mode=t.mode??"multiple",this._pluginId=t.pluginId,this._matcher=t.matcher,this._select=t.select}get pluginId(){return this._pluginId}get version(){return this._version}register(t){if(this._contributions.has(t.id))throw new Error(`Contribution with id "${t.id}" already exists in extension point "${this.id}"`);this._contributions.set(t.id,t),this._invalidateCache(),this._notify()}unregister(t){this._contributions.delete(t)&&(this._invalidateCache(),this._notify())}provide(t){return this._getMatched(t).map(r=>r.value)}list(t){return this._getMatched(t)}listAll(){return Array.from(this._contributions.values())}subscribe(t){return this._listeners.add(t),()=>{this._listeners.delete(t)}}removeContributionsByPlugin(t){let n=!1;for(const[r,s]of this._contributions)s.plugin===t&&(this._contributions.delete(r),n=!0);n&&(this._invalidateCache(),this._notify())}_getMatched(t){const n=this._getCacheKey(t);if(n!=null){const s=this._lookupCache.get(n);if(s){const i=s.map(o=>this._contributions.get(o)).filter(o=>o!=null);return this._applyMode(i,t)}}let r=this._sortDeterministic(Array.from(this._contributions.values()));return this._matcher&&t!==void 0&&(r=r.filter(s=>this._matcher(s,t))),n!=null&&this._lookupCache.set(n,r.map(s=>s.id)),this._applyMode(r,t)}_applyMode(t,n){if(this.mode==="single"){if(this._select){const r=this._select(t,n);return r?[r]:[]}return t.length>0?[t[0]]:[]}return t}_sortDeterministic(t){return[...t].sort((n,r)=>{const s=n.plugin.localeCompare(r.plugin);return s!==0?s:n.id.localeCompare(r.id)})}_getCacheKey(t){if(t!=null&&typeof t=="object"&&"getCacheKey"in t){const n=t.getCacheKey;if(typeof n=="function")return n()}}_invalidateCache(){this._lookupCache.clear()}_notify(){this._version++;for(const t of this._listeners)t()}}class Ht{constructor(t){F(this,"_stores",new Map);F(this,"_storeUnsubs",new Map);F(this,"_listeners",new Set);if(t!=null&&t.initialStores)for(const n of t.initialStores)this.addExtensionPoint(n)}addExtensionPoint(t){const n=Ee(t.id);if(this._stores.has(n)){const s=this._stores.get(n);throw new Error(`Extension point "${n}" already exists (owned by "${s.pluginId??"unknown"}")`)}const r=new ct({...t,id:n});this._stores.set(n,r),this._storeUnsubs.set(n,r.subscribe(()=>this._notify())),this._notify()}getExtensionPoint(t){const n=Ee(t);return this._stores.get(n)}hasExtensionPoint(t){const n=Ee(t);return this._stores.has(n)}listExtensionPoints(){return Array.from(this._stores.keys())}removeExtensionPoints(t){var r;let n=!1;for(const[s,i]of this._stores)i.pluginId===t&&((r=this._storeUnsubs.get(s))==null||r(),this._storeUnsubs.delete(s),this._stores.delete(s),n=!0);n&&this._notify()}removeContributions(t){for(const n of this._stores.values())n.removeContributionsByPlugin(t);this._notify()}subscribe(t){return this._listeners.add(t),()=>{this._listeners.delete(t)}}_notify(){for(const t of this._listeners)t()}}const ut=l.createContext(void 0),Yt={default:"info",info:"info",success:"success",warning:"warning",error:"error"},Jt=({children:e})=>{const{push:t}=Mt.useNotificationStack(),[n,r]=l.useState([]),s=o=>{r(a=>[...a,o])},i=(o,a,u)=>{const d=typeof o=="object";let c="",m="info",p,f=5e3,g;if(d){if(c=o.message,o.showOnce){if(n.includes(c))return;s(c)}m=o.status,p=o.details,f=o.autoHideDuration??5e3,g=o.actions}else c=o,m=a,p=u;t({severity:Yt[m]??"info",title:c,message:p,timeout:f,actions:g})};return R.jsx(ut.Provider,{value:{showSnackbar:i},children:e})},L=()=>{const e=l.useContext(ut);if(e===void 0)throw new Error("useCustomSnackbar must be used within a CustomSnackbarProvider");return e};function D(e){const t=l.useContext(ue),n=(t==null?void 0:t.pluginId)??e;if(!n)throw new Error("pluginID must be provided either via PluginContext or as an explicit parameter");return n}const Vt=({pluginID:e,connectionID:t})=>{const n=D(e),r=_.useQueryClient(),{showSnackbar:s}=L(),i=[n,"connection","detail",t],{mutateAsync:o}=_.useMutation({mutationFn:async()=>E.StartConnection(n,t),onSuccess(m){r.setQueryData(i,m),r.invalidateQueries({queryKey:["EDITOR_SCHEMAS",n,t]})},onError:x(s,"Failed to start connection")}),{mutateAsync:a}=_.useMutation({mutationFn:async()=>E.StopConnection(n,t),onSuccess(m){r.setQueryData(i,m)},onError:x(s,"Failed to stop connection")}),{mutateAsync:u}=_.useMutation({mutationFn:async m=>E.UpdateConnection(n,m),onSuccess(m,{name:p}){s({message:`Connection ${p} successfully updated`,status:"success"}),r.setQueryData(i,c),r.setQueriesData({queryKey:[n,"connection","list"]},f=>f==null?void 0:f.map(g=>g.id===t?m:g))},onError:x(s,"Failed to update connection")}),{mutateAsync:d}=_.useMutation({mutationFn:async()=>E.RemoveConnection(n,t),onSuccess(){s({message:"Connection successfully removed",status:"success"}),r.setQueryData(i,void 0),r.setQueriesData({queryKey:[n,"connection","list"]},m=>m==null?void 0:m.filter(p=>p.id!==t))},onError:x(s,"Failed to remove connection")}),c=_.useQuery({queryKey:i,queryFn:async()=>E.GetConnection(n,t)});return{connection:c,startConnection:o,stopConnection:a,updateConnection:u,deleteConnection:d}},lt=e=>[e,"connection","list"],Xt=({plugin:e})=>{const t=D(e),n=_.useQueryClient(),{showSnackbar:r}=L(),s=lt(t),{mutateAsync:i}=_.useMutation({mutationFn:async d=>E.StartConnectionWatch(t,d.id),onError:x(r,"Failed to start connection watch")}),{mutateAsync:o}=_.useMutation({mutationFn:async d=>E.StopConnectionWatch(t,d.id),onError:x(r,"Failed to stop connection watch")}),a=l.useCallback(d=>{console.log("got update to connections",d),n.setQueryData(s,d)},[]);return l.useEffect(()=>{const d=O.EventsOn(`${t}/connection/sync`,a);return()=>{d()}},[]),{connections:_.useQuery({queryKey:s,queryFn:async()=>{try{return await E.ListConnections(t)}catch(d){console.log(d),x(r,"Failed to load connections")(d)}return[]},staleTime:3e4,placeholderData:_.keepPreviousData}),startWatch:i,stopWatch:o}},Zt=({pluginID:e,connectionID:t})=>{const n=D(e),r=[n,"connection","namespaces",t];return{namespaces:_.useQuery({queryKey:r,queryFn:async()=>E.GetConnectionNamespaces(n,t)})}},b=I.resource.WatchState,en=I.resource.SyncPolicy;function Pe(e){const t=Object.values(e.states),n=t.length;let r=0,s=0,i=0,o=0;for(const c of t)c===b.SYNCED&&r++,(c===b.ERROR||c===b.FAILED)&&s++,c===b.FORBIDDEN&&i++,c===b.SKIPPED&&o++;const a=n-o,u=t.filter(c=>c===b.SYNCED||c===b.ERROR||c===b.STOPPED||c===b.FAILED||c===b.FORBIDDEN).length,d=a>0?u/a:0;return{pluginID:e.pluginID,connectionID:e.connectionID,totalResources:n,watchedTotal:a,syncedCount:r,errorCount:s,forbiddenCount:i,skippedCount:o,doneCount:u,progress:d}}function oe(e){return e.watchedTotal>0&&e.doneCount>=e.watchedTotal}function dt(e){return e.some(t=>!oe(t))}function ft(e){const t=e.reduce((r,s)=>r+s.watchedTotal,0);return t===0?0:e.reduce((r,s)=>r+s.doneCount,0)/t}function Me(e){return`${e.pluginId}/${e.connection}`}function pt(e,t){const n=Me(t);e.has(n)||e.set(n,{states:{},pluginID:t.pluginId,connectionID:t.connection});const r=e.get(n);return r.states[t.resourceKey]=t.state,r}function tn(){const[e,t]=l.useState(new Set),[n,r]=l.useState({}),[s,i]=l.useState(new Map),o=l.useRef(new Map);l.useEffect(()=>{E.GetAllConnectionStates().then(h=>{if(!h)return;const S={},y=new Set,w=new Map;for(const[C,v]of Object.entries(h)){S[C]=v.map(A=>A.connection);for(const A of v){if(!A.started)continue;const P=`${C}/${A.connection.id}`;y.add(P);const U={pluginID:C,connectionID:A.connection.id,states:{}};if(A.resources)for(const[me,X]of Object.entries(A.resources))U.states[me]=X;o.current.set(P,U),w.set(P,Pe(U))}}r(S),t(y),i(w)}).catch(()=>{})},[]),l.useEffect(()=>O.EventsOn("connection/status",S=>{const y=`${S.pluginID}/${S.connectionID}`;S.status==="DISCONNECTED"?(t(w=>{const C=new Set(w);return C.delete(y),C}),i(w=>{const C=new Map(w);return C.delete(y),C}),o.current.delete(y)):t(w=>{const C=new Set(w);return C.add(y),C}),E.ListAllConnections().then(w=>{w&&r(w)}).catch(()=>{})}),[]);const a=l.useCallback(h=>{const S=Me(h);t(C=>{if(C.has(S))return C;const v=new Set(C);return v.add(S),v});const y=pt(o.current,h),w=Pe(y);i(C=>{const v=new Map(C);return v.set(S,w),v})},[]);l.useEffect(()=>O.EventsOn("watch/STATE",a),[a]);const u=l.useCallback(async(h,S)=>{await E.StopConnection(h,S)},[]),d=l.useCallback(async(h,S)=>{await E.StartConnectionWatch(h,S)},[]),c=[];for(const h of e){const[S,y]=h.split("/",2),C=(n[S]??[]).find(U=>U.id===y),v=s.get(h),A=v!=null&&!oe(v),P=v!=null&&v.errorCount>0;c.push({pluginID:S,connectionID:y,name:(C==null?void 0:C.name)??y,avatar:(C==null?void 0:C.avatar)??"",isStarted:!0,sync:v,isSyncing:A,hasErrors:P})}const m=new Map;for(const h of c){const S=m.get(h.pluginID)??[];S.push(h),m.set(h.pluginID,S)}const p=Array.from(s.values()),f=c.filter(h=>h.isSyncing),g=c.filter(h=>h.hasErrors);return{entries:c,grouped:m,connectedCount:c.length,syncingCount:f.length,errorCount:g.length,hasSyncing:dt(p),aggregateProgress:ft(p),disconnect:u,retryWatch:d}}function nn(e,t){return window.go.data.Client.Get(e,t)}function rn(e,t,n){return window.go.data.Client.Set(e,t,n)}function sn(e,t,n){const r=D(e),s=_.useQueryClient(),i=[r,"data",t],o=_.useQuery({queryKey:i,queryFn:async()=>{const u=await nn(r,t);return u??n}}),a=_.useMutation({mutationFn:async u=>{await rn(r,t,u)},onMutate:async u=>{await s.cancelQueries({queryKey:i});const d=s.getQueryData(i);return s.setQueryData(i,u),{previous:d}},onError:(u,d,c)=>{(c==null?void 0:c.previous)!==void 0&&s.setQueryData(i,c.previous)},onSettled:()=>{s.invalidateQueries({queryKey:i})}});return{data:o.data??n,update:async u=>{await a.mutateAsync(u)},isLoading:o.isLoading}}const on=()=>{const e=l.useContext(rt);if(!e)throw new Error("useRightDrawer must be used within a RightDrawerProvider");return e},ke=()=>{const e=l.useContext(nt);if(e===void 0)throw new Error("useBottomDrawer must be used within a BottomDrawerProvider");return e},an=({pluginID:e})=>{const t=D(e),{showSnackbar:n}=L(),{createTab:r,updateTab:s}=ke();return{createSession:_.useMutation({mutationFn:async({connectionID:o,icon:a,label:u,opts:d})=>{const c=`pending-${crypto.randomUUID()}`;r({id:c,title:u??"Connecting...",variant:"terminal",icon:a??"LuSquareTerminal",properties:{status:"connecting",pluginID:t,connectionID:o,opts:{...d}}});const m=I.exec.SessionOptions.createFrom({command:["/bin/bash"],tty:!0,...d});try{const p=await E.CreateSession(t,o,m);s({id:c},{id:p.id,title:u??`Session ${p.id.substring(0,8)}`,properties:{status:"connected",pluginID:t,connectionID:o,opts:{...d}}})}catch(p){const f=$(p);s({id:c},{properties:{status:"error",error:f.detail,pluginID:t,connectionID:o,opts:{...d}}}),G(n,p,"Failed to start session")}}}).mutateAsync}},cn=({pluginID:e})=>{const t=D(e),{showSnackbar:n}=L(),{createTab:r}=ke(),s=_.useMutation({mutationFn:async({connectionID:o,resourceKey:a,resourceID:u,resourceData:d,icon:c,label:m,target:p,follow:f=!0,tailLines:g=1e3,params:h})=>{const S=I.logs.CreateSessionOptions.createFrom({resource_key:a,resource_id:u,resource_data:d,options:I.logs.LogSessionOptions.createFrom({target:p??"",follow:f,include_previous:!1,include_timestamps:!0,tail_lines:g,since_seconds:0,limit_bytes:0,include_source_events:!0,params:h??{}})}),y=await E.CreateSession$1(t,o,S);return r({id:y.id,title:m??`Logs ${y.id.substring(0,8)}`,variant:"logs",icon:c??"LuLogs"}),y},onError:x(n,"Failed to start log session")}),i=_.useMutation({mutationFn:async o=>{await E.CloseSession(o)},onError:x(n,"Failed to close log session")});return{createLogSession:s.mutateAsync,closeLogSession:i.mutateAsync}},un=()=>_.useQuery({queryKey:["metric","providers"],queryFn:E.GetProviders,staleTime:3e4}),yt=e=>_.useQuery({queryKey:["metric","providers",e],queryFn:()=>E.GetProvidersForResource(e),enabled:!!e,staleTime:3e4}),ln=e=>{var S,y;const{connectionID:t,resourceKey:n,resourceID:r,resourceNamespace:s="",resourceData:i={},metricIDs:o=[],shape:a=0,timeRange:u,refreshInterval:d=0,enabled:c=!0}=e,{data:m,isLoading:p}=yt(n),f=m??[],g=u?Math.max(Math.floor((u.end.getTime()-u.start.getTime())/250),15e3)*1e6:0,h=_.useQuery({queryKey:["metric","query",t,n,r,s,o,a,(S=u==null?void 0:u.start)==null?void 0:S.getTime(),(y=u==null?void 0:u.end)==null?void 0:y.getTime()],queryFn:()=>E.QueryAll(t,n,r,s,i,o,a,(u==null?void 0:u.start)??new Date(0),(u==null?void 0:u.end)??new Date(0),g),enabled:c&&!!t&&!!n&&(n.startsWith("cluster::")||!!r)&&f.length>0,refetchInterval:d>0?d:void 0,staleTime:5e3,placeholderData:_.keepPreviousData});return{data:h.data??void 0,providers:f,isLoading:p||h.isLoading,error:h.error,refetch:h.refetch}},dn=e=>{const{pluginID:t,connectionID:n,resourceKey:r,resourceID:s,resourceNamespace:i="",resourceData:o={},metricIDs:a=[],interval:u=1e4,enabled:d=!0}=e,c=D(t),[m,p]=l.useState(null),[f,g]=l.useState(null),[h,S]=l.useState(!1),[y,w]=l.useState(null),C=l.useRef(null),v=l.useCallback(async()=>{if(!(!d||!c||!n||!r||!s))try{const P=await E.Subscribe(c,n,{resource_key:r,resource_id:s,resource_namespace:i,resource_data:o,metric_ids:a,interval:u*1e6});g(P),S(!0),w(null);const U=O.EventsOn(`core/metrics/data/${P}`,X=>{try{const q=JSON.parse(X);q.results&&p(q.results)}catch(q){console.error("Failed to parse metric stream data:",q)}}),me=O.EventsOn(`core/metrics/error/${P}`,X=>{try{const q=JSON.parse(X);w(q.error||"Unknown error")}catch{w("Failed to parse metric stream error")}});C.current=()=>{U(),me()}}catch(P){w(P instanceof Error?P.message:String(P))}},[c,n,r,s,i,a,u,d]),A=l.useCallback(async()=>{if(f)try{await E.Unsubscribe(f)}catch(P){console.error("Failed to unsubscribe:",P)}C.current&&(C.current(),C.current=null),g(null),S(!1)},[f]);return l.useEffect(()=>()=>{f&&E.Unsubscribe(f).catch(console.error),C.current&&C.current()},[f]),{data:m,subscriptionID:f,isStreaming:h,error:y,start:v,stop:A}},Q=["networker","portforward","all-sessions"];function fn(){const{showSnackbar:e}=L(),t=_.useQueryClient(),n=_.useQuery({queryKey:[...Q],queryFn:async()=>E.ListAllPortForwardSessions().catch(i=>{if($(i).detail.includes("not found"))return[];throw i}),retry:!1});l.useEffect(()=>{const i=O.EventsOn("core/networker/portforward/created",()=>{t.invalidateQueries({queryKey:[...Q]})}),o=O.EventsOn("core/networker/portforward/closed",()=>{t.invalidateQueries({queryKey:[...Q]})});return()=>{i(),o()}},[t]);const r=n.data??[],s=_.useMutation({mutationFn:async i=>E.ClosePortForwardSession(i),onError:x(e,"Failed to close port forwarding session"),onSuccess:async()=>{await t.invalidateQueries({queryKey:[...Q]})}});return{sessions:n,activeSessions:r,closeSession:s.mutateAsync,openInBrowser:i=>O.BrowserOpenURL(`http://localhost:${i}`)}}function pn({pluginID:e,connectionID:t,resourceID:n}){const r=D(e),s=["networker","portforward","sessions",r,t,n],{showSnackbar:i}=L(),o=_.useQueryClient(),a=_.useQuery({queryKey:s,queryFn:async()=>E.FindPortForwardSessions(r,t,I.networker.FindPortForwardSessionRequest.createFrom({resource_id:n,connection_id:t})).catch(c=>{const m=$(c);return m.detail.includes("not found")?[]:(i({message:"Failed to fetch port forward sessions",status:"error",details:m.detail}),[])}),retry:!1}),u=_.useMutation({mutationFn:async({opts:c})=>{const m=I.networker.PortForwardSessionOptions.createFrom({local_port:c.localPort||0,remote_port:c.remotePort,protocol:c.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:c.resource,connection_id:t,plugin_id:r,resource_id:c.resourceId,resource_key:c.resourceKey},labels:c.labels??{},params:c.parameters??{}}),p=await E.StartResourcePortForwardingSession(r,t,m);return c.openInBrowser&&O.BrowserOpenURL(`http://localhost:${p.local_port}`),p},onError:x(i,"Failed to start port forwarding session"),onSuccess:async()=>{await Promise.all([o.invalidateQueries({queryKey:s}),o.invalidateQueries({queryKey:[...Q]})])}}),d=_.useMutation({mutationFn:async({opts:c})=>E.ClosePortForwardSession(c.sessionID),onError:x(i,"Failed to close port forwarding session"),onSuccess:async()=>{await Promise.all([o.invalidateQueries({queryKey:s}),o.invalidateQueries({queryKey:[...Q]})])}});return{sessions:a,forward:u.mutateAsync,close:d.mutateAsync}}const yn=()=>{const e=l.useContext(st);if(!e)throw new Error("useConfirmationModal must be used within a ConfirmationModalProvider");return e},hn=({pluginID:e,connectionID:t,resourceKey:n,resourceID:r,namespace:s=""})=>{const i=D(e),o=_.useQueryClient(),{showSnackbar:a}=L(),u=["RESOURCE",i,t,n,r,s],{mutateAsync:d}=_.useMutation({mutationFn:async p=>E.Update(i,t,n,I.resource.ClientUpdateInput.createFrom({input:p.input,id:r,namespace:s})),onSuccess:async()=>{a(`Resource ${r} updated`,"success"),await o.invalidateQueries({queryKey:u})},onError:x(a,`Failed to update resource ${r}`)}),{mutateAsync:c}=_.useMutation({mutationFn:async(p={})=>E.Delete(i,t,n,I.resource.DeleteInput.createFrom({id:r,namespace:s,gracePeriodSeconds:p.gracePeriodSeconds})),onSuccess:async()=>{a(`Resource ${r} deleted`,"success"),await o.invalidateQueries({queryKey:u})},onError:x(a,`Failed to delete resource ${r}`)});return{resource:_.useQuery({queryKey:u,queryFn:async()=>E.Get(i,t,n,I.resource.GetInput.createFrom({id:r,namespace:s})),retry:!1}),update:d,remove:c}},gn=e=>{const t=["component",e.plugin,e.resource,e.area];return{component:_.useQuery({queryKey:t,queryFn:async()=>E.GetResourceAreaComponent(e)})}},mn=({pluginID:e,connectionID:t})=>{const n=D(e),r=[n,"resource_groups","list"];return{groups:_.useQuery({queryKey:r,queryFn:async()=>E.GetResourceGroups(n,t),retry:!1})}},_n=({pluginID:e,connectionID:t,searches:n})=>{const r=D(e),s=o=>[r,t,o.key,o.namespaces,"list"];return _.useQueries({queries:n.map(o=>({queryKey:s(o),queryFn:async()=>E.List(r,t,o.key,I.resource.ListInput.createFrom({order:[{field:"name",descending:!1}],pagination:{page:1,pageSize:200},namespaces:o.namespaces})).then(a=>(console.log(a.result),a.result&&o.postFilter?Object.values(a.result).filter(o.postFilter):Object.values(a.result||{}))),retry:!1}))})},En=({pluginID:e,resourceKey:t})=>{const n=D(e),r=[n,"resources",t];return{resourceType:_.useQuery({queryKey:r,queryFn:async()=>E.GetResourceType(n,t),retry:!1})}},Sn=({pluginID:e,connectionID:t})=>{const n=D(e),r=[n,"resources","list"];return{types:_.useQuery({queryKey:r,queryFn:async()=>E.GetResourceTypes(n,t),retry:!1})}};var ht=Symbol.for("immer-nothing"),ze=Symbol.for("immer-draftable"),N=Symbol.for("immer-state"),Cn=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function T(e,...t){if(process.env.NODE_ENV!=="production"){const n=Cn[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Y=Object.getPrototypeOf;function J(e){return!!e&&!!e[N]}function z(e){var t;return e?gt(e)||Array.isArray(e)||!!e[ze]||!!((t=e.constructor)!=null&&t[ze])||fe(e)||pe(e):!1}var wn=Object.prototype.constructor.toString();function gt(e){if(!e||typeof e!="object")return!1;const t=Y(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===wn}function ie(e,t){de(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function de(e){const t=e[N];return t?t.type_:Array.isArray(e)?1:fe(e)?2:pe(e)?3:0}function Re(e,t){return de(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mt(e,t,n){const r=de(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bn(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fe(e){return e instanceof Map}function pe(e){return e instanceof Set}function j(e){return e.copy_||e.base_}function De(e,t){if(fe(e))return new Map(e);if(pe(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=gt(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[N];let s=Reflect.ownKeys(r);for(let i=0;i<s.length;i++){const o=s[i],a=r[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Y(e),r)}else{const r=Y(e);if(r!==null&&n)return{...e};const s=Object.create(r);return Object.assign(s,e)}}function Le(e,t=!1){return ye(e)||J(e)||!z(e)||(de(e)>1&&(e.set=e.add=e.clear=e.delete=vn),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Le(r,!0))),e}function vn(){T(2)}function ye(e){return Object.isFrozen(e)}var Pn={};function K(e){const t=Pn[e];return t||T(0,e),t}var ee;function _t(){return ee}function Rn(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ke(e,t){t&&(K("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Oe(e){Ie(e),e.drafts_.forEach(Dn),e.drafts_=null}function Ie(e){e===ee&&(ee=e.parent_)}function We(e){return ee=Rn(ee,e)}function Dn(e){const t=e[N];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Be(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[N].modified_&&(Oe(t),T(4)),z(e)&&(e=ae(t,e),t.parent_||ce(t,e)),t.patches_&&K("Patches").generateReplacementPatches_(n[N].base_,e,t.patches_,t.inversePatches_)):e=ae(t,n,[]),Oe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ht?e:void 0}function ae(e,t,n){if(ye(t))return t;const r=t[N];if(!r)return ie(t,(s,i)=>He(e,r,t,s,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ce(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const s=r.copy_;let i=s,o=!1;r.type_===3&&(i=new Set(s),s.clear(),o=!0),ie(i,(a,u)=>He(e,r,s,a,u,n,o)),ce(e,s,!1),n&&e.patches_&&K("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function He(e,t,n,r,s,i,o){if(process.env.NODE_ENV!=="production"&&s===n&&T(5),J(s)){const a=i&&t&&t.type_!==3&&!Re(t.assigned_,r)?i.concat(r):void 0,u=ae(e,s,a);if(mt(n,r,u),J(u))e.canAutoFreeze_=!1;else return}else o&&n.add(s);if(z(s)&&!ye(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ae(e,s),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ce(e,s)}}function ce(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Le(t,n)}function On(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:_t(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=r,i=$e;n&&(s=[r],i=te);const{revoke:o,proxy:a}=Proxy.revocable(s,i);return r.draft_=a,r.revoke_=o,a}var $e={get(e,t){if(t===N)return e;const n=j(e);if(!Re(n,t))return In(e,n,t);const r=n[t];return e.finalized_||!z(r)?r:r===Se(e.base_,t)?(Ce(e),e.copy_[t]=xe(r,e)):r},has(e,t){return t in j(e)},ownKeys(e){return Reflect.ownKeys(j(e))},set(e,t,n){const r=Et(j(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const s=Se(j(e),t),i=s==null?void 0:s[N];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bn(n,s)&&(n!==void 0||Re(e.base_,t)))return!0;Ce(e),Fe(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Se(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ce(e),Fe(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=j(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){T(11)},getPrototypeOf(e){return Y(e.base_)},setPrototypeOf(){T(12)}},te={};ie($e,(e,t)=>{te[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});te.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&T(13),te.set.call(this,e,t,void 0)};te.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&T(14),$e.set.call(this,e[0],t,n,e[0])};function Se(e,t){const n=e[N];return(n?j(n):e)[t]}function In(e,t,n){var s;const r=Et(t,n);return r?"value"in r?r.value:(s=r.get)==null?void 0:s.call(e.draft_):void 0}function Et(e,t){if(!(t in e))return;let n=Y(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Y(n)}}function Fe(e){e.modified_||(e.modified_=!0,e.parent_&&Fe(e.parent_))}function Ce(e){e.copy_||(e.copy_=De(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fn=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(u=i,...d){return o.produce(u,c=>n.call(this,c,...d))}}typeof n!="function"&&T(6),r!==void 0&&typeof r!="function"&&T(7);let s;if(z(t)){const i=We(this),o=xe(t,void 0);let a=!0;try{s=n(o),a=!1}finally{a?Oe(i):Ie(i)}return Ke(i,r),Be(s,i)}else if(!t||typeof t!="object"){if(s=n(t),s===void 0&&(s=t),s===ht&&(s=void 0),this.autoFreeze_&&Le(s,!0),r){const i=[],o=[];K("Patches").generateReplacementPatches_(t,s,i,o),r(i,o)}return s}else T(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let r,s;return[this.produce(t,n,(o,a)=>{r=o,s=a}),r,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){z(e)||T(8),J(e)&&(e=xn(e));const t=We(this),n=xe(e,void 0);return n[N].isManual_=!0,Ie(t),n}finishDraft(e,t){const n=e&&e[N];(!n||!n.isManual_)&&T(9);const{scope_:r}=n;return Ke(r,t),Be(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const r=K("Patches").applyPatches_;return J(e)?r(e,t):this.produce(e,s=>r(s,t))}};function xe(e,t){const n=fe(e)?K("MapSet").proxyMap_(e,t):pe(e)?K("MapSet").proxySet_(e,t):On(e,t);return(t?t.scope_:_t()).drafts_.push(n),n}function xn(e){return J(e)||T(10,e),St(e)}function St(e){if(!z(e)||ye(e))return e;const t=e[N];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=De(e,t.scope_.immer_.useStrictShallowCopy_)}else n=De(e,!0);return ie(n,(r,s)=>{mt(n,r,St(s))}),t&&(t.finalized_=!1),n}var M=new Fn,Ct=M.produce;M.produceWithPatches.bind(M);M.setAutoFreeze.bind(M);M.setUseStrictShallowCopy.bind(M);M.applyPatches.bind(M);M.createDraft.bind(M);M.finishDraft.bind(M);var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tn="Expected a function",wt="__lodash_hash_undefined__",Nn="[object Function]",Mn="[object GeneratorFunction]",kn="[object Symbol]",Ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,Un=/^\./,qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jn=/[\\^$.*+?()[\]{}|]/g,Qn=/\\(\\)?/g,Gn=/^\[object .+?Constructor\]$/,zn=typeof se=="object"&&se&&se.Object===Object&&se,Kn=typeof self=="object"&&self&&self.Object===Object&&self,Ue=zn||Kn||Function("return this")();function Wn(e,t){return e==null?void 0:e[t]}function Bn(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Hn=Array.prototype,Yn=Function.prototype,bt=Object.prototype,we=Ue["__core-js_shared__"],Ye=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vt=Yn.toString,qe=bt.hasOwnProperty,Pt=bt.toString,Jn=RegExp("^"+vt.call(qe).replace(jn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=Ue.Symbol,Vn=Hn.splice,Xn=Rt(Ue,"Map"),ne=Rt(Object,"create"),Ve=Je?Je.prototype:void 0,Xe=Ve?Ve.toString:void 0;function W(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(){this.__data__=ne?ne(null):{}}function er(e){return this.has(e)&&delete this.__data__[e]}function tr(e){var t=this.__data__;if(ne){var n=t[e];return n===wt?void 0:n}return qe.call(t,e)?t[e]:void 0}function nr(e){var t=this.__data__;return ne?t[e]!==void 0:qe.call(t,e)}function rr(e,t){var n=this.__data__;return n[e]=ne&&t===void 0?wt:t,this}W.prototype.clear=Zn;W.prototype.delete=er;W.prototype.get=tr;W.prototype.has=nr;W.prototype.set=rr;function V(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function sr(){this.__data__=[]}function or(e){var t=this.__data__,n=he(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Vn.call(t,n,1),!0}function ir(e){var t=this.__data__,n=he(t,e);return n<0?void 0:t[n][1]}function ar(e){return he(this.__data__,e)>-1}function cr(e,t){var n=this.__data__,r=he(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}V.prototype.clear=sr;V.prototype.delete=or;V.prototype.get=ir;V.prototype.has=ar;V.prototype.set=cr;function B(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ur(){this.__data__={hash:new W,map:new(Xn||V),string:new W}}function lr(e){return ge(this,e).delete(e)}function dr(e){return ge(this,e).get(e)}function fr(e){return ge(this,e).has(e)}function pr(e,t){return ge(this,e).set(e,t),this}B.prototype.clear=ur;B.prototype.delete=lr;B.prototype.get=dr;B.prototype.has=fr;B.prototype.set=pr;function he(e,t){for(var n=e.length;n--;)if(vr(e[n][0],t))return n;return-1}function yr(e,t){t=_r(t,e)?[t]:mr(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[wr(t[n++])];return n&&n==r?e:void 0}function hr(e){if(!Ot(e)||Sr(e))return!1;var t=Pr(e)||Bn(e)?Jn:Gn;return t.test(br(e))}function gr(e){if(typeof e=="string")return e;if(Qe(e))return Xe?Xe.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function mr(e){return Dt(e)?e:Cr(e)}function ge(e,t){var n=e.__data__;return Er(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Rt(e,t){var n=Wn(e,t);return hr(n)?n:void 0}function _r(e,t){if(Dt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qe(e)?!0:$n.test(e)||!Ln.test(e)||t!=null&&e in Object(t)}function Er(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Sr(e){return!!Ye&&Ye in e}var Cr=je(function(e){e=Dr(e);var t=[];return Un.test(e)&&t.push(""),e.replace(qn,function(n,r,s,i){t.push(s?i.replace(Qn,"$1"):r||n)}),t});function wr(e){if(typeof e=="string"||Qe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function br(e){if(e!=null){try{return vt.call(e)}catch{}try{return e+""}catch{}}return""}function je(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Tn);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o),o};return n.cache=new(je.Cache||B),n}je.Cache=B;function vr(e,t){return e===t||e!==e&&t!==t}var Dt=Array.isArray;function Pr(e){var t=Ot(e)?Pt.call(e):"";return t==Nn||t==Mn}function Ot(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Rr(e){return!!e&&typeof e=="object"}function Qe(e){return typeof e=="symbol"||Rr(e)&&Pt.call(e)==kn}function Dr(e){return e==null?"":gr(e)}function Or(e,t,n){var r=e==null?void 0:yr(e,t);return r===void 0?n:r}var Ir=Or;const H=An(Ir);function It(e,t,n){return Ct(e??{result:[],success:!0,totalCount:0},s=>{for(const i of t)switch(i.type){case"ADD":{s.result.findIndex(a=>H(i.payload.data,n)===H(a,n))===-1&&s.result.push(i.payload.data);break}case"UPDATE":{const o=s.result.findIndex(a=>H(i.payload.data,n)===H(a,n));o!==-1&&(s.result[o]=i.payload.data);break}case"DELETE":{const o=s.result.findIndex(a=>H(i.payload.data,n)===H(a,n));o!==-1&&s.result.splice(o,1);break}}})}function Ft(e,t,n,r,s,i){const o=(i==null?void 0:i.syncWindowMs)??500,a=l.useRef([]),u=l.useRef(null),d=l.useRef(null),c=l.useRef(s);c.current=s;const m=l.useCallback(()=>{const f=a.current;if(a.current=[],u.current=null,d.current=null,!(f.length===0||!r)){e.setQueryData(t,g=>It(g,f,r));for(const g of f)(g.type==="ADD"||g.type==="UPDATE")&&e.setQueryData(n(g.payload.id,g.payload.namespace),{result:g.payload.data})}},[e,t,n,r]),p=l.useCallback(f=>{a.current.push(f),!(u.current!==null||d.current!==null)&&(c.current===1?u.current=setTimeout(m,o):d.current=requestAnimationFrame(m))},[m,o]);return l.useEffect(()=>()=>{u.current!==null&&(clearTimeout(u.current),u.current=null),d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)},[]),p}const Fr=({pluginID:e,connectionID:t,resourceKey:n,idAccessor:r,namespaces:s})=>{const i=D(e),o=_.useQueryClient(),{showSnackbar:a}=L(),u=l.useMemo(()=>s??[],[s]),d=l.useMemo(()=>[i,t,n,u,"list"],[i,t,n,u]),c=l.useCallback((S,y)=>[i,t,n,y,S],[i,t,n]),{mutateAsync:m}=_.useMutation({mutationFn:async S=>E.Create(i,t,n,I.resource.ClientCreateInput.createFrom({input:S.input,namespace:S.namespace??(u.length===1?u[0]:"")})),onSuccess:async S=>{var v;const y=S.result;let w="";(v=y==null?void 0:y.metadata)!=null&&v.name?w=y.metadata.name:y!=null&&y.id?w=y.id:y!=null&&y.name?w=y.name:y!=null&&y.ID?w=y.ID:y!=null&&y.Name&&(w=y.Name);const C=w?`Resource ${w} created`:"Resource created";a(C,"success"),await o.invalidateQueries({queryKey:d})},onError:x(a,"Failed to create resource")}),p=_.useQuery({queryKey:d,queryFn:async()=>E.List(i,t,n,I.resource.ListInput.createFrom({order:[{field:"name",descending:!1}],pagination:{page:1,pageSize:200},namespaces:u})),placeholderData:(S,y)=>S,retry:!1}),[f,g]=l.useState(b.IDLE);l.useEffect(()=>O.EventsOn(`${i}/${t}/watch/STATE`,y=>{y.resourceKey===n&&g(y.state)}),[i,t,n]);const h=Ft(o,d,c,r,f);return l.useEffect(()=>{if(!r)return;E.SubscribeResource(i,t,n);const S=O.EventsOn(`${i}/${t}/${n}/ADD`,C=>h({type:"ADD",payload:C})),y=O.EventsOn(`${i}/${t}/${n}/UPDATE`,C=>h({type:"UPDATE",payload:C})),w=O.EventsOn(`${i}/${t}/${n}/DELETE`,C=>h({type:"DELETE",payload:C}));return()=>{S(),y(),w(),E.UnsubscribeResource(i,t,n)}},[i,t,n,h]),{resources:p,create:m,watchState:f,isSyncing:f===b.SYNCING,isSynced:f===b.SYNCED,watchError:f===b.ERROR}},xr=({pluginID:e})=>{const t=D(e),{showSnackbar:n}=L(),r=_.useMutation({mutationFn:async({opts:o,input:a})=>E.Create(t,o.connectionID,o.resourceKey,I.resource.ClientCreateInput.createFrom({input:a.input,namespace:a.namespace??o.namespace??""})),onSuccess:(o,{opts:a})=>{n(`Resource ${a.resourceID} created`,"success")},onError(o,{opts:a}){G(n,o,`Failed to create resource ${a.resourceID}`)}}),s=_.useMutation({mutationFn:async({opts:o,input:a})=>E.Update(t,o.connectionID,o.resourceKey,I.resource.ClientUpdateInput.createFrom({input:a.input,id:o.resourceID,namespace:o.namespace??""})),onSuccess:(o,{opts:a})=>{n(`Resource ${a.resourceID} updated`,"success")},onError(o,{opts:a}){G(n,o,`Failed to update resource ${a.resourceID}`)}}),i=_.useMutation({mutationFn:async({opts:o,input:a})=>E.Delete(t,o.connectionID,o.resourceKey,I.resource.DeleteInput.createFrom({id:o.resourceID,namespace:o.namespace??"",gracePeriodSeconds:a.gracePeriodSeconds})),onSuccess:(o,{opts:a})=>{n(`Resource ${a.resourceID} deleted`,"success")},onError(o,{opts:a}){G(n,o,`Failed to delete resource ${a.resourceID}`)}});return{create:r.mutateAsync,update:s.mutateAsync,remove:i.mutateAsync}},Ar=({pluginID:e,connectionID:t,resourceKey:n,enabled:r=!0})=>{const s=D(e),i=_.useQuery({queryKey:["RESOURCE_ACTIONS",s,t,n],queryFn:()=>E.GetActions(s,t,n),enabled:r&&!!s&&!!t&&!!n,staleTime:5*60*1e3});return{actions:i.data??[],isLoading:i.isLoading,error:i.error}},Tr=({pluginID:e,connectionID:t,resourceKey:n})=>{const r=D(e),s=_.useQueryClient(),{showSnackbar:i}=L(),o=_.useMutation({mutationFn:async({actionID:a,id:u="",namespace:d="",params:c={}})=>E.ExecuteAction(r,t,n,a,I.resource.ActionInput.createFrom({id:u,namespace:d,params:c})),onSuccess:a=>{a.message&&i(a.message,"success"),s.invalidateQueries({queryKey:["RESOURCES",r,t,n]})},onError:(a,u)=>{G(i,a,`Failed to execute action "${u.actionID}"`)}});return{executeAction:o.mutateAsync,isExecuting:o.isPending,error:o.error}},Nr=({pluginID:e,connectionID:t,enabled:n=!0})=>{const r=D(e),s=_.useQuery({queryKey:["EDITOR_SCHEMAS",r,t],queryFn:()=>E.GetEditorSchemas(r,t),enabled:n&&!!r&&!!t,staleTime:10*60*1e3,retry:1});return{schemas:s.data??[],isLoading:s.isLoading,error:s.error,refetch:s.refetch}},Mr=({pluginID:e,connectionID:t,enabled:n=!0})=>{const r=D(e),s=_.useQueryClient(),i=[r,t,"watch-state"],o=l.useRef([]),a=l.useRef(!1),u=l.useCallback(p=>{s.setQueryData(i,f=>f&&Ct(f,g=>{g.resources[p.resourceKey]=p.state,g.resourceCounts[p.resourceKey]=p.resourceCount;let h=0,S=0;for(const y of Object.values(g.resources))y===b.SYNCED&&h++,(y===b.ERROR||y===b.FAILED)&&S++;g.syncedCount=h,g.errorCount=S}))},[s,r,t]),d=_.useQuery({queryKey:i,queryFn:async()=>{const p=await E.GetWatchState(r,t),f={};let g=0,h=0;for(const[y,w]of Object.entries(p.resources??{}))f[y]=w,w===b.SYNCED&&g++,w===b.ERROR&&h++;const S={};for(const[y,w]of Object.entries(p.resourceCounts??{}))S[y]=w;return{connection:p.connectionId,resources:f,resourceCounts:S,totalResources:Object.keys(f).length,syncedCount:g,errorCount:h}},enabled:n&&!!r&&!!t,refetchInterval:p=>{const f=p.state.data;if(!f||f.totalResources===0)return 3e3;let g=0;for(const h of Object.values(f.resources))(h===b.SYNCED||h===b.ERROR||h===b.STOPPED||h===b.FAILED||h===b.FORBIDDEN||h===b.SKIPPED)&&g++;return g>=f.totalResources?!1:3e3}});l.useEffect(()=>{if(!d.data||a.current)return;a.current=!0;const p=o.current;o.current=[];for(const f of p)u(f)},[d.data,u]),l.useEffect(()=>{if(!n||!r||!t)return;a.current=!1,o.current=[];const p=O.EventsOn(`${r}/${t}/watch/STATE`,f=>{a.current?u(f):o.current.push(f)});return()=>{p(),a.current=!1,o.current=[]}},[r,t,n,u]);const c=d.data;let m=0;if(c!=null&&c.resources)for(const p of Object.values(c.resources))(p===b.SYNCED||p===b.ERROR||p===b.STOPPED||p===b.FAILED||p===b.FORBIDDEN||p===b.SKIPPED)&&m++;return{summary:d,getResourceState:p=>c==null?void 0:c.resources[p],isFullySynced:c?c.totalResources>0&&m===c.totalResources:!1,syncProgress:c&&c.totalResources>0?m/c.totalResources:0,errorCount:(c==null?void 0:c.errorCount)??0}},kr=()=>{const[e,t]=l.useState(new Map),n=l.useRef(new Map),r=l.useRef(new Map),s=l.useCallback(d=>{const c=Me(d),m=pt(n.current,d),p=Pe(m);if(t(f=>{const g=new Map(f);return g.set(c,p),g}),r.current.has(c)&&(clearTimeout(r.current.get(c)),r.current.delete(c)),oe(p)){const f=setTimeout(()=>{t(g=>{const h=new Map(g);return h.delete(c),h}),n.current.delete(c),r.current.delete(c)},5e3);r.current.set(c,f)}},[]);l.useEffect(()=>{const d=O.EventsOn("watch/STATE",s);return()=>{d();for(const c of r.current.values())clearTimeout(c)}},[s]);const i=Array.from(e.values()),o=dt(i),a=i.find(d=>!oe(d))??i[0]??null,u=ft(i);return{syncs:i,hasSyncing:o,primarySync:a,aggregateProgress:u}},xt=()=>{const e=l.useContext(Ne);if(!e)throw new Error("useOperations must be used within an OperationsProvider");return e},Lr=({pluginID:e,connectionID:t,resourceKey:n})=>{const r=D(e),{showSnackbar:s}=L(),{addOperation:i,updateOperation:o}=xt(),a=l.useRef([]);return l.useEffect(()=>()=>{a.current.forEach(d=>d())},[]),{startStreamAction:l.useCallback(async({actionID:d,id:c,namespace:m,label:p,params:f={}})=>{try{const g=await E.StreamAction(r,t,n,d,I.resource.ActionInput.createFrom({id:c,namespace:m,params:f}));i({id:g,label:p,resourceKey:n,resourceName:c,namespace:m,connectionID:t,status:"running",startedAt:Date.now()});const h=`action/stream/${g}`,S=O.EventsOn(h,y=>{var w,C,v,A;switch(y.type){case"progress":{const P=y.data??{};o(g,{message:P.message,progress:P.ready!==void 0&&P.desired!==void 0?{ready:P.ready,desired:P.desired}:void 0});break}case"complete":o(g,{status:"completed",message:((w=y.data)==null?void 0:w.message)??"Completed",completedAt:Date.now()}),s(((C=y.data)==null?void 0:C.message)??p+" completed","success"),O.EventsOff(h);break;case"error":o(g,{status:"error",message:((v=y.data)==null?void 0:v.message)??"Failed",completedAt:Date.now()}),s(((A=y.data)==null?void 0:A.message)??p+" failed","error"),O.EventsOff(h);break}});return a.current.push(()=>{S(),O.EventsOff(h)}),g}catch(g){throw G(s,g,`Failed to start "${d}"`),g}},[r,t,n,i,o,s])}},$r=()=>{const e=l.useContext(Te);if(!e)throw new Error("useSettings must be used within a SettingsProvider");return e},Ur=({to:e,withinContext:t,...n})=>{const{pluginId:r}=le();r||console.error("Link used outside of a plugin context");const s=`/_plugin/${r}${e.startsWith("/")?"":"/"}${e}`;return l.useMemo(()=>R.jsx(Z.Link,{style:{textDecoration:"none",color:"inherit"},...n,to:s}),[n,s])};function qr(){const e=Z.useNavigate(),t=Z.useLocation(),{pluginId:n}=le();n||console.error("usePluginRouter used outside of a plugin context");const r=`/_plugin/${n}`,s=t.pathname.startsWith(r)?t.pathname.slice(r.length)||"/":t.pathname,i=l.useCallback((o,a)=>{const{...u}=a??{};o.startsWith("/")?e(`${r}${o}`,u):e(o,u)},[e,r]);return l.useMemo(()=>({location:t,navigate:i,pluginPath:s}),[t,i,s])}class jr{}class Qr{constructor(){F(this,"_extensions");F(this,"root");F(this,"pages");F(this,"_routes")}get extensions(){return this._extensions||[]}get Routes(){var t;if(!this._routes&&this.root)return[{path:"",index:!0,Component:this.root}];if(!((t=this._routes)!=null&&t.length))throw new Error("cannot use plugin without a root page or router");return this._routes}get Window(){if(!this._routes&&this.root)return R.jsx(this.root,{});const t=Z.createMemoryRouter(this._routes||[]);return R.jsx(Z.RouterProvider,{router:t})}registerExtensionPoints(t){return this._extensions=t||[],this}setRootPage(t){return this.root=t,this}withPage(t,n){return this.pages||(this.pages={}),this.pages[t]?(console.warn("Cannot register page with the same name. Please use a different name."),this):(this.pages[t]=n,this)}withRoutes(t){return this._routes=t,this}}var At=(e=>(e.MISSING_MANIFEST="MISSING_MANIFEST",e.MISSING_PLUGIN="MISSING_PLUGIN",e.MISSING_ENTRYPOINT="MISSING_ENTRYPOINT",e))(At||{});const Gr=e=>{const t=e.split("::");return t.length===1?{group:"core",version:"",kind:t[0]}:{group:t[0]||"core",version:t[1]||"",kind:t[2]||t[0]}},zr=e=>!e||e==="core"?"Core":e.charAt(0).toUpperCase()+e.slice(1);exports.ALL_SESSIONS_KEY=Q;exports.BottomDrawerContext=nt;exports.ConfirmationModalContext=st;exports.ErrorTypes=k;exports.ExtensionPointRegistry=Ht;exports.ExtensionPointStore=ct;exports.ExtensionProvider=Bt;exports.Link=Ur;exports.OperationsContext=Ne;exports.OperationsProvider=jt;exports.PluginContext=ue;exports.PluginContextProvider=Lt;exports.PluginErrorCode=At;exports.PluginWindow=Qr;exports.PluginWindowRootProps=jr;exports.RightDrawerContext=rt;exports.SettingsContext=Te;exports.SettingsProvider=Ut;exports.SnackbarProvider=Jt;exports.SyncPolicy=en;exports.WatchState=b;exports.actionToSnackbar=Ze;exports.applyBatch=It;exports.connectionListQueryKey=lt;exports.createErrorHandler=x;exports.defaultState=tt;exports.formatGroup=zr;exports.isCancelledError=Ae;exports.parseAppError=$;exports.parseResourceKey=Gr;exports.showAppError=G;exports.useActiveSyncs=kr;exports.useBottomDrawer=ke;exports.useConfirmationModal=yn;exports.useConnection=Vt;exports.useConnectionNamespaces=Zt;exports.useConnectionStatus=tn;exports.useConnections=Xt;exports.useEditorSchemas=Nr;exports.useEventBatcher=Ft;exports.useExec=an;exports.useExecuteAction=Tr;exports.useExtensionPoint=Wt;exports.useExtensionRegistry=at;exports.useLogs=cn;exports.useMetricProviders=un;exports.useMetricProvidersForResource=yt;exports.useMetricStream=dn;exports.useOperations=xt;exports.usePluginContext=le;exports.usePluginData=sn;exports.usePluginRouter=qr;exports.usePluginSettings=$t;exports.usePortForwardSessions=fn;exports.useResolvedPluginId=D;exports.useResource=hn;exports.useResourceActions=Ar;exports.useResourceAreaComponent=gn;exports.useResourceGroups=mn;exports.useResourceMetrics=ln;exports.useResourceMutations=xr;exports.useResourcePortForwarder=pn;exports.useResourceSearch=_n;exports.useResourceType=En;exports.useResourceTypes=Sn;exports.useResources=Fr;exports.useRightDrawer=on;exports.useSettings=$r;exports.useSnackbar=L;exports.useStreamAction=Lr;exports.useWatchState=Mr;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var I = (e, t, n) => Gt(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as R, jsxs as ce } from "react/jsx-runtime";
5
5
  import E, { useContext as ne, createContext as he, useState as q, useCallback as M, useSyncExternalStore as jt, useRef as U, useEffect as G, useMemo as zt } from "react";
6
6
  import { Link as Kt, useNavigate as Qt, useLocation as Wt, createMemoryRouter as Bt, RouterProvider as Ht } from "react-router-dom";
7
- import { P as Yt, G as Jt, V as Vt, S as Xt, h as it, U as Zt, R as en, i as tn, j as at, k as nn, L as rn, l as sn, m as on, n as an, o as cn, q as un, r as ln, s as dn, t as fn, Q as pn, u as yn, v as Be, w as hn, x as ct, F as gn, y as mn, z as ut, D as lt, A as _n, B as Sn, E as En, H as dt, I as wn, J as Cn, K as ft, M as bn, N as vn, O as Dn, T as Pn, W as In, X as Rn, Y as Fn } from "./Client-D4njqvNH.js";
7
+ import { P as Yt, G as Jt, V as Vt, S as Xt, h as it, U as Zt, R as en, i as tn, j as at, k as nn, L as rn, l as sn, m as on, n as an, o as cn, q as un, r as ln, s as dn, t as fn, Q as pn, u as yn, v as Be, w as hn, x as ct, F as gn, y as mn, z as ut, D as lt, A as _n, B as Sn, E as En, H as dt, I as wn, J as Cn, K as ft, M as bn, N as vn, O as Dn, T as Pn, W as In, X as Rn, Y as Fn } from "./Client-07zrOerN.js";
8
8
  import { config as On, resource as N, exec as Tn, logs as He, networker as Ye } from "./models.js";
9
9
  import { useQueryClient as j, useMutation as v, useQuery as P, keepPreviousData as pt, useQueries as An } from "@tanstack/react-query";
10
10
  import { useNotificationStack as Nn } from "@omniviewdev/ui/feedback";
@@ -924,7 +924,7 @@ export declare namespace trivy {
924
924
  filePatterns: string[];
925
925
  skipDirs: string[];
926
926
  skipFiles: string[];
927
- scanners: Scanner[];
927
+ scanners: string[];
928
928
  static createFrom(source?: any): ScanOptions;
929
929
  constructor(source?: any);
930
930
  }
@@ -31,6 +31,8 @@ export function ListSettings():Promise<settings.Store>;
31
31
 
32
32
  export function LoadSettings():Promise<void>;
33
33
 
34
+ export function RegisterChangeHandler(arg1:string,arg2:settings.CategoryChangeFunc):Promise<void>;
35
+
34
36
  export function RegisterSetting(arg1:string,arg2:settings.Setting):Promise<void>;
35
37
 
36
38
  export function RegisterSettings(arg1:string,arg2:Array<settings.Setting>):Promise<void>;
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.0.0-nightly.20260311",
5
+ "version": "0.0.0-nightly.20260313",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1 +0,0 @@
1
- "use strict";function Y(e,n){return window.go.settings.Client.GetSetting(e,n)}function Z(){return window.go.settings.Client.ListPlugins()}function ee(e){return window.go.settings.Client.ListSettings(e)}function u(e){return window.go.settings.Client.PluginValues(e)}function ne(e,n,t){return window.go.settings.Client.SetSetting(e,n,t)}function te(e,n){return window.go.settings.Client.SetSettings(e,n)}function oe(){return window.go.settings.Client.Values()}const ie=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:Y,ListPlugins:Z,ListSettings:ee,PluginValues:u,SetSetting:ne,SetSettings:te,Values:oe},Symbol.toStringTag,{value:"Module"}));function re(e){return window.go.plugin.pluginManager.GetPlugin(e)}function ue(e){return window.go.plugin.pluginManager.GetPluginDownloadStats(e)}function s(e){return window.go.plugin.pluginManager.GetPluginMeta(e)}function se(e){return window.go.plugin.pluginManager.GetPluginReadme(e)}function ge(e){return window.go.plugin.pluginManager.GetPluginReleaseHistory(e)}function le(e,n){return window.go.plugin.pluginManager.GetPluginReviews(e,n)}function ce(e){return window.go.plugin.pluginManager.GetPluginVersions(e)}function we(e){return window.go.plugin.pluginManager.HandlePluginCrash(e)}function ae(e){return window.go.plugin.pluginManager.Initialize(e)}function de(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function Ce(){return window.go.plugin.pluginManager.InstallInDevMode()}function Se(e){return window.go.plugin.pluginManager.InstallPluginFromPath(e)}function fe(e,n){return window.go.plugin.pluginManager.InstallPluginVersion(e,n)}function pe(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function Ge(){return window.go.plugin.pluginManager.ListPluginMetas()}function Pe(){return window.go.plugin.pluginManager.ListPlugins()}function Re(e,n){return window.go.plugin.pluginManager.LoadPlugin(e,n)}function ve(e){return window.go.plugin.pluginManager.ReloadPlugin(e)}function be(e){return window.go.plugin.pluginManager.Run(e)}function me(e,n,t){return window.go.plugin.pluginManager.SearchPlugins(e,n,t)}function Me(e){return window.go.plugin.pluginManager.SetDevServerChecker(e)}function Le(e){return window.go.plugin.pluginManager.SetDevServerManager(e)}function he(e){return window.go.plugin.pluginManager.SetPluginLogManager(e)}function Fe(){return window.go.plugin.pluginManager.Shutdown()}function ye(e){return window.go.plugin.pluginManager.UninstallPlugin(e)}function _e(e){return window.go.plugin.pluginManager.UnloadPlugin(e)}const Ae=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:re,GetPluginDownloadStats:ue,GetPluginMeta:s,GetPluginReadme:se,GetPluginReleaseHistory:ge,GetPluginReviews:le,GetPluginVersions:ce,HandlePluginCrash:we,Initialize:ae,InstallFromPathPrompt:de,InstallInDevMode:Ce,InstallPluginFromPath:Se,InstallPluginVersion:fe,ListAvailablePlugins:pe,ListPluginMetas:Ge,ListPlugins:Pe,LoadPlugin:Re,ReloadPlugin:ve,Run:be,SearchPlugins:me,SetDevServerChecker:Me,SetDevServerManager:Le,SetPluginLogManager:he,Shutdown:Fe,UninstallPlugin:ye,UnloadPlugin:_e},Symbol.toStringTag,{value:"Module"}));function $e(e){return window.go.settings.provider.GetBool(e)}function Ie(){return window.go.settings.provider.GetCategories()}function Te(e){return window.go.settings.provider.GetCategory(e)}function Oe(e){return window.go.settings.provider.GetCategoryValues(e)}function We(e){return window.go.settings.provider.GetFloat(e)}function je(e){return window.go.settings.provider.GetFloatSlice(e)}function Ue(e){return window.go.settings.provider.GetInt(e)}function Ve(e){return window.go.settings.provider.GetIntSlice(e)}function xe(e){return window.go.settings.provider.GetSetting(e)}function ze(e){return window.go.settings.provider.GetSettingValue(e)}function He(e){return window.go.settings.provider.GetString(e)}function De(e){return window.go.settings.provider.GetStringSlice(e)}function ke(e){return window.go.settings.provider.HasSetting(e)}function Ee(e,n){return window.go.settings.provider.Initialize(e,n)}function Qe(){return window.go.settings.provider.ListSettings()}function Ne(){return window.go.settings.provider.LoadSettings()}function Be(e,n){return window.go.settings.provider.RegisterSetting(e,n)}function qe(e,n){return window.go.settings.provider.RegisterSettings(e,n)}function Je(e){return window.go.settings.provider.ResetSetting(e)}function Ke(){return window.go.settings.provider.SaveSettings()}function Xe(e,n){return window.go.settings.provider.SetSetting(e,n)}function Ye(e){return window.go.settings.provider.SetSettings(e)}function g(){return window.go.settings.provider.Values()}const Ze=Object.freeze(Object.defineProperty({__proto__:null,GetBool:$e,GetCategories:Ie,GetCategory:Te,GetCategoryValues:Oe,GetFloat:We,GetFloatSlice:je,GetInt:Ue,GetIntSlice:Ve,GetSetting:xe,GetSettingValue:ze,GetString:He,GetStringSlice:De,HasSetting:ke,Initialize:Ee,ListSettings:Qe,LoadSettings:Ne,RegisterSetting:Be,RegisterSettings:qe,ResetSetting:Je,SaveSettings:Ke,SetSetting:Xe,SetSettings:Ye,Values:g},Symbol.toStringTag,{value:"Module"}));function en(e,n){return window.go.resource.Client.AddConnection(e,n)}function nn(e,n){return window.go.resource.Client.CheckConnection(e,n)}function l(e,n,t,o){return window.go.resource.Client.Create(e,n,t,o)}function c(e,n,t,o){return window.go.resource.Client.Delete(e,n,t,o)}function tn(e,n,t){return window.go.resource.Client.EnsureResourceWatch(e,n,t)}function w(e,n,t,o,i){return window.go.resource.Client.ExecuteAction(e,n,t,o,i)}function on(e,n,t,o){return window.go.resource.Client.Find(e,n,t,o)}function a(e,n,t,o){return window.go.resource.Client.Get(e,n,t,o)}function d(e,n,t){return window.go.resource.Client.GetActions(e,n,t)}function C(){return window.go.resource.Client.GetAllConnectionStates()}function S(e,n){return window.go.resource.Client.GetConnection(e,n)}function f(e,n){return window.go.resource.Client.GetConnectionNamespaces(e,n)}function p(e,n){return window.go.resource.Client.GetEditorSchemas(e,n)}function rn(e,n,t){return window.go.resource.Client.GetFilterFields(e,n,t)}function un(e,n,t,o){return window.go.resource.Client.GetHealth(e,n,t,o)}function sn(e,n){return window.go.resource.Client.GetRelationships(e,n)}function gn(e,n){return window.go.resource.Client.GetResourceCapabilities(e,n)}function ln(e,n){return window.go.resource.Client.GetResourceDefinition(e,n)}function cn(e,n,t,o,i,r){return window.go.resource.Client.GetResourceEvents(e,n,t,o,i,r)}function wn(e,n){return window.go.resource.Client.GetResourceGroup(e,n)}function G(e,n){return window.go.resource.Client.GetResourceGroups(e,n)}function an(e,n,t){return window.go.resource.Client.GetResourceSchema(e,n,t)}function P(e,n){return window.go.resource.Client.GetResourceType(e,n)}function R(e,n){return window.go.resource.Client.GetResourceTypes(e,n)}function v(e,n){return window.go.resource.Client.GetWatchState(e,n)}function dn(e,n){return window.go.resource.Client.HasResourceType(e,n)}function Cn(e,n,t){return window.go.resource.Client.IsResourceWatchRunning(e,n,t)}function b(e,n,t,o){return window.go.resource.Client.List(e,n,t,o)}function m(){return window.go.resource.Client.ListAllConnections()}function M(e){return window.go.resource.Client.ListConnections(e)}function Sn(){return window.go.resource.Client.ListPlugins()}function fn(e){return window.go.resource.Client.LoadConnections(e)}function L(e,n){return window.go.resource.Client.RemoveConnection(e,n)}function pn(e,n,t,o,i){return window.go.resource.Client.ResolveRelationships(e,n,t,o,i)}function Gn(e,n,t){return window.go.resource.Client.RestartResourceWatch(e,n,t)}function h(e,n){return window.go.resource.Client.StartConnection(e,n)}function F(e,n){return window.go.resource.Client.StartConnectionWatch(e,n)}function y(e,n){return window.go.resource.Client.StopConnection(e,n)}function _(e,n){return window.go.resource.Client.StopConnectionWatch(e,n)}function Pn(e,n,t){return window.go.resource.Client.StopResourceWatch(e,n,t)}function A(e,n,t,o,i){return window.go.resource.Client.StreamAction(e,n,t,o,i)}function $(e,n,t){return window.go.resource.Client.SubscribeResource(e,n,t)}function I(e,n,t){return window.go.resource.Client.UnsubscribeResource(e,n,t)}function T(e,n,t,o){return window.go.resource.Client.Update(e,n,t,o)}function O(e,n){return window.go.resource.Client.UpdateConnection(e,n)}const Rn=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:en,CheckConnection:nn,Create:l,Delete:c,EnsureResourceWatch:tn,ExecuteAction:w,Find:on,Get:a,GetActions:d,GetAllConnectionStates:C,GetConnection:S,GetConnectionNamespaces:f,GetEditorSchemas:p,GetFilterFields:rn,GetHealth:un,GetRelationships:sn,GetResourceCapabilities:gn,GetResourceDefinition:ln,GetResourceEvents:cn,GetResourceGroup:wn,GetResourceGroups:G,GetResourceSchema:an,GetResourceType:P,GetResourceTypes:R,GetWatchState:v,HasResourceType:dn,IsResourceWatchRunning:Cn,List:b,ListAllConnections:m,ListConnections:M,ListPlugins:Sn,LoadConnections:fn,RemoveConnection:L,ResolveRelationships:pn,RestartResourceWatch:Gn,StartConnection:h,StartConnectionWatch:F,StopConnection:y,StopConnectionWatch:_,StopResourceWatch:Pn,StreamAction:A,SubscribeResource:$,UnsubscribeResource:I,Update:T,UpdateConnection:O},Symbol.toStringTag,{value:"Module"}));function vn(e){return window.go.exec.Client.AttachSession(e)}function bn(e){return window.go.exec.Client.CloseSession(e)}function W(e,n,t){return window.go.exec.Client.CreateSession(e,n,t)}function mn(e){return window.go.exec.Client.CreateTerminal(e)}function Mn(e){return window.go.exec.Client.DetachSession(e)}function Ln(e,n){return window.go.exec.Client.GetHandler(e,n)}function hn(){return window.go.exec.Client.GetHandlers()}function Fn(e){return window.go.exec.Client.GetPluginHandlers(e)}function yn(e){return window.go.exec.Client.GetSession(e)}function _n(){return window.go.exec.Client.ListPlugins()}function An(){return window.go.exec.Client.ListSessions()}function $n(e,n,t){return window.go.exec.Client.ResizeSession(e,n,t)}function In(e,n){return window.go.exec.Client.WriteSession(e,n)}const Tn=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:vn,CloseSession:bn,CreateSession:W,CreateTerminal:mn,DetachSession:Mn,GetHandler:Ln,GetHandlers:hn,GetPluginHandlers:Fn,GetSession:yn,ListPlugins:_n,ListSessions:An,ResizeSession:$n,WriteSession:In},Symbol.toStringTag,{value:"Module"}));function j(e){return window.go.logs.Client.CloseSession(e)}function U(e,n,t){return window.go.logs.Client.CreateSession(e,n,t)}function On(e){return window.go.logs.Client.GetSession(e)}function Wn(e){return window.go.logs.Client.GetSupportedResources(e)}function jn(){return window.go.logs.Client.ListSessions()}function Un(e){return window.go.logs.Client.PauseSession(e)}function Vn(e){return window.go.logs.Client.ResumeSession(e)}function xn(e,n){return window.go.logs.Client.UpdateSessionOptions(e,n)}const zn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:j,CreateSession:U,GetSession:On,GetSupportedResources:Wn,ListSessions:jn,PauseSession:Un,ResumeSession:Vn,UpdateSessionOptions:xn},Symbol.toStringTag,{value:"Module"}));function V(){return window.go.metric.Client.GetProviders()}function x(e){return window.go.metric.Client.GetProvidersForResource(e)}function Hn(e,n,t){return window.go.metric.Client.Query(e,n,t)}function z(e,n,t,o,i,r,q,J,K,X){return window.go.metric.Client.QueryAll(e,n,t,o,i,r,q,J,K,X)}function H(e,n,t){return window.go.metric.Client.Subscribe(e,n,t)}function D(e){return window.go.metric.Client.Unsubscribe(e)}const Dn=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:V,GetProvidersForResource:x,Query:Hn,QueryAll:z,Subscribe:H,Unsubscribe:D},Symbol.toStringTag,{value:"Module"}));function k(e){return window.go.networker.Client.ClosePortForwardSession(e)}function E(e,n,t){return window.go.networker.Client.FindPortForwardSessions(e,n,t)}function kn(e){return window.go.networker.Client.GetPortForwardSession(e)}function En(e){return window.go.networker.Client.GetSupportedPortForwardTargets(e)}function Q(){return window.go.networker.Client.ListAllPortForwardSessions()}function Qn(e,n){return window.go.networker.Client.ListPortForwardSessions(e,n)}function N(e,n,t){return window.go.networker.Client.StartResourcePortForwardingSession(e,n,t)}const Nn=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:k,FindPortForwardSessions:E,GetPortForwardSession:kn,GetSupportedPortForwardTargets:En,ListAllPortForwardSessions:Q,ListPortForwardSessions:Qn,StartResourcePortForwardingSession:N},Symbol.toStringTag,{value:"Module"}));function Bn(e){return window.go.ui.Client.GetPluginComponents(e)}function B(e){return window.go.ui.Client.GetResourceAreaComponent(e)}function qn(e){return window.go.ui.Client.GetResourceComponents(e)}const Jn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Bn,GetResourceAreaComponent:B,GetResourceComponents:qn},Symbol.toStringTag,{value:"Module"}));exports.Client=Tn;exports.Client$1=Nn;exports.Client$2=Rn;exports.Client$3=ie;exports.Client$4=Jn;exports.Client$5=zn;exports.Client$6=Dn;exports.ClosePortForwardSession=k;exports.CloseSession=j;exports.Create=l;exports.CreateSession=W;exports.CreateSession$1=U;exports.Delete=c;exports.ExecuteAction=w;exports.FindPortForwardSessions=E;exports.Get=a;exports.GetActions=d;exports.GetAllConnectionStates=C;exports.GetConnection=S;exports.GetConnectionNamespaces=f;exports.GetEditorSchemas=p;exports.GetPluginMeta=s;exports.GetProviders=V;exports.GetProvidersForResource=x;exports.GetResourceAreaComponent=B;exports.GetResourceGroups=G;exports.GetResourceType=P;exports.GetResourceTypes=R;exports.GetWatchState=v;exports.List=b;exports.ListAllConnections=m;exports.ListAllPortForwardSessions=Q;exports.ListConnections=M;exports.PluginValues=u;exports.QueryAll=z;exports.RemoveConnection=L;exports.StartConnection=h;exports.StartConnectionWatch=F;exports.StartResourcePortForwardingSession=N;exports.StopConnection=y;exports.StopConnectionWatch=_;exports.StreamAction=A;exports.Subscribe=H;exports.SubscribeResource=$;exports.Unsubscribe=D;exports.UnsubscribeResource=I;exports.Update=T;exports.UpdateConnection=O;exports.Values=g;exports.pluginManager=Ae;exports.provider=Ze;