@lousy-agents/cli 5.8.0 → 5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -594,50 +594,18 @@ module.exports = __rspack_createRequire_require("events");
594
594
  9896(module) {
595
595
  module.exports = __rspack_createRequire_require("fs");
596
596
 
597
- },
598
- 8611(module) {
599
- module.exports = __rspack_createRequire_require("http");
600
-
601
- },
602
- 5692(module) {
603
- module.exports = __rspack_createRequire_require("https");
604
-
605
- },
606
- 9278(module) {
607
- module.exports = __rspack_createRequire_require("net");
608
-
609
597
  },
610
598
  4589(module) {
611
599
  module.exports = __rspack_createRequire_require("node:assert");
612
600
 
613
- },
614
- 6698(module) {
615
- module.exports = __rspack_createRequire_require("node:async_hooks");
616
-
617
- },
618
- 4573(module) {
619
- module.exports = __rspack_createRequire_require("node:buffer");
620
-
621
601
  },
622
602
  1421(module) {
623
603
  module.exports = __rspack_createRequire_require("node:child_process");
624
604
 
625
- },
626
- 7540(module) {
627
- module.exports = __rspack_createRequire_require("node:console");
628
-
629
605
  },
630
606
  7598(module) {
631
607
  module.exports = __rspack_createRequire_require("node:crypto");
632
608
 
633
- },
634
- 3053(module) {
635
- module.exports = __rspack_createRequire_require("node:diagnostics_channel");
636
-
637
- },
638
- 610(module) {
639
- module.exports = __rspack_createRequire_require("node:dns");
640
-
641
609
  },
642
610
  8474(module) {
643
611
  module.exports = __rspack_createRequire_require("node:events");
@@ -650,26 +618,10 @@ module.exports = __rspack_createRequire_require("node:fs");
650
618
  1455(module) {
651
619
  module.exports = __rspack_createRequire_require("node:fs/promises");
652
620
 
653
- },
654
- 7067(module) {
655
- module.exports = __rspack_createRequire_require("node:http");
656
-
657
- },
658
- 2467(module) {
659
- module.exports = __rspack_createRequire_require("node:http2");
660
-
661
- },
662
- 4708(module) {
663
- module.exports = __rspack_createRequire_require("node:https");
664
-
665
621
  },
666
622
  8995(module) {
667
623
  module.exports = __rspack_createRequire_require("node:module");
668
624
 
669
- },
670
- 7030(module) {
671
- module.exports = __rspack_createRequire_require("node:net");
672
-
673
625
  },
674
626
  8161(module) {
675
627
  module.exports = __rspack_createRequire_require("node:os");
@@ -686,10 +638,6 @@ module.exports = __rspack_createRequire_require("node:perf_hooks");
686
638
  1708(module) {
687
639
  module.exports = __rspack_createRequire_require("node:process");
688
640
 
689
- },
690
- 1792(module) {
691
- module.exports = __rspack_createRequire_require("node:querystring");
692
-
693
641
  },
694
642
  481(module) {
695
643
  module.exports = __rspack_createRequire_require("node:readline");
@@ -699,12 +647,12 @@ module.exports = __rspack_createRequire_require("node:readline");
699
647
  module.exports = __rspack_createRequire_require("node:stream");
700
648
 
701
649
  },
702
- 7830(module) {
703
- module.exports = __rspack_createRequire_require("node:stream/web");
650
+ 6466(module) {
651
+ module.exports = __rspack_createRequire_require("node:stream/promises");
704
652
 
705
653
  },
706
- 1692(module) {
707
- module.exports = __rspack_createRequire_require("node:tls");
654
+ 6193(module) {
655
+ module.exports = __rspack_createRequire_require("node:string_decoder");
708
656
 
709
657
  },
710
658
  7066(module) {
@@ -718,10 +666,6 @@ module.exports = __rspack_createRequire_require("node:url");
718
666
  7975(module) {
719
667
  module.exports = __rspack_createRequire_require("node:util");
720
668
 
721
- },
722
- 3429(module) {
723
- module.exports = __rspack_createRequire_require("node:util/types");
724
-
725
669
  },
726
670
  8877(module) {
727
671
  module.exports = __rspack_createRequire_require("node:v8");
@@ -730,14 +674,6 @@ module.exports = __rspack_createRequire_require("node:v8");
730
674
  714(module) {
731
675
  module.exports = __rspack_createRequire_require("node:vm");
732
676
 
733
- },
734
- 5919(module) {
735
- module.exports = __rspack_createRequire_require("node:worker_threads");
736
-
737
- },
738
- 8522(module) {
739
- module.exports = __rspack_createRequire_require("node:zlib");
740
-
741
677
  },
742
678
  857(module) {
743
679
  module.exports = __rspack_createRequire_require("os");
@@ -750,34 +686,6 @@ module.exports = __rspack_createRequire_require("path");
750
686
  932(module) {
751
687
  module.exports = __rspack_createRequire_require("process");
752
688
 
753
- },
754
- 2203(module) {
755
- module.exports = __rspack_createRequire_require("stream");
756
-
757
- },
758
- 3193(module) {
759
- module.exports = __rspack_createRequire_require("string_decoder");
760
-
761
- },
762
- 4756(module) {
763
- module.exports = __rspack_createRequire_require("tls");
764
-
765
- },
766
- 2018(module) {
767
- module.exports = __rspack_createRequire_require("tty");
768
-
769
- },
770
- 7016(module) {
771
- module.exports = __rspack_createRequire_require("url");
772
-
773
- },
774
- 9023(module) {
775
- module.exports = __rspack_createRequire_require("util");
776
-
777
- },
778
- 8167(module) {
779
- module.exports = __rspack_createRequire_require("worker_threads");
780
-
781
689
  },
782
690
  3106(module) {
783
691
  module.exports = __rspack_createRequire_require("zlib");
@@ -9317,427 +9225,89 @@ function jsonc_parser_e(e,i=!1){let a=e.length,o=0,s=``,c=0,l=16,u=0,d=0,f=0,p=0
9317
9225
  function jsonc_r(n,r){let i=jsonc_parser_m(n,r?.errors,r);return (0,_format.n)(n,i,r),i}function jsonc_i(e,t){return n(e,t)}
9318
9226
 
9319
9227
  },
9320
- 8437(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
9321
- __webpack_require__.d(__webpack_exports__, {
9322
- $Q: () => (defu)
9228
+ 1583(module) {
9229
+ module.exports = JSON.parse('{"name":"dotenv","version":"17.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')
9230
+
9231
+ },
9232
+
9323
9233
  });
9324
- function isPlainObject(value) {
9325
- if (value === null || typeof value !== "object") {
9326
- return false;
9327
- }
9328
- const prototype = Object.getPrototypeOf(value);
9329
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
9330
- return false;
9331
- }
9332
- if (Symbol.iterator in value) {
9333
- return false;
9334
- }
9335
- if (Symbol.toStringTag in value) {
9336
- return Object.prototype.toString.call(value) === "[object Module]";
9337
- }
9338
- return true;
9339
- }
9234
+ // The module cache
9235
+ var __webpack_module_cache__ = {};
9340
9236
 
9341
- function _defu(baseObject, defaults, namespace = ".", merger) {
9342
- if (!isPlainObject(defaults)) {
9343
- return _defu(baseObject, {}, namespace, merger);
9344
- }
9345
- const object = Object.assign({}, defaults);
9346
- for (const key in baseObject) {
9347
- if (key === "__proto__" || key === "constructor") {
9348
- continue;
9349
- }
9350
- const value = baseObject[key];
9351
- if (value === null || value === void 0) {
9352
- continue;
9353
- }
9354
- if (merger && merger(object, key, value, namespace)) {
9355
- continue;
9356
- }
9357
- if (Array.isArray(value) && Array.isArray(object[key])) {
9358
- object[key] = [...value, ...object[key]];
9359
- } else if (isPlainObject(value) && isPlainObject(object[key])) {
9360
- object[key] = _defu(
9361
- value,
9362
- object[key],
9363
- (namespace ? `${namespace}.` : "") + key.toString(),
9364
- merger
9365
- );
9366
- } else {
9367
- object[key] = value;
9368
- }
9369
- }
9370
- return object;
9371
- }
9372
- function createDefu(merger) {
9373
- return (...arguments_) => (
9374
- // eslint-disable-next-line unicorn/no-array-reduce
9375
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
9376
- );
9237
+ // The require function
9238
+ function __webpack_require__(moduleId) {
9239
+
9240
+ // Check if module is in cache
9241
+ var cachedModule = __webpack_module_cache__[moduleId];
9242
+ if (cachedModule !== undefined) {
9243
+ return cachedModule.exports;
9377
9244
  }
9378
- const defu = createDefu();
9379
- const defuFn = createDefu((object, key, currentValue) => {
9380
- if (object[key] !== void 0 && typeof currentValue === "function") {
9381
- object[key] = currentValue(object[key]);
9382
- return true;
9383
- }
9384
- });
9385
- const defuArrayFn = createDefu((object, key, currentValue) => {
9386
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
9387
- object[key] = currentValue(object[key]);
9388
- return true;
9389
- }
9245
+ // Create a new module (and put it into the cache)
9246
+ var module = (__webpack_module_cache__[moduleId] = {
9247
+ exports: {}
9390
9248
  });
9249
+ // Execute the module function
9250
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
9391
9251
 
9252
+ // Return the exports of the module
9253
+ return module.exports;
9392
9254
 
9255
+ }
9393
9256
 
9257
+ // expose the modules object (__webpack_modules__)
9258
+ __webpack_require__.m = __webpack_modules__;
9394
9259
 
9395
- },
9396
- 2072(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
9397
- __webpack_require__.d(__webpack_exports__, {
9398
- c: () => (basename),
9399
- d: () => (dirname),
9400
- e: () => (extname),
9401
- i: () => (isAbsolute),
9402
- j: () => (join),
9403
- n: () => (normalize),
9404
- r: () => (resolve)
9405
- });
9406
- let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
9407
- return __lib__.default || __lib__; };
9408
- let _match;
9409
- const zeptomatch = (path, pattern) => {
9410
- if (!_match) {
9411
- _match = _lazyMatch();
9412
- _lazyMatch = null;
9413
- }
9414
- return _match(path, pattern);
9260
+ // webpack/runtime/create_fake_namespace_object
9261
+ (() => {
9262
+ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
9263
+ var leafPrototypes;
9264
+ // create a fake namespace object
9265
+ // mode & 1: value is a module id, require it
9266
+ // mode & 2: merge all properties of value into the ns
9267
+ // mode & 4: return value when already ns object
9268
+ // mode & 16: return value when it's Promise-like
9269
+ // mode & 8|1: behave like require
9270
+ __webpack_require__.t = function(value, mode) {
9271
+ if(mode & 1) value = this(value);
9272
+ if(mode & 8) return value;
9273
+ if(typeof value === 'object' && value) {
9274
+ if((mode & 4) && value.__esModule) return value;
9275
+ if((mode & 16) && typeof value.then === 'function') return value;
9276
+ }
9277
+ var ns = Object.create(null);
9278
+ __webpack_require__.r(ns);
9279
+ var def = {};
9280
+ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
9281
+ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
9282
+ Object.getOwnPropertyNames(current).forEach((key) => { def[key] = () => (value[key]) });
9283
+ }
9284
+ def['default'] = () => (value);
9285
+ __webpack_require__.d(ns, def);
9286
+ return ns;
9415
9287
  };
9416
-
9417
- const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
9418
- function normalizeWindowsPath(input = "") {
9419
- if (!input) {
9420
- return input;
9421
- }
9422
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
9423
- }
9424
-
9425
- const _UNC_REGEX = /^[/\\]{2}/;
9426
- const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
9427
- const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
9428
- const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
9429
- const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
9430
- const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
9431
- const sep = "/";
9432
- const normalize = function(path) {
9433
- if (path.length === 0) {
9434
- return ".";
9435
- }
9436
- path = normalizeWindowsPath(path);
9437
- const isUNCPath = path.match(_UNC_REGEX);
9438
- const isPathAbsolute = isAbsolute(path);
9439
- const trailingSeparator = path[path.length - 1] === "/";
9440
- path = normalizeString(path, !isPathAbsolute);
9441
- if (path.length === 0) {
9442
- if (isPathAbsolute) {
9443
- return "/";
9444
- }
9445
- return trailingSeparator ? "./" : ".";
9446
- }
9447
- if (trailingSeparator) {
9448
- path += "/";
9449
- }
9450
- if (_DRIVE_LETTER_RE.test(path)) {
9451
- path += "/";
9452
- }
9453
- if (isUNCPath) {
9454
- if (!isPathAbsolute) {
9455
- return `//./${path}`;
9288
+ })();
9289
+ // webpack/runtime/define_property_getters
9290
+ (() => {
9291
+ __webpack_require__.d = (exports, definition) => {
9292
+ for(var key in definition) {
9293
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
9294
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
9295
+ }
9456
9296
  }
9457
- return `//${path}`;
9458
- }
9459
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
9460
9297
  };
9461
- const join = function(...segments) {
9462
- let path = "";
9463
- for (const seg of segments) {
9464
- if (!seg) {
9465
- continue;
9466
- }
9467
- if (path.length > 0) {
9468
- const pathTrailing = path[path.length - 1] === "/";
9469
- const segLeading = seg[0] === "/";
9470
- const both = pathTrailing && segLeading;
9471
- if (both) {
9472
- path += seg.slice(1);
9473
- } else {
9474
- path += pathTrailing || segLeading ? seg : `/${seg}`;
9475
- }
9476
- } else {
9477
- path += seg;
9478
- }
9479
- }
9480
- return normalize(path);
9481
- };
9482
- function cwd() {
9483
- if (typeof process !== "undefined" && typeof process.cwd === "function") {
9484
- return process.cwd().replace(/\\/g, "/");
9485
- }
9486
- return "/";
9487
- }
9488
- const resolve = function(...arguments_) {
9489
- arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
9490
- let resolvedPath = "";
9491
- let resolvedAbsolute = false;
9492
- for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
9493
- const path = index >= 0 ? arguments_[index] : cwd();
9494
- if (!path || path.length === 0) {
9495
- continue;
9496
- }
9497
- resolvedPath = `${path}/${resolvedPath}`;
9498
- resolvedAbsolute = isAbsolute(path);
9499
- }
9500
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
9501
- if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
9502
- return `/${resolvedPath}`;
9503
- }
9504
- return resolvedPath.length > 0 ? resolvedPath : ".";
9505
- };
9506
- function normalizeString(path, allowAboveRoot) {
9507
- let res = "";
9508
- let lastSegmentLength = 0;
9509
- let lastSlash = -1;
9510
- let dots = 0;
9511
- let char = null;
9512
- for (let index = 0; index <= path.length; ++index) {
9513
- if (index < path.length) {
9514
- char = path[index];
9515
- } else if (char === "/") {
9516
- break;
9517
- } else {
9518
- char = "/";
9519
- }
9520
- if (char === "/") {
9521
- if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
9522
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
9523
- if (res.length > 2) {
9524
- const lastSlashIndex = res.lastIndexOf("/");
9525
- if (lastSlashIndex === -1) {
9526
- res = "";
9527
- lastSegmentLength = 0;
9528
- } else {
9529
- res = res.slice(0, lastSlashIndex);
9530
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
9531
- }
9532
- lastSlash = index;
9533
- dots = 0;
9534
- continue;
9535
- } else if (res.length > 0) {
9536
- res = "";
9537
- lastSegmentLength = 0;
9538
- lastSlash = index;
9539
- dots = 0;
9540
- continue;
9541
- }
9542
- }
9543
- if (allowAboveRoot) {
9544
- res += res.length > 0 ? "/.." : "..";
9545
- lastSegmentLength = 2;
9546
- }
9547
- } else {
9548
- if (res.length > 0) {
9549
- res += `/${path.slice(lastSlash + 1, index)}`;
9550
- } else {
9551
- res = path.slice(lastSlash + 1, index);
9552
- }
9553
- lastSegmentLength = index - lastSlash - 1;
9554
- }
9555
- lastSlash = index;
9556
- dots = 0;
9557
- } else if (char === "." && dots !== -1) {
9558
- ++dots;
9559
- } else {
9560
- dots = -1;
9561
- }
9562
- }
9563
- return res;
9564
- }
9565
- const isAbsolute = function(p) {
9566
- return _IS_ABSOLUTE_RE.test(p);
9567
- };
9568
- const toNamespacedPath = function(p) {
9569
- return normalizeWindowsPath(p);
9570
- };
9571
- const extname = function(p) {
9572
- if (p === "..") return "";
9573
- const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
9574
- return match && match[1] || "";
9575
- };
9576
- const relative = function(from, to) {
9577
- const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
9578
- const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
9579
- if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
9580
- return _to.join("/");
9581
- }
9582
- const _fromCopy = [..._from];
9583
- for (const segment of _fromCopy) {
9584
- if (_to[0] !== segment) {
9585
- break;
9586
- }
9587
- _from.shift();
9588
- _to.shift();
9589
- }
9590
- return [..._from.map(() => ".."), ..._to].join("/");
9591
- };
9592
- const dirname = function(p) {
9593
- const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
9594
- if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
9595
- segments[0] += "/";
9596
- }
9597
- return segments.join("/") || (isAbsolute(p) ? "/" : ".");
9598
- };
9599
- const format = function(p) {
9600
- const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
9601
- const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
9602
- Boolean
9603
- );
9604
- return normalizeWindowsPath(
9605
- p.root ? resolve(...segments) : segments.join("/")
9606
- );
9607
- };
9608
- const basename = function(p, extension) {
9609
- const segments = normalizeWindowsPath(p).split("/");
9610
- let lastSegment = "";
9611
- for (let i = segments.length - 1; i >= 0; i--) {
9612
- const val = segments[i];
9613
- if (val) {
9614
- lastSegment = val;
9615
- break;
9616
- }
9617
- }
9618
- return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
9619
- };
9620
- const parse = function(p) {
9621
- const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
9622
- const base = basename(p);
9623
- const extension = extname(base);
9624
- return {
9625
- root,
9626
- dir: dirname(p),
9627
- base,
9628
- ext: extension,
9629
- name: base.slice(0, base.length - extension.length)
9630
- };
9631
- };
9632
- const matchesGlob = (path, pattern) => {
9633
- return zeptomatch(pattern, normalize(path));
9634
- };
9635
-
9636
- const _path = (/* unused pure expression or super */ null && ({
9637
- __proto__: null,
9638
- basename: basename,
9639
- dirname: dirname,
9640
- extname: extname,
9641
- format: format,
9642
- isAbsolute: isAbsolute,
9643
- join: join,
9644
- matchesGlob: matchesGlob,
9645
- normalize: normalize,
9646
- normalizeString: normalizeString,
9647
- parse: parse,
9648
- relative: relative,
9649
- resolve: resolve,
9650
- sep: sep,
9651
- toNamespacedPath: toNamespacedPath
9652
- }));
9653
-
9654
-
9655
-
9656
-
9657
- },
9658
- 1583(module) {
9659
- module.exports = JSON.parse('{"name":"dotenv","version":"17.3.1","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')
9660
-
9661
- },
9662
-
9663
- });
9664
- // The module cache
9665
- var __webpack_module_cache__ = {};
9666
-
9667
- // The require function
9668
- function __webpack_require__(moduleId) {
9669
-
9670
- // Check if module is in cache
9671
- var cachedModule = __webpack_module_cache__[moduleId];
9672
- if (cachedModule !== undefined) {
9673
- return cachedModule.exports;
9674
- }
9675
- // Create a new module (and put it into the cache)
9676
- var module = (__webpack_module_cache__[moduleId] = {
9677
- exports: {}
9678
- });
9679
- // Execute the module function
9680
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
9681
-
9682
- // Return the exports of the module
9683
- return module.exports;
9684
-
9685
- }
9686
-
9687
- // expose the modules object (__webpack_modules__)
9688
- __webpack_require__.m = __webpack_modules__;
9689
-
9690
- // webpack/runtime/create_fake_namespace_object
9691
- (() => {
9692
- var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
9693
- var leafPrototypes;
9694
- // create a fake namespace object
9695
- // mode & 1: value is a module id, require it
9696
- // mode & 2: merge all properties of value into the ns
9697
- // mode & 4: return value when already ns object
9698
- // mode & 16: return value when it's Promise-like
9699
- // mode & 8|1: behave like require
9700
- __webpack_require__.t = function(value, mode) {
9701
- if(mode & 1) value = this(value);
9702
- if(mode & 8) return value;
9703
- if(typeof value === 'object' && value) {
9704
- if((mode & 4) && value.__esModule) return value;
9705
- if((mode & 16) && typeof value.then === 'function') return value;
9706
- }
9707
- var ns = Object.create(null);
9708
- __webpack_require__.r(ns);
9709
- var def = {};
9710
- leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
9711
- for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
9712
- Object.getOwnPropertyNames(current).forEach((key) => { def[key] = () => (value[key]) });
9713
- }
9714
- def['default'] = () => (value);
9715
- __webpack_require__.d(ns, def);
9716
- return ns;
9717
- };
9718
- })();
9719
- // webpack/runtime/define_property_getters
9720
- (() => {
9721
- __webpack_require__.d = (exports, definition) => {
9722
- for(var key in definition) {
9723
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
9724
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
9725
- }
9726
- }
9727
- };
9728
- })();
9729
- // webpack/runtime/ensure_chunk
9730
- (() => {
9731
- __webpack_require__.f = {};
9732
- // This file contains only the entry chunk.
9733
- // The chunk loading function for additional chunks
9734
- __webpack_require__.e = (chunkId) => {
9735
- return Promise.all(
9736
- Object.keys(__webpack_require__.f).reduce((promises, key) => {
9737
- __webpack_require__.f[key](chunkId, promises);
9738
- return promises;
9739
- }, [])
9740
- );
9298
+ })();
9299
+ // webpack/runtime/ensure_chunk
9300
+ (() => {
9301
+ __webpack_require__.f = {};
9302
+ // This file contains only the entry chunk.
9303
+ // The chunk loading function for additional chunks
9304
+ __webpack_require__.e = (chunkId) => {
9305
+ return Promise.all(
9306
+ Object.keys(__webpack_require__.f).reduce((promises, key) => {
9307
+ __webpack_require__.f[key](chunkId, promises);
9308
+ return promises;
9309
+ }, [])
9310
+ );
9741
9311
  };
9742
9312
  })();
9743
9313
  // webpack/runtime/get javascript chunk filename
@@ -10695,38 +10265,287 @@ function isPathWithinRoot(rootPath, candidatePath) {
10695
10265
  const normalizedContent = content.endsWith("\n") ? content : `${content}\n`;
10696
10266
  await writeFile(docPath, normalizedContent, "utf-8");
10697
10267
  }
10698
- }
10699
- /**
10700
- * Factory function to create a Claude file gateway
10701
- */ function createClaudeFileGateway() {
10702
- return new FileSystemClaudeFileGateway();
10703
- }
10268
+ }
10269
+ /**
10270
+ * Factory function to create a Claude file gateway
10271
+ */ function createClaudeFileGateway() {
10272
+ return new FileSystemClaudeFileGateway();
10273
+ }
10274
+
10275
+ ;// CONCATENATED MODULE: ../core/src/entities/copilot-setup.ts
10276
+ /**
10277
+ * Core domain entities for the Copilot Setup Steps feature.
10278
+ * These are the fundamental types that represent the business domain.
10279
+ */ /**
10280
+ * Types of version files supported for detection
10281
+ */ /**
10282
+ * Node.js package manager types (in priority order: npm > yarn > pnpm)
10283
+ */ const NODE_PACKAGE_MANAGERS = [
10284
+ "npm",
10285
+ "yarn",
10286
+ "pnpm"
10287
+ ];
10288
+ /**
10289
+ * Python package manager types (in priority order)
10290
+ */ const PYTHON_PACKAGE_MANAGERS = [
10291
+ "poetry",
10292
+ "pipenv",
10293
+ "pip"
10294
+ ];
10295
+
10296
+ // EXTERNAL MODULE: external "node:fs"
10297
+ var external_node_fs_ = __webpack_require__(3024);
10298
+ ;// CONCATENATED MODULE: ../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
10299
+ let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
10300
+ return __lib__.default || __lib__; };
10301
+ let _match;
10302
+ const zeptomatch = (path, pattern) => {
10303
+ if (!_match) {
10304
+ _match = _lazyMatch();
10305
+ _lazyMatch = null;
10306
+ }
10307
+ return _match(path, pattern);
10308
+ };
10309
+
10310
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
10311
+ function normalizeWindowsPath(input = "") {
10312
+ if (!input) {
10313
+ return input;
10314
+ }
10315
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
10316
+ }
10317
+
10318
+ const _UNC_REGEX = /^[/\\]{2}/;
10319
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
10320
+ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
10321
+ const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
10322
+ const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
10323
+ const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
10324
+ const sep = "/";
10325
+ const normalize = function(path) {
10326
+ if (path.length === 0) {
10327
+ return ".";
10328
+ }
10329
+ path = normalizeWindowsPath(path);
10330
+ const isUNCPath = path.match(_UNC_REGEX);
10331
+ const isPathAbsolute = isAbsolute(path);
10332
+ const trailingSeparator = path[path.length - 1] === "/";
10333
+ path = normalizeString(path, !isPathAbsolute);
10334
+ if (path.length === 0) {
10335
+ if (isPathAbsolute) {
10336
+ return "/";
10337
+ }
10338
+ return trailingSeparator ? "./" : ".";
10339
+ }
10340
+ if (trailingSeparator) {
10341
+ path += "/";
10342
+ }
10343
+ if (_DRIVE_LETTER_RE.test(path)) {
10344
+ path += "/";
10345
+ }
10346
+ if (isUNCPath) {
10347
+ if (!isPathAbsolute) {
10348
+ return `//./${path}`;
10349
+ }
10350
+ return `//${path}`;
10351
+ }
10352
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
10353
+ };
10354
+ const pathe_M_eThtNZ_join = function(...segments) {
10355
+ let path = "";
10356
+ for (const seg of segments) {
10357
+ if (!seg) {
10358
+ continue;
10359
+ }
10360
+ if (path.length > 0) {
10361
+ const pathTrailing = path[path.length - 1] === "/";
10362
+ const segLeading = seg[0] === "/";
10363
+ const both = pathTrailing && segLeading;
10364
+ if (both) {
10365
+ path += seg.slice(1);
10366
+ } else {
10367
+ path += pathTrailing || segLeading ? seg : `/${seg}`;
10368
+ }
10369
+ } else {
10370
+ path += seg;
10371
+ }
10372
+ }
10373
+ return normalize(path);
10374
+ };
10375
+ function pathe_M_eThtNZ_cwd() {
10376
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
10377
+ return process.cwd().replace(/\\/g, "/");
10378
+ }
10379
+ return "/";
10380
+ }
10381
+ const pathe_M_eThtNZ_resolve = function(...arguments_) {
10382
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
10383
+ let resolvedPath = "";
10384
+ let resolvedAbsolute = false;
10385
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
10386
+ const path = index >= 0 ? arguments_[index] : pathe_M_eThtNZ_cwd();
10387
+ if (!path || path.length === 0) {
10388
+ continue;
10389
+ }
10390
+ resolvedPath = `${path}/${resolvedPath}`;
10391
+ resolvedAbsolute = isAbsolute(path);
10392
+ }
10393
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
10394
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
10395
+ return `/${resolvedPath}`;
10396
+ }
10397
+ return resolvedPath.length > 0 ? resolvedPath : ".";
10398
+ };
10399
+ function normalizeString(path, allowAboveRoot) {
10400
+ let res = "";
10401
+ let lastSegmentLength = 0;
10402
+ let lastSlash = -1;
10403
+ let dots = 0;
10404
+ let char = null;
10405
+ for (let index = 0; index <= path.length; ++index) {
10406
+ if (index < path.length) {
10407
+ char = path[index];
10408
+ } else if (char === "/") {
10409
+ break;
10410
+ } else {
10411
+ char = "/";
10412
+ }
10413
+ if (char === "/") {
10414
+ if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
10415
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
10416
+ if (res.length > 2) {
10417
+ const lastSlashIndex = res.lastIndexOf("/");
10418
+ if (lastSlashIndex === -1) {
10419
+ res = "";
10420
+ lastSegmentLength = 0;
10421
+ } else {
10422
+ res = res.slice(0, lastSlashIndex);
10423
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
10424
+ }
10425
+ lastSlash = index;
10426
+ dots = 0;
10427
+ continue;
10428
+ } else if (res.length > 0) {
10429
+ res = "";
10430
+ lastSegmentLength = 0;
10431
+ lastSlash = index;
10432
+ dots = 0;
10433
+ continue;
10434
+ }
10435
+ }
10436
+ if (allowAboveRoot) {
10437
+ res += res.length > 0 ? "/.." : "..";
10438
+ lastSegmentLength = 2;
10439
+ }
10440
+ } else {
10441
+ if (res.length > 0) {
10442
+ res += `/${path.slice(lastSlash + 1, index)}`;
10443
+ } else {
10444
+ res = path.slice(lastSlash + 1, index);
10445
+ }
10446
+ lastSegmentLength = index - lastSlash - 1;
10447
+ }
10448
+ lastSlash = index;
10449
+ dots = 0;
10450
+ } else if (char === "." && dots !== -1) {
10451
+ ++dots;
10452
+ } else {
10453
+ dots = -1;
10454
+ }
10455
+ }
10456
+ return res;
10457
+ }
10458
+ const isAbsolute = function(p) {
10459
+ return _IS_ABSOLUTE_RE.test(p);
10460
+ };
10461
+ const toNamespacedPath = function(p) {
10462
+ return normalizeWindowsPath(p);
10463
+ };
10464
+ const pathe_M_eThtNZ_extname = function(p) {
10465
+ if (p === "..") return "";
10466
+ const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
10467
+ return match && match[1] || "";
10468
+ };
10469
+ const pathe_M_eThtNZ_relative = function(from, to) {
10470
+ const _from = pathe_M_eThtNZ_resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
10471
+ const _to = pathe_M_eThtNZ_resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
10472
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
10473
+ return _to.join("/");
10474
+ }
10475
+ const _fromCopy = [..._from];
10476
+ for (const segment of _fromCopy) {
10477
+ if (_to[0] !== segment) {
10478
+ break;
10479
+ }
10480
+ _from.shift();
10481
+ _to.shift();
10482
+ }
10483
+ return [..._from.map(() => ".."), ..._to].join("/");
10484
+ };
10485
+ const pathe_M_eThtNZ_dirname = function(p) {
10486
+ const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
10487
+ if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
10488
+ segments[0] += "/";
10489
+ }
10490
+ return segments.join("/") || (isAbsolute(p) ? "/" : ".");
10491
+ };
10492
+ const pathe_M_eThtNZ_format = function(p) {
10493
+ const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
10494
+ const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
10495
+ Boolean
10496
+ );
10497
+ return normalizeWindowsPath(
10498
+ p.root ? pathe_M_eThtNZ_resolve(...segments) : segments.join("/")
10499
+ );
10500
+ };
10501
+ const pathe_M_eThtNZ_basename = function(p, extension) {
10502
+ const segments = normalizeWindowsPath(p).split("/");
10503
+ let lastSegment = "";
10504
+ for (let i = segments.length - 1; i >= 0; i--) {
10505
+ const val = segments[i];
10506
+ if (val) {
10507
+ lastSegment = val;
10508
+ break;
10509
+ }
10510
+ }
10511
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
10512
+ };
10513
+ const pathe_M_eThtNZ_parse = function(p) {
10514
+ const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
10515
+ const base = pathe_M_eThtNZ_basename(p);
10516
+ const extension = pathe_M_eThtNZ_extname(base);
10517
+ return {
10518
+ root,
10519
+ dir: pathe_M_eThtNZ_dirname(p),
10520
+ base,
10521
+ ext: extension,
10522
+ name: base.slice(0, base.length - extension.length)
10523
+ };
10524
+ };
10525
+ const matchesGlob = (path, pattern) => {
10526
+ return zeptomatch(pattern, normalize(path));
10527
+ };
10528
+
10529
+ const pathe_M_eThtNZ_path = (/* unused pure expression or super */ null && ({
10530
+ __proto__: null,
10531
+ basename: pathe_M_eThtNZ_basename,
10532
+ dirname: pathe_M_eThtNZ_dirname,
10533
+ extname: pathe_M_eThtNZ_extname,
10534
+ format: pathe_M_eThtNZ_format,
10535
+ isAbsolute: isAbsolute,
10536
+ join: pathe_M_eThtNZ_join,
10537
+ matchesGlob: matchesGlob,
10538
+ normalize: normalize,
10539
+ normalizeString: normalizeString,
10540
+ parse: pathe_M_eThtNZ_parse,
10541
+ relative: pathe_M_eThtNZ_relative,
10542
+ resolve: pathe_M_eThtNZ_resolve,
10543
+ sep: sep,
10544
+ toNamespacedPath: toNamespacedPath
10545
+ }));
10546
+
10704
10547
 
10705
- ;// CONCATENATED MODULE: ../core/src/entities/copilot-setup.ts
10706
- /**
10707
- * Core domain entities for the Copilot Setup Steps feature.
10708
- * These are the fundamental types that represent the business domain.
10709
- */ /**
10710
- * Types of version files supported for detection
10711
- */ /**
10712
- * Node.js package manager types (in priority order: npm > yarn > pnpm)
10713
- */ const NODE_PACKAGE_MANAGERS = [
10714
- "npm",
10715
- "yarn",
10716
- "pnpm"
10717
- ];
10718
- /**
10719
- * Python package manager types (in priority order)
10720
- */ const PYTHON_PACKAGE_MANAGERS = [
10721
- "poetry",
10722
- "pipenv",
10723
- "pip"
10724
- ];
10725
10548
 
10726
- // EXTERNAL MODULE: external "node:fs"
10727
- var external_node_fs_ = __webpack_require__(3024);
10728
- // EXTERNAL MODULE: ../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
10729
- var pathe_M_eThtNZ = __webpack_require__(2072);
10730
10549
  // EXTERNAL MODULE: ../../node_modules/dotenv/lib/main.js
10731
10550
  var lib_main = __webpack_require__(5599);
10732
10551
  // EXTERNAL MODULE: external "node:url"
@@ -11820,6 +11639,92 @@ function createJiti(id, opts = {}) {
11820
11639
 
11821
11640
  /* export default */ const lib_jiti = ((/* unused pure expression or super */ null && (createJiti)));
11822
11641
 
11642
+ ;// CONCATENATED MODULE: ../../node_modules/rc9/dist/_chunks/libs/flat.mjs
11643
+ //#region node_modules/.pnpm/flat@6.0.1/node_modules/flat/index.js
11644
+ function isBuffer(obj) {
11645
+ return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
11646
+ }
11647
+ function keyIdentity(key) {
11648
+ return key;
11649
+ }
11650
+ function flat_flatten(target, opts) {
11651
+ opts = opts || {};
11652
+ const delimiter = opts.delimiter || ".";
11653
+ const maxDepth = opts.maxDepth;
11654
+ const transformKey = opts.transformKey || keyIdentity;
11655
+ const output = {};
11656
+ function step(object, prev, currentDepth) {
11657
+ currentDepth = currentDepth || 1;
11658
+ Object.keys(object).forEach(function(key) {
11659
+ const value = object[key];
11660
+ const isarray = opts.safe && Array.isArray(value);
11661
+ const type = Object.prototype.toString.call(value);
11662
+ const isbuffer = isBuffer(value);
11663
+ const isobject = type === "[object Object]" || type === "[object Array]";
11664
+ const newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
11665
+ if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) return step(value, newKey, currentDepth + 1);
11666
+ output[newKey] = value;
11667
+ });
11668
+ }
11669
+ step(target);
11670
+ return output;
11671
+ }
11672
+ function flat_unflatten(target, opts) {
11673
+ opts = opts || {};
11674
+ const delimiter = opts.delimiter || ".";
11675
+ const overwrite = opts.overwrite || false;
11676
+ const transformKey = opts.transformKey || keyIdentity;
11677
+ const result = {};
11678
+ if (isBuffer(target) || Object.prototype.toString.call(target) !== "[object Object]") return target;
11679
+ function getkey(key) {
11680
+ const parsedKey = Number(key);
11681
+ return isNaN(parsedKey) || key.indexOf(".") !== -1 || opts.object ? key : parsedKey;
11682
+ }
11683
+ function addKeys(keyPrefix, recipient, target) {
11684
+ return Object.keys(target).reduce(function(result, key) {
11685
+ result[keyPrefix + delimiter + key] = target[key];
11686
+ return result;
11687
+ }, recipient);
11688
+ }
11689
+ function isEmpty(val) {
11690
+ const type = Object.prototype.toString.call(val);
11691
+ const isArray = type === "[object Array]";
11692
+ const isObject = type === "[object Object]";
11693
+ if (!val) return true;
11694
+ else if (isArray) return !val.length;
11695
+ else if (isObject) return !Object.keys(val).length;
11696
+ }
11697
+ target = Object.keys(target).reduce(function(result, key) {
11698
+ const type = Object.prototype.toString.call(target[key]);
11699
+ if (!(type === "[object Object]" || type === "[object Array]") || isEmpty(target[key])) {
11700
+ result[key] = target[key];
11701
+ return result;
11702
+ } else return addKeys(key, result, flat_flatten(target[key], opts));
11703
+ }, {});
11704
+ Object.keys(target).forEach(function(key) {
11705
+ const split = key.split(delimiter).map(transformKey);
11706
+ let key1 = getkey(split.shift());
11707
+ let key2 = getkey(split[0]);
11708
+ let recipient = result;
11709
+ while (key2 !== void 0) {
11710
+ if (key1 === "__proto__") return;
11711
+ const type = Object.prototype.toString.call(recipient[key1]);
11712
+ const isobject = type === "[object Object]" || type === "[object Array]";
11713
+ if (!overwrite && !isobject && typeof recipient[key1] !== "undefined") return;
11714
+ if (overwrite && !isobject || !overwrite && recipient[key1] == null) recipient[key1] = typeof key2 === "number" && !opts.object ? [] : {};
11715
+ recipient = recipient[key1];
11716
+ if (split.length > 0) {
11717
+ key1 = getkey(split.shift());
11718
+ key2 = getkey(split[0]);
11719
+ }
11720
+ }
11721
+ recipient[key1] = flat_unflatten(target[key], opts);
11722
+ });
11723
+ return result;
11724
+ }
11725
+ //#endregion
11726
+
11727
+
11823
11728
  ;// CONCATENATED MODULE: ../../node_modules/destr/dist/index.mjs
11824
11729
  const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
11825
11730
  const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
@@ -11894,255 +11799,235 @@ function safeDestr(value, options = {}) {
11894
11799
 
11895
11800
 
11896
11801
 
11897
- // EXTERNAL MODULE: ../../node_modules/defu/dist/defu.mjs
11898
- var dist_defu = __webpack_require__(8437);
11899
- ;// CONCATENATED MODULE: ../../node_modules/rc9/dist/index.mjs
11900
-
11901
-
11902
-
11903
-
11904
-
11905
-
11906
- function isBuffer (obj) {
11907
- return obj &&
11908
- obj.constructor &&
11909
- (typeof obj.constructor.isBuffer === 'function') &&
11910
- obj.constructor.isBuffer(obj)
11911
- }
11912
-
11913
- function keyIdentity (key) {
11914
- return key
11915
- }
11916
-
11917
- function flatten (target, opts) {
11918
- opts = opts || {};
11919
-
11920
- const delimiter = opts.delimiter || '.';
11921
- const maxDepth = opts.maxDepth;
11922
- const transformKey = opts.transformKey || keyIdentity;
11923
- const output = {};
11924
-
11925
- function step (object, prev, currentDepth) {
11926
- currentDepth = currentDepth || 1;
11927
- Object.keys(object).forEach(function (key) {
11928
- const value = object[key];
11929
- const isarray = opts.safe && Array.isArray(value);
11930
- const type = Object.prototype.toString.call(value);
11931
- const isbuffer = isBuffer(value);
11932
- const isobject = (
11933
- type === '[object Object]' ||
11934
- type === '[object Array]'
11935
- );
11936
-
11937
- const newKey = prev
11938
- ? prev + delimiter + transformKey(key)
11939
- : transformKey(key);
11940
-
11941
- if (!isarray && !isbuffer && isobject && Object.keys(value).length &&
11942
- (!opts.maxDepth || currentDepth < maxDepth)) {
11943
- return step(value, newKey, currentDepth + 1)
11944
- }
11945
-
11946
- output[newKey] = value;
11947
- });
11802
+ ;// CONCATENATED MODULE: ../../node_modules/defu/dist/defu.mjs
11803
+ function isPlainObject(value) {
11804
+ if (value === null || typeof value !== "object") {
11805
+ return false;
11948
11806
  }
11949
-
11950
- step(target);
11951
-
11952
- return output
11953
- }
11954
-
11955
- function unflatten (target, opts) {
11956
- opts = opts || {};
11957
-
11958
- const delimiter = opts.delimiter || '.';
11959
- const overwrite = opts.overwrite || false;
11960
- const transformKey = opts.transformKey || keyIdentity;
11961
- const result = {};
11962
-
11963
- const isbuffer = isBuffer(target);
11964
- if (isbuffer || Object.prototype.toString.call(target) !== '[object Object]') {
11965
- return target
11807
+ const prototype = Object.getPrototypeOf(value);
11808
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
11809
+ return false;
11966
11810
  }
11967
-
11968
- // safely ensure that the key is
11969
- // an integer.
11970
- function getkey (key) {
11971
- const parsedKey = Number(key);
11972
-
11973
- return (
11974
- isNaN(parsedKey) ||
11975
- key.indexOf('.') !== -1 ||
11976
- opts.object
11977
- )
11978
- ? key
11979
- : parsedKey
11811
+ if (Symbol.iterator in value) {
11812
+ return false;
11980
11813
  }
11981
-
11982
- function addKeys (keyPrefix, recipient, target) {
11983
- return Object.keys(target).reduce(function (result, key) {
11984
- result[keyPrefix + delimiter + key] = target[key];
11985
-
11986
- return result
11987
- }, recipient)
11814
+ if (Symbol.toStringTag in value) {
11815
+ return Object.prototype.toString.call(value) === "[object Module]";
11988
11816
  }
11817
+ return true;
11818
+ }
11989
11819
 
11990
- function isEmpty (val) {
11991
- const type = Object.prototype.toString.call(val);
11992
- const isArray = type === '[object Array]';
11993
- const isObject = type === '[object Object]';
11994
-
11995
- if (!val) {
11996
- return true
11997
- } else if (isArray) {
11998
- return !val.length
11999
- } else if (isObject) {
12000
- return !Object.keys(val).length
12001
- }
11820
+ function _defu(baseObject, defaults, namespace = ".", merger) {
11821
+ if (!isPlainObject(defaults)) {
11822
+ return _defu(baseObject, {}, namespace, merger);
12002
11823
  }
12003
-
12004
- target = Object.keys(target).reduce(function (result, key) {
12005
- const type = Object.prototype.toString.call(target[key]);
12006
- const isObject = (type === '[object Object]' || type === '[object Array]');
12007
- if (!isObject || isEmpty(target[key])) {
12008
- result[key] = target[key];
12009
- return result
11824
+ const object = { ...defaults };
11825
+ for (const key of Object.keys(baseObject)) {
11826
+ if (key === "__proto__" || key === "constructor") {
11827
+ continue;
11828
+ }
11829
+ const value = baseObject[key];
11830
+ if (value === null || value === void 0) {
11831
+ continue;
11832
+ }
11833
+ if (merger && merger(object, key, value, namespace)) {
11834
+ continue;
11835
+ }
11836
+ if (Array.isArray(value) && Array.isArray(object[key])) {
11837
+ object[key] = [...value, ...object[key]];
11838
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
11839
+ object[key] = _defu(
11840
+ value,
11841
+ object[key],
11842
+ (namespace ? `${namespace}.` : "") + key.toString(),
11843
+ merger
11844
+ );
12010
11845
  } else {
12011
- return addKeys(
12012
- key,
12013
- result,
12014
- flatten(target[key], opts)
12015
- )
11846
+ object[key] = value;
12016
11847
  }
12017
- }, {});
11848
+ }
11849
+ return object;
11850
+ }
11851
+ function createDefu(merger) {
11852
+ return (...arguments_) => (
11853
+ // eslint-disable-next-line unicorn/no-array-reduce
11854
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
11855
+ );
11856
+ }
11857
+ const defu_defu = createDefu();
11858
+ const defuFn = createDefu((object, key, currentValue) => {
11859
+ if (object[key] !== void 0 && typeof currentValue === "function") {
11860
+ object[key] = currentValue(object[key]);
11861
+ return true;
11862
+ }
11863
+ });
11864
+ const defuArrayFn = createDefu((object, key, currentValue) => {
11865
+ if (Array.isArray(object[key]) && typeof currentValue === "function") {
11866
+ object[key] = currentValue(object[key]);
11867
+ return true;
11868
+ }
11869
+ });
12018
11870
 
12019
- Object.keys(target).forEach(function (key) {
12020
- const split = key.split(delimiter).map(transformKey);
12021
- let key1 = getkey(split.shift());
12022
- let key2 = getkey(split[0]);
12023
- let recipient = result;
12024
11871
 
12025
- while (key2 !== undefined) {
12026
- if (key1 === '__proto__') {
12027
- return
12028
- }
12029
11872
 
12030
- const type = Object.prototype.toString.call(recipient[key1]);
12031
- const isobject = (
12032
- type === '[object Object]' ||
12033
- type === '[object Array]'
12034
- );
11873
+ ;// CONCATENATED MODULE: ../../node_modules/rc9/dist/index.mjs
12035
11874
 
12036
- // do not write over falsey, non-undefined values if overwrite is false
12037
- if (!overwrite && !isobject && typeof recipient[key1] !== 'undefined') {
12038
- return
12039
- }
12040
11875
 
12041
- if ((overwrite && !isobject) || (!overwrite && recipient[key1] == null)) {
12042
- recipient[key1] = (
12043
- typeof key2 === 'number' &&
12044
- !opts.object
12045
- ? []
12046
- : {}
12047
- );
12048
- }
12049
11876
 
12050
- recipient = recipient[key1];
12051
- if (split.length > 0) {
12052
- key1 = getkey(split.shift());
12053
- key2 = getkey(split[0]);
12054
- }
12055
- }
12056
11877
 
12057
- // unflatten again for 'messy objects'
12058
- recipient[key1] = unflatten(target[key], opts);
12059
- });
12060
11878
 
12061
- return result
12062
- }
12063
11879
 
11880
+ //#region src/index.ts
12064
11881
  const RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;
12065
11882
  const RE_LINES = /\n|\r|\r\n/;
11883
+ /**
11884
+ * The default options for the configuration file.
11885
+ */
12066
11886
  const dist_defaults = {
12067
- name: ".conf",
12068
- dir: process.cwd(),
12069
- flat: false
11887
+ name: ".conf",
11888
+ dir: process.cwd(),
11889
+ flat: false
12070
11890
  };
12071
11891
  function withDefaults(options) {
12072
- if (typeof options === "string") {
12073
- options = { name: options };
12074
- }
12075
- return { ...dist_defaults, ...options };
11892
+ if (typeof options === "string") options = { name: options };
11893
+ return {
11894
+ ...dist_defaults,
11895
+ ...options
11896
+ };
12076
11897
  }
12077
11898
  function dist_parse(contents, options = {}) {
12078
- const config = {};
12079
- const lines = contents.split(RE_LINES);
12080
- for (const line of lines) {
12081
- const match = line.match(RE_KEY_VAL);
12082
- if (!match) {
12083
- continue;
12084
- }
12085
- const key = match[1];
12086
- if (!key || key === "__proto__" || key === "constructor") {
12087
- continue;
12088
- }
12089
- const value = destr(
12090
- (match[2] || "").trim()
12091
- /* val */
12092
- );
12093
- if (key.endsWith("[]")) {
12094
- const nkey = key.slice(0, Math.max(0, key.length - 2));
12095
- config[nkey] = (config[nkey] || []).concat(value);
12096
- continue;
12097
- }
12098
- config[key] = value;
12099
- }
12100
- return options.flat ? config : unflatten(config, { overwrite: true });
11899
+ const config = {};
11900
+ const lines = contents.split(RE_LINES);
11901
+ for (const line of lines) {
11902
+ const match = line.match(RE_KEY_VAL);
11903
+ if (!match) continue;
11904
+ const key = match[1];
11905
+ if (!key || key === "__proto__" || key === "constructor") continue;
11906
+ const value = destr((match[2] || "").trim());
11907
+ if (key.endsWith("[]")) {
11908
+ const nkey = key.slice(0, Math.max(0, key.length - 2));
11909
+ config[nkey] = (config[nkey] || []).concat(value);
11910
+ continue;
11911
+ }
11912
+ config[key] = value;
11913
+ }
11914
+ return options.flat ? config : flat_unflatten(config, { overwrite: true });
12101
11915
  }
11916
+ /**
11917
+ * Parses a configuration string into an object.
11918
+ * @param {string} contents - The configuration data as a raw string.
11919
+ * @param {RCOptions} [options={}] - Options to control the parsing behaviour. See {@link RCOptions}.
11920
+ * @returns {RC} - The parsed configuration object. See {@link RC}.
11921
+ */
12102
11922
  function parseFile(path, options) {
12103
- if (!(0,external_node_fs_.existsSync)(path)) {
12104
- return {};
12105
- }
12106
- return dist_parse((0,external_node_fs_.readFileSync)(path, "utf8"), options);
11923
+ if (!(0,external_node_fs_.existsSync)(path)) return {};
11924
+ return dist_parse((0,external_node_fs_.readFileSync)(path, "utf8"), options);
12107
11925
  }
11926
+ /**
11927
+ * Reads a configuration file from a default or specified location and parses its contents.
11928
+ * @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
11929
+ * @returns {RC} - The parsed configuration object. See {@link RC}.
11930
+ */
12108
11931
  function dist_read(options) {
12109
- options = withDefaults(options);
12110
- return parseFile((0,external_node_path_.resolve)(options.dir, options.name), options);
11932
+ options = withDefaults(options);
11933
+ return parseFile((0,external_node_path_.resolve)(options.dir, options.name), options);
12111
11934
  }
11935
+ /**
11936
+ * Reads a custom configuration file from a default or specified location and parses its contents.
11937
+ * @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
11938
+ * @returns {RC} - The parsed configuration object.
11939
+ * @deprecated Use {@link readUserConfig} instead, which uses `~/.config` following XDG conventions.
11940
+ */
12112
11941
  function readUser(options) {
12113
- options = withDefaults(options);
12114
- options.dir = process.env.XDG_CONFIG_HOME || (0,external_node_os_.homedir)();
12115
- return dist_read(options);
11942
+ options = withDefaults(options);
11943
+ options.dir = process.env.XDG_CONFIG_HOME || (0,external_node_os_.homedir)();
11944
+ return dist_read(options);
12116
11945
  }
11946
+ /**
11947
+ * Serialises a configuration object to a string format.
11948
+ * @param {RC} config - The configuration object to serialise. See {@link RC}.
11949
+ * @returns {string} - The serialised configuration string.
11950
+ */
12117
11951
  function serialize(config) {
12118
- return Object.entries(flatten(config)).map(([key, value]) => `${key}=${JSON.stringify(value)}`).join("\n");
11952
+ return Object.entries(flatten(config)).map(([key, value]) => `${key}=${JSON.stringify(value)}`).join("\n");
12119
11953
  }
11954
+ /**
11955
+ * Writes a configuration object to a file in a default or specified location.
11956
+ * @param {RC} config - The configuration object to write. See {@link RC}.
11957
+ * @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
11958
+ */
12120
11959
  function dist_write(config, options) {
12121
- options = withDefaults(options);
12122
- writeFileSync(resolve(options.dir, options.name), serialize(config), {
12123
- encoding: "utf8"
12124
- });
11960
+ options = withDefaults(options);
11961
+ writeFileSync(resolve(options.dir, options.name), serialize(config), { encoding: "utf8" });
12125
11962
  }
11963
+ /**
11964
+ * Writes a custom configuration object to a file in a default or specified location.
11965
+ * @param {RC} config - The configuration object to write. See {@link RC}.
11966
+ * @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
11967
+ * @deprecated Use {@link writeUserConfig} instead, which uses `~/.config` following XDG conventions.
11968
+ */
12126
11969
  function writeUser(config, options) {
12127
- options = withDefaults(options);
12128
- options.dir = process.env.XDG_CONFIG_HOME || homedir();
12129
- dist_write(config, options);
11970
+ options = withDefaults(options);
11971
+ options.dir = process.env.XDG_CONFIG_HOME || homedir();
11972
+ dist_write(config, options);
12130
11973
  }
12131
- function update(config, options) {
12132
- options = withDefaults(options);
12133
- if (!options.flat) {
12134
- config = unflatten(config, { overwrite: true });
12135
- }
12136
- const newConfig = defu(config, dist_read(options));
12137
- dist_write(newConfig, options);
12138
- return newConfig;
11974
+ /**
11975
+ * Reads a configuration file from `$XDG_CONFIG_HOME` or `$HOME/.config` and parses its contents.
11976
+ * @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
11977
+ * @returns {RC} - The parsed configuration object.
11978
+ */
11979
+ function readUserConfig(options) {
11980
+ options = withDefaults(options);
11981
+ options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
11982
+ return dist_read(options);
11983
+ }
11984
+ /**
11985
+ * Writes a configuration object to a file in `$XDG_CONFIG_HOME` or `$HOME/.config`.
11986
+ * @param {RC} config - The configuration object to write. See {@link RC}.
11987
+ * @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
11988
+ */
11989
+ function writeUserConfig(config, options) {
11990
+ options = withDefaults(options);
11991
+ options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
11992
+ dist_write(config, options);
12139
11993
  }
11994
+ /**
11995
+ * Updates a configuration object in `$XDG_CONFIG_HOME` or `$HOME/.config` by merging and writing the result.
11996
+ * @param {RC} config - The configuration object to update. See {@link RC}.
11997
+ * @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
11998
+ * @returns {RC} - The updated configuration object.
11999
+ */
12000
+ function updateUserConfig(config, options) {
12001
+ options = withDefaults(options);
12002
+ options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
12003
+ return update(config, options);
12004
+ }
12005
+ /**
12006
+ * Updates an existing configuration object by merging it with the contents of a configuration file and writing the result.
12007
+ * @param {RC} config - The configuration object to update. See {@link RC}.
12008
+ * @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
12009
+ * @returns {RC} - The updated configuration object. See {@link RC}.
12010
+ */
12011
+ function update(config, options) {
12012
+ options = withDefaults(options);
12013
+ if (!options.flat) config = unflatten(config, { overwrite: true });
12014
+ const newConfig = defu(config, dist_read(options));
12015
+ dist_write(newConfig, options);
12016
+ return newConfig;
12017
+ }
12018
+ /**
12019
+ * Updates a custom configuration object by merging it with the contents of a configuration file in a default location and writing the result.
12020
+ * @param {RC} config - The configuration object to update. See {@link RC}.
12021
+ * @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
12022
+ * @returns {RC} - The updated configuration object. See {@link RC}.
12023
+ * @deprecated Use {@link updateUserConfig} instead, which uses `~/.config` following XDG conventions.
12024
+ */
12140
12025
  function updateUser(config, options) {
12141
- options = withDefaults(options);
12142
- options.dir = process.env.XDG_CONFIG_HOME || homedir();
12143
- return update(config, options);
12026
+ options = withDefaults(options);
12027
+ options.dir = process.env.XDG_CONFIG_HOME || homedir();
12028
+ return update(config, options);
12144
12029
  }
12145
-
12030
+ //#endregion
12146
12031
 
12147
12032
 
12148
12033
  // EXTERNAL MODULE: ../../node_modules/confbox/dist/_chunks/_format.mjs
@@ -12176,7 +12061,7 @@ const defaultFindOptions = {
12176
12061
  async function findFile(filename, _options = {}) {
12177
12062
  const filenames = Array.isArray(filename) ? filename : [filename];
12178
12063
  const options = { ...defaultFindOptions, ..._options };
12179
- const basePath = (0,pathe_M_eThtNZ.r)(options.startingFrom);
12064
+ const basePath = pathe_M_eThtNZ_resolve(options.startingFrom);
12180
12065
  const leadingSlash = basePath[0] === "/";
12181
12066
  const segments = basePath.split("/").filter(Boolean);
12182
12067
  if (filenames.includes(segments.at(-1)) && await options.test(basePath)) {
@@ -12192,7 +12077,7 @@ async function findFile(filename, _options = {}) {
12192
12077
  if (options.reverse) {
12193
12078
  for (let index = root + 1; index <= segments.length; index++) {
12194
12079
  for (const filename2 of filenames) {
12195
- const filePath = (0,pathe_M_eThtNZ.j)(...segments.slice(0, index), filename2);
12080
+ const filePath = pathe_M_eThtNZ_join(...segments.slice(0, index), filename2);
12196
12081
  if (await options.test(filePath)) {
12197
12082
  return filePath;
12198
12083
  }
@@ -12201,7 +12086,7 @@ async function findFile(filename, _options = {}) {
12201
12086
  } else {
12202
12087
  for (let index = segments.length; index > root; index--) {
12203
12088
  for (const filename2 of filenames) {
12204
- const filePath = (0,pathe_M_eThtNZ.j)(...segments.slice(0, index), filename2);
12089
+ const filePath = pathe_M_eThtNZ_join(...segments.slice(0, index), filename2);
12205
12090
  if (await options.test(filePath)) {
12206
12091
  return filePath;
12207
12092
  }
@@ -12221,10 +12106,10 @@ function findFarthestFile(filename, options = {}) {
12221
12106
 
12222
12107
  function _resolvePath(id, opts = {}) {
12223
12108
  if (id instanceof URL || id.startsWith("file://")) {
12224
- return (0,pathe_M_eThtNZ.n)((0,external_node_url_.fileURLToPath)(id));
12109
+ return normalize((0,external_node_url_.fileURLToPath)(id));
12225
12110
  }
12226
- if ((0,pathe_M_eThtNZ.i)(id)) {
12227
- return (0,pathe_M_eThtNZ.n)(id);
12111
+ if (isAbsolute(id)) {
12112
+ return normalize(id);
12228
12113
  }
12229
12114
  return resolveModulePath(id, {
12230
12115
  ...opts,
@@ -12350,10 +12235,10 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
12350
12235
  });
12351
12236
  }
12352
12237
  const workspaceTests = {
12353
- workspaceFile: (opts) => findFile(workspaceFiles, opts).then((r) => (0,pathe_M_eThtNZ.d)(r)),
12354
- gitConfig: (opts) => findFile(".git/config", opts).then((r) => (0,pathe_M_eThtNZ.r)(r, "../..")),
12355
- lockFile: (opts) => findFile(lockFiles, opts).then((r) => (0,pathe_M_eThtNZ.d)(r)),
12356
- packageJson: (opts) => findFile(packageFiles, opts).then((r) => (0,pathe_M_eThtNZ.d)(r))
12238
+ workspaceFile: (opts) => findFile(workspaceFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r)),
12239
+ gitConfig: (opts) => findFile(".git/config", opts).then((r) => pathe_M_eThtNZ_resolve(r, "../..")),
12240
+ lockFile: (opts) => findFile(lockFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r)),
12241
+ packageJson: (opts) => findFile(packageFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r))
12357
12242
  };
12358
12243
  async function findWorkspaceDir(id = process.cwd(), options = {}) {
12359
12244
  const startingFrom = _resolvePath(id, options);
@@ -12537,7 +12422,6 @@ function stringifyGitConfig(config) {
12537
12422
 
12538
12423
 
12539
12424
 
12540
-
12541
12425
  //#region src/dotenv.ts
12542
12426
  /**
12543
12427
  * Load and interpolate environment variables into `process.env`.
@@ -12562,13 +12446,13 @@ async function setupDotenv(options) {
12562
12446
  /** Load environment variables into an object. */
12563
12447
  async function loadDotenv(options) {
12564
12448
  const environment = Object.create(null);
12565
- const cwd = (0,pathe_M_eThtNZ.r)(options.cwd || ".");
12449
+ const cwd = pathe_M_eThtNZ_resolve(options.cwd || ".");
12566
12450
  const _fileName = options.fileName || ".env";
12567
12451
  const dotenvFiles = typeof _fileName === "string" ? [_fileName] : _fileName;
12568
12452
  const dotenvVars = getDotEnvVars(options.env || {});
12569
12453
  Object.assign(environment, options.env);
12570
12454
  for (const file of dotenvFiles) {
12571
- const dotenvFile = (0,pathe_M_eThtNZ.r)(cwd, file);
12455
+ const dotenvFile = pathe_M_eThtNZ_resolve(cwd, file);
12572
12456
  if (!(0,external_node_fs_.statSync)(dotenvFile, { throwIfNoEntry: false })?.isFile()) continue;
12573
12457
  const parsed = lib_main.parse(await external_node_fs_.promises.readFile(dotenvFile, "utf8"));
12574
12458
  for (const key in parsed) {
@@ -12577,22 +12461,22 @@ async function loadDotenv(options) {
12577
12461
  dotenvVars.add(key);
12578
12462
  }
12579
12463
  }
12580
- if (options.interpolate) interpolate(environment);
12464
+ if (options.interpolate) dist_interpolate(environment);
12581
12465
  return environment;
12582
12466
  }
12583
- function interpolate(target, source = {}, parse = (v) => v) {
12467
+ function dist_interpolate(target, source = {}, parse = (v) => v) {
12584
12468
  function getValue(key) {
12585
12469
  return source[key] === void 0 ? target[key] : source[key];
12586
12470
  }
12587
- function interpolate$1(value, parents = []) {
12471
+ function interpolate(value, parents = []) {
12588
12472
  if (typeof value !== "string") return value;
12589
12473
  return parse((value.match(/(.?\${?(?:[\w:]+)?}?)/g) || []).reduce((newValue, match) => {
12590
12474
  const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
12591
12475
  const prefix = parts[1];
12592
- let value$1, replacePart;
12476
+ let value, replacePart;
12593
12477
  if (prefix === "\\") {
12594
12478
  replacePart = parts[0] || "";
12595
- value$1 = replacePart.replace(String.raw`\$`, "$");
12479
+ value = replacePart.replace(String.raw`\$`, "$");
12596
12480
  } else {
12597
12481
  const key = parts[2];
12598
12482
  replacePart = (parts[0] || "").slice(prefix.length);
@@ -12600,20 +12484,19 @@ function interpolate(target, source = {}, parse = (v) => v) {
12600
12484
  console.warn(`Please avoid recursive environment variables ( loop: ${parents.join(" > ")} > ${key} )`);
12601
12485
  return "";
12602
12486
  }
12603
- value$1 = getValue(key);
12604
- value$1 = interpolate$1(value$1, [...parents, key]);
12487
+ value = getValue(key);
12488
+ value = interpolate(value, [...parents, key]);
12605
12489
  }
12606
- return value$1 === void 0 ? newValue : newValue.replace(replacePart, value$1);
12490
+ return value === void 0 ? newValue : newValue.replace(replacePart, value);
12607
12491
  }, value));
12608
12492
  }
12609
- for (const key in target) target[key] = interpolate$1(getValue(key));
12493
+ for (const key in target) target[key] = interpolate(getValue(key));
12610
12494
  }
12611
12495
  function getDotEnvVars(targetEnvironment) {
12612
12496
  const globalRegistry = globalThis.__c12_dotenv_vars__ ||= /* @__PURE__ */ new Map();
12613
12497
  if (!globalRegistry.has(targetEnvironment)) globalRegistry.set(targetEnvironment, /* @__PURE__ */ new Set());
12614
12498
  return globalRegistry.get(targetEnvironment);
12615
12499
  }
12616
-
12617
12500
  //#endregion
12618
12501
  //#region src/loader.ts
12619
12502
  const _normalize = (p) => p?.replace(/\\/g, "/");
@@ -12639,7 +12522,7 @@ const SUPPORTED_EXTENSIONS = Object.freeze([
12639
12522
  ".toml"
12640
12523
  ]);
12641
12524
  async function loadConfig(options) {
12642
- options.cwd = (0,pathe_M_eThtNZ.r)(process.cwd(), options.cwd || ".");
12525
+ options.cwd = pathe_M_eThtNZ_resolve(process.cwd(), options.cwd || ".");
12643
12526
  options.name = options.name || "config";
12644
12527
  options.envName = options.envName ?? "production";
12645
12528
  options.configFile = options.configFile ?? (options.name === "config" ? "config" : `${options.name}.config`);
@@ -12648,8 +12531,8 @@ async function loadConfig(options) {
12648
12531
  extendKey: "extends",
12649
12532
  ...options.extend
12650
12533
  };
12651
- const _merger = options.merger || dist_defu/* .defu */.$Q;
12652
- options.jiti = options.jiti || createJiti((0,pathe_M_eThtNZ.j)(options.cwd, options.configFile), {
12534
+ const _merger = options.merger || defu_defu;
12535
+ options.jiti = options.jiti || createJiti(pathe_M_eThtNZ_join(options.cwd, options.configFile), {
12653
12536
  interopDefault: true,
12654
12537
  moduleCache: false,
12655
12538
  extensions: [...SUPPORTED_EXTENSIONS],
@@ -12658,7 +12541,7 @@ async function loadConfig(options) {
12658
12541
  const r = {
12659
12542
  config: {},
12660
12543
  cwd: options.cwd,
12661
- configFile: (0,pathe_M_eThtNZ.r)(options.cwd, options.configFile),
12544
+ configFile: pathe_M_eThtNZ_resolve(options.cwd, options.configFile),
12662
12545
  layers: [],
12663
12546
  _configFile: void 0
12664
12547
  };
@@ -12801,22 +12684,22 @@ const GIGET_PREFIXES = [
12801
12684
  const NPM_PACKAGE_RE = /^(@[\da-z~-][\d._a-z~-]*\/)?[\da-z~-][\d._a-z~-]*($|\/.*)/;
12802
12685
  async function resolveConfig(source, options, sourceOptions = {}) {
12803
12686
  if (options.resolve) {
12804
- const res$1 = await options.resolve(source, options);
12805
- if (res$1) return res$1;
12687
+ const res = await options.resolve(source, options);
12688
+ if (res) return res;
12806
12689
  }
12807
- const _merger = options.merger || dist_defu/* .defu */.$Q;
12690
+ const _merger = options.merger || defu_defu;
12808
12691
  const customProviderKeys = Object.keys(sourceOptions.giget?.providers || {}).map((key) => `${key}:`);
12809
12692
  const gigetPrefixes = customProviderKeys.length > 0 ? [...new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
12810
12693
  if (options.giget !== false && gigetPrefixes.some((prefix) => source.startsWith(prefix))) {
12811
- const { downloadTemplate } = await __webpack_require__.e(/* import() */ "433").then(__webpack_require__.bind(__webpack_require__, 7216));
12694
+ const { downloadTemplate } = await __webpack_require__.e(/* import() */ "511").then(__webpack_require__.bind(__webpack_require__, 7170));
12812
12695
  const { digest } = await __webpack_require__.e(/* import() */ "714").then(__webpack_require__.bind(__webpack_require__, 4689));
12813
12696
  const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
12814
12697
  let cloneDir;
12815
- const localNodeModules = (0,pathe_M_eThtNZ.r)(options.cwd, "node_modules");
12816
- const parentDir = (0,pathe_M_eThtNZ.d)(options.cwd);
12817
- if ((0,pathe_M_eThtNZ.c)(parentDir) === ".c12") cloneDir = (0,pathe_M_eThtNZ.j)(parentDir, cloneName);
12818
- else if ((0,external_node_fs_.existsSync)(localNodeModules)) cloneDir = (0,pathe_M_eThtNZ.j)(localNodeModules, ".c12", cloneName);
12819
- else cloneDir = process.env.XDG_CACHE_HOME ? (0,pathe_M_eThtNZ.r)(process.env.XDG_CACHE_HOME, "c12", cloneName) : (0,pathe_M_eThtNZ.r)((0,external_node_os_.homedir)(), ".cache/c12", cloneName);
12698
+ const localNodeModules = pathe_M_eThtNZ_resolve(options.cwd, "node_modules");
12699
+ const parentDir = pathe_M_eThtNZ_dirname(options.cwd);
12700
+ if (pathe_M_eThtNZ_basename(parentDir) === ".c12") cloneDir = pathe_M_eThtNZ_join(parentDir, cloneName);
12701
+ else if ((0,external_node_fs_.existsSync)(localNodeModules)) cloneDir = pathe_M_eThtNZ_join(localNodeModules, ".c12", cloneName);
12702
+ else cloneDir = process.env.XDG_CACHE_HOME ? pathe_M_eThtNZ_resolve(process.env.XDG_CACHE_HOME, "c12", cloneName) : pathe_M_eThtNZ_resolve((0,external_node_os_.homedir)(), ".cache/c12", cloneName);
12820
12703
  if ((0,external_node_fs_.existsSync)(cloneDir) && !sourceOptions.install) await (0,promises_.rm)(cloneDir, { recursive: true });
12821
12704
  source = (await downloadTemplate(source, {
12822
12705
  dir: cloneDir,
@@ -12828,9 +12711,9 @@ async function resolveConfig(source, options, sourceOptions = {}) {
12828
12711
  })).dir;
12829
12712
  }
12830
12713
  if (NPM_PACKAGE_RE.test(source)) source = tryResolve(source, options) || source;
12831
- const ext = (0,pathe_M_eThtNZ.e)(source);
12832
- const isDir = !ext || ext === (0,pathe_M_eThtNZ.c)(source);
12833
- const cwd = (0,pathe_M_eThtNZ.r)(options.cwd, isDir ? source : (0,pathe_M_eThtNZ.d)(source));
12714
+ const ext = pathe_M_eThtNZ_extname(source);
12715
+ const isDir = !ext || ext === pathe_M_eThtNZ_basename(source);
12716
+ const cwd = pathe_M_eThtNZ_resolve(options.cwd, isDir ? source : pathe_M_eThtNZ_dirname(source));
12834
12717
  if (isDir) source = options.configFile;
12835
12718
  const res = {
12836
12719
  config: void 0,
@@ -12839,10 +12722,10 @@ async function resolveConfig(source, options, sourceOptions = {}) {
12839
12722
  source,
12840
12723
  sourceOptions
12841
12724
  };
12842
- res.configFile = tryResolve((0,pathe_M_eThtNZ.r)(cwd, source), options) || tryResolve((0,pathe_M_eThtNZ.r)(cwd, ".config", source.replace(/\.config$/, "")), options) || tryResolve((0,pathe_M_eThtNZ.r)(cwd, ".config", source), options) || source;
12725
+ res.configFile = tryResolve(pathe_M_eThtNZ_resolve(cwd, source), options) || tryResolve(pathe_M_eThtNZ_resolve(cwd, ".config", source.replace(/\.config$/, "")), options) || tryResolve(pathe_M_eThtNZ_resolve(cwd, ".config", source), options) || source;
12843
12726
  if (!(0,external_node_fs_.existsSync)(res.configFile)) return res;
12844
12727
  res._configFile = res.configFile;
12845
- const configFileExt = (0,pathe_M_eThtNZ.e)(res.configFile) || "";
12728
+ const configFileExt = pathe_M_eThtNZ_extname(res.configFile) || "";
12846
12729
  if (configFileExt in ASYNC_LOADERS) res.config = (await ASYNC_LOADERS[configFileExt]())(await (0,promises_.readFile)(res.configFile, "utf8"));
12847
12730
  else res.config = await options.jiti.import(res.configFile, { default: true });
12848
12731
  if (typeof res.config === "function") res.config = await res.config(options.context);
@@ -12853,7 +12736,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
12853
12736
  };
12854
12737
  if (Object.keys(envConfig).length > 0) res.config = _merger(envConfig, res.config);
12855
12738
  }
12856
- res.meta = (0,dist_defu/* .defu */.$Q)(res.sourceOptions.meta, res.config.$meta);
12739
+ res.meta = defu_defu(res.sourceOptions.meta, res.config.$meta);
12857
12740
  delete res.config.$meta;
12858
12741
  if (res.sourceOptions.overrides) res.config = _merger(res.sourceOptions.overrides, res.config);
12859
12742
  res.configFile = _normalize(res.configFile);
@@ -12863,20 +12746,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
12863
12746
  function tryResolve(id, options) {
12864
12747
  const res = resolveModulePath(id, {
12865
12748
  try: true,
12866
- from: (0,external_node_url_.pathToFileURL)((0,pathe_M_eThtNZ.j)(options.cwd || ".", options.configFile || "/")),
12749
+ from: (0,external_node_url_.pathToFileURL)(pathe_M_eThtNZ_join(options.cwd || ".", options.configFile || "/")),
12867
12750
  suffixes: ["", "/index"],
12868
12751
  extensions: SUPPORTED_EXTENSIONS,
12869
12752
  cache: false
12870
12753
  });
12871
- return res ? (0,pathe_M_eThtNZ.n)(res) : void 0;
12754
+ return res ? normalize(res) : void 0;
12872
12755
  }
12873
-
12874
12756
  //#endregion
12875
12757
  //#region src/types.ts
12876
12758
  function createDefineConfig() {
12877
12759
  return (input) => input;
12878
12760
  }
12879
-
12880
12761
  //#endregion
12881
12762
  //#region src/watch.ts
12882
12763
  const eventMap = (/* unused pure expression or super */ null && ({
@@ -12941,9 +12822,9 @@ async function watchConfig(options) {
12941
12822
  return config[prop];
12942
12823
  } });
12943
12824
  }
12944
-
12945
12825
  //#endregion
12946
12826
 
12827
+
12947
12828
  ;// CONCATENATED MODULE: ../../node_modules/zod/v4/core/core.js
12948
12829
  /** A special constant with type `never` */
12949
12830
  const NEVER = Object.freeze({
@@ -13186,7 +13067,7 @@ const util_allowsEval = util_cached(() => {
13186
13067
  return false;
13187
13068
  }
13188
13069
  });
13189
- function isPlainObject(o) {
13070
+ function util_isPlainObject(o) {
13190
13071
  if (util_isObject(o) === false)
13191
13072
  return false;
13192
13073
  // modified constructor
@@ -13206,7 +13087,7 @@ function isPlainObject(o) {
13206
13087
  return true;
13207
13088
  }
13208
13089
  function shallowClone(o) {
13209
- if (isPlainObject(o))
13090
+ if (util_isPlainObject(o))
13210
13091
  return { ...o };
13211
13092
  if (Array.isArray(o))
13212
13093
  return [...o];
@@ -13401,7 +13282,7 @@ function omit(schema, mask) {
13401
13282
  return clone(schema, def);
13402
13283
  }
13403
13284
  function extend(schema, shape) {
13404
- if (!isPlainObject(shape)) {
13285
+ if (!util_isPlainObject(shape)) {
13405
13286
  throw new Error("Invalid input to extend: expected a plain object");
13406
13287
  }
13407
13288
  const checks = schema._zod.def.checks;
@@ -13426,7 +13307,7 @@ function extend(schema, shape) {
13426
13307
  return clone(schema, def);
13427
13308
  }
13428
13309
  function safeExtend(schema, shape) {
13429
- if (!isPlainObject(shape)) {
13310
+ if (!util_isPlainObject(shape)) {
13430
13311
  throw new Error("Invalid input to safeExtend: expected a plain object");
13431
13312
  }
13432
13313
  const def = mergeDefs(schema._zod.def, {
@@ -15858,7 +15739,7 @@ function mergeValues(a, b) {
15858
15739
  if (a instanceof Date && b instanceof Date && +a === +b) {
15859
15740
  return { valid: true, data: a };
15860
15741
  }
15861
- if (isPlainObject(a) && isPlainObject(b)) {
15742
+ if (util_isPlainObject(a) && util_isPlainObject(b)) {
15862
15743
  const bKeys = Object.keys(b);
15863
15744
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
15864
15745
  const newObj = { ...a, ...b };
@@ -16019,7 +15900,7 @@ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
16019
15900
  $ZodType.init(inst, def);
16020
15901
  inst._zod.parse = (payload, ctx) => {
16021
15902
  const input = payload.value;
16022
- if (!isPlainObject(input)) {
15903
+ if (!util_isPlainObject(input)) {
16023
15904
  payload.issues.push({
16024
15905
  expected: "record",
16025
15906
  code: "invalid_type",
@@ -16907,7 +16788,7 @@ const ar_error = () => {
16907
16788
  }
16908
16789
  };
16909
16790
  };
16910
- /* export default */ function ar() {
16791
+ /* export default */ function locales_ar() {
16911
16792
  return {
16912
16793
  localeError: ar_error(),
16913
16794
  };
@@ -18439,7 +18320,7 @@ const fr_error = () => {
18439
18320
  }
18440
18321
  };
18441
18322
  };
18442
- /* export default */ function fr() {
18323
+ /* export default */ function locales_fr() {
18443
18324
  return {
18444
18325
  localeError: fr_error(),
18445
18326
  };
@@ -21614,7 +21495,7 @@ const tr_error = () => {
21614
21495
  }
21615
21496
  };
21616
21497
  };
21617
- /* export default */ function tr() {
21498
+ /* export default */ function locales_tr() {
21618
21499
  return {
21619
21500
  localeError: tr_error(),
21620
21501
  };
@@ -21843,7 +21724,7 @@ const ur_error = () => {
21843
21724
  }
21844
21725
  };
21845
21726
  };
21846
- /* export default */ function ur() {
21727
+ /* export default */ function locales_ur() {
21847
21728
  return {
21848
21729
  localeError: ur_error(),
21849
21730
  };
@@ -26044,7 +25925,7 @@ var compat_ZodFirstPartyTypeKind;
26044
25925
 
26045
25926
 
26046
25927
  // Local z object to avoid circular dependency with ../index.js
26047
- const z = {
25928
+ const from_json_schema_z = {
26048
25929
  ...classic_schemas_namespaceObject,
26049
25930
  ...classic_checks_namespaceObject,
26050
25931
  iso: iso_namespaceObject,
@@ -26159,7 +26040,7 @@ function convertBaseSchema(schema, ctx) {
26159
26040
  if (schema.not !== undefined) {
26160
26041
  // Special case: { not: {} } represents never
26161
26042
  if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
26162
- return z.never();
26043
+ return from_json_schema_z.never();
26163
26044
  }
26164
26045
  throw new Error("not is not supported in Zod (except { not: {} } for never)");
26165
26046
  }
@@ -26183,7 +26064,7 @@ function convertBaseSchema(schema, ctx) {
26183
26064
  }
26184
26065
  if (ctx.processing.has(refPath)) {
26185
26066
  // Circular reference - use lazy
26186
- return z.lazy(() => {
26067
+ return from_json_schema_z.lazy(() => {
26187
26068
  if (!ctx.refs.has(refPath)) {
26188
26069
  throw new Error(`Circular reference not resolved: ${refPath}`);
26189
26070
  }
@@ -26205,28 +26086,28 @@ function convertBaseSchema(schema, ctx) {
26205
26086
  schema.nullable === true &&
26206
26087
  enumValues.length === 1 &&
26207
26088
  enumValues[0] === null) {
26208
- return z.null();
26089
+ return from_json_schema_z.null();
26209
26090
  }
26210
26091
  if (enumValues.length === 0) {
26211
- return z.never();
26092
+ return from_json_schema_z.never();
26212
26093
  }
26213
26094
  if (enumValues.length === 1) {
26214
- return z.literal(enumValues[0]);
26095
+ return from_json_schema_z.literal(enumValues[0]);
26215
26096
  }
26216
26097
  // Check if all values are strings
26217
26098
  if (enumValues.every((v) => typeof v === "string")) {
26218
- return z.enum(enumValues);
26099
+ return from_json_schema_z.enum(enumValues);
26219
26100
  }
26220
26101
  // Mixed types - use union of literals
26221
- const literalSchemas = enumValues.map((v) => z.literal(v));
26102
+ const literalSchemas = enumValues.map((v) => from_json_schema_z.literal(v));
26222
26103
  if (literalSchemas.length < 2) {
26223
26104
  return literalSchemas[0];
26224
26105
  }
26225
- return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
26106
+ return from_json_schema_z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
26226
26107
  }
26227
26108
  // Handle const
26228
26109
  if (schema.const !== undefined) {
26229
- return z.literal(schema.const);
26110
+ return from_json_schema_z.literal(schema.const);
26230
26111
  }
26231
26112
  // Handle type
26232
26113
  const type = schema.type;
@@ -26237,93 +26118,93 @@ function convertBaseSchema(schema, ctx) {
26237
26118
  return convertBaseSchema(typeSchema, ctx);
26238
26119
  });
26239
26120
  if (typeSchemas.length === 0) {
26240
- return z.never();
26121
+ return from_json_schema_z.never();
26241
26122
  }
26242
26123
  if (typeSchemas.length === 1) {
26243
26124
  return typeSchemas[0];
26244
26125
  }
26245
- return z.union(typeSchemas);
26126
+ return from_json_schema_z.union(typeSchemas);
26246
26127
  }
26247
26128
  if (!type) {
26248
26129
  // No type specified - empty schema (any)
26249
- return z.any();
26130
+ return from_json_schema_z.any();
26250
26131
  }
26251
26132
  let zodSchema;
26252
26133
  switch (type) {
26253
26134
  case "string": {
26254
- let stringSchema = z.string();
26135
+ let stringSchema = from_json_schema_z.string();
26255
26136
  // Apply format using .check() with Zod format functions
26256
26137
  if (schema.format) {
26257
26138
  const format = schema.format;
26258
26139
  // Map common formats to Zod check functions
26259
26140
  if (format === "email") {
26260
- stringSchema = stringSchema.check(z.email());
26141
+ stringSchema = stringSchema.check(from_json_schema_z.email());
26261
26142
  }
26262
26143
  else if (format === "uri" || format === "uri-reference") {
26263
- stringSchema = stringSchema.check(z.url());
26144
+ stringSchema = stringSchema.check(from_json_schema_z.url());
26264
26145
  }
26265
26146
  else if (format === "uuid" || format === "guid") {
26266
- stringSchema = stringSchema.check(z.uuid());
26147
+ stringSchema = stringSchema.check(from_json_schema_z.uuid());
26267
26148
  }
26268
26149
  else if (format === "date-time") {
26269
- stringSchema = stringSchema.check(z.iso.datetime());
26150
+ stringSchema = stringSchema.check(from_json_schema_z.iso.datetime());
26270
26151
  }
26271
26152
  else if (format === "date") {
26272
- stringSchema = stringSchema.check(z.iso.date());
26153
+ stringSchema = stringSchema.check(from_json_schema_z.iso.date());
26273
26154
  }
26274
26155
  else if (format === "time") {
26275
- stringSchema = stringSchema.check(z.iso.time());
26156
+ stringSchema = stringSchema.check(from_json_schema_z.iso.time());
26276
26157
  }
26277
26158
  else if (format === "duration") {
26278
- stringSchema = stringSchema.check(z.iso.duration());
26159
+ stringSchema = stringSchema.check(from_json_schema_z.iso.duration());
26279
26160
  }
26280
26161
  else if (format === "ipv4") {
26281
- stringSchema = stringSchema.check(z.ipv4());
26162
+ stringSchema = stringSchema.check(from_json_schema_z.ipv4());
26282
26163
  }
26283
26164
  else if (format === "ipv6") {
26284
- stringSchema = stringSchema.check(z.ipv6());
26165
+ stringSchema = stringSchema.check(from_json_schema_z.ipv6());
26285
26166
  }
26286
26167
  else if (format === "mac") {
26287
- stringSchema = stringSchema.check(z.mac());
26168
+ stringSchema = stringSchema.check(from_json_schema_z.mac());
26288
26169
  }
26289
26170
  else if (format === "cidr") {
26290
- stringSchema = stringSchema.check(z.cidrv4());
26171
+ stringSchema = stringSchema.check(from_json_schema_z.cidrv4());
26291
26172
  }
26292
26173
  else if (format === "cidr-v6") {
26293
- stringSchema = stringSchema.check(z.cidrv6());
26174
+ stringSchema = stringSchema.check(from_json_schema_z.cidrv6());
26294
26175
  }
26295
26176
  else if (format === "base64") {
26296
- stringSchema = stringSchema.check(z.base64());
26177
+ stringSchema = stringSchema.check(from_json_schema_z.base64());
26297
26178
  }
26298
26179
  else if (format === "base64url") {
26299
- stringSchema = stringSchema.check(z.base64url());
26180
+ stringSchema = stringSchema.check(from_json_schema_z.base64url());
26300
26181
  }
26301
26182
  else if (format === "e164") {
26302
- stringSchema = stringSchema.check(z.e164());
26183
+ stringSchema = stringSchema.check(from_json_schema_z.e164());
26303
26184
  }
26304
26185
  else if (format === "jwt") {
26305
- stringSchema = stringSchema.check(z.jwt());
26186
+ stringSchema = stringSchema.check(from_json_schema_z.jwt());
26306
26187
  }
26307
26188
  else if (format === "emoji") {
26308
- stringSchema = stringSchema.check(z.emoji());
26189
+ stringSchema = stringSchema.check(from_json_schema_z.emoji());
26309
26190
  }
26310
26191
  else if (format === "nanoid") {
26311
- stringSchema = stringSchema.check(z.nanoid());
26192
+ stringSchema = stringSchema.check(from_json_schema_z.nanoid());
26312
26193
  }
26313
26194
  else if (format === "cuid") {
26314
- stringSchema = stringSchema.check(z.cuid());
26195
+ stringSchema = stringSchema.check(from_json_schema_z.cuid());
26315
26196
  }
26316
26197
  else if (format === "cuid2") {
26317
- stringSchema = stringSchema.check(z.cuid2());
26198
+ stringSchema = stringSchema.check(from_json_schema_z.cuid2());
26318
26199
  }
26319
26200
  else if (format === "ulid") {
26320
- stringSchema = stringSchema.check(z.ulid());
26201
+ stringSchema = stringSchema.check(from_json_schema_z.ulid());
26321
26202
  }
26322
26203
  else if (format === "xid") {
26323
- stringSchema = stringSchema.check(z.xid());
26204
+ stringSchema = stringSchema.check(from_json_schema_z.xid());
26324
26205
  }
26325
26206
  else if (format === "ksuid") {
26326
- stringSchema = stringSchema.check(z.ksuid());
26207
+ stringSchema = stringSchema.check(from_json_schema_z.ksuid());
26327
26208
  }
26328
26209
  // Note: json-string format is not currently supported by Zod
26329
26210
  // Custom formats are ignored - keep as plain string
@@ -26344,7 +26225,7 @@ function convertBaseSchema(schema, ctx) {
26344
26225
  }
26345
26226
  case "number":
26346
26227
  case "integer": {
26347
- let numberSchema = type === "integer" ? z.number().int() : z.number();
26228
+ let numberSchema = type === "integer" ? from_json_schema_z.number().int() : from_json_schema_z.number();
26348
26229
  // Apply constraints
26349
26230
  if (typeof schema.minimum === "number") {
26350
26231
  numberSchema = numberSchema.min(schema.minimum);
@@ -26371,11 +26252,11 @@ function convertBaseSchema(schema, ctx) {
26371
26252
  break;
26372
26253
  }
26373
26254
  case "boolean": {
26374
- zodSchema = z.boolean();
26255
+ zodSchema = from_json_schema_z.boolean();
26375
26256
  break;
26376
26257
  }
26377
26258
  case "null": {
26378
- zodSchema = z.null();
26259
+ zodSchema = from_json_schema_z.null();
26379
26260
  break;
26380
26261
  }
26381
26262
  case "object": {
@@ -26393,16 +26274,16 @@ function convertBaseSchema(schema, ctx) {
26393
26274
  const keySchema = convertSchema(schema.propertyNames, ctx);
26394
26275
  const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object"
26395
26276
  ? convertSchema(schema.additionalProperties, ctx)
26396
- : z.any();
26277
+ : from_json_schema_z.any();
26397
26278
  // Case A: No properties (pure record)
26398
26279
  if (Object.keys(shape).length === 0) {
26399
- zodSchema = z.record(keySchema, valueSchema);
26280
+ zodSchema = from_json_schema_z.record(keySchema, valueSchema);
26400
26281
  break;
26401
26282
  }
26402
26283
  // Case B: With properties (intersection of object and looseRecord)
26403
- const objectSchema = z.object(shape).passthrough();
26404
- const recordSchema = z.looseRecord(keySchema, valueSchema);
26405
- zodSchema = z.intersection(objectSchema, recordSchema);
26284
+ const objectSchema = from_json_schema_z.object(shape).passthrough();
26285
+ const recordSchema = from_json_schema_z.looseRecord(keySchema, valueSchema);
26286
+ zodSchema = from_json_schema_z.intersection(objectSchema, recordSchema);
26406
26287
  break;
26407
26288
  }
26408
26289
  // Handle patternProperties
@@ -26414,27 +26295,27 @@ function convertBaseSchema(schema, ctx) {
26414
26295
  const looseRecords = [];
26415
26296
  for (const pattern of patternKeys) {
26416
26297
  const patternValue = convertSchema(patternProps[pattern], ctx);
26417
- const keySchema = z.string().regex(new RegExp(pattern));
26418
- looseRecords.push(z.looseRecord(keySchema, patternValue));
26298
+ const keySchema = from_json_schema_z.string().regex(new RegExp(pattern));
26299
+ looseRecords.push(from_json_schema_z.looseRecord(keySchema, patternValue));
26419
26300
  }
26420
26301
  // Build intersection: object schema + all pattern property records
26421
26302
  const schemasToIntersect = [];
26422
26303
  if (Object.keys(shape).length > 0) {
26423
26304
  // Use passthrough so patternProperties can validate additional keys
26424
- schemasToIntersect.push(z.object(shape).passthrough());
26305
+ schemasToIntersect.push(from_json_schema_z.object(shape).passthrough());
26425
26306
  }
26426
26307
  schemasToIntersect.push(...looseRecords);
26427
26308
  if (schemasToIntersect.length === 0) {
26428
- zodSchema = z.object({}).passthrough();
26309
+ zodSchema = from_json_schema_z.object({}).passthrough();
26429
26310
  }
26430
26311
  else if (schemasToIntersect.length === 1) {
26431
26312
  zodSchema = schemasToIntersect[0];
26432
26313
  }
26433
26314
  else {
26434
26315
  // Chain intersections: (A & B) & C & D ...
26435
- let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]);
26316
+ let result = from_json_schema_z.intersection(schemasToIntersect[0], schemasToIntersect[1]);
26436
26317
  for (let i = 2; i < schemasToIntersect.length; i++) {
26437
- result = z.intersection(result, schemasToIntersect[i]);
26318
+ result = from_json_schema_z.intersection(result, schemasToIntersect[i]);
26438
26319
  }
26439
26320
  zodSchema = result;
26440
26321
  }
@@ -26443,7 +26324,7 @@ function convertBaseSchema(schema, ctx) {
26443
26324
  // Handle additionalProperties
26444
26325
  // In JSON Schema, additionalProperties defaults to true (allow any extra properties)
26445
26326
  // In Zod, objects strip unknown keys by default, so we need to handle this explicitly
26446
- const objectSchema = z.object(shape);
26327
+ const objectSchema = from_json_schema_z.object(shape);
26447
26328
  if (schema.additionalProperties === false) {
26448
26329
  // Strict mode - no extra properties allowed
26449
26330
  zodSchema = objectSchema.strict();
@@ -26471,17 +26352,17 @@ function convertBaseSchema(schema, ctx) {
26471
26352
  ? convertSchema(items, ctx)
26472
26353
  : undefined;
26473
26354
  if (rest) {
26474
- zodSchema = z.tuple(tupleItems).rest(rest);
26355
+ zodSchema = from_json_schema_z.tuple(tupleItems).rest(rest);
26475
26356
  }
26476
26357
  else {
26477
- zodSchema = z.tuple(tupleItems);
26358
+ zodSchema = from_json_schema_z.tuple(tupleItems);
26478
26359
  }
26479
26360
  // Apply minItems/maxItems constraints to tuples
26480
26361
  if (typeof schema.minItems === "number") {
26481
- zodSchema = zodSchema.check(z.minLength(schema.minItems));
26362
+ zodSchema = zodSchema.check(from_json_schema_z.minLength(schema.minItems));
26482
26363
  }
26483
26364
  if (typeof schema.maxItems === "number") {
26484
- zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
26365
+ zodSchema = zodSchema.check(from_json_schema_z.maxLength(schema.maxItems));
26485
26366
  }
26486
26367
  }
26487
26368
  else if (Array.isArray(items)) {
@@ -26491,23 +26372,23 @@ function convertBaseSchema(schema, ctx) {
26491
26372
  ? convertSchema(schema.additionalItems, ctx)
26492
26373
  : undefined; // additionalItems: false means no rest, handled by default tuple behavior
26493
26374
  if (rest) {
26494
- zodSchema = z.tuple(tupleItems).rest(rest);
26375
+ zodSchema = from_json_schema_z.tuple(tupleItems).rest(rest);
26495
26376
  }
26496
26377
  else {
26497
- zodSchema = z.tuple(tupleItems);
26378
+ zodSchema = from_json_schema_z.tuple(tupleItems);
26498
26379
  }
26499
26380
  // Apply minItems/maxItems constraints to tuples
26500
26381
  if (typeof schema.minItems === "number") {
26501
- zodSchema = zodSchema.check(z.minLength(schema.minItems));
26382
+ zodSchema = zodSchema.check(from_json_schema_z.minLength(schema.minItems));
26502
26383
  }
26503
26384
  if (typeof schema.maxItems === "number") {
26504
- zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
26385
+ zodSchema = zodSchema.check(from_json_schema_z.maxLength(schema.maxItems));
26505
26386
  }
26506
26387
  }
26507
26388
  else if (items !== undefined) {
26508
26389
  // Regular array
26509
26390
  const element = convertSchema(items, ctx);
26510
- let arraySchema = z.array(element);
26391
+ let arraySchema = from_json_schema_z.array(element);
26511
26392
  // Apply constraints
26512
26393
  if (typeof schema.minItems === "number") {
26513
26394
  arraySchema = arraySchema.min(schema.minItems);
@@ -26519,7 +26400,7 @@ function convertBaseSchema(schema, ctx) {
26519
26400
  }
26520
26401
  else {
26521
26402
  // No items specified - array of any
26522
- zodSchema = z.array(z.any());
26403
+ zodSchema = from_json_schema_z.array(from_json_schema_z.any());
26523
26404
  }
26524
26405
  break;
26525
26406
  }
@@ -26537,7 +26418,7 @@ function convertBaseSchema(schema, ctx) {
26537
26418
  }
26538
26419
  function convertSchema(schema, ctx) {
26539
26420
  if (typeof schema === "boolean") {
26540
- return schema ? z.any() : z.never();
26421
+ return schema ? from_json_schema_z.any() : from_json_schema_z.never();
26541
26422
  }
26542
26423
  // Convert base schema first (ignoring composition keywords)
26543
26424
  let baseSchema = convertBaseSchema(schema, ctx);
@@ -26546,36 +26427,36 @@ function convertSchema(schema, ctx) {
26546
26427
  // Handle anyOf - wrap base schema with union
26547
26428
  if (schema.anyOf && Array.isArray(schema.anyOf)) {
26548
26429
  const options = schema.anyOf.map((s) => convertSchema(s, ctx));
26549
- const anyOfUnion = z.union(options);
26550
- baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
26430
+ const anyOfUnion = from_json_schema_z.union(options);
26431
+ baseSchema = hasExplicitType ? from_json_schema_z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
26551
26432
  }
26552
26433
  // Handle oneOf - exclusive union (exactly one must match)
26553
26434
  if (schema.oneOf && Array.isArray(schema.oneOf)) {
26554
26435
  const options = schema.oneOf.map((s) => convertSchema(s, ctx));
26555
- const oneOfUnion = z.xor(options);
26556
- baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
26436
+ const oneOfUnion = from_json_schema_z.xor(options);
26437
+ baseSchema = hasExplicitType ? from_json_schema_z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
26557
26438
  }
26558
26439
  // Handle allOf - wrap base schema with intersection
26559
26440
  if (schema.allOf && Array.isArray(schema.allOf)) {
26560
26441
  if (schema.allOf.length === 0) {
26561
- baseSchema = hasExplicitType ? baseSchema : z.any();
26442
+ baseSchema = hasExplicitType ? baseSchema : from_json_schema_z.any();
26562
26443
  }
26563
26444
  else {
26564
26445
  let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
26565
26446
  const startIdx = hasExplicitType ? 0 : 1;
26566
26447
  for (let i = startIdx; i < schema.allOf.length; i++) {
26567
- result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
26448
+ result = from_json_schema_z.intersection(result, convertSchema(schema.allOf[i], ctx));
26568
26449
  }
26569
26450
  baseSchema = result;
26570
26451
  }
26571
26452
  }
26572
26453
  // Handle nullable (OpenAPI 3.0)
26573
26454
  if (schema.nullable === true && ctx.version === "openapi-3.0") {
26574
- baseSchema = z.nullable(baseSchema);
26455
+ baseSchema = from_json_schema_z.nullable(baseSchema);
26575
26456
  }
26576
26457
  // Handle readOnly
26577
26458
  if (schema.readOnly === true) {
26578
- baseSchema = z.readonly(baseSchema);
26459
+ baseSchema = from_json_schema_z.readonly(baseSchema);
26579
26460
  }
26580
26461
  // Collect metadata: core schema keywords and unrecognized keys
26581
26462
  const extraMeta = {};
@@ -26609,7 +26490,7 @@ function convertSchema(schema, ctx) {
26609
26490
  function fromJSONSchema(schema, params) {
26610
26491
  // Handle boolean schemas
26611
26492
  if (typeof schema === "boolean") {
26612
- return schema ? z.any() : z.never();
26493
+ return schema ? from_json_schema_z.any() : from_json_schema_z.never();
26613
26494
  }
26614
26495
  const version = detectVersion(schema, params?.defaultTarget);
26615
26496
  const defs = (schema.$defs || schema.definitions || {});
@@ -28261,8 +28142,8 @@ function withCustomRequest(customRequest) {
28261
28142
  ;// CONCATENATED MODULE: ../../node_modules/@octokit/auth-token/dist-bundle/index.js
28262
28143
  // pkg/dist-src/is-jwt.js
28263
28144
  var b64url = "(?:[a-zA-Z0-9_-]+)";
28264
- var sep = "\\.";
28265
- var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
28145
+ var dist_bundle_sep = "\\.";
28146
+ var jwtRE = new RegExp(`^${b64url}${dist_bundle_sep}${b64url}${dist_bundle_sep}${b64url}$`);
28266
28147
  var isJWT = jwtRE.test.bind(jwtRE);
28267
28148
 
28268
28149
  // pkg/dist-src/auth.js
@@ -31734,9 +31615,9 @@ function isPlainObject$1(value) {
31734
31615
  return true;
31735
31616
  }
31736
31617
 
31737
- function _defu(baseObject, defaults, namespace = ".", merger) {
31618
+ function core_defu(baseObject, defaults, namespace = ".", merger) {
31738
31619
  if (!isPlainObject$1(defaults)) {
31739
- return _defu(baseObject, {}, namespace, merger);
31620
+ return core_defu(baseObject, {}, namespace, merger);
31740
31621
  }
31741
31622
  const object = Object.assign({}, defaults);
31742
31623
  for (const key in baseObject) {
@@ -31753,7 +31634,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
31753
31634
  if (Array.isArray(value) && Array.isArray(object[key])) {
31754
31635
  object[key] = [...value, ...object[key]];
31755
31636
  } else if (isPlainObject$1(value) && isPlainObject$1(object[key])) {
31756
- object[key] = _defu(
31637
+ object[key] = core_defu(
31757
31638
  value,
31758
31639
  object[key],
31759
31640
  (namespace ? `${namespace}.` : "") + key.toString(),
@@ -31765,13 +31646,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
31765
31646
  }
31766
31647
  return object;
31767
31648
  }
31768
- function createDefu(merger) {
31649
+ function core_createDefu(merger) {
31769
31650
  return (...arguments_) => (
31770
31651
  // eslint-disable-next-line unicorn/no-array-reduce
31771
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
31652
+ arguments_.reduce((p, c) => core_defu(p, c, "", merger), {})
31772
31653
  );
31773
31654
  }
31774
- const core_defu = createDefu();
31655
+ const dist_core_defu = core_createDefu();
31775
31656
 
31776
31657
  function core_isPlainObject(obj) {
31777
31658
  return Object.prototype.toString.call(obj) === "[object Object]";
@@ -31802,7 +31683,7 @@ class Consola {
31802
31683
  */
31803
31684
  constructor(options = {}) {
31804
31685
  const types = options.types || LogTypes;
31805
- this.options = core_defu(
31686
+ this.options = dist_core_defu(
31806
31687
  {
31807
31688
  ...options,
31808
31689
  defaults: { ...options.defaults },
@@ -32538,7 +32419,7 @@ function box(text, _opts = {}) {
32538
32419
 
32539
32420
 
32540
32421
 
32541
- const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dist_r:globalThis),dist_o=new Proxy(dist_r,{get(e,s){return dist_i()[s]??dist_r[s]},has(e,s){const E=dist_i();return s in E||s in dist_r},set(e,s,E){const B=dist_i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=dist_i(true);return delete E[s],true},ownKeys(){const e=dist_i(true);return Object.keys(e)}}),dist_t=typeof process<"u"&&process.env&&"production"||"",dist_f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function dist_b(){if(globalThis.process?.env)for(const e of dist_f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const dist_l=dist_b();dist_l.name;function dist_n(e){return e?e!=="false":false}const I=globalThis.process?.platform||"",T=dist_n(dist_o.CI)||dist_l.ci!==false,dist_a=dist_n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),g=dist_n(dist_o.DEBUG),R=dist_t==="test"||dist_n(dist_o.TEST);dist_n(dist_o.MINIMAL)||T||R||!dist_a;const A=/^win/i.test(I);!dist_n(dist_o.NO_COLOR)&&(dist_n(dist_o.FORCE_COLOR)||(dist_a||A)&&dist_o.TERM!=="dumb"||T);const C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(C?.split(".")[0])||null;const y=globalThis.process||Object.create(null),dist_={versions:{}};new Proxy(y,{get(e,s){if(s==="env")return dist_o;if(s in e)return e[s];if(s in dist_)return dist_[s]}});const dist_c=globalThis.process?.release?.name==="node",O=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,L=!!globalThis.fastly,S=!!globalThis.Netlify,dist_u=!!globalThis.EdgeRuntime,N=globalThis.navigator?.userAgent==="Cloudflare-Workers",dist_F=[[S,"netlify"],[dist_u,"edge-light"],[N,"workerd"],[L,"fastly"],[D,"deno"],[O,"bun"],[dist_c,"node"]];function G(){const e=dist_F.find(s=>s[0]);if(e)return {name:e[1]}}const P=G();P?.name||"";
32422
+ const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dist_r:globalThis),dist_o=new Proxy(dist_r,{get(e,s){return dist_i()[s]??dist_r[s]},has(e,s){const E=dist_i();return s in E||s in dist_r},set(e,s,E){const B=dist_i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=dist_i(true);return delete E[s],true},ownKeys(){const e=dist_i(true);return Object.keys(e)}}),dist_t=typeof process<"u"&&process.env&&"production"||"",dist_f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function dist_b(){if(globalThis.process?.env)for(const e of dist_f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const dist_l=dist_b();dist_l.name;function dist_n(e){return e?e!=="false":false}const dist_I=globalThis.process?.platform||"",dist_T=dist_n(dist_o.CI)||dist_l.ci!==false,dist_a=dist_n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),dist_g=dist_n(dist_o.DEBUG),dist_R=dist_t==="test"||dist_n(dist_o.TEST);dist_n(dist_o.MINIMAL)||dist_T||dist_R||!dist_a;const dist_A=/^win/i.test(dist_I);!dist_n(dist_o.NO_COLOR)&&(dist_n(dist_o.FORCE_COLOR)||(dist_a||dist_A)&&dist_o.TERM!=="dumb"||dist_T);const dist_C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(dist_C?.split(".")[0])||null;const dist_y=globalThis.process||Object.create(null),dist_={versions:{}};new Proxy(dist_y,{get(e,s){if(s==="env")return dist_o;if(s in e)return e[s];if(s in dist_)return dist_[s]}});const dist_c=globalThis.process?.release?.name==="node",dist_O=!!globalThis.Bun||!!globalThis.process?.versions?.bun,dist_D=!!globalThis.Deno,dist_L=!!globalThis.fastly,dist_S=!!globalThis.Netlify,dist_u=!!globalThis.EdgeRuntime,dist_N=globalThis.navigator?.userAgent==="Cloudflare-Workers",dist_F=[[dist_S,"netlify"],[dist_u,"edge-light"],[dist_N,"workerd"],[dist_L,"fastly"],[dist_D,"deno"],[dist_O,"bun"],[dist_c,"node"]];function dist_G(){const e=dist_F.find(s=>s[0]);if(e)return {name:e[1]}}const dist_P=dist_G();dist_P?.name||"";
32542
32423
 
32543
32424
  function dist_ansiRegex({onlyFirst = false} = {}) {
32544
32425
  // Valid string terminator sequences are BEL, ESC\, and 0x9c
@@ -33162,17 +33043,17 @@ function dist_createConsola(options = {}) {
33162
33043
  stderr: process.stderr,
33163
33044
  prompt: (...args) => __webpack_require__.e(/* import() */ "116").then(__webpack_require__.bind(__webpack_require__, 8711)).then((m) => m.prompt(...args)),
33164
33045
  reporters: options.reporters || [
33165
- options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
33046
+ options.fancy ?? !(dist_T || dist_R) ? new FancyReporter() : new BasicReporter()
33166
33047
  ],
33167
33048
  ...options
33168
33049
  });
33169
33050
  return consola2;
33170
33051
  }
33171
33052
  function _getDefaultLogLevel() {
33172
- if (g) {
33053
+ if (dist_g) {
33173
33054
  return LogLevels.debug;
33174
33055
  }
33175
- if (R) {
33056
+ if (dist_R) {
33176
33057
  return LogLevels.warn;
33177
33058
  }
33178
33059
  return LogLevels.info;