@omniviewdev/runtime 0.4.1 → 0.5.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 (37) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +246 -113
  3. package/dist/bindings/events/index.d.ts +140 -0
  4. package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +5 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +1 -1
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +24 -26
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +0 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +1 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +36 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +6 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/index.d.ts +1 -0
  13. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/models.d.ts +101 -0
  14. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -1
  15. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +31 -0
  16. package/dist/errors/types.d.ts +2 -0
  17. package/dist/graphservice-Cb7rr7SB.cjs +1 -0
  18. package/dist/graphservice-DloOtC_7.js +739 -0
  19. package/dist/hooks/resource/index.d.ts +2 -0
  20. package/dist/hooks/resource/useDependencyTree.d.ts +2 -2
  21. package/dist/hooks/resource/useRefetchOnGraphChange.d.ts +11 -0
  22. package/dist/hooks/resource/useRelatedResources.d.ts +2 -3
  23. package/dist/hooks/resource/useResourceGraph.d.ts +46 -0
  24. package/dist/index.cjs +2 -2
  25. package/dist/index.js +874 -797
  26. package/dist/models-8-4Ny_ft.cjs +1 -0
  27. package/dist/{models-BoBl5Kgj.js → models-BlTzZkmp.js} +46 -60
  28. package/dist/models-CGYstu7u.cjs +1 -0
  29. package/dist/{models-BvR5jdms.js → models-D-vu7j83.js} +520 -449
  30. package/dist/models.cjs +1 -1
  31. package/dist/models.d.ts +2 -2
  32. package/dist/models.js +67 -64
  33. package/package.json +5 -5
  34. package/dist/graphservice-CRRwkBcy.cjs +0 -1
  35. package/dist/graphservice-CXr8ZCEY.js +0 -726
  36. package/dist/models-CHycLCM0.cjs +0 -1
  37. package/dist/models-DOdc96z9.cjs +0 -1
package/dist/api.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./graphservice-CRRwkBcy.cjs"),i=require("./index-D_aIcqH0.cjs"),t=require("./calls-DZctVyoQ.cjs"),c=require("./models-DOdc96z9.cjs");function l(e){return t.ByID(3503478684,e)}const y=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:l},Symbol.toStringTag,{value:"Module"}));function s(e,r){return t.ByID(2691208406,e,r)}function p(e,r){return t.ByID(3932965591,e,r)}function D(e,r){return t.ByID(1686862755,e,r)}function g(e,r,o){return t.ByID(3705442919,e,r,o)}function f(e){return t.ByID(3024854267,e)}function v(e){return t.ByID(3423289677,e)}function S(e){return t.ByID(158417611,e)}function $(e){return t.ByID(3413815733,e)}function I(e,r){return t.ByID(2047870999,e,r)}const B=Object.freeze(Object.defineProperty({__proto__:null,Debug:s,Error:p,Info:D,Log:g,ReadLog:f,ReportStartupReady:v,StartTail:S,StopTail:$,Warn:I},Symbol.toStringTag,{value:"Module"}));function b(e,r){return t.ByID(712656304,e,r).then(o=>P(o))}function d(e){return t.ByID(4153226260,e).then(r=>u(r))}function T(e){return t.ByID(1268119665,e).then(r=>j(r))}function h(e){return t.ByID(1859413816,e)}function _(){return t.ByID(2707386443).then(e=>A(e))}function m(e){return t.ByID(2381063937,e)}function w(e){return t.ByID(123659362,e).then(r=>u(r))}function C(e){return t.ByID(709599671,e).then(r=>u(r))}function O(e,r){return t.ByID(2105869281,e,r).then(o=>u(o))}function F(e){return t.ByID(1371062537,e)}const L=c.LogEntry.createFrom,P=i.Array(L),u=c.DevServerState.createFrom,M=c.DevInfoFile.createFrom,j=i.Nullable(M),A=i.Array(u),G=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:b,GetDevServerState:d,GetExternalPluginInfo:T,IsManaged:h,ListDevServerStates:_,RebuildPlugin:m,RestartDevServer:w,StartDevServer:C,StartDevServerForPath:O,StopDevServer:F},Symbol.toStringTag,{value:"Module"}));function R(e,r){return t.ByID(1867216983,e,r).then(o=>a(o))}function E(){return t.ByID(3418650705).then(e=>W(e))}function q(e,r){return t.ByID(4138610615,e,r).then(o=>a(o))}function z(e){return t.ByID(3055914536,e)}function x(e){return t.ByID(1502487629,e)}const U=c.LogEntry$1.createFrom,a=i.Array(U),W=i.Array(i.Any),N=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:R,ListStreams:E,SearchLogs:q,Subscribe:z,Unsubscribe:x},Symbol.toStringTag,{value:"Module"}));function k(){return t.ByID(1706570792)}function H(e){return t.ByID(2957909098,e).then(r=>Q(r))}function J(e){return t.ByID(473489213,e)}function K(e,r){return t.ByID(3778694836,e,r)}const Q=i.Array(i.Any);exports.DataClient=n.servicewrapper$9;exports.ExecClient=n.servicewrapper;exports.GraphClient=n.graphservice;exports.LogsClient=n.servicewrapper$7;exports.MetricClient=n.servicewrapper$8;exports.NetworkerClient=n.servicewrapper$1;exports.PluginManager=n.servicewrapper$2;exports.ResourceClient=n.servicewrapper$3;exports.SettingsClient=n.servicewrapper$4;exports.SettingsProvider=n.servicewrapper$5;exports.UIClient=n.servicewrapper$6;exports.DevServerManager=G;exports.DiagnosticsClient=B;exports.GetOperatingSystem=k;exports.OpenFileSelectionDialog=H;exports.PluginLogManager=N;exports.SaveFileDialog=J;exports.UtilsClient=y;exports.WriteFileContent=K;
1
+ "use strict";var b=Object.defineProperty;var w=(t,e,i)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var r=(t,e,i)=>w(t,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./graphservice-Cb7rr7SB.cjs"),a=require("./index-D_aIcqH0.cjs"),n=require("./calls-DZctVyoQ.cjs"),u=require("./models-8-4Ny_ft.cjs");function B(t){return n.ByID(3503478684,t)}const F=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:B},Symbol.toStringTag,{value:"Module"}));function T(t,e){return n.ByID(2691208406,t,e)}function O(t,e){return n.ByID(3932965591,t,e)}function _(t,e){return n.ByID(1686862755,t,e)}function j(t,e,i){return n.ByID(3705442919,t,e,i)}function A(t){return n.ByID(3024854267,t)}function C(t){return n.ByID(3423289677,t)}function E(t){return n.ByID(158417611,t)}function L(t){return n.ByID(3413815733,t)}function M(t,e){return n.ByID(2047870999,t,e)}const N=Object.freeze(Object.defineProperty({__proto__:null,Debug:T,Error:O,Info:_,Log:j,ReadLog:A,ReportStartupReady:C,StartTail:E,StopTail:L,Warn:M},Symbol.toStringTag,{value:"Module"}));function k(t,e){return n.ByID(712656304,t,e).then(i=>W(i))}function P(t){return n.ByID(4153226260,t).then(e=>l(e))}function R(t){return n.ByID(1859413816,t)}function G(){return n.ByID(2707386443).then(t=>Z(t))}function J(t){return n.ByID(2381063937,t)}function x(t){return n.ByID(123659362,t).then(e=>l(e))}function q(t){return n.ByID(709599671,t).then(e=>l(e))}function z(t,e){return n.ByID(2105869281,t,e).then(i=>l(i))}function U(t){return n.ByID(1371062537,t)}const V=u.LogEntry.createFrom,W=a.Array(V),l=u.DevServerState.createFrom,Z=a.Array(l),H=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:k,GetDevServerState:P,IsManaged:R,ListDevServerStates:G,RebuildPlugin:J,RestartDevServer:x,StartDevServer:q,StartDevServerForPath:z,StopDevServer:U},Symbol.toStringTag,{value:"Module"}));function K(t,e){return n.ByID(1867216983,t,e).then(i=>S(i))}function Q(){return n.ByID(3418650705).then(t=>te(t))}function X(t,e){return n.ByID(4138610615,t,e).then(i=>S(i))}function Y(t){return n.ByID(3055914536,t)}function $(t){return n.ByID(1502487629,t)}const ee=u.LogEntry$1.createFrom,S=a.Array(ee),te=a.Array(a.Any),re=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:K,ListStreams:Q,SearchLogs:X,Subscribe:Y,Unsubscribe:$},Symbol.toStringTag,{value:"Module"}));class p{constructor(e={}){r(this,"browser");r(this,"vite");r(this,"hmr");r(this,"mcp");r(this,"control");r(this,"health");"browser"in e||(this.browser=null),"vite"in e||(this.vite=null),"hmr"in e||(this.hmr=null),"mcp"in e||(this.mcp=null),"control"in e||(this.control=null),"health"in e||(this.health=null),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new p(i)}}class y{constructor(e={}){r(this,"code");r(this,"message");r(this,"details");"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const i=ne;let o=typeof e=="string"?JSON.parse(e):e;return"details"in o&&(o.details=i(o.details)),new y(o)}}class h{constructor(e={}){r(this,"schemaVersion");r(this,"workspaceID");r(this,"instanceID");r(this,"generation");r(this,"kind");r(this,"channel");r(this,"displayName");r(this,"stateRoot");r(this,"process");r(this,"version");r(this,"commit");r(this,"repositories");r(this,"endpoints");r(this,"plugins");r(this,"readiness");r(this,"lastError");r(this,"startedAt");"schemaVersion"in e||(this.schemaVersion=0),"workspaceID"in e||(this.workspaceID=""),"instanceID"in e||(this.instanceID=""),"generation"in e||(this.generation=""),"kind"in e||(this.kind=""),"channel"in e||(this.channel=""),"displayName"in e||(this.displayName=""),"stateRoot"in e||(this.stateRoot=""),"process"in e||(this.process=new f),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new p),"plugins"in e||(this.plugins=[]),"readiness"in e||(this.readiness=""),"startedAt"in e||(this.startedAt="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const i=ie,o=ae,m=oe,v=le,I=D;let s=typeof e=="string"?JSON.parse(e):e;return"process"in s&&(s.process=i(s.process)),"repositories"in s&&(s.repositories=o(s.repositories)),"endpoints"in s&&(s.endpoints=m(s.endpoints)),"plugins"in s&&(s.plugins=v(s.plugins)),"lastError"in s&&(s.lastError=I(s.lastError)),new h(s)}}class d{constructor(e={}){r(this,"id");r(this,"version");r(this,"source");r(this,"generation");r(this,"mode");r(this,"buildStatus");r(this,"viteStatus");r(this,"rpcStatus");r(this,"controllerStatus");r(this,"operationID");r(this,"lastError");"id"in e||(this.id=""),"version"in e||(this.version=""),"source"in e||(this.source=""),"generation"in e||(this.generation=""),"mode"in e||(this.mode=""),"buildStatus"in e||(this.buildStatus=""),"viteStatus"in e||(this.viteStatus=""),"rpcStatus"in e||(this.rpcStatus=""),"controllerStatus"in e||(this.controllerStatus=""),Object.assign(this,e)}static createFrom(e={}){const i=D;let o=typeof e=="string"?JSON.parse(e):e;return"lastError"in o&&(o.lastError=i(o.lastError)),new d(o)}}class f{constructor(e={}){r(this,"pid");r(this,"startIdentity");r(this,"executable");r(this,"workspaceID");r(this,"generation");r(this,"role");r(this,"source");"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),"workspaceID"in e||(this.workspaceID=""),"generation"in e||(this.generation=""),"role"in e||(this.role=""),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new f(i)}}class g{constructor(e={}){r(this,"id");r(this,"path");r(this,"ref");r(this,"commit");"id"in e||(this.id=""),"path"in e||(this.path=""),"ref"in e||(this.ref=""),"commit"in e||(this.commit=""),Object.assign(this,e)}static createFrom(e={}){let i=typeof e=="string"?JSON.parse(e):e;return new g(i)}}const ne=a.Map(a.Any,a.Any),ie=f.createFrom,se=g.createFrom,ae=a.Array(se),oe=p.createFrom,ce=d.createFrom,le=a.Array(ce),pe=y.createFrom,D=a.Nullable(pe);function fe(){return n.ByID(678226073).then(t=>ge(t))}function ue(){return n.ByID(1706570792)}function ye(t){return n.ByID(2957909098,t).then(e=>Se(e))}function he(t){return n.ByID(473489213,t)}function de(t,e){return n.ByID(3778694836,t,e)}const ge=h.createFrom,Se=a.Array(a.Any);exports.DataClient=c.servicewrapper$9;exports.ExecClient=c.servicewrapper;exports.GraphClient=c.graphservice;exports.LogsClient=c.servicewrapper$7;exports.MetricClient=c.servicewrapper$8;exports.NetworkerClient=c.servicewrapper$1;exports.PluginManager=c.servicewrapper$2;exports.ResourceClient=c.servicewrapper$3;exports.SettingsClient=c.servicewrapper$4;exports.SettingsProvider=c.servicewrapper$5;exports.UIClient=c.servicewrapper$6;exports.DevServerManager=H;exports.DiagnosticsClient=N;exports.GetInstanceInfo=fe;exports.GetOperatingSystem=ue;exports.OpenFileSelectionDialog=ye;exports.PluginLogManager=re;exports.SaveFileDialog=he;exports.UtilsClient=F;exports.WriteFileContent=de;
package/dist/api.js CHANGED
@@ -1,150 +1,283 @@
1
- import { a3 as ue, T as ae, Z as ie, a1 as ce, a2 as se, W as le, X as fe, Y as ge, _ as pe, $ as Se, a0 as ve } from "./graphservice-CXr8ZCEY.js";
2
- import { A as o, N as c, a } from "./index-D2mKAO8s.js";
3
- import { B as r } from "./calls-BmUnjINC.js";
4
- import { D as s, L as l, a as f, b as g } from "./models-BoBl5Kgj.js";
5
- function p(e) {
6
- return r(3503478684, e);
7
- }
8
- const H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ var D = Object.defineProperty;
2
+ var F = (e, t, r) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var n = (e, t, r) => F(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { a4 as jt, W as Et, _ as Lt, a2 as Ct, a3 as Nt, X as Mt, Y as kt, Z as Pt, $ as Rt, a0 as xt, a1 as At } from "./graphservice-DloOtC_7.js";
5
+ import { A as o, a as l, N as T, M as O } from "./index-D2mKAO8s.js";
6
+ import { B as i } from "./calls-BmUnjINC.js";
7
+ import { D as w, L as I, a as _ } from "./models-BlTzZkmp.js";
8
+ function j(e) {
9
+ return i(3503478684, e);
10
+ }
11
+ const St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
12
  __proto__: null,
10
- DetectLanguage: p
13
+ DetectLanguage: j
11
14
  }, Symbol.toStringTag, { value: "Module" }));
12
- function S(e, t) {
13
- return r(2691208406, e, t);
15
+ function E(e, t) {
16
+ return i(2691208406, e, t);
14
17
  }
15
- function v(e, t) {
16
- return r(3932965591, e, t);
18
+ function L(e, t) {
19
+ return i(3932965591, e, t);
17
20
  }
18
- function $(e, t) {
19
- return r(1686862755, e, t);
21
+ function C(e, t) {
22
+ return i(1686862755, e, t);
20
23
  }
21
- function y(e, t, n) {
22
- return r(3705442919, e, t, n);
24
+ function N(e, t, r) {
25
+ return i(3705442919, e, t, r);
23
26
  }
24
- function b(e) {
25
- return r(3024854267, e);
27
+ function M(e) {
28
+ return i(3024854267, e);
26
29
  }
27
- function D(e) {
28
- return r(3423289677, e);
30
+ function k(e) {
31
+ return i(3423289677, e);
29
32
  }
30
- function m(e) {
31
- return r(158417611, e);
33
+ function P(e) {
34
+ return i(158417611, e);
32
35
  }
33
- function T(e) {
34
- return r(3413815733, e);
36
+ function R(e) {
37
+ return i(3413815733, e);
35
38
  }
36
- function _(e, t) {
37
- return r(2047870999, e, t);
39
+ function x(e, t) {
40
+ return i(2047870999, e, t);
38
41
  }
39
- const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
+ const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
43
  __proto__: null,
41
- Debug: S,
42
- Error: v,
43
- Info: $,
44
- Log: y,
45
- ReadLog: b,
46
- ReportStartupReady: D,
47
- StartTail: m,
48
- StopTail: T,
49
- Warn: _
44
+ Debug: E,
45
+ Error: L,
46
+ Info: C,
47
+ Log: N,
48
+ ReadLog: M,
49
+ ReportStartupReady: k,
50
+ StartTail: P,
51
+ StopTail: R,
52
+ Warn: x
50
53
  }, Symbol.toStringTag, { value: "Module" }));
51
- function d(e, t) {
52
- return r(712656304, e, t).then((n) => R(n));
54
+ function A(e, t) {
55
+ return i(712656304, e, t).then((r) => Y(r));
53
56
  }
54
- function h(e) {
55
- return r(4153226260, e).then((t) => u(t));
56
- }
57
- function L(e) {
58
- return r(1268119665, e).then((t) => x(t));
57
+ function G(e) {
58
+ return i(4153226260, e).then((t) => c(t));
59
59
  }
60
- function C(e) {
61
- return r(1859413816, e);
60
+ function J(e) {
61
+ return i(1859413816, e);
62
62
  }
63
- function O() {
64
- return r(2707386443).then((e) => z(e));
63
+ function z() {
64
+ return i(2707386443).then((e) => q(e));
65
65
  }
66
- function P(e) {
67
- return r(2381063937, e);
66
+ function U(e) {
67
+ return i(2381063937, e);
68
68
  }
69
- function F(e) {
70
- return r(123659362, e).then((t) => u(t));
69
+ function V(e) {
70
+ return i(123659362, e).then((t) => c(t));
71
71
  }
72
- function M(e) {
73
- return r(709599671, e).then((t) => u(t));
72
+ function W(e) {
73
+ return i(709599671, e).then((t) => c(t));
74
74
  }
75
- function j(e, t) {
76
- return r(2105869281, e, t).then((n) => u(n));
75
+ function B(e, t) {
76
+ return i(2105869281, e, t).then((r) => c(r));
77
77
  }
78
- function G(e) {
79
- return r(1371062537, e);
78
+ function Z(e) {
79
+ return i(1371062537, e);
80
80
  }
81
- const I = l.createFrom, R = o(I), u = s.createFrom, E = f.createFrom, x = c(E), z = o(u), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81
+ const X = I.createFrom, Y = o(X), c = w.createFrom, q = o(c), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
82
  __proto__: null,
83
- GetDevServerLogs: d,
84
- GetDevServerState: h,
85
- GetExternalPluginInfo: L,
86
- IsManaged: C,
87
- ListDevServerStates: O,
88
- RebuildPlugin: P,
89
- RestartDevServer: F,
90
- StartDevServer: M,
91
- StartDevServerForPath: j,
92
- StopDevServer: G
83
+ GetDevServerLogs: A,
84
+ GetDevServerState: G,
85
+ IsManaged: J,
86
+ ListDevServerStates: z,
87
+ RebuildPlugin: U,
88
+ RestartDevServer: V,
89
+ StartDevServer: W,
90
+ StartDevServerForPath: B,
91
+ StopDevServer: Z
93
92
  }, Symbol.toStringTag, { value: "Module" }));
94
- function w(e, t) {
95
- return r(1867216983, e, t).then((n) => i(n));
93
+ function H(e, t) {
94
+ return i(1867216983, e, t).then((r) => m(r));
96
95
  }
97
- function A() {
98
- return r(3418650705).then((e) => k(e));
96
+ function K() {
97
+ return i(3418650705).then((e) => nt(e));
99
98
  }
100
- function N(e, t) {
101
- return r(4138610615, e, t).then((n) => i(n));
99
+ function Q(e, t) {
100
+ return i(4138610615, e, t).then((r) => m(r));
102
101
  }
103
- function U(e) {
104
- return r(3055914536, e);
102
+ function $(e) {
103
+ return i(3055914536, e);
105
104
  }
106
- function W(e) {
107
- return r(1502487629, e);
105
+ function tt(e) {
106
+ return i(1502487629, e);
108
107
  }
109
- const B = g.createFrom, i = o(B), k = o(a), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
+ const et = _.createFrom, m = o(et), nt = o(l), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110
109
  __proto__: null,
111
- GetLogs: w,
112
- ListStreams: A,
113
- SearchLogs: N,
114
- Subscribe: U,
115
- Unsubscribe: W
110
+ GetLogs: H,
111
+ ListStreams: K,
112
+ SearchLogs: Q,
113
+ Subscribe: $,
114
+ Unsubscribe: tt
116
115
  }, Symbol.toStringTag, { value: "Module" }));
117
- function V() {
118
- return r(1706570792);
116
+ class p {
117
+ /** Creates a new Endpoints instance. */
118
+ constructor(t = {}) {
119
+ n(this, "browser");
120
+ n(this, "vite");
121
+ n(this, "hmr");
122
+ n(this, "mcp");
123
+ n(this, "control");
124
+ n(this, "health");
125
+ "browser" in t || (this.browser = null), "vite" in t || (this.vite = null), "hmr" in t || (this.hmr = null), "mcp" in t || (this.mcp = null), "control" in t || (this.control = null), "health" in t || (this.health = null), Object.assign(this, t);
126
+ }
127
+ /**
128
+ * Creates a new Endpoints instance from a string or object.
129
+ */
130
+ static createFrom(t = {}) {
131
+ let r = typeof t == "string" ? JSON.parse(t) : t;
132
+ return new p(r);
133
+ }
134
+ }
135
+ class u {
136
+ /** Creates a new Error instance. */
137
+ constructor(t = {}) {
138
+ n(this, "code");
139
+ n(this, "message");
140
+ n(this, "details");
141
+ "code" in t || (this.code = ""), "message" in t || (this.message = ""), Object.assign(this, t);
142
+ }
143
+ /**
144
+ * Creates a new Error instance from a string or object.
145
+ */
146
+ static createFrom(t = {}) {
147
+ const r = it;
148
+ let a = typeof t == "string" ? JSON.parse(t) : t;
149
+ return "details" in a && (a.details = r(a.details)), new u(a);
150
+ }
151
+ }
152
+ class h {
153
+ /** Creates a new InstanceDescriptor instance. */
154
+ constructor(t = {}) {
155
+ n(this, "schemaVersion");
156
+ n(this, "workspaceID");
157
+ n(this, "instanceID");
158
+ n(this, "generation");
159
+ n(this, "kind");
160
+ n(this, "channel");
161
+ n(this, "displayName");
162
+ n(this, "stateRoot");
163
+ n(this, "process");
164
+ n(this, "version");
165
+ n(this, "commit");
166
+ n(this, "repositories");
167
+ n(this, "endpoints");
168
+ n(this, "plugins");
169
+ n(this, "readiness");
170
+ n(this, "lastError");
171
+ n(this, "startedAt");
172
+ "schemaVersion" in t || (this.schemaVersion = 0), "workspaceID" in t || (this.workspaceID = ""), "instanceID" in t || (this.instanceID = ""), "generation" in t || (this.generation = ""), "kind" in t || (this.kind = ""), "channel" in t || (this.channel = ""), "displayName" in t || (this.displayName = ""), "stateRoot" in t || (this.stateRoot = ""), "process" in t || (this.process = new f()), "version" in t || (this.version = ""), "commit" in t || (this.commit = ""), "repositories" in t || (this.repositories = []), "endpoints" in t || (this.endpoints = new p()), "plugins" in t || (this.plugins = []), "readiness" in t || (this.readiness = ""), "startedAt" in t || (this.startedAt = "0001-01-01T00:00:00.000Z"), Object.assign(this, t);
173
+ }
174
+ /**
175
+ * Creates a new InstanceDescriptor instance from a string or object.
176
+ */
177
+ static createFrom(t = {}) {
178
+ const r = rt, a = at, y = ot, v = lt, b = S;
179
+ let s = typeof t == "string" ? JSON.parse(t) : t;
180
+ return "process" in s && (s.process = r(s.process)), "repositories" in s && (s.repositories = a(s.repositories)), "endpoints" in s && (s.endpoints = y(s.endpoints)), "plugins" in s && (s.plugins = v(s.plugins)), "lastError" in s && (s.lastError = b(s.lastError)), new h(s);
181
+ }
182
+ }
183
+ class d {
184
+ /** Creates a new PluginState instance. */
185
+ constructor(t = {}) {
186
+ n(this, "id");
187
+ n(this, "version");
188
+ n(this, "source");
189
+ n(this, "generation");
190
+ n(this, "mode");
191
+ n(this, "buildStatus");
192
+ n(this, "viteStatus");
193
+ n(this, "rpcStatus");
194
+ n(this, "controllerStatus");
195
+ n(this, "operationID");
196
+ n(this, "lastError");
197
+ "id" in t || (this.id = ""), "version" in t || (this.version = ""), "source" in t || (this.source = ""), "generation" in t || (this.generation = ""), "mode" in t || (this.mode = ""), "buildStatus" in t || (this.buildStatus = ""), "viteStatus" in t || (this.viteStatus = ""), "rpcStatus" in t || (this.rpcStatus = ""), "controllerStatus" in t || (this.controllerStatus = ""), Object.assign(this, t);
198
+ }
199
+ /**
200
+ * Creates a new PluginState instance from a string or object.
201
+ */
202
+ static createFrom(t = {}) {
203
+ const r = S;
204
+ let a = typeof t == "string" ? JSON.parse(t) : t;
205
+ return "lastError" in a && (a.lastError = r(a.lastError)), new d(a);
206
+ }
207
+ }
208
+ class f {
209
+ /** Creates a new ProcessIdentity instance. */
210
+ constructor(t = {}) {
211
+ n(this, "pid");
212
+ n(this, "startIdentity");
213
+ n(this, "executable");
214
+ n(this, "workspaceID");
215
+ n(this, "generation");
216
+ n(this, "role");
217
+ n(this, "source");
218
+ "pid" in t || (this.pid = 0), "startIdentity" in t || (this.startIdentity = ""), "executable" in t || (this.executable = ""), "workspaceID" in t || (this.workspaceID = ""), "generation" in t || (this.generation = ""), "role" in t || (this.role = ""), Object.assign(this, t);
219
+ }
220
+ /**
221
+ * Creates a new ProcessIdentity instance from a string or object.
222
+ */
223
+ static createFrom(t = {}) {
224
+ let r = typeof t == "string" ? JSON.parse(t) : t;
225
+ return new f(r);
226
+ }
227
+ }
228
+ class g {
229
+ /** Creates a new RepositoryResolution instance. */
230
+ constructor(t = {}) {
231
+ n(this, "id");
232
+ n(this, "path");
233
+ n(this, "ref");
234
+ n(this, "commit");
235
+ "id" in t || (this.id = ""), "path" in t || (this.path = ""), "ref" in t || (this.ref = ""), "commit" in t || (this.commit = ""), Object.assign(this, t);
236
+ }
237
+ /**
238
+ * Creates a new RepositoryResolution instance from a string or object.
239
+ */
240
+ static createFrom(t = {}) {
241
+ let r = typeof t == "string" ? JSON.parse(t) : t;
242
+ return new g(r);
243
+ }
244
+ }
245
+ const it = O(l, l), rt = f.createFrom, st = g.createFrom, at = o(st), ot = p.createFrom, ct = d.createFrom, lt = o(ct), pt = u.createFrom, S = T(pt);
246
+ function Dt() {
247
+ return i(678226073).then((e) => ft(e));
248
+ }
249
+ function Ft() {
250
+ return i(1706570792);
119
251
  }
120
- function ee(e) {
121
- return r(2957909098, e).then((t) => X(t));
252
+ function Tt(e) {
253
+ return i(2957909098, e).then((t) => ut(t));
122
254
  }
123
- function te(e) {
124
- return r(473489213, e);
255
+ function Ot(e) {
256
+ return i(473489213, e);
125
257
  }
126
- function re(e, t) {
127
- return r(3778694836, e, t);
258
+ function wt(e, t) {
259
+ return i(3778694836, e, t);
128
260
  }
129
- const X = o(a);
261
+ const ft = h.createFrom, ut = o(l);
130
262
  export {
131
- ue as DataClient,
132
- K as DevServerManager,
133
- J as DiagnosticsClient,
134
- ae as ExecClient,
135
- V as GetOperatingSystem,
136
- ie as GraphClient,
137
- ce as LogsClient,
138
- se as MetricClient,
139
- le as NetworkerClient,
140
- ee as OpenFileSelectionDialog,
141
- Q as PluginLogManager,
142
- fe as PluginManager,
143
- ge as ResourceClient,
144
- te as SaveFileDialog,
145
- pe as SettingsClient,
146
- Se as SettingsProvider,
147
- ve as UIClient,
148
- H as UtilsClient,
149
- re as WriteFileContent
263
+ jt as DataClient,
264
+ vt as DevServerManager,
265
+ yt as DiagnosticsClient,
266
+ Et as ExecClient,
267
+ Dt as GetInstanceInfo,
268
+ Ft as GetOperatingSystem,
269
+ Lt as GraphClient,
270
+ Ct as LogsClient,
271
+ Nt as MetricClient,
272
+ Mt as NetworkerClient,
273
+ Tt as OpenFileSelectionDialog,
274
+ bt as PluginLogManager,
275
+ kt as PluginManager,
276
+ Pt as ResourceClient,
277
+ Ot as SaveFileDialog,
278
+ Rt as SettingsClient,
279
+ xt as SettingsProvider,
280
+ At as UIClient,
281
+ St as UtilsClient,
282
+ wt as WriteFileContent
150
283
  };
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Name of the custom event "connection/status".
3
+ */
4
+ export declare const ConnectionStatus = "connection/status";
5
+ /**
6
+ * Name of the custom event "core/networker/portforward/closed".
7
+ */
8
+ export declare const CoreNetworkerPortforwardClosed = "core/networker/portforward/closed";
9
+ /**
10
+ * Name of the custom event "core/networker/portforward/created".
11
+ */
12
+ export declare const CoreNetworkerPortforwardCreated = "core/networker/portforward/created";
13
+ /**
14
+ * Name of the custom event "menu/context/drawer-tab/close".
15
+ */
16
+ export declare const MenuContextDrawerTabClose = "menu/context/drawer-tab/close";
17
+ /**
18
+ * Name of the custom event "menu/context/drawer-tab/close-others".
19
+ */
20
+ export declare const MenuContextDrawerTabCloseOthers = "menu/context/drawer-tab/close-others";
21
+ /**
22
+ * Name of the custom event "menu/view/bottomdrawer/fullscreen".
23
+ */
24
+ export declare const MenuViewBottomdrawerFullscreen = "menu/view/bottomdrawer/fullscreen";
25
+ /**
26
+ * Name of the custom event "menu/view/bottomdrawer/minimize".
27
+ */
28
+ export declare const MenuViewBottomdrawerMinimize = "menu/view/bottomdrawer/minimize";
29
+ /**
30
+ * Name of the custom event "menu/view/sidebar/minimize".
31
+ */
32
+ export declare const MenuViewSidebarMinimize = "menu/view/sidebar/minimize";
33
+ /**
34
+ * Name of the custom event "menu/view/terminal/create".
35
+ */
36
+ export declare const MenuViewTerminalCreate = "menu/view/terminal/create";
37
+ /**
38
+ * Name of the custom event "plugin/crash".
39
+ */
40
+ export declare const PluginCrash = "plugin/crash";
41
+ /**
42
+ * Name of the custom event "plugin/crash_recovery_failed".
43
+ */
44
+ export declare const PluginCrashRecoveryFailed = "plugin/crash_recovery_failed";
45
+ /**
46
+ * Name of the custom event "plugin/deprecated_protocol".
47
+ */
48
+ export declare const PluginDeprecatedProtocol = "plugin/deprecated_protocol";
49
+ /**
50
+ * Name of the custom event "plugin/dev_install_complete".
51
+ */
52
+ export declare const PluginDevInstallComplete = "plugin/dev_install_complete";
53
+ /**
54
+ * Name of the custom event "plugin/dev_install_error".
55
+ */
56
+ export declare const PluginDevInstallError = "plugin/dev_install_error";
57
+ /**
58
+ * Name of the custom event "plugin/dev_install_start".
59
+ */
60
+ export declare const PluginDevInstallStart = "plugin/dev_install_start";
61
+ /**
62
+ * Name of the custom event "plugin/dev_reload_complete".
63
+ */
64
+ export declare const PluginDevReloadComplete = "plugin/dev_reload_complete";
65
+ /**
66
+ * Name of the custom event "plugin/dev_reload_error".
67
+ */
68
+ export declare const PluginDevReloadError = "plugin/dev_reload_error";
69
+ /**
70
+ * Name of the custom event "plugin/dev_reload_start".
71
+ */
72
+ export declare const PluginDevReloadStart = "plugin/dev_reload_start";
73
+ /**
74
+ * Name of the custom event "plugin/devserver/error".
75
+ */
76
+ export declare const PluginDevserverError = "plugin/devserver/error";
77
+ /**
78
+ * Name of the custom event "plugin/devserver/log".
79
+ */
80
+ export declare const PluginDevserverLog = "plugin/devserver/log";
81
+ /**
82
+ * Name of the custom event "plugin/devserver/status".
83
+ */
84
+ export declare const PluginDevserverStatus = "plugin/devserver/status";
85
+ /**
86
+ * Name of the custom event "plugin/init_complete".
87
+ */
88
+ export declare const PluginInitComplete = "plugin/init_complete";
89
+ /**
90
+ * Name of the custom event "plugin/install_error".
91
+ */
92
+ export declare const PluginInstallError = "plugin/install_error";
93
+ /**
94
+ * Name of the custom event "plugin/install_finished".
95
+ */
96
+ export declare const PluginInstallFinished = "plugin/install_finished";
97
+ /**
98
+ * Name of the custom event "plugin/install_started".
99
+ */
100
+ export declare const PluginInstallStarted = "plugin/install_started";
101
+ /**
102
+ * Name of the custom event "plugin/inventory_changed".
103
+ */
104
+ export declare const PluginInventoryChanged = "plugin/inventory_changed";
105
+ /**
106
+ * Name of the custom event "plugin/process/log".
107
+ */
108
+ export declare const PluginProcessLog = "plugin/process/log";
109
+ /**
110
+ * Name of the custom event "plugin/recovered".
111
+ */
112
+ export declare const PluginRecovered = "plugin/recovered";
113
+ /**
114
+ * Name of the custom event "plugin/state_change".
115
+ */
116
+ export declare const PluginStateChange = "plugin/state_change";
117
+ /**
118
+ * Name of the custom event "plugin/state_write_error".
119
+ */
120
+ export declare const PluginStateWriteError = "plugin/state_write_error";
121
+ /**
122
+ * Name of the custom event "plugin/update_complete".
123
+ */
124
+ export declare const PluginUpdateComplete = "plugin/update_complete";
125
+ /**
126
+ * Name of the custom event "plugin/update_error".
127
+ */
128
+ export declare const PluginUpdateError = "plugin/update_error";
129
+ /**
130
+ * Name of the custom event "plugin/update_started".
131
+ */
132
+ export declare const PluginUpdateStarted = "plugin/update_started";
133
+ /**
134
+ * Name of the custom event "settings/changed".
135
+ */
136
+ export declare const SettingsChanged = "settings/changed";
137
+ /**
138
+ * Name of the custom event "watch/STATE".
139
+ */
140
+ export declare const WatchSTATE = "watch/STATE";
@@ -1,5 +1,10 @@
1
1
  import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
+ import * as devcontract$0 from "./internal/devcontract/models.js";
2
3
  import * as $models from "./models.js";
4
+ /**
5
+ * GetInstanceInfo returns authoritative runtime identity without credentials.
6
+ */
7
+ export declare function GetInstanceInfo(): $CancellablePromise<devcontract$0.InstanceDescriptor>;
3
8
  /**
4
9
  * GetOperatingSystem returns the operating system type this application is running on.
5
10
  */
@@ -1,3 +1,3 @@
1
1
  import * as ServiceWrapper from "./servicewrapper.js";
2
2
  export { ServiceWrapper };
3
- export { BuildError, DevInfoFile, DevProcessStatus, DevServerErrorPayload, DevServerMode, DevServerState, LogEntry } from './models.js';
3
+ export { BuildError, DevProcessStatus, DevServerErrorPayload, DevServerMode, DevServerState, LifecycleStage, LogEntry } from './models.js';