@maka/maka-cli 4.6.8 → 4.6.9

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 (136) 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/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/https/progress.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.6.8",
4
+ "version": "4.6.9",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1d1))/0x1*(-parseInt(p(0x184))/0x2)+parseInt(p(0x189))/0x3+parseInt(p(0x19d))/0x4+parseInt(p(0x1ca))/0x5*(parseInt(p(0x19f))/0x6)+parseInt(p(0x185))/0x7*(-parseInt(p(0x1b1))/0x8)+-parseInt(p(0x17b))/0x9+parseInt(p(0x1b4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x222d5));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x1af)]()[r(0x1d2)](r(0x19e))[r(0x1af)]()[r(0x197)](a0a)['search'](r(0x19e));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x175;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['minArgLength','roles','pallet','disableAuthCheck','runSubCommand','filter','invoke','findCommand','20jfowFZ','function','includes','Too\x20many\x20arguments','parent','split','splice','2281XctliJ','search','Description','assign','To\x20use\x20these\x20pro\x20flags,\x20\x22','length','Too\x20few\x20arguments','number','singleLicense','domainLicense','Too\x20many\x20options','1446786sKeOMw','apply','join','_handler','mustBeInMakaProject','keys','There\x20is\x20no\x20Meteor\x20application\x20here','maxArgLength','light','78IdWPjT','21intapE','shortDesc','LIGHT','Command.create\x20requires\x20some\x20options!','560082zXkijQ','Command\x20requires\x20a\x20handler\x20function','maxOptsLength','name','validateMeteorInstall','validateMakaProject','find','match','addCommand','run','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minOptsLength','mustHaveMeteorInstalled','constructor','options','proCommands','_commands','push','Too\x20few\x20options','175352sxkPkt','(((.+)+)+)+$','48264fjZGii','proFlags','play','DARK','setColorMode','murder','Command\x20requires\x20a\x20name','sort','fsi','addCommand\x20requires\x20a\x20Command\x20instance','deploy','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','call','Sub-Commands:','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','toString','help','453672bAFvxs','notice','getGlobalConfig','1192030BIwcvh','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','getPro','exit','Command.create\x20requires\x20a\x20handler\x20function!','To\x20use\x20this\x20command,\x20\x22','forEach','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMakaSubscription','bind','aliases','tableList','bright','generate'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{['options'];[a0s(0x19a)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1bb));if(!a['name'])throw new Error(t(0x1a5));if(typeof b!=='function')throw new Error(t(0x18a));this[t(0x198)]=Object[t(0x1d4)]({},a),this['name']=this[t(0x198)][t(0x18c)],this[t(0x19a)]=[],this[t(0x17e)]=b[t(0x1bd)](this);}static['create'](a,b,c){const u=a0s;if(!a)throw new Error(u(0x188));if(typeof b!==u(0x1cb))throw new Error(u(0x1b8));const d=new Command(a,b);return c=c||a0f,Object[u(0x1d4)](d,{'parent':c?.[u(0x198)]?.['name']}),c[u(0x191)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x1a8));this[v(0x19a)][v(0x19b)](a);}async[a0s(0x1bc)](a,b){const w=a0s,c=this[w(0x1c9)](a[0x0]);if(c){const d=c?.[w(0x18c)]||a[0x0],e=c?.[w(0x1ce)]||'',f=c?.[w(0x198)];if(f[w(0x1c5)])return;const g=a[0x0],h=Object['keys'](b),i=await this[w(0x1a7)]['getPro']();!i&&(Log[w(0x1aa)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[w(0x1b7)](0x1));const j=i?.[w(0x199)][w(0x1cc)](d)||i?.['proCommands']['includes'](e),k=i?.[w(0x1c3)]['includes'](w(0x178))||i?.['roles'][w(0x1cc)](w(0x179)),l=!k;if(j&&l)throw w(0x1b9)+a[0x0]+w(0x1b5);if(h[w(0x175)]>0x0){const m=i?.[w(0x1a0)][w(0x1c7)](n=>h['includes'](n));if(m&&m[w(0x175)]>0x0&&l)throw w(0x1d5)+m?.[w(0x17d)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===w(0x1a9)){const n=await this['fsi'][w(0x1b6)](),o=n?.[w(0x199)][w(0x1cc)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x1b9)+a[0x0]+w(0x1b5);}}}async[a0s(0x192)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0x1a7)][x(0x1b3)](),d=c[x(0x1c4)]===x(0x183)?ColorMode[x(0x187)]:ColorMode[x(0x1a2)];Log[x(0x1a3)](d),await this[x(0x1bc)](a,b);}catch(f){Log[x(0x1aa)](f),process[x(0x1b7)](0x0);}await this[x(0x1c8)](a,b);}catch(g){process[x(0x1b7)](0x1);}}async[a0s(0x1c8)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x198)];try{if(this[y(0x198)][y(0x18c)]!==y(0x1c1)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x175)]===0x0)&&this[y(0x19a)]['length']>=0x0,g=b[y(0x1b0)]||b['h'];if(f&&g){if(this[y(0x19a)][y(0x175)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][y(0x17f)]){const h=this[y(0x18e)]();if(!h)throw new MustBeInProjectError();}if(this[y(0x198)][y(0x196)]){const i=this[y(0x18d)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][y(0x1c2)]==='number'){if(a[y(0x175)]<this[y(0x198)][y(0x1c2)]){Log[y(0x1aa)](y(0x176));throw new UsageError();}}if(typeof this[y(0x198)][y(0x182)]===y(0x177)){if(a[y(0x175)]>=this['options'][y(0x182)]){Log[y(0x1aa)](y(0x1cd));throw new UsageError();}}if(typeof this[y(0x198)][y(0x195)]==='number'){if(Object['keys'](b)[y(0x175)]<this['options'][y(0x195)]){Log[y(0x1aa)](y(0x19c));throw new UsageError();}}if(typeof this['options'][y(0x18b)]===y(0x177)){if(Object[y(0x180)](b)['length']>=this[y(0x198)][y(0x18b)]){Log[y(0x1aa)](y(0x17a));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[y(0x198)]),_prevCmd=a[0x0];}await this['_handler'][y(0x1ac)](this,a,b);}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[y(0x1b2)](y(0x1ad)),this[y(0x1bf)](this[y(0x19a)]),Log['header'](y(0x193));else{if(j instanceof MustBeInProjectError)Log[y(0x1aa)](y(0x1ae));else{if(j instanceof NoMeteorFoundError)Log['error'](y(0x1ab)),Log[y(0x1b2)](y(0x194));else{if(j instanceof NoMeteorAppFoundError)Log[y(0x1aa)](y(0x181));else throw j;}}}process[y(0x1b7)](0x1);}}[a0s(0x1bf)](a){const z=a0s,b=new a0e({});b['push'](['Name','Alias',z(0x1d3)]),a[z(0x1a6)]()[z(0x1ba)](c=>{const A=z;c[A(0x18c)]!==A(0x1a4)&&c['name']!==A(0x1a1)&&b[A(0x19b)]([c['name'],c[A(0x1be)](),c[A(0x186)]()]);}),Log[z(0x1c0)](b[z(0x1af)]());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x18f)](b=>b[B(0x190)](a));}['findSubCommand'](a){const C=a0s,b=a?.[C(0x1cf)](':');if(b)return a=b[0x0],this[C(0x1c9)](a);else return;}async[a0s(0x1c6)](a,b,c){const D=a0s;try{const d=a[D(0x1cf)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x1d0)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g[D(0x192)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[D(0x1aa)](h);}}}
1
+ const a0s=a0d;function a0c(){const D=['getPro','filter','number','header','generate','exit','Command\x20requires\x20a\x20name','name','forEach','domainLicense','Command.create\x20requires\x20a\x20handler\x20function!','addCommand','Too\x20many\x20options','includes','135510rODSDf','aliases','_commands','proCommands','Too\x20many\x20arguments','findCommand','LIGHT','bind','minArgLength','fsi','tableList','deploy','split','3586236vPYSaL','Too\x20few\x20arguments','To\x20use\x20this\x20command,\x20\x22','To\x20use\x20these\x20pro\x20flags,\x20\x22','runSubCommand','roles','Too\x20few\x20options','Alias','singleLicense','2563245ZekQbQ','search','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','keys','validateMakaSubscription','Command.create\x20requires\x20some\x20options!','bright','mustBeInMakaProject','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minOptsLength','getGlobalConfig','_handler','push','14337240GWDkVt','function','invoke','(((.+)+)+)+$','run','1786064oPOGSs','assign','usage','Command\x20not\x20found','Description','maxOptsLength','join','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','4auYurL','1311153YwKJIA','Command\x20requires\x20a\x20handler\x20function','notice','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','disableAuthCheck','murder','options','error','shortDesc','findSubCommand','splice','length','mustHaveMeteorInstalled','validateMakaProject','toString','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','validateMeteorInstall','5812233XPXiuR','apply','maxArgLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','addCommand\x20requires\x20a\x20Command\x20instance','There\x20is\x20no\x20Meteor\x20application\x20here','help','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','create'];a0c=function(){return D;};return a0c();}(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1e2))/0x1*(-parseInt(p(0x20b))/0x2)+-parseInt(p(0x1e3))/0x3+-parseInt(p(0x1da))/0x4+-parseInt(p(0x1c8))/0x5+parseInt(p(0x218))/0x6+-parseInt(p(0x1f4))/0x7+parseInt(p(0x1d5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6a0aa));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a['toString']()[r(0x1c9)](r(0x1d8))['toString']()['constructor'](a0a)[r(0x1c9)](r(0x1d8));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a0d(a,b);}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x1e9)];[a0s(0x20d)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1f7));if(!a[t(0x204)])throw new Error(t(0x203));if(typeof b!==t(0x1d6))throw new Error(t(0x1e4));this[t(0x1e9)]=Object[t(0x1db)]({},a),this[t(0x204)]=this['options'][t(0x204)],this[t(0x20d)]=[],this[t(0x1d3)]=b[t(0x212)](this);}static[a0s(0x1fc)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x1cd));if(typeof b!==u(0x1d6))throw new Error(u(0x207));const d=new Command(a,b);return c=c||a0f,Object[u(0x1db)](d,{'parent':c?.[u(0x1e9)]?.[u(0x204)]}),c[u(0x208)](d),d;}['addCommand'](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x1f8));this[v(0x20d)][v(0x1d4)](a);}async[a0s(0x1cc)](a,b){const w=a0s,c=this[w(0x210)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.['parent']||'',f=c?.['options'];if(f[w(0x1e7)])return;const g=a[0x0],h=Object[w(0x1cb)](b),i=await this[w(0x214)][w(0x1fd)]();!i&&(Log[w(0x1ea)](w(0x1fb)),process[w(0x202)](0x1));const j=i?.[w(0x20e)]['includes'](d)||i?.['proCommands'][w(0x20a)](e),k=i?.[w(0x1c4)][w(0x20a)](w(0x1c7))||i?.[w(0x1c4)][w(0x20a)](w(0x206)),l=!k;if(j&&l)throw w(0x1c1)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(h['length']>0x0){const m=i?.['proFlags'][w(0x1fe)](n=>h['includes'](n));if(m&&m[w(0x1ee)]>0x0&&l)throw w(0x1c2)+m?.[w(0x1e0)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(g===w(0x216)){const n=await this[w(0x214)][w(0x1fd)](),o=n?.['proCommands'][w(0x20a)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x1c1)+a[0x0]+w(0x1f2);}}}async[a0s(0x1d9)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0x214)][x(0x1d2)](),d=c['pallet']==='light'?ColorMode[x(0x211)]:ColorMode['DARK'];Log['setColorMode'](d),await this[x(0x1cc)](a,b);}catch(f){Log[x(0x1ea)](f),process[x(0x202)](0x0);}await this[x(0x1d7)](a,b);}catch(g){process[x(0x202)](0x1);}}async[a0s(0x1d7)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x1e9)];try{if(this['options']['name']!==y(0x201)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1ee)]===0x0)&&this[y(0x20d)][y(0x1ee)]>=0x0,g=b[y(0x1fa)]||b['h'];if(f&&g){if(this['_commands'][y(0x1ee)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[y(0x1e9)][y(0x1cf)]){const h=this[y(0x1f0)]();if(!h)throw new MustBeInProjectError();}if(this[y(0x1e9)][y(0x1ef)]){const i=this[y(0x1f3)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[y(0x1e9)][y(0x213)]==='number'){if(a[y(0x1ee)]<this[y(0x1e9)]['minArgLength']){Log[y(0x1ea)](y(0x1c0));throw new UsageError();}}if(typeof this['options'][y(0x1f6)]===y(0x1ff)){if(a['length']>=this[y(0x1e9)][y(0x1f6)]){Log[y(0x1ea)](y(0x20f));throw new UsageError();}}if(typeof this['options'][y(0x1d1)]===y(0x1ff)){if(Object[y(0x1cb)](b)[y(0x1ee)]<this[y(0x1e9)]['minOptsLength']){Log[y(0x1ea)](y(0x1c5));throw new UsageError();}}if(typeof this[y(0x1e9)][y(0x1df)]===y(0x1ff)){if(Object[y(0x1cb)](b)[y(0x1ee)]>=this[y(0x1e9)][y(0x1df)]){Log[y(0x1ea)](y(0x209));throw new UsageError();}}}}b=await this['validateParams'](a,b,this['options']),_prevCmd=a[0x0];}await this['_handler']['call'](this,a,b);}catch(j){Log[y(0x1dc)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[y(0x1e5)]('Sub-Commands:'),this[y(0x215)](this[y(0x20d)]),Log[y(0x200)](y(0x1e6));else{if(j instanceof MustBeInProjectError)Log[y(0x1ea)](y(0x1ca));else{if(j instanceof NoMeteorFoundError)Log[y(0x1ea)](y(0x1e1)),Log['notice'](y(0x1d0));else{if(j instanceof NoMeteorAppFoundError)Log[y(0x1ea)](y(0x1f9));else throw j;}}}process['exit'](0x1);}}[a0s(0x215)](a){const z=a0s,b=new a0e({});b[z(0x1d4)](['Name',z(0x1c6),z(0x1de)]),a['sort']()[z(0x205)](c=>{const A=z;c['name']!==A(0x1e8)&&c[A(0x204)]!=='play'&&b['push']([c[A(0x204)],c[A(0x20c)](),c[A(0x1eb)]()]);}),Log[z(0x1ce)](b[z(0x1f1)]());}[a0s(0x210)](a){return this['_commands']['find'](b=>b['match'](a));}[a0s(0x1ec)](a){const B=a0s,b=a?.[B(0x217)](':');if(b)return a=b[0x0],this[B(0x210)](a);else return;}async[a0s(0x1c3)](a,b,c){const C=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[C(0x1ed)](0x0,0x0,f);const g=this[C(0x210)](a);if(g)await g[C(0x1d9)](b,c);else throw C(0x1dd);}catch(h){throw Log[C(0x1ea)](h);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x148))/0x1+parseInt(f(0x146))/0x2*(parseInt(f(0x149))/0x3)+parseInt(f(0x14a))/0x4*(parseInt(f(0x145))/0x5)+-parseInt(f(0x142))/0x6*(parseInt(f(0x143))/0x7)+parseInt(f(0x14b))/0x8+parseInt(f(0x140))/0x9+-parseInt(f(0x147))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1aa99));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(0x14c)]()[g(0x141)](g(0x13f))[g(0x14c)]()[g(0x144)](a1a)[g(0x141)](g(0x13f));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x13f;var f=c[d];return f;},a1d(a,b);}import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';function a1c(){var h=['626319getBoa','search','330mGKheI','2373CbjSsB','constructor','9220iXXnTY','8rWgqDx','4464250HrtzCP','200261sbXwOG','17964eFxCJP','388ZsCDxa','812856ihnVeP','toString','(((.+)+)+)+$'];a1c=function(){return h;};return a1c();}import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xcb))/0x1*(parseInt(f(0xc8))/0x2)+parseInt(f(0xc6))/0x3*(parseInt(f(0xc7))/0x4)+parseInt(f(0xc4))/0x5+-parseInt(f(0xc5))/0x6*(-parseInt(f(0xce))/0x7)+parseInt(f(0xc0))/0x8*(-parseInt(f(0xbf))/0x9)+-parseInt(f(0xcd))/0xa*(parseInt(f(0xc2))/0xb)+-parseInt(f(0xc3))/0xc*(parseInt(f(0xcc))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xd7aa0));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0xca)](h(0xc9))['toString']()['constructor'](a1a)[h(0xca)](h(0xc9));});a1a();function a1c(){var i=['search','1665gSKRHu','153101ADQYds','3089670zTnxZB','84xSPHoT','18htmsdm','1010984wdgYWz','apply','22Ahwtje','1560BjKcNv','6883800WVXGDy','202662TboVug','3sGlMQm','3740804ItWnMQ','682YrLDew','(((.+)+)+)+$'];a1c=function(){return i;};return a1c();}function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbf;var f=c[d];return f;},a1d(a,b);}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xa9))/0x1*(-parseInt(h(0x8b))/0x2)+parseInt(h(0xac))/0x3+-parseInt(h(0x8c))/0x4+parseInt(h(0xa3))/0x5+parseInt(h(0xa8))/0x6*(-parseInt(h(0x8e))/0x7)+parseInt(h(0x96))/0x8*(parseInt(h(0xa7))/0x9)+parseInt(h(0x83))/0xa*(parseInt(h(0xad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xf2bed));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0xa0)]()[j(0x9f)](j(0x8a))[j(0xa0)]()[j(0x99)](a2a)[j(0x9f)](j(0x8a));});a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x82;let f=c[d];return f;},a2d(a,b);}import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2c(){const o=['askGPT','text','trim','(((.+)+)+)+$','38zppgWM','1690752ecqTzd','choices','21zoRPot','question','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','toLowerCase','message','create','close','cert','232SzfhFW','fsi','log','constructor','Using\x20CA\x20Cert\x20','cacert','ChatGPT\x20style\x20AI\x20interface','parse','notice','search','toString','stdin','data','2015855uUTROV','stdout','exit','error','76986fRhKbN','3564906OesvIU','1972Qbjbjv','openapikey','GPT:\x20','1106097CHRxMT','12193269ggMJxu','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','isFile','20dDHTCp','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','openai','apply'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0xa1)],'output':process[k(0xa4)]});c[k(0x8f)]('You:\x20',async d=>{const l=k;if(d[l(0x91)]()===l(0xa5)){c[l(0x94)]();return;}try{const e=await HTTPS[l(0x87)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x9d)](e[l(0xa2)]);if(f[l(0xa6)])throw new Error(f[l(0xa6)][l(0x92)]);console[l(0x98)](l(0xab)+f?.[l(0x8d)][0x0]?.[l(0x88)][l(0x89)]());}catch(g){Log[l(0xa6)](g),process[l(0xa5)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x93)]({'name':'ai','description':a2m(0x9c),'validOpts':['cacert',a2m(0xaa)],'shortDesc':a2m(0x9c)},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x97)][n(0x82)](b[n(0x9b)])?(c=b[n(0x9b)],Log[n(0x9e)](n(0x9a)+c)):Log[n(0xa6)](n(0x84)+c));const d=await this[n(0x97)]['getGlobalConfig']();if(d[n(0x95)]){if(this[n(0x97)][n(0x82)](d['cert']))c=d[n(0x95)];else throw Log[n(0xa6)](n(0x90)+c);}let f='';if(b[n(0xaa)])f=b['openapikey'],Log[n(0x9e)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x85)])f=d[n(0x85)];else throw Log[n(0xa6)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0x98)](n(0xae)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0xa6)](g),process['exit'](0x1);}});
1
+ function a2c(){const o=['createInterface','close','search','2409452mEAJLT','9188478suYeiO','error','message','ChatGPT\x20style\x20AI\x20interface','14atjeHV','log','choices','(((.+)+)+)+$','cacert','getGlobalConfig','constructor','trim','Using\x20CA\x20Cert\x20','5wlfHFz','622424aapTFi','6382280Zaonlv','parse','9897xRNhnS','stdout','apply','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','GPT:\x20','371871jbMNvo','98NJZvpo','openapikey','notice','3316524OncDHp','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','openai','You:\x20','exit','question','stdin','isFile','create','Using\x20OpenAI\x20Key\x20','toString','fsi','cert','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','text','askGPT'];a2c=function(){return o;};return a2c();}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x73))/0x1+-parseInt(h(0x74))/0x2*(parseInt(h(0x9c))/0x3)+-parseInt(h(0x8a))/0x4+parseInt(h(0x98))/0x5*(parseInt(h(0x77))/0x6)+parseInt(h(0x8f))/0x7*(parseInt(h(0x99))/0x8)+parseInt(h(0x8b))/0x9+-parseInt(h(0x9a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xaaa33));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x81)]()[j(0x89)](j(0x92))['toString']()[j(0x95)](a2a)['search']('(((.+)+)+)+$');});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x73;let f=c[d];return f;},a2d(a,b);}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 k=a2d,c=a2e[k(0x87)]({'input':process[k(0x7d)],'output':process[k(0x9d)]});c[k(0x7c)](k(0x7a),async d=>{const l=k;if(d['toLowerCase']()===l(0x7b)){c[l(0x88)]();return;}try{const e=await HTTPS[l(0x86)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x9b)](e['data']);if(f[l(0x8c)])throw new Error(f[l(0x8c)][l(0x8d)]);console[l(0x90)](l(0xa0)+f?.[l(0x91)][0x0]?.[l(0x85)][l(0x96)]());}catch(g){Log[l(0x8c)](g),process[l(0x7b)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x7f)]({'name':'ai','description':a2m(0x8e),'validOpts':[a2m(0x93),a2m(0x75)],'shortDesc':a2m(0x8e)},async function(a,b){const n=a2m;try{let c='';b[n(0x93)]&&(this[n(0x82)][n(0x7e)](b['cacert'])?(c=b[n(0x93)],Log[n(0x76)](n(0x97)+c)):Log[n(0x8c)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi'][n(0x94)]();if(d[n(0x83)]){if(this[n(0x82)][n(0x7e)](d['cert']))c=d[n(0x83)];else throw Log[n(0x8c)](n(0x84)+c);}let f='';if(b[n(0x75)])f=b['openapikey'],Log[n(0x76)](n(0x80)+f);else{if(d['openai'])f=d[n(0x79)];else throw Log[n(0x8c)](n(0x9f));}console[n(0x90)](n(0x78)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x8c)](g),process[n(0x7b)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xb7))/0x1*(parseInt(f(0xb5))/0x2)+-parseInt(f(0xc2))/0x3*(parseInt(f(0xbc))/0x4)+parseInt(f(0xbf))/0x5*(-parseInt(f(0xbe))/0x6)+-parseInt(f(0xbb))/0x7*(-parseInt(f(0xc1))/0x8)+-parseInt(f(0xb6))/0x9*(parseInt(f(0xc3))/0xa)+parseInt(f(0xb4))/0xb+parseInt(f(0xba))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x41075));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0xb8)](h(0xbd))['toString']()[h(0xc0)](a3a)[h(0xb8)](h(0xbd));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3c(){var i=['429ckegDq','15630YydTAa','260227jCZyeZ','2oAphSg','2259BAjMtJ','43817YLuPjx','search','apply','12149496mkajne','1012109oxbeWt','10312vsPmIM','(((.+)+)+)+$','2392410QcQThM','5UCcfdF','constructor','24bvzrAO'];a3c=function(){return i;};return a3c();}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';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xb4;var f=c[d];return f;},a3d(a,b);}import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x75))/0x1*(parseInt(f(0x72))/0x2)+-parseInt(f(0x76))/0x3*(-parseInt(f(0x77))/0x4)+-parseInt(f(0x7a))/0x5+parseInt(f(0x80))/0x6*(parseInt(f(0x78))/0x7)+-parseInt(f(0x7b))/0x8*(-parseInt(f(0x7f))/0x9)+parseInt(f(0x79))/0xa*(parseInt(f(0x74))/0xb)+-parseInt(f(0x7d))/0xc*(parseInt(f(0x7c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x4b0d9));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()['search'](h(0x7e))[h(0x81)]()['constructor'](a3a)[h(0x73)](h(0x7e));});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';function a3c(){var i=['3soLuoZ','6572qGaxSS','2422007ajWmzg','299590WSamHE','2833900USQNmU','1864NupnnU','13EzpKHG','5682696MGOXix','(((.+)+)+)+$','9153eADeSi','6OukBqb','toString','apply','4022NQgygV','search','55bTFuvW','305DdhAhj'];a3c=function(){return i;};return a3c();}import'./ti.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x72;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12b))/0x1*(-parseInt(f(0x131))/0x2)+-parseInt(f(0x133))/0x3*(parseInt(f(0x12c))/0x4)+parseInt(f(0x134))/0x5*(-parseInt(f(0x12f))/0x6)+-parseInt(f(0x125))/0x7+-parseInt(f(0x12e))/0x8+-parseInt(f(0x138))/0x9*(-parseInt(f(0x13a))/0xa)+-parseInt(f(0x126))/0xb*(-parseInt(f(0x132))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xa14f1));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x129)]()[h(0x12a)](h(0x13b))[h(0x129)]()[h(0x139)](a4a)[h(0x12a)]('(((.+)+)+)+$');});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x124;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x135)]({'name':a4i(0x136),'usage':a4i(0x124),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0x127)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x12d)](c);if(d)this[j(0x128)](c,a,b);else{Log['error'](j(0x130));throw new UsageErrorWithSubs();}});function a4c(){const k=['4442184McQzcU','3386046GgTRwD','Sub\x20Command\x20not\x20found','2HjGjUV','60WxVAcA','294FhtNNs','5ilcbKz','create','aws','apply','468QJcFmv','constructor','220090gVMcpS','(((.+)+)+)+$','maka\x20aws:<sub-command>','5543076URmTkZ','5184322qOCCyq','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','runSubCommand','toString','search','369431oiunrH','52988sdkGXl','findSubCommand'];a4c=function(){return k;};return a4c();}export default AWSCommand;
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12b))/0x1*(parseInt(f(0x132))/0x2)+parseInt(f(0x121))/0x3*(parseInt(f(0x129))/0x4)+-parseInt(f(0x128))/0x5+parseInt(f(0x133))/0x6*(-parseInt(f(0x12d))/0x7)+-parseInt(f(0x12c))/0x8*(parseInt(f(0x135))/0x9)+-parseInt(f(0x123))/0xa*(-parseInt(f(0x137))/0xb)+-parseInt(f(0x11f))/0xc*(-parseInt(f(0x127))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb5f23));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x11f;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x136)]()[h(0x12f)]('(((.+)+)+)+$')['toString']()['constructor'](a4a)[h(0x12f)](h(0x125));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x12a)]({'name':a4i(0x124),'usage':a4i(0x134),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x126),'description':a4i(0x130)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x131)](c);if(d)this['runSubCommand'](c,a,b);else{Log[j(0x12e)](j(0x122));throw new UsageErrorWithSubs();}});export default AWSCommand;function a4c(){const k=['maka\x20aws:<sub-command>','12336129OqItGO','toString','66fgbIzk','5136jNmqvo','apply','21MvThrX','Sub\x20Command\x20not\x20found','488050sySugE','aws','(((.+)+)+)+$','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','91897AQZeYN','3397530sgmDZH','676636ZOlKkl','create','73QmKwFE','8ziyaKb','861938ddRAOI','error','search','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','findSubCommand','33274oWLDex','24JMjjOj'];a4c=function(){return k;};return a4c();}
@@ -1 +1 @@
1
- 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 a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x191))/0x1*(-parseInt(i(0x178))/0x2)+-parseInt(i(0x17f))/0x3*(-parseInt(i(0x187))/0x4)+-parseInt(i(0x189))/0x5*(-parseInt(i(0x184))/0x6)+parseInt(i(0x182))/0x7+-parseInt(i(0x176))/0x8*(parseInt(i(0x174))/0x9)+parseInt(i(0x18e))/0xa*(-parseInt(i(0x172))/0xb)+-parseInt(i(0x18a))/0xc*(-parseInt(i(0x173))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x47128));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x177)]()[k(0x190)]('(((.+)+)+)+$')[k(0x177)]()['constructor'](a5a)[k(0x190)](k(0x17d));});a5a();import a5e 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 a5c(){const n=['295964tkqhBh','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','create','maka\x20aws:create-hosted-zone\x20--domain=example.com','route53CreateHostedZone','(((.+)+)+)+$','chz','48207atduAs','publicIp','chooseInstance','2416778iQHxSJ','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','12QclXSo','linkEC2ToRoute53','Instance\x20not\x20found','20gLVYkf','domain','623005FSsXMI','42432rigLdP','Set\x20hosted\x20zone\x20to\x20an\x20instance?','apply','confirm','230IfCNzU','maka\x20aws:create-hosted-zone','search','3LNiuus','176495VXDOsR','3107LFbUkw','623718LioArW','error','48OxvGEF','toString'];a5c=function(){return n;};return a5c();}Command[a5l(0x17a)]({'name':'create-hosted-zone','aliases':[a5l(0x17e)],'usage':a5l(0x18f),'requiredOpts':[a5l(0x188)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0x179),'examples':[a5l(0x17b),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b[m(0x188)],d=new AWS();d[m(0x17c)](c);const f=await Actions[m(0x18d)](m(0x18b));if(f){const g=await d[m(0x181)]();if(g?.['id']){if(!g[m(0x180)])throw Log['error'](m(0x183));d[m(0x185)](g['id'],g[m(0x180)],c);}else throw Log[m(0x175)](m(0x186));}}catch(h){console[m(0x175)](h),process['exit'](0x0);}},a5e);
1
+ const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x155))/0x1+-parseInt(i(0x153))/0x2*(-parseInt(i(0x15c))/0x3)+-parseInt(i(0x14c))/0x4*(-parseInt(i(0x157))/0x5)+parseInt(i(0x14f))/0x6*(-parseInt(i(0x159))/0x7)+parseInt(i(0x158))/0x8+parseInt(i(0x156))/0x9+parseInt(i(0x164))/0xa*(parseInt(i(0x15f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe630b));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x150)]()[j(0x161)](j(0x163))[j(0x150)]()[j(0x162)](a5a)[j(0x161)](j(0x163));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x14a;let f=c[d];return f;},a5d(a,b);}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const m=['toString','maka\x20aws:chz\x20--domain=example.com','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','7858MQkfsw','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','920688senNba','13403502cFQWLU','2143385XjvFAd','6889344UmCJMy','28sPUExA','chooseInstance','create','105FVgIhg','publicIp','domain','78936OIjlLA','linkEC2ToRoute53','search','constructor','(((.+)+)+)+$','530MQpRpw','error','create-hosted-zone','exit','8adpAIH','route53CreateHostedZone','maka\x20aws:create-hosted-zone','2793144MQZlCW'];a5c=function(){return m;};return a5c();}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[a5k(0x15b)]({'name':a5k(0x14a),'aliases':['chz'],'usage':a5k(0x14e),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5k(0x152),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a5k(0x151)]},async function(a,b){const l=a5k;try{const c=b[l(0x15e)],d=new AWS();d[l(0x14d)](c);const f=await Actions['confirm']('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[l(0x15a)]();if(g?.['id']){if(!g[l(0x15d)])throw Log[l(0x165)](l(0x154));d[l(0x160)](g['id'],g[l(0x15d)],c);}else throw Log['error']('Instance\x20not\x20found');}}catch(h){console[l(0x165)](h),process[l(0x14b)](0x0);}},a5e);
@@ -1 +1 @@
1
- function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x133;let f=c[d];return f;},a6d(a,b);}const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x13a))/0x1*(parseInt(ae(0x141))/0x2)+parseInt(ae(0x136))/0x3*(parseInt(ae(0x181))/0x4)+parseInt(ae(0x134))/0x5*(-parseInt(ae(0x14e))/0x6)+parseInt(ae(0x175))/0x7+parseInt(ae(0x148))/0x8*(-parseInt(ae(0x16e))/0x9)+parseInt(ae(0x18e))/0xa+parseInt(ae(0x16b))/0xb*(parseInt(ae(0x169))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x72cb5));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x158)]()['search'](ag(0x170))[ag(0x158)]()[ag(0x18b)](a6a)['search'](ag(0x170));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';function a6c(){const au=['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=*','4777633raPaFa','maka\x20aws:create-instance\x20--env\x20dev','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20Count:\x20','amiId','user-data','\x20AZONE:\x20','Create\x20new\x20AWS\x20instance','error','getConfigFromShorthand','name','env','1384KGgGtF','Remove\x20the\x20keypair\x20','\x20:\x20','EC2\x20Name:\x20[','log','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','unlinkSync','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','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x20SG\x20NAME:\x20','constructor','Security\x20Group:\x20','Remove\x20the\x20security\x20group\x20','1107410LBCvUE','ec2describeKeys','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Setting\x20the\x20key-pair\x20to:\x20','notice','maka-cli','forEach','getProjectConfig','alias','User\x20Data:','\x20DESCRIPTION:\x20','\x20AMIID:\x20','sgId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','success','getTime','**\x20Available\x20AMIs\x20**','build\x20on\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','create-instance','30WGyaoJ','confirm','606JguCkr','ec2create','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getConfigPath','7649xgydvw','bright','ask','number','environment','\x20SGID:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','182hEZwBv','created-by','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','split','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','apply','sort','2277896hzlOUg','getSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ImageID:','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','757440sLWauM','createFile','join','deleteKeyPair','readFileSync','**\x20Available\x20key-pairs\x20**','22,80,443','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','toString','maka\x20aws:ci\x20--env\x20prod','Subnet:\x20','Setting\x20SG\x20ID\x20to:\x20','createKeyPair','date','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','maka\x20aws:create-instance','Web\x20App','ec2createSG','1:1','subnetId','fsi','push','No\x20instance\x20has\x20been\x20created.','Setting\x20Subnet\x20ID\x20to\x20','parse','275496Utcqkk','Instace\x20Type:\x20','781NkzKmz','desc','chooseVPC','18wmKnCP','\x20CIDR:\x20','(((.+)+)+)+$','*\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','Key-Pair:\x20','ID:\x20'];a6c=function(){return au;};return a6c();}import a6g 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';Command['create']({'name':a6ah(0x133),'aliases':['ci'],'usage':a6ah(0x15f),'examples':[a6ah(0x176),a6ah(0x159)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x180)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0x17c),'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=a6ah;try{const c=this[ai(0x164)][ai(0x195)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x17e)](b[ai(0x180)]),i=this[ai(0x164)][ai(0x139)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x184)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x143),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x15c)]({'env':h});r=y,s=z,Log[ai(0x19c)](ai(0x191)+r);}else try{Log[ai(0x192)](ai(0x153));const A=r?r:k,B=await d[ai(0x18f)]({'suggestion':A}),C=await Actions[ai(0x13c)](ai(0x190))||'-1';if(parseInt(C)<0x0){Log[ai(0x17d)](ai(0x188)),Log[ai(0x192)](ai(0x166));return;}B?.[ai(0x194)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x17f)],Log[aj(0x19c)](aj(0x191)+r));});}catch(D){Log[ai(0x17d)](D);}l=await d[ai(0x16d)]();const t=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x16d)]():l;u=await Actions[ai(0x13c)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x189))||ai(0x154),G=F[ai(0x144)](',');await d[ai(0x161)]({'description':ai(0x160),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x149)](u);if(I===''){Log[ai(0x192)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x194)](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x173)+L['id']+ak(0x18a)+L['name']+ak(0x13f)+L[ak(0x19a)]):Log['bright']('ID:\x20'+L['id']+ak(0x18a)+L[ak(0x17f)]+ak(0x13f)+L[ak(0x19a)]);});const K=await Actions[ai(0x13c)](ai(0x19b)+H+']\x20')||H['toString']();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x19a)],Log[al(0x19c)](al(0x15b)+m+'\x0a'));});}else m=I,Log[ai(0x19c)](ai(0x15b)+m+'\x0a');if(m==='')throw Log[ai(0x17d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x192)](ai(0x19e));const N=execSync(ai(0x174)+M+ai(0x171))[ai(0x158)](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x196)]==='amazon'){const T=S['Desc'][am(0x144)](am(0x19f))[0x1];P[am(0x165)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x147)](function(S,T){const an=ai;return new Date(T[an(0x15d)])['getTime']()-new Date(S['date'])[an(0x19d)]();}),P[ai(0x194)](function(S,T){const ao=ai;Q[ao(0x165)]({'id':T,'amiId':S[ao(0x179)],'desc':S[ao(0x16c)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x185)](ap(0x173)+S['id']+ap(0x199)+S['amiId']+ap(0x198)+S['desc']);});const R=await Actions[ai(0x13c)](ai(0x155))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x179)],Log[aq(0x19c)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x183)+S[aq(0x16c)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x17d)](S);}try{Log[ai(0x192)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x156))['toString'](),U=JSON[ai(0x168)](T),V=[];U[ai(0x194)](function(X,Y){const ar=ai;V[ar(0x165)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x163)]});}),V['forEach'](function(X){const as=ai;console['log'](as(0x173)+X['id']+as(0x16f)+X['cidr']+as(0x17b)+X['az']+'\x20SUBNETID:\x20'+X[as(0x163)]);});const W=await Actions[ai(0x13c)](ai(0x177))||'0';V[ai(0x194)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x163)],Log[at(0x19c)](at(0x167)+p));});if(p==='')throw Log[ai(0x17d)](ai(0x1a0));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x13c)](ai(0x14d))||ai(0x162),Z=Y[ai(0x144)](':')[0x0],a0=Y[ai(0x144)](':')[0x1];typeof parseInt(Z)===ai(0x13d)&&typeof parseInt(a0)===ai(0x13d)&&Log[ai(0x19c)](ai(0x140)+Z+':'+a0);}catch(a1){Log[ai(0x17d)](a1);}try{const a2=await Actions[ai(0x13c)](ai(0x138))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x17d)](a3);}let x='';try{const a4=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ai(0x150)](i,ai(0x17a)),Log[ai(0x192)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x164)][ai(0x14f)]({'filePath':x,'data':''}),await Actions[ai(0x135)](ai(0x157)));}catch(a5){Log[ai(0x17d)](a5);}try{const a6=JSON['parse'](execSync(ai(0x14a)+p+ai(0x1a1))[ai(0x158)]())[0x0]['subnet'];Log[ai(0x192)](ai(0x14b)+n),Log['notice'](ai(0x178)+v+':'+w),Log[ai(0x192)](ai(0x16a)+o),Log[ai(0x192)](ai(0x172)+r),Log[ai(0x192)](ai(0x18c)+m),Log[ai(0x192)](ai(0x15a)+a6);if(x){Log[ai(0x192)](ai(0x197)+x);const a8=a6g[ai(0x152)](x)[ai(0x158)]();Log[ai(0x192)](a8);}const a7=await Actions[ai(0x135)](ai(0x15e));if(a7){const a9=await d[ai(0x137)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x142),'Value':ai(0x193)},{'Key':ai(0x13e),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x19c)](ai(0x186)),Log[ai(0x13b)](ai(0x14c)));}else{Log[ai(0x192)](ai(0x145));const aa=await Actions[ai(0x135)](ai(0x182)+r+'\x20?',!![]);aa&&(d[ai(0x151)](r),f['isFile'](s)&&a6g[ai(0x187)](s));const ab=await Actions[ai(0x135)](ai(0x18d)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console['log'](ac),Log['error'](ac);}}catch(ad){console[ai(0x17d)](ad),process['exit'](0x0);}},a6e);
1
+ const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x22b))/0x1+parseInt(ae(0x1f4))/0x2+-parseInt(ae(0x21b))/0x3+parseInt(ae(0x221))/0x4*(parseInt(ae(0x205))/0x5)+-parseInt(ae(0x21d))/0x6+-parseInt(ae(0x212))/0x7*(parseInt(ae(0x22e))/0x8)+parseInt(ae(0x1ec))/0x9*(parseInt(ae(0x1d8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe4a47));const a6b=(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;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0x203)]()[af(0x1f5)](af(0x1f8))['toString']()[af(0x1e7)](a6a)['search']('(((.+)+)+)+$');});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g 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 a6c(){const at=['Instace\x20Type:\x20','**\x20Available\x20Security\x20Groups\x20**','split','Setting\x20the\x20key-pair\x20to:\x20','confirm','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','error','subnet','Create\x20new\x20AWS\x20instance','1616449QsrqQh','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','856sNCpJo','create','getTime','\x20:\x20','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','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ec2describeKeys','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','cidr','Remove\x20the\x20security\x20group\x20','Setting\x20Subnet\x20ID\x20to\x20','**\x20Available\x20AMIs\x20**','number','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','user-data','createFile','unlinkSync','\x20AZONE:\x20','101440IXKlBb','string','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','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=*','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','User\x20Data:','\x20CIDR:\x20','deleteSecurityGroup','ImageID:','subnetId','Remove\x20the\x20keypair\x20','Key-Pair:\x20','success','constructor','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice','ID:\x20','createKeyPair','2493Vzbcip','\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','ec2create','Name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instance\x20Count:\x20','t3.micro','EC2\x20Name:\x20[','2558118JdCDgh','search','push','env','(((.+)+)+)+$','alias','Desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x20SG\x20NAME:\x20','desc','maka\x20aws:ci\x20--env\x20prod','cider','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ask','**\x20Available\x20key-pairs\x20**','toString','getConfigPath','5upYADr','Setting\x20SG\x20ID\x20to:\x20','amazon','join','Web\x20App','ec2createSG','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','bright','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Subnet:\x20','log','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','forEach','735XwAJCl','amiId','fsi','getProjectConfig','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','chooseVPC','sort','parse','\x20DESCRIPTION:\x20','5397759fmHgaS','name','546078rYxWHA','readFileSync','1:1','maka-cli','1462088RWqipn'];a6c=function(){return at;};return a6c();}Command[a6ag(0x22f)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x1fe)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1f7)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ag(0x22a),'description':a6ag(0x1ed)},async function(a,b){const ah=a6ag;try{const c=this[ah(0x214)][ah(0x215)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getConfigFromShorthand'](b[ah(0x1f7)]),i=this[ah(0x214)][ah(0x204)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x1f3)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x226)](ah(0x216),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1eb)]({'env':h});r=y,s=z,Log[ah(0x1e6)](ah(0x225)+r);}else try{Log[ah(0x1e9)](ah(0x202));const A=r?r:k,B=await d[ah(0x234)]({'suggestion':A}),C=await Actions[ah(0x201)](ah(0x22c))||'-1';if(parseInt(C)<0x0){Log[ah(0x228)](ah(0x232)),Log[ah(0x1e9)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x21c)],Log[ai(0x1e6)](ai(0x225)+r));});}catch(D){Log[ah(0x228)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x226)](ah(0x22d),!![]);let u;if(t){const E=l===''?await d[ah(0x217)]():l;u=await Actions[ah(0x201)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ah(0x1d2))||'22,80,443',G=F[ah(0x224)](',');await d[ah(0x20a)]({'description':ah(0x209),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x1e9)](ah(0x223)),J['forEach'](function(L){const aj=ah;L[aj(0x21c)]===u?Log[aj(0x1e9)]('ID:\x20'+L['id']+aj(0x1fc)+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]):Log[aj(0x20c)](aj(0x1ea)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]);});const K=await Actions[ah(0x201)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1dc)],Log[ak(0x1e6)](ak(0x206)+m+'\x0a'));});}else m=I,Log[ah(0x1e6)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ah(0x1f0));}catch(L){Log[ah(0x228)](L);}try{const M=0x7e6;Log[ah(0x1e9)](ah(0x1d0));const N=execSync(ah(0x1dd)+M+'*\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')[ah(0x203)](),O=JSON[ah(0x219)](N),P=[],Q=[];O[ah(0x211)](function(S){const al=ah;if(S[al(0x1f9)]===al(0x207)){const T=S[al(0x1fa)][al(0x224)]('build\x20on\x20')[0x1];P[al(0x1f6)]({'amiId':S['ID'],'desc':S[al(0x1fa)],'date':T});}}),P[ah(0x218)](function(S,T){const am=ah;return new Date(T['date'])[am(0x230)]()-new Date(S['date'])[am(0x230)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x1f6)]({'id':T,'amiId':S['amiId'],'desc':S[an(0x1fd)]});}),Q[ah(0x211)](function(S){const ao=ah;console['log'](ao(0x1ea)+S['id']+'\x20AMIID:\x20'+S[ao(0x213)]+ao(0x21a)+S[ao(0x1fd)]);});const R=await Actions[ah(0x201)](ah(0x200))||'0';Q[ah(0x211)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x1e6)](ap(0x1db)+n+ap(0x231)+S[ap(0x1fd)]));});if(n==='')throw Log[ah(0x228)](ah(0x1f0));}catch(S){Log['error'](S);}try{Log[ah(0x1e9)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x1e8))[ah(0x203)](),U=JSON[ah(0x219)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V[aq(0x1f6)]({'id':Y,'cidr':X[aq(0x1ff)],'az':X['az'],'subnetId':X[aq(0x1e3)]});}),V[ah(0x211)](function(X){const ar=ah;console['log'](ar(0x1ea)+X['id']+ar(0x1e0)+X[ar(0x1cd)]+ar(0x1d7)+X['az']+'\x20SUBNETID:\x20'+X[ar(0x1e3)]);});const W=await Actions[ah(0x201)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0x211)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1e3)],Log[as(0x1e6)](as(0x1cf)+p));});if(p==='')throw Log[ah(0x228)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x228)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x227))||ah(0x21f),Z=Y[ah(0x224)](':')[0x0],a0=Y[ah(0x224)](':')[0x1];typeof parseInt(Z)===ah(0x1d1)&&typeof parseInt(a0)===ah(0x1d1)&&Log['success'](ah(0x233)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ah(0x201)](ah(0x20b))||ah(0x1f2);typeof a2===ah(0x1d9)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ah(0x226)](ah(0x1d3),![]);a4&&(x=a6f[ah(0x208)](i,ah(0x1d4)),Log[ah(0x1e9)](ah(0x1da)+x),await this[ah(0x214)][ah(0x1d5)]({'filePath':x,'data':''}),await Actions[ah(0x226)](ah(0x210)));}catch(a5){Log[ah(0x228)](a5);}try{const a6=JSON[ah(0x219)](execSync(ah(0x20d)+p+ah(0x1de))[ah(0x203)]())[0x0][ah(0x229)];Log[ah(0x1e9)](ah(0x1e2)+n),Log['notice'](ah(0x1f1)+v+':'+w),Log[ah(0x1e9)](ah(0x222)+o),Log[ah(0x1e9)](ah(0x1e5)+r),Log[ah(0x1e9)]('Security\x20Group:\x20'+m),Log[ah(0x1e9)](ah(0x20e)+a6);if(x){Log[ah(0x1e9)](ah(0x1df)+x);const a8=a6g[ah(0x21e)](x)[ah(0x203)]();Log[ah(0x1e9)](a8);}const a7=await Actions[ah(0x226)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ah(0x1ee)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ah(0x220)},{'Key':'environment','Value':h},{'Key':ah(0x1ef),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1e6)](ah(0x1fb)),Log[ah(0x20c)](ah(0x235)));}else{Log[ah(0x1e9)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ah(0x1e4)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a6g[ah(0x1d6)](s));const ab=await Actions[ah(0x226)](ah(0x1ce)+m+'\x20?',!![]);ab&&d[ah(0x1e1)](m);}}catch(ac){console[ah(0x20f)](ac),Log[ah(0x228)](ac);}}catch(ad){console['error'](ad),process['exit'](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7j=a7d;function a7c(){const l=['search','maka\x20aws:create-key-pair\x20--env\x20prod','17290HZAKtt','2579496gxEVMo','20152DeVqQK','2322392WqWYUj','maka\x20aws:ckp\x20--env\x20prod','8448930TQeFMM','exit','ckp','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','apply','toString','env','7XspSDq','create','getConfigFromShorthand','237iOwTEM','6814323HYidls','create-key-pair','3342280BUFSoS','maka\x20aws:create-key-pair','constructor','73YDwdiV'];a7c=function(){return l;};return a7c();}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0xc9))/0x1*(parseInt(g(0xb4))/0x2)+-parseInt(g(0xc3))/0x3*(parseInt(g(0xb6))/0x4)+parseInt(g(0xc6))/0x5+parseInt(g(0xb5))/0x6*(parseInt(g(0xc0))/0x7)+parseInt(g(0xb7))/0x8+-parseInt(g(0xc4))/0x9+parseInt(g(0xb9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6d362));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xb2;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0xbd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a['toString']()['search']('(((.+)+)+)+$')[i(0xbe)]()[i(0xc8)](a7a)[i(0xb2)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7j(0xc1)]({'name':a7j(0xc5),'aliases':[a7j(0xbb)],'usage':a7j(0xc7),'examples':[a7j(0xb3),a7j(0xb8)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0xbf)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0xbc),'description':'\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'},async function(a,b){const k=a7j;try{const c=new AWS(),d=this['fsi'][k(0xc2)](b[k(0xbf)]);c['createKeyPair']({'env':d});}catch(f){console['error'](f),process[k(0xba)](0x0);}},a7e);
1
+ const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x112))/0x1+parseInt(g(0x113))/0x2*(-parseInt(g(0x122))/0x3)+parseInt(g(0x11e))/0x4*(-parseInt(g(0x11a))/0x5)+parseInt(g(0x118))/0x6*(-parseInt(g(0x10f))/0x7)+parseInt(g(0x114))/0x8+-parseInt(g(0x119))/0x9+parseInt(g(0x110))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xba0d6));function a7c(){const l=['(((.+)+)+)+$','3mSkOmJ','\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','ckp','60025qUGJCc','51052140hDMUrU','apply','1431429kgbnUD','2603612WJwdUI','7379664krhwyU','constructor','getConfigFromShorthand','exit','840ZbqMCd','2793087QFapMj','105seifCJ','env','createKeyPair','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','194576EiONQy','toString','maka\x20aws:ckp\x20--env\x20prod'];a7c=function(){return l;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x10f;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x11f)]()['search'](i(0x121))[i(0x11f)]()[i(0x115)](a7a)['search'](i(0x121));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'create-key-pair','aliases':[a7j(0x124)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x120)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0x11d),'description':a7j(0x123)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this['fsi'][k(0x116)](b[k(0x11b)]);c[k(0x11c)]({'env':d});}catch(f){console['error'](f),process[k(0x117)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x84))/0x1*(parseInt(m(0x8d))/0x2)+parseInt(m(0x8f))/0x3+-parseInt(m(0x86))/0x4+-parseInt(m(0x76))/0x5*(parseInt(m(0x88))/0x6)+parseInt(m(0x72))/0x7+-parseInt(m(0x81))/0x8*(parseInt(m(0x7c))/0x9)+-parseInt(m(0x8a))/0xa*(-parseInt(m(0x8c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x1b799));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 n=a8d;return a8a[n(0x7a)]()[n(0x87)](n(0x83))[n(0x7a)]()['constructor'](a8a)[n(0x87)]('(((.+)+)+)+$');});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x6f;let f=c[d];return f;},a8d(a,b);}a8a();function a8c(){const r=['forEach','fsi','22,80,443','4792SZkRxI','split','(((.+)+)+)+$','1VzFexl','Web\x20App','269708qHrLEs','search','66gXwzbf','Security\x20Group\x20Name:\x20[','30eKUppa','chooseVPC','401467qXwUXk','237418ZZUUoQ','name','579027EONMiF','ec2createSG','create-security-group','maka\x20aws:csg','1475726dXBKrZ','ask','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','38755EXAeUZ','\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','error','maka\x20aws:create-secuirty-group','toString','getProjectConfig','1944gTcCaM','match'];a8c=function(){return r;};return a8c();}import a8e 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['create']({'name':a8o(0x70),'aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8o(0x74),'description':a8o(0x77),'examples':[a8o(0x79),a8o(0x71)]},async function(a,b){const p=a8o;try{const c=new AWS(),d=this[p(0x7f)][p(0x7b)](),{appName:f}=d,g=await c[p(0x8b)](),h=b[p(0x8e)]?b['name']:''+f,i=await Actions[p(0x73)](p(0x89)+h+']')||h,j=await Actions['ask'](p(0x75))||p(0x80),k=j[p(0x82)](',');k[p(0x7e)](l=>{const q=p;if(!l[q(0x7d)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[p(0x6f)]({'description':p(0x85),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0x78)](l),process['exit'](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x1eb))/0x1+parseInt(m(0x1e8))/0x2+parseInt(m(0x1ed))/0x3+-parseInt(m(0x1f4))/0x4+parseInt(m(0x1de))/0x5+-parseInt(m(0x1dc))/0x6*(parseInt(m(0x1ee))/0x7)+-parseInt(m(0x1e2))/0x8*(parseInt(m(0x1f2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x976ad));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x1df)]()[o(0x1e3)](o(0x1e5))['toString']()['constructor'](a8a)[o(0x1e3)](o(0x1e5));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a8d(a,b);}a8a();import a8e from'./aws.command.js';function a8c(){const s=['name','Security\x20Group\x20Name:\x20[','62072qupJIK','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','22,80,443','maka\x20aws\x20create-security-group','532472tpwHaN','List\x20is\x20not\x20all\x20numbers','maka\x20aws:csg','217097GtkeOU','split','1347147nnkmZb','189asjqsn','csg','create','error','162PabxSQ','fsi','2218564qrjxzL','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','ec2createSG','Web\x20App','apply','create-security-group','chooseVPC','\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','132936VqNRAV','exit','4901690GRssCl','toString'];a8c=function(){return s;};return a8c();}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[a8p(0x1f0)]({'name':a8p(0x1d9),'aliases':[a8p(0x1ef)],'usage':a8p(0x1e7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x1d5),'description':a8p(0x1db),'examples':['maka\x20aws:create-secuirty-group',a8p(0x1ea)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x1f3)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x1da)](),h=b['name']?b[q(0x1e0)]:''+f,i=await Actions['ask'](q(0x1e1)+h+']')||h,j=await Actions['ask'](q(0x1e4))||q(0x1e6),k=j[q(0x1ec)](',');k['forEach'](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x1e9);}),await c[q(0x1d6)]({'description':q(0x1d7),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x1f1)](l),process[q(0x1dd)](0x1);}},a8e);
@@ -1 +1 @@
1
- const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x14a))/0x1+parseInt(f(0x14c))/0x2*(-parseInt(f(0x152))/0x3)+-parseInt(f(0x141))/0x4+parseInt(f(0x146))/0x5+parseInt(f(0x150))/0x6*(-parseInt(f(0x143))/0x7)+-parseInt(f(0x14d))/0x8+parseInt(f(0x151))/0x9*(parseInt(f(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xcb844));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x14f)]()[h(0x145)](h(0x142))[h(0x14f)]()[h(0x14e)](a9a)['search'](h(0x142));});function a9c(){const k=['20UlStVB','maka\x20aws:di','maka\x20aws:describe-instances','824028Lnoxtl','(((.+)+)+)+$','14861ztECIq','\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','search','5194525PiQmFp','apply','error','ec2describeInstances','1130993szqlOF','create','67942vPTGDG','6478640pBUUUD','constructor','toString','1890GputEE','8599293MoGWsQ','138aOGkOT','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI'];a9c=function(){return k;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x13f;let f=c[d];return f;},a9d(a,b);}Command[a9i(0x14b)]({'name':'describe-instances','aliases':['di'],'usage':a9i(0x140),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0x153),'examples':[a9i(0x140),a9i(0x13f)],'description':a9i(0x144)},async function(){const j=a9i;try{const a=new AWS();a[j(0x149)]();}catch(b){console[j(0x148)](b),process['exit'](0x0);}},a9e);
1
+ const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x173))/0x1*(parseInt(f(0x16b))/0x2)+parseInt(f(0x16c))/0x3*(-parseInt(f(0x16a))/0x4)+-parseInt(f(0x17f))/0x5*(parseInt(f(0x176))/0x6)+-parseInt(f(0x16e))/0x7*(-parseInt(f(0x180))/0x8)+parseInt(f(0x177))/0x9*(parseInt(f(0x17e))/0xa)+-parseInt(f(0x16d))/0xb+parseInt(f(0x168))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x7b531));function a9c(){const k=['exit','describe-instances','maka\x20aws:di','170wGwsQn','15dwKENc','904QGXrIc','14365644nGmPvM','toString','139604WiAfyg','808466MFzimQ','45ajdInA','5606425GpToMH','60725GbPzAN','search','(((.+)+)+)+$','create','maka\x20aws:describe-instances','1qJyIvQ','\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','ec2describeInstances','636168ZoAJFM','44064UJkuFr','error','constructor','apply'];a9c=function(){return k;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x169)]()[h(0x16f)](h(0x170))[h(0x169)]()[h(0x179)](a9a)[h(0x16f)](h(0x170));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x168;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9i(0x171)]({'name':a9i(0x17c),'aliases':['di'],'usage':a9i(0x172),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x172),a9i(0x17d)],'description':a9i(0x174)},async function(){const j=a9i;try{const a=new AWS();a[j(0x175)]();}catch(b){console[j(0x178)](b),process[j(0x17b)](0x0);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x16c))/0x1+-parseInt(f(0x166))/0x2*(parseInt(f(0x16b))/0x3)+parseInt(f(0x168))/0x4*(-parseInt(f(0x170))/0x5)+-parseInt(f(0x16f))/0x6+parseInt(f(0x165))/0x7+parseInt(f(0x16d))/0x8+-parseInt(f(0x169))/0x9*(-parseInt(f(0x167))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xefa3a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x171)]()[h(0x162)](h(0x160))[h(0x171)]()[h(0x16e)](a10a)[h(0x162)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x15e;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x161)]({'name':a10i(0x15f),'aliases':['dkp'],'usage':a10i(0x163),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console[j(0x16a)](b),process[j(0x15e)](0x0);}},a10e);function a10c(){const k=['5vvJhKM','toString','exit','describe-key-pairs','(((.+)+)+)+$','create','search','maka\x20aws:describe-key-pairs','apply','1754767Ciaddd','2KzFkyz','40HZhsUo','2760724IBsgNm','7949151xxOuIN','error','841905xoWQUw','1573687dmTPBP','6804680XQWrtO','constructor','6648942KEonHs'];a10c=function(){return k;};return a10c();}
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x6d))/0x1+-parseInt(f(0x73))/0x2*(-parseInt(f(0x6b))/0x3)+-parseInt(f(0x6a))/0x4*(-parseInt(f(0x66))/0x5)+parseInt(f(0x74))/0x6*(parseInt(f(0x64))/0x7)+parseInt(f(0x70))/0x8+-parseInt(f(0x7b))/0x9*(-parseInt(f(0x6e))/0xa)+parseInt(f(0x69))/0xb*(-parseInt(f(0x78))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7c42a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()['search'](h(0x79))[h(0x65)]()[h(0x75)](a10a)['search']('(((.+)+)+)+$');});function a10c(){const k=['create','104844mnZKAo','(((.+)+)+)+$','exit','35604sagUUl','2004779qAxasy','toString','1063135UqtSaO','maka\x20aws:describe-key-pairs','ec2describeKeys','4213cVZUdC','12wTBnCD','6XSYLDR','error','497909ReZcFl','1750ZoGoQH','dkp','7100256IkooRR','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','apply','853222mPSBKr','6KZmXDi','constructor','maka\x20aws:dkp'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x64;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x77)]({'name':'describe-key-pairs','aliases':[a10i(0x6f)],'usage':a10i(0x67),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x71),'examples':[a10i(0x67),a10i(0x76)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x68)]();}catch(b){console[j(0x6c)](b),process[j(0x7a)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x108))/0x1+parseInt(l(0x104))/0x2*(-parseInt(l(0x119))/0x3)+-parseInt(l(0x11a))/0x4+-parseInt(l(0x115))/0x5+parseInt(l(0x11b))/0x6+-parseInt(l(0xfb))/0x7*(parseInt(l(0x101))/0x8)+-parseInt(l(0xfa))/0x9*(-parseInt(l(0x102))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x93955));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x11f)]()[n(0x11e)]('(((.+)+)+)+$')['toString']()[n(0xff)](a11a)[n(0x11e)](n(0x120));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xfa;let f=c[d];return f;},a11d(a,b);}function a11c(){const s=['includes','search','toString','(((.+)+)+)+$','Not\x20deleting\x20secuirty\x20group','notice','bright','9onpDEG','7dPBvsY','maka\x20aws:delete-sg','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:dsg','constructor','\x20SGID:\x20','1826824CWwLdD','13458500zWJIbL','error','62aFwUPg','create','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','forEach','112579ILxxWB','sgId','confirm','name','ID:\x20','getSecurityGroups','Deleted\x20','getProjectConfig','delete-security-group','apply','Deleting\x20a\x20','exit','deleteSecurityGroup','875670OMoiSg','dsg','appName','success','23031IDEuzi','996560sxgmkc','1571064HHCcYM','\x20SG\x20NAME:\x20'];a11c=function(){return s;};return a11c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0x105)]({'name':a11o(0x110),'aliases':[a11o(0x116)],'usage':'maka\x20aws:delete-sg','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x106),'examples':[a11o(0xfc),a11o(0xfe)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x10f)]();d=j[p(0x117)];}const {sgList:f}=await a[p(0x10d)]();f[p(0x107)](function(k){const q=p;c&&k[q(0x10b)][q(0x11d)](d)?Log[q(0x122)](q(0x10c)+k['id']+q(0x11c)+k[q(0x10b)]+q(0x100)+k[q(0x109)]):Log[q(0x123)](q(0x10c)+k['id']+q(0x11c)+k[q(0x10b)]+'\x20SGID:\x20'+k[q(0x109)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x107)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x109)]);});if(!g)throw Log[p(0x103)](p(0xfd));const i=await Actions[p(0x10a)](p(0x112)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x114)](g),Log[p(0x118)](p(0x10e)+g)):Log['error'](p(0x121)),process[p(0x113)](0x0);}catch(k){process[p(0x113)](0x1);}},a11e);
1
+ const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x181))/0x1*(parseInt(l(0x17e))/0x2)+-parseInt(l(0x17a))/0x3*(parseInt(l(0x16c))/0x4)+-parseInt(l(0x184))/0x5+parseInt(l(0x16e))/0x6*(parseInt(l(0x170))/0x7)+-parseInt(l(0x187))/0x8*(-parseInt(l(0x174))/0x9)+parseInt(l(0x175))/0xa*(parseInt(l(0x173))/0xb)+parseInt(l(0x17f))/0xc*(parseInt(l(0x160))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xa71d0));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x186)]()[n(0x16b)](n(0x163))[n(0x186)]()[n(0x164)](a11a)[n(0x16b)]('(((.+)+)+)+$');});a11a();function a11c(){const r=['4tZHjZC','forEach','4093422SZEoRl','success','14zLHPEF','getSecurityGroups','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','375485eqylMI','69354QwHplQ','70VOyVml','maka\x20aws:dsg','confirm','isMakaProject','error','2375148hDFYFX','exit','maka\x20aws:delete-sg','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','66Xzwfcg','12175788cBpaCm','sgId','16053VSKmtL','\x20SGID:\x20','bright','6489705AIuJVt','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','toString','712wtMppa','13qLFvyh','Deleted\x20','create','(((.+)+)+)+$','constructor','deleteSecurityGroup','apply','Not\x20deleting\x20secuirty\x20group','notice','name','dsg','search'];a11c=function(){return r;};return a11c();}import a11e 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';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x160;let f=c[d];return f;},a11d(a,b);}Command[a11o(0x162)]({'name':'delete-security-group','aliases':[a11o(0x16a)],'usage':a11o(0x17c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x185),'examples':[a11o(0x17c),a11o(0x176)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x178)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x171)]();f[p(0x16d)](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0x168)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x169)]+q(0x182)+k[q(0x180)]):Log[q(0x183)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x169)]+q(0x182)+k[q(0x180)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x16d)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x179)](p(0x172));const i=await Actions[p(0x177)]('Deleting\x20a\x20'+g+p(0x17d),![]);i?(await a[p(0x165)](g),Log[p(0x16f)](p(0x161)+g)):Log[p(0x179)](p(0x167)),process[p(0x17b)](0x0);}catch(k){process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;function a12c(){const k=['3HwFFbr','reboot-instance','apply','running','2642016zPCBBx','(((.+)+)+)+$','confirm','exit','maka\x20aws:rbi','916324GBWTdP','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','18260fApoFr','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','instanceId','maka\x20aws:reboot-instance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','10684024KroCXu','\x20is\x20still\x20running.','chooseInstance','error','toString','\x20Ready?','846476YFKXjN','search','name','status','2238075txHKcb','constructor','3006730bZBnOh'];a12c=function(){return k;};return a12c();}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x115))/0x1+parseInt(f(0x117))/0x2+-parseInt(f(0x12a))/0x3*(parseInt(f(0x123))/0x4)+parseInt(f(0x129))/0x5+-parseInt(f(0x110))/0x6+parseInt(f(0x127))/0x7+parseInt(f(0x11d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xaa451));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0x124)](h(0x111))[h(0x121)]()[h(0x128)](a12a)[h(0x124)](h(0x111));});a12a();import a12e 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 a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x110;let f=c[d];return f;},a12d(a,b);}Command['create']({'name':a12i(0x12b),'aliases':['rbi'],'usage':a12i(0x11a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0x11c),'examples':['maka\x20aws:reboot-instance',a12i(0x114)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x11f)]();if(b?.[j(0x126)]===j(0x12d)){const c=await Actions[j(0x112)](j(0x11b)+b[j(0x125)]+j(0x122));c&&b[j(0x119)]?a['ec2rebootInstance']({'instanceId':b[j(0x119)]}):Log[j(0x120)](j(0x118)+b[j(0x125)]+j(0x11e));}else Log[j(0x120)](j(0x116));}catch(d){console[j(0x120)](d),process[j(0x113)](0x0);}},a12e);
1
+ function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xb8;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xd4))/0x1*(-parseInt(f(0xb9))/0x2)+-parseInt(f(0xbd))/0x3*(parseInt(f(0xbf))/0x4)+parseInt(f(0xd3))/0x5*(parseInt(f(0xcc))/0x6)+parseInt(f(0xd9))/0x7*(parseInt(f(0xd6))/0x8)+-parseInt(f(0xc2))/0x9+-parseInt(f(0xd7))/0xa+-parseInt(f(0xca))/0xb*(-parseInt(f(0xd8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x38468));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xc8)]()[h(0xd0)](h(0xc3))[h(0xc8)]()[h(0xcb)](a12a)['search'](h(0xc3));});a12a();import a12e 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';function a12c(){const k=['constructor','1626FiidaZ','exit','name','create','search','apply','confirm','2675RwarKO','37141sQNjou','maka\x20aws:rbi','968ePDnel','4218720WGirGM','24JJHTce','15995EBoeXr','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','6qDUQbL','Reboot\x20an\x20EC2\x20instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:reboot-instance','9uCGalH','error','285364yXOPUA','status','running','3072348CejpPZ','(((.+)+)+)+$','ec2rebootInstance','reboot-instance','instanceId','rbi','toString','\x20Ready?','3711829VbxyVp'];a12c=function(){return k;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command[a12i(0xcf)]({'name':a12i(0xc5),'aliases':[a12i(0xc7)],'usage':a12i(0xbc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xba),'examples':[a12i(0xbc),a12i(0xd5)]},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xc0)]===j(0xc1)){const c=await Actions[j(0xd2)](j(0xb8)+b['name']+j(0xc9));c&&b[j(0xc6)]?a[j(0xc4)]({'instanceId':b[j(0xc6)]}):Log[j(0xbe)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xce)]+'\x20is\x20still\x20running.');}else Log[j(0xbe)](j(0xbb));}catch(d){console['error'](d),process[j(0xcd)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0xde))/0x1+-parseInt(E(0xf4))/0x2+parseInt(E(0xe2))/0x3*(-parseInt(E(0xc3))/0x4)+parseInt(E(0xd4))/0x5+parseInt(E(0xc2))/0x6+-parseInt(E(0xd1))/0x7*(parseInt(E(0xe9))/0x8)+parseInt(E(0xdf))/0x9*(parseInt(E(0xf3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf3c7b));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xd5)]()[G(0xc4)](G(0xf2))['toString']()[G(0xdc)](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';function a13c(){const K=['Address\x20Line\x202:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','\x20years\x20(','confirm','notice','error','(((.+)+)+)+$','1480XzaSYx','2453140iXgKAi','OrganizationName','RESELLER','Do\x20you\x20wish\x20to\x20register\x20','ASSOCIATION','+1.5555555556','The\x20domain\x20name:\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','register-domain-name','maka\x20aws:register-domain-name','checkDomainAvailability','COMPANY','maka\x20aws:rdn\x20--domain=example.com','2801412BnFUuR','12VnxRGv','search','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','\x20/\x20Year)','Choose\x20contact\x20type','Domain\x20name\x20is\x20unavailable','options','contactType','State\x20[HI]:\x20','includes','maka\x20aws:register-domain-name\x20--domain=example.com','mail@example.com','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','domain','49hzCTJr','Invalid\x202\x20character\x20country\x20code','Contact\x20Email\x20[mail@example.com]:\x20','5986000dzDbGr','toString','ask','apply','warn','Contact','\x20is\x20available\x20for:','rdn','constructor','Contact\x20Last\x20Name\x20[Person]:\x20','234481RxkOqr','258075uALWwi','Auto\x20Renew:\x20','Contact\x20First\x20Name\x20[Contact]:\x20','1966791qzQSbb','\x20for\x20','123\x20Glorious\x20Way','Country\x20Code\x20[US]:\x20','PERSON','list','96816','2229256CMkoUG','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a13c=function(){return K;};return a13c();}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 H=a13d;return Object['values'](CountryCode)[H(0xcc)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xbb;let f=c[d];return f;},a13d(a,b);}Command['create']({'name':a13I(0xbd),'aliases':[a13I(0xdb)],'usage':a13I(0xbe),'requiredOpts':[a13I(0xd0)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0xc5),'examples':[a13I(0xcd),a13I(0xc1)]},async function(a,b){const J=a13I;try{const c=b[J(0xd0)],d=new AWS(),{available:f,cost:g}=await d[J(0xbf)](c);if(f&&g){Log[J(0xf0)](J(0xbb)+c+J(0xda));const {Price:h,Currency:i}=g;Log[J(0xd8)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0xef)](J(0xf7)+c+'\x20?',![]);if(j){const k={'type':J(0xe7),'name':J(0xca),'message':J(0xc7),'choices':[J(0xf8),J(0xc0),J(0xe6),'PUBLIC_BODY',J(0xf6)]},l=await Actions[J(0xd6)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0xd6)](J(0xe1))||J(0xd9),n=await Actions[J(0xd6)](J(0xdd))||'Person',{contactType:o}=await Actions[J(0xc9)](k),p=await Actions[J(0xd6)](J(0xea))||J(0xe4),q=await Actions[J(0xd6)](J(0xec)),r=await Actions['ask']('Zip\x20Code\x20[96816]:\x20')||J(0xe8),s=await Actions['ask'](J(0xcb))||'HI',t=await Actions['ask'](J(0xe5))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xf1)](J(0xd2));const v=await Actions[J(0xd6)](J(0xbc))||'+1.5555555555',w=await Actions[J(0xd6)](J(0xed))||J(0xf9),x=await Actions[J(0xd6)](J(0xd3))||J(0xce),y=await Actions[J(0xef)](J(0xe0)),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!==J(0xe6)){const C=await Actions[J(0xd6)](J(0xcf))||'My\x20Comanpy,\x20LLC.';z[J(0xf5)]=C;}const A=h||0x0*parseInt(l);Log[J(0xf0)](J(0xeb)),Log[J(0xd8)](A+'\x20'+i+J(0xe3)+l+J(0xee)+h+'\x20'+i+J(0xc6));const B=await Actions[J(0xef)]('Are\x20you\x20sure?');B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log[J(0xf1)](J(0xc8));}catch(D){console[J(0xf1)](D),process['exit'](0x0);}},a13e);
1
+ const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0xed))/0x1+parseInt(E(0x108))/0x2*(parseInt(E(0xfe))/0x3)+parseInt(E(0x100))/0x4+parseInt(E(0xcf))/0x5*(-parseInt(E(0xdc))/0x6)+parseInt(E(0xcd))/0x7+parseInt(E(0xf9))/0x8*(-parseInt(E(0xf3))/0x9)+-parseInt(E(0xec))/0xa*(-parseInt(E(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x46ca6));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xea)]()[G(0xe8)](G(0xcb))[G(0xea)]()[G(0x105)](a13a)['search'](G(0xcb));});a13a();import a13e 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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function a13c(){const K=['includes','110qsusKH','558219mStrIY','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20First\x20Name\x20[Contact]:\x20','ASSOCIATION','Domain\x20name\x20is\x20unavailable','+1.5555555556','1137753DWXekw','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','My\x20Comanpy,\x20LLC.','domain','1393359MpKMGK','Contact\x20Last\x20Name\x20[Person]:\x20','24ztRynd','Choose\x20contact\x20type','maka\x20aws:register-domain-name','Person','\x20years\x20(','3FwOxvk','apply','138376uLBGXg','The\x20domain\x20name:\x20','ask','PERSON','Address\x20Line\x202:\x20','constructor','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20/\x20Year)','381394eEiLEN','exit','Contact','maka\x20aws:rdn\x20--domain=example.com','\x20is\x20available\x20for:','(((.+)+)+)+$','State\x20[HI]:\x20','242382RorXeS','contactType','10otJWNr','confirm','Invalid\x202\x20character\x20country\x20code','Duration\x20in\x20years\x20[1]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','list','notice','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','options','maka\x20aws:register-domain-name\x20--domain=example.com','Do\x20you\x20wish\x20to\x20register\x20','Are\x20you\x20sure?','COMPANY','1277544eZBQob','mail@example.com','error','checkDomainAvailability','rdn','96816','Country\x20Code\x20[US]:\x20','warn','RESELLER','\x20for\x20','\x20/\x20Year\x20\x0a','Auto\x20Renew:\x20','search','OrganizationName','toString'];a13c=function(){return K;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xc8;let f=c[d];return f;},a13d(a,b);}function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0xeb)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':'register-domain-name','aliases':[a13I(0xe0)],'usage':a13I(0xfb),'requiredOpts':[a13I(0xf6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a13I(0xd8),a13I(0xc9)]},async function(a,b){const J=a13I;try{const c=b[J(0xf6)],d=new AWS(),{available:f,cost:g}=await d[J(0xdf)](c);if(f&&g){Log['notice'](J(0x101)+c+J(0xca));const {Price:h,Currency:i}=g;Log[J(0xe3)]('\x20\x20'+h+'\x20'+i+J(0xe6));const j=await Actions[J(0xd0)](J(0xd9)+c+'\x20?',![]);if(j){const k={'type':J(0xd4),'name':J(0xce),'message':J(0xfa),'choices':[J(0xf0),J(0xdb),J(0x103),'PUBLIC_BODY',J(0xe4)]},l=await Actions[J(0x102)](J(0xd2))||'1',m=await Actions[J(0x102)](J(0xef))||J(0xc8),n=await Actions[J(0x102)](J(0xf8))||J(0xfc),{contactType:o}=await Actions[J(0xd7)](k),p=await Actions[J(0x102)](J(0x106))||'123\x20Glorious\x20Way',q=await Actions[J(0x102)](J(0x104)),r=await Actions[J(0x102)]('Zip\x20Code\x20[96816]:\x20')||J(0xe1),s=await Actions[J(0x102)](J(0xcc))||'HI',t=await Actions[J(0x102)](J(0xe2))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xde)](J(0xd1));const v=await Actions['ask'](J(0xd6))||'+1.5555555555',w=await Actions[J(0x102)](J(0xf4))||J(0xf2),x=await Actions[J(0x102)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0xdd),y=await Actions[J(0xd0)](J(0xe7)),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(0x102)](J(0xee))||J(0xf5);z[J(0xe9)]=C;}const A=h||0x0*parseInt(l);Log[J(0xd5)](J(0xd3)),Log[J(0xe3)](A+'\x20'+i+J(0xe5)+l+J(0xfd)+h+'\x20'+i+J(0x107));const B=await Actions[J(0xd0)](J(0xda));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log['error'](J(0xf1));}catch(D){console['error'](D),process[J(0x109)](0x0);}},a13e);
@@ -1 +1 @@
1
- const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x19d))/0x1*(parseInt(h(0x1a1))/0x2)+-parseInt(h(0x18d))/0x3*(parseInt(h(0x195))/0x4)+-parseInt(h(0x1a2))/0x5*(parseInt(h(0x18a))/0x6)+parseInt(h(0x191))/0x7+parseInt(h(0x1a3))/0x8*(-parseInt(h(0x197))/0x9)+-parseInt(h(0x18f))/0xa+parseInt(h(0x18e))/0xb*(parseInt(h(0x196))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x4ce6e));function a14c(){const m=['5568TKsYWq','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','Deleted\x20','forEach','search','rkp','ask','deleteKeyPair','1359306DtSjlh','remove-key-pair','Deleting\x20a\x20','1273458hCpxgW','31933BcwtAn','2153970VRyBJs','create','566377NruSfo','Not\x20deleting\x20keypair','success','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','4uMNBbQ','7860nwvAIg','2358zGiosl','constructor','(((.+)+)+)+$','confirm','maka\x20aws:remove-key-pair','toString','24JXsjeS','error','apply','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','51550LYjhVT','5cfGAvx'];a14c=function(){return m;};return a14c();}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x19c)]()[j(0x1a8)](j(0x199))['toString']()[j(0x198)](a14a)[j(0x1a8)](j(0x199));});a14a();function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x187;let f=c[d];return f;},a14d(a,b);}import a14e 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[a14k(0x190)]({'name':a14k(0x18b),'aliases':[a14k(0x187)],'usage':a14k(0x19b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x194),'description':a14k(0x1a5),'examples':[a14k(0x19b),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0x188)](l(0x1a4));b?.[l(0x1a7)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x19e)](l(0x1a0));const f=await Actions[l(0x19a)](l(0x18c)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x189)](c),Log[l(0x193)](l(0x1a6)+c)):Log[l(0x19e)](l(0x192)),process['exit'](0x0);}catch(g){process['exit'](0x1);}},a14e);
1
+ const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x11f))/0x1+-parseInt(h(0x103))/0x2*(parseInt(h(0x114))/0x3)+-parseInt(h(0x11d))/0x4*(parseInt(h(0x120))/0x5)+-parseInt(h(0x117))/0x6*(-parseInt(h(0x10a))/0x7)+parseInt(h(0x10e))/0x8+parseInt(h(0x116))/0x9+-parseInt(h(0x10d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc8e50));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x105)]()['search'](j(0x118))['toString']()[j(0x110)](a14a)[j(0x10c)](j(0x118));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x103;let f=c[d];return f;},a14d(a,b);}function a14c(){const m=['(((.+)+)+)+$','\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','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','maka\x20aws:remove-key-pair','1454304VwiGoX','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','67796aLMdTf','15tCKVgi','14IHUhmz','Please\x20choose\x20a\x20key\x20to\x20delete:','toString','Not\x20deleting\x20keypair','exit','error','Deleted\x20','35EpzXfv','ec2describeKeys','search','11579450fremUw','8112008ViWrUG','apply','constructor','rkp','create','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','63537OeKBDB','deleteKeyPair','7430625yJXczt','1737552hpMFvg'];a14c=function(){return m;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x112)]({'name':'remove-key-pair','aliases':[a14k(0x111)],'usage':a14k(0x11c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x11b),'description':a14k(0x119),'examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x10b)]();let c=undefined;const d=await Actions['ask'](l(0x104));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x108)](l(0x11e));const f=await Actions['confirm'](l(0x11a)+c+l(0x113),![]);f?(await a[l(0x115)](c),Log['success'](l(0x109)+c)):Log[l(0x108)](l(0x106)),process['exit'](0x0);}catch(g){process[l(0x107)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x16e))/0x1*(parseInt(l(0x173))/0x2)+parseInt(l(0x158))/0x3+-parseInt(l(0x178))/0x4*(parseInt(l(0x176))/0x5)+-parseInt(l(0x168))/0x6*(parseInt(l(0x172))/0x7)+parseInt(l(0x159))/0x8*(-parseInt(l(0x15a))/0x9)+parseInt(l(0x17b))/0xa*(parseInt(l(0x15d))/0xb)+parseInt(l(0x165))/0xc*(parseInt(l(0x171))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x4b563));const a15b=(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;};}()),a15a=a15b(this,function(){const m=a15d;return a15a['toString']()['search'](m(0x155))[m(0x163)]()['constructor'](a15a)[m(0x16c)](m(0x155));});a15a();import a15e from'path';function a15c(){const p=['private','parse','success','(((.+)+)+)+$','sep','chooseInstance','577221xKNrIs','280936gRrFiT','27NAYqPV','ssh.json','set-host','2017367hqFOZF','utf8','ask','config/ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','toString','inherit','5022132OUcRFW','join','privateIp','791364iRTfmC','cat\x20','isFile','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','search','create','2xbOtkA','getProjectConfig','writeFileSync','26MDVXaW','14uFVQTR','501506nBBdKp','appName','\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','3170MJkFdf','stringify','212vXEAyD','fsi','exit','10rLvApE','publicIp','sth','error','maka\x20aws:sth\x20--env\x20prod','\x0aSaved\x20host\x20','host','\x20IP\x20to\x20','public','env','getConfigPath'];a15c=function(){return p;};return a15c();}import a15f from'fs';import{execSync}from'child_process';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x149;let f=c[d];return f;},a15d(a,b);}import a15g 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[a15n(0x16d)]({'name':a15n(0x15c),'aliases':[a15n(0x149)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15n(0x150)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15n(0x162),'description':a15n(0x175),'examples':['maka\x20aws:set-host\x20--env\x20dev',a15n(0x14b)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0x179)][o(0x151)](b[o(0x150)]),f=this[o(0x179)][o(0x16f)](),g=await c[o(0x157)](),h=a15e['join'](d,o(0x15b));!this[o(0x179)][o(0x16a)](h)&&await this[o(0x179)]['template']({'srcPath':o(0x160),'destPath':h,'context':{'app':f[o(0x174)]},'config':f});const i=JSON[o(0x153)](a15f['readFileSync'](h,o(0x15e))),j=await Actions[o(0x15f)](o(0x161))||o(0x14f);if(j){if(j===o(0x14f)||j===o(0x152)){if(j===o(0x14f))i[o(0x14d)]=g?.[o(0x17c)];else j===o(0x152)&&(i['host']=g?.[o(0x167)]);}else throw o(0x16b);}else i['host']=g?.[o(0x167)];a15f[o(0x170)](a15e[o(0x166)](d,o(0x15b)),JSON[o(0x177)](i,null,0x2)),execSync(o(0x169)+a15e[o(0x166)](d,'ssh.json'),{'stdio':o(0x164)}),Log[o(0x154)](o(0x14c)+j+o(0x14e)+d+a15e[o(0x156)]+'ssh.json');}catch(k){console[o(0x14a)](k),process[o(0x17a)](0x0);}},a15g);
1
+ const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0xe3))/0x1+parseInt(l(0xf4))/0x2*(-parseInt(l(0xdf))/0x3)+-parseInt(l(0xe2))/0x4+-parseInt(l(0xe1))/0x5+parseInt(l(0x104))/0x6*(-parseInt(l(0xf8))/0x7)+-parseInt(l(0xfb))/0x8*(-parseInt(l(0x108))/0x9)+parseInt(l(0x107))/0xa*(parseInt(l(0xde))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x3201a));function a15c(){const q=['ask','toString','apply','165SsrnnY','33YyAcGE','maka\x20aws:set-host\x20--env\x20dev','1493550RnPlDy','970548mjJtrD','202479XCQQpR','sth','getProjectConfig','private','privateIp','host','fsi','\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','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','isFile','stringify','error','config/ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getConfigPath','maka\x20aws:sth\x20--env\x20prod','set-host','11962iZFeNr','public','utf8','cat\x20','7PEZGRM','success','chooseInstance','24EdycDu','create','sep','ssh.json','readFileSync','join','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','constructor','(((.+)+)+)+$','1235706SSdkma','search','parse','606370cLGuyW','932517AvXgmy','\x0aSaved\x20host\x20','env'];a15c=function(){return q;};return a15c();}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0xdc)]()[n(0x105)](n(0x103))['toString']()[n(0x102)](a15a)[n(0x105)](n(0x103));});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xdb;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0xfc)]({'name':a15o(0xf3),'aliases':[a15o(0xe4)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15o(0x10a)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x101),'description':a15o(0xea),'examples':[a15o(0xe0),a15o(0xf2)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0xe9)][p(0xf1)](b['env']),f=this[p(0xe9)][p(0xe5)](),g=await c[p(0xfa)](),h=a15e[p(0x100)](d,p(0xfe));!this[p(0xe9)][p(0xec)](h)&&await this['fsi']['template']({'srcPath':p(0xef),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x106)](a15f[p(0xff)](h,p(0xf6))),j=await Actions[p(0xdb)](p(0xf0))||p(0xf5);if(j){if(j===p(0xf5)||j===p(0xe6)){if(j===p(0xf5))i[p(0xe8)]=g?.['publicIp'];else j===p(0xe6)&&(i[p(0xe8)]=g?.[p(0xe7)]);}else throw p(0xeb);}else i[p(0xe8)]=g?.[p(0xe7)];a15f['writeFileSync'](a15e['join'](d,p(0xfe)),JSON[p(0xed)](i,null,0x2)),execSync(p(0xf7)+a15e['join'](d,p(0xfe)),{'stdio':'inherit'}),Log[p(0xf9)](p(0x109)+j+'\x20IP\x20to\x20'+d+a15e[p(0xfd)]+p(0xfe));}catch(k){console[p(0xee)](k),process['exit'](0x0);}},a15g);
@@ -1 +1 @@
1
- function a16c(){const k=['4rWMgbf','3085182pFRPoN','constructor','1MzcHww','3370976ZqTIsY','running','20WhWUil','11762069jBTHJo','(((.+)+)+)+$','chooseInstance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws:terminate-instance','2290166AdaDez','16SrfxFo','terminate-instance','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','create','8373879XbRQoQ','ec2terminateInstance','instanceId','error','2764185YaUdHJ','apply','Terminate\x20an\x20EC2\x20instance','exit','\x20Ready?','name','4115490zbVnda','search'];a16c=function(){return k;};return a16c();}const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1*(-parseInt(f(0x17a))/0x2)+parseInt(f(0x16b))/0x3+-parseInt(f(0x16d))/0x4*(parseInt(f(0x165))/0x5)+parseInt(f(0x16e))/0x6+parseInt(f(0x171))/0x7+-parseInt(f(0x17b))/0x8*(parseInt(f(0x161))/0x9)+parseInt(f(0x173))/0xa*(parseInt(f(0x174))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xe74ab));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x15e)]()[h(0x16c)](h(0x175))[h(0x15e)]()[h(0x16f)](a16a)[h(0x16c)]('(((.+)+)+)+$');});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-0x15d;let f=c[d];return f;},a16d(a,b);}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[a16i(0x160)]({'name':a16i(0x15d),'aliases':['ti'],'usage':a16i(0x179),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16i(0x167),'description':'\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','examples':[a16i(0x179),'maka\x20aws:ti']},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x176)]();if(b?.[j(0x163)]&&b?.['status']===j(0x172)){const c=await Actions['confirm'](j(0x177)+b[j(0x16a)]+j(0x169));c?a[j(0x162)]({'instanceId':b[j(0x163)]}):Log['error'](j(0x178)+b[j(0x16a)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x164)](j(0x15f));}catch(d){console[j(0x164)](d),process[j(0x168)](0x0);}},a16e);
1
+ const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1*(-parseInt(f(0x136))/0x2)+-parseInt(f(0x13b))/0x3*(-parseInt(f(0x127))/0x4)+parseInt(f(0x131))/0x5+parseInt(f(0x13c))/0x6+parseInt(f(0x129))/0x7+-parseInt(f(0x125))/0x8*(-parseInt(f(0x124))/0x9)+-parseInt(f(0x120))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xcc4f0));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 g=a16d;return a16a[g(0x135)]()[g(0x130)](g(0x11f))[g(0x135)]()[g(0x13a)](a16a)[g(0x130)](g(0x11f));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x11f;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16h(0x132)]({'name':'terminate-instance','aliases':['ti'],'usage':a16h(0x133),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16h(0x12b),'description':a16h(0x12a),'examples':[a16h(0x133),a16h(0x12d)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x12c)]();if(b?.[i(0x134)]&&b?.[i(0x137)]===i(0x138)){const c=await Actions[i(0x12f)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+'\x20Ready?');c?a[i(0x123)]({'instanceId':b[i(0x134)]}):Log[i(0x139)](i(0x12e)+b['name']+i(0x126));}else Log['error'](i(0x128));}catch(d){console[i(0x139)](d),process[i(0x121)](0x0);}},a16e);function a16c(){const j=['ec2terminateInstance','99aAuULI','496480jwURyx','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','904ddPFnk','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','3039512EiKffI','\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\x20an\x20EC2\x20instance','chooseInstance','maka\x20aws:ti','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','confirm','search','4282825yMpxFF','create','maka\x20aws:terminate-instance','instanceId','toString','10aUuRip','status','running','error','constructor','15432DSmycI','7441020YKaXHl','(((.+)+)+)+$','30186620BkFrog','exit','104129RGeipq'];a16c=function(){return j;};return a16c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x178))/0x1+-parseInt(f(0x176))/0x2*(-parseInt(f(0x16d))/0x3)+parseInt(f(0x179))/0x4+parseInt(f(0x173))/0x5*(parseInt(f(0x17a))/0x6)+-parseInt(f(0x174))/0x7+-parseInt(f(0x177))/0x8*(-parseInt(f(0x172))/0x9)+parseInt(f(0x16f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x58803));function a17c(){var i=['35slkAOI','5047518IuwbuD','toString','74yCrdGd','528mCzMyI','608539vpPhbw','1501636sRfhNK','587694SrTHUg','apply','19173AUmyhi','search','1730970ixwMbq','(((.+)+)+)+$','constructor','30204hevxsg'];a17c=function(){return i;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x16d;var f=c[d];return f;},a17d(a,b);}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x175)]()[h(0x16e)]('(((.+)+)+)+$')[h(0x175)]()[h(0x171)](a17a)[h(0x16e)](h(0x170));});a17a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x9f))/0x1*(-parseInt(f(0xa7))/0x2)+parseInt(f(0xa9))/0x3+-parseInt(f(0xab))/0x4+-parseInt(f(0xa4))/0x5*(-parseInt(f(0xa0))/0x6)+-parseInt(f(0x9e))/0x7*(parseInt(f(0xa8))/0x8)+-parseInt(f(0xa2))/0x9+parseInt(f(0xaa))/0xa*(parseInt(f(0xa3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xac3e9));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x9d)]()[h(0xa5)]('(((.+)+)+)+$')['toString']()[h(0xa6)](a17a)[h(0xa5)]('(((.+)+)+)+$');});a17a();function a17c(){var i=['70HyDNRi','38736xmMPIJ','toString','7RfUVba','41469StxwNc','30GhQsZz','apply','8824194KumQCW','3224023npKpPE','758500uLWSlu','search','constructor','52moujZu','1443632AYSETv','432480NrTGKF'];a17c=function(){return i;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x9d;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a18s=a18d;function a18c(){const v=['autoupdate','concat',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','findSubCommand','argv','forEach','maka\x20build:docker','error','confirm','252096duGXgo','--force','8hmWDDq','360365UXyTdv','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','7WuGpeQ','21263frvTIK','\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','373892lDheiU','pathFromProject','exit','Aborted.','1030bwsPwr','1qbavxo','This\x20project\x27s\x20meteor\x20version\x20(','debug','18dlnsjD','fsi','getGlobalMeteorVersion','search','--release','checkMeteorPackage','maka\x20build\x20<opts>','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','invokeMeteorCommand','307731VJckVI','toString','notice','constructor','force','splice',').\x20Update?','797904yeszhs','app.tar.gz','join','build','390568IfuICi','installMeteorPackage','getProjectMeteorVersion'];a18c=function(){return v;};return a18c();}(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0x1c1))/0x1*(parseInt(q(0x1bc))/0x2)+parseInt(q(0x1ce))/0x3*(parseInt(q(0x1b6))/0x4)+-parseInt(q(0x1b7))/0x5+parseInt(q(0x1b4))/0x6*(-parseInt(q(0x1b9))/0x7)+parseInt(q(0x1a8))/0x8*(parseInt(q(0x1c4))/0x9)+-parseInt(q(0x1c0))/0xa*(parseInt(q(0x1ba))/0xb)+-parseInt(q(0x1d5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x1adee));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const r=a18d;return a18a[r(0x1cf)]()['search']('(((.+)+)+)+$')[r(0x1cf)]()[r(0x1d1)](a18a)[r(0x1c7)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import a18g 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[a18s(0x1cb)]({'name':a18s(0x1d8),'usage':a18s(0x1ca),'validOpts':['force',a18s(0x1c3)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18s(0x1cc),'mustBeInMakaProject':!![],'description':a18s(0x1bb),'examples':['maka\x20build',a18s(0x1b1)]},async function(a,b){const t=a18s;try{const c=this[t(0x1c5)]['findProjectDirectory']();!this[t(0x1c5)][t(0x1c9)](t(0x1ab))&&(Log[t(0x1d0)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[t(0x1c5)][t(0x1a9)](t(0x1ab),{'cwd':c}));const d=a[0x0],f=this[t(0x1ae)](d);if(f)this['runSubCommand'](d,a,b);else{const g=b[t(0x1d2)];if(!g){const j=this[t(0x1c5)][t(0x1c6)](),k=this[t(0x1c5)][t(0x1aa)](),l=a18g['gt'](j,k);if(l){const m=await Actions[t(0x1b3)](t(0x1c2)+k+t(0x1ad)+j+t(0x1d4));m&&this[t(0x1c5)][t(0x1cd)]('update',[t(0x1c8),j]);}}const h=[this[t(0x1c5)][t(0x1bd)]({'pathParts':['build']})][t(0x1ac)](process[t(0x1af)]['slice'](0x3)),i=a18e[t(0x1d7)](this[t(0x1c5)]['pathFromProject']({}),t(0x1d8),t(0x1d6));if(a18f['existsSync'](i)){const n=g??await Actions[t(0x1b3)](t(0x1b8));if(!n)throw Log['error'](t(0x1bf));}h[t(0x1b0)]((o,p)=>{const u=t;o===u(0x1b5)&&h[u(0x1d3)](p,0x2);}),this[t(0x1c5)][t(0x1cd)](t(0x1d8),h);}}catch(o){console[t(0x1b2)](o),process[t(0x1be)](0x0);}});export default BuildCommand;
1
+ const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0x142))/0x1+parseInt(q(0x135))/0x2*(-parseInt(q(0x155))/0x3)+parseInt(q(0x138))/0x4*(parseInt(q(0x136))/0x5)+parseInt(q(0x13d))/0x6+parseInt(q(0x149))/0x7*(parseInt(q(0x161))/0x8)+-parseInt(q(0x145))/0x9+parseInt(q(0x15b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x3fea9));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x135;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a['toString']()[s(0x160)](s(0x13c))[s(0x147)]()[s(0x139)](a18a)[s(0x160)](s(0x13c));});a18a();function a18c(){const w=['debug','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','confirm','22429PUcJEe','update',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','3845862gocmCG','fsi','toString','existsSync','7oZIIai','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','error','autoupdate','--release','getGlobalMeteorVersion','Verifying\x20meteor\x20package\x20requirements\x20...','getProjectMeteorVersion','maka\x20build\x20<opts>','--force','maka\x20build:docker','findProjectDirectory','3yIHQkH','findSubCommand','notice','forEach',').\x20Update?','invokeMeteorCommand','7313920lQPTDy','splice','runSubCommand','exit','join','search','1525576hNrAyD','Aborted.','force','build','apply','877546CFZqsa','2635NWjjVn','This\x20project\x27s\x20meteor\x20version\x20(','1316JJwyzK','constructor','app.tar.gz','argv','(((.+)+)+)+$','59946PQzlcH','pathFromProject'];a18c=function(){return w;};return a18c();}import a18e from'path';import a18f from'fs';import a18g 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['create']({'name':a18t(0x164),'usage':a18t(0x151),'validOpts':[a18t(0x163),a18t(0x13f)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x14a),'mustBeInMakaProject':!![],'description':'\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','examples':['maka\x20build',a18t(0x153)]},async function(a,b){const u=a18t;try{const c=this[u(0x146)][u(0x154)]();!this[u(0x146)]['checkMeteorPackage'](u(0x14c))&&(Log[u(0x157)](u(0x14f)),await this[u(0x146)]['installMeteorPackage'](u(0x14c),{'cwd':c}));const d=a[0x0],f=this[u(0x156)](d);if(f)this[u(0x15d)](d,a,b);else{const g=b[u(0x163)];if(!g){const j=this['fsi'][u(0x14e)](),k=this['fsi'][u(0x150)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x141)](u(0x137)+k+u(0x144)+j+u(0x159));m&&this['fsi']['invokeMeteorCommand'](u(0x143),[u(0x14d),j]);}}const h=[this[u(0x146)]['pathFromProject']({'pathParts':[u(0x164)]})]['concat'](process[u(0x13b)]['slice'](0x3)),i=a18e[u(0x15f)](this['fsi'][u(0x13e)]({}),u(0x164),u(0x13a));if(a18f[u(0x148)](i)){const n=g??await Actions[u(0x141)](u(0x140));if(!n)throw Log[u(0x14b)](u(0x162));}h[u(0x158)]((o,p)=>{const v=u;o===v(0x152)&&h[v(0x15c)](p,0x2);}),this[u(0x146)][u(0x15a)]('build',h);}}catch(o){console[u(0x14b)](o),process[u(0x15e)](0x0);}});export default BuildCommand;