@maka/maka-cli 5.0.26 → 5.0.27
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/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/apollo-gateway.js +48 -0
- package/bundle/obf/src/templates/meteor/api/apollo-gateway.js.ts +53 -0
- package/bundle/obf/src/templates/meteor/api/graphql-api.js +61 -0
- package/bundle/obf/src/templates/meteor/api/graphql-api.js.ts +67 -0
- package/bundle/obf/src/templates/meteor/api/register-api.js +1 -0
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +2 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +2 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -53
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -53
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x198))/0x1*(-parseInt(n(0x182))/0x2)+parseInt(n(0x177))/0x3*(parseInt(n(0x18b))/0x4)+-parseInt(n(0x176))/0x5*(parseInt(n(0x1aa))/0x6)+-parseInt(n(0x1c4))/0x7*(-parseInt(n(0x185))/0x8)+-parseInt(n(0x1c6))/0x9*(-parseInt(n(0x1bd))/0xa)+parseInt(n(0x1ab))/0xb*(-parseInt(n(0x17a))/0xc)+parseInt(n(0x18a))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x85620));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x1c8)]()[p(0x1b3)](p(0x1bf))[p(0x1c8)]()['constructor'](a0a)[p(0x1b3)](p(0x1bf));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0c(){const A=['processAndRunCommand','(experimental)\x20','assign','Command.create\x20requires\x20some\x20options!','match','setColorMode','1064470qXsJwD','Too\x20few\x20options','(((.+)+)+)+$','generate','addCommand\x20requires\x20a\x20Command\x20instance','error','help','49GZIJPN','shortDesc','18kHshmm','number','toString','name','minOptsLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20many\x20arguments','getGlobalConfig','usage','split','maxOptsLength','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','_handler','5ttiDtZ','45uwusXZ','localeCompare','exit','11604BMPupz','aliases','murder','Command\x20format\x20is\x20incorrect','mustHaveMeteorInstalled','create','validateMeteorInstall','You\x20must\x20be\x20in\x20a\x20Maka\x20project\x20to\x20run\x20this\x20command','1845554JvAXQc','function','push','846176IMbmKd','Description','notice','mustBeLoggedIn','invoke','16149757GZlSVf','207464CABgTL','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','slice','Command.create\x20requires\x20a\x20handler\x20function!','Command\x20requires\x20a\x20name','experimental','run','keys','projectConfig','Command\x20','header','pallet','forEach','1RScoBV','sort','call','getMakaProjectConfig','minArgLength','Sub-Commands:','length','play','Too\x20many\x20options','mustBeInMakaProject','tableList','bind','validateParams','mpi','find','_commands','options','apply','4565046HDnUCT','8459UaGGCi','\x20not\x20found','There\x20is\x20no\x20Meteor\x20application\x20here','bright','maxArgLength','unshift','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Please\x20run\x20\x22maka\x20login\x22','search','Command\x20not\x20found','light','addCommand'];a0c=function(){return A;};return a0c();}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x16f;let f=c[d];return f;},a0d(a,b);}let _prevCmd='';export class Command extends Tool{[a0q(0x1a8)];['projectConfig'];[a0q(0x1a7)];[a0q(0x175)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x1cb));if(!a[r(0x1c9)])throw new Error(r(0x18f));if(typeof b!=='function')throw new Error('Command\x20requires\x20a\x20handler\x20function');this['options']=Object['assign']({},a),this[r(0x1c9)]=this[r(0x1a8)][r(0x1c9)],this[r(0x1a7)]=[],this['_handler']=b[r(0x1a3)](this);}static[a0q(0x17f)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x1ba));if(typeof b!==s(0x183))throw new Error(s(0x18e));const d=new Command(a,b);return c=c||a0f,Object[s(0x1b9)](d,{'parent':c?.['options']?.['name']}),c[s(0x1b6)](d),d;}[a0q(0x1b6)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1c1));this[t(0x1a7)][t(0x184)](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['cfg'][u(0x170)](),d=c[u(0x196)]===u(0x1b5)?ColorMode['LIGHT']:ColorMode['DARK'];Log[u(0x1bc)](d);}catch(f){Log['error'](f),process[u(0x179)](0x0);}return await this[u(0x189)](a,b);}catch(g){process[u(0x179)](0x1);}}async[a0q(0x189)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this['options'];try{if(this[v(0x1a8)][v(0x1c9)]!==v(0x1c0)){if(!isRoot){const g=(a[0x0]===_prevCmd||a[v(0x19e)]===0x0)&&this[v(0x1a7)][v(0x19e)]>=0x0,h=b[v(0x1c3)]||b['h'];if(g&&h){if(this[v(0x1a7)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][v(0x1a1)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();this[v(0x193)]=this['cfg'][v(0x19b)]();}if(this[v(0x1a8)][v(0x188)]){const j=await this['validateUserIsLoggedIn']();if(!j)throw new MustBeLoggedIn();}if(this[v(0x1a8)][v(0x17e)]){const k=this[v(0x180)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[v(0x1a8)][v(0x19c)]==='number'){if(a[v(0x19e)]<this['options'][v(0x19c)]){Log[v(0x1c2)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[v(0x1a8)][v(0x1af)]==='number'){if(a['length']>=this['options'][v(0x1af)]){Log[v(0x1c2)](v(0x16f));throw new UsageError();}}if(typeof this['options'][v(0x1ca)]==='number'){if(Object['keys'](b)['length']<this['options'][v(0x1ca)]){Log[v(0x1c2)](v(0x1be));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===v(0x1c7)){if(Object[v(0x192)](b)[v(0x19e)]>=this[v(0x1a8)][v(0x173)]){Log['error'](v(0x1a0));throw new UsageError();}}}}b=await this[v(0x1a4)](a,b,this[v(0x1a8)]),_prevCmd=a[0x0];}return await this[v(0x175)][v(0x19a)](this,a,b);}catch(l){Log[v(0x171)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log[v(0x187)](v(0x19d)),this['tableList'](this['_commands']),Log[v(0x195)](v(0x1b1));else{if(l instanceof MustBeInProjectError)Log[v(0x1c2)](v(0x181));else{if(l instanceof NoMeteorFoundError)Log['error'](v(0x18c)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(l instanceof NoMeteorAppFoundError)Log[v(0x1c2)](v(0x1ad));else l instanceof MustBeLoggedIn&&(Log['error'](v(0x174)),Log[v(0x187)](v(0x1b2)));}}}process['exit'](0x1);}}[a0q(0x1a2)](a){const w=a0q,b=new a0e({});b[w(0x184)](['Name','Alias',w(0x186)]),a[w(0x199)]((c,d)=>{const x=w;return c[x(0x1c9)][x(0x178)](d['name']);})[w(0x197)](c=>{const y=w;if(c['name']!==y(0x17c)&&c[y(0x1c9)]!==y(0x19f)){const d=c[y(0x190)](),e=d?y(0x1b8)+c[y(0x1c5)]():c['shortDesc']();b[y(0x184)]([c['name'],c[y(0x17b)](),e]);}}),Log[w(0x1ae)](b[w(0x1c8)]());}async[a0q(0x1b7)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x172)](':');if(!d||d[z(0x19e)]===0x0)throw z(0x17d);if(d[0x0]===z(0x1c0)||d[0x0]==='g'&&d[z(0x19e)]>0x1){const h=this['_commands'][z(0x1a6)](j=>j[z(0x1bb)](z(0x1c0)));if(!h)throw z(0x1b4);const i=d[z(0x18d)](0x1)['join'](':');return b[z(0x1b0)](i),await h[z(0x191)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x1a6)](k=>k['match'](j));if(!g)try{await this[z(0x1a5)]['maybeProxyCommandToMeteor']();}catch(k){throw z(0x194)+j+z(0x1ac);}g&&(f=g[z(0x1a7)]);}if(g){const l=await g[z(0x191)](b,c);return l;}else throw z(0x1b4);}catch(m){Log[z(0x1c2)](m),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xee))/0x1+-parseInt(f(0xf4))/0x2+parseInt(f(0xf2))/0x3+-parseInt(f(0xf1))/0x4+parseInt(f(0xf7))/0x5+parseInt(f(0xf6))/0x6+parseInt(f(0xec))/0x7*(parseInt(f(0xf3))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xcf2a4));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xf5)]()[h(0xef)]('(((.+)+)+)+$')[h(0xf5)]()['constructor'](a1a)[h(0xef)](h(0xf0));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';function a1c(){var i=['toString','32214UTLpdt','650095RFCgVY','10684289YXRShX','apply','1673817nJGGBY','search','(((.+)+)+)+$','6535048zQbLbI','2050797dWQrIi','24bfuaoS','2483682ZbzMRQ'];a1c=function(){return i;};return a1c();}import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xec;var f=c[d];return f;},a1d(a,b);}import'./undo.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x139))/0x1+parseInt(h(0x12b))/0x2*(parseInt(h(0x13d))/0x3)+-parseInt(h(0x145))/0x4*(parseInt(h(0x140))/0x5)+parseInt(h(0x132))/0x6+parseInt(h(0x135))/0x7*(-parseInt(h(0x120))/0x8)+-parseInt(h(0x130))/0x9+-parseInt(h(0x12f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x82725));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x128)]()[j(0x126)](j(0x134))[j(0x128)]()[j(0x121)](a2a)[j(0x126)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';function a2c(){const o=['isFile','askGPT','539015xIyISW','stdout','getGlobalConfig','notice','1984440xBCkWP','fsi','You:\x20','5JTpmzv','cert','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','data','cfg','603444ynOgzN','toLowerCase','Using\x20CA\x20Cert\x20','exit','openapikey','trim','224oKIrkB','constructor','apply','bright','text','parse','search','createInterface','toString','choices','openai','2AjjQaE','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','error','close','3156650jPVDvO','2806587cYBhDd','cacert','1345602fyVFPt','GPT:\x20','(((.+)+)+)+$','28021GdWnBI','ChatGPT\x20style\x20AI\x20interface'];a2c=function(){return o;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x11d;let f=c[d];return f;},a2d(a,b);}import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x127)]({'input':process['stdin'],'output':process[k(0x13a)]});c['question'](k(0x13f),async d=>{const l=k;if(d[l(0x146)]()===l(0x11d)){c[l(0x12e)]();return;}try{const e=await HTTPS[l(0x138)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x125)](e[l(0x143)]);if(f[l(0x12d)])throw new Error(f['error']['message']);Log[l(0x123)](l(0x133)+f?.[l(0x129)][0x0]?.[l(0x124)][l(0x11f)]());}catch(g){Log['error'](g),process[l(0x11d)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':a2m(0x136),'validOpts':[a2m(0x131),a2m(0x11e)],'shortDesc':a2m(0x136),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x13e)][n(0x137)](b[n(0x131)])?(c=b[n(0x131)],Log[n(0x13c)](n(0x147)+c)):Log[n(0x12d)](n(0x142)+c));const d=await this[n(0x144)][n(0x13b)]();if(d[n(0x141)]){if(this[n(0x13e)][n(0x137)](d[n(0x141)]))c=d[n(0x141)];else throw Log['error'](n(0x12c)+c);}let f='';if(b[n(0x11e)])f=b['openapikey'],Log[n(0x13c)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x12a)])f=d[n(0x12a)];else throw Log[n(0x12d)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}Log[n(0x123)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x11d)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x110))/0x1+-parseInt(f(0x11e))/0x2*(-parseInt(f(0x117))/0x3)+-parseInt(f(0x111))/0x4*(parseInt(f(0x112))/0x5)+parseInt(f(0x10f))/0x6*(parseInt(f(0x11a))/0x7)+-parseInt(f(0x11c))/0x8+parseInt(f(0x11d))/0x9*(parseInt(f(0x11b))/0xa)+-parseInt(f(0x116))/0xb*(parseInt(f(0x118))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe7958));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0x114)]()[g(0x119)](g(0x115))[g(0x114)]()[g(0x113)](a3a)['search']('(((.+)+)+)+$');});a3a();import'./aws.command.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x10f;var f=c[d];return f;},a3d(a,b);}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';function a3c(){var h=['constructor','toString','(((.+)+)+)+$','113201LXbsHT','893226jqdrrC','3852WnOSBA','search','43694wZfTzU','10ratEWL','6200432tEqPmz','15053697MZWZnb','12CYdGTJ','1014UQhnWe','1783409SPBoUE','828jrAcLF','30685KcfWfq'];a3c=function(){return h;};return a3c();}import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x172))/0x1*(-parseInt(f(0x17e))/0x2)+parseInt(f(0x175))/0x3+parseInt(f(0x174))/0x4+-parseInt(f(0x178))/0x5*(parseInt(f(0x171))/0x6)+-parseInt(f(0x16f))/0x7+parseInt(f(0x170))/0x8*(parseInt(f(0x176))/0x9)+parseInt(f(0x179))/0xa*(parseInt(f(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x7d588));function a4c(){const i=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','1682912HNSOMX','119487zwAUjs','256437sQlABK','create','5ofVtcg','6930610SblKwa','toString','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','constructor','aws','161560DzhoAl','search','33WcBHQJ','6889715jhvBso','112mmDSdl','4768446SngWnX','8oOOnfv'];a4c=function(){return i;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x17a)]()[g(0x17f)]('(((.+)+)+)+$')[g(0x17a)]()[g(0x17c)](a4a)[g(0x17f)]('(((.+)+)+)+$');});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x16f;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x177)]({'name':a4h(0x17d),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4h(0x17b),'description':a4h(0x173)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5h=a5d;(function(a,b){const f=a5d,c=a();while(!![]){try{const d=parseInt(f(0x1fa))/0x1*(parseInt(f(0x1f3))/0x2)+parseInt(f(0x1eb))/0x3+parseInt(f(0x1f5))/0x4+-parseInt(f(0x1ed))/0x5+-parseInt(f(0x1e3))/0x6*(parseInt(f(0x1e5))/0x7)+-parseInt(f(0x1f8))/0x8+-parseInt(f(0x1e7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xc72b0));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const g=a5d;return a5a[g(0x1f6)]()['search'](g(0x1f0))[g(0x1f6)]()[g(0x1e6)](a5a)[g(0x1f7)](g(0x1f0));});a5a();function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1df;let f=c[d];return f;},a5d(a,b);}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a5h(0x1e9)]({'name':'create-ecr','aliases':[a5h(0x1fb)],'usage':a5h(0x1ef),'requiredOpts':[a5h(0x1e4)],'validOpts':[a5h(0x1e1)],'shortDesc':a5h(0x1f2),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5h(0x1e0),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const i=a5h;try{const c=await this['aws']['ecrCreateRepository'](b);c&&c[i(0x1ee)][i(0x1fc)]===0xc8&&c['repository']?(Log[i(0x1ea)](i(0x1f9)),Log['notice'](i(0x1df)+c[i(0x1f4)][i(0x1ec)])):Log[i(0x1f1)](i(0x1e8)),process[i(0x1e2)](0x0);}catch(d){Log[i(0x1f1)](d),process[i(0x1e2)](0x1);}},a5e);function a5c(){const j=['358CAEQAs','repository','1284708GfSoCI','toString','search','5359408JyTrFS','Repository\x20created\x20successfully.','1409KeTAQB','cecr','httpStatusCode','Repository\x20URI:\x20','maka\x20aws:cecr\x20--name=my-new-repo','region','exit','215268AtxDMB','name','35pAZoXe','constructor','4403547SLSmDq','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','create','success','4792989TEetcj','repositoryUri','83300oWIaCi','$metadata','maka\x20aws:create-ecr','(((.+)+)+)+$','error','Create\x20an\x20Elastic\x20Container\x20Repository'];a5c=function(){return j;};return a5c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6k=a6d;(function(a,b){const h=a6d,c=a();while(!![]){try{const d=parseInt(h(0x14b))/0x1*(-parseInt(h(0x138))/0x2)+parseInt(h(0x13d))/0x3*(parseInt(h(0x148))/0x4)+parseInt(h(0x146))/0x5+parseInt(h(0x14d))/0x6+-parseInt(h(0x13f))/0x7+parseInt(h(0x149))/0x8+-parseInt(h(0x143))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xaaa7c));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a6d;if(c){const e=c[i(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0x14c)]()[j(0x153)](j(0x13e))['toString']()['constructor'](a6a)['search'](j(0x13e));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x138;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a6c(){const m=['apply','3627576arrEwI','exit','linkEC2ToRoute53','6536650nLPyux','create','4msPbjg','6867832IsnLav','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','4OzEZfo','toString','2961642CmeLvf','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','aws','error','domain','maka\x20aws:create-hosted-zone','search','Instance\x20not\x20found','maka\x20aws:chz\x20--domain=example.com','694548stvnjV','publicIp','Set\x20hosted\x20zone\x20to\x20an\x20instance?','route53CreateHostedZone','chz','97479AcCOqL','(((.+)+)+)+$','1405215LhVdPd','maka\x20aws:create-hosted-zone\x20--domain=example.com','create-hosted-zone'];a6c=function(){return m;};return a6c();}Command[a6k(0x147)]({'name':a6k(0x141),'aliases':[a6k(0x13c)],'usage':a6k(0x152),'requiredOpts':[a6k(0x151)],'validOpts':[],'shortDesc':a6k(0x14a),'examples':[a6k(0x140),a6k(0x155)]},async function(a,b){const l=a6k;try{const c=b['domain'];this['aws'][l(0x13b)](c);const d=await Actions['confirm'](l(0x13a));if(d){const f=await this[l(0x14f)]['chooseInstance']();if(f?.['id']){if(!f[l(0x139)])throw Log['error'](l(0x14e));this[l(0x14f)][l(0x145)](f['id'],f[l(0x139)],c);}else throw l(0x154);}}catch(g){g&&Log[l(0x150)](g),process[l(0x144)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7a0=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(0xab))/0x1+-parseInt(Y(0xaa))/0x2*(-parseInt(Y(0x72))/0x3)+parseInt(Y(0x76))/0x4*(-parseInt(Y(0x75))/0x5)+-parseInt(Y(0x8e))/0x6*(-parseInt(Y(0x99))/0x7)+parseInt(Y(0x91))/0x8+-parseInt(Y(0xa5))/0x9*(-parseInt(Y(0x98))/0xa)+-parseInt(Y(0xb0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x2f42f));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x72;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const Z=a7d;return a7a[Z(0x93)]()[Z(0xa2)](Z(0xa0))[Z(0x93)]()[Z(0x89)](a7a)[Z(0xa2)](Z(0xa0));});a7a();import a7e from'./aws.command.js';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a7c(){const a2=['getAppConfigPath','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Security\x20Group\x20Name:\x20[','6jrRuTq','186962FUcipm','success','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Creating\x20user\x20data\x20file\x20in\x20','bright','7381506akHLZA','aws','notice','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Web\x20App','ec2describeKeys','number','302118vPlfvI','User\x20Data:','Name','516575fMYCrW','4snRgwJ','maka\x20aws:create-instance','maka\x20aws:create-instance\x20--env\x20dev','isFile','Subnet:\x20','ec2create','ec2createSG','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Security\x20Group:\x20','Remove\x20the\x20security\x20group\x20','readFileSync','listAvailableSubnets','getEnvFromShorthand','EC2\x20Name:\x20[','error','Instance\x20Count:\x20','maka\x20aws:ci\x20--env\x20prod','environment','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','constructor','createKeyPair','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ask','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','4278XzzreR','split','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','2850856MISDSm','Key-Pair:\x20','toString','confirm','env','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Setting\x20the\x20key-pair\x20to:\x20','1387700trQmey','2149KZVKxF','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','chooseVPC','**\x20Available\x20key-pairs\x20**','maka-cli','1:1','(((.+)+)+)+$','join','search','getSubnetCidr','fsi','18KfvdJi','create-instance'];a7c=function(){return a2;};return a7c();}Command['create']({'name':a7a0(0xa6),'aliases':['ci'],'usage':a7a0(0x77),'examples':[a7a0(0x78),a7a0(0x86)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7a0(0x95)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7a0(0x9b)},async function(a,b){const a1=a7a0;try{const {projectConfig:c,fsi:d,cfg:f}=this,{appName:g}=c,h=f[a1(0x82)](b[a1(0x95)]),i=f[a1(0xa7)](h),j=g+'-'+h,k=await Actions[a1(0x8c)](a1(0x83)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](a1(0xb3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await this[a1(0xb1)][a1(0x8a)]({'env':h});r=y,s=z,Log[a1(0xac)](a1(0x97)+r);}else try{Log[a1(0xb2)](a1(0x9d));const A=r?r:k,B=await this[a1(0xb1)][a1(0xb5)]({'suggestion':A}),C=await Actions[a1(0x8c)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[a1(0x84)](a1(0x90)),Log[a1(0xb2)]('No\x20instance\x20has\x20been\x20created.');return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D['name'],Log['success'](a1(0x97)+r);break;}}}catch(E){Log[a1(0x84)](E);}l=await this[a1(0xb1)][a1(0x9c)]();const t=await Actions['confirm'](a1(0x8b),!![]);let u;if(t){const F=l===''?await this[a1(0xb1)][a1(0x9c)]():l;u=await Actions[a1(0x8c)](a1(0xa9)+k+']')||k;const G=await Actions[a1(0x8c)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',H=G[a1(0x8f)](',');await this[a1(0xb1)][a1(0x7c)]({'description':a1(0xb4),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await this[a1(0xb1)]['chooseSecurityGroup'](u),n=await this['aws']['listAvailableAMIs'](),p=await this[a1(0xb1)][a1(0x81)]();const v=0x1,w=0x1;try{const I=await Actions[a1(0x8c)](a1(0x8d))||a1(0x9f),J=I[a1(0x8f)](':')[0x0],K=I[a1(0x8f)](':')[0x1];typeof parseInt(J)===a1(0xb6)&&typeof parseInt(K)===a1(0xb6)&&Log[a1(0xac)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+J+':'+K);}catch(L){Log['error'](L);}try{const M=await Actions[a1(0x8c)](a1(0x9a))||'t3.micro';typeof M==='string'&&(o=M);}catch(N){Log[a1(0x84)](N);}let x='';try{const O=await Actions[a1(0x94)](a1(0xad),![]);O&&(x=a7f[a1(0xa1)](i,'user-data'),Log[a1(0xb2)](a1(0xae)+x),await this[a1(0xa4)]['createFile']({'filePath':x,'data':''}),await Actions[a1(0x94)](a1(0xa8)));}catch(P){Log[a1(0x84)](P);}try{const Q=await this[a1(0xb1)][a1(0xa3)](p);Log['notice']('ImageID:'+n),Log['notice'](a1(0x85)+v+':'+w),Log[a1(0xb2)]('Instace\x20Type:\x20'+o),Log[a1(0xb2)](a1(0x92)+r),Log[a1(0xb2)](a1(0x7e)+m),Log[a1(0xb2)](a1(0x7a)+Q);if(x){Log[a1(0xb2)](a1(0x73)+x);const S=a7g[a1(0x80)](x)[a1(0x93)]();Log[a1(0xb2)](S);}const R=await Actions[a1(0x94)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(R){const T=await this['aws'][a1(0x7b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':a1(0x9e)},{'Key':a1(0x87),'Value':h},{'Key':a1(0x74),'Value':k}],...x&&{'userData':x}});T&&(Log[a1(0xac)](a1(0x96)),Log[a1(0xaf)](a1(0x7d)));}else{Log[a1(0xb2)](a1(0x88));const U=await Actions[a1(0x94)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);U&&(this[a1(0xb1)]['deleteKeyPair'](r),d[a1(0x79)](s)&&a7g['unlinkSync'](s));const V=await Actions[a1(0x94)](a1(0x7f)+m+'\x20?',!![]);V&&this[a1(0xb1)]['deleteSecurityGroup'](m);}}catch(W){Log[a1(0x84)](W);}}catch(X){X&&Log[a1(0x84)](X),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
function a8c(){const l=['769400zbXymV','create','643190nzKrLf','ckp','448394kfvqKL','apply','552980aJlzEB','maka\x20aws:create-key-pair','21YlkWAG','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','getEnvFromShorthand','toString','error','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','1029873EFquIK','create-key-pair','search','44ZnKwfg','2568NdillW','constructor','352hXdCpS','createKeyPair','38646nkylzg','3083436IwTxBl','env','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','exit'];a8c=function(){return l;};return a8c();}const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x7b))/0x1+parseInt(g(0x77))/0x2+parseInt(g(0x6a))/0x3+parseInt(g(0x6d))/0x4*(-parseInt(g(0x79))/0x5)+-parseInt(g(0x73))/0x6*(-parseInt(g(0x7f))/0x7)+-parseInt(g(0x6e))/0x8*(-parseInt(g(0x72))/0x9)+parseInt(g(0x7d))/0xa*(-parseInt(g(0x70))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xdea33));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x67)]()[i(0x6c)](i(0x81))[i(0x67)]()[i(0x6f)](a8a)['search'](i(0x81));});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x67;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x78)]({'name':a8j(0x6b),'aliases':[a8j(0x7a)],'usage':a8j(0x7e),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x80)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x74)],'validOpts':[],'shortDesc':a8j(0x69),'description':a8j(0x75)},async function(a,b){const k=a8j;try{const {aws:c}=this,d=this['cfg'][k(0x82)](b[k(0x74)]);c[k(0x71)]({'env':d});}catch(f){f&&Log[k(0x68)](f),process[k(0x76)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(
|
|
1
|
+
const a9p=a9d;function a9c(){const s=['108VLYMkx','12AmmZEa','4EUJxvW','3875320NEyeLe','maka\x20aws:create-secuirty-group','exit','22,80,443','ask','List\x20is\x20not\x20all\x20numbers','chooseVPC','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','469147CRZfnL','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','Web\x20App','csg','125789HPNtaL','search','maka\x20aws\x20create-security-group','6947672OShKQH','constructor','Security\x20Group\x20Name:\x20[','6270MrznOC','4181799DmhtVU','apply','create','17397ZwVXww','match','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','toString','18rTokmW','(((.+)+)+)+$','create-security-group','19413724SjzhRD'];a9c=function(){return s;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x17e;let f=c[d];return f;},a9d(a,b);}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x19e))/0x1*(-parseInt(m(0x18b))/0x2)+parseInt(m(0x184))/0x3*(parseInt(m(0x191))/0x4)+parseInt(m(0x192))/0x5+parseInt(m(0x18f))/0x6*(parseInt(m(0x19a))/0x7)+-parseInt(m(0x180))/0x8+parseInt(m(0x187))/0x9*(parseInt(m(0x183))/0xa)+parseInt(m(0x18e))/0xb*(-parseInt(m(0x190))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xc8aa2));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x18a)]()[o(0x17e)](o(0x18c))['toString']()[o(0x181)](a9a)[o(0x17e)](o(0x18c));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x186)]({'name':a9p(0x18d),'aliases':[a9p(0x19d)],'usage':a9p(0x17f),'validOpts':[],'shortDesc':a9p(0x199),'mustBeInMakaProject':!![],'description':a9p(0x19b),'examples':[a9p(0x193),'maka\x20aws:csg']},async function(a,b){const q=a9p,{projectConfig:c,aws:d}=this;try{const {appName:f}=c,g=await d[q(0x198)](),h=b['name']?b['name']:''+f,i=await Actions['ask'](q(0x182)+h+']')||h,j=await Actions[q(0x196)](q(0x189))||q(0x195),k=j['split'](',');k['forEach'](l=>{const r=q;if(!l[r(0x188)](/^\d+$/))throw r(0x197);}),await d['ec2createSG']({'description':q(0x19c),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0x194)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xd6))/0x1*(-parseInt(f(0xd9))/0x2)+parseInt(f(0xd8))/0x3*(parseInt(f(0xe4))/0x4)+parseInt(f(0xd3))/0x5*(-parseInt(f(0xda))/0x6)+parseInt(f(0xd5))/0x7+-parseInt(f(0xe7))/0x8+parseInt(f(0xe0))/0x9+-parseInt(f(0xe5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xdd435));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xd0;let f=c[d];return f;},a10d(a,b);}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xea)]()[h(0xeb)](h(0xdb))[h(0xea)]()['constructor'](a10a)[h(0xeb)](h(0xdb));});a10a();import a10e from'./aws.command.js';function a10c(){const k=['36sxGQjy','(((.+)+)+)+$','delete-ecr','\x20in\x20region\x20','exit','create','3397320dosEpB','Delete\x20an\x20Elastic\x20Container\x20Repository','apply','region','317236axzfjR','3925070cmXkbH','success','2067760Mmdljs','\x20deleted\x20successfully\x20in\x20region\x20','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','toString','search','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','Failed\x20to\x20delete\x20the\x20repository:\x20','Repository\x20','259170nIlKoD','name','10792712wrmiUL','3OsgglY','.\x20Error:\x20','42HBRDjX','774232vewxca'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0xdf)]({'name':a10i(0xdc),'aliases':['decr'],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':[a10i(0xd4),a10i(0xe3)],'validOpts':[],'shortDesc':a10i(0xe1),'examples':[a10i(0xe9),a10i(0xd0)]},async function(a,b){const j=a10i,{aws:c}=this;try{await c['ecrDeleteRepository']({'repoName':b[j(0xd4)],'region':b[j(0xe3)]}),Log[j(0xe6)](j(0xd2)+b['name']+j(0xe8)+b[j(0xe3)]+'.'),process[j(0xde)](0x0);}catch(d){Log['error'](j(0xd1)+b['name']+j(0xdd)+b[j(0xe3)]+j(0xd7)+d),process[j(0xde)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x19e;let f=c[d];return f;},a11d(a,b);}const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x1a1))/0x1+parseInt(f(0x1a4))/0x2*(parseInt(f(0x1a8))/0x3)+parseInt(f(0x19e))/0x4+parseInt(f(0x1aa))/0x5+-parseInt(f(0x1ae))/0x6+parseInt(f(0x1a2))/0x7+-parseInt(f(0x1af))/0x8*(parseInt(f(0x1a3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb8f63));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x1a0)]()['search'](h(0x1a5))['toString']()['constructor'](a11a)[h(0x1b0)](h(0x1a5));});function a11c(){const k=['maka\x20aws:describe-instances','describe-instances','9JEGpal','apply','3855835dukMVa','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','exit','maka\x20aws:di','6784320yRtnTr','3268656TwatPx','search','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','14520GJhNvQ','error','toString','557348quXxZE','7414785cyZZtl','18cVhIAV','952522GqOlau','(((.+)+)+)+$'];a11c=function(){return k;};return a11c();}a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11i(0x1a7),'aliases':['di'],'usage':a11i(0x1a6),'validOpts':[],'shortDesc':a11i(0x1ab),'examples':['maka\x20aws:describe-instances',a11i(0x1ad)],'description':a11i(0x1b2)},async function(){const j=a11i;try{const {aws:a}=this;a[j(0x1b1)]();}catch(b){b&&Log[j(0x19f)](b),process[j(0x1ac)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a12i=a12d;(function(a,b){var f=a12d,c=a();while(!![]){try{var d=-parseInt(f(0x156))/0x1*(parseInt(f(0x14a))/0x2)+parseInt(f(0x141))/0x3+parseInt(f(0x146))/0x4*(parseInt(f(0x13f))/0x5)+-parseInt(f(0x14f))/0x6+-parseInt(f(0x158))/0x7*(parseInt(f(0x143))/0x8)+-parseInt(f(0x151))/0x9*(parseInt(f(0x14e))/0xa)+-parseInt(f(0x155))/0xb*(-parseInt(f(0x147))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x49486));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a12d;if(c){var e=c[g(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var h=a12d;return a12a[h(0x153)]()[h(0x148)](h(0x14c))[h(0x153)]()[h(0x145)](a12a)[h(0x148)](h(0x14c));});a12a();import a12e from'./aws.command.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x13f;var f=c[d];return f;},a12d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0x149)]({'name':'describe-key-pairs','aliases':[a12i(0x14d)],'usage':a12i(0x140),'validOpts':[],'shortDesc':a12i(0x144),'examples':[a12i(0x140),a12i(0x14b)]},async function(){var j=a12i;try{this[j(0x154)][j(0x152)]();}catch(a){a&&Log[j(0x157)](a),process[j(0x150)](0x0);}},a12e);function a12c(){var k=['maka\x20aws:dkp','(((.+)+)+)+$','dkp','3281090EShOsX','2520504bgmTtD','exit','9TuEXXj','ec2describeKeys','toString','aws','4287261gvKAKk','3pUlLdW','error','2498083HKJQIN','1525560hRFHNO','maka\x20aws:describe-key-pairs','1284564vKPQbF','apply','8HoPfjy','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','constructor','4VQCfPK','36dtSeDG','search','create','331550isMgAq'];a12c=function(){return k;};return a12c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13m=a13d;(function(a,b){const j=a13d,c=a();while(!![]){try{const d=-parseInt(j(0x138))/0x1*(parseInt(j(0x148))/0x2)+parseInt(j(0x130))/0x3*(parseInt(j(0x156))/0x4)+parseInt(j(0x153))/0x5+-parseInt(j(0x14e))/0x6*(parseInt(j(0x14b))/0x7)+parseInt(j(0x134))/0x8*(-parseInt(j(0x140))/0x9)+parseInt(j(0x14c))/0xa*(parseInt(j(0x13b))/0xb)+parseInt(j(0x13c))/0xc*(parseInt(j(0x13e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x834a9));function a13c(){const q=['Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','includes','1TdkwxI','getSecurityGroups','Deleting\x20a\x20','1389432pvXjdR','132SOzIQE','search','1882322eueVBJ','bright','4059900xIRQAo','Not\x20deleting\x20secuirty\x20group','\x20SGID:\x20','forEach','apply','sgId','success','(((.+)+)+)+$','1985502oHXIQw','deleteSecurityGroup','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','231rfZNXX','10krIIbu','error','103254lkBdhk','name','confirm','ID:\x20','exit','2239060nBBkHF','\x20SG\x20NAME:\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','916NypDWZ','toString','5013VYEmBO','maka\x20aws:delete-sg','create','appName','8dmlODv','delete-security-group'];a13c=function(){return q;};return a13c();}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a13d;if(c){const e=c[k(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const l=a13d;return a13a['toString']()['search'](l(0x147))[l(0x12f)]()['constructor'](a13a)[l(0x13d)](l(0x147));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x12f;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13m(0x132)]({'name':a13m(0x135),'aliases':['dsg'],'usage':'maka\x20aws:delete-sg','mustBeInMakaProject':!![],'validOpts':[],'shortDesc':a13m(0x136),'examples':[a13m(0x131),'maka\x20aws:dsg']},async function(){const n=a13m;try{const {projectConfig:a,aws:b}=this;let c='';c=a[n(0x133)];const {sgList:d}=await b[n(0x139)]();d[n(0x143)](function(i){const o=n;i[o(0x14f)][o(0x137)](c)?Log['notice']('ID:\x20'+i['id']+o(0x154)+i['name']+'\x20SGID:\x20'+i[o(0x145)]):Log[o(0x13f)](o(0x151)+i['id']+o(0x154)+i['name']+o(0x142)+i[o(0x145)]);});let f='';const g=await Actions['ask'](n(0x155));d['forEach'](function(i){const p=n;i['id']===parseInt(g)&&(f=i[p(0x145)]);});if(!f)throw Log[n(0x14d)](n(0x14a));const h=await Actions[n(0x150)](n(0x13a)+f+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);h?(await b[n(0x149)](f),Log[n(0x146)]('Deleted\x20'+f)):Log[n(0x14d)](n(0x141)),process[n(0x152)](0x0);}catch(i){i&&Log[n(0x14d)](i),process[n(0x152)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1*(parseInt(f(0x136))/0x2)+-parseInt(f(0x13d))/0x3*(parseInt(f(0x13f))/0x4)+-parseInt(f(0x130))/0x5+-parseInt(f(0x12c))/0x6+parseInt(f(0x13b))/0x7+-parseInt(f(0x12e))/0x8*(-parseInt(f(0x134))/0x9)+parseInt(f(0x129))/0xa*(-parseInt(f(0x141))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x29f08));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x128)]()['search'](h(0x13c))[h(0x128)]()['constructor'](a14a)[h(0x140)](h(0x13c));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x127;let f=c[d];return f;},a14d(a,b);}function a14c(){const k=['maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','exit','apply','45459TDIxcu','maka\x20aws:lecr\x20--regions=all','11266jyizDX','listAllEcrRepositories','maka\x20aws:list-ecr','error','29VmRXgI','1396472ezCMEy','(((.+)+)+)+$','167175tBjWOg','success','24lNNXDT','search','692857Ppwfvx','lecr','toString','10LicjGV','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','Completed\x20listing\x20ECR\x20repositories.','98394jZCxAy','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','440fGMEIu','regions','275690xekvnZ'];a14c=function(){return k;};return a14c();}Command['create']({'name':'list-ecr','aliases':[a14i(0x127)],'usage':a14i(0x12d),'requiredOpts':[],'validOpts':[a14i(0x12f)],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14i(0x138),a14i(0x131),a14i(0x135)]},async function(a,b){const j=a14i;try{const {aws:c}=this;await c[j(0x137)](b['regions']),Log[j(0x13e)](j(0x12b)),process[j(0x132)](0x0);}catch(d){Log[j(0x139)](j(0x12a)+d),process[j(0x132)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a15c(){const
|
|
1
|
+
function a15c(){const k=['running','2674224Vckpid','apply','1193690zpYwqv','18737208laNpgr','\x20Ready?','1899ywbETn','(((.+)+)+)+$','1183695QqYAKA','rbi','create','toString','206DCqNln','Reboot\x20an\x20EC2\x20instance','3134082FFevHu','search','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','1055336dFEzSJ','error','confirm','status','reboot-instance','name','constructor','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','instanceId','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','exit'];a15c=function(){return k;};return a15c();}const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1*(-parseInt(f(0x140))/0x2)+-parseInt(f(0x13c))/0x3+-parseInt(f(0x129))/0x4+-parseInt(f(0x137))/0x5+-parseInt(f(0x126))/0x6+-parseInt(f(0x135))/0x7+parseInt(f(0x138))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x543ce));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x13f)]()[h(0x127)]('(((.+)+)+)+$')['toString']()[h(0x12f)](a15a)[h(0x127)](h(0x13b));});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x125;let f=c[d];return f;},a15d(a,b);}a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x13e)]({'name':a15i(0x12d),'aliases':[a15i(0x13d)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15i(0x125),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a15i;try{const {aws:a}=this,b=await a['chooseInstance']();if(b?.[j(0x12c)]===j(0x134)){const c=await Actions[j(0x12b)](j(0x132)+b[j(0x12e)]+j(0x139));c&&b[j(0x131)]?a['ec2rebootInstance']({'instanceId':b[j(0x131)]}):Log['error'](j(0x128)+b[j(0x12e)]+'\x20is\x20still\x20running.');}else Log['error'](j(0x130));}catch(d){d&&Log[j(0x12a)](d),process[j(0x133)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16c(){const L=['maka\x20aws:register-domain-name\x20--domain=example.com','ask','values','8TOvdCD','toString','\x20/\x20Year\x20\x0a','Contact','select','maka\x20aws:register-domain-name','ASSOCIATION','contactType','The\x20domain\x20name:\x20','Auto\x20Renew:\x20','RESELLER','325137QBlWQz','checkDomainAvailability','registerDomain','\x20for\x20','My\x20Company,\x20LLC.','City\x20[Honolulu]:\x20','96WQGDjk','PUBLIC_BODY','apply','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','create','rdn','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Duration\x20in\x20years\x20[1]:\x20','1306255apCbhm','Are\x20you\x20sure?','PERSON','\x20is\x20available\x20for:','95977grFeda','+1.5555555555','(((.+)+)+)+$','notice','1196168DniMZx','Domain\x20name\x20is\x20unavailable','exit','Choose\x20contact\x20type','error','confirm','search','Country\x20Code\x20[US]:\x20','6uewdbY','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','mail@example.com','\x20years\x20(','Contact\x20Last\x20Name\x20[Person]:\x20','+1.5555555556','10ZoiOOu','domain','Do\x20you\x20wish\x20to\x20register\x20','Person','123\x20Glorious\x20Way','Honolulu','register-domain-name','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Address\x20Line\x202:\x20','96816','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','1746117WwrXUE','6014723PokaHA','includes','66077SBgitk','Contact\x20Email\x20[mail@example.com]:\x20','COMPANY'];a16c=function(){return L;};return a16c();}const a16J=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x127))/0x1*(parseInt(F(0x113))/0x2)+parseInt(F(0xf5))/0x3*(-parseInt(F(0x12d))/0x4)+-parseInt(F(0x103))/0x5+parseInt(F(0xfb))/0x6*(parseInt(F(0x107))/0x7)+-parseInt(F(0x10b))/0x8+parseInt(F(0x124))/0x9*(-parseInt(F(0x119))/0xa)+parseInt(F(0x125))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x22e09));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x12e)]()[H(0x111)](H(0x109))[H(0x12e)]()['constructor'](a16a)[H(0x111)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf0;let f=c[d];return f;},a16d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const I=a16d;return Object[I(0x12c)](CountryCode)[I(0x126)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16J(0xff)]({'name':a16J(0x11f),'aliases':[a16J(0x100)],'usage':a16J(0x132),'requiredOpts':[a16J(0x11a)],'validOpts':[],'shortDesc':a16J(0x120),'examples':[a16J(0x12a),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const K=a16J,{aws:c}=this;try{const d=b[K(0x11a)],{available:f,cost:g}=await c[K(0xf6)](d);if(f&&g){Log[K(0x10a)](K(0xf2)+d+K(0x106));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+K(0x12f));const j=await Actions[K(0x110)](K(0x11b)+d+'?',![]);if(j){const k={'message':K(0x10e),'name':K(0xf1),'choices':[{'name':K(0xf0),'value':K(0xf0)},{'name':K(0x129),'value':'COMPANY'},{'name':K(0x105),'value':K(0x105)},{'name':K(0xfc),'value':'PUBLIC_BODY'},{'name':'RESELLER','value':K(0xf4)}]},l=await Actions[K(0x12b)](K(0x102))||'1',m=await Actions[K(0x12b)]('Contact\x20First\x20Name\x20[Contact]:\x20')||K(0x130),n=await Actions[K(0x12b)](K(0x117))||K(0x11c),o=await Actions[K(0x131)](k),p=await Actions[K(0x12b)](K(0x101))||K(0x11d),q=await Actions[K(0x12b)](K(0x121)),r=await Actions[K(0x12b)](K(0xfa))||K(0x11e),s=await Actions[K(0x12b)]('Zip\x20Code\x20[96816]:\x20')||K(0x122),t=await Actions[K(0x12b)]('State\x20[HI]:\x20')||'HI',u=await Actions['ask'](K(0x112))||'US',v=getCountryCodeEnum(u);if(!v)throw Log[K(0x10f)]('Invalid\x202\x20character\x20country\x20code');const w=await Actions['ask'](K(0x114))||K(0x108),x=await Actions[K(0x12b)](K(0xfe))||K(0x118),y=await Actions['ask'](K(0x128))||K(0x115),z=await Actions[K(0x110)](K(0xf3)),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!==K(0x105)){const D=await Actions['ask']('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||K(0xf9);A['OrganizationName']=D;}const B=h||0x0*parseInt(l);Log[K(0x10a)](K(0x123)),Log['warn'](B+'\x20'+i+K(0xf8)+l+K(0x116)+h+'\x20'+i+'\x20/\x20Year)');const C=await Actions[K(0x110)](K(0x104));C&&await c[K(0xf7)](A,d,parseInt(l),z);}}else throw K(0x10c);}catch(E){E&&Log[K(0x10f)](E),process[K(0x10d)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x1a4))/0x1*(parseInt(h(0x1a8))/0x2)+parseInt(h(0x1ab))/0x3+parseInt(h(0x1a0))/0x4*(-parseInt(h(0x1a6))/0x5)+-parseInt(h(0x1a1))/0x6+parseInt(h(0x1a7))/0x7*(parseInt(h(0x1a3))/0x8)+parseInt(h(0x194))/0x9+parseInt(h(0x19f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x3089c));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x19a)]()[j(0x19e)](j(0x1a2))[j(0x19a)]()[j(0x195)](a17a)[j(0x19e)]('(((.+)+)+)+$');});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x190;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a17k(0x192),'aliases':['rkp'],'usage':a17k(0x1af),'validOpts':[],'shortDesc':a17k(0x1ad),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a17k(0x1af),a17k(0x199)]},async function(){const l=a17k,{aws:a}=this;try{const b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0x1aa)](l(0x19c));b?.[l(0x190)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x191)]);});if(!c)throw Log['error'](l(0x1ae));const f=await Actions[l(0x196)]('Deleting\x20a\x20'+c+l(0x19d),![]);f?(await a[l(0x1a5)](c),Log[l(0x1ac)](l(0x193)+c)):Log[l(0x19b)](l(0x197)),process[l(0x198)](0x0);}catch(g){g&&Log[l(0x19b)](g),process[l(0x198)](0x1);}},a17e);function a17c(){const n=['1168515dtWRng','constructor','confirm','Not\x20deleting\x20keypair','exit','maka\x20aws:rkp','toString','error','Please\x20choose\x20a\x20key\x20to\x20delete:','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','search','5226720DTuYYv','587356JIYpEf','2253012ndlxSE','(((.+)+)+)+$','304afFPWK','2rSPmIq','deleteKeyPair','5klLWTT','23142uoJfDr','207510hBaCcp','apply','ask','451584ztbqlA','success','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:remove-key-pair','forEach','name','remove-key-pair','Deleted\x20'];a17c=function(){return n;};return a17c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(
|
|
1
|
+
const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(0xdb))/0x1+parseInt(n(0xdf))/0x2+parseInt(n(0xea))/0x3+-parseInt(n(0xec))/0x4*(parseInt(n(0xf1))/0x5)+-parseInt(n(0xef))/0x6*(-parseInt(n(0x100))/0x7)+-parseInt(n(0xf9))/0x8+-parseInt(n(0xe3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x9e1c2));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xdb;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0xfa)]()[o(0xe5)](o(0xf5))[o(0xfa)]()['constructor'](a18a)[o(0xe5)](o(0xf5));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'set-host','aliases':[a18p(0xfc)],'usage':a18p(0xfb),'mustBeInMakaProject':!![],'requiredOpts':[a18p(0xeb)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18p(0xe0),'examples':['maka\x20aws:set-host\x20--env\x20dev','maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const q=a18p,{projectConfig:c,aws:d,cfg:f}=this;try{const g=f[q(0xe1)](b[q(0xeb)]),h=f[q(0xe9)](g),i=await d[q(0xf2)](),j=a18e[q(0x105)](h,'ssh.json');!this[q(0xed)][q(0xf6)](j)&&await this[q(0xdd)][q(0xfe)]({'srcPath':q(0xdc),'destPath':j,'context':{'app':c['appName']},'config':c});const k=JSON[q(0xf3)](a18f[q(0xff)](j,q(0xde))),l=await Actions['ask'](q(0x101))||q(0xe4);if(l){if(l===q(0xe4)||l===q(0xf7)){if(l===q(0xe4))k[q(0xf8)]=i?.[q(0x104)];else l===q(0xf7)&&(k[q(0xf8)]=i?.[q(0xe8)]);}else throw q(0x102);}else k['host']=i?.[q(0xe8)];a18f[q(0xee)](a18e[q(0x105)](h,'ssh.json'),JSON['stringify'](k,null,0x2)),execSync(q(0xf0)+a18e[q(0x105)](h,q(0x103)),{'stdio':q(0xe2)}),Log['success'](q(0xe7)+l+'\x20IP\x20to\x20'+h+a18e[q(0xfd)]+q(0x103));}catch(m){m&&Log[q(0xe6)](m),process[q(0xf4)](0x0);}},a18g);function a18c(){const r=['getAppConfigPath','3699774ZYbkrL','env','2700796LCUvgm','fsi','writeFileSync','22524sIHpEz','cat\x20','5zykxNo','chooseInstance','parse','exit','(((.+)+)+)+$','isFile','private','host','1572544UBcNUO','toString','maka\x20aws\x20set-host','sth','sep','template','readFileSync','1218CXQzdf','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ssh.json','publicIp','join','460901YSOpci','config/ssh.json','scaffold','utf8','894754oFwnYk','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','getEnvFromShorthand','inherit','11478123BFISKE','public','search','error','\x0aSaved\x20host\x20','privateIp'];a18c=function(){return r;};return a18c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1e6))/0x1+parseInt(f(0x1db))/0x2*(parseInt(f(0x1e4))/0x3)+-parseInt(f(0x1d7))/0x4+-parseInt(f(0x1de))/0x5*(parseInt(f(0x1f3))/0x6)+-parseInt(f(0x1e9))/0x7+parseInt(f(0x1f2))/0x8*(-parseInt(f(0x1dd))/0x9)+parseInt(f(0x1eb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xc00e0));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1d9)]()[h(0x1e2)]('(((.+)+)+)+$')['toString']()[h(0x1d6)](a19a)[h(0x1e2)]('(((.+)+)+)+$');});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';function a19c(){const k=['3mgZurg','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','1480092ybVeuP','create','error','11914jvclgd','apply','11668450jqcfPn','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','name','maka\x20aws:terminate-instance','exit','125288QpZzsG','18TOEwqH','maka\x20aws:ti','constructor','5857136fBrrDX','instanceId','toString','status','1057726AbiOyq','ec2terminateInstance','333JvpRoV','572835TQqkYq','\x20Ready?','confirm','chooseInstance','search','Terminate\x20an\x20EC2\x20instance'];a19c=function(){return k;};return a19c();}function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a19d(a,b);}import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x1e7)]({'name':'terminate-instance','aliases':['ti'],'usage':a19i(0x1f0),'validOpts':[],'shortDesc':a19i(0x1e3),'description':a19i(0x1ec),'examples':[a19i(0x1f0),a19i(0x1d5)]},async function(){const j=a19i,{aws:a}=this;try{const b=await a[j(0x1e1)]();if(b?.[j(0x1d8)]&&b?.[j(0x1da)]==='running'){const c=await Actions[j(0x1e0)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x1df));c?a[j(0x1dc)]({'instanceId':b[j(0x1d8)]}):Log[j(0x1e8)](j(0x1ee)+b[j(0x1ef)]+j(0x1e5));}else Log[j(0x1e8)](j(0x1ed));}catch(d){d&&Log[j(0x1e8)](d),process[j(0x1f1)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d
|
|
1
|
+
function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x11a;var f=c[d];return f;},a20d(a,b);}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x126))/0x1*(-parseInt(f(0x11d))/0x2)+-parseInt(f(0x11c))/0x3*(-parseInt(f(0x121))/0x4)+parseInt(f(0x127))/0x5*(-parseInt(f(0x11f))/0x6)+parseInt(f(0x125))/0x7+parseInt(f(0x122))/0x8+parseInt(f(0x11e))/0x9+parseInt(f(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xee75f));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x123)](h(0x120))['toString']()[h(0x124)](a20a)[h(0x123)](h(0x120));});a20a();import'./build.js';function a20c(){var i=['apply','382890YECSsP','8Yyonvf','9617634xxciaJ','18DTPowq','(((.+)+)+)+$','20yHYwTt','417296kTZkXg','search','constructor','1205701nHLoAd','192727oDNHQk','1870155EtVynN','9385550QOwaAy'];a20c=function(){return i;};return a20c();}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21v=a21d;(function(a,b){const s=a21d,c=a();while(!![]){try{const d=parseInt(s(0x15c))/0x1+-parseInt(s(0x152))/0x2*(-parseInt(s(0x169))/0x3)+parseInt(s(0x17d))/0x4+parseInt(s(0x16b))/0x5*(parseInt(s(0x155))/0x6)+parseInt(s(0x161))/0x7*(-parseInt(s(0x16f))/0x8)+parseInt(s(0x16c))/0x9*(parseInt(s(0x15d))/0xa)+-parseInt(s(0x177))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xaec34));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a21d;if(c){const e=c[t(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const u=a21d;return a21a[u(0x173)]()['search'](u(0x157))[u(0x173)]()['constructor'](a21a)[u(0x16a)](u(0x157));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{execSync}from'child_process';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x150;let f=c[d];return f;},a21d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a21c(){const y=['19676778WLjsch','force','This\x20project\x27s\x20meteor\x20version\x20(','update','inherit','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','4451128CGFsrm','Meteor\x20is\x20installed.','--force','create','argv','94dLdeyi','app.tar.gz','forEach','1513902bGBHrH','apply','(((.+)+)+)+$','invokeMeteorCommand','pathFromProject','Aborted.','findProjectDirectory','1165672eSFNbt','370gVWUOV','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','mpi','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','1427727WOPMCj',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','--release','getProjectMeteorVersion','maka\x20install\x20--force','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','build','concat','57444gNvrfO','search','5QEHush','72405jQouIE','error','autoupdate','48epVvvH','notice','warn','maka\x20build','toString','getGlobalMeteorVersion','isMeteorInstalled','join'];a21c=function(){return y;};return a21c();}const BuildCommand=Command[a21v(0x150)]({'name':a21v(0x167),'usage':a21v(0x172),'validOpts':[a21v(0x178)],'aliases':['b'],'shortDesc':a21v(0x166),'mustBeInMakaProject':!![],'description':a21v(0x160),'examples':[a21v(0x172)]},async function(a,b){const w=a21v,{mpi:c,fsi:d,pkg:f}=this;try{c[w(0x175)]()?Log[w(0x170)](w(0x17e)):(Log[w(0x171)](w(0x17c)),execSync(w(0x165),{'stdio':w(0x17b)}));await f['checkMeteorPackage'](w(0x16e),{'shouldInstall':!![]});const g=b[w(0x178)];if(!g)try{const k=c[w(0x174)](),l=d[w(0x164)](),m=a21g['gt'](k,l);if(m){const n=await Actions['confirm'](w(0x179)+l+w(0x162)+k+').\x20Update?');n&&c[w(0x158)](w(0x17a),[w(0x163),k]);}}catch(o){Log['error']('Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20'+o);}const h=[d[w(0x159)]({'pathParts':[w(0x167)]})][w(0x168)](process[w(0x151)]['slice'](0x3)),i=d[w(0x15b)](),j=a21e[w(0x176)](i,w(0x167),w(0x153));if(a21f['existsSync'](j)){const p=g??await Actions['confirm'](w(0x15e));if(!p)throw Log['error'](w(0x15a));}h[w(0x154)]((q,r)=>{const x=w;q===x(0x17f)&&h['splice'](r,0x2);}),this[w(0x15f)][w(0x158)](w(0x167),h);}catch(q){console[w(0x16d)](q),process['exit'](0x0);}});export default BuildCommand;
|