@cmmd-center/forge 0.10.13 → 0.10.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BunHttpServer-CjwNydcy.cjs → BunHttpServer-BhE7Szci.cjs} +6 -6
- package/dist/{BunHttpServer-GM72b26K.mjs → BunHttpServer-VI75aqJw.mjs} +6 -6
- package/dist/{BunPTY-B4Ra6mph.cjs → BunPTY-86ttlTi6.cjs} +3 -3
- package/dist/{BunPTY-C_ONQ8rt.mjs → BunPTY-oVISucl_.mjs} +3 -3
- package/dist/{BunServices-CUeOgVUt.cjs → BunServices-BwE9KexF.cjs} +3 -3
- package/dist/{BunServices-B-6JkR0Q.mjs → BunServices-D0JTDujL.mjs} +3 -3
- package/dist/{Cache-D56wNKiH.cjs → Cache-CWlxNDbC.cjs} +6 -6
- package/dist/{Cache-da-A9JAa.mjs → Cache-p0X77SKw.mjs} +3 -3
- package/dist/{Config-D0zF6ChD.mjs → Config-AqUR_lhX.mjs} +2 -2
- package/dist/{Config-e5bi-5Ut.cjs → Config-CkEzdD9L.cjs} +2 -2
- package/dist/{HttpServer-B-QOc7bR.cjs → HttpServer-DGoLR-kU.cjs} +4 -4
- package/dist/{HttpServer-HhjqDZlB.mjs → HttpServer-DNGCTTdk.mjs} +3 -3
- package/dist/{NodeHttpServer-Cy1XvkSE.cjs → NodeHttpServer-BPjxt_DT.cjs} +7 -7
- package/dist/{NodeHttpServer-DmEyd0J4.mjs → NodeHttpServer-Dw7ivXfX.mjs} +7 -7
- package/dist/{NodePTY-DU_KoZdd.mjs → NodePTY-CVH2yNYl.mjs} +4 -4
- package/dist/{NodePTY-wATyTf3M.cjs → NodePTY-Cps0jsDA.cjs} +4 -4
- package/dist/{NodeServices-DeNLW36O.mjs → NodeServices-CBNXOYLG.mjs} +3 -3
- package/dist/{NodeServices-pfwgkiUu.cjs → NodeServices-Cw6SxEbl.cjs} +3 -3
- package/dist/{NodeServices-BqfcuvmN.cjs → NodeServices-Ddr-tYRu.cjs} +1 -1
- package/dist/{NodeSqliteClient-PZ6NN2gq.cjs → NodeSqliteClient-CmxPzcBf.cjs} +7 -7
- package/dist/{NodeSqliteClient-BqUcml1B.mjs → NodeSqliteClient-DGInbxQ3.mjs} +6 -6
- package/dist/{NodeTerminal-DfKMT-mE.cjs → NodeTerminal-5iWbO0B2.cjs} +6 -6
- package/dist/{NodeTerminal-DBDxXuu0.mjs → NodeTerminal-BEGtoMSS.mjs} +3 -3
- package/dist/{PTY-DB-DmqyE.cjs → PTY-BxYDiW3h.cjs} +2 -2
- package/dist/{PTY-DdjcAGrF.mjs → PTY-rIPf52QR.mjs} +2 -2
- package/dist/{Path-CHDjKLrB.cjs → Path-Be7zSwar.cjs} +281 -54
- package/dist/{Path-B0vKGzx2.mjs → Path-C6Zb2WHp.mjs} +271 -58
- package/dist/{Schema-BK7-mN_J.mjs → Schema-CJyk7ah1.mjs} +65 -3
- package/dist/{Schema-Cf_uEUQU.cjs → Schema-dLi7Qssy.cjs} +76 -2
- package/dist/{SqlError-Du_dEWbw.cjs → SqlError-Bt0Bcd5C.cjs} +4 -4
- package/dist/{SqlError-LFObCDir.mjs → SqlError-cyJT2IRY.mjs} +3 -3
- package/dist/{SqliteClient-D4Srj6O8.cjs → SqliteClient-B08FzZM4.cjs} +6 -6
- package/dist/{SqliteClient-DdItRZUr.mjs → SqliteClient-CIsITMoQ.mjs} +5 -5
- package/dist/bin.cjs +74 -47
- package/dist/bin.mjs +211 -184
- package/dist/client/assets/{DiffPanel-DGiCJd76.js → DiffPanel-Bnkifxef.js} +3 -3
- package/dist/client/assets/{DiffPanel.logic-Dd5YF6k3.js → DiffPanel.logic-Bk4d9mRT.js} +2 -2
- package/dist/client/assets/{DiffPanelShell-C-nlQxal.js → DiffPanelShell-D_nSDbjF.js} +104 -104
- package/dist/client/assets/{DiffWorkerPoolProvider-CfmtkBLg.js → DiffWorkerPoolProvider-BO-u17g1.js} +9 -9
- package/dist/client/assets/{PullRequestCodePanel-xkECqRzW.js → PullRequestCodePanel-Bbuxcu5g.js} +3 -3
- package/dist/client/assets/{Virtualizer-CVyQexgp.js → Virtualizer-BxZHsCOD.js} +2 -2
- package/dist/client/assets/{index-CUmbThfW.css → index-BMcOaHS_.css} +1 -1
- package/dist/client/assets/{index-BD9iZwyM.js → index-BeMh8T3m.js} +58 -58
- package/dist/client/index.html +5 -5
- package/dist/forge-build.json +1 -1
- package/dist/{open-D8mGyWmt.mjs → open-FIgTDosf.mjs} +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $
|
|
3
|
+
import { $o as fiberAwait, $r as runPromise, Aa as Scope, Ai as void_, As as uninterruptibleMask, Bc as empty$4, Bl as hasProperty, Bn as catch_$1, Cn as andThen, Di as uninterruptibleMask$1, Dl as NodeInspectSymbol, Dn as as, Ds as suspend$3, Ei as uninterruptible, Er as map$2, Es as succeedNone, Fa as forkUnsafe, Fr as onError, Hn as contextWith, Hr as promise, Ic as succeed$2, Il as hash, Ir as onExit$2, Jn as exit, Ka as doneUnsafe, Kc as makeUnsafe$5, La as makeUnsafe$3, Ma as addFinalizerExit, Mi as whileLoop, Ms as void_$1, Na as close, Nc as isFailure, Ni as withFiber, Nl as equals, Nn as catchCause$2, Oc as headUnsafe, Ol as toJson, Os as sync$1, Pc as isSuccess, Po as squash, Ql as constTrue, Qo as exitZipRight, Qr as runForkWith, Qs as millis, Ra as provide, Rc as Service, Ri as yieldNow, Rn as catchTag, Rr as onInterrupt, Si as try_, Ts as succeed$5, Uo as asSome, Vc as get$4, Vn as context, Vo as andThen$1, Wa as _await, Wc as getUnsafe, Wn as delay, Wo as callback$1, Wr as provideContext$2, Xn as failCause$3, Xo as exitInterrupt$1, Xs as isZero, Ya as interruptWith, Yn as fail$2, Ys as isFinite, Zo as exitVoid, Zr as runFork, _l as causeFail, _o as die$2, _r as interruptibleMask, ac as zero, ai as scopedWith, ao as interrupt$1, ar as fnUntraced, as as fiberJoin, au as pipe, bl as exitFailCause, ca as Clock, ci as sleep, cl as some, cr as forkChild, cs as flatMap$3, da as Error$1, dc as fromIterable$2, ea as catchDone, ei as runPromiseExitWith, eo as makeUnsafe$4, eu as constVoid, fa as TaggedError, fc as isArray, fi as suspend$2, fo as ExceededCapacityError, fr as gen, fs as getCurrentFiber, gc as lastNonEmpty, gs as makeLatchUnsafe, hl as PipeInspectableProto, hr as interrupt$2, hs as makeLatch, ia as matchEffect, il as isSome, io as failCause$4, iu as identity, ja as addFinalizer, ji as when, jr as matchCauseEffect, kl as format, kn as asVoid, li as succeed$3, lo as succeed$4, mc as isReadonlyArrayNonEmpty, mi as tap, na as filterDone, nr as flatMapEager, ns as fiberInterruptAll, nu as dual, ol as match, or as forEach$1, ou as pipeArguments, pc as isArrayNonEmpty, pi as sync, pl as Done, qn as ensuring$2, qr as raceFirst, qs as fromInputUnsafe, ra as isDoneCause, rc as toMillis, ri as scope, ro as fail$3, rr as flatten$1, ru as flow, sc as empty$3, sl as none, so as isSuccess$1, sr as forever, ss as fiberRunIn, ta as doneExitFromCause, ti as runPromiseWith, tr as flatMap$2, ts as fiberInterrupt, tu as constant, uo as void_$2, ur as forkIn, vc as map$3, vo as done, wl as withFiber$1, xi as tryPromise, xl as exitSucceed, xo as findError, yc as of, yl as exitFail, ys as onExitPrimitive, zc as add } from "./Schema-CJyk7ah1.mjs";
|
|
4
4
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/Brand.js
|
|
5
5
|
/**
|
|
6
6
|
* This function returns a `Constructor` that **does not apply any runtime
|
|
@@ -26,7 +26,7 @@ function nominal() {
|
|
|
26
26
|
/**
|
|
27
27
|
* @since 4.0.0
|
|
28
28
|
*/
|
|
29
|
-
const TypeId$
|
|
29
|
+
const TypeId$12 = "~effect/platform/PlatformError";
|
|
30
30
|
/**
|
|
31
31
|
* @since 4.0.0
|
|
32
32
|
* @category Models
|
|
@@ -66,7 +66,7 @@ var PlatformError = class extends TaggedError("PlatformError") {
|
|
|
66
66
|
/**
|
|
67
67
|
* @since 4.0.0
|
|
68
68
|
*/
|
|
69
|
-
[TypeId$
|
|
69
|
+
[TypeId$12] = TypeId$12;
|
|
70
70
|
get message() {
|
|
71
71
|
return this.reason.message;
|
|
72
72
|
}
|
|
@@ -230,7 +230,7 @@ const runIn = fiberRunIn;
|
|
|
230
230
|
* @category constructors
|
|
231
231
|
* @since 3.8.0
|
|
232
232
|
*/
|
|
233
|
-
const makeUnsafe$
|
|
233
|
+
const makeUnsafe$2 = makeLatchUnsafe;
|
|
234
234
|
/**
|
|
235
235
|
* Creates a new Latch.
|
|
236
236
|
*
|
|
@@ -266,7 +266,7 @@ const makeUnsafe$1 = makeLatchUnsafe;
|
|
|
266
266
|
* @category constructors
|
|
267
267
|
* @since 3.8.0
|
|
268
268
|
*/
|
|
269
|
-
const make$
|
|
269
|
+
const make$11 = makeLatch;
|
|
270
270
|
//#endregion
|
|
271
271
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableList.js
|
|
272
272
|
/**
|
|
@@ -367,7 +367,7 @@ const Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
|
367
367
|
* @since 4.0.0
|
|
368
368
|
* @category constructors
|
|
369
369
|
*/
|
|
370
|
-
const make$
|
|
370
|
+
const make$10 = () => ({
|
|
371
371
|
head: void 0,
|
|
372
372
|
tail: void 0,
|
|
373
373
|
length: 0
|
|
@@ -578,7 +578,7 @@ const appendAllUnsafe = (self, messages, mutable = false) => {
|
|
|
578
578
|
* @since 4.0.0
|
|
579
579
|
* @category mutations
|
|
580
580
|
*/
|
|
581
|
-
const clear = (self) => {
|
|
581
|
+
const clear$1 = (self) => {
|
|
582
582
|
self.head = self.tail = void 0;
|
|
583
583
|
self.length = 0;
|
|
584
584
|
};
|
|
@@ -628,7 +628,7 @@ const takeN = (self, n) => {
|
|
|
628
628
|
n = Math.min(n, self.length);
|
|
629
629
|
if (n === self.length && self.head?.offset === 0 && !self.head.next) {
|
|
630
630
|
const array = self.head.array;
|
|
631
|
-
clear(self);
|
|
631
|
+
clear$1(self);
|
|
632
632
|
return array;
|
|
633
633
|
}
|
|
634
634
|
const array = new Array(n);
|
|
@@ -642,13 +642,13 @@ const takeN = (self, n) => {
|
|
|
642
642
|
if (index === n) {
|
|
643
643
|
self.head = chunk;
|
|
644
644
|
self.length -= n;
|
|
645
|
-
if (self.length === 0) clear(self);
|
|
645
|
+
if (self.length === 0) clear$1(self);
|
|
646
646
|
return array;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
chunk = chunk.next;
|
|
650
650
|
}
|
|
651
|
-
clear(self);
|
|
651
|
+
clear$1(self);
|
|
652
652
|
return array;
|
|
653
653
|
};
|
|
654
654
|
/**
|
|
@@ -748,7 +748,7 @@ const take$1 = (self) => {
|
|
|
748
748
|
self.head.offset++;
|
|
749
749
|
self.length--;
|
|
750
750
|
if (self.head.offset === self.head.array.length) if (self.head.next) self.head = self.head.next;
|
|
751
|
-
else clear(self);
|
|
751
|
+
else clear$1(self);
|
|
752
752
|
return message;
|
|
753
753
|
};
|
|
754
754
|
/**
|
|
@@ -852,9 +852,9 @@ const filter$1 = (self, f) => {
|
|
|
852
852
|
const remove$1 = (self, value) => filter$1(self, (v) => v !== value);
|
|
853
853
|
//#endregion
|
|
854
854
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableRef.js
|
|
855
|
-
const TypeId$
|
|
855
|
+
const TypeId$11 = "~effect/MutableRef";
|
|
856
856
|
const MutableRefProto = {
|
|
857
|
-
[TypeId$
|
|
857
|
+
[TypeId$11]: TypeId$11,
|
|
858
858
|
...PipeInspectableProto,
|
|
859
859
|
toJSON() {
|
|
860
860
|
return {
|
|
@@ -887,7 +887,7 @@ const MutableRefProto = {
|
|
|
887
887
|
* @since 2.0.0
|
|
888
888
|
* @category constructors
|
|
889
889
|
*/
|
|
890
|
-
const make$
|
|
890
|
+
const make$9 = (value) => {
|
|
891
891
|
const ref = Object.create(MutableRefProto);
|
|
892
892
|
ref.current = value;
|
|
893
893
|
return ref;
|
|
@@ -966,7 +966,7 @@ const set$1 = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
966
966
|
*
|
|
967
967
|
* @since 2.0.0
|
|
968
968
|
*/
|
|
969
|
-
const TypeId$
|
|
969
|
+
const TypeId$10 = "~effect/PubSub";
|
|
970
970
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
971
971
|
/**
|
|
972
972
|
* Creates a PubSub with a custom atomic implementation and strategy.
|
|
@@ -991,7 +991,7 @@ const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
|
991
991
|
* @since 4.0.0
|
|
992
992
|
* @category constructors
|
|
993
993
|
*/
|
|
994
|
-
const make$
|
|
994
|
+
const make$8 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe$3(), makeUnsafe$2(false), make$9(false), options.strategy()));
|
|
995
995
|
/**
|
|
996
996
|
* Creates an unbounded `PubSub`.
|
|
997
997
|
*
|
|
@@ -1025,7 +1025,7 @@ const make$7 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(),
|
|
|
1025
1025
|
* @since 2.0.0
|
|
1026
1026
|
* @category constructors
|
|
1027
1027
|
*/
|
|
1028
|
-
const unbounded$1 = (options) => make$
|
|
1028
|
+
const unbounded$1 = (options) => make$8({
|
|
1029
1029
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1030
1030
|
strategy: () => new DroppingStrategy()
|
|
1031
1031
|
});
|
|
@@ -1163,7 +1163,7 @@ const publish = /* @__PURE__ */ dual(2, (self, value) => suspend$2(() => {
|
|
|
1163
1163
|
* @category subscription
|
|
1164
1164
|
*/
|
|
1165
1165
|
const subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1166
|
-
const localScope = get$
|
|
1166
|
+
const localScope = get$4(services, Scope);
|
|
1167
1167
|
const scope = forkUnsafe(self.scope);
|
|
1168
1168
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy);
|
|
1169
1169
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1216,7 +1216,7 @@ const takeAll$1 = (self) => suspend$2(function loop(value) {
|
|
|
1216
1216
|
return succeed$3(as);
|
|
1217
1217
|
});
|
|
1218
1218
|
const pollForItem = (self) => {
|
|
1219
|
-
const deferred = makeUnsafe$
|
|
1219
|
+
const deferred = makeUnsafe$4();
|
|
1220
1220
|
let set = self.subscribers.get(self.subscription);
|
|
1221
1221
|
if (!set) {
|
|
1222
1222
|
set = /* @__PURE__ */ new Set();
|
|
@@ -1241,7 +1241,7 @@ const removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1241
1241
|
set.delete(pollers);
|
|
1242
1242
|
if (set.size === 0) subscribers.delete(subscription);
|
|
1243
1243
|
};
|
|
1244
|
-
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$
|
|
1244
|
+
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$10(), makeUnsafe$2(false), make$9(false), strategy, pubsub.replayWindow());
|
|
1245
1245
|
var UnboundedPubSub = class {
|
|
1246
1246
|
publisherHead = {
|
|
1247
1247
|
value: AbsentValue,
|
|
@@ -1407,7 +1407,7 @@ var SubscriptionImpl = class {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
};
|
|
1409
1409
|
var PubSubImpl = class {
|
|
1410
|
-
[TypeId$
|
|
1410
|
+
[TypeId$10] = { _A: identity };
|
|
1411
1411
|
pubsub;
|
|
1412
1412
|
subscribers;
|
|
1413
1413
|
scope;
|
|
@@ -1587,7 +1587,7 @@ const emptyReplayWindow = {
|
|
|
1587
1587
|
/**
|
|
1588
1588
|
* @since 3.8.0
|
|
1589
1589
|
*/
|
|
1590
|
-
const TypeId$
|
|
1590
|
+
const TypeId$9 = "~effect/Queue";
|
|
1591
1591
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
1592
1592
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
1593
1593
|
const variance$1 = {
|
|
@@ -1595,7 +1595,7 @@ const variance$1 = {
|
|
|
1595
1595
|
_E: identity
|
|
1596
1596
|
};
|
|
1597
1597
|
const QueueProto = {
|
|
1598
|
-
[TypeId$
|
|
1598
|
+
[TypeId$9]: variance$1,
|
|
1599
1599
|
[EnqueueTypeId]: variance$1,
|
|
1600
1600
|
[DequeueTypeId]: variance$1,
|
|
1601
1601
|
...PipeInspectableProto,
|
|
@@ -1647,12 +1647,12 @@ const QueueProto = {
|
|
|
1647
1647
|
* })
|
|
1648
1648
|
* ```
|
|
1649
1649
|
*/
|
|
1650
|
-
const make$
|
|
1650
|
+
const make$7 = (options) => withFiber$1((fiber) => {
|
|
1651
1651
|
const self = Object.create(QueueProto);
|
|
1652
1652
|
self.dispatcher = fiber.currentDispatcher;
|
|
1653
1653
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1654
1654
|
self.strategy = options?.strategy ?? "suspend";
|
|
1655
|
-
self.messages = make$
|
|
1655
|
+
self.messages = make$10();
|
|
1656
1656
|
self.scheduleRunning = false;
|
|
1657
1657
|
self.state = {
|
|
1658
1658
|
_tag: "Open",
|
|
@@ -1687,7 +1687,7 @@ const make$6 = (options) => withFiber$1((fiber) => {
|
|
|
1687
1687
|
* @since 2.0.0
|
|
1688
1688
|
* @category Constructors
|
|
1689
1689
|
*/
|
|
1690
|
-
const bounded = (capacity) => make$
|
|
1690
|
+
const bounded = (capacity) => make$7({ capacity });
|
|
1691
1691
|
/**
|
|
1692
1692
|
* Creates a bounded queue with sliding strategy. When the queue reaches capacity,
|
|
1693
1693
|
* new elements are added and the oldest elements are dropped.
|
|
@@ -1718,7 +1718,7 @@ const bounded = (capacity) => make$6({ capacity });
|
|
|
1718
1718
|
* @since 2.0.0
|
|
1719
1719
|
* @category Constructors
|
|
1720
1720
|
*/
|
|
1721
|
-
const sliding = (capacity) => make$
|
|
1721
|
+
const sliding = (capacity) => make$7({
|
|
1722
1722
|
capacity,
|
|
1723
1723
|
strategy: "sliding"
|
|
1724
1724
|
});
|
|
@@ -1754,7 +1754,7 @@ const sliding = (capacity) => make$6({
|
|
|
1754
1754
|
* @since 2.0.0
|
|
1755
1755
|
* @category Constructors
|
|
1756
1756
|
*/
|
|
1757
|
-
const unbounded = () => make$
|
|
1757
|
+
const unbounded = () => make$7();
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Add a message to the queue. Returns `false` if the queue is done.
|
|
1760
1760
|
*
|
|
@@ -2095,7 +2095,7 @@ const endUnsafe = (self) => failCauseUnsafe(self, causeFail(Done()));
|
|
|
2095
2095
|
*/
|
|
2096
2096
|
const shutdown = (self) => sync$1(() => {
|
|
2097
2097
|
if (self.state._tag === "Done") return true;
|
|
2098
|
-
clear(self.messages);
|
|
2098
|
+
clear$1(self.messages);
|
|
2099
2099
|
const offers = self.state.offers;
|
|
2100
2100
|
finalize(self, self.state._tag === "Open" ? exitInterrupt : self.state.exit);
|
|
2101
2101
|
if (offers.size > 0) {
|
|
@@ -2480,7 +2480,7 @@ const finalize = (self, exit) => {
|
|
|
2480
2480
|
* @since 2.0.0
|
|
2481
2481
|
* @category constructors
|
|
2482
2482
|
*/
|
|
2483
|
-
const makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
2483
|
+
const makeUnsafe$1 = (permits) => new SemaphoreImpl(permits);
|
|
2484
2484
|
var SemaphoreImpl = class {
|
|
2485
2485
|
waiters = /* @__PURE__ */ new Set();
|
|
2486
2486
|
taken = 0;
|
|
@@ -2588,7 +2588,7 @@ var SemaphoreImpl = class {
|
|
|
2588
2588
|
* @since 2.0.0
|
|
2589
2589
|
* @category constructors
|
|
2590
2590
|
*/
|
|
2591
|
-
const make$
|
|
2591
|
+
const make$6 = (permits) => sync$1(() => new SemaphoreImpl(permits));
|
|
2592
2592
|
//#endregion
|
|
2593
2593
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/Channel.js
|
|
2594
2594
|
/**
|
|
@@ -2653,7 +2653,7 @@ const make$5 = (permits) => sync$1(() => new SemaphoreImpl(permits));
|
|
|
2653
2653
|
* @since 4.0.0
|
|
2654
2654
|
* @category Type Identifiers
|
|
2655
2655
|
*/
|
|
2656
|
-
const TypeId$
|
|
2656
|
+
const TypeId$8 = "~effect/Channel";
|
|
2657
2657
|
/**
|
|
2658
2658
|
* Tests if a value is a `Channel`.
|
|
2659
2659
|
*
|
|
@@ -2669,9 +2669,9 @@ const TypeId$7 = "~effect/Channel";
|
|
|
2669
2669
|
* @category guards
|
|
2670
2670
|
* @since 3.5.4
|
|
2671
2671
|
*/
|
|
2672
|
-
const isChannel = (u) => hasProperty(u, TypeId$
|
|
2672
|
+
const isChannel = (u) => hasProperty(u, TypeId$8);
|
|
2673
2673
|
const ChannelProto = {
|
|
2674
|
-
[TypeId$
|
|
2674
|
+
[TypeId$8]: {
|
|
2675
2675
|
_Env: identity,
|
|
2676
2676
|
_InErr: identity,
|
|
2677
2677
|
_InElem: identity,
|
|
@@ -2785,7 +2785,7 @@ const toTransform = (channel) => channel.transform;
|
|
|
2785
2785
|
* @since 2.0.0
|
|
2786
2786
|
*/
|
|
2787
2787
|
const DefaultChunkSize$1 = 4096;
|
|
2788
|
-
const asyncQueue = (scope, f, options) => make$
|
|
2788
|
+
const asyncQueue = (scope, f, options) => make$7({
|
|
2789
2789
|
capacity: options?.bufferSize,
|
|
2790
2790
|
strategy: options?.strategy
|
|
2791
2791
|
}).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => forkIn(provide(f(queue), scope), scope)));
|
|
@@ -3475,7 +3475,7 @@ const mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntrace
|
|
|
3475
3475
|
const runFork = runForkWith(yield* context());
|
|
3476
3476
|
const trackFiber = runIn(forkedScope);
|
|
3477
3477
|
if (options.unordered) {
|
|
3478
|
-
const semaphore = makeUnsafe(concurrencyN);
|
|
3478
|
+
const semaphore = makeUnsafe$1(concurrencyN);
|
|
3479
3479
|
const release = constant(semaphore.release(1));
|
|
3480
3480
|
const handle = matchCauseEffect({
|
|
3481
3481
|
onFailure: (cause) => flatMap$2(failCause$2(queue, cause), release),
|
|
@@ -3843,8 +3843,8 @@ const orDie$1 = (self) => catch_(self, die$1);
|
|
|
3843
3843
|
*/
|
|
3844
3844
|
const mergeAll = /* @__PURE__ */ dual(2, (channels, { bufferSize = 16, concurrency, switch: switch_ = false }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
3845
3845
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
3846
|
-
const semaphore = switch_ ? void 0 : makeUnsafe(concurrencyN);
|
|
3847
|
-
const doneLatch = yield* make$
|
|
3846
|
+
const semaphore = switch_ ? void 0 : makeUnsafe$1(concurrencyN);
|
|
3847
|
+
const doneLatch = yield* make$11(true);
|
|
3848
3848
|
const fibers = /* @__PURE__ */ new Set();
|
|
3849
3849
|
const queue = yield* bounded(bufferSize);
|
|
3850
3850
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -4139,7 +4139,7 @@ const onExit$1 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBrack
|
|
|
4139
4139
|
*/
|
|
4140
4140
|
const ensuring$1 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit$1(self, (_) => finalizer));
|
|
4141
4141
|
const runWith = (self, f, onHalt) => suspend$2(() => {
|
|
4142
|
-
const scope = makeUnsafe$
|
|
4142
|
+
const scope = makeUnsafe$3();
|
|
4143
4143
|
return catchDone(flatMap$2(toTransform(self)(done(), scope), f), onHalt ? onHalt : succeed$3).pipe(onExit$2((exit) => close(scope, exit)));
|
|
4144
4144
|
});
|
|
4145
4145
|
/**
|
|
@@ -4267,14 +4267,14 @@ const runFold$1 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend$2(() =>
|
|
|
4267
4267
|
const toPullScoped = (self, scope) => toTransform(self)(done(), scope);
|
|
4268
4268
|
//#endregion
|
|
4269
4269
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/internal/stream.js
|
|
4270
|
-
const TypeId$
|
|
4270
|
+
const TypeId$7 = "~effect/Stream";
|
|
4271
4271
|
const streamVariance = {
|
|
4272
4272
|
_R: identity,
|
|
4273
4273
|
_E: identity,
|
|
4274
4274
|
_A: identity
|
|
4275
4275
|
};
|
|
4276
4276
|
const StreamProto = {
|
|
4277
|
-
[TypeId$
|
|
4277
|
+
[TypeId$7]: streamVariance,
|
|
4278
4278
|
pipe() {
|
|
4279
4279
|
return pipeArguments(this, arguments);
|
|
4280
4280
|
}
|
|
@@ -4287,7 +4287,7 @@ const fromChannel$2 = (channel) => {
|
|
|
4287
4287
|
};
|
|
4288
4288
|
//#endregion
|
|
4289
4289
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/Sink.js
|
|
4290
|
-
const TypeId$
|
|
4290
|
+
const TypeId$6 = "~effect/Sink";
|
|
4291
4291
|
const endVoid = /* @__PURE__ */ succeed$3([void 0]);
|
|
4292
4292
|
const sinkVariance = {
|
|
4293
4293
|
_A: identity,
|
|
@@ -4297,7 +4297,7 @@ const sinkVariance = {
|
|
|
4297
4297
|
_R: identity
|
|
4298
4298
|
};
|
|
4299
4299
|
const SinkProto = {
|
|
4300
|
-
[TypeId$
|
|
4300
|
+
[TypeId$6]: sinkVariance,
|
|
4301
4301
|
pipe() {
|
|
4302
4302
|
return pipeArguments(this, arguments);
|
|
4303
4303
|
}
|
|
@@ -4319,7 +4319,7 @@ const SinkProto = {
|
|
|
4319
4319
|
* @since 2.0.0
|
|
4320
4320
|
* @category guards
|
|
4321
4321
|
*/
|
|
4322
|
-
const isSink = (u) => hasProperty(u, TypeId$
|
|
4322
|
+
const isSink = (u) => hasProperty(u, TypeId$6);
|
|
4323
4323
|
/**
|
|
4324
4324
|
* Creates a sink from a `Channel`.
|
|
4325
4325
|
*
|
|
@@ -4456,9 +4456,9 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$2(
|
|
|
4456
4456
|
const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$2(effect, toChannel$1)));
|
|
4457
4457
|
//#endregion
|
|
4458
4458
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableHashMap.js
|
|
4459
|
-
const TypeId$
|
|
4459
|
+
const TypeId$5 = "~effect/collections/MutableHashMap";
|
|
4460
4460
|
const MutableHashMapProto = {
|
|
4461
|
-
[TypeId$
|
|
4461
|
+
[TypeId$5]: TypeId$5,
|
|
4462
4462
|
[Symbol.iterator]() {
|
|
4463
4463
|
return this.backing[Symbol.iterator]();
|
|
4464
4464
|
},
|
|
@@ -4523,7 +4523,7 @@ const empty$1 = () => {
|
|
|
4523
4523
|
* @since 2.0.0
|
|
4524
4524
|
* @category constructors
|
|
4525
4525
|
*/
|
|
4526
|
-
const make$
|
|
4526
|
+
const make$5 = (...entries) => fromIterable$1(entries);
|
|
4527
4527
|
/**
|
|
4528
4528
|
* Creates a MutableHashMap from an iterable collection of key-value pairs.
|
|
4529
4529
|
*
|
|
@@ -4575,7 +4575,7 @@ const fromIterable$1 = (entries) => {
|
|
|
4575
4575
|
* @since 2.0.0
|
|
4576
4576
|
* @category elements
|
|
4577
4577
|
*/
|
|
4578
|
-
const get$
|
|
4578
|
+
const get$3 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
4579
4579
|
if (self.backing.has(key)) return some(self.backing.get(key));
|
|
4580
4580
|
else if (isSimpleKey(key)) return none();
|
|
4581
4581
|
const refKey = referentialKeysCache.get(self);
|
|
@@ -4596,6 +4596,27 @@ const getFromBucket = (self, bucket, key) => {
|
|
|
4596
4596
|
return none();
|
|
4597
4597
|
};
|
|
4598
4598
|
/**
|
|
4599
|
+
* Checks if the MutableHashMap contains the specified key.
|
|
4600
|
+
*
|
|
4601
|
+
* @example
|
|
4602
|
+
* ```ts
|
|
4603
|
+
* import * as MutableHashMap from "effect/MutableHashMap"
|
|
4604
|
+
*
|
|
4605
|
+
* const map = MutableHashMap.make(["key1", 42], ["key2", 100])
|
|
4606
|
+
*
|
|
4607
|
+
* console.log(MutableHashMap.has(map, "key1")) // true
|
|
4608
|
+
* console.log(MutableHashMap.has(map, "key3")) // false
|
|
4609
|
+
*
|
|
4610
|
+
* // Pipe-able version
|
|
4611
|
+
* const hasKey = MutableHashMap.has("key1")
|
|
4612
|
+
* console.log(hasKey(map)) // true
|
|
4613
|
+
* ```
|
|
4614
|
+
*
|
|
4615
|
+
* @since 2.0.0
|
|
4616
|
+
* @category elements
|
|
4617
|
+
*/
|
|
4618
|
+
const has = /* @__PURE__ */ dual(2, (self, key) => isSome(get$3(self, key)));
|
|
4619
|
+
/**
|
|
4599
4620
|
* Sets a key-value pair in the MutableHashMap, mutating the map in place.
|
|
4600
4621
|
* If the key already exists, its value is updated.
|
|
4601
4622
|
*
|
|
@@ -4711,6 +4732,41 @@ const remove = /* @__PURE__ */ dual(2, (self, key_) => {
|
|
|
4711
4732
|
return self;
|
|
4712
4733
|
});
|
|
4713
4734
|
/**
|
|
4735
|
+
* Removes all key-value pairs from the MutableHashMap, mutating the map in place.
|
|
4736
|
+
* The map becomes empty after this operation.
|
|
4737
|
+
*
|
|
4738
|
+
* @example
|
|
4739
|
+
* ```ts
|
|
4740
|
+
* import * as MutableHashMap from "effect/MutableHashMap"
|
|
4741
|
+
*
|
|
4742
|
+
* const map = MutableHashMap.make(
|
|
4743
|
+
* ["key1", 42],
|
|
4744
|
+
* ["key2", 100],
|
|
4745
|
+
* ["key3", 200]
|
|
4746
|
+
* )
|
|
4747
|
+
*
|
|
4748
|
+
* console.log(MutableHashMap.size(map)) // 3
|
|
4749
|
+
*
|
|
4750
|
+
* // Clear all entries
|
|
4751
|
+
* MutableHashMap.clear(map)
|
|
4752
|
+
*
|
|
4753
|
+
* console.log(MutableHashMap.size(map)) // 0
|
|
4754
|
+
* console.log(MutableHashMap.has(map, "key1")) // false
|
|
4755
|
+
*
|
|
4756
|
+
* // Can still add new entries after clearing
|
|
4757
|
+
* MutableHashMap.set(map, "new", 999)
|
|
4758
|
+
* console.log(MutableHashMap.size(map)) // 1
|
|
4759
|
+
* ```
|
|
4760
|
+
*
|
|
4761
|
+
* @since 2.0.0
|
|
4762
|
+
* @category mutations
|
|
4763
|
+
*/
|
|
4764
|
+
const clear = (self) => {
|
|
4765
|
+
self.backing.clear();
|
|
4766
|
+
self.buckets.clear();
|
|
4767
|
+
return self;
|
|
4768
|
+
};
|
|
4769
|
+
/**
|
|
4714
4770
|
* Returns the number of key-value pairs in the MutableHashMap.
|
|
4715
4771
|
*
|
|
4716
4772
|
* @example
|
|
@@ -4736,6 +4792,163 @@ const remove = /* @__PURE__ */ dual(2, (self, key_) => {
|
|
|
4736
4792
|
*/
|
|
4737
4793
|
const size = (self) => self.backing.size;
|
|
4738
4794
|
//#endregion
|
|
4795
|
+
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/RcMap.js
|
|
4796
|
+
/**
|
|
4797
|
+
* @since 3.5.0
|
|
4798
|
+
*/
|
|
4799
|
+
const TypeId$4 = "~effect/RcMap";
|
|
4800
|
+
const makeUnsafe = (options) => ({
|
|
4801
|
+
[TypeId$4]: TypeId$4,
|
|
4802
|
+
lookup: options.lookup,
|
|
4803
|
+
context: options.context,
|
|
4804
|
+
scope: options.scope,
|
|
4805
|
+
idleTimeToLive: options.idleTimeToLive,
|
|
4806
|
+
capacity: options.capacity,
|
|
4807
|
+
state: {
|
|
4808
|
+
_tag: "Open",
|
|
4809
|
+
map: empty$1()
|
|
4810
|
+
},
|
|
4811
|
+
pipe() {
|
|
4812
|
+
return pipeArguments(this, arguments);
|
|
4813
|
+
}
|
|
4814
|
+
});
|
|
4815
|
+
/**
|
|
4816
|
+
* An `RcMap` can contain multiple reference counted resources that can be indexed
|
|
4817
|
+
* by a key. The resources are lazily acquired on the first call to `get` and
|
|
4818
|
+
* released when the last reference is released.
|
|
4819
|
+
*
|
|
4820
|
+
* Complex keys can extend `Equal` and `Hash` to allow lookups by value.
|
|
4821
|
+
*
|
|
4822
|
+
* **Options**
|
|
4823
|
+
*
|
|
4824
|
+
* - `capacity`: The maximum number of resources that can be held in the map.
|
|
4825
|
+
* - `idleTimeToLive`: When the reference count reaches zero, the resource will be released after this duration.
|
|
4826
|
+
*
|
|
4827
|
+
* @since 3.5.0
|
|
4828
|
+
* @category models
|
|
4829
|
+
* @example
|
|
4830
|
+
* ```ts
|
|
4831
|
+
* import { Effect, RcMap } from "effect"
|
|
4832
|
+
*
|
|
4833
|
+
* Effect.gen(function*() {
|
|
4834
|
+
* const map = yield* RcMap.make({
|
|
4835
|
+
* lookup: (key: string) =>
|
|
4836
|
+
* Effect.acquireRelease(
|
|
4837
|
+
* Effect.succeed(`acquired ${key}`),
|
|
4838
|
+
* () => Effect.log(`releasing ${key}`)
|
|
4839
|
+
* )
|
|
4840
|
+
* })
|
|
4841
|
+
*
|
|
4842
|
+
* // Get "foo" from the map twice, which will only acquire it once.
|
|
4843
|
+
* // It will then be released once the scope closes.
|
|
4844
|
+
* yield* RcMap.get(map, "foo").pipe(
|
|
4845
|
+
* Effect.andThen(RcMap.get(map, "foo")),
|
|
4846
|
+
* Effect.scoped
|
|
4847
|
+
* )
|
|
4848
|
+
* })
|
|
4849
|
+
* ```
|
|
4850
|
+
*/
|
|
4851
|
+
const make$4 = (options) => withFiber((fiber) => {
|
|
4852
|
+
const context = fiber.context;
|
|
4853
|
+
const scope = get$4(context, Scope);
|
|
4854
|
+
const self = makeUnsafe({
|
|
4855
|
+
lookup: options.lookup,
|
|
4856
|
+
context,
|
|
4857
|
+
scope,
|
|
4858
|
+
idleTimeToLive: typeof options.idleTimeToLive === "function" ? flow(options.idleTimeToLive, fromInputUnsafe) : constant(fromInputUnsafe(options.idleTimeToLive ?? zero)),
|
|
4859
|
+
capacity: Math.max(options.capacity ?? Number.POSITIVE_INFINITY, 0)
|
|
4860
|
+
});
|
|
4861
|
+
return as(addFinalizerExit(scope, () => {
|
|
4862
|
+
if (self.state._tag === "Closed") return void_;
|
|
4863
|
+
const map = self.state.map;
|
|
4864
|
+
self.state = { _tag: "Closed" };
|
|
4865
|
+
return forEach$1(map, ([, entry]) => exit(close(entry.scope, void_$2))).pipe(tap(() => sync(() => {
|
|
4866
|
+
clear(map);
|
|
4867
|
+
})));
|
|
4868
|
+
}), self);
|
|
4869
|
+
});
|
|
4870
|
+
/**
|
|
4871
|
+
* Retrieves a value from the RcMap by key. If the resource doesn't exist, it will be
|
|
4872
|
+
* acquired using the lookup function. The resource is reference counted and will be
|
|
4873
|
+
* released when the scope closes.
|
|
4874
|
+
*
|
|
4875
|
+
* @since 3.5.0
|
|
4876
|
+
* @category combinators
|
|
4877
|
+
* @example
|
|
4878
|
+
* ```ts
|
|
4879
|
+
* import { Effect, RcMap } from "effect"
|
|
4880
|
+
*
|
|
4881
|
+
* Effect.gen(function*() {
|
|
4882
|
+
* const map = yield* RcMap.make({
|
|
4883
|
+
* lookup: (key: string) =>
|
|
4884
|
+
* Effect.acquireRelease(
|
|
4885
|
+
* Effect.succeed(`Resource: ${key}`),
|
|
4886
|
+
* () => Effect.log(`Released ${key}`)
|
|
4887
|
+
* )
|
|
4888
|
+
* })
|
|
4889
|
+
*
|
|
4890
|
+
* // Get a resource - it will be acquired on first access
|
|
4891
|
+
* const resource = yield* RcMap.get(map, "database")
|
|
4892
|
+
* console.log(resource) // "Resource: database"
|
|
4893
|
+
* }).pipe(Effect.scoped)
|
|
4894
|
+
* ```
|
|
4895
|
+
*/
|
|
4896
|
+
const get$2 = /* @__PURE__ */ dual(2, (self, key) => uninterruptibleMask$1((restore) => {
|
|
4897
|
+
if (self.state._tag === "Closed") return interrupt$2;
|
|
4898
|
+
const state = self.state;
|
|
4899
|
+
const parent = getCurrent();
|
|
4900
|
+
const o = get$3(state.map, key);
|
|
4901
|
+
let entry;
|
|
4902
|
+
if (o._tag === "Some") {
|
|
4903
|
+
entry = o.value;
|
|
4904
|
+
entry.refCount++;
|
|
4905
|
+
} else if (Number.isFinite(self.capacity) && size(self.state.map) >= self.capacity) return fail$2(new ExceededCapacityError(`RcMap attempted to exceed capacity of ${self.capacity}`));
|
|
4906
|
+
else {
|
|
4907
|
+
entry = {
|
|
4908
|
+
deferred: makeUnsafe$4(),
|
|
4909
|
+
scope: makeUnsafe$3(),
|
|
4910
|
+
idleTimeToLive: self.idleTimeToLive(key),
|
|
4911
|
+
finalizer: void 0,
|
|
4912
|
+
fiber: void 0,
|
|
4913
|
+
expiresAt: 0,
|
|
4914
|
+
refCount: 1
|
|
4915
|
+
};
|
|
4916
|
+
entry.finalizer = release(self, key, entry);
|
|
4917
|
+
set(state.map, key, entry);
|
|
4918
|
+
const context = new Map(self.context.mapUnsafe);
|
|
4919
|
+
parent.context.mapUnsafe.forEach((value, key) => {
|
|
4920
|
+
context.set(key, value);
|
|
4921
|
+
});
|
|
4922
|
+
context.set(Scope.key, entry.scope);
|
|
4923
|
+
self.lookup(key).pipe(runForkWith(makeUnsafe$5(context)), runIn(entry.scope)).addObserver((exit) => doneUnsafe(entry.deferred, exit));
|
|
4924
|
+
}
|
|
4925
|
+
return addFinalizer(getUnsafe(parent.context, Scope), entry.finalizer).pipe(andThen(restore(_await(entry.deferred))));
|
|
4926
|
+
}));
|
|
4927
|
+
const release = (self, key, entry) => withFiber((fiber) => {
|
|
4928
|
+
entry.refCount--;
|
|
4929
|
+
if (entry.refCount > 0) return void_;
|
|
4930
|
+
else if (self.state._tag === "Closed" || !has(self.state.map, key) || isZero(entry.idleTimeToLive)) {
|
|
4931
|
+
if (self.state._tag === "Open") remove(self.state.map, key);
|
|
4932
|
+
return close(entry.scope, void_$2);
|
|
4933
|
+
} else if (!isFinite(entry.idleTimeToLive)) return void_;
|
|
4934
|
+
const clock = fiber.getRef(Clock);
|
|
4935
|
+
entry.expiresAt = clock.currentTimeMillisUnsafe() + toMillis(entry.idleTimeToLive);
|
|
4936
|
+
if (entry.fiber) return void_;
|
|
4937
|
+
entry.fiber = interruptibleMask(function loop(restore) {
|
|
4938
|
+
const now = clock.currentTimeMillisUnsafe();
|
|
4939
|
+
const remaining = entry.expiresAt - now;
|
|
4940
|
+
if (remaining <= 0) {
|
|
4941
|
+
if (self.state._tag === "Closed" || entry.refCount > 0) return void_;
|
|
4942
|
+
remove(self.state.map, key);
|
|
4943
|
+
return restore(close(entry.scope, void_$2));
|
|
4944
|
+
}
|
|
4945
|
+
return flatMap$2(clock.sleep(millis(remaining)), () => loop(restore));
|
|
4946
|
+
}).pipe(ensuring$2(sync(() => {
|
|
4947
|
+
entry.fiber = void 0;
|
|
4948
|
+
})), runForkWith(fiber.context), runIn(self.scope));
|
|
4949
|
+
return void_;
|
|
4950
|
+
});
|
|
4951
|
+
//#endregion
|
|
4739
4952
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/internal/rcRef.js
|
|
4740
4953
|
const TypeId$3 = "~effect/RcRef";
|
|
4741
4954
|
const stateEmpty = { _tag: "Empty" };
|
|
@@ -4750,7 +4963,7 @@ var RcRefImpl = class {
|
|
|
4750
4963
|
return pipeArguments(this, arguments);
|
|
4751
4964
|
}
|
|
4752
4965
|
state = stateEmpty;
|
|
4753
|
-
semaphore = /* @__PURE__ */ makeUnsafe(1);
|
|
4966
|
+
semaphore = /* @__PURE__ */ makeUnsafe$1(1);
|
|
4754
4967
|
acquire;
|
|
4755
4968
|
context;
|
|
4756
4969
|
scope;
|
|
@@ -4765,7 +4978,7 @@ var RcRefImpl = class {
|
|
|
4765
4978
|
/** @internal */
|
|
4766
4979
|
const make$3 = (options) => withFiber((fiber) => {
|
|
4767
4980
|
const context = fiber.context;
|
|
4768
|
-
const scope = get$
|
|
4981
|
+
const scope = get$4(context, Scope);
|
|
4769
4982
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive ? fromInputUnsafe(options.idleTimeToLive) : void 0);
|
|
4770
4983
|
return as(addFinalizerExit(scope, () => {
|
|
4771
4984
|
const close$1 = ref.state._tag === "Acquired" ? close(ref.state.scope, void_$2) : void_;
|
|
@@ -4780,7 +4993,7 @@ const getState = (self) => uninterruptibleMask$1((restore) => {
|
|
|
4780
4993
|
self.state.refCount++;
|
|
4781
4994
|
return self.state.fiber ? as(interrupt(self.state.fiber), self.state) : succeed$3(self.state);
|
|
4782
4995
|
case "Empty": {
|
|
4783
|
-
const scope = makeUnsafe$
|
|
4996
|
+
const scope = makeUnsafe$3();
|
|
4784
4997
|
return self.semaphore.withPermits(1)(restore(provideContext$2(self.acquire, add(self.context, Scope, scope))).pipe(map$2((value) => {
|
|
4785
4998
|
const state = {
|
|
4786
4999
|
_tag: "Acquired",
|
|
@@ -5896,9 +6109,9 @@ const debounce = /* @__PURE__ */ dual(2, (self, duration) => transformPull(self,
|
|
|
5896
6109
|
let lastArr;
|
|
5897
6110
|
let cause;
|
|
5898
6111
|
let emitAtMs = Infinity;
|
|
5899
|
-
const pullLatch = makeUnsafe$
|
|
5900
|
-
const emitLatch = makeUnsafe$
|
|
5901
|
-
const endLatch = makeUnsafe$
|
|
6112
|
+
const pullLatch = makeUnsafe$2();
|
|
6113
|
+
const emitLatch = makeUnsafe$2();
|
|
6114
|
+
const endLatch = makeUnsafe$2();
|
|
5902
6115
|
yield* pull.pipe(pullLatch.whenOpen, flatMap$2((arr) => {
|
|
5903
6116
|
emitLatch.openUnsafe();
|
|
5904
6117
|
lastArr = arr;
|
|
@@ -6395,7 +6608,7 @@ const mkUint8Array = (self) => runFold$1(self.channel, () => new Uint8Array(0),
|
|
|
6395
6608
|
const toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
|
|
6396
6609
|
let currentResolve = void 0;
|
|
6397
6610
|
let fiber = void 0;
|
|
6398
|
-
const latch = makeUnsafe$
|
|
6611
|
+
const latch = makeUnsafe$2(false);
|
|
6399
6612
|
return new ReadableStream({
|
|
6400
6613
|
start(controller) {
|
|
6401
6614
|
fiber = runFork(provideContext$2(runForEachArray(self, (chunk) => latch.whenOpen(sync(() => {
|
|
@@ -6469,7 +6682,7 @@ const toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]),
|
|
|
6469
6682
|
const toAsyncIterableWith = /* @__PURE__ */ dual(2, (self, context) => ({ [Symbol.asyncIterator]() {
|
|
6470
6683
|
const runPromise = runPromiseWith(context);
|
|
6471
6684
|
const runPromiseExit = runPromiseExitWith(context);
|
|
6472
|
-
const scope = makeUnsafe$
|
|
6685
|
+
const scope = makeUnsafe$3();
|
|
6473
6686
|
let pull;
|
|
6474
6687
|
let currentIter;
|
|
6475
6688
|
return {
|
|
@@ -7163,6 +7376,6 @@ const posixImpl = /* @__PURE__ */ Path.of({
|
|
|
7163
7376
|
toNamespacedPath: identity
|
|
7164
7377
|
});
|
|
7165
7378
|
//#endregion
|
|
7166
|
-
export { toAsyncIterable as $,
|
|
7379
|
+
export { toAsyncIterable as $, badArgument as $t, make$1 as A, make$7 as At, pipeThroughChannel as B, publish as Bt, fromEffect as C, make$6 as Ct, fromReadableStream as D, endUnsafe as Dt, fromQueue as E, end as Et, merge as F, shutdown as Ft, runFold as G, set$1 as Gt, run as H, subscribe as Ht, mkString as I, sliding as It, splitLines as J, getCurrent as Jt, runForEach as K, makeUnsafe$2 as Kt, mkUint8Array as L, take as Lt, mapAccum as M, offerAll as Mt, mapEffect as N, offerUnsafe as Nt, fromSubscription as O, failCause$2 as Ot, mapError as P, poll as Pt, tick as Q, BadArgument as Qt, onExit as R, takeAll as Rt, fromChannel as S, runFold$1 as St, fromPubSub as T, bounded as Tt, runCollect as U, unbounded$1 as Ut, provideContext as V, shutdown$1 as Vt, runDrain as W, make$9 as Wt, suspend as X, interruptAll as Xt, succeed as Y, interrupt as Yt, takeWhile as Z, runIn as Zt, fail as _, mapInput as _t, Size as a, make$2 as at, flatMap as b, fromTransform$1 as bt, callback as c, get$3 as ct, debounce as d, set as dt, systemError as en, toReadableStreamEffect as et, decodeText as f, size as ft, ensuring as g, isSink as gt, encodeText as h, fromChannel$1 as ht, FileTypeId as i, get as it, map as j, offer as jt, isStream as k, failCauseUnsafe as kt, catchCause as l, make$5 as lt, empty as m, forEach as mt, TypeId as n, transduce as nt, WatchBackend as o, get$2 as ot, die as p, drain as pt, runForEachArray as q, await_ as qt, FileSystem as r, unwrap as rt, make as s, make$4 as st, Path as t, nominal as tn, toReadableStreamWith as tt, concat as u, remove as ut, failCause as v, fromPull$1 as vt, fromIterable as w, makeUnsafe$1 as wt, fromAsyncIterable as x, mapDone as xt, filter as y, fromSubscriptionArray as yt, orDie as z, unbounded as zt };
|
|
7167
7380
|
|
|
7168
|
-
//# sourceMappingURL=Path-
|
|
7381
|
+
//# sourceMappingURL=Path-C6Zb2WHp.mjs.map
|