@kitman-sh/cli 0.10.53 → 0.10.55

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.
Files changed (34) hide show
  1. package/dist/{chunk-x9dhxfts.js → chunk-148mjppg.js} +5 -5
  2. package/dist/{chunk-pp1p3g6e.js → chunk-4kssrezn.js} +6 -1
  3. package/dist/{chunk-ctasxxz5.js → chunk-5j3cxsnp.js} +10 -10
  4. package/dist/{chunk-7thnf14y.js → chunk-5y5axze6.js} +609 -6
  5. package/dist/{chunk-mbctzx7e.js → chunk-61k67vxh.js} +76 -1389
  6. package/dist/{chunk-arvwar2c.js → chunk-7evwar6b.js} +1 -1
  7. package/dist/{chunk-mej2bx5n.js → chunk-99ver3za.js} +4 -4
  8. package/dist/{chunk-jagzz148.js → chunk-axdmbr61.js} +26 -26
  9. package/dist/{chunk-p6spvbwq.js → chunk-dgb6s5vq.js} +482 -100
  10. package/dist/{chunk-v290mf51.js → chunk-dj7pp4w4.js} +179 -35
  11. package/dist/{chunk-eg8f5ncv.js → chunk-dkpqwk0q.js} +7 -7
  12. package/dist/{chunk-r8p3nxcp.js → chunk-eerh2t20.js} +10 -10
  13. package/dist/{chunk-jafetf7z.js → chunk-g53wn1q8.js} +2 -2
  14. package/dist/chunk-g7vk5tjp.js +1109 -0
  15. package/dist/{chunk-vjmz23rs.js → chunk-gwcqz1bj.js} +1 -1
  16. package/dist/{chunk-wh1pa2aa.js → chunk-m32wb6t0.js} +245 -108
  17. package/dist/{chunk-3bj7sc3v.js → chunk-mmetyep8.js} +7 -7
  18. package/dist/{chunk-30397r95.js → chunk-mtgkvbk4.js} +4 -4
  19. package/dist/{chunk-dzh9e6n2.js → chunk-q0yna8sw.js} +52 -35
  20. package/dist/{chunk-6vns3ej0.js → chunk-rjfxnk05.js} +5 -5
  21. package/dist/{chunk-g5bs3f6z.js → chunk-twp7aprz.js} +4 -6
  22. package/dist/{chunk-x0b92bjb.js → chunk-vtn088tq.js} +6 -6
  23. package/dist/{chunk-b6thzgc9.js → chunk-wczs5vrq.js} +2 -2
  24. package/dist/{chunk-11p4wf6n.js → chunk-xgwjcq4z.js} +3 -3
  25. package/dist/egress-proxy.ts +138 -21
  26. package/dist/half-close-relay.ts +125 -0
  27. package/dist/index.js +4 -4
  28. package/dist/tcp-forwarder.ts +29 -0
  29. package/package.json +1 -1
  30. package/dist/chunk-1mc9vgcr.js +0 -39
  31. package/dist/chunk-jfvq7s24.js +0 -145
  32. package/dist/chunk-txwt6r25.js +0 -1731
  33. package/dist/chunk-vyv0p5eq.js +0 -3183
  34. package/dist/chunk-z821b2gp.js +0 -164
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
1331
1331
  });
1332
1332
 
1333
1333
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
1334
- var make15 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1334
+ var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1335
1335
  var isStrictEquivalent = (x, y) => x === y;
1336
1336
  var strictEqual = () => isStrictEquivalent;
1337
1337
  function Tuple(elements) {
1338
- return make15((self, that) => {
1338
+ return make14((self, that) => {
1339
1339
  if (self.length !== that.length) {
1340
1340
  return false;
1341
1341
  }
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
1348
1348
  });
1349
1349
  }
1350
1350
  function Array_(item) {
1351
- return make15((self, that) => {
1351
+ return make14((self, that) => {
1352
1352
  if (self.length !== that.length)
1353
1353
  return false;
1354
1354
  for (let i = 0;i < self.length; i++) {
@@ -1578,7 +1578,7 @@ var ServiceProto = {
1578
1578
  return self;
1579
1579
  },
1580
1580
  context(self) {
1581
- return make16(this, self);
1581
+ return make15(this, self);
1582
1582
  },
1583
1583
  use(f) {
1584
1584
  return withFiber((fiber) => f(get4(fiber.context, this)));
@@ -1682,7 +1682,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
1682
1682
  var isReference = (u) => !!u[ReferenceTypeId];
1683
1683
  var empty3 = () => emptyContext2;
1684
1684
  var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
1685
- var make16 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1685
+ var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
1686
1686
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
1687
1687
  var addUnsafe = (self, key, service) => {
1688
1688
  const impl = self;
@@ -3022,7 +3022,7 @@ class FiberImpl {
3022
3022
  }
3023
3023
  let cause = causeInterrupt(fiberId);
3024
3024
  if (this.cache.stackFrame) {
3025
- cause = causeAnnotate(cause, make16(StackTraceKey, this.cache.stackFrame));
3025
+ cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
3026
3026
  }
3027
3027
  if (annotations) {
3028
3028
  cause = causeAnnotate(cause, annotations);
@@ -3631,7 +3631,6 @@ var asSome = (self) => map7(self, some);
3631
3631
  var andThen = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect2(f) ? returnPayload : andThenCont, f));
3632
3632
  var tap = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect2(f) ? tapEffectCont : tapCont, f));
3633
3633
  var asVoid2 = (self) => new ContImpl(self, returnPayload, exitVoid);
3634
- var sandbox2 = (self) => catchCause(self, fail2);
3635
3634
  var raceAllFirst = (all, options) => withFiber((parent) => {
3636
3635
  const fibers = new Set;
3637
3636
  onExitUnsafe(parent, () => fibers.size === 0 ? undefined : fiberInterruptAll(fibers));
@@ -5120,7 +5119,7 @@ var DeferredImpl = function() {
5120
5119
  };
5121
5120
  DeferredImpl.prototype = DeferredProto;
5122
5121
  var makeUnsafe5 = () => new DeferredImpl;
5123
- var make17 = () => sync(() => makeUnsafe5());
5122
+ var make16 = () => sync(() => makeUnsafe5());
5124
5123
  var _await = (self) => callback2((resume) => {
5125
5124
  if (self.effect)
5126
5125
  return resume(self.effect);
@@ -5264,13 +5263,13 @@ class CurrentMemoMap extends (/* @__PURE__ */ Service2()("effect/Layer/CurrentMe
5264
5263
  }
5265
5264
  }
5266
5265
  var buildWithMemoMap = /* @__PURE__ */ dual(3, (self, memoMap, scope) => provideService2(map7(suspend2(() => self.build(memoMap, scope)), add(CurrentMemoMap, memoMap)), CurrentMemoMap, memoMap));
5267
- var build2 = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), getUnsafe(fiber.context, Scope)));
5266
+ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), getUnsafe(fiber.context, Scope)));
5268
5267
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
5269
5268
  var succeed5 = function() {
5270
5269
  if (arguments.length === 1) {
5271
- return (resource) => succeedContext(make16(arguments[0], resource));
5270
+ return (resource) => succeedContext(make15(arguments[0], resource));
5272
5271
  }
5273
- return succeedContext(make16(arguments[0], arguments[1]));
5272
+ return succeedContext(make15(arguments[0], arguments[1]));
5274
5273
  };
5275
5274
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
5276
5275
  var effect = function() {
@@ -5279,7 +5278,7 @@ var effect = function() {
5279
5278
  }
5280
5279
  return effectImpl(arguments[0], arguments[1]);
5281
5280
  };
5282
- var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make16(service, value)));
5281
+ var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
5283
5282
  var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
5284
5283
  var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
5285
5284
  var mergeAllEffect = (layers, memoMap, scope) => {
@@ -5306,7 +5305,6 @@ var makeDieReason = (defect) => new Die(defect);
5306
5305
  var makeInterruptReason2 = makeInterruptReason;
5307
5306
  var hasInterruptsOnly = hasInterruptsOnly2;
5308
5307
  var map = causeMap;
5309
- var combine2 = causeCombine;
5310
5308
  var squash = causeSquash;
5311
5309
  var findError = findError2;
5312
5310
  var findErrorOption = findErrorOption2;
@@ -5525,7 +5523,6 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map7(toStep(s
5525
5523
  });
5526
5524
  })));
5527
5525
  var forever3 = /* @__PURE__ */ spaced(zero);
5528
- var setInputType = () => (self) => self;
5529
5526
 
5530
5527
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5531
5528
  var provideLayer = (self, layer, options) => scopedWith2((scope) => flatMap2(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext(self, context)));
@@ -5643,7 +5640,6 @@ var tapError2 = tapError;
5643
5640
  var tapCause = tapCause2;
5644
5641
  var retry = retry2;
5645
5642
  var retryOrElse = retryOrElse2;
5646
- var sandbox = sandbox2;
5647
5643
  var ignore = ignore2;
5648
5644
  var ignoreCause = ignoreCause2;
5649
5645
  var orElseSucceed = orElseSucceed2;
@@ -5860,79 +5856,19 @@ var getCode = (charCode) => {
5860
5856
  return codes[charCode];
5861
5857
  };
5862
5858
 
5863
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/encoding/Base64Url.js
5864
- var encode3 = (input) => encode2(input).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
5865
- var encodePadded = (input) => encode2(input).replace(/\+/g, "-").replace(/\//g, "_");
5866
- var decode2 = (str) => {
5867
- const stripped = str.replace(/[\n\r]/g, "");
5868
- const length = stripped.length;
5869
- const padded = stripped.endsWith("=");
5870
- if (padded ? length % 4 !== 0 : length % 4 === 1) {
5871
- return fail3(new EncodingError({
5872
- module: "Base64Url",
5873
- kind: "Decode",
5874
- input: stripped,
5875
- message: padded ? `Padded length should be a multiple of 4, but is ${length}` : `Unpadded length should not be 1 more than a multiple of 4, but is ${length}`
5876
- }));
5877
- }
5878
- if (!/^[-_A-Z0-9]*?={0,2}$/i.test(stripped)) {
5879
- return fail3(new EncodingError({
5880
- module: "Base64Url",
5881
- kind: "Decode",
5882
- input: stripped,
5883
- message: "Invalid input"
5884
- }));
5885
- }
5886
- const end = !padded ? length : stripped.charCodeAt(length - 2) === 61 ? length - 2 : length - 1;
5887
- const fullEnd = end & ~3;
5888
- const result = new Uint8Array(Math.floor(end * 3 / 4));
5889
- let j = 0;
5890
- for (let i = 0;i < fullEnd; i += 4) {
5891
- const a = codes2[stripped.charCodeAt(i)];
5892
- const b = codes2[stripped.charCodeAt(i + 1)];
5893
- const c = codes2[stripped.charCodeAt(i + 2)];
5894
- const d = codes2[stripped.charCodeAt(i + 3)];
5895
- result[j++] = a << 2 | b >> 4;
5896
- result[j++] = b << 4 | c >> 2;
5897
- result[j++] = c << 6 | d;
5898
- }
5899
- if (end > fullEnd) {
5900
- const a = codes2[stripped.charCodeAt(fullEnd)];
5901
- const b = codes2[stripped.charCodeAt(fullEnd + 1)];
5902
- result[j++] = a << 2 | b >> 4;
5903
- if (end - fullEnd === 3)
5904
- result[j] = b << 4 | codes2[stripped.charCodeAt(fullEnd + 2)] >> 2;
5905
- }
5906
- return succeed(result);
5907
- };
5908
- var alphabet2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
5909
- var codes2 = /* @__PURE__ */ new Uint8Array(128);
5910
- for (let i = 0;i < alphabet2.length; i++)
5911
- codes2[/* @__PURE__ */ alphabet2.charCodeAt(i)] = i;
5912
- var decodeString = (str) => map5(decode2(str), (_) => decoder2.decode(_));
5913
- var decoder2 = /* @__PURE__ */ new TextDecoder;
5914
-
5915
5859
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
5916
5860
  function resolve(ast) {
5917
5861
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
5918
5862
  }
5919
- function resolveAt(key) {
5920
- return (ast) => resolve(ast)?.[key];
5921
- }
5922
5863
  var STRUCTURAL_ANNOTATION_KEY = "~structural";
5923
- var IDENTIFIER_FALLBACK_KEY = "~identifier";
5924
5864
  var SENTINELS_ANNOTATION_KEY = "~sentinels";
5925
5865
  var CONSTRUCTOR_ANNOTATION_KEY = "~constructor";
5926
- var jsonSchemaAnnotationKeys = ["title", "description", "default", "examples", "readOnly", "writeOnly", "format", "contentEncoding", "contentMediaType", "contentSchema"];
5927
- var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
5928
- var resolveIdentifierFallback = /* @__PURE__ */ resolveAt(IDENTIFIER_FALLBACK_KEY);
5929
5866
  var getExpected = /* @__PURE__ */ memoize((ast) => {
5930
5867
  const identifier = resolve(ast)?.identifier;
5931
5868
  if (typeof identifier === "string")
5932
5869
  return identifier;
5933
5870
  return ast.getExpected(getExpected);
5934
5871
  });
5935
- var annotationExcludedKeys = /* @__PURE__ */ new Set([SENTINELS_ANNOTATION_KEY, STRUCTURAL_ANNOTATION_KEY, "representation", "arbitraryConstraint", "toJsonSchema", "toCode", "toEquivalence", "toFormatter", "toCodec", "toCodecJson", "toCodecStringTree", "toCodecIso", "toCodecArbitrary"]);
5936
5872
 
5937
5873
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/parser.js
5938
5874
  var missing = /* @__PURE__ */ Symbol();
@@ -6243,7 +6179,7 @@ var passthrough_ = /* @__PURE__ */ makeGetter({
6243
6179
  function passthrough() {
6244
6180
  return passthrough_;
6245
6181
  }
6246
- function transform(f) {
6182
+ function transform2(f) {
6247
6183
  return makeGetter({
6248
6184
  _tag: "Transform",
6249
6185
  transform: f
@@ -6277,13 +6213,13 @@ function withDefault(defaultValue) {
6277
6213
  });
6278
6214
  }
6279
6215
  function String2() {
6280
- return transform(globalThis.String);
6216
+ return transform2(globalThis.String);
6281
6217
  }
6282
6218
  function Number3() {
6283
- return transform(globalThis.Number);
6219
+ return transform2(globalThis.Number);
6284
6220
  }
6285
6221
  function Date3() {
6286
- return transform((u) => new globalThis.Date(u));
6222
+ return transform2((u) => new globalThis.Date(u));
6287
6223
  }
6288
6224
  function parseJson(options) {
6289
6225
  return transformEffect((input, parseOptions) => try_2({
@@ -6308,24 +6244,13 @@ function stringifyJson(options) {
6308
6244
  }));
6309
6245
  }
6310
6246
  function encodeBase64() {
6311
- return transform(encode2);
6312
- }
6313
- function encodeBase64Url(options) {
6314
- return transform(options?.padding ? encodePadded : encode3);
6247
+ return transform2(encode2);
6315
6248
  }
6316
6249
  function decodeBase64() {
6317
6250
  return transformEffect((input, options) => mapErrorEager2(fromResult(decode(input)), () => new InvalidValue({
6318
6251
  expected: "a valid Base64 string"
6319
6252
  }, input, options)));
6320
6253
  }
6321
- function decodeBase64UrlString() {
6322
- return transformEffect((input, options) => match3(decodeString(input), {
6323
- onFailure: () => fail7(new InvalidValue({
6324
- expected: "a valid Base64Url string"
6325
- }, input, options)),
6326
- onSuccess: succeed6
6327
- }));
6328
- }
6329
6254
 
6330
6255
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/content.js
6331
6256
  var ContentTypeId = /* @__PURE__ */ Symbol.for("~effect/Schema/content");
@@ -6335,9 +6260,6 @@ function setContent(operation, content) {
6335
6260
  });
6336
6261
  return operation;
6337
6262
  }
6338
- function getContent(operation) {
6339
- return operation[ContentTypeId];
6340
- }
6341
6263
 
6342
6264
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
6343
6265
  var TypeId9 = "~effect/SchemaTransformation/Transformation";
@@ -6367,15 +6289,15 @@ var makeTransformation = (options) => {
6367
6289
  function transformEffect2(options) {
6368
6290
  return new Transformation(transformEffect(options.decode), transformEffect(options.encode));
6369
6291
  }
6370
- function transform2(options) {
6371
- return new Transformation(transform(options.decode), transform(options.encode));
6292
+ function transform(options) {
6293
+ return new Transformation(transform2(options.decode), transform2(options.encode));
6372
6294
  }
6373
6295
  var passthrough_2 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough(), /* @__PURE__ */ passthrough());
6374
6296
  function passthrough3() {
6375
6297
  return passthrough_2;
6376
6298
  }
6377
6299
  var numberFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number3(), /* @__PURE__ */ String2());
6378
- var dateFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Date3(), /* @__PURE__ */ transform(formatDate));
6300
+ var dateFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Date3(), /* @__PURE__ */ transform2(formatDate));
6379
6301
  var isJsonError = (input) => isObject2(input) && typeof input["message"] === "string";
6380
6302
  var decodeJsonError = (input) => {
6381
6303
  const hasCause = Object.hasOwn(input, "cause");
@@ -6426,7 +6348,7 @@ var makeEncodeDefect = (options) => {
6426
6348
  return encode;
6427
6349
  };
6428
6350
  var decodeDefect = (input) => isJsonError(input) ? decodeJsonError(input) : input;
6429
- var defectFromJson = (options) => transform2({
6351
+ var defectFromJson = (options) => transform({
6430
6352
  decode: decodeDefect,
6431
6353
  encode: makeEncodeDefect(options)
6432
6354
  });
@@ -6559,9 +6481,9 @@ var Undefined = class extends ASTNodeImpl {
6559
6481
  return "undefined";
6560
6482
  }
6561
6483
  };
6562
- var undefinedToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => {
6484
+ var undefinedToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform2(() => {
6563
6485
  return;
6564
- }), /* @__PURE__ */ transform(() => null)));
6486
+ }), /* @__PURE__ */ transform2(() => null)));
6565
6487
  var undefined_3 = /* @__PURE__ */ new Undefined;
6566
6488
  var Void2 = class extends ASTNodeImpl {
6567
6489
  _tag = "Void";
@@ -6625,7 +6547,7 @@ var Literal2 = class extends ASTNodeImpl {
6625
6547
  };
6626
6548
  function literalToString(ast) {
6627
6549
  const literalAsString = globalThis.String(ast.literal);
6628
- return replaceEncoding(ast, [new Link(new Literal2(literalAsString), new Transformation(transform(() => ast.literal), transform(() => literalAsString)))]);
6550
+ return replaceEncoding(ast, [new Link(new Literal2(literalAsString), new Transformation(transform2(() => ast.literal), transform2(() => literalAsString)))]);
6629
6551
  }
6630
6552
  var String5 = class extends ASTNodeImpl {
6631
6553
  _tag = "String";
@@ -7252,9 +7174,6 @@ function struct(fields, checks, annotations) {
7252
7174
  function getAST(self) {
7253
7175
  return self.ast;
7254
7176
  }
7255
- function tuple(elements, checks = undefined) {
7256
- return new Arrays(false, elements.map((e) => e.ast), [], undefined, checks);
7257
- }
7258
7177
  function union(members, options, checks) {
7259
7178
  return new Union2(members.map(getAST), options, undefined, checks);
7260
7179
  }
@@ -7769,7 +7688,7 @@ function isFinite2(annotations) {
7769
7688
  });
7770
7689
  }
7771
7690
  var finite = /* @__PURE__ */ appendChecks(number2, [/* @__PURE__ */ isFinite2()]);
7772
- var numberToJson = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union2([finite, nonFiniteLiterals]), /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number3(), /* @__PURE__ */ transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
7691
+ var numberToJson = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union2([finite, nonFiniteLiterals]), /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number3(), /* @__PURE__ */ transform2((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
7773
7692
  function isPattern2(regExp, annotations) {
7774
7693
  const copy = new globalThis.RegExp(regExp);
7775
7694
  const payload = {
@@ -7981,9 +7900,6 @@ function record(key, value) {
7981
7900
  function isOptional(ast) {
7982
7901
  return ast.context?.isOptional ?? false;
7983
7902
  }
7984
- function isMutable(ast) {
7985
- return ast.context?.isMutable ?? false;
7986
- }
7987
7903
  function isStructuralCheck(check) {
7988
7904
  return check.annotations?.[STRUCTURAL_ANNOTATION_KEY] === true || check._tag === "FilterGroup" && check.checks.every(isStructuralCheck);
7989
7905
  }
@@ -8093,7 +8009,6 @@ var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempoten
8093
8009
  return ast.recur(parameterFromString);
8094
8010
  }
8095
8011
  });
8096
- var STRING_PATTERN = "[\\s\\S]*?";
8097
8012
  var isStringFiniteRegExp = /* @__PURE__ */ new globalThis.RegExp(`^${FINITE_PATTERN}$`);
8098
8013
  var isStringNumberRegExp = /* @__PURE__ */ new globalThis.RegExp(`^(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)$`);
8099
8014
  function isStringFinite(annotations) {
@@ -8589,7 +8504,7 @@ function decodeUnknownOption2(schema, options) {
8589
8504
  return asOption(decodeUnknownEffect(schema, options));
8590
8505
  }
8591
8506
  var decodeOption2 = decodeUnknownOption2;
8592
- function encodeUnknownEffect2(schema, options) {
8507
+ function encodeUnknownEffect(schema, options) {
8593
8508
  const parser = run(flip2(schema.ast));
8594
8509
  return options === undefined ? parser : (input, overrideOptions) => parser(input, mergeParseOptions(options, overrideOptions));
8595
8510
  }
@@ -8760,116 +8675,6 @@ function make5(ast, options) {
8760
8675
  return self;
8761
8676
  }
8762
8677
 
8763
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/jsonSchema.js
8764
- function getSubschemaKind(keyword) {
8765
- switch (keyword) {
8766
- case "$defs":
8767
- case "properties":
8768
- case "patternProperties":
8769
- case "dependentSchemas":
8770
- return "map";
8771
- case "allOf":
8772
- case "anyOf":
8773
- case "oneOf":
8774
- case "prefixItems":
8775
- return "array";
8776
- case "not":
8777
- case "additionalProperties":
8778
- case "propertyNames":
8779
- case "unevaluatedProperties":
8780
- case "items":
8781
- case "contains":
8782
- case "unevaluatedItems":
8783
- case "if":
8784
- case "then":
8785
- case "else":
8786
- case "contentSchema":
8787
- return "schema";
8788
- }
8789
- }
8790
-
8791
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonPointer.js
8792
- function escapeToken(token) {
8793
- return token.replace(/~/g, "~0").replace(/\//g, "~1");
8794
- }
8795
- function unescapeToken(token) {
8796
- return token.replace(/~1/g, "/").replace(/~0/g, "~");
8797
- }
8798
- function formatUriFragmentToken(token) {
8799
- return encodeURI(escapeToken(token)).replace(/#/g, "%23");
8800
- }
8801
- function decodeUriFragment(fragment) {
8802
- if (fragment.length === 0 || fragment === "#")
8803
- return "";
8804
- if (!fragment.startsWith("#"))
8805
- return;
8806
- const encoded = fragment.slice(1);
8807
- try {
8808
- if (encodeURI(encoded).replace(/%25/g, "%").replace(/#/g, "%23") !== encoded)
8809
- return;
8810
- const pointer = decodeURIComponent(encoded);
8811
- return pointer.startsWith("/") && !/~(?:[^01]|$)/.test(pointer) ? pointer : undefined;
8812
- } catch {
8813
- return;
8814
- }
8815
- }
8816
-
8817
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
8818
- function transformSchema(node, transform) {
8819
- return walk(node, false, true);
8820
- function walk(node, inheritedResource, isRoot = false) {
8821
- if (!isObject2(node))
8822
- return node;
8823
- const inEmbeddedResource = inheritedResource || !isRoot && createsResource(node.$id);
8824
- const out = {};
8825
- for (const key of Object.keys(node)) {
8826
- const value = node[key];
8827
- let transformed = value;
8828
- switch (getSubschemaKind(key)) {
8829
- case "map":
8830
- transformed = mapObject(value, (value) => walk(value, inEmbeddedResource)) ?? value;
8831
- break;
8832
- case "array":
8833
- transformed = Array.isArray(value) ? value.map((value) => walk(value, inEmbeddedResource)) : value;
8834
- break;
8835
- case "schema":
8836
- transformed = walk(value, inEmbeddedResource);
8837
- }
8838
- assignProperty(out, key, transformed);
8839
- }
8840
- transform(out, inEmbeddedResource);
8841
- return out;
8842
- }
8843
- }
8844
- function rewriteRefs(schema, rewrite) {
8845
- return transformSchema(schema, (schema) => {
8846
- rewriteSchemaRef(schema, rewrite);
8847
- });
8848
- }
8849
- function rewriteSchemaRef(schema, rewrite) {
8850
- if (typeof schema.$ref === "string") {
8851
- assignProperty(schema, "$ref", rewrite(schema.$ref, "$ref"));
8852
- }
8853
- if (typeof schema.$dynamicRef === "string") {
8854
- assignProperty(schema, "$dynamicRef", rewrite(schema.$dynamicRef, "$dynamicRef"));
8855
- }
8856
- }
8857
- function mapObject(value, f) {
8858
- if (!isObject2(value))
8859
- return;
8860
- const out = {};
8861
- for (const key of Object.keys(value)) {
8862
- assignProperty(out, key, f(value[key], key));
8863
- }
8864
- return out;
8865
- }
8866
- function createsResource(id) {
8867
- return typeof id === "string" && id.length > 0 && id[0] !== "#";
8868
- }
8869
- var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
8870
- var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
8871
- var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
8872
-
8873
8678
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toCodec.js
8874
8679
  function toCodecJson2(schema) {
8875
8680
  return make5(toCodecJsonAST(schema.ast), {
@@ -9028,9 +8833,9 @@ function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
9028
8833
  }
9029
8834
  return ast;
9030
8835
  }
9031
- var nullToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Literal2("null"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => null), /* @__PURE__ */ transform(() => "null")));
9032
- var booleanToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union2([/* @__PURE__ */ new Literal2("true"), /* @__PURE__ */ new Literal2("false")]), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((s) => s === "true"), /* @__PURE__ */ String2()));
9033
- var arrayFromSingleTransformation = /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((input) => typeof input === "string" ? [input] : input), /* @__PURE__ */ passthrough());
8836
+ var nullToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Literal2("null"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform2(() => null), /* @__PURE__ */ transform2(() => "null")));
8837
+ var booleanToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union2([/* @__PURE__ */ new Literal2("true"), /* @__PURE__ */ new Literal2("false")]), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform2((s) => s === "true"), /* @__PURE__ */ String2()));
8838
+ var arrayFromSingleTransformation = /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform2((input) => typeof input === "string" ? [input] : input), /* @__PURE__ */ passthrough());
9034
8839
  var isCodecArrayFromSingleLink = (link) => link.transformation === arrayFromSingleTransformation;
9035
8840
  var toCodecStringTreeAST = /* @__PURE__ */ makeCodecDerivation((ast, recur) => toCodecStringTreeASTStep(ast, recur, (ast) => {
9036
8841
  throw new globalThis.Error("Missing structural codec for StringTree", {
@@ -9040,1108 +8845,6 @@ var toCodecStringTreeAST = /* @__PURE__ */ makeCodecDerivation((ast, recur) => t
9040
8845
  stopAt: isCodecArrayFromSingleLink
9041
8846
  });
9042
8847
 
9043
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RegExp.js
9044
- var RegExp2 = globalThis.RegExp;
9045
- var escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
9046
-
9047
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/errors.js
9048
- function errorWithPath(message, path) {
9049
- if (path.length > 0) {
9050
- message += `
9051
- at ${formatPath(path)}`;
9052
- }
9053
- return new Error(message);
9054
- }
9055
-
9056
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toJsonSchemaDocument.js
9057
- function formatDefinitionReference(key) {
9058
- return `#/$defs/${formatUriFragmentToken(key)}`;
9059
- }
9060
- var jsonSchemaAnnotationExcludedKeys = /* @__PURE__ */ new Set([...annotationExcludedKeys, IDENTIFIER_FALLBACK_KEY, ...jsonSchemaAnnotationKeys]);
9061
- function collectJsonSchemaAnnotations(annotations, options) {
9062
- if (annotations === undefined)
9063
- return;
9064
- const out = {};
9065
- for (const key of ["title", "description", "format", "contentEncoding", "contentMediaType"]) {
9066
- const value = annotations[key];
9067
- if (typeof value === "string")
9068
- out[key] = value;
9069
- }
9070
- for (const key of ["readOnly", "writeOnly"]) {
9071
- const value = annotations[key];
9072
- if (typeof value === "boolean")
9073
- out[key] = value;
9074
- }
9075
- const expected = annotations.expected;
9076
- if (out.description === undefined && options?.generateDescriptions === true && typeof expected === "string") {
9077
- out.description = expected;
9078
- }
9079
- const defaultValue = annotations.default;
9080
- if (isJson(defaultValue))
9081
- out.default = defaultValue;
9082
- const examples = annotations.examples;
9083
- if (Array.isArray(examples) && isJson(examples))
9084
- out.examples = examples;
9085
- const contentSchema = annotations.contentSchema;
9086
- if (isJson(contentSchema))
9087
- out.contentSchema = contentSchema;
9088
- if (options?.includeAnnotationKey !== undefined) {
9089
- for (const [key, value] of Object.entries(annotations)) {
9090
- if (jsonSchemaAnnotationExcludedKeys.has(key) || !options.includeAnnotationKey(key)) {
9091
- continue;
9092
- }
9093
- if (isJson(value))
9094
- assignProperty(out, key, value);
9095
- }
9096
- }
9097
- return Object.keys(out).length === 0 ? undefined : out;
9098
- }
9099
- function extractJsonSchemaNumberType(schema) {
9100
- let type = schema.type === "number" || schema.type === "integer" ? schema.type : undefined;
9101
- let out = schema;
9102
- if (type !== undefined) {
9103
- out = {
9104
- ...schema
9105
- };
9106
- delete out.type;
9107
- }
9108
- if (Array.isArray(out.allOf)) {
9109
- const members = [];
9110
- let changed = false;
9111
- for (const member of out.allOf) {
9112
- const extracted = extractJsonSchemaNumberType(member);
9113
- if (extracted.type !== undefined) {
9114
- changed = true;
9115
- if (type === undefined || extracted.type === "integer")
9116
- type = extracted.type;
9117
- }
9118
- if (Object.keys(extracted.schema).length > 0)
9119
- members.push(extracted.schema);
9120
- }
9121
- if (changed) {
9122
- const {
9123
- allOf: _,
9124
- ...rest
9125
- } = out;
9126
- out = members.length === 0 ? rest : {
9127
- ...rest,
9128
- allOf: members
9129
- };
9130
- }
9131
- }
9132
- return {
9133
- type,
9134
- schema: out
9135
- };
9136
- }
9137
- function isJsonSchemaNumberEncoding(schema) {
9138
- if (!Array.isArray(schema.anyOf) || schema.anyOf.length !== 2 || schema.anyOf[0]?.type !== "number")
9139
- return false;
9140
- const special = schema.anyOf[1];
9141
- return special?.type === "string" && Array.isArray(special.enum) && special.enum.length === 3 && special.enum.includes("NaN") && special.enum.includes("Infinity") && special.enum.includes("-Infinity");
9142
- }
9143
- var inlineableCheckKeywords = "|type|format|pattern|multipleOf|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minProperties|maxProperties|propertyNames|";
9144
- function hasOnlyKeywords(schema, allowed) {
9145
- return Object.keys(schema).every((key) => allowed.includes(`|${key}|`));
9146
- }
9147
- function hasNoCollisions(left, rightKeys) {
9148
- return typeof left.$ref !== "string" && rightKeys.every((key) => !Object.hasOwn(left, key));
9149
- }
9150
- var lowerBoundKeywords = "|minimum|exclusiveMinimum|minLength|minItems|minProperties|";
9151
- var upperBoundKeywords = "|maximum|exclusiveMaximum|maxLength|maxItems|maxProperties|";
9152
- function mergeInlineCheck(left, right, rightKeys) {
9153
- if (typeof left.$ref === "string")
9154
- return;
9155
- const out = {
9156
- ...left,
9157
- ...right
9158
- };
9159
- for (const key of rightKeys) {
9160
- if (!Object.hasOwn(left, key))
9161
- continue;
9162
- const a = left[key];
9163
- const b = right[key];
9164
- if (typeof a !== "number" || typeof b !== "number")
9165
- return;
9166
- if (lowerBoundKeywords.includes(`|${key}|`))
9167
- out[key] = Math.max(a, b);
9168
- else if (upperBoundKeywords.includes(`|${key}|`))
9169
- out[key] = Math.min(a, b);
9170
- else
9171
- return;
9172
- }
9173
- if (typeof out.minimum === "number" && typeof out.exclusiveMinimum === "number") {
9174
- delete out[out.exclusiveMinimum >= out.minimum ? "minimum" : "exclusiveMinimum"];
9175
- }
9176
- if (typeof out.maximum === "number" && typeof out.exclusiveMaximum === "number") {
9177
- delete out[out.exclusiveMaximum <= out.maximum ? "maximum" : "exclusiveMaximum"];
9178
- }
9179
- return out;
9180
- }
9181
- var promotableAnnotationKeywords = "|title|description|default|examples|readOnly|writeOnly|";
9182
- var inlineableAnnotatedCheckKeywords = inlineableCheckKeywords + promotableAnnotationKeywords;
9183
- function appendJsonSchema(left, right, inlineCheck) {
9184
- if (Object.keys(left).length === 0)
9185
- return right;
9186
- const rightKeys = Object.keys(right);
9187
- if (rightKeys.length === 0)
9188
- return left;
9189
- const leftType = left.type === "number" || left.type === "integer" ? left.type : undefined;
9190
- const isNumberEncoding = isJsonSchemaNumberEncoding(left);
9191
- if (leftType !== undefined || isNumberEncoding) {
9192
- const extracted = extractJsonSchemaNumberType(right);
9193
- if (extracted.type !== undefined) {
9194
- const type = leftType === "integer" || extracted.type === "integer" ? "integer" : "number";
9195
- const base = {
9196
- ...left,
9197
- type
9198
- };
9199
- if (isNumberEncoding)
9200
- delete base.anyOf;
9201
- const extractedKeys = Object.keys(extracted.schema);
9202
- if (extractedKeys.length === 0)
9203
- return base;
9204
- return hasOnlyKeywords(extracted.schema, promotableAnnotationKeywords) && hasNoCollisions(base, extractedKeys) ? {
9205
- ...base,
9206
- ...extracted.schema
9207
- } : appendJsonSchema(base, extracted.schema, inlineCheck);
9208
- }
9209
- }
9210
- if (inlineCheck) {
9211
- const merged = mergeInlineCheck(left, right, rightKeys);
9212
- if (merged !== undefined)
9213
- return merged;
9214
- }
9215
- const members = Array.isArray(right.allOf) && rightKeys.length === 1 ? right.allOf : [right];
9216
- if (Array.isArray(left.allOf)) {
9217
- return {
9218
- ...left,
9219
- allOf: [...left.allOf, ...members]
9220
- };
9221
- }
9222
- if (typeof left.$ref === "string") {
9223
- return {
9224
- allOf: [left, ...members]
9225
- };
9226
- }
9227
- return {
9228
- ...left,
9229
- allOf: members
9230
- };
9231
- }
9232
- function isExact(exactness, seen = new Set) {
9233
- if (typeof exactness === "boolean")
9234
- return exactness;
9235
- if (seen.has(exactness))
9236
- return true;
9237
- seen.add(exactness);
9238
- return exactness.every((dependency) => isExact(dependency, seen));
9239
- }
9240
- function isApproximateCheckOutput(output) {
9241
- return Array.isArray(output);
9242
- }
9243
- function compileJsonSchema(representations, rootPaths, references, options) {
9244
- const numberKeyPattern = `^(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)$`;
9245
- const compiledDefinitions = new Map;
9246
- const definitionAliases = new Map;
9247
- const compiledRepresentations = new WeakMap;
9248
- const pendingOneOf = new Map;
9249
- const fallbackDefinitions = new Map;
9250
- const referenceKeys = Object.keys(references);
9251
- for (const key of referenceKeys) {
9252
- compileDefinition(key, ["references", key]);
9253
- }
9254
- const compiledSchemas = map6(representations, (representation, index) => recur(representation, rootPaths[index], []));
9255
- for (const {
9256
- branches,
9257
- schemas
9258
- } of pendingOneOf.values()) {
9259
- if (!isExact(branches)) {
9260
- for (const schema of schemas) {
9261
- if (Array.isArray(schema.oneOf)) {
9262
- schema.anyOf = schema.oneOf;
9263
- delete schema.oneOf;
9264
- }
9265
- }
9266
- }
9267
- }
9268
- for (const key of referenceKeys) {
9269
- const representation = references[key];
9270
- const fallback = getIdentifierFallback(representation);
9271
- if (fallback === undefined)
9272
- continue;
9273
- const schema = compiledDefinitions.get(key).schema;
9274
- const candidates = fallbackDefinitions.get(fallback);
9275
- const match = candidates?.find((candidate) => equals(compiledDefinitions.get(candidate).schema, schema));
9276
- if (match === undefined) {
9277
- if (candidates === undefined)
9278
- fallbackDefinitions.set(fallback, [key]);
9279
- else
9280
- candidates.push(key);
9281
- } else {
9282
- definitionAliases.set(key, match);
9283
- }
9284
- }
9285
- const schemas = map6(compiledSchemas, finalizeJsonSchema);
9286
- const definitions = {};
9287
- for (const key of referenceKeys) {
9288
- if (!definitionAliases.has(key)) {
9289
- assignProperty(definitions, key, finalizeJsonSchema(compiledDefinitions.get(key).schema));
9290
- }
9291
- }
9292
- return {
9293
- dialect: "draft-2020-12",
9294
- schemas,
9295
- definitions
9296
- };
9297
- function registerPendingOneOf(schema) {
9298
- if (Array.isArray(schema.oneOf))
9299
- pendingOneOf.get(schema.oneOf)?.schemas.push(schema);
9300
- return schema;
9301
- }
9302
- function compileAnnotatedMember(member, path, dependencies) {
9303
- const schema = recur(member.type, [...path, "type"], dependencies);
9304
- const annotations = collectJsonSchemaAnnotations(member.annotations, options);
9305
- return annotations === undefined ? schema : registerPendingOneOf(appendJsonSchema(schema, annotations));
9306
- }
9307
- function compileDefinition(key, path) {
9308
- if (!Object.hasOwn(references, key)) {
9309
- throw errorWithPath(`Invalid reference ${key}`, [...path, "$ref"]);
9310
- }
9311
- const cached = compiledDefinitions.get(key);
9312
- if (cached !== undefined)
9313
- return cached;
9314
- const result = {
9315
- schema: {},
9316
- dependencies: []
9317
- };
9318
- compiledDefinitions.set(key, result);
9319
- result.schema = recur(references[key], ["references", key], result.dependencies);
9320
- return result;
9321
- }
9322
- function finalizeJsonSchema(schema) {
9323
- return rewriteRefs(schema, ($ref) => {
9324
- const pointer = decodeUriFragment($ref);
9325
- if (pointer === undefined) {
9326
- if (/^#(?:\/|%2f)/i.test($ref)) {
9327
- throw new Error(`Invalid JSON Pointer URI fragment ${JSON.stringify($ref)}`);
9328
- }
9329
- return $ref;
9330
- }
9331
- if (!pointer.startsWith("/$defs/"))
9332
- return $ref;
9333
- const separator = pointer.indexOf("/", 7);
9334
- const canonical = definitionAliases.get(unescapeToken(pointer.slice(7, separator < 0 ? undefined : separator)));
9335
- if (canonical === undefined)
9336
- return $ref;
9337
- return $ref.replace(/^#(?:\/|%2f).*?(?:\/|%2f).*?(?=\/|%2f|$)/i, formatDefinitionReference(canonical));
9338
- });
9339
- }
9340
- function getIdentifierFallback(representation) {
9341
- if (representation._tag === "Reference")
9342
- return;
9343
- const annotations = representation.checks.length === 0 ? representation.annotations : representation.checks[representation.checks.length - 1].annotations;
9344
- return typeof annotations?.identifier !== "string" && typeof annotations?.[IDENTIFIER_FALLBACK_KEY] === "string" ? annotations[IDENTIFIER_FALLBACK_KEY] : undefined;
9345
- }
9346
- function compileCheck(check, type, path, dependencies) {
9347
- const annotations = check.annotations;
9348
- const callback = annotations?.toJsonSchema;
9349
- if (callback !== undefined) {
9350
- const schemas = check.representation?.schemas?.map((schema, index) => recur(schema, [...path, "representation", "schemas", index], dependencies)) ?? [];
9351
- const result = callback({
9352
- type,
9353
- schemas
9354
- });
9355
- const approximate = isApproximateCheckOutput(result);
9356
- if (approximate) {
9357
- dependencies.push(false);
9358
- }
9359
- const fragment = approximate ? result[0] : result;
9360
- const ordinary = collectJsonSchemaAnnotations(annotations, options);
9361
- const schema = ordinary === undefined ? fragment : {
9362
- ...fragment,
9363
- ...ordinary
9364
- };
9365
- const allowed = ordinary === undefined ? inlineableCheckKeywords : inlineableAnnotatedCheckKeywords;
9366
- return [schema, check._tag === "Filter" && hasOnlyKeywords(schema, allowed) && (ordinary === undefined || hasOnlyKeywords(ordinary, promotableAnnotationKeywords)) ? true : undefined];
9367
- }
9368
- if (check._tag === "Filter") {
9369
- dependencies.push(false);
9370
- return;
9371
- }
9372
- const schemas = check.checks.flatMap((child, index) => {
9373
- const result = compileCheck(child, type, [...path, "checks", index], dependencies);
9374
- return result === undefined ? [] : [result[0]];
9375
- });
9376
- if (schemas.length === 0)
9377
- return;
9378
- const ordinary = collectJsonSchemaAnnotations(annotations, options);
9379
- const schema = {
9380
- allOf: schemas
9381
- };
9382
- return [ordinary === undefined ? schema : {
9383
- ...schema,
9384
- ...ordinary
9385
- }];
9386
- }
9387
- function recur(representation, path, dependencies) {
9388
- if (representation._tag === "Reference") {
9389
- dependencies.push(compileDefinition(representation.$ref, path).dependencies);
9390
- return {
9391
- $ref: formatDefinitionReference(representation.$ref)
9392
- };
9393
- }
9394
- const cached = compiledRepresentations.get(representation);
9395
- if (cached !== undefined) {
9396
- dependencies.push(cached.dependencies);
9397
- return cached.schema;
9398
- }
9399
- const local = [];
9400
- dependencies.push(local);
9401
- let output = {
9402
- ...on(representation, path, local),
9403
- ...collectJsonSchemaAnnotations(representation.annotations, options)
9404
- };
9405
- if (representation._tag === "String" && representation.content !== undefined) {
9406
- const content = representation.content;
9407
- output.contentMediaType = content.mediaType;
9408
- delete output.contentSchema;
9409
- if (content.schema !== undefined) {
9410
- output.contentSchema = recur(content.schema, [...path, "content", "schema"], []);
9411
- }
9412
- }
9413
- for (let index = 0;index < representation.checks.length; index++) {
9414
- const type = typeof output.type === "string" && isJsonSchemaType(output.type) ? output.type : undefined;
9415
- const check = compileCheck(representation.checks[index], type, [...path, "checks", index], local);
9416
- if (check !== undefined)
9417
- output = appendJsonSchema(output, ...check);
9418
- }
9419
- compiledRepresentations.set(representation, {
9420
- schema: output,
9421
- dependencies: local
9422
- });
9423
- return registerPendingOneOf(output);
9424
- }
9425
- function on(representation, path, dependencies) {
9426
- switch (representation._tag) {
9427
- case "Any":
9428
- case "Unknown":
9429
- return {};
9430
- case "ObjectKeyword":
9431
- return {
9432
- anyOf: [{
9433
- type: "object"
9434
- }, {
9435
- type: "array"
9436
- }]
9437
- };
9438
- case "Void":
9439
- case "Undefined":
9440
- case "Null":
9441
- return {
9442
- type: "null"
9443
- };
9444
- case "BigInt":
9445
- return {
9446
- type: "string",
9447
- allOf: [{
9448
- pattern: "^-?\\d+$"
9449
- }]
9450
- };
9451
- case "Symbol":
9452
- return {
9453
- type: "string",
9454
- allOf: [{
9455
- pattern: "^Symbol\\(([\\s\\S]*)\\)$"
9456
- }]
9457
- };
9458
- case "UniqueSymbol":
9459
- return globalThis.Symbol.keyFor(representation.symbol) === undefined ? {
9460
- not: {}
9461
- } : {
9462
- type: "string",
9463
- enum: [globalThis.String(representation.symbol)]
9464
- };
9465
- case "Declaration":
9466
- dependencies.push(false);
9467
- return {};
9468
- case "Suspend":
9469
- return recur(representation.thunk, [...path, "thunk"], dependencies);
9470
- case "Never":
9471
- return {
9472
- not: {}
9473
- };
9474
- case "String":
9475
- return {
9476
- type: "string"
9477
- };
9478
- case "Number":
9479
- return {
9480
- anyOf: [{
9481
- type: "number"
9482
- }, {
9483
- type: "string",
9484
- enum: ["NaN", "Infinity", "-Infinity"]
9485
- }]
9486
- };
9487
- case "Boolean":
9488
- return {
9489
- type: "boolean"
9490
- };
9491
- case "Literal": {
9492
- const literal = representation.literal;
9493
- return typeof literal === "bigint" ? {
9494
- type: "string",
9495
- enum: [globalThis.String(literal)]
9496
- } : {
9497
- type: typeof literal,
9498
- enum: [literal]
9499
- };
9500
- }
9501
- case "Enum": {
9502
- const types = representation.enums.map(([title, literal]) => ({
9503
- type: typeof literal,
9504
- enum: [literal],
9505
- title
9506
- }));
9507
- return types.length === 0 ? {
9508
- not: {}
9509
- } : {
9510
- anyOf: types
9511
- };
9512
- }
9513
- case "TemplateLiteral": {
9514
- const {
9515
- exact,
9516
- pattern
9517
- } = getTemplateLiteralPattern(representation.parts);
9518
- if (!exact)
9519
- dependencies.push(false);
9520
- return {
9521
- type: "string",
9522
- pattern
9523
- };
9524
- }
9525
- case "Arrays": {
9526
- const out = {
9527
- type: "array"
9528
- };
9529
- let minItems = representation.elements.length;
9530
- const prefixItems = representation.elements.map((element, index) => {
9531
- if (element.isOptional)
9532
- minItems--;
9533
- return compileAnnotatedMember(element, [...path, "elements", index], dependencies);
9534
- });
9535
- if (prefixItems.length > 0) {
9536
- out.prefixItems = prefixItems;
9537
- out.maxItems = representation.elements.length;
9538
- if (minItems > 0)
9539
- out.minItems = minItems;
9540
- } else {
9541
- out.items = false;
9542
- }
9543
- if (representation.rest.length === 1) {
9544
- delete out.maxItems;
9545
- const rest = recur(representation.rest[0], [...path, "rest", 0], dependencies);
9546
- if (Object.keys(rest).length > 0)
9547
- out.items = rest;
9548
- else
9549
- delete out.items;
9550
- } else if (representation.rest.length > 1) {
9551
- delete out.maxItems;
9552
- delete out.items;
9553
- out.minItems = minItems + representation.rest.length - 1;
9554
- dependencies.push(false);
9555
- }
9556
- return out;
9557
- }
9558
- case "Objects":
9559
- return compileObjects(representation, path, dependencies);
9560
- case "Union": {
9561
- const branches = [];
9562
- const types = representation.types.map((type, index) => recur(type, [...path, "types", index], branches));
9563
- dependencies.push(branches);
9564
- if (types.length === 0)
9565
- return {
9566
- not: {}
9567
- };
9568
- if (representation.options?.mode === "oneOf") {
9569
- pendingOneOf.set(types, {
9570
- branches,
9571
- schemas: []
9572
- });
9573
- return {
9574
- oneOf: types
9575
- };
9576
- }
9577
- if (types.length > 1) {
9578
- const compacted = compactEnums(types);
9579
- if (compacted !== undefined)
9580
- return compacted;
9581
- }
9582
- return {
9583
- anyOf: types.flatMap((type) => Array.isArray(type.anyOf) && Object.keys(type).length === 1 ? type.anyOf : [type])
9584
- };
9585
- }
9586
- }
9587
- }
9588
- function compileObjects(representation, path, dependencies) {
9589
- const {
9590
- indexSignatures,
9591
- propertySignatures
9592
- } = representation;
9593
- if (propertySignatures.length === 0 && indexSignatures.length === 0)
9594
- return {
9595
- not: {
9596
- type: "null"
9597
- }
9598
- };
9599
- const out = {
9600
- type: "object"
9601
- };
9602
- const properties = {};
9603
- const required = [];
9604
- for (const [index, property] of propertySignatures.entries()) {
9605
- const propertyPath = [...path, "propertySignatures", index];
9606
- if (typeof property.name !== "string") {
9607
- throw errorWithPath("Objects property names must be strings", [...propertyPath, "name"]);
9608
- }
9609
- assignProperty(properties, property.name, compileAnnotatedMember(property, propertyPath, dependencies));
9610
- if (!property.isOptional)
9611
- required.push(property.name);
9612
- }
9613
- if (propertySignatures.length > 0)
9614
- out.properties = properties;
9615
- if (required.length > 0)
9616
- out.required = required;
9617
- const indexes = indexSignatures.map((signature, index) => {
9618
- const indexPath = [...path, "indexSignatures", index];
9619
- const schema = recur(signature.type, [...indexPath, "type"], dependencies);
9620
- const type = equals(schema, {
9621
- not: {}
9622
- }) ? false : schema;
9623
- const patterns = getParameterPatterns(signature.parameter, [...indexPath, "parameter"], new Set);
9624
- if (patterns === undefined)
9625
- dependencies.push(false);
9626
- return {
9627
- type,
9628
- patterns
9629
- };
9630
- });
9631
- const patternProperties = {};
9632
- for (const {
9633
- patterns,
9634
- type
9635
- } of indexes) {
9636
- for (const pattern of patterns ?? []) {
9637
- const previous = patternProperties[pattern];
9638
- assignProperty(patternProperties, pattern, previous === undefined ? type : previous === false || type === false ? false : registerPendingOneOf(appendJsonSchema(previous, type)));
9639
- }
9640
- }
9641
- const hasPatternProperties = Object.keys(patternProperties).length > 0;
9642
- if (hasPatternProperties)
9643
- out.patternProperties = patternProperties;
9644
- const additionalPropertySchemas = indexes.filter(({
9645
- patterns
9646
- }) => patterns?.length === 0).map(({
9647
- type
9648
- }) => type);
9649
- const hasUnrepresentableIndexPattern = indexes.some(({
9650
- patterns
9651
- }) => patterns === undefined);
9652
- if (hasUnrepresentableIndexPattern && options?.onExcessProperty === "error") {
9653
- const propertyNames = [];
9654
- if (propertySignatures.length > 0)
9655
- propertyNames.push({
9656
- enum: Object.keys(properties)
9657
- });
9658
- for (const [index, signature] of indexSignatures.entries()) {
9659
- propertyNames.push(getPropertyNameSchema(signature.parameter, [...path, "indexSignatures", index, "parameter"], dependencies, new Set));
9660
- }
9661
- out.propertyNames = propertyNames.length === 1 ? propertyNames[0] : {
9662
- anyOf: propertyNames
9663
- };
9664
- const values = indexes.map(({
9665
- type
9666
- }) => type);
9667
- out.additionalProperties = values.length === 1 ? values[0] : {
9668
- anyOf: values
9669
- };
9670
- if (additionalPropertySchemas.length > 0) {
9671
- out.allOf = additionalPropertySchemas.map((type) => ({
9672
- type: "object",
9673
- additionalProperties: type
9674
- }));
9675
- }
9676
- } else if (additionalPropertySchemas.length === 0) {
9677
- out.additionalProperties = hasUnrepresentableIndexPattern || options?.onExcessProperty !== "error";
9678
- } else if (additionalPropertySchemas.length === 1 && propertySignatures.length === 0 && !hasPatternProperties) {
9679
- out.additionalProperties = additionalPropertySchemas[0];
9680
- } else {
9681
- out.allOf = additionalPropertySchemas.map((type) => ({
9682
- type: "object",
9683
- additionalProperties: type
9684
- }));
9685
- }
9686
- if (typeof out.additionalProperties === "object" && out.additionalProperties !== null && Object.keys(out.additionalProperties).length === 0) {
9687
- delete out.additionalProperties;
9688
- }
9689
- return out;
9690
- }
9691
- function getPropertyNameSchema(parameter, path, dependencies, seenReferences) {
9692
- switch (parameter._tag) {
9693
- case "Number":
9694
- return {
9695
- type: "string",
9696
- pattern: numberKeyPattern
9697
- };
9698
- case "Reference": {
9699
- if (seenReferences.has(parameter.$ref))
9700
- return {
9701
- type: "string"
9702
- };
9703
- return getPropertyNameSchema(references[parameter.$ref], ["references", parameter.$ref], dependencies, new Set(seenReferences).add(parameter.$ref));
9704
- }
9705
- case "Union":
9706
- return {
9707
- anyOf: parameter.types.map((type) => getPropertyNameSchema(type, path, dependencies, seenReferences))
9708
- };
9709
- default:
9710
- return recur(parameter, path, dependencies);
9711
- }
9712
- }
9713
- function getParameterPatterns(parameter, path, seenReferences) {
9714
- switch (parameter._tag) {
9715
- case "Reference": {
9716
- compileDefinition(parameter.$ref, path);
9717
- if (seenReferences.has(parameter.$ref))
9718
- return;
9719
- const next = new Set(seenReferences).add(parameter.$ref);
9720
- return getParameterPatterns(references[parameter.$ref], ["references", parameter.$ref], next);
9721
- }
9722
- case "String": {
9723
- if (parameter.checks.length === 0)
9724
- return [];
9725
- if (parameter.checks.length !== 1 || parameter.checks[0]._tag !== "Filter" || parameter.checks[0].annotations?.toJsonSchema === undefined) {
9726
- return;
9727
- }
9728
- const dependencies = [];
9729
- const schema = recur(parameter, path, dependencies);
9730
- if (!isExact(dependencies))
9731
- return;
9732
- return schema.type === "string" && typeof schema.pattern === "string" && hasOnlyKeywords(schema, "|type|pattern|title|description|default|examples|readOnly|writeOnly|") ? [schema.pattern] : undefined;
9733
- }
9734
- case "TemplateLiteral": {
9735
- if (parameter.checks.length > 0)
9736
- return;
9737
- const {
9738
- exact,
9739
- pattern
9740
- } = getTemplateLiteralPattern(parameter.parts);
9741
- return exact ? [pattern] : undefined;
9742
- }
9743
- case "Union": {
9744
- if (parameter.types.length === 0 || parameter.checks.length > 0 || parameter.options?.mode === "oneOf") {
9745
- return;
9746
- }
9747
- const patterns = [];
9748
- for (let index = 0;index < parameter.types.length; index++) {
9749
- const memberPatterns = getParameterPatterns(parameter.types[index], [...path, "types", index], seenReferences);
9750
- if (memberPatterns === undefined)
9751
- return;
9752
- if (memberPatterns.length === 0)
9753
- return [];
9754
- patterns.push(...memberPatterns);
9755
- }
9756
- return patterns;
9757
- }
9758
- case "Number":
9759
- return parameter.checks.length === 0 ? [numberKeyPattern] : undefined;
9760
- default:
9761
- throw errorWithPath(`Invalid index signature parameter ${parameter._tag}`, path);
9762
- }
9763
- }
9764
- function getTemplateLiteralPattern(parts) {
9765
- const activeReferences = new Set;
9766
- let exact = true;
9767
- const pattern = `^${parts.map(getPartPattern).join("")}$`;
9768
- return {
9769
- pattern,
9770
- exact
9771
- };
9772
- function getPartPattern(part) {
9773
- if (part._tag !== "Reference" && part.checks.length > 0)
9774
- exact = false;
9775
- switch (part._tag) {
9776
- case "Reference": {
9777
- if (!Object.hasOwn(references, part.$ref)) {
9778
- throw errorWithPath(`Invalid reference ${part.$ref}`, []);
9779
- }
9780
- if (activeReferences.has(part.$ref)) {
9781
- throw errorWithPath(`Invalid recursive TemplateLiteral part ${part.$ref}`, []);
9782
- }
9783
- activeReferences.add(part.$ref);
9784
- const pattern = getPartPattern(references[part.$ref]);
9785
- activeReferences.delete(part.$ref);
9786
- return pattern;
9787
- }
9788
- case "Literal":
9789
- return escape(globalThis.String(part.literal));
9790
- case "String":
9791
- return STRING_PATTERN;
9792
- case "Number":
9793
- return FINITE_PATTERN;
9794
- case "BigInt":
9795
- return "-?\\d+";
9796
- case "TemplateLiteral":
9797
- return part.parts.map(getPartPattern).join("");
9798
- case "Union":
9799
- if (part.types.length === 0)
9800
- return "(?!)";
9801
- if (part.options?.mode === "oneOf")
9802
- exact = false;
9803
- return `(?:${part.types.map(getPartPattern).join("|")})`;
9804
- default:
9805
- throw errorWithPath(`Invalid TemplateLiteral part ${part._tag}`, []);
9806
- }
9807
- }
9808
- }
9809
- }
9810
- function isJsonSchemaType(input) {
9811
- return input === "string" || input === "number" || input === "boolean" || input === "array" || input === "object" || input === "null" || input === "integer";
9812
- }
9813
- function compactEnums(schemas) {
9814
- let sharedType = undefined;
9815
- const values = [];
9816
- for (const schema of schemas) {
9817
- const keys = Object.keys(schema);
9818
- if (keys.length !== 2 || schema.type === undefined || !Array.isArray(schema.enum) || schema.enum.length === 0) {
9819
- return;
9820
- }
9821
- if (sharedType === undefined)
9822
- sharedType = schema.type;
9823
- else if (schema.type !== sharedType)
9824
- return;
9825
- for (const value of schema.enum) {
9826
- if (values.includes(value))
9827
- return;
9828
- values.push(value);
9829
- }
9830
- }
9831
- return {
9832
- type: sharedType,
9833
- enum: values
9834
- };
9835
- }
9836
- function toJsonSchemaDocument2(document, options) {
9837
- const output = compileJsonSchema([document.representation], [["representation"]], document.references, options);
9838
- return {
9839
- dialect: output.dialect,
9840
- schema: output.schemas[0],
9841
- definitions: output.definitions
9842
- };
9843
- }
9844
-
9845
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toRepresentation.js
9846
- var defaultReferencePolicy = ({
9847
- identifier
9848
- }) => identifier;
9849
- function annotationsField(annotations) {
9850
- return annotations === undefined ? undefined : {
9851
- annotations
9852
- };
9853
- }
9854
- function toRepresentation(ast, options) {
9855
- const {
9856
- references,
9857
- representations
9858
- } = toRepresentations([ast], options);
9859
- return {
9860
- representation: representations[0],
9861
- references
9862
- };
9863
- }
9864
- function toRepresentations(asts, options) {
9865
- const references = {};
9866
- const usedReferences = new Set;
9867
- const candidates = new Map;
9868
- for (const ast of asts)
9869
- visit(ast);
9870
- const referencePolicy = options?.referencePolicy ?? defaultReferencePolicy;
9871
- for (const variants of candidates.values()) {
9872
- for (const candidate of variants) {
9873
- const requestedReference = referencePolicy({
9874
- ast: candidate.ast,
9875
- occurrences: candidate.occurrences,
9876
- identifier: candidate.identifier
9877
- });
9878
- if (requestedReference !== undefined) {
9879
- const separator = requestedReference === candidate.identifier || !requestedReference.endsWith("_") ? "_" : "";
9880
- candidate.reference = getReference(requestedReference, separator);
9881
- } else if (candidate.isRecursive) {
9882
- candidate.reference = getReference(`${candidate.ast._tag}_`, "");
9883
- }
9884
- }
9885
- }
9886
- const representations = map6(asts, recur);
9887
- return {
9888
- representations,
9889
- references
9890
- };
9891
- function getReference(prefix, separator) {
9892
- let candidate = prefix;
9893
- let suffix = 0;
9894
- while (usedReferences.has(candidate)) {
9895
- candidate = `${prefix}${separator}${++suffix}`;
9896
- }
9897
- usedReferences.add(candidate);
9898
- return candidate;
9899
- }
9900
- function annotateReference(ast, candidate, reference) {
9901
- const fallback = candidate.fallback;
9902
- if (fallback !== undefined) {
9903
- return resolveIdentifierFallback(ast) === fallback ? ast : annotate(ast, {
9904
- [IDENTIFIER_FALLBACK_KEY]: fallback
9905
- });
9906
- }
9907
- return reference === candidate.identifier ? ast : annotate(ast, {
9908
- identifier: reference
9909
- });
9910
- }
9911
- function getCandidate(input, encodingLength = input.encoding?.length ?? 0) {
9912
- let ast = input;
9913
- let content;
9914
- while (ast.encoding !== undefined && encodingLength > 0) {
9915
- const last = ast.encoding[encodingLength - 1];
9916
- if (last.to.encoding === undefined && last.to._tag === "String") {
9917
- const metadata = getContent(last.transformation.encode);
9918
- if (metadata !== undefined) {
9919
- content = {
9920
- mediaType: metadata.mediaType,
9921
- schema: metadata.preserveSchema ? getCandidate(ast, encodingLength - 1) : undefined
9922
- };
9923
- }
9924
- }
9925
- ast = last.to;
9926
- encodingLength = ast.encoding?.length ?? 0;
9927
- }
9928
- const owner = getContextOwner(ast);
9929
- let identifier = resolveIdentifier(ast);
9930
- const fallback = identifier === undefined ? (ast !== input ? resolveIdentifier(input) : undefined) ?? resolveIdentifierFallback(ast) : undefined;
9931
- if (fallback !== undefined)
9932
- identifier = `${fallback}Encoded`;
9933
- let variants = candidates.get(owner);
9934
- if (variants === undefined) {
9935
- variants = [];
9936
- candidates.set(owner, variants);
9937
- }
9938
- let candidate = variants.find((candidate) => candidate.identifier === identifier && candidate.content?.mediaType === content?.mediaType && candidate.content?.schema === content?.schema);
9939
- if (candidate === undefined) {
9940
- candidate = {
9941
- ast: owner,
9942
- identifier,
9943
- fallback,
9944
- content,
9945
- occurrences: 0
9946
- };
9947
- variants.push(candidate);
9948
- }
9949
- return candidate;
9950
- }
9951
- function visit(input) {
9952
- visitCandidate(getCandidate(input));
9953
- return input;
9954
- }
9955
- function visitCandidate(candidate) {
9956
- const ast = candidate.ast;
9957
- candidate.occurrences++;
9958
- if (candidate.visiting) {
9959
- candidate.isRecursive = true;
9960
- return;
9961
- }
9962
- if (candidate.occurrences > 1)
9963
- return;
9964
- candidate.visiting = true;
9965
- if (candidate.content?.schema !== undefined)
9966
- visitCandidate(candidate.content.schema);
9967
- visitChecks(ast.checks);
9968
- switch (ast._tag) {
9969
- default:
9970
- if ("recur" in ast)
9971
- ast.recur(visit);
9972
- break;
9973
- case "TemplateLiteral":
9974
- ast.parts.forEach(visit);
9975
- break;
9976
- case "Suspend":
9977
- visit(ast.thunk());
9978
- break;
9979
- }
9980
- candidate.visiting = false;
9981
- }
9982
- function visitChecks(checks) {
9983
- checks?.forEach((check) => {
9984
- check.annotations?.representation?.schemas?.forEach((schema) => visit(toType2(schema)));
9985
- if (check._tag === "FilterGroup")
9986
- visitChecks(check.checks);
9987
- });
9988
- }
9989
- function recur(input) {
9990
- return recurCandidate(getCandidate(input));
9991
- }
9992
- function recurCandidate(candidate) {
9993
- const ast = candidate.ast;
9994
- const reference = candidate.reference;
9995
- if (reference !== undefined) {
9996
- if (!candidate.emitted) {
9997
- candidate.emitted = true;
9998
- const annotated = candidate.identifier === undefined ? ast : annotateReference(ast, candidate, reference);
9999
- const representation = on(annotated, candidate.content);
10000
- assignProperty(references, reference, representation);
10001
- }
10002
- return {
10003
- _tag: "Reference",
10004
- $ref: reference
10005
- };
10006
- }
10007
- return on(ast, candidate.content);
10008
- }
10009
- function on(ast, content) {
10010
- const common = {
10011
- checks: ast.checks?.map(fromCheck) ?? [],
10012
- ...ast._tag === "Declaration" ? fromAnnotations(ast.annotations) : annotationsField(ast.annotations)
10013
- };
10014
- switch (ast._tag) {
10015
- case "Declaration":
10016
- return {
10017
- _tag: ast._tag,
10018
- typeParameters: ast.typeParameters.map(recur),
10019
- ...common
10020
- };
10021
- default:
10022
- return {
10023
- _tag: ast._tag,
10024
- ...content === undefined ? undefined : {
10025
- content: {
10026
- mediaType: content.mediaType,
10027
- ...content.schema === undefined ? undefined : {
10028
- schema: recurCandidate(content.schema)
10029
- }
10030
- }
10031
- },
10032
- ...common
10033
- };
10034
- case "Literal":
10035
- return {
10036
- _tag: ast._tag,
10037
- literal: ast.literal,
10038
- ...common
10039
- };
10040
- case "UniqueSymbol":
10041
- return {
10042
- _tag: ast._tag,
10043
- symbol: ast.symbol,
10044
- ...common
10045
- };
10046
- case "Enum":
10047
- return {
10048
- _tag: ast._tag,
10049
- enums: ast.enums,
10050
- ...common
10051
- };
10052
- case "TemplateLiteral":
10053
- return {
10054
- _tag: ast._tag,
10055
- parts: ast.parts.map(recur),
10056
- ...common
10057
- };
10058
- case "Arrays":
10059
- return {
10060
- _tag: ast._tag,
10061
- elements: ast.elements.map((element) => {
10062
- const projected = getLastEncoding(element);
10063
- const annotations = projected.context?.annotations;
10064
- return {
10065
- isOptional: isOptional(projected),
10066
- type: recur(element),
10067
- ...annotationsField(annotations)
10068
- };
10069
- }),
10070
- rest: ast.rest.map(recur),
10071
- ...common
10072
- };
10073
- case "Objects":
10074
- return {
10075
- _tag: ast._tag,
10076
- propertySignatures: ast.propertySignatures.map((property) => {
10077
- const projected = getLastEncoding(property.type);
10078
- const annotations = projected.context?.annotations;
10079
- return {
10080
- name: property.name,
10081
- type: recur(property.type),
10082
- isOptional: isOptional(projected),
10083
- isMutable: isMutable(projected),
10084
- ...annotationsField(annotations)
10085
- };
10086
- }),
10087
- indexSignatures: ast.indexSignatures.map((index) => ({
10088
- parameter: recur(index.parameter),
10089
- type: recur(index.type)
10090
- })),
10091
- ...common
10092
- };
10093
- case "Union":
10094
- return {
10095
- _tag: ast._tag,
10096
- types: ast.types.map(recur),
10097
- ...ast.options === undefined ? {} : {
10098
- options: ast.options
10099
- },
10100
- ...common
10101
- };
10102
- case "Suspend":
10103
- return {
10104
- _tag: ast._tag,
10105
- ...common,
10106
- checks: [],
10107
- thunk: recur(ast.thunk())
10108
- };
10109
- }
10110
- }
10111
- function fromCheck(check) {
10112
- return {
10113
- ...check._tag === "Filter" ? {
10114
- _tag: check._tag,
10115
- aborted: check.aborted
10116
- } : {
10117
- _tag: check._tag,
10118
- checks: map6(check.checks, fromCheck)
10119
- },
10120
- ...fromAnnotations(check.annotations, true)
10121
- };
10122
- }
10123
- function fromAnnotations(annotations, projectSchemas = false) {
10124
- if (annotations === undefined)
10125
- return;
10126
- const {
10127
- representation,
10128
- ...ordinary
10129
- } = annotations;
10130
- const projected = projectSchemas && representation?.schemas !== undefined ? {
10131
- ...representation,
10132
- schemas: representation.schemas.map((schema) => recur(toType2(schema)))
10133
- } : representation;
10134
- return {
10135
- ...projected === undefined ? undefined : {
10136
- representation: projected
10137
- },
10138
- ...Object.keys(ordinary).length === 0 ? undefined : {
10139
- annotations: ordinary
10140
- }
10141
- };
10142
- }
10143
- }
10144
-
10145
8848
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/toEquivalence.js
10146
8849
  var toEquivalence2 = /* @__PURE__ */ memoize((ast) => {
10147
8850
  return recur(ast);
@@ -10177,7 +8880,7 @@ function recur(ast) {
10177
8880
  const rest = ast.rest.map(recur);
10178
8881
  const [head, ...tail] = rest;
10179
8882
  const tailLength = tail.length;
10180
- return make15((a, b) => {
8883
+ return make14((a, b) => {
10181
8884
  if (!Array.isArray(a) || !Array.isArray(b)) {
10182
8885
  return false;
10183
8886
  }
@@ -10212,7 +8915,7 @@ function recur(ast) {
10212
8915
  }
10213
8916
  const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
10214
8917
  const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
10215
- return make15((a, b) => {
8918
+ return make14((a, b) => {
10216
8919
  if (!isObject2(a) || !isObject2(b)) {
10217
8920
  return false;
10218
8921
  }
@@ -10250,7 +8953,7 @@ function recur(ast) {
10250
8953
  const types = toType2(ast).types;
10251
8954
  const index = getCandidateIndex(types);
10252
8955
  const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
10253
- return make15((a, b) => {
8956
+ return make14((a, b) => {
10254
8957
  const candidates = index(a, false);
10255
8958
  for (let i = 0;i < candidates.length; i++) {
10256
8959
  const [is, equivalence] = compiled[candidates[i]];
@@ -10263,7 +8966,7 @@ function recur(ast) {
10263
8966
  }
10264
8967
  case "Suspend": {
10265
8968
  let equivalence;
10266
- return make15((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
8969
+ return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
10267
8970
  }
10268
8971
  }
10269
8972
  }
@@ -10364,7 +9067,7 @@ function isSchemaError(u) {
10364
9067
  var TypeId12 = TypeId11;
10365
9068
  function declareConstructor() {
10366
9069
  return (typeParameters, run, annotations) => {
10367
- return make18(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make18(ast))), annotations));
9070
+ return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
10368
9071
  };
10369
9072
  }
10370
9073
  function declare(is, annotations) {
@@ -10458,61 +9161,61 @@ function decodeUnknownSync(schema, options) {
10458
9161
  };
10459
9162
  }
10460
9163
  var decodeSync = decodeUnknownSync;
10461
- function encodeUnknownEffect(schema, options) {
10462
- const parser = encodeUnknownEffect2(schema, options);
9164
+ function encodeUnknownEffect2(schema, options) {
9165
+ const parser = encodeUnknownEffect(schema, options);
10463
9166
  return (input, options) => {
10464
9167
  return fromIssueEffect(parser(input, options));
10465
9168
  };
10466
9169
  }
10467
- var encodeEffect = encodeUnknownEffect;
9170
+ var encodeEffect = encodeUnknownEffect2;
10468
9171
  function encodeUnknownSync(schema, options) {
10469
- const parser = encodeUnknownEffect(schema, options);
9172
+ const parser = encodeUnknownEffect2(schema, options);
10470
9173
  return (input, options) => {
10471
9174
  return runSchemaErrorSync(parser(input, options));
10472
9175
  };
10473
9176
  }
10474
9177
  var encodeSync = encodeUnknownSync;
10475
- var make18 = make5;
9178
+ var make17 = make5;
10476
9179
  function isSchema(u) {
10477
9180
  return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
10478
9181
  }
10479
- var optionalKey = /* @__PURE__ */ lambda((schema) => make18(optionalKey2(schema.ast), {
9182
+ var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
10480
9183
  schema
10481
9184
  }));
10482
9185
  var optional = /* @__PURE__ */ lambda((self) => {
10483
9186
  const schema = UndefinedOr(self);
10484
- return make18(optional2(self.ast), {
9187
+ return make17(optional2(self.ast), {
10485
9188
  schema
10486
9189
  });
10487
9190
  });
10488
- var toType = /* @__PURE__ */ lambda((schema) => make18(toType2(schema.ast), {
9191
+ var toType = /* @__PURE__ */ lambda((schema) => make17(toType2(schema.ast), {
10489
9192
  schema
10490
9193
  }));
10491
- var toEncoded2 = /* @__PURE__ */ lambda((schema) => make18(toEncoded(schema.ast), {
9194
+ var toEncoded2 = /* @__PURE__ */ lambda((schema) => make17(toEncoded(schema.ast), {
10492
9195
  schema
10493
9196
  }));
10494
9197
  function Literal(literal) {
10495
- const out = make18(new Literal2(literal), {
9198
+ const out = make17(new Literal2(literal), {
10496
9199
  literal,
10497
9200
  transform(to) {
10498
9201
  return out.pipe(decodeTo2(Literal(to), {
10499
- decode: transform(() => to),
10500
- encode: transform(() => literal)
9202
+ decode: transform2(() => to),
9203
+ encode: transform2(() => literal)
10501
9204
  }));
10502
9205
  }
10503
9206
  });
10504
9207
  return out;
10505
9208
  }
10506
- var Never = /* @__PURE__ */ make18(never3);
10507
- var Unknown = /* @__PURE__ */ make18(unknown);
10508
- var Null = /* @__PURE__ */ make18(null_);
10509
- var Undefined2 = /* @__PURE__ */ make18(undefined_3);
10510
- var String4 = /* @__PURE__ */ make18(string2);
10511
- var Number5 = /* @__PURE__ */ make18(number2);
10512
- var Boolean2 = /* @__PURE__ */ make18(boolean);
10513
- var Void = /* @__PURE__ */ make18(void_4);
9209
+ var Never = /* @__PURE__ */ make17(never3);
9210
+ var Unknown = /* @__PURE__ */ make17(unknown);
9211
+ var Null = /* @__PURE__ */ make17(null_);
9212
+ var Undefined2 = /* @__PURE__ */ make17(undefined_3);
9213
+ var String4 = /* @__PURE__ */ make17(string2);
9214
+ var Number5 = /* @__PURE__ */ make17(number2);
9215
+ var Boolean2 = /* @__PURE__ */ make17(boolean);
9216
+ var Void = /* @__PURE__ */ make17(void_4);
10514
9217
  function makeStruct(ast, fields) {
10515
- return make18(ast, {
9218
+ return make17(ast, {
10516
9219
  fields,
10517
9220
  mapFields(f, options) {
10518
9221
  const fields = f(this.fields);
@@ -10524,37 +9227,25 @@ function Struct(fields) {
10524
9227
  return makeStruct(struct(fields, undefined), fields);
10525
9228
  }
10526
9229
  function Record(key, value) {
10527
- return make18(record(key.ast, value.ast), {
9230
+ return make17(record(key.ast, value.ast), {
10528
9231
  key,
10529
9232
  value
10530
9233
  });
10531
9234
  }
10532
9235
  function StructWithRest(schema, records) {
10533
- return make18(structWithRest(schema.ast, records.map(getAST)), {
9236
+ return make17(structWithRest(schema.ast, records.map(getAST)), {
10534
9237
  schema,
10535
9238
  records
10536
9239
  });
10537
9240
  }
10538
- function makeTuple(ast, elements) {
10539
- return make18(ast, {
10540
- elements,
10541
- mapElements(f, options) {
10542
- const elements = f(this.elements);
10543
- return makeTuple(tuple(elements, options?.unsafePreserveChecks ? this.ast.checks : undefined), elements);
10544
- }
10545
- });
10546
- }
10547
- function Tuple2(elements) {
10548
- return makeTuple(tuple(elements), elements);
10549
- }
10550
- var ArraySchema = /* @__PURE__ */ lambda((schema) => make18(new Arrays(false, [], [schema.ast]), {
9241
+ var ArraySchema = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [], [schema.ast]), {
10551
9242
  value: schema
10552
9243
  }));
10553
- var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make18(new Arrays(false, [schema.ast], [schema.ast]), {
9244
+ var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make17(new Arrays(false, [schema.ast], [schema.ast]), {
10554
9245
  value: schema
10555
9246
  }));
10556
9247
  function makeUnion(ast, members) {
10557
- return make18(ast, {
9248
+ return make17(ast, {
10558
9249
  members,
10559
9250
  mapMembers(f, options) {
10560
9251
  const members = f(this.members);
@@ -10567,7 +9258,7 @@ function Union(members, options) {
10567
9258
  }
10568
9259
  function Literals(literals) {
10569
9260
  const members = literals.map(Literal);
10570
- return make18(union(members, undefined, undefined), {
9261
+ return make17(union(members, undefined, undefined), {
10571
9262
  literals,
10572
9263
  members,
10573
9264
  mapMembers(f) {
@@ -10584,18 +9275,18 @@ function Literals(literals) {
10584
9275
  var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
10585
9276
  var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
10586
9277
  function suspend4(f) {
10587
- return make18(new Suspend(() => f().ast));
9278
+ return make17(new Suspend(() => f().ast));
10588
9279
  }
10589
9280
  function decodeTo2(to, transformation) {
10590
9281
  return (from) => {
10591
- return make18(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
9282
+ return make17(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
10592
9283
  from,
10593
9284
  to
10594
9285
  });
10595
9286
  };
10596
9287
  }
10597
9288
  function withConstructorDefault2(defaultValue) {
10598
- return (schema) => make18(withConstructorDefault(schema.ast, defaultValue), {
9289
+ return (schema) => make17(withConstructorDefault(schema.ast, defaultValue), {
10599
9290
  schema
10600
9291
  });
10601
9292
  }
@@ -10671,7 +9362,7 @@ function isBase64(annotations) {
10671
9362
  ...annotations
10672
9363
  });
10673
9364
  }
10674
- var Finite = /* @__PURE__ */ make18(finite);
9365
+ var Finite = /* @__PURE__ */ make17(finite);
10675
9366
  function makeIsGreaterThanOrEqualTo(options) {
10676
9367
  const gte = isGreaterThanOrEqualTo2(options.order);
10677
9368
  const formatter = options.formatter ?? format;
@@ -10941,7 +9632,7 @@ function Defect(options) {
10941
9632
  defectSchemaCache[key] = schema;
10942
9633
  return schema;
10943
9634
  }
10944
- var RegExp3 = /* @__PURE__ */ instanceOf(globalThis.RegExp, {
9635
+ var RegExp2 = /* @__PURE__ */ instanceOf(globalThis.RegExp, {
10945
9636
  representation: {
10946
9637
  id: "effect/schema/RegExp",
10947
9638
  payload: null
@@ -11059,7 +9750,7 @@ var URLSearchParams2 = /* @__PURE__ */ instanceOf(globalThis.URLSearchParams, {
11059
9750
  expected: "URLSearchParams",
11060
9751
  toCodecJson: () => link()(String4.annotate({
11061
9752
  expected: "a query string that will be decoded as URLSearchParams"
11062
- }), transform2({
9753
+ }), transform({
11063
9754
  decode: (e) => new globalThis.URLSearchParams(e),
11064
9755
  encode: (params) => params.toString()
11065
9756
  }))
@@ -11125,7 +9816,7 @@ function CauseReason(error, defect) {
11125
9816
  }), Struct({
11126
9817
  _tag: Literal("Interrupt"),
11127
9818
  fiberId: UndefinedOr(Finite)
11128
- })]), transform2({
9819
+ })]), transform({
11129
9820
  decode: (e) => {
11130
9821
  switch (e._tag) {
11131
9822
  case "Fail":
@@ -11157,7 +9848,7 @@ function CauseReason(error, defect) {
11157
9848
  }
11158
9849
  }))
11159
9850
  });
11160
- return make18(schema.ast, {
9851
+ return make17(schema.ast, {
11161
9852
  error,
11162
9853
  defect
11163
9854
  });
@@ -11187,14 +9878,14 @@ function Cause(error, defect) {
11187
9878
  importDeclarations: [`import * as Cause from "effect/Cause"`]
11188
9879
  }),
11189
9880
  expected: "Cause",
11190
- toCodec: ([error, defect]) => link()(ArraySchema(CauseReason(error, defect)), transform2({
9881
+ toCodec: ([error, defect]) => link()(ArraySchema(CauseReason(error, defect)), transform({
11191
9882
  decode: fromReasons,
11192
9883
  encode: ({
11193
9884
  reasons: failures
11194
9885
  }) => failures
11195
9886
  }))
11196
9887
  });
11197
- return make18(schema.ast, {
9888
+ return make17(schema.ast, {
11198
9889
  error,
11199
9890
  defect
11200
9891
  });
@@ -11244,7 +9935,7 @@ function Exit(value, error, defect) {
11244
9935
  }), Struct({
11245
9936
  _tag: Literal("Failure"),
11246
9937
  cause: Cause(error, defect)
11247
- })]), transform2({
9938
+ })]), transform({
11248
9939
  decode: (e) => e._tag === "Success" ? succeed3(e.value) : failCause2(e.cause),
11249
9940
  encode: (exit) => isSuccess2(exit) ? {
11250
9941
  _tag: "Success",
@@ -11255,7 +9946,7 @@ function Exit(value, error, defect) {
11255
9946
  }
11256
9947
  }))
11257
9948
  });
11258
- return make18(schema.ast, {
9949
+ return make17(schema.ast, {
11259
9950
  value,
11260
9951
  error,
11261
9952
  defect
@@ -11345,7 +10036,7 @@ function makeClassTrusted(self, fields) {
11345
10036
  });
11346
10037
  }
11347
10038
  function getClassTransformation(self) {
11348
- return new Transformation(transform((input) => makeClassTrusted(self, input)), passthrough());
10039
+ return new Transformation(transform2((input) => makeClassTrusted(self, input)), passthrough());
11349
10040
  }
11350
10041
  function getClassTypeId(identifier) {
11351
10042
  return `~effect/Schema/Class/${identifier}`;
@@ -11359,7 +10050,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
11359
10050
  const ClassTypeId = getClassTypeId(identifier);
11360
10051
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
11361
10052
  const transformation = getClassTransformation(self);
11362
- const to = make18(new Declaration([from.ast], () => (input, ast, options) => {
10053
+ const to = make17(new Declaration([from.ast], () => (input, ast, options) => {
11363
10054
  return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
11364
10055
  }, {
11365
10056
  identifier,
@@ -11410,13 +10101,9 @@ var TaggedError2 = (identifier) => {
11410
10101
  function toEquivalence(schema) {
11411
10102
  return toEquivalence2(schema.ast);
11412
10103
  }
11413
- function toJsonSchemaDocument(schema, options) {
11414
- const document = toRepresentation(toCodecJsonAST(schema.ast), options);
11415
- return toJsonSchemaDocument2(document, options);
11416
- }
11417
10104
  var toCodecJson = toCodecJson2;
11418
10105
  var toCodecStringTree = toCodecStringTree2;
11419
- var Json = /* @__PURE__ */ make18(/* @__PURE__ */ annotate(Json2, {
10106
+ var Json = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json2, {
11420
10107
  toCode: () => ({
11421
10108
  runtime: "Schema.Json",
11422
10109
  Type: "Schema.Json"
@@ -11433,4 +10120,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
11433
10120
  var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
11434
10121
  var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
11435
10122
 
11436
- export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make15, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, Service2, makeUnsafe4, empty3, make16, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make17, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build2, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, while_, setInputType, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceFirst, filter2, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make18, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
10123
+ export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceFirst, filter2, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };