diff --git a/dist/index.js b/dist/index.js index 87e9ab81..ddbf4a66 100755 --- a/dist/index.js +++ b/dist/index.js @@ -984,7 +984,7 @@ You must use <@skeet-framework/firestore> to retrieve data from Firestore. catch (error) { throw new Error(\`findLargest: \${error}\`) } -}`}]}},sQ=async(c,g,d,p,h,s,a,f)=>{try{let b=uQ(d,p,h,s,a,f);return await fi(b,c,g.ai,g.aiInstance)}catch(b){throw new Error(`skeetNaming: ${b}`)}};dQ.config();var tl,kh=(tl=class{ai;model;maxTokens;temperature;_initOptions;aiInstance;functionConfigPaths=g=>({packageJson:`${tl.FUNCTION_ROOT}/${g}/package.json`,tsconfigJson:`${tl.FUNCTION_ROOT}/${g}/tsconfig.json`});constructor(g={}){this.ai=g.ai||"VertexAI",this.model=g.model||(this.ai==="VertexAI"?"chat-bison@001":"gpt-4"),this.maxTokens=g.maxTokens||1e3,this.temperature=g.temperature||0,this.ai==="VertexAI"?this.aiInstance=new Sd({model:this.model,maxOutputTokens:this.maxTokens}):this.aiInstance=new Od({model:this.model,maxTokens:this.maxTokens,apiKey:process.env.CHAT_GPT_KEY||"",organizationKey:process.env.CHAT_GPT_ORG||""}),this._initOptions=g}get initOptions(){return this._initOptions}async prisma(g){try{return await NH(g,this)}catch(d){this.handleError(d)}}async skeet(g){try{return await IH(g,this)}catch(d){throw new Error(`skeet: ${d}`)}}async uploadFile(g){try{return await xH(g,this.ai,this.aiInstance)}catch(d){this.handleError(d)}}async createFineTuningJob(g,d="gpt-3.5-turbo-0613"){try{return await EH(g,d,this.ai,this.aiInstance)}catch(p){this.handleError(p)}}async showFineTuningJob(g){try{return await MH(g,this.ai,this.aiInstance)}catch(d){this.handleError(d)}}async typedoc(g){try{return await UH(g,this)}catch(d){this.handleError(d)}}async naming(g,d="function"){try{return await zH(g,this,d)}catch(p){this.handleError(p)}}async translates(g,d="ja",p="en"){try{return await $H(g,d,p,this)}catch(h){this.handleError(h)}}async firestore(g){try{return await tQ(g,this)}catch(d){this.handleError(d)}}async function(g,d,p,h,s,a,f){try{return await sQ(g,this,d,p,h,s,a,f)}catch(b){this.handleError(b)}}async method(g,d,p,h,s,a){try{return await nQ(g,this,d,p,h,s,a)}catch(f){this.handleError(f)}}async run(g,d){try{let p=Ia(g.context,g.examples,d,this.ai);return this.ai==="VertexAI"?await this.aiInstance.prompt(p):await this.aiInstance.prompt(p)}catch(p){throw new Error(`run: ${p}`)}}handleError(g){console.error("Error:",g)}},k0(tl,"PRISMA_SCHEMA_PATH","./graphql/prisma/schema.prisma"),k0(tl,"MODEL_PATH","./functions/skeet/src/models"),k0(tl,"FUNCTION_ROOT","./functions"),tl),Cp=kh;});var Ozt={};ake(Ozt,{DEFAULT_FUNCTION_NAME:()=>Hr,FIREBASERC_PATH:()=>O5,GRAPHQL_ENV_BUILD_PATH:()=>WI,GRAPHQL_ENV_PRODUCTION_PATH:()=>ei,GRAPHQL_PATH:()=>ea,GRAPHQL_ROOT:()=>Xo,PRISMA_SCHEMA_PATH:()=>Ps,SKEET_CONFIG_PATH:()=>hp,TRANSLATE_PATH:()=>p$,program:()=>qt});module.exports=nke(Ozt);var o_e=st(lA());var AY=st(DY(),1),{program:Fzt,createCommand:_zt,createArgument:kzt,createOption:Mzt,CommanderError:Rzt,InvalidArgumentError:Nzt,InvalidOptionArgumentError:Bzt,Command:FY,Argument:Izt,Option:Lzt,Help:qzt}=AY.default;var _Y="1.7.13";var kY=(c=0)=>g=>`\x1B[${g+c}m`,MY=(c=0)=>g=>`\x1B[${38+c};5;${g}m`,RY=(c=0)=>(g,d,p)=>`\x1B[${38+c};2;${g};${d};${p}m`,Ao={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]}},Vzt=Object.keys(Ao.modifier),_ke=Object.keys(Ao.color),kke=Object.keys(Ao.bgColor),Gzt=[..._ke,...kke];function Mke(){let c=new Map;for(let[g,d]of Object.entries(Ao)){for(let[p,h]of Object.entries(d))Ao[p]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},d[p]=Ao[p],c.set(h[0],h[1]);Object.defineProperty(Ao,g,{value:d,enumerable:!1})}return Object.defineProperty(Ao,"codes",{value:c,enumerable:!1}),Ao.color.close="\x1B[39m",Ao.bgColor.close="\x1B[49m",Ao.color.ansi=kY(),Ao.color.ansi256=MY(),Ao.color.ansi16m=RY(),Ao.bgColor.ansi=kY(10),Ao.bgColor.ansi256=MY(10),Ao.bgColor.ansi16m=RY(10),Object.defineProperties(Ao,{rgbToAnsi256:{value(g,d,p){return g===d&&d===p?g<8?16:g>248?231:Math.round((g-8)/247*24)+232:16+36*Math.round(g/255*5)+6*Math.round(d/255*5)+Math.round(p/255*5)},enumerable:!1},hexToRgb:{value(g){let d=/[a-f\d]{6}|[a-f\d]{3}/i.exec(g.toString(16));if(!d)return[0,0,0];let[p]=d;p.length===3&&(p=[...p].map(s=>s+s).join(""));let h=Number.parseInt(p,16);return[h>>16&255,h>>8&255,h&255]},enumerable:!1},hexToAnsi256:{value:g=>Ao.rgbToAnsi256(...Ao.hexToRgb(g)),enumerable:!1},ansi256ToAnsi:{value(g){if(g<8)return 30+g;if(g<16)return 90+(g-8);let d,p,h;if(g>=232)d=((g-232)*10+8)/255,p=d,h=d;else{g-=16;let f=g%36;d=Math.floor(g/36)/5,p=Math.floor(f/6)/5,h=f%6/5}let s=Math.max(d,p,h)*2;if(s===0)return 30;let a=30+(Math.round(h)<<2|Math.round(p)<<1|Math.round(d));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(g,d,p)=>Ao.ansi256ToAnsi(Ao.rgbToAnsi256(g,d,p)),enumerable:!1},hexToAnsi:{value:g=>Ao.ansi256ToAnsi(Ao.hexToAnsi256(g)),enumerable:!1}}),Ao}var Rke=Mke(),Gn=Rke;var U0=st(require("node:process"),1),BY=st(require("node:os"),1),SA=st(require("node:tty"),1);function gn(c,g=globalThis.Deno?globalThis.Deno.args:U0.default.argv){let d=c.startsWith("-")?"":c.length===1?"-":"--",p=g.indexOf(d+c),h=g.indexOf("--");return p!==-1&&(h===-1||p=2,has16m:c>=3}}function Ike(c,{streamIsTTY:g,sniffFlags:d=!0}={}){let p=Nke();p!==void 0&&(J0=p);let h=d?J0:p;if(h===0)return 0;if(d){if(gn("color=16m")||gn("color=full")||gn("color=truecolor"))return 3;if(gn("color=256"))return 2}if("TF_BUILD"in Lo&&"AGENT_NAME"in Lo)return 1;if(c&&!g&&h===void 0)return 0;let s=h||0;if(Lo.TERM==="dumb")return s;if(U0.default.platform==="win32"){let a=BY.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Lo)return"GITHUB_ACTIONS"in Lo||"GITEA_ACTIONS"in Lo?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Lo)||Lo.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Lo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Lo.TEAMCITY_VERSION)?1:0;if(Lo.COLORTERM==="truecolor"||Lo.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Lo){let a=Number.parseInt((Lo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Lo.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Lo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Lo.TERM)||"COLORTERM"in Lo?1:s}function NY(c,g={}){let d=Ike(c,{streamIsTTY:c&&c.isTTY,...g});return Bke(d)}var Lke={stdout:NY({isTTY:SA.default.isatty(1)}),stderr:NY({isTTY:SA.default.isatty(2)})},IY=Lke;function LY(c,g,d){let p=c.indexOf(g);if(p===-1)return c;let h=g.length,s=0,a="";do a+=c.slice(s,p)+g+d,s=p+h,p=c.indexOf(g,s);while(p!==-1);return a+=c.slice(s),a}function qY(c,g,d,p){let h=0,s="";do{let a=c[p-1]==="\r";s+=c.slice(h,a?p-1:p)+g+(a?`\r +}`}]}},sQ=async(c,g,d,p,h,s,a,f)=>{try{let b=uQ(d,p,h,s,a,f);return await fi(b,c,g.ai,g.aiInstance)}catch(b){throw new Error(`skeetNaming: ${b}`)}};dQ.config();var tl,kh=(tl=class{ai;model;maxTokens;temperature;_initOptions;aiInstance;functionConfigPaths=g=>({packageJson:`${tl.FUNCTION_ROOT}/${g}/package.json`,tsconfigJson:`${tl.FUNCTION_ROOT}/${g}/tsconfig.json`});constructor(g={}){this.ai=g.ai||"VertexAI",this.model=g.model||(this.ai==="VertexAI"?"chat-bison@001":"gpt-4"),this.maxTokens=g.maxTokens||1e3,this.temperature=g.temperature||0,this.ai==="VertexAI"?this.aiInstance=new Sd({model:this.model,maxOutputTokens:this.maxTokens}):this.aiInstance=new Od({model:this.model,maxTokens:this.maxTokens,apiKey:process.env.CHAT_GPT_KEY||"",organizationKey:process.env.CHAT_GPT_ORG||""}),this._initOptions=g}get initOptions(){return this._initOptions}async prisma(g){try{return await NH(g,this)}catch(d){this.handleError(d)}}async skeet(g){try{return await IH(g,this)}catch(d){throw new Error(`skeet: ${d}`)}}async uploadFile(g){try{return await xH(g,this.ai,this.aiInstance)}catch(d){this.handleError(d)}}async createFineTuningJob(g,d="gpt-3.5-turbo-0613"){try{return await EH(g,d,this.ai,this.aiInstance)}catch(p){this.handleError(p)}}async showFineTuningJob(g){try{return await MH(g,this.ai,this.aiInstance)}catch(d){this.handleError(d)}}async typedoc(g){try{return await UH(g,this)}catch(d){this.handleError(d)}}async naming(g,d="function"){try{return await zH(g,this,d)}catch(p){this.handleError(p)}}async translates(g,d="ja",p="en"){try{return await $H(g,d,p,this)}catch(h){this.handleError(h)}}async firestore(g){try{return await tQ(g,this)}catch(d){this.handleError(d)}}async function(g,d,p,h,s,a,f){try{return await sQ(g,this,d,p,h,s,a,f)}catch(b){this.handleError(b)}}async method(g,d,p,h,s,a){try{return await nQ(g,this,d,p,h,s,a)}catch(f){this.handleError(f)}}async run(g,d){try{let p=Ia(g.context,g.examples,d,this.ai);return this.ai==="VertexAI"?await this.aiInstance.prompt(p):await this.aiInstance.prompt(p)}catch(p){throw new Error(`run: ${p}`)}}handleError(g){console.error("Error:",g)}},k0(tl,"PRISMA_SCHEMA_PATH","./graphql/prisma/schema.prisma"),k0(tl,"MODEL_PATH","./functions/skeet/src/models"),k0(tl,"FUNCTION_ROOT","./functions"),tl),Cp=kh;});var Ozt={};ake(Ozt,{DEFAULT_FUNCTION_NAME:()=>Hr,FIREBASERC_PATH:()=>O5,GRAPHQL_ENV_BUILD_PATH:()=>WI,GRAPHQL_ENV_PRODUCTION_PATH:()=>ei,GRAPHQL_PATH:()=>ea,GRAPHQL_ROOT:()=>Xo,PRISMA_SCHEMA_PATH:()=>Ps,SKEET_CONFIG_PATH:()=>hp,TRANSLATE_PATH:()=>p$,program:()=>qt});module.exports=nke(Ozt);var o_e=st(lA());var AY=st(DY(),1),{program:Fzt,createCommand:_zt,createArgument:kzt,createOption:Mzt,CommanderError:Rzt,InvalidArgumentError:Nzt,InvalidOptionArgumentError:Bzt,Command:FY,Argument:Izt,Option:Lzt,Help:qzt}=AY.default;var _Y="1.7.14";var kY=(c=0)=>g=>`\x1B[${g+c}m`,MY=(c=0)=>g=>`\x1B[${38+c};5;${g}m`,RY=(c=0)=>(g,d,p)=>`\x1B[${38+c};2;${g};${d};${p}m`,Ao={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]}},Vzt=Object.keys(Ao.modifier),_ke=Object.keys(Ao.color),kke=Object.keys(Ao.bgColor),Gzt=[..._ke,...kke];function Mke(){let c=new Map;for(let[g,d]of Object.entries(Ao)){for(let[p,h]of Object.entries(d))Ao[p]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},d[p]=Ao[p],c.set(h[0],h[1]);Object.defineProperty(Ao,g,{value:d,enumerable:!1})}return Object.defineProperty(Ao,"codes",{value:c,enumerable:!1}),Ao.color.close="\x1B[39m",Ao.bgColor.close="\x1B[49m",Ao.color.ansi=kY(),Ao.color.ansi256=MY(),Ao.color.ansi16m=RY(),Ao.bgColor.ansi=kY(10),Ao.bgColor.ansi256=MY(10),Ao.bgColor.ansi16m=RY(10),Object.defineProperties(Ao,{rgbToAnsi256:{value(g,d,p){return g===d&&d===p?g<8?16:g>248?231:Math.round((g-8)/247*24)+232:16+36*Math.round(g/255*5)+6*Math.round(d/255*5)+Math.round(p/255*5)},enumerable:!1},hexToRgb:{value(g){let d=/[a-f\d]{6}|[a-f\d]{3}/i.exec(g.toString(16));if(!d)return[0,0,0];let[p]=d;p.length===3&&(p=[...p].map(s=>s+s).join(""));let h=Number.parseInt(p,16);return[h>>16&255,h>>8&255,h&255]},enumerable:!1},hexToAnsi256:{value:g=>Ao.rgbToAnsi256(...Ao.hexToRgb(g)),enumerable:!1},ansi256ToAnsi:{value(g){if(g<8)return 30+g;if(g<16)return 90+(g-8);let d,p,h;if(g>=232)d=((g-232)*10+8)/255,p=d,h=d;else{g-=16;let f=g%36;d=Math.floor(g/36)/5,p=Math.floor(f/6)/5,h=f%6/5}let s=Math.max(d,p,h)*2;if(s===0)return 30;let a=30+(Math.round(h)<<2|Math.round(p)<<1|Math.round(d));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(g,d,p)=>Ao.ansi256ToAnsi(Ao.rgbToAnsi256(g,d,p)),enumerable:!1},hexToAnsi:{value:g=>Ao.ansi256ToAnsi(Ao.hexToAnsi256(g)),enumerable:!1}}),Ao}var Rke=Mke(),Gn=Rke;var U0=st(require("node:process"),1),BY=st(require("node:os"),1),SA=st(require("node:tty"),1);function gn(c,g=globalThis.Deno?globalThis.Deno.args:U0.default.argv){let d=c.startsWith("-")?"":c.length===1?"-":"--",p=g.indexOf(d+c),h=g.indexOf("--");return p!==-1&&(h===-1||p=2,has16m:c>=3}}function Ike(c,{streamIsTTY:g,sniffFlags:d=!0}={}){let p=Nke();p!==void 0&&(J0=p);let h=d?J0:p;if(h===0)return 0;if(d){if(gn("color=16m")||gn("color=full")||gn("color=truecolor"))return 3;if(gn("color=256"))return 2}if("TF_BUILD"in Lo&&"AGENT_NAME"in Lo)return 1;if(c&&!g&&h===void 0)return 0;let s=h||0;if(Lo.TERM==="dumb")return s;if(U0.default.platform==="win32"){let a=BY.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Lo)return"GITHUB_ACTIONS"in Lo||"GITEA_ACTIONS"in Lo?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Lo)||Lo.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Lo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Lo.TEAMCITY_VERSION)?1:0;if(Lo.COLORTERM==="truecolor"||Lo.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Lo){let a=Number.parseInt((Lo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Lo.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Lo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Lo.TERM)||"COLORTERM"in Lo?1:s}function NY(c,g={}){let d=Ike(c,{streamIsTTY:c&&c.isTTY,...g});return Bke(d)}var Lke={stdout:NY({isTTY:SA.default.isatty(1)}),stderr:NY({isTTY:SA.default.isatty(2)})},IY=Lke;function LY(c,g,d){let p=c.indexOf(g);if(p===-1)return c;let h=g.length,s=0,a="";do a+=c.slice(s,p)+g+d,s=p+h,p=c.indexOf(g,s);while(p!==-1);return a+=c.slice(s),a}function qY(c,g,d,p){let h=0,s="";do{let a=c[p-1]==="\r";s+=c.slice(h,a?p-1:p)+g+(a?`\r `:` `)+d,h=p+1,p=c.indexOf(` `,h)}while(p!==-1);return s+=c.slice(h),s}var{stdout:JY,stderr:UY}=IY,PA=Symbol("GENERATOR"),Rc=Symbol("STYLER"),Yf=Symbol("IS_EMPTY"),VY=["ansi","ansi","ansi256","ansi16m"],Nc=Object.create(null),qke=(c,g={})=>{if(g.level&&!(Number.isInteger(g.level)&&g.level>=0&&g.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let d=JY?JY.level:0;c.level=g.level===void 0?d:g.level};var Jke=c=>{let g=(...d)=>d.join(" ");return qke(g,c),Object.setPrototypeOf(g,Wf.prototype),g};function Wf(c){return Jke(c)}Object.setPrototypeOf(Wf.prototype,Function.prototype);for(let[c,g]of Object.entries(Gn))Nc[c]={get(){let d=V0(this,xA(g.open,g.close,this[Rc]),this[Yf]);return Object.defineProperty(this,c,{value:d}),d}};Nc.visible={get(){let c=V0(this,this[Rc],!0);return Object.defineProperty(this,"visible",{value:c}),c}};var jA=(c,g,d,...p)=>c==="rgb"?g==="ansi16m"?Gn[d].ansi16m(...p):g==="ansi256"?Gn[d].ansi256(Gn.rgbToAnsi256(...p)):Gn[d].ansi(Gn.rgbToAnsi(...p)):c==="hex"?jA("rgb",g,d,...Gn.hexToRgb(...p)):Gn[d][c](...p),Uke=["rgb","hex","ansi256"];for(let c of Uke){Nc[c]={get(){let{level:d}=this;return function(...p){let h=xA(jA(c,VY[d],"color",...p),Gn.color.close,this[Rc]);return V0(this,h,this[Yf])}}};let g="bg"+c[0].toUpperCase()+c.slice(1);Nc[g]={get(){let{level:d}=this;return function(...p){let h=xA(jA(c,VY[d],"bgColor",...p),Gn.bgColor.close,this[Rc]);return V0(this,h,this[Yf])}}}}var Vke=Object.defineProperties(()=>{},{...Nc,level:{enumerable:!0,get(){return this[PA].level},set(c){this[PA].level=c}}}),xA=(c,g,d)=>{let p,h;return d===void 0?(p=c,h=g):(p=d.openAll+c,h=g+d.closeAll),{open:c,close:g,openAll:p,closeAll:h,parent:d}},V0=(c,g,d)=>{let p=(...h)=>Gke(p,h.length===1?""+h[0]:h.join(" "));return Object.setPrototypeOf(p,Vke),p[PA]=c,p[Rc]=g,p[Yf]=d,p},Gke=(c,g)=>{if(c.level<=0||!g)return c[Yf]?"":g;let d=c[Rc];if(d===void 0)return g;let{openAll:p,closeAll:h}=d;if(g.includes("\x1B"))for(;d!==void 0;)g=LY(g,d.close,d.open),d=d.parent;let s=g.indexOf(` @@ -1081,7 +1081,7 @@ build src/__generated__ src/schema.graphql tmp -`),{filePath:d,body:p}};var tme=async(c,g)=>{let d=`${c}/.eslintrc.json`,p={};return g==="Expo (React Native) - Firestore"||g==="Solana Mobile Stack (Expo) + Web (Next.js) - Firestore"?p={extends:["eslint:recommended","plugin:react-hooks/recommended","plugin:react-native/all","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{ecmaVersion:"latest",sourceType:"module"},parser:"@typescript-eslint/parser",plugins:["react-native","@typescript-eslint","react-hooks"],env:{browser:!0,es2021:!0,"react-native/react-native":!0},rules:{"react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","@typescript-eslint/no-explicit-any":0,"react-native/no-raw-text":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]}}:(g==="Next.js (React) - Firestore"||g==="Next.js (React) - GraphQL")&&(p={extends:["next/core-web-vitals","eslint:recommended","plugin:react-hooks/recommended","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{ecmaVersion:"latest",sourceType:"module"},parser:"@typescript-eslint/parser",plugins:["@typescript-eslint","react-hooks"],env:{browser:!0,es2021:!0},rules:{"react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]}}),{filePath:d,body:p}};var ome=async(c,g)=>{let d=`${c}/.eslintignore`,p="";return g==="Expo (React Native) - Firestore"?p=`out +`),{filePath:d,body:p}};var tme=async(c,g)=>{let d=`${c}/.eslintrc.json`,p={};return g==="Expo (React Native) - Firestore"||g==="Solana Mobile Stack (Expo) + Web (Next.js) - Firestore"?p={extends:["eslint:recommended","plugin:react-hooks/recommended","plugin:react-native/all","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{ecmaVersion:"latest",sourceType:"module"},parser:"@typescript-eslint/parser",plugins:["react-native","@typescript-eslint","react-hooks"],env:{browser:!0,es2021:!0,"react-native/react-native":!0},rules:{"react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","@typescript-eslint/no-explicit-any":0,"react-native/no-raw-text":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]},overrides:[{files:["./functions/**/*.ts","./graphql/**/*.ts"],extends:["eslint:recommended","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{sourceType:"module",ecmaVersion:"latest"},parser:"@typescript-eslint/parser",plugins:["@typescript-eslint"],env:{es6:!0},rules:{"@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]}}]}:(g==="Next.js (React) - Firestore"||g==="Next.js (React) - GraphQL")&&(p={extends:["next/core-web-vitals","eslint:recommended","plugin:react-hooks/recommended","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{ecmaVersion:"latest",sourceType:"module"},parser:"@typescript-eslint/parser",plugins:["@typescript-eslint","react-hooks"],env:{browser:!0,es2021:!0},rules:{"react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]},overrides:[{files:["./functions/**/*.ts","./graphql/**/*.ts"],extends:["eslint:recommended","plugin:@typescript-eslint/recommended","prettier"],parserOptions:{sourceType:"module",ecmaVersion:"latest"},parser:"@typescript-eslint/parser",plugins:["@typescript-eslint"],env:{es6:!0},rules:{"@typescript-eslint/no-explicit-any":0,"@typescript-eslint/no-var-requires":0,"@typescript-eslint/no-unused-vars":0,"@typescript-eslint/no-empty-function":0,"@typescript-eslint/ban-ts-comment":["off",{"ts-ignore":"allow-with-description"}]}}]}),{filePath:d,body:p}};var ome=async(c,g)=>{let d=`${c}/.eslintignore`,p="";return g==="Expo (React Native) - Firestore"?p=`out dist build node_modules diff --git a/package.json b/package.json index 98a9e216..bcc26c8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@skeet-framework/cli", - "version": "1.7.13", + "version": "1.7.14", "description": "Skeet CLI", "main": "dist/index.js", "repository": "https://github.com/elsoul/skeet-cli", diff --git a/src/lib/version.ts b/src/lib/version.ts index 84fff643..94bf758b 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1 +1 @@ -export const VERSION = '1.7.13' \ No newline at end of file +export const VERSION = '1.7.14' \ No newline at end of file