@lace-cloud/host 0.37.0 → 0.38.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MessageBridge } from '@lace-cloud/proto';
1
+ import { MessageBridge, Bundle, Reason } from '@lace-cloud/proto';
2
2
  export { Diagnostic, EngineIdentityMismatchError } from '@lace-cloud/proto';
3
3
  import * as grpc from '@grpc/grpc-js';
4
4
  import { Metadata, ServiceError, Client, ClientUnaryCall, CallOptions, ClientReadableStream, ChannelCredentials, ClientOptions } from '@grpc/grpc-js';
@@ -226,24 +226,24 @@ interface Any {
226
226
  /** Must be a valid serialized protocol buffer of the above specified type. */
227
227
  value: Buffer;
228
228
  }
229
- declare const Any: MessageFns$4<Any>;
230
- type Builtin$4 = Date | Function | Uint8Array | string | number | boolean | undefined;
231
- type DeepPartial$4<T> = T extends Builtin$4 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$4<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$4<U>> : T extends {} ? {
232
- [K in keyof T]?: DeepPartial$4<T[K]>;
229
+ declare const Any: MessageFns$3<Any>;
230
+ type Builtin$3 = Date | Function | Uint8Array | string | number | boolean | undefined;
231
+ type DeepPartial$3<T> = T extends Builtin$3 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$3<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$3<U>> : T extends {} ? {
232
+ [K in keyof T]?: DeepPartial$3<T[K]>;
233
233
  } : Partial<T>;
234
- type KeysOfUnion$4<T> = T extends T ? keyof T : never;
235
- type Exact$4<P, I extends P> = P extends Builtin$4 ? P : P & {
236
- [K in keyof P]: Exact$4<P[K], I[K]>;
234
+ type KeysOfUnion$3<T> = T extends T ? keyof T : never;
235
+ type Exact$3<P, I extends P> = P extends Builtin$3 ? P : P & {
236
+ [K in keyof P]: Exact$3<P[K], I[K]>;
237
237
  } & {
238
- [K in Exclude<keyof I, KeysOfUnion$4<P>>]: never;
238
+ [K in Exclude<keyof I, KeysOfUnion$3<P>>]: never;
239
239
  };
240
- interface MessageFns$4<T> {
240
+ interface MessageFns$3<T> {
241
241
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
242
242
  decode(input: BinaryReader | Uint8Array, length?: number): T;
243
243
  fromJSON(object: any): T;
244
244
  toJSON(message: T): unknown;
245
- create<I extends Exact$4<DeepPartial$4<T>, I>>(base?: I): T;
246
- fromPartial<I extends Exact$4<DeepPartial$4<T>, I>>(object: I): T;
245
+ create<I extends Exact$3<DeepPartial$3<T>, I>>(base?: I): T;
246
+ fromPartial<I extends Exact$3<DeepPartial$3<T>, I>>(object: I): T;
247
247
  }
248
248
 
249
249
  /**
@@ -274,38 +274,7 @@ interface Status {
274
274
  */
275
275
  details: Any[];
276
276
  }
277
- declare const Status: MessageFns$3<Status>;
278
- type Builtin$3 = Date | Function | Uint8Array | string | number | boolean | undefined;
279
- type DeepPartial$3<T> = T extends Builtin$3 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$3<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$3<U>> : T extends {} ? {
280
- [K in keyof T]?: DeepPartial$3<T[K]>;
281
- } : Partial<T>;
282
- type KeysOfUnion$3<T> = T extends T ? keyof T : never;
283
- type Exact$3<P, I extends P> = P extends Builtin$3 ? P : P & {
284
- [K in keyof P]: Exact$3<P[K], I[K]>;
285
- } & {
286
- [K in Exclude<keyof I, KeysOfUnion$3<P>>]: never;
287
- };
288
- interface MessageFns$3<T> {
289
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
290
- decode(input: BinaryReader | Uint8Array, length?: number): T;
291
- fromJSON(object: any): T;
292
- toJSON(message: T): unknown;
293
- create<I extends Exact$3<DeepPartial$3<T>, I>>(base?: I): T;
294
- fromPartial<I extends Exact$3<DeepPartial$3<T>, I>>(object: I): T;
295
- }
296
-
297
- /**
298
- * A generic empty message that you can re-use to avoid defining duplicated
299
- * empty messages in your APIs. A typical example is to use it as the request
300
- * or the response type of an API method. For instance:
301
- *
302
- * service Foo {
303
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
304
- * }
305
- */
306
- interface Empty {
307
- }
308
- declare const Empty: MessageFns$2<Empty>;
277
+ declare const Status: MessageFns$2<Status>;
309
278
  type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
310
279
  type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {} ? {
311
280
  [K in keyof T]?: DeepPartial$2<T[K]>;
@@ -326,354 +295,17 @@ interface MessageFns$2<T> {
326
295
  }
327
296
 
328
297
  /**
329
- * Reason is the one vocabulary of what a failure asks of the developer.
330
- * The engine attaches it to a refused RPC as a `ReasonDetail` in the
331
- * status' error details, and a command's failure document names it; a
332
- * client branches on it, never on the message's text. A failure the API
333
- * decided carries the API's own code (`ReasonDetail.api_code`), and a
334
- * reason only where that code has one: every code that asks the developer
335
- * to sign in again is `REASON_UNAUTHENTICATED`.
298
+ * A generic empty message that you can re-use to avoid defining duplicated
299
+ * empty messages in your APIs. A typical example is to use it as the request
300
+ * or the response type of an API method. For instance:
336
301
  *
337
- * The vocabulary is a file of its own, in the engine's package, generated
338
- * into a Go package of its own (internal/kernel/reason/pb): every CLI package
339
- * that refuses with a reason names it from there, the execution side's
340
- * included, without linking the engine's wire. service.proto imports it.
341
- */
342
- declare enum Reason {
343
- REASON_UNSPECIFIED = 0,
344
- /**
345
- * REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
346
- * module convert and module import: lacification cannot take the tree to
347
- * lace shape; the report names each managed resource and the IR gap holding it.
348
- */
349
- REASON_NOT_LACE_FORM = 1,
350
- /** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
351
- REASON_HASH_MISMATCH = 2,
352
- /** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
353
- REASON_REGISTRY_UNAVAILABLE = 3,
354
- /** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
355
- REASON_ROOT_LOCKED = 4,
356
- /** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
357
- REASON_UNSAVED = 5,
358
- /** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
359
- REASON_CONFLICT = 6,
360
- /**
361
- * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
362
- * (`BundleState.source_refused`).
363
- * module convert and module import: the tree's tf does not parse, has a
364
- * non-empty residual report, or its Bundle fails its own validation.
365
- * module validate, stack apply / stack destroy / registry register: a
366
- * source the command reads does not parse; apply, destroy and register
367
- * check it before the certification.
368
- */
369
- REASON_SOURCE_REFUSED = 7,
370
- /**
371
- * REASON_NOT_GIT_REPOSITORY - Generate, module convert, module import and module fmt: the authoring
372
- * root is not inside a git working tree.
373
- * stack create --source: the directory is not inside a git working tree,
374
- * so it has no place in a repository to bind the stack to.
375
- */
376
- REASON_NOT_GIT_REPOSITORY = 8,
377
- /** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
378
- REASON_GENERATE_IN_PROGRESS = 9,
379
- /** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
380
- REASON_NO_ORGANIZATION = 10,
381
- /** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
382
- REASON_NO_TEAM = 11,
383
- /**
384
- * REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
385
- * certification.
386
- */
387
- REASON_NO_CERTIFICATION = 12,
388
- /**
389
- * REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
390
- * does not certify the tree on disk — the tree changed since validate,
391
- * another lace version wrote it, or its files are torn or mixed from two
392
- * validates. Running validate again replaces it.
393
- */
394
- REASON_STALE_CERTIFICATION = 13,
395
- /**
396
- * REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
397
- * convert / module import / stack preview / stack apply / stack destroy:
398
- * the tool the command runs (tfsec, terraform-docs, the pinned terraform)
399
- * is not available. convert and module import run the pinned terraform
400
- * through the validate each closes on, apply and destroy through their
401
- * local plan.
402
- */
403
- REASON_TOOL_MISSING = 14,
404
- /**
405
- * REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
406
- * modules crosses a group's boundary, which no single-scope edit makes.
407
- * It is a refusal of the batch's content, carried on its GraphError.
408
- * ReadWiringCandidates: a read whose two scopes differ, refused
409
- * (FailedPrecondition) as such a wire is.
410
- */
411
- REASON_CROSS_SCOPE = 15,
412
- /**
413
- * REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
414
- * credentials finds none (no `lace login`, no LACE_TOKEN), decided
415
- * before any request; or the API refuses the ones sent with its code
416
- * `unauthenticated`, which `ReasonDetail.api_code` then names.
417
- */
418
- REASON_UNAUTHENTICATED = 16,
419
- /**
420
- * REASON_IMPORT_RESIDUAL - module import: a resource in the statefile has no import id the CLI
421
- * derives. The failure names each in `importResiduals`; --allow-partial
422
- * writes the import without them. Nothing was written.
423
- */
424
- REASON_IMPORT_RESIDUAL = 17,
425
- /**
426
- * REASON_STACK_HAS_STATE - module import: the stack's state already holds resources, and import
427
- * adopts into an empty stack. Nothing was read or written.
428
- */
429
- REASON_STACK_HAS_STATE = 18,
430
- /**
431
- * REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
432
- * remote, whose URL is the repository a stack's source binding names.
433
- */
434
- REASON_NO_ORIGIN_REMOTE = 19,
435
- /**
436
- * REASON_IMPORT_UNDECLARED - module import: the statefile holds resources the converted tree does not
437
- * declare, named in the failure's `addresses`; an import block adopts
438
- * only a resource the tree declares. Nothing was written.
439
- */
440
- REASON_IMPORT_UNDECLARED = 20,
441
- /**
442
- * REASON_ALREADY_IMPORTED - module import: the tree already imports resources the statefile holds,
443
- * named in the failure's `addresses`; terraform refuses two imports of
444
- * one address. Nothing was written.
445
- */
446
- REASON_ALREADY_IMPORTED = 21,
447
- /**
448
- * REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
449
- * `.terraform.lock.hcl`; `lace module lock` writes it.
450
- */
451
- REASON_NO_LOCKFILE = 22,
452
- /** REASON_NO_COMMIT - stack create --source: the directory's repository has no commit yet. */
453
- REASON_NO_COMMIT = 23,
454
- UNRECOGNIZED = -1
455
- }
456
-
457
- interface Bundle {
458
- /**
459
- * The format of this encoding: "2.0", at which every Expression carries
460
- * the module references the engine read from it. The engine writes every
461
- * Bundle at it; an encoding of an earlier version carries none.
462
- */
463
- schema_version: string;
464
- kind: string;
465
- entry: string;
466
- modules: {
467
- [key: string]: Module;
468
- };
469
- }
470
- declare const Bundle: MessageFns$1<Bundle>;
471
- interface Module {
472
- id: string;
473
- version: string;
474
- source: Source | undefined;
475
- interface: Interface | undefined;
476
- modules: Use[];
477
- resources: Resource[];
478
- locals: Local[];
479
- exports: Exports | undefined;
480
- terraform: TerraformBlock | undefined;
481
- providers: ProviderConfig[];
482
- /** top-level directives: moved {}, import {} */
483
- top_level_blocks: Block[];
484
- }
485
- declare const Module: MessageFns$1<Module>;
486
- interface Interface {
487
- inputs: InputDef$1[];
488
- outputs: OutputDef$1[];
489
- }
490
- declare const Interface: MessageFns$1<Interface>;
491
- interface InputDef$1 {
492
- name: string;
493
- /**
494
- * The type constraint the variable's type line spells, as written; empty
495
- * for a variable with no type line. `any` is a type line of its own.
496
- */
497
- type: string;
498
- required: boolean;
499
- description: string;
500
- default_value: any | undefined;
501
- validation: ValidationBlock$1[];
502
- sensitive: boolean;
503
- /** unset = default (true); explicit false is meaningful */
504
- nullable?: boolean | undefined;
505
- /** unset = default (false); explicit true is meaningful */
506
- ephemeral?: boolean | undefined;
507
- }
508
- declare const InputDef$1: MessageFns$1<InputDef$1>;
509
- interface ValidationBlock$1 {
510
- condition: string;
511
- error_message: string;
512
- }
513
- declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
514
- interface OutputDef$1 {
515
- name: string;
516
- /**
517
- * The type of the child output the output's export reads; empty when
518
- * nothing types it. An output block declares no type.
519
- */
520
- type: string;
521
- description: string;
522
- sensitive: boolean;
523
- depends_on: string[];
524
- }
525
- declare const OutputDef$1: MessageFns$1<OutputDef$1>;
526
- interface Source {
527
- kind: string;
528
- repo: string;
529
- subdir: string;
530
- ref: string;
531
- }
532
- declare const Source: MessageFns$1<Source>;
533
- interface Local {
534
- name: string;
535
- value: Binding | undefined;
536
- }
537
- declare const Local: MessageFns$1<Local>;
538
- interface Use {
539
- id: string;
540
- module: string;
541
- inputs: {
542
- [key: string]: Binding;
543
- };
544
- depends_on: string[];
545
- /** count meta-argument */
546
- count: Binding | undefined;
547
- /** for_each meta-argument */
548
- for_each: Binding | undefined;
549
- /**
550
- * A module call's `providers = {}` map (child-local name → root ref).
551
- * Each entry targets the child's default provider slot for that name;
552
- * this map has no way to target an aliased child slot.
553
- */
554
- providers: {
555
- [key: string]: string;
556
- };
557
- }
558
- declare const Use: MessageFns$1<Use>;
559
- interface Resource {
560
- id: string;
561
- kind: string;
562
- type: string;
563
- inputs: {
564
- [key: string]: Binding;
565
- };
566
- depends_on: string[];
567
- /** nested blocks (ingress, lifecycle, dynamic, …) */
568
- blocks: Block[];
569
- /** count meta-argument */
570
- count: Binding | undefined;
571
- /** for_each meta-argument */
572
- for_each: Binding | undefined;
573
- /** provider meta-argument, e.g. "aws.west" */
574
- provider_ref: string;
575
- }
576
- declare const Resource: MessageFns$1<Resource>;
577
- /**
578
- * Block is a recursive nested block (within a resource, or top-level moved/
579
- * import). Attributes are ordered (declaration order) so regenerated HCL is
580
- * byte-deterministic.
581
- */
582
- interface Block {
583
- type: string;
584
- labels: string[];
585
- attributes: NamedBinding[];
586
- blocks: Block[];
587
- }
588
- declare const Block: MessageFns$1<Block>;
589
- /** NamedBinding is an ordered (name, value) attribute within a Block. */
590
- interface NamedBinding {
591
- name: string;
592
- value: Binding | undefined;
593
- }
594
- declare const NamedBinding: MessageFns$1<NamedBinding>;
595
- interface Exports {
596
- outputs: {
597
- [key: string]: OutputExport;
598
- };
599
- }
600
- declare const Exports: MessageFns$1<Exports>;
601
- interface OutputExport {
602
- out: OutputRef | undefined;
603
- lit: any | undefined;
604
- var: string;
605
- expr: Expression | undefined;
606
- }
607
- declare const OutputExport: MessageFns$1<OutputExport>;
608
- interface Binding {
609
- lit?: any | undefined;
610
- var?: string | undefined;
611
- out?: OutputRef | undefined;
612
- expr?: Expression | undefined;
613
- }
614
- declare const Binding: MessageFns$1<Binding>;
615
- interface OutputRef {
616
- module: string;
617
- name: string;
618
- }
619
- declare const OutputRef: MessageFns$1<OutputRef>;
620
- interface Expression {
621
- lang: string;
622
- value: string;
623
- /**
624
- * The module calls `value` reads, in source order: what the engine's
625
- * one reader of references reads from the parse of `value`. The engine
626
- * fills them each time it encodes an Expression and reads none back, so
627
- * a consumer takes a reference from here and never from `value`.
628
- */
629
- module_references: ModuleReference[];
630
- }
631
- declare const Expression: MessageFns$1<Expression>;
632
- /** ModuleReference is one module.<call> an expression reads. */
633
- interface ModuleReference {
634
- /** The call read: module.<call>. */
635
- call: string;
636
- /**
637
- * The output read off the call: the first attribute after the call and
638
- * any instance key in the text, module.<call>.<output> or
639
- * module.<call>[0].<output>. Unset when the reference reads the whole
640
- * call: module.<call> alone, through a splat, or by a key an expression
641
- * computes.
642
- */
643
- output?: string | undefined;
644
- /** An instance key follows the call: [0], ["k"] or [<expression>]. */
645
- instance_key: boolean;
646
- /** A splat follows the call or its instance key: [*] or .*. */
647
- splat: boolean;
648
- }
649
- declare const ModuleReference: MessageFns$1<ModuleReference>;
650
- /**
651
- * A module's terraform block as the IR holds it. It holds no backend: Lace
652
- * manages state, and a backend block is a fact about the files.
302
+ * service Foo {
303
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
304
+ * }
653
305
  */
654
- interface TerraformBlock {
655
- required_version: string;
656
- required_providers: {
657
- [key: string]: ProviderRequirement;
658
- };
659
- }
660
- declare const TerraformBlock: MessageFns$1<TerraformBlock>;
661
- interface ProviderRequirement {
662
- source: string;
663
- version: string;
664
- configuration_aliases: string[];
665
- }
666
- declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
667
- interface ProviderConfig {
668
- name: string;
669
- alias: string;
670
- config: {
671
- [key: string]: Binding;
672
- };
673
- /** nested config blocks (default_tags, assume_role, …) */
674
- blocks: Block[];
306
+ interface Empty {
675
307
  }
676
- declare const ProviderConfig: MessageFns$1<ProviderConfig>;
308
+ declare const Empty: MessageFns$1<Empty>;
677
309
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
678
310
  type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {} ? {
679
311
  [K in keyof T]?: DeepPartial$1<T[K]>;
@@ -1118,6 +750,44 @@ declare const UndoAction: MessageFns<UndoAction>;
1118
750
  interface RedoAction {
1119
751
  }
1120
752
  declare const RedoAction: MessageFns<RedoAction>;
753
+ /**
754
+ * DiscardAction returns the session's working IR to its saved IR (the
755
+ * record `state.lace` holds), a working-IR action: it never saves, writes
756
+ * `state.lace` or the tf, and leaves an open conflict open. The old working
757
+ * IR becomes an undo entry (an Undo brings the discarded edits back) and the
758
+ * redo history is cleared. `expected_working_digest` is required: the
759
+ * `BundleState.working_digest` of the state the caller showed the developer.
760
+ * The engine refuses (FailedPrecondition, `REASON_STALE_WORKING_STATE`) when
761
+ * the working IR's digest differs, so an edit another holder made since is
762
+ * never discarded unseen. A session with nothing unsaved changes nothing:
763
+ * no frame and no undo entry. Refused while the session is source-refused
764
+ * (`REASON_SOURCE_REFUSED`) and for an ephemeral session, which has no saved
765
+ * IR. Like Undo and Redo it is the only action of its batch.
766
+ */
767
+ interface DiscardAction {
768
+ expected_working_digest: string;
769
+ }
770
+ declare const DiscardAction: MessageFns<DiscardAction>;
771
+ /**
772
+ * RestoreAction restores a host's captured working IR into a root session.
773
+ * The bundle, its working digest, saved digest and tree hash must come from
774
+ * the same BundleState frame; every field is required. The engine verifies
775
+ * the bundle's digest and refuses if the current session is not clean, is
776
+ * source-refused, or its saved IR or tree differs from the capture. An open
777
+ * conflict blocks only generate, so it does not refuse a restore. It also compares expected_working_digest with the current frame,
778
+ * so another holder's edits are never overwritten unseen. A refusal changes
779
+ * nothing; the host retains the capture for the developer to choose what to
780
+ * do with it. A successful restore is undoable and writes neither state.lace
781
+ * nor source tf. Like Discard it must be the only action in its batch.
782
+ */
783
+ interface RestoreAction {
784
+ bundle: Bundle | undefined;
785
+ captured_working_digest: string;
786
+ captured_saved_digest: string;
787
+ captured_tree_hash: string;
788
+ expected_working_digest: string;
789
+ }
790
+ declare const RestoreAction: MessageFns<RestoreAction>;
1121
791
  /**
1122
792
  * PlaceModuleAction drops a registry module onto the canvas. Distinct from
1123
793
  * Connect/UpdateInput/etc. in that it names a *source* module (registry
@@ -1158,6 +828,8 @@ interface Action {
1158
828
  set_directives?: SetDirectivesAction | undefined;
1159
829
  set_meta_arguments?: SetMetaArgumentsAction | undefined;
1160
830
  add_resource?: AddResourceAction | undefined;
831
+ discard?: DiscardAction | undefined;
832
+ restore?: RestoreAction | undefined;
1161
833
  }
1162
834
  declare const Action: MessageFns<Action>;
1163
835
  interface ApplyActionRequest {
@@ -1382,7 +1054,12 @@ interface BundleState {
1382
1054
  bundle: Bundle | undefined;
1383
1055
  can_undo: boolean;
1384
1056
  can_redo: boolean;
1385
- /** True when the working IR differs from the saved IR in `state.lace`. */
1057
+ /**
1058
+ * True when the working IR differs from the saved IR in `state.lace`. A host
1059
+ * that mirrors a document's dirty state marks it clean only from a frame
1060
+ * whose `unsaved` is false, never from the promise of a save or discard it
1061
+ * requested: edits, saves, undo and Generate from any holder move this flag.
1062
+ */
1386
1063
  unsaved: boolean;
1387
1064
  /**
1388
1065
  * The engine validator's findings for this state, in the validator's
@@ -1436,6 +1113,17 @@ interface BundleState {
1436
1113
  * window is refused (FailedPrecondition).
1437
1114
  */
1438
1115
  generating: boolean;
1116
+ /**
1117
+ * The content identity of the working IR (`encoding.Digest`): the
1118
+ * value a DiscardAction's `expected_working_digest` names. Empty while
1119
+ * there is no working IR.
1120
+ */
1121
+ working_digest: string;
1122
+ /**
1123
+ * The content identity of the saved IR (`encoding.Digest`), captured with
1124
+ * this frame's working IR for RestoreAction. Empty if unavailable.
1125
+ */
1126
+ saved_digest: string;
1439
1127
  }
1440
1128
  declare const BundleState: MessageFns<BundleState>;
1441
1129
  /**