@maka/maka-cli 4.5.45 → 4.5.46
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/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/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.5.
|
|
4
|
+
"version": "4.5.46",
|
|
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
|
+
const a0s=a0d;function a0c(){const E=['mustBeInMakaProject','name','usage','length','includes','sort','match','splice','Command\x20requires\x20a\x20handler\x20function','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','constructor','header','Command.create\x20requires\x20a\x20handler\x20function!','Too\x20many\x20options','assign','deploy','number','validateMakaSubscription','Too\x20many\x20arguments','3BCFGwE','options','mustHaveMeteorInstalled','parent','murder','1660525HdPlvq','Name','Description','domainLicense','Command.create\x20requires\x20some\x20options!','play','error','filter','notice','join','tableList','proCommands','apply','findCommand','addCommand\x20requires\x20a\x20Command\x20instance','run','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','help','3045KodxLI','103140BdHGjm','toString','fsi','roles','shortDesc','_handler','15813477FqCJQG','push','(((.+)+)+)+$','exit','keys','4542796oDnakr','invoke','disableAuthCheck','singleLicense','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','minArgLength','call','proFlags','find','validateParams','Command\x20not\x20found','Command\x20requires\x20a\x20name','minOptsLength','Too\x20few\x20options','17288jgLqss','bright','search','addCommand','validateMeteorInstall','3193554TbwpLz','_commands','maxOptsLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxArgLength','create','4269588czyxPG','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','getPro','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27'];a0c=function(){return E;};return a0c();}(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x18c))/0x1+parseInt(p(0x156))/0x2+parseInt(p(0x174))/0x3*(parseInt(p(0x197))/0x4)+parseInt(p(0x179))/0x5+parseInt(p(0x15c))/0x6+-parseInt(p(0x18b))/0x7*(parseInt(p(0x151))/0x8)+-parseInt(p(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xee44f));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x18d)]()[r(0x153)](r(0x194))[r(0x18d)]()[r(0x16b)](a0a)[r(0x153)]('(((.+)+)+)+$');});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x14e;let f=c[d];return f;},a0d(a,b);}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x175)];[a0s(0x157)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x159));if(!a['name'])throw new Error(t(0x14e));if(typeof b!=='function')throw new Error(t(0x168));this[t(0x175)]=Object[t(0x16f)]({},a),this[t(0x161)]=this['options'][t(0x161)],this['_commands']=[],this[t(0x191)]=b['bind'](this);}static[a0s(0x15b)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x17d));if(typeof b!=='function')throw new Error(u(0x16d));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[u(0x175)]?.[u(0x161)]}),c['addCommand'](d),d;}[a0s(0x154)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x187));this[v(0x157)]['push'](a);}async[a0s(0x172)](a,b){const w=a0s,c=this[w(0x186)](a[0x0]);if(c){const d=c?.[w(0x161)]||a[0x0],e=c?.[w(0x177)]||'',f=c?.['options'];if(f[w(0x199)])return;const g=a[0x0],h=Object[w(0x196)](b),i=await this[w(0x18e)][w(0x15e)]();!i&&(Log['error'](w(0x189)),process[w(0x195)](0x1));const j=i?.[w(0x184)]['includes'](d)||i?.['proCommands'][w(0x164)](e),k=i?.[w(0x18f)][w(0x164)](w(0x19a))||i?.[w(0x18f)][w(0x164)](w(0x17c)),l=!k;if(j&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x15f);if(h[w(0x163)]>0x0){const m=i?.[w(0x19e)][w(0x180)](n=>h['includes'](n));if(m&&m[w(0x163)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0x182)](',\x20')+w(0x15f);}if(g===w(0x170)){const n=await this[w(0x18e)][w(0x15e)](),o=n?.[w(0x184)][w(0x164)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+w(0x15f);}}}async[a0s(0x188)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x172)](a,b);}catch(c){Log[x(0x17f)](c),process[x(0x195)](0x0);}await this[x(0x198)](a,b);}catch(d){process[x(0x195)](0x1);}}async[a0s(0x198)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x175)];try{if(this[y(0x175)][y(0x161)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[y(0x157)][y(0x163)]>=0x0;if(f&&b['help']){if(this[y(0x157)][y(0x163)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x18a)]){if(this['options'][y(0x160)]){const g=this['validateMakaProject']();if(!g)throw new MustBeInProjectError();}if(this[y(0x175)][y(0x176)]){const h=this[y(0x155)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x175)][y(0x19c)]==='number'){if(a['length']<this['options'][y(0x19c)]){Log[y(0x17f)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][y(0x15a)]===y(0x171)){if(a[y(0x163)]>=this[y(0x175)][y(0x15a)]){Log[y(0x17f)](y(0x173));throw new UsageError();}}if(typeof this['options'][y(0x14f)]===y(0x171)){if(Object[y(0x196)](b)['length']<this[y(0x175)]['minOptsLength']){Log[y(0x17f)](y(0x150));throw new UsageError();}}if(typeof this[y(0x175)][y(0x158)]==='number'){if(Object[y(0x196)](b)['length']>=this[y(0x175)][y(0x158)]){Log[y(0x17f)](y(0x16e));throw new UsageError();}}}}b=await this[y(0x1a0)](a,b,this[y(0x175)]),_prevCmd=a[0x0];}await this[y(0x191)][y(0x19d)](this,a,b);}catch(i){Log[y(0x162)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[y(0x183)](this['_commands']),Log[y(0x16c)](y(0x16a));else{if(i instanceof MustBeInProjectError)Log[y(0x17f)](y(0x15d));else{if(i instanceof NoMeteorFoundError)Log[y(0x17f)](y(0x19b)),Log[y(0x181)](y(0x169));else{if(i instanceof NoMeteorAppFoundError)Log[y(0x17f)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[y(0x195)](0x1);}}[a0s(0x183)](a){const z=a0s,b=new a0e({});b[z(0x193)]([z(0x17a),'Alias',z(0x17b)]),a[z(0x165)]()['forEach'](c=>{const A=z;c[A(0x161)]!==A(0x178)&&c[A(0x161)]!==A(0x17e)&&b[A(0x193)]([c[A(0x161)],c['aliases'](),c[A(0x190)]()]);}),Log[z(0x152)](b[z(0x18d)]());}['findCommand'](a){const B=a0s;return this[B(0x157)][B(0x19f)](b=>b[B(0x166)](a));}['findSubCommand'](a){const C=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[C(0x186)](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(0x167)](0x0,0x0,f);const g=this[D(0x186)](a);if(g)await g[D(0x188)](b,c);else throw D(0x1a1);}catch(h){throw Log['error'](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x9b))/0x1+-parseInt(f(0x92))/0x2*(parseInt(f(0x98))/0x3)+-parseInt(f(0x99))/0x4*(-parseInt(f(0x94))/0x5)+-parseInt(f(0x9a))/0x6*(-parseInt(f(0x93))/0x7)+parseInt(f(0x96))/0x8*(parseInt(f(0x9f))/0x9)+-parseInt(f(0x90))/0xa+parseInt(f(0x97))/0xb*(parseInt(f(0x9c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x5c9cd));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x9d)]()[h(0xa0)]('(((.+)+)+)+$')[h(0x9d)]()[h(0x9e)](a1a)[h(0xa0)](h(0x95));});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';function a1c(){var i=['4896250SVHIjJ','apply','6eQyiFZ','56XkNTKg','95ijNwpP','(((.+)+)+)+$','6064njcYIB','5493664WTiMdc','196374joCgHm','142084JBIWUb','70626BljDuk','470725uLoVIa','12NCypXB','toString','constructor','3177xaVnfz','search'];a1c=function(){return i;};return a1c();}import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x90;var f=c[d];return f;},a1d(a,b);}import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a2c(){const o=['create','4388180gLOhxi','search','error','notice','(((.+)+)+)+$','cacert','toLowerCase','question','openai','openapikey','getGlobalConfig','fsi','log','1115192sgFDND','11221730fiESDl','18AeZsVd','Using\x20CA\x20Cert\x20','stdin','You:\x20','toString','GPT:\x20','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','4hVCAAx','apply','1137702invvPG','askGPT','createInterface','1291bbOmeu','choices','exit','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','561999zAOCKZ','parse','data','isFile','ChatGPT\x20style\x20AI\x20interface','8165703xSIIga','1822OhjMoV','close'];a2c=function(){return o;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x181;let f=c[d];return f;},a2d(a,b);}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x1a1))/0x1*(parseInt(h(0x183))/0x2)+-parseInt(h(0x1a5))/0x3+-parseInt(h(0x19c))/0x4*(parseInt(h(0x186))/0x5)+parseInt(h(0x19e))/0x6+parseInt(h(0x182))/0x7+-parseInt(h(0x193))/0x8*(-parseInt(h(0x195))/0x9)+-parseInt(h(0x194))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x9851f));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x199)]()[j(0x187)](j(0x18a))[j(0x199)]()['constructor'](a2a)['search'](j(0x18a));});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(0x1a0)]({'input':process[k(0x197)],'output':process['stdout']});c[k(0x18d)](k(0x198),async d=>{const l=k;if(d[l(0x18c)]()===l(0x1a3)){c[l(0x184)]();return;}try{const e=await HTTPS[l(0x19f)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1a6)](e[l(0x1a7)]);if(f[l(0x188)])throw new Error(f[l(0x188)]['message']);console[l(0x192)](l(0x19a)+f?.[l(0x1a2)][0x0]?.['text']['trim']());}catch(g){Log[l(0x188)](g),process[l(0x1a3)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x185)]({'name':'ai','description':a2m(0x181),'validOpts':[a2m(0x18b),'openapikey'],'shortDesc':a2m(0x181)},async function(a,b){const n=a2m;try{let c='';b[n(0x18b)]&&(this[n(0x191)][n(0x1a8)](b[n(0x18b)])?(c=b[n(0x18b)],Log[n(0x189)](n(0x196)+c)):Log[n(0x188)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi'][n(0x190)]();if(d['cert']){if(this[n(0x191)][n(0x1a8)](d['cert']))c=d['cert'];else throw Log['error'](n(0x1a4)+c);}let f='';if(b[n(0x18f)])f=b[n(0x18f)],Log[n(0x189)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x18e)])f=d[n(0x18e)];else throw Log['error']('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log'](n(0x19b)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x1a3)](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(0xa9))/0x1+parseInt(f(0xb6))/0x2*(parseInt(f(0xab))/0x3)+-parseInt(f(0xb0))/0x4*(-parseInt(f(0xb5))/0x5)+-parseInt(f(0xaa))/0x6+parseInt(f(0xb7))/0x7*(-parseInt(f(0xa7))/0x8)+parseInt(f(0xae))/0x9*(-parseInt(f(0xaf))/0xa)+-parseInt(f(0xb4))/0xb*(-parseInt(f(0xa8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xd3077));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xac)]()[h(0xb3)](h(0xad))[h(0xac)]()[h(0xb2)](a3a)[h(0xb3)](h(0xad));});a3a();function a3c(){var i=['44371572pnuVgY','1210158CVkSWg','8616060yYsoGs','396ynXQfn','toString','(((.+)+)+)+$','42696RSKsKy','110jVZyAN','46332EXNrYe','apply','constructor','search','11cEyfrT','205zepYDO','11204avlqAI','7FJooVJ','10794168oSKHEg'];a3c=function(){return i;};return a3c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xa7;var f=c[d];return f;},a3d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -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(0x158))/0x1*(parseInt(f(0x157))/0x2)+parseInt(f(0x168))/0x3*(-parseInt(f(0x156))/0x4)+parseInt(f(0x15a))/0x5*(-parseInt(f(0x15c))/0x6)+-parseInt(f(0x152))/0x7*(parseInt(f(0x15d))/0x8)+parseInt(f(0x15f))/0x9*(parseInt(f(0x164))/0xa)+parseInt(f(0x165))/0xb+parseInt(f(0x163))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x65a23));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x166)]()[h(0x160)](h(0x161))[h(0x166)]()[h(0x155)](a4a)['search'](h(0x161));});a4a();import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x152;let f=c[d];return f;},a4d(a,b);}import{Log}from'../../tools/log/log.class.js';function a4c(){const k=['runSubCommand','9243276vLPbEV','389150onLlos','3288637bDPcdh','toString','create','125139oaVzut','167818WFqEIa','error','apply','constructor','36rsUFVh','6UsesAq','132367hGDpDL','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','75RRSFsH','findSubCommand','196476HpOZth','256cZrMnA','maka\x20aws:<sub-command>','135zaoLrb','search','(((.+)+)+)+$'];a4c=function(){return k;};return a4c();}import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x167)]({'name':'aws','usage':a4i(0x15e),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x159),'description':'\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'},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x15b)](c);if(d)this[j(0x162)](c,a,b);else{Log[j(0x153)]('Sub\x20Command\x20not\x20found');throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x170))/0x1*(parseInt(i(0x15c))/0x2)+parseInt(i(0x164))/0x3+-parseInt(i(0x174))/0x4+parseInt(i(0x15e))/0x5+parseInt(i(0x158))/0x6*(-parseInt(i(0x162))/0x7)+parseInt(i(0x161))/0x8+-parseInt(i(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x721e0));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x16e)]()[k(0x160)](k(0x15f))['toString']()[k(0x16d)](a5a)[k(0x160)](k(0x15f));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const n=['Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','confirm','create','chooseInstance','linkEC2ToRoute53','constructor','toString','create-hosted-zone','318nXxZlQ','error','maka\x20aws:create-hosted-zone','route53CreateHostedZone','1796712hfxCoH','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','7698MLEFmT','maka\x20aws:chz\x20--domain=example.com','apply','264672fJLlPb','1520iEtsNz','Set\x20hosted\x20zone\x20to\x20an\x20instance?','3858645JbMbeB','(((.+)+)+)+$','search','4131168sQaBrs','5026sLMTHl','domain','1012197EHQRgO','publicIp','chz','Instance\x20not\x20found'];a5c=function(){return n;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x157;let f=c[d];return f;},a5d(a,b);}Command[a5l(0x16a)]({'name':a5l(0x16f),'aliases':[a5l(0x166)],'usage':a5l(0x172),'requiredOpts':[a5l(0x163)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5l(0x157),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a5l(0x159)]},async function(a,b){const m=a5l;try{const c=b[m(0x163)],d=new AWS();d[m(0x173)](c);const f=await Actions[m(0x169)](m(0x15d));if(f){const g=await d[m(0x16b)]();if(g?.['id']){if(!g[m(0x165)])throw Log[m(0x171)](m(0x168));d[m(0x16c)](g['id'],g[m(0x165)],c);}else throw Log[m(0x171)](m(0x167));}}catch(h){console['error'](h),process['exit'](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1da))/0x1+-parseInt(ae(0x1a8))/0x2+parseInt(ae(0x1d6))/0x3+parseInt(ae(0x1b9))/0x4+parseInt(ae(0x1ed))/0x5+-parseInt(ae(0x193))/0x6+-parseInt(ae(0x1c6))/0x7*(parseInt(ae(0x1c9))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x2f44e));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(0x19d)]()[af(0x1b1)](af(0x1e2))[af(0x19d)]()[af(0x198)](a6a)[af(0x1b1)](af(0x1e2));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';function a6c(){const at=['t3.micro','692470YzXjRf','forEach','bright','parse','deleteSecurityGroup','subnet','Security\x20Group:\x20','Creating\x20user\x20data\x20file\x20in\x20','push','success','\x20SGID:\x20','maka\x20aws:ci\x20--env\x20prod','string','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','662160WKcbcC','split','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ImageID:','constructor','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','getConfigPath','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','sort','toString','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=*','Remove\x20the\x20keypair\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','sgId','readFileSync','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x20CIDR:\x20','ec2createSG','amazon','Would\x20you\x20like\x20to\x20include\x20user\x20data?','651046ZymKLd','maka-cli','user-data','getTime','Setting\x20AMI\x20ID\x20to\x20','\x20DESCRIPTION:\x20','EC2\x20Name:\x20[','cidr','date','search','**\x20Available\x20AMIs\x20**','getProjectConfig','name','ask','confirm','fsi','number','1513256EEKcSr','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','alias','create-instance','desc','build\x20on\x20','ec2create','amiId','\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','Instance\x20Count:\x20','notice','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20AMIID:\x20','21pmdGPN','ec2describeKeys','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','34232kLQjWp','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Setting\x20SG\x20ID\x20to:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','unlinkSync','join','error','1:1','Name','chooseVPC','created-by','log','764496GzjQFx','22,80,443','No\x20instance\x20has\x20been\x20created.','getSecurityGroups','129306xhUypj','Web\x20App','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','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--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20SG\x20NAME:\x20','Setting\x20the\x20key-pair\x20to:\x20','Remove\x20the\x20security\x20group\x20','(((.+)+)+)+$','ID:\x20','**\x20Available\x20Security\x20Groups\x20**','Desc','deleteKeyPair','Key-Pair:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','env','**\x20Available\x20key-pairs\x20**','subnetId'];a6c=function(){return at;};return a6c();}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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x191;let f=c[d];return f;},a6d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a6ag(0x1bc),'aliases':['ci'],'usage':'maka\x20aws:create-instance\x20<opts>','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x1f8)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1e9)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ag(0x1c1)},async function(a,b){const ah=a6ag;try{const c=this['fsi'][ah(0x1b3)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x1b7)]['getConfigFromShorthand'](b['env']),i=this[ah(0x1b7)][ah(0x19a)](h),j=g+'-'+h,k=await Actions[ah(0x1b5)](ah(0x1ae)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x1b6)](ah(0x1a3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0x1f6)](ah(0x1e0)+r);}else try{Log['notice'](ah(0x1ea));const A=r?r:k,B=await d[ah(0x1c7)]({'suggestion':A}),C=await Actions['ask'](ah(0x1cc))||'-1';if(parseInt(C)<0x0){Log[ah(0x1d0)](ah(0x1dd)),Log[ah(0x1c3)](ah(0x1d8));return;}B?.[ah(0x1ee)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x1b4)],Log[ai(0x1f6)](ai(0x1e0)+r));});}catch(D){Log[ah(0x1d0)](D);}l=await d[ah(0x1d3)]();const t=await Actions['confirm'](ah(0x192),!![]);let u;if(t){const E=l===''?await d[ah(0x1d3)]():l;u=await Actions[ah(0x1b5)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ah(0x1ca))||ah(0x1d7),G=F[ah(0x194)](',');await d[ah(0x1a5)]({'description':ah(0x1db),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x1d9)](u);if(I===''){Log['notice'](ah(0x1e4)),J[ah(0x1ee)](function(L){const aj=ah;L[aj(0x1b4)]===u?Log[aj(0x1c3)](aj(0x1e3)+L['id']+aj(0x1df)+L[aj(0x1b4)]+aj(0x1f7)+L[aj(0x1a1)]):Log[aj(0x1ef)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0x1f7)+L[aj(0x1a1)]);});const K=await Actions['ask'](ah(0x1a0)+H+']\x20')||H[ah(0x19d)]();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1a1)],Log['success'](ak(0x1cb)+m+'\x0a'));});}else m=I,Log[ah(0x1f6)](ah(0x1cb)+m+'\x0a');if(m==='')throw Log[ah(0x1d0)](ah(0x195));}catch(L){Log[ah(0x1d0)](L);}try{const M=0x7e6;Log[ah(0x1c3)](ah(0x1b2));const N=execSync(ah(0x19e)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ah(0x19d)](),O=JSON[ah(0x1f0)](N),P=[],Q=[];O[ah(0x1ee)](function(S){const al=ah;if(S[al(0x1bb)]===al(0x1a6)){const T=S[al(0x1e5)][al(0x194)](al(0x1be))[0x1];P[al(0x1f5)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0x19c)](function(S,T){const am=ah;return new Date(T[am(0x1b0)])[am(0x1ab)]()-new Date(S[am(0x1b0)])[am(0x1ab)]();}),P[ah(0x1ee)](function(S,T){const an=ah;Q[an(0x1f5)]({'id':T,'amiId':S[an(0x1c0)],'desc':S[an(0x1bd)]});}),Q['forEach'](function(S){const ao=ah;console[ao(0x1d5)](ao(0x1e3)+S['id']+ao(0x1c5)+S['amiId']+ao(0x1ad)+S[ao(0x1bd)]);});const R=await Actions['ask'](ah(0x196))||'0';Q[ah(0x1ee)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x1c0)],Log[ap(0x1f6)](ap(0x1ac)+n+'\x20:\x20'+S[ap(0x1bd)]));});if(n==='')throw Log[ah(0x1d0)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ah(0x1d0)](S);}try{Log[ah(0x1c3)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x19b))[ah(0x19d)](),U=JSON[ah(0x1f0)](T),V=[];U[ah(0x1ee)](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x1eb)]});}),V[ah(0x1ee)](function(X){const ar=ah;console[ar(0x1d5)](ar(0x1e3)+X['id']+ar(0x1a4)+X[ar(0x1af)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ah(0x1b5)](ah(0x1c8))||'0';V[ah(0x1ee)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1eb)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x1d0)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x1b5)](ah(0x1e8))||ah(0x1d1),Z=Y[ah(0x194)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ah(0x1b8)&&typeof parseInt(a0)===ah(0x1b8)&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x1d0)](a1);}try{const a2=await Actions[ah(0x1b5)](ah(0x1ba))||ah(0x1ec);typeof a2===ah(0x191)&&(o=a2);}catch(a3){Log[ah(0x1d0)](a3);}let x;try{const a4=await Actions[ah(0x1b6)](ah(0x1a7),![]);a4&&(x=a6f[ah(0x1cf)](i,ah(0x1aa)),Log[ah(0x1c3)](ah(0x1f4)+x),await this[ah(0x1b7)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0x1b6)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log['error'](a5);}try{const a6=JSON[ah(0x1f0)](execSync(ah(0x1cd)+p+ah(0x1de))[ah(0x19d)]())[0x0][ah(0x1f2)];Log[ah(0x1c3)](ah(0x197)+n),Log['notice'](ah(0x1c2)+v+':'+w),Log[ah(0x1c3)]('Instace\x20Type:\x20'+o),Log[ah(0x1c3)](ah(0x1e7)+r),Log['notice'](ah(0x1f3)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ah(0x1c3)]('User\x20Data:'+x);const a8=a6g[ah(0x1a2)](x);Log['notice'](a8);}const a7=await Actions[ah(0x1b6)](ah(0x199));if(a7){const a9=await d[ah(0x1bf)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x1d4),'Value':ah(0x1a9)},{'Key':'environment','Value':h},{'Key':ah(0x1d2),'Value':k}],...x&&{'userData':x}});a9&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0x1ef)](ah(0x1dc)));}else{Log[ah(0x1c3)](ah(0x1c4));const aa=await Actions[ah(0x1b6)](ah(0x19f)+r+'\x20?',!![]);aa&&(d[ah(0x1e6)](r),f['isFile'](s)&&a6g[ah(0x1ce)](s));const ab=await Actions[ah(0x1b6)](ah(0x1e1)+m+'\x20?',!![]);ab&&d[ah(0x1f1)](m);}}catch(ac){console[ah(0x1d5)](ac),Log[ah(0x1d0)](ac);}}catch(ad){console[ah(0x1d0)](ad),process['exit'](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x20a))/0x1*(-parseInt(ae(0x1bc))/0x2)+-parseInt(ae(0x1e3))/0x3+-parseInt(ae(0x211))/0x4+parseInt(ae(0x1de))/0x5*(-parseInt(ae(0x1ee))/0x6)+-parseInt(ae(0x1f0))/0x7*(parseInt(ae(0x21f))/0x8)+-parseInt(ae(0x207))/0x9*(parseInt(ae(0x1d1))/0xa)+-parseInt(ae(0x1ea))/0xb*(-parseInt(ae(0x1e6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x5dfc8));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x200)]()[ag(0x1fe)](ag(0x1ec))[ag(0x200)]()[ag(0x1ed)](a6a)[ag(0x1fe)](ag(0x1ec));});a6a();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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a6d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x20f)]({'name':a6ah(0x1f6),'aliases':['ci'],'usage':a6ah(0x214),'examples':[a6ah(0x21a),a6ah(0x1c4)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x1f4)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0x1df),'description':a6ah(0x1cc)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x1dd)][ai(0x1fd)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1dd)][ai(0x1cf)](b[ai(0x1f4)]),i=this[ai(0x1dd)]['getConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1fb)](ai(0x1e0)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x21c)](ai(0x1d0),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x210)]({'env':h});r=y,s=z,Log[ai(0x217)](ai(0x221)+r);}else try{Log['notice']('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x1bd)]({'suggestion':A}),C=await Actions[ai(0x1fb)](ai(0x1c1))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x1d7)),Log[ai(0x1f5)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1dc)],Log[aj(0x217)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x20e)](D);}l=await d[ai(0x1f1)]();const t=await Actions['confirm'](ai(0x201),!![]);let u;if(t){const E=l===''?await d[ai(0x1f1)]():l;u=await Actions['ask'](ai(0x222)+k+']')||k;const F=await Actions[ai(0x1fb)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F['split'](',');await d[ai(0x1d9)]({'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['notice'](ai(0x218)),J['forEach'](function(L){const ak=ai;L['name']===u?Log[ak(0x1f5)](ak(0x206)+L['id']+ak(0x225)+L[ak(0x1dc)]+ak(0x1d4)+L[ak(0x1fa)]):Log['bright'](ak(0x206)+L['id']+ak(0x225)+L[ak(0x1dc)]+ak(0x1d4)+L[ak(0x1fa)]);});const K=await Actions[ai(0x1fb)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x200)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x217)](al(0x1e8)+m+'\x0a'));});}else m=I,Log[ai(0x217)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x20e)](ai(0x1fc));}catch(L){Log[ai(0x20e)](L);}try{const M=0x7e6;Log[ai(0x1f5)](ai(0x21b));const N=execSync(ai(0x1ef)+M+ai(0x1c8))[ai(0x200)](),O=JSON[ai(0x203)](N),P=[],Q=[];O[ai(0x1d6)](function(S){const am=ai;if(S[am(0x1c0)]===am(0x1e7)){const T=S[am(0x21e)][am(0x20b)](am(0x215))[0x1];P['push']({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x1f8)](function(S,T){const an=ai;return new Date(T[an(0x1ce)])[an(0x1d2)]()-new Date(S[an(0x1ce)])[an(0x1d2)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x1bf)]({'id':T,'amiId':S[ao(0x21d)],'desc':S[ao(0x1b9)]});}),Q[ai(0x1d6)](function(S){const ap=ai;console['log'](ap(0x206)+S['id']+ap(0x1f7)+S[ap(0x21d)]+'\x20DESCRIPTION:\x20'+S[ap(0x1b9)]);});const R=await Actions[ai(0x1fb)](ai(0x1d3))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x21d)],Log[aq(0x217)](aq(0x20d)+n+aq(0x1f3)+S[aq(0x1b9)]));});if(n==='')throw Log[ai(0x20e)](ai(0x1fc));}catch(S){Log['error'](S);}try{Log[ai(0x1f5)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x1d5))[ai(0x200)](),U=JSON[ai(0x203)](T),V=[];U[ai(0x1d6)](function(X,Y){const ar=ai;V[ar(0x1bf)]({'id':Y,'cidr':X[ar(0x216)],'az':X['az'],'subnetId':X[ar(0x1da)]});}),V[ai(0x1d6)](function(X){const as=ai;console[as(0x1cd)](as(0x206)+X['id']+as(0x224)+X[as(0x220)]+as(0x1c6)+X['az']+as(0x209)+X[as(0x1da)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1da)],Log[at(0x217)](at(0x219)+p));});if(p==='')throw Log[ai(0x20e)](ai(0x1fc));}catch(X){Log[ai(0x20e)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1fb)](ai(0x1c7))||'1:1',Z=Y[ai(0x20b)](':')[0x0],a0=Y[ai(0x20b)](':')[0x1];typeof parseInt(Z)===ai(0x1cb)&&typeof parseInt(a0)===ai(0x1cb)&&Log[ai(0x217)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x20e)](a1);}try{const a2=await Actions[ai(0x1fb)](ai(0x1ff))||ai(0x1c2);typeof a2===ai(0x223)&&(o=a2);}catch(a3){Log[ai(0x20e)](a3);}let x;try{const a4=await Actions['confirm'](ai(0x1e2),![]);a4&&(x=a6f['join'](i,'user-data'),Log[ai(0x1f5)](ai(0x1ba)+x),await this[ai(0x1dd)][ai(0x213)]({'filePath':x,'data':''}),await Actions[ai(0x21c)](ai(0x204)));}catch(a5){Log[ai(0x20e)](a5);}try{const a6=JSON[ai(0x203)](execSync(ai(0x202)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x200)]())[0x0][ai(0x205)];Log[ai(0x1f5)](ai(0x1e4)+n),Log[ai(0x1f5)](ai(0x1db)+v+':'+w),Log[ai(0x1f5)](ai(0x1f9)+o),Log[ai(0x1f5)](ai(0x1e5)+r),Log[ai(0x1f5)](ai(0x1bb)+m),Log[ai(0x1f5)]('Subnet:\x20'+a6);if(x){Log[ai(0x1f5)](ai(0x1d8)+x);const a8=a6g[ai(0x1c5)](x);Log[ai(0x1f5)](a8);}const a7=await Actions[ai(0x21c)](ai(0x1e9));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1f2),'Value':'maka-cli'},{'Key':ai(0x1eb),'Value':h},{'Key':ai(0x1ca),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x217)](ai(0x212)),Log['bright'](ai(0x208)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0x1c3)+r+'\x20?',!![]);aa&&(d[ai(0x20c)](r),f['isFile'](s)&&a6g[ai(0x1c9)](s));const ab=await Actions[ai(0x21c)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console[ai(0x1cd)](ac),Log[ai(0x20e)](ac);}}catch(ad){console[ai(0x20e)](ad),process[ai(0x1e1)](0x0);}},a6e);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=*','89859OtuEeE','chooseVPC','created-by','\x20:\x20','env','notice','create-instance','\x20AMIID:\x20','sort','Instace\x20Type:\x20','sgId','ask','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getProjectConfig','search','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','toString','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','parse','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','subnet','ID:\x20','126uSRtBT','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SUBNETID:\x20','26zFiuMk','split','deleteKeyPair','Setting\x20AMI\x20ID\x20to\x20','error','create','createKeyPair','765684xbJdUE','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createFile','maka\x20aws:create-instance\x20<opts>','build\x20on\x20','cider','success','**\x20Available\x20Security\x20Groups\x20**','Setting\x20Subnet\x20ID\x20to\x20','maka\x20aws:create-instance\x20--env\x20dev','**\x20Available\x20AMIs\x20**','confirm','amiId','Desc','352PtbxZg','cidr','Setting\x20the\x20key-pair\x20to:\x20','Security\x20Group\x20Name:\x20[','string','\x20CIDR:\x20','\x20SG\x20NAME:\x20','desc','Creating\x20user\x20data\x20file\x20in\x20','Security\x20Group:\x20','54152oJHvow','ec2describeKeys','apply','push','alias','Please\x20choose\x20a\x20key\x20to\x20use:\x20','t3.micro','Remove\x20the\x20keypair\x20','maka\x20aws:ci\x20--env\x20prod','readFileSync','\x20AZONE:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\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','unlinkSync','Name','number','\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','log','date','getConfigFromShorthand','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','293910bPYYrv','getTime','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SGID:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','forEach','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','User\x20Data:','ec2createSG','subnetId','Instance\x20Count:\x20','name','fsi','140vvKRct','Create\x20new\x20AWS\x20instance','EC2\x20Name:\x20[','exit','Would\x20you\x20like\x20to\x20include\x20user\x20data?','101670sdLROI','ImageID:','Key-Pair:\x20','2148kOdjHB','amazon','Setting\x20SG\x20ID\x20to:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','176165iCZDsI','environment','(((.+)+)+)+$','constructor','123456aDhyyW'];a6c=function(){return au;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7i=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x19a))/0x1+-parseInt(g(0x18e))/0x2+parseInt(g(0x19c))/0x3+-parseInt(g(0x19f))/0x4*(parseInt(g(0x190))/0x5)+-parseInt(g(0x195))/0x6+-parseInt(g(0x198))/0x7+parseInt(g(0x197))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9c9d5));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(0x193)]()[h(0x196)](h(0x18d))[h(0x193)]()['constructor'](a7a)['search'](h(0x18d));});function a7c(){const k=['4jaYwFv','\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','(((.+)+)+)+$','234376gqAhQd','fsi','826005YXpHri','env','getConfigFromShorthand','toString','exit','7519254oSTOhI','search','13896064nvpsJq','8951957HORmPt','maka\x20aws:create-key-pair\x20<opts>','883407LaVnRF','create','2506581tcqqyV','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','maka\x20aws:create-key-pair\x20--env\x20prod'];a7c=function(){return k;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x18c;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';Command[a7i(0x19b)]({'name':'create-key-pair','aliases':['ckp'],'usage':a7i(0x199),'examples':[a7i(0x19e),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7i(0x191)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x19d),'description':a7i(0x18c)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this[j(0x18f)][j(0x192)](b[j(0x191)]);c['createKeyPair']({'env':d});}catch(f){console['error'](f),process[j(0x194)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x1e2))/0x1*(parseInt(m(0x1e8))/0x2)+-parseInt(m(0x1d0))/0x3*(-parseInt(m(0x1cf))/0x4)+-parseInt(m(0x1df))/0x5+-parseInt(m(0x1e9))/0x6+-parseInt(m(0x1d7))/0x7+parseInt(m(0x1e1))/0x8+parseInt(m(0x1d9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x34944));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const n=a8d;return a8a[n(0x1ea)]()[n(0x1e5)](n(0x1d1))['toString']()['constructor'](a8a)[n(0x1e5)](n(0x1d1));});function a8c(){const r=['ec2createSG','create','csg','22,80,443','create-security-group','362945VFUfhN','maka\x20aws\x20create-security-group','58392BIzYMp','216911uXLMys','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','forEach','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\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','2ZDciRc','2009970TKUtmj','toString','match','split','220588sHqpyy','3GvZOVP','(((.+)+)+)+$','name','ask','error','Web\x20App','chooseVPC','2366854vNIfJM','maka\x20aws:create-secuirty-group','6135417daKRHF'];a8c=function(){return r;};return a8c();}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1ce;let f=c[d];return f;},a8d(a,b);}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[a8o(0x1db)]({'name':a8o(0x1de),'aliases':[a8o(0x1dc)],'usage':a8o(0x1e0),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8o(0x1e3),'description':a8o(0x1e7),'examples':[a8o(0x1d8),'maka\x20aws:csg']},async function(a,b){const p=a8o;try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d,g=await c[p(0x1d6)](),h=b['name']?b[p(0x1d2)]:''+f,i=await Actions[p(0x1d3)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[p(0x1d3)](p(0x1e6))||p(0x1dd),k=j[p(0x1ce)](',');k[p(0x1e4)](l=>{const q=p;if(!l[q(0x1eb)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[p(0x1da)]({'description':p(0x1d5),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0x1d4)](l),process['exit'](0x1);}},a8e);
|
|
@@ -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(0x74))/0x1*(parseInt(f(0x70))/0x2)+parseInt(f(0x7a))/0x3*(parseInt(f(0x67))/0x4)+-parseInt(f(0x73))/0x5*(-parseInt(f(0x72))/0x6)+parseInt(f(0x76))/0x7+parseInt(f(0x71))/0x8+parseInt(f(0x75))/0x9*(parseInt(f(0x7d))/0xa)+-parseInt(f(0x6a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x62c8b));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x66;let f=c[d];return f;},a9d(a,b);}function a9c(){const k=['475630suliuy','ec2describeInstances','30812hvMSSW','exit','toString','25387153ReHDde','maka\x20aws:di','maka\x20aws:describe-instances','describe-instances','apply','search','90652AMJWbU','1931488luREDv','1519428kHoAhU','15qIBbOA','6gYmihP','126bsXXom','4638977FiQsAb','create','\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','(((.+)+)+)+$','255Bpsbsd','constructor','error'];a9c=function(){return k;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x6e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a['toString']()['search'](h(0x79))[h(0x69)]()[h(0x7b)](a9a)[h(0x6f)](h(0x79));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9i(0x77)]({'name':a9i(0x6d),'aliases':['di'],'usage':a9i(0x6c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x6c),a9i(0x6b)],'description':a9i(0x78)},async function(){const j=a9i;try{const a=new AWS();a[j(0x66)]();}catch(b){console[j(0x7c)](b),process[j(0x68)](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1f9))/0x1+parseInt(f(0x203))/0x2*(-parseInt(f(0x200))/0x3)+-parseInt(f(0x1f5))/0x4*(parseInt(f(0x201))/0x5)+parseInt(f(0x1ff))/0x6+parseInt(f(0x1f8))/0x7+-parseInt(f(0x1fe))/0x8+parseInt(f(0x204))/0x9*(parseInt(f(0x1fa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x1996c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1f6)]()[h(0x1fc)](h(0x1f4))[h(0x1f6)]()['constructor'](a10a)[h(0x1fc)](h(0x1f4));});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-0x1f3;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['dkp','search','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','1047528DYGvDg','315156Idibeu','2127MmRrKc','28345VIAHAI','ec2describeKeys','20wYvHTS','9XOKqgp','maka\x20aws:describe-key-pairs','(((.+)+)+)+$','36OYcHwX','toString','apply','227017GpqBOY','202919ilqRVG','4118260CoGdZN'];a10c=function(){return k;};return a10c();}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a10i(0x1fb)],'usage':a10i(0x1f3),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0x1fd),'examples':[a10i(0x1f3),'maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a[j(0x202)]();}catch(b){console['error'](b),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11n=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x185))/0x1+parseInt(l(0x190))/0x2+-parseInt(l(0x184))/0x3*(parseInt(l(0x18c))/0x4)+parseInt(l(0x183))/0x5+parseInt(l(0x189))/0x6+parseInt(l(0x186))/0x7+-parseInt(l(0x199))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5cb0d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const m=a11d;return a11a[m(0x192)]()[m(0x181)](m(0x18a))[m(0x192)]()['constructor'](a11a)[m(0x181)](m(0x18a));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const q=['name','deleteSecurityGroup','confirm','\x20SGID:\x20','Not\x20deleting\x20secuirty\x20group','Deleting\x20a\x20','notice','error','search','exit','175435KCtiVH','126Tcipew','116789CAbglR','1988112nGwowq','Deleted\x20','ID:\x20','3440460FXYuvr','(((.+)+)+)+$','includes','25416exgtgE','getProjectConfig','sgId','\x20SG\x20NAME:\x20','1042058PtSTuE','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','toString','forEach','delete-security-group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','dsg','success','maka\x20aws:delete-sg','7070416VtCmPD','isMakaProject'];a11c=function(){return q;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x17d;let f=c[d];return f;},a11d(a,b);}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['create']({'name':a11n(0x194),'aliases':[a11n(0x196)],'usage':a11n(0x198),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const o=a11n;try{const a=new AWS(),b=new FSI(),c=b[o(0x19a)]();let d='';if(c){const j=b[o(0x18d)]();d=j['appName'];}const {sgList:f}=await a['getSecurityGroups']();f[o(0x193)](function(k){const p=o;c&&k[p(0x19b)][p(0x18b)](d)?Log[p(0x17f)]('ID:\x20'+k['id']+p(0x18f)+k[p(0x19b)]+p(0x19e)+k[p(0x18e)]):Log['bright'](p(0x188)+k['id']+p(0x18f)+k[p(0x19b)]+p(0x19e)+k[p(0x18e)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[o(0x193)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[o(0x180)](o(0x195));const i=await Actions[o(0x19d)](o(0x17e)+g+o(0x191),![]);i?(await a[o(0x19c)](g),Log[o(0x197)](o(0x187)+g)):Log['error'](o(0x17d)),process[o(0x182)](0x0);}catch(k){process[o(0x182)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xdb))/0x1+-parseInt(f(0xec))/0x2+parseInt(f(0xee))/0x3*(-parseInt(f(0xf5))/0x4)+-parseInt(f(0xdf))/0x5*(-parseInt(f(0xe4))/0x6)+parseInt(f(0xea))/0x7*(-parseInt(f(0xda))/0x8)+-parseInt(f(0xf7))/0x9*(parseInt(f(0xe1))/0xa)+parseInt(f(0xf8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xa7e63));function a12c(){const k=['There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','927080BXADZv','chooseInstance','11073YjQjVL','name','\x20is\x20still\x20running.','create','Reboot\x20an\x20EC2\x20instance','instanceId','apply','1152mZvwHE','exit','297WRFZSm','21578568DSqFTj','maka\x20aws:rbi','(((.+)+)+)+$','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','status','3196616FmHhps','654515CUxZZp','maka\x20aws:reboot-instance','search','ec2rebootInstance','5xiPzPF','rbi','301970hoBKIZ','confirm','error','5964828rJNmFm','toString','constructor','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','\x20Ready?','reboot-instance','7OoDAJx'];a12c=function(){return k;};return a12c();}function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xd8;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(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xe5)]()[h(0xdd)](h(0xfa))['toString']()[h(0xe6)](a12a)[h(0xdd)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xf1)]({'name':a12i(0xe9),'aliases':[a12i(0xe0)],'usage':a12i(0xdc),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xf2),'examples':[a12i(0xdc),a12i(0xf9)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xed)]();if(b?.[j(0xd9)]==='running'){const c=await Actions[j(0xe2)](j(0xe7)+b[j(0xef)]+j(0xe8));c&&b[j(0xf3)]?a[j(0xde)]({'instanceId':b[j(0xf3)]}):Log['error'](j(0xd8)+b[j(0xef)]+j(0xf0));}else Log['error'](j(0xeb));}catch(d){console[j(0xe3)](d),process[j(0xf6)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13H=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
const a13H=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x1c5))/0x1*(-parseInt(E(0x1b5))/0x2)+parseInt(E(0x1af))/0x3*(-parseInt(E(0x191))/0x4)+-parseInt(E(0x1bc))/0x5+parseInt(E(0x1a1))/0x6*(-parseInt(E(0x1c8))/0x7)+-parseInt(E(0x193))/0x8+-parseInt(E(0x1ab))/0x9+parseInt(E(0x19a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x6e1f7));function a13c(){const J=['49972IQlQSl','checkDomainAvailability','\x20for\x20','list','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','RESELLER','Domain\x20name\x20is\x20unavailable','676660ZTHCFg','rdn','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Email\x20[mail@example.com]:\x20','\x20years\x20(','Auto\x20Renew:\x20','domain','My\x20Comanpy,\x20LLC.','warn','26eZOTlJ','notice','Choose\x20contact\x20type','7lwJEbT','search','Contact','values','Are\x20you\x20sure?','Invalid\x202\x20character\x20country\x20code','PERSON','maka\x20aws:register-domain-name','6684wgTWXa','registerDomain','1110584IFrshv','ask','confirm','toString','Country\x20Code\x20[US]:\x20','State\x20[HI]:\x20','Person','24352040nwKxWo','Address\x20Line\x202:\x20','Contact\x20First\x20Name\x20[Contact]:\x20','\x20/\x20Year)','+1.5555555556','includes','The\x20domain\x20name:\x20','500064lrtEdq','OrganizationName','maka\x20aws:rdn\x20--domain=example.com','mail@example.com','error','ASSOCIATION','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','COMPANY','options','4702446dkpuSJ','Duration\x20in\x20years\x20[1]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','816JbYFbv','register-domain-name','constructor','123\x20Glorious\x20Way','(((.+)+)+)+$','96816'];a13c=function(){return J;};return a13c();}const a13b=(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;};}()),a13a=a13b(this,function(){const F=a13d;return a13a[F(0x196)]()[F(0x1c9)](F(0x1b3))[F(0x196)]()[F(0x1b1)](a13a)['search'](F(0x1b3));});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-0x18f;let f=c[d];return f;},a13d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a13d;return Object[G(0x1cb)](CountryCode)[G(0x19f)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13H(0x1b0),'aliases':[a13H(0x1bd)],'usage':a13H(0x190),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a13H(0x1a8),a13H(0x1a3)]},async function(a,b){const I=a13H;try{const c=b[I(0x1c2)],d=new AWS(),{available:f,cost:g}=await d[I(0x1b6)](c);if(f&&g){Log[I(0x1c6)](I(0x1a0)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0x1c4)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[I(0x195)](I(0x1be)+c+'\x20?',![]);if(j){const k={'type':I(0x1b8),'name':'contactType','message':I(0x1c7),'choices':[I(0x1a6),I(0x1a9),I(0x18f),'PUBLIC_BODY',I(0x1ba)]},l=await Actions[I(0x194)](I(0x1ac))||'1',m=await Actions[I(0x194)](I(0x19c))||I(0x1ca),n=await Actions['ask']('Contact\x20Last\x20Name\x20[Person]:\x20')||I(0x199),{contactType:o}=await Actions[I(0x1aa)](k),p=await Actions[I(0x194)](I(0x1ae))||I(0x1b2),q=await Actions['ask'](I(0x19b)),r=await Actions[I(0x194)]('Zip\x20Code\x20[96816]:\x20')||I(0x1b4),s=await Actions[I(0x194)](I(0x198))||'HI',t=await Actions[I(0x194)](I(0x197))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1a5)](I(0x1cd));const v=await Actions[I(0x194)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||'+1.5555555555',w=await Actions[I(0x194)](I(0x1a7))||I(0x19e),x=await Actions[I(0x194)](I(0x1bf))||I(0x1a4),y=await Actions['confirm'](I(0x1c1)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x18f)){const C=await Actions[I(0x194)](I(0x1ad))||I(0x1c3);z[I(0x1a2)]=C;}const A=h||0x0*parseInt(l);Log[I(0x1c6)](I(0x1b9)),Log[I(0x1c4)](A+'\x20'+i+I(0x1b7)+l+I(0x1c0)+h+'\x20'+i+I(0x19d));const B=await Actions[I(0x195)](I(0x1cc));B&&await d[I(0x192)](z,c,parseInt(l),y);}}else throw Log[I(0x1a5)](I(0x1bb));}catch(D){console[I(0x1a5)](D),process['exit'](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14j=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x1d0))/0x1*(-parseInt(h(0x1cb))/0x2)+parseInt(h(0x1c2))/0x3*(parseInt(h(0x1ca))/0x4)+parseInt(h(0x1cc))/0x5*(-parseInt(h(0x1c1))/0x6)+-parseInt(h(0x1d4))/0x7*(-parseInt(h(0x1d9))/0x8)+parseInt(h(0x1c5))/0x9+parseInt(h(0x1d5))/0xa+-parseInt(h(0x1cf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xafffa));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']()[i(0x1ce)]('(((.+)+)+)+$')[i(0x1d8)]()[i(0x1d6)](a14a)[i(0x1ce)](i(0x1d7));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const m=['132456IzCSVe','deleteKeyPair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleting\x20a\x20','36OgWzYm','32073PERECt','confirm','remove-key-pair','11942775TIzrGe','ask','maka\x20aws:rkp','name','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','468fmemhG','10KdIHue','340495pMYPyh','Not\x20deleting\x20keypair','search','42402294ErhsGM','189892uKCeZm','ec2describeKeys','create','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','406pMVjKX','4966500rbVBJd','constructor','(((.+)+)+)+$','toString'];a14c=function(){return m;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14j(0x1d2)]({'name':a14j(0x1c4),'aliases':['rkp'],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14j(0x1c9),'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':['maka\x20aws:remove-key-pair',a14j(0x1c7)]},async function(){const k=a14j;try{const a=new AWS(),b=await a[k(0x1d1)]();let c=undefined;const d=await Actions[k(0x1c6)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x1c8)]);});if(!c)throw Log['error'](k(0x1bf));const f=await Actions[k(0x1c3)](k(0x1c0)+c+k(0x1d3),![]);f?(await a[k(0x1da)](c),Log['success']('Deleted\x20'+c)):Log['error'](k(0x1cd)),process['exit'](0x0);}catch(g){process['exit'](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x133))/0x1+-parseInt(l(0x146))/0x2+-parseInt(l(0x131))/0x3*(-parseInt(l(0x14a))/0x4)+parseInt(l(0x134))/0x5*(-parseInt(l(0x140))/0x6)+-parseInt(l(0x127))/0x7*(-parseInt(l(0x136))/0x8)+parseInt(l(0x12e))/0x9+-parseInt(l(0x137))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa65d9));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x12d)]()[n(0x149)]('(((.+)+)+)+$')['toString']()['constructor'](a15a)[n(0x149)]('(((.+)+)+)+$');});function a15c(){const q=['sep','writeFileSync','2141466ELUVpm','exit','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','isFile','fsi','1703210jutQrW','maka\x20aws\x20set-host','ssh.json','search','592GQjSSq','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','getProjectConfig','set-host','create','sth','env','join','error','public','\x20IP\x20to\x20','parse','ask','8665223mPdmTd','template','publicIp','readFileSync','appName','success','toString','4540059ofgZwM','host','maka\x20aws:set-host\x20--env\x20dev','3087YMRLqc','inherit','721372HPnBkk','10tOOjyI','apply','8GfHLdo','3691440PrdFUk','cat\x20','maka\x20aws:sth\x20--env\x20prod','stringify','private','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','privateIp'];a15c=function(){return q;};return a15c();}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-0x120;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(0x14e)]({'name':a15o(0x14d),'aliases':[a15o(0x14f)],'usage':a15o(0x147),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x120)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x14b),'description':a15o(0x142),'examples':[a15o(0x130),a15o(0x139)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this['fsi']['getConfigPath'](b['env']),f=this['fsi'][p(0x14c)](),g=await c['chooseInstance'](),h=a15e[p(0x121)](d,p(0x148));!this[p(0x145)][p(0x144)](h)&&await this[p(0x145)][p(0x128)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x12b)]},'config':f});const i=JSON[p(0x125)](a15f[p(0x12a)](h,'utf8')),j=await Actions[p(0x126)](p(0x13c))||p(0x123);if(j){if(j===p(0x123)||j===p(0x13b)){if(j===p(0x123))i[p(0x12f)]=g?.[p(0x129)];else j===p(0x13b)&&(i['host']=g?.[p(0x13d)]);}else throw p(0x143);}else i[p(0x12f)]=g?.[p(0x13d)];a15f[p(0x13f)](a15e[p(0x121)](d,p(0x148)),JSON[p(0x13a)](i,null,0x2)),execSync(p(0x138)+a15e[p(0x121)](d,'ssh.json'),{'stdio':p(0x132)}),Log[p(0x12c)]('\x0aSaved\x20host\x20'+j+p(0x124)+d+a15e[p(0x13e)]+p(0x148));}catch(k){console[p(0x122)](k),process[p(0x141)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a16d(a,b);}function a16c(){const k=['maka\x20aws:terminate-instance','154516oHPBlE','434fdMnFr','status','exit','name','apply','chooseInstance','maka\x20aws:ti','20OQQdqb','1598016LCIvaI','toString','terminate-instance','322893CqBTSP','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','search','Terminate\x20an\x20EC2\x20instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','confirm','\x20Ready?','215118jNGQYu','(((.+)+)+)+$','10fwKwDF','570729ecQzvo','ec2terminateInstance','constructor','running','97112vnnUQj','instanceId','16936ltVASw'];a16c=function(){return k;};return a16c();}const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x1af))/0x1+parseInt(f(0x1a8))/0x2+-parseInt(f(0x1ab))/0x3+-parseInt(f(0x1b3))/0x4*(-parseInt(f(0x1aa))/0x5)+parseInt(f(0x1bc))/0x6+parseInt(f(0x1b4))/0x7*(-parseInt(f(0x1b1))/0x8)+-parseInt(f(0x1bf))/0x9*(parseInt(f(0x1bb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x25d86));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x1bd)]()[h(0x1a3)]('(((.+)+)+)+$')[h(0x1bd)]()[h(0x1ad)](a16a)[h(0x1a3)](h(0x1a9));});a16a();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';Command['create']({'name':a16i(0x1be),'aliases':['ti'],'usage':a16i(0x1b2),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16i(0x1a4),'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',a16i(0x1ba)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x1b9)]();if(b?.[j(0x1b0)]&&b?.[j(0x1b5)]===j(0x1ae)){const c=await Actions[j(0x1a6)](j(0x1a5)+b[j(0x1b7)]+j(0x1a7));c?a[j(0x1ac)]({'instanceId':b[j(0x1b0)]}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x1b7)]+j(0x1a2));}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x1a1)](d),process[j(0x1b6)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0xff))/0x1*(parseInt(f(0x103))/0x2)+-parseInt(f(0x105))/0x3+-parseInt(f(0x107))/0x4+-parseInt(f(0x100))/0x5*(parseInt(f(0xfd))/0x6)+-parseInt(f(0x102))/0x7+-parseInt(f(0x108))/0x8+parseInt(f(0x10a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x8074b));function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0xfd;var f=c[d];return f;},a17d(a,b);}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0xfe)]()[h(0x109)](h(0x106))[h(0xfe)]()[h(0x101)](a17a)[h(0x109)](h(0x106));});a17a();function a17c(){var i=['constructor','1697010fSSPPc','367274VXTXbg','apply','1753374jDUXsj','(((.+)+)+)+$','2462504tYIZoZ','3986944mRYNfK','search','32763294aXQnQo','1992vCClYc','toString','1vgsdiW','14905OwlWzw'];a17c=function(){return i;};return a17c();}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18s=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=-parseInt(q(0xb4))/0x1*(parseInt(q(0xd5))/0x2)+-parseInt(q(0xd2))/0x3+-parseInt(q(0xc8))/0x4*(parseInt(q(0xcc))/0x5)+parseInt(q(0xc6))/0x6+-parseInt(q(0xbe))/0x7*(parseInt(q(0xba))/0x8)+parseInt(q(0xd9))/0x9+-parseInt(q(0xd4))/0xa*(-parseInt(q(0xd7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x92b77));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const r=a18d;return a18a[r(0xbd)]()[r(0xdf)]('(((.+)+)+)+$')[r(0xbd)]()['constructor'](a18a)[r(0xdf)](r(0xb2));});a18a();function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xb2;let f=c[d];return f;},a18d(a,b);}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 v=['update','906003vLJvNI','forEach','maka\x20build\x20<opts>','notice','debug','This\x20project\x27s\x20meteor\x20version\x20(','search','exit','findSubCommand','app.tar.gz','(((.+)+)+)+$','--release','11813EYzeVD','installMeteorPackage','existsSync','getProjectMeteorVersion','fsi','invokeMeteorCommand','8171336NJflTk','findProjectDirectory',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','toString','7wTsCxS','maka\x20build:docker','build','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','checkMeteorPackage','Aborted.','slice','error','6707586UPKztA','force','20myQKIt','--force','pathFromProject','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','162205kOCHRw','Verifying\x20meteor\x20package\x20requirements\x20...','splice','concat','autoupdate','create','1726167SeDjpY','argv','68830mNprXc','34oVHCiT','confirm','2145BXAqfz'];a18c=function(){return v;};return a18c();}const BuildCommand=Command[a18s(0xd1)]({'name':a18s(0xc0),'usage':a18s(0xdb),'validOpts':[a18s(0xc7),a18s(0xdd)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18s(0xcb),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':['maka\x20build',a18s(0xbf)]},async function(a,b){const t=a18s;try{const c=this[t(0xb8)][t(0xbb)]();!this[t(0xb8)][t(0xc2)](t(0xd0))&&(Log[t(0xdc)](t(0xcd)),await this[t(0xb8)][t(0xb5)](t(0xd0),{'cwd':c}));const d=a[0x0],f=this[t(0xe1)](d);if(f)this['runSubCommand'](d,a,b);else{const g=b[t(0xc7)];if(!g){const j=this[t(0xb8)]['getGlobalMeteorVersion'](),k=this[t(0xb8)][t(0xb7)](),l=a18g['gt'](j,k);if(l){const m=await Actions[t(0xd6)](t(0xde)+k+t(0xbc)+j+').\x20Update?');m&&this[t(0xb8)][t(0xb9)](t(0xd8),[t(0xb3),j]);}}const h=[this[t(0xb8)][t(0xca)]({'pathParts':[t(0xc0)]})][t(0xcf)](process[t(0xd3)][t(0xc4)](0x3)),i=a18e['join'](this[t(0xb8)][t(0xca)]({}),'build',t(0xe2));if(a18f[t(0xb6)](i)){const n=g??await Actions[t(0xd6)](t(0xc1));if(!n)throw Log[t(0xc5)](t(0xc3));}h[t(0xda)]((o,p)=>{const u=t;o===u(0xc9)&&h[u(0xce)](p,0x2);}),this[t(0xb8)][t(0xb9)](t(0xc0),h);}}catch(o){console['error'](o),process[t(0xe0)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19I=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=-parseInt(F(
|
|
1
|
+
const a19I=a19d;(function(a,b){const F=a19d,c=a();while(!![]){try{const d=-parseInt(F(0x100))/0x1+-parseInt(F(0xeb))/0x2+-parseInt(F(0x113))/0x3*(-parseInt(F(0xda))/0x4)+parseInt(F(0xe6))/0x5*(-parseInt(F(0xf4))/0x6)+-parseInt(F(0xf2))/0x7*(parseInt(F(0xd1))/0x8)+-parseInt(F(0x107))/0x9*(-parseInt(F(0xdc))/0xa)+parseInt(F(0x11c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x95c05));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a19d;if(c){const e=c[G(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const H=a19d;return a19a[H(0xcd)]()[H(0x103)](H(0xf8))[H(0xcd)]()['constructor'](a19a)[H(0x103)](H(0xf8));});a19a();import a19e from'./build.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xc7;let f=c[d];return f;},a19d(a,b);}import a19f from'path';function a19c(){const K=['12215aUaFsP','\x20npm\x20install\x20--save','18426paxDGM','Mobile\x20server\x20port:\x20','.maka','maka\x20build:docker\x20--debug','(((.+)+)+)+$','Dockerfile','https','serverPort','platforms','debug','checkConfigExists','findGenerator','425187AILXoS','Stored\x20server\x20config\x20to\x20','win32','search','maka\x20build:docker\x20--tag','app','create','10053JOhtqE','error','findAppDirectory','readFileLines','docker\x20build\x20--build-arg\x20NODE_VERSION=','://','Try\x20\x27maka\x20run:docker\x27','setProjectConfig','Docker\x20Context\x20Path:\x20','apply','cert.pem','config/pm2.config.js','142356rfCcuW','serverName','\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.json','-t\x20','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).','exit','.meteor','getConfigPath','22612667frPpsG','N/A','_keys','docker','[*]\x20maka\x20','platform','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','toString','config/docker-compose.yaml','appName','tag','5272RJAieC','mkdirSync','push','isDirectory','pm2.config.js','config','dockerfile','meteor.bat','inherit','88getWNi','ignore','7970gUGPNp','pathFromProject','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','notice','template','build','--architecture','ask','join','cert','985eOrkDm','invoke','fsi','os.linux.x86_64','docker-compose.yaml','2392760jVhGJR','confirm','force','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Tagging\x20Docker\x20Image:\x20','existsSync','length'];a19c=function(){return K;};return a19c();}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[a19I(0x106)]({'name':a19I(0xc9),'aliases':['d'],'usage':'maka\x20build:docker\x20<opts>','validOpts':[a19I(0xed),a19I(0xd0),a19I(0xfd)],'shortDesc':a19I(0xcc),'description':a19I(0x115),'mustBeInMakaProject':!![],'examples':[a19I(0x104),a19I(0xf7)]},async function(a,b){const J=a19I;try{const c=await this[J(0xe8)]['getGlobalConfig'](),d=await this[J(0xe8)]['getProjectConfig'](),f=await this[J(0xe8)]['getProjectsMeteorNodeVersion']();f===J(0xc7)&&(Log[J(0x108)](J(0x118)),process['exit'](0x1));const g=process[J(0xcb)]===J(0x102)?J(0xd8):'meteor',h=this[J(0xe8)]['pathFromProject']({}),i=a19f[J(0xe4)](h,J(0xf9));if(!this[J(0xe8)]['isFile'](i)){const s=a19h[J(0xff)](J(0xd7));s&&await s[J(0xe7)](['dockerfile'],{'cwd':h,'config':d});}const j=this['fsi'][J(0xfe)](J(0xc9));if(!j){const t=a19h[J(0xff)](J(0xd6));if(t){await t[J(0xe7)]([J(0xc9)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0xe8)][J(0x11b)]('docker'),v=a19f[J(0xe4)](u,J(0xd5));await this[J(0xe8)]['template']({'srcPath':J(0x112),'destPath':v,'context':{'app':d[J(0xcf)],'isDocker':![]},'config':d});const w=a19f[J(0xe4)](u,J(0xea));await this[J(0xe8)][J(0xe0)]({'srcPath':J(0xce),'destPath':w,'context':{'app':d[J(0xcf)],'appFileCase':paramCase(d[J(0xcf)])},'config':d});}}if(this[J(0xe8)]['isFile'](c[J(0xe5)])){const x=this['fsi'][J(0xd4)](a19f[J(0xe4)]('config','docker',J(0xc8)));!x&&a19g[J(0xd2)](a19f[J(0xe4)]('config','docker','_keys')),a19g['copyFileSync'](c[J(0xe5)],a19f[J(0xe4)](h,J(0xd6),J(0xc9),J(0xc8),J(0x111)));}const k=[J(0xe1),a19f[J(0xe4)](this[J(0xe8)]['findProjectDirectory'](),J(0xe1)),J(0xe2),J(0xe9)],l=this['fsi'][J(0x10a)](a19f['join'](this[J(0xe8)]['pathFromProject']({}),J(0x105),J(0x11a),J(0xfc))),m=l[J(0xf1)]>0x2?!![]:![];if(m){const y=d[J(0x114)]?d['serverName']:await Actions[J(0xe3)](J(0xde)),z=d[J(0xfb)]?d[J(0xfb)]:await Actions[J(0xe3)](J(0xf5));if(y['length']==0x0||z[J(0xf1)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const A=z=='443'?J(0xfa):'http';k[J(0xd3)]('--server='+A+J(0x10c)+y+':'+z);if(!d[J(0x114)]&&!d[J(0xfb)]){const B=await Actions[J(0xec)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this[J(0xe8)]['setProjectConfig'](J(0x114),y),this[J(0xe8)][J(0x10e)](J(0xfb),z),Log['notice'](J(0x101)+a19f[J(0xe4)](J(0xf6),J(0x116))));}}const n=a19f['join'](this[J(0xe8)][J(0xdd)]({}),'build','app.tar.gz');if(a19g[J(0xf0)](n)){const C=await Actions[J(0xec)](J(0xee)),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0xe8)][J(0x109)](),'stdio':J(0xdb)}),execSync(g+'\x20\x20'+k[J(0xe4)]('\x20'),{'cwd':this[J(0xe8)][J(0x109)](),'stdio':J(0xd9)}));}else execSync(g+J(0xf3),{'cwd':this[J(0xe8)][J(0x109)](),'stdio':'ignore'}),Log[J(0xdf)](J(0xca)+k['join']('\x20')),execSync(g+'\x20'+k[J(0xe4)]('\x20'),{'cwd':this['fsi'][J(0x109)](),'stdio':'inherit'});const o=this[J(0xe8)]['pathFromProject']({});let p=J(0x117)+paramCase(d[J(0xcf)])+':latest';b[J(0xd0)]&&(p=J(0x117)+b[J(0xd0)]);Log[J(0xdf)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+f),Log[J(0xdf)](J(0xef)+p),Log[J(0xdf)](J(0x10f)+o);const q=b[J(0xfd)]?'--progress=plain\x20--no-cache':'',r=J(0x10b)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0xd9)}),Log[J(0xdf)](J(0x10d));}catch(E){console[J(0x108)](E),process[J(0x119)](0x0);}},a19e);
|