@sealant/mend 0.37.0-next.1403 → 0.37.0-next.1442

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.
Files changed (151) hide show
  1. package/dist/{chunk-G457OZFS.js → chunk-KDKKFY2Y.js} +721 -193
  2. package/dist/{dashboard-N7U2GC2B.js → dashboard-6A342K3S.js} +7 -15
  3. package/dist/main.js +4202 -481
  4. package/man/mend-access-keys-create.1 +1 -1
  5. package/man/mend-access-keys-list.1 +1 -1
  6. package/man/mend-access-keys-revoke.1 +1 -1
  7. package/man/mend-accounts.1 +1 -1
  8. package/man/mend-adopt.1 +1 -1
  9. package/man/mend-agent-install.1 +1 -1
  10. package/man/mend-agent-logins.1 +1 -1
  11. package/man/mend-attach.1 +1 -1
  12. package/man/mend-boat-check.1 +23 -0
  13. package/man/mend-boat-connect.1 +31 -0
  14. package/man/mend-boat-disconnect.1 +18 -0
  15. package/man/mend-boat-status.1 +22 -0
  16. package/man/mend-boat-wallet.1 +33 -0
  17. package/man/mend-change.1 +1 -1
  18. package/man/mend-codex.1 +1 -1
  19. package/man/mend-comment-add.1 +1 -1
  20. package/man/mend-comment-send.1 +1 -1
  21. package/man/mend-completions.1 +1 -1
  22. package/man/mend-connect-executor.1 +1 -1
  23. package/man/mend-connect-pi.1 +1 -1
  24. package/man/mend-connect-status.1 +1 -1
  25. package/man/mend-connect.1 +1 -1
  26. package/man/mend-continue.1 +1 -1
  27. package/man/mend-diff.1 +1 -1
  28. package/man/mend-doctor.1 +6 -3
  29. package/man/mend-doppler-connect.1 +1 -1
  30. package/man/mend-doppler-disconnect.1 +1 -1
  31. package/man/mend-doppler-status.1 +1 -1
  32. package/man/mend-doppler-use.1 +1 -1
  33. package/man/mend-doppler.1 +1 -1
  34. package/man/mend-dotfiles-repo.1 +1 -1
  35. package/man/mend-dotfiles-sync.1 +1 -1
  36. package/man/mend-dotfiles.1 +1 -1
  37. package/man/mend-env-cluster.1 +1 -1
  38. package/man/mend-env-load.1 +1 -1
  39. package/man/mend-env-show.1 +1 -1
  40. package/man/mend-folder-create.1 +1 -1
  41. package/man/mend-folder-list.1 +1 -1
  42. package/man/mend-folder-push.1 +1 -1
  43. package/man/mend-folder-rm.1 +1 -1
  44. package/man/mend-git-author.1 +1 -1
  45. package/man/mend-git-check.1 +1 -1
  46. package/man/mend-handoff.1 +1 -1
  47. package/man/mend-help.1 +1 -1
  48. package/man/mend-history.1 +1 -1
  49. package/man/mend-interrupt.1 +1 -1
  50. package/man/mend-invite.1 +1 -1
  51. package/man/mend-keys-init.1 +1 -1
  52. package/man/mend-keys-mode.1 +1 -1
  53. package/man/mend-keys-share.1 +1 -1
  54. package/man/mend-keys-show.1 +1 -1
  55. package/man/mend-land.1 +1 -1
  56. package/man/mend-login.1 +1 -1
  57. package/man/mend-logout.1 +1 -1
  58. package/man/mend-logs.1 +1 -1
  59. package/man/mend-man.1 +1 -1
  60. package/man/mend-mcp-add.1 +1 -1
  61. package/man/mend-mcp-forget.1 +1 -1
  62. package/man/mend-mcp-off.1 +1 -1
  63. package/man/mend-mcp-on.1 +1 -1
  64. package/man/mend-mcp-remove.1 +1 -1
  65. package/man/mend-mcp.1 +1 -1
  66. package/man/mend-members.1 +1 -1
  67. package/man/mend-memory-import.1 +1 -1
  68. package/man/mend-memory-rm.1 +1 -1
  69. package/man/mend-memory-show.1 +1 -1
  70. package/man/mend-memory.1 +1 -1
  71. package/man/mend-message.1 +1 -1
  72. package/man/mend-models.1 +1 -1
  73. package/man/mend-operator-exposure.1 +1 -1
  74. package/man/mend-operator-gate.1 +1 -1
  75. package/man/mend-operator-grant-owner.1 +1 -1
  76. package/man/mend-operator-org-add-member.1 +1 -1
  77. package/man/mend-operator-org-create.1 +1 -1
  78. package/man/mend-operator-org-invite-owner.1 +1 -1
  79. package/man/mend-operator-org-list.1 +1 -1
  80. package/man/mend-operator-org-rename.1 +1 -1
  81. package/man/mend-operator-reset-link.1 +1 -1
  82. package/man/mend-org-leave.1 +1 -1
  83. package/man/mend-org-switch.1 +1 -1
  84. package/man/mend-org.1 +1 -1
  85. package/man/mend-pair.1 +1 -1
  86. package/man/mend-preview.1 +1 -1
  87. package/man/mend-projects-image.1 +1 -1
  88. package/man/mend-projects-purge.1 +1 -1
  89. package/man/mend-projects-removed.1 +1 -1
  90. package/man/mend-projects-restore.1 +1 -1
  91. package/man/mend-projects-rm.1 +1 -1
  92. package/man/mend-projects.1 +1 -1
  93. package/man/mend-proof-get.1 +1 -1
  94. package/man/mend-proof-list.1 +1 -1
  95. package/man/mend-pull.1 +1 -1
  96. package/man/mend-refresh.1 +1 -1
  97. package/man/mend-rejoin.1 +1 -1
  98. package/man/mend-resource-add.1 +1 -1
  99. package/man/mend-resource-env.1 +1 -1
  100. package/man/mend-resource-list.1 +1 -1
  101. package/man/mend-resource-load.1 +1 -1
  102. package/man/mend-resource-remove.1 +1 -1
  103. package/man/mend-resource-reset.1 +1 -1
  104. package/man/mend-resource-start.1 +1 -1
  105. package/man/mend-resource-stop.1 +1 -1
  106. package/man/mend-resource-use.1 +1 -1
  107. package/man/mend-respond.1 +1 -1
  108. package/man/mend-resume.1 +1 -1
  109. package/man/mend-run.1 +1 -1
  110. package/man/mend-screen-look.1 +1 -1
  111. package/man/mend-secrets-add.1 +1 -1
  112. package/man/mend-secrets-rm.1 +1 -1
  113. package/man/mend-secrets.1 +1 -1
  114. package/man/mend-server-logs.1 +1 -1
  115. package/man/mend-server-restart.1 +1 -1
  116. package/man/mend-server-setup.1 +16 -4
  117. package/man/mend-server-start.1 +1 -1
  118. package/man/mend-server-status.1 +3 -1
  119. package/man/mend-server-stop.1 +1 -1
  120. package/man/mend-server-upgrade.1 +1 -1
  121. package/man/mend-server.1 +1 -1
  122. package/man/mend-service-add.1 +1 -1
  123. package/man/mend-service-connect.1 +1 -1
  124. package/man/mend-service-init.1 +1 -1
  125. package/man/mend-service-list.1 +1 -1
  126. package/man/mend-service-logs.1 +1 -1
  127. package/man/mend-service-restart.1 +1 -1
  128. package/man/mend-service-run.1 +1 -1
  129. package/man/mend-service-stop.1 +1 -1
  130. package/man/mend-session-share.1 +1 -1
  131. package/man/mend-sessions.1 +1 -1
  132. package/man/mend-settings.1 +1 -1
  133. package/man/mend-setup-session.1 +1 -1
  134. package/man/mend-shell.1 +1 -1
  135. package/man/mend-skills-push.1 +1 -1
  136. package/man/mend-skills.1 +1 -1
  137. package/man/mend-snake.1 +1 -1
  138. package/man/mend-ssh-keys-remove.1 +1 -1
  139. package/man/mend-ssh-keys.1 +1 -1
  140. package/man/mend-ssh-setup.1 +1 -1
  141. package/man/mend-ssh.1 +1 -1
  142. package/man/mend-stop.1 +1 -1
  143. package/man/mend-ui.1 +1 -1
  144. package/man/mend-uninstall.1 +1 -1
  145. package/man/mend-version.1 +1 -1
  146. package/man/mend-wait.1 +1 -1
  147. package/man/mend-workspace-replace.1 +1 -1
  148. package/man/mend-worktrees-rm.1 +1 -1
  149. package/man/mend-worktrees.1 +1 -1
  150. package/man/mend.1 +17 -2
  151. package/package.json +2 -2
@@ -200,7 +200,7 @@ __export(Schema_exports, {
200
200
  StringFromBase64Url: () => StringFromBase64Url,
201
201
  StringFromHex: () => StringFromHex,
202
202
  StringFromUriComponent: () => StringFromUriComponent,
203
- Struct: () => Struct,
203
+ Struct: () => Struct2,
204
204
  StructWithRest: () => StructWithRest,
205
205
  Symbol: () => Symbol3,
206
206
  TaggedClass: () => TaggedClass2,
@@ -218,7 +218,7 @@ __export(Schema_exports, {
218
218
  Trim: () => Trim,
219
219
  Trimmed: () => Trimmed,
220
220
  TrueLiterals: () => TrueLiterals,
221
- Tuple: () => Tuple2,
221
+ Tuple: () => Tuple3,
222
222
  TupleWithRest: () => TupleWithRest,
223
223
  URL: () => URL2,
224
224
  URLFromString: () => URLFromString,
@@ -555,6 +555,68 @@ var addBackEdge = () => {
555
555
  };
556
556
 
557
557
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Predicate.js
558
+ var Predicate_exports = {};
559
+ __export(Predicate_exports, {
560
+ Struct: () => Struct,
561
+ Tuple: () => Tuple,
562
+ and: () => and,
563
+ compose: () => compose,
564
+ eqv: () => eqv,
565
+ every: () => every,
566
+ hasProperty: () => hasProperty,
567
+ implies: () => implies,
568
+ isBigInt: () => isBigInt,
569
+ isBoolean: () => isBoolean,
570
+ isDate: () => isDate,
571
+ isError: () => isError,
572
+ isFunction: () => isFunction,
573
+ isIterable: () => isIterable,
574
+ isMap: () => isMap,
575
+ isNever: () => isNever,
576
+ isNotNull: () => isNotNull,
577
+ isNotNullish: () => isNotNullish,
578
+ isNotUndefined: () => isNotUndefined,
579
+ isNull: () => isNull,
580
+ isNullish: () => isNullish,
581
+ isNumber: () => isNumber,
582
+ isObject: () => isObject,
583
+ isObjectKeyword: () => isObjectKeyword,
584
+ isObjectOrArray: () => isObjectOrArray,
585
+ isPromise: () => isPromise,
586
+ isPromiseLike: () => isPromiseLike,
587
+ isPropertyKey: () => isPropertyKey,
588
+ isReadonlyObject: () => isReadonlyObject,
589
+ isRegExp: () => isRegExp,
590
+ isSet: () => isSet,
591
+ isString: () => isString,
592
+ isSymbol: () => isSymbol,
593
+ isTagged: () => isTagged,
594
+ isTruthy: () => isTruthy,
595
+ isTupleOf: () => isTupleOf,
596
+ isTupleOfAtLeast: () => isTupleOfAtLeast,
597
+ isUint8Array: () => isUint8Array,
598
+ isUndefined: () => isUndefined,
599
+ isUnknown: () => isUnknown,
600
+ mapInput: () => mapInput,
601
+ nand: () => nand,
602
+ nor: () => nor,
603
+ not: () => not,
604
+ or: () => or,
605
+ some: () => some,
606
+ xor: () => xor
607
+ });
608
+ var mapInput = /* @__PURE__ */ dual(2, (self, f) => (b) => self(f(b)));
609
+ var isTupleOf = /* @__PURE__ */ dual(2, (self, n) => self.length === n);
610
+ var isTupleOfAtLeast = /* @__PURE__ */ dual(2, (self, n) => self.length >= n);
611
+ function isTruthy(input) {
612
+ return !!input;
613
+ }
614
+ function isSet(input) {
615
+ return input instanceof Set;
616
+ }
617
+ function isMap(input) {
618
+ return input instanceof Map;
619
+ }
558
620
  function isString(input) {
559
621
  return typeof input === "string";
560
622
  }
@@ -582,6 +644,15 @@ function isUndefined(input) {
582
644
  function isNotUndefined(input) {
583
645
  return input !== void 0;
584
646
  }
647
+ function isNull(input) {
648
+ return input === null;
649
+ }
650
+ function isNotNull(input) {
651
+ return input !== null;
652
+ }
653
+ function isNullish(input) {
654
+ return input === null || input === void 0;
655
+ }
585
656
  function isNotNullish(input) {
586
657
  return input != null;
587
658
  }
@@ -591,9 +662,15 @@ function isNever(_) {
591
662
  function isUnknown(_) {
592
663
  return true;
593
664
  }
665
+ function isObjectOrArray(input) {
666
+ return typeof input === "object" && input !== null;
667
+ }
594
668
  function isObject(input) {
595
669
  return typeof input === "object" && input !== null && !Array.isArray(input);
596
670
  }
671
+ function isReadonlyObject(input) {
672
+ return isObject(input);
673
+ }
597
674
  function isObjectKeyword(input) {
598
675
  return typeof input === "object" && input !== null || isFunction(input);
599
676
  }
@@ -602,9 +679,76 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
602
679
  function isError(input) {
603
680
  return input instanceof Error;
604
681
  }
682
+ function isUint8Array(input) {
683
+ return input instanceof Uint8Array;
684
+ }
685
+ function isDate(input) {
686
+ return input instanceof Date;
687
+ }
605
688
  function isIterable(input) {
606
689
  return hasProperty(input, Symbol.iterator) || isString(input);
607
690
  }
691
+ function isPromise(input) {
692
+ return hasProperty(input, "then") && "catch" in input && isFunction(input.then) && isFunction(input.catch);
693
+ }
694
+ function isPromiseLike(input) {
695
+ return hasProperty(input, "then") && isFunction(input.then);
696
+ }
697
+ function isRegExp(input) {
698
+ return input instanceof RegExp;
699
+ }
700
+ var compose = /* @__PURE__ */ dual(2, (ab, bc) => (a) => ab(a) && bc(a));
701
+ function Tuple(elements) {
702
+ return (as4) => {
703
+ for (let i = 0; i < elements.length; i++) {
704
+ if (elements[i](as4[i]) === false) {
705
+ return false;
706
+ }
707
+ }
708
+ return true;
709
+ };
710
+ }
711
+ function Struct(fields) {
712
+ const keys3 = Object.keys(fields);
713
+ return (a) => {
714
+ for (const key of keys3) {
715
+ if (!fields[key](a[key])) {
716
+ return false;
717
+ }
718
+ }
719
+ return true;
720
+ };
721
+ }
722
+ function not(self) {
723
+ return (a) => !self(a);
724
+ }
725
+ var or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
726
+ var and = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) && that(a));
727
+ var xor = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) !== that(a));
728
+ var eqv = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) === that(a));
729
+ var implies = /* @__PURE__ */ dual(2, (antecedent, consequent) => (a) => antecedent(a) ? consequent(a) : true);
730
+ var nor = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) || that(a)));
731
+ var nand = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) && that(a)));
732
+ function every(collection) {
733
+ return (a) => {
734
+ for (const p of collection) {
735
+ if (!p(a)) {
736
+ return false;
737
+ }
738
+ }
739
+ return true;
740
+ };
741
+ }
742
+ function some(collection) {
743
+ return (a) => {
744
+ for (const p of collection) {
745
+ if (p(a)) {
746
+ return true;
747
+ }
748
+ }
749
+ return false;
750
+ };
751
+ }
608
752
 
609
753
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Hash.js
610
754
  var symbol = "~effect/Hash";
@@ -919,7 +1063,7 @@ function make(combine3, initialValue, combineAll) {
919
1063
  var make2 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
920
1064
  var isStrictEquivalent = (x, y) => x === y;
921
1065
  var strictEqual = () => isStrictEquivalent;
922
- function Tuple(elements) {
1066
+ function Tuple2(elements) {
923
1067
  return make2((self, that) => {
924
1068
  if (self.length !== that.length) {
925
1069
  return false;
@@ -1039,7 +1183,7 @@ __export(Option_exports, {
1039
1183
  product: () => product,
1040
1184
  productMany: () => productMany,
1041
1185
  reduceCompact: () => reduceCompact,
1042
- some: () => some2,
1186
+ some: () => some3,
1043
1187
  tap: () => tap,
1044
1188
  toArray: () => toArray,
1045
1189
  toRefinement: () => toRefinement,
@@ -1844,7 +1988,7 @@ var SomeImpl = function(value3) {
1844
1988
  this.value = value3;
1845
1989
  };
1846
1990
  SomeImpl.prototype = SomeProto;
1847
- var some = (value3) => new SomeImpl(value3);
1991
+ var some2 = (value3) => new SomeImpl(value3);
1848
1992
 
1849
1993
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/result.js
1850
1994
  var TypeId2 = "~effect/Result";
@@ -1912,8 +2056,8 @@ var SuccessImpl = function(success) {
1912
2056
  };
1913
2057
  SuccessImpl.prototype = SuccessProto;
1914
2058
  var succeed = (success) => new SuccessImpl(success);
1915
- var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
1916
- var getSuccess = (self) => isFailure(self) ? none : some(self.success);
2059
+ var getFailure = (self) => isSuccess(self) ? none : some2(self.failure);
2060
+ var getSuccess = (self) => isFailure(self) ? none : some2(self.success);
1917
2061
 
1918
2062
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Order.js
1919
2063
  function make4(compare2) {
@@ -1927,8 +2071,8 @@ var Number2 = /* @__PURE__ */ make4((self, that) => {
1927
2071
  return self < that ? -1 : 1;
1928
2072
  });
1929
2073
  var BigInt2 = /* @__PURE__ */ make4((self, that) => self < that ? -1 : 1);
1930
- var mapInput = /* @__PURE__ */ dual(2, (self, f) => make4((b1, b2) => self(f(b1), f(b2))));
1931
- var Date2 = /* @__PURE__ */ mapInput(Number2, (date) => date.getTime());
2074
+ var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make4((b1, b2) => self(f(b1), f(b2))));
2075
+ var Date2 = /* @__PURE__ */ mapInput2(Number2, (date) => date.getTime());
1932
2076
  var isLessThan = (O) => dual(2, (self, that) => O(self, that) === -1);
1933
2077
  var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
1934
2078
  var isLessThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== 1);
@@ -1936,7 +2080,7 @@ var isGreaterThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== -1
1936
2080
 
1937
2081
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Option.js
1938
2082
  var none2 = () => none;
1939
- var some2 = some;
2083
+ var some3 = some2;
1940
2084
  var isOption2 = isOption;
1941
2085
  var isNone2 = isNone;
1942
2086
  var isSome2 = isSome;
@@ -1947,7 +2091,7 @@ var match = /* @__PURE__ */ dual(2, (self, {
1947
2091
  var toRefinement = (f) => (a) => isSome2(f(a));
1948
2092
  var fromIterable = (collection) => {
1949
2093
  for (const a of collection) {
1950
- return some2(a);
2094
+ return some3(a);
1951
2095
  }
1952
2096
  return none2();
1953
2097
  };
@@ -1955,7 +2099,7 @@ var getSuccess2 = getSuccess;
1955
2099
  var getFailure2 = getFailure;
1956
2100
  var getOrElse = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? onNone() : self.value);
1957
2101
  var orElse = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? that() : self);
1958
- var orElseSome = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? some2(onNone()) : self);
2102
+ var orElseSome = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? some3(onNone()) : self);
1959
2103
  var orElseResult = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? map(that(), succeed) : map(self, fail));
1960
2104
  var firstSomeOf = (collection) => {
1961
2105
  let out = none2();
@@ -1966,15 +2110,15 @@ var firstSomeOf = (collection) => {
1966
2110
  }
1967
2111
  return out;
1968
2112
  };
1969
- var fromNullishOr = (a) => a == null ? none2() : some2(a);
1970
- var fromUndefinedOr = (a) => a === void 0 ? none2() : some2(a);
1971
- var fromNullOr = (a) => a === null ? none2() : some2(a);
2113
+ var fromNullishOr = (a) => a == null ? none2() : some3(a);
2114
+ var fromUndefinedOr = (a) => a === void 0 ? none2() : some3(a);
2115
+ var fromNullOr = (a) => a === null ? none2() : some3(a);
1972
2116
  var liftNullishOr = (f) => (...a) => fromNullishOr(f(...a));
1973
2117
  var getOrNull = /* @__PURE__ */ getOrElse(constNull);
1974
2118
  var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
1975
2119
  var liftThrowable = (f) => (...a) => {
1976
2120
  try {
1977
- return some2(f(...a));
2121
+ return some3(f(...a));
1978
2122
  } catch {
1979
2123
  return none2();
1980
2124
  }
@@ -1986,14 +2130,14 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
1986
2130
  throw onNone();
1987
2131
  });
1988
2132
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
1989
- var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some2(f(self.value)));
2133
+ var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some3(f(self.value)));
1990
2134
  var as = /* @__PURE__ */ dual(2, (self, b) => map(self, () => b));
1991
2135
  var asVoid = /* @__PURE__ */ as(void 0);
1992
- var void_ = /* @__PURE__ */ some2(void 0);
2136
+ var void_ = /* @__PURE__ */ some3(void 0);
1993
2137
  var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
1994
2138
  var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
1995
2139
  const b = isFunction(f) ? f(a) : f;
1996
- return isOption2(b) ? b : some2(b);
2140
+ return isOption2(b) ? b : some3(b);
1997
2141
  }));
1998
2142
  var flatMapNullishOr = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : fromNullishOr(f(self.value)));
1999
2143
  var flatten = /* @__PURE__ */ flatMap(identity);
@@ -2001,7 +2145,7 @@ var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that)
2001
2145
  var zipLeft = /* @__PURE__ */ dual(2, (self, that) => tap(self, () => that));
2002
2146
  var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a) => flatMap(afb(a), bfc));
2003
2147
  var tap = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => map(f(a), () => a)));
2004
- var product = /* @__PURE__ */ dual(2, (self, that) => isSome2(self) && isSome2(that) ? some2([self.value, that.value]) : none2());
2148
+ var product = /* @__PURE__ */ dual(2, (self, that) => isSome2(self) && isSome2(that) ? some3([self.value, that.value]) : none2());
2005
2149
  var productMany = /* @__PURE__ */ dual(2, (self, collection) => {
2006
2150
  if (isNone2(self)) {
2007
2151
  return none2();
@@ -2013,7 +2157,7 @@ var productMany = /* @__PURE__ */ dual(2, (self, collection) => {
2013
2157
  }
2014
2158
  out.push(o.value);
2015
2159
  }
2016
- return some2(out);
2160
+ return some3(out);
2017
2161
  });
2018
2162
  var all = (input) => {
2019
2163
  if (Symbol.iterator in input) {
@@ -2024,7 +2168,7 @@ var all = (input) => {
2024
2168
  }
2025
2169
  out2.push(o.value);
2026
2170
  }
2027
- return some2(out2);
2171
+ return some3(out2);
2028
2172
  }
2029
2173
  const out = {};
2030
2174
  for (const key of Object.keys(input)) {
@@ -2034,7 +2178,7 @@ var all = (input) => {
2034
2178
  }
2035
2179
  assignProperty(out, key, o.value);
2036
2180
  }
2037
- return some2(out);
2181
+ return some3(out);
2038
2182
  };
2039
2183
  var zipWith = /* @__PURE__ */ dual(3, (self, that, f) => map(product(self, that), ([a, b]) => f(a, b)));
2040
2184
  var reduceCompact = /* @__PURE__ */ dual(3, (self, b, f) => {
@@ -2052,27 +2196,27 @@ var partitionMap = /* @__PURE__ */ dual(2, (self, f) => {
2052
2196
  return [none2(), none2()];
2053
2197
  }
2054
2198
  const e = f(self.value);
2055
- return isFailure(e) ? [none2(), some2(e.failure)] : [some2(e.success), none2()];
2199
+ return isFailure(e) ? [none2(), some3(e.failure)] : [some3(e.success), none2()];
2056
2200
  });
2057
2201
  var filterMap = /* @__PURE__ */ dual(2, (self, f) => {
2058
2202
  if (isNone2(self)) {
2059
2203
  return none2();
2060
2204
  }
2061
2205
  const next = f(self.value);
2062
- return isSuccess(next) ? some2(next.success) : none2();
2206
+ return isSuccess(next) ? some3(next.success) : none2();
2063
2207
  });
2064
- var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some2(self.value) : none2());
2208
+ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some3(self.value) : none2());
2065
2209
  var makeEquivalence = (isEquivalent) => make2((x, y) => isNone2(x) ? isNone2(y) : isNone2(y) ? false : isEquivalent(x.value, y.value));
2066
2210
  var makeOrder = (O) => make4((self, that) => isSome2(self) ? isSome2(that) ? O(self.value, that.value) : 1 : -1);
2067
2211
  var lift2 = (f) => dual(2, (self, that) => zipWith(self, that, f));
2068
- var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some2(b) : none2());
2212
+ var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some3(b) : none2());
2069
2213
  var containsWith = (isEquivalent) => dual(2, (self, a) => isNone2(self) ? false : isEquivalent(self.value, a));
2070
2214
  var contains = /* @__PURE__ */ containsWith(/* @__PURE__ */ asEquivalence());
2071
2215
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
2072
2216
  var bindTo2 = /* @__PURE__ */ bindTo(map);
2073
2217
  var let_2 = /* @__PURE__ */ let_(map);
2074
2218
  var bind2 = /* @__PURE__ */ bind(map, flatMap);
2075
- var Do = /* @__PURE__ */ some2({});
2219
+ var Do = /* @__PURE__ */ some3({});
2076
2220
  var gen = (...args2) => {
2077
2221
  const f = args2.length === 1 ? args2[0] : args2[1].bind(args2[0]);
2078
2222
  const iterator = f();
@@ -2084,24 +2228,24 @@ var gen = (...args2) => {
2084
2228
  }
2085
2229
  state = iterator.next(current.value);
2086
2230
  }
2087
- return some2(state.value);
2231
+ return some3(state.value);
2088
2232
  };
2089
2233
  function makeReducer(combiner) {
2090
2234
  return make((self, that) => {
2091
2235
  if (isNone2(self)) return that;
2092
2236
  if (isNone2(that)) return self;
2093
- return some2(combiner.combine(self.value, that.value));
2237
+ return some3(combiner.combine(self.value, that.value));
2094
2238
  }, none2());
2095
2239
  }
2096
2240
  function makeCombinerFailFast(combiner) {
2097
2241
  return make3((self, that) => {
2098
2242
  if (isNone2(self) || isNone2(that)) return none2();
2099
- return some2(combiner.combine(self.value, that.value));
2243
+ return some3(combiner.combine(self.value, that.value));
2100
2244
  });
2101
2245
  }
2102
2246
  function makeReducerFailFast(reducer) {
2103
2247
  const combine3 = makeCombinerFailFast(reducer).combine;
2104
- const initialValue = some2(reducer.initialValue);
2248
+ const initialValue = some3(reducer.initialValue);
2105
2249
  return make(combine3, initialValue, (collection) => {
2106
2250
  let out = initialValue;
2107
2251
  for (const value3 of collection) {
@@ -2150,7 +2294,7 @@ var getOrThrow2 = /* @__PURE__ */ getOrThrowWith2(identity);
2150
2294
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => isFailure2(self) ? fail2(self.failure) : f(self.success));
2151
2295
 
2152
2296
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Tuple.js
2153
- var makeEquivalence2 = Tuple;
2297
+ var makeEquivalence2 = Tuple2;
2154
2298
 
2155
2299
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Iterable.js
2156
2300
  var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
@@ -2159,7 +2303,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
2159
2303
  const o = f(a, i);
2160
2304
  if (isBoolean(o)) {
2161
2305
  if (o) {
2162
- return some2(a);
2306
+ return some3(a);
2163
2307
  }
2164
2308
  } else {
2165
2309
  if (isSome2(o)) {
@@ -2202,7 +2346,7 @@ __export(Record_exports, {
2202
2346
  collect: () => collect,
2203
2347
  difference: () => difference,
2204
2348
  empty: () => empty,
2205
- every: () => every,
2349
+ every: () => every2,
2206
2350
  filter: () => filter3,
2207
2351
  filterMap: () => filterMap2,
2208
2352
  findFirst: () => findFirst2,
@@ -2236,7 +2380,7 @@ __export(Record_exports, {
2236
2380
  set: () => set,
2237
2381
  singleton: () => singleton,
2238
2382
  size: () => size,
2239
- some: () => some3,
2383
+ some: () => some4,
2240
2384
  toEntries: () => toEntries,
2241
2385
  union: () => union,
2242
2386
  values: () => values
@@ -2264,10 +2408,10 @@ var collect = /* @__PURE__ */ dual(2, (self, f) => {
2264
2408
  var toEntries = /* @__PURE__ */ collect((key, value3) => [key, value3]);
2265
2409
  var size = (self) => keys(self).length;
2266
2410
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2267
- var get = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key) ? some2(self[key]) : none2());
2411
+ var get = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key) ? some3(self[key]) : none2());
2268
2412
  var modify = /* @__PURE__ */ dual(3, (self, key, f) => {
2269
2413
  if (!has(self, key)) return none2();
2270
- return some2({
2414
+ return some3({
2271
2415
  ...self,
2272
2416
  [key]: f(self[key])
2273
2417
  });
@@ -2285,7 +2429,7 @@ var remove = /* @__PURE__ */ dual(2, (self, key) => {
2285
2429
  delete out[key];
2286
2430
  return out;
2287
2431
  });
2288
- var pop = /* @__PURE__ */ dual(2, (self, key) => has(self, key) ? some2([self[key], remove(self, key)]) : none2());
2432
+ var pop = /* @__PURE__ */ dual(2, (self, key) => has(self, key) ? some3([self[key], remove(self, key)]) : none2());
2289
2433
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
2290
2434
  const out = {
2291
2435
  ...self
@@ -2399,7 +2543,7 @@ var reduce = /* @__PURE__ */ dual(3, (self, zero3, f) => {
2399
2543
  }
2400
2544
  return out;
2401
2545
  });
2402
- var every = /* @__PURE__ */ dual(2, (self, refinement) => {
2546
+ var every2 = /* @__PURE__ */ dual(2, (self, refinement) => {
2403
2547
  for (const key of keys(self)) {
2404
2548
  if (!refinement(self[key], key)) {
2405
2549
  return false;
@@ -2407,7 +2551,7 @@ var every = /* @__PURE__ */ dual(2, (self, refinement) => {
2407
2551
  }
2408
2552
  return true;
2409
2553
  });
2410
- var some3 = /* @__PURE__ */ dual(2, (self, predicate) => {
2554
+ var some4 = /* @__PURE__ */ dual(2, (self, predicate) => {
2411
2555
  for (const key of keys(self)) {
2412
2556
  if (predicate(self[key], key)) {
2413
2557
  return true;
@@ -2495,7 +2639,7 @@ var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
2495
2639
  for (let i = 0; i < k.length; i++) {
2496
2640
  const key = k[i];
2497
2641
  if (f(self[key], key)) {
2498
- return some2([key, self[key]]);
2642
+ return some3([key, self[key]]);
2499
2643
  }
2500
2644
  }
2501
2645
  return none2();
@@ -2652,7 +2796,7 @@ var Order = /* @__PURE__ */ make4(compare);
2652
2796
  var sign = (n) => n.value === bigint0 ? 0 : n.value < bigint0 ? -1 : 1;
2653
2797
  var fromString = (s) => {
2654
2798
  if (s === "") {
2655
- return some2(zero);
2799
+ return some3(zero);
2656
2800
  }
2657
2801
  let base;
2658
2802
  let exp;
@@ -2687,7 +2831,7 @@ var fromString = (s) => {
2687
2831
  if (!Number.isSafeInteger(scale)) {
2688
2832
  return none2();
2689
2833
  }
2690
- return some2(make5(BigInt(digits), scale));
2834
+ return some3(make5(BigInt(digits), scale));
2691
2835
  };
2692
2836
  var format2 = (n) => {
2693
2837
  const normalized = normalize2(n);
@@ -2721,7 +2865,7 @@ var toNumber = (b) => {
2721
2865
  if (b > BigInt3(Number.MAX_SAFE_INTEGER) || b < BigInt3(Number.MIN_SAFE_INTEGER)) {
2722
2866
  return none2();
2723
2867
  }
2724
- return some2(Number(b));
2868
+ return some3(Number(b));
2725
2869
  };
2726
2870
 
2727
2871
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/ByteSize.js
@@ -3060,8 +3204,8 @@ var serviceNotFoundError = (service3) => {
3060
3204
  };
3061
3205
  var getOption = /* @__PURE__ */ dual(2, (self, service3) => {
3062
3206
  const value3 = lookup(self, service3.key);
3063
- if (value3 !== notFound) return some2(value3);
3064
- return isReference(service3) ? some2(getDefaultValue(service3)) : none2();
3207
+ if (value3 !== notFound) return some3(value3);
3208
+ return isReference(service3) ? some3(getDefaultValue(service3)) : none2();
3065
3209
  });
3066
3210
  var merge = /* @__PURE__ */ dual(2, (self, that) => {
3067
3211
  if (self.mapUnsafe.size === 0) return that;
@@ -4479,9 +4623,9 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
4479
4623
  }
4480
4624
  });
4481
4625
  var yieldNow = /* @__PURE__ */ yieldNowWith(0);
4482
- var succeedSome = (a) => succeed3(some2(a));
4626
+ var succeedSome = (a) => succeed3(some3(a));
4483
4627
  var succeedNone = /* @__PURE__ */ succeed3(/* @__PURE__ */ none2());
4484
- var transposeOption = (self) => isNone2(self) ? succeedNone : map5(self.value, some2);
4628
+ var transposeOption = (self) => isNone2(self) ? succeedNone : map5(self.value, some3);
4485
4629
  var failCauseSync = (evaluate2) => suspend(() => failCause(evaluate2()));
4486
4630
  var die = (defect) => exitDie(defect);
4487
4631
  var failSync = (error) => suspend(() => fail3(error()));
@@ -4770,7 +4914,7 @@ var tapCont = function(value3) {
4770
4914
  var tapEffectCont = function(value3) {
4771
4915
  return new ContImpl(this.payload, succeedPayload, value3);
4772
4916
  };
4773
- var asSome = (self) => map5(self, some2);
4917
+ var asSome = (self) => map5(self, some3);
4774
4918
  var flip = (self) => matchEffect(self, {
4775
4919
  onFailure: succeed3,
4776
4920
  onSuccess: fail3
@@ -5117,7 +5261,7 @@ var ignoreCause = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, opt
5117
5261
  });
5118
5262
  var option = (self) => match4(self, {
5119
5263
  onFailure: none2,
5120
- onSuccess: some2
5264
+ onSuccess: some3
5121
5265
  });
5122
5266
  var result = (self) => matchEager(self, {
5123
5267
  onFailure: fail2,
@@ -5575,7 +5719,7 @@ var findFirst4 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffe
5575
5719
  }));
5576
5720
  var findFirstLoop = (iterator, index2, predicate, value3) => flatMap3(predicate(value3, index2), (keep) => {
5577
5721
  if (keep) {
5578
- return succeed3(some2(value3));
5722
+ return succeed3(some3(value3));
5579
5723
  }
5580
5724
  const next = iterator.next();
5581
5725
  if (!next.done) {
@@ -5593,7 +5737,7 @@ var findFirstFilter = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !i
5593
5737
  }));
5594
5738
  var findFirstFilterLoop = (iterator, index2, filter10, value3) => flatMap3(filter10(value3, index2), (result3) => {
5595
5739
  if (isSuccess2(result3)) {
5596
- return succeed3(some2(result3.success));
5740
+ return succeed3(some3(result3.success));
5597
5741
  }
5598
5742
  const next = iterator.next();
5599
5743
  if (!next.done) {
@@ -6083,11 +6227,11 @@ var NoopSpanProto = {
6083
6227
  var noopSpan = (options2) => Object.assign(Object.create(NoopSpanProto), options2);
6084
6228
  var filterDisablePropagation = (span) => {
6085
6229
  if (!span) return none2();
6086
- return get2(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none2() : some2(span);
6230
+ return get2(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none2() : some3(span);
6087
6231
  };
6088
6232
  var makeSpanUnsafe = (fiber3, name, options2) => {
6089
6233
  const disablePropagation = !fiber3.cache.tracerEnabled || options2?.annotations && get2(options2.annotations, DisablePropagation);
6090
- const parent = options2?.parent !== void 0 ? some2(options2.parent) : options2?.root ? none2() : filterDisablePropagation(fiber3.cache.span);
6234
+ const parent = options2?.parent !== void 0 ? some3(options2.parent) : options2?.root ? none2() : filterDisablePropagation(fiber3.cache.span);
6091
6235
  let span;
6092
6236
  if (disablePropagation) {
6093
6237
  span = noopSpan({
@@ -6373,7 +6517,7 @@ var logLevelToOrder = (level) => {
6373
6517
  return Number.MAX_SAFE_INTEGER;
6374
6518
  }
6375
6519
  };
6376
- var LogLevelOrder = /* @__PURE__ */ mapInput(Number2, logLevelToOrder);
6520
+ var LogLevelOrder = /* @__PURE__ */ mapInput2(Number2, logLevelToOrder);
6377
6521
  var isLogLevelGreaterThan = /* @__PURE__ */ isGreaterThan(LogLevelOrder);
6378
6522
  var CurrentLoggers = /* @__PURE__ */ Reference("effect/Logger/CurrentLoggers", {
6379
6523
  defaultValue: () => /* @__PURE__ */ new Set([defaultLogger, tracerLogger])
@@ -7400,7 +7544,7 @@ var offsetZoneRegExp = /^(?:GMT|[+-])/;
7400
7544
  var zoneFromString = (zone) => {
7401
7545
  if (offsetZoneRegExp.test(zone)) {
7402
7546
  const offset = parseOffset(zone);
7403
- return offset === null ? none2() : some2(zoneMakeOffset(offset));
7547
+ return offset === null ? none2() : some3(zoneMakeOffset(offset));
7404
7548
  }
7405
7549
  return zoneMakeNamed(zone);
7406
7550
  };
@@ -7757,7 +7901,7 @@ var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse2) => flatMap
7757
7901
  meta = meta_;
7758
7902
  })), {
7759
7903
  disableYield: true
7760
- }), (out) => succeed3(out)), findErrorOnly, (error) => orElse2(error, meta.attempt === 0 ? none2() : some2(meta)));
7904
+ }), (out) => succeed3(out)), findErrorOnly, (error) => orElse2(error, meta.attempt === 0 ? none2() : some3(meta)));
7761
7905
  }));
7762
7906
  var retryOrElse = /* @__PURE__ */ dual(3, (self, policy, orElse2) => flatMap3(toStepWithMetadata(policy), (step) => {
7763
7907
  let meta = CurrentMetadata.defaultValue();
@@ -7957,7 +8101,7 @@ var empty5 = () => {
7957
8101
  };
7958
8102
  var get3 = /* @__PURE__ */ dual(2, (self, key) => {
7959
8103
  if (self.backing.has(key)) {
7960
- return some2(self.backing.get(key));
8104
+ return some3(self.backing.get(key));
7961
8105
  } else if (isSimpleKey(key)) {
7962
8106
  return none2();
7963
8107
  }
@@ -7973,7 +8117,7 @@ var getFromBucket = (self, bucket, key) => {
7973
8117
  for (let i = 0, len = bucket.length; i < len; i++) {
7974
8118
  if (equals(key, bucket[i])) {
7975
8119
  const refKey = bucket[i];
7976
- return some2(self.backing.get(refKey));
8120
+ return some3(self.backing.get(refKey));
7977
8121
  }
7978
8122
  }
7979
8123
  return none2();
@@ -8836,7 +8980,7 @@ var LeafNode = class _LeafNode extends Node {
8836
8980
  }
8837
8981
  get(_shift, hash2, key) {
8838
8982
  if (this.hash === hash2 && equals(this.key, key)) {
8839
- return some2(this.value);
8983
+ return some3(this.value);
8840
8984
  }
8841
8985
  return none2();
8842
8986
  }
@@ -8899,7 +9043,7 @@ var CollisionNode = class _CollisionNode extends Node {
8899
9043
  }
8900
9044
  for (const [k, v] of this.entries) {
8901
9045
  if (equals(k, key)) {
8902
- return some2(v);
9046
+ return some3(v);
8903
9047
  }
8904
9048
  }
8905
9049
  return none2();
@@ -9387,7 +9531,7 @@ var HashSetProto = {
9387
9531
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
9388
9532
  },
9389
9533
  [symbol2](that) {
9390
- return isHashSet(that) && size5(this) === size5(that) && every3(this, (value3) => has4(that, value3));
9534
+ return isHashSet(that) && size5(this) === size5(that) && every4(this, (value3) => has4(that, value3));
9391
9535
  },
9392
9536
  [Symbol.iterator]() {
9393
9537
  return keys2(keyMap(this));
@@ -9425,7 +9569,7 @@ var fromIterable6 = (values3) => {
9425
9569
  };
9426
9570
  var has4 = (self, value3) => has3(keyMap(self), value3);
9427
9571
  var size5 = (self) => size3(keyMap(self));
9428
- var every3 = (self, predicate) => {
9572
+ var every4 = (self, predicate) => {
9429
9573
  for (const value3 of self) {
9430
9574
  if (!predicate(value3)) {
9431
9575
  return false;
@@ -10174,7 +10318,7 @@ var make17 = (type, mutable3) => {
10174
10318
  graph.reverseAdjacency = /* @__PURE__ */ new Map();
10175
10319
  graph.nextNodeIndex = 0;
10176
10320
  graph.nextEdgeIndex = 0;
10177
- graph.acyclic = some2(true);
10321
+ graph.acyclic = some3(true);
10178
10322
  return graph;
10179
10323
  };
10180
10324
  var snapshot = (graph) => {
@@ -10247,7 +10391,7 @@ var missing = /* @__PURE__ */ Symbol();
10247
10391
  var succeed7 = succeed4;
10248
10392
  var missingExit = /* @__PURE__ */ succeed7(missing);
10249
10393
  var sameExit = /* @__PURE__ */ succeed7(missing);
10250
- var toOption = (value3) => value3 === missing ? none2() : some2(value3);
10394
+ var toOption = (value3) => value3 === missing ? none2() : some3(value3);
10251
10395
  var fromOptionExit = (option3) => option3._tag === "None" ? missingExit : succeed7(option3.value);
10252
10396
 
10253
10397
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/SchemaIssue.js
@@ -10626,7 +10770,7 @@ __export(SchemaGetter_exports, {
10626
10770
  capitalize: () => capitalize2,
10627
10771
  checkEffect: () => checkEffect,
10628
10772
  collectBracketPathEntries: () => collectBracketPathEntries,
10629
- compose: () => compose,
10773
+ compose: () => compose2,
10630
10774
  dateTimeUtcFromInput: () => dateTimeUtcFromInput,
10631
10775
  decodeBase64: () => decodeBase64,
10632
10776
  decodeBase64String: () => decodeBase64String,
@@ -10710,7 +10854,7 @@ var runGetter = (self, input, options2) => {
10710
10854
  case "TransformOptional":
10711
10855
  return succeed6(self.transform(input));
10712
10856
  case "TransformEffect":
10713
- return isNone2(input) ? succeedNone2 : mapEager2(self.transform(input.value, options2), some2);
10857
+ return isNone2(input) ? succeedNone2 : mapEager2(self.transform(input.value, options2), some3);
10714
10858
  case "TransformOptionalEffect":
10715
10859
  return self.transform(input, options2);
10716
10860
  }
@@ -10718,7 +10862,7 @@ var runGetter = (self, input, options2) => {
10718
10862
  var run = /* @__PURE__ */ dual(3, runGetter);
10719
10863
  var makeGetter = (fields) => Object.assign(Object.create(Prototype), fields);
10720
10864
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options2) => flatMapEager2(runGetter(first, input, options2), (output) => runGetter(second, output, options2)));
10721
- var compose = /* @__PURE__ */ dual(2, (self, other) => {
10865
+ var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
10722
10866
  if (self._tag === "Passthrough") return other;
10723
10867
  if (other._tag === "Passthrough") return self;
10724
10868
  switch (self._tag) {
@@ -10760,9 +10904,9 @@ var compose = /* @__PURE__ */ dual(2, (self, other) => {
10760
10904
  return composeOptionalEffect(self, other);
10761
10905
  }
10762
10906
  });
10763
- var map10 = /* @__PURE__ */ dual(2, (self, f) => compose(self, transform(f)));
10907
+ var map10 = /* @__PURE__ */ dual(2, (self, f) => compose2(self, transform(f)));
10764
10908
  function succeed8(t) {
10765
- return transformOptional(() => some2(t));
10909
+ return transformOptional(() => some3(t));
10766
10910
  }
10767
10911
  function fail6(f) {
10768
10912
  return transformOptionalEffect((oe, options2) => fail5(f(oe, options2)));
@@ -10829,7 +10973,7 @@ function omit2() {
10829
10973
  function withDefault(defaultValue) {
10830
10974
  return transformOptionalEffect((o) => {
10831
10975
  const filtered = filter(o, isNotUndefined);
10832
- return isSome2(filtered) ? succeed6(filtered) : mapEager2(defaultValue, some2);
10976
+ return isSome2(filtered) ? succeed6(filtered) : mapEager2(defaultValue, some3);
10833
10977
  });
10834
10978
  }
10835
10979
  function String4() {
@@ -11291,13 +11435,13 @@ function optionFromNullishOr(options2) {
11291
11435
  }
11292
11436
  function optionFromOptionalKey() {
11293
11437
  return transformOptional2({
11294
- decode: some2,
11438
+ decode: some3,
11295
11439
  encode: flatten
11296
11440
  });
11297
11441
  }
11298
11442
  function optionFromOptional() {
11299
11443
  return transformOptional2({
11300
- decode: (ot) => ot.pipe(filter(isNotUndefined), some2),
11444
+ decode: (ot) => ot.pipe(filter(isNotUndefined), some3),
11301
11445
  encode: flatten
11302
11446
  });
11303
11447
  }
@@ -13715,7 +13859,7 @@ function makeOption(schema) {
13715
13859
  return (input, options2) => {
13716
13860
  const exit3 = runSyncExit2(parser(input, options2));
13717
13861
  if (isSuccess4(exit3)) {
13718
- return some2(exit3.value);
13862
+ return some3(exit3.value);
13719
13863
  }
13720
13864
  getSchemaIssueOrThrow(exit3.cause, "Option adapter can only return none for schema issues");
13721
13865
  return none2();
@@ -13869,7 +14013,7 @@ function asOption(parser) {
13869
14013
  return (input, options2) => {
13870
14014
  const exit3 = parserExit(input, options2);
13871
14015
  if (isSuccess4(exit3)) {
13872
- return some2(exit3.value);
14016
+ return some3(exit3.value);
13873
14017
  }
13874
14018
  getSchemaIssueOrThrow(exit3.cause, "Option adapter can only return none for schema issues");
13875
14019
  return none2();
@@ -16548,7 +16692,7 @@ var CheckNode = class {
16548
16692
  this.get = (s) => runChecks(checks, s);
16549
16693
  }
16550
16694
  };
16551
- function compose2(a, b) {
16695
+ function compose3(a, b) {
16552
16696
  if (a.length === 0) return b;
16553
16697
  if (b.length === 0) return a;
16554
16698
  const nodes = a.slice();
@@ -16585,13 +16729,13 @@ var OptionalImpl = class {
16585
16729
  return (s) => getOrElse2(flatMap2(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s);
16586
16730
  }
16587
16731
  compose(that) {
16588
- return make20(compose2(this.node, that.node));
16732
+ return make20(compose3(this.node, that.node));
16589
16733
  }
16590
16734
  key(key) {
16591
- return make20(compose2(this.node, [new PathNode([key])]));
16735
+ return make20(compose3(this.node, [new PathNode([key])]));
16592
16736
  }
16593
16737
  optionalKey(key) {
16594
- return make20(compose2(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
16738
+ return make20(compose3(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
16595
16739
  const copy3 = cloneShallow(s);
16596
16740
  if (a === void 0) {
16597
16741
  if (Array.isArray(copy3) && (typeof key === "number" || typeof key === "string" && isCanonicalArrayIndex(key))) {
@@ -16606,20 +16750,20 @@ var OptionalImpl = class {
16606
16750
  })));
16607
16751
  }
16608
16752
  check(...checks) {
16609
- return make20(compose2(this.node, [new CheckNode(checks)]));
16753
+ return make20(compose3(this.node, [new CheckNode(checks)]));
16610
16754
  }
16611
16755
  refine(refinement, annotations2) {
16612
- return make20(compose2(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations2)])]));
16756
+ return make20(compose3(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations2)])]));
16613
16757
  }
16614
16758
  tag(tag2) {
16615
16759
  const err = fail2(new InvalidValue({
16616
16760
  expected: `${JSON.stringify(tag2)} tag`
16617
16761
  }));
16618
- return make20(compose2(this.node, primitiveNode("Prism", (s) => s._tag === tag2 ? succeed2(s) : err, identity)));
16762
+ return make20(compose3(this.node, primitiveNode("Prism", (s) => s._tag === tag2 ? succeed2(s) : err, identity)));
16619
16763
  }
16620
16764
  at(key, ..._rest) {
16621
16765
  const err = fail2(new Pointer([key], new MissingKey(void 0)));
16622
- return make20(compose2(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
16766
+ return make20(compose3(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
16623
16767
  if (Object.hasOwn(s, key)) {
16624
16768
  const copy3 = cloneShallow(s);
16625
16769
  assignProperty(copy3, key, a);
@@ -17982,7 +18126,7 @@ function makeStruct(ast, fields) {
17982
18126
  }
17983
18127
  });
17984
18128
  }
17985
- function Struct(fields) {
18129
+ function Struct2(fields) {
17986
18130
  return makeStruct(struct(fields, void 0), fields);
17987
18131
  }
17988
18132
  function fieldsAssign(fields) {
@@ -18010,7 +18154,7 @@ function encodeKeys(mapping) {
18010
18154
  reverseMapping[encodedKey] = k;
18011
18155
  }
18012
18156
  }
18013
- return Struct(fields).pipe(decodeTo2(self, transform2({
18157
+ return Struct2(fields).pipe(decodeTo2(self, transform2({
18014
18158
  decode: renameKeys(reverseMapping),
18015
18159
  encode: renameKeys(appliedMapping)
18016
18160
  })));
@@ -18019,7 +18163,7 @@ function encodeKeys(mapping) {
18019
18163
  function extendTo(fields, derive) {
18020
18164
  return (self) => {
18021
18165
  const f = map3(self.fields, toType2);
18022
- const to = Struct({
18166
+ const to = Struct2({
18023
18167
  ...f,
18024
18168
  ...fields
18025
18169
  });
@@ -18070,7 +18214,7 @@ function makeTuple(ast, elements) {
18070
18214
  }
18071
18215
  });
18072
18216
  }
18073
- function Tuple2(elements) {
18217
+ function Tuple3(elements) {
18074
18218
  return makeTuple(tuple(elements), elements);
18075
18219
  }
18076
18220
  function TupleWithRest(schema, rest) {
@@ -18096,7 +18240,7 @@ var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make23(new Arrays(false,
18096
18240
  function ArrayEnsure(schema) {
18097
18241
  const many = ArraySchema(schema);
18098
18242
  const to = ArraySchema(toType2(schema));
18099
- const one = decodeTo2(Tuple2([Unknown2]), transform2({
18243
+ const one = decodeTo2(Tuple3([Unknown2]), transform2({
18100
18244
  decode: (value3) => [value3],
18101
18245
  encode: ([value3]) => value3
18102
18246
  }))(schema);
@@ -18270,7 +18414,7 @@ function tagDefaultOmit(literal) {
18270
18414
  }));
18271
18415
  }
18272
18416
  function TaggedStruct(value3, fields) {
18273
- return Struct({
18417
+ return Struct2({
18274
18418
  _tag: tag(value3),
18275
18419
  ...fields
18276
18420
  });
@@ -19683,7 +19827,7 @@ function Defect(options2) {
19683
19827
  }
19684
19828
  function ReadonlyMap(key, value3) {
19685
19829
  const schema = declareConstructor()([key, value3], ([key2, value4]) => {
19686
- const array2 = ArraySchema(Tuple2([key2, value4]));
19830
+ const array2 = ArraySchema(Tuple3([key2, value4]));
19687
19831
  return (input, ast, options2) => {
19688
19832
  if (input instanceof globalThis.Map) {
19689
19833
  return mapBothEager2(decodeUnknownEffect(array2)([...input], options2), {
@@ -19705,7 +19849,7 @@ function ReadonlyMap(key, value3) {
19705
19849
  Type: `globalThis.ReadonlyMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`
19706
19850
  }),
19707
19851
  expected: "ReadonlyMap",
19708
- toCodec: ([key2, value4]) => link()(ArraySchema(Tuple2([key2, value4])), transform2({
19852
+ toCodec: ([key2, value4]) => link()(ArraySchema(Tuple3([key2, value4])), transform2({
19709
19853
  decode: (entries3) => new globalThis.Map(entries3),
19710
19854
  encode: (map12) => [...map12.entries()]
19711
19855
  }))
@@ -19758,7 +19902,7 @@ var RegExp3 = /* @__PURE__ */ instanceOf(globalThis.RegExp, {
19758
19902
  Type: `globalThis.RegExp`
19759
19903
  }),
19760
19904
  expected: "RegExp",
19761
- toCodecJson: () => link()(Struct({
19905
+ toCodecJson: () => link()(Struct2({
19762
19906
  source: String6,
19763
19907
  flags: String6
19764
19908
  }), transformEffect2({
@@ -19825,7 +19969,7 @@ var File = /* @__PURE__ */ instanceOf(globalThis.File, {
19825
19969
  Type: `globalThis.File`
19826
19970
  }),
19827
19971
  expected: "File",
19828
- toCodecJson: () => link()(Struct({
19972
+ toCodecJson: () => link()(Struct2({
19829
19973
  data: String6.check(isBase64()),
19830
19974
  type: String6,
19831
19975
  name: String6,
@@ -19869,10 +20013,10 @@ var FormData2 = /* @__PURE__ */ instanceOf(globalThis.FormData, {
19869
20013
  Type: `globalThis.FormData`
19870
20014
  }),
19871
20015
  expected: "FormData",
19872
- toCodecJson: () => link()(ArraySchema(Tuple2([String6, Union2([Struct({
20016
+ toCodecJson: () => link()(ArraySchema(Tuple3([String6, Union2([Struct2({
19873
20017
  _tag: tag("String"),
19874
20018
  value: String6
19875
- }), Struct({
20019
+ }), Struct2({
19876
20020
  _tag: tag("File"),
19877
20021
  value: File
19878
20022
  })])])), transformEffect2({
@@ -19947,10 +20091,10 @@ var StringFromUriComponent = /* @__PURE__ */ String6.annotate({
19947
20091
  expected: "a URI component encoded string that will be decoded as a UTF-8 string"
19948
20092
  }).pipe(/* @__PURE__ */ decodeTo2(String6, stringFromUriComponent));
19949
20093
  var PropertyKey = /* @__PURE__ */ Union2([Finite, Symbol3, String6]);
19950
- var StandardSchemaV1FailureResult = /* @__PURE__ */ Struct({
19951
- issues: /* @__PURE__ */ ArraySchema(/* @__PURE__ */ Struct({
20094
+ var StandardSchemaV1FailureResult = /* @__PURE__ */ Struct2({
20095
+ issues: /* @__PURE__ */ ArraySchema(/* @__PURE__ */ Struct2({
19952
20096
  message: String6,
19953
- path: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(/* @__PURE__ */ Union2([PropertyKey, /* @__PURE__ */ Struct({
20097
+ path: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(/* @__PURE__ */ Union2([PropertyKey, /* @__PURE__ */ Struct2({
19954
20098
  key: PropertyKey
19955
20099
  })])))
19956
20100
  }))
@@ -20091,13 +20235,13 @@ function CauseReason(error, defect) {
20091
20235
  importDeclarations: [`import * as Cause from "effect/Cause"`]
20092
20236
  }),
20093
20237
  expected: "Cause.Failure",
20094
- toCodec: ([error2, defect2]) => link()(Union2([Struct({
20238
+ toCodec: ([error2, defect2]) => link()(Union2([Struct2({
20095
20239
  _tag: Literal2("Fail"),
20096
20240
  error: error2
20097
- }), Struct({
20241
+ }), Struct2({
20098
20242
  _tag: Literal2("Die"),
20099
20243
  defect: defect2
20100
- }), Struct({
20244
+ }), Struct2({
20101
20245
  _tag: Literal2("Interrupt"),
20102
20246
  fiberId: UndefinedOr(Finite)
20103
20247
  })]), transform2({
@@ -20395,7 +20539,7 @@ var DateTimeZoned = /* @__PURE__ */ declare((u) => isDateTime2(u) && isZoned2(u)
20395
20539
  constraint
20396
20540
  }) => {
20397
20541
  const [minimum, maximum] = dateTimeArbitraryBounds(constraint, arbitraryMinimumZonedDateTimeTimestamp, arbitraryMaximumZonedDateTimeTimestamp);
20398
- return linkDecoding()(Struct({
20542
+ return linkDecoding()(Struct2({
20399
20543
  epochMilliseconds: dateTimeArbitraryInteger(minimum, maximum),
20400
20544
  timeZone: timeZoneArbitrarySchema()
20401
20545
  }), transform(({
@@ -20575,14 +20719,14 @@ var Duration = /* @__PURE__ */ declare(isDuration, {
20575
20719
  importDeclarations: [`import * as Duration from "effect/Duration"`]
20576
20720
  }),
20577
20721
  expected: "Duration",
20578
- toCodecJson: () => link()(Union2([Struct({
20722
+ toCodecJson: () => link()(Union2([Struct2({
20579
20723
  _tag: Literal2("Infinity")
20580
- }), Struct({
20724
+ }), Struct2({
20581
20725
  _tag: Literal2("NegativeInfinity")
20582
- }), Struct({
20726
+ }), Struct2({
20583
20727
  _tag: Literal2("Nanos"),
20584
20728
  value: BigInt6
20585
- }), Struct({
20729
+ }), Struct2({
20586
20730
  _tag: Literal2("Millis"),
20587
20731
  value: Int
20588
20732
  })]), transform2({
@@ -20773,10 +20917,10 @@ function Exit(value3, error, defect) {
20773
20917
  importDeclarations: [`import * as Exit from "effect/Exit"`]
20774
20918
  }),
20775
20919
  expected: "Exit",
20776
- toCodec: ([value4, error2, defect2]) => link()(Union2([Struct({
20920
+ toCodec: ([value4, error2, defect2]) => link()(Union2([Struct2({
20777
20921
  _tag: Literal2("Success"),
20778
20922
  value: value4
20779
- }), Struct({
20923
+ }), Struct2({
20780
20924
  _tag: Literal2("Failure"),
20781
20925
  cause: Cause(error2, defect2)
20782
20926
  })]), transform2({
@@ -20797,13 +20941,13 @@ function Exit(value3, error, defect) {
20797
20941
  });
20798
20942
  }
20799
20943
  function graphEncodedSchema(type, node, edge) {
20800
- return Struct({
20944
+ return Struct2({
20801
20945
  type: Literal2(type),
20802
- nodes: ArraySchema(Struct({
20946
+ nodes: ArraySchema(Struct2({
20803
20947
  index: Natural,
20804
20948
  data: node
20805
20949
  })),
20806
- edges: ArraySchema(Struct({
20950
+ edges: ArraySchema(Struct2({
20807
20951
  index: Natural,
20808
20952
  source: Natural,
20809
20953
  target: Natural,
@@ -20872,9 +21016,9 @@ function graphToEquivalence(node, edge) {
20872
21016
  };
20873
21017
  }
20874
21018
  function graphToArbitrary(type, node, edge) {
20875
- return linkDecoding()(Union2([Null2, Struct({
21019
+ return linkDecoding()(Union2([Null2, Struct2({
20876
21020
  nodes: NonEmptyArray(node),
20877
- edges: ArraySchema(Tuple2([Natural, Natural, edge]))
21021
+ edges: ArraySchema(Tuple3([Natural, Natural, edge]))
20878
21022
  })]), transform((input) => {
20879
21023
  if (input === null) return hydrate({
20880
21024
  type,
@@ -20942,7 +21086,7 @@ function hashMapLink(entries3) {
20942
21086
  }
20943
21087
  function HashMap(key, value3) {
20944
21088
  const schema = declareConstructor()([key, value3], ([key2, value4]) => {
20945
- const entries3 = ArraySchema(Tuple2([key2, value4]));
21089
+ const entries3 = ArraySchema(Tuple3([key2, value4]));
20946
21090
  return (input, ast, options2) => {
20947
21091
  if (isHashMap2(input)) {
20948
21092
  return mapBothEager2(decodeUnknownEffect(entries3)(toEntries2(input), options2), {
@@ -20965,11 +21109,11 @@ function HashMap(key, value3) {
20965
21109
  importDeclarations: [`import * as HashMap from "effect/HashMap"`]
20966
21110
  }),
20967
21111
  expected: "HashMap",
20968
- toCodec: ([key2, value4]) => hashMapLink(ArraySchema(Tuple2([key2, value4]))),
21112
+ toCodec: ([key2, value4]) => hashMapLink(ArraySchema(Tuple3([key2, value4]))),
20969
21113
  toCodecArbitrary: ({
20970
21114
  constraint,
20971
21115
  typeParameters: [key2, value4]
20972
- }) => hashMapLink(withArrayLengthConstraints(ArraySchema(Tuple2([key2, value4])).check(isUniqueKey()), constraint?.minSize, constraint?.maxSize)),
21116
+ }) => hashMapLink(withArrayLengthConstraints(ArraySchema(Tuple3([key2, value4])).check(isUniqueKey()), constraint?.minSize, constraint?.maxSize)),
20973
21117
  toEquivalence: ([key2, value4]) => makeCompareMap(key2, value4)
20974
21118
  });
20975
21119
  return make23(schema.ast, {
@@ -21025,7 +21169,7 @@ function Option(value3) {
21025
21169
  return succeedNone2;
21026
21170
  }
21027
21171
  return mapBothEager2(decodeUnknownEffect(value4)(input.value, options2), {
21028
- onSuccess: some2,
21172
+ onSuccess: some3,
21029
21173
  onFailure: (issue) => makeCompositeAtKey(ast, "value", issue, input, options2)
21030
21174
  });
21031
21175
  }
@@ -21043,13 +21187,13 @@ function Option(value3) {
21043
21187
  importDeclarations: [`import * as Option from "effect/Option"`]
21044
21188
  }),
21045
21189
  expected: "Option",
21046
- toCodec: ([value4]) => link()(Union2([Struct({
21190
+ toCodec: ([value4]) => link()(Union2([Struct2({
21047
21191
  _tag: Literal2("Some"),
21048
21192
  value: value4
21049
- }), Struct({
21193
+ }), Struct2({
21050
21194
  _tag: Literal2("None")
21051
21195
  })]), transform2({
21052
- decode: (e) => e._tag === "None" ? none2() : some2(e.value),
21196
+ decode: (e) => e._tag === "None" ? none2() : some3(e.value),
21053
21197
  encode: (o) => isSome2(o) ? {
21054
21198
  _tag: "Some",
21055
21199
  value: o.value
@@ -21138,7 +21282,7 @@ var UrlParams = /* @__PURE__ */ declare(isUrlParams, {
21138
21282
  }),
21139
21283
  expected: "UrlParams",
21140
21284
  toEquivalence: () => Equivalence6,
21141
- toCodec: () => link()(ArraySchema(Tuple2([String6, String6])), transform2({
21285
+ toCodec: () => link()(ArraySchema(Tuple3([String6, String6])), transform2({
21142
21286
  decode: make16,
21143
21287
  encode: (self) => self.params.map(([key, value3]) => [key, unwrap(value3)])
21144
21288
  }))
@@ -21164,8 +21308,8 @@ function OptionFromOptionalNullOr(schema, options2) {
21164
21308
  const onNoneEncoding = options2 === void 0 ? "omit" : options2.onNoneEncoding;
21165
21309
  const noneValue = onNoneEncoding === null ? null : void 0;
21166
21310
  return optional2(NullOr(schema)).pipe(decodeTo2(Option(toType2(schema)), transformOptional2({
21167
- decode: (oe) => oe.pipe(filter(isNotNullish), some2),
21168
- encode: onNoneEncoding === "omit" ? flatten : (ot) => some2(getOrElse(flatten(ot), () => noneValue))
21311
+ decode: (oe) => oe.pipe(filter(isNotNullish), some3),
21312
+ encode: onNoneEncoding === "omit" ? flatten : (ot) => some3(getOrElse(flatten(ot), () => noneValue))
21169
21313
  })));
21170
21314
  }
21171
21315
  function Redacted(value3, options2) {
@@ -21259,10 +21403,10 @@ function Result(success, failure) {
21259
21403
  importDeclarations: [`import * as Result from "effect/Result"`]
21260
21404
  }),
21261
21405
  expected: "Result",
21262
- toCodec: ([success2, failure2]) => link()(Union2([Struct({
21406
+ toCodec: ([success2, failure2]) => link()(Union2([Struct2({
21263
21407
  _tag: Literal2("Success"),
21264
21408
  success: success2
21265
- }), Struct({
21409
+ }), Struct2({
21266
21410
  _tag: Literal2("Failure"),
21267
21411
  failure: failure2
21268
21412
  })]), transform2({
@@ -21336,7 +21480,7 @@ function makeClass(Inherited, identifier2, struct2, annotations2, proto) {
21336
21480
  }
21337
21481
  static extend(identifier3) {
21338
21482
  return (schema, annotations3) => {
21339
- const extension = isStruct(schema) ? schema : Struct(schema);
21483
+ const extension = isStruct(schema) ? schema : Struct2(schema);
21340
21484
  const fields = {
21341
21485
  ...struct2.fields,
21342
21486
  ...extension.fields
@@ -21397,7 +21541,7 @@ function isStruct(schema) {
21397
21541
  return isSchema(schema);
21398
21542
  }
21399
21543
  var Class4 = (identifier2) => (schema, annotations2) => {
21400
- const struct2 = isStruct(schema) ? schema : Struct(schema);
21544
+ const struct2 = isStruct(schema) ? schema : Struct2(schema);
21401
21545
  return makeClass(Class3, identifier2, struct2, annotations2, (identifier3) => ({
21402
21546
  toString() {
21403
21547
  return `${identifier3}(${format({
@@ -21418,7 +21562,7 @@ var TaggedClass2 = (identifier2) => {
21418
21562
  };
21419
21563
  };
21420
21564
  var Error4 = (identifier2) => (schema, annotations2) => {
21421
- const struct2 = isStruct(schema) ? schema : Struct(schema);
21565
+ const struct2 = isStruct(schema) ? schema : Struct2(schema);
21422
21566
  const self = makeClass(Error2, identifier2, struct2, annotations2, (identifier3) => ({
21423
21567
  name: identifier3
21424
21568
  }));
@@ -21498,7 +21642,7 @@ var Json2 = /* @__PURE__ */ make23(/* @__PURE__ */ annotate(Json, {
21498
21642
  })
21499
21643
  }));
21500
21644
  var JsonObject = /* @__PURE__ */ Record(String6, Json2);
21501
- var JsonError = /* @__PURE__ */ Struct({
21645
+ var JsonError = /* @__PURE__ */ Struct2({
21502
21646
  message: String6,
21503
21647
  name: /* @__PURE__ */ optionalKey2(String6),
21504
21648
  stack: /* @__PURE__ */ optionalKey2(String6),
@@ -21577,7 +21721,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
21577
21721
  if (buffer3.length === 0) {
21578
21722
  return done2(state.value);
21579
21723
  }
21580
- done3 = some2(state.value);
21724
+ done3 = some3(state.value);
21581
21725
  break;
21582
21726
  }
21583
21727
  buffer3.push(state.value);
@@ -21935,6 +22079,11 @@ var onByDefault = Schema_exports.Boolean.pipe(Schema_exports.withDecodingDefault
21935
22079
  var offByDefault = Schema_exports.Boolean.pipe(Schema_exports.withDecodingDefaultKey(Effect_exports.succeed(false)));
21936
22080
  var WorkspaceImageOs = Schema_exports.Literals(["fedora", "arch", "nix", "ubuntu"]);
21937
22081
  var SessionRuntime = Schema_exports.Literals(["docker", "boat"]);
22082
+ var SessionRuntimeOffer = class extends Schema_exports.Class("SessionRuntimeOffer")({
22083
+ offered: Schema_exports.NonEmptyArray(SessionRuntime),
22084
+ default: SessionRuntime
22085
+ }) {
22086
+ };
21938
22087
  var DEFAULT_WORKSPACE_PACKAGES = [
21939
22088
  "pnpm",
21940
22089
  "bun",
@@ -22609,7 +22758,7 @@ var empty14 = /* @__PURE__ */ makeWith("GET", "", empty10, /* @__PURE__ */ none2
22609
22758
  function toUrl(self) {
22610
22759
  const r = make25(self.url, self.urlParams, getOrUndefined(self.hash));
22611
22760
  if (isSuccess2(r)) {
22612
- return some2(r.success);
22761
+ return some3(r.success);
22613
22762
  }
22614
22763
  return none2();
22615
22764
  }
@@ -23845,11 +23994,11 @@ var makeChannel = (headers) => fromTransform((upstream) => map7(makeConfig(heade
23845
23994
  };
23846
23995
  },
23847
23996
  onError(error_) {
23848
- exit3 = some2(fail4(convertError(error_)));
23997
+ exit3 = some3(fail4(convertError(error_)));
23849
23998
  },
23850
23999
  onDone() {
23851
24000
  if (isNone2(exit3)) {
23852
- exit3 = some2(fail4(Done2()));
24001
+ exit3 = some3(fail4(Done2()));
23853
24002
  }
23854
24003
  }
23855
24004
  });
@@ -23865,7 +24014,7 @@ var makeChannel = (headers) => fromTransform((upstream) => map7(makeConfig(heade
23865
24014
  parser.end();
23866
24015
  }
23867
24016
  } else {
23868
- exit3 = some2(failCause2(cause));
24017
+ exit3 = some3(failCause2(cause));
23869
24018
  }
23870
24019
  return void_4;
23871
24020
  }));
@@ -24595,7 +24744,7 @@ var SseError = class extends (/* @__PURE__ */ TaggedError2("SseError")) {
24595
24744
  }
24596
24745
  };
24597
24746
  var defaultMaxEventSize = 10 * 1024 * 1024;
24598
- var EventEncoded = /* @__PURE__ */ Struct({
24747
+ var EventEncoded = /* @__PURE__ */ Struct2({
24599
24748
  id: /* @__PURE__ */ optional2(String6),
24600
24749
  event: String6,
24601
24750
  data: String6
@@ -24718,7 +24867,7 @@ function asNoContent(options2) {
24718
24867
  }
24719
24868
  var streamSchema = /* @__PURE__ */ declare(isStream);
24720
24869
  var StreamSse = (options2) => {
24721
- const events = options2.events ?? (options2.data === void 0 ? void 0 : Struct({
24870
+ const events = options2.events ?? (options2.data === void 0 ? void 0 : Struct2({
24722
24871
  ...EventEncoded.fields,
24723
24872
  data: fromJsonString2(options2.data)
24724
24873
  }));
@@ -24763,7 +24912,7 @@ function WithHeaders(schema, headers) {
24763
24912
  return make23(withHeadersValueSchema.ast, {
24764
24913
  [WithHeadersTypeId]: WithHeadersTypeId,
24765
24914
  schema,
24766
- headers: isSchema(headers) ? headers : Struct(headers)
24915
+ headers: isSchema(headers) ? headers : Struct2(headers)
24767
24916
  });
24768
24917
  }
24769
24918
  var withHeaders = (options2) => ({
@@ -24782,10 +24931,10 @@ function rebuildWithHeaders(self, schema, headers) {
24782
24931
  function encodeToWithHeaders(options2, transformation) {
24783
24932
  return (self) => {
24784
24933
  const body = options2.body;
24785
- const headers = Struct(options2.headers);
24934
+ const headers = Struct2(options2.headers);
24786
24935
  const status2 = resolveHttpApiStatus(body.ast);
24787
24936
  const encoding = resolveHttpApiEncoding(body.ast);
24788
- return Struct({
24937
+ return Struct2({
24789
24938
  body,
24790
24939
  headers
24791
24940
  }).pipe(decodeTo2(toType2(self), transform2(transformation))).annotate({
@@ -25033,12 +25182,12 @@ var make30 = (method) => (identifier2, path3, options2) => {
25033
25182
  function ensureStruct(params, transform3) {
25034
25183
  if (params === void 0) return void 0;
25035
25184
  if (isSchema(params)) return transform3(params);
25036
- return transform3(Struct(params));
25185
+ return transform3(Struct2(params));
25037
25186
  }
25038
25187
  function getPayload(payload, method, disableCodecs) {
25039
25188
  const result3 = /* @__PURE__ */ new Map();
25040
25189
  if (payload === void 0) return result3;
25041
- const schemas = Array.isArray(payload) ? payload : isSchema(payload) ? [payload] : [Struct(payload).pipe(asFormUrlEncoded())];
25190
+ const schemas = Array.isArray(payload) ? payload : isSchema(payload) ? [payload] : [Struct2(payload).pipe(asFormUrlEncoded())];
25042
25191
  const transform3 = disableCodecs ? identity : transformPayload;
25043
25192
  for (const schema of schemas) {
25044
25193
  const encoding = getPayloadEncoding(schema.ast, method);
@@ -26442,13 +26591,13 @@ var make32 = (identifier2, options2) => makeProto4({
26442
26591
  annotations: empty3()
26443
26592
  });
26444
26593
 
26445
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/person-id.js
26594
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/person-id.js
26446
26595
  var RESOURCE_DOMAIN_ID_PREFIX = "rdm:";
26447
26596
  var isResourceDomainId = (id2) => id2.startsWith(RESOURCE_DOMAIN_ID_PREFIX);
26448
26597
  var NOT_A_PERSON = "names a resource domain, which never holds a login or a provider credential and never runs a harness";
26449
26598
  var PersonId = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed(), Schema_exports.makeFilter((id2) => isResourceDomainId(id2) ? NOT_A_PERSON : void 0));
26450
26599
 
26451
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/connected-accounts.js
26600
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/connected-accounts.js
26452
26601
  var NonEmptyString2 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
26453
26602
  var connectedAccountProviderSchema = Schema_exports.Literals(["claude", "codex", "github"]);
26454
26603
  var connectedAccountStatusSchema = Schema_exports.Literals(["active", "invalid", "archived"]);
@@ -26633,7 +26782,7 @@ var ConnectedAccountsGroup = HttpApiGroup_exports.make("connectedAccounts").add(
26633
26782
  ]
26634
26783
  })).annotate(OpenApi_exports.Description, "Connected provider accounts (Claude / Codex / GitHub credentials). Secret material is never returned by any endpoint.");
26635
26784
 
26636
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/access-tokens.js
26785
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/access-tokens.js
26637
26786
  var NonEmptyString3 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
26638
26787
  var accessTokenScopeSchema = Schema_exports.Literals([
26639
26788
  "session:read",
@@ -26692,10 +26841,176 @@ var AccessTokensGroup = HttpApiGroup_exports.make("accessTokens").add(HttpApiEnd
26692
26841
  error: [AccessTokenBadRequestError, AccessTokenNotFoundError, AccessTokenInternalServerError]
26693
26842
  })).annotate(OpenApi_exports.Description, "Scoped bearer tokens for the session surface.");
26694
26843
 
26695
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-accounts.js
26844
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-failures.js
26845
+ var BOAT_FAILURE_KINDS = [
26846
+ "key-refused",
26847
+ "key-expired",
26848
+ "permission-missing",
26849
+ "sandbox-outside-key",
26850
+ "organization-mismatch",
26851
+ "account-suspended",
26852
+ "billing-required",
26853
+ "running-limit",
26854
+ "member-cap",
26855
+ "rate-limited",
26856
+ "trial-restricted",
26857
+ "no-machine",
26858
+ "snapshot-allowance-full",
26859
+ "no-answer",
26860
+ "refused"
26861
+ ];
26862
+ var boatFailureKindSchema = Schema_exports.Literals(BOAT_FAILURE_KINDS);
26863
+ var boatFailureSchema = Schema_exports.Struct({
26864
+ kind: boatFailureKindSchema,
26865
+ /** Whether the same call may succeed later as it stands (see `BOAT_RETRYABLE_FAILURE_KINDS`). */
26866
+ retryable: Schema_exports.Boolean,
26867
+ /** sealant's call that Boat refused (`create`, `saveSnapshot`, `verify`), when known. */
26868
+ operation: Schema_exports.optional(Schema_exports.String),
26869
+ /** Boat's error code (`api_key_expired`). Absent when Boat did not answer with one. */
26870
+ code: Schema_exports.optional(Schema_exports.String),
26871
+ /** Boat's own message, bounded and with anything shaped like a secret removed. */
26872
+ message: Schema_exports.optional(Schema_exports.String),
26873
+ /** Boat's request id (`req_…`), to give Boat's support. */
26874
+ requestId: Schema_exports.optional(Schema_exports.String),
26875
+ /** The HTTP status Boat answered with. Absent when it did not answer. */
26876
+ status: Schema_exports.optional(Schema_exports.Int),
26877
+ /** The Boat permission the call needs (`sandbox.create`), for `permission-missing`. */
26878
+ permission: Schema_exports.optional(Schema_exports.String),
26879
+ /** Seconds Boat asked to wait before trying again. */
26880
+ retryAfterSeconds: Schema_exports.optional(Schema_exports.Int),
26881
+ /** When Boat said the next start is allowed (ISO 8601). */
26882
+ retryAt: Schema_exports.optional(Schema_exports.String),
26883
+ /** Boat's billing link, for `billing-required`. */
26884
+ billingUrl: Schema_exports.optional(Schema_exports.String)
26885
+ });
26886
+
26887
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-accounts.js
26696
26888
  var NonEmptyString4 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
26697
26889
  var SecretString = Schema_exports.String.check(Schema_exports.isNonEmpty());
26698
26890
  var BoatAccountId = Schema_exports.String.check(Schema_exports.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/));
26891
+ var BOAT_DEFAULT_ACCOUNT_ID = "default";
26892
+ var BoatAccountRef = Schema_exports.Union([BoatAccountId, Schema_exports.Literal(BOAT_DEFAULT_ACCOUNT_ID)]);
26893
+ var boatKeyNotObservedSchema = Schema_exports.Struct({
26894
+ observed: Schema_exports.Literal(false),
26895
+ reason: Schema_exports.Literals(["refused", "no-answer", "not-listed", "unreadable"]),
26896
+ boat: Schema_exports.optional(boatFailureSchema)
26897
+ });
26898
+ var observedOr = (fields) => Schema_exports.Union([
26899
+ Schema_exports.Struct({ observed: Schema_exports.Literal(true), ...fields }),
26900
+ boatKeyNotObservedSchema
26901
+ ]);
26902
+ var boatWalletFields = {
26903
+ kind: Schema_exports.Literals(["personal", "organization"]),
26904
+ organizationId: Schema_exports.optional(Schema_exports.String),
26905
+ organizationName: Schema_exports.optional(Schema_exports.String),
26906
+ role: Schema_exports.optional(Schema_exports.String)
26907
+ };
26908
+ var boatWalletSchema = Schema_exports.Struct(boatWalletFields);
26909
+ var boatKeyWalletChoiceSchema = Schema_exports.Struct({
26910
+ id: Schema_exports.String,
26911
+ kind: Schema_exports.Literals(["personal", "organization"]),
26912
+ name: Schema_exports.optional(Schema_exports.String),
26913
+ role: Schema_exports.optional(Schema_exports.String),
26914
+ active: Schema_exports.Boolean
26915
+ });
26916
+ var boatKeyBillingSchema = Schema_exports.Union([
26917
+ Schema_exports.Struct({ mode: Schema_exports.Literal("pinned"), organization: Schema_exports.String }),
26918
+ Schema_exports.Struct({ mode: Schema_exports.Literal("key-organization") }),
26919
+ Schema_exports.Struct({
26920
+ mode: Schema_exports.Literal("active-wallet"),
26921
+ walletChanged: Schema_exports.optional(Schema_exports.Struct({ from: boatWalletSchema, observedAt: Schema_exports.String }))
26922
+ })
26923
+ ]);
26924
+ var boatKeyReportSchema = Schema_exports.Struct({
26925
+ observedAt: Schema_exports.String,
26926
+ /** The Boat organization the account bills (`X-Boat-Org` on every request), or null. */
26927
+ organization: Schema_exports.NullOr(Schema_exports.String),
26928
+ /** Who the key is (`GET /me`). */
26929
+ identity: observedOr({
26930
+ /**
26931
+ * Boat's id for the account the key belongs to (`GET /me` `user.id`). A Boat account, never a
26932
+ * Sealant person: it is not a `PersonId` and names no one on this install.
26933
+ */
26934
+ accountId: Schema_exports.optional(Schema_exports.String),
26935
+ login: Schema_exports.optional(Schema_exports.String),
26936
+ displayName: Schema_exports.optional(Schema_exports.String),
26937
+ serviceAccount: Schema_exports.optional(Schema_exports.Boolean),
26938
+ accountStatus: Schema_exports.Literals(["active", "suspended", "closed", "unknown"])
26939
+ }),
26940
+ /** A personal (account) key, or an organization's key. */
26941
+ keyKind: observedOr({ kind: Schema_exports.Literals(["personal", "organization"]) }),
26942
+ /** Which wallet a VM started with the key bills (`GET /limits`). */
26943
+ wallet: observedOr(boatWalletFields),
26944
+ /**
26945
+ * The wallets the key's Boat account can bill (`GET /orgs`), the active one marked. Absent in
26946
+ * reports made before sealant read them.
26947
+ */
26948
+ wallets: Schema_exports.optional(observedOr({ choices: Schema_exports.Array(boatKeyWalletChoiceSchema) })),
26949
+ /**
26950
+ * Whether the account names the wallet it bills, or follows the key's active wallet. Absent in
26951
+ * reports made before sealant said so.
26952
+ */
26953
+ billing: Schema_exports.optional(boatKeyBillingSchema),
26954
+ /** The permissions sealant needs of every key, from the Boat calls it makes. */
26955
+ requiredPermissions: Schema_exports.Array(Schema_exports.String),
26956
+ /** The key's permissions (`GET /api-keys`), and which of the required ones it lacks. */
26957
+ permissions: observedOr({
26958
+ held: Schema_exports.Array(Schema_exports.String),
26959
+ missing: Schema_exports.Array(Schema_exports.String),
26960
+ /** The key is limited to some VMs or environments: it cannot reach VMs sealant creates. */
26961
+ limitedToSandboxes: Schema_exports.Boolean
26962
+ }),
26963
+ /** When the key expires; `expiresAt` null: it never does. */
26964
+ expiry: observedOr({
26965
+ expiresAt: Schema_exports.NullOr(Schema_exports.String),
26966
+ expired: Schema_exports.Boolean,
26967
+ expiringSoon: Schema_exports.Boolean
26968
+ }),
26969
+ /** Whether the wallet can start a VM now, why not, and its running and allowed VMs. */
26970
+ start: observedOr({
26971
+ canStart: Schema_exports.Boolean,
26972
+ blockedReason: Schema_exports.optional(Schema_exports.String),
26973
+ billingStatus: Schema_exports.optional(Schema_exports.String),
26974
+ runningVms: Schema_exports.Int,
26975
+ allowedVms: Schema_exports.Int
26976
+ }),
26977
+ /** Saved snapshot slots of the wallet (`GET /saved-snapshots`). */
26978
+ snapshots: observedOr({ used: Schema_exports.Int, included: Schema_exports.Int })
26979
+ });
26980
+ var BOAT_KEY_PROOF_STEPS = [
26981
+ "start-vm",
26982
+ "run-command",
26983
+ "publish-port",
26984
+ "save-snapshot",
26985
+ "delete-snapshot",
26986
+ "delete-vm"
26987
+ ];
26988
+ var boatKeyProofStepSchema = Schema_exports.Struct({
26989
+ step: Schema_exports.Literals(BOAT_KEY_PROOF_STEPS),
26990
+ outcome: Schema_exports.Literals(["passed", "refused", "no-answer", "not-reached"]),
26991
+ boat: Schema_exports.optional(boatFailureSchema)
26992
+ });
26993
+ var boatKeyProofSchema = Schema_exports.Struct({
26994
+ proofId: Schema_exports.String,
26995
+ startedAt: Schema_exports.String,
26996
+ finishedAt: Schema_exports.String,
26997
+ outcome: Schema_exports.Literals(["passed", "refused", "interrupted"]),
26998
+ steps: Schema_exports.Array(boatKeyProofStepSchema),
26999
+ starts: Schema_exports.Int,
27000
+ leftBehind: Schema_exports.Struct({
27001
+ vm: Schema_exports.NullOr(Schema_exports.String),
27002
+ snapshot: Schema_exports.NullOr(Schema_exports.String),
27003
+ removalConfirmed: Schema_exports.Boolean
27004
+ })
27005
+ });
27006
+ var boatUnreachableSchema = Schema_exports.Struct({
27007
+ /** Saved images, by snapshot name (Saved snapshots in Boat). */
27008
+ savedImages: Schema_exports.Array(Schema_exports.String),
27009
+ /** Runs whose VM it was, by run id: each ended as gone, its VM in no wallet the key can bill. */
27010
+ runs: Schema_exports.optional(Schema_exports.Array(Schema_exports.String)),
27011
+ /** Image builds, by publication id: abandoned, and built again in the wallet the key bills now. */
27012
+ builds: Schema_exports.optional(Schema_exports.Array(Schema_exports.String))
27013
+ });
26699
27014
  var boatAccountSchema = Schema_exports.Struct({
26700
27015
  boatAccountId: BoatAccountId,
26701
27016
  label: NonEmptyString4,
@@ -26703,16 +27018,49 @@ var boatAccountSchema = Schema_exports.Struct({
26703
27018
  state: Schema_exports.Literals(["active", "removing"]),
26704
27019
  createdAt: Schema_exports.String,
26705
27020
  /** When its key was last replaced; null when it still has the key it was created with. */
26706
- keyRotatedAt: Schema_exports.NullOr(Schema_exports.String)
27021
+ keyRotatedAt: Schema_exports.NullOr(Schema_exports.String),
27022
+ /**
27023
+ * The wallet the account bills, named (`X-Boat-Org`) on every request it makes: an
27024
+ * organization's id, or `personal`. Every personal key is pinned (to the wallet it billed when it
27025
+ * was connected, unless the caller named another). Null: an organization's key, which has one
27026
+ * wallet, or an account connected before sealant pinned accounts that the worker has not pinned yet.
27027
+ */
27028
+ organization: Schema_exports.optional(Schema_exports.NullOr(Schema_exports.String)),
27029
+ /** The key's last report, with when it was observed; null until the key is checked. */
27030
+ report: Schema_exports.optional(Schema_exports.NullOr(boatKeyReportSchema)),
27031
+ /** The account's last full check (`prove`), kept beside its report; null until it is proven. */
27032
+ lastProof: Schema_exports.optional(Schema_exports.NullOr(boatKeyProofSchema)),
27033
+ /** What the account made in Boat that sealant cannot reach (`boatUnreachableSchema`). */
27034
+ unreachable: Schema_exports.optional(Schema_exports.NullOr(boatUnreachableSchema))
27035
+ });
27036
+ var boatInstallKeySchema = Schema_exports.Struct({
27037
+ label: NonEmptyString4,
27038
+ /** The key's last report, with when it was observed; null until it is checked. */
27039
+ report: Schema_exports.NullOr(boatKeyReportSchema),
27040
+ /** What the install's key made in Boat that sealant cannot reach (`boatUnreachableSchema`). */
27041
+ unreachable: Schema_exports.optional(Schema_exports.NullOr(boatUnreachableSchema))
26707
27042
  });
26708
27043
  var createBoatAccountRequestSchema = Schema_exports.Struct({
26709
27044
  /** The caller's name for the account (an organization's name, say). At most 200 characters. */
26710
27045
  label: NonEmptyString4,
26711
- /** The Boat API key. Checked with Boat by one read-only call before it is stored. */
26712
- apiKey: SecretString
27046
+ /** The Boat key. Checked with Boat by read-only calls before it is stored; whitespace around it is trimmed. */
27047
+ apiKey: SecretString,
27048
+ /**
27049
+ * For a personal key: the Boat organization to bill (its id or name), sent as `X-Boat-Org` on
27050
+ * every request for the account, so billing never follows the key's active wallet.
27051
+ */
27052
+ organization: Schema_exports.optional(NonEmptyString4)
27053
+ });
27054
+ var setBoatAccountOrganizationRequestSchema = Schema_exports.Struct({
27055
+ /**
27056
+ * The wallet to bill from now on: an organization's id (or name) from the key report's
27057
+ * `wallets`, or `personal` for the key's own Boat account. Only a personal key can be pointed at
27058
+ * a wallet. Null is refused: a personal key's account is never unpinned.
27059
+ */
27060
+ organization: Schema_exports.NullOr(NonEmptyString4)
26713
27061
  });
26714
27062
  var rotateBoatAccountKeyRequestSchema = Schema_exports.Struct({
26715
- /** The new Boat API key, for the same Boat account: it must see every VM the account runs. */
27063
+ /** The new Boat key, for the same Boat account: it must see every VM the account runs. */
26716
27064
  apiKey: SecretString
26717
27065
  });
26718
27066
  var listBoatAccountsResponseSchema = Schema_exports.Struct({
@@ -26722,7 +27070,14 @@ var BoatAccountBadRequestError = class extends Schema_exports.TaggedError()("Boa
26722
27070
  };
26723
27071
  var BoatAccountKeyRefusedError = class extends Schema_exports.TaggedError()("BoatAccountKeyRefusedError", {
26724
27072
  message: Schema_exports.String,
26725
- code: Schema_exports.Literals(["boat-key-refused", "boat-key-unverified"])
27073
+ code: Schema_exports.Literals([
27074
+ "boat-key-refused",
27075
+ "boat-key-unverified",
27076
+ "boat-key-missing-permissions"
27077
+ ]),
27078
+ missingPermissions: Schema_exports.optional(Schema_exports.Array(Schema_exports.String)),
27079
+ boat: Schema_exports.optional(boatFailureSchema),
27080
+ report: Schema_exports.optional(boatKeyReportSchema)
26726
27081
  }, { httpApiStatus: 422 }) {
26727
27082
  };
26728
27083
  var BoatAccountNotFoundError = class extends Schema_exports.TaggedError()("BoatAccountNotFoundError", { message: Schema_exports.String }, { httpApiStatus: 404 }) {
@@ -26733,9 +27088,14 @@ var BoatAccountConflictError = class extends Schema_exports.TaggedError()("BoatA
26733
27088
  "boat-account-in-use",
26734
27089
  "boat-key-cannot-see",
26735
27090
  "boat-account-removing",
26736
- "boat-account-changed"
27091
+ "boat-account-changed",
27092
+ "boat-account-environment",
27093
+ "boat-proof-running",
27094
+ "boat-key-organization",
27095
+ "boat-account-wallet-unresolved"
26737
27096
  ]),
26738
27097
  liveRuns: Schema_exports.optional(Schema_exports.Int),
27098
+ unsettledRuns: Schema_exports.optional(Schema_exports.Int),
26739
27099
  buildsInFlight: Schema_exports.optional(Schema_exports.Int),
26740
27100
  unseen: Schema_exports.optional(Schema_exports.Int)
26741
27101
  }, { httpApiStatus: 409 }) {
@@ -26745,6 +27105,7 @@ var BoatAccountServiceUnavailableError = class extends Schema_exports.TaggedErro
26745
27105
  var BoatAccountInternalServerError = class extends Schema_exports.TaggedError()("BoatAccountInternalServerError", { message: Schema_exports.String }, { httpApiStatus: 500 }) {
26746
27106
  };
26747
27107
  var boatAccountIdParams = Schema_exports.Struct({ boatAccountId: BoatAccountId });
27108
+ var boatAccountRefParams = Schema_exports.Struct({ boatAccountId: BoatAccountRef });
26748
27109
  var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEndpoint_exports.post("createBoatAccount", "/", {
26749
27110
  payload: createBoatAccountRequestSchema,
26750
27111
  success: boatAccountSchema.pipe(HttpApiSchema_exports.status(201)),
@@ -26758,7 +27119,7 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
26758
27119
  success: listBoatAccountsResponseSchema,
26759
27120
  error: [BoatAccountServiceUnavailableError, BoatAccountInternalServerError]
26760
27121
  })).add(HttpApiEndpoint_exports.put("rotateBoatAccountKey", "/:boatAccountId/key", {
26761
- params: boatAccountIdParams,
27122
+ params: boatAccountRefParams,
26762
27123
  payload: rotateBoatAccountKeyRequestSchema,
26763
27124
  success: boatAccountSchema,
26764
27125
  error: [
@@ -26770,10 +27131,67 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
26770
27131
  BoatAccountInternalServerError
26771
27132
  ]
26772
27133
  })).add(
27134
+ // Points the account at another wallet, without its key. What it made stays recorded in the
27135
+ // wallet it was made in; its saved images there are removed with requests that name it.
27136
+ HttpApiEndpoint_exports.put("setBoatAccountOrganization", "/:boatAccountId/organization", {
27137
+ params: boatAccountRefParams,
27138
+ payload: setBoatAccountOrganizationRequestSchema,
27139
+ success: boatAccountSchema,
27140
+ error: [
27141
+ BoatAccountBadRequestError,
27142
+ BoatAccountKeyRefusedError,
27143
+ BoatAccountNotFoundError,
27144
+ BoatAccountConflictError,
27145
+ BoatAccountServiceUnavailableError,
27146
+ BoatAccountInternalServerError
27147
+ ]
27148
+ })
27149
+ ).add(
27150
+ // The install's own key's last report (never the key).
27151
+ HttpApiEndpoint_exports.get("getBoatInstallKey", "/install-key", {
27152
+ success: boatInstallKeySchema,
27153
+ error: [BoatAccountServiceUnavailableError, BoatAccountInternalServerError]
27154
+ })
27155
+ ).add(
27156
+ // Checks the install's own key with Boat now (read-only) and stores the report it answers.
27157
+ HttpApiEndpoint_exports.post("checkBoatInstallKey", "/install-key", {
27158
+ success: boatInstallKeySchema,
27159
+ error: [
27160
+ BoatAccountKeyRefusedError,
27161
+ BoatAccountServiceUnavailableError,
27162
+ BoatAccountInternalServerError
27163
+ ]
27164
+ })
27165
+ ).add(
27166
+ // Checks a stored account's key with Boat again (read-only) and stores the report it answers.
27167
+ HttpApiEndpoint_exports.post("checkBoatAccount", "/:boatAccountId/check", {
27168
+ params: boatAccountIdParams,
27169
+ success: boatAccountSchema,
27170
+ error: [
27171
+ BoatAccountKeyRefusedError,
27172
+ BoatAccountNotFoundError,
27173
+ BoatAccountServiceUnavailableError,
27174
+ BoatAccountInternalServerError
27175
+ ]
27176
+ })
27177
+ ).add(
27178
+ // A full check: a throwaway VM is started, used and deleted, with a snapshot saved and
27179
+ // deleted; whatever it made is removed on every path. One per account at a time.
27180
+ HttpApiEndpoint_exports.post("proveBoatAccount", "/:boatAccountId/prove", {
27181
+ params: Schema_exports.Struct({ boatAccountId: BoatAccountId }),
27182
+ success: boatKeyProofSchema,
27183
+ error: [
27184
+ BoatAccountNotFoundError,
27185
+ BoatAccountConflictError,
27186
+ BoatAccountServiceUnavailableError,
27187
+ BoatAccountInternalServerError
27188
+ ]
27189
+ })
27190
+ ).add(
26773
27191
  // The removal's first step: the account takes no new workspace at once, and its saved images
26774
27192
  // are deleted from Boat by the worker before it is gone from the list.
26775
27193
  HttpApiEndpoint_exports.delete("removeBoatAccount", "/:boatAccountId", {
26776
- params: boatAccountIdParams,
27194
+ params: boatAccountRefParams,
26777
27195
  success: boatAccountSchema,
26778
27196
  error: [
26779
27197
  BoatAccountNotFoundError,
@@ -26782,9 +27200,9 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
26782
27200
  BoatAccountInternalServerError
26783
27201
  ]
26784
27202
  })
26785
- ).annotate(OpenApi_exports.Description, "The Boat API keys an install keeps beside its default one: one Boat account each, for the workspaces that name it.");
27203
+ ).annotate(OpenApi_exports.Description, "The Boat keys an install keeps beside its default one: one Boat account each, for the workspaces that name it.");
26786
27204
 
26787
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/budgets.js
27205
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/budgets.js
26788
27206
  var requestBudgetRefusalSchema = Schema_exports.Struct({
26789
27207
  phase: Schema_exports.Literal("before-work"),
26790
27208
  bucket: Schema_exports.Literals(["owner", "unowned", "key", "principal"])
@@ -26801,7 +27219,7 @@ var BudgetExceededError = class extends Schema_exports.TaggedError()("BudgetExce
26801
27219
  var RequestBudget = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestBudget", { error: BudgetExceededError }) {
26802
27220
  };
26803
27221
 
26804
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/github.js
27222
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/github.js
26805
27223
  var GitHubInstallationAccountTypeSchema = Schema_exports.Literals(["organization", "user"]);
26806
27224
  var GitHubInstallationStatusSchema = Schema_exports.Literals(["active", "suspended", "deleted"]);
26807
27225
  var GitHubInstallationRepositorySelectionSchema = Schema_exports.Literals(["all", "selected"]);
@@ -26942,7 +27360,7 @@ var GitHubGroup = HttpApiGroup_exports.make("github").add(HttpApiEndpoint_export
26942
27360
  })).annotate(OpenApi_exports.Description, "GitHub App installation and webhook control-plane operations.");
26943
27361
  var GitHubApi = HttpApi_exports.make("sealantGitHubApi").add(GitHubGroup).annotate(OpenApi_exports.Title, "Sealant Control Plane API - GitHub").annotate(OpenApi_exports.Version, "0.0.0");
26944
27362
 
26945
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/inference.js
27363
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/inference.js
26946
27364
  var NonEmptyString6 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
26947
27365
  var inferenceCredentialsSchema = Schema_exports.Struct({
26948
27366
  profileId: Schema_exports.optional(NonEmptyString6),
@@ -27056,7 +27474,7 @@ var InferenceGroup = HttpApiGroup_exports.make("inference").add(HttpApiEndpoint_
27056
27474
  ]
27057
27475
  })).annotate(OpenApi_exports.Description, "Inference on connected accounts, via the official agent SDKs \u2014 never raw model-API calls.");
27058
27476
 
27059
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/packages.js
27477
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/packages.js
27060
27478
  var NonEmptyString7 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
27061
27479
  var packageTargetOsSchema = Schema_exports.Literals(["arch", "fedora", "nix", "ubuntu"]);
27062
27480
  var packageResolutionStatusSchema = Schema_exports.Literals([
@@ -27114,7 +27532,7 @@ var PackagesGroup = HttpApiGroup_exports.make("packages").add(HttpApiEndpoint_ex
27114
27532
  error: [PackagesBadGatewayError, PackagesInternalServerError]
27115
27533
  })).annotate(OpenApi_exports.Description, "Package normalization and distro resolution operations.");
27116
27534
 
27117
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/profiles.js
27535
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/profiles.js
27118
27536
  var NonEmptyString8 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
27119
27537
  var profileStatusSchema = Schema_exports.Literals(["active", "archived"]);
27120
27538
  var profileSummarySchema = Schema_exports.Struct({
@@ -27197,7 +27615,7 @@ var ProfilesGroup = HttpApiGroup_exports.make("profiles").add(HttpApiEndpoint_ex
27197
27615
  })
27198
27616
  ).annotate(OpenApi_exports.Description, "Profiles and their per-provider connected-account credential bindings.");
27199
27617
 
27200
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/oci-names.js
27618
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/oci-names.js
27201
27619
  var REPOSITORY_COMPONENT = "[a-z0-9]+(?:(?:\\.|_|__|-+)[a-z0-9]+)*";
27202
27620
  var REPOSITORY = new RegExp(`^${REPOSITORY_COMPONENT}(?:/${REPOSITORY_COMPONENT})*$`);
27203
27621
  var REPOSITORY_MAX_LENGTH = 255;
@@ -27221,7 +27639,7 @@ var isOciReference = (value3) => isOciDigest(value3) || isOciTag(value3);
27221
27639
  var OCI_REPOSITORY_MESSAGE = "must be an OCI repository name: lowercase path components of [a-z0-9] joined by '.', '_', '__' or '-', separated by '/'";
27222
27640
  var OCI_REFERENCE_MESSAGE = "must be an OCI tag ([A-Za-z0-9_][A-Za-z0-9._-]{0,127}) or a digest (algorithm:encoded)";
27223
27641
 
27224
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/registries.js
27642
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/registries.js
27225
27643
  var NonEmptyString9 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
27226
27644
  var OciRepository = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciRepository(value3) ? void 0 : `repository ${OCI_REPOSITORY_MESSAGE}`));
27227
27645
  var OciReference = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciReference(value3) ? void 0 : `reference ${OCI_REFERENCE_MESSAGE}`));
@@ -27298,7 +27716,7 @@ var RegistriesGroup = HttpApiGroup_exports.make("registries").add(HttpApiEndpoin
27298
27716
  error: [RegistriesNotFoundError, RegistriesBadGatewayError]
27299
27717
  })).annotate(OpenApi_exports.Description, "Registry metadata and OCI read operations.");
27300
27718
 
27301
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/request-refusal.js
27719
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/request-refusal.js
27302
27720
  var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRefusedError", {
27303
27721
  /** Where the request is wrong and what was expected; never a value it held. */
27304
27722
  message: Schema_exports.String
@@ -27307,7 +27725,7 @@ var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRef
27307
27725
  var RequestRefusal = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestRefusal", { error: RequestRefusedError }) {
27308
27726
  };
27309
27727
 
27310
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-domains.js
27728
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-domains.js
27311
27729
  var RESOURCE_DOMAIN_ID_PATTERN = new RegExp(`^${RESOURCE_DOMAIN_ID_PREFIX}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`);
27312
27730
  var RESOURCE_DOMAIN_KEY_PATTERN = /^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._:/@+=-]{1,223}$/;
27313
27731
  var ResourceDomainId = Schema_exports.String.check(Schema_exports.makeFilter((id2) => RESOURCE_DOMAIN_ID_PATTERN.test(id2) ? void 0 : "must be a resource domain id (rdm:<uuid>)"));
@@ -27483,7 +27901,7 @@ var ResourceDomainsGroup = HttpApiGroup_exports.make("resourceDomains").add(Http
27483
27901
  ]
27484
27902
  })).annotate(HttpApi_exports.PayloadParseOptions, { onExcessProperty: "error" }).annotate(OpenApi_exports.Description, "Owners that are projects, not people: they never hold a login or a provider credential.");
27485
27903
 
27486
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-instances.js
27904
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-instances.js
27487
27905
  var RESOURCE_INSTANCE_ID_PREFIX = "rin:";
27488
27906
  var RESOURCE_INSTANCE_ID_PATTERN = new RegExp(`^${RESOURCE_INSTANCE_ID_PREFIX}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`);
27489
27907
  var matching = (pattern, message) => Schema_exports.makeFilter((value3) => pattern.test(value3) ? void 0 : message);
@@ -27549,7 +27967,7 @@ var resourceInstanceSpecSchema = Schema_exports.Struct({
27549
27967
  memoryBytes: Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 16 * 1024 * 1024, maximum: Number.MAX_SAFE_INTEGER }))
27550
27968
  }),
27551
27969
  ready: resourceInstanceReadySchema,
27552
- /** Seconds with no live linked executor reaching it before Core stops it. */
27970
+ /** Seconds with no live linked executor reaching it before sealant stops it. */
27553
27971
  idleStopAfterSeconds: Schema_exports.NullOr(Schema_exports.Int.check(Schema_exports.isBetween({ minimum: 1, maximum: RESOURCE_INSTANCE_MAX_IDLE_SECONDS })))
27554
27972
  });
27555
27973
  var resourceInstanceStopReasonSchema = Schema_exports.Union([
@@ -27570,7 +27988,7 @@ var resourceInstanceStateSchema = Schema_exports.Union([
27570
27988
  at: Schema_exports.String,
27571
27989
  reason: resourceInstanceStopReasonSchema
27572
27990
  }),
27573
- /** The container ended on its own; Core starts it again. */
27991
+ /** The container ended on its own; sealant starts it again. */
27574
27992
  Schema_exports.Struct({
27575
27993
  kind: Schema_exports.Literal("exited"),
27576
27994
  at: Schema_exports.String,
@@ -27615,7 +28033,7 @@ var resourceInstanceSchema = Schema_exports.Struct({
27615
28033
  desired: Schema_exports.Literals(["running", "stopped", "archived"]),
27616
28034
  /** Why it is stopped, while `desired` is `stopped`. */
27617
28035
  stopReason: Schema_exports.NullOr(resourceInstanceStopReasonSchema),
27618
- /** What Core last observed, and when. */
28036
+ /** What sealant last observed, and when. */
27619
28037
  state: resourceInstanceStateSchema,
27620
28038
  observedAt: Timestamp2,
27621
28039
  startedAt: Schema_exports.NullOr(Timestamp2),
@@ -27773,7 +28191,7 @@ var resourceInstanceExecResultSchema = Schema_exports.Struct({
27773
28191
  timedOut: Schema_exports.Boolean
27774
28192
  });
27775
28193
 
27776
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/runs.js
28194
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/runs.js
27777
28195
  var NonEmptyString10 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
27778
28196
  var runStatusSchema = Schema_exports.Literals([
27779
28197
  "queued",
@@ -28021,7 +28439,7 @@ var RunsGroup = HttpApiGroup_exports.make("runs").add(HttpApiEndpoint_exports.po
28021
28439
  error: [RunNotFoundError, RunInternalServerError]
28022
28440
  })).annotate(OpenApi_exports.Description, "Runs (harness executions) and their execution record.");
28023
28441
 
28024
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/sessions.js
28442
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/sessions.js
28025
28443
  var NonEmptyString11 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
28026
28444
  var sessionStatusSchema = Schema_exports.Literals(["starting", "running", "exited", "failed"]);
28027
28445
  var sessionAuthorizationHeadersSchema = Schema_exports.Struct({
@@ -28336,7 +28754,7 @@ var SessionsGroup = HttpApiGroup_exports.make("sessions").add(
28336
28754
  })
28337
28755
  ).annotate(OpenApi_exports.Description, "Interactive PTY sessions: durable, reattachable, sequence-keyed output.");
28338
28756
 
28339
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/ssh-keys.js
28757
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/ssh-keys.js
28340
28758
  var NonEmptyString12 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
28341
28759
  var sshKeyGatewayHeadersSchema = Schema_exports.Struct({
28342
28760
  // Authenticates the gateway as a trusted caller of the internal resolve endpoint.
@@ -28433,7 +28851,7 @@ var SshKeysGroup = HttpApiGroup_exports.make("sshKeys").add(HttpApiEndpoint_expo
28433
28851
  })
28434
28852
  ).annotate(OpenApi_exports.Description, "User SSH public keys and gateway principal resolution.");
28435
28853
 
28436
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/system.js
28854
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/system.js
28437
28855
  var NonEmptyString13 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
28438
28856
  var systemIndexResponseSchema = Schema_exports.Struct({
28439
28857
  name: NonEmptyString13,
@@ -28550,7 +28968,7 @@ var SystemGroup = HttpApiGroup_exports.make("system").add(HttpApiEndpoint_export
28550
28968
  })
28551
28969
  ).annotate(OpenApi_exports.Description, "System metadata, health probes, and first-run setup state.");
28552
28970
 
28553
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/users.js
28971
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/users.js
28554
28972
  var NonEmptyString14 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
28555
28973
  var userSchema = Schema_exports.Struct({
28556
28974
  userId: PersonId,
@@ -28613,7 +29031,7 @@ var UsersGroup = HttpApiGroup_exports.make("users").add(HttpApiEndpoint_exports.
28613
29031
  error: [UserNotFoundError, UserInternalServerError]
28614
29032
  })).annotate(OpenApi_exports.Description, "Identity rows for products that own their own login and act on behalf of their users.");
28615
29033
 
28616
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/endpoint-url.js
29034
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/endpoint-url.js
28617
29035
  var parsed = (value3) => {
28618
29036
  try {
28619
29037
  return new URL(value3);
@@ -28651,7 +29069,7 @@ var parseEndpointUrl = (raw2) => {
28651
29069
  return problem === void 0 ? { valid: true, url: decodeEndpointUrl(raw2) } : { valid: false, reason: `The endpoint ${problem}.` };
28652
29070
  };
28653
29071
 
28654
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspaces.js
29072
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspaces.js
28655
29073
  var NonEmptyString15 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
28656
29074
  var workspaceStatusSchema = Schema_exports.Literals([
28657
29075
  "queued",
@@ -28796,7 +29214,12 @@ var workspacePublicationSchema = Schema_exports.Union([
28796
29214
  ]);
28797
29215
  var workspaceErrorSchema = Schema_exports.Struct({
28798
29216
  message: Schema_exports.String,
28799
- code: Schema_exports.optional(NonEmptyString15)
29217
+ code: Schema_exports.optional(NonEmptyString15),
29218
+ /**
29219
+ * Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
29220
+ * build: the kind, and Boat's own code, message and request id. Absent for any other failure.
29221
+ */
29222
+ boat: Schema_exports.optional(boatFailureSchema)
28800
29223
  });
28801
29224
  var githubWorkspaceSourceSelectionSchema = Schema_exports.Struct({
28802
29225
  provider: Schema_exports.Literal("github"),
@@ -29213,6 +29636,67 @@ var inspectWorkspaceImageResponseSchema = Schema_exports.Struct({
29213
29636
  /** The image's per-person capability (`unknown` when none has been built yet). */
29214
29637
  personLayout: workspaceImagePersonLayoutSchema
29215
29638
  });
29639
+ var runtimeUnsupportedSchema = Schema_exports.Struct({
29640
+ supported: Schema_exports.Literal(false),
29641
+ message: NonEmptyString15
29642
+ });
29643
+ var runtimeCapabilitySchema = Schema_exports.Union([
29644
+ Schema_exports.Struct({ supported: Schema_exports.Literal(true) }),
29645
+ runtimeUnsupportedSchema
29646
+ ]);
29647
+ var runtimeArchitectures = ["x86_64", "aarch64"];
29648
+ var runtimeArchitectureSchema = Schema_exports.Literals(runtimeArchitectures);
29649
+ var runtimeSupportSchema = Schema_exports.Struct({
29650
+ runtime: Schema_exports.Literals(runtimeAdapterIds),
29651
+ /** The managed OS families that run on this runtime (`target.os.family`). */
29652
+ os: Schema_exports.Struct({
29653
+ ubuntu: runtimeCapabilitySchema,
29654
+ nix: runtimeCapabilitySchema,
29655
+ arch: runtimeCapabilitySchema,
29656
+ fedora: runtimeCapabilitySchema
29657
+ }),
29658
+ /** A workspace built from a base image of its own (`target.os.family: "custom"`). */
29659
+ customImage: runtimeCapabilitySchema,
29660
+ /** Directories of the deployment's own servers bound into the workspace (mount sources). */
29661
+ hostDirectories: runtimeCapabilitySchema,
29662
+ /** Docker inside the workspace (`tooling.services.docker`). */
29663
+ docker: runtimeCapabilitySchema,
29664
+ /** The workspace run under gVisor (`runtime.ociRuntime: "runsc"`). */
29665
+ gvisor: runtimeCapabilitySchema,
29666
+ /** Kubernetes Secrets, ConfigMaps and a service account (`runtime.envFrom`, `kubernetes`). */
29667
+ clusterEnv: runtimeCapabilitySchema,
29668
+ /** A workspace started by cloning a repository (a `git` source), not from a capture. */
29669
+ gitSource: runtimeCapabilitySchema,
29670
+ /** Dotfiles sent with the create as archives (`runtime.dotfilesArchives`). */
29671
+ dotfilesArchives: runtimeCapabilitySchema,
29672
+ /** A screen (an X display) inside the workspace, and the CPU architectures it runs on. */
29673
+ screen: Schema_exports.Union([
29674
+ Schema_exports.Struct({
29675
+ supported: Schema_exports.Literal(true),
29676
+ architectures: Schema_exports.Array(runtimeArchitectureSchema)
29677
+ }),
29678
+ runtimeUnsupportedSchema
29679
+ ]),
29680
+ /** Ports inside the workspace the runtime holds for itself: nothing else can listen on them. */
29681
+ reservedPorts: Schema_exports.Array(Schema_exports.Number),
29682
+ /**
29683
+ * A project's resources linked to the workspace: `live` reaches a running workspace when it is
29684
+ * linked, `next-start` only once the workspace starts again.
29685
+ */
29686
+ resources: Schema_exports.Union([
29687
+ Schema_exports.Struct({
29688
+ supported: Schema_exports.Literal(true),
29689
+ attach: Schema_exports.Literals(["live", "next-start"])
29690
+ }),
29691
+ runtimeUnsupportedSchema
29692
+ ]),
29693
+ /** Whether a workspace that sits idle costs money, and the sentence that says so. */
29694
+ idleCost: Schema_exports.Struct({ charged: Schema_exports.Boolean, message: NonEmptyString15 })
29695
+ });
29696
+ var workspaceRuntimesResponseSchema = Schema_exports.Struct({
29697
+ default: Schema_exports.Literals(runtimeAdapterIds),
29698
+ runtimes: Schema_exports.Array(runtimeSupportSchema)
29699
+ });
29216
29700
  var connectedAccountRefusalCodes = [
29217
29701
  "connected-account-missing",
29218
29702
  "connected-account-invalid",
@@ -29843,7 +30327,7 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
29843
30327
  WorkspaceConflictError,
29844
30328
  // The executor did not confirm the staging.
29845
30329
  WorkspaceBadGatewayError,
29846
- // Core cannot reach the executor.
30330
+ // sealant cannot reach the executor.
29847
30331
  WorkspaceServiceUnavailableError,
29848
30332
  WorkspaceInternalServerError
29849
30333
  ]
@@ -29894,10 +30378,19 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
29894
30378
  WorkspaceConflictError,
29895
30379
  WorkspaceBadGatewayError,
29896
30380
  WorkspaceServiceUnavailableError,
30381
+ // The recorded spec asks for what its runtime does not support (now), as a create would.
29897
30382
  WorkspaceRuntimeRequirementUnsupportedError,
30383
+ WorkspaceRuntimeEnvReferencesUnsupportedError,
30384
+ WorkspaceDockerServiceUnsupportedError,
29898
30385
  WorkspaceInternalServerError
29899
30386
  ]
29900
30387
  })
30388
+ ).add(
30389
+ // A read, before any create: the runtimes this install launches and what each supports.
30390
+ HttpApiEndpoint_exports.get("listWorkspaceRuntimes", "/runtimes", {
30391
+ success: workspaceRuntimesResponseSchema,
30392
+ error: [WorkspaceInternalServerError]
30393
+ })
29901
30394
  ).add(
29902
30395
  // A read: plans the spec as a build would and looks up what was published for it.
29903
30396
  HttpApiEndpoint_exports.post("inspectWorkspaceImage", "/image", {
@@ -29928,7 +30421,7 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
29928
30421
  WorkspaceConflictError,
29929
30422
  // The executor did not confirm the write.
29930
30423
  WorkspaceBadGatewayError,
29931
- // SEALANT_CREDENTIALS_KEY is not configured, or Core cannot reach the executor.
30424
+ // SEALANT_CREDENTIALS_KEY is not configured, or sealant cannot reach the executor.
29932
30425
  WorkspaceServiceUnavailableError,
29933
30426
  WorkspaceInternalServerError
29934
30427
  ]
@@ -29950,7 +30443,7 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
29950
30443
  WorkspaceConflictError,
29951
30444
  // The executor did not confirm the write.
29952
30445
  WorkspaceBadGatewayError,
29953
- // SEALANT_CREDENTIALS_KEY is not configured, or Core cannot reach the executor.
30446
+ // SEALANT_CREDENTIALS_KEY is not configured, or sealant cannot reach the executor.
29954
30447
  WorkspaceServiceUnavailableError,
29955
30448
  WorkspaceInternalServerError
29956
30449
  ]
@@ -30029,10 +30522,10 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
30029
30522
  ]
30030
30523
  })).annotate(OpenApi_exports.Description, "Workspace lifecycle, attempts, events, and runtime routing endpoints.");
30031
30524
 
30032
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/control-plane.js
30525
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/control-plane.js
30033
30526
  var ControlPlaneAPI = HttpApi_exports.make("sealantControlPlaneApi").add(SystemGroup).add(PackagesGroup.prefix("/v1/packages")).add(WorkspacesGroup.prefix("/v1/workspaces")).add(SshKeysGroup.prefix("/v1/ssh-keys")).add(ConnectedAccountsGroup.prefix("/v1/connected-accounts")).add(ProfilesGroup.prefix("/v1/profiles")).add(InferenceGroup.prefix("/v1/inference")).add(RunsGroup.prefix("/v1/runs")).add(SessionsGroup.prefix("/v1/sessions")).add(AccessTokensGroup.prefix("/v1/access-tokens")).add(RegistriesGroup.prefix("/v1/registries")).add(GitHubGroup.prefix("/v1/github")).add(UsersGroup.prefix("/v1/users")).add(BoatAccountsGroup.prefix("/v1/boat-accounts")).add(ResourceDomainsGroup.prefix("/v1/resource-domains")).add(ResourceInstancesGroup.prefix("/v1/resource-domains")).middleware(RequestRefusal).middleware(RequestBudget).annotate(OpenApi_exports.Title, "Sealant Control Plane API").annotate(OpenApi_exports.Version, "0.0.0").annotate(OpenApi_exports.Description, "Sealant control-plane HTTP API.");
30034
30527
 
30035
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/record-events.js
30528
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/record-events.js
30036
30529
  var recordEventKindValues = [
30037
30530
  "runtimeStateChanged",
30038
30531
  "runtimeHeartbeat",
@@ -30174,7 +30667,7 @@ var decoders = {
30174
30667
  networkSourceObserved: eventCase("networkSourceObserved", networkSourceObservedEventSchema)
30175
30668
  };
30176
30669
 
30177
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspace-forward.js
30670
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspace-forward.js
30178
30671
  var FORWARD_V2_MAX_FRAME_BYTES = 64 * 1024;
30179
30672
  var forwardRefusalReasonSchema = Schema_exports.Literals([
30180
30673
  "workspace-not-ready",
@@ -30252,7 +30745,7 @@ var forwardFlowFrameSchema = Schema_exports.Union([
30252
30745
  ]);
30253
30746
  var decodeFlowFrame = Schema_exports.decodeUnknownOption(Schema_exports.fromJsonString(forwardFlowFrameSchema));
30254
30747
 
30255
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
30748
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
30256
30749
  var WORKSPACE_ENV_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/u;
30257
30750
  var WORKSPACE_ENV_MAX_NAME_LENGTH = 128;
30258
30751
  var RESERVED_PREFIXES = [
@@ -30355,7 +30848,7 @@ var providerLoginEnvNames = {
30355
30848
  codex: ["OPENAI_API_KEY", "CODEX_API_KEY"]
30356
30849
  };
30357
30850
 
30358
- // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/capture-owner-map.js
30851
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.880_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/capture-owner-map.js
30359
30852
  var CAPTURE_OWNER_MAP_UID_RANGE = { first: 40001, last: 49999 };
30360
30853
  var UID_RANGE_TEXT = `${CAPTURE_OWNER_MAP_UID_RANGE.first}\u2013${CAPTURE_OWNER_MAP_UID_RANGE.last}`;
30361
30854
 
@@ -30435,6 +30928,9 @@ var AGENT_HOOKS = {
30435
30928
  ]
30436
30929
  };
30437
30930
 
30931
+ // ../../packages/domain/src/workbench/capture-drain-schema.ts
30932
+ var CaptureDrainReason = Schema_exports.Literals(["stop", "relaunch", "replacement"]);
30933
+
30438
30934
  // ../../packages/domain/src/workbench/capture-drain.ts
30439
30935
  var FALLBACK_REPLACEMENT_AGE_SECONDS = 7 * 60 * 60 + 30 * 60;
30440
30936
  var CAPTURE_EXECUTOR_RETAINED = "retained";
@@ -31019,7 +31515,7 @@ var firstPositional = (args2, valued) => args2.find(
31019
31515
  );
31020
31516
  var isFlag = (token) => token.startsWith("-") && token !== "-";
31021
31517
  var shellWord = (word) => /^[A-Za-z0-9_./:@=,+-]+$/.test(word) ? word : `'${word.replaceAll("'", `'\\''`)}'`;
31022
- var paint = (code) => (text2) => process.stdout.isTTY === true ? `\x1B[${code}m${text2}\x1B[0m` : text2;
31518
+ var paint = (code) => (text2) => process.stdout.isTTY ? `\x1B[${code}m${text2}\x1B[0m` : text2;
31023
31519
  var CONTROL_CHARACTER = /[\u0000-\u001f\u007f-\u009f]/g;
31024
31520
  var printable = (text2) => text2.replace(
31025
31521
  CONTROL_CHARACTER,
@@ -31067,6 +31563,16 @@ var serviceViewStatus = (view) => {
31067
31563
  };
31068
31564
  var serviceViewHostPort = (view) => (view.endpoints.find((candidate) => candidate.scope === "private") ?? view.endpoints[0] ?? null)?.hostPort ?? null;
31069
31565
 
31566
+ // src/terminal.ts
31567
+ import { spawn } from "node:child_process";
31568
+ var openUrl = (target) => {
31569
+ const opener = process.platform === "darwin" ? "open" : "xdg-open";
31570
+ const child = spawn(opener, [target], { detached: true, stdio: "ignore" });
31571
+ child.on("error", () => void 0);
31572
+ child.unref();
31573
+ };
31574
+ var isTerminal = (stream2) => stream2.isTTY === true;
31575
+
31070
31576
  // src/dashboard-adoption.ts
31071
31577
  var ADOPT_MODE_ORDER = ["mend-key", "bridge"];
31072
31578
  var deriveAdoptOffer = (facts, savedMode = null) => {
@@ -31453,6 +31959,7 @@ Address each point using your own judgment about how. Check your work with the r
31453
31959
  export {
31454
31960
  __commonJS,
31455
31961
  __toESM,
31962
+ Predicate_exports,
31456
31963
  Option_exports,
31457
31964
  Service,
31458
31965
  Record_exports,
@@ -31473,6 +31980,9 @@ export {
31473
31980
  WorktreeId,
31474
31981
  ResourceDefinitionId,
31475
31982
  CheckpointId,
31983
+ ContextSnapshotId,
31984
+ ReferenceId,
31985
+ ProjectMountId,
31476
31986
  SessionProcessId,
31477
31987
  AgentTurnId,
31478
31988
  AgentItemId,
@@ -31485,35 +31995,51 @@ export {
31485
31995
  SecretFileId,
31486
31996
  McpServerId,
31487
31997
  OrganizationId,
31998
+ InvitationId,
31999
+ AuditEventId,
31488
32000
  ChangeLandingId,
31489
32001
  ResourceLoadId,
31490
32002
  Timestamp,
31491
32003
  SequenceNumber,
32004
+ SessionRuntime,
31492
32005
  WorkspaceImage,
32006
+ defaultWorkspaceImage,
32007
+ DotfilesRepository,
32008
+ MendSettings,
32009
+ OrganizationSettings,
32010
+ HttpApiEndpoint_exports,
32011
+ HttpApiMiddleware_exports,
32012
+ HttpApiGroup_exports,
32013
+ BOAT_FAILURE_KINDS,
32014
+ BOAT_KEY_PROOF_STEPS,
32015
+ EndpointUrl,
32016
+ WORKSPACE_ENV_NAME_PATTERN,
32017
+ WORKSPACE_ENV_MAX_NAME_LENGTH,
32018
+ findWorkspaceSecretEnvReservedRule,
32019
+ providerLoginEnvNames,
31493
32020
  EFFORT_LEVELS,
31494
32021
  SPEED_MODES,
31495
32022
  takesReviewFollowUp,
31496
32023
  noReviewFollowUpLine,
31497
32024
  resumesOwnHarness,
32025
+ CaptureDrainReason,
32026
+ OrganizationRole,
31498
32027
  TenancyMode,
31499
32028
  ProjectVisibility,
32029
+ Organization,
32030
+ OrganizationMember,
32031
+ Invitation,
32032
+ AutomationChoice,
32033
+ RequestedGitAuthMode,
31500
32034
  AMBIENT_REMOVED_GUIDANCE,
31501
32035
  repositoryCloneUrlIssue,
31502
32036
  Project,
31503
- WORKSPACE_ENV_NAME_PATTERN,
31504
- WORKSPACE_ENV_MAX_NAME_LENGTH,
31505
- findWorkspaceSecretEnvReservedRule,
31506
- providerLoginEnvNames,
31507
32037
  SessionProcess,
31508
32038
  servicesHoldLine,
31509
32039
  sharedControlLine,
31510
32040
  sharedControlConfirm,
31511
32041
  workspaceRetirementLine,
31512
32042
  REPLACE_WORKSPACE_ACTION,
31513
- HttpApiEndpoint_exports,
31514
- HttpApiMiddleware_exports,
31515
- HttpApiGroup_exports,
31516
- EndpointUrl,
31517
32043
  MendRequestError,
31518
32044
  neverConnected,
31519
32045
  spoken,
@@ -31557,6 +32083,8 @@ export {
31557
32083
  visibleWhitespace,
31558
32084
  buildReviewFiles,
31559
32085
  assembleReviewInstruction,
32086
+ openUrl,
32087
+ isTerminal,
31560
32088
  ADOPT_MODE_ORDER,
31561
32089
  deriveAdoptOffer,
31562
32090
  refusedAdoptOffer,