@maka/maka-cli 4.8.2 → 4.8.3
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.3",
|
|
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=parseInt(m(
|
|
1
|
+
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=parseInt(m(0x10b))/0x1*(parseInt(m(0x100))/0x2)+-parseInt(m(0xd5))/0x3*(-parseInt(m(0xfc))/0x4)+-parseInt(m(0xde))/0x5+-parseInt(m(0xfe))/0x6*(-parseInt(m(0x10e))/0x7)+-parseInt(m(0xe3))/0x8*(parseInt(m(0xe8))/0x9)+parseInt(m(0xd1))/0xa+parseInt(m(0xfa))/0xb*(-parseInt(m(0xe4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x5a9b1));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0xe2)]()['search']('(((.+)+)+)+$')[o(0xe2)]()[o(0xc8)](a0a)[o(0x108)](o(0xda));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xc7;let f=c[d];return f;},a0d(a,b);}function a0c(){const z=['validateParams','light','generate','number','_commands','length','search','minOptsLength','error','110dRasFt','Name','Command\x20not\x20found','83489XuZzjJ','exit','run','unshift','options','validateMakaSubscription','header','invoke','find','constructor','Command\x20','assign','Sub-Commands:','sort','create','Description','Command\x20format\x20is\x20incorrect','Command\x20requires\x20a\x20handler\x20function','3553550nfMyOk','aliases','minArgLength','Command\x20requires\x20a\x20name','760593nihYAT','validateMakaProject','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','fsi','DARK','(((.+)+)+)+$','apply','keys','validateMeteorInstall','2284305nZZUfa','addCommand\x20requires\x20a\x20Command\x20instance','Command.create\x20requires\x20some\x20options!','split','toString','294040BGXklK','40452ZbqrWc','function','bind','murder','72SQsQxA','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','notice','Too\x20few\x20options','slice','maxOptsLength','\x20not\x20found','Please\x20run\x20\x22maka\x20install\x20meteor\x22','addCommand','processAndRunCommand','Too\x20many\x20arguments','match','There\x20is\x20no\x20Meteor\x20application\x20here','_handler','maxArgLength','name','push','mustBeInMakaProject','803PieWjx','bright','4FPmWgV','usage','42KhGTkT','getGlobalConfig','12286BpzMAZ','shortDesc'];a0c=function(){return z;};return a0c();}export class Command extends Tool{['options'];[a0p(0x106)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0xe9));if(!a[q(0xf7)])throw new Error(q(0xd4));if(typeof b!==q(0xe5))throw new Error(q(0xd0));this[q(0x112)]=Object['assign']({},a),this[q(0xf7)]=this[q(0x112)]['name'],this[q(0x106)]=[],this[q(0xf5)]=b[q(0xe6)](this);}static[a0p(0xcd)](a,b,c){const r=a0p;if(!a)throw new Error(r(0xe0));if(typeof b!==r(0xe5))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[r(0xca)](d,{'parent':c?.['options']?.['name']}),c[r(0xf0)](d),d;}['addCommand'](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xdf));this[s(0x106)][s(0xf8)](a);}async[a0p(0x110)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0xd8)][t(0xff)](),d=c['pallet']===t(0x103)?ColorMode['LIGHT']:ColorMode[t(0xd9)];Log['setColorMode'](d),await this[t(0x113)](this);}catch(f){Log[t(0x10a)](f),process[t(0x10f)](0x0);}await this[t(0x115)](a,b);}catch(g){process[t(0x10f)](0x1);}}async[a0p(0x115)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x112)];try{if(this['options'][u(0xf7)]!==u(0x104)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[u(0x106)][u(0x107)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this['_commands'][u(0x107)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x112)][u(0xf9)]){const h=this[u(0xd6)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x112)]['mustHaveMeteorInstalled']){const i=this[u(0xdd)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0x112)]['minArgLength']===u(0x105)){if(a['length']<this[u(0x112)][u(0xd3)]){Log[u(0x10a)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[u(0x112)][u(0xf6)]===u(0x105)){if(a[u(0x107)]>=this[u(0x112)]['maxArgLength']){Log[u(0x10a)](u(0xf2));throw new UsageError();}}if(typeof this[u(0x112)][u(0x109)]===u(0x105)){if(Object[u(0xdc)](b)['length']<this['options'][u(0x109)]){Log[u(0x10a)](u(0xeb));throw new UsageError();}}if(typeof this[u(0x112)][u(0xed)]===u(0x105)){if(Object['keys'](b)[u(0x107)]>=this[u(0x112)][u(0xed)]){Log[u(0x10a)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0x102)](a,b,this[u(0x112)]),_prevCmd=a[0x0];}await this['_handler']['call'](this,a,b);}catch(j){Log[u(0xfd)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0xea)](u(0xcb)),this['tableList'](this['_commands']),Log[u(0x114)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(j instanceof MustBeInProjectError)Log['error'](u(0xd7));else{if(j instanceof NoMeteorFoundError)Log[u(0x10a)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[u(0xea)](u(0xef));else j instanceof NoMeteorAppFoundError&&Log[u(0x10a)](u(0xf4));}}process['exit'](0x1);}}['tableList'](a){const v=a0p,b=new a0e({});b[v(0xf8)]([v(0x10c),'Alias',v(0xce)]),a[v(0xcc)]((c,d)=>{const w=v;return c[w(0xf7)]['localeCompare'](d[w(0xf7)]);})['forEach'](c=>{const x=v;c[x(0xf7)]!==x(0xe7)&&c[x(0xf7)]!=='play'&&b['push']([c['name'],c[x(0xd2)](),c[x(0x101)]()]);}),Log[v(0xfb)](b[v(0xe2)]());}async[a0p(0xf1)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0xe1)](':');if(!d||d[y(0x107)]===0x0)throw y(0xcf);if(d[0x0]===y(0x104)||d[0x0]==='g'&&d[y(0x107)]>0x1){const h=this[y(0x106)][y(0xc7)](j=>j[y(0xf3)](y(0x104)));if(!h)throw y(0x10d);await this[y(0x113)](h);const i=d[y(0xec)](0x1)['join'](':');b[y(0x111)](i),await h[y(0x110)](b,c);return;}let f=this[y(0x106)],g;for(const j of d){g=f[y(0xc7)](k=>k['match'](j));if(!g)try{await this[y(0xd8)]['maybeProxyCommandToMeteor']();}catch(k){throw y(0xc9)+j+y(0xee);}g&&(await this[y(0x113)](g),f=g[y(0x106)]);}if(g)await g[y(0x110)](b,c);else throw y(0x10d);}catch(l){Log[y(0x10a)](l),process[y(0x10f)](0x1);}}}
|
|
@@ -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(0x128))/0x1+parseInt(f(0x12f))/0x2*(-parseInt(f(0x12d))/0x3)+parseInt(f(0x133))/0x4+parseInt(f(0x130))/0x5+-parseInt(f(0x136))/0x6*(parseInt(f(0x131))/0x7)+parseInt(f(0x134))/0x8*(-parseInt(f(0x132))/0x9)+-parseInt(f(0x12a))/0xa*(-parseInt(f(0x129))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8f000));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x135)](h(0x12b))['toString']()[h(0x12e)](a1a)['search'](h(0x12b));});a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x128;var f=c[d];return f;},a1d(a,b);}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';function a1c(){var i=['1376809rDmxat','27sbhNPb','2806268ChwJFU','76008nENScB','search','18ReDpyy','3166RPomEW','1595kBDEFN','22690ZTosDl','(((.+)+)+)+$','apply','415146lONDkH','constructor','10eSDagb','4343980cSTmIr'];a1c=function(){return i;};return a1c();}import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1d1))/0x1*(-parseInt(h(0x1be))/0x2)+-parseInt(h(0x1da))/0x3+-parseInt(h(0x1c2))/0x4+parseInt(h(0x1b6))/0x5*(-parseInt(h(0x1c3))/0x6)+-parseInt(h(0x1cd))/0x7*(-parseInt(h(0x1c6))/0x8)+-parseInt(h(0x1c0))/0x9+-parseInt(h(0x1d5))/0xa*(-parseInt(h(0x1d7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x711ce));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a['toString']()['search'](i(0x1ba))[i(0x1bd)]()[i(0x1db)](a2a)[i(0x1d2)](i(0x1ba));});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a2d(a,b);}function a2c(){const n=['fsi','exit','393632ttUeuT','search','close','data','1620160eRDmRd','stdout','66OmJPxW','createInterface','ChatGPT\x20style\x20AI\x20interface','347025lbCpEj','constructor','question','text','22385fbVnes','create','Using\x20CA\x20Cert\x20','cert','(((.+)+)+)+$','notice','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','toString','2HeOjrf','cacert','507456Ntktst','getGlobalConfig','859600EnFwwm','1014uhltuF','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','parse','16pKRtyD','trim','GPT:\x20','bright','isFile','error','Using\x20OpenAI\x20Key\x20','844039WHGcfZ','openapikey'];a2c=function(){return n;};return a2c();}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 j=a2d,c=a2e[j(0x1d8)]({'input':process['stdin'],'output':process[j(0x1d6)]});c[j(0x1b4)]('You:\x20',async d=>{const k=j;if(d['toLowerCase']()===k(0x1d0)){c[k(0x1d3)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x1c5)](e[k(0x1d4)]);if(f[k(0x1cb)])throw new Error(f[k(0x1cb)]['message']);Log[k(0x1c9)](k(0x1c8)+f?.['choices'][0x0]?.[k(0x1b5)][k(0x1c7)]());}catch(g){Log[k(0x1cb)](g),process[k(0x1d0)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x1b7)]({'name':'ai','description':a2l(0x1d9),'validOpts':['cacert',a2l(0x1ce)],'shortDesc':a2l(0x1d9),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this[m(0x1cf)][m(0x1ca)](b[m(0x1bf)])?(c=b[m(0x1bf)],Log[m(0x1bb)](m(0x1b8)+c)):Log['error'](m(0x1bc)+c));const d=await this[m(0x1cf)][m(0x1c1)]();if(d[m(0x1b9)]){if(this[m(0x1cf)][m(0x1ca)](d['cert']))c=d[m(0x1b9)];else throw Log[m(0x1cb)](m(0x1c4)+c);}let f='';if(b[m(0x1ce)])f=b[m(0x1ce)],Log['notice'](m(0x1cc)+f);else{if(d['openai'])f=d['openai'];else throw Log['error']('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log']('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process['exit'](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(0x156))/0x1*(parseInt(f(0x15a))/0x2)+parseInt(f(0x15e))/0x3*(parseInt(f(0x160))/0x4)+-parseInt(f(0x154))/0x5*(parseInt(f(0x162))/0x6)+-parseInt(f(0x161))/0x7+parseInt(f(0x153))/0x8+-parseInt(f(0x15c))/0x9+-parseInt(f(0x15b))/0xa*(parseInt(f(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x97b16));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x159)]()[h(0x158)](h(0x155))[h(0x159)]()[h(0x15f)](a3a)[h(0x158)](h(0x155));});function a3c(){var i=['search','toString','1328542SlBTti','7033210VayWLf','4293657vSdrlA','apply','3cmGvWd','constructor','3630812KedTMV','2318813hzNdAL','132HcmfsH','8312936hlJAYZ','108660SNzHhw','(((.+)+)+)+$','1LXVGhd','11FzsQEz'];a3c=function(){return i;};return a3c();}a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x153;var f=c[d];return f;},a3d(a,b);}import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x1d1))/0x1*(-parseInt(f(0x1d3))/0x2)+-parseInt(f(0x1cb))/0x3+-parseInt(f(0x1ce))/0x4*(parseInt(f(0x1d9))/0x5)+-parseInt(f(0x1ca))/0x6+-parseInt(f(0x1da))/0x7*(-parseInt(f(0x1d5))/0x8)+parseInt(f(0x1d8))/0x9+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xc1812));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1d0)]()[h(0x1cd)](h(0x1db))['toString']()[h(0x1cf)](a4a)['search']('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x1dc)]({'name':a4i(0x1d4),'usage':a4i(0x1cc),'validOpts':[],'shortDesc':a4i(0x1d7),'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;});export default AWSCommand;function a4c(){const j=['constructor','toString','434015ekKgFg','apply','2gzyrZl','aws','8jwbFjp','10406600qUYuCD','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','12819762uKUSzv','1720915zauUFq','3704967nhSMeY','(((.+)+)+)+$','create','2801154OlOLeE','2870124AQXNRV','maka\x20aws:<sub-command>','search','4WNHOJS'];a4c=function(){return j;};return a4c();}
|
|
@@ -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(0x1b3))/0x1*(parseInt(i(0x1b2))/0x2)+parseInt(i(0x19d))/0x3*(parseInt(i(0x1a5))/0x4)+parseInt(i(0x1ab))/0x5+-parseInt(i(0x195))/0x6*(parseInt(i(0x19e))/0x7)+-parseInt(i(0x199))/0x8*(-parseInt(i(0x1a8))/0x9)+parseInt(i(0x1a0))/0xa*(parseInt(i(0x1a2))/0xb)+-parseInt(i(0x19c))/0xc*(parseInt(i(0x1ac))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xd3703));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0x1b1)](k(0x1a1))[k(0x197)]()[k(0x196)](a5a)[k(0x1b1)](k(0x1a1));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x195;let f=c[d];return f;},a5d(a,b);}function a5c(){const n=['3323464bZPHwz','route53CreateHostedZone','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','84ZKrVAX','39LMhWiD','234059SOjLYF','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','3992200NlcAmP','(((.+)+)+)+$','33EloDkP','create-hosted-zone','create','239516JcXuPC','Instance\x20not\x20found','chz','27itIIiN','maka\x20aws:create-hosted-zone','error','7271540EtWWHP','5936385WpzQqy','publicIp','exit','Set\x20hosted\x20zone\x20to\x20an\x20instance?','apply','search','1161382OfMBSI','1WehiJc','domain','confirm','6hNIemC','constructor','toString','maka\x20aws:create-hosted-zone\x20--domain=example.com'];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(0x1a4)]({'name':a5l(0x1a3),'aliases':[a5l(0x1a7)],'usage':a5l(0x1a9),'requiredOpts':['domain'],'validOpts':[],'shortDesc':a5l(0x19f),'examples':[a5l(0x198),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b[m(0x1b4)],d=new AWS();d[m(0x19a)](c);const f=await Actions[m(0x1b5)](m(0x1af));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x1ad)])throw Log['error'](m(0x19b));d['linkEC2ToRoute53'](g['id'],g['publicIp'],c);}else throw m(0x1a6);}}catch(h){h&&Log[m(0x1aa)](h),process[m(0x1ae)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x120))/0x1+-parseInt(ae(0xdc))/0x2*(parseInt(ae(0x107))/0x3)+parseInt(ae(0xdb))/0x4*(-parseInt(ae(0xeb))/0x5)+parseInt(ae(0x10b))/0x6+-parseInt(ae(0x109))/0x7*(parseInt(ae(0xd6))/0x8)+-parseInt(ae(0x113))/0x9*(-parseInt(ae(0xbe))/0xa)+parseInt(ae(0x11b))/0xb*(-parseInt(ae(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x3e56f));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0xf2)]()['search'](ag(0xc2))[ag(0xf2)]()[ag(0x105)](a6a)[ag(0xe2)]('(((.+)+)+)+$');});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';import{FSI}from'../../tools/fsi/fsi.class.js';function a6c(){const au=['maka-cli','Key-Pair:\x20','sgId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','No\x20instance\x20has\x20been\x20created.','8ScRwTJ','1:1','Creating\x20user\x20data\x20file\x20in\x20','12LawtrC','environment','316IMSWgf','2HtSiDo','Web\x20App','\x20CIDR:\x20','alias','maka\x20aws:ci\x20--env\x20prod','isFile','search','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Setting\x20SG\x20ID\x20to:\x20','maka\x20aws:create-instance','ec2createSG','\x20DESCRIPTION:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Desc','Remove\x20the\x20keypair\x20','11415MEzLMr','deleteSecurityGroup','getConfigFromShorthand','ID:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','user-data','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','toString','Setting\x20AMI\x20ID\x20to\x20','\x20SG\x20NAME:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','desc','Name','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','build\x20on\x20','**\x20Available\x20Security\x20Groups\x20**','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','env','cidr','error','notice','push','User\x20Data:','amiId','constructor','\x20:\x20','1084779uWTZJk','fsi','345513cvnPqa','maka\x20aws:create-instance\x20--env\x20dev','1641402Wylsni','parse','success','**\x20Available\x20AMIs\x20**','exit','amazon','subnetId','sort','783693RcYfru','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','getMakaProjectConfig','log','split','number','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','chooseVPC','2077746VuGdqa','string','apply','22,80,443','Create\x20new\x20AWS\x20instance','326586TJYAvD','forEach','name','**\x20Available\x20Subnets\x20**','50tvziIx','cider','getAppConfigPath','create','(((.+)+)+)+$','Instance\x20Count:\x20','getTime','getSecurityGroups','ask','bright','EC2\x20Name:\x20[','ec2create','unlinkSync','Setting\x20the\x20key-pair\x20to:\x20','\x20SGID:\x20','t3.micro','confirm','ImageID:','date'];a6c=function(){return au;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xbb;let f=c[d];return f;},a6d(a,b);}Command[a6ah(0xc1)]({'name':'create-instance','aliases':['ci'],'usage':a6ah(0xe5),'examples':[a6ah(0x10a),a6ah(0xe0)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xfe)}],'validOpts':[],'shortDesc':a6ah(0x11f),'description':a6ah(0xfc)},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x115)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x108)][ai(0xed)](b[ai(0xfe)]),i=this[ai(0x108)][ai(0xc0)](h),j=g+'-'+h,k=await Actions[ai(0xc6)](ai(0xc8)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x10d)](ai(0xcb)+r);}else try{Log['notice']('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0xc6)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x100)]('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'),Log[ai(0x101)](ai(0xd5));return;}B?.[ai(0xbb)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xbc)],Log[aj(0x10d)](aj(0xcb)+r));});}catch(D){Log[ai(0x100)](D);}l=await d[ai(0x11a)]();const t=await Actions[ai(0xce)](ai(0x119),!![]);let u;if(t){const E=l===''?await d[ai(0x11a)]():l;u=await Actions[ai(0xc6)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0xc6)](ai(0xf9))||ai(0x11e),G=F[ai(0x117)](',');await d[ai(0xe6)]({'description':ai(0xdd),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xc5)](u);if(I===''){Log[ai(0x101)](ai(0xfb)),J['forEach'](function(L){const ak=ai;L[ak(0xbc)]===u?Log[ak(0x101)](ak(0xee)+L['id']+ak(0xf4)+L[ak(0xbc)]+ak(0xcc)+L[ak(0xd3)]):Log[ak(0xc7)](ak(0xee)+L['id']+ak(0xf4)+L['name']+ak(0xcc)+L[ak(0xd3)]);});const K=await Actions[ai(0xc6)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0xf2)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xd3)],Log[al(0x10d)](al(0xe4)+m+'\x0a'));});}else m=I,Log['success'](ai(0xe4)+m+'\x0a');if(m==='')throw Log[ai(0x100)](ai(0xd4));}catch(L){Log[ai(0x100)](L);}try{const M=0x7e6;Log[ai(0x101)](ai(0x10e));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(0xf2)](),O=JSON[ai(0x10c)](N),P=[],Q=[];O[ai(0xbb)](function(S){const am=ai;if(S[am(0xdf)]===am(0x110)){const T=S['Desc'][am(0x117)](am(0xfa))[0x1];P[am(0x102)]({'amiId':S['ID'],'desc':S[am(0xe9)],'date':T});}}),P[ai(0x112)](function(S,T){const an=ai;return new Date(T['date'])[an(0xc4)]()-new Date(S[an(0xd0)])[an(0xc4)]();}),P[ai(0xbb)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0x104)],'desc':S[ao(0xf6)]});}),Q[ai(0xbb)](function(S){const ap=ai;console[ap(0x116)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S[ap(0x104)]+ap(0xe7)+S[ap(0xf6)]);});const R=await Actions[ai(0xc6)](ai(0xf1))||'0';Q[ai(0xbb)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log['success'](aq(0xf3)+n+aq(0x106)+S[aq(0xf6)]));});if(n==='')throw Log[ai(0x100)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log['error'](S);}try{Log['notice'](ai(0xbd));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xf2)](),U=JSON[ai(0x10c)](T),V=[];U[ai(0xbb)](function(X,Y){const ar=ai;V[ar(0x102)]({'id':Y,'cidr':X[ar(0xbf)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0xbb)](function(X){const as=ai;console[as(0x116)]('ID:\x20'+X['id']+as(0xde)+X[as(0xff)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[as(0x111)]);});const W=await Actions[ai(0xc6)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0xbb)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x10d)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error'](ai(0xd4));}catch(X){Log[ai(0x100)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xc6)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0xd7),Z=Y[ai(0x117)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x118)&&typeof parseInt(a0)===ai(0x118)&&Log[ai(0x10d)](ai(0xe8)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0xcd);typeof a2===ai(0x11c)&&(o=a2);}catch(a3){Log[ai(0x100)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f['join'](i,ai(0xf0)),Log[ai(0x101)](ai(0xd8)+x),await this[ai(0x108)]['createFile']({'filePath':x,'data':''}),await Actions['confirm'](ai(0xf5)));}catch(a5){Log[ai(0x100)](a5);}try{const a6=JSON['parse'](execSync(ai(0x114)+p+ai(0xe3))[ai(0xf2)]())[0x0]['subnet'];Log[ai(0x101)](ai(0xcf)+n),Log['notice'](ai(0xc3)+v+':'+w),Log['notice']('Instace\x20Type:\x20'+o),Log['notice'](ai(0xd2)+r),Log[ai(0x101)]('Security\x20Group:\x20'+m),Log[ai(0x101)]('Subnet:\x20'+a6);if(x){Log['notice'](ai(0x103)+x);const a8=a6g['readFileSync'](x)[ai(0xf2)]();Log[ai(0x101)](a8);}const a7=await Actions['confirm'](ai(0xef));if(a7){const a9=await d[ai(0xc9)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0xd1)},{'Key':ai(0xda),'Value':h},{'Key':ai(0xf7),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x10d)](ai(0xfd)),Log['bright'](ai(0xf8)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0xce)](ai(0xea)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0xe1)](s)&&a6g[ai(0xca)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0xec)](m);}}catch(ac){Log[ai(0x100)](ac);}}catch(ad){ad&&Log[ai(0x100)](ad),process[ai(0x10f)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0xcd))/0x1*(-parseInt(ae(0xa2))/0x2)+-parseInt(ae(0x8f))/0x3+-parseInt(ae(0x85))/0x4+-parseInt(ae(0x94))/0x5*(parseInt(ae(0xb5))/0x6)+-parseInt(ae(0x83))/0x7*(parseInt(ae(0xde))/0x8)+parseInt(ae(0xd8))/0x9+parseInt(ae(0xca))/0xa*(parseInt(ae(0x97))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1db4e));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a['toString']()[ag(0x89)]('(((.+)+)+)+$')[ag(0xe2)]()[ag(0xdf)](a6a)[ag(0x89)]('(((.+)+)+)+$');});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-0x78;let f=c[d];return f;},a6d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x92)]({'name':a6ah(0xe3),'aliases':['ci'],'usage':a6ah(0x96),'examples':[a6ah(0xba),a6ah(0xbd)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x9d)}],'validOpts':[],'shortDesc':a6ah(0xa5),'description':a6ah(0x8d)},async function(a,b){const ai=a6ah;try{const c=this[ai(0xdd)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xdd)]['getConfigFromShorthand'](b[ai(0x9d)]),i=this[ai(0xdd)][ai(0x93)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x7a)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xd0)](ai(0xb6),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x84)](ai(0xb2)+r);}else try{Log['notice'](ai(0xa6));const A=r?r:k,B=await d[ai(0xac)]({'suggestion':A}),C=await Actions[ai(0xd2)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0xbe)](ai(0xa3)),Log[ai(0xd1)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0xa9)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xc4)],Log[aj(0x84)](aj(0xb2)+r));});}catch(D){Log[ai(0xbe)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0xd0)](ai(0x82),!![]);let u;if(t){const E=l===''?await d[ai(0x99)]():l;u=await Actions[ai(0xd2)](ai(0x7c)+k+']')||k;const F=await Actions[ai(0xd2)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0xd6),G=F[ai(0xaf)](',');await d['ec2createSG']({'description':ai(0x88),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xe1)](u);if(I===''){Log[ai(0xd1)](ai(0xcf)),J[ai(0xa9)](function(L){const ak=ai;L[ak(0xc4)]===u?Log[ak(0xd1)]('ID:\x20'+L['id']+ak(0xc0)+L[ak(0xc4)]+ak(0x8b)+L['sgId']):Log['bright']('ID:\x20'+L['id']+ak(0xc0)+L[ak(0xc4)]+ak(0x8b)+L[ak(0x90)]);});const K=await Actions[ai(0xd2)](ai(0x9e)+H+']\x20')||H['toString']();J[ai(0xa9)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x90)],Log[al(0x84)](al(0xa1)+m+'\x0a'));});}else m=I,Log[ai(0x84)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0xbe)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0xd1)](ai(0xa7));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0x9f))[ai(0xe2)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0xa9)](function(S){const am=ai;if(S['alias']===am(0xc2)){const T=S[am(0xc8)][am(0xaf)]('build\x20on\x20')[0x1];P[am(0xc7)]({'amiId':S['ID'],'desc':S[am(0xc8)],'date':T});}}),P[ai(0xdb)](function(S,T){const an=ai;return new Date(T[an(0xc3)])[an(0xc9)]()-new Date(S[an(0xc3)])[an(0xc9)]();}),P[ai(0xa9)](function(S,T){const ao=ai;Q[ao(0xc7)]({'id':T,'amiId':S['amiId'],'desc':S['desc']});}),Q['forEach'](function(S){const ap=ai;console['log'](ap(0x9b)+S['id']+ap(0xb8)+S[ap(0x98)]+ap(0x8e)+S[ap(0x7e)]);});const R=await Actions[ai(0xd2)](ai(0xab))||'0';Q[ai(0xa9)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x98)],Log[aq(0x84)](aq(0x79)+n+aq(0xcc)+S[aq(0x7e)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0xbe)](S);}try{Log[ai(0xd1)](ai(0xd3));const T=execSync(ai(0xc5))[ai(0xe2)](),U=JSON['parse'](T),V=[];U[ai(0xa9)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0xd5)]});}),V[ai(0xa9)](function(X){const as=ai;console[as(0xb1)]('ID:\x20'+X['id']+as(0xd4)+X['cidr']+as(0x91)+X['az']+as(0x80)+X[as(0xd5)]);});const W=await Actions[ai(0xd2)](ai(0xe0))||'0';V[ai(0xa9)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xd5)],Log[at(0x84)](at(0xa8)+p));});if(p==='')throw Log[ai(0xbe)](ai(0x7b));}catch(X){Log[ai(0xbe)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xd2)](ai(0xdc))||'1:1',Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xce)&&typeof parseInt(a0)===ai(0xce)&&Log[ai(0x84)](ai(0xa4)+Z+':'+a0);}catch(a1){Log[ai(0xbe)](a1);}try{const a2=await Actions[ai(0xd2)](ai(0xcb))||'t3.micro';typeof a2===ai(0x78)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0xd0)](ai(0xb7),![]);a4&&(x=a6f['join'](i,ai(0xb3)),Log[ai(0xd1)](ai(0xb0)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0xd0)](ai(0x8a)));}catch(a5){Log[ai(0xbe)](a5);}try{const a6=JSON[ai(0x81)](execSync(ai(0xda)+p+ai(0xd9))[ai(0xe2)]())[0x0][ai(0xbc)];Log['notice'](ai(0xb9)+n),Log[ai(0xd1)](ai(0xbf)+v+':'+w),Log['notice']('Instace\x20Type:\x20'+o),Log[ai(0xd1)](ai(0xd7)+r),Log[ai(0xd1)](ai(0xc6)+m),Log['notice'](ai(0x9c)+a6);if(x){Log[ai(0xd1)](ai(0x7f)+x);const a8=a6g[ai(0xb4)](x)[ai(0xe2)]();Log[ai(0xd1)](a8);}const a7=await Actions[ai(0xd0)](ai(0x87));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x8c)},{'Key':ai(0xa0),'Value':h},{'Key':ai(0xaa),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x84)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x9a)](ai(0xbb)));}else{Log[ai(0xd1)](ai(0xae));const aa=await Actions[ai(0xd0)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0xc1)](r),f['isFile'](s)&&a6g[ai(0x7d)](s));const ab=await Actions[ai(0xd0)](ai(0xad)+m+'\x20?',!![]);ab&&d[ai(0x95)](m);}}catch(ac){Log[ai(0xbe)](ac);}}catch(ad){ad&&Log[ai(0xbe)](ad),process['exit'](0x0);}},a6e);function a6c(){const au=['EC2\x20Name:\x20[','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Security\x20Group\x20Name:\x20[','unlinkSync','desc','User\x20Data:','\x20SUBNETID:\x20','parse','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','73206ahYbAV','success','330804HpmJqj','apply','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Web\x20App','search','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','\x20SGID:\x20','maka-cli','\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','\x20DESCRIPTION:\x20','597819WMCEhP','sgId','\x20AZONE:\x20','create','getAppConfigPath','50GzuzIG','deleteSecurityGroup','maka\x20aws:create-instance','42636KIMztU','amiId','chooseVPC','bright','ID:\x20','Subnet:\x20','env','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\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','environment','Setting\x20SG\x20ID\x20to:\x20','2OKTJjK','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Create\x20new\x20AWS\x20instance','**\x20Available\x20key-pairs\x20**','**\x20Available\x20AMIs\x20**','Setting\x20Subnet\x20ID\x20to\x20','forEach','Name','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ec2describeKeys','Remove\x20the\x20security\x20group\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','split','Creating\x20user\x20data\x20file\x20in\x20','log','Setting\x20the\x20key-pair\x20to:\x20','user-data','readFileSync','98352sBVwhF','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Would\x20you\x20like\x20to\x20include\x20user\x20data?','\x20AMIID:\x20','ImageID:','maka\x20aws:create-instance\x20--env\x20dev','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','subnet','maka\x20aws:ci\x20--env\x20prod','error','Instance\x20Count:\x20','\x20SG\x20NAME:\x20','deleteKeyPair','amazon','date','name','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Security\x20Group:\x20','push','Desc','getTime','1790IZpOgN','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20:\x20','119809DTfdBV','number','**\x20Available\x20Security\x20Groups\x20**','confirm','notice','ask','**\x20Available\x20Subnets\x20**','\x20CIDR:\x20','subnetId','22,80,443','Key-Pair:\x20','977535yHzFHB','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','sort','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','fsi','88BwPvpZ','constructor','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getSecurityGroups','toString','create-instance','string','Setting\x20AMI\x20ID\x20to\x20'];a6c=function(){return au;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x1a9))/0x1*(-parseInt(g(0x1ab))/0x2)+parseInt(g(0x1ae))/0x3+-parseInt(g(0x1a6))/0x4+-parseInt(g(0x1b4))/0x5*(-parseInt(g(0x1b0))/0x6)+-parseInt(g(0x1ad))/0x7+-parseInt(g(0x1a5))/0x8*(parseInt(g(0x1b3))/0x9)+parseInt(g(0x1af))/0xa*(parseInt(g(0x1be))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xd698a));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x1ba)]()['search'](i(0x1a7))[i(0x1ba)]()[i(0x1b5)](a7a)[i(0x1b2)](i(0x1a7));});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(0x1aa)]({'name':'create-key-pair','aliases':[a7j(0x1bd)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x1bb)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x1b8)],'validOpts':[],'shortDesc':a7j(0x1bc),'description':a7j(0x1a8)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x1b6)][k(0x1ac)](b[k(0x1b8)]);c[k(0x1b7)]({'env':d});}catch(f){f&&Log['error'](f),process[k(0x1b9)](0x0);}},a7e);function a7c(){const l=['9jfqUQI','1179315TExMFp','constructor','fsi','createKeyPair','env','exit','toString','maka\x20aws:ckp\x20--env\x20prod','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','ckp','20889MNCnTE','11784328XYGzBr','4546188VfLrfi','(((.+)+)+)+$','\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','110739NhfqqP','create','12nQtOMr','getConfigFromShorthand','11548782jXMKEt','954297maPCVe','21430SHJbwW','36wbPRtD','apply','search'];a7c=function(){return l;};return a7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a8p=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc0;let f=c[d];return f;},a8d(a,b);}(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xd4))/0x1+-parseInt(m(0xd6))/0x2+parseInt(m(0xde))/0x3*(-parseInt(m(0xc6))/0x4)+parseInt(m(0xe0))/0x5*(parseInt(m(0xca))/0x6)+-parseInt(m(0xdb))/0x7+parseInt(m(0xd0))/0x8*(-parseInt(m(0xcc))/0x9)+parseInt(m(0xc5))/0xa*(parseInt(m(0xd5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x6bae8));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xdf)]()[o(0xc1)](o(0xc3))['toString']()['constructor'](a8a)['search']('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';function a8c(){const s=['5215441EhDaUZ','create-security-group','Security\x20Group\x20Name:\x20[','68415IeCTTe','toString','144645udAxej','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','search','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','(((.+)+)+)+$','csg','40730pdLGRZ','132JSwDhH','split','apply','chooseVPC','6xvseEl','create','1216485qkbkob','maka\x20aws\x20create-security-group','getMakaProjectConfig','\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','24KVgmTq','maka\x20aws:create-secuirty-group','ask','22,80,443','269156nDnMwu','8041sWSxuI','785898CUdngE','error','maka\x20aws:csg','match','name'];a8c=function(){return s;};return a8c();}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0xcb)]({'name':a8p(0xdc),'aliases':[a8p(0xc4)],'usage':a8p(0xcd),'validOpts':[],'shortDesc':a8p(0xc2),'description':a8p(0xcf),'examples':[a8p(0xd1),a8p(0xd8)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this['fsi'][q(0xce)](),{appName:f}=d,g=await c[q(0xc9)](),h=b[q(0xda)]?b[q(0xda)]:''+f,i=await Actions[q(0xd2)](q(0xdd)+h+']')||h,j=await Actions[q(0xd2)](q(0xc0))||q(0xd3),k=j[q(0xc7)](',');k['forEach'](l=>{const r=q;if(!l[r(0xd9)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xd7)](l),process['exit'](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x15e))/0x1+-parseInt(f(0x155))/0x2+-parseInt(f(0x156))/0x3*(-parseInt(f(0x153))/0x4)+parseInt(f(0x14f))/0x5+parseInt(f(0x152))/0x6*(-parseInt(f(0x157))/0x7)+parseInt(f(0x158))/0x8+-parseInt(f(0x159))/0x9*(-parseInt(f(0x147))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xf064e));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a['toString']()['search'](h(0x150))[h(0x15b)]()[h(0x15c)](a9a)[h(0x14c)](h(0x150));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x147;let f=c[d];return f;},a9d(a,b);}a9a();function a9c(){const k=['maka\x20aws:di','791415oljIhM','(((.+)+)+)+$','create','11206164Inkqmp','704XMlFZC','maka\x20aws:describe-instances','2496032uitNjI','14772dstaqe','7UqhSGi','15550528XKoBMX','4357944VjIRcs','ec2describeInstances','toString','constructor','exit','1289439RjFncP','50kwdiGG','apply','\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','describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','search','error'];a9c=function(){return k;};return a9c();}import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9i(0x151)]({'name':a9i(0x14a),'aliases':['di'],'usage':a9i(0x154),'validOpts':[],'shortDesc':a9i(0x14b),'examples':['maka\x20aws:describe-instances',a9i(0x14e)],'description':a9i(0x149)},async function(){const j=a9i;try{const a=new AWS();a[j(0x15a)]();}catch(b){b&&Log[j(0x14d)](b),process[j(0x15d)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;function a10c(){const k=['search','4888zccqgt','837008kVxRGr','30uESswN','125390oyRNFg','dkp','9870zFsZjL','(((.+)+)+)+$','error','784766zhkoKh','2756964JkhNlU','ec2describeKeys','toString','189CtwtHJ','apply','maka\x20aws:describe-key-pairs','describe-key-pairs','3033kWwOrh','10164340IXQWYy'];a10c=function(){return k;};return a10c();}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x150))/0x1+parseInt(f(0x160))/0x2*(parseInt(f(0x154))/0x3)+-parseInt(f(0x15c))/0x4+-parseInt(f(0x15e))/0x5*(parseInt(f(0x15d))/0x6)+parseInt(f(0x151))/0x7+-parseInt(f(0x15b))/0x8*(parseInt(f(0x158))/0x9)+parseInt(f(0x159))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x60a64));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x153)]()[h(0x15a)](h(0x161))[h(0x153)]()['constructor'](a10a)[h(0x15a)](h(0x161));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x150;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10i(0x157),'aliases':[a10i(0x15f)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a10i(0x156),'maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a[j(0x152)]();}catch(b){b&&Log[j(0x162)](b),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(
|
|
1
|
+
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x135))/0x1*(-parseInt(l(0x13c))/0x2)+parseInt(l(0x150))/0x3*(-parseInt(l(0x133))/0x4)+parseInt(l(0x146))/0x5+parseInt(l(0x149))/0x6+-parseInt(l(0x134))/0x7+parseInt(l(0x13f))/0x8+parseInt(l(0x145))/0x9*(parseInt(l(0x159))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xa45dc));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x158)]()[n(0x147)](n(0x14f))[n(0x158)]()[n(0x141)](a11a)[n(0x147)](n(0x14f));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x133;let f=c[d];return f;},a11d(a,b);}function a11c(){const s=['getSecurityGroups','bright','4323438AzbMYc','2862355uediiu','search','includes','5683968JetBVA','apply','delete-security-group','ID:\x20','error','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','(((.+)+)+)+$','147kyQyQs','forEach','getMakaProjectConfig','Deleted\x20','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','sgId','name','toString','20yttghc','\x20SGID:\x20','29116WztpYQ','4468338GLcNzl','1093ogFfBV','notice','exit','create','dsg','maka\x20aws:delete-sg','Deleting\x20a\x20','2138jWwERy','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','deleteSecurityGroup','2848824wxWmat','isMakaProject','constructor','success'];a11c=function(){return s;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0x138)]({'name':a11o(0x14b),'aliases':[a11o(0x139)],'usage':a11o(0x13a),'validOpts':[],'shortDesc':a11o(0x14e),'examples':[a11o(0x13a),a11o(0x154)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x140)]();let d='';if(c){const j=b[p(0x152)]();d=j['appName'];}const {sgList:f}=await a[p(0x143)]();f[p(0x151)](function(k){const q=p;c&&k[q(0x157)][q(0x148)](d)?Log[q(0x136)](q(0x14c)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x157)]+q(0x15a)+k[q(0x156)]):Log[q(0x144)](q(0x14c)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x15a)+k['sgId']);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x151)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x156)]);});if(!g)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions['confirm'](p(0x13b)+g+p(0x13d),![]);i?(await a[p(0x13e)](g),Log[p(0x142)](p(0x153)+g)):Log[p(0x14d)](p(0x155)),process[p(0x137)](0x0);}catch(k){k&&Log[p(0x14d)](k),process[p(0x137)](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(0x88))/0x1+parseInt(f(0x84))/0x2+parseInt(f(0x8d))/0x3+-parseInt(f(0x71))/0x4+parseInt(f(0x73))/0x5*(parseInt(f(0x85))/0x6)+-parseInt(f(0x8b))/0x7+-parseInt(f(0x7f))/0x8*(parseInt(f(0x7d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xef4b2));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x74)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x81)]()['search'](h(0x79))[h(0x81)]()[h(0x70)](a12a)[h(0x86)]('(((.+)+)+)+$');});a12a();function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x6f;let f=c[d];return f;},a12d(a,b);}import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12c(){const k=['You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','813852CpozTh','ec2rebootInstance','constructor','1320688WvnKqu','name','2478855KvAvhC','apply','Reboot\x20an\x20EC2\x20instance','\x20is\x20still\x20running.','exit','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','(((.+)+)+)+$','chooseInstance','running','rbi','3069TNVVEx','status','51048xfIZIB','maka\x20aws:reboot-instance','toString','\x20Ready?','maka\x20aws:rbi','2615768xqecFK','6YJffRg','search','confirm','1846684OEDqZb','create','error','3047688TEaFGh'];a12c=function(){return k;};return a12c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0x89)]({'name':'reboot-instance','aliases':[a12i(0x7c)],'usage':a12i(0x80),'validOpts':[],'shortDesc':a12i(0x75),'examples':[a12i(0x80),a12i(0x83)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x7a)]();if(b?.[j(0x7e)]===j(0x7b)){const c=await Actions[j(0x87)](j(0x78)+b[j(0x72)]+j(0x82));c&&b['instanceId']?a[j(0x6f)]({'instanceId':b['instanceId']}):Log[j(0x8a)](j(0x8c)+b['name']+j(0x76));}else Log[j(0x8a)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x8a)](d),process[j(0x77)](0x1);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13I=a13d;
|
|
1
|
+
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0x161))/0x1*(parseInt(E(0x160))/0x2)+-parseInt(E(0x140))/0x3+-parseInt(E(0x149))/0x4*(-parseInt(E(0x15d))/0x5)+parseInt(E(0x133))/0x6*(parseInt(E(0x131))/0x7)+-parseInt(E(0x12c))/0x8+-parseInt(E(0x136))/0x9*(-parseInt(E(0x158))/0xa)+-parseInt(E(0x156))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x57284));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a['toString']()[G(0x128)](G(0x138))[G(0x162)]()[G(0x144)](a13a)[G(0x128)](G(0x138));});function a13c(){const K=['confirm','Are\x20you\x20sure?','OrganizationName','1010088mzTDFT','rdn','includes','Duration\x20in\x20years\x20[1]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','161EZUVRV','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','131382dyLaFZ','Choose\x20contact\x20type','Domain\x20name\x20is\x20unavailable','423uldvqS','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','(((.+)+)+)+$','PERSON','contactType','register-domain-name','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','mail@example.com','\x20/\x20Year)','COMPANY','169803pUfkSp','123\x20Glorious\x20Way','notice','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','constructor','checkDomainAvailability','error','96816','maka\x20aws:register-domain-name\x20--domain=example.com','4rcCJbr','Contact','+1.5555555555','State\x20[HI]:\x20','\x20is\x20available\x20for:','create','\x20for\x20','Contact\x20First\x20Name\x20[Contact]:\x20','domain','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','ask','My\x20Comanpy,\x20LLC.','exit','3897245OgiVrZ','apply','139220JvFdMG','warn','Auto\x20Renew:\x20','RESELLER','Country\x20Code\x20[US]:\x20','1763565EXrrLZ','options','Contact\x20Email\x20[mail@example.com]:\x20','650QhNBsu','1897cpUGWz','toString','\x20years\x20(','\x20/\x20Year\x20\x0a','ASSOCIATION','search'];a13c=function(){return K;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x125;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0x12e)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x14e)]({'name':a13I(0x13b),'aliases':[a13I(0x12d)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a13I(0x151)],'validOpts':[],'shortDesc':a13I(0x137),'examples':[a13I(0x148),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a13I;try{const c=b[J(0x151)],d=new AWS(),{available:f,cost:g}=await d[J(0x145)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+J(0x14d));const {Price:h,Currency:i}=g;Log[J(0x159)]('\x20\x20'+h+'\x20'+i+J(0x126));const j=await Actions[J(0x129)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0x13a),'message':J(0x134),'choices':[J(0x127),J(0x13f),'PERSON','PUBLIC_BODY',J(0x15b)]},l=await Actions[J(0x153)](J(0x12f))||'1',m=await Actions[J(0x153)](J(0x150))||J(0x14a),n=await Actions[J(0x153)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',{contactType:o}=await Actions[J(0x15e)](k),p=await Actions[J(0x153)](J(0x152))||J(0x141),q=await Actions[J(0x153)]('Address\x20Line\x202:\x20'),r=await Actions[J(0x153)]('Zip\x20Code\x20[96816]:\x20')||J(0x147),s=await Actions[J(0x153)](J(0x14c))||'HI',t=await Actions[J(0x153)](J(0x15c))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x146)]('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0x153)](J(0x13c))||J(0x14b),w=await Actions['ask'](J(0x143))||'+1.5555555556',x=await Actions['ask'](J(0x15f))||J(0x13d),y=await Actions[J(0x129)](J(0x15a)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x139)){const C=await Actions[J(0x153)](J(0x130))||J(0x154);z[J(0x12b)]=C;}const A=h||0x0*parseInt(l);Log[J(0x142)](J(0x132)),Log[J(0x159)](A+'\x20'+i+J(0x14f)+l+J(0x125)+h+'\x20'+i+J(0x13e));const B=await Actions[J(0x129)](J(0x12a));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x135);}catch(D){D&&Log[J(0x146)](D),process[J(0x155)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0xeb))/0x1*(parseInt(h(0xfb))/0x2)+-parseInt(h(0xf6))/0x3+parseInt(h(0x102))/0x4*(parseInt(h(0x107))/0x5)+parseInt(h(0x101))/0x6*(-parseInt(h(0xfa))/0x7)+parseInt(h(0x100))/0x8*(parseInt(h(0xf5))/0x9)+parseInt(h(0xf4))/0xa+-parseInt(h(0xf0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x289e4));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0xf9)]()[j(0x103)](j(0xed))[j(0xf9)]()[j(0xfc)](a14a)[j(0x103)](j(0xed));});a14a();function a14c(){const n=['toString','42Qntpbm','2xmjnDg','constructor','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Deleting\x20a\x20','success','9272aDdcux','11142KtPZGZ','428CktpWR','search','apply','exit','Not\x20deleting\x20keypair','1630TNBGrX','error','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','253757UXdTqv','maka\x20aws:remove-key-pair','(((.+)+)+)+$','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','name','3038563yjPGuI','ask','ec2describeKeys','forEach','2115450DZnzlr','963oLXGiP','511350PvmLdW','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','remove-key-pair'];a14c=function(){return n;};return a14c();}import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xea;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14k(0xf8),'aliases':['rkp'],'usage':a14k(0xec),'validOpts':[],'shortDesc':a14k(0xea),'description':a14k(0xf7),'examples':[a14k(0xec),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0xf2)]();let c=undefined;const d=await Actions[l(0xf1)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0xf3)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xef)]);});if(!c)throw Log['error'](l(0xee));const f=await Actions['confirm'](l(0xfe)+c+l(0xfd),![]);f?(await a['deleteKeyPair'](c),Log[l(0xff)]('Deleted\x20'+c)):Log[l(0x108)](l(0x106)),process['exit'](0x0);}catch(g){g&&Log[l(0x108)](g),process[l(0x105)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x19c))/0x1+-parseInt(l(0x1b5))/0x2+parseInt(l(0x1a6))/0x3+-parseInt(l(0x1a5))/0x4+parseInt(l(0x1b2))/0x5+-parseInt(l(0x19e))/0x6+parseInt(l(0x1a9))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x9b651));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a['toString']()[n(0x198)]('(((.+)+)+)+$')[n(0x19f)]()[n(0x18f)](a15a)[n(0x198)]('(((.+)+)+)+$');});function a15c(){const q=['config/ssh.json','437514TpXJke','error','271068pCVtqg','toString','\x0aSaved\x20host\x20','create','writeFileSync','join','publicIp','4357200yitIlF','1310244jXqbXY','isFile','maka\x20aws\x20set-host','11513873dNZwwx','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','privateIp','host','private','getAppConfigPath','ask','maka\x20aws:set-host\x20--env\x20dev','env','1481440QmuAsu','sep','public','2088828JOYDeY','template','parse','apply','constructor','stringify','ssh.json','success','readFileSync','maka\x20aws:sth\x20--env\x20prod','utf8','fsi','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','search','exit','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22'];a15c=function(){return q;};return a15c();}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-0x18c;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(0x1a1)]({'name':'set-host','aliases':['sth'],'usage':a15o(0x1a8),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a15o(0x1aa),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a15o(0x1b0),a15o(0x194)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x196)][p(0x1ae)](b[p(0x1b1)]),f=this[p(0x196)]['getMakaProjectConfig'](),g=await c['chooseInstance'](),h=a15e[p(0x1a3)](d,p(0x191));!this['fsi'][p(0x1a7)](h)&&await this[p(0x196)][p(0x18c)]({'srcPath':p(0x19b),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x18d)](a15f[p(0x193)](h,p(0x195))),j=await Actions[p(0x1af)](p(0x197))||p(0x1b4);if(j){if(j==='public'||j===p(0x1ad)){if(j===p(0x1b4))i[p(0x1ac)]=g?.[p(0x1a4)];else j===p(0x1ad)&&(i[p(0x1ac)]=g?.[p(0x1ab)]);}else throw p(0x19a);}else i['host']=g?.[p(0x1ab)];a15f[p(0x1a2)](a15e[p(0x1a3)](d,p(0x191)),JSON[p(0x190)](i,null,0x2)),execSync('cat\x20'+a15e['join'](d,'ssh.json'),{'stdio':'inherit'}),Log[p(0x192)](p(0x1a0)+j+'\x20IP\x20to\x20'+d+a15e[p(0x1b3)]+'ssh.json');}catch(k){k&&Log[p(0x19d)](k),process[p(0x199)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x11c))/0x1*(parseInt(f(0x121))/0x2)+-parseInt(f(0x11d))/0x3+parseInt(f(0x118))/0x4+parseInt(f(0x113))/0x5*(-parseInt(f(0x120))/0x6)+-parseInt(f(0x10e))/0x7+parseInt(f(0x10c))/0x8*(parseInt(f(0x116))/0x9)+parseInt(f(0x10b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x38e85));function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x10a;let f=c[d];return f;},a16d(a,b);}const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x114)]()[h(0x110)](h(0x112))[h(0x114)]()[h(0x11e)](a16a)[h(0x110)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';function a16c(){const k=['471009zwoXZc','constructor','error','169842RvzVNz','4zNuXca','chooseInstance','name','\x20Ready?','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','964540XTosYh','1572376UYYCar','instanceId','2153886LqjWgW','Terminate\x20an\x20EC2\x20instance','search','apply','(((.+)+)+)+$','45xnluyw','toString','create','9mCjPym','maka\x20aws:ti','1055920XZzQbX','exit','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws:terminate-instance','197788Nkkwmz'];a16c=function(){return k;};return a16c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16i(0x115)]({'name':a16i(0x126),'aliases':['ti'],'usage':a16i(0x11b),'validOpts':[],'shortDesc':a16i(0x10f),'description':a16i(0x125),'examples':[a16i(0x11b),a16i(0x117)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x122)]();if(b?.[j(0x10d)]&&b?.['status']==='running'){const c=await Actions['confirm'](j(0x10a)+b[j(0x123)]+j(0x124));c?a['ec2terminateInstance']({'instanceId':b['instanceId']}):Log[j(0x11f)](j(0x11a)+b[j(0x123)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x11f)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x11f)](d),process[j(0x119)](0x1);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x8f))/0x1*(parseInt(f(0x8c))/0x2)+parseInt(f(0x91))/0x3*(-parseInt(f(0x8a))/0x4)+parseInt(f(0x8e))/0x5*(parseInt(f(0x88))/0x6)+-parseInt(f(0x90))/0x7+parseInt(f(0x8d))/0x8+-parseInt(f(0x92))/0x9+parseInt(f(0x89))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x1922b));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x87)]()['search']('(((.+)+)+)+$')[h(0x87)]()['constructor'](a17a)[h(0x86)](h(0x93));});function a17c(){var i=['apply','2ErWdvB','1018072NGEFcA','21445Jyzhbl','98317fBcMgo','200403DEtFqw','930noUiOn','555408OVQJLE','(((.+)+)+)+$','search','toString','96UAYlru','1279700qGiXTn','416RjhNpY'];a17c=function(){return i;};return a17c();}a17a();import'./build.js';function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x86;var f=c[d];return f;},a17d(a,b);}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x10e))/0x1*(parseInt(n(0x10b))/0x2)+-parseInt(n(0x105))/0x3+parseInt(n(0xfa))/0x4+parseInt(n(0xf9))/0x5*(parseInt(n(0x104))/0x6)+parseInt(n(0x10d))/0x7+-parseInt(n(0xfb))/0x8+parseInt(n(0xf7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xc2d18));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0xff)]()[o(0xf3)](o(0xf8))['toString']()[o(0x110)](a18a)['search'](o(0xf8));});a18a();import a18e from'path';function a18c(){const s=['962548Oxrwiy','7947184FZPiUs','maka\x20build','concat','--force','toString','This\x20project\x27s\x20meteor\x20version\x20(','--release','autoupdate','confirm','1062AwDVDq','1250460uVrnpM','invokeMeteorCommand',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','\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','exit','error','32962xMAqvg','build','1287097BsDljA','83jiJoVT','getProjectMeteorVersion','constructor','pathFromProject','force','existsSync','forEach','search','create','fsi','argv','19016757bQpAbk','(((.+)+)+)+$','29340pZFxFS'];a18c=function(){return s;};return a18c();}import a18f from'fs';import a18g from'semver';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xef;let f=c[d];return f;},a18d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18p(0xf4)]({'name':a18p(0x10c),'usage':'maka\x20build','validOpts':[a18p(0xf0)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a18p(0x108),'examples':[a18p(0xfc)]},async function(a,b){const q=a18p;try{await this[q(0xf5)]['checkMeteorPackage'](q(0x102),{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this['fsi']['getGlobalMeteorVersion'](),h=this[q(0xf5)][q(0x10f)](),i=a18g['gt'](g,h);if(i){const j=await Actions[q(0x103)](q(0x100)+h+q(0x107)+g+').\x20Update?');j&&this[q(0xf5)]['invokeMeteorCommand']('update',[q(0x101),g]);}}const d=[this[q(0xf5)][q(0xef)]({'pathParts':[q(0x10c)]})][q(0xfd)](process[q(0xf6)]['slice'](0x3)),f=a18e['join'](this[q(0xf5)][q(0xef)]({}),'build','app.tar.gz');if(a18f[q(0xf1)](f)){const k=c??await Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!k)throw Log['error']('Aborted.');}d[q(0xf2)]((l,m)=>{const r=q;l===r(0xfe)&&d['splice'](m,0x2);}),this['fsi'][q(0x106)](q(0x10c),d);}catch(l){console[q(0x10a)](l),process[q(0x109)](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-
|
|
1
|
+
const a19G=a19d;function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xee;let f=c[d];return f;},a19d(a,b);}(function(a,b){const D=a19d,c=a();while(!![]){try{const d=parseInt(D(0x106))/0x1+parseInt(D(0x12e))/0x2*(-parseInt(D(0x115))/0x3)+-parseInt(D(0xf7))/0x4+parseInt(D(0x113))/0x5+-parseInt(D(0x143))/0x6+parseInt(D(0x123))/0x7+-parseInt(D(0x11a))/0x8*(-parseInt(D(0x128))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x6b1ee));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a19d;if(c){const e=c[E(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const F=a19d;return a19a[F(0x144)]()['search'](F(0x13d))[F(0x144)]()[F(0x110)](a19a)[F(0x139)]('(((.+)+)+)+$');});a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';function a19c(){const I=['cert.pem','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).','Dockerfile','30588vmMNwF','exit','dockerfile','apply','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','readFileLines','maka\x20build:docker\x20--debug','docker','Docker\x20Context\x20Path:\x20','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','constructor','14.21.3','getAppConfigPath','1921235PFOjrH','Mobile\x20server\x20port:\x20','1060431bQTcmG','config','platforms','template','platform','872lUifmG','isDirectory','-t\x20','mkdirSync','http','maka\x20build:docker\x20--tag','push','findProjectDirectory','getGlobalConfig','299530HxnltQ','error','findAppDirectory','Try\x20\x27maka\x20run:docker\x27','checkConfigExists','109782zgzenB','https','processAndRunGenerator','serverName','443','fsi','4QjHefa','notice','length','copyFileSync','cert','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','config/pm2.config.js','app','--progress=plain\x20--no-cache','app.tar.gz','meteor','search','appName','existsSync','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','(((.+)+)+)+$','_keys','inherit','tag','setProjectConfig','isFile','2070600OBQCXK','toString','--architecture','debug','confirm','[*]\x20maka\x20','--server=','Stored\x20server\x20config\x20to\x20','build','docker\x20build\x20--build-arg\x20NODE_VERSION=','://','.maka','1185548ffddEo','ignore','\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','\x20npm\x20install\x20--save','pathFromProject','config.json','join','N/A','maka\x20build:docker','os.linux.x86_64','ask','serverPort'];a19c=function(){return I;};return a19c();}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['create']({'name':'docker','aliases':['d'],'usage':a19G(0xff),'validOpts':['force','tag',a19G(0xee)],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','description':a19G(0xf9),'mustBeInMakaProject':!![],'examples':[a19G(0x11f),a19G(0x10c)]},async function(a,b){const H=a19G;try{const c=await this[H(0x12d)][H(0x122)](),d=await this['fsi']['getMakaProjectConfig'](),f=H(0x111);f===H(0xfe)&&(Log[H(0x124)](H(0x104)),process[H(0x107)](0x1));const g=process[H(0x119)]==='win32'?'meteor.bat':H(0x138),h=this['fsi']['pathFromProject']({}),i=a19f[H(0xfd)](h,H(0x105));!this[H(0x12d)]['isFile'](i)&&await a19h['processAndRunGenerator'](H(0x108),[H(0x108)],{'cwd':h,'config':d});const j=this[H(0x12d)][H(0x127)](H(0x10d));if(!j){await a19h[H(0x12a)](H(0x116),[H(0x10d)],{'cwd':h,'config':d,'isDocker':!![]});const s=this[H(0x12d)][H(0x112)]('docker'),t=a19f[H(0xfd)](s,'pm2.config.js');await this['fsi'][H(0x118)]({'srcPath':H(0x134),'destPath':t,'context':{'app':d[H(0x13a)],'isDocker':!![]},'config':d});const u=a19f[H(0xfd)](s,'docker-compose.yaml');await this[H(0x12d)][H(0x118)]({'srcPath':'config/docker-compose.yaml','destPath':u,'context':{'app':d['appName'],'appFileCase':paramCase(d[H(0x13a)])},'config':d});}if(this[H(0x12d)][H(0x142)](c[H(0x132)])){const v=this['fsi'][H(0x11b)](a19f[H(0xfd)](H(0x116),H(0x10d),H(0x13e)));!v&&a19g[H(0x11d)](a19f['join'](H(0x116),H(0x10d),H(0x13e))),a19g[H(0x131)](c[H(0x132)],a19f['join'](h,H(0x116),H(0x10d),H(0x13e),H(0x103)));}const k=[H(0xf3),a19f[H(0xfd)](this['fsi'][H(0x121)](),'build'),H(0x145),H(0x100)],l=this[H(0x12d)][H(0x10b)](a19f[H(0xfd)](this['fsi'][H(0xfb)]({}),H(0x135),'.meteor',H(0x117))),m=l['length']>0x2?!![]:![];if(m){const w=d[H(0x12b)]?d[H(0x12b)]:await Actions['ask'](H(0x133)),x=d['serverPort']?d['serverPort']:await Actions[H(0x101)](H(0x114));if(w[H(0x130)]==0x0||x['length']==0x0)throw H(0x10a);const y=x==H(0x12c)?H(0x129):H(0x11e);k[H(0x120)](H(0xf1)+y+H(0xf5)+w+':'+x);if(!d[H(0x12b)]&&!d[H(0x102)]){const z=await Actions[H(0xef)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');z&&(this['fsi'][H(0x141)](H(0x12b),w),this[H(0x12d)][H(0x141)](H(0x102),x),Log[H(0x12f)](H(0xf2)+a19f['join'](H(0xf6),H(0xfc))));}}const n=a19f['join'](this[H(0x12d)][H(0xfb)]({}),H(0xf3),H(0x137));if(a19g[H(0x13b)](n)){const A=await Actions[H(0xef)](H(0x13c)),B=A;B&&(execSync(g+H(0xfa),{'cwd':this[H(0x12d)]['findAppDirectory'](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k[H(0xfd)]('\x20'),{'cwd':this[H(0x12d)][H(0x125)](),'stdio':H(0x13f)}));}else execSync(g+H(0xfa),{'cwd':this['fsi'][H(0x125)](),'stdio':H(0xf8)}),Log[H(0x12f)](H(0xf0)+k[H(0xfd)]('\x20')),execSync(g+'\x20'+k[H(0xfd)]('\x20'),{'cwd':this[H(0x12d)][H(0x125)](),'stdio':H(0x13f)});const o=this[H(0x12d)]['pathFromProject']({});let p=H(0x11c)+paramCase(d[H(0x13a)])+':latest';b['tag']&&(p='-t\x20'+b[H(0x140)]);Log[H(0x12f)](H(0x10f)+f),Log['notice']('Tagging\x20Docker\x20Image:\x20'+p),Log[H(0x12f)](H(0x10e)+o);const q=b[H(0xee)]?H(0x136):'',r=H(0xf4)+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':H(0x13f)}),Log[H(0x12f)](H(0x126));}catch(C){console[H(0x124)](C),process[H(0x107)](0x0);}},a19e);
|