@maka/maka-cli 4.6.8 → 4.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/https/progress.class.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
3
|
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d
|
|
1
|
+
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xcf;let f=c[d];return f;},a0d(a,b);}const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=parseInt(p(0x106))/0x1+-parseInt(p(0xfc))/0x2*(parseInt(p(0xf4))/0x3)+-parseInt(p(0x11b))/0x4+parseInt(p(0xf0))/0x5+-parseInt(p(0xdd))/0x6+-parseInt(p(0xfa))/0x7+parseInt(p(0x110))/0x8*(parseInt(p(0x115))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6b30f));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a['toString']()[r(0xf7)](r(0xf2))['toString']()['constructor'](a0a)[r(0xf7)](r(0xf2));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const E=['assign','1319517UnaZYo','validateMakaProject','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','search','find','findCommand','4197361tmOjwn','error','2Mxxbpq','DARK','_handler','roles','help','_commands','proCommands','mustHaveMeteorInstalled','mustBeInMakaProject','disableAuthCheck','339695SLZkpu','Command.create\x20requires\x20a\x20handler\x20function!','exit','toString','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','invoke','deploy','Command\x20not\x20found','validateParams','addCommand','2324888tbeFYn','push','setColorMode','singleLicense','maxArgLength','45aLsToA','To\x20use\x20these\x20pro\x20flags,\x20\x22','keys','LIGHT','There\x20is\x20no\x20Meteor\x20application\x20here','call','2314284oOyuIx','minOptsLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMakaSubscription','shortDesc','maxOptsLength','Alias','getGlobalConfig','length','includes','options','sort','bind','Description','name','run','create','match','function','apply','header','tableList','validateMeteorInstall','Too\x20many\x20options','light','1551960ClhpcX','getPro','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','proFlags','number','usage','Command\x20requires\x20a\x20name','minArgLength','generate','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','fsi','filter','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','bright','To\x20use\x20this\x20command,\x20\x22','splice','parent','aliases','Command.create\x20requires\x20some\x20options!','2614990DAFrfU','forEach','(((.+)+)+)+$'];a0c=function(){return E;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0s(0x125)];[a0s(0x101)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x11d));if(!a['name'])throw new Error(t(0xe3));if(typeof b!==t(0xd6))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[t(0x125)]=Object[t(0xf3)]({},a),this['name']=this[t(0x125)]['name'],this[t(0x101)]=[],this[t(0xfe)]=b[t(0xd0)](this);}static[a0s(0xd4)](a,b,c){const u=a0s;if(!a)throw new Error(u(0xef));if(typeof b!==u(0xd6))throw new Error(u(0x107));const d=new Command(a,b);return c=c||a0f,Object[u(0xf3)](d,{'parent':c?.[u(0x125)]?.[u(0xd2)]}),c[u(0x10f)](d),d;}[a0s(0x10f)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][v(0x111)](a);}async[a0s(0x11e)](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0xd2)]||a[0x0],e=c?.[w(0xed)]||'',f=c?.[w(0x125)];if(f[w(0x105)])return;const g=a[0x0],h=Object[w(0x117)](b),i=await this[w(0xe7)][w(0xde)]();!i&&(Log['error'](w(0x10a)),process['exit'](0x1));const j=i?.[w(0x102)][w(0x124)](d)||i?.['proCommands'][w(0x124)](e),k=i?.[w(0xff)][w(0x124)](w(0x113))||i?.['roles'][w(0x124)]('domainLicense'),l=!k;if(j&&l)throw w(0xeb)+a[0x0]+w(0xf6);if(h[w(0x123)]>0x0){const m=i?.[w(0xe0)][w(0xe8)](n=>h[w(0x124)](n));if(m&&m['length']>0x0&&l)throw w(0x116)+m?.['join'](',\x20')+w(0xf6);}if(g===w(0x10c)){const n=await this['fsi'][w(0xde)](),o=n?.[w(0x102)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0xeb)+a[0x0]+w(0xf6);}}}async[a0s(0xd3)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0xe7)][x(0x122)](),d=c['pallet']===x(0xdc)?ColorMode[x(0x118)]:ColorMode[x(0xfd)];Log[x(0x112)](d),await this[x(0x11e)](a,b);}catch(f){Log[x(0xfb)](f),process[x(0x108)](0x0);}await this[x(0x10b)](a,b);}catch(g){process['exit'](0x1);}}async[a0s(0x10b)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x125)];try{if(this[y(0x125)][y(0xd2)]!==y(0xe5)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x123)]===0x0)&&this[y(0x101)][y(0x123)]>=0x0,g=b[y(0x100)]||b['h'];if(f&&g){if(this[y(0x101)][y(0x123)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[y(0x125)][y(0x104)]){const h=this[y(0xf5)]();if(!h)throw new MustBeInProjectError();}if(this[y(0x125)][y(0x103)]){const i=this[y(0xda)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][y(0xe4)]==='number'){if(a[y(0x123)]<this['options'][y(0xe4)]){Log[y(0xfb)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0x125)][y(0x114)]===y(0xe1)){if(a[y(0x123)]>=this[y(0x125)][y(0x114)]){Log[y(0xfb)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x125)][y(0x11c)]===y(0xe1)){if(Object[y(0x117)](b)[y(0x123)]<this['options'][y(0x11c)]){Log[y(0xfb)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[y(0x125)][y(0x120)]===y(0xe1)){if(Object[y(0x117)](b)['length']>=this[y(0x125)]['maxOptsLength']){Log[y(0xfb)](y(0xdb));throw new UsageError();}}}}b=await this[y(0x10e)](a,b,this[y(0x125)]),_prevCmd=a[0x0];}await this[y(0xfe)][y(0x11a)](this,a,b);}catch(j){Log[y(0xe2)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[y(0xd9)](this[y(0x101)]),Log[y(0xd8)](y(0xdf));else{if(j instanceof MustBeInProjectError)Log[y(0xfb)](y(0xe9));else{if(j instanceof NoMeteorFoundError)Log[y(0xfb)](y(0xe6)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(j instanceof NoMeteorAppFoundError)Log[y(0xfb)](y(0x119));else throw j;}}}process['exit'](0x1);}}[a0s(0xd9)](a){const z=a0s,b=new a0e({});b['push'](['Name',z(0x121),z(0xd1)]),a[z(0xcf)]()[z(0xf1)](c=>{const A=z;c[A(0xd2)]!=='murder'&&c[A(0xd2)]!=='play'&&b[A(0x111)]([c['name'],c[A(0xee)](),c[A(0x11f)]()]);}),Log[z(0xea)](b[z(0x109)]());}[a0s(0xf9)](a){const B=a0s;return this[B(0x101)][B(0xf8)](b=>b[B(0xd5)](a));}['findSubCommand'](a){const C=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[C(0xf9)](a);else return;}async['runSubCommand'](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[D(0xec)](0x0,0x0,f);const g=this[D(0xf9)](a);if(g)await g[D(0xd3)](b,c);else throw D(0x10d);}catch(h){throw Log['error'](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x1f6))/0x1+parseInt(f(0x1ed))/0x2+parseInt(f(0x1ef))/0x3+-parseInt(f(0x1f2))/0x4+parseInt(f(0x1f8))/0x5*(parseInt(f(0x1f4))/0x6)+-parseInt(f(0x1f1))/0x7*(-parseInt(f(0x1ee))/0x8)+parseInt(f(0x1f0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8bf50));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f3)]()[h(0x1f7)]('(((.+)+)+)+$')['toString']()['constructor'](a1a)[h(0x1f7)](h(0x1f5));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1c(){var i=['196DnQttS','2858240CWtOaC','toString','18ueHzFj','(((.+)+)+)+$','466396prXVrq','search','1187205MecgJu','apply','9184NXMUYk','72040IBjkRN','672582KtWleg','5048739kQjvYJ'];a1c=function(){return i;};return a1c();}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1ed;var f=c[d];return f;},a1d(a,b);}import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x90))/0x1*(parseInt(h(0x74))/0x2)+parseInt(h(0x8c))/0x3+parseInt(h(0x89))/0x4*(parseInt(h(0x6f))/0x5)+-parseInt(h(0x6c))/0x6+parseInt(h(0x77))/0x7*(parseInt(h(0x75))/0x8)+parseInt(h(0x92))/0x9*(-parseInt(h(0x83))/0xa)+parseInt(h(0x82))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x2fc0a));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(0x86)]()[i(0x8d)](i(0x6e))['toString']()[i(0x67)](a2a)[i(0x8d)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2c(){const n=['1054485RqdPYp','fsi','choices','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','exit','13448skYvkt','74184tVItSr','text','182RcCvmB','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','You:\x20','cert','cacert','ChatGPT\x20style\x20AI\x20interface','notice','openai','stdout','askGPT','Using\x20OpenAI\x20Key\x20','74382BBxHMI','78690jVzdWQ','question','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','toString','toLowerCase','error','4AAwHnU','log','parse','644466uorPNj','search','message','getGlobalConfig','43ycIJBw','GPT:\x20','207piooYI','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','createInterface','constructor','data','create','openapikey','close','47196igBRiU','isFile','(((.+)+)+)+$'];a2c=function(){return n;};return a2c();}import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x66;let f=c[d];return f;},a2d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x66)]({'input':process['stdin'],'output':process[j(0x7f)]});c[j(0x84)](j(0x79),async d=>{const k=j;if(d[k(0x87)]()===k(0x73)){c[k(0x6b)]();return;}try{const e=await HTTPS[k(0x80)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x8b)](e[k(0x68)]);if(f['error'])throw new Error(f['error'][k(0x8e)]);console[k(0x8a)](k(0x91)+f?.[k(0x71)][0x0]?.[k(0x76)]['trim']());}catch(g){Log[k(0x88)](g),process[k(0x73)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x69)]({'name':'ai','description':a2l(0x7c),'validOpts':['cacert',a2l(0x6a)],'shortDesc':a2l(0x7c)},async function(a,b){const m=a2l;try{let c='';b[m(0x7b)]&&(this[m(0x70)]['isFile'](b[m(0x7b)])?(c=b[m(0x7b)],Log[m(0x7d)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0x88)](m(0x93)+c));const d=await this[m(0x70)][m(0x8f)]();if(d[m(0x7a)]){if(this[m(0x70)][m(0x6d)](d[m(0x7a)]))c=d['cert'];else throw Log[m(0x88)](m(0x72)+c);}let f='';if(b[m(0x6a)])f=b[m(0x6a)],Log[m(0x7d)](m(0x81)+f);else{if(d[m(0x7e)])f=d[m(0x7e)];else throw Log[m(0x88)](m(0x85));}console[m(0x8a)](m(0x78)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x88)](g),process[m(0x73)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x132))/0x1*(-parseInt(f(0x12f))/0x2)+-parseInt(f(0x136))/0x3+-parseInt(f(0x139))/0x4+parseInt(f(0x130))/0x5+parseInt(f(0x131))/0x6+parseInt(f(0x138))/0x7+-parseInt(f(0x12e))/0x8*(parseInt(f(0x134))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xc2c1e));function a3c(){var i=['8905088ObiAoL','652TswIhb','2325195Oorjky','7882986PPOCPk','1979KxyntG','toString','18hgKwmt','(((.+)+)+)+$','1889397mvmqPa','apply','9298100oRFsSd','394108PTBAgO','constructor'];a3c=function(){return i;};return a3c();}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x133)]()['search'](h(0x135))[h(0x133)]()[h(0x12d)](a3a)['search'](h(0x135));});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 a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x12d;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x19b))/0x1*(parseInt(f(0x18d))/0x2)+parseInt(f(0x19a))/0x3+parseInt(f(0x19e))/0x4+parseInt(f(0x199))/0x5*(-parseInt(f(0x191))/0x6)+parseInt(f(0x19d))/0x7+parseInt(f(0x18a))/0x8+-parseInt(f(0x18c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x21ba4));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x18e)]()[h(0x194)]('(((.+)+)+)+$')['toString']()['constructor'](a4a)[h(0x194)](h(0x190));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';function a4c(){const k=['(((.+)+)+)+$','36MieOmB','aws','create','search','Sub\x20Command\x20not\x20found','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','findSubCommand','error','191620VyAcHJ','306753xkYeWP','12cOAGcm','apply','1631357mFCgkl','494160spNpli','maka\x20aws:<sub-command>','1178912CgoNct','\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','3611718IuknlE','27198aZHpkh','toString','runSubCommand'];a4c=function(){return k;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x189;let f=c[d];return f;},a4d(a,b);}const AWSCommand=Command[a4i(0x193)]({'name':a4i(0x192),'usage':a4i(0x189),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x196),'description':a4i(0x18b)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x197)](c);if(d)this[j(0x18f)](c,a,b);else{Log[j(0x198)](j(0x195));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-
|
|
1
|
+
const a5l=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xb4;let f=c[d];return f;},a5d(a,b);}function a5c(){const n=['799556oevoyN','maka\x20aws:create-hosted-zone\x20--domain=example.com','628731pDCLer','12JwtPDo','392936rgppgU','exit','constructor','Set\x20hosted\x20zone\x20to\x20an\x20instance?','chz','create','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','create-hosted-zone','185096KiXUdz','9zAaLNL','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','domain','1666225UeCmEY','maka\x20aws:chz\x20--domain=example.com','Instance\x20not\x20found','publicIp','(((.+)+)+)+$','610165KtSDdZ','apply','route53CreateHostedZone','650PfcFxd','77YTtmLA','toString','search','error','79614vPrCoO'];a5c=function(){return n;};return a5c();}(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xb9))/0x1+-parseInt(i(0xb7))/0x2+-parseInt(i(0xc4))/0x3*(-parseInt(i(0xc3))/0x4)+-parseInt(i(0xcc))/0x5*(-parseInt(i(0xba))/0x6)+-parseInt(i(0xd0))/0x7*(-parseInt(i(0xbb))/0x8)+parseInt(i(0xb6))/0x9*(parseInt(i(0xcf))/0xa)+-parseInt(i(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x4dae5));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0xb4)](k(0xcb))[k(0xd1)]()[k(0xbd)](a5a)[k(0xb4)](k(0xcb));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5l(0xc0)]({'name':a5l(0xc2),'aliases':[a5l(0xbf)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5l(0xc6)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0xc1),'examples':[a5l(0xb8),a5l(0xc8)]},async function(a,b){const m=a5l;try{const c=b[m(0xc6)],d=new AWS();d[m(0xce)](c);const f=await Actions['confirm'](m(0xbe));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0xca)])throw Log[m(0xb5)](m(0xc5));d['linkEC2ToRoute53'](g['id'],g[m(0xca)],c);}else throw Log[m(0xb5)](m(0xc9));}}catch(h){console[m(0xb5)](h),process[m(0xbc)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x133;let f=c[d];return f;},a6d(a,b);}const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x13a))/0x1*(parseInt(ae(0x141))/0x2)+parseInt(ae(0x136))/0x3*(parseInt(ae(0x181))/0x4)+parseInt(ae(0x134))/0x5*(-parseInt(ae(0x14e))/0x6)+parseInt(ae(0x175))/0x7+parseInt(ae(0x148))/0x8*(-parseInt(ae(0x16e))/0x9)+parseInt(ae(0x18e))/0xa+parseInt(ae(0x16b))/0xb*(parseInt(ae(0x169))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x72cb5));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x158)]()['search'](ag(0x170))[ag(0x158)]()[ag(0x18b)](a6a)['search'](ag(0x170));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';function a6c(){const au=['aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','4777633raPaFa','maka\x20aws:create-instance\x20--env\x20dev','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20Count:\x20','amiId','user-data','\x20AZONE:\x20','Create\x20new\x20AWS\x20instance','error','getConfigFromShorthand','name','env','1384KGgGtF','Remove\x20the\x20keypair\x20','\x20:\x20','EC2\x20Name:\x20[','log','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','unlinkSync','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x20SG\x20NAME:\x20','constructor','Security\x20Group:\x20','Remove\x20the\x20security\x20group\x20','1107410LBCvUE','ec2describeKeys','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Setting\x20the\x20key-pair\x20to:\x20','notice','maka-cli','forEach','getProjectConfig','alias','User\x20Data:','\x20DESCRIPTION:\x20','\x20AMIID:\x20','sgId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','success','getTime','**\x20Available\x20AMIs\x20**','build\x20on\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','create-instance','30WGyaoJ','confirm','606JguCkr','ec2create','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getConfigPath','7649xgydvw','bright','ask','number','environment','\x20SGID:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','182hEZwBv','created-by','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','split','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','apply','sort','2277896hzlOUg','getSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ImageID:','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','757440sLWauM','createFile','join','deleteKeyPair','readFileSync','**\x20Available\x20key-pairs\x20**','22,80,443','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','toString','maka\x20aws:ci\x20--env\x20prod','Subnet:\x20','Setting\x20SG\x20ID\x20to:\x20','createKeyPair','date','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','maka\x20aws:create-instance','Web\x20App','ec2createSG','1:1','subnetId','fsi','push','No\x20instance\x20has\x20been\x20created.','Setting\x20Subnet\x20ID\x20to\x20','parse','275496Utcqkk','Instace\x20Type:\x20','781NkzKmz','desc','chooseVPC','18wmKnCP','\x20CIDR:\x20','(((.+)+)+)+$','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Key-Pair:\x20','ID:\x20'];a6c=function(){return au;};return a6c();}import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a6ah(0x133),'aliases':['ci'],'usage':a6ah(0x15f),'examples':[a6ah(0x176),a6ah(0x159)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x180)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0x17c),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a6ah;try{const c=this[ai(0x164)][ai(0x195)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x17e)](b[ai(0x180)]),i=this[ai(0x164)][ai(0x139)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x184)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x143),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x15c)]({'env':h});r=y,s=z,Log[ai(0x19c)](ai(0x191)+r);}else try{Log[ai(0x192)](ai(0x153));const A=r?r:k,B=await d[ai(0x18f)]({'suggestion':A}),C=await Actions[ai(0x13c)](ai(0x190))||'-1';if(parseInt(C)<0x0){Log[ai(0x17d)](ai(0x188)),Log[ai(0x192)](ai(0x166));return;}B?.[ai(0x194)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x17f)],Log[aj(0x19c)](aj(0x191)+r));});}catch(D){Log[ai(0x17d)](D);}l=await d[ai(0x16d)]();const t=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x16d)]():l;u=await Actions[ai(0x13c)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x189))||ai(0x154),G=F[ai(0x144)](',');await d[ai(0x161)]({'description':ai(0x160),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x149)](u);if(I===''){Log[ai(0x192)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x194)](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x173)+L['id']+ak(0x18a)+L['name']+ak(0x13f)+L[ak(0x19a)]):Log['bright']('ID:\x20'+L['id']+ak(0x18a)+L[ak(0x17f)]+ak(0x13f)+L[ak(0x19a)]);});const K=await Actions[ai(0x13c)](ai(0x19b)+H+']\x20')||H['toString']();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x19a)],Log[al(0x19c)](al(0x15b)+m+'\x0a'));});}else m=I,Log[ai(0x19c)](ai(0x15b)+m+'\x0a');if(m==='')throw Log[ai(0x17d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x192)](ai(0x19e));const N=execSync(ai(0x174)+M+ai(0x171))[ai(0x158)](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x196)]==='amazon'){const T=S['Desc'][am(0x144)](am(0x19f))[0x1];P[am(0x165)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x147)](function(S,T){const an=ai;return new Date(T[an(0x15d)])['getTime']()-new Date(S['date'])[an(0x19d)]();}),P[ai(0x194)](function(S,T){const ao=ai;Q[ao(0x165)]({'id':T,'amiId':S[ao(0x179)],'desc':S[ao(0x16c)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x185)](ap(0x173)+S['id']+ap(0x199)+S['amiId']+ap(0x198)+S['desc']);});const R=await Actions[ai(0x13c)](ai(0x155))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x179)],Log[aq(0x19c)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x183)+S[aq(0x16c)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x17d)](S);}try{Log[ai(0x192)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x156))['toString'](),U=JSON[ai(0x168)](T),V=[];U[ai(0x194)](function(X,Y){const ar=ai;V[ar(0x165)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x163)]});}),V['forEach'](function(X){const as=ai;console['log'](as(0x173)+X['id']+as(0x16f)+X['cidr']+as(0x17b)+X['az']+'\x20SUBNETID:\x20'+X[as(0x163)]);});const W=await Actions[ai(0x13c)](ai(0x177))||'0';V[ai(0x194)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x163)],Log[at(0x19c)](at(0x167)+p));});if(p==='')throw Log[ai(0x17d)](ai(0x1a0));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x13c)](ai(0x14d))||ai(0x162),Z=Y[ai(0x144)](':')[0x0],a0=Y[ai(0x144)](':')[0x1];typeof parseInt(Z)===ai(0x13d)&&typeof parseInt(a0)===ai(0x13d)&&Log[ai(0x19c)](ai(0x140)+Z+':'+a0);}catch(a1){Log[ai(0x17d)](a1);}try{const a2=await Actions[ai(0x13c)](ai(0x138))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x17d)](a3);}let x='';try{const a4=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ai(0x150)](i,ai(0x17a)),Log[ai(0x192)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x164)][ai(0x14f)]({'filePath':x,'data':''}),await Actions[ai(0x135)](ai(0x157)));}catch(a5){Log[ai(0x17d)](a5);}try{const a6=JSON['parse'](execSync(ai(0x14a)+p+ai(0x1a1))[ai(0x158)]())[0x0]['subnet'];Log[ai(0x192)](ai(0x14b)+n),Log['notice'](ai(0x178)+v+':'+w),Log[ai(0x192)](ai(0x16a)+o),Log[ai(0x192)](ai(0x172)+r),Log[ai(0x192)](ai(0x18c)+m),Log[ai(0x192)](ai(0x15a)+a6);if(x){Log[ai(0x192)](ai(0x197)+x);const a8=a6g[ai(0x152)](x)[ai(0x158)]();Log[ai(0x192)](a8);}const a7=await Actions[ai(0x135)](ai(0x15e));if(a7){const a9=await d[ai(0x137)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x142),'Value':ai(0x193)},{'Key':ai(0x13e),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x19c)](ai(0x186)),Log[ai(0x13b)](ai(0x14c)));}else{Log[ai(0x192)](ai(0x145));const aa=await Actions[ai(0x135)](ai(0x182)+r+'\x20?',!![]);aa&&(d[ai(0x151)](r),f['isFile'](s)&&a6g[ai(0x187)](s));const ab=await Actions[ai(0x135)](ai(0x18d)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console['log'](ac),Log['error'](ac);}}catch(ad){console[ai(0x17d)](ad),process['exit'](0x0);}},a6e);
|
|
1
|
+
const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x21e))/0x1*(-parseInt(ae(0x1e1))/0x2)+-parseInt(ae(0x1fb))/0x3*(parseInt(ae(0x229))/0x4)+parseInt(ae(0x1d4))/0x5*(-parseInt(ae(0x1c9))/0x6)+-parseInt(ae(0x1e7))/0x7*(-parseInt(ae(0x212))/0x8)+parseInt(ae(0x1d8))/0x9+parseInt(ae(0x1fe))/0xa*(-parseInt(ae(0x1da))/0xb)+parseInt(ae(0x1f5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1c6b5));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0x200)]()[af(0x1d5)](af(0x213))[af(0x200)]()[af(0x20a)](a6a)[af(0x1d5)](af(0x213));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a6d(a,b);}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[a6ag(0x21b)]({'name':a6ag(0x211),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x208)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1cb)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ah=a6ag;try{const c=this[ah(0x1fa)][ah(0x1de)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x1fa)][ah(0x1dc)](b[ah(0x1cb)]),i=this[ah(0x1fa)][ah(0x220)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x207)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x1f7)](ah(0x1d0),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1d2)]({'env':h});r=y,s=z,Log[ah(0x1cf)](ah(0x206)+r);}else try{Log[ah(0x202)](ah(0x1ef));const A=r?r:k,B=await d[ah(0x1d9)]({'suggestion':A}),C=await Actions['ask'](ah(0x1ea))||'-1';if(parseInt(C)<0x0){Log[ah(0x20f)](ah(0x224)),Log[ah(0x202)](ah(0x22e));return;}B?.[ah(0x222)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x20d)],Log[ai(0x1cf)](ai(0x206)+r));});}catch(D){Log['error'](D);}l=await d[ah(0x1ca)]();const t=await Actions[ah(0x1f7)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x1ca)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ah(0x204)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x228),G=F['split'](',');await d[ah(0x216)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x202)](ah(0x1f1)),J['forEach'](function(L){const aj=ah;L[aj(0x20d)]===u?Log[aj(0x202)](aj(0x231)+L['id']+aj(0x1e5)+L[aj(0x20d)]+aj(0x1f2)+L[aj(0x1cc)]):Log[aj(0x1d1)](aj(0x231)+L['id']+aj(0x1e5)+L[aj(0x20d)]+aj(0x1f2)+L[aj(0x1cc)]);});const K=await Actions[ah(0x204)](ah(0x21c)+H+']\x20')||H[ah(0x200)]();J[ah(0x222)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1cc)],Log[ak(0x1cf)](ak(0x1e9)+m+'\x0a'));});}else m=I,Log[ah(0x1cf)](ah(0x1e9)+m+'\x0a');if(m==='')throw Log[ah(0x20f)](ah(0x1eb));}catch(L){Log[ah(0x20f)](L);}try{const M=0x7e6;Log[ah(0x202)](ah(0x21f));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+ah(0x225))[ah(0x200)](),O=JSON[ah(0x21d)](N),P=[],Q=[];O[ah(0x222)](function(S){const al=ah;if(S[al(0x1ec)]==='amazon'){const T=S[al(0x221)]['split'](al(0x22d))[0x1];P[al(0x1e0)]({'amiId':S['ID'],'desc':S[al(0x221)],'date':T});}}),P[ah(0x218)](function(S,T){const am=ah;return new Date(T[am(0x1f0)])[am(0x1d7)]()-new Date(S[am(0x1f0)])[am(0x1d7)]();}),P[ah(0x222)](function(S,T){const an=ah;Q[an(0x1e0)]({'id':T,'amiId':S[an(0x1db)],'desc':S[an(0x1f9)]});}),Q[ah(0x222)](function(S){const ao=ah;console[ao(0x1e3)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S[ao(0x1db)]+'\x20DESCRIPTION:\x20'+S[ao(0x1f9)]);});const R=await Actions[ah(0x204)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ah(0x222)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x1db)],Log['success'](ap(0x1ce)+n+ap(0x214)+S['desc']));});if(n==='')throw Log['error'](ah(0x1eb));}catch(S){Log[ah(0x20f)](S);}try{Log[ah(0x202)](ah(0x1fc));const T=execSync(ah(0x201))[ah(0x200)](),U=JSON[ah(0x21d)](T),V=[];U[ah(0x222)](function(X,Y){const aq=ah;V[aq(0x1e0)]({'id':Y,'cidr':X[aq(0x22b)],'az':X['az'],'subnetId':X[aq(0x223)]});}),V[ah(0x222)](function(X){const ar=ah;console[ar(0x1e3)](ar(0x231)+X['id']+ar(0x1d3)+X[ar(0x1f3)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[ar(0x223)]);});const W=await Actions['ask'](ah(0x230))||'0';V[ah(0x222)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x223)],Log[as(0x1cf)](as(0x1e4)+p));});if(p==='')throw Log['error'](ah(0x1eb));}catch(X){Log[ah(0x20f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x204)](ah(0x232))||ah(0x20c),Z=Y['split'](':')[0x0],a0=Y[ah(0x22c)](':')[0x1];typeof parseInt(Z)===ah(0x20e)&&typeof parseInt(a0)===ah(0x20e)&&Log[ah(0x1cf)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x20f)](a1);}try{const a2=await Actions[ah(0x204)](ah(0x1f8))||ah(0x1d6);typeof a2===ah(0x219)&&(o=a2);}catch(a3){Log[ah(0x20f)](a3);}let x='';try{const a4=await Actions[ah(0x1f7)](ah(0x1fd),![]);a4&&(x=a6f[ah(0x209)](i,ah(0x1c7)),Log[ah(0x202)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ah(0x1fa)][ah(0x215)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ah(0x20f)](a5);}try{const a6=JSON[ah(0x21d)](execSync(ah(0x1f6)+p+ah(0x210))[ah(0x200)]())[0x0][ah(0x203)];Log[ah(0x202)]('ImageID:'+n),Log[ah(0x202)](ah(0x217)+v+':'+w),Log[ah(0x202)](ah(0x1e6)+o),Log['notice'](ah(0x1dd)+r),Log[ah(0x202)](ah(0x1df)+m),Log[ah(0x202)]('Subnet:\x20'+a6);if(x){Log[ah(0x202)]('User\x20Data:'+x);const a8=a6g[ah(0x227)](x)[ah(0x200)]();Log[ah(0x202)](a8);}const a7=await Actions['confirm'](ah(0x1ff));if(a7){const a9=await d[ah(0x1f4)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x205),'Value':ah(0x1ee)},{'Key':'environment','Value':h},{'Key':ah(0x1e8),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1cf)](ah(0x22f)),Log[ah(0x1d1)](ah(0x1e2)));}else{Log[ah(0x202)](ah(0x1cd));const aa=await Actions[ah(0x1f7)](ah(0x1ed)+r+'\x20?',!![]);aa&&(d[ah(0x20b)](r),f[ah(0x226)](s)&&a6g[ah(0x21a)](s));const ab=await Actions[ah(0x1f7)](ah(0x1c8)+m+'\x20?',!![]);ab&&d[ah(0x22a)](m);}}catch(ac){console[ah(0x1e3)](ac),Log[ah(0x20f)](ac);}}catch(ad){console[ah(0x20f)](ad),process['exit'](0x0);}},a6e);function a6c(){const at=['\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','create-instance','1437320EMNUcK','(((.+)+)+)+$','\x20:\x20','createFile','ec2createSG','Instance\x20Count:\x20','sort','string','unlinkSync','create','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','parse','83qarAkh','**\x20Available\x20AMIs\x20**','getConfigPath','Desc','forEach','subnetId','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','*\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','isFile','readFileSync','22,80,443','40VeStLt','deleteSecurityGroup','cider','split','build\x20on\x20','No\x20instance\x20has\x20been\x20created.','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','user-data','Remove\x20the\x20security\x20group\x20','4962EpgQVB','chooseVPC','env','sgId','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Setting\x20AMI\x20ID\x20to\x20','success','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','bright','createKeyPair','\x20CIDR:\x20','265hbnKOn','search','t3.micro','getTime','16128CUmJVw','ec2describeKeys','11qiQnIB','amiId','getConfigFromShorthand','Key-Pair:\x20','getProjectConfig','Security\x20Group:\x20','push','1434vnZfGY','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','log','Setting\x20Subnet\x20ID\x20to\x20','\x20SG\x20NAME:\x20','Instace\x20Type:\x20','7XBxYWm','Name','Setting\x20SG\x20ID\x20to:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','alias','Remove\x20the\x20keypair\x20','maka-cli','**\x20Available\x20key-pairs\x20**','date','**\x20Available\x20Security\x20Groups\x20**','\x20SGID:\x20','cidr','ec2create','4279548isautI','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','confirm','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','desc','fsi','48702PRJsxc','**\x20Available\x20Subnets\x20**','Would\x20you\x20like\x20to\x20include\x20user\x20data?','1559990EgIqgn','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','toString','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice','subnet','ask','created-by','Setting\x20the\x20key-pair\x20to:\x20','EC2\x20Name:\x20[','maka\x20aws:ci\x20--env\x20prod','join','constructor','deleteKeyPair','1:1','name','number','error'];a6c=function(){return at;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7j=a7d;
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x147))/0x1*(-parseInt(g(0x14e))/0x2)+parseInt(g(0x14a))/0x3*(parseInt(g(0x151))/0x4)+parseInt(g(0x157))/0x5*(parseInt(g(0x149))/0x6)+-parseInt(g(0x14b))/0x7+-parseInt(g(0x145))/0x8+-parseInt(g(0x148))/0x9+parseInt(g(0x15a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x86a96));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x158)]()[i(0x156)]('(((.+)+)+)+$')['toString']()['constructor'](a7a)['search'](i(0x146));});function a7c(){const l=['exit','2312432WZndps','(((.+)+)+)+$','171UtApbg','9638190CRjFtD','1902aqkRaQ','72969BRFRAU','6210995AOPzrU','env','apply','11054fVJhas','\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','create','52tXMCdG','getConfigFromShorthand','maka\x20aws:ckp\x20--env\x20prod','fsi','createKeyPair','search','6165WlsSid','toString','maka\x20aws:create-key-pair','30368800wnUAUx','error'];a7c=function(){return l;};return a7c();}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-0x145;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a7j(0x150)]({'name':'create-key-pair','aliases':['ckp'],'usage':a7j(0x159),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x153)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7j(0x14f)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x154)][k(0x152)](b[k(0x14c)]);c[k(0x155)]({'env':d});}catch(f){console[k(0x15b)](f),process[k(0x15c)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x120))/0x1+-parseInt(m(0x121))/0x2*(-parseInt(m(0x117))/0x3)+-parseInt(m(0x126))/0x4*(-parseInt(m(0x125))/0x5)+-parseInt(m(0x112))/0x6+parseInt(m(0x11d))/0x7+-parseInt(m(0x10a))/0x8+-parseInt(m(0x11e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xe1f85));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x10d)]()[o(0x123)](o(0x10e))[o(0x10d)]()[o(0x116)](a8a)[o(0x123)]('(((.+)+)+)+$');});a8a();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';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x107;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8p(0x10b)]({'name':a8p(0x10c),'aliases':['csg'],'usage':a8p(0x11a),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','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':[a8p(0x118),a8p(0x10f)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x110)]['getProjectConfig'](),{appName:f}=d,g=await c[q(0x11f)](),h=b[q(0x119)]?b[q(0x119)]:''+f,i=await Actions[q(0x11b)](q(0x111)+h+']')||h,j=await Actions[q(0x11b)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x122),k=j[q(0x108)](',');k[q(0x124)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x113);}),await c[q(0x107)]({'description':q(0x114),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x115)](l),process[q(0x109)](0x1);}},a8e);function a8c(){const s=['apply','4731342kAuluh','1381653AVpZtP','chooseVPC','1116466jNHjWv','3488692gaEpPu','22,80,443','search','forEach','617960BUQHGA','40wzoNZy','ec2createSG','split','exit','5065400VPNlSW','create','create-security-group','toString','(((.+)+)+)+$','maka\x20aws:csg','fsi','Security\x20Group\x20Name:\x20[','4964646MIDsVC','List\x20is\x20not\x20all\x20numbers','Web\x20App','error','constructor','3OwQmHh','maka\x20aws:create-secuirty-group','name','maka\x20aws\x20create-security-group','ask'];a8c=function(){return s;};return a8c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x8b))/0x1*(-parseInt(f(0x7d))/0x2)+-parseInt(f(0x86))/0x3+-parseInt(f(0x84))/0x4+-parseInt(f(0x8d))/0x5*(-parseInt(f(0x83))/0x6)+parseInt(f(0x88))/0x7+parseInt(f(0x8e))/0x8*(parseInt(f(0x8f))/0x9)+parseInt(f(0x85))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xafb25));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x82)]()['search'](h(0x8c))[h(0x82)]()['constructor'](a9a)[h(0x8a)]('(((.+)+)+)+$');});function a9c(){const k=['20476280juTYkJ','4084893qeUJIb','maka\x20aws:di','1023834QvNdIO','create','search','192431UtqoHm','(((.+)+)+)+$','3790095fshvRW','200xMFfxW','376353pEtQGH','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','14MwKZEN','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','exit','apply','maka\x20aws:describe-instances','toString','6qjNBVa','2276132CJBGdS'];a9c=function(){return k;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x7b;let f=c[d];return f;},a9d(a,b);}Command[a9i(0x89)]({'name':'describe-instances','aliases':['di'],'usage':a9i(0x81),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0x7e),'examples':[a9i(0x81),a9i(0x87)],'description':a9i(0x7c)},async function(){const j=a9i;try{const a=new AWS();a[j(0x7b)]();}catch(b){console['error'](b),process[j(0x7f)](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1df))/0x1*(parseInt(f(0x1ea))/0x2)+-parseInt(f(0x1e2))/0x3*(-parseInt(f(0x1d5))/0x4)+-parseInt(f(0x1de))/0x5+parseInt(f(0x1dc))/0x6*(parseInt(f(0x1d6))/0x7)+parseInt(f(0x1e0))/0x8+parseInt(f(0x1dd))/0x9*(-parseInt(f(0x1d8))/0xa)+-parseInt(f(0x1da))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9160f));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1e9)]()[h(0x1e5)](h(0x1d7))[h(0x1e9)]()[h(0x1e1)](a10a)[h(0x1e5)]('(((.+)+)+)+$');});a10a();function a10c(){const k=['describe-key-pairs','toString','74ELWHKw','create','83212fMULXl','49tkxQvw','(((.+)+)+)+$','20dfQmkc','maka\x20aws:dkp','8658067ibtbNU','ec2describeKeys','562716YEoTds','5352363ZMqqNn','164245ZDUDrf','26287hbWoMH','3145808fiZCtn','constructor','84FbHfyp','dkp','maka\x20aws:describe-key-pairs','search','apply','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a10d(a,b);}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x1eb)]({'name':a10i(0x1e8),'aliases':[a10i(0x1e3)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1e7),'examples':[a10i(0x1e4),a10i(0x1d9)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1db)]();}catch(b){console['error'](b),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11o=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x68;let f=c[d];return f;},a11d(a,b);}(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x8f))/0x1+parseInt(l(0x92))/0x2+parseInt(l(0x76))/0x3*(-parseInt(l(0x90))/0x4)+parseInt(l(0x6e))/0x5*(-parseInt(l(0x73))/0x6)+parseInt(l(0x79))/0x7*(parseInt(l(0x69))/0x8)+parseInt(l(0x7d))/0x9+-parseInt(l(0x81))/0xa*(parseInt(l(0x8a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb795d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x71)]()[n(0x87)](n(0x6a))[n(0x71)]()[n(0x77)](a11a)[n(0x87)](n(0x6a));});a11a();import a11e from'./aws.command.js';function a11c(){const s=['dsg','apply','627698gzPutc','168anowuJ','confirm','2374446ZvthNr','\x20SG\x20NAME:\x20','72992uULTPe','(((.+)+)+)+$','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','name','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','5GsOzGT','forEach','bright','toString','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','6989490fguOrg','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','549gNjmch','constructor','includes','91MKhiHJ','sgId','isMakaProject','ID:\x20','129258PsUKlM','notice','getSecurityGroups','success','410bnrzNg','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleting\x20a\x20','\x20SGID:\x20','appName','search','maka\x20aws:delete-sg','error','6259GMGGJF','create','Deleted\x20'];a11c=function(){return s;};return a11c();}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(0x8b)]({'name':'delete-security-group','aliases':[a11o(0x8d)],'usage':'maka\x20aws:delete-sg','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x72),'examples':[a11o(0x88),a11o(0x74)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x7b)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x86)];}const {sgList:f}=await a[p(0x7f)]();f[p(0x6f)](function(k){const q=p;c&&k[q(0x6c)][q(0x78)](d)?Log[q(0x7e)](q(0x7c)+k['id']+q(0x68)+k[q(0x6c)]+q(0x85)+k[q(0x7a)]):Log[q(0x70)](q(0x7c)+k['id']+q(0x68)+k[q(0x6c)]+q(0x85)+k['sgId']);});let g='';const h=await Actions['ask'](p(0x6d));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x7a)]);});if(!g)throw Log[p(0x89)](p(0x83));const i=await Actions[p(0x91)](p(0x84)+g+p(0x6b),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x80)](p(0x8c)+g)):Log[p(0x89)](p(0x75)),process[p(0x82)](0x0);}catch(k){process[p(0x82)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xd4;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xe0))/0x1*(parseInt(f(0xf1))/0x2)+parseInt(f(0xec))/0x3+-parseInt(f(0xe6))/0x4*(parseInt(f(0xe3))/0x5)+parseInt(f(0xdc))/0x6+-parseInt(f(0xe8))/0x7+parseInt(f(0xd5))/0x8+parseInt(f(0xe4))/0x9*(parseInt(f(0xea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x44082));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()['search'](h(0xd4))[h(0xe5)]()[h(0xe9)](a12a)[h(0xe7)](h(0xd4));});a12a();import a12e from'./aws.command.js';function a12c(){const k=['maka\x20aws:rbi','226XzsRQW','exit','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','(((.+)+)+)+$','2080768fYtiKQ','status','rbi','\x20Ready?','create','error','maka\x20aws:reboot-instance','1600008rUhecM','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','Reboot\x20an\x20EC2\x20instance','confirm','89pDXHYC','ec2rebootInstance','instanceId','5pupiat','630AZImfN','toString','346712NErzel','search','3589817DYVTUH','constructor','24250ryCEPO','name','514788XZRfgl','\x20is\x20still\x20running.','apply','chooseInstance'];a12c=function(){return k;};return a12c();}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[a12i(0xd9)]({'name':'reboot-instance','aliases':[a12i(0xd7)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xde),'examples':[a12i(0xdb),a12i(0xf0)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xef)]();if(b?.[j(0xd6)]==='running'){const c=await Actions[j(0xdf)](j(0xf4)+b[j(0xeb)]+j(0xd8));c&&b['instanceId']?a[j(0xe1)]({'instanceId':b[j(0xe2)]}):Log[j(0xda)](j(0xf3)+b['name']+j(0xed));}else Log[j(0xda)](j(0xdd));}catch(d){console[j(0xda)](d),process[j(0xf2)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13a;let f=c[d];return f;},a13d(a,b);}const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0x14b))/0x1*(-parseInt(E(0x16d))/0x2)+-parseInt(E(0x147))/0x3+-parseInt(E(0x164))/0x4*(parseInt(E(0x13c))/0x5)+parseInt(E(0x16e))/0x6+parseInt(E(0x13f))/0x7+parseInt(E(0x16b))/0x8+-parseInt(E(0x155))/0x9*(-parseInt(E(0x15b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf221b));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x151)]()[G(0x14d)]('(((.+)+)+)+$')[G(0x151)]()[G(0x165)](a13a)[G(0x14d)](G(0x140));});function a13c(){const K=['Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','123\x20Glorious\x20Way','130xyRzEf','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Address\x20Line\x202:\x20','warn','Do\x20you\x20wish\x20to\x20register\x20','\x20is\x20available\x20for:','Are\x20you\x20sure?','PERSON','register-domain-name','8cDOVnx','constructor','options','ask','includes','Zip\x20Code\x20[96816]:\x20','Country\x20Code\x20[US]:\x20','7416432vzHLZl','exit','2jxiAdQ','2005764QSPGnQ','Contact\x20First\x20Name\x20[Contact]:\x20','Invalid\x202\x20character\x20country\x20code','OrganizationName','values','ASSOCIATION','3166115BEvPBi','The\x20domain\x20name:\x20','registerDomain','1708294pdQDAX','(((.+)+)+)+$','maka\x20aws:register-domain-name\x20--domain=example.com','list','\x20/\x20Year\x20\x0a','apply','State\x20[HI]:\x20','error','5249985Decncb','Person','notice','maka\x20aws:rdn\x20--domain=example.com','1024033GvBAvy','+1.5555555556','search','checkDomainAvailability','domain','Choose\x20contact\x20type','toString','maka\x20aws:register-domain-name','COMPANY','Auto\x20Renew:\x20','1023777uSgtVS','confirm','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a13c=function(){return K;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0x13a)](CountryCode)[H(0x168)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13I(0x163),'aliases':['rdn'],'usage':a13I(0x152),'requiredOpts':[a13I(0x14f)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0x15c),'examples':[a13I(0x141),a13I(0x14a)]},async function(a,b){const J=a13I;try{const c=b[J(0x14f)],d=new AWS(),{available:f,cost:g}=await d[J(0x14e)](c);if(f&&g){Log[J(0x149)](J(0x13d)+c+J(0x160));const {Price:h,Currency:i}=g;Log[J(0x15e)]('\x20\x20'+h+'\x20'+i+J(0x143));const j=await Actions[J(0x156)](J(0x15f)+c+'\x20?',![]);if(j){const k={'type':J(0x142),'name':'contactType','message':J(0x150),'choices':[J(0x13b),J(0x153),'PERSON','PUBLIC_BODY','RESELLER']},l=await Actions[J(0x167)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x167)](J(0x16f))||'Contact',n=await Actions['ask']('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0x148),{contactType:o}=await Actions[J(0x166)](k),p=await Actions[J(0x167)](J(0x158))||J(0x15a),q=await Actions['ask'](J(0x15d)),r=await Actions['ask'](J(0x169))||'96816',s=await Actions[J(0x167)](J(0x145))||'HI',t=await Actions[J(0x167)](J(0x16a))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x146)](J(0x170));const v=await Actions[J(0x167)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||'+1.5555555555',w=await Actions['ask'](J(0x159))||J(0x14c),x=await Actions[J(0x167)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions[J(0x156)](J(0x154)),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(0x162)){const C=await Actions[J(0x167)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z[J(0x171)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x157)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+'\x20years\x20('+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0x156)](J(0x161));B&&await d[J(0x13e)](z,c,parseInt(l),y);}}else throw Log[J(0x146)]('Domain\x20name\x20is\x20unavailable');}catch(D){console[J(0x146)](D),process[J(0x16c)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x147))/0x1*(-parseInt(h(0x13d))/0x2)+parseInt(h(0x145))/0x3*(parseInt(h(0x132))/0x4)+-parseInt(h(0x12e))/0x5+-parseInt(h(0x139))/0x6*(-parseInt(h(0x13b))/0x7)+-parseInt(h(0x141))/0x8+parseInt(h(0x13f))/0x9+parseInt(h(0x146))/0xa*(parseInt(h(0x133))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x4581b));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x129;let f=c[d];return f;},a14d(a,b);}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['toString']()['search'](i(0x140))[i(0x13e)]()[i(0x130)](a14a)[i(0x134)](i(0x140));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';function a14c(){const l=['constructor','exit','4ijVwhw','77aQqfeP','search','Please\x20choose\x20a\x20key\x20to\x20delete:','error','deleteKeyPair','confirm','84PzToKi','\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','53039dVtjoP','Deleting\x20a\x20','6064EQvLDO','toString','1615302CdQRQR','(((.+)+)+)+$','2234248xzDWza','Deleted\x20','forEach','create','915087bEMDoa','802030FJCSSO','71Locmeh','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ec2describeKeys','ask','1863770PbfWyg','maka\x20aws:remove-key-pair'];a14c=function(){return l;};return a14c();}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(0x144)]({'name':'remove-key-pair','aliases':['rkp'],'usage':a14j(0x12f),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a14j(0x13a),'examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const k=a14j;try{const a=new AWS(),b=await a[k(0x12c)]();let c=undefined;const d=await Actions[k(0x12d)](k(0x135));b?.[k(0x143)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[k(0x136)](k(0x12a));const f=await Actions[k(0x138)](k(0x13c)+c+k(0x12b),![]);f?(await a[k(0x137)](c),Log[k(0x129)](k(0x142)+c)):Log[k(0x136)]('Not\x20deleting\x20keypair'),process[k(0x131)](0x0);}catch(g){process[k(0x131)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x17e;let f=c[d];return f;},a15d(a,b);}const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x195))/0x1+-parseInt(l(0x192))/0x2+parseInt(l(0x19a))/0x3+parseInt(l(0x180))/0x4+-parseInt(l(0x19f))/0x5*(parseInt(l(0x18c))/0x6)+parseInt(l(0x183))/0x7+-parseInt(l(0x1a0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x7c2cd));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x187)]()[n(0x19e)](n(0x184))['toString']()[n(0x186)](a15a)[n(0x19e)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';function a15c(){const q=['host','writeFileSync','search','825dhxwYK','739768ZANNMW','apply','fsi','config/ssh.json','maka\x20aws:set-host\x20--env\x20dev','join','getConfigPath','chooseInstance','348780ZYEXKK','\x20IP\x20to\x20','public','5978525hMwdmn','(((.+)+)+)+$','stringify','constructor','toString','set-host','ask','env','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','6450CNHVEJ','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','error','ssh.json','parse','exit','1791380RxzZjN','template','cat\x20','42872MfiIdw','privateIp','private','\x0aSaved\x20host\x20','readFileSync','2070045apgxHz','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'];a15c=function(){return q;};return a15c();}import{execSync}from'child_process';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['create']({'name':a15o(0x188),'aliases':['sth'],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x18b),'description':'\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','examples':[a15o(0x1a4),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a15o;try{const c=new AWS(),d=this['fsi'][p(0x17e)](b[p(0x18a)]),f=this[p(0x1a2)]['getProjectConfig'](),g=await c[p(0x17f)](),h=a15e[p(0x1a5)](d,p(0x18f));!this[p(0x1a2)]['isFile'](h)&&await this['fsi'][p(0x193)]({'srcPath':p(0x1a3),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x190)](a15f[p(0x199)](h,'utf8')),j=await Actions[p(0x189)](p(0x19b))||p(0x182);if(j){if(j===p(0x182)||j===p(0x197)){if(j===p(0x182))i[p(0x19c)]=g?.['publicIp'];else j==='private'&&(i['host']=g?.[p(0x196)]);}else throw p(0x18d);}else i[p(0x19c)]=g?.[p(0x196)];a15f[p(0x19d)](a15e[p(0x1a5)](d,p(0x18f)),JSON[p(0x185)](i,null,0x2)),execSync(p(0x194)+a15e[p(0x1a5)](d,p(0x18f)),{'stdio':'inherit'}),Log['success'](p(0x198)+j+p(0x181)+d+a15e['sep']+p(0x18f));}catch(k){console[p(0x18e)](k),process[p(0x191)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0xdc))/0x1+parseInt(f(0xe1))/0x2+-parseInt(f(0xca))/0x3*(-parseInt(f(0xcc))/0x4)+-parseInt(f(0xd4))/0x5+parseInt(f(0xe2))/0x6+parseInt(f(0xcb))/0x7+parseInt(f(0xcd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x1e0f9));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0xe0)]()['search'](g(0xdd))[g(0xe0)]()[g(0xe4)](a16a)[g(0xdb)](g(0xdd));});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xca;let f=c[d];return f;},a16d(a,b);}import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const j=['\x20Ready?','toString','290810ZfZyAa','483960QQaqIf','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','constructor','create','ec2terminateInstance','3uqPfCb','328055uhhwHz','583012FDiGgW','737032GSUcXV','error','instanceId','Terminate\x20an\x20EC2\x20instance','\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','chooseInstance','terminate-instance','710310cuOlig','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','running','status','maka\x20aws:terminate-instance','maka\x20aws:ti','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','search','245621twHlGi','(((.+)+)+)+$','name'];a16c=function(){return j;};return a16c();}Command[a16h(0xe5)]({'name':a16h(0xd3),'aliases':['ti'],'usage':a16h(0xd8),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16h(0xd0),'description':a16h(0xd1),'examples':[a16h(0xd8),a16h(0xd9)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0xd2)]();if(b?.[i(0xcf)]&&b?.[i(0xd7)]===i(0xd6)){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0xde)]+i(0xdf));c?a[i(0xe6)]({'instanceId':b[i(0xcf)]}):Log['error'](i(0xe3)+b[i(0xde)]+i(0xd5));}else Log[i(0xce)](i(0xda));}catch(d){console[i(0xce)](d),process['exit'](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x1a1))/0x1+parseInt(f(0x19b))/0x2+parseInt(f(0x199))/0x3+-parseInt(f(0x19d))/0x4+parseInt(f(0x1a4))/0x5+-parseInt(f(0x1a3))/0x6+parseInt(f(0x19e))/0x7*(-parseInt(f(0x1a0))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xda106));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()[h(0x19a)](h(0x19c))[h(0x1a2)]()['constructor'](a17a)[h(0x19a)](h(0x19c));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x199;var f=c[d];return f;},a17d(a,b);}a17a();function a17c(){var i=['8080965EBeUvN','1258059MIalYf','search','2310990SSlDuP','(((.+)+)+)+$','1173436lcrNiS','32627mdzlTG','apply','1992ffKukp','625225IhcjHC','toString','1312068CEeUVn'];a17c=function(){return i;};return a17c();}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x173;let f=c[d];return f;},a18d(a,b);}const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=-parseInt(q(0x17d))/0x1+-parseInt(q(0x194))/0x2+-parseInt(q(0x185))/0x3+parseInt(q(0x191))/0x4+parseInt(q(0x178))/0x5+parseInt(q(0x182))/0x6*(-parseInt(q(0x196))/0x7)+-parseInt(q(0x187))/0x8*(-parseInt(q(0x184))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x6f640));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a['toString']()[s(0x186)]('(((.+)+)+)+$')['toString']()[s(0x195)](a18a)[s(0x186)](s(0x188));});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';function a18c(){const w=['195468RqFEkq','exit','create','This\x20project\x27s\x20meteor\x20version\x20(','getProjectMeteorVersion','6xwDWql','maka\x20build\x20<opts>','9sKFJKC','2104128LwxWGH','search','13813064QqAOfd','(((.+)+)+)+$','autoupdate','error','pathFromProject','getGlobalMeteorVersion','--release','confirm',').\x20Update?','\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','1717332YkNQOv','Aborted.','fsi','1301764PvUQwC','constructor','1382493jwloiG','debug','build','join','Verifying\x20meteor\x20package\x20requirements\x20...','splice','runSubCommand','227575iAYZtC','installMeteorPackage','existsSync','force','apply'];a18c=function(){return w;};return a18c();}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18t(0x17f)]({'name':a18t(0x173),'usage':a18t(0x183),'validOpts':[a18t(0x17b),a18t(0x197)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a18t(0x190),'examples':['maka\x20build','maka\x20build:docker']},async function(a,b){const u=a18t;try{const c=this['fsi']['findProjectDirectory']();!this[u(0x193)]['checkMeteorPackage'](u(0x189))&&(Log['notice'](u(0x175)),await this[u(0x193)][u(0x179)](u(0x189),{'cwd':c}));const d=a[0x0],f=this['findSubCommand'](d);if(f)this[u(0x177)](d,a,b);else{const g=b[u(0x17b)];if(!g){const j=this[u(0x193)][u(0x18c)](),k=this[u(0x193)][u(0x181)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x18e)](u(0x180)+k+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+j+u(0x18f));m&&this['fsi']['invokeMeteorCommand']('update',[u(0x18d),j]);}}const h=[this['fsi'][u(0x18b)]({'pathParts':[u(0x173)]})]['concat'](process['argv']['slice'](0x3)),i=a18e[u(0x174)](this[u(0x193)]['pathFromProject']({}),u(0x173),'app.tar.gz');if(a18f[u(0x17a)](i)){const n=g??await Actions[u(0x18e)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!n)throw Log[u(0x18a)](u(0x192));}h['forEach']((o,p)=>{const v=u;o==='--force'&&h[v(0x176)](p,0x2);}),this['fsi']['invokeMeteorCommand'](u(0x173),h);}}catch(o){console['error'](o),process[u(0x17e)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19H=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=parseInt(F(0x1db))/0x1*(parseInt(F(0x1e6))/0x2)+parseInt(F(0x1d7))/0x3*(parseInt(F(0x1d9))/0x4)+parseInt(F(0x1fd))/0x5+-parseInt(F(0x1b4))/0x6+parseInt(F(0x1fb))/0x7+-parseInt(F(0x208))/0x8*(parseInt(F(0x1b8))/0x9)+parseInt(F(0x1c8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x1a257));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const G=a19d;return a19a[G(0x206)]()[G(0x1ce)](G(0x1f1))[G(0x206)]()[G(0x1ba)](a19a)[G(0x1ce)](G(0x1f1));});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';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a19d(a,b);}function a19c(){const J=['\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','search','cert','ask','platform','docker-compose.yaml','findGenerator','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','\x20npm\x20install\x20--save','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','455181FlmHZL','docker','4GfVPFL','isFile','16HPICjI','cert.pem','--server=','_keys','template','existsSync','error','checkConfigExists','findAppDirectory','Try\x20\x27maka\x20run:docker\x27','platforms','7302eXxYGK','config/pm2.config.js','docker\x20build\x20--build-arg\x20NODE_VERSION=','[*]\x20maka\x20','win32','14.21.3','fsi','setProjectConfig','getProjectConfig','http','exit','(((.+)+)+)+$','meteor.bat','maka\x20build:docker\x20--tag','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).','tag','appName','config/docker-compose.yaml','443','.meteor','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','242025iZcWaq','meteor','28595gQrtCB','maka\x20build:docker\x20<opts>','debug','Mobile\x20server\x20port:\x20','readFileLines','Tagging\x20Docker\x20Image:\x20','app.tar.gz','--progress=plain\x20--no-cache','N/A','toString','config','104eVqljO','.maka','inherit','getGlobalConfig','967536RzAjhV','build','-t\x20','notice','39213icNamT','force','constructor','dockerfile','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','://','app','https','invoke','mkdirSync','pathFromProject','getConfigPath','Dockerfile','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','serverName','serverPort','745550unkmpS','copyFileSync','length','join','confirm'];a19c=function(){return J;};return a19c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a19H(0x1d8),'aliases':['d'],'usage':a19H(0x1fe),'validOpts':[a19H(0x1b9),'tag',a19H(0x1ff)],'shortDesc':a19H(0x1d6),'description':a19H(0x1cd),'mustBeInMakaProject':!![],'examples':[a19H(0x1f3),'maka\x20build:docker\x20--debug']},async function(a,b){const I=a19H;try{const c=await this['fsi'][I(0x1b3)](),d=await this['fsi'][I(0x1ee)](),f=I(0x1eb);f===I(0x205)&&(Log[I(0x1e1)](I(0x1f4)),process[I(0x1f0)](0x1));const g=process[I(0x1d1)]===I(0x1ea)?I(0x1f2):I(0x1fc),h=this[I(0x1ec)][I(0x1c2)]({}),i=a19f[I(0x1cb)](h,I(0x1c4));if(!this[I(0x1ec)][I(0x1da)](i)){const s=a19h['findGenerator'](I(0x1bb));s&&await s[I(0x1c0)]([I(0x1bb)],{'cwd':h,'config':d});}const j=this[I(0x1ec)][I(0x1e2)](I(0x1d8));if(!j){const t=a19h[I(0x1d3)](I(0x207));if(t){await t[I(0x1c0)]([I(0x1d8)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[I(0x1ec)][I(0x1c3)](I(0x1d8)),v=a19f[I(0x1cb)](u,'pm2.config.js');await this[I(0x1ec)][I(0x1df)]({'srcPath':I(0x1e7),'destPath':v,'context':{'app':d[I(0x1f6)],'isDocker':!![]},'config':d});const w=a19f[I(0x1cb)](u,I(0x1d2));await this[I(0x1ec)][I(0x1df)]({'srcPath':I(0x1f7),'destPath':w,'context':{'app':d[I(0x1f6)],'appFileCase':paramCase(d['appName'])},'config':d});}}if(this[I(0x1ec)][I(0x1da)](c[I(0x1cf)])){const x=this[I(0x1ec)]['isDirectory'](a19f[I(0x1cb)]('config',I(0x1d8),'_keys'));!x&&a19g[I(0x1c1)](a19f[I(0x1cb)](I(0x207),'docker',I(0x1de))),a19g[I(0x1c9)](c[I(0x1cf)],a19f[I(0x1cb)](h,'config',I(0x1d8),'_keys',I(0x1dc)));}const k=[I(0x1b5),a19f[I(0x1cb)](this[I(0x1ec)]['findProjectDirectory'](),I(0x1b5)),'--architecture','os.linux.x86_64'],l=this[I(0x1ec)][I(0x201)](a19f[I(0x1cb)](this[I(0x1ec)][I(0x1c2)]({}),I(0x1be),I(0x1f9),I(0x1e5))),m=l[I(0x1ca)]>0x2?!![]:![];if(m){const y=d['serverName']?d[I(0x1c6)]:await Actions[I(0x1d0)](I(0x1bc)),z=d[I(0x1c7)]?d[I(0x1c7)]:await Actions[I(0x1d0)](I(0x200));if(y[I(0x1ca)]==0x0||z[I(0x1ca)]==0x0)throw I(0x1c5);const A=z==I(0x1f8)?I(0x1bf):I(0x1ef);k['push'](I(0x1dd)+A+I(0x1bd)+y+':'+z);if(!d[I(0x1c6)]&&!d['serverPort']){const B=await Actions[I(0x1cc)](I(0x1d4));B&&(this['fsi'][I(0x1ed)]('serverName',y),this['fsi']['setProjectConfig']('serverPort',z),Log['notice']('Stored\x20server\x20config\x20to\x20'+a19f[I(0x1cb)](I(0x1b1),'config.json')));}}const n=a19f[I(0x1cb)](this[I(0x1ec)][I(0x1c2)]({}),I(0x1b5),I(0x203));if(a19g[I(0x1e0)](n)){const C=await Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+I(0x1d5),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[I(0x1cb)]('\x20'),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':I(0x1b2)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[I(0x1ec)]['findAppDirectory'](),'stdio':'ignore'}),Log[I(0x1b7)](I(0x1e9)+k[I(0x1cb)]('\x20')),execSync(g+'\x20'+k['join']('\x20'),{'cwd':this[I(0x1ec)][I(0x1e3)](),'stdio':I(0x1b2)});const o=this[I(0x1ec)][I(0x1c2)]({});let p=I(0x1b6)+paramCase(d[I(0x1f6)])+':latest';b[I(0x1f5)]&&(p=I(0x1b6)+b[I(0x1f5)]);Log['notice'](I(0x1fa)+f),Log['notice'](I(0x202)+p),Log[I(0x1b7)]('Docker\x20Context\x20Path:\x20'+o);const q=b[I(0x1ff)]?I(0x204):'',r=I(0x1e8)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':I(0x1b2)}),Log[I(0x1b7)](I(0x1e4));}catch(E){console[I(0x1e1)](E),process[I(0x1f0)](0x0);}},a19e);
|