hinacode 0.3.0-alpha.1 → 0.3.0-alpha.11
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/README.md +14 -11
- package/out/server/chunks/{remote-CwGJoiQN.js → remote-bP8M4Xnc.js} +2125 -893
- package/out/server/chunks/sdk-DZclv7I1.js +33693 -0
- package/out/server/cli.js +104 -30
- package/out/server/daemon.js +30301 -26068
- package/package.json +1 -1
- package/out/server/chunks/sdk-BjcPK2t_.js +0 -30502
|
@@ -3,7 +3,7 @@ globalThis.require ??= __createRequire(import.meta.url);
|
|
|
3
3
|
import * as crypto from "node:crypto";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import * as NFS from "node:fs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as NL from "node:os";
|
|
7
7
|
import { tmpdir, userInfo } from "node:os";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { join as join$1 } from "node:path";
|
|
@@ -385,7 +385,7 @@ const randomHashCache = /* @__PURE__ */ new WeakMap();
|
|
|
385
385
|
const hashCache = /* @__PURE__ */ new WeakMap();
|
|
386
386
|
const visitedObjects = /* @__PURE__ */ new WeakSet();
|
|
387
387
|
const symbol = "~effect/Equal";
|
|
388
|
-
function equals$
|
|
388
|
+
function equals$2() {
|
|
389
389
|
if (arguments.length === 1) {
|
|
390
390
|
return (self2) => compareBoth(self2, arguments[0]);
|
|
391
391
|
}
|
|
@@ -898,7 +898,7 @@ const StructuralProto = {
|
|
|
898
898
|
const thatKeys = Object.keys(that);
|
|
899
899
|
if (selfKeys.length !== thatKeys.length) return false;
|
|
900
900
|
for (let i = 0; i < selfKeys.length; i++) {
|
|
901
|
-
if (selfKeys[i] !== thatKeys[i] || !equals$
|
|
901
|
+
if (selfKeys[i] !== thatKeys[i] || !equals$2(this[selfKeys[i]], that[selfKeys[i]])) {
|
|
902
902
|
return false;
|
|
903
903
|
}
|
|
904
904
|
}
|
|
@@ -948,7 +948,7 @@ class CauseImpl {
|
|
|
948
948
|
return this.toJSON();
|
|
949
949
|
}
|
|
950
950
|
[symbol](that) {
|
|
951
|
-
return isCause$1(that) && this.reasons.length === that.reasons.length && this.reasons.every((e, i) => equals$
|
|
951
|
+
return isCause$1(that) && this.reasons.length === that.reasons.length && this.reasons.every((e, i) => equals$2(e, that.reasons[i]));
|
|
952
952
|
}
|
|
953
953
|
[symbol$1]() {
|
|
954
954
|
return array(this.reasons);
|
|
@@ -1008,7 +1008,7 @@ class Fail extends ReasonBase {
|
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
1010
|
[symbol](that) {
|
|
1011
|
-
return isFailReason$1(that) && equals$
|
|
1011
|
+
return isFailReason$1(that) && equals$2(this.error, that.error) && equals$2(this.annotations, that.annotations);
|
|
1012
1012
|
}
|
|
1013
1013
|
[symbol$1]() {
|
|
1014
1014
|
return combine$1(string$1(this._tag))(combine$1(hash(this.error))(hash(this.annotations)));
|
|
@@ -1023,7 +1023,7 @@ const dedupeReasons = (self2, that) => {
|
|
|
1023
1023
|
const bucket = buckets.get(hash$1);
|
|
1024
1024
|
if (bucket === void 0) {
|
|
1025
1025
|
buckets.set(hash$1, [reason]);
|
|
1026
|
-
} else if (bucket.some((previous) => equals$
|
|
1026
|
+
} else if (bucket.some((previous) => equals$2(previous, reason))) {
|
|
1027
1027
|
continue;
|
|
1028
1028
|
} else {
|
|
1029
1029
|
bucket.push(reason);
|
|
@@ -1039,7 +1039,7 @@ const causeCombine = /* @__PURE__ */ dual(2, (self2, that) => {
|
|
|
1039
1039
|
return self2;
|
|
1040
1040
|
}
|
|
1041
1041
|
const newCause = new CauseImpl(dedupeReasons(self2.reasons, that.reasons));
|
|
1042
|
-
return equals$
|
|
1042
|
+
return equals$2(self2, newCause) ? self2 : newCause;
|
|
1043
1043
|
});
|
|
1044
1044
|
const causeEmpty = /* @__PURE__ */ new CauseImpl([]);
|
|
1045
1045
|
const causeFail = (error) => new CauseImpl([new Fail(error)]);
|
|
@@ -1058,7 +1058,7 @@ class Die extends ReasonBase {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
1060
|
[symbol](that) {
|
|
1061
|
-
return isDieReason(that) && equals$
|
|
1061
|
+
return isDieReason(that) && equals$2(this.defect, that.defect) && equals$2(this.annotations, that.annotations);
|
|
1062
1062
|
}
|
|
1063
1063
|
[symbol$1]() {
|
|
1064
1064
|
return combine$1(string$1(this._tag))(combine$1(hash(this.defect))(hash(this.annotations)));
|
|
@@ -1112,7 +1112,7 @@ const makeExit = (options) => {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
},
|
|
1114
1114
|
[symbol](that) {
|
|
1115
|
-
return isExit$1(that) && that._tag === this._tag && equals$
|
|
1115
|
+
return isExit$1(that) && that._tag === this._tag && equals$2(this[args], that[args]);
|
|
1116
1116
|
},
|
|
1117
1117
|
[symbol$1]() {
|
|
1118
1118
|
return combine$1(string$1(options.op), hash(this[args]));
|
|
@@ -1262,11 +1262,11 @@ const Prototype = (options) => makePrimitiveProto({
|
|
|
1262
1262
|
op: options.label,
|
|
1263
1263
|
[evaluate]: options.evaluate
|
|
1264
1264
|
});
|
|
1265
|
-
const make$
|
|
1265
|
+
const make$x = (isEquivalent) => (self2, that) => self2 === that || isEquivalent(self2, that);
|
|
1266
1266
|
const isStrictEquivalent = (x, y) => x === y;
|
|
1267
1267
|
const strictEqual = () => isStrictEquivalent;
|
|
1268
1268
|
function Tuple$1(elements) {
|
|
1269
|
-
return make$
|
|
1269
|
+
return make$x((self2, that) => {
|
|
1270
1270
|
if (self2.length !== that.length) {
|
|
1271
1271
|
return false;
|
|
1272
1272
|
}
|
|
@@ -1279,7 +1279,7 @@ function Tuple$1(elements) {
|
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
1281
1281
|
function Array_(item) {
|
|
1282
|
-
return make$
|
|
1282
|
+
return make$x((self2, that) => {
|
|
1283
1283
|
if (self2.length !== that.length) return false;
|
|
1284
1284
|
for (let i = 0; i < self2.length; i++) {
|
|
1285
1285
|
if (!item(self2[i], that[i])) return false;
|
|
@@ -1287,9 +1287,9 @@ function Array_(item) {
|
|
|
1287
1287
|
return true;
|
|
1288
1288
|
});
|
|
1289
1289
|
}
|
|
1290
|
-
const TypeId$
|
|
1290
|
+
const TypeId$v = "~effect/Option";
|
|
1291
1291
|
const CommonProto$1 = {
|
|
1292
|
-
[TypeId$
|
|
1292
|
+
[TypeId$v]: {
|
|
1293
1293
|
_A: (_) => _
|
|
1294
1294
|
},
|
|
1295
1295
|
...PipeInspectableProto,
|
|
@@ -1301,7 +1301,7 @@ const SomeProto = /* @__PURE__ */ Object.defineProperty(/* @__PURE__ */ Object.a
|
|
|
1301
1301
|
_tag: "Some",
|
|
1302
1302
|
_op: "Some",
|
|
1303
1303
|
[symbol](that) {
|
|
1304
|
-
return isOption$1(that) && isSome$1(that) && equals$
|
|
1304
|
+
return isOption$1(that) && isSome$1(that) && equals$2(this.value, that.value);
|
|
1305
1305
|
},
|
|
1306
1306
|
[symbol$1]() {
|
|
1307
1307
|
return combine$1(hash(this._tag))(hash(this.value));
|
|
@@ -1342,7 +1342,7 @@ const NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Co
|
|
|
1342
1342
|
};
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
|
-
const isOption$1 = (input) => hasProperty(input, TypeId$
|
|
1345
|
+
const isOption$1 = (input) => hasProperty(input, TypeId$v);
|
|
1346
1346
|
const isNone$1 = (fa) => fa._tag === "None";
|
|
1347
1347
|
const isSome$1 = (fa) => fa._tag === "Some";
|
|
1348
1348
|
const none$1 = /* @__PURE__ */ Object.create(NoneProto);
|
|
@@ -1351,9 +1351,9 @@ const SomeImpl = function(value2) {
|
|
|
1351
1351
|
};
|
|
1352
1352
|
SomeImpl.prototype = SomeProto;
|
|
1353
1353
|
const some$1 = (value2) => new SomeImpl(value2);
|
|
1354
|
-
const TypeId$
|
|
1354
|
+
const TypeId$u = "~effect/Result";
|
|
1355
1355
|
const CommonProto = {
|
|
1356
|
-
[TypeId$
|
|
1356
|
+
[TypeId$u]: {
|
|
1357
1357
|
/* v8 ignore next 2 */
|
|
1358
1358
|
_A: (_) => _,
|
|
1359
1359
|
_E: (_) => _
|
|
@@ -1367,7 +1367,7 @@ const SuccessProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create
|
|
|
1367
1367
|
_tag: "Success",
|
|
1368
1368
|
_op: "Success",
|
|
1369
1369
|
[symbol](that) {
|
|
1370
|
-
return isResult$1(that) && isSuccess$2(that) && equals$
|
|
1370
|
+
return isResult$1(that) && isSuccess$2(that) && equals$2(this.success, that.success);
|
|
1371
1371
|
},
|
|
1372
1372
|
[symbol$1]() {
|
|
1373
1373
|
return combine$1(hash(this._tag))(hash(this.success));
|
|
@@ -1387,7 +1387,7 @@ const FailureProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create
|
|
|
1387
1387
|
_tag: "Failure",
|
|
1388
1388
|
_op: "Failure",
|
|
1389
1389
|
[symbol](that) {
|
|
1390
|
-
return isResult$1(that) && isFailure$2(that) && equals$
|
|
1390
|
+
return isResult$1(that) && isFailure$2(that) && equals$2(this.failure, that.failure);
|
|
1391
1391
|
},
|
|
1392
1392
|
[symbol$1]() {
|
|
1393
1393
|
return combine$1(hash(this._tag))(hash(this.failure));
|
|
@@ -1403,7 +1403,7 @@ const FailureProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create
|
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
});
|
|
1406
|
-
const isResult$1 = (input) => hasProperty(input, TypeId$
|
|
1406
|
+
const isResult$1 = (input) => hasProperty(input, TypeId$u);
|
|
1407
1407
|
const isFailure$2 = (result2) => result2._tag === "Failure";
|
|
1408
1408
|
const isSuccess$2 = (result2) => result2._tag === "Success";
|
|
1409
1409
|
const FailureImpl = function(failure) {
|
|
@@ -1416,16 +1416,17 @@ const SuccessImpl = function(success) {
|
|
|
1416
1416
|
};
|
|
1417
1417
|
SuccessImpl.prototype = SuccessProto;
|
|
1418
1418
|
const succeed$9 = (success) => new SuccessImpl(success);
|
|
1419
|
-
|
|
1419
|
+
const fromOption$3 = /* @__PURE__ */ dual(2, (self2, onNone) => isNone$1(self2) ? fail$7(onNone()) : succeed$9(self2.value));
|
|
1420
|
+
function make$w(compare) {
|
|
1420
1421
|
return (self2, that) => self2 === that ? 0 : compare(self2, that);
|
|
1421
1422
|
}
|
|
1422
|
-
const Number$4 = /* @__PURE__ */ make$
|
|
1423
|
+
const Number$4 = /* @__PURE__ */ make$w((self2, that) => {
|
|
1423
1424
|
if (globalThis.Number.isNaN(self2) && globalThis.Number.isNaN(that)) return 0;
|
|
1424
1425
|
if (globalThis.Number.isNaN(self2)) return -1;
|
|
1425
1426
|
if (globalThis.Number.isNaN(that)) return 1;
|
|
1426
1427
|
return self2 < that ? -1 : 1;
|
|
1427
1428
|
});
|
|
1428
|
-
const mapInput = /* @__PURE__ */ dual(2, (self2, f) => make$
|
|
1429
|
+
const mapInput = /* @__PURE__ */ dual(2, (self2, f) => make$w((b1, b2) => self2(f(b1), f(b2))));
|
|
1429
1430
|
const isLessThan = (O) => dual(2, (self2, that) => O(self2, that) === -1);
|
|
1430
1431
|
const isGreaterThan = (O) => dual(2, (self2, that) => O(self2, that) === 1);
|
|
1431
1432
|
const isLessThanOrEqualTo = (O) => dual(2, (self2, that) => O(self2, that) !== 1);
|
|
@@ -1452,10 +1453,19 @@ const liftThrowable = (f) => (...a) => {
|
|
|
1452
1453
|
return none();
|
|
1453
1454
|
}
|
|
1454
1455
|
};
|
|
1456
|
+
const getOrThrowWith$1 = /* @__PURE__ */ dual(2, (self2, onNone) => {
|
|
1457
|
+
if (isSome(self2)) {
|
|
1458
|
+
return self2.value;
|
|
1459
|
+
}
|
|
1460
|
+
throw onNone();
|
|
1461
|
+
});
|
|
1462
|
+
const getOrThrow$1 = /* @__PURE__ */ getOrThrowWith$1(() => new Error("getOrThrow called on a None"));
|
|
1455
1463
|
const map$8 = /* @__PURE__ */ dual(2, (self2, f) => isNone(self2) ? none() : some(f(self2.value)));
|
|
1456
1464
|
const flatMap$7 = /* @__PURE__ */ dual(2, (self2, f) => isNone(self2) ? none() : f(self2.value));
|
|
1465
|
+
const flatMapNullishOr$1 = /* @__PURE__ */ dual(2, (self2, f) => isNone(self2) ? none() : fromNullishOr$1(f(self2.value)));
|
|
1466
|
+
const flatten$4 = /* @__PURE__ */ flatMap$7(identity);
|
|
1457
1467
|
const toArray = (self2) => isNone(self2) ? [] : [self2.value];
|
|
1458
|
-
const filter$
|
|
1468
|
+
const filter$4 = /* @__PURE__ */ dual(2, (self2, predicate) => isNone(self2) ? none() : predicate(self2.value) ? some(self2.value) : none());
|
|
1459
1469
|
const exists = /* @__PURE__ */ dual(2, (self2, refinement) => isNone(self2) ? false : refinement(self2.value));
|
|
1460
1470
|
const ServiceTypeId = "~effect/Context/Service";
|
|
1461
1471
|
const Service = function() {
|
|
@@ -1497,7 +1507,7 @@ const ServiceProto = {
|
|
|
1497
1507
|
return self2;
|
|
1498
1508
|
},
|
|
1499
1509
|
context(self2) {
|
|
1500
|
-
return make$
|
|
1510
|
+
return make$v(this, self2);
|
|
1501
1511
|
},
|
|
1502
1512
|
use(f) {
|
|
1503
1513
|
return withFiber$1((fiber) => f(get$2(fiber.context, this)));
|
|
@@ -1508,11 +1518,11 @@ const ServiceProto = {
|
|
|
1508
1518
|
};
|
|
1509
1519
|
const cacheKeys = /* @__PURE__ */ new Set();
|
|
1510
1520
|
const ReferenceTypeId = "~effect/Context/Reference";
|
|
1511
|
-
const TypeId$
|
|
1521
|
+
const TypeId$t = "~effect/Context";
|
|
1512
1522
|
const MaxDepth = 8;
|
|
1513
1523
|
const FlattenAfterBaseHits = 8;
|
|
1514
1524
|
const makeImpl = (cacheRoot, base, overlay, depth) => {
|
|
1515
|
-
const self2 = Object.create(Proto$
|
|
1525
|
+
const self2 = Object.create(Proto$4);
|
|
1516
1526
|
self2.cacheRoot = cacheRoot ?? self2;
|
|
1517
1527
|
self2.base = base;
|
|
1518
1528
|
self2.overlay = overlay;
|
|
@@ -1539,7 +1549,7 @@ const withFlat = (self2, f) => {
|
|
|
1539
1549
|
return makeUnsafe$6(map2);
|
|
1540
1550
|
};
|
|
1541
1551
|
const notFound = /* @__PURE__ */ Symbol();
|
|
1542
|
-
const lookup = (self2, key) => {
|
|
1552
|
+
const lookup$1 = (self2, key) => {
|
|
1543
1553
|
const impl = self2;
|
|
1544
1554
|
for (let overlay = impl.overlay; overlay; overlay = overlay.parent) {
|
|
1545
1555
|
if (overlay.key === key) return overlay.value;
|
|
@@ -1554,12 +1564,12 @@ const lookup = (self2, key) => {
|
|
|
1554
1564
|
return value2;
|
|
1555
1565
|
};
|
|
1556
1566
|
const makeUnsafe$6 = (mapUnsafe) => makeImpl(void 0, mapUnsafe, void 0, 0);
|
|
1557
|
-
const Proto$
|
|
1567
|
+
const Proto$4 = {
|
|
1558
1568
|
get mapUnsafe() {
|
|
1559
1569
|
return flatten$3(this);
|
|
1560
1570
|
},
|
|
1561
1571
|
...PipeInspectableProto,
|
|
1562
|
-
[TypeId$
|
|
1572
|
+
[TypeId$t]: {
|
|
1563
1573
|
_Services: (_) => _
|
|
1564
1574
|
},
|
|
1565
1575
|
toJSON() {
|
|
@@ -1577,7 +1587,7 @@ const Proto$3 = {
|
|
|
1577
1587
|
const other = that.mapUnsafe;
|
|
1578
1588
|
if (self2.size !== other.size) return false;
|
|
1579
1589
|
for (const [key, value2] of self2) {
|
|
1580
|
-
if (!other.has(key) || !equals$
|
|
1590
|
+
if (!other.has(key) || !equals$2(value2, other.get(key))) return false;
|
|
1581
1591
|
}
|
|
1582
1592
|
return true;
|
|
1583
1593
|
},
|
|
@@ -1586,11 +1596,11 @@ const Proto$3 = {
|
|
|
1586
1596
|
}
|
|
1587
1597
|
};
|
|
1588
1598
|
const hasSameCache = (self2, that) => self2.cacheRoot === that.cacheRoot;
|
|
1589
|
-
const isContext = (u) => hasProperty(u, TypeId$
|
|
1599
|
+
const isContext = (u) => hasProperty(u, TypeId$t);
|
|
1590
1600
|
const isReference = (u) => !!u[ReferenceTypeId];
|
|
1591
1601
|
const empty$5 = () => emptyContext;
|
|
1592
1602
|
const emptyContext = /* @__PURE__ */ makeUnsafe$6(/* @__PURE__ */ new Map());
|
|
1593
|
-
const make$
|
|
1603
|
+
const make$v = (key, service) => makeUnsafe$6(/* @__PURE__ */ new Map([[key.key, service]]));
|
|
1594
1604
|
const add = /* @__PURE__ */ dual(3, (self2, key, service) => addUnsafe(self2, key.key, service));
|
|
1595
1605
|
const addUnsafe = (self2, key, service) => {
|
|
1596
1606
|
const impl = self2;
|
|
@@ -1609,11 +1619,11 @@ const addUnsafe = (self2, key, service) => {
|
|
|
1609
1619
|
};
|
|
1610
1620
|
const getOrUndefined = /* @__PURE__ */ dual(2, (self2, key) => getOrUndefinedUnsafe(self2, key.key));
|
|
1611
1621
|
const getOrUndefinedUnsafe = (self2, key) => {
|
|
1612
|
-
const value2 = lookup(self2, key);
|
|
1622
|
+
const value2 = lookup$1(self2, key);
|
|
1613
1623
|
return value2 === notFound ? void 0 : value2;
|
|
1614
1624
|
};
|
|
1615
1625
|
const getUnsafe = /* @__PURE__ */ dual(2, (self2, service) => {
|
|
1616
|
-
const value2 = lookup(self2, service.key);
|
|
1626
|
+
const value2 = lookup$1(self2, service.key);
|
|
1617
1627
|
if (value2 === notFound) {
|
|
1618
1628
|
if (isReference(service)) return getDefaultValue(service);
|
|
1619
1629
|
throw serviceNotFoundError(service);
|
|
@@ -1638,7 +1648,7 @@ const serviceNotFoundError = (service) => {
|
|
|
1638
1648
|
return error;
|
|
1639
1649
|
};
|
|
1640
1650
|
const getOption = /* @__PURE__ */ dual(2, (self2, service) => {
|
|
1641
|
-
const value2 = lookup(self2, service.key);
|
|
1651
|
+
const value2 = lookup$1(self2, service.key);
|
|
1642
1652
|
if (value2 !== notFound) return some(value2);
|
|
1643
1653
|
return isReference(service) ? some(getDefaultValue(service)) : none();
|
|
1644
1654
|
});
|
|
@@ -1663,6 +1673,7 @@ const normalizeNonEmpty = (n) => Math.max(1, normalize(n));
|
|
|
1663
1673
|
const succeed$8 = succeed$9;
|
|
1664
1674
|
const fail$6 = fail$7;
|
|
1665
1675
|
const failVoid = /* @__PURE__ */ fail$6(void 0);
|
|
1676
|
+
const fromOption$2 = fromOption$3;
|
|
1666
1677
|
const try_$2 = (evaluate2) => {
|
|
1667
1678
|
if (isFunction(evaluate2)) {
|
|
1668
1679
|
try {
|
|
@@ -1695,6 +1706,28 @@ const getOrThrowWith = /* @__PURE__ */ dual(2, (self2, onFailure) => {
|
|
|
1695
1706
|
});
|
|
1696
1707
|
const getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
|
|
1697
1708
|
const flatMap$6 = /* @__PURE__ */ dual(2, (self2, f) => isFailure$1(self2) ? fail$6(self2.failure) : f(self2.success));
|
|
1709
|
+
const all$2 = (input) => {
|
|
1710
|
+
if (Symbol.iterator in input) {
|
|
1711
|
+
const out2 = [];
|
|
1712
|
+
for (const e of input) {
|
|
1713
|
+
if (isFailure$1(e)) {
|
|
1714
|
+
return e;
|
|
1715
|
+
}
|
|
1716
|
+
out2.push(e.success);
|
|
1717
|
+
}
|
|
1718
|
+
return succeed$8(out2);
|
|
1719
|
+
}
|
|
1720
|
+
const out = {};
|
|
1721
|
+
for (const key of Object.keys(input)) {
|
|
1722
|
+
const e = input[key];
|
|
1723
|
+
if (isFailure$1(e)) {
|
|
1724
|
+
return e;
|
|
1725
|
+
}
|
|
1726
|
+
assignProperty(out, key, e.success);
|
|
1727
|
+
}
|
|
1728
|
+
return succeed$8(out);
|
|
1729
|
+
};
|
|
1730
|
+
const makeEquivalence$2 = Tuple$1;
|
|
1698
1731
|
const headUnsafe = (self2) => {
|
|
1699
1732
|
const iterator = self2[Symbol.iterator]();
|
|
1700
1733
|
const result2 = iterator.next();
|
|
@@ -1740,11 +1773,11 @@ const filterMap = /* @__PURE__ */ dual(2, (self2, f) => ({
|
|
|
1740
1773
|
next() {
|
|
1741
1774
|
let result2 = iterator.next();
|
|
1742
1775
|
while (!result2.done) {
|
|
1743
|
-
const
|
|
1744
|
-
if (isSuccess$1(
|
|
1776
|
+
const next2 = f(result2.value, i++);
|
|
1777
|
+
if (isSuccess$1(next2)) {
|
|
1745
1778
|
return {
|
|
1746
1779
|
done: false,
|
|
1747
|
-
value:
|
|
1780
|
+
value: next2.success
|
|
1748
1781
|
};
|
|
1749
1782
|
}
|
|
1750
1783
|
result2 = iterator.next();
|
|
@@ -1828,7 +1861,7 @@ const reduce = /* @__PURE__ */ dual(3, (self2, b, f) => fromIterable$1(self2).re
|
|
|
1828
1861
|
const fromNullishOr = (a) => a == null ? empty$3() : [a];
|
|
1829
1862
|
const flatMapNullishOr = /* @__PURE__ */ dual(2, (self2, f) => flatMap$5(self2, (a) => fromNullishOr(f(a))));
|
|
1830
1863
|
const makeEquivalence$1 = Array_;
|
|
1831
|
-
const TypeId$
|
|
1864
|
+
const TypeId$s = "~effect/Duration";
|
|
1832
1865
|
const bigint0$2 = /* @__PURE__ */ BigInt(0);
|
|
1833
1866
|
const bigint1$1 = /* @__PURE__ */ BigInt(1);
|
|
1834
1867
|
const bigint2 = /* @__PURE__ */ BigInt(2);
|
|
@@ -1839,7 +1872,7 @@ const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
|
|
|
1839
1872
|
const bigint1e6 = /* @__PURE__ */ BigInt(1e6);
|
|
1840
1873
|
const roundTiesAwayFromZero = (input) => BigInt(Math.sign(input) * Math.round(Math.abs(input)));
|
|
1841
1874
|
const roundMillisToNanos = (millis2) => roundTiesAwayFromZero(millis2 * 1e6);
|
|
1842
|
-
const fromNanosNumber = (nanos2) => make$
|
|
1875
|
+
const fromNanosNumber = (nanos2) => make$u(Number.isFinite(nanos2) ? roundTiesAwayFromZero(nanos2) : nanos2);
|
|
1843
1876
|
const parseNanos = (input, scale) => {
|
|
1844
1877
|
const decimalIndex = input.indexOf(".");
|
|
1845
1878
|
if (decimalIndex === -1) return BigInt(input) * scale;
|
|
@@ -1902,7 +1935,7 @@ const fromInputUnsafe$1 = (input) => {
|
|
|
1902
1935
|
}
|
|
1903
1936
|
case "object": {
|
|
1904
1937
|
if (input === null) break;
|
|
1905
|
-
if (TypeId$
|
|
1938
|
+
if (TypeId$s in input) return input;
|
|
1906
1939
|
if (Array.isArray(input)) {
|
|
1907
1940
|
if (input.length !== 2 || !input.every(isNumber)) {
|
|
1908
1941
|
return invalid$2(input);
|
|
@@ -1926,7 +1959,7 @@ const fromInputUnsafe$1 = (input) => {
|
|
|
1926
1959
|
if (obj.minutes) millis2 += obj.minutes * 6e4;
|
|
1927
1960
|
if (obj.seconds) millis2 += obj.seconds * 1e3;
|
|
1928
1961
|
if (obj.milliseconds) millis2 += obj.milliseconds;
|
|
1929
|
-
if (!obj.microseconds && !obj.nanoseconds) return make$
|
|
1962
|
+
if (!obj.microseconds && !obj.nanoseconds) return make$u(millis2);
|
|
1930
1963
|
return fromNanosNumber(millis2 * 1e6 + (obj.microseconds ?? 0) * 1e3 + (obj.nanoseconds ?? 0));
|
|
1931
1964
|
}
|
|
1932
1965
|
}
|
|
@@ -1946,7 +1979,7 @@ const negativeInfinityDurationValue = {
|
|
|
1946
1979
|
_tag: "NegativeInfinity"
|
|
1947
1980
|
};
|
|
1948
1981
|
const DurationProto = {
|
|
1949
|
-
[TypeId$
|
|
1982
|
+
[TypeId$s]: TypeId$s,
|
|
1950
1983
|
[symbol$1]() {
|
|
1951
1984
|
switch (this.value._tag) {
|
|
1952
1985
|
case "Millis": {
|
|
@@ -1960,7 +1993,7 @@ const DurationProto = {
|
|
|
1960
1993
|
}
|
|
1961
1994
|
},
|
|
1962
1995
|
[symbol](that) {
|
|
1963
|
-
return isDuration(that) && equals(this, that);
|
|
1996
|
+
return isDuration(that) && equals$1(this, that);
|
|
1964
1997
|
},
|
|
1965
1998
|
toString() {
|
|
1966
1999
|
switch (this.value._tag) {
|
|
@@ -2007,7 +2040,7 @@ const DurationProto = {
|
|
|
2007
2040
|
return pipeArguments(this, arguments);
|
|
2008
2041
|
}
|
|
2009
2042
|
};
|
|
2010
|
-
const make$
|
|
2043
|
+
const make$u = (input) => {
|
|
2011
2044
|
const duration = Object.create(DurationProto);
|
|
2012
2045
|
if (typeof input === "number") {
|
|
2013
2046
|
if (isNaN(input) || input === 0 || Object.is(input, -0)) {
|
|
@@ -2035,7 +2068,7 @@ const make$s = (input) => {
|
|
|
2035
2068
|
}
|
|
2036
2069
|
return duration;
|
|
2037
2070
|
};
|
|
2038
|
-
const isDuration = (u) => hasProperty(u, TypeId$
|
|
2071
|
+
const isDuration = (u) => hasProperty(u, TypeId$s);
|
|
2039
2072
|
const isFinite$1 = (self2) => self2.value._tag !== "Infinity" && self2.value._tag !== "NegativeInfinity";
|
|
2040
2073
|
const isZero = (self2) => {
|
|
2041
2074
|
switch (self2.value._tag) {
|
|
@@ -2066,21 +2099,21 @@ const abs = (self2) => {
|
|
|
2066
2099
|
case "NegativeInfinity":
|
|
2067
2100
|
return infinity;
|
|
2068
2101
|
case "Millis":
|
|
2069
|
-
return self2.value.millis < 0 ? make$
|
|
2102
|
+
return self2.value.millis < 0 ? make$u(-self2.value.millis) : self2;
|
|
2070
2103
|
case "Nanos":
|
|
2071
|
-
return self2.value.nanos < bigint0$2 ? make$
|
|
2072
|
-
}
|
|
2073
|
-
};
|
|
2074
|
-
const zero$1 = /* @__PURE__ */ make$
|
|
2075
|
-
const infinity = /* @__PURE__ */ make$
|
|
2076
|
-
const negativeInfinity = /* @__PURE__ */ make$
|
|
2077
|
-
const nanos = (nanos2) => make$
|
|
2078
|
-
const millis = (millis2) => make$
|
|
2079
|
-
const seconds = (seconds2) => make$
|
|
2080
|
-
const minutes = (minutes2) => make$
|
|
2081
|
-
const hours = (hours2) => make$
|
|
2082
|
-
const days = (days2) => make$
|
|
2083
|
-
const weeks = (weeks2) => make$
|
|
2104
|
+
return self2.value.nanos < bigint0$2 ? make$u(-self2.value.nanos) : self2;
|
|
2105
|
+
}
|
|
2106
|
+
};
|
|
2107
|
+
const zero$1 = /* @__PURE__ */ make$u(0);
|
|
2108
|
+
const infinity = /* @__PURE__ */ make$u(Infinity);
|
|
2109
|
+
const negativeInfinity = /* @__PURE__ */ make$u(-Infinity);
|
|
2110
|
+
const nanos = (nanos2) => make$u(nanos2);
|
|
2111
|
+
const millis = (millis2) => make$u(millis2);
|
|
2112
|
+
const seconds = (seconds2) => make$u(seconds2 * 1e3);
|
|
2113
|
+
const minutes = (minutes2) => make$u(minutes2 * 6e4);
|
|
2114
|
+
const hours = (hours2) => make$u(hours2 * 36e5);
|
|
2115
|
+
const days = (days2) => make$u(days2 * 864e5);
|
|
2116
|
+
const weeks = (weeks2) => make$u(weeks2 * 6048e5);
|
|
2084
2117
|
const toMillis = (self2) => match$2(fromInputUnsafe$1(self2), {
|
|
2085
2118
|
onMillis: identity,
|
|
2086
2119
|
onNanos: (nanos2) => Number(nanos2) / 1e6,
|
|
@@ -2125,7 +2158,7 @@ const matchPair = /* @__PURE__ */ dual(3, (self2, that, options) => {
|
|
|
2125
2158
|
return options.onNanos(self2.value.nanos, toNanosUnsafe(that));
|
|
2126
2159
|
}
|
|
2127
2160
|
});
|
|
2128
|
-
const Order = /* @__PURE__ */ make$
|
|
2161
|
+
const Order$1 = /* @__PURE__ */ make$w((self2, that) => matchPair(self2, that, {
|
|
2129
2162
|
onMillis: (self3, that2) => self3 < that2 ? -1 : self3 > that2 ? 1 : 0,
|
|
2130
2163
|
onNanos: (self3, that2) => self3 < that2 ? -1 : self3 > that2 ? 1 : 0,
|
|
2131
2164
|
onInfinity: (self3, that2) => {
|
|
@@ -2136,15 +2169,15 @@ const Order = /* @__PURE__ */ make$u((self2, that) => matchPair(self2, that, {
|
|
|
2136
2169
|
return 1;
|
|
2137
2170
|
}
|
|
2138
2171
|
}));
|
|
2139
|
-
const Equivalence = (self2, that) => matchPair(self2, that, {
|
|
2172
|
+
const Equivalence$2 = (self2, that) => matchPair(self2, that, {
|
|
2140
2173
|
onMillis: (self3, that2) => self3 === that2,
|
|
2141
2174
|
onNanos: (self3, that2) => self3 === that2,
|
|
2142
2175
|
onInfinity: (self3, that2) => self3.value._tag === that2.value._tag
|
|
2143
2176
|
});
|
|
2144
|
-
const min$1 = /* @__PURE__ */ min$2(Order);
|
|
2177
|
+
const min$1 = /* @__PURE__ */ min$2(Order$1);
|
|
2145
2178
|
const subtract = /* @__PURE__ */ dual(2, (self2, that) => matchPair(self2, that, {
|
|
2146
|
-
onMillis: (self3, that2) => make$
|
|
2147
|
-
onNanos: (self3, that2) => make$
|
|
2179
|
+
onMillis: (self3, that2) => make$u(self3 - that2),
|
|
2180
|
+
onNanos: (self3, that2) => make$u(self3 - that2),
|
|
2148
2181
|
onInfinity: (self3, that2) => {
|
|
2149
2182
|
const s = self3.value._tag;
|
|
2150
2183
|
const t = that2.value._tag;
|
|
@@ -2154,8 +2187,8 @@ const subtract = /* @__PURE__ */ dual(2, (self2, that) => matchPair(self2, that,
|
|
|
2154
2187
|
}
|
|
2155
2188
|
}));
|
|
2156
2189
|
const sum = /* @__PURE__ */ dual(2, (self2, that) => matchPair(self2, that, {
|
|
2157
|
-
onMillis: (self3, that2) => make$
|
|
2158
|
-
onNanos: (self3, that2) => make$
|
|
2190
|
+
onMillis: (self3, that2) => make$u(self3 + that2),
|
|
2191
|
+
onNanos: (self3, that2) => make$u(self3 + that2),
|
|
2159
2192
|
onInfinity: (self3, that2) => {
|
|
2160
2193
|
const s = self3.value._tag;
|
|
2161
2194
|
const t = that2.value._tag;
|
|
@@ -2166,7 +2199,7 @@ const sum = /* @__PURE__ */ dual(2, (self2, that) => matchPair(self2, that, {
|
|
|
2166
2199
|
return zero$1;
|
|
2167
2200
|
}
|
|
2168
2201
|
}));
|
|
2169
|
-
const equals = /* @__PURE__ */ dual(2, (self2, that) => Equivalence(self2, that));
|
|
2202
|
+
const equals$1 = /* @__PURE__ */ dual(2, (self2, that) => Equivalence$2(self2, that));
|
|
2170
2203
|
const parts = (self2) => {
|
|
2171
2204
|
if (self2.value._tag === "Infinity") {
|
|
2172
2205
|
return {
|
|
@@ -2468,7 +2501,7 @@ class ParentSpan extends (/* @__PURE__ */ Service()(ParentSpanKey, {
|
|
|
2468
2501
|
fiberCached: true
|
|
2469
2502
|
})) {
|
|
2470
2503
|
}
|
|
2471
|
-
const make$
|
|
2504
|
+
const make$t = (options) => options;
|
|
2472
2505
|
const externalSpan = (options) => ({
|
|
2473
2506
|
_tag: "ExternalSpan",
|
|
2474
2507
|
spanId: options.spanId,
|
|
@@ -2490,7 +2523,7 @@ const Tracer = /* @__PURE__ */ Reference(TracerKey, {
|
|
|
2490
2523
|
fiberCached: true,
|
|
2491
2524
|
defaultValue: () => nativeTracer
|
|
2492
2525
|
});
|
|
2493
|
-
const nativeTracer = /* @__PURE__ */ make$
|
|
2526
|
+
const nativeTracer = /* @__PURE__ */ make$t({
|
|
2494
2527
|
span: (options) => new NativeSpan(options)
|
|
2495
2528
|
});
|
|
2496
2529
|
class NativeSpan {
|
|
@@ -2916,7 +2949,7 @@ class FiberImpl {
|
|
|
2916
2949
|
}
|
|
2917
2950
|
let cause = causeInterrupt(fiberId);
|
|
2918
2951
|
if (this.cache.stackFrame) {
|
|
2919
|
-
cause = causeAnnotate(cause, make$
|
|
2952
|
+
cause = causeAnnotate(cause, make$v(StackTraceKey, this.cache.stackFrame));
|
|
2920
2953
|
}
|
|
2921
2954
|
if (annotations) {
|
|
2922
2955
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -3634,9 +3667,9 @@ const updateContext$1 = /* @__PURE__ */ dual(2, (self2, f) => withFiber$1((fiber
|
|
|
3634
3667
|
}));
|
|
3635
3668
|
const updateService = /* @__PURE__ */ dual(3, (self2, service, f) => updateContext$1(self2, (s) => {
|
|
3636
3669
|
const prev = getUnsafe(s, service);
|
|
3637
|
-
const
|
|
3638
|
-
if (prev ===
|
|
3639
|
-
return add(s, service,
|
|
3670
|
+
const next2 = f(prev);
|
|
3671
|
+
if (prev === next2) return s;
|
|
3672
|
+
return add(s, service, next2);
|
|
3640
3673
|
}));
|
|
3641
3674
|
const context$1 = () => getContext;
|
|
3642
3675
|
const getContext = /* @__PURE__ */ withFiber$1((fiber) => succeed$7(fiber.context));
|
|
@@ -4332,6 +4365,24 @@ const forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
|
|
|
4332
4365
|
}
|
|
4333
4366
|
});
|
|
4334
4367
|
const filterOrElse = /* @__PURE__ */ dual(3, (self2, predicate, orElse) => flatMap$4(self2, (a) => predicate(a) ? succeed$7(a) : orElse(a)));
|
|
4368
|
+
const filter$3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect$1(args2[0]), (elements, predicate, options) => suspend$3(() => {
|
|
4369
|
+
const out = [];
|
|
4370
|
+
return as$1(forEach$2(elements, (a, i) => {
|
|
4371
|
+
const result2 = predicate(a, i);
|
|
4372
|
+
if (typeof result2 === "boolean") {
|
|
4373
|
+
if (result2) out.push(a);
|
|
4374
|
+
return void_$3;
|
|
4375
|
+
}
|
|
4376
|
+
return map$5(result2, (keep) => {
|
|
4377
|
+
if (keep) {
|
|
4378
|
+
out.push(a);
|
|
4379
|
+
}
|
|
4380
|
+
});
|
|
4381
|
+
}, {
|
|
4382
|
+
discard: true,
|
|
4383
|
+
concurrency: options?.concurrency
|
|
4384
|
+
}), out);
|
|
4385
|
+
}));
|
|
4335
4386
|
const forkChild$1 = /* @__PURE__ */ dual((args2) => isEffect$1(args2[0]), (self2, options) => withFiber$1((fiber) => {
|
|
4336
4387
|
interruptChildrenPatch();
|
|
4337
4388
|
return succeed$7(forkUnsafe$1(fiber, self2, options?.startImmediately, false, options?.uninterruptible ?? false));
|
|
@@ -4987,10 +5038,10 @@ const isSuccess = exitIsSuccess;
|
|
|
4987
5038
|
const isFailure = exitIsFailure;
|
|
4988
5039
|
const hasInterrupts = exitHasInterrupts;
|
|
4989
5040
|
const asVoidAll = exitAsVoidAll;
|
|
4990
|
-
const TypeId$
|
|
4991
|
-
const isDeferred = (u) => hasProperty(u, TypeId$
|
|
5041
|
+
const TypeId$r = "~effect/Deferred";
|
|
5042
|
+
const isDeferred = (u) => hasProperty(u, TypeId$r);
|
|
4992
5043
|
const DeferredProto = {
|
|
4993
|
-
[TypeId$
|
|
5044
|
+
[TypeId$r]: {
|
|
4994
5045
|
_A: identity,
|
|
4995
5046
|
_E: identity
|
|
4996
5047
|
},
|
|
@@ -5004,7 +5055,7 @@ const DeferredImpl = function() {
|
|
|
5004
5055
|
};
|
|
5005
5056
|
DeferredImpl.prototype = DeferredProto;
|
|
5006
5057
|
const makeUnsafe$5 = () => new DeferredImpl();
|
|
5007
|
-
const make$
|
|
5058
|
+
const make$s = () => sync$1(() => makeUnsafe$5());
|
|
5008
5059
|
const _await = (self2) => callback$2((resume) => {
|
|
5009
5060
|
if (self2.effect) return resume(self2.effect);
|
|
5010
5061
|
self2.resumes ??= [];
|
|
@@ -5043,7 +5094,7 @@ const CurrentLogSpans = CurrentLogSpans$1;
|
|
|
5043
5094
|
const MinimumLogLevel = MinimumLogLevel$1;
|
|
5044
5095
|
const TracerTimingEnabled = TracerTimingEnabled$1;
|
|
5045
5096
|
const Scope = scopeTag;
|
|
5046
|
-
const make$
|
|
5097
|
+
const make$r = scopeMake;
|
|
5047
5098
|
const makeUnsafe$4 = scopeMakeUnsafe;
|
|
5048
5099
|
const provide$3 = provideScope;
|
|
5049
5100
|
const addFinalizerExit = scopeAddFinalizerExit;
|
|
@@ -5051,7 +5102,7 @@ const addFinalizer$1 = scopeAddFinalizer;
|
|
|
5051
5102
|
const forkUnsafe = scopeForkUnsafe;
|
|
5052
5103
|
const close = scopeClose;
|
|
5053
5104
|
const closeUnsafe = scopeCloseUnsafe;
|
|
5054
|
-
const TypeId$
|
|
5105
|
+
const TypeId$q = "~effect/Layer";
|
|
5055
5106
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
5056
5107
|
const makeMemoMapEntry = (memoMap, layer2) => {
|
|
5057
5108
|
const entry = {
|
|
@@ -5073,7 +5124,7 @@ const memoMapObserve = (entry, scope2) => {
|
|
|
5073
5124
|
return true;
|
|
5074
5125
|
};
|
|
5075
5126
|
const LayerProto = {
|
|
5076
|
-
[TypeId$
|
|
5127
|
+
[TypeId$q]: {
|
|
5077
5128
|
_ROut: identity,
|
|
5078
5129
|
_E: identity,
|
|
5079
5130
|
_RIn: identity
|
|
@@ -5142,9 +5193,9 @@ const build = (self2) => withFiber$1((fiber) => buildWithMemoMap(self2, CurrentM
|
|
|
5142
5193
|
const buildWithScope = /* @__PURE__ */ dual(2, (self2, scope2) => withFiber$1((fiber) => buildWithMemoMap(self2, CurrentMemoMap.forkOrCreate(fiber.context), scope2)));
|
|
5143
5194
|
const succeed$4 = function() {
|
|
5144
5195
|
if (arguments.length === 1) {
|
|
5145
|
-
return (resource) => succeedContext(make$
|
|
5196
|
+
return (resource) => succeedContext(make$v(arguments[0], resource));
|
|
5146
5197
|
}
|
|
5147
|
-
return succeedContext(make$
|
|
5198
|
+
return succeedContext(make$v(arguments[0], arguments[1]));
|
|
5148
5199
|
};
|
|
5149
5200
|
const succeedContext = (context2) => fromBuildUnsafe(constant(succeed$7(context2)));
|
|
5150
5201
|
const empty$2 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty$5());
|
|
@@ -5154,7 +5205,7 @@ const effect = function() {
|
|
|
5154
5205
|
}
|
|
5155
5206
|
return effectImpl(arguments[0], arguments[1]);
|
|
5156
5207
|
};
|
|
5157
|
-
const effectImpl = (service, effect2) => effectContext(map$5(effect2, (value2) => make$
|
|
5208
|
+
const effectImpl = (service, effect2) => effectContext(map$5(effect2, (value2) => make$v(service, value2)));
|
|
5158
5209
|
const effectContext = (effect2) => fromBuildMemo((_, scope2) => provide$3(effect2, scope2));
|
|
5159
5210
|
const effectDiscard = (effect2) => effectContext(as$1(effect2, empty$5()));
|
|
5160
5211
|
const unwrapKey = /* @__PURE__ */ Service("effect/Layer/unwrap");
|
|
@@ -5176,9 +5227,10 @@ const Clock = ClockRef;
|
|
|
5176
5227
|
const currentTimeMillis = currentTimeMillis$1;
|
|
5177
5228
|
const currentTimeNanos = currentTimeNanos$1;
|
|
5178
5229
|
const monotonicTimeNanos = monotonicTimeNanos$1;
|
|
5179
|
-
const TypeId$
|
|
5180
|
-
const
|
|
5181
|
-
|
|
5230
|
+
const TypeId$p = "~effect/DateTime";
|
|
5231
|
+
const TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
5232
|
+
const Proto$3 = {
|
|
5233
|
+
[TypeId$p]: TypeId$p,
|
|
5182
5234
|
pipe() {
|
|
5183
5235
|
return pipeArguments(this, arguments);
|
|
5184
5236
|
},
|
|
@@ -5190,7 +5242,7 @@ const Proto$2 = {
|
|
|
5190
5242
|
}
|
|
5191
5243
|
};
|
|
5192
5244
|
const ProtoUtc = {
|
|
5193
|
-
...Proto$
|
|
5245
|
+
...Proto$3,
|
|
5194
5246
|
_tag: "Utc",
|
|
5195
5247
|
[symbol$1]() {
|
|
5196
5248
|
return number$1(this.epochMilliseconds);
|
|
@@ -5202,8 +5254,92 @@ const ProtoUtc = {
|
|
|
5202
5254
|
return `DateTime.Utc(${toDateUtc(this).toJSON()})`;
|
|
5203
5255
|
}
|
|
5204
5256
|
};
|
|
5205
|
-
const
|
|
5257
|
+
const ProtoZoned = {
|
|
5258
|
+
...Proto$3,
|
|
5259
|
+
_tag: "Zoned",
|
|
5260
|
+
[symbol$1]() {
|
|
5261
|
+
return combine$1(number$1(this.epochMilliseconds))(hash(this.zone));
|
|
5262
|
+
},
|
|
5263
|
+
[symbol](that) {
|
|
5264
|
+
return isDateTime$1(that) && that._tag === "Zoned" && this.epochMilliseconds === that.epochMilliseconds && equals$2(this.zone, that.zone);
|
|
5265
|
+
},
|
|
5266
|
+
toString() {
|
|
5267
|
+
return `DateTime.Zoned(${formatIsoZoned(this)})`;
|
|
5268
|
+
}
|
|
5269
|
+
};
|
|
5270
|
+
const ProtoTimeZone = {
|
|
5271
|
+
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
5272
|
+
[NodeInspectSymbol]() {
|
|
5273
|
+
return this.toString();
|
|
5274
|
+
}
|
|
5275
|
+
};
|
|
5276
|
+
const ProtoTimeZoneNamed = {
|
|
5277
|
+
...ProtoTimeZone,
|
|
5278
|
+
_tag: "Named",
|
|
5279
|
+
[symbol$1]() {
|
|
5280
|
+
return string$1(`Named:${this.id}`);
|
|
5281
|
+
},
|
|
5282
|
+
[symbol](that) {
|
|
5283
|
+
return isTimeZone(that) && that._tag === "Named" && this.id === that.id;
|
|
5284
|
+
},
|
|
5285
|
+
toString() {
|
|
5286
|
+
return `TimeZone.Named(${this.id})`;
|
|
5287
|
+
},
|
|
5288
|
+
toJSON() {
|
|
5289
|
+
return {
|
|
5290
|
+
_id: "TimeZone",
|
|
5291
|
+
_tag: "Named",
|
|
5292
|
+
id: this.id
|
|
5293
|
+
};
|
|
5294
|
+
}
|
|
5295
|
+
};
|
|
5296
|
+
const ProtoTimeZoneOffset = {
|
|
5297
|
+
...ProtoTimeZone,
|
|
5298
|
+
_tag: "Offset",
|
|
5299
|
+
[symbol$1]() {
|
|
5300
|
+
return string$1(`Offset:${this.offset}`);
|
|
5301
|
+
},
|
|
5302
|
+
[symbol](that) {
|
|
5303
|
+
return isTimeZone(that) && that._tag === "Offset" && this.offset === that.offset;
|
|
5304
|
+
},
|
|
5305
|
+
toString() {
|
|
5306
|
+
return `TimeZone.Offset(${offsetToString(this.offset)})`;
|
|
5307
|
+
},
|
|
5308
|
+
toJSON() {
|
|
5309
|
+
return {
|
|
5310
|
+
_id: "TimeZone",
|
|
5311
|
+
_tag: "Offset",
|
|
5312
|
+
offset: this.offset
|
|
5313
|
+
};
|
|
5314
|
+
}
|
|
5315
|
+
};
|
|
5316
|
+
const makeZonedProto = (epochMillis, zone, partsUtc) => {
|
|
5317
|
+
const self2 = Object.create(ProtoZoned);
|
|
5318
|
+
self2.epochMilliseconds = epochMillis;
|
|
5319
|
+
self2.zone = zone;
|
|
5320
|
+
Object.defineProperty(self2, "partsUtc", {
|
|
5321
|
+
value: partsUtc,
|
|
5322
|
+
enumerable: false,
|
|
5323
|
+
writable: true
|
|
5324
|
+
});
|
|
5325
|
+
Object.defineProperty(self2, "adjustedEpochMillis", {
|
|
5326
|
+
value: void 0,
|
|
5327
|
+
enumerable: false,
|
|
5328
|
+
writable: true
|
|
5329
|
+
});
|
|
5330
|
+
Object.defineProperty(self2, "partsAdjusted", {
|
|
5331
|
+
value: void 0,
|
|
5332
|
+
enumerable: false,
|
|
5333
|
+
writable: true
|
|
5334
|
+
});
|
|
5335
|
+
return self2;
|
|
5336
|
+
};
|
|
5337
|
+
const isDateTime$1 = (u) => hasProperty(u, TypeId$p);
|
|
5338
|
+
const isDateTimeArgs = (args2) => isDateTime$1(args2[0]);
|
|
5339
|
+
const isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
5340
|
+
const isTimeZoneNamed = (u) => isTimeZone(u) && u._tag === "Named";
|
|
5206
5341
|
const isUtc$1 = (self2) => self2._tag === "Utc";
|
|
5342
|
+
const isZoned = (self2) => self2._tag === "Zoned";
|
|
5207
5343
|
const makeUtc = (epochMillis) => {
|
|
5208
5344
|
const self2 = Object.create(ProtoUtc);
|
|
5209
5345
|
self2.epochMilliseconds = epochMillis;
|
|
@@ -5239,10 +5375,129 @@ const makeUnsafe$3 = (input) => {
|
|
|
5239
5375
|
return fromDateUnsafe(new Date(input));
|
|
5240
5376
|
};
|
|
5241
5377
|
const hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input);
|
|
5242
|
-
const
|
|
5378
|
+
const minEpochMillis = -864e13 + 12 * 60 * 60 * 1e3;
|
|
5379
|
+
const maxEpochMillis = 864e13 - 14 * 60 * 60 * 1e3;
|
|
5380
|
+
const makeZonedUnsafe = (input, options) => {
|
|
5381
|
+
let timeZoneOption = options?.timeZone;
|
|
5382
|
+
if (timeZoneOption === void 0 && isDateTime$1(input) && isZoned(input)) {
|
|
5383
|
+
return input;
|
|
5384
|
+
}
|
|
5385
|
+
const self2 = makeUnsafe$3(input);
|
|
5386
|
+
if (self2.epochMilliseconds < minEpochMillis || self2.epochMilliseconds > maxEpochMillis) {
|
|
5387
|
+
throw new RangeError(`Epoch millis out of range: ${self2.epochMilliseconds}`);
|
|
5388
|
+
}
|
|
5389
|
+
if (timeZoneOption === void 0 && typeof input === "object" && "timeZoneId" in input) {
|
|
5390
|
+
timeZoneOption = input.timeZoneId;
|
|
5391
|
+
}
|
|
5392
|
+
let zone;
|
|
5393
|
+
if (timeZoneOption === void 0) {
|
|
5394
|
+
const offset = new Date(self2.epochMilliseconds).getTimezoneOffset() * -60 * 1e3;
|
|
5395
|
+
zone = zoneMakeOffset(offset);
|
|
5396
|
+
} else if (isTimeZone(timeZoneOption)) {
|
|
5397
|
+
zone = timeZoneOption;
|
|
5398
|
+
} else if (typeof timeZoneOption === "number") {
|
|
5399
|
+
zone = zoneMakeOffset(timeZoneOption);
|
|
5400
|
+
} else {
|
|
5401
|
+
const parsedZone = zoneFromString(timeZoneOption);
|
|
5402
|
+
if (isNone(parsedZone)) {
|
|
5403
|
+
throw new IllegalArgumentError2(`Invalid time zone: ${timeZoneOption}`);
|
|
5404
|
+
}
|
|
5405
|
+
zone = parsedZone.value;
|
|
5406
|
+
}
|
|
5407
|
+
if (options?.adjustForTimeZone !== true) {
|
|
5408
|
+
return makeZonedProto(self2.epochMilliseconds, zone, self2.partsUtc);
|
|
5409
|
+
}
|
|
5410
|
+
return makeZonedFromAdjusted(self2.epochMilliseconds, zone, options?.disambiguation ?? "compatible");
|
|
5411
|
+
};
|
|
5412
|
+
const make$q = /* @__PURE__ */ liftThrowable(makeUnsafe$3);
|
|
5243
5413
|
const now$1 = /* @__PURE__ */ map$5(currentTimeMillis, makeUtc);
|
|
5244
5414
|
const toUtc$1 = (self2) => makeUtc(self2.epochMilliseconds);
|
|
5415
|
+
const validZoneCache = /* @__PURE__ */ new Map();
|
|
5416
|
+
const formatOptions = {
|
|
5417
|
+
day: "numeric",
|
|
5418
|
+
month: "numeric",
|
|
5419
|
+
year: "numeric",
|
|
5420
|
+
hour: "numeric",
|
|
5421
|
+
minute: "numeric",
|
|
5422
|
+
second: "numeric",
|
|
5423
|
+
timeZoneName: "longOffset",
|
|
5424
|
+
fractionalSecondDigits: 3,
|
|
5425
|
+
hourCycle: "h23"
|
|
5426
|
+
};
|
|
5427
|
+
const zoneMakeIntl = (format2) => {
|
|
5428
|
+
const zoneId = format2.resolvedOptions().timeZone;
|
|
5429
|
+
const cached2 = validZoneCache.get(zoneId);
|
|
5430
|
+
if (cached2 !== void 0) {
|
|
5431
|
+
return cached2;
|
|
5432
|
+
}
|
|
5433
|
+
const zone = Object.create(ProtoTimeZoneNamed);
|
|
5434
|
+
zone.id = zoneId;
|
|
5435
|
+
zone.format = format2;
|
|
5436
|
+
validZoneCache.set(zoneId, zone);
|
|
5437
|
+
return zone;
|
|
5438
|
+
};
|
|
5439
|
+
const zoneMakeNamedUnsafe = (zoneId) => {
|
|
5440
|
+
const cached2 = validZoneCache.get(zoneId);
|
|
5441
|
+
if (cached2 !== void 0) {
|
|
5442
|
+
return cached2;
|
|
5443
|
+
}
|
|
5444
|
+
try {
|
|
5445
|
+
const zone = zoneMakeIntl(new Intl.DateTimeFormat("en-US", {
|
|
5446
|
+
...formatOptions,
|
|
5447
|
+
timeZone: zoneId
|
|
5448
|
+
}));
|
|
5449
|
+
validZoneCache.set(zoneId, zone);
|
|
5450
|
+
return zone;
|
|
5451
|
+
} catch {
|
|
5452
|
+
throw new IllegalArgumentError2(`Invalid time zone: ${zoneId}`);
|
|
5453
|
+
}
|
|
5454
|
+
};
|
|
5455
|
+
const zoneMakeOffset = (offset) => {
|
|
5456
|
+
const zone = Object.create(ProtoTimeZoneOffset);
|
|
5457
|
+
zone.offset = offset;
|
|
5458
|
+
return zone;
|
|
5459
|
+
};
|
|
5460
|
+
const zoneMakeNamed = /* @__PURE__ */ liftThrowable(zoneMakeNamedUnsafe);
|
|
5461
|
+
const offsetZoneRegExp = /^(?:GMT|[+-])/;
|
|
5462
|
+
const zoneFromString = (zone) => {
|
|
5463
|
+
if (offsetZoneRegExp.test(zone)) {
|
|
5464
|
+
const offset = parseOffset(zone);
|
|
5465
|
+
return offset === null ? none() : some(zoneMakeOffset(offset));
|
|
5466
|
+
}
|
|
5467
|
+
return zoneMakeNamed(zone);
|
|
5468
|
+
};
|
|
5245
5469
|
const toDateUtc = (self2) => new Date(self2.epochMilliseconds);
|
|
5470
|
+
const toDate = (self2) => {
|
|
5471
|
+
if (self2._tag === "Utc") {
|
|
5472
|
+
return new Date(self2.epochMilliseconds);
|
|
5473
|
+
} else if (self2.zone._tag === "Offset") {
|
|
5474
|
+
return new Date(self2.epochMilliseconds + self2.zone.offset);
|
|
5475
|
+
} else if (self2.adjustedEpochMilliseconds !== void 0) {
|
|
5476
|
+
return new Date(self2.adjustedEpochMilliseconds);
|
|
5477
|
+
}
|
|
5478
|
+
const parts2 = self2.zone.format.formatToParts(self2.epochMilliseconds).filter((_) => _.type !== "literal");
|
|
5479
|
+
const date = /* @__PURE__ */ new Date(0);
|
|
5480
|
+
date.setUTCFullYear(Number(parts2[2].value), Number(parts2[0].value) - 1, Number(parts2[1].value));
|
|
5481
|
+
date.setUTCHours(Number(parts2[3].value), Number(parts2[4].value), Number(parts2[5].value), parts2[6]?.type === "fractionalSecond" ? Number(parts2[6].value) : (self2.epochMilliseconds % 1e3 + 1e3) % 1e3);
|
|
5482
|
+
self2.adjustedEpochMilliseconds = date.getTime();
|
|
5483
|
+
return date;
|
|
5484
|
+
};
|
|
5485
|
+
const zonedOffset = (self2) => {
|
|
5486
|
+
const date = toDate(self2);
|
|
5487
|
+
return date.getTime() - toEpochMillis(self2);
|
|
5488
|
+
};
|
|
5489
|
+
const offsetToString = (offset) => {
|
|
5490
|
+
const abs2 = Math.abs(offset);
|
|
5491
|
+
let hours2 = Math.floor(abs2 / (60 * 60 * 1e3));
|
|
5492
|
+
let minutes2 = Math.round(abs2 % (60 * 60 * 1e3) / (60 * 1e3));
|
|
5493
|
+
if (minutes2 === 60) {
|
|
5494
|
+
hours2 += 1;
|
|
5495
|
+
minutes2 = 0;
|
|
5496
|
+
}
|
|
5497
|
+
return `${offset < 0 ? "-" : "+"}${String(hours2).padStart(2, "0")}:${String(minutes2).padStart(2, "0")}`;
|
|
5498
|
+
};
|
|
5499
|
+
const zonedOffsetIso = (self2) => offsetToString(zonedOffset(self2));
|
|
5500
|
+
const toEpochMillis = (self2) => self2.epochMilliseconds;
|
|
5246
5501
|
const setPartsDate = (date, parts2) => {
|
|
5247
5502
|
if (parts2.year !== void 0 || parts2.month !== void 0 || parts2.day !== void 0) {
|
|
5248
5503
|
date.setUTCFullYear(parts2.year ?? date.getUTCFullYear(), parts2.month !== void 0 ? parts2.month - 1 : date.getUTCMonth(), parts2.day ?? date.getUTCDate());
|
|
@@ -5264,17 +5519,622 @@ const setPartsDate = (date, parts2) => {
|
|
|
5264
5519
|
date.setUTCMilliseconds(parts2.millisecond);
|
|
5265
5520
|
}
|
|
5266
5521
|
};
|
|
5267
|
-
const
|
|
5268
|
-
const
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5522
|
+
const constDayMillis = 24 * 60 * 60 * 1e3;
|
|
5523
|
+
const makeZonedFromAdjusted = (adjustedMillis, zone, disambiguation) => {
|
|
5524
|
+
if (zone._tag === "Offset") {
|
|
5525
|
+
return makeZonedProto(adjustedMillis - zone.offset, zone);
|
|
5526
|
+
}
|
|
5527
|
+
const beforeOffset = calculateNamedOffset(adjustedMillis - constDayMillis, adjustedMillis, zone);
|
|
5528
|
+
const afterOffset = calculateNamedOffset(adjustedMillis + constDayMillis, adjustedMillis, zone);
|
|
5529
|
+
if (beforeOffset === afterOffset) {
|
|
5530
|
+
return makeZonedProto(adjustedMillis - beforeOffset, zone);
|
|
5531
|
+
}
|
|
5532
|
+
const isForwards = beforeOffset < afterOffset;
|
|
5533
|
+
const transitionMillis = beforeOffset - afterOffset;
|
|
5534
|
+
if (isForwards) {
|
|
5535
|
+
const currentAfterOffset = calculateNamedOffset(adjustedMillis - afterOffset, adjustedMillis, zone);
|
|
5536
|
+
if (currentAfterOffset === afterOffset) {
|
|
5537
|
+
return makeZonedProto(adjustedMillis - afterOffset, zone);
|
|
5538
|
+
}
|
|
5539
|
+
const before = makeZonedProto(adjustedMillis - beforeOffset, zone);
|
|
5540
|
+
const beforeAdjustedMillis = toDate(before).getTime();
|
|
5541
|
+
if (adjustedMillis !== beforeAdjustedMillis) {
|
|
5542
|
+
switch (disambiguation) {
|
|
5543
|
+
case "reject": {
|
|
5544
|
+
const formatted = new Date(adjustedMillis).toISOString();
|
|
5545
|
+
throw new RangeError(`Gap time: ${formatted} does not exist in time zone ${zone.id}`);
|
|
5546
|
+
}
|
|
5547
|
+
case "earlier":
|
|
5548
|
+
return makeZonedProto(adjustedMillis - afterOffset, zone);
|
|
5549
|
+
case "compatible":
|
|
5550
|
+
case "later":
|
|
5551
|
+
return before;
|
|
5552
|
+
}
|
|
5275
5553
|
}
|
|
5276
|
-
|
|
5554
|
+
return before;
|
|
5555
|
+
}
|
|
5556
|
+
const currentBeforeOffset = calculateNamedOffset(adjustedMillis - beforeOffset, adjustedMillis, zone);
|
|
5557
|
+
if (currentBeforeOffset === beforeOffset) {
|
|
5558
|
+
if (disambiguation === "earlier" || disambiguation === "compatible") {
|
|
5559
|
+
return makeZonedProto(adjustedMillis - beforeOffset, zone);
|
|
5560
|
+
}
|
|
5561
|
+
const laterOffset = calculateNamedOffset(adjustedMillis - beforeOffset + transitionMillis, adjustedMillis + transitionMillis, zone);
|
|
5562
|
+
if (laterOffset === beforeOffset) {
|
|
5563
|
+
return makeZonedProto(adjustedMillis - beforeOffset, zone);
|
|
5564
|
+
}
|
|
5565
|
+
if (disambiguation === "reject") {
|
|
5566
|
+
const formatted = new Date(adjustedMillis).toISOString();
|
|
5567
|
+
throw new RangeError(`Ambiguous time: ${formatted} occurs twice in time zone ${zone.id}`);
|
|
5568
|
+
}
|
|
5569
|
+
}
|
|
5570
|
+
return makeZonedProto(adjustedMillis - afterOffset, zone);
|
|
5571
|
+
};
|
|
5572
|
+
const offsetRegExp = /([+-])(\d{2}):(\d{2})$/;
|
|
5573
|
+
const parseOffset = (offset) => {
|
|
5574
|
+
const match2 = offsetRegExp.exec(offset);
|
|
5575
|
+
if (match2 === null) {
|
|
5576
|
+
return null;
|
|
5577
|
+
}
|
|
5578
|
+
const [, sign, hours2, minutes2] = match2;
|
|
5579
|
+
return (sign === "+" ? 1 : -1) * (Number(hours2) * 60 + Number(minutes2)) * 60 * 1e3;
|
|
5580
|
+
};
|
|
5581
|
+
const calculateNamedOffset = (utcMillis, adjustedMillis, zone) => {
|
|
5582
|
+
const offset = zone.format.formatToParts(utcMillis).find((_) => _.type === "timeZoneName")?.value ?? "";
|
|
5583
|
+
if (offset === "GMT") {
|
|
5584
|
+
return 0;
|
|
5585
|
+
}
|
|
5586
|
+
const result2 = parseOffset(offset);
|
|
5587
|
+
if (result2 === null) {
|
|
5588
|
+
return zonedOffset(makeZonedProto(adjustedMillis, zone));
|
|
5589
|
+
}
|
|
5590
|
+
return result2;
|
|
5591
|
+
};
|
|
5592
|
+
const mutate = /* @__PURE__ */ dual(isDateTimeArgs, (self2, f, options) => {
|
|
5593
|
+
if (self2._tag === "Utc") {
|
|
5594
|
+
const date = toDateUtc(self2);
|
|
5595
|
+
f(date);
|
|
5596
|
+
return makeUtc(date.getTime());
|
|
5597
|
+
}
|
|
5598
|
+
const adjustedDate = toDate(self2);
|
|
5599
|
+
const newAdjustedDate = new Date(adjustedDate.getTime());
|
|
5600
|
+
f(newAdjustedDate);
|
|
5601
|
+
return makeZonedFromAdjusted(newAdjustedDate.getTime(), self2.zone, options?.disambiguation ?? "compatible");
|
|
5277
5602
|
});
|
|
5603
|
+
const formatIso$1 = (self2) => toDateUtc(self2).toISOString();
|
|
5604
|
+
const formatIsoOffset = (self2) => {
|
|
5605
|
+
const date = toDate(self2);
|
|
5606
|
+
return self2._tag === "Utc" ? date.toISOString() : `${date.toISOString().slice(0, -1)}${zonedOffsetIso(self2)}`;
|
|
5607
|
+
};
|
|
5608
|
+
const formatIsoZoned = (self2) => self2.zone._tag === "Offset" ? formatIsoOffset(self2) : `${formatIsoOffset(self2)}[${self2.zone.id}]`;
|
|
5609
|
+
const Order = Number$4;
|
|
5610
|
+
const round = /* @__PURE__ */ dual(2, (self2, precision) => {
|
|
5611
|
+
const factor = Math.pow(10, precision);
|
|
5612
|
+
return Math.round(self2 * factor) / factor;
|
|
5613
|
+
});
|
|
5614
|
+
const toLowerCase = (self2) => self2.toLowerCase();
|
|
5615
|
+
const isNonEmpty$1 = (self2) => self2.length > 0;
|
|
5616
|
+
const snakeToCamel = (self2) => {
|
|
5617
|
+
if (self2.length === 0) return self2;
|
|
5618
|
+
let str = self2[0];
|
|
5619
|
+
for (let i = 1; i < self2.length; i++) {
|
|
5620
|
+
str += self2[i] === "_" ? self2[++i].toUpperCase() : self2[i];
|
|
5621
|
+
}
|
|
5622
|
+
return str;
|
|
5623
|
+
};
|
|
5624
|
+
const camelToSnake = (self2) => self2.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
5625
|
+
const TypeId$o = "~effect/Cron";
|
|
5626
|
+
function toPojo(cron) {
|
|
5627
|
+
const out = {
|
|
5628
|
+
tz: cron.tz,
|
|
5629
|
+
and: cron.and,
|
|
5630
|
+
seconds: fromIterable$1(cron.seconds),
|
|
5631
|
+
minutes: fromIterable$1(cron.minutes),
|
|
5632
|
+
hours: fromIterable$1(cron.hours),
|
|
5633
|
+
days: fromIterable$1(cron.days),
|
|
5634
|
+
months: fromIterable$1(cron.months),
|
|
5635
|
+
weekdays: fromIterable$1(cron.weekdays)
|
|
5636
|
+
};
|
|
5637
|
+
return out;
|
|
5638
|
+
}
|
|
5639
|
+
const CronProto = {
|
|
5640
|
+
[TypeId$o]: TypeId$o,
|
|
5641
|
+
[symbol](that) {
|
|
5642
|
+
return isCron(that) && equals(this, that);
|
|
5643
|
+
},
|
|
5644
|
+
[symbol$1]() {
|
|
5645
|
+
return pipe(hash(this.tz), combine$1(hash(this.and)), combine$1(array(fromIterable$1(this.seconds))), combine$1(array(fromIterable$1(this.minutes))), combine$1(array(fromIterable$1(this.hours))), combine$1(array(fromIterable$1(this.days))), combine$1(array(fromIterable$1(this.months))), combine$1(array(fromIterable$1(this.weekdays))));
|
|
5646
|
+
},
|
|
5647
|
+
toObject() {
|
|
5648
|
+
return toPojo(this);
|
|
5649
|
+
},
|
|
5650
|
+
toString() {
|
|
5651
|
+
return `Cron(${format$1(toPojo(this))})`;
|
|
5652
|
+
},
|
|
5653
|
+
toJSON() {
|
|
5654
|
+
const out = toPojo(this);
|
|
5655
|
+
out["_id"] = "Cron";
|
|
5656
|
+
return out;
|
|
5657
|
+
},
|
|
5658
|
+
[NodeInspectSymbol]() {
|
|
5659
|
+
return this.toJSON();
|
|
5660
|
+
},
|
|
5661
|
+
pipe() {
|
|
5662
|
+
return pipeArguments(this, arguments);
|
|
5663
|
+
}
|
|
5664
|
+
};
|
|
5665
|
+
const isCron = (u) => hasProperty(u, TypeId$o);
|
|
5666
|
+
const make$p = (values) => {
|
|
5667
|
+
const o = Object.create(CronProto);
|
|
5668
|
+
o.seconds = restrictions.seconds(values.seconds ?? [0]);
|
|
5669
|
+
o.minutes = restrictions.minutes(values.minutes);
|
|
5670
|
+
o.hours = restrictions.hours(values.hours);
|
|
5671
|
+
o.days = restrictions.days(values.days);
|
|
5672
|
+
o.months = restrictions.months(values.months);
|
|
5673
|
+
o.weekdays = restrictions.weekdays(values.weekdays);
|
|
5674
|
+
o.and = values.and === true;
|
|
5675
|
+
o.tz = fromUndefinedOr(values.tz);
|
|
5676
|
+
const seconds2 = Array.from(o.seconds);
|
|
5677
|
+
const minutes2 = Array.from(o.minutes);
|
|
5678
|
+
const hours2 = Array.from(o.hours);
|
|
5679
|
+
const days2 = Array.from(o.days);
|
|
5680
|
+
const months = Array.from(o.months);
|
|
5681
|
+
const weekdays = Array.from(o.weekdays);
|
|
5682
|
+
o.first = {
|
|
5683
|
+
second: seconds2[0] ?? 0,
|
|
5684
|
+
minute: minutes2[0] ?? 0,
|
|
5685
|
+
hour: hours2[0] ?? 0,
|
|
5686
|
+
day: days2[0] ?? 1,
|
|
5687
|
+
month: (months[0] ?? 1) - 1,
|
|
5688
|
+
weekday: weekdays[0] ?? 0
|
|
5689
|
+
};
|
|
5690
|
+
o.last = {
|
|
5691
|
+
second: seconds2[seconds2.length - 1] ?? 59,
|
|
5692
|
+
minute: minutes2[minutes2.length - 1] ?? 59,
|
|
5693
|
+
hour: hours2[hours2.length - 1] ?? 23,
|
|
5694
|
+
day: days2[days2.length - 1] ?? 31,
|
|
5695
|
+
month: (months[months.length - 1] ?? 12) - 1,
|
|
5696
|
+
weekday: weekdays[weekdays.length - 1] ?? 6
|
|
5697
|
+
};
|
|
5698
|
+
o.next = {
|
|
5699
|
+
second: lookup.next.second(seconds2),
|
|
5700
|
+
minute: lookup.next.minute(minutes2),
|
|
5701
|
+
hour: lookup.next.hour(hours2),
|
|
5702
|
+
day: lookup.next.day(days2),
|
|
5703
|
+
month: lookup.next.month(months),
|
|
5704
|
+
weekday: lookup.next.weekday(weekdays)
|
|
5705
|
+
};
|
|
5706
|
+
o.prev = {
|
|
5707
|
+
second: lookup.prev.second(seconds2),
|
|
5708
|
+
minute: lookup.prev.minute(minutes2),
|
|
5709
|
+
hour: lookup.prev.hour(hours2),
|
|
5710
|
+
day: lookup.prev.day(days2),
|
|
5711
|
+
month: lookup.prev.month(months),
|
|
5712
|
+
weekday: lookup.prev.weekday(weekdays)
|
|
5713
|
+
};
|
|
5714
|
+
return o;
|
|
5715
|
+
};
|
|
5716
|
+
const makeRestrictions = (field, min2, max, normalize2 = (value2) => value2) => (values) => {
|
|
5717
|
+
const restrictions2 = [];
|
|
5718
|
+
for (const value2 of values) {
|
|
5719
|
+
if (!Number.isInteger(value2) || value2 < min2 || value2 > max) {
|
|
5720
|
+
throw new RangeError(`${field} must contain only integers between ${min2} and ${max}`);
|
|
5721
|
+
}
|
|
5722
|
+
restrictions2.push(normalize2(value2));
|
|
5723
|
+
}
|
|
5724
|
+
return new Set(sort(restrictions2, Order));
|
|
5725
|
+
};
|
|
5726
|
+
const restrictions = {
|
|
5727
|
+
seconds: /* @__PURE__ */ makeRestrictions("seconds", 0, 59),
|
|
5728
|
+
minutes: /* @__PURE__ */ makeRestrictions("minutes", 0, 59),
|
|
5729
|
+
hours: /* @__PURE__ */ makeRestrictions("hours", 0, 23),
|
|
5730
|
+
days: /* @__PURE__ */ makeRestrictions("days", 1, 31),
|
|
5731
|
+
months: /* @__PURE__ */ makeRestrictions("months", 1, 12),
|
|
5732
|
+
weekdays: /* @__PURE__ */ makeRestrictions("weekdays", 0, 7, (value2) => value2 === 7 ? 0 : value2)
|
|
5733
|
+
};
|
|
5734
|
+
const makeLookupTable = (size, dir) => (values) => {
|
|
5735
|
+
const result2 = new Array(size).fill(void 0);
|
|
5736
|
+
if (values.length === 0) {
|
|
5737
|
+
return result2;
|
|
5738
|
+
}
|
|
5739
|
+
let current = void 0;
|
|
5740
|
+
if (dir === "next") {
|
|
5741
|
+
let index = values.length - 1;
|
|
5742
|
+
for (let i = size - 1; i >= 0; i--) {
|
|
5743
|
+
while (index >= 0 && values[index] >= i) {
|
|
5744
|
+
current = values[index--];
|
|
5745
|
+
}
|
|
5746
|
+
result2[i] = current;
|
|
5747
|
+
}
|
|
5748
|
+
} else {
|
|
5749
|
+
let index = 0;
|
|
5750
|
+
for (let i = 0; i < size; i++) {
|
|
5751
|
+
while (index < values.length && values[index] <= i) {
|
|
5752
|
+
current = values[index++];
|
|
5753
|
+
}
|
|
5754
|
+
result2[i] = current;
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
return result2;
|
|
5758
|
+
};
|
|
5759
|
+
const lookup = {
|
|
5760
|
+
prev: {
|
|
5761
|
+
second: /* @__PURE__ */ makeLookupTable(60, "prev"),
|
|
5762
|
+
minute: /* @__PURE__ */ makeLookupTable(60, "prev"),
|
|
5763
|
+
hour: /* @__PURE__ */ makeLookupTable(24, "prev"),
|
|
5764
|
+
day: /* @__PURE__ */ makeLookupTable(32, "prev"),
|
|
5765
|
+
month: /* @__PURE__ */ makeLookupTable(13, "prev"),
|
|
5766
|
+
weekday: /* @__PURE__ */ makeLookupTable(7, "prev")
|
|
5767
|
+
},
|
|
5768
|
+
next: {
|
|
5769
|
+
second: /* @__PURE__ */ makeLookupTable(60, "next"),
|
|
5770
|
+
minute: /* @__PURE__ */ makeLookupTable(60, "next"),
|
|
5771
|
+
hour: /* @__PURE__ */ makeLookupTable(24, "next"),
|
|
5772
|
+
day: /* @__PURE__ */ makeLookupTable(32, "next"),
|
|
5773
|
+
month: /* @__PURE__ */ makeLookupTable(13, "next"),
|
|
5774
|
+
weekday: /* @__PURE__ */ makeLookupTable(7, "next")
|
|
5775
|
+
}
|
|
5776
|
+
};
|
|
5777
|
+
const CronParseErrorTypeId = "~effect/Cron/CronParseError";
|
|
5778
|
+
class CronParseError extends (/* @__PURE__ */ TaggedError$1("CronParseError")) {
|
|
5779
|
+
[CronParseErrorTypeId] = CronParseErrorTypeId;
|
|
5780
|
+
}
|
|
5781
|
+
const parse = (cron, tz) => {
|
|
5782
|
+
const segments = cron.trim().split(/\s+/).filter(isNonEmpty$1);
|
|
5783
|
+
if (segments.length !== 5 && segments.length !== 6) {
|
|
5784
|
+
return fail$6(new CronParseError({
|
|
5785
|
+
message: `Invalid number of segments in cron expression`,
|
|
5786
|
+
input: cron
|
|
5787
|
+
}));
|
|
5788
|
+
}
|
|
5789
|
+
if (segments.length === 5) {
|
|
5790
|
+
segments.unshift("0");
|
|
5791
|
+
}
|
|
5792
|
+
const [seconds2, minutes2, hours2, days2, months, weekdays] = segments;
|
|
5793
|
+
const zone = tz === void 0 || isTimeZone(tz) ? succeed$8(tz) : fromOption$2(zoneFromString(tz), () => new CronParseError({
|
|
5794
|
+
message: `Invalid time zone in cron expression`,
|
|
5795
|
+
input: tz
|
|
5796
|
+
}));
|
|
5797
|
+
return all$2({
|
|
5798
|
+
tz: zone,
|
|
5799
|
+
seconds: parseSegment(seconds2, secondOptions),
|
|
5800
|
+
minutes: parseSegment(minutes2, minuteOptions),
|
|
5801
|
+
hours: parseSegment(hours2, hourOptions),
|
|
5802
|
+
days: parseSegment(days2, dayOptions),
|
|
5803
|
+
months: parseSegment(months, monthOptions),
|
|
5804
|
+
weekdays: parseSegment(weekdays, weekdayOptions)
|
|
5805
|
+
}).pipe(map$7(({
|
|
5806
|
+
tz: tz2,
|
|
5807
|
+
seconds: seconds3,
|
|
5808
|
+
minutes: minutes3,
|
|
5809
|
+
hours: hours3,
|
|
5810
|
+
days: days3,
|
|
5811
|
+
months: months2,
|
|
5812
|
+
weekdays: weekdays2
|
|
5813
|
+
}) => make$p({
|
|
5814
|
+
tz: tz2,
|
|
5815
|
+
seconds: seconds3.values,
|
|
5816
|
+
minutes: minutes3.values,
|
|
5817
|
+
hours: hours3.values,
|
|
5818
|
+
days: days3.values,
|
|
5819
|
+
months: months2.values,
|
|
5820
|
+
weekdays: weekdays2.values,
|
|
5821
|
+
and: (days3.wildcard || weekdays2.wildcard) && days3.values.size !== 0 && weekdays2.values.size !== 0
|
|
5822
|
+
})));
|
|
5823
|
+
};
|
|
5824
|
+
const parseUnsafe = (cron, tz) => getOrThrow(parse(cron, tz));
|
|
5825
|
+
const daysInMonth = (date) => new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 0)).getUTCDate();
|
|
5826
|
+
const next = (cron, now2) => {
|
|
5827
|
+
return stepCron(cron, now2, "next");
|
|
5828
|
+
};
|
|
5829
|
+
const stepCron = (cron, now2, direction) => {
|
|
5830
|
+
const tz = getOrUndefined$1(cron.tz);
|
|
5831
|
+
const zoned = makeZonedUnsafe(now2 ?? /* @__PURE__ */ new Date(), {
|
|
5832
|
+
timeZone: tz
|
|
5833
|
+
});
|
|
5834
|
+
const tick2 = 1;
|
|
5835
|
+
const table = cron[direction];
|
|
5836
|
+
const boundary = cron.first;
|
|
5837
|
+
const needsStep = (next2, current) => next2 > current;
|
|
5838
|
+
const utc = tz !== void 0 && isTimeZoneNamed(tz) && tz.id === "UTC";
|
|
5839
|
+
const adjustDst = utc ? constVoid : (current) => {
|
|
5840
|
+
const adjusted = makeZonedUnsafe(current, {
|
|
5841
|
+
timeZone: zoned.zone,
|
|
5842
|
+
adjustForTimeZone: true,
|
|
5843
|
+
disambiguation: void 0
|
|
5844
|
+
}).pipe(toDate);
|
|
5845
|
+
const drift = current.getTime() - adjusted.getTime();
|
|
5846
|
+
if (drift > 0) {
|
|
5847
|
+
current.setTime(current.getTime() + drift);
|
|
5848
|
+
}
|
|
5849
|
+
};
|
|
5850
|
+
const isBeforeStart = utc ? constFalse : (current) => makeZonedUnsafe(current, {
|
|
5851
|
+
timeZone: zoned.zone,
|
|
5852
|
+
adjustForTimeZone: true
|
|
5853
|
+
}).epochMilliseconds <= zoned.epochMilliseconds;
|
|
5854
|
+
const result2 = mutate(zoned, (current) => {
|
|
5855
|
+
current.setUTCSeconds(current.getUTCSeconds() + tick2, 0);
|
|
5856
|
+
for (let i = 0; i < 1e4; i++) {
|
|
5857
|
+
if (cron.seconds.size !== 0) {
|
|
5858
|
+
const currentSecond = current.getUTCSeconds();
|
|
5859
|
+
const nextSecond = table.second[currentSecond];
|
|
5860
|
+
if (nextSecond === void 0) {
|
|
5861
|
+
current.setUTCMinutes(current.getUTCMinutes() + tick2, boundary.second);
|
|
5862
|
+
adjustDst(current);
|
|
5863
|
+
continue;
|
|
5864
|
+
}
|
|
5865
|
+
if (needsStep(nextSecond, currentSecond)) {
|
|
5866
|
+
current.setUTCSeconds(nextSecond);
|
|
5867
|
+
adjustDst(current);
|
|
5868
|
+
continue;
|
|
5869
|
+
}
|
|
5870
|
+
}
|
|
5871
|
+
if (cron.minutes.size !== 0) {
|
|
5872
|
+
const currentMinute = current.getUTCMinutes();
|
|
5873
|
+
const nextMinute = table.minute[currentMinute];
|
|
5874
|
+
if (nextMinute === void 0) {
|
|
5875
|
+
current.setUTCHours(current.getUTCHours() + tick2, boundary.minute, boundary.second);
|
|
5876
|
+
adjustDst(current);
|
|
5877
|
+
continue;
|
|
5878
|
+
}
|
|
5879
|
+
if (needsStep(nextMinute, currentMinute)) {
|
|
5880
|
+
current.setUTCMinutes(nextMinute, boundary.second);
|
|
5881
|
+
adjustDst(current);
|
|
5882
|
+
continue;
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
if (cron.hours.size !== 0) {
|
|
5886
|
+
const currentHour = current.getUTCHours();
|
|
5887
|
+
const nextHour = table.hour[currentHour];
|
|
5888
|
+
if (nextHour === void 0) {
|
|
5889
|
+
current.setUTCDate(current.getUTCDate() + tick2);
|
|
5890
|
+
current.setUTCHours(boundary.hour, boundary.minute, boundary.second);
|
|
5891
|
+
adjustDst(current);
|
|
5892
|
+
continue;
|
|
5893
|
+
}
|
|
5894
|
+
if (needsStep(nextHour, currentHour)) {
|
|
5895
|
+
current.setUTCHours(nextHour, boundary.minute, boundary.second);
|
|
5896
|
+
adjustDst(current);
|
|
5897
|
+
continue;
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
if (cron.weekdays.size !== 0 || cron.days.size !== 0) {
|
|
5901
|
+
if (cron.and) {
|
|
5902
|
+
const matchesDay = cron.days.size === 0 || cron.days.has(current.getUTCDate());
|
|
5903
|
+
const matchesWeekday = cron.weekdays.size === 0 || cron.weekdays.has(current.getUTCDay());
|
|
5904
|
+
if (!matchesDay || !matchesWeekday) {
|
|
5905
|
+
current.setUTCDate(current.getUTCDate() + tick2);
|
|
5906
|
+
current.setUTCHours(boundary.hour, boundary.minute, boundary.second);
|
|
5907
|
+
adjustDst(current);
|
|
5908
|
+
continue;
|
|
5909
|
+
}
|
|
5910
|
+
} else {
|
|
5911
|
+
let a = Infinity;
|
|
5912
|
+
let b = Infinity;
|
|
5913
|
+
if (cron.weekdays.size !== 0) {
|
|
5914
|
+
const currentWeekday = current.getUTCDay();
|
|
5915
|
+
const nextWeekday = table.weekday[currentWeekday];
|
|
5916
|
+
if (nextWeekday === void 0) {
|
|
5917
|
+
a = 7 - currentWeekday + boundary.weekday;
|
|
5918
|
+
} else {
|
|
5919
|
+
a = nextWeekday - currentWeekday;
|
|
5920
|
+
}
|
|
5921
|
+
}
|
|
5922
|
+
if (cron.days.size !== 0 && a !== 0) {
|
|
5923
|
+
const currentDay = current.getUTCDate();
|
|
5924
|
+
const nextDay = table.day[currentDay];
|
|
5925
|
+
if (nextDay === void 0) {
|
|
5926
|
+
{
|
|
5927
|
+
b = daysInMonth(current) - currentDay + boundary.day;
|
|
5928
|
+
}
|
|
5929
|
+
} else if (nextDay > daysInMonth(current)) {
|
|
5930
|
+
b = daysInMonth(current) - currentDay + boundary.day;
|
|
5931
|
+
} else {
|
|
5932
|
+
b = nextDay - currentDay;
|
|
5933
|
+
}
|
|
5934
|
+
}
|
|
5935
|
+
const addDays = Math.min(a, b);
|
|
5936
|
+
if (addDays !== 0) {
|
|
5937
|
+
current.setUTCDate(current.getUTCDate() + addDays);
|
|
5938
|
+
current.setUTCHours(boundary.hour, boundary.minute, boundary.second);
|
|
5939
|
+
adjustDst(current);
|
|
5940
|
+
continue;
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5944
|
+
if (cron.months.size !== 0) {
|
|
5945
|
+
const currentMonth = current.getUTCMonth() + 1;
|
|
5946
|
+
const nextMonth = table.month[currentMonth];
|
|
5947
|
+
const clampBoundaryDay = (targetMonthIndex) => {
|
|
5948
|
+
daysInMonth(new Date(Date.UTC(current.getUTCFullYear(), targetMonthIndex + 1, 0)));
|
|
5949
|
+
if (cron.days.size !== 0 && cron.weekdays.size === 0) {
|
|
5950
|
+
return boundary.day;
|
|
5951
|
+
}
|
|
5952
|
+
return 1;
|
|
5953
|
+
};
|
|
5954
|
+
if (nextMonth === void 0) {
|
|
5955
|
+
current.setUTCFullYear(current.getUTCFullYear() + tick2);
|
|
5956
|
+
current.setUTCMonth(boundary.month, clampBoundaryDay(boundary.month));
|
|
5957
|
+
current.setUTCHours(boundary.hour, boundary.minute, boundary.second);
|
|
5958
|
+
adjustDst(current);
|
|
5959
|
+
continue;
|
|
5960
|
+
}
|
|
5961
|
+
if (needsStep(nextMonth, currentMonth)) {
|
|
5962
|
+
const targetMonthIndex = nextMonth - 1;
|
|
5963
|
+
current.setUTCMonth(targetMonthIndex, clampBoundaryDay(targetMonthIndex));
|
|
5964
|
+
current.setUTCHours(boundary.hour, boundary.minute, boundary.second);
|
|
5965
|
+
adjustDst(current);
|
|
5966
|
+
continue;
|
|
5967
|
+
}
|
|
5968
|
+
}
|
|
5969
|
+
if (isBeforeStart(current)) {
|
|
5970
|
+
current.setUTCSeconds(current.getUTCSeconds() + 1);
|
|
5971
|
+
i = -1;
|
|
5972
|
+
continue;
|
|
5973
|
+
}
|
|
5974
|
+
return;
|
|
5975
|
+
}
|
|
5976
|
+
throw new Error("Unable to find cron date");
|
|
5977
|
+
});
|
|
5978
|
+
return toDateUtc(result2);
|
|
5979
|
+
};
|
|
5980
|
+
const Equivalence$1 = /* @__PURE__ */ make$x((self2, that) => equals$2(self2.tz, that.tz) && self2.and === that.and && restrictionsEquals(self2.seconds, that.seconds) && restrictionsEquals(self2.minutes, that.minutes) && restrictionsEquals(self2.hours, that.hours) && restrictionsEquals(self2.days, that.days) && restrictionsEquals(self2.months, that.months) && restrictionsEquals(self2.weekdays, that.weekdays));
|
|
5981
|
+
const restrictionsArrayEquals = /* @__PURE__ */ Array_(/* @__PURE__ */ strictEqual());
|
|
5982
|
+
const restrictionsEquals = (self2, that) => restrictionsArrayEquals(fromIterable$1(self2), fromIterable$1(that));
|
|
5983
|
+
const equals = /* @__PURE__ */ dual(2, (self2, that) => Equivalence$1(self2, that));
|
|
5984
|
+
const secondOptions = {
|
|
5985
|
+
min: 0,
|
|
5986
|
+
max: 59
|
|
5987
|
+
};
|
|
5988
|
+
const minuteOptions = {
|
|
5989
|
+
min: 0,
|
|
5990
|
+
max: 59
|
|
5991
|
+
};
|
|
5992
|
+
const hourOptions = {
|
|
5993
|
+
min: 0,
|
|
5994
|
+
max: 23
|
|
5995
|
+
};
|
|
5996
|
+
const dayOptions = {
|
|
5997
|
+
min: 1,
|
|
5998
|
+
max: 31
|
|
5999
|
+
};
|
|
6000
|
+
const monthOptions = {
|
|
6001
|
+
min: 1,
|
|
6002
|
+
max: 12,
|
|
6003
|
+
aliases: {
|
|
6004
|
+
jan: 1,
|
|
6005
|
+
feb: 2,
|
|
6006
|
+
mar: 3,
|
|
6007
|
+
apr: 4,
|
|
6008
|
+
may: 5,
|
|
6009
|
+
jun: 6,
|
|
6010
|
+
jul: 7,
|
|
6011
|
+
aug: 8,
|
|
6012
|
+
sep: 9,
|
|
6013
|
+
oct: 10,
|
|
6014
|
+
nov: 11,
|
|
6015
|
+
dec: 12
|
|
6016
|
+
}
|
|
6017
|
+
};
|
|
6018
|
+
const weekdayOptions = {
|
|
6019
|
+
min: 0,
|
|
6020
|
+
max: 7,
|
|
6021
|
+
normalize: (value2) => value2 === 7 ? 0 : value2,
|
|
6022
|
+
aliases: {
|
|
6023
|
+
sun: 0,
|
|
6024
|
+
mon: 1,
|
|
6025
|
+
tue: 2,
|
|
6026
|
+
wed: 3,
|
|
6027
|
+
thu: 4,
|
|
6028
|
+
fri: 5,
|
|
6029
|
+
sat: 6
|
|
6030
|
+
}
|
|
6031
|
+
};
|
|
6032
|
+
const parseSegment = (input, options) => {
|
|
6033
|
+
const values = /* @__PURE__ */ new Set();
|
|
6034
|
+
const fields = input.split(",");
|
|
6035
|
+
const first = splitStep(fields[0]);
|
|
6036
|
+
const wildcard = first[0] === "*";
|
|
6037
|
+
const normalize2 = options.normalize ?? ((value2) => value2);
|
|
6038
|
+
const add2 = wildcard && (first[1] === void 0 || first[1] === 1) ? constVoid : (value2) => {
|
|
6039
|
+
values.add(normalize2(value2));
|
|
6040
|
+
};
|
|
6041
|
+
for (let index = 0; index < fields.length; index++) {
|
|
6042
|
+
const field = fields[index];
|
|
6043
|
+
const [raw, step] = index === 0 ? first : splitStep(field);
|
|
6044
|
+
if (step !== void 0) {
|
|
6045
|
+
if (!Number.isInteger(step)) {
|
|
6046
|
+
return fail$6(new CronParseError({
|
|
6047
|
+
message: `Expected step value to be a positive integer`,
|
|
6048
|
+
input
|
|
6049
|
+
}));
|
|
6050
|
+
}
|
|
6051
|
+
if (step < 1) {
|
|
6052
|
+
return fail$6(new CronParseError({
|
|
6053
|
+
message: `Expected step value to be greater than 0`,
|
|
6054
|
+
input
|
|
6055
|
+
}));
|
|
6056
|
+
}
|
|
6057
|
+
if (step > options.max) {
|
|
6058
|
+
return fail$6(new CronParseError({
|
|
6059
|
+
message: `Expected step value to be less than or equal to ${options.max}`,
|
|
6060
|
+
input
|
|
6061
|
+
}));
|
|
6062
|
+
}
|
|
6063
|
+
}
|
|
6064
|
+
if (raw === "*") {
|
|
6065
|
+
if (index === 0 && (step === void 0 || step === 1)) {
|
|
6066
|
+
continue;
|
|
6067
|
+
}
|
|
6068
|
+
for (let i = options.min; i <= options.max; i += step ?? 1) {
|
|
6069
|
+
add2(i);
|
|
6070
|
+
}
|
|
6071
|
+
} else {
|
|
6072
|
+
const [left, right] = splitRange(raw, options.aliases);
|
|
6073
|
+
if (!Number.isInteger(left)) {
|
|
6074
|
+
return fail$6(new CronParseError({
|
|
6075
|
+
message: `Expected a positive integer`,
|
|
6076
|
+
input
|
|
6077
|
+
}));
|
|
6078
|
+
}
|
|
6079
|
+
if (left < options.min || left > options.max) {
|
|
6080
|
+
return fail$6(new CronParseError({
|
|
6081
|
+
message: `Expected a value between ${options.min} and ${options.max}`,
|
|
6082
|
+
input
|
|
6083
|
+
}));
|
|
6084
|
+
}
|
|
6085
|
+
if (right === void 0) {
|
|
6086
|
+
for (let i = left; i <= (step === void 0 ? left : options.max); i += step ?? 1) {
|
|
6087
|
+
add2(i);
|
|
6088
|
+
}
|
|
6089
|
+
} else {
|
|
6090
|
+
if (!Number.isInteger(right)) {
|
|
6091
|
+
return fail$6(new CronParseError({
|
|
6092
|
+
message: `Expected a positive integer`,
|
|
6093
|
+
input
|
|
6094
|
+
}));
|
|
6095
|
+
}
|
|
6096
|
+
if (right < options.min || right > options.max) {
|
|
6097
|
+
return fail$6(new CronParseError({
|
|
6098
|
+
message: `Expected a value between ${options.min} and ${options.max}`,
|
|
6099
|
+
input
|
|
6100
|
+
}));
|
|
6101
|
+
}
|
|
6102
|
+
if (left > right) {
|
|
6103
|
+
return fail$6(new CronParseError({
|
|
6104
|
+
message: `Invalid value range`,
|
|
6105
|
+
input
|
|
6106
|
+
}));
|
|
6107
|
+
}
|
|
6108
|
+
for (let i = left; i <= right; i += step ?? 1) {
|
|
6109
|
+
add2(i);
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
}
|
|
6113
|
+
}
|
|
6114
|
+
return succeed$8({
|
|
6115
|
+
values,
|
|
6116
|
+
wildcard
|
|
6117
|
+
});
|
|
6118
|
+
};
|
|
6119
|
+
const splitStep = (input) => {
|
|
6120
|
+
const separator = input.indexOf("/");
|
|
6121
|
+
if (separator !== -1) {
|
|
6122
|
+
const step = input.slice(separator + 1);
|
|
6123
|
+
return [input.slice(0, separator), decimalRegex.test(step) ? Number(step) : NaN];
|
|
6124
|
+
}
|
|
6125
|
+
return [input, void 0];
|
|
6126
|
+
};
|
|
6127
|
+
const splitRange = (input, aliases) => {
|
|
6128
|
+
const separator = input.indexOf("-");
|
|
6129
|
+
if (separator !== -1) {
|
|
6130
|
+
return [aliasOrValue(input.slice(0, separator), aliases), aliasOrValue(input.slice(separator + 1), aliases)];
|
|
6131
|
+
}
|
|
6132
|
+
return [aliasOrValue(input, aliases), void 0];
|
|
6133
|
+
};
|
|
6134
|
+
function aliasOrValue(field, aliases) {
|
|
6135
|
+
return aliases?.[toLowerCase(field)] ?? (decimalRegex.test(field) ? Number(field) : NaN);
|
|
6136
|
+
}
|
|
6137
|
+
const decimalRegex = /^\d+$/;
|
|
5278
6138
|
const nextBetween = (min2, max, draw) => {
|
|
5279
6139
|
const value2 = draw * (max - min2) + min2;
|
|
5280
6140
|
if (value2 !== max || min2 >= max || !Number.isFinite(max)) {
|
|
@@ -5320,7 +6180,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self2, options) => matchCauseEffe
|
|
|
5320
6180
|
return !isFailure$1(halt) ? options.onDone(halt.success.value) : options.onFailure(halt.failure);
|
|
5321
6181
|
}
|
|
5322
6182
|
}));
|
|
5323
|
-
const TypeId$
|
|
6183
|
+
const TypeId$n = "~effect/Schedule";
|
|
5324
6184
|
const CurrentMetadata = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
|
|
5325
6185
|
defaultValue: /* @__PURE__ */ constant({
|
|
5326
6186
|
input: void 0,
|
|
@@ -5334,7 +6194,7 @@ const CurrentMetadata = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetada
|
|
|
5334
6194
|
})
|
|
5335
6195
|
});
|
|
5336
6196
|
const ScheduleProto = {
|
|
5337
|
-
[TypeId$
|
|
6197
|
+
[TypeId$n]: {
|
|
5338
6198
|
_Out: identity,
|
|
5339
6199
|
_In: identity,
|
|
5340
6200
|
_Env: identity
|
|
@@ -5343,7 +6203,7 @@ const ScheduleProto = {
|
|
|
5343
6203
|
return pipeArguments(this, arguments);
|
|
5344
6204
|
}
|
|
5345
6205
|
};
|
|
5346
|
-
const isSchedule = (u) => hasProperty(u, TypeId$
|
|
6206
|
+
const isSchedule = (u) => hasProperty(u, TypeId$n);
|
|
5347
6207
|
const fromStep = (step) => {
|
|
5348
6208
|
const self2 = Object.create(ScheduleProto);
|
|
5349
6209
|
self2.step = step;
|
|
@@ -5507,7 +6367,7 @@ const buildFromOptions = (options) => {
|
|
|
5507
6367
|
}
|
|
5508
6368
|
return schedule2;
|
|
5509
6369
|
};
|
|
5510
|
-
const TypeId$
|
|
6370
|
+
const TypeId$m = "~effect/Request";
|
|
5511
6371
|
const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
|
|
5512
6372
|
/* c8 ignore next */
|
|
5513
6373
|
_E: (_) => _,
|
|
@@ -5518,7 +6378,7 @@ const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
|
|
|
5518
6378
|
});
|
|
5519
6379
|
const RequestPrototype = {
|
|
5520
6380
|
...StructuralProto,
|
|
5521
|
-
[TypeId$
|
|
6381
|
+
[TypeId$m]: requestVariance
|
|
5522
6382
|
};
|
|
5523
6383
|
const Class$1 = /* @__PURE__ */ (function() {
|
|
5524
6384
|
function Class4(args2) {
|
|
@@ -5693,6 +6553,7 @@ const delay = delay$1;
|
|
|
5693
6553
|
const sleep = sleep$1;
|
|
5694
6554
|
const race = race$1;
|
|
5695
6555
|
const raceFirst = raceFirst$1;
|
|
6556
|
+
const filter$2 = filter$3;
|
|
5696
6557
|
const filterOrFail = filterOrFail$1;
|
|
5697
6558
|
const when = when$1;
|
|
5698
6559
|
const match = match$1;
|
|
@@ -5886,8 +6747,8 @@ const binaryUnits = [decimalUnits[0], {
|
|
|
5886
6747
|
const allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
5887
6748
|
const unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
5888
6749
|
const unitsBySymbol = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.map((unit) => [unit.symbol, unit]));
|
|
5889
|
-
const make$
|
|
5890
|
-
const zero = /* @__PURE__ */ make$
|
|
6750
|
+
const make$o = (value2) => value2;
|
|
6751
|
+
const zero = /* @__PURE__ */ make$o(bigint0);
|
|
5891
6752
|
const invalid$1 = (message) => {
|
|
5892
6753
|
throw new Error(`Invalid ByteSize: ${message}`);
|
|
5893
6754
|
};
|
|
@@ -5895,18 +6756,18 @@ const fromNumber = (input) => {
|
|
|
5895
6756
|
if (!Number.isSafeInteger(input) || input < 0) {
|
|
5896
6757
|
return invalid$1(`expected a non-negative safe integer, received ${input}`);
|
|
5897
6758
|
}
|
|
5898
|
-
return make$
|
|
6759
|
+
return make$o(BigInt(input));
|
|
5899
6760
|
};
|
|
5900
6761
|
const fromQuantity = (quantity, unit) => {
|
|
5901
6762
|
if (typeof quantity === "bigint") {
|
|
5902
6763
|
if (quantity < bigint0) return invalid$1(`expected a non-negative quantity, received ${quantity}`);
|
|
5903
|
-
return make$
|
|
6764
|
+
return make$o(quantity * unit.factor);
|
|
5904
6765
|
}
|
|
5905
6766
|
const value2 = quantity * Number(unit.factor);
|
|
5906
6767
|
if (!Number.isSafeInteger(value2) || value2 < 0) {
|
|
5907
6768
|
return invalid$1(`expected an exact non-negative safe-integer byte result, received ${quantity} ${unit.symbol}`);
|
|
5908
6769
|
}
|
|
5909
|
-
return make$
|
|
6770
|
+
return make$o(BigInt(value2));
|
|
5910
6771
|
};
|
|
5911
6772
|
const fromStringUnsafe = (input) => {
|
|
5912
6773
|
const match2 = /^\s*(\d+)(?:\.(\d+))?\s*([A-Za-z]+)\s*$/.exec(input);
|
|
@@ -5919,13 +6780,13 @@ const fromStringUnsafe = (input) => {
|
|
|
5919
6780
|
if (numerator % scale !== bigint0) {
|
|
5920
6781
|
return invalid$1(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
5921
6782
|
}
|
|
5922
|
-
return make$
|
|
6783
|
+
return make$o(numerator / scale);
|
|
5923
6784
|
};
|
|
5924
6785
|
const fromInputUnsafe = (input) => {
|
|
5925
6786
|
switch (typeof input) {
|
|
5926
6787
|
case "bigint":
|
|
5927
6788
|
if (input < bigint0) return invalid$1(`expected a non-negative bigint, received ${input}`);
|
|
5928
|
-
return make$
|
|
6789
|
+
return make$o(input);
|
|
5929
6790
|
case "number":
|
|
5930
6791
|
return fromNumber(input);
|
|
5931
6792
|
case "string":
|
|
@@ -5933,11 +6794,12 @@ const fromInputUnsafe = (input) => {
|
|
|
5933
6794
|
}
|
|
5934
6795
|
return invalid$1(`unsupported input ${input}`);
|
|
5935
6796
|
};
|
|
5936
|
-
const fromInput = /* @__PURE__ */ liftThrowable(fromInputUnsafe);
|
|
6797
|
+
const fromInput$1 = /* @__PURE__ */ liftThrowable(fromInputUnsafe);
|
|
5937
6798
|
const bytes = (value2) => typeof value2 === "bigint" ? fromInputUnsafe(value2) : fromNumber(value2);
|
|
5938
6799
|
const unitConstructor = (symbol2) => (value2) => fromQuantity(value2, unitsBySymbol.get(symbol2));
|
|
6800
|
+
const kilobytes = /* @__PURE__ */ unitConstructor("kB");
|
|
5939
6801
|
const mebibytes = /* @__PURE__ */ unitConstructor("MiB");
|
|
5940
|
-
const TypeId$
|
|
6802
|
+
const TypeId$l = "~effect/PlatformError";
|
|
5941
6803
|
class BadArgument extends (/* @__PURE__ */ TaggedError$1("BadArgument")) {
|
|
5942
6804
|
/**
|
|
5943
6805
|
* Formats the module, method, and optional description that rejected the argument.
|
|
@@ -5988,7 +6850,7 @@ class PlatformError extends (/* @__PURE__ */ TaggedError$1("PlatformError")) {
|
|
|
5988
6850
|
*
|
|
5989
6851
|
* @since 4.0.0
|
|
5990
6852
|
*/
|
|
5991
|
-
[TypeId$
|
|
6853
|
+
[TypeId$l] = TypeId$l;
|
|
5992
6854
|
get message() {
|
|
5993
6855
|
return this.reason.message;
|
|
5994
6856
|
}
|
|
@@ -6004,10 +6866,10 @@ const interruptAllAs = fiberInterruptAllAs;
|
|
|
6004
6866
|
const getCurrent = getCurrentFiber;
|
|
6005
6867
|
const runIn = fiberRunIn;
|
|
6006
6868
|
const makeUnsafe$2 = makeLatchUnsafe;
|
|
6007
|
-
const make$
|
|
6008
|
-
const TypeId$
|
|
6869
|
+
const make$n = makeLatch;
|
|
6870
|
+
const TypeId$k = "~effect/MutableRef";
|
|
6009
6871
|
const MutableRefProto = {
|
|
6010
|
-
[TypeId$
|
|
6872
|
+
[TypeId$k]: TypeId$k,
|
|
6011
6873
|
...PipeInspectableProto,
|
|
6012
6874
|
toJSON() {
|
|
6013
6875
|
return {
|
|
@@ -6016,7 +6878,7 @@ const MutableRefProto = {
|
|
|
6016
6878
|
};
|
|
6017
6879
|
}
|
|
6018
6880
|
};
|
|
6019
|
-
const make$
|
|
6881
|
+
const make$m = (value2) => {
|
|
6020
6882
|
const ref = Object.create(MutableRefProto);
|
|
6021
6883
|
ref.current = value2;
|
|
6022
6884
|
return ref;
|
|
@@ -6026,7 +6888,7 @@ const set = /* @__PURE__ */ dual(2, (self2, value2) => {
|
|
|
6026
6888
|
return self2;
|
|
6027
6889
|
});
|
|
6028
6890
|
const Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
6029
|
-
const make$
|
|
6891
|
+
const make$l = () => ({
|
|
6030
6892
|
head: void 0,
|
|
6031
6893
|
tail: void 0,
|
|
6032
6894
|
length: 0
|
|
@@ -6164,10 +7026,10 @@ const filter$1 = (self2, f) => {
|
|
|
6164
7026
|
self2.length = array2.length;
|
|
6165
7027
|
};
|
|
6166
7028
|
const remove$1 = (self2, value2) => filter$1(self2, (v) => v !== value2);
|
|
6167
|
-
const TypeId$
|
|
7029
|
+
const TypeId$j = "~effect/PubSub";
|
|
6168
7030
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
6169
|
-
const make$
|
|
6170
|
-
const unbounded$1 = (options) => make$
|
|
7031
|
+
const make$k = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe$4(), makeUnsafe$2(false), make$m(false), options.strategy(), make$m(none())));
|
|
7032
|
+
const unbounded$1 = (options) => make$k({
|
|
6171
7033
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
6172
7034
|
strategy: () => new DroppingStrategy()
|
|
6173
7035
|
});
|
|
@@ -6268,7 +7130,7 @@ const removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
6268
7130
|
subscribers.delete(subscription);
|
|
6269
7131
|
}
|
|
6270
7132
|
};
|
|
6271
|
-
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$
|
|
7133
|
+
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$l(), makeUnsafe$2(false), make$m(false), strategy, pubsub.replayWindow(), ended);
|
|
6272
7134
|
class UnboundedPubSub {
|
|
6273
7135
|
publisherHead = {
|
|
6274
7136
|
value: AbsentValue,
|
|
@@ -6464,7 +7326,7 @@ class SubscriptionImpl {
|
|
|
6464
7326
|
}
|
|
6465
7327
|
}
|
|
6466
7328
|
class PubSubImpl {
|
|
6467
|
-
[TypeId$
|
|
7329
|
+
[TypeId$j] = {
|
|
6468
7330
|
_A: identity
|
|
6469
7331
|
};
|
|
6470
7332
|
pubsub;
|
|
@@ -6652,7 +7514,7 @@ const emptyReplayWindow = {
|
|
|
6652
7514
|
takeAll: () => [],
|
|
6653
7515
|
close: () => void 0
|
|
6654
7516
|
};
|
|
6655
|
-
const TypeId$
|
|
7517
|
+
const TypeId$i = "~effect/Queue";
|
|
6656
7518
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
6657
7519
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
6658
7520
|
const variance$1 = {
|
|
@@ -6660,7 +7522,7 @@ const variance$1 = {
|
|
|
6660
7522
|
_E: identity
|
|
6661
7523
|
};
|
|
6662
7524
|
const QueueProto = {
|
|
6663
|
-
[TypeId$
|
|
7525
|
+
[TypeId$i]: variance$1,
|
|
6664
7526
|
[EnqueueTypeId]: variance$1,
|
|
6665
7527
|
[DequeueTypeId]: variance$1,
|
|
6666
7528
|
...PipeInspectableProto,
|
|
@@ -6672,12 +7534,12 @@ const QueueProto = {
|
|
|
6672
7534
|
};
|
|
6673
7535
|
}
|
|
6674
7536
|
};
|
|
6675
|
-
const make$
|
|
7537
|
+
const make$j = (options) => withFiber$1((fiber) => {
|
|
6676
7538
|
const self2 = Object.create(QueueProto);
|
|
6677
7539
|
self2.dispatcher = fiber.currentDispatcher;
|
|
6678
7540
|
self2.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
6679
7541
|
self2.strategy = options?.strategy ?? "suspend";
|
|
6680
|
-
self2.messages = make$
|
|
7542
|
+
self2.messages = make$l();
|
|
6681
7543
|
self2.scheduleRunning = false;
|
|
6682
7544
|
self2.state = {
|
|
6683
7545
|
_tag: "Open",
|
|
@@ -6687,10 +7549,10 @@ const make$i = (options) => withFiber$1((fiber) => {
|
|
|
6687
7549
|
};
|
|
6688
7550
|
return succeed$7(self2);
|
|
6689
7551
|
});
|
|
6690
|
-
const bounded = (capacity) => make$
|
|
7552
|
+
const bounded = (capacity) => make$j({
|
|
6691
7553
|
capacity
|
|
6692
7554
|
});
|
|
6693
|
-
const unbounded = () => make$
|
|
7555
|
+
const unbounded = () => make$j();
|
|
6694
7556
|
const offer = /* @__PURE__ */ dual(2, (self2, message) => suspend$3(() => offerUnsafe(self2, message) ? exitTrue : self2.state._tag === "Open" && self2.strategy === "suspend" ? offerOrWait(self2, message) : exitFalse));
|
|
6695
7557
|
const offerUnsafe = (self2, message) => {
|
|
6696
7558
|
if (self2.state._tag !== "Open") {
|
|
@@ -7070,15 +7932,15 @@ class SemaphoreImpl {
|
|
|
7070
7932
|
});
|
|
7071
7933
|
}
|
|
7072
7934
|
}
|
|
7073
|
-
const make$
|
|
7935
|
+
const make$i = (permits) => sync$1(() => new SemaphoreImpl(permits));
|
|
7074
7936
|
const withPermit = (self2, effect2) => {
|
|
7075
7937
|
if (!effect2) return self2.withPermit;
|
|
7076
7938
|
return self2.withPermit(effect2);
|
|
7077
7939
|
};
|
|
7078
|
-
const TypeId$
|
|
7079
|
-
const isChannel = (u) => hasProperty(u, TypeId$
|
|
7940
|
+
const TypeId$h = "~effect/Channel";
|
|
7941
|
+
const isChannel = (u) => hasProperty(u, TypeId$h);
|
|
7080
7942
|
const ChannelProto = {
|
|
7081
|
-
[TypeId$
|
|
7943
|
+
[TypeId$h]: {
|
|
7082
7944
|
_Env: identity,
|
|
7083
7945
|
_InErr: identity,
|
|
7084
7946
|
_InElem: identity,
|
|
@@ -7104,7 +7966,7 @@ const fromTransformBracket = (f) => fromTransform$1(fnUntraced(function* (upstre
|
|
|
7104
7966
|
}));
|
|
7105
7967
|
const toTransform = (channel) => channel.transform;
|
|
7106
7968
|
const DefaultChunkSize = 4096;
|
|
7107
|
-
const asyncQueue = (scope2, f, options) => make$
|
|
7969
|
+
const asyncQueue = (scope2, f, options) => make$j({
|
|
7108
7970
|
capacity: options?.bufferSize,
|
|
7109
7971
|
strategy: options?.strategy
|
|
7110
7972
|
}).pipe(tap$1((queue) => addFinalizer$1(scope2, shutdown(queue))), tap$1((queue) => provide$3(f(queue), scope2).pipe(catchCause$1((cause) => failCause$2(queue, cause)), forkIn(scope2))));
|
|
@@ -7268,12 +8130,12 @@ const flattenArray = (self2) => transformPull$1(self2, (pull) => {
|
|
|
7268
8130
|
}
|
|
7269
8131
|
});
|
|
7270
8132
|
}
|
|
7271
|
-
const
|
|
8133
|
+
const next2 = array2[index++];
|
|
7272
8134
|
if (index >= array2.length) {
|
|
7273
8135
|
array2 = void 0;
|
|
7274
8136
|
index = 0;
|
|
7275
8137
|
}
|
|
7276
|
-
return succeed$3(
|
|
8138
|
+
return succeed$3(next2);
|
|
7277
8139
|
});
|
|
7278
8140
|
return succeed$3(pump);
|
|
7279
8141
|
});
|
|
@@ -7316,7 +8178,7 @@ const mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
7316
8178
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope2, forkedScope) {
|
|
7317
8179
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
7318
8180
|
const semaphore = switch_ ? void 0 : makeUnsafe$1(concurrencyN);
|
|
7319
|
-
const doneLatch = yield* make$
|
|
8181
|
+
const doneLatch = yield* make$n(true);
|
|
7320
8182
|
const fibers = /* @__PURE__ */ new Set();
|
|
7321
8183
|
const queue = yield* bounded(bufferSize);
|
|
7322
8184
|
yield* addFinalizer$1(forkedScope, shutdown(queue));
|
|
@@ -7523,7 +8385,7 @@ const runFold = /* @__PURE__ */ dual(3, (self2, initial, f) => suspend$2(() => {
|
|
|
7523
8385
|
}), () => succeed$3(state));
|
|
7524
8386
|
}));
|
|
7525
8387
|
const toPullScoped = (self2, scope2) => toTransform(self2)(done$1(), scope2);
|
|
7526
|
-
const TypeId$
|
|
8388
|
+
const TypeId$g = "~effect/Stream";
|
|
7527
8389
|
const streamVariance = {
|
|
7528
8390
|
_R: identity,
|
|
7529
8391
|
_E: identity,
|
|
@@ -7533,13 +8395,13 @@ const Stream = function(channel) {
|
|
|
7533
8395
|
this.channel = channel;
|
|
7534
8396
|
};
|
|
7535
8397
|
Stream.prototype = {
|
|
7536
|
-
[TypeId$
|
|
8398
|
+
[TypeId$g]: streamVariance,
|
|
7537
8399
|
pipe() {
|
|
7538
8400
|
return pipeArguments(this, arguments);
|
|
7539
8401
|
}
|
|
7540
8402
|
};
|
|
7541
8403
|
const fromChannel$2 = (channel) => new Stream(channel);
|
|
7542
|
-
const TypeId$
|
|
8404
|
+
const TypeId$f = "~effect/Sink";
|
|
7543
8405
|
const endVoid = /* @__PURE__ */ succeed$3([void 0]);
|
|
7544
8406
|
const sinkVariance = {
|
|
7545
8407
|
_A: identity,
|
|
@@ -7549,12 +8411,12 @@ const sinkVariance = {
|
|
|
7549
8411
|
_R: identity
|
|
7550
8412
|
};
|
|
7551
8413
|
const SinkProto = {
|
|
7552
|
-
[TypeId$
|
|
8414
|
+
[TypeId$f]: sinkVariance,
|
|
7553
8415
|
pipe() {
|
|
7554
8416
|
return pipeArguments(this, arguments);
|
|
7555
8417
|
}
|
|
7556
8418
|
};
|
|
7557
|
-
const isSink = (u) => hasProperty(u, TypeId$
|
|
8419
|
+
const isSink = (u) => hasProperty(u, TypeId$f);
|
|
7558
8420
|
const fromChannel$1 = (channel) => fromTransform((upstream, scope2) => toTransform(channel)(upstream, scope2).pipe(flatMap$2(forever({
|
|
7559
8421
|
disableYield: true
|
|
7560
8422
|
})), catchDone(succeed$3)));
|
|
@@ -7574,7 +8436,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$2(
|
|
|
7574
8436
|
disableYield: true
|
|
7575
8437
|
}), catchDone(() => endVoid)));
|
|
7576
8438
|
const unwrap$1 = (effect2) => fromChannel$1(unwrap$2(map$3(effect2, toChannel$1)));
|
|
7577
|
-
const TypeId$
|
|
8439
|
+
const TypeId$e = "~effect/RcRef";
|
|
7578
8440
|
const stateEmpty = {
|
|
7579
8441
|
_tag: "Empty"
|
|
7580
8442
|
};
|
|
@@ -7586,7 +8448,7 @@ const variance = {
|
|
|
7586
8448
|
_E: identity
|
|
7587
8449
|
};
|
|
7588
8450
|
class RcRefImpl {
|
|
7589
|
-
[TypeId$
|
|
8451
|
+
[TypeId$e] = variance;
|
|
7590
8452
|
pipe() {
|
|
7591
8453
|
return pipeArguments(this, arguments);
|
|
7592
8454
|
}
|
|
@@ -7602,7 +8464,7 @@ class RcRefImpl {
|
|
|
7602
8464
|
this.idleTimeToLive = idleTimeToLive;
|
|
7603
8465
|
}
|
|
7604
8466
|
}
|
|
7605
|
-
const make$
|
|
8467
|
+
const make$h = (options) => withFiber((fiber) => {
|
|
7606
8468
|
const context2 = fiber.context;
|
|
7607
8469
|
const scope2 = get$2(context2, Scope);
|
|
7608
8470
|
const ref = new RcRefImpl(options.acquire, context2, scope2, options.idleTimeToLive !== void 0 ? fromInputUnsafe$1(options.idleTimeToLive) : void 0);
|
|
@@ -7702,10 +8564,10 @@ const release = (self2, state) => {
|
|
|
7702
8564
|
})), runForkWith(self2.context), runIn(self2.scope));
|
|
7703
8565
|
return void_$1;
|
|
7704
8566
|
};
|
|
7705
|
-
const make$
|
|
8567
|
+
const make$g = make$h;
|
|
7706
8568
|
const get = get$1;
|
|
7707
|
-
const TypeId$
|
|
7708
|
-
const isStream = (u) => hasProperty(u, TypeId$
|
|
8569
|
+
const TypeId$d = "~effect/Stream";
|
|
8570
|
+
const isStream = (u) => hasProperty(u, TypeId$d);
|
|
7709
8571
|
const fromChannel = fromChannel$2;
|
|
7710
8572
|
const fromEffect = (effect2) => fromChannel(fromEffect$1(map$3(effect2, of)));
|
|
7711
8573
|
const fromEffectDrain = (effect2) => fromPull(succeed$3(flatMap$2(effect2, () => done$1())));
|
|
@@ -7727,7 +8589,7 @@ const toChannel = (stream2) => stream2.channel;
|
|
|
7727
8589
|
const callback = (f, options) => fromChannel(callbackArray(f, options));
|
|
7728
8590
|
const empty = /* @__PURE__ */ fromChannel(empty$1);
|
|
7729
8591
|
const succeed$1 = (value2) => fromChannel(succeed$2(of(value2)));
|
|
7730
|
-
const make$
|
|
8592
|
+
const make$f = (...values) => fromArray(values);
|
|
7731
8593
|
const suspend = (stream2) => fromChannel(suspend$1(() => stream2().channel));
|
|
7732
8594
|
const failCause = (cause) => fromChannel(failCause$1(cause));
|
|
7733
8595
|
const die = (defect) => fromChannel(die$1(defect));
|
|
@@ -7818,6 +8680,28 @@ const transduce = /* @__PURE__ */ dual(2, (self2, sink) => transformPull(self2,
|
|
|
7818
8680
|
return suspend$2(() => done2 ? done2 : pull);
|
|
7819
8681
|
})));
|
|
7820
8682
|
const pipeThroughChannelOrFail = /* @__PURE__ */ dual(2, (self2, channel) => fromChannel(pipeToOrFail(self2.channel, channel)));
|
|
8683
|
+
const changes = (self2) => changesWith(self2, equals$2);
|
|
8684
|
+
const changesWith = /* @__PURE__ */ dual(2, (self2, f) => transformPull(self2, (pull, _scope) => sync(() => {
|
|
8685
|
+
let first = true;
|
|
8686
|
+
let last;
|
|
8687
|
+
return flatMap$2(pull, function loop(arr) {
|
|
8688
|
+
const out = [];
|
|
8689
|
+
let i = 0;
|
|
8690
|
+
if (first) {
|
|
8691
|
+
first = false;
|
|
8692
|
+
last = arr[0];
|
|
8693
|
+
i = 1;
|
|
8694
|
+
out.push(last);
|
|
8695
|
+
}
|
|
8696
|
+
for (; i < arr.length; i++) {
|
|
8697
|
+
const a = arr[i];
|
|
8698
|
+
if (f(a, last)) continue;
|
|
8699
|
+
last = a;
|
|
8700
|
+
out.push(a);
|
|
8701
|
+
}
|
|
8702
|
+
return isArrayNonEmpty(out) ? succeed$3(out) : flatMap$2(pull, loop);
|
|
8703
|
+
});
|
|
8704
|
+
})));
|
|
7821
8705
|
const decodeText = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self2, options) => suspend(() => {
|
|
7822
8706
|
const decoder = new TextDecoder(options?.encoding);
|
|
7823
8707
|
return map$1(self2, (chunk) => decoder.decode(chunk, {
|
|
@@ -7878,8 +8762,8 @@ const toAsyncIterableWith = /* @__PURE__ */ dual(2, (self2, context2) => ({
|
|
|
7878
8762
|
async next() {
|
|
7879
8763
|
if (closePromise) return closePromise;
|
|
7880
8764
|
if (currentIter) {
|
|
7881
|
-
const
|
|
7882
|
-
if (!
|
|
8765
|
+
const next2 = currentIter.next();
|
|
8766
|
+
if (!next2.done) return next2;
|
|
7883
8767
|
currentIter = void 0;
|
|
7884
8768
|
}
|
|
7885
8769
|
const fiber = runFork2(pull ?? flatMap$2(toPullScoped(self2.channel, scope2), (nextPull) => {
|
|
@@ -7914,11 +8798,11 @@ const toAsyncIterableWith = /* @__PURE__ */ dual(2, (self2, context2) => ({
|
|
|
7914
8798
|
}
|
|
7915
8799
|
}));
|
|
7916
8800
|
const toAsyncIterable = (self2) => toAsyncIterableWith(self2, empty$5());
|
|
7917
|
-
const TypeId$
|
|
8801
|
+
const TypeId$c = "~effect/FileSystem";
|
|
7918
8802
|
const FileSystem = /* @__PURE__ */ Service("effect/FileSystem");
|
|
7919
|
-
const make$
|
|
8803
|
+
const make$e = (impl) => FileSystem.of({
|
|
7920
8804
|
...impl,
|
|
7921
|
-
[TypeId$
|
|
8805
|
+
[TypeId$c]: TypeId$c,
|
|
7922
8806
|
exists: (path2) => pipe(impl.access(path2), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed$3(false) : fail$1(e))),
|
|
7923
8807
|
readFileString: (path2, encoding) => flatMap$2(impl.readFile(path2), (_) => try_({
|
|
7924
8808
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -7971,7 +8855,7 @@ const make$d = (impl) => FileSystem.of({
|
|
|
7971
8855
|
const FileTypeId = "~effect/FileSystem/File";
|
|
7972
8856
|
class WatchBackend extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBackend")) {
|
|
7973
8857
|
}
|
|
7974
|
-
const TypeId$
|
|
8858
|
+
const TypeId$b = "~effect/Path";
|
|
7975
8859
|
const Path = /* @__PURE__ */ Service("effect/Path");
|
|
7976
8860
|
function resolve$1(ast) {
|
|
7977
8861
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -7998,15 +8882,15 @@ const missingExit = /* @__PURE__ */ succeed(missing);
|
|
|
7998
8882
|
const sameExit = /* @__PURE__ */ succeed(missing);
|
|
7999
8883
|
const toOption = (value2) => value2 === missing ? none() : some(value2);
|
|
8000
8884
|
const fromOptionExit = (option2) => option2._tag === "None" ? missingExit : succeed(option2.value);
|
|
8001
|
-
const TypeId$
|
|
8885
|
+
const TypeId$a = "~effect/SchemaIssue/Issue";
|
|
8002
8886
|
function isIssue(u) {
|
|
8003
|
-
return hasProperty(u, TypeId$
|
|
8887
|
+
return hasProperty(u, TypeId$a) && u[TypeId$a] === TypeId$a;
|
|
8004
8888
|
}
|
|
8005
8889
|
function hasInput(issue) {
|
|
8006
8890
|
return Object.hasOwn(issue, "input");
|
|
8007
8891
|
}
|
|
8008
8892
|
class IssueNodeImpl {
|
|
8009
|
-
[TypeId$
|
|
8893
|
+
[TypeId$a] = TypeId$a;
|
|
8010
8894
|
constructor(input, options) {
|
|
8011
8895
|
if (options?.reportInput === true && input !== missing) {
|
|
8012
8896
|
this.input = input;
|
|
@@ -8315,7 +9199,7 @@ function getSchemaIssueOrThrow(cause, message) {
|
|
|
8315
9199
|
const isDateTime = isDateTime$1;
|
|
8316
9200
|
const isUtc = isUtc$1;
|
|
8317
9201
|
const makeUnsafe = makeUnsafe$3;
|
|
8318
|
-
const make$
|
|
9202
|
+
const make$d = make$q;
|
|
8319
9203
|
const now = now$1;
|
|
8320
9204
|
const toUtc = toUtc$1;
|
|
8321
9205
|
const formatIso = formatIso$1;
|
|
@@ -8439,7 +9323,7 @@ function transformOptionalEffect(f) {
|
|
|
8439
9323
|
}
|
|
8440
9324
|
function withDefault$1(defaultValue) {
|
|
8441
9325
|
return transformOptionalEffect((o) => {
|
|
8442
|
-
const filtered = filter$
|
|
9326
|
+
const filtered = filter$4(o, isNotUndefined);
|
|
8443
9327
|
return isSome(filtered) ? succeed$3(filtered) : mapEager(defaultValue, some);
|
|
8444
9328
|
});
|
|
8445
9329
|
}
|
|
@@ -8482,9 +9366,9 @@ function decodeBase64() {
|
|
|
8482
9366
|
expected: "a valid Base64 string"
|
|
8483
9367
|
}, input, options)));
|
|
8484
9368
|
}
|
|
8485
|
-
const TypeId$
|
|
9369
|
+
const TypeId$9 = "~effect/SchemaTransformation/Transformation";
|
|
8486
9370
|
const Transformation = class extends Class$4 {
|
|
8487
|
-
[TypeId$
|
|
9371
|
+
[TypeId$9] = TypeId$9;
|
|
8488
9372
|
_tag = "Transformation";
|
|
8489
9373
|
decode;
|
|
8490
9374
|
encode;
|
|
@@ -8498,7 +9382,7 @@ const Transformation = class extends Class$4 {
|
|
|
8498
9382
|
}
|
|
8499
9383
|
};
|
|
8500
9384
|
function isTransformation(u) {
|
|
8501
|
-
return hasProperty(u, TypeId$
|
|
9385
|
+
return hasProperty(u, TypeId$9) && u[TypeId$9] === TypeId$9;
|
|
8502
9386
|
}
|
|
8503
9387
|
const makeTransformation = (options) => {
|
|
8504
9388
|
if (isTransformation(options)) {
|
|
@@ -8606,9 +9490,9 @@ const Context = class {
|
|
|
8606
9490
|
this.annotations = annotations;
|
|
8607
9491
|
}
|
|
8608
9492
|
};
|
|
8609
|
-
const TypeId$
|
|
9493
|
+
const TypeId$8 = "~effect/Schema";
|
|
8610
9494
|
class ASTNodeImpl {
|
|
8611
|
-
[TypeId$
|
|
9495
|
+
[TypeId$8] = TypeId$8;
|
|
8612
9496
|
annotations;
|
|
8613
9497
|
checks;
|
|
8614
9498
|
encoding;
|
|
@@ -9046,7 +9930,7 @@ const Arrays = class extends ASTNodeImpl {
|
|
|
9046
9930
|
}
|
|
9047
9931
|
return succeed(state.output);
|
|
9048
9932
|
};
|
|
9049
|
-
const
|
|
9933
|
+
const parse2 = (input, options) => {
|
|
9050
9934
|
const len = input.length;
|
|
9051
9935
|
const state = {
|
|
9052
9936
|
ast,
|
|
@@ -9068,7 +9952,7 @@ const Arrays = class extends ASTNodeImpl {
|
|
|
9068
9952
|
if (effectIsExit(eff)) return flatMapEager(eff, () => finish(state));
|
|
9069
9953
|
let first = true;
|
|
9070
9954
|
return suspend$2(() => {
|
|
9071
|
-
if (!first) return
|
|
9955
|
+
if (!first) return parse2(input, options);
|
|
9072
9956
|
first = false;
|
|
9073
9957
|
return flatMap$2(eff, () => finish(state));
|
|
9074
9958
|
});
|
|
@@ -9089,7 +9973,7 @@ const Arrays = class extends ASTNodeImpl {
|
|
|
9089
9973
|
parser: compileField2(ast2)
|
|
9090
9974
|
}));
|
|
9091
9975
|
}
|
|
9092
|
-
return
|
|
9976
|
+
return parse2(input, options);
|
|
9093
9977
|
} catch (error) {
|
|
9094
9978
|
return die$2(error);
|
|
9095
9979
|
}
|
|
@@ -9360,10 +10244,10 @@ const Objects = class extends ASTNodeImpl {
|
|
|
9360
10244
|
if (indexCount && concurrency === 1) {
|
|
9361
10245
|
for (let i = 0; i < indexCount; i++) {
|
|
9362
10246
|
const index = indexes[i];
|
|
9363
|
-
const
|
|
10247
|
+
const parse2 = index.is.parameter === string ? parseStringIndex : parseIndex;
|
|
9364
10248
|
const keys = indexKeys?.[i] ?? (index.is.parameter === string ? Object.keys(record2) : getIndexSignatureKeys(record2, index.is.parameter, options));
|
|
9365
10249
|
for (let j = 0; j < keys.length; j++) {
|
|
9366
|
-
const eff =
|
|
10250
|
+
const eff = parse2(state, keys[j], index);
|
|
9367
10251
|
if (!effectIsExit(eff)) yield* eff;
|
|
9368
10252
|
else if (eff._tag === "Failure") return yield* eff;
|
|
9369
10253
|
}
|
|
@@ -10020,9 +10904,9 @@ function isPattern$1(regExp, annotations) {
|
|
|
10020
10904
|
});
|
|
10021
10905
|
}
|
|
10022
10906
|
const bodyOwners = /* @__PURE__ */ new WeakMap();
|
|
10023
|
-
function copy$1(ast,
|
|
10024
|
-
const out = Object.assign(Object.create(Object.getPrototypeOf(ast)), ast,
|
|
10025
|
-
if (Reflect.ownKeys(
|
|
10907
|
+
function copy$1(ast, changes2) {
|
|
10908
|
+
const out = Object.assign(Object.create(Object.getPrototypeOf(ast)), ast, changes2);
|
|
10909
|
+
if (Reflect.ownKeys(changes2).every((key) => key === "context" || key === "encoding")) {
|
|
10026
10910
|
bodyOwners.set(out, getContextOwner(ast));
|
|
10027
10911
|
}
|
|
10028
10912
|
return out;
|
|
@@ -10536,7 +11420,7 @@ const HandleProto = {
|
|
|
10536
11420
|
const makeHandle = (params) => Object.setPrototypeOf({
|
|
10537
11421
|
...params
|
|
10538
11422
|
}, HandleProto);
|
|
10539
|
-
const make$
|
|
11423
|
+
const make$c = (spawn) => {
|
|
10540
11424
|
const streamString = (command, options) => spawn(command).pipe(map$3((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap);
|
|
10541
11425
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
10542
11426
|
return ChildProcessSpawner.of({
|
|
@@ -10550,23 +11434,23 @@ const make$b = (spawn) => {
|
|
|
10550
11434
|
};
|
|
10551
11435
|
class ChildProcessSpawner extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
|
|
10552
11436
|
}
|
|
10553
|
-
const TypeId$
|
|
10554
|
-
const Proto$
|
|
11437
|
+
const TypeId$7 = "~effect/process/ChildProcess";
|
|
11438
|
+
const Proto$2 = {
|
|
10555
11439
|
.../* @__PURE__ */ Prototype({
|
|
10556
11440
|
label: "Command",
|
|
10557
11441
|
evaluate(fiber) {
|
|
10558
11442
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
10559
11443
|
}
|
|
10560
11444
|
}),
|
|
10561
|
-
[TypeId$
|
|
11445
|
+
[TypeId$7]: TypeId$7
|
|
10562
11446
|
};
|
|
10563
|
-
const makeStandardCommand = (command, args2, options) => Object.assign(Object.create(Proto$
|
|
11447
|
+
const makeStandardCommand = (command, args2, options) => Object.assign(Object.create(Proto$2), {
|
|
10564
11448
|
_tag: "StandardCommand",
|
|
10565
11449
|
command,
|
|
10566
11450
|
args: args2,
|
|
10567
11451
|
options
|
|
10568
11452
|
});
|
|
10569
|
-
const make$
|
|
11453
|
+
const make$b = function make(...args2) {
|
|
10570
11454
|
if (isTemplateString(args2[0])) {
|
|
10571
11455
|
const [templates, ...expressions] = args2;
|
|
10572
11456
|
const tokens = parseTemplates(templates, expressions);
|
|
@@ -10786,7 +11670,7 @@ const fromReadableChannel = (options) => fromTransform$1((_, scope2) => readable
|
|
|
10786
11670
|
}));
|
|
10787
11671
|
const fromDuplex = (options) => fromTransform$1((upstream, scope2) => {
|
|
10788
11672
|
const duplex = options.evaluate();
|
|
10789
|
-
const exit2 = make$
|
|
11673
|
+
const exit2 = make$m(void 0);
|
|
10790
11674
|
const latch = makeUnsafe$2(false);
|
|
10791
11675
|
return pullIntoWritable({
|
|
10792
11676
|
pull: upstream,
|
|
@@ -10850,7 +11734,7 @@ const toUint8Array = (readable, options) => map$3(toArrayBuffer(readable, option
|
|
|
10850
11734
|
const readableToPullUnsafe = (options) => {
|
|
10851
11735
|
const readable = options.readable;
|
|
10852
11736
|
const closeOnDone = options.closeOnDone ?? true;
|
|
10853
|
-
const exit2 = options.exit ?? make$
|
|
11737
|
+
const exit2 = options.exit ?? make$m(void 0);
|
|
10854
11738
|
const latch = options.latch ?? makeUnsafe$2(false);
|
|
10855
11739
|
function onReadable() {
|
|
10856
11740
|
latch.openUnsafe();
|
|
@@ -10928,7 +11812,7 @@ const taskkill = (childProcess, onExit2 = () => {
|
|
|
10928
11812
|
}) => NodeChildProcess.execFile("taskkill", ["/pid", String(childProcess.pid), "/T", "/F"], {
|
|
10929
11813
|
windowsHide: true
|
|
10930
11814
|
}, onExit2);
|
|
10931
|
-
const make$
|
|
11815
|
+
const make$a = /* @__PURE__ */ gen(function* () {
|
|
10932
11816
|
const fs = yield* FileSystem;
|
|
10933
11817
|
const path2 = yield* Path;
|
|
10934
11818
|
const resolveWorkingDirectory = fnUntraced(function* (options) {
|
|
@@ -11328,7 +12212,7 @@ const make$9 = /* @__PURE__ */ gen(function* () {
|
|
|
11328
12212
|
const sourceStream = unwrap(succeed$3(getSourceStream(handles[handles.length - 1], options.from)));
|
|
11329
12213
|
const toOption2 = options.to ?? "stdin";
|
|
11330
12214
|
if (toOption2 === "stdin") {
|
|
11331
|
-
handles.push(yield* spawnCommand(make$
|
|
12215
|
+
handles.push(yield* spawnCommand(make$b(command.command, command.args, {
|
|
11332
12216
|
...command.options,
|
|
11333
12217
|
stdin: {
|
|
11334
12218
|
...stdinConfig,
|
|
@@ -11340,7 +12224,7 @@ const make$9 = /* @__PURE__ */ gen(function* () {
|
|
|
11340
12224
|
if (isNotUndefined(fd)) {
|
|
11341
12225
|
const fdName$1 = fdName(fd);
|
|
11342
12226
|
const existingFds = command.options.additionalFds ?? {};
|
|
11343
|
-
handles.push(yield* spawnCommand(make$
|
|
12227
|
+
handles.push(yield* spawnCommand(make$b(command.command, command.args, {
|
|
11344
12228
|
...command.options,
|
|
11345
12229
|
additionalFds: {
|
|
11346
12230
|
...existingFds,
|
|
@@ -11351,7 +12235,7 @@ const make$9 = /* @__PURE__ */ gen(function* () {
|
|
|
11351
12235
|
}
|
|
11352
12236
|
})));
|
|
11353
12237
|
} else {
|
|
11354
|
-
handles.push(yield* spawnCommand(make$
|
|
12238
|
+
handles.push(yield* spawnCommand(make$b(command.command, command.args, {
|
|
11355
12239
|
...command.options,
|
|
11356
12240
|
stdin: {
|
|
11357
12241
|
...stdinConfig,
|
|
@@ -11390,9 +12274,9 @@ const make$9 = /* @__PURE__ */ gen(function* () {
|
|
|
11390
12274
|
}
|
|
11391
12275
|
}
|
|
11392
12276
|
});
|
|
11393
|
-
return make$
|
|
12277
|
+
return make$c(spawnCommand);
|
|
11394
12278
|
});
|
|
11395
|
-
const layer$b = /* @__PURE__ */ effect(ChildProcessSpawner, make$
|
|
12279
|
+
const layer$b = /* @__PURE__ */ effect(ChildProcessSpawner, make$a);
|
|
11396
12280
|
const flattenCommand = (command) => {
|
|
11397
12281
|
const commands = [];
|
|
11398
12282
|
const pipeOptions = [];
|
|
@@ -11469,9 +12353,9 @@ function v7Bytes(timestampMillis, bytes2 = randomBytes()) {
|
|
|
11469
12353
|
bytes2[8] = bytes2[8] & 63 | 128;
|
|
11470
12354
|
return bytes2;
|
|
11471
12355
|
}
|
|
11472
|
-
const TypeId$
|
|
12356
|
+
const TypeId$6 = "~effect/Crypto";
|
|
11473
12357
|
const Crypto = /* @__PURE__ */ Service("effect/Crypto");
|
|
11474
|
-
const make$
|
|
12358
|
+
const make$9 = (impl) => {
|
|
11475
12359
|
const randomBytesUnsafe = impl.randomBytes;
|
|
11476
12360
|
const randomBytes2 = (size) => map$3(validateSize("randomBytes", size), randomBytesUnsafe);
|
|
11477
12361
|
const readUint53 = (bytes2) => (bytes2[0] & 31) * 2 ** 48 + bytes2[1] * 2 ** 40 + bytes2[2] * 2 ** 32 + bytes2[3] * 2 ** 24 + bytes2[4] * 2 ** 16 + bytes2[5] * 2 ** 8 + bytes2[6];
|
|
@@ -11489,7 +12373,7 @@ const make$8 = (impl) => {
|
|
|
11489
12373
|
}
|
|
11490
12374
|
};
|
|
11491
12375
|
return Crypto.of({
|
|
11492
|
-
[TypeId$
|
|
12376
|
+
[TypeId$6]: TypeId$6,
|
|
11493
12377
|
randomBytes: randomBytes2,
|
|
11494
12378
|
nextDoubleUnsafe,
|
|
11495
12379
|
nextIntUnsafe,
|
|
@@ -11554,11 +12438,11 @@ const digest = (algorithm, data) => try_({
|
|
|
11554
12438
|
cause
|
|
11555
12439
|
})
|
|
11556
12440
|
});
|
|
11557
|
-
const make$
|
|
12441
|
+
const make$8 = /* @__PURE__ */ make$9({
|
|
11558
12442
|
randomBytes: crypto.randomBytes,
|
|
11559
12443
|
digest
|
|
11560
12444
|
});
|
|
11561
|
-
const layer$a = /* @__PURE__ */ succeed$4(Crypto, make$
|
|
12445
|
+
const layer$a = /* @__PURE__ */ succeed$4(Crypto, make$8);
|
|
11562
12446
|
const layer$9 = layer$a;
|
|
11563
12447
|
const handleBadArgument = (method) => (err) => badArgument({
|
|
11564
12448
|
module: "FileSystem",
|
|
@@ -11632,7 +12516,7 @@ const makeTempDirectoryFactory = (method) => {
|
|
|
11632
12516
|
const nodeMkdtemp = effectify(NFS.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
11633
12517
|
return (options) => suspend$2(() => {
|
|
11634
12518
|
const prefix = options?.prefix ?? "";
|
|
11635
|
-
const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") :
|
|
12519
|
+
const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") : NL.tmpdir();
|
|
11636
12520
|
return nodeMkdtemp(prefix ? path.join(directory, prefix) : directory + "/");
|
|
11637
12521
|
});
|
|
11638
12522
|
};
|
|
@@ -11998,7 +12882,7 @@ const writeFile = (path2, data, options) => callback$1((resume, signal) => {
|
|
|
11998
12882
|
resume(fail$1(handleBadArgument("writeFile")(err)));
|
|
11999
12883
|
}
|
|
12000
12884
|
});
|
|
12001
|
-
const makeFileSystem = /* @__PURE__ */ map$3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make$
|
|
12885
|
+
const makeFileSystem = /* @__PURE__ */ map$3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make$e({
|
|
12002
12886
|
access,
|
|
12003
12887
|
chmod,
|
|
12004
12888
|
chown,
|
|
@@ -12052,31 +12936,31 @@ const fileUrlOps = (windows) => ({
|
|
|
12052
12936
|
})
|
|
12053
12937
|
});
|
|
12054
12938
|
/* @__PURE__ */ succeed$4(Path)({
|
|
12055
|
-
[TypeId$
|
|
12939
|
+
[TypeId$b]: TypeId$b,
|
|
12056
12940
|
...path.posix,
|
|
12057
12941
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
12058
12942
|
});
|
|
12059
12943
|
/* @__PURE__ */ succeed$4(Path)({
|
|
12060
|
-
[TypeId$
|
|
12944
|
+
[TypeId$b]: TypeId$b,
|
|
12061
12945
|
...path.win32,
|
|
12062
12946
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
12063
12947
|
});
|
|
12064
12948
|
const layer$6 = /* @__PURE__ */ succeed$4(Path)({
|
|
12065
|
-
[TypeId$
|
|
12949
|
+
[TypeId$b]: TypeId$b,
|
|
12066
12950
|
...path,
|
|
12067
12951
|
.../* @__PURE__ */ fileUrlOps(void 0)
|
|
12068
12952
|
});
|
|
12069
12953
|
const layer$5 = layer$6;
|
|
12070
|
-
const TypeId$
|
|
12071
|
-
const Stdio = /* @__PURE__ */ Service(TypeId$
|
|
12072
|
-
const make$
|
|
12073
|
-
[TypeId$
|
|
12954
|
+
const TypeId$5 = "~effect/Stdio";
|
|
12955
|
+
const Stdio = /* @__PURE__ */ Service(TypeId$5);
|
|
12956
|
+
const make$7 = (options) => ({
|
|
12957
|
+
[TypeId$5]: TypeId$5,
|
|
12074
12958
|
stdinIsTerminal: succeed$3(false),
|
|
12075
12959
|
stdoutIsTerminal: succeed$3(false),
|
|
12076
12960
|
stderrIsTerminal: succeed$3(false),
|
|
12077
12961
|
...options
|
|
12078
12962
|
});
|
|
12079
|
-
const layer$4 = /* @__PURE__ */ succeed$4(Stdio, /* @__PURE__ */ make$
|
|
12963
|
+
const layer$4 = /* @__PURE__ */ succeed$4(Stdio, /* @__PURE__ */ make$7({
|
|
12080
12964
|
args: /* @__PURE__ */ sync(() => process.argv.slice(2)),
|
|
12081
12965
|
stdinIsTerminal: /* @__PURE__ */ sync(() => process.stdin.isTTY === true),
|
|
12082
12966
|
stdoutIsTerminal: /* @__PURE__ */ sync(() => process.stdout.isTTY === true),
|
|
@@ -12121,18 +13005,18 @@ const value$1 = (self2) => {
|
|
|
12121
13005
|
throw new Error("Unable to get redacted value" + (self2.label ? ` with label: "${self2.label}"` : ""));
|
|
12122
13006
|
}
|
|
12123
13007
|
};
|
|
12124
|
-
const TypeId$
|
|
12125
|
-
const isRedacted = (u) => hasProperty(u, TypeId$
|
|
12126
|
-
const make$
|
|
12127
|
-
const self2 = Object.create(Proto);
|
|
13008
|
+
const TypeId$4 = "~effect/Redacted";
|
|
13009
|
+
const isRedacted = (u) => hasProperty(u, TypeId$4);
|
|
13010
|
+
const make$6 = (value2, options) => {
|
|
13011
|
+
const self2 = Object.create(Proto$1);
|
|
12128
13012
|
if (options?.label) {
|
|
12129
13013
|
self2.label = options.label;
|
|
12130
13014
|
}
|
|
12131
13015
|
redactedRegistry.set(self2, value2);
|
|
12132
13016
|
return self2;
|
|
12133
13017
|
};
|
|
12134
|
-
const Proto = {
|
|
12135
|
-
[TypeId$
|
|
13018
|
+
const Proto$1 = {
|
|
13019
|
+
[TypeId$4]: {
|
|
12136
13020
|
_A: (_) => _
|
|
12137
13021
|
},
|
|
12138
13022
|
label: void 0,
|
|
@@ -12147,11 +13031,93 @@ const Proto = {
|
|
|
12147
13031
|
return hash(redactedRegistry.get(this));
|
|
12148
13032
|
},
|
|
12149
13033
|
[symbol](that) {
|
|
12150
|
-
return isRedacted(that) && equals$
|
|
13034
|
+
return isRedacted(that) && equals$2(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
12151
13035
|
}
|
|
12152
13036
|
};
|
|
12153
13037
|
const value = value$1;
|
|
12154
|
-
const makeEquivalence = (isEquivalent) => make$
|
|
13038
|
+
const makeEquivalence = (isEquivalent) => make$x((x, y) => isEquivalent(value(x), value(y)));
|
|
13039
|
+
const TypeId$3 = "~effect/http/UrlParams";
|
|
13040
|
+
const isUrlParams = (u) => hasProperty(u, TypeId$3);
|
|
13041
|
+
const Proto = {
|
|
13042
|
+
...PipeInspectableProto,
|
|
13043
|
+
[TypeId$3]: TypeId$3,
|
|
13044
|
+
[Symbol.iterator]() {
|
|
13045
|
+
return this.params[Symbol.iterator]();
|
|
13046
|
+
},
|
|
13047
|
+
toJSON() {
|
|
13048
|
+
return {
|
|
13049
|
+
_id: "UrlParams",
|
|
13050
|
+
params: Object.fromEntries(this.params)
|
|
13051
|
+
};
|
|
13052
|
+
},
|
|
13053
|
+
[symbol](that) {
|
|
13054
|
+
return Equivalence(this, that);
|
|
13055
|
+
},
|
|
13056
|
+
[symbol$1]() {
|
|
13057
|
+
return array(this.params.flat());
|
|
13058
|
+
}
|
|
13059
|
+
};
|
|
13060
|
+
const make$5 = (params) => {
|
|
13061
|
+
const self2 = Object.create(Proto);
|
|
13062
|
+
self2.params = params;
|
|
13063
|
+
return self2;
|
|
13064
|
+
};
|
|
13065
|
+
const fromInput = (input) => {
|
|
13066
|
+
if (isUrlParams(input)) {
|
|
13067
|
+
return input;
|
|
13068
|
+
}
|
|
13069
|
+
const parsed = fromInputNested(input);
|
|
13070
|
+
const out = [];
|
|
13071
|
+
for (let i = 0; i < parsed.length; i++) {
|
|
13072
|
+
if (Array.isArray(parsed[i][0])) {
|
|
13073
|
+
const [keys, value2] = parsed[i];
|
|
13074
|
+
out.push([`${keys[0]}[${keys.slice(1).join("][")}]`, value2]);
|
|
13075
|
+
} else {
|
|
13076
|
+
out.push(parsed[i]);
|
|
13077
|
+
}
|
|
13078
|
+
}
|
|
13079
|
+
return make$5(out);
|
|
13080
|
+
};
|
|
13081
|
+
const fromInputNested = (input) => {
|
|
13082
|
+
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable$1(input) : Object.entries(input);
|
|
13083
|
+
const out = [];
|
|
13084
|
+
for (const [key, value2] of entries) {
|
|
13085
|
+
if (Array.isArray(value2)) {
|
|
13086
|
+
for (let i = 0; i < value2.length; i++) {
|
|
13087
|
+
if (value2[i] !== void 0) {
|
|
13088
|
+
out.push([key, String(value2[i])]);
|
|
13089
|
+
}
|
|
13090
|
+
}
|
|
13091
|
+
} else if (value2 !== null && typeof value2 === "object") {
|
|
13092
|
+
const nested = fromInputNested(value2);
|
|
13093
|
+
for (const [k, v] of nested) {
|
|
13094
|
+
out.push([[key, ...typeof k === "string" ? [k] : k], v]);
|
|
13095
|
+
}
|
|
13096
|
+
} else if (value2 !== void 0) {
|
|
13097
|
+
out.push([key, String(value2)]);
|
|
13098
|
+
}
|
|
13099
|
+
}
|
|
13100
|
+
return out;
|
|
13101
|
+
};
|
|
13102
|
+
const Equivalence = /* @__PURE__ */ make$x((a, b) => arrayEquivalence(a.params, b.params));
|
|
13103
|
+
const arrayEquivalence = /* @__PURE__ */ makeEquivalence$1(/* @__PURE__ */ makeEquivalence$2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
|
|
13104
|
+
const toRecord = (self2) => {
|
|
13105
|
+
const out = {};
|
|
13106
|
+
for (const [k, value2] of self2.params) {
|
|
13107
|
+
if (!Object.hasOwn(out, k)) {
|
|
13108
|
+
assignProperty(out, k, value2);
|
|
13109
|
+
} else {
|
|
13110
|
+
const current = out[k];
|
|
13111
|
+
if (typeof current === "string") {
|
|
13112
|
+
assignProperty(out, k, [current, value2]);
|
|
13113
|
+
} else {
|
|
13114
|
+
current.push(value2);
|
|
13115
|
+
}
|
|
13116
|
+
}
|
|
13117
|
+
}
|
|
13118
|
+
return out;
|
|
13119
|
+
};
|
|
13120
|
+
const toReadonlyRecord = toRecord;
|
|
12155
13121
|
const flatMapTransformation = (result2, current, f) => result2 === sameExit ? f(current) : flatMapEager(result2, f);
|
|
12156
13122
|
function compileTransformation(transformation) {
|
|
12157
13123
|
if (transformation._tag === "Middleware") {
|
|
@@ -12283,13 +13249,13 @@ function compile(ast, compile2, compileField2, base, specialize) {
|
|
|
12283
13249
|
for (let i = links.length - 1; i >= 0; i--) {
|
|
12284
13250
|
result2 = transformations[i](result2, current, options);
|
|
12285
13251
|
if (i !== 0) {
|
|
12286
|
-
const
|
|
13252
|
+
const next2 = parsers[i - 1];
|
|
12287
13253
|
if (result2._tag === "Success") {
|
|
12288
13254
|
current = result2[args];
|
|
12289
|
-
result2 =
|
|
13255
|
+
result2 = next2(current, options);
|
|
12290
13256
|
} else {
|
|
12291
13257
|
result2 = flatMapEager(result2, (value2) => {
|
|
12292
|
-
const nextResult =
|
|
13258
|
+
const nextResult = next2(value2, options);
|
|
12293
13259
|
return nextResult === sameExit ? succeed(value2) : nextResult;
|
|
12294
13260
|
});
|
|
12295
13261
|
}
|
|
@@ -12984,7 +13950,7 @@ function compileJsonSchema(representations, rootPaths, references, options) {
|
|
|
12984
13950
|
if (fallback === void 0) continue;
|
|
12985
13951
|
const schema = compiledDefinitions.get(key)[0];
|
|
12986
13952
|
const candidates = fallbackDefinitions.get(fallback);
|
|
12987
|
-
const match2 = candidates?.find((candidate) => equals$
|
|
13953
|
+
const match2 = candidates?.find((candidate) => equals$2(compiledDefinitions.get(candidate)[0], schema));
|
|
12988
13954
|
if (match2 === void 0) {
|
|
12989
13955
|
if (candidates === void 0) fallbackDefinitions.set(fallback, [key]);
|
|
12990
13956
|
else candidates.push(key);
|
|
@@ -13270,7 +14236,7 @@ function compileJsonSchema(representations, rootPaths, references, options) {
|
|
|
13270
14236
|
for (let index = 0; index < representation.indexSignatures.length; index++) {
|
|
13271
14237
|
const signature = representation.indexSignatures[index];
|
|
13272
14238
|
let type = recur(signature.type, [...path2, "indexSignatures", index, "type"], dependencies);
|
|
13273
|
-
if (equals$
|
|
14239
|
+
if (equals$2(type, {
|
|
13274
14240
|
not: {}
|
|
13275
14241
|
})) type = false;
|
|
13276
14242
|
indexValueSchemas.push(type);
|
|
@@ -13357,8 +14323,8 @@ function compileJsonSchema(representations, rootPaths, references, options) {
|
|
|
13357
14323
|
}
|
|
13358
14324
|
compileDefinition(parameter.$ref, path2);
|
|
13359
14325
|
if (seenReferences.has(parameter.$ref)) return void 0;
|
|
13360
|
-
const
|
|
13361
|
-
return getParameterPatterns(references[parameter.$ref], ["references", parameter.$ref],
|
|
14326
|
+
const next2 = new Set(seenReferences).add(parameter.$ref);
|
|
14327
|
+
return getParameterPatterns(references[parameter.$ref], ["references", parameter.$ref], next2);
|
|
13362
14328
|
}
|
|
13363
14329
|
case "String": {
|
|
13364
14330
|
if (parameter.checks.length === 0) return [];
|
|
@@ -14323,6 +15289,7 @@ function normalizeCardinality(value2) {
|
|
|
14323
15289
|
}
|
|
14324
15290
|
return Math.max(0, Math.floor(value2));
|
|
14325
15291
|
}
|
|
15292
|
+
const NonEmptyString = /* @__PURE__ */ String$1.check(/* @__PURE__ */ isNonEmpty());
|
|
14326
15293
|
const getErrorOptionsKey = (options) => 0 | 0;
|
|
14327
15294
|
const getErrorOptions = (key) => {
|
|
14328
15295
|
switch (key) {
|
|
@@ -14501,7 +15468,7 @@ function Cause(error, defect) {
|
|
|
14501
15468
|
}
|
|
14502
15469
|
const dateTimeUtcFromString = /* @__PURE__ */ transformEffect({
|
|
14503
15470
|
decode: (s, options) => {
|
|
14504
|
-
return match$5(make$
|
|
15471
|
+
return match$5(make$d(s), {
|
|
14505
15472
|
onNone: () => fail$1(new InvalidValue({
|
|
14506
15473
|
expected: "a valid UTC DateTime string"
|
|
14507
15474
|
}, s, options)),
|
|
@@ -14657,13 +15624,34 @@ function Exit(value2, error, defect) {
|
|
|
14657
15624
|
defect
|
|
14658
15625
|
});
|
|
14659
15626
|
}
|
|
15627
|
+
const UrlParams = /* @__PURE__ */ declare(isUrlParams, {
|
|
15628
|
+
representation: {
|
|
15629
|
+
id: "effect/http/UrlParams",
|
|
15630
|
+
payload: null
|
|
15631
|
+
},
|
|
15632
|
+
toCode: () => ({
|
|
15633
|
+
runtime: "Schema.UrlParams",
|
|
15634
|
+
Type: "UrlParams.UrlParams",
|
|
15635
|
+
importDeclarations: [`import * as UrlParams from "effect/http/UrlParams"`]
|
|
15636
|
+
}),
|
|
15637
|
+
expected: "UrlParams",
|
|
15638
|
+
toEquivalence: () => Equivalence,
|
|
15639
|
+
toCodec: () => link()(ArraySchema(Tuple([String$1, String$1])), transform({
|
|
15640
|
+
decode: make$5,
|
|
15641
|
+
encode: (self2) => self2.params
|
|
15642
|
+
}))
|
|
15643
|
+
});
|
|
15644
|
+
const RecordFromUrlParams = /* @__PURE__ */ UrlParams.pipe(/* @__PURE__ */ decodeTo(/* @__PURE__ */ Record(String$1, /* @__PURE__ */ Union2([String$1, /* @__PURE__ */ NonEmptyArray(String$1)])), /* @__PURE__ */ transform({
|
|
15645
|
+
decode: toReadonlyRecord,
|
|
15646
|
+
encode: fromInput
|
|
15647
|
+
})));
|
|
14660
15648
|
function Redacted(value$12, options) {
|
|
14661
15649
|
const label = void 0;
|
|
14662
15650
|
const schema = declareConstructor()([value$12], ([value$13]) => (input, ast, poptions) => {
|
|
14663
15651
|
if (isRedacted(input)) {
|
|
14664
15652
|
const label2 = void_$1;
|
|
14665
15653
|
return flatMapEager(label2, () => mapBothEager(decodeUnknownEffect$1(value$13)(value(input), poptions), {
|
|
14666
|
-
onSuccess: (value2) => make$
|
|
15654
|
+
onSuccess: (value2) => make$6(value2, {
|
|
14667
15655
|
label: input.label
|
|
14668
15656
|
}),
|
|
14669
15657
|
onFailure: () => {
|
|
@@ -14686,7 +15674,7 @@ function Redacted(value$12, options) {
|
|
|
14686
15674
|
}),
|
|
14687
15675
|
expected: "Redacted",
|
|
14688
15676
|
toCodecJson: ([value$13]) => link()(value$13, {
|
|
14689
|
-
decode: transform$1((e) => make$
|
|
15677
|
+
decode: transform$1((e) => make$6(e, {
|
|
14690
15678
|
label
|
|
14691
15679
|
})),
|
|
14692
15680
|
encode: transform$1(value)
|
|
@@ -14880,7 +15868,7 @@ const make$1 = (impl) => Terminal.of({
|
|
|
14880
15868
|
const make2 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
14881
15869
|
const stdin = process.stdin;
|
|
14882
15870
|
const stdout = process.stdout;
|
|
14883
|
-
const lines = yield* make$
|
|
15871
|
+
const lines = yield* make$j();
|
|
14884
15872
|
let inputEnded = stdin.readableEnded;
|
|
14885
15873
|
let readlineActive = false;
|
|
14886
15874
|
const onStdinEnd = () => {
|
|
@@ -14891,7 +15879,7 @@ const make2 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQu
|
|
|
14891
15879
|
};
|
|
14892
15880
|
stdin.once("end", onStdinEnd);
|
|
14893
15881
|
yield* addFinalizer(() => sync(() => stdin.off("end", onStdinEnd)));
|
|
14894
|
-
const rlRef = yield* make$
|
|
15882
|
+
const rlRef = yield* make$g({
|
|
14895
15883
|
acquire: acquireRelease(sync(() => {
|
|
14896
15884
|
const rl = readline.createInterface({
|
|
14897
15885
|
input: stdin,
|
|
@@ -14935,7 +15923,7 @@ const make2 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQu
|
|
|
14935
15923
|
const columns = sync(() => stdout.columns ?? 0);
|
|
14936
15924
|
const rows = sync(() => stdout.rows ?? 0);
|
|
14937
15925
|
const readInput = gen(function* () {
|
|
14938
|
-
const queue = yield* make$
|
|
15926
|
+
const queue = yield* make$j();
|
|
14939
15927
|
const handleKeypress = (s, k) => {
|
|
14940
15928
|
const userInput = {
|
|
14941
15929
|
input: fromUndefinedOr(s),
|
|
@@ -14998,6 +15986,10 @@ function defaultShouldQuit(input) {
|
|
|
14998
15986
|
}
|
|
14999
15987
|
const layer$1 = layer$2;
|
|
15000
15988
|
const layer = /* @__PURE__ */ provideMerge(layer$b, /* @__PURE__ */ mergeAll$1(layer$7, layer$9, layer$5, layer$3, layer$1));
|
|
15989
|
+
const version = "0.3.0-alpha.11";
|
|
15990
|
+
const packageJson = {
|
|
15991
|
+
version
|
|
15992
|
+
};
|
|
15001
15993
|
const LimitReset = NullOr(Struct({ at: String$1, autoResume: Boolean$1 }));
|
|
15002
15994
|
const UsageLimit = Union2([
|
|
15003
15995
|
Struct({ kind: Literal2("usage"), message: String$1, reset: LimitReset }),
|
|
@@ -15020,7 +16012,9 @@ const LimitWindow = Struct({
|
|
|
15020
16012
|
resetsAt: NullOr(String$1)
|
|
15021
16013
|
});
|
|
15022
16014
|
const PlanLimits = Struct({ windows: ArraySchema(LimitWindow), readAt: String$1 });
|
|
15023
|
-
const
|
|
16015
|
+
const OWN_TOOL_PREFIX = /^(?:mcp__hinacode__|hinacode[_/])/;
|
|
16016
|
+
const ownToolName = (name) => name.replace(OWN_TOOL_PREFIX, "");
|
|
16017
|
+
const ProviderId = Literals(["claude", "codex", "muse", "opencode", "magpie"]);
|
|
15024
16018
|
const AccountProviderId = Literals(["claude", "codex"]);
|
|
15025
16019
|
const UpdatableProviderId = Literals(["claude", "codex"]);
|
|
15026
16020
|
const AgentUpdate = Struct({
|
|
@@ -15028,6 +16022,7 @@ const AgentUpdate = Struct({
|
|
|
15028
16022
|
current: String$1,
|
|
15029
16023
|
latest: String$1
|
|
15030
16024
|
});
|
|
16025
|
+
const AgentBinaryStatus = Struct({ installed: Boolean$1, path: NullOr(String$1) });
|
|
15031
16026
|
const ModelInfo = Struct({
|
|
15032
16027
|
id: String$1,
|
|
15033
16028
|
label: String$1,
|
|
@@ -15065,6 +16060,14 @@ const loginCommand = (provider, home) => [
|
|
|
15065
16060
|
...home === null ? [provider] : [`${configDirVariable[provider]}=${shellQuote(home.dir)}`, shellQuote(home.binary)],
|
|
15066
16061
|
...loginArguments[provider]
|
|
15067
16062
|
].join(" ");
|
|
16063
|
+
const ownModels = {
|
|
16064
|
+
claude: /^(claude-|opus|sonnet|haiku|fable|default)/,
|
|
16065
|
+
codex: /^(gpt-|o\d|codex-)/
|
|
16066
|
+
};
|
|
16067
|
+
const signedOutFailure = (provider, home, model) => ({
|
|
16068
|
+
signedOut: true,
|
|
16069
|
+
...ownModels[provider].test(model) && { loginCommand: loginCommand(provider, home) }
|
|
16070
|
+
});
|
|
15068
16071
|
const CLAUDE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
15069
16072
|
const unlistedModel = (id, provider) => ({
|
|
15070
16073
|
id,
|
|
@@ -15166,6 +16169,8 @@ const SubagentStatus = Literals(["running", "completed", "failed", "stopped"]);
|
|
|
15166
16169
|
const Subagent = Struct({
|
|
15167
16170
|
id: String$1,
|
|
15168
16171
|
provider: optionalKey(ProviderId),
|
|
16172
|
+
model: optionalKey(String$1),
|
|
16173
|
+
effort: optionalKey(String$1),
|
|
15169
16174
|
label: String$1,
|
|
15170
16175
|
callId: NullOr(String$1),
|
|
15171
16176
|
status: SubagentStatus,
|
|
@@ -15240,27 +16245,37 @@ const AgentEvent = Union2([
|
|
|
15240
16245
|
type: Literal2("turn_failed"),
|
|
15241
16246
|
message: String$1,
|
|
15242
16247
|
stopped: optional(Boolean$1),
|
|
15243
|
-
|
|
16248
|
+
signedOut: optional(Boolean$1),
|
|
16249
|
+
loginCommand: optional(String$1),
|
|
16250
|
+
sessionLost: optional(Boolean$1)
|
|
15244
16251
|
}),
|
|
15245
16252
|
Struct({ type: Literal2("turn_limited"), limit: UsageLimit })
|
|
15246
16253
|
]);
|
|
15247
16254
|
const RUN_AGENT_TOOL = "run_agent";
|
|
15248
16255
|
const WAIT_AGENT_TOOL = "wait_agent";
|
|
15249
|
-
const isRunAgentTool = (name) => name === RUN_AGENT_TOOL
|
|
16256
|
+
const isRunAgentTool = (name) => ownToolName(name) === RUN_AGENT_TOOL;
|
|
15250
16257
|
const PUBLISH_ARTIFACT_TOOL = "publish_artifact";
|
|
15251
16258
|
const PUBLISH_DOCUMENT_TOOL = "publish_document";
|
|
15252
|
-
const
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
16259
|
+
const PUBLISH_WHITEBOARD_TOOL = "publish_whiteboard";
|
|
16260
|
+
const kindOfPublishTool = /* @__PURE__ */ new Map([
|
|
16261
|
+
[PUBLISH_ARTIFACT_TOOL, "page"],
|
|
16262
|
+
[PUBLISH_DOCUMENT_TOOL, "document"],
|
|
16263
|
+
[PUBLISH_WHITEBOARD_TOOL, "whiteboard"]
|
|
16264
|
+
]);
|
|
16265
|
+
const publishedKind = (name) => kindOfPublishTool.get(ownToolName(name)) ?? null;
|
|
16266
|
+
const isPublishArtifactTool = (name) => publishedKind(name) !== null;
|
|
16267
|
+
const isPublishDocumentTool = (name) => publishedKind(name) === "document";
|
|
15257
16268
|
const publishedArtifact = (result2) => {
|
|
15258
|
-
const [, id,
|
|
15259
|
-
return id === void 0 ? null : { id, version: Number(
|
|
16269
|
+
const [, id, version2] = /^Published (?:artifact|document|whiteboard) ([a-z0-9][a-z0-9-]*) version (\d+)/.exec(result2) ?? [];
|
|
16270
|
+
return id === void 0 ? null : { id, version: Number(version2) };
|
|
15260
16271
|
};
|
|
15261
16272
|
const publishedArtifactId = (result2) => publishedArtifact(result2)?.id ?? null;
|
|
15262
16273
|
const textOfBlock = (block) => typeof block === "object" && block !== null && Reflect.get(block, "type") === "text" ? String(Reflect.get(block, "text")) : "";
|
|
15263
|
-
const
|
|
16274
|
+
const outputBlocks = (output) => isObject(output) && Array.isArray(Reflect.get(output, "content")) ? Reflect.get(output, "content") : output;
|
|
16275
|
+
const outputText = (output) => {
|
|
16276
|
+
const blocks = outputBlocks(output);
|
|
16277
|
+
return typeof blocks === "string" ? blocks : Array.isArray(blocks) ? blocks.map(textOfBlock).filter(Boolean).join("\n") : JSON.stringify(blocks);
|
|
16278
|
+
};
|
|
15264
16279
|
const toolArgument = (input, key) => {
|
|
15265
16280
|
if (!isObject(input)) return void 0;
|
|
15266
16281
|
const record2 = input;
|
|
@@ -15383,6 +16398,11 @@ const DeviceFrame = Struct({
|
|
|
15383
16398
|
screen: optionalKey(Struct({ width: Number$1, height: Number$1 })),
|
|
15384
16399
|
unfolded: optionalKey(Struct({ width: Number$1, height: Number$1 }))
|
|
15385
16400
|
});
|
|
16401
|
+
const shownScreen = (frame, screen) => {
|
|
16402
|
+
const { width, height } = frame.screen ?? screen;
|
|
16403
|
+
const wide = frame.orientation === "landscape";
|
|
16404
|
+
return wide === width > height ? { width, height } : { width: height, height: width };
|
|
16405
|
+
};
|
|
15386
16406
|
const DeviceElement = Struct({
|
|
15387
16407
|
role: String$1.check(isMaxLength(100)),
|
|
15388
16408
|
label: String$1.check(isMaxLength(500)),
|
|
@@ -15468,7 +16488,6 @@ const RelayHost = Struct({
|
|
|
15468
16488
|
published: Boolean$1
|
|
15469
16489
|
});
|
|
15470
16490
|
const RelayHostList = Struct({ hosts: ArraySchema(RelayHost) });
|
|
15471
|
-
const PendingLink = Struct({ name: String$1, environmentId: String$1 });
|
|
15472
16491
|
const Timestamp = String$1;
|
|
15473
16492
|
const ProjectKind = Literals(["folder", "chats"]);
|
|
15474
16493
|
const ProjectAction = Struct({ name: String$1, command: String$1 });
|
|
@@ -15485,6 +16504,7 @@ const Project = Struct({
|
|
|
15485
16504
|
kind: ProjectKind.pipe(withDecodingDefaultKey(succeed$3("folder"))),
|
|
15486
16505
|
actions: ArraySchema(ProjectAction).pipe(withDecodingDefaultKey(succeed$3([])))
|
|
15487
16506
|
});
|
|
16507
|
+
const CloneProgress = Struct({ phase: String$1, percent: Number$1 });
|
|
15488
16508
|
const chatFolder = (chatsRoot, threadId) => `${chatsRoot.replace(/[\\/]+$/, "")}${chatsRoot.includes("\\") ? "\\" : "/"}${threadId}`;
|
|
15489
16509
|
const WorktreeStatus = Literals(["preparing", "ready", "failed", "removed"]);
|
|
15490
16510
|
const SetupNotice = Literals(["backgroundOutput", "timedOut"]);
|
|
@@ -15574,7 +16594,8 @@ const PullRequest = Struct({
|
|
|
15574
16594
|
headRefName: String$1,
|
|
15575
16595
|
baseRefName: String$1,
|
|
15576
16596
|
additions: Number$1,
|
|
15577
|
-
deletions: Number$1
|
|
16597
|
+
deletions: Number$1,
|
|
16598
|
+
mergedAt: optional(NullOr(String$1))
|
|
15578
16599
|
});
|
|
15579
16600
|
const CheckRunStatus = Literals(["passing", "failing", "pending", "skipped"]);
|
|
15580
16601
|
const CheckRun = Struct({
|
|
@@ -15611,6 +16632,19 @@ const LineComment = Struct({
|
|
|
15611
16632
|
code: String$1,
|
|
15612
16633
|
body: String$1
|
|
15613
16634
|
});
|
|
16635
|
+
const PullRequestLabel = Struct({ name: String$1, color: String$1 });
|
|
16636
|
+
const ReviewerState = Literals(["requested", "approved", "changesRequested", "commented"]);
|
|
16637
|
+
const PullRequestReviewer = Struct({ login: String$1, state: ReviewerState });
|
|
16638
|
+
const PullRequestEditField = Literals(["labels", "assignees", "reviewers"]);
|
|
16639
|
+
const PullRequestEdit = Struct({
|
|
16640
|
+
field: PullRequestEditField,
|
|
16641
|
+
add: ArraySchema(String$1.check(isNonEmpty())),
|
|
16642
|
+
remove: ArraySchema(String$1.check(isNonEmpty()))
|
|
16643
|
+
});
|
|
16644
|
+
const PullRequestCandidates = Struct({
|
|
16645
|
+
labels: ArraySchema(PullRequestLabel),
|
|
16646
|
+
users: ArraySchema(String$1)
|
|
16647
|
+
});
|
|
15614
16648
|
const PullRequestDetail = Struct({
|
|
15615
16649
|
...PullRequest.fields,
|
|
15616
16650
|
body: String$1,
|
|
@@ -15619,7 +16653,10 @@ const PullRequestDetail = Struct({
|
|
|
15619
16653
|
head: String$1,
|
|
15620
16654
|
checkRuns: ArraySchema(CheckRun),
|
|
15621
16655
|
changedFiles: Number$1.pipe(withDecodingDefaultKey(succeed$3(0))),
|
|
15622
|
-
comments: ArraySchema(PullRequestComment).pipe(withDecodingDefaultKey(succeed$3([])))
|
|
16656
|
+
comments: ArraySchema(PullRequestComment).pipe(withDecodingDefaultKey(succeed$3([]))),
|
|
16657
|
+
labels: ArraySchema(PullRequestLabel).pipe(withDecodingDefaultKey(succeed$3([]))),
|
|
16658
|
+
assignees: ArraySchema(String$1).pipe(withDecodingDefaultKey(succeed$3([]))),
|
|
16659
|
+
reviewers: ArraySchema(PullRequestReviewer).pipe(withDecodingDefaultKey(succeed$3([])))
|
|
15623
16660
|
});
|
|
15624
16661
|
const PullRequestFileStatus = Literals(["added", "removed", "modified", "renamed", "copied"]);
|
|
15625
16662
|
const PullRequestFile = Struct({
|
|
@@ -15759,7 +16796,6 @@ const Thread = Struct({
|
|
|
15759
16796
|
model: String$1,
|
|
15760
16797
|
effort: NullOr(String$1),
|
|
15761
16798
|
fastMode: Boolean$1,
|
|
15762
|
-
userSkills: Boolean$1.pipe(withDecodingDefaultKey(succeed$3(true))),
|
|
15763
16799
|
accessMode: AccessMode,
|
|
15764
16800
|
accountId: NullOr(String$1),
|
|
15765
16801
|
providerSessionId: NullOr(String$1),
|
|
@@ -15771,6 +16807,7 @@ const Thread = Struct({
|
|
|
15771
16807
|
sortIndex: Number$1,
|
|
15772
16808
|
pinnedAt: NullOr(Timestamp),
|
|
15773
16809
|
snoozedUntil: NullOr(Timestamp).pipe(withDecodingDefaultKey(succeed$3(null))),
|
|
16810
|
+
settledAt: NullOr(Timestamp).pipe(withDecodingDefaultKey(succeed$3(null))),
|
|
15774
16811
|
queue: ArraySchema(QueuedMessage),
|
|
15775
16812
|
scheduled: ArraySchema(ScheduledMessage).pipe(withDecodingDefaultKey(succeed$3([]))),
|
|
15776
16813
|
createdBy: String$1,
|
|
@@ -15795,7 +16832,11 @@ const MessagePart = Union2([
|
|
|
15795
16832
|
Struct({ type: Literal2("questions"), text: String$1, questions: ArraySchema(Question) }),
|
|
15796
16833
|
Struct({ type: Literal2("compaction"), compaction: Compaction }),
|
|
15797
16834
|
Struct({ type: Literal2("agent_switch"), from: ProviderId, to: ProviderId }),
|
|
15798
|
-
Struct({
|
|
16835
|
+
Struct({
|
|
16836
|
+
type: Literal2("signed_out"),
|
|
16837
|
+
message: String$1,
|
|
16838
|
+
loginCommand: optional(String$1)
|
|
16839
|
+
}),
|
|
15799
16840
|
Struct({
|
|
15800
16841
|
type: Literal2("session_import"),
|
|
15801
16842
|
provider: AccountProviderId,
|
|
@@ -15849,9 +16890,13 @@ const NotificationSettings = Struct({
|
|
|
15849
16890
|
});
|
|
15850
16891
|
const NotificationPermission = Literals(["granted", "denied", "notDetermined", "unknown"]);
|
|
15851
16892
|
const PermissionRequestOutcome = Literals(["shown", "refused", "noAnswer"]);
|
|
16893
|
+
const DAYS_RANGE = { minimum: 1, maximum: 365 };
|
|
16894
|
+
const Days = NullOr(Int.check(isBetween(DAYS_RANGE)));
|
|
15852
16895
|
const ArchiveSettings = Struct({
|
|
15853
16896
|
whenMerged: Boolean$1,
|
|
15854
|
-
removeWorktree: Boolean$1
|
|
16897
|
+
removeWorktree: Boolean$1,
|
|
16898
|
+
settleAfterIdleDays: Days.pipe(withDecodingDefaultKey(succeed$3(7))),
|
|
16899
|
+
archiveAfterSettledDays: Days.pipe(withDecodingDefaultKey(succeed$3(null)))
|
|
15855
16900
|
});
|
|
15856
16901
|
const VmProvider = Literals(["sbx", "boat"]);
|
|
15857
16902
|
const BoatVmSize = Literals(["small", "default", "large", "xlarge"]);
|
|
@@ -15888,6 +16933,14 @@ const SidebarGroups = Struct({
|
|
|
15888
16933
|
groups: ArraySchema(SidebarGroup),
|
|
15889
16934
|
groupOf: Record(String$1, String$1)
|
|
15890
16935
|
});
|
|
16936
|
+
const applySettingsPatch = (current, patch) => {
|
|
16937
|
+
const merged = Object.entries(patch).map(([key, value2]) => {
|
|
16938
|
+
const group = current[key];
|
|
16939
|
+
const isGroup = isObject(group) && !Array.isArray(group) && isObject(value2);
|
|
16940
|
+
return [key, isGroup ? { ...group, ...value2 } : value2];
|
|
16941
|
+
});
|
|
16942
|
+
return { ...current, ...Object.fromEntries(merged.filter(([, value2]) => value2 !== void 0)) };
|
|
16943
|
+
};
|
|
15891
16944
|
const ClientSettings = Struct({
|
|
15892
16945
|
locale: Locale,
|
|
15893
16946
|
openWith: NullOr(OpenerId),
|
|
@@ -15911,16 +16964,18 @@ const BindHost = String$1.check(isPattern(/^(?!(?:0\.0\.0\.0|::|::0|\[::\])$)\S+
|
|
|
15911
16964
|
const ListenPort = Int.check(isBetween({ minimum: 1, maximum: 65535 }));
|
|
15912
16965
|
const perProvider = (value2, fallback) => {
|
|
15913
16966
|
const field = value2.pipe(withDecodingDefaultKey(succeed$3(fallback)));
|
|
15914
|
-
return Struct({ claude: field, codex: field, muse: field, opencode: field });
|
|
16967
|
+
return Struct({ claude: field, codex: field, muse: field, opencode: field, magpie: field });
|
|
15915
16968
|
};
|
|
15916
16969
|
const eachProvider = (value2) => ({
|
|
15917
16970
|
claude: value2,
|
|
15918
16971
|
codex: value2,
|
|
15919
16972
|
muse: value2,
|
|
15920
|
-
opencode: value2
|
|
16973
|
+
opencode: value2,
|
|
16974
|
+
magpie: value2
|
|
15921
16975
|
});
|
|
15922
16976
|
const Settings = Struct({
|
|
15923
16977
|
defaultProvider: ProviderId,
|
|
16978
|
+
providerEnabled: perProvider(Boolean$1, true),
|
|
15924
16979
|
defaultModel: perProvider(NullOr(String$1), null),
|
|
15925
16980
|
defaultEffort: perProvider(NullOr(String$1), null),
|
|
15926
16981
|
defaultFastMode: perProvider(Boolean$1, false),
|
|
@@ -15933,7 +16988,12 @@ const Settings = Struct({
|
|
|
15933
16988
|
autoCompactTokens: perProvider(NullOr(AutoCompactTokens), null).pipe(
|
|
15934
16989
|
withDecodingDefaultKey(succeed$3(eachProvider(null)))
|
|
15935
16990
|
),
|
|
15936
|
-
|
|
16991
|
+
providerBinary: perProvider(NullOr(AgentBinary), null).pipe(
|
|
16992
|
+
withDecodingDefaultKey(succeed$3(eachProvider(null)))
|
|
16993
|
+
),
|
|
16994
|
+
routines: Struct({ bindHost: BindHost, port: ListenPort }).pipe(
|
|
16995
|
+
withDecodingDefaultKey(succeed$3({ bindHost: "127.0.0.1", port: 48080 }))
|
|
16996
|
+
),
|
|
15937
16997
|
remote: Struct({ enabled: Boolean$1, bindHost: BindHost, port: ListenPort }),
|
|
15938
16998
|
textGenerationModel: String$1,
|
|
15939
16999
|
pullRequestGuide: Struct({
|
|
@@ -15945,10 +17005,19 @@ const Settings = Struct({
|
|
|
15945
17005
|
archive: ArchiveSettings,
|
|
15946
17006
|
experimental: ExperimentalSettings,
|
|
15947
17007
|
worktreeRoot: NullOr(String$1.check(isPattern(/^\//))),
|
|
15948
|
-
actions: ArraySchema(ProjectAction).pipe(withDecodingDefaultKey(succeed$3([])))
|
|
17008
|
+
actions: ArraySchema(ProjectAction).pipe(withDecodingDefaultKey(succeed$3([]))),
|
|
17009
|
+
magpieEndpoint: NullOr(String$1.check(isPattern(/^https?:\/\/\S+$/))).pipe(
|
|
17010
|
+
withDecodingDefaultKey(succeed$3(null))
|
|
17011
|
+
)
|
|
15949
17012
|
});
|
|
17013
|
+
const enabledProviders = (settings, installed) => ProviderId.literals.filter((provider) => settings.providerEnabled[provider] && installed?.[provider] !== false);
|
|
17014
|
+
const startingProvider = (settings, installed) => {
|
|
17015
|
+
const enabled = enabledProviders(settings, installed);
|
|
17016
|
+
return enabled.includes(settings.defaultProvider) ? settings.defaultProvider : enabled[0] ?? settings.defaultProvider;
|
|
17017
|
+
};
|
|
15950
17018
|
const defaultSettings = {
|
|
15951
17019
|
defaultProvider: "claude",
|
|
17020
|
+
providerEnabled: eachProvider(true),
|
|
15952
17021
|
defaultModel: eachProvider(null),
|
|
15953
17022
|
defaultEffort: eachProvider(null),
|
|
15954
17023
|
defaultFastMode: eachProvider(false),
|
|
@@ -15957,12 +17026,13 @@ const defaultSettings = {
|
|
|
15957
17026
|
defaultAccount: eachProvider(null),
|
|
15958
17027
|
defaultAccountName: eachProvider(null),
|
|
15959
17028
|
autoCompactTokens: eachProvider(null),
|
|
15960
|
-
|
|
17029
|
+
providerBinary: eachProvider(null),
|
|
17030
|
+
routines: { bindHost: "127.0.0.1", port: 48080 },
|
|
15961
17031
|
remote: { enabled: false, bindHost: PRIVATE_NETWORKS, port: 48081 },
|
|
15962
17032
|
textGenerationModel: "claude-sonnet-5-5",
|
|
15963
17033
|
pullRequestGuide: { enabled: false, model: "claude-sonnet-5-5", effort: "high" },
|
|
15964
17034
|
defaultAccessMode: "full",
|
|
15965
|
-
archive: { whenMerged:
|
|
17035
|
+
archive: { whenMerged: true, removeWorktree: false, settleAfterIdleDays: 7, archiveAfterSettledDays: null },
|
|
15966
17036
|
experimental: {
|
|
15967
17037
|
tinyVm: false,
|
|
15968
17038
|
tinyVmProvider: "boat",
|
|
@@ -15974,7 +17044,8 @@ const defaultSettings = {
|
|
|
15974
17044
|
tinyVmSetupScript: ""
|
|
15975
17045
|
},
|
|
15976
17046
|
worktreeRoot: null,
|
|
15977
|
-
actions: []
|
|
17047
|
+
actions: [],
|
|
17048
|
+
magpieEndpoint: null
|
|
15978
17049
|
};
|
|
15979
17050
|
const Machine = Struct({
|
|
15980
17051
|
id: String$1,
|
|
@@ -15996,6 +17067,9 @@ const RelayAccountStatus = Union2([
|
|
|
15996
17067
|
state: Literal2("signedIn"),
|
|
15997
17068
|
serviceUrl: String$1,
|
|
15998
17069
|
environmentId: String$1,
|
|
17070
|
+
name: NullOr(String$1),
|
|
17071
|
+
email: NullOr(String$1),
|
|
17072
|
+
avatar: NullOr(String$1),
|
|
15999
17073
|
machines: Int,
|
|
16000
17074
|
syncedAt: NullOr(Timestamp),
|
|
16001
17075
|
error: NullOr(String$1)
|
|
@@ -16067,14 +17141,7 @@ const WatchEventKind = Literals([
|
|
|
16067
17141
|
"mergedOrClosed",
|
|
16068
17142
|
"commented"
|
|
16069
17143
|
]);
|
|
16070
|
-
const allWatchEventKinds =
|
|
16071
|
-
"checksFailed",
|
|
16072
|
-
"checksPassed",
|
|
16073
|
-
"reviewChanged",
|
|
16074
|
-
"conflicting",
|
|
16075
|
-
"mergedOrClosed",
|
|
16076
|
-
"commented"
|
|
16077
|
-
];
|
|
17144
|
+
const allWatchEventKinds = WatchEventKind.literals;
|
|
16078
17145
|
const PullRequestWatchSnapshot = Struct({
|
|
16079
17146
|
status: PullRequestStatus,
|
|
16080
17147
|
checks: NullOr(ChecksStatus),
|
|
@@ -16123,7 +17190,9 @@ const TerminalSession = Struct({
|
|
|
16123
17190
|
rows: Number$1,
|
|
16124
17191
|
status: Literals(["running", "exited"]),
|
|
16125
17192
|
exitCode: NullOr(Number$1),
|
|
16126
|
-
title: NullOr(String$1).pipe(withDecodingDefaultKey(succeed$3(null)))
|
|
17193
|
+
title: NullOr(String$1).pipe(withDecodingDefaultKey(succeed$3(null))),
|
|
17194
|
+
command: NullOr(String$1).pipe(withDecodingDefaultKey(succeed$3(null))),
|
|
17195
|
+
lastExitCode: NullOr(Number$1).pipe(withDecodingDefaultKey(succeed$3(null)))
|
|
16127
17196
|
});
|
|
16128
17197
|
const TerminalOffset = Int.check(isGreaterThanOrEqualTo(0));
|
|
16129
17198
|
const TerminalAttachment = Struct({
|
|
@@ -16131,49 +17200,44 @@ const TerminalAttachment = Struct({
|
|
|
16131
17200
|
offset: TerminalOffset,
|
|
16132
17201
|
data: String$1
|
|
16133
17202
|
});
|
|
16134
|
-
const
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
}
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
})
|
|
16152
|
-
]);
|
|
16153
|
-
const AutomationRunStatus = Literals(["started", "skipped", "failed"]);
|
|
16154
|
-
const AutomationRun = Struct({
|
|
17203
|
+
const everMatches = (cron) => {
|
|
17204
|
+
try {
|
|
17205
|
+
next(cron);
|
|
17206
|
+
return true;
|
|
17207
|
+
} catch {
|
|
17208
|
+
return false;
|
|
17209
|
+
}
|
|
17210
|
+
};
|
|
17211
|
+
const isCronExpression = (cron, timezone) => match$4(parse(cron, timezone), { onFailure: () => false, onSuccess: everMatches });
|
|
17212
|
+
const RoutineSchedule = Struct({
|
|
17213
|
+
cron: String$1,
|
|
17214
|
+
timezone: String$1
|
|
17215
|
+
}).check(makeFilter(({ cron, timezone }) => isCronExpression(cron, timezone) || `Invalid schedule "${cron}"`));
|
|
17216
|
+
const RoutineWorkspace = Literals(["local", "worktree"]);
|
|
17217
|
+
const RoutineRunSource = Literals(["schedule", "webhook", "manual"]);
|
|
17218
|
+
const RoutineRunStatus = Literals(["started", "skipped", "failed"]);
|
|
17219
|
+
const RoutineRun = Struct({
|
|
16155
17220
|
id: String$1,
|
|
16156
|
-
|
|
17221
|
+
routineId: String$1,
|
|
16157
17222
|
threadId: NullOr(String$1),
|
|
16158
|
-
|
|
16159
|
-
status:
|
|
17223
|
+
source: RoutineRunSource,
|
|
17224
|
+
status: RoutineRunStatus,
|
|
16160
17225
|
error: NullOr(String$1),
|
|
16161
17226
|
createdAt: Timestamp
|
|
16162
17227
|
});
|
|
16163
|
-
const
|
|
17228
|
+
const Routine = Struct({
|
|
16164
17229
|
id: String$1,
|
|
16165
17230
|
projectId: String$1,
|
|
16166
17231
|
name: String$1,
|
|
16167
17232
|
enabled: Boolean$1,
|
|
16168
|
-
|
|
16169
|
-
promptTemplate: String$1,
|
|
17233
|
+
prompt: String$1,
|
|
16170
17234
|
provider: ProviderId,
|
|
16171
17235
|
model: String$1,
|
|
16172
|
-
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
lastRun: NullOr(
|
|
17236
|
+
effort: NullOr(String$1),
|
|
17237
|
+
workspace: RoutineWorkspace,
|
|
17238
|
+
schedule: NullOr(RoutineSchedule),
|
|
17239
|
+
nextRunAt: NullOr(Timestamp),
|
|
17240
|
+
lastRun: NullOr(RoutineRun),
|
|
16177
17241
|
createdAt: Timestamp,
|
|
16178
17242
|
updatedAt: Timestamp
|
|
16179
17243
|
});
|
|
@@ -16244,6 +17308,18 @@ const RemotePairing = Struct({
|
|
|
16244
17308
|
token: String$1,
|
|
16245
17309
|
relay: NullOr(String$1)
|
|
16246
17310
|
});
|
|
17311
|
+
const AppConnection = Struct({
|
|
17312
|
+
id: String$1,
|
|
17313
|
+
name: String$1,
|
|
17314
|
+
createdAt: Timestamp,
|
|
17315
|
+
lastUsedAt: NullOr(Timestamp)
|
|
17316
|
+
});
|
|
17317
|
+
const AppConnectionsStatus = Struct({
|
|
17318
|
+
url: NullOr(String$1),
|
|
17319
|
+
waitingUntil: NullOr(Timestamp),
|
|
17320
|
+
requests: ArraySchema(Struct({ id: String$1, name: String$1, redirectHost: String$1 })),
|
|
17321
|
+
connections: ArraySchema(AppConnection)
|
|
17322
|
+
});
|
|
16247
17323
|
const MAX_SOCKET_PATH_BYTES = 103;
|
|
16248
17324
|
const cliSocketPath = (dataDir, runtimeDir = join$1(tmpdir(), `hinacode-${userInfo().uid}`)) => {
|
|
16249
17325
|
const beside = join$1(dataDir, "run", "cli.sock");
|
|
@@ -18348,7 +19424,7 @@ function requireExtension() {
|
|
|
18348
19424
|
if (dest[name] === void 0) dest[name] = [elem];
|
|
18349
19425
|
else dest[name].push(elem);
|
|
18350
19426
|
}
|
|
18351
|
-
function
|
|
19427
|
+
function parse2(header) {
|
|
18352
19428
|
const offers = /* @__PURE__ */ Object.create(null);
|
|
18353
19429
|
let params = /* @__PURE__ */ Object.create(null);
|
|
18354
19430
|
let mustUnescape = false;
|
|
@@ -18488,7 +19564,7 @@ function requireExtension() {
|
|
|
18488
19564
|
}).join(", ");
|
|
18489
19565
|
}).join(", ");
|
|
18490
19566
|
}
|
|
18491
|
-
extension = { format: format2, parse };
|
|
19567
|
+
extension = { format: format2, parse: parse2 };
|
|
18492
19568
|
return extension;
|
|
18493
19569
|
}
|
|
18494
19570
|
var websocket;
|
|
@@ -18522,7 +19598,7 @@ function requireWebsocket() {
|
|
|
18522
19598
|
const {
|
|
18523
19599
|
EventTarget: { addEventListener, removeEventListener }
|
|
18524
19600
|
} = requireEventTarget();
|
|
18525
|
-
const { format: format2, parse } = requireExtension();
|
|
19601
|
+
const { format: format2, parse: parse2 } = requireExtension();
|
|
18526
19602
|
const { toBuffer } = requireBufferUtil();
|
|
18527
19603
|
const kAborted = /* @__PURE__ */ Symbol("kAborted");
|
|
18528
19604
|
const protocolVersions = [8, 13];
|
|
@@ -19212,7 +20288,7 @@ function requireWebsocket() {
|
|
|
19212
20288
|
}
|
|
19213
20289
|
let extensions;
|
|
19214
20290
|
try {
|
|
19215
|
-
extensions =
|
|
20291
|
+
extensions = parse2(secWebSocketExtensions);
|
|
19216
20292
|
} catch (err) {
|
|
19217
20293
|
const message = "Invalid Sec-WebSocket-Extensions header";
|
|
19218
20294
|
abortHandshake(websocket2, socket, message);
|
|
@@ -19509,7 +20585,7 @@ function requireSubprotocol() {
|
|
|
19509
20585
|
if (hasRequiredSubprotocol) return subprotocol;
|
|
19510
20586
|
hasRequiredSubprotocol = 1;
|
|
19511
20587
|
const { tokenChars } = requireValidation();
|
|
19512
|
-
function
|
|
20588
|
+
function parse2(header) {
|
|
19513
20589
|
const protocols = /* @__PURE__ */ new Set();
|
|
19514
20590
|
let start = -1;
|
|
19515
20591
|
let end2 = -1;
|
|
@@ -19545,7 +20621,7 @@ function requireSubprotocol() {
|
|
|
19545
20621
|
protocols.add(protocol);
|
|
19546
20622
|
return protocols;
|
|
19547
20623
|
}
|
|
19548
|
-
subprotocol = { parse };
|
|
20624
|
+
subprotocol = { parse: parse2 };
|
|
19549
20625
|
return subprotocol;
|
|
19550
20626
|
}
|
|
19551
20627
|
requireSubprotocol();
|
|
@@ -19760,7 +20836,7 @@ function requireWebsocketServer() {
|
|
|
19760
20836
|
socket.on("error", socketOnError);
|
|
19761
20837
|
const key = req.headers["sec-websocket-key"];
|
|
19762
20838
|
const upgrade = req.headers.upgrade;
|
|
19763
|
-
const
|
|
20839
|
+
const version2 = +req.headers["sec-websocket-version"];
|
|
19764
20840
|
if (req.method !== "GET") {
|
|
19765
20841
|
const message = "Invalid HTTP method";
|
|
19766
20842
|
abortHandshakeOrEmitwsClientError(this, req, socket, 405, message);
|
|
@@ -19776,7 +20852,7 @@ function requireWebsocketServer() {
|
|
|
19776
20852
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
19777
20853
|
return;
|
|
19778
20854
|
}
|
|
19779
|
-
if (
|
|
20855
|
+
if (version2 !== 13 && version2 !== 8) {
|
|
19780
20856
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
19781
20857
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
|
|
19782
20858
|
"Sec-WebSocket-Version": "13, 8"
|
|
@@ -19820,7 +20896,7 @@ function requireWebsocketServer() {
|
|
|
19820
20896
|
}
|
|
19821
20897
|
if (this.options.verifyClient) {
|
|
19822
20898
|
const info = {
|
|
19823
|
-
origin: req.headers[`${
|
|
20899
|
+
origin: req.headers[`${version2 === 8 ? "sec-websocket-origin" : "origin"}`],
|
|
19824
20900
|
secure: !!(req.socket.authorized || req.socket.encrypted),
|
|
19825
20901
|
req
|
|
19826
20902
|
};
|
|
@@ -19955,7 +21031,7 @@ function requireWebsocketServer() {
|
|
|
19955
21031
|
var websocketServerExports = requireWebsocketServer();
|
|
19956
21032
|
const WebSocketServer = /* @__PURE__ */ getDefaultExportFromCjs(websocketServerExports);
|
|
19957
21033
|
const ArtifactFile = Struct({ path: String$1, type: String$1, size: Number$1 });
|
|
19958
|
-
const ArtifactKind = Literals(["page", "document"]);
|
|
21034
|
+
const ArtifactKind = Literals(["page", "document", "whiteboard"]);
|
|
19959
21035
|
const Artifact = Struct({
|
|
19960
21036
|
id: String$1,
|
|
19961
21037
|
kind: optionalKey(ArtifactKind),
|
|
@@ -19998,6 +21074,58 @@ const DocumentSaveResult = Union2([
|
|
|
19998
21074
|
markdown: String$1
|
|
19999
21075
|
})
|
|
20000
21076
|
]);
|
|
21077
|
+
const WhiteboardElement = StructWithRest(Struct({ id: String$1 }), [
|
|
21078
|
+
Record(String$1, Unknown2)
|
|
21079
|
+
]);
|
|
21080
|
+
const WhiteboardScene = Struct({
|
|
21081
|
+
elements: ArraySchema(WhiteboardElement),
|
|
21082
|
+
files: optionalKey(Record(String$1, Unknown2))
|
|
21083
|
+
});
|
|
21084
|
+
const WhiteboardContent = Struct({
|
|
21085
|
+
version: Number$1,
|
|
21086
|
+
revision: Number$1,
|
|
21087
|
+
scene: WhiteboardScene
|
|
21088
|
+
});
|
|
21089
|
+
const WhiteboardSaveResult = Union2([
|
|
21090
|
+
Struct({ type: Literal2("saved"), version: Number$1, revision: Number$1 }),
|
|
21091
|
+
Struct({
|
|
21092
|
+
type: Literal2("conflict"),
|
|
21093
|
+
version: Number$1,
|
|
21094
|
+
revision: Number$1,
|
|
21095
|
+
scene: WhiteboardScene
|
|
21096
|
+
})
|
|
21097
|
+
]);
|
|
21098
|
+
const CommentAuthor = Union2([
|
|
21099
|
+
Struct({ kind: Literal2("developer") }),
|
|
21100
|
+
Struct({ kind: Literal2("agent"), threadId: optionalKey(String$1) })
|
|
21101
|
+
]);
|
|
21102
|
+
const CommentMessage = Struct({
|
|
21103
|
+
id: String$1,
|
|
21104
|
+
author: CommentAuthor,
|
|
21105
|
+
body: String$1,
|
|
21106
|
+
createdAt: String$1
|
|
21107
|
+
});
|
|
21108
|
+
const CommentAnchor = Union2([
|
|
21109
|
+
Struct({ kind: Literal2("artifact") }),
|
|
21110
|
+
Struct({
|
|
21111
|
+
kind: Literal2("text"),
|
|
21112
|
+
quote: NonEmptyString,
|
|
21113
|
+
prefix: String$1,
|
|
21114
|
+
suffix: String$1
|
|
21115
|
+
}),
|
|
21116
|
+
Struct({ kind: Literal2("elements"), ids: ArraySchema(String$1).check(isMinLength(1)) })
|
|
21117
|
+
]);
|
|
21118
|
+
const ArtifactComment = Struct({
|
|
21119
|
+
id: String$1,
|
|
21120
|
+
anchor: CommentAnchor,
|
|
21121
|
+
resolved: Boolean$1,
|
|
21122
|
+
messages: NonEmptyArray(CommentMessage),
|
|
21123
|
+
createdAt: String$1,
|
|
21124
|
+
updatedAt: String$1
|
|
21125
|
+
});
|
|
21126
|
+
const ArtifactFeedback = Struct({
|
|
21127
|
+
comments: ArraySchema(ArtifactComment)
|
|
21128
|
+
});
|
|
20001
21129
|
const THEME_TOKENS = [
|
|
20002
21130
|
"--background",
|
|
20003
21131
|
"--foreground",
|
|
@@ -20092,18 +21220,28 @@ const PagePick = Struct({
|
|
|
20092
21220
|
element: PickedElement,
|
|
20093
21221
|
rect: Struct({ x: Number$1, y: Number$1, width: Number$1, height: Number$1 })
|
|
20094
21222
|
});
|
|
20095
|
-
const
|
|
21223
|
+
const RoutineInput = Struct({
|
|
20096
21224
|
projectId: String$1,
|
|
20097
21225
|
name: String$1,
|
|
20098
21226
|
enabled: Boolean$1,
|
|
20099
|
-
|
|
20100
|
-
promptTemplate: String$1,
|
|
21227
|
+
prompt: String$1,
|
|
20101
21228
|
provider: ProviderId,
|
|
20102
21229
|
model: String$1,
|
|
20103
|
-
|
|
20104
|
-
|
|
21230
|
+
effort: NullOr(String$1),
|
|
21231
|
+
workspace: RoutineWorkspace,
|
|
21232
|
+
schedule: NullOr(RoutineSchedule)
|
|
20105
21233
|
});
|
|
20106
21234
|
const TerminalSize = Int.check(isBetween({ minimum: 1, maximum: 1e3 }));
|
|
21235
|
+
const groupPatch = (field) => {
|
|
21236
|
+
const group = hasProperty(field, "to") && isSchema(field.to) ? field.to : field;
|
|
21237
|
+
if (!hasProperty(group, "fields")) return field;
|
|
21238
|
+
return Struct(group.fields).mapFields(map(optional));
|
|
21239
|
+
};
|
|
21240
|
+
const settingsPatch = (settings) => Struct(
|
|
21241
|
+
Object.fromEntries(
|
|
21242
|
+
Object.entries(settings.fields).map(([key, field]) => [key, optional(groupPatch(field))])
|
|
21243
|
+
)
|
|
21244
|
+
);
|
|
20107
21245
|
const rpc = (request2, response) => ({ request: request2, response });
|
|
20108
21246
|
const RpcMethods = {
|
|
20109
21247
|
"devices.list": rpc(Struct({ threadId: String$1 }), DeviceHost),
|
|
@@ -20115,6 +21253,7 @@ const RpcMethods = {
|
|
|
20115
21253
|
),
|
|
20116
21254
|
"device.detach": rpc(Struct({ threadId: String$1, deviceId: NullOr(DeviceId) }), Void2),
|
|
20117
21255
|
"device.delete": rpc(Struct({ threadId: String$1, deviceId: DeviceId }), Void2),
|
|
21256
|
+
"device.shutdown": rpc(Struct({ threadId: String$1, deviceId: DeviceId }), Void2),
|
|
20118
21257
|
"device.frame": rpc(
|
|
20119
21258
|
Struct({
|
|
20120
21259
|
threadId: String$1,
|
|
@@ -20187,6 +21326,7 @@ const RpcMethods = {
|
|
|
20187
21326
|
),
|
|
20188
21327
|
"projects.clone": rpc(
|
|
20189
21328
|
Struct({
|
|
21329
|
+
cloneId: String$1,
|
|
20190
21330
|
repository: GitHubRepository,
|
|
20191
21331
|
rootPath: String$1,
|
|
20192
21332
|
name: String$1,
|
|
@@ -20194,6 +21334,7 @@ const RpcMethods = {
|
|
|
20194
21334
|
}),
|
|
20195
21335
|
Project
|
|
20196
21336
|
),
|
|
21337
|
+
"projects.cancelClone": rpc(Struct({ cloneId: String$1 }), Void2),
|
|
20197
21338
|
"projects.update": rpc(
|
|
20198
21339
|
Struct({
|
|
20199
21340
|
id: String$1,
|
|
@@ -20214,6 +21355,7 @@ const RpcMethods = {
|
|
|
20214
21355
|
provider: optional(ProviderId),
|
|
20215
21356
|
model: optional(String$1),
|
|
20216
21357
|
effort: optional(String$1),
|
|
21358
|
+
accessMode: optional(AccessMode),
|
|
20217
21359
|
worktree: optional(Struct({ branch: String$1, baseRef: String$1 })),
|
|
20218
21360
|
createdBy: optional(String$1)
|
|
20219
21361
|
}),
|
|
@@ -20228,7 +21370,6 @@ const RpcMethods = {
|
|
|
20228
21370
|
model: optional(String$1),
|
|
20229
21371
|
effort: optional(NullOr(String$1)),
|
|
20230
21372
|
fastMode: optional(Boolean$1),
|
|
20231
|
-
userSkills: optional(Boolean$1),
|
|
20232
21373
|
accessMode: optional(AccessMode),
|
|
20233
21374
|
status: optional(ThreadStatus),
|
|
20234
21375
|
sortIndex: optional(Number$1),
|
|
@@ -20266,7 +21407,7 @@ const RpcMethods = {
|
|
|
20266
21407
|
"worktrees.pullRequest": rpc(Struct({ id: String$1 }), NullOr(PullRequest)),
|
|
20267
21408
|
"threads.changes": rpc(Struct({ threadId: String$1, scope: ChangesScope }), NullOr(Changes)),
|
|
20268
21409
|
"threads.undoTurn": rpc(Struct({ threadId: String$1 }), Void2),
|
|
20269
|
-
"threads.fork": rpc(Struct({ threadId: String$1, messageId: String$1 }), Thread),
|
|
21410
|
+
"threads.fork": rpc(Struct({ threadId: String$1, messageId: optional(String$1) }), Thread),
|
|
20270
21411
|
"threads.sidechat": rpc(Struct({ threadId: String$1 }), Thread),
|
|
20271
21412
|
"sessions.listExternal": rpc(
|
|
20272
21413
|
Struct({ projectId: String$1 }),
|
|
@@ -20288,6 +21429,9 @@ const RpcMethods = {
|
|
|
20288
21429
|
),
|
|
20289
21430
|
"threads.archive": rpc(Struct({ threadId: String$1 }), Thread),
|
|
20290
21431
|
"threads.unarchive": rpc(Struct({ threadId: String$1 }), Thread),
|
|
21432
|
+
"threads.settle": rpc(Struct({ threadId: String$1 }), Thread),
|
|
21433
|
+
"threads.unsettle": rpc(Struct({ threadId: String$1 }), Thread),
|
|
21434
|
+
"threads.regenerateTitle": rpc(Struct({ threadId: String$1 }), Thread),
|
|
20291
21435
|
"projects.currentBranch": rpc(Struct({ id: String$1 }), String$1),
|
|
20292
21436
|
"projects.defaultBranch": rpc(Struct({ id: String$1 }), String$1),
|
|
20293
21437
|
"projects.branches": rpc(Struct({ id: String$1 }), ArraySchema(String$1)),
|
|
@@ -20318,23 +21462,25 @@ const RpcMethods = {
|
|
|
20318
21462
|
Struct({ title: String$1, body: String$1 }),
|
|
20319
21463
|
PermissionRequestOutcome
|
|
20320
21464
|
),
|
|
20321
|
-
"settings.set": rpc(Settings
|
|
21465
|
+
"settings.set": rpc(settingsPatch(Settings), Settings),
|
|
20322
21466
|
"clientSettings.get": rpc(Void2, ClientSettings),
|
|
20323
|
-
"clientSettings.set": rpc(ClientSettings
|
|
21467
|
+
"clientSettings.set": rpc(settingsPatch(ClientSettings), ClientSettings),
|
|
20324
21468
|
"environments.list": rpc(Void2, Environments),
|
|
20325
21469
|
"machines.list": rpc(Void2, ArraySchema(Machine)),
|
|
20326
21470
|
"environments.add": rpc(Struct({ name: String$1, pairingUrl: String$1 }), Environment),
|
|
20327
21471
|
"environments.remove": rpc(Struct({ id: String$1 }), Void2),
|
|
20328
21472
|
"environments.reconnect": rpc(Struct({ id: String$1 }), Void2),
|
|
20329
21473
|
"relayAccount.status": rpc(Void2, RelayAccountStatus),
|
|
20330
|
-
"relayAccount.signIn": rpc(
|
|
21474
|
+
"relayAccount.signIn": rpc(Void2, RelayAccountStatus),
|
|
20331
21475
|
"relayAccount.signOut": rpc(Void2, RelayAccountStatus),
|
|
20332
21476
|
"relayAccount.sync": rpc(Void2, RelayAccountStatus),
|
|
20333
21477
|
"relayAccount.machines": rpc(Void2, ArraySchema(RelayHost)),
|
|
20334
21478
|
"relayAccount.setShown": rpc(Struct({ id: String$1, enabled: Boolean$1 }), ArraySchema(RelayHost)),
|
|
20335
21479
|
"relayAccount.removeMachine": rpc(Struct({ id: String$1 }), ArraySchema(RelayHost)),
|
|
20336
|
-
"
|
|
20337
|
-
"
|
|
21480
|
+
"appConnections.status": rpc(Void2, AppConnectionsStatus),
|
|
21481
|
+
"appConnections.start": rpc(Void2, AppConnectionsStatus),
|
|
21482
|
+
"appConnections.answer": rpc(Struct({ id: String$1, approve: Boolean$1 }), AppConnectionsStatus),
|
|
21483
|
+
"appConnections.remove": rpc(Struct({ id: String$1 }), AppConnectionsStatus),
|
|
20338
21484
|
"models.list": rpc(Struct({ provider: ProviderId }), ArraySchema(ModelInfo)),
|
|
20339
21485
|
"agents.account": rpc(
|
|
20340
21486
|
Struct({
|
|
@@ -20345,6 +21491,15 @@ const RpcMethods = {
|
|
|
20345
21491
|
AgentAccount
|
|
20346
21492
|
),
|
|
20347
21493
|
"agents.updates": rpc(Void2, ArraySchema(AgentUpdate)),
|
|
21494
|
+
"agents.binaries": rpc(Void2, Record(ProviderId, AgentBinaryStatus)),
|
|
21495
|
+
"magpie.test": rpc(
|
|
21496
|
+
Struct({ endpoint: NullOr(String$1), key: NullOr(String$1) }),
|
|
21497
|
+
Struct({ version: NullOr(String$1), models: Number$1 })
|
|
21498
|
+
),
|
|
21499
|
+
"magpie.saveKey": rpc(
|
|
21500
|
+
Struct({ endpoint: NullOr(String$1), key: NullOr(String$1) }),
|
|
21501
|
+
Void2
|
|
21502
|
+
),
|
|
20348
21503
|
"agents.update": rpc(Struct({ provider: UpdatableProviderId }), String$1),
|
|
20349
21504
|
"limits.list": rpc(Void2, ArraySchema(AccountLimits)),
|
|
20350
21505
|
"accounts.list": rpc(Void2, ArraySchema(AgentProfile)),
|
|
@@ -20452,6 +21607,7 @@ const RpcMethods = {
|
|
|
20452
21607
|
),
|
|
20453
21608
|
"backgroundTasks.list": rpc(Struct({ threadId: String$1 }), ArraySchema(BackgroundTask)),
|
|
20454
21609
|
"backgroundTasks.stop": rpc(Struct({ threadId: String$1, taskId: String$1 }), Void2),
|
|
21610
|
+
"backgroundTasks.moveCommand": rpc(Struct({ threadId: String$1, callId: String$1 }), Boolean$1),
|
|
20455
21611
|
"threads.usage": rpc(Struct({ threadId: String$1 }), NullOr(ThreadUsage)),
|
|
20456
21612
|
"threads.contextBreakdown": rpc(Struct({ threadId: String$1 }), NullOr(ContextBreakdown)),
|
|
20457
21613
|
"secrets.respond": rpc(Struct({ requestId: String$1, value: NullOr(String$1) }), Void2),
|
|
@@ -20471,6 +21627,8 @@ const RpcMethods = {
|
|
|
20471
21627
|
"github.merge": rpc(Struct({ url: String$1, method: MergeMethod }), Void2),
|
|
20472
21628
|
"github.close": rpc(Struct({ url: String$1 }), Void2),
|
|
20473
21629
|
"github.comment": rpc(Struct({ url: String$1, body: String$1 }), Void2),
|
|
21630
|
+
"github.pullRequestCandidates": rpc(Struct({ url: String$1 }), PullRequestCandidates),
|
|
21631
|
+
"github.editPullRequest": rpc(Struct({ url: String$1, edit: PullRequestEdit }), Void2),
|
|
20474
21632
|
"github.fileContent": rpc(
|
|
20475
21633
|
Struct({ url: String$1, ref: GitRefName, path: RepositoryPath }),
|
|
20476
21634
|
NullOr(String$1)
|
|
@@ -20566,7 +21724,7 @@ const RpcMethods = {
|
|
|
20566
21724
|
),
|
|
20567
21725
|
"attachments.read": rpc(Struct({ path: String$1 }), Struct({ dataUrl: String$1 })),
|
|
20568
21726
|
"dialog.pickFiles": rpc(Void2, ArraySchema(String$1)),
|
|
20569
|
-
"
|
|
21727
|
+
"routines.list": rpc(Void2, ArraySchema(Routine)),
|
|
20570
21728
|
"artifacts.list": rpc(Void2, ArraySchema(Artifact)),
|
|
20571
21729
|
"artifacts.file": rpc(
|
|
20572
21730
|
Struct({ id: String$1, path: String$1 }),
|
|
@@ -20579,44 +21737,69 @@ const RpcMethods = {
|
|
|
20579
21737
|
Struct({ id: String$1, baseRevision: Number$1, markdown: String$1 }),
|
|
20580
21738
|
DocumentSaveResult
|
|
20581
21739
|
),
|
|
21740
|
+
"artifacts.addDocumentImage": rpc(
|
|
21741
|
+
Struct({ id: String$1, dataUrl: String$1 }),
|
|
21742
|
+
Struct({ path: String$1 })
|
|
21743
|
+
),
|
|
20582
21744
|
"artifacts.createDocument": rpc(Struct({ threadId: String$1, title: String$1 }), Artifact),
|
|
21745
|
+
"artifacts.createWhiteboard": rpc(Struct({ threadId: String$1, title: String$1 }), Artifact),
|
|
21746
|
+
"artifacts.readWhiteboard": rpc(Struct({ id: String$1 }), WhiteboardContent),
|
|
21747
|
+
"artifacts.saveWhiteboard": rpc(
|
|
21748
|
+
Struct({ id: String$1, baseRevision: Number$1, scene: WhiteboardScene }),
|
|
21749
|
+
WhiteboardSaveResult
|
|
21750
|
+
),
|
|
21751
|
+
"artifacts.feedback": rpc(Struct({ id: String$1 }), ArtifactFeedback),
|
|
21752
|
+
"artifacts.comment": rpc(
|
|
21753
|
+
Struct({
|
|
21754
|
+
id: String$1,
|
|
21755
|
+
comment: optionalKey(String$1),
|
|
21756
|
+
anchor: optionalKey(CommentAnchor),
|
|
21757
|
+
body: String$1,
|
|
21758
|
+
attachments: optionalKey(ArraySchema(Attachment))
|
|
21759
|
+
}),
|
|
21760
|
+
ArtifactFeedback
|
|
21761
|
+
),
|
|
21762
|
+
"artifacts.resolveComment": rpc(
|
|
21763
|
+
Struct({ id: String$1, comment: String$1, resolved: Boolean$1 }),
|
|
21764
|
+
ArtifactFeedback
|
|
21765
|
+
),
|
|
20583
21766
|
"artifacts.rename": rpc(Struct({ id: String$1, title: String$1 }), Artifact),
|
|
20584
21767
|
"artifacts.setTheme": rpc(ArtifactTheme, Void2),
|
|
20585
|
-
"
|
|
20586
|
-
|
|
20587
|
-
Struct({ automation: Automation, secret: NullOr(String$1) })
|
|
20588
|
-
),
|
|
20589
|
-
"automations.update": rpc(
|
|
21768
|
+
"routines.create": rpc(RoutineInput, Routine),
|
|
21769
|
+
"routines.update": rpc(
|
|
20590
21770
|
Struct({
|
|
20591
21771
|
id: String$1,
|
|
20592
21772
|
name: optional(String$1),
|
|
20593
21773
|
enabled: optional(Boolean$1),
|
|
20594
|
-
|
|
20595
|
-
promptTemplate: optional(String$1),
|
|
21774
|
+
prompt: optional(String$1),
|
|
20596
21775
|
provider: optional(ProviderId),
|
|
20597
21776
|
model: optional(String$1),
|
|
20598
|
-
|
|
20599
|
-
|
|
21777
|
+
effort: optional(NullOr(String$1)),
|
|
21778
|
+
workspace: optional(RoutineWorkspace),
|
|
21779
|
+
schedule: optional(NullOr(RoutineSchedule))
|
|
20600
21780
|
}),
|
|
20601
|
-
|
|
21781
|
+
Routine
|
|
20602
21782
|
),
|
|
20603
|
-
"
|
|
20604
|
-
"
|
|
20605
|
-
"
|
|
21783
|
+
"routines.delete": rpc(Struct({ id: String$1 }), Void2),
|
|
21784
|
+
"routines.run": rpc(Struct({ id: String$1 }), RoutineRun),
|
|
21785
|
+
"routines.runs": rpc(
|
|
20606
21786
|
Struct({ id: String$1, limit: Int.check(isBetween({ minimum: 1, maximum: 200 })) }),
|
|
20607
|
-
ArraySchema(
|
|
21787
|
+
ArraySchema(RoutineRun)
|
|
21788
|
+
),
|
|
21789
|
+
"routines.webhook": rpc(
|
|
21790
|
+
Struct({ id: String$1 }),
|
|
21791
|
+
Struct({ url: String$1, hasSecret: Boolean$1, listenError: NullOr(String$1) })
|
|
21792
|
+
),
|
|
21793
|
+
"routines.rotateWebhookSecret": rpc(Struct({ id: String$1 }), Struct({ secret: String$1 })),
|
|
21794
|
+
"commands.forProject": rpc(
|
|
21795
|
+
Struct({ projectId: String$1, provider: ProviderId }),
|
|
21796
|
+
ArraySchema(AgentCommand)
|
|
20608
21797
|
),
|
|
20609
21798
|
"network.addresses": rpc(Void2, ArraySchema(NetworkAddress)),
|
|
20610
21799
|
"system.resources": rpc(Void2, MachineResources),
|
|
20611
21800
|
"remote.status": rpc(Void2, RemoteStatus),
|
|
20612
21801
|
"remote.pairing": rpc(Void2, RemotePairing),
|
|
20613
|
-
"remote.rotateToken": rpc(Void2, RemotePairing)
|
|
20614
|
-
"remote.setupRelay": rpc(Void2, RemotePairing),
|
|
20615
|
-
"remote.removeRelay": rpc(Void2, RemotePairing),
|
|
20616
|
-
"automations.webhookUrl": rpc(
|
|
20617
|
-
Struct({ id: String$1 }),
|
|
20618
|
-
Struct({ url: String$1, listenError: NullOr(String$1) })
|
|
20619
|
-
)
|
|
21802
|
+
"remote.rotateToken": rpc(Void2, RemotePairing)
|
|
20620
21803
|
};
|
|
20621
21804
|
const methodKind = {
|
|
20622
21805
|
"browser.open": "mutation",
|
|
@@ -20629,6 +21812,7 @@ const methodKind = {
|
|
|
20629
21812
|
"device.create": "mutation",
|
|
20630
21813
|
"device.detach": "mutation",
|
|
20631
21814
|
"device.delete": "mutation",
|
|
21815
|
+
"device.shutdown": "mutation",
|
|
20632
21816
|
"device.frame": "read",
|
|
20633
21817
|
"device.command": "mutation",
|
|
20634
21818
|
"device.control": "mutation",
|
|
@@ -20643,6 +21827,7 @@ const methodKind = {
|
|
|
20643
21827
|
"projects.list": "read",
|
|
20644
21828
|
"projects.create": "mutation",
|
|
20645
21829
|
"projects.clone": "mutation",
|
|
21830
|
+
"projects.cancelClone": "mutation",
|
|
20646
21831
|
"projects.update": "mutation",
|
|
20647
21832
|
"projects.delete": "mutation",
|
|
20648
21833
|
"threads.list": "read",
|
|
@@ -20668,6 +21853,9 @@ const methodKind = {
|
|
|
20668
21853
|
"sessions.import": "mutation",
|
|
20669
21854
|
"threads.archive": "mutation",
|
|
20670
21855
|
"threads.unarchive": "mutation",
|
|
21856
|
+
"threads.settle": "mutation",
|
|
21857
|
+
"threads.unsettle": "mutation",
|
|
21858
|
+
"threads.regenerateTitle": "mutation",
|
|
20671
21859
|
"projects.currentBranch": "read",
|
|
20672
21860
|
"projects.defaultBranch": "read",
|
|
20673
21861
|
"projects.branches": "read",
|
|
@@ -20698,11 +21886,16 @@ const methodKind = {
|
|
|
20698
21886
|
"relayAccount.machines": "read",
|
|
20699
21887
|
"relayAccount.setShown": "mutation",
|
|
20700
21888
|
"relayAccount.removeMachine": "mutation",
|
|
20701
|
-
"
|
|
20702
|
-
"
|
|
21889
|
+
"appConnections.status": "read",
|
|
21890
|
+
"appConnections.start": "mutation",
|
|
21891
|
+
"appConnections.answer": "mutation",
|
|
21892
|
+
"appConnections.remove": "mutation",
|
|
20703
21893
|
"models.list": "read",
|
|
20704
21894
|
"agents.account": "read",
|
|
20705
21895
|
"agents.updates": "read",
|
|
21896
|
+
"agents.binaries": "read",
|
|
21897
|
+
"magpie.test": "read",
|
|
21898
|
+
"magpie.saveKey": "mutation",
|
|
20706
21899
|
"agents.update": "mutation",
|
|
20707
21900
|
"limits.list": "read",
|
|
20708
21901
|
"accounts.list": "read",
|
|
@@ -20747,6 +21940,7 @@ const methodKind = {
|
|
|
20747
21940
|
"subagents.transcript": "read",
|
|
20748
21941
|
"backgroundTasks.list": "read",
|
|
20749
21942
|
"backgroundTasks.stop": "mutation",
|
|
21943
|
+
"backgroundTasks.moveCommand": "mutation",
|
|
20750
21944
|
"threads.usage": "read",
|
|
20751
21945
|
"threads.contextBreakdown": "read",
|
|
20752
21946
|
"secrets.respond": "mutation",
|
|
@@ -20763,6 +21957,8 @@ const methodKind = {
|
|
|
20763
21957
|
"github.merge": "mutation",
|
|
20764
21958
|
"github.close": "mutation",
|
|
20765
21959
|
"github.comment": "mutation",
|
|
21960
|
+
"github.pullRequestCandidates": "read",
|
|
21961
|
+
"github.editPullRequest": "mutation",
|
|
20766
21962
|
"github.fileContent": "read",
|
|
20767
21963
|
"github.reviewComment": "mutation",
|
|
20768
21964
|
"pullRequestGuides.get": "read",
|
|
@@ -20795,29 +21991,36 @@ const methodKind = {
|
|
|
20795
21991
|
"attachments.stage": "mutation",
|
|
20796
21992
|
"attachments.read": "read",
|
|
20797
21993
|
"dialog.pickFiles": "mutation",
|
|
20798
|
-
"
|
|
21994
|
+
"routines.list": "read",
|
|
20799
21995
|
"artifacts.list": "read",
|
|
20800
21996
|
"artifacts.file": "read",
|
|
20801
21997
|
"artifacts.export": "mutation",
|
|
20802
21998
|
"artifacts.delete": "mutation",
|
|
20803
21999
|
"artifacts.readDocument": "read",
|
|
20804
22000
|
"artifacts.saveDocument": "mutation",
|
|
22001
|
+
"artifacts.addDocumentImage": "mutation",
|
|
20805
22002
|
"artifacts.createDocument": "mutation",
|
|
22003
|
+
"artifacts.createWhiteboard": "mutation",
|
|
22004
|
+
"artifacts.readWhiteboard": "read",
|
|
22005
|
+
"artifacts.saveWhiteboard": "mutation",
|
|
22006
|
+
"artifacts.feedback": "read",
|
|
22007
|
+
"artifacts.comment": "mutation",
|
|
22008
|
+
"artifacts.resolveComment": "mutation",
|
|
20806
22009
|
"artifacts.rename": "mutation",
|
|
20807
22010
|
"artifacts.setTheme": "mutation",
|
|
20808
|
-
"
|
|
20809
|
-
"
|
|
20810
|
-
"
|
|
20811
|
-
"
|
|
20812
|
-
"
|
|
22011
|
+
"routines.create": "mutation",
|
|
22012
|
+
"routines.update": "mutation",
|
|
22013
|
+
"routines.delete": "mutation",
|
|
22014
|
+
"routines.run": "mutation",
|
|
22015
|
+
"routines.runs": "read",
|
|
22016
|
+
"routines.webhook": "read",
|
|
22017
|
+
"routines.rotateWebhookSecret": "mutation",
|
|
22018
|
+
"commands.forProject": "read",
|
|
20813
22019
|
"network.addresses": "read",
|
|
20814
22020
|
"system.resources": "read",
|
|
20815
22021
|
"remote.status": "read",
|
|
20816
22022
|
"remote.pairing": "read",
|
|
20817
|
-
"remote.rotateToken": "mutation"
|
|
20818
|
-
"remote.setupRelay": "mutation",
|
|
20819
|
-
"remote.removeRelay": "mutation",
|
|
20820
|
-
"automations.webhookUrl": "read"
|
|
22023
|
+
"remote.rotateToken": "mutation"
|
|
20821
22024
|
};
|
|
20822
22025
|
const mutations = new Set(
|
|
20823
22026
|
Object.entries(methodKind).filter(([, kind]) => kind === "mutation").map(([method]) => method)
|
|
@@ -20844,8 +22047,6 @@ const desktopOnlyMethods = /* @__PURE__ */ new Set([
|
|
|
20844
22047
|
"vm.files.drop",
|
|
20845
22048
|
"remote.pairing",
|
|
20846
22049
|
"remote.rotateToken",
|
|
20847
|
-
"remote.setupRelay",
|
|
20848
|
-
"remote.removeRelay",
|
|
20849
22050
|
"clientSettings.get",
|
|
20850
22051
|
"clientSettings.set",
|
|
20851
22052
|
"environments.list",
|
|
@@ -20859,15 +22060,18 @@ const desktopOnlyMethods = /* @__PURE__ */ new Set([
|
|
|
20859
22060
|
"relayAccount.machines",
|
|
20860
22061
|
"relayAccount.setShown",
|
|
20861
22062
|
"relayAccount.removeMachine",
|
|
20862
|
-
"
|
|
20863
|
-
"
|
|
22063
|
+
"appConnections.status",
|
|
22064
|
+
"appConnections.start",
|
|
22065
|
+
"appConnections.answer",
|
|
22066
|
+
"appConnections.remove",
|
|
20864
22067
|
"agents.update"
|
|
20865
22068
|
]);
|
|
20866
22069
|
const desktopOnlyPushes = /* @__PURE__ */ new Set([
|
|
20867
22070
|
"vm.screen.data",
|
|
20868
22071
|
"vm.screen.closed",
|
|
20869
22072
|
"fs.changed",
|
|
20870
|
-
"environments.changed"
|
|
22073
|
+
"environments.changed",
|
|
22074
|
+
"appConnections.changed"
|
|
20871
22075
|
]);
|
|
20872
22076
|
const TranscriptPush = Union2([
|
|
20873
22077
|
Struct({
|
|
@@ -20895,6 +22099,7 @@ const PushEvent = Union2([
|
|
|
20895
22099
|
Struct({ type: Literal2("thread.reveal"), threadId: String$1 }),
|
|
20896
22100
|
Struct({ type: Literal2("worktree.updated"), worktree: Worktree }),
|
|
20897
22101
|
Struct({ type: Literal2("worktree.setupLog"), id: String$1, chunk: String$1 }),
|
|
22102
|
+
Struct({ type: Literal2("project.cloneProgress"), cloneId: String$1, progress: CloneProgress }),
|
|
20898
22103
|
Struct({
|
|
20899
22104
|
type: Literal2("worktree.setupNotice"),
|
|
20900
22105
|
id: String$1,
|
|
@@ -20925,9 +22130,11 @@ const PushEvent = Union2([
|
|
|
20925
22130
|
tasks: ArraySchema(BackgroundTask)
|
|
20926
22131
|
}),
|
|
20927
22132
|
Struct({ type: Literal2("fs.changed"), root: String$1, path: String$1 }),
|
|
20928
|
-
Struct({ type: Literal2("
|
|
22133
|
+
Struct({ type: Literal2("routine.run"), run: RoutineRun }),
|
|
22134
|
+
Struct({ type: Literal2("routines.changed") }),
|
|
20929
22135
|
Struct({ type: Literal2("artifact.updated"), artifact: Artifact }),
|
|
20930
22136
|
Struct({ type: Literal2("artifact.removed"), id: String$1 }),
|
|
22137
|
+
Struct({ type: Literal2("artifact.feedback"), id: String$1 }),
|
|
20931
22138
|
Struct({ type: Literal2("artifact.opened"), threadId: String$1, id: String$1 }),
|
|
20932
22139
|
Struct({
|
|
20933
22140
|
type: Literal2("terminal.data"),
|
|
@@ -20936,9 +22143,11 @@ const PushEvent = Union2([
|
|
|
20936
22143
|
data: String$1
|
|
20937
22144
|
}),
|
|
20938
22145
|
Struct({ type: Literal2("terminal.exited"), id: String$1, exitCode: NullOr(Number$1) }),
|
|
22146
|
+
Struct({ type: Literal2("terminal.updated"), session: TerminalSession }),
|
|
20939
22147
|
Struct({ type: Literal2("update.changed") }),
|
|
20940
22148
|
Struct({ type: Literal2("environment.status"), id: String$1, status: EnvironmentStatus }),
|
|
20941
22149
|
Struct({ type: Literal2("environments.changed") }),
|
|
22150
|
+
Struct({ type: Literal2("appConnections.changed"), status: AppConnectionsStatus }),
|
|
20942
22151
|
Struct({ type: Literal2("vm.updated"), threadId: String$1, vm: ThreadVm }),
|
|
20943
22152
|
Struct({ type: Literal2("device.updated"), threadId: String$1, devices: ThreadDevices }),
|
|
20944
22153
|
Struct({
|
|
@@ -21091,7 +22300,7 @@ export {
|
|
|
21091
22300
|
Literal2 as L,
|
|
21092
22301
|
match as M,
|
|
21093
22302
|
none as N,
|
|
21094
|
-
make$
|
|
22303
|
+
make$6 as O,
|
|
21095
22304
|
Prototype as P,
|
|
21096
22305
|
QuitError as Q,
|
|
21097
22306
|
Reference as R,
|
|
@@ -21105,7 +22314,7 @@ export {
|
|
|
21105
22314
|
isSome as Z,
|
|
21106
22315
|
flatMap$2 as _,
|
|
21107
22316
|
isSuccess as a,
|
|
21108
|
-
|
|
22317
|
+
all as a$,
|
|
21109
22318
|
empty$3 as a0,
|
|
21110
22319
|
reduce as a1,
|
|
21111
22320
|
pipe as a2,
|
|
@@ -21116,270 +22325,270 @@ export {
|
|
|
21116
22325
|
isReadonlyArrayNonEmpty as a7,
|
|
21117
22326
|
ensuring$2 as a8,
|
|
21118
22327
|
orDie$2 as a9,
|
|
21119
|
-
|
|
21120
|
-
|
|
21121
|
-
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
21135
|
-
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
22328
|
+
make$v as aA,
|
|
22329
|
+
provideContext$2 as aB,
|
|
22330
|
+
MinimumLogLevel as aC,
|
|
22331
|
+
Struct as aD,
|
|
22332
|
+
ApprovalRequest as aE,
|
|
22333
|
+
QuestionRequest as aF,
|
|
22334
|
+
SecretRequest as aG,
|
|
22335
|
+
Thread as aH,
|
|
22336
|
+
TaggedError$1 as aI,
|
|
22337
|
+
seconds as aJ,
|
|
22338
|
+
decodeUnknownExit as aK,
|
|
22339
|
+
fromJsonString as aL,
|
|
22340
|
+
ServerFrame as aM,
|
|
22341
|
+
acquireRelease as aN,
|
|
22342
|
+
unbounded as aO,
|
|
22343
|
+
endUnsafe as aP,
|
|
22344
|
+
encodeUnknownEffect as aQ,
|
|
22345
|
+
RpcMethods as aR,
|
|
22346
|
+
timeoutOrElse as aS,
|
|
22347
|
+
callback$1 as aT,
|
|
22348
|
+
methodKind as aU,
|
|
22349
|
+
offerUnsafe as aV,
|
|
22350
|
+
WebSocket as aW,
|
|
22351
|
+
REMOTE_PATH as aX,
|
|
22352
|
+
REMOTE_MAX_FRAME_BYTES as aY,
|
|
22353
|
+
succeedNone as aZ,
|
|
22354
|
+
cliSocketPath as a_,
|
|
21146
22355
|
take$1 as aa,
|
|
21147
22356
|
raceFirst as ab,
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
22357
|
+
round as ac,
|
|
22358
|
+
pipeArguments as ad,
|
|
22359
|
+
catchTags as ae,
|
|
22360
|
+
fromUndefinedOr as af,
|
|
22361
|
+
isNotUndefined as ag,
|
|
22362
|
+
getOrUndefined$1 as ah,
|
|
22363
|
+
assignProperty as ai,
|
|
22364
|
+
Service as aj,
|
|
22365
|
+
empty$5 as ak,
|
|
22366
|
+
exists as al,
|
|
22367
|
+
gen as am,
|
|
22368
|
+
isNone as an,
|
|
22369
|
+
succeed$4 as ao,
|
|
22370
|
+
value as ap,
|
|
22371
|
+
provideService$2 as aq,
|
|
22372
|
+
Stdio as ar,
|
|
22373
|
+
catchFilter as as,
|
|
22374
|
+
isQuitError as at,
|
|
22375
|
+
succeed$8 as au,
|
|
22376
|
+
fail$6 as av,
|
|
22377
|
+
interrupt$1 as aw,
|
|
22378
|
+
andThen as ax,
|
|
22379
|
+
catchTag as ay,
|
|
22380
|
+
result as az,
|
|
21172
22381
|
sync$1 as b,
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
|
|
21182
|
-
|
|
21183
|
-
|
|
21184
|
-
|
|
21185
|
-
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
21200
|
-
|
|
21201
|
-
|
|
21202
|
-
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
|
|
21211
|
-
|
|
21212
|
-
|
|
21213
|
-
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
22382
|
+
symbol as b$,
|
|
22383
|
+
fromResult as b0,
|
|
22384
|
+
Number$1 as b1,
|
|
22385
|
+
forEach$1 as b2,
|
|
22386
|
+
NullOr as b3,
|
|
22387
|
+
Routine as b4,
|
|
22388
|
+
AccessMode as b5,
|
|
22389
|
+
ProviderId as b6,
|
|
22390
|
+
promise as b7,
|
|
22391
|
+
isFailure$1 as b8,
|
|
22392
|
+
toCheckoutTarget as b9,
|
|
22393
|
+
tap$1 as bA,
|
|
22394
|
+
ExceededCapacityError2 as bB,
|
|
22395
|
+
makeUnsafe$4 as bC,
|
|
22396
|
+
makeUnsafe$5 as bD,
|
|
22397
|
+
makeUnsafe$6 as bE,
|
|
22398
|
+
runForkWith as bF,
|
|
22399
|
+
runIn as bG,
|
|
22400
|
+
hasInterrupts as bH,
|
|
22401
|
+
doneUnsafe as bI,
|
|
22402
|
+
getUnsafe as bJ,
|
|
22403
|
+
addFinalizer$1 as bK,
|
|
22404
|
+
_await as bL,
|
|
22405
|
+
getCurrent as bM,
|
|
22406
|
+
interrupt as bN,
|
|
22407
|
+
close as bO,
|
|
22408
|
+
isZero as bP,
|
|
22409
|
+
isFinite$1 as bQ,
|
|
22410
|
+
Clock as bR,
|
|
22411
|
+
toMillis as bS,
|
|
22412
|
+
millis as bT,
|
|
22413
|
+
void_$2 as bU,
|
|
22414
|
+
getOrThrow as bV,
|
|
22415
|
+
BaseProto as bW,
|
|
22416
|
+
Error$2 as bX,
|
|
22417
|
+
toSeconds as bY,
|
|
22418
|
+
symbol$1 as bZ,
|
|
22419
|
+
structure as b_,
|
|
22420
|
+
noticeEvents as ba,
|
|
22421
|
+
PushEvent as bb,
|
|
22422
|
+
ThreadStatus as bc,
|
|
22423
|
+
try_ as bd,
|
|
22424
|
+
as as be,
|
|
22425
|
+
isThreadBusy as bf,
|
|
22426
|
+
tryPromise as bg,
|
|
22427
|
+
map$8 as bh,
|
|
22428
|
+
packageJson as bi,
|
|
22429
|
+
tapError as bj,
|
|
22430
|
+
provide as bk,
|
|
22431
|
+
layer as bl,
|
|
22432
|
+
hash as bm,
|
|
22433
|
+
equals$2 as bn,
|
|
22434
|
+
NodeInspectSymbol as bo,
|
|
22435
|
+
toJson as bp,
|
|
22436
|
+
withFiber as bq,
|
|
22437
|
+
uninterruptibleMask as br,
|
|
22438
|
+
get$2 as bs,
|
|
22439
|
+
Scope as bt,
|
|
22440
|
+
flow as bu,
|
|
22441
|
+
fromInputUnsafe$1 as bv,
|
|
22442
|
+
constant as bw,
|
|
22443
|
+
zero$1 as bx,
|
|
22444
|
+
addFinalizerExit as by,
|
|
22445
|
+
exit as bz,
|
|
21237
22446
|
constVoid as c,
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
|
|
21265
|
-
|
|
21266
|
-
|
|
21267
|
-
|
|
21268
|
-
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
|
|
21272
|
-
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
|
|
21293
|
-
|
|
21294
|
-
|
|
21295
|
-
|
|
21296
|
-
|
|
21297
|
-
|
|
21298
|
-
|
|
21299
|
-
|
|
21300
|
-
|
|
21301
|
-
|
|
22447
|
+
failCauseUnsafe as c$,
|
|
22448
|
+
redact as c0,
|
|
22449
|
+
symbolRedactable as c1,
|
|
22450
|
+
strictEqual as c2,
|
|
22451
|
+
map$7 as c3,
|
|
22452
|
+
try_$2 as c4,
|
|
22453
|
+
flatMap$6 as c5,
|
|
22454
|
+
combine$1 as c6,
|
|
22455
|
+
string$1 as c7,
|
|
22456
|
+
number$1 as c8,
|
|
22457
|
+
optimize as c9,
|
|
22458
|
+
forkUnsafe as cA,
|
|
22459
|
+
runPromise as cB,
|
|
22460
|
+
runPromiseWith as cC,
|
|
22461
|
+
runPromiseExit as cD,
|
|
22462
|
+
runPromiseExitWith as cE,
|
|
22463
|
+
runSync$1 as cF,
|
|
22464
|
+
runSyncWith as cG,
|
|
22465
|
+
runSyncExit as cH,
|
|
22466
|
+
runSyncExitWith as cI,
|
|
22467
|
+
runCallback as cJ,
|
|
22468
|
+
runCallbackWith as cK,
|
|
22469
|
+
makeMemoMapUnsafe as cL,
|
|
22470
|
+
buildWithMemoMap as cM,
|
|
22471
|
+
flatten$1 as cN,
|
|
22472
|
+
await_ as cO,
|
|
22473
|
+
scopeRemoveFinalizerUnsafe as cP,
|
|
22474
|
+
die$2 as cQ,
|
|
22475
|
+
isResult as cR,
|
|
22476
|
+
isSuccess$1 as cS,
|
|
22477
|
+
effect as cT,
|
|
22478
|
+
contextWith as cU,
|
|
22479
|
+
getOrUndefined as cV,
|
|
22480
|
+
context as cW,
|
|
22481
|
+
make$j as cX,
|
|
22482
|
+
fromQueue as cY,
|
|
22483
|
+
unwrap as cZ,
|
|
22484
|
+
onExit$1 as c_,
|
|
22485
|
+
contextWith$1 as ca,
|
|
22486
|
+
infinity as cb,
|
|
22487
|
+
PipeInspectableProto as cc,
|
|
22488
|
+
updateContext$1 as cd,
|
|
22489
|
+
merge$3 as ce,
|
|
22490
|
+
succeed$7 as cf,
|
|
22491
|
+
exitHasInterrupts as cg,
|
|
22492
|
+
ClockRef as ch,
|
|
22493
|
+
forkUnsafe$1 as ci,
|
|
22494
|
+
onExitUnsafe as cj,
|
|
22495
|
+
void_$3 as ck,
|
|
22496
|
+
fiberInterrupt as cl,
|
|
22497
|
+
fiberJoin as cm,
|
|
22498
|
+
filterMap as cn,
|
|
22499
|
+
failVoid as co,
|
|
22500
|
+
isGreaterThanOrEqualTo$1 as cp,
|
|
22501
|
+
LogLevelOrder as cq,
|
|
22502
|
+
interruptAs as cr,
|
|
22503
|
+
isFailure as cs,
|
|
22504
|
+
into as ct,
|
|
22505
|
+
asVoid as cu,
|
|
22506
|
+
done as cv,
|
|
22507
|
+
filterInterruptors as cw,
|
|
22508
|
+
interruptAllAs as cx,
|
|
22509
|
+
interruptAll as cy,
|
|
22510
|
+
empty$4 as cz,
|
|
21302
22511
|
dual as d,
|
|
21303
22512
|
succeed$5 as d$,
|
|
21304
|
-
|
|
21305
|
-
|
|
21306
|
-
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
22513
|
+
makeSpanUnsafe as d0,
|
|
22514
|
+
TracerTimingEnabled as d1,
|
|
22515
|
+
endSpan as d2,
|
|
22516
|
+
makeSpanScoped as d3,
|
|
22517
|
+
useSpan as d4,
|
|
22518
|
+
constUndefined as d5,
|
|
22519
|
+
provideService as d6,
|
|
22520
|
+
ParentSpan as d7,
|
|
22521
|
+
serviceOption as d8,
|
|
22522
|
+
make$r as d9,
|
|
22523
|
+
formatIso as dA,
|
|
22524
|
+
sort as dB,
|
|
22525
|
+
flatMapNullishOr as dC,
|
|
22526
|
+
catch_$2 as dD,
|
|
22527
|
+
fromNullishOr$1 as dE,
|
|
22528
|
+
logDebug as dF,
|
|
22529
|
+
annotateLogs as dG,
|
|
22530
|
+
withSpan as dH,
|
|
22531
|
+
logInfo as dI,
|
|
22532
|
+
catchDefect as dJ,
|
|
22533
|
+
filterOrFail as dK,
|
|
22534
|
+
make$w as dL,
|
|
22535
|
+
Number$4 as dM,
|
|
22536
|
+
encodeEffect as dN,
|
|
22537
|
+
asSome as dO,
|
|
22538
|
+
mutable as dP,
|
|
22539
|
+
NoSuchElementError2 as dQ,
|
|
22540
|
+
Literals as dR,
|
|
22541
|
+
FileSystem as dS,
|
|
22542
|
+
orElseSucceed as dT,
|
|
22543
|
+
chatFolder as dU,
|
|
22544
|
+
Boolean$1 as dV,
|
|
22545
|
+
ProjectKind as dW,
|
|
22546
|
+
ignore as dX,
|
|
22547
|
+
logWarning as dY,
|
|
21339
22548
|
sleep as dZ,
|
|
21340
22549
|
forkDetach as d_,
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
|
|
21357
|
-
|
|
21358
|
-
|
|
21359
|
-
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
22550
|
+
provide$3 as da,
|
|
22551
|
+
onError as db,
|
|
22552
|
+
catchIf as dc,
|
|
22553
|
+
scope as dd,
|
|
22554
|
+
getOption as de,
|
|
22555
|
+
onExitPrimitive as df,
|
|
22556
|
+
catchCause$1 as dg,
|
|
22557
|
+
matchCauseEffect as dh,
|
|
22558
|
+
failCause$3 as di,
|
|
22559
|
+
combine as dj,
|
|
22560
|
+
add as dk,
|
|
22561
|
+
makeUnsafe$1 as dl,
|
|
22562
|
+
fromReasons as dm,
|
|
22563
|
+
isFailReason as dn,
|
|
22564
|
+
makeDieReason as dp,
|
|
22565
|
+
reasonAnnotations as dq,
|
|
22566
|
+
failCause$5 as dr,
|
|
22567
|
+
yieldNow as ds,
|
|
22568
|
+
constTrue as dt,
|
|
22569
|
+
normalizeNonEmpty as du,
|
|
22570
|
+
unbounded$1 as dv,
|
|
22571
|
+
publishUnsafe as dw,
|
|
22572
|
+
fromPubSub as dx,
|
|
22573
|
+
getDefaultExportFromCjs as dy,
|
|
22574
|
+
now as dz,
|
|
21366
22575
|
hasProperty as e,
|
|
21367
|
-
|
|
21368
|
-
|
|
22576
|
+
delay as e$,
|
|
22577
|
+
signedOutFailure as e0,
|
|
21369
22578
|
decodeUnknownOption as e1,
|
|
21370
|
-
|
|
21371
|
-
|
|
21372
|
-
|
|
22579
|
+
Unknown2 as e2,
|
|
22580
|
+
toArray as e3,
|
|
22581
|
+
cachedWithTTL as e4,
|
|
21373
22582
|
minutes as e5,
|
|
21374
|
-
|
|
21375
|
-
|
|
21376
|
-
|
|
22583
|
+
toAsyncIterable as e6,
|
|
22584
|
+
timeout as e7,
|
|
22585
|
+
addFinalizer as e8,
|
|
21377
22586
|
callback as e9,
|
|
21378
|
-
|
|
22587
|
+
fromIterableEffect as eA,
|
|
21379
22588
|
suspend as eB,
|
|
21380
22589
|
unlistedModel as eC,
|
|
21381
|
-
|
|
21382
|
-
|
|
22590
|
+
make$f as eD,
|
|
22591
|
+
tap as eE,
|
|
21383
22592
|
tick as eF,
|
|
21384
22593
|
map$1 as eG,
|
|
21385
22594
|
drop as eH,
|
|
@@ -21388,37 +22597,37 @@ export {
|
|
|
21388
22597
|
format as eK,
|
|
21389
22598
|
getOrNull as eL,
|
|
21390
22599
|
Record as eM,
|
|
21391
|
-
make$
|
|
21392
|
-
|
|
21393
|
-
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
22600
|
+
make$i as eN,
|
|
22601
|
+
join as eO,
|
|
22602
|
+
end as eP,
|
|
22603
|
+
forkScoped as eQ,
|
|
22604
|
+
isObject as eR,
|
|
22605
|
+
repeat as eS,
|
|
22606
|
+
subscribe as eT,
|
|
22607
|
+
fromSubscription as eU,
|
|
22608
|
+
applySettingsPatch as eV,
|
|
22609
|
+
publish as eW,
|
|
22610
|
+
defaultSettings as eX,
|
|
22611
|
+
Settings as eY,
|
|
22612
|
+
flatMapNullishOr$1 as eZ,
|
|
22613
|
+
option as e_,
|
|
21405
22614
|
offer as ea,
|
|
21406
22615
|
withPermit as eb,
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
22616
|
+
acquireUseRelease as ec,
|
|
22617
|
+
shutdownUnsafe as ed,
|
|
22618
|
+
make$s as ee,
|
|
22619
|
+
forkIn as ef,
|
|
22620
|
+
fromAsyncIterable as eg,
|
|
22621
|
+
runForEach as eh,
|
|
22622
|
+
CLAUDE_EFFORT_LEVELS as ei,
|
|
22623
|
+
ensuring as ej,
|
|
22624
|
+
currentTimeMillis as ek,
|
|
22625
|
+
sum as el,
|
|
22626
|
+
race as em,
|
|
22627
|
+
publishedArtifactId as en,
|
|
22628
|
+
PUBLISH_DOCUMENT_TOOL as eo,
|
|
22629
|
+
PUBLISH_ARTIFACT_TOOL as ep,
|
|
22630
|
+
PUBLISH_WHITEBOARD_TOOL as eq,
|
|
21422
22631
|
isDone as er,
|
|
21423
22632
|
empty as es,
|
|
21424
22633
|
succeed$1 as et,
|
|
@@ -21427,271 +22636,294 @@ export {
|
|
|
21427
22636
|
interruptWhen as ew,
|
|
21428
22637
|
concat as ex,
|
|
21429
22638
|
fromEffectDrain as ey,
|
|
21430
|
-
|
|
22639
|
+
fromEffect as ez,
|
|
21431
22640
|
optionalKey as f,
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
21494
|
-
|
|
21495
|
-
|
|
22641
|
+
die$4 as f$,
|
|
22642
|
+
PRIVATE_NETWORKS as f0,
|
|
22643
|
+
RelayHostList as f1,
|
|
22644
|
+
RelayMachineList as f2,
|
|
22645
|
+
encodeSync as f3,
|
|
22646
|
+
mergeAll$1 as f4,
|
|
22647
|
+
makeUnsafe as f5,
|
|
22648
|
+
effectDiscard as f6,
|
|
22649
|
+
changes as f7,
|
|
22650
|
+
Void2 as f8,
|
|
22651
|
+
AppConnection as f9,
|
|
22652
|
+
Tracer as fA,
|
|
22653
|
+
nativeTracer as fB,
|
|
22654
|
+
hasInterrupts$1 as fC,
|
|
22655
|
+
succeed$6 as fD,
|
|
22656
|
+
setStackTraceLimit as fE,
|
|
22657
|
+
fail$3 as fF,
|
|
22658
|
+
getStackTraceLimit as fG,
|
|
22659
|
+
fiberEnterUninterruptibleUnsafe as fH,
|
|
22660
|
+
contA as fI,
|
|
22661
|
+
effectIsExit as fJ,
|
|
22662
|
+
closeUnsafe as fK,
|
|
22663
|
+
contE as fL,
|
|
22664
|
+
reportCauseUnsafe as fM,
|
|
22665
|
+
matchCauseEffectEager as fN,
|
|
22666
|
+
flatMapEager as fO,
|
|
22667
|
+
provideMerge as fP,
|
|
22668
|
+
fromInput as fQ,
|
|
22669
|
+
fromReadable as fR,
|
|
22670
|
+
toArrayBuffer as fS,
|
|
22671
|
+
provide$2 as fT,
|
|
22672
|
+
layer$7 as fU,
|
|
22673
|
+
pipeThroughDuplex as fV,
|
|
22674
|
+
toUint8Array as fW,
|
|
22675
|
+
WebSocketServer as fX,
|
|
22676
|
+
orDie as fY,
|
|
22677
|
+
runForEachArray as fZ,
|
|
22678
|
+
interruptible as f_,
|
|
22679
|
+
decodeEffect as fa,
|
|
22680
|
+
toCodecJson as fb,
|
|
22681
|
+
RecordFromUrlParams as fc,
|
|
22682
|
+
decodeTo as fd,
|
|
22683
|
+
externalSpan as fe,
|
|
22684
|
+
isOption as ff,
|
|
22685
|
+
isExit as fg,
|
|
22686
|
+
zero as fh,
|
|
22687
|
+
fromInput$1 as fi,
|
|
22688
|
+
badArgument as fj,
|
|
22689
|
+
isSchemaError$1 as fk,
|
|
22690
|
+
isNoSuchElementError as fl,
|
|
22691
|
+
StackTrace as fm,
|
|
22692
|
+
mapEager as fn,
|
|
22693
|
+
updateContext as fo,
|
|
22694
|
+
makeUnsafe$2 as fp,
|
|
22695
|
+
tag as fq,
|
|
22696
|
+
Error$1 as fr,
|
|
22697
|
+
fromInputUnsafe as fs,
|
|
22698
|
+
Path as ft,
|
|
22699
|
+
run$1 as fu,
|
|
22700
|
+
mebibytes as fv,
|
|
22701
|
+
Class$3 as fw,
|
|
22702
|
+
constFalse as fx,
|
|
22703
|
+
withLogSpan as fy,
|
|
22704
|
+
log as fz,
|
|
21496
22705
|
format$1 as g,
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
21507
|
-
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
|
|
21513
|
-
|
|
21514
|
-
|
|
21515
|
-
|
|
21516
|
-
|
|
21517
|
-
|
|
21518
|
-
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
|
-
|
|
21529
|
-
|
|
21530
|
-
|
|
21531
|
-
|
|
21532
|
-
|
|
21533
|
-
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
|
|
21538
|
-
|
|
21539
|
-
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
|
|
21543
|
-
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
|
|
21547
|
-
|
|
21548
|
-
|
|
21549
|
-
|
|
21550
|
-
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
22706
|
+
isReadonlyObject as g$,
|
|
22707
|
+
Duration as g0,
|
|
22708
|
+
DateTimeUtc as g1,
|
|
22709
|
+
withConstructorDefault as g2,
|
|
22710
|
+
withDecodingDefault as g3,
|
|
22711
|
+
Redacted as g4,
|
|
22712
|
+
Tuple as g5,
|
|
22713
|
+
isRedacted as g6,
|
|
22714
|
+
MutableJson as g7,
|
|
22715
|
+
Never2 as g8,
|
|
22716
|
+
toJsonSchemaDocument as g9,
|
|
22717
|
+
Any2 as gA,
|
|
22718
|
+
UndefinedOr as gB,
|
|
22719
|
+
Finite as gC,
|
|
22720
|
+
passthrough$1 as gD,
|
|
22721
|
+
Uint8ArrayFromBase64 as gE,
|
|
22722
|
+
Json as gF,
|
|
22723
|
+
TemplateLiteral2 as gG,
|
|
22724
|
+
decode as gH,
|
|
22725
|
+
withDefault$1 as gI,
|
|
22726
|
+
isBetween as gJ,
|
|
22727
|
+
take$3 as gK,
|
|
22728
|
+
isNullish as gL,
|
|
22729
|
+
isString as gM,
|
|
22730
|
+
never$1 as gN,
|
|
22731
|
+
bounded as gO,
|
|
22732
|
+
withParentSpan as gP,
|
|
22733
|
+
die$3 as gQ,
|
|
22734
|
+
offerAll as gR,
|
|
22735
|
+
decodeSync as gS,
|
|
22736
|
+
NonEmptyArray as gT,
|
|
22737
|
+
interrupt$2 as gU,
|
|
22738
|
+
interruptors as gV,
|
|
22739
|
+
catchCauseIf as gW,
|
|
22740
|
+
decode$1 as gX,
|
|
22741
|
+
decodeUnknownResult as gY,
|
|
22742
|
+
fn as gZ,
|
|
22743
|
+
isTagged as g_,
|
|
22744
|
+
effectContext as ga,
|
|
22745
|
+
annotateCurrentSpan as gb,
|
|
22746
|
+
isUndefined as gc,
|
|
22747
|
+
failCause$2 as gd,
|
|
22748
|
+
forkChild as ge,
|
|
22749
|
+
catch_ as gf,
|
|
22750
|
+
isSchemaError as gg,
|
|
22751
|
+
failCause as gh,
|
|
22752
|
+
mapEffect as gi,
|
|
22753
|
+
onEnd as gj,
|
|
22754
|
+
isSchema as gk,
|
|
22755
|
+
annotate$1 as gl,
|
|
22756
|
+
fail$4 as gm,
|
|
22757
|
+
make$2 as gn,
|
|
22758
|
+
declare as go,
|
|
22759
|
+
isStream as gp,
|
|
22760
|
+
Class3 as gq,
|
|
22761
|
+
Exit as gr,
|
|
22762
|
+
getOrUndefinedUnsafe as gs,
|
|
22763
|
+
provideContext as gt,
|
|
22764
|
+
Opaque as gu,
|
|
22765
|
+
StructWithRest as gv,
|
|
22766
|
+
JsonObject as gw,
|
|
22767
|
+
transformOptional as gx,
|
|
22768
|
+
flatMap$7 as gy,
|
|
22769
|
+
toType as gz,
|
|
21561
22770
|
hasInterruptsOnly as h,
|
|
21562
|
-
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
22771
|
+
subtract as h$,
|
|
22772
|
+
IllegalArgumentError2 as h0,
|
|
22773
|
+
encode as h1,
|
|
22774
|
+
omit as h2,
|
|
22775
|
+
merge$2 as h3,
|
|
22776
|
+
succeedContext as h4,
|
|
22777
|
+
unwrap$3 as h5,
|
|
21569
22778
|
CurrentMemoMap as h6,
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
|
|
21601
|
-
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
|
|
21611
|
-
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
|
|
21622
|
-
|
|
21623
|
-
|
|
21624
|
-
|
|
21625
|
-
|
|
22779
|
+
fromIterable$1 as h7,
|
|
22780
|
+
reverse as h8,
|
|
22781
|
+
withFiberSucceed as h9,
|
|
22782
|
+
decodeUnknownSync as hA,
|
|
22783
|
+
spawnsSubagent as hB,
|
|
22784
|
+
isPublishArtifactTool as hC,
|
|
22785
|
+
outputText as hD,
|
|
22786
|
+
publishedArtifact as hE,
|
|
22787
|
+
toolArgument as hF,
|
|
22788
|
+
isPublishDocumentTool as hG,
|
|
22789
|
+
commonjsGlobal as hH,
|
|
22790
|
+
isRunAgentTool as hI,
|
|
22791
|
+
presetModels as hJ,
|
|
22792
|
+
filter as hK,
|
|
22793
|
+
take as hL,
|
|
22794
|
+
runDrain as hM,
|
|
22795
|
+
min$1 as hN,
|
|
22796
|
+
ChildProcessSpawner as hO,
|
|
22797
|
+
make$b as hP,
|
|
22798
|
+
mkString as hQ,
|
|
22799
|
+
decodeText as hR,
|
|
22800
|
+
ForkPoint as hS,
|
|
22801
|
+
TokenUsage as hT,
|
|
22802
|
+
MessagePart as hU,
|
|
22803
|
+
Message as hV,
|
|
22804
|
+
parseGitHubPullRequestUrl as hW,
|
|
22805
|
+
PullRequestReviewer as hX,
|
|
22806
|
+
PullRequestLabel as hY,
|
|
22807
|
+
PullRequestComment as hZ,
|
|
22808
|
+
DiffSide as h_,
|
|
22809
|
+
fiberEnterInterruptibleUnsafe as ha,
|
|
22810
|
+
compose as hb,
|
|
22811
|
+
collect as hc,
|
|
22812
|
+
catchDone as hd,
|
|
22813
|
+
takeAll as he,
|
|
22814
|
+
fromArray as hf,
|
|
22815
|
+
whileLoop as hg,
|
|
22816
|
+
matchEffect as hh,
|
|
22817
|
+
defaultFormatter as hi,
|
|
22818
|
+
logFatal as hj,
|
|
22819
|
+
isDeferred as hk,
|
|
22820
|
+
hasDies as hl,
|
|
22821
|
+
shutdown as hm,
|
|
22822
|
+
Scheduler as hn,
|
|
22823
|
+
CurrentLogLevel as ho,
|
|
22824
|
+
UnknownFromJsonString as hp,
|
|
22825
|
+
ignoreCause as hq,
|
|
22826
|
+
forever as hr,
|
|
22827
|
+
Class$2 as hs,
|
|
22828
|
+
TaggedStruct as ht,
|
|
22829
|
+
toEncoded as hu,
|
|
22830
|
+
isMaxLength as hv,
|
|
22831
|
+
makeFilter as hw,
|
|
22832
|
+
isPattern as hx,
|
|
22833
|
+
runLast as hy,
|
|
22834
|
+
fromOption as hz,
|
|
21626
22835
|
isEffect as i,
|
|
21627
|
-
|
|
21628
|
-
|
|
21629
|
-
|
|
21630
|
-
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
|
|
21650
|
-
|
|
21651
|
-
|
|
21652
|
-
|
|
21653
|
-
|
|
21654
|
-
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21658
|
-
|
|
21659
|
-
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
22836
|
+
threadDeviceId as i$,
|
|
22837
|
+
PULL_REQUEST_REFRESH as i0,
|
|
22838
|
+
parseGitHubRepository as i1,
|
|
22839
|
+
request as i2,
|
|
22840
|
+
Class$1 as i3,
|
|
22841
|
+
AgentProfile as i4,
|
|
22842
|
+
AccountProviderId as i5,
|
|
22843
|
+
ProjectAction as i6,
|
|
22844
|
+
Project as i7,
|
|
22845
|
+
BooleanFromBit as i8,
|
|
22846
|
+
Worktree as i9,
|
|
22847
|
+
filter$2 as iA,
|
|
22848
|
+
schedule as iB,
|
|
22849
|
+
BrowserFrame as iC,
|
|
22850
|
+
PagePick as iD,
|
|
22851
|
+
defaultClientSettings as iE,
|
|
22852
|
+
ClientSettings as iF,
|
|
22853
|
+
parsePairingUrl as iG,
|
|
22854
|
+
pairingUrl as iH,
|
|
22855
|
+
Environment as iI,
|
|
22856
|
+
relayWebSocketUrl as iJ,
|
|
22857
|
+
remoteWebSocketUrl as iK,
|
|
22858
|
+
CHALLENGE_WAIT_MS as iL,
|
|
22859
|
+
dialPlan as iM,
|
|
22860
|
+
REMOTE_PROTOCOL_VERSION as iN,
|
|
22861
|
+
DIRECT_CHECK_INTERVAL_MS as iO,
|
|
22862
|
+
DIRECT_CHECK_TIMEOUT_MS as iP,
|
|
22863
|
+
next as iQ,
|
|
22864
|
+
bytes as iR,
|
|
22865
|
+
Timestamp as iS,
|
|
22866
|
+
RoutineSchedule as iT,
|
|
22867
|
+
RoutineRun as iU,
|
|
22868
|
+
launch as iV,
|
|
22869
|
+
uninterruptible as iW,
|
|
22870
|
+
parseUnsafe as iX,
|
|
22871
|
+
RoutineWorkspace as iY,
|
|
22872
|
+
LinearIssue as iZ,
|
|
22873
|
+
when as i_,
|
|
22874
|
+
timeoutOption as ia,
|
|
22875
|
+
ScheduledMessage as ib,
|
|
22876
|
+
QueuedMessage as ic,
|
|
22877
|
+
UsageLimit as id,
|
|
22878
|
+
getOrThrow$1 as ie,
|
|
22879
|
+
PullRequestWatch as ig,
|
|
22880
|
+
PullRequestLink as ih,
|
|
22881
|
+
allWatchEventKinds as ii,
|
|
22882
|
+
enabledProviders as ij,
|
|
22883
|
+
transcriptThreadId$1 as ik,
|
|
22884
|
+
resumeGraceMs as il,
|
|
22885
|
+
fail$2 as im,
|
|
22886
|
+
WAIT_AGENT_TOOL as io,
|
|
22887
|
+
startingProvider as ip,
|
|
22888
|
+
kilobytes as iq,
|
|
22889
|
+
monotonicTimeNanos as ir,
|
|
22890
|
+
retry as is,
|
|
22891
|
+
spaced as it,
|
|
22892
|
+
die as iu,
|
|
22893
|
+
snakeToCamel as iv,
|
|
22894
|
+
camelToSnake as iw,
|
|
22895
|
+
UpdatableProviderId as ix,
|
|
22896
|
+
filter$4 as iy,
|
|
22897
|
+
AgentAccount as iz,
|
|
21689
22898
|
toCodecStringTree as j,
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
|
|
22899
|
+
shownScreen as j0,
|
|
22900
|
+
devicePlatformOf as j1,
|
|
22901
|
+
RUN_AGENT_TOOL as j2,
|
|
22902
|
+
ARTIFACT_THEME_GUIDE as j3,
|
|
22903
|
+
DeviceUrl as j4,
|
|
22904
|
+
DeviceApp as j5,
|
|
22905
|
+
DeviceButton as j6,
|
|
22906
|
+
WatchEventKind as j7,
|
|
22907
|
+
GuideGroup as j8,
|
|
22908
|
+
PullRequestGuide as j9,
|
|
22909
|
+
flatten$4 as ja,
|
|
22910
|
+
diskFullness as jb,
|
|
22911
|
+
pretty as jc,
|
|
22912
|
+
min as jd,
|
|
22913
|
+
exponential as je,
|
|
22914
|
+
desktopOnlyPushes as jf,
|
|
22915
|
+
reachesPhone as jg,
|
|
22916
|
+
mutations as jh,
|
|
22917
|
+
desktopOnlyMethods as ji,
|
|
22918
|
+
isAddressNotUpYet as jj,
|
|
22919
|
+
ClientFrame as jk,
|
|
22920
|
+
empty$2 as jl,
|
|
22921
|
+
BindHost as jm,
|
|
22922
|
+
getAugmentedNamespace as jn,
|
|
22923
|
+
make$t as jo,
|
|
22924
|
+
NativeSpan as jp,
|
|
22925
|
+
currentTimeNanos as jq,
|
|
22926
|
+
isPortInUse as jr,
|
|
21695
22927
|
decodeUnknownEffect as k,
|
|
21696
22928
|
logError as l,
|
|
21697
22929
|
identity as m,
|