@maka/maka-cli 4.8.8 → 4.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.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/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.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/templates/meteor/project/package.json +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/progress/progress.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.8.
|
|
4
|
+
"version": "4.8.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d
|
|
1
|
+
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x187))/0x1*(parseInt(m(0x174))/0x2)+-parseInt(m(0x19a))/0x3*(parseInt(m(0x1ad))/0x4)+parseInt(m(0x190))/0x5*(-parseInt(m(0x181))/0x6)+parseInt(m(0x175))/0x7*(-parseInt(m(0x188))/0x8)+parseInt(m(0x17e))/0x9*(-parseInt(m(0x19f))/0xa)+parseInt(m(0x195))/0xb*(parseInt(m(0x18e))/0xc)+parseInt(m(0x1b8))/0xd*(parseInt(m(0x1a4))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xad790));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x1b6)]()['search']('(((.+)+)+)+$')[o(0x1b6)]()[o(0x1a8)](a0a)[o(0x184)](o(0x1a2));});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';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x16f;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x1b2)];[a0p(0x1b4)];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0x1bb)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(q(0x1a0));this[q(0x1b2)]=Object[q(0x19c)]({},a),this[q(0x1bb)]=this[q(0x1b2)]['name'],this['_commands']=[],this[q(0x1a7)]=b[q(0x1bd)](this);}static[a0p(0x172)](a,b,c){const r=a0p;if(!a)throw new Error(r(0x17b));if(typeof b!==r(0x1af))throw new Error(r(0x193));const d=new Command(a,b);return c=c||a0f,Object[r(0x19c)](d,{'parent':c?.['options']?.[r(0x1bb)]}),c[r(0x17c)](d),d;}['addCommand'](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x199));this[s(0x1b4)][s(0x176)](a);}async['run'](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this['fsi']['getGlobalConfig'](),d=c[t(0x1aa)]===t(0x19d)?ColorMode['LIGHT']:ColorMode[t(0x17a)];Log[t(0x18f)](d),await this[t(0x178)](this);}catch(f){Log[t(0x192)](f),process[t(0x1a9)](0x0);}await this['invoke'](a,b);}catch(g){process[t(0x1a9)](0x1);}}async[a0p(0x18a)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x1b2)];try{if(this['options'][u(0x1bb)]!==u(0x185)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x173)]===0x0)&&this[u(0x1b4)][u(0x173)]>=0x0,g=b[u(0x1bf)]||b['h'];if(f&&g){if(this['_commands']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x1b2)]['mustBeInMakaProject']){const h=this[u(0x182)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x1b2)][u(0x1bc)]){const i=this[u(0x179)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][u(0x1ba)]===u(0x1be)){if(a['length']<this['options']['minArgLength']){Log[u(0x192)](u(0x198));throw new UsageError();}}if(typeof this[u(0x1b2)]['maxArgLength']===u(0x1be)){if(a[u(0x173)]>=this[u(0x1b2)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[u(0x1b2)]['minOptsLength']===u(0x1be)){if(Object[u(0x1a6)](b)[u(0x173)]<this[u(0x1b2)]['minOptsLength']){Log[u(0x192)](u(0x191));throw new UsageError();}}if(typeof this[u(0x1b2)]['maxOptsLength']===u(0x1be)){if(Object['keys'](b)[u(0x173)]>=this['options']['maxOptsLength']){Log[u(0x192)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0x18d)](a,b,this['options']),_prevCmd=a[0x0];}await this[u(0x1a7)][u(0x1c0)](this,a,b);}catch(j){Log[u(0x196)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0x171)](u(0x170)),this[u(0x197)](this[u(0x1b4)]),Log['header'](u(0x189));else{if(j instanceof MustBeInProjectError)Log['error'](u(0x1b9));else{if(j instanceof NoMeteorFoundError)Log[u(0x192)](u(0x1ae)),Log[u(0x171)](u(0x183));else j instanceof NoMeteorAppFoundError&&Log[u(0x192)](u(0x1a3));}}process[u(0x1a9)](0x1);}}[a0p(0x197)](a){const v=a0p,b=new a0e({});b[v(0x176)]([v(0x16f),'Alias',v(0x194)]),a[v(0x1b5)]((c,d)=>{const w=v;return c[w(0x1bb)][w(0x18b)](d['name']);})[v(0x1b1)](c=>{const x=v;c['name']!=='murder'&&c[x(0x1bb)]!==x(0x1b0)&&b[x(0x176)]([c['name'],c[x(0x186)](),c[x(0x1ab)]()]);}),Log[v(0x17f)](b['toString']());}async[a0p(0x17d)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x180)](':');if(!d||d[y(0x173)]===0x0)throw y(0x1b3);if(d[0x0]===y(0x185)||d[0x0]==='g'&&d[y(0x173)]>0x1){const h=this[y(0x1b4)]['find'](j=>j['match']('generate'));if(!h)throw y(0x19e);await this[y(0x178)](h);const i=d['slice'](0x1)[y(0x1a5)](':');b[y(0x19b)](i),await h['run'](b,c);return;}let f=this[y(0x1b4)],g;for(const j of d){g=f['find'](k=>k[y(0x1ac)](j));if(!g)try{await this['fsi'][y(0x1a1)]();}catch(k){throw y(0x177)+j+y(0x1b7);}g&&(await this[y(0x178)](g),f=g[y(0x1b4)]);}if(g)await g['run'](b,c);else throw y(0x19e);}catch(l){Log[y(0x192)](l),process['exit'](0x1);}}}function a0c(){const z=['Name','Sub-Commands:','notice','create','length','655328dihVjG','98PLiIWc','push','Command\x20','validateMakaSubscription','validateMeteorInstall','DARK','Command.create\x20requires\x20some\x20options!','addCommand','processAndRunCommand','531JPVsBU','bright','split','1928526cOnFZR','validateMakaProject','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','generate','aliases','1QQhQQZ','524192efNdNB','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','invoke','localeCompare','apply','validateParams','55848OnXEzU','setColorMode','5dYZCgT','Too\x20few\x20options','error','Command.create\x20requires\x20a\x20handler\x20function!','Description','1573TaMSDM','usage','tableList','Too\x20few\x20arguments','addCommand\x20requires\x20a\x20Command\x20instance','3XUVHqy','unshift','assign','light','Command\x20not\x20found','84590Wooggl','Command\x20requires\x20a\x20handler\x20function','maybeProxyCommandToMeteor','(((.+)+)+)+$','There\x20is\x20no\x20Meteor\x20application\x20here','3262rOKCaD','join','keys','_handler','constructor','exit','pallet','shortDesc','match','1057780oljnpX','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','function','play','forEach','options','Command\x20format\x20is\x20incorrect','_commands','sort','toString','\x20not\x20found','132509nFZMRi','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','minArgLength','name','mustHaveMeteorInstalled','bind','number','help','call'];a0c=function(){return z;};return a0c();}
|
|
@@ -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(0xea))/0x1+-parseInt(f(0xe5))/0x2+parseInt(f(0xee))/0x3*(parseInt(f(0xed))/0x4)+parseInt(f(0xf1))/0x5*(-parseInt(f(0xf0))/0x6)+parseInt(f(0xeb))/0x7*(parseInt(f(0xe9))/0x8)+-parseInt(f(0xec))/0x9*(parseInt(f(0xf2))/0xa)+-parseInt(f(0xe8))/0xb*(-parseInt(f(0xe7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe0fcb));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xef)]()[g(0xe6)](g(0xe3))[g(0xef)]()[g(0xe4)](a1a)['search']('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xe3;var f=c[d];return f;},a1d(a,b);}import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';function a1c(){var h=['12hIthKo','129695PYotTT','11167520TNpUhy','(((.+)+)+)+$','constructor','149746bIQbTS','search','12rbDxAg','6191823OosNVJ','8PvSJIU','920653FGbrhU','11029865xMtcpa','9FdRpWI','60sGEewO','189423kErlKQ','toString'];a1c=function(){return h;};return a1c();}import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x19e))/0x1+-parseInt(h(0x1a3))/0x2+parseInt(h(0x194))/0x3*(-parseInt(h(0x1a2))/0x4)+parseInt(h(0x1b8))/0x5*(-parseInt(h(0x1b5))/0x6)+-parseInt(h(0x19f))/0x7+-parseInt(h(0x1a9))/0x8*(-parseInt(h(0x1b3))/0x9)+parseInt(h(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xb4fce));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x19c)]()[j(0x199)](j(0x1b4))['toString']()[j(0x192)](a2a)[j(0x199)]('(((.+)+)+)+$');});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';function a2c(){const o=['question','openai','56VfYjUE','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','log','You:\x20','error','isFile','openapikey','notice','1965890chNwqa','1775331rgQXjH','(((.+)+)+)+$','628206ZaniUk','fsi','stdin','5IFDrSs','trim','ChatGPT\x20style\x20AI\x20interface','constructor','cacert','78828aLdtei','exit','text','apply','Using\x20CA\x20Cert\x20','search','toLowerCase','cert','toString','data','1294275bYpyqk','4908232nYiOGg','parse','message','168oHifnY','441764MLQwMz','choices','createInterface','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1a5)]({'input':process[k(0x1b7)],'output':process['stdout']});c[k(0x1a7)](k(0x1ad),async d=>{const l=k;if(d[l(0x19a)]()===l(0x195)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1a0)](e[l(0x19d)]);if(f[l(0x1ae)])throw new Error(f[l(0x1ae)][l(0x1a1)]);Log['bright']('GPT:\x20'+f?.[l(0x1a4)][0x0]?.[l(0x196)][l(0x190)]());}catch(g){Log['error'](g),process[l(0x195)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x190;let f=c[d];return f;},a2d(a,b);}Command['create']({'name':'ai','description':a2m(0x191),'validOpts':['cacert',a2m(0x1b0)],'shortDesc':a2m(0x191),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x193)]&&(this[n(0x1b6)][n(0x1af)](b[n(0x193)])?(c=b['cacert'],Log[n(0x1b1)](n(0x198)+c)):Log[n(0x1ae)](n(0x1aa)+c));const d=await this[n(0x1b6)]['getGlobalConfig']();if(d[n(0x19b)]){if(this[n(0x1b6)][n(0x1af)](d[n(0x19b)]))c=d[n(0x19b)];else throw Log[n(0x1ae)](n(0x1a6)+c);}let f='';if(b[n(0x1b0)])f=b[n(0x1b0)],Log[n(0x1b1)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1a8)])f=d['openai'];else throw Log['error'](n(0x1ab));}console[n(0x1ac)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x195)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x15d))/0x1+-parseInt(f(0x15e))/0x2*(parseInt(f(0x158))/0x3)+-parseInt(f(0x157))/0x4+-parseInt(f(0x159))/0x5+-parseInt(f(0x155))/0x6+parseInt(f(0x15c))/0x7*(parseInt(f(0x15a))/0x8)+parseInt(f(0x160))/0x9*(parseInt(f(0x162))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x5944b));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x156)]()['search']('(((.+)+)+)+$')[h(0x156)]()[h(0x15f)](a3a)[h(0x15b)](h(0x163));});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';function a3c(){var i=['853725VSpzXN','1927005QwTilf','16omVHJb','search','303730uzRrgW','229819jbDcxI','4dCIPYC','constructor','14963787BdVJrj','apply','10LyNmBB','(((.+)+)+)+$','347088JmGaKY','toString','2404800Xiwmgq'];a3c=function(){return i;};return a3c();}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-0x155;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a4i=a4d;function a4c(){const j=['create','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','maka\x20aws:<sub-command>','(((.+)+)+)+$','1729CWkTJl','48NbStRR','constructor','3816LvMGWM','628857qqQoGq','1750968Qxrcvf','9dmimGN','184076nvLiWn','apply','aws','1353545jbnfOq','12597TTuhPk','3726510lMwbGs','search'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x97))/0x1*(-parseInt(f(0x9f))/0x2)+parseInt(f(0x92))/0x3*(-parseInt(f(0x93))/0x4)+parseInt(f(0x96))/0x5+parseInt(f(0x91))/0x6+-parseInt(f(0x9e))/0x7*(parseInt(f(0xa1))/0x8)+-parseInt(f(0x90))/0x9+-parseInt(f(0x98))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x28a41));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0x99)](h(0x9d))['toString']()[h(0xa0)](a4a)['search']('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x9a)]({'name':a4i(0x95),'usage':a4i(0x9c),'validOpts':[],'shortDesc':a4i(0x9b),'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(){throw UsageError;});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x90;let f=c[d];return f;},a4d(a,b);}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x147))/0x1+-parseInt(i(0x150))/0x2+parseInt(i(0x14e))/0x3*(parseInt(i(0x156))/0x4)+-parseInt(i(0x13a))/0x5*(parseInt(i(0x14a))/0x6)+parseInt(i(0x155))/0x7+parseInt(i(0x13f))/0x8+-parseInt(i(0x159))/0x9*(-parseInt(i(0x153))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x220a1));function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x13a;let f=c[d];return f;},a5d(a,b);}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()['search']('(((.+)+)+)+$')[k(0x14f)]()[k(0x143)](a5a)[k(0x14d)](k(0x151));});a5a();import a5e from'./aws.command.js';function a5c(){const n=['toString','110782eMABOt','(((.+)+)+)+$','exit','62740XfxmRk','create','1037694wFUKUq','8RyAUkH','apply','error','72BhgOjZ','10nuuAEq','confirm','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','maka\x20aws:chz\x20--domain=example.com','Set\x20hosted\x20zone\x20to\x20an\x20instance?','1513720iKEpDk','chz','publicIp','route53CreateHostedZone','constructor','linkEC2ToRoute53','create-hosted-zone','maka\x20aws:create-hosted-zone','195567WcVqqV','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','maka\x20aws:create-hosted-zone\x20--domain=example.com','719292sruNxD','Instance\x20not\x20found','domain','search','363747flGvkS'];a5c=function(){return n;};return a5c();}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(0x154)]({'name':a5l(0x145),'aliases':[a5l(0x140)],'usage':a5l(0x146),'requiredOpts':[a5l(0x14c)],'validOpts':[],'shortDesc':a5l(0x148),'examples':[a5l(0x149),a5l(0x13d)]},async function(a,b){const m=a5l;try{const c=b[m(0x14c)],d=new AWS();d[m(0x142)](c);const f=await Actions[m(0x13b)](m(0x13e));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x141)])throw Log[m(0x158)](m(0x13c));d[m(0x144)](g['id'],g[m(0x141)],c);}else throw m(0x14b);}}catch(h){h&&Log[m(0x158)](h),process[m(0x152)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x181))/0x1+parseInt(ae(0x16f))/0x2+-parseInt(ae(0x158))/0x3+parseInt(ae(0x170))/0x4*(-parseInt(ae(0x15e))/0x5)+-parseInt(ae(0x162))/0x6+-parseInt(ae(0x19f))/0x7+parseInt(ae(0x144))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x370a4));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(0x171)]()['search'](af(0x179))[af(0x171)]()['constructor'](a6a)['search'](af(0x179));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x13d;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{execSync}from'child_process';function a6c(){const at=['2841272lUdiCC','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\x20AMIID:\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','*\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','\x20CIDR:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','push','Creating\x20user\x20data\x20file\x20in\x20','User\x20Data:','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','cider','fsi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','notice','13109688pISeDm','No\x20instance\x20has\x20been\x20created.','EC2\x20Name:\x20[','ask','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x20SG\x20NAME:\x20','Desc','Setting\x20the\x20key-pair\x20to:\x20','success','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','amazon','ImageID:','Create\x20new\x20AWS\x20instance','22,80,443','Setting\x20Subnet\x20ID\x20to\x20','env','Name','sort','number','Would\x20you\x20like\x20to\x20include\x20user\x20data?','1042665sBphMY','**\x20Available\x20Security\x20Groups\x20**','Remove\x20the\x20keypair\x20','ec2create','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','1:1','123365MUCvrq','date','Setting\x20AMI\x20ID\x20to\x20','ID:\x20','1600860HvVayt','string','sgId','isFile','Subnet:\x20','Instace\x20Type:\x20','Remove\x20the\x20security\x20group\x20','bright','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Security\x20Group:\x20','maka\x20aws:create-instance\x20--env\x20dev','Key-Pair:\x20','subnetId','572816zqdVRp','52qYTiTw','toString','subnet','\x20SUBNETID:\x20','\x20SGID:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','forEach','error','Please\x20choose\x20a\x20key\x20to\x20use:\x20','(((.+)+)+)+$','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','log','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','user-data','deleteKeyPair','358665YmGRIg','Security\x20Group\x20Name:\x20[','Web\x20App','Setting\x20SG\x20ID\x20to:\x20','maka\x20aws:ci\x20--env\x20prod','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','desc','create','\x20AZONE:\x20','create-instance','readFileSync','created-by','ec2createSG','join','**\x20Available\x20key-pairs\x20**','deleteSecurityGroup','confirm','exit','ec2describeKeys','environment','name','createFile','cidr','getTime','split','build\x20on\x20','amiId','chooseVPC','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','t3.micro'];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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0x188)]({'name':a6ag(0x18a),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ag(0x16c),a6ag(0x185)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x153)}],'validOpts':[],'shortDesc':a6ag(0x150),'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(0x141)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x141)]['getConfigFromShorthand'](b[ah(0x153)]),i=this[ah(0x141)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ah(0x147)](ah(0x146)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x191)](ah(0x1a6),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0x14c)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log['notice'](ah(0x18f));const A=r?r:k,B=await d[ah(0x193)]({'suggestion':A}),C=await Actions[ah(0x147)](ah(0x178))||'-1';if(parseInt(C)<0x0){Log[ah(0x177)](ah(0x186)),Log['notice'](ah(0x145));return;}B?.[ah(0x176)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x195)],Log[ai(0x14c)](ai(0x14b)+r));});}catch(D){Log[ah(0x177)](D);}l=await d[ah(0x19c)]();const t=await Actions[ah(0x191)](ah(0x15c),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ah(0x147)](ah(0x182)+k+']')||k;const F=await Actions[ah(0x147)](ah(0x148))||ah(0x151),G=F[ah(0x199)](',');await d[ah(0x18d)]({'description':ah(0x183),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x143)](ah(0x159)),J[ah(0x176)](function(L){const aj=ah;L['name']===u?Log[aj(0x143)](aj(0x161)+L['id']+aj(0x149)+L['name']+aj(0x174)+L[aj(0x164)]):Log['bright'](aj(0x161)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x195)]+'\x20SGID:\x20'+L[aj(0x164)]);});const K=await Actions['ask'](ah(0x13f)+H+']\x20')||H[ah(0x171)]();J[ah(0x176)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](ak(0x184)+m+'\x0a'));});}else m=I,Log[ah(0x14c)](ah(0x184)+m+'\x0a');if(m==='')throw Log[ah(0x177)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ah(0x177)](L);}try{const M=0x7e6;Log[ah(0x143)]('**\x20Available\x20AMIs\x20**');const N=execSync(ah(0x17a)+M+ah(0x1a4))['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ah(0x176)](function(S){const al=ah;if(S['alias']===al(0x14e)){const T=S[al(0x14a)][al(0x199)](al(0x19a))[0x1];P[al(0x1a8)]({'amiId':S['ID'],'desc':S[al(0x14a)],'date':T});}}),P[ah(0x155)](function(S,T){const am=ah;return new Date(T[am(0x15f)])[am(0x198)]()-new Date(S[am(0x15f)])[am(0x198)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x1a8)]({'id':T,'amiId':S['amiId'],'desc':S[an(0x187)]});}),Q['forEach'](function(S){const ao=ah;console[ao(0x17d)]('ID:\x20'+S['id']+ao(0x1a1)+S[ao(0x19b)]+'\x20DESCRIPTION:\x20'+S[ao(0x187)]);});const R=await Actions['ask'](ah(0x19d))||'0';Q[ah(0x176)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x19b)],Log['success'](ap(0x160)+n+'\x20:\x20'+S[ap(0x187)]));});if(n==='')throw Log['error'](ah(0x142));}catch(S){Log[ah(0x177)](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')['toString'](),U=JSON['parse'](T),V=[];U[ah(0x176)](function(X,Y){const aq=ah;V[aq(0x1a8)]({'id':Y,'cidr':X[aq(0x140)],'az':X['az'],'subnetId':X[aq(0x16e)]});}),V[ah(0x176)](function(X){const ar=ah;console[ar(0x17d)](ar(0x161)+X['id']+ar(0x1a5)+X[ar(0x197)]+ar(0x189)+X['az']+ar(0x173)+X['subnetId']);});const W=await Actions[ah(0x147)](ah(0x17b))||'0';V[ah(0x176)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x16e)],Log[as(0x14c)](as(0x152)+p));});if(p==='')throw Log[ah(0x177)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x177)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x17c))||ah(0x15d),Z=Y['split'](':')[0x0],a0=Y[ah(0x199)](':')[0x1];typeof parseInt(Z)===ah(0x156)&&typeof parseInt(a0)==='number'&&Log[ah(0x14c)](ah(0x17e)+Z+':'+a0);}catch(a1){Log[ah(0x177)](a1);}try{const a2=await Actions[ah(0x147)](ah(0x14d))||ah(0x19e);typeof a2===ah(0x163)&&(o=a2);}catch(a3){Log[ah(0x177)](a3);}let x='';try{const a4=await Actions[ah(0x191)](ah(0x157),![]);a4&&(x=a6f[ah(0x18e)](i,ah(0x17f)),Log[ah(0x143)](ah(0x13d)+x),await this[ah(0x141)][ah(0x196)]({'filePath':x,'data':''}),await Actions[ah(0x191)](ah(0x175)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync(ah(0x1a7)+p+ah(0x1a3))['toString']())[0x0][ah(0x172)];Log[ah(0x143)](ah(0x14f)+n),Log[ah(0x143)]('Instance\x20Count:\x20'+v+':'+w),Log[ah(0x143)](ah(0x167)+o),Log['notice'](ah(0x16d)+r),Log[ah(0x143)](ah(0x16b)+m),Log[ah(0x143)](ah(0x166)+a6);if(x){Log[ah(0x143)](ah(0x13e)+x);const a8=a6g[ah(0x18b)](x)[ah(0x171)]();Log[ah(0x143)](a8);}const a7=await Actions['confirm'](ah(0x1a0));if(a7){const a9=await d[ah(0x15b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x18c),'Value':'maka-cli'},{'Key':ah(0x194),'Value':h},{'Key':ah(0x154),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x14c)](ah(0x16a)),Log[ah(0x169)](ah(0x1a2)));}else{Log[ah(0x143)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ah(0x15a)+r+'\x20?',!![]);aa&&(d[ah(0x180)](r),f[ah(0x165)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ah(0x191)](ah(0x168)+m+'\x20?',!![]);ab&&d[ah(0x190)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ah(0x177)](ad),process[ah(0x192)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x19b;let f=c[d];return f;},a6d(a,b);}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x1a1))/0x1*(-parseInt(ae(0x1e7))/0x2)+-parseInt(ae(0x1fc))/0x3*(parseInt(ae(0x1f3))/0x4)+parseInt(ae(0x1ca))/0x5*(-parseInt(ae(0x1ff))/0x6)+-parseInt(ae(0x1e8))/0x7*(parseInt(ae(0x1e0))/0x8)+parseInt(ae(0x1ec))/0x9*(parseInt(ae(0x1f9))/0xa)+parseInt(ae(0x1e9))/0xb*(parseInt(ae(0x1bb))/0xc)+-parseInt(ae(0x1ee))/0xd*(-parseInt(ae(0x1f6))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xcefc8));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1e2)]()['search'](ag(0x1d1))['toString']()[ag(0x1af)](a6a)[ag(0x208)](ag(0x1d1));});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';function a6c(){const au=['chooseVPC','48503770LKBcLg','No\x20instance\x20has\x20been\x20created.','name','30OmpFig','subnetId','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','4532496VrIztB','\x20SG\x20NAME:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','6xbMNTQ','cider','created-by','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','deleteSecurityGroup','join','ImageID:','build\x20on\x20','search','Setting\x20Subnet\x20ID\x20to\x20','readFileSync','getSecurityGroups','ID:\x20','Security\x20Group\x20Name:\x20[','getTime','split','\x20SUBNETID:\x20','1045781hHnNkX','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','parse','subnet','**\x20Available\x20AMIs\x20**','user-data','apply','push','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ec2describeKeys','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','error','Name','maka-cli','constructor','Please\x20choose\x20a\x20key\x20to\x20use:\x20','\x20AZONE:\x20','1:1','notice','maka\x20aws:create-instance','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','**\x20Available\x20Security\x20Groups\x20**','Security\x20Group:\x20','fsi','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','string','11304uSdgdW','\x20:\x20','unlinkSync','getMakaProjectConfig','\x20CIDR:\x20','createKeyPair','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20SG\x20ID\x20to:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','ask','Remove\x20the\x20security\x20group\x20','ec2create','Desc','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','maka\x20aws:ci\x20--env\x20prod','7915955SAMCJq','confirm','t3.micro','\x20AMIID:\x20','createFile','Instace\x20Type:\x20','success','(((.+)+)+)+$','**\x20Available\x20key-pairs\x20**','getConfigFromShorthand','amiId','EC2\x20Name:\x20[','getAppConfigPath','sgId','alias','**\x20Available\x20Subnets\x20**','cidr','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','bright','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ec2createSG','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','144728AnrKhJ','Setting\x20the\x20key-pair\x20to:\x20','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','sort','\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','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','2vcNvSJ','98AbriFi','8228gbRyGz','environment','Remove\x20the\x20keypair\x20','3215169NTPciv','date','13qXycQt','forEach','Would\x20you\x20like\x20to\x20include\x20user\x20data?','create-instance','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','4AxGBgk','\x20SGID:\x20'];a6c=function(){return au;};return a6c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a6ah(0x1f1),'aliases':['ci'],'usage':a6ah(0x1b4),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ah(0x1c9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x1e5)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x1b8)][ai(0x1be)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1b8)][ai(0x1d3)](b['env']),i=this['fsi'][ai(0x1d6)](h),j=g+'-'+h,k=await Actions[ai(0x1c4)](ai(0x1d5)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1cb)](ai(0x1ab),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1c0)]({'env':h});r=y,s=z,Log[ai(0x1d0)](ai(0x1e1)+r);}else try{Log[ai(0x1b3)](ai(0x1d2));const A=r?r:k,B=await d[ai(0x1aa)]({'suggestion':A}),C=await Actions[ai(0x1c4)](ai(0x1b0))||'-1';if(parseInt(C)<0x0){Log[ai(0x1ac)](ai(0x1a2)),Log[ai(0x1b3)](ai(0x1f7));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1f8)],Log[aj(0x1d0)](aj(0x1e1)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x1f5)]();const t=await Actions[ai(0x1cb)](ai(0x1db),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask'](ai(0x19d)+k+']')||k;const F=await Actions[ai(0x1c4)](ai(0x1fe))||'22,80,443',G=F[ai(0x19f)](',');await d[ai(0x1de)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x19b)](u);if(I===''){Log[ai(0x1b3)](ai(0x1b6)),J[ai(0x1ef)](function(L){const ak=ai;L[ak(0x1f8)]===u?Log['notice'](ak(0x19c)+L['id']+ak(0x1fd)+L[ak(0x1f8)]+ak(0x1f4)+L[ak(0x1d7)]):Log['bright'](ak(0x19c)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1f8)]+ak(0x1f4)+L[ak(0x1d7)]);});const K=await Actions[ai(0x1c4)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1e2)]();J[ai(0x1ef)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1d7)],Log[al(0x1d0)](al(0x1c2)+m+'\x0a'));});}else m=I,Log[ai(0x1d0)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1ac)](ai(0x1e3));}catch(L){Log[ai(0x1ac)](L);}try{const M=0x7e6;Log[ai(0x1b3)](ai(0x1a5));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+'*\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')[ai(0x1e2)](),O=JSON[ai(0x1a3)](N),P=[],Q=[];O[ai(0x1ef)](function(S){const am=ai;if(S[am(0x1d8)]==='amazon'){const T=S[am(0x1c7)][am(0x19f)](am(0x207))[0x1];P[am(0x1a8)]({'amiId':S['ID'],'desc':S[am(0x1c7)],'date':T});}}),P[ai(0x1e4)](function(S,T){const an=ai;return new Date(T[an(0x1ed)])[an(0x19e)]()-new Date(S[an(0x1ed)])[an(0x19e)]();}),P['forEach'](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0x1d4)],'desc':S['desc']});}),Q['forEach'](function(S){const ap=ai;console['log'](ap(0x19c)+S['id']+ap(0x1cd)+S[ap(0x1d4)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions['ask'](ai(0x1dd))||'0';Q[ai(0x1ef)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x1bc)+S[aq(0x202)]));});if(n==='')throw Log['error'](ai(0x1e3));}catch(S){Log[ai(0x1ac)](S);}try{Log[ai(0x1b3)](ai(0x1d9));const T=execSync(ai(0x1a9))[ai(0x1e2)](),U=JSON[ai(0x1a3)](T),V=[];U[ai(0x1ef)](function(X,Y){const ar=ai;V[ar(0x1a8)]({'id':Y,'cidr':X[ar(0x200)],'az':X['az'],'subnetId':X[ar(0x1fa)]});}),V['forEach'](function(X){const as=ai;console['log'](as(0x19c)+X['id']+as(0x1bf)+X[as(0x1da)]+as(0x1b1)+X['az']+as(0x1a0)+X[as(0x1fa)]);});const W=await Actions[ai(0x1c4)](ai(0x1df))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1fa)],Log[at(0x1d0)](at(0x209)+p));});if(p==='')throw Log[ai(0x1ac)](ai(0x1e3));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1c4)](ai(0x1c3))||ai(0x1b2),Z=Y[ai(0x19f)](':')[0x0],a0=Y[ai(0x19f)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ai(0x1d0)](ai(0x1e6)+Z+':'+a0);}catch(a1){Log[ai(0x1ac)](a1);}try{const a2=await Actions[ai(0x1c4)](ai(0x203))||ai(0x1cc);typeof a2===ai(0x1ba)&&(o=a2);}catch(a3){Log[ai(0x1ac)](a3);}let x='';try{const a4=await Actions[ai(0x1cb)](ai(0x1f0),![]);a4&&(x=a6f[ai(0x205)](i,ai(0x1a6)),Log[ai(0x1b3)](ai(0x1c1)+x),await this['fsi'][ai(0x1ce)]({'filePath':x,'data':''}),await Actions[ai(0x1cb)](ai(0x1c8)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x1a3)](execSync(ai(0x1fb)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x1e2)]())[0x0][ai(0x1a4)];Log[ai(0x1b3)](ai(0x206)+n),Log[ai(0x1b3)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x1b3)](ai(0x1cf)+o),Log[ai(0x1b3)]('Key-Pair:\x20'+r),Log[ai(0x1b3)](ai(0x1b7)+m),Log[ai(0x1b3)]('Subnet:\x20'+a6);if(x){Log[ai(0x1b3)]('User\x20Data:'+x);const a8=a6g[ai(0x20a)](x)[ai(0x1e2)]();Log[ai(0x1b3)](a8);}const a7=await Actions['confirm'](ai(0x1b9));if(a7){const a9=await d[ai(0x1c6)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x201),'Value':ai(0x1ae)},{'Key':ai(0x1ea),'Value':h},{'Key':ai(0x1ad),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x1b5)),Log[ai(0x1dc)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x1b3)](ai(0x1f2));const aa=await Actions[ai(0x1cb)](ai(0x1eb)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a6g[ai(0x1bd)](s));const ab=await Actions['confirm'](ai(0x1c5)+m+'\x20?',!![]);ab&&d[ai(0x204)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x1ac)](ad),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d
|
|
1
|
+
const a7j=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xa4;let f=c[d];return f;},a7d(a,b);}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0xbb))/0x1*(-parseInt(g(0xaa))/0x2)+parseInt(g(0xb2))/0x3*(-parseInt(g(0xb3))/0x4)+parseInt(g(0xbc))/0x5+parseInt(g(0xb7))/0x6*(parseInt(g(0xa4))/0x7)+-parseInt(g(0xb0))/0x8+parseInt(g(0xb8))/0x9+parseInt(g(0xbe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xf4014));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0xab)]()[i(0xb5)](i(0xbd))[i(0xab)]()[i(0xb9)](a7a)[i(0xb5)](i(0xbd));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7j(0xb4)]({'name':a7j(0xa9),'aliases':[a7j(0xb6)],'usage':a7j(0xac),'examples':[a7j(0xa7),a7j(0xba)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0xb1)],'validOpts':[],'shortDesc':a7j(0xae),'description':a7j(0xad)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0xaf)][k(0xa8)](b[k(0xb1)]);c[k(0xa6)]({'env':d});}catch(f){f&&Log['error'](f),process['exit'](0x0);}},a7e);function a7c(){const l=['\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\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','fsi','14473048ljnYGr','env','2631FmvLbf','1388pkaaBn','create','search','ckp','162JkaESF','1271295EnJIEN','constructor','maka\x20aws:ckp\x20--env\x20prod','2CrqvwG','7802865DJgGJl','(((.+)+)+)+$','19431860Mqxrpw','249942SRijxm','apply','createKeyPair','maka\x20aws:create-key-pair\x20--env\x20prod','getConfigFromShorthand','create-key-pair','1496182UQNGJh','toString','maka\x20aws:create-key-pair'];a7c=function(){return l;};return a7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a8d(a,b);}const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x1bf))/0x1+parseInt(m(0x1b8))/0x2+-parseInt(m(0x1c2))/0x3*(-parseInt(m(0x1b2))/0x4)+parseInt(m(0x1b9))/0x5*(parseInt(m(0x1bd))/0x6)+-parseInt(m(0x1c9))/0x7*(parseInt(m(0x1c8))/0x8)+parseInt(m(0x1c3))/0x9+-parseInt(m(0x1c4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xd2f77));function a8c(){const s=['error','chooseVPC','apply','forEach','create','constructor','\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','getMakaProjectConfig','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','(((.+)+)+)+$','Web\x20App','match','12iIajzc','toString','exit','fsi','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','Security\x20Group\x20Name:\x20[','3241550bVbQar','10SmrWpI','List\x20is\x20not\x20all\x20numbers','maka\x20aws\x20create-security-group','search','1193646uJQRpD','maka\x20aws:create-secuirty-group','205566UWBsYB','name','maka\x20aws:csg','259887rjcMgQ','11121768pHOpnS','12311550bgKhFx','create-security-group','csg','split','32QlRWyh','2843029cxovIS'];a8c=function(){return s;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a['toString']()['search'](o(0x1af))[o(0x1b3)]()[o(0x1ab)](a8a)[o(0x1bc)](o(0x1af));});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';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x1ce)]({'name':a8p(0x1c5),'aliases':[a8p(0x1c6)],'usage':a8p(0x1bb),'validOpts':[],'shortDesc':a8p(0x1b6),'description':a8p(0x1ac),'examples':[a8p(0x1be),a8p(0x1c1)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x1b5)][q(0x1ad)](),{appName:f}=d,g=await c[q(0x1cb)](),h=b[q(0x1c0)]?b[q(0x1c0)]:''+f,i=await Actions['ask'](q(0x1b7)+h+']')||h,j=await Actions['ask'](q(0x1ae))||'22,80,443',k=j[q(0x1c7)](',');k[q(0x1cd)](l=>{const r=q;if(!l[r(0x1b1)](/^\d+$/))throw r(0x1ba);}),await c['ec2createSG']({'description':q(0x1b0),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x1ca)](l),process[q(0x1b4)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9h=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0xaf))/0x1+-parseInt(f(0x9f))/0x2*(parseInt(f(0xa5))/0x3)+parseInt(f(0xb0))/0x4*(parseInt(f(0xa2))/0x5)+parseInt(f(0xae))/0x6+-parseInt(f(0xb4))/0x7*(-parseInt(f(0xa4))/0x8)+-parseInt(f(0xb5))/0x9*(parseInt(f(0xaa))/0xa)+-parseInt(f(0xa6))/0xb*(parseInt(f(0xa9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x9222c));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const g=a9d;return a9a[g(0xa8)]()[g(0xb1)](g(0xb2))['toString']()[g(0xab)](a9a)['search'](g(0xb2));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x9f;let f=c[d];return f;},a9d(a,b);}function a9c(){const j=['3344238joJWLf','576307GSASzc','53512AWtVMR','search','(((.+)+)+)+$','ec2describeInstances','49ZvgQun','279OdWfXk','916NTKzYn','maka\x20aws:di','exit','340lKKgQg','error','202648FOVlKj','3834DlhIPO','2189GGxkYf','maka\x20aws:describe-instances','toString','32688dGxrfQ','159590zxQycC','constructor','describe-instances','create'];a9c=function(){return j;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9h(0xad)]({'name':a9h(0xac),'aliases':['di'],'usage':a9h(0xa7),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances',a9h(0xa0)],'description':'\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'},async function(){const i=a9h;try{const a=new AWS();a[i(0xb3)]();}catch(b){b&&Log[i(0xa3)](b),process[i(0xa1)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x148))/0x1+parseInt(f(0x146))/0x2+parseInt(f(0x14f))/0x3+-parseInt(f(0x14a))/0x4+-parseInt(f(0x140))/0x5*(-parseInt(f(0x142))/0x6)+parseInt(f(0x141))/0x7*(-parseInt(f(0x150))/0x8)+parseInt(f(0x152))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7219c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x151)]()[g(0x13f)](g(0x149))[g(0x151)]()[g(0x143)](a10a)[g(0x13f)](g(0x149));});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x13f;let f=c[d];return f;},a10d(a,b);}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10c(){const j=['1208328ytqqZW','create','maka\x20aws:dkp','exit','ec2describeKeys','559161hyUJUO','8Fmgmzo','toString','1108152lzsEaK','search','3560665RDotEv','813911svqiTE','6kJmbwR','constructor','describe-key-pairs','maka\x20aws:describe-key-pairs','740800gQCLBF','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','506337gOnyJC','(((.+)+)+)+$'];a10c=function(){return j;};return a10c();}import{Log}from'../../tools/log/log.class.js';Command[a10h(0x14b)]({'name':a10h(0x144),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a10h(0x147),'examples':[a10h(0x145),a10h(0x14c)]},async function(){const i=a10h;try{const a=new AWS();a[i(0x14e)]();}catch(b){b&&Log['error'](b),process[i(0x14d)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11c(){const r=['
|
|
1
|
+
function a11c(){const r=['Deleting\x20a\x20','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','exit','Not\x20deleting\x20secuirty\x20group','getMakaProjectConfig','name','5085006FwTIad','16GYXNJE','17056204aPALTH','delete-security-group','maka\x20aws:delete-sg','12BcSOnk','Deleted\x20','132442BuRrQH','search','2041732xYsSbP','maka\x20aws:dsg','appName','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','confirm','\x20SGID:\x20','constructor','isMakaProject','success','error','sgId','create','bright','forEach','notice','3098228yzzvgF','(((.+)+)+)+$','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','3573aKwwVm','2844159sxrzTt','7CPKteS','24530wbGcTH','getSecurityGroups','apply','10cqQzSe','dsg','toString','\x20SG\x20NAME:\x20','ID:\x20'];a11c=function(){return r;};return a11c();}const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0xad))/0x1*(-parseInt(l(0xc3))/0x2)+parseInt(l(0xac))/0x3+-parseInt(l(0xc5))/0x4*(parseInt(l(0xb1))/0x5)+parseInt(l(0xbc))/0x6+parseInt(l(0xa8))/0x7*(parseInt(l(0xbd))/0x8)+-parseInt(l(0xab))/0x9*(-parseInt(l(0xae))/0xa)+-parseInt(l(0xbe))/0xb*(parseInt(l(0xc1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x9746a));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xb3)]()[n(0xc4)](n(0xa9))[n(0xb3)]()[n(0x9f)](a11a)[n(0xc4)](n(0xa9));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x9f;let f=c[d];return f;},a11d(a,b);}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(0xa4)]({'name':a11o(0xbf),'aliases':[a11o(0xb2)],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':a11o(0xb7),'examples':[a11o(0xc0),a11o(0xc6)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xa0)]();let d='';if(c){const j=b[p(0xba)]();d=j[p(0xc7)];}const {sgList:f}=await a[p(0xaf)]();f[p(0xa6)](function(k){const q=p;c&&k[q(0xbb)]['includes'](d)?Log[q(0xa7)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0xbb)]+q(0xca)+k[q(0xa3)]):Log[q(0xa5)](q(0xb5)+k['id']+q(0xb4)+k['name']+q(0xca)+k[q(0xa3)]);});let g='';const h=await Actions['ask'](p(0xaa));f[p(0xa6)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0xc9)](p(0xb6)+g+p(0xc8),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0xa1)](p(0xc2)+g)):Log[p(0xa2)](p(0xb9)),process[p(0xb8)](0x0);}catch(k){k&&Log[p(0xa2)](k),process['exit'](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(0xf0))/0x1*(parseInt(f(0xd8))/0x2)+parseInt(f(0xea))/0x3+parseInt(f(0xde))/0x4+-parseInt(f(0xed))/0x5+parseInt(f(0xe7))/0x6+parseInt(f(0xef))/0x7*(parseInt(f(0xd9))/0x8)+parseInt(f(0xe1))/0x9*(-parseInt(f(0xe8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x38b14));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xd4)]()[h(0xd6)](h(0xe2))['toString']()[h(0xd5)](a12a)[h(0xd6)](h(0xe2));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xd2;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12c(){const k=['error','1299472GccpdW','running','maka\x20aws:rbi','27ZudssL','(((.+)+)+)+$','\x20Ready?','apply','maka\x20aws:reboot-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','1504908VLWDsk','2278440IXgoCl','exit','574863cAfBDI','rbi','Reboot\x20an\x20EC2\x20instance','1468505VPFxIG','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','34993LkSjEc','196074Hpshdq','instanceId','status','toString','constructor','search','reboot-instance','4NnlwMJ','80JtdeRY','create','name','\x20is\x20still\x20running.'];a12c=function(){return k;};return a12c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xda)]({'name':a12i(0xd7),'aliases':[a12i(0xeb)],'usage':a12i(0xe5),'validOpts':[],'shortDesc':a12i(0xec),'examples':[a12i(0xe5),a12i(0xe0)]},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xd3)]===j(0xdf)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xdb)]+j(0xe3));c&&b[j(0xd2)]?a['ec2rebootInstance']({'instanceId':b[j(0xd2)]}):Log[j(0xdd)](j(0xee)+b[j(0xdb)]+j(0xdc));}else Log[j(0xdd)](j(0xe6));}catch(d){d&&Log[j(0xdd)](d),process[j(0xe9)](0x1);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13c(){const J=['Auto\x20Renew:\x20','register-domain-name','Person','Contact\x20Last\x20Name\x20[Person]:\x20','notice','2258612cZTqyN','exit','ask','apply','list','options','Duration\x20in\x20years\x20[1]:\x20','ASSOCIATION','(((.+)+)+)+$','maka\x20aws:rdn\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','347449GuWSxK','PERSON','96816','2879985lHhOrN','\x20/\x20Year\x20\x0a','3495894LqvTMU','OrganizationName','32iagFDg','COMPANY','Are\x20you\x20sure?','domain','Domain\x20name\x20is\x20unavailable','constructor','warn','checkDomainAvailability','2WgzAGz','create','Address\x20Line\x202:\x20','Contact\x20Email\x20[mail@example.com]:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','The\x20domain\x20name:\x20','Contact','+1.5555555556','Invalid\x202\x20character\x20country\x20code','contactType','confirm','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','PUBLIC_BODY','rdn','Choose\x20contact\x20type','toString','16977ZFdOoQ','Zip\x20Code\x20[96816]:\x20','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','registerDomain','\x20years\x20(','error','3470817muslFY','2308563ffZAFj'];a13c=function(){return J;};return a13c();}const a13H=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x66;let f=c[d];return f;},a13d(a,b);}(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x7b))/0x1*(-parseInt(E(0x8a))/0x2)+-parseInt(E(0x9a))/0x3+parseInt(E(0x70))/0x4+-parseInt(E(0x7e))/0x5+-parseInt(E(0x80))/0x6+parseInt(E(0x69))/0x7+parseInt(E(0x82))/0x8*(parseInt(E(0x6a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x8c526));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x73)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x99)]()['search'](G(0x78))[G(0x99)]()[G(0x87)](a13a)['search']('(((.+)+)+)+$');});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){return Object['values'](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13H(0x8b)]({'name':a13H(0x6c),'aliases':[a13H(0x97)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a13H(0x85)],'validOpts':[],'shortDesc':a13H(0x95),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a13H(0x79)]},async function(a,b){const I=a13H;try{const c=b[I(0x85)],d=new AWS(),{available:f,cost:g}=await d[I(0x89)](c);if(f&&g){Log['notice'](I(0x8f)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0x88)]('\x20\x20'+h+'\x20'+i+I(0x7f));const j=await Actions[I(0x94)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':I(0x74),'name':I(0x93),'message':I(0x98),'choices':[I(0x77),I(0x83),I(0x7c),I(0x96),'RESELLER']},l=await Actions[I(0x72)](I(0x76))||'1',m=await Actions[I(0x72)](I(0x7a))||I(0x90),n=await Actions[I(0x72)](I(0x6e))||I(0x6d),{contactType:o}=await Actions[I(0x75)](k),p=await Actions[I(0x72)](I(0x9c))||'123\x20Glorious\x20Way',q=await Actions[I(0x72)](I(0x8c)),r=await Actions[I(0x72)](I(0x9b))||I(0x7d),s=await Actions[I(0x72)]('State\x20[HI]:\x20')||'HI',t=await Actions[I(0x72)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x68)](I(0x92));const v=await Actions[I(0x72)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||'+1.5555555555',w=await Actions[I(0x72)](I(0x8e))||I(0x91),x=await Actions[I(0x72)](I(0x8d))||'mail@example.com',y=await Actions['confirm'](I(0x6b)),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(0x7c)){const C=await Actions['ask']('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z[I(0x81)]=C;}const A=h||0x0*parseInt(l);Log[I(0x6f)]('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[I(0x88)](A+'\x20'+i+'\x20for\x20'+l+I(0x67)+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[I(0x94)](I(0x84));B&&await d[I(0x66)](z,c,parseInt(l),y);}}else throw I(0x86);}catch(D){D&&Log[I(0x68)](D),process[I(0x71)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1*(-parseInt(h(0x190))/0x2)+parseInt(h(0x172))/0x3+-parseInt(h(0x176))/0x4*(parseInt(h(0x18b))/0x5)+-parseInt(h(0x184))/0x6+-parseInt(h(0x18a))/0x7*(parseInt(h(0x183))/0x8)+-parseInt(h(0x17c))/0x9*(-parseInt(h(0x185))/0xa)+-parseInt(h(0x175))/0xb*(-parseInt(h(0x192))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x30928));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x174)]()[j(0x178)]('(((.+)+)+)+$')[j(0x174)]()['constructor'](a14a)['search'](j(0x181));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x172;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 n=['\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','toString','1245772hqXEAJ','20bMCTVR','success','search','confirm','exit','ec2describeKeys','3114FrZeFa','name','error','apply','2bqNAGN','(((.+)+)+)+$','maka\x20aws:remove-key-pair','8bruiIb','321228ijBApK','440TSbKwv','Deleting\x20a\x20','create','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','deleteKeyPair','1596791MFivZI','103895qcHNFf','Deleted\x20','remove-key-pair','rkp','Please\x20choose\x20a\x20key\x20to\x20delete:','261486aLjswX','maka\x20aws:rkp','60bHtZgs','793500cDDgrO'];a14c=function(){return n;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x187)]({'name':a14k(0x18d),'aliases':[a14k(0x18e)],'usage':a14k(0x182),'validOpts':[],'shortDesc':a14k(0x188),'description':a14k(0x173),'examples':[a14k(0x182),a14k(0x191)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x17b)]();let c=undefined;const d=await Actions['ask'](l(0x18f));b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x17d)]);});if(!c)throw Log[l(0x17e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x179)](l(0x186)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x189)](c),Log[l(0x177)](l(0x18c)+c)):Log['error']('Not\x20deleting\x20keypair'),process[l(0x17a)](0x0);}catch(g){g&&Log[l(0x17e)](g),process[l(0x17a)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15o=a15d;function a15c(){const q=['101210NwSodM','publicIp','isFile','sth','parse','appName','set-host','env','ask','success','host','private','create','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','322084UBvvim','56bypLQH','readFileSync','ssh.json','writeFileSync','join','644160stEMdN','27471ZUBUtB','public','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','184DCbamg','apply','config/ssh.json','chooseInstance','inherit','\x0aSaved\x20host\x20','privateIp','toString','constructor','sep','getMakaProjectConfig','exit','7769403MOPEXa','fsi','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','23074710OJmRHj','539388EhJleh','utf8','template','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','(((.+)+)+)+$','maka\x20aws:set-host\x20--env\x20dev','search','error','maka\x20aws\x20set-host','142qcXHbr'];a15c=function(){return q;};return a15c();}(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x127))/0x1+parseInt(l(0x130))/0x2*(-parseInt(l(0x146))/0x3)+parseInt(l(0x140))/0x4*(-parseInt(l(0x131))/0x5)+-parseInt(l(0x145))/0x6+parseInt(l(0x13f))/0x7*(parseInt(l(0x149))/0x8)+-parseInt(l(0x123))/0x9+parseInt(l(0x126))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xe1255));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x11e)]()[n(0x12d)](n(0x12b))[n(0x11e)]()[n(0x11f)](a15a)[n(0x12d)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x118;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0x13d)]({'name':a15o(0x137),'aliases':[a15o(0x134)],'usage':a15o(0x12f),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x138)],'validOpts':[],'shortDesc':a15o(0x12a),'description':a15o(0x125),'examples':[a15o(0x12c),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a15o;try{const c=new AWS(),d=this['fsi']['getAppConfigPath'](b[p(0x138)]),f=this[p(0x124)][p(0x121)](),g=await c[p(0x11a)](),h=a15e[p(0x144)](d,p(0x142));!this[p(0x124)][p(0x133)](h)&&await this['fsi'][p(0x129)]({'srcPath':p(0x119),'destPath':h,'context':{'app':f[p(0x136)]},'config':f});const i=JSON[p(0x135)](a15f[p(0x141)](h,p(0x128))),j=await Actions[p(0x139)](p(0x13e))||'public';if(j){if(j===p(0x147)||j===p(0x13c)){if(j==='public')i['host']=g?.[p(0x132)];else j===p(0x13c)&&(i[p(0x13b)]=g?.[p(0x11d)]);}else throw p(0x148);}else i[p(0x13b)]=g?.[p(0x11d)];a15f[p(0x143)](a15e[p(0x144)](d,p(0x142)),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a15e['join'](d,'ssh.json'),{'stdio':p(0x11b)}),Log[p(0x13a)](p(0x11c)+j+'\x20IP\x20to\x20'+d+a15e[p(0x120)]+'ssh.json');}catch(k){k&&Log[p(0x12e)](k),process[p(0x122)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x139))/0x1*(-parseInt(f(0x14a))/0x2)+-parseInt(f(0x149))/0x3*(parseInt(f(0x147))/0x4)+-parseInt(f(0x13f))/0x5*(-parseInt(f(0x132))/0x6)+parseInt(f(0x14d))/0x7*(parseInt(f(0x14c))/0x8)+-parseInt(f(0x136))/0x9+-parseInt(f(0x146))/0xa+parseInt(f(0x13e))/0xb*(parseInt(f(0x14b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x29c6d));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a['toString']()[h(0x137)]('(((.+)+)+)+$')[h(0x140)]()[h(0x131)](a16a)[h(0x137)](h(0x142));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x131;let f=c[d];return f;},a16d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const k=['99pipTIx','245oreFdO','toString','\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','(((.+)+)+)+$','\x20Ready?','apply','exit','174240jYWSBe','58496ufOCYz','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','54jPJwSz','1016GcibZE','751200xvxjve','24iqzurj','87619IYCaga','name','confirm','maka\x20aws:terminate-instance','chooseInstance','constructor','29022lCZZDW','running','instanceId','Terminate\x20an\x20EC2\x20instance','2826495ayGUFW','search','create','142qYNOJV','maka\x20aws:ti','error','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','status'];a16c=function(){return k;};return a16c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a16i(0x138)]({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0x150),'validOpts':[],'shortDesc':a16i(0x135),'description':a16i(0x141),'examples':[a16i(0x150),a16i(0x13a)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x151)]();if(b?.[j(0x134)]&&b?.[j(0x13d)]===j(0x133)){const c=await Actions[j(0x14f)](j(0x148)+b['name']+j(0x143));c?a['ec2terminateInstance']({'instanceId':b[j(0x134)]}):Log[j(0x13b)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x14e)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log['error'](j(0x13c));}catch(d){d&&Log['error'](d),process[j(0x145)](0x1);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x172))/0x1+parseInt(f(0x175))/0x2+-parseInt(f(0x16c))/0x3*(parseInt(f(0x170))/0x4)+parseInt(f(0x16e))/0x5+-parseInt(f(0x174))/0x6+-parseInt(f(0x178))/0x7*(parseInt(f(0x177))/0x8)+parseInt(f(0x16f))/0x9*(parseInt(f(0x171))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xe034b));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x176)]()[h(0x179)](h(0x16d))[h(0x176)]()['constructor'](a17a)[h(0x179)]('(((.+)+)+)+$');});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x16c;var f=c[d];return f;},a17d(a,b);}a17a();function a17c(){var i=['3xHPvhX','(((.+)+)+)+$','8607685OwBIvD','153AiwIAw','6454328HOqrsV','1566710XiOIDz','1763950BKTkpu','apply','2005692FbfTic','3607084SKcTIo','toString','664BJuJlb','131425QVdfcM','search'];a17c=function(){return i;};return a17c();}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18q=a18d;function
|
|
1
|
+
const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x8b))/0x1+parseInt(n(0x89))/0x2+parseInt(n(0xad))/0x3*(-parseInt(n(0xab))/0x4)+parseInt(n(0xaf))/0x5+-parseInt(n(0x96))/0x6*(-parseInt(n(0x90))/0x7)+parseInt(n(0x8d))/0x8*(-parseInt(n(0xa3))/0x9)+parseInt(n(0x87))/0xa*(-parseInt(n(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x54d38));function a18c(){const t=['confirm','6QmAFFW','autoupdate','2928270EMJrnJ','fsi','getGlobalMeteorVersion','pathFromProject','error','860hVyJpb','force','1120836ewmRbS','maka\x20build','238575McUMRL','invokeMeteorCommand','32648euTSil','checkMeteorPackage','exit','593943ErBsLy','This\x20project\x27s\x20meteor\x20version\x20(','update',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','apply','getProjectMeteorVersion','30yFKWkD','app.tar.gz','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','argv','build','47773EsSppM','(((.+)+)+)+$','concat','slice','splice','--release','--force','Aborted.','234rXtPLs','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','create','search','existsSync','toString','forEach','constructor','1009380ZLYUKb'];a18c=function(){return t;};return a18c();}function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x83;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0xa8)]()['search'](p(0x9c))['toString']()[p(0xaa)](a18a)[p(0xa6)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18q(0xa5)]({'name':a18q(0x9a),'usage':a18q(0x8a),'validOpts':[a18q(0x88)],'aliases':['b'],'shortDesc':a18q(0xa4),'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']},async function(a,b){const r=a18q;try{await this[r(0x83)][r(0x8e)](r(0xae),{'shouldInstall':!![]});const c=b[r(0x88)];if(!c){const g=this[r(0x83)][r(0x84)](),h=this[r(0x83)][r(0x95)](),i=a18g['gt'](g,h);if(i){const j=await Actions['confirm'](r(0x91)+h+r(0x93)+g+').\x20Update?');j&&this[r(0x83)][r(0x8c)](r(0x92),[r(0xa0),g]);}}const d=[this[r(0x83)][r(0x85)]({'pathParts':[r(0x9a)]})][r(0x9d)](process[r(0x99)][r(0x9e)](0x3)),f=a18e['join'](this[r(0x83)][r(0x85)]({}),'build',r(0x97));if(a18f[r(0xa7)](f)){const k=c??await Actions[r(0xac)](r(0x98));if(!k)throw Log[r(0x86)](r(0xa2));}d[r(0xa9)]((l,m)=>{const s=r;l===s(0xa1)&&d[s(0x9f)](m,0x2);}),this[r(0x83)][r(0x8c)](r(0x9a),d);}catch(l){console[r(0x86)](l),process[r(0x8f)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19G=a19d;(function(a,b){const D=a19d,c=a();while(!![]){try{const d
|
|
1
|
+
const a19G=a19d;(function(a,b){const D=a19d,c=a();while(!![]){try{const d=-parseInt(D(0x122))/0x1+parseInt(D(0x16a))/0x2+-parseInt(D(0x12a))/0x3+-parseInt(D(0x141))/0x4*(parseInt(D(0x13a))/0x5)+-parseInt(D(0x163))/0x6*(-parseInt(D(0x125))/0x7)+-parseInt(D(0x140))/0x8+-parseInt(D(0x147))/0x9*(-parseInt(D(0x120))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xf13a5));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a19d;if(c){const e=c[E(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const F=a19d;return a19a['toString']()[F(0x132)](F(0x129))[F(0x143)]()[F(0x128)](a19a)[F(0x132)]('(((.+)+)+)+$');});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x114;let f=c[d];return f;},a19d(a,b);}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[a19G(0x11e)]({'name':a19G(0x162),'aliases':['d'],'usage':'maka\x20build:docker','validOpts':['force',a19G(0x159),a19G(0x114)],'shortDesc':a19G(0x13c),'description':a19G(0x119),'mustBeInMakaProject':!![],'examples':[a19G(0x150),a19G(0x134)]},async function(a,b){const H=a19G;try{const c=await this[H(0x136)]['getGlobalConfig'](),d=await this['fsi'][H(0x148)](),f=H(0x167);f===H(0x153)&&(Log[H(0x160)](H(0x131)),process[H(0x13d)](0x1));const g=process[H(0x155)]==='win32'?H(0x15c):H(0x124),h=this[H(0x136)][H(0x15f)]({}),i=a19f[H(0x12c)](h,H(0x117));!this[H(0x136)][H(0x137)](i)&&await a19h[H(0x121)](H(0x13b),[H(0x13b)],{'cwd':h,'config':d});const j=this['fsi'][H(0x145)](H(0x162));if(!j){await a19h[H(0x121)]('config',['docker'],{'cwd':h,'config':d,'isDocker':!![]});const s=this[H(0x136)]['getAppConfigPath'](H(0x162)),t=a19f[H(0x12c)](s,H(0x154));await this[H(0x136)][H(0x15b)]({'srcPath':H(0x138),'destPath':t,'context':{'app':d['appName'],'isDocker':!![]},'config':d});const u=a19f[H(0x12c)](s,H(0x156));await this[H(0x136)][H(0x15b)]({'srcPath':H(0x14c),'destPath':u,'context':{'app':d[H(0x123)],'appFileCase':paramCase(d[H(0x123)])},'config':d});}if(this['fsi'][H(0x137)](c[H(0x149)])){const v=this[H(0x136)][H(0x133)](a19f[H(0x12c)](H(0x11c),'docker','_keys'));!v&&a19g[H(0x157)](a19f[H(0x12c)](H(0x11c),H(0x162),'_keys')),a19g[H(0x16d)](c[H(0x149)],a19f[H(0x12c)](h,H(0x11c),H(0x162),'_keys',H(0x11d)));}const k=[H(0x13f),a19f[H(0x12c)](this[H(0x136)][H(0x12d)](),H(0x13f)),H(0x14d),H(0x16c)],l=this[H(0x136)][H(0x144)](a19f[H(0x12c)](this[H(0x136)]['pathFromProject']({}),'app',H(0x166),H(0x152))),m=l[H(0x12f)]>0x2?!![]:![];if(m){const w=d[H(0x135)]?d[H(0x135)]:await Actions[H(0x127)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),x=d[H(0x14b)]?d[H(0x14b)]:await Actions[H(0x127)](H(0x14e));if(w[H(0x12f)]==0x0||x[H(0x12f)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';const y=x==H(0x130)?H(0x118):H(0x14a);k[H(0x15e)](H(0x115)+y+'://'+w+':'+x);if(!d[H(0x135)]&&!d[H(0x14b)]){const z=await Actions['confirm'](H(0x13e));z&&(this[H(0x136)][H(0x164)]('serverName',w),this[H(0x136)]['setProjectConfig']('serverPort',x),Log['notice'](H(0x12b)+a19f[H(0x12c)](H(0x11b),H(0x11a))));}}const n=a19f[H(0x12c)](this[H(0x136)][H(0x15f)]({}),H(0x13f),H(0x126));if(a19g['existsSync'](n)){const A=await Actions['confirm'](H(0x11f)),B=A;B&&(execSync(g+H(0x165),{'cwd':this['fsi']['findAppDirectory'](),'stdio':H(0x12e)}),execSync(g+'\x20\x20'+k['join']('\x20'),{'cwd':this[H(0x136)][H(0x168)](),'stdio':H(0x146)}));}else execSync(g+H(0x165),{'cwd':this[H(0x136)][H(0x168)](),'stdio':H(0x12e)}),Log[H(0x161)](H(0x116)+k[H(0x12c)]('\x20')),execSync(g+'\x20'+k[H(0x12c)]('\x20'),{'cwd':this[H(0x136)][H(0x168)](),'stdio':H(0x146)});const o=this['fsi'][H(0x15f)]({});let p=H(0x139)+paramCase(d[H(0x123)])+H(0x16b);b[H(0x159)]&&(p=H(0x139)+b[H(0x159)]);Log[H(0x161)](H(0x158)+f),Log[H(0x161)](H(0x15d)+p),Log[H(0x161)](H(0x169)+o);const q=b[H(0x114)]?H(0x142):'',r=H(0x15a)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':H(0x146)}),Log[H(0x161)](H(0x14f));}catch(C){console[H(0x160)](C),process[H(0x13d)](0x0);}},a19e);function a19c(){const I=['.meteor','14.21.3','findAppDirectory','Docker\x20Context\x20Path:\x20','1339136bxelBN',':latest','os.linux.x86_64','copyFileSync','debug','--server=','[*]\x20maka\x20','Dockerfile','https','\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','.maka','config','cert.pem','create','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','8530jYSJvG','processAndRunGenerator','1758061aqYQLT','appName','meteor','11240656GFrrcn','app.tar.gz','ask','constructor','(((.+)+)+)+$','889812gwuHCF','Stored\x20server\x20config\x20to\x20','join','findProjectDirectory','ignore','length','443','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).','search','isDirectory','maka\x20build:docker\x20--debug','serverName','fsi','isFile','config/pm2.config.js','-t\x20','100NmOYxE','dockerfile','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','exit','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','build','995256rkHALP','68164HWBUGL','--progress=plain\x20--no-cache','toString','readFileLines','checkConfigExists','inherit','13005pnqsIC','getMakaProjectConfig','cert','http','serverPort','config/docker-compose.yaml','--architecture','Mobile\x20server\x20port:\x20','Try\x20\x27maka\x20run:docker\x27','maka\x20build:docker\x20--tag','apply','platforms','N/A','pm2.config.js','platform','docker-compose.yaml','mkdirSync','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','tag','docker\x20build\x20--build-arg\x20NODE_VERSION=','template','meteor.bat','Tagging\x20Docker\x20Image:\x20','push','pathFromProject','error','notice','docker','6GXpBZA','setProjectConfig','\x20npm\x20install\x20--save'];a19c=function(){return I;};return a19c();}
|