@cmmd-center/forge 0.10.13 → 0.10.16
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 +313 -152
- package/dist/bin.mjs +426 -265
- package/dist/client/assets/{DiffPanel-DGiCJd76.js → DiffPanel-CniKcSxk.js} +3 -3
- package/dist/client/assets/{DiffPanel.logic-Dd5YF6k3.js → DiffPanel.logic-UU4xEJJO.js} +2 -2
- package/dist/client/assets/{DiffPanelShell-C-nlQxal.js → DiffPanelShell-BpK-LVcn.js} +119 -119
- package/dist/client/assets/{DiffWorkerPoolProvider-CfmtkBLg.js → DiffWorkerPoolProvider-B6dAKEIU.js} +9 -9
- package/dist/client/assets/{PullRequestCodePanel-xkECqRzW.js → PullRequestCodePanel-DHZ0dDeb.js} +3 -3
- package/dist/client/assets/{Virtualizer-CVyQexgp.js → Virtualizer-BaXfuCj_.js} +2 -2
- package/dist/client/assets/{index-CUmbThfW.css → index-BMcOaHS_.css} +1 -1
- package/dist/client/assets/{index-BD9iZwyM.js → index-CpaFL0BH.js} +59 -59
- package/dist/client/index.html +5 -5
- package/dist/forge-build.json +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_Schema = require("./Schema-
|
|
3
|
+
const require_Schema = require("./Schema-dLi7Qssy.cjs");
|
|
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 require_Schema.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
|
}
|
|
@@ -234,7 +234,7 @@ const runIn = require_Schema.fiberRunIn;
|
|
|
234
234
|
* @category constructors
|
|
235
235
|
* @since 3.8.0
|
|
236
236
|
*/
|
|
237
|
-
const makeUnsafe$
|
|
237
|
+
const makeUnsafe$2 = require_Schema.makeLatchUnsafe;
|
|
238
238
|
/**
|
|
239
239
|
* Creates a new Latch.
|
|
240
240
|
*
|
|
@@ -270,7 +270,7 @@ const makeUnsafe$1 = require_Schema.makeLatchUnsafe;
|
|
|
270
270
|
* @category constructors
|
|
271
271
|
* @since 3.8.0
|
|
272
272
|
*/
|
|
273
|
-
const make$
|
|
273
|
+
const make$11 = require_Schema.makeLatch;
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableList.js
|
|
276
276
|
/**
|
|
@@ -371,7 +371,7 @@ const Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
|
371
371
|
* @since 4.0.0
|
|
372
372
|
* @category constructors
|
|
373
373
|
*/
|
|
374
|
-
const make$
|
|
374
|
+
const make$10 = () => ({
|
|
375
375
|
head: void 0,
|
|
376
376
|
tail: void 0,
|
|
377
377
|
length: 0
|
|
@@ -582,7 +582,7 @@ const appendAllUnsafe = (self, messages, mutable = false) => {
|
|
|
582
582
|
* @since 4.0.0
|
|
583
583
|
* @category mutations
|
|
584
584
|
*/
|
|
585
|
-
const clear = (self) => {
|
|
585
|
+
const clear$1 = (self) => {
|
|
586
586
|
self.head = self.tail = void 0;
|
|
587
587
|
self.length = 0;
|
|
588
588
|
};
|
|
@@ -632,7 +632,7 @@ const takeN = (self, n) => {
|
|
|
632
632
|
n = Math.min(n, self.length);
|
|
633
633
|
if (n === self.length && self.head?.offset === 0 && !self.head.next) {
|
|
634
634
|
const array = self.head.array;
|
|
635
|
-
clear(self);
|
|
635
|
+
clear$1(self);
|
|
636
636
|
return array;
|
|
637
637
|
}
|
|
638
638
|
const array = new Array(n);
|
|
@@ -646,13 +646,13 @@ const takeN = (self, n) => {
|
|
|
646
646
|
if (index === n) {
|
|
647
647
|
self.head = chunk;
|
|
648
648
|
self.length -= n;
|
|
649
|
-
if (self.length === 0) clear(self);
|
|
649
|
+
if (self.length === 0) clear$1(self);
|
|
650
650
|
return array;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
chunk = chunk.next;
|
|
654
654
|
}
|
|
655
|
-
clear(self);
|
|
655
|
+
clear$1(self);
|
|
656
656
|
return array;
|
|
657
657
|
};
|
|
658
658
|
/**
|
|
@@ -752,7 +752,7 @@ const take$1 = (self) => {
|
|
|
752
752
|
self.head.offset++;
|
|
753
753
|
self.length--;
|
|
754
754
|
if (self.head.offset === self.head.array.length) if (self.head.next) self.head = self.head.next;
|
|
755
|
-
else clear(self);
|
|
755
|
+
else clear$1(self);
|
|
756
756
|
return message;
|
|
757
757
|
};
|
|
758
758
|
/**
|
|
@@ -856,9 +856,9 @@ const filter$1 = (self, f) => {
|
|
|
856
856
|
const remove$1 = (self, value) => filter$1(self, (v) => v !== value);
|
|
857
857
|
//#endregion
|
|
858
858
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableRef.js
|
|
859
|
-
const TypeId$
|
|
859
|
+
const TypeId$11 = "~effect/MutableRef";
|
|
860
860
|
const MutableRefProto = {
|
|
861
|
-
[TypeId$
|
|
861
|
+
[TypeId$11]: TypeId$11,
|
|
862
862
|
...require_Schema.PipeInspectableProto,
|
|
863
863
|
toJSON() {
|
|
864
864
|
return {
|
|
@@ -891,7 +891,7 @@ const MutableRefProto = {
|
|
|
891
891
|
* @since 2.0.0
|
|
892
892
|
* @category constructors
|
|
893
893
|
*/
|
|
894
|
-
const make$
|
|
894
|
+
const make$9 = (value) => {
|
|
895
895
|
const ref = Object.create(MutableRefProto);
|
|
896
896
|
ref.current = value;
|
|
897
897
|
return ref;
|
|
@@ -970,7 +970,7 @@ const set$1 = /* @__PURE__ */ require_Schema.dual(2, (self, value) => {
|
|
|
970
970
|
*
|
|
971
971
|
* @since 2.0.0
|
|
972
972
|
*/
|
|
973
|
-
const TypeId$
|
|
973
|
+
const TypeId$10 = "~effect/PubSub";
|
|
974
974
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
975
975
|
/**
|
|
976
976
|
* Creates a PubSub with a custom atomic implementation and strategy.
|
|
@@ -995,7 +995,7 @@ const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
|
995
995
|
* @since 4.0.0
|
|
996
996
|
* @category constructors
|
|
997
997
|
*/
|
|
998
|
-
const make$
|
|
998
|
+
const make$8 = (options) => require_Schema.sync(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), require_Schema.makeUnsafe$1(), makeUnsafe$2(false), make$9(false), options.strategy()));
|
|
999
999
|
/**
|
|
1000
1000
|
* Creates an unbounded `PubSub`.
|
|
1001
1001
|
*
|
|
@@ -1029,7 +1029,7 @@ const make$7 = (options) => require_Schema.sync(() => makePubSubUnsafe(options.a
|
|
|
1029
1029
|
* @since 2.0.0
|
|
1030
1030
|
* @category constructors
|
|
1031
1031
|
*/
|
|
1032
|
-
const unbounded$1 = (options) => make$
|
|
1032
|
+
const unbounded$1 = (options) => make$8({
|
|
1033
1033
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1034
1034
|
strategy: () => new DroppingStrategy()
|
|
1035
1035
|
});
|
|
@@ -1245,7 +1245,7 @@ const removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1245
1245
|
set.delete(pollers);
|
|
1246
1246
|
if (set.size === 0) subscribers.delete(subscription);
|
|
1247
1247
|
};
|
|
1248
|
-
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$
|
|
1248
|
+
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$10(), makeUnsafe$2(false), make$9(false), strategy, pubsub.replayWindow());
|
|
1249
1249
|
var UnboundedPubSub = class {
|
|
1250
1250
|
publisherHead = {
|
|
1251
1251
|
value: AbsentValue,
|
|
@@ -1411,7 +1411,7 @@ var SubscriptionImpl = class {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
};
|
|
1413
1413
|
var PubSubImpl = class {
|
|
1414
|
-
[TypeId$
|
|
1414
|
+
[TypeId$10] = { _A: require_Schema.identity };
|
|
1415
1415
|
pubsub;
|
|
1416
1416
|
subscribers;
|
|
1417
1417
|
scope;
|
|
@@ -1591,7 +1591,7 @@ const emptyReplayWindow = {
|
|
|
1591
1591
|
/**
|
|
1592
1592
|
* @since 3.8.0
|
|
1593
1593
|
*/
|
|
1594
|
-
const TypeId$
|
|
1594
|
+
const TypeId$9 = "~effect/Queue";
|
|
1595
1595
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
1596
1596
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
1597
1597
|
const variance$1 = {
|
|
@@ -1599,7 +1599,7 @@ const variance$1 = {
|
|
|
1599
1599
|
_E: require_Schema.identity
|
|
1600
1600
|
};
|
|
1601
1601
|
const QueueProto = {
|
|
1602
|
-
[TypeId$
|
|
1602
|
+
[TypeId$9]: variance$1,
|
|
1603
1603
|
[EnqueueTypeId]: variance$1,
|
|
1604
1604
|
[DequeueTypeId]: variance$1,
|
|
1605
1605
|
...require_Schema.PipeInspectableProto,
|
|
@@ -1651,12 +1651,12 @@ const QueueProto = {
|
|
|
1651
1651
|
* })
|
|
1652
1652
|
* ```
|
|
1653
1653
|
*/
|
|
1654
|
-
const make$
|
|
1654
|
+
const make$7 = (options) => require_Schema.withFiber$1((fiber) => {
|
|
1655
1655
|
const self = Object.create(QueueProto);
|
|
1656
1656
|
self.dispatcher = fiber.currentDispatcher;
|
|
1657
1657
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1658
1658
|
self.strategy = options?.strategy ?? "suspend";
|
|
1659
|
-
self.messages = make$
|
|
1659
|
+
self.messages = make$10();
|
|
1660
1660
|
self.scheduleRunning = false;
|
|
1661
1661
|
self.state = {
|
|
1662
1662
|
_tag: "Open",
|
|
@@ -1691,7 +1691,7 @@ const make$6 = (options) => require_Schema.withFiber$1((fiber) => {
|
|
|
1691
1691
|
* @since 2.0.0
|
|
1692
1692
|
* @category Constructors
|
|
1693
1693
|
*/
|
|
1694
|
-
const bounded = (capacity) => make$
|
|
1694
|
+
const bounded = (capacity) => make$7({ capacity });
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Creates a bounded queue with sliding strategy. When the queue reaches capacity,
|
|
1697
1697
|
* new elements are added and the oldest elements are dropped.
|
|
@@ -1722,7 +1722,7 @@ const bounded = (capacity) => make$6({ capacity });
|
|
|
1722
1722
|
* @since 2.0.0
|
|
1723
1723
|
* @category Constructors
|
|
1724
1724
|
*/
|
|
1725
|
-
const sliding = (capacity) => make$
|
|
1725
|
+
const sliding = (capacity) => make$7({
|
|
1726
1726
|
capacity,
|
|
1727
1727
|
strategy: "sliding"
|
|
1728
1728
|
});
|
|
@@ -1758,7 +1758,7 @@ const sliding = (capacity) => make$6({
|
|
|
1758
1758
|
* @since 2.0.0
|
|
1759
1759
|
* @category Constructors
|
|
1760
1760
|
*/
|
|
1761
|
-
const unbounded = () => make$
|
|
1761
|
+
const unbounded = () => make$7();
|
|
1762
1762
|
/**
|
|
1763
1763
|
* Add a message to the queue. Returns `false` if the queue is done.
|
|
1764
1764
|
*
|
|
@@ -2100,7 +2100,7 @@ const endUnsafe = (self) => failCauseUnsafe(self, require_Schema.causeFail(requi
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
const shutdown = (self) => require_Schema.sync$2(() => {
|
|
2102
2102
|
if (self.state._tag === "Done") return true;
|
|
2103
|
-
clear(self.messages);
|
|
2103
|
+
clear$1(self.messages);
|
|
2104
2104
|
const offers = self.state.offers;
|
|
2105
2105
|
finalize(self, self.state._tag === "Open" ? exitInterrupt : self.state.exit);
|
|
2106
2106
|
if (offers.size > 0) {
|
|
@@ -2485,7 +2485,7 @@ const finalize = (self, exit) => {
|
|
|
2485
2485
|
* @since 2.0.0
|
|
2486
2486
|
* @category constructors
|
|
2487
2487
|
*/
|
|
2488
|
-
const makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
2488
|
+
const makeUnsafe$1 = (permits) => new SemaphoreImpl(permits);
|
|
2489
2489
|
var SemaphoreImpl = class {
|
|
2490
2490
|
waiters = /* @__PURE__ */ new Set();
|
|
2491
2491
|
taken = 0;
|
|
@@ -2593,7 +2593,7 @@ var SemaphoreImpl = class {
|
|
|
2593
2593
|
* @since 2.0.0
|
|
2594
2594
|
* @category constructors
|
|
2595
2595
|
*/
|
|
2596
|
-
const make$
|
|
2596
|
+
const make$6 = (permits) => require_Schema.sync$2(() => new SemaphoreImpl(permits));
|
|
2597
2597
|
//#endregion
|
|
2598
2598
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/Channel.js
|
|
2599
2599
|
/**
|
|
@@ -2658,7 +2658,7 @@ const make$5 = (permits) => require_Schema.sync$2(() => new SemaphoreImpl(permit
|
|
|
2658
2658
|
* @since 4.0.0
|
|
2659
2659
|
* @category Type Identifiers
|
|
2660
2660
|
*/
|
|
2661
|
-
const TypeId$
|
|
2661
|
+
const TypeId$8 = "~effect/Channel";
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Tests if a value is a `Channel`.
|
|
2664
2664
|
*
|
|
@@ -2674,9 +2674,9 @@ const TypeId$7 = "~effect/Channel";
|
|
|
2674
2674
|
* @category guards
|
|
2675
2675
|
* @since 3.5.4
|
|
2676
2676
|
*/
|
|
2677
|
-
const isChannel = (u) => require_Schema.hasProperty(u, TypeId$
|
|
2677
|
+
const isChannel = (u) => require_Schema.hasProperty(u, TypeId$8);
|
|
2678
2678
|
const ChannelProto = {
|
|
2679
|
-
[TypeId$
|
|
2679
|
+
[TypeId$8]: {
|
|
2680
2680
|
_Env: require_Schema.identity,
|
|
2681
2681
|
_InErr: require_Schema.identity,
|
|
2682
2682
|
_InElem: require_Schema.identity,
|
|
@@ -2791,7 +2791,7 @@ const toTransform = (channel) => channel.transform;
|
|
|
2791
2791
|
* @since 2.0.0
|
|
2792
2792
|
*/
|
|
2793
2793
|
const DefaultChunkSize$1 = 4096;
|
|
2794
|
-
const asyncQueue = (scope, f, options) => make$
|
|
2794
|
+
const asyncQueue = (scope, f, options) => make$7({
|
|
2795
2795
|
capacity: options?.bufferSize,
|
|
2796
2796
|
strategy: options?.strategy
|
|
2797
2797
|
}).pipe(require_Schema.tap((queue) => require_Schema.addFinalizer$1(scope, shutdown(queue))), require_Schema.tap((queue) => require_Schema.forkIn(require_Schema.provide$2(f(queue), scope), scope)));
|
|
@@ -3482,7 +3482,7 @@ const mapEffectConcurrent = (self, f, options) => fromTransformBracket(require_S
|
|
|
3482
3482
|
const runFork = require_Schema.runForkWith(yield* require_Schema.context());
|
|
3483
3483
|
const trackFiber = runIn(forkedScope);
|
|
3484
3484
|
if (options.unordered) {
|
|
3485
|
-
const semaphore = makeUnsafe(concurrencyN);
|
|
3485
|
+
const semaphore = makeUnsafe$1(concurrencyN);
|
|
3486
3486
|
const release = require_Schema.constant(semaphore.release(1));
|
|
3487
3487
|
const handle = require_Schema.matchCauseEffect({
|
|
3488
3488
|
onFailure: (cause) => require_Schema.flatMap(failCause$2(queue, cause), release),
|
|
@@ -3851,8 +3851,8 @@ const orDie$1 = (self) => catch_(self, die$1);
|
|
|
3851
3851
|
*/
|
|
3852
3852
|
const mergeAll = /* @__PURE__ */ require_Schema.dual(2, (channels, { bufferSize = 16, concurrency, switch: switch_ = false }) => fromTransformBracket(require_Schema.fnUntraced(function* (upstream, scope, forkedScope) {
|
|
3853
3853
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
3854
|
-
const semaphore = switch_ ? void 0 : makeUnsafe(concurrencyN);
|
|
3855
|
-
const doneLatch = yield* make$
|
|
3854
|
+
const semaphore = switch_ ? void 0 : makeUnsafe$1(concurrencyN);
|
|
3855
|
+
const doneLatch = yield* make$11(true);
|
|
3856
3856
|
const fibers = /* @__PURE__ */ new Set();
|
|
3857
3857
|
const queue = yield* bounded(bufferSize);
|
|
3858
3858
|
yield* require_Schema.addFinalizer$1(forkedScope, shutdown(queue));
|
|
@@ -4276,14 +4276,14 @@ const runFold$1 = /* @__PURE__ */ require_Schema.dual(3, (self, initial, f) => r
|
|
|
4276
4276
|
const toPullScoped = (self, scope) => toTransform(self)(require_Schema.done$1(), scope);
|
|
4277
4277
|
//#endregion
|
|
4278
4278
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/internal/stream.js
|
|
4279
|
-
const TypeId$
|
|
4279
|
+
const TypeId$7 = "~effect/Stream";
|
|
4280
4280
|
const streamVariance = {
|
|
4281
4281
|
_R: require_Schema.identity,
|
|
4282
4282
|
_E: require_Schema.identity,
|
|
4283
4283
|
_A: require_Schema.identity
|
|
4284
4284
|
};
|
|
4285
4285
|
const StreamProto = {
|
|
4286
|
-
[TypeId$
|
|
4286
|
+
[TypeId$7]: streamVariance,
|
|
4287
4287
|
pipe() {
|
|
4288
4288
|
return require_Schema.pipeArguments(this, arguments);
|
|
4289
4289
|
}
|
|
@@ -4296,7 +4296,7 @@ const fromChannel$2 = (channel) => {
|
|
|
4296
4296
|
};
|
|
4297
4297
|
//#endregion
|
|
4298
4298
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/Sink.js
|
|
4299
|
-
const TypeId$
|
|
4299
|
+
const TypeId$6 = "~effect/Sink";
|
|
4300
4300
|
const endVoid = /* @__PURE__ */ require_Schema.succeed([void 0]);
|
|
4301
4301
|
const sinkVariance = {
|
|
4302
4302
|
_A: require_Schema.identity,
|
|
@@ -4306,7 +4306,7 @@ const sinkVariance = {
|
|
|
4306
4306
|
_R: require_Schema.identity
|
|
4307
4307
|
};
|
|
4308
4308
|
const SinkProto = {
|
|
4309
|
-
[TypeId$
|
|
4309
|
+
[TypeId$6]: sinkVariance,
|
|
4310
4310
|
pipe() {
|
|
4311
4311
|
return require_Schema.pipeArguments(this, arguments);
|
|
4312
4312
|
}
|
|
@@ -4328,7 +4328,7 @@ const SinkProto = {
|
|
|
4328
4328
|
* @since 2.0.0
|
|
4329
4329
|
* @category guards
|
|
4330
4330
|
*/
|
|
4331
|
-
const isSink = (u) => require_Schema.hasProperty(u, TypeId$
|
|
4331
|
+
const isSink = (u) => require_Schema.hasProperty(u, TypeId$6);
|
|
4332
4332
|
/**
|
|
4333
4333
|
* Creates a sink from a `Channel`.
|
|
4334
4334
|
*
|
|
@@ -4468,9 +4468,9 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(require_Sc
|
|
|
4468
4468
|
const unwrap$1 = (effect) => fromChannel$1(unwrap$2(require_Schema.map(effect, toChannel$1)));
|
|
4469
4469
|
//#endregion
|
|
4470
4470
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/MutableHashMap.js
|
|
4471
|
-
const TypeId$
|
|
4471
|
+
const TypeId$5 = "~effect/collections/MutableHashMap";
|
|
4472
4472
|
const MutableHashMapProto = {
|
|
4473
|
-
[TypeId$
|
|
4473
|
+
[TypeId$5]: TypeId$5,
|
|
4474
4474
|
[Symbol.iterator]() {
|
|
4475
4475
|
return this.backing[Symbol.iterator]();
|
|
4476
4476
|
},
|
|
@@ -4535,7 +4535,7 @@ const empty$1 = () => {
|
|
|
4535
4535
|
* @since 2.0.0
|
|
4536
4536
|
* @category constructors
|
|
4537
4537
|
*/
|
|
4538
|
-
const make$
|
|
4538
|
+
const make$5 = (...entries) => fromIterable$1(entries);
|
|
4539
4539
|
/**
|
|
4540
4540
|
* Creates a MutableHashMap from an iterable collection of key-value pairs.
|
|
4541
4541
|
*
|
|
@@ -4587,7 +4587,7 @@ const fromIterable$1 = (entries) => {
|
|
|
4587
4587
|
* @since 2.0.0
|
|
4588
4588
|
* @category elements
|
|
4589
4589
|
*/
|
|
4590
|
-
const get$
|
|
4590
|
+
const get$3 = /* @__PURE__ */ require_Schema.dual(2, (self, key) => {
|
|
4591
4591
|
if (self.backing.has(key)) return require_Schema.some(self.backing.get(key));
|
|
4592
4592
|
else if (isSimpleKey(key)) return require_Schema.none();
|
|
4593
4593
|
const refKey = referentialKeysCache.get(self);
|
|
@@ -4608,6 +4608,27 @@ const getFromBucket = (self, bucket, key) => {
|
|
|
4608
4608
|
return require_Schema.none();
|
|
4609
4609
|
};
|
|
4610
4610
|
/**
|
|
4611
|
+
* Checks if the MutableHashMap contains the specified key.
|
|
4612
|
+
*
|
|
4613
|
+
* @example
|
|
4614
|
+
* ```ts
|
|
4615
|
+
* import * as MutableHashMap from "effect/MutableHashMap"
|
|
4616
|
+
*
|
|
4617
|
+
* const map = MutableHashMap.make(["key1", 42], ["key2", 100])
|
|
4618
|
+
*
|
|
4619
|
+
* console.log(MutableHashMap.has(map, "key1")) // true
|
|
4620
|
+
* console.log(MutableHashMap.has(map, "key3")) // false
|
|
4621
|
+
*
|
|
4622
|
+
* // Pipe-able version
|
|
4623
|
+
* const hasKey = MutableHashMap.has("key1")
|
|
4624
|
+
* console.log(hasKey(map)) // true
|
|
4625
|
+
* ```
|
|
4626
|
+
*
|
|
4627
|
+
* @since 2.0.0
|
|
4628
|
+
* @category elements
|
|
4629
|
+
*/
|
|
4630
|
+
const has = /* @__PURE__ */ require_Schema.dual(2, (self, key) => require_Schema.isSome(get$3(self, key)));
|
|
4631
|
+
/**
|
|
4611
4632
|
* Sets a key-value pair in the MutableHashMap, mutating the map in place.
|
|
4612
4633
|
* If the key already exists, its value is updated.
|
|
4613
4634
|
*
|
|
@@ -4723,6 +4744,41 @@ const remove = /* @__PURE__ */ require_Schema.dual(2, (self, key_) => {
|
|
|
4723
4744
|
return self;
|
|
4724
4745
|
});
|
|
4725
4746
|
/**
|
|
4747
|
+
* Removes all key-value pairs from the MutableHashMap, mutating the map in place.
|
|
4748
|
+
* The map becomes empty after this operation.
|
|
4749
|
+
*
|
|
4750
|
+
* @example
|
|
4751
|
+
* ```ts
|
|
4752
|
+
* import * as MutableHashMap from "effect/MutableHashMap"
|
|
4753
|
+
*
|
|
4754
|
+
* const map = MutableHashMap.make(
|
|
4755
|
+
* ["key1", 42],
|
|
4756
|
+
* ["key2", 100],
|
|
4757
|
+
* ["key3", 200]
|
|
4758
|
+
* )
|
|
4759
|
+
*
|
|
4760
|
+
* console.log(MutableHashMap.size(map)) // 3
|
|
4761
|
+
*
|
|
4762
|
+
* // Clear all entries
|
|
4763
|
+
* MutableHashMap.clear(map)
|
|
4764
|
+
*
|
|
4765
|
+
* console.log(MutableHashMap.size(map)) // 0
|
|
4766
|
+
* console.log(MutableHashMap.has(map, "key1")) // false
|
|
4767
|
+
*
|
|
4768
|
+
* // Can still add new entries after clearing
|
|
4769
|
+
* MutableHashMap.set(map, "new", 999)
|
|
4770
|
+
* console.log(MutableHashMap.size(map)) // 1
|
|
4771
|
+
* ```
|
|
4772
|
+
*
|
|
4773
|
+
* @since 2.0.0
|
|
4774
|
+
* @category mutations
|
|
4775
|
+
*/
|
|
4776
|
+
const clear = (self) => {
|
|
4777
|
+
self.backing.clear();
|
|
4778
|
+
self.buckets.clear();
|
|
4779
|
+
return self;
|
|
4780
|
+
};
|
|
4781
|
+
/**
|
|
4726
4782
|
* Returns the number of key-value pairs in the MutableHashMap.
|
|
4727
4783
|
*
|
|
4728
4784
|
* @example
|
|
@@ -4748,6 +4804,165 @@ const remove = /* @__PURE__ */ require_Schema.dual(2, (self, key_) => {
|
|
|
4748
4804
|
*/
|
|
4749
4805
|
const size = (self) => self.backing.size;
|
|
4750
4806
|
//#endregion
|
|
4807
|
+
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/RcMap.js
|
|
4808
|
+
/**
|
|
4809
|
+
* @since 3.5.0
|
|
4810
|
+
*/
|
|
4811
|
+
const TypeId$4 = "~effect/RcMap";
|
|
4812
|
+
const makeUnsafe = (options) => ({
|
|
4813
|
+
[TypeId$4]: TypeId$4,
|
|
4814
|
+
lookup: options.lookup,
|
|
4815
|
+
context: options.context,
|
|
4816
|
+
scope: options.scope,
|
|
4817
|
+
idleTimeToLive: options.idleTimeToLive,
|
|
4818
|
+
capacity: options.capacity,
|
|
4819
|
+
state: {
|
|
4820
|
+
_tag: "Open",
|
|
4821
|
+
map: empty$1()
|
|
4822
|
+
},
|
|
4823
|
+
pipe() {
|
|
4824
|
+
return require_Schema.pipeArguments(this, arguments);
|
|
4825
|
+
}
|
|
4826
|
+
});
|
|
4827
|
+
/**
|
|
4828
|
+
* An `RcMap` can contain multiple reference counted resources that can be indexed
|
|
4829
|
+
* by a key. The resources are lazily acquired on the first call to `get` and
|
|
4830
|
+
* released when the last reference is released.
|
|
4831
|
+
*
|
|
4832
|
+
* Complex keys can extend `Equal` and `Hash` to allow lookups by value.
|
|
4833
|
+
*
|
|
4834
|
+
* **Options**
|
|
4835
|
+
*
|
|
4836
|
+
* - `capacity`: The maximum number of resources that can be held in the map.
|
|
4837
|
+
* - `idleTimeToLive`: When the reference count reaches zero, the resource will be released after this duration.
|
|
4838
|
+
*
|
|
4839
|
+
* @since 3.5.0
|
|
4840
|
+
* @category models
|
|
4841
|
+
* @example
|
|
4842
|
+
* ```ts
|
|
4843
|
+
* import { Effect, RcMap } from "effect"
|
|
4844
|
+
*
|
|
4845
|
+
* Effect.gen(function*() {
|
|
4846
|
+
* const map = yield* RcMap.make({
|
|
4847
|
+
* lookup: (key: string) =>
|
|
4848
|
+
* Effect.acquireRelease(
|
|
4849
|
+
* Effect.succeed(`acquired ${key}`),
|
|
4850
|
+
* () => Effect.log(`releasing ${key}`)
|
|
4851
|
+
* )
|
|
4852
|
+
* })
|
|
4853
|
+
*
|
|
4854
|
+
* // Get "foo" from the map twice, which will only acquire it once.
|
|
4855
|
+
* // It will then be released once the scope closes.
|
|
4856
|
+
* yield* RcMap.get(map, "foo").pipe(
|
|
4857
|
+
* Effect.andThen(RcMap.get(map, "foo")),
|
|
4858
|
+
* Effect.scoped
|
|
4859
|
+
* )
|
|
4860
|
+
* })
|
|
4861
|
+
* ```
|
|
4862
|
+
*/
|
|
4863
|
+
const make$4 = (options) => require_Schema.withFiber((fiber) => {
|
|
4864
|
+
const context = fiber.context;
|
|
4865
|
+
const scope = require_Schema.get(context, require_Schema.Scope);
|
|
4866
|
+
const self = makeUnsafe({
|
|
4867
|
+
lookup: options.lookup,
|
|
4868
|
+
context,
|
|
4869
|
+
scope,
|
|
4870
|
+
idleTimeToLive: typeof options.idleTimeToLive === "function" ? require_Schema.flow(options.idleTimeToLive, require_Schema.fromInputUnsafe) : require_Schema.constant(require_Schema.fromInputUnsafe(options.idleTimeToLive ?? require_Schema.zero)),
|
|
4871
|
+
capacity: Math.max(options.capacity ?? Number.POSITIVE_INFINITY, 0)
|
|
4872
|
+
});
|
|
4873
|
+
return require_Schema.as(require_Schema.addFinalizerExit(scope, () => {
|
|
4874
|
+
if (self.state._tag === "Closed") return require_Schema.void_;
|
|
4875
|
+
const map = self.state.map;
|
|
4876
|
+
self.state = { _tag: "Closed" };
|
|
4877
|
+
return require_Schema.forEach(map, ([, entry]) => require_Schema.exit(require_Schema.close(entry.scope, require_Schema.void_$1))).pipe(require_Schema.tap(() => require_Schema.sync(() => {
|
|
4878
|
+
clear(map);
|
|
4879
|
+
})));
|
|
4880
|
+
}), self);
|
|
4881
|
+
});
|
|
4882
|
+
/**
|
|
4883
|
+
* Retrieves a value from the RcMap by key. If the resource doesn't exist, it will be
|
|
4884
|
+
* acquired using the lookup function. The resource is reference counted and will be
|
|
4885
|
+
* released when the scope closes.
|
|
4886
|
+
*
|
|
4887
|
+
* @since 3.5.0
|
|
4888
|
+
* @category combinators
|
|
4889
|
+
* @example
|
|
4890
|
+
* ```ts
|
|
4891
|
+
* import { Effect, RcMap } from "effect"
|
|
4892
|
+
*
|
|
4893
|
+
* Effect.gen(function*() {
|
|
4894
|
+
* const map = yield* RcMap.make({
|
|
4895
|
+
* lookup: (key: string) =>
|
|
4896
|
+
* Effect.acquireRelease(
|
|
4897
|
+
* Effect.succeed(`Resource: ${key}`),
|
|
4898
|
+
* () => Effect.log(`Released ${key}`)
|
|
4899
|
+
* )
|
|
4900
|
+
* })
|
|
4901
|
+
*
|
|
4902
|
+
* // Get a resource - it will be acquired on first access
|
|
4903
|
+
* const resource = yield* RcMap.get(map, "database")
|
|
4904
|
+
* console.log(resource) // "Resource: database"
|
|
4905
|
+
* }).pipe(Effect.scoped)
|
|
4906
|
+
* ```
|
|
4907
|
+
*/
|
|
4908
|
+
const get$2 = /* @__PURE__ */ require_Schema.dual(2, (self, key) => require_Schema.uninterruptibleMask((restore) => {
|
|
4909
|
+
if (self.state._tag === "Closed") return require_Schema.interrupt;
|
|
4910
|
+
const state = self.state;
|
|
4911
|
+
const parent = getCurrent();
|
|
4912
|
+
const o = get$3(state.map, key);
|
|
4913
|
+
let entry;
|
|
4914
|
+
if (o._tag === "Some") {
|
|
4915
|
+
entry = o.value;
|
|
4916
|
+
entry.refCount++;
|
|
4917
|
+
} else if (Number.isFinite(self.capacity) && size(self.state.map) >= self.capacity) return require_Schema.fail(new require_Schema.ExceededCapacityError(`RcMap attempted to exceed capacity of ${self.capacity}`));
|
|
4918
|
+
else {
|
|
4919
|
+
entry = {
|
|
4920
|
+
deferred: require_Schema.makeUnsafe$2(),
|
|
4921
|
+
scope: require_Schema.makeUnsafe$1(),
|
|
4922
|
+
idleTimeToLive: self.idleTimeToLive(key),
|
|
4923
|
+
finalizer: void 0,
|
|
4924
|
+
fiber: void 0,
|
|
4925
|
+
expiresAt: 0,
|
|
4926
|
+
refCount: 1
|
|
4927
|
+
};
|
|
4928
|
+
entry.finalizer = release(self, key, entry);
|
|
4929
|
+
set(state.map, key, entry);
|
|
4930
|
+
const context = new Map(self.context.mapUnsafe);
|
|
4931
|
+
parent.context.mapUnsafe.forEach((value, key) => {
|
|
4932
|
+
context.set(key, value);
|
|
4933
|
+
});
|
|
4934
|
+
context.set(require_Schema.Scope.key, entry.scope);
|
|
4935
|
+
self.lookup(key).pipe(require_Schema.runForkWith(require_Schema.makeUnsafe$3(context)), runIn(entry.scope)).addObserver((exit) => require_Schema.doneUnsafe(entry.deferred, exit));
|
|
4936
|
+
}
|
|
4937
|
+
const scope = require_Schema.getUnsafe(parent.context, require_Schema.Scope);
|
|
4938
|
+
return require_Schema.addFinalizer$1(scope, entry.finalizer).pipe(require_Schema.andThen(restore(require_Schema._await(entry.deferred))));
|
|
4939
|
+
}));
|
|
4940
|
+
const release = (self, key, entry) => require_Schema.withFiber((fiber) => {
|
|
4941
|
+
entry.refCount--;
|
|
4942
|
+
if (entry.refCount > 0) return require_Schema.void_;
|
|
4943
|
+
else if (self.state._tag === "Closed" || !has(self.state.map, key) || require_Schema.isZero(entry.idleTimeToLive)) {
|
|
4944
|
+
if (self.state._tag === "Open") remove(self.state.map, key);
|
|
4945
|
+
return require_Schema.close(entry.scope, require_Schema.void_$1);
|
|
4946
|
+
} else if (!require_Schema.isFinite$1(entry.idleTimeToLive)) return require_Schema.void_;
|
|
4947
|
+
const clock = fiber.getRef(require_Schema.Clock);
|
|
4948
|
+
entry.expiresAt = clock.currentTimeMillisUnsafe() + require_Schema.toMillis(entry.idleTimeToLive);
|
|
4949
|
+
if (entry.fiber) return require_Schema.void_;
|
|
4950
|
+
entry.fiber = require_Schema.interruptibleMask(function loop(restore) {
|
|
4951
|
+
const now = clock.currentTimeMillisUnsafe();
|
|
4952
|
+
const remaining = entry.expiresAt - now;
|
|
4953
|
+
if (remaining <= 0) {
|
|
4954
|
+
if (self.state._tag === "Closed" || entry.refCount > 0) return require_Schema.void_;
|
|
4955
|
+
remove(self.state.map, key);
|
|
4956
|
+
return restore(require_Schema.close(entry.scope, require_Schema.void_$1));
|
|
4957
|
+
}
|
|
4958
|
+
return require_Schema.flatMap(clock.sleep(require_Schema.millis(remaining)), () => loop(restore));
|
|
4959
|
+
}).pipe(require_Schema.ensuring(require_Schema.sync(() => {
|
|
4960
|
+
entry.fiber = void 0;
|
|
4961
|
+
})), require_Schema.runForkWith(fiber.context), runIn(self.scope));
|
|
4962
|
+
return require_Schema.void_;
|
|
4963
|
+
});
|
|
4964
|
+
require_Schema.uninterruptible;
|
|
4965
|
+
//#endregion
|
|
4751
4966
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/internal/rcRef.js
|
|
4752
4967
|
const TypeId$3 = "~effect/RcRef";
|
|
4753
4968
|
const stateEmpty = { _tag: "Empty" };
|
|
@@ -4762,7 +4977,7 @@ var RcRefImpl = class {
|
|
|
4762
4977
|
return require_Schema.pipeArguments(this, arguments);
|
|
4763
4978
|
}
|
|
4764
4979
|
state = stateEmpty;
|
|
4765
|
-
semaphore = /* @__PURE__ */ makeUnsafe(1);
|
|
4980
|
+
semaphore = /* @__PURE__ */ makeUnsafe$1(1);
|
|
4766
4981
|
acquire;
|
|
4767
4982
|
context;
|
|
4768
4983
|
scope;
|
|
@@ -5908,9 +6123,9 @@ const debounce = /* @__PURE__ */ require_Schema.dual(2, (self, duration) => tran
|
|
|
5908
6123
|
let lastArr;
|
|
5909
6124
|
let cause;
|
|
5910
6125
|
let emitAtMs = Infinity;
|
|
5911
|
-
const pullLatch = makeUnsafe$
|
|
5912
|
-
const emitLatch = makeUnsafe$
|
|
5913
|
-
const endLatch = makeUnsafe$
|
|
6126
|
+
const pullLatch = makeUnsafe$2();
|
|
6127
|
+
const emitLatch = makeUnsafe$2();
|
|
6128
|
+
const endLatch = makeUnsafe$2();
|
|
5914
6129
|
yield* pull.pipe(pullLatch.whenOpen, require_Schema.flatMap((arr) => {
|
|
5915
6130
|
emitLatch.openUnsafe();
|
|
5916
6131
|
lastArr = arr;
|
|
@@ -6408,7 +6623,7 @@ const mkUint8Array = (self) => runFold$1(self.channel, () => new Uint8Array(0),
|
|
|
6408
6623
|
const toReadableStreamWith = /* @__PURE__ */ require_Schema.dual((args) => isStream(args[0]), (self, context, options) => {
|
|
6409
6624
|
let currentResolve = void 0;
|
|
6410
6625
|
let fiber = void 0;
|
|
6411
|
-
const latch = makeUnsafe$
|
|
6626
|
+
const latch = makeUnsafe$2(false);
|
|
6412
6627
|
return new ReadableStream({
|
|
6413
6628
|
start(controller) {
|
|
6414
6629
|
fiber = require_Schema.runFork(require_Schema.provideContext(runForEachArray(self, (chunk) => latch.whenOpen(require_Schema.sync(() => {
|
|
@@ -7434,6 +7649,12 @@ Object.defineProperty(exports, "get$1", {
|
|
|
7434
7649
|
return get$2;
|
|
7435
7650
|
}
|
|
7436
7651
|
});
|
|
7652
|
+
Object.defineProperty(exports, "get$2", {
|
|
7653
|
+
enumerable: true,
|
|
7654
|
+
get: function() {
|
|
7655
|
+
return get$3;
|
|
7656
|
+
}
|
|
7657
|
+
});
|
|
7437
7658
|
Object.defineProperty(exports, "getCurrent", {
|
|
7438
7659
|
enumerable: true,
|
|
7439
7660
|
get: function() {
|
|
@@ -7503,19 +7724,25 @@ Object.defineProperty(exports, "make$5", {
|
|
|
7503
7724
|
Object.defineProperty(exports, "make$6", {
|
|
7504
7725
|
enumerable: true,
|
|
7505
7726
|
get: function() {
|
|
7506
|
-
return make$
|
|
7727
|
+
return make$7;
|
|
7728
|
+
}
|
|
7729
|
+
});
|
|
7730
|
+
Object.defineProperty(exports, "make$7", {
|
|
7731
|
+
enumerable: true,
|
|
7732
|
+
get: function() {
|
|
7733
|
+
return make$9;
|
|
7507
7734
|
}
|
|
7508
7735
|
});
|
|
7509
7736
|
Object.defineProperty(exports, "makeUnsafe", {
|
|
7510
7737
|
enumerable: true,
|
|
7511
7738
|
get: function() {
|
|
7512
|
-
return makeUnsafe;
|
|
7739
|
+
return makeUnsafe$1;
|
|
7513
7740
|
}
|
|
7514
7741
|
});
|
|
7515
7742
|
Object.defineProperty(exports, "makeUnsafe$1", {
|
|
7516
7743
|
enumerable: true,
|
|
7517
7744
|
get: function() {
|
|
7518
|
-
return makeUnsafe$
|
|
7745
|
+
return makeUnsafe$2;
|
|
7519
7746
|
}
|
|
7520
7747
|
});
|
|
7521
7748
|
Object.defineProperty(exports, "map", {
|
|
@@ -7819,4 +8046,4 @@ Object.defineProperty(exports, "unwrap", {
|
|
|
7819
8046
|
}
|
|
7820
8047
|
});
|
|
7821
8048
|
|
|
7822
|
-
//# sourceMappingURL=Path-
|
|
8049
|
+
//# sourceMappingURL=Path-Be7zSwar.cjs.map
|