@maka/maka-cli 4.12.25 → 4.12.26

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.
Files changed (159) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/templates/service/docker/Dockerfile +2 -2
  140. package/bundle/obf/src/tool.js +1 -1
  141. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  143. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  145. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  147. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/https/https.class.js +1 -1
  149. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  150. package/bundle/obf/src/tools/log/log.class.js +1 -1
  151. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/options/options.class.js +1 -1
  153. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  155. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  157. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  159. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.25",
3
+ "version": "4.12.26",
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 a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x136))/0x1*(-parseInt(n(0x16d))/0x2)+parseInt(n(0x12a))/0x3+-parseInt(n(0x148))/0x4+-parseInt(n(0x156))/0x5+parseInt(n(0x129))/0x6*(parseInt(n(0x149))/0x7)+-parseInt(n(0x131))/0x8+parseInt(n(0x178))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x21090));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x13d)]()[p(0x154)](p(0x155))['toString']()[p(0x169)](a0a)[p(0x154)]('(((.+)+)+)+$');});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x128;let f=c[d];return f;},a0d(a,b);}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0c(){const A=['LIGHT','forEach','maybeProxyCommandToMeteor','exit','1338GJLZUo','632310tDtLqs','shortDesc','create','assign','_commands','fsi','validateMakaProject','1507728rftQrr','options','_handler','processAndRunCommand','maxArgLength','317qVbyQQ','minArgLength','generate','Command\x20requires\x20a\x20name','number','bind','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','toString','addCommand\x20requires\x20a\x20Command\x20instance','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','error','addCommand','validateUserIsLoggedIn','tableList','getGlobalConfig','DARK','Command\x20','Please\x20run\x20\x22maka\x20install\x20meteor\x22','599260oXfDPd','6671hurKkR','light','Too\x20many\x20arguments','validateParams','validateMeteorInstall','Sub-Commands:','murder','call','header','validateMakaSubscription','sort','search','(((.+)+)+)+$','1134990xBasXS','Name','minOptsLength','find','keys','play','Command\x20not\x20found','maxOptsLength','push','Command\x20requires\x20a\x20handler\x20function','Please\x20run\x20\x22maka\x20login\x22','There\x20is\x20no\x20Meteor\x20application\x20here','help','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','mustBeInMakaProject','Command.create\x20requires\x20some\x20options!','Alias','unshift','notice','constructor','mustHaveMeteorInstalled','match','function','666PPbzxm','Too\x20many\x20options','bright','Command.create\x20requires\x20a\x20handler\x20function!','mustBeLoggedIn','name','localeCompare','join','length','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Too\x20few\x20arguments','1545669qkCjnM','apply','pallet','run','invoke'];a0c=function(){return A;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x132)];[a0q(0x12e)];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(r(0x139));if(typeof b!==r(0x16c))throw new Error(r(0x15f));this[r(0x132)]=Object[r(0x12d)]({},a),this[r(0x172)]=this['options'][r(0x172)],this['_commands']=[],this[r(0x133)]=b[r(0x13b)](this);}static[a0q(0x12c)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x165));if(typeof b!==s(0x16c))throw new Error(s(0x170));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x132)]?.[s(0x172)]}),c[s(0x141)](d),d;}[a0q(0x141)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x13e));this[t(0x12e)][t(0x15e)](a);}async[a0q(0x17b)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x12f)][u(0x144)](),d=c[u(0x17a)]===u(0x14a)?ColorMode[u(0x17d)]:ColorMode[u(0x145)];Log['setColorMode'](d),await this[u(0x152)](this);}catch(f){Log[u(0x140)](f),process[u(0x128)](0x0);}return await this[u(0x17c)](a,b);}catch(g){process[u(0x128)](0x1);}}async[a0q(0x17c)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x132)];try{if(this[v(0x132)]['name']!==v(0x138)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x175)]===0x0)&&this['_commands'][v(0x175)]>=0x0,g=b[v(0x162)]||b['h'];if(f&&g){if(this[v(0x12e)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x132)][v(0x164)]){const h=this[v(0x130)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x132)][v(0x171)]){const i=await this[v(0x142)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x132)][v(0x16a)]){const j=this[v(0x14d)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x132)][v(0x137)]===v(0x13a)){if(a[v(0x175)]<this[v(0x132)][v(0x137)]){Log[v(0x140)](v(0x177));throw new UsageError();}}if(typeof this[v(0x132)][v(0x135)]===v(0x13a)){if(a[v(0x175)]>=this[v(0x132)][v(0x135)]){Log['error'](v(0x14b));throw new UsageError();}}if(typeof this[v(0x132)][v(0x158)]==='number'){if(Object[v(0x15a)](b)[v(0x175)]<this['options'][v(0x158)]){Log[v(0x140)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0x132)]['maxOptsLength']===v(0x13a)){if(Object[v(0x15a)](b)['length']>=this['options'][v(0x15d)]){Log[v(0x140)](v(0x16e));throw new UsageError();}}}}b=await this[v(0x14c)](a,b,this[v(0x132)]),_prevCmd=a[0x0];}return await this[v(0x133)][v(0x150)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x168)](v(0x14e)),this[v(0x143)](this['_commands']),Log[v(0x151)](v(0x13f));else{if(k instanceof MustBeInProjectError)Log['error'](v(0x176));else{if(k instanceof NoMeteorFoundError)Log[v(0x140)](v(0x13c)),Log[v(0x168)](v(0x147));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x140)](v(0x161));else k instanceof MustBeLoggedIn&&(Log['error'](v(0x163)),Log['notice'](v(0x160)));}}}process[v(0x128)](0x1);}}[a0q(0x143)](a){const w=a0q,b=new a0e({});b['push']([w(0x157),w(0x166),'Description']),a[w(0x153)]((c,d)=>{const x=w;return c['name'][x(0x173)](d[x(0x172)]);})[w(0x17e)](c=>{const y=w;c[y(0x172)]!==y(0x14f)&&c[y(0x172)]!==y(0x15b)&&b[y(0x15e)]([c[y(0x172)],c['aliases'](),c[y(0x12b)]()]);}),Log[w(0x16f)](b[w(0x13d)]());}async[a0q(0x134)](a,b=[],c={}){const z=a0q;try{const d=a?.['split'](':');if(!d||d[z(0x175)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0x175)]>0x1){const h=this[z(0x12e)][z(0x159)](j=>j[z(0x16b)](z(0x138)));if(!h)throw'Command\x20not\x20found';await this[z(0x152)](h);const i=d['slice'](0x1)[z(0x174)](':');return b[z(0x167)](i),await h[z(0x17b)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x159)](k=>k[z(0x16b)](j));if(!g)try{await this[z(0x12f)][z(0x17f)]();}catch(k){throw z(0x146)+j+'\x20not\x20found';}g&&(await this[z(0x152)](g),f=g[z(0x12e)]);}if(g){const l=await g[z(0x17b)](b,c);return l;}else throw z(0x15c);}catch(m){Log['error'](m),process['exit'](0x1);}}}
1
+ const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x168))/0x1+parseInt(n(0x19d))/0x2+parseInt(n(0x161))/0x3*(parseInt(n(0x189))/0x4)+parseInt(n(0x15c))/0x5*(-parseInt(n(0x15e))/0x6)+-parseInt(n(0x167))/0x7*(parseInt(n(0x18b))/0x8)+-parseInt(n(0x166))/0x9*(parseInt(n(0x184))/0xa)+parseInt(n(0x178))/0xb*(parseInt(n(0x17a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x188df));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x151)]()[p(0x19e)]('(((.+)+)+)+$')[p(0x151)]()['constructor'](a0a)['search'](p(0x182));});a0a();import a0e from'cli-table';function a0c(){const A=['Description','Too\x20few\x20arguments','function','sort','316oiAmXt','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','112CwyLjx','addCommand\x20requires\x20a\x20Command\x20instance','light','shortDesc','number','options','unshift','validateMakaSubscription','assign','validateMakaProject','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','murder','maybeProxyCommandToMeteor','Command\x20format\x20is\x20incorrect','mustBeLoggedIn','aliases','Too\x20few\x20options','Alias','12982ksBIYR','search','setColorMode','maxOptsLength','error','maxArgLength','validateParams','bright','processAndRunCommand','toString','exit','split','Command\x20','match','Too\x20many\x20arguments','Please\x20run\x20\x22maka\x20login\x22','push','LIGHT','play','length','9055RfMLzK','Command\x20requires\x20a\x20handler\x20function','354JpsKLN','validateMeteorInstall','Command\x20not\x20found','3129sRWcEy','help','generate','There\x20is\x20no\x20Meteor\x20application\x20here','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','11385gfuore','55489sqjIWH','52778eQvMmS','mustBeInMakaProject','tableList','addCommand','join','run','_handler','Too\x20many\x20options','invoke','_commands','name','keys','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','apply','minOptsLength','fsi','66yZXCsl','slice','399012FZbGpr','Command.create\x20requires\x20a\x20handler\x20function!','minArgLength','localeCompare','Name','bind','validateUserIsLoggedIn','forEach','(((.+)+)+)+$','notice','180DBvUgT'];a0c=function(){return A;};return a0c();}import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x151;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x190)];[a0q(0x171)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x195));if(!a[r(0x172)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==r(0x187))throw new Error(r(0x15d));this[r(0x190)]=Object['assign']({},a),this['name']=this[r(0x190)][r(0x172)],this[r(0x171)]=[],this[r(0x16e)]=b[r(0x17f)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==s(0x187))throw new Error(s(0x17b));const d=new Command(a,b);return c=c||a0f,Object[s(0x193)](d,{'parent':c?.['options']?.[s(0x172)]}),c[s(0x16b)](d),d;}[a0q(0x16b)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x18c));this[t(0x171)][t(0x158)](a);}async[a0q(0x16d)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x177)]['getGlobalConfig'](),d=c['pallet']===u(0x18d)?ColorMode[u(0x159)]:ColorMode['DARK'];Log[u(0x19f)](d),await this[u(0x192)](this);}catch(f){Log[u(0x1a1)](f),process[u(0x152)](0x0);}return await this[u(0x170)](a,b);}catch(g){process[u(0x152)](0x1);}}async[a0q(0x170)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x190)];try{if(this['options']['name']!==v(0x163)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0x171)]['length']>=0x0,g=b[v(0x162)]||b['h'];if(f&&g){if(this['_commands'][v(0x15b)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][v(0x169)]){const h=this[v(0x194)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x190)][v(0x199)]){const i=await this[v(0x180)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x190)]['mustHaveMeteorInstalled']){const j=this[v(0x15f)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x190)][v(0x17c)]===v(0x18f)){if(a[v(0x15b)]<this[v(0x190)]['minArgLength']){Log['error'](v(0x186));throw new UsageError();}}if(typeof this[v(0x190)][v(0x1a2)]===v(0x18f)){if(a[v(0x15b)]>=this[v(0x190)][v(0x1a2)]){Log[v(0x1a1)](v(0x156));throw new UsageError();}}if(typeof this[v(0x190)]['minOptsLength']===v(0x18f)){if(Object[v(0x173)](b)[v(0x15b)]<this[v(0x190)][v(0x176)]){Log[v(0x1a1)](v(0x19b));throw new UsageError();}}if(typeof this['options'][v(0x1a0)]===v(0x18f)){if(Object['keys'](b)[v(0x15b)]>=this[v(0x190)][v(0x1a0)]){Log['error'](v(0x16f));throw new UsageError();}}}}b=await this[v(0x1a3)](a,b,this[v(0x190)]),_prevCmd=a[0x0];}return await this[v(0x16e)]['call'](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x183)]('Sub-Commands:'),this[v(0x16a)](this[v(0x171)]),Log['header']('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log['error'](v(0x18a));else{if(k instanceof NoMeteorFoundError)Log['error'](v(0x174)),Log[v(0x183)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[v(0x1a1)](v(0x164));else k instanceof MustBeLoggedIn&&(Log['error'](v(0x165)),Log[v(0x183)](v(0x157)));}}}process['exit'](0x1);}}[a0q(0x16a)](a){const w=a0q,b=new a0e({});b[w(0x158)]([w(0x17e),w(0x19c),w(0x185)]),a[w(0x188)]((c,d)=>{const x=w;return c[x(0x172)][x(0x17d)](d['name']);})[w(0x181)](c=>{const y=w;c[y(0x172)]!==y(0x196)&&c[y(0x172)]!==y(0x15a)&&b[y(0x158)]([c['name'],c[y(0x19a)](),c[y(0x18e)]()]);}),Log[w(0x1a4)](b['toString']());}async[a0q(0x1a5)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x153)](':');if(!d||d[z(0x15b)]===0x0)throw z(0x198);if(d[0x0]===z(0x163)||d[0x0]==='g'&&d[z(0x15b)]>0x1){const h=this['_commands']['find'](j=>j[z(0x155)](z(0x163)));if(!h)throw z(0x160);await this['validateMakaSubscription'](h);const i=d[z(0x179)](0x1)[z(0x16c)](':');return b[z(0x191)](i),await h[z(0x16d)](b,c);}let f=this['_commands'],g;for(const j of d){g=f['find'](k=>k['match'](j));if(!g)try{await this[z(0x177)][z(0x197)]();}catch(k){throw z(0x154)+j+'\x20not\x20found';}g&&(await this[z(0x192)](g),f=g[z(0x171)]);}if(g){const l=await g[z(0x16d)](b,c);return l;}else throw z(0x160);}catch(m){Log[z(0x1a1)](m),process[z(0x152)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x85))/0x1*(-parseInt(f(0x8b))/0x2)+parseInt(f(0x8a))/0x3+parseInt(f(0x82))/0x4*(-parseInt(f(0x8d))/0x5)+parseInt(f(0x83))/0x6*(parseInt(f(0x84))/0x7)+parseInt(f(0x7e))/0x8*(parseInt(f(0x89))/0x9)+-parseInt(f(0x80))/0xa+-parseInt(f(0x87))/0xb*(-parseInt(f(0x86))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe9e33));function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x7e;var f=c[d];return f;},a1d(a,b);}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x88)]()[h(0x81)](h(0x8c))[h(0x88)]()['constructor'](a1a)[h(0x81)](h(0x8c));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';function a1c(){var i=['12lkiOOB','14596659SjhQfd','toString','9JSTAiz','1873374mbrHHW','1070414jPbGtQ','(((.+)+)+)+$','615OobtzP','3989024tEcmEu','apply','13342780iNUWVX','search','24424JCHMUZ','4991034GaacSr','14pXwzms','2cAOPhC'];a1c=function(){return i;};return a1c();}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';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xef))/0x1*(parseInt(f(0xf3))/0x2)+parseInt(f(0xf7))/0x3+parseInt(f(0xf8))/0x4+parseInt(f(0xee))/0x5*(-parseInt(f(0xed))/0x6)+parseInt(f(0xf5))/0x7*(parseInt(f(0xf2))/0x8)+-parseInt(f(0xf9))/0x9+-parseInt(f(0xf6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb4982));var a1b=(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;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xf1)]()[g(0xec)](g(0xf0))[g(0xf1)]()[g(0xf4)](a1a)[g(0xec)](g(0xf0));});a1a();import'./aws/_index.js';import'./set/_index.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'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';function a1c(){var h=['2hGfkYC','constructor','679mUubwl','922230hZUXKM','3605889dyAJRz','5819172ApFkVZ','8514090zTNtIF','search','3606wWpQJm','10285JxJfTU','1001037HJsXxx','(((.+)+)+)+$','toString','112040QIIeIA'];a1c=function(){return h;};return a1c();}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';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0xbc))/0x1*(-parseInt(h(0xcd))/0x2)+parseInt(h(0xbf))/0x3+parseInt(h(0xb6))/0x4*(-parseInt(h(0xcb))/0x5)+parseInt(h(0xbd))/0x6*(-parseInt(h(0xc1))/0x7)+-parseInt(h(0xc2))/0x8+-parseInt(h(0xc6))/0x9+parseInt(h(0xb9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x9ed5f));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0xac)]()[j(0xaf)](j(0xbe))[j(0xac)]()[j(0xa0)](a2a)['search'](j(0xbe));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xa0;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';function a2c(){const o=['trim','close','5554885mssIVN','askGPT','2gLZXas','constructor','isFile','data','error','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','Using\x20OpenAI\x20Key\x20','stdout','fsi','GPT:\x20','parse','notice','question','toString','bright','exit','search','openapikey','cert','You:\x20','stdin','ChatGPT\x20style\x20AI\x20interface','cacert','4ZZJppC','openai','Using\x20CA\x20Cert\x20','25137530dfzeUI','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','getGlobalConfig','508202bWSBgH','1250562bHAEcH','(((.+)+)+)+$','1445028AOIrab','apply','35dTrFlJ','798664jjWwMz','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','message','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','5400855kuDJto','createInterface','create'];a2c=function(){return o;};return a2c();}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(0xc7)]({'input':process[k(0xb3)],'output':process[k(0xa6)]});c[k(0xab)](k(0xb2),async d=>{const l=k;if(d['toLowerCase']()===l(0xae)){c[l(0xca)]();return;}try{const e=await HTTPS[l(0xcc)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0xa9)](e[l(0xa2)]);if(f['error'])throw new Error(f[l(0xa3)][l(0xc4)]);Log[l(0xad)](l(0xa8)+f?.['choices'][0x0]?.['text'][l(0xc9)]());}catch(g){Log[l(0xa3)](g),process[l(0xae)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0xc8)]({'name':'ai','description':a2m(0xb4),'validOpts':[a2m(0xb5),a2m(0xb0)],'shortDesc':a2m(0xb4),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0xb5)]&&(this[n(0xa7)][n(0xa1)](b[n(0xb5)])?(c=b[n(0xb5)],Log[n(0xaa)](n(0xb8)+c)):Log[n(0xa3)](n(0xba)+c));const d=await this[n(0xa7)][n(0xbb)]();if(d[n(0xb1)]){if(this[n(0xa7)][n(0xa1)](d['cert']))c=d[n(0xb1)];else throw Log[n(0xa3)](n(0xa4)+c);}let f='';if(b[n(0xb0)])f=b['openapikey'],Log[n(0xaa)](n(0xa5)+f);else{if(d[n(0xb7)])f=d[n(0xb7)];else throw Log[n(0xa3)](n(0xc3));}console['log'](n(0xc5)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0xa3)](g),process[n(0xae)](0x1);}});
1
+ function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xf8;let f=c[d];return f;},a2d(a,b);}const a2l=a2d;function a2c(){const n=['constructor','text','cacert','close','toString','6KsBHoe','getGlobalConfig','fsi','Using\x20OpenAI\x20Key\x20','stdin','4156YFwrBa','GPT:\x20','error','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','239425RqWNWq','notice','search','54171lTYItE','You:\x20','create','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','13623918tDCjmr','610tLbHjf','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','cert','(((.+)+)+)+$','question','10861528MGIrpc','7591508HbLfJO','openapikey','data','3oMkSQS','bright','ChatGPT\x20style\x20AI\x20interface','181fkhxja','createInterface','toLowerCase','openai','4127937mLGoFh','stdout','isFile','exit'];a2c=function(){return n;};return a2c();}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x110))/0x1*(parseInt(h(0xf8))/0x2)+-parseInt(h(0x10d))/0x3*(parseInt(h(0x10a))/0x4)+parseInt(h(0xfc))/0x5*(-parseInt(h(0x11d))/0x6)+parseInt(h(0x103))/0x7+parseInt(h(0x109))/0x8+-parseInt(h(0xff))/0x9*(parseInt(h(0x104))/0xa)+parseInt(h(0x114))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xf1bf1));const a2b=(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;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x11c)]()[i(0xfe)](i(0x107))[i(0x11c)]()[i(0x118)](a2a)[i(0xfe)](i(0x107));});a2a();import{Command}from'../command.js';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 j=a2d,c=a2e[j(0x111)]({'input':process[j(0x121)],'output':process[j(0x115)]});c[j(0x108)](j(0x100),async d=>{const k=j;if(d[k(0x112)]()===k(0x117)){c[k(0x11b)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x10c)]);if(f[k(0xfa)])throw new Error(f[k(0xfa)]['message']);Log[k(0x10e)](k(0xf9)+f?.['choices'][0x0]?.[k(0x119)]['trim']());}catch(g){Log[k(0xfa)](g),process[k(0x117)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x101)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert','openapikey'],'shortDesc':a2l(0x10f),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this[m(0x11f)][m(0x116)](b[m(0x11a)])?(c=b[m(0x11a)],Log[m(0xfd)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0xfa)](m(0x102)+c));const d=await this[m(0x11f)][m(0x11e)]();if(d['cert']){if(this[m(0x11f)][m(0x116)](d[m(0x106)]))c=d['cert'];else throw Log[m(0xfa)](m(0x105)+c);}let f='';if(b[m(0x10b)])f=b[m(0x10b)],Log['notice'](m(0x120)+f);else{if(d[m(0x113)])f=d['openai'];else throw Log[m(0xfa)](m(0xfb));}console['log']('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[m(0x117)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xe7))/0x1*(-parseInt(f(0xea))/0x2)+-parseInt(f(0xe4))/0x3+parseInt(f(0xe6))/0x4+parseInt(f(0xec))/0x5*(-parseInt(f(0xe3))/0x6)+-parseInt(f(0xe1))/0x7*(-parseInt(f(0xe2))/0x8)+parseInt(f(0xeb))/0x9*(-parseInt(f(0xe5))/0xa)+-parseInt(f(0xde))/0xb*(-parseInt(f(0xe9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x8b278));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0xe0)](h(0xdf))[h(0xe8)]()['constructor'](a3a)[h(0xe0)]('(((.+)+)+)+$');});a3a();import'./aws.command.js';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';function a3c(){var i=['9IxTokp','7460bUAVZt','apply','546469SnpnUl','(((.+)+)+)+$','search','41048WpVfHp','632CpXVEV','2370TXEuuF','2056302qtkGbJ','11373430upVjio','4100288WebZiQ','66BariYx','toString','300VTSDBo','7630ziwXCm'];a3c=function(){return i;};return a3c();}import'./dsg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xdd;var f=c[d];return f;},a3d(a,b);}import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1ad))/0x1*(-parseInt(f(0x1b0))/0x2)+-parseInt(f(0x1a9))/0x3+parseInt(f(0x1aa))/0x4*(parseInt(f(0x1b1))/0x5)+parseInt(f(0x1b3))/0x6+-parseInt(f(0x1ac))/0x7+parseInt(f(0x1b2))/0x8+parseInt(f(0x1af))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xba38b));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1a8)]()[h(0x1ae)](h(0x1ab))[h(0x1a8)]()['constructor'](a3a)[h(0x1ae)](h(0x1ab));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1a8;var f=c[d];return f;},a3d(a,b);}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 i=['search','1552437UKjQdw','14yCIiVk','85IJXkOn','3831424BqSirV','4385376ApwPJe','apply','toString','4134030AWPLWY','178136cAmCQc','(((.+)+)+)+$','8938881imjOak','182623rQnVGi'];a3c=function(){return i;};return a3c();}import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xe2))/0x1*(parseInt(f(0xef))/0x2)+parseInt(f(0xe4))/0x3+parseInt(f(0xf0))/0x4+parseInt(f(0xea))/0x5*(-parseInt(f(0xec))/0x6)+parseInt(f(0xe9))/0x7*(-parseInt(f(0xe8))/0x8)+-parseInt(f(0xdf))/0x9*(-parseInt(f(0xe1))/0xa)+parseInt(f(0xeb))/0xb*(parseInt(f(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x98e9b));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xee)]()['search']('(((.+)+)+)+$')[h(0xee)]()['constructor'](a4a)[h(0xe3)](h(0xe7));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xdf;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';function a4c(){const j=['83155PJoeZP','search','896265aeLVrf','apply','maka\x20aws:<sub-command>','(((.+)+)+)+$','2010816PVwJfx','21BGqGsb','5qVPkZY','676115uYtCct','2441946KiSTzQ','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','toString','4SmMEKz','966660EFJHUo','783IJQRFq','84VVWbgo','112990aIfKVD'];a4c=function(){return j;};return a4c();}import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':'aws','usage':a4i(0xe6),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0xed)},async function(){throw UsageError;});export default AWSCommand;
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1a8))/0x1*(-parseInt(f(0x1a0))/0x2)+parseInt(f(0x19f))/0x3+-parseInt(f(0x1b1))/0x4*(parseInt(f(0x1a6))/0x5)+parseInt(f(0x1af))/0x6+parseInt(f(0x19d))/0x7+parseInt(f(0x1a5))/0x8*(-parseInt(f(0x1a9))/0x9)+parseInt(f(0x1ae))/0xa*(-parseInt(f(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x2f6d7));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x19e)]()[h(0x1b0)]('(((.+)+)+)+$')[h(0x19e)]()[h(0x1a4)](a4a)[h(0x1b0)](h(0x1a3));});function a4c(){const j=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','(((.+)+)+)+$','constructor','384848gSoNot','545235lQGFVw','maka\x20aws:<sub-command>','73oSujKO','27fSjMPQ','3982iAWQdj','apply','create','aws','14230RAOybT','1222188euyjPf','search','4pRQeLx','2005402UDLGZO','toString','956277mzoDZX','4214NkoqCw','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs'];a4c=function(){return j;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x19d;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x1ac)]({'name':a4i(0x1ad),'usage':a4i(0x1a7),'validOpts':[],'shortDesc':a4i(0x1a1),'description':a4i(0x1a2)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x190))/0x1+-parseInt(g(0x184))/0x2*(-parseInt(g(0x17b))/0x3)+parseInt(g(0x173))/0x4+-parseInt(g(0x189))/0x5+parseInt(g(0x192))/0x6*(parseInt(g(0x183))/0x7)+-parseInt(g(0x191))/0x8*(parseInt(g(0x186))/0x9)+parseInt(g(0x18d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe35e4));function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x172;let f=c[d];return f;},a5d(a,b);}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x17d)]()[i(0x17e)](i(0x172))['toString']()[i(0x17c)](a5a)[i(0x17e)](i(0x172));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const l=['42WHzHuw','maka\x20aws:create-ecr','(((.+)+)+)+$','1961560RruWGR','maka\x20aws:create-ecr\x20--name=my-new-repo','create-ecr','create','apply','cecr','notice','success','33Wbfzqv','constructor','toString','search','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','Repository\x20URI:\x20','repositoryUri','Repository\x20created\x20successfully.','1267077VFsmRs','126002hBrEGE','region','18ABOojK','Create\x20an\x20Elastic\x20Container\x20Repository','repository','323585nsAUXO','exit','name','maka\x20aws:cecr\x20--name=my-new-repo','3954960BuLclc','error','$metadata','28073sUzjzd','7287536pWecrr'];a5c=function(){return l;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command[a5j(0x176)]({'name':a5j(0x175),'aliases':[a5j(0x178)],'usage':a5j(0x193),'requiredOpts':[a5j(0x18b)],'validOpts':[a5j(0x185)],'shortDesc':a5j(0x187),'examples':[a5j(0x174),a5j(0x18c),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x18f)]['httpStatusCode']===0xc8&&d[k(0x188)]?(Log[k(0x17a)](k(0x182)),Log[k(0x179)](k(0x180)+d[k(0x188)][k(0x181)])):Log[k(0x18e)](k(0x17f)),process[k(0x18a)](0x0);}catch(f){Log[k(0x18e)](f),process[k(0x18a)](0x1);}},a5e);
1
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x192))/0x1*(-parseInt(g(0x184))/0x2)+-parseInt(g(0x189))/0x3+parseInt(g(0x18f))/0x4+parseInt(g(0x194))/0x5*(parseInt(g(0x18e))/0x6)+parseInt(g(0x19c))/0x7+-parseInt(g(0x190))/0x8*(-parseInt(g(0x1a0))/0x9)+-parseInt(g(0x191))/0xa*(parseInt(g(0x195))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x4063d));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x193)]()[i(0x198)](i(0x19f))[i(0x193)]()[i(0x186)](a5a)[i(0x198)](i(0x19f));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x183;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const l=['constructor','httpStatusCode','notice','585228oLzKft','$metadata','cecr','maka\x20aws:cecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','9192KAdOMB','860704DALHPl','2741936perods','1060LmIHOJ','542KjzQjY','toString','1295fbjgUP','107349HuCcaH','ecrCreateRepository','name','search','error','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','create','2081625CEtOlp','exit','create-ecr','(((.+)+)+)+$','9YCibuz','repositoryUri','region','890rzTLBA','apply'];a5c=function(){return l;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command[a5j(0x19b)]({'name':a5j(0x19e),'aliases':[a5j(0x18b)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0x197)],'validOpts':[a5j(0x183)],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5j(0x18c),a5j(0x18d)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x196)](b);d&&d[k(0x18a)][k(0x187)]===0xc8&&d['repository']?(Log['success']('Repository\x20created\x20successfully.'),Log[k(0x188)]('Repository\x20URI:\x20'+d['repository'][k(0x1a1)])):Log[k(0x199)](k(0x19a)),process[k(0x19d)](0x0);}catch(f){Log[k(0x199)](f),process[k(0x19d)](0x1);}},a5e);
@@ -1 +1 @@
1
- const a6l=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x11e;let f=c[d];return f;},a6d(a,b);}(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x134))/0x1*(-parseInt(i(0x12c))/0x2)+parseInt(i(0x125))/0x3*(-parseInt(i(0x137))/0x4)+parseInt(i(0x127))/0x5+parseInt(i(0x12a))/0x6+parseInt(i(0x128))/0x7+parseInt(i(0x124))/0x8+-parseInt(i(0x12e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x7625b));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x135)]()[k(0x129)](k(0x123))['toString']()[k(0x120)](a6a)[k(0x129)]('(((.+)+)+)+$');});function a6c(){const n=['(((.+)+)+)+$','4537752lHxaDw','3ZSWrXC','exit','1595825mYvJFg','4192223NAxthC','search','4327020dMBoxk','maka\x20aws:chz\x20--domain=example.com','403990WVJjTM','confirm','5101542RTujwK','domain','Instance\x20not\x20found','error','maka\x20aws:create-hosted-zone\x20--domain=example.com','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','1AGyKTW','toString','create','3814716ZDlxhM','publicIp','linkEC2ToRoute53','apply','constructor','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','chz'];a6c=function(){return n;};return a6c();}a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x136)]({'name':'create-hosted-zone','aliases':[a6l(0x122)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x12f)],'validOpts':[],'shortDesc':a6l(0x133),'examples':[a6l(0x132),a6l(0x12b)]},async function(a,b){const m=a6l;try{const c=b[m(0x12f)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[m(0x12d)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x131)](m(0x121));d[m(0x11e)](g['id'],g[m(0x138)],c);}else throw m(0x130);}}catch(h){h&&Log['error'](h),process[m(0x126)](0x0);}},a6e);
1
+ const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x11f))/0x1+-parseInt(i(0x121))/0x2+-parseInt(i(0x124))/0x3*(-parseInt(i(0x119))/0x4)+parseInt(i(0x12d))/0x5*(parseInt(i(0x117))/0x6)+-parseInt(i(0x111))/0x7*(parseInt(i(0x12e))/0x8)+-parseInt(i(0x113))/0x9*(-parseInt(i(0x11b))/0xa)+-parseInt(i(0x127))/0xb*(parseInt(i(0x118))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x3b1d8));function a6c(){const n=['1010WhWVus','184gpkvyy','apply','Set\x20hosted\x20zone\x20to\x20an\x20instance?','80612pmcIwy','chooseInstance','27SwDirw','(((.+)+)+)+$','Instance\x20not\x20found','maka\x20aws:create-hosted-zone','7710bvwYuA','516gqJKrj','1346716xywgcC','toString','629150wXkbDo','search','linkEC2ToRoute53','domain','265331YDsrVy','create','878436ueWtSb','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','publicIp','3pvuHth','route53CreateHostedZone','confirm','26631LwXBhE','constructor','exit','create-hosted-zone','error','maka\x20aws:chz\x20--domain=example.com'];a6c=function(){return n;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x11a)]()[k(0x11c)](k(0x114))['toString']()[k(0x128)](a6a)[k(0x11c)](k(0x114));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x111;let f=c[d];return f;},a6d(a,b);}Command[a6l(0x120)]({'name':a6l(0x12a),'aliases':['chz'],'usage':a6l(0x116),'requiredOpts':[a6l(0x11e)],'validOpts':[],'shortDesc':a6l(0x122),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a6l(0x12c)]},async function(a,b){const m=a6l;try{const c=b[m(0x11e)],d=new AWS();d[m(0x125)](c);const f=await Actions[m(0x126)](m(0x130));if(f){const g=await d[m(0x112)]();if(g?.['id']){if(!g[m(0x123)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x11d)](g['id'],g[m(0x123)],c);}else throw m(0x115);}}catch(h){h&&Log[m(0x12b)](h),process[m(0x129)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x161))/0x1+parseInt(ae(0x166))/0x2+parseInt(ae(0x1b2))/0x3+-parseInt(ae(0x15f))/0x4*(-parseInt(ae(0x19e))/0x5)+-parseInt(ae(0x177))/0x6+parseInt(ae(0x1a3))/0x7*(-parseInt(ae(0x167))/0x8)+-parseInt(ae(0x172))/0x9*(-parseInt(ae(0x17d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x827b5));function a7c(){const au=['ec2describeKeys','1446732Dcvdiu','272TgNpxr','getEnvFromShorthand','getSecurityGroups','\x20SG\x20NAME:\x20','env','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Security\x20Group:\x20','1:1','Desc','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','deleteKeyPair','9WUiZhd','fsi','apply','cidr','readFileSync','4792008ogkGdS','exit','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','created-by','getAppConfigPath','subnet','4678370MhNSIY','notice','getTime','EC2\x20Name:\x20[','\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','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','date','\x20SGID:\x20','cider','Web\x20App','success','Key-Pair:\x20','chooseVPC','search','22,80,443','create-instance','toString','\x20:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','split','createFile','create','ask','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','User\x20Data:','\x20AMIID:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','name','maka\x20aws:create-instance\x20--env\x20dev','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','(((.+)+)+)+$','sort','alias','1435260PkphEd','desc','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20the\x20key-pair\x20to:\x20','**\x20Available\x20key-pairs\x20**','152257QqNoxn','subnetId','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createKeyPair','parse','Setting\x20SG\x20ID\x20to:\x20','\x20CIDR:\x20','push','sgId','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20AZONE:\x20','ec2create','Create\x20new\x20AWS\x20instance','user-data','number','2172699vKgdyb','build\x20on\x20','Setting\x20AMI\x20ID\x20to\x20','amazon','Setting\x20Subnet\x20ID\x20to\x20','amiId','No\x20instance\x20has\x20been\x20created.','join','ID:\x20','Instace\x20Type:\x20','maka\x20aws:ci\x20--env\x20prod','log','ec2createSG','error','constructor','deleteSecurityGroup','Name','ImageID:','environment','forEach','bright','**\x20Available\x20Security\x20Groups\x20**','8rfQcNK','maka\x20aws:create-instance','416885HTzgln','confirm','**\x20Available\x20AMIs\x20**','Remove\x20the\x20keypair\x20'];a7c=function(){return au;};return a7c();}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x18d)]()[ag(0x18a)](ag(0x19b))[ag(0x18d)]()[ag(0x1c0)](a7a)[ag(0x18a)](ag(0x19b));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x15f;let f=c[d];return f;},a7d(a,b);}Command[a7ah(0x192)]({'name':a7ah(0x18c),'aliases':['ci'],'usage':a7ah(0x160),'examples':[a7ah(0x199),a7ah(0x1bc)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x16b)}],'validOpts':[],'shortDesc':a7ah(0x1af),'description':a7ah(0x181)},async function(a,b){const ai=a7ah;try{const c=this['fsi']['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x173)][ai(0x168)](b[ai(0x16b)]),i=this['fsi'][ai(0x17b)](h),j=g+'-'+h,k=await Actions[ai(0x193)](ai(0x180)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x162)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1a6)]({'env':h});r=y,s=z,Log[ai(0x187)](ai(0x1a1)+r);}else try{Log['notice'](ai(0x1a2));const A=r?r:k,B=await d[ai(0x165)]({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1bf)]('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'),Log[ai(0x17e)](ai(0x1b8));return;}B?.[ai(0x1c5)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x198)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x1bf)](D);}l=await d[ai(0x189)]();const t=await Actions[ai(0x162)](ai(0x1ac),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x193)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0x18b),G=F[ai(0x190)](',');await d[ai(0x1be)]({'description':ai(0x186),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x169)](u);if(I===''){Log[ai(0x17e)](ai(0x1c7)),J[ai(0x1c5)](function(L){const ak=ai;L['name']===u?Log[ak(0x17e)](ak(0x1ba)+L['id']+ak(0x16a)+L['name']+ak(0x184)+L[ak(0x1ab)]):Log['bright']('ID:\x20'+L['id']+ak(0x16a)+L[ak(0x198)]+ak(0x184)+L[ak(0x1ab)]);});const K=await Actions[ai(0x193)](ai(0x18f)+H+']\x20')||H[ai(0x18d)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1ab)],Log['success'](al(0x1a8)+m+'\x0a'));});}else m=I,Log[ai(0x187)](ai(0x1a8)+m+'\x0a');if(m==='')throw Log['error'](ai(0x16c));}catch(L){Log[ai(0x1bf)](L);}try{const M=0x7e6;Log[ai(0x17e)](ai(0x163));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0x19a))[ai(0x18d)](),O=JSON[ai(0x1a7)](N),P=[],Q=[];O[ai(0x1c5)](function(S){const am=ai;if(S[am(0x19d)]===am(0x1b5)){const T=S[am(0x16f)][am(0x190)](am(0x1b3))[0x1];P[am(0x1aa)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x19c)](function(S,T){const an=ai;return new Date(T[an(0x183)])[an(0x17f)]()-new Date(S[an(0x183)])[an(0x17f)]();}),P[ai(0x1c5)](function(S,T){const ao=ai;Q[ao(0x1aa)]({'id':T,'amiId':S[ao(0x1b7)],'desc':S['desc']});}),Q[ai(0x1c5)](function(S){const ap=ai;console[ap(0x1bd)](ap(0x1ba)+S['id']+ap(0x196)+S[ap(0x1b7)]+'\x20DESCRIPTION:\x20'+S[ap(0x19f)]);});const R=await Actions[ai(0x193)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ai(0x1c5)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1b7)],Log[aq(0x187)](aq(0x1b4)+n+aq(0x18e)+S['desc']));});if(n==='')throw Log[ai(0x1bf)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log['error'](S);}try{Log[ai(0x17e)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x170))[ai(0x18d)](),U=JSON[ai(0x1a7)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x185)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x1c5)](function(X){const as=ai;console['log'](as(0x1ba)+X['id']+as(0x1a9)+X[as(0x175)]+as(0x1ad)+X['az']+'\x20SUBNETID:\x20'+X[as(0x1a4)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x1c5)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1a4)],Log[at(0x187)](at(0x1b6)+p));});if(p==='')throw Log[ai(0x1bf)](ai(0x16c));}catch(X){Log[ai(0x1bf)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x193)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x16e),Z=Y['split'](':')[0x0],a0=Y[ai(0x190)](':')[0x1];typeof parseInt(Z)===ai(0x1b1)&&typeof parseInt(a0)===ai(0x1b1)&&Log[ai(0x187)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x1bf)](a1);}try{const a2=await Actions['ask'](ai(0x179))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1bf)](a3);}let x='';try{const a4=await Actions[ai(0x162)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f[ai(0x1b9)](i,ai(0x1b0)),Log[ai(0x17e)](ai(0x1a0)+x),await this['fsi'][ai(0x191)]({'filePath':x,'data':''}),await Actions[ai(0x162)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x1bf)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x197))[ai(0x18d)]())[0x0][ai(0x17c)];Log[ai(0x17e)](ai(0x1c3)+n),Log[ai(0x17e)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x17e)](ai(0x1bb)+o),Log['notice'](ai(0x188)+r),Log[ai(0x17e)](ai(0x16d)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ai(0x17e)](ai(0x195)+x);const a8=a7g[ai(0x176)](x)[ai(0x18d)]();Log[ai(0x17e)](a8);}const a7=await Actions[ai(0x162)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x1ae)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x17a),'Value':'maka-cli'},{'Key':ai(0x1c4),'Value':h},{'Key':ai(0x1c2),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x187)](ai(0x1a5)),Log[ai(0x1c6)](ai(0x194)));}else{Log[ai(0x17e)](ai(0x182));const aa=await Actions[ai(0x162)](ai(0x164)+r+'\x20?',!![]);aa&&(d[ai(0x171)](r),f['isFile'](s)&&a7g['unlinkSync'](s));const ab=await Actions[ai(0x162)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x1c1)](m);}}catch(ac){Log[ai(0x1bf)](ac);}}catch(ad){ad&&Log[ai(0x1bf)](ad),process[ai(0x178)](0x0);}},a7e);
1
+ const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x14a))/0x1+parseInt(ae(0x133))/0x2*(parseInt(ae(0x12a))/0x3)+parseInt(ae(0x18e))/0x4*(parseInt(ae(0x12c))/0x5)+-parseInt(ae(0x131))/0x6*(-parseInt(ae(0x140))/0x7)+-parseInt(ae(0x148))/0x8*(-parseInt(ae(0x168))/0x9)+parseInt(ae(0x151))/0xa*(parseInt(ae(0x174))/0xb)+-parseInt(ae(0x155))/0xc*(parseInt(ae(0x178))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x8e2e4));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x149)]()[ag(0x144)](ag(0x11f))['toString']()[ag(0x12e)](a7a)[ag(0x144)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x11f;let f=c[d];return f;},a7d(a,b);}function a7c(){const au=['268MDJSqV','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','(((.+)+)+)+$','Instace\x20Type:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Instance\x20Count:\x20','getSecurityGroups','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','apply','Setting\x20Subnet\x20ID\x20to\x20','ec2describeKeys','unlinkSync','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1977kbzkSg','Security\x20Group\x20Name:\x20[','81060xzHtQo','alias','constructor','getAppConfigPath','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1164pqsmOG','push','3104UYvnEs','**\x20Available\x20key-pairs\x20**','getEnvFromShorthand','No\x20instance\x20has\x20been\x20created.','**\x20Available\x20AMIs\x20**','chooseVPC','ec2createSG','create-instance','Key-Pair:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','notice','amazon','Name','38689JRyroe','**\x20Available\x20Subnets\x20**','maka\x20aws:ci\x20--env\x20prod','split','search','**\x20Available\x20Security\x20Groups\x20**','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20DESCRIPTION:\x20','568qANvID','toString','208250aKxsTU','environment','Creating\x20user\x20data\x20file\x20in\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','string','\x20SGID:\x20','amiId','3370lbEuSb','\x20SG\x20NAME:\x20','Create\x20new\x20AWS\x20instance','confirm','3635304PxhWOs','success','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','parse','readFileSync','Security\x20Group:\x20','createKeyPair','maka\x20aws:create-instance','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20SUBNETID:\x20','forEach','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Web\x20App','number','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Setting\x20SG\x20ID\x20to:\x20','maka-cli','Setting\x20the\x20key-pair\x20to:\x20','exit','34839RZCTZO','cider','desc','env','\x20CIDR:\x20','22,80,443','sgId','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','isFile','bright','ID:\x20','fsi','27951HOArGn','Subnet:\x20','name','create','169LMBGcE','created-by','date','ImageID:','Setting\x20AMI\x20ID\x20to\x20','1:1','subnet','EC2\x20Name:\x20[','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Remove\x20the\x20security\x20group\x20','ask','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Desc','error','deleteKeyPair','build\x20on\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','subnetId','user-data','\x20AZONE:\x20'];a7c=function(){return au;};return a7c();}Command[a7ah(0x177)]({'name':a7ah(0x13a),'aliases':['ci'],'usage':a7ah(0x15c),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a7ah(0x142)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x153),'description':'\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'},async function(a,b){const ai=a7ah;try{const c=this[ai(0x173)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x173)][ai(0x135)](b[ai(0x16b)]),i=this[ai(0x173)][ai(0x12f)](h),j=g+'-'+h,k=await Actions[ai(0x183)](ai(0x17f)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x154)](ai(0x163),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x15b)]({'env':h});r=y,s=z,Log['success'](ai(0x166)+r);}else try{Log[ai(0x13d)](ai(0x134));const A=r?r:k,B=await d[ai(0x127)]({'suggestion':A}),C=await Actions['ask'](ai(0x185))||'-1';if(parseInt(C)<0x0){Log[ai(0x187)]('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'),Log['notice'](ai(0x136));return;}B?.[ai(0x15f)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x156)](aj(0x166)+r));});}catch(D){Log[ai(0x187)](D);}l=await d[ai(0x138)]();const t=await Actions[ai(0x154)](ai(0x14d),!![]);let u;if(t){const E=l===''?await d[ai(0x138)]():l;u=await Actions[ai(0x183)](ai(0x12b)+k+']')||k;const F=await Actions[ai(0x183)](ai(0x124))||ai(0x16d),G=F[ai(0x143)](',');await d[ai(0x139)]({'description':ai(0x161),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x123)](u);if(I===''){Log[ai(0x13d)](ai(0x145)),J[ai(0x15f)](function(L){const ak=ai;L[ak(0x176)]===u?Log[ak(0x13d)](ak(0x172)+L['id']+ak(0x152)+L['name']+ak(0x14f)+L[ak(0x16e)]):Log[ak(0x171)](ak(0x172)+L['id']+ak(0x152)+L[ak(0x176)]+'\x20SGID:\x20'+L[ak(0x16e)]);});const K=await Actions[ai(0x183)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x149)]();J[ai(0x15f)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x16e)],Log[al(0x156)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x156)](ai(0x164)+m+'\x0a');if(m==='')throw Log[ai(0x187)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x187)](L);}try{const M=0x7e6;Log[ai(0x13d)](ai(0x137));const N=execSync(ai(0x16f)+M+ai(0x160))[ai(0x149)](),O=JSON[ai(0x158)](N),P=[],Q=[];O[ai(0x15f)](function(S){const am=ai;if(S[am(0x12d)]===am(0x13e)){const T=S[am(0x186)][am(0x143)](am(0x189))[0x1];P[am(0x132)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x17a)])['getTime']();}),P[ai(0x15f)](function(S,T){const ao=ai;Q[ao(0x132)]({'id':T,'amiId':S[ao(0x150)],'desc':S[ao(0x16a)]});}),Q['forEach'](function(S){const ap=ai;console['log']('ID:\x20'+S['id']+'\x20AMIID:\x20'+S['amiId']+ap(0x147)+S['desc']);});const R=await Actions['ask'](ai(0x129))||'0';Q[ai(0x15f)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x150)],Log['success'](aq(0x17c)+n+'\x20:\x20'+S[aq(0x16a)]));});if(n==='')throw Log[ai(0x187)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x187)](S);}try{Log[ai(0x13d)](ai(0x141));const T=execSync(ai(0x18f))['toString'](),U=JSON[ai(0x158)](T),V=[];U[ai(0x15f)](function(X,Y){const ar=ai;V[ar(0x132)]({'id':Y,'cidr':X[ar(0x169)],'az':X['az'],'subnetId':X[ar(0x18b)]});}),V[ai(0x15f)](function(X){const as=ai;console['log'](as(0x172)+X['id']+as(0x16c)+X['cidr']+as(0x18d)+X['az']+as(0x15e)+X[as(0x18b)]);});const W=await Actions[ai(0x183)](ai(0x130))||'0';V[ai(0x15f)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x18b)],Log['success'](at(0x126)+p));});if(p==='')throw Log[ai(0x187)](ai(0x184));}catch(X){Log[ai(0x187)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x183)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x17d),Z=Y[ai(0x143)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x162)&&typeof parseInt(a0)===ai(0x162)&&Log[ai(0x156)](ai(0x18a)+Z+':'+a0);}catch(a1){Log[ai(0x187)](a1);}try{const a2=await Actions[ai(0x183)](ai(0x146))||'t3.micro';typeof a2===ai(0x14e)&&(o=a2);}catch(a3){Log[ai(0x187)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x13c),![]);a4&&(x=a7f['join'](i,ai(0x18c)),Log[ai(0x13d)](ai(0x14c)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0x154)](ai(0x157)));}catch(a5){Log[ai(0x187)](a5);}try{const a6=JSON[ai(0x158)](execSync(ai(0x121)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x149)]())[0x0][ai(0x17e)];Log[ai(0x13d)](ai(0x17b)+n),Log[ai(0x13d)](ai(0x122)+v+':'+w),Log[ai(0x13d)](ai(0x120)+o),Log[ai(0x13d)](ai(0x13b)+r),Log[ai(0x13d)](ai(0x15a)+m),Log[ai(0x13d)](ai(0x175)+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a7g[ai(0x159)](x)[ai(0x149)]();Log[ai(0x13d)](a8);}const a7=await Actions[ai(0x154)](ai(0x181));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x179),'Value':ai(0x165)},{'Key':ai(0x14b),'Value':h},{'Key':ai(0x13f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x156)](ai(0x180)),Log[ai(0x171)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x13d)](ai(0x15d));const aa=await Actions[ai(0x154)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x188)](r),f[ai(0x170)](s)&&a7g[ai(0x128)](s));const ab=await Actions[ai(0x154)](ai(0x182)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x187)](ad),process[ai(0x167)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x17a))/0x1+-parseInt(g(0x189))/0x2+parseInt(g(0x17b))/0x3*(parseInt(g(0x17e))/0x4)+parseInt(g(0x175))/0x5+parseInt(g(0x17d))/0x6+-parseInt(g(0x186))/0x7+-parseInt(g(0x17f))/0x8*(-parseInt(g(0x17c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x6bade));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x177)]()[i(0x187)](i(0x18a))[i(0x177)]()[i(0x176)](a8a)[i(0x187)](i(0x18a));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a8c(){const l=['getEnvFromShorthand','env','3874178DtZRsN','search','ckp','1142978gqFgnz','(((.+)+)+)+$','529190MhVcbL','constructor','toString','\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','maka\x20aws:ckp\x20--env\x20prod','13997TrVVbv','156FZblVc','27taajEy','3857670aQrMrM','43204jWwIIS','718824OlKADR','create','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','apply','exit'];a8c=function(){return l;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x175;let f=c[d];return f;},a8d(a,b);}Command[a8j(0x180)]({'name':'create-key-pair','aliases':[a8j(0x188)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x179)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x185)],'validOpts':[],'shortDesc':a8j(0x181),'description':a8j(0x178)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this['fsi'][k(0x184)](b[k(0x185)]);c['createKeyPair']({'env':d});}catch(f){f&&Log['error'](f),process[k(0x183)](0x0);}},a8e);
1
+ const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0xca))/0x1+parseInt(g(0xcc))/0x2+parseInt(g(0xd7))/0x3*(-parseInt(g(0xc6))/0x4)+-parseInt(g(0xc7))/0x5+parseInt(g(0xd8))/0x6*(parseInt(g(0xda))/0x7)+-parseInt(g(0xce))/0x8*(-parseInt(g(0xcf))/0x9)+parseInt(g(0xc5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x96b4c));const a8b=(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;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0xd1)]()[h(0xd4)](h(0xd5))[h(0xd1)]()[h(0xc4)](a8a)['search']('(((.+)+)+)+$');});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc3;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const k=['827341xhOVlI','create-key-pair','878780NvKaHU','fsi','17176MFxYel','369KgUKRo','maka\x20aws:create-key-pair','toString','ckp','error','search','(((.+)+)+)+$','maka\x20aws:ckp\x20--env\x20prod','3gonYYw','6416274ITyyot','env','7avVNDT','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','constructor','10655060yVHpgl','3713724lQjEiN','1446190sjplRV','\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','maka\x20aws:create-key-pair\x20--env\x20prod'];a8c=function(){return k;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8i(0xcb),'aliases':[a8i(0xd2)],'usage':a8i(0xd0),'examples':[a8i(0xc9),a8i(0xd6)],'mustBeInMakaProject':!![],'requiredOpts':[a8i(0xd9)],'validOpts':[],'shortDesc':a8i(0xc3),'description':a8i(0xc8)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this[j(0xcd)]['getEnvFromShorthand'](b[j(0xd9)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0xd3)](f),process['exit'](0x0);}},a8e);
@@ -1 +1 @@
1
- function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a9d(a,b);}const a9o=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x1c8))/0x1*(parseInt(m(0x1b6))/0x2)+-parseInt(m(0x1b9))/0x3+-parseInt(m(0x1ad))/0x4*(parseInt(m(0x1bc))/0x5)+parseInt(m(0x1b1))/0x6*(parseInt(m(0x1ce))/0x7)+-parseInt(m(0x1cb))/0x8*(parseInt(m(0x1c1))/0x9)+parseInt(m(0x1bd))/0xa+-parseInt(m(0x1c6))/0xb*(-parseInt(m(0x1c4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x7d081));const a9b=(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;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x1b8)]()['search'](n(0x1c7))[n(0x1b8)]()[n(0x1b5)](a9a)[n(0x1b0)](n(0x1c7));});function a9c(){const r=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','56QPpuRZ','getMakaProjectConfig','split','70IJbjkM','maka\x20aws:csg','forEach','22,80,443','714404Bymkea','ec2createSG','exit','search','87474YACBSf','Security\x20Group\x20Name:\x20[','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','fsi','constructor','33266uyTnlZ','create-security-group','toString','2356326XUvsII','List\x20is\x20not\x20all\x20numbers','name','10JNwntk','481710udTWse','create','maka\x20aws\x20create-security-group','match','44973MZDCRP','Web\x20App','ask','3539292SMewUm','\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','44uTXeQB','(((.+)+)+)+$','19rBnEYf','error'];a9c=function(){return r;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9o(0x1be)]({'name':a9o(0x1b7),'aliases':['csg'],'usage':a9o(0x1bf),'validOpts':[],'shortDesc':a9o(0x1b3),'description':a9o(0x1c5),'examples':['maka\x20aws:create-secuirty-group',a9o(0x1cf)]},async function(a,b){const p=a9o;try{const c=new AWS(),d=this[p(0x1b4)][p(0x1cc)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[p(0x1bb)]?b[p(0x1bb)]:''+f,i=await Actions[p(0x1c3)](p(0x1b2)+h+']')||h,j=await Actions['ask'](p(0x1ca))||p(0x1ac),k=j[p(0x1cd)](',');k[p(0x1d0)](l=>{const q=p;if(!l[q(0x1c0)](/^\d+$/))throw q(0x1ba);}),await c[p(0x1ae)]({'description':p(0x1c2),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[p(0x1c9)](l),process[p(0x1af)](0x1);}},a9e);
1
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x89))/0x1*(-parseInt(m(0x93))/0x2)+parseInt(m(0x7e))/0x3+-parseInt(m(0x7b))/0x4*(-parseInt(m(0x8f))/0x5)+parseInt(m(0x83))/0x6+-parseInt(m(0x84))/0x7+parseInt(m(0x7f))/0x8+-parseInt(m(0x88))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x5c522));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x85)]()[o(0x97)](o(0x96))[o(0x85)]()['constructor'](a9a)[o(0x97)](o(0x96));});a9a();function a9c(){const r=['Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','4JeUSzM','getMakaProjectConfig','\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','2181165mPoSCr','3357432yeiGBf','error','forEach','exit','1714488sEppvU','677033yyrkqP','toString','ec2createSG','fsi','9387351IsfxTs','113tZgHqT','name','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Security\x20Group\x20Name:\x20[','split','maka\x20aws\x20create-security-group','393775HntPFB','ask','chooseVPC','csg','118nbxDZb','apply','Web\x20App','(((.+)+)+)+$','search'];a9c=function(){return r;};return a9c();}import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x7a;let f=c[d];return f;},a9d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-security-group','aliases':[a9p(0x92)],'usage':a9p(0x8e),'validOpts':[],'shortDesc':a9p(0x7a),'description':a9p(0x7d),'examples':['maka\x20aws:create-secuirty-group','maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x87)][q(0x7c)](),{appName:f}=d,g=await c[q(0x91)](),h=b[q(0x8a)]?b['name']:''+f,i=await Actions[q(0x90)](q(0x8c)+h+']')||h,j=await Actions[q(0x90)](q(0x8b))||'22,80,443',k=j[q(0x8d)](',');k[q(0x81)](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x86)]({'description':q(0x95),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x80)](l),process[q(0x82)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x139))/0x1*(-parseInt(f(0x12e))/0x2)+-parseInt(f(0x126))/0x3*(parseInt(f(0x131))/0x4)+-parseInt(f(0x13c))/0x5*(parseInt(f(0x135))/0x6)+-parseInt(f(0x133))/0x7+parseInt(f(0x136))/0x8+-parseInt(f(0x12f))/0x9+parseInt(f(0x138))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x3a3bd));function a10c(){const k=['1128dXMcHH','3698296VKmYWK','Repository\x20','11483480OVLosA','1XFeKkD','search','Delete\x20an\x20Elastic\x20Container\x20Repository','11905KIgkfP','ecrDeleteRepository','(((.+)+)+)+$','success','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','constructor','7146jhfniL','decr','toString','exit','region','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','apply','Failed\x20to\x20delete\x20the\x20repository:\x20','349142XseDiF','766962PMqTFV','create','632oSVWtW','name','2018359ogBMxy','.\x20Error:\x20'];a10c=function(){return k;};return a10c();}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x13a)]('(((.+)+)+)+$')[h(0x128)]()[h(0x125)](a10a)['search'](h(0x122));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x121;let f=c[d];return f;},a10d(a,b);}Command[a10i(0x130)]({'name':'delete-ecr','aliases':[a10i(0x127)],'usage':a10i(0x12b),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x13b),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x124)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x121)]({'repoName':b[j(0x132)],'region':b[j(0x12a)]}),Log[j(0x123)](j(0x137)+b['name']+'\x20deleted\x20successfully\x20in\x20region\x20'+b[j(0x12a)]+'.'),process['exit'](0x0);}catch(d){Log['error'](j(0x12d)+b['name']+'\x20in\x20region\x20'+b[j(0x12a)]+j(0x134)+d),process[j(0x129)](0x1);}},a10e);
1
+ const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1db))/0x1+parseInt(f(0x1dc))/0x2*(parseInt(f(0x1cc))/0x3)+-parseInt(f(0x1d0))/0x4+-parseInt(f(0x1c4))/0x5+-parseInt(f(0x1d7))/0x6+-parseInt(f(0x1da))/0x7+parseInt(f(0x1ca))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x2ecec));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1c5)]()[h(0x1d5)](h(0x1c7))[h(0x1c5)]()[h(0x1dd)](a10a)[h(0x1d5)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10c(){const k=['368215cegKer','106034HOtGcT','constructor','\x20in\x20region\x20','exit','421640yTxdIz','toString','.\x20Error:\x20','(((.+)+)+)+$','name','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','7268264oSDali','ecrDeleteRepository','3SwhAwv','delete-ecr','\x20deleted\x20successfully\x20in\x20region\x20','create','77656GgVRAK','apply','Delete\x20an\x20Elastic\x20Container\x20Repository','decr','error','search','Failed\x20to\x20delete\x20the\x20repository:\x20','300576NsPTWK','Repository\x20','region','1734411jWVZhO'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x1cf)]({'name':a10i(0x1cd),'aliases':[a10i(0x1d3)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':['name',a10i(0x1d9)],'validOpts':[],'shortDesc':a10i(0x1d2),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x1c9)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x1cb)]({'repoName':b[j(0x1c8)],'region':b[j(0x1d9)]}),Log['success'](j(0x1d8)+b[j(0x1c8)]+j(0x1ce)+b['region']+'.'),process[j(0x1df)](0x0);}catch(d){Log[j(0x1d4)](j(0x1d6)+b['name']+j(0x1de)+b['region']+j(0x1c6)+d),process[j(0x1df)](0x1);}},a10e);
@@ -1 +1 @@
1
- const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xcf;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0xe0))/0x1*(-parseInt(f(0xde))/0x2)+-parseInt(f(0xdf))/0x3+parseInt(f(0xd1))/0x4+-parseInt(f(0xd4))/0x5+-parseInt(f(0xdc))/0x6+-parseInt(f(0xda))/0x7*(-parseInt(f(0xd5))/0x8)+parseInt(f(0xdd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5614a));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0xd6)]('(((.+)+)+)+$')[h(0xd2)]()['constructor'](a11a)['search'](h(0xe1));});a11a();import a11e from'./aws.command.js';function a11c(){const k=['maka\x20aws:di','apply','49YGLJPo','\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','3568350xeqanF','9913761huBqtV','2OyxHZV','1806507LcIjtZ','401032QkxnoZ','(((.+)+)+)+$','error','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','1248668yHNanz','toString','describe-instances','2675735cakcgM','308456LEIZpj','search','maka\x20aws:describe-instances'];a11c=function(){return k;};return a11c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11i(0xd3),'aliases':['di'],'usage':a11i(0xd7),'validOpts':[],'shortDesc':a11i(0xd0),'examples':['maka\x20aws:describe-instances',a11i(0xd8)],'description':a11i(0xdb)},async function(){const j=a11i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){b&&Log[j(0xcf)](b),process['exit'](0x1);}},a11e);
1
+ const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x1cf))/0x1+parseInt(f(0x1d3))/0x2+-parseInt(f(0x1d4))/0x3+parseInt(f(0x1c2))/0x4+-parseInt(f(0x1c4))/0x5*(-parseInt(f(0x1d6))/0x6)+-parseInt(f(0x1cd))/0x7*(parseInt(f(0x1d0))/0x8)+parseInt(f(0x1c7))/0x9*(-parseInt(f(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5af06));function a11c(){const j=['Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','maka\x20aws:di','9LZacJv','9127550YXrRgE','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','(((.+)+)+)+$','create','7mqvNVE','maka\x20aws:describe-instances','235412OEiTEC','1910760JHkuFY','search','toString','663406gOtEzD','1514568FlGGce','error','510znvPQD','exit','2961388FjGQWK','constructor','42440RPNcMU'];a11c=function(){return j;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a11d(a,b);}const a11b=(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;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x1d2)]()[g(0x1d1)](g(0x1cb))['toString']()[g(0x1c3)](a11a)['search'](g(0x1cb));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0x1cc)]({'name':'describe-instances','aliases':['di'],'usage':a11h(0x1ce),'validOpts':[],'shortDesc':a11h(0x1c5),'examples':['maka\x20aws:describe-instances',a11h(0x1c6)],'description':a11h(0x1ca)},async function(){const i=a11h;try{const a=new AWS();a[i(0x1c9)]();}catch(b){b&&Log[i(0x1d5)](b),process[i(0x1d7)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xfb))/0x1+parseInt(f(0xff))/0x2*(-parseInt(f(0x109))/0x3)+parseInt(f(0x10e))/0x4*(-parseInt(f(0x105))/0x5)+parseInt(f(0x10f))/0x6+-parseInt(f(0xfd))/0x7*(-parseInt(f(0x102))/0x8)+parseInt(f(0x10d))/0x9*(-parseInt(f(0x103))/0xa)+parseInt(f(0x10c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xefb96));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x107)]()[h(0x100)](h(0x10b))['toString']()[h(0x101)](a12a)[h(0x100)](h(0x10b));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a12c(){const k=['5999808zatvVA','ec2describeKeys','maka\x20aws:describe-key-pairs','1312754nZFlMU','apply','4496317vSsHuc','dkp','54382ApEZaG','search','constructor','8ibQKps','4443190IzwIBL','error','7135mhtUdq','exit','toString','describe-key-pairs','177ZnDtdf','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','(((.+)+)+)+$','49473006EQOZjH','9UAigHO','5036TgRoyL'];a12c=function(){return k;};return a12c();}function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xfb;let f=c[d];return f;},a12d(a,b);}Command['create']({'name':a12i(0x108),'aliases':[a12i(0xfe)],'usage':a12i(0x111),'validOpts':[],'shortDesc':a12i(0x10a),'examples':[a12i(0x111),'maka\x20aws:dkp']},async function(){const j=a12i;try{const a=new AWS();a[j(0x110)]();}catch(b){b&&Log[j(0x104)](b),process[j(0x106)](0x0);}},a12e);
1
+ function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xca;let f=c[d];return f;},a12d(a,b);}function a12c(){const k=['1983415MarwTV','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','18SmcALi','6VUSZce','dkp','describe-key-pairs','(((.+)+)+)+$','maka\x20aws:dkp','352232AcprkS','ec2describeKeys','maka\x20aws:describe-key-pairs','3036131gqSpVx','toString','575124mIaWsG','10274640ikRlMr','3MUYUNj','constructor','apply','1266234nBgaCd','create','error','258924aawEGD','search'];a12c=function(){return k;};return a12c();}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xdf))/0x1+parseInt(f(0xdc))/0x2*(-parseInt(f(0xd9))/0x3)+parseInt(f(0xd7))/0x4+parseInt(f(0xca))/0x5*(-parseInt(f(0xcd))/0x6)+parseInt(f(0xd5))/0x7+parseInt(f(0xd2))/0x8*(parseInt(f(0xcc))/0x9)+parseInt(f(0xd8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x62b58));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xd6)]()[h(0xe0)]('(((.+)+)+)+$')[h(0xd6)]()[h(0xda)](a12a)[h(0xe0)](h(0xd0));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xdd)]({'name':a12i(0xcf),'aliases':[a12i(0xce)],'usage':a12i(0xd4),'validOpts':[],'shortDesc':a12i(0xcb),'examples':[a12i(0xd4),a12i(0xd1)]},async function(){const j=a12i;try{const a=new AWS();a[j(0xd3)]();}catch(b){b&&Log[j(0xde)](b),process['exit'](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0xc5))/0x1+parseInt(l(0xc4))/0x2*(parseInt(l(0xcf))/0x3)+parseInt(l(0xdc))/0x4*(-parseInt(l(0xe3))/0x5)+-parseInt(l(0xc7))/0x6*(-parseInt(l(0xcb))/0x7)+-parseInt(l(0xdf))/0x8+-parseInt(l(0xda))/0x9+-parseInt(l(0xc2))/0xa*(-parseInt(l(0xd7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x7b59d));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0xc1)](n(0xce))[n(0xbf)]()['constructor'](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13c(){const s=['ask','deleteSecurityGroup','isMakaProject','ID:\x20','notice','forEach','Deleted\x20','5622782qPdjrJ','apply','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','4741443TSckFs','success','81716ZRVCFn','error','\x20SG\x20NAME:\x20','6967608lccykD','bright','maka\x20aws:delete-sg','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','10tOYZBA','Deleting\x20a\x20','name','sgId','appName','create','toString','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','search','20jzBerg','maka\x20aws:dsg','1781170VRuCYD','571743XxzeVU','exit','10482uIcthR','confirm','\x20SGID:\x20','includes','2415XxKLSj','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','delete-security-group','(((.+)+)+)+$','3xqaehP'];a13c=function(){return s;};return a13c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xbd;let f=c[d];return f;},a13d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0xbe)]({'name':a13o(0xcd),'aliases':['dsg'],'usage':a13o(0xe1),'validOpts':[],'shortDesc':a13o(0xd9),'examples':[a13o(0xe1),a13o(0xc3)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0xd2)]();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0xbd)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0xd5)](function(k){const q=p;c&&k[q(0xe5)][q(0xca)](d)?Log[q(0xd4)](q(0xd3)+k['id']+q(0xde)+k[q(0xe5)]+q(0xc9)+k[q(0xe6)]):Log[q(0xe0)](q(0xd3)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0xe5)]+q(0xc9)+k[q(0xe6)]);});let g='';const h=await Actions[p(0xd0)](p(0xcc));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0xe6)]);});if(!g)throw Log[p(0xdd)](p(0xe2));const i=await Actions[p(0xc8)](p(0xe4)+g+p(0xc0),![]);i?(await a[p(0xd1)](g),Log[p(0xdb)](p(0xd6)+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[p(0xc6)](0x0);}catch(k){k&&Log[p(0xdd)](k),process['exit'](0x1);}},a13e);
1
+ const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1d1))/0x1*(parseInt(l(0x1ad))/0x2)+parseInt(l(0x1c6))/0x3*(-parseInt(l(0x1cc))/0x4)+-parseInt(l(0x1b1))/0x5*(parseInt(l(0x1bf))/0x6)+parseInt(l(0x1c8))/0x7+parseInt(l(0x1ce))/0x8*(parseInt(l(0x1bc))/0x9)+parseInt(l(0x1c4))/0xa+parseInt(l(0x1bb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x84900));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1b6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x1c1)]()[n(0x1b3)]('(((.+)+)+)+$')[n(0x1c1)]()['constructor'](a13a)[n(0x1b3)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a13d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a13c(){const s=['\x20SGID:\x20','sgId','ID:\x20','4HAGFgp','confirm','3990736KxZWvP','success','delete-security-group','4xtqXAb','name','341624lgsmjS','error','Deleting\x20a\x20','dsg','3397670excyGX','includes','search','\x20SG\x20NAME:\x20','maka\x20aws:delete-sg','apply','ask','notice','maka\x20aws:dsg','exit','12724558rlMcvL','9tqMBpJ','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create','6aLXPWI','Deleted\x20','toString','getMakaProjectConfig','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','10303900ZMQLSn','forEach','2886579SUgKyM','appName','1273587TOmDWi'];a13c=function(){return s;};return a13c();}Command[a13o(0x1be)]({'name':a13o(0x1d0),'aliases':[a13o(0x1b0)],'usage':a13o(0x1b5),'validOpts':[],'shortDesc':a13o(0x1c3),'examples':[a13o(0x1b5),a13o(0x1b9)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x1c2)]();d=j[p(0x1c7)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x1c5)](function(k){const q=p;c&&k[q(0x1d2)][q(0x1b2)](d)?Log[q(0x1b8)](q(0x1cb)+k['id']+q(0x1b4)+k[q(0x1d2)]+q(0x1c9)+k[q(0x1ca)]):Log['bright'](q(0x1cb)+k['id']+q(0x1b4)+k['name']+q(0x1c9)+k[q(0x1ca)]);});let g='';const h=await Actions[p(0x1b7)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x1c5)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1ca)]);});if(!g)throw Log[p(0x1ae)](p(0x1bd));const i=await Actions[p(0x1cd)](p(0x1af)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x1cf)](p(0x1c0)+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[p(0x1ba)](0x0);}catch(k){k&&Log[p(0x1ae)](k),process[p(0x1ba)](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0xec))/0x1*(-parseInt(f(0xe9))/0x2)+-parseInt(f(0xe6))/0x3+-parseInt(f(0xe7))/0x4*(parseInt(f(0xf5))/0x5)+-parseInt(f(0xf0))/0x6+parseInt(f(0xe4))/0x7+-parseInt(f(0xee))/0x8*(-parseInt(f(0xe2))/0x9)+parseInt(f(0xea))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x4a3f7));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0xed)]()[h(0xfb)](h(0xf2))[h(0xed)]()[h(0xe3)](a14a)[h(0xfb)](h(0xf2));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xe2;let f=c[d];return f;},a14d(a,b);}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a14c(){const k=['exit','108JaJMJP','constructor','3223353SQlMyg','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','705669EvUXtd','36lYnxMQ','apply','204oqlzMr','13059010brOFcR','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','3107psWKKA','toString','87928AYVcFe','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','3544968yvgxGE','maka\x20aws:list-ecr','(((.+)+)+)+$','create','Completed\x20listing\x20ECR\x20repositories.','250660KiGcUF','list-ecr','listAllEcrRepositories','regions','lecr','maka\x20aws:lecr\x20--regions=all','search'];a14c=function(){return k;};return a14c();}Command[a14i(0xf3)]({'name':a14i(0xf6),'aliases':[a14i(0xf9)],'usage':a14i(0xeb),'requiredOpts':[],'validOpts':[a14i(0xf8)],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14i(0xf1),a14i(0xe5),a14i(0xfa)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0xf7)](b[j(0xf8)]),Log['success'](j(0xf4)),process[j(0xfc)](0x0);}catch(d){Log['error'](j(0xef)+d),process[j(0xfc)](0x1);}},a14e);
1
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x10a))/0x1+-parseInt(f(0x116))/0x2*(-parseInt(f(0x104))/0x3)+parseInt(f(0x118))/0x4*(-parseInt(f(0xfe))/0x5)+parseInt(f(0x113))/0x6+-parseInt(f(0x103))/0x7+-parseInt(f(0x100))/0x8*(-parseInt(f(0x109))/0x9)+-parseInt(f(0x10f))/0xa*(parseInt(f(0x111))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xbd598));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x10b)]()[h(0xff)]('(((.+)+)+)+$')['toString']()[h(0x108)](a14a)[h(0xff)](h(0x101));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xfc;let f=c[d];return f;},a14d(a,b);}a14a();import a14e from'./aws.command.js';function a14c(){const k=['maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','create','lecr','90YuBBNo','success','613646zEdrQQ','list-ecr','353826DLGwrB','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','8238vuEqRy','exit','4MfQDvl','apply','regions','4386505kXoBId','search','100928zpgTIX','(((.+)+)+)+$','Completed\x20listing\x20ECR\x20repositories.','9946846XMQvWo','849mSIKaO','maka\x20aws:list-ecr','error','maka\x20aws:lecr\x20--regions=all','constructor','711iBvCyj','1354617bDEQQm','toString'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x10d)]({'name':a14i(0x112),'aliases':[a14i(0x10e)],'usage':a14i(0x10c),'requiredOpts':[],'validOpts':[a14i(0xfd)],'shortDesc':a14i(0x114),'examples':[a14i(0x105),a14i(0x115),a14i(0x107)]},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0xfd)]),Log[j(0x110)](j(0x102)),process[j(0x117)](0x0);}catch(d){Log[j(0x106)]('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process['exit'](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x88))/0x1+-parseInt(f(0x80))/0x2*(parseInt(f(0x7e))/0x3)+parseInt(f(0x85))/0x4+parseInt(f(0x7f))/0x5+parseInt(f(0x75))/0x6*(parseInt(f(0x78))/0x7)+parseInt(f(0x7d))/0x8*(-parseInt(f(0x84))/0x9)+parseInt(f(0x7a))/0xa*(-parseInt(f(0x91))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd9233));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x86)]()[h(0x8b)](h(0x8a))['toString']()[h(0x8e)](a15a)[h(0x8b)]('(((.+)+)+)+$');});function a15c(){const k=['115242YfCmmA','confirm','reboot-instance','441QptVTO','\x20Ready?','1190gLoRKR','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','chooseInstance','7179528cFvQTu','333YwLGuP','7563285EIodDY','18218RZwfSS','status','exit','apply','9cNmEHb','4514368TYdFTr','toString','ec2rebootInstance','218808xMzZux','error','(((.+)+)+)+$','search','instanceId','maka\x20aws:rbi','constructor','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','create','77143CNlitr'];a15c=function(){return k;};return a15c();}function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x75;let f=c[d];return f;},a15d(a,b);}a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x90)]({'name':a15i(0x77),'aliases':['rbi'],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':['maka\x20aws:reboot-instance',a15i(0x8d)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x7c)]();if(b?.[j(0x81)]==='running'){const c=await Actions[j(0x76)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+j(0x79));c&&b[j(0x8c)]?a[j(0x87)]({'instanceId':b['instanceId']}):Log[j(0x89)](j(0x8f)+b['name']+'\x20is\x20still\x20running.');}else Log[j(0x89)](j(0x7b));}catch(d){d&&Log['error'](d),process[j(0x82)](0x1);}},a15e);
1
+ const a15i=a15d;function a15c(){const k=['2705956TPZPJJ','constructor','maka\x20aws:rbi','instanceId','error','(((.+)+)+)+$','create','name','16333290mnynpg','confirm','4404TDIHds','28vFQcAP','apply','toString','maka\x20aws:reboot-instance','4515345WYglBt','Reboot\x20an\x20EC2\x20instance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','rbi','8aQycJA','status','search','364278mfXsuM','587168lTAxBk','\x20is\x20still\x20running.','exit','69068LzcBpj','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','126rjDXzK'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0xc9))/0x1*(-parseInt(f(0xdf))/0x2)+-parseInt(f(0xc5))/0x3+-parseInt(f(0xcc))/0x4+-parseInt(f(0xdb))/0x5+parseInt(f(0xd6))/0x6*(-parseInt(f(0xd7))/0x7)+-parseInt(f(0xc6))/0x8*(-parseInt(f(0xcb))/0x9)+parseInt(f(0xd4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa62e9));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xd9)]()[h(0xc4)](h(0xd1))['toString']()[h(0xcd)](a15a)[h(0xc4)]('(((.+)+)+)+$');});a15a();function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xc4;let f=c[d];return f;},a15d(a,b);}import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0xd2)]({'name':'reboot-instance','aliases':[a15i(0xde)],'usage':a15i(0xda),'validOpts':[],'shortDesc':a15i(0xdc),'examples':[a15i(0xda),a15i(0xce)]},async function(){const j=a15i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xe0)]==='running'){const c=await Actions[j(0xd5)](j(0xdd)+b[j(0xd3)]+'\x20Ready?');c&&b[j(0xcf)]?a['ec2rebootInstance']({'instanceId':b[j(0xcf)]}):Log[j(0xd0)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+j(0xc7));}else Log[j(0xd0)](j(0xca));}catch(d){d&&Log[j(0xd0)](d),process[j(0xc8)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1bb))/0x1+-parseInt(E(0x1c2))/0x2+parseInt(E(0x1ec))/0x3+-parseInt(E(0x1d3))/0x4+-parseInt(E(0x1bd))/0x5+-parseInt(E(0x1d4))/0x6*(-parseInt(E(0x1cb))/0x7)+parseInt(E(0x1cd))/0x8*(-parseInt(E(0x1ba))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x46cd3));const a16b=(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;};}()),a16a=a16b(this,function(){const F=a16d;return a16a['toString']()[F(0x1e1)](F(0x1e6))['toString']()[F(0x1d9)](a16a)[F(0x1e1)](F(0x1e6));});a16a();import a16e from'./aws.command.js';function a16c(){const J=['My\x20Comanpy,\x20LLC.','232732tkPhRJ','PUBLIC_BODY','rdn','Contact','Are\x20you\x20sure?','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Choose\x20contact\x20type','Person','The\x20domain\x20name:\x20','7XMnjyw','Zip\x20Code\x20[96816]:\x20','88976rjvDJi','mail@example.com','ask','\x20is\x20available\x20for:','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','1384396AjuIdr','1932894XPQcfc','domain','maka\x20aws:rdn\x20--domain=example.com','Invalid\x202\x20character\x20country\x20code','RESELLER','constructor','Country\x20Code\x20[US]:\x20','123\x20Glorious\x20Way','warn','ASSOCIATION','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','list','error','search','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','+1.5555555555','register-domain-name','maka\x20aws:register-domain-name\x20--domain=example.com','(((.+)+)+)+$','+1.5555555556','\x20/\x20Year\x20\x0a','maka\x20aws:register-domain-name','COMPANY','exit','1721865ZJiaAj','Duration\x20in\x20years\x20[1]:\x20','Address\x20Line\x202:\x20','\x20/\x20Year)','registerDomain','confirm','OrganizationName','State\x20[HI]:\x20','\x20years\x20(','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','PERSON','create','Contact\x20First\x20Name\x20[Contact]:\x20','198JFNvYD','150770LPXrkQ','notice','248610TndwQQ','includes','values','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a16c=function(){return J;};return a16c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a16d;return Object[G(0x1bf)](CountryCode)[G(0x1be)](a);}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a16d(a,b);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16H(0x1f7)]({'name':a16H(0x1e4),'aliases':[a16H(0x1c4)],'usage':a16H(0x1e9),'requiredOpts':['domain'],'validOpts':[],'shortDesc':a16H(0x1e2),'examples':[a16H(0x1e5),a16H(0x1d6)]},async function(a,b){const I=a16H;try{const c=b[I(0x1d5)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log[I(0x1bc)](I(0x1ca)+c+I(0x1d0));const {Price:h,Currency:i}=g;Log[I(0x1dc)]('\x20\x20'+h+'\x20'+i+I(0x1e8));const j=await Actions[I(0x1f1)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':I(0x1df),'name':'contactType','message':I(0x1c8),'choices':[I(0x1dd),I(0x1ea),I(0x1f6),I(0x1c3),I(0x1d8)]},l=await Actions['ask'](I(0x1ed))||'1',m=await Actions[I(0x1cf)](I(0x1b9))||I(0x1c5),n=await Actions[I(0x1cf)]('Contact\x20Last\x20Name\x20[Person]:\x20')||I(0x1c9),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](I(0x1de))||I(0x1db),q=await Actions['ask'](I(0x1ee)),r=await Actions[I(0x1cf)](I(0x1cc))||'96816',s=await Actions[I(0x1cf)](I(0x1f3))||'HI',t=await Actions['ask'](I(0x1da))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1e0)](I(0x1d7));const v=await Actions[I(0x1cf)](I(0x1d1))||I(0x1e3),w=await Actions[I(0x1cf)](I(0x1f5))||I(0x1e7),x=await Actions['ask'](I(0x1d2))||I(0x1ce),y=await Actions['confirm']('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x1f6)){const C=await Actions[I(0x1cf)](I(0x1c7))||I(0x1c1);z[I(0x1f2)]=C;}const A=h||0x0*parseInt(l);Log[I(0x1bc)](I(0x1c0)),Log[I(0x1dc)](A+'\x20'+i+'\x20for\x20'+l+I(0x1f4)+h+'\x20'+i+I(0x1ef));const B=await Actions[I(0x1f1)](I(0x1c6));B&&await d[I(0x1f0)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[I(0x1e0)](D),process[I(0x1eb)](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1ca))/0x1+parseInt(E(0x1de))/0x2+parseInt(E(0x1cf))/0x3*(-parseInt(E(0x1e0))/0x4)+-parseInt(E(0x1d1))/0x5+-parseInt(E(0x1cb))/0x6+parseInt(E(0x1f3))/0x7+parseInt(E(0x1f4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x2dbd2));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x1cd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x1d9)]()['search'](G(0x1ed))[G(0x1d9)]()[G(0x1be)](a16a)['search'](G(0x1ed));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a16d(a,b);}function a16c(){const K=['Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Auto\x20Renew:\x20','create','Duration\x20in\x20years\x20[1]:\x20','Choose\x20contact\x20type','96816','Address\x20Line\x202:\x20','confirm','ask','\x20for\x20','Person','PERSON','(((.+)+)+)+$','Invalid\x202\x20character\x20country\x20code','The\x20domain\x20name:\x20','Contact\x20Last\x20Name\x20[Person]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','maka\x20aws:rdn\x20--domain=example.com','1401498bTUvfd','4660760Jenxih','ASSOCIATION','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','PUBLIC_BODY','rdn','constructor','domain','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','values','exit','\x20/\x20Year)','Zip\x20Code\x20[96816]:\x20','My\x20Comanpy,\x20LLC.','checkDomainAvailability','State\x20[HI]:\x20','\x20/\x20Year\x20\x0a','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','19877sRwhkE','2132856DSGWcP','contactType','apply','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','18ICCYBL','mail@example.com','750905ZPUGsw','notice','warn','Country\x20Code\x20[US]:\x20','error','options','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','\x20years\x20(','toString','123\x20Glorious\x20Way','Domain\x20name\x20is\x20unavailable','RESELLER','Do\x20you\x20wish\x20to\x20register\x20','436074bhZXPa','Contact\x20First\x20Name\x20[Contact]:\x20','218480NWDHWI'];a16c=function(){return K;};return a16c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x1c1)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1e3)]({'name':'register-domain-name','aliases':[a16I(0x1bd)],'usage':'maka\x20aws:register-domain-name','requiredOpts':['domain'],'validOpts':[],'shortDesc':a16I(0x1c9),'examples':[a16I(0x1f1),a16I(0x1f2)]},async function(a,b){const J=a16I;try{const c=b[J(0x1bf)],d=new AWS(),{available:f,cost:g}=await d[J(0x1c6)](c);if(f&&g){Log['notice'](J(0x1ef)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x1d3)]('\x20\x20'+h+'\x20'+i+J(0x1c8));const j=await Actions[J(0x1e8)](J(0x1dd)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0x1cc),'message':J(0x1e5),'choices':[J(0x1ba),'COMPANY',J(0x1ec),J(0x1bc),J(0x1dc)]},l=await Actions[J(0x1e9)](J(0x1e4))||'1',m=await Actions[J(0x1e9)](J(0x1df))||'Contact',n=await Actions[J(0x1e9)](J(0x1f0))||J(0x1eb),{contactType:o}=await Actions[J(0x1d6)](k),p=await Actions['ask'](J(0x1bb))||J(0x1da),q=await Actions[J(0x1e9)](J(0x1e7)),r=await Actions[J(0x1e9)](J(0x1c4))||J(0x1e6),s=await Actions[J(0x1e9)](J(0x1c7))||'HI',t=await Actions[J(0x1e9)](J(0x1d4))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x1d5)](J(0x1ee));const v=await Actions[J(0x1e9)](J(0x1d7))||'+1.5555555555',w=await Actions[J(0x1e9)](J(0x1c0))||'+1.5555555556',x=await Actions[J(0x1e9)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x1d0),y=await Actions[J(0x1e8)](J(0x1e2)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions[J(0x1e9)](J(0x1ce))||J(0x1c5);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[J(0x1d2)](J(0x1e1)),Log[J(0x1d3)](A+'\x20'+i+J(0x1ea)+l+J(0x1d8)+h+'\x20'+i+J(0x1c3));const B=await Actions['confirm']('Are\x20you\x20sure?');B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x1db);}catch(D){D&&Log[J(0x1d5)](D),process[J(0x1c2)](0x0);}},a16e);
@@ -1 +1 @@
1
- const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x12d))/0x1*(parseInt(h(0x135))/0x2)+parseInt(h(0x14a))/0x3*(-parseInt(h(0x130))/0x4)+-parseInt(h(0x13f))/0x5*(-parseInt(h(0x144))/0x6)+-parseInt(h(0x140))/0x7+-parseInt(h(0x14e))/0x8*(-parseInt(h(0x146))/0x9)+parseInt(h(0x147))/0xa+parseInt(h(0x13e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xd7835));function a17c(){const m=['2496550jNYQMp','Deleted\x20','Please\x20choose\x20a\x20key\x20to\x20delete:','468972bqaRXc','rkp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','error','11781024IENkhl','1165pwZzfd','constructor','forEach','4XQdpcK','deleteKeyPair','ec2describeKeys','Not\x20deleting\x20keypair','(((.+)+)+)+$','14rYeuNW','exit','maka\x20aws:rkp','ask','name','\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','toString','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:remove-key-pair','48169PaLpnW','2417165uZDQFg','8140125dHNdxd','search','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','confirm','6zTMRYD','create','9INzhgz'];a17c=function(){return m;};return a17c();}const a17b=(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;};}()),a17a=a17b(this,function(){const i=a17d;return a17a[i(0x13b)]()[i(0x141)](i(0x134))[i(0x13b)]()[i(0x12e)](a17a)['search'](i(0x134));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x12d;let f=c[d];return f;},a17d(a,b);}a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17j(0x145)]({'name':'remove-key-pair','aliases':[a17j(0x14b)],'usage':a17j(0x13d),'validOpts':[],'shortDesc':a17j(0x142),'description':a17j(0x13a),'examples':[a17j(0x13d),a17j(0x137)]},async function(){const k=a17j;try{const a=new AWS(),b=await a[k(0x132)]();let c=undefined;const d=await Actions[k(0x138)](k(0x149));b?.[k(0x12f)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x139)]);});if(!c)throw Log[k(0x14d)](k(0x14c));const f=await Actions[k(0x143)]('Deleting\x20a\x20'+c+k(0x13c),![]);f?(await a[k(0x131)](c),Log['success'](k(0x148)+c)):Log[k(0x14d)](k(0x133)),process[k(0x136)](0x0);}catch(g){g&&Log[k(0x14d)](g),process[k(0x136)](0x1);}},a17e);
1
+ function a17c(){const n=['88407TkRYbL','573671bQnwxS','216glEaVo','name','forEach','deleteKeyPair','992803eXjjAN','maka\x20aws:rkp','Deleting\x20a\x20','(((.+)+)+)+$','6833400pPuWvm','exit','Please\x20choose\x20a\x20key\x20to\x20delete:','\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','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1655hFrhaS','search','37106850alhDEB','84vgeFUQ','ec2describeKeys','confirm','apply','remove-key-pair','success','ask','toString','error','create','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Not\x20deleting\x20keypair','297776GRwZTn','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','6tAekHn','maka\x20aws:remove-key-pair','3656ekQRpf'];a17c=function(){return n;};return a17c();}function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x96;let f=c[d];return f;},a17d(a,b);}const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x97))/0x1+-parseInt(h(0xa3))/0x2*(parseInt(h(0xb4))/0x3)+-parseInt(h(0xb3))/0x4*(parseInt(h(0xa0))/0x5)+parseInt(h(0xb1))/0x6*(parseInt(h(0xb5))/0x7)+parseInt(h(0xaf))/0x8*(-parseInt(h(0xb6))/0x9)+parseInt(h(0x9b))/0xa+parseInt(h(0xa2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xade58));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xaa)]()[j(0xa1)](j(0x9a))['toString']()['constructor'](a17a)[j(0xa1)](j(0x9a));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0xac)]({'name':a17k(0xa7),'aliases':['rkp'],'usage':a17k(0xb2),'validOpts':[],'shortDesc':a17k(0xb0),'description':a17k(0x9e),'examples':[a17k(0xb2),a17k(0x98)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0xa4)]();let c=undefined;const d=await Actions[l(0xa9)](l(0x9d));b?.[l(0xb8)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xb7)]);});if(!c)throw Log[l(0xab)](l(0x9f));const f=await Actions[l(0xa5)](l(0x99)+c+l(0xad),![]);f?(await a[l(0x96)](c),Log[l(0xa8)]('Deleted\x20'+c)):Log['error'](l(0xae)),process['exit'](0x0);}catch(g){g&&Log[l(0xab)](g),process[l(0x9c)](0x1);}},a17e);
@@ -1 +1 @@
1
- const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0xe2))/0x1+parseInt(m(0x109))/0x2+parseInt(m(0xef))/0x3*(-parseInt(m(0xe6))/0x4)+parseInt(m(0x106))/0x5*(parseInt(m(0x10c))/0x6)+parseInt(m(0x107))/0x7*(-parseInt(m(0xeb))/0x8)+-parseInt(m(0x10d))/0x9+parseInt(m(0xf2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x1fc96));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0x108)]()[o(0xfa)]('(((.+)+)+)+$')[o(0x108)]()[o(0xe5)](a18a)[o(0xfa)](o(0xe3));});a18a();function a18c(){const r=['publicIp','147CTpYXD','sep','parse','4725530NebZwL','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','success','join','writeFileSync','private','getMakaProjectConfig','\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','search','privateIp','getAppConfigPath','set-host','ask','stringify','maka\x20aws\x20set-host','getEnvFromShorthand','utf8','\x20IP\x20to\x20','public','\x0aSaved\x20host\x20','54705fmxzuG','40558yUTmWH','toString','57096sNNoQF','apply','config/ssh.json','36YzOnIE','1646532VXTELR','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','sth','appName','maka\x20aws:sth\x20--env\x20prod','ssh.json','143864rJTghs','(((.+)+)+)+$','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','constructor','12108iBFTMh','fsi','exit','host','create','344zKvqSe','env','template'];a18c=function(){return r;};return a18c();}import a18e from'path';import a18f from'fs';import{execSync}from'child_process';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xe0;let f=c[d];return f;},a18d(a,b);}import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18p(0xea)]({'name':a18p(0xfd),'aliases':[a18p(0x10f)],'usage':a18p(0x100),'mustBeInMakaProject':!![],'requiredOpts':[a18p(0xec)],'validOpts':[],'shortDesc':a18p(0xe4),'description':a18p(0xf9),'examples':['maka\x20aws:set-host\x20--env\x20dev',a18p(0xe0)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0xe7)][q(0x101)](b[q(0xec)]),f=this['fsi'][q(0xfc)](d),g=this[q(0xe7)][q(0xf8)](),h=await c['chooseInstance'](),i=a18e[q(0xf5)](f,q(0xe1));!this['fsi']['isFile'](i)&&await this[q(0xe7)][q(0xed)]({'srcPath':q(0x10b),'destPath':i,'context':{'app':g[q(0x110)]},'config':g});const j=JSON[q(0xf1)](a18f['readFileSync'](i,q(0x102))),k=await Actions[q(0xfe)](q(0x10e))||q(0x104);if(k){if(k==='public'||k==='private'){if(k===q(0x104))j['host']=h?.[q(0xee)];else k===q(0xf7)&&(j[q(0xe9)]=h?.[q(0xfb)]);}else throw q(0xf3);}else j[q(0xe9)]=h?.['privateIp'];a18f[q(0xf6)](a18e[q(0xf5)](f,q(0xe1)),JSON[q(0xff)](j,null,0x2)),execSync('cat\x20'+a18e[q(0xf5)](f,q(0xe1)),{'stdio':'inherit'}),Log[q(0xf4)](q(0x105)+k+q(0x103)+f+a18e[q(0xf0)]+'ssh.json');}catch(l){l&&Log['error'](l),process[q(0xe8)](0x0);}},a18g);
1
+ const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x12b))/0x1+-parseInt(m(0x145))/0x2*(-parseInt(m(0x152))/0x3)+parseInt(m(0x138))/0x4+-parseInt(m(0x156))/0x5*(parseInt(m(0x130))/0x6)+parseInt(m(0x139))/0x7+parseInt(m(0x147))/0x8*(-parseInt(m(0x13e))/0x9)+-parseInt(m(0x150))/0xa*(-parseInt(m(0x12d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x51758));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0x13b)]()[o(0x14a)](o(0x13d))['toString']()[o(0x134)](a18a)['search']('(((.+)+)+)+$');});function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x129;let f=c[d];return f;},a18d(a,b);}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';function a18c(){const r=['join','5762141lTZANS','template','readFileSync','876426nYMXjc','host','isFile','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','constructor','stringify','env','writeFileSync','1984408EQvIXg','539707wSrRDx','create','toString','fsi','(((.+)+)+)+$','9erpqfp','public','privateIp','ssh.json','parse','exit','maka\x20aws\x20set-host','4MBAfPz','publicIp','5125488iIPzXW','cat\x20','\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','search','inherit','maka\x20aws:sth\x20--env\x20prod','apply','\x0aSaved\x20host\x20','set-host','10RcwxiR','utf8','336981aFsOfj','config/ssh.json','private','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','5mJPLBF','ask','getEnvFromShorthand','201275PLodVI'];a18c=function(){return r;};return a18c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18p(0x13a)]({'name':a18p(0x14f),'aliases':['sth'],'usage':a18p(0x144),'mustBeInMakaProject':!![],'requiredOpts':[a18p(0x136)],'validOpts':[],'shortDesc':a18p(0x155),'description':a18p(0x149),'examples':['maka\x20aws:set-host\x20--env\x20dev',a18p(0x14c)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0x13c)][q(0x12a)](b[q(0x136)]),f=this[q(0x13c)]['getAppConfigPath'](d),g=this['fsi']['getMakaProjectConfig'](),h=await c['chooseInstance'](),i=a18e[q(0x12c)](f,q(0x141));!this[q(0x13c)][q(0x132)](i)&&await this[q(0x13c)][q(0x12e)]({'srcPath':q(0x153),'destPath':i,'context':{'app':g['appName']},'config':g});const j=JSON[q(0x142)](a18f[q(0x12f)](i,q(0x151))),k=await Actions[q(0x129)](q(0x133))||q(0x13f);if(k){if(k===q(0x13f)||k===q(0x154)){if(k===q(0x13f))j[q(0x131)]=h?.[q(0x146)];else k===q(0x154)&&(j[q(0x131)]=h?.[q(0x140)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else j[q(0x131)]=h?.[q(0x140)];a18f[q(0x137)](a18e['join'](f,q(0x141)),JSON[q(0x135)](j,null,0x2)),execSync(q(0x148)+a18e[q(0x12c)](f,'ssh.json'),{'stdio':q(0x14b)}),Log['success'](q(0x14e)+k+'\x20IP\x20to\x20'+f+a18e['sep']+q(0x141));}catch(l){l&&Log['error'](l),process[q(0x143)](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x9f))/0x1+parseInt(f(0x91))/0x2*(parseInt(f(0x9c))/0x3)+-parseInt(f(0xa0))/0x4+parseInt(f(0x93))/0x5*(-parseInt(f(0x95))/0x6)+parseInt(f(0xac))/0x7+parseInt(f(0xa4))/0x8+-parseInt(f(0xa8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x9337a));const a19b=(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;};}()),a19a=a19b(this,function(){const g=a19d;return a19a['toString']()[g(0x92)](g(0xa9))[g(0x9d)]()[g(0xa7)](a19a)[g(0x92)](g(0xa9));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x91;let f=c[d];return f;},a19d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19h(0x98)]({'name':'terminate-instance','aliases':['ti'],'usage':a19h(0xa6),'validOpts':[],'shortDesc':a19h(0xa3),'description':a19h(0x97),'examples':[a19h(0xa6),a19h(0x96)]},async function(){const i=a19h;try{const a=new AWS(),b=await a[i(0xa2)]();if(b?.[i(0x9e)]&&b?.['status']===i(0x99)){const c=await Actions[i(0xad)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0xa5)]+i(0x9a));c?a[i(0xa1)]({'instanceId':b['instanceId']}):Log[i(0xaa)](i(0x9b)+b[i(0xa5)]+i(0xab));}else Log[i(0xaa)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[i(0xaa)](d),process[i(0x94)](0x1);}},a19e);function a19c(){const j=['(((.+)+)+)+$','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','7958797amvKIO','confirm','61546nhqhcJ','search','5tTwBSj','exit','1673742mJMvmF','maka\x20aws:ti','\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','create','running','\x20Ready?','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','93hLNHhm','toString','instanceId','554638MeTurE','3321152WQIibh','ec2terminateInstance','chooseInstance','Terminate\x20an\x20EC2\x20instance','8449616LrbnZL','name','maka\x20aws:terminate-instance','constructor','7922259cdFTTB'];a19c=function(){return j;};return a19c();}
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x161))/0x1+-parseInt(f(0x169))/0x2+-parseInt(f(0x16a))/0x3+parseInt(f(0x154))/0x4*(parseInt(f(0x16b))/0x5)+-parseInt(f(0x155))/0x6*(-parseInt(f(0x166))/0x7)+parseInt(f(0x16c))/0x8*(parseInt(f(0x160))/0x9)+-parseInt(f(0x165))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x7a083));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x14f;let f=c[d];return f;},a19d(a,b);}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a['toString']()[h(0x153)]('(((.+)+)+)+$')[h(0x14f)]()[h(0x16e)](a19a)[h(0x153)](h(0x15a));});function a19c(){const k=['maka\x20aws:terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','8010szBvLe','57451CYaqow','instanceId','apply','create','4671740aPRqdl','14TNwDeV','chooseInstance','ec2terminateInstance','648582smXkIj','2251212jBjBNm','5egllXF','5000zsNmrS','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','constructor','toString','error','exit','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','search','3163948pXHoSH','2255778xrnLNM','\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','terminate-instance','confirm','status','(((.+)+)+)+$','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:ti','name'];a19c=function(){return k;};return a19c();}a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x164)]({'name':a19i(0x157),'aliases':['ti'],'usage':a19i(0x15e),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0x156),'examples':[a19i(0x15e),a19i(0x15c)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x167)]();if(b?.['instanceId']&&b?.[j(0x159)]==='running'){const c=await Actions[j(0x158)](j(0x152)+b[j(0x15d)]+'\x20Ready?');c?a[j(0x168)]({'instanceId':b[j(0x162)]}):Log[j(0x150)](j(0x15f)+b[j(0x15d)]+j(0x15b));}else Log['error'](j(0x16d));}catch(d){d&&Log[j(0x150)](d),process[j(0x151)](0x1);}},a19e);
@@ -1 +1 @@
1
- function a20c(){var i=['constructor','apply','390136nuvaYw','80XCketv','17406HmIpNq','234534iLGGcG','1340EcDXfy','toString','search','1422zxDKjy','2700005SDnpBO','365048nMQsVj','(((.+)+)+)+$','1DBJszH','3frGZYX','741209Xjtutf'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0xa1))/0x1*(parseInt(f(0xa9))/0x2)+-parseInt(f(0xa2))/0x3*(parseInt(f(0xaf))/0x4)+parseInt(f(0xa7))/0x5*(-parseInt(f(0xa8))/0x6)+parseInt(f(0xa3))/0x7+parseInt(f(0xa6))/0x8+-parseInt(f(0xad))/0x9*(parseInt(f(0xaa))/0xa)+parseInt(f(0xae))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x1e458));function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xa0;var f=c[d];return f;},a20d(a,b);}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0xab)]()[h(0xac)](h(0xa0))[h(0xab)]()[h(0xa4)](a20a)['search']('(((.+)+)+)+$');});a20a();import'./build.js';import'./docker.sub.cmd.js';
1
+ function a20c(){var i=['74972tJkNXW','(((.+)+)+)+$','toString','10zOmSWE','search','602096fUWzyg','66PhYshP','6570JLvopq','apply','5024IcDlBq','4456109mQbRuS','constructor','3415aIuXYM','575304emNvWR','2790271VjbEcH','3954piScCe'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x1a9))/0x1+-parseInt(f(0x1b1))/0x2+-parseInt(f(0x1aa))/0x3*(-parseInt(f(0x1a4))/0x4)+parseInt(f(0x1b0))/0x5*(parseInt(f(0x1b3))/0x6)+-parseInt(f(0x1ae))/0x7+-parseInt(f(0x1ad))/0x8*(parseInt(f(0x1ab))/0x9)+-parseInt(f(0x1a7))/0xa*(-parseInt(f(0x1b2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x51ea1));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x1a6)]()[h(0x1a8)]('(((.+)+)+)+$')[h(0x1a6)]()[h(0x1af)](a20a)[h(0x1a8)](h(0x1a5));});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x1a4;var f=c[d];return f;},a20d(a,b);}a20a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a21q=a21d;function a21c(){const t=[')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','4688026OvdQLW','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','3496sXONMV','existsSync','force','pathFromProject','\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','(((.+)+)+)+$','getGlobalMeteorVersion','363425pLLiES','8361171IgAayb','apply','autoupdate','invokeMeteorCommand','804470scMwhk','This\x20project\x27s\x20meteor\x20version\x20(','getProjectMeteorVersion','update','confirm','constructor','toString','8LDPhWl','2779350sYLhXQ','--force','forEach','maka\x20build','search','splice','join','463065BuxRxV','exit','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','slice','create','app.tar.gz','build','argv','fsi','Aborted.','checkMeteorPackage',').\x20Update?','error','2307tnNfCJ'];a21c=function(){return t;};return a21c();}(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0x9c))/0x1+-parseInt(n(0xa1))/0x2+parseInt(n(0x91))/0x3*(parseInt(n(0x95))/0x4)+-parseInt(n(0xb0))/0x5+-parseInt(n(0xa9))/0x6+parseInt(n(0x93))/0x7*(-parseInt(n(0xa8))/0x8)+parseInt(n(0x9d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x52377));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xa7)]()[p(0xad)](p(0x9a))[p(0xa7)]()[p(0xa6)](a21a)[p(0xad)](p(0x9a));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x90;let f=c[d];return f;},a21d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0xb4)]({'name':'build','usage':'maka\x20build','validOpts':['force'],'aliases':['b'],'shortDesc':a21q(0x94),'mustBeInMakaProject':!![],'description':a21q(0x99),'examples':[a21q(0xac)]},async function(a,b){const r=a21q;try{await this['fsi'][r(0xba)](r(0x9f),{'shouldInstall':!![]});const c=b[r(0x97)];if(!c){const g=this[r(0xb8)][r(0x9b)](),h=this[r(0xb8)][r(0xa3)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xa5)](r(0xa2)+h+r(0x92)+g+r(0xbb));j&&this['fsi'][r(0xa0)](r(0xa4),['--release',g]);}}const d=[this[r(0xb8)][r(0x98)]({'pathParts':[r(0xb6)]})]['concat'](process[r(0xb7)][r(0xb3)](0x3)),f=a21e[r(0xaf)](this[r(0xb8)][r(0x98)]({}),r(0xb6),r(0xb5));if(a21f[r(0x96)](f)){const k=c??await Actions[r(0xa5)](r(0xb2));if(!k)throw Log[r(0x90)](r(0xb9));}d[r(0xab)]((l,m)=>{const s=r;l===s(0xaa)&&d[s(0xae)](m,0x2);}),this[r(0xb8)][r(0xa0)](r(0xb6),d);}catch(l){console[r(0x90)](l),process[r(0xb1)](0x0);}});export default BuildCommand;
1
+ function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a21d(a,b);}const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x1e8))/0x1+-parseInt(n(0x1da))/0x2+parseInt(n(0x1db))/0x3*(parseInt(n(0x1d4))/0x4)+parseInt(n(0x1f1))/0x5+parseInt(n(0x1d9))/0x6*(-parseInt(n(0x1e3))/0x7)+parseInt(n(0x1d6))/0x8+-parseInt(n(0x1dd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xcaa5e));function a21c(){const t=['\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','498263PolcDs','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','fsi','create','toString','forEach','--release','invokeMeteorCommand','checkMeteorPackage','7295485KcejLI','search','app.tar.gz','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','This\x20project\x27s\x20meteor\x20version\x20(','exit','(((.+)+)+)+$','autoupdate','4FjbhLn','splice','9599352WJNjiC',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','getGlobalMeteorVersion','361332AyQUtr','3149150xYOhHb','4871535eQhSuq','maka\x20build','6457815RAvJQm','join','Aborted.','error','confirm','build','77fGlOmv','--force','update','apply'];a21c=function(){return t;};return a21c();}const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x1ec)]()[p(0x1f2)](p(0x1f7))[p(0x1ec)]()['constructor'](a21a)[p(0x1f2)](p(0x1f7));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x1eb)]({'name':a21q(0x1e2),'usage':a21q(0x1dc),'validOpts':['force'],'aliases':['b'],'shortDesc':a21q(0x1f4),'mustBeInMakaProject':!![],'description':a21q(0x1e7),'examples':['maka\x20build']},async function(a,b){const r=a21q;try{await this[r(0x1ea)][r(0x1f0)](r(0x1f8),{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this[r(0x1ea)][r(0x1d8)](),h=this['fsi']['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x1e1)](r(0x1f5)+h+r(0x1d7)+g+').\x20Update?');j&&this[r(0x1ea)][r(0x1ef)](r(0x1e5),[r(0x1ee),g]);}}const d=[this[r(0x1ea)]['pathFromProject']({'pathParts':[r(0x1e2)]})]['concat'](process['argv']['slice'](0x3)),f=a21e[r(0x1de)](this['fsi']['pathFromProject']({}),r(0x1e2),r(0x1f3));if(a21f['existsSync'](f)){const k=c??await Actions['confirm'](r(0x1e9));if(!k)throw Log[r(0x1e0)](r(0x1df));}d[r(0x1ed)]((l,m)=>{const s=r;l===s(0x1e4)&&d[s(0x1d5)](m,0x2);}),this[r(0x1ea)][r(0x1ef)](r(0x1e2),d);}catch(l){console[r(0x1e0)](l),process[r(0x1f6)](0x0);}});export default BuildCommand;