@omniviewdev/runtime 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +15 -14
  3. package/dist/api.js +110 -125
  4. package/dist/bindings/encoding/json/index.d.ts +1 -0
  5. package/dist/bindings/encoding/json/models.d.ts +6 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +18 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/diagnosticsclient.d.ts +51 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/index.d.ts +2 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/index.d.ts +2 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/servicewrapper.d.ts +5 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +3 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +132 -0
  13. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +12 -0
  14. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/index.d.ts +2 -0
  15. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +22 -0
  16. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +3 -0
  17. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/index.d.ts +1 -0
  18. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/models.d.ts +29 -0
  19. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/index.d.ts +2 -0
  20. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +11 -0
  21. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +3 -0
  22. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +39 -0
  23. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +16 -0
  24. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +72 -0
  25. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/index.d.ts +2 -0
  26. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +11 -0
  27. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/index.d.ts +3 -0
  28. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/models.d.ts +24 -0
  29. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/servicewrapper.d.ts +7 -0
  30. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/index.d.ts +1 -0
  31. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +94 -0
  32. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -0
  33. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +53 -0
  34. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +14 -0
  35. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +4 -0
  36. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +61 -0
  37. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +92 -0
  38. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +24 -0
  39. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/index.d.ts +2 -0
  40. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +18 -0
  41. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -0
  42. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
  43. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/index.d.ts +3 -0
  44. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/models.d.ts +55 -0
  45. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/servicewrapper.d.ts +7 -0
  46. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/client.d.ts +6 -0
  47. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/index.d.ts +3 -0
  48. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/models.d.ts +10 -0
  49. package/dist/bindings/github.com/omniviewdev/omniview/index.d.ts +3 -0
  50. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +2 -0
  51. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +48 -0
  52. package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/index.d.ts +2 -0
  53. package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/telemetrybinding.d.ts +7 -0
  54. package/dist/bindings/github.com/omniviewdev/omniview/models.d.ts +38 -0
  55. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -0
  56. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +101 -0
  57. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -0
  58. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +199 -0
  59. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/index.d.ts +1 -0
  60. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +79 -0
  61. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -0
  62. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +133 -0
  63. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -0
  64. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +207 -0
  65. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +2 -0
  66. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +96 -0
  67. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +2 -0
  68. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +1199 -0
  69. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/index.d.ts +2 -0
  70. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +169 -0
  71. package/dist/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.d.ts +1 -0
  72. package/dist/bindings/time/index.d.ts +1 -0
  73. package/dist/bindings/time/models.d.ts +33 -0
  74. package/dist/calls-BmUnjINC.js +677 -0
  75. package/dist/calls-DZctVyoQ.cjs +1 -0
  76. package/dist/compat/legacyEnum.d.ts +10 -0
  77. package/dist/compat/resource.d.ts +4 -0
  78. package/dist/compat/types.d.ts +4 -0
  79. package/dist/context/plugins/PluginContext.d.ts +2 -2
  80. package/dist/events-BTiuwc-0.cjs +1 -0
  81. package/dist/events-DDTGFACO.js +371 -0
  82. package/dist/hooks/connection/useConnection.d.ts +5 -5
  83. package/dist/hooks/connection/useConnectionStatus.d.ts +7 -0
  84. package/dist/hooks/connection/useConnections.d.ts +4 -4
  85. package/dist/hooks/exec/useExecSession.d.ts +2 -2
  86. package/dist/hooks/logs/useLogSession.d.ts +1 -2
  87. package/dist/hooks/metric/useMetricProviders.d.ts +3 -3
  88. package/dist/hooks/metric/useMetricStream.d.ts +2 -2
  89. package/dist/hooks/metric/useResourceMetrics.d.ts +4 -3
  90. package/dist/hooks/networker/types.d.ts +3 -3
  91. package/dist/hooks/networker/usePortForwardSessions.d.ts +4 -4
  92. package/dist/hooks/networker/useResourcePortForwarder.d.ts +3 -4
  93. package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
  94. package/dist/hooks/resource/useEventBatcher.d.ts +3 -0
  95. package/dist/hooks/resource/useResource.d.ts +3 -4
  96. package/dist/hooks/resource/useResourceActions.d.ts +2 -3
  97. package/dist/hooks/resource/useResourceAreaComponent.d.ts +3 -3
  98. package/dist/hooks/resource/useResourceGroups.d.ts +6 -6
  99. package/dist/hooks/resource/useResourceMutations.d.ts +3 -4
  100. package/dist/hooks/resource/useResourceType.d.ts +1 -1
  101. package/dist/hooks/resource/useResourceTypes.d.ts +6 -6
  102. package/dist/hooks/resource/useResources.d.ts +3 -4
  103. package/dist/index-D2mKAO8s.js +1069 -0
  104. package/dist/index-D_aIcqH0.cjs +6 -0
  105. package/dist/index.cjs +2 -2
  106. package/dist/index.js +1192 -1600
  107. package/dist/legacyEnum-DORXlU_y.js +13 -0
  108. package/dist/legacyEnum-DkV5yRdA.cjs +1 -0
  109. package/dist/models-B8OVRhdT.js +159 -0
  110. package/dist/models-BVKsY9u1.js +2285 -0
  111. package/dist/models-CExSuVU2.cjs +1 -0
  112. package/dist/models-DdAWPDgz.cjs +1 -0
  113. package/dist/models.cjs +1 -1
  114. package/dist/models.d.ts +27 -1
  115. package/dist/models.js +259 -2244
  116. package/dist/runtime.cjs +1 -1
  117. package/dist/runtime.d.ts +1 -1
  118. package/dist/runtime.js +198 -205
  119. package/dist/servicewrapper-BH5omp-N.js +708 -0
  120. package/dist/servicewrapper-dDhyC68C.cjs +1 -0
  121. package/dist/types/watch.d.ts +4 -5
  122. package/package.json +17 -13
  123. package/LICENSE +0 -661
  124. package/dist/Client-07zrOerN.js +0 -636
  125. package/dist/Client-CLvQWnuz.cjs +0 -1
  126. package/dist/wailsjs/go/data/Client.d.ts +0 -10
  127. package/dist/wailsjs/go/devserver/DevServerManager.d.ts +0 -24
  128. package/dist/wailsjs/go/diagnostics/DiagnosticsClient.d.ts +0 -18
  129. package/dist/wailsjs/go/exec/Client.d.ts +0 -26
  130. package/dist/wailsjs/go/logs/Client.d.ts +0 -16
  131. package/dist/wailsjs/go/main/App.d.ts +0 -8
  132. package/dist/wailsjs/go/metric/Client.d.ts +0 -12
  133. package/dist/wailsjs/go/models.d.ts +0 -1060
  134. package/dist/wailsjs/go/networker/Client.d.ts +0 -14
  135. package/dist/wailsjs/go/plugin/pluginManager.d.ts +0 -52
  136. package/dist/wailsjs/go/pluginlog/Manager.d.ts +0 -18
  137. package/dist/wailsjs/go/resource/Client.d.ts +0 -90
  138. package/dist/wailsjs/go/settings/Client.d.ts +0 -14
  139. package/dist/wailsjs/go/settings/provider.d.ts +0 -48
  140. package/dist/wailsjs/go/ui/Client.d.ts +0 -6
  141. package/dist/wailsjs/go/utils/Client.d.ts +0 -2
  142. package/dist/wailsjs/runtime/runtime.d.ts +0 -249
@@ -0,0 +1,13 @@
1
+ function o(t, a) {
2
+ const s = { ...t };
3
+ for (const [e, n] of Object.entries(t)) {
4
+ if (e === "$zero" || !e.startsWith(a))
5
+ continue;
6
+ const c = e.slice(a.length).replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase();
7
+ c && (s[c] = n);
8
+ }
9
+ return s;
10
+ }
11
+ export {
12
+ o as w
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";function n(t,s){const a={...t};for(const[e,i]of Object.entries(t)){if(e==="$zero"||!e.startsWith(s))continue;const c=e.slice(s.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();c&&(a[c]=i)}return a}exports.withLegacyNames=n;
@@ -0,0 +1,159 @@
1
+ var m = Object.defineProperty;
2
+ var h = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var i = (e, t, s) => h(e, typeof t != "symbol" ? t + "" : t, s);
4
+ import { A as c } from "./index-D2mKAO8s.js";
5
+ import { b0 as u } from "./models-BVKsY9u1.js";
6
+ class r {
7
+ /** Creates a new BuildError instance. */
8
+ constructor(t = {}) {
9
+ i(this, "file");
10
+ i(this, "line");
11
+ i(this, "column");
12
+ i(this, "message");
13
+ "file" in t || (this.file = ""), "line" in t || (this.line = 0), "column" in t || (this.column = 0), "message" in t || (this.message = ""), Object.assign(this, t);
14
+ }
15
+ /**
16
+ * Creates a new BuildError instance from a string or object.
17
+ */
18
+ static createFrom(t = {}) {
19
+ let s = typeof t == "string" ? JSON.parse(t) : t;
20
+ return new r(s);
21
+ }
22
+ }
23
+ class a {
24
+ /** Creates a new DevInfoFile instance. */
25
+ constructor(t = {}) {
26
+ i(this, "pid");
27
+ i(this, "protocol");
28
+ i(this, "protocolVersion");
29
+ i(this, "addr");
30
+ i(this, "vitePort");
31
+ i(this, "pluginId");
32
+ i(this, "version");
33
+ i(this, "startedAt");
34
+ "pid" in t || (this.pid = 0), "protocol" in t || (this.protocol = ""), "protocolVersion" in t || (this.protocolVersion = 0), "addr" in t || (this.addr = ""), Object.assign(this, t);
35
+ }
36
+ /**
37
+ * Creates a new DevInfoFile instance from a string or object.
38
+ */
39
+ static createFrom(t = {}) {
40
+ let s = typeof t == "string" ? JSON.parse(t) : t;
41
+ return new a(s);
42
+ }
43
+ }
44
+ var g = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevProcessStatusIdle = "idle", e.DevProcessStatusStarting = "starting", e.DevProcessStatusBuilding = "building", e.DevProcessStatusRunning = "running", e.DevProcessStatusReady = "ready", e.DevProcessStatusError = "error", e.DevProcessStatusStopped = "stopped", e))(g || {});
45
+ class l {
46
+ /** Creates a new DevServerErrorPayload instance. */
47
+ constructor(t = {}) {
48
+ i(this, "pluginID");
49
+ i(this, "errors");
50
+ "pluginID" in t || (this.pluginID = ""), "errors" in t || (this.errors = []), Object.assign(this, t);
51
+ }
52
+ /**
53
+ * Creates a new DevServerErrorPayload instance from a string or object.
54
+ */
55
+ static createFrom(t = {}) {
56
+ const s = y;
57
+ let n = typeof t == "string" ? JSON.parse(t) : t;
58
+ return "errors" in n && (n.errors = s(n.errors)), new l(n);
59
+ }
60
+ }
61
+ var d = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevServerModeIdle = "idle", e.DevServerModeManaged = "managed", e.DevServerModeExternal = "external", e))(d || {});
62
+ class o {
63
+ /** Creates a new DevServerState instance. */
64
+ constructor(t = {}) {
65
+ i(this, "pluginID");
66
+ i(this, "mode");
67
+ i(this, "devPath");
68
+ i(this, "vitePort");
69
+ i(this, "viteURL");
70
+ i(this, "viteStatus");
71
+ i(this, "goStatus");
72
+ i(this, "lastBuildDuration");
73
+ i(this, "lastBuildTime");
74
+ i(this, "lastError");
75
+ i(this, "grpcConnected");
76
+ "pluginID" in t || (this.pluginID = ""), "mode" in t || (this.mode = ""), "devPath" in t || (this.devPath = ""), "vitePort" in t || (this.vitePort = 0), "viteURL" in t || (this.viteURL = ""), "viteStatus" in t || (this.viteStatus = ""), "goStatus" in t || (this.goStatus = ""), "lastBuildDuration" in t || (this.lastBuildDuration = u.$zero), "lastBuildTime" in t || (this.lastBuildTime = ""), "lastError" in t || (this.lastError = ""), "grpcConnected" in t || (this.grpcConnected = !1), Object.assign(this, t);
77
+ }
78
+ /**
79
+ * Creates a new DevServerState instance from a string or object.
80
+ */
81
+ static createFrom(t = {}) {
82
+ let s = typeof t == "string" ? JSON.parse(t) : t;
83
+ return new o(s);
84
+ }
85
+ }
86
+ let v = class f {
87
+ /** Creates a new LogEntry instance. */
88
+ constructor(t = {}) {
89
+ i(this, "timestamp");
90
+ /**
91
+ * "vite" | "go-build" | "go-watch" | "manager"
92
+ */
93
+ i(this, "source");
94
+ /**
95
+ * "info" | "warn" | "error" | "debug"
96
+ */
97
+ i(this, "level");
98
+ i(this, "message");
99
+ i(this, "pluginID");
100
+ "timestamp" in t || (this.timestamp = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), "pluginID" in t || (this.pluginID = ""), Object.assign(this, t);
101
+ }
102
+ /**
103
+ * Creates a new LogEntry instance from a string or object.
104
+ */
105
+ static createFrom(t = {}) {
106
+ let s = typeof t == "string" ? JSON.parse(t) : t;
107
+ return new f(s);
108
+ }
109
+ };
110
+ const S = r.createFrom, y = c(S), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
111
+ __proto__: null,
112
+ BuildError: r,
113
+ DevInfoFile: a,
114
+ DevProcessStatus: g,
115
+ DevServerErrorPayload: l,
116
+ DevServerMode: d,
117
+ DevServerState: o,
118
+ LogEntry: v
119
+ }, Symbol.toStringTag, { value: "Module" }));
120
+ class p {
121
+ /** Creates a new LogEntry instance. */
122
+ constructor(t = {}) {
123
+ i(this, "timestamp");
124
+ i(this, "pluginID");
125
+ /**
126
+ * "plugin" (from hclog) — extensible
127
+ */
128
+ i(this, "source");
129
+ /**
130
+ * "trace" | "debug" | "info" | "warn" | "error"
131
+ */
132
+ i(this, "level");
133
+ i(this, "message");
134
+ "timestamp" in t || (this.timestamp = ""), "pluginID" in t || (this.pluginID = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), Object.assign(this, t);
135
+ }
136
+ /**
137
+ * Creates a new LogEntry instance from a string or object.
138
+ */
139
+ static createFrom(t = {}) {
140
+ let s = typeof t == "string" ? JSON.parse(t) : t;
141
+ return new p(s);
142
+ }
143
+ }
144
+ const j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
145
+ __proto__: null,
146
+ LogEntry: p
147
+ }, Symbol.toStringTag, { value: "Module" }));
148
+ export {
149
+ r as B,
150
+ o as D,
151
+ v as L,
152
+ a,
153
+ p as b,
154
+ g as c,
155
+ l as d,
156
+ d as e,
157
+ j as f,
158
+ I as m
159
+ };