@longzai-intelligence-bun/cli 0.1.8 → 0.1.10
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 +63 -54
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=tl();t.reg
|
|
|
125
125
|
/* istanbul ignore next */
|
|
126
126
|
function s(e,t){e.destroyed||(t===`beforeExit`?(e.flush(),e.on(`drain`,function(){e.end()})):e.flushSync())}})),Jl=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return e instanceof Date&&!Number.isNaN(e.getTime())}})),Yl=/* @__PURE__ */ N(((e,t)=>{t.exports=r;let n=Jl();function r(e){let t=new Date(e);return n(t)||(t=/* @__PURE__ */ new Date(+e)),t}})),Xl=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){let t=[],n=!1,r=``;for(let i=0;i<e.length;i++){let a=e.charAt(i);a===`\\`?n=!0:n?(n=!1,r+=a):a===`.`?(t.push(r),r=``):r+=a}return r.length&&t.push(r),t}})),Zl=/* @__PURE__ */ N(((e,t)=>{t.exports=r;let n=Xl();function r(e,t){let r=Array.isArray(t)?t:n(t);for(let t of r){if(!Object.prototype.hasOwnProperty.call(e,t))return;e=e[t]}return e}})),Ql=/* @__PURE__ */ N(((e,t)=>{t.exports=i;let n=Zl(),r=Xl();function i(e,t){let i=r(t),a=i.pop();
|
|
127
127
|
/* istanbul ignore else */
|
|
128
|
-
e=n(e,i),typeof e==`object`&&e&&Object.prototype.hasOwnProperty.call(e,a)&&delete e[a]}})),$l=/* @__PURE__ */ N((e=>{var t=class extends RangeError{constructor(e){super(`Maximum copy depth of ${String(e)} exceeded; the value copied is nested too deeply.`),this.maxDepth=e,this.name=`MaxDepthExceededError`}};let n=Function.prototype.toString,r=Object.prototype.toString;function i(e){if(!e)return Object.create(null);let t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(typeof t==`function`&&~n.call(t).indexOf(`[native code]`))try{return new t}catch{}return Object.create(e)}function a(e){let t=e[Symbol.toStringTag];if(t)return t;let n=r.call(e);return n.substring(8,n.length-1)}let o=Object.getPrototypeOf(Int8Array.prototype).slice;function s(e,t,n,r){let i=Object.getOwnPropertyDescriptor(e,n)||{configurable:!0,enumerable:!0,value:e[n],writable:!0},a=i.get||i.set?i:{configurable:i.configurable,enumerable:i.enumerable,value:r.copier(i.value,r),writable:i.writable};try{Object.defineProperty(t,n,a)}catch{t[n]=a.get?a.get():a.value}}function c(e,t,n,r,i){for(let a=i;a<r.length;++a)s(e,t,r[a],n);for(let r of Object.getOwnPropertySymbols(e))s(e,t,r,n);return t}function l(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let r=0;r<e.length;++r)n[r]=t.copier(e[r],t);return n}function u(e,t){let n=new t.Constructor;return t.cache.set(e,n),c(e,n,t,Object.getOwnPropertyNames(e),0)}function d(e,t){if(ArrayBuffer.isView(e))return o.call(e,0);if(e.resizable||e.growable){let t=e.maxByteLength,n=e.resizable?new ArrayBuffer(e.byteLength,{maxByteLength:t}):new SharedArrayBuffer(e.byteLength,{maxByteLength:t});return new Uint8Array(n).set(new Uint8Array(e)),n}return e.slice(0)}function f(e,t){let n=d(e);t.cache.set(e,n);let r=ArrayBuffer.isView(n)&&n.length||0;return c(e,n,t,Object.getOwnPropertyNames(e),r)}function p(e,t){return e.slice(0,e.size,e.type)}let m=A(p);function h(e,t){return new t.Constructor(d(e.buffer),e.byteOffset,e.byteLength)}function g(e,t){let{buffer:n}=e,r=t.cache.has(n),i=r?t.cache.get(n):d(n),a=new t.Constructor(i,e.byteOffset,e.byteLength);return t.cache.set(e,a),r||(t.cache.set(n,i),c(n,i,t,Object.getOwnPropertyNames(n),0)),c(e,a,t,Object.getOwnPropertyNames(e),0)}function _(e,t){return new t.Constructor(e.getTime())}let v=A(_);function y(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let[r,i]of e)n.set(r,t.copier(i,t));return n}function b(e,t){return c(e,y(e,t),t,Object.getOwnPropertyNames(e),0)}function x(e,t){let n=i(t.prototype);t.cache.set(e,n);for(let r of Object.keys(e))r===`__proto__`?Object.defineProperty(n,r,{configurable:!0,enumerable:!0,value:t.copier(e[r],t),writable:!0}):n[r]=t.copier(e[r],t);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=t.copier(e[r],t));return n}function S(e,t){let n=i(t.prototype);return t.cache.set(e,n),c(e,n,t,Object.getOwnPropertyNames(e),0)}function C(e,t){return new t.Constructor(e.valueOf())}let w=A(C);function T(e,t){let n=new t.Constructor(e.source,e.flags);return n.lastIndex=e.lastIndex,n}let E=A(T);function D(e,t){return e}function O(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let r of e)n.add(t.copier(r,t));return n}function k(e,t){return c(e,O(e,t),t,Object.getOwnPropertyNames(e),0)}function A(e){return(t,n)=>{let r=e(t,n);return n.cache.set(t,r),c(t,r,n,Object.getOwnPropertyNames(t),0)}}function j(e,t){let n=C(e,t);t.cache.set(e,n);let{length:r}=e,i=Object.getOwnPropertyNames(e);return c(e,n,t,i,i[r]===`length`?r+1:r)}function ee(){return/* @__PURE__ */ new WeakMap}function M({createCache:e,maxDepth:t,methods:n,strict:r}){let i={array:r?u:l,arrayBuffer:r?f:d,asyncGenerator:D,blob:r?m:p,dataView:r?g:h,date:r?v:_,error:D,generator:D,map:r?b:y,object:r?S:x,regExp:r?E:T,set:r?k:O},a=n?Object.assign(i,n):i,o=N(a,r),s=e||ee;if(!o.Object||!o.Array)throw Error(`An object and array copier must be provided.`);return{createCache:s,copiers:o,maxDepth:t??1e3,methods:a,strict:!!r}}function N(e,t){let n=t?w:C;return Object.assign(Object.create(null),{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,AsyncGenerator:e.asyncGenerator,BigInt64Array:e.arrayBuffer,BigUint64Array:e.arrayBuffer,Blob:e.blob,Boolean:n,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Generator:e.generator,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:n,Object:e.object,Promise:D,RegExp:e.regExp,Set:e.set,String:t?j:C,WeakMap:D,WeakSet:D,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer})}function P(e={}){let{createCache:n,copiers:r,maxDepth:i}=M(e),{Array:o,Object:s}=r;function c(e,n){if(n.prototype=n.Constructor=void 0,!e||typeof e!=`object`)return e;if(n.cache.has(e))return n.cache.get(e);if(++n.depth>i)throw new t(i);n.prototype=Object.getPrototypeOf(e),n.Constructor=n.prototype&&n.prototype.constructor;let c;if(!n.Constructor||n.Constructor===Object)c=s(e,n);else if(Array.isArray(e))c=o(e,n);else{let t=r[a(e)];c=t?t(e,n):typeof e.then==`function`?e:s(e,n)}return--n.depth,c}return function(e){return c(e,{Constructor:void 0,cache:n(),copier:c,depth:0,prototype:void 0})}}let F=P({strict:!0}),I=P();e.MaxDepthExceededError=t,e.copy=I,e.copyStrict=F,e.createCopier=P})),eu=/* @__PURE__ */ N(((e,t)=>{t.exports=l;let{createCopier:n}=$l(),r=n({}),i=Ql(),a=Zl(),o=Xl();function s(e,t){let n=o(t);if(n.length===0)return!1;let r=e;for(let e of n){if(typeof r!=`object`||!r||!Object.prototype.hasOwnProperty.call(r,e))return!1;r=r[e]}return!0}function c(e,t,n){let r=o(t),i=r.pop(),a=e;for(let e of r)(a[e]===null||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];a[i]=n}function l({log:e,context:t}){let{ignoreKeys:n,includeKeys:o}=t,l=r(e);if(o){let e={};return o.forEach(t=>{s(l,t)&&c(e,t,a(l,t))}),e}return n.forEach(e=>{i(l,e)}),l}})),tu=/* @__PURE__ */ N(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}(function(r){var i=arguments,a=function(){var e=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(r,d,f,p){if(i.length===1&&u(r)===`string`&&!/\d/.test(r)&&(d=r,r=void 0),r=r||r===0?r:/* @__PURE__ */ new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError(`Invalid date`);d=String(a.masks[d]||d||a.masks.default);var m=d.slice(0,4);(m===`UTC:`||m===`GMT:`)&&(d=d.slice(4),f=!0,m===`GMT:`&&(p=!0));var h=function(){return f?`getUTC`:`get`},g=function(){return r[h()+`Date`]()},_=function(){return r[h()+`Day`]()},v=function(){return r[h()+`Month`]()},y=function(){return r[h()+`FullYear`]()},b=function(){return r[h()+`Hours`]()},x=function(){return r[h()+`Minutes`]()},S=function(){return r[h()+`Seconds`]()},C=function(){return r[h()+`Milliseconds`]()},w=function(){return f?0:r.getTimezoneOffset()},T=function(){return c(r)},E=function(){return l(r)},D={d:function(){return g()},dd:function(){return o(g())},ddd:function(){return a.i18n.dayNames[_()]},DDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()],short:!0})},dddd:function(){return a.i18n.dayNames[_()+7]},DDDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()+7]})},m:function(){return v()+1},mm:function(){return o(v()+1)},mmm:function(){return a.i18n.monthNames[v()]},mmmm:function(){return a.i18n.monthNames[v()+12]},yy:function(){return String(y()).slice(2)},yyyy:function(){return o(y(),4)},h:function(){return b()%12||12},hh:function(){return o(b()%12||12)},H:function(){return b()},HH:function(){return o(b())},M:function(){return x()},MM:function(){return o(x())},s:function(){return S()},ss:function(){return o(S())},l:function(){return o(C(),3)},L:function(){return o(Math.floor(C()/10))},t:function(){return b()<12?a.i18n.timeNames[0]:a.i18n.timeNames[1]},tt:function(){return b()<12?a.i18n.timeNames[2]:a.i18n.timeNames[3]},T:function(){return b()<12?a.i18n.timeNames[4]:a.i18n.timeNames[5]},TT:function(){return b()<12?a.i18n.timeNames[6]:a.i18n.timeNames[7]},Z:function(){return p?`GMT`:f?`UTC`:(String(r).match(t)||[``]).pop().replace(n,``).replace(/GMT\+0000/g,`UTC`)},o:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60)*100+Math.abs(w())%60,4)},p:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60),2)+`:`+o(Math.floor(Math.abs(w())%60),2)},S:function(){return[`th`,`st`,`nd`,`rd`][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]},W:function(){return T()},WW:function(){return o(T())},N:function(){return E()}};return d.replace(e,function(e){return e in D?D[e]():e.slice(1,e.length-1)})}}();a.masks={default:`ddd mmm dd yyyy HH:MM:ss`,shortDate:`m/d/yy`,paddedShortDate:`mm/dd/yyyy`,mediumDate:`mmm d, yyyy`,longDate:`mmmm d, yyyy`,fullDate:`dddd, mmmm d, yyyy`,shortTime:`h:MM TT`,mediumTime:`h:MM:ss TT`,longTime:`h:MM:ss TT Z`,isoDate:`yyyy-mm-dd`,isoTime:`HH:MM:ss`,isoDateTime:`yyyy-mm-dd'T'HH:MM:sso`,isoUtcDateTime:`UTC:yyyy-mm-dd'T'HH:MM:ss'Z'`,expiresHeaderFormat:`ddd, dd mmm yyyy HH:MM:ss Z`},a.i18n={dayNames:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],monthNames:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`,`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],timeNames:[`a`,`p`,`am`,`pm`,`A`,`P`,`AM`,`PM`]};var o=function(e,t){for(e=String(e),t||=2;e.length<t;)e=`0`+e;return e},s=function(e){var t=e.y,n=e.m,r=e.d,i=e._,a=e.dayName,o=e.short,s=o!==void 0&&o,c=/* @__PURE__ */ new Date,l=/* @__PURE__ */ new Date;l.setDate(l[i+`Date`]()-1);var u=/* @__PURE__ */ new Date;return u.setDate(u[i+`Date`]()+1),function(){return c[i+`FullYear`]()}()===t&&function(){return c[i+`Month`]()}()===n&&function(){return c[i+`Date`]()}()===r?s?`Tdy`:`Today`:function(){return l[i+`FullYear`]()}()===t&&function(){return l[i+`Month`]()}()===n&&function(){return l[i+`Date`]()}()===r?s?`Ysd`:`Yesterday`:function(){return u[i+`FullYear`]()}()===t&&function(){return u[i+`Month`]()}()===n&&function(){return u[i+`Date`]()}()===r?s?`Tmw`:`Tomorrow`:a},c=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var i=(t-n)/6048e5;return 1+Math.floor(i)},l=function(e){var t=e.getDay();return t===0&&(t=7),t},u=function(e){return e===null?`null`:e===void 0?`undefined`:n(e)===`object`?Array.isArray(e)?`array`:{}.toString.call(e).slice(8,-1).toLowerCase():n(e)};typeof define==`function`&&define.amd?define(function(){return a}):(e===void 0?`undefined`:n(e))===`object`?t.exports=a:r.dateFormat=a})(void 0)})),nu=/* @__PURE__ */ N(((e,t)=>{t.exports=s;let{DATE_FORMAT:n,DATE_FORMAT_SIMPLE:r}=Hl(),i=tu(),a=Yl(),o=Jl();function s(e,t=!1){if(t===!1)return e;let s=a(e);if(!o(s))return e;if(t===!0)return i(s,r);let c=t.toUpperCase();if(c===`SYS:STANDARD`)return i(s,n);let l=c.substr(0,4);return l===`SYS:`||l===`UTC:`?l===`UTC:`?i(s,t):i(s,t.slice(4)):i(s,`UTC:${t}`)}})),ru=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[r.toLowerCase()]=i,e},{}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}:{}}})),iu=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[i]=r.toUpperCase(),e},{default:`USERLVL`}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[e[n]]=n.toUpperCase(),t),{default:`USERLVL`}):{}:{}}})),au=/* @__PURE__ */ N(((e,t)=>{t.exports=r;let n=Zl();function r(e,t){return e=e.replace(/{if (.*?)}([\s\S]*?){end}/g,r),e=e.replace(/{if (.*?)}/g,``),e=e.replace(/{end}/g,``),e=e.replace(/[^\S\r\n]+/g,` `),e=e.replace(/\n[^\S\r\n]*\n/g,`
|
|
128
|
+
e=n(e,i),typeof e==`object`&&e&&Object.prototype.hasOwnProperty.call(e,a)&&delete e[a]}})),$l=/* @__PURE__ */ N((e=>{var t=class extends RangeError{constructor(e){super(`Maximum copy depth of ${String(e)} exceeded; the value copied is nested too deeply.`),this.maxDepth=e,this.name=`MaxDepthExceededError`}};let n=Function.prototype.toString,r=Object.prototype.toString;function i(e){if(!e)return Object.create(null);let t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(typeof t==`function`&&~n.call(t).indexOf(`[native code]`))try{return new t}catch{}return Object.create(e)}function a(e){let t=e[Symbol.toStringTag];if(t)return t;let n=r.call(e);return n.substring(8,n.length-1)}let o=Object.getPrototypeOf(Int8Array.prototype).slice;function s(e,t,n,r){let i=Object.getOwnPropertyDescriptor(e,n)||{configurable:!0,enumerable:!0,value:e[n],writable:!0},a=i.get||i.set?i:{configurable:i.configurable,enumerable:i.enumerable,value:r.copier(i.value,r),writable:i.writable};try{Object.defineProperty(t,n,a)}catch{t[n]=a.get?a.get():a.value}}function c(e,t,n,r,i){for(let a=i;a<r.length;++a)s(e,t,r[a],n);for(let r of Object.getOwnPropertySymbols(e))s(e,t,r,n);return t}function l(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let r=0;r<e.length;++r)n[r]=t.copier(e[r],t);return n}function u(e,t){let n=new t.Constructor;return t.cache.set(e,n),c(e,n,t,Object.getOwnPropertyNames(e),0)}function d(e,t){if(ArrayBuffer.isView(e))return o.call(e,0);if(e.resizable||e.growable){let n=e.maxByteLength,r=new t.Constructor(e.byteLength,{maxByteLength:n});return new Uint8Array(r).set(new Uint8Array(e)),r}return!e.byteLength&&a(e)===`SharedArrayBuffer`?new t.Constructor(0):e.slice(0)}function f(e,t){let n=d(e,t);t.cache.set(e,n);let r=ArrayBuffer.isView(n)&&n.length||0;return c(e,n,t,Object.getOwnPropertyNames(e),r)}function p(e,t){return e.slice(0,e.size,e.type)}let m=A(p);function h(e,t){return new t.Constructor(t.copier(e.buffer,t),e.byteOffset,e.byteLength)}function g(e,t){let{buffer:n}=e,{cache:r,Constructor:i}=t,a=r.has(n),o=a?r.get(n):t.copier(n,t);if(!a&&r.has(e))return r.get(e);let s=new i(o,e.byteOffset,e.byteLength);return t.cache.set(e,s),c(e,s,t,Object.getOwnPropertyNames(e),0)}function _(e,t){return new t.Constructor(e.getTime())}let v=A(_);function y(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let[r,i]of e)n.set(r,t.copier(i,t));return n}function b(e,t){return c(e,y(e,t),t,Object.getOwnPropertyNames(e),0)}function x(e,t){let n=i(t.prototype);t.cache.set(e,n);for(let r of Object.keys(e))r===`__proto__`?Object.defineProperty(n,r,{configurable:!0,enumerable:!0,value:t.copier(e[r],t),writable:!0}):n[r]=t.copier(e[r],t);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=t.copier(e[r],t));return n}function S(e,t){let n=i(t.prototype);return t.cache.set(e,n),c(e,n,t,Object.getOwnPropertyNames(e),0)}function C(e,t){return new t.Constructor(e.valueOf())}let w=A(C);function T(e,t){let n=new t.Constructor(e.source,e.flags);return n.lastIndex=e.lastIndex,n}let E=A(T);function D(e,t){return e}function O(e,t){let n=new t.Constructor;t.cache.set(e,n);for(let r of e)n.add(t.copier(r,t));return n}function k(e,t){return c(e,O(e,t),t,Object.getOwnPropertyNames(e),0)}function A(e){return(t,n)=>{let r=e(t,n);return n.cache.set(t,r),c(t,r,n,Object.getOwnPropertyNames(t),0)}}function j(e,t){let n=C(e,t);t.cache.set(e,n);let{length:r}=e,i=Object.getOwnPropertyNames(e);return c(e,n,t,i,i[r]===`length`?r+1:r)}function ee(){return/* @__PURE__ */ new WeakMap}function M({createCache:e,maxDepth:t,methods:n,strict:r}){let i={array:r?u:l,arrayBuffer:r?f:d,asyncGenerator:D,blob:r?m:p,dataView:r?g:h,date:r?v:_,error:D,generator:D,map:r?b:y,object:r?S:x,regExp:r?E:T,set:r?k:O},a=n?Object.assign(i,n):i,o=N(a,r),s=e||ee;if(!o.Object||!o.Array)throw Error(`An object and array copier must be provided.`);return{createCache:s,copiers:o,maxDepth:t??1e3,methods:a,strict:!!r}}function N(e,t){let n=t?w:C;return Object.assign(Object.create(null),{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,AsyncGenerator:e.asyncGenerator,BigInt64Array:e.arrayBuffer,BigUint64Array:e.arrayBuffer,Blob:e.blob,Boolean:n,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Generator:e.generator,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:n,Object:e.object,Promise:D,RegExp:e.regExp,Set:e.set,SharedArrayBuffer:e.arrayBuffer,String:t?j:C,WeakMap:D,WeakSet:D,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer})}function P(e={}){let{createCache:n,copiers:r,maxDepth:i}=M(e),{Array:o,Object:s}=r;function c(e,n){if(n.prototype=n.Constructor=void 0,!e||typeof e!=`object`)return e;if(n.cache.has(e))return n.cache.get(e);if(++n.depth>i)throw new t(i);n.prototype=Object.getPrototypeOf(e),n.Constructor=n.prototype&&n.prototype.constructor;let c;if(!n.Constructor||n.Constructor===Object)c=s(e,n);else if(Array.isArray(e))c=o(e,n);else{let t=r[a(e)];c=t?t(e,n):typeof e.then==`function`?e:s(e,n)}return--n.depth,c}return function(e){return c(e,{Constructor:void 0,cache:n(),copier:c,depth:0,prototype:void 0})}}let F=P({strict:!0}),I=P();e.MaxDepthExceededError=t,e.copy=I,e.copyStrict=F,e.createCopier=P})),eu=/* @__PURE__ */ N(((e,t)=>{t.exports=l;let{createCopier:n}=$l(),r=n({}),i=Ql(),a=Zl(),o=Xl();function s(e,t){let n=o(t);if(n.length===0)return!1;let r=e;for(let e of n){if(typeof r!=`object`||!r||!Object.prototype.hasOwnProperty.call(r,e))return!1;r=r[e]}return!0}function c(e,t,n){let r=o(t),i=r.pop(),a=e;for(let e of r)(a[e]===null||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];a[i]=n}function l({log:e,context:t}){let{ignoreKeys:n,includeKeys:o}=t,l=r(e);if(o){let e={};return o.forEach(t=>{s(l,t)&&c(e,t,a(l,t))}),e}return n.forEach(e=>{i(l,e)}),l}})),tu=/* @__PURE__ */ N(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}(function(r){var i=arguments,a=function(){var e=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(r,d,f,p){if(i.length===1&&u(r)===`string`&&!/\d/.test(r)&&(d=r,r=void 0),r=r||r===0?r:/* @__PURE__ */ new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError(`Invalid date`);d=String(a.masks[d]||d||a.masks.default);var m=d.slice(0,4);(m===`UTC:`||m===`GMT:`)&&(d=d.slice(4),f=!0,m===`GMT:`&&(p=!0));var h=function(){return f?`getUTC`:`get`},g=function(){return r[h()+`Date`]()},_=function(){return r[h()+`Day`]()},v=function(){return r[h()+`Month`]()},y=function(){return r[h()+`FullYear`]()},b=function(){return r[h()+`Hours`]()},x=function(){return r[h()+`Minutes`]()},S=function(){return r[h()+`Seconds`]()},C=function(){return r[h()+`Milliseconds`]()},w=function(){return f?0:r.getTimezoneOffset()},T=function(){return c(r)},E=function(){return l(r)},D={d:function(){return g()},dd:function(){return o(g())},ddd:function(){return a.i18n.dayNames[_()]},DDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()],short:!0})},dddd:function(){return a.i18n.dayNames[_()+7]},DDDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()+7]})},m:function(){return v()+1},mm:function(){return o(v()+1)},mmm:function(){return a.i18n.monthNames[v()]},mmmm:function(){return a.i18n.monthNames[v()+12]},yy:function(){return String(y()).slice(2)},yyyy:function(){return o(y(),4)},h:function(){return b()%12||12},hh:function(){return o(b()%12||12)},H:function(){return b()},HH:function(){return o(b())},M:function(){return x()},MM:function(){return o(x())},s:function(){return S()},ss:function(){return o(S())},l:function(){return o(C(),3)},L:function(){return o(Math.floor(C()/10))},t:function(){return b()<12?a.i18n.timeNames[0]:a.i18n.timeNames[1]},tt:function(){return b()<12?a.i18n.timeNames[2]:a.i18n.timeNames[3]},T:function(){return b()<12?a.i18n.timeNames[4]:a.i18n.timeNames[5]},TT:function(){return b()<12?a.i18n.timeNames[6]:a.i18n.timeNames[7]},Z:function(){return p?`GMT`:f?`UTC`:(String(r).match(t)||[``]).pop().replace(n,``).replace(/GMT\+0000/g,`UTC`)},o:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60)*100+Math.abs(w())%60,4)},p:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60),2)+`:`+o(Math.floor(Math.abs(w())%60),2)},S:function(){return[`th`,`st`,`nd`,`rd`][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]},W:function(){return T()},WW:function(){return o(T())},N:function(){return E()}};return d.replace(e,function(e){return e in D?D[e]():e.slice(1,e.length-1)})}}();a.masks={default:`ddd mmm dd yyyy HH:MM:ss`,shortDate:`m/d/yy`,paddedShortDate:`mm/dd/yyyy`,mediumDate:`mmm d, yyyy`,longDate:`mmmm d, yyyy`,fullDate:`dddd, mmmm d, yyyy`,shortTime:`h:MM TT`,mediumTime:`h:MM:ss TT`,longTime:`h:MM:ss TT Z`,isoDate:`yyyy-mm-dd`,isoTime:`HH:MM:ss`,isoDateTime:`yyyy-mm-dd'T'HH:MM:sso`,isoUtcDateTime:`UTC:yyyy-mm-dd'T'HH:MM:ss'Z'`,expiresHeaderFormat:`ddd, dd mmm yyyy HH:MM:ss Z`},a.i18n={dayNames:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],monthNames:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`,`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],timeNames:[`a`,`p`,`am`,`pm`,`A`,`P`,`AM`,`PM`]};var o=function(e,t){for(e=String(e),t||=2;e.length<t;)e=`0`+e;return e},s=function(e){var t=e.y,n=e.m,r=e.d,i=e._,a=e.dayName,o=e.short,s=o!==void 0&&o,c=/* @__PURE__ */ new Date,l=/* @__PURE__ */ new Date;l.setDate(l[i+`Date`]()-1);var u=/* @__PURE__ */ new Date;return u.setDate(u[i+`Date`]()+1),function(){return c[i+`FullYear`]()}()===t&&function(){return c[i+`Month`]()}()===n&&function(){return c[i+`Date`]()}()===r?s?`Tdy`:`Today`:function(){return l[i+`FullYear`]()}()===t&&function(){return l[i+`Month`]()}()===n&&function(){return l[i+`Date`]()}()===r?s?`Ysd`:`Yesterday`:function(){return u[i+`FullYear`]()}()===t&&function(){return u[i+`Month`]()}()===n&&function(){return u[i+`Date`]()}()===r?s?`Tmw`:`Tomorrow`:a},c=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var i=(t-n)/6048e5;return 1+Math.floor(i)},l=function(e){var t=e.getDay();return t===0&&(t=7),t},u=function(e){return e===null?`null`:e===void 0?`undefined`:n(e)===`object`?Array.isArray(e)?`array`:{}.toString.call(e).slice(8,-1).toLowerCase():n(e)};typeof define==`function`&&define.amd?define(function(){return a}):(e===void 0?`undefined`:n(e))===`object`?t.exports=a:r.dateFormat=a})(void 0)})),nu=/* @__PURE__ */ N(((e,t)=>{t.exports=s;let{DATE_FORMAT:n,DATE_FORMAT_SIMPLE:r}=Hl(),i=tu(),a=Yl(),o=Jl();function s(e,t=!1){if(t===!1)return e;let s=a(e);if(!o(s))return e;if(t===!0)return i(s,r);let c=t.toUpperCase();if(c===`SYS:STANDARD`)return i(s,n);let l=c.substr(0,4);return l===`SYS:`||l===`UTC:`?l===`UTC:`?i(s,t):i(s,t.slice(4)):i(s,`UTC:${t}`)}})),ru=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[r.toLowerCase()]=i,e},{}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}:{}}})),iu=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[i]=r.toUpperCase(),e},{default:`USERLVL`}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[e[n]]=n.toUpperCase(),t),{default:`USERLVL`}):{}:{}}})),au=/* @__PURE__ */ N(((e,t)=>{t.exports=r;let n=Zl();function r(e,t){return e=e.replace(/{if (.*?)}([\s\S]*?){end}/g,r),e=e.replace(/{if (.*?)}/g,``),e=e.replace(/{end}/g,``),e=e.replace(/[^\S\r\n]+/g,` `),e=e.replace(/\n[^\S\r\n]*\n/g,`
|
|
129
129
|
`),e.trim();function r(e,r,i){let a=n(t,r);return a&&i.includes(r)?i.replace(RegExp(`{`+r+`}`,`g`),a):``}}})),ou=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n(e){return Object.prototype.toString.apply(e)===`[object Object]`}})),su=/* @__PURE__ */ N(((e,t)=>{t.exports=n;function n({input:e,ident:t=` `,eol:n=`
|
|
130
130
|
`}){let r=e.split(/\r?\n/);for(let e=1;e<r.length;e+=1)r[e]=t+r[e];return r.join(n)}})),cu=/* @__PURE__ */ N(((e,t)=>{t.exports=s;let{LEVEL_NAMES:n}=Hl(),r=Wl(),i=iu(),a=ru(),o=Ul();function s(e){let t=e.crlf?`\r
|
|
131
131
|
`:`
|
|
@@ -152,73 +152,82 @@ Expecting one of '${n.join(`', '`)}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
152
152
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
153
153
|
- ${t?`searched for local subcommand relative to directory '${t}'`:`no directory for search for local subcommand, use .executableDir() to supply a custom directory`}`;throw Error(r)}_executeSubCommand(e,t){t=t.slice();let o=!1,s=[`.js`,`.ts`,`.tsx`,`.mjs`,`.cjs`];function l(e,t){let n=r.resolve(e,t);if(i.existsSync(n))return n;if(s.includes(r.extname(t)))return;let a=s.find(e=>i.existsSync(`${n}${e}`));if(a)return`${n}${a}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||``;if(this._scriptPath){let e;try{e=i.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=r.resolve(r.dirname(e),d)}if(d){let t=l(d,u);if(!t&&!e._executableFile&&this._scriptPath){let n=r.basename(this._scriptPath,r.extname(this._scriptPath));n!==this._name&&(t=l(d,`${n}-${e._name}`))}u=t||u}o=s.includes(r.extname(u));let f;a.platform===`win32`?(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=h(a.execArgv).concat(t),f=n.spawn(a.execPath,t,{stdio:`inherit`})):o?(t.unshift(u),t=h(a.execArgv).concat(t),f=n.spawn(a.argv[0],t,{stdio:`inherit`})):f=n.spawn(u,t,{stdio:`inherit`}),f.killed||[`SIGUSR1`,`SIGUSR2`,`SIGTERM`,`SIGINT`,`SIGHUP`].forEach(e=>{a.on(e,()=>{f.killed===!1&&f.exitCode===null&&f.kill(e)})});let p=this._exitCallback;f.on(`close`,e=>{e??=1,p?p(new c(e,`commander.executeSubCommandAsync`,`(close)`)):a.exit(e)}),f.on(`error`,t=>{if(t.code===`ENOENT`)this._checkForMissingExecutable(u,d,e._name);else if(t.code===`EACCES`)throw Error(`'${u}' not executable`);if(!p)a.exit(1);else{let e=new c(1,`commander.executeSubCommandAsync`,`(error)`);e.nestedError=t,p(e)}}),this.runningCommand=f}_dispatchSubcommand(e,t,n){let r=this._findCommand(e);r||this.help({error:!0}),r._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,r,`preSubcommand`),i=this._chainOrCall(i,()=>{if(r._executableHandler)this._executeSubCommand(r,t.concat(n));else return r._parseCommand(t,n)}),i}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??`--help`])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){let i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((n,r)=>{let i=n.defaultValue;n.variadic?r<this.args.length?(i=this.args.slice(r),n.parseArg&&(i=i.reduce((t,r)=>e(n,r,t),n.defaultValue))):i===void 0&&(i=[]):r<this.args.length&&(i=this.args[r],n.parseArg&&(i=e(n,i,n.defaultValue))),t[r]=i}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&typeof e.then==`function`?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e,r=[];return this._getCommandAndAncestors().reverse().filter(e=>e._lifeCycleHooks[t]!==void 0).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{r.push({hookedCommand:e,callback:t})})}),t===`postAction`&&r.reverse(),r.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let r=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(e=>{r=this._chainOrCall(r,()=>e(this,t))}),r}_parseCommand(e,t){let n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let r=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){r(),this._processArguments();let n;return n=this._chainOrCallHooks(n,`preAction`),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(i,e,t)})),n=this._chainOrCallHooks(n,`postAction`),n}if(this.parent?.listenerCount(i))r(),this._processArguments(),this.parent.emit(i,e,t);else if(e.length){if(this._findCommand(`*`))return this._dispatchSubcommand(`*`,e,t);this.listenerCount(`command:*`)?this.emit(`command:*`,e,t):this.commands.length?this.unknownCommand():(r(),this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(e=>{let t=e.attributeName();return this.getOptionValue(t)!==void 0&&this.getOptionValueSource(t)!=="default"});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{let n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],n=[],r=t;function i(e){return e.length>1&&e[0]===`-`}let a=e=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)?!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e))):!1,o=null,s=null,c=0;for(;c<e.length||s;){let l=s??e[c++];if(s=null,l===`--`){r===n&&r.push(l),r.push(...e.slice(c));break}if(o&&(!i(l)||a(l)))this.emit(`option:${o.name()}`,l);else{if(o=null,i(l)){let t=this._findOption(l);if(t){if(t.required){let n=e[c++];n===void 0&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!i(e[c])||a(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);o=t.variadic?t:null;continue}}if(l.length>2&&l[0]===`-`&&l[1]!==`-`){let e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let e=l.indexOf(`=`),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(r===t&&i(l)&&!(this.commands.length===0&&a(l))&&(r=n),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){r.push(l,...e.slice(c));break}r.push(l)}}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==`string`?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
154
154
|
`),this.outputHelp({error:!0}));let n=t||{},r=n.exitCode||1,i=n.code||`commander.error`;this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in a.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||[`default`,`config`,`env`].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,a.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new f(this.options),t=e=>this.getOptionValue(e)!==void 0&&![`default`,`implied`].includes(this.getOptionValueSource(e));this.options.filter(n=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],`implied`)})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:`commander.missingArgument`})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:`commander.optionMissingArgument`})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:`commander.missingMandatoryOptionValue`})}_conflictingOption(e,t){let n=e=>{let t=e.attributeName(),n=this.getOptionValue(t),r=this.options.find(e=>e.negate&&t===e.attributeName()),i=this.options.find(e=>!e.negate&&t===e.attributeName());return r&&(r.presetArg===void 0&&n===!1||r.presetArg!==void 0&&n===r.presetArg)?r:i||e},r=e=>{let t=n(e),r=t.attributeName();return this.getOptionValueSource(r)===`env`?`environment variable '${t.envVar}'`:`option '${t.flags}'`},i=`error: ${r(e)} cannot be used with ${r(t)}`;this.error(i,{code:`commander.conflictingOption`})}unknownOption(e){if(this._allowUnknownOption)return;let t=``;if(e.startsWith(`--`)&&this._showSuggestionAfterError){let n=[],r=this;do{let e=r.createHelp().visibleOptions(r).filter(e=>e.long).map(e=>e.long);n=n.concat(e),r=r.parent}while(r&&!r._enablePositionalOptions);t=p(e,n)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:`commander.unknownOption`})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?``:`s`,r=`error: too many arguments${this.parent?` for '${this.name()}'`:``}. Expected ${t} argument${n} but got ${e.length}.`;this.error(r,{code:`commander.excessArguments`})}unknownCommand(){let e=this.args[0],t=``;if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=p(e,n)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:`commander.unknownCommand`})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t||=`-V, --version`,n||=`output the version number`;let r=this.createOption(t,n);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on(`option:`+r.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,`commander.version`,e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw Error(`Command alias can't be the same as its name`);let n=this.parent?._findCommand(e);if(n){let t=[n.name()].concat(n.aliases()).join(`|`);throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let e=this.registeredArguments.map(e=>s(e));return[].concat(this.options.length||this._helpOption!==null?`[options]`:[],this.commands.length?`[command]`:[],this.registeredArguments.length?e:[]).join(` `)}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??``:(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??``:(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??``:(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=r.basename(e,r.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let r=t.formatHelp(this,t);return n.hasColors?r:this._outputConfiguration.stripColor(r)}_getOutputContext(e){e||={};let t=!!e.error,n,r,i;return t?(n=e=>this._outputConfiguration.writeErr(e),r=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),r=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(r||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:r,helpWidth:i}}outputHelp(e){let t;typeof e==`function`&&(t=e,e=void 0);let n=this._getOutputContext(e),r={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit(`beforeAllHelp`,r)),this.emit(`beforeHelp`,r);let i=this.helpInformation({error:n.error});if(t&&(i=t(i),typeof i!=`string`&&!Buffer.isBuffer(i)))throw Error(`outputHelp callback must return a string or a Buffer`);n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit(`afterHelp`,r),this._getCommandAndAncestors().forEach(e=>e.emit(`afterAllHelp`,r))}helpOption(e,t){return typeof e==`boolean`?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??`-h, --help`,t??`display help for command`),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(a.exitCode??0);t===0&&e&&typeof e!=`function`&&e.error&&(t=1),this._exit(t,`commander.help`,`(outputHelp)`)}addHelpText(e,t){let n=[`beforeAll`,`before`,`after`,`afterAll`];if(!n.includes(e))throw Error(`Unexpected value for position to addHelpText.
|
|
155
|
-
Expecting one of '${n.join(`', '`)}'`);let r=`${e}Help`;return this.on(r,e=>{let n;n=typeof t==`function`?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,`commander.helpDisplayed`,`(outputHelp)`))}};function h(e){return e.map(e=>{if(!e.startsWith(`--inspect`))return e;let t,n=`127.0.0.1`,r=`9229`,i;return(i=e.match(/^(--inspect(-brk)?)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],r=i[4]):(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):t=i[1],t&&r!==`0`?`${t}=${n}:${parseInt(r)+1}`:e})}function g(){if(a.env.NO_COLOR||a.env.FORCE_COLOR===`0`||a.env.FORCE_COLOR===`false`)return!1;if(a.env.FORCE_COLOR||a.env.CLICOLOR_FORCE!==void 0)return!0}e.Command=m,e.useColor=g}));const{program:Hu,createCommand:Uu,createArgument:Wu,createOption:Gu,CommanderError:Ku,InvalidArgumentError:qu,InvalidOptionArgumentError:Ju,Command:Yu,Argument:Xu,Option:Zu,Help:Qu}=(/* @__PURE__ */ F((/* @__PURE__ */ N((e=>{let{Argument:t}=Lu(),{Command:n}=Vu(),{CommanderError:r,InvalidArgumentError:i}=Iu(),{Help:a}=Ru(),{Option:o}=zu();e.program=new n,e.createCommand=e=>new n(e),e.createOption=(e,t)=>new o(e,t),e.createArgument=(e,n)=>new t(e,n),e.Command=n,e.Option=o,e.Argument=t,e.Help=a,e.CommanderError=r,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i})))(),1)).default,$u=Fu(`@longzai-intelligence-cli/core/provider`),ed={red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,cyan:e=>e,magenta:e=>e,gray:e=>e,bold:e=>e,dim:e=>e};let td={select:async(e,t)=>t[0]?.value??``,textInput:async(e,t)=>t?.defaultValue??``,confirm:async(e,t)=>t?.defaultValue??!1,spinner:()=>({start:e=>$u.info(e),stop:e=>$u.info(e)}),note:(e,t)=>{t?$u.info(`${t}: ${e}`):$u.info(e)},log:{info:e=>$u.info(e),success:e=>$u.info(e),warn:e=>$u.warn(e),error:e=>$u.error(e),step:e=>$u.info(e)}},nd=ed;function rd(e){td=e}function id(e){nd=e}function ad(){return td}function od(){return nd}const sd=()=>`0.0.10`;function cd(e){let t=e.version??sd();e.interaction&&rd(e.interaction),e.color&&id(e.color);let n=new Yu;return n.name(e.name).version(t,`-v, --version`,`输出 ${e.name} 的版本号`),e.description&&n.description(e.description),n}Fu(`@longzai-intelligence-cli/core/output`),Fu(`@longzai-intelligence-cli/core/progress`);const ld=Fu(`@longzai-intelligence-cli/core/define-command`);function ud(e,t){let n=e.commands.find(e=>e.name()===t);return n===void 0?e.command(t):n}function dd(e,t){if(t.length===1){let n=t[0];if(n===void 0)throw Error(`defineCommand: segments 为空,无法解析命令名`);return e.command(n)}let[n,...r]=t;if(n===void 0)throw Error(`defineCommand: segments 首段为空,无法解析父命令名`);let i=r.pop();if(i===void 0)throw Error(`defineCommand: segments 末段为空,无法解析子命令名`);let a=ud(e,n);for(let e of r)a=ud(a,e);return a.command(i)}function fd(e,t){let n=dd(e,t.name.split(` `).filter(e=>e.length>0));t.description&&n.description(t.description);for(let e of t.arguments??[])e.description?n.argument(e.signature,e.description):n.argument(e.signature);for(let e of t.options??[])e.defaultValue===void 0?n.option(e.flags,e.description??``):n.option(e.flags,e.description??``,e.defaultValue);n.action(async(...e)=>{let n=e[e.length-1];if(!(n instanceof Yu))return;let r=n.opts(),i=n.args,a=t.schema.safeParse(r);if(!a.success){let e=a.error.issues.map(e=>e.message).join(`, `);ld.error(od().red(`参数校验失败: ${e}`)),ad().log.error(`参数校验失败: ${e}`),process.exit(1)}await t.action(a.data,i)})}var pd=/* @__PURE__ */ N(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}})),md=/* @__PURE__ */ N(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),K=pd(),q=/* @__PURE__ */ F(md(),1);function hd({onlyFirst:e=!1}={}){return RegExp(`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`,e?void 0:`g`)}const gd=hd();function _d(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(gd,``)}function vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var yd={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r==12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r==8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r==172||r==175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r==161||r==164||167<=r&&r<=168||r==170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r==198||r==208||215<=r&&r<=216||222<=r&&r<=225||r==230||232<=r&&r<=234||236<=r&&r<=237||r==240||242<=r&&r<=243||247<=r&&r<=250||r==252||r==254||r==257||r==273||r==275||r==283||294<=r&&r<=295||r==299||305<=r&&r<=307||r==312||319<=r&&r<=322||r==324||328<=r&&r<=331||r==333||338<=r&&r<=339||358<=r&&r<=359||r==363||r==462||r==464||r==466||r==468||r==470||r==472||r==474||r==476||r==593||r==609||r==708||r==711||713<=r&&r<=715||r==717||r==720||728<=r&&r<=731||r==733||r==735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r==1025||1040<=r&&r<=1103||r==1105||r==8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r==8240||8242<=r&&r<=8243||r==8245||r==8251||r==8254||r==8308||r==8319||8321<=r&&r<=8324||r==8364||r==8451||r==8453||r==8457||r==8467||r==8470||8481<=r&&r<=8482||r==8486||r==8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r==8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r==8658||r==8660||r==8679||r==8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r==8715||r==8719||r==8721||r==8725||r==8730||8733<=r&&r<=8736||r==8739||r==8741||8743<=r&&r<=8748||r==8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r==8776||r==8780||r==8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r==8853||r==8857||r==8869||r==8895||r==8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r==9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r==9711||9733<=r&&r<=9734||r==9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r==9756||r==9758||r==9792||r==9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r==9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r==9955||9960<=r&&r<=9983||r==10045||r==10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r==65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`},t.characterLength=function(e){var t=this.eastAsianWidth(e);return t==`F`||t==`W`||t==`A`?2:1};function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(e){for(var t=n(e),r=0,i=0;i<t.length;i++)r+=this.characterLength(t[i]);return r},t.slice=function(e,r,i){textLen=t.length(e),r||=0,i||=1,r<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var a=``,o=0,s=n(e),c=0;c<s.length;c++){var l=s[c],u=t.length(l);if(o>=r-+(u==2)){if(o+u<=i)a+=l;else break}o+=u}return a}})(yd);var bd=yd.exports;const xd=vd(bd),Sd=vd(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function Cd(e,t={}){if(typeof e!=`string`||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=_d(e),e.length===0))return 0;e=e.replace(Sd(),` `);let n=t.ambiguousIsNarrow?1:2,r=0;for(let t of e){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159||e>=768&&e<=879))switch(xd.eastAsianWidth(t)){case`F`:case`W`:r+=2;break;case`A`:r+=n;break;default:r+=1}}return r}const wd=(e=0)=>t=>`\x1B[${t+e}m`,Td=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ed=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(J.modifier);const Dd=Object.keys(J.color),Od=Object.keys(J.bgColor);[...Dd,...Od];function kd(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(J)){for(let[t,r]of Object.entries(n))J[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=J[t],e.set(r[0],r[1]);Object.defineProperty(J,t,{value:n,enumerable:!1})}return Object.defineProperty(J,"codes",{value:e,enumerable:!1}),J.color.close=`\x1B[39m`,J.bgColor.close=`\x1B[49m`,J.color.ansi=wd(),J.color.ansi256=Td(),J.color.ansi16m=Ed(),J.bgColor.ansi=wd(10),J.bgColor.ansi256=Td(10),J.bgColor.ansi16m=Ed(10),Object.defineProperties(J,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>J.rgbToAnsi256(...J.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>J.ansi256ToAnsi(J.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>J.ansi256ToAnsi(J.hexToAnsi256(e)),enumerable:!1}}),J}const Ad=kd(),jd=/* @__PURE__ */ new Set([`\x1B`,``]),Md=`]8;;`,Nd=e=>`${jd.values().next().value}[${e}m`,Pd=e=>`${jd.values().next().value}${Md}${e}`,Fd=e=>e.split(` `).map(e=>Cd(e)),Id=(e,t,n)=>{let r=[...t],i=!1,a=!1,o=Cd(_d(e[e.length-1]));for(let[t,s]of r.entries()){let c=Cd(s);o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),jd.has(s)&&(i=!0,a=r.slice(t+1).join(``).startsWith(Md)),i?a?s===`\x07`&&(i=!1,a=!1):s===`m`&&(i=!1):(o+=c,o===n&&t<r.length-1&&(e.push(``),o=0))}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Ld=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(Cd(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Rd=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=Fd(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let e=Cd(s[s.length-1]);if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),Id(s,i,t)}else{if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){Id(s,i,t);continue}s.push(``)}e+o[r]>t&&n.wordWrap===!1?Id(s,i,t):s[s.length-1]+=i}}n.trim!==!1&&(s=s.map(e=>Ld(e)));let c=[...s.join(`
|
|
156
|
-
`)];for(let[e,t]of c.entries()){if(r+=t,
|
|
157
|
-
`?(a&&(r+=
|
|
158
|
-
`&&(i&&n&&(r+=
|
|
155
|
+
Expecting one of '${n.join(`', '`)}'`);let r=`${e}Help`;return this.on(r,e=>{let n;n=typeof t==`function`?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,`commander.helpDisplayed`,`(outputHelp)`))}};function h(e){return e.map(e=>{if(!e.startsWith(`--inspect`))return e;let t,n=`127.0.0.1`,r=`9229`,i;return(i=e.match(/^(--inspect(-brk)?)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],r=i[4]):(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):t=i[1],t&&r!==`0`?`${t}=${n}:${parseInt(r)+1}`:e})}function g(){if(a.env.NO_COLOR||a.env.FORCE_COLOR===`0`||a.env.FORCE_COLOR===`false`)return!1;if(a.env.FORCE_COLOR||a.env.CLICOLOR_FORCE!==void 0)return!0}e.Command=m,e.useColor=g}));const{program:Hu,createCommand:Uu,createArgument:Wu,createOption:Gu,CommanderError:Ku,InvalidArgumentError:qu,InvalidOptionArgumentError:Ju,Command:Yu,Argument:Xu,Option:Zu,Help:Qu}=(/* @__PURE__ */ F((/* @__PURE__ */ N((e=>{let{Argument:t}=Lu(),{Command:n}=Vu(),{CommanderError:r,InvalidArgumentError:i}=Iu(),{Help:a}=Ru(),{Option:o}=zu();e.program=new n,e.createCommand=e=>new n(e),e.createOption=(e,t)=>new o(e,t),e.createArgument=(e,n)=>new t(e,n),e.Command=n,e.Option=o,e.Argument=t,e.Help=a,e.CommanderError=r,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i})))(),1)).default,$u=Fu(`@longzai-intelligence-cli/core/provider`),ed={red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,cyan:e=>e,magenta:e=>e,gray:e=>e,bold:e=>e,dim:e=>e};let td={select:async(e,t)=>t[0]?.value??``,textInput:async(e,t)=>t?.defaultValue??``,confirm:async(e,t)=>t?.defaultValue??!1,spinner:()=>({start:e=>$u.info(e),stop:e=>$u.info(e)}),note:(e,t)=>{t?$u.info(`${t}: ${e}`):$u.info(e)},log:{info:e=>$u.info(e),success:e=>$u.info(e),warn:e=>$u.warn(e),error:e=>$u.error(e),step:e=>$u.info(e)}},nd=ed;function rd(e){td=e}function id(e){nd=e}function ad(){return td}function od(){return nd}const sd=()=>`0.0.10`;function cd(e){let t=e.version??sd();e.interaction&&rd(e.interaction),e.color&&id(e.color);let n=new Yu;return n.name(e.name).version(t,`-v, --version`,`输出 ${e.name} 的版本号`),e.description&&n.description(e.description),n}Fu(`@longzai-intelligence-cli/core/output`),Fu(`@longzai-intelligence-cli/core/progress`);const ld=Fu(`@longzai-intelligence-cli/core/define-command`);function ud(e,t){let n=e.commands.find(e=>e.name()===t);return n===void 0?e.command(t):n}function dd(e,t){if(t.length===1){let n=t[0];if(n===void 0)throw Error(`defineCommand: segments 为空,无法解析命令名`);return e.command(n)}let[n,...r]=t;if(n===void 0)throw Error(`defineCommand: segments 首段为空,无法解析父命令名`);let i=r.pop();if(i===void 0)throw Error(`defineCommand: segments 末段为空,无法解析子命令名`);let a=ud(e,n);for(let e of r)a=ud(a,e);return a.command(i)}function fd(e,t){let n=dd(e,t.name.split(` `).filter(e=>e.length>0));t.description&&n.description(t.description);for(let e of t.arguments??[])e.description?n.argument(e.signature,e.description):n.argument(e.signature);for(let e of t.options??[])e.defaultValue===void 0?n.option(e.flags,e.description??``):n.option(e.flags,e.description??``,e.defaultValue);n.action(async(...e)=>{let n=e[e.length-1];if(!(n instanceof Yu))return;let r=n.opts(),i=n.args,a=t.schema.safeParse(r);if(!a.success){let e=a.error.issues.map(e=>e.message).join(`, `);ld.error(od().red(`参数校验失败: ${e}`)),ad().log.error(`参数校验失败: ${e}`),process.exit(1)}await t.action(a.data,i)})}var pd=/* @__PURE__ */ N(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}})),md=/* @__PURE__ */ N(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),hd=pd(),K=/* @__PURE__ */ F(md(),1);function gd({onlyFirst:e=!1}={}){return RegExp(`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`,e?void 0:`g`)}const _d=gd();function vd(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(_d,``)}function yd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var bd={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r==12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r==8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r==172||r==175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r==161||r==164||167<=r&&r<=168||r==170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r==198||r==208||215<=r&&r<=216||222<=r&&r<=225||r==230||232<=r&&r<=234||236<=r&&r<=237||r==240||242<=r&&r<=243||247<=r&&r<=250||r==252||r==254||r==257||r==273||r==275||r==283||294<=r&&r<=295||r==299||305<=r&&r<=307||r==312||319<=r&&r<=322||r==324||328<=r&&r<=331||r==333||338<=r&&r<=339||358<=r&&r<=359||r==363||r==462||r==464||r==466||r==468||r==470||r==472||r==474||r==476||r==593||r==609||r==708||r==711||713<=r&&r<=715||r==717||r==720||728<=r&&r<=731||r==733||r==735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r==1025||1040<=r&&r<=1103||r==1105||r==8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r==8240||8242<=r&&r<=8243||r==8245||r==8251||r==8254||r==8308||r==8319||8321<=r&&r<=8324||r==8364||r==8451||r==8453||r==8457||r==8467||r==8470||8481<=r&&r<=8482||r==8486||r==8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r==8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r==8658||r==8660||r==8679||r==8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r==8715||r==8719||r==8721||r==8725||r==8730||8733<=r&&r<=8736||r==8739||r==8741||8743<=r&&r<=8748||r==8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r==8776||r==8780||r==8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r==8853||r==8857||r==8869||r==8895||r==8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r==9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r==9711||9733<=r&&r<=9734||r==9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r==9756||r==9758||r==9792||r==9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r==9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r==9955||9960<=r&&r<=9983||r==10045||r==10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r==65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`},t.characterLength=function(e){var t=this.eastAsianWidth(e);return t==`F`||t==`W`||t==`A`?2:1};function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(e){for(var t=n(e),r=0,i=0;i<t.length;i++)r+=this.characterLength(t[i]);return r},t.slice=function(e,r,i){textLen=t.length(e),r||=0,i||=1,r<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var a=``,o=0,s=n(e),c=0;c<s.length;c++){var l=s[c],u=t.length(l);if(o>=r-+(u==2)){if(o+u<=i)a+=l;else break}o+=u}return a}})(bd);var xd=bd.exports;const Sd=yd(xd),Cd=yd(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function wd(e,t={}){if(typeof e!=`string`||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=vd(e),e.length===0))return 0;e=e.replace(Cd(),` `);let n=t.ambiguousIsNarrow?1:2,r=0;for(let t of e){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159||e>=768&&e<=879))switch(Sd.eastAsianWidth(t)){case`F`:case`W`:r+=2;break;case`A`:r+=n;break;default:r+=1}}return r}const Td=(e=0)=>t=>`\x1B[${t+e}m`,Ed=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Dd=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(q.modifier);const Od=Object.keys(q.color),kd=Object.keys(q.bgColor);[...Od,...kd];function Ad(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(q)){for(let[t,r]of Object.entries(n))q[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=q[t],e.set(r[0],r[1]);Object.defineProperty(q,t,{value:n,enumerable:!1})}return Object.defineProperty(q,"codes",{value:e,enumerable:!1}),q.color.close=`\x1B[39m`,q.bgColor.close=`\x1B[49m`,q.color.ansi=Td(),q.color.ansi256=Ed(),q.color.ansi16m=Dd(),q.bgColor.ansi=Td(10),q.bgColor.ansi256=Ed(10),q.bgColor.ansi16m=Dd(10),Object.defineProperties(q,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>q.rgbToAnsi256(...q.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>q.ansi256ToAnsi(q.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>q.ansi256ToAnsi(q.hexToAnsi256(e)),enumerable:!1}}),q}const jd=Ad(),Md=/* @__PURE__ */ new Set([`\x1B`,``]),Nd=`]8;;`,Pd=e=>`${Md.values().next().value}[${e}m`,Fd=e=>`${Md.values().next().value}${Nd}${e}`,Id=e=>e.split(` `).map(e=>wd(e)),Ld=(e,t,n)=>{let r=[...t],i=!1,a=!1,o=wd(vd(e[e.length-1]));for(let[t,s]of r.entries()){let c=wd(s);o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),Md.has(s)&&(i=!0,a=r.slice(t+1).join(``).startsWith(Nd)),i?a?s===`\x07`&&(i=!1,a=!1):s===`m`&&(i=!1):(o+=c,o===n&&t<r.length-1&&(e.push(``),o=0))}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Rd=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(wd(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},zd=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=Id(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let e=wd(s[s.length-1]);if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),Ld(s,i,t)}else{if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){Ld(s,i,t);continue}s.push(``)}e+o[r]>t&&n.wordWrap===!1?Ld(s,i,t):s[s.length-1]+=i}}n.trim!==!1&&(s=s.map(e=>Rd(e)));let c=[...s.join(`
|
|
156
|
+
`)];for(let[e,t]of c.entries()){if(r+=t,Md.has(t)){let{groups:t}=RegExp(`(?:\\[(?<code>\\d+)m|\\${Nd}(?<uri>.*))`).exec(c.slice(e).join(``))||{groups:{}};if(t.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}let n=jd.codes.get(Number(i));c[e+1]===`
|
|
157
|
+
`?(a&&(r+=Fd(``)),i&&n&&(r+=Pd(n))):t===`
|
|
158
|
+
`&&(i&&n&&(r+=Pd(i)),a&&(r+=Fd(a)))}return r};function Bd(e,t,n){return String(e).normalize().replace(/\r\n/g,`
|
|
159
159
|
`).split(`
|
|
160
|
-
`).map(e=>
|
|
161
|
-
`)}const
|
|
160
|
+
`).map(e=>zd(e,t,n)).join(`
|
|
161
|
+
`)}const Vd={actions:/* @__PURE__ */ new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:/* @__PURE__ */ new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]])};function Hd(e,t){if(typeof e==`string`)return Vd.aliases.get(e)===t;for(let n of e)if(n!==void 0&&Hd(n,t))return!0;return!1}function Ud(e,t){if(e===t)return;let n=e.split(`
|
|
162
162
|
`),r=t.split(`
|
|
163
|
-
`),i=[];for(let e=0;e<Math.max(n.length,r.length);e++)n[e]!==r[e]&&i.push(e);return i}const
|
|
164
|
-
`),
|
|
165
|
-
`).length-1;this.output.write(
|
|
166
|
-
`);this.output.write(r[n]),this._prevFrame=e,this.output.write(
|
|
163
|
+
`),i=[];for(let e=0;e<Math.max(n.length,r.length);e++)n[e]!==r[e]&&i.push(e);return i}const Wd=globalThis.process.platform.startsWith(`win`),Gd=Symbol(`clack:cancel`);function Kd(e){return e===Gd}function qd(e,t){let n=e;n.isTTY&&n.setRawMode(t)}function Jd({input:e=_,output:t=v,overwrite:n=!0,hideCursor:r=!0}={}){let i=b.createInterface({input:e,output:t,prompt:``,tabSize:1});b.emitKeypressEvents(e,i),e.isTTY&&e.setRawMode(!0);let a=(i,{name:o,sequence:s})=>{if(Hd([String(i),o,s],`cancel`)){r&&t.write(hd.cursor.show),process.exit(0);return}if(!n)return;let c=o===`return`?0:-1,l=o===`return`?-1:0;b.moveCursor(t,c,l,()=>{b.clearLine(t,1,()=>{e.once(`keypress`,a)})})};return r&&t.write(hd.cursor.hide),e.once(`keypress`,a),()=>{e.off(`keypress`,a),r&&t.write(hd.cursor.show),e.isTTY&&!Wd&&e.setRawMode(!1),i.terminal=!1,i.close()}}var Yd=Object.defineProperty,Xd=(e,t,n)=>t in e?Yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zd=(e,t,n)=>(Xd(e,typeof t==`symbol`?t:t+``,n),n),Qd=class{constructor(e,t=!0){Zd(this,`input`),Zd(this,`output`),Zd(this,`_abortSignal`),Zd(this,`rl`),Zd(this,`opts`),Zd(this,`_render`),Zd(this,`_track`,!1),Zd(this,`_prevFrame`,``),Zd(this,`_subscribers`,/* @__PURE__ */ new Map),Zd(this,`_cursor`,0),Zd(this,`state`,`initial`),Zd(this,`error`,``),Zd(this,`value`);let{input:n=_,output:r=v,render:i,signal:a,...o}=e;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=a,this.input=n,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(Gd);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}let n=new h;n._write=(e,t,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,``),this._cursor=this.rl?.cursor??0,this.emit(`value`,this.value)),n()},this.input.pipe(n),this.rl=y.createInterface({input:this.input,output:n,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),y.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on(`keypress`,this.onKeypress),qd(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(hd.cursor.show),this.output.off(`resize`,this.render),qd(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(hd.cursor.show),this.output.off(`resize`,this.render),qd(this.input,!1),e(Gd)})})}onKeypress(e,t){if(this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&Vd.aliases.has(t.name)&&this.emit(`cursor`,Vd.aliases.get(t.name)),Vd.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),e===` `&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit(`value`,this.opts.placeholder))),e&&this.emit(`key`,e.toLowerCase()),t?.name===`return`){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.value))}this.state!==`error`&&(this.state=`submit`)}Hd([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
|
|
164
|
+
`),qd(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=Bd(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
165
|
+
`).length-1;this.output.write(hd.cursor.move(-999,e*-1))}render(){let e=Bd(this._render(this)??``,process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state===`initial`)this.output.write(hd.cursor.hide);else{let t=Ud(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){let n=t[0];this.output.write(hd.cursor.move(0,n)),this.output.write(hd.erase.lines(1));let r=e.split(`
|
|
166
|
+
`);this.output.write(r[n]),this._prevFrame=e,this.output.write(hd.cursor.move(0,r.length-n-1));return}if(t&&t?.length>1){let n=t[0];this.output.write(hd.cursor.move(0,n)),this.output.write(hd.erase.down());let r=e.split(`
|
|
167
167
|
`).slice(n);this.output.write(r.join(`
|
|
168
|
-
`)),this._prevFrame=e;return}this.output.write(
|
|
169
|
-
${
|
|
170
|
-
`,n=e.placeholder?
|
|
171
|
-
${
|
|
172
|
-
${
|
|
173
|
-
`;case`submit`:return`${t}${
|
|
174
|
-
${
|
|
175
|
-
${
|
|
176
|
-
`}}}).prompt(),
|
|
177
|
-
${
|
|
178
|
-
`,i=this.value?t:n;switch(this.state){case`submit`:return`${r}${
|
|
179
|
-
${
|
|
180
|
-
${
|
|
181
|
-
`}}}).prompt()},
|
|
182
|
-
${
|
|
183
|
-
`;switch(this.state){case`submit`:return`${n}${
|
|
184
|
-
${
|
|
185
|
-
${
|
|
186
|
-
${
|
|
187
|
-
`}}}).prompt()},
|
|
168
|
+
`)),this._prevFrame=e;return}this.output.write(hd.erase.down())}this.output.write(e),this.state===`initial`&&(this.state=`active`),this._prevFrame=e}}},$d=class extends Qd{get cursor(){return+!this.value}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`value`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(hd.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}},ef=Object.defineProperty,tf=(e,t,n)=>t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t,n)=>(tf(e,typeof t==`symbol`?t:t+``,n),n),rf=class extends Qd{constructor(e){super(e,!1),nf(this,`options`),nf(this,`cursor`,0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},af=class extends Qd{get valueWithCursor(){if(this.state===`submit`)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let e=this.value.slice(0,this.cursor),[t,...n]=this.value.slice(this.cursor);return`${e}${K.default.inverse(t)}${n.join(``)}`}get cursor(){return this._cursor}constructor(e){super(e),this.on(`finalize`,()=>{this.value||=e.defaultValue})}};function of(){return g.platform===`win32`?!!g.env.CI||!!g.env.WT_SESSION||!!g.env.TERMINUS_SUBLIME||g.env.ConEmuTask===`{cmd::Cmder}`||g.env.TERM_PROGRAM===`Terminus-Sublime`||g.env.TERM_PROGRAM===`vscode`||g.env.TERM===`xterm-256color`||g.env.TERM===`alacritty`||g.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:g.env.TERM!==`linux`}const sf=of(),cf=(e,t)=>sf?e:t,lf=cf(`◆`,`*`),uf=cf(`■`,`x`),df=cf(`▲`,`x`),ff=cf(`◇`,`o`),J=cf(`│`,`|`),pf=cf(`└`,`—`),mf=cf(`●`,`>`),hf=cf(`○`,` `),gf=cf(`─`,`-`),_f=cf(`╮`,`+`),vf=cf(`├`,`+`),yf=cf(`╯`,`+`),bf=cf(`●`,`•`),xf=cf(`◆`,`*`),Sf=cf(`▲`,`!`),Cf=cf(`■`,`x`),wf=e=>{switch(e){case`initial`:case`active`:return K.default.cyan(lf);case`cancel`:return K.default.red(uf);case`error`:return K.default.yellow(df);case`submit`:return K.default.green(ff)}},Tf=e=>{let{cursor:t,options:n,style:r}=e,i=e.maxItems??1/0,a=Math.max(process.stdout.rows-4,0),o=Math.min(a,Math.max(i,5)),s=0;t>=s+o-3?s=Math.max(Math.min(t-o+3,n.length-o),0):t<s+2&&(s=Math.max(t-2,0));let c=o<n.length&&s>0,l=o<n.length&&s+o<n.length;return n.slice(s,s+o).map((e,n,i)=>{let a=n===0&&c,o=n===i.length-1&&l;return a||o?K.default.dim(`...`):r(e,n+s===t)})},Ef=e=>new af({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){let t=`${K.default.gray(J)}
|
|
169
|
+
${wf(this.state)} ${e.message}
|
|
170
|
+
`,n=e.placeholder?K.default.inverse(e.placeholder[0])+K.default.dim(e.placeholder.slice(1)):K.default.inverse(K.default.hidden(`_`)),r=this.value?this.valueWithCursor:n;switch(this.state){case`error`:return`${t.trim()}
|
|
171
|
+
${K.default.yellow(J)} ${r}
|
|
172
|
+
${K.default.yellow(pf)} ${K.default.yellow(this.error)}
|
|
173
|
+
`;case`submit`:return`${t}${K.default.gray(J)} ${K.default.dim(this.value||e.placeholder)}`;case`cancel`:return`${t}${K.default.gray(J)} ${K.default.strikethrough(K.default.dim(this.value??``))}${this.value?.trim()?`
|
|
174
|
+
${K.default.gray(J)}`:``}`;default:return`${t}${K.default.cyan(J)} ${r}
|
|
175
|
+
${K.default.cyan(pf)}
|
|
176
|
+
`}}}).prompt(),Df=e=>{let t=e.active??`Yes`,n=e.inactive??`No`;return new $d({active:t,inactive:n,initialValue:e.initialValue??!0,render(){let r=`${K.default.gray(J)}
|
|
177
|
+
${wf(this.state)} ${e.message}
|
|
178
|
+
`,i=this.value?t:n;switch(this.state){case`submit`:return`${r}${K.default.gray(J)} ${K.default.dim(i)}`;case`cancel`:return`${r}${K.default.gray(J)} ${K.default.strikethrough(K.default.dim(i))}
|
|
179
|
+
${K.default.gray(J)}`;default:return`${r}${K.default.cyan(J)} ${this.value?`${K.default.green(mf)} ${t}`:`${K.default.dim(hf)} ${K.default.dim(t)}`} ${K.default.dim(`/`)} ${this.value?`${K.default.dim(hf)} ${K.default.dim(n)}`:`${K.default.green(mf)} ${n}`}
|
|
180
|
+
${K.default.cyan(pf)}
|
|
181
|
+
`}}}).prompt()},Of=e=>{let t=(e,t)=>{let n=e.label??String(e.value);switch(t){case`selected`:return`${K.default.dim(n)}`;case`active`:return`${K.default.green(mf)} ${n} ${e.hint?K.default.dim(`(${e.hint})`):``}`;case`cancelled`:return`${K.default.strikethrough(K.default.dim(n))}`;default:return`${K.default.dim(hf)} ${K.default.dim(n)}`}};return new rf({options:e.options,initialValue:e.initialValue,render(){let n=`${K.default.gray(J)}
|
|
182
|
+
${wf(this.state)} ${e.message}
|
|
183
|
+
`;switch(this.state){case`submit`:return`${n}${K.default.gray(J)} ${t(this.options[this.cursor],`selected`)}`;case`cancel`:return`${n}${K.default.gray(J)} ${t(this.options[this.cursor],`cancelled`)}
|
|
184
|
+
${K.default.gray(J)}`;default:return`${n}${K.default.cyan(J)} ${Tf({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(e,n)=>t(e,n?`active`:`inactive`)}).join(`
|
|
185
|
+
${K.default.cyan(J)} `)}
|
|
186
|
+
${K.default.cyan(pf)}
|
|
187
|
+
`}}}).prompt()},kf=(e=``,t=``)=>{let r=`
|
|
188
188
|
${e}
|
|
189
189
|
`.split(`
|
|
190
|
-
`),i=n(t).length,a=Math.max(r.reduce((e,t)=>{let r=n(t);return r.length>e?r.length:e},0),i)+2,o=r.map(e=>`${
|
|
191
|
-
`);process.stdout.write(`${
|
|
192
|
-
${
|
|
190
|
+
`),i=n(t).length,a=Math.max(r.reduce((e,t)=>{let r=n(t);return r.length>e?r.length:e},0),i)+2,o=r.map(e=>`${K.default.gray(J)} ${K.default.dim(e)}${` `.repeat(a-n(e).length)}${K.default.gray(J)}`).join(`
|
|
191
|
+
`);process.stdout.write(`${K.default.gray(J)}
|
|
192
|
+
${K.default.green(ff)} ${K.default.reset(t)} ${K.default.gray(gf.repeat(Math.max(a-i-1,1))+_f)}
|
|
193
193
|
${o}
|
|
194
|
-
${
|
|
195
|
-
`)},
|
|
194
|
+
${K.default.gray(vf+gf.repeat(a+2)+yf)}
|
|
195
|
+
`)},Af=(e=``)=>{process.stdout.write(`${K.default.gray(pf)} ${K.default.red(e)}
|
|
196
196
|
|
|
197
|
-
`)},
|
|
198
|
-
`);n.push(`${t} ${r}`,...i.map(e=>`${
|
|
197
|
+
`)},jf={message:(e=``,{symbol:t=K.default.gray(J)}={})=>{let n=[`${K.default.gray(J)}`];if(e){let[r,...i]=e.split(`
|
|
198
|
+
`);n.push(`${t} ${r}`,...i.map(e=>`${K.default.gray(J)} ${e}`))}process.stdout.write(`${n.join(`
|
|
199
199
|
`)}
|
|
200
|
-
`)},info:e=>{
|
|
200
|
+
`)},info:e=>{jf.message(e,{symbol:K.default.blue(bf)})},success:e=>{jf.message(e,{symbol:K.default.green(xf)})},step:e=>{jf.message(e,{symbol:K.default.green(ff)})},warn:e=>{jf.message(e,{symbol:K.default.yellow(Sf)})},warning:e=>{jf.warn(e)},error:e=>{jf.message(e,{symbol:K.default.red(Cf)})}};`${K.default.gray(J)}`;const Mf=({indicator:e=`dots`}={})=>{let t=sf?[`◒`,`◐`,`◓`,`◑`]:[`•`,`o`,`O`,`0`],n=sf?80:120,r=process.env.CI===`true`,i,a,o=!1,s=``,c,l=performance.now(),u=e=>{o&&y(e>1?`Something went wrong`:`Canceled`,e)},d=()=>u(2),f=()=>u(1),p=()=>{process.on(`uncaughtExceptionMonitor`,d),process.on(`unhandledRejection`,d),process.on(`SIGINT`,f),process.on(`SIGTERM`,f),process.on(`exit`,u)},m=()=>{process.removeListener(`uncaughtExceptionMonitor`,d),process.removeListener(`unhandledRejection`,d),process.removeListener(`SIGINT`,f),process.removeListener(`SIGTERM`,f),process.removeListener(`exit`,u)},h=()=>{if(c===void 0)return;r&&process.stdout.write(`
|
|
201
201
|
`);let e=c.split(`
|
|
202
|
-
`);process.stdout.write(
|
|
203
|
-
`);let d=0,f=0;p(),a=setInterval(()=>{if(r&&s===c)return;h(),c=s;let n=
|
|
202
|
+
`);process.stdout.write(hd.cursor.move(-999,e.length-1)),process.stdout.write(hd.erase.down(e.length))},g=e=>e.replace(/\.+$/,``),_=e=>{let t=(performance.now()-e)/1e3,n=Math.floor(t/60),r=Math.floor(t%60);return n>0?`[${n}m ${r}s]`:`[${r}s]`},v=(u=``)=>{o=!0,i=Jd(),s=g(u),l=performance.now(),process.stdout.write(`${K.default.gray(J)}
|
|
203
|
+
`);let d=0,f=0;p(),a=setInterval(()=>{if(r&&s===c)return;h(),c=s;let n=K.default.magenta(t[d]);if(r)process.stdout.write(`${n} ${s}...`);else if(e===`timer`)process.stdout.write(`${n} ${s} ${_(l)}`);else{let e=`.`.repeat(Math.floor(f)).slice(0,3);process.stdout.write(`${n} ${s}${e}`)}d=d+1<t.length?d+1:0,f=f<t.length?f+.125:0},n)},y=(t=``,n=0)=>{o=!1,clearInterval(a),h();let r=n===0?K.default.green(ff):n===1?K.default.red(uf):K.default.red(df);s=g(t??s),e===`timer`?process.stdout.write(`${r} ${s} ${_(l)}
|
|
204
204
|
`):process.stdout.write(`${r} ${s}
|
|
205
|
-
`),m(),i()};return{start:v,stop:y,message:(e=``)=>{s=g(e??s)}}},
|
|
206
|
-
`)){let e=t.trim();for(let t of If){let n;if(e.startsWith(t)){let t=e.slice(e.indexOf(`:`)+1).trim();n=Number.parseInt(t,10)}else if(e.endsWith(t))n=Number.parseInt(e,10);else continue;if(Number.isInteger(n)&&n>=0)return n}}}function Rf(e,t){let n=e=>`${Math.round(e/1048576)} MB`;return[`内存峰值 ${n(e)},预算 ${n(t)}`,`超预算即测试用例形态违例,请合并整页挂载用例的只读断言并把断言下放组件级,预算可经环境变量 LZI_TEST_MEMORY_BUDGET_BYTES 临时覆盖`]}const Q=`https://registry.npmjs.org/`,zf=/* @__PURE__ */ new Map([[`longzai-intelligence`,Q],[`longzai-intelligence-agent-tools`,Q],[`longzai-intelligence-audit`,Q],[`longzai-intelligence-auth`,Q],[`longzai-intelligence-builder`,Q],[`longzai-intelligence-bun`,Q],[`longzai-intelligence-cache`,Q],[`longzai-intelligence-cli`,Q],[`longzai-intelligence-config`,Q],[`longzai-intelligence-dependencies`,Q],[`longzai-intelligence-design-system`,Q],[`longzai-intelligence-dev-tools`,Q],[`longzai-intelligence-electron`,Q],[`longzai-intelligence-error`,Q],[`longzai-intelligence-event-bus`,Q],[`longzai-intelligence-lint`,Q],[`longzai-intelligence-logger`,Q],[`longzai-intelligence-okr`,Q],[`longzai-intelligence-oxfmt`,Q],[`longzai-intelligence-oxlint`,Q],[`longzai-intelligence-plugin`,Q],[`longzai-intelligence-shared-config`,Q],[`longzai-intelligence-shared-kernel`,Q],[`longzai-intelligence-scripts`,Q],[`longzai-intelligence-standards`,Q],[`longzai-intelligence-transport`,Q],[`longzai-intelligence-typescript`,Q],[`longzai-intelligence-vscode`,Q],[`longzai-intelligence-zod`,Q],[`longzai-intelligence-prettier`,Q],[`longzai-intelligence-tsdown`,Q],[`longzai-intelligence-vitest`,Q],[`longzai-intelligence-academy`,Q],[`longzai-intelligence-accounting`,Q],[`longzai-intelligence-activity`,Q],[`longzai-intelligence-administration`,Q],[`longzai-intelligence-agent`,Q],[`longzai-intelligence-agent-broadcast`,Q],[`longzai-intelligence-agent-collaboration`,Q],[`longzai-intelligence-agent-endless`,Q],[`longzai-intelligence-agent-migrator`,Q],[`longzai-intelligence-agent-monitor`,Q],[`longzai-intelligence-agent-prompts`,Q],[`longzai-intelligence-agent-relation`,Q],[`longzai-intelligence-agent-session`,Q],[`longzai-intelligence-agent-swarm`,Q],[`longzai-intelligence-agent-tasks`,Q],[`longzai-intelligence-agent-tasks-data`,Q],[`longzai-intelligence-agent-ui`,Q],[`longzai-intelligence-analytics`,Q],[`longzai-intelligence-api`,Q],[`longzai-intelligence-app-gallery`,Q],[`longzai-intelligence-app-store`,Q],[`longzai-intelligence-architecture`,Q],[`longzai-intelligence-architecture-expert`,Q],[`longzai-intelligence-arkts`,Q],[`longzai-intelligence-art`,Q],[`longzai-intelligence-artifact`,Q],[`longzai-intelligence-artifact-registry`,Q],[`longzai-intelligence-arxiv`,Q],[`longzai-intelligence-arxiv-data`,Q],[`longzai-intelligence-arxiv-markdown`,Q],[`longzai-intelligence-atomic`,Q],[`longzai-intelligence-attention`,Q],[`longzai-intelligence-audio`,Q],[`longzai-intelligence-audio-assistant`,Q],[`longzai-intelligence-augmented-reality`,Q],[`longzai-intelligence-auto-research`,Q],[`longzai-intelligence-automate`,Q],[`longzai-intelligence-benchmark`,Q],[`longzai-intelligence-bilibili`,Q],[`longzai-intelligence-bilibili-data`,Q],[`longzai-intelligence-bilibili-markdown`,Q],[`longzai-intelligence-billing`,Q],[`longzai-intelligence-blackboard`,Q],[`longzai-intelligence-blackboard-data`,Q],[`longzai-intelligence-blackboard-markdown`,Q],[`longzai-intelligence-bluetooth`,Q],[`longzai-intelligence-board`,Q],[`longzai-intelligence-bootstrap`,Q],[`longzai-intelligence-bootstrap-registry`,Q],[`longzai-intelligence-bounty-registry`,Q],[`longzai-intelligence-brawl-stars`,Q],[`longzai-intelligence-broker`,Q],[`longzai-intelligence-bt`,Q],[`longzai-intelligence-business-plan`,Q],[`longzai-intelligence-calendar`,Q],[`longzai-intelligence-camera`,Q],[`longzai-intelligence-canvas`,Q],[`longzai-intelligence-capture`,Q],[`longzai-intelligence-change-maker`,Q],[`longzai-intelligence-changelog`,Q],[`longzai-intelligence-changeset`,Q],[`longzai-intelligence-chat`,Q],[`longzai-intelligence-chess`,Q],[`longzai-intelligence-circuit`,Q],[`longzai-intelligence-claude-code`,Q],[`longzai-intelligence-claude-knowledge`,Q],[`longzai-intelligence-clipboard-share`,Q],[`longzai-intelligence-closed-loop`,Q],[`longzai-intelligence-closed-loop-data`,Q],[`longzai-intelligence-closed-loop-markdown`,Q],[`longzai-intelligence-cloud`,Q],[`longzai-intelligence-code`,Q],[`longzai-intelligence-code-agent`,Q],[`longzai-intelligence-code-reviewer`,Q],[`longzai-intelligence-codebase-research`,Q],[`longzai-intelligence-coding-expert`,Q],[`longzai-intelligence-collaboration`,Q],[`longzai-intelligence-collective`,Q],[`longzai-intelligence-commerce`,Q],[`longzai-intelligence-commit`,Q],[`longzai-intelligence-competition-registry`,Q],[`longzai-intelligence-composer`,Q],[`longzai-intelligence-concrete`,Q],[`longzai-intelligence-concrete-industry`,Q],[`longzai-intelligence-config-registry`,Q],[`longzai-intelligence-context`,Q],[`longzai-intelligence-contract`,Q],[`longzai-intelligence-contract-parity`,Q],[`longzai-intelligence-cookery`,Q],[`longzai-intelligence-country`,Q],[`longzai-intelligence-creativity`,Q],[`longzai-intelligence-cross-platform`,Q],[`longzai-intelligence-crossref`,Q],[`longzai-intelligence-crossref-markdown`,Q],[`longzai-intelligence-crypto`,Q],[`longzai-intelligence-customer-service`,Q],[`longzai-intelligence-cut`,Q],[`longzai-intelligence-dag`,Q],[`longzai-intelligence-dashboard`,Q],[`longzai-intelligence-data`,Q],[`longzai-intelligence-data-science`,Q],[`longzai-intelligence-database`,Q],[`longzai-intelligence-decenterlization`,Q],[`longzai-intelligence-decision`,Q],[`longzai-intelligence-deepseek`,Q],[`longzai-intelligence-deepseek-harness`,Q],[`longzai-intelligence-deepseek-harness-knowledge`,Q],[`longzai-intelligence-delta`,Q],[`longzai-intelligence-deploy`,Q],[`longzai-intelligence-design`,Q],[`longzai-intelligence-design-lab`,Q],[`longzai-intelligence-design-registry`,Q],[`longzai-intelligence-design-trending`,Q],[`longzai-intelligence-device`,Q],[`longzai-intelligence-dimensions`,Q],[`longzai-intelligence-discipline`,Q],[`longzai-intelligence-discovery`,Q],[`longzai-intelligence-disk-space`,Q],[`longzai-intelligence-disk-space-data`,Q],[`longzai-intelligence-disk-space-markdown`,Q],[`longzai-intelligence-distill`,Q],[`longzai-intelligence-docs`,Q],[`longzai-intelligence-docs-registry`,Q],[`longzai-intelligence-document`,Q],[`longzai-intelligence-douyin`,Q],[`longzai-intelligence-douyin-data`,Q],[`longzai-intelligence-douyin-markdown`,Q],[`longzai-intelligence-drone`,Q],[`longzai-intelligence-edge`,Q],[`longzai-intelligence-electrobun`,Q],[`longzai-intelligence-elysia`,Q],[`longzai-intelligence-embodied`,Q],[`longzai-intelligence-empowerment`,Q],[`longzai-intelligence-engineering`,Q],[`longzai-intelligence-env`,Q],[`longzai-intelligence-env-registry`,Q],[`longzai-intelligence-equilibrium`,Q],[`longzai-intelligence-eslint`,Q],[`longzai-intelligence-event`,Q],[`longzai-intelligence-event-tracking`,Q],[`longzai-intelligence-evolution`,Q],[`longzai-intelligence-excel`,Q],[`longzai-intelligence-exchange-rate`,Q],[`longzai-intelligence-execution`,Q],[`longzai-intelligence-experience`,Q],[`longzai-intelligence-expert`,Q],[`longzai-intelligence-expert-thinking`,Q],[`longzai-intelligence-fde`,Q],[`longzai-intelligence-feature-flags`,Q],[`longzai-intelligence-features`,Q],[`longzai-intelligence-federation`,Q],[`longzai-intelligence-feed`,Q],[`longzai-intelligence-feishu`,Q],[`longzai-intelligence-fields-medal-knowledge`,Q],[`longzai-intelligence-file-processing`,Q],[`longzai-intelligence-findings`,Q],[`longzai-intelligence-fitness`,Q],[`longzai-intelligence-font`,Q],[`longzai-intelligence-game`,Q],[`longzai-intelligence-game-studio`,Q],[`longzai-intelligence-gantt`,Q],[`longzai-intelligence-gateway`,Q],[`longzai-intelligence-geo`,Q],[`longzai-intelligence-gesture`,Q],[`longzai-intelligence-git`,Q],[`longzai-intelligence-git-commit`,Q],[`longzai-intelligence-git-insight`,Q],[`longzai-intelligence-git-reviewer`,Q],[`longzai-intelligence-git-swarm`,Q],[`longzai-intelligence-git-swarm-registry`,Q],[`longzai-intelligence-gitcode`,Q],[`longzai-intelligence-github-data`,Q],[`longzai-intelligence-github-markdown`,Q],[`longzai-intelligence-github-trending`,Q],[`longzai-intelligence-github-trending-data`,Q],[`longzai-intelligence-github-trending-markdown`,Q],[`longzai-intelligence-globals`,Q],[`longzai-intelligence-growth`,Q],[`longzai-intelligence-growth-registry`,Q],[`longzai-intelligence-handover`,Q],[`longzai-intelligence-hardware`,Q],[`longzai-intelligence-harness`,Q],[`longzai-intelligence-healthcare`,Q],[`longzai-intelligence-history`,Q],[`longzai-intelligence-horizon`,Q],[`longzai-intelligence-human-resource`,Q],[`longzai-intelligence-i18n`,Q],[`longzai-intelligence-idea`,Q],[`longzai-intelligence-identity`,Q],[`longzai-intelligence-ime`,Q],[`longzai-intelligence-impact-maker`,Q],[`longzai-intelligence-inbox`,Q],[`longzai-intelligence-inbox-registry`,Q],[`longzai-intelligence-input-data`,Q],[`longzai-intelligence-input-markdown`,Q],[`longzai-intelligence-insight`,Q],[`longzai-intelligence-intellectual-property`,Q],[`longzai-intelligence-intent`,Q],[`longzai-intelligence-intentionomics`,Q],[`longzai-intelligence-interview`,Q],[`longzai-intelligence-issues`,Q],[`longzai-intelligence-jev`,Q],[`longzai-intelligence-jev-knowledge`,Q],[`longzai-intelligence-jev-system`,Q],[`longzai-intelligence-journal-of-finance-data`,Q],[`longzai-intelligence-journal-of-financial-and-quantitative-analysis-data`,Q],[`longzai-intelligence-journal-of-financial-economics-data`,Q],[`longzai-intelligence-journals`,Q],[`longzai-intelligence-journals-2026-10`,Q],[`longzai-intelligence-journals-markdown`,Q],[`longzai-intelligence-journals-registry`,Q],[`longzai-intelligence-key-management`,Q],[`longzai-intelligence-knowledge`,Q],[`longzai-intelligence-knowledge-graph`,Q],[`longzai-intelligence-knowledge-markdown`,Q],[`longzai-intelligence-kol`,Q],[`longzai-intelligence-kol-data`,Q],[`longzai-intelligence-kol-markdown`,Q],[`longzai-intelligence-kol-registry`,Q],[`longzai-intelligence-language-model`,Q],[`longzai-intelligence-law`,Q],[`longzai-intelligence-law-data`,Q],[`longzai-intelligence-law-markdown`,Q],[`longzai-intelligence-lean`,Q],[`longzai-intelligence-ledger`,Q],[`longzai-intelligence-legal`,Q],[`longzai-intelligence-liquid-glass`,Q],[`longzai-intelligence-living-previewer`,Q],[`longzai-intelligence-loop`,Q],[`longzai-intelligence-machine-learning`,Q],[`longzai-intelligence-mail`,Q],[`longzai-intelligence-mandala`,Q],[`longzai-intelligence-map`,Q],[`longzai-intelligence-markdown`,Q],[`longzai-intelligence-marketing`,Q],[`longzai-intelligence-marketplace`,Q],[`longzai-intelligence-math`,Q],[`longzai-intelligence-mcn`,Q],[`longzai-intelligence-mcp`,Q],[`longzai-intelligence-mechanisms`,Q],[`longzai-intelligence-mechanisms-registry`,Q],[`longzai-intelligence-media`,Q],[`longzai-intelligence-meditation`,Q],[`longzai-intelligence-meeting-notes`,Q],[`longzai-intelligence-memory`,Q],[`longzai-intelligence-mentor`,Q],[`longzai-intelligence-messaging`,Q],[`longzai-intelligence-mindset`,Q],[`longzai-intelligence-minimax-knowldege`,Q],[`longzai-intelligence-mission-control`,Q],[`longzai-intelligence-model-fusion`,Q],[`longzai-intelligence-model-gateway`,Q],[`longzai-intelligence-moment`,Q],[`longzai-intelligence-montage`,Q],[`longzai-intelligence-movie`,Q],[`longzai-intelligence-music-video`,Q],[`longzai-intelligence-music-video-data`,Q],[`longzai-intelligence-narrative-analyzer`,Q],[`longzai-intelligence-nation`,Q],[`longzai-intelligence-nginx`,Q],[`longzai-intelligence-nginx-cli`,Q],[`longzai-intelligence-nobel-prize-knowledge`,Q],[`longzai-intelligence-notification`,Q],[`longzai-intelligence-npm`,Q],[`longzai-intelligence-npm-registry`,Q],[`longzai-intelligence-npm-registry-data`,Q],[`longzai-intelligence-observability`,Q],[`longzai-intelligence-office-industry`,Q],[`longzai-intelligence-okr-data`,Q],[`longzai-intelligence-okr-markdown`,Q],[`longzai-intelligence-older`,Q],[`longzai-intelligence-one`,Q],[`longzai-intelligence-one-digest`,Q],[`longzai-intelligence-one-digest-data`,Q],[`longzai-intelligence-one-digest-markdown`,Q],[`longzai-intelligence-one-digest-registry`,Q],[`longzai-intelligence-one-trae-works`,Q],[`longzai-intelligence-ontology`,Q],[`longzai-intelligence-open-pencil`,Q],[`longzai-intelligence-open-router`,Q],[`longzai-intelligence-open-router-data`,Q],[`longzai-intelligence-open-router-markdown`,Q],[`longzai-intelligence-opencode`,Q],[`longzai-intelligence-opencode-knowledge`,Q],[`longzai-intelligence-opportunity`,Q],[`longzai-intelligence-orchestry`,Q],[`longzai-intelligence-organization`,Q],[`longzai-intelligence-orm`,Q],[`longzai-intelligence-outfit`,Q],[`longzai-intelligence-outsourcing`,Q],[`longzai-intelligence-overseas`,Q],[`longzai-intelligence-pagination`,Q],[`longzai-intelligence-panel`,Q],[`longzai-intelligence-paper-reader`,Q],[`longzai-intelligence-parametric-industry`,Q],[`longzai-intelligence-partner`,Q],[`longzai-intelligence-pay`,Q],[`longzai-intelligence-payment`,Q],[`longzai-intelligence-permission`,Q],[`longzai-intelligence-personal-assistant`,Q],[`longzai-intelligence-philosophy`,Q],[`longzai-intelligence-philosophy-markdown`,Q],[`longzai-intelligence-philosophy-ontology`,Q],[`longzai-intelligence-pi-knowledge`,Q],[`longzai-intelligence-pii`,Q],[`longzai-intelligence-pipeline`,Q],[`longzai-intelligence-pitfalls`,Q],[`longzai-intelligence-plugin-registry`,Q],[`longzai-intelligence-pm2`,Q],[`longzai-intelligence-policy-research`,Q],[`longzai-intelligence-port`,Q],[`longzai-intelligence-portal`,Q],[`longzai-intelligence-previewer`,Q],[`longzai-intelligence-prezi`,Q],[`longzai-intelligence-prisma`,Q],[`longzai-intelligence-process-monitor`,Q],[`longzai-intelligence-product-requirement`,Q],[`longzai-intelligence-product-research`,Q],[`longzai-intelligence-programming-language`,Q],[`longzai-intelligence-project`,Q],[`longzai-intelligence-project-data`,Q],[`longzai-intelligence-project-markdown`,Q],[`longzai-intelligence-project-portfolio`,Q],[`longzai-intelligence-project-registry`,Q],[`longzai-intelligence-promotion`,Q],[`longzai-intelligence-proposals`,Q],[`longzai-intelligence-prospect`,Q],[`longzai-intelligence-psychoanalyst`,Q],[`longzai-intelligence-publication`,Q],[`longzai-intelligence-qcloud`,Q],[`longzai-intelligence-quant`,Q],[`longzai-intelligence-queue`,Q],[`longzai-intelligence-quick-notes`,Q],[`longzai-intelligence-react-devtools`,Q],[`longzai-intelligence-react-native`,Q],[`longzai-intelligence-reader`,Q],[`longzai-intelligence-reading-distinction`,Q],[`longzai-intelligence-reading-shanhaijing`,Q],[`longzai-intelligence-readme`,Q],[`longzai-intelligence-reasoning`,Q],[`longzai-intelligence-records`,Q],[`longzai-intelligence-recruitment`,Q],[`longzai-intelligence-reflections`,Q],[`longzai-intelligence-release`,Q],[`longzai-intelligence-release-markdown`,Q],[`longzai-intelligence-reliability`,Q],[`longzai-intelligence-remote-desktop`,Q],[`longzai-intelligence-remote-machine`,Q],[`longzai-intelligence-remote-machine-registry`,Q],[`longzai-intelligence-remotion`,Q],[`longzai-intelligence-report`,Q],[`longzai-intelligence-repository`,Q],[`longzai-intelligence-repository-handover`,Q],[`longzai-intelligence-research-report`,Q],[`longzai-intelligence-research-report-data`,Q],[`longzai-intelligence-research-report-markdown`,Q],[`longzai-intelligence-research-report-registry`,Q],[`longzai-intelligence-resilience`,Q],[`longzai-intelligence-reverse-engineering`,Q],[`longzai-intelligence-review-of-financial-studies-data`,Q],[`longzai-intelligence-reviewer`,Q],[`longzai-intelligence-risk`,Q],[`longzai-intelligence-roadmap`,Q],[`longzai-intelligence-roadmap-data`,Q],[`longzai-intelligence-roadmap-markdown`,Q],[`longzai-intelligence-router`,Q],[`longzai-intelligence-rss`,Q],[`longzai-intelligence-rss-markdown`,Q],[`longzai-intelligence-runtime`,Q],[`longzai-intelligence-runtime-registry`,Q],[`longzai-intelligence-sales`,Q],[`longzai-intelligence-scanner`,Q],[`longzai-intelligence-schedule-markdown`,Q],[`longzai-intelligence-schedule-registry`,Q],[`longzai-intelligence-scheduler`,Q],[`longzai-intelligence-schema`,Q],[`longzai-intelligence-scope`,Q],[`longzai-intelligence-scrape`,Q],[`longzai-intelligence-screenshots`,Q],[`longzai-intelligence-scripts-registry`,Q],[`longzai-intelligence-search`,Q],[`longzai-intelligence-security`,Q],[`longzai-intelligence-security-bounty-registry`,Q],[`longzai-intelligence-security-inventory`,Q],[`longzai-intelligence-serverless`,Q],[`longzai-intelligence-share`,Q],[`longzai-intelligence-sheet`,Q],[`longzai-intelligence-short-video`,Q],[`longzai-intelligence-skill`,Q],[`longzai-intelligence-slider`,Q],[`longzai-intelligence-smart-transition`,Q],[`longzai-intelligence-sms`,Q],[`longzai-intelligence-software-factory`,Q],[`longzai-intelligence-soul`,Q],[`longzai-intelligence-specs`,Q],[`longzai-intelligence-spline`,Q],[`longzai-intelligence-sports`,Q],[`longzai-intelligence-ssl`,Q],[`longzai-intelligence-startup`,Q],[`longzai-intelligence-state-machine`,Q],[`longzai-intelligence-storage`,Q],[`longzai-intelligence-strategy`,Q],[`longzai-intelligence-strategy-consulting`,Q],[`longzai-intelligence-strategy-consulting-data`,Q],[`longzai-intelligence-strategy-consulting-markdown`,Q],[`longzai-intelligence-supply-chain`,Q],[`longzai-intelligence-support`,Q],[`longzai-intelligence-survey`,Q],[`longzai-intelligence-system`,Q],[`longzai-intelligence-system-data`,Q],[`longzai-intelligence-system-markdown`,Q],[`longzai-intelligence-system-registry`,Q],[`longzai-intelligence-talk`,Q],[`longzai-intelligence-taro`,Q],[`longzai-intelligence-task`,Q],[`longzai-intelligence-task-data`,Q],[`longzai-intelligence-task-markdown`,Q],[`longzai-intelligence-telemetry`,Q],[`longzai-intelligence-templates`,Q],[`longzai-intelligence-tenant`,Q],[`longzai-intelligence-terminal`,Q],[`longzai-intelligence-testing`,Q],[`longzai-intelligence-thinking`,Q],[`longzai-intelligence-token-exchange`,Q],[`longzai-intelligence-token-finance`,Q],[`longzai-intelligence-token-handover`,Q],[`longzai-intelligence-toolchain`,Q],[`longzai-intelligence-topology`,Q],[`longzai-intelligence-tracking-bennett-brassard`,Q],[`longzai-intelligence-tracking-deng-yu`,Q],[`longzai-intelligence-tracking-hong-wang`,Q],[`longzai-intelligence-tracking-jacob-tsimerman`,Q],[`longzai-intelligence-tracking-john-clarke`,Q],[`longzai-intelligence-tracking-john-martinis`,Q],[`longzai-intelligence-tracking-john-pardon`,Q],[`longzai-intelligence-tracking-michel-devoret`,Q],[`longzai-intelligence-tracking-nation`,Q],[`longzai-intelligence-tracking-qbitai`,Q],[`longzai-intelligence-tracking-terrytao`,Q],[`longzai-intelligence-tracking-xiao-lin`,Q],[`longzai-intelligence-tracking-yu-bo`,Q],[`longzai-intelligence-trader`,Q],[`longzai-intelligence-trae`,Q],[`longzai-intelligence-training-data`,Q],[`longzai-intelligence-translator`,Q],[`longzai-intelligence-travel`,Q],[`longzai-intelligence-trending`,Q],[`longzai-intelligence-tsconfig`,Q],[`longzai-intelligence-tsdoc`,Q],[`longzai-intelligence-tsgo`,Q],[`longzai-intelligence-turbo`,Q],[`longzai-intelligence-turing-award-knowledge`,Q],[`longzai-intelligence-twitter`,Q],[`longzai-intelligence-twitter-data`,Q],[`longzai-intelligence-twitter-markdown`,Q],[`longzai-intelligence-typeorm`,Q],[`longzai-intelligence-usecase`,Q],[`longzai-intelligence-user-experience`,Q],[`longzai-intelligence-user-research`,Q],[`longzai-intelligence-userscript`,Q],[`longzai-intelligence-utils`,Q],[`longzai-intelligence-value-chain`,Q],[`longzai-intelligence-vector-search`,Q],[`longzai-intelligence-vendor`,Q],[`longzai-intelligence-venture-capital`,Q],[`longzai-intelligence-version`,Q],[`longzai-intelligence-video-generation`,Q],[`longzai-intelligence-video-player`,Q],[`longzai-intelligence-vite`,Q],[`longzai-intelligence-voice`,Q],[`longzai-intelligence-voice-recorder`,Q],[`longzai-intelligence-vscode-developer`,Q],[`longzai-intelligence-vuln`,Q],[`longzai-intelligence-vuln-data`,Q],[`longzai-intelligence-vuln-markdown`,Q],[`longzai-intelligence-vuln-registry`,Q],[`longzai-intelligence-warehouse`,Q],[`longzai-intelligence-wealth`,Q],[`longzai-intelligence-web3`,Q],[`longzai-intelligence-webhook`,Q],[`longzai-intelligence-websocket`,Q],[`longzai-intelligence-wechat`,Q],[`longzai-intelligence-wechat-miniprogram`,Q],[`longzai-intelligence-wechat-pay`,Q],[`longzai-intelligence-wifi`,Q],[`longzai-intelligence-wiki`,Q],[`longzai-intelligence-word`,Q],[`longzai-intelligence-work`,Q],[`longzai-intelligence-worker`,Q],[`longzai-intelligence-workflow`,Q],[`longzai-intelligence-workflow-data`,Q],[`longzai-intelligence-workflow-markdown`,Q],[`longzai-intelligence-workflow-registry`,Q],[`longzai-intelligence-workspace`,Q],[`longzai-intelligence-writer`,Q],[`longzai-intelligence-xiaohongshu`,Q],[`longzai-intelligence-xiaohongshu-data`,Q],[`longzai-intelligence-xiaohongshu-markdown`,Q],[`longzai-intelligence-youtube`,Q],[`longzai-intelligence-youtube-data`,Q],[`longzai-intelligence-youtube-markdown`,Q],[`longzai-intelligence-zcode`,Q],[`longzai-intelligence-zcode-cleaner`,Q],[`longzai-intelligence-zcode-commit`,Q],[`longzai-intelligence-zcode-knowledge`,Q],[`longzai-intelligence-zcode-remote`,Q],[`longzai-intelligence-zcode-security`,Q],[`longzai-intelligence-zed-delta-knowledge`,Q],[`longzai-intelligence-zhihu`,Q],[`longzai-intelligence-zhihu-data`,Q],[`longzai-intelligence-zhihu-markdown`,Q]]),Bf=`LZI_GLOBALS_ROOT`,Vf=/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/;var Hf=class extends Error{details;constructor(e,t=`install.extraScopes`){super(`${t} 校验失败:\n${e.map(e=>`- ${e}`).join(`
|
|
207
|
-
`)}`),this.name=`InstallScopesError`,this.details=e}};function
|
|
208
|
-
修复指引: 删除成员目录的游离 bun.lock 后在仓库根执行 bun install;覆盖缺口补 workspaces glob,刻意独立的子项目以负向 glob 显式排除`),process.exit(1)}
|
|
209
|
-
修复指引:执行 bunx @longzai-intelligence-bun/cli node-links fix 回收悬挂死链后重试,有效链接零触碰`),process.exit(Math.min(t.dangling.length,255))}
|
|
210
|
-
`)}
|
|
205
|
+
`),m(),i()};return{start:v,stop:y,message:(e=``)=>{s=g(e??s)}}},Nf={red:e=>K.default.red(e),green:e=>K.default.green(e),yellow:e=>K.default.yellow(e),blue:e=>K.default.blue(e),cyan:e=>K.default.cyan(e),magenta:e=>K.default.magenta(e),gray:e=>K.default.gray(e),bold:e=>K.default.bold(e),dim:e=>K.default.dim(e)},Pf={async select(e,t){let n=await Of({message:e,options:t.map(e=>({value:e.value,label:e.label,hint:e.hint}))});return Kd(n)&&(Af(`操作已取消`),process.exit(0)),typeof n==`string`?n:String(n)},async textInput(e,t){let n=await Ef({message:e,placeholder:t?.placeholder,defaultValue:t?.defaultValue});return Kd(n)&&(Af(`操作已取消`),process.exit(0)),typeof n==`string`?n:String(n)},async confirm(e,t){let n=await Df({message:e,initialValue:t?.defaultValue??!1});return Kd(n)&&(Af(`操作已取消`),process.exit(0)),typeof n==`boolean`?n:!!n},spinner(){let e=Mf();return{start(t){e.start(t)},stop(t){e.stop(t)}}},note(e,t){kf(e,t)},log:{info(e){jf.info(K.default.blue(e))},success(e){jf.success(K.default.green(e))},warn(e){jf.warn(K.default.yellow(e))},error(e){jf.error(K.default.red(e))},step(e){jf.step(e)}}};function Ff(e){return e.map(e=>{if(typeof e==`string`)return e;if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch{return String(e)}}).join(` `)}function Y(...e){process.stdout.write(`${Ff(e)}\n`)}function X(...e){process.stderr.write(`${Ff(e)}\n`)}function If(e,t=`./src/__tests__/helpers/bootstrap.ts`){let n=[t,...(e?.test?.preload??[]).filter(e=>e!==t)];return{...e,test:{...e?.test,preload:n}}}const Lf=[`maximum resident set size`,`peak memory footprint`];function Rf(e){for(let t of e.split(`
|
|
206
|
+
`)){let e=t.trim();for(let t of Lf){let n;if(e.startsWith(t)){let t=e.slice(e.indexOf(`:`)+1).trim();n=Number.parseInt(t,10)}else if(e.endsWith(t))n=Number.parseInt(e,10);else continue;if(Number.isInteger(n)&&n>=0)return n}}}function zf(e,t){let n=e=>`${Math.round(e/1048576)} MB`;return[`内存峰值 ${n(e)},预算 ${n(t)}`,`超预算即测试用例形态违例,请合并整页挂载用例的只读断言并把断言下放组件级,预算可经环境变量 LZI_TEST_MEMORY_BUDGET_BYTES 临时覆盖`]}const Z=`https://registry.npmjs.org/`,Bf=/* @__PURE__ */ new Map([[`longzai-intelligence`,Z],[`longzai-intelligence-agent-tools`,Z],[`longzai-intelligence-audit`,Z],[`longzai-intelligence-auth`,Z],[`longzai-intelligence-builder`,Z],[`longzai-intelligence-bun`,Z],[`longzai-intelligence-cache`,Z],[`longzai-intelligence-cli`,Z],[`longzai-intelligence-config`,Z],[`longzai-intelligence-dependencies`,Z],[`longzai-intelligence-design-system`,Z],[`longzai-intelligence-dev-tools`,Z],[`longzai-intelligence-electron`,Z],[`longzai-intelligence-error`,Z],[`longzai-intelligence-event-bus`,Z],[`longzai-intelligence-lint`,Z],[`longzai-intelligence-logger`,Z],[`longzai-intelligence-okr`,Z],[`longzai-intelligence-oxfmt`,Z],[`longzai-intelligence-oxlint`,Z],[`longzai-intelligence-plugin`,Z],[`longzai-intelligence-shared-config`,Z],[`longzai-intelligence-shared-kernel`,Z],[`longzai-intelligence-scripts`,Z],[`longzai-intelligence-standards`,Z],[`longzai-intelligence-transport`,Z],[`longzai-intelligence-typescript`,Z],[`longzai-intelligence-vscode`,Z],[`longzai-intelligence-zod`,Z],[`longzai-intelligence-prettier`,Z],[`longzai-intelligence-tsdown`,Z],[`longzai-intelligence-vitest`,Z],[`longzai-intelligence-academy`,Z],[`longzai-intelligence-accounting`,Z],[`longzai-intelligence-activity`,Z],[`longzai-intelligence-administration`,Z],[`longzai-intelligence-agent`,Z],[`longzai-intelligence-agent-broadcast`,Z],[`longzai-intelligence-agent-collaboration`,Z],[`longzai-intelligence-agent-endless`,Z],[`longzai-intelligence-agent-migrator`,Z],[`longzai-intelligence-agent-monitor`,Z],[`longzai-intelligence-agent-prompts`,Z],[`longzai-intelligence-agent-relation`,Z],[`longzai-intelligence-agent-session`,Z],[`longzai-intelligence-agent-swarm`,Z],[`longzai-intelligence-agent-tasks`,Z],[`longzai-intelligence-agent-tasks-data`,Z],[`longzai-intelligence-agent-ui`,Z],[`longzai-intelligence-agent-ui-command`,Z],[`longzai-intelligence-agent-ui-render`,Z],[`longzai-intelligence-aliyun`,Z],[`longzai-intelligence-analytics`,Z],[`longzai-intelligence-api`,Z],[`longzai-intelligence-app-gallery`,Z],[`longzai-intelligence-app-store`,Z],[`longzai-intelligence-app-store-connect`,Z],[`longzai-intelligence-architecture`,Z],[`longzai-intelligence-architecture-expert`,Z],[`longzai-intelligence-arkts`,Z],[`longzai-intelligence-art`,Z],[`longzai-intelligence-artifact`,Z],[`longzai-intelligence-artifact-registry`,Z],[`longzai-intelligence-arxiv`,Z],[`longzai-intelligence-arxiv-data`,Z],[`longzai-intelligence-arxiv-markdown`,Z],[`longzai-intelligence-atomic`,Z],[`longzai-intelligence-attention`,Z],[`longzai-intelligence-audio`,Z],[`longzai-intelligence-audio-assistant`,Z],[`longzai-intelligence-augmented-reality`,Z],[`longzai-intelligence-auto-research`,Z],[`longzai-intelligence-automate`,Z],[`longzai-intelligence-benchmark`,Z],[`longzai-intelligence-bilibili`,Z],[`longzai-intelligence-bilibili-data`,Z],[`longzai-intelligence-bilibili-markdown`,Z],[`longzai-intelligence-billing`,Z],[`longzai-intelligence-blackboard`,Z],[`longzai-intelligence-blackboard-data`,Z],[`longzai-intelligence-blackboard-markdown`,Z],[`longzai-intelligence-bluetooth`,Z],[`longzai-intelligence-board`,Z],[`longzai-intelligence-bootstrap`,Z],[`longzai-intelligence-bootstrap-registry`,Z],[`longzai-intelligence-bounty-registry`,Z],[`longzai-intelligence-brawl-stars`,Z],[`longzai-intelligence-broker`,Z],[`longzai-intelligence-bt`,Z],[`longzai-intelligence-business-plan`,Z],[`longzai-intelligence-calendar`,Z],[`longzai-intelligence-camera`,Z],[`longzai-intelligence-canvas`,Z],[`longzai-intelligence-capture`,Z],[`longzai-intelligence-change-maker`,Z],[`longzai-intelligence-changelog`,Z],[`longzai-intelligence-changeset`,Z],[`longzai-intelligence-chat`,Z],[`longzai-intelligence-chess`,Z],[`longzai-intelligence-circuit`,Z],[`longzai-intelligence-claude-code`,Z],[`longzai-intelligence-claude-knowledge`,Z],[`longzai-intelligence-clipboard-share`,Z],[`longzai-intelligence-closed-loop`,Z],[`longzai-intelligence-closed-loop-data`,Z],[`longzai-intelligence-closed-loop-markdown`,Z],[`longzai-intelligence-cloud`,Z],[`longzai-intelligence-code`,Z],[`longzai-intelligence-code-agent`,Z],[`longzai-intelligence-code-reviewer`,Z],[`longzai-intelligence-codebase-research`,Z],[`longzai-intelligence-coding-expert`,Z],[`longzai-intelligence-collaboration`,Z],[`longzai-intelligence-collective`,Z],[`longzai-intelligence-commerce`,Z],[`longzai-intelligence-commit`,Z],[`longzai-intelligence-competition-registry`,Z],[`longzai-intelligence-composer`,Z],[`longzai-intelligence-concrete`,Z],[`longzai-intelligence-concrete-industry`,Z],[`longzai-intelligence-config-registry`,Z],[`longzai-intelligence-context`,Z],[`longzai-intelligence-contract`,Z],[`longzai-intelligence-contract-parity`,Z],[`longzai-intelligence-cookery`,Z],[`longzai-intelligence-country`,Z],[`longzai-intelligence-creativity`,Z],[`longzai-intelligence-cross-platform`,Z],[`longzai-intelligence-crossref`,Z],[`longzai-intelligence-crossref-markdown`,Z],[`longzai-intelligence-crypto`,Z],[`longzai-intelligence-customer-service`,Z],[`longzai-intelligence-cut`,Z],[`longzai-intelligence-dag`,Z],[`longzai-intelligence-dashboard`,Z],[`longzai-intelligence-data`,Z],[`longzai-intelligence-data-science`,Z],[`longzai-intelligence-database`,Z],[`longzai-intelligence-decenterlization`,Z],[`longzai-intelligence-decision`,Z],[`longzai-intelligence-deepseek`,Z],[`longzai-intelligence-deepseek-harness`,Z],[`longzai-intelligence-deepseek-harness-knowledge`,Z],[`longzai-intelligence-delta`,Z],[`longzai-intelligence-deploy`,Z],[`longzai-intelligence-design`,Z],[`longzai-intelligence-design-lab`,Z],[`longzai-intelligence-design-registry`,Z],[`longzai-intelligence-design-trending`,Z],[`longzai-intelligence-device`,Z],[`longzai-intelligence-dimensions`,Z],[`longzai-intelligence-discipline`,Z],[`longzai-intelligence-discovery`,Z],[`longzai-intelligence-disk-space`,Z],[`longzai-intelligence-disk-space-data`,Z],[`longzai-intelligence-disk-space-markdown`,Z],[`longzai-intelligence-distill`,Z],[`longzai-intelligence-docs`,Z],[`longzai-intelligence-docs-registry`,Z],[`longzai-intelligence-document`,Z],[`longzai-intelligence-douyin`,Z],[`longzai-intelligence-douyin-data`,Z],[`longzai-intelligence-douyin-markdown`,Z],[`longzai-intelligence-drone`,Z],[`longzai-intelligence-edge`,Z],[`longzai-intelligence-electrobun`,Z],[`longzai-intelligence-elysia`,Z],[`longzai-intelligence-embodied`,Z],[`longzai-intelligence-empowerment`,Z],[`longzai-intelligence-engineering`,Z],[`longzai-intelligence-env`,Z],[`longzai-intelligence-env-registry`,Z],[`longzai-intelligence-equilibrium`,Z],[`longzai-intelligence-eslint`,Z],[`longzai-intelligence-event`,Z],[`longzai-intelligence-event-tracking`,Z],[`longzai-intelligence-evolution`,Z],[`longzai-intelligence-excel`,Z],[`longzai-intelligence-exchange-rate`,Z],[`longzai-intelligence-execution`,Z],[`longzai-intelligence-experience`,Z],[`longzai-intelligence-expert`,Z],[`longzai-intelligence-expert-thinking`,Z],[`longzai-intelligence-fde`,Z],[`longzai-intelligence-feature-flags`,Z],[`longzai-intelligence-features`,Z],[`longzai-intelligence-federation`,Z],[`longzai-intelligence-feed`,Z],[`longzai-intelligence-feishu`,Z],[`longzai-intelligence-fields-medal-knowledge`,Z],[`longzai-intelligence-file-processing`,Z],[`longzai-intelligence-findings`,Z],[`longzai-intelligence-fitness`,Z],[`longzai-intelligence-font`,Z],[`longzai-intelligence-game`,Z],[`longzai-intelligence-game-studio`,Z],[`longzai-intelligence-gantt`,Z],[`longzai-intelligence-gateway`,Z],[`longzai-intelligence-geo`,Z],[`longzai-intelligence-gesture`,Z],[`longzai-intelligence-git`,Z],[`longzai-intelligence-git-commit`,Z],[`longzai-intelligence-git-insight`,Z],[`longzai-intelligence-git-reviewer`,Z],[`longzai-intelligence-git-swarm`,Z],[`longzai-intelligence-git-swarm-registry`,Z],[`longzai-intelligence-gitcode`,Z],[`longzai-intelligence-github-data`,Z],[`longzai-intelligence-github-markdown`,Z],[`longzai-intelligence-github-trending`,Z],[`longzai-intelligence-github-trending-data`,Z],[`longzai-intelligence-github-trending-markdown`,Z],[`longzai-intelligence-globals`,Z],[`longzai-intelligence-growth`,Z],[`longzai-intelligence-growth-registry`,Z],[`longzai-intelligence-handover`,Z],[`longzai-intelligence-hardware`,Z],[`longzai-intelligence-harness`,Z],[`longzai-intelligence-healthcare`,Z],[`longzai-intelligence-history`,Z],[`longzai-intelligence-horizon`,Z],[`longzai-intelligence-human-resource`,Z],[`longzai-intelligence-i18n`,Z],[`longzai-intelligence-idea`,Z],[`longzai-intelligence-identity`,Z],[`longzai-intelligence-ime`,Z],[`longzai-intelligence-impact-maker`,Z],[`longzai-intelligence-inbox`,Z],[`longzai-intelligence-inbox-registry`,Z],[`longzai-intelligence-input-data`,Z],[`longzai-intelligence-input-markdown`,Z],[`longzai-intelligence-insight`,Z],[`longzai-intelligence-intellectual-property`,Z],[`longzai-intelligence-intent`,Z],[`longzai-intelligence-intentionomics`,Z],[`longzai-intelligence-interview`,Z],[`longzai-intelligence-issues`,Z],[`longzai-intelligence-jev`,Z],[`longzai-intelligence-jev-knowledge`,Z],[`longzai-intelligence-jev-system`,Z],[`longzai-intelligence-journal-of-finance-data`,Z],[`longzai-intelligence-journal-of-financial-and-quantitative-analysis-data`,Z],[`longzai-intelligence-journal-of-financial-economics-data`,Z],[`longzai-intelligence-journals`,Z],[`longzai-intelligence-journals-2026-10`,Z],[`longzai-intelligence-journals-markdown`,Z],[`longzai-intelligence-journals-registry`,Z],[`longzai-intelligence-key-management`,Z],[`longzai-intelligence-knowledge`,Z],[`longzai-intelligence-knowledge-graph`,Z],[`longzai-intelligence-knowledge-markdown`,Z],[`longzai-intelligence-kol`,Z],[`longzai-intelligence-kol-data`,Z],[`longzai-intelligence-kol-markdown`,Z],[`longzai-intelligence-kol-registry`,Z],[`longzai-intelligence-language-model`,Z],[`longzai-intelligence-law`,Z],[`longzai-intelligence-law-data`,Z],[`longzai-intelligence-law-markdown`,Z],[`longzai-intelligence-lean`,Z],[`longzai-intelligence-ledger`,Z],[`longzai-intelligence-legal`,Z],[`longzai-intelligence-liquid-glass`,Z],[`longzai-intelligence-living-previewer`,Z],[`longzai-intelligence-loop`,Z],[`longzai-intelligence-machine-learning`,Z],[`longzai-intelligence-mail`,Z],[`longzai-intelligence-mandala`,Z],[`longzai-intelligence-map`,Z],[`longzai-intelligence-markdown`,Z],[`longzai-intelligence-marketing`,Z],[`longzai-intelligence-marketplace`,Z],[`longzai-intelligence-math`,Z],[`longzai-intelligence-mcn`,Z],[`longzai-intelligence-mcp`,Z],[`longzai-intelligence-mechanisms`,Z],[`longzai-intelligence-mechanisms-registry`,Z],[`longzai-intelligence-media`,Z],[`longzai-intelligence-meditation`,Z],[`longzai-intelligence-meeting-notes`,Z],[`longzai-intelligence-memory`,Z],[`longzai-intelligence-mentor`,Z],[`longzai-intelligence-messaging`,Z],[`longzai-intelligence-mindset`,Z],[`longzai-intelligence-minimax-knowldege`,Z],[`longzai-intelligence-mission-control`,Z],[`longzai-intelligence-model-fusion`,Z],[`longzai-intelligence-model-gateway`,Z],[`longzai-intelligence-moment`,Z],[`longzai-intelligence-montage`,Z],[`longzai-intelligence-movie`,Z],[`longzai-intelligence-music-video`,Z],[`longzai-intelligence-music-video-data`,Z],[`longzai-intelligence-narrative-analyzer`,Z],[`longzai-intelligence-nation`,Z],[`longzai-intelligence-nginx`,Z],[`longzai-intelligence-nginx-cli`,Z],[`longzai-intelligence-nobel-prize-knowledge`,Z],[`longzai-intelligence-notification`,Z],[`longzai-intelligence-npm`,Z],[`longzai-intelligence-npm-registry`,Z],[`longzai-intelligence-npm-registry-data`,Z],[`longzai-intelligence-observability`,Z],[`longzai-intelligence-office-industry`,Z],[`longzai-intelligence-okr-data`,Z],[`longzai-intelligence-okr-markdown`,Z],[`longzai-intelligence-older`,Z],[`longzai-intelligence-one`,Z],[`longzai-intelligence-one-digest`,Z],[`longzai-intelligence-one-digest-data`,Z],[`longzai-intelligence-one-digest-markdown`,Z],[`longzai-intelligence-one-digest-registry`,Z],[`longzai-intelligence-one-trae-works`,Z],[`longzai-intelligence-ontology`,Z],[`longzai-intelligence-open-pencil`,Z],[`longzai-intelligence-open-router`,Z],[`longzai-intelligence-open-router-data`,Z],[`longzai-intelligence-open-router-markdown`,Z],[`longzai-intelligence-opencode`,Z],[`longzai-intelligence-opencode-knowledge`,Z],[`longzai-intelligence-opportunity`,Z],[`longzai-intelligence-orchestry`,Z],[`longzai-intelligence-organization`,Z],[`longzai-intelligence-orm`,Z],[`longzai-intelligence-outfit`,Z],[`longzai-intelligence-outsourcing`,Z],[`longzai-intelligence-overseas`,Z],[`longzai-intelligence-pagination`,Z],[`longzai-intelligence-panel`,Z],[`longzai-intelligence-paper-reader`,Z],[`longzai-intelligence-parametric-industry`,Z],[`longzai-intelligence-partner`,Z],[`longzai-intelligence-pay`,Z],[`longzai-intelligence-payment`,Z],[`longzai-intelligence-permission`,Z],[`longzai-intelligence-personal-assistant`,Z],[`longzai-intelligence-philosophy`,Z],[`longzai-intelligence-philosophy-markdown`,Z],[`longzai-intelligence-philosophy-ontology`,Z],[`longzai-intelligence-pi-knowledge`,Z],[`longzai-intelligence-pii`,Z],[`longzai-intelligence-pipeline`,Z],[`longzai-intelligence-pitfalls`,Z],[`longzai-intelligence-plugin-registry`,Z],[`longzai-intelligence-pm2`,Z],[`longzai-intelligence-policy-research`,Z],[`longzai-intelligence-port`,Z],[`longzai-intelligence-portal`,Z],[`longzai-intelligence-previewer`,Z],[`longzai-intelligence-prezi`,Z],[`longzai-intelligence-prisma`,Z],[`longzai-intelligence-process-monitor`,Z],[`longzai-intelligence-product-requirement`,Z],[`longzai-intelligence-product-research`,Z],[`longzai-intelligence-programming-language`,Z],[`longzai-intelligence-project`,Z],[`longzai-intelligence-project-data`,Z],[`longzai-intelligence-project-markdown`,Z],[`longzai-intelligence-project-portfolio`,Z],[`longzai-intelligence-project-registry`,Z],[`longzai-intelligence-promotion`,Z],[`longzai-intelligence-proposals`,Z],[`longzai-intelligence-prospect`,Z],[`longzai-intelligence-psychoanalyst`,Z],[`longzai-intelligence-publication`,Z],[`longzai-intelligence-qcloud`,Z],[`longzai-intelligence-quant`,Z],[`longzai-intelligence-queue`,Z],[`longzai-intelligence-quick-notes`,Z],[`longzai-intelligence-react-devtools`,Z],[`longzai-intelligence-react-native`,Z],[`longzai-intelligence-reader`,Z],[`longzai-intelligence-reading-distinction`,Z],[`longzai-intelligence-reading-shanhaijing`,Z],[`longzai-intelligence-readme`,Z],[`longzai-intelligence-reasoning`,Z],[`longzai-intelligence-records`,Z],[`longzai-intelligence-recruitment`,Z],[`longzai-intelligence-reflections`,Z],[`longzai-intelligence-release`,Z],[`longzai-intelligence-release-markdown`,Z],[`longzai-intelligence-reliability`,Z],[`longzai-intelligence-remote-desktop`,Z],[`longzai-intelligence-remote-machine`,Z],[`longzai-intelligence-remote-machine-registry`,Z],[`longzai-intelligence-remotion`,Z],[`longzai-intelligence-report`,Z],[`longzai-intelligence-repository`,Z],[`longzai-intelligence-repository-handover`,Z],[`longzai-intelligence-research-report`,Z],[`longzai-intelligence-research-report-data`,Z],[`longzai-intelligence-research-report-markdown`,Z],[`longzai-intelligence-research-report-registry`,Z],[`longzai-intelligence-resilience`,Z],[`longzai-intelligence-reverse-engineering`,Z],[`longzai-intelligence-review-of-financial-studies-data`,Z],[`longzai-intelligence-reviewer`,Z],[`longzai-intelligence-risk`,Z],[`longzai-intelligence-roadmap`,Z],[`longzai-intelligence-roadmap-data`,Z],[`longzai-intelligence-roadmap-markdown`,Z],[`longzai-intelligence-router`,Z],[`longzai-intelligence-rss`,Z],[`longzai-intelligence-rss-markdown`,Z],[`longzai-intelligence-runtime`,Z],[`longzai-intelligence-runtime-registry`,Z],[`longzai-intelligence-sales`,Z],[`longzai-intelligence-scanner`,Z],[`longzai-intelligence-schedule-markdown`,Z],[`longzai-intelligence-schedule-registry`,Z],[`longzai-intelligence-scheduler`,Z],[`longzai-intelligence-schema`,Z],[`longzai-intelligence-scope`,Z],[`longzai-intelligence-scrape`,Z],[`longzai-intelligence-screenshots`,Z],[`longzai-intelligence-scripts-registry`,Z],[`longzai-intelligence-search`,Z],[`longzai-intelligence-security`,Z],[`longzai-intelligence-security-bounty-registry`,Z],[`longzai-intelligence-security-inventory`,Z],[`longzai-intelligence-serverless`,Z],[`longzai-intelligence-share`,Z],[`longzai-intelligence-sheet`,Z],[`longzai-intelligence-short-video`,Z],[`longzai-intelligence-skill`,Z],[`longzai-intelligence-slider`,Z],[`longzai-intelligence-smart-transition`,Z],[`longzai-intelligence-sms`,Z],[`longzai-intelligence-software-factory`,Z],[`longzai-intelligence-soul`,Z],[`longzai-intelligence-specs`,Z],[`longzai-intelligence-spline`,Z],[`longzai-intelligence-sports`,Z],[`longzai-intelligence-ssl`,Z],[`longzai-intelligence-startup`,Z],[`longzai-intelligence-state-machine`,Z],[`longzai-intelligence-storage`,Z],[`longzai-intelligence-strategy`,Z],[`longzai-intelligence-strategy-consulting`,Z],[`longzai-intelligence-strategy-consulting-data`,Z],[`longzai-intelligence-strategy-consulting-markdown`,Z],[`longzai-intelligence-subtitle`,Z],[`longzai-intelligence-supply-chain`,Z],[`longzai-intelligence-support`,Z],[`longzai-intelligence-survey`,Z],[`longzai-intelligence-system`,Z],[`longzai-intelligence-system-data`,Z],[`longzai-intelligence-system-markdown`,Z],[`longzai-intelligence-system-registry`,Z],[`longzai-intelligence-talk`,Z],[`longzai-intelligence-taro`,Z],[`longzai-intelligence-task`,Z],[`longzai-intelligence-task-data`,Z],[`longzai-intelligence-task-markdown`,Z],[`longzai-intelligence-telemetry`,Z],[`longzai-intelligence-templates`,Z],[`longzai-intelligence-tenant`,Z],[`longzai-intelligence-terminal`,Z],[`longzai-intelligence-testing`,Z],[`longzai-intelligence-thinking`,Z],[`longzai-intelligence-token-exchange`,Z],[`longzai-intelligence-token-finance`,Z],[`longzai-intelligence-token-handover`,Z],[`longzai-intelligence-toolchain`,Z],[`longzai-intelligence-topology`,Z],[`longzai-intelligence-tracking-bennett-brassard`,Z],[`longzai-intelligence-tracking-deng-yu`,Z],[`longzai-intelligence-tracking-hong-wang`,Z],[`longzai-intelligence-tracking-jacob-tsimerman`,Z],[`longzai-intelligence-tracking-john-clarke`,Z],[`longzai-intelligence-tracking-john-martinis`,Z],[`longzai-intelligence-tracking-john-pardon`,Z],[`longzai-intelligence-tracking-michel-devoret`,Z],[`longzai-intelligence-tracking-nation`,Z],[`longzai-intelligence-tracking-qbitai`,Z],[`longzai-intelligence-tracking-terrytao`,Z],[`longzai-intelligence-tracking-xiao-lin`,Z],[`longzai-intelligence-tracking-yu-bo`,Z],[`longzai-intelligence-trader`,Z],[`longzai-intelligence-trae`,Z],[`longzai-intelligence-training-data`,Z],[`longzai-intelligence-translator`,Z],[`longzai-intelligence-travel`,Z],[`longzai-intelligence-trending`,Z],[`longzai-intelligence-tsconfig`,Z],[`longzai-intelligence-tsdoc`,Z],[`longzai-intelligence-tsgo`,Z],[`longzai-intelligence-turbo`,Z],[`longzai-intelligence-turing-award-knowledge`,Z],[`longzai-intelligence-twitter`,Z],[`longzai-intelligence-twitter-data`,Z],[`longzai-intelligence-twitter-markdown`,Z],[`longzai-intelligence-typeorm`,Z],[`longzai-intelligence-usecase`,Z],[`longzai-intelligence-user-experience`,Z],[`longzai-intelligence-user-research`,Z],[`longzai-intelligence-userscript`,Z],[`longzai-intelligence-utils`,Z],[`longzai-intelligence-value-chain`,Z],[`longzai-intelligence-vector-search`,Z],[`longzai-intelligence-vendor`,Z],[`longzai-intelligence-venture-capital`,Z],[`longzai-intelligence-version`,Z],[`longzai-intelligence-video-generation`,Z],[`longzai-intelligence-video-player`,Z],[`longzai-intelligence-vite`,Z],[`longzai-intelligence-voice`,Z],[`longzai-intelligence-voice-recorder`,Z],[`longzai-intelligence-vscode-developer`,Z],[`longzai-intelligence-vuln`,Z],[`longzai-intelligence-vuln-data`,Z],[`longzai-intelligence-vuln-markdown`,Z],[`longzai-intelligence-vuln-registry`,Z],[`longzai-intelligence-warehouse`,Z],[`longzai-intelligence-wealth`,Z],[`longzai-intelligence-web3`,Z],[`longzai-intelligence-webhook`,Z],[`longzai-intelligence-websocket`,Z],[`longzai-intelligence-wechat`,Z],[`longzai-intelligence-wechat-miniprogram`,Z],[`longzai-intelligence-wechat-pay`,Z],[`longzai-intelligence-wifi`,Z],[`longzai-intelligence-wiki`,Z],[`longzai-intelligence-word`,Z],[`longzai-intelligence-work`,Z],[`longzai-intelligence-worker`,Z],[`longzai-intelligence-workflow`,Z],[`longzai-intelligence-workflow-data`,Z],[`longzai-intelligence-workflow-markdown`,Z],[`longzai-intelligence-workflow-registry`,Z],[`longzai-intelligence-workspace`,Z],[`longzai-intelligence-writer`,Z],[`longzai-intelligence-xiaohongshu`,Z],[`longzai-intelligence-xiaohongshu-data`,Z],[`longzai-intelligence-xiaohongshu-markdown`,Z],[`longzai-intelligence-youtube`,Z],[`longzai-intelligence-youtube-data`,Z],[`longzai-intelligence-youtube-markdown`,Z],[`longzai-intelligence-zcode`,Z],[`longzai-intelligence-zcode-cleaner`,Z],[`longzai-intelligence-zcode-commit`,Z],[`longzai-intelligence-zcode-knowledge`,Z],[`longzai-intelligence-zcode-remote`,Z],[`longzai-intelligence-zcode-security`,Z],[`longzai-intelligence-zed-delta-knowledge`,Z],[`longzai-intelligence-zhihu`,Z],[`longzai-intelligence-zhihu-data`,Z],[`longzai-intelligence-zhihu-markdown`,Z]]),Vf=/* @__PURE__ */ `longzai-intelligence-aliyun-private.longzai-intelligence-api-plugin-private.longzai-intelligence-api-private.longzai-intelligence-app-gallery-private.longzai-intelligence-app-store-connect-private.longzai-intelligence-auth-private.longzai-intelligence-bilibili-markdown-private.longzai-intelligence-bilibili-private.longzai-intelligence-codebase-research-private.longzai-intelligence-douyin-markdown-private.longzai-intelligence-electron-private.longzai-intelligence-gantt-private.longzai-intelligence-gateway-private.longzai-intelligence-git-reviewer-private.longzai-intelligence-idea-private.longzai-intelligence-intentionomics-private.longzai-intelligence-interoperation-private.longzai-intelligence-knowledge-private.longzai-intelligence-language-model-private.longzai-intelligence-law-markdown-private.longzai-intelligence-law-private.longzai-intelligence-loop-private.longzai-intelligence-narrative-analyzer-private.longzai-intelligence-okr-private.longzai-intelligence-paper-reader-private.longzai-intelligence-plugin-registry-private.longzai-intelligence-policy-research-private.longzai-intelligence-previewer-private.longzai-intelligence-product-research-private.longzai-intelligence-qcloud-private.longzai-intelligence-release-workflow-private.longzai-intelligence-research-report-markdown-private.longzai-intelligence-research-report-private.longzai-intelligence-roadmap-private.longzai-intelligence-runtime-registry-private.longzai-intelligence-scrape-private.longzai-intelligence-search-private.longzai-intelligence-session-continuity-private.longzai-intelligence-session-roaming-private.longzai-intelligence-strategy-consulting-markdown-private.longzai-intelligence-strategy-consulting-private.longzai-intelligence-terminal-private.longzai-intelligence-twitter-markdown-private.longzai-intelligence-twitter-private.longzai-intelligence-user-research-private.longzai-intelligence-vector-search-private.longzai-intelligence-xiaohongshu-markdown-private.longzai-intelligence-youtube-markdown-private.longzai-intelligence-youtube-private.longzai-intelligence-zhihu-markdown-private.longzai-intelligence-zhihu-private`.split(`.`),Hf=`LZI_GLOBALS_ROOT`,Uf=`lzi-bun.config.ts`,Wf=/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/,Gf=[`dependencies`,`devDependencies`,`optionalDependencies`,`peerDependencies`];function Kf(e){return e.replace(/^@+/,``)}function qf(e){let t=e.indexOf(`/`);if(!(!e.startsWith(`@`)||t<=1))return e.slice(1,t)}function Jf(e){return e.length>8&&e.endsWith(`-private`)&&Wf.test(e)}function Yf(e){let t=/* @__PURE__ */ new Set;for(let n of e)typeof n.name==`string`&&n.name!==``&&t.add(n.name);return t}function Xf(e,t=Yf(e)){let n=/* @__PURE__ */ new Map;for(let r of e)for(let e of Gf){let i=r[e]??{};for(let[e,a]of Object.entries(i)){if(t.has(e)||a.startsWith(`workspace:`))continue;let i=qf(e);if(i===void 0||!Jf(i))continue;let o=n.get(i)??/* @__PURE__ */ new Set;o.add(r.relPath),n.set(i,o)}}return[...n.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({scope:e,consumers:[...t].sort((e,t)=>e.localeCompare(t))}))}function Zf(e,t){let n=new Set((t??[]).map(e=>Kf(e))),r=new Set(e.map(e=>e.scope));return{missing:e.filter(e=>!n.has(e.scope)),unconsumed:[...n].filter(e=>!r.has(e)).sort((e,t)=>e.localeCompare(t))}}var Qf=class extends Error{details;constructor(e,t=`install.extraScopes`){super(`${t} 校验失败:\n${e.map(e=>`- ${e}`).join(`
|
|
207
|
+
`)}`),this.name=`InstallScopesError`,this.details=e}};function $f(e){if(typeof e!=`string`)return!1;try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function ep(e,t,n,r){let i=e instanceof Map?Object.fromEntries(e):{...e},a=[],o={};for(let[n,i]of Object.entries(t??{})){let t=n.replace(/^@+/,``);t.length===0||!Wf.test(t)?a.push(`\`${n}\` 不是合法 scope 名(仅允许字母/数字开头,后接字母/数字与 . _ -,@ 前缀可省略)`):$f(i)?o[t]!==void 0&&o[t]!==i?a.push(`\`${t}\` 在 extraScopes 内重复声明且安装源不一致`):(e instanceof Map?e.has(t):Object.hasOwn(e,t))?a.push(`\`${t}\` 与预定义 scope 冲突(预定义不可覆盖,如需调整请在 ${r} 维护)`):o[t]=i:a.push(`\`${n}\` 的安装源 \`${String(i)}\` 不是合法的 http/https URL`)}let s=/* @__PURE__ */ new Set;for(let e of n??[]){let t=e.replace(/^@+/,``);t.length===0||!Wf.test(t)?a.push(`\`${e}\` 不是合法 scope 名(仅允许字母/数字开头,后接字母/数字与 . _ -,@ 前缀可省略)`):o[t]===void 0?s.add(t):a.push(`\`${t}\` 同时出现在 extraScopes 与 privateScopes(追加安装源与排除轨声明矛盾)`)}if(a.length>0)throw new Qf(a);for(let[e,t]of Object.entries(o))i[e]=t;for(let e of s)delete i[e];return i}function tp(e,t,n,r){let i=ep(e,t,n,`globals 仓 lzi-bun-install.config.ts`),a=r?.replace(/^@+/,``),o=new Set((n??[]).map(e=>e.replace(/^@+/,``)));return a!==void 0&&!a.endsWith(`-private`)&&Wf.test(a)&&!Object.hasOwn(i,a)&&!o.has(a)&&(i[a]=`https://registry.npmjs.org/`),i}function np(e){let t=[];if(typeof e!=`object`||!e)throw new Qf([`default export 必须是对象({ scopes: { ... } })`],`globals 预设 lzi-bun-install.config.ts`);let n=typeof e==`object`&&e&&`scopes`in e?e.scopes:void 0;if(typeof n!=`object`||!n||Array.isArray(n))throw new Qf([`scopes 必须是 scope → registry 的对象映射`],`globals 预设 lzi-bun-install.config.ts`);let r={};for(let[e,i]of Object.entries(n))Wf.test(e)?typeof i!=`string`||!$f(i)?t.push(`\`${e}\` 的安装源 \`${String(i)}\` 不是合法的 http/https URL`):r[e]=i:t.push(`\`${e}\` 不是合法 scope 名(仅允许字母/数字开头,后接字母/数字与 . _ -,不含 @ 前缀)`);if(t.length>0)throw new Qf(t,`globals 预设 lzi-bun-install.config.ts`);if(Object.keys(r).length===0)throw new Qf([`scopes 清单为空(真源不允许空清单)`],`globals 预设 lzi-bun-install.config.ts`);return r}const rp=/* @__PURE__ */ new Set([`web`,`desktop`,`desktop-host`,`mobile`,`miniprogram`,`ui`]);function ip(e){let t=process.env.LZI_TEST_MEMORY_BUDGET_BYTES;if(t!==void 0){let e=Number.parseInt(t,10);if(Number.isInteger(e)&&e>0)return e}return e!==void 0&&rp.has(e)?1610612736:1073741824}const ap=e=>{let t=e;for(;;){if(r(d(t,`.git`)))return t;let e=d(t,`..`);if(e===t)return;t=e}},op=(e,t)=>{if(t!==void 0&&t.length>0)return{scopeName:t};let n=ap(e);return n===void 0?{skipped:!0}:{scopeName:l(n)}},sp=e=>({scopeName:e,registered:Bf.has(e)}),cp=async(e={})=>{let t=op(process.cwd(),e.scopeName);if(`skipped`in t){Y(`当前目录不在任何 git 项目仓内,跳过登记检查`);return}let n=sp(t.scopeName);n.registered?Y(`当前项目 ${n.scopeName} 已登记于 bun 侧安装源注册表`):(X(`当前项目 ${n.scopeName} 未登记于 bun 侧安装源注册表`),X(`修复指引:补登 bun 仓 packages/config 的 scopes.constants.ts 与 globals 仓 lzi-bun-install.config.ts 双写条目,双写后各仓执行 bun-config:generate 生效`),process.exit(1))},lp=/* @__PURE__ */ new Set([`build`,`coverage`,`dist`,`node_modules`,`out`]),up=/* @__PURE__ */ new Set([`ENAMETOOLONG`,`EACCES`,`EPERM`,`ENOENT`]),dp=Ws([zs(cs()),Hs({packages:zs(cs())})]),fp=e=>typeof e!=`object`||!e||!(`code`in e)?!1:typeof e.code==`string`,pp=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charAt(n);r===`*`?e[n+1]===`*`?(t+=`.*`,n+=1):t+=`[^/]+`:t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}return RegExp(`^${t}$`)},mp=e=>{let t={positives:[],negatives:[]};for(let n of e)n.startsWith(`!`)?t.negatives.push(pp(n.slice(1))):t.positives.push(pp(n));return t},hp=e=>{let t=dp.safeParse(e);if(t.success)return Array.isArray(t.data)?t.data:t.data.packages},gp=(e,t)=>e.positives.some(e=>e.test(t))&&!e.negatives.some(e=>e.test(t)),_p=(e,t)=>e.negatives.some(e=>e.test(t)),vp=[`bun.lock`,`bun.lockb`],yp=Hs({name:cs().optional(),workspaces:dp.optional()}),bp=Hs({name:cs().optional()}),xp=async e=>{try{let t=bp.safeParse(JSON.parse(await S(e,`utf-8`)));return t.success?t.data.name??null:null}catch{return null}},Sp=async e=>{let t={packageDirs:[],lockDirs:[],rootHasLock:!1,scanSkips:[]},n=[{dir:e,depth:0}];for(;n.length>0;){let r=n.shift();if(r===void 0)break;let i;try{i=await C(r.dir,{withFileTypes:!0})}catch(n){if(!fp(n)||!up.has(n.code))throw n;let i=r.depth===0?`.`:r.dir.slice(e.length+1);t.scanSkips.push({path:i,code:n.code});continue}let a=!1,o=!1;for(let e of i)e.isFile()&&vp.includes(e.name)&&(a=!0),e.isFile()&&e.name===`package.json`&&(o=!0);r.depth===0?t.rootHasLock=a:(a&&t.lockDirs.push(r.dir.slice(e.length+1)),o&&t.packageDirs.push({relPath:r.dir.slice(e.length+1),name:await xp(d(r.dir,`package.json`))}));for(let e of i)e.isDirectory()&&(e.name.startsWith(`.`)||lp.has(e.name)||r.depth>=5||n.push({dir:d(r.dir,e.name),depth:r.depth+1}))}return t},Cp=async e=>{let t;try{t=JSON.parse(await S(d(e,`package.json`),`utf-8`))}catch{throw Error(`根 package.json 不存在或不可解析,请在仓库根执行本命令`)}let n=yp.safeParse(t);if(!n.success)throw Error(`根 package.json 不存在或不可解析,请在仓库根执行本命令`);let r=n.data,i=r.name??null,a=i===null?null:i.includes(`/`)?i.slice(0,i.lastIndexOf(`/`)):`@${i}`,o=hp(r.workspaces);if(o===void 0)return{rootName:i,scope:a,hasWorkspaces:!1,memberCount:0,violations:[],notices:[],scanSkips:[],ok:!0};let s=mp(o),c=await Sp(e),l=[],u=[],f=new Map(c.packageDirs.map(e=>[e.relPath,e.name])),p=c.packageDirs.map(e=>e.relPath).filter(e=>gp(s,e));c.rootHasLock||l.push({kind:`missing-root-lock`,path:``,message:`仓库根缺少 bun.lock,声明了 workspaces 的 monorepo 锁文件应只存在于根`});let m=/* @__PURE__ */ new Set;for(let e of c.lockDirs){if(gp(s,e)){m.add(e),l.push({kind:`stray-member-lock`,path:e,message:`${e} 是 workspaces 成员却持有自己的 bun.lock,属游离锁文件`});continue}let t=f.get(e)??null;t===null?u.push({kind:`orphan-lock`,path:e,message:`${e} 存在锁文件但没有 package.json,请确认目录用途`}):_p(s,e)?u.push({kind:`excluded-standalone`,path:e,message:`${e} 为负向 glob 显式排除的独立安装根,锁文件属合法形态`}):a!==null&&t.startsWith(`${a}/`)?(m.add(e),l.push({kind:`uncovered-same-scope`,path:e,message:`${e}(${t})与根包同作用域却未被 workspaces 覆盖,已按独立安装根长出游离锁`})):u.push({kind:`foreign-scope-lock`,path:e,message:`${e}(${t})不属于根作用域且持有独立锁文件,若为有意保留请以负向 glob 显式排除`})}for(let e of c.packageDirs)p.includes(e.relPath)||_p(s,e.relPath)||m.has(e.relPath)||a!==null&&e.name!==null&&e.name.startsWith(`${a}/`)&&l.push({kind:`uncovered-same-scope`,path:e.relPath,message:`${e.relPath}(${e.name})与根包同作用域却未被 workspaces 覆盖,请补 glob 或以负向 glob 显式排除`});return{rootName:i,scope:a,hasWorkspaces:!0,memberCount:p.length,violations:l,notices:u,scanSkips:c.scanSkips,ok:l.length===0}},wp=async()=>{let e=process.cwd();Y(`正在扫描 ${e} 下的工作区布局...`);try{let t=await Cp(e);if(!t.hasWorkspaces){Y(`未声明 workspaces,非 bun workspaces monorepo,跳过锁文件校验`);return}if(t.scanSkips.length>0){X(`\n${t.scanSkips.length} 项目录读取降级告警,结论基于其余可读目录:`);for(let e of t.scanSkips)X(` ${e.path} 读取失败已跳过该子树,错误码 ${e.code}`)}if(Y(`根包 ${t.rootName??`未命名`},workspaces 成员 ${t.memberCount} 个`),t.notices.length>0){Y(`\n${t.notices.length} 项提示:`);for(let e of t.notices)Y(` ${e.message}`)}if(!t.ok){Y(`\n发现 ${t.violations.length} 项违规:`);for(let e of t.violations)Y(` ${e.message}`);Y(`
|
|
208
|
+
修复指引: 删除成员目录的游离 bun.lock 后在仓库根执行 bun install;覆盖缺口补 workspaces glob,刻意独立的子项目以负向 glob 显式排除`),process.exit(1)}Y(`单一锁文件不变量成立,无游离锁文件与覆盖缺口`)}catch(e){X(`错误: ${e instanceof Error?e.message:String(e)}`),process.exit(1)}},Tp=/* @__PURE__ */ new Set([`.bun`]),Ep=/* @__PURE__ */ new Set([`ENOENT`,`ENOTDIR`]),Dp=Hs({workspaces:dp.optional()}),Op=async e=>{let t=[],n=[],r=[{dir:e,depth:0}];for(;r.length>0;){let i=r.shift();if(i===void 0)break;let a;try{a=await C(i.dir,{withFileTypes:!0})}catch(t){if(!fp(t)||!up.has(t.code))throw t;n.push({path:i.dir.slice(e.length+1),code:t.code});continue}a.some(e=>e.isFile()&&e.name===`package.json`)&&t.push(i.dir.slice(e.length+1));for(let e of a)e.isDirectory()&&(e.name.startsWith(`.`)||lp.has(e.name)||i.depth>=5||r.push({dir:d(i.dir,e.name),depth:i.depth+1}))}return{packageDirPaths:t,scanSkips:n}},kp=async(e,t)=>{let n=[],r=[],i=[e];for(;i.length>0;){let e=i.shift();if(e===void 0)break;let a;try{a=await C(e,{withFileTypes:!0})}catch(n){if(!fp(n)||!up.has(n.code))throw n;r.push({path:e.slice(t.length+1),code:n.code});continue}for(let o of a){let a=d(e,o.name);if(!Tp.has(o.name)){if(o.isSymbolicLink())try{await T(a)}catch(e){if(fp(e)&&Ep.has(e.code)){n.push({path:a.slice(t.length+1),target:await w(a)});continue}r.push({path:a.slice(t.length+1),code:fp(e)?e.code:`UNKNOWN`})}else o.isDirectory()&&i.push(a)}}}return{dangling:n,scanSkips:r}},Ap=async e=>{let t;try{t=JSON.parse(await S(d(e,`package.json`),`utf-8`))}catch{throw Error(`根 package.json 不存在或不可解析,请在仓库根执行本命令`)}let n=Dp.safeParse(t);if(!n.success)throw Error(`根 package.json 不存在或不可解析,请在仓库根执行本命令`);let r=hp(n.data.workspaces);if(r===void 0)return{hasWorkspaces:!1,memberCount:0,scannedNodeModulesRoots:0,dangling:[],scanSkips:[],ok:!0};let i=mp(r),a=await Op(e),o=a.packageDirPaths.filter(e=>gp(i,e)),s=[],c=[...a.scanSkips],l=0;for(let t of[``,...o]){let n=d(e,t,`node_modules`);try{if(!(await T(n)).isDirectory())continue}catch{continue}l+=1;let r=await kp(n,e);s.push(...r.dangling),c.push(...r.scanSkips)}return{hasWorkspaces:!0,memberCount:o.length,scannedNodeModulesRoots:l,dangling:s,scanSkips:c,ok:s.length===0}},jp=async(e,t)=>{let n={removed:[],kept:[]};for(let r of t){let t=d(e,r.path);try{if(!(await x(t)).isSymbolicLink()){n.kept.push(r.path);continue}await T(t),n.kept.push(r.path)}catch(e){if(!fp(e)||!Ep.has(e.code)){n.kept.push(r.path);continue}await E(t),n.removed.push(r.path)}}return n},Mp=async()=>{let e=process.cwd();Y(`正在扫描 ${e} 下的安装布局...`);try{let t=await Ap(e);if(!t.hasWorkspaces){Y(`未声明 workspaces,非 bun workspaces monorepo,跳过悬挂链接检测`);return}if(t.scanSkips.length>0){X(`\n${t.scanSkips.length} 项目录读取降级告警,结论基于其余可读目录:`);for(let e of t.scanSkips)X(` ${e.path} 读取失败已跳过该子树,错误码 ${e.code}`)}if(Y(`workspaces 成员 ${t.memberCount} 个,扫描 ${t.scannedNodeModulesRoots} 个 node_modules 树`),t.dangling.length>0){Y(`\n发现 ${t.dangling.length} 根悬挂符号链接:`);for(let e of t.dangling)Y(` ${e.path} 指向已不存在的 ${e.target}`);Y(`
|
|
209
|
+
修复指引:执行 bunx @longzai-intelligence-bun/cli node-links fix 回收悬挂死链后重试,有效链接零触碰`),process.exit(Math.min(t.dangling.length,255))}Y(`安装布局一致,未发现悬挂符号链接`)}catch(e){X(`错误: ${e instanceof Error?e.message:String(e)}`),process.exit(1)}},Np=async()=>{let e=process.cwd();Y(`正在扫描 ${e} 下的悬挂符号链接...`);try{let t=await Ap(e);if(!t.hasWorkspaces){Y(`未声明 workspaces,非 bun workspaces monorepo,跳过悬挂链接回收`);return}if(t.dangling.length===0){Y(`未发现悬挂符号链接,无需回收,共巡查 ${t.scannedNodeModulesRoots} 个 node_modules 树`);return}Y(`发现 ${t.dangling.length} 根悬挂符号链接,开始回收:`);for(let e of t.dangling)Y(` ${e.path} 指向已不存在的 ${e.target}`);let n=await jp(e,t.dangling);for(let e of n.removed)Y(`已回收 ${e}`);for(let e of n.kept)X(`未能回收 ${e},链接状态已变化,请人工确认`);let r=await Ap(e);Y(`回收完成,清除 ${n.removed.length} 根,剩余悬挂 ${r.dangling.length} 根,有效链接零触碰`),(r.dangling.length>0||n.kept.length>0)&&process.exit(1)}catch(e){X(`错误: ${e instanceof Error?e.message:String(e)}`),process.exit(1)}};var Pp=class extends Error{configPath;constructor(e,t,n){super(e,n),this.name=`SharedConfigError`,this.configPath=t}},Fp=class extends Pp{searchFrom;constructor(e){super(`未在 ${e} 找到配置文件`,e),this.name=`SharedConfigNotFoundError`,this.searchFrom=e}},Ip=class extends Pp{issues;constructor(e,t){super(`配置校验失败,共 ${e.length} 个问题`,t),this.name=`SharedConfigValidationError`,this.issues=e}};function Lp(e,t,n,r){let i=e;if(r.schema!==void 0){let e=r.schema.safeParse(i);if(!e.success)throw new Ip(e.error.issues,t);i=e.data}return r.transform!==void 0&&(i=r.transform(i,n)),i}function Rp(e){return e instanceof Error&&e.message.length>0?`,底层原因为 ${e.name}: ${e.message}`:``}var zp=class extends Pp{cause;constructor(e,t){super(`加载配置文件 ${e} 失败${Rp(t)}`,e,{cause:t}),this.name=`SharedConfigLoadError`,this.cause=t}};function Bp(e){return typeof e==`object`&&!!e}function Vp(e){return typeof e==`object`&&!!e}async function Hp(e,t={}){let n=p(e);if(!r(n))throw new Fp(n);let i;try{let e=await import(n);i=Bp(e)?e.default:void 0}catch(e){throw new zp(n,e)}if(i===void 0)throw new zp(n,TypeError(`配置文件缺少默认导出`));if(!Vp(i))throw new zp(n,TypeError(`配置文件的默认导出必须是对象`));return{config:Lp(i,n,u(n),t),configFilePath:n}}function Up(e=process.cwd()){let t=p(e);for(;;){let e=d(t,`lzi.config.ts`);if(r(e))return e;let n=u(t);if(n===t)return null;t=n}}async function Wp(e={}){let t=e.cwd??process.cwd(),n=Up(t);if(n===null)throw new Fp(t);let r=p(n,`..`),{config:i}=await Hp(n);return{config:i,configPath:r,configFilePath:n}}function Gp(e){return typeof e==`object`&&!!e}async function Kp(e){let t;try{t=await C(e)}catch(t){throw new zp(e,t)}let n=t.filter(e=>e.endsWith(`.config.ts`)).sort();if(n.length===0)throw new zp(e,Error(`配置目录内没有 .config.ts 分片文件`));let r={};for(let t of n){let n=await Hp(d(e,t));r={...r,...n.config}}let i=r;if(!Gp(i))throw new zp(e,Error(`配置目录合并结果不是对象形态`));return i}function qp(e,t=process.cwd()){let n=Array.isArray(e)?e:[e],r=p(t);for(;;){for(let e of n){let t=d(r,e);if(Jp(t))return t}let e=u(r);if(e===r)return null;r=e}}function Jp(e){try{return s(e).isDirectory()}catch{return!1}}function Yp(e,t=process.cwd()){let n=Array.isArray(e)?e:[e],i=p(t);for(;;){for(let e of n){let t=d(i,e);if(r(t))return t}let e=u(i);if(e===i)return null;i=e}}function Xp(e){return typeof e==`object`&&!!e}function Zp(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}async function Qp(e={}){let t=e.cwd??p(process.cwd());if(e.explicitPath!==void 0){let t=await Hp(e.explicitPath,{schema:e.schema,transform:e.transform});return{success:!0,config:t.config,source:`explicit`,configFilePath:t.configFilePath}}if(e.standaloneFile!==void 0){let n=Yp(e.standaloneFile,t);if(n!==null){let{config:t}=await Hp(n);return{success:!0,config:Lp(t,n,u(n),e),source:`standalone`,configFilePath:n}}}if(e.standaloneDir!==void 0){let n=qp(e.standaloneDir,t);if(n!==null)return{success:!0,config:Lp(await Kp(n),n,n,e),source:`standalone`,configFilePath:n}}if(e.unifiedField!==void 0){let n,r;try{let{config:i,configFilePath:a}=await Wp({cwd:t}),o=i;n=Zp(o)?o[e.unifiedField]:void 0,r=a}catch(e){if(!(e instanceof Fp))throw e}if(r!==void 0&&n!==void 0&&Xp(n))return{success:!0,config:Lp(n,r,u(r),e),source:`unified`,configFilePath:r}}return{success:!1,configFilePath:null}}const $p=[`packages/*`,`apps/*`];function em(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function tm(e){if(Array.isArray(e))return e.every(e=>typeof e==`string`)?e:void 0;if(em(e)){let t=e.packages;if(Array.isArray(t)&&t.every(e=>typeof e==`string`))return{packages:t}}}function nm(e){let t=p(e,`package.json`);if(!r(t))throw new Fp(e);let n;try{let e=JSON.parse(a(t,`utf8`));n=em(e)?tm(e.workspaces):void 0}catch(e){throw new zp(t,e)}let i=Array.isArray(n)?n:n?.packages;return i&&i.length>0?i:$p}async function rm(e,t={}){let n=nm(e),i=/* @__PURE__ */ new Set,o=[];for(let s of n){let n=new Bun.Glob(`${s}/package.json`);for await(let s of n.scan({cwd:e,absolute:!0,onlyFiles:!0})){let e=p(s,`..`);if(i.has(e))continue;let n;try{let e=JSON.parse(a(s,`utf8`));n=typeof e==`object`&&e?e:void 0}catch{continue}n!==void 0&&typeof n.name==`string`&&n.name.length!==0&&(t.configFileName!==void 0&&!r(p(e,t.configFileName))||(i.add(e),o.push({name:n.name,dir:e})))}}return o}var im=class extends Error{bunfigPath;reason;constructor(e,t){super(`${e} 校验失败:${t};请运行 bun run bun-config:generate 后重试`),this.name=`BunfigDriftError`,this.bunfigPath=e,this.reason=t}},am=class extends Error{bunfigPath;constructor(e){super(`${e} 已存在且非 lzi-bun 生成(缺少 @lzi-bun 自动生成,请勿编辑 标记),如需 lzi-bun 接管,请删除该文件或手动合并后重试`),this.name=`BunfigProtectedError`,this.bunfigPath=e}};const om=e=>typeof e==`object`&&!!e&&!Array.isArray(e),sm=e=>om(e)&&typeof e.type==`string`;function cm(e){return sm(e)?e:void 0}function lm(e){if(Array.isArray(e))return e.every(sm)?e:void 0}function Q(e,t){return cm(e[t])}function um(e){if(e!==void 0&&e.type===`Identifier`)return typeof e.name==`string`?e.name:void 0}function dm(e){return e.type.endsWith(`Literal`)?e.type!==`TemplateLiteral`||e.expressions!==void 0&&lm(e.expressions)?.length===0:!1}function fm(e){if(dm(e)||pm(e))return!0;if(e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`){let t=Q(e,`expression`);return t!==void 0&&fm(t)}if(e.type===`UnaryExpression`){let t=Q(e,`argument`);return t!==void 0&&dm(t)}if(e.type===`BinaryExpression`){let t=Q(e,`left`),n=Q(e,`right`);return t!==void 0&&n!==void 0&&dm(t)&&dm(n)}return!1}function pm(e){if(e.type===`ObjectExpression`){let t=lm(e.properties);return t!==void 0&&t.every(e=>{if(e.type===`Property`){if(e.computed===!0)return!1;let t=Q(e,`value`);return t!==void 0&&fm(t)}if(e.type===`SpreadElement`){let t=Q(e,`argument`);return t!==void 0&&pm(t)}return!1})}if(e.type===`ArrayExpression`){let t=e.elements;return Array.isArray(t)?t.every(e=>{if(e==null)return!0;let t=cm(e);return t!==void 0&&fm(t)}):!1}return!1}function mm(e){let t=um(Q(e,`superClass`));if(t===void 0||t!==`Error`&&!t.endsWith(`Error`))return!1;let n=Q(e,`body`);if(n===void 0)return!1;let r=lm(n.body);return r!==void 0&&r.every(e=>{if(e.type===`MethodDefinition`)return e.kind===`constructor`;if(e.type===`PropertyDefinition`){let t=Q(e,`value`);return t===void 0||fm(t)}return!1})}function hm(e){let t=Q(e,`body`);if(t===void 0)return!1;if(t.type!==`BlockStatement`)return!0;let n=lm(t.body);if(n===void 0||n.length!==1)return!1;let r=n[0];return r!==void 0&&r.type===`ReturnStatement`}function gm(e){return e?`tsx`:`ts`}const _m=e=>typeof e==`object`&&!!e&&!Array.isArray(e),vm=e=>{if(!_m(e))return;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t},ym=(e,t)=>_m(e)?{relPath:t,name:typeof e.name==`string`&&e.name!==``?e.name:void 0,dependencies:vm(e.dependencies),devDependencies:vm(e.devDependencies),optionalDependencies:vm(e.optionalDependencies),peerDependencies:vm(e.peerDependencies)}:{relPath:t},bm=e=>{if(r(e))try{return JSON.parse(a(e,`utf8`))}catch{return}};function xm(e){let t=bm(d(e,`package.json`));if(!_m(t))return[];let n=[ym(t,``)],r=hp(t.workspaces);if(r===void 0)return n;let i=mp(r),a=[{dir:e,depth:0}];for(;a.length>0;){let t=a.shift();if(t===void 0)continue;let r;try{r=o(t.dir,{withFileTypes:!0})}catch{continue}for(let e of r)e.isDirectory()&&(e.name.startsWith(`.`)||lp.has(e.name)||t.depth>=5||a.push({dir:d(t.dir,e.name),depth:t.depth+1}));if(t.depth===0)continue;let s=t.dir.slice(e.length+1);if(!gp(i,s))continue;let c=bm(d(t.dir,`package.json`));c!==void 0&&n.push(ym(c,s))}return n.sort((e,t)=>e.relPath.localeCompare(t.relPath))}const Sm=e=>e===``?`仓根 package.json`:`${e}/package.json`;function Cm(e){return e.map(e=>`@${e.scope} 由 ${e.consumers.map(Sm).join(`、`)} 消费`).join(`,`)}const wm=e=>[`/**`,` * 私有专用 scope 排除轨清单,由 lzi-bun 按工作区依赖面自动补齐`,` */`,`privateScopes: [`,...e.map(e=>` '@${e}',`),`],`],Tm=e=>[`/**`,` * 仓根 install 声明`,` */`,`install: {`,...wm(e).map(e=>` ${e}`),`},`];function Em(e){return Tm(e).join(`
|
|
210
|
+
`)}const $=e=>({ok:!1,reason:e}),Dm=(e,t)=>{let n=e[t];return typeof n==`number`?n:void 0},Om=e=>{if(e.computed===!0)return;let t=Q(e,`key`);if(t!==void 0){if(t.type===`Identifier`)return um(t);if(t.type===`Literal`&&typeof t.value==`string`)return t.value}},km=(e,t)=>{let n=e.lastIndexOf(`
|
|
211
|
+
`,Math.max(0,t-1))+1,r=/^[ \t]*/.exec(e.slice(n,t));return r===null?``:r[0]},Am=(e,t,n)=>/^\s*,/.exec(e.slice(t,n)),jm=(e,t)=>{let n=Dm(t,`start`),r=Dm(t,`end`);if(n!==void 0&&r!==void 0)return e.slice(n,r)},Mm=(e,t,n,r)=>{let i=Am(e,t,n),a=i===null?t:t+i[0].length,o=`${i===null?`,`:``}\n${r.join(`
|
|
212
|
+
`)}`;return e.slice(0,a)+o+e.slice(a)},Nm=(e,t,n,r)=>{let i=Dm(t,`start`),a=Dm(t,`end`);if(i===void 0||a===void 0)return $(`对象节点缺少字符偏移`);let o=e.slice(i,a),s=km(e,i),c=`${s} `,l=r.map(e=>`${c}${e}`);if(n.length===0){if(!/^\{\s*\}$/.test(o))return $(`空对象字面量含非空白内容`);let t=[`{`,...l,`${s}}`].join(`
|
|
213
|
+
`);return{ok:!0,content:e.slice(0,i)+t+e.slice(a)}}let u=n[n.length-1];if(u===void 0)return $(`属性清单为空`);let d=Dm(u,`end`);if(d===void 0)return $(`末属性节点缺少字符偏移`);if(o.includes(`
|
|
214
|
+
`))return{ok:!0,content:Mm(e,d,a,l)};if(o.includes(`/*`)||o.includes(`//`))return $(`单行对象字面量含注释,无法安全重建`);let f=[];for(let t of n){let n=jm(e,t);if(n===void 0)return $(`属性节点缺少字符偏移`);f.push(n)}let p=[`{`,...f.map(e=>`${c}${e},`),...l,`${s}}`].join(`
|
|
215
|
+
`);return{ok:!0,content:e.slice(0,i)+p+e.slice(a)}},Pm=(e,t,n)=>{let r=Dm(t,`start`),i=Dm(t,`end`);if(r===void 0||i===void 0)return $(`数组节点缺少字符偏移`);let a=e.slice(r,i),o=t.elements,s=lm(o)??[];if(Array.isArray(o)&&o.length!==s.length)return $(`数组含稀疏空洞或非节点元素`);if(s.some(e=>e.type!==`Literal`||typeof e.value!=`string`))return $(`privateScopes 含非字符串字面量元素`);let c=n.map(e=>`'@${e}',`),l=s[s.length-1];if(l!==void 0&&a.includes(`
|
|
216
|
+
`)){let t=Dm(l,`start`),n=Dm(l,`end`);if(t===void 0||n===void 0)return $(`末元素节点缺少字符偏移`);let r=km(e,t);return{ok:!0,content:Mm(e,n,i,c.map(e=>`${r}${e}`))}}if(a.includes(`/*`)||a.includes(`//`))return $(`单行数组字面量含注释,无法安全重建`);let u=km(e,r),d=`${u} `,f=[];for(let e of s){let t=e.raw;if(typeof t!=`string`)return $(`数组元素缺少原文片段`);f.push(t)}let p=[`[`,...f.map(e=>`${d}${e},`),...c.map(e=>`${d}${e}`),`${u}]`].join(`
|
|
217
|
+
`);return{ok:!0,content:e.slice(0,r)+p+e.slice(i)}};function Fm(e,t){if(t.length===0)return{ok:!0,content:e};let n;try{n=D(e,{sourceType:`module`,lang:`ts`})}catch{return $(`文件解析失败`)}let r=(lm(n.body)??[]).find(e=>e.type===`ExportDefaultDeclaration`);if(r===void 0)return $(`缺少 export default 语句`);let i=Q(r,`declaration`);if(i===void 0||i.type!==`CallExpression`)return $(`默认导出不是调用表达式`);let a=Q(i,`callee`);if(a===void 0||um(a)!==`defineConfig`)return $(`默认导出的调用不是 defineConfig`);let o=lm(i.arguments)??[];if(o.length===0){let n=Dm(a,`end`),r=Dm(i,`end`);if(n===void 0||r===void 0)return $(`调用节点缺少字符偏移`);if(!/^\s*\(\s*\)\s*$/.test(e.slice(n,r)))return $(`零参调用的括号区含非空白内容`);let o=[`({`,...Tm(t).map(e=>` ${e}`),`})`].join(`
|
|
218
|
+
`);return{ok:!0,content:e.slice(0,n)+o+e.slice(r)}}if(o.length>1)return $(`defineConfig 实参多于一个`);let s=o[0];if(s===void 0||s.type!==`ObjectExpression`)return $(`defineConfig 实参不是对象字面量`);let c=lm(s.properties)??[];if(c.some(e=>e.type!==`Property`))return $(`defineConfig 实参含展开或非常规属性`);let l=c.find(e=>Om(e)===`install`);if(l===void 0)return Nm(e,s,c,Tm(t));let u=Q(l,`value`);if(u===void 0||u.type!==`ObjectExpression`)return $(`install 声明不是对象字面量`);let d=lm(u.properties)??[];if(d.some(e=>e.type!==`Property`))return $(`install 声明含展开或非常规属性`);let f=d.find(e=>Om(e)===`privateScopes`);if(f===void 0)return Nm(e,u,d,wm(t));let p=Q(f,`value`);return p===void 0||p.type!==`ArrayExpression`?$(`privateScopes 声明不是数组字面量`):Pm(e,p,t)}var Im=class extends Error{configPath;missing;constructor(e,t){super(`${e} 校验失败:install.privateScopes 缺失 ${t.length} 条外部消费的私有 scope 声明,${Cm(t)},请运行 bun run bun-config:generate 自动补齐后重试`),this.name=`PrivateScopesDeclarationDriftError`,this.configPath=e,this.missing=t}},Lm=class extends Error{configPath;reason;missing;constructor(e,t,n){super(`${e} 无法自动补齐 install.privateScopes:${t},请手工落入以下声明后重试\n${Em(n.map(e=>e.scope))}`),this.name=`PrivateScopesDeclarationUnrewritableError`,this.configPath=e,this.reason=t,this.missing=n}};function Rm(e){return`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function zm(e,t){let n=e.map(e=>Rm(e)),r=`[${n.join(`, `)}]`;return`${t} = `.length+r.length<=100?r:`[\n${n.map(e=>` ${e},`).join(`
|
|
219
|
+
`)}\n]`}function Bm(e){let t=[`registry = ${Rm(e.registry)}`],n=Hm(`linker`,e.linker);n&&t.push(n);let r=Hm(`globalStore`,e.globalStore);r&&t.push(r);let i=Object.entries(e.scopes).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${Rm(`@${e}`)} = ${Rm(t)}`),a=[`[install]\n${t.join(`
|
|
211
220
|
`)}`];return i.length>0&&a.push(`[install.scopes]\n${i.join(`
|
|
212
221
|
`)}`),a.join(`
|
|
213
222
|
|
|
214
|
-
`)}function
|
|
223
|
+
`)}function Vm(e,t,n,r){let i=tp(t,e?.extraScopes,e?.privateScopes,n);if(r!==void 0){let t=new Set((e?.privateScopes??[]).map(e=>e.replace(/^@+/,``)));for(let e of Vf)!Object.hasOwn(i,e)&&!t.has(e)&&(i[e]=r)}return{registry:`https://mirrors.cloud.tencent.com/npm/`,scopes:i,linker:e?.linker,globalStore:e?.globalStore}}function Hm(e,t){if(t!==void 0){if(typeof t==`boolean`||typeof t==`number`)return`${e} = ${t}`;if(typeof t==`string`)return`${e} = ${Rm(t)}`;if(Array.isArray(t))return t.length===0?void 0:`${e} = ${zm(t,e)}`}}function Um(e){let t=[];e.install&&t.push(Bm(e.install));let n=e.test,r=[],i=Hm(`preload`,n.preload);i&&r.push(i);let a=Hm(`coverage`,n.coverage);a&&r.push(a);let o=Hm(`coverageSkipTestFiles`,n.coverageSkipTestFiles);o&&r.push(o);let s=Hm(`coverageReporter`,n.coverageReporter);s&&r.push(s);let c=Hm(`coverageDir`,n.coverageDir);c&&r.push(c);let l=Hm(`coveragePathIgnorePatterns`,n.coveragePathIgnorePatterns);l&&r.push(l);let u=Hm(`coverageIgnoreSourcemaps`,n.coverageIgnoreSourcemaps);u&&r.push(u);let d=Hm(`timeout`,n.timeout);return d&&r.push(d),r.length>0&&t.push(`[test]\n${r.join(`
|
|
215
224
|
`)}`),`# @lzi-bun 自动生成,请勿编辑\n${t.join(`
|
|
216
225
|
|
|
217
|
-
`)}\n`}function
|
|
218
|
-
`)){let e=a.trimEnd();e.startsWith(`LF:`)?t+=Number.parseInt(e.slice(3),10)||0:e.startsWith(`LH:`)?n+=Number.parseInt(e.slice(3),10)||0:e.startsWith(`FNF:`)?r+=Number.parseInt(e.slice(4),10)||0:e.startsWith(`FNH:`)&&(i+=Number.parseInt(e.slice(4),10)||0)}return{linesFound:t,linesHit:n,functionsFound:r,functionsHit:i}}function
|
|
219
|
-
`)}`),this.name=`TypeOnlyViolationError`,this.details=n}};function mm(e){return e===`exempt-runtime`?`包内代码与声明预设不符`:e===`zero-tests-undeclared`?`包内没有测试,也没有声明允许零测试的预设`:`声明的预设与目录分层不符`}const hm=e=>typeof e==`object`&&!!e&&!Array.isArray(e),gm=e=>Array.isArray(e)||typeof e==`object`&&!!e&&`packages`in e,_m=e=>{let t=d(e,`package.json`);if(!r(t))return`missing-package-json`;let n;try{n=JSON.parse(a(t,`utf8`))}catch{return`not-root`}return hm(n)&&gm(n.workspaces)?`root`:`not-root`},vm=e=>_m(e)===`root`,ym=(e,t)=>{let n=d(e,`package.json`);try{let e=JSON.parse(a(n,`utf8`));if(hm(e)){let t=e.name;if(typeof t==`string`&&t!==``)return t}}catch{}return t},bm=e=>{let t=e.indexOf(`/`);if(!(!e.startsWith(`@`)||t<=1))return e.slice(1,t)},xm=`.lzi/baselines/lzi-bun.typeonly.json`,Sm=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Cm=[`exempt-runtime`,`zero-tests-undeclared`,`preset-layer-mismatch`],wm=e=>typeof e==`string`&&Cm.some(t=>t===e);function Tm(e){return`${e.path}|${e.kind}`}function Em(e){let t=d(e,xm);if(!r(t))return/* @__PURE__ */ new Set;try{let e=JSON.parse(a(t,`utf8`));if(!Sm(e)||!Array.isArray(e.entries))return/* @__PURE__ */ new Set;let n=/* @__PURE__ */ new Set;for(let t of e.entries)Sm(t)&&typeof t.path==`string`&&wm(t.kind)&&n.add(`${t.path}|${t.kind}`);return n}catch{return/* @__PURE__ */ new Set}}function Dm(e,t,n){return e.has(`${t}|${n}`)}function Om(e,t){let n=[...t].sort((e,t)=>Tm(e)<Tm(t)?-1:+(Tm(e)>Tm(t))),r=d(e,xm);i(u(r),{recursive:!0}),c(r,`${JSON.stringify({version:1,entries:n},null,2)}\n`,`utf8`)}function km(e,t){return[...Em(e)].filter(e=>!t.has(e))}function Am(e){let t=e.indexOf(`|`),n=Cm.find(n=>n===e.slice(t+1));return{path:e.slice(0,t),kind:n??`preset-layer-mismatch`}}const jm=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Mm=e=>jm(e)&&typeof e.type==`string`;function Nm(e){return Mm(e)?e:void 0}function Pm(e){if(Array.isArray(e))return e.every(Mm)?e:void 0}function $(e,t){return Nm(e[t])}function Fm(e){if(e!==void 0&&e.type===`Identifier`)return typeof e.name==`string`?e.name:void 0}function Im(e){return e.type.endsWith(`Literal`)?e.type!==`TemplateLiteral`||e.expressions!==void 0&&Pm(e.expressions)?.length===0:!1}function Lm(e){if(Im(e)||Rm(e))return!0;if(e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`){let t=$(e,`expression`);return t!==void 0&&Lm(t)}if(e.type===`UnaryExpression`){let t=$(e,`argument`);return t!==void 0&&Im(t)}if(e.type===`BinaryExpression`){let t=$(e,`left`),n=$(e,`right`);return t!==void 0&&n!==void 0&&Im(t)&&Im(n)}return!1}function Rm(e){if(e.type===`ObjectExpression`){let t=Pm(e.properties);return t!==void 0&&t.every(e=>{if(e.type===`Property`){if(e.computed===!0)return!1;let t=$(e,`value`);return t!==void 0&&Lm(t)}if(e.type===`SpreadElement`){let t=$(e,`argument`);return t!==void 0&&Rm(t)}return!1})}if(e.type===`ArrayExpression`){let t=e.elements;return Array.isArray(t)?t.every(e=>{if(e==null)return!0;let t=Nm(e);return t!==void 0&&Lm(t)}):!1}return!1}function zm(e){let t=Fm($(e,`superClass`));if(t===void 0||t!==`Error`&&!t.endsWith(`Error`))return!1;let n=$(e,`body`);if(n===void 0)return!1;let r=Pm(n.body);return r!==void 0&&r.every(e=>{if(e.type===`MethodDefinition`)return e.kind===`constructor`;if(e.type===`PropertyDefinition`){let t=$(e,`value`);return t===void 0||Lm(t)}return!1})}function Bm(e){let t=$(e,`body`);if(t===void 0)return!1;if(t.type!==`BlockStatement`)return!0;let n=Pm(t.body);if(n===void 0||n.length!==1)return!1;let r=n[0];return r!==void 0&&r.type===`ReturnStatement`}function Vm(e){return e?`tsx`:`ts`}function Hm(e,t){let n=$(e,`callee`);if(n===void 0)return!1;if(Fm(n)===`Symbol`)return!0;if(n.type===`MemberExpression`){let e=Fm($(n,`object`));return e!==void 0&&t.zodBindings.has(e)}return!1}function Um(e,t){if(e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`){let n=$(e,`expression`);if(n!==void 0)return Um(n,t)}if(e.type===`TSInstantiationExpression`){let n=$(e,`expression`);if(n!==void 0)return Um(n,t)}return e.type===`CallExpression`?Hm(e,t)?`declarative`:`runtime`:e.type===`ArrowFunctionExpression`?t.isTsx?`runtime`:Bm(e)?`thin`:`runtime`:e.type===`Identifier`||Lm(e)?`declarative`:`runtime`}function Wm(e,t){switch(e.type){case`TSTypeAliasDeclaration`:case`TSInterfaceDeclaration`:case`TSModuleDeclaration`:case`TSDeclareFunction`:return`type`;case`TSEnumDeclaration`:return`declarative`;case`ClassDeclaration`:return zm(e)?`declarative`:`runtime`;case`FunctionDeclaration`:return t.isTsx?`runtime`:Bm(e)?`thin`:`runtime`;case`VariableDeclaration`:{let n=Pm(e.declarations);if(n===void 0)return`runtime`;let r=`type`;for(let e of n){let n=$(e,`init`),i=n===void 0?`declarative`:Um(n,t);if(i===`runtime`)return`runtime`;i!==`type`&&(r=i)}return r}default:return`runtime`}}function Gm(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map;for(let t of e){if(t.type===`ImportDeclaration`){Km(t,n,r);continue}let e=$(t,`declaration`);t.type===`ExportNamedDeclaration`&&e!==void 0?qm(i,e):qm(i,t)}return{zodBindings:n,importBindings:r,localDeclarations:i,isTsx:t}}function Km(e,t,n){let r=$(e,`source`),i=r!==void 0&&typeof r.value==`string`?r.value:void 0,a=Pm(e.specifiers);if(a!==void 0)for(let e of a){let r=Fm($(e,`local`));r!==void 0&&(n.add(r),i===`zod`&&(e.type===`ImportNamespaceSpecifier`&&t.add(r),e.type===`ImportSpecifier`&&Fm($(e,`imported`))===`z`&&t.add(r)))}}function qm(e,t){if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let n=Fm($(t,`id`));n!==void 0&&e.set(n,t)}else if(t.type===`VariableDeclaration`){let n=Pm(t.declarations);if(n===void 0)return;for(let t of n){let n=Fm($(t,`id`));n!==void 0&&e.set(n,t)}}}function Jm(e){if(e.type===`VariableDeclaration`){let t=Pm(e.declarations),n=t===void 0?void 0:t[0];return(n===void 0?void 0:Fm($(n,`id`)))??`anonymous`}return Fm($(e,`id`))??`anonymous`}function Ym(e,t){let n=Fm($(e,`local`));if(n===void 0)return;let r=Fm($(e,`exported`))??n,i=t.localDeclarations.get(n);if(i!==void 0){let e=$(i,`init`);return{name:r,form:e===void 0?Wm(i,t):Um(e,t)}}if(t.importBindings.has(n))return{name:r,form:`reexport`}}function Xm(e,t){return e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`VariableDeclaration`?Wm(e,t):Um(e,t)}const Zm=/* @__PURE__ */ new Set([`__tests__`,`__mocks__`,`__fixtures__`]),Qm=[`.test.`,`.spec.`,`.d.ts`];function $m(e){return Qm.some(t=>e.includes(t))}function eh(e){let t=d(e,`src`);if(!r(t))return[];let n=[],i=(e,t)=>{for(let r of o(e,{withFileTypes:!0})){if(Zm.has(r.name))continue;let a=t===``?r.name:`${t}/${r.name}`;r.isDirectory()?i(d(e,r.name),a):r.isFile()&&(r.name.endsWith(`.ts`)||r.name.endsWith(`.tsx`))&&n.push(`src/${a}`)}};return i(t,``),n}function th(e,t){let n=Pm(D(e,{sourceType:`module`,lang:Vm(t)}).body)??[],r=Gm(n,t),i=/* @__PURE__ */ new Map,a=(e,t)=>{let n=i.get(e);n===void 0?i.set(e,[t]):n.push(t)};for(let e of n)if(e.type===`ExportAllDeclaration`)a(`reexport`,`*`);else if(e.type===`ExportNamedDeclaration`){if($(e,`source`)!==void 0){a(`reexport`,`named-from`);continue}let t=$(e,`declaration`);if(t!==void 0){a(Wm(t,r),Jm(t));continue}let n=Pm(e.specifiers);if(n===void 0)continue;for(let e of n){let t=Ym(e,r);t!==void 0&&a(t.form,t.name)}}else if(e.type===`ExportDefaultDeclaration`){let t=$(e,`declaration`);if(t===void 0){a(`runtime`,`default`);continue}a(Xm(t,r),`default`)}return i}function nh(e){let t=eh(e).filter(e=>!$m(e)),n=[],r=!1,i=!1;for(let o of t){let t;try{t=a(d(e,o),`utf8`)}catch{continue}let s;try{s=th(t,o.endsWith(`.tsx`))}catch{n.push({file:o,name:`parse-error`,reason:`文件解析失败,无法确认内容,按包含运行时逻辑处理`});continue}let c=s.get(`runtime`);if(c!==void 0)for(let e of c)n.push({file:o,name:e,reason:`这个导出包含运行时逻辑`});s.has(`declarative`)&&(r=!0),(s.has(`thin`)||s.has(`reexport`))&&(i=!0)}return n.length>0?{verdict:`runtime`,runtimeExports:n}:r?{verdict:`declarative`,runtimeExports:[]}:i?{verdict:`facade`,runtimeExports:[]}:{verdict:`pure-type`,runtimeExports:[]}}function rh(e){let t=e;for(;;){if(_m(t)===`root`)return t;let n=u(t);if(n===t)return e;t=n}}const ih=/* @__PURE__ */ new Set([`contract`,`main`,`type-only`]),ah=/* @__PURE__ */ new Set([`contract`,`main`,`docs`,`type-only`,`root`]),oh=[`src/**/*.test.ts`,`src/**/*.test.tsx`,`__tests__/**/*.test.ts`],sh=/* @__PURE__ */ new Set([`root`,`contract`,`main`,`docs`,`domain`,`implementation`,`infrastructure`,`api`,`ui`,`capability`,`mcp`,`desktop-host`,`mobile`,`miniprogram`,`package`,`server`,`web`,`desktop`,`cli`]),ch={root:`@longzai-intelligence-bun/presets/root`,contract:`@longzai-intelligence-bun/presets/contract`,main:`@longzai-intelligence-bun/presets/main`,docs:`@longzai-intelligence-bun/presets/docs`,domain:`@longzai-intelligence-bun/presets/domain`,implementation:`@longzai-intelligence-bun/presets/implementation`,infrastructure:`@longzai-intelligence-bun/presets/infrastructure`,api:`@longzai-intelligence-bun/presets/api`,ui:`@longzai-intelligence-bun/presets/ui`,capability:`@longzai-intelligence-bun/presets/capability`,mcp:`@longzai-intelligence-bun/presets/mcp`,"desktop-host":`@longzai-intelligence-bun/presets/desktop-host`,mobile:`@longzai-intelligence-bun/presets/mobile`,miniprogram:`@longzai-intelligence-bun/presets/miniprogram`,package:`@longzai-intelligence-bun/presets/package`,server:`@longzai-intelligence-bun/presets/server`,web:`@longzai-intelligence-bun/presets/web`,desktop:`@longzai-intelligence-bun/presets/desktop`,cli:`@longzai-intelligence-bun/presets/cli`};async function lh(e){let t=e.config?.preset??`custom`,n=e.config?.preset!==void 0,r=fm(f(e.repoRoot,e.packageDir)),i=[];if(sh.has(t)&&t!==r&&i.push({kind:`preset-layer-mismatch`,details:[dh(t,r)]}),ih.has(t)){let n=nh(e.packageDir);n.verdict===`runtime`&&i.push({kind:`exempt-runtime`,details:[`该包声明为 ${t},这个预设只允许纯类型与声明式内容,但扫描发现 ${n.runtimeExports.length} 处包含运行时逻辑的导出`,...n.runtimeExports.slice(0,5).map(e=>`${e.file} 的 ${e.name},${e.reason}`)]})}return await ph(e.config,e.packageDir)===0&&!ah.has(t)&&i.push({kind:`zero-tests-undeclared`,details:[uh(t,n,r)]}),i}function uh(e,t,n){return t?e===`custom`?`该包的 lzi-bun.config.ts 未走预设子路径,包内没有任何测试文件。custom 不在允许零测试的预设之列,允许零测试的预设为 contract、main、docs、type-only 与 root。请补充测试,或改用上述预设子路径之一,改用后命令会扫描包内容,确认内容符合该预设的要求`:`该包声明为 ${e},包内没有任何测试文件。${e} 预设要求包内必须有测试,允许零测试的预设为 contract、main、docs、type-only 与 root。请补充测试`:n===`non-fixed`?`lzi-bun.config.ts 已加载,但结果里没有预设标记。常见原因是配置仍用旧具名工厂,或依赖停留在旧版本。本包目录没有固定分层,请改用 @longzai-intelligence-bun/presets/type-only 子路径的 defineConfig 声明,并保证包内只有类型与声明式内容`:`lzi-bun.config.ts 已加载,但结果里没有预设标记。常见原因是配置仍用旧具名工厂,或依赖停留在旧版本。本包的目录分层是 ${n},请改用 ${ch[n]} 子路径的 defineConfig 声明配置`}function dh(e,t){return t===`non-fixed`?`本包目录没有固定分层,声明的预设是 ${e}。固定分层预设只能用于对应的目录分层,custom 与 type-only 不受目录分层约束。请改用 @longzai-intelligence-bun/presets/type-only 子路径的 defineConfig 声明,并保证包内只有类型与声明式内容`:`本包的目录分层是 ${t},声明的预设却是 ${e}。固定分层预设必须与目录分层一致,custom 与 type-only 不受目录分层约束。请改用 ${ch[t]} 子路径的 defineConfig 声明配置`}async function fh(e){let t=await lh(e);if(t.length===0)return;let n=f(e.repoRoot,e.packageDir),r=Em(e.repoRoot),i=t.filter(e=>!Dm(r,n,e.kind));if(i.length!==0){if(e.strict)throw new pm(e.subject,i);for(let t of i)for(let n of t.details)Z(`警告: ${e.subject} ${n}`)}}async function ph(e,t){let n=e?.test?.include??oh;if(n.length===oh.length&&n.every((e,t)=>e===oh[t]))return mh(t);let r=/* @__PURE__ */ new Set;for(let e of n){let n=new Bun.Glob(e);for await(let e of n.scan({cwd:t,onlyFiles:!0}))r.add(e)}return r.size}function mh(e){let t=d(e,`src`);if(!r(t))return 0;let n=0,i=e=>{for(let t of o(e,{withFileTypes:!0}))t.isDirectory()?i(d(e,t.name)):(t.isFile()&&t.name.endsWith(`.test.ts`)||t.isFile()&&t.name.endsWith(`.test.tsx`))&&(n+=1)};return i(t),n}const hh=async(e=process.cwd())=>{let t=await Hp({cwd:e,standaloneFile:`lzi-bun.config.ts`,unifiedField:`bun`});return t.success?t.config:(X(`提示: 未找到配置文件 lzi-bun.config.ts,使用默认配置`),{})};var gh=class extends Error{constructor(e){super(e),this.name=`GlobalsUnresolvedError`}};const _h=e=>`已配置的 globals 定位未能命中(longzai-intelligence-globals),已尝试:\n ${e.join(`
|
|
220
|
-
`)}\n请修正 ${
|
|
226
|
+
`)}\n`}function Wm(e,t={}){let n=t.isRoot===!0,r=e?.test,i=r?r.coverage!==void 0||r.coverageThreshold!==void 0||r.coveragePathIgnorePatterns!==void 0||r.coverageReporter!==void 0||r.coverageSkipTestFiles!==void 0||r.coverageDir!==void 0||r.preload!==void 0||r.timeout!==void 0:!1;if(!n&&!i)return null;let a={test:r??{}};if(n){if(t.installScopesPreset===void 0)throw Error(`root bunfig 生成需要 globals 仓 install scopes 预设(LZI_GLOBALS_ROOT 定位 longzai-intelligence-globals → lzi-bun-install.config.ts),调用方应先解析并加载`);a.install=Vm(t.repoInstall,t.installScopesPreset,t.selfScope,process.env.LZI_NPM_REGISTRY_URL)}return{content:Um(a),shouldWrite:!0}}const Gm=(e,t)=>r(d(t,`src/__tests__/helpers/bootstrap.ts`))?If(e):e;function Km(e){let t=0,n=0,r=0,i=0;for(let a of e.split(`
|
|
227
|
+
`)){let e=a.trimEnd();e.startsWith(`LF:`)?t+=Number.parseInt(e.slice(3),10)||0:e.startsWith(`LH:`)?n+=Number.parseInt(e.slice(3),10)||0:e.startsWith(`FNF:`)?r+=Number.parseInt(e.slice(4),10)||0:e.startsWith(`FNH:`)&&(i+=Number.parseInt(e.slice(4),10)||0)}return{linesFound:t,linesHit:n,functionsFound:r,functionsHit:i}}function qm(e){return typeof e==`number`?{lines:e,functions:e,statements:e}:{...e}}function Jm(e,t){if(!(t<=0))return e/t}function Ym(e,t){let n=qm(t),r=Jm(e.linesHit,e.linesFound),i=Jm(e.functionsHit,e.functionsFound),a=[];return n.lines!==void 0&&a.push({dimension:`lines`,actual:r,required:n.lines}),n.functions!==void 0&&a.push({dimension:`functions`,actual:i,required:n.functions}),n.statements!==void 0&&a.push({dimension:`statements`,actual:r,required:n.statements}),{passed:a.every(e=>e.actual===void 0||e.actual>=e.required),results:a}}function Xm(e){return`${(e*100).toFixed(2)}%`}function Zm(e){return e.results.map(e=>{let t=e.actual===void 0?`无数据`:Xm(e.actual),n=e.actual===void 0||e.actual>=e.required?`通过`:`未达标`;return`${e.dimension} 覆盖率 ${t},阈值 ${Xm(e.required)},${n}`})}function Qm(e){let{missing:t,unconsumed:n}=Zf(Xf(xm(e.rootDir)),e.declared),i=d(e.rootDir,Uf);for(let e of n)Y(`提示:${Uf} 的 install.privateScopes 条目 @${e} 未被工作区任何包消费,保留为预声明`);if(t.length===0)return{effectivePrivateScopes:e.declared===void 0?void 0:[...e.declared],missing:t,unconsumed:n,rewritten:!1};if(e.mode===`check`)throw new Im(i,t);if(!r(i))throw new Lm(i,`${Uf} 不存在`,t);let o=Fm(a(i,`utf8`),t.map(e=>e.scope));if(!o.ok)throw new Lm(i,o.reason,t);let s=[...e.declared??[],...t.map(e=>`@${e.scope}`)],l=`${i} 的 install.privateScopes 缺失声明 ${t.length} 条:${Cm(t)}`;return e.mode===`dry-run`?(Y(`[dry-run] 将自动补齐 ${l}`),Y(`[dry-run] 将写入 ${i}:`),Y(o.content),{effectivePrivateScopes:s,missing:t,unconsumed:n,rewritten:!1}):(c(i,o.content,`utf8`),Y(`已自动补齐 ${l}`),{effectivePrivateScopes:s,missing:t,unconsumed:n,rewritten:!0})}const $m={server:`server`,web:`web`,desktop:`desktop`,cli:`cli`,mcp:`mcp`,"desktop-host":`desktop-host`,docs:`docs`,mobile:`mobile`,miniprogram:`miniprogram`},eh=[`contract`,`main`,`implementation`,`infrastructure`,`api`,`ui`];function th(e){if(e===``)return`root`;let t=e.split(`/`),n=t[0],r=t[1],i=t[2];return n===`domains`?t.length<3||i===void 0?`non-fixed`:eh.find(e=>e===i)??`non-fixed`:n===`apps`?t.length===3&&r===`capabilities`?`capability`:t.length===2&&r!==void 0?$m[r]??`non-fixed`:`non-fixed`:n===`packages`&&t.length===2&&r!==void 0?`package`:`non-fixed`}var nh=class extends Error{details;constructor(e,t){let n=t.flatMap(e=>e.details.map(t=>`${rh(e.kind)}:${t}`));super(`${e} 的测试配置违反分层规则:\n${n.map(e=>` - ${e}`).join(`
|
|
228
|
+
`)}`),this.name=`TypeOnlyViolationError`,this.details=n}};function rh(e){return e===`exempt-runtime`?`包内代码与声明预设不符`:e===`zero-tests-undeclared`?`包内没有测试,也没有声明允许零测试的预设`:`声明的预设与目录分层不符`}const ih=e=>typeof e==`object`&&!!e&&!Array.isArray(e),ah=e=>Array.isArray(e)||typeof e==`object`&&!!e&&`packages`in e,oh=e=>{let t=d(e,`package.json`);if(!r(t))return`missing-package-json`;let n;try{n=JSON.parse(a(t,`utf8`))}catch{return`not-root`}return ih(n)&&ah(n.workspaces)?`root`:`not-root`},sh=e=>oh(e)===`root`,ch=(e,t)=>{let n=d(e,`package.json`);try{let e=JSON.parse(a(n,`utf8`));if(ih(e)){let t=e.name;if(typeof t==`string`&&t!==``)return t}}catch{}return t},lh=e=>{let t=e.indexOf(`/`);if(!(!e.startsWith(`@`)||t<=1))return e.slice(1,t)},uh=`.lzi/baselines/lzi-bun.typeonly.json`,dh=e=>typeof e==`object`&&!!e&&!Array.isArray(e),fh=[`exempt-runtime`,`zero-tests-undeclared`,`preset-layer-mismatch`],ph=e=>typeof e==`string`&&fh.some(t=>t===e);function mh(e){return`${e.path}|${e.kind}`}function hh(e){let t=d(e,uh);if(!r(t))return/* @__PURE__ */ new Set;try{let e=JSON.parse(a(t,`utf8`));if(!dh(e)||!Array.isArray(e.entries))return/* @__PURE__ */ new Set;let n=/* @__PURE__ */ new Set;for(let t of e.entries)dh(t)&&typeof t.path==`string`&&ph(t.kind)&&n.add(`${t.path}|${t.kind}`);return n}catch{return/* @__PURE__ */ new Set}}function gh(e,t,n){return e.has(`${t}|${n}`)}function _h(e,t){let n=[...t].sort((e,t)=>mh(e)<mh(t)?-1:+(mh(e)>mh(t))),r=d(e,uh);i(u(r),{recursive:!0}),c(r,`${JSON.stringify({version:1,entries:n},null,2)}\n`,`utf8`)}function vh(e,t){return[...hh(e)].filter(e=>!t.has(e))}function yh(e){let t=e.indexOf(`|`),n=fh.find(n=>n===e.slice(t+1));return{path:e.slice(0,t),kind:n??`preset-layer-mismatch`}}function bh(e,t){let n=Q(e,`callee`);if(n===void 0)return!1;if(um(n)===`Symbol`)return!0;if(n.type===`MemberExpression`){let e=um(Q(n,`object`));return e!==void 0&&t.zodBindings.has(e)}return!1}function xh(e,t){if(e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`){let n=Q(e,`expression`);if(n!==void 0)return xh(n,t)}if(e.type===`TSInstantiationExpression`){let n=Q(e,`expression`);if(n!==void 0)return xh(n,t)}return e.type===`CallExpression`?bh(e,t)?`declarative`:`runtime`:e.type===`ArrowFunctionExpression`?t.isTsx?`runtime`:hm(e)?`thin`:`runtime`:e.type===`Identifier`||fm(e)?`declarative`:`runtime`}function Sh(e,t){switch(e.type){case`TSTypeAliasDeclaration`:case`TSInterfaceDeclaration`:case`TSModuleDeclaration`:case`TSDeclareFunction`:return`type`;case`TSEnumDeclaration`:return`declarative`;case`ClassDeclaration`:return mm(e)?`declarative`:`runtime`;case`FunctionDeclaration`:return t.isTsx?`runtime`:hm(e)?`thin`:`runtime`;case`VariableDeclaration`:{let n=lm(e.declarations);if(n===void 0)return`runtime`;let r=`type`;for(let e of n){let n=Q(e,`init`),i=n===void 0?`declarative`:xh(n,t);if(i===`runtime`)return`runtime`;i!==`type`&&(r=i)}return r}default:return`runtime`}}function Ch(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map;for(let t of e){if(t.type===`ImportDeclaration`){wh(t,n,r);continue}let e=Q(t,`declaration`);t.type===`ExportNamedDeclaration`&&e!==void 0?Th(i,e):Th(i,t)}return{zodBindings:n,importBindings:r,localDeclarations:i,isTsx:t}}function wh(e,t,n){let r=Q(e,`source`),i=r!==void 0&&typeof r.value==`string`?r.value:void 0,a=lm(e.specifiers);if(a!==void 0)for(let e of a){let r=um(Q(e,`local`));r!==void 0&&(n.add(r),i===`zod`&&(e.type===`ImportNamespaceSpecifier`&&t.add(r),e.type===`ImportSpecifier`&&um(Q(e,`imported`))===`z`&&t.add(r)))}}function Th(e,t){if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let n=um(Q(t,`id`));n!==void 0&&e.set(n,t)}else if(t.type===`VariableDeclaration`){let n=lm(t.declarations);if(n===void 0)return;for(let t of n){let n=um(Q(t,`id`));n!==void 0&&e.set(n,t)}}}function Eh(e){if(e.type===`VariableDeclaration`){let t=lm(e.declarations),n=t===void 0?void 0:t[0];return(n===void 0?void 0:um(Q(n,`id`)))??`anonymous`}return um(Q(e,`id`))??`anonymous`}function Dh(e,t){let n=um(Q(e,`local`));if(n===void 0)return;let r=um(Q(e,`exported`))??n,i=t.localDeclarations.get(n);if(i!==void 0){let e=Q(i,`init`);return{name:r,form:e===void 0?Sh(i,t):xh(e,t)}}if(t.importBindings.has(n))return{name:r,form:`reexport`}}function Oh(e,t){return e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`VariableDeclaration`?Sh(e,t):xh(e,t)}const kh=/* @__PURE__ */ new Set([`__tests__`,`__mocks__`,`__fixtures__`]),Ah=[`.test.`,`.spec.`,`.d.ts`];function jh(e){return Ah.some(t=>e.includes(t))}function Mh(e){let t=d(e,`src`);if(!r(t))return[];let n=[],i=(e,t)=>{for(let r of o(e,{withFileTypes:!0})){if(kh.has(r.name))continue;let a=t===``?r.name:`${t}/${r.name}`;r.isDirectory()?i(d(e,r.name),a):r.isFile()&&(r.name.endsWith(`.ts`)||r.name.endsWith(`.tsx`))&&n.push(`src/${a}`)}};return i(t,``),n}function Nh(e,t){let n=lm(D(e,{sourceType:`module`,lang:gm(t)}).body)??[],r=Ch(n,t),i=/* @__PURE__ */ new Map,a=(e,t)=>{let n=i.get(e);n===void 0?i.set(e,[t]):n.push(t)};for(let e of n)if(e.type===`ExportAllDeclaration`)a(`reexport`,`*`);else if(e.type===`ExportNamedDeclaration`){if(Q(e,`source`)!==void 0){a(`reexport`,`named-from`);continue}let t=Q(e,`declaration`);if(t!==void 0){a(Sh(t,r),Eh(t));continue}let n=lm(e.specifiers);if(n===void 0)continue;for(let e of n){let t=Dh(e,r);t!==void 0&&a(t.form,t.name)}}else if(e.type===`ExportDefaultDeclaration`){let t=Q(e,`declaration`);if(t===void 0){a(`runtime`,`default`);continue}a(Oh(t,r),`default`)}return i}function Ph(e){let t=Mh(e).filter(e=>!jh(e)),n=[],r=!1,i=!1;for(let o of t){let t;try{t=a(d(e,o),`utf8`)}catch{continue}let s;try{s=Nh(t,o.endsWith(`.tsx`))}catch{n.push({file:o,name:`parse-error`,reason:`文件解析失败,无法确认内容,按包含运行时逻辑处理`});continue}let c=s.get(`runtime`);if(c!==void 0)for(let e of c)n.push({file:o,name:e,reason:`这个导出包含运行时逻辑`});s.has(`declarative`)&&(r=!0),(s.has(`thin`)||s.has(`reexport`))&&(i=!0)}return n.length>0?{verdict:`runtime`,runtimeExports:n}:r?{verdict:`declarative`,runtimeExports:[]}:i?{verdict:`facade`,runtimeExports:[]}:{verdict:`pure-type`,runtimeExports:[]}}function Fh(e){let t=e;for(;;){if(oh(t)===`root`)return t;let n=u(t);if(n===t)return e;t=n}}const Ih=/* @__PURE__ */ new Set([`contract`,`main`,`type-only`]),Lh=/* @__PURE__ */ new Set([`contract`,`main`,`docs`,`type-only`,`root`]),Rh=[`src/**/*.test.ts`,`src/**/*.test.tsx`,`__tests__/**/*.test.ts`],zh=/* @__PURE__ */ new Set([`root`,`contract`,`main`,`docs`,`domain`,`implementation`,`infrastructure`,`api`,`ui`,`capability`,`mcp`,`desktop-host`,`mobile`,`miniprogram`,`package`,`server`,`web`,`desktop`,`cli`]),Bh={root:`@longzai-intelligence-bun/presets/root`,contract:`@longzai-intelligence-bun/presets/contract`,main:`@longzai-intelligence-bun/presets/main`,docs:`@longzai-intelligence-bun/presets/docs`,domain:`@longzai-intelligence-bun/presets/domain`,implementation:`@longzai-intelligence-bun/presets/implementation`,infrastructure:`@longzai-intelligence-bun/presets/infrastructure`,api:`@longzai-intelligence-bun/presets/api`,ui:`@longzai-intelligence-bun/presets/ui`,capability:`@longzai-intelligence-bun/presets/capability`,mcp:`@longzai-intelligence-bun/presets/mcp`,"desktop-host":`@longzai-intelligence-bun/presets/desktop-host`,mobile:`@longzai-intelligence-bun/presets/mobile`,miniprogram:`@longzai-intelligence-bun/presets/miniprogram`,package:`@longzai-intelligence-bun/presets/package`,server:`@longzai-intelligence-bun/presets/server`,web:`@longzai-intelligence-bun/presets/web`,desktop:`@longzai-intelligence-bun/presets/desktop`,cli:`@longzai-intelligence-bun/presets/cli`};async function Vh(e){let t=e.config?.preset??`custom`,n=e.config?.preset!==void 0,r=th(f(e.repoRoot,e.packageDir)),i=[];if(zh.has(t)&&t!==r&&i.push({kind:`preset-layer-mismatch`,details:[Uh(t,r)]}),Ih.has(t)){let n=Ph(e.packageDir);n.verdict===`runtime`&&i.push({kind:`exempt-runtime`,details:[`该包声明为 ${t},这个预设只允许纯类型与声明式内容,但扫描发现 ${n.runtimeExports.length} 处包含运行时逻辑的导出`,...n.runtimeExports.slice(0,5).map(e=>`${e.file} 的 ${e.name},${e.reason}`)]})}return await Gh(e.config,e.packageDir)===0&&!Lh.has(t)&&i.push({kind:`zero-tests-undeclared`,details:[Hh(t,n,r)]}),i}function Hh(e,t,n){return t?e===`custom`?`该包的 lzi-bun.config.ts 未走预设子路径,包内没有任何测试文件。custom 不在允许零测试的预设之列,允许零测试的预设为 contract、main、docs、type-only 与 root。请补充测试,或改用上述预设子路径之一,改用后命令会扫描包内容,确认内容符合该预设的要求`:`该包声明为 ${e},包内没有任何测试文件。${e} 预设要求包内必须有测试,允许零测试的预设为 contract、main、docs、type-only 与 root。请补充测试`:n===`non-fixed`?`lzi-bun.config.ts 已加载,但结果里没有预设标记。常见原因是配置仍用旧具名工厂,或依赖停留在旧版本。本包目录没有固定分层,请改用 @longzai-intelligence-bun/presets/type-only 子路径的 defineConfig 声明,并保证包内只有类型与声明式内容`:`lzi-bun.config.ts 已加载,但结果里没有预设标记。常见原因是配置仍用旧具名工厂,或依赖停留在旧版本。本包的目录分层是 ${n},请改用 ${Bh[n]} 子路径的 defineConfig 声明配置`}function Uh(e,t){return t===`non-fixed`?`本包目录没有固定分层,声明的预设是 ${e}。固定分层预设只能用于对应的目录分层,custom 与 type-only 不受目录分层约束。请改用 @longzai-intelligence-bun/presets/type-only 子路径的 defineConfig 声明,并保证包内只有类型与声明式内容`:`本包的目录分层是 ${t},声明的预设却是 ${e}。固定分层预设必须与目录分层一致,custom 与 type-only 不受目录分层约束。请改用 ${Bh[t]} 子路径的 defineConfig 声明配置`}async function Wh(e){let t=await Vh(e);if(t.length===0)return;let n=f(e.repoRoot,e.packageDir),r=hh(e.repoRoot),i=t.filter(e=>!gh(r,n,e.kind));if(i.length!==0){if(e.strict)throw new nh(e.subject,i);for(let t of i)for(let n of t.details)X(`警告: ${e.subject} ${n}`)}}async function Gh(e,t){let n=e?.test?.include??Rh;if(n.length===Rh.length&&n.every((e,t)=>e===Rh[t]))return Kh(t);let r=/* @__PURE__ */ new Set;for(let e of n){let n=new Bun.Glob(e);for await(let e of n.scan({cwd:t,onlyFiles:!0}))r.add(e)}return r.size}function Kh(e){let t=d(e,`src`);if(!r(t))return 0;let n=0,i=e=>{for(let t of o(e,{withFileTypes:!0}))t.isDirectory()?i(d(e,t.name)):(t.isFile()&&t.name.endsWith(`.test.ts`)||t.isFile()&&t.name.endsWith(`.test.tsx`))&&(n+=1)};return i(t),n}const qh=async(e=process.cwd())=>{let t=await Qp({cwd:e,standaloneFile:`lzi-bun.config.ts`,unifiedField:`bun`});return t.success?t.config:(Y(`提示: 未找到配置文件 lzi-bun.config.ts,使用默认配置`),{})};var Jh=class extends Error{constructor(e){super(e),this.name=`GlobalsUnresolvedError`}};const Yh=e=>`已配置的 globals 定位未能命中(longzai-intelligence-globals),已尝试:\n ${e.join(`
|
|
229
|
+
`)}\n请修正 ${Hf} / --globals 的路径,或移除该配置以回落包内预设(LZI_SCOPES)`,Xh=e=>{try{return s(e).isDirectory()}catch{return!1}},Zh=(e={})=>{let t=process.env[Hf],n=[...t!==void 0&&t!==``?[{source:`env`,path:p(t)}]:[],...e.explicitPath===void 0?[]:[{source:`explicit`,path:p(e.explicitPath)}]],r=[];for(let e of n)if(r.push(`${e.source}: ${e.path}`),Xh(e.path))return{ok:!0,resolution:{globalsRoot:e.path,source:e.source}};return{ok:!1,failure:{attempted:r}}},Qh=RegExp(`^${Hf}=.*$`,`m`),$h=`${Hf}=/absolute/path/to/longzai-intelligence-globals`,eg=(e,t)=>{let n=d(e,`.env`),i=`${Hf}=${t}`;if(r(n)){let e=a(n,`utf8`);if(Qh.test(e)){let t=e.replace(Qh,i);t!==e&&c(n,t,`utf8`)}else{let t=e.endsWith(`
|
|
221
230
|
`)||e.length===0?e:`${e}\n`;c(n,`${t}${i}\n`,`utf8`)}}else c(n,`${i}\n`,`utf8`);let o=d(e,`.env.example`);if(r(o)){let e=a(o,`utf8`);if(!e.includes(`LZI_GLOBALS_ROOT=`)){let t=e.endsWith(`
|
|
222
|
-
`)||e.length===0?e:`${e}\n`;c(o,`${t}${
|
|
231
|
+
`)||e.length===0?e:`${e}\n`;c(o,`${t}${$h}\n`,`utf8`)}}else c(o,`${$h}\n`,`utf8`)},tg=async e=>np((await Hp(d(e,`lzi-bun-install.config.ts`))).config),ng=async(e={})=>{let t=Zh({explicitPath:e.explicitPath});if(t.ok)return{presetScopes:await tg(t.resolution.globalsRoot),source:`globals`};if(t.failure.attempted.length===0)return{presetScopes:Object.fromEntries(Bf),source:`preset`};throw new Jh(Yh(t.failure.attempted))},rg=/* @__PURE__ */ new Set([`extraScopes`,`privateScopes`,`linker`,`globalStore`]);function ig(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`lzi-bun.config.ts 的 install 声明须为对象`);for(let t of Object.keys(e))if(!rg.has(t))throw Error(`lzi-bun.config.ts 的 install 声明含不可声明键 ${t},可声明键为 extraScopes、privateScopes、linker、globalStore`);let t=typeof e==`object`&&e&&`extraScopes`in e?e.extraScopes:void 0,n=typeof e==`object`&&e&&`privateScopes`in e?e.privateScopes:void 0,r=typeof e==`object`&&e&&`linker`in e?e.linker:void 0,i=typeof e==`object`&&e&&`globalStore`in e?e.globalStore:void 0;if(t!==void 0){if(typeof t!=`object`||!t||Array.isArray(t))throw Error(`lzi-bun.config.ts 的 install.extraScopes 须为 scope 到安装源 URL 的对象`);for(let[e,n]of Object.entries(t))if(typeof e!=`string`||typeof n!=`string`)throw Error(`lzi-bun.config.ts 的 install.extraScopes 键值均须为字符串`)}if(n!==void 0&&(!Array.isArray(n)||n.some(e=>typeof e!=`string`)))throw Error(`lzi-bun.config.ts 的 install.privateScopes 须为 scope 字符串数组`);if(r!==void 0&&r!==`isolated`&&r!==`hoisted`)throw Error(`lzi-bun.config.ts 的 install.linker 仅可为 isolated 或 hoisted`);if(i!==void 0&&typeof i!=`boolean`)throw Error(`lzi-bun.config.ts 的 install.globalStore 须为布尔值`);let a={};return t!==void 0&&(a.extraScopes=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,String(t)]))),Array.isArray(n)&&(a.privateScopes=n.map(e=>String(e))),(r===`isolated`||r===`hoisted`)&&(a.linker=r),typeof i==`boolean`&&(a.globalStore=i),a}const ag=[`src/**/*.test.ts`,`src/**/*.test.tsx`,`__tests__/**/*.test.ts`];function og(e){let t=[`bun`,`test`];return e.watch===!0&&t.push(`--watch`),e.coverage===!0&&t.push(`--coverage`),e.extra&&e.extra.length>0&&t.push(...e.extra),t}function sg(e,n=t()){return e?{enabled:!1,reason:`watch 为长驻会话,跳过内存护栏`}:n===`darwin`?{enabled:!0}:{enabled:!1,reason:`非 darwin 平台无 /usr/bin/time -l,跳过内存护栏`}}function cg(e,t){return t?[`/usr/bin/time`,`-l`,...e]:[...e]}async function lg(e,t=process.cwd()){let n=/* @__PURE__ */ new Set;for(let r of e){let e=new Bun.Glob(r);for await(let r of e.scan({cwd:t,onlyFiles:!0}))n.add(r)}return n.size}const ug=(e,t,n)=>{let r=e.split(`
|
|
223
232
|
`),i=t.split(`
|
|
224
|
-
`),a=0;for(;a<r.length&&a<i.length&&r[a]===i[a];)a++;let o=`第 ${a+1} 行不一致(磁盘 \`${r[a]??`<缺行>`}\` ≠ 预期 \`${i[a]??`<缺行>`}\`)`,s=n===void 0?void 0:`"@${n}" = `;return s!==void 0&&t.includes(s)&&!e.includes(s)?`${o},且本仓 scope @${n} 行在磁盘文件中缺位——bun publish 的 scope 映射优先级会使公网轨发布回退默认镜像源并以 missing authentication 失败(issue 0008)`:o},
|
|
233
|
+
`),a=0;for(;a<r.length&&a<i.length&&r[a]===i[a];)a++;let o=`第 ${a+1} 行不一致(磁盘 \`${r[a]??`<缺行>`}\` ≠ 预期 \`${i[a]??`<缺行>`}\`)`,s=n===void 0?void 0:`"@${n}" = `;return s!==void 0&&t.includes(s)&&!e.includes(s)?`${o},且本仓 scope @${n} 行在磁盘文件中缺位——bun publish 的 scope 映射优先级会使公网轨发布回退默认镜像源并以 missing authentication 失败(issue 0008)`:o},dg=async(e,t={})=>{let n=t.dir??process.cwd(),i=d(n,`bunfig.toml`),o=sh(n),s,l;if(o){s=(await ng({explicitPath:t.globalsPath})).presetScopes,l=e?.install===void 0?void 0:ig(e.install);let r=Qm({rootDir:n,declared:l?.privateScopes,mode:t.check===!0?`check`:t.dryRun===!0?`dry-run`:`write`});r.missing.length>0&&r.effectivePrivateScopes!==void 0&&(l={...l,privateScopes:[...r.effectivePrivateScopes]})}let u=o?lh(ch(n,``)):void 0,f=Wm(Gm(e,n),{isRoot:o,installScopesPreset:s,selfScope:u,repoInstall:l});if(!f?.shouldWrite){if(t.dryRun&&Y(`(无 coverage 配置,不会生成 bunfig.toml)`),t.check===!0&&r(i))throw new im(i,`该包无 coverage 配置,生成器判定不应存在 bunfig.toml(多余文件),请删除该文件`);return{status:`skipped`,bunfigPath:i}}if(t.dryRun)return Y(`[dry-run] 将写入 ${i}:`),Y(f.content),{status:`generated`,bunfigPath:i};if(t.check===!0){if(!r(i))throw new im(i,u===void 0?`bunfig.toml 不存在(生成器预期应存在)`:`bunfig.toml 不存在,本仓 scope @${u} 未注入 [install.scopes]——bun publish 的 scope 映射优先级会使公网轨发布回退默认镜像源并以 missing authentication 失败(issue 0008)`);let e=a(i,`utf8`);if(!e.includes(`@lzi-bun 自动生成,请勿编辑`))throw new im(i,`bunfig.toml 为手写文件(无生成标记),不受 lzi-bun 管理;如需接管请确认内容后删除该文件重新生成`);if(e!==f.content)throw new im(i,ug(e,f.content,u));return Y(`校验通过 ${i}(与生成器预期一致)`),{status:`checked`,bunfigPath:i}}if(r(i)&&!a(i,`utf8`).includes(`@lzi-bun 自动生成,请勿编辑`))throw new am(i);return c(i,f.content,`utf8`),Y(`已生成 ${i}(lzi-bun 接管覆盖率配置)`),{status:`generated`,bunfigPath:i}},fg=e=>{let t=e?.test;if(t===void 0)return;let n=t.coverageThreshold;if(n===void 0)return;let i=d(process.cwd(),t.coverageDir??`coverage`,`lcov.info`);if(!r(i)){Y(`未找到覆盖率报告 ${i},跳过全局阈值判定`);return}let o=Ym(Km(a(i,`utf8`)),n);if(o.passed)for(let e of Zm(o))Y(e);else{X(`错误: 覆盖率全局汇总低于阈值`);for(let e of Zm(o))X(e);process.exit(1)}},pg=(e,t)=>{let n=ip(t?.preset),r=Rf(e);if(r===void 0&&(X(`错误: 内存护栏失效——未能从 time 输出解析峰值常驻内存,fail closed 退出`),process.exit(1)),r>n){X(`错误: 测试内存峰值超预算`);for(let e of zf(r,n))X(e);process.exit(1)}Y(zf(r,n)[0]??`内存峰值受控`)},mg=async e=>{let t=await qh();await Wh({config:t,packageDir:process.cwd(),repoRoot:Fh(process.cwd()),strict:!1,subject:ch(process.cwd(),process.cwd())});let n=t.test?.passWithNoTests??!0;await lg(t.test?.include??ag)===0&&(n&&(Y(`无测试文件,跳过(type-only / facade 包,passWithNoTests)`),process.exit(0)),X(`错误: 未找到测试文件,且 test.passWithNoTests 为 false`),X(`(如该包确为 type-only / facade 包,请在 lzi-dev.config.ts 设置 test.passWithNoTests: true)`),process.exit(1));try{await dg(t)}catch(e){throw(e instanceof am||e instanceof Qf||e instanceof Jh)&&(X(`错误: ${e.message}`),process.exit(1)),e}let r=og(e),i=sg(e.watch===!0);!i.enabled&&i.reason!==void 0&&X(i.reason);let a=Bun.spawn(cg(r,i.enabled),{cwd:process.cwd(),stdout:`inherit`,stderr:i.enabled?`pipe`:`inherit`}),o=``;if(i.enabled&&a.stderr!==void 0){let e=new TextDecoder;for await(let t of a.stderr){let n=e.decode(t,{stream:!0});process.stderr.write(n),o+=n}}let s=await a.exited;s!==0&&process.exit(s),i.enabled&&pg(o,t),fg(t)},hg=async(e,t,n)=>{let r=await qh();try{await Wh({config:r,packageDir:process.cwd(),repoRoot:Fh(process.cwd()),strict:!0,subject:ch(process.cwd(),process.cwd())}),await dg(r,{dryRun:e,globalsPath:t,check:n})}catch(e){throw(e instanceof am||e instanceof im||e instanceof Im||e instanceof Lm||e instanceof Qf||e instanceof Jh||e instanceof nh)&&(X(`错误: ${e.message}`),process.exit(1)),e}},gg=e=>{let t=oh(e);t===`missing-package-json`&&(X(`错误: 当前目录 ${e} 无 package.json,--recursive 须在 monorepo root 执行`),process.exit(1)),t!==`root`&&(X(`错误: ${e} 的 package.json 未声明 workspaces 字段,--recursive 须在 monorepo root 执行`),process.exit(1))},_g=async(e,t,n)=>{let r=process.cwd();gg(r);let i=await rm(r,{configFileName:Uf}),a=[{name:ch(r,r.split(`/`).pop()??`root`),dir:r}];a.push(...i.map(e=>({name:e.name,dir:e.dir})));let o=n===!0?`校验`:e?`预览`:`生成`;Y(`发现 ${a.length} 个目标(root 1 + 子包 ${i.length}),开始${o}...`);let s=[];for(let i of a){Y(`▶ ${i.name}`);try{let a=await qh(i.dir);await Wh({config:a,packageDir:i.dir,repoRoot:r,strict:!0,subject:i.name});let{status:o}=await dg(a,{dryRun:e,check:n,dir:i.dir,globalsPath:t});s.push({name:i.name,dir:i.dir,status:o})}catch(e){s.push({name:i.name,dir:i.dir,status:`failed`,reason:e instanceof Error?e.message:String(e)})}}let c=s.filter(e=>e.status===`generated`),l=s.filter(e=>e.status===`checked`),u=s.filter(e=>e.status===`skipped`),d=s.filter(e=>e.status===`failed`);if(Y(``),Y(`汇总:${c.length} 生成 / ${l.length} 一致 / ${u.length} 跳过 / ${d.length} 失败`),d.length>0){X(``),X(`失败子包:`);for(let e of d)X(` - ${e.name}:${e.reason}`);process.exitCode=1}},vg=async e=>{let t=e.dryRun===!0,n=e.check===!0;if(t&&n&&(X(`错误: --dry-run 与 --check 互斥(预览与校验是两种只读形态,请二选一)`),process.exit(1)),e.globalsPath!==void 0){let t=Zh({explicitPath:e.globalsPath});t.ok||(X(`错误: ${Yh(t.failure.attempted)}`),process.exit(1));let{globalsRoot:n,source:r}=t.resolution;eg(process.cwd(),n),Y(`已定位 globals 仓(${r})并固化到 .env:${n}`)}e.recursive===!0?await _g(t,e.globalsPath,n):await hg(t,e.globalsPath,n)},yg=/* @__PURE__ */ new Set([`contract`,`main`,`type-only`]);async function bg(e,t){let n=f(t,e),r=ch(e,n||`root`),i=th(n),a=null,o=`custom`,s;try{a=await qh(e),o=a?.preset??`custom`,s=await Vh({config:a,packageDir:e,repoRoot:t,strict:!1,subject:r})}catch{o=`load-error`,s=[{kind:`preset-layer-mismatch`,details:[`lzi-bun.config.ts 加载失败,无法确认声明的预设。请检查文件内的导入与语法,常见原因是配置仍用旧具名工厂,或预设子路径版本尚未发布`]}]}let c=yg.has(o)?Ph(e).verdict:`not-scanned`;return{name:r,path:n,layer:i,preset:o,verdict:c,tests:await Gh(a,e),violations:s}}async function xg(e){let t=process.cwd();e.recursive===!0&&oh(t)!==`root`&&(X(`错误:--recursive 须在含 workspaces 字段的 workspace 根执行`),process.exit(1));let n=[t];if(e.recursive===!0){let e=await rm(t,{configFileName:`lzi-bun.config.ts`});n.push(...e.map(e=>e.dir))}let r=hh(t),i=[];for(let e of n)i.push(await bg(e,t));if(e.json===!0)Y(JSON.stringify({rows:i},null,2));else{Y(`审计 ${i.length} 个目标`);for(let e of i){let t=e.violations.filter(t=>!gh(r,e.path,t.kind)),n=t.length>0?` 违规 ${t.length} 项`:e.violations.length>0?` 基线内`:` 合规`;Y(` ${e.path||`根目录`} 分层 ${e.layer} 预设 ${e.preset} 判定 ${e.verdict} 测试 ${e.tests}${n}`);for(let e of t)for(let t of e.details.slice(0,3))X(` - ${t}`)}}if(e.initBaseline===!0){let e=/* @__PURE__ */ new Set;for(let t of i)for(let n of t.violations)e.add(`${t.path}|${n.kind}`);_h(t,[...e].map(yh)),Y(`已落盘基线 ${e.size} 条至 .lzi/baselines/lzi-bun.typeonly.json`)}else if(e.pruneBaseline===!0){let e=/* @__PURE__ */ new Set;for(let t of i)for(let n of t.violations)e.add(`${t.path}|${n.kind}`);let n=vh(t,e);n.length>0?(_h(t,[...r].filter(e=>!n.includes(e)).map(yh)),Y(`已从基线移除 ${n.length} 条已修复条目`)):Y(`基线无已修复条目可移除`)}else if(e.check===!0){let e=i.reduce((e,t)=>e+t.violations.filter(e=>!gh(r,t.path,e.kind)).length,0);e>0&&(X(`错误:${e} 项违规不在基线内,基线只减不增,请先治理违规再重试`),process.exitCode=1)}}function Sg(e){Cg(e),Dg(e),Eg(e),wg(e),Tg(e),Og(e)}function Cg(e){fd(e,{name:`test`,description:`运行 bun 测试(替代三件套,零测试包默认放行)`,options:[{flags:`--watch`,description:`监听模式(对应 test:watch)`},{flags:`--coverage`,description:`覆盖率(对应 test:coverage)`}],schema:Hs({watch:Ns().optional(),coverage:Ns().optional()}),action:async(e,t)=>{await mg({watch:e.watch===!0,coverage:e.coverage===!0,extra:t})}})}function wg(e){fd(e,{name:`lockfile check`,description:`校验单一 bun.lock 不变量与 workspaces 覆盖缺口`,schema:Hs({}),action:async()=>{await wp()}})}function Tg(e){fd(e,{name:`node-links check`,description:`检测 node_modules 悬挂符号链接,命中即非零退出`,schema:Hs({}),action:async()=>{await Mp()}}),fd(e,{name:`node-links fix`,description:`回收 node_modules 悬挂死链,删除前复验,有效链接零触碰`,schema:Hs({}),action:async()=>{await Np()}})}function Eg(e){fd(e,{name:`typeonly audit`,description:`检查各包的目录分层、预设声明与包内容是否符合规则,并管理违规基线`,options:[{flags:`-r, --recursive`,description:`递归审计 workspace 内全部含 lzi-bun.config.ts 的包`},{flags:`--check`,description:`校验模式,实际违规须为基线子集,否则非零退出`},{flags:`--json`,description:`以 JSON 形态输出审计行`},{flags:`--init-baseline`,description:`落盘当前全量违规为基线祖父条款`},{flags:`--prune-baseline`,description:`移除基线中已修复的条目,只减不增`}],schema:Hs({recursive:Ns().optional(),check:Ns().optional(),json:Ns().optional(),initBaseline:Ns().optional(),pruneBaseline:Ns().optional()}),action:async e=>{await xg({recursive:e.recursive===!0,check:e.check===!0,json:e.json===!0,initBaseline:e.initBaseline===!0,pruneBaseline:e.pruneBaseline===!0})}})}function Dg(e){fd(e,{name:`config generate`,description:`生成 bunfig.toml(不执行测试,支持 --dry-run 预览、--check 校验、-r 批量、--globals 定位)`,options:[{flags:`--dry-run`,description:`仅预览将写入的内容,不写盘`},{flags:`--check`,description:`仅校验磁盘 bunfig.toml 与生成器预期是否一致(漂移即报错退出,不写盘)`},{flags:`-r, --recursive`,description:`递归处理 monorepo 下含 lzi-bun.config.ts 的子包`},{flags:`--globals <path>`,description:`一次性 bootstrap 定位 globals 仓(命中后固化 .env,此后零参数)`}],schema:Hs({dryRun:Ns().optional(),check:Ns().optional(),recursive:Ns().optional(),globals:cs().optional()}),action:async e=>{await vg({dryRun:e.dryRun===!0,check:e.check===!0,recursive:e.recursive===!0,globalsPath:e.globals})}})}function Og(e){fd(e,{name:`check`,description:`检查当前项目 npm scope 是否登记于 bun 侧安装源注册表`,options:[{flags:`--scope <name>`,description:`显式指定项目名,缺省自 git 仓根目录名推导`}],schema:Hs({scope:cs().optional()}),action:async e=>{await cp({scopeName:e.scope})}})}const kg=cd({name:`lzi-bun`,description:`Longzai Intelligence bun 工具集`,interaction:Pf,color:Nf});Sg(kg);async function Ag(){await kg.parseAsync(process.argv)}Ag().catch(e=>{process.stderr.write(`错误: ${e instanceof Error?e.message:String(e)}\n`),process.exit(1)});export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence-bun/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Longzai Intelligence Bun 工具集 CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:coverage": "lzi-bun test --coverage"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@longzai-intelligence-bun/config": "0.1.
|
|
44
|
-
"@longzai-intelligence-bun/presets": "0.1.
|
|
43
|
+
"@longzai-intelligence-bun/config": "0.1.10",
|
|
44
|
+
"@longzai-intelligence-bun/presets": "0.1.10",
|
|
45
45
|
"@longzai-intelligence-cli/core": "^0.0.10",
|
|
46
46
|
"@longzai-intelligence-cli/standard": "^0.0.10",
|
|
47
47
|
"@longzai-intelligence-logger/node": "^0.1.8",
|