@omniviewdev/runtime 0.8.2 → 0.9.1
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.js +183 -186
- package/dist/calls-Bg_uMVc9.cjs +1 -0
- package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
- package/dist/context/settings/SettingsContext.d.ts +1 -1
- package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
- package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
- package/dist/hooks/resource/useResource.d.ts +1 -1
- package/dist/index-BVi9X4oU.cjs +6 -0
- package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
- package/dist/index.cjs +4 -4
- package/dist/index.js +2960 -2115
- package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
- package/dist/models-CT4kHj47.js +2444 -0
- package/dist/models-DQl7tqts.cjs +1 -0
- package/dist/models-DU8pTcoZ.js +142 -0
- package/dist/models-KV9f8Ceh.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.js +229 -232
- package/dist/resourceIcons.d.ts +2 -2
- package/dist/router/Link.d.ts +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/usePluginRouter.d.ts +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +6 -6
- package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
- package/dist/servicewrapper-Q1ww3DUo.js +849 -0
- package/dist/types/app.d.ts +1 -1
- package/package.json +22 -16
- package/dist/calls-DUhq86Ki.cjs +0 -1
- package/dist/graphservice-1J8q3eeL.cjs +0 -1
- package/dist/graphservice-CUg1PUsC.js +0 -852
- package/dist/index-D_aIcqH0.cjs +0 -6
- package/dist/models-4EtitZnM.js +0 -2447
- package/dist/models-BQsuB2Lj.cjs +0 -1
- package/dist/models-BpVWHqlF.cjs +0 -1
- package/dist/models-C5sf8GNY.js +0 -145
package/dist/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./servicewrapper-CCW7kIVs.cjs"),s=require("./index-BVi9X4oU.cjs"),r=require("./calls-Bg_uMVc9.cjs"),f=require("./models-KV9f8Ceh.cjs");function I(t){return r.ByID(3503478684,t)}const b=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:I},Symbol.toStringTag,{value:"Module"}));function w(t,e){return r.ByID(2691208406,t,e)}function B(t,e){return r.ByID(3932965591,t,e)}function F(t,e){return r.ByID(1686862755,t,e)}function T(t,e,n){return r.ByID(3705442919,t,e,n)}function O(t){return r.ByID(3024854267,t)}function _(t){return r.ByID(3423289677,t)}function j(t){return r.ByID(158417611,t)}function A(t){return r.ByID(3413815733,t)}function C(t,e){return r.ByID(2047870999,t,e)}const E=Object.freeze(Object.defineProperty({__proto__:null,Debug:w,Error:B,Info:F,Log:T,ReadLog:O,ReportStartupReady:_,StartTail:j,StopTail:A,Warn:C},Symbol.toStringTag,{value:"Module"}));function L(t,e){return r.ByID(712656304,t,e).then(n=>z(n))}function M(t){return r.ByID(4153226260,t).then(e=>c(e))}function N(t){return r.ByID(1859413816,t)}function k(){return r.ByID(2707386443).then(t=>U(t))}function P(t){return r.ByID(2381063937,t)}function R(t){return r.ByID(123659362,t).then(e=>c(e))}function G(t){return r.ByID(709599671,t).then(e=>c(e))}function J(t,e){return r.ByID(2105869281,t,e).then(n=>c(n))}function x(t){return r.ByID(1371062537,t)}const q=f.LogEntry.createFrom,z=s.Array(q),c=f.DevServerState.createFrom,U=s.Array(c),V=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:L,GetDevServerState:M,IsManaged:N,ListDevServerStates:k,RebuildPlugin:P,RestartDevServer:R,StartDevServer:G,StartDevServerForPath:J,StopDevServer:x},Symbol.toStringTag,{value:"Module"}));function W(t,e){return r.ByID(1867216983,t,e).then(n=>g(n))}function Z(){return r.ByID(3418650705).then(t=>Y(t))}function H(t,e){return r.ByID(4138610615,t,e).then(n=>g(n))}function K(t){return r.ByID(3055914536,t)}function Q(t){return r.ByID(1502487629,t)}const X=f.LogEntry$1.createFrom,g=s.Array(X),Y=s.Array(s.Any),$=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:W,ListStreams:Z,SearchLogs:H,Subscribe:K,Unsubscribe:Q},Symbol.toStringTag,{value:"Module"}));class l{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 n=typeof e=="string"?JSON.parse(e):e;return new l(n)}}class u{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const n=ee;let a=typeof e=="string"?JSON.parse(e):e;return"details"in a&&(a.details=n(a.details)),new u(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 p),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new l),"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 n=te,a=ne,D=ie,m=ae,v=S;let i=typeof e=="string"?JSON.parse(e):e;return"process"in i&&(i.process=n(i.process)),"repositories"in i&&(i.repositories=a(i.repositories)),"endpoints"in i&&(i.endpoints=D(i.endpoints)),"plugins"in i&&(i.plugins=m(i.plugins)),"lastError"in i&&(i.lastError=v(i.lastError)),new y(i)}}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 n=S;let a=typeof e=="string"?JSON.parse(e):e;return"lastError"in a&&(a.lastError=n(a.lastError)),new h(a)}}class p{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 n=typeof e=="string"?JSON.parse(e):e;return new p(n)}}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 n=typeof e=="string"?JSON.parse(e):e;return new d(n)}}const ee=s.Map(s.Any,s.Any),te=p.createFrom,re=d.createFrom,ne=s.Array(re),ie=l.createFrom,se=h.createFrom,ae=s.Array(se),oe=u.createFrom,S=s.Nullable(oe);function ce(){return r.ByID(678226073).then(t=>ye(t))}function le(){return r.ByID(1706570792)}function pe(t){return r.ByID(2957909098,t).then(e=>he(e))}function fe(t){return r.ByID(473489213,t)}function ue(t,e){return r.ByID(3778694836,t,e)}const ye=y.createFrom,he=s.Array(s.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=V;exports.DiagnosticsClient=E;exports.GetInstanceInfo=ce;exports.GetOperatingSystem=le;exports.OpenFileSelectionDialog=pe;exports.PluginLogManager=$;exports.SaveFileDialog=fe;exports.UtilsClient=b;exports.WriteFileContent=ue;
|
package/dist/api.js
CHANGED
|
@@ -1,283 +1,280 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return i(3503478684, e);
|
|
10
|
-
}
|
|
11
|
-
const St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1
|
+
import { s as Ot, a as wt, g as It, b as _t, c as jt, d as Et, e as Lt, f as Ct, h as Nt, i as Mt, j as kt } from "./servicewrapper-Q1ww3DUo.js";
|
|
2
|
+
import { A as a, a as c, N as b, M as D } from "./index-zyAgCXOO.js";
|
|
3
|
+
import { B as n } from "./calls-BvZkVSse.js";
|
|
4
|
+
import { D as F, L as T, a as O } from "./models-DU8pTcoZ.js";
|
|
5
|
+
function w(e) {
|
|
6
|
+
return n(3503478684, e);
|
|
7
|
+
}
|
|
8
|
+
const ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
9
|
__proto__: null,
|
|
13
|
-
DetectLanguage:
|
|
10
|
+
DetectLanguage: w
|
|
14
11
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15
|
-
function
|
|
16
|
-
return
|
|
12
|
+
function I(e, t) {
|
|
13
|
+
return n(2691208406, e, t);
|
|
17
14
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
15
|
+
function _(e, t) {
|
|
16
|
+
return n(3932965591, e, t);
|
|
20
17
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
18
|
+
function j(e, t) {
|
|
19
|
+
return n(1686862755, e, t);
|
|
23
20
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
21
|
+
function E(e, t, i) {
|
|
22
|
+
return n(3705442919, e, t, i);
|
|
26
23
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
24
|
+
function L(e) {
|
|
25
|
+
return n(3024854267, e);
|
|
29
26
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
27
|
+
function C(e) {
|
|
28
|
+
return n(3423289677, e);
|
|
32
29
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
30
|
+
function N(e) {
|
|
31
|
+
return n(158417611, e);
|
|
35
32
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
33
|
+
function M(e) {
|
|
34
|
+
return n(3413815733, e);
|
|
38
35
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
36
|
+
function k(e, t) {
|
|
37
|
+
return n(2047870999, e, t);
|
|
41
38
|
}
|
|
42
|
-
const
|
|
39
|
+
const dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
40
|
__proto__: null,
|
|
44
|
-
Debug:
|
|
45
|
-
Error:
|
|
46
|
-
Info:
|
|
47
|
-
Log:
|
|
48
|
-
ReadLog:
|
|
49
|
-
ReportStartupReady:
|
|
50
|
-
StartTail:
|
|
51
|
-
StopTail:
|
|
52
|
-
Warn:
|
|
41
|
+
Debug: I,
|
|
42
|
+
Error: _,
|
|
43
|
+
Info: j,
|
|
44
|
+
Log: E,
|
|
45
|
+
ReadLog: L,
|
|
46
|
+
ReportStartupReady: C,
|
|
47
|
+
StartTail: N,
|
|
48
|
+
StopTail: M,
|
|
49
|
+
Warn: k
|
|
53
50
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
54
|
-
function
|
|
55
|
-
return
|
|
51
|
+
function P(e, t) {
|
|
52
|
+
return n(712656304, e, t).then((i) => W(i));
|
|
56
53
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
54
|
+
function R(e) {
|
|
55
|
+
return n(4153226260, e).then((t) => o(t));
|
|
59
56
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
57
|
+
function x(e) {
|
|
58
|
+
return n(1859413816, e);
|
|
62
59
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
60
|
+
function A() {
|
|
61
|
+
return n(2707386443).then((e) => Z(e));
|
|
65
62
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
63
|
+
function G(e) {
|
|
64
|
+
return n(2381063937, e);
|
|
68
65
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
66
|
+
function J(e) {
|
|
67
|
+
return n(123659362, e).then((t) => o(t));
|
|
71
68
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
69
|
+
function z(e) {
|
|
70
|
+
return n(709599671, e).then((t) => o(t));
|
|
74
71
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
72
|
+
function U(e, t) {
|
|
73
|
+
return n(2105869281, e, t).then((i) => o(i));
|
|
77
74
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
75
|
+
function V(e) {
|
|
76
|
+
return n(1371062537, e);
|
|
80
77
|
}
|
|
81
|
-
const
|
|
78
|
+
const B = T.createFrom, W = a(B), o = F.createFrom, Z = a(o), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82
79
|
__proto__: null,
|
|
83
|
-
GetDevServerLogs:
|
|
84
|
-
GetDevServerState:
|
|
85
|
-
IsManaged:
|
|
86
|
-
ListDevServerStates:
|
|
87
|
-
RebuildPlugin:
|
|
88
|
-
RestartDevServer:
|
|
89
|
-
StartDevServer:
|
|
90
|
-
StartDevServerForPath:
|
|
91
|
-
StopDevServer:
|
|
80
|
+
GetDevServerLogs: P,
|
|
81
|
+
GetDevServerState: R,
|
|
82
|
+
IsManaged: x,
|
|
83
|
+
ListDevServerStates: A,
|
|
84
|
+
RebuildPlugin: G,
|
|
85
|
+
RestartDevServer: J,
|
|
86
|
+
StartDevServer: z,
|
|
87
|
+
StartDevServerForPath: U,
|
|
88
|
+
StopDevServer: V
|
|
92
89
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
93
|
-
function
|
|
94
|
-
return
|
|
90
|
+
function q(e, t) {
|
|
91
|
+
return n(1867216983, e, t).then((i) => g(i));
|
|
95
92
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
93
|
+
function H() {
|
|
94
|
+
return n(3418650705).then((e) => $(e));
|
|
98
95
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
96
|
+
function K(e, t) {
|
|
97
|
+
return n(4138610615, e, t).then((i) => g(i));
|
|
101
98
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
99
|
+
function Q(e) {
|
|
100
|
+
return n(3055914536, e);
|
|
104
101
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
102
|
+
function X(e) {
|
|
103
|
+
return n(1502487629, e);
|
|
107
104
|
}
|
|
108
|
-
const
|
|
105
|
+
const Y = O.createFrom, g = a(Y), $ = a(c), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
109
106
|
__proto__: null,
|
|
110
|
-
GetLogs:
|
|
111
|
-
ListStreams:
|
|
112
|
-
SearchLogs:
|
|
113
|
-
Subscribe:
|
|
114
|
-
Unsubscribe:
|
|
107
|
+
GetLogs: q,
|
|
108
|
+
ListStreams: H,
|
|
109
|
+
SearchLogs: K,
|
|
110
|
+
Subscribe: Q,
|
|
111
|
+
Unsubscribe: X
|
|
115
112
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
116
|
-
class
|
|
113
|
+
class l {
|
|
114
|
+
browser;
|
|
115
|
+
vite;
|
|
116
|
+
hmr;
|
|
117
|
+
mcp;
|
|
118
|
+
control;
|
|
119
|
+
health;
|
|
117
120
|
/** Creates a new Endpoints instance. */
|
|
118
121
|
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
122
|
"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
123
|
}
|
|
127
124
|
/**
|
|
128
125
|
* Creates a new Endpoints instance from a string or object.
|
|
129
126
|
*/
|
|
130
127
|
static createFrom(t = {}) {
|
|
131
|
-
let
|
|
132
|
-
return new
|
|
128
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
129
|
+
return new l(i);
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
|
-
class
|
|
132
|
+
class f {
|
|
133
|
+
code;
|
|
134
|
+
message;
|
|
135
|
+
details;
|
|
136
136
|
/** Creates a new Error instance. */
|
|
137
137
|
constructor(t = {}) {
|
|
138
|
-
n(this, "code");
|
|
139
|
-
n(this, "message");
|
|
140
|
-
n(this, "details");
|
|
141
138
|
"code" in t || (this.code = ""), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
142
139
|
}
|
|
143
140
|
/**
|
|
144
141
|
* Creates a new Error instance from a string or object.
|
|
145
142
|
*/
|
|
146
143
|
static createFrom(t = {}) {
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
return "details" in
|
|
144
|
+
const i = tt;
|
|
145
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
146
|
+
return "details" in s && (s.details = i(s.details)), new f(s);
|
|
150
147
|
}
|
|
151
148
|
}
|
|
152
|
-
class
|
|
149
|
+
class u {
|
|
150
|
+
schemaVersion;
|
|
151
|
+
workspaceID;
|
|
152
|
+
instanceID;
|
|
153
|
+
generation;
|
|
154
|
+
kind;
|
|
155
|
+
channel;
|
|
156
|
+
displayName;
|
|
157
|
+
stateRoot;
|
|
158
|
+
process;
|
|
159
|
+
version;
|
|
160
|
+
commit;
|
|
161
|
+
repositories;
|
|
162
|
+
endpoints;
|
|
163
|
+
plugins;
|
|
164
|
+
readiness;
|
|
165
|
+
lastError;
|
|
166
|
+
startedAt;
|
|
153
167
|
/** Creates a new InstanceDescriptor instance. */
|
|
154
168
|
constructor(t = {}) {
|
|
155
|
-
|
|
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);
|
|
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 p()), "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);
|
|
173
170
|
}
|
|
174
171
|
/**
|
|
175
172
|
* Creates a new InstanceDescriptor instance from a string or object.
|
|
176
173
|
*/
|
|
177
174
|
static createFrom(t = {}) {
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
return "process" in
|
|
175
|
+
const i = et, s = it, S = rt, y = at, v = m;
|
|
176
|
+
let r = typeof t == "string" ? JSON.parse(t) : t;
|
|
177
|
+
return "process" in r && (r.process = i(r.process)), "repositories" in r && (r.repositories = s(r.repositories)), "endpoints" in r && (r.endpoints = S(r.endpoints)), "plugins" in r && (r.plugins = y(r.plugins)), "lastError" in r && (r.lastError = v(r.lastError)), new u(r);
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
|
-
class
|
|
180
|
+
class h {
|
|
181
|
+
id;
|
|
182
|
+
version;
|
|
183
|
+
source;
|
|
184
|
+
generation;
|
|
185
|
+
mode;
|
|
186
|
+
buildStatus;
|
|
187
|
+
viteStatus;
|
|
188
|
+
rpcStatus;
|
|
189
|
+
controllerStatus;
|
|
190
|
+
operationID;
|
|
191
|
+
lastError;
|
|
184
192
|
/** Creates a new PluginState instance. */
|
|
185
193
|
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
194
|
"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
195
|
}
|
|
199
196
|
/**
|
|
200
197
|
* Creates a new PluginState instance from a string or object.
|
|
201
198
|
*/
|
|
202
199
|
static createFrom(t = {}) {
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
return "lastError" in
|
|
200
|
+
const i = m;
|
|
201
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
202
|
+
return "lastError" in s && (s.lastError = i(s.lastError)), new h(s);
|
|
206
203
|
}
|
|
207
204
|
}
|
|
208
|
-
class
|
|
205
|
+
class p {
|
|
206
|
+
pid;
|
|
207
|
+
startIdentity;
|
|
208
|
+
executable;
|
|
209
|
+
workspaceID;
|
|
210
|
+
generation;
|
|
211
|
+
role;
|
|
212
|
+
source;
|
|
209
213
|
/** Creates a new ProcessIdentity instance. */
|
|
210
214
|
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
215
|
"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
216
|
}
|
|
220
217
|
/**
|
|
221
218
|
* Creates a new ProcessIdentity instance from a string or object.
|
|
222
219
|
*/
|
|
223
220
|
static createFrom(t = {}) {
|
|
224
|
-
let
|
|
225
|
-
return new
|
|
221
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
222
|
+
return new p(i);
|
|
226
223
|
}
|
|
227
224
|
}
|
|
228
|
-
class
|
|
225
|
+
class d {
|
|
226
|
+
id;
|
|
227
|
+
path;
|
|
228
|
+
ref;
|
|
229
|
+
commit;
|
|
229
230
|
/** Creates a new RepositoryResolution instance. */
|
|
230
231
|
constructor(t = {}) {
|
|
231
|
-
n(this, "id");
|
|
232
|
-
n(this, "path");
|
|
233
|
-
n(this, "ref");
|
|
234
|
-
n(this, "commit");
|
|
235
232
|
"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
233
|
}
|
|
237
234
|
/**
|
|
238
235
|
* Creates a new RepositoryResolution instance from a string or object.
|
|
239
236
|
*/
|
|
240
237
|
static createFrom(t = {}) {
|
|
241
|
-
let
|
|
242
|
-
return new
|
|
238
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
239
|
+
return new d(i);
|
|
243
240
|
}
|
|
244
241
|
}
|
|
245
|
-
const
|
|
246
|
-
function
|
|
247
|
-
return
|
|
242
|
+
const tt = D(c, c), et = p.createFrom, nt = d.createFrom, it = a(nt), rt = l.createFrom, st = h.createFrom, at = a(st), ot = f.createFrom, m = b(ot);
|
|
243
|
+
function St() {
|
|
244
|
+
return n(678226073).then((e) => ct(e));
|
|
248
245
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
246
|
+
function yt() {
|
|
247
|
+
return n(1706570792);
|
|
251
248
|
}
|
|
252
|
-
function
|
|
253
|
-
return
|
|
249
|
+
function vt(e) {
|
|
250
|
+
return n(2957909098, e).then((t) => lt(t));
|
|
254
251
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
252
|
+
function bt(e) {
|
|
253
|
+
return n(473489213, e);
|
|
257
254
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
255
|
+
function Dt(e, t) {
|
|
256
|
+
return n(3778694836, e, t);
|
|
260
257
|
}
|
|
261
|
-
const
|
|
258
|
+
const ct = u.createFrom, lt = a(c);
|
|
262
259
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
260
|
+
Ot as DataClient,
|
|
261
|
+
gt as DevServerManager,
|
|
262
|
+
dt as DiagnosticsClient,
|
|
263
|
+
wt as ExecClient,
|
|
264
|
+
St as GetInstanceInfo,
|
|
265
|
+
yt as GetOperatingSystem,
|
|
266
|
+
It as GraphClient,
|
|
267
|
+
_t as LogsClient,
|
|
268
|
+
jt as MetricClient,
|
|
269
|
+
Et as NetworkerClient,
|
|
270
|
+
vt as OpenFileSelectionDialog,
|
|
271
|
+
mt as PluginLogManager,
|
|
272
|
+
Lt as PluginManager,
|
|
273
|
+
Ct as ResourceClient,
|
|
274
|
+
bt as SaveFileDialog,
|
|
275
|
+
Nt as SettingsClient,
|
|
276
|
+
Mt as SettingsProvider,
|
|
277
|
+
kt as UIClient,
|
|
278
|
+
ht as UtilsClient,
|
|
279
|
+
Dt as WriteFileContent
|
|
283
280
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("./index-BVi9X4oU.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,m;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw m}}),m={},y(function(){throw 42},null,S)}catch(r){r!==m&&(y=null)}else y=null;var k=/^\s*class\b/,E=function(e){try{var t=M.call(e);return k.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,B="[object Object]",N="[object Function]",H="[object GeneratorFunction]",q="[object HTMLAllCollection]",z="[object HTML document.all class]",G="[object HTMLCollection]",J=typeof Symbol=="function"&&!!Symbol.toStringTag,W=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var K=document.all;w.call(K)===w.call(document.all)&&(O=function(e){if((W||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===q||t===z||t===G||t===B)&&e("")==null}catch{}return!1})}function Q(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==m)return!1}return!E(r)&&R(r)}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J)return R(r);if(E(r))return!1;var e=w.call(r);return e!==N&&e!==H&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?Q:V;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+X(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=I(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Y(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n?.(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>j(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>j(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>j(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>j(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{n.cancel(t)}):setTimeout(()=>{n.cancel(t)},e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=I(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function I(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function j(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function X(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Y(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const Z=h.newRuntimeCaller(h.objectNames.Call),$=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,_=0,ee=0;function te(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=te(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=Z(_,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),$(ee,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function re(r,...e){return T({methodName:r,args:e})}function U(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:U,ByName:re,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=U;exports.calls=ne;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as B, n as M, o as x, h as I, R as H } from "./index-zyAgCXOO.js";
|
|
2
2
|
var D = Function.prototype.toString, p = typeof Reflect == "object" && Reflect !== null && Reflect.apply, g, j;
|
|
3
3
|
if (typeof p == "function" && typeof Object.defineProperty == "function")
|
|
4
4
|
try {
|
|
@@ -91,7 +91,7 @@ class v extends Error {
|
|
|
91
91
|
super((n ?? "Unhandled rejection in cancelled promise.") + " Reason: " + $(t), { cause: t }), this.promise = e, this.name = "CancelledRejectionError";
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
const u = Symbol("barrier"), T = Symbol("cancelImpl"), P = (w = Symbol.species) !== null && w !== void 0 ? w : Symbol("speciesPolyfill");
|
|
94
|
+
const u = /* @__PURE__ */ Symbol("barrier"), T = /* @__PURE__ */ Symbol("cancelImpl"), P = (w = Symbol.species) !== null && w !== void 0 ? w : /* @__PURE__ */ Symbol("speciesPolyfill");
|
|
95
95
|
class l extends Promise {
|
|
96
96
|
/**
|
|
97
97
|
* Creates a new `CancellablePromise`.
|
|
@@ -259,7 +259,9 @@ class l extends Promise {
|
|
|
259
259
|
* @returns This promise, for method chaining.
|
|
260
260
|
*/
|
|
261
261
|
cancelOn(e) {
|
|
262
|
-
return e.aborted ? this.cancel(e.reason) : e.addEventListener("abort", () =>
|
|
262
|
+
return e.aborted ? this.cancel(e.reason) : e.addEventListener("abort", () => {
|
|
263
|
+
this.cancel(e.reason);
|
|
264
|
+
}, { capture: !0 }), this;
|
|
263
265
|
}
|
|
264
266
|
/**
|
|
265
267
|
* Attaches callbacks for the resolution and/or rejection of the `CancellablePromise`.
|
|
@@ -316,7 +318,7 @@ class l extends Promise {
|
|
|
316
318
|
});
|
|
317
319
|
}, async (c) => {
|
|
318
320
|
try {
|
|
319
|
-
return n
|
|
321
|
+
return n?.(c);
|
|
320
322
|
} finally {
|
|
321
323
|
await this.cancel(c);
|
|
322
324
|
}
|
|
@@ -456,7 +458,11 @@ class l extends Promise {
|
|
|
456
458
|
static timeout(e, t) {
|
|
457
459
|
const n = new l(() => {
|
|
458
460
|
});
|
|
459
|
-
return AbortSignal && typeof AbortSignal == "function" && AbortSignal.timeout && typeof AbortSignal.timeout == "function" ? AbortSignal.timeout(e).addEventListener("abort", () =>
|
|
461
|
+
return AbortSignal && typeof AbortSignal == "function" && AbortSignal.timeout && typeof AbortSignal.timeout == "function" ? AbortSignal.timeout(e).addEventListener("abort", () => {
|
|
462
|
+
n.cancel(t);
|
|
463
|
+
}) : setTimeout(() => {
|
|
464
|
+
n.cancel(t);
|
|
465
|
+
}, e), n;
|
|
460
466
|
}
|
|
461
467
|
static sleep(e, t) {
|
|
462
468
|
return new l((n) => {
|
|
@@ -6,4 +6,4 @@ export interface SettingsContextType {
|
|
|
6
6
|
export declare const SettingsContext: React.Context<SettingsContextType | undefined>;
|
|
7
7
|
export declare const SettingsProvider: ({ children }: {
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
}) =>
|
|
9
|
+
}) => React.JSX.Element;
|