@maka/maka-cli 4.9.3 → 4.9.4

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 (152) 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/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/patreon.js +1 -1
  84. package/bundle/obf/src/commands/proxy.js +1 -1
  85. package/bundle/obf/src/commands/reconfig.js +1 -1
  86. package/bundle/obf/src/commands/register.js +1 -1
  87. package/bundle/obf/src/commands/run/_index.js +1 -1
  88. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/run/run.command.js +1 -1
  90. package/bundle/obf/src/commands/set/_index.js +1 -1
  91. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/set/set.command.js +1 -1
  94. package/bundle/obf/src/commands/ssh.js +1 -1
  95. package/bundle/obf/src/commands/ssl.js +1 -1
  96. package/bundle/obf/src/commands/test.js +1 -1
  97. package/bundle/obf/src/commands/undo.js +1 -1
  98. package/bundle/obf/src/commands/version.js +1 -1
  99. package/bundle/obf/src/error.js +1 -1
  100. package/bundle/obf/src/exec.js +1 -1
  101. package/bundle/obf/src/generator.js +1 -1
  102. package/bundle/obf/src/generators/_index.js +1 -1
  103. package/bundle/obf/src/generators/api.js +1 -1
  104. package/bundle/obf/src/generators/collection.js +1 -1
  105. package/bundle/obf/src/generators/component.js +1 -1
  106. package/bundle/obf/src/generators/config.js +1 -1
  107. package/bundle/obf/src/generators/dbc.js +1 -1
  108. package/bundle/obf/src/generators/dockerfile.js +1 -1
  109. package/bundle/obf/src/generators/hook.js +1 -1
  110. package/bundle/obf/src/generators/kits/_index.js +1 -1
  111. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  112. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/kit.js +1 -1
  115. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  118. package/bundle/obf/src/generators/layout.js +1 -1
  119. package/bundle/obf/src/generators/maka.gen.js +1 -1
  120. package/bundle/obf/src/generators/methods.js +1 -1
  121. package/bundle/obf/src/generators/package.js +1 -1
  122. package/bundle/obf/src/generators/page.js +1 -1
  123. package/bundle/obf/src/generators/publish.js +1 -1
  124. package/bundle/obf/src/generators/route.js +1 -1
  125. package/bundle/obf/src/generators/service.js +1 -1
  126. package/bundle/obf/src/generators/services/_index.js +1 -1
  127. package/bundle/obf/src/generators/services/openssl.js +1 -1
  128. package/bundle/obf/src/generators/services/translation.js +1 -1
  129. package/bundle/obf/src/maka.js +1 -1
  130. package/bundle/obf/src/templates/meteor/api/api.js +1 -1
  131. package/bundle/obf/src/templates/meteor/api/api.js.ts +1 -1
  132. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  133. package/bundle/obf/src/tool.js +1 -1
  134. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  135. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  136. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  137. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  138. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  139. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  140. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  141. package/bundle/obf/src/tools/https/https.class.js +1 -1
  142. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  143. package/bundle/obf/src/tools/log/log.class.js +1 -1
  144. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/options/options.class.js +1 -1
  146. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  147. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  148. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  150. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  152. 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, template package.json, and fsi.class.ts",
4
- "version": "4.9.3",
4
+ "version": "4.9.4",
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 a0r=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xec))/0x1+-parseInt(n(0x124))/0x2+-parseInt(n(0x118))/0x3+parseInt(n(0x11d))/0x4+-parseInt(n(0x109))/0x5*(-parseInt(n(0xfd))/0x6)+parseInt(n(0x138))/0x7*(-parseInt(n(0x131))/0x8)+-parseInt(n(0x10a))/0x9*(-parseInt(n(0x137))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x891c5));function a0c(){const A=['assign','murder','processAndRunCommand','Command\x20','LIGHT','search','Name','validateMeteorInstall','4955PZsRTo','305325kbNIJG','sort','keys','localeCompare','_handler','create','header','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','slice','Command.create\x20requires\x20a\x20handler\x20function!','maxOptsLength','Too\x20many\x20options','call','There\x20is\x20no\x20Meteor\x20application\x20here','2782938inVOhP','bind','Too\x20few\x20arguments','pallet','light','1348604KJhZtv','minArgLength','Sub-Commands:','Too\x20few\x20options','join','validateMakaSubscription','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','945318mvwXps','exit','_commands','tableList','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','(((.+)+)+)+$','run','minOptsLength','Command.create\x20requires\x20some\x20options!','apply','usage','maybeProxyCommandToMeteor','function','24LnyDFS','addCommand','error','mustHaveMeteorInstalled','toString','shortDesc','530qDAvaJ','628061fkDUIs','name','help','unshift','Command\x20format\x20is\x20incorrect','invoke','match','60675dGZjOW','notice','maxArgLength','play','Command\x20requires\x20a\x20name','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','find','options','setColorMode','Command\x20not\x20found','generate','bright','push','number','DARK','fsi','length','948bFwFPP','validateMakaProject','getGlobalConfig','Too\x20many\x20arguments'];a0c=function(){return A;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x135)]()['search'](p(0x129))[p(0x135)]()['constructor'](a0a)[p(0x106)]('(((.+)+)+)+$');});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';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xec;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{['options'];['_commands'];constructor(a,b){const q=a0d;super();if(!a)throw new Error(q(0x111));if(!a[q(0x139)])throw new Error(q(0xf0));if(typeof b!==q(0x130))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[q(0xf3)]=Object[q(0x101)]({},a),this['name']=this[q(0xf3)]['name'],this[q(0x126)]=[],this[q(0x10e)]=b[q(0x119)](this);}static[a0r(0x10f)](a,b,c){const s=a0r;if(!a)throw new Error(s(0x12c));if(typeof b!==s(0x130))throw new Error(s(0x113));const d=new Command(a,b);return c=c||a0f,Object[s(0x101)](d,{'parent':c?.[s(0xf3)]?.[s(0x139)]}),c[s(0x132)](d),d;}['addCommand'](a){const t=a0r;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[t(0x126)][t(0xf8)](a);}async[a0r(0x12a)](a,b){const u=a0r;try{a=a||[],b=b||{};try{const c=await this[u(0xfb)][u(0xff)](),d=c[u(0x11b)]===u(0x11c)?ColorMode[u(0x105)]:ColorMode[u(0xfa)];Log[u(0xf4)](d),await this[u(0x122)](this);}catch(f){Log[u(0x133)](f),process[u(0x125)](0x0);}return await this[u(0x13d)](a,b);}catch(g){process[u(0x125)](0x1);}}async['invoke'](a,b){const v=a0r,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options'][v(0x139)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0xfc)]===0x0)&&this['_commands'][v(0xfc)]>=0x0,g=b[v(0x13a)]||b['h'];if(f&&g){if(this[v(0x126)][v(0xfc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options']['mustBeInMakaProject']){const h=this[v(0xfe)]();if(!h)throw new MustBeInProjectError();}if(this[v(0xf3)][v(0x134)]){const i=this[v(0x108)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[v(0xf3)][v(0x11e)]==='number'){if(a['length']<this['options'][v(0x11e)]){Log['error'](v(0x11a));throw new UsageError();}}if(typeof this[v(0xf3)][v(0xee)]===v(0xf9)){if(a[v(0xfc)]>=this[v(0xf3)]['maxArgLength']){Log[v(0x133)](v(0x100));throw new UsageError();}}if(typeof this[v(0xf3)][v(0x12b)]==='number'){if(Object[v(0x10c)](b)['length']<this['options'][v(0x12b)]){Log[v(0x133)](v(0x120));throw new UsageError();}}if(typeof this[v(0xf3)][v(0x114)]===v(0xf9)){if(Object[v(0x10c)](b)['length']>=this[v(0xf3)][v(0x114)]){Log['error'](v(0x115));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0xf3)]),_prevCmd=a[0x0];}return await this['_handler'][v(0x116)](this,a,b);}catch(j){Log[v(0x12e)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice'](v(0x11f)),this[v(0x127)](this[v(0x126)]),Log[v(0x110)](v(0x128));else{if(j instanceof MustBeInProjectError)Log[v(0x133)](v(0x123));else{if(j instanceof NoMeteorFoundError)Log['error'](v(0xf1)),Log[v(0xed)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else j instanceof NoMeteorAppFoundError&&Log[v(0x133)](v(0x117));}}process[v(0x125)](0x1);}}['tableList'](a){const w=a0r,b=new a0e({});b[w(0xf8)]([w(0x107),'Alias','Description']),a[w(0x10b)]((c,d)=>{const x=w;return c['name'][x(0x10d)](d[x(0x139)]);})['forEach'](c=>{const y=w;c[y(0x139)]!==y(0x102)&&c[y(0x139)]!==y(0xef)&&b[y(0xf8)]([c[y(0x139)],c['aliases'](),c[y(0x136)]()]);}),Log[w(0xf7)](b['toString']());}async[a0r(0x103)](a,b=[],c={}){const z=a0r;try{const d=a?.['split'](':');if(!d||d[z(0xfc)]===0x0)throw z(0x13c);if(d[0x0]===z(0xf6)||d[0x0]==='g'&&d[z(0xfc)]>0x1){const h=this['_commands'][z(0xf2)](j=>j[z(0x13e)]('generate'));if(!h)throw z(0xf5);await this[z(0x122)](h);const i=d[z(0x112)](0x1)[z(0x121)](':');return b[z(0x13b)](i),await h[z(0x12a)](b,c);}let f=this[z(0x126)],g;for(const j of d){g=f['find'](k=>k[z(0x13e)](j));if(!g)try{await this[z(0xfb)][z(0x12f)]();}catch(k){throw z(0x104)+j+'\x20not\x20found';}g&&(await this[z(0x122)](g),f=g[z(0x126)]);}if(g){const l=await g[z(0x12a)](b,c);return l;}else throw z(0xf5);}catch(m){Log[z(0x133)](m),process[z(0x125)](0x1);}}}
1
+ const a0u=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x218))/0x1+parseInt(n(0x1d1))/0x2*(-parseInt(n(0x1f3))/0x3)+parseInt(n(0x211))/0x4+-parseInt(n(0x215))/0x5+parseInt(n(0x1dc))/0x6*(-parseInt(n(0x213))/0x7)+-parseInt(n(0x20a))/0x8*(parseInt(n(0x1f0))/0x9)+parseInt(n(0x20d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc3007));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x209)]()[p(0x1fe)](p(0x1fc))['toString']()['constructor'](a0a)[p(0x1fe)](p(0x1fc));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a0d(a,b);}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0c(){const A=['setColorMode','split','maxOptsLength','generate','Command\x20','_handler','Please\x20run\x20\x22maka\x20install\x20meteor\x22','call','bind','231138WmfijA','notice','tableList','96qRlodt','validateMakaSubscription','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','minOptsLength','play','unshift','Command.create\x20requires\x20some\x20options!','push','Too\x20few\x20arguments','(((.+)+)+)+$','shortDesc','search','keys','fsi','mustBeInMakaProject','Too\x20many\x20arguments','\x20not\x20found','find','Too\x20many\x20options','validateMeteorInstall','length','exit','toString','200MijSOr','DARK','run','38779920QvRNpk','Description','Command\x20format\x20is\x20incorrect','header','5155128DaHYog','processAndRunCommand','2418227IFimkd','maxArgLength','5146450GxCWFs','There\x20is\x20no\x20Meteor\x20application\x20here','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','1153220iIYiFx','number','invoke','light','pallet','maybeProxyCommandToMeteor','Command\x20requires\x20a\x20name','validateParams','slice','31694xkAzXz','sort','function','aliases','usage','match','localeCompare','_commands','name','bright','apply','18bnBXFm','Command\x20not\x20found','help','error','Command\x20requires\x20a\x20handler\x20function','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','options','murder','Too\x20few\x20options','minArgLength'];a0c=function(){return A;};return a0c();}export class Command extends Tool{['options'];['_commands'];constructor(a,b){const q=a0d;super();if(!a)throw new Error(q(0x1f5));if(!a[q(0x1d9)])throw new Error(q(0x21e));if(typeof b!==q(0x1d3))throw new Error(q(0x1e0));this['options']=Object['assign']({},a),this[q(0x1d9)]=this[q(0x1e3)][q(0x1d9)],this[q(0x1d8)]=[],this[q(0x1ec)]=b[q(0x1ef)](this);}static['create'](a,b,c){const r=a0d;if(!a)throw new Error(r(0x1f9));if(typeof b!==r(0x1d3))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[r(0x1e3)]?.[r(0x1d9)]}),c['addCommand'](d),d;}['addCommand'](a){const s=a0d;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[s(0x1d8)]['push'](a);}async['run'](a,b){const t=a0d;try{a=a||[],b=b||{};try{const c=await this[t(0x200)]['getGlobalConfig'](),d=c[t(0x21c)]===t(0x21b)?ColorMode['LIGHT']:ColorMode[t(0x20b)];Log[t(0x1e7)](d),await this[t(0x1f4)](this);}catch(f){Log[t(0x1df)](f),process['exit'](0x0);}return await this['invoke'](a,b);}catch(g){process[t(0x208)](0x1);}}async[a0u(0x21a)](a,b){const v=a0u,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x1e3)];try{if(this[v(0x1e3)][v(0x1d9)]!==v(0x1ea)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x207)]===0x0)&&this[v(0x1d8)][v(0x207)]>=0x0,g=b[v(0x1de)]||b['h'];if(f&&g){if(this[v(0x1d8)][v(0x207)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x1e3)][v(0x201)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x1e3)]['mustHaveMeteorInstalled']){const i=this[v(0x206)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][v(0x1e6)]===v(0x219)){if(a[v(0x207)]<this['options'][v(0x1e6)]){Log[v(0x1df)](v(0x1fb));throw new UsageError();}}if(typeof this[v(0x1e3)][v(0x214)]===v(0x219)){if(a[v(0x207)]>=this[v(0x1e3)][v(0x214)]){Log[v(0x1df)](v(0x202));throw new UsageError();}}if(typeof this[v(0x1e3)]['minOptsLength']===v(0x219)){if(Object[v(0x1ff)](b)[v(0x207)]<this[v(0x1e3)][v(0x1f6)]){Log[v(0x1df)](v(0x1e5));throw new UsageError();}}if(typeof this[v(0x1e3)][v(0x1e9)]===v(0x219)){if(Object[v(0x1ff)](b)[v(0x207)]>=this[v(0x1e3)][v(0x1e9)]){Log[v(0x1df)](v(0x205));throw new UsageError();}}}}b=await this[v(0x21f)](a,b,this[v(0x1e3)]),_prevCmd=a[0x0];}return await this['_handler'][v(0x1ee)](this,a,b);}catch(j){Log[v(0x1d5)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[v(0x1f2)](this[v(0x1d8)]),Log[v(0x210)](v(0x1e2));else{if(j instanceof MustBeInProjectError)Log[v(0x1df)](v(0x217));else{if(j instanceof NoMeteorFoundError)Log[v(0x1df)](v(0x1e1)),Log[v(0x1f1)](v(0x1ed));else j instanceof NoMeteorAppFoundError&&Log[v(0x1df)](v(0x216));}}process['exit'](0x1);}}[a0u(0x1f2)](a){const w=a0u,b=new a0e({});b[w(0x1fa)](['Name','Alias',w(0x20e)]),a[w(0x1d2)]((c,d)=>{const x=w;return c[x(0x1d9)][x(0x1d7)](d[x(0x1d9)]);})['forEach'](c=>{const y=w;c[y(0x1d9)]!==y(0x1e4)&&c[y(0x1d9)]!==y(0x1f7)&&b[y(0x1fa)]([c['name'],c[y(0x1d4)](),c[y(0x1fd)]()]);}),Log[w(0x1da)](b[w(0x209)]());}async[a0u(0x212)](a,b=[],c={}){const z=a0u;try{const d=a?.[z(0x1e8)](':');if(!d||d[z(0x207)]===0x0)throw z(0x20f);if(d[0x0]===z(0x1ea)||d[0x0]==='g'&&d[z(0x207)]>0x1){const h=this['_commands'][z(0x204)](j=>j['match'](z(0x1ea)));if(!h)throw z(0x1dd);await this[z(0x1f4)](h);const i=d[z(0x1d0)](0x1)['join'](':');return b[z(0x1f8)](i),await h[z(0x20c)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x204)](k=>k[z(0x1d6)](j));if(!g)try{await this['fsi'][z(0x21d)]();}catch(k){throw z(0x1eb)+j+z(0x203);}g&&(await this['validateMakaSubscription'](g),f=g['_commands']);}if(g){const l=await g[z(0x20c)](b,c);return l;}else throw z(0x1dd);}catch(m){Log[z(0x1df)](m),process[z(0x208)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0xbd))/0x1*(parseInt(f(0xbe))/0x2)+parseInt(f(0xc2))/0x3*(parseInt(f(0xbf))/0x4)+-parseInt(f(0xc0))/0x5*(parseInt(f(0xc1))/0x6)+parseInt(f(0xc3))/0x7+parseInt(f(0xc7))/0x8*(-parseInt(f(0xc8))/0x9)+-parseInt(f(0xc9))/0xa+parseInt(f(0xc6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x51042));function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbd;var f=c[d];return f;},a1d(a,b);}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['toString']()[g(0xc5)](g(0xc4))[g(0xca)]()[g(0xcb)](a1a)[g(0xc5)](g(0xc4));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';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=['search','18231994orXjJM','2409128OartqX','18djwyqB','1663970akaewT','toString','constructor','396105kCHFsc','2jGhjBw','825380wXKdnM','140JfOfOH','96858hIsNGZ','3SVLUye','593817CSfjMi','(((.+)+)+)+$'];a1c=function(){return h;};return a1c();}import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x117))/0x1+-parseInt(f(0x121))/0x2+-parseInt(f(0x11e))/0x3*(-parseInt(f(0x11a))/0x4)+parseInt(f(0x119))/0x5+parseInt(f(0x123))/0x6+parseInt(f(0x11b))/0x7*(-parseInt(f(0x122))/0x8)+parseInt(f(0x120))/0x9*(parseInt(f(0x11d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb0b97));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(0x118)]()[g(0x11c)]('(((.+)+)+)+$')[g(0x118)]()[g(0x11f)](a1a)['search']('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';function a1c(){var h=['220DDyLgI','2220vFCffy','constructor','546957AXGGtW','956218oQQnZz','8XsVISc','624840Zuwuqb','356026sDnsQB','toString','6689825oQjfkR','36mIrxTV','8594411LWAqeU','search'];a1c=function(){return h;};return a1c();}import'./generate.js';import'./help.js';import'./install.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x117;var f=c[d];return f;},a1d(a,b);}import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';
@@ -1 +1 @@
1
- function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xc7;let f=c[d];return f;},a2d(a,b);}function a2c(){const o=['6823089Ldkxfb','text','error','exit','data','5122168SQkdYd','toString','(((.+)+)+)+$','choices','trim','cacert','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','constructor','createInterface','create','788703rgKOor','openai','apply','70084VXJMNp','bright','ChatGPT\x20style\x20AI\x20interface','log','745928wLeitf','notice','message','search','2584602NzsZoL','fsi','openapikey','askGPT','156tzhqbO','502270QqZvaU','isFile','15psXqML','GPT:\x20'];a2c=function(){return o;};return a2c();}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0xd1))/0x1+-parseInt(h(0xe1))/0x2+parseInt(h(0xdc))/0x3+-parseInt(h(0xd8))/0x4*(-parseInt(h(0xe3))/0x5)+parseInt(h(0xe0))/0x6*(parseInt(h(0xd4))/0x7)+parseInt(h(0xc7))/0x8+-parseInt(h(0xe5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7fd54));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0xdb)](j(0xc9))[j(0xc8)]()[j(0xce)](a2a)[j(0xdb)](j(0xc9));});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(0xcf)]({'input':process['stdin'],'output':process['stdout']});c['question']('You:\x20',async d=>{const l=k;if(d['toLowerCase']()==='exit'){c['close']();return;}try{const e=await HTTPS[l(0xdf)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0xe9)]);if(f['error'])throw new Error(f[l(0xe7)][l(0xda)]);Log[l(0xd5)](l(0xe4)+f?.[l(0xca)][0x0]?.[l(0xe6)][l(0xcb)]());}catch(g){Log['error'](g),process[l(0xe8)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0xd0)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0xcc),a2m(0xde)],'shortDesc':a2m(0xd6),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0xcc)]&&(this[n(0xdd)][n(0xe2)](b[n(0xcc)])?(c=b['cacert'],Log[n(0xd9)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0xe7)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0xdd)]['getGlobalConfig']();if(d['cert']){if(this[n(0xdd)][n(0xe2)](d['cert']))c=d['cert'];else throw Log[n(0xe7)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0xde)])f=b['openapikey'],Log['notice']('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0xd2)])f=d[n(0xd2)];else throw Log[n(0xe7)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0xd7)](n(0xcd)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0xe7)](g),process[n(0xe8)](0x1);}});
1
+ function a2c(){const n=['CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','trim','2076gGgUur','error','data','createInterface','askGPT','946980pLRbPN','7878oERAAb','close','(((.+)+)+)+$','26oEkrCZ','openai','GPT:\x20','stdout','cert','Using\x20CA\x20Cert\x20','Using\x20OpenAI\x20Key\x20','search','isFile','31248RjWkpV','121wpXXDO','text','message','8cQuWFw','30wKBjIg','create','32MopiIk','toLowerCase','exit','log','101290DOlxol','notice','constructor','bright','toString','72HvIgSQ','stdin','fsi','openapikey','question','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','You:\x20','192752RUbwgM','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','193731fEoDzq','cacert'];a2c=function(){return n;};return a2c();}const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x147))/0x1*(parseInt(h(0x154))/0x2)+-parseInt(h(0x150))/0x3*(-parseInt(h(0x16a))/0x4)+-parseInt(h(0x16b))/0x5*(parseInt(h(0x15a))/0x6)+-parseInt(h(0x14e))/0x7*(parseInt(h(0x16d))/0x8)+-parseInt(h(0x166))/0x9+-parseInt(h(0x142))/0xa*(parseInt(h(0x167))/0xb)+parseInt(h(0x159))/0xc*(parseInt(h(0x15d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x1f727));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x146)]()['search']('(((.+)+)+)+$')[i(0x146)]()[i(0x144)](a2a)[i(0x164)](i(0x15c));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x142;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x157)]({'input':process[j(0x148)],'output':process[j(0x160)]});c[j(0x14b)](j(0x14d),async d=>{const k=j;if(d[k(0x16e)]()==='exit'){c[k(0x15b)]();return;}try{const e=await HTTPS[k(0x158)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x156)]);if(f['error'])throw new Error(f[k(0x155)][k(0x169)]);Log[k(0x145)](k(0x15f)+f?.['choices'][0x0]?.[k(0x168)][k(0x153)]());}catch(g){Log['error'](g),process[k(0x16f)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x16c)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2l(0x151),a2l(0x14a)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x151)]&&(this['fsi'][m(0x165)](b[m(0x151)])?(c=b[m(0x151)],Log['notice'](m(0x162)+c)):Log[m(0x155)](m(0x152)+c));const d=await this[m(0x149)]['getGlobalConfig']();if(d[m(0x161)]){if(this[m(0x149)][m(0x165)](d[m(0x161)]))c=d[m(0x161)];else throw Log['error'](m(0x14c)+c);}let f='';if(b[m(0x14a)])f=b[m(0x14a)],Log[m(0x143)](m(0x163)+f);else{if(d[m(0x15e)])f=d[m(0x15e)];else throw Log[m(0x155)](m(0x14f));}console[m(0x170)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x155)](g),process[m(0x16f)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x176))/0x1*(-parseInt(f(0x182))/0x2)+-parseInt(f(0x17c))/0x3*(-parseInt(f(0x186))/0x4)+parseInt(f(0x178))/0x5*(parseInt(f(0x17b))/0x6)+parseInt(f(0x183))/0x7*(-parseInt(f(0x17f))/0x8)+-parseInt(f(0x17a))/0x9*(parseInt(f(0x17d))/0xa)+-parseInt(f(0x181))/0xb+parseInt(f(0x177))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xda0b5));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x17e)]()['search'](h(0x184))['toString']()[h(0x185)](a3a)[h(0x180)](h(0x184));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3c(){var i=['apply','11601bhQXBQ','9697686RJMezR','3sRYZhi','1490TvCJYO','toString','55864EfLqku','search','1263174cyQOdM','226EcuXEj','1743GxOphv','(((.+)+)+)+$','constructor','2921024wQPBPE','3334yIXndb','11627712qUBrtN','5Wgsakq'];a3c=function(){return i;};return a3c();}function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x176;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
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x16b))/0x1+parseInt(f(0x162))/0x2+-parseInt(f(0x16c))/0x3+-parseInt(f(0x165))/0x4+-parseInt(f(0x164))/0x5+-parseInt(f(0x16a))/0x6+parseInt(f(0x167))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x3e17b));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0x161)](h(0x169))[h(0x168)]()[h(0x163)](a3a)[h(0x161)](h(0x169));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x161;var f=c[d];return f;},a3d(a,b);}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';function a3c(){var i=['801150TcrcqU','constructor','918905WAjOQl','307316KEvtZo','apply','7364679knTCVU','toString','(((.+)+)+)+$','2686926wQnTrJ','401740vZREEM','264510gQjXiQ','search'];a3c=function(){return i;};return a3c();}
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1d2))/0x1*(parseInt(f(0x1db))/0x2)+parseInt(f(0x1d9))/0x3*(-parseInt(f(0x1d5))/0x4)+-parseInt(f(0x1d1))/0x5*(parseInt(f(0x1cb))/0x6)+parseInt(f(0x1d8))/0x7+-parseInt(f(0x1da))/0x8+parseInt(f(0x1ce))/0x9+parseInt(f(0x1cc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd69aa));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1d0)]()[h(0x1d3)](h(0x1d4))[h(0x1d0)]()[h(0x1cf)](a4a)[h(0x1d3)](h(0x1d4));});a4a();function a4c(){const j=['18oONYhR','17447220augRqY','maka\x20aws:<sub-command>','10190466dxHstf','constructor','toString','287530KqNySg','56962ojFXCv','search','(((.+)+)+)+$','309796LFqcNG','apply','\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','5422025ncEXaZ','39ZdQwjb','10922800LtUSmH','8ozhSwR','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs'];a4c=function(){return j;};return a4c();}import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':'aws','usage':a4i(0x1cd),'validOpts':[],'shortDesc':a4i(0x1ca),'description':a4i(0x1d7)},async function(){throw UsageError;});export default AWSCommand;
1
+ const a4h=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xf8;let f=c[d];return f;},a4d(a,b);}function a4c(){const i=['431436mXMCJK','create','18MTtcIP','5FXVjuY','maka\x20aws:<sub-command>','3489046tTcoPM','toString','104bMItRb','7470jFNVrh','7Wcvolr','\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','1553636pCSbeO','431966XXUbZY','aws','4565920XUmwZd','search','173780ejrXym','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','48HfsRDf','(((.+)+)+)+$'];a4c=function(){return i;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x108))/0x1+parseInt(f(0x103))/0x2*(parseInt(f(0x104))/0x3)+-parseInt(f(0x107))/0x4*(-parseInt(f(0xff))/0x5)+parseInt(f(0xfc))/0x6+-parseInt(f(0x105))/0x7*(-parseInt(f(0x10a))/0x8)+-parseInt(f(0xfe))/0x9*(-parseInt(f(0xf8))/0xa)+-parseInt(f(0x101))/0xb*(parseInt(f(0xfa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x57871));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const g=a4d;return a4a['toString']()['search'](g(0xfb))[g(0x102)]()['constructor'](a4a)[g(0x10b)](g(0xfb));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0xfd)]({'name':a4h(0x109),'usage':a4h(0x100),'validOpts':[],'shortDesc':a4h(0xf9),'description':a4h(0x106)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5l=a5d;function a5c(){const n=['confirm','domain','search','create','10ncOvTr','5279365bvogDB','4888713kvkhNn','9824250xrYhDI','Instance\x20not\x20found','Set\x20hosted\x20zone\x20to\x20an\x20instance?','route53CreateHostedZone','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','toString','constructor','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','error','create-hosted-zone','6349616HKaTBh','publicIp','chooseInstance','chz','apply','742472rRLOxX','1294133ePijng','3000596sTaEZX','maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:create-hosted-zone'];a5c=function(){return n;};return a5c();}(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x11b))/0x1+-parseInt(i(0x11a))/0x2+parseInt(i(0x10a))/0x3+parseInt(i(0x11c))/0x4*(parseInt(i(0x108))/0x5)+-parseInt(i(0x10b))/0x6+-parseInt(i(0x109))/0x7+-parseInt(i(0x115))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xd3ca6));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0x106)]('(((.+)+)+)+$')[k(0x110)]()[k(0x111)](a5a)[k(0x106)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x106;let f=c[d];return f;},a5d(a,b);}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[a5l(0x107)]({'name':a5l(0x114),'aliases':[a5l(0x118)],'usage':a5l(0x11e),'requiredOpts':[a5l(0x120)],'validOpts':[],'shortDesc':a5l(0x112),'examples':[a5l(0x11d),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b['domain'],d=new AWS();d[m(0x10e)](c);const f=await Actions[m(0x11f)](m(0x10d));if(f){const g=await d[m(0x117)]();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x113)](m(0x10f));d['linkEC2ToRoute53'](g['id'],g[m(0x116)],c);}else throw m(0x10c);}}catch(h){h&&Log[m(0x113)](h),process['exit'](0x0);}},a5e);
1
+ const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x1ec))/0x1+parseInt(i(0x1ee))/0x2+parseInt(i(0x1fc))/0x3*(-parseInt(i(0x1fb))/0x4)+parseInt(i(0x1f9))/0x5*(parseInt(i(0x1f3))/0x6)+parseInt(i(0x200))/0x7+-parseInt(i(0x1f1))/0x8*(-parseInt(i(0x1e7))/0x9)+parseInt(i(0x1e8))/0xa*(-parseInt(i(0x1f2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x818ad));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x1f7)]()[k(0x1eb)](k(0x1f4))['toString']()[k(0x1fe)](a5a)[k(0x1eb)](k(0x1f4));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const n=['2129510zdVhaP','exit','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','search','799144rCzxiu','maka\x20aws:create-hosted-zone\x20--domain=example.com','538928yYQWKx','maka\x20aws:chz\x20--domain=example.com','apply','2752ZhVtsd','22SWSDbU','6OMDlFc','(((.+)+)+)+$','create-hosted-zone','maka\x20aws:create-hosted-zone','toString','error','712115EIfWYI','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','3589044oLVBCF','3OaPmmf','chooseInstance','constructor','create','2377711xLfJGg','confirm','domain','Instance\x20not\x20found','chz','publicIp','7929vawKJI'];a5c=function(){return n;};return a5c();}import{Actions}from'../../tools/actions/actions.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a5d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a5l(0x1ff)]({'name':a5l(0x1f5),'aliases':[a5l(0x1e5)],'usage':a5l(0x1f6),'requiredOpts':[a5l(0x1e3)],'validOpts':[],'shortDesc':a5l(0x1fa),'examples':[a5l(0x1ed),a5l(0x1ef)]},async function(a,b){const m=a5l;try{const c=b[m(0x1e3)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[m(0x201)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0x1fd)]();if(g?.['id']){if(!g[m(0x1e6)])throw Log[m(0x1f8)](m(0x1ea));d['linkEC2ToRoute53'](g['id'],g['publicIp'],c);}else throw m(0x1e4);}}catch(h){h&&Log[m(0x1f8)](h),process[m(0x1e9)](0x0);}},a5e);
@@ -1 +1 @@
1
- const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x10d))/0x1+-parseInt(ae(0xfa))/0x2+parseInt(ae(0xdf))/0x3+-parseInt(ae(0xb7))/0x4*(-parseInt(ae(0xc7))/0x5)+parseInt(ae(0xe5))/0x6*(-parseInt(ae(0xdc))/0x7)+-parseInt(ae(0xec))/0x8+parseInt(ae(0x11c))/0x9*(parseInt(ae(0xd4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x91c27));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0xde)]()['search'](ag(0xe8))[ag(0xde)]()[ag(0xd8)](a6a)[ag(0xfc)]('(((.+)+)+)+$');});a6a();function a6c(){const at=['sort','date','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','2493414enRGjb','exit','toString','1075632raBGwu','unlinkSync','subnet','sgId','ID:\x20','ec2create','6OogjXz','ask','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','(((.+)+)+)+$','\x20SG\x20NAME:\x20','t3.micro','Key-Pair:\x20','4255760AxSACP','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','notice','Instace\x20Type:\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Remove\x20the\x20keypair\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','push','createFile','log','Subnet:\x20','success','Security\x20Group\x20Name:\x20[','Instance\x20Count:\x20','40014IJgNvx','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','search','split','\x20SGID:\x20','string','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','maka\x20aws:create-instance','getAppConfigPath','apply','Setting\x20AMI\x20ID\x20to\x20','bright','cidr','Web\x20App','Setting\x20the\x20key-pair\x20to:\x20','getMakaProjectConfig','maka\x20aws:ci\x20--env\x20prod','ImageID:','\x20:\x20','1175172VGGVqA','fsi','1:1','Please\x20choose\x20a\x20key\x20to\x20use:\x20','**\x20Available\x20Security\x20Groups\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','deleteSecurityGroup','confirm','Create\x20new\x20AWS\x20instance','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','isFile','\x20AZONE:\x20','create-instance','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','maka-cli','3873591McIYLS','**\x20Available\x20key-pairs\x20**','Desc','**\x20Available\x20AMIs\x20**','getTime','name','deleteKeyPair','created-by','forEach','ec2describeKeys','error','maka\x20aws:create-instance\x20--env\x20dev','getConfigFromShorthand','1374188uVjzcs','Creating\x20user\x20data\x20file\x20in\x20','Name','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','No\x20instance\x20has\x20been\x20created.','*\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','EC2\x20Name:\x20[','createKeyPair','subnetId','amazon','User\x20Data:','\x20SUBNETID:\x20','desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','amiId','Would\x20you\x20like\x20to\x20include\x20user\x20data?','15WxgCKO','join','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','readFileSync','create','22,80,443','build\x20on\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','alias','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','env','ec2createSG','30RATFfj','chooseVPC','parse','Setting\x20SG\x20ID\x20to:\x20','constructor'];a6c=function(){return at;};return a6c();}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 a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xb4;let f=c[d];return f;},a6d(a,b);}Command[a6ah(0xcb)]({'name':a6ah(0x119),'aliases':['ci'],'usage':a6ah(0x101),'examples':[a6ah(0xb5),a6ah(0x10a)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xd2)}],'validOpts':[],'shortDesc':a6ah(0x115),'description':a6ah(0xf0)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x10e)][ai(0x109)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x10e)][ai(0xb6)](b['env']),i=this[ai(0x10e)][ai(0x102)](h),j=g+'-'+h,k=await Actions['ask'](ai(0xbd)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x114)](ai(0xd1),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xbe)]({'env':h});r=y,s=z,Log[ai(0xf7)](ai(0x108)+r);}else try{Log['notice'](ai(0x11d));const A=r?r:k,B=await d[ai(0x125)]({'suggestion':A}),C=await Actions[ai(0xe6)](ai(0x110))||'-1';if(parseInt(C)<0x0){Log[ai(0xb4)](ai(0x112)),Log[ai(0xee)](ai(0xbb));return;}B?.[ai(0x124)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x121)],Log['success'](aj(0x108)+r));});}catch(D){Log[ai(0xb4)](D);}l=await d[ai(0xd5)]();const t=await Actions[ai(0x114)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xd5)]():l;u=await Actions[ai(0xe6)](ai(0xf8)+k+']')||k;const F=await Actions[ai(0xe6)](ai(0x100))||ai(0xcc),G=F[ai(0xfd)](',');await d[ai(0xd3)]({'description':ai(0x107),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0xee)](ai(0x111)),J[ai(0x124)](function(L){const ak=ai;L[ak(0x121)]===u?Log[ak(0xee)](ak(0xe3)+L['id']+ak(0xe9)+L[ak(0x121)]+'\x20SGID:\x20'+L[ak(0xe2)]):Log[ak(0x105)]('ID:\x20'+L['id']+ak(0xe9)+L[ak(0x121)]+ak(0xfe)+L['sgId']);});const K=await Actions[ai(0xe6)](ai(0xba)+H+']\x20')||H[ai(0xde)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xe2)],Log['success'](al(0xd7)+m+'\x0a'));});}else m=I,Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0xb4)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0xee)](ai(0x11f));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0xbc))[ai(0xde)](),O=JSON[ai(0xd6)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0xcf)]===am(0xc0)){const T=S['Desc'][am(0xfd)](am(0xcd))[0x1];P[am(0xf3)]({'amiId':S['ID'],'desc':S[am(0x11e)],'date':T});}}),P[ai(0xd9)](function(S,T){const an=ai;return new Date(T[an(0xda)])[an(0x120)]()-new Date(S[an(0xda)])['getTime']();}),P[ai(0x124)](function(S,T){const ao=ai;Q[ao(0xf3)]({'id':T,'amiId':S[ao(0xc5)],'desc':S['desc']});}),Q[ai(0x124)](function(S){const ap=ai;console[ap(0xf5)](ap(0xe3)+S['id']+'\x20AMIID:\x20'+S[ap(0xc5)]+'\x20DESCRIPTION:\x20'+S[ap(0xc3)]);});const R=await Actions[ai(0xe6)](ai(0xfb))||'0';Q[ai(0x124)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xc5)],Log['success'](aq(0x104)+n+aq(0x10c)+S[aq(0xc3)]));});if(n==='')throw Log[ai(0xb4)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0xb4)](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xde)](),U=JSON[ai(0xd6)](T),V=[];U['forEach'](function(X,Y){V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const ar=ai;console[ar(0xf5)](ar(0xe3)+X['id']+'\x20CIDR:\x20'+X[ar(0x106)]+ar(0x118)+X['az']+ar(0xc2)+X[ar(0xbf)]);});const W=await Actions[ai(0xe6)](ai(0xe7))||'0';V[ai(0x124)](function(X){const as=ai;X['id']===parseInt(W)&&(p=X[as(0xbf)],Log[as(0xf7)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0xb4)](ai(0xc9));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xe6)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x10f),Z=Y[ai(0xfd)](':')[0x0],a0=Y[ai(0xfd)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ai(0xf7)](ai(0x11a)+Z+':'+a0);}catch(a1){Log[ai(0xb4)](a1);}try{const a2=await Actions[ai(0xe6)](ai(0x116))||ai(0xea);typeof a2===ai(0xff)&&(o=a2);}catch(a3){Log[ai(0xb4)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0xc6),![]);a4&&(x=a6f[ai(0xc8)](i,'user-data'),Log['notice'](ai(0xb8)+x),await this[ai(0x10e)][ai(0xf4)]({'filePath':x,'data':''}),await Actions[ai(0x114)](ai(0xf2)));}catch(a5){Log[ai(0xb4)](a5);}try{const a6=JSON[ai(0xd6)](execSync(ai(0xc4)+p+ai(0xed))['toString']())[0x0][ai(0xe1)];Log[ai(0xee)](ai(0x10b)+n),Log[ai(0xee)](ai(0xf9)+v+':'+w),Log[ai(0xee)](ai(0xef)+o),Log[ai(0xee)](ai(0xeb)+r),Log[ai(0xee)]('Security\x20Group:\x20'+m),Log[ai(0xee)](ai(0xf6)+a6);if(x){Log['notice'](ai(0xc1)+x);const a8=a6g[ai(0xca)](x)['toString']();Log[ai(0xee)](a8);}const a7=await Actions['confirm'](ai(0xd0));if(a7){const a9=await d[ai(0xe4)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x123),'Value':ai(0x11b)},{'Key':'environment','Value':h},{'Key':ai(0xb9),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0xce)),Log['bright'](ai(0xdb)));}else{Log[ai(0xee)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0xf1)+r+'\x20?',!![]);aa&&(d[ai(0x122)](r),f[ai(0x117)](s)&&a6g[ai(0xe0)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x113)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0xdd)](0x0);}},a6e);
1
+ const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x183))/0x1*(-parseInt(ae(0x186))/0x2)+-parseInt(ae(0x13e))/0x3+-parseInt(ae(0x156))/0x4*(-parseInt(ae(0x151))/0x5)+-parseInt(ae(0x171))/0x6*(-parseInt(ae(0x135))/0x7)+parseInt(ae(0x138))/0x8+parseInt(ae(0x189))/0x9*(parseInt(ae(0x170))/0xa)+parseInt(ae(0x143))/0xb*(-parseInt(ae(0x12d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x4ec83));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x149)]()[ag(0x152)](ag(0x18a))[ag(0x149)]()[ag(0x134)](a6a)['search']('(((.+)+)+)+$');});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x124;let f=c[d];return f;},a6d(a,b);}a6a();import a6e from'./aws.command.js';function a6c(){const au=['getTime','isFile','\x20AZONE:\x20','toString','**\x20Available\x20Subnets\x20**','chooseVPC','notice','Create\x20new\x20AWS\x20instance','join','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','fsi','3370tumrkK','search','error','build\x20on\x20','\x20CIDR:\x20','1916NMCnNn','Desc','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','push','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','created-by','date','log','ec2create','Setting\x20SG\x20ID\x20to:\x20','ImageID:','number','User\x20Data:','Subnet:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getSecurityGroups','readFileSync','\x20SG\x20NAME:\x20','Setting\x20Subnet\x20ID\x20to\x20','1:1','maka\x20aws:ci\x20--env\x20prod','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','createKeyPair','forEach','sort','1135450KfEPOT','54YNsCsJ','**\x20Available\x20Security\x20Groups\x20**','\x20:\x20','env','amazon','create-instance','Name','Remove\x20the\x20security\x20group\x20','confirm','\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','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=*','**\x20Available\x20key-pairs\x20**','sgId','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','desc','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','3548jPGYRn','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','200ohCsmh','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','9gltKDq','(((.+)+)+)+$','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','split','No\x20instance\x20has\x20been\x20created.','22,80,443','apply','getMakaProjectConfig','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','name','getAppConfigPath','deleteKeyPair','*\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','deleteSecurityGroup','subnet','Web\x20App','success','Instance\x20Count:\x20','190320aoHtKu','Security\x20Group\x20Name:\x20[','ask','t3.micro','subnetId','Setting\x20AMI\x20ID\x20to\x20','parse','constructor','263697rDsNya','Security\x20Group:\x20','ID:\x20','4007056VcFLcm','create','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Key-Pair:\x20','Setting\x20the\x20key-pair\x20to:\x20','maka\x20aws:create-instance\x20--env\x20dev','1035183VbjAiV','cider','ec2createSG','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ec2describeKeys','176urfZqj','environment','createFile'];a6c=function(){return au;};return a6c();}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';Command[a6ah(0x139)]({'name':a6ah(0x176),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ah(0x13d),a6ah(0x16b)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x174)}],'validOpts':[],'shortDesc':a6ah(0x14d),'description':a6ah(0x17a)},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x190)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x150)]['getConfigFromShorthand'](b['env']),i=this['fsi'][ai(0x125)](h),j=g+'-'+h,k=await Actions[ai(0x12f)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x158),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x16d)]({'env':h});r=y,s=z,Log[ai(0x12b)](ai(0x13c)+r);}else try{Log['notice'](ai(0x17c));const A=r?r:k,B=await d[ai(0x142)]({'suggestion':A}),C=await Actions['ask'](ai(0x187))||'-1';if(parseInt(C)<0x0){Log[ai(0x153)](ai(0x16c)),Log['notice'](ai(0x18d));return;}B?.[ai(0x16e)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x124)],Log['success'](aj(0x13c)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x14b)]();const t=await Actions[ai(0x179)](ai(0x188),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x12f)](ai(0x12e)+k+']')||k;const F=await Actions[ai(0x12f)](ai(0x185))||ai(0x18e),G=F['split'](',');await d[ai(0x140)]({'description':ai(0x12a),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x166)](u);if(I===''){Log[ai(0x14c)](ai(0x172)),J[ai(0x16e)](function(L){const ak=ai;L[ak(0x124)]===u?Log[ak(0x14c)](ak(0x137)+L['id']+ak(0x168)+L[ak(0x124)]+'\x20SGID:\x20'+L['sgId']):Log['bright'](ak(0x137)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x124)]+'\x20SGID:\x20'+L[ak(0x17d)]);});const K=await Actions[ai(0x12f)](ai(0x18b)+H+']\x20')||H[ai(0x149)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x17d)],Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x12b)](ai(0x160)+m+'\x0a');if(m==='')throw Log['error'](ai(0x17f));}catch(L){Log[ai(0x153)](L);}try{const M=0x7e6;Log[ai(0x14c)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x17b)+M+ai(0x127))[ai(0x149)](),O=JSON[ai(0x133)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x175)){const T=S[am(0x157)][am(0x18c)](am(0x154))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0x157)],'date':T});}}),P[ai(0x16f)](function(S,T){const an=ai;return new Date(T[an(0x15d)])[an(0x146)]()-new Date(S[an(0x15d)])[an(0x146)]();}),P[ai(0x16e)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S['amiId'],'desc':S[ao(0x180)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x15e)](ap(0x137)+S['id']+'\x20AMIID:\x20'+S['amiId']+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ai(0x12f)](ai(0x14f))||'0';Q[ai(0x16e)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x12b)](aq(0x132)+n+aq(0x173)+S[aq(0x180)]));});if(n==='')throw Log[ai(0x153)](ai(0x17f));}catch(S){Log[ai(0x153)](S);}try{Log[ai(0x14c)](ai(0x14a));const T=execSync(ai(0x15b))['toString'](),U=JSON['parse'](T),V=[];U[ai(0x16e)](function(X,Y){const ar=ai;V[ar(0x15a)]({'id':Y,'cidr':X[ar(0x13f)],'az':X['az'],'subnetId':X[ar(0x131)]});}),V[ai(0x16e)](function(X){const as=ai;console[as(0x15e)](as(0x137)+X['id']+as(0x155)+X['cidr']+as(0x148)+X['az']+'\x20SUBNETID:\x20'+X[as(0x131)]);});const W=await Actions['ask'](ai(0x165))||'0';V[ai(0x16e)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x131)],Log[at(0x12b)](at(0x169)+p));});if(p==='')throw Log[ai(0x153)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x153)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x191))||ai(0x16a),Z=Y[ai(0x18c)](':')[0x0],a0=Y[ai(0x18c)](':')[0x1];typeof parseInt(Z)===ai(0x162)&&typeof parseInt(a0)===ai(0x162)&&Log[ai(0x12b)](ai(0x184)+Z+':'+a0);}catch(a1){Log[ai(0x153)](a1);}try{const a2=await Actions[ai(0x12f)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x130);typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x179)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ai(0x14e)](i,'user-data'),Log[ai(0x14c)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x150)][ai(0x145)]({'filePath':x,'data':''}),await Actions[ai(0x179)](ai(0x141)));}catch(a5){Log[ai(0x153)](a5);}try{const a6=JSON[ai(0x133)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x159))[ai(0x149)]())[0x0][ai(0x129)];Log[ai(0x14c)](ai(0x161)+n),Log[ai(0x14c)](ai(0x12c)+v+':'+w),Log[ai(0x14c)]('Instace\x20Type:\x20'+o),Log[ai(0x14c)](ai(0x13b)+r),Log[ai(0x14c)](ai(0x136)+m),Log[ai(0x14c)](ai(0x164)+a6);if(x){Log[ai(0x14c)](ai(0x163)+x);const a8=a6g[ai(0x167)](x)[ai(0x149)]();Log['notice'](a8);}const a7=await Actions[ai(0x179)](ai(0x181));if(a7){const a9=await d[ai(0x15f)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x15c),'Value':'maka-cli'},{'Key':ai(0x144),'Value':h},{'Key':ai(0x177),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x182)),Log['bright'](ai(0x13a)));}else{Log[ai(0x14c)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x179)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x126)](r),f[ai(0x147)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x179)](ai(0x178)+m+'\x20?',!![]);ab&&d[ai(0x128)](m);}}catch(ac){Log[ai(0x153)](ac);}}catch(ad){ad&&Log[ai(0x153)](ad),process[ai(0x17e)](0x0);}},a6e);
@@ -1 +1 @@
1
- function a7c(){const k=['exit','3577nSwPli','create-key-pair','toString','268VePsdw','maka\x20aws:ckp\x20--env\x20prod','21955JBtDFp','error','296676CmsEtB','211176HjjlqJ','\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','env','fsi','1282902ovGoIm','search','constructor','299133rSXSJG','createKeyPair','ckp','(((.+)+)+)+$','296MuTRGA','652596OyxgWi','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a7c=function(){return k;};return a7c();}const a7i=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x1ab))/0x1+parseInt(g(0x1ac))/0x2+-parseInt(g(0x1a1))/0x3+parseInt(g(0x1a7))/0x4*(parseInt(g(0x1a9))/0x5)+parseInt(g(0x1b0))/0x6+parseInt(g(0x1a4))/0x7*(parseInt(g(0x1a0))/0x8)+parseInt(g(0x19c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x24ff2));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x1a6)]()[h(0x19a)]('(((.+)+)+)+$')[h(0x1a6)]()[h(0x19b)](a7a)[h(0x19a)](h(0x19f));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x19a;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a7i(0x1a5),'aliases':[a7i(0x19e)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7i(0x1a8)],'mustBeInMakaProject':!![],'requiredOpts':[a7i(0x1ae)],'validOpts':[],'shortDesc':a7i(0x1a2),'description':a7i(0x1ad)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this[j(0x1af)]['getConfigFromShorthand'](b[j(0x1ae)]);c[j(0x19d)]({'env':d});}catch(f){f&&Log[j(0x1aa)](f),process[j(0x1a3)](0x0);}},a7e);
1
+ function a7c(){const k=['8nFiXux','exit','create','toString','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','194tJnjqL','5602770ktlNyp','getConfigFromShorthand','7QWYhtF','340850uJoVKC','13215qPbUxi','search','env','maka\x20aws:create-key-pair','fsi','953502WwtfvA','ckp','(((.+)+)+)+$','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','3636189rhWtXs','130132weISGt','228LTdTHf','2309304YLTFPs','30wUxPjM','createKeyPair','error'];a7c=function(){return k;};return a7c();}const a7i=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0xba))/0x1+parseInt(g(0xb6))/0x2*(-parseInt(g(0xbb))/0x3)+-parseInt(g(0xc5))/0x4*(-parseInt(g(0xc8))/0x5)+-parseInt(g(0xc7))/0x6*(parseInt(g(0xb9))/0x7)+parseInt(g(0xb1))/0x8*(-parseInt(g(0xc4))/0x9)+-parseInt(g(0xb7))/0xa+-parseInt(g(0xc0))/0xb*(-parseInt(g(0xc6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6340b));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0xb4)]()[h(0xbc)](h(0xc2))[h(0xb4)]()['constructor'](a7a)[h(0xbc)](h(0xc2));});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xaf;let f=c[d];return f;},a7d(a,b);}a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7i(0xb3)]({'name':'create-key-pair','aliases':[a7i(0xc1)],'usage':a7i(0xbe),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a7i(0xc3),'description':a7i(0xb5)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this[j(0xbf)][j(0xb8)](b[j(0xbd)]);c[j(0xaf)]({'env':d});}catch(f){f&&Log[j(0xb0)](f),process[j(0xb2)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xcd))/0x1+-parseInt(m(0xc3))/0x2+parseInt(m(0xca))/0x3+-parseInt(m(0xc5))/0x4+-parseInt(m(0xcf))/0x5+-parseInt(m(0xd4))/0x6*(-parseInt(m(0xbf))/0x7)+parseInt(m(0xdc))/0x8*(parseInt(m(0xd2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x9abba));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xc7)]()[o(0xd7)]('(((.+)+)+)+$')['toString']()[o(0xcb)](a8a)[o(0xd7)](o(0xd9));});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xbf;let f=c[d];return f;},a8d(a,b);}function a8c(){const s=['create-security-group','8224533xYZZYi','name','12xLIcyG','error','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','search','maka\x20aws:csg','(((.+)+)+)+$','create','22,80,443','8BUDlNf','exit','Web\x20App','3889739PyRWQh','getMakaProjectConfig','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','maka\x20aws:create-secuirty-group','663044ZDhuii','List\x20is\x20not\x20all\x20numbers','2897392qvwqqT','chooseVPC','toString','ec2createSG','match','1115010wGfjaE','constructor','ask','300926BNbrBI','\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','2031395hDaAyS','apply'];a8c=function(){return s;};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[a8p(0xda)]({'name':a8p(0xd1),'aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8p(0xd6),'description':a8p(0xce),'examples':[a8p(0xc2),a8p(0xd8)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this['fsi'][q(0xc0)](),{appName:f}=d,g=await c[q(0xc6)](),h=b['name']?b[q(0xd3)]:''+f,i=await Actions[q(0xcc)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions['ask'](q(0xc1))||q(0xdb),k=j['split'](',');k['forEach'](l=>{const r=q;if(!l[r(0xc9)](/^\d+$/))throw r(0xc4);}),await c[q(0xc8)]({'description':q(0xde),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xd5)](l),process[q(0xdd)](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x15b))/0x1*(-parseInt(m(0x153))/0x2)+parseInt(m(0x147))/0x3+parseInt(m(0x156))/0x4*(parseInt(m(0x14d))/0x5)+-parseInt(m(0x14f))/0x6+-parseInt(m(0x15a))/0x7+parseInt(m(0x157))/0x8*(-parseInt(m(0x14e))/0x9)+parseInt(m(0x149))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xc5448));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a['toString']()['search'](o(0x15c))['toString']()[o(0x150)](a8a)[o(0x14c)]('(((.+)+)+)+$');});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x144;let f=c[d];return f;},a8d(a,b);}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const s=['(((.+)+)+)+$','error','maka\x20aws:csg','22,80,443','Security\x20Group\x20Name:\x20[','ask','create','apply','create-security-group','split','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','4365108PLHQLX','csg','14087270zPguyV','List\x20is\x20not\x20all\x20numbers','exit','search','90aiSGrC','1651266UlIOvu','8102256SPOyHz','constructor','getMakaProjectConfig','Web\x20App','17330DLmKWn','name','forEach','348844DrNdNu','48pIXPwD','maka\x20aws\x20create-security-group','ec2createSG','6946576AvkewC','21uUWRww'];a8c=function(){return s;};return a8c();}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(0x162)]({'name':a8p(0x144),'aliases':[a8p(0x148)],'usage':a8p(0x158),'validOpts':[],'shortDesc':a8p(0x146),'description':'\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','examples':['maka\x20aws:create-secuirty-group',a8p(0x15e)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this['fsi'][q(0x151)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x154)]?b[q(0x154)]:''+f,i=await Actions[q(0x161)](q(0x160)+h+']')||h,j=await Actions[q(0x161)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x15f),k=j[q(0x145)](',');k[q(0x155)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x14a);}),await c[q(0x159)]({'description':q(0x152),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x15d)](l),process[q(0x14b)](0x1);}},a8e);
@@ -1 +1 @@
1
- const a9i=a9d;function a9c(){const k=['maka\x20aws:describe-instances','24ZzYJKz','\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','3048uMXuCs','error','228540OUQXWr','constructor','apply','13069qxIWUv','(((.+)+)+)+$','242172ijBODN','602955BmMkcB','499209njAJpG','describe-instances','create','5302188mkzylF','5391366cvePQF','10vXSRNp','search','exit','maka\x20aws:di'];a9c=function(){return k;};return a9c();}(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x113))/0x1+parseInt(f(0x118))/0x2+parseInt(f(0x11a))/0x3*(parseInt(f(0x124))/0x4)+parseInt(f(0x119))/0x5+parseInt(f(0x11e))/0x6+parseInt(f(0x116))/0x7*(-parseInt(f(0x126))/0x8)+-parseInt(f(0x11d))/0x9*(parseInt(f(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x94d79));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x112;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a['toString']()[h(0x120)](h(0x117))['toString']()[h(0x114)](a9a)[h(0x120)](h(0x117));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9i(0x11c)]({'name':a9i(0x11b),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x123),a9i(0x122)],'description':a9i(0x125)},async function(){const j=a9i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){b&&Log[j(0x112)](b),process[j(0x121)](0x1);}},a9e);
1
+ const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x1a0))/0x1*(-parseInt(f(0x18c))/0x2)+-parseInt(f(0x18f))/0x3+parseInt(f(0x195))/0x4+-parseInt(f(0x191))/0x5+-parseInt(f(0x19a))/0x6*(parseInt(f(0x198))/0x7)+parseInt(f(0x19c))/0x8*(-parseInt(f(0x19e))/0x9)+parseInt(f(0x193))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x8364c));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a['toString']()[h(0x19f)]('(((.+)+)+)+$')[h(0x190)]()['constructor'](a9a)[h(0x19f)](h(0x18e));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x18c;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9c(){const k=['4298kRBVIc','\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','864jGkgaz','apply','3304TzmEIo','ec2describeInstances','8703gPrThx','search','593724Uvletk','exit','2JDMGWF','create','(((.+)+)+)+$','2504997NVKiYC','toString','513050vBJxOO','error','3872540zmfUgT','maka\x20aws:describe-instances','3930424OvNqID','maka\x20aws:di','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI'];a9c=function(){return k;};return a9c();}import{Log}from'../../tools/log/log.class.js';Command[a9i(0x18d)]({'name':'describe-instances','aliases':['di'],'usage':a9i(0x194),'validOpts':[],'shortDesc':a9i(0x197),'examples':[a9i(0x194),a9i(0x196)],'description':a9i(0x199)},async function(){const j=a9i;try{const a=new AWS();a[j(0x19d)]();}catch(b){b&&Log[j(0x192)](b),process[j(0x1a1)](0x1);}},a9e);
@@ -1 +1 @@
1
- function a10c(){const j=['10Vwpowi','error','2232762GMmePr','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','2YMNlBF','describe-key-pairs','maka\x20aws:dkp','create','16bmxIEh','(((.+)+)+)+$','3787168zgeOBj','21496167xHQkTq','72192OEoTJk','dkp','constructor','125XkVLkQ','maka\x20aws:describe-key-pairs','ec2describeKeys','toString','exit','649527wfMwMR','8348517UlShAU','search','3760057AhNPlP'];a10c=function(){return j;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x174;let f=c[d];return f;},a10d(a,b);}const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x187))/0x1*(parseInt(f(0x177))/0x2)+parseInt(f(0x175))/0x3+-parseInt(f(0x17d))/0x4+parseInt(f(0x182))/0x5*(parseInt(f(0x17f))/0x6)+parseInt(f(0x18a))/0x7*(-parseInt(f(0x17b))/0x8)+-parseInt(f(0x188))/0x9+parseInt(f(0x18b))/0xa*(parseInt(f(0x17e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xaaea7));const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a['toString']()[g(0x189)](g(0x17c))[g(0x185)]()[g(0x181)](a10a)['search'](g(0x17c));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10h(0x17a)]({'name':a10h(0x178),'aliases':[a10h(0x180)],'usage':a10h(0x183),'validOpts':[],'shortDesc':a10h(0x176),'examples':[a10h(0x183),a10h(0x179)]},async function(){const i=a10h;try{const a=new AWS();a[i(0x184)]();}catch(b){b&&Log[i(0x174)](b),process[i(0x186)](0x0);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xda))/0x1*(-parseInt(f(0xf1))/0x2)+parseInt(f(0xe4))/0x3*(parseInt(f(0xed))/0x4)+-parseInt(f(0xdd))/0x5*(parseInt(f(0xf0))/0x6)+parseInt(f(0xe3))/0x7*(parseInt(f(0xec))/0x8)+parseInt(f(0xee))/0x9+-parseInt(f(0xe0))/0xa+parseInt(f(0xe1))/0xb*(-parseInt(f(0xea))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x65a38));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xdf)]()[h(0xef)](h(0xe6))[h(0xdf)]()[h(0xe9)](a10a)[h(0xef)](h(0xe6));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xda;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0xde)]({'name':a10i(0xe5),'aliases':[a10i(0xeb)],'usage':a10i(0xe2),'validOpts':[],'shortDesc':a10i(0xe7),'examples':[a10i(0xe2),a10i(0xdb)]},async function(){const j=a10i;try{const a=new AWS();a[j(0xf2)]();}catch(b){b&&Log['error'](b),process[j(0xe8)](0x0);}},a10e);function a10c(){const k=['4iAJFyQ','712908JBYMIK','search','1479780glAFGR','17284NaXPhn','ec2describeKeys','79poERuD','maka\x20aws:dkp','apply','10FCLUSd','create','toString','178570BWimAp','3839yddBQQ','maka\x20aws:describe-key-pairs','33866UoJHtS','2370510WjNSQV','describe-key-pairs','(((.+)+)+)+$','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','exit','constructor','24972nAdhrH','dkp','168ogUYZR'];a10c=function(){return k;};return a10c();}
@@ -1 +1 @@
1
- function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x82;let f=c[d];return f;},a11d(a,b);}const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x9f))/0x1+parseInt(l(0xaa))/0x2+-parseInt(l(0x8a))/0x3*(parseInt(l(0xa1))/0x4)+-parseInt(l(0x93))/0x5*(parseInt(l(0x92))/0x6)+-parseInt(l(0x9c))/0x7*(-parseInt(l(0x96))/0x8)+parseInt(l(0x95))/0x9+-parseInt(l(0xa0))/0xa*(-parseInt(l(0x94))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x20ba5));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xa6)]()[n(0x99)](n(0xa4))[n(0xa6)]()[n(0xa5)](a11a)['search'](n(0xa4));});a11a();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 a11c(){const r=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','isMakaProject','confirm','maka\x20aws:dsg','error','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1194OdQklE','3250NpyOFn','771034MEnmdo','403443GSTpPC','535208aRMyud','ID:\x20','apply','search','forEach','bright','7ohZByD','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','name','255202mtxrLO','10AZmTeh','316ehUqCv','getMakaProjectConfig','sgId','(((.+)+)+)+$','constructor','toString','exit','Deleted\x20','appName','49812Bfuums','deleteSecurityGroup','maka\x20aws:delete-sg','ask','dsg','\x20SG\x20NAME:\x20','delete-security-group','\x20SGID:\x20','success','7539YBkZef'];a11c=function(){return r;};return a11c();}Command['create']({'name':a11o(0x87),'aliases':[a11o(0x85)],'usage':a11o(0x83),'validOpts':[],'shortDesc':a11o(0x9d),'examples':[a11o(0x83),a11o(0x8f)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x8d)]();let d='';if(c){const j=b[p(0xa2)]();d=j[p(0xa9)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x9a)](function(k){const q=p;c&&k[q(0x9e)]['includes'](d)?Log['notice'](q(0x97)+k['id']+q(0x86)+k[q(0x9e)]+q(0x88)+k[q(0xa3)]):Log[q(0x9b)](q(0x97)+k['id']+q(0x86)+k['name']+q(0x88)+k[q(0xa3)]);});let g='';const h=await Actions[p(0x84)](p(0x8c));f[p(0x9a)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x90)](p(0x91));const i=await Actions[p(0x8e)]('Deleting\x20a\x20'+g+p(0x8b),![]);i?(await a[p(0x82)](g),Log[p(0x89)](p(0xa8)+g)):Log[p(0x90)]('Not\x20deleting\x20secuirty\x20group'),process[p(0xa7)](0x0);}catch(k){k&&Log[p(0x90)](k),process[p(0xa7)](0x1);}},a11e);
1
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xea;let f=c[d];return f;},a11d(a,b);}const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0xfc))/0x1*(parseInt(l(0xee))/0x2)+-parseInt(l(0x108))/0x3+-parseInt(l(0xf1))/0x4+parseInt(l(0x10b))/0x5+parseInt(l(0x10c))/0x6+-parseInt(l(0x10f))/0x7*(-parseInt(l(0x101))/0x8)+-parseInt(l(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd29cf));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xf9)]()[n(0xf3)](n(0x112))[n(0xf9)]()[n(0x10a)](a11a)[n(0xf3)]('(((.+)+)+)+$');});a11a();function a11c(){const s=['bright','2032ZWDKqK','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','\x20SGID:\x20','delete-security-group','12013506pmXxCH','3275682swrOzq','ask','constructor','8399155KrDukZ','9215712GYikWE','\x20SG\x20NAME:\x20','sgId','3234ISBXsE','getMakaProjectConfig','isMakaProject','(((.+)+)+)+$','maka\x20aws:delete-sg','forEach','apply','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','112GVEOJb','getSecurityGroups','Deleting\x20a\x20','4295632QeUHnC','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','search','dsg','create','error','ID:\x20','appName','toString','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','success','18396bLtiyh','deleteSecurityGroup','name','confirm'];a11c=function(){return s;};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';Command[a11o(0xf5)]({'name':a11o(0x106),'aliases':[a11o(0xf4)],'usage':a11o(0xea),'validOpts':[],'shortDesc':a11o(0xfa),'examples':[a11o(0xea),a11o(0x103)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x111)]();let d='';if(c){const j=b[p(0x110)]();d=j[p(0xf8)];}const {sgList:f}=await a[p(0xef)]();f[p(0xeb)](function(k){const q=p;c&&k[q(0xfe)]['includes'](d)?Log['notice'](q(0xf7)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x105)+k[q(0x10e)]):Log[q(0x100)](q(0xf7)+k['id']+q(0x10d)+k['name']+'\x20SGID:\x20'+k['sgId']);});let g='';const h=await Actions[p(0x109)](p(0x102));f[p(0xeb)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x10e)]);});if(!g)throw Log[p(0xf6)](p(0xf2));const i=await Actions[p(0xff)](p(0xf0)+g+p(0xed),![]);i?(await a[p(0xfd)](g),Log[p(0xfb)]('Deleted\x20'+g)):Log[p(0xf6)](p(0x104)),process['exit'](0x0);}catch(k){k&&Log[p(0xf6)](k),process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xc1))/0x1+parseInt(f(0xc7))/0x2+parseInt(f(0xa9))/0x3*(-parseInt(f(0xc3))/0x4)+-parseInt(f(0xb3))/0x5*(-parseInt(f(0xb1))/0x6)+parseInt(f(0xbc))/0x7*(-parseInt(f(0xc8))/0x8)+parseInt(f(0xaf))/0x9+parseInt(f(0xbf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x21bdc));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xa8;let f=c[d];return f;},a12d(a,b);}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0xba)]('(((.+)+)+)+$')[h(0xb9)]()[h(0xb5)](a12a)['search'](h(0xbd));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12c(){const k=['reboot-instance','exit','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','toString','search','\x20Ready?','7qlMFiV','(((.+)+)+)+$','error','1736380BLDvFc','running','87028KpwAMH','apply','4SMtkal','Reboot\x20an\x20EC2\x20instance','maka\x20aws:rbi','chooseInstance','208862LEkXAy','49048bjFKKQ','status','759807qCWKbP','maka\x20aws:reboot-instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','create','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','755253Vcytac','instanceId','122646RXFoHZ','ec2rebootInstance','30xtXClf','rbi','constructor'];a12c=function(){return k;};return a12c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xac)]({'name':a12i(0xb6),'aliases':[a12i(0xb4)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a12i(0xc4),'examples':[a12i(0xaa),a12i(0xc5)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xc6)]();if(b?.[j(0xa8)]===j(0xc0)){const c=await Actions['confirm'](j(0xb8)+b[j(0xad)]+j(0xbb));c&&b[j(0xb0)]?a[j(0xb2)]({'instanceId':b[j(0xb0)]}):Log[j(0xbe)](j(0xab)+b[j(0xad)]+'\x20is\x20still\x20running.');}else Log[j(0xbe)](j(0xae));}catch(d){d&&Log[j(0xbe)](d),process[j(0xb7)](0x1);}},a12e);
1
+ const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1b4))/0x1+parseInt(f(0x1bf))/0x2+parseInt(f(0x1b1))/0x3*(parseInt(f(0x1c6))/0x4)+-parseInt(f(0x1ae))/0x5+parseInt(f(0x1c0))/0x6*(parseInt(f(0x1c4))/0x7)+parseInt(f(0x1c7))/0x8*(-parseInt(f(0x1bd))/0x9)+parseInt(f(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x77539));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1c8)]()[h(0x1b3)](h(0x1ca))['toString']()[h(0x1b6)](a12a)[h(0x1b3)](h(0x1ca));});a12a();function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a12d(a,b);}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=['722562YPttdL','reboot-instance','apply','\x20Ready?','7RBLhmL','name','4ZLljsf','1856896cpInSs','toString','running','(((.+)+)+)+$','rbi','instanceId','2259460KyMLcP','error','Reboot\x20an\x20EC2\x20instance','591726aluuPC','354390xIBwhG','search','641993tqLmny','\x20is\x20still\x20running.','constructor','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','maka\x20aws:rbi','ec2rebootInstance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','status','maka\x20aws:reboot-instance','27xxfbXe','confirm','1283776qFNNKc'];a12c=function(){return k;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12i(0x1c1),'aliases':[a12i(0x1ac)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a12i(0x1b0),'examples':[a12i(0x1bc),a12i(0x1b8)]},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x1bb)]===j(0x1c9)){const c=await Actions[j(0x1be)](j(0x1b7)+b[j(0x1c5)]+j(0x1c3));c&&b[j(0x1ad)]?a[j(0x1b9)]({'instanceId':b[j(0x1ad)]}):Log[j(0x1af)](j(0x1ba)+b[j(0x1c5)]+j(0x1b5));}else Log[j(0x1af)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x1af)](d),process['exit'](0x1);}},a12e);
@@ -1 +1 @@
1
- const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x1a2))/0x1+parseInt(E(0x18a))/0x2+parseInt(E(0x1a5))/0x3+-parseInt(E(0x1aa))/0x4*(-parseInt(E(0x180))/0x5)+-parseInt(E(0x1b3))/0x6*(-parseInt(E(0x183))/0x7)+parseInt(E(0x194))/0x8*(parseInt(E(0x1ba))/0x9)+-parseInt(E(0x1ac))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xb79b9));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x18b)]()[G(0x1b1)](G(0x19b))['toString']()[G(0x189)](a13a)[G(0x1b1)](G(0x19b));});a13a();import a13e from'./aws.command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x180;let f=c[d];return f;},a13d(a,b);}import{Command}from'../../command.js';function a13c(){const K=['Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','4zYCWmc','list','47349310ycyHQM','Contact\x20Last\x20Name\x20[Person]:\x20','PERSON','96816','notice','search','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','24294mYrpZC','Choose\x20contact\x20type','State\x20[HI]:\x20','+1.5555555555','error','checkDomainAvailability','Address\x20Line\x202:\x20','36468YfVemk','Person','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','3587905NpZHCc','Contact\x20Email\x20[mail@example.com]:\x20','Duration\x20in\x20years\x20[1]:\x20','2590PmonPr','options','confirm','PUBLIC_BODY','domain','ask','constructor','2626842CEbNLO','toString','Country\x20Code\x20[US]:\x20','\x20years\x20(','\x20/\x20Year)','warn','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20First\x20Name\x20[Contact]:\x20','create','apply','368luoACJ','maka\x20aws:register-domain-name\x20--domain=example.com','registerDomain','+1.5555555556','mail@example.com','contactType','rdn','(((.+)+)+)+$','maka\x20aws:rdn\x20--domain=example.com','\x20for\x20','exit','\x20/\x20Year\x20\x0a','maka\x20aws:register-domain-name','Zip\x20Code\x20[96816]:\x20','1274025bmXxNN','values','Domain\x20name\x20is\x20unavailable','1492317abskyQ','RESELLER','COMPANY','Contact'];a13c=function(){return K;};return a13c();}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[H(0x1a3)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x192)]({'name':'register-domain-name','aliases':[a13I(0x19a)],'usage':a13I(0x1a0),'requiredOpts':[a13I(0x187)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a13I(0x195),a13I(0x19c)]},async function(a,b){const J=a13I;try{const c=b[J(0x187)],d=new AWS(),{available:f,cost:g}=await d[J(0x1b8)](c);if(f&&g){Log[J(0x1b0)]('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x19f));const j=await Actions[J(0x185)](J(0x190)+c+'\x20?',![]);if(j){const k={'type':J(0x1ab),'name':J(0x199),'message':J(0x1b4),'choices':['ASSOCIATION',J(0x1a7),J(0x1ae),J(0x186),J(0x1a6)]},l=await Actions[J(0x188)](J(0x182))||'1',m=await Actions[J(0x188)](J(0x191))||J(0x1a8),n=await Actions[J(0x188)](J(0x1ad))||J(0x1bb),{contactType:o}=await Actions[J(0x184)](k),p=await Actions[J(0x188)](J(0x1b2))||'123\x20Glorious\x20Way',q=await Actions[J(0x188)](J(0x1b9)),r=await Actions[J(0x188)](J(0x1a1))||J(0x1af),s=await Actions[J(0x188)](J(0x1b5))||'HI',t=await Actions[J(0x188)](J(0x18c))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x1b7)]('Invalid\x202\x20character\x20country\x20code');const v=await Actions['ask'](J(0x1bc))||J(0x1b6),w=await Actions[J(0x188)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x197),x=await Actions['ask'](J(0x181))||J(0x198),y=await Actions[J(0x185)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x1ae)){const C=await Actions['ask']('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[J(0x1b0)](J(0x1a9)),Log[J(0x18f)](A+'\x20'+i+J(0x19d)+l+J(0x18d)+h+'\x20'+i+J(0x18e));const B=await Actions[J(0x185)]('Are\x20you\x20sure?');B&&await d[J(0x196)](z,c,parseInt(l),y);}}else throw J(0x1a4);}catch(D){D&&Log[J(0x1b7)](D),process[J(0x19e)](0x0);}},a13e);
1
+ const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x12d))/0x1+-parseInt(E(0x125))/0x2+-parseInt(E(0x13b))/0x3+parseInt(E(0x114))/0x4+-parseInt(E(0x113))/0x5*(parseInt(E(0x141))/0x6)+parseInt(E(0x10e))/0x7+parseInt(E(0x116))/0x8*(parseInt(E(0x120))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x4bd55));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x123)]()[G(0x11a)]('(((.+)+)+)+$')[G(0x123)]()['constructor'](a13a)[G(0x11a)]('(((.+)+)+)+$');});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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x10a;let f=c[d];return f;},a13d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0x139)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13I(0x115),'aliases':[a13I(0x137)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a13I(0x10c)],'validOpts':[],'shortDesc':a13I(0x11d),'examples':[a13I(0x12e),a13I(0x118)]},async function(a,b){const J=a13I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0x122)](c);if(f&&g){Log[J(0x130)]('The\x20domain\x20name:\x20'+c+J(0x140));const {Price:h,Currency:i}=g;Log[J(0x10a)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions['confirm'](J(0x13f)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0x13d),'message':J(0x146),'choices':[J(0x129),J(0x117),J(0x127),J(0x13a),J(0x11f)]},l=await Actions[J(0x111)](J(0x124))||'1',m=await Actions['ask'](J(0x121))||J(0x10b),n=await Actions['ask'](J(0x10f))||J(0x11e),{contactType:o}=await Actions['options'](k),p=await Actions[J(0x111)](J(0x10d))||J(0x128),q=await Actions['ask'](J(0x133)),r=await Actions[J(0x111)](J(0x138))||J(0x11b),s=await Actions['ask'](J(0x131))||'HI',t=await Actions[J(0x111)](J(0x136))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x12f)](J(0x143));const v=await Actions['ask'](J(0x126))||'+1.5555555555',w=await Actions['ask']('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x145),x=await Actions[J(0x111)](J(0x119))||J(0x13e),y=await Actions['confirm'](J(0x112)),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['ask'](J(0x13c))||'My\x20Comanpy,\x20LLC.';z[J(0x12a)]=C;}const A=h||0x0*parseInt(l);Log[J(0x130)](J(0x134)),Log[J(0x10a)](A+'\x20'+i+J(0x144)+l+J(0x110)+h+'\x20'+i+J(0x135));const B=await Actions['confirm'](J(0x12c));B&&await d[J(0x11c)](z,c,parseInt(l),y);}}else throw J(0x12b);}catch(D){D&&Log[J(0x12f)](D),process[J(0x132)](0x0);}},a13e);function a13c(){const K=['Address\x20Line\x202:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','\x20/\x20Year)','Country\x20Code\x20[US]:\x20','rdn','Zip\x20Code\x20[96816]:\x20','includes','PUBLIC_BODY','948927uFjpgx','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','contactType','mail@example.com','Do\x20you\x20wish\x20to\x20register\x20','\x20is\x20available\x20for:','806658MHXeQq','apply','Invalid\x202\x20character\x20country\x20code','\x20for\x20','+1.5555555556','Choose\x20contact\x20type','warn','Contact','domain','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','3548839elsNNg','Contact\x20Last\x20Name\x20[Person]:\x20','\x20years\x20(','ask','Auto\x20Renew:\x20','5VPVjfk','2284228wBuTgC','register-domain-name','367264OnarFf','COMPANY','maka\x20aws:rdn\x20--domain=example.com','Contact\x20Email\x20[mail@example.com]:\x20','search','96816','registerDomain','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Person','RESELLER','9dyHaix','Contact\x20First\x20Name\x20[Contact]:\x20','checkDomainAvailability','toString','Duration\x20in\x20years\x20[1]:\x20','1033244ICqTuU','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','PERSON','123\x20Glorious\x20Way','ASSOCIATION','OrganizationName','Domain\x20name\x20is\x20unavailable','Are\x20you\x20sure?','154045JUcuPr','maka\x20aws:register-domain-name\x20--domain=example.com','error','notice','State\x20[HI]:\x20','exit'];a13c=function(){return K;};return a13c();}
@@ -1 +1 @@
1
- const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x1e7))/0x1+-parseInt(h(0x1dd))/0x2*(-parseInt(h(0x1e4))/0x3)+parseInt(h(0x1f0))/0x4+parseInt(h(0x1df))/0x5+parseInt(h(0x1eb))/0x6*(parseInt(h(0x1e5))/0x7)+-parseInt(h(0x1ed))/0x8*(-parseInt(h(0x1f1))/0x9)+-parseInt(h(0x1d9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x55252));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x1ec)]()[j(0x1f3)](j(0x1db))[j(0x1ec)]()['constructor'](a14a)['search']('(((.+)+)+)+$');});a14a();function a14c(){const m=['Not\x20deleting\x20keypair','23280490bEAMkU','confirm','(((.+)+)+)+$','Deleting\x20a\x20','42178WrlHOh','Deleted\x20','2797935QxduvF','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','apply','create','error','18UziGXw','4868437PyRudO','exit','439078oJHtuu','remove-key-pair','forEach','ec2describeKeys','6vJXAEk','toString','684808IOWWZA','ask','success','1027624VVgUhD','63WFlgZz','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','search','maka\x20aws:remove-key-pair','rkp'];a14c=function(){return m;};return a14c();}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-0x1d7;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x1e2)]({'name':a14k(0x1e8),'aliases':[a14k(0x1d7)],'usage':a14k(0x1f4),'validOpts':[],'shortDesc':a14k(0x1f2),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a14k(0x1f4),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x1ea)]();let c=undefined;const d=await Actions[l(0x1ee)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x1e9)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x1e3)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x1da)](l(0x1dc)+c+l(0x1e0),![]);f?(await a['deleteKeyPair'](c),Log[l(0x1ef)](l(0x1de)+c)):Log['error'](l(0x1d8)),process[l(0x1e6)](0x0);}catch(g){g&&Log[l(0x1e3)](g),process[l(0x1e6)](0x1);}},a14e);
1
+ function a14c(){const m=['33682200RFvfAb','9dKyhvS','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:remove-key-pair','ask','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','3614260VlGIVy','maka\x20aws:rkp','error','623WbUZAd','2179574JkCQBw','609pzKdWY','name','8848HlHKfF','search','Deleted\x20','Deleting\x20a\x20','toString','create','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','969903uHVWSc','forEach','(((.+)+)+)+$','86646xtHRKM','deleteKeyPair','\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','remove-key-pair','9072760mmTDMS','ec2describeKeys','Not\x20deleting\x20keypair','exit','confirm'];a14c=function(){return m;};return a14c();}const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x1af))/0x1+-parseInt(h(0x1a5))/0x2+-parseInt(h(0x1a6))/0x3*(-parseInt(h(0x1a8))/0x4)+-parseInt(h(0x1a1))/0x5+-parseInt(h(0x1b2))/0x6*(parseInt(h(0x1a4))/0x7)+parseInt(h(0x196))/0x8*(parseInt(h(0x19c))/0x9)+parseInt(h(0x19b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xd7b68));const a14b=(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;};}()),a14a=a14b(this,function(){const i=a14d;return a14a[i(0x1ac)]()[i(0x1a9)](i(0x1b1))[i(0x1ac)]()['constructor'](a14a)['search'](i(0x1b1));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x196;let f=c[d];return f;},a14d(a,b);}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14j(0x1ad)]({'name':a14j(0x1b5),'aliases':['rkp'],'usage':a14j(0x19e),'validOpts':[],'shortDesc':a14j(0x1a0),'description':a14j(0x1b4),'examples':[a14j(0x19e),a14j(0x1a2)]},async function(){const k=a14j;try{const a=new AWS(),b=await a[k(0x197)]();let c=undefined;const d=await Actions[k(0x19f)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[k(0x1b0)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x1a7)]);});if(!c)throw Log[k(0x1a3)](k(0x19d));const f=await Actions[k(0x19a)](k(0x1ab)+c+k(0x1ae),![]);f?(await a[k(0x1b3)](c),Log['success'](k(0x1aa)+c)):Log[k(0x1a3)](k(0x198)),process[k(0x199)](0x0);}catch(g){g&&Log['error'](g),process[k(0x199)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x191))/0x1+-parseInt(l(0x1a2))/0x2+-parseInt(l(0x192))/0x3+-parseInt(l(0x182))/0x4+-parseInt(l(0x18d))/0x5+parseInt(l(0x193))/0x6*(-parseInt(l(0x1a4))/0x7)+parseInt(l(0x17d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x91fd4));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[m(0x1a0)]()['search'](m(0x19f))[m(0x1a0)]()[m(0x18a)](a15a)[m(0x185)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x17d;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(0x18c)]({'name':a15n(0x18f),'aliases':[a15n(0x195)],'usage':a15n(0x1a9),'mustBeInMakaProject':!![],'requiredOpts':[a15n(0x19d)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a15n(0x197),'examples':[a15n(0x19c),a15n(0x19a)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0x186)][o(0x184)](b['env']),f=this['fsi'][o(0x194)](),g=await c[o(0x187)](),h=a15e[o(0x188)](d,o(0x198));!this[o(0x186)][o(0x17f)](h)&&await this[o(0x186)][o(0x189)]({'srcPath':o(0x19b),'destPath':h,'context':{'app':f[o(0x19e)]},'config':f});const i=JSON[o(0x1a5)](a15f[o(0x1a7)](h,o(0x199))),j=await Actions[o(0x190)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||o(0x1a3);if(j){if(j===o(0x1a3)||j==='private'){if(j==='public')i[o(0x17e)]=g?.[o(0x1a8)];else j===o(0x180)&&(i[o(0x17e)]=g?.[o(0x18b)]);}else throw o(0x181);}else i[o(0x17e)]=g?.[o(0x18b)];a15f['writeFileSync'](a15e[o(0x188)](d,o(0x198)),JSON[o(0x196)](i,null,0x2)),execSync('cat\x20'+a15e[o(0x188)](d,o(0x198)),{'stdio':o(0x1a6)}),Log[o(0x183)](o(0x1ab)+j+o(0x1aa)+d+a15e[o(0x18e)]+o(0x198));}catch(k){k&&Log['error'](k),process[o(0x1a1)](0x0);}},a15g);function a15c(){const p=['privateIp','create','103230UQnvpw','sep','set-host','ask','986785privXi','2305527Qdpfbg','1321998zzKidE','getMakaProjectConfig','sth','stringify','\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','ssh.json','utf8','maka\x20aws:sth\x20--env\x20prod','config/ssh.json','maka\x20aws:set-host\x20--env\x20dev','env','appName','(((.+)+)+)+$','toString','exit','2242688aPgJkL','public','28LjcKTv','parse','inherit','readFileSync','publicIp','maka\x20aws\x20set-host','\x20IP\x20to\x20','\x0aSaved\x20host\x20','26696184LLtCaf','host','isFile','private','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','3736020LpPpvm','success','getAppConfigPath','search','fsi','chooseInstance','join','template','constructor'];a15c=function(){return p;};return a15c();}
1
+ const a15o=a15d;function a15c(){const q=['create','publicIp','host','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','maka\x20aws:sth\x20--env\x20prod','378XRAAqp','getMakaProjectConfig','set-host','3710820YaLrWB','writeFileSync','success','12564NfPujH','env','stringify','parse','sep','exit','fsi','835080LUZNdS','error','public','getAppConfigPath','privateIp','ask','ssh.json','maka\x20aws\x20set-host','(((.+)+)+)+$','\x20IP\x20to\x20','chooseInstance','156402iaFwFj','config/ssh.json','utf8','12272LGOlcw','999740WfSFMs','\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','toString','1337VXdWfy','apply','inherit','private','2644784aKPWXK','join','sth','readFileSync','search','maka\x20aws:set-host\x20--env\x20dev','cat\x20','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','\x0aSaved\x20host\x20'];a15c=function(){return q;};return a15c();}(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x13d))/0x1+parseInt(l(0x14c))/0x2+parseInt(l(0x148))/0x3+-parseInt(l(0x153))/0x4+-parseInt(l(0x166))/0x5+-parseInt(l(0x163))/0x6*(parseInt(l(0x14f))/0x7)+parseInt(l(0x14b))/0x8*(parseInt(l(0x169))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x6c273));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x14e)]()[n(0x157)](n(0x145))[n(0x14e)]()['constructor'](a15a)[n(0x157)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x139;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[a15o(0x15e)]({'name':a15o(0x165),'aliases':[a15o(0x155)],'usage':a15o(0x144),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a15o(0x15b),'description':a15o(0x14d),'examples':[a15o(0x158),a15o(0x162)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x13c)][p(0x140)](b[p(0x16a)]),f=this['fsi'][p(0x164)](),g=await c[p(0x147)](),h=a15e[p(0x154)](d,p(0x143));!this[p(0x13c)]['isFile'](h)&&await this[p(0x13c)][p(0x15c)]({'srcPath':p(0x149),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x139)](a15f[p(0x156)](h,p(0x14a))),j=await Actions[p(0x142)](p(0x15a))||'public';if(j){if(j===p(0x13f)||j===p(0x152)){if(j===p(0x13f))i['host']=g?.[p(0x15f)];else j==='private'&&(i[p(0x160)]=g?.[p(0x141)]);}else throw p(0x161);}else i[p(0x160)]=g?.[p(0x141)];a15f[p(0x167)](a15e[p(0x154)](d,p(0x143)),JSON[p(0x16b)](i,null,0x2)),execSync(p(0x159)+a15e[p(0x154)](d,'ssh.json'),{'stdio':p(0x151)}),Log[p(0x168)](p(0x15d)+j+p(0x146)+d+a15e[p(0x13a)]+'ssh.json');}catch(k){k&&Log[p(0x13e)](k),process[p(0x13b)](0x0);}},a15g);
@@ -1 +1 @@
1
- const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x8d))/0x1+parseInt(f(0x9b))/0x2+-parseInt(f(0xa7))/0x3+parseInt(f(0xa0))/0x4+-parseInt(f(0x96))/0x5*(parseInt(f(0xa1))/0x6)+-parseInt(f(0xa5))/0x7*(parseInt(f(0xa3))/0x8)+-parseInt(f(0x9a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x3ccae));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x9f)]()[h(0x91)](h(0x97))[h(0x9f)]()[h(0x8f)](a16a)[h(0x91)](h(0x97));});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-0x8d;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[a16i(0xa8)]({'name':'terminate-instance','aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a16i(0xa6),'description':a16i(0x94),'examples':[a16i(0x9e),a16i(0x95)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x99)]();if(b?.[j(0x9d)]&&b?.[j(0x93)]==='running'){const c=await Actions[j(0x92)](j(0x90)+b[j(0x8e)]+j(0x98));c?a['ec2terminateInstance']({'instanceId':b[j(0x9d)]}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x8e)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0xa4)](j(0x9c));}catch(d){d&&Log[j(0xa4)](d),process['exit'](0x1);}},a16e);function a16c(){const k=['\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','maka\x20aws:ti','5aPFrvB','(((.+)+)+)+$','\x20Ready?','chooseInstance','801792xtbGiC','791456ZJEsXM','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','instanceId','maka\x20aws:terminate-instance','toString','1261764Qvpzcb','41952INAOPG','apply','232WBploj','error','19803bLLvZL','Terminate\x20an\x20EC2\x20instance','1488189tPFvuO','create','212021ghePOK','name','constructor','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','search','confirm','status'];a16c=function(){return k;};return a16c();}
1
+ const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x1fc))/0x1+parseInt(f(0x200))/0x2*(parseInt(f(0x203))/0x3)+parseInt(f(0x1f5))/0x4*(-parseInt(f(0x207))/0x5)+-parseInt(f(0x1f3))/0x6+-parseInt(f(0x20e))/0x7*(-parseInt(f(0x202))/0x8)+-parseInt(f(0x206))/0x9+parseInt(f(0x1f2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x2d73e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x20d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x1fa)]()[h(0x209)](h(0x1fe))[h(0x1fa)]()[h(0x204)](a16a)[h(0x209)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';function a16c(){const k=['You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','running','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:terminate-instance','toString','confirm','242035eSZsqt','name','(((.+)+)+)+$','error','22scKgWp','chooseInstance','1034312rMNLRX','92238xhtPSv','constructor','status','946431hshVTO','417170dFNrIk','create','search','exit','ec2terminateInstance','\x20Ready?','apply','7Ejplme','7310760pLdVDs','1988802NXPKGD','instanceId','16kkSGfZ'];a16c=function(){return k;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16i(0x208)]({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0x1f9),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','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':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x201)]();if(b?.[j(0x1f4)]&&b?.[j(0x205)]===j(0x1f7)){const c=await Actions[j(0x1fb)](j(0x1f6)+b[j(0x1fd)]+j(0x20c));c?a[j(0x20b)]({'instanceId':b[j(0x1f4)]}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x1fd)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x1ff)](j(0x1f8));}catch(d){d&&Log[j(0x1ff)](d),process[j(0x20a)](0x1);}},a16e);
@@ -1 +1 @@
1
- function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0xc6;var f=c[d];return f;},a17d(a,b);}(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0xcb))/0x1+-parseInt(f(0xd2))/0x2+-parseInt(f(0xc9))/0x3+-parseInt(f(0xc6))/0x4*(-parseInt(f(0xc7))/0x5)+-parseInt(f(0xca))/0x6+-parseInt(f(0xcd))/0x7*(parseInt(f(0xd0))/0x8)+parseInt(f(0xd1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x4b18a));var a17b=(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;};}()),a17a=a17b(this,function(){var g=a17d;return a17a[g(0xce)]()[g(0xcf)](g(0xcc))[g(0xce)]()[g(0xc8)](a17a)[g(0xcf)]('(((.+)+)+)+$');});function a17c(){var h=['toString','search','16kNWmco','10313631QuzzAl','57136oQFrEm','51808hOjUhl','115SjIbhn','constructor','310368FtKgAF','940644yooUOj','474393oSVMLu','(((.+)+)+)+$','1305745GxtMGF'];a17c=function(){return h;};return a17c();}a17a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x124))/0x1+-parseInt(f(0x11b))/0x2*(-parseInt(f(0x120))/0x3)+-parseInt(f(0x119))/0x4*(-parseInt(f(0x11a))/0x5)+-parseInt(f(0x118))/0x6+-parseInt(f(0x11f))/0x7*(parseInt(f(0x11c))/0x8)+parseInt(f(0x123))/0x9+parseInt(f(0x117))/0xa*(parseInt(f(0x11e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x4bea6));function a17c(){var i=['4595NDEQIs','22YqiLNn','1264scaSUU','toString','99715ZgkOBr','23583PFaMmU','11307UlTSSz','(((.+)+)+)+$','apply','3218643XeHGut','227992LdMgMo','search','constructor','820kimbyg','1976466qUAWKd','1124iKWAPY'];a17c=function(){return i;};return a17c();}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x11d)]()['search'](h(0x121))[h(0x11d)]()[h(0x116)](a17a)[h(0x125)](h(0x121));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x116;var f=c[d];return f;},a17d(a,b);}a17a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a18p=a18d;function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xa1;let f=c[d];return f;},a18d(a,b);}(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0xa9))/0x1+-parseInt(n(0xb6))/0x2+parseInt(n(0xa5))/0x3*(-parseInt(n(0xae))/0x4)+-parseInt(n(0xb1))/0x5*(parseInt(n(0xa1))/0x6)+-parseInt(n(0xb0))/0x7+parseInt(n(0xa6))/0x8*(parseInt(n(0xc1))/0x9)+-parseInt(n(0xc3))/0xa*(-parseInt(n(0xa4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x5a883));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0xbf)]()[o(0xa8)]('(((.+)+)+)+$')['toString']()[o(0xaa)](a18a)['search']('(((.+)+)+)+$');});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';function a18c(){const r=['8KizqsI','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','3086951eDkPHG','3701985TlYOGj','existsSync','maka\x20build','pathFromProject','concat','868988AqbaDc','autoupdate','force','--release','\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','build','argv','confirm','slice','toString','This\x20project\x27s\x20meteor\x20version\x20(','5637726ieVDov','getProjectMeteorVersion','3482790NkfOqf','invokeMeteorCommand','6hZrkNa','app.tar.gz','forEach','55RWhNOl','426549kSxZea','8XglLiD','checkMeteorPackage','search','96740nWntnA','constructor',').\x20Update?','fsi','create'];a18c=function(){return r;};return a18c();}const BuildCommand=Command[a18p(0xad)]({'name':'build','usage':a18p(0xb3),'validOpts':[a18p(0xb8)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a18p(0xba),'examples':[a18p(0xb3)]},async function(a,b){const q=a18p;try{await this[q(0xac)][q(0xa7)](q(0xb7),{'shouldInstall':!![]});const c=b[q(0xb8)];if(!c){const g=this[q(0xac)]['getGlobalMeteorVersion'](),h=this[q(0xac)][q(0xc2)](),i=a18g['gt'](g,h);if(i){const j=await Actions[q(0xbd)](q(0xc0)+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+q(0xab));j&&this[q(0xac)][q(0xc4)]('update',[q(0xb9),g]);}}const d=[this[q(0xac)][q(0xb4)]({'pathParts':[q(0xbb)]})][q(0xb5)](process[q(0xbc)][q(0xbe)](0x3)),f=a18e['join'](this[q(0xac)][q(0xb4)]({}),q(0xbb),q(0xa2));if(a18f[q(0xb2)](f)){const k=c??await Actions['confirm'](q(0xaf));if(!k)throw Log['error']('Aborted.');}d[q(0xa3)]((l,m)=>{l==='--force'&&d['splice'](m,0x2);}),this[q(0xac)][q(0xc4)](q(0xbb),d);}catch(l){console['error'](l),process['exit'](0x0);}});export default BuildCommand;
1
+ function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a18d(a,b);}const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x1d9))/0x1+parseInt(n(0x1db))/0x2+parseInt(n(0x1e2))/0x3+parseInt(n(0x1e0))/0x4+parseInt(n(0x1c7))/0x5*(parseInt(n(0x1e8))/0x6)+-parseInt(n(0x1d8))/0x7*(-parseInt(n(0x1c4))/0x8)+-parseInt(n(0x1cf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x55c9c));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a['toString']()[o(0x1e7)](o(0x1d6))[o(0x1e1)]()[o(0x1d0)](a18a)['search'](o(0x1d6));});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[a18p(0x1e5)]({'name':a18p(0x1d5),'usage':a18p(0x1da),'validOpts':[a18p(0x1d1)],'aliases':['b'],'shortDesc':a18p(0x1df),'mustBeInMakaProject':!![],'description':a18p(0x1ce),'examples':[a18p(0x1da)]},async function(a,b){const q=a18p;try{await this[q(0x1cb)][q(0x1d3)](q(0x1de),{'shouldInstall':!![]});const c=b[q(0x1d1)];if(!c){const g=this['fsi']['getGlobalMeteorVersion'](),h=this[q(0x1cb)][q(0x1e9)](),i=a18g['gt'](g,h);if(i){const j=await Actions['confirm']('This\x20project\x27s\x20meteor\x20version\x20('+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+').\x20Update?');j&&this[q(0x1cb)][q(0x1d2)](q(0x1dd),['--release',g]);}}const d=[this['fsi'][q(0x1c6)]({'pathParts':['build']})][q(0x1e6)](process['argv'][q(0x1ca)](0x3)),f=a18e['join'](this[q(0x1cb)]['pathFromProject']({}),q(0x1d5),q(0x1c8));if(a18f[q(0x1c9)](f)){const k=c??await Actions[q(0x1d4)](q(0x1d7));if(!k)throw Log[q(0x1c5)](q(0x1cc));}d[q(0x1cd)]((l,m)=>{const r=q;l===r(0x1e4)&&d[r(0x1dc)](m,0x2);}),this[q(0x1cb)][q(0x1d2)](q(0x1d5),d);}catch(l){console[q(0x1c5)](l),process[q(0x1e3)](0x0);}});export default BuildCommand;function a18c(){const s=['exit','--force','create','concat','search','42yWuFTN','getProjectMeteorVersion','8mJcBuc','error','pathFromProject','361920iHhYEM','app.tar.gz','existsSync','slice','fsi','Aborted.','forEach','\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','10187478qQFZEt','constructor','force','invokeMeteorCommand','checkMeteorPackage','confirm','build','(((.+)+)+)+$','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1744960AWQEzw','86311fcSRDI','maka\x20build','1173336LItDTF','splice','update','autoupdate','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','64688AlPdJJ','toString','632499KOdGZZ'];a18c=function(){return s;};return a18c();}
@@ -1 +1 @@
1
- const a19F=a19d;(function(a,b){const D=a19d,c=a();while(!![]){try{const d=-parseInt(D(0xf5))/0x1*(parseInt(D(0xcb))/0x2)+parseInt(D(0xde))/0x3+parseInt(D(0xb9))/0x4+parseInt(D(0xce))/0x5*(-parseInt(D(0xf2))/0x6)+-parseInt(D(0xfb))/0x7+parseInt(D(0xba))/0x8+-parseInt(D(0xdd))/0x9*(-parseInt(D(0xc0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xda7d1));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const E=a19d;return a19a['toString']()['search'](E(0xd7))[E(0xd2)]()[E(0xe6)](a19a)[E(0x107)](E(0xd7));});a19a();import a19e from'./build.js';import a19f from'path';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xb7;let f=c[d];return f;},a19d(a,b);}import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a19c(){const H=['fsi','app.tar.gz','pathFromProject','create','os.linux.x86_64','ignore','maka\x20build:docker','build','search',':latest','cert.pem','://','--progress=plain\x20--no-cache','serverName','.meteor','findAppDirectory','join','force','5431840JJgrWz','6095160ePKaZu','config','docker\x20build\x20--build-arg\x20NODE_VERSION=','https','[*]\x20maka\x20','docker','10DvpZFz','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','\x20npm\x20install\x20--save','length','inherit','config/pm2.config.js','Try\x20\x27maka\x20run:docker\x27','\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','config/docker-compose.yaml','findProjectDirectory','template','8GZxkce','push','Mobile\x20server\x20port:\x20','1555395rTOTIA','app','processAndRunGenerator','appName','toString','getGlobalConfig','exit','getMakaProjectConfig','win32','(((.+)+)+)+$','http','--server=','ask','_keys','isDirectory','10338165BNFuWl','3337767RuRzbx','meteor','docker-compose.yaml','dockerfile','N/A','maka\x20build:docker\x20--tag','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','Dockerfile','constructor','debug','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','--architecture','getAppConfigPath','notice','maka\x20build:docker\x20--debug','mkdirSync','meteor.bat','-t\x20','copyFileSync','serverPort','30EmoQss','platform','Docker\x20Context\x20Path:\x20','342928GtbdeL','Stored\x20server\x20config\x20to\x20','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','pm2.config.js','platforms','cert','3913651SlZfGJ','confirm','tag','443'];a19c=function(){return H;};return a19c();}import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a19F(0x102)]({'name':a19F(0xbf),'aliases':['d'],'usage':a19F(0x105),'validOpts':[a19F(0xb8),a19F(0xfd),'debug'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':a19F(0xc7),'mustBeInMakaProject':!![],'examples':[a19F(0xe3),a19F(0xec)]},async function(a,b){const G=a19F;try{const c=await this[G(0xff)][G(0xd3)](),d=await this[G(0xff)][G(0xd5)](),f='14.21.3';f===G(0xe2)&&(Log['error']('Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).'),process[G(0xd4)](0x1));const g=process[G(0xf3)]===G(0xd6)?G(0xee):G(0xdf),h=this[G(0xff)]['pathFromProject']({}),i=a19f[G(0xb7)](h,G(0xe5));!this['fsi']['isFile'](i)&&await a19h[G(0xd0)](G(0xe1),[G(0xe1)],{'cwd':h,'config':d});const j=this[G(0xff)]['checkConfigExists'](G(0xbf));if(!j){await a19h['processAndRunGenerator'](G(0xbb),[G(0xbf)],{'cwd':h,'config':d,'isDocker':!![]});const s=this[G(0xff)][G(0xea)](G(0xbf)),t=a19f[G(0xb7)](s,G(0xf8));await this[G(0xff)][G(0xca)]({'srcPath':G(0xc5),'destPath':t,'context':{'app':d[G(0xd1)],'isDocker':!![]},'config':d});const u=a19f[G(0xb7)](s,G(0xe0));await this['fsi'][G(0xca)]({'srcPath':G(0xc8),'destPath':u,'context':{'app':d[G(0xd1)],'appFileCase':paramCase(d[G(0xd1)])},'config':d});}if(this['fsi']['isFile'](c[G(0xfa)])){const v=this[G(0xff)][G(0xdc)](a19f[G(0xb7)](G(0xbb),G(0xbf),G(0xdb)));!v&&a19g[G(0xed)](a19f[G(0xb7)](G(0xbb),G(0xbf),G(0xdb))),a19g[G(0xf0)](c['cert'],a19f[G(0xb7)](h,G(0xbb),G(0xbf),G(0xdb),G(0x109)));}const k=['build',a19f['join'](this[G(0xff)][G(0xc9)](),G(0x106)),G(0xe9),G(0x103)],l=this[G(0xff)]['readFileLines'](a19f['join'](this[G(0xff)]['pathFromProject']({}),G(0xcf),G(0x10d),G(0xf9))),m=l['length']>0x2?!![]:![];if(m){const w=d[G(0x10c)]?d[G(0x10c)]:await Actions[G(0xda)](G(0xe4)),x=d[G(0xf1)]?d[G(0xf1)]:await Actions['ask'](G(0xcd));if(w[G(0xc3)]==0x0||x[G(0xc3)]==0x0)throw G(0xc1);const y=x==G(0xfe)?G(0xbd):G(0xd8);k[G(0xcc)](G(0xd9)+y+G(0x10a)+w+':'+x);if(!d[G(0x10c)]&&!d[G(0xf1)]){const z=await Actions[G(0xfc)](G(0xf7));z&&(this[G(0xff)]['setProjectConfig'](G(0x10c),w),this[G(0xff)]['setProjectConfig'](G(0xf1),x),Log['notice'](G(0xf6)+a19f[G(0xb7)]('.maka','config.json')));}}const n=a19f[G(0xb7)](this[G(0xff)][G(0x101)]({}),G(0x106),G(0x100));if(a19g['existsSync'](n)){const A=await Actions[G(0xfc)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),B=A;B&&(execSync(g+G(0xc2),{'cwd':this[G(0xff)][G(0x10e)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[G(0xb7)]('\x20'),{'cwd':this[G(0xff)]['findAppDirectory'](),'stdio':G(0xc4)}));}else execSync(g+G(0xc2),{'cwd':this[G(0xff)]['findAppDirectory'](),'stdio':G(0x104)}),Log[G(0xeb)](G(0xbe)+k[G(0xb7)]('\x20')),execSync(g+'\x20'+k[G(0xb7)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':G(0xc4)});const o=this[G(0xff)][G(0x101)]({});let p=G(0xef)+paramCase(d[G(0xd1)])+G(0x108);b['tag']&&(p=G(0xef)+b[G(0xfd)]);Log['notice'](G(0xe8)+f),Log[G(0xeb)]('Tagging\x20Docker\x20Image:\x20'+p),Log['notice'](G(0xf4)+o);const q=b[G(0xe7)]?G(0x10b):'',r=G(0xbc)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':G(0xc4)}),Log[G(0xeb)](G(0xc6));}catch(C){console['error'](C),process[G(0xd4)](0x0);}},a19e);
1
+ function a19c(){const H=['667666JqNbsQ','fsi','docker\x20build\x20--build-arg\x20NODE_VERSION=','push','6EoYQAv','processAndRunGenerator','template','(((.+)+)+)+$','debug','copyFileSync','os.linux.x86_64','serverPort','Try\x20\x27maka\x20run:docker\x27','build','\x20npm\x20install\x20--save','Dockerfile','maka\x20build:docker\x20--debug','14.21.3','setProjectConfig','_keys','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','mkdirSync','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','notice','config.json','.meteor','4254816xTsWqP','getAppConfigPath','pathFromProject','docker','8947841CzjFlT','2844ZtDuBX','length','--architecture','join','-t\x20','997648KlSLYv','tag','toString','443','dockerfile','serverName','maka\x20build:docker','create','14530842MPunuZ','://','N/A','--progress=plain\x20--no-cache','readFileLines','https','exit','config','.maka','platform','constructor','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','config/docker-compose.yaml','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','ignore','cert.pem','3499989jdaMpt','appName','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','getGlobalConfig','win32','isDirectory','inherit','findAppDirectory','maka\x20build:docker\x20--tag','1695IpjikH','search','confirm','isFile','meteor','force'];a19c=function(){return H;};return a19c();}const a19F=a19d;function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a19d(a,b);}(function(a,b){const D=a19d,c=a();while(!![]){try{const d=parseInt(D(0x1da))/0x1+-parseInt(D(0x1b3))/0x2+parseInt(D(0x1cb))/0x3+parseInt(D(0x1ae))/0x4*(parseInt(D(0x1d4))/0x5)+-parseInt(D(0x1de))/0x6*(-parseInt(D(0x1ad))/0x7)+-parseInt(D(0x1a9))/0x8+-parseInt(D(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xacf37));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const E=a19d;return a19a[E(0x1b5)]()[E(0x1d5)](E(0x1e1))['toString']()[E(0x1c5)](a19a)['search'](E(0x1e1));});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a19F(0x1ba)]({'name':a19F(0x1ac),'aliases':['d'],'usage':a19F(0x1b9),'validOpts':[a19F(0x1d9),a19F(0x1b4),a19F(0x1e2)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a19F(0x1d3),a19F(0x1ea)]},async function(a,b){const G=a19F;try{const c=await this[G(0x1db)][G(0x1ce)](),d=await this[G(0x1db)]['getMakaProjectConfig'](),f=G(0x1eb);f===G(0x1bd)&&(Log['error'](G(0x1c6)),process[G(0x1c1)](0x1));const g=process[G(0x1c4)]===G(0x1cf)?'meteor.bat':G(0x1d8),h=this[G(0x1db)][G(0x1ab)]({}),i=a19f[G(0x1b1)](h,G(0x1e9));!this['fsi']['isFile'](i)&&await a19h[G(0x1df)](G(0x1b7),[G(0x1b7)],{'cwd':h,'config':d});const j=this[G(0x1db)]['checkConfigExists']('docker');if(!j){await a19h[G(0x1df)](G(0x1c2),['docker'],{'cwd':h,'config':d,'isDocker':!![]});const s=this[G(0x1db)][G(0x1aa)](G(0x1ac)),t=a19f[G(0x1b1)](s,'pm2.config.js');await this['fsi'][G(0x1e0)]({'srcPath':'config/pm2.config.js','destPath':t,'context':{'app':d[G(0x1cc)],'isDocker':!![]},'config':d});const u=a19f[G(0x1b1)](s,'docker-compose.yaml');await this[G(0x1db)][G(0x1e0)]({'srcPath':G(0x1c7),'destPath':u,'context':{'app':d[G(0x1cc)],'appFileCase':paramCase(d[G(0x1cc)])},'config':d});}if(this[G(0x1db)][G(0x1d7)](c['cert'])){const v=this[G(0x1db)][G(0x1d0)](a19f[G(0x1b1)]('config','docker','_keys'));!v&&a19g[G(0x1a4)](a19f[G(0x1b1)](G(0x1c2),'docker','_keys')),a19g[G(0x1e3)](c['cert'],a19f[G(0x1b1)](h,G(0x1c2),G(0x1ac),G(0x1a2),G(0x1ca)));}const k=[G(0x1e7),a19f[G(0x1b1)](this[G(0x1db)]['findProjectDirectory'](),G(0x1e7)),G(0x1b0),G(0x1e4)],l=this[G(0x1db)][G(0x1bf)](a19f['join'](this[G(0x1db)][G(0x1ab)]({}),'app',G(0x1a8),'platforms')),m=l[G(0x1af)]>0x2?!![]:![];if(m){const w=d[G(0x1b8)]?d[G(0x1b8)]:await Actions['ask'](G(0x1a3)),x=d['serverPort']?d['serverPort']:await Actions['ask']('Mobile\x20server\x20port:\x20');if(w[G(0x1af)]==0x0||x['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const y=x==G(0x1b6)?G(0x1c0):'http';k[G(0x1dd)]('--server='+y+G(0x1bc)+w+':'+x);if(!d['serverName']&&!d[G(0x1e5)]){const z=await Actions['confirm'](G(0x1c8));z&&(this[G(0x1db)][G(0x1ec)]('serverName',w),this['fsi'][G(0x1ec)](G(0x1e5),x),Log['notice']('Stored\x20server\x20config\x20to\x20'+a19f[G(0x1b1)](G(0x1c3),G(0x1a7))));}}const n=a19f[G(0x1b1)](this[G(0x1db)]['pathFromProject']({}),G(0x1e7),'app.tar.gz');if(a19g['existsSync'](n)){const A=await Actions[G(0x1d6)](G(0x1cd)),B=A;B&&(execSync(g+G(0x1e8),{'cwd':this[G(0x1db)][G(0x1d2)](),'stdio':G(0x1c9)}),execSync(g+'\x20\x20'+k[G(0x1b1)]('\x20'),{'cwd':this['fsi'][G(0x1d2)](),'stdio':G(0x1d1)}));}else execSync(g+G(0x1e8),{'cwd':this[G(0x1db)][G(0x1d2)](),'stdio':G(0x1c9)}),Log[G(0x1a6)]('[*]\x20maka\x20'+k['join']('\x20')),execSync(g+'\x20'+k[G(0x1b1)]('\x20'),{'cwd':this[G(0x1db)][G(0x1d2)](),'stdio':G(0x1d1)});const o=this['fsi'][G(0x1ab)]({});let p=G(0x1b2)+paramCase(d[G(0x1cc)])+':latest';b[G(0x1b4)]&&(p=G(0x1b2)+b[G(0x1b4)]);Log[G(0x1a6)](G(0x1a5)+f),Log[G(0x1a6)]('Tagging\x20Docker\x20Image:\x20'+p),Log[G(0x1a6)]('Docker\x20Context\x20Path:\x20'+o);const q=b['debug']?G(0x1be):'',r=G(0x1dc)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':G(0x1d1)}),Log[G(0x1a6)](G(0x1e6));}catch(C){console['error'](C),process[G(0x1c1)](0x0);}},a19e);