@lace-cloud/canvas 0.37.0 → 0.37.1

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.
@@ -1,5 +1,5 @@
1
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-4-XX1MRe.mjs';
2
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-4-XX1MRe.mjs';
1
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-D3cL5cfF.mjs';
2
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-D3cL5cfF.mjs';
3
3
  import { RenderEdge } from '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -1,5 +1,5 @@
1
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-4-XX1MRe.js';
2
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-4-XX1MRe.js';
1
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-D3cL5cfF.js';
2
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-D3cL5cfF.js';
3
3
  import { RenderEdge } from '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -53,7 +53,7 @@ import {
53
53
  uniqueDiagnostics,
54
54
  wireEnd,
55
55
  wireEndText
56
- } from "../chunk-45ZS7XCZ.mjs";
56
+ } from "../chunk-323MYV3H.mjs";
57
57
  export {
58
58
  ApplyUnobservedError,
59
59
  AutosaveEndedError,
package/dist/index.cjs CHANGED
@@ -2428,6 +2428,7 @@ var Reason = /* @__PURE__ */ ((Reason3) => {
2428
2428
  Reason3[Reason3["REASON_ALREADY_IMPORTED"] = 21] = "REASON_ALREADY_IMPORTED";
2429
2429
  Reason3[Reason3["REASON_NO_LOCKFILE"] = 22] = "REASON_NO_LOCKFILE";
2430
2430
  Reason3[Reason3["REASON_NO_COMMIT"] = 23] = "REASON_NO_COMMIT";
2431
+ Reason3[Reason3["REASON_STALE_WORKING_STATE"] = 24] = "REASON_STALE_WORKING_STATE";
2431
2432
  Reason3[Reason3["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2432
2433
  return Reason3;
2433
2434
  })(Reason || {});
@@ -2505,6 +2506,9 @@ function reasonFromJSON(object) {
2505
2506
  case 23:
2506
2507
  case "REASON_NO_COMMIT":
2507
2508
  return 23 /* REASON_NO_COMMIT */;
2509
+ case 24:
2510
+ case "REASON_STALE_WORKING_STATE":
2511
+ return 24 /* REASON_STALE_WORKING_STATE */;
2508
2512
  case -1:
2509
2513
  case "UNRECOGNIZED":
2510
2514
  default:
@@ -2561,6 +2565,8 @@ function reasonToJSON(object) {
2561
2565
  return "REASON_NO_LOCKFILE";
2562
2566
  case 23 /* REASON_NO_COMMIT */:
2563
2567
  return "REASON_NO_COMMIT";
2568
+ case 24 /* REASON_STALE_WORKING_STATE */:
2569
+ return "REASON_STALE_WORKING_STATE";
2564
2570
  case -1 /* UNRECOGNIZED */:
2565
2571
  default:
2566
2572
  return "UNRECOGNIZED";
@@ -9466,6 +9472,178 @@ var RedoAction = {
9466
9472
  return message;
9467
9473
  }
9468
9474
  };
9475
+ function createBaseDiscardAction() {
9476
+ return { expected_working_digest: "" };
9477
+ }
9478
+ var DiscardAction = {
9479
+ encode(message, writer = new import_wire4.BinaryWriter()) {
9480
+ if (message.expected_working_digest !== "") {
9481
+ writer.uint32(10).string(message.expected_working_digest);
9482
+ }
9483
+ return writer;
9484
+ },
9485
+ decode(input, length) {
9486
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
9487
+ const end = length === void 0 ? reader.len : reader.pos + length;
9488
+ const message = createBaseDiscardAction();
9489
+ while (reader.pos < end) {
9490
+ const tag = reader.uint32();
9491
+ switch (tag >>> 3) {
9492
+ case 1: {
9493
+ if (tag !== 10) {
9494
+ break;
9495
+ }
9496
+ message.expected_working_digest = reader.string();
9497
+ continue;
9498
+ }
9499
+ }
9500
+ if ((tag & 7) === 4 || tag === 0) {
9501
+ break;
9502
+ }
9503
+ reader.skip(tag & 7);
9504
+ }
9505
+ return message;
9506
+ },
9507
+ fromJSON(object) {
9508
+ return {
9509
+ expected_working_digest: isSet3(object.expectedWorkingDigest) ? globalThis.String(object.expectedWorkingDigest) : isSet3(object.expected_working_digest) ? globalThis.String(object.expected_working_digest) : ""
9510
+ };
9511
+ },
9512
+ toJSON(message) {
9513
+ const obj = {};
9514
+ if (message.expected_working_digest !== "") {
9515
+ obj.expectedWorkingDigest = message.expected_working_digest;
9516
+ }
9517
+ return obj;
9518
+ },
9519
+ create(base) {
9520
+ return DiscardAction.fromPartial(base ?? {});
9521
+ },
9522
+ fromPartial(object) {
9523
+ const message = createBaseDiscardAction();
9524
+ message.expected_working_digest = object.expected_working_digest ?? "";
9525
+ return message;
9526
+ }
9527
+ };
9528
+ function createBaseRestoreAction() {
9529
+ return {
9530
+ bundle: void 0,
9531
+ captured_working_digest: "",
9532
+ captured_saved_digest: "",
9533
+ captured_tree_hash: "",
9534
+ expected_working_digest: ""
9535
+ };
9536
+ }
9537
+ var RestoreAction = {
9538
+ encode(message, writer = new import_wire4.BinaryWriter()) {
9539
+ if (message.bundle !== void 0) {
9540
+ Bundle.encode(message.bundle, writer.uint32(10).fork()).join();
9541
+ }
9542
+ if (message.captured_working_digest !== "") {
9543
+ writer.uint32(18).string(message.captured_working_digest);
9544
+ }
9545
+ if (message.captured_saved_digest !== "") {
9546
+ writer.uint32(26).string(message.captured_saved_digest);
9547
+ }
9548
+ if (message.captured_tree_hash !== "") {
9549
+ writer.uint32(34).string(message.captured_tree_hash);
9550
+ }
9551
+ if (message.expected_working_digest !== "") {
9552
+ writer.uint32(42).string(message.expected_working_digest);
9553
+ }
9554
+ return writer;
9555
+ },
9556
+ decode(input, length) {
9557
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
9558
+ const end = length === void 0 ? reader.len : reader.pos + length;
9559
+ const message = createBaseRestoreAction();
9560
+ while (reader.pos < end) {
9561
+ const tag = reader.uint32();
9562
+ switch (tag >>> 3) {
9563
+ case 1: {
9564
+ if (tag !== 10) {
9565
+ break;
9566
+ }
9567
+ message.bundle = Bundle.decode(reader, reader.uint32());
9568
+ continue;
9569
+ }
9570
+ case 2: {
9571
+ if (tag !== 18) {
9572
+ break;
9573
+ }
9574
+ message.captured_working_digest = reader.string();
9575
+ continue;
9576
+ }
9577
+ case 3: {
9578
+ if (tag !== 26) {
9579
+ break;
9580
+ }
9581
+ message.captured_saved_digest = reader.string();
9582
+ continue;
9583
+ }
9584
+ case 4: {
9585
+ if (tag !== 34) {
9586
+ break;
9587
+ }
9588
+ message.captured_tree_hash = reader.string();
9589
+ continue;
9590
+ }
9591
+ case 5: {
9592
+ if (tag !== 42) {
9593
+ break;
9594
+ }
9595
+ message.expected_working_digest = reader.string();
9596
+ continue;
9597
+ }
9598
+ }
9599
+ if ((tag & 7) === 4 || tag === 0) {
9600
+ break;
9601
+ }
9602
+ reader.skip(tag & 7);
9603
+ }
9604
+ return message;
9605
+ },
9606
+ fromJSON(object) {
9607
+ return {
9608
+ bundle: isSet3(object.bundle) ? Bundle.fromJSON(object.bundle) : void 0,
9609
+ captured_working_digest: isSet3(object.capturedWorkingDigest) ? globalThis.String(object.capturedWorkingDigest) : isSet3(object.captured_working_digest) ? globalThis.String(object.captured_working_digest) : "",
9610
+ captured_saved_digest: isSet3(object.capturedSavedDigest) ? globalThis.String(object.capturedSavedDigest) : isSet3(object.captured_saved_digest) ? globalThis.String(object.captured_saved_digest) : "",
9611
+ captured_tree_hash: isSet3(object.capturedTreeHash) ? globalThis.String(object.capturedTreeHash) : isSet3(object.captured_tree_hash) ? globalThis.String(object.captured_tree_hash) : "",
9612
+ expected_working_digest: isSet3(object.expectedWorkingDigest) ? globalThis.String(object.expectedWorkingDigest) : isSet3(object.expected_working_digest) ? globalThis.String(object.expected_working_digest) : ""
9613
+ };
9614
+ },
9615
+ toJSON(message) {
9616
+ const obj = {};
9617
+ if (message.bundle !== void 0) {
9618
+ obj.bundle = Bundle.toJSON(message.bundle);
9619
+ }
9620
+ if (message.captured_working_digest !== "") {
9621
+ obj.capturedWorkingDigest = message.captured_working_digest;
9622
+ }
9623
+ if (message.captured_saved_digest !== "") {
9624
+ obj.capturedSavedDigest = message.captured_saved_digest;
9625
+ }
9626
+ if (message.captured_tree_hash !== "") {
9627
+ obj.capturedTreeHash = message.captured_tree_hash;
9628
+ }
9629
+ if (message.expected_working_digest !== "") {
9630
+ obj.expectedWorkingDigest = message.expected_working_digest;
9631
+ }
9632
+ return obj;
9633
+ },
9634
+ create(base) {
9635
+ return RestoreAction.fromPartial(base ?? {});
9636
+ },
9637
+ fromPartial(object) {
9638
+ const message = createBaseRestoreAction();
9639
+ message.bundle = object.bundle !== void 0 && object.bundle !== null ? Bundle.fromPartial(object.bundle) : void 0;
9640
+ message.captured_working_digest = object.captured_working_digest ?? "";
9641
+ message.captured_saved_digest = object.captured_saved_digest ?? "";
9642
+ message.captured_tree_hash = object.captured_tree_hash ?? "";
9643
+ message.expected_working_digest = object.expected_working_digest ?? "";
9644
+ return message;
9645
+ }
9646
+ };
9469
9647
  function createBasePlaceModuleAction() {
9470
9648
  return { author: "", name: "", version: "" };
9471
9649
  }
@@ -9574,7 +9752,9 @@ function createBaseAction() {
9574
9752
  set_blocks: void 0,
9575
9753
  set_directives: void 0,
9576
9754
  set_meta_arguments: void 0,
9577
- add_resource: void 0
9755
+ add_resource: void 0,
9756
+ discard: void 0,
9757
+ restore: void 0
9578
9758
  };
9579
9759
  }
9580
9760
  var Action = {
@@ -9651,6 +9831,12 @@ var Action = {
9651
9831
  if (message.add_resource !== void 0) {
9652
9832
  AddResourceAction.encode(message.add_resource, writer.uint32(226).fork()).join();
9653
9833
  }
9834
+ if (message.discard !== void 0) {
9835
+ DiscardAction.encode(message.discard, writer.uint32(234).fork()).join();
9836
+ }
9837
+ if (message.restore !== void 0) {
9838
+ RestoreAction.encode(message.restore, writer.uint32(242).fork()).join();
9839
+ }
9654
9840
  return writer;
9655
9841
  },
9656
9842
  decode(input, length) {
@@ -9828,6 +10014,20 @@ var Action = {
9828
10014
  message.add_resource = AddResourceAction.decode(reader, reader.uint32());
9829
10015
  continue;
9830
10016
  }
10017
+ case 29: {
10018
+ if (tag !== 234) {
10019
+ break;
10020
+ }
10021
+ message.discard = DiscardAction.decode(reader, reader.uint32());
10022
+ continue;
10023
+ }
10024
+ case 30: {
10025
+ if (tag !== 242) {
10026
+ break;
10027
+ }
10028
+ message.restore = RestoreAction.decode(reader, reader.uint32());
10029
+ continue;
10030
+ }
9831
10031
  }
9832
10032
  if ((tag & 7) === 4 || tag === 0) {
9833
10033
  break;
@@ -9861,7 +10061,9 @@ var Action = {
9861
10061
  set_blocks: isSet3(object.setBlocks) ? SetBlocksAction.fromJSON(object.setBlocks) : isSet3(object.set_blocks) ? SetBlocksAction.fromJSON(object.set_blocks) : void 0,
9862
10062
  set_directives: isSet3(object.setDirectives) ? SetDirectivesAction.fromJSON(object.setDirectives) : isSet3(object.set_directives) ? SetDirectivesAction.fromJSON(object.set_directives) : void 0,
9863
10063
  set_meta_arguments: isSet3(object.setMetaArguments) ? SetMetaArgumentsAction.fromJSON(object.setMetaArguments) : isSet3(object.set_meta_arguments) ? SetMetaArgumentsAction.fromJSON(object.set_meta_arguments) : void 0,
9864
- add_resource: isSet3(object.addResource) ? AddResourceAction.fromJSON(object.addResource) : isSet3(object.add_resource) ? AddResourceAction.fromJSON(object.add_resource) : void 0
10064
+ add_resource: isSet3(object.addResource) ? AddResourceAction.fromJSON(object.addResource) : isSet3(object.add_resource) ? AddResourceAction.fromJSON(object.add_resource) : void 0,
10065
+ discard: isSet3(object.discard) ? DiscardAction.fromJSON(object.discard) : void 0,
10066
+ restore: isSet3(object.restore) ? RestoreAction.fromJSON(object.restore) : void 0
9865
10067
  };
9866
10068
  },
9867
10069
  toJSON(message) {
@@ -9938,6 +10140,12 @@ var Action = {
9938
10140
  if (message.add_resource !== void 0) {
9939
10141
  obj.addResource = AddResourceAction.toJSON(message.add_resource);
9940
10142
  }
10143
+ if (message.discard !== void 0) {
10144
+ obj.discard = DiscardAction.toJSON(message.discard);
10145
+ }
10146
+ if (message.restore !== void 0) {
10147
+ obj.restore = RestoreAction.toJSON(message.restore);
10148
+ }
9941
10149
  return obj;
9942
10150
  },
9943
10151
  create(base) {
@@ -9969,6 +10177,8 @@ var Action = {
9969
10177
  message.set_directives = object.set_directives !== void 0 && object.set_directives !== null ? SetDirectivesAction.fromPartial(object.set_directives) : void 0;
9970
10178
  message.set_meta_arguments = object.set_meta_arguments !== void 0 && object.set_meta_arguments !== null ? SetMetaArgumentsAction.fromPartial(object.set_meta_arguments) : void 0;
9971
10179
  message.add_resource = object.add_resource !== void 0 && object.add_resource !== null ? AddResourceAction.fromPartial(object.add_resource) : void 0;
10180
+ message.discard = object.discard !== void 0 && object.discard !== null ? DiscardAction.fromPartial(object.discard) : void 0;
10181
+ message.restore = object.restore !== void 0 && object.restore !== null ? RestoreAction.fromPartial(object.restore) : void 0;
9972
10182
  return message;
9973
10183
  }
9974
10184
  };
@@ -11383,7 +11593,9 @@ function createBaseBundleState() {
11383
11593
  source_refused: false,
11384
11594
  tree_hash: "",
11385
11595
  revision: 0,
11386
- generating: false
11596
+ generating: false,
11597
+ working_digest: "",
11598
+ saved_digest: ""
11387
11599
  };
11388
11600
  }
11389
11601
  var BundleState = {
@@ -11421,6 +11633,12 @@ var BundleState = {
11421
11633
  if (message.generating !== false) {
11422
11634
  writer.uint32(96).bool(message.generating);
11423
11635
  }
11636
+ if (message.working_digest !== "") {
11637
+ writer.uint32(106).string(message.working_digest);
11638
+ }
11639
+ if (message.saved_digest !== "") {
11640
+ writer.uint32(114).string(message.saved_digest);
11641
+ }
11424
11642
  return writer;
11425
11643
  },
11426
11644
  decode(input, length) {
@@ -11507,6 +11725,20 @@ var BundleState = {
11507
11725
  message.generating = reader.bool();
11508
11726
  continue;
11509
11727
  }
11728
+ case 13: {
11729
+ if (tag !== 106) {
11730
+ break;
11731
+ }
11732
+ message.working_digest = reader.string();
11733
+ continue;
11734
+ }
11735
+ case 14: {
11736
+ if (tag !== 114) {
11737
+ break;
11738
+ }
11739
+ message.saved_digest = reader.string();
11740
+ continue;
11741
+ }
11510
11742
  }
11511
11743
  if ((tag & 7) === 4 || tag === 0) {
11512
11744
  break;
@@ -11527,7 +11759,9 @@ var BundleState = {
11527
11759
  source_refused: isSet3(object.sourceRefused) ? globalThis.Boolean(object.sourceRefused) : isSet3(object.source_refused) ? globalThis.Boolean(object.source_refused) : false,
11528
11760
  tree_hash: isSet3(object.treeHash) ? globalThis.String(object.treeHash) : isSet3(object.tree_hash) ? globalThis.String(object.tree_hash) : "",
11529
11761
  revision: isSet3(object.revision) ? globalThis.Number(object.revision) : 0,
11530
- generating: isSet3(object.generating) ? globalThis.Boolean(object.generating) : false
11762
+ generating: isSet3(object.generating) ? globalThis.Boolean(object.generating) : false,
11763
+ working_digest: isSet3(object.workingDigest) ? globalThis.String(object.workingDigest) : isSet3(object.working_digest) ? globalThis.String(object.working_digest) : "",
11764
+ saved_digest: isSet3(object.savedDigest) ? globalThis.String(object.savedDigest) : isSet3(object.saved_digest) ? globalThis.String(object.saved_digest) : ""
11531
11765
  };
11532
11766
  },
11533
11767
  toJSON(message) {
@@ -11565,6 +11799,12 @@ var BundleState = {
11565
11799
  if (message.generating !== false) {
11566
11800
  obj.generating = message.generating;
11567
11801
  }
11802
+ if (message.working_digest !== "") {
11803
+ obj.workingDigest = message.working_digest;
11804
+ }
11805
+ if (message.saved_digest !== "") {
11806
+ obj.savedDigest = message.saved_digest;
11807
+ }
11568
11808
  return obj;
11569
11809
  },
11570
11810
  create(base) {
@@ -11583,6 +11823,8 @@ var BundleState = {
11583
11823
  message.tree_hash = object.tree_hash ?? "";
11584
11824
  message.revision = object.revision ?? 0;
11585
11825
  message.generating = object.generating ?? false;
11826
+ message.working_digest = object.working_digest ?? "";
11827
+ message.saved_digest = object.saved_digest ?? "";
11586
11828
  return message;
11587
11829
  }
11588
11830
  };
@@ -13974,12 +14216,7 @@ function CompositeEditor({
13974
14216
  const selectedEdgeIds = (0, import_react25.useMemo)(() => new Set(selection.edges), [selection.edges]);
13975
14217
  const [rfEdges, setRfEdges] = (0, import_react25.useState)(rfEdgesFromView);
13976
14218
  (0, import_react25.useEffect)(() => {
13977
- setRfEdges((prev) => {
13978
- const held = new Set(prev.filter((e) => e.selected).map((e) => e.id));
13979
- return rfEdgesFromView.map(
13980
- (e) => held.has(e.id) || selectedEdgeIds.has(e.id) ? { ...e, selected: true } : e
13981
- );
13982
- });
14219
+ setRfEdges(rfEdgesFromView.map((e) => ({ ...e, selected: selectedEdgeIds.has(e.id) })));
13983
14220
  }, [rfEdgesFromView, selectedEdgeIds]);
13984
14221
  const onEdgesChange = (0, import_react25.useCallback)(
13985
14222
  (changes) => {
@@ -14663,6 +14900,47 @@ var COMMANDS = {
14663
14900
  "hidden": false,
14664
14901
  "yes": false
14665
14902
  },
14903
+ "events list": {
14904
+ "path": "events list",
14905
+ "positionals": [],
14906
+ "flags": {
14907
+ "cursor": {
14908
+ "type": "string"
14909
+ },
14910
+ "limit": {
14911
+ "type": "int"
14912
+ },
14913
+ "org": {
14914
+ "type": "string"
14915
+ },
14916
+ "output": {
14917
+ "type": "string",
14918
+ "values": [
14919
+ "table",
14920
+ "json"
14921
+ ],
14922
+ "short": "o"
14923
+ },
14924
+ "since": {
14925
+ "type": "string"
14926
+ },
14927
+ "subjectId": {
14928
+ "type": "string"
14929
+ },
14930
+ "subjectKind": {
14931
+ "type": "string"
14932
+ },
14933
+ "type": {
14934
+ "type": "string"
14935
+ },
14936
+ "until": {
14937
+ "type": "string"
14938
+ }
14939
+ },
14940
+ "effect": "read",
14941
+ "hidden": false,
14942
+ "yes": false
14943
+ },
14666
14944
  "hooks install": {
14667
14945
  "path": "hooks install",
14668
14946
  "positionals": [],
@@ -16356,15 +16634,29 @@ var planSummarySchema = import_zod.z.object({
16356
16634
  resourceChange: import_zod.z.number(),
16357
16635
  resourceDestroy: import_zod.z.number()
16358
16636
  });
16359
- var previewAdvisorySchema = import_zod.z.object({
16360
- id: import_zod.z.string(),
16361
- manifestation: import_zod.z.string(),
16362
- emittedByInstallId: import_zod.z.string(),
16363
- emittedByDisplayName: import_zod.z.string(),
16364
- confidenceScore: import_zod.z.number(),
16365
- producedAt: import_zod.z.string(),
16366
- outputJson: import_zod.z.unknown()
16367
- });
16637
+ var previewAdvisorySchema = reads()(
16638
+ import_zod.z.object({
16639
+ id: import_zod.z.string(),
16640
+ orgId: import_zod.z.string(),
16641
+ contextRunId: import_zod.z.string().nullable(),
16642
+ contextInstallId: import_zod.z.string().nullable(),
16643
+ contextStackId: import_zod.z.string().nullable(),
16644
+ contextTreeHash: import_zod.z.string().nullable(),
16645
+ actedOn: import_zod.z.string().nullable(),
16646
+ actedAt: import_zod.z.string().nullable(),
16647
+ actedByUserId: import_zod.z.string().nullable(),
16648
+ feedbackThumbs: import_zod.z.string().nullable(),
16649
+ feedbackText: import_zod.z.string().nullable(),
16650
+ emitterKind: import_zod.z.string(),
16651
+ emitterHeededRate: import_zod.z.number(),
16652
+ manifestation: import_zod.z.string(),
16653
+ emittedByInstallId: import_zod.z.string(),
16654
+ emittedByDisplayName: import_zod.z.string(),
16655
+ confidenceScore: import_zod.z.number(),
16656
+ producedAt: import_zod.z.string(),
16657
+ outputJson: import_zod.z.unknown()
16658
+ })
16659
+ );
16368
16660
  var previewEntrySchema = import_zod.z.discriminatedUnion("kind", [
16369
16661
  import_zod.z.object({
16370
16662
  kind: import_zod.z.literal("consensus"),
@@ -18920,6 +19212,15 @@ function resourceActions(scope, before, after) {
18920
19212
  set_depends_on: { scope, instance_id: before.id, depends_on: after.depends_on }
18921
19213
  });
18922
19214
  }
19215
+ if (before.name !== after.name) {
19216
+ actions.push({
19217
+ rename_instance: {
19218
+ scope,
19219
+ old_id: before.id,
19220
+ new_id: `${before.kind}.${before.type}.${after.name}`
19221
+ }
19222
+ });
19223
+ }
18923
19224
  return actions;
18924
19225
  }
18925
19226
 
@@ -19244,6 +19545,17 @@ function ResourceCard({
19244
19545
  }
19245
19546
  )
19246
19547
  ] }),
19548
+ editable && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
19549
+ import_ui16.Input,
19550
+ {
19551
+ label: "Name",
19552
+ "aria-label": `Name of ${resource.type}.${resource.name}`,
19553
+ value: draft.name,
19554
+ onChange: (e) => set("name", e.target.value),
19555
+ fullWidth: true,
19556
+ mono: true
19557
+ }
19558
+ ) }),
19247
19559
  metaArguments.map(
19248
19560
  ({ field, placeholder }) => draft[field] || editable ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
19249
19561
  import_ui16.Input,
@@ -19342,7 +19654,7 @@ function ResourceCard({
19342
19654
  {
19343
19655
  draft: card,
19344
19656
  label: "Update resource",
19345
- blocked: argumentsBlocker(draft.arguments)
19657
+ blocked: !draft.name.trim() ? "Enter a name" : argumentsBlocker(draft.arguments)
19346
19658
  }
19347
19659
  )
19348
19660
  ] });
@@ -20945,6 +21257,8 @@ function snapshotSource(input) {
20945
21257
  canUndo: false,
20946
21258
  canRedo: false,
20947
21259
  unsaved: false,
21260
+ workingDigest: "",
21261
+ savedDigest: "",
20948
21262
  ungenerated: false,
20949
21263
  conflict: null,
20950
21264
  sourceRefused: false,
@@ -21393,6 +21707,8 @@ async function openEngineSession(caller, target, options = {}) {
21393
21707
  canUndo: state.can_undo,
21394
21708
  canRedo: state.can_redo,
21395
21709
  unsaved: state.unsaved,
21710
+ workingDigest: state.working_digest,
21711
+ savedDigest: state.saved_digest,
21396
21712
  ungenerated: state.ungenerated,
21397
21713
  conflict: state.conflict ? { baseTreeHash: state.conflict.base_tree_hash, treeHash: state.conflict.tree_hash } : null,
21398
21714
  sourceRefused: state.source_refused,