@lace-cloud/proto 0.13.0 → 0.15.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/LICENSE +86 -13
- package/README.md +1 -1
- package/dist/index.cjs +252 -853
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -51
- package/dist/index.d.ts +31 -51
- package/dist/index.mjs +249 -850
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -91,8 +91,7 @@ interface Use {
|
|
|
91
91
|
/**
|
|
92
92
|
* A module call's `providers = {}` map (child-local name → root ref).
|
|
93
93
|
* Each entry targets the child's default provider slot for that name;
|
|
94
|
-
*
|
|
95
|
-
* (ProviderRequirement carries no configuration_aliases).
|
|
94
|
+
* this map has no way to target an aliased child slot.
|
|
96
95
|
*/
|
|
97
96
|
providers: {
|
|
98
97
|
[key: string]: string;
|
|
@@ -176,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
176
175
|
interface ProviderRequirement {
|
|
177
176
|
source: string;
|
|
178
177
|
version: string;
|
|
178
|
+
configuration_aliases: string[];
|
|
179
179
|
}
|
|
180
180
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
181
181
|
interface BackendConfig {
|
|
@@ -195,44 +195,6 @@ interface ProviderConfig {
|
|
|
195
195
|
blocks: Block[];
|
|
196
196
|
}
|
|
197
197
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
198
|
-
interface GraphLayout {
|
|
199
|
-
nodes: {
|
|
200
|
-
[key: string]: NodeLayout;
|
|
201
|
-
};
|
|
202
|
-
groups: {
|
|
203
|
-
[key: string]: NodeGroup;
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
declare const GraphLayout: MessageFns$1<GraphLayout>;
|
|
207
|
-
interface NodeGroup {
|
|
208
|
-
id: string;
|
|
209
|
-
label: string;
|
|
210
|
-
node_ids: string[];
|
|
211
|
-
collapsed: boolean;
|
|
212
|
-
}
|
|
213
|
-
declare const NodeGroup: MessageFns$1<NodeGroup>;
|
|
214
|
-
interface NodeLayout {
|
|
215
|
-
position: Position$1 | undefined;
|
|
216
|
-
}
|
|
217
|
-
declare const NodeLayout: MessageFns$1<NodeLayout>;
|
|
218
|
-
interface Position$1 {
|
|
219
|
-
x: number;
|
|
220
|
-
y: number;
|
|
221
|
-
}
|
|
222
|
-
declare const Position$1: MessageFns$1<Position$1>;
|
|
223
|
-
/**
|
|
224
|
-
* Top-level wrapper so the `layouts` map can travel as its own multipart
|
|
225
|
-
* body part alongside `bundle` bytes on POST /api/v1/runs. Separating
|
|
226
|
-
* bundle + layouts into two binary parts keeps server-side bundle
|
|
227
|
-
* hashing trivial — the server hashes the `bundle` part bytes directly
|
|
228
|
-
* without decoding or re-encoding.
|
|
229
|
-
*/
|
|
230
|
-
interface LayoutsMap {
|
|
231
|
-
layouts: {
|
|
232
|
-
[key: string]: GraphLayout;
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
declare const LayoutsMap: MessageFns$1<LayoutsMap>;
|
|
236
198
|
/**
|
|
237
199
|
* PolicyResolution is the wire-shape of a Lace policy evaluation result.
|
|
238
200
|
* Mirrors `apps/cli/internal/policy.Resolution` + relevant DecisionLog
|
|
@@ -333,10 +295,11 @@ interface OutputExportEntry {
|
|
|
333
295
|
declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
334
296
|
/**
|
|
335
297
|
* BundleState is the authoritative session state over the wire: the
|
|
336
|
-
* Bundle IR +
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* CanvasView
|
|
298
|
+
* Bundle IR + session-undo metadata. Consumers (VS Code extension,
|
|
299
|
+
* portal, tests) project this locally via the canvas package's
|
|
300
|
+
* `projectCanvasView(bundle, arrangement?, meta)` to produce a
|
|
301
|
+
* renderable CanvasView — `arrangement` (node positions, group
|
|
302
|
+
* collapse/label) is consumer-owned view state and never travels here.
|
|
340
303
|
*
|
|
341
304
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
342
305
|
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
@@ -344,9 +307,6 @@ declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
|
344
307
|
*/
|
|
345
308
|
interface BundleState {
|
|
346
309
|
bundle: Bundle | undefined;
|
|
347
|
-
layouts: {
|
|
348
|
-
[key: string]: GraphLayout;
|
|
349
|
-
};
|
|
350
310
|
can_undo: boolean;
|
|
351
311
|
can_redo: boolean;
|
|
352
312
|
is_dirty: boolean;
|
|
@@ -928,15 +888,33 @@ declare function convertEdgeConfig(proto: ProtoEdgeConfigLike): EdgeConfig;
|
|
|
928
888
|
declare function convertSettingsConfig(proto: ProtoSettingsConfigLike): SettingsConfig;
|
|
929
889
|
declare function convertDiagnostic(d: ProtoDiagnosticLike): Diagnostic;
|
|
930
890
|
|
|
891
|
+
type XY = {
|
|
892
|
+
x: number;
|
|
893
|
+
y: number;
|
|
894
|
+
};
|
|
895
|
+
type CanvasArrangement = {
|
|
896
|
+
[scopeKey: string]: {
|
|
897
|
+
nodes?: {
|
|
898
|
+
[childId: string]: XY;
|
|
899
|
+
};
|
|
900
|
+
groups?: {
|
|
901
|
+
[useId: string]: {
|
|
902
|
+
collapsed: boolean;
|
|
903
|
+
label?: string;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
|
|
931
909
|
type ProjectionMeta = {
|
|
932
910
|
moduleName?: string;
|
|
933
911
|
canUndo: boolean;
|
|
934
912
|
canRedo: boolean;
|
|
935
913
|
isDirty: boolean;
|
|
936
914
|
};
|
|
937
|
-
declare function projectCanvasView(bundle: Bundle,
|
|
938
|
-
|
|
939
|
-
|
|
915
|
+
declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView;
|
|
916
|
+
|
|
917
|
+
declare function resolveScopePositions(ids: string[], arrangementNodes: CanvasArrangement[string]['nodes']): Map<string, XY>;
|
|
940
918
|
|
|
941
919
|
type ParsedModuleKey = {
|
|
942
920
|
id: string;
|
|
@@ -944,9 +922,11 @@ type ParsedModuleKey = {
|
|
|
944
922
|
};
|
|
945
923
|
declare function parseModuleKey(key: string): ParsedModuleKey;
|
|
946
924
|
|
|
925
|
+
declare function resolveScopePath(bundle: Bundle, path: string): string | null;
|
|
926
|
+
|
|
947
927
|
declare const CanvasViewProto: MessageFns<CanvasView$1>;
|
|
948
928
|
declare const NodeConfigProto: MessageFns<NodeConfig$1>;
|
|
949
929
|
declare const EdgeConfigProto: MessageFns<EdgeConfig$1>;
|
|
950
930
|
declare const SettingsConfigProto: MessageFns<SettingsConfig$1>;
|
|
951
931
|
|
|
952
|
-
export { Bundle, type CanvasView, CanvasViewProto, type DeepPartial$1 as DeepPartial, type Diagnostic, type EdgeConfig, EdgeConfigProto, type GeneratePhase,
|
|
932
|
+
export { Bundle, type CanvasArrangement, type CanvasView, CanvasViewProto, type DeepPartial$1 as DeepPartial, type Diagnostic, type EdgeConfig, EdgeConfigProto, type GeneratePhase, type HostToWebview, type NodeConfig, NodeConfigProto, type NodePin, type ParsedModuleKey, type ProjectionMeta, type ProtoCanvasViewLike, type ProtoDiagnosticLike, type ProtoEdgeConfigLike, type ProtoInputDefLike, type ProtoNodeConfigLike, type ProtoOutputDefLike, type ProtoOutputExportEntryLike, type ProtoRenderErrorLike, type ProtoRenderInputLike, type ProtoRenderNodeLike, type ProtoSettingsConfigLike, type RenderEdge, type RenderError, type RenderGroup, type RenderInput, type RenderNode, type RenderOutput, type SettingsConfig, SettingsConfigProto, type ViewportIntent, type XY, convertCanvasView, convertDiagnostic, convertDiagnosticSeverity, convertEdgeConfig, convertInputMode, convertNodeConfig, convertNodeKind, convertRenderError, convertRenderInput, convertRenderNode, convertSettingsConfig, modeToInputMode, parseModuleKey, projectCanvasView, resolveScopePath, resolveScopePositions };
|
package/dist/index.d.ts
CHANGED
|
@@ -91,8 +91,7 @@ interface Use {
|
|
|
91
91
|
/**
|
|
92
92
|
* A module call's `providers = {}` map (child-local name → root ref).
|
|
93
93
|
* Each entry targets the child's default provider slot for that name;
|
|
94
|
-
*
|
|
95
|
-
* (ProviderRequirement carries no configuration_aliases).
|
|
94
|
+
* this map has no way to target an aliased child slot.
|
|
96
95
|
*/
|
|
97
96
|
providers: {
|
|
98
97
|
[key: string]: string;
|
|
@@ -176,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
176
175
|
interface ProviderRequirement {
|
|
177
176
|
source: string;
|
|
178
177
|
version: string;
|
|
178
|
+
configuration_aliases: string[];
|
|
179
179
|
}
|
|
180
180
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
181
181
|
interface BackendConfig {
|
|
@@ -195,44 +195,6 @@ interface ProviderConfig {
|
|
|
195
195
|
blocks: Block[];
|
|
196
196
|
}
|
|
197
197
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
198
|
-
interface GraphLayout {
|
|
199
|
-
nodes: {
|
|
200
|
-
[key: string]: NodeLayout;
|
|
201
|
-
};
|
|
202
|
-
groups: {
|
|
203
|
-
[key: string]: NodeGroup;
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
declare const GraphLayout: MessageFns$1<GraphLayout>;
|
|
207
|
-
interface NodeGroup {
|
|
208
|
-
id: string;
|
|
209
|
-
label: string;
|
|
210
|
-
node_ids: string[];
|
|
211
|
-
collapsed: boolean;
|
|
212
|
-
}
|
|
213
|
-
declare const NodeGroup: MessageFns$1<NodeGroup>;
|
|
214
|
-
interface NodeLayout {
|
|
215
|
-
position: Position$1 | undefined;
|
|
216
|
-
}
|
|
217
|
-
declare const NodeLayout: MessageFns$1<NodeLayout>;
|
|
218
|
-
interface Position$1 {
|
|
219
|
-
x: number;
|
|
220
|
-
y: number;
|
|
221
|
-
}
|
|
222
|
-
declare const Position$1: MessageFns$1<Position$1>;
|
|
223
|
-
/**
|
|
224
|
-
* Top-level wrapper so the `layouts` map can travel as its own multipart
|
|
225
|
-
* body part alongside `bundle` bytes on POST /api/v1/runs. Separating
|
|
226
|
-
* bundle + layouts into two binary parts keeps server-side bundle
|
|
227
|
-
* hashing trivial — the server hashes the `bundle` part bytes directly
|
|
228
|
-
* without decoding or re-encoding.
|
|
229
|
-
*/
|
|
230
|
-
interface LayoutsMap {
|
|
231
|
-
layouts: {
|
|
232
|
-
[key: string]: GraphLayout;
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
declare const LayoutsMap: MessageFns$1<LayoutsMap>;
|
|
236
198
|
/**
|
|
237
199
|
* PolicyResolution is the wire-shape of a Lace policy evaluation result.
|
|
238
200
|
* Mirrors `apps/cli/internal/policy.Resolution` + relevant DecisionLog
|
|
@@ -333,10 +295,11 @@ interface OutputExportEntry {
|
|
|
333
295
|
declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
334
296
|
/**
|
|
335
297
|
* BundleState is the authoritative session state over the wire: the
|
|
336
|
-
* Bundle IR +
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* CanvasView
|
|
298
|
+
* Bundle IR + session-undo metadata. Consumers (VS Code extension,
|
|
299
|
+
* portal, tests) project this locally via the canvas package's
|
|
300
|
+
* `projectCanvasView(bundle, arrangement?, meta)` to produce a
|
|
301
|
+
* renderable CanvasView — `arrangement` (node positions, group
|
|
302
|
+
* collapse/label) is consumer-owned view state and never travels here.
|
|
340
303
|
*
|
|
341
304
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
342
305
|
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
@@ -344,9 +307,6 @@ declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
|
344
307
|
*/
|
|
345
308
|
interface BundleState {
|
|
346
309
|
bundle: Bundle | undefined;
|
|
347
|
-
layouts: {
|
|
348
|
-
[key: string]: GraphLayout;
|
|
349
|
-
};
|
|
350
310
|
can_undo: boolean;
|
|
351
311
|
can_redo: boolean;
|
|
352
312
|
is_dirty: boolean;
|
|
@@ -928,15 +888,33 @@ declare function convertEdgeConfig(proto: ProtoEdgeConfigLike): EdgeConfig;
|
|
|
928
888
|
declare function convertSettingsConfig(proto: ProtoSettingsConfigLike): SettingsConfig;
|
|
929
889
|
declare function convertDiagnostic(d: ProtoDiagnosticLike): Diagnostic;
|
|
930
890
|
|
|
891
|
+
type XY = {
|
|
892
|
+
x: number;
|
|
893
|
+
y: number;
|
|
894
|
+
};
|
|
895
|
+
type CanvasArrangement = {
|
|
896
|
+
[scopeKey: string]: {
|
|
897
|
+
nodes?: {
|
|
898
|
+
[childId: string]: XY;
|
|
899
|
+
};
|
|
900
|
+
groups?: {
|
|
901
|
+
[useId: string]: {
|
|
902
|
+
collapsed: boolean;
|
|
903
|
+
label?: string;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
|
|
931
909
|
type ProjectionMeta = {
|
|
932
910
|
moduleName?: string;
|
|
933
911
|
canUndo: boolean;
|
|
934
912
|
canRedo: boolean;
|
|
935
913
|
isDirty: boolean;
|
|
936
914
|
};
|
|
937
|
-
declare function projectCanvasView(bundle: Bundle,
|
|
938
|
-
|
|
939
|
-
|
|
915
|
+
declare function projectCanvasView(bundle: Bundle, arrangement: CanvasArrangement | undefined, meta: ProjectionMeta): CanvasView;
|
|
916
|
+
|
|
917
|
+
declare function resolveScopePositions(ids: string[], arrangementNodes: CanvasArrangement[string]['nodes']): Map<string, XY>;
|
|
940
918
|
|
|
941
919
|
type ParsedModuleKey = {
|
|
942
920
|
id: string;
|
|
@@ -944,9 +922,11 @@ type ParsedModuleKey = {
|
|
|
944
922
|
};
|
|
945
923
|
declare function parseModuleKey(key: string): ParsedModuleKey;
|
|
946
924
|
|
|
925
|
+
declare function resolveScopePath(bundle: Bundle, path: string): string | null;
|
|
926
|
+
|
|
947
927
|
declare const CanvasViewProto: MessageFns<CanvasView$1>;
|
|
948
928
|
declare const NodeConfigProto: MessageFns<NodeConfig$1>;
|
|
949
929
|
declare const EdgeConfigProto: MessageFns<EdgeConfig$1>;
|
|
950
930
|
declare const SettingsConfigProto: MessageFns<SettingsConfig$1>;
|
|
951
931
|
|
|
952
|
-
export { Bundle, type CanvasView, CanvasViewProto, type DeepPartial$1 as DeepPartial, type Diagnostic, type EdgeConfig, EdgeConfigProto, type GeneratePhase,
|
|
932
|
+
export { Bundle, type CanvasArrangement, type CanvasView, CanvasViewProto, type DeepPartial$1 as DeepPartial, type Diagnostic, type EdgeConfig, EdgeConfigProto, type GeneratePhase, type HostToWebview, type NodeConfig, NodeConfigProto, type NodePin, type ParsedModuleKey, type ProjectionMeta, type ProtoCanvasViewLike, type ProtoDiagnosticLike, type ProtoEdgeConfigLike, type ProtoInputDefLike, type ProtoNodeConfigLike, type ProtoOutputDefLike, type ProtoOutputExportEntryLike, type ProtoRenderErrorLike, type ProtoRenderInputLike, type ProtoRenderNodeLike, type ProtoSettingsConfigLike, type RenderEdge, type RenderError, type RenderGroup, type RenderInput, type RenderNode, type RenderOutput, type SettingsConfig, SettingsConfigProto, type ViewportIntent, type XY, convertCanvasView, convertDiagnostic, convertDiagnosticSeverity, convertEdgeConfig, convertInputMode, convertNodeConfig, convertNodeKind, convertRenderError, convertRenderInput, convertRenderNode, convertSettingsConfig, modeToInputMode, parseModuleKey, projectCanvasView, resolveScopePath, resolveScopePositions };
|