@nice-move/cli 0.11.9 → 0.11.11

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/290.mjs CHANGED
@@ -1 +1 @@
1
- export const id=290;export const ids=[290];export const modules={2290:(e,r,t)=>{t.r(r),t.d(r,{default:()=>c,format:()=>l,formatResult:()=>s});var n=t(8568);const o=[" ","\u26a0","\u2716"],i=["white","yellow","red"];function l(e={},r={}){const{results:t=[]}=e,o=e=>function(e,r={}){const{color:t=!0}=r,{errors:o=[],warnings:i=[],input:l=""}=e;if(!l)return[""];const s="\u29d7",c=t?n.Ay.gray(s):s,a=o.length>0?l:l.split("\n")[0],u=t?n.Ay.bold(a):a,g=o.length>0||i.length>0;return r.verbose||g?[`${c} input: ${u}`]:[]}(e,r),i=e=>s(e,r);return t.filter((e=>Array.isArray(e.warnings)||Array.isArray(e.errors))).map((e=>[...o(e),...i(e)])).reduce(((e,r)=>Array.isArray(r)?[...e,...r]:[...e,r]),[]).join("\n")}function s(e={},r={}){const{signs:t=o,colors:l=i,color:s=!0}=r,{errors:c=[],warnings:a=[]}=e,u=[...c,...a].map((e=>{const r=t[e.level]||"",o=l[e.level]||"white",i=s?n.Ay[o](r):r,c=s?n.Ay.grey(`[${e.name}]`):`[${e.name}]`;return`${i} ${e.message} ${c}`})),g=function(e){if((e.errors||[]).length>0)return"\u2716";return(e.warnings||[]).length?"\u26a0":"\u2714"}(e),h=function(e){if((e.errors||[]).length>0)return"red";return(e.warnings||[]).length?"yellow":"green"}(e),b=s?n.Ay[h](g):g,f=c.length,d=a.length,m=u.length>0,p=r.verbose||m?`${b} found ${f} problems, ${d} warnings`:void 0,O=s&&"string"==typeof p?n.Ay.bold(p):p,T=m&&r.helpUrl?`\u24d8 Get help: ${r.helpUrl}`:void 0;return[...u,m?"":void 0,O,T,m?"":void 0].filter((e=>"string"==typeof e))}const c=l},8568:(e,r,t)=>{t.d(r,{Ay:()=>N});const n=(e=0)=>r=>`\x1b[${r+e}m`,o=(e=0)=>r=>`\x1b[${38+e};5;${r}m`,i=(e=0)=>(r,t,n)=>`\x1b[${38+e};2;${r};${t};${n}m`,l={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(l.modifier),Object.keys(l.color),Object.keys(l.bgColor);const s=function(){const e=new Map;for(const[r,t]of Object.entries(l)){for(const[r,n]of Object.entries(t))l[r]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},t[r]=l[r],e.set(n[0],n[1]);Object.defineProperty(l,r,{value:t,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close="\x1b[39m",l.bgColor.close="\x1b[49m",l.color.ansi=n(),l.color.ansi256=o(),l.color.ansi16m=i(),l.bgColor.ansi=n(10),l.bgColor.ansi256=o(10),l.bgColor.ansi16m=i(10),Object.defineProperties(l,{rgbToAnsi256:{value:(e,r,t)=>e===r&&r===t?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5),enumerable:!1},hexToRgb:{value(e){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[t]=r;3===t.length&&(t=[...t].map((e=>e+e)).join(""));const n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let r,t,n;if(e>=232)r=(10*(e-232)+8)/255,t=r,n=r;else{const o=(e-=16)%36;r=Math.floor(e/36)/5,t=Math.floor(o/6)/5,n=o%6/5}const o=2*Math.max(r,t,n);if(0===o)return 30;let i=30+(Math.round(n)<<2|Math.round(t)<<1|Math.round(r));return 2===o&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(e,r,t)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,r,t)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}();var c=t(1708),a=t(8161),u=t(7066);function g(e,r=(globalThis.Deno?globalThis.Deno.args:c.argv)){const t=e.startsWith("-")?"":1===e.length?"-":"--",n=r.indexOf(t+e),o=r.indexOf("--");return-1!==n&&(-1===o||n<o)}const{env:h}=c;let b;function f(e,{streamIsTTY:r,sniffFlags:t=!0}={}){const n=function(){if("FORCE_COLOR"in h)return"true"===h.FORCE_COLOR?1:"false"===h.FORCE_COLOR?0:0===h.FORCE_COLOR.length?1:Math.min(Number.parseInt(h.FORCE_COLOR,10),3)}();void 0!==n&&(b=n);const o=t?b:n;if(0===o)return 0;if(t){if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2}if("TF_BUILD"in h&&"AGENT_NAME"in h)return 1;if(e&&!r&&void 0===o)return 0;const i=o||0;if("dumb"===h.TERM)return i;if("win32"===c.platform){const e=a.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in h)return"GITHUB_ACTIONS"in h||"GITEA_ACTIONS"in h?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in h))||"codeship"===h.CI_NAME?1:i;if("TEAMCITY_VERSION"in h)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION)?1:0;if("truecolor"===h.COLORTERM)return 3;if("xterm-kitty"===h.TERM)return 3;if("TERM_PROGRAM"in h){const e=Number.parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:i}function d(e,r={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(f(e,{streamIsTTY:e&&e.isTTY,...r}))}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?b=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(b=1);const m={stdout:d({isTTY:u.isatty(1)}),stderr:d({isTTY:u.isatty(2)})};function p(e,r,t){let n=e.indexOf(r);if(-1===n)return e;const o=r.length;let i=0,l="";do{l+=e.slice(i,n)+r+t,i=n+o,n=e.indexOf(r,i)}while(-1!==n);return l+=e.slice(i),l}const{stdout:O,stderr:T}=m,v=Symbol("GENERATOR"),y=Symbol("STYLER"),A=Symbol("IS_EMPTY"),R=["ansi","ansi","ansi256","ansi16m"],C=Object.create(null);const E=e=>{const r=(...e)=>e.join(" ");return((e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const t=O?O.level:0;e.level=void 0===r.level?t:r.level})(r,e),Object.setPrototypeOf(r,M.prototype),r};function M(e){return E(e)}Object.setPrototypeOf(M.prototype,Function.prototype);for(const[e,r]of Object.entries(s))C[e]={get(){const t=j(this,x(r.open,r.close,this[y]),this[A]);return Object.defineProperty(this,e,{value:t}),t}};C.visible={get(){const e=j(this,this[y],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const I=(e,r,t,...n)=>"rgb"===e?"ansi16m"===r?s[t].ansi16m(...n):"ansi256"===r?s[t].ansi256(s.rgbToAnsi256(...n)):s[t].ansi(s.rgbToAnsi(...n)):"hex"===e?I("rgb",r,t,...s.hexToRgb(...n)):s[t][e](...n),w=["rgb","hex","ansi256"];for(const e of w){C[e]={get(){const{level:r}=this;return function(...t){const n=x(I(e,R[r],"color",...t),s.color.close,this[y]);return j(this,n,this[A])}}};C["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:r}=this;return function(...t){const n=x(I(e,R[r],"bgColor",...t),s.bgColor.close,this[y]);return j(this,n,this[A])}}}}const B=Object.defineProperties((()=>{}),{...C,level:{enumerable:!0,get(){return this[v].level},set(e){this[v].level=e}}}),x=(e,r,t)=>{let n,o;return void 0===t?(n=e,o=r):(n=t.openAll+e,o=r+t.closeAll),{open:e,close:r,openAll:n,closeAll:o,parent:t}},j=(e,r,t)=>{const n=(...e)=>$(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,B),n[v]=e,n[y]=r,n[A]=t,n},$=(e,r)=>{if(e.level<=0||!r)return e[A]?"":r;let t=e[y];if(void 0===t)return r;const{openAll:n,closeAll:o}=t;if(r.includes("\x1b"))for(;void 0!==t;)r=p(r,t.close,t.open),t=t.parent;const i=r.indexOf("\n");return-1!==i&&(r=function(e,r,t,n){let o=0,i="";do{const l="\r"===e[n-1];i+=e.slice(o,l?n-1:n)+r+(l?"\r\n":"\n")+t,o=n+1,n=e.indexOf("\n",o)}while(-1!==n);return i+=e.slice(o),i}(r,o,n,i)),n+r+o};Object.defineProperties(M.prototype,C);const _=M(),N=(M({level:T?T.level:0}),_)}};
1
+ export const id=290;export const ids=[290];export const modules={2290:(e,r,t)=>{t.r(r),t.d(r,{default:()=>c,format:()=>l,formatResult:()=>s});var n=t(8568);const o=[" ","\u26a0","\u2716"],i=["white","yellow","red"];function l(e={},r={}){const{results:t=[]}=e,o=e=>function(e,r={}){const{color:t=!0}=r,{errors:o=[],warnings:i=[],input:l=""}=e;if(!l)return[""];const s="\u29d7",c=t?n.Ay.gray(s):s,a=t?n.Ay.bold(l):l,u=o.length>0||i.length>0;return r.verbose||u?[`${c} input: ${a}`]:[]}(e,r),i=e=>s(e,r);return t.filter((e=>Array.isArray(e.warnings)||Array.isArray(e.errors))).map((e=>[...o(e),...i(e)])).reduce(((e,r)=>Array.isArray(r)?[...e,...r]:[...e,r]),[]).join("\n")}function s(e={},r={}){const{signs:t=o,colors:l=i,color:s=!0}=r,{errors:c=[],warnings:a=[]}=e,u=[...c,...a].map((e=>{const r=t[e.level]||"",o=l[e.level]||"white",i=s?n.Ay[o](r):r,c=s?n.Ay.grey(`[${e.name}]`):`[${e.name}]`;return`${i} ${e.message} ${c}`})),g=function(e){if((e.errors||[]).length>0)return"\u2716";return(e.warnings||[]).length?"\u26a0":"\u2714"}(e),b=function(e){if((e.errors||[]).length>0)return"red";return(e.warnings||[]).length?"yellow":"green"}(e),h=s?n.Ay[b](g):g,f=c.length,d=a.length,m=u.length>0,p=r.verbose||m?`${h} found ${f} problems, ${d} warnings`:void 0,O=s&&"string"==typeof p?n.Ay.bold(p):p,T=m&&r.helpUrl?`\u24d8 Get help: ${r.helpUrl}`:void 0;return[...u,m?"":void 0,O,T,m?"":void 0].filter((e=>"string"==typeof e))}const c=l},8568:(e,r,t)=>{t.d(r,{Ay:()=>N});const n=(e=0)=>r=>`\x1b[${r+e}m`,o=(e=0)=>r=>`\x1b[${38+e};5;${r}m`,i=(e=0)=>(r,t,n)=>`\x1b[${38+e};2;${r};${t};${n}m`,l={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(l.modifier),Object.keys(l.color),Object.keys(l.bgColor);const s=function(){const e=new Map;for(const[r,t]of Object.entries(l)){for(const[r,n]of Object.entries(t))l[r]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},t[r]=l[r],e.set(n[0],n[1]);Object.defineProperty(l,r,{value:t,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close="\x1b[39m",l.bgColor.close="\x1b[49m",l.color.ansi=n(),l.color.ansi256=o(),l.color.ansi16m=i(),l.bgColor.ansi=n(10),l.bgColor.ansi256=o(10),l.bgColor.ansi16m=i(10),Object.defineProperties(l,{rgbToAnsi256:{value:(e,r,t)=>e===r&&r===t?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5),enumerable:!1},hexToRgb:{value(e){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[t]=r;3===t.length&&(t=[...t].map((e=>e+e)).join(""));const n=Number.parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let r,t,n;if(e>=232)r=(10*(e-232)+8)/255,t=r,n=r;else{const o=(e-=16)%36;r=Math.floor(e/36)/5,t=Math.floor(o/6)/5,n=o%6/5}const o=2*Math.max(r,t,n);if(0===o)return 30;let i=30+(Math.round(n)<<2|Math.round(t)<<1|Math.round(r));return 2===o&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(e,r,t)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,r,t)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}();var c=t(1708),a=t(8161),u=t(7066);function g(e,r=(globalThis.Deno?globalThis.Deno.args:c.argv)){const t=e.startsWith("-")?"":1===e.length?"-":"--",n=r.indexOf(t+e),o=r.indexOf("--");return-1!==n&&(-1===o||n<o)}const{env:b}=c;let h;function f(e,{streamIsTTY:r,sniffFlags:t=!0}={}){const n=function(){if("FORCE_COLOR"in b)return"true"===b.FORCE_COLOR?1:"false"===b.FORCE_COLOR?0:0===b.FORCE_COLOR.length?1:Math.min(Number.parseInt(b.FORCE_COLOR,10),3)}();void 0!==n&&(h=n);const o=t?h:n;if(0===o)return 0;if(t){if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2}if("TF_BUILD"in b&&"AGENT_NAME"in b)return 1;if(e&&!r&&void 0===o)return 0;const i=o||0;if("dumb"===b.TERM)return i;if("win32"===c.platform){const e=a.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in b)return"GITHUB_ACTIONS"in b||"GITEA_ACTIONS"in b?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in b))||"codeship"===b.CI_NAME?1:i;if("TEAMCITY_VERSION"in b)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(b.TEAMCITY_VERSION)?1:0;if("truecolor"===b.COLORTERM)return 3;if("xterm-kitty"===b.TERM)return 3;if("TERM_PROGRAM"in b){const e=Number.parseInt((b.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(b.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(b.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(b.TERM)||"COLORTERM"in b?1:i}function d(e,r={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(f(e,{streamIsTTY:e&&e.isTTY,...r}))}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?h=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(h=1);const m={stdout:d({isTTY:u.isatty(1)}),stderr:d({isTTY:u.isatty(2)})};function p(e,r,t){let n=e.indexOf(r);if(-1===n)return e;const o=r.length;let i=0,l="";do{l+=e.slice(i,n)+r+t,i=n+o,n=e.indexOf(r,i)}while(-1!==n);return l+=e.slice(i),l}const{stdout:O,stderr:T}=m,v=Symbol("GENERATOR"),y=Symbol("STYLER"),A=Symbol("IS_EMPTY"),R=["ansi","ansi","ansi256","ansi16m"],C=Object.create(null);const E=e=>{const r=(...e)=>e.join(" ");return((e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const t=O?O.level:0;e.level=void 0===r.level?t:r.level})(r,e),Object.setPrototypeOf(r,M.prototype),r};function M(e){return E(e)}Object.setPrototypeOf(M.prototype,Function.prototype);for(const[e,r]of Object.entries(s))C[e]={get(){const t=j(this,x(r.open,r.close,this[y]),this[A]);return Object.defineProperty(this,e,{value:t}),t}};C.visible={get(){const e=j(this,this[y],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const I=(e,r,t,...n)=>"rgb"===e?"ansi16m"===r?s[t].ansi16m(...n):"ansi256"===r?s[t].ansi256(s.rgbToAnsi256(...n)):s[t].ansi(s.rgbToAnsi(...n)):"hex"===e?I("rgb",r,t,...s.hexToRgb(...n)):s[t][e](...n),w=["rgb","hex","ansi256"];for(const e of w){C[e]={get(){const{level:r}=this;return function(...t){const n=x(I(e,R[r],"color",...t),s.color.close,this[y]);return j(this,n,this[A])}}};C["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:r}=this;return function(...t){const n=x(I(e,R[r],"bgColor",...t),s.bgColor.close,this[y]);return j(this,n,this[A])}}}}const B=Object.defineProperties((()=>{}),{...C,level:{enumerable:!0,get(){return this[v].level},set(e){this[v].level=e}}}),x=(e,r,t)=>{let n,o;return void 0===t?(n=e,o=r):(n=t.openAll+e,o=r+t.closeAll),{open:e,close:r,openAll:n,closeAll:o,parent:t}},j=(e,r,t)=>{const n=(...e)=>$(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,B),n[v]=e,n[y]=r,n[A]=t,n},$=(e,r)=>{if(e.level<=0||!r)return e[A]?"":r;let t=e[y];if(void 0===t)return r;const{openAll:n,closeAll:o}=t;if(r.includes("\x1b"))for(;void 0!==t;)r=p(r,t.close,t.open),t=t.parent;const i=r.indexOf("\n");return-1!==i&&(r=function(e,r,t,n){let o=0,i="";do{const l="\r"===e[n-1];i+=e.slice(o,l?n-1:n)+r+(l?"\r\n":"\n")+t,o=n+1,n=e.indexOf("\n",o)}while(-1!==n);return i+=e.slice(o),i}(r,o,n,i)),n+r+o};Object.defineProperties(M.prototype,C);const _=M(),N=(M({level:T?T.level:0}),_)}};