@sealant/mend 0.37.0-next.1401 → 0.37.0-next.1426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-G457OZFS.js → chunk-4XJ3PLAY.js} +625 -187
- package/dist/{dashboard-N7U2GC2B.js → dashboard-W4PGLWQV.js} +7 -15
- package/dist/main.js +2256 -478
- package/man/mend-access-keys-create.1 +1 -1
- package/man/mend-access-keys-list.1 +1 -1
- package/man/mend-access-keys-revoke.1 +1 -1
- package/man/mend-accounts.1 +1 -1
- package/man/mend-adopt.1 +1 -1
- package/man/mend-agent-install.1 +1 -1
- package/man/mend-agent-logins.1 +1 -1
- package/man/mend-attach.1 +1 -1
- package/man/mend-boat-check.1 +23 -0
- package/man/mend-boat-connect.1 +31 -0
- package/man/mend-boat-disconnect.1 +18 -0
- package/man/mend-boat-status.1 +20 -0
- package/man/mend-change.1 +1 -1
- package/man/mend-codex.1 +1 -1
- package/man/mend-comment-add.1 +1 -1
- package/man/mend-comment-send.1 +1 -1
- package/man/mend-completions.1 +1 -1
- package/man/mend-connect-executor.1 +1 -1
- package/man/mend-connect-pi.1 +1 -1
- package/man/mend-connect-status.1 +1 -1
- package/man/mend-connect.1 +1 -1
- package/man/mend-continue.1 +1 -1
- package/man/mend-diff.1 +1 -1
- package/man/mend-doctor.1 +2 -2
- package/man/mend-doppler-connect.1 +1 -1
- package/man/mend-doppler-disconnect.1 +1 -1
- package/man/mend-doppler-status.1 +1 -1
- package/man/mend-doppler-use.1 +1 -1
- package/man/mend-doppler.1 +1 -1
- package/man/mend-dotfiles-repo.1 +1 -1
- package/man/mend-dotfiles-sync.1 +1 -1
- package/man/mend-dotfiles.1 +1 -1
- package/man/mend-env-cluster.1 +1 -1
- package/man/mend-env-load.1 +1 -1
- package/man/mend-env-show.1 +1 -1
- package/man/mend-folder-create.1 +1 -1
- package/man/mend-folder-list.1 +1 -1
- package/man/mend-folder-push.1 +1 -1
- package/man/mend-folder-rm.1 +1 -1
- package/man/mend-git-author.1 +1 -1
- package/man/mend-git-check.1 +1 -1
- package/man/mend-handoff.1 +1 -1
- package/man/mend-help.1 +1 -1
- package/man/mend-history.1 +1 -1
- package/man/mend-interrupt.1 +1 -1
- package/man/mend-invite.1 +1 -1
- package/man/mend-keys-init.1 +1 -1
- package/man/mend-keys-mode.1 +1 -1
- package/man/mend-keys-share.1 +1 -1
- package/man/mend-keys-show.1 +1 -1
- package/man/mend-land.1 +1 -1
- package/man/mend-login.1 +1 -1
- package/man/mend-logout.1 +1 -1
- package/man/mend-logs.1 +1 -1
- package/man/mend-man.1 +1 -1
- package/man/mend-mcp-add.1 +1 -1
- package/man/mend-mcp-forget.1 +1 -1
- package/man/mend-mcp-off.1 +1 -1
- package/man/mend-mcp-on.1 +1 -1
- package/man/mend-mcp-remove.1 +1 -1
- package/man/mend-mcp.1 +1 -1
- package/man/mend-members.1 +1 -1
- package/man/mend-memory-import.1 +1 -1
- package/man/mend-memory-rm.1 +1 -1
- package/man/mend-memory-show.1 +1 -1
- package/man/mend-memory.1 +1 -1
- package/man/mend-message.1 +1 -1
- package/man/mend-models.1 +1 -1
- package/man/mend-operator-exposure.1 +1 -1
- package/man/mend-operator-gate.1 +1 -1
- package/man/mend-operator-grant-owner.1 +1 -1
- package/man/mend-operator-org-add-member.1 +1 -1
- package/man/mend-operator-org-create.1 +1 -1
- package/man/mend-operator-org-invite-owner.1 +1 -1
- package/man/mend-operator-org-list.1 +1 -1
- package/man/mend-operator-org-rename.1 +1 -1
- package/man/mend-operator-reset-link.1 +1 -1
- package/man/mend-org-leave.1 +1 -1
- package/man/mend-org-switch.1 +1 -1
- package/man/mend-org.1 +1 -1
- package/man/mend-pair.1 +1 -1
- package/man/mend-preview.1 +1 -1
- package/man/mend-projects-image.1 +1 -1
- package/man/mend-projects-purge.1 +1 -1
- package/man/mend-projects-removed.1 +1 -1
- package/man/mend-projects-restore.1 +1 -1
- package/man/mend-projects-rm.1 +1 -1
- package/man/mend-projects.1 +1 -1
- package/man/mend-proof-get.1 +1 -1
- package/man/mend-proof-list.1 +1 -1
- package/man/mend-pull.1 +1 -1
- package/man/mend-refresh.1 +1 -1
- package/man/mend-rejoin.1 +1 -1
- package/man/mend-resource-add.1 +1 -1
- package/man/mend-resource-env.1 +1 -1
- package/man/mend-resource-list.1 +1 -1
- package/man/mend-resource-load.1 +1 -1
- package/man/mend-resource-remove.1 +1 -1
- package/man/mend-resource-reset.1 +1 -1
- package/man/mend-resource-start.1 +1 -1
- package/man/mend-resource-stop.1 +1 -1
- package/man/mend-resource-use.1 +1 -1
- package/man/mend-respond.1 +1 -1
- package/man/mend-resume.1 +1 -1
- package/man/mend-run.1 +1 -1
- package/man/mend-screen-look.1 +1 -1
- package/man/mend-secrets-add.1 +1 -1
- package/man/mend-secrets-rm.1 +1 -1
- package/man/mend-secrets.1 +1 -1
- package/man/mend-server-logs.1 +1 -1
- package/man/mend-server-restart.1 +1 -1
- package/man/mend-server-setup.1 +16 -4
- package/man/mend-server-start.1 +1 -1
- package/man/mend-server-status.1 +3 -1
- package/man/mend-server-stop.1 +1 -1
- package/man/mend-server-upgrade.1 +1 -1
- package/man/mend-server.1 +1 -1
- package/man/mend-service-add.1 +1 -1
- package/man/mend-service-connect.1 +1 -1
- package/man/mend-service-init.1 +1 -1
- package/man/mend-service-list.1 +1 -1
- package/man/mend-service-logs.1 +1 -1
- package/man/mend-service-restart.1 +1 -1
- package/man/mend-service-run.1 +1 -1
- package/man/mend-service-stop.1 +1 -1
- package/man/mend-session-share.1 +1 -1
- package/man/mend-sessions.1 +1 -1
- package/man/mend-settings.1 +1 -1
- package/man/mend-setup-session.1 +1 -1
- package/man/mend-shell.1 +1 -1
- package/man/mend-skills-push.1 +1 -1
- package/man/mend-skills.1 +1 -1
- package/man/mend-snake.1 +1 -1
- package/man/mend-ssh-keys-remove.1 +1 -1
- package/man/mend-ssh-keys.1 +1 -1
- package/man/mend-ssh-setup.1 +1 -1
- package/man/mend-ssh.1 +1 -1
- package/man/mend-stop.1 +1 -1
- package/man/mend-ui.1 +1 -1
- package/man/mend-uninstall.1 +1 -1
- package/man/mend-version.1 +1 -1
- package/man/mend-wait.1 +1 -1
- package/man/mend-workspace-replace.1 +1 -1
- package/man/mend-worktrees-rm.1 +1 -1
- package/man/mend-worktrees.1 +1 -1
- package/man/mend.1 +14 -2
- 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: () =>
|
|
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: () =>
|
|
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
|
|
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: () =>
|
|
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
|
|
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 :
|
|
1916
|
-
var getSuccess = (self) => isFailure(self) ? none :
|
|
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
|
|
1931
|
-
var Date2 = /* @__PURE__ */
|
|
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
|
|
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
|
|
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) ?
|
|
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() :
|
|
1970
|
-
var fromUndefinedOr = (a) => a === void 0 ? none2() :
|
|
1971
|
-
var fromNullOr = (a) => a === null ? none2() :
|
|
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
|
|
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() :
|
|
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__ */
|
|
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 :
|
|
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) ?
|
|
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
|
|
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
|
|
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
|
|
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(),
|
|
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) ?
|
|
2206
|
+
return isSuccess(next) ? some3(next.success) : none2();
|
|
2063
2207
|
});
|
|
2064
|
-
var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ?
|
|
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) ?
|
|
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__ */
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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: () =>
|
|
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: () =>
|
|
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) ?
|
|
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
|
|
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) ?
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3064
|
-
return isReference(service3) ?
|
|
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(
|
|
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,
|
|
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,
|
|
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:
|
|
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(
|
|
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(
|
|
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() :
|
|
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 ?
|
|
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__ */
|
|
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() :
|
|
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() :
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) &&
|
|
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
|
|
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 =
|
|
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() :
|
|
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: () =>
|
|
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),
|
|
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
|
|
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) =>
|
|
10907
|
+
var map10 = /* @__PURE__ */ dual(2, (self, f) => compose2(self, transform(f)));
|
|
10764
10908
|
function succeed8(t) {
|
|
10765
|
-
return transformOptional(() =>
|
|
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,
|
|
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:
|
|
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),
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
16732
|
+
return make20(compose3(this.node, that.node));
|
|
16589
16733
|
}
|
|
16590
16734
|
key(key) {
|
|
16591
|
-
return make20(
|
|
16735
|
+
return make20(compose3(this.node, [new PathNode([key])]));
|
|
16592
16736
|
}
|
|
16593
16737
|
optionalKey(key) {
|
|
16594
|
-
return make20(
|
|
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(
|
|
16753
|
+
return make20(compose3(this.node, [new CheckNode(checks)]));
|
|
16610
16754
|
}
|
|
16611
16755
|
refine(refinement, annotations2) {
|
|
16612
|
-
return make20(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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()(
|
|
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()(
|
|
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(
|
|
20016
|
+
toCodecJson: () => link()(ArraySchema(Tuple3([String6, Union2([Struct2({
|
|
19873
20017
|
_tag: tag("String"),
|
|
19874
20018
|
value: String6
|
|
19875
|
-
}),
|
|
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__ */
|
|
19951
|
-
issues: /* @__PURE__ */ ArraySchema(/* @__PURE__ */
|
|
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__ */
|
|
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([
|
|
20238
|
+
toCodec: ([error2, defect2]) => link()(Union2([Struct2({
|
|
20095
20239
|
_tag: Literal2("Fail"),
|
|
20096
20240
|
error: error2
|
|
20097
|
-
}),
|
|
20241
|
+
}), Struct2({
|
|
20098
20242
|
_tag: Literal2("Die"),
|
|
20099
20243
|
defect: defect2
|
|
20100
|
-
}),
|
|
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()(
|
|
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([
|
|
20722
|
+
toCodecJson: () => link()(Union2([Struct2({
|
|
20579
20723
|
_tag: Literal2("Infinity")
|
|
20580
|
-
}),
|
|
20724
|
+
}), Struct2({
|
|
20581
20725
|
_tag: Literal2("NegativeInfinity")
|
|
20582
|
-
}),
|
|
20726
|
+
}), Struct2({
|
|
20583
20727
|
_tag: Literal2("Nanos"),
|
|
20584
20728
|
value: BigInt6
|
|
20585
|
-
}),
|
|
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([
|
|
20920
|
+
toCodec: ([value4, error2, defect2]) => link()(Union2([Struct2({
|
|
20777
20921
|
_tag: Literal2("Success"),
|
|
20778
20922
|
value: value4
|
|
20779
|
-
}),
|
|
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
|
|
20944
|
+
return Struct2({
|
|
20801
20945
|
type: Literal2(type),
|
|
20802
|
-
nodes: ArraySchema(
|
|
20946
|
+
nodes: ArraySchema(Struct2({
|
|
20803
20947
|
index: Natural,
|
|
20804
20948
|
data: node
|
|
20805
20949
|
})),
|
|
20806
|
-
edges: ArraySchema(
|
|
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,
|
|
21019
|
+
return linkDecoding()(Union2([Null2, Struct2({
|
|
20876
21020
|
nodes: NonEmptyArray(node),
|
|
20877
|
-
edges: ArraySchema(
|
|
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(
|
|
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(
|
|
21112
|
+
toCodec: ([key2, value4]) => hashMapLink(ArraySchema(Tuple3([key2, value4]))),
|
|
20969
21113
|
toCodecArbitrary: ({
|
|
20970
21114
|
constraint,
|
|
20971
21115
|
typeParameters: [key2, value4]
|
|
20972
|
-
}) => hashMapLink(withArrayLengthConstraints(ArraySchema(
|
|
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:
|
|
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([
|
|
21190
|
+
toCodec: ([value4]) => link()(Union2([Struct2({
|
|
21047
21191
|
_tag: Literal2("Some"),
|
|
21048
21192
|
value: value4
|
|
21049
|
-
}),
|
|
21193
|
+
}), Struct2({
|
|
21050
21194
|
_tag: Literal2("None")
|
|
21051
21195
|
})]), transform2({
|
|
21052
|
-
decode: (e) => e._tag === "None" ? none2() :
|
|
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(
|
|
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),
|
|
21168
|
-
encode: onNoneEncoding === "omit" ? flatten : (ot) =>
|
|
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([
|
|
21406
|
+
toCodec: ([success2, failure2]) => link()(Union2([Struct2({
|
|
21263
21407
|
_tag: Literal2("Success"),
|
|
21264
21408
|
success: success2
|
|
21265
|
-
}),
|
|
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 :
|
|
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 :
|
|
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 :
|
|
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__ */
|
|
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 =
|
|
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
|
|
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 =
|
|
23997
|
+
exit3 = some3(fail4(convertError(error_)));
|
|
23849
23998
|
},
|
|
23850
23999
|
onDone() {
|
|
23851
24000
|
if (isNone2(exit3)) {
|
|
23852
|
-
exit3 =
|
|
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 =
|
|
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__ */
|
|
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 :
|
|
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 :
|
|
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 =
|
|
24934
|
+
const headers = Struct2(options2.headers);
|
|
24786
24935
|
const status2 = resolveHttpApiStatus(body.ast);
|
|
24787
24936
|
const encoding = resolveHttpApiEncoding(body.ast);
|
|
24788
|
-
return
|
|
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(
|
|
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] : [
|
|
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.
|
|
26594
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_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.
|
|
26600
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_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.
|
|
26785
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_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,141 @@ 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.
|
|
26844
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_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
|
+
/** Core'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.874_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 boatKeyReportSchema = Schema_exports.Struct({
|
|
26903
|
+
observedAt: Schema_exports.String,
|
|
26904
|
+
/** The Boat organization the account bills (`X-Boat-Org` on every request), or null. */
|
|
26905
|
+
organization: Schema_exports.NullOr(Schema_exports.String),
|
|
26906
|
+
/** Who the key is (`GET /me`). */
|
|
26907
|
+
identity: observedOr({
|
|
26908
|
+
/**
|
|
26909
|
+
* Boat's id for the account the key belongs to (`GET /me` `user.id`). A Boat account, never a
|
|
26910
|
+
* Sealant person: it is not a `PersonId` and names no one on this install.
|
|
26911
|
+
*/
|
|
26912
|
+
accountId: Schema_exports.optional(Schema_exports.String),
|
|
26913
|
+
login: Schema_exports.optional(Schema_exports.String),
|
|
26914
|
+
displayName: Schema_exports.optional(Schema_exports.String),
|
|
26915
|
+
serviceAccount: Schema_exports.optional(Schema_exports.Boolean),
|
|
26916
|
+
accountStatus: Schema_exports.Literals(["active", "suspended", "closed", "unknown"])
|
|
26917
|
+
}),
|
|
26918
|
+
/** A personal (account) key, or an organization's key. */
|
|
26919
|
+
keyKind: observedOr({ kind: Schema_exports.Literals(["personal", "organization"]) }),
|
|
26920
|
+
/** Which wallet a VM started with the key bills (`GET /limits`). */
|
|
26921
|
+
wallet: observedOr({
|
|
26922
|
+
kind: Schema_exports.Literals(["personal", "organization"]),
|
|
26923
|
+
organizationId: Schema_exports.optional(Schema_exports.String),
|
|
26924
|
+
organizationName: Schema_exports.optional(Schema_exports.String),
|
|
26925
|
+
role: Schema_exports.optional(Schema_exports.String)
|
|
26926
|
+
}),
|
|
26927
|
+
/** The permissions Core needs of every key, from the Boat calls it makes. */
|
|
26928
|
+
requiredPermissions: Schema_exports.Array(Schema_exports.String),
|
|
26929
|
+
/** The key's permissions (`GET /api-keys`), and which of the required ones it lacks. */
|
|
26930
|
+
permissions: observedOr({
|
|
26931
|
+
held: Schema_exports.Array(Schema_exports.String),
|
|
26932
|
+
missing: Schema_exports.Array(Schema_exports.String),
|
|
26933
|
+
/** The key is limited to some VMs or environments: it cannot reach VMs Core creates. */
|
|
26934
|
+
limitedToSandboxes: Schema_exports.Boolean
|
|
26935
|
+
}),
|
|
26936
|
+
/** When the key expires; `expiresAt` null: it never does. */
|
|
26937
|
+
expiry: observedOr({
|
|
26938
|
+
expiresAt: Schema_exports.NullOr(Schema_exports.String),
|
|
26939
|
+
expired: Schema_exports.Boolean,
|
|
26940
|
+
expiringSoon: Schema_exports.Boolean
|
|
26941
|
+
}),
|
|
26942
|
+
/** Whether the wallet can start a VM now, why not, and its running and allowed VMs. */
|
|
26943
|
+
start: observedOr({
|
|
26944
|
+
canStart: Schema_exports.Boolean,
|
|
26945
|
+
blockedReason: Schema_exports.optional(Schema_exports.String),
|
|
26946
|
+
billingStatus: Schema_exports.optional(Schema_exports.String),
|
|
26947
|
+
runningVms: Schema_exports.Int,
|
|
26948
|
+
allowedVms: Schema_exports.Int
|
|
26949
|
+
}),
|
|
26950
|
+
/** Saved snapshot slots of the wallet (`GET /saved-snapshots`). */
|
|
26951
|
+
snapshots: observedOr({ used: Schema_exports.Int, included: Schema_exports.Int })
|
|
26952
|
+
});
|
|
26953
|
+
var BOAT_KEY_PROOF_STEPS = [
|
|
26954
|
+
"start-vm",
|
|
26955
|
+
"run-command",
|
|
26956
|
+
"publish-port",
|
|
26957
|
+
"save-snapshot",
|
|
26958
|
+
"delete-snapshot",
|
|
26959
|
+
"delete-vm"
|
|
26960
|
+
];
|
|
26961
|
+
var boatKeyProofStepSchema = Schema_exports.Struct({
|
|
26962
|
+
step: Schema_exports.Literals(BOAT_KEY_PROOF_STEPS),
|
|
26963
|
+
outcome: Schema_exports.Literals(["passed", "refused", "no-answer", "not-reached"]),
|
|
26964
|
+
boat: Schema_exports.optional(boatFailureSchema)
|
|
26965
|
+
});
|
|
26966
|
+
var boatKeyProofSchema = Schema_exports.Struct({
|
|
26967
|
+
proofId: Schema_exports.String,
|
|
26968
|
+
startedAt: Schema_exports.String,
|
|
26969
|
+
finishedAt: Schema_exports.String,
|
|
26970
|
+
outcome: Schema_exports.Literals(["passed", "refused", "interrupted"]),
|
|
26971
|
+
steps: Schema_exports.Array(boatKeyProofStepSchema),
|
|
26972
|
+
starts: Schema_exports.Int,
|
|
26973
|
+
leftBehind: Schema_exports.Struct({
|
|
26974
|
+
vm: Schema_exports.NullOr(Schema_exports.String),
|
|
26975
|
+
snapshot: Schema_exports.NullOr(Schema_exports.String),
|
|
26976
|
+
removalConfirmed: Schema_exports.Boolean
|
|
26977
|
+
})
|
|
26978
|
+
});
|
|
26699
26979
|
var boatAccountSchema = Schema_exports.Struct({
|
|
26700
26980
|
boatAccountId: BoatAccountId,
|
|
26701
26981
|
label: NonEmptyString4,
|
|
@@ -26703,16 +26983,32 @@ var boatAccountSchema = Schema_exports.Struct({
|
|
|
26703
26983
|
state: Schema_exports.Literals(["active", "removing"]),
|
|
26704
26984
|
createdAt: Schema_exports.String,
|
|
26705
26985
|
/** 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)
|
|
26986
|
+
keyRotatedAt: Schema_exports.NullOr(Schema_exports.String),
|
|
26987
|
+
/** The Boat organization the account bills, sent on every request for it; null: none named. */
|
|
26988
|
+
organization: Schema_exports.optional(Schema_exports.NullOr(Schema_exports.String)),
|
|
26989
|
+
/** The key's last report, with when it was observed; null until the key is checked. */
|
|
26990
|
+
report: Schema_exports.optional(Schema_exports.NullOr(boatKeyReportSchema)),
|
|
26991
|
+
/** The account's last full check (`prove`), kept beside its report; null until it is proven. */
|
|
26992
|
+
lastProof: Schema_exports.optional(Schema_exports.NullOr(boatKeyProofSchema))
|
|
26993
|
+
});
|
|
26994
|
+
var boatInstallKeySchema = Schema_exports.Struct({
|
|
26995
|
+
label: NonEmptyString4,
|
|
26996
|
+
/** The key's last report, with when it was observed; null until it is checked. */
|
|
26997
|
+
report: Schema_exports.NullOr(boatKeyReportSchema)
|
|
26707
26998
|
});
|
|
26708
26999
|
var createBoatAccountRequestSchema = Schema_exports.Struct({
|
|
26709
27000
|
/** The caller's name for the account (an organization's name, say). At most 200 characters. */
|
|
26710
27001
|
label: NonEmptyString4,
|
|
26711
|
-
/** The Boat
|
|
26712
|
-
apiKey: SecretString
|
|
27002
|
+
/** The Boat key. Checked with Boat by read-only calls before it is stored; whitespace around it is trimmed. */
|
|
27003
|
+
apiKey: SecretString,
|
|
27004
|
+
/**
|
|
27005
|
+
* For a personal key: the Boat organization to bill (its id or name), sent as `X-Boat-Org` on
|
|
27006
|
+
* every request for the account, so billing never follows the key's active wallet.
|
|
27007
|
+
*/
|
|
27008
|
+
organization: Schema_exports.optional(NonEmptyString4)
|
|
26713
27009
|
});
|
|
26714
27010
|
var rotateBoatAccountKeyRequestSchema = Schema_exports.Struct({
|
|
26715
|
-
/** The new Boat
|
|
27011
|
+
/** The new Boat key, for the same Boat account: it must see every VM the account runs. */
|
|
26716
27012
|
apiKey: SecretString
|
|
26717
27013
|
});
|
|
26718
27014
|
var listBoatAccountsResponseSchema = Schema_exports.Struct({
|
|
@@ -26722,7 +27018,14 @@ var BoatAccountBadRequestError = class extends Schema_exports.TaggedError()("Boa
|
|
|
26722
27018
|
};
|
|
26723
27019
|
var BoatAccountKeyRefusedError = class extends Schema_exports.TaggedError()("BoatAccountKeyRefusedError", {
|
|
26724
27020
|
message: Schema_exports.String,
|
|
26725
|
-
code: Schema_exports.Literals([
|
|
27021
|
+
code: Schema_exports.Literals([
|
|
27022
|
+
"boat-key-refused",
|
|
27023
|
+
"boat-key-unverified",
|
|
27024
|
+
"boat-key-missing-permissions"
|
|
27025
|
+
]),
|
|
27026
|
+
missingPermissions: Schema_exports.optional(Schema_exports.Array(Schema_exports.String)),
|
|
27027
|
+
boat: Schema_exports.optional(boatFailureSchema),
|
|
27028
|
+
report: Schema_exports.optional(boatKeyReportSchema)
|
|
26726
27029
|
}, { httpApiStatus: 422 }) {
|
|
26727
27030
|
};
|
|
26728
27031
|
var BoatAccountNotFoundError = class extends Schema_exports.TaggedError()("BoatAccountNotFoundError", { message: Schema_exports.String }, { httpApiStatus: 404 }) {
|
|
@@ -26733,7 +27036,9 @@ var BoatAccountConflictError = class extends Schema_exports.TaggedError()("BoatA
|
|
|
26733
27036
|
"boat-account-in-use",
|
|
26734
27037
|
"boat-key-cannot-see",
|
|
26735
27038
|
"boat-account-removing",
|
|
26736
|
-
"boat-account-changed"
|
|
27039
|
+
"boat-account-changed",
|
|
27040
|
+
"boat-account-environment",
|
|
27041
|
+
"boat-proof-running"
|
|
26737
27042
|
]),
|
|
26738
27043
|
liveRuns: Schema_exports.optional(Schema_exports.Int),
|
|
26739
27044
|
buildsInFlight: Schema_exports.optional(Schema_exports.Int),
|
|
@@ -26745,6 +27050,7 @@ var BoatAccountServiceUnavailableError = class extends Schema_exports.TaggedErro
|
|
|
26745
27050
|
var BoatAccountInternalServerError = class extends Schema_exports.TaggedError()("BoatAccountInternalServerError", { message: Schema_exports.String }, { httpApiStatus: 500 }) {
|
|
26746
27051
|
};
|
|
26747
27052
|
var boatAccountIdParams = Schema_exports.Struct({ boatAccountId: BoatAccountId });
|
|
27053
|
+
var boatAccountRefParams = Schema_exports.Struct({ boatAccountId: BoatAccountRef });
|
|
26748
27054
|
var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEndpoint_exports.post("createBoatAccount", "/", {
|
|
26749
27055
|
payload: createBoatAccountRequestSchema,
|
|
26750
27056
|
success: boatAccountSchema.pipe(HttpApiSchema_exports.status(201)),
|
|
@@ -26758,7 +27064,7 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
|
|
|
26758
27064
|
success: listBoatAccountsResponseSchema,
|
|
26759
27065
|
error: [BoatAccountServiceUnavailableError, BoatAccountInternalServerError]
|
|
26760
27066
|
})).add(HttpApiEndpoint_exports.put("rotateBoatAccountKey", "/:boatAccountId/key", {
|
|
26761
|
-
params:
|
|
27067
|
+
params: boatAccountRefParams,
|
|
26762
27068
|
payload: rotateBoatAccountKeyRequestSchema,
|
|
26763
27069
|
success: boatAccountSchema,
|
|
26764
27070
|
error: [
|
|
@@ -26770,10 +27076,51 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
|
|
|
26770
27076
|
BoatAccountInternalServerError
|
|
26771
27077
|
]
|
|
26772
27078
|
})).add(
|
|
27079
|
+
// The install's own key's last report (never the key).
|
|
27080
|
+
HttpApiEndpoint_exports.get("getBoatInstallKey", "/install-key", {
|
|
27081
|
+
success: boatInstallKeySchema,
|
|
27082
|
+
error: [BoatAccountServiceUnavailableError, BoatAccountInternalServerError]
|
|
27083
|
+
})
|
|
27084
|
+
).add(
|
|
27085
|
+
// Checks the install's own key with Boat now (read-only) and stores the report it answers.
|
|
27086
|
+
HttpApiEndpoint_exports.post("checkBoatInstallKey", "/install-key", {
|
|
27087
|
+
success: boatInstallKeySchema,
|
|
27088
|
+
error: [
|
|
27089
|
+
BoatAccountKeyRefusedError,
|
|
27090
|
+
BoatAccountServiceUnavailableError,
|
|
27091
|
+
BoatAccountInternalServerError
|
|
27092
|
+
]
|
|
27093
|
+
})
|
|
27094
|
+
).add(
|
|
27095
|
+
// Checks a stored account's key with Boat again (read-only) and stores the report it answers.
|
|
27096
|
+
HttpApiEndpoint_exports.post("checkBoatAccount", "/:boatAccountId/check", {
|
|
27097
|
+
params: boatAccountIdParams,
|
|
27098
|
+
success: boatAccountSchema,
|
|
27099
|
+
error: [
|
|
27100
|
+
BoatAccountKeyRefusedError,
|
|
27101
|
+
BoatAccountNotFoundError,
|
|
27102
|
+
BoatAccountServiceUnavailableError,
|
|
27103
|
+
BoatAccountInternalServerError
|
|
27104
|
+
]
|
|
27105
|
+
})
|
|
27106
|
+
).add(
|
|
27107
|
+
// A full check: a throwaway VM is started, used and deleted, with a snapshot saved and
|
|
27108
|
+
// deleted; whatever it made is removed on every path. One per account at a time.
|
|
27109
|
+
HttpApiEndpoint_exports.post("proveBoatAccount", "/:boatAccountId/prove", {
|
|
27110
|
+
params: Schema_exports.Struct({ boatAccountId: BoatAccountId }),
|
|
27111
|
+
success: boatKeyProofSchema,
|
|
27112
|
+
error: [
|
|
27113
|
+
BoatAccountNotFoundError,
|
|
27114
|
+
BoatAccountConflictError,
|
|
27115
|
+
BoatAccountServiceUnavailableError,
|
|
27116
|
+
BoatAccountInternalServerError
|
|
27117
|
+
]
|
|
27118
|
+
})
|
|
27119
|
+
).add(
|
|
26773
27120
|
// The removal's first step: the account takes no new workspace at once, and its saved images
|
|
26774
27121
|
// are deleted from Boat by the worker before it is gone from the list.
|
|
26775
27122
|
HttpApiEndpoint_exports.delete("removeBoatAccount", "/:boatAccountId", {
|
|
26776
|
-
params:
|
|
27123
|
+
params: boatAccountRefParams,
|
|
26777
27124
|
success: boatAccountSchema,
|
|
26778
27125
|
error: [
|
|
26779
27126
|
BoatAccountNotFoundError,
|
|
@@ -26782,9 +27129,9 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
|
|
|
26782
27129
|
BoatAccountInternalServerError
|
|
26783
27130
|
]
|
|
26784
27131
|
})
|
|
26785
|
-
).annotate(OpenApi_exports.Description, "The Boat
|
|
27132
|
+
).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
27133
|
|
|
26787
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27134
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/budgets.js
|
|
26788
27135
|
var requestBudgetRefusalSchema = Schema_exports.Struct({
|
|
26789
27136
|
phase: Schema_exports.Literal("before-work"),
|
|
26790
27137
|
bucket: Schema_exports.Literals(["owner", "unowned", "key", "principal"])
|
|
@@ -26801,7 +27148,7 @@ var BudgetExceededError = class extends Schema_exports.TaggedError()("BudgetExce
|
|
|
26801
27148
|
var RequestBudget = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestBudget", { error: BudgetExceededError }) {
|
|
26802
27149
|
};
|
|
26803
27150
|
|
|
26804
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27151
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/github.js
|
|
26805
27152
|
var GitHubInstallationAccountTypeSchema = Schema_exports.Literals(["organization", "user"]);
|
|
26806
27153
|
var GitHubInstallationStatusSchema = Schema_exports.Literals(["active", "suspended", "deleted"]);
|
|
26807
27154
|
var GitHubInstallationRepositorySelectionSchema = Schema_exports.Literals(["all", "selected"]);
|
|
@@ -26942,7 +27289,7 @@ var GitHubGroup = HttpApiGroup_exports.make("github").add(HttpApiEndpoint_export
|
|
|
26942
27289
|
})).annotate(OpenApi_exports.Description, "GitHub App installation and webhook control-plane operations.");
|
|
26943
27290
|
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
27291
|
|
|
26945
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27292
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/inference.js
|
|
26946
27293
|
var NonEmptyString6 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26947
27294
|
var inferenceCredentialsSchema = Schema_exports.Struct({
|
|
26948
27295
|
profileId: Schema_exports.optional(NonEmptyString6),
|
|
@@ -27056,7 +27403,7 @@ var InferenceGroup = HttpApiGroup_exports.make("inference").add(HttpApiEndpoint_
|
|
|
27056
27403
|
]
|
|
27057
27404
|
})).annotate(OpenApi_exports.Description, "Inference on connected accounts, via the official agent SDKs \u2014 never raw model-API calls.");
|
|
27058
27405
|
|
|
27059
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27406
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/packages.js
|
|
27060
27407
|
var NonEmptyString7 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27061
27408
|
var packageTargetOsSchema = Schema_exports.Literals(["arch", "fedora", "nix", "ubuntu"]);
|
|
27062
27409
|
var packageResolutionStatusSchema = Schema_exports.Literals([
|
|
@@ -27114,7 +27461,7 @@ var PackagesGroup = HttpApiGroup_exports.make("packages").add(HttpApiEndpoint_ex
|
|
|
27114
27461
|
error: [PackagesBadGatewayError, PackagesInternalServerError]
|
|
27115
27462
|
})).annotate(OpenApi_exports.Description, "Package normalization and distro resolution operations.");
|
|
27116
27463
|
|
|
27117
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27464
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/profiles.js
|
|
27118
27465
|
var NonEmptyString8 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27119
27466
|
var profileStatusSchema = Schema_exports.Literals(["active", "archived"]);
|
|
27120
27467
|
var profileSummarySchema = Schema_exports.Struct({
|
|
@@ -27197,7 +27544,7 @@ var ProfilesGroup = HttpApiGroup_exports.make("profiles").add(HttpApiEndpoint_ex
|
|
|
27197
27544
|
})
|
|
27198
27545
|
).annotate(OpenApi_exports.Description, "Profiles and their per-provider connected-account credential bindings.");
|
|
27199
27546
|
|
|
27200
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27547
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/oci-names.js
|
|
27201
27548
|
var REPOSITORY_COMPONENT = "[a-z0-9]+(?:(?:\\.|_|__|-+)[a-z0-9]+)*";
|
|
27202
27549
|
var REPOSITORY = new RegExp(`^${REPOSITORY_COMPONENT}(?:/${REPOSITORY_COMPONENT})*$`);
|
|
27203
27550
|
var REPOSITORY_MAX_LENGTH = 255;
|
|
@@ -27221,7 +27568,7 @@ var isOciReference = (value3) => isOciDigest(value3) || isOciTag(value3);
|
|
|
27221
27568
|
var OCI_REPOSITORY_MESSAGE = "must be an OCI repository name: lowercase path components of [a-z0-9] joined by '.', '_', '__' or '-', separated by '/'";
|
|
27222
27569
|
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
27570
|
|
|
27224
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27571
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/registries.js
|
|
27225
27572
|
var NonEmptyString9 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27226
27573
|
var OciRepository = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciRepository(value3) ? void 0 : `repository ${OCI_REPOSITORY_MESSAGE}`));
|
|
27227
27574
|
var OciReference = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciReference(value3) ? void 0 : `reference ${OCI_REFERENCE_MESSAGE}`));
|
|
@@ -27298,7 +27645,7 @@ var RegistriesGroup = HttpApiGroup_exports.make("registries").add(HttpApiEndpoin
|
|
|
27298
27645
|
error: [RegistriesNotFoundError, RegistriesBadGatewayError]
|
|
27299
27646
|
})).annotate(OpenApi_exports.Description, "Registry metadata and OCI read operations.");
|
|
27300
27647
|
|
|
27301
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27648
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/request-refusal.js
|
|
27302
27649
|
var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRefusedError", {
|
|
27303
27650
|
/** Where the request is wrong and what was expected; never a value it held. */
|
|
27304
27651
|
message: Schema_exports.String
|
|
@@ -27307,7 +27654,7 @@ var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRef
|
|
|
27307
27654
|
var RequestRefusal = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestRefusal", { error: RequestRefusedError }) {
|
|
27308
27655
|
};
|
|
27309
27656
|
|
|
27310
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27657
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-domains.js
|
|
27311
27658
|
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
27659
|
var RESOURCE_DOMAIN_KEY_PATTERN = /^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._:/@+=-]{1,223}$/;
|
|
27313
27660
|
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 +27830,7 @@ var ResourceDomainsGroup = HttpApiGroup_exports.make("resourceDomains").add(Http
|
|
|
27483
27830
|
]
|
|
27484
27831
|
})).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
27832
|
|
|
27486
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27833
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-instances.js
|
|
27487
27834
|
var RESOURCE_INSTANCE_ID_PREFIX = "rin:";
|
|
27488
27835
|
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
27836
|
var matching = (pattern, message) => Schema_exports.makeFilter((value3) => pattern.test(value3) ? void 0 : message);
|
|
@@ -27773,7 +28120,7 @@ var resourceInstanceExecResultSchema = Schema_exports.Struct({
|
|
|
27773
28120
|
timedOut: Schema_exports.Boolean
|
|
27774
28121
|
});
|
|
27775
28122
|
|
|
27776
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28123
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/runs.js
|
|
27777
28124
|
var NonEmptyString10 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27778
28125
|
var runStatusSchema = Schema_exports.Literals([
|
|
27779
28126
|
"queued",
|
|
@@ -28021,7 +28368,7 @@ var RunsGroup = HttpApiGroup_exports.make("runs").add(HttpApiEndpoint_exports.po
|
|
|
28021
28368
|
error: [RunNotFoundError, RunInternalServerError]
|
|
28022
28369
|
})).annotate(OpenApi_exports.Description, "Runs (harness executions) and their execution record.");
|
|
28023
28370
|
|
|
28024
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28371
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/sessions.js
|
|
28025
28372
|
var NonEmptyString11 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28026
28373
|
var sessionStatusSchema = Schema_exports.Literals(["starting", "running", "exited", "failed"]);
|
|
28027
28374
|
var sessionAuthorizationHeadersSchema = Schema_exports.Struct({
|
|
@@ -28336,7 +28683,7 @@ var SessionsGroup = HttpApiGroup_exports.make("sessions").add(
|
|
|
28336
28683
|
})
|
|
28337
28684
|
).annotate(OpenApi_exports.Description, "Interactive PTY sessions: durable, reattachable, sequence-keyed output.");
|
|
28338
28685
|
|
|
28339
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28686
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/ssh-keys.js
|
|
28340
28687
|
var NonEmptyString12 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28341
28688
|
var sshKeyGatewayHeadersSchema = Schema_exports.Struct({
|
|
28342
28689
|
// Authenticates the gateway as a trusted caller of the internal resolve endpoint.
|
|
@@ -28433,7 +28780,7 @@ var SshKeysGroup = HttpApiGroup_exports.make("sshKeys").add(HttpApiEndpoint_expo
|
|
|
28433
28780
|
})
|
|
28434
28781
|
).annotate(OpenApi_exports.Description, "User SSH public keys and gateway principal resolution.");
|
|
28435
28782
|
|
|
28436
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28783
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/system.js
|
|
28437
28784
|
var NonEmptyString13 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28438
28785
|
var systemIndexResponseSchema = Schema_exports.Struct({
|
|
28439
28786
|
name: NonEmptyString13,
|
|
@@ -28550,7 +28897,7 @@ var SystemGroup = HttpApiGroup_exports.make("system").add(HttpApiEndpoint_export
|
|
|
28550
28897
|
})
|
|
28551
28898
|
).annotate(OpenApi_exports.Description, "System metadata, health probes, and first-run setup state.");
|
|
28552
28899
|
|
|
28553
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28900
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/users.js
|
|
28554
28901
|
var NonEmptyString14 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28555
28902
|
var userSchema = Schema_exports.Struct({
|
|
28556
28903
|
userId: PersonId,
|
|
@@ -28613,7 +28960,7 @@ var UsersGroup = HttpApiGroup_exports.make("users").add(HttpApiEndpoint_exports.
|
|
|
28613
28960
|
error: [UserNotFoundError, UserInternalServerError]
|
|
28614
28961
|
})).annotate(OpenApi_exports.Description, "Identity rows for products that own their own login and act on behalf of their users.");
|
|
28615
28962
|
|
|
28616
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28963
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/endpoint-url.js
|
|
28617
28964
|
var parsed = (value3) => {
|
|
28618
28965
|
try {
|
|
28619
28966
|
return new URL(value3);
|
|
@@ -28651,7 +28998,7 @@ var parseEndpointUrl = (raw2) => {
|
|
|
28651
28998
|
return problem === void 0 ? { valid: true, url: decodeEndpointUrl(raw2) } : { valid: false, reason: `The endpoint ${problem}.` };
|
|
28652
28999
|
};
|
|
28653
29000
|
|
|
28654
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
29001
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspaces.js
|
|
28655
29002
|
var NonEmptyString15 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28656
29003
|
var workspaceStatusSchema = Schema_exports.Literals([
|
|
28657
29004
|
"queued",
|
|
@@ -28796,7 +29143,12 @@ var workspacePublicationSchema = Schema_exports.Union([
|
|
|
28796
29143
|
]);
|
|
28797
29144
|
var workspaceErrorSchema = Schema_exports.Struct({
|
|
28798
29145
|
message: Schema_exports.String,
|
|
28799
|
-
code: Schema_exports.optional(NonEmptyString15)
|
|
29146
|
+
code: Schema_exports.optional(NonEmptyString15),
|
|
29147
|
+
/**
|
|
29148
|
+
* Why Boat refused, or did not answer, the call that failed this Boat workspace's launch or image
|
|
29149
|
+
* build: the kind, and Boat's own code, message and request id. Absent for any other failure.
|
|
29150
|
+
*/
|
|
29151
|
+
boat: Schema_exports.optional(boatFailureSchema)
|
|
28800
29152
|
});
|
|
28801
29153
|
var githubWorkspaceSourceSelectionSchema = Schema_exports.Struct({
|
|
28802
29154
|
provider: Schema_exports.Literal("github"),
|
|
@@ -29213,6 +29565,67 @@ var inspectWorkspaceImageResponseSchema = Schema_exports.Struct({
|
|
|
29213
29565
|
/** The image's per-person capability (`unknown` when none has been built yet). */
|
|
29214
29566
|
personLayout: workspaceImagePersonLayoutSchema
|
|
29215
29567
|
});
|
|
29568
|
+
var runtimeUnsupportedSchema = Schema_exports.Struct({
|
|
29569
|
+
supported: Schema_exports.Literal(false),
|
|
29570
|
+
message: NonEmptyString15
|
|
29571
|
+
});
|
|
29572
|
+
var runtimeCapabilitySchema = Schema_exports.Union([
|
|
29573
|
+
Schema_exports.Struct({ supported: Schema_exports.Literal(true) }),
|
|
29574
|
+
runtimeUnsupportedSchema
|
|
29575
|
+
]);
|
|
29576
|
+
var runtimeArchitectures = ["x86_64", "aarch64"];
|
|
29577
|
+
var runtimeArchitectureSchema = Schema_exports.Literals(runtimeArchitectures);
|
|
29578
|
+
var runtimeSupportSchema = Schema_exports.Struct({
|
|
29579
|
+
runtime: Schema_exports.Literals(runtimeAdapterIds),
|
|
29580
|
+
/** The managed OS families that run on this runtime (`target.os.family`). */
|
|
29581
|
+
os: Schema_exports.Struct({
|
|
29582
|
+
ubuntu: runtimeCapabilitySchema,
|
|
29583
|
+
nix: runtimeCapabilitySchema,
|
|
29584
|
+
arch: runtimeCapabilitySchema,
|
|
29585
|
+
fedora: runtimeCapabilitySchema
|
|
29586
|
+
}),
|
|
29587
|
+
/** A workspace built from a base image of its own (`target.os.family: "custom"`). */
|
|
29588
|
+
customImage: runtimeCapabilitySchema,
|
|
29589
|
+
/** Directories of the deployment's own servers bound into the workspace (mount sources). */
|
|
29590
|
+
hostDirectories: runtimeCapabilitySchema,
|
|
29591
|
+
/** Docker inside the workspace (`tooling.services.docker`). */
|
|
29592
|
+
docker: runtimeCapabilitySchema,
|
|
29593
|
+
/** The workspace run under gVisor (`runtime.ociRuntime: "runsc"`). */
|
|
29594
|
+
gvisor: runtimeCapabilitySchema,
|
|
29595
|
+
/** Kubernetes Secrets, ConfigMaps and a service account (`runtime.envFrom`, `kubernetes`). */
|
|
29596
|
+
clusterEnv: runtimeCapabilitySchema,
|
|
29597
|
+
/** A workspace started by cloning a repository (a `git` source), not from a capture. */
|
|
29598
|
+
gitSource: runtimeCapabilitySchema,
|
|
29599
|
+
/** Dotfiles sent with the create as archives (`runtime.dotfilesArchives`). */
|
|
29600
|
+
dotfilesArchives: runtimeCapabilitySchema,
|
|
29601
|
+
/** A screen (an X display) inside the workspace, and the CPU architectures it runs on. */
|
|
29602
|
+
screen: Schema_exports.Union([
|
|
29603
|
+
Schema_exports.Struct({
|
|
29604
|
+
supported: Schema_exports.Literal(true),
|
|
29605
|
+
architectures: Schema_exports.Array(runtimeArchitectureSchema)
|
|
29606
|
+
}),
|
|
29607
|
+
runtimeUnsupportedSchema
|
|
29608
|
+
]),
|
|
29609
|
+
/** Ports inside the workspace the runtime holds for itself: nothing else can listen on them. */
|
|
29610
|
+
reservedPorts: Schema_exports.Array(Schema_exports.Number),
|
|
29611
|
+
/**
|
|
29612
|
+
* A project's resources linked to the workspace: `live` reaches a running workspace when it is
|
|
29613
|
+
* linked, `next-start` only once the workspace starts again.
|
|
29614
|
+
*/
|
|
29615
|
+
resources: Schema_exports.Union([
|
|
29616
|
+
Schema_exports.Struct({
|
|
29617
|
+
supported: Schema_exports.Literal(true),
|
|
29618
|
+
attach: Schema_exports.Literals(["live", "next-start"])
|
|
29619
|
+
}),
|
|
29620
|
+
runtimeUnsupportedSchema
|
|
29621
|
+
]),
|
|
29622
|
+
/** Whether a workspace that sits idle costs money, and the sentence that says so. */
|
|
29623
|
+
idleCost: Schema_exports.Struct({ charged: Schema_exports.Boolean, message: NonEmptyString15 })
|
|
29624
|
+
});
|
|
29625
|
+
var workspaceRuntimesResponseSchema = Schema_exports.Struct({
|
|
29626
|
+
default: Schema_exports.Literals(runtimeAdapterIds),
|
|
29627
|
+
runtimes: Schema_exports.Array(runtimeSupportSchema)
|
|
29628
|
+
});
|
|
29216
29629
|
var connectedAccountRefusalCodes = [
|
|
29217
29630
|
"connected-account-missing",
|
|
29218
29631
|
"connected-account-invalid",
|
|
@@ -29894,10 +30307,19 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
|
|
|
29894
30307
|
WorkspaceConflictError,
|
|
29895
30308
|
WorkspaceBadGatewayError,
|
|
29896
30309
|
WorkspaceServiceUnavailableError,
|
|
30310
|
+
// The recorded spec asks for what its runtime does not support (now), as a create would.
|
|
29897
30311
|
WorkspaceRuntimeRequirementUnsupportedError,
|
|
30312
|
+
WorkspaceRuntimeEnvReferencesUnsupportedError,
|
|
30313
|
+
WorkspaceDockerServiceUnsupportedError,
|
|
29898
30314
|
WorkspaceInternalServerError
|
|
29899
30315
|
]
|
|
29900
30316
|
})
|
|
30317
|
+
).add(
|
|
30318
|
+
// A read, before any create: the runtimes this install launches and what each supports.
|
|
30319
|
+
HttpApiEndpoint_exports.get("listWorkspaceRuntimes", "/runtimes", {
|
|
30320
|
+
success: workspaceRuntimesResponseSchema,
|
|
30321
|
+
error: [WorkspaceInternalServerError]
|
|
30322
|
+
})
|
|
29901
30323
|
).add(
|
|
29902
30324
|
// A read: plans the spec as a build would and looks up what was published for it.
|
|
29903
30325
|
HttpApiEndpoint_exports.post("inspectWorkspaceImage", "/image", {
|
|
@@ -30029,10 +30451,10 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
|
|
|
30029
30451
|
]
|
|
30030
30452
|
})).annotate(OpenApi_exports.Description, "Workspace lifecycle, attempts, events, and runtime routing endpoints.");
|
|
30031
30453
|
|
|
30032
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30454
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/control-plane.js
|
|
30033
30455
|
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
30456
|
|
|
30035
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30457
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/record-events.js
|
|
30036
30458
|
var recordEventKindValues = [
|
|
30037
30459
|
"runtimeStateChanged",
|
|
30038
30460
|
"runtimeHeartbeat",
|
|
@@ -30174,7 +30596,7 @@ var decoders = {
|
|
|
30174
30596
|
networkSourceObserved: eventCase("networkSourceObserved", networkSourceObservedEventSchema)
|
|
30175
30597
|
};
|
|
30176
30598
|
|
|
30177
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30599
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspace-forward.js
|
|
30178
30600
|
var FORWARD_V2_MAX_FRAME_BYTES = 64 * 1024;
|
|
30179
30601
|
var forwardRefusalReasonSchema = Schema_exports.Literals([
|
|
30180
30602
|
"workspace-not-ready",
|
|
@@ -30252,7 +30674,7 @@ var forwardFlowFrameSchema = Schema_exports.Union([
|
|
|
30252
30674
|
]);
|
|
30253
30675
|
var decodeFlowFrame = Schema_exports.decodeUnknownOption(Schema_exports.fromJsonString(forwardFlowFrameSchema));
|
|
30254
30676
|
|
|
30255
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30677
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
|
|
30256
30678
|
var WORKSPACE_ENV_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/u;
|
|
30257
30679
|
var WORKSPACE_ENV_MAX_NAME_LENGTH = 128;
|
|
30258
30680
|
var RESERVED_PREFIXES = [
|
|
@@ -30355,7 +30777,7 @@ var providerLoginEnvNames = {
|
|
|
30355
30777
|
codex: ["OPENAI_API_KEY", "CODEX_API_KEY"]
|
|
30356
30778
|
};
|
|
30357
30779
|
|
|
30358
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30780
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.874_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/capture-owner-map.js
|
|
30359
30781
|
var CAPTURE_OWNER_MAP_UID_RANGE = { first: 40001, last: 49999 };
|
|
30360
30782
|
var UID_RANGE_TEXT = `${CAPTURE_OWNER_MAP_UID_RANGE.first}\u2013${CAPTURE_OWNER_MAP_UID_RANGE.last}`;
|
|
30361
30783
|
|
|
@@ -31019,7 +31441,7 @@ var firstPositional = (args2, valued) => args2.find(
|
|
|
31019
31441
|
);
|
|
31020
31442
|
var isFlag = (token) => token.startsWith("-") && token !== "-";
|
|
31021
31443
|
var shellWord = (word) => /^[A-Za-z0-9_./:@=,+-]+$/.test(word) ? word : `'${word.replaceAll("'", `'\\''`)}'`;
|
|
31022
|
-
var paint = (code) => (text2) => process.stdout.isTTY
|
|
31444
|
+
var paint = (code) => (text2) => process.stdout.isTTY ? `\x1B[${code}m${text2}\x1B[0m` : text2;
|
|
31023
31445
|
var CONTROL_CHARACTER = /[\u0000-\u001f\u007f-\u009f]/g;
|
|
31024
31446
|
var printable = (text2) => text2.replace(
|
|
31025
31447
|
CONTROL_CHARACTER,
|
|
@@ -31067,6 +31489,16 @@ var serviceViewStatus = (view) => {
|
|
|
31067
31489
|
};
|
|
31068
31490
|
var serviceViewHostPort = (view) => (view.endpoints.find((candidate) => candidate.scope === "private") ?? view.endpoints[0] ?? null)?.hostPort ?? null;
|
|
31069
31491
|
|
|
31492
|
+
// src/terminal.ts
|
|
31493
|
+
import { spawn } from "node:child_process";
|
|
31494
|
+
var openUrl = (target) => {
|
|
31495
|
+
const opener = process.platform === "darwin" ? "open" : "xdg-open";
|
|
31496
|
+
const child = spawn(opener, [target], { detached: true, stdio: "ignore" });
|
|
31497
|
+
child.on("error", () => void 0);
|
|
31498
|
+
child.unref();
|
|
31499
|
+
};
|
|
31500
|
+
var isTerminal = (stream2) => stream2.isTTY === true;
|
|
31501
|
+
|
|
31070
31502
|
// src/dashboard-adoption.ts
|
|
31071
31503
|
var ADOPT_MODE_ORDER = ["mend-key", "bridge"];
|
|
31072
31504
|
var deriveAdoptOffer = (facts, savedMode = null) => {
|
|
@@ -31453,6 +31885,7 @@ Address each point using your own judgment about how. Check your work with the r
|
|
|
31453
31885
|
export {
|
|
31454
31886
|
__commonJS,
|
|
31455
31887
|
__toESM,
|
|
31888
|
+
Predicate_exports,
|
|
31456
31889
|
Option_exports,
|
|
31457
31890
|
Service,
|
|
31458
31891
|
Record_exports,
|
|
@@ -31489,7 +31922,18 @@ export {
|
|
|
31489
31922
|
ResourceLoadId,
|
|
31490
31923
|
Timestamp,
|
|
31491
31924
|
SequenceNumber,
|
|
31925
|
+
SessionRuntime,
|
|
31492
31926
|
WorkspaceImage,
|
|
31927
|
+
HttpApiEndpoint_exports,
|
|
31928
|
+
HttpApiMiddleware_exports,
|
|
31929
|
+
HttpApiGroup_exports,
|
|
31930
|
+
BOAT_FAILURE_KINDS,
|
|
31931
|
+
BOAT_KEY_PROOF_STEPS,
|
|
31932
|
+
EndpointUrl,
|
|
31933
|
+
WORKSPACE_ENV_NAME_PATTERN,
|
|
31934
|
+
WORKSPACE_ENV_MAX_NAME_LENGTH,
|
|
31935
|
+
findWorkspaceSecretEnvReservedRule,
|
|
31936
|
+
providerLoginEnvNames,
|
|
31493
31937
|
EFFORT_LEVELS,
|
|
31494
31938
|
SPEED_MODES,
|
|
31495
31939
|
takesReviewFollowUp,
|
|
@@ -31500,20 +31944,12 @@ export {
|
|
|
31500
31944
|
AMBIENT_REMOVED_GUIDANCE,
|
|
31501
31945
|
repositoryCloneUrlIssue,
|
|
31502
31946
|
Project,
|
|
31503
|
-
WORKSPACE_ENV_NAME_PATTERN,
|
|
31504
|
-
WORKSPACE_ENV_MAX_NAME_LENGTH,
|
|
31505
|
-
findWorkspaceSecretEnvReservedRule,
|
|
31506
|
-
providerLoginEnvNames,
|
|
31507
31947
|
SessionProcess,
|
|
31508
31948
|
servicesHoldLine,
|
|
31509
31949
|
sharedControlLine,
|
|
31510
31950
|
sharedControlConfirm,
|
|
31511
31951
|
workspaceRetirementLine,
|
|
31512
31952
|
REPLACE_WORKSPACE_ACTION,
|
|
31513
|
-
HttpApiEndpoint_exports,
|
|
31514
|
-
HttpApiMiddleware_exports,
|
|
31515
|
-
HttpApiGroup_exports,
|
|
31516
|
-
EndpointUrl,
|
|
31517
31953
|
MendRequestError,
|
|
31518
31954
|
neverConnected,
|
|
31519
31955
|
spoken,
|
|
@@ -31557,6 +31993,8 @@ export {
|
|
|
31557
31993
|
visibleWhitespace,
|
|
31558
31994
|
buildReviewFiles,
|
|
31559
31995
|
assembleReviewInstruction,
|
|
31996
|
+
openUrl,
|
|
31997
|
+
isTerminal,
|
|
31560
31998
|
ADOPT_MODE_ORDER,
|
|
31561
31999
|
deriveAdoptOffer,
|
|
31562
32000
|
refusedAdoptOffer,
|