chofex-cli 0.1.80 → 0.1.83

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 (2) hide show
  1. package/dist/index.js +556 -269
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -340,7 +340,7 @@ var require_errors = __commonJS((exports, module) => {
340
340
  toVercelCliError: () => toVercelCliError
341
341
  });
342
342
  module.exports = __toCommonJS(errors_exports);
343
- var import_promises3 = __require("node:fs/promises");
343
+ var import_promises4 = __require("node:fs/promises");
344
344
 
345
345
  class VercelCliError2 extends Error {
346
346
  constructor(options) {
@@ -378,7 +378,7 @@ var require_errors = __commonJS((exports, module) => {
378
378
  }
379
379
  async function assertValidCwd(cwd) {
380
380
  try {
381
- if (!(await (0, import_promises3.stat)(cwd)).isDirectory()) {
381
+ if (!(await (0, import_promises4.stat)(cwd)).isDirectory()) {
382
382
  throw new Error("not a directory");
383
383
  }
384
384
  } catch {
@@ -2435,12 +2435,12 @@ var require_fsutils = __commonJS((exports, module) => {
2435
2435
  statIfExists: () => statIfExists
2436
2436
  });
2437
2437
  module.exports = __toCommonJS(fsutils_exports);
2438
- var import_promises3 = __require("node:fs/promises");
2438
+ var import_promises4 = __require("node:fs/promises");
2439
2439
  var import_node_path = __toESM2(__require("node:path"));
2440
2440
  var import_errutils = require_errutils();
2441
2441
  async function getCanonicalPath(filePath) {
2442
2442
  try {
2443
- return await (0, import_promises3.realpath)(filePath);
2443
+ return await (0, import_promises4.realpath)(filePath);
2444
2444
  } catch {
2445
2445
  return filePath;
2446
2446
  }
@@ -2463,7 +2463,7 @@ var require_fsutils = __commonJS((exports, module) => {
2463
2463
  }
2464
2464
  async function statIfExists(filePath) {
2465
2465
  try {
2466
- return { stats: await (0, import_promises3.stat)(filePath) };
2466
+ return { stats: await (0, import_promises4.stat)(filePath) };
2467
2467
  } catch (error2) {
2468
2468
  if ((0, import_errutils.isMissingPathError)(error2)) {
2469
2469
  return { missing: true };
@@ -2519,7 +2519,7 @@ var require_safety = __commonJS((exports, module) => {
2519
2519
  getUnsafeStatsReason: () => getUnsafeStatsReason
2520
2520
  });
2521
2521
  module.exports = __toCommonJS(safety_exports);
2522
- var import_promises3 = __require("node:fs/promises");
2522
+ var import_promises4 = __require("node:fs/promises");
2523
2523
  var import_node_path = __toESM2(__require("node:path"));
2524
2524
  var import_errutils = require_errutils();
2525
2525
  var import_fsutils = require_fsutils();
@@ -2602,14 +2602,14 @@ var require_safety = __commonJS((exports, module) => {
2602
2602
  return reason ? `${filePath} is ${reason}` : null;
2603
2603
  }
2604
2604
  async function getUnsafeDirectoryReason(directory3) {
2605
- const stats = await (0, import_promises3.stat)(directory3);
2605
+ const stats = await (0, import_promises4.stat)(directory3);
2606
2606
  if (!stats.isDirectory()) {
2607
2607
  return "not a directory";
2608
2608
  }
2609
2609
  return getUnsafeStatsReason(stats);
2610
2610
  }
2611
2611
  async function getUnsafeFileReason(filePath) {
2612
- const stats = await (0, import_promises3.stat)(filePath);
2612
+ const stats = await (0, import_promises4.stat)(filePath);
2613
2613
  if (!stats.isFile()) {
2614
2614
  return "not a file";
2615
2615
  }
@@ -2666,7 +2666,7 @@ var require_lookup = __commonJS((exports, module) => {
2666
2666
  toVercelCliInvocation: () => toVercelCliInvocation
2667
2667
  });
2668
2668
  module.exports = __toCommonJS(lookup_exports);
2669
- var import_promises3 = __require("node:fs/promises");
2669
+ var import_promises4 = __require("node:fs/promises");
2670
2670
  var import_node_path = __toESM2(__require("node:path"));
2671
2671
  var import_envpath = require_envpath();
2672
2672
  var import_errutils = require_errutils();
@@ -2756,7 +2756,7 @@ var require_lookup = __commonJS((exports, module) => {
2756
2756
  }
2757
2757
  async function canAccessCommandCandidate(candidate, localBinSearch, diagnostics) {
2758
2758
  try {
2759
- await (0, import_promises3.access)(candidate, process.platform === "win32" ? import_promises3.constants.F_OK : import_promises3.constants.F_OK | import_promises3.constants.X_OK);
2759
+ await (0, import_promises4.access)(candidate, process.platform === "win32" ? import_promises4.constants.F_OK : import_promises4.constants.F_OK | import_promises4.constants.X_OK);
2760
2760
  return true;
2761
2761
  } catch (error2) {
2762
2762
  if (!(0, import_errutils.isMissingPathError)(error2)) {
@@ -2773,10 +2773,10 @@ var require_lookup = __commonJS((exports, module) => {
2773
2773
  recordSkippedLocalBin(diagnostics, candidate, "reason" in localBinCandidate ? localBinCandidate.reason : `local bin is not accessible: ${(0, import_errutils.getErrorMessage)(error2)}`);
2774
2774
  }
2775
2775
  async function resolveCommandCandidate(command, candidate, localBinSearch, diagnostics) {
2776
- if (!(await (0, import_promises3.stat)(candidate)).isFile()) {
2776
+ if (!(await (0, import_promises4.stat)(candidate)).isFile()) {
2777
2777
  return null;
2778
2778
  }
2779
- const realPath2 = await (0, import_promises3.realpath)(candidate);
2779
+ const realPath2 = await (0, import_promises4.realpath)(candidate);
2780
2780
  const localBinCandidate = await classifyPathLocalBinCandidate(candidate, localBinSearch.directories);
2781
2781
  if (!localBinCandidate) {
2782
2782
  return { realPath: realPath2, source: "path" };
@@ -2860,7 +2860,7 @@ var require_lookup = __commonJS((exports, module) => {
2860
2860
  async function getProjectRootMarker(directory3) {
2861
2861
  const gitPath = import_node_path.default.join(directory3, ".git");
2862
2862
  try {
2863
- await (0, import_promises3.stat)(gitPath);
2863
+ await (0, import_promises4.stat)(gitPath);
2864
2864
  return { path: gitPath };
2865
2865
  } catch {}
2866
2866
  return null;
@@ -2869,11 +2869,11 @@ var require_lookup = __commonJS((exports, module) => {
2869
2869
  const resolvedFilePath = import_node_path.default.resolve(filePath);
2870
2870
  let canonicalFilePath = resolvedFilePath;
2871
2871
  try {
2872
- canonicalFilePath = import_node_path.default.join(await (0, import_promises3.realpath)(import_node_path.default.dirname(resolvedFilePath)), import_node_path.default.basename(resolvedFilePath));
2872
+ canonicalFilePath = import_node_path.default.join(await (0, import_promises4.realpath)(import_node_path.default.dirname(resolvedFilePath)), import_node_path.default.basename(resolvedFilePath));
2873
2873
  } catch {}
2874
2874
  for (let localBinDirectory of localBinDirectories) {
2875
2875
  try {
2876
- localBinDirectory = await (0, import_promises3.realpath)(localBinDirectory);
2876
+ localBinDirectory = await (0, import_promises4.realpath)(localBinDirectory);
2877
2877
  } catch {}
2878
2878
  if (canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`)) {
2879
2879
  return localBinDirectory;
@@ -2885,7 +2885,7 @@ var require_lookup = __commonJS((exports, module) => {
2885
2885
  const candidateDirectory = import_node_path.default.resolve(import_node_path.default.dirname(filePath));
2886
2886
  const directories = [candidateDirectory];
2887
2887
  try {
2888
- const canonicalDirectory = await (0, import_promises3.realpath)(candidateDirectory);
2888
+ const canonicalDirectory = await (0, import_promises4.realpath)(candidateDirectory);
2889
2889
  if (!directories.includes(canonicalDirectory)) {
2890
2890
  directories.push(canonicalDirectory);
2891
2891
  }
@@ -2938,8 +2938,8 @@ var require_lookup = __commonJS((exports, module) => {
2938
2938
  }
2939
2939
  async function getLocalVercelPackage(nodeModulesDirectory) {
2940
2940
  const packageDirectory = import_node_path.default.join(nodeModulesDirectory, "vercel");
2941
- const realNodeModulesDirectory = await (0, import_promises3.realpath)(nodeModulesDirectory);
2942
- const realPackageDirectory = await (0, import_promises3.realpath)(packageDirectory);
2941
+ const realNodeModulesDirectory = await (0, import_promises4.realpath)(nodeModulesDirectory);
2942
+ const realPackageDirectory = await (0, import_promises4.realpath)(packageDirectory);
2943
2943
  if (!(0, import_fsutils.isSubpath)(realNodeModulesDirectory, realPackageDirectory)) {
2944
2944
  return {
2945
2945
  reason: "local vercel package resolves outside local node_modules"
@@ -2959,7 +2959,7 @@ var require_lookup = __commonJS((exports, module) => {
2959
2959
  }
2960
2960
  async function readLocalVercelPackageJson(realPackageDirectory) {
2961
2961
  const packageJsonPath = import_node_path.default.join(realPackageDirectory, "package.json");
2962
- const realPackageJsonPath = await (0, import_promises3.realpath)(packageJsonPath);
2962
+ const realPackageJsonPath = await (0, import_promises4.realpath)(packageJsonPath);
2963
2963
  if (!(0, import_fsutils.isSubpath)(realPackageDirectory, realPackageJsonPath)) {
2964
2964
  return { reason: "local vercel package.json resolves outside package" };
2965
2965
  }
@@ -2969,7 +2969,7 @@ var require_lookup = __commonJS((exports, module) => {
2969
2969
  reason: `local vercel package.json is unsafe: ${unsafePackageJsonReason}`
2970
2970
  };
2971
2971
  }
2972
- const packageJson = JSON.parse(await (0, import_promises3.readFile)(realPackageJsonPath, "utf8"));
2972
+ const packageJson = JSON.parse(await (0, import_promises4.readFile)(realPackageJsonPath, "utf8"));
2973
2973
  if (packageJson.name !== "vercel") {
2974
2974
  return {
2975
2975
  reason: 'local vercel package.json does not have name "vercel"'
@@ -2984,7 +2984,7 @@ var require_lookup = __commonJS((exports, module) => {
2984
2984
  return { reason: "local vercel package does not declare bin.vercel" };
2985
2985
  }
2986
2986
  const declaredBinPath = import_node_path.default.resolve(realPackageDirectory, binTarget);
2987
- const realDeclaredBinPath = await (0, import_promises3.realpath)(declaredBinPath);
2987
+ const realDeclaredBinPath = await (0, import_promises4.realpath)(declaredBinPath);
2988
2988
  if (!(0, import_fsutils.isSubpath)(realPackageDirectory, realDeclaredBinPath)) {
2989
2989
  return { reason: "local vercel package bin resolves outside package" };
2990
2990
  }
@@ -2996,7 +2996,7 @@ var require_lookup = __commonJS((exports, module) => {
2996
2996
  }
2997
2997
  if (process.platform !== "win32" && !(0, import_fsutils.isNodeScript)(realDeclaredBinPath)) {
2998
2998
  try {
2999
- await (0, import_promises3.access)(realDeclaredBinPath, import_promises3.constants.F_OK | import_promises3.constants.X_OK);
2999
+ await (0, import_promises4.access)(realDeclaredBinPath, import_promises4.constants.F_OK | import_promises4.constants.X_OK);
3000
3000
  } catch (error2) {
3001
3001
  return {
3002
3002
  reason: `local vercel package bin is not executable: ${(0, import_errutils.getErrorMessage)(error2)}`
@@ -3053,17 +3053,17 @@ var require_exec = __commonJS((exports, module) => {
3053
3053
  var import_node_path = __toESM2(__require("node:path"));
3054
3054
  var import_execa = __toESM2(require_execa());
3055
3055
  var import_envpath = require_envpath();
3056
- var import_errors7 = require_errors();
3056
+ var import_errors8 = require_errors();
3057
3057
  var import_lookup = require_lookup();
3058
3058
  async function execVercelCli2(args2, options = {}) {
3059
3059
  const cwd = import_node_path.default.resolve(options.cwd ?? process.cwd());
3060
- await (0, import_errors7.assertValidCwd)(cwd);
3060
+ await (0, import_errors8.assertValidCwd)(cwd);
3061
3061
  const env = mergeExecEnv(options.env);
3062
3062
  const pathValue = (0, import_envpath.getEnvPath)(env);
3063
3063
  try {
3064
3064
  return await execResolvedVercelCli(args2, options, cwd, env, pathValue);
3065
3065
  } catch (error2) {
3066
- if (error2 instanceof import_errors7.VercelCliError && error2.code === "VERCEL_CLI_NOT_FOUND") {
3066
+ if (error2 instanceof import_errors8.VercelCliError && error2.code === "VERCEL_CLI_NOT_FOUND") {
3067
3067
  (0, import_lookup.clearCachedCliInvocation)(cwd, pathValue);
3068
3068
  return await execResolvedVercelCli(args2, options, cwd, env, pathValue);
3069
3069
  }
@@ -3090,15 +3090,15 @@ var require_exec = __commonJS((exports, module) => {
3090
3090
  const { stdout, stderr } = await (0, import_execa.default)(invocation.command, [...invocation.commandArgs, ...args2], execaOptions);
3091
3091
  return { stdout, stderr, invocation };
3092
3092
  } catch (error2) {
3093
- throw (0, import_errors7.toVercelCliError)(invocation, error2);
3093
+ throw (0, import_errors8.toVercelCliError)(invocation, error2);
3094
3094
  }
3095
3095
  }
3096
3096
  async function resolveInvocationOrThrow(cwd, pathValue) {
3097
3097
  const resolution = await (0, import_lookup.resolveCachedCliInvocation)(cwd, pathValue);
3098
3098
  if (!resolution.found) {
3099
- throw new import_errors7.VercelCliError({
3099
+ throw new import_errors8.VercelCliError({
3100
3100
  code: "VERCEL_CLI_NOT_FOUND",
3101
- message: (0, import_errors7.getCliNotFoundMessage)(resolution.diagnostics)
3101
+ message: (0, import_errors8.getCliNotFoundMessage)(resolution.diagnostics)
3102
3102
  });
3103
3103
  }
3104
3104
  return (0, import_lookup.toVercelCliInvocation)(resolution);
@@ -3139,13 +3139,13 @@ var require_dist = __commonJS((exports, module) => {
3139
3139
  var __toCommonJS = (mod) => __copyProps(__defProp2({}, "__esModule", { value: true }), mod);
3140
3140
  var src_exports = {};
3141
3141
  __export2(src_exports, {
3142
- VercelCliError: () => import_errors7.VercelCliError,
3142
+ VercelCliError: () => import_errors8.VercelCliError,
3143
3143
  clearVercelCliLookupCache: () => import_lookup.clearVercelCliLookupCache,
3144
3144
  execVercelCli: () => import_exec.execVercelCli,
3145
3145
  findVercelCli: () => import_lookup.findVercelCli
3146
3146
  });
3147
3147
  module.exports = __toCommonJS(src_exports);
3148
- var import_errors7 = require_errors();
3148
+ var import_errors8 = require_errors();
3149
3149
  var import_exec = require_exec();
3150
3150
  var import_lookup = require_lookup();
3151
3151
  });
@@ -13836,7 +13836,7 @@ var require_util2 = __commonJS((exports, module) => {
13836
13836
  var { performance: performance2 } = __require("node:perf_hooks");
13837
13837
  var { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require_util();
13838
13838
  var assert2 = __require("node:assert");
13839
- var { isUint8Array } = __require("node:util/types");
13839
+ var { isUint8Array: isUint8Array2 } = __require("node:util/types");
13840
13840
  var { webidl } = require_webidl();
13841
13841
  var supportedHashes = [];
13842
13842
  var crypto2;
@@ -14390,7 +14390,7 @@ var require_util2 = __commonJS((exports, module) => {
14390
14390
  if (done4) {
14391
14391
  return Buffer.concat(bytes, byteLength);
14392
14392
  }
14393
- if (!isUint8Array(chunk)) {
14393
+ if (!isUint8Array2(chunk)) {
14394
14394
  throw new TypeError("Received non-Uint8Array chunk");
14395
14395
  }
14396
14396
  bytes.push(chunk);
@@ -20086,7 +20086,7 @@ var require_mock_utils = __commonJS((exports, module) => {
20086
20086
  var { STATUS_CODES } = __require("node:http");
20087
20087
  var {
20088
20088
  types: {
20089
- isPromise
20089
+ isPromise: isPromise2
20090
20090
  }
20091
20091
  } = __require("node:util");
20092
20092
  function matchValue(match9, value3) {
@@ -20284,7 +20284,7 @@ var require_mock_utils = __commonJS((exports, module) => {
20284
20284
  function handleReply(mockDispatches, _data = data) {
20285
20285
  const optsHeaders = Array.isArray(opts.headers) ? buildHeadersFromArray(opts.headers) : opts.headers;
20286
20286
  const body = typeof _data === "function" ? _data({ ...opts, headers: optsHeaders }) : _data;
20287
- if (isPromise(body)) {
20287
+ if (isPromise2(body)) {
20288
20288
  body.then((newData) => handleReply(mockDispatches, newData));
20289
20289
  return;
20290
20290
  }
@@ -27833,6 +27833,68 @@ var getAllObjectKeys = (obj) => {
27833
27833
  var byReferenceInstances = /* @__PURE__ */ new WeakSet;
27834
27834
 
27835
27835
  // ../../node_modules/effect/dist/Predicate.js
27836
+ var exports_Predicate = {};
27837
+ __export(exports_Predicate, {
27838
+ xor: () => xor,
27839
+ some: () => some,
27840
+ or: () => or,
27841
+ not: () => not,
27842
+ nor: () => nor,
27843
+ nand: () => nand,
27844
+ mapInput: () => mapInput,
27845
+ isUnknown: () => isUnknown,
27846
+ isUndefined: () => isUndefined,
27847
+ isUint8Array: () => isUint8Array,
27848
+ isTupleOfAtLeast: () => isTupleOfAtLeast,
27849
+ isTupleOf: () => isTupleOf,
27850
+ isTruthy: () => isTruthy,
27851
+ isTagged: () => isTagged,
27852
+ isSymbol: () => isSymbol,
27853
+ isString: () => isString,
27854
+ isSet: () => isSet,
27855
+ isRegExp: () => isRegExp,
27856
+ isReadonlyObject: () => isReadonlyObject,
27857
+ isPropertyKey: () => isPropertyKey,
27858
+ isPromiseLike: () => isPromiseLike,
27859
+ isPromise: () => isPromise,
27860
+ isObjectOrArray: () => isObjectOrArray,
27861
+ isObjectKeyword: () => isObjectKeyword,
27862
+ isObject: () => isObject,
27863
+ isNumber: () => isNumber,
27864
+ isNullish: () => isNullish,
27865
+ isNull: () => isNull,
27866
+ isNotUndefined: () => isNotUndefined,
27867
+ isNotNullish: () => isNotNullish,
27868
+ isNotNull: () => isNotNull,
27869
+ isNever: () => isNever,
27870
+ isMap: () => isMap,
27871
+ isIterable: () => isIterable,
27872
+ isFunction: () => isFunction,
27873
+ isError: () => isError,
27874
+ isDate: () => isDate,
27875
+ isBoolean: () => isBoolean,
27876
+ isBigInt: () => isBigInt,
27877
+ implies: () => implies,
27878
+ hasProperty: () => hasProperty,
27879
+ every: () => every,
27880
+ eqv: () => eqv,
27881
+ compose: () => compose,
27882
+ and: () => and,
27883
+ Tuple: () => Tuple,
27884
+ Struct: () => Struct
27885
+ });
27886
+ var mapInput = /* @__PURE__ */ dual(2, (self, f) => (b) => self(f(b)));
27887
+ var isTupleOf = /* @__PURE__ */ dual(2, (self, n) => self.length === n);
27888
+ var isTupleOfAtLeast = /* @__PURE__ */ dual(2, (self, n) => self.length >= n);
27889
+ function isTruthy(input) {
27890
+ return !!input;
27891
+ }
27892
+ function isSet(input) {
27893
+ return input instanceof Set;
27894
+ }
27895
+ function isMap(input) {
27896
+ return input instanceof Map;
27897
+ }
27836
27898
  function isString(input) {
27837
27899
  return typeof input === "string";
27838
27900
  }
@@ -27860,6 +27922,9 @@ function isUndefined(input) {
27860
27922
  function isNotUndefined(input) {
27861
27923
  return input !== undefined;
27862
27924
  }
27925
+ function isNull(input) {
27926
+ return input === null;
27927
+ }
27863
27928
  function isNotNull(input) {
27864
27929
  return input !== null;
27865
27930
  }
@@ -27875,9 +27940,15 @@ function isNever(_) {
27875
27940
  function isUnknown(_) {
27876
27941
  return true;
27877
27942
  }
27943
+ function isObjectOrArray(input) {
27944
+ return typeof input === "object" && input !== null;
27945
+ }
27878
27946
  function isObject(input) {
27879
27947
  return typeof input === "object" && input !== null && !Array.isArray(input);
27880
27948
  }
27949
+ function isReadonlyObject(input) {
27950
+ return isObject(input);
27951
+ }
27881
27952
  function isObjectKeyword(input) {
27882
27953
  return typeof input === "object" && input !== null || isFunction(input);
27883
27954
  }
@@ -27886,9 +27957,76 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag) => hasProperty(self, "_tag")
27886
27957
  function isError(input) {
27887
27958
  return input instanceof Error;
27888
27959
  }
27960
+ function isUint8Array(input) {
27961
+ return input instanceof Uint8Array;
27962
+ }
27963
+ function isDate(input) {
27964
+ return input instanceof Date;
27965
+ }
27889
27966
  function isIterable(input) {
27890
27967
  return hasProperty(input, Symbol.iterator) || isString(input);
27891
27968
  }
27969
+ function isPromise(input) {
27970
+ return hasProperty(input, "then") && "catch" in input && isFunction(input.then) && isFunction(input.catch);
27971
+ }
27972
+ function isPromiseLike(input) {
27973
+ return hasProperty(input, "then") && isFunction(input.then);
27974
+ }
27975
+ function isRegExp(input) {
27976
+ return input instanceof RegExp;
27977
+ }
27978
+ var compose = /* @__PURE__ */ dual(2, (ab, bc) => (a) => ab(a) && bc(a));
27979
+ function Tuple(elements) {
27980
+ return (as) => {
27981
+ for (let i = 0;i < elements.length; i++) {
27982
+ if (elements[i](as[i]) === false) {
27983
+ return false;
27984
+ }
27985
+ }
27986
+ return true;
27987
+ };
27988
+ }
27989
+ function Struct(fields) {
27990
+ const keys = Object.keys(fields);
27991
+ return (a) => {
27992
+ for (const key of keys) {
27993
+ if (!fields[key](a[key])) {
27994
+ return false;
27995
+ }
27996
+ }
27997
+ return true;
27998
+ };
27999
+ }
28000
+ function not(self) {
28001
+ return (a) => !self(a);
28002
+ }
28003
+ var or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
28004
+ var and = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) && that(a));
28005
+ var xor = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) !== that(a));
28006
+ var eqv = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) === that(a));
28007
+ var implies = /* @__PURE__ */ dual(2, (antecedent, consequent) => (a) => antecedent(a) ? consequent(a) : true);
28008
+ var nor = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) || that(a)));
28009
+ var nand = /* @__PURE__ */ dual(2, (self, that) => (a) => !(self(a) && that(a)));
28010
+ function every(collection) {
28011
+ return (a) => {
28012
+ for (const p of collection) {
28013
+ if (!p(a)) {
28014
+ return false;
28015
+ }
28016
+ }
28017
+ return true;
28018
+ };
28019
+ }
28020
+ function some(collection) {
28021
+ return (a) => {
28022
+ for (const p of collection) {
28023
+ if (p(a)) {
28024
+ return true;
28025
+ }
28026
+ }
28027
+ return false;
28028
+ };
28029
+ }
27892
28030
 
27893
28031
  // ../../node_modules/effect/dist/Hash.js
27894
28032
  var symbol = "~effect/interfaces/Hash";
@@ -28836,7 +28974,7 @@ __export(exports_Option, {
28836
28974
  toRefinement: () => toRefinement,
28837
28975
  toArray: () => toArray,
28838
28976
  tap: () => tap,
28839
- some: () => some2,
28977
+ some: () => some3,
28840
28978
  reduceCompact: () => reduceCompact,
28841
28979
  productMany: () => productMany,
28842
28980
  product: () => product,
@@ -29002,7 +29140,7 @@ var isOption = (input) => hasProperty(input, TypeId);
29002
29140
  var isNone = (fa) => fa._tag === "None";
29003
29141
  var isSome = (fa) => fa._tag === "Some";
29004
29142
  var none = /* @__PURE__ */ Object.create(NoneProto);
29005
- var some = (value) => {
29143
+ var some2 = (value) => {
29006
29144
  const a = Object.create(SomeProto);
29007
29145
  a.value = value;
29008
29146
  return a;
@@ -29073,8 +29211,8 @@ var succeed = (success) => {
29073
29211
  a.success = success;
29074
29212
  return a;
29075
29213
  };
29076
- var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
29077
- var getSuccess = (self) => isFailure(self) ? none : some(self.success);
29214
+ var getFailure = (self) => isSuccess(self) ? none : some2(self.failure);
29215
+ var getSuccess = (self) => isFailure(self) ? none : some2(self.success);
29078
29216
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? fail(onNone()) : succeed(self.value));
29079
29217
 
29080
29218
  // ../../node_modules/effect/dist/Order.js
@@ -29091,8 +29229,8 @@ var Number2 = /* @__PURE__ */ make4((self, that) => {
29091
29229
  return self < that ? -1 : 1;
29092
29230
  });
29093
29231
  var BigInt2 = /* @__PURE__ */ make4((self, that) => self < that ? -1 : 1);
29094
- var mapInput = /* @__PURE__ */ dual(2, (self, f) => make4((b1, b2) => self(f(b1), f(b2))));
29095
- var Date2 = /* @__PURE__ */ mapInput(Number2, (date) => date.getTime());
29232
+ var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make4((b1, b2) => self(f(b1), f(b2))));
29233
+ var Date2 = /* @__PURE__ */ mapInput2(Number2, (date) => date.getTime());
29096
29234
  var isLessThan = (O) => dual(2, (self, that) => O(self, that) === -1);
29097
29235
  var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
29098
29236
  var isLessThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== 1);
@@ -29104,7 +29242,7 @@ var isBetween = (O) => dual(2, (self, options) => !isLessThan(O)(self, options.m
29104
29242
 
29105
29243
  // ../../node_modules/effect/dist/Option.js
29106
29244
  var none2 = () => none;
29107
- var some2 = some;
29245
+ var some3 = some2;
29108
29246
  var isOption2 = isOption;
29109
29247
  var isNone2 = isNone;
29110
29248
  var isSome2 = isSome;
@@ -29115,7 +29253,7 @@ var match = /* @__PURE__ */ dual(2, (self, {
29115
29253
  var toRefinement = (f) => (a) => isSome2(f(a));
29116
29254
  var fromIterable = (collection) => {
29117
29255
  for (const a of collection) {
29118
- return some2(a);
29256
+ return some3(a);
29119
29257
  }
29120
29258
  return none2();
29121
29259
  };
@@ -29123,7 +29261,7 @@ var getSuccess2 = getSuccess;
29123
29261
  var getFailure2 = getFailure;
29124
29262
  var getOrElse = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? onNone() : self.value);
29125
29263
  var orElse = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? that() : self);
29126
- var orElseSome = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? some2(onNone()) : self);
29264
+ var orElseSome = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? some3(onNone()) : self);
29127
29265
  var orElseResult = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? map(that(), succeed) : map(self, fail));
29128
29266
  var firstSomeOf = (collection) => {
29129
29267
  let out = none2();
@@ -29134,15 +29272,15 @@ var firstSomeOf = (collection) => {
29134
29272
  }
29135
29273
  return out;
29136
29274
  };
29137
- var fromNullishOr = (a) => a == null ? none2() : some2(a);
29138
- var fromUndefinedOr = (a) => a === undefined ? none2() : some2(a);
29139
- var fromNullOr = (a) => a === null ? none2() : some2(a);
29275
+ var fromNullishOr = (a) => a == null ? none2() : some3(a);
29276
+ var fromUndefinedOr = (a) => a === undefined ? none2() : some3(a);
29277
+ var fromNullOr = (a) => a === null ? none2() : some3(a);
29140
29278
  var liftNullishOr = (f) => (...a) => fromNullishOr(f(...a));
29141
29279
  var getOrNull = /* @__PURE__ */ getOrElse(constNull);
29142
29280
  var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
29143
29281
  var liftThrowable = (f) => (...a) => {
29144
29282
  try {
29145
- return some2(f(...a));
29283
+ return some3(f(...a));
29146
29284
  } catch {
29147
29285
  return none2();
29148
29286
  }
@@ -29154,14 +29292,14 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
29154
29292
  throw onNone();
29155
29293
  });
29156
29294
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
29157
- var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some2(f(self.value)));
29295
+ var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some3(f(self.value)));
29158
29296
  var as = /* @__PURE__ */ dual(2, (self, b) => map(self, () => b));
29159
29297
  var asVoid = /* @__PURE__ */ as(undefined);
29160
- var void_ = /* @__PURE__ */ some2(undefined);
29298
+ var void_ = /* @__PURE__ */ some3(undefined);
29161
29299
  var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
29162
29300
  var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
29163
29301
  const b = isFunction(f) ? f(a) : f;
29164
- return isOption2(b) ? b : some2(b);
29302
+ return isOption2(b) ? b : some3(b);
29165
29303
  }));
29166
29304
  var flatMapNullishOr = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : fromNullishOr(f(self.value)));
29167
29305
  var flatten = /* @__PURE__ */ flatMap(identity);
@@ -29169,7 +29307,7 @@ var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that)
29169
29307
  var zipLeft = /* @__PURE__ */ dual(2, (self, that) => tap(self, () => that));
29170
29308
  var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a) => flatMap(afb(a), bfc));
29171
29309
  var tap = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => map(f(a), () => a)));
29172
- var product = (self, that) => isSome2(self) && isSome2(that) ? some2([self.value, that.value]) : none2();
29310
+ var product = (self, that) => isSome2(self) && isSome2(that) ? some3([self.value, that.value]) : none2();
29173
29311
  var productMany = (self, collection) => {
29174
29312
  if (isNone2(self)) {
29175
29313
  return none2();
@@ -29181,7 +29319,7 @@ var productMany = (self, collection) => {
29181
29319
  }
29182
29320
  out.push(o.value);
29183
29321
  }
29184
- return some2(out);
29322
+ return some3(out);
29185
29323
  };
29186
29324
  var all = (input) => {
29187
29325
  if (Symbol.iterator in input) {
@@ -29192,7 +29330,7 @@ var all = (input) => {
29192
29330
  }
29193
29331
  out2.push(o.value);
29194
29332
  }
29195
- return some2(out2);
29333
+ return some3(out2);
29196
29334
  }
29197
29335
  const out = {};
29198
29336
  for (const key of Object.keys(input)) {
@@ -29202,7 +29340,7 @@ var all = (input) => {
29202
29340
  }
29203
29341
  assignProperty(out, key, o.value);
29204
29342
  }
29205
- return some2(out);
29343
+ return some3(out);
29206
29344
  };
29207
29345
  var zipWith = /* @__PURE__ */ dual(3, (self, that, f) => map(product(self, that), ([a, b]) => f(a, b)));
29208
29346
  var reduceCompact = /* @__PURE__ */ dual(3, (self, b, f) => {
@@ -29220,27 +29358,27 @@ var partitionMap = /* @__PURE__ */ dual(2, (self, f) => {
29220
29358
  return [none2(), none2()];
29221
29359
  }
29222
29360
  const e = f(self.value);
29223
- return isFailure(e) ? [some2(e.failure), none2()] : [none2(), some2(e.success)];
29361
+ return isFailure(e) ? [some3(e.failure), none2()] : [none2(), some3(e.success)];
29224
29362
  });
29225
29363
  var filterMap = /* @__PURE__ */ dual(2, (self, f) => {
29226
29364
  if (isNone2(self)) {
29227
29365
  return none2();
29228
29366
  }
29229
29367
  const next = f(self.value);
29230
- return isSuccess(next) ? some2(next.success) : none2();
29368
+ return isSuccess(next) ? some3(next.success) : none2();
29231
29369
  });
29232
- var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some2(self.value) : none2());
29370
+ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some3(self.value) : none2());
29233
29371
  var makeEquivalence = (isEquivalent) => make3((x, y) => isNone2(x) ? isNone2(y) : isNone2(y) ? false : isEquivalent(x.value, y.value));
29234
29372
  var makeOrder = (O) => make4((self, that) => isSome2(self) ? isSome2(that) ? O(self.value, that.value) : 1 : -1);
29235
29373
  var lift2 = (f) => dual(2, (self, that) => zipWith(self, that, f));
29236
- var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some2(b) : none2());
29374
+ var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some3(b) : none2());
29237
29375
  var containsWith = (isEquivalent) => dual(2, (self, a) => isNone2(self) ? false : isEquivalent(self.value, a));
29238
29376
  var contains = /* @__PURE__ */ containsWith(/* @__PURE__ */ asEquivalence());
29239
29377
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
29240
29378
  var bindTo2 = /* @__PURE__ */ bindTo(map);
29241
29379
  var let_2 = /* @__PURE__ */ let_(map);
29242
29380
  var bind2 = /* @__PURE__ */ bind(map, flatMap);
29243
- var Do = /* @__PURE__ */ some2({});
29381
+ var Do = /* @__PURE__ */ some3({});
29244
29382
  var gen = (...args2) => {
29245
29383
  const f = args2.length === 1 ? args2[0] : args2[1].bind(args2[0]);
29246
29384
  const iterator = f();
@@ -29252,7 +29390,7 @@ var gen = (...args2) => {
29252
29390
  }
29253
29391
  state = iterator.next(current.value);
29254
29392
  }
29255
- return some2(state.value);
29393
+ return some3(state.value);
29256
29394
  };
29257
29395
  function makeReducer(combiner) {
29258
29396
  return make2((self, that) => {
@@ -29260,19 +29398,19 @@ function makeReducer(combiner) {
29260
29398
  return that;
29261
29399
  if (isNone2(that))
29262
29400
  return self;
29263
- return some2(combiner.combine(self.value, that.value));
29401
+ return some3(combiner.combine(self.value, that.value));
29264
29402
  }, none2());
29265
29403
  }
29266
29404
  function makeCombinerFailFast(combiner) {
29267
29405
  return make((self, that) => {
29268
29406
  if (isNone2(self) || isNone2(that))
29269
29407
  return none2();
29270
- return some2(combiner.combine(self.value, that.value));
29408
+ return some3(combiner.combine(self.value, that.value));
29271
29409
  });
29272
29410
  }
29273
29411
  function makeReducerFailFast(reducer) {
29274
29412
  const combine2 = makeCombinerFailFast(reducer).combine;
29275
- const initialValue = some2(reducer.initialValue);
29413
+ const initialValue = some3(reducer.initialValue);
29276
29414
  return make2(combine2, initialValue, (collection) => {
29277
29415
  let out = initialValue;
29278
29416
  for (const value of collection) {
@@ -29477,8 +29615,8 @@ var serviceNotFoundError = (service) => {
29477
29615
  var getOption = /* @__PURE__ */ dual(2, (self, service) => {
29478
29616
  const value = lookup(self, service.key);
29479
29617
  if (value !== notFound)
29480
- return some2(value);
29481
- return isReference(service) ? some2(getDefaultValue(service)) : none2();
29618
+ return some3(value);
29619
+ return isReference(service) ? some3(getDefaultValue(service)) : none2();
29482
29620
  });
29483
29621
  var merge = /* @__PURE__ */ dual(2, (self, that) => {
29484
29622
  if (self.mapUnsafe.size === 0)
@@ -29644,11 +29782,11 @@ var bind3 = /* @__PURE__ */ bind(map2, flatMap2);
29644
29782
  var bindTo3 = /* @__PURE__ */ bindTo(map2);
29645
29783
  var let_3 = /* @__PURE__ */ let_(map2);
29646
29784
  var transposeOption = (self) => {
29647
- return isNone(self) ? succeedNone : map2(self.value, some);
29785
+ return isNone(self) ? succeedNone : map2(self.value, some2);
29648
29786
  };
29649
- var transposeMapOption = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? succeedNone : map2(f(self.value), some));
29787
+ var transposeMapOption = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? succeedNone : map2(f(self.value), some2));
29650
29788
  var succeedNone = /* @__PURE__ */ succeed2(none);
29651
- var succeedSome = (a) => succeed2(some(a));
29789
+ var succeedSome = (a) => succeed2(some2(a));
29652
29790
  var tap2 = /* @__PURE__ */ dual(2, (self, f) => {
29653
29791
  if (isSuccess2(self)) {
29654
29792
  f(self.success);
@@ -29663,7 +29801,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
29663
29801
  const o = f(a, i);
29664
29802
  if (isBoolean(o)) {
29665
29803
  if (o) {
29666
- return some2(a);
29804
+ return some3(a);
29667
29805
  }
29668
29806
  } else {
29669
29807
  if (isSome2(o)) {
@@ -29754,7 +29892,7 @@ var findFirstIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
29754
29892
  let i = 0;
29755
29893
  for (const a of self) {
29756
29894
  if (predicate(a, i)) {
29757
- return some2(i);
29895
+ return some3(i);
29758
29896
  }
29759
29897
  i++;
29760
29898
  }
@@ -29768,7 +29906,7 @@ var findLast = /* @__PURE__ */ dual(2, (self, f) => {
29768
29906
  const o = f(a, i);
29769
29907
  if (typeof o === "boolean") {
29770
29908
  if (o) {
29771
- return some2(a);
29909
+ return some3(a);
29772
29910
  }
29773
29911
  } else {
29774
29912
  if (isSome2(o)) {
@@ -31193,9 +31331,9 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
31193
31331
  }
31194
31332
  });
31195
31333
  var yieldNow = /* @__PURE__ */ yieldNowWith(0);
31196
- var succeedSome2 = (a) => succeed3(some2(a));
31334
+ var succeedSome2 = (a) => succeed3(some3(a));
31197
31335
  var succeedNone2 = /* @__PURE__ */ succeed3(/* @__PURE__ */ none2());
31198
- var transposeOption2 = (self) => isNone2(self) ? succeedNone2 : map5(self.value, some2);
31336
+ var transposeOption2 = (self) => isNone2(self) ? succeedNone2 : map5(self.value, some3);
31199
31337
  var failCauseSync = (evaluate2) => suspend(() => failCause(internalCall(evaluate2)));
31200
31338
  var die = (defect) => exitDie(defect);
31201
31339
  var failSync = (error) => suspend(() => fail3(internalCall(error)));
@@ -31409,7 +31547,7 @@ var as2 = /* @__PURE__ */ dual(2, (self, value) => {
31409
31547
  const b = succeed3(value);
31410
31548
  return flatMap3(self, (_) => b);
31411
31549
  });
31412
- var asSome = (self) => map5(self, some2);
31550
+ var asSome = (self) => map5(self, some3);
31413
31551
  var flip2 = (self) => matchEffect(self, {
31414
31552
  onFailure: succeed3,
31415
31553
  onSuccess: fail3
@@ -31783,7 +31921,7 @@ var ignoreCause = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, opt
31783
31921
  });
31784
31922
  var option = (self) => match5(self, {
31785
31923
  onFailure: none2,
31786
- onSuccess: some2
31924
+ onSuccess: some3
31787
31925
  });
31788
31926
  var result = (self) => matchEager(self, {
31789
31927
  onFailure: fail2,
@@ -32178,7 +32316,7 @@ var findFirst3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffe
32178
32316
  }));
32179
32317
  var findFirstLoop = (iterator, index, predicate, value) => flatMap3(predicate(value, index), (keep) => {
32180
32318
  if (keep) {
32181
- return succeed3(some2(value));
32319
+ return succeed3(some3(value));
32182
32320
  }
32183
32321
  const next = iterator.next();
32184
32322
  if (!next.done) {
@@ -32196,7 +32334,7 @@ var findFirstFilter = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !i
32196
32334
  }));
32197
32335
  var findFirstFilterLoop = (iterator, index, filter3, value) => flatMap3(filter3(value, index), (result2) => {
32198
32336
  if (isSuccess2(result2)) {
32199
- return succeed3(some2(result2.success));
32337
+ return succeed3(some3(result2.success));
32200
32338
  }
32201
32339
  const next = iterator.next();
32202
32340
  if (!next.done) {
@@ -32733,11 +32871,11 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
32733
32871
  var filterDisablePropagation = (span) => {
32734
32872
  if (!span)
32735
32873
  return none2();
32736
- return get(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none2() : some2(span);
32874
+ return get(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none2() : some3(span);
32737
32875
  };
32738
32876
  var makeSpanUnsafe = (fiber2, name, options) => {
32739
32877
  const disablePropagation = !fiber2.getRef(TracerEnabled) || options?.annotations && get(options.annotations, DisablePropagation);
32740
- const parent = options?.parent !== undefined ? some2(options.parent) : options?.root ? none2() : filterDisablePropagation(fiber2.currentSpan);
32878
+ const parent = options?.parent !== undefined ? some3(options.parent) : options?.root ? none2() : filterDisablePropagation(fiber2.currentSpan);
32741
32879
  let span;
32742
32880
  if (disablePropagation) {
32743
32881
  span = noopSpan({
@@ -33017,7 +33155,7 @@ var logLevelToOrder = (level) => {
33017
33155
  return Number.MAX_SAFE_INTEGER;
33018
33156
  }
33019
33157
  };
33020
- var LogLevelOrder = /* @__PURE__ */ mapInput(Number2, logLevelToOrder);
33158
+ var LogLevelOrder = /* @__PURE__ */ mapInput2(Number2, logLevelToOrder);
33021
33159
  var isLogLevelGreaterThan = /* @__PURE__ */ isGreaterThan(LogLevelOrder);
33022
33160
  var CurrentLoggers = /* @__PURE__ */ Reference("effect/Loggers/CurrentLoggers", {
33023
33161
  defaultValue: () => new Set([defaultLogger, tracerLogger])
@@ -33945,7 +34083,7 @@ var offsetZoneRegExp = /^(?:GMT|[+-])/;
33945
34083
  var zoneFromString = (zone) => {
33946
34084
  if (offsetZoneRegExp.test(zone)) {
33947
34085
  const offset = parseOffset(zone);
33948
- return offset === null ? none2() : some2(zoneMakeOffset(offset));
34086
+ return offset === null ? none2() : some3(zoneMakeOffset(offset));
33949
34087
  }
33950
34088
  return zoneMakeNamed(zone);
33951
34089
  };
@@ -34544,7 +34682,7 @@ var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule, orElse3) => flatMap3
34544
34682
  meta = meta_;
34545
34683
  })), {
34546
34684
  disableYield: true
34547
- }), (error) => isDone(error) ? succeed3(error.value) : orElse3(error, meta.attempt === 0 ? none2() : some2(meta)));
34685
+ }), (error) => isDone(error) ? succeed3(error.value) : orElse3(error, meta.attempt === 0 ? none2() : some3(meta)));
34548
34686
  }));
34549
34687
  var retryOrElse = /* @__PURE__ */ dual(3, (self, policy, orElse3) => flatMap3(toStepWithMetadata(policy), (step) => {
34550
34688
  let meta = CurrentMetadata2.defaultValue();
@@ -36061,7 +36199,7 @@ var poll = (self) => suspend(() => {
36061
36199
  return succeed3(none2());
36062
36200
  }
36063
36201
  if (result3._tag === "Success") {
36064
- return succeed3(some2(result3.value));
36202
+ return succeed3(some3(result3.value));
36065
36203
  }
36066
36204
  return succeed3(none2());
36067
36205
  });
@@ -36445,7 +36583,7 @@ var splitLines = () => fromTransform((upstream, _scope) => sync3(() => {
36445
36583
  onSuccess: loop,
36446
36584
  onFailure: failCause3,
36447
36585
  onDone: (leftover) => {
36448
- done4 = some2(leftover);
36586
+ done4 = some3(leftover);
36449
36587
  if (stringBuilder.length > 0 || midCRLF) {
36450
36588
  const last = stringBuilder;
36451
36589
  stringBuilder = "";
@@ -37278,7 +37416,7 @@ var missing = /* @__PURE__ */ Symbol();
37278
37416
  var succeed8 = succeed4;
37279
37417
  var missingExit = /* @__PURE__ */ succeed8(missing);
37280
37418
  var sameExit = /* @__PURE__ */ succeed8(missing);
37281
- var toOption = (value) => value === missing ? none2() : some2(value);
37419
+ var toOption = (value) => value === missing ? none2() : some3(value);
37282
37420
  var fromOptionExit = (option3) => option3._tag === "None" ? missingExit : succeed8(option3.value);
37283
37421
 
37284
37422
  // ../../node_modules/effect/dist/SchemaIssue.js
@@ -37914,7 +38052,7 @@ function checkEffect(f) {
37914
38052
  return onSome((t, options) => {
37915
38053
  return f(t, options).pipe(flatMapEager2((out) => {
37916
38054
  const issue = makeSingle(out, t, options);
37917
- return issue ? fail6(issue) : succeed6(some2(t));
38055
+ return issue ? fail6(issue) : succeed6(some3(t));
37918
38056
  }));
37919
38057
  });
37920
38058
  }
@@ -37922,7 +38060,7 @@ function transform(f) {
37922
38060
  return transformOptional(map(f));
37923
38061
  }
37924
38062
  function transformOrFail(f) {
37925
- return onSome((e, options) => f(e, options).pipe(mapEager2(some2)));
38063
+ return onSome((e, options) => f(e, options).pipe(mapEager2(some3)));
37926
38064
  }
37927
38065
  function transformOptional(f) {
37928
38066
  return new Getter((oe) => succeed6(f(oe)));
@@ -37933,7 +38071,7 @@ function omit() {
37933
38071
  function withDefault(defaultValue) {
37934
38072
  return new Getter((o) => {
37935
38073
  const filtered = filter(o, isNotUndefined);
37936
- return isSome2(filtered) ? succeed6(filtered) : mapEager2(defaultValue, some2);
38074
+ return isSome2(filtered) ? succeed6(filtered) : mapEager2(defaultValue, some3);
37937
38075
  });
37938
38076
  }
37939
38077
  function String3() {
@@ -37974,7 +38112,7 @@ function toUpperCase2() {
37974
38112
  }
37975
38113
  function parseJson(options) {
37976
38114
  return onSome((input, parseOptions) => try_3({
37977
- try: () => some2(JSON.parse(input, options?.reviver)),
38115
+ try: () => some3(JSON.parse(input, options?.reviver)),
37978
38116
  catch: () => new InvalidValue({
37979
38117
  expected: "a valid JSON string"
37980
38118
  }, input, parseOptions)
@@ -37987,7 +38125,7 @@ function stringifyJson(options) {
37987
38125
  if (output === undefined) {
37988
38126
  throw new TypeError("Value cannot be represented as JSON");
37989
38127
  }
37990
- return some2(output);
38128
+ return some3(output);
37991
38129
  },
37992
38130
  catch: () => new InvalidValue({
37993
38131
  expected: "a JSON-serializable value"
@@ -38331,7 +38469,7 @@ var Equivalence4 = /* @__PURE__ */ make3((self, that) => {
38331
38469
  var equals3 = /* @__PURE__ */ dual(2, (self, that) => Equivalence4(self, that));
38332
38470
  var fromString = (s) => {
38333
38471
  if (s === "") {
38334
- return some2(zero2);
38472
+ return some3(zero2);
38335
38473
  }
38336
38474
  let base;
38337
38475
  let exp;
@@ -38366,7 +38504,7 @@ var fromString = (s) => {
38366
38504
  if (!Number.isSafeInteger(scale2)) {
38367
38505
  return none2();
38368
38506
  }
38369
- return some2(make16(BigInt(digits), scale2));
38507
+ return some3(make16(BigInt(digits), scale2));
38370
38508
  };
38371
38509
  var format5 = (n) => {
38372
38510
  const normalized = normalize(n);
@@ -38594,13 +38732,13 @@ function optionFromNullishOr(options) {
38594
38732
  }
38595
38733
  function optionFromOptionalKey() {
38596
38734
  return transformOptional2({
38597
- decode: some2,
38735
+ decode: some3,
38598
38736
  encode: flatten
38599
38737
  });
38600
38738
  }
38601
38739
  function optionFromOptional() {
38602
38740
  return transformOptional2({
38603
- decode: (ot) => ot.pipe(filter(isNotUndefined), some2),
38741
+ decode: (ot) => ot.pipe(filter(isNotUndefined), some3),
38604
38742
  encode: flatten
38605
38743
  });
38606
38744
  }
@@ -40750,7 +40888,7 @@ var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ p
40750
40888
  // ../../node_modules/effect/dist/Brand.js
40751
40889
  function nominal() {
40752
40890
  return Object.assign((input) => input, {
40753
- option: (input) => some2(input),
40891
+ option: (input) => some3(input),
40754
40892
  result: (input) => succeed2(input),
40755
40893
  is: (_) => true
40756
40894
  });
@@ -41826,11 +41964,11 @@ var makeFile = /* @__PURE__ */ (() => {
41826
41964
  }
41827
41965
  this.position = position + BigInt(bytesRead);
41828
41966
  if (bytesRead === sizeNumber) {
41829
- return some2(buffer2);
41967
+ return some3(buffer2);
41830
41968
  }
41831
41969
  const dst = Buffer.allocUnsafeSlow(bytesRead);
41832
41970
  buffer2.copy(dst, 0, 0, bytesRead);
41833
- return some2(dst);
41971
+ return some3(dst);
41834
41972
  });
41835
41973
  });
41836
41974
  }
@@ -41944,7 +42082,7 @@ var makeFileInfo = (stat2) => ({
41944
42082
  uid: fromNullishOr(stat2.uid),
41945
42083
  gid: fromNullishOr(stat2.gid),
41946
42084
  size: Size(stat2.size),
41947
- blksize: stat2.blksize !== undefined ? some2(Size(stat2.blksize)) : none2(),
42085
+ blksize: stat2.blksize !== undefined ? some3(Size(stat2.blksize)) : none2(),
41948
42086
  blocks: fromNullishOr(stat2.blocks)
41949
42087
  });
41950
42088
  var stat2 = /* @__PURE__ */ (() => {
@@ -42381,7 +42519,7 @@ __export(exports_Schema, {
42381
42519
  URLFromString: () => URLFromString,
42382
42520
  URL: () => URL2,
42383
42521
  TupleWithRest: () => TupleWithRest,
42384
- Tuple: () => Tuple,
42522
+ Tuple: () => Tuple2,
42385
42523
  Trimmed: () => Trimmed,
42386
42524
  Trim: () => Trim,
42387
42525
  Tree: () => Tree,
@@ -42401,7 +42539,7 @@ __export(exports_Schema, {
42401
42539
  TaggedClass: () => TaggedClass,
42402
42540
  Symbol: () => Symbol3,
42403
42541
  StructWithRest: () => StructWithRest,
42404
- Struct: () => Struct,
42542
+ Struct: () => Struct2,
42405
42543
  StringFromUriComponent: () => StringFromUriComponent,
42406
42544
  StringFromHex: () => StringFromHex,
42407
42545
  StringFromBase64Url: () => StringFromBase64Url,
@@ -42581,7 +42719,7 @@ var make25 = (type, mutable) => {
42581
42719
  graph.reverseAdjacency = new Map;
42582
42720
  graph.nextNodeIndex = 0;
42583
42721
  graph.nextEdgeIndex = 0;
42584
- graph.acyclic = some2(true);
42722
+ graph.acyclic = some3(true);
42585
42723
  return graph;
42586
42724
  };
42587
42725
  var snapshot = (graph) => {
@@ -42714,7 +42852,7 @@ class LeafNode extends Node {
42714
42852
  }
42715
42853
  get(_shift, hash2, key) {
42716
42854
  if (this.hash === hash2 && equals(this.key, key)) {
42717
- return some2(this.value);
42855
+ return some3(this.value);
42718
42856
  }
42719
42857
  return none2();
42720
42858
  }
@@ -42780,7 +42918,7 @@ class CollisionNode extends Node {
42780
42918
  }
42781
42919
  for (const [k, v] of this.entries) {
42782
42920
  if (equals(k, key)) {
42783
- return some2(v);
42921
+ return some3(v);
42784
42922
  }
42785
42923
  }
42786
42924
  return none2();
@@ -43293,7 +43431,7 @@ var HashSetProto = {
43293
43431
  return hash(HashSetTypeId);
43294
43432
  },
43295
43433
  [symbol2](that) {
43296
- return isHashSet(that) && size4(this) === size4(that) && every2(this, (value) => has2(that, value));
43434
+ return isHashSet(that) && size4(this) === size4(that) && every3(this, (value) => has2(that, value));
43297
43435
  },
43298
43436
  [Symbol.iterator]() {
43299
43437
  return keys2(keyMap(this));
@@ -43331,7 +43469,7 @@ var fromIterable6 = (values2) => {
43331
43469
  };
43332
43470
  var has2 = (self, value) => has(keyMap(self), value);
43333
43471
  var size4 = (self) => size2(keyMap(self));
43334
- var every2 = (self, predicate) => {
43472
+ var every3 = (self, predicate) => {
43335
43473
  for (const value of self) {
43336
43474
  if (!predicate(value)) {
43337
43475
  return false;
@@ -43362,7 +43500,7 @@ function makeOption(schema) {
43362
43500
  return (input, options) => {
43363
43501
  const exit3 = runSyncExit2(parser(input, options));
43364
43502
  if (isSuccess4(exit3)) {
43365
- return some2(exit3.value);
43503
+ return some3(exit3.value);
43366
43504
  }
43367
43505
  getSchemaIssueOrThrow(exit3.cause, "Option adapter can only return none for schema issues");
43368
43506
  return none2();
@@ -43486,7 +43624,7 @@ function asOption(parser) {
43486
43624
  return (input, options) => {
43487
43625
  const exit3 = parserExit(input, options);
43488
43626
  if (isSuccess4(exit3)) {
43489
- return some2(exit3.value);
43627
+ return some3(exit3.value);
43490
43628
  }
43491
43629
  getSchemaIssueOrThrow(exit3.cause, "Option adapter can only return none for schema issues");
43492
43630
  return none2();
@@ -43811,16 +43949,16 @@ function appendObjectEntries(out, entries3) {
43811
43949
  }
43812
43950
  var max5 = /* @__PURE__ */ makeReducer2(ReducerMax);
43813
43951
  var min5 = /* @__PURE__ */ makeReducer2(ReducerMin);
43814
- var or = /* @__PURE__ */ makeReducer2(ReducerOr);
43952
+ var or2 = /* @__PURE__ */ makeReducer2(ReducerOr);
43815
43953
  var concat = /* @__PURE__ */ makeReducer2(/* @__PURE__ */ makeReducerConcat());
43816
43954
  var combiner = /* @__PURE__ */ makeCombiner({
43817
- integer: or,
43955
+ integer: or2,
43818
43956
  maxLength: min5,
43819
43957
  minLength: max5,
43820
- noInfinity: or,
43821
- noNaN: or,
43958
+ noInfinity: or2,
43959
+ noNaN: or2,
43822
43960
  patterns: concat,
43823
- unique: or
43961
+ unique: or2
43824
43962
  }, {
43825
43963
  omitKeyWhen: isUndefined
43826
43964
  });
@@ -44181,7 +44319,7 @@ function base(ast, path) {
44181
44319
  return;
44182
44320
  }
44183
44321
  length++;
44184
- elementArbitraries.push(out2.map(some2));
44322
+ elementArbitraries.push(out2.map(some3));
44185
44323
  }
44186
44324
  const minLength = ctx.constraint?.minLength ?? 0;
44187
44325
  const needsRest = isReadonlyArrayNonEmpty(rest) && minLength > length + optionals.length;
@@ -44194,7 +44332,7 @@ function base(ast, path) {
44194
44332
  }
44195
44333
  includedOptionals++;
44196
44334
  length++;
44197
- elementArbitraries.push(out2.map(some2));
44335
+ elementArbitraries.push(out2.map(some3));
44198
44336
  }
44199
44337
  if (includedOptionals < optionalTarget) {
44200
44338
  return;
@@ -44238,7 +44376,7 @@ function base(ast, path) {
44238
44376
  arbitrary
44239
44377
  }) => {
44240
44378
  const out2 = arbitrary(fc, reset, recursionStack);
44241
- return isOptional(ast2) ? out2.chain((a) => fc.boolean().map((b) => b ? some2(a) : none2())) : out2.map(some2);
44379
+ return isOptional(ast2) ? out2.chain((a) => fc.boolean().map((b) => b ? some3(a) : none2())) : out2.map(some3);
44242
44380
  });
44243
44381
  let out = fc.tuple(...elementArbitraries).map((elements2) => getSomes(takeWhile(elements2, isSome2)));
44244
44382
  if (isReadonlyArrayNonEmpty(rest)) {
@@ -46115,7 +46253,7 @@ class CheckNode {
46115
46253
  this.get = (s) => runChecks(checks, s);
46116
46254
  }
46117
46255
  }
46118
- function compose(a, b) {
46256
+ function compose2(a, b) {
46119
46257
  if (a.length === 0)
46120
46258
  return b;
46121
46259
  if (b.length === 0)
@@ -46154,13 +46292,13 @@ class OptionalImpl {
46154
46292
  return (s) => getOrElse2(flatMap2(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s);
46155
46293
  }
46156
46294
  compose(that) {
46157
- return make30(compose(this.node, that.node));
46295
+ return make30(compose2(this.node, that.node));
46158
46296
  }
46159
46297
  key(key) {
46160
- return make30(compose(this.node, [new PathNode([key])]));
46298
+ return make30(compose2(this.node, [new PathNode([key])]));
46161
46299
  }
46162
46300
  optionalKey(key) {
46163
- return make30(compose(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
46301
+ return make30(compose2(this.node, primitiveNode("Lens", (s) => s[key], (a, s) => {
46164
46302
  const copy3 = cloneShallow(s);
46165
46303
  if (a === undefined) {
46166
46304
  if (Array.isArray(copy3) && typeof key === "number") {
@@ -46175,20 +46313,20 @@ class OptionalImpl {
46175
46313
  })));
46176
46314
  }
46177
46315
  check(...checks) {
46178
- return make30(compose(this.node, [new CheckNode(checks)]));
46316
+ return make30(compose2(this.node, [new CheckNode(checks)]));
46179
46317
  }
46180
46318
  refine(refinement, annotations) {
46181
- return make30(compose(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations)])]));
46319
+ return make30(compose2(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations)])]));
46182
46320
  }
46183
46321
  tag(tag) {
46184
46322
  const err = fail2(new InvalidValue({
46185
46323
  expected: `${JSON.stringify(tag)} tag`
46186
46324
  }));
46187
- return make30(compose(this.node, primitiveNode("Prism", (s) => s._tag === tag ? succeed2(s) : err, identity)));
46325
+ return make30(compose2(this.node, primitiveNode("Prism", (s) => s._tag === tag ? succeed2(s) : err, identity)));
46188
46326
  }
46189
46327
  at(key, ..._rest) {
46190
46328
  const err = fail2(new Pointer([key], new MissingKey(undefined)));
46191
- return make30(compose(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
46329
+ return make30(compose2(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key) ? succeed2(s[key]) : err, (a, s) => {
46192
46330
  if (Object.hasOwn(s, key)) {
46193
46331
  const copy3 = cloneShallow(s);
46194
46332
  assignProperty(copy3, key, a);
@@ -46808,7 +46946,7 @@ function makeStruct(ast, fields) {
46808
46946
  }
46809
46947
  });
46810
46948
  }
46811
- function Struct(fields) {
46949
+ function Struct2(fields) {
46812
46950
  return makeStruct(struct(fields, undefined), fields);
46813
46951
  }
46814
46952
  function fieldsAssign(fields) {
@@ -46836,7 +46974,7 @@ function encodeKeys(mapping) {
46836
46974
  reverseMapping[encodedKey] = k;
46837
46975
  }
46838
46976
  }
46839
- return Struct(fields).pipe(decodeTo2(self, transform2({
46977
+ return Struct2(fields).pipe(decodeTo2(self, transform2({
46840
46978
  decode: renameKeys(reverseMapping),
46841
46979
  encode: renameKeys(appliedMapping)
46842
46980
  })));
@@ -46845,7 +46983,7 @@ function encodeKeys(mapping) {
46845
46983
  function extendTo(fields, derive) {
46846
46984
  return (self) => {
46847
46985
  const f = map3(self.fields, toType2);
46848
- const to = Struct({
46986
+ const to = Struct2({
46849
46987
  ...f,
46850
46988
  ...fields
46851
46989
  });
@@ -46896,7 +47034,7 @@ function makeTuple(ast, elements) {
46896
47034
  }
46897
47035
  });
46898
47036
  }
46899
- function Tuple(elements) {
47037
+ function Tuple2(elements) {
46900
47038
  return makeTuple(tuple(elements), elements);
46901
47039
  }
46902
47040
  function TupleWithRest(schema, rest) {
@@ -47068,7 +47206,7 @@ function tagDefaultOmit(literal) {
47068
47206
  }));
47069
47207
  }
47070
47208
  function TaggedStruct(value3, fields) {
47071
- return Struct({
47209
+ return Struct2({
47072
47210
  _tag: tag(value3),
47073
47211
  ...fields
47074
47212
  });
@@ -47227,7 +47365,7 @@ function isPattern2(regExp, annotations) {
47227
47365
  ...annotations
47228
47366
  });
47229
47367
  }
47230
- var IsPatternPayload = /* @__PURE__ */ Struct({
47368
+ var IsPatternPayload = /* @__PURE__ */ Struct2({
47231
47369
  source: String5,
47232
47370
  flags: String5
47233
47371
  }).check(/* @__PURE__ */ makeFilter2((payload) => {
@@ -47301,7 +47439,7 @@ function isUUID(version, annotations) {
47301
47439
  ...annotations
47302
47440
  });
47303
47441
  }
47304
- var isUUIDReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isUUID", /* @__PURE__ */ Struct({
47442
+ var isUUIDReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isUUID", /* @__PURE__ */ Struct2({
47305
47443
  version: /* @__PURE__ */ Union2([/* @__PURE__ */ Literals([1, 2, 3, 4, 5, 6, 7, 8]), Null2])
47306
47444
  }), ({
47307
47445
  annotations,
@@ -47411,7 +47549,7 @@ function isStartsWith(startsWith, annotations) {
47411
47549
  ...annotations
47412
47550
  });
47413
47551
  }
47414
- var isStartsWithReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isStartsWith", /* @__PURE__ */ Struct({
47552
+ var isStartsWithReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isStartsWith", /* @__PURE__ */ Struct2({
47415
47553
  startsWith: String5
47416
47554
  }), ({
47417
47555
  annotations,
@@ -47442,7 +47580,7 @@ function isEndsWith(endsWith, annotations) {
47442
47580
  ...annotations
47443
47581
  });
47444
47582
  }
47445
- var isEndsWithReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isEndsWith", /* @__PURE__ */ Struct({
47583
+ var isEndsWithReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isEndsWith", /* @__PURE__ */ Struct2({
47446
47584
  endsWith: String5
47447
47585
  }), ({
47448
47586
  annotations,
@@ -47473,7 +47611,7 @@ function isIncludes(includes, annotations) {
47473
47611
  ...annotations
47474
47612
  });
47475
47613
  }
47476
- var isIncludesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isIncludes", /* @__PURE__ */ Struct({
47614
+ var isIncludesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isIncludes", /* @__PURE__ */ Struct2({
47477
47615
  includes: String5
47478
47616
  }), ({
47479
47617
  annotations,
@@ -47730,7 +47868,7 @@ var isGreaterThan5 = /* @__PURE__ */ makeIsGreaterThan({
47730
47868
  })
47731
47869
  })
47732
47870
  });
47733
- var isGreaterThanReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThan", /* @__PURE__ */ Struct({
47871
+ var isGreaterThanReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThan", /* @__PURE__ */ Struct2({
47734
47872
  exclusiveMinimum: Finite
47735
47873
  }), ({
47736
47874
  annotations,
@@ -47753,7 +47891,7 @@ var isGreaterThanOrEqualTo4 = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
47753
47891
  })
47754
47892
  })
47755
47893
  });
47756
- var isGreaterThanOrEqualToReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualTo", /* @__PURE__ */ Struct({
47894
+ var isGreaterThanOrEqualToReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualTo", /* @__PURE__ */ Struct2({
47757
47895
  minimum: Finite
47758
47896
  }), ({
47759
47897
  annotations,
@@ -47776,7 +47914,7 @@ var isLessThan5 = /* @__PURE__ */ makeIsLessThan({
47776
47914
  })
47777
47915
  })
47778
47916
  });
47779
- var isLessThanReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThan", /* @__PURE__ */ Struct({
47917
+ var isLessThanReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThan", /* @__PURE__ */ Struct2({
47780
47918
  exclusiveMaximum: Finite
47781
47919
  }), ({
47782
47920
  annotations,
@@ -47799,7 +47937,7 @@ var isLessThanOrEqualTo5 = /* @__PURE__ */ makeIsLessThanOrEqualTo({
47799
47937
  })
47800
47938
  })
47801
47939
  });
47802
- var isLessThanOrEqualToReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualTo", /* @__PURE__ */ Struct({
47940
+ var isLessThanOrEqualToReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualTo", /* @__PURE__ */ Struct2({
47803
47941
  maximum: Finite
47804
47942
  }), ({
47805
47943
  annotations,
@@ -47835,7 +47973,7 @@ var isBetween2 = /* @__PURE__ */ makeIsBetween({
47835
47973
  };
47836
47974
  }
47837
47975
  });
47838
- var isBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetween", /* @__PURE__ */ Struct({
47976
+ var isBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetween", /* @__PURE__ */ Struct2({
47839
47977
  minimum: Finite,
47840
47978
  maximum: Finite,
47841
47979
  exclusiveMinimum: /* @__PURE__ */ optional2(/* @__PURE__ */ Literal2(true)),
@@ -47863,7 +48001,7 @@ var isMultipleOf = /* @__PURE__ */ makeIsMultipleOf({
47863
48001
  })
47864
48002
  })
47865
48003
  });
47866
- var isMultipleOfReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMultipleOf", /* @__PURE__ */ Struct({
48004
+ var isMultipleOfReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMultipleOf", /* @__PURE__ */ Struct2({
47867
48005
  divisor: Finite
47868
48006
  }), ({
47869
48007
  annotations,
@@ -48169,7 +48307,7 @@ function isMinLength(minLength, annotations) {
48169
48307
  ...annotations
48170
48308
  });
48171
48309
  }
48172
- var isMinLengthReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinLength", /* @__PURE__ */ Struct({
48310
+ var isMinLengthReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinLength", /* @__PURE__ */ Struct2({
48173
48311
  minLength: Natural
48174
48312
  }), ({
48175
48313
  annotations,
@@ -48207,7 +48345,7 @@ function isMaxLength(maxLength, annotations) {
48207
48345
  ...annotations
48208
48346
  });
48209
48347
  }
48210
- var isMaxLengthReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxLength", /* @__PURE__ */ Struct({
48348
+ var isMaxLengthReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxLength", /* @__PURE__ */ Struct2({
48211
48349
  maxLength: Natural
48212
48350
  }), ({
48213
48351
  annotations,
@@ -48253,7 +48391,7 @@ function isLengthBetween(minimum, maximum, annotations) {
48253
48391
  ...annotations
48254
48392
  });
48255
48393
  }
48256
- var isLengthBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLengthBetween", /* @__PURE__ */ Struct({
48394
+ var isLengthBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLengthBetween", /* @__PURE__ */ Struct2({
48257
48395
  minimum: Natural,
48258
48396
  maximum: Natural
48259
48397
  }), ({
@@ -48283,7 +48421,7 @@ function isMinSize(minSize, annotations) {
48283
48421
  ...annotations
48284
48422
  });
48285
48423
  }
48286
- var isMinSizeReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinSize", /* @__PURE__ */ Struct({
48424
+ var isMinSizeReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinSize", /* @__PURE__ */ Struct2({
48287
48425
  minSize: Natural
48288
48426
  }), ({
48289
48427
  annotations,
@@ -48312,7 +48450,7 @@ function isMaxSize(maxSize, annotations) {
48312
48450
  ...annotations
48313
48451
  });
48314
48452
  }
48315
- var isMaxSizeReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxSize", /* @__PURE__ */ Struct({
48453
+ var isMaxSizeReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxSize", /* @__PURE__ */ Struct2({
48316
48454
  maxSize: Natural
48317
48455
  }), ({
48318
48456
  annotations,
@@ -48344,7 +48482,7 @@ function isSizeBetween(minimum, maximum, annotations) {
48344
48482
  ...annotations
48345
48483
  });
48346
48484
  }
48347
- var isSizeBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isSizeBetween", /* @__PURE__ */ Struct({
48485
+ var isSizeBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isSizeBetween", /* @__PURE__ */ Struct2({
48348
48486
  minimum: Natural,
48349
48487
  maximum: Natural
48350
48488
  }), ({
@@ -48376,7 +48514,7 @@ function isMinProperties(minProperties, annotations) {
48376
48514
  ...annotations
48377
48515
  });
48378
48516
  }
48379
- var isMinPropertiesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinProperties", /* @__PURE__ */ Struct({
48517
+ var isMinPropertiesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMinProperties", /* @__PURE__ */ Struct2({
48380
48518
  minProperties: Natural
48381
48519
  }), ({
48382
48520
  annotations,
@@ -48407,7 +48545,7 @@ function isMaxProperties(maxProperties, annotations) {
48407
48545
  ...annotations
48408
48546
  });
48409
48547
  }
48410
- var isMaxPropertiesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxProperties", /* @__PURE__ */ Struct({
48548
+ var isMaxPropertiesReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isMaxProperties", /* @__PURE__ */ Struct2({
48411
48549
  maxProperties: Natural
48412
48550
  }), ({
48413
48551
  annotations,
@@ -48442,7 +48580,7 @@ function isPropertiesLengthBetween(minimum, maximum, annotations) {
48442
48580
  ...annotations
48443
48581
  });
48444
48582
  }
48445
- var isPropertiesLengthBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isPropertiesLengthBetween", /* @__PURE__ */ Struct({
48583
+ var isPropertiesLengthBetweenReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isPropertiesLengthBetween", /* @__PURE__ */ Struct2({
48446
48584
  minimum: Natural,
48447
48585
  maximum: Natural
48448
48586
  }), ({
@@ -48525,7 +48663,7 @@ function Option(value3) {
48525
48663
  return succeedNone3;
48526
48664
  }
48527
48665
  return mapBothEager2(decodeUnknownEffect(value4)(input.value, options), {
48528
- onSuccess: some2,
48666
+ onSuccess: some3,
48529
48667
  onFailure: (issue) => makeCompositeAtKey(ast, "value", issue, input, options)
48530
48668
  });
48531
48669
  }
@@ -48543,13 +48681,13 @@ function Option(value3) {
48543
48681
  importDeclarations: [`import * as Option from "effect/Option"`]
48544
48682
  }),
48545
48683
  expected: "Option",
48546
- toCodec: ([value4]) => link3()(Union2([Struct({
48684
+ toCodec: ([value4]) => link3()(Union2([Struct2({
48547
48685
  _tag: Literal2("Some"),
48548
48686
  value: value4
48549
- }), Struct({
48687
+ }), Struct2({
48550
48688
  _tag: Literal2("None")
48551
48689
  })]), transform2({
48552
- decode: (e) => e._tag === "None" ? none2() : some2(e.value),
48690
+ decode: (e) => e._tag === "None" ? none2() : some3(e.value),
48553
48691
  encode: (o) => isSome2(o) ? {
48554
48692
  _tag: "Some",
48555
48693
  value: o.value
@@ -48559,7 +48697,7 @@ function Option(value3) {
48559
48697
  })),
48560
48698
  toArbitrary: ([value4]) => (fc, ctx) => {
48561
48699
  const terminal = fc.constant(none2());
48562
- const arbitrary = fc.oneof(terminal, value4.arbitrary.map(some2));
48700
+ const arbitrary = fc.oneof(terminal, value4.arbitrary.map(some3));
48563
48701
  return withRecursion(fc, ctx, terminal, arbitrary);
48564
48702
  },
48565
48703
  toEquivalence: ([value4]) => makeEquivalence(value4),
@@ -48598,8 +48736,8 @@ function OptionFromOptionalNullOr(schema, options) {
48598
48736
  const onNoneEncoding = options === undefined ? "omit" : options.onNoneEncoding;
48599
48737
  const noneValue = onNoneEncoding === null ? null : undefined;
48600
48738
  return optional2(NullOr(schema)).pipe(decodeTo2(Option(toType2(schema)), transformOptional2({
48601
- decode: (oe) => oe.pipe(filter(isNotNullish), some2),
48602
- encode: onNoneEncoding === "omit" ? flatten : (ot) => some2(getOrElse(flatten(ot), () => noneValue))
48739
+ decode: (oe) => oe.pipe(filter(isNotNullish), some3),
48740
+ encode: onNoneEncoding === "omit" ? flatten : (ot) => some3(getOrElse(flatten(ot), () => noneValue))
48603
48741
  })));
48604
48742
  }
48605
48743
  function Result(success, failure) {
@@ -48632,10 +48770,10 @@ function Result(success, failure) {
48632
48770
  importDeclarations: [`import * as Result from "effect/Result"`]
48633
48771
  }),
48634
48772
  expected: "Result",
48635
- toCodec: ([success2, failure2]) => link3()(Union2([Struct({
48773
+ toCodec: ([success2, failure2]) => link3()(Union2([Struct2({
48636
48774
  _tag: Literal2("Success"),
48637
48775
  success: success2
48638
- }), Struct({
48776
+ }), Struct2({
48639
48777
  _tag: Literal2("Failure"),
48640
48778
  failure: failure2
48641
48779
  })]), transform2({
@@ -48796,13 +48934,13 @@ function CauseReason(error, defect) {
48796
48934
  importDeclarations: [`import * as Cause from "effect/Cause"`]
48797
48935
  }),
48798
48936
  expected: "Cause.Failure",
48799
- toCodec: ([error2, defect2]) => link3()(Union2([Struct({
48937
+ toCodec: ([error2, defect2]) => link3()(Union2([Struct2({
48800
48938
  _tag: Literal2("Fail"),
48801
48939
  error: error2
48802
- }), Struct({
48940
+ }), Struct2({
48803
48941
  _tag: Literal2("Die"),
48804
48942
  defect: defect2
48805
- }), Struct({
48943
+ }), Struct2({
48806
48944
  _tag: Literal2("Interrupt"),
48807
48945
  fiberId: UndefinedOr(Finite)
48808
48946
  })]), transform2({
@@ -49035,10 +49173,10 @@ function Exit(value3, error, defect) {
49035
49173
  importDeclarations: [`import * as Exit from "effect/Exit"`]
49036
49174
  }),
49037
49175
  expected: "Exit",
49038
- toCodec: ([value4, error2, defect2]) => link3()(Union2([Struct({
49176
+ toCodec: ([value4, error2, defect2]) => link3()(Union2([Struct2({
49039
49177
  _tag: Literal2("Success"),
49040
49178
  value: value4
49041
- }), Struct({
49179
+ }), Struct2({
49042
49180
  _tag: Literal2("Failure"),
49043
49181
  cause: Cause(error2, defect2)
49044
49182
  })]), transform2({
@@ -49139,7 +49277,7 @@ function entriesArbitrary(fc, ctx, key, value3, fromIterable8) {
49139
49277
  }
49140
49278
  function ReadonlyMap(key, value3) {
49141
49279
  const schema = declareConstructor()([key, value3], ([key2, value4]) => {
49142
- const array3 = ArraySchema(Tuple([key2, value4]));
49280
+ const array3 = ArraySchema(Tuple2([key2, value4]));
49143
49281
  return (input, ast, options) => {
49144
49282
  if (input instanceof globalThis.Map) {
49145
49283
  return mapBothEager2(decodeUnknownEffect(array3)([...input], options), {
@@ -49161,7 +49299,7 @@ function ReadonlyMap(key, value3) {
49161
49299
  Type: `globalThis.ReadonlyMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`
49162
49300
  }),
49163
49301
  expected: "ReadonlyMap",
49164
- toCodec: ([key2, value4]) => link3()(ArraySchema(Tuple([key2, value4])), transform2({
49302
+ toCodec: ([key2, value4]) => link3()(ArraySchema(Tuple2([key2, value4])), transform2({
49165
49303
  decode: (e) => new globalThis.Map(e),
49166
49304
  encode: (map12) => [...map12.entries()]
49167
49305
  })),
@@ -49189,13 +49327,13 @@ var ReadonlyMapReviver = /* @__PURE__ */ makeDeclarationReviver("effect/schema/R
49189
49327
  return annotations === undefined ? schema : schema.annotate(annotations);
49190
49328
  });
49191
49329
  function graphEncodedSchema(type, node, edge) {
49192
- return Struct({
49330
+ return Struct2({
49193
49331
  type: Literal2(type),
49194
- nodes: ArraySchema(Struct({
49332
+ nodes: ArraySchema(Struct2({
49195
49333
  index: Natural,
49196
49334
  data: node
49197
49335
  })),
49198
- edges: ArraySchema(Struct({
49336
+ edges: ArraySchema(Struct2({
49199
49337
  index: Natural,
49200
49338
  source: Natural,
49201
49339
  target: Natural,
@@ -49345,7 +49483,7 @@ var GraphReviver = /* @__PURE__ */ makeDeclarationReviver("effect/schema/Graph",
49345
49483
  });
49346
49484
  function HashMap(key, value3) {
49347
49485
  const schema = declareConstructor()([key, value3], ([key2, value4]) => {
49348
- const entries3 = ArraySchema(Tuple([key2, value4]));
49486
+ const entries3 = ArraySchema(Tuple2([key2, value4]));
49349
49487
  return (input, ast, options) => {
49350
49488
  if (isHashMap2(input)) {
49351
49489
  return mapBothEager2(decodeUnknownEffect(entries3)(toEntries(input), options), {
@@ -49368,7 +49506,7 @@ function HashMap(key, value3) {
49368
49506
  importDeclarations: [`import * as HashMap from "effect/HashMap"`]
49369
49507
  }),
49370
49508
  expected: "HashMap",
49371
- toCodec: ([key2, value4]) => link3()(ArraySchema(Tuple([key2, value4])), transform2({
49509
+ toCodec: ([key2, value4]) => link3()(ArraySchema(Tuple2([key2, value4])), transform2({
49372
49510
  decode: fromIterable5,
49373
49511
  encode: toEntries
49374
49512
  })),
@@ -49555,7 +49693,7 @@ var RegExp3 = /* @__PURE__ */ instanceOf(globalThis.RegExp, {
49555
49693
  Type: `globalThis.RegExp`
49556
49694
  }),
49557
49695
  expected: "RegExp",
49558
- toCodecJson: () => link3()(Struct({
49696
+ toCodecJson: () => link3()(Struct2({
49559
49697
  source: String5,
49560
49698
  flags: String5
49561
49699
  }), transformOrFail2({
@@ -49648,14 +49786,14 @@ var Duration = /* @__PURE__ */ declare(isDuration, {
49648
49786
  importDeclarations: [`import * as Duration from "effect/Duration"`]
49649
49787
  }),
49650
49788
  expected: "Duration",
49651
- toCodecJson: () => link3()(Union2([Struct({
49789
+ toCodecJson: () => link3()(Union2([Struct2({
49652
49790
  _tag: Literal2("Infinity")
49653
- }), Struct({
49791
+ }), Struct2({
49654
49792
  _tag: Literal2("NegativeInfinity")
49655
- }), Struct({
49793
+ }), Struct2({
49656
49794
  _tag: Literal2("Nanos"),
49657
49795
  value: BigInt5
49658
- }), Struct({
49796
+ }), Struct2({
49659
49797
  _tag: Literal2("Millis"),
49660
49798
  value: Int
49661
49799
  })]), transform2({
@@ -49806,7 +49944,7 @@ var File2 = /* @__PURE__ */ instanceOf(globalThis.File, {
49806
49944
  Type: `globalThis.File`
49807
49945
  }),
49808
49946
  expected: "File",
49809
- toCodecJson: () => link3()(Struct({
49947
+ toCodecJson: () => link3()(Struct2({
49810
49948
  data: String5.check(isBase64()),
49811
49949
  type: String5,
49812
49950
  name: String5,
@@ -49851,10 +49989,10 @@ var FormData2 = /* @__PURE__ */ instanceOf(globalThis.FormData, {
49851
49989
  Type: `globalThis.FormData`
49852
49990
  }),
49853
49991
  expected: "FormData",
49854
- toCodecJson: () => link3()(ArraySchema(Tuple([String5, Union2([Struct({
49992
+ toCodecJson: () => link3()(ArraySchema(Tuple2([String5, Union2([Struct2({
49855
49993
  _tag: tag("String"),
49856
49994
  value: String5
49857
- }), Struct({
49995
+ }), Struct2({
49858
49996
  _tag: tag("File"),
49859
49997
  value: File2
49860
49998
  })])])), transformOrFail2({
@@ -49931,10 +50069,10 @@ var StringFromUriComponent = /* @__PURE__ */ String5.annotate({
49931
50069
  expected: "a URI component encoded string that will be decoded as a UTF-8 string"
49932
50070
  }).pipe(/* @__PURE__ */ decodeTo2(String5, stringFromUriComponent));
49933
50071
  var PropertyKey = /* @__PURE__ */ Union2([Finite, Symbol3, String5]);
49934
- var StandardSchemaV1FailureResult = /* @__PURE__ */ Struct({
49935
- issues: /* @__PURE__ */ ArraySchema(/* @__PURE__ */ Struct({
50072
+ var StandardSchemaV1FailureResult = /* @__PURE__ */ Struct2({
50073
+ issues: /* @__PURE__ */ ArraySchema(/* @__PURE__ */ Struct2({
49936
50074
  message: String5,
49937
- path: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(/* @__PURE__ */ Union2([PropertyKey, /* @__PURE__ */ Struct({
50075
+ path: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(/* @__PURE__ */ Union2([PropertyKey, /* @__PURE__ */ Struct2({
49938
50076
  key: PropertyKey
49939
50077
  })])))
49940
50078
  }))
@@ -50152,7 +50290,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto) {
50152
50290
  }
50153
50291
  static extend(identifier3) {
50154
50292
  return (schema, annotations2) => {
50155
- const extension = isStruct(schema) ? schema : Struct(schema);
50293
+ const extension = isStruct(schema) ? schema : Struct2(schema);
50156
50294
  const fields = {
50157
50295
  ...struct2.fields,
50158
50296
  ...extension.fields
@@ -50216,7 +50354,7 @@ function isStruct(schema) {
50216
50354
  return isSchema(schema);
50217
50355
  }
50218
50356
  var Class3 = (identifier2) => (schema, annotations) => {
50219
- const struct2 = isStruct(schema) ? schema : Struct(schema);
50357
+ const struct2 = isStruct(schema) ? schema : Struct2(schema);
50220
50358
  return makeClass(Class2, identifier2, struct2, annotations, (identifier3) => ({
50221
50359
  toString() {
50222
50360
  return `${identifier3}(${format({
@@ -50237,7 +50375,7 @@ var TaggedClass = (identifier2) => {
50237
50375
  };
50238
50376
  };
50239
50377
  var Error4 = (identifier2) => (schema, annotations) => {
50240
- const struct2 = isStruct(schema) ? schema : Struct(schema);
50378
+ const struct2 = isStruct(schema) ? schema : Struct2(schema);
50241
50379
  const self = makeClass(Error2, identifier2, struct2, annotations, (identifier3) => ({
50242
50380
  name: identifier3
50243
50381
  }));
@@ -50705,31 +50843,31 @@ var toCodecArrayFromSingleAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIde
50705
50843
  function toCodecArrayFromSingleASTStep(ast) {
50706
50844
  return ast._tag === "Declaration" || ast._tag === "Arrays" || ast._tag === "Objects" || ast._tag === "Union" || ast._tag === "Suspend" ? ast.recur(toCodecArrayFromSingleAST) : ast;
50707
50845
  }
50708
- var isGreaterThanDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanDate", /* @__PURE__ */ Struct({
50846
+ var isGreaterThanDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanDate", /* @__PURE__ */ Struct2({
50709
50847
  exclusiveMinimum: Date4
50710
50848
  }), ({
50711
50849
  annotations,
50712
50850
  payload
50713
50851
  }) => isGreaterThanDate(payload.exclusiveMinimum, annotations));
50714
- var isGreaterThanOrEqualToDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualToDate", /* @__PURE__ */ Struct({
50852
+ var isGreaterThanOrEqualToDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualToDate", /* @__PURE__ */ Struct2({
50715
50853
  minimum: Date4
50716
50854
  }), ({
50717
50855
  annotations,
50718
50856
  payload
50719
50857
  }) => isGreaterThanOrEqualToDate(payload.minimum, annotations));
50720
- var isLessThanDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanDate", /* @__PURE__ */ Struct({
50858
+ var isLessThanDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanDate", /* @__PURE__ */ Struct2({
50721
50859
  exclusiveMaximum: Date4
50722
50860
  }), ({
50723
50861
  annotations,
50724
50862
  payload
50725
50863
  }) => isLessThanDate(payload.exclusiveMaximum, annotations));
50726
- var isLessThanOrEqualToDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualToDate", /* @__PURE__ */ Struct({
50864
+ var isLessThanOrEqualToDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualToDate", /* @__PURE__ */ Struct2({
50727
50865
  maximum: Date4
50728
50866
  }), ({
50729
50867
  annotations,
50730
50868
  payload
50731
50869
  }) => isLessThanOrEqualToDate(payload.maximum, annotations));
50732
- var isBetweenDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetweenDate", /* @__PURE__ */ Struct({
50870
+ var isBetweenDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetweenDate", /* @__PURE__ */ Struct2({
50733
50871
  minimum: Date4,
50734
50872
  maximum: Date4,
50735
50873
  exclusiveMinimum: /* @__PURE__ */ optional2(/* @__PURE__ */ Literal2(true)),
@@ -50738,31 +50876,31 @@ var isBetweenDateReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBe
50738
50876
  annotations,
50739
50877
  payload
50740
50878
  }) => isBetweenDate(payload, annotations));
50741
- var isGreaterThanBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanBigInt", /* @__PURE__ */ Struct({
50879
+ var isGreaterThanBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanBigInt", /* @__PURE__ */ Struct2({
50742
50880
  exclusiveMinimum: BigInt5
50743
50881
  }), ({
50744
50882
  annotations,
50745
50883
  payload
50746
50884
  }) => isGreaterThanBigInt(payload.exclusiveMinimum, annotations));
50747
- var isGreaterThanOrEqualToBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualToBigInt", /* @__PURE__ */ Struct({
50885
+ var isGreaterThanOrEqualToBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isGreaterThanOrEqualToBigInt", /* @__PURE__ */ Struct2({
50748
50886
  minimum: BigInt5
50749
50887
  }), ({
50750
50888
  annotations,
50751
50889
  payload
50752
50890
  }) => isGreaterThanOrEqualToBigInt(payload.minimum, annotations));
50753
- var isLessThanBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanBigInt", /* @__PURE__ */ Struct({
50891
+ var isLessThanBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanBigInt", /* @__PURE__ */ Struct2({
50754
50892
  exclusiveMaximum: BigInt5
50755
50893
  }), ({
50756
50894
  annotations,
50757
50895
  payload
50758
50896
  }) => isLessThanBigInt(payload.exclusiveMaximum, annotations));
50759
- var isLessThanOrEqualToBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualToBigInt", /* @__PURE__ */ Struct({
50897
+ var isLessThanOrEqualToBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isLessThanOrEqualToBigInt", /* @__PURE__ */ Struct2({
50760
50898
  maximum: BigInt5
50761
50899
  }), ({
50762
50900
  annotations,
50763
50901
  payload
50764
50902
  }) => isLessThanOrEqualToBigInt(payload.maximum, annotations));
50765
- var isBetweenBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetweenBigInt", /* @__PURE__ */ Struct({
50903
+ var isBetweenBigIntReviver = /* @__PURE__ */ makeFilterReviver("effect/schema/isBetweenBigInt", /* @__PURE__ */ Struct2({
50766
50904
  minimum: BigInt5,
50767
50905
  maximum: BigInt5,
50768
50906
  exclusiveMinimum: /* @__PURE__ */ optional2(/* @__PURE__ */ Literal2(true)),
@@ -50818,7 +50956,7 @@ var Json2 = /* @__PURE__ */ make32(/* @__PURE__ */ annotate(Json, {
50818
50956
  }));
50819
50957
  var JsonObject = /* @__PURE__ */ Record(String5, Json2);
50820
50958
  var JsonReviver = /* @__PURE__ */ makeFixedDeclarationReviver("effect/schema/Json", Json2);
50821
- var JsonError = /* @__PURE__ */ Struct({
50959
+ var JsonError = /* @__PURE__ */ Struct2({
50822
50960
  message: String5,
50823
50961
  name: /* @__PURE__ */ optionalKey2(String5),
50824
50962
  stack: /* @__PURE__ */ optionalKey2(String5),
@@ -52023,10 +52161,10 @@ var Proto6 = {
52023
52161
  }
52024
52162
  };
52025
52163
  var identityPath = (path) => path;
52026
- function makeProvider(load, mapInput2) {
52164
+ function makeProvider(load, mapInput3) {
52027
52165
  const self = Object.create(Proto6);
52028
52166
  self.load = load;
52029
- self.mapInput = mapInput2;
52167
+ self.mapInput = mapInput3;
52030
52168
  return self;
52031
52169
  }
52032
52170
  function makeSource(get6, transform3) {
@@ -52128,7 +52266,7 @@ var map12 = /* @__PURE__ */ dual(2, (self, f) => {
52128
52266
  var withDefault2 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
52129
52267
  return make36((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Absent" ? resolved(defaultValue, false) : resolution));
52130
52268
  });
52131
- var option3 = (self) => self.pipe(map12(some2), withDefault2(none2()));
52269
+ var option3 = (self) => self.pipe(map12(some3), withDefault2(none2()));
52132
52270
  var TrueValues = /* @__PURE__ */ Literals(["true", "yes", "on", "1", "y"]);
52133
52271
  var FalseValues = /* @__PURE__ */ Literals(["false", "no", "off", "0", "n"]);
52134
52272
  var Boolean7 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.literals]).pipe(/* @__PURE__ */ decodeTo2(Boolean5, /* @__PURE__ */ transform2({
@@ -54267,7 +54405,7 @@ var handleDateProcess = (options) => {
54267
54405
  onFailure: (error2) => Action.NextFrame({
54268
54406
  state: {
54269
54407
  ...state,
54270
- error: some2(error2)
54408
+ error: some3(error2)
54271
54409
  }
54272
54410
  }),
54273
54411
  onSuccess: (value3) => Action.Submit({
@@ -54810,7 +54948,7 @@ var processSelection = /* @__PURE__ */ fnUntraced2(function* (state, options) {
54810
54948
  files,
54811
54949
  allFiles: files,
54812
54950
  query: "",
54813
- path: some2(resolvedPath),
54951
+ path: some3(resolvedPath),
54814
54952
  confirm: Confirm.Hide()
54815
54953
  }
54816
54954
  });
@@ -54873,7 +55011,7 @@ var handleFileProcess = (options) => {
54873
55011
  files,
54874
55012
  allFiles: files,
54875
55013
  query: "",
54876
- path: some2(resolvedPath),
55014
+ path: some3(resolvedPath),
54877
55015
  confirm: Confirm.Hide()
54878
55016
  }
54879
55017
  });
@@ -55098,7 +55236,7 @@ var handleMultiSelectProcess = (options) => {
55098
55236
  return succeed6(Action.NextFrame({
55099
55237
  state: {
55100
55238
  ...state,
55101
- error: some2(`At least ${options.min} are required`)
55239
+ error: some3(`At least ${options.min} are required`)
55102
55240
  }
55103
55241
  }));
55104
55242
  }
@@ -55106,7 +55244,7 @@ var handleMultiSelectProcess = (options) => {
55106
55244
  return succeed6(Action.NextFrame({
55107
55245
  state: {
55108
55246
  ...state,
55109
- error: some2(`At most ${options.max} choices are allowed`)
55247
+ error: some3(`At most ${options.max} choices are allowed`)
55110
55248
  }
55111
55249
  }));
55112
55250
  }
@@ -55312,7 +55450,7 @@ var handleProcessInteger = (options) => {
55312
55450
  return succeed6(Action.NextFrame({
55313
55451
  state: {
55314
55452
  ...state,
55315
- error: some2("Must provide an integer value")
55453
+ error: some3("Must provide an integer value")
55316
55454
  }
55317
55455
  }));
55318
55456
  } else {
@@ -55320,7 +55458,7 @@ var handleProcessInteger = (options) => {
55320
55458
  onFailure: (error2) => Action.NextFrame({
55321
55459
  state: {
55322
55460
  ...state,
55323
- error: some2(error2)
55461
+ error: some3(error2)
55324
55462
  }
55325
55463
  }),
55326
55464
  onSuccess: (value3) => Action.Submit({
@@ -55382,7 +55520,7 @@ var handleProcessFloat = (options) => {
55382
55520
  return succeed6(Action.NextFrame({
55383
55521
  state: {
55384
55522
  ...state,
55385
- error: some2("Must provide a floating point value")
55523
+ error: some3("Must provide a floating point value")
55386
55524
  }
55387
55525
  }));
55388
55526
  } else {
@@ -55390,7 +55528,7 @@ var handleProcessFloat = (options) => {
55390
55528
  onFailure: (error2) => Action.NextFrame({
55391
55529
  state: {
55392
55530
  ...state,
55393
- error: some2(error2)
55531
+ error: some3(error2)
55394
55532
  }
55395
55533
  }),
55396
55534
  onSuccess: (value3) => Action.Submit({
@@ -55990,7 +56128,7 @@ var handleTextProcess = (options) => {
55990
56128
  state: {
55991
56129
  ...state,
55992
56130
  value: value3,
55993
- error: some2(error2)
56131
+ error: some3(error2)
55994
56132
  }
55995
56133
  }),
55996
56134
  onSuccess: (value4) => Action.Submit({
@@ -56250,7 +56388,7 @@ var withAlias = /* @__PURE__ */ dual(2, (self, alias) => {
56250
56388
  var withDescription = /* @__PURE__ */ dual(2, (self, description) => {
56251
56389
  return transformSingle(self, (single) => makeSingle2({
56252
56390
  ...single,
56253
- description: some2(description)
56391
+ description: some3(description)
56254
56392
  }));
56255
56393
  });
56256
56394
  var withHidden = (self) => transformSingle(self, (single) => makeSingle2({
@@ -56294,7 +56432,7 @@ var mapTryCatch = /* @__PURE__ */ dual(3, (self, f, onError4) => {
56294
56432
  var optional3 = (param) => {
56295
56433
  const parse4 = fnUntraced2(function* (args2) {
56296
56434
  getUnderlyingSingleOrThrow(param);
56297
- return yield* param.parse(args2).pipe(map7(([leftover, value3]) => [leftover, some2(value3)]), catchTags2({
56435
+ return yield* param.parse(args2).pipe(map7(([leftover, value3]) => [leftover, some3(value3)]), catchTags2({
56298
56436
  MissingOption: () => succeed6([args2.arguments, none2()]),
56299
56437
  MissingArgument: () => succeed6([args2.arguments, none2()])
56300
56438
  }));
@@ -56843,8 +56981,8 @@ var appendChoiceKeys = (description, choiceKeys) => {
56843
56981
  }
56844
56982
  const choiceSuffix = `(choices: ${choiceKeys.join(", ")})`;
56845
56983
  return match(description, {
56846
- onNone: () => some2(choiceSuffix),
56847
- onSome: (value3) => some2(`${value3} ${choiceSuffix}`)
56984
+ onNone: () => some3(choiceSuffix),
56985
+ onSome: (value3) => some3(`${value3} ${choiceSuffix}`)
56848
56986
  });
56849
56987
  };
56850
56988
  var makeParser2 = (cfg, options) => fnUntraced2(function* (input) {
@@ -57356,7 +57494,7 @@ var parseArgs = (lexResult, command, commandPath = []) => gen4(function* () {
57356
57494
  return {
57357
57495
  flags: result3.flags,
57358
57496
  arguments: [],
57359
- subcommand: some2({
57497
+ subcommand: some3({
57360
57498
  name: result3.sub.name,
57361
57499
  parsedInput: subParsed
57362
57500
  }),
@@ -59517,29 +59655,35 @@ var challengeListText = (catalog) => {
59517
59655
  lines2.push(` Ranking: ${challenge.rankingPath}`);
59518
59656
  lines2.push("");
59519
59657
  }
59520
- lines2.push("Play the open challenge: chofex challenge query");
59658
+ lines2.push("Start the open challenge: chofex challenge");
59521
59659
  return lines2.join(`
59522
59660
  `);
59523
59661
  };
59524
59662
  var challengeShowText = (attempt) => {
59525
59663
  const { challenge, progress } = attempt;
59526
- const queryBar = remainingBar(progress.queriesUsed, progress.queriesLimit);
59527
- const evalBar = remainingBar(progress.evaluationsUsed, progress.evaluationsLimit);
59664
+ const queriesRemaining = progress.queriesLimit - progress.queriesUsed;
59665
+ const evaluationsRemaining = progress.evaluationsLimit - progress.evaluationsUsed;
59666
+ let evidence = `${attempt.observations.length} observations`;
59667
+ if (attempt.observations.length === 1)
59668
+ evidence = "1 observation";
59669
+ let caseStatus = "AWAITING FIRST CLUE";
59670
+ if (attempt.observations.length > 0)
59671
+ caseStatus = "INVESTIGATING";
59672
+ if (attempt.latestEvaluation !== undefined)
59673
+ caseStatus = "EVALUATED";
59528
59674
  const lines2 = [
59529
- `${challenge.theme} #${challenge.code}`,
59530
- challenge.title,
59675
+ `${challenge.title.toUpperCase()} — CASE #${challenge.code}`,
59531
59676
  challenge.summary,
59532
59677
  "",
59533
- "AI is allowed. Use ChatGPT, Claude, Codex, Cursor, or any tool you want.",
59534
- "The hidden rules are personalized to you, so leaked solutions will not match.",
59678
+ `CASE STATUS: ${caseStatus}`,
59535
59679
  "",
59536
- "Queries remaining",
59537
- queryBar,
59538
- `${progress.queriesLimit - progress.queriesUsed} / ${progress.queriesLimit}`,
59680
+ "Your job is to replace the machine, not merely guess its next answer.",
59681
+ "The rules are unique to you. AI tools are allowed.",
59539
59682
  "",
59540
- "Official evaluations remaining",
59541
- evalBar,
59542
- `${progress.evaluationsLimit - progress.evaluationsUsed} / ${progress.evaluationsLimit}`
59683
+ "FIELD NOTES",
59684
+ `Evidence ${evidence}`,
59685
+ `Queries ${queriesRemaining} / ${progress.queriesLimit} remaining`,
59686
+ `Evaluations ${evaluationsRemaining} / ${progress.evaluationsLimit} remaining`
59543
59687
  ];
59544
59688
  if (progress.bestAccuracy !== undefined) {
59545
59689
  lines2.push("", `Best accuracy ${percent(progress.bestAccuracy)}`);
@@ -59548,19 +59692,34 @@ var challengeShowText = (attempt) => {
59548
59692
  if (progress.shareCode)
59549
59693
  lines2.push(`Share code #${progress.shareCode}`);
59550
59694
  }
59551
- lines2.push("", "Next:", " chofex challenge query", " chofex challenge notebook", " chofex challenge test --source ./shipping.js", " chofex challenge evaluate --source ./shipping.js");
59695
+ lines2.push("", "YOUR NEXT MOVE");
59696
+ if (attempt.observations.length === 0) {
59697
+ lines2.push("Ask the machine to price one ordinary shipment.", " chofex challenge query");
59698
+ } else if (attempt.latestEvaluation === undefined) {
59699
+ lines2.push("Run controlled experiments, study the notebook, then test your model.", " chofex challenge query", " chofex challenge notebook", " chofex challenge init", " chofex challenge test --source ./shipping.js");
59700
+ } else {
59701
+ lines2.push("Inspect your rank, then use remaining attempts only after improving your model.", " chofex challenge ranking", " chofex challenge test --source ./shipping.js");
59702
+ }
59552
59703
  return lines2.join(`
59553
59704
  `);
59554
59705
  };
59555
59706
  var challengeQueryText = (result3) => {
59556
59707
  const remaining = remainingBar(result3.queriesUsed, result3.queriesLimit);
59557
- return [
59558
- `Output ${JSON.stringify(result3.observation.output)}`,
59708
+ const lines2 = [
59709
+ `Observation #${result3.observation.sequence} saved`,
59710
+ `Machine output ${JSON.stringify(result3.observation.output)}`,
59559
59711
  "",
59560
- "Queries remaining",
59712
+ `Query budget ${result3.queriesRemaining} / ${result3.queriesLimit} remaining`,
59561
59713
  remaining,
59562
- `${result3.queriesRemaining} / ${result3.queriesLimit}`
59563
- ].join(`
59714
+ ""
59715
+ ];
59716
+ if (result3.queriesRemaining > 0) {
59717
+ lines2.push("Next experiment", "Change one variable at a time. Keep the others fixed so the output difference means something.", " chofex challenge query", "");
59718
+ } else {
59719
+ lines2.push("The oracle is now silent. Your notebook contains all the evidence you will get.", "");
59720
+ }
59721
+ lines2.push("Review your evidence", " chofex challenge notebook", " chofex challenge notebook --format csv > observations.csv");
59722
+ return lines2.join(`
59564
59723
  `);
59565
59724
  };
59566
59725
  var shipmentCells = (observation) => {
@@ -59585,22 +59744,46 @@ var shipmentCells = (observation) => {
59585
59744
  };
59586
59745
  var notebookTableText = (observations) => {
59587
59746
  if (observations.length === 0) {
59588
- return "No observations yet. Run `chofex challenge query`.";
59747
+ return [
59748
+ "CASE FILE: no observations yet",
59749
+ "The machine has not revealed anything. Start with one ordinary shipment.",
59750
+ "",
59751
+ "Next: chofex challenge query"
59752
+ ].join(`
59753
+ `);
59589
59754
  }
59590
- const header = "#\tDistance\tWeight\tHour\tFragile\tExpress\tOutput";
59755
+ let observationLabel = `${observations.length} observations`;
59756
+ if (observations.length === 1)
59757
+ observationLabel = "1 observation";
59758
+ const header = [
59759
+ "#".padEnd(4),
59760
+ "Distance".padEnd(11),
59761
+ "Weight".padEnd(9),
59762
+ "Hour".padEnd(7),
59763
+ "Fragile".padEnd(10),
59764
+ "Express".padEnd(10),
59765
+ "Output"
59766
+ ].join("");
59591
59767
  const rows = observations.map((observation) => {
59592
59768
  const cells = shipmentCells(observation);
59593
59769
  return [
59594
- observation.sequence,
59595
- cells.distance,
59596
- cells.weight,
59597
- cells.hour,
59598
- cells.fragile,
59599
- cells.express,
59770
+ String(observation.sequence).padEnd(4),
59771
+ cells.distance.padEnd(11),
59772
+ cells.weight.padEnd(9),
59773
+ cells.hour.padEnd(7),
59774
+ cells.fragile.padEnd(10),
59775
+ cells.express.padEnd(10),
59600
59776
  JSON.stringify(observation.output)
59601
- ].join("\t");
59777
+ ].join("");
59602
59778
  });
59603
- return [header, ...rows].join(`
59779
+ const lines2 = [`CASE FILE: ${observationLabel}`, "", header, ...rows, ""];
59780
+ if (observations.length === 1) {
59781
+ lines2.push("One answer is a clue, not a rule.", "Next: run a controlled experiment. Change one field and keep the other four fixed.", " chofex challenge query", "");
59782
+ } else {
59783
+ lines2.push("Look for thresholds, fixed surcharges, and interactions between fields.", "Next: test a hypothesis with a controlled query, or encode it in your solution.", " chofex challenge query", "");
59784
+ }
59785
+ lines2.push("Prepare your replacement", " chofex challenge init", " chofex challenge test --source ./shipping.js");
59786
+ return lines2.join(`
59604
59787
  `);
59605
59788
  };
59606
59789
  var notebookCsvText = (observations) => {
@@ -59621,8 +59804,13 @@ var notebookCsvText = (observations) => {
59621
59804
  `);
59622
59805
  };
59623
59806
  var challengeTestText = (result3) => {
59807
+ let verdict = "KEEP WORKING";
59808
+ if (result3.accuracy === 1)
59809
+ verdict = "NOTEBOOK MATCHED";
59624
59810
  const lines2 = [
59625
- "LOCAL TESTS (your notebook only)",
59811
+ `NOTEBOOK VERDICT: ${verdict}`,
59812
+ "These checks use only evidence you already collected, not hidden shipments.",
59813
+ "",
59626
59814
  `Accuracy ${percent(result3.accuracy)}`,
59627
59815
  `Exact predictions ${result3.matchedObservations} / ${result3.observationCount}`,
59628
59816
  `Mean error ${result3.meanError.toFixed(2)}`
@@ -59633,12 +59821,17 @@ var challengeTestText = (result3) => {
59633
59821
  lines2.push(` #${mismatch.sequence} expected ${JSON.stringify(mismatch.expected)} got ${JSON.stringify(mismatch.actual)}`);
59634
59822
  }
59635
59823
  }
59824
+ if (result3.accuracy === 1) {
59825
+ lines2.push("", "Your model explains the notebook. That is necessary, but hidden cases may expose missing rules.", "Next: evaluate only when your experiments cover meaningful boundaries", " chofex challenge evaluate --source ./shipping.js");
59826
+ } else {
59827
+ lines2.push("", "Next: edit shipping.js, explain the mismatches, and test again for free", " chofex challenge test --source ./shipping.js");
59828
+ }
59636
59829
  return lines2.join(`
59637
59830
  `);
59638
59831
  };
59639
59832
  var challengeEvaluateText = (result3) => {
59640
59833
  const lines2 = [
59641
- "BLACK BOX REPLICATION",
59834
+ "OFFICIAL VERDICT — BLACK BOX REPLICATION",
59642
59835
  `Accuracy ${percent(result3.accuracy)}`,
59643
59836
  `Exact predictions ${result3.exactCount} / ${result3.sampleSize}`,
59644
59837
  `Mean error ${result3.meanError.toFixed(2)}`,
@@ -59646,7 +59839,10 @@ var challengeEvaluateText = (result3) => {
59646
59839
  ];
59647
59840
  if (result3.rank !== undefined)
59648
59841
  lines2.push(`Rank #${result3.rank}`);
59649
- lines2.push(`Official evaluations remaining ${result3.evaluationsRemaining} / ${result3.evaluationsLimit}`, "", result3.shareText);
59842
+ lines2.push(`Official evaluations remaining ${result3.evaluationsRemaining} / ${result3.evaluationsLimit}`, "", result3.shareText, "", "Next: inspect the leaderboard", " chofex challenge ranking");
59843
+ if (result3.evaluationsRemaining > 0) {
59844
+ lines2.push("", "Before spending another evaluation, improve and retest your model against the notebook.", " chofex challenge test --source ./shipping.js");
59845
+ }
59650
59846
  return lines2.join(`
59651
59847
  `);
59652
59848
  };
@@ -59696,6 +59892,47 @@ var registrationPartsText = (result3) => {
59696
59892
  `);
59697
59893
  };
59698
59894
 
59895
+ // src/challenge-scaffold.ts
59896
+ import { writeFile as writeFile3 } from "node:fs/promises";
59897
+ var solutionPath = "shipping.js";
59898
+ var starterSource = `/**
59899
+ * The Shipping Machine
59900
+ *
59901
+ * Replace an undocumented service that calculates delivery prices.
59902
+ * Use your notebook observations to infer the hidden rules.
59903
+ *
59904
+ * input.distanceKm number 0.1–2000
59905
+ * input.weightKg number 0.1–500
59906
+ * input.hour integer 0–23
59907
+ * input.fragile boolean
59908
+ * input.express boolean
59909
+ *
59910
+ * Return one finite number: your predicted shipping price.
59911
+ */
59912
+ function calculateShipping(input) {
59913
+ // TODO: replace this baseline with the rules you discover.
59914
+ return 0;
59915
+ }
59916
+ `;
59917
+ var createChallengeScaffold = exports_Effect.fn("createChallengeScaffold")(function* () {
59918
+ const status = yield* exports_Effect.tryPromise({
59919
+ try: async () => {
59920
+ await writeFile3(solutionPath, starterSource, {
59921
+ encoding: "utf8",
59922
+ flag: "wx"
59923
+ });
59924
+ return "created";
59925
+ },
59926
+ catch: (error2) => error2
59927
+ }).pipe(exports_Effect.catch((error2) => {
59928
+ if (exports_Predicate.hasProperty(error2, "code") && error2.code === "EEXIST") {
59929
+ return exports_Effect.succeed("exists");
59930
+ }
59931
+ return exports_Effect.fail(cliError("SCAFFOLD_FAILED", `Could not create ${solutionPath}: ${String(error2)}`));
59932
+ }));
59933
+ return { path: solutionPath, status };
59934
+ });
59935
+
59699
59936
  // src/cli-root.ts
59700
59937
  var root = exports_Command.make("chofex").pipe(exports_Command.withSharedFlags({
59701
59938
  apiUrl: exports_Flag.string("api-url").pipe(exports_Flag.withDefault(config.apiUrl), exports_Flag.withDescription("Chofex API base URL")),
@@ -59827,8 +60064,18 @@ var badgeText = (result3) => {
59827
60064
 
59828
60065
  // src/challenge-commands.ts
59829
60066
  var challengeQuickstart = {
59830
- title: "Black Box quickstart",
59831
- goal: "Reverse-engineer the shipping price function, then submit a compatible JavaScript replacement.",
60067
+ title: "THE SHIPPING MACHINE",
60068
+ story: [
60069
+ "A delivery company is about to retire the service that prices every shipment.",
60070
+ "There is no documentation and no source code—only five controls and the price the machine returns."
60071
+ ],
60072
+ mission: "Learn the hidden pricing rules, then replace the machine with your own calculateShipping(input) function.",
60073
+ rules: [
60074
+ "You have 25 oracle queries to gather evidence.",
60075
+ "You have 3 official evaluations against hidden shipments.",
60076
+ "Local notebook tests are free. Accuracy wins, then exact matches, then fewer oracle queries.",
60077
+ "AI tools are welcome, but the hidden rules are personalized to you."
60078
+ ],
59832
60079
  workflow: [
59833
60080
  {
59834
60081
  step: 1,
@@ -59838,38 +60085,31 @@ var challengeQuickstart = {
59838
60085
  },
59839
60086
  {
59840
60087
  step: 2,
60088
+ action: "Prepare your field kit",
60089
+ command: "chofex challenge init",
60090
+ note: "Creates a documented shipping.js starter without overwriting existing work."
60091
+ },
60092
+ {
60093
+ step: 3,
59841
60094
  action: "Check your budget",
59842
60095
  command: "chofex challenge show",
59843
60096
  note: "Shows remaining oracle queries and official evaluations."
59844
60097
  },
59845
60098
  {
59846
- step: 3,
60099
+ step: 4,
59847
60100
  action: "Probe the Black Box",
59848
60101
  command: "chofex challenge query --distance 10 --weight 3 --hour 14 --fragile false --express false",
59849
60102
  note: "A successful query reveals one shipping price and consumes one query."
59850
60103
  },
59851
60104
  {
59852
- step: 4,
60105
+ step: 5,
59853
60106
  action: "Study your observations",
59854
60107
  command: "chofex challenge notebook",
59855
60108
  note: "Compare inputs and outputs to infer the pricing rules."
59856
60109
  },
59857
- {
59858
- step: 5,
59859
- action: "Build shipping.js",
59860
- file: "shipping.js",
59861
- source: [
59862
- "function calculateShipping(input) {",
59863
- " // Return your predicted shipping price.",
59864
- " return input.distanceKm + input.weightKg;",
59865
- "}"
59866
- ].join(`
59867
- `),
59868
- note: "Define calculateShipping and return one finite number."
59869
- },
59870
60110
  {
59871
60111
  step: 6,
59872
- action: "Test your replacement safely",
60112
+ action: "Edit and test your replacement",
59873
60113
  command: "chofex challenge test --source ./shipping.js",
59874
60114
  note: "Checks your solution against your notebook without consuming an official evaluation."
59875
60115
  },
@@ -59889,15 +60129,23 @@ var challengeQuickstart = {
59889
60129
  helpCommand: "chofex challenge query --help"
59890
60130
  };
59891
60131
  var challengeQuickstartText = () => {
59892
- const lines2 = [challengeQuickstart.title, challengeQuickstart.goal, ""];
60132
+ const lines2 = [
60133
+ challengeQuickstart.title,
60134
+ "",
60135
+ ...challengeQuickstart.story,
60136
+ "",
60137
+ "YOUR MISSION",
60138
+ challengeQuickstart.mission,
60139
+ "",
60140
+ "RULES OF THE GAME",
60141
+ ...challengeQuickstart.rules.map((rule) => `• ${rule}`),
60142
+ "",
60143
+ "FIELD GUIDE",
60144
+ ""
60145
+ ];
59893
60146
  for (const item of challengeQuickstart.workflow) {
59894
60147
  lines2.push(`${item.step}. ${item.action}`);
59895
- if ("command" in item)
59896
- lines2.push(` ${item.command}`);
59897
- if ("source" in item) {
59898
- lines2.push(...item.source.split(`
59899
- `).map((line) => ` ${line}`));
59900
- }
60148
+ lines2.push(` ${item.command}`);
59901
60149
  lines2.push(` ${item.note}`, "");
59902
60150
  }
59903
60151
  lines2.push(`More detail: ${challengeQuickstart.helpCommand}`);
@@ -59922,6 +60170,29 @@ var booleanFromOption = (value3) => {
59922
60170
  if (value3.value === "false")
59923
60171
  return false;
59924
60172
  };
60173
+ var challengeInitText = (result3) => {
60174
+ if (result3.status === "exists") {
60175
+ return [
60176
+ `${result3.path} already exists. Left it unchanged.`,
60177
+ "",
60178
+ "Next: keep investigating, then test your current solution",
60179
+ " chofex challenge query",
60180
+ ` chofex challenge test --source ./${result3.path}`
60181
+ ].join(`
60182
+ `);
60183
+ }
60184
+ return [
60185
+ `Created ${result3.path}`,
60186
+ "A documented baseline is ready for the rules you discover.",
60187
+ "",
60188
+ "Next: probe the machine",
60189
+ " chofex challenge query",
60190
+ "",
60191
+ `Then edit ${result3.path} and test it safely:`,
60192
+ ` chofex challenge test --source ./${result3.path}`
60193
+ ].join(`
60194
+ `);
60195
+ };
59925
60196
  var listCommand = exports_Command.make("list", {}, exports_Effect.fn("challengeListCommand")(function* () {
59926
60197
  const options = yield* root;
59927
60198
  yield* execute(options.output, listChallenges({ apiUrl: options.apiUrl }), challengeListText);
@@ -59931,6 +60202,21 @@ var listCommand = exports_Command.make("list", {}, exports_Effect.fn("challengeL
59931
60202
  description: "See which challenge is currently playable"
59932
60203
  }
59933
60204
  ]));
60205
+ var initCommand = exports_Command.make("init", {}, exports_Effect.fn("challengeInitCommand")(function* () {
60206
+ const options = yield* root;
60207
+ const operation = createChallengeScaffold().pipe(exports_Effect.map((data) => ({
60208
+ version: 1,
60209
+ ok: true,
60210
+ requestId: crypto.randomUUID(),
60211
+ data
60212
+ })));
60213
+ yield* execute(options.output, operation, challengeInitText);
60214
+ })).pipe(exports_Command.withDescription("Create a documented shipping.js starter in the current directory. Existing files are never overwritten."), exports_Command.withExamples([
60215
+ {
60216
+ command: "chofex challenge init",
60217
+ description: "Prepare a safe JavaScript solution file"
60218
+ }
60219
+ ]));
59934
60220
  var showCommand = exports_Command.make("show", { challenge: challengeFlag }, exports_Effect.fn("challengeShowCommand")(function* ({ challenge }) {
59935
60221
  const options = yield* root;
59936
60222
  const token = exports_Option.getOrUndefined(options.token);
@@ -60067,6 +60353,7 @@ var challengeCommand = exports_Command.make("challenge", {}, exports_Effect.fn("
60067
60353
  }
60068
60354
  ]), exports_Command.withSubcommands([
60069
60355
  listCommand,
60356
+ initCommand,
60070
60357
  showCommand,
60071
60358
  queryCommand,
60072
60359
  notebookCommand,