@lace-cloud/canvas 0.19.0 → 0.21.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 +3 -3
- package/dist/{AccordionSection-QHNIBNJT.css → AccordionSection-J3ALHB5M.css} +22 -12
- package/dist/{App-D7WF3TWZ.css → App-IFIOMNV7.css} +47 -33
- package/dist/Banner-4TSIKYLF.css +48 -0
- package/dist/{Canvas-J6F7YHEK.css → Canvas-JRY2HAY6.css} +0 -56
- package/dist/CanvasControls-L6Q2LX2P.css +47 -0
- package/dist/ContextMenu-C7SLX23S.css +74 -0
- package/dist/DiagnosticsPanel-T6VDHH4A.css +64 -0
- package/dist/Drawer-34ZYTEWE.css +62 -0
- package/dist/EdgeInspectorPanel-JD6CVUAT.css +45 -0
- package/dist/EmptyCanvas-QA2OV3T3.css +21 -0
- package/dist/GroupNode-QWSLBFCH.css +197 -0
- package/dist/Identifier-V6MZ37EG.css +4 -0
- package/dist/{ModuleConfigPanel-LZRL4F3Q.css → ModuleConfigPanel-LTPLEG2L.css} +29 -10
- package/dist/{ModuleNode-OJXMNOL3.css → ModuleNode-RRZ37SFM.css} +97 -27
- package/dist/PaperGrid-WFRL3N4P.css +25 -0
- package/dist/ToolbarAction-PQNWHJSU.css +36 -0
- package/dist/UpdateButton-TJKSFVBA.css +16 -0
- package/dist/{chunk-S2FFLFOT.mjs → chunk-W6U3TVQK.mjs} +106 -110
- package/dist/chunk-W6U3TVQK.mjs.map +1 -0
- package/dist/engine/index.cjs +83 -104
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +3 -5
- package/dist/engine/index.d.ts +3 -5
- package/dist/engine/index.mjs +1 -3
- package/dist/icons-SBZCWI5T.css +14 -0
- package/dist/index.cjs +10710 -10373
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -25
- package/dist/index.d.ts +35 -25
- package/dist/index.mjs +3026 -2641
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-BzX6r87C.d.mts → mapping-CopjG8Ae.d.mts} +59 -47
- package/dist/{mapping-BzX6r87C.d.ts → mapping-CopjG8Ae.d.ts} +59 -47
- package/dist/{panels-shared-OFOUQSUT.css → panels-shared-5JFNYXQ7.css} +47 -66
- package/package.json +3 -3
- package/dist/ConflictBanner-4V5K2QNU.css +0 -44
- package/dist/ContextMenu-EAQFLI5L.css +0 -46
- package/dist/DiagnosticsPanel-HB3JQYSY.css +0 -39
- package/dist/EdgeInspectorPanel-D536U5MZ.css +0 -54
- package/dist/GroupNode-XSB4OKGK.css +0 -150
- package/dist/Markers-XLREDZNM.css +0 -16
- package/dist/SourceRefusedBanner-5PXHEDHT.css +0 -23
- package/dist/chunk-S2FFLFOT.mjs.map +0 -1
|
@@ -3973,74 +3973,6 @@ var ShutdownResponse = {
|
|
|
3973
3973
|
return message;
|
|
3974
3974
|
}
|
|
3975
3975
|
};
|
|
3976
|
-
function createBaseReadCredentialResponse() {
|
|
3977
|
-
return { api_key: "", api_base_url: "" };
|
|
3978
|
-
}
|
|
3979
|
-
var ReadCredentialResponse = {
|
|
3980
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
3981
|
-
if (message.api_key !== "") {
|
|
3982
|
-
writer.uint32(10).string(message.api_key);
|
|
3983
|
-
}
|
|
3984
|
-
if (message.api_base_url !== "") {
|
|
3985
|
-
writer.uint32(18).string(message.api_base_url);
|
|
3986
|
-
}
|
|
3987
|
-
return writer;
|
|
3988
|
-
},
|
|
3989
|
-
decode(input, length) {
|
|
3990
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
3991
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3992
|
-
const message = createBaseReadCredentialResponse();
|
|
3993
|
-
while (reader.pos < end) {
|
|
3994
|
-
const tag = reader.uint32();
|
|
3995
|
-
switch (tag >>> 3) {
|
|
3996
|
-
case 1: {
|
|
3997
|
-
if (tag !== 10) {
|
|
3998
|
-
break;
|
|
3999
|
-
}
|
|
4000
|
-
message.api_key = reader.string();
|
|
4001
|
-
continue;
|
|
4002
|
-
}
|
|
4003
|
-
case 2: {
|
|
4004
|
-
if (tag !== 18) {
|
|
4005
|
-
break;
|
|
4006
|
-
}
|
|
4007
|
-
message.api_base_url = reader.string();
|
|
4008
|
-
continue;
|
|
4009
|
-
}
|
|
4010
|
-
}
|
|
4011
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4012
|
-
break;
|
|
4013
|
-
}
|
|
4014
|
-
reader.skip(tag & 7);
|
|
4015
|
-
}
|
|
4016
|
-
return message;
|
|
4017
|
-
},
|
|
4018
|
-
fromJSON(object) {
|
|
4019
|
-
return {
|
|
4020
|
-
api_key: isSet3(object.apiKey) ? globalThis.String(object.apiKey) : isSet3(object.api_key) ? globalThis.String(object.api_key) : "",
|
|
4021
|
-
api_base_url: isSet3(object.apiBaseUrl) ? globalThis.String(object.apiBaseUrl) : isSet3(object.api_base_url) ? globalThis.String(object.api_base_url) : ""
|
|
4022
|
-
};
|
|
4023
|
-
},
|
|
4024
|
-
toJSON(message) {
|
|
4025
|
-
const obj = {};
|
|
4026
|
-
if (message.api_key !== "") {
|
|
4027
|
-
obj.apiKey = message.api_key;
|
|
4028
|
-
}
|
|
4029
|
-
if (message.api_base_url !== "") {
|
|
4030
|
-
obj.apiBaseUrl = message.api_base_url;
|
|
4031
|
-
}
|
|
4032
|
-
return obj;
|
|
4033
|
-
},
|
|
4034
|
-
create(base) {
|
|
4035
|
-
return ReadCredentialResponse.fromPartial(base ?? {});
|
|
4036
|
-
},
|
|
4037
|
-
fromPartial(object) {
|
|
4038
|
-
const message = createBaseReadCredentialResponse();
|
|
4039
|
-
message.api_key = object.api_key ?? "";
|
|
4040
|
-
message.api_base_url = object.api_base_url ?? "";
|
|
4041
|
-
return message;
|
|
4042
|
-
}
|
|
4043
|
-
};
|
|
4044
3976
|
function createBaseSessionOpenRequest() {
|
|
4045
3977
|
return { ephemeral: void 0, root: void 0, workspace_name: "" };
|
|
4046
3978
|
}
|
|
@@ -7474,7 +7406,7 @@ var WiringCandidate = {
|
|
|
7474
7406
|
}
|
|
7475
7407
|
};
|
|
7476
7408
|
function createBaseReadWiringCandidatesRequest() {
|
|
7477
|
-
return { session_id: "", scope: "", source_instance: void 0, target_instance: void 0 };
|
|
7409
|
+
return { session_id: "", scope: "", source_instance: void 0, target_instance: void 0, source_scope: "" };
|
|
7478
7410
|
}
|
|
7479
7411
|
var ReadWiringCandidatesRequest = {
|
|
7480
7412
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -7490,6 +7422,9 @@ var ReadWiringCandidatesRequest = {
|
|
|
7490
7422
|
if (message.target_instance !== void 0) {
|
|
7491
7423
|
writer.uint32(34).string(message.target_instance);
|
|
7492
7424
|
}
|
|
7425
|
+
if (message.source_scope !== "") {
|
|
7426
|
+
writer.uint32(42).string(message.source_scope);
|
|
7427
|
+
}
|
|
7493
7428
|
return writer;
|
|
7494
7429
|
},
|
|
7495
7430
|
decode(input, length) {
|
|
@@ -7527,6 +7462,13 @@ var ReadWiringCandidatesRequest = {
|
|
|
7527
7462
|
message.target_instance = reader.string();
|
|
7528
7463
|
continue;
|
|
7529
7464
|
}
|
|
7465
|
+
case 5: {
|
|
7466
|
+
if (tag !== 42) {
|
|
7467
|
+
break;
|
|
7468
|
+
}
|
|
7469
|
+
message.source_scope = reader.string();
|
|
7470
|
+
continue;
|
|
7471
|
+
}
|
|
7530
7472
|
}
|
|
7531
7473
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7532
7474
|
break;
|
|
@@ -7540,7 +7482,8 @@ var ReadWiringCandidatesRequest = {
|
|
|
7540
7482
|
session_id: isSet3(object.sessionId) ? globalThis.String(object.sessionId) : isSet3(object.session_id) ? globalThis.String(object.session_id) : "",
|
|
7541
7483
|
scope: isSet3(object.scope) ? globalThis.String(object.scope) : "",
|
|
7542
7484
|
source_instance: isSet3(object.sourceInstance) ? globalThis.String(object.sourceInstance) : isSet3(object.source_instance) ? globalThis.String(object.source_instance) : void 0,
|
|
7543
|
-
target_instance: isSet3(object.targetInstance) ? globalThis.String(object.targetInstance) : isSet3(object.target_instance) ? globalThis.String(object.target_instance) : void 0
|
|
7485
|
+
target_instance: isSet3(object.targetInstance) ? globalThis.String(object.targetInstance) : isSet3(object.target_instance) ? globalThis.String(object.target_instance) : void 0,
|
|
7486
|
+
source_scope: isSet3(object.sourceScope) ? globalThis.String(object.sourceScope) : isSet3(object.source_scope) ? globalThis.String(object.source_scope) : ""
|
|
7544
7487
|
};
|
|
7545
7488
|
},
|
|
7546
7489
|
toJSON(message) {
|
|
@@ -7557,6 +7500,9 @@ var ReadWiringCandidatesRequest = {
|
|
|
7557
7500
|
if (message.target_instance !== void 0) {
|
|
7558
7501
|
obj.targetInstance = message.target_instance;
|
|
7559
7502
|
}
|
|
7503
|
+
if (message.source_scope !== "") {
|
|
7504
|
+
obj.sourceScope = message.source_scope;
|
|
7505
|
+
}
|
|
7560
7506
|
return obj;
|
|
7561
7507
|
},
|
|
7562
7508
|
create(base) {
|
|
@@ -7568,6 +7514,7 @@ var ReadWiringCandidatesRequest = {
|
|
|
7568
7514
|
message.scope = object.scope ?? "";
|
|
7569
7515
|
message.source_instance = object.source_instance ?? void 0;
|
|
7570
7516
|
message.target_instance = object.target_instance ?? void 0;
|
|
7517
|
+
message.source_scope = object.source_scope ?? "";
|
|
7571
7518
|
return message;
|
|
7572
7519
|
}
|
|
7573
7520
|
};
|
|
@@ -8590,7 +8537,8 @@ function createBaseBundleState() {
|
|
|
8590
8537
|
ungenerated: false,
|
|
8591
8538
|
source_refused: false,
|
|
8592
8539
|
tree_hash: "",
|
|
8593
|
-
revision: 0
|
|
8540
|
+
revision: 0,
|
|
8541
|
+
generating: false
|
|
8594
8542
|
};
|
|
8595
8543
|
}
|
|
8596
8544
|
var BundleState = {
|
|
@@ -8625,6 +8573,9 @@ var BundleState = {
|
|
|
8625
8573
|
if (message.revision !== 0) {
|
|
8626
8574
|
writer.uint32(88).uint64(message.revision);
|
|
8627
8575
|
}
|
|
8576
|
+
if (message.generating !== false) {
|
|
8577
|
+
writer.uint32(96).bool(message.generating);
|
|
8578
|
+
}
|
|
8628
8579
|
return writer;
|
|
8629
8580
|
},
|
|
8630
8581
|
decode(input, length) {
|
|
@@ -8704,6 +8655,13 @@ var BundleState = {
|
|
|
8704
8655
|
message.revision = longToNumber(reader.uint64());
|
|
8705
8656
|
continue;
|
|
8706
8657
|
}
|
|
8658
|
+
case 12: {
|
|
8659
|
+
if (tag !== 96) {
|
|
8660
|
+
break;
|
|
8661
|
+
}
|
|
8662
|
+
message.generating = reader.bool();
|
|
8663
|
+
continue;
|
|
8664
|
+
}
|
|
8707
8665
|
}
|
|
8708
8666
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8709
8667
|
break;
|
|
@@ -8723,7 +8681,8 @@ var BundleState = {
|
|
|
8723
8681
|
ungenerated: isSet3(object.ungenerated) ? globalThis.Boolean(object.ungenerated) : false,
|
|
8724
8682
|
source_refused: isSet3(object.sourceRefused) ? globalThis.Boolean(object.sourceRefused) : isSet3(object.source_refused) ? globalThis.Boolean(object.source_refused) : false,
|
|
8725
8683
|
tree_hash: isSet3(object.treeHash) ? globalThis.String(object.treeHash) : isSet3(object.tree_hash) ? globalThis.String(object.tree_hash) : "",
|
|
8726
|
-
revision: isSet3(object.revision) ? globalThis.Number(object.revision) : 0
|
|
8684
|
+
revision: isSet3(object.revision) ? globalThis.Number(object.revision) : 0,
|
|
8685
|
+
generating: isSet3(object.generating) ? globalThis.Boolean(object.generating) : false
|
|
8727
8686
|
};
|
|
8728
8687
|
},
|
|
8729
8688
|
toJSON(message) {
|
|
@@ -8758,6 +8717,9 @@ var BundleState = {
|
|
|
8758
8717
|
if (message.revision !== 0) {
|
|
8759
8718
|
obj.revision = Math.round(message.revision);
|
|
8760
8719
|
}
|
|
8720
|
+
if (message.generating !== false) {
|
|
8721
|
+
obj.generating = message.generating;
|
|
8722
|
+
}
|
|
8761
8723
|
return obj;
|
|
8762
8724
|
},
|
|
8763
8725
|
create(base) {
|
|
@@ -8775,6 +8737,7 @@ var BundleState = {
|
|
|
8775
8737
|
message.source_refused = object.source_refused ?? false;
|
|
8776
8738
|
message.tree_hash = object.tree_hash ?? "";
|
|
8777
8739
|
message.revision = object.revision ?? 0;
|
|
8740
|
+
message.generating = object.generating ?? false;
|
|
8778
8741
|
return message;
|
|
8779
8742
|
}
|
|
8780
8743
|
};
|
|
@@ -9935,27 +9898,6 @@ var LaceEngineDefinition = {
|
|
|
9935
9898
|
responseStream: false,
|
|
9936
9899
|
options: {}
|
|
9937
9900
|
},
|
|
9938
|
-
/**
|
|
9939
|
-
* Answers the credential this engine holds: the API key `lace login`
|
|
9940
|
-
* saved or `LACE_TOKEN` supplies, read fresh on every call so a `lace
|
|
9941
|
-
* login` or `lace logout` takes effect at once (empty when signed out),
|
|
9942
|
-
* beside the base URL of the API that key is for, the one the engine's
|
|
9943
|
-
* own commands call (the CLI's `config.ResolveBaseURL`). The host
|
|
9944
|
-
* that spawned the engine builds its own authenticated transport to
|
|
9945
|
-
* Lace's API from the two, for the chat package, and never restates
|
|
9946
|
-
* which API; the engine knows nothing of what the host does with them. Served, like every RPC,
|
|
9947
|
-
* only to the bearer of the handshake's session token, and never
|
|
9948
|
-
* forwarded across the webview bridge (`BRIDGE_METHODS`,
|
|
9949
|
-
* @lace-cloud/proto's engine-bridge.ts).
|
|
9950
|
-
*/
|
|
9951
|
-
readCredential: {
|
|
9952
|
-
name: "ReadCredential",
|
|
9953
|
-
requestType: Empty,
|
|
9954
|
-
requestStream: false,
|
|
9955
|
-
responseType: ReadCredentialResponse,
|
|
9956
|
-
responseStream: false,
|
|
9957
|
-
options: {}
|
|
9958
|
-
},
|
|
9959
9901
|
/**
|
|
9960
9902
|
* Session lifecycle. Never fails on a refused source tf — a refused tf
|
|
9961
9903
|
* opens the session source-refused (`BundleState.source_refused`) with
|
|
@@ -10052,8 +9994,9 @@ var LaceEngineDefinition = {
|
|
|
10052
9994
|
* Reads the output → input pairs the engine's matcher scores between the
|
|
10053
9995
|
* instances of one module of a session's working IR: the pairs an
|
|
10054
9996
|
* `auto_connect` chooses among, with the scores it chooses by. The
|
|
10055
|
-
* matching rules have this one home; a client
|
|
10056
|
-
*
|
|
9997
|
+
* matching rules have this one home; a client lists these pairs, best
|
|
9998
|
+
* first, for a connect whose pins it does not settle, and sends the pair
|
|
9999
|
+
* it is given as a `connect`.
|
|
10057
10000
|
*/
|
|
10058
10001
|
readWiringCandidates: {
|
|
10059
10002
|
name: "ReadWiringCandidates",
|
|
@@ -10094,7 +10037,7 @@ var LaceEngineDefinition = {
|
|
|
10094
10037
|
*
|
|
10095
10038
|
* Consumers (portal + extension canvas engines) project locally via
|
|
10096
10039
|
* `@lace-cloud/proto`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
10097
|
-
* `arrangement` (node positions, group collapse
|
|
10040
|
+
* `arrangement` (node positions, group collapse) is consumer-owned
|
|
10098
10041
|
* view state — it never travels over this RPC.
|
|
10099
10042
|
*/
|
|
10100
10043
|
subscribe: {
|
|
@@ -10125,6 +10068,20 @@ function isSet3(value) {
|
|
|
10125
10068
|
}
|
|
10126
10069
|
|
|
10127
10070
|
// src/ports.ts
|
|
10071
|
+
function currentFrame(source) {
|
|
10072
|
+
return new Promise((resolve) => {
|
|
10073
|
+
let settled = false;
|
|
10074
|
+
let unsubscribe;
|
|
10075
|
+
const settle = (frame) => {
|
|
10076
|
+
if (settled) return;
|
|
10077
|
+
settled = true;
|
|
10078
|
+
resolve(frame);
|
|
10079
|
+
unsubscribe?.();
|
|
10080
|
+
};
|
|
10081
|
+
unsubscribe = source.subscribe(settle, () => settle(void 0));
|
|
10082
|
+
if (settled) unsubscribe();
|
|
10083
|
+
});
|
|
10084
|
+
}
|
|
10128
10085
|
var ApplyUnobservedError = class extends Error {
|
|
10129
10086
|
constructor(end) {
|
|
10130
10087
|
super(`unobserved: the source stopped (${end.kind}) before the frame that carries the write`);
|
|
@@ -10317,7 +10274,6 @@ function requestCodec(method) {
|
|
|
10317
10274
|
}
|
|
10318
10275
|
var RESPONSE_CODECS = {
|
|
10319
10276
|
Initialize: LaceEngineDefinition.methods.initialize.responseType,
|
|
10320
|
-
ReadCredential: LaceEngineDefinition.methods.readCredential.responseType,
|
|
10321
10277
|
SessionOpen: LaceEngineDefinition.methods.sessionOpen.responseType,
|
|
10322
10278
|
TestSessionOpen: LaceEngineDefinition.methods.testSessionOpen.responseType,
|
|
10323
10279
|
SessionSave: LaceEngineDefinition.methods.sessionSave.responseType,
|
|
@@ -12406,6 +12362,8 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12406
12362
|
const commandResultListeners = /* @__PURE__ */ new Set();
|
|
12407
12363
|
const commandResults = /* @__PURE__ */ new Map();
|
|
12408
12364
|
const progressListeners = /* @__PURE__ */ new Set();
|
|
12365
|
+
const ownGenerates = /* @__PURE__ */ new Set();
|
|
12366
|
+
let sessionGenerating = initialState.generating;
|
|
12409
12367
|
let currentSource = null;
|
|
12410
12368
|
let ended = null;
|
|
12411
12369
|
let deliveredRevision = initialState.revision;
|
|
@@ -12414,6 +12372,7 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12414
12372
|
function adopt(state) {
|
|
12415
12373
|
const published = state.bundle ?? EMPTY_BUNDLE;
|
|
12416
12374
|
const bundle = currentSource && deepEqual(currentSource.bundle, published) ? currentSource.bundle : published;
|
|
12375
|
+
sessionGenerating = state.generating;
|
|
12417
12376
|
currentSource = {
|
|
12418
12377
|
bundle,
|
|
12419
12378
|
canUndo: state.can_undo,
|
|
@@ -12422,9 +12381,9 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12422
12381
|
ungenerated: state.ungenerated,
|
|
12423
12382
|
conflict: state.conflict ? { baseTreeHash: state.conflict.base_tree_hash, treeHash: state.conflict.tree_hash } : null,
|
|
12424
12383
|
sourceRefused: state.source_refused,
|
|
12384
|
+
generating: generating(),
|
|
12425
12385
|
diagnostics: state.diagnostics.map(convertDiagnostic),
|
|
12426
|
-
treeHash: state.tree_hash
|
|
12427
|
-
revision: state.revision
|
|
12386
|
+
treeHash: state.tree_hash
|
|
12428
12387
|
};
|
|
12429
12388
|
for (const listener of sourceListeners) deliver(listener, currentSource);
|
|
12430
12389
|
deliveredRevision = state.revision;
|
|
@@ -12435,6 +12394,17 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12435
12394
|
}
|
|
12436
12395
|
}
|
|
12437
12396
|
adopt(initialState);
|
|
12397
|
+
function generating() {
|
|
12398
|
+
return sessionGenerating || ownGenerates.size > 0;
|
|
12399
|
+
}
|
|
12400
|
+
function track(id, on) {
|
|
12401
|
+
const was = generating();
|
|
12402
|
+
if (on) ownGenerates.add(id);
|
|
12403
|
+
else ownGenerates.delete(id);
|
|
12404
|
+
if (!currentSource || generating() === was) return;
|
|
12405
|
+
currentSource = { ...currentSource, generating: generating() };
|
|
12406
|
+
for (const listener of sourceListeners) deliver(listener, currentSource);
|
|
12407
|
+
}
|
|
12438
12408
|
function observed(revision) {
|
|
12439
12409
|
if (deliveredRevision >= revision) return Promise.resolve();
|
|
12440
12410
|
if (stopped) return Promise.reject(new ApplyUnobservedError(stopped));
|
|
@@ -12519,6 +12489,7 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12519
12489
|
const response = await caller.unary("ReadWiringCandidates", {
|
|
12520
12490
|
session_id: sessionId,
|
|
12521
12491
|
scope: query.scope,
|
|
12492
|
+
source_scope: query.sourceScope,
|
|
12522
12493
|
source_instance: query.source,
|
|
12523
12494
|
target_instance: query.target
|
|
12524
12495
|
});
|
|
@@ -12542,6 +12513,7 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12542
12513
|
function generate() {
|
|
12543
12514
|
const queue = createEventQueue();
|
|
12544
12515
|
const generateId = crypto.randomUUID();
|
|
12516
|
+
track(generateId, true);
|
|
12545
12517
|
const onProgress = (progress) => {
|
|
12546
12518
|
if (progress.generate_id !== generateId) return;
|
|
12547
12519
|
const stage = progress.stage;
|
|
@@ -12552,6 +12524,7 @@ async function openEngineSession(caller, target, options = {}) {
|
|
|
12552
12524
|
progressListeners.add(onProgress);
|
|
12553
12525
|
const close = (outcome, unobserved) => {
|
|
12554
12526
|
progressListeners.delete(onProgress);
|
|
12527
|
+
track(generateId, false);
|
|
12555
12528
|
queue.push(outcome);
|
|
12556
12529
|
if (unobserved) queue.error(unobserved);
|
|
12557
12530
|
else queue.end();
|
|
@@ -12658,8 +12631,7 @@ function toApplyResult(result) {
|
|
|
12658
12631
|
success: result.success,
|
|
12659
12632
|
errors: result.errors.map(convertGraphError),
|
|
12660
12633
|
created: result.created.map(convertCreatedRef),
|
|
12661
|
-
ties: result.ties.map(convertWiringCandidate)
|
|
12662
|
-
revision: result.revision
|
|
12634
|
+
ties: result.ties.map(convertWiringCandidate)
|
|
12663
12635
|
};
|
|
12664
12636
|
}
|
|
12665
12637
|
function convertWiringCandidate(c) {
|
|
@@ -12853,6 +12825,8 @@ var MODULE_COMMAND_ACTIONS = [
|
|
|
12853
12825
|
{
|
|
12854
12826
|
id: "validate",
|
|
12855
12827
|
label: "Validate",
|
|
12828
|
+
icon: "validate",
|
|
12829
|
+
section: "check",
|
|
12856
12830
|
placement: "toolbar",
|
|
12857
12831
|
requiredPorts: ["commands"],
|
|
12858
12832
|
requiredContext: ["root"],
|
|
@@ -12861,6 +12835,8 @@ var MODULE_COMMAND_ACTIONS = [
|
|
|
12861
12835
|
{
|
|
12862
12836
|
id: "convert",
|
|
12863
12837
|
label: "Convert",
|
|
12838
|
+
icon: "convert",
|
|
12839
|
+
section: "check",
|
|
12864
12840
|
placement: "toolbar",
|
|
12865
12841
|
requiredPorts: ["commands"],
|
|
12866
12842
|
requiredContext: ["root"],
|
|
@@ -13262,13 +13238,23 @@ var CONTEXT_NEEDS = {
|
|
|
13262
13238
|
stack: "a stack",
|
|
13263
13239
|
editable: "an editable canvas",
|
|
13264
13240
|
saved: "nothing unsaved",
|
|
13241
|
+
unsaved: "an unsaved edit",
|
|
13265
13242
|
resolved: "no open Keep or Reload conflict",
|
|
13243
|
+
conflict: "an open Keep or Reload conflict",
|
|
13244
|
+
sourceRefused: "the source-refused lock",
|
|
13266
13245
|
"selection.node": "a selected node",
|
|
13267
13246
|
"selection.edge": "a selected connection",
|
|
13268
|
-
diagnostics: "diagnostics to show"
|
|
13247
|
+
diagnostics: "diagnostics to show",
|
|
13248
|
+
settingsOpen: "the settings panel open",
|
|
13249
|
+
generateIdle: "no Generate running",
|
|
13250
|
+
generating: "a Generate running",
|
|
13251
|
+
ungenerated: "an ungenerated tree",
|
|
13252
|
+
undoable: "an edit to undo",
|
|
13253
|
+
redoable: "an edit to redo"
|
|
13269
13254
|
};
|
|
13270
13255
|
var TARGET_NEEDS = {
|
|
13271
13256
|
nodeId: "a node",
|
|
13257
|
+
groupId: "a group",
|
|
13272
13258
|
diagnostic: "a diagnostic",
|
|
13273
13259
|
runId: "a run"
|
|
13274
13260
|
};
|
|
@@ -13276,11 +13262,20 @@ var BUSY_REASON = "A run is in progress";
|
|
|
13276
13262
|
function keySatisfied(ctx, key) {
|
|
13277
13263
|
if (key === "editable") return ctx.editable === true;
|
|
13278
13264
|
if (key === "saved") return ctx.view?.unsaved === false;
|
|
13265
|
+
if (key === "unsaved") return ctx.view?.unsaved === true;
|
|
13279
13266
|
if (key === "resolved") return ctx.view !== void 0 && ctx.view.conflict === void 0;
|
|
13267
|
+
if (key === "conflict") return ctx.view?.conflict !== void 0;
|
|
13268
|
+
if (key === "sourceRefused") return ctx.sourceRefused === true;
|
|
13280
13269
|
if (key === "selection.node")
|
|
13281
13270
|
return ctx.selection !== void 0 && ctx.selection.nodes.length > 0;
|
|
13282
13271
|
if (key === "selection.edge") return ctx.selection !== void 0 && ctx.selection.edge !== null;
|
|
13283
13272
|
if (key === "diagnostics") return ctx.diagnostics !== void 0 && ctx.diagnostics.length > 0;
|
|
13273
|
+
if (key === "settingsOpen") return ctx.settingsOpen === true;
|
|
13274
|
+
if (key === "generateIdle") return ctx.generating === false;
|
|
13275
|
+
if (key === "generating") return ctx.generating === true;
|
|
13276
|
+
if (key === "ungenerated") return ctx.view?.ungenerated === true;
|
|
13277
|
+
if (key === "undoable") return ctx.view?.can_undo === true;
|
|
13278
|
+
if (key === "redoable") return ctx.view?.can_redo === true;
|
|
13284
13279
|
return ctx[key] !== void 0;
|
|
13285
13280
|
}
|
|
13286
13281
|
function contextSatisfied(ctx, required) {
|
|
@@ -13699,24 +13694,26 @@ function autosave(source, save, policy, report) {
|
|
|
13699
13694
|
}
|
|
13700
13695
|
|
|
13701
13696
|
export {
|
|
13697
|
+
keySatisfied,
|
|
13702
13698
|
disabledReason,
|
|
13703
13699
|
resolveContributions,
|
|
13704
13700
|
rowActions,
|
|
13705
|
-
COMMANDS,
|
|
13706
|
-
toArgv,
|
|
13707
13701
|
Bundle,
|
|
13708
13702
|
InputMode,
|
|
13709
13703
|
Reason,
|
|
13704
|
+
currentFrame,
|
|
13705
|
+
ApplyUnobservedError,
|
|
13706
|
+
CommandExitError,
|
|
13707
|
+
ConnectError,
|
|
13708
|
+
CommandDetachedError,
|
|
13709
|
+
COMMANDS,
|
|
13710
|
+
toArgv,
|
|
13710
13711
|
SCHEMAS,
|
|
13711
13712
|
isBoundPath,
|
|
13712
13713
|
parseBound,
|
|
13713
13714
|
reasonWire,
|
|
13714
13715
|
carriesFailure,
|
|
13715
13716
|
parseCommandFailure,
|
|
13716
|
-
ApplyUnobservedError,
|
|
13717
|
-
CommandExitError,
|
|
13718
|
-
ConnectError,
|
|
13719
|
-
CommandDetachedError,
|
|
13720
13717
|
defineCommand,
|
|
13721
13718
|
MODULE_COMMAND_ACTIONS,
|
|
13722
13719
|
CORE_COMMAND_ACTIONS,
|
|
@@ -13738,10 +13735,9 @@ export {
|
|
|
13738
13735
|
createActionRunner,
|
|
13739
13736
|
connectCaller,
|
|
13740
13737
|
bridgeCaller,
|
|
13741
|
-
deepEqual,
|
|
13742
13738
|
openEngineCommands,
|
|
13743
13739
|
openEngineSession,
|
|
13744
13740
|
AutosaveEndedError,
|
|
13745
13741
|
autosave
|
|
13746
13742
|
};
|
|
13747
|
-
//# sourceMappingURL=chunk-
|
|
13743
|
+
//# sourceMappingURL=chunk-W6U3TVQK.mjs.map
|