@omniviewdev/runtime 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +173 -113
- package/dist/bindings/events/index.d.ts +28 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +190 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +83 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/context/windows/WindowActionsContext.d.ts +31 -0
- package/dist/context/windows/activePageNavigator.d.ts +13 -0
- package/dist/context/windows/index.d.ts +2 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +1441 -1394
- package/dist/models-BxypsesT.cjs +1 -0
- package/dist/models-C6jzDokQ.js +347 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +1 -0
- package/dist/models.js +29 -28
- package/dist/router/Link.d.ts +3 -0
- package/package.json +3 -3
- package/dist/models-DU8pTcoZ.js +0 -142
- package/dist/models-KV9f8Ceh.cjs +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./servicewrapper-COMjQHnY.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./servicewrapper-COMjQHnY.cjs"),i=require("./index-BVi9X4oU.cjs"),n=require("./calls-Bg_uMVc9.cjs"),c=require("./models-BxypsesT.cjs");function B(t){return n.ByID(3503478684,t)}const b=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:B},Symbol.toStringTag,{value:"Module"}));function w(t,e){return n.ByID(2691208406,t,e)}function T(t,e){return n.ByID(3932965591,t,e)}function F(t,e){return n.ByID(1686862755,t,e)}function O(t,e,r){return n.ByID(3705442919,t,e,r)}function _(t){return n.ByID(3024854267,t)}function A(t){return n.ByID(3423289677,t)}function j(t){return n.ByID(158417611,t)}function C(t){return n.ByID(3413815733,t)}function M(t,e){return n.ByID(2047870999,t,e)}const E=Object.freeze(Object.defineProperty({__proto__:null,Debug:w,Error:T,Info:F,Log:O,ReadLog:_,ReportStartupReady:A,StartTail:j,StopTail:C,Warn:M},Symbol.toStringTag,{value:"Module"}));function L(t){return n.ByID(584261046,t)}function P(t){return n.ByID(3098255555,t)}function R(t){return n.ByID(903698361,t)}function N(t,e,r){return n.ByID(1235170530,t,e,r).then(a=>H(a))}function k(t){return n.ByID(3199298309,t)}function G(t){return n.ByID(2822783534,t).then(e=>g(e))}function J(){return n.ByID(914742443).then(t=>Q(t))}function x(){return n.ByID(3392737293).then(t=>X(t))}function z(t,e,r){return n.ByID(1474486628,t,e,r)}function q(t,e,r){return n.ByID(2366942716,t,e,r)}function V(t){return n.ByID(4008581935,t)}function W(t,e,r){return n.ByID(958877691,t,e,r)}function U(t,e,r){return n.ByID(1772958861,t,e,r)}function Z(t,e,r){return n.ByID(728919203,t,e,r)}const H=c.DropResult.createFrom,g=i.Map(i.Any,i.Any),K=c.Info.createFrom,Q=i.Array(K),X=i.Map(i.Any,g),Y=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:L,CancelDrag:P,Close:R,EndDrag:N,Focus:k,GetState:G,List:J,ListStates:x,MoveDrag:z,MoveToPointer:q,Open:V,ReportViewport:W,RespondDrop:U,SaveState:Z},Symbol.toStringTag,{value:"Module"}));function $(t,e){return n.ByID(712656304,t,e).then(r=>le(r))}function ee(t){return n.ByID(4153226260,t).then(e=>l(e))}function te(t){return n.ByID(1859413816,t)}function ne(){return n.ByID(2707386443).then(t=>pe(t))}function re(t){return n.ByID(2381063937,t)}function ie(t){return n.ByID(123659362,t).then(e=>l(e))}function se(t){return n.ByID(709599671,t).then(e=>l(e))}function ae(t,e){return n.ByID(2105869281,t,e).then(r=>l(r))}function oe(t){return n.ByID(1371062537,t)}const ce=c.LogEntry.createFrom,le=i.Array(ce),l=c.DevServerState.createFrom,pe=i.Array(l),ue=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:$,GetDevServerState:ee,IsManaged:te,ListDevServerStates:ne,RebuildPlugin:re,RestartDevServer:ie,StartDevServer:se,StartDevServerForPath:ae,StopDevServer:oe},Symbol.toStringTag,{value:"Module"}));function fe(t,e){return n.ByID(1867216983,t,e).then(r=>D(r))}function ye(){return n.ByID(3418650705).then(t=>Se(t))}function he(t,e){return n.ByID(4138610615,t,e).then(r=>D(r))}function de(t){return n.ByID(3055914536,t)}function ge(t){return n.ByID(1502487629,t)}const De=c.LogEntry$1.createFrom,D=i.Array(De),Se=i.Array(i.Any),Ie=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:fe,ListStreams:ye,SearchLogs:he,Subscribe:de,Unsubscribe:ge},Symbol.toStringTag,{value:"Module"}));class p{browser;vite;hmr;mcp;control;health;constructor(e={}){"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 r=typeof e=="string"?JSON.parse(e):e;return new p(r)}}class f{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const r=me;let a=typeof e=="string"?JSON.parse(e):e;return"details"in a&&(a.details=r(a.details)),new f(a)}}class y{schemaVersion;workspaceID;instanceID;generation;kind;channel;displayName;stateRoot;process;version;commit;repositories;endpoints;plugins;readiness;lastError;startedAt;constructor(e={}){"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 u),"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 r=ve,a=be,I=we,m=Fe,v=S;let s=typeof e=="string"?JSON.parse(e):e;return"process"in s&&(s.process=r(s.process)),"repositories"in s&&(s.repositories=a(s.repositories)),"endpoints"in s&&(s.endpoints=I(s.endpoints)),"plugins"in s&&(s.plugins=m(s.plugins)),"lastError"in s&&(s.lastError=v(s.lastError)),new y(s)}}class h{id;version;source;generation;mode;buildStatus;viteStatus;rpcStatus;controllerStatus;operationID;lastError;constructor(e={}){"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 r=S;let a=typeof e=="string"?JSON.parse(e):e;return"lastError"in a&&(a.lastError=r(a.lastError)),new h(a)}}class u{pid;startIdentity;executable;workspaceID;generation;role;source;constructor(e={}){"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 r=typeof e=="string"?JSON.parse(e):e;return new u(r)}}class d{id;path;ref;commit;constructor(e={}){"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 r=typeof e=="string"?JSON.parse(e):e;return new d(r)}}const me=i.Map(i.Any,i.Any),ve=u.createFrom,Be=d.createFrom,be=i.Array(Be),we=p.createFrom,Te=h.createFrom,Fe=i.Array(Te),Oe=f.createFrom,S=i.Nullable(Oe);function _e(){return n.ByID(678226073).then(t=>Ee(t))}function Ae(){return n.ByID(1706570792)}function je(t){return n.ByID(2957909098,t).then(e=>Le(e))}function Ce(t){return n.ByID(473489213,t)}function Me(t,e){return n.ByID(3778694836,t,e)}const Ee=y.createFrom,Le=i.Array(i.Any);exports.DataClient=o.servicewrapper;exports.ExecClient=o.servicewrapper$1;exports.GraphClient=o.graphservice;exports.LogsClient=o.servicewrapper$2;exports.MetricClient=o.servicewrapper$3;exports.NetworkerClient=o.servicewrapper$4;exports.PluginManager=o.servicewrapper$5;exports.ResourceClient=o.servicewrapper$6;exports.SettingsClient=o.servicewrapper$7;exports.SettingsProvider=o.servicewrapper$8;exports.UIClient=o.servicewrapper$9;exports.DevServerManager=ue;exports.DiagnosticsClient=E;exports.GetInstanceInfo=_e;exports.GetOperatingSystem=Ae;exports.OpenFileSelectionDialog=je;exports.PluginLogManager=Ie;exports.SaveFileDialog=Ce;exports.UtilsClient=b;exports.WindowClient=Y;exports.WriteFileContent=Me;
|
package/dist/api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * as DiagnosticsClient from './bindings/github.com/omniviewdev/omniview/b
|
|
|
11
11
|
export * as LogsClient from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper';
|
|
12
12
|
export * as MetricClient from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper';
|
|
13
13
|
export * as DataClient from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/servicewrapper';
|
|
14
|
+
export * as WindowClient from './bindings/github.com/omniviewdev/omniview/backend/window/service';
|
|
14
15
|
export * as DevServerManager from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper';
|
|
15
16
|
export * as PluginLogManager from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/servicewrapper';
|
|
16
17
|
export * from './bindings/github.com/omniviewdev/omniview/appservice';
|
package/dist/api.js
CHANGED
|
@@ -1,114 +1,173 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import {
|
|
1
|
+
import { s as Zt, a as qt, g as Ht, b as Kt, c as Qt, d as Xt, e as Yt, f as $t, h as te, i as ee, j as ne } from "./servicewrapper-C6SURWw1.js";
|
|
2
|
+
import { M as f, A as a, a as o, N as T } from "./index-zyAgCXOO.js";
|
|
3
3
|
import { B as n } from "./calls-BvZkVSse.js";
|
|
4
|
-
import { D as F,
|
|
5
|
-
function
|
|
4
|
+
import { D as F, I as O, a as w, L as I, b as _ } from "./models-C6jzDokQ.js";
|
|
5
|
+
function j(e) {
|
|
6
6
|
return n(3503478684, e);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
9
|
__proto__: null,
|
|
10
|
-
DetectLanguage:
|
|
10
|
+
DetectLanguage: j
|
|
11
11
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12
|
-
function
|
|
12
|
+
function C(e, t) {
|
|
13
13
|
return n(2691208406, e, t);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function L(e, t) {
|
|
16
16
|
return n(3932965591, e, t);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function E(e, t) {
|
|
19
19
|
return n(1686862755, e, t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return n(3705442919, e, t,
|
|
21
|
+
function M(e, t, r) {
|
|
22
|
+
return n(3705442919, e, t, r);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function N(e) {
|
|
25
25
|
return n(3024854267, e);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function R(e) {
|
|
28
28
|
return n(3423289677, e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function P(e) {
|
|
31
31
|
return n(158417611, e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function k(e) {
|
|
34
34
|
return n(3413815733, e);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function G(e, t) {
|
|
37
37
|
return n(2047870999, e, t);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40
40
|
__proto__: null,
|
|
41
|
-
Debug:
|
|
42
|
-
Error:
|
|
43
|
-
Info:
|
|
44
|
-
Log:
|
|
45
|
-
ReadLog:
|
|
46
|
-
ReportStartupReady:
|
|
47
|
-
StartTail:
|
|
48
|
-
StopTail:
|
|
49
|
-
Warn:
|
|
41
|
+
Debug: C,
|
|
42
|
+
Error: L,
|
|
43
|
+
Info: E,
|
|
44
|
+
Log: M,
|
|
45
|
+
ReadLog: N,
|
|
46
|
+
ReportStartupReady: R,
|
|
47
|
+
StartTail: P,
|
|
48
|
+
StopTail: k,
|
|
49
|
+
Warn: G
|
|
50
50
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
51
|
-
function
|
|
52
|
-
return n(
|
|
51
|
+
function x(e) {
|
|
52
|
+
return n(584261046, e);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return n(
|
|
54
|
+
function A(e) {
|
|
55
|
+
return n(3098255555, e);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function J(e) {
|
|
58
|
+
return n(903698361, e);
|
|
59
|
+
}
|
|
60
|
+
function z(e, t, r) {
|
|
61
|
+
return n(1235170530, e, t, r).then((s) => Y(s));
|
|
62
|
+
}
|
|
63
|
+
function V(e) {
|
|
64
|
+
return n(3199298309, e);
|
|
65
|
+
}
|
|
66
|
+
function B(e) {
|
|
67
|
+
return n(2822783534, e).then((t) => S(t));
|
|
68
|
+
}
|
|
69
|
+
function U() {
|
|
70
|
+
return n(914742443).then((e) => tt(e));
|
|
71
|
+
}
|
|
72
|
+
function W() {
|
|
73
|
+
return n(3392737293).then((e) => et(e));
|
|
74
|
+
}
|
|
75
|
+
function Z(e, t, r) {
|
|
76
|
+
return n(1474486628, e, t, r);
|
|
77
|
+
}
|
|
78
|
+
function q(e, t, r) {
|
|
79
|
+
return n(2366942716, e, t, r);
|
|
80
|
+
}
|
|
81
|
+
function H(e) {
|
|
82
|
+
return n(4008581935, e);
|
|
83
|
+
}
|
|
84
|
+
function K(e, t, r) {
|
|
85
|
+
return n(958877691, e, t, r);
|
|
86
|
+
}
|
|
87
|
+
function Q(e, t, r) {
|
|
88
|
+
return n(1772958861, e, t, r);
|
|
89
|
+
}
|
|
90
|
+
function X(e, t, r) {
|
|
91
|
+
return n(728919203, e, t, r);
|
|
92
|
+
}
|
|
93
|
+
const Y = F.createFrom, S = f(o, o), $ = O.createFrom, tt = a($), et = f(o, S), kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94
|
+
__proto__: null,
|
|
95
|
+
BeginDrag: x,
|
|
96
|
+
CancelDrag: A,
|
|
97
|
+
Close: J,
|
|
98
|
+
EndDrag: z,
|
|
99
|
+
Focus: V,
|
|
100
|
+
GetState: B,
|
|
101
|
+
List: U,
|
|
102
|
+
ListStates: W,
|
|
103
|
+
MoveDrag: Z,
|
|
104
|
+
MoveToPointer: q,
|
|
105
|
+
Open: H,
|
|
106
|
+
ReportViewport: K,
|
|
107
|
+
RespondDrop: Q,
|
|
108
|
+
SaveState: X
|
|
109
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
110
|
+
function nt(e, t) {
|
|
111
|
+
return n(712656304, e, t).then((r) => pt(r));
|
|
112
|
+
}
|
|
113
|
+
function rt(e) {
|
|
114
|
+
return n(4153226260, e).then((t) => c(t));
|
|
115
|
+
}
|
|
116
|
+
function it(e) {
|
|
58
117
|
return n(1859413816, e);
|
|
59
118
|
}
|
|
60
|
-
function
|
|
61
|
-
return n(2707386443).then((e) =>
|
|
119
|
+
function st() {
|
|
120
|
+
return n(2707386443).then((e) => ht(e));
|
|
62
121
|
}
|
|
63
|
-
function
|
|
122
|
+
function at(e) {
|
|
64
123
|
return n(2381063937, e);
|
|
65
124
|
}
|
|
66
|
-
function
|
|
67
|
-
return n(123659362, e).then((t) =>
|
|
125
|
+
function ot(e) {
|
|
126
|
+
return n(123659362, e).then((t) => c(t));
|
|
68
127
|
}
|
|
69
|
-
function
|
|
70
|
-
return n(709599671, e).then((t) =>
|
|
128
|
+
function ct(e) {
|
|
129
|
+
return n(709599671, e).then((t) => c(t));
|
|
71
130
|
}
|
|
72
|
-
function
|
|
73
|
-
return n(2105869281, e, t).then((
|
|
131
|
+
function lt(e, t) {
|
|
132
|
+
return n(2105869281, e, t).then((r) => c(r));
|
|
74
133
|
}
|
|
75
|
-
function
|
|
134
|
+
function ut(e) {
|
|
76
135
|
return n(1371062537, e);
|
|
77
136
|
}
|
|
78
|
-
const
|
|
137
|
+
const ft = I.createFrom, pt = a(ft), c = w.createFrom, ht = a(c), Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
79
138
|
__proto__: null,
|
|
80
|
-
GetDevServerLogs:
|
|
81
|
-
GetDevServerState:
|
|
82
|
-
IsManaged:
|
|
83
|
-
ListDevServerStates:
|
|
84
|
-
RebuildPlugin:
|
|
85
|
-
RestartDevServer:
|
|
86
|
-
StartDevServer:
|
|
87
|
-
StartDevServerForPath:
|
|
88
|
-
StopDevServer:
|
|
139
|
+
GetDevServerLogs: nt,
|
|
140
|
+
GetDevServerState: rt,
|
|
141
|
+
IsManaged: it,
|
|
142
|
+
ListDevServerStates: st,
|
|
143
|
+
RebuildPlugin: at,
|
|
144
|
+
RestartDevServer: ot,
|
|
145
|
+
StartDevServer: ct,
|
|
146
|
+
StartDevServerForPath: lt,
|
|
147
|
+
StopDevServer: ut
|
|
89
148
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
|
-
function
|
|
91
|
-
return n(1867216983, e, t).then((
|
|
149
|
+
function dt(e, t) {
|
|
150
|
+
return n(1867216983, e, t).then((r) => m(r));
|
|
92
151
|
}
|
|
93
|
-
function
|
|
94
|
-
return n(3418650705).then((e) =>
|
|
152
|
+
function gt() {
|
|
153
|
+
return n(3418650705).then((e) => bt(e));
|
|
95
154
|
}
|
|
96
|
-
function
|
|
97
|
-
return n(4138610615, e, t).then((
|
|
155
|
+
function St(e, t) {
|
|
156
|
+
return n(4138610615, e, t).then((r) => m(r));
|
|
98
157
|
}
|
|
99
|
-
function
|
|
158
|
+
function mt(e) {
|
|
100
159
|
return n(3055914536, e);
|
|
101
160
|
}
|
|
102
|
-
function
|
|
161
|
+
function yt(e) {
|
|
103
162
|
return n(1502487629, e);
|
|
104
163
|
}
|
|
105
|
-
const
|
|
164
|
+
const vt = _.createFrom, m = a(vt), bt = a(o), xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106
165
|
__proto__: null,
|
|
107
|
-
GetLogs:
|
|
108
|
-
ListStreams:
|
|
109
|
-
SearchLogs:
|
|
110
|
-
Subscribe:
|
|
111
|
-
Unsubscribe:
|
|
166
|
+
GetLogs: dt,
|
|
167
|
+
ListStreams: gt,
|
|
168
|
+
SearchLogs: St,
|
|
169
|
+
Subscribe: mt,
|
|
170
|
+
Unsubscribe: yt
|
|
112
171
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
113
172
|
class l {
|
|
114
173
|
browser;
|
|
@@ -125,11 +184,11 @@ class l {
|
|
|
125
184
|
* Creates a new Endpoints instance from a string or object.
|
|
126
185
|
*/
|
|
127
186
|
static createFrom(t = {}) {
|
|
128
|
-
let
|
|
129
|
-
return new l(
|
|
187
|
+
let r = typeof t == "string" ? JSON.parse(t) : t;
|
|
188
|
+
return new l(r);
|
|
130
189
|
}
|
|
131
190
|
}
|
|
132
|
-
class
|
|
191
|
+
class p {
|
|
133
192
|
code;
|
|
134
193
|
message;
|
|
135
194
|
details;
|
|
@@ -141,12 +200,12 @@ class f {
|
|
|
141
200
|
* Creates a new Error instance from a string or object.
|
|
142
201
|
*/
|
|
143
202
|
static createFrom(t = {}) {
|
|
144
|
-
const
|
|
203
|
+
const r = Dt;
|
|
145
204
|
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
146
|
-
return "details" in s && (s.details =
|
|
205
|
+
return "details" in s && (s.details = r(s.details)), new p(s);
|
|
147
206
|
}
|
|
148
207
|
}
|
|
149
|
-
class
|
|
208
|
+
class h {
|
|
150
209
|
schemaVersion;
|
|
151
210
|
workspaceID;
|
|
152
211
|
instanceID;
|
|
@@ -166,18 +225,18 @@ class u {
|
|
|
166
225
|
startedAt;
|
|
167
226
|
/** Creates a new InstanceDescriptor instance. */
|
|
168
227
|
constructor(t = {}) {
|
|
169
|
-
"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
|
|
228
|
+
"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 u()), "version" in t || (this.version = ""), "commit" in t || (this.commit = ""), "repositories" in t || (this.repositories = []), "endpoints" in t || (this.endpoints = new l()), "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);
|
|
170
229
|
}
|
|
171
230
|
/**
|
|
172
231
|
* Creates a new InstanceDescriptor instance from a string or object.
|
|
173
232
|
*/
|
|
174
233
|
static createFrom(t = {}) {
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
return "process" in
|
|
234
|
+
const r = Tt, s = Ot, v = wt, b = _t, D = y;
|
|
235
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
236
|
+
return "process" in i && (i.process = r(i.process)), "repositories" in i && (i.repositories = s(i.repositories)), "endpoints" in i && (i.endpoints = v(i.endpoints)), "plugins" in i && (i.plugins = b(i.plugins)), "lastError" in i && (i.lastError = D(i.lastError)), new h(i);
|
|
178
237
|
}
|
|
179
238
|
}
|
|
180
|
-
class
|
|
239
|
+
class d {
|
|
181
240
|
id;
|
|
182
241
|
version;
|
|
183
242
|
source;
|
|
@@ -197,12 +256,12 @@ class h {
|
|
|
197
256
|
* Creates a new PluginState instance from a string or object.
|
|
198
257
|
*/
|
|
199
258
|
static createFrom(t = {}) {
|
|
200
|
-
const
|
|
259
|
+
const r = y;
|
|
201
260
|
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
202
|
-
return "lastError" in s && (s.lastError =
|
|
261
|
+
return "lastError" in s && (s.lastError = r(s.lastError)), new d(s);
|
|
203
262
|
}
|
|
204
263
|
}
|
|
205
|
-
class
|
|
264
|
+
class u {
|
|
206
265
|
pid;
|
|
207
266
|
startIdentity;
|
|
208
267
|
executable;
|
|
@@ -218,11 +277,11 @@ class p {
|
|
|
218
277
|
* Creates a new ProcessIdentity instance from a string or object.
|
|
219
278
|
*/
|
|
220
279
|
static createFrom(t = {}) {
|
|
221
|
-
let
|
|
222
|
-
return new
|
|
280
|
+
let r = typeof t == "string" ? JSON.parse(t) : t;
|
|
281
|
+
return new u(r);
|
|
223
282
|
}
|
|
224
283
|
}
|
|
225
|
-
class
|
|
284
|
+
class g {
|
|
226
285
|
id;
|
|
227
286
|
path;
|
|
228
287
|
ref;
|
|
@@ -235,46 +294,47 @@ class d {
|
|
|
235
294
|
* Creates a new RepositoryResolution instance from a string or object.
|
|
236
295
|
*/
|
|
237
296
|
static createFrom(t = {}) {
|
|
238
|
-
let
|
|
239
|
-
return new
|
|
297
|
+
let r = typeof t == "string" ? JSON.parse(t) : t;
|
|
298
|
+
return new g(r);
|
|
240
299
|
}
|
|
241
300
|
}
|
|
242
|
-
const
|
|
243
|
-
function
|
|
244
|
-
return n(678226073).then((e) =>
|
|
301
|
+
const Dt = f(o, o), Tt = u.createFrom, Ft = g.createFrom, Ot = a(Ft), wt = l.createFrom, It = d.createFrom, _t = a(It), jt = p.createFrom, y = T(jt);
|
|
302
|
+
function At() {
|
|
303
|
+
return n(678226073).then((e) => Ct(e));
|
|
245
304
|
}
|
|
246
|
-
function
|
|
305
|
+
function Jt() {
|
|
247
306
|
return n(1706570792);
|
|
248
307
|
}
|
|
249
|
-
function
|
|
250
|
-
return n(2957909098, e).then((t) =>
|
|
308
|
+
function zt(e) {
|
|
309
|
+
return n(2957909098, e).then((t) => Lt(t));
|
|
251
310
|
}
|
|
252
|
-
function
|
|
311
|
+
function Vt(e) {
|
|
253
312
|
return n(473489213, e);
|
|
254
313
|
}
|
|
255
|
-
function
|
|
314
|
+
function Bt(e, t) {
|
|
256
315
|
return n(3778694836, e, t);
|
|
257
316
|
}
|
|
258
|
-
const
|
|
317
|
+
const Ct = h.createFrom, Lt = a(o);
|
|
259
318
|
export {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
319
|
+
Zt as DataClient,
|
|
320
|
+
Gt as DevServerManager,
|
|
321
|
+
Pt as DiagnosticsClient,
|
|
322
|
+
qt as ExecClient,
|
|
323
|
+
At as GetInstanceInfo,
|
|
324
|
+
Jt as GetOperatingSystem,
|
|
325
|
+
Ht as GraphClient,
|
|
326
|
+
Kt as LogsClient,
|
|
327
|
+
Qt as MetricClient,
|
|
328
|
+
Xt as NetworkerClient,
|
|
329
|
+
zt as OpenFileSelectionDialog,
|
|
330
|
+
xt as PluginLogManager,
|
|
331
|
+
Yt as PluginManager,
|
|
332
|
+
$t as ResourceClient,
|
|
333
|
+
Vt as SaveFileDialog,
|
|
334
|
+
te as SettingsClient,
|
|
335
|
+
ee as SettingsProvider,
|
|
336
|
+
ne as UIClient,
|
|
337
|
+
Rt as UtilsClient,
|
|
338
|
+
kt as WindowClient,
|
|
339
|
+
Bt as WriteFileContent
|
|
280
340
|
};
|
|
@@ -138,3 +138,31 @@ export declare const SettingsChanged = "settings/changed";
|
|
|
138
138
|
* Name of the custom event "watch/STATE".
|
|
139
139
|
*/
|
|
140
140
|
export declare const WatchSTATE = "watch/STATE";
|
|
141
|
+
/**
|
|
142
|
+
* Name of the custom event "windows/changed".
|
|
143
|
+
*/
|
|
144
|
+
export declare const WindowsChanged = "windows/changed";
|
|
145
|
+
/**
|
|
146
|
+
* Name of the custom event "windows/closed".
|
|
147
|
+
*/
|
|
148
|
+
export declare const WindowsClosed = "windows/closed";
|
|
149
|
+
/**
|
|
150
|
+
* Name of the custom event "windows/drag/begin".
|
|
151
|
+
*/
|
|
152
|
+
export declare const WindowsDragBegin = "windows/drag/begin";
|
|
153
|
+
/**
|
|
154
|
+
* Name of the custom event "windows/drag/drop".
|
|
155
|
+
*/
|
|
156
|
+
export declare const WindowsDragDrop = "windows/drag/drop";
|
|
157
|
+
/**
|
|
158
|
+
* Name of the custom event "windows/drag/end".
|
|
159
|
+
*/
|
|
160
|
+
export declare const WindowsDragEnd = "windows/drag/end";
|
|
161
|
+
/**
|
|
162
|
+
* Name of the custom event "windows/drag/hover".
|
|
163
|
+
*/
|
|
164
|
+
export declare const WindowsDragHover = "windows/drag/hover";
|
|
165
|
+
/**
|
|
166
|
+
* Name of the custom event "windows/drag/leave".
|
|
167
|
+
*/
|
|
168
|
+
export declare const WindowsDragLeave = "windows/drag/leave";
|