@tim-smart/openapi-gen 1.0.0 → 1.0.2
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/main.js +275 -233
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -33,7 +33,7 @@ function _interopNamespace(e) {
|
|
|
33
33
|
return Object.freeze(n);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var Stream__default = /*#__PURE__*/_interopDefault(Stream);
|
|
37
37
|
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
38
38
|
var Url__namespace = /*#__PURE__*/_interopNamespace(Url);
|
|
39
39
|
var zlib__default = /*#__PURE__*/_interopDefault(zlib);
|
|
@@ -842,7 +842,7 @@ function Body(body) {
|
|
|
842
842
|
body = Buffer.from(body);
|
|
843
843
|
} else if (ArrayBuffer.isView(body)) {
|
|
844
844
|
body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
845
|
-
} else if (body instanceof
|
|
845
|
+
} else if (body instanceof Stream__default.default) ;
|
|
846
846
|
else {
|
|
847
847
|
body = Buffer.from(String(body));
|
|
848
848
|
}
|
|
@@ -853,7 +853,7 @@ function Body(body) {
|
|
|
853
853
|
};
|
|
854
854
|
this.size = size;
|
|
855
855
|
this.timeout = timeout2;
|
|
856
|
-
if (body instanceof
|
|
856
|
+
if (body instanceof Stream__default.default) {
|
|
857
857
|
body.on("error", function(err) {
|
|
858
858
|
const error2 = err.name === "AbortError" ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, "system", err);
|
|
859
859
|
_this[INTERNALS].error = error2;
|
|
@@ -875,7 +875,7 @@ function consumeBody() {
|
|
|
875
875
|
if (Buffer.isBuffer(this.body)) {
|
|
876
876
|
return Body.Promise.resolve(this.body);
|
|
877
877
|
}
|
|
878
|
-
if (!(this.body instanceof
|
|
878
|
+
if (!(this.body instanceof Stream__default.default)) {
|
|
879
879
|
return Body.Promise.resolve(Buffer.alloc(0));
|
|
880
880
|
}
|
|
881
881
|
let accum = [];
|
|
@@ -965,9 +965,9 @@ function clone(instance) {
|
|
|
965
965
|
if (instance.bodyUsed) {
|
|
966
966
|
throw new Error("cannot clone body after it is used");
|
|
967
967
|
}
|
|
968
|
-
if (body instanceof
|
|
969
|
-
p1 = new
|
|
970
|
-
p2 = new
|
|
968
|
+
if (body instanceof Stream__default.default && typeof body.getBoundary !== "function") {
|
|
969
|
+
p1 = new PassThrough();
|
|
970
|
+
p2 = new PassThrough();
|
|
971
971
|
body.pipe(p1);
|
|
972
972
|
body.pipe(p2);
|
|
973
973
|
instance[INTERNALS].body = p1;
|
|
@@ -992,7 +992,7 @@ function extractContentType(body) {
|
|
|
992
992
|
return null;
|
|
993
993
|
} else if (typeof body.getBoundary === "function") {
|
|
994
994
|
return `multipart/form-data;boundary=${body.getBoundary()}`;
|
|
995
|
-
} else if (body instanceof
|
|
995
|
+
} else if (body instanceof Stream__default.default) {
|
|
996
996
|
return null;
|
|
997
997
|
} else {
|
|
998
998
|
return "text/plain;charset=UTF-8";
|
|
@@ -1116,7 +1116,7 @@ function getNodeRequestOptions(request) {
|
|
|
1116
1116
|
if (!/^https?:$/.test(parsedURL.protocol)) {
|
|
1117
1117
|
throw new TypeError("Only HTTP(S) protocols are supported");
|
|
1118
1118
|
}
|
|
1119
|
-
if (request.signal && request.body instanceof
|
|
1119
|
+
if (request.signal && request.body instanceof Stream__default.default.Readable && !streamDestructionSupported) {
|
|
1120
1120
|
throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");
|
|
1121
1121
|
}
|
|
1122
1122
|
let contentLengthValue = null;
|
|
@@ -1167,7 +1167,7 @@ function fetch(url, opts) {
|
|
|
1167
1167
|
const abort = function abort2() {
|
|
1168
1168
|
let error2 = new AbortError("The user aborted a request.");
|
|
1169
1169
|
reject(error2);
|
|
1170
|
-
if (request.body && request.body instanceof
|
|
1170
|
+
if (request.body && request.body instanceof Stream__default.default.Readable) {
|
|
1171
1171
|
request.body.destroy(error2);
|
|
1172
1172
|
}
|
|
1173
1173
|
if (!response || !response.body) return;
|
|
@@ -1304,7 +1304,7 @@ function fetch(url, opts) {
|
|
|
1304
1304
|
writeToStream(req, request);
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
var import_http2_client, BUFFER, TYPE, Blob2, convert, INTERNALS,
|
|
1307
|
+
var import_http2_client, BUFFER, TYPE, Blob2, convert, INTERNALS, PassThrough, invalidTokenRegex, invalidHeaderCharRegex, MAP, Headers, INTERNAL, HeadersIteratorPrototype, INTERNALS$1, STATUS_CODES, Response, INTERNALS$2, parse_url, format_url, streamDestructionSupported, Request, PassThrough$1, resolve_url, lib_default;
|
|
1308
1308
|
var init_lib = __esm({
|
|
1309
1309
|
"node_modules/.pnpm/node-fetch-h2@2.3.0/node_modules/node-fetch-h2/lib/index.mjs"() {
|
|
1310
1310
|
import_http2_client = __toESM(require_lib(), 1);
|
|
@@ -1394,7 +1394,7 @@ var init_lib = __esm({
|
|
|
1394
1394
|
} catch (e) {
|
|
1395
1395
|
}
|
|
1396
1396
|
INTERNALS = Symbol("Body internals");
|
|
1397
|
-
|
|
1397
|
+
PassThrough = Stream__default.default.PassThrough;
|
|
1398
1398
|
Body.prototype = {
|
|
1399
1399
|
get body() {
|
|
1400
1400
|
return this[INTERNALS].body;
|
|
@@ -1795,7 +1795,7 @@ var init_lib = __esm({
|
|
|
1795
1795
|
INTERNALS$2 = Symbol("Request internals");
|
|
1796
1796
|
parse_url = Url__namespace.default.parse;
|
|
1797
1797
|
format_url = Url__namespace.default.format;
|
|
1798
|
-
streamDestructionSupported = "destroy" in
|
|
1798
|
+
streamDestructionSupported = "destroy" in Stream__default.default.Readable.prototype;
|
|
1799
1799
|
Request = class _Request {
|
|
1800
1800
|
constructor(input) {
|
|
1801
1801
|
let init = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -1886,7 +1886,7 @@ var init_lib = __esm({
|
|
|
1886
1886
|
AbortError.prototype = Object.create(Error.prototype);
|
|
1887
1887
|
AbortError.prototype.constructor = AbortError;
|
|
1888
1888
|
AbortError.prototype.name = "AbortError";
|
|
1889
|
-
PassThrough$1 =
|
|
1889
|
+
PassThrough$1 = Stream__default.default.PassThrough;
|
|
1890
1890
|
resolve_url = Url__namespace.default.resolve;
|
|
1891
1891
|
fetch.isRedirect = function(code) {
|
|
1892
1892
|
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
|
@@ -4516,7 +4516,7 @@ var require_swagger2openapi = __commonJS({
|
|
|
4516
4516
|
var require_ini = __commonJS({
|
|
4517
4517
|
"node_modules/.pnpm/ini@6.0.0/node_modules/ini/lib/ini.js"(exports, module) {
|
|
4518
4518
|
var { hasOwnProperty } = Object.prototype;
|
|
4519
|
-
var
|
|
4519
|
+
var encode = (obj, opt = {}) => {
|
|
4520
4520
|
if (typeof opt === "string") {
|
|
4521
4521
|
opt = { section: opt };
|
|
4522
4522
|
}
|
|
@@ -4556,7 +4556,7 @@ var require_ini = __commonJS({
|
|
|
4556
4556
|
for (const k of children) {
|
|
4557
4557
|
const nk = splitSections(k, ".").join("\\.");
|
|
4558
4558
|
const section = (opt.section ? opt.section + "." : "") + nk;
|
|
4559
|
-
const child =
|
|
4559
|
+
const child = encode(obj[k], {
|
|
4560
4560
|
...opt,
|
|
4561
4561
|
section
|
|
4562
4562
|
});
|
|
@@ -4586,7 +4586,7 @@ var require_ini = __commonJS({
|
|
|
4586
4586
|
sections.push(str.slice(lastSeparatorIndex));
|
|
4587
4587
|
return sections;
|
|
4588
4588
|
}
|
|
4589
|
-
var
|
|
4589
|
+
var decode = (str, opt = {}) => {
|
|
4590
4590
|
opt.bracketedArray = opt.bracketedArray !== false;
|
|
4591
4591
|
const out = /* @__PURE__ */ Object.create(null);
|
|
4592
4592
|
let p = out;
|
|
@@ -4714,10 +4714,10 @@ var require_ini = __commonJS({
|
|
|
4714
4714
|
return val;
|
|
4715
4715
|
};
|
|
4716
4716
|
module.exports = {
|
|
4717
|
-
parse:
|
|
4718
|
-
decode
|
|
4719
|
-
stringify:
|
|
4720
|
-
encode
|
|
4717
|
+
parse: decode,
|
|
4718
|
+
decode,
|
|
4719
|
+
stringify: encode,
|
|
4720
|
+
encode,
|
|
4721
4721
|
safe,
|
|
4722
4722
|
unsafe
|
|
4723
4723
|
};
|
|
@@ -8450,7 +8450,7 @@ var require_toml = __commonJS({
|
|
|
8450
8450
|
}
|
|
8451
8451
|
});
|
|
8452
8452
|
|
|
8453
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8453
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Pipeable.js
|
|
8454
8454
|
var pipeArguments = (self, args2) => {
|
|
8455
8455
|
switch (args2.length) {
|
|
8456
8456
|
case 0:
|
|
@@ -8482,13 +8482,19 @@ var pipeArguments = (self, args2) => {
|
|
|
8482
8482
|
}
|
|
8483
8483
|
}
|
|
8484
8484
|
};
|
|
8485
|
-
var
|
|
8485
|
+
var Prototype = {
|
|
8486
8486
|
pipe() {
|
|
8487
8487
|
return pipeArguments(this, arguments);
|
|
8488
8488
|
}
|
|
8489
8489
|
};
|
|
8490
|
+
var Class = /* @__PURE__ */ function() {
|
|
8491
|
+
function PipeableBase() {
|
|
8492
|
+
}
|
|
8493
|
+
PipeableBase.prototype = Prototype;
|
|
8494
|
+
return PipeableBase;
|
|
8495
|
+
}();
|
|
8490
8496
|
|
|
8491
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8497
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Function.js
|
|
8492
8498
|
var dual = function(arity, body) {
|
|
8493
8499
|
if (typeof arity === "function") {
|
|
8494
8500
|
return function() {
|
|
@@ -8590,7 +8596,7 @@ function memoize(f) {
|
|
|
8590
8596
|
};
|
|
8591
8597
|
}
|
|
8592
8598
|
|
|
8593
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8599
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/equal.js
|
|
8594
8600
|
var getAllObjectKeys = (obj) => {
|
|
8595
8601
|
const keys = new Set(Reflect.ownKeys(obj));
|
|
8596
8602
|
if (obj.constructor === Object) return keys;
|
|
@@ -8613,7 +8619,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
8613
8619
|
};
|
|
8614
8620
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
8615
8621
|
|
|
8616
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8622
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Predicate.js
|
|
8617
8623
|
function isString(input) {
|
|
8618
8624
|
return typeof input === "string";
|
|
8619
8625
|
}
|
|
@@ -8647,16 +8653,13 @@ function isNotNullish(input) {
|
|
|
8647
8653
|
function isUnknown(_) {
|
|
8648
8654
|
return true;
|
|
8649
8655
|
}
|
|
8650
|
-
function isObject(input) {
|
|
8651
|
-
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
8652
|
-
}
|
|
8653
8656
|
function isObjectKeyword(input) {
|
|
8654
8657
|
return typeof input === "object" && input !== null || isFunction(input);
|
|
8655
8658
|
}
|
|
8656
8659
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObjectKeyword(self) && property in self);
|
|
8657
8660
|
var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag") && self["_tag"] === tag2);
|
|
8658
8661
|
|
|
8659
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8662
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Hash.js
|
|
8660
8663
|
var symbol = "~effect/interfaces/Hash";
|
|
8661
8664
|
var hash = (self) => {
|
|
8662
8665
|
switch (typeof self) {
|
|
@@ -8775,7 +8778,7 @@ function withVisitedTracking(obj, fn3) {
|
|
|
8775
8778
|
return result3;
|
|
8776
8779
|
}
|
|
8777
8780
|
|
|
8778
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8781
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Equal.js
|
|
8779
8782
|
var symbol2 = "~effect/interfaces/Equal";
|
|
8780
8783
|
function equals() {
|
|
8781
8784
|
if (arguments.length === 1) {
|
|
@@ -8937,7 +8940,7 @@ var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
|
|
|
8937
8940
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
8938
8941
|
var asEquivalence = () => equals;
|
|
8939
8942
|
|
|
8940
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8943
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Redactable.js
|
|
8941
8944
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Inspectable/redactable");
|
|
8942
8945
|
var isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
8943
8946
|
function redact(u) {
|
|
@@ -8956,7 +8959,7 @@ var emptyServiceMap = {
|
|
|
8956
8959
|
}
|
|
8957
8960
|
};
|
|
8958
8961
|
|
|
8959
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
8962
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Formatter.js
|
|
8960
8963
|
function format(input, options) {
|
|
8961
8964
|
const space = options?.space ?? 0;
|
|
8962
8965
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -8994,7 +8997,7 @@ ${ind(d)}]`;
|
|
|
8994
8997
|
if (typeof v === "string") return JSON.stringify(v);
|
|
8995
8998
|
if (typeof v === "number" || v == null || typeof v === "boolean" || typeof v === "symbol") return String(v);
|
|
8996
8999
|
if (typeof v === "bigint") return String(v) + "n";
|
|
8997
|
-
if (
|
|
9000
|
+
if (typeof v === "object" || typeof v === "function") {
|
|
8998
9001
|
if (seen.has(v)) return CIRCULAR;
|
|
8999
9002
|
seen.add(v);
|
|
9000
9003
|
if (symbolRedactable in v) return format(getRedacted(v));
|
|
@@ -9044,7 +9047,7 @@ function formatJson(input, options) {
|
|
|
9044
9047
|
return out;
|
|
9045
9048
|
}
|
|
9046
9049
|
|
|
9047
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9050
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Inspectable.js
|
|
9048
9051
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
9049
9052
|
var toJson = (input) => {
|
|
9050
9053
|
try {
|
|
@@ -9127,7 +9130,7 @@ var forced = {
|
|
|
9127
9130
|
var isNotOptimizedAway = /* @__PURE__ */ standard[InternalTypeId](() => new Error().stack)?.includes(InternalTypeId) === true;
|
|
9128
9131
|
var internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[InternalTypeId];
|
|
9129
9132
|
|
|
9130
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9133
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/core.js
|
|
9131
9134
|
var EffectTypeId = `~effect/Effect`;
|
|
9132
9135
|
var ExitTypeId = `~effect/Exit`;
|
|
9133
9136
|
var effectVariance = {
|
|
@@ -9152,8 +9155,9 @@ var PipeInspectableProto = {
|
|
|
9152
9155
|
};
|
|
9153
9156
|
},
|
|
9154
9157
|
toString() {
|
|
9155
|
-
return format(this, {
|
|
9156
|
-
ignoreToString: true
|
|
9158
|
+
return format(this.toJSON(), {
|
|
9159
|
+
ignoreToString: true,
|
|
9160
|
+
space: 2
|
|
9157
9161
|
});
|
|
9158
9162
|
},
|
|
9159
9163
|
[NodeInspectSymbol]() {
|
|
@@ -9165,6 +9169,12 @@ var YieldableProto = {
|
|
|
9165
9169
|
return new SingleShotGen(this);
|
|
9166
9170
|
}
|
|
9167
9171
|
};
|
|
9172
|
+
var YieldableErrorProto = {
|
|
9173
|
+
...YieldableProto,
|
|
9174
|
+
pipe() {
|
|
9175
|
+
return pipeArguments(this, arguments);
|
|
9176
|
+
}
|
|
9177
|
+
};
|
|
9168
9178
|
var EffectProto = {
|
|
9169
9179
|
[EffectTypeId]: effectVariance,
|
|
9170
9180
|
...PipeInspectableProto,
|
|
@@ -9411,7 +9421,7 @@ var YieldableError = /* @__PURE__ */ function() {
|
|
|
9411
9421
|
return exitFail(this);
|
|
9412
9422
|
}
|
|
9413
9423
|
}
|
|
9414
|
-
Object.assign(YieldableError2.prototype,
|
|
9424
|
+
Object.assign(YieldableError2.prototype, YieldableErrorProto);
|
|
9415
9425
|
return YieldableError2;
|
|
9416
9426
|
}();
|
|
9417
9427
|
var Error2 = /* @__PURE__ */ function() {
|
|
@@ -9478,7 +9488,7 @@ var done = (value) => {
|
|
|
9478
9488
|
return exitFail(Done(value));
|
|
9479
9489
|
};
|
|
9480
9490
|
|
|
9481
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9491
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/option.js
|
|
9482
9492
|
var TypeId = "~effect/data/Option";
|
|
9483
9493
|
var CommonProto = {
|
|
9484
9494
|
[TypeId]: {
|
|
@@ -9543,7 +9553,7 @@ var some = (value) => {
|
|
|
9543
9553
|
return a;
|
|
9544
9554
|
};
|
|
9545
9555
|
|
|
9546
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9556
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/result.js
|
|
9547
9557
|
var TypeId2 = "~effect/data/Result";
|
|
9548
9558
|
var CommonProto2 = {
|
|
9549
9559
|
[TypeId2]: {
|
|
@@ -9614,7 +9624,7 @@ var succeed = (success) => {
|
|
|
9614
9624
|
return a;
|
|
9615
9625
|
};
|
|
9616
9626
|
|
|
9617
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9627
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Order.js
|
|
9618
9628
|
function make(compare) {
|
|
9619
9629
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
9620
9630
|
}
|
|
@@ -9627,7 +9637,7 @@ var Number2 = /* @__PURE__ */ make((self, that) => {
|
|
|
9627
9637
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((b1, b2) => self(f(b1), f(b2))));
|
|
9628
9638
|
var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
9629
9639
|
|
|
9630
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9640
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Option.js
|
|
9631
9641
|
var none2 = () => none;
|
|
9632
9642
|
var some2 = some;
|
|
9633
9643
|
var isNone2 = isNone;
|
|
@@ -9646,12 +9656,12 @@ var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(s
|
|
|
9646
9656
|
var filterMap = flatMap;
|
|
9647
9657
|
var filter = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b) => predicate(b) ? some(b) : none));
|
|
9648
9658
|
|
|
9649
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9659
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Result.js
|
|
9650
9660
|
var succeed2 = succeed;
|
|
9651
9661
|
var fail2 = fail;
|
|
9652
9662
|
var isFailure2 = isFailure;
|
|
9653
9663
|
|
|
9654
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9664
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Filter.js
|
|
9655
9665
|
var apply = (filter7, input, ...args2) => {
|
|
9656
9666
|
const result3 = filter7(input, ...args2);
|
|
9657
9667
|
if (result3 === true) return succeed2(input);
|
|
@@ -9670,10 +9680,10 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
|
|
|
9670
9680
|
return rightOut;
|
|
9671
9681
|
});
|
|
9672
9682
|
|
|
9673
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9683
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/array.js
|
|
9674
9684
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
9675
9685
|
|
|
9676
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9686
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Array.js
|
|
9677
9687
|
var Array2 = globalThis.Array;
|
|
9678
9688
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
9679
9689
|
var append = /* @__PURE__ */ dual(2, (self, last) => [...self, last]);
|
|
@@ -9734,12 +9744,12 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
9734
9744
|
});
|
|
9735
9745
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
9736
9746
|
|
|
9737
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9747
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Duration.js
|
|
9738
9748
|
var TypeId3 = "~effect/time/Duration";
|
|
9739
9749
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
9740
9750
|
var bigint1e3 = /* @__PURE__ */ BigInt(1e3);
|
|
9741
9751
|
var DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/;
|
|
9742
|
-
var
|
|
9752
|
+
var fromInputUnsafe = (input) => {
|
|
9743
9753
|
if (isDuration(input)) return input;
|
|
9744
9754
|
if (isNumber(input)) return millis(input);
|
|
9745
9755
|
if (isBigInt(input)) return nanos(input);
|
|
@@ -9788,7 +9798,7 @@ var fromDurationInputUnsafe = (input) => {
|
|
|
9788
9798
|
}
|
|
9789
9799
|
}
|
|
9790
9800
|
}
|
|
9791
|
-
throw new Error(`Invalid
|
|
9801
|
+
throw new Error(`Invalid Input: ${input}`);
|
|
9792
9802
|
};
|
|
9793
9803
|
var zeroDurationValue = {
|
|
9794
9804
|
_tag: "Millis",
|
|
@@ -9894,7 +9904,7 @@ var minutes = (minutes2) => make2(minutes2 * 6e4);
|
|
|
9894
9904
|
var hours = (hours2) => make2(hours2 * 36e5);
|
|
9895
9905
|
var days = (days2) => make2(days2 * 864e5);
|
|
9896
9906
|
var weeks = (weeks2) => make2(weeks2 * 6048e5);
|
|
9897
|
-
var toMillis = (self) => match3(self, {
|
|
9907
|
+
var toMillis = (self) => match3(fromInputUnsafe(self), {
|
|
9898
9908
|
onMillis: identity,
|
|
9899
9909
|
onNanos: (nanos2) => Number(nanos2) / 1e6,
|
|
9900
9910
|
onInfinity: () => Infinity,
|
|
@@ -9938,7 +9948,7 @@ var Equivalence = (self, that) => matchPair(self, that, {
|
|
|
9938
9948
|
});
|
|
9939
9949
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
9940
9950
|
|
|
9941
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
9951
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/ServiceMap.js
|
|
9942
9952
|
var ServiceTypeId = "~effect/ServiceMap/Service";
|
|
9943
9953
|
var Service = function() {
|
|
9944
9954
|
const prevLimit = Error.stackTraceLimit;
|
|
@@ -10123,7 +10133,7 @@ var mergeAll = (...ctxs) => {
|
|
|
10123
10133
|
};
|
|
10124
10134
|
var Reference = Service;
|
|
10125
10135
|
|
|
10126
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10136
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Scheduler.js
|
|
10127
10137
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
10128
10138
|
defaultValue: () => new MixedScheduler()
|
|
10129
10139
|
});
|
|
@@ -10221,7 +10231,7 @@ var MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBefore
|
|
|
10221
10231
|
defaultValue: () => 2048
|
|
10222
10232
|
});
|
|
10223
10233
|
|
|
10224
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10234
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Tracer.js
|
|
10225
10235
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
10226
10236
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
|
|
10227
10237
|
};
|
|
@@ -10301,7 +10311,7 @@ var randomHexString = /* @__PURE__ */ function() {
|
|
|
10301
10311
|
};
|
|
10302
10312
|
}();
|
|
10303
10313
|
|
|
10304
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10314
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/References.js
|
|
10305
10315
|
var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
|
|
10306
10316
|
defaultValue: () => "unbounded"
|
|
10307
10317
|
});
|
|
@@ -10333,10 +10343,10 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
10333
10343
|
defaultValue: () => []
|
|
10334
10344
|
});
|
|
10335
10345
|
|
|
10336
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10346
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/metric.js
|
|
10337
10347
|
var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
10338
10348
|
|
|
10339
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10349
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/tracer.js
|
|
10340
10350
|
var makeStackCleaner = (line) => (stack) => {
|
|
10341
10351
|
let cache;
|
|
10342
10352
|
return () => {
|
|
@@ -10351,10 +10361,10 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
10351
10361
|
};
|
|
10352
10362
|
};
|
|
10353
10363
|
|
|
10354
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10364
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/version.js
|
|
10355
10365
|
var version = "dev";
|
|
10356
10366
|
|
|
10357
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
10367
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/effect.js
|
|
10358
10368
|
var Interrupt = class extends ReasonBase {
|
|
10359
10369
|
constructor(fiberId2, annotations = constEmptyAnnotations) {
|
|
10360
10370
|
super("Interrupt", annotations, "Interrupted");
|
|
@@ -11096,6 +11106,7 @@ var catchEager = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
11096
11106
|
var exitInterrupt = (fiberId2) => exitFailCause(causeInterrupt(fiberId2));
|
|
11097
11107
|
var exitIsSuccess = (self) => self._tag === "Success";
|
|
11098
11108
|
var exitIsFailure = (self) => self._tag === "Failure";
|
|
11109
|
+
var exitFilterCause = (self) => self._tag === "Failure" ? succeed2(self.cause) : fail2(self);
|
|
11099
11110
|
var exitVoid = /* @__PURE__ */ exitSucceed(void 0);
|
|
11100
11111
|
var exitMap = /* @__PURE__ */ dual(2, (self, f) => self._tag === "Success" ? exitSucceed(f(self.value)) : self);
|
|
11101
11112
|
var exitMapError = /* @__PURE__ */ dual(2, (self, f) => {
|
|
@@ -11404,6 +11415,11 @@ var onExitPrimitive = /* @__PURE__ */ makePrimitive({
|
|
|
11404
11415
|
});
|
|
11405
11416
|
var onExit = /* @__PURE__ */ dual(2, onExitPrimitive);
|
|
11406
11417
|
var ensuring = /* @__PURE__ */ dual(2, (self, finalizer) => onExit(self, (_) => finalizer));
|
|
11418
|
+
var onExitIf = /* @__PURE__ */ dual(3, (self, filter7, f) => onExit(self, (exit3) => {
|
|
11419
|
+
const pass = apply(filter7, exit3);
|
|
11420
|
+
return isFailure2(pass) ? void_ : f(pass.success, exit3);
|
|
11421
|
+
}));
|
|
11422
|
+
var onError = /* @__PURE__ */ dual(2, (self, f) => onExitIf(self, exitFilterCause, f));
|
|
11407
11423
|
var interrupt = /* @__PURE__ */ withFiber((fiber2) => failCause(causeInterrupt(fiber2.id)));
|
|
11408
11424
|
var uninterruptible = (self) => withFiber((fiber2) => {
|
|
11409
11425
|
if (!fiber2.interruptible) return self;
|
|
@@ -11875,7 +11891,7 @@ var processOrPerformanceNow = /* @__PURE__ */ function() {
|
|
|
11875
11891
|
return () => origin + processHrtime.bigint();
|
|
11876
11892
|
}();
|
|
11877
11893
|
var clockWith = (f) => withFiber((fiber2) => f(fiber2.getRef(ClockRef)));
|
|
11878
|
-
var sleep = (duration) => clockWith((clock) => clock.sleep(
|
|
11894
|
+
var sleep = (duration) => clockWith((clock) => clock.sleep(fromInputUnsafe(duration)));
|
|
11879
11895
|
var UnknownErrorTypeId = "~effect/Cause/UnknownError";
|
|
11880
11896
|
var _a9, _b5;
|
|
11881
11897
|
var UnknownError = class extends (_b5 = /* @__PURE__ */ TaggedError("UnknownError"), _a9 = UnknownErrorTypeId, _b5) {
|
|
@@ -12025,7 +12041,7 @@ var tracerLogger = /* @__PURE__ */ loggerMake(({
|
|
|
12025
12041
|
span.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clock.currentTimeNanosUnsafe(), attributes);
|
|
12026
12042
|
});
|
|
12027
12043
|
|
|
12028
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12044
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Console.js
|
|
12029
12045
|
var Console = ConsoleRef;
|
|
12030
12046
|
var consoleWith = (f) => withFiber((fiber2) => f(fiber2.getRef(Console)));
|
|
12031
12047
|
var error = (...args2) => consoleWith((console2) => sync(() => {
|
|
@@ -12035,14 +12051,15 @@ var log = (...args2) => consoleWith((console2) => sync(() => {
|
|
|
12035
12051
|
console2.log(...args2);
|
|
12036
12052
|
}));
|
|
12037
12053
|
|
|
12038
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12054
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Exit.js
|
|
12039
12055
|
var succeed4 = exitSucceed;
|
|
12056
|
+
var failCause2 = exitFailCause;
|
|
12040
12057
|
var fail4 = exitFail;
|
|
12041
12058
|
var void_2 = exitVoid;
|
|
12042
12059
|
var isSuccess3 = exitIsSuccess;
|
|
12043
12060
|
var isFailure3 = exitIsFailure;
|
|
12044
12061
|
|
|
12045
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12062
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Deferred.js
|
|
12046
12063
|
var TypeId5 = "~effect/Deferred";
|
|
12047
12064
|
var DeferredProto = {
|
|
12048
12065
|
[TypeId5]: {
|
|
@@ -12084,7 +12101,7 @@ var doneUnsafe = (self, effect2) => {
|
|
|
12084
12101
|
return true;
|
|
12085
12102
|
};
|
|
12086
12103
|
|
|
12087
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12104
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Scope.js
|
|
12088
12105
|
var Scope = scopeTag;
|
|
12089
12106
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
12090
12107
|
var provide = provideScope;
|
|
@@ -12093,7 +12110,7 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
12093
12110
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
12094
12111
|
var close = scopeClose;
|
|
12095
12112
|
|
|
12096
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12113
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Layer.js
|
|
12097
12114
|
var TypeId6 = "~effect/Layer";
|
|
12098
12115
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
12099
12116
|
var LayerProto = {
|
|
@@ -12193,7 +12210,7 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => mergeAll2(self, ...Array.is
|
|
|
12193
12210
|
var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap2(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context) => self.build(memoMap, scope3).pipe(provideServices(context), map2((merged) => f(merged, context)))));
|
|
12194
12211
|
var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self2, that2) => merge(that2, self2)));
|
|
12195
12212
|
|
|
12196
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12213
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Cause.js
|
|
12197
12214
|
var fail5 = causeFail;
|
|
12198
12215
|
var hasInterruptsOnly2 = hasInterruptsOnly;
|
|
12199
12216
|
var findError2 = findError;
|
|
@@ -12202,7 +12219,8 @@ var Done2 = Done;
|
|
|
12202
12219
|
var done3 = done;
|
|
12203
12220
|
var UnknownError2 = UnknownError;
|
|
12204
12221
|
|
|
12205
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12222
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Data.js
|
|
12223
|
+
var Error3 = Error2;
|
|
12206
12224
|
var TaggedError2 = TaggedError;
|
|
12207
12225
|
var isString2 = isString;
|
|
12208
12226
|
var toUpperCase = (self) => self.toUpperCase();
|
|
@@ -12213,17 +12231,22 @@ var capitalize = (self) => {
|
|
|
12213
12231
|
var trim = (self) => self.trim();
|
|
12214
12232
|
var isNonEmpty = (self) => self.length > 0;
|
|
12215
12233
|
|
|
12216
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12234
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Pull.js
|
|
12217
12235
|
var catchDone = /* @__PURE__ */ dual(2, (effect2, f) => catchCauseIf(effect2, filterDoneLeftover, (l) => f(l)));
|
|
12218
12236
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
12219
12237
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
|
|
12238
|
+
var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e) : fail2(e));
|
|
12220
12239
|
var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e.value) : fail2(e));
|
|
12240
|
+
var doneExitFromCause = (cause) => {
|
|
12241
|
+
const halt = filterDone(cause);
|
|
12242
|
+
return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
|
|
12243
|
+
};
|
|
12221
12244
|
|
|
12222
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12245
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/layer.js
|
|
12223
12246
|
var provideLayer = (self, layer11, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer11, makeMemoMapUnsafe(), scope3) : buildWithScope(layer11, scope3), (context) => provideServices(self, context)));
|
|
12224
12247
|
var provide2 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isServiceMap(source) ? provideServices(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
12225
12248
|
|
|
12226
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12249
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Effect.js
|
|
12227
12250
|
var TypeId7 = EffectTypeId;
|
|
12228
12251
|
var isEffect2 = (u) => typeof u === "object" && u !== null && TypeId7 in u;
|
|
12229
12252
|
var forEach2 = forEach;
|
|
@@ -12237,7 +12260,7 @@ var void_3 = void_;
|
|
|
12237
12260
|
var callback2 = callback;
|
|
12238
12261
|
var gen2 = gen;
|
|
12239
12262
|
var fail6 = fail3;
|
|
12240
|
-
var
|
|
12263
|
+
var failCause3 = failCause;
|
|
12241
12264
|
var die2 = die;
|
|
12242
12265
|
var try_2 = try_;
|
|
12243
12266
|
var withFiber2 = withFiber;
|
|
@@ -12271,11 +12294,10 @@ var scopedWith2 = scopedWith;
|
|
|
12271
12294
|
var acquireRelease2 = acquireRelease;
|
|
12272
12295
|
var addFinalizer3 = addFinalizer;
|
|
12273
12296
|
var ensuring2 = ensuring;
|
|
12297
|
+
var onError2 = onError;
|
|
12274
12298
|
var interrupt2 = interrupt;
|
|
12275
12299
|
var uninterruptible2 = uninterruptible;
|
|
12276
12300
|
var uninterruptibleMask2 = uninterruptibleMask;
|
|
12277
|
-
var makeSemaphoreUnsafe2 = makeSemaphoreUnsafe;
|
|
12278
|
-
var makeLatchUnsafe2 = makeLatchUnsafe;
|
|
12279
12301
|
var forever2 = forever;
|
|
12280
12302
|
var forkIn2 = forkIn;
|
|
12281
12303
|
var forkScoped2 = forkScoped;
|
|
@@ -12305,7 +12327,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
12305
12327
|
var catchEager2 = catchEager;
|
|
12306
12328
|
var fnUntracedEager2 = fnUntracedEager;
|
|
12307
12329
|
|
|
12308
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12330
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Runtime.js
|
|
12309
12331
|
var defaultTeardown = (exit3, onExit4) => {
|
|
12310
12332
|
onExit4(isFailure3(exit3) ? hasInterruptsOnly2(exit3.cause) ? 130 : 1 : 0);
|
|
12311
12333
|
};
|
|
@@ -12323,7 +12345,7 @@ var makeRunMain = (f) => dual((args2) => isEffect2(args2[0]), (effect2, options)
|
|
|
12323
12345
|
});
|
|
12324
12346
|
});
|
|
12325
12347
|
|
|
12326
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
12348
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.7_effect@4.0.0-beta.7/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
12327
12349
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
12328
12350
|
fiber: fiber2,
|
|
12329
12351
|
teardown
|
|
@@ -12350,10 +12372,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
12350
12372
|
process.on("SIGTERM", onSigint);
|
|
12351
12373
|
});
|
|
12352
12374
|
|
|
12353
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
12375
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
12354
12376
|
var runMain2 = runMain;
|
|
12355
12377
|
|
|
12356
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12378
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/record.js
|
|
12357
12379
|
function set(self, key, value) {
|
|
12358
12380
|
if (key === "__proto__") {
|
|
12359
12381
|
Object.defineProperty(self, key, {
|
|
@@ -12368,7 +12390,7 @@ function set(self, key, value) {
|
|
|
12368
12390
|
return self;
|
|
12369
12391
|
}
|
|
12370
12392
|
|
|
12371
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12393
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/schema/annotations.js
|
|
12372
12394
|
function resolve(ast) {
|
|
12373
12395
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
12374
12396
|
}
|
|
@@ -12377,7 +12399,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
12377
12399
|
});
|
|
12378
12400
|
var escape = (string6) => string6.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
12379
12401
|
|
|
12380
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12402
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/SchemaIssue.js
|
|
12381
12403
|
var TypeId8 = "~effect/SchemaIssue/Issue";
|
|
12382
12404
|
var _a11;
|
|
12383
12405
|
_a11 = TypeId8;
|
|
@@ -12693,7 +12715,7 @@ function formatOption(actual) {
|
|
|
12693
12715
|
return format(actual.value);
|
|
12694
12716
|
}
|
|
12695
12717
|
|
|
12696
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12718
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/SchemaGetter.js
|
|
12697
12719
|
var Getter = class _Getter extends Class {
|
|
12698
12720
|
constructor(run5) {
|
|
12699
12721
|
super();
|
|
@@ -12734,18 +12756,18 @@ function split(options) {
|
|
|
12734
12756
|
return transform((input) => input === "" ? [] : input.split(separator));
|
|
12735
12757
|
}
|
|
12736
12758
|
|
|
12737
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12759
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/SchemaTransformation.js
|
|
12738
12760
|
var TypeId9 = "~effect/SchemaTransformation/Transformation";
|
|
12739
12761
|
var _a12;
|
|
12740
12762
|
_a12 = TypeId9;
|
|
12741
12763
|
var _Transformation = class _Transformation {
|
|
12742
|
-
constructor(
|
|
12764
|
+
constructor(decode, encode) {
|
|
12743
12765
|
__publicField(this, _a12, TypeId9);
|
|
12744
12766
|
__publicField(this, "_tag", "Transformation");
|
|
12745
12767
|
__publicField(this, "decode");
|
|
12746
12768
|
__publicField(this, "encode");
|
|
12747
|
-
this.decode =
|
|
12748
|
-
this.encode =
|
|
12769
|
+
this.decode = decode;
|
|
12770
|
+
this.encode = encode;
|
|
12749
12771
|
}
|
|
12750
12772
|
flip() {
|
|
12751
12773
|
return new _Transformation(this.encode, this.decode);
|
|
@@ -12772,7 +12794,7 @@ function passthrough2() {
|
|
|
12772
12794
|
return passthrough_2;
|
|
12773
12795
|
}
|
|
12774
12796
|
|
|
12775
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
12797
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/SchemaAST.js
|
|
12776
12798
|
function makeGuard(tag2) {
|
|
12777
12799
|
return (ast) => ast._tag === tag2;
|
|
12778
12800
|
}
|
|
@@ -13156,13 +13178,13 @@ var PropertySignature = class {
|
|
|
13156
13178
|
}
|
|
13157
13179
|
};
|
|
13158
13180
|
var IndexSignature = class {
|
|
13159
|
-
constructor(parameter, type,
|
|
13181
|
+
constructor(parameter, type, merge5) {
|
|
13160
13182
|
__publicField(this, "parameter");
|
|
13161
13183
|
__publicField(this, "type");
|
|
13162
13184
|
__publicField(this, "merge");
|
|
13163
13185
|
this.parameter = parameter;
|
|
13164
13186
|
this.type = type;
|
|
13165
|
-
this.merge =
|
|
13187
|
+
this.merge = merge5;
|
|
13166
13188
|
if (isOptional(type) && !containsUndefined(type)) {
|
|
13167
13189
|
throw new Error("Cannot use `Schema.optionalKey` with index signatures, use `Schema.optional` instead.");
|
|
13168
13190
|
}
|
|
@@ -13346,8 +13368,8 @@ var Objects = class _Objects extends Base2 {
|
|
|
13346
13368
|
const indexes = mapOrSame(this.indexSignatures, (is3) => {
|
|
13347
13369
|
const p = recur2(is3.parameter);
|
|
13348
13370
|
const t = recur2(is3.type);
|
|
13349
|
-
const
|
|
13350
|
-
return p === is3.parameter && t === is3.type &&
|
|
13371
|
+
const merge5 = flipMerge ? is3.merge?.flip() : is3.merge;
|
|
13372
|
+
return p === is3.parameter && t === is3.type && merge5 === is3.merge ? is3 : new IndexSignature(p, t, merge5);
|
|
13351
13373
|
});
|
|
13352
13374
|
return props === this.propertySignatures && indexes === this.indexSignatures ? this : new _Objects(props, indexes, this.annotations, this.checks, void 0, this.context);
|
|
13353
13375
|
}
|
|
@@ -13817,7 +13839,7 @@ function collectIssues(checks, value, issues, ast, options) {
|
|
|
13817
13839
|
var ClassTypeId = "~effect/Schema/Class";
|
|
13818
13840
|
var STRUCTURAL_ANNOTATION_KEY = "~structural";
|
|
13819
13841
|
|
|
13820
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
13842
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Brand.js
|
|
13821
13843
|
function nominal() {
|
|
13822
13844
|
return Object.assign((input) => input, {
|
|
13823
13845
|
option: (input) => some2(input),
|
|
@@ -13826,7 +13848,7 @@ function nominal() {
|
|
|
13826
13848
|
});
|
|
13827
13849
|
}
|
|
13828
13850
|
|
|
13829
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
13851
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/PlatformError.js
|
|
13830
13852
|
var TypeId11 = "~effect/platform/PlatformError";
|
|
13831
13853
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
13832
13854
|
/**
|
|
@@ -13836,12 +13858,12 @@ var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
|
13836
13858
|
return `${this.module}.${this.method}${this.description ? `: ${this.description}` : ""}`;
|
|
13837
13859
|
}
|
|
13838
13860
|
};
|
|
13839
|
-
var SystemError = class extends
|
|
13861
|
+
var SystemError = class extends Error3 {
|
|
13840
13862
|
/**
|
|
13841
13863
|
* @since 4.0.0
|
|
13842
13864
|
*/
|
|
13843
13865
|
get message() {
|
|
13844
|
-
return `${this.
|
|
13866
|
+
return `${this._tag}: ${this.module}.${this.method}${this.pathOrDescriptor !== void 0 ? ` (${this.pathOrDescriptor})` : ""}${this.description ? `: ${this.description}` : ""}`;
|
|
13845
13867
|
}
|
|
13846
13868
|
};
|
|
13847
13869
|
var _a14, _b7;
|
|
@@ -13875,7 +13897,10 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
13875
13897
|
var interrupt3 = fiberInterrupt;
|
|
13876
13898
|
var runIn = fiberRunIn;
|
|
13877
13899
|
|
|
13878
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
13900
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Latch.js
|
|
13901
|
+
var makeUnsafe4 = makeLatchUnsafe;
|
|
13902
|
+
|
|
13903
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/MutableList.js
|
|
13879
13904
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
13880
13905
|
var make7 = () => ({
|
|
13881
13906
|
head: void 0,
|
|
@@ -13946,7 +13971,7 @@ var take = (self) => {
|
|
|
13946
13971
|
return message;
|
|
13947
13972
|
};
|
|
13948
13973
|
|
|
13949
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
13974
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/MutableRef.js
|
|
13950
13975
|
var TypeId13 = "~effect/MutableRef";
|
|
13951
13976
|
var MutableRefProto = {
|
|
13952
13977
|
[TypeId13]: TypeId13,
|
|
@@ -13964,7 +13989,7 @@ var make8 = (value) => {
|
|
|
13964
13989
|
return ref;
|
|
13965
13990
|
};
|
|
13966
13991
|
|
|
13967
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
13992
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Queue.js
|
|
13968
13993
|
var TypeId14 = "~effect/Queue";
|
|
13969
13994
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
13970
13995
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -14000,6 +14025,9 @@ var make9 = (options) => withFiber((fiber2) => {
|
|
|
14000
14025
|
};
|
|
14001
14026
|
return succeed3(self);
|
|
14002
14027
|
});
|
|
14028
|
+
var bounded = (capacity) => make9({
|
|
14029
|
+
capacity
|
|
14030
|
+
});
|
|
14003
14031
|
var offer = (self, message) => suspend(() => {
|
|
14004
14032
|
if (self.state._tag !== "Open") {
|
|
14005
14033
|
return exitFalse;
|
|
@@ -14043,6 +14071,7 @@ var offerUnsafe = (self, message) => {
|
|
|
14043
14071
|
scheduleReleaseTaker(self);
|
|
14044
14072
|
return true;
|
|
14045
14073
|
};
|
|
14074
|
+
var failCause4 = /* @__PURE__ */ dual(2, (self, cause) => sync(() => failCauseUnsafe(self, cause)));
|
|
14046
14075
|
var failCauseUnsafe = (self, cause) => {
|
|
14047
14076
|
if (self.state._tag !== "Open") {
|
|
14048
14077
|
return false;
|
|
@@ -14082,6 +14111,25 @@ var shutdown = (self) => sync(() => {
|
|
|
14082
14111
|
});
|
|
14083
14112
|
var takeAll2 = (self) => takeBetween(self, 1, Number.POSITIVE_INFINITY);
|
|
14084
14113
|
var takeBetween = (self, min, max) => suspend(() => takeBetweenUnsafe(self, min, max) ?? andThen(awaitTake(self), takeBetween(self, 1, max)));
|
|
14114
|
+
var take2 = (self) => suspend(() => takeUnsafe(self) ?? andThen(awaitTake(self), take2(self)));
|
|
14115
|
+
var takeUnsafe = (self) => {
|
|
14116
|
+
if (self.state._tag === "Done") {
|
|
14117
|
+
return self.state.exit;
|
|
14118
|
+
}
|
|
14119
|
+
if (self.messages.length > 0) {
|
|
14120
|
+
const message = take(self.messages);
|
|
14121
|
+
releaseCapacity(self);
|
|
14122
|
+
return exitSucceed(message);
|
|
14123
|
+
} else if (self.capacity <= 0 && self.state.offers.size > 0) {
|
|
14124
|
+
self.capacity = 1;
|
|
14125
|
+
releaseCapacity(self);
|
|
14126
|
+
self.capacity = 0;
|
|
14127
|
+
const message = take(self.messages);
|
|
14128
|
+
releaseCapacity(self);
|
|
14129
|
+
return exitSucceed(message);
|
|
14130
|
+
}
|
|
14131
|
+
return void 0;
|
|
14132
|
+
};
|
|
14085
14133
|
var sizeUnsafe = (self) => self.state._tag === "Done" ? 0 : self.messages.length;
|
|
14086
14134
|
var exitFalse = /* @__PURE__ */ exitSucceed(false);
|
|
14087
14135
|
var exitTrue = /* @__PURE__ */ exitSucceed(true);
|
|
@@ -14205,8 +14253,12 @@ var finalize = (self, exit3) => {
|
|
|
14205
14253
|
openState.awaiters.clear();
|
|
14206
14254
|
};
|
|
14207
14255
|
|
|
14208
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14256
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Semaphore.js
|
|
14257
|
+
var makeUnsafe5 = makeSemaphoreUnsafe;
|
|
14258
|
+
|
|
14259
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Channel.js
|
|
14209
14260
|
var TypeId15 = "~effect/Channel";
|
|
14261
|
+
var isChannel = (u) => hasProperty(u, TypeId15);
|
|
14210
14262
|
var ChannelProto = {
|
|
14211
14263
|
[TypeId15]: {
|
|
14212
14264
|
_Env: identity,
|
|
@@ -14221,11 +14273,17 @@ var ChannelProto = {
|
|
|
14221
14273
|
};
|
|
14222
14274
|
var fromTransform = (transform4) => {
|
|
14223
14275
|
const self = Object.create(ChannelProto);
|
|
14224
|
-
self.transform = (upstream, scope3) => catchCause2(transform4(upstream, scope3), (cause) => succeed6(
|
|
14276
|
+
self.transform = (upstream, scope3) => catchCause2(transform4(upstream, scope3), (cause) => succeed6(failCause3(cause)));
|
|
14225
14277
|
return self;
|
|
14226
14278
|
};
|
|
14227
14279
|
var transformPull = (self, f) => fromTransform((upstream, scope3) => flatMap3(toTransform(self)(upstream, scope3), (pull) => f(pull, scope3)));
|
|
14228
14280
|
var fromPull = (effect2) => fromTransform((_, __) => effect2);
|
|
14281
|
+
var fromTransformBracket = (f) => fromTransform(fnUntraced2(function* (upstream, scope3) {
|
|
14282
|
+
const closableScope = forkUnsafe2(scope3);
|
|
14283
|
+
const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
|
|
14284
|
+
const pull = yield* onError2(f(upstream, scope3, closableScope), onCause);
|
|
14285
|
+
return onError2(pull, onCause);
|
|
14286
|
+
}));
|
|
14229
14287
|
var toTransform = (channel) => channel.transform;
|
|
14230
14288
|
var asyncQueue = (scope3, f, options) => make9({
|
|
14231
14289
|
capacity: options?.bufferSize,
|
|
@@ -14235,6 +14293,34 @@ var callbackArray = (f, options) => fromTransform((_, scope3) => map3(asyncQueue
|
|
|
14235
14293
|
var empty3 = /* @__PURE__ */ fromPull(/* @__PURE__ */ succeed6(/* @__PURE__ */ done3()));
|
|
14236
14294
|
var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
|
|
14237
14295
|
var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done4) => flatMap3(f(done4), done3)))));
|
|
14296
|
+
var merge3 = /* @__PURE__ */ dual((args2) => isChannel(args2[0]) && isChannel(args2[1]), (left, right, options) => fromTransformBracket(fnUntraced2(function* (upstream, _scope, forkedScope) {
|
|
14297
|
+
const strategy = options?.haltStrategy ?? "both";
|
|
14298
|
+
const queue = yield* bounded(0);
|
|
14299
|
+
yield* addFinalizer2(forkedScope, shutdown(queue));
|
|
14300
|
+
let done4 = 0;
|
|
14301
|
+
function onExit4(side, cause) {
|
|
14302
|
+
done4++;
|
|
14303
|
+
if (!isDoneCause(cause)) {
|
|
14304
|
+
return failCause4(queue, cause);
|
|
14305
|
+
}
|
|
14306
|
+
switch (strategy) {
|
|
14307
|
+
case "both": {
|
|
14308
|
+
return done4 === 2 ? failCause4(queue, cause) : void_3;
|
|
14309
|
+
}
|
|
14310
|
+
case "left":
|
|
14311
|
+
case "right": {
|
|
14312
|
+
return side === strategy ? failCause4(queue, cause) : void_3;
|
|
14313
|
+
}
|
|
14314
|
+
case "either": {
|
|
14315
|
+
return failCause4(queue, cause);
|
|
14316
|
+
}
|
|
14317
|
+
}
|
|
14318
|
+
}
|
|
14319
|
+
const runSide = (side, channel, scope3) => toTransform(channel)(upstream, scope3).pipe(flatMap3((pull) => pull.pipe(flatMap3((value) => offer(queue, value)), forever2)), onError2((cause) => andThen2(close(scope3, doneExitFromCause(cause)), onExit4(side, cause))), forkIn2(forkedScope));
|
|
14320
|
+
yield* runSide("left", left, forkUnsafe2(forkedScope));
|
|
14321
|
+
yield* runSide("right", right, forkUnsafe2(forkedScope));
|
|
14322
|
+
return take2(queue);
|
|
14323
|
+
})));
|
|
14238
14324
|
var unwrap = (channel) => fromTransform((upstream, scope3) => {
|
|
14239
14325
|
let pull;
|
|
14240
14326
|
return succeed6(suspend2(() => {
|
|
@@ -14244,7 +14330,7 @@ var unwrap = (channel) => fromTransform((upstream, scope3) => {
|
|
|
14244
14330
|
});
|
|
14245
14331
|
var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
|
|
14246
14332
|
|
|
14247
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14333
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/stream.js
|
|
14248
14334
|
var TypeId16 = "~effect/Stream";
|
|
14249
14335
|
var streamVariance = {
|
|
14250
14336
|
_R: identity,
|
|
@@ -14263,7 +14349,7 @@ var fromChannel = (channel) => {
|
|
|
14263
14349
|
return self;
|
|
14264
14350
|
};
|
|
14265
14351
|
|
|
14266
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14352
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Sink.js
|
|
14267
14353
|
var TypeId17 = "~effect/Sink";
|
|
14268
14354
|
var endVoid = /* @__PURE__ */ succeed6([void 0]);
|
|
14269
14355
|
var sinkVariance = {
|
|
@@ -14300,7 +14386,7 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
14300
14386
|
}), catchDone(() => endVoid)));
|
|
14301
14387
|
var unwrap2 = (effect2) => fromChannel2(unwrap(map3(effect2, toChannel)));
|
|
14302
14388
|
|
|
14303
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14389
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/rcRef.js
|
|
14304
14390
|
var TypeId18 = "~effect/RcRef";
|
|
14305
14391
|
var stateEmpty = {
|
|
14306
14392
|
_tag: "Empty"
|
|
@@ -14318,7 +14404,7 @@ var RcRefImpl = class {
|
|
|
14318
14404
|
constructor(acquire, services3, scope3, idleTimeToLive) {
|
|
14319
14405
|
__publicField(this, _a15, variance2);
|
|
14320
14406
|
__publicField(this, "state", stateEmpty);
|
|
14321
|
-
__publicField(this, "semaphore", /* @__PURE__ */
|
|
14407
|
+
__publicField(this, "semaphore", /* @__PURE__ */ makeUnsafe5(1));
|
|
14322
14408
|
__publicField(this, "acquire");
|
|
14323
14409
|
__publicField(this, "services");
|
|
14324
14410
|
__publicField(this, "scope");
|
|
@@ -14335,7 +14421,7 @@ var RcRefImpl = class {
|
|
|
14335
14421
|
var make10 = (options) => withFiber2((fiber2) => {
|
|
14336
14422
|
const services3 = fiber2.services;
|
|
14337
14423
|
const scope3 = get(services3, Scope);
|
|
14338
|
-
const ref = new RcRefImpl(options.acquire, services3, scope3, options.idleTimeToLive ?
|
|
14424
|
+
const ref = new RcRefImpl(options.acquire, services3, scope3, options.idleTimeToLive ? fromInputUnsafe(options.idleTimeToLive) : void 0);
|
|
14339
14425
|
return as2(addFinalizerExit(scope3, () => {
|
|
14340
14426
|
const close3 = ref.state._tag === "Acquired" ? close(ref.state.scope, void_2) : void_3;
|
|
14341
14427
|
ref.state = stateClosed;
|
|
@@ -14400,11 +14486,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
|
|
|
14400
14486
|
return state.value;
|
|
14401
14487
|
});
|
|
14402
14488
|
|
|
14403
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14489
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/RcRef.js
|
|
14404
14490
|
var make11 = make10;
|
|
14405
14491
|
var get3 = get2;
|
|
14406
14492
|
|
|
14407
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14493
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Stream.js
|
|
14408
14494
|
var TypeId19 = "~effect/Stream";
|
|
14409
14495
|
var isStream = (u) => hasProperty(u, TypeId19);
|
|
14410
14496
|
var fromChannel3 = fromChannel;
|
|
@@ -14414,6 +14500,7 @@ var toChannel2 = (stream) => stream.channel;
|
|
|
14414
14500
|
var callback3 = (f, options) => fromChannel3(callbackArray(f, options));
|
|
14415
14501
|
var empty4 = /* @__PURE__ */ fromChannel3(empty3);
|
|
14416
14502
|
var unwrap3 = (effect2) => fromChannel3(unwrap(map3(effect2, toChannel2)));
|
|
14503
|
+
var merge4 = /* @__PURE__ */ dual(2, (self, that, options) => fromChannel3(merge3(toChannel2(self), toChannel2(that), options)));
|
|
14417
14504
|
var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope3) => sync3(() => {
|
|
14418
14505
|
let done4;
|
|
14419
14506
|
let leftover;
|
|
@@ -14436,14 +14523,14 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
|
|
|
14436
14523
|
})));
|
|
14437
14524
|
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap3((upstream) => sink.transform(upstream, scope3)), map3(([a]) => a))));
|
|
14438
14525
|
|
|
14439
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14526
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/FileSystem.js
|
|
14440
14527
|
var TypeId20 = "~effect/platform/FileSystem";
|
|
14441
14528
|
var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
|
|
14442
14529
|
var FileSystem = /* @__PURE__ */ Service("effect/platform/FileSystem");
|
|
14443
14530
|
var make12 = (impl) => FileSystem.of({
|
|
14444
14531
|
...impl,
|
|
14445
14532
|
[TypeId20]: TypeId20,
|
|
14446
|
-
exists: (path3) => pipe(impl.access(path3), as2(true), catchTag2("PlatformError", (e) => e.reason._tag === "
|
|
14533
|
+
exists: (path3) => pipe(impl.access(path3), as2(true), catchTag2("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail6(e))),
|
|
14447
14534
|
readFileString: (path3, encoding) => flatMap3(impl.readFile(path3), (_) => try_2({
|
|
14448
14535
|
try: () => new TextDecoder(encoding).decode(_),
|
|
14449
14536
|
catch: (cause) => badArgument({
|
|
@@ -14463,12 +14550,12 @@ var make12 = (impl) => FileSystem.of({
|
|
|
14463
14550
|
const bytesToRead = options?.bytesToRead !== void 0 ? Size(options.bytesToRead) : void 0;
|
|
14464
14551
|
let totalBytesRead = BigInt(0);
|
|
14465
14552
|
const chunkSize = Size(options?.chunkSize ?? 64 * 1024);
|
|
14553
|
+
const readChunk = file2.readAlloc(chunkSize);
|
|
14466
14554
|
return fromPull2(succeed6(flatMap3(suspend2(() => {
|
|
14467
14555
|
if (bytesToRead !== void 0 && bytesToRead <= totalBytesRead) {
|
|
14468
14556
|
return done3();
|
|
14469
14557
|
}
|
|
14470
|
-
|
|
14471
|
-
return file2.readAlloc(toRead);
|
|
14558
|
+
return bytesToRead !== void 0 && bytesToRead - totalBytesRead < chunkSize ? file2.readAlloc(bytesToRead - totalBytesRead) : readChunk;
|
|
14472
14559
|
}), (buf) => {
|
|
14473
14560
|
if (!buf) return done3();
|
|
14474
14561
|
totalBytesRead += BigInt(buf.length);
|
|
@@ -14494,11 +14581,11 @@ var FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
14494
14581
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
|
|
14495
14582
|
};
|
|
14496
14583
|
|
|
14497
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14584
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Path.js
|
|
14498
14585
|
var TypeId21 = "~effect/platform/Path";
|
|
14499
14586
|
var Path = /* @__PURE__ */ Service("effect/Path");
|
|
14500
14587
|
|
|
14501
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14588
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
14502
14589
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
14503
14590
|
var ProcessId = /* @__PURE__ */ nominal();
|
|
14504
14591
|
var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -14515,7 +14602,7 @@ var HandleProto = {
|
|
|
14515
14602
|
var makeHandle = (params) => Object.assign(Object.create(HandleProto), params);
|
|
14516
14603
|
var ChildProcessSpawner = /* @__PURE__ */ Service("effect/process/ChildProcessSpawner");
|
|
14517
14604
|
|
|
14518
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
14605
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
14519
14606
|
var TypeId22 = "~effect/unstable/process/ChildProcess";
|
|
14520
14607
|
var Proto2 = {
|
|
14521
14608
|
...PipeInspectableProto,
|
|
@@ -14639,7 +14726,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
14639
14726
|
};
|
|
14640
14727
|
var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
|
|
14641
14728
|
|
|
14642
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
14729
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.7_effect@4.0.0-beta.7/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
14643
14730
|
var handleErrnoException = (module, method) => (err, [path3]) => {
|
|
14644
14731
|
let reason = "Unknown";
|
|
14645
14732
|
switch (err.code) {
|
|
@@ -14666,7 +14753,7 @@ var handleErrnoException = (module, method) => (err, [path3]) => {
|
|
|
14666
14753
|
break;
|
|
14667
14754
|
}
|
|
14668
14755
|
return systemError({
|
|
14669
|
-
|
|
14756
|
+
_tag: reason,
|
|
14670
14757
|
module,
|
|
14671
14758
|
method,
|
|
14672
14759
|
pathOrDescriptor: path3,
|
|
@@ -14675,7 +14762,7 @@ var handleErrnoException = (module, method) => (err, [path3]) => {
|
|
|
14675
14762
|
});
|
|
14676
14763
|
};
|
|
14677
14764
|
|
|
14678
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
14765
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.7_effect@4.0.0-beta.7/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
14679
14766
|
var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_) => [_]));
|
|
14680
14767
|
var fromWritableChannel = (options) => fromTransform((pull) => {
|
|
14681
14768
|
const writable = options.evaluate();
|
|
@@ -14718,9 +14805,10 @@ var fromReadableChannel = (options) => fromTransform((_, scope3) => readableToPu
|
|
|
14718
14805
|
}));
|
|
14719
14806
|
var readableToPullUnsafe = (options) => {
|
|
14720
14807
|
const readable = options.readable;
|
|
14808
|
+
if (readable.readableEnded) return succeed6(done3());
|
|
14721
14809
|
const closeOnDone = options.closeOnDone ?? true;
|
|
14722
14810
|
const exit3 = options.exit ?? make8(void 0);
|
|
14723
|
-
const latch =
|
|
14811
|
+
const latch = makeUnsafe4(false);
|
|
14724
14812
|
function onReadable() {
|
|
14725
14813
|
latch.openUnsafe();
|
|
14726
14814
|
}
|
|
@@ -14763,7 +14851,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
14763
14851
|
};
|
|
14764
14852
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
14765
14853
|
|
|
14766
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
14854
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.7_effect@4.0.0-beta.7/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
14767
14855
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
14768
14856
|
var toPlatformError = (method, error2, command) => {
|
|
14769
14857
|
const {
|
|
@@ -14890,13 +14978,13 @@ var make15 = /* @__PURE__ */ gen2(function* () {
|
|
|
14890
14978
|
switch (config.type) {
|
|
14891
14979
|
case "input": {
|
|
14892
14980
|
let sink = drain;
|
|
14893
|
-
if (
|
|
14981
|
+
if (nodeStream && "write" in nodeStream) {
|
|
14894
14982
|
sink = fromWritable({
|
|
14895
14983
|
evaluate: () => nodeStream,
|
|
14896
14984
|
onError: (error2) => toPlatformError(`fromWritable(fd${fd})`, toError(error2), command)
|
|
14897
14985
|
});
|
|
14898
14986
|
}
|
|
14899
|
-
if (
|
|
14987
|
+
if (config.stream) {
|
|
14900
14988
|
yield* forkScoped2(run(config.stream, sink));
|
|
14901
14989
|
}
|
|
14902
14990
|
inputSinks.set(fd, sink);
|
|
@@ -14904,13 +14992,13 @@ var make15 = /* @__PURE__ */ gen2(function* () {
|
|
|
14904
14992
|
}
|
|
14905
14993
|
case "output": {
|
|
14906
14994
|
let stream = empty4;
|
|
14907
|
-
if (
|
|
14995
|
+
if (nodeStream && "read" in nodeStream) {
|
|
14908
14996
|
stream = fromReadable({
|
|
14909
14997
|
evaluate: () => nodeStream,
|
|
14910
14998
|
onError: (error2) => toPlatformError(`fromReadable(fd${fd})`, toError(error2), command)
|
|
14911
14999
|
});
|
|
14912
15000
|
}
|
|
14913
|
-
if (
|
|
15001
|
+
if (config.sink) {
|
|
14914
15002
|
stream = transduce(stream, config.sink);
|
|
14915
15003
|
}
|
|
14916
15004
|
outputStreams.set(fd, stream);
|
|
@@ -14939,60 +15027,21 @@ var make15 = /* @__PURE__ */ gen2(function* () {
|
|
|
14939
15027
|
return succeed6(sink);
|
|
14940
15028
|
});
|
|
14941
15029
|
const setupChildOutputStreams = (command, childProcess, stdoutConfig, stderrConfig) => {
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
nodeStdout.pipe(combinedPassThrough, {
|
|
14958
|
-
end: false
|
|
14959
|
-
});
|
|
14960
|
-
nodeStdout.once("end", onStreamEnd);
|
|
14961
|
-
}
|
|
14962
|
-
if (isNotNull(nodeStderr) && isNotNull(stderrPassThrough)) {
|
|
14963
|
-
nodeStderr.pipe(stderrPassThrough);
|
|
14964
|
-
nodeStderr.pipe(combinedPassThrough, {
|
|
14965
|
-
end: false
|
|
14966
|
-
});
|
|
14967
|
-
nodeStderr.once("end", onStreamEnd);
|
|
14968
|
-
}
|
|
14969
|
-
if (totalStreams === 0) {
|
|
14970
|
-
combinedPassThrough.end();
|
|
14971
|
-
}
|
|
14972
|
-
let stdout = empty4;
|
|
14973
|
-
if (isNotNull(stdoutPassThrough)) {
|
|
14974
|
-
stdout = fromReadable({
|
|
14975
|
-
evaluate: () => stdoutPassThrough,
|
|
14976
|
-
onError: (error2) => toPlatformError("fromReadable(stdout)", toError(error2), command)
|
|
14977
|
-
});
|
|
14978
|
-
if (isSink(stdoutConfig.stream)) {
|
|
14979
|
-
stdout = transduce(stdout, stdoutConfig.stream);
|
|
14980
|
-
}
|
|
14981
|
-
}
|
|
14982
|
-
let stderr = empty4;
|
|
14983
|
-
if (isNotNull(stderrPassThrough)) {
|
|
14984
|
-
stderr = fromReadable({
|
|
14985
|
-
evaluate: () => stderrPassThrough,
|
|
14986
|
-
onError: (error2) => toPlatformError("fromReadable(stderr)", toError(error2), command)
|
|
14987
|
-
});
|
|
14988
|
-
if (isSink(stderrConfig.stream)) {
|
|
14989
|
-
stderr = transduce(stderr, stderrConfig.stream);
|
|
14990
|
-
}
|
|
14991
|
-
}
|
|
14992
|
-
const all3 = fromReadable({
|
|
14993
|
-
evaluate: () => combinedPassThrough,
|
|
14994
|
-
onError: (error2) => toPlatformError("fromReadable(all)", toError(error2), command)
|
|
14995
|
-
});
|
|
15030
|
+
let stdout = childProcess.stdout ? fromReadable({
|
|
15031
|
+
evaluate: () => childProcess.stdout,
|
|
15032
|
+
onError: (error2) => toPlatformError("fromReadable(stdout)", toError(error2), command)
|
|
15033
|
+
}) : empty4;
|
|
15034
|
+
let stderr = childProcess.stderr ? fromReadable({
|
|
15035
|
+
evaluate: () => childProcess.stderr,
|
|
15036
|
+
onError: (error2) => toPlatformError("fromReadable(stderr)", toError(error2), command)
|
|
15037
|
+
}) : empty4;
|
|
15038
|
+
if (isSink(stdoutConfig.stream)) {
|
|
15039
|
+
stdout = transduce(stdout, stdoutConfig.stream);
|
|
15040
|
+
}
|
|
15041
|
+
if (isSink(stderrConfig.stream)) {
|
|
15042
|
+
stderr = transduce(stderr, stderrConfig.stream);
|
|
15043
|
+
}
|
|
15044
|
+
const all3 = merge4(stdout, stderr);
|
|
14996
15045
|
return {
|
|
14997
15046
|
stdout,
|
|
14998
15047
|
stderr,
|
|
@@ -15398,7 +15447,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
15398
15447
|
return fail6(systemError({
|
|
15399
15448
|
module: "FileSystem",
|
|
15400
15449
|
method: "writeAll",
|
|
15401
|
-
|
|
15450
|
+
_tag: "WriteZero",
|
|
15402
15451
|
pathOrDescriptor: this.fd,
|
|
15403
15452
|
description: "write returned 0 bytes written"
|
|
15404
15453
|
}));
|
|
@@ -15526,7 +15575,7 @@ var watchNode = (path3) => callback3((queue) => acquireRelease2(sync3(() => {
|
|
|
15526
15575
|
watcher.on("error", (error2) => {
|
|
15527
15576
|
failCauseUnsafe(queue, fail5(systemError({
|
|
15528
15577
|
module: "FileSystem",
|
|
15529
|
-
|
|
15578
|
+
_tag: "Unknown",
|
|
15530
15579
|
method: "watch",
|
|
15531
15580
|
pathOrDescriptor: path3,
|
|
15532
15581
|
cause: error2
|
|
@@ -15591,7 +15640,7 @@ var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
15591
15640
|
}));
|
|
15592
15641
|
var layer2 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
15593
15642
|
|
|
15594
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
15643
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
15595
15644
|
var layer3 = layer2;
|
|
15596
15645
|
var fromFileUrl2 = (url) => try_2({
|
|
15597
15646
|
try: () => Url__namespace.fileURLToPath(url),
|
|
@@ -15616,10 +15665,10 @@ var layer4 = /* @__PURE__ */ succeed5(Path)({
|
|
|
15616
15665
|
toFileUrl: toFileUrl2
|
|
15617
15666
|
});
|
|
15618
15667
|
|
|
15619
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
15668
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodePath.js
|
|
15620
15669
|
var layer5 = layer4;
|
|
15621
15670
|
|
|
15622
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15671
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Stdio.js
|
|
15623
15672
|
var TypeId23 = "~effect/Stdio";
|
|
15624
15673
|
var Stdio = /* @__PURE__ */ Service(TypeId23);
|
|
15625
15674
|
var make16 = (options) => ({
|
|
@@ -15627,14 +15676,14 @@ var make16 = (options) => ({
|
|
|
15627
15676
|
...options
|
|
15628
15677
|
});
|
|
15629
15678
|
|
|
15630
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
15679
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.7_effect@4.0.0-beta.7/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
15631
15680
|
var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make16({
|
|
15632
15681
|
stdout: /* @__PURE__ */ fromWritable({
|
|
15633
15682
|
evaluate: () => process.stdout,
|
|
15634
15683
|
onError: (cause) => systemError({
|
|
15635
15684
|
module: "Stdio",
|
|
15636
15685
|
method: "stdout",
|
|
15637
|
-
|
|
15686
|
+
_tag: "Unknown",
|
|
15638
15687
|
cause
|
|
15639
15688
|
})
|
|
15640
15689
|
}),
|
|
@@ -15643,7 +15692,7 @@ var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make16({
|
|
|
15643
15692
|
onError: (cause) => systemError({
|
|
15644
15693
|
module: "Stdio",
|
|
15645
15694
|
method: "stderr",
|
|
15646
|
-
|
|
15695
|
+
_tag: "Unknown",
|
|
15647
15696
|
cause
|
|
15648
15697
|
})
|
|
15649
15698
|
}),
|
|
@@ -15652,17 +15701,17 @@ var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make16({
|
|
|
15652
15701
|
onError: (cause) => systemError({
|
|
15653
15702
|
module: "Stdio",
|
|
15654
15703
|
method: "stdin",
|
|
15655
|
-
|
|
15704
|
+
_tag: "Unknown",
|
|
15656
15705
|
cause
|
|
15657
15706
|
}),
|
|
15658
15707
|
closeOnDone: false
|
|
15659
15708
|
})
|
|
15660
15709
|
}));
|
|
15661
15710
|
|
|
15662
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
15711
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
15663
15712
|
var layer7 = layer6;
|
|
15664
15713
|
|
|
15665
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15714
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Struct.js
|
|
15666
15715
|
var omit = /* @__PURE__ */ dual(2, (self, keys) => {
|
|
15667
15716
|
return buildStruct(self, (k, v) => !keys.includes(k) ? [k, v] : void 0);
|
|
15668
15717
|
});
|
|
@@ -15679,7 +15728,7 @@ function buildStruct(source, f) {
|
|
|
15679
15728
|
return out;
|
|
15680
15729
|
}
|
|
15681
15730
|
|
|
15682
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15731
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/SchemaParser.js
|
|
15683
15732
|
var recurDefaults = /* @__PURE__ */ memoize((ast) => {
|
|
15684
15733
|
switch (ast._tag) {
|
|
15685
15734
|
case "Declaration": {
|
|
@@ -15713,7 +15762,7 @@ function makeEffect(schema) {
|
|
|
15713
15762
|
return parser(input, options?.parseOptions);
|
|
15714
15763
|
};
|
|
15715
15764
|
}
|
|
15716
|
-
function
|
|
15765
|
+
function makeUnsafe6(schema) {
|
|
15717
15766
|
const parser = makeEffect(schema);
|
|
15718
15767
|
return (input, options) => {
|
|
15719
15768
|
return runSync2(mapErrorEager2(parser(input, options), (issue) => new Error(issue.toString(), {
|
|
@@ -15803,7 +15852,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
15803
15852
|
};
|
|
15804
15853
|
});
|
|
15805
15854
|
|
|
15806
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15855
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/schema/schema.js
|
|
15807
15856
|
var TypeId24 = "~effect/Schema/Schema";
|
|
15808
15857
|
var SchemaProto = {
|
|
15809
15858
|
[TypeId24]: TypeId24,
|
|
@@ -15827,11 +15876,11 @@ function make17(ast, options) {
|
|
|
15827
15876
|
}
|
|
15828
15877
|
self.ast = ast;
|
|
15829
15878
|
self.rebuild = (ast2) => make17(ast2, options);
|
|
15830
|
-
self.makeUnsafe =
|
|
15879
|
+
self.makeUnsafe = makeUnsafe6(self);
|
|
15831
15880
|
return self;
|
|
15832
15881
|
}
|
|
15833
15882
|
|
|
15834
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15883
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/internal/schema/to-codec.js
|
|
15835
15884
|
function makeReorder(getPriority) {
|
|
15836
15885
|
return (types) => {
|
|
15837
15886
|
const indexMap = /* @__PURE__ */ new Map();
|
|
@@ -15852,7 +15901,7 @@ function makeReorder(getPriority) {
|
|
|
15852
15901
|
};
|
|
15853
15902
|
}
|
|
15854
15903
|
|
|
15855
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
15904
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Schema.js
|
|
15856
15905
|
var TypeId25 = TypeId24;
|
|
15857
15906
|
var SchemaErrorTypeId = "~effect/Schema/SchemaError";
|
|
15858
15907
|
var _a16;
|
|
@@ -15971,12 +16020,13 @@ function makeClass(Inherited, identifier3, struct2, annotations) {
|
|
|
15971
16020
|
const ClassTypeId2 = getClassTypeId(identifier3);
|
|
15972
16021
|
return _d = class extends Inherited {
|
|
15973
16022
|
constructor(...[input, options]) {
|
|
16023
|
+
const props = input ?? {};
|
|
15974
16024
|
if (options?.disableValidation) {
|
|
15975
|
-
super(
|
|
16025
|
+
super(props, options);
|
|
15976
16026
|
} else {
|
|
15977
|
-
const validated = struct2.makeUnsafe(
|
|
16027
|
+
const validated = struct2.makeUnsafe(props, options);
|
|
15978
16028
|
super({
|
|
15979
|
-
...
|
|
16029
|
+
...props,
|
|
15980
16030
|
...validated
|
|
15981
16031
|
}, {
|
|
15982
16032
|
...options,
|
|
@@ -16164,7 +16214,7 @@ function onSerializerEnsureArray(ast) {
|
|
|
16164
16214
|
}
|
|
16165
16215
|
}
|
|
16166
16216
|
|
|
16167
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
16217
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/Terminal.js
|
|
16168
16218
|
var TypeId26 = "~effect/platform/Terminal";
|
|
16169
16219
|
var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
16170
16220
|
var isQuitError = (u) => hasProperty(u, QuitErrorTypeId);
|
|
@@ -16242,10 +16292,10 @@ function defaultShouldQuit(input) {
|
|
|
16242
16292
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
16243
16293
|
}
|
|
16244
16294
|
|
|
16245
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
16295
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
16246
16296
|
var layer9 = layer8;
|
|
16247
16297
|
|
|
16248
|
-
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
16298
|
+
// node_modules/.pnpm/@effect+platform-node@4.0.0-beta.7_effect@4.0.0-beta.7_ioredis@5.9.3/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
16249
16299
|
var layer10 = /* @__PURE__ */ provideMerge(layer, /* @__PURE__ */ mergeAll2(layer3, layer5, layer7, layer9));
|
|
16250
16300
|
|
|
16251
16301
|
// src/Utils.ts
|
|
@@ -16851,16 +16901,6 @@ var methodNames = [
|
|
|
16851
16901
|
"patch",
|
|
16852
16902
|
"trace"
|
|
16853
16903
|
];
|
|
16854
|
-
var httpClientMethodNames = {
|
|
16855
|
-
get: "get",
|
|
16856
|
-
put: "put",
|
|
16857
|
-
post: "post",
|
|
16858
|
-
delete: "del",
|
|
16859
|
-
options: "options",
|
|
16860
|
-
head: "head",
|
|
16861
|
-
patch: "patch",
|
|
16862
|
-
trace: `make("TRACE")`
|
|
16863
|
-
};
|
|
16864
16904
|
var make22 = gen2(function* () {
|
|
16865
16905
|
const isV2 = (spec2) => "swagger" in spec2;
|
|
16866
16906
|
const convert2 = fn2("OpenApi.convert")(
|
|
@@ -17174,7 +17214,7 @@ ${clientErrorSource(name2)}`;
|
|
|
17174
17214
|
pipeline.push(
|
|
17175
17215
|
`onRequest([${singleSuccessCode ? `"2xx"` : successCodes}]${errorCodes ? `, ${JSON.stringify(errorCodes)}` : ""})`
|
|
17176
17216
|
);
|
|
17177
|
-
return `"${operation.id}": (${params}) => HttpClientRequest.${
|
|
17217
|
+
return `"${operation.id}": (${params}) => HttpClientRequest.${operation.method}(${operation.pathTemplate}).pipe(
|
|
17178
17218
|
${pipeline.join(",\n ")}
|
|
17179
17219
|
)`;
|
|
17180
17220
|
};
|
|
@@ -17230,28 +17270,30 @@ var commonSource = `const unexpectedStatus = (response: HttpClientResponse.HttpC
|
|
|
17230
17270
|
f,
|
|
17231
17271
|
)
|
|
17232
17272
|
: (f) => (request) => Effect.flatMap(httpClient.execute(request), f)`;
|
|
17233
|
-
var clientErrorSource = (name2) => `export interface ${name2}Error<Tag extends string, E> {
|
|
17273
|
+
var clientErrorSource = (name2) => `export interface ${name2}Error<Tag extends string, E> extends Error {
|
|
17234
17274
|
readonly _tag: Tag
|
|
17235
17275
|
readonly request: HttpClientRequest.HttpClientRequest
|
|
17236
17276
|
readonly response: HttpClientResponse.HttpClientResponse
|
|
17237
|
-
readonly
|
|
17277
|
+
readonly data: E
|
|
17238
17278
|
}
|
|
17239
17279
|
|
|
17240
17280
|
class ${name2}ErrorImpl extends Data.Error<{
|
|
17241
17281
|
_tag: string
|
|
17242
|
-
|
|
17282
|
+
data: any
|
|
17243
17283
|
request: HttpClientRequest.HttpClientRequest
|
|
17244
17284
|
response: HttpClientResponse.HttpClientResponse
|
|
17285
|
+
cause: unknown
|
|
17245
17286
|
}> {}
|
|
17246
17287
|
|
|
17247
17288
|
export const ${name2}Error = <Tag extends string, E>(
|
|
17248
17289
|
tag: Tag,
|
|
17249
|
-
|
|
17290
|
+
data: E,
|
|
17250
17291
|
response: HttpClientResponse.HttpClientResponse,
|
|
17251
17292
|
): ${name2}Error<Tag, E> =>
|
|
17252
17293
|
new ${name2}ErrorImpl({
|
|
17253
17294
|
_tag: tag,
|
|
17254
|
-
|
|
17295
|
+
data,
|
|
17296
|
+
cause: new Error(JSON.stringify(data)),
|
|
17255
17297
|
response,
|
|
17256
17298
|
request: response.request,
|
|
17257
17299
|
}) as any`;
|
|
@@ -17262,7 +17304,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
|
|
|
17262
17304
|
encode: (value) => value ? "true" : "false"
|
|
17263
17305
|
})));
|
|
17264
17306
|
|
|
17265
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17307
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/CliError.js
|
|
17266
17308
|
var TypeId28 = "~effect/cli/CliError";
|
|
17267
17309
|
var isCliError = (u) => hasProperty(u, TypeId28);
|
|
17268
17310
|
var _a18, _b9;
|
|
@@ -17399,7 +17441,7 @@ var ShowHelp = class extends (_b15 = /* @__PURE__ */ ErrorClass(`${TypeId28}/Sho
|
|
|
17399
17441
|
}
|
|
17400
17442
|
};
|
|
17401
17443
|
|
|
17402
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17444
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
17403
17445
|
var Ini = __toESM(require_ini(), 1);
|
|
17404
17446
|
var Toml = __toESM(require_toml(), 1);
|
|
17405
17447
|
var TypeId29 = "~effect/cli/Primitive";
|
|
@@ -17417,8 +17459,8 @@ var makePrimitive2 = (tag2, parse4) => Object.assign(Object.create(Proto5), {
|
|
|
17417
17459
|
});
|
|
17418
17460
|
var makeSchemaPrimitive = (tag2, schema) => {
|
|
17419
17461
|
const toCodecStringTree2 = toCodecStringTree(schema);
|
|
17420
|
-
const
|
|
17421
|
-
return makePrimitive2(tag2, (value) => mapError3(
|
|
17462
|
+
const decode = decodeUnknownEffect2(toCodecStringTree2);
|
|
17463
|
+
return makePrimitive2(tag2, (value) => mapError3(decode(value), (error2) => error2.message));
|
|
17422
17464
|
};
|
|
17423
17465
|
var boolean2 = /* @__PURE__ */ makeSchemaPrimitive("Boolean", Boolean3);
|
|
17424
17466
|
var string3 = /* @__PURE__ */ makePrimitive2("String", (value) => succeed6(value));
|
|
@@ -17505,7 +17547,7 @@ var getTypeName = (primitive) => {
|
|
|
17505
17547
|
};
|
|
17506
17548
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
17507
17549
|
|
|
17508
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17550
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/Param.js
|
|
17509
17551
|
var TypeId30 = "~effect/cli/Param";
|
|
17510
17552
|
var argumentKind = "argument";
|
|
17511
17553
|
var flagKind = "flag";
|
|
@@ -17784,7 +17826,7 @@ var getParamMetadata = (param) => {
|
|
|
17784
17826
|
});
|
|
17785
17827
|
};
|
|
17786
17828
|
|
|
17787
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17829
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/Flag.js
|
|
17788
17830
|
var string5 = (name2) => string4(flagKind, name2);
|
|
17789
17831
|
var boolean4 = (name2) => boolean3(flagKind, name2);
|
|
17790
17832
|
var choiceWithValue2 = (name2, choices) => choiceWithValue(flagKind, name2, choices);
|
|
@@ -17796,7 +17838,7 @@ var optional3 = (param) => optional2(param);
|
|
|
17796
17838
|
var withDefault3 = withDefault2;
|
|
17797
17839
|
var map8 = /* @__PURE__ */ dual(2, (self, f) => map7(self, f));
|
|
17798
17840
|
|
|
17799
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17841
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
17800
17842
|
var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
|
|
17801
17843
|
defaultValue: () => defaultFormatter2()
|
|
17802
17844
|
});
|
|
@@ -17938,7 +17980,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
17938
17980
|
return sections.join("\n");
|
|
17939
17981
|
};
|
|
17940
17982
|
|
|
17941
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
17983
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
17942
17984
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
17943
17985
|
var parseConfig = (config) => {
|
|
17944
17986
|
const orderedParams = [];
|
|
@@ -18002,7 +18044,7 @@ var reconstructTree = (tree, results) => {
|
|
|
18002
18044
|
}
|
|
18003
18045
|
};
|
|
18004
18046
|
|
|
18005
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18047
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
18006
18048
|
var TypeId31 = "~effect/cli/Command";
|
|
18007
18049
|
var toImpl = (self) => self;
|
|
18008
18050
|
var Proto7 = {
|
|
@@ -18122,7 +18164,7 @@ var getHelpForCommandPath = (command, commandPath) => {
|
|
|
18122
18164
|
return toImpl(currentCommand).buildHelpDoc(commandPath);
|
|
18123
18165
|
};
|
|
18124
18166
|
|
|
18125
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18167
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
|
|
18126
18168
|
var toFlagType = (single) => {
|
|
18127
18169
|
const tag2 = single.primitiveType._tag;
|
|
18128
18170
|
switch (tag2) {
|
|
@@ -18240,7 +18282,7 @@ var fromCommand = (cmd) => {
|
|
|
18240
18282
|
};
|
|
18241
18283
|
};
|
|
18242
18284
|
|
|
18243
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18285
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
|
|
18244
18286
|
var escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
18245
18287
|
var sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
18246
18288
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -18402,7 +18444,7 @@ var generate = (executableName, descriptor) => {
|
|
|
18402
18444
|
return lines.join("\n");
|
|
18403
18445
|
};
|
|
18404
18446
|
|
|
18405
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18447
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
|
|
18406
18448
|
var escapeFishString = (s) => s.replace(/'/g, "\\'");
|
|
18407
18449
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
18408
18450
|
if (parentPath.length === 0) {
|
|
@@ -18570,7 +18612,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
18570
18612
|
return lines.join("\n");
|
|
18571
18613
|
};
|
|
18572
18614
|
|
|
18573
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18615
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
|
|
18574
18616
|
var escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
18575
18617
|
var sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
18576
18618
|
var allForms = (flag) => {
|
|
@@ -18728,7 +18770,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
18728
18770
|
return lines.join("\n");
|
|
18729
18771
|
};
|
|
18730
18772
|
|
|
18731
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18773
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/completions/Completions.js
|
|
18732
18774
|
var generate4 = (executableName, shell, descriptor) => {
|
|
18733
18775
|
switch (shell) {
|
|
18734
18776
|
case "bash":
|
|
@@ -18740,7 +18782,7 @@ var generate4 = (executableName, shell, descriptor) => {
|
|
|
18740
18782
|
}
|
|
18741
18783
|
};
|
|
18742
18784
|
|
|
18743
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18785
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
18744
18786
|
function lex(argv) {
|
|
18745
18787
|
const endIndex = argv.indexOf("--");
|
|
18746
18788
|
if (endIndex === -1) {
|
|
@@ -18801,7 +18843,7 @@ var lexTokens = (args2) => {
|
|
|
18801
18843
|
return tokens;
|
|
18802
18844
|
};
|
|
18803
18845
|
|
|
18804
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18846
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
18805
18847
|
var levenshtein = (a, b) => {
|
|
18806
18848
|
const m = a.length;
|
|
18807
18849
|
const n = b.length;
|
|
@@ -18825,7 +18867,7 @@ var suggest = (input, candidates) => {
|
|
|
18825
18867
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
18826
18868
|
};
|
|
18827
18869
|
|
|
18828
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18870
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
|
|
18829
18871
|
var logLevelFlag = /* @__PURE__ */ choiceWithValue2("log-level", [
|
|
18830
18872
|
["all", "All"],
|
|
18831
18873
|
["trace", "Trace"],
|
|
@@ -18847,7 +18889,7 @@ var completionsFlag = /* @__PURE__ */ choice3("completions", ["bash", "zsh", "fi
|
|
|
18847
18889
|
/* @__PURE__ */ withDescription2("Print shell completion script for the given shell")
|
|
18848
18890
|
);
|
|
18849
18891
|
|
|
18850
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
18892
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
18851
18893
|
var getCommandPath = (parsedInput) => parsedInput.subcommand ? [parsedInput.subcommand.name, ...getCommandPath(parsedInput.subcommand.parsedInput)] : [];
|
|
18852
18894
|
var extractBuiltInOptions = (tokens) => gen2(function* () {
|
|
18853
18895
|
const {
|
|
@@ -19113,7 +19155,7 @@ var scanCommandLevel = (tokens, context) => {
|
|
|
19113
19155
|
return toLeafResult(state);
|
|
19114
19156
|
};
|
|
19115
19157
|
|
|
19116
|
-
// node_modules/.pnpm/effect@4.0.0-beta.
|
|
19158
|
+
// node_modules/.pnpm/effect@4.0.0-beta.7/node_modules/effect/dist/unstable/cli/Command.js
|
|
19117
19159
|
var make24 = (name2, config, handler) => {
|
|
19118
19160
|
const parsedConfig = parseConfig(config ?? {});
|
|
19119
19161
|
return makeCommand({
|