@omniviewdev/runtime 0.10.0 → 0.11.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 +7 -6
- package/dist/api.js +205 -133
- package/dist/bindings/events/index.d.ts +20 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
- package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
- package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
- package/dist/compat/types.d.ts +1 -1
- package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
- package/dist/context/drawer/types.d.ts +11 -21
- package/dist/context/operations/OperationsContext.d.ts +5 -5
- package/dist/exec.d.ts +5 -0
- package/dist/graph-JDqyJC_i.js +10 -0
- package/dist/graph-wHun0Bkz.cjs +1 -0
- package/dist/hooks/connection/index.d.ts +2 -1
- package/dist/hooks/connection/useConnection.d.ts +9 -30
- package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
- package/dist/hooks/connection/useConnections.d.ts +3 -2
- package/dist/hooks/connection/useScopeValues.d.ts +9 -0
- package/dist/hooks/logs/useLogSession.d.ts +4 -1
- package/dist/hooks/metric/useMetricStream.d.ts +6 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
- package/dist/hooks/networker/types.d.ts +5 -2
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
- package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
- package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
- package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
- package/dist/hooks/resource/useEventBatcher.d.ts +11 -47
- package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
- package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
- package/dist/hooks/resource/useResource.d.ts +7 -58
- package/dist/hooks/resource/useResourceActions.d.ts +9 -58
- package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
- package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
- package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
- package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
- package/dist/hooks/resource/useResourceType.d.ts +6 -19
- package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
- package/dist/hooks/resource/useResources.d.ts +32 -60
- package/dist/hooks/resource/useStreamAction.d.ts +4 -8
- package/dist/hooks/resource/useWatchState.d.ts +15 -22
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2985 -2906
- package/dist/logs.d.ts +14 -0
- package/dist/metric.d.ts +35 -0
- package/dist/models-Cg1YRHQm.js +583 -0
- package/dist/models-DSGyy8lg.cjs +1 -0
- package/dist/models-UwESEW2B.js +1232 -0
- package/dist/models-dzj-SsFZ.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +13 -8
- package/dist/models.js +118 -209
- package/dist/networker.d.ts +31 -0
- package/dist/resource/v2/ancillary.d.ts +161 -0
- package/dist/resource/v2/client.d.ts +57 -0
- package/dist/resource/v2/domain.d.ts +204 -0
- package/dist/resource/v2/graph-client.d.ts +7 -0
- package/dist/resource/v2/graph.d.ts +35 -0
- package/dist/resource/v2/host.d.ts +129 -0
- package/dist/resource/v2/requestJSON.d.ts +2 -0
- package/dist/resource/v2/value.d.ts +9 -0
- package/dist/resourceQueryKeys.d.ts +8 -4
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/search.d.ts +9 -11
- package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
- package/dist/servicewrapper-Bda7yi8z.js +684 -0
- package/dist/types/watch.d.ts +48 -21
- package/dist/utils/activeSyncAggregator.d.ts +2 -2
- package/package.json +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
- package/dist/compat/resource.d.ts +0 -4
- package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
- package/dist/legacyEnum-CKqyRmbX.js +0 -15
- package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
- package/dist/models-BxypsesT.cjs +0 -1
- package/dist/models-C6jzDokQ.js +0 -347
- package/dist/models-CT4kHj47.js +0 -2444
- package/dist/models-DQl7tqts.cjs +0 -1
- package/dist/servicewrapper-C6SURWw1.js +0 -850
- package/dist/servicewrapper-COMjQHnY.cjs +0 -1
- package/dist/utils/resourceKey.d.ts +0 -12
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WatchState as Generated } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models';
|
|
2
|
-
export * from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models';
|
|
3
|
-
export declare const WatchState: typeof Generated;
|
|
4
|
-
export type WatchState = Generated;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type UseConnectionOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* The name of the plugin we're interacting with
|
|
4
|
-
*/
|
|
5
|
-
pluginID?: string;
|
|
6
|
-
/**
|
|
7
|
-
* The ID of the connection
|
|
8
|
-
*/
|
|
9
|
-
connectionID: string;
|
|
10
|
-
enabled?: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Get and retreive connections from a plugin's connection manager..
|
|
14
|
-
*/
|
|
15
|
-
export declare const useConnectionNamespaces: ({ pluginID: explicitPluginID, connectionID, enabled }: UseConnectionOptions) => {
|
|
16
|
-
/**
|
|
17
|
-
* Get the connection
|
|
18
|
-
*/
|
|
19
|
-
namespaces: import('@tanstack/react-query').UseQueryResult<string[], Error>;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function o(t, a) {
|
|
2
|
-
const s = {
|
|
3
|
-
...t
|
|
4
|
-
};
|
|
5
|
-
for (const [e, n] of Object.entries(t)) {
|
|
6
|
-
if (e === "$zero" || !e.startsWith(a))
|
|
7
|
-
continue;
|
|
8
|
-
const c = e.slice(a.length).replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase();
|
|
9
|
-
c && (s[c] = n);
|
|
10
|
-
}
|
|
11
|
-
return s;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
o as w
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function n(t,s){const a={...t};for(const[e,i]of Object.entries(t)){if(e==="$zero"||!e.startsWith(s))continue;const c=e.slice(s.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();c&&(a[c]=i)}return a}exports.withLegacyNames=n;
|
package/dist/models-BxypsesT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./index-BVi9X4oU.cjs"),F=require("./models-DQl7tqts.cjs");class g{sessionId;sourceWindow;dragType;payload;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),"payload"in t||(this.payload=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new g(e)}}class h{sessionId;sourceWindow;dragType;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new h(e)}}class f{sessionId;constructor(t={}){"sessionId"in t||(this.sessionId=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new f(e)}}class c{sessionId;targetWindow;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new c(e)}}class m{sessionId;targetWindow;payload;clientX;clientY;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),"payload"in t||(this.payload=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new m(e)}}class l{accepted;targetWindow;targetInstanceId;constructor(t={}){"accepted"in t||(this.accepted=!1),"targetWindow"in t||(this.targetWindow=""),"targetInstanceId"in t||(this.targetInstanceId=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new l(e)}}class a{name;kind;focused;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"focused"in t||(this.focused=!1),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new a(e)}}var v=(i=>(i.$zero="",i.KindWorkspace="workspace",i.KindPanel="panel",i))(v||{});class S{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(t={}){"kind"in t||(this.kind=""),"initialState"in t||(this.initialState={}),"anchorWindow"in t||(this.anchorWindow=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),"hasPosition"in t||(this.hasPosition=!1),"width"in t||(this.width=0),"height"in t||(this.height=0),Object.assign(this,t)}static createFrom(t={}){const e=b;let n=typeof t=="string"?JSON.parse(t):t;return"initialState"in n&&(n.initialState=e(n.initialState)),new S(n)}}class y{name;kind;states;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"states"in t||(this.states={}),Object.assign(this,t)}static createFrom(t={}){const e=b;let n=typeof t=="string"?JSON.parse(t):t;return"states"in n&&(n.states=e(n.states)),new y(n)}}class w{windows;constructor(t={}){"windows"in t||(this.windows=[]),Object.assign(this,t)}static createFrom(t={}){const e=N;let n=typeof t=="string"?JSON.parse(t):t;return"windows"in n&&(n.windows=e(n.windows)),new w(n)}}const b=s.Map(s.Any,s.Any),W=a.createFrom,N=s.Array(W),T=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:g,DragBeginEvent:h,DragEndEvent:f,DragLeaveEvent:c,DragPointerEvent:m,DropResult:l,Info:a,Kind:v,OpenRequest:S,WindowClosedEvent:y,WindowsChangedEvent:w},Symbol.toStringTag,{value:"Module"}));class r{file;line;column;message;constructor(t={}){"file"in t||(this.file=""),"line"in t||(this.line=0),"column"in t||(this.column=0),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new r(e)}}var I=(i=>(i.$zero="",i.DevProcessStatusIdle="idle",i.DevProcessStatusStarting="starting",i.DevProcessStatusBuilding="building",i.DevProcessStatusRunning="running",i.DevProcessStatusReady="ready",i.DevProcessStatusError="error",i.DevProcessStatusStopped="stopped",i.DevProcessStatusNotApplicable="n/a",i))(I||{});class o{pluginID;errors;constructor(t={}){"pluginID"in t||(this.pluginID=""),"errors"in t||(this.errors=[]),Object.assign(this,t)}static createFrom(t={}){const e=J;let n=typeof t=="string"?JSON.parse(t):t;return"errors"in n&&(n.errors=e(n.errors)),new o(n)}}var O=(i=>(i.$zero="",i.DevServerModeIdle="idle",i.DevServerModeManaged="managed",i))(O||{});class d{pluginID;mode;devPath;vitePort;viteURL;viteStatus;goStatus;lastBuildDuration;lastBuildTime;lastError;grpcConnected;generation;hmrURL;buildStatus;rpcStatus;controllerStatus;ready;constructor(t={}){"pluginID"in t||(this.pluginID=""),"mode"in t||(this.mode=""),"devPath"in t||(this.devPath=""),"vitePort"in t||(this.vitePort=0),"viteURL"in t||(this.viteURL=""),"viteStatus"in t||(this.viteStatus=""),"goStatus"in t||(this.goStatus=""),"lastBuildDuration"in t||(this.lastBuildDuration=F.Duration.$zero),"lastBuildTime"in t||(this.lastBuildTime=""),"lastError"in t||(this.lastError=""),"grpcConnected"in t||(this.grpcConnected=!1),"generation"in t||(this.generation=""),"hmrURL"in t||(this.hmrURL=""),"buildStatus"in t||(this.buildStatus=""),"rpcStatus"in t||(this.rpcStatus=""),"controllerStatus"in t||(this.controllerStatus=""),"ready"in t||(this.ready=!1),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new d(e)}}var u=(i=>(i.$zero="",i.StagePending="pending",i.StageBuilding="building",i.StageReady="ready",i.StageError="error",i.StageStopped="stopped",i.StageNotApplicable="n/a",i))(u||{});let j=class D{timestamp;source;level;message;pluginID;constructor(t={}){"timestamp"in t||(this.timestamp=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),"pluginID"in t||(this.pluginID=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new D(e)}};const P=r.createFrom,J=s.Array(P),E=Object.freeze(Object.defineProperty({__proto__:null,BuildError:r,DevProcessStatus:I,DevServerErrorPayload:o,DevServerMode:O,DevServerState:d,LifecycleStage:u,LogEntry:j},Symbol.toStringTag,{value:"Module"}));class p{timestamp;pluginID;source;level;message;constructor(t={}){"timestamp"in t||(this.timestamp=""),"pluginID"in t||(this.pluginID=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new p(e)}}const k=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:p},Symbol.toStringTag,{value:"Module"}));exports.BuildError=r;exports.DevProcessStatus=I;exports.DevServerErrorPayload=o;exports.DevServerMode=O;exports.DevServerState=d;exports.DropResult=l;exports.Info=a;exports.LifecycleStage=u;exports.LogEntry=j;exports.LogEntry$1=p;exports.models=E;exports.models$1=k;exports.models$2=T;
|
package/dist/models-C6jzDokQ.js
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { M as W, a as y, A as I } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { b8 as D } from "./models-CT4kHj47.js";
|
|
3
|
-
class r {
|
|
4
|
-
sessionId;
|
|
5
|
-
sourceWindow;
|
|
6
|
-
dragType;
|
|
7
|
-
/**
|
|
8
|
-
* Payload is the JSON of the base-ui TabDragPayload; it is forwarded to
|
|
9
|
-
* target windows verbatim.
|
|
10
|
-
*/
|
|
11
|
-
payload;
|
|
12
|
-
/** Creates a new DragBegin instance. */
|
|
13
|
-
constructor(t = {}) {
|
|
14
|
-
"sessionId" in t || (this.sessionId = ""), "sourceWindow" in t || (this.sourceWindow = ""), "dragType" in t || (this.dragType = ""), "payload" in t || (this.payload = ""), Object.assign(this, t);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Creates a new DragBegin instance from a string or object.
|
|
18
|
-
*/
|
|
19
|
-
static createFrom(t = {}) {
|
|
20
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
21
|
-
return new r(e);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
class l {
|
|
25
|
-
sessionId;
|
|
26
|
-
sourceWindow;
|
|
27
|
-
dragType;
|
|
28
|
-
/** Creates a new DragBeginEvent instance. */
|
|
29
|
-
constructor(t = {}) {
|
|
30
|
-
"sessionId" in t || (this.sessionId = ""), "sourceWindow" in t || (this.sourceWindow = ""), "dragType" in t || (this.dragType = ""), Object.assign(this, t);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Creates a new DragBeginEvent instance from a string or object.
|
|
34
|
-
*/
|
|
35
|
-
static createFrom(t = {}) {
|
|
36
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
37
|
-
return new l(e);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
class o {
|
|
41
|
-
sessionId;
|
|
42
|
-
/** Creates a new DragEndEvent instance. */
|
|
43
|
-
constructor(t = {}) {
|
|
44
|
-
"sessionId" in t || (this.sessionId = ""), Object.assign(this, t);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates a new DragEndEvent instance from a string or object.
|
|
48
|
-
*/
|
|
49
|
-
static createFrom(t = {}) {
|
|
50
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
51
|
-
return new o(e);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
class d {
|
|
55
|
-
sessionId;
|
|
56
|
-
targetWindow;
|
|
57
|
-
/** Creates a new DragLeaveEvent instance. */
|
|
58
|
-
constructor(t = {}) {
|
|
59
|
-
"sessionId" in t || (this.sessionId = ""), "targetWindow" in t || (this.targetWindow = ""), Object.assign(this, t);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Creates a new DragLeaveEvent instance from a string or object.
|
|
63
|
-
*/
|
|
64
|
-
static createFrom(t = {}) {
|
|
65
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
66
|
-
return new d(e);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
class p {
|
|
70
|
-
sessionId;
|
|
71
|
-
targetWindow;
|
|
72
|
-
/**
|
|
73
|
-
* Payload is DragBegin.Payload verbatim (JSON of TabDragPayload).
|
|
74
|
-
*/
|
|
75
|
-
payload;
|
|
76
|
-
clientX;
|
|
77
|
-
clientY;
|
|
78
|
-
/** Creates a new DragPointerEvent instance. */
|
|
79
|
-
constructor(t = {}) {
|
|
80
|
-
"sessionId" in t || (this.sessionId = ""), "targetWindow" in t || (this.targetWindow = ""), "payload" in t || (this.payload = ""), "clientX" in t || (this.clientX = 0), "clientY" in t || (this.clientY = 0), Object.assign(this, t);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Creates a new DragPointerEvent instance from a string or object.
|
|
84
|
-
*/
|
|
85
|
-
static createFrom(t = {}) {
|
|
86
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
87
|
-
return new p(e);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
class g {
|
|
91
|
-
accepted;
|
|
92
|
-
targetWindow;
|
|
93
|
-
targetInstanceId;
|
|
94
|
-
/** Creates a new DropResult instance. */
|
|
95
|
-
constructor(t = {}) {
|
|
96
|
-
"accepted" in t || (this.accepted = !1), "targetWindow" in t || (this.targetWindow = ""), "targetInstanceId" in t || (this.targetInstanceId = ""), Object.assign(this, t);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Creates a new DropResult instance from a string or object.
|
|
100
|
-
*/
|
|
101
|
-
static createFrom(t = {}) {
|
|
102
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
103
|
-
return new g(e);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
class s {
|
|
107
|
-
name;
|
|
108
|
-
kind;
|
|
109
|
-
/**
|
|
110
|
-
* Focused is true for the most recently focused window.
|
|
111
|
-
*/
|
|
112
|
-
focused;
|
|
113
|
-
/** Creates a new Info instance. */
|
|
114
|
-
constructor(t = {}) {
|
|
115
|
-
"name" in t || (this.name = ""), "kind" in t || (this.kind = ""), "focused" in t || (this.focused = !1), Object.assign(this, t);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Creates a new Info instance from a string or object.
|
|
119
|
-
*/
|
|
120
|
-
static createFrom(t = {}) {
|
|
121
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
122
|
-
return new s(e);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
var O = /* @__PURE__ */ ((i) => (i.$zero = "", i.KindWorkspace = "workspace", i.KindPanel = "panel", i))(O || {});
|
|
126
|
-
class h {
|
|
127
|
-
kind;
|
|
128
|
-
/**
|
|
129
|
-
* InitialState is the opaque per-slot state handed to the new window
|
|
130
|
-
* before it loads (same format as SaveState slots).
|
|
131
|
-
*/
|
|
132
|
-
initialState;
|
|
133
|
-
/**
|
|
134
|
-
* When HasPosition is set the new window's top-left is placed near the
|
|
135
|
-
* pointer at (ClientX, ClientY) in AnchorWindow's client space.
|
|
136
|
-
*/
|
|
137
|
-
anchorWindow;
|
|
138
|
-
clientX;
|
|
139
|
-
clientY;
|
|
140
|
-
hasPosition;
|
|
141
|
-
/**
|
|
142
|
-
* Width and Height of the new window; 0 selects the kind's default.
|
|
143
|
-
*/
|
|
144
|
-
width;
|
|
145
|
-
height;
|
|
146
|
-
/** Creates a new OpenRequest instance. */
|
|
147
|
-
constructor(t = {}) {
|
|
148
|
-
"kind" in t || (this.kind = ""), "initialState" in t || (this.initialState = {}), "anchorWindow" in t || (this.anchorWindow = ""), "clientX" in t || (this.clientX = 0), "clientY" in t || (this.clientY = 0), "hasPosition" in t || (this.hasPosition = !1), "width" in t || (this.width = 0), "height" in t || (this.height = 0), Object.assign(this, t);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Creates a new OpenRequest instance from a string or object.
|
|
152
|
-
*/
|
|
153
|
-
static createFrom(t = {}) {
|
|
154
|
-
const e = b;
|
|
155
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
156
|
-
return "initialState" in n && (n.initialState = e(n.initialState)), new h(n);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
class f {
|
|
160
|
-
name;
|
|
161
|
-
kind;
|
|
162
|
-
states;
|
|
163
|
-
/** Creates a new WindowClosedEvent instance. */
|
|
164
|
-
constructor(t = {}) {
|
|
165
|
-
"name" in t || (this.name = ""), "kind" in t || (this.kind = ""), "states" in t || (this.states = {}), Object.assign(this, t);
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Creates a new WindowClosedEvent instance from a string or object.
|
|
169
|
-
*/
|
|
170
|
-
static createFrom(t = {}) {
|
|
171
|
-
const e = b;
|
|
172
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
173
|
-
return "states" in n && (n.states = e(n.states)), new f(n);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
class c {
|
|
177
|
-
windows;
|
|
178
|
-
/** Creates a new WindowsChangedEvent instance. */
|
|
179
|
-
constructor(t = {}) {
|
|
180
|
-
"windows" in t || (this.windows = []), Object.assign(this, t);
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Creates a new WindowsChangedEvent instance from a string or object.
|
|
184
|
-
*/
|
|
185
|
-
static createFrom(t = {}) {
|
|
186
|
-
const e = T;
|
|
187
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
188
|
-
return "windows" in n && (n.windows = e(n.windows)), new c(n);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
const b = W(y, y), N = s.createFrom, T = I(N), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
192
|
-
__proto__: null,
|
|
193
|
-
DragBegin: r,
|
|
194
|
-
DragBeginEvent: l,
|
|
195
|
-
DragEndEvent: o,
|
|
196
|
-
DragLeaveEvent: d,
|
|
197
|
-
DragPointerEvent: p,
|
|
198
|
-
DropResult: g,
|
|
199
|
-
Info: s,
|
|
200
|
-
Kind: O,
|
|
201
|
-
OpenRequest: h,
|
|
202
|
-
WindowClosedEvent: f,
|
|
203
|
-
WindowsChangedEvent: c
|
|
204
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
205
|
-
class a {
|
|
206
|
-
file;
|
|
207
|
-
line;
|
|
208
|
-
column;
|
|
209
|
-
message;
|
|
210
|
-
/** Creates a new BuildError instance. */
|
|
211
|
-
constructor(t = {}) {
|
|
212
|
-
"file" in t || (this.file = ""), "line" in t || (this.line = 0), "column" in t || (this.column = 0), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Creates a new BuildError instance from a string or object.
|
|
216
|
-
*/
|
|
217
|
-
static createFrom(t = {}) {
|
|
218
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
219
|
-
return new a(e);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
var u = /* @__PURE__ */ ((i) => (i.$zero = "", i.DevProcessStatusIdle = "idle", i.DevProcessStatusStarting = "starting", i.DevProcessStatusBuilding = "building", i.DevProcessStatusRunning = "running", i.DevProcessStatusReady = "ready", i.DevProcessStatusError = "error", i.DevProcessStatusStopped = "stopped", i.DevProcessStatusNotApplicable = "n/a", i))(u || {});
|
|
223
|
-
class m {
|
|
224
|
-
pluginID;
|
|
225
|
-
errors;
|
|
226
|
-
/** Creates a new DevServerErrorPayload instance. */
|
|
227
|
-
constructor(t = {}) {
|
|
228
|
-
"pluginID" in t || (this.pluginID = ""), "errors" in t || (this.errors = []), Object.assign(this, t);
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Creates a new DevServerErrorPayload instance from a string or object.
|
|
232
|
-
*/
|
|
233
|
-
static createFrom(t = {}) {
|
|
234
|
-
const e = k;
|
|
235
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
236
|
-
return "errors" in n && (n.errors = e(n.errors)), new m(n);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
var v = /* @__PURE__ */ ((i) => (i.$zero = "", i.DevServerModeIdle = "idle", i.DevServerModeManaged = "managed", i))(v || {});
|
|
240
|
-
class S {
|
|
241
|
-
pluginID;
|
|
242
|
-
mode;
|
|
243
|
-
devPath;
|
|
244
|
-
vitePort;
|
|
245
|
-
viteURL;
|
|
246
|
-
viteStatus;
|
|
247
|
-
goStatus;
|
|
248
|
-
lastBuildDuration;
|
|
249
|
-
lastBuildTime;
|
|
250
|
-
lastError;
|
|
251
|
-
grpcConnected;
|
|
252
|
-
generation;
|
|
253
|
-
hmrURL;
|
|
254
|
-
buildStatus;
|
|
255
|
-
rpcStatus;
|
|
256
|
-
controllerStatus;
|
|
257
|
-
ready;
|
|
258
|
-
/** Creates a new DevServerState instance. */
|
|
259
|
-
constructor(t = {}) {
|
|
260
|
-
"pluginID" in t || (this.pluginID = ""), "mode" in t || (this.mode = ""), "devPath" in t || (this.devPath = ""), "vitePort" in t || (this.vitePort = 0), "viteURL" in t || (this.viteURL = ""), "viteStatus" in t || (this.viteStatus = ""), "goStatus" in t || (this.goStatus = ""), "lastBuildDuration" in t || (this.lastBuildDuration = D.$zero), "lastBuildTime" in t || (this.lastBuildTime = ""), "lastError" in t || (this.lastError = ""), "grpcConnected" in t || (this.grpcConnected = !1), "generation" in t || (this.generation = ""), "hmrURL" in t || (this.hmrURL = ""), "buildStatus" in t || (this.buildStatus = ""), "rpcStatus" in t || (this.rpcStatus = ""), "controllerStatus" in t || (this.controllerStatus = ""), "ready" in t || (this.ready = !1), Object.assign(this, t);
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Creates a new DevServerState instance from a string or object.
|
|
264
|
-
*/
|
|
265
|
-
static createFrom(t = {}) {
|
|
266
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
267
|
-
return new S(e);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
var j = /* @__PURE__ */ ((i) => (i.$zero = "", i.StagePending = "pending", i.StageBuilding = "building", i.StageReady = "ready", i.StageError = "error", i.StageStopped = "stopped", i.StageNotApplicable = "n/a", i))(j || {});
|
|
271
|
-
let J = class F {
|
|
272
|
-
timestamp;
|
|
273
|
-
/**
|
|
274
|
-
* "vite" | "go-build" | "go-watch" | "manager"
|
|
275
|
-
*/
|
|
276
|
-
source;
|
|
277
|
-
/**
|
|
278
|
-
* "info" | "warn" | "error" | "debug"
|
|
279
|
-
*/
|
|
280
|
-
level;
|
|
281
|
-
message;
|
|
282
|
-
pluginID;
|
|
283
|
-
/** Creates a new LogEntry instance. */
|
|
284
|
-
constructor(t = {}) {
|
|
285
|
-
"timestamp" in t || (this.timestamp = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), "pluginID" in t || (this.pluginID = ""), Object.assign(this, t);
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Creates a new LogEntry instance from a string or object.
|
|
289
|
-
*/
|
|
290
|
-
static createFrom(t = {}) {
|
|
291
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
292
|
-
return new F(e);
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
const P = a.createFrom, k = I(P), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
296
|
-
__proto__: null,
|
|
297
|
-
BuildError: a,
|
|
298
|
-
DevProcessStatus: u,
|
|
299
|
-
DevServerErrorPayload: m,
|
|
300
|
-
DevServerMode: v,
|
|
301
|
-
DevServerState: S,
|
|
302
|
-
LifecycleStage: j,
|
|
303
|
-
LogEntry: J
|
|
304
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
305
|
-
class w {
|
|
306
|
-
timestamp;
|
|
307
|
-
pluginID;
|
|
308
|
-
/**
|
|
309
|
-
* "plugin" (from hclog) — extensible
|
|
310
|
-
*/
|
|
311
|
-
source;
|
|
312
|
-
/**
|
|
313
|
-
* "trace" | "debug" | "info" | "warn" | "error"
|
|
314
|
-
*/
|
|
315
|
-
level;
|
|
316
|
-
message;
|
|
317
|
-
/** Creates a new LogEntry instance. */
|
|
318
|
-
constructor(t = {}) {
|
|
319
|
-
"timestamp" in t || (this.timestamp = ""), "pluginID" in t || (this.pluginID = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Creates a new LogEntry instance from a string or object.
|
|
323
|
-
*/
|
|
324
|
-
static createFrom(t = {}) {
|
|
325
|
-
let e = typeof t == "string" ? JSON.parse(t) : t;
|
|
326
|
-
return new w(e);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
const M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
330
|
-
__proto__: null,
|
|
331
|
-
LogEntry: w
|
|
332
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
333
|
-
export {
|
|
334
|
-
a as B,
|
|
335
|
-
g as D,
|
|
336
|
-
s as I,
|
|
337
|
-
J as L,
|
|
338
|
-
S as a,
|
|
339
|
-
w as b,
|
|
340
|
-
u as c,
|
|
341
|
-
m as d,
|
|
342
|
-
v as e,
|
|
343
|
-
j as f,
|
|
344
|
-
M as g,
|
|
345
|
-
z as h,
|
|
346
|
-
E as m
|
|
347
|
-
};
|