@herbertgao/pi-extensions 2026.11.12 → 2026.11.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/CHANGELOG.md +16 -0
- package/README.md +6 -4
- package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +37 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
- package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +239 -0
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +10 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +37 -7
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +113 -34
- package/node_modules/@herbertgao/pi-subagents/package.json +9 -4
- package/node_modules/@herbertgao/pi-subagents/skills/workflow-authoring/SKILL.md +147 -0
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +48 -32
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +16 -8
- package/node_modules/@herbertgao/pi-subagents/src/custom-agents.ts +16 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +99 -7
- package/node_modules/@herbertgao/pi-subagents/src/mention.ts +5 -7
- package/node_modules/@herbertgao/pi-subagents/src/settings.ts +26 -0
- package/node_modules/@herbertgao/pi-subagents/src/structured-output.ts +13 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +55 -8
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card-redraw.ts +86 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card.ts +5 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-dialog.ts +478 -115
- package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-menu.ts +77 -6
- package/node_modules/@herbertgao/pi-subagents/src/workflow/agent-detail.ts +148 -0
- package/node_modules/@herbertgao/pi-subagents/src/workflow/host.ts +88 -14
- package/node_modules/@herbertgao/pi-subagents/src/workflow/journal.ts +8 -0
- package/node_modules/@herbertgao/pi-subagents/src/workflow/json-schema.ts +507 -57
- package/node_modules/@herbertgao/pi-subagents/src/workflow/progress.ts +41 -11
- package/node_modules/@herbertgao/pi-subagents/src/workflow/runtime.ts +106 -34
- package/node_modules/@herbertgao/pi-subagents/src/workflow/task.ts +43 -5
- package/node_modules/@herbertgao/pi-subagents/src/workflow/tool-description.ts +93 -153
- package/node_modules/@herbertgao/pi-subagents/src/workflow/worker-source.ts +283 -71
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +288 -177
- package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
- package/node_modules/@pi-plugins/fast-mode/package.json +7 -7
- package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
- package/node_modules/pi-lens/CHANGELOG.md +132 -0
- package/node_modules/pi-lens/README.md +2 -0
- package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -0
- package/node_modules/pi-lens/dist/{chunk-LGH2HHZG.js → chunk-25CAONWT.js} +36 -25
- package/node_modules/pi-lens/dist/{chunk-ZQSSO7LO.js → chunk-2DWNYVUN.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-YCR6ZYTE.js → chunk-2RQREVGO.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VWEBZ2JV.js → chunk-2XALJI2K.js} +40 -40
- package/node_modules/pi-lens/dist/{chunk-PQXUZYTQ.js → chunk-2YQ5LI7R.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-VSQT6IHZ.js → chunk-35UJUF27.js} +18 -4
- package/node_modules/pi-lens/dist/{chunk-OLWGYBYT.js → chunk-3IWMNN2S.js} +17 -17
- package/node_modules/pi-lens/dist/chunk-3UTDLQWO.js +88 -0
- package/node_modules/pi-lens/dist/chunk-3Z7Z3B7V.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-UNP6Y4JV.js → chunk-4E4OCW3L.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-37IDWT6O.js → chunk-4GLSO2EM.js} +13 -11
- package/node_modules/pi-lens/dist/{chunk-QV3JPCMK.js → chunk-5HVDD7IA.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ZRQMENT4.js → chunk-62PIU4TO.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-3TSMQZG6.js → chunk-6MDWNZ7E.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-WLD6BGON.js → chunk-6MWX2J5H.js} +4 -0
- package/node_modules/pi-lens/dist/{chunk-SCU62JLX.js → chunk-6MZLS6CK.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-B42AIWPJ.js → chunk-7BWPQZHE.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-I3NZVAMN.js → chunk-7JMEPY6P.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-7DPXUPRF.js → chunk-7ORBRDFY.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6E5QLMWI.js → chunk-7WAQ3K26.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-2H5GHZKC.js → chunk-AB26NAHA.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-BBSDJTOV.js → chunk-AFSG6YUB.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-XDNWR7SG.js → chunk-ALTHJUZO.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-UN72ZAJ5.js → chunk-AOEVZXR6.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-HRLF35WL.js → chunk-ARTCVE6I.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-LQQNFCQJ.js → chunk-B2QO7GHY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-I2FYOZNW.js → chunk-BJGWP4UX.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-G53LBDNU.js → chunk-BKJ6WZKP.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-P5MSLVUW.js → chunk-BQ72NQQM.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-K7O6AHSJ.js → chunk-BWGNVM33.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-ADYQRETD.js → chunk-BYIEU4E4.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7ZVTFLCC.js → chunk-CDAJQBKJ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-BKWFDWYM.js → chunk-D3UQWOCB.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-3PAS2ERX.js → chunk-DHFJS2I4.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-KNSOA43J.js → chunk-DKXIUGNA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LOEJFTF2.js → chunk-DLGJYQML.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-VGRGW4UL.js → chunk-DNJJVKJZ.js} +31 -31
- package/node_modules/pi-lens/dist/{chunk-5HBQL7DH.js → chunk-EBXCYEII.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-EH6EHFW2.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-W26QZ3OM.js → chunk-EKQDQPX6.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-TWEOJE3D.js → chunk-EXHSWN3P.js} +844 -377
- package/node_modules/pi-lens/dist/{chunk-4IZZEN63.js → chunk-F7BFIENK.js} +33 -33
- package/node_modules/pi-lens/dist/{chunk-ZI7YHV6I.js → chunk-FD4LJQ6Y.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-RIH3UBK4.js → chunk-GFCPPCNR.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-5JB4WENL.js → chunk-GIK6VUCY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-PPQHMSPH.js → chunk-GNK2IHVG.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-CXQYK4YT.js → chunk-H6DNTQ4V.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-NGNBJIUO.js → chunk-HERQPNY6.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-INBK3HIT.js → chunk-HFIFEH46.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-J2ZB5MDS.js → chunk-HKRESBMC.js} +20 -20
- package/node_modules/pi-lens/dist/{chunk-AZG5UJYY.js → chunk-HMXWZUQW.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XSC3BCN3.js → chunk-HOWHAKXO.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-7CLWC2UH.js → chunk-HUWW77QY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KZ732ZVW.js → chunk-IO6P3NBP.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7WKVCZI4.js → chunk-J7VNGHLN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QE7BJQ6K.js → chunk-JGCBMCCS.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-PFJLYRO3.js → chunk-KIQSNH3F.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-JGUDT5KD.js → chunk-KSQJBGRO.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-RJ3APNIP.js → chunk-KXKM2DFP.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-L3Q72QGQ.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-6GLMMGCX.js → chunk-LDPY22FS.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-3PO4YYOX.js → chunk-M3QGXGY4.js} +3793 -3814
- package/node_modules/pi-lens/dist/{chunk-NNEQOC3U.js → chunk-MET776XM.js} +9 -7
- package/node_modules/pi-lens/dist/{chunk-X33QECRJ.js → chunk-MKQFSW2Q.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-7U36VQL6.js → chunk-MKW7ZUTT.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-PQF6YGYB.js → chunk-N2U644ZW.js} +4 -18
- package/node_modules/pi-lens/dist/{chunk-DI4AZZNY.js → chunk-NAACKIKT.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-O6LCSHHI.js → chunk-NHHS5T52.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-DCA2MXVQ.js → chunk-NIZKGBOU.js} +51 -27
- package/node_modules/pi-lens/dist/{chunk-PKWEBMCA.js → chunk-NNDZ7DOP.js} +194 -111
- package/node_modules/pi-lens/dist/{chunk-Q7J3JYJ2.js → chunk-NZ7NSKIW.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-S6MCMD27.js → chunk-OG3UCAHV.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-3QXFUP6T.js → chunk-OHTHVILU.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-NHA5K226.js → chunk-P7EV5ISR.js} +17 -2
- package/node_modules/pi-lens/dist/{chunk-L6BDRYUK.js → chunk-PVV27TOX.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-HIRBC72R.js → chunk-Q32RJDYC.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QE5DJ7MX.js → chunk-Q4UQNTLB.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-SDYLT45T.js → chunk-QQGZY2BR.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QMWKSYWB.js → chunk-S247BOH2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-ARTYCUGF.js → chunk-S7KUDW73.js} +121 -18
- package/node_modules/pi-lens/dist/{chunk-6CFSDLHE.js → chunk-SJ2SR432.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-CQY2HEH7.js → chunk-SL4G67AP.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-LVLPA32Q.js → chunk-T2D2WWP6.js} +48 -11
- package/node_modules/pi-lens/dist/{chunk-HIJ4CHFF.js → chunk-T7KHGEJ5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-74AMPWNC.js → chunk-TABDCX35.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-TFSBHRL2.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-KNJH6WJQ.js → chunk-TQKWR5AZ.js} +7 -7
- package/node_modules/pi-lens/dist/chunk-TWAQFMLW.js +110 -0
- package/node_modules/pi-lens/dist/{chunk-TKOFTLGB.js → chunk-UARVPNAU.js} +33 -33
- package/node_modules/pi-lens/dist/chunk-UWBD3JMH.js +56 -0
- package/node_modules/pi-lens/dist/{chunk-K4Z7MK6T.js → chunk-VEF3GFOL.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-4DAHGU3V.js → chunk-W2JPGW7Q.js} +27 -25
- package/node_modules/pi-lens/dist/{chunk-CZJGAOKL.js → chunk-W2YHHNY3.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-R4L7KZ7R.js → chunk-WA6U2URH.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-OZQQ3AIR.js → chunk-WAK2AXQQ.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-DFKOA74L.js → chunk-WH6O4IFD.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-27JQHK7Y.js → chunk-WJ7GY5WJ.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KXGTLAUW.js → chunk-WWZLT6AM.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-O2MHF7QM.js → chunk-XRLZ75YY.js} +38 -38
- package/node_modules/pi-lens/dist/chunk-XWWFESYZ.js +27 -0
- package/node_modules/pi-lens/dist/chunk-XZSXSM4K.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-C5PLBTNR.js → chunk-Y2LIOCA7.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AXAR5ZW2.js → chunk-YIEHUKX2.js} +84 -169
- package/node_modules/pi-lens/dist/{chunk-B2OXE4AH.js → chunk-YOMLAKU6.js} +182 -180
- package/node_modules/pi-lens/dist/{chunk-MOAVEPC4.js → chunk-YV7XVYSJ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-ZULZS2I6.js → chunk-ZVQUYCBU.js} +996 -365
- package/node_modules/pi-lens/dist/index.js +4911 -2376
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +8 -8
- package/node_modules/pi-lens/dist/mcp/cli.js +40 -40
- package/node_modules/pi-lens/dist/mcp/server.js +321 -234
- package/node_modules/pi-lens/dist/mcp/worker.js +58 -58
- package/node_modules/pi-lens/dist/probes/installer.js +21 -21
- package/node_modules/pi-lens/docs/ci-bot-pr-checks.md +18 -9
- package/node_modules/pi-lens/docs/ci.md +7 -0
- package/node_modules/pi-lens/docs/defect-shapes.md +43 -28
- package/node_modules/pi-lens/docs/globalconfig.md +1 -0
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +15 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +3 -3
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +3 -2
- package/node_modules/pi-lens/docs/module-report-read-symbol.md +6 -2
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-orchestration.md +2 -1
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -1
- package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
- package/node_modules/pi-lens/docs/settings.md +1 -0
- package/node_modules/pi-lens/docs/usage.md +1 -0
- package/node_modules/pi-lens/package.json +1 -1
- package/package.json +9 -4
- package/node_modules/pi-lens/dist/chunk-2H7NFZ4Q.js +0 -25
- package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +0 -56
- package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +0 -27
- package/node_modules/pi-lens/dist/chunk-H5API74E.js +0 -67
- package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +0 -27
- package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +0 -88
- package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +0 -73
- package/node_modules/pi-lens/dist/chunk-MJRGPEQ5.js +0 -25
- package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +0 -27
|
@@ -7,7 +7,7 @@ import * as OS from "node:os";
|
|
|
7
7
|
import * as Path from "node:path";
|
|
8
8
|
import * as NodeUrl from "node:url";
|
|
9
9
|
import * as readline from "node:readline";
|
|
10
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
10
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Pipeable.js
|
|
11
11
|
/**
|
|
12
12
|
* The `Pipeable` module defines the shared interface and implementation helpers
|
|
13
13
|
* for values that support Effect-style method chaining with `.pipe(...)`.
|
|
@@ -112,7 +112,7 @@ const Class$1 = /*#__PURE__*/ function() {
|
|
|
112
112
|
PipeableBase.prototype = Prototype$1;
|
|
113
113
|
return PipeableBase;
|
|
114
114
|
}();
|
|
115
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
115
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Function.js
|
|
116
116
|
/**
|
|
117
117
|
* Creates a function that can be called in data-first style or data-last
|
|
118
118
|
* (`pipe`-friendly) style.
|
|
@@ -406,12 +406,22 @@ function memoizeIdempotent(f) {
|
|
|
406
406
|
return result;
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
409
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/equal.js
|
|
410
|
+
const errorSiteKeys = [
|
|
411
|
+
"line",
|
|
412
|
+
"column",
|
|
413
|
+
"sourceURL",
|
|
414
|
+
"originalLine",
|
|
415
|
+
"originalColumn"
|
|
416
|
+
];
|
|
410
417
|
/** @internal */
|
|
411
418
|
const getAllObjectKeys = (obj) => {
|
|
412
419
|
const keys = new Set(Reflect.ownKeys(obj));
|
|
413
420
|
if (obj.constructor === Object) return keys;
|
|
414
|
-
if (obj instanceof Error)
|
|
421
|
+
if (obj instanceof Error) {
|
|
422
|
+
keys.delete("stack");
|
|
423
|
+
for (const key of errorSiteKeys) if (!Object.prototype.propertyIsEnumerable.call(obj, key)) keys.delete(key);
|
|
424
|
+
}
|
|
415
425
|
const proto = Object.getPrototypeOf(obj);
|
|
416
426
|
let current = proto;
|
|
417
427
|
while (current !== null && current !== Object.prototype) {
|
|
@@ -440,7 +450,7 @@ const bufferBytes = (buffer) => {
|
|
|
440
450
|
return;
|
|
441
451
|
}
|
|
442
452
|
};
|
|
443
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
453
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/hash.js
|
|
444
454
|
/**
|
|
445
455
|
* Back-edge count used to avoid caching entry-point-dependent hashes.
|
|
446
456
|
*
|
|
@@ -451,7 +461,7 @@ let backEdges = 0;
|
|
|
451
461
|
const addBackEdge = () => {
|
|
452
462
|
backEdges++;
|
|
453
463
|
};
|
|
454
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
464
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Predicate.js
|
|
455
465
|
/**
|
|
456
466
|
* Defines runtime checks for values.
|
|
457
467
|
*
|
|
@@ -924,7 +934,7 @@ const isTagged = /*#__PURE__*/ dual(2, (self, tag) => hasProperty(self, "_tag")
|
|
|
924
934
|
function isIterable(input) {
|
|
925
935
|
return hasProperty(input, Symbol.iterator) || isString$1(input);
|
|
926
936
|
}
|
|
927
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
937
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Hash.js
|
|
928
938
|
/**
|
|
929
939
|
* Computes Effect hash values and defines the interface for objects that want
|
|
930
940
|
* to provide their own hash implementation. Hashes are small numeric
|
|
@@ -1356,7 +1366,7 @@ const hashSet = /*#__PURE__*/ unordered(setSeed, (element) => combine(setSeed, h
|
|
|
1356
1366
|
const randomHashCache = /*#__PURE__*/ new WeakMap();
|
|
1357
1367
|
const hashCache = /*#__PURE__*/ new WeakMap();
|
|
1358
1368
|
const visitedObjects = /*#__PURE__*/ new WeakSet();
|
|
1359
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1369
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Equal.js
|
|
1360
1370
|
/**
|
|
1361
1371
|
* Defines the unique string identifier for the `Equal` interface.
|
|
1362
1372
|
*
|
|
@@ -1579,7 +1589,7 @@ const isEqual = (u) => hasProperty(u, "~effect/Equal") && typeof u["~effect/Equa
|
|
|
1579
1589
|
* @since 4.0.0
|
|
1580
1590
|
*/
|
|
1581
1591
|
const asEquivalence = () => equals$1;
|
|
1582
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1592
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Redactable.js
|
|
1583
1593
|
/**
|
|
1584
1594
|
* Defines the symbol used to identify objects that implement the {@link Redactable}
|
|
1585
1595
|
* protocol.
|
|
@@ -1701,7 +1711,7 @@ const emptyContext$1 = {
|
|
|
1701
1711
|
return pipeArguments(this, arguments);
|
|
1702
1712
|
}
|
|
1703
1713
|
};
|
|
1704
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1714
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Formatter.js
|
|
1705
1715
|
/**
|
|
1706
1716
|
* Formats JavaScript values into readable strings.
|
|
1707
1717
|
*
|
|
@@ -1987,7 +1997,7 @@ function isJsonPrimitiveWrapper(object) {
|
|
|
1987
1997
|
} catch {}
|
|
1988
1998
|
return false;
|
|
1989
1999
|
}
|
|
1990
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2000
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Inspectable.js
|
|
1991
2001
|
/**
|
|
1992
2002
|
* Controls how values appear in logs and debugging output.
|
|
1993
2003
|
*
|
|
@@ -2140,7 +2150,7 @@ const BaseProto = {
|
|
|
2140
2150
|
return format$1(this.toJSON());
|
|
2141
2151
|
}
|
|
2142
2152
|
};
|
|
2143
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2153
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
2144
2154
|
/**
|
|
2145
2155
|
* Check if `Error.stackTraceLimit` is writable.
|
|
2146
2156
|
* Returns `false` if the property is frozen, non-writable, or `Error` is non-extensible.
|
|
@@ -2171,7 +2181,7 @@ const getStackTraceLimit = () => Error.stackTraceLimit;
|
|
|
2171
2181
|
const setStackTraceLimit = (value) => {
|
|
2172
2182
|
if (canWriteStackTraceLimit) Error.stackTraceLimit = value;
|
|
2173
2183
|
};
|
|
2174
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2184
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Utils.js
|
|
2175
2185
|
/**
|
|
2176
2186
|
* Yields its wrapped value exactly once, then completes with the value sent
|
|
2177
2187
|
* back in.
|
|
@@ -2253,7 +2263,7 @@ const pickInternalCall = () => {
|
|
|
2253
2263
|
};
|
|
2254
2264
|
/** @internal */
|
|
2255
2265
|
const internalCall = /*#__PURE__*/ pickInternalCall();
|
|
2256
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2266
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/record.js
|
|
2257
2267
|
/** @internal */
|
|
2258
2268
|
function assignProperty(self, key, value) {
|
|
2259
2269
|
if (key === "__proto__") Object.defineProperty(self, key, {
|
|
@@ -2272,7 +2282,7 @@ function assignProperties(self, source) {
|
|
|
2272
2282
|
}
|
|
2273
2283
|
for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProperty(self, key, source[key]);
|
|
2274
2284
|
}
|
|
2275
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2285
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/core.js
|
|
2276
2286
|
/** @internal */
|
|
2277
2287
|
const EffectTypeId = `~effect/Effect`;
|
|
2278
2288
|
/** @internal */
|
|
@@ -2676,7 +2686,7 @@ const done$2 = (value) => {
|
|
|
2676
2686
|
if (value === void 0) return doneVoid;
|
|
2677
2687
|
return exitFail(Done$1(value));
|
|
2678
2688
|
};
|
|
2679
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2689
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Effectable.js
|
|
2680
2690
|
/**
|
|
2681
2691
|
* Create a low-level `Effect` prototype.
|
|
2682
2692
|
*
|
|
@@ -2701,7 +2711,7 @@ const Prototype = (options) => makePrimitiveProto({
|
|
|
2701
2711
|
op: options.label,
|
|
2702
2712
|
[evaluate]: options.evaluate
|
|
2703
2713
|
});
|
|
2704
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2714
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/option.js
|
|
2705
2715
|
/**
|
|
2706
2716
|
* @since 2.0.0
|
|
2707
2717
|
*/
|
|
@@ -2771,7 +2781,7 @@ const SomeImpl = function(value) {
|
|
|
2771
2781
|
SomeImpl.prototype = SomeProto;
|
|
2772
2782
|
/** @internal */
|
|
2773
2783
|
const some$1 = (value) => new SomeImpl(value);
|
|
2774
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2784
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/result.js
|
|
2775
2785
|
const TypeId$31 = "~effect/Result";
|
|
2776
2786
|
const CommonProto = {
|
|
2777
2787
|
[TypeId$31]: {
|
|
@@ -2844,7 +2854,7 @@ const SuccessImpl = function(success) {
|
|
|
2844
2854
|
SuccessImpl.prototype = SuccessProto;
|
|
2845
2855
|
/** @internal */
|
|
2846
2856
|
const succeed$6 = (success) => new SuccessImpl(success);
|
|
2847
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2857
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Order.js
|
|
2848
2858
|
/**
|
|
2849
2859
|
* Defines comparison functions for ordered values.
|
|
2850
2860
|
*
|
|
@@ -3146,7 +3156,7 @@ const min$1 = (O) => dual(2, (self, that) => self === that || O(self, that) < 1
|
|
|
3146
3156
|
* @since 2.0.0
|
|
3147
3157
|
*/
|
|
3148
3158
|
const max$1 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
3149
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
3159
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Option.js
|
|
3150
3160
|
/**
|
|
3151
3161
|
* Creates an `Option` representing the absence of a value.
|
|
3152
3162
|
*
|
|
@@ -3532,7 +3542,7 @@ const flatMap$3 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : f(s
|
|
|
3532
3542
|
* @since 2.0.0
|
|
3533
3543
|
*/
|
|
3534
3544
|
const filter$1 = /*#__PURE__*/ dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some(self.value) : none());
|
|
3535
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
3545
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Context.js
|
|
3536
3546
|
/**
|
|
3537
3547
|
* Runtime type identifier attached to `Context` service keys and used by
|
|
3538
3548
|
* `isKey` to recognize them.
|
|
@@ -4201,13 +4211,13 @@ const mergeAll$1 = (...ctxs) => {
|
|
|
4201
4211
|
* @since 3.11.0
|
|
4202
4212
|
*/
|
|
4203
4213
|
const Reference = Service;
|
|
4204
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4214
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/array.js
|
|
4205
4215
|
/**
|
|
4206
4216
|
* @since 2.0.0
|
|
4207
4217
|
*/
|
|
4208
4218
|
/** @internal */
|
|
4209
4219
|
const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
4210
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4220
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/count.js
|
|
4211
4221
|
/**
|
|
4212
4222
|
* Normalizes a collection count to a non-negative integer. `NaN` and
|
|
4213
4223
|
* non-positive values become `0`; positive infinity is preserved.
|
|
@@ -4215,7 +4225,7 @@ const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
|
4215
4225
|
* @internal
|
|
4216
4226
|
*/
|
|
4217
4227
|
const normalize$2 = (n) => n > 0 ? Math.floor(n) : 0;
|
|
4218
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4228
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Result.js
|
|
4219
4229
|
/**
|
|
4220
4230
|
* Creates a `Result` holding a `Success` value.
|
|
4221
4231
|
*
|
|
@@ -4395,7 +4405,7 @@ const getOrThrow = /*#__PURE__*/ (/* @__PURE__ */ dual(2, (self, onFailure) => {
|
|
|
4395
4405
|
if (isSuccess$1(self)) return self.success;
|
|
4396
4406
|
throw onFailure(self.failure);
|
|
4397
4407
|
}))(identity);
|
|
4398
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4408
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Iterable.js
|
|
4399
4409
|
/**
|
|
4400
4410
|
* Returns the first element that satisfies the specified
|
|
4401
4411
|
* predicate, or `None` if no such element exists.
|
|
@@ -4448,7 +4458,7 @@ const findFirst$1 = /*#__PURE__*/ dual(2, (self, f) => {
|
|
|
4448
4458
|
}
|
|
4449
4459
|
return none();
|
|
4450
4460
|
});
|
|
4451
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4461
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Record.js
|
|
4452
4462
|
/**
|
|
4453
4463
|
* Checks whether a given `key` exists in a record.
|
|
4454
4464
|
*
|
|
@@ -4485,7 +4495,7 @@ const has = /*#__PURE__*/ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
|
4485
4495
|
* @since 2.0.0
|
|
4486
4496
|
*/
|
|
4487
4497
|
const get$2 = /*#__PURE__*/ dual(2, (self, key) => Object.hasOwn(self, key) ? some(self[key]) : none());
|
|
4488
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4498
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Array.js
|
|
4489
4499
|
/**
|
|
4490
4500
|
* Works with JavaScript arrays, readonly arrays, and non-empty arrays.
|
|
4491
4501
|
*
|
|
@@ -4982,7 +4992,7 @@ const filter = /*#__PURE__*/ dual(2, (self, predicate) => {
|
|
|
4982
4992
|
* @since 2.0.0
|
|
4983
4993
|
*/
|
|
4984
4994
|
const join$2 = /*#__PURE__*/ dual(2, (self, sep) => fromIterable$1(self).join(sep));
|
|
4985
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4995
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Duration.js
|
|
4986
4996
|
const TypeId$29 = "~effect/Duration";
|
|
4987
4997
|
const bigint0$2 = /*#__PURE__*/ BigInt(0);
|
|
4988
4998
|
const bigint1$2 = /*#__PURE__*/ BigInt(1);
|
|
@@ -5473,7 +5483,7 @@ const Equivalence$3 = (self, that) => matchPair(self, that, {
|
|
|
5473
5483
|
* @since 2.0.0
|
|
5474
5484
|
*/
|
|
5475
5485
|
const equals = /*#__PURE__*/ dual(2, (self, that) => Equivalence$3(self, that));
|
|
5476
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5486
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Scheduler.js
|
|
5477
5487
|
/**
|
|
5478
5488
|
* Controls how runnable Effect fiber tasks are dispatched.
|
|
5479
5489
|
*
|
|
@@ -5885,7 +5895,12 @@ const Error$2 = Error$3;
|
|
|
5885
5895
|
* @since 2.0.0
|
|
5886
5896
|
*/
|
|
5887
5897
|
const TaggedError = TaggedError$1;
|
|
5888
|
-
|
|
5898
|
+
const hexCodes = /*#__PURE__*/ (/* @__PURE__ */ new Uint8Array(256)).fill(255);
|
|
5899
|
+
for (let i = 0; i < 16; i++) {
|
|
5900
|
+
hexCodes[/*#__PURE__*/ "0123456789abcdef".charCodeAt(i)] = i;
|
|
5901
|
+
hexCodes[/*#__PURE__*/ "0123456789ABCDEF".charCodeAt(i)] = i;
|
|
5902
|
+
}
|
|
5903
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Tracer.js
|
|
5889
5904
|
/**
|
|
5890
5905
|
* Defines the string key for the parent-span context service.
|
|
5891
5906
|
*
|
|
@@ -5921,10 +5936,10 @@ const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
|
5921
5936
|
* @since 4.0.0
|
|
5922
5937
|
*/
|
|
5923
5938
|
const TracerKey = "effect/Tracer";
|
|
5924
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5939
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/metric.js
|
|
5925
5940
|
/** @internal */
|
|
5926
5941
|
const FiberRuntimeMetricsKey = "effect/Metric/FiberRuntimeMetrics";
|
|
5927
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5942
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/references.js
|
|
5928
5943
|
/** @internal */
|
|
5929
5944
|
const CurrentStackFrame = /*#__PURE__*/ Reference("effect/References/CurrentStackFrame", {
|
|
5930
5945
|
fiberCached: true,
|
|
@@ -5951,7 +5966,7 @@ const MinimumLogLevel = /*#__PURE__*/ Reference("effect/References/MinimumLogLev
|
|
|
5951
5966
|
const UnhandledLogLevel = /*#__PURE__*/ Reference("effect/References/UnhandledLogLevel", { defaultValue: () => "Error" });
|
|
5952
5967
|
/** @internal */
|
|
5953
5968
|
const CurrentLogSpans = /*#__PURE__*/ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
|
|
5954
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5969
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/effect.js
|
|
5955
5970
|
/** @internal */
|
|
5956
5971
|
var Interrupt = class extends ReasonBase {
|
|
5957
5972
|
constructor(fiberId, annotations = constEmptyAnnotations) {
|
|
@@ -6164,6 +6179,7 @@ var FiberImpl = class {
|
|
|
6164
6179
|
this._children = void 0;
|
|
6165
6180
|
this._interruptedCause = void 0;
|
|
6166
6181
|
this._yielded = void 0;
|
|
6182
|
+
this._autoYielded = false;
|
|
6167
6183
|
this._running = false;
|
|
6168
6184
|
this._deferredInterrupt = false;
|
|
6169
6185
|
this._parent = void 0;
|
|
@@ -6256,8 +6272,10 @@ var FiberImpl = class {
|
|
|
6256
6272
|
const prevRunning = this._running;
|
|
6257
6273
|
this._running = true;
|
|
6258
6274
|
let yielding = false;
|
|
6275
|
+
let resuming = this._autoYielded;
|
|
6276
|
+
this._autoYielded = false;
|
|
6259
6277
|
let current = effect;
|
|
6260
|
-
this.currentOpCount = 0;
|
|
6278
|
+
this.currentOpCount = resuming ? 1 : 0;
|
|
6261
6279
|
try {
|
|
6262
6280
|
while (true) try {
|
|
6263
6281
|
if (this._deferredInterrupt) {
|
|
@@ -6266,12 +6284,13 @@ var FiberImpl = class {
|
|
|
6266
6284
|
}
|
|
6267
6285
|
this.currentOpCount++;
|
|
6268
6286
|
const cache = this.cache;
|
|
6269
|
-
if (!yielding && !cache.preventYield && cache.scheduler.shouldYield(this)) {
|
|
6287
|
+
if (!resuming && !yielding && !cache.preventYield && cache.scheduler.shouldYield(this)) {
|
|
6270
6288
|
yielding = true;
|
|
6271
|
-
|
|
6272
|
-
|
|
6289
|
+
current = this.yieldNow(current, 0, true);
|
|
6290
|
+
} else {
|
|
6291
|
+
resuming = false;
|
|
6292
|
+
current = cache.tracerContext ? cache.tracerContext(current, this) : current[evaluate](this);
|
|
6273
6293
|
}
|
|
6274
|
-
current = cache.tracerContext ? cache.tracerContext(current, this) : current[evaluate](this);
|
|
6275
6294
|
if (current === Yield) {
|
|
6276
6295
|
const yielded = this._yielded;
|
|
6277
6296
|
if ("~effect/Exit" in yielded) {
|
|
@@ -6322,6 +6341,17 @@ var FiberImpl = class {
|
|
|
6322
6341
|
this._yielded = value;
|
|
6323
6342
|
return Yield;
|
|
6324
6343
|
}
|
|
6344
|
+
yieldNow(effect, priority = 0, automatic = false) {
|
|
6345
|
+
let resumed = false;
|
|
6346
|
+
this.currentDispatcher.scheduleTask(() => {
|
|
6347
|
+
if (resumed) return;
|
|
6348
|
+
this._autoYielded = automatic;
|
|
6349
|
+
this.evaluate(effect);
|
|
6350
|
+
}, priority);
|
|
6351
|
+
return this.yieldWith(() => {
|
|
6352
|
+
resumed = true;
|
|
6353
|
+
});
|
|
6354
|
+
}
|
|
6325
6355
|
children() {
|
|
6326
6356
|
return this._children ??= /* @__PURE__ */ new Set();
|
|
6327
6357
|
}
|
|
@@ -6467,14 +6497,7 @@ const suspend$3 = /*#__PURE__*/ makePrimitive({
|
|
|
6467
6497
|
const yieldNow = /*#__PURE__*/ (/* @__PURE__ */ makePrimitive({
|
|
6468
6498
|
op: "Yield",
|
|
6469
6499
|
[evaluate](fiber) {
|
|
6470
|
-
|
|
6471
|
-
fiber.currentDispatcher.scheduleTask(() => {
|
|
6472
|
-
if (resumed) return;
|
|
6473
|
-
fiber.evaluate(exitVoid);
|
|
6474
|
-
}, this["~effect/Effect/args"] ?? 0);
|
|
6475
|
-
return fiber.yieldWith(() => {
|
|
6476
|
-
resumed = true;
|
|
6477
|
-
});
|
|
6500
|
+
return fiber.yieldNow(exitVoid, this["~effect/Effect/args"] ?? 0);
|
|
6478
6501
|
}
|
|
6479
6502
|
}))(0);
|
|
6480
6503
|
/** @internal */
|
|
@@ -6731,15 +6754,22 @@ const raceAllFirst = (all, options) => withFiber$1((parent) => {
|
|
|
6731
6754
|
const isWinner = !done;
|
|
6732
6755
|
done = true;
|
|
6733
6756
|
resume(exit);
|
|
6734
|
-
if (isWinner
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6757
|
+
if (isWinner) {
|
|
6758
|
+
interruptRaceLosers(fibers, parent);
|
|
6759
|
+
options?.onWinner?.({
|
|
6760
|
+
fiber,
|
|
6761
|
+
index,
|
|
6762
|
+
parentFiber: parent
|
|
6763
|
+
});
|
|
6764
|
+
}
|
|
6739
6765
|
});
|
|
6740
6766
|
}
|
|
6741
6767
|
});
|
|
6742
6768
|
});
|
|
6769
|
+
const interruptRaceLosers = (fibers, parent) => {
|
|
6770
|
+
const annotations = fiberStackAnnotations(parent);
|
|
6771
|
+
for (const fiber of fibers) fiber.interruptUnsafe(parent.id, annotations);
|
|
6772
|
+
};
|
|
6743
6773
|
/** @internal */
|
|
6744
6774
|
const raceFirst$1 = /*#__PURE__*/ dual((args) => isEffect$1(args[1]), (self, that, options) => raceAllFirst([self, that], options));
|
|
6745
6775
|
/** @internal */
|
|
@@ -7953,7 +7983,7 @@ const doneUnsafe = (self, effect) => {
|
|
|
7953
7983
|
}
|
|
7954
7984
|
return true;
|
|
7955
7985
|
};
|
|
7956
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7986
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Scope.js
|
|
7957
7987
|
/**
|
|
7958
7988
|
* Controls how long resources stay open.
|
|
7959
7989
|
*
|
|
@@ -8213,7 +8243,7 @@ const forkUnsafe = scopeForkUnsafe;
|
|
|
8213
8243
|
* @since 2.0.0
|
|
8214
8244
|
*/
|
|
8215
8245
|
const close = scopeClose;
|
|
8216
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
8246
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Layer.js
|
|
8217
8247
|
const TypeId$27 = "~effect/Layer";
|
|
8218
8248
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
8219
8249
|
const makeMemoMapEntry = (memoMap, layer) => {
|
|
@@ -8859,7 +8889,7 @@ const provideWith = (self, that, f) => fromBuildMemo((memoMap, scope) => flatMap
|
|
|
8859
8889
|
* @since 2.0.0
|
|
8860
8890
|
*/
|
|
8861
8891
|
const provideMerge = /*#__PURE__*/ dual(2, (self, that) => provideWith(self, that, (self, that) => merge$2(that, self)));
|
|
8862
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
8892
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Exit.js
|
|
8863
8893
|
/**
|
|
8864
8894
|
* Creates a successful Exit containing the given value.
|
|
8865
8895
|
*
|
|
@@ -9005,7 +9035,7 @@ const isSuccess = exitIsSuccess;
|
|
|
9005
9035
|
* @since 2.0.0
|
|
9006
9036
|
*/
|
|
9007
9037
|
const isFailure = exitIsFailure;
|
|
9008
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9038
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Cause.js
|
|
9009
9039
|
/**
|
|
9010
9040
|
* Checks whether an arbitrary value is a `Cause`.
|
|
9011
9041
|
*
|
|
@@ -9364,7 +9394,7 @@ const done = done$2;
|
|
|
9364
9394
|
* @since 4.0.0
|
|
9365
9395
|
*/
|
|
9366
9396
|
const UnknownError = UnknownError$1;
|
|
9367
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9397
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/dateTime.js
|
|
9368
9398
|
/** @internal */
|
|
9369
9399
|
const TypeId$26 = "~effect/DateTime";
|
|
9370
9400
|
/** @internal */
|
|
@@ -9657,7 +9687,7 @@ const startsWith = (searchString, position) => (self) => self.startsWith(searchS
|
|
|
9657
9687
|
* @since 2.0.0
|
|
9658
9688
|
*/
|
|
9659
9689
|
const repeat = (count) => (self) => self.repeat(normalize$2(count));
|
|
9660
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9690
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Pull.js
|
|
9661
9691
|
/**
|
|
9662
9692
|
* Models one low-level pull step for stream-like consumers.
|
|
9663
9693
|
*
|
|
@@ -9834,11 +9864,11 @@ const matchEffect$1 = /*#__PURE__*/ dual(2, (self, options) => matchCauseEffect$
|
|
|
9834
9864
|
return !isFailure$1(halt) ? options.onDone(halt.success.value) : options.onFailure(halt.failure);
|
|
9835
9865
|
}
|
|
9836
9866
|
}));
|
|
9837
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9867
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/layer.js
|
|
9838
9868
|
const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$1(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext$1(self, context)));
|
|
9839
9869
|
/** @internal */
|
|
9840
9870
|
const provide$1 = /*#__PURE__*/ dual((args) => isEffect$1(args[0]), (self, source, options) => isContext(source) ? provideContext$1(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
|
|
9841
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9871
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Effect.js
|
|
9842
9872
|
/**
|
|
9843
9873
|
* Checks whether a value is an `Effect`.
|
|
9844
9874
|
*
|
|
@@ -12692,7 +12722,7 @@ const flatMapEager = flatMapEager$1;
|
|
|
12692
12722
|
* @since 4.0.0
|
|
12693
12723
|
*/
|
|
12694
12724
|
const fnUntracedEager = fnUntracedEager$1;
|
|
12695
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12725
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/BigInt.js
|
|
12696
12726
|
/**
|
|
12697
12727
|
* Exposes the global bigint constructor for JavaScript bigint coercion.
|
|
12698
12728
|
*
|
|
@@ -12756,7 +12786,7 @@ const toNumber = (b) => {
|
|
|
12756
12786
|
if (b > BigInt$4(Number.MAX_SAFE_INTEGER) || b < BigInt$4(Number.MIN_SAFE_INTEGER)) return none();
|
|
12757
12787
|
return some(Number(b));
|
|
12758
12788
|
};
|
|
12759
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12789
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/ByteSize.js
|
|
12760
12790
|
const bigint0$1 = /*#__PURE__*/ BigInt(0);
|
|
12761
12791
|
const bigint1$1 = /*#__PURE__*/ BigInt(1);
|
|
12762
12792
|
const decimalBase = /*#__PURE__*/ BigInt(1e3);
|
|
@@ -13006,7 +13036,7 @@ const fromInputUnsafe = (input) => {
|
|
|
13006
13036
|
* @since 4.0.0
|
|
13007
13037
|
*/
|
|
13008
13038
|
const bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
13009
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13039
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Fiber.js
|
|
13010
13040
|
/**
|
|
13011
13041
|
* Joins a fiber, blocking until it completes. If the fiber succeeds,
|
|
13012
13042
|
* returns its value. If it fails, the error is propagated.
|
|
@@ -13140,7 +13170,7 @@ const getCurrent = getCurrentFiber;
|
|
|
13140
13170
|
* @since 4.0.0
|
|
13141
13171
|
*/
|
|
13142
13172
|
const runIn = fiberRunIn;
|
|
13143
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13173
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/glob.js
|
|
13144
13174
|
const maxExpansions = 1e4;
|
|
13145
13175
|
const maxExpandedLength = 2 ** 22;
|
|
13146
13176
|
const maxBraceDepth = 64;
|
|
@@ -13689,7 +13719,7 @@ const walk = /*#__PURE__*/ fnUntraced(function* (fs, compiled, options) {
|
|
|
13689
13719
|
finishing = true;
|
|
13690
13720
|
})), _await(failed));
|
|
13691
13721
|
});
|
|
13692
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13722
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/PlatformError.js
|
|
13693
13723
|
/**
|
|
13694
13724
|
* Normalized errors for platform APIs.
|
|
13695
13725
|
*
|
|
@@ -13846,7 +13876,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
|
|
|
13846
13876
|
* @since 4.0.0
|
|
13847
13877
|
*/
|
|
13848
13878
|
const badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
13849
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13879
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Latch.js
|
|
13850
13880
|
/**
|
|
13851
13881
|
* Creates a `Latch` synchronously, outside of `Effect`.
|
|
13852
13882
|
*
|
|
@@ -13883,7 +13913,7 @@ const badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
13883
13913
|
* @since 4.0.0
|
|
13884
13914
|
*/
|
|
13885
13915
|
const makeUnsafe$1 = makeLatchUnsafe;
|
|
13886
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13916
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/MutableRef.js
|
|
13887
13917
|
const TypeId$24 = "~effect/MutableRef";
|
|
13888
13918
|
const MutableRefProto = {
|
|
13889
13919
|
[TypeId$24]: TypeId$24,
|
|
@@ -13933,7 +13963,7 @@ const make$19 = (value) => {
|
|
|
13933
13963
|
ref.current = value;
|
|
13934
13964
|
return ref;
|
|
13935
13965
|
};
|
|
13936
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
13966
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/MutableList.js
|
|
13937
13967
|
/**
|
|
13938
13968
|
* Mutable lists for collecting ordered values and draining them from the front.
|
|
13939
13969
|
* A `MutableList<A>` can append values to the end, prepend values to the
|
|
@@ -14125,6 +14155,53 @@ const takeN = (self, n) => {
|
|
|
14125
14155
|
return array;
|
|
14126
14156
|
};
|
|
14127
14157
|
/**
|
|
14158
|
+
* Removes up to `n` elements from the beginning of the `MutableList` without
|
|
14159
|
+
* returning them.
|
|
14160
|
+
*
|
|
14161
|
+
* **When to use**
|
|
14162
|
+
*
|
|
14163
|
+
* Use to discard a bounded number of values from the head of a `MutableList`
|
|
14164
|
+
* when the removed values are not needed.
|
|
14165
|
+
*
|
|
14166
|
+
* **Details**
|
|
14167
|
+
*
|
|
14168
|
+
* Finite fractional values of `n` are rounded down. If `n` is `NaN` or
|
|
14169
|
+
* non-positive, or the list is empty, the list is left unchanged. If the
|
|
14170
|
+
* normalized count is greater than or equal to the current length, the list is
|
|
14171
|
+
* cleared.
|
|
14172
|
+
*
|
|
14173
|
+
* @see {@link takeN} for removing up to `n` values and returning them as an array
|
|
14174
|
+
* @see {@link clear} for removing every value from the list
|
|
14175
|
+
*
|
|
14176
|
+
* @stability stable
|
|
14177
|
+
* @category mutations
|
|
14178
|
+
* @since 4.0.0
|
|
14179
|
+
*/
|
|
14180
|
+
const takeNVoid = (self, n) => {
|
|
14181
|
+
n = normalize$2(n);
|
|
14182
|
+
if (n <= 0 || !self.head) return;
|
|
14183
|
+
n = Math.min(n, self.length);
|
|
14184
|
+
if (n === self.length && self.head?.offset === 0 && !self.head.next) {
|
|
14185
|
+
clear(self);
|
|
14186
|
+
return;
|
|
14187
|
+
}
|
|
14188
|
+
let count = 0;
|
|
14189
|
+
let chunk = self.head;
|
|
14190
|
+
while (chunk) {
|
|
14191
|
+
const size = chunk.array.length - chunk.offset;
|
|
14192
|
+
if (count + size > n) {
|
|
14193
|
+
chunk.offset += n - count;
|
|
14194
|
+
self.head = chunk;
|
|
14195
|
+
self.length -= n;
|
|
14196
|
+
compactHead(self);
|
|
14197
|
+
return;
|
|
14198
|
+
}
|
|
14199
|
+
count += size;
|
|
14200
|
+
chunk = chunk.next;
|
|
14201
|
+
}
|
|
14202
|
+
clear(self);
|
|
14203
|
+
};
|
|
14204
|
+
/**
|
|
14128
14205
|
* Takes a single element from the beginning of the MutableList.
|
|
14129
14206
|
* Returns the element if available, or the Empty symbol if the list is empty.
|
|
14130
14207
|
* The taken element is removed from the list.
|
|
@@ -14158,7 +14235,7 @@ const take$1 = (self) => {
|
|
|
14158
14235
|
} else compactHead(self);
|
|
14159
14236
|
return message;
|
|
14160
14237
|
};
|
|
14161
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14238
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Queue.js
|
|
14162
14239
|
const TypeId$23 = "~effect/Queue";
|
|
14163
14240
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
14164
14241
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -14347,7 +14424,8 @@ const offer = /*#__PURE__*/ dual(2, (self, message) => suspend$3(() => offerUnsa
|
|
|
14347
14424
|
* Adds a message to the queue synchronously. Returns `false` without adding the
|
|
14348
14425
|
* message if the queue is closing or done, or if it is full with a non-sliding
|
|
14349
14426
|
* strategy (`"suspend"` or `"dropping"`). A queue with non-positive capacity can
|
|
14350
|
-
* still accept a message when a taker is waiting.
|
|
14427
|
+
* still accept a message when a taker is waiting. A sliding queue with
|
|
14428
|
+
* non-positive capacity discards the message when no taker is waiting.
|
|
14351
14429
|
*
|
|
14352
14430
|
* **When to use**
|
|
14353
14431
|
*
|
|
@@ -14387,14 +14465,17 @@ const offer = /*#__PURE__*/ dual(2, (self, message) => suspend$3(() => offerUnsa
|
|
|
14387
14465
|
const offerUnsafe = (self, message) => {
|
|
14388
14466
|
if (self.state._tag !== "Open") return false;
|
|
14389
14467
|
else if (self.messages.length >= self.capacity) {
|
|
14390
|
-
if (self.strategy === "sliding") {
|
|
14391
|
-
take$1(self.messages);
|
|
14392
|
-
append(self.messages, message);
|
|
14393
|
-
return true;
|
|
14394
|
-
} else if (self.capacity <= 0 && self.state.takers.size > 0) {
|
|
14468
|
+
if (self.capacity <= 0 && self.state.takers.size > (self.strategy === "sliding" ? 0 : self.messages.length)) {
|
|
14395
14469
|
append(self.messages, message);
|
|
14470
|
+
if (self.strategy === "sliding") takeNVoid(self.messages, self.messages.length - self.state.takers.size);
|
|
14396
14471
|
releaseTakers(self);
|
|
14397
14472
|
return true;
|
|
14473
|
+
} else if (self.strategy === "sliding") {
|
|
14474
|
+
if (self.capacity > 0) {
|
|
14475
|
+
take$1(self.messages);
|
|
14476
|
+
append(self.messages, message);
|
|
14477
|
+
}
|
|
14478
|
+
return true;
|
|
14398
14479
|
}
|
|
14399
14480
|
return false;
|
|
14400
14481
|
}
|
|
@@ -14996,7 +15077,7 @@ const finalize = (self, exit) => {
|
|
|
14996
15077
|
for (const awaiter of openState.awaiters) awaiter(exit);
|
|
14997
15078
|
openState.awaiters.clear();
|
|
14998
15079
|
};
|
|
14999
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
15080
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Channel.js
|
|
15000
15081
|
/**
|
|
15001
15082
|
* Provides low-level building blocks for streaming data through Effect.
|
|
15002
15083
|
*
|
|
@@ -15653,7 +15734,7 @@ const runFold = /*#__PURE__*/ dual(3, (self, initial, f) => suspend$2(() => {
|
|
|
15653
15734
|
* @since 4.0.0
|
|
15654
15735
|
*/
|
|
15655
15736
|
const toPullScoped = (self, scope) => toTransform(self)(done(), scope);
|
|
15656
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
15737
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/stream.js
|
|
15657
15738
|
const TypeId$21 = "~effect/Stream";
|
|
15658
15739
|
const streamVariance = {
|
|
15659
15740
|
_R: identity,
|
|
@@ -15671,7 +15752,7 @@ Stream.prototype = {
|
|
|
15671
15752
|
};
|
|
15672
15753
|
/** @internal */
|
|
15673
15754
|
const fromChannel$2 = (channel) => new Stream(channel);
|
|
15674
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
15755
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Sink.js
|
|
15675
15756
|
const TypeId$20 = "~effect/Sink";
|
|
15676
15757
|
const endVoid = /*#__PURE__*/ succeed$1([void 0]);
|
|
15677
15758
|
const sinkVariance = {
|
|
@@ -15861,7 +15942,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap(f)
|
|
|
15861
15942
|
* @since 2.0.0
|
|
15862
15943
|
*/
|
|
15863
15944
|
const unwrap$4 = (effect) => fromChannel$1(unwrap$5(map(effect, toChannel$1)));
|
|
15864
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
15945
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/rcRef.js
|
|
15865
15946
|
const TypeId$19 = "~effect/RcRef";
|
|
15866
15947
|
const stateEmpty = { _tag: "Empty" };
|
|
15867
15948
|
const stateClosed = { _tag: "Closed" };
|
|
@@ -15978,7 +16059,7 @@ const release = (self, state) => {
|
|
|
15978
16059
|
})), runForkWith(self.context), runIn(self.scope));
|
|
15979
16060
|
return void_;
|
|
15980
16061
|
};
|
|
15981
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16062
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/RcRef.js
|
|
15982
16063
|
/**
|
|
15983
16064
|
* Creates an `RcRef` from an acquire effect.
|
|
15984
16065
|
*
|
|
@@ -16073,7 +16154,7 @@ const make$15 = make$16;
|
|
|
16073
16154
|
* @since 3.5.0
|
|
16074
16155
|
*/
|
|
16075
16156
|
const get = get$1;
|
|
16076
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16157
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Stream.js
|
|
16077
16158
|
/**
|
|
16078
16159
|
* Describes effectful sources that emit values over time.
|
|
16079
16160
|
*
|
|
@@ -16639,7 +16720,7 @@ const runDrain = (self) => runDrain$1(self.channel);
|
|
|
16639
16720
|
* @since 2.0.0
|
|
16640
16721
|
*/
|
|
16641
16722
|
const mkString = (self) => runFold(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
|
|
16642
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16723
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/FileSystem.js
|
|
16643
16724
|
/**
|
|
16644
16725
|
* Defines the portable file system service for Effect programs.
|
|
16645
16726
|
*
|
|
@@ -16827,7 +16908,7 @@ const FileTypeId = "~effect/FileSystem/File";
|
|
|
16827
16908
|
* @since 4.0.0
|
|
16828
16909
|
*/
|
|
16829
16910
|
var WatchBackend = class extends (/*#__PURE__*/ Service()("effect/FileSystem/WatchBackend")) {};
|
|
16830
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16911
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Path.js
|
|
16831
16912
|
/**
|
|
16832
16913
|
* Provides path operations through the Effect environment.
|
|
16833
16914
|
*
|
|
@@ -16954,7 +17035,7 @@ const make$13 = (impl) => Path$1.of({
|
|
|
16954
17035
|
return relative === ".." || relative.startsWith(`..${impl.sep}`) || impl.isAbsolute(relative) ? none() : some(candidate);
|
|
16955
17036
|
}
|
|
16956
17037
|
});
|
|
16957
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17038
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/annotations.js
|
|
16958
17039
|
/** @internal */
|
|
16959
17040
|
function resolve$1(ast) {
|
|
16960
17041
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -16969,20 +17050,22 @@ const getExpected = /*#__PURE__*/ memoize((ast) => {
|
|
|
16969
17050
|
if (typeof identifier === "string") return identifier;
|
|
16970
17051
|
return ast.getExpected(getExpected);
|
|
16971
17052
|
});
|
|
16972
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17053
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/parser.js
|
|
16973
17054
|
/** @internal */
|
|
16974
|
-
const missing = /*#__PURE__*/ Symbol();
|
|
17055
|
+
const missing = /*#__PURE__*/ Symbol.for("effect/schema/parser/missing");
|
|
16975
17056
|
/** @internal */
|
|
16976
17057
|
const succeed = succeed$2;
|
|
16977
17058
|
/** @internal */
|
|
16978
17059
|
const missingExit = /*#__PURE__*/ succeed(missing);
|
|
16979
17060
|
/** @internal */
|
|
16980
|
-
const sameExit = /*#__PURE__*/ succeed(missing);
|
|
17061
|
+
const sameExit = /*#__PURE__*/ Object.assign(/*#__PURE__*/ succeed(missing), { [missing]: true });
|
|
17062
|
+
/** @internal */
|
|
17063
|
+
const isSameExit = (result) => result[missing] === true;
|
|
16981
17064
|
/** @internal */
|
|
16982
17065
|
const toOption = (value) => value === missing ? none() : some(value);
|
|
16983
17066
|
/** @internal */
|
|
16984
17067
|
const fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed(option.value);
|
|
16985
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17068
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/SchemaIssue.js
|
|
16986
17069
|
/**
|
|
16987
17070
|
* Describes problems found while decoding, encoding, or checking data with
|
|
16988
17071
|
* schemas.
|
|
@@ -17475,7 +17558,7 @@ function findMessage(issue) {
|
|
|
17475
17558
|
const message = (issue._tag === "Filter" ? issue.filter.annotations : "annotations" in issue ? issue.annotations : issue.ast.annotations)?.[issue._tag === "MissingKey" ? "messageMissingKey" : issue._tag === "UnexpectedKey" ? "messageUnexpectedKey" : "message"];
|
|
17476
17559
|
if (typeof message === "string") return message;
|
|
17477
17560
|
}
|
|
17478
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17561
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/cause.js
|
|
17479
17562
|
/** @internal */
|
|
17480
17563
|
function getSchemaIssue(cause) {
|
|
17481
17564
|
let issue;
|
|
@@ -17495,7 +17578,7 @@ const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
|
|
|
17495
17578
|
const codes = /*#__PURE__*/ (/* @__PURE__ */ new Uint8Array(123)).fill(255);
|
|
17496
17579
|
for (let i = 0; i < 64; i++) codes[/*#__PURE__*/ alphabet.charCodeAt(i)] = i;
|
|
17497
17580
|
codes[/*#__PURE__*/ "=".charCodeAt(0)] = 0;
|
|
17498
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17581
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/SchemaGetter.js
|
|
17499
17582
|
const makeGetter = (fields) => Object.assign(Object.create(Prototype$1), fields);
|
|
17500
17583
|
const passthrough_$1 = /*#__PURE__*/ makeGetter({ _tag: "Passthrough" });
|
|
17501
17584
|
function passthrough$1() {
|
|
@@ -17815,7 +17898,7 @@ function stringifyJson(options) {
|
|
|
17815
17898
|
catch: () => new InvalidValue({ expected: "a JSON-serializable value" }, input, parseOptions)
|
|
17816
17899
|
}));
|
|
17817
17900
|
}
|
|
17818
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17901
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/BigDecimal.js
|
|
17819
17902
|
/**
|
|
17820
17903
|
* Decimal numbers and arithmetic for cases where JavaScript `number` rounding
|
|
17821
17904
|
* is not precise enough. A `BigDecimal` stores digits as a `bigint` plus a
|
|
@@ -18106,14 +18189,14 @@ const toExponential = (n) => {
|
|
|
18106
18189
|
* @since 2.0.0
|
|
18107
18190
|
*/
|
|
18108
18191
|
const isZero = (n) => n.value === bigint0;
|
|
18109
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18192
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/content.js
|
|
18110
18193
|
const ContentTypeId = /*#__PURE__*/ Symbol.for("~effect/Schema/content");
|
|
18111
18194
|
/** @internal */
|
|
18112
18195
|
function setContent(operation, content) {
|
|
18113
18196
|
Object.defineProperty(operation, ContentTypeId, { value: content });
|
|
18114
18197
|
return operation;
|
|
18115
18198
|
}
|
|
18116
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18199
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/SchemaTransformation.js
|
|
18117
18200
|
/**
|
|
18118
18201
|
* Constructs schema middleware from its decode and encode functions.
|
|
18119
18202
|
*
|
|
@@ -18306,7 +18389,7 @@ function fromJsonString$1(options) {
|
|
|
18306
18389
|
preserveSchema: options?.reviver === void 0 && options?.replacer === void 0
|
|
18307
18390
|
}));
|
|
18308
18391
|
}
|
|
18309
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18392
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/SchemaAST.js
|
|
18310
18393
|
/**
|
|
18311
18394
|
* Represents Effect schemas as runtime trees.
|
|
18312
18395
|
*
|
|
@@ -18885,7 +18968,7 @@ const Arrays = class extends ASTNodeImpl {
|
|
|
18885
18968
|
/** @internal */
|
|
18886
18969
|
function stepArray(s, item, exit, i) {
|
|
18887
18970
|
if (exit._tag === "Failure") return wrapPropertyKeyIssue(s, s.ast, i, exit);
|
|
18888
|
-
const value = exit
|
|
18971
|
+
const value = isSameExit(exit) ? item : exit[args];
|
|
18889
18972
|
if (value !== missing) s.output[i] = value;
|
|
18890
18973
|
else {
|
|
18891
18974
|
const p = s.getParser(s.tailThreshold, i);
|
|
@@ -19031,7 +19114,8 @@ const Objects = class extends ASTNodeImpl {
|
|
|
19031
19114
|
properties = ast.propertySignatures.map((ps) => ({
|
|
19032
19115
|
parser: compileField(ps.type),
|
|
19033
19116
|
name: ps.name,
|
|
19034
|
-
type: ps.type
|
|
19117
|
+
type: ps.type,
|
|
19118
|
+
ownOnly: requiresOwnProperty(ps.name)
|
|
19035
19119
|
}));
|
|
19036
19120
|
indexes = indexCount ? ast.indexSignatures.map((is) => ({
|
|
19037
19121
|
is,
|
|
@@ -19045,7 +19129,7 @@ const Objects = class extends ASTNodeImpl {
|
|
|
19045
19129
|
const expectedKeys = new Set(ast.propertySignatures.map((ps) => typeof ps.name === "number" ? globalThis.String(ps.name) : ps.name));
|
|
19046
19130
|
const finishIndex = (s, key, k2, inputValue, exitValue) => {
|
|
19047
19131
|
if (exitValue._tag === "Failure") return wrapPropertyKeyIssue(s, ast, key, exitValue) ?? void_$1;
|
|
19048
|
-
const value = exitValue
|
|
19132
|
+
const value = isSameExit(exitValue) ? inputValue : exitValue[args];
|
|
19049
19133
|
if (k2 !== missing && value !== missing) {
|
|
19050
19134
|
if (hasProperties && (expectedKeys.has(key) || expectedKeys.has(typeof k2 === "number" ? globalThis.String(k2) : k2))) return void_$1;
|
|
19051
19135
|
assignProperty(s.out, k2, value);
|
|
@@ -19059,7 +19143,7 @@ const Objects = class extends ASTNodeImpl {
|
|
|
19059
19143
|
exitKey = eff;
|
|
19060
19144
|
}
|
|
19061
19145
|
if (exitKey._tag === "Failure") return wrapPropertyKeyIssue(s, ast, key, exitKey) ?? void_$1;
|
|
19062
|
-
const k2 = exitKey
|
|
19146
|
+
const k2 = isSameExit(exitKey) ? key : exitKey[args];
|
|
19063
19147
|
const inputValue = s.input[key];
|
|
19064
19148
|
const result = index.parserValue(inputValue, s.options);
|
|
19065
19149
|
return effectIsExit(result) ? finishIndex(s, key, k2, inputValue, result) : flatMap(exit(result), (exit) => finishIndex(s, key, k2, inputValue, exit));
|
|
@@ -19169,11 +19253,11 @@ const Objects = class extends ASTNodeImpl {
|
|
|
19169
19253
|
for (let index = 0; index < props.length; index++) {
|
|
19170
19254
|
const property = props[index];
|
|
19171
19255
|
const name = property.name;
|
|
19172
|
-
const hasKey =
|
|
19256
|
+
const hasKey = property.ownOnly ? Object.hasOwn(record, name) : name in record;
|
|
19173
19257
|
const value = hasKey ? record[name] : missing;
|
|
19174
19258
|
const exit = property.parser(value, options);
|
|
19175
19259
|
if (!effectIsExit(exit)) return resume(state, index, exit);
|
|
19176
|
-
if (exit
|
|
19260
|
+
if (isSameExit(exit)) {
|
|
19177
19261
|
if (hasKey) assignProperty(out, name, value);
|
|
19178
19262
|
continue;
|
|
19179
19263
|
}
|
|
@@ -19215,7 +19299,7 @@ const Objects = class extends ASTNodeImpl {
|
|
|
19215
19299
|
/** @internal */
|
|
19216
19300
|
function stepProperty(s, p, exit) {
|
|
19217
19301
|
if (exit._tag === "Failure") return wrapPropertyKeyIssue(s, s.ast, p.name, exit);
|
|
19218
|
-
if (exit
|
|
19302
|
+
if (isSameExit(exit)) return;
|
|
19219
19303
|
const value = exit[args];
|
|
19220
19304
|
if (value !== missing) {
|
|
19221
19305
|
assignProperty(s.out, p.name, value);
|
|
@@ -19233,7 +19317,7 @@ function stepProperty(s, p, exit) {
|
|
|
19233
19317
|
}
|
|
19234
19318
|
const parsePropertiesOptions = {
|
|
19235
19319
|
onItem(s, p) {
|
|
19236
|
-
if (!
|
|
19320
|
+
if (!(p.ownOnly ? Object.hasOwn(s.input, p.name) : p.name in s.input)) return p.parser(missing, s.options);
|
|
19237
19321
|
const value = s.input[p.name];
|
|
19238
19322
|
assignProperty(s.out, p.name, value);
|
|
19239
19323
|
return p.parser(value, s.options);
|
|
@@ -19361,7 +19445,14 @@ function collectSentinels(ast) {
|
|
|
19361
19445
|
const candidateIndexCache = /*#__PURE__*/ new WeakMap();
|
|
19362
19446
|
const emptyCandidates = /*#__PURE__*/ Object.freeze([]);
|
|
19363
19447
|
const getRuntimeType = (input) => input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
|
|
19364
|
-
const
|
|
19448
|
+
const objectPrototypeKeys = /*#__PURE__*/ new Set(Reflect.ownKeys(Object.prototype)).add("__proto__");
|
|
19449
|
+
/**
|
|
19450
|
+
* Fields named after `Object.prototype` members must be own properties.
|
|
19451
|
+
*
|
|
19452
|
+
* @internal
|
|
19453
|
+
*/
|
|
19454
|
+
const requiresOwnProperty = (key) => objectPrototypeKeys.has(typeof key === "number" ? globalThis.String(key) : key);
|
|
19455
|
+
const hasPropertySignature = (input, key) => Object.hasOwn(input, key) || key in input && !requiresOwnProperty(key);
|
|
19365
19456
|
/** @internal */
|
|
19366
19457
|
function getCandidateIndex(types) {
|
|
19367
19458
|
let index = candidateIndexCache.get(types);
|
|
@@ -19578,8 +19669,7 @@ function parseUnionCandidates(ast, parser, candidates, input, options) {
|
|
|
19578
19669
|
}
|
|
19579
19670
|
function resumeUnion(eff, state) {
|
|
19580
19671
|
return flatMapEager(eff, (_) => {
|
|
19581
|
-
if (state.out
|
|
19582
|
-
if (state.out) return state.out;
|
|
19672
|
+
if (state.out) return isSameExit(state.out) ? succeed$1(state.input) : state.out;
|
|
19583
19673
|
return fail$3(new AnyOf(state.ast, state.issues ?? [], state.input, state.options));
|
|
19584
19674
|
});
|
|
19585
19675
|
}
|
|
@@ -19961,13 +20051,10 @@ const toType = /*#__PURE__*/ memoizeIdempotent((ast) => {
|
|
|
19961
20051
|
return type === owner && ast.encoding === void 0 ? ast : replaceContext(type, ast.context);
|
|
19962
20052
|
}
|
|
19963
20053
|
const type = "recur" in ast ? ast.recur(toType) : ast;
|
|
19964
|
-
if ("encodingChecks" in type && type.encodingChecks) {
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
checks: combineChecks(type.checks, checks)
|
|
19969
|
-
});
|
|
19970
|
-
}
|
|
20054
|
+
if ("encodingChecks" in type && type.encodingChecks) return copy$1(type, {
|
|
20055
|
+
encodingChecks: void 0,
|
|
20056
|
+
checks: combineChecks(canPreserveEncodingChecks(ast) ? type.encodingChecks : isArrays(type) || isObjects(type) || isDeclaration(type) && type.typeParameters.length > 0 ? extractStructuralChecks(type.encodingChecks) : void 0, type.checks)
|
|
20057
|
+
});
|
|
19971
20058
|
return type;
|
|
19972
20059
|
});
|
|
19973
20060
|
/**
|
|
@@ -20102,7 +20189,7 @@ function getConstructorDescriptor(ast) {
|
|
|
20102
20189
|
const getDescriptor = ast.annotations?.[CONSTRUCTOR_ANNOTATION_KEY];
|
|
20103
20190
|
return isFunction(getDescriptor) ? getDescriptor(ast.typeParameters) : void 0;
|
|
20104
20191
|
}
|
|
20105
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20192
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Brand.js
|
|
20106
20193
|
/**
|
|
20107
20194
|
* Returns a `Constructor` that **does not apply any runtime checks** and just
|
|
20108
20195
|
* returns the provided value.
|
|
@@ -20126,7 +20213,7 @@ function nominal() {
|
|
|
20126
20213
|
is: (_) => true
|
|
20127
20214
|
});
|
|
20128
20215
|
}
|
|
20129
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20216
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/process/ChildProcessSpawner.js
|
|
20130
20217
|
/**
|
|
20131
20218
|
* Service boundary for starting and controlling child processes.
|
|
20132
20219
|
*
|
|
@@ -20203,7 +20290,7 @@ const make$10 = (spawn) => {
|
|
|
20203
20290
|
* @since 4.0.0
|
|
20204
20291
|
*/
|
|
20205
20292
|
var ChildProcessSpawner = class extends (/*#__PURE__*/ Service()("effect/process/ChildProcessSpawner")) {};
|
|
20206
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20293
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/redacted.js
|
|
20207
20294
|
/** @internal */
|
|
20208
20295
|
const redactedRegistry = /*#__PURE__*/ new WeakMap();
|
|
20209
20296
|
/** @internal */
|
|
@@ -20211,7 +20298,7 @@ const value$3 = (self) => {
|
|
|
20211
20298
|
if (redactedRegistry.has(self)) return redactedRegistry.get(self);
|
|
20212
20299
|
else throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
20213
20300
|
};
|
|
20214
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20301
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Redacted.js
|
|
20215
20302
|
/**
|
|
20216
20303
|
* Wraps sensitive values so normal output does not reveal them.
|
|
20217
20304
|
*
|
|
@@ -20328,7 +20415,7 @@ const Proto$4 = {
|
|
|
20328
20415
|
* @since 3.3.0
|
|
20329
20416
|
*/
|
|
20330
20417
|
const value$2 = value$3;
|
|
20331
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20418
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/process/CommandLine.js
|
|
20332
20419
|
/**
|
|
20333
20420
|
* Builds command lines, the single strings that a shell or a Windows program
|
|
20334
20421
|
* turns back into arguments, and argument lists from templates. It is
|
|
@@ -20354,7 +20441,7 @@ const value$2 = value$3;
|
|
|
20354
20441
|
* `<redacted>`.
|
|
20355
20442
|
*
|
|
20356
20443
|
* @stability unstable
|
|
20357
|
-
* @since 4.0
|
|
20444
|
+
* @since 4.1.0
|
|
20358
20445
|
*/
|
|
20359
20446
|
/**
|
|
20360
20447
|
* Error returned when a command line or a template cannot be built.
|
|
@@ -20377,7 +20464,7 @@ const value$2 = value$3;
|
|
|
20377
20464
|
*
|
|
20378
20465
|
* @stability unstable
|
|
20379
20466
|
* @category errors
|
|
20380
|
-
* @since 4.0
|
|
20467
|
+
* @since 4.1.0
|
|
20381
20468
|
*/
|
|
20382
20469
|
var CommandLineError = class extends (/*#__PURE__*/ TaggedError("CommandLineError")) {};
|
|
20383
20470
|
/**
|
|
@@ -20418,7 +20505,7 @@ var CommandLineError = class extends (/*#__PURE__*/ TaggedError("CommandLineErro
|
|
|
20418
20505
|
*
|
|
20419
20506
|
* @stability unstable
|
|
20420
20507
|
* @category encoding
|
|
20421
|
-
* @since 4.0
|
|
20508
|
+
* @since 4.1.0
|
|
20422
20509
|
*/
|
|
20423
20510
|
const display = (words, options) => {
|
|
20424
20511
|
if (words.length === 0) return "";
|
|
@@ -20482,7 +20569,7 @@ const display = (words, options) => {
|
|
|
20482
20569
|
*
|
|
20483
20570
|
* @stability unstable
|
|
20484
20571
|
* @category constructors
|
|
20485
|
-
* @since 4.0
|
|
20572
|
+
* @since 4.1.0
|
|
20486
20573
|
*/
|
|
20487
20574
|
const template = (strings, ...expressions) => {
|
|
20488
20575
|
const index = strings.findIndex((text) => text === void 0);
|
|
@@ -20653,7 +20740,7 @@ const parseTemplate$1 = (texts, values) => {
|
|
|
20653
20740
|
endWord();
|
|
20654
20741
|
return succeed$5(words);
|
|
20655
20742
|
};
|
|
20656
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
20743
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/process/ChildProcess.js
|
|
20657
20744
|
/**
|
|
20658
20745
|
* Describes child processes before they are started.
|
|
20659
20746
|
*
|
|
@@ -20797,7 +20884,7 @@ const shellScript = (templates, expressions) => {
|
|
|
20797
20884
|
});
|
|
20798
20885
|
return script;
|
|
20799
20886
|
};
|
|
20800
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
20887
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
20801
20888
|
const buildSpawnOptions = (options, base, platform) => {
|
|
20802
20889
|
const detached = options.detached ?? platform !== "win32";
|
|
20803
20890
|
return {
|
|
@@ -20807,7 +20894,7 @@ const buildSpawnOptions = (options, base, platform) => {
|
|
|
20807
20894
|
windowsHide: options.windowsHide ?? !detached
|
|
20808
20895
|
};
|
|
20809
20896
|
};
|
|
20810
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
20897
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
20811
20898
|
/** @internal */
|
|
20812
20899
|
const handleErrnoException = (module, method) => (err, [path]) => {
|
|
20813
20900
|
let reason = "Unknown";
|
|
@@ -20842,7 +20929,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
20842
20929
|
cause: err
|
|
20843
20930
|
});
|
|
20844
20931
|
};
|
|
20845
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
20932
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/internal/stream.js
|
|
20846
20933
|
const destroyStream = (stream, cleanup, onDestroyed) => {
|
|
20847
20934
|
if (!("closed" in stream)) {
|
|
20848
20935
|
cleanup();
|
|
@@ -20869,7 +20956,7 @@ const destroyStream = (stream, cleanup, onDestroyed) => {
|
|
|
20869
20956
|
cleanup();
|
|
20870
20957
|
if (!stream.closed) stream.destroy();
|
|
20871
20958
|
};
|
|
20872
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
20959
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
20873
20960
|
/**
|
|
20874
20961
|
* Creates a `Sink` that writes chunks to a Node writable stream, respecting
|
|
20875
20962
|
* backpressure and mapping writable errors with `onError`. Unless `endOnDone`
|
|
@@ -20988,7 +21075,7 @@ const pullIntoWritable = (options) => withFiber((fiber) => {
|
|
|
20988
21075
|
} else removeErrorListener();
|
|
20989
21076
|
})));
|
|
20990
21077
|
});
|
|
20991
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
21078
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
20992
21079
|
/**
|
|
20993
21080
|
* Adapters between Node streams and Effect streams, channels, and readables.
|
|
20994
21081
|
*
|
|
@@ -21068,7 +21155,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
21068
21155
|
})), pull);
|
|
21069
21156
|
};
|
|
21070
21157
|
const defaultOnError = (error) => new UnknownError(error);
|
|
21071
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
21158
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
21072
21159
|
const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
|
|
21073
21160
|
const toPlatformError = (method, error, command) => {
|
|
21074
21161
|
const { commands } = flattenCommand(command);
|
|
@@ -21427,11 +21514,7 @@ const layer$9 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(fu
|
|
|
21427
21514
|
const cwd = yield* resolveWorkingDirectory(cmd.options);
|
|
21428
21515
|
const env = resolveEnvironment(cmd.options);
|
|
21429
21516
|
const stdio = buildStdioArray(stdinConfig, stdoutConfig, stderrConfig, resolvedAdditionalFds);
|
|
21430
|
-
const
|
|
21431
|
-
cwd,
|
|
21432
|
-
env,
|
|
21433
|
-
stdio
|
|
21434
|
-
}, process.platform)), fnUntraced(function* ([childProcess, exitSignal]) {
|
|
21517
|
+
const releaseProcess = fnUntraced(function* (childProcess, exitSignal) {
|
|
21435
21518
|
if (yield* isDone$1(exitSignal)) {
|
|
21436
21519
|
const [code] = yield* _await(exitSignal);
|
|
21437
21520
|
if (code !== 0 && isNotNull(code)) yield* ignore(terminateProcessGroup(cmd, childProcess, exitSignal, cmd.options));
|
|
@@ -21440,6 +21523,15 @@ const layer$9 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(fu
|
|
|
21440
21523
|
}
|
|
21441
21524
|
if (!isReferenced) return;
|
|
21442
21525
|
yield* ignore(terminateProcessGroup(cmd, childProcess, exitSignal, cmd.options));
|
|
21526
|
+
});
|
|
21527
|
+
const inputScope = makeUnsafe$3();
|
|
21528
|
+
const [childProcess, exitSignal] = yield* acquireRelease(spawn(cmd, buildSpawnOptions(cmd.options, {
|
|
21529
|
+
cwd,
|
|
21530
|
+
env,
|
|
21531
|
+
stdio
|
|
21532
|
+
}, process.platform)), ([childProcess, exitSignal], exit) => all([close(inputScope, exit), releaseProcess(childProcess, exitSignal)], {
|
|
21533
|
+
concurrency: "unbounded",
|
|
21534
|
+
discard: true
|
|
21443
21535
|
}));
|
|
21444
21536
|
const pid = ProcessId(childProcess.pid);
|
|
21445
21537
|
if (cmd.options.detached !== false) childProcess.on("exit", (code) => {
|
|
@@ -21459,9 +21551,9 @@ const layer$9 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(fu
|
|
|
21459
21551
|
return reref;
|
|
21460
21552
|
});
|
|
21461
21553
|
const inputFailure = makeUnsafe$4();
|
|
21462
|
-
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
21463
|
-
const { all, stderr, stdout } = setupChildOutputStreams(cmd, childProcess, stdoutConfig, stderrConfig);
|
|
21464
|
-
const { getInputFd, getOutputFd } = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
21554
|
+
const stdin = yield* provide$2(inputScope)(setupChildStdin(cmd, childProcess, stdinConfig, inputFailure));
|
|
21555
|
+
const { all: all$2, stderr, stdout } = setupChildOutputStreams(cmd, childProcess, stdoutConfig, stderrConfig);
|
|
21556
|
+
const { getInputFd, getOutputFd } = yield* provide$2(inputScope)(setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure));
|
|
21465
21557
|
const isRunning = map(isDone$1(exitSignal), (done) => !done);
|
|
21466
21558
|
const exitCode = flatMap(raceFirst(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
21467
21559
|
if (isDoneUnsafe(inputFailure)) return _await(inputFailure);
|
|
@@ -21478,7 +21570,7 @@ const layer$9 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(fu
|
|
|
21478
21570
|
stdin,
|
|
21479
21571
|
stdout,
|
|
21480
21572
|
stderr,
|
|
21481
|
-
all,
|
|
21573
|
+
all: all$2,
|
|
21482
21574
|
getInputFd,
|
|
21483
21575
|
getOutputFd,
|
|
21484
21576
|
unref
|
|
@@ -21585,7 +21677,7 @@ const flattenCommand = (command) => {
|
|
|
21585
21677
|
pipeOptions
|
|
21586
21678
|
};
|
|
21587
21679
|
};
|
|
21588
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
21680
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
21589
21681
|
/**
|
|
21590
21682
|
* Shared Node-compatible implementation of Effect's `FileSystem` service.
|
|
21591
21683
|
*
|
|
@@ -21722,7 +21814,10 @@ const makeFile = /*#__PURE__*/ (() => {
|
|
|
21722
21814
|
const nodeStat = /*#__PURE__*/ effectify(NFS.fstat, /*#__PURE__*/ handleErrnoException("FileSystem", "stat"), /*#__PURE__*/ handleBadArgument("stat"));
|
|
21723
21815
|
const nodeTruncate = /*#__PURE__*/ effectify(NFS.ftruncate, /*#__PURE__*/ handleErrnoException("FileSystem", "truncate"), /*#__PURE__*/ handleBadArgument("truncate"));
|
|
21724
21816
|
const nodeSync = /*#__PURE__*/ effectify(NFS.fsync, /*#__PURE__*/ handleErrnoException("FileSystem", "sync"), /*#__PURE__*/ handleBadArgument("sync"));
|
|
21725
|
-
const nodeWriteFactory = (method) =>
|
|
21817
|
+
const nodeWriteFactory = (method) => {
|
|
21818
|
+
const write = effectify(NFS.write, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
21819
|
+
return (fd, buffer, position) => write(fd, buffer, 0, buffer.length, position);
|
|
21820
|
+
};
|
|
21726
21821
|
const nodeWrite = /*#__PURE__*/ nodeWriteFactory("write");
|
|
21727
21822
|
const nodeWriteAll = /*#__PURE__*/ nodeWriteFactory("writeAll");
|
|
21728
21823
|
class FileImpl {
|
|
@@ -21805,7 +21900,7 @@ const makeFile = /*#__PURE__*/ (() => {
|
|
|
21805
21900
|
write(buffer) {
|
|
21806
21901
|
return suspend$2(() => {
|
|
21807
21902
|
const position = this.position;
|
|
21808
|
-
return flatMap(this.append ? succeed$1(void 0) : positionToNumber(position, "write"), (nodePosition) => map(nodeWrite(this.fd, buffer,
|
|
21903
|
+
return flatMap(this.append ? succeed$1(void 0) : positionToNumber(position, "write"), (nodePosition) => map(nodeWrite(this.fd, buffer, nodePosition), (bytesWritten) => {
|
|
21809
21904
|
if (!this.append) this.position = position + BigInt(bytesWritten);
|
|
21810
21905
|
return bytesWritten;
|
|
21811
21906
|
}));
|
|
@@ -21814,7 +21909,7 @@ const makeFile = /*#__PURE__*/ (() => {
|
|
|
21814
21909
|
writeAllChunk(buffer) {
|
|
21815
21910
|
return suspend$2(() => {
|
|
21816
21911
|
const position = this.position;
|
|
21817
|
-
return flatMap(this.append ? succeed$1(void 0) : positionToNumber(position, "writeAll"), (nodePosition) => flatMap(nodeWriteAll(this.fd, buffer,
|
|
21912
|
+
return flatMap(this.append ? succeed$1(void 0) : positionToNumber(position, "writeAll"), (nodePosition) => flatMap(nodeWriteAll(this.fd, buffer, nodePosition), (bytesWritten) => {
|
|
21818
21913
|
if (bytesWritten === 0) return fail$3(systemError({
|
|
21819
21914
|
module: "FileSystem",
|
|
21820
21915
|
method: "writeAll",
|
|
@@ -22007,7 +22102,7 @@ const makeFileSystem = /*#__PURE__*/ map(/*#__PURE__*/ serviceOption(WatchBacken
|
|
|
22007
22102
|
},
|
|
22008
22103
|
writeFile
|
|
22009
22104
|
}));
|
|
22010
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
22105
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.4_effect@4.1.4_redis@6.2.1_@opentelemetry+api@1.9.0_/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
22011
22106
|
/**
|
|
22012
22107
|
* Node.js `FileSystem` layer for programs that perform real filesystem I/O.
|
|
22013
22108
|
*
|
|
@@ -22027,7 +22122,7 @@ const makeFileSystem = /*#__PURE__*/ map(/*#__PURE__*/ serviceOption(WatchBacken
|
|
|
22027
22122
|
* @since 4.0.0
|
|
22028
22123
|
*/
|
|
22029
22124
|
const layer$7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
22030
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
22125
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.4_effect@4.1.4/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
22031
22126
|
/**
|
|
22032
22127
|
* Node-backed provider for Effect's `Path` service.
|
|
22033
22128
|
*
|
|
@@ -22065,7 +22160,7 @@ const fileUrlOps = (windows) => ({
|
|
|
22065
22160
|
...Path.win32,
|
|
22066
22161
|
.../*#__PURE__*/ fileUrlOps(true)
|
|
22067
22162
|
});
|
|
22068
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
22163
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.4_effect@4.1.4_redis@6.2.1_@opentelemetry+api@1.9.0_/node_modules/@effect/platform-node/dist/NodePath.js
|
|
22069
22164
|
/**
|
|
22070
22165
|
* Node.js layers for Effect's `Path` service.
|
|
22071
22166
|
*
|
|
@@ -22089,7 +22184,7 @@ const layer$5 = /* @__PURE__ */ succeed$3(Path$1)(/*#__PURE__*/ make$13({
|
|
|
22089
22184
|
...Path,
|
|
22090
22185
|
.../*#__PURE__*/ fileUrlOps(void 0)
|
|
22091
22186
|
}));
|
|
22092
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22187
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Stdio.js
|
|
22093
22188
|
/**
|
|
22094
22189
|
* Service contract for command-line arguments and standard input, output, and
|
|
22095
22190
|
* error output. It lets programs depend on standard I/O through the Effect
|
|
@@ -22161,7 +22256,7 @@ const make$6 = (options) => ({
|
|
|
22161
22256
|
stderrIsTerminal: succeed$1(false),
|
|
22162
22257
|
...options
|
|
22163
22258
|
});
|
|
22164
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
22259
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.4_effect@4.1.4_redis@6.2.1_@opentelemetry+api@1.9.0_/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
22165
22260
|
/**
|
|
22166
22261
|
* Node.js `Stdio` layer for the current process.
|
|
22167
22262
|
*
|
|
@@ -22221,8 +22316,8 @@ const layer$3 = /* @__PURE__ */ succeed$3(Stdio, /*#__PURE__*/ make$6({
|
|
|
22221
22316
|
({ ...BaseProto });
|
|
22222
22317
|
BaseProto.toString, BaseProto[NodeInspectSymbol];
|
|
22223
22318
|
({ ...PipeInspectableProto });
|
|
22224
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22225
|
-
const flatMapTransformation = (result, current, f) => result
|
|
22319
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/interpreter.js
|
|
22320
|
+
const flatMapTransformation = (result, current, f) => isSameExit(result) ? f(current) : flatMapEager(result, f);
|
|
22226
22321
|
function compileTransformation(transformation) {
|
|
22227
22322
|
const apply = compileTransformationUnsafe(transformation);
|
|
22228
22323
|
return (result, current, options) => {
|
|
@@ -22235,12 +22330,12 @@ function compileTransformation(transformation) {
|
|
|
22235
22330
|
}
|
|
22236
22331
|
function compileTransformationUnsafe(transformation) {
|
|
22237
22332
|
if (transformation._tag === "Middleware") return (result, current, options) => {
|
|
22238
|
-
const transformed = result
|
|
22333
|
+
const transformed = isSameExit(result) ? transformation.decode(succeed(toOption(current)), options) : transformation.decode(mapEager(result, toOption), options);
|
|
22239
22334
|
return fromOptionalEffect(transformed);
|
|
22240
22335
|
};
|
|
22241
22336
|
const getter = transformation.decode;
|
|
22242
22337
|
switch (getter._tag) {
|
|
22243
|
-
case "Passthrough": return (result, current) => result
|
|
22338
|
+
case "Passthrough": return (result, current) => isSameExit(result) ? succeed(current) : result;
|
|
22244
22339
|
case "Transform": {
|
|
22245
22340
|
const transform = (value) => value === missing ? missingExit : succeed(getter.transform(value));
|
|
22246
22341
|
return (result, current) => flatMapTransformation(result, current, transform);
|
|
@@ -22273,11 +22368,11 @@ function withDefault(ast, parser) {
|
|
|
22273
22368
|
const result = defaultValue;
|
|
22274
22369
|
if (effectIsExit(result) && result._tag === "Success") {
|
|
22275
22370
|
const local = parser(result[args], options);
|
|
22276
|
-
return local
|
|
22371
|
+
return isSameExit(local) ? result : local;
|
|
22277
22372
|
}
|
|
22278
22373
|
return flatMapEager(wrapEncoding(ast, input, options, result), (value) => {
|
|
22279
22374
|
const local = parser(value, options);
|
|
22280
|
-
return local
|
|
22375
|
+
return isSameExit(local) ? succeed(value) : local;
|
|
22281
22376
|
});
|
|
22282
22377
|
};
|
|
22283
22378
|
}
|
|
@@ -22303,7 +22398,7 @@ function compile(ast, compile, compileField, base, specialize) {
|
|
|
22303
22398
|
if (encodingChecks && !options.disableChecks) {
|
|
22304
22399
|
if (effectIsExit(result)) {
|
|
22305
22400
|
if (result._tag === "Success") {
|
|
22306
|
-
const output = result
|
|
22401
|
+
const output = isSameExit(result) ? input : result[args];
|
|
22307
22402
|
if (input !== missing && output !== missing) {
|
|
22308
22403
|
const issues = collectIssues(encodingChecks, input, void 0, ast, options);
|
|
22309
22404
|
if (issues) result = fail$3(new Composite(ast, issues, input, options));
|
|
@@ -22320,7 +22415,7 @@ function compile(ast, compile, compileField, base, specialize) {
|
|
|
22320
22415
|
if (checks && !options.disableChecks) {
|
|
22321
22416
|
if (effectIsExit(result)) {
|
|
22322
22417
|
if (result._tag === "Success") {
|
|
22323
|
-
const value = result
|
|
22418
|
+
const value = isSameExit(result) ? input : result[args];
|
|
22324
22419
|
if (value === missing) return result;
|
|
22325
22420
|
const issues = collectIssues(checks, value, void 0, ast, options);
|
|
22326
22421
|
if (issues) result = fail$3(new Composite(ast, issues, value, options));
|
|
@@ -22353,23 +22448,23 @@ function compile(ast, compile, compileField, base, specialize) {
|
|
|
22353
22448
|
result = next(current, options);
|
|
22354
22449
|
} else result = flatMapEager(result, (value) => {
|
|
22355
22450
|
const nextResult = next(value, options);
|
|
22356
|
-
return nextResult
|
|
22451
|
+
return isSameExit(nextResult) ? succeed(value) : nextResult;
|
|
22357
22452
|
});
|
|
22358
22453
|
}
|
|
22359
22454
|
}
|
|
22360
22455
|
if (result._tag === "Success") {
|
|
22361
22456
|
const value = result[args];
|
|
22362
22457
|
const local = parseLocal(value, options);
|
|
22363
|
-
return local
|
|
22458
|
+
return isSameExit(local) ? result : local;
|
|
22364
22459
|
}
|
|
22365
22460
|
result = wrapEncoding(ast, input, options, result);
|
|
22366
22461
|
return flatMapEager(result, (value) => {
|
|
22367
22462
|
const local = parseLocal(value, options);
|
|
22368
|
-
return local
|
|
22463
|
+
return isSameExit(local) ? succeed(value) : local;
|
|
22369
22464
|
});
|
|
22370
22465
|
};
|
|
22371
22466
|
}
|
|
22372
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22467
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/compilerRegistry.js
|
|
22373
22468
|
/** @internal */
|
|
22374
22469
|
const invalid = /*#__PURE__*/ Symbol();
|
|
22375
22470
|
const cache = /*#__PURE__*/ new WeakMap();
|
|
@@ -22399,7 +22494,7 @@ function resolve(ast) {
|
|
|
22399
22494
|
cache.set(ast, entry);
|
|
22400
22495
|
return entry;
|
|
22401
22496
|
}
|
|
22402
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22497
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/SchemaParser.js
|
|
22403
22498
|
/**
|
|
22404
22499
|
* Runs schemas against real values.
|
|
22405
22500
|
*
|
|
@@ -22537,7 +22632,7 @@ function run(ast) {
|
|
|
22537
22632
|
return runWithCompiler(normalCompiler, ast);
|
|
22538
22633
|
}
|
|
22539
22634
|
function parserResult(result, input) {
|
|
22540
|
-
if (result
|
|
22635
|
+
if (isSameExit(result)) return succeed$1(input);
|
|
22541
22636
|
if (!effectIsExit(result)) return flatMapEager(result, getValue);
|
|
22542
22637
|
return result["~effect/Effect/args"] === missing ? getValue(missing) : result;
|
|
22543
22638
|
}
|
|
@@ -22545,7 +22640,7 @@ function runWithCompiler(compiler, ast) {
|
|
|
22545
22640
|
let parser;
|
|
22546
22641
|
return (input, options) => {
|
|
22547
22642
|
const result = (parser ??= compiler(ast))(input, options ?? defaultParseOptions);
|
|
22548
|
-
if (result
|
|
22643
|
+
if (isSameExit(result)) return succeed$1(input);
|
|
22549
22644
|
if (!effectIsExit(result)) return flatMapEager(result, getValue);
|
|
22550
22645
|
return result["~effect/Effect/args"] === missing ? getValue(missing) : result;
|
|
22551
22646
|
};
|
|
@@ -22604,7 +22699,7 @@ function makeClassSync(ast, input, options, construct) {
|
|
|
22604
22699
|
}
|
|
22605
22700
|
const normalCompiler = (ast) => resolve(ast).parser;
|
|
22606
22701
|
const constructorCompiler = (ast) => resolve(ast).makeEffect;
|
|
22607
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22702
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schema/make.js
|
|
22608
22703
|
/** @internal */
|
|
22609
22704
|
const TypeId$5 = "~effect/Schema/Schema";
|
|
22610
22705
|
const RebuildOptions = /*#__PURE__*/ Symbol();
|
|
@@ -22660,7 +22755,7 @@ function make$3(ast, options) {
|
|
|
22660
22755
|
self.ast = ast;
|
|
22661
22756
|
return self;
|
|
22662
22757
|
}
|
|
22663
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22758
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Struct.js
|
|
22664
22759
|
/**
|
|
22665
22760
|
* Wraps a plain function as a {@link Lambda} value so it can be used with
|
|
22666
22761
|
* {@link map}, {@link mapPick}, and {@link mapOmit}.
|
|
@@ -22699,7 +22794,7 @@ function make$3(ast, options) {
|
|
|
22699
22794
|
* @since 4.0.0
|
|
22700
22795
|
*/
|
|
22701
22796
|
const lambda = (f) => f;
|
|
22702
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22797
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/internal/schemaError.js
|
|
22703
22798
|
const SchemaErrorTypeId = "~effect/Schema/SchemaError";
|
|
22704
22799
|
function isSchemaError$1(u) {
|
|
22705
22800
|
return hasProperty(u, "~effect/Schema/SchemaError") && u["~effect/Schema/SchemaError"] === "~effect/Schema/SchemaError";
|
|
@@ -22712,7 +22807,7 @@ function isSchemaError$1(u) {
|
|
|
22712
22807
|
({ ...BaseProto });
|
|
22713
22808
|
({ ...BaseProto });
|
|
22714
22809
|
({ ...BaseProto });
|
|
22715
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
22810
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Schema.js
|
|
22716
22811
|
const TypeId$2 = TypeId$5;
|
|
22717
22812
|
/**
|
|
22718
22813
|
* Error thrown or returned when schema decoding or encoding fails.
|
|
@@ -23109,8 +23204,8 @@ function makeUnion(ast, members) {
|
|
|
23109
23204
|
});
|
|
23110
23205
|
}
|
|
23111
23206
|
/**
|
|
23112
|
-
* Creates a union schema from
|
|
23113
|
-
* order; the first match is returned.
|
|
23207
|
+
* Creates a union schema from a fixed-length tuple of member schemas. Members
|
|
23208
|
+
* are tested in order; the first match is returned.
|
|
23114
23209
|
*
|
|
23115
23210
|
* **Details**
|
|
23116
23211
|
*
|
|
@@ -23118,6 +23213,12 @@ function makeUnion(ast, members) {
|
|
|
23118
23213
|
* - `"anyOf"` (default) — matches if any member matches.
|
|
23119
23214
|
* - `"oneOf"` — matches if exactly one member matches.
|
|
23120
23215
|
*
|
|
23216
|
+
* **Gotchas**
|
|
23217
|
+
*
|
|
23218
|
+
* Use an inline tuple or `as const`. Widened arrays, such as `Object.values(...)`
|
|
23219
|
+
* or `.map(...)` results, and open-ended tuples are unsupported despite being
|
|
23220
|
+
* accepted by the signature.
|
|
23221
|
+
*
|
|
23121
23222
|
* **Example** (Defining a string or number union)
|
|
23122
23223
|
*
|
|
23123
23224
|
* ```ts import.meta.vitest
|
|
@@ -23443,7 +23544,7 @@ const Error$1 = (identifier) => (schema, annotations) => {
|
|
|
23443
23544
|
const struct = isStruct(schema) ? schema : Struct(schema);
|
|
23444
23545
|
return makeClass(Error$3, identifier, struct, annotations, (identifier) => ({ name: identifier }));
|
|
23445
23546
|
};
|
|
23446
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
23547
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Terminal.js
|
|
23447
23548
|
const TypeId$1 = "~effect/Terminal";
|
|
23448
23549
|
const QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
23449
23550
|
/**
|
|
@@ -23514,19 +23615,26 @@ const make$1 = (impl) => Terminal.of({
|
|
|
23514
23615
|
* @since 4.0.0
|
|
23515
23616
|
*/
|
|
23516
23617
|
const layer$2 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
23517
|
-
const stdin = process.stdin;
|
|
23518
|
-
const stdout = process.stdout;
|
|
23519
23618
|
const lines = yield* make$17();
|
|
23520
|
-
let inputEnded =
|
|
23619
|
+
let inputEnded = false;
|
|
23521
23620
|
let readlineActive = false;
|
|
23522
23621
|
const onStdinEnd = () => {
|
|
23523
23622
|
inputEnded = true;
|
|
23524
23623
|
if (!readlineActive) endUnsafe(lines);
|
|
23525
23624
|
};
|
|
23526
|
-
stdin
|
|
23527
|
-
|
|
23625
|
+
let stdin;
|
|
23626
|
+
const getStdin = () => {
|
|
23627
|
+
if (stdin === void 0) {
|
|
23628
|
+
stdin = process.stdin;
|
|
23629
|
+
if (stdin.readableEnded) onStdinEnd();
|
|
23630
|
+
else stdin.once("end", onStdinEnd);
|
|
23631
|
+
}
|
|
23632
|
+
return stdin;
|
|
23633
|
+
};
|
|
23634
|
+
yield* addFinalizer(() => sync(() => stdin?.off("end", onStdinEnd)));
|
|
23528
23635
|
const rlRef = yield* make$15({
|
|
23529
23636
|
acquire: acquireRelease(sync(() => {
|
|
23637
|
+
const stdin = getStdin();
|
|
23530
23638
|
const rl = readline.createInterface({
|
|
23531
23639
|
input: stdin,
|
|
23532
23640
|
escapeCodeTimeout: 50
|
|
@@ -23555,15 +23663,17 @@ const layer$2 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
23555
23663
|
idleTimeToLive: "10 millis"
|
|
23556
23664
|
});
|
|
23557
23665
|
const setRawMode = (enabled) => sync(() => {
|
|
23666
|
+
const stdin = getStdin();
|
|
23558
23667
|
if (stdin.isTTY) stdin.setRawMode(enabled);
|
|
23559
23668
|
});
|
|
23560
23669
|
const rawModeRef = yield* make$15({
|
|
23561
23670
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
23562
23671
|
idleTimeToLive: "10 millis"
|
|
23563
23672
|
});
|
|
23564
|
-
const columns = sync(() => stdout.columns ?? 0);
|
|
23565
|
-
const rows = sync(() => stdout.rows ?? 0);
|
|
23673
|
+
const columns = sync(() => process.stdout.columns ?? 0);
|
|
23674
|
+
const rows = sync(() => process.stdout.rows ?? 0);
|
|
23566
23675
|
const size = gen(function* () {
|
|
23676
|
+
const stdout = process.stdout;
|
|
23567
23677
|
const queue = yield* sliding(1);
|
|
23568
23678
|
const onResize = () => offerUnsafe(queue, {
|
|
23569
23679
|
columns: stdout.columns ?? 0,
|
|
@@ -23578,6 +23688,7 @@ const layer$2 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
23578
23688
|
return queue;
|
|
23579
23689
|
});
|
|
23580
23690
|
const readInput = gen(function* () {
|
|
23691
|
+
const stdin = getStdin();
|
|
23581
23692
|
const queue = yield* make$17();
|
|
23582
23693
|
const handleKeypress = (s, k) => {
|
|
23583
23694
|
const userInput = {
|
|
@@ -23616,7 +23727,7 @@ const layer$2 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
23616
23727
|
onSome: succeed$1
|
|
23617
23728
|
})), mapError(() => new QuitError({}))));
|
|
23618
23729
|
const display = (prompt) => uninterruptible(callback$1((resume) => {
|
|
23619
|
-
stdout.write(prompt, (err) => isNullish(err) ? resume(void_) : resume(fail$3(badArgument({
|
|
23730
|
+
process.stdout.write(prompt, (err) => isNullish(err) ? resume(void_) : resume(fail$3(badArgument({
|
|
23620
23731
|
module: "Terminal",
|
|
23621
23732
|
method: "display",
|
|
23622
23733
|
description: "Failed to write prompt to stdout",
|
|
@@ -23636,7 +23747,7 @@ function defaultShouldQuit(input) {
|
|
|
23636
23747
|
const key = input.key;
|
|
23637
23748
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
23638
23749
|
}
|
|
23639
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
23750
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.4_effect@4.1.4_redis@6.2.1_@opentelemetry+api@1.9.0_/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
23640
23751
|
/**
|
|
23641
23752
|
* Provides the default Node implementations for child process spawning,
|
|
23642
23753
|
* filesystem, path, stdio, and terminal services.
|
|
@@ -23750,7 +23861,7 @@ const result = (self) => {
|
|
|
23750
23861
|
return fail$8(input);
|
|
23751
23862
|
};
|
|
23752
23863
|
};
|
|
23753
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
23864
|
+
// ../../node_modules/.pnpm/effect@4.1.4/node_modules/effect/dist/Match.js
|
|
23754
23865
|
/**
|
|
23755
23866
|
* Builds pattern matchers for TypeScript values.
|
|
23756
23867
|
*
|