@lace-cloud/host 0.22.0 → 0.24.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.mts CHANGED
@@ -588,6 +588,8 @@ declare enum Reason {
588
588
  /**
589
589
  * REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
590
590
  * root is not inside a git working tree.
591
+ * stack create --source: the directory is not inside a git working tree,
592
+ * so it has no place in a repository to bind the stack to.
591
593
  */
592
594
  REASON_NOT_GIT_REPOSITORY = 8,
593
595
  /** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
@@ -631,6 +633,34 @@ declare enum Reason {
631
633
  * `unauthenticated`, which `ReasonDetail.api_code` then names.
632
634
  */
633
635
  REASON_UNAUTHENTICATED = 16,
636
+ /**
637
+ * REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
638
+ * derives. The failure names each in `importResiduals`; --allow-partial
639
+ * writes the import without them. Nothing was written.
640
+ */
641
+ REASON_IMPORT_RESIDUAL = 17,
642
+ /**
643
+ * REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
644
+ * adopts into an empty stack. Nothing was read or written.
645
+ */
646
+ REASON_STACK_HAS_STATE = 18,
647
+ /**
648
+ * REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
649
+ * remote, whose URL is the repository a stack's source binding names.
650
+ */
651
+ REASON_NO_ORIGIN_REMOTE = 19,
652
+ /**
653
+ * REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
654
+ * declare, named in the failure's `addresses`; an import block adopts
655
+ * only a resource the tree declares. Nothing was written.
656
+ */
657
+ REASON_IMPORT_UNDECLARED = 20,
658
+ /**
659
+ * REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
660
+ * named in the failure's `addresses`; terraform refuses two imports of
661
+ * one address. Nothing was written.
662
+ */
663
+ REASON_ALREADY_IMPORTED = 21,
634
664
  UNRECOGNIZED = -1
635
665
  }
636
666
  declare enum ConflictChoice {
package/dist/index.d.ts CHANGED
@@ -588,6 +588,8 @@ declare enum Reason {
588
588
  /**
589
589
  * REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
590
590
  * root is not inside a git working tree.
591
+ * stack create --source: the directory is not inside a git working tree,
592
+ * so it has no place in a repository to bind the stack to.
591
593
  */
592
594
  REASON_NOT_GIT_REPOSITORY = 8,
593
595
  /** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
@@ -631,6 +633,34 @@ declare enum Reason {
631
633
  * `unauthenticated`, which `ReasonDetail.api_code` then names.
632
634
  */
633
635
  REASON_UNAUTHENTICATED = 16,
636
+ /**
637
+ * REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
638
+ * derives. The failure names each in `importResiduals`; --allow-partial
639
+ * writes the import without them. Nothing was written.
640
+ */
641
+ REASON_IMPORT_RESIDUAL = 17,
642
+ /**
643
+ * REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
644
+ * adopts into an empty stack. Nothing was read or written.
645
+ */
646
+ REASON_STACK_HAS_STATE = 18,
647
+ /**
648
+ * REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
649
+ * remote, whose URL is the repository a stack's source binding names.
650
+ */
651
+ REASON_NO_ORIGIN_REMOTE = 19,
652
+ /**
653
+ * REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
654
+ * declare, named in the failure's `addresses`; an import block adopts
655
+ * only a resource the tree declares. Nothing was written.
656
+ */
657
+ REASON_IMPORT_UNDECLARED = 20,
658
+ /**
659
+ * REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
660
+ * named in the failure's `addresses`; terraform refuses two imports of
661
+ * one address. Nothing was written.
662
+ */
663
+ REASON_ALREADY_IMPORTED = 21,
634
664
  UNRECOGNIZED = -1
635
665
  }
636
666
  declare enum ConflictChoice {
package/dist/index.mjs CHANGED
@@ -3417,6 +3417,21 @@ function reasonFromJSON(object) {
3417
3417
  case 16:
3418
3418
  case "REASON_UNAUTHENTICATED":
3419
3419
  return 16 /* REASON_UNAUTHENTICATED */;
3420
+ case 17:
3421
+ case "REASON_IMPORT_RESIDUAL":
3422
+ return 17 /* REASON_IMPORT_RESIDUAL */;
3423
+ case 18:
3424
+ case "REASON_STACK_HAS_STATE":
3425
+ return 18 /* REASON_STACK_HAS_STATE */;
3426
+ case 19:
3427
+ case "REASON_NO_ORIGIN_REMOTE":
3428
+ return 19 /* REASON_NO_ORIGIN_REMOTE */;
3429
+ case 20:
3430
+ case "REASON_IMPORT_UNDECLARED":
3431
+ return 20 /* REASON_IMPORT_UNDECLARED */;
3432
+ case 21:
3433
+ case "REASON_ALREADY_IMPORTED":
3434
+ return 21 /* REASON_ALREADY_IMPORTED */;
3420
3435
  case -1:
3421
3436
  case "UNRECOGNIZED":
3422
3437
  default:
@@ -3459,6 +3474,16 @@ function reasonToJSON(object) {
3459
3474
  return "REASON_CROSS_SCOPE";
3460
3475
  case 16 /* REASON_UNAUTHENTICATED */:
3461
3476
  return "REASON_UNAUTHENTICATED";
3477
+ case 17 /* REASON_IMPORT_RESIDUAL */:
3478
+ return "REASON_IMPORT_RESIDUAL";
3479
+ case 18 /* REASON_STACK_HAS_STATE */:
3480
+ return "REASON_STACK_HAS_STATE";
3481
+ case 19 /* REASON_NO_ORIGIN_REMOTE */:
3482
+ return "REASON_NO_ORIGIN_REMOTE";
3483
+ case 20 /* REASON_IMPORT_UNDECLARED */:
3484
+ return "REASON_IMPORT_UNDECLARED";
3485
+ case 21 /* REASON_ALREADY_IMPORTED */:
3486
+ return "REASON_ALREADY_IMPORTED";
3462
3487
  case -1 /* UNRECOGNIZED */:
3463
3488
  default:
3464
3489
  return "UNRECOGNIZED";