@omniviewdev/runtime 0.10.0 → 0.12.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 +12 -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 +34 -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 +2970 -2878
- 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
package/dist/logs.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CancellablePromise } from '@wailsio/runtime';
|
|
2
|
+
import { LogSession, LogSessionOptions } from './bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models';
|
|
3
|
+
import { Value, ResourceReference, AccessRoute } from './resource/v2/domain';
|
|
4
|
+
export { CloseSession, GetSession, GetSupportedResources, HasPlugin, ListPlugins, ListSessions, SendCommand, UpdateSessionOptions, } from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper';
|
|
5
|
+
/** Canonical input to the encoded JSON bridge; resource bodies are never native JSON projections. */
|
|
6
|
+
export interface LogSessionRequest {
|
|
7
|
+
resource_key: string;
|
|
8
|
+
resource_id: string;
|
|
9
|
+
resource_data?: Value;
|
|
10
|
+
reference?: ResourceReference;
|
|
11
|
+
route?: AccessRoute;
|
|
12
|
+
options: LogSessionOptions;
|
|
13
|
+
}
|
|
14
|
+
export declare function CreateSession(plugin: string, connectionID: string, options: LogSessionRequest): CancellablePromise<LogSession | null>;
|
package/dist/metric.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CancellablePromise } from '@wailsio/runtime';
|
|
2
|
+
import { MetricShape, QueryResponse } from './bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models';
|
|
3
|
+
import { Value, ResourceReference, AccessRoute } from './resource/v2/domain';
|
|
4
|
+
export { GetProviders, GetProvidersForResource, HasPlugin, ListPlugins, Unsubscribe } from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper';
|
|
5
|
+
/** SDK query metadata plus the canonical, optional resource target. Times are RFC 3339; step is nanoseconds. */
|
|
6
|
+
export interface MetricQueryRequest {
|
|
7
|
+
resource_key: string;
|
|
8
|
+
resource_id: string;
|
|
9
|
+
resource_namespace: string;
|
|
10
|
+
resource_data?: Value;
|
|
11
|
+
reference?: ResourceReference;
|
|
12
|
+
route?: AccessRoute;
|
|
13
|
+
metric_ids: string[];
|
|
14
|
+
shape: MetricShape;
|
|
15
|
+
start_time: string;
|
|
16
|
+
end_time: string;
|
|
17
|
+
step: number;
|
|
18
|
+
params?: Record<string, string>;
|
|
19
|
+
}
|
|
20
|
+
export interface SubscribeRequest {
|
|
21
|
+
resource_key: string;
|
|
22
|
+
resource_id: string;
|
|
23
|
+
resource_namespace: string;
|
|
24
|
+
resource_data?: Value;
|
|
25
|
+
reference?: ResourceReference;
|
|
26
|
+
route?: AccessRoute;
|
|
27
|
+
metric_ids: string[];
|
|
28
|
+
interval: number;
|
|
29
|
+
params?: Record<string, string>;
|
|
30
|
+
}
|
|
31
|
+
export declare function Query(plugin: string, connectionID: string, request: MetricQueryRequest): CancellablePromise<QueryResponse | null>;
|
|
32
|
+
export declare function QueryAll(connectionID: string, request: MetricQueryRequest): CancellablePromise<{
|
|
33
|
+
[plugin: string]: QueryResponse | null;
|
|
34
|
+
}>;
|
|
35
|
+
export declare function Subscribe(plugin: string, connectionID: string, request: SubscribeRequest): CancellablePromise<string>;
|
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { M as T, a as s, A as l } from "./index-zyAgCXOO.js";
|
|
2
|
+
import { af as E } from "./models-UwESEW2B.js";
|
|
3
|
+
class a {
|
|
4
|
+
Provider;
|
|
5
|
+
Connection;
|
|
6
|
+
ResourceType;
|
|
7
|
+
Object;
|
|
8
|
+
Action;
|
|
9
|
+
Scope;
|
|
10
|
+
/** Creates a new Target instance. */
|
|
11
|
+
constructor(i = {}) {
|
|
12
|
+
"Provider" in i || (this.Provider = ""), "Connection" in i || (this.Connection = ""), "ResourceType" in i || (this.ResourceType = ""), "Object" in i || (this.Object = ""), "Action" in i || (this.Action = ""), "Scope" in i || (this.Scope = {}), Object.assign(this, i);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new Target instance from a string or object.
|
|
16
|
+
*/
|
|
17
|
+
static createFrom(i = {}) {
|
|
18
|
+
const t = z;
|
|
19
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
20
|
+
return "Scope" in n && (n.Scope = t(n.Scope)), new a(n);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const z = T(s, s);
|
|
24
|
+
class f {
|
|
25
|
+
enabled;
|
|
26
|
+
port;
|
|
27
|
+
endpoint;
|
|
28
|
+
token;
|
|
29
|
+
blockConnectionsByDefault;
|
|
30
|
+
globalPreset;
|
|
31
|
+
userPresets;
|
|
32
|
+
/** Creates a new ConfigView instance. */
|
|
33
|
+
constructor(i = {}) {
|
|
34
|
+
"enabled" in i || (this.enabled = !1), "port" in i || (this.port = 0), "endpoint" in i || (this.endpoint = ""), "token" in i || (this.token = ""), "blockConnectionsByDefault" in i || (this.blockConnectionsByDefault = !1), "globalPreset" in i || (this.globalPreset = ""), "userPresets" in i || (this.userPresets = []), Object.assign(this, i);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new ConfigView instance from a string or object.
|
|
38
|
+
*/
|
|
39
|
+
static createFrom(i = {}) {
|
|
40
|
+
const t = M;
|
|
41
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
42
|
+
return "userPresets" in n && (n.userPresets = t(n.userPresets)), new f(n);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class d {
|
|
46
|
+
id;
|
|
47
|
+
approved;
|
|
48
|
+
/**
|
|
49
|
+
* approved | denied | timeout | cancelled
|
|
50
|
+
*/
|
|
51
|
+
reason;
|
|
52
|
+
/** Creates a new ConfirmationResolved instance. */
|
|
53
|
+
constructor(i = {}) {
|
|
54
|
+
"id" in i || (this.id = ""), "approved" in i || (this.approved = !1), "reason" in i || (this.reason = ""), Object.assign(this, i);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new ConfirmationResolved instance from a string or object.
|
|
58
|
+
*/
|
|
59
|
+
static createFrom(i = {}) {
|
|
60
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
61
|
+
return new d(t);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
class p {
|
|
65
|
+
pluginID;
|
|
66
|
+
pluginName;
|
|
67
|
+
connectionID;
|
|
68
|
+
connectionName;
|
|
69
|
+
access;
|
|
70
|
+
effectiveAccess;
|
|
71
|
+
preset;
|
|
72
|
+
effectivePreset;
|
|
73
|
+
/** Creates a new ConnectionPolicyView instance. */
|
|
74
|
+
constructor(i = {}) {
|
|
75
|
+
"pluginID" in i || (this.pluginID = ""), "pluginName" in i || (this.pluginName = ""), "connectionID" in i || (this.connectionID = ""), "connectionName" in i || (this.connectionName = ""), "access" in i || (this.access = ""), "effectiveAccess" in i || (this.effectiveAccess = !1), "preset" in i || (this.preset = ""), "effectivePreset" in i || (this.effectivePreset = ""), Object.assign(this, i);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates a new ConnectionPolicyView instance from a string or object.
|
|
79
|
+
*/
|
|
80
|
+
static createFrom(i = {}) {
|
|
81
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
82
|
+
return new p(t);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
class c {
|
|
86
|
+
id;
|
|
87
|
+
mcpName;
|
|
88
|
+
pluginID;
|
|
89
|
+
pluginName;
|
|
90
|
+
connectionID;
|
|
91
|
+
connectionName;
|
|
92
|
+
/**
|
|
93
|
+
* ArgumentsJSON is text, not embedded JSON: JavaScript must not round
|
|
94
|
+
* integer literals or erase negative zero before showing consent.
|
|
95
|
+
*/
|
|
96
|
+
argumentsJSON;
|
|
97
|
+
requestedAt;
|
|
98
|
+
origin;
|
|
99
|
+
credentialID;
|
|
100
|
+
sessionID;
|
|
101
|
+
invocationID;
|
|
102
|
+
target;
|
|
103
|
+
policyRevision;
|
|
104
|
+
catalogRevision;
|
|
105
|
+
/** Creates a new PendingConfirmation instance. */
|
|
106
|
+
constructor(i = {}) {
|
|
107
|
+
"id" in i || (this.id = ""), "mcpName" in i || (this.mcpName = ""), "pluginID" in i || (this.pluginID = ""), "pluginName" in i || (this.pluginName = ""), "connectionID" in i || (this.connectionID = ""), "connectionName" in i || (this.connectionName = ""), "argumentsJSON" in i || (this.argumentsJSON = ""), "requestedAt" in i || (this.requestedAt = "0001-01-01T00:00:00.000Z"), "origin" in i || (this.origin = ""), "credentialID" in i || (this.credentialID = ""), "sessionID" in i || (this.sessionID = ""), "invocationID" in i || (this.invocationID = ""), "target" in i || (this.target = new a()), "policyRevision" in i || (this.policyRevision = 0), "catalogRevision" in i || (this.catalogRevision = 0), Object.assign(this, i);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new PendingConfirmation instance from a string or object.
|
|
111
|
+
*/
|
|
112
|
+
static createFrom(i = {}) {
|
|
113
|
+
const t = U;
|
|
114
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
115
|
+
return "target" in n && (n.target = t(n.target)), new c(n);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
class h {
|
|
119
|
+
name;
|
|
120
|
+
builtIn;
|
|
121
|
+
toolCount;
|
|
122
|
+
/** Creates a new PresetView instance. */
|
|
123
|
+
constructor(i = {}) {
|
|
124
|
+
"name" in i || (this.name = ""), "builtIn" in i || (this.builtIn = !1), "toolCount" in i || (this.toolCount = 0), Object.assign(this, i);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new PresetView instance from a string or object.
|
|
128
|
+
*/
|
|
129
|
+
static createFrom(i = {}) {
|
|
130
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
131
|
+
return new h(t);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class g {
|
|
135
|
+
pluginID;
|
|
136
|
+
connectionID;
|
|
137
|
+
/** Creates a new Scope instance. */
|
|
138
|
+
constructor(i = {}) {
|
|
139
|
+
"pluginID" in i || (this.pluginID = ""), "connectionID" in i || (this.connectionID = ""), Object.assign(this, i);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Creates a new Scope instance from a string or object.
|
|
143
|
+
*/
|
|
144
|
+
static createFrom(i = {}) {
|
|
145
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
146
|
+
return new g(t);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
class m {
|
|
150
|
+
enabled;
|
|
151
|
+
running;
|
|
152
|
+
endpoint;
|
|
153
|
+
error;
|
|
154
|
+
/** Creates a new Status instance. */
|
|
155
|
+
constructor(i = {}) {
|
|
156
|
+
"enabled" in i || (this.enabled = !1), "running" in i || (this.running = !1), "endpoint" in i || (this.endpoint = ""), "error" in i || (this.error = ""), Object.assign(this, i);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Creates a new Status instance from a string or object.
|
|
160
|
+
*/
|
|
161
|
+
static createFrom(i = {}) {
|
|
162
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
163
|
+
return new m(t);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class S {
|
|
167
|
+
enabled;
|
|
168
|
+
confirm;
|
|
169
|
+
/** Creates a new ToolOverride instance. */
|
|
170
|
+
constructor(i = {}) {
|
|
171
|
+
Object.assign(this, i);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Creates a new ToolOverride instance from a string or object.
|
|
175
|
+
*/
|
|
176
|
+
static createFrom(i = {}) {
|
|
177
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
178
|
+
return new S(t);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
class b {
|
|
182
|
+
mcpName;
|
|
183
|
+
pluginID;
|
|
184
|
+
connectionID;
|
|
185
|
+
pluginName;
|
|
186
|
+
name;
|
|
187
|
+
title;
|
|
188
|
+
description;
|
|
189
|
+
scope;
|
|
190
|
+
status;
|
|
191
|
+
builtIn;
|
|
192
|
+
readOnly;
|
|
193
|
+
listed;
|
|
194
|
+
ready;
|
|
195
|
+
destructive;
|
|
196
|
+
enabled;
|
|
197
|
+
/**
|
|
198
|
+
* override | preset | inherited | plugin-disabled | connection-blocked
|
|
199
|
+
*/
|
|
200
|
+
enabledSource;
|
|
201
|
+
confirm;
|
|
202
|
+
/**
|
|
203
|
+
* override | global-override | default
|
|
204
|
+
*/
|
|
205
|
+
confirmSource;
|
|
206
|
+
overrideEnabled;
|
|
207
|
+
overrideConfirm;
|
|
208
|
+
/** Creates a new ToolView instance. */
|
|
209
|
+
constructor(i = {}) {
|
|
210
|
+
"mcpName" in i || (this.mcpName = ""), "pluginID" in i || (this.pluginID = ""), "connectionID" in i || (this.connectionID = ""), "pluginName" in i || (this.pluginName = ""), "name" in i || (this.name = ""), "title" in i || (this.title = ""), "description" in i || (this.description = ""), "scope" in i || (this.scope = ""), "status" in i || (this.status = ""), "builtIn" in i || (this.builtIn = !1), "readOnly" in i || (this.readOnly = !1), "listed" in i || (this.listed = !1), "ready" in i || (this.ready = !1), "destructive" in i || (this.destructive = !1), "enabled" in i || (this.enabled = !1), "enabledSource" in i || (this.enabledSource = ""), "confirm" in i || (this.confirm = !1), "confirmSource" in i || (this.confirmSource = ""), "overrideEnabled" in i || (this.overrideEnabled = null), "overrideConfirm" in i || (this.overrideConfirm = null), Object.assign(this, i);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Creates a new ToolView instance from a string or object.
|
|
214
|
+
*/
|
|
215
|
+
static createFrom(i = {}) {
|
|
216
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
217
|
+
return new b(t);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const M = l(s), U = a.createFrom, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
221
|
+
__proto__: null,
|
|
222
|
+
ConfigView: f,
|
|
223
|
+
ConfirmationResolved: d,
|
|
224
|
+
ConnectionPolicyView: p,
|
|
225
|
+
PendingConfirmation: c,
|
|
226
|
+
PresetView: h,
|
|
227
|
+
Scope: g,
|
|
228
|
+
Status: m,
|
|
229
|
+
ToolOverride: S,
|
|
230
|
+
ToolView: b
|
|
231
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
232
|
+
class I {
|
|
233
|
+
sessionId;
|
|
234
|
+
sourceWindow;
|
|
235
|
+
dragType;
|
|
236
|
+
/**
|
|
237
|
+
* Payload is the JSON of the base-ui TabDragPayload; it is forwarded to
|
|
238
|
+
* target windows verbatim.
|
|
239
|
+
*/
|
|
240
|
+
payload;
|
|
241
|
+
/** Creates a new DragBegin instance. */
|
|
242
|
+
constructor(i = {}) {
|
|
243
|
+
"sessionId" in i || (this.sessionId = ""), "sourceWindow" in i || (this.sourceWindow = ""), "dragType" in i || (this.dragType = ""), "payload" in i || (this.payload = ""), Object.assign(this, i);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Creates a new DragBegin instance from a string or object.
|
|
247
|
+
*/
|
|
248
|
+
static createFrom(i = {}) {
|
|
249
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
250
|
+
return new I(t);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
class y {
|
|
254
|
+
sessionId;
|
|
255
|
+
sourceWindow;
|
|
256
|
+
dragType;
|
|
257
|
+
/** Creates a new DragBeginEvent instance. */
|
|
258
|
+
constructor(i = {}) {
|
|
259
|
+
"sessionId" in i || (this.sessionId = ""), "sourceWindow" in i || (this.sourceWindow = ""), "dragType" in i || (this.dragType = ""), Object.assign(this, i);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Creates a new DragBeginEvent instance from a string or object.
|
|
263
|
+
*/
|
|
264
|
+
static createFrom(i = {}) {
|
|
265
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
266
|
+
return new y(t);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
class O {
|
|
270
|
+
sessionId;
|
|
271
|
+
/** Creates a new DragEndEvent instance. */
|
|
272
|
+
constructor(i = {}) {
|
|
273
|
+
"sessionId" in i || (this.sessionId = ""), Object.assign(this, i);
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Creates a new DragEndEvent instance from a string or object.
|
|
277
|
+
*/
|
|
278
|
+
static createFrom(i = {}) {
|
|
279
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
280
|
+
return new O(t);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
class w {
|
|
284
|
+
sessionId;
|
|
285
|
+
targetWindow;
|
|
286
|
+
/** Creates a new DragLeaveEvent instance. */
|
|
287
|
+
constructor(i = {}) {
|
|
288
|
+
"sessionId" in i || (this.sessionId = ""), "targetWindow" in i || (this.targetWindow = ""), Object.assign(this, i);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Creates a new DragLeaveEvent instance from a string or object.
|
|
292
|
+
*/
|
|
293
|
+
static createFrom(i = {}) {
|
|
294
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
295
|
+
return new w(t);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
class v {
|
|
299
|
+
sessionId;
|
|
300
|
+
targetWindow;
|
|
301
|
+
/**
|
|
302
|
+
* Payload is DragBegin.Payload verbatim (JSON of TabDragPayload).
|
|
303
|
+
*/
|
|
304
|
+
payload;
|
|
305
|
+
clientX;
|
|
306
|
+
clientY;
|
|
307
|
+
/** Creates a new DragPointerEvent instance. */
|
|
308
|
+
constructor(i = {}) {
|
|
309
|
+
"sessionId" in i || (this.sessionId = ""), "targetWindow" in i || (this.targetWindow = ""), "payload" in i || (this.payload = ""), "clientX" in i || (this.clientX = 0), "clientY" in i || (this.clientY = 0), Object.assign(this, i);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Creates a new DragPointerEvent instance from a string or object.
|
|
313
|
+
*/
|
|
314
|
+
static createFrom(i = {}) {
|
|
315
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
316
|
+
return new v(t);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
class D {
|
|
320
|
+
accepted;
|
|
321
|
+
targetWindow;
|
|
322
|
+
targetInstanceId;
|
|
323
|
+
/** Creates a new DropResult instance. */
|
|
324
|
+
constructor(i = {}) {
|
|
325
|
+
"accepted" in i || (this.accepted = !1), "targetWindow" in i || (this.targetWindow = ""), "targetInstanceId" in i || (this.targetInstanceId = ""), Object.assign(this, i);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Creates a new DropResult instance from a string or object.
|
|
329
|
+
*/
|
|
330
|
+
static createFrom(i = {}) {
|
|
331
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
332
|
+
return new D(t);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
class r {
|
|
336
|
+
name;
|
|
337
|
+
kind;
|
|
338
|
+
/**
|
|
339
|
+
* Focused is true for the most recently focused window.
|
|
340
|
+
*/
|
|
341
|
+
focused;
|
|
342
|
+
/** Creates a new Info instance. */
|
|
343
|
+
constructor(i = {}) {
|
|
344
|
+
"name" in i || (this.name = ""), "kind" in i || (this.kind = ""), "focused" in i || (this.focused = !1), Object.assign(this, i);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Creates a new Info instance from a string or object.
|
|
348
|
+
*/
|
|
349
|
+
static createFrom(i = {}) {
|
|
350
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
351
|
+
return new r(t);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
var W = /* @__PURE__ */ ((e) => (e.$zero = "", e.KindWorkspace = "workspace", e.KindPanel = "panel", e))(W || {});
|
|
355
|
+
class N {
|
|
356
|
+
kind;
|
|
357
|
+
/**
|
|
358
|
+
* InitialState is the opaque per-slot state handed to the new window
|
|
359
|
+
* before it loads (same format as SaveState slots).
|
|
360
|
+
*/
|
|
361
|
+
initialState;
|
|
362
|
+
/**
|
|
363
|
+
* When HasPosition is set the new window's top-left is placed near the
|
|
364
|
+
* pointer at (ClientX, ClientY) in AnchorWindow's client space.
|
|
365
|
+
*/
|
|
366
|
+
anchorWindow;
|
|
367
|
+
clientX;
|
|
368
|
+
clientY;
|
|
369
|
+
hasPosition;
|
|
370
|
+
/**
|
|
371
|
+
* Width and Height of the new window; 0 selects the kind's default.
|
|
372
|
+
*/
|
|
373
|
+
width;
|
|
374
|
+
height;
|
|
375
|
+
/** Creates a new OpenRequest instance. */
|
|
376
|
+
constructor(i = {}) {
|
|
377
|
+
"kind" in i || (this.kind = ""), "initialState" in i || (this.initialState = {}), "anchorWindow" in i || (this.anchorWindow = ""), "clientX" in i || (this.clientX = 0), "clientY" in i || (this.clientY = 0), "hasPosition" in i || (this.hasPosition = !1), "width" in i || (this.width = 0), "height" in i || (this.height = 0), Object.assign(this, i);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Creates a new OpenRequest instance from a string or object.
|
|
381
|
+
*/
|
|
382
|
+
static createFrom(i = {}) {
|
|
383
|
+
const t = k;
|
|
384
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
385
|
+
return "initialState" in n && (n.initialState = t(n.initialState)), new N(n);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
class j {
|
|
389
|
+
name;
|
|
390
|
+
kind;
|
|
391
|
+
states;
|
|
392
|
+
/** Creates a new WindowClosedEvent instance. */
|
|
393
|
+
constructor(i = {}) {
|
|
394
|
+
"name" in i || (this.name = ""), "kind" in i || (this.kind = ""), "states" in i || (this.states = {}), Object.assign(this, i);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Creates a new WindowClosedEvent instance from a string or object.
|
|
398
|
+
*/
|
|
399
|
+
static createFrom(i = {}) {
|
|
400
|
+
const t = k;
|
|
401
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
402
|
+
return "states" in n && (n.states = t(n.states)), new j(n);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
class u {
|
|
406
|
+
windows;
|
|
407
|
+
/** Creates a new WindowsChangedEvent instance. */
|
|
408
|
+
constructor(i = {}) {
|
|
409
|
+
"windows" in i || (this.windows = []), Object.assign(this, i);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Creates a new WindowsChangedEvent instance from a string or object.
|
|
413
|
+
*/
|
|
414
|
+
static createFrom(i = {}) {
|
|
415
|
+
const t = Y;
|
|
416
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
417
|
+
return "windows" in n && (n.windows = t(n.windows)), new u(n);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
const k = T(s, s), X = r.createFrom, Y = l(X), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
421
|
+
__proto__: null,
|
|
422
|
+
DragBegin: I,
|
|
423
|
+
DragBeginEvent: y,
|
|
424
|
+
DragEndEvent: O,
|
|
425
|
+
DragLeaveEvent: w,
|
|
426
|
+
DragPointerEvent: v,
|
|
427
|
+
DropResult: D,
|
|
428
|
+
Info: r,
|
|
429
|
+
Kind: W,
|
|
430
|
+
OpenRequest: N,
|
|
431
|
+
WindowClosedEvent: j,
|
|
432
|
+
WindowsChangedEvent: u
|
|
433
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
434
|
+
class o {
|
|
435
|
+
file;
|
|
436
|
+
line;
|
|
437
|
+
column;
|
|
438
|
+
message;
|
|
439
|
+
/** Creates a new BuildError instance. */
|
|
440
|
+
constructor(i = {}) {
|
|
441
|
+
"file" in i || (this.file = ""), "line" in i || (this.line = 0), "column" in i || (this.column = 0), "message" in i || (this.message = ""), Object.assign(this, i);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Creates a new BuildError instance from a string or object.
|
|
445
|
+
*/
|
|
446
|
+
static createFrom(i = {}) {
|
|
447
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
448
|
+
return new o(t);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
var R = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevProcessStatusIdle = "idle", e.DevProcessStatusStarting = "starting", e.DevProcessStatusBuilding = "building", e.DevProcessStatusRunning = "running", e.DevProcessStatusReady = "ready", e.DevProcessStatusError = "error", e.DevProcessStatusStopped = "stopped", e.DevProcessStatusNotApplicable = "n/a", e))(R || {});
|
|
452
|
+
class F {
|
|
453
|
+
pluginID;
|
|
454
|
+
errors;
|
|
455
|
+
/** Creates a new DevServerErrorPayload instance. */
|
|
456
|
+
constructor(i = {}) {
|
|
457
|
+
"pluginID" in i || (this.pluginID = ""), "errors" in i || (this.errors = []), Object.assign(this, i);
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Creates a new DevServerErrorPayload instance from a string or object.
|
|
461
|
+
*/
|
|
462
|
+
static createFrom(i = {}) {
|
|
463
|
+
const t = x;
|
|
464
|
+
let n = typeof i == "string" ? JSON.parse(i) : i;
|
|
465
|
+
return "errors" in n && (n.errors = t(n.errors)), new F(n);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
var C = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevServerModeIdle = "idle", e.DevServerModeManaged = "managed", e))(C || {});
|
|
469
|
+
class P {
|
|
470
|
+
pluginID;
|
|
471
|
+
mode;
|
|
472
|
+
devPath;
|
|
473
|
+
vitePort;
|
|
474
|
+
viteURL;
|
|
475
|
+
viteStatus;
|
|
476
|
+
goStatus;
|
|
477
|
+
lastBuildDuration;
|
|
478
|
+
lastBuildTime;
|
|
479
|
+
lastError;
|
|
480
|
+
grpcConnected;
|
|
481
|
+
generation;
|
|
482
|
+
hmrURL;
|
|
483
|
+
buildStatus;
|
|
484
|
+
rpcStatus;
|
|
485
|
+
controllerStatus;
|
|
486
|
+
ready;
|
|
487
|
+
/** Creates a new DevServerState instance. */
|
|
488
|
+
constructor(i = {}) {
|
|
489
|
+
"pluginID" in i || (this.pluginID = ""), "mode" in i || (this.mode = ""), "devPath" in i || (this.devPath = ""), "vitePort" in i || (this.vitePort = 0), "viteURL" in i || (this.viteURL = ""), "viteStatus" in i || (this.viteStatus = ""), "goStatus" in i || (this.goStatus = ""), "lastBuildDuration" in i || (this.lastBuildDuration = E.$zero), "lastBuildTime" in i || (this.lastBuildTime = ""), "lastError" in i || (this.lastError = ""), "grpcConnected" in i || (this.grpcConnected = !1), "generation" in i || (this.generation = ""), "hmrURL" in i || (this.hmrURL = ""), "buildStatus" in i || (this.buildStatus = ""), "rpcStatus" in i || (this.rpcStatus = ""), "controllerStatus" in i || (this.controllerStatus = ""), "ready" in i || (this.ready = !1), Object.assign(this, i);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Creates a new DevServerState instance from a string or object.
|
|
493
|
+
*/
|
|
494
|
+
static createFrom(i = {}) {
|
|
495
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
496
|
+
return new P(t);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
var A = /* @__PURE__ */ ((e) => (e.$zero = "", e.StagePending = "pending", e.StageBuilding = "building", e.StageReady = "ready", e.StageError = "error", e.StageStopped = "stopped", e.StageNotApplicable = "n/a", e))(A || {});
|
|
500
|
+
let L = class B {
|
|
501
|
+
timestamp;
|
|
502
|
+
/**
|
|
503
|
+
* "vite" | "go-build" | "go-watch" | "manager"
|
|
504
|
+
*/
|
|
505
|
+
source;
|
|
506
|
+
/**
|
|
507
|
+
* "info" | "warn" | "error" | "debug"
|
|
508
|
+
*/
|
|
509
|
+
level;
|
|
510
|
+
message;
|
|
511
|
+
pluginID;
|
|
512
|
+
/** Creates a new LogEntry instance. */
|
|
513
|
+
constructor(i = {}) {
|
|
514
|
+
"timestamp" in i || (this.timestamp = ""), "source" in i || (this.source = ""), "level" in i || (this.level = ""), "message" in i || (this.message = ""), "pluginID" in i || (this.pluginID = ""), Object.assign(this, i);
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Creates a new LogEntry instance from a string or object.
|
|
518
|
+
*/
|
|
519
|
+
static createFrom(i = {}) {
|
|
520
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
521
|
+
return new B(t);
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
const q = o.createFrom, x = l(q), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
|
+
__proto__: null,
|
|
526
|
+
BuildError: o,
|
|
527
|
+
DevProcessStatus: R,
|
|
528
|
+
DevServerErrorPayload: F,
|
|
529
|
+
DevServerMode: C,
|
|
530
|
+
DevServerState: P,
|
|
531
|
+
LifecycleStage: A,
|
|
532
|
+
LogEntry: L
|
|
533
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
534
|
+
class J {
|
|
535
|
+
timestamp;
|
|
536
|
+
pluginID;
|
|
537
|
+
/**
|
|
538
|
+
* "plugin" (from hclog) — extensible
|
|
539
|
+
*/
|
|
540
|
+
source;
|
|
541
|
+
/**
|
|
542
|
+
* "trace" | "debug" | "info" | "warn" | "error"
|
|
543
|
+
*/
|
|
544
|
+
level;
|
|
545
|
+
message;
|
|
546
|
+
/** Creates a new LogEntry instance. */
|
|
547
|
+
constructor(i = {}) {
|
|
548
|
+
"timestamp" in i || (this.timestamp = ""), "pluginID" in i || (this.pluginID = ""), "source" in i || (this.source = ""), "level" in i || (this.level = ""), "message" in i || (this.message = ""), Object.assign(this, i);
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Creates a new LogEntry instance from a string or object.
|
|
552
|
+
*/
|
|
553
|
+
static createFrom(i = {}) {
|
|
554
|
+
let t = typeof i == "string" ? JSON.parse(i) : i;
|
|
555
|
+
return new J(t);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
559
|
+
__proto__: null,
|
|
560
|
+
LogEntry: J
|
|
561
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
562
|
+
export {
|
|
563
|
+
o as B,
|
|
564
|
+
f as C,
|
|
565
|
+
D,
|
|
566
|
+
r as I,
|
|
567
|
+
L,
|
|
568
|
+
c as P,
|
|
569
|
+
m as S,
|
|
570
|
+
b as T,
|
|
571
|
+
p as a,
|
|
572
|
+
h as b,
|
|
573
|
+
P as c,
|
|
574
|
+
J as d,
|
|
575
|
+
R as e,
|
|
576
|
+
F as f,
|
|
577
|
+
C as g,
|
|
578
|
+
A as h,
|
|
579
|
+
H as i,
|
|
580
|
+
V as j,
|
|
581
|
+
K as k,
|
|
582
|
+
Q as m
|
|
583
|
+
};
|