@lace-cloud/host 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 +175 -1043
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +57 -73
- package/dist/index.d.ts +57 -73
- package/dist/index.mjs +175 -1043
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -147,8 +147,7 @@ interface Use {
|
|
|
147
147
|
/**
|
|
148
148
|
* A module call's `providers = {}` map (child-local name → root ref).
|
|
149
149
|
* Each entry targets the child's default provider slot for that name;
|
|
150
|
-
*
|
|
151
|
-
* (ProviderRequirement carries no configuration_aliases).
|
|
150
|
+
* this map has no way to target an aliased child slot.
|
|
152
151
|
*/
|
|
153
152
|
providers: {
|
|
154
153
|
[key: string]: string;
|
|
@@ -232,6 +231,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
232
231
|
interface ProviderRequirement {
|
|
233
232
|
source: string;
|
|
234
233
|
version: string;
|
|
234
|
+
configuration_aliases: string[];
|
|
235
235
|
}
|
|
236
236
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
237
237
|
interface BackendConfig {
|
|
@@ -251,31 +251,6 @@ interface ProviderConfig {
|
|
|
251
251
|
blocks: Block[];
|
|
252
252
|
}
|
|
253
253
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
254
|
-
interface GraphLayout {
|
|
255
|
-
nodes: {
|
|
256
|
-
[key: string]: NodeLayout;
|
|
257
|
-
};
|
|
258
|
-
groups: {
|
|
259
|
-
[key: string]: NodeGroup;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
declare const GraphLayout: MessageFns$1<GraphLayout>;
|
|
263
|
-
interface NodeGroup {
|
|
264
|
-
id: string;
|
|
265
|
-
label: string;
|
|
266
|
-
node_ids: string[];
|
|
267
|
-
collapsed: boolean;
|
|
268
|
-
}
|
|
269
|
-
declare const NodeGroup: MessageFns$1<NodeGroup>;
|
|
270
|
-
interface NodeLayout {
|
|
271
|
-
position: Position$1 | undefined;
|
|
272
|
-
}
|
|
273
|
-
declare const NodeLayout: MessageFns$1<NodeLayout>;
|
|
274
|
-
interface Position$1 {
|
|
275
|
-
x: number;
|
|
276
|
-
y: number;
|
|
277
|
-
}
|
|
278
|
-
declare const Position$1: MessageFns$1<Position$1>;
|
|
279
254
|
/**
|
|
280
255
|
* PolicyResolution is the wire-shape of a Lace policy evaluation result.
|
|
281
256
|
* Mirrors `apps/cli/internal/policy.Resolution` + relevant DecisionLog
|
|
@@ -428,37 +403,25 @@ interface CopyInstancesAction {
|
|
|
428
403
|
instance_ids: string[];
|
|
429
404
|
}
|
|
430
405
|
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
406
|
+
/**
|
|
407
|
+
* CreateGroupAction creates a new visual group from selected nodes. The
|
|
408
|
+
* group's display label is consumer-owned arrangement state (written from
|
|
409
|
+
* `BundleApplyResult.created` after this action lands); the wire payload
|
|
410
|
+
* carries only membership.
|
|
411
|
+
*/
|
|
437
412
|
interface CreateGroupAction {
|
|
438
|
-
label: string;
|
|
439
413
|
node_ids: string[];
|
|
440
414
|
}
|
|
441
415
|
declare const CreateGroupAction: MessageFns<CreateGroupAction>;
|
|
442
416
|
/**
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
*
|
|
417
|
+
* UngroupAction dissolves the group `group_id` in the current scope: its
|
|
418
|
+
* Use is removed and the module it pointed at has its children promoted
|
|
419
|
+
* into the parent. Mirrors workspace.UngroupAction.
|
|
446
420
|
*/
|
|
447
|
-
interface
|
|
421
|
+
interface UngroupAction {
|
|
448
422
|
group_id: string;
|
|
449
|
-
label?: string | undefined;
|
|
450
|
-
collapsed?: boolean | undefined;
|
|
451
|
-
node_ids?: UpdateGroupNodeIds | undefined;
|
|
452
423
|
}
|
|
453
|
-
declare const
|
|
454
|
-
interface UpdateGroupNodeIds {
|
|
455
|
-
node_ids: string[];
|
|
456
|
-
}
|
|
457
|
-
declare const UpdateGroupNodeIds: MessageFns<UpdateGroupNodeIds>;
|
|
458
|
-
interface DeleteGroupAction {
|
|
459
|
-
group_id: string;
|
|
460
|
-
}
|
|
461
|
-
declare const DeleteGroupAction: MessageFns<DeleteGroupAction>;
|
|
424
|
+
declare const UngroupAction: MessageFns<UngroupAction>;
|
|
462
425
|
interface SetVariablesAction {
|
|
463
426
|
variables: InputDef[];
|
|
464
427
|
}
|
|
@@ -537,18 +500,18 @@ interface RedoAction {
|
|
|
537
500
|
}
|
|
538
501
|
declare const RedoAction: MessageFns<RedoAction>;
|
|
539
502
|
/**
|
|
540
|
-
* PlaceModuleAction drops a registry module onto the canvas
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
503
|
+
* PlaceModuleAction drops a registry module onto the canvas. Distinct from
|
|
504
|
+
* Connect/UpdateInput/etc. in that it names a *source* module (registry
|
|
505
|
+
* coordinates) rather than a sibling instance; the server orchestrates the
|
|
506
|
+
* registry fetch + module-key resolution before producing the Bundle
|
|
507
|
+
* mutation. Placement position is consumer-owned arrangement state, written
|
|
508
|
+
* client-side from `BundleApplyResult.created` after this action lands.
|
|
545
509
|
*/
|
|
546
510
|
interface PlaceModuleAction {
|
|
547
511
|
name: string;
|
|
548
512
|
system: string;
|
|
549
513
|
version: string;
|
|
550
514
|
organization: string;
|
|
551
|
-
position: Position | undefined;
|
|
552
515
|
}
|
|
553
516
|
declare const PlaceModuleAction: MessageFns<PlaceModuleAction>;
|
|
554
517
|
/** The canonical Action type used inside ApplyActionRequest. */
|
|
@@ -561,10 +524,7 @@ interface Action {
|
|
|
561
524
|
rename_instance?: RenameInstanceAction | undefined;
|
|
562
525
|
delete_instance?: DeleteInstanceAction | undefined;
|
|
563
526
|
copy_instances?: CopyInstancesAction | undefined;
|
|
564
|
-
sync_layout?: SyncLayoutAction | undefined;
|
|
565
527
|
create_group?: CreateGroupAction | undefined;
|
|
566
|
-
update_group?: UpdateGroupAction | undefined;
|
|
567
|
-
delete_group?: DeleteGroupAction | undefined;
|
|
568
528
|
set_variables?: SetVariablesAction | undefined;
|
|
569
529
|
set_exports?: SetExportsAction | undefined;
|
|
570
530
|
set_terraform?: SetTerraformAction | undefined;
|
|
@@ -576,6 +536,7 @@ interface Action {
|
|
|
576
536
|
redo?: RedoAction | undefined;
|
|
577
537
|
place_module?: PlaceModuleAction | undefined;
|
|
578
538
|
set_use_providers?: SetUseProvidersAction | undefined;
|
|
539
|
+
ungroup?: UngroupAction | undefined;
|
|
579
540
|
}
|
|
580
541
|
declare const Action: MessageFns<Action>;
|
|
581
542
|
interface ApplyActionRequest {
|
|
@@ -621,10 +582,11 @@ interface BundleStateEvent {
|
|
|
621
582
|
declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
622
583
|
/**
|
|
623
584
|
* BundleState is the authoritative session state over the wire: the
|
|
624
|
-
* Bundle IR +
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
* CanvasView
|
|
585
|
+
* Bundle IR + session-undo metadata. Consumers (VS Code extension,
|
|
586
|
+
* portal, tests) project this locally via the canvas package's
|
|
587
|
+
* `projectCanvasView(bundle, arrangement?, meta)` to produce a
|
|
588
|
+
* renderable CanvasView — `arrangement` (node positions, group
|
|
589
|
+
* collapse/label) is consumer-owned view state and never travels here.
|
|
628
590
|
*
|
|
629
591
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
630
592
|
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
@@ -632,9 +594,6 @@ declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
|
632
594
|
*/
|
|
633
595
|
interface BundleState {
|
|
634
596
|
bundle: Bundle | undefined;
|
|
635
|
-
layouts: {
|
|
636
|
-
[key: string]: GraphLayout;
|
|
637
|
-
};
|
|
638
597
|
can_undo: boolean;
|
|
639
598
|
can_redo: boolean;
|
|
640
599
|
is_dirty: boolean;
|
|
@@ -647,12 +606,41 @@ declare const BundleState: MessageFns<BundleState>;
|
|
|
647
606
|
* to all connected subscribers (including the action's caller).
|
|
648
607
|
* On failure, `errors` carries the reasons the mutation was rejected
|
|
649
608
|
* at the IR-validation boundary.
|
|
609
|
+
*
|
|
610
|
+
* `created` is the action-result attribution contract: the server
|
|
611
|
+
* already knows which child/module IDs an action minted (placement,
|
|
612
|
+
* group creation, copy), so it reports them here instead of clients
|
|
613
|
+
* diffing successive BundleState frames to guess.
|
|
650
614
|
*/
|
|
651
615
|
interface BundleApplyResult {
|
|
652
616
|
success: boolean;
|
|
653
617
|
errors: GraphError[];
|
|
618
|
+
created: CreatedRef[];
|
|
654
619
|
}
|
|
655
620
|
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
621
|
+
/**
|
|
622
|
+
* CreatedRef names one child created by an action (PlaceModule,
|
|
623
|
+
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
624
|
+
* writes (position, group label/collapse) off these IDs instead of
|
|
625
|
+
* diffing BundleState frames.
|
|
626
|
+
*/
|
|
627
|
+
interface CreatedRef {
|
|
628
|
+
/** The scope key (module key) the child was created in. */
|
|
629
|
+
scope: string;
|
|
630
|
+
/** The created child/Use ID. */
|
|
631
|
+
id: string;
|
|
632
|
+
/**
|
|
633
|
+
* Set when the action minted a new module (e.g. group create): the
|
|
634
|
+
* new module's key. Empty otherwise.
|
|
635
|
+
*/
|
|
636
|
+
module_key: string;
|
|
637
|
+
/**
|
|
638
|
+
* Set when the child was cloned from an existing one (e.g. copy):
|
|
639
|
+
* the source child ID. Empty otherwise.
|
|
640
|
+
*/
|
|
641
|
+
source_id: string;
|
|
642
|
+
}
|
|
643
|
+
declare const CreatedRef: MessageFns<CreatedRef>;
|
|
656
644
|
/**
|
|
657
645
|
* GraphError describes an IR-level validation failure that rejected an
|
|
658
646
|
* action. Distinct from `RenderError` (which surfaces view-level
|
|
@@ -703,11 +691,6 @@ interface ProviderView {
|
|
|
703
691
|
blocks: Block[];
|
|
704
692
|
}
|
|
705
693
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
706
|
-
interface Position {
|
|
707
|
-
x: number;
|
|
708
|
-
y: number;
|
|
709
|
-
}
|
|
710
|
-
declare const Position: MessageFns<Position>;
|
|
711
694
|
interface InputDef {
|
|
712
695
|
name: string;
|
|
713
696
|
type: string;
|
|
@@ -915,8 +898,9 @@ declare class ServerManager extends EventEmitter {
|
|
|
915
898
|
type SubscribeCallbacks = {
|
|
916
899
|
/**
|
|
917
900
|
* Fires on every session-state change. The host forwards the raw
|
|
918
|
-
* BundleState (Bundle +
|
|
919
|
-
*
|
|
901
|
+
* BundleState (Bundle + undo metadata — no layout state; arrangement
|
|
902
|
+
* is consumer-owned view state that never travels over the wire) to
|
|
903
|
+
* the webview via postMessage; the webview's engine projects locally.
|
|
920
904
|
*/
|
|
921
905
|
onStateUpdated: (state: BundleState) => void;
|
|
922
906
|
onGenerateProgress: (phase: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -147,8 +147,7 @@ interface Use {
|
|
|
147
147
|
/**
|
|
148
148
|
* A module call's `providers = {}` map (child-local name → root ref).
|
|
149
149
|
* Each entry targets the child's default provider slot for that name;
|
|
150
|
-
*
|
|
151
|
-
* (ProviderRequirement carries no configuration_aliases).
|
|
150
|
+
* this map has no way to target an aliased child slot.
|
|
152
151
|
*/
|
|
153
152
|
providers: {
|
|
154
153
|
[key: string]: string;
|
|
@@ -232,6 +231,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
232
231
|
interface ProviderRequirement {
|
|
233
232
|
source: string;
|
|
234
233
|
version: string;
|
|
234
|
+
configuration_aliases: string[];
|
|
235
235
|
}
|
|
236
236
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
237
237
|
interface BackendConfig {
|
|
@@ -251,31 +251,6 @@ interface ProviderConfig {
|
|
|
251
251
|
blocks: Block[];
|
|
252
252
|
}
|
|
253
253
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
254
|
-
interface GraphLayout {
|
|
255
|
-
nodes: {
|
|
256
|
-
[key: string]: NodeLayout;
|
|
257
|
-
};
|
|
258
|
-
groups: {
|
|
259
|
-
[key: string]: NodeGroup;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
declare const GraphLayout: MessageFns$1<GraphLayout>;
|
|
263
|
-
interface NodeGroup {
|
|
264
|
-
id: string;
|
|
265
|
-
label: string;
|
|
266
|
-
node_ids: string[];
|
|
267
|
-
collapsed: boolean;
|
|
268
|
-
}
|
|
269
|
-
declare const NodeGroup: MessageFns$1<NodeGroup>;
|
|
270
|
-
interface NodeLayout {
|
|
271
|
-
position: Position$1 | undefined;
|
|
272
|
-
}
|
|
273
|
-
declare const NodeLayout: MessageFns$1<NodeLayout>;
|
|
274
|
-
interface Position$1 {
|
|
275
|
-
x: number;
|
|
276
|
-
y: number;
|
|
277
|
-
}
|
|
278
|
-
declare const Position$1: MessageFns$1<Position$1>;
|
|
279
254
|
/**
|
|
280
255
|
* PolicyResolution is the wire-shape of a Lace policy evaluation result.
|
|
281
256
|
* Mirrors `apps/cli/internal/policy.Resolution` + relevant DecisionLog
|
|
@@ -428,37 +403,25 @@ interface CopyInstancesAction {
|
|
|
428
403
|
instance_ids: string[];
|
|
429
404
|
}
|
|
430
405
|
declare const CopyInstancesAction: MessageFns<CopyInstancesAction>;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
406
|
+
/**
|
|
407
|
+
* CreateGroupAction creates a new visual group from selected nodes. The
|
|
408
|
+
* group's display label is consumer-owned arrangement state (written from
|
|
409
|
+
* `BundleApplyResult.created` after this action lands); the wire payload
|
|
410
|
+
* carries only membership.
|
|
411
|
+
*/
|
|
437
412
|
interface CreateGroupAction {
|
|
438
|
-
label: string;
|
|
439
413
|
node_ids: string[];
|
|
440
414
|
}
|
|
441
415
|
declare const CreateGroupAction: MessageFns<CreateGroupAction>;
|
|
442
416
|
/**
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
*
|
|
417
|
+
* UngroupAction dissolves the group `group_id` in the current scope: its
|
|
418
|
+
* Use is removed and the module it pointed at has its children promoted
|
|
419
|
+
* into the parent. Mirrors workspace.UngroupAction.
|
|
446
420
|
*/
|
|
447
|
-
interface
|
|
421
|
+
interface UngroupAction {
|
|
448
422
|
group_id: string;
|
|
449
|
-
label?: string | undefined;
|
|
450
|
-
collapsed?: boolean | undefined;
|
|
451
|
-
node_ids?: UpdateGroupNodeIds | undefined;
|
|
452
423
|
}
|
|
453
|
-
declare const
|
|
454
|
-
interface UpdateGroupNodeIds {
|
|
455
|
-
node_ids: string[];
|
|
456
|
-
}
|
|
457
|
-
declare const UpdateGroupNodeIds: MessageFns<UpdateGroupNodeIds>;
|
|
458
|
-
interface DeleteGroupAction {
|
|
459
|
-
group_id: string;
|
|
460
|
-
}
|
|
461
|
-
declare const DeleteGroupAction: MessageFns<DeleteGroupAction>;
|
|
424
|
+
declare const UngroupAction: MessageFns<UngroupAction>;
|
|
462
425
|
interface SetVariablesAction {
|
|
463
426
|
variables: InputDef[];
|
|
464
427
|
}
|
|
@@ -537,18 +500,18 @@ interface RedoAction {
|
|
|
537
500
|
}
|
|
538
501
|
declare const RedoAction: MessageFns<RedoAction>;
|
|
539
502
|
/**
|
|
540
|
-
* PlaceModuleAction drops a registry module onto the canvas
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
503
|
+
* PlaceModuleAction drops a registry module onto the canvas. Distinct from
|
|
504
|
+
* Connect/UpdateInput/etc. in that it names a *source* module (registry
|
|
505
|
+
* coordinates) rather than a sibling instance; the server orchestrates the
|
|
506
|
+
* registry fetch + module-key resolution before producing the Bundle
|
|
507
|
+
* mutation. Placement position is consumer-owned arrangement state, written
|
|
508
|
+
* client-side from `BundleApplyResult.created` after this action lands.
|
|
545
509
|
*/
|
|
546
510
|
interface PlaceModuleAction {
|
|
547
511
|
name: string;
|
|
548
512
|
system: string;
|
|
549
513
|
version: string;
|
|
550
514
|
organization: string;
|
|
551
|
-
position: Position | undefined;
|
|
552
515
|
}
|
|
553
516
|
declare const PlaceModuleAction: MessageFns<PlaceModuleAction>;
|
|
554
517
|
/** The canonical Action type used inside ApplyActionRequest. */
|
|
@@ -561,10 +524,7 @@ interface Action {
|
|
|
561
524
|
rename_instance?: RenameInstanceAction | undefined;
|
|
562
525
|
delete_instance?: DeleteInstanceAction | undefined;
|
|
563
526
|
copy_instances?: CopyInstancesAction | undefined;
|
|
564
|
-
sync_layout?: SyncLayoutAction | undefined;
|
|
565
527
|
create_group?: CreateGroupAction | undefined;
|
|
566
|
-
update_group?: UpdateGroupAction | undefined;
|
|
567
|
-
delete_group?: DeleteGroupAction | undefined;
|
|
568
528
|
set_variables?: SetVariablesAction | undefined;
|
|
569
529
|
set_exports?: SetExportsAction | undefined;
|
|
570
530
|
set_terraform?: SetTerraformAction | undefined;
|
|
@@ -576,6 +536,7 @@ interface Action {
|
|
|
576
536
|
redo?: RedoAction | undefined;
|
|
577
537
|
place_module?: PlaceModuleAction | undefined;
|
|
578
538
|
set_use_providers?: SetUseProvidersAction | undefined;
|
|
539
|
+
ungroup?: UngroupAction | undefined;
|
|
579
540
|
}
|
|
580
541
|
declare const Action: MessageFns<Action>;
|
|
581
542
|
interface ApplyActionRequest {
|
|
@@ -621,10 +582,11 @@ interface BundleStateEvent {
|
|
|
621
582
|
declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
622
583
|
/**
|
|
623
584
|
* BundleState is the authoritative session state over the wire: the
|
|
624
|
-
* Bundle IR +
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
* CanvasView
|
|
585
|
+
* Bundle IR + session-undo metadata. Consumers (VS Code extension,
|
|
586
|
+
* portal, tests) project this locally via the canvas package's
|
|
587
|
+
* `projectCanvasView(bundle, arrangement?, meta)` to produce a
|
|
588
|
+
* renderable CanvasView — `arrangement` (node positions, group
|
|
589
|
+
* collapse/label) is consumer-owned view state and never travels here.
|
|
628
590
|
*
|
|
629
591
|
* Not to be confused with the `bundle_snapshot` API entity, which is
|
|
630
592
|
* the content-addressed immutable archival form in D1 + R2. BundleState
|
|
@@ -632,9 +594,6 @@ declare const BundleStateEvent: MessageFns<BundleStateEvent>;
|
|
|
632
594
|
*/
|
|
633
595
|
interface BundleState {
|
|
634
596
|
bundle: Bundle | undefined;
|
|
635
|
-
layouts: {
|
|
636
|
-
[key: string]: GraphLayout;
|
|
637
|
-
};
|
|
638
597
|
can_undo: boolean;
|
|
639
598
|
can_redo: boolean;
|
|
640
599
|
is_dirty: boolean;
|
|
@@ -647,12 +606,41 @@ declare const BundleState: MessageFns<BundleState>;
|
|
|
647
606
|
* to all connected subscribers (including the action's caller).
|
|
648
607
|
* On failure, `errors` carries the reasons the mutation was rejected
|
|
649
608
|
* at the IR-validation boundary.
|
|
609
|
+
*
|
|
610
|
+
* `created` is the action-result attribution contract: the server
|
|
611
|
+
* already knows which child/module IDs an action minted (placement,
|
|
612
|
+
* group creation, copy), so it reports them here instead of clients
|
|
613
|
+
* diffing successive BundleState frames to guess.
|
|
650
614
|
*/
|
|
651
615
|
interface BundleApplyResult {
|
|
652
616
|
success: boolean;
|
|
653
617
|
errors: GraphError[];
|
|
618
|
+
created: CreatedRef[];
|
|
654
619
|
}
|
|
655
620
|
declare const BundleApplyResult: MessageFns<BundleApplyResult>;
|
|
621
|
+
/**
|
|
622
|
+
* CreatedRef names one child created by an action (PlaceModule,
|
|
623
|
+
* CreateGroup, CopyInstances, ...). Clients key pending arrangement
|
|
624
|
+
* writes (position, group label/collapse) off these IDs instead of
|
|
625
|
+
* diffing BundleState frames.
|
|
626
|
+
*/
|
|
627
|
+
interface CreatedRef {
|
|
628
|
+
/** The scope key (module key) the child was created in. */
|
|
629
|
+
scope: string;
|
|
630
|
+
/** The created child/Use ID. */
|
|
631
|
+
id: string;
|
|
632
|
+
/**
|
|
633
|
+
* Set when the action minted a new module (e.g. group create): the
|
|
634
|
+
* new module's key. Empty otherwise.
|
|
635
|
+
*/
|
|
636
|
+
module_key: string;
|
|
637
|
+
/**
|
|
638
|
+
* Set when the child was cloned from an existing one (e.g. copy):
|
|
639
|
+
* the source child ID. Empty otherwise.
|
|
640
|
+
*/
|
|
641
|
+
source_id: string;
|
|
642
|
+
}
|
|
643
|
+
declare const CreatedRef: MessageFns<CreatedRef>;
|
|
656
644
|
/**
|
|
657
645
|
* GraphError describes an IR-level validation failure that rejected an
|
|
658
646
|
* action. Distinct from `RenderError` (which surfaces view-level
|
|
@@ -703,11 +691,6 @@ interface ProviderView {
|
|
|
703
691
|
blocks: Block[];
|
|
704
692
|
}
|
|
705
693
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
706
|
-
interface Position {
|
|
707
|
-
x: number;
|
|
708
|
-
y: number;
|
|
709
|
-
}
|
|
710
|
-
declare const Position: MessageFns<Position>;
|
|
711
694
|
interface InputDef {
|
|
712
695
|
name: string;
|
|
713
696
|
type: string;
|
|
@@ -915,8 +898,9 @@ declare class ServerManager extends EventEmitter {
|
|
|
915
898
|
type SubscribeCallbacks = {
|
|
916
899
|
/**
|
|
917
900
|
* Fires on every session-state change. The host forwards the raw
|
|
918
|
-
* BundleState (Bundle +
|
|
919
|
-
*
|
|
901
|
+
* BundleState (Bundle + undo metadata — no layout state; arrangement
|
|
902
|
+
* is consumer-owned view state that never travels over the wire) to
|
|
903
|
+
* the webview via postMessage; the webview's engine projects locally.
|
|
920
904
|
*/
|
|
921
905
|
onStateUpdated: (state: BundleState) => void;
|
|
922
906
|
onGenerateProgress: (phase: string) => void;
|