@lace-cloud/canvas 0.28.0 → 0.30.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 +4 -1
- package/dist/{AccordionSection-J3ALHB5M.css → AccordionSection-5X2XWUYY.css} +9 -2
- package/dist/BadgeRow-KVODWDQK.css +23 -0
- package/dist/{ContextMenu-C7SLX23S.css → ContextMenu-S3JIZMET.css} +11 -0
- package/dist/{DiagnosticsPanel-T6VDHH4A.css → DiagnosticsPanel-MSK72CGM.css} +3 -1
- package/dist/{GroupNode-QWSLBFCH.css → GroupNode-FXLQCVAE.css} +0 -38
- package/dist/{ModuleConfigPanel-ZMWRMN5N.css → ModuleConfigPanel-DW3RSOEL.css} +6 -0
- package/dist/{ModuleNode-RRZ37SFM.css → ModuleNode-PPAN7NLP.css} +15 -37
- package/dist/{chunk-DYTLLFEM.mjs → chunk-A3ATETIA.mjs} +236 -27
- package/dist/chunk-A3ATETIA.mjs.map +1 -0
- package/dist/engine/index.cjs +225 -25
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +5 -1
- package/dist/index.cjs +1857 -1591
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +1394 -1328
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-5JFNYXQ7.css → panels-shared-3HUQC7TC.css} +20 -2
- package/dist/{registry-LzXZx20m.d.mts → registry-C8fUGD44.d.mts} +182 -22
- package/dist/{registry-LzXZx20m.d.ts → registry-C8fUGD44.d.ts} +182 -22
- package/package.json +3 -3
- package/dist/chunk-DYTLLFEM.mjs.map +0 -1
|
@@ -260,6 +260,29 @@ declare const COMMANDS: {
|
|
|
260
260
|
readonly hidden: false;
|
|
261
261
|
readonly yes: false;
|
|
262
262
|
};
|
|
263
|
+
readonly "module lock": {
|
|
264
|
+
readonly path: "module lock";
|
|
265
|
+
readonly positionals: readonly [];
|
|
266
|
+
readonly flags: {
|
|
267
|
+
readonly org: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
};
|
|
270
|
+
readonly output: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly values: readonly ["table", "json"];
|
|
273
|
+
};
|
|
274
|
+
readonly path: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
};
|
|
277
|
+
readonly upgrade: {
|
|
278
|
+
readonly type: "stringArray";
|
|
279
|
+
readonly repeated: true;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly effect: "write";
|
|
283
|
+
readonly hidden: false;
|
|
284
|
+
readonly yes: false;
|
|
285
|
+
};
|
|
263
286
|
readonly "module scan": {
|
|
264
287
|
readonly path: "module scan";
|
|
265
288
|
readonly positionals: readonly [];
|
|
@@ -1662,7 +1685,19 @@ interface SessionGenerateRequest {
|
|
|
1662
1685
|
}
|
|
1663
1686
|
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1664
1687
|
interface SessionGenerateResponse {
|
|
1688
|
+
/**
|
|
1689
|
+
* Every file the write produced, sorted: Generate writes the whole
|
|
1690
|
+
* render, whatever bytes a file held before. Empty when nothing was
|
|
1691
|
+
* ungenerated.
|
|
1692
|
+
*/
|
|
1665
1693
|
files_written: string[];
|
|
1694
|
+
/**
|
|
1695
|
+
* The files of files_written whose bytes differ from the tree the write
|
|
1696
|
+
* replaced, a file the tree did not hold included, sorted.
|
|
1697
|
+
*/
|
|
1698
|
+
files_changed: string[];
|
|
1699
|
+
/** The source tf the write deleted, sorted. */
|
|
1700
|
+
files_removed: string[];
|
|
1666
1701
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
1667
1702
|
validate_json: string;
|
|
1668
1703
|
/**
|
|
@@ -2123,7 +2158,10 @@ interface GenerateProgress {
|
|
|
2123
2158
|
}
|
|
2124
2159
|
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
2125
2160
|
interface GenerateSuccess {
|
|
2161
|
+
/** The three file lists of the Generate's own SessionGenerateResponse. */
|
|
2126
2162
|
files_written: string[];
|
|
2163
|
+
files_changed: string[];
|
|
2164
|
+
files_removed: string[];
|
|
2127
2165
|
/** the `module validate -o json` document for the Terraform on disk */
|
|
2128
2166
|
validate_json: string;
|
|
2129
2167
|
/** the Generate this event belongs to */
|
|
@@ -2741,6 +2779,15 @@ declare const SCHEMAS: {
|
|
|
2741
2779
|
changed: z.ZodBoolean;
|
|
2742
2780
|
written: z.ZodArray<z.ZodString>;
|
|
2743
2781
|
removed: z.ZodArray<z.ZodString>;
|
|
2782
|
+
lock: z.ZodNullable<z.ZodObject<{
|
|
2783
|
+
path: z.ZodString;
|
|
2784
|
+
lockfile: z.ZodString;
|
|
2785
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
2786
|
+
address: z.ZodString;
|
|
2787
|
+
version: z.ZodString;
|
|
2788
|
+
platforms: z.ZodArray<z.ZodString>;
|
|
2789
|
+
}, z.core.$strip>>;
|
|
2790
|
+
}, z.core.$strip>>;
|
|
2744
2791
|
validate: z.ZodObject<{
|
|
2745
2792
|
root: z.ZodOptional<z.ZodString>;
|
|
2746
2793
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -2835,6 +2882,15 @@ declare const SCHEMAS: {
|
|
|
2835
2882
|
column: z.ZodOptional<z.ZodNumber>;
|
|
2836
2883
|
}, z.core.$strip>>;
|
|
2837
2884
|
}, z.core.$strip>;
|
|
2885
|
+
'module lock': z.ZodObject<{
|
|
2886
|
+
path: z.ZodString;
|
|
2887
|
+
lockfile: z.ZodString;
|
|
2888
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
2889
|
+
address: z.ZodString;
|
|
2890
|
+
version: z.ZodString;
|
|
2891
|
+
platforms: z.ZodArray<z.ZodString>;
|
|
2892
|
+
}, z.core.$strip>>;
|
|
2893
|
+
}, z.core.$strip>;
|
|
2838
2894
|
'module fmt': z.ZodObject<{
|
|
2839
2895
|
changed: z.ZodArray<z.ZodString>;
|
|
2840
2896
|
}, z.core.$strip>;
|
|
@@ -2843,6 +2899,16 @@ declare const SCHEMAS: {
|
|
|
2843
2899
|
}, z.core.$strip>;
|
|
2844
2900
|
'module scan': z.ZodObject<{
|
|
2845
2901
|
treeHash: z.ZodString;
|
|
2902
|
+
tool: z.ZodObject<{
|
|
2903
|
+
name: z.ZodString;
|
|
2904
|
+
version: z.ZodNullable<z.ZodString>;
|
|
2905
|
+
path: z.ZodString;
|
|
2906
|
+
source: z.ZodEnum<{
|
|
2907
|
+
path: "path";
|
|
2908
|
+
env: "env";
|
|
2909
|
+
cache: "cache";
|
|
2910
|
+
}>;
|
|
2911
|
+
}, z.core.$strip>;
|
|
2846
2912
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2847
2913
|
severity: z.ZodEnum<{
|
|
2848
2914
|
error: "error";
|
|
@@ -3132,6 +3198,16 @@ declare const SCHEMAS: {
|
|
|
3132
3198
|
createdAt: z.ZodString;
|
|
3133
3199
|
updatedAt: z.ZodString;
|
|
3134
3200
|
url: z.ZodOptional<z.ZodString>;
|
|
3201
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3202
|
+
address: z.ZodString;
|
|
3203
|
+
version: z.ZodString;
|
|
3204
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
3205
|
+
id: z.ZodString;
|
|
3206
|
+
admittedBy: z.ZodString;
|
|
3207
|
+
admittedByName: z.ZodNullable<z.ZodString>;
|
|
3208
|
+
admittedAt: z.ZodString;
|
|
3209
|
+
}, z.core.$strip>>;
|
|
3210
|
+
}, z.core.$strip>>>;
|
|
3135
3211
|
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3136
3212
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3137
3213
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3299,6 +3375,16 @@ declare const SCHEMAS: {
|
|
|
3299
3375
|
createdAt: z.ZodString;
|
|
3300
3376
|
updatedAt: z.ZodString;
|
|
3301
3377
|
url: z.ZodOptional<z.ZodString>;
|
|
3378
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3379
|
+
address: z.ZodString;
|
|
3380
|
+
version: z.ZodString;
|
|
3381
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
3382
|
+
id: z.ZodString;
|
|
3383
|
+
admittedBy: z.ZodString;
|
|
3384
|
+
admittedByName: z.ZodNullable<z.ZodString>;
|
|
3385
|
+
admittedAt: z.ZodString;
|
|
3386
|
+
}, z.core.$strip>>;
|
|
3387
|
+
}, z.core.$strip>>>;
|
|
3302
3388
|
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3303
3389
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3304
3390
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3389,6 +3475,16 @@ declare const SCHEMAS: {
|
|
|
3389
3475
|
createdAt: z.ZodString;
|
|
3390
3476
|
updatedAt: z.ZodString;
|
|
3391
3477
|
url: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3479
|
+
address: z.ZodString;
|
|
3480
|
+
version: z.ZodString;
|
|
3481
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
3482
|
+
id: z.ZodString;
|
|
3483
|
+
admittedBy: z.ZodString;
|
|
3484
|
+
admittedByName: z.ZodNullable<z.ZodString>;
|
|
3485
|
+
admittedAt: z.ZodString;
|
|
3486
|
+
}, z.core.$strip>>;
|
|
3487
|
+
}, z.core.$strip>>>;
|
|
3392
3488
|
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3393
3489
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3394
3490
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3487,6 +3583,15 @@ declare const SCHEMAS: {
|
|
|
3487
3583
|
changed: z.ZodBoolean;
|
|
3488
3584
|
written: z.ZodArray<z.ZodString>;
|
|
3489
3585
|
removed: z.ZodArray<z.ZodString>;
|
|
3586
|
+
lock: z.ZodNullable<z.ZodObject<{
|
|
3587
|
+
path: z.ZodString;
|
|
3588
|
+
lockfile: z.ZodString;
|
|
3589
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
3590
|
+
address: z.ZodString;
|
|
3591
|
+
version: z.ZodString;
|
|
3592
|
+
platforms: z.ZodArray<z.ZodString>;
|
|
3593
|
+
}, z.core.$strip>>;
|
|
3594
|
+
}, z.core.$strip>>;
|
|
3490
3595
|
validate: z.ZodObject<{
|
|
3491
3596
|
root: z.ZodOptional<z.ZodString>;
|
|
3492
3597
|
treeHash: z.ZodOptional<z.ZodString>;
|
|
@@ -3628,6 +3733,16 @@ declare const SCHEMAS: {
|
|
|
3628
3733
|
createdAt: z.ZodString;
|
|
3629
3734
|
updatedAt: z.ZodString;
|
|
3630
3735
|
url: z.ZodOptional<z.ZodString>;
|
|
3736
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3737
|
+
address: z.ZodString;
|
|
3738
|
+
version: z.ZodString;
|
|
3739
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
3740
|
+
id: z.ZodString;
|
|
3741
|
+
admittedBy: z.ZodString;
|
|
3742
|
+
admittedByName: z.ZodNullable<z.ZodString>;
|
|
3743
|
+
admittedAt: z.ZodString;
|
|
3744
|
+
}, z.core.$strip>>;
|
|
3745
|
+
}, z.core.$strip>>>;
|
|
3631
3746
|
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3632
3747
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3633
3748
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3684,6 +3799,16 @@ declare const SCHEMAS: {
|
|
|
3684
3799
|
createdAt: z.ZodString;
|
|
3685
3800
|
updatedAt: z.ZodString;
|
|
3686
3801
|
url: z.ZodOptional<z.ZodString>;
|
|
3802
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3803
|
+
address: z.ZodString;
|
|
3804
|
+
version: z.ZodString;
|
|
3805
|
+
admission: z.ZodOptional<z.ZodObject<{
|
|
3806
|
+
id: z.ZodString;
|
|
3807
|
+
admittedBy: z.ZodString;
|
|
3808
|
+
admittedByName: z.ZodNullable<z.ZodString>;
|
|
3809
|
+
admittedAt: z.ZodString;
|
|
3810
|
+
}, z.core.$strip>>;
|
|
3811
|
+
}, z.core.$strip>>>;
|
|
3687
3812
|
keepStack: z.ZodOptional<z.ZodBoolean>;
|
|
3688
3813
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3689
3814
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3716,8 +3841,8 @@ declare const SCHEMAS: {
|
|
|
3716
3841
|
slug: z.ZodString;
|
|
3717
3842
|
source: z.ZodEnum<{
|
|
3718
3843
|
config: "config";
|
|
3719
|
-
flag: "flag";
|
|
3720
3844
|
env: "env";
|
|
3845
|
+
flag: "flag";
|
|
3721
3846
|
}>;
|
|
3722
3847
|
}, z.core.$strip>, z.ZodObject<{
|
|
3723
3848
|
slug: z.ZodNull;
|
|
@@ -3748,8 +3873,8 @@ declare const SCHEMAS: {
|
|
|
3748
3873
|
slug: z.ZodString;
|
|
3749
3874
|
source: z.ZodEnum<{
|
|
3750
3875
|
config: "config";
|
|
3751
|
-
flag: "flag";
|
|
3752
3876
|
env: "env";
|
|
3877
|
+
flag: "flag";
|
|
3753
3878
|
}>;
|
|
3754
3879
|
}, z.core.$strip>, z.ZodObject<{
|
|
3755
3880
|
slug: z.ZodNull;
|
|
@@ -3789,8 +3914,28 @@ declare const SCHEMAS: {
|
|
|
3789
3914
|
email: z.ZodString;
|
|
3790
3915
|
name: z.ZodString;
|
|
3791
3916
|
}, z.core.$strip>;
|
|
3917
|
+
replacedKey: z.ZodObject<{
|
|
3918
|
+
revocation: z.ZodEnum<{
|
|
3919
|
+
none: "none";
|
|
3920
|
+
revoked: "revoked";
|
|
3921
|
+
refused: "refused";
|
|
3922
|
+
unreachable: "unreachable";
|
|
3923
|
+
unreadable: "unreadable";
|
|
3924
|
+
}>;
|
|
3925
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3926
|
+
portalUrl: z.ZodOptional<z.ZodString>;
|
|
3927
|
+
}, z.core.$strip>;
|
|
3792
3928
|
}, z.core.$strip>], "type">;
|
|
3793
3929
|
logout: z.ZodObject<{
|
|
3930
|
+
revocation: z.ZodEnum<{
|
|
3931
|
+
none: "none";
|
|
3932
|
+
revoked: "revoked";
|
|
3933
|
+
refused: "refused";
|
|
3934
|
+
unreachable: "unreachable";
|
|
3935
|
+
unreadable: "unreadable";
|
|
3936
|
+
}>;
|
|
3937
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
portalUrl: z.ZodOptional<z.ZodString>;
|
|
3794
3939
|
loggedOut: z.ZodBoolean;
|
|
3795
3940
|
}, z.core.$strip>;
|
|
3796
3941
|
};
|
|
@@ -3813,7 +3958,7 @@ type CanvasSource = {
|
|
|
3813
3958
|
ungenerated: boolean;
|
|
3814
3959
|
conflict: SourceConflict | null;
|
|
3815
3960
|
sourceRefused: boolean;
|
|
3816
|
-
generating:
|
|
3961
|
+
generating: GenerateStage | false;
|
|
3817
3962
|
diagnostics: readonly Diagnostic$1[];
|
|
3818
3963
|
treeHash: string;
|
|
3819
3964
|
};
|
|
@@ -3831,18 +3976,31 @@ type SourceEnd = {
|
|
|
3831
3976
|
type SourcePort = {
|
|
3832
3977
|
subscribe: (on: (s: CanvasSource) => void, onEnd: (end: SourceEnd) => void, onCommandResult?: (result: CommandResult) => void) => () => void;
|
|
3833
3978
|
};
|
|
3979
|
+
declare const GENERATE_STAGES: readonly ["generating", "validating"];
|
|
3980
|
+
type GenerateStage = (typeof GENERATE_STAGES)[number];
|
|
3834
3981
|
type GenerateEvent = {
|
|
3835
3982
|
type: 'progress';
|
|
3836
|
-
stage:
|
|
3983
|
+
stage: GenerateStage;
|
|
3837
3984
|
} | {
|
|
3838
3985
|
type: 'success';
|
|
3839
3986
|
written: string[];
|
|
3987
|
+
changed: string[];
|
|
3988
|
+
removed: string[];
|
|
3840
3989
|
validate: JsonOf<'module validate'>;
|
|
3841
3990
|
} | {
|
|
3842
3991
|
type: 'error';
|
|
3843
3992
|
message: string;
|
|
3844
3993
|
reason: Reason;
|
|
3845
3994
|
};
|
|
3995
|
+
type GeneratedTree = {
|
|
3996
|
+
changed: readonly string[];
|
|
3997
|
+
removed: readonly string[];
|
|
3998
|
+
unchanged: number;
|
|
3999
|
+
treeChanged: boolean;
|
|
4000
|
+
};
|
|
4001
|
+
declare function generatedTree({ written, changed, removed, }: Extract<GenerateEvent, {
|
|
4002
|
+
type: 'success';
|
|
4003
|
+
}>): GeneratedTree;
|
|
3846
4004
|
/**
|
|
3847
4005
|
* A refusal of a batch's content reported by `ApplyAction`. Mirrors the wire
|
|
3848
4006
|
* `GraphError` — a failing `ApplyResult` carries one or more of these, and
|
|
@@ -3972,19 +4130,20 @@ type CanvasPorts = RunnerPorts & {
|
|
|
3972
4130
|
};
|
|
3973
4131
|
type PortName = keyof CanvasPorts;
|
|
3974
4132
|
|
|
3975
|
-
/** The
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
type
|
|
4133
|
+
/** The keys an action may bind with no modifier. */
|
|
4134
|
+
declare const BARE_KEYS: readonly ["Delete", "Backspace"];
|
|
4135
|
+
type BareKey = (typeof BARE_KEYS)[number];
|
|
4136
|
+
/** The type an action's `keys` hold: a key that starts with `Mod+`, or a
|
|
4137
|
+
* bare key. The `Mod+` arm is the grammar's prefix check alone — the type
|
|
4138
|
+
* cannot spell an optional `Shift` then one key — and `parseChord` refuses
|
|
4139
|
+
* the rest at runtime. */
|
|
4140
|
+
type KeySpec = `Mod+${string}` | BareKey;
|
|
3979
4141
|
|
|
3980
|
-
type
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
target: string;
|
|
3984
|
-
sourceOutput: string;
|
|
3985
|
-
targetInput: string;
|
|
4142
|
+
type CanvasSelection = {
|
|
4143
|
+
nodes: readonly string[];
|
|
4144
|
+
edges: readonly string[];
|
|
3986
4145
|
};
|
|
3987
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
4146
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.several' | 'selection.entryScope' | 'selection.edge' | 'selection.edges' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
3988
4147
|
type RunCtx = {
|
|
3989
4148
|
root?: string;
|
|
3990
4149
|
sessionId?: string;
|
|
@@ -3993,13 +4152,10 @@ type RunCtx = {
|
|
|
3993
4152
|
type CanvasCtx = RunCtx & {
|
|
3994
4153
|
ports: CanvasPorts;
|
|
3995
4154
|
editable: boolean;
|
|
3996
|
-
generating:
|
|
4155
|
+
generating: GenerateStage | false;
|
|
3997
4156
|
sourceRefused: boolean;
|
|
3998
4157
|
view: CanvasView;
|
|
3999
|
-
selection:
|
|
4000
|
-
nodes: readonly string[];
|
|
4001
|
-
edge: EdgeRef | null;
|
|
4002
|
-
};
|
|
4158
|
+
selection: CanvasSelection;
|
|
4003
4159
|
settingsOpen: boolean;
|
|
4004
4160
|
diagnostics: readonly Diagnostic$1[];
|
|
4005
4161
|
contributions: ContributionSet;
|
|
@@ -4043,7 +4199,7 @@ type ActionTarget = {
|
|
|
4043
4199
|
runId?: string;
|
|
4044
4200
|
failure?: CommandFailure;
|
|
4045
4201
|
};
|
|
4046
|
-
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | {
|
|
4202
|
+
type Placement = 'toolbar' | 'node-menu' | 'pane-menu' | 'card' | 'keymap' | {
|
|
4047
4203
|
row: string;
|
|
4048
4204
|
};
|
|
4049
4205
|
type ResultKind = 'run' | 'preview' | 'report' | 'notify' | 'follow';
|
|
@@ -4157,6 +4313,9 @@ type ActionContribution = {
|
|
|
4157
4313
|
busy?: {
|
|
4158
4314
|
when: ContextKey;
|
|
4159
4315
|
label: string;
|
|
4316
|
+
} | {
|
|
4317
|
+
when: 'generating';
|
|
4318
|
+
label: Readonly<Record<GenerateStage, string>>;
|
|
4160
4319
|
};
|
|
4161
4320
|
section?: string;
|
|
4162
4321
|
tone?: 'danger';
|
|
@@ -4348,6 +4507,7 @@ type ActionRunner = {
|
|
|
4348
4507
|
apply(actions: readonly Action[]): Promise<ApplyResult | undefined>;
|
|
4349
4508
|
editing(): boolean;
|
|
4350
4509
|
onEditingChange(listener: (editing: boolean) => void): () => void;
|
|
4510
|
+
onDidTick(listener: (run: CommandRun) => void): () => void;
|
|
4351
4511
|
busy(action: ActionContribution, ctx: RunCtx, target: ActionTarget): Busy | undefined;
|
|
4352
4512
|
cancel(kind: ResultKind): Promise<void>;
|
|
4353
4513
|
detach(kind: ResultKind): void;
|
|
@@ -4464,4 +4624,4 @@ declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<
|
|
|
4464
4624
|
/** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
|
|
4465
4625
|
declare function rowActions(resolved: ContributionSet, panelId: string): readonly ActionContribution[];
|
|
4466
4626
|
|
|
4467
|
-
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type
|
|
4627
|
+
export { type EngineCaller as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type CommandPath as E, type CommandRun as F, CommandUnobservedError as G, type CommandsPort as H, type ConfirmSpec as I, type JsonOf as J, type ConnectCallerOptions as K, type LayoutHandle as L, ConnectError as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextKey as Q, type ResultStore as R, type SourcePort as S, type ContextPort as T, type CreatedRef as U, type DirectEngineCaller as V, EMPTY_REPORT_FOLD as W, type EditorBinding as X, type EditorEnv as Y, type EditorEnvExtras as Z, type EditorPort as _, type CanvasCtx as a, rowActions as a$, type EngineMethodResponse as a0, type EngineSession as a1, type EngineSessionOptions as a2, type EngineTarget as a3, type ErasedCommand as a4, type FollowSlot as a5, GENERATE_STAGES as a6, type GateChangeRequest as a7, type GenerateEvent as a8, type GenerateStage as a9, type SlotKind as aA, type SourceConflict as aB, type StackRef as aC, type Started as aD, type ViewStatePort as aE, type WiringCandidate as aF, type WiringQuery as aG, answering as aH, bridgeCaller as aI, carriesFailure as aJ, commandUnderWay as aK, connectCaller as aL, createActionRunner as aM, createResultStore as aN, currentReport as aO, defineCommand as aP, diagnosticsOf as aQ, disabledReason as aR, foldReport as aS, generatedTree as aT, isBoundPath as aU, openEngineCommands as aV, openEngineSession as aW, parseBound as aX, parseCommandFailure as aY, reportDiagnostics as aZ, resolveContributions as a_, type GeneratedTree as aa, type GraphError as ab, type HostBinding as ac, type Invocation as ad, type KeySpec as ae, type Placement as af, type PortName as ag, type PresenterPort as ah, type PreviewOutcome as ai, type PreviewSlot as aj, Reason as ak, type ReportEntry as al, type ReportFold as am, type ReportPath as an, type ReportSlot as ao, type ResultKind as ap, type ResultSlots as aq, type RunCtx as ar, type RunOutcome as as, type RunSlot as at, type RunnerPorts as au, type RunningMark as av, SCHEMAS as aw, type Sink as ax, type SinkInput as ay, type SlotContext as az, type CanvasPorts as b, toArgv as b0, uniqueDiagnostics as b1, Action as b2, InputMode as b3, type LaceReason as b4, type LiveSlots as b5, type OnScreen as b6, type RunPhase as b7, type RunPhaseStatus as b8, diagnosticsOfDocument as b9, failureSays as ba, liveSlots as bb, reasonWire as bc, reduceFollow as bd, reducePreview as be, reduceReport as bf, reduceRun as bg, settleRun as bh, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, Bundle as j, type CanvasSelection as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, type Busy as t, COMMANDS as u, type ClipboardStore as v, type CommandBinding as w, CommandDetachedError as x, CommandExitError as y, type CommandFailure as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^18.3.1",
|
|
24
24
|
"react-dom": "^18.3.1",
|
|
25
25
|
"zod": "^4.1.11",
|
|
26
|
-
"@lace-cloud/
|
|
27
|
-
"@lace-cloud/
|
|
26
|
+
"@lace-cloud/proto": "0.30.0",
|
|
27
|
+
"@lace-cloud/ui": "0.30.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.3.12",
|