@lace-cloud/canvas 0.32.0 → 0.33.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/README.md +2 -2
- package/dist/{chunk-PABP6EXP.mjs → chunk-45HRNFCU.mjs} +467 -431
- package/dist/chunk-45HRNFCU.mjs.map +1 -0
- package/dist/engine/index.cjs +465 -429
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +4 -3
- package/dist/engine/index.d.ts +4 -3
- package/dist/engine/index.mjs +1 -1
- package/dist/index.cjs +467 -436
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-B08XJNsq.d.mts → registry-C-aNjCYV.d.mts} +2073 -2059
- package/dist/{registry-B08XJNsq.d.ts → registry-C-aNjCYV.d.ts} +2073 -2059
- package/package.json +18 -9
- package/dist/chunk-PABP6EXP.mjs.map +0 -1
|
@@ -1,1490 +1,380 @@
|
|
|
1
|
-
import { Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView
|
|
1
|
+
import { EngineMethod, EngineStreamMethod, BridgeMethod, MessageBridge, Diagnostic as Diagnostic$1, CanvasArrangement, CanvasView } from '@lace-cloud/proto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
7
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
8
|
+
* or the response type of an API method. For instance:
|
|
9
|
+
*
|
|
10
|
+
* service Foo {
|
|
11
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
12
|
+
* }
|
|
9
13
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
14
|
+
interface Empty {
|
|
15
|
+
}
|
|
16
|
+
declare const Empty: MessageFns$2<Empty>;
|
|
17
|
+
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
18
|
+
type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {} ? {
|
|
19
|
+
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
20
|
+
} : Partial<T>;
|
|
21
|
+
type KeysOfUnion$2<T> = T extends T ? keyof T : never;
|
|
22
|
+
type Exact$2<P, I extends P> = P extends Builtin$2 ? P : P & {
|
|
23
|
+
[K in keyof P]: Exact$2<P[K], I[K]>;
|
|
24
|
+
} & {
|
|
25
|
+
[K in Exclude<keyof I, KeysOfUnion$2<P>>]: never;
|
|
26
|
+
};
|
|
27
|
+
interface MessageFns$2<T> {
|
|
28
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
29
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
30
|
+
fromJSON(object: any): T;
|
|
31
|
+
toJSON(message: T): unknown;
|
|
32
|
+
create<I extends Exact$2<DeepPartial$2<T>, I>>(base?: I): T;
|
|
33
|
+
fromPartial<I extends Exact$2<DeepPartial$2<T>, I>>(object: I): T;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
38
|
+
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
39
|
+
* status' error details, and a command's failure document names it; a
|
|
40
|
+
* client branches on it, never on the message's text. A failure the API
|
|
41
|
+
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
42
|
+
* reason only where that code has one: every code that asks the developer
|
|
43
|
+
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
44
|
+
*
|
|
45
|
+
* The vocabulary is a file of its own, in the engine's package, generated
|
|
46
|
+
* into a Go package of its own (internal/kernel/reason/pb): every CLI package
|
|
47
|
+
* that refuses with a reason names it from there, the execution side's
|
|
48
|
+
* included, without linking the engine's wire. service.proto imports it.
|
|
49
|
+
*/
|
|
50
|
+
declare enum Reason {
|
|
51
|
+
REASON_UNSPECIFIED = 0,
|
|
52
|
+
/**
|
|
53
|
+
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
54
|
+
* module convert and module import: lacification cannot take the tree to
|
|
55
|
+
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
56
|
+
*/
|
|
57
|
+
REASON_NOT_LACE_FORM = 1,
|
|
58
|
+
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
59
|
+
REASON_HASH_MISMATCH = 2,
|
|
60
|
+
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
61
|
+
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
62
|
+
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
63
|
+
REASON_ROOT_LOCKED = 4,
|
|
64
|
+
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
65
|
+
REASON_UNSAVED = 5,
|
|
66
|
+
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
67
|
+
REASON_CONFLICT = 6,
|
|
68
|
+
/**
|
|
69
|
+
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
70
|
+
* (`BundleState.source_refused`).
|
|
71
|
+
* module convert and module import: the tree's tf does not parse, has a
|
|
72
|
+
* non-empty residual report, or its Bundle fails its own validation.
|
|
73
|
+
* module validate, stack apply / stack destroy / registry register: a
|
|
74
|
+
* source the command reads does not parse; apply, destroy and register
|
|
75
|
+
* check it before the certification.
|
|
76
|
+
*/
|
|
77
|
+
REASON_SOURCE_REFUSED = 7,
|
|
78
|
+
/**
|
|
79
|
+
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, module import and module fmt: the authoring
|
|
80
|
+
* root is not inside a git working tree.
|
|
81
|
+
* stack create --source: the directory is not inside a git working tree,
|
|
82
|
+
* so it has no place in a repository to bind the stack to.
|
|
83
|
+
*/
|
|
84
|
+
REASON_NOT_GIT_REPOSITORY = 8,
|
|
85
|
+
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
86
|
+
REASON_GENERATE_IN_PROGRESS = 9,
|
|
87
|
+
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
88
|
+
REASON_NO_ORGANIZATION = 10,
|
|
89
|
+
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
90
|
+
REASON_NO_TEAM = 11,
|
|
91
|
+
/**
|
|
92
|
+
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
93
|
+
* certification.
|
|
94
|
+
*/
|
|
95
|
+
REASON_NO_CERTIFICATION = 12,
|
|
96
|
+
/**
|
|
97
|
+
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
98
|
+
* does not certify the tree on disk — the tree changed since validate,
|
|
99
|
+
* another lace version wrote it, or its files are torn or mixed from two
|
|
100
|
+
* validates. Running validate again replaces it.
|
|
101
|
+
*/
|
|
102
|
+
REASON_STALE_CERTIFICATION = 13,
|
|
103
|
+
/**
|
|
104
|
+
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
105
|
+
* convert / module import / stack preview / stack apply / stack destroy:
|
|
106
|
+
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
107
|
+
* is not available. convert and module import run the pinned terraform
|
|
108
|
+
* through the validate each closes on, apply and destroy through their
|
|
109
|
+
* local plan.
|
|
110
|
+
*/
|
|
111
|
+
REASON_TOOL_MISSING = 14,
|
|
112
|
+
/**
|
|
113
|
+
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
114
|
+
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
115
|
+
* It is a refusal of the batch's content, carried on its GraphError.
|
|
116
|
+
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
117
|
+
* (FailedPrecondition) as such a wire is.
|
|
118
|
+
*/
|
|
119
|
+
REASON_CROSS_SCOPE = 15,
|
|
120
|
+
/**
|
|
121
|
+
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
122
|
+
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
123
|
+
* before any request; or the API refuses the ones sent with its code
|
|
124
|
+
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
125
|
+
*/
|
|
126
|
+
REASON_UNAUTHENTICATED = 16,
|
|
127
|
+
/**
|
|
128
|
+
* REASON_IMPORT_RESIDUAL - module import: a resource in the statefile has no import id the CLI
|
|
129
|
+
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
130
|
+
* writes the import without them. Nothing was written.
|
|
131
|
+
*/
|
|
132
|
+
REASON_IMPORT_RESIDUAL = 17,
|
|
133
|
+
/**
|
|
134
|
+
* REASON_STACK_HAS_STATE - module import: the stack's state already holds resources, and import
|
|
135
|
+
* adopts into an empty stack. Nothing was read or written.
|
|
136
|
+
*/
|
|
137
|
+
REASON_STACK_HAS_STATE = 18,
|
|
138
|
+
/**
|
|
139
|
+
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
140
|
+
* remote, whose URL is the repository a stack's source binding names.
|
|
141
|
+
*/
|
|
142
|
+
REASON_NO_ORIGIN_REMOTE = 19,
|
|
143
|
+
/**
|
|
144
|
+
* REASON_IMPORT_UNDECLARED - module import: the statefile holds resources the converted tree does not
|
|
145
|
+
* declare, named in the failure's `addresses`; an import block adopts
|
|
146
|
+
* only a resource the tree declares. Nothing was written.
|
|
147
|
+
*/
|
|
148
|
+
REASON_IMPORT_UNDECLARED = 20,
|
|
149
|
+
/**
|
|
150
|
+
* REASON_ALREADY_IMPORTED - module import: the tree already imports resources the statefile holds,
|
|
151
|
+
* named in the failure's `addresses`; terraform refuses two imports of
|
|
152
|
+
* one address. Nothing was written.
|
|
153
|
+
*/
|
|
154
|
+
REASON_ALREADY_IMPORTED = 21,
|
|
155
|
+
/**
|
|
156
|
+
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
157
|
+
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
158
|
+
*/
|
|
159
|
+
REASON_NO_LOCKFILE = 22,
|
|
160
|
+
UNRECOGNIZED = -1
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface Bundle {
|
|
164
|
+
/**
|
|
165
|
+
* The format of this encoding: "2.0", at which every Expression carries
|
|
166
|
+
* the module references the engine read from it. The engine writes every
|
|
167
|
+
* Bundle at it; an encoding of an earlier version carries none.
|
|
168
|
+
*/
|
|
169
|
+
schema_version: string;
|
|
170
|
+
kind: string;
|
|
171
|
+
entry: string;
|
|
172
|
+
modules: {
|
|
173
|
+
[key: string]: Module;
|
|
105
174
|
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
}
|
|
176
|
+
declare const Bundle: MessageFns$1<Bundle>;
|
|
177
|
+
interface Module {
|
|
178
|
+
id: string;
|
|
179
|
+
version: string;
|
|
180
|
+
source: Source | undefined;
|
|
181
|
+
interface: Interface | undefined;
|
|
182
|
+
modules: Use[];
|
|
183
|
+
resources: Resource[];
|
|
184
|
+
locals: Local[];
|
|
185
|
+
exports: Exports | undefined;
|
|
186
|
+
terraform: TerraformBlock | undefined;
|
|
187
|
+
providers: ProviderConfig[];
|
|
188
|
+
/** top-level directives: moved {}, import {} */
|
|
189
|
+
top_level_blocks: Block[];
|
|
190
|
+
}
|
|
191
|
+
declare const Module: MessageFns$1<Module>;
|
|
192
|
+
interface Interface {
|
|
193
|
+
inputs: InputDef$1[];
|
|
194
|
+
outputs: OutputDef$1[];
|
|
195
|
+
}
|
|
196
|
+
declare const Interface: MessageFns$1<Interface>;
|
|
197
|
+
interface InputDef$1 {
|
|
198
|
+
name: string;
|
|
199
|
+
/**
|
|
200
|
+
* The type constraint the variable's type line spells, as written; empty
|
|
201
|
+
* for a variable with no type line. `any` is a type line of its own.
|
|
202
|
+
*/
|
|
203
|
+
type: string;
|
|
204
|
+
required: boolean;
|
|
205
|
+
description: string;
|
|
206
|
+
default_value: any | undefined;
|
|
207
|
+
validation: ValidationBlock$1[];
|
|
208
|
+
sensitive: boolean;
|
|
209
|
+
/** unset = default (true); explicit false is meaningful */
|
|
210
|
+
nullable?: boolean | undefined;
|
|
211
|
+
/** unset = default (false); explicit true is meaningful */
|
|
212
|
+
ephemeral?: boolean | undefined;
|
|
213
|
+
}
|
|
214
|
+
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
215
|
+
interface ValidationBlock$1 {
|
|
216
|
+
condition: string;
|
|
217
|
+
error_message: string;
|
|
218
|
+
}
|
|
219
|
+
declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
|
|
220
|
+
interface OutputDef$1 {
|
|
221
|
+
name: string;
|
|
222
|
+
/**
|
|
223
|
+
* The type of the child output the output's export reads; empty when
|
|
224
|
+
* nothing types it. An output block declares no type.
|
|
225
|
+
*/
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
sensitive: boolean;
|
|
229
|
+
depends_on: string[];
|
|
230
|
+
}
|
|
231
|
+
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
232
|
+
interface Source {
|
|
233
|
+
kind: string;
|
|
234
|
+
repo: string;
|
|
235
|
+
subdir: string;
|
|
236
|
+
ref: string;
|
|
237
|
+
}
|
|
238
|
+
declare const Source: MessageFns$1<Source>;
|
|
239
|
+
interface Local {
|
|
240
|
+
name: string;
|
|
241
|
+
value: Binding | undefined;
|
|
242
|
+
}
|
|
243
|
+
declare const Local: MessageFns$1<Local>;
|
|
244
|
+
interface Use {
|
|
245
|
+
id: string;
|
|
246
|
+
module: string;
|
|
247
|
+
inputs: {
|
|
248
|
+
[key: string]: Binding;
|
|
169
249
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
readonly values: readonly ["table", "json"];
|
|
183
|
-
readonly short: "o";
|
|
184
|
-
};
|
|
185
|
-
readonly provider: {
|
|
186
|
-
readonly type: "string";
|
|
187
|
-
};
|
|
188
|
-
readonly token: {
|
|
189
|
-
readonly type: "string";
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
readonly effect: "write";
|
|
193
|
-
readonly hidden: false;
|
|
194
|
-
readonly yes: false;
|
|
250
|
+
depends_on: string[];
|
|
251
|
+
/** count meta-argument */
|
|
252
|
+
count: Binding | undefined;
|
|
253
|
+
/** for_each meta-argument */
|
|
254
|
+
for_each: Binding | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* A module call's `providers = {}` map (child-local name → root ref).
|
|
257
|
+
* Each entry targets the child's default provider slot for that name;
|
|
258
|
+
* this map has no way to target an aliased child slot.
|
|
259
|
+
*/
|
|
260
|
+
providers: {
|
|
261
|
+
[key: string]: string;
|
|
195
262
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
readonly effect: "write";
|
|
207
|
-
readonly hidden: false;
|
|
208
|
-
readonly yes: false;
|
|
263
|
+
}
|
|
264
|
+
declare const Use: MessageFns$1<Use>;
|
|
265
|
+
interface Resource {
|
|
266
|
+
id: string;
|
|
267
|
+
kind: string;
|
|
268
|
+
type: string;
|
|
269
|
+
inputs: {
|
|
270
|
+
[key: string]: Binding;
|
|
209
271
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
272
|
+
depends_on: string[];
|
|
273
|
+
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
274
|
+
blocks: Block[];
|
|
275
|
+
/** count meta-argument */
|
|
276
|
+
count: Binding | undefined;
|
|
277
|
+
/** for_each meta-argument */
|
|
278
|
+
for_each: Binding | undefined;
|
|
279
|
+
/** provider meta-argument, e.g. "aws.west" */
|
|
280
|
+
provider_ref: string;
|
|
281
|
+
}
|
|
282
|
+
declare const Resource: MessageFns$1<Resource>;
|
|
283
|
+
/**
|
|
284
|
+
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
285
|
+
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
286
|
+
* byte-deterministic.
|
|
287
|
+
*/
|
|
288
|
+
interface Block {
|
|
289
|
+
type: string;
|
|
290
|
+
labels: string[];
|
|
291
|
+
attributes: NamedBinding[];
|
|
292
|
+
blocks: Block[];
|
|
293
|
+
}
|
|
294
|
+
declare const Block: MessageFns$1<Block>;
|
|
295
|
+
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
296
|
+
interface NamedBinding {
|
|
297
|
+
name: string;
|
|
298
|
+
value: Binding | undefined;
|
|
299
|
+
}
|
|
300
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
301
|
+
interface Exports {
|
|
302
|
+
outputs: {
|
|
303
|
+
[key: string]: OutputExport;
|
|
227
304
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
};
|
|
288
|
-
readonly path: {
|
|
289
|
-
readonly type: "string";
|
|
290
|
-
readonly short: "p";
|
|
291
|
-
};
|
|
292
|
-
readonly upgrade: {
|
|
293
|
-
readonly type: "stringArray";
|
|
294
|
-
readonly repeated: true;
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
readonly effect: "write";
|
|
298
|
-
readonly hidden: false;
|
|
299
|
-
readonly yes: false;
|
|
300
|
-
};
|
|
301
|
-
readonly "module scan": {
|
|
302
|
-
readonly path: "module scan";
|
|
303
|
-
readonly positionals: readonly [];
|
|
304
|
-
readonly flags: {
|
|
305
|
-
readonly output: {
|
|
306
|
-
readonly type: "string";
|
|
307
|
-
readonly values: readonly ["table", "json", "tfsec-json", "sarif", "junit", "checkstyle"];
|
|
308
|
-
readonly short: "o";
|
|
309
|
-
};
|
|
310
|
-
readonly path: {
|
|
311
|
-
readonly type: "string";
|
|
312
|
-
readonly short: "p";
|
|
313
|
-
};
|
|
314
|
-
readonly severity: {
|
|
315
|
-
readonly type: "string";
|
|
316
|
-
readonly values: readonly ["LOW", "MEDIUM", "HIGH", "CRITICAL"];
|
|
317
|
-
};
|
|
318
|
-
readonly softFail: {
|
|
319
|
-
readonly type: "bool";
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
readonly effect: "read";
|
|
323
|
-
readonly hidden: false;
|
|
324
|
-
readonly yes: false;
|
|
325
|
-
};
|
|
326
|
-
readonly "module validate": {
|
|
327
|
-
readonly path: "module validate";
|
|
328
|
-
readonly positionals: readonly [];
|
|
329
|
-
readonly flags: {
|
|
330
|
-
readonly org: {
|
|
331
|
-
readonly type: "string";
|
|
332
|
-
};
|
|
333
|
-
readonly output: {
|
|
334
|
-
readonly type: "string";
|
|
335
|
-
readonly values: readonly ["table", "json"];
|
|
336
|
-
readonly short: "o";
|
|
337
|
-
};
|
|
338
|
-
readonly path: {
|
|
339
|
-
readonly type: "string";
|
|
340
|
-
readonly short: "p";
|
|
341
|
-
};
|
|
342
|
-
readonly view: {
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
readonly values: readonly ["public", "publication"];
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
readonly effect: "write";
|
|
348
|
-
readonly hidden: false;
|
|
349
|
-
readonly yes: false;
|
|
350
|
-
};
|
|
351
|
-
readonly "org current": {
|
|
352
|
-
readonly path: "org current";
|
|
353
|
-
readonly positionals: readonly [];
|
|
354
|
-
readonly flags: {
|
|
355
|
-
readonly output: {
|
|
356
|
-
readonly type: "string";
|
|
357
|
-
readonly values: readonly ["table", "json"];
|
|
358
|
-
readonly short: "o";
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
readonly effect: "read";
|
|
362
|
-
readonly hidden: false;
|
|
363
|
-
readonly yes: false;
|
|
364
|
-
};
|
|
365
|
-
readonly "org list": {
|
|
366
|
-
readonly path: "org list";
|
|
367
|
-
readonly positionals: readonly [];
|
|
368
|
-
readonly flags: {
|
|
369
|
-
readonly output: {
|
|
370
|
-
readonly type: "string";
|
|
371
|
-
readonly values: readonly ["table", "json"];
|
|
372
|
-
readonly short: "o";
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
readonly effect: "read";
|
|
376
|
-
readonly hidden: false;
|
|
377
|
-
readonly yes: false;
|
|
378
|
-
};
|
|
379
|
-
readonly "org use": {
|
|
380
|
-
readonly path: "org use";
|
|
381
|
-
readonly positionals: readonly [{
|
|
382
|
-
readonly name: "org";
|
|
383
|
-
readonly kind: "required";
|
|
384
|
-
}];
|
|
385
|
-
readonly flags: {
|
|
386
|
-
readonly output: {
|
|
387
|
-
readonly type: "string";
|
|
388
|
-
readonly values: readonly ["table", "json"];
|
|
389
|
-
readonly short: "o";
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
readonly effect: "write";
|
|
393
|
-
readonly hidden: false;
|
|
394
|
-
readonly yes: false;
|
|
305
|
+
}
|
|
306
|
+
declare const Exports: MessageFns$1<Exports>;
|
|
307
|
+
interface OutputExport {
|
|
308
|
+
out: OutputRef | undefined;
|
|
309
|
+
lit: any | undefined;
|
|
310
|
+
var: string;
|
|
311
|
+
expr: Expression | undefined;
|
|
312
|
+
}
|
|
313
|
+
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
314
|
+
interface Binding {
|
|
315
|
+
lit?: any | undefined;
|
|
316
|
+
var?: string | undefined;
|
|
317
|
+
out?: OutputRef | undefined;
|
|
318
|
+
expr?: Expression | undefined;
|
|
319
|
+
}
|
|
320
|
+
declare const Binding: MessageFns$1<Binding>;
|
|
321
|
+
interface OutputRef {
|
|
322
|
+
module: string;
|
|
323
|
+
name: string;
|
|
324
|
+
}
|
|
325
|
+
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
326
|
+
interface Expression {
|
|
327
|
+
lang: string;
|
|
328
|
+
value: string;
|
|
329
|
+
/**
|
|
330
|
+
* The module calls `value` reads, in source order: what the engine's
|
|
331
|
+
* one reader of references reads from the parse of `value`. The engine
|
|
332
|
+
* fills them each time it encodes an Expression and reads none back, so
|
|
333
|
+
* a consumer takes a reference from here and never from `value`.
|
|
334
|
+
*/
|
|
335
|
+
module_references: ModuleReference[];
|
|
336
|
+
}
|
|
337
|
+
declare const Expression: MessageFns$1<Expression>;
|
|
338
|
+
/** ModuleReference is one module.<call> an expression reads. */
|
|
339
|
+
interface ModuleReference {
|
|
340
|
+
/** The call read: module.<call>. */
|
|
341
|
+
call: string;
|
|
342
|
+
/**
|
|
343
|
+
* The output read off the call: the first attribute after the call and
|
|
344
|
+
* any instance key in the text, module.<call>.<output> or
|
|
345
|
+
* module.<call>[0].<output>. Unset when the reference reads the whole
|
|
346
|
+
* call: module.<call> alone, through a splat, or by a key an expression
|
|
347
|
+
* computes.
|
|
348
|
+
*/
|
|
349
|
+
output?: string | undefined;
|
|
350
|
+
/** An instance key follows the call: [0], ["k"] or [<expression>]. */
|
|
351
|
+
instance_key: boolean;
|
|
352
|
+
/** A splat follows the call or its instance key: [*] or .*. */
|
|
353
|
+
splat: boolean;
|
|
354
|
+
}
|
|
355
|
+
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
356
|
+
/**
|
|
357
|
+
* A module's terraform block as the IR holds it. It holds no backend: Lace
|
|
358
|
+
* manages state, and a backend block is a fact about the files.
|
|
359
|
+
*/
|
|
360
|
+
interface TerraformBlock {
|
|
361
|
+
required_version: string;
|
|
362
|
+
required_providers: {
|
|
363
|
+
[key: string]: ProviderRequirement;
|
|
395
364
|
};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
readonly short: "o";
|
|
410
|
-
};
|
|
411
|
-
readonly team: {
|
|
412
|
-
readonly type: "string";
|
|
413
|
-
};
|
|
414
|
-
};
|
|
415
|
-
readonly effect: "read";
|
|
416
|
-
readonly hidden: false;
|
|
417
|
-
readonly yes: false;
|
|
418
|
-
};
|
|
419
|
-
readonly "policy list": {
|
|
420
|
-
readonly path: "policy list";
|
|
421
|
-
readonly positionals: readonly [];
|
|
422
|
-
readonly flags: {
|
|
423
|
-
readonly org: {
|
|
424
|
-
readonly type: "string";
|
|
425
|
-
};
|
|
426
|
-
readonly output: {
|
|
427
|
-
readonly type: "string";
|
|
428
|
-
readonly values: readonly ["table", "json"];
|
|
429
|
-
readonly short: "o";
|
|
430
|
-
};
|
|
431
|
-
readonly stack: {
|
|
432
|
-
readonly type: "string";
|
|
433
|
-
};
|
|
434
|
-
readonly team: {
|
|
435
|
-
readonly type: "string";
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
readonly effect: "read";
|
|
439
|
-
readonly hidden: false;
|
|
440
|
-
readonly yes: false;
|
|
441
|
-
};
|
|
442
|
-
readonly "registry describe": {
|
|
443
|
-
readonly path: "registry describe";
|
|
444
|
-
readonly positionals: readonly [{
|
|
445
|
-
readonly name: "artifact";
|
|
446
|
-
readonly kind: "required";
|
|
447
|
-
}];
|
|
448
|
-
readonly flags: {
|
|
449
|
-
readonly org: {
|
|
450
|
-
readonly type: "string";
|
|
451
|
-
};
|
|
452
|
-
readonly output: {
|
|
453
|
-
readonly type: "string";
|
|
454
|
-
readonly values: readonly ["table", "json"];
|
|
455
|
-
readonly short: "o";
|
|
456
|
-
};
|
|
457
|
-
readonly version: {
|
|
458
|
-
readonly type: "string";
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
readonly effect: "read";
|
|
462
|
-
readonly hidden: false;
|
|
463
|
-
readonly yes: false;
|
|
464
|
-
};
|
|
465
|
-
readonly "registry get": {
|
|
466
|
-
readonly path: "registry get";
|
|
467
|
-
readonly positionals: readonly [{
|
|
468
|
-
readonly name: "artifact";
|
|
469
|
-
readonly kind: "required";
|
|
470
|
-
}];
|
|
471
|
-
readonly flags: {
|
|
472
|
-
readonly org: {
|
|
473
|
-
readonly type: "string";
|
|
474
|
-
};
|
|
475
|
-
readonly output: {
|
|
476
|
-
readonly type: "string";
|
|
477
|
-
readonly values: readonly ["table", "json"];
|
|
478
|
-
readonly short: "o";
|
|
479
|
-
};
|
|
480
|
-
readonly view: {
|
|
481
|
-
readonly type: "string";
|
|
482
|
-
readonly values: readonly ["public"];
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
readonly effect: "read";
|
|
486
|
-
readonly hidden: false;
|
|
487
|
-
readonly yes: false;
|
|
488
|
-
};
|
|
489
|
-
readonly "registry list": {
|
|
490
|
-
readonly path: "registry list";
|
|
491
|
-
readonly positionals: readonly [];
|
|
492
|
-
readonly flags: {
|
|
493
|
-
readonly author: {
|
|
494
|
-
readonly type: "string";
|
|
495
|
-
};
|
|
496
|
-
readonly axis: {
|
|
497
|
-
readonly type: "string";
|
|
498
|
-
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
499
|
-
};
|
|
500
|
-
readonly category: {
|
|
501
|
-
readonly type: "string";
|
|
502
|
-
};
|
|
503
|
-
readonly limit: {
|
|
504
|
-
readonly type: "int";
|
|
505
|
-
};
|
|
506
|
-
readonly org: {
|
|
507
|
-
readonly type: "string";
|
|
508
|
-
};
|
|
509
|
-
readonly output: {
|
|
510
|
-
readonly type: "string";
|
|
511
|
-
readonly values: readonly ["table", "json"];
|
|
512
|
-
readonly short: "o";
|
|
513
|
-
};
|
|
514
|
-
readonly query: {
|
|
515
|
-
readonly type: "string";
|
|
516
|
-
};
|
|
517
|
-
readonly system: {
|
|
518
|
-
readonly type: "string";
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
readonly effect: "read";
|
|
522
|
-
readonly hidden: false;
|
|
523
|
-
readonly yes: false;
|
|
524
|
-
};
|
|
525
|
-
readonly "registry validate": {
|
|
526
|
-
readonly path: "registry validate";
|
|
527
|
-
readonly positionals: readonly [];
|
|
528
|
-
readonly flags: {
|
|
529
|
-
readonly axis: {
|
|
530
|
-
readonly type: "string";
|
|
531
|
-
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
532
|
-
readonly required: true;
|
|
533
|
-
};
|
|
534
|
-
readonly manifest: {
|
|
535
|
-
readonly type: "string";
|
|
536
|
-
readonly required: true;
|
|
537
|
-
};
|
|
538
|
-
readonly output: {
|
|
539
|
-
readonly type: "string";
|
|
540
|
-
readonly values: readonly ["table", "json"];
|
|
541
|
-
readonly short: "o";
|
|
542
|
-
};
|
|
543
|
-
readonly readme: {
|
|
544
|
-
readonly type: "string";
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
readonly effect: "read";
|
|
548
|
-
readonly hidden: false;
|
|
549
|
-
readonly yes: false;
|
|
550
|
-
};
|
|
551
|
-
readonly "run bundle": {
|
|
552
|
-
readonly path: "run bundle";
|
|
553
|
-
readonly positionals: readonly [{
|
|
554
|
-
readonly name: "run";
|
|
555
|
-
readonly kind: "required";
|
|
556
|
-
}];
|
|
557
|
-
readonly flags: {
|
|
558
|
-
readonly org: {
|
|
559
|
-
readonly type: "string";
|
|
560
|
-
};
|
|
561
|
-
readonly output: {
|
|
562
|
-
readonly type: "string";
|
|
563
|
-
readonly values: readonly ["json"];
|
|
564
|
-
readonly short: "o";
|
|
565
|
-
};
|
|
566
|
-
readonly team: {
|
|
567
|
-
readonly type: "string";
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
readonly effect: "read";
|
|
571
|
-
readonly hidden: false;
|
|
572
|
-
readonly yes: false;
|
|
573
|
-
};
|
|
574
|
-
readonly "run cancel": {
|
|
575
|
-
readonly path: "run cancel";
|
|
576
|
-
readonly positionals: readonly [{
|
|
577
|
-
readonly name: "run";
|
|
578
|
-
readonly kind: "required";
|
|
579
|
-
}];
|
|
580
|
-
readonly flags: {
|
|
581
|
-
readonly org: {
|
|
582
|
-
readonly type: "string";
|
|
583
|
-
};
|
|
584
|
-
readonly output: {
|
|
585
|
-
readonly type: "string";
|
|
586
|
-
readonly values: readonly ["table", "json"];
|
|
587
|
-
readonly short: "o";
|
|
588
|
-
};
|
|
589
|
-
readonly reason: {
|
|
590
|
-
readonly type: "string";
|
|
591
|
-
};
|
|
592
|
-
readonly team: {
|
|
593
|
-
readonly type: "string";
|
|
594
|
-
};
|
|
595
|
-
};
|
|
596
|
-
readonly effect: "write";
|
|
597
|
-
readonly hidden: false;
|
|
598
|
-
readonly yes: false;
|
|
599
|
-
};
|
|
600
|
-
readonly "run get": {
|
|
601
|
-
readonly path: "run get";
|
|
602
|
-
readonly positionals: readonly [{
|
|
603
|
-
readonly name: "run";
|
|
604
|
-
readonly kind: "optional";
|
|
605
|
-
}];
|
|
606
|
-
readonly flags: {
|
|
607
|
-
readonly change: {
|
|
608
|
-
readonly type: "string";
|
|
609
|
-
};
|
|
610
|
-
readonly org: {
|
|
611
|
-
readonly type: "string";
|
|
612
|
-
};
|
|
613
|
-
readonly output: {
|
|
614
|
-
readonly type: "string";
|
|
615
|
-
readonly values: readonly ["table", "json"];
|
|
616
|
-
readonly short: "o";
|
|
617
|
-
};
|
|
618
|
-
readonly team: {
|
|
619
|
-
readonly type: "string";
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
readonly effect: "read";
|
|
623
|
-
readonly hidden: false;
|
|
624
|
-
readonly yes: false;
|
|
625
|
-
};
|
|
626
|
-
readonly "run list": {
|
|
627
|
-
readonly path: "run list";
|
|
628
|
-
readonly positionals: readonly [];
|
|
629
|
-
readonly flags: {
|
|
630
|
-
readonly change: {
|
|
631
|
-
readonly type: "string";
|
|
632
|
-
};
|
|
633
|
-
readonly cursor: {
|
|
634
|
-
readonly type: "string";
|
|
635
|
-
};
|
|
636
|
-
readonly kind: {
|
|
637
|
-
readonly type: "string";
|
|
638
|
-
};
|
|
639
|
-
readonly limit: {
|
|
640
|
-
readonly type: "int";
|
|
641
|
-
};
|
|
642
|
-
readonly org: {
|
|
643
|
-
readonly type: "string";
|
|
644
|
-
};
|
|
645
|
-
readonly output: {
|
|
646
|
-
readonly type: "string";
|
|
647
|
-
readonly values: readonly ["table", "json"];
|
|
648
|
-
readonly short: "o";
|
|
649
|
-
};
|
|
650
|
-
readonly stack: {
|
|
651
|
-
readonly type: "string";
|
|
652
|
-
};
|
|
653
|
-
readonly startedAfter: {
|
|
654
|
-
readonly type: "string";
|
|
655
|
-
};
|
|
656
|
-
readonly status: {
|
|
657
|
-
readonly type: "string";
|
|
658
|
-
};
|
|
659
|
-
readonly team: {
|
|
660
|
-
readonly type: "string";
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
readonly effect: "read";
|
|
664
|
-
readonly hidden: false;
|
|
665
|
-
readonly yes: false;
|
|
666
|
-
};
|
|
667
|
-
readonly "run logs": {
|
|
668
|
-
readonly path: "run logs";
|
|
669
|
-
readonly positionals: readonly [{
|
|
670
|
-
readonly name: "run";
|
|
671
|
-
readonly kind: "required";
|
|
672
|
-
}];
|
|
673
|
-
readonly flags: {
|
|
674
|
-
readonly follow: {
|
|
675
|
-
readonly type: "bool";
|
|
676
|
-
};
|
|
677
|
-
readonly org: {
|
|
678
|
-
readonly type: "string";
|
|
679
|
-
};
|
|
680
|
-
readonly output: {
|
|
681
|
-
readonly type: "string";
|
|
682
|
-
readonly values: readonly ["table", "json"];
|
|
683
|
-
readonly short: "o";
|
|
684
|
-
};
|
|
685
|
-
readonly team: {
|
|
686
|
-
readonly type: "string";
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
readonly effect: "read";
|
|
690
|
-
readonly hidden: false;
|
|
691
|
-
readonly yes: false;
|
|
692
|
-
};
|
|
693
|
-
readonly "run plan": {
|
|
694
|
-
readonly path: "run plan";
|
|
695
|
-
readonly positionals: readonly [{
|
|
696
|
-
readonly name: "run";
|
|
697
|
-
readonly kind: "required";
|
|
698
|
-
}];
|
|
699
|
-
readonly flags: {
|
|
700
|
-
readonly org: {
|
|
701
|
-
readonly type: "string";
|
|
702
|
-
};
|
|
703
|
-
readonly output: {
|
|
704
|
-
readonly type: "string";
|
|
705
|
-
readonly values: readonly ["table", "json"];
|
|
706
|
-
readonly short: "o";
|
|
707
|
-
};
|
|
708
|
-
readonly team: {
|
|
709
|
-
readonly type: "string";
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
readonly effect: "read";
|
|
713
|
-
readonly hidden: false;
|
|
714
|
-
readonly yes: false;
|
|
715
|
-
};
|
|
716
|
-
readonly "stack apply": {
|
|
717
|
-
readonly path: "stack apply";
|
|
718
|
-
readonly positionals: readonly [{
|
|
719
|
-
readonly name: "stack";
|
|
720
|
-
readonly kind: "required";
|
|
721
|
-
}];
|
|
722
|
-
readonly flags: {
|
|
723
|
-
readonly allowSourceMismatch: {
|
|
724
|
-
readonly type: "bool";
|
|
725
|
-
};
|
|
726
|
-
readonly commit: {
|
|
727
|
-
readonly type: "string";
|
|
728
|
-
};
|
|
729
|
-
readonly org: {
|
|
730
|
-
readonly type: "string";
|
|
731
|
-
};
|
|
732
|
-
readonly output: {
|
|
733
|
-
readonly type: "string";
|
|
734
|
-
readonly values: readonly ["table", "json"];
|
|
735
|
-
readonly short: "o";
|
|
736
|
-
};
|
|
737
|
-
readonly prUrl: {
|
|
738
|
-
readonly type: "string";
|
|
739
|
-
};
|
|
740
|
-
readonly ref: {
|
|
741
|
-
readonly type: "string";
|
|
742
|
-
};
|
|
743
|
-
readonly team: {
|
|
744
|
-
readonly type: "string";
|
|
745
|
-
};
|
|
746
|
-
readonly var: {
|
|
747
|
-
readonly type: "stringArray";
|
|
748
|
-
readonly repeated: true;
|
|
749
|
-
};
|
|
750
|
-
readonly varFile: {
|
|
751
|
-
readonly type: "stringArray";
|
|
752
|
-
readonly repeated: true;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
readonly effect: "write";
|
|
756
|
-
readonly hidden: false;
|
|
757
|
-
readonly yes: false;
|
|
758
|
-
};
|
|
759
|
-
readonly "stack create": {
|
|
760
|
-
readonly path: "stack create";
|
|
761
|
-
readonly positionals: readonly [{
|
|
762
|
-
readonly name: "slug";
|
|
763
|
-
readonly kind: "required";
|
|
764
|
-
}];
|
|
765
|
-
readonly flags: {
|
|
766
|
-
readonly connection: {
|
|
767
|
-
readonly type: "string";
|
|
768
|
-
readonly required: true;
|
|
769
|
-
};
|
|
770
|
-
readonly description: {
|
|
771
|
-
readonly type: "string";
|
|
772
|
-
};
|
|
773
|
-
readonly name: {
|
|
774
|
-
readonly type: "string";
|
|
775
|
-
};
|
|
776
|
-
readonly org: {
|
|
777
|
-
readonly type: "string";
|
|
778
|
-
};
|
|
779
|
-
readonly output: {
|
|
780
|
-
readonly type: "string";
|
|
781
|
-
readonly values: readonly ["table", "json"];
|
|
782
|
-
readonly short: "o";
|
|
783
|
-
};
|
|
784
|
-
readonly source: {
|
|
785
|
-
readonly type: "string";
|
|
786
|
-
};
|
|
787
|
-
readonly sourcePath: {
|
|
788
|
-
readonly type: "string";
|
|
789
|
-
};
|
|
790
|
-
readonly sourceRef: {
|
|
791
|
-
readonly type: "string";
|
|
792
|
-
};
|
|
793
|
-
readonly sourceRepo: {
|
|
794
|
-
readonly type: "string";
|
|
795
|
-
};
|
|
796
|
-
readonly team: {
|
|
797
|
-
readonly type: "string";
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
readonly effect: "write";
|
|
801
|
-
readonly hidden: false;
|
|
802
|
-
readonly yes: false;
|
|
803
|
-
};
|
|
804
|
-
readonly "stack delete": {
|
|
805
|
-
readonly path: "stack delete";
|
|
806
|
-
readonly positionals: readonly [{
|
|
807
|
-
readonly name: "stack";
|
|
808
|
-
readonly kind: "required";
|
|
809
|
-
}];
|
|
810
|
-
readonly flags: {
|
|
811
|
-
readonly org: {
|
|
812
|
-
readonly type: "string";
|
|
813
|
-
};
|
|
814
|
-
readonly output: {
|
|
815
|
-
readonly type: "string";
|
|
816
|
-
readonly values: readonly ["table", "json"];
|
|
817
|
-
readonly short: "o";
|
|
818
|
-
};
|
|
819
|
-
readonly team: {
|
|
820
|
-
readonly type: "string";
|
|
821
|
-
};
|
|
822
|
-
readonly yes: {
|
|
823
|
-
readonly type: "bool";
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
readonly effect: "write";
|
|
827
|
-
readonly hidden: false;
|
|
828
|
-
readonly yes: true;
|
|
829
|
-
};
|
|
830
|
-
readonly "stack describe": {
|
|
831
|
-
readonly path: "stack describe";
|
|
832
|
-
readonly positionals: readonly [{
|
|
833
|
-
readonly name: "stack";
|
|
834
|
-
readonly kind: "required";
|
|
835
|
-
}];
|
|
836
|
-
readonly flags: {
|
|
837
|
-
readonly full: {
|
|
838
|
-
readonly type: "bool";
|
|
839
|
-
};
|
|
840
|
-
readonly includeArchived: {
|
|
841
|
-
readonly type: "bool";
|
|
842
|
-
};
|
|
843
|
-
readonly org: {
|
|
844
|
-
readonly type: "string";
|
|
845
|
-
};
|
|
846
|
-
readonly output: {
|
|
847
|
-
readonly type: "string";
|
|
848
|
-
readonly values: readonly ["table", "json"];
|
|
849
|
-
readonly short: "o";
|
|
850
|
-
};
|
|
851
|
-
readonly team: {
|
|
852
|
-
readonly type: "string";
|
|
853
|
-
};
|
|
854
|
-
};
|
|
855
|
-
readonly effect: "read";
|
|
856
|
-
readonly hidden: false;
|
|
857
|
-
readonly yes: false;
|
|
858
|
-
};
|
|
859
|
-
readonly "stack destroy": {
|
|
860
|
-
readonly path: "stack destroy";
|
|
861
|
-
readonly positionals: readonly [{
|
|
862
|
-
readonly name: "stack";
|
|
863
|
-
readonly kind: "required";
|
|
864
|
-
}];
|
|
865
|
-
readonly flags: {
|
|
866
|
-
readonly allowSourceMismatch: {
|
|
867
|
-
readonly type: "bool";
|
|
868
|
-
};
|
|
869
|
-
readonly archive: {
|
|
870
|
-
readonly type: "bool";
|
|
871
|
-
};
|
|
872
|
-
readonly commit: {
|
|
873
|
-
readonly type: "string";
|
|
874
|
-
};
|
|
875
|
-
readonly org: {
|
|
876
|
-
readonly type: "string";
|
|
877
|
-
};
|
|
878
|
-
readonly output: {
|
|
879
|
-
readonly type: "string";
|
|
880
|
-
readonly values: readonly ["table", "json"];
|
|
881
|
-
readonly short: "o";
|
|
882
|
-
};
|
|
883
|
-
readonly prUrl: {
|
|
884
|
-
readonly type: "string";
|
|
885
|
-
};
|
|
886
|
-
readonly ref: {
|
|
887
|
-
readonly type: "string";
|
|
888
|
-
};
|
|
889
|
-
readonly team: {
|
|
890
|
-
readonly type: "string";
|
|
891
|
-
};
|
|
892
|
-
readonly var: {
|
|
893
|
-
readonly type: "stringArray";
|
|
894
|
-
readonly repeated: true;
|
|
895
|
-
};
|
|
896
|
-
readonly varFile: {
|
|
897
|
-
readonly type: "stringArray";
|
|
898
|
-
readonly repeated: true;
|
|
899
|
-
};
|
|
900
|
-
readonly yes: {
|
|
901
|
-
readonly type: "bool";
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
readonly effect: "write";
|
|
905
|
-
readonly hidden: false;
|
|
906
|
-
readonly yes: true;
|
|
907
|
-
};
|
|
908
|
-
readonly "stack get": {
|
|
909
|
-
readonly path: "stack get";
|
|
910
|
-
readonly positionals: readonly [{
|
|
911
|
-
readonly name: "stack";
|
|
912
|
-
readonly kind: "required";
|
|
913
|
-
}];
|
|
914
|
-
readonly flags: {
|
|
915
|
-
readonly includeArchived: {
|
|
916
|
-
readonly type: "bool";
|
|
917
|
-
};
|
|
918
|
-
readonly org: {
|
|
919
|
-
readonly type: "string";
|
|
920
|
-
};
|
|
921
|
-
readonly output: {
|
|
922
|
-
readonly type: "string";
|
|
923
|
-
readonly values: readonly ["table", "json"];
|
|
924
|
-
readonly short: "o";
|
|
925
|
-
};
|
|
926
|
-
readonly team: {
|
|
927
|
-
readonly type: "string";
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
readonly effect: "read";
|
|
931
|
-
readonly hidden: false;
|
|
932
|
-
readonly yes: false;
|
|
933
|
-
};
|
|
934
|
-
readonly "stack import": {
|
|
935
|
-
readonly path: "stack import";
|
|
936
|
-
readonly positionals: readonly [{
|
|
937
|
-
readonly name: "stack";
|
|
938
|
-
readonly kind: "required";
|
|
939
|
-
}];
|
|
940
|
-
readonly flags: {
|
|
941
|
-
readonly allowPartial: {
|
|
942
|
-
readonly type: "bool";
|
|
943
|
-
};
|
|
944
|
-
readonly org: {
|
|
945
|
-
readonly type: "string";
|
|
946
|
-
};
|
|
947
|
-
readonly output: {
|
|
948
|
-
readonly type: "string";
|
|
949
|
-
readonly values: readonly ["table", "json"];
|
|
950
|
-
readonly short: "o";
|
|
951
|
-
};
|
|
952
|
-
readonly path: {
|
|
953
|
-
readonly type: "string";
|
|
954
|
-
readonly short: "p";
|
|
955
|
-
};
|
|
956
|
-
readonly state: {
|
|
957
|
-
readonly type: "string";
|
|
958
|
-
readonly required: true;
|
|
959
|
-
};
|
|
960
|
-
readonly team: {
|
|
961
|
-
readonly type: "string";
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
readonly effect: "rewrite";
|
|
965
|
-
readonly hidden: false;
|
|
966
|
-
readonly yes: false;
|
|
967
|
-
};
|
|
968
|
-
readonly "stack list": {
|
|
969
|
-
readonly path: "stack list";
|
|
970
|
-
readonly positionals: readonly [];
|
|
971
|
-
readonly flags: {
|
|
972
|
-
readonly cursor: {
|
|
973
|
-
readonly type: "string";
|
|
974
|
-
};
|
|
975
|
-
readonly includeArchived: {
|
|
976
|
-
readonly type: "bool";
|
|
977
|
-
};
|
|
978
|
-
readonly limit: {
|
|
979
|
-
readonly type: "int";
|
|
980
|
-
};
|
|
981
|
-
readonly org: {
|
|
982
|
-
readonly type: "string";
|
|
983
|
-
};
|
|
984
|
-
readonly output: {
|
|
985
|
-
readonly type: "string";
|
|
986
|
-
readonly values: readonly ["table", "json"];
|
|
987
|
-
readonly short: "o";
|
|
988
|
-
};
|
|
989
|
-
readonly source: {
|
|
990
|
-
readonly type: "string";
|
|
991
|
-
};
|
|
992
|
-
readonly team: {
|
|
993
|
-
readonly type: "string";
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
|
-
readonly effect: "read";
|
|
997
|
-
readonly hidden: false;
|
|
998
|
-
readonly yes: false;
|
|
999
|
-
};
|
|
1000
|
-
readonly "stack preview": {
|
|
1001
|
-
readonly path: "stack preview";
|
|
1002
|
-
readonly positionals: readonly [{
|
|
1003
|
-
readonly name: "stack";
|
|
1004
|
-
readonly kind: "required";
|
|
1005
|
-
}];
|
|
1006
|
-
readonly flags: {
|
|
1007
|
-
readonly org: {
|
|
1008
|
-
readonly type: "string";
|
|
1009
|
-
};
|
|
1010
|
-
readonly output: {
|
|
1011
|
-
readonly type: "string";
|
|
1012
|
-
readonly values: readonly ["table", "json"];
|
|
1013
|
-
readonly short: "o";
|
|
1014
|
-
};
|
|
1015
|
-
readonly team: {
|
|
1016
|
-
readonly type: "string";
|
|
1017
|
-
};
|
|
1018
|
-
readonly var: {
|
|
1019
|
-
readonly type: "stringArray";
|
|
1020
|
-
readonly repeated: true;
|
|
1021
|
-
};
|
|
1022
|
-
readonly varFile: {
|
|
1023
|
-
readonly type: "stringArray";
|
|
1024
|
-
readonly repeated: true;
|
|
1025
|
-
};
|
|
1026
|
-
};
|
|
1027
|
-
readonly effect: "write";
|
|
1028
|
-
readonly hidden: false;
|
|
1029
|
-
readonly yes: false;
|
|
1030
|
-
};
|
|
1031
|
-
readonly "stack scan": {
|
|
1032
|
-
readonly path: "stack scan";
|
|
1033
|
-
readonly positionals: readonly [{
|
|
1034
|
-
readonly name: "stack";
|
|
1035
|
-
readonly kind: "required";
|
|
1036
|
-
}];
|
|
1037
|
-
readonly flags: {
|
|
1038
|
-
readonly full: {
|
|
1039
|
-
readonly type: "bool";
|
|
1040
|
-
};
|
|
1041
|
-
readonly org: {
|
|
1042
|
-
readonly type: "string";
|
|
1043
|
-
};
|
|
1044
|
-
readonly output: {
|
|
1045
|
-
readonly type: "string";
|
|
1046
|
-
readonly values: readonly ["table", "json"];
|
|
1047
|
-
readonly short: "o";
|
|
1048
|
-
};
|
|
1049
|
-
readonly team: {
|
|
1050
|
-
readonly type: "string";
|
|
1051
|
-
};
|
|
1052
|
-
readonly wait: {
|
|
1053
|
-
readonly type: "bool";
|
|
1054
|
-
};
|
|
1055
|
-
readonly waitTimeout: {
|
|
1056
|
-
readonly type: "duration";
|
|
1057
|
-
};
|
|
1058
|
-
};
|
|
1059
|
-
readonly effect: "write";
|
|
1060
|
-
readonly hidden: false;
|
|
1061
|
-
readonly yes: false;
|
|
1062
|
-
};
|
|
1063
|
-
readonly "stack update": {
|
|
1064
|
-
readonly path: "stack update";
|
|
1065
|
-
readonly positionals: readonly [{
|
|
1066
|
-
readonly name: "stack";
|
|
1067
|
-
readonly kind: "required";
|
|
1068
|
-
}];
|
|
1069
|
-
readonly flags: {
|
|
1070
|
-
readonly description: {
|
|
1071
|
-
readonly type: "string";
|
|
1072
|
-
};
|
|
1073
|
-
readonly name: {
|
|
1074
|
-
readonly type: "string";
|
|
1075
|
-
};
|
|
1076
|
-
readonly org: {
|
|
1077
|
-
readonly type: "string";
|
|
1078
|
-
};
|
|
1079
|
-
readonly output: {
|
|
1080
|
-
readonly type: "string";
|
|
1081
|
-
readonly values: readonly ["table", "json"];
|
|
1082
|
-
readonly short: "o";
|
|
1083
|
-
};
|
|
1084
|
-
readonly sourcePath: {
|
|
1085
|
-
readonly type: "string";
|
|
1086
|
-
};
|
|
1087
|
-
readonly sourceRef: {
|
|
1088
|
-
readonly type: "string";
|
|
1089
|
-
};
|
|
1090
|
-
readonly sourceRepo: {
|
|
1091
|
-
readonly type: "string";
|
|
1092
|
-
};
|
|
1093
|
-
readonly team: {
|
|
1094
|
-
readonly type: "string";
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
readonly effect: "write";
|
|
1098
|
-
readonly hidden: false;
|
|
1099
|
-
readonly yes: false;
|
|
1100
|
-
};
|
|
1101
|
-
readonly "team current": {
|
|
1102
|
-
readonly path: "team current";
|
|
1103
|
-
readonly positionals: readonly [];
|
|
1104
|
-
readonly flags: {
|
|
1105
|
-
readonly org: {
|
|
1106
|
-
readonly type: "string";
|
|
1107
|
-
};
|
|
1108
|
-
readonly output: {
|
|
1109
|
-
readonly type: "string";
|
|
1110
|
-
readonly values: readonly ["table", "json"];
|
|
1111
|
-
readonly short: "o";
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
readonly effect: "read";
|
|
1115
|
-
readonly hidden: false;
|
|
1116
|
-
readonly yes: false;
|
|
1117
|
-
};
|
|
1118
|
-
readonly "team list": {
|
|
1119
|
-
readonly path: "team list";
|
|
1120
|
-
readonly positionals: readonly [];
|
|
1121
|
-
readonly flags: {
|
|
1122
|
-
readonly cursor: {
|
|
1123
|
-
readonly type: "string";
|
|
1124
|
-
};
|
|
1125
|
-
readonly limit: {
|
|
1126
|
-
readonly type: "int";
|
|
1127
|
-
};
|
|
1128
|
-
readonly org: {
|
|
1129
|
-
readonly type: "string";
|
|
1130
|
-
};
|
|
1131
|
-
readonly output: {
|
|
1132
|
-
readonly type: "string";
|
|
1133
|
-
readonly values: readonly ["table", "json"];
|
|
1134
|
-
readonly short: "o";
|
|
1135
|
-
};
|
|
1136
|
-
};
|
|
1137
|
-
readonly effect: "read";
|
|
1138
|
-
readonly hidden: false;
|
|
1139
|
-
readonly yes: false;
|
|
1140
|
-
};
|
|
1141
|
-
readonly "team use": {
|
|
1142
|
-
readonly path: "team use";
|
|
1143
|
-
readonly positionals: readonly [{
|
|
1144
|
-
readonly name: "team";
|
|
1145
|
-
readonly kind: "required";
|
|
1146
|
-
}];
|
|
1147
|
-
readonly flags: {
|
|
1148
|
-
readonly org: {
|
|
1149
|
-
readonly type: "string";
|
|
1150
|
-
};
|
|
1151
|
-
readonly output: {
|
|
1152
|
-
readonly type: "string";
|
|
1153
|
-
readonly values: readonly ["table", "json"];
|
|
1154
|
-
readonly short: "o";
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
readonly effect: "write";
|
|
1158
|
-
readonly hidden: false;
|
|
1159
|
-
readonly yes: false;
|
|
1160
|
-
};
|
|
1161
|
-
readonly version: {
|
|
1162
|
-
readonly path: "version";
|
|
1163
|
-
readonly positionals: readonly [];
|
|
1164
|
-
readonly flags: {
|
|
1165
|
-
readonly output: {
|
|
1166
|
-
readonly type: "string";
|
|
1167
|
-
readonly values: readonly ["table", "json"];
|
|
1168
|
-
readonly short: "o";
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
readonly effect: "read";
|
|
1172
|
-
readonly hidden: false;
|
|
1173
|
-
readonly yes: false;
|
|
1174
|
-
};
|
|
1175
|
-
readonly whoami: {
|
|
1176
|
-
readonly path: "whoami";
|
|
1177
|
-
readonly positionals: readonly [];
|
|
1178
|
-
readonly flags: {
|
|
1179
|
-
readonly output: {
|
|
1180
|
-
readonly type: "string";
|
|
1181
|
-
readonly values: readonly ["table", "json"];
|
|
1182
|
-
readonly short: "o";
|
|
1183
|
-
};
|
|
1184
|
-
};
|
|
1185
|
-
readonly effect: "read";
|
|
1186
|
-
readonly hidden: false;
|
|
1187
|
-
readonly yes: false;
|
|
1188
|
-
};
|
|
1189
|
-
};
|
|
1190
|
-
/** Every non-hidden command path, minus `lace ` and minus `lace engine`. */
|
|
1191
|
-
type CommandPath = keyof typeof COMMANDS;
|
|
1192
|
-
type FlagTypeOf<F> = F extends {
|
|
1193
|
-
type: "bool";
|
|
1194
|
-
} ? boolean : F extends {
|
|
1195
|
-
type: "int";
|
|
1196
|
-
} ? number : F extends {
|
|
1197
|
-
type: "stringArray";
|
|
1198
|
-
} ? string[] : F extends {
|
|
1199
|
-
values: readonly (infer V)[];
|
|
1200
|
-
} ? V : string;
|
|
1201
|
-
type PositionalOf<P extends CommandPath> = (typeof COMMANDS)[P]["positionals"][number];
|
|
1202
|
-
type PositionalNameOf<P extends CommandPath, Kind extends "required" | "optional" | "variadic"> = Extract<PositionalOf<P>, {
|
|
1203
|
-
kind: Kind;
|
|
1204
|
-
}>["name"];
|
|
1205
|
-
/** `output` is excluded: Invoke owns it, never the command binding. */
|
|
1206
|
-
type FlagKeys<P extends CommandPath> = Exclude<keyof (typeof COMMANDS)[P]["flags"], "output">;
|
|
1207
|
-
type RequiredFlagKeys<P extends CommandPath> = {
|
|
1208
|
-
[K in FlagKeys<P>]: (typeof COMMANDS)[P]["flags"][K] extends {
|
|
1209
|
-
required: true;
|
|
1210
|
-
} ? K : never;
|
|
1211
|
-
}[FlagKeys<P>];
|
|
1212
|
-
type OptionalFlagKeys<P extends CommandPath> = Exclude<FlagKeys<P>, RequiredFlagKeys<P>>;
|
|
1213
|
-
/** Required positionals/flags are non-optional; enum flags become unions. */
|
|
1214
|
-
type ArgsOf<P extends CommandPath> = {
|
|
1215
|
-
[K in PositionalNameOf<P, "required">]: string;
|
|
1216
|
-
} & {
|
|
1217
|
-
[K in PositionalNameOf<P, "optional">]?: string;
|
|
1218
|
-
} & {
|
|
1219
|
-
[K in PositionalNameOf<P, "variadic">]?: string[];
|
|
1220
|
-
} & {
|
|
1221
|
-
[K in RequiredFlagKeys<P>]: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1222
|
-
} & {
|
|
1223
|
-
[K in OptionalFlagKeys<P>]?: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
1224
|
-
};
|
|
1225
|
-
/**
|
|
1226
|
-
* flags (`--flag=value`, sorted by flag name) then `--` then positionals in
|
|
1227
|
-
* golden order, so a positional value that starts with `-` always parses
|
|
1228
|
-
* as a positional, never as a flag. A bool `true` emits a bare `--flag`;
|
|
1229
|
-
* `false`/absent is omitted. A repeated flag emits one `--flag=v` per
|
|
1230
|
-
* element.
|
|
1231
|
-
*/
|
|
1232
|
-
declare function toArgv<P extends CommandPath>(path: P, args: ArgsOf<P>): string[];
|
|
1233
|
-
/**
|
|
1234
|
-
* The command a `lace` command line names, from the words after the
|
|
1235
|
-
* program's name, found where the CLI finds it (`commandWordsAt`, the one
|
|
1236
|
-
* walk, over this tree). Undefined when the words name no command a host can
|
|
1237
|
-
* invoke: none at all, a group, a misspelt or hidden command, `lace engine`.
|
|
1238
|
-
* A command's words followed by its `toArgv` read back as that command.
|
|
1239
|
-
*/
|
|
1240
|
-
declare function commandPathOf(words: readonly string[]): CommandPath | undefined;
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* A generic empty message that you can re-use to avoid defining duplicated
|
|
1244
|
-
* empty messages in your APIs. A typical example is to use it as the request
|
|
1245
|
-
* or the response type of an API method. For instance:
|
|
1246
|
-
*
|
|
1247
|
-
* service Foo {
|
|
1248
|
-
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
1249
|
-
* }
|
|
1250
|
-
*/
|
|
1251
|
-
interface Empty {
|
|
1252
|
-
}
|
|
1253
|
-
declare const Empty: MessageFns$2<Empty>;
|
|
1254
|
-
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1255
|
-
type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {} ? {
|
|
1256
|
-
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
1257
|
-
} : Partial<T>;
|
|
1258
|
-
type KeysOfUnion$2<T> = T extends T ? keyof T : never;
|
|
1259
|
-
type Exact$2<P, I extends P> = P extends Builtin$2 ? P : P & {
|
|
1260
|
-
[K in keyof P]: Exact$2<P[K], I[K]>;
|
|
1261
|
-
} & {
|
|
1262
|
-
[K in Exclude<keyof I, KeysOfUnion$2<P>>]: never;
|
|
1263
|
-
};
|
|
1264
|
-
interface MessageFns$2<T> {
|
|
1265
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1266
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1267
|
-
fromJSON(object: any): T;
|
|
1268
|
-
toJSON(message: T): unknown;
|
|
1269
|
-
create<I extends Exact$2<DeepPartial$2<T>, I>>(base?: I): T;
|
|
1270
|
-
fromPartial<I extends Exact$2<DeepPartial$2<T>, I>>(object: I): T;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
interface Bundle {
|
|
1274
|
-
/**
|
|
1275
|
-
* The format of this encoding: "2.0", at which every Expression carries
|
|
1276
|
-
* the module references the engine read from it. The engine writes every
|
|
1277
|
-
* Bundle at it; an encoding of an earlier version carries none.
|
|
1278
|
-
*/
|
|
1279
|
-
schema_version: string;
|
|
1280
|
-
kind: string;
|
|
1281
|
-
entry: string;
|
|
1282
|
-
modules: {
|
|
1283
|
-
[key: string]: Module;
|
|
1284
|
-
};
|
|
1285
|
-
}
|
|
1286
|
-
declare const Bundle: MessageFns$1<Bundle>;
|
|
1287
|
-
interface Module {
|
|
1288
|
-
id: string;
|
|
1289
|
-
version: string;
|
|
1290
|
-
source: Source | undefined;
|
|
1291
|
-
interface: Interface | undefined;
|
|
1292
|
-
modules: Use[];
|
|
1293
|
-
resources: Resource[];
|
|
1294
|
-
locals: Local[];
|
|
1295
|
-
exports: Exports | undefined;
|
|
1296
|
-
terraform: TerraformBlock | undefined;
|
|
1297
|
-
providers: ProviderConfig[];
|
|
1298
|
-
/** top-level directives: moved {}, import {} */
|
|
1299
|
-
top_level_blocks: Block[];
|
|
1300
|
-
}
|
|
1301
|
-
declare const Module: MessageFns$1<Module>;
|
|
1302
|
-
interface Interface {
|
|
1303
|
-
inputs: InputDef$1[];
|
|
1304
|
-
outputs: OutputDef$1[];
|
|
1305
|
-
}
|
|
1306
|
-
declare const Interface: MessageFns$1<Interface>;
|
|
1307
|
-
interface InputDef$1 {
|
|
1308
|
-
name: string;
|
|
1309
|
-
/**
|
|
1310
|
-
* The type constraint the variable's type line spells, as written; empty
|
|
1311
|
-
* for a variable with no type line. `any` is a type line of its own.
|
|
1312
|
-
*/
|
|
1313
|
-
type: string;
|
|
1314
|
-
required: boolean;
|
|
1315
|
-
description: string;
|
|
1316
|
-
default_value: any | undefined;
|
|
1317
|
-
validation: ValidationBlock$1[];
|
|
1318
|
-
sensitive: boolean;
|
|
1319
|
-
/** unset = default (true); explicit false is meaningful */
|
|
1320
|
-
nullable?: boolean | undefined;
|
|
1321
|
-
/** unset = default (false); explicit true is meaningful */
|
|
1322
|
-
ephemeral?: boolean | undefined;
|
|
1323
|
-
}
|
|
1324
|
-
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
1325
|
-
interface ValidationBlock$1 {
|
|
1326
|
-
condition: string;
|
|
1327
|
-
error_message: string;
|
|
1328
|
-
}
|
|
1329
|
-
declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
|
|
1330
|
-
interface OutputDef$1 {
|
|
1331
|
-
name: string;
|
|
1332
|
-
/**
|
|
1333
|
-
* The type of the child output the output's export reads; empty when
|
|
1334
|
-
* nothing types it. An output block declares no type.
|
|
1335
|
-
*/
|
|
1336
|
-
type: string;
|
|
1337
|
-
description: string;
|
|
1338
|
-
sensitive: boolean;
|
|
1339
|
-
depends_on: string[];
|
|
1340
|
-
}
|
|
1341
|
-
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
1342
|
-
interface Source {
|
|
1343
|
-
kind: string;
|
|
1344
|
-
repo: string;
|
|
1345
|
-
subdir: string;
|
|
1346
|
-
ref: string;
|
|
1347
|
-
}
|
|
1348
|
-
declare const Source: MessageFns$1<Source>;
|
|
1349
|
-
interface Local {
|
|
1350
|
-
name: string;
|
|
1351
|
-
value: Binding | undefined;
|
|
1352
|
-
}
|
|
1353
|
-
declare const Local: MessageFns$1<Local>;
|
|
1354
|
-
interface Use {
|
|
1355
|
-
id: string;
|
|
1356
|
-
module: string;
|
|
1357
|
-
inputs: {
|
|
1358
|
-
[key: string]: Binding;
|
|
1359
|
-
};
|
|
1360
|
-
depends_on: string[];
|
|
1361
|
-
/** count meta-argument */
|
|
1362
|
-
count: Binding | undefined;
|
|
1363
|
-
/** for_each meta-argument */
|
|
1364
|
-
for_each: Binding | undefined;
|
|
1365
|
-
/**
|
|
1366
|
-
* A module call's `providers = {}` map (child-local name → root ref).
|
|
1367
|
-
* Each entry targets the child's default provider slot for that name;
|
|
1368
|
-
* this map has no way to target an aliased child slot.
|
|
1369
|
-
*/
|
|
1370
|
-
providers: {
|
|
1371
|
-
[key: string]: string;
|
|
1372
|
-
};
|
|
1373
|
-
}
|
|
1374
|
-
declare const Use: MessageFns$1<Use>;
|
|
1375
|
-
interface Resource {
|
|
1376
|
-
id: string;
|
|
1377
|
-
kind: string;
|
|
1378
|
-
type: string;
|
|
1379
|
-
inputs: {
|
|
1380
|
-
[key: string]: Binding;
|
|
1381
|
-
};
|
|
1382
|
-
depends_on: string[];
|
|
1383
|
-
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
1384
|
-
blocks: Block[];
|
|
1385
|
-
/** count meta-argument */
|
|
1386
|
-
count: Binding | undefined;
|
|
1387
|
-
/** for_each meta-argument */
|
|
1388
|
-
for_each: Binding | undefined;
|
|
1389
|
-
/** provider meta-argument, e.g. "aws.west" */
|
|
1390
|
-
provider_ref: string;
|
|
1391
|
-
}
|
|
1392
|
-
declare const Resource: MessageFns$1<Resource>;
|
|
1393
|
-
/**
|
|
1394
|
-
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
1395
|
-
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
1396
|
-
* byte-deterministic.
|
|
1397
|
-
*/
|
|
1398
|
-
interface Block {
|
|
1399
|
-
type: string;
|
|
1400
|
-
labels: string[];
|
|
1401
|
-
attributes: NamedBinding[];
|
|
1402
|
-
blocks: Block[];
|
|
1403
|
-
}
|
|
1404
|
-
declare const Block: MessageFns$1<Block>;
|
|
1405
|
-
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
1406
|
-
interface NamedBinding {
|
|
1407
|
-
name: string;
|
|
1408
|
-
value: Binding | undefined;
|
|
1409
|
-
}
|
|
1410
|
-
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
1411
|
-
interface Exports {
|
|
1412
|
-
outputs: {
|
|
1413
|
-
[key: string]: OutputExport;
|
|
1414
|
-
};
|
|
1415
|
-
}
|
|
1416
|
-
declare const Exports: MessageFns$1<Exports>;
|
|
1417
|
-
interface OutputExport {
|
|
1418
|
-
out: OutputRef | undefined;
|
|
1419
|
-
lit: any | undefined;
|
|
1420
|
-
var: string;
|
|
1421
|
-
expr: Expression | undefined;
|
|
1422
|
-
}
|
|
1423
|
-
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
1424
|
-
interface Binding {
|
|
1425
|
-
lit?: any | undefined;
|
|
1426
|
-
var?: string | undefined;
|
|
1427
|
-
out?: OutputRef | undefined;
|
|
1428
|
-
expr?: Expression | undefined;
|
|
1429
|
-
}
|
|
1430
|
-
declare const Binding: MessageFns$1<Binding>;
|
|
1431
|
-
interface OutputRef {
|
|
1432
|
-
module: string;
|
|
1433
|
-
name: string;
|
|
1434
|
-
}
|
|
1435
|
-
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
1436
|
-
interface Expression {
|
|
1437
|
-
lang: string;
|
|
1438
|
-
value: string;
|
|
1439
|
-
/**
|
|
1440
|
-
* The module calls `value` reads, in source order: what the engine's
|
|
1441
|
-
* one reader of references reads from the parse of `value`. The engine
|
|
1442
|
-
* fills them each time it encodes an Expression and reads none back, so
|
|
1443
|
-
* a consumer takes a reference from here and never from `value`.
|
|
1444
|
-
*/
|
|
1445
|
-
module_references: ModuleReference[];
|
|
1446
|
-
}
|
|
1447
|
-
declare const Expression: MessageFns$1<Expression>;
|
|
1448
|
-
/** ModuleReference is one module.<call> an expression reads. */
|
|
1449
|
-
interface ModuleReference {
|
|
1450
|
-
/** The call read: module.<call>. */
|
|
1451
|
-
call: string;
|
|
1452
|
-
/**
|
|
1453
|
-
* The output read off the call: the first attribute after the call and
|
|
1454
|
-
* any instance key in the text, module.<call>.<output> or
|
|
1455
|
-
* module.<call>[0].<output>. Unset when the reference reads the whole
|
|
1456
|
-
* call: module.<call> alone, through a splat, or by a key an expression
|
|
1457
|
-
* computes.
|
|
1458
|
-
*/
|
|
1459
|
-
output?: string | undefined;
|
|
1460
|
-
/** An instance key follows the call: [0], ["k"] or [<expression>]. */
|
|
1461
|
-
instance_key: boolean;
|
|
1462
|
-
/** A splat follows the call or its instance key: [*] or .*. */
|
|
1463
|
-
splat: boolean;
|
|
1464
|
-
}
|
|
1465
|
-
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
1466
|
-
/**
|
|
1467
|
-
* A module's terraform block as the IR holds it. It holds no backend: Lace
|
|
1468
|
-
* manages state, and a backend block is a fact about the files.
|
|
1469
|
-
*/
|
|
1470
|
-
interface TerraformBlock {
|
|
1471
|
-
required_version: string;
|
|
1472
|
-
required_providers: {
|
|
1473
|
-
[key: string]: ProviderRequirement;
|
|
1474
|
-
};
|
|
1475
|
-
}
|
|
1476
|
-
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
1477
|
-
interface ProviderRequirement {
|
|
1478
|
-
source: string;
|
|
1479
|
-
version: string;
|
|
1480
|
-
configuration_aliases: string[];
|
|
1481
|
-
}
|
|
1482
|
-
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
1483
|
-
interface ProviderConfig {
|
|
1484
|
-
name: string;
|
|
1485
|
-
alias: string;
|
|
1486
|
-
config: {
|
|
1487
|
-
[key: string]: Binding;
|
|
365
|
+
}
|
|
366
|
+
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
367
|
+
interface ProviderRequirement {
|
|
368
|
+
source: string;
|
|
369
|
+
version: string;
|
|
370
|
+
configuration_aliases: string[];
|
|
371
|
+
}
|
|
372
|
+
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
373
|
+
interface ProviderConfig {
|
|
374
|
+
name: string;
|
|
375
|
+
alias: string;
|
|
376
|
+
config: {
|
|
377
|
+
[key: string]: Binding;
|
|
1488
378
|
};
|
|
1489
379
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
1490
380
|
blocks: Block[];
|
|
@@ -1525,127 +415,6 @@ declare enum DiagnosticSeverity {
|
|
|
1525
415
|
DIAGNOSTIC_SEVERITY_INFO = 3,
|
|
1526
416
|
UNRECOGNIZED = -1
|
|
1527
417
|
}
|
|
1528
|
-
/**
|
|
1529
|
-
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
1530
|
-
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
1531
|
-
* status' error details, and a command's failure document names it; a
|
|
1532
|
-
* client branches on it, never on the message's text. A failure the API
|
|
1533
|
-
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
1534
|
-
* reason only where that code has one: every code that asks the developer
|
|
1535
|
-
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
1536
|
-
*/
|
|
1537
|
-
declare enum Reason {
|
|
1538
|
-
REASON_UNSPECIFIED = 0,
|
|
1539
|
-
/**
|
|
1540
|
-
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
1541
|
-
* module convert and stack import: lacification cannot take the tree to
|
|
1542
|
-
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
1543
|
-
*/
|
|
1544
|
-
REASON_NOT_LACE_FORM = 1,
|
|
1545
|
-
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
1546
|
-
REASON_HASH_MISMATCH = 2,
|
|
1547
|
-
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
1548
|
-
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
1549
|
-
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
1550
|
-
REASON_ROOT_LOCKED = 4,
|
|
1551
|
-
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
1552
|
-
REASON_UNSAVED = 5,
|
|
1553
|
-
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
1554
|
-
REASON_CONFLICT = 6,
|
|
1555
|
-
/**
|
|
1556
|
-
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
1557
|
-
* (`BundleState.source_refused`).
|
|
1558
|
-
* module convert and stack import: the tree's tf does not parse, has a
|
|
1559
|
-
* non-empty residual report, or its Bundle fails its own validation.
|
|
1560
|
-
* module validate, stack apply / stack destroy / registry register: a
|
|
1561
|
-
* source the command reads does not parse; apply, destroy and register
|
|
1562
|
-
* check it before the certification.
|
|
1563
|
-
*/
|
|
1564
|
-
REASON_SOURCE_REFUSED = 7,
|
|
1565
|
-
/**
|
|
1566
|
-
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
1567
|
-
* root is not inside a git working tree.
|
|
1568
|
-
* stack create --source: the directory is not inside a git working tree,
|
|
1569
|
-
* so it has no place in a repository to bind the stack to.
|
|
1570
|
-
*/
|
|
1571
|
-
REASON_NOT_GIT_REPOSITORY = 8,
|
|
1572
|
-
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
1573
|
-
REASON_GENERATE_IN_PROGRESS = 9,
|
|
1574
|
-
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
1575
|
-
REASON_NO_ORGANIZATION = 10,
|
|
1576
|
-
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
1577
|
-
REASON_NO_TEAM = 11,
|
|
1578
|
-
/**
|
|
1579
|
-
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
1580
|
-
* certification.
|
|
1581
|
-
*/
|
|
1582
|
-
REASON_NO_CERTIFICATION = 12,
|
|
1583
|
-
/**
|
|
1584
|
-
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
1585
|
-
* does not certify the tree on disk — the tree changed since validate,
|
|
1586
|
-
* another lace version wrote it, or its files are torn or mixed from two
|
|
1587
|
-
* validates. Running validate again replaces it.
|
|
1588
|
-
*/
|
|
1589
|
-
REASON_STALE_CERTIFICATION = 13,
|
|
1590
|
-
/**
|
|
1591
|
-
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
1592
|
-
* convert / stack import / stack preview / stack apply / stack destroy:
|
|
1593
|
-
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
1594
|
-
* is not available. convert and stack import run the pinned terraform
|
|
1595
|
-
* through the validate each closes on, apply and destroy through their
|
|
1596
|
-
* local plan.
|
|
1597
|
-
*/
|
|
1598
|
-
REASON_TOOL_MISSING = 14,
|
|
1599
|
-
/**
|
|
1600
|
-
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
1601
|
-
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
1602
|
-
* It is a refusal of the batch's content, carried on its GraphError.
|
|
1603
|
-
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
1604
|
-
* (FailedPrecondition) as such a wire is.
|
|
1605
|
-
*/
|
|
1606
|
-
REASON_CROSS_SCOPE = 15,
|
|
1607
|
-
/**
|
|
1608
|
-
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
1609
|
-
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
1610
|
-
* before any request; or the API refuses the ones sent with its code
|
|
1611
|
-
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
1612
|
-
*/
|
|
1613
|
-
REASON_UNAUTHENTICATED = 16,
|
|
1614
|
-
/**
|
|
1615
|
-
* REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
|
|
1616
|
-
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
1617
|
-
* writes the import without them. Nothing was written.
|
|
1618
|
-
*/
|
|
1619
|
-
REASON_IMPORT_RESIDUAL = 17,
|
|
1620
|
-
/**
|
|
1621
|
-
* REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
|
|
1622
|
-
* adopts into an empty stack. Nothing was read or written.
|
|
1623
|
-
*/
|
|
1624
|
-
REASON_STACK_HAS_STATE = 18,
|
|
1625
|
-
/**
|
|
1626
|
-
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
1627
|
-
* remote, whose URL is the repository a stack's source binding names.
|
|
1628
|
-
*/
|
|
1629
|
-
REASON_NO_ORIGIN_REMOTE = 19,
|
|
1630
|
-
/**
|
|
1631
|
-
* REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
|
|
1632
|
-
* declare, named in the failure's `addresses`; an import block adopts
|
|
1633
|
-
* only a resource the tree declares. Nothing was written.
|
|
1634
|
-
*/
|
|
1635
|
-
REASON_IMPORT_UNDECLARED = 20,
|
|
1636
|
-
/**
|
|
1637
|
-
* REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
|
|
1638
|
-
* named in the failure's `addresses`; terraform refuses two imports of
|
|
1639
|
-
* one address. Nothing was written.
|
|
1640
|
-
*/
|
|
1641
|
-
REASON_ALREADY_IMPORTED = 21,
|
|
1642
|
-
/**
|
|
1643
|
-
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
1644
|
-
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
1645
|
-
*/
|
|
1646
|
-
REASON_NO_LOCKFILE = 22,
|
|
1647
|
-
UNRECOGNIZED = -1
|
|
1648
|
-
}
|
|
1649
418
|
declare enum ConflictChoice {
|
|
1650
419
|
CONFLICT_CHOICE_UNSPECIFIED = 0,
|
|
1651
420
|
CONFLICT_CHOICE_KEEP = 1,
|
|
@@ -2329,389 +1098,1682 @@ interface BundleState {
|
|
|
2329
1098
|
* True when the saved IR in `state.lace` carries edits no Generate
|
|
2330
1099
|
* has written to the source tf.
|
|
2331
1100
|
*/
|
|
2332
|
-
ungenerated: boolean;
|
|
1101
|
+
ungenerated: boolean;
|
|
1102
|
+
/**
|
|
1103
|
+
* True when the source tf this session opened, or last observed live,
|
|
1104
|
+
* is refused: it cannot be selected as one tree, does not parse, parses
|
|
1105
|
+
* lossily, or is not in lace shape, and `diagnostics` names why — one
|
|
1106
|
+
* `not_lace_shape` diagnostic per managed resource out of lace shape, whose
|
|
1107
|
+
* remedy is Convert (`module convert`). The engine refuses every
|
|
1108
|
+
* mutation while this holds — edit, undo, redo, save, generate, and
|
|
1109
|
+
* SessionResolveConflict's Keep/Reload alike — until a live tf change
|
|
1110
|
+
* is accepted and clears it.
|
|
1111
|
+
*/
|
|
1112
|
+
source_refused: boolean;
|
|
1113
|
+
/**
|
|
1114
|
+
* The hash of the root's tree as the session last observed it: the
|
|
1115
|
+
* same hash `module validate` reports as `treeHash`, so a client tells
|
|
1116
|
+
* whether the tree moved since a report by comparing the two. Empty
|
|
1117
|
+
* for an ephemeral session, and for a tree that cannot be hashed.
|
|
1118
|
+
*/
|
|
1119
|
+
tree_hash: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* The session's state revision: a per-session counter that advances by
|
|
1122
|
+
* one with every state frame the session publishes, and frames reach a
|
|
1123
|
+
* subscriber in revision order. The state a SessionOpen or a Subscribe
|
|
1124
|
+
* starts with carries the session's current revision. A client compares
|
|
1125
|
+
* it with `BundleApplyResult.revision` to tell whether the frame it
|
|
1126
|
+
* holds already shows a batch it applied.
|
|
1127
|
+
*/
|
|
1128
|
+
revision: number;
|
|
1129
|
+
/**
|
|
1130
|
+
* True while a Generate holds the session's one Generate: from the moment
|
|
1131
|
+
* SessionGenerate takes it until the call answers — the tree's write and
|
|
1132
|
+
* the module validate that certifies it. The session publishes a frame
|
|
1133
|
+
* when it is taken and when it is released, so a subscriber that joins
|
|
1134
|
+
* mid-Generate starts with it set, and a second SessionGenerate in that
|
|
1135
|
+
* window is refused (FailedPrecondition).
|
|
1136
|
+
*/
|
|
1137
|
+
generating: boolean;
|
|
1138
|
+
}
|
|
1139
|
+
declare const BundleState: MessageFns<BundleState>;
|
|
1140
|
+
/**
|
|
1141
|
+
* BundleApplyResult is returned by action RPCs (Connect, UpdateInput,
|
|
1142
|
+
* CreateGroup, ...) after an action is applied to the session. On
|
|
1143
|
+
* success, the corresponding `BundleState` is delivered via Subscribe
|
|
1144
|
+
* to all connected subscribers (including the action's caller).
|
|
1145
|
+
* On failure, `errors` carries the reasons the mutation was rejected
|
|
1146
|
+
* at the IR-validation boundary.
|
|
1147
|
+
*
|
|
1148
|
+
* `created` is the action-result attribution contract: the server
|
|
1149
|
+
* already knows which child/module IDs an action minted (placement,
|
|
1150
|
+
* group creation, copy), so it reports them here instead of clients
|
|
1151
|
+
* diffing successive BundleState frames to guess.
|
|
1152
|
+
*/
|
|
1153
|
+
interface BundleApplyResult {
|
|
1154
|
+
success: boolean;
|
|
1155
|
+
errors: GraphError$1[];
|
|
1156
|
+
created: CreatedRef$1[];
|
|
1157
|
+
/**
|
|
1158
|
+
* The revision of the state the batch produced: the
|
|
1159
|
+
* `BundleState.revision` of the frame that carries it. For a batch
|
|
1160
|
+
* that changed nothing or was refused, the session's current revision.
|
|
1161
|
+
* A subscriber holds the batch's own write once it has received a
|
|
1162
|
+
* frame at this revision or a later one.
|
|
1163
|
+
*/
|
|
1164
|
+
revision: number;
|
|
1165
|
+
/**
|
|
1166
|
+
* The pairs an `auto_connect` of the batch did not wire because they
|
|
1167
|
+
* tie: two or more pairs at one score sharing an input or an output.
|
|
1168
|
+
* No port a tied pair names was wired.
|
|
1169
|
+
*/
|
|
1170
|
+
ties: WiringCandidate$1[];
|
|
1171
|
+
}
|
|
1172
|
+
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
1173
|
+
/**
|
|
1174
|
+
* CreatedRef names one child created by an action (PlaceModule,
|
|
1175
|
+
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
1176
|
+
* writes (position, group collapse) off these IDs instead of
|
|
1177
|
+
* diffing BundleState frames.
|
|
1178
|
+
*/
|
|
1179
|
+
interface CreatedRef$1 {
|
|
1180
|
+
/** The scope key (module key) the child was created in. */
|
|
1181
|
+
scope: string;
|
|
1182
|
+
/** The created child/Use ID. */
|
|
1183
|
+
id: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Set when the action minted a new module (e.g. group create): the
|
|
1186
|
+
* new module's key. Empty otherwise.
|
|
1187
|
+
*/
|
|
1188
|
+
module_key: string;
|
|
2333
1189
|
/**
|
|
2334
|
-
*
|
|
2335
|
-
*
|
|
2336
|
-
* lossily, or is not in lace shape, and `diagnostics` names why — one
|
|
2337
|
-
* `not_lace_shape` diagnostic per managed resource out of lace shape, whose
|
|
2338
|
-
* remedy is Convert (`module convert`). The engine refuses every
|
|
2339
|
-
* mutation while this holds — edit, undo, redo, save, generate, and
|
|
2340
|
-
* SessionResolveConflict's Keep/Reload alike — until a live tf change
|
|
2341
|
-
* is accepted and clears it.
|
|
1190
|
+
* Set when the child was cloned from an existing one (e.g. copy):
|
|
1191
|
+
* the source child ID. Empty otherwise.
|
|
2342
1192
|
*/
|
|
2343
|
-
|
|
1193
|
+
source_id: string;
|
|
1194
|
+
}
|
|
1195
|
+
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
1196
|
+
/**
|
|
1197
|
+
* GraphError is a refusal of a batch's content: one action the working IR
|
|
1198
|
+
* would not take, located at the module, instance and input it addressed,
|
|
1199
|
+
* with its sentence and, where the refusal has an entry in the one
|
|
1200
|
+
* vocabulary, its reason (`REASON_CROSS_SCOPE` for a wire across a
|
|
1201
|
+
* group's boundary; `REASON_UNSPECIFIED` otherwise). A client branches on
|
|
1202
|
+
* the reason, never on the message. Mutation-boundary errors never reach
|
|
1203
|
+
* the canvas; they are returned synchronously to the action RPC caller.
|
|
1204
|
+
* The canvas renders no validator of its own — it surfaces
|
|
1205
|
+
* BundleState.diagnostics.
|
|
1206
|
+
*/
|
|
1207
|
+
interface GraphError$1 {
|
|
1208
|
+
module_key: string;
|
|
1209
|
+
instance_id: string;
|
|
1210
|
+
input_name: string;
|
|
1211
|
+
message: string;
|
|
1212
|
+
reason: Reason;
|
|
1213
|
+
}
|
|
1214
|
+
declare const GraphError$1: MessageFns<GraphError$1>;
|
|
1215
|
+
interface ProviderReqView {
|
|
1216
|
+
name: string;
|
|
1217
|
+
source: string;
|
|
1218
|
+
version: string;
|
|
2344
1219
|
/**
|
|
2345
|
-
*
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2348
|
-
*
|
|
1220
|
+
* Provider references the module declares it accepts from its caller
|
|
1221
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
1222
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
1223
|
+
* drops nor corrupts the construct.
|
|
2349
1224
|
*/
|
|
2350
|
-
|
|
1225
|
+
configuration_aliases: string[];
|
|
1226
|
+
}
|
|
1227
|
+
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
1228
|
+
interface ProviderView {
|
|
1229
|
+
name: string;
|
|
1230
|
+
alias: string;
|
|
1231
|
+
/** Each setting's value as text. */
|
|
1232
|
+
config: {
|
|
1233
|
+
[key: string]: string;
|
|
1234
|
+
};
|
|
1235
|
+
/** The configuration's nested blocks (default_tags, assume_role, …). */
|
|
1236
|
+
blocks: BlockView[];
|
|
1237
|
+
}
|
|
1238
|
+
declare const ProviderView: MessageFns<ProviderView>;
|
|
1239
|
+
/**
|
|
1240
|
+
* BlockView is a block as a panel edits it: a resource's or a provider
|
|
1241
|
+
* configuration's nested block, or a `moved` or `import` block. Each
|
|
1242
|
+
* attribute's value is text, in the block's declaration order.
|
|
1243
|
+
*/
|
|
1244
|
+
interface BlockView {
|
|
1245
|
+
type: string;
|
|
1246
|
+
labels: string[];
|
|
1247
|
+
attributes: AttributeView[];
|
|
1248
|
+
blocks: BlockView[];
|
|
1249
|
+
}
|
|
1250
|
+
declare const BlockView: MessageFns<BlockView>;
|
|
1251
|
+
interface AttributeView {
|
|
1252
|
+
name: string;
|
|
1253
|
+
value: string;
|
|
1254
|
+
}
|
|
1255
|
+
declare const AttributeView: MessageFns<AttributeView>;
|
|
1256
|
+
interface InputDef {
|
|
1257
|
+
name: string;
|
|
2351
1258
|
/**
|
|
2352
|
-
* The
|
|
2353
|
-
*
|
|
2354
|
-
* subscriber in revision order. The state a SessionOpen or a Subscribe
|
|
2355
|
-
* starts with carries the session's current revision. A client compares
|
|
2356
|
-
* it with `BundleApplyResult.revision` to tell whether the frame it
|
|
2357
|
-
* holds already shows a batch it applied.
|
|
1259
|
+
* The type constraint the variable's type line spells, as written; empty
|
|
1260
|
+
* for a variable with no type line. `any` is a type line of its own.
|
|
2358
1261
|
*/
|
|
2359
|
-
|
|
1262
|
+
type: string;
|
|
1263
|
+
required: boolean;
|
|
1264
|
+
description: string;
|
|
1265
|
+
default_value: any | undefined;
|
|
1266
|
+
validation: ValidationBlock[];
|
|
1267
|
+
/** unset = default (false); explicit true is meaningful */
|
|
1268
|
+
ephemeral?: boolean | undefined;
|
|
1269
|
+
/** unset = default (true); explicit false is meaningful */
|
|
1270
|
+
nullable?: boolean | undefined;
|
|
1271
|
+
sensitive: boolean;
|
|
1272
|
+
}
|
|
1273
|
+
declare const InputDef: MessageFns<InputDef>;
|
|
1274
|
+
interface ValidationBlock {
|
|
1275
|
+
condition: string;
|
|
1276
|
+
error_message: string;
|
|
1277
|
+
}
|
|
1278
|
+
declare const ValidationBlock: MessageFns<ValidationBlock>;
|
|
1279
|
+
interface OutputDef {
|
|
1280
|
+
name: string;
|
|
2360
1281
|
/**
|
|
2361
|
-
*
|
|
2362
|
-
*
|
|
2363
|
-
* the module validate that certifies it. The session publishes a frame
|
|
2364
|
-
* when it is taken and when it is released, so a subscriber that joins
|
|
2365
|
-
* mid-Generate starts with it set, and a second SessionGenerate in that
|
|
2366
|
-
* window is refused (FailedPrecondition).
|
|
1282
|
+
* The type of the child output the output's export reads; empty when
|
|
1283
|
+
* nothing types it. An output block declares no type.
|
|
2367
1284
|
*/
|
|
2368
|
-
|
|
1285
|
+
type: string;
|
|
1286
|
+
description: string;
|
|
1287
|
+
sensitive: boolean;
|
|
1288
|
+
depends_on: string[];
|
|
1289
|
+
}
|
|
1290
|
+
declare const OutputDef: MessageFns<OutputDef>;
|
|
1291
|
+
type LaceEngineDefinition = typeof LaceEngineDefinition;
|
|
1292
|
+
declare const LaceEngineDefinition: {
|
|
1293
|
+
readonly name: "LaceEngine";
|
|
1294
|
+
readonly fullName: "lace.engine.LaceEngine";
|
|
1295
|
+
readonly methods: {
|
|
1296
|
+
/** Lifecycle (global; no session_id) */
|
|
1297
|
+
readonly initialize: {
|
|
1298
|
+
readonly name: "Initialize";
|
|
1299
|
+
readonly requestType: typeof InitializeRequest;
|
|
1300
|
+
readonly requestStream: false;
|
|
1301
|
+
readonly responseType: typeof InitializeResponse;
|
|
1302
|
+
readonly responseStream: false;
|
|
1303
|
+
readonly options: {};
|
|
1304
|
+
};
|
|
1305
|
+
readonly shutdown: {
|
|
1306
|
+
readonly name: "Shutdown";
|
|
1307
|
+
readonly requestType: typeof Empty;
|
|
1308
|
+
readonly requestStream: false;
|
|
1309
|
+
readonly responseType: typeof ShutdownResponse;
|
|
1310
|
+
readonly responseStream: false;
|
|
1311
|
+
readonly options: {};
|
|
1312
|
+
};
|
|
1313
|
+
/**
|
|
1314
|
+
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
1315
|
+
* opens the session source-refused (`BundleState.source_refused`) with
|
|
1316
|
+
* its diagnostics, rather than returning an RPC error.
|
|
1317
|
+
*/
|
|
1318
|
+
readonly sessionOpen: {
|
|
1319
|
+
readonly name: "SessionOpen";
|
|
1320
|
+
readonly requestType: typeof SessionOpenRequest;
|
|
1321
|
+
readonly requestStream: false;
|
|
1322
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
1323
|
+
readonly responseStream: false;
|
|
1324
|
+
readonly options: {};
|
|
1325
|
+
};
|
|
1326
|
+
readonly testSessionOpen: {
|
|
1327
|
+
readonly name: "TestSessionOpen";
|
|
1328
|
+
readonly requestType: typeof TestSessionOpenRequest;
|
|
1329
|
+
readonly requestStream: false;
|
|
1330
|
+
readonly responseType: typeof SessionOpenResponse;
|
|
1331
|
+
readonly responseStream: false;
|
|
1332
|
+
readonly options: {};
|
|
1333
|
+
};
|
|
1334
|
+
/**
|
|
1335
|
+
* Writes the session's working IR to `state.lace`. The one RPC that
|
|
1336
|
+
* writes `state.lace`; never writes the source tf.
|
|
1337
|
+
*/
|
|
1338
|
+
readonly sessionSave: {
|
|
1339
|
+
readonly name: "SessionSave";
|
|
1340
|
+
readonly requestType: typeof SessionSaveRequest;
|
|
1341
|
+
readonly requestStream: false;
|
|
1342
|
+
readonly responseType: typeof SessionSaveResponse;
|
|
1343
|
+
readonly responseStream: false;
|
|
1344
|
+
readonly options: {};
|
|
1345
|
+
};
|
|
1346
|
+
readonly sessionClose: {
|
|
1347
|
+
readonly name: "SessionClose";
|
|
1348
|
+
readonly requestType: typeof SessionCloseRequest;
|
|
1349
|
+
readonly requestStream: false;
|
|
1350
|
+
readonly responseType: typeof SessionCloseResponse;
|
|
1351
|
+
readonly responseStream: false;
|
|
1352
|
+
readonly options: {};
|
|
1353
|
+
};
|
|
1354
|
+
/**
|
|
1355
|
+
* Writes the session's saved Bundle to HCL and re-bases the session
|
|
1356
|
+
* onto the written tree's hash. Refuses (FailedPrecondition) while the
|
|
1357
|
+
* session is ephemeral, holds the git guard, is source-refused, has an
|
|
1358
|
+
* open conflict, has unsaved edits, or is already running a Generate
|
|
1359
|
+
* (one at a time per session). Every Generate that reaches a session
|
|
1360
|
+
* publishes its events to that session's subscribers under its own
|
|
1361
|
+
* `generate_id`: its progress, and exactly one closing `generate_success`
|
|
1362
|
+
* or `generate_error` — a refusal included, which also fails the call.
|
|
1363
|
+
*/
|
|
1364
|
+
readonly sessionGenerate: {
|
|
1365
|
+
readonly name: "SessionGenerate";
|
|
1366
|
+
readonly requestType: typeof SessionGenerateRequest;
|
|
1367
|
+
readonly requestStream: false;
|
|
1368
|
+
readonly responseType: typeof SessionGenerateResponse;
|
|
1369
|
+
readonly responseStream: false;
|
|
1370
|
+
readonly options: {};
|
|
1371
|
+
};
|
|
1372
|
+
/**
|
|
1373
|
+
* Resolves an open conflict: keep the session's IR for this tree hash,
|
|
1374
|
+
* or reload the session from the tree.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly sessionResolveConflict: {
|
|
1377
|
+
readonly name: "SessionResolveConflict";
|
|
1378
|
+
readonly requestType: typeof SessionResolveConflictRequest;
|
|
1379
|
+
readonly requestStream: false;
|
|
1380
|
+
readonly responseType: typeof SessionResolveConflictResponse;
|
|
1381
|
+
readonly responseStream: false;
|
|
1382
|
+
readonly options: {};
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* Single unified mutation RPC. Every canvas mutation (connect, update
|
|
1386
|
+
* input, create group, undo, redo, place module from registry, ...)
|
|
1387
|
+
* travels through ApplyAction carrying one or more `Action` oneof
|
|
1388
|
+
* cases. Returns `BundleApplyResult { success, errors, created,
|
|
1389
|
+
* revision }`. A batch is applied whole or not at all: a batch any
|
|
1390
|
+
* action of which is refused is refused whole and publishes nothing; a
|
|
1391
|
+
* batch that changes nothing publishes nothing and adds no undo entry;
|
|
1392
|
+
* an applied batch is one undo entry and one `BundleState` frame,
|
|
1393
|
+
* published to every Subscribe stream on this session (including the
|
|
1394
|
+
* caller's) at the revision the result names. Refused
|
|
1395
|
+
* (FailedPrecondition) while the session is source-refused.
|
|
1396
|
+
*/
|
|
1397
|
+
readonly applyAction: {
|
|
1398
|
+
readonly name: "ApplyAction";
|
|
1399
|
+
readonly requestType: typeof ApplyActionRequest;
|
|
1400
|
+
readonly requestStream: false;
|
|
1401
|
+
readonly responseType: typeof BundleApplyResult;
|
|
1402
|
+
readonly responseStream: false;
|
|
1403
|
+
readonly options: {};
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Reads the output → input pairs the engine's matcher scores between the
|
|
1407
|
+
* instances of one module of a session's working IR: the pairs an
|
|
1408
|
+
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
1409
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
1410
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
1411
|
+
* it is given as a `connect`.
|
|
1412
|
+
*/
|
|
1413
|
+
readonly readWiringCandidates: {
|
|
1414
|
+
readonly name: "ReadWiringCandidates";
|
|
1415
|
+
readonly requestType: typeof ReadWiringCandidatesRequest;
|
|
1416
|
+
readonly requestStream: false;
|
|
1417
|
+
readonly responseType: typeof ReadWiringCandidatesResponse;
|
|
1418
|
+
readonly responseStream: false;
|
|
1419
|
+
readonly options: {};
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Runs one CLI command in-process against a fresh command tree. `started` is first, once the engine has accepted
|
|
1423
|
+
* the request and before the command runs; the command's `-o json` output follows: each top-level JSON value on
|
|
1424
|
+
* stdout is one `json` event; `exit` is always last.
|
|
1425
|
+
*/
|
|
1426
|
+
readonly invoke: {
|
|
1427
|
+
readonly name: "Invoke";
|
|
1428
|
+
readonly requestType: typeof InvokeRequest;
|
|
1429
|
+
readonly requestStream: false;
|
|
1430
|
+
readonly responseType: typeof InvokeEvent;
|
|
1431
|
+
readonly responseStream: true;
|
|
1432
|
+
readonly options: {};
|
|
1433
|
+
};
|
|
1434
|
+
/** Cancels a live Invoke as an explicit user cancel (errUserCancel). A stream closed without this detaches. */
|
|
1435
|
+
readonly cancelInvoke: {
|
|
1436
|
+
readonly name: "CancelInvoke";
|
|
1437
|
+
readonly requestType: typeof CancelInvokeRequest;
|
|
1438
|
+
readonly requestStream: false;
|
|
1439
|
+
readonly responseType: typeof CancelInvokeResponse;
|
|
1440
|
+
readonly responseStream: false;
|
|
1441
|
+
readonly options: {};
|
|
1442
|
+
};
|
|
1443
|
+
/**
|
|
1444
|
+
* Server-push events scoped to one session. Yields `BundleStateEvent`
|
|
1445
|
+
* — full `BundleState` snapshots per session-state change, generate-phase
|
|
1446
|
+
* pass-throughs, and the result of every command that ran in the
|
|
1447
|
+
* session's root (`CommandResult`). Initial emission is the current
|
|
1448
|
+
* BundleState, which acts as the "subscribed" ready signal, followed by
|
|
1449
|
+
* the last `CommandResult` the session keeps per command path.
|
|
1450
|
+
*
|
|
1451
|
+
* Consumers (portal + extension canvas engines) project locally via
|
|
1452
|
+
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
1453
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
1454
|
+
* view state — it never travels over this RPC.
|
|
1455
|
+
*/
|
|
1456
|
+
readonly subscribe: {
|
|
1457
|
+
readonly name: "Subscribe";
|
|
1458
|
+
readonly requestType: typeof SubscribeRequest;
|
|
1459
|
+
readonly requestStream: false;
|
|
1460
|
+
readonly responseType: typeof BundleStateEvent;
|
|
1461
|
+
readonly responseStream: true;
|
|
1462
|
+
readonly options: {};
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1467
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
1468
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1469
|
+
} : Partial<T>;
|
|
1470
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1471
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
1472
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
1473
|
+
} & {
|
|
1474
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
1475
|
+
};
|
|
1476
|
+
interface MessageFns<T> {
|
|
1477
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1478
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1479
|
+
fromJSON(object: any): T;
|
|
1480
|
+
toJSON(message: T): unknown;
|
|
1481
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1482
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
2369
1483
|
}
|
|
2370
|
-
|
|
1484
|
+
|
|
1485
|
+
type MsgOf<M> = M extends {
|
|
1486
|
+
fromJSON(object: unknown): infer T;
|
|
1487
|
+
} ? T : never;
|
|
1488
|
+
type EngineMethodResponse = {
|
|
1489
|
+
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
|
|
1490
|
+
};
|
|
1491
|
+
type EngineMethodRequest = {
|
|
1492
|
+
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: DeepPartial<MsgOf<(typeof LaceEngineDefinition.methods)[K]['requestType']>>;
|
|
1493
|
+
};
|
|
1494
|
+
type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
|
|
1495
|
+
kind: 'bridge' | 'direct';
|
|
1496
|
+
unary<M extends UnaryMethod>(method: M, request: EngineMethodRequest[M]): Promise<EngineMethodResponse[M]>;
|
|
1497
|
+
stream<M extends EngineStreamMethod>(method: M, request: EngineMethodRequest[M], signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
|
|
1498
|
+
};
|
|
1499
|
+
/** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
|
|
1500
|
+
* straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
|
|
1501
|
+
* included. `openEngineSession`'s fixture-target overload requires one. */
|
|
1502
|
+
type DirectEngineCaller = EngineCaller<EngineMethod> & {
|
|
1503
|
+
kind: 'direct';
|
|
1504
|
+
};
|
|
1505
|
+
/** The `kind: 'bridge'` narrowing of `EngineCaller<BridgeMethod>` —
|
|
1506
|
+
* `bridgeCaller`'s return type. `openEngineSession`'s fixture-target overload
|
|
1507
|
+
* excludes it: a bridge caller can't serve `TestSessionOpen`. */
|
|
1508
|
+
type BridgeEngineCaller = EngineCaller<BridgeMethod> & {
|
|
1509
|
+
kind: 'bridge';
|
|
1510
|
+
};
|
|
1511
|
+
type ConnectCallerOptions = {
|
|
1512
|
+
baseUrl: string;
|
|
1513
|
+
token: string;
|
|
1514
|
+
/** Fetch impl override — used by tests. Defaults to globalThis.fetch. */
|
|
1515
|
+
fetch?: typeof fetch;
|
|
1516
|
+
};
|
|
2371
1517
|
/**
|
|
2372
|
-
*
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2375
|
-
* to all connected subscribers (including the action's caller).
|
|
2376
|
-
* On failure, `errors` carries the reasons the mutation was rejected
|
|
2377
|
-
* at the IR-validation boundary.
|
|
2378
|
-
*
|
|
2379
|
-
* `created` is the action-result attribution contract: the server
|
|
2380
|
-
* already knows which child/module IDs an action minted (placement,
|
|
2381
|
-
* group creation, copy), so it reports them here instead of clients
|
|
2382
|
-
* diffing successive BundleState frames to guess.
|
|
1518
|
+
* Reaches a running `lace engine` process directly over Connect-JSON
|
|
1519
|
+
* (HTTP POST, fetch). Used by Storybook flow stories and the canvas-flow
|
|
1520
|
+
* Playwright suite, which run against a real engine process.
|
|
2383
1521
|
*/
|
|
2384
|
-
|
|
2385
|
-
success: boolean;
|
|
2386
|
-
errors: GraphError$1[];
|
|
2387
|
-
created: CreatedRef$1[];
|
|
2388
|
-
/**
|
|
2389
|
-
* The revision of the state the batch produced: the
|
|
2390
|
-
* `BundleState.revision` of the frame that carries it. For a batch
|
|
2391
|
-
* that changed nothing or was refused, the session's current revision.
|
|
2392
|
-
* A subscriber holds the batch's own write once it has received a
|
|
2393
|
-
* frame at this revision or a later one.
|
|
2394
|
-
*/
|
|
2395
|
-
revision: number;
|
|
2396
|
-
/**
|
|
2397
|
-
* The pairs an `auto_connect` of the batch did not wire because they
|
|
2398
|
-
* tie: two or more pairs at one score sharing an input or an output.
|
|
2399
|
-
* No port a tied pair names was wired.
|
|
2400
|
-
*/
|
|
2401
|
-
ties: WiringCandidate$1[];
|
|
2402
|
-
}
|
|
2403
|
-
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
1522
|
+
declare function connectCaller(options: ConnectCallerOptions): DirectEngineCaller;
|
|
2404
1523
|
/**
|
|
2405
|
-
*
|
|
2406
|
-
*
|
|
2407
|
-
*
|
|
2408
|
-
*
|
|
1524
|
+
* Forwards every call over a `MessageBridge` to the host process that holds
|
|
1525
|
+
* the engine connection (VS Code / JetBrains webview). `@lace-cloud/host`'s
|
|
1526
|
+
* `serveEngineBridge` is the other end. Each request is posted as its
|
|
1527
|
+
* method's proto-JSON, the body `connectCaller` sends, which the host reads
|
|
1528
|
+
* back through the message's `fromJSON` (`rpc.serialize`): a `bytes` field
|
|
1529
|
+
* crosses as base64 text, whatever the bridge does to a typed array. The
|
|
1530
|
+
* wire response arrives as the proto-JSON `serveEngineBridge` posted
|
|
1531
|
+
* (`rpc.deserialize`'s `toJSON`), so this caller decodes it back through
|
|
1532
|
+
* `RESPONSE_CODECS` before resolving/pushing it. `unary`'s own `M extends BridgeMethod` plus the
|
|
1533
|
+
* `kind: 'bridge'` tag are what make `BridgeEngineCaller` a type distinct
|
|
1534
|
+
* from `DirectEngineCaller`: `openEngineSession`'s fixture-target overload
|
|
1535
|
+
* requires `kind: 'direct'`, so a caller from here can't reach it.
|
|
2409
1536
|
*/
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
scope: string;
|
|
2413
|
-
/** The created child/Use ID. */
|
|
2414
|
-
id: string;
|
|
2415
|
-
/**
|
|
2416
|
-
* Set when the action minted a new module (e.g. group create): the
|
|
2417
|
-
* new module's key. Empty otherwise.
|
|
2418
|
-
*/
|
|
2419
|
-
module_key: string;
|
|
2420
|
-
/**
|
|
2421
|
-
* Set when the child was cloned from an existing one (e.g. copy):
|
|
2422
|
-
* the source child ID. Empty otherwise.
|
|
2423
|
-
*/
|
|
2424
|
-
source_id: string;
|
|
2425
|
-
}
|
|
2426
|
-
declare const CreatedRef$1: MessageFns<CreatedRef$1>;
|
|
1537
|
+
declare function bridgeCaller(bridge: MessageBridge): BridgeEngineCaller;
|
|
1538
|
+
|
|
2427
1539
|
/**
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2430
|
-
*
|
|
2431
|
-
* vocabulary, its reason (`REASON_CROSS_SCOPE` for a wire across a
|
|
2432
|
-
* group's boundary; `REASON_UNSPECIFIED` otherwise). A client branches on
|
|
2433
|
-
* the reason, never on the message. Mutation-boundary errors never reach
|
|
2434
|
-
* the canvas; they are returned synchronously to the action RPC caller.
|
|
2435
|
-
* The canvas renders no validator of its own — it surfaces
|
|
2436
|
-
* BundleState.diagnostics.
|
|
1540
|
+
* Every command a host can invoke, as command-tree.golden declares it: its
|
|
1541
|
+
* positionals, its flags and its effect (`read`, `write` or `rewrite`,
|
|
1542
|
+
* as apps/cli/internal/kernel/command/effect.go defines them).
|
|
2437
1543
|
*/
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
1544
|
+
declare const COMMANDS: {
|
|
1545
|
+
readonly "chaos run": {
|
|
1546
|
+
readonly path: "chaos run";
|
|
1547
|
+
readonly positionals: readonly [];
|
|
1548
|
+
readonly flags: {
|
|
1549
|
+
readonly commit: {
|
|
1550
|
+
readonly type: "string";
|
|
1551
|
+
};
|
|
1552
|
+
readonly credential: {
|
|
1553
|
+
readonly type: "string";
|
|
1554
|
+
};
|
|
1555
|
+
readonly duration: {
|
|
1556
|
+
readonly type: "string";
|
|
1557
|
+
};
|
|
1558
|
+
readonly engine: {
|
|
1559
|
+
readonly type: "string";
|
|
1560
|
+
readonly values: readonly ["aws_fis", "gremlin", "litmus_chaos"];
|
|
1561
|
+
};
|
|
1562
|
+
readonly excludeResourceType: {
|
|
1563
|
+
readonly type: "stringArray";
|
|
1564
|
+
readonly repeated: true;
|
|
1565
|
+
};
|
|
1566
|
+
readonly excludeResourceUri: {
|
|
1567
|
+
readonly type: "stringArray";
|
|
1568
|
+
readonly repeated: true;
|
|
1569
|
+
};
|
|
1570
|
+
readonly experimentId: {
|
|
1571
|
+
readonly type: "string";
|
|
1572
|
+
};
|
|
1573
|
+
readonly file: {
|
|
1574
|
+
readonly type: "string";
|
|
1575
|
+
};
|
|
1576
|
+
readonly org: {
|
|
1577
|
+
readonly type: "string";
|
|
1578
|
+
};
|
|
1579
|
+
readonly output: {
|
|
1580
|
+
readonly type: "string";
|
|
1581
|
+
readonly values: readonly ["table", "json"];
|
|
1582
|
+
readonly short: "o";
|
|
1583
|
+
};
|
|
1584
|
+
readonly prUrl: {
|
|
1585
|
+
readonly type: "string";
|
|
1586
|
+
};
|
|
1587
|
+
readonly ref: {
|
|
1588
|
+
readonly type: "string";
|
|
1589
|
+
};
|
|
1590
|
+
readonly resourceType: {
|
|
1591
|
+
readonly type: "stringArray";
|
|
1592
|
+
readonly repeated: true;
|
|
1593
|
+
};
|
|
1594
|
+
readonly selector: {
|
|
1595
|
+
readonly type: "string";
|
|
1596
|
+
readonly values: readonly ["first", "random"];
|
|
1597
|
+
};
|
|
1598
|
+
readonly stack: {
|
|
1599
|
+
readonly type: "string";
|
|
1600
|
+
readonly required: true;
|
|
1601
|
+
};
|
|
1602
|
+
readonly tag: {
|
|
1603
|
+
readonly type: "string";
|
|
1604
|
+
};
|
|
1605
|
+
readonly tagFilter: {
|
|
1606
|
+
readonly type: "stringArray";
|
|
1607
|
+
readonly repeated: true;
|
|
1608
|
+
};
|
|
1609
|
+
readonly team: {
|
|
1610
|
+
readonly type: "string";
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
readonly effect: "write";
|
|
1614
|
+
readonly hidden: false;
|
|
1615
|
+
readonly yes: false;
|
|
1616
|
+
};
|
|
1617
|
+
readonly "connection get": {
|
|
1618
|
+
readonly path: "connection get";
|
|
1619
|
+
readonly positionals: readonly [{
|
|
1620
|
+
readonly name: "connection";
|
|
1621
|
+
readonly kind: "required";
|
|
1622
|
+
}];
|
|
1623
|
+
readonly flags: {
|
|
1624
|
+
readonly org: {
|
|
1625
|
+
readonly type: "string";
|
|
1626
|
+
};
|
|
1627
|
+
readonly output: {
|
|
1628
|
+
readonly type: "string";
|
|
1629
|
+
readonly values: readonly ["table", "json"];
|
|
1630
|
+
readonly short: "o";
|
|
1631
|
+
};
|
|
1632
|
+
readonly team: {
|
|
1633
|
+
readonly type: "string";
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
readonly effect: "read";
|
|
1637
|
+
readonly hidden: false;
|
|
1638
|
+
readonly yes: false;
|
|
1639
|
+
};
|
|
1640
|
+
readonly "connection list": {
|
|
1641
|
+
readonly path: "connection list";
|
|
1642
|
+
readonly positionals: readonly [];
|
|
1643
|
+
readonly flags: {
|
|
1644
|
+
readonly org: {
|
|
1645
|
+
readonly type: "string";
|
|
1646
|
+
};
|
|
1647
|
+
readonly output: {
|
|
1648
|
+
readonly type: "string";
|
|
1649
|
+
readonly values: readonly ["table", "json"];
|
|
1650
|
+
readonly short: "o";
|
|
1651
|
+
};
|
|
1652
|
+
readonly provider: {
|
|
1653
|
+
readonly type: "string";
|
|
1654
|
+
};
|
|
1655
|
+
readonly team: {
|
|
1656
|
+
readonly type: "string";
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
readonly effect: "read";
|
|
1660
|
+
readonly hidden: false;
|
|
1661
|
+
readonly yes: false;
|
|
1662
|
+
};
|
|
1663
|
+
readonly "drift scan": {
|
|
1664
|
+
readonly path: "drift scan";
|
|
1665
|
+
readonly positionals: readonly [];
|
|
1666
|
+
readonly flags: {
|
|
1667
|
+
readonly full: {
|
|
1668
|
+
readonly type: "bool";
|
|
1669
|
+
};
|
|
1670
|
+
readonly org: {
|
|
1671
|
+
readonly type: "string";
|
|
1672
|
+
};
|
|
1673
|
+
readonly output: {
|
|
1674
|
+
readonly type: "string";
|
|
1675
|
+
readonly values: readonly ["table", "json"];
|
|
1676
|
+
readonly short: "o";
|
|
1677
|
+
};
|
|
1678
|
+
readonly stack: {
|
|
1679
|
+
readonly type: "string";
|
|
1680
|
+
readonly required: true;
|
|
1681
|
+
};
|
|
1682
|
+
readonly team: {
|
|
1683
|
+
readonly type: "string";
|
|
1684
|
+
};
|
|
1685
|
+
readonly wait: {
|
|
1686
|
+
readonly type: "bool";
|
|
1687
|
+
};
|
|
1688
|
+
readonly waitTimeout: {
|
|
1689
|
+
readonly type: "duration";
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
readonly effect: "write";
|
|
1693
|
+
readonly hidden: false;
|
|
1694
|
+
readonly yes: false;
|
|
1695
|
+
};
|
|
1696
|
+
readonly "hooks install": {
|
|
1697
|
+
readonly path: "hooks install";
|
|
1698
|
+
readonly positionals: readonly [];
|
|
1699
|
+
readonly flags: {
|
|
1700
|
+
readonly force: {
|
|
1701
|
+
readonly type: "bool";
|
|
1702
|
+
};
|
|
1703
|
+
readonly path: {
|
|
1704
|
+
readonly type: "string";
|
|
1705
|
+
readonly short: "p";
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
readonly effect: "write";
|
|
1709
|
+
readonly hidden: false;
|
|
1710
|
+
readonly yes: false;
|
|
1711
|
+
};
|
|
1712
|
+
readonly "hooks uninstall": {
|
|
1713
|
+
readonly path: "hooks uninstall";
|
|
1714
|
+
readonly positionals: readonly [];
|
|
1715
|
+
readonly flags: {
|
|
1716
|
+
readonly path: {
|
|
1717
|
+
readonly type: "string";
|
|
1718
|
+
readonly short: "p";
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
readonly effect: "write";
|
|
1722
|
+
readonly hidden: false;
|
|
1723
|
+
readonly yes: false;
|
|
1724
|
+
};
|
|
1725
|
+
readonly license: {
|
|
1726
|
+
readonly path: "license";
|
|
1727
|
+
readonly positionals: readonly [];
|
|
1728
|
+
readonly flags: {
|
|
1729
|
+
readonly thirdParty: {
|
|
1730
|
+
readonly type: "bool";
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
readonly effect: "read";
|
|
1734
|
+
readonly hidden: false;
|
|
1735
|
+
readonly yes: false;
|
|
1736
|
+
};
|
|
1737
|
+
readonly login: {
|
|
1738
|
+
readonly path: "login";
|
|
1739
|
+
readonly positionals: readonly [];
|
|
1740
|
+
readonly flags: {
|
|
1741
|
+
readonly email: {
|
|
1742
|
+
readonly type: "string";
|
|
1743
|
+
};
|
|
1744
|
+
readonly org: {
|
|
1745
|
+
readonly type: "string";
|
|
1746
|
+
};
|
|
1747
|
+
readonly output: {
|
|
1748
|
+
readonly type: "string";
|
|
1749
|
+
readonly values: readonly ["table", "json"];
|
|
1750
|
+
readonly short: "o";
|
|
1751
|
+
};
|
|
1752
|
+
readonly provider: {
|
|
1753
|
+
readonly type: "string";
|
|
1754
|
+
};
|
|
1755
|
+
readonly token: {
|
|
1756
|
+
readonly type: "string";
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
readonly effect: "write";
|
|
1760
|
+
readonly hidden: false;
|
|
1761
|
+
readonly yes: false;
|
|
1762
|
+
};
|
|
1763
|
+
readonly logout: {
|
|
1764
|
+
readonly path: "logout";
|
|
1765
|
+
readonly positionals: readonly [];
|
|
1766
|
+
readonly flags: {
|
|
1767
|
+
readonly output: {
|
|
1768
|
+
readonly type: "string";
|
|
1769
|
+
readonly values: readonly ["table", "json"];
|
|
1770
|
+
readonly short: "o";
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
readonly effect: "write";
|
|
1774
|
+
readonly hidden: false;
|
|
1775
|
+
readonly yes: false;
|
|
1776
|
+
};
|
|
1777
|
+
readonly "module convert": {
|
|
1778
|
+
readonly path: "module convert";
|
|
1779
|
+
readonly positionals: readonly [];
|
|
1780
|
+
readonly flags: {
|
|
1781
|
+
readonly output: {
|
|
1782
|
+
readonly type: "string";
|
|
1783
|
+
readonly values: readonly ["table", "json"];
|
|
1784
|
+
readonly short: "o";
|
|
1785
|
+
};
|
|
1786
|
+
readonly path: {
|
|
1787
|
+
readonly type: "string";
|
|
1788
|
+
readonly short: "p";
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1791
|
+
readonly effect: "rewrite";
|
|
1792
|
+
readonly hidden: false;
|
|
1793
|
+
readonly yes: false;
|
|
1794
|
+
};
|
|
1795
|
+
readonly "module docs": {
|
|
1796
|
+
readonly path: "module docs";
|
|
1797
|
+
readonly positionals: readonly [];
|
|
1798
|
+
readonly flags: {
|
|
1799
|
+
readonly file: {
|
|
1800
|
+
readonly type: "string";
|
|
1801
|
+
};
|
|
1802
|
+
readonly output: {
|
|
1803
|
+
readonly type: "string";
|
|
1804
|
+
readonly values: readonly ["markdown", "json", "terraform-docs-json", "terraform-docs-yaml"];
|
|
1805
|
+
readonly short: "o";
|
|
1806
|
+
};
|
|
1807
|
+
readonly path: {
|
|
1808
|
+
readonly type: "string";
|
|
1809
|
+
readonly short: "p";
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
readonly effect: "write";
|
|
1813
|
+
readonly hidden: false;
|
|
1814
|
+
readonly yes: false;
|
|
1815
|
+
};
|
|
1816
|
+
readonly "module fmt": {
|
|
1817
|
+
readonly path: "module fmt";
|
|
1818
|
+
readonly positionals: readonly [];
|
|
1819
|
+
readonly flags: {
|
|
1820
|
+
readonly check: {
|
|
1821
|
+
readonly type: "bool";
|
|
1822
|
+
};
|
|
1823
|
+
readonly diff: {
|
|
1824
|
+
readonly type: "bool";
|
|
1825
|
+
};
|
|
1826
|
+
readonly output: {
|
|
1827
|
+
readonly type: "string";
|
|
1828
|
+
readonly values: readonly ["table", "json"];
|
|
1829
|
+
readonly short: "o";
|
|
1830
|
+
};
|
|
1831
|
+
readonly path: {
|
|
1832
|
+
readonly type: "string";
|
|
1833
|
+
readonly short: "p";
|
|
1834
|
+
};
|
|
1835
|
+
readonly recursive: {
|
|
1836
|
+
readonly type: "bool";
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
readonly effect: "rewrite";
|
|
1840
|
+
readonly hidden: false;
|
|
1841
|
+
readonly yes: false;
|
|
1842
|
+
};
|
|
1843
|
+
readonly "module import": {
|
|
1844
|
+
readonly path: "module import";
|
|
1845
|
+
readonly positionals: readonly [];
|
|
1846
|
+
readonly flags: {
|
|
1847
|
+
readonly allowPartial: {
|
|
1848
|
+
readonly type: "bool";
|
|
1849
|
+
};
|
|
1850
|
+
readonly org: {
|
|
1851
|
+
readonly type: "string";
|
|
1852
|
+
};
|
|
1853
|
+
readonly output: {
|
|
1854
|
+
readonly type: "string";
|
|
1855
|
+
readonly values: readonly ["table", "json"];
|
|
1856
|
+
readonly short: "o";
|
|
1857
|
+
};
|
|
1858
|
+
readonly path: {
|
|
1859
|
+
readonly type: "string";
|
|
1860
|
+
readonly short: "p";
|
|
1861
|
+
};
|
|
1862
|
+
readonly stack: {
|
|
1863
|
+
readonly type: "string";
|
|
1864
|
+
readonly required: true;
|
|
1865
|
+
};
|
|
1866
|
+
readonly state: {
|
|
1867
|
+
readonly type: "string";
|
|
1868
|
+
readonly required: true;
|
|
1869
|
+
};
|
|
1870
|
+
readonly team: {
|
|
1871
|
+
readonly type: "string";
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
readonly effect: "rewrite";
|
|
1875
|
+
readonly hidden: false;
|
|
1876
|
+
readonly yes: false;
|
|
1877
|
+
};
|
|
1878
|
+
readonly "module lock": {
|
|
1879
|
+
readonly path: "module lock";
|
|
1880
|
+
readonly positionals: readonly [];
|
|
1881
|
+
readonly flags: {
|
|
1882
|
+
readonly org: {
|
|
1883
|
+
readonly type: "string";
|
|
1884
|
+
};
|
|
1885
|
+
readonly output: {
|
|
1886
|
+
readonly type: "string";
|
|
1887
|
+
readonly values: readonly ["table", "json"];
|
|
1888
|
+
readonly short: "o";
|
|
1889
|
+
};
|
|
1890
|
+
readonly path: {
|
|
1891
|
+
readonly type: "string";
|
|
1892
|
+
readonly short: "p";
|
|
1893
|
+
};
|
|
1894
|
+
readonly upgrade: {
|
|
1895
|
+
readonly type: "stringArray";
|
|
1896
|
+
readonly repeated: true;
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
readonly effect: "write";
|
|
1900
|
+
readonly hidden: false;
|
|
1901
|
+
readonly yes: false;
|
|
1902
|
+
};
|
|
1903
|
+
readonly "module scan": {
|
|
1904
|
+
readonly path: "module scan";
|
|
1905
|
+
readonly positionals: readonly [];
|
|
1906
|
+
readonly flags: {
|
|
1907
|
+
readonly output: {
|
|
1908
|
+
readonly type: "string";
|
|
1909
|
+
readonly values: readonly ["table", "json", "tfsec-json", "sarif", "junit", "checkstyle"];
|
|
1910
|
+
readonly short: "o";
|
|
1911
|
+
};
|
|
1912
|
+
readonly path: {
|
|
1913
|
+
readonly type: "string";
|
|
1914
|
+
readonly short: "p";
|
|
1915
|
+
};
|
|
1916
|
+
readonly severity: {
|
|
1917
|
+
readonly type: "string";
|
|
1918
|
+
readonly values: readonly ["LOW", "MEDIUM", "HIGH", "CRITICAL"];
|
|
1919
|
+
};
|
|
1920
|
+
readonly softFail: {
|
|
1921
|
+
readonly type: "bool";
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
readonly effect: "read";
|
|
1925
|
+
readonly hidden: false;
|
|
1926
|
+
readonly yes: false;
|
|
1927
|
+
};
|
|
1928
|
+
readonly "module validate": {
|
|
1929
|
+
readonly path: "module validate";
|
|
1930
|
+
readonly positionals: readonly [];
|
|
1931
|
+
readonly flags: {
|
|
1932
|
+
readonly org: {
|
|
1933
|
+
readonly type: "string";
|
|
1934
|
+
};
|
|
1935
|
+
readonly output: {
|
|
1936
|
+
readonly type: "string";
|
|
1937
|
+
readonly values: readonly ["table", "json"];
|
|
1938
|
+
readonly short: "o";
|
|
1939
|
+
};
|
|
1940
|
+
readonly path: {
|
|
1941
|
+
readonly type: "string";
|
|
1942
|
+
readonly short: "p";
|
|
1943
|
+
};
|
|
1944
|
+
readonly view: {
|
|
1945
|
+
readonly type: "string";
|
|
1946
|
+
readonly values: readonly ["public", "publication"];
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
readonly effect: "write";
|
|
1950
|
+
readonly hidden: false;
|
|
1951
|
+
readonly yes: false;
|
|
1952
|
+
};
|
|
1953
|
+
readonly "org current": {
|
|
1954
|
+
readonly path: "org current";
|
|
1955
|
+
readonly positionals: readonly [];
|
|
1956
|
+
readonly flags: {
|
|
1957
|
+
readonly output: {
|
|
1958
|
+
readonly type: "string";
|
|
1959
|
+
readonly values: readonly ["table", "json"];
|
|
1960
|
+
readonly short: "o";
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
readonly effect: "read";
|
|
1964
|
+
readonly hidden: false;
|
|
1965
|
+
readonly yes: false;
|
|
1966
|
+
};
|
|
1967
|
+
readonly "org list": {
|
|
1968
|
+
readonly path: "org list";
|
|
1969
|
+
readonly positionals: readonly [];
|
|
1970
|
+
readonly flags: {
|
|
1971
|
+
readonly output: {
|
|
1972
|
+
readonly type: "string";
|
|
1973
|
+
readonly values: readonly ["table", "json"];
|
|
1974
|
+
readonly short: "o";
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
readonly effect: "read";
|
|
1978
|
+
readonly hidden: false;
|
|
1979
|
+
readonly yes: false;
|
|
1980
|
+
};
|
|
1981
|
+
readonly "org use": {
|
|
1982
|
+
readonly path: "org use";
|
|
1983
|
+
readonly positionals: readonly [{
|
|
1984
|
+
readonly name: "org";
|
|
1985
|
+
readonly kind: "required";
|
|
1986
|
+
}];
|
|
1987
|
+
readonly flags: {
|
|
1988
|
+
readonly output: {
|
|
1989
|
+
readonly type: "string";
|
|
1990
|
+
readonly values: readonly ["table", "json"];
|
|
1991
|
+
readonly short: "o";
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
readonly effect: "write";
|
|
1995
|
+
readonly hidden: false;
|
|
1996
|
+
readonly yes: false;
|
|
1997
|
+
};
|
|
1998
|
+
readonly "policy get": {
|
|
1999
|
+
readonly path: "policy get";
|
|
2000
|
+
readonly positionals: readonly [{
|
|
2001
|
+
readonly name: "policy";
|
|
2002
|
+
readonly kind: "required";
|
|
2003
|
+
}];
|
|
2004
|
+
readonly flags: {
|
|
2005
|
+
readonly org: {
|
|
2006
|
+
readonly type: "string";
|
|
2007
|
+
};
|
|
2008
|
+
readonly output: {
|
|
2009
|
+
readonly type: "string";
|
|
2010
|
+
readonly values: readonly ["table", "json"];
|
|
2011
|
+
readonly short: "o";
|
|
2012
|
+
};
|
|
2013
|
+
readonly team: {
|
|
2014
|
+
readonly type: "string";
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
readonly effect: "read";
|
|
2018
|
+
readonly hidden: false;
|
|
2019
|
+
readonly yes: false;
|
|
2020
|
+
};
|
|
2021
|
+
readonly "policy list": {
|
|
2022
|
+
readonly path: "policy list";
|
|
2023
|
+
readonly positionals: readonly [];
|
|
2024
|
+
readonly flags: {
|
|
2025
|
+
readonly org: {
|
|
2026
|
+
readonly type: "string";
|
|
2027
|
+
};
|
|
2028
|
+
readonly output: {
|
|
2029
|
+
readonly type: "string";
|
|
2030
|
+
readonly values: readonly ["table", "json"];
|
|
2031
|
+
readonly short: "o";
|
|
2032
|
+
};
|
|
2033
|
+
readonly stack: {
|
|
2034
|
+
readonly type: "string";
|
|
2035
|
+
};
|
|
2036
|
+
readonly team: {
|
|
2037
|
+
readonly type: "string";
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
readonly effect: "read";
|
|
2041
|
+
readonly hidden: false;
|
|
2042
|
+
readonly yes: false;
|
|
2043
|
+
};
|
|
2044
|
+
readonly "registry describe": {
|
|
2045
|
+
readonly path: "registry describe";
|
|
2046
|
+
readonly positionals: readonly [{
|
|
2047
|
+
readonly name: "artifact";
|
|
2048
|
+
readonly kind: "required";
|
|
2049
|
+
}];
|
|
2050
|
+
readonly flags: {
|
|
2051
|
+
readonly org: {
|
|
2052
|
+
readonly type: "string";
|
|
2053
|
+
};
|
|
2054
|
+
readonly output: {
|
|
2055
|
+
readonly type: "string";
|
|
2056
|
+
readonly values: readonly ["table", "json"];
|
|
2057
|
+
readonly short: "o";
|
|
2058
|
+
};
|
|
2059
|
+
readonly version: {
|
|
2060
|
+
readonly type: "string";
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
readonly effect: "read";
|
|
2064
|
+
readonly hidden: false;
|
|
2065
|
+
readonly yes: false;
|
|
2066
|
+
};
|
|
2067
|
+
readonly "registry get": {
|
|
2068
|
+
readonly path: "registry get";
|
|
2069
|
+
readonly positionals: readonly [{
|
|
2070
|
+
readonly name: "artifact";
|
|
2071
|
+
readonly kind: "required";
|
|
2072
|
+
}];
|
|
2073
|
+
readonly flags: {
|
|
2074
|
+
readonly org: {
|
|
2075
|
+
readonly type: "string";
|
|
2076
|
+
};
|
|
2077
|
+
readonly output: {
|
|
2078
|
+
readonly type: "string";
|
|
2079
|
+
readonly values: readonly ["table", "json"];
|
|
2080
|
+
readonly short: "o";
|
|
2081
|
+
};
|
|
2082
|
+
readonly view: {
|
|
2083
|
+
readonly type: "string";
|
|
2084
|
+
readonly values: readonly ["public"];
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
readonly effect: "read";
|
|
2088
|
+
readonly hidden: false;
|
|
2089
|
+
readonly yes: false;
|
|
2090
|
+
};
|
|
2091
|
+
readonly "registry list": {
|
|
2092
|
+
readonly path: "registry list";
|
|
2093
|
+
readonly positionals: readonly [];
|
|
2094
|
+
readonly flags: {
|
|
2095
|
+
readonly author: {
|
|
2096
|
+
readonly type: "string";
|
|
2097
|
+
};
|
|
2098
|
+
readonly axis: {
|
|
2099
|
+
readonly type: "string";
|
|
2100
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
2101
|
+
};
|
|
2102
|
+
readonly category: {
|
|
2103
|
+
readonly type: "string";
|
|
2104
|
+
};
|
|
2105
|
+
readonly limit: {
|
|
2106
|
+
readonly type: "int";
|
|
2107
|
+
};
|
|
2108
|
+
readonly org: {
|
|
2109
|
+
readonly type: "string";
|
|
2110
|
+
};
|
|
2111
|
+
readonly output: {
|
|
2112
|
+
readonly type: "string";
|
|
2113
|
+
readonly values: readonly ["table", "json"];
|
|
2114
|
+
readonly short: "o";
|
|
2115
|
+
};
|
|
2116
|
+
readonly query: {
|
|
2117
|
+
readonly type: "string";
|
|
2118
|
+
};
|
|
2119
|
+
readonly system: {
|
|
2120
|
+
readonly type: "string";
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
readonly effect: "read";
|
|
2124
|
+
readonly hidden: false;
|
|
2125
|
+
readonly yes: false;
|
|
2465
2126
|
};
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
readonly
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
readonly
|
|
2534
|
-
|
|
2127
|
+
readonly "registry validate": {
|
|
2128
|
+
readonly path: "registry validate";
|
|
2129
|
+
readonly positionals: readonly [];
|
|
2130
|
+
readonly flags: {
|
|
2131
|
+
readonly axis: {
|
|
2132
|
+
readonly type: "string";
|
|
2133
|
+
readonly values: readonly ["module", "scanner", "handler", "agent"];
|
|
2134
|
+
readonly required: true;
|
|
2135
|
+
};
|
|
2136
|
+
readonly manifest: {
|
|
2137
|
+
readonly type: "string";
|
|
2138
|
+
readonly required: true;
|
|
2139
|
+
};
|
|
2140
|
+
readonly output: {
|
|
2141
|
+
readonly type: "string";
|
|
2142
|
+
readonly values: readonly ["table", "json"];
|
|
2143
|
+
readonly short: "o";
|
|
2144
|
+
};
|
|
2145
|
+
readonly readme: {
|
|
2146
|
+
readonly type: "string";
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
2149
|
+
readonly effect: "read";
|
|
2150
|
+
readonly hidden: false;
|
|
2151
|
+
readonly yes: false;
|
|
2152
|
+
};
|
|
2153
|
+
readonly "run bundle": {
|
|
2154
|
+
readonly path: "run bundle";
|
|
2155
|
+
readonly positionals: readonly [{
|
|
2156
|
+
readonly name: "run";
|
|
2157
|
+
readonly kind: "required";
|
|
2158
|
+
}];
|
|
2159
|
+
readonly flags: {
|
|
2160
|
+
readonly org: {
|
|
2161
|
+
readonly type: "string";
|
|
2162
|
+
};
|
|
2163
|
+
readonly output: {
|
|
2164
|
+
readonly type: "string";
|
|
2165
|
+
readonly values: readonly ["json"];
|
|
2166
|
+
readonly short: "o";
|
|
2167
|
+
};
|
|
2168
|
+
readonly team: {
|
|
2169
|
+
readonly type: "string";
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
readonly effect: "read";
|
|
2173
|
+
readonly hidden: false;
|
|
2174
|
+
readonly yes: false;
|
|
2175
|
+
};
|
|
2176
|
+
readonly "run cancel": {
|
|
2177
|
+
readonly path: "run cancel";
|
|
2178
|
+
readonly positionals: readonly [{
|
|
2179
|
+
readonly name: "run";
|
|
2180
|
+
readonly kind: "required";
|
|
2181
|
+
}];
|
|
2182
|
+
readonly flags: {
|
|
2183
|
+
readonly org: {
|
|
2184
|
+
readonly type: "string";
|
|
2185
|
+
};
|
|
2186
|
+
readonly output: {
|
|
2187
|
+
readonly type: "string";
|
|
2188
|
+
readonly values: readonly ["table", "json"];
|
|
2189
|
+
readonly short: "o";
|
|
2190
|
+
};
|
|
2191
|
+
readonly reason: {
|
|
2192
|
+
readonly type: "string";
|
|
2193
|
+
};
|
|
2194
|
+
readonly team: {
|
|
2195
|
+
readonly type: "string";
|
|
2196
|
+
};
|
|
2197
|
+
};
|
|
2198
|
+
readonly effect: "write";
|
|
2199
|
+
readonly hidden: false;
|
|
2200
|
+
readonly yes: false;
|
|
2201
|
+
};
|
|
2202
|
+
readonly "run get": {
|
|
2203
|
+
readonly path: "run get";
|
|
2204
|
+
readonly positionals: readonly [{
|
|
2205
|
+
readonly name: "run";
|
|
2206
|
+
readonly kind: "optional";
|
|
2207
|
+
}];
|
|
2208
|
+
readonly flags: {
|
|
2209
|
+
readonly change: {
|
|
2210
|
+
readonly type: "string";
|
|
2211
|
+
};
|
|
2212
|
+
readonly org: {
|
|
2213
|
+
readonly type: "string";
|
|
2214
|
+
};
|
|
2215
|
+
readonly output: {
|
|
2216
|
+
readonly type: "string";
|
|
2217
|
+
readonly values: readonly ["table", "json"];
|
|
2218
|
+
readonly short: "o";
|
|
2219
|
+
};
|
|
2220
|
+
readonly team: {
|
|
2221
|
+
readonly type: "string";
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
readonly effect: "read";
|
|
2225
|
+
readonly hidden: false;
|
|
2226
|
+
readonly yes: false;
|
|
2227
|
+
};
|
|
2228
|
+
readonly "run list": {
|
|
2229
|
+
readonly path: "run list";
|
|
2230
|
+
readonly positionals: readonly [];
|
|
2231
|
+
readonly flags: {
|
|
2232
|
+
readonly change: {
|
|
2233
|
+
readonly type: "string";
|
|
2234
|
+
};
|
|
2235
|
+
readonly cursor: {
|
|
2236
|
+
readonly type: "string";
|
|
2237
|
+
};
|
|
2238
|
+
readonly kind: {
|
|
2239
|
+
readonly type: "string";
|
|
2240
|
+
};
|
|
2241
|
+
readonly limit: {
|
|
2242
|
+
readonly type: "int";
|
|
2243
|
+
};
|
|
2244
|
+
readonly org: {
|
|
2245
|
+
readonly type: "string";
|
|
2246
|
+
};
|
|
2247
|
+
readonly output: {
|
|
2248
|
+
readonly type: "string";
|
|
2249
|
+
readonly values: readonly ["table", "json"];
|
|
2250
|
+
readonly short: "o";
|
|
2251
|
+
};
|
|
2252
|
+
readonly stack: {
|
|
2253
|
+
readonly type: "string";
|
|
2254
|
+
};
|
|
2255
|
+
readonly startedAfter: {
|
|
2256
|
+
readonly type: "string";
|
|
2257
|
+
};
|
|
2258
|
+
readonly status: {
|
|
2259
|
+
readonly type: "string";
|
|
2260
|
+
};
|
|
2261
|
+
readonly team: {
|
|
2262
|
+
readonly type: "string";
|
|
2263
|
+
};
|
|
2264
|
+
};
|
|
2265
|
+
readonly effect: "read";
|
|
2266
|
+
readonly hidden: false;
|
|
2267
|
+
readonly yes: false;
|
|
2268
|
+
};
|
|
2269
|
+
readonly "run logs": {
|
|
2270
|
+
readonly path: "run logs";
|
|
2271
|
+
readonly positionals: readonly [{
|
|
2272
|
+
readonly name: "run";
|
|
2273
|
+
readonly kind: "required";
|
|
2274
|
+
}];
|
|
2275
|
+
readonly flags: {
|
|
2276
|
+
readonly follow: {
|
|
2277
|
+
readonly type: "bool";
|
|
2278
|
+
};
|
|
2279
|
+
readonly org: {
|
|
2280
|
+
readonly type: "string";
|
|
2281
|
+
};
|
|
2282
|
+
readonly output: {
|
|
2283
|
+
readonly type: "string";
|
|
2284
|
+
readonly values: readonly ["table", "json"];
|
|
2285
|
+
readonly short: "o";
|
|
2286
|
+
};
|
|
2287
|
+
readonly team: {
|
|
2288
|
+
readonly type: "string";
|
|
2289
|
+
};
|
|
2290
|
+
};
|
|
2291
|
+
readonly effect: "read";
|
|
2292
|
+
readonly hidden: false;
|
|
2293
|
+
readonly yes: false;
|
|
2294
|
+
};
|
|
2295
|
+
readonly "run plan": {
|
|
2296
|
+
readonly path: "run plan";
|
|
2297
|
+
readonly positionals: readonly [{
|
|
2298
|
+
readonly name: "run";
|
|
2299
|
+
readonly kind: "required";
|
|
2300
|
+
}];
|
|
2301
|
+
readonly flags: {
|
|
2302
|
+
readonly org: {
|
|
2303
|
+
readonly type: "string";
|
|
2304
|
+
};
|
|
2305
|
+
readonly output: {
|
|
2306
|
+
readonly type: "string";
|
|
2307
|
+
readonly values: readonly ["table", "json"];
|
|
2308
|
+
readonly short: "o";
|
|
2309
|
+
};
|
|
2310
|
+
readonly team: {
|
|
2311
|
+
readonly type: "string";
|
|
2312
|
+
};
|
|
2535
2313
|
};
|
|
2536
|
-
readonly
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2314
|
+
readonly effect: "read";
|
|
2315
|
+
readonly hidden: false;
|
|
2316
|
+
readonly yes: false;
|
|
2317
|
+
};
|
|
2318
|
+
readonly "stack apply": {
|
|
2319
|
+
readonly path: "stack apply";
|
|
2320
|
+
readonly positionals: readonly [{
|
|
2321
|
+
readonly name: "stack";
|
|
2322
|
+
readonly kind: "required";
|
|
2323
|
+
}];
|
|
2324
|
+
readonly flags: {
|
|
2325
|
+
readonly allowSourceMismatch: {
|
|
2326
|
+
readonly type: "bool";
|
|
2327
|
+
};
|
|
2328
|
+
readonly commit: {
|
|
2329
|
+
readonly type: "string";
|
|
2330
|
+
};
|
|
2331
|
+
readonly org: {
|
|
2332
|
+
readonly type: "string";
|
|
2333
|
+
};
|
|
2334
|
+
readonly output: {
|
|
2335
|
+
readonly type: "string";
|
|
2336
|
+
readonly values: readonly ["table", "json"];
|
|
2337
|
+
readonly short: "o";
|
|
2338
|
+
};
|
|
2339
|
+
readonly prUrl: {
|
|
2340
|
+
readonly type: "string";
|
|
2341
|
+
};
|
|
2342
|
+
readonly ref: {
|
|
2343
|
+
readonly type: "string";
|
|
2344
|
+
};
|
|
2345
|
+
readonly team: {
|
|
2346
|
+
readonly type: "string";
|
|
2347
|
+
};
|
|
2348
|
+
readonly var: {
|
|
2349
|
+
readonly type: "stringArray";
|
|
2350
|
+
readonly repeated: true;
|
|
2351
|
+
};
|
|
2352
|
+
readonly varFile: {
|
|
2353
|
+
readonly type: "stringArray";
|
|
2354
|
+
readonly repeated: true;
|
|
2355
|
+
};
|
|
2543
2356
|
};
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
readonly
|
|
2550
|
-
|
|
2551
|
-
readonly
|
|
2552
|
-
readonly
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
readonly
|
|
2357
|
+
readonly effect: "write";
|
|
2358
|
+
readonly hidden: false;
|
|
2359
|
+
readonly yes: false;
|
|
2360
|
+
};
|
|
2361
|
+
readonly "stack create": {
|
|
2362
|
+
readonly path: "stack create";
|
|
2363
|
+
readonly positionals: readonly [{
|
|
2364
|
+
readonly name: "slug";
|
|
2365
|
+
readonly kind: "required";
|
|
2366
|
+
}];
|
|
2367
|
+
readonly flags: {
|
|
2368
|
+
readonly connection: {
|
|
2369
|
+
readonly type: "string";
|
|
2370
|
+
readonly required: true;
|
|
2371
|
+
};
|
|
2372
|
+
readonly description: {
|
|
2373
|
+
readonly type: "string";
|
|
2374
|
+
};
|
|
2375
|
+
readonly name: {
|
|
2376
|
+
readonly type: "string";
|
|
2377
|
+
};
|
|
2378
|
+
readonly org: {
|
|
2379
|
+
readonly type: "string";
|
|
2380
|
+
};
|
|
2381
|
+
readonly output: {
|
|
2382
|
+
readonly type: "string";
|
|
2383
|
+
readonly values: readonly ["table", "json"];
|
|
2384
|
+
readonly short: "o";
|
|
2385
|
+
};
|
|
2386
|
+
readonly source: {
|
|
2387
|
+
readonly type: "string";
|
|
2388
|
+
};
|
|
2389
|
+
readonly sourcePath: {
|
|
2390
|
+
readonly type: "string";
|
|
2391
|
+
};
|
|
2392
|
+
readonly sourceRef: {
|
|
2393
|
+
readonly type: "string";
|
|
2394
|
+
};
|
|
2395
|
+
readonly sourceRepo: {
|
|
2396
|
+
readonly type: "string";
|
|
2397
|
+
};
|
|
2398
|
+
readonly team: {
|
|
2399
|
+
readonly type: "string";
|
|
2400
|
+
};
|
|
2556
2401
|
};
|
|
2557
|
-
readonly
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2402
|
+
readonly effect: "write";
|
|
2403
|
+
readonly hidden: false;
|
|
2404
|
+
readonly yes: false;
|
|
2405
|
+
};
|
|
2406
|
+
readonly "stack delete": {
|
|
2407
|
+
readonly path: "stack delete";
|
|
2408
|
+
readonly positionals: readonly [{
|
|
2409
|
+
readonly name: "stack";
|
|
2410
|
+
readonly kind: "required";
|
|
2411
|
+
}];
|
|
2412
|
+
readonly flags: {
|
|
2413
|
+
readonly org: {
|
|
2414
|
+
readonly type: "string";
|
|
2415
|
+
};
|
|
2416
|
+
readonly output: {
|
|
2417
|
+
readonly type: "string";
|
|
2418
|
+
readonly values: readonly ["table", "json"];
|
|
2419
|
+
readonly short: "o";
|
|
2420
|
+
};
|
|
2421
|
+
readonly team: {
|
|
2422
|
+
readonly type: "string";
|
|
2423
|
+
};
|
|
2424
|
+
readonly yes: {
|
|
2425
|
+
readonly type: "bool";
|
|
2426
|
+
};
|
|
2564
2427
|
};
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
readonly
|
|
2573
|
-
readonly
|
|
2574
|
-
|
|
2575
|
-
|
|
2428
|
+
readonly effect: "write";
|
|
2429
|
+
readonly hidden: false;
|
|
2430
|
+
readonly yes: true;
|
|
2431
|
+
};
|
|
2432
|
+
readonly "stack describe": {
|
|
2433
|
+
readonly path: "stack describe";
|
|
2434
|
+
readonly positionals: readonly [{
|
|
2435
|
+
readonly name: "stack";
|
|
2436
|
+
readonly kind: "required";
|
|
2437
|
+
}];
|
|
2438
|
+
readonly flags: {
|
|
2439
|
+
readonly full: {
|
|
2440
|
+
readonly type: "bool";
|
|
2441
|
+
};
|
|
2442
|
+
readonly includeArchived: {
|
|
2443
|
+
readonly type: "bool";
|
|
2444
|
+
};
|
|
2445
|
+
readonly org: {
|
|
2446
|
+
readonly type: "string";
|
|
2447
|
+
};
|
|
2448
|
+
readonly output: {
|
|
2449
|
+
readonly type: "string";
|
|
2450
|
+
readonly values: readonly ["table", "json"];
|
|
2451
|
+
readonly short: "o";
|
|
2452
|
+
};
|
|
2453
|
+
readonly team: {
|
|
2454
|
+
readonly type: "string";
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
readonly effect: "read";
|
|
2458
|
+
readonly hidden: false;
|
|
2459
|
+
readonly yes: false;
|
|
2460
|
+
};
|
|
2461
|
+
readonly "stack destroy": {
|
|
2462
|
+
readonly path: "stack destroy";
|
|
2463
|
+
readonly positionals: readonly [{
|
|
2464
|
+
readonly name: "stack";
|
|
2465
|
+
readonly kind: "required";
|
|
2466
|
+
}];
|
|
2467
|
+
readonly flags: {
|
|
2468
|
+
readonly allowSourceMismatch: {
|
|
2469
|
+
readonly type: "bool";
|
|
2470
|
+
};
|
|
2471
|
+
readonly archive: {
|
|
2472
|
+
readonly type: "bool";
|
|
2473
|
+
};
|
|
2474
|
+
readonly commit: {
|
|
2475
|
+
readonly type: "string";
|
|
2476
|
+
};
|
|
2477
|
+
readonly org: {
|
|
2478
|
+
readonly type: "string";
|
|
2479
|
+
};
|
|
2480
|
+
readonly output: {
|
|
2481
|
+
readonly type: "string";
|
|
2482
|
+
readonly values: readonly ["table", "json"];
|
|
2483
|
+
readonly short: "o";
|
|
2484
|
+
};
|
|
2485
|
+
readonly prUrl: {
|
|
2486
|
+
readonly type: "string";
|
|
2487
|
+
};
|
|
2488
|
+
readonly ref: {
|
|
2489
|
+
readonly type: "string";
|
|
2490
|
+
};
|
|
2491
|
+
readonly team: {
|
|
2492
|
+
readonly type: "string";
|
|
2493
|
+
};
|
|
2494
|
+
readonly var: {
|
|
2495
|
+
readonly type: "stringArray";
|
|
2496
|
+
readonly repeated: true;
|
|
2497
|
+
};
|
|
2498
|
+
readonly varFile: {
|
|
2499
|
+
readonly type: "stringArray";
|
|
2500
|
+
readonly repeated: true;
|
|
2501
|
+
};
|
|
2502
|
+
readonly yes: {
|
|
2503
|
+
readonly type: "bool";
|
|
2504
|
+
};
|
|
2505
|
+
};
|
|
2506
|
+
readonly effect: "write";
|
|
2507
|
+
readonly hidden: false;
|
|
2508
|
+
readonly yes: true;
|
|
2509
|
+
};
|
|
2510
|
+
readonly "stack get": {
|
|
2511
|
+
readonly path: "stack get";
|
|
2512
|
+
readonly positionals: readonly [{
|
|
2513
|
+
readonly name: "stack";
|
|
2514
|
+
readonly kind: "required";
|
|
2515
|
+
}];
|
|
2516
|
+
readonly flags: {
|
|
2517
|
+
readonly includeArchived: {
|
|
2518
|
+
readonly type: "bool";
|
|
2519
|
+
};
|
|
2520
|
+
readonly org: {
|
|
2521
|
+
readonly type: "string";
|
|
2522
|
+
};
|
|
2523
|
+
readonly output: {
|
|
2524
|
+
readonly type: "string";
|
|
2525
|
+
readonly values: readonly ["table", "json"];
|
|
2526
|
+
readonly short: "o";
|
|
2527
|
+
};
|
|
2528
|
+
readonly team: {
|
|
2529
|
+
readonly type: "string";
|
|
2530
|
+
};
|
|
2576
2531
|
};
|
|
2577
|
-
readonly
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2532
|
+
readonly effect: "read";
|
|
2533
|
+
readonly hidden: false;
|
|
2534
|
+
readonly yes: false;
|
|
2535
|
+
};
|
|
2536
|
+
readonly "stack list": {
|
|
2537
|
+
readonly path: "stack list";
|
|
2538
|
+
readonly positionals: readonly [];
|
|
2539
|
+
readonly flags: {
|
|
2540
|
+
readonly cursor: {
|
|
2541
|
+
readonly type: "string";
|
|
2542
|
+
};
|
|
2543
|
+
readonly includeArchived: {
|
|
2544
|
+
readonly type: "bool";
|
|
2545
|
+
};
|
|
2546
|
+
readonly limit: {
|
|
2547
|
+
readonly type: "int";
|
|
2548
|
+
};
|
|
2549
|
+
readonly org: {
|
|
2550
|
+
readonly type: "string";
|
|
2551
|
+
};
|
|
2552
|
+
readonly output: {
|
|
2553
|
+
readonly type: "string";
|
|
2554
|
+
readonly values: readonly ["table", "json"];
|
|
2555
|
+
readonly short: "o";
|
|
2556
|
+
};
|
|
2557
|
+
readonly source: {
|
|
2558
|
+
readonly type: "string";
|
|
2559
|
+
};
|
|
2560
|
+
readonly team: {
|
|
2561
|
+
readonly type: "string";
|
|
2562
|
+
};
|
|
2584
2563
|
};
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
readonly
|
|
2596
|
-
readonly
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
readonly
|
|
2600
|
-
|
|
2601
|
-
|
|
2564
|
+
readonly effect: "read";
|
|
2565
|
+
readonly hidden: false;
|
|
2566
|
+
readonly yes: false;
|
|
2567
|
+
};
|
|
2568
|
+
readonly "stack preview": {
|
|
2569
|
+
readonly path: "stack preview";
|
|
2570
|
+
readonly positionals: readonly [{
|
|
2571
|
+
readonly name: "stack";
|
|
2572
|
+
readonly kind: "required";
|
|
2573
|
+
}];
|
|
2574
|
+
readonly flags: {
|
|
2575
|
+
readonly org: {
|
|
2576
|
+
readonly type: "string";
|
|
2577
|
+
};
|
|
2578
|
+
readonly output: {
|
|
2579
|
+
readonly type: "string";
|
|
2580
|
+
readonly values: readonly ["table", "json"];
|
|
2581
|
+
readonly short: "o";
|
|
2582
|
+
};
|
|
2583
|
+
readonly team: {
|
|
2584
|
+
readonly type: "string";
|
|
2585
|
+
};
|
|
2586
|
+
readonly var: {
|
|
2587
|
+
readonly type: "stringArray";
|
|
2588
|
+
readonly repeated: true;
|
|
2589
|
+
};
|
|
2590
|
+
readonly varFile: {
|
|
2591
|
+
readonly type: "stringArray";
|
|
2592
|
+
readonly repeated: true;
|
|
2593
|
+
};
|
|
2602
2594
|
};
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
readonly
|
|
2611
|
-
readonly
|
|
2612
|
-
|
|
2613
|
-
|
|
2595
|
+
readonly effect: "write";
|
|
2596
|
+
readonly hidden: false;
|
|
2597
|
+
readonly yes: false;
|
|
2598
|
+
};
|
|
2599
|
+
readonly "stack update": {
|
|
2600
|
+
readonly path: "stack update";
|
|
2601
|
+
readonly positionals: readonly [{
|
|
2602
|
+
readonly name: "stack";
|
|
2603
|
+
readonly kind: "required";
|
|
2604
|
+
}];
|
|
2605
|
+
readonly flags: {
|
|
2606
|
+
readonly description: {
|
|
2607
|
+
readonly type: "string";
|
|
2608
|
+
};
|
|
2609
|
+
readonly name: {
|
|
2610
|
+
readonly type: "string";
|
|
2611
|
+
};
|
|
2612
|
+
readonly org: {
|
|
2613
|
+
readonly type: "string";
|
|
2614
|
+
};
|
|
2615
|
+
readonly output: {
|
|
2616
|
+
readonly type: "string";
|
|
2617
|
+
readonly values: readonly ["table", "json"];
|
|
2618
|
+
readonly short: "o";
|
|
2619
|
+
};
|
|
2620
|
+
readonly sourcePath: {
|
|
2621
|
+
readonly type: "string";
|
|
2622
|
+
};
|
|
2623
|
+
readonly sourceRef: {
|
|
2624
|
+
readonly type: "string";
|
|
2625
|
+
};
|
|
2626
|
+
readonly sourceRepo: {
|
|
2627
|
+
readonly type: "string";
|
|
2628
|
+
};
|
|
2629
|
+
readonly team: {
|
|
2630
|
+
readonly type: "string";
|
|
2631
|
+
};
|
|
2614
2632
|
};
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
readonly requestStream: false;
|
|
2632
|
-
readonly responseType: typeof BundleApplyResult;
|
|
2633
|
-
readonly responseStream: false;
|
|
2634
|
-
readonly options: {};
|
|
2633
|
+
readonly effect: "write";
|
|
2634
|
+
readonly hidden: false;
|
|
2635
|
+
readonly yes: false;
|
|
2636
|
+
};
|
|
2637
|
+
readonly "team current": {
|
|
2638
|
+
readonly path: "team current";
|
|
2639
|
+
readonly positionals: readonly [];
|
|
2640
|
+
readonly flags: {
|
|
2641
|
+
readonly org: {
|
|
2642
|
+
readonly type: "string";
|
|
2643
|
+
};
|
|
2644
|
+
readonly output: {
|
|
2645
|
+
readonly type: "string";
|
|
2646
|
+
readonly values: readonly ["table", "json"];
|
|
2647
|
+
readonly short: "o";
|
|
2648
|
+
};
|
|
2635
2649
|
};
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
readonly
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
readonly
|
|
2650
|
+
readonly effect: "read";
|
|
2651
|
+
readonly hidden: false;
|
|
2652
|
+
readonly yes: false;
|
|
2653
|
+
};
|
|
2654
|
+
readonly "team list": {
|
|
2655
|
+
readonly path: "team list";
|
|
2656
|
+
readonly positionals: readonly [];
|
|
2657
|
+
readonly flags: {
|
|
2658
|
+
readonly cursor: {
|
|
2659
|
+
readonly type: "string";
|
|
2660
|
+
};
|
|
2661
|
+
readonly limit: {
|
|
2662
|
+
readonly type: "int";
|
|
2663
|
+
};
|
|
2664
|
+
readonly org: {
|
|
2665
|
+
readonly type: "string";
|
|
2666
|
+
};
|
|
2667
|
+
readonly output: {
|
|
2668
|
+
readonly type: "string";
|
|
2669
|
+
readonly values: readonly ["table", "json"];
|
|
2670
|
+
readonly short: "o";
|
|
2671
|
+
};
|
|
2651
2672
|
};
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
readonly
|
|
2658
|
-
|
|
2659
|
-
readonly
|
|
2660
|
-
readonly
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
readonly
|
|
2673
|
+
readonly effect: "read";
|
|
2674
|
+
readonly hidden: false;
|
|
2675
|
+
readonly yes: false;
|
|
2676
|
+
};
|
|
2677
|
+
readonly "team use": {
|
|
2678
|
+
readonly path: "team use";
|
|
2679
|
+
readonly positionals: readonly [{
|
|
2680
|
+
readonly name: "team";
|
|
2681
|
+
readonly kind: "required";
|
|
2682
|
+
}];
|
|
2683
|
+
readonly flags: {
|
|
2684
|
+
readonly org: {
|
|
2685
|
+
readonly type: "string";
|
|
2686
|
+
};
|
|
2687
|
+
readonly output: {
|
|
2688
|
+
readonly type: "string";
|
|
2689
|
+
readonly values: readonly ["table", "json"];
|
|
2690
|
+
readonly short: "o";
|
|
2691
|
+
};
|
|
2664
2692
|
};
|
|
2665
|
-
|
|
2666
|
-
readonly
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2693
|
+
readonly effect: "write";
|
|
2694
|
+
readonly hidden: false;
|
|
2695
|
+
readonly yes: false;
|
|
2696
|
+
};
|
|
2697
|
+
readonly version: {
|
|
2698
|
+
readonly path: "version";
|
|
2699
|
+
readonly positionals: readonly [];
|
|
2700
|
+
readonly flags: {
|
|
2701
|
+
readonly output: {
|
|
2702
|
+
readonly type: "string";
|
|
2703
|
+
readonly values: readonly ["table", "json"];
|
|
2704
|
+
readonly short: "o";
|
|
2705
|
+
};
|
|
2673
2706
|
};
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
readonly subscribe: {
|
|
2688
|
-
readonly name: "Subscribe";
|
|
2689
|
-
readonly requestType: typeof SubscribeRequest;
|
|
2690
|
-
readonly requestStream: false;
|
|
2691
|
-
readonly responseType: typeof BundleStateEvent;
|
|
2692
|
-
readonly responseStream: true;
|
|
2693
|
-
readonly options: {};
|
|
2707
|
+
readonly effect: "read";
|
|
2708
|
+
readonly hidden: false;
|
|
2709
|
+
readonly yes: false;
|
|
2710
|
+
};
|
|
2711
|
+
readonly whoami: {
|
|
2712
|
+
readonly path: "whoami";
|
|
2713
|
+
readonly positionals: readonly [];
|
|
2714
|
+
readonly flags: {
|
|
2715
|
+
readonly output: {
|
|
2716
|
+
readonly type: "string";
|
|
2717
|
+
readonly values: readonly ["table", "json"];
|
|
2718
|
+
readonly short: "o";
|
|
2719
|
+
};
|
|
2694
2720
|
};
|
|
2721
|
+
readonly effect: "read";
|
|
2722
|
+
readonly hidden: false;
|
|
2723
|
+
readonly yes: false;
|
|
2695
2724
|
};
|
|
2696
2725
|
};
|
|
2697
|
-
|
|
2698
|
-
type
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
type
|
|
2703
|
-
|
|
2726
|
+
/** Every non-hidden command path, minus `lace ` and minus `lace engine`. */
|
|
2727
|
+
type CommandPath = keyof typeof COMMANDS;
|
|
2728
|
+
type FlagTypeOf<F> = F extends {
|
|
2729
|
+
type: "bool";
|
|
2730
|
+
} ? boolean : F extends {
|
|
2731
|
+
type: "int";
|
|
2732
|
+
} ? number : F extends {
|
|
2733
|
+
type: "stringArray";
|
|
2734
|
+
} ? string[] : F extends {
|
|
2735
|
+
values: readonly (infer V)[];
|
|
2736
|
+
} ? V : string;
|
|
2737
|
+
type PositionalOf<P extends CommandPath> = (typeof COMMANDS)[P]["positionals"][number];
|
|
2738
|
+
type PositionalNameOf<P extends CommandPath, Kind extends "required" | "optional" | "variadic"> = Extract<PositionalOf<P>, {
|
|
2739
|
+
kind: Kind;
|
|
2740
|
+
}>["name"];
|
|
2741
|
+
/** `output` is excluded: Invoke owns it, never the command binding. */
|
|
2742
|
+
type FlagKeys<P extends CommandPath> = Exclude<keyof (typeof COMMANDS)[P]["flags"], "output">;
|
|
2743
|
+
type RequiredFlagKeys<P extends CommandPath> = {
|
|
2744
|
+
[K in FlagKeys<P>]: (typeof COMMANDS)[P]["flags"][K] extends {
|
|
2745
|
+
required: true;
|
|
2746
|
+
} ? K : never;
|
|
2747
|
+
}[FlagKeys<P>];
|
|
2748
|
+
type OptionalFlagKeys<P extends CommandPath> = Exclude<FlagKeys<P>, RequiredFlagKeys<P>>;
|
|
2749
|
+
/** Required positionals/flags are non-optional; enum flags become unions. */
|
|
2750
|
+
type ArgsOf<P extends CommandPath> = {
|
|
2751
|
+
[K in PositionalNameOf<P, "required">]: string;
|
|
2704
2752
|
} & {
|
|
2705
|
-
[K in
|
|
2753
|
+
[K in PositionalNameOf<P, "optional">]?: string;
|
|
2754
|
+
} & {
|
|
2755
|
+
[K in PositionalNameOf<P, "variadic">]?: string[];
|
|
2756
|
+
} & {
|
|
2757
|
+
[K in RequiredFlagKeys<P>]: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
2758
|
+
} & {
|
|
2759
|
+
[K in OptionalFlagKeys<P>]?: FlagTypeOf<(typeof COMMANDS)[P]["flags"][K]>;
|
|
2706
2760
|
};
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2761
|
+
/**
|
|
2762
|
+
* flags (`--flag=value`, sorted by flag name) then `--` then positionals in
|
|
2763
|
+
* golden order, so a positional value that starts with `-` always parses
|
|
2764
|
+
* as a positional, never as a flag. A bool `true` emits a bare `--flag`;
|
|
2765
|
+
* `false`/absent is omitted. A repeated flag emits one `--flag=v` per
|
|
2766
|
+
* element.
|
|
2767
|
+
*/
|
|
2768
|
+
declare function toArgv<P extends CommandPath>(path: P, args: ArgsOf<P>): string[];
|
|
2769
|
+
/**
|
|
2770
|
+
* The command a `lace` command line names, from the words after the
|
|
2771
|
+
* program's name, found where the CLI finds it (`commandWordsAt`, the one
|
|
2772
|
+
* walk, over this tree). Undefined when the words name no command a host can
|
|
2773
|
+
* invoke: none at all, a group, a misspelt or hidden command, `lace engine`.
|
|
2774
|
+
* A command's words followed by its `toArgv` read back as that command.
|
|
2775
|
+
*/
|
|
2776
|
+
declare function commandPathOf(words: readonly string[]): CommandPath | undefined;
|
|
2715
2777
|
|
|
2716
2778
|
declare const REASON_PREFIX = "REASON_";
|
|
2717
2779
|
type WireSpelling<Name> = Name extends `${typeof REASON_PREFIX}${infer Rest}` ? Lowercase<Rest> : never;
|
|
@@ -2768,7 +2830,7 @@ declare const SCHEMAS: {
|
|
|
2768
2830
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
2769
2831
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2770
2832
|
"already-lace-style": "already-lace-style";
|
|
2771
|
-
|
|
2833
|
+
convertible: "convertible";
|
|
2772
2834
|
uncomposable: "uncomposable";
|
|
2773
2835
|
lossy: "lossy";
|
|
2774
2836
|
}>>;
|
|
@@ -2859,7 +2921,7 @@ declare const SCHEMAS: {
|
|
|
2859
2921
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
2860
2922
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2861
2923
|
"already-lace-style": "already-lace-style";
|
|
2862
|
-
|
|
2924
|
+
convertible: "convertible";
|
|
2863
2925
|
uncomposable: "uncomposable";
|
|
2864
2926
|
lossy: "lossy";
|
|
2865
2927
|
}>>;
|
|
@@ -3077,7 +3139,12 @@ declare const SCHEMAS: {
|
|
|
3077
3139
|
version: z.ZodString;
|
|
3078
3140
|
source: z.ZodString;
|
|
3079
3141
|
treeHash: z.ZodString;
|
|
3080
|
-
verdict: z.
|
|
3142
|
+
verdict: z.ZodEnum<{
|
|
3143
|
+
"already-lace-style": "already-lace-style";
|
|
3144
|
+
convertible: "convertible";
|
|
3145
|
+
uncomposable: "uncomposable";
|
|
3146
|
+
lossy: "lossy";
|
|
3147
|
+
}>;
|
|
3081
3148
|
interface: z.ZodObject<{
|
|
3082
3149
|
inputs: z.ZodArray<z.ZodObject<{
|
|
3083
3150
|
name: z.ZodString;
|
|
@@ -3209,8 +3276,8 @@ declare const SCHEMAS: {
|
|
|
3209
3276
|
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3210
3277
|
diff: z.ZodArray<z.ZodObject<{
|
|
3211
3278
|
path: z.ZodString;
|
|
3212
|
-
declared: z.ZodUnknown
|
|
3213
|
-
detected: z.ZodUnknown
|
|
3279
|
+
declared: z.ZodOptional<z.ZodUnknown>;
|
|
3280
|
+
detected: z.ZodOptional<z.ZodUnknown>;
|
|
3214
3281
|
}, z.core.$strip>>;
|
|
3215
3282
|
findingId: z.ZodNullable<z.ZodString>;
|
|
3216
3283
|
}, z.core.$strip>>;
|
|
@@ -3563,7 +3630,7 @@ declare const SCHEMAS: {
|
|
|
3563
3630
|
}, z.core.$strip>;
|
|
3564
3631
|
error: z.ZodNullable<z.ZodString>;
|
|
3565
3632
|
}, z.core.$strip>], "type">;
|
|
3566
|
-
'
|
|
3633
|
+
'drift scan': z.ZodObject<{
|
|
3567
3634
|
stack: z.ZodObject<{
|
|
3568
3635
|
id: z.ZodString;
|
|
3569
3636
|
slug: z.ZodString;
|
|
@@ -3592,8 +3659,8 @@ declare const SCHEMAS: {
|
|
|
3592
3659
|
liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3593
3660
|
diff: z.ZodArray<z.ZodObject<{
|
|
3594
3661
|
path: z.ZodString;
|
|
3595
|
-
declared: z.ZodUnknown
|
|
3596
|
-
detected: z.ZodUnknown
|
|
3662
|
+
declared: z.ZodOptional<z.ZodUnknown>;
|
|
3663
|
+
detected: z.ZodOptional<z.ZodUnknown>;
|
|
3597
3664
|
}, z.core.$strip>>;
|
|
3598
3665
|
findingId: z.ZodNullable<z.ZodString>;
|
|
3599
3666
|
}, z.core.$strip>>;
|
|
@@ -3642,7 +3709,7 @@ declare const SCHEMAS: {
|
|
|
3642
3709
|
initiatedByName: z.ZodNullable<z.ZodString>;
|
|
3643
3710
|
}, z.core.$strip>>;
|
|
3644
3711
|
}, z.core.$strip>;
|
|
3645
|
-
'
|
|
3712
|
+
'module import': z.ZodObject<{
|
|
3646
3713
|
changed: z.ZodBoolean;
|
|
3647
3714
|
written: z.ZodArray<z.ZodString>;
|
|
3648
3715
|
removed: z.ZodArray<z.ZodString>;
|
|
@@ -3660,7 +3727,7 @@ declare const SCHEMAS: {
|
|
|
3660
3727
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
3661
3728
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
3662
3729
|
"already-lace-style": "already-lace-style";
|
|
3663
|
-
|
|
3730
|
+
convertible: "convertible";
|
|
3664
3731
|
uncomposable: "uncomposable";
|
|
3665
3732
|
lossy: "lossy";
|
|
3666
3733
|
}>>;
|
|
@@ -3816,9 +3883,9 @@ declare const SCHEMAS: {
|
|
|
3816
3883
|
runId: z.ZodString;
|
|
3817
3884
|
status: z.ZodNullable<z.ZodString>;
|
|
3818
3885
|
summary: z.ZodNullable<z.ZodObject<{
|
|
3819
|
-
resourceAdd: z.ZodNumber
|
|
3820
|
-
resourceChange: z.ZodNumber
|
|
3821
|
-
resourceDestroy: z.ZodNumber
|
|
3886
|
+
resourceAdd: z.ZodNullable<z.ZodNumber>;
|
|
3887
|
+
resourceChange: z.ZodNullable<z.ZodNumber>;
|
|
3888
|
+
resourceDestroy: z.ZodNullable<z.ZodNumber>;
|
|
3822
3889
|
}, z.core.$strip>>;
|
|
3823
3890
|
planHuman: z.ZodNullable<z.ZodObject<{
|
|
3824
3891
|
url: z.ZodString;
|
|
@@ -3887,11 +3954,11 @@ declare const SCHEMAS: {
|
|
|
3887
3954
|
}, z.core.$strip>], "type">;
|
|
3888
3955
|
whoami: z.ZodObject<{
|
|
3889
3956
|
organization: z.ZodNullable<z.ZodString>;
|
|
3890
|
-
user: z.ZodObject<{
|
|
3957
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
3891
3958
|
email: z.ZodString;
|
|
3892
3959
|
id: z.ZodString;
|
|
3893
3960
|
name: z.ZodString;
|
|
3894
|
-
}, z.core.$strip
|
|
3961
|
+
}, z.core.$strip>>;
|
|
3895
3962
|
}, z.core.$strip>;
|
|
3896
3963
|
'org list': z.ZodObject<{
|
|
3897
3964
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -3903,9 +3970,9 @@ declare const SCHEMAS: {
|
|
|
3903
3970
|
'org current': z.ZodUnion<readonly [z.ZodObject<{
|
|
3904
3971
|
slug: z.ZodString;
|
|
3905
3972
|
source: z.ZodEnum<{
|
|
3906
|
-
config: "config";
|
|
3907
3973
|
env: "env";
|
|
3908
3974
|
flag: "flag";
|
|
3975
|
+
config: "config";
|
|
3909
3976
|
}>;
|
|
3910
3977
|
}, z.core.$strip>, z.ZodObject<{
|
|
3911
3978
|
slug: z.ZodNull;
|
|
@@ -3921,12 +3988,12 @@ declare const SCHEMAS: {
|
|
|
3921
3988
|
orgId: z.ZodString;
|
|
3922
3989
|
name: z.ZodString;
|
|
3923
3990
|
slug: z.ZodString;
|
|
3924
|
-
description: z.ZodString
|
|
3991
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3925
3992
|
createdBy: z.ZodString;
|
|
3926
3993
|
createdAt: z.ZodString;
|
|
3927
3994
|
updatedAt: z.ZodString;
|
|
3928
|
-
role: z.ZodString
|
|
3929
|
-
memberCount: z.ZodNumber
|
|
3995
|
+
role: z.ZodOptional<z.ZodString>;
|
|
3996
|
+
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
3930
3997
|
}, z.core.$strip>>;
|
|
3931
3998
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3932
3999
|
hasMore: z.ZodBoolean;
|
|
@@ -3935,9 +4002,9 @@ declare const SCHEMAS: {
|
|
|
3935
4002
|
'team current': z.ZodUnion<readonly [z.ZodObject<{
|
|
3936
4003
|
slug: z.ZodString;
|
|
3937
4004
|
source: z.ZodEnum<{
|
|
3938
|
-
config: "config";
|
|
3939
4005
|
env: "env";
|
|
3940
4006
|
flag: "flag";
|
|
4007
|
+
config: "config";
|
|
3941
4008
|
}>;
|
|
3942
4009
|
}, z.core.$strip>, z.ZodObject<{
|
|
3943
4010
|
slug: z.ZodNull;
|
|
@@ -4193,6 +4260,38 @@ type CanvasPorts = RunnerPorts & {
|
|
|
4193
4260
|
};
|
|
4194
4261
|
type PortName = keyof CanvasPorts;
|
|
4195
4262
|
|
|
4263
|
+
type EngineTarget = {
|
|
4264
|
+
root: string;
|
|
4265
|
+
} | {
|
|
4266
|
+
ephemeral: {
|
|
4267
|
+
name: string;
|
|
4268
|
+
};
|
|
4269
|
+
cwd: string;
|
|
4270
|
+
} | {
|
|
4271
|
+
fixture: string;
|
|
4272
|
+
cwd: string;
|
|
4273
|
+
};
|
|
4274
|
+
type NonFixtureTarget = Exclude<EngineTarget, {
|
|
4275
|
+
fixture: string;
|
|
4276
|
+
}>;
|
|
4277
|
+
type EngineSessionOptions = {
|
|
4278
|
+
onListenerError?: (error: unknown) => void;
|
|
4279
|
+
};
|
|
4280
|
+
type EngineSession = {
|
|
4281
|
+
ports: Required<Pick<CanvasPorts, 'source' | 'editor' | 'commands' | 'context'>>;
|
|
4282
|
+
close(): void;
|
|
4283
|
+
};
|
|
4284
|
+
/**
|
|
4285
|
+
* The commands mapping: one engine connection → the `commands` port alone.
|
|
4286
|
+
* Sends `Initialize` once and `Invoke` per command, each run in the
|
|
4287
|
+
* directory the call names, else in `cwd`; no `SessionOpen`, no `Subscribe`.
|
|
4288
|
+
*/
|
|
4289
|
+
declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
4290
|
+
cwd: string;
|
|
4291
|
+
}): Promise<CommandsPort>;
|
|
4292
|
+
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4293
|
+
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4294
|
+
|
|
4196
4295
|
/** The keys an action may bind with no modifier. */
|
|
4197
4296
|
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4198
4297
|
type BareKey = (typeof BARE_KEYS)[number];
|
|
@@ -4402,6 +4501,11 @@ type ContributionSet<P extends PanelSpec = PanelSpec> = {
|
|
|
4402
4501
|
actions: readonly ActionContribution[];
|
|
4403
4502
|
};
|
|
4404
4503
|
|
|
4504
|
+
declare function defineCommand<P extends BoundPath>(binding: CommandBinding<P>): ErasedCommand;
|
|
4505
|
+
|
|
4506
|
+
declare function uniqueDiagnostics(diagnostics: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
4507
|
+
declare function diagnosticsOf(sourceDiagnostics: readonly Diagnostic$1[], reportFindings: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
4508
|
+
|
|
4405
4509
|
type ReportPath = 'module validate' | 'module convert' | 'module scan';
|
|
4406
4510
|
type ReportEntry = {
|
|
4407
4511
|
kind: 'result';
|
|
@@ -4595,97 +4699,6 @@ type ActionRunnerOptions = {
|
|
|
4595
4699
|
};
|
|
4596
4700
|
declare function createActionRunner(ports: RunnerPorts, store: ResultStore, options?: ActionRunnerOptions): ActionRunner;
|
|
4597
4701
|
|
|
4598
|
-
declare function defineCommand<P extends BoundPath>(binding: CommandBinding<P>): ErasedCommand;
|
|
4599
|
-
|
|
4600
|
-
declare function uniqueDiagnostics(diagnostics: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
4601
|
-
declare function diagnosticsOf(sourceDiagnostics: readonly Diagnostic$1[], reportFindings: readonly Diagnostic$1[]): readonly Diagnostic$1[];
|
|
4602
|
-
|
|
4603
|
-
type MsgOf<M> = M extends {
|
|
4604
|
-
fromJSON(object: unknown): infer T;
|
|
4605
|
-
} ? T : never;
|
|
4606
|
-
type EngineMethodResponse = {
|
|
4607
|
-
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
|
|
4608
|
-
};
|
|
4609
|
-
type EngineMethodRequest = {
|
|
4610
|
-
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: DeepPartial<MsgOf<(typeof LaceEngineDefinition.methods)[K]['requestType']>>;
|
|
4611
|
-
};
|
|
4612
|
-
type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
|
|
4613
|
-
kind: 'bridge' | 'direct';
|
|
4614
|
-
unary<M extends UnaryMethod>(method: M, request: EngineMethodRequest[M]): Promise<EngineMethodResponse[M]>;
|
|
4615
|
-
stream<M extends EngineStreamMethod>(method: M, request: EngineMethodRequest[M], signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
|
|
4616
|
-
};
|
|
4617
|
-
/** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
|
|
4618
|
-
* straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
|
|
4619
|
-
* included. `openEngineSession`'s fixture-target overload requires one. */
|
|
4620
|
-
type DirectEngineCaller = EngineCaller<EngineMethod> & {
|
|
4621
|
-
kind: 'direct';
|
|
4622
|
-
};
|
|
4623
|
-
/** The `kind: 'bridge'` narrowing of `EngineCaller<BridgeMethod>` —
|
|
4624
|
-
* `bridgeCaller`'s return type. `openEngineSession`'s fixture-target overload
|
|
4625
|
-
* excludes it: a bridge caller can't serve `TestSessionOpen`. */
|
|
4626
|
-
type BridgeEngineCaller = EngineCaller<BridgeMethod> & {
|
|
4627
|
-
kind: 'bridge';
|
|
4628
|
-
};
|
|
4629
|
-
type ConnectCallerOptions = {
|
|
4630
|
-
baseUrl: string;
|
|
4631
|
-
token: string;
|
|
4632
|
-
/** Fetch impl override — used by tests. Defaults to globalThis.fetch. */
|
|
4633
|
-
fetch?: typeof fetch;
|
|
4634
|
-
};
|
|
4635
|
-
/**
|
|
4636
|
-
* Reaches a running `lace engine` process directly over Connect-JSON
|
|
4637
|
-
* (HTTP POST, fetch). Used by Storybook flow stories and the canvas-flow
|
|
4638
|
-
* Playwright suite, which run against a real engine process.
|
|
4639
|
-
*/
|
|
4640
|
-
declare function connectCaller(options: ConnectCallerOptions): DirectEngineCaller;
|
|
4641
|
-
/**
|
|
4642
|
-
* Forwards every call over a `MessageBridge` to the host process that holds
|
|
4643
|
-
* the engine connection (VS Code / JetBrains webview). `@lace-cloud/host`'s
|
|
4644
|
-
* `serveEngineBridge` is the other end. Each request is posted as its
|
|
4645
|
-
* method's proto-JSON, the body `connectCaller` sends, which the host reads
|
|
4646
|
-
* back through the message's `fromJSON` (`rpc.serialize`): a `bytes` field
|
|
4647
|
-
* crosses as base64 text, whatever the bridge does to a typed array. The
|
|
4648
|
-
* wire response arrives as the proto-JSON `serveEngineBridge` posted
|
|
4649
|
-
* (`rpc.deserialize`'s `toJSON`), so this caller decodes it back through
|
|
4650
|
-
* `RESPONSE_CODECS` before resolving/pushing it. `unary`'s own `M extends BridgeMethod` plus the
|
|
4651
|
-
* `kind: 'bridge'` tag are what make `BridgeEngineCaller` a type distinct
|
|
4652
|
-
* from `DirectEngineCaller`: `openEngineSession`'s fixture-target overload
|
|
4653
|
-
* requires `kind: 'direct'`, so a caller from here can't reach it.
|
|
4654
|
-
*/
|
|
4655
|
-
declare function bridgeCaller(bridge: MessageBridge): BridgeEngineCaller;
|
|
4656
|
-
|
|
4657
|
-
type EngineTarget = {
|
|
4658
|
-
root: string;
|
|
4659
|
-
} | {
|
|
4660
|
-
ephemeral: {
|
|
4661
|
-
name: string;
|
|
4662
|
-
};
|
|
4663
|
-
cwd: string;
|
|
4664
|
-
} | {
|
|
4665
|
-
fixture: string;
|
|
4666
|
-
cwd: string;
|
|
4667
|
-
};
|
|
4668
|
-
type NonFixtureTarget = Exclude<EngineTarget, {
|
|
4669
|
-
fixture: string;
|
|
4670
|
-
}>;
|
|
4671
|
-
type EngineSessionOptions = {
|
|
4672
|
-
onListenerError?: (error: unknown) => void;
|
|
4673
|
-
};
|
|
4674
|
-
type EngineSession = {
|
|
4675
|
-
ports: Required<Pick<CanvasPorts, 'source' | 'editor' | 'commands' | 'context'>>;
|
|
4676
|
-
close(): void;
|
|
4677
|
-
};
|
|
4678
|
-
/**
|
|
4679
|
-
* The commands mapping: one engine connection → the `commands` port alone.
|
|
4680
|
-
* Sends `Initialize` once and `Invoke` per command, each run in the
|
|
4681
|
-
* directory the call names, else in `cwd`; no `SessionOpen`, no `Subscribe`.
|
|
4682
|
-
*/
|
|
4683
|
-
declare function openEngineCommands(caller: EngineCaller, { cwd }: {
|
|
4684
|
-
cwd: string;
|
|
4685
|
-
}): Promise<CommandsPort>;
|
|
4686
|
-
declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4687
|
-
declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
|
|
4688
|
-
|
|
4689
4702
|
type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
|
|
4690
4703
|
declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, busy: Busy | undefined): string | undefined;
|
|
4691
4704
|
declare function answering(actions: readonly ActionContribution[], failure: CommandFailure): readonly ActionContribution[];
|
|
@@ -4693,4 +4706,5 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4693
4706
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4694
4707
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4695
4708
|
|
|
4696
|
-
export {
|
|
4709
|
+
export { COMMANDS as C, EMPTY_REPORT_FOLD as E, GENERATE_STAGES as O, InputMode as W, Action as a, Reason as a4, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, diagnosticsOfDocument as aG, failureSays as aH, foldReport as aI, generatedTree as aJ, isBoundPath as aK, liveSlots as aL, openEngineCommands as aM, openEngineSession as aN, parseBound as aO, parseCommandFailure as aP, reasonWire as aQ, reduceFollow as aR, reducePreview as aS, reduceReport as aT, reduceRun as aU, reportDiagnostics as aV, settleRun as aW, toArgv as aX, uniqueDiagnostics as aY, SCHEMAS as aj, answering as av, bridgeCaller as aw, carriesFailure as ax, commandPathOf as ay, commandUnderWay as az, Bundle as b5, disabledReason as bg, resolveContributions as bh, rowActions as bi, ApplyUnobservedError as f, CommandDetachedError as n, CommandExitError as o, CommandUnobservedError as t, ConnectError as x };
|
|
4710
|
+
export type { PendingForm as $, ActionContribution as A, BindingRuntime as B, DirectEngineCaller as D, EditorPort as F, EngineCaller as G, EngineMethodResponse as H, EngineSession as I, JsonOf as J, EngineSessionOptions as K, EngineTarget as L, ErasedCommand as M, FollowSlot as N, GateChangeRequest as P, GenerateEvent as Q, GenerateStage as R, SourcePort as S, GeneratedTree as T, GraphError as U, HostBinding as V, Invocation as X, LaceReason as Y, LiveSlots as Z, OnScreen as _, CanvasCtx as a$, PortName as a0, PresenterPort as a1, PreviewOutcome as a2, PreviewSlot as a3, ReportEntry as a5, ReportFold as a6, ReportPath as a7, ReportSlot as a8, ResultKind as a9, ContributionSet as aZ, PanelSpec as a_, ResultSlots as aa, ResultStore as ab, RunCtx as ac, RunOutcome as ad, RunSlot as ae, RunStage as af, RunStageStatus as ag, RunnerPorts as ah, RunningMark as ai, Sink as ak, SinkInput as al, SlotContext as am, SlotKind as an, SourceConflict as ao, SourceEnd as ap, StackRef as aq, Started as ar, ViewStatePort as as, WiringCandidate as at, WiringQuery as au, ActionRunner as b, Badge as b0, NodeDecoration as b1, Decorations as b2, CommandRead as b3, OverlayContribution as b4, CanvasSelection as b6, LayoutHandle as b7, ActionIcon as b8, ClipboardStore as b9, ContextKey as ba, EditorBinding as bb, EditorEnv as bc, EditorEnvExtras as bd, KeySpec as be, Placement as bf, ActionRunnerOptions as c, ActionTarget as d, ApplyResult as e, ArgsOf as g, BoundPath as h, BridgeEngineCaller as i, Busy as j, CanvasPorts as k, CanvasSource as l, CommandBinding as m, CommandFailure as p, CommandPath as q, CommandResult as r, CommandRun as s, CommandsPort as u, ConfirmSpec as v, ConnectCallerOptions as w, ContextPort as y, CreatedRef as z };
|