@maka/maka-cli 4.8.10 → 4.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/bundle/obf/package.json +2 -2
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  109. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  110. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/kit.js +1 -1
  112. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  113. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  115. package/bundle/obf/src/generators/layout.js +1 -1
  116. package/bundle/obf/src/generators/maka.gen.js +1 -1
  117. package/bundle/obf/src/generators/methods.js +1 -1
  118. package/bundle/obf/src/generators/package.js +1 -1
  119. package/bundle/obf/src/generators/page.js +1 -1
  120. package/bundle/obf/src/generators/publish.js +1 -1
  121. package/bundle/obf/src/generators/route.js +1 -1
  122. package/bundle/obf/src/generators/service.js +1 -1
  123. package/bundle/obf/src/generators/services/_index.js +1 -1
  124. package/bundle/obf/src/generators/services/openssl.js +1 -1
  125. package/bundle/obf/src/generators/services/translation.js +1 -1
  126. package/bundle/obf/src/maka.js +1 -1
  127. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  128. package/bundle/obf/src/tool.js +1 -1
  129. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  130. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  131. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  133. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  135. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/https/https.class.js +1 -1
  137. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  138. package/bundle/obf/src/tools/log/log.class.js +1 -1
  139. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/options/options.class.js +1 -1
  141. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  142. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  143. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  145. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  147. package/package.json +2 -2
@@ -1 +1 @@
1
- function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a78d(a,b);}const a78o=a78d;(function(a,b){const l=a78d,c=a();while(!![]){try{const d=parseInt(l(0x1d0))/0x1+-parseInt(l(0x1c1))/0x2*(parseInt(l(0x1e9))/0x3)+parseInt(l(0x1c6))/0x4+-parseInt(l(0x1ca))/0x5+-parseInt(l(0x1d5))/0x6*(-parseInt(l(0x1be))/0x7)+-parseInt(l(0x1c9))/0x8*(parseInt(l(0x1cf))/0x9)+parseInt(l(0x1d3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x4523d));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a78d;if(c){const e=c[m(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const n=a78d;return a78a[n(0x1bb)]()[n(0x1e5)](n(0x1cd))[n(0x1bb)]()[n(0x1e0)](a78a)[n(0x1e5)](n(0x1cd));});a78a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a78o(0x1cb)][a78o(0x1d1)]===a78o(0x1e1)?'localhost':'www.maka-cli.com';function a78c(){const q=['568200MdsqMr','Preflight\x20Check','740058PQLCQx','start','failure','https://','withSpinner','header','apply','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','isFile','token','setGlobalConfig','constructor','True','cacert','notice','authToken','search','cert','assign','logout','1297053VIbDbY','toString','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','error','14KIRUkt','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','post','2upVXKM','fsi','Logging\x20out','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','create','2180712doNoOU','/api/v1/logoutAll','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','14304DSnGRj','159175UsIyJg','env','Using\x20CA\x20Cert\x20','(((.+)+)+)+$','maka\x20logout','2070ZgvsQr','309939SiNVrp','MAKA_DEV','success'];a78c=function(){return q;};return a78c();}Command[a78o(0x1c5)]({'name':a78o(0x1e8),'validOpts':[a78o(0x1e2)],'usage':a78o(0x1ce),'maxArgLength':0x2,'shortDesc':a78o(0x1bf),'disableAuthCheck':!![],'examples':['maka\x20logout']},async function(a,b){const p=a78o,c=Log[p(0x1d9)]();try{let d='';b[p(0x1e2)]&&(this[p(0x1c2)][p(0x1dd)](b[p(0x1e2)])?(d=b[p(0x1e2)],Log[p(0x1e3)](p(0x1cc)+d)):Log[p(0x1bd)](p(0x1bc)+d));const f=await this[p(0x1c2)]['getGlobalConfig']();if(f[p(0x1e6)]){if(this[p(0x1c2)]['isFile'](f[p(0x1e6)]))d=f['cert'];else{c[p(0x1d7)]();throw Log[p(0x1bd)](p(0x1c8)+d);}}Log[p(0x1da)]('Logging\x20out\x20of\x20https://'+hostname);const g={'url':p(0x1d8)+hostname+'/api/v1/status'};b[p(0x1e2)]&&Object[p(0x1e7)](g,{'cert':d});c[p(0x1d6)](p(0x1d4));const {statusCode:h}=await HTTPS['get'](g);if(h===0x198){c[p(0x1d7)]();throw p(0x1dc);}c[p(0x1d2)]();if(h!==0xc8){c['failure']();throw'https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}if(!f?.[p(0x1de)]?.[p(0x1e4)])throw Log[p(0x1bd)](p(0x1c4));c[p(0x1d6)](p(0x1c3));const i={'hostname':hostname,'path':p(0x1c7),'data':{},'headers':{'x-auth-token':f[p(0x1de)][p(0x1e4)]}};b['cacert']&&Object[p(0x1e7)](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0x1c0)](i);if(j===0x198){c['failure']('\x0a');throw p(0x1dc);}this[p(0x1c2)][p(0x1df)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c['success']();}catch(k){k&&console[p(0x1bd)](k),process['exit'](0x0);}});
1
+ const a78o=a78d;(function(a,b){const l=a78d,c=a();while(!![]){try{const d=parseInt(l(0x13b))/0x1+parseInt(l(0x161))/0x2+parseInt(l(0x167))/0x3*(-parseInt(l(0x15a))/0x4)+-parseInt(l(0x149))/0x5+parseInt(l(0x154))/0x6*(parseInt(l(0x16b))/0x7)+parseInt(l(0x148))/0x8*(-parseInt(l(0x142))/0x9)+-parseInt(l(0x150))/0xa*(-parseInt(l(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xf01df));function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x13b;let f=c[d];return f;},a78d(a,b);}const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a78d;if(c){const e=c[m(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const n=a78d;return a78a[n(0x14d)]()['search'](n(0x146))[n(0x14d)]()[n(0x15c)](a78a)[n(0x158)](n(0x146));});a78a();function a78c(){const q=['fsi','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','start','search','Logging\x20out','4tTErBM','/api/v1/status','constructor','notice','1004267prdCbq','getGlobalConfig','cacert','2559796CXLHQm','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','Preflight\x20Check','Logging\x20out\x20of\x20https://','withSpinner','exit','4222437WwAdwF','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','assign','token','228039YjouFf','1866972xWmmsb','header','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','localhost','get','authToken','isFile','27rQNfyw','error','True','https://','(((.+)+)+)+$','maka\x20logout','4919504kqhPmP','2834325DqtTQf','MAKA_DEV','setGlobalConfig','apply','toString','env','post','110XPepjK','failure','cert','create','120GSfgng'];a78c=function(){return q;};return a78c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a78o(0x14e)][a78o(0x14a)]===a78o(0x144)?a78o(0x13e):'www.maka-cli.com';Command[a78o(0x153)]({'name':'logout','validOpts':['cacert'],'usage':a78o(0x147),'maxArgLength':0x2,'shortDesc':a78o(0x13d),'disableAuthCheck':!![],'examples':[a78o(0x147)]},async function(a,b){const p=a78o,c=Log[p(0x165)]();try{let d='';b[p(0x160)]&&(this[p(0x155)][p(0x141)](b[p(0x160)])?(d=b[p(0x160)],Log[p(0x15d)]('Using\x20CA\x20Cert\x20'+d)):Log[p(0x143)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const f=await this[p(0x155)][p(0x15f)]();if(f[p(0x152)]){if(this['fsi'][p(0x141)](f[p(0x152)]))d=f['cert'];else{c[p(0x151)]();throw Log['error']('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);}}Log[p(0x13c)](p(0x164)+hostname);const g={'url':p(0x145)+hostname+p(0x15b)};b['cacert']&&Object[p(0x169)](g,{'cert':d});c['start'](p(0x163));const {statusCode:h}=await HTTPS[p(0x13f)](g);if(h===0x198){c['failure']();throw p(0x168);}c['success']();if(h!==0xc8){c['failure']();throw p(0x156);}if(!f?.[p(0x16a)]?.[p(0x140)])throw Log[p(0x143)](p(0x162));c[p(0x157)](p(0x159));const i={'hostname':hostname,'path':'/api/v1/logoutAll','data':{},'headers':{'x-auth-token':f[p(0x16a)]['authToken']}};b[p(0x160)]&&Object[p(0x169)](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0x14f)](i);if(j===0x198){c[p(0x151)]('\x0a');throw p(0x168);}this[p(0x155)][p(0x14b)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c['success']();}catch(k){k&&console[p(0x143)](k),process[p(0x166)](0x0);}});
@@ -1 +1 @@
1
- const a79m=a79d;(function(a,b){const j=a79d,c=a();while(!![]){try{const d=-parseInt(j(0x151))/0x1*(parseInt(j(0x152))/0x2)+-parseInt(j(0x155))/0x3*(parseInt(j(0x14e))/0x4)+parseInt(j(0x164))/0x5*(-parseInt(j(0x157))/0x6)+parseInt(j(0x163))/0x7*(-parseInt(j(0x159))/0x8)+-parseInt(j(0x153))/0x9+-parseInt(j(0x147))/0xa*(parseInt(j(0x14f))/0xb)+parseInt(j(0x161))/0xc*(parseInt(j(0x14a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x767d8));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a79d;if(c){const e=c[k(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const l=a79d;return a79a[l(0x156)]()[l(0x149)](l(0x154))[l(0x156)]()[l(0x150)](a79a)[l(0x149)](l(0x154));});function a79c(){const o=['ssh.json','apply','maka\x20logs\x20--env\x20dev','pm2\x20logs','maka\x20l\x20-e\x20p','97788nLLOjQ','readFileSync','58807WffKXG','20AjDeHz','maka\x20logs','40UGswFU','log','search','3055xnzUtu','logs','sshSync','error','444AhfwYK','2072257rWfFef','constructor','71folnJX','252PZwjkc','3690432cWvEbB','(((.+)+)+)+$','582dzpKQQ','toString','13164piVYTg','assign','216mYZRuH','verbose','parse'];a79c=function(){return o;};return a79c();}a79a();import a79e from'fs';import a79f from'path';import{Command}from'../command.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x146;let f=c[d];return f;},a79d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command['create']({'name':a79m(0x14b),'aliases':['l',a79m(0x148)],'usage':a79m(0x146),'requiredOpts':['env'],'mustBeInMakaProject':!![],'validOpts':[a79m(0x15a)],'shortDesc':'View\x20the\x20PM2\x20logs','examples':[a79m(0x15e),'maka\x20logs\x20--env\x20staging',a79m(0x160)]},function(a,b){const n=a79m;try{const c=n(0x15f),d=this['fsi']['getAppConfigPath'](b['env']),f=a79f['join'](d,n(0x15c)),g=a79e[n(0x162)](f),h=JSON[n(0x15b)](g['toString']());Object[n(0x158)](h,{'env':d}),SSH[n(0x14c)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[n(0x14d)](i);}});
1
+ function a79c(){const n=['search','constructor','log','maka\x20logs\x20--env\x20dev','7zBNnZp','352297EGdttY','4iXNgdx','verbose','readFileSync','toString','maka\x20l\x20-e\x20p','1022487meLeRA','ssh.json','15129450rbsCIz','13155248UfQWBY','maka\x20logs','pm2\x20logs','255247XFJYcr','29628PeByfy','10482726PGZTOA','5qbfTHy','join','env','error','sshSync','(((.+)+)+)+$','20670ZCJWQZ','90TrxAeh','parse','assign','View\x20the\x20PM2\x20logs','6RcqBKc','logs'];a79c=function(){return n;};return a79c();}function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x83;let f=c[d];return f;},a79d(a,b);}const a79l=a79d;(function(a,b){const j=a79d,c=a();while(!![]){try{const d=parseInt(j(0x98))/0x1*(-parseInt(j(0x85))/0x2)+parseInt(j(0x92))/0x3*(-parseInt(j(0x8d))/0x4)+-parseInt(j(0x9b))/0x5*(-parseInt(j(0x9a))/0x6)+parseInt(j(0x8b))/0x7*(-parseInt(j(0x95))/0x8)+-parseInt(j(0x94))/0x9+-parseInt(j(0xa2))/0xa*(parseInt(j(0x8c))/0xb)+-parseInt(j(0x99))/0xc*(-parseInt(j(0xa1))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xe88f2));const a79b=(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;};}()),a79a=a79b(this,function(){const k=a79d;return a79a[k(0x90)]()[k(0x87)](k(0xa0))['toString']()[k(0x88)](a79a)[k(0x87)]('(((.+)+)+)+$');});a79a();import a79e from'fs';import a79f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command['create']({'name':a79l(0x86),'aliases':['l',a79l(0x89)],'usage':a79l(0x96),'requiredOpts':[a79l(0x9d)],'mustBeInMakaProject':!![],'validOpts':[a79l(0x8e)],'shortDesc':a79l(0x84),'examples':[a79l(0x8a),'maka\x20logs\x20--env\x20staging',a79l(0x91)]},function(a,b){const m=a79l;try{const c=m(0x97),d=this['fsi']['getAppConfigPath'](b[m(0x9d)]),f=a79f[m(0x9c)](d,m(0x93)),g=a79e[m(0x8f)](f),h=JSON[m(0xa3)](g[m(0x90)]());Object[m(0x83)](h,{'env':d}),SSH[m(0x9f)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[m(0x9e)](i);}});
@@ -1 +1 @@
1
- const a80i=a80d;function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x110;let f=c[d];return f;},a80d(a,b);}(function(a,b){const f=a80d,c=a();while(!![]){try{const d=-parseInt(f(0x110))/0x1*(-parseInt(f(0x118))/0x2)+-parseInt(f(0x11e))/0x3*(parseInt(f(0x11f))/0x4)+-parseInt(f(0x123))/0x5+-parseInt(f(0x113))/0x6+-parseInt(f(0x111))/0x7+-parseInt(f(0x125))/0x8+parseInt(f(0x119))/0x9*(parseInt(f(0x120))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x29019));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a80d;if(c){const e=c[g(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const h=a80d;return a80a[h(0x124)]()[h(0x126)]('(((.+)+)+)+$')[h(0x124)]()[h(0x122)](a80a)[h(0x126)](h(0x116));});a80a();import{Command}from'../command.js';const Maka=new Command({'name':a80i(0x121),'minArgLength':0x1,'shortDesc':a80i(0x11c),'validOpts':[],'usage':'maka\x20<command>\x20[<args>]\x20[<opts>]','disableAuthCheck':!![],'examples':[a80i(0x115),a80i(0x117),a80i(0x114),a80i(0x11d)],'description':a80i(0x112)},async function(a,b){const j=a80i;try{const c=a[0x0];a['splice'](0x0,0x1),await this[j(0x11b)](c,a,b);}catch(d){process[j(0x127)](0x1);}});function a80c(){const k=['8814090uCdUSj','maka','constructor','618720TYycxP','toString','2667552sKpOak','search','exit','1EWLWTy','1413111cxurlX','\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20','136296KrskGt','maka\x20create\x20Todo','maka\x20--help','(((.+)+)+)+$','maka\x20install\x20meteor','473890bdCuQZ','9MwcZBc','apply','processAndRunCommand','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','maka\x20run','100731TGhKlE','32ykQULi'];a80c=function(){return k;};return a80c();}export default Maka;
1
+ const a80h=a80d;(function(a,b){const f=a80d,c=a();while(!![]){try{const d=-parseInt(f(0xe1))/0x1+parseInt(f(0xe5))/0x2+parseInt(f(0xec))/0x3+-parseInt(f(0xea))/0x4+parseInt(f(0xdf))/0x5*(-parseInt(f(0xed))/0x6)+parseInt(f(0xe6))/0x7+-parseInt(f(0xee))/0x8*(parseInt(f(0xdd))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xd7a75));const a80b=(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;};}()),a80a=a80b(this,function(){const g=a80d;return a80a[g(0xe9)]()['search'](g(0xde))[g(0xe9)]()[g(0xe2)](a80a)[g(0xe8)](g(0xde));});a80a();import{Command}from'../command.js';const Maka=new Command({'name':a80h(0xe4),'minArgLength':0x1,'shortDesc':a80h(0xe7),'validOpts':[],'usage':'maka\x20<command>\x20[<args>]\x20[<opts>]','disableAuthCheck':!![],'examples':[a80h(0xdc),a80h(0xdb),'maka\x20create\x20Todo','maka\x20run'],'description':'\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20'},async function(a,b){const i=a80h;try{const c=a[0x0];a[i(0xe3)](0x0,0x1),await this[i(0xe0)](c,a,b);}catch(d){process[i(0xeb)](0x1);}});function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xdb;let f=c[d];return f;},a80d(a,b);}function a80c(){const j=['387203ZVEtNl','constructor','splice','maka','870126qBXwFq','5687717eafPHJ','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','search','toString','214860NwEbLd','exit','1613007KiIAbb','18IacjlU','21672OiUWOS','maka\x20install\x20meteor','maka\x20--help','423uICbwo','(((.+)+)+)+$','556175iLNLim','processAndRunCommand'];a80c=function(){return j;};return a80c();}export default Maka;
@@ -1 +1 @@
1
- function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x7d;var f=c[d];return f;},a81d(a,b);}var a81h=a81d;(function(a,b){var f=a81d,c=a();while(!![]){try{var d=-parseInt(f(0x80))/0x1*(parseInt(f(0x8a))/0x2)+parseInt(f(0x8c))/0x3+-parseInt(f(0x8d))/0x4*(-parseInt(f(0x89))/0x5)+-parseInt(f(0x7f))/0x6+parseInt(f(0x85))/0x7*(-parseInt(f(0x87))/0x8)+parseInt(f(0x81))/0x9+-parseInt(f(0x82))/0xa*(-parseInt(f(0x8b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xeaacb));var a81b=(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;};}()),a81a=a81b(this,function(){var g=a81d;return a81a[g(0x83)]()['search'](g(0x86))['toString']()[g(0x84)](a81a)[g(0x7e)](g(0x86));});function a81c(){var j=['1604456TcvxKp','exit','55VrlQxh','175082RwsFkk','132fyPVZI','4221051QoUAPk','62116Cothtq','Murrrrderrrrr','search','8323422jJwONI','9uCrzdf','5729391gekLIJ','1102510rrUsWf','toString','constructor','14qhFDay','(((.+)+)+)+$'];a81c=function(){return j;};return a81c();}a81a();import{Command}from'../command.js';Command['create']({'name':'murder','usage':'maka\x20murder','maxArgLength':0x1,'shortDesc':a81h(0x7d),'validOpts':[]},async function(){var i=a81h;try{console['log']('%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','font-family:\x20monospace');}catch(a){console['error'](a),process[i(0x88)](0x0);}});
1
+ var a81h=a81d;(function(a,b){var f=a81d,c=a();while(!![]){try{var d=parseInt(f(0x169))/0x1+-parseInt(f(0x16e))/0x2*(-parseInt(f(0x17b))/0x3)+parseInt(f(0x177))/0x4*(parseInt(f(0x171))/0x5)+-parseInt(f(0x173))/0x6+-parseInt(f(0x16a))/0x7*(-parseInt(f(0x175))/0x8)+-parseInt(f(0x174))/0x9+-parseInt(f(0x172))/0xa*(parseInt(f(0x179))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xdc2c8));var a81b=(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;};}()),a81a=a81b(this,function(){var g=a81d;return a81a['toString']()['search'](g(0x16d))['toString']()[g(0x168)](a81a)['search'](g(0x16d));});function a81c(){var j=['log','27038759dLvbup','error','417kJiPGj','%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','constructor','451069cYovVZ','1687bzqBEe','exit','font-family:\x20monospace','(((.+)+)+)+$','20858DhoSKi','create','murder','383035pixTCO','10IWgHZI','3078798JxFGKY','5141331iObmSh','51376JuIKUN','maka\x20murder','52IbAAlj'];a81c=function(){return j;};return a81c();}a81a();import{Command}from'../command.js';function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x167;var f=c[d];return f;},a81d(a,b);}Command[a81h(0x16f)]({'name':a81h(0x170),'usage':a81h(0x176),'maxArgLength':0x1,'shortDesc':'Murrrrderrrrr','validOpts':[]},async function(){var i=a81h;try{console[i(0x178)](i(0x167),i(0x16c));}catch(a){console[i(0x17a)](a),process[i(0x16b)](0x0);}});
@@ -1 +1 @@
1
- const a82z=a82d;(function(a,b){const w=a82d,c=a();while(!![]){try{const d=parseInt(w(0x21d))/0x1+-parseInt(w(0x226))/0x2+-parseInt(w(0x214))/0x3+-parseInt(w(0x1ed))/0x4*(parseInt(w(0x1ec))/0x5)+parseInt(w(0x210))/0x6*(-parseInt(w(0x209))/0x7)+-parseInt(w(0x1e8))/0x8*(-parseInt(w(0x221))/0x9)+parseInt(w(0x1eb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x34c62));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a82d;if(c){const e=c[x(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const y=a82d;return a82a[y(0x219)]()[y(0x217)](y(0x1e3))[y(0x219)]()[y(0x208)](a82a)[y(0x217)](y(0x1e3));});a82a();import a82e from'fs';import a82f from'path';import a82g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';import a82h from'../generators/maka.gen.js';function a82c(){const K=[']\x20=>\x20','headers','=>\x20SSL\x20Proxy\x20forwarding\x20','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','2339484qcOcat','start','mkKeysDir','.key','217386qxisHV','appName','.crt','search','bright','toString','.csr','\x20responded\x20with\x20','success','331718CiERaK','\x20-\x20Starting\x20WebSocket\x20handshake','error','\x20to\x20','109170yREDRh','proxy','CSR\x20file\x20created:\x20','exit','sslconfig','284018cruRlB','path',']\x20WS\x20','targetPort','Internal\x20server\x20error.','genCSR','listenPort','writeHead','\x20from\x20','\x20request\x20to\x20','statusCode','development','(((.+)+)+)+$','targetHost','proxyRes','proxyReq','utf8','88QhJwuz','maka\x20proxy','\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','7245780GrAbNO','5BuruXa','1476716tKgzBP','toISOString','createProxyServer','end','Proxy\x20error:\x20','SSC\x20file\x20created:\x20','Key\x20file\x20created:\x20','open','host','apply','maka\x20proxy\x20--target-host\x20http://192.168.1.20','processAndRunGenerator','Shutting\x20down\x20proxy\x20server...','url','proxyReqWs','close','join','info','localhost','isFile','warn','getAppConfigPath','getHeader','text/plain',']\x20<=\x20Sending\x20','fsi','method','constructor','7sBztRc','help','listen'];a82c=function(){return K;};return a82c();}function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a82d(a,b);}Command['create']({'name':a82z(0x222),'usage':a82z(0x1e9),'mustBeInMakaProject':!![],'validOpts':[a82z(0x20a),a82z(0x229),a82z(0x22c),'targetHost'],'maxArgLength':0x1,'shortDesc':'Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','description':a82z(0x1ea),'examples':[a82z(0x1e9),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000',a82z(0x1f7)]},async function(a,b){const A=a82z,c=this[A(0x206)]['getMakaProjectConfig'](),d=A(0x1e2),e=this[A(0x206)][A(0x202)](d),f=this['fsi'][A(0x212)]({'configPath':e}),g=b[A(0x229)]?Number(b[A(0x229)]):0xbb8,h=b[A(0x22c)]?Number(b['listenPort']):0xd73,i=b[A(0x1e4)]?b[A(0x1e4)]:A(0x1ff),j=a82f['join'](f,c[A(0x215)]+'.key'),k=a82f['join'](f,c[A(0x215)]+A(0x216));(!this['fsi']['isFile'](j)||!this[A(0x206)][A(0x200)](k))&&(await a82h[A(0x1f8)](A(0x225),[],{'env':d}),SSL[A(0x22b)]({'keyName':c['appName']+A(0x213),'csrName':c[A(0x215)]+A(0x21a),'cwd':f,'useConfig':!![]}),this[A(0x206)]['isFile'](a82f['join'](f,c[A(0x215)]+A(0x21a)))&&Log[A(0x1fe)](A(0x223)+a82f[A(0x1fd)](f,c[A(0x215)]+A(0x21a))),SSL['genSSC']({'keyName':c['appName']+A(0x213),'crtName':c[A(0x215)]+'.crt','cwd':f,'useConfig':!![]}),this[A(0x206)][A(0x200)](a82f[A(0x1fd)](f,c[A(0x215)]+A(0x216)))&&Log[A(0x1fe)](A(0x1f2)+a82f[A(0x1fd)](f,c[A(0x215)]+A(0x216))),Log['info'](A(0x1f3)+j));if(g===h){Log[A(0x21f)](A(0x20f));throw new UsageError();}const l={'ssl':{'key':a82e['readFileSync'](j,A(0x1e7)),'cert':a82e['readFileSync'](k,A(0x1e7))},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a82g[A(0x1ef)](l);m['on'](A(0x21f),(o,p,q)=>{const B=A;'writeHead'in q&&(Log[B(0x21f)](B(0x1f1)+o['message']),!q['headersSent']&&(q[B(0x22d)](0x1f4,{'content-type':B(0x204)}),q[B(0x1f0)](B(0x22a))));}),m['on'](A(0x1e5),(o,p)=>{const C=A,q=new Date()['toISOString'](),r=p[C(0x207)],s=p['url'],t=p[C(0x20d)]['host'],u=o[C(0x1e1)],v=o['statusMessage'];Log[C(0x201)]('['+q+C(0x20c)+r+'\x20'+s+C(0x22e)+t+C(0x21b)+u+'\x20'+v);}),m['on'](A(0x1e6),o=>{const D=A,p=new Date()[D(0x1ee)](),q=o['method'],r=o[D(0x227)],s=o[D(0x203)](D(0x1f5));Log[D(0x1fe)]('['+p+D(0x205)+q+D(0x1e0)+r+'\x20on\x20'+s);}),m['on'](A(0x1fb),(o,p)=>{const E=A,q=new Date()[E(0x1ee)](),r=p[E(0x207)],s=p[E(0x1fa)],t=p['headers'][E(0x1f5)];Log[E(0x21c)]('['+q+E(0x228)+r+'\x20'+s+'\x20from\x20'+t+E(0x21e));}),m['on'](A(0x1f4),()=>{const F=A,o=new Date()[F(0x1ee)]();Log['success']('['+o+']\x20WebSocket\x20connection\x20established');}),m['on'](A(0x1fc),()=>{const G=A,o=new Date()[G(0x1ee)]();Log[G(0x21f)]('['+o+']\x20WebSocket\x20connection\x20closed');}),m[A(0x20b)](Number(h)),Log[A(0x218)](A(0x20e)+h+A(0x220)+g);const n=0x7d0;process['on']('SIGINT',()=>{const H=A,o=Log['withSpinner']();o[H(0x211)](H(0x1f9));const p=setTimeout(()=>{const I=H;o['success'](),process[I(0x224)](0x1);},n);m[H(0x1fc)](()=>{const J=H;clearTimeout(p),Log['info']('Proxy\x20server\x20closed.'),process[J(0x224)](0x0);});});});
1
+ const a82z=a82d;(function(a,b){const w=a82d,c=a();while(!![]){try{const d=-parseInt(w(0x17f))/0x1+parseInt(w(0x1b8))/0x2*(parseInt(w(0x176))/0x3)+-parseInt(w(0x1c0))/0x4*(-parseInt(w(0x19f))/0x5)+-parseInt(w(0x18d))/0x6+-parseInt(w(0x17e))/0x7+-parseInt(w(0x1b4))/0x8+-parseInt(w(0x1bb))/0x9*(-parseInt(w(0x1a7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x4dd3b));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a82d;if(c){const e=c[x(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const y=a82d;return a82a[y(0x1a0)]()[y(0x1b5)](y(0x181))['toString']()[y(0x17a)](a82a)[y(0x1b5)](y(0x181));});a82a();import a82e from'fs';import a82f from'path';import a82g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a82c(){const K=['error','SIGINT','\x20-\x20Starting\x20WebSocket\x20handshake','apply','statusMessage','790ZkNiVe','withSpinner','Proxy\x20error:\x20','readFileSync','localhost','url','genSSC','proxyReqWs','getMakaProjectConfig','\x20request\x20to\x20','SSC\x20file\x20created:\x20','maka\x20proxy\x20--target-host\x20http://192.168.1.20','Proxy\x20server\x20closed.','3266552ErlvCK','search','headers','.key','6UAMfNc','proxy','getAppConfigPath','71811WWVYbf','getHeader','=>\x20SSL\x20Proxy\x20forwarding\x20','help','toISOString','8LPhMUp','Shutting\x20down\x20proxy\x20server...','maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000','processAndRunGenerator','listen','createProxyServer','path','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','561105ltpFaB','\x20responded\x20with\x20','headersSent','listenPort','constructor','close','text/plain','\x20to\x20','2738442FppBpR','17149YjOACK','isFile','(((.+)+)+)+$','appName','success','writeHead','sslconfig','\x20from\x20','targetPort','info','create','warn','statusCode','genCSR','1914906CKnkqg','targetHost','fsi','Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','method','.crt','join','host','open','Internal\x20server\x20error.','proxyRes','exit','mkKeysDir','message','proxyReq','\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20',']\x20WebSocket\x20connection\x20closed','maka\x20proxy','657895YEKOwS','toString','.csr'];a82c=function(){return K;};return a82c();}import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x175;let f=c[d];return f;},a82d(a,b);}import a82h from'../generators/maka.gen.js';Command[a82z(0x189)]({'name':a82z(0x1b9),'usage':'maka\x20proxy','mustBeInMakaProject':!![],'validOpts':[a82z(0x1be),a82z(0x187),a82z(0x179),a82z(0x18e)],'maxArgLength':0x1,'shortDesc':a82z(0x190),'description':a82z(0x19c),'examples':[a82z(0x19e),a82z(0x1c2),a82z(0x1b2)]},async function(a,b){const A=a82z,c=this['fsi'][A(0x1af)](),d='development',e=this[A(0x18f)][A(0x1ba)](d),f=this[A(0x18f)][A(0x199)]({'configPath':e}),g=b[A(0x187)]?Number(b[A(0x187)]):0xbb8,h=b[A(0x179)]?Number(b[A(0x179)]):0xd73,i=b[A(0x18e)]?b[A(0x18e)]:A(0x1ab),j=a82f[A(0x193)](f,c[A(0x182)]+'.key'),k=a82f[A(0x193)](f,c['appName']+A(0x192));(!this[A(0x18f)][A(0x180)](j)||!this[A(0x18f)][A(0x180)](k))&&(await a82h[A(0x1c3)](A(0x185),[],{'env':d}),SSL[A(0x18c)]({'keyName':c['appName']+'.key','csrName':c[A(0x182)]+A(0x1a1),'cwd':f,'useConfig':!![]}),this[A(0x18f)][A(0x180)](a82f[A(0x193)](f,c[A(0x182)]+A(0x1a1)))&&Log['info']('CSR\x20file\x20created:\x20'+a82f['join'](f,c[A(0x182)]+A(0x1a1))),SSL[A(0x1ad)]({'keyName':c[A(0x182)]+A(0x1b7),'crtName':c[A(0x182)]+A(0x192),'cwd':f,'useConfig':!![]}),this[A(0x18f)][A(0x180)](a82f[A(0x193)](f,c[A(0x182)]+A(0x192)))&&Log[A(0x188)](A(0x1b1)+a82f['join'](f,c['appName']+'.crt')),Log['info']('Key\x20file\x20created:\x20'+j));if(g===h){Log[A(0x1a2)](A(0x175));throw new UsageError();}const l={'ssl':{'key':a82e[A(0x1aa)](j,'utf8'),'cert':a82e['readFileSync'](k,'utf8')},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a82g[A(0x1c5)](l);m['on'](A(0x1a2),(o,p,q)=>{const B=A;B(0x184)in q&&(Log['error'](B(0x1a9)+o[B(0x19a)]),!q[B(0x178)]&&(q[B(0x184)](0x1f4,{'content-type':B(0x17c)}),q['end'](B(0x196))));}),m['on'](A(0x197),(o,p)=>{const C=A,q=new Date()[C(0x1bf)](),r=p[C(0x191)],s=p[C(0x1ac)],t=p[C(0x1b6)]['host'],u=o[C(0x18b)],v=o[C(0x1a6)];Log[C(0x18a)]('['+q+']\x20=>\x20'+r+'\x20'+s+C(0x186)+t+C(0x177)+u+'\x20'+v);}),m['on'](A(0x19b),o=>{const D=A,p=new Date()[D(0x1bf)](),q=o[D(0x191)],r=o[D(0x1c6)],s=o[D(0x1bc)]('host');Log[D(0x188)]('['+p+']\x20<=\x20Sending\x20'+q+D(0x1b0)+r+'\x20on\x20'+s);}),m['on'](A(0x1ae),(o,p)=>{const E=A,q=new Date()[E(0x1bf)](),r=p[E(0x191)],s=p[E(0x1ac)],t=p[E(0x1b6)][E(0x194)];Log[E(0x183)]('['+q+']\x20WS\x20'+r+'\x20'+s+E(0x186)+t+E(0x1a4));}),m['on'](A(0x195),()=>{const F=A,o=new Date()[F(0x1bf)]();Log[F(0x183)]('['+o+']\x20WebSocket\x20connection\x20established');}),m['on'](A(0x17b),()=>{const G=A,o=new Date()[G(0x1bf)]();Log[G(0x1a2)]('['+o+G(0x19d));}),m[A(0x1c4)](Number(h)),Log['bright'](A(0x1bd)+h+A(0x17d)+g);const n=0x7d0;process['on'](A(0x1a3),()=>{const H=A,o=Log[H(0x1a8)]();o['start'](H(0x1c1));const p=setTimeout(()=>{const I=H;o[I(0x183)](),process[I(0x198)](0x1);},n);m[H(0x17b)](()=>{const J=H;clearTimeout(p),Log[J(0x188)](J(0x1b3)),process['exit'](0x0);});});});
@@ -1 +1 @@
1
- function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x87;let f=c[d];return f;},a83d(a,b);}const a83p=a83d;(function(a,b){const n=a83d,c=a();while(!![]){try{const d=-parseInt(n(0xa7))/0x1+-parseInt(n(0x9b))/0x2+parseInt(n(0xac))/0x3+-parseInt(n(0x9d))/0x4+-parseInt(n(0x8d))/0x5*(parseInt(n(0x9a))/0x6)+-parseInt(n(0x90))/0x7*(-parseInt(n(0xab))/0x8)+-parseInt(n(0x8a))/0x9*(-parseInt(n(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x6b6fa));function a83c(){const r=['~/settings.json','2320664KzoLhF','1696164wwnfHe','pm2.config.js','parse','reconfigure','join','531vGTiTv','Remote\x20host\x20connection\x20successful','existsSync','3982370xSoNfT','ssh','exit','7mrvIUA','(((.+)+)+)+$','Checking\x20remote\x20host\x20availability','maka\x20reconfig\x20--env\x20prod','toString','_keys','scp','ses.json','assign','constructor','6ACHBPm','1229882vTVOua','299790dzfNpe','1124008tdTRea','sshSync','getAppConfigPath','~/ses.json','env','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','settings.json','maka\x20reconfig','readFileSync','search','491757ZcBBMS','fsi','Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy'];a83c=function(){return r;};return a83c();}const a83b=(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;};}()),a83a=a83b(this,function(){const o=a83d;return a83a[o(0x94)]()[o(0xa6)](o(0x91))[o(0x94)]()[o(0x99)](a83a)[o(0xa6)](o(0x91));});a83a();import a83e from'fs';import a83f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command['create']({'name':a83p(0x88),'aliases':['reconfig'],'validOpts':[''],'requiredOpts':[a83p(0xa1)],'mustBeInMakaProject':!![],'usage':a83p(0xa4),'shortDesc':a83p(0xa9),'description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','examples':[a83p(0x93)]},async function(a,b){const q=a83p;try{const c=this[q(0xa8)][q(0x9f)](b[q(0xa1)]),d=a83f['join'](c,'ssh.json'),f=a83e[q(0xa5)](d)[q(0x94)](),g=JSON[q(0x87)](f);Object[q(0x98)](g,{'env':c}),Log['notice'](q(0x92));const h=SSH['ping']('uname\x20-a',g);if(!h)throw q(0xa2);if(h)Log['success'](q(0x8b));const i=a83f['join'](c,q(0x95),q(0x97));if(a83e[q(0x8c)](i)){const l={'source':i,'dest':q(0xa0),'verbose':!![]};SSH[q(0x96)](l,{...g});}const j=a83f[q(0x89)](c,q(0xad));SSH['scp']({'source':j,'dest':'~/pm2.config.js','verbose':!![]},{...g});const k=a83f[q(0x89)](c,q(0xa3));SSH[q(0x96)]({'source':k,'dest':q(0xaa),'verbose':!![]},{...g}),SSH[q(0x9e)]('pm2\x20delete\x20all',g),await SSH[q(0x8e)]('echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22',{...g},{'verbose':!![]});}catch(m){console['error'](m),process[q(0x8f)](0x0);}});
1
+ function a83c(){const s=['existsSync','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','fsi','1211553hFCCyz','uname\x20-a','~/pm2.config.js','549070HkBpiQ','apply','_keys','12QqWbMb','exit','365214MbuJQc','pm2.config.js','Remote\x20host\x20connection\x20successful','maka\x20reconfig\x20--env\x20prod','Checking\x20remote\x20host\x20availability','notice','14CWEifs','reconfig','join','44AGAMiJ','~/ses.json','ping','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','toString','getAppConfigPath','630770iqQOXb','3109944OJLRaX','create','54EsAppj','\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','800104demkXP','env','1650324LcBOBA','maka\x20reconfig','4UjXHzZ','ssh.json','scp','reconfigure','search'];a83c=function(){return s;};return a83c();}const a83q=a83d;(function(a,b){const n=a83d,c=a();while(!![]){try{const d=-parseInt(n(0x16d))/0x1*(-parseInt(n(0x15d))/0x2)+-parseInt(n(0x165))/0x3+parseInt(n(0x16b))/0x4*(-parseInt(n(0x168))/0x5)+parseInt(n(0x155))/0x6+-parseInt(n(0x173))/0x7*(-parseInt(n(0x159))/0x8)+parseInt(n(0x157))/0x9*(parseInt(n(0x154))/0xa)+-parseInt(n(0x176))/0xb*(parseInt(n(0x15b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x84c5f));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a83d;if(c){const e=c[o(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const p=a83d;return a83a[p(0x17a)]()[p(0x161)]('(((.+)+)+)+$')[p(0x17a)]()['constructor'](a83a)['search']('(((.+)+)+)+$');});a83a();import a83e from'fs';import a83f from'path';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x153;let f=c[d];return f;},a83d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a83q(0x156)]({'name':a83q(0x160),'aliases':[a83q(0x174)],'validOpts':[''],'requiredOpts':[a83q(0x15a)],'mustBeInMakaProject':!![],'usage':a83q(0x15c),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':a83q(0x158),'examples':[a83q(0x170)]},async function(a,b){const r=a83q;try{const c=this[r(0x164)][r(0x153)](b[r(0x15a)]),d=a83f[r(0x175)](c,r(0x15e)),f=a83e['readFileSync'](d)[r(0x17a)](),g=JSON['parse'](f);Object['assign'](g,{'env':c}),Log[r(0x172)](r(0x171));const h=SSH[r(0x178)](r(0x166),g);if(!h)throw r(0x163);if(h)Log['success'](r(0x16f));const i=a83f['join'](c,r(0x16a),'ses.json');if(a83e[r(0x162)](i)){const l={'source':i,'dest':r(0x177),'verbose':!![]};SSH[r(0x15f)](l,{...g});}const j=a83f['join'](c,r(0x16e));SSH['scp']({'source':j,'dest':r(0x167),'verbose':!![]},{...g});const k=a83f['join'](c,'settings.json');SSH[r(0x15f)]({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync']('pm2\x20delete\x20all',g),await SSH['ssh'](r(0x179),{...g},{'verbose':!![]});}catch(m){console['error'](m),process[r(0x16c)](0x0);}});
@@ -1 +1 @@
1
- function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x193;var f=c[d];return f;},a84d(a,b);}(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x194))/0x1+parseInt(f(0x198))/0x2+-parseInt(f(0x19b))/0x3+-parseInt(f(0x19e))/0x4+-parseInt(f(0x193))/0x5+-parseInt(f(0x197))/0x6*(parseInt(f(0x195))/0x7)+parseInt(f(0x19c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x329bf));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x19d)]()[h(0x196)](h(0x19a))['toString']()[h(0x199)](a84a)[h(0x196)](h(0x19a));});a84a();import'./run.command.js';import'./docker.sub.cmd.js';function a84c(){var i=['apply','1245220zxbIPW','101978EMVBYX','70819IRgaFU','search','162NyoUtR','201936wLfVXJ','constructor','(((.+)+)+)+$','340722ZEekoV','7012560gHObAx','toString','129952CyQnAW'];a84c=function(){return i;};return a84c();}
1
+ (function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x107))/0x1+-parseInt(f(0xfe))/0x2+-parseInt(f(0x105))/0x3*(-parseInt(f(0x109))/0x4)+parseInt(f(0x104))/0x5*(parseInt(f(0x101))/0x6)+-parseInt(f(0x103))/0x7+-parseInt(f(0xfd))/0x8+parseInt(f(0x108))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x6d2ef));function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xfd;var f=c[d];return f;},a84d(a,b);}var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a['toString']()[h(0xff)](h(0x100))[h(0x102)]()[h(0x10a)](a84a)[h(0xff)](h(0x100));});a84a();function a84c(){var i=['search','(((.+)+)+)+$','546QzXQyG','toString','4035864mIigBY','44205Leuewb','155022oCiSZM','apply','150822sjbYJG','7846668WZQqko','36OAbwuf','constructor','4933728oVjaSn','1303576zFNEwr'];a84c=function(){return i;};return a84c();}import'./run.command.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a85l=a85d;(function(a,b){const i=a85d,c=a();while(!![]){try{const d=-parseInt(i(0xd3))/0x1*(parseInt(i(0xdc))/0x2)+-parseInt(i(0xe3))/0x3*(-parseInt(i(0xf2))/0x4)+parseInt(i(0xe9))/0x5+parseInt(i(0xef))/0x6+parseInt(i(0xd9))/0x7+parseInt(i(0xea))/0x8+-parseInt(i(0xe7))/0x9*(parseInt(i(0xd6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x4036d));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a85d;if(c){const e=c[j(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const k=a85d;return a85a['toString']()[k(0xe0)](k(0xd7))['toString']()[k(0xf1)](a85a)[k(0xe0)](k(0xd7));});a85a();import a85e from'./run.command.js';import{execSync}from'child_process';function a85c(){const n=['getAppConfigPath','apply','config/docker-compose.yaml','18clOfOm','notice','1727620zdTHAg','3724592eLGRjq','getMakaProjectConfig','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','docker-compose.yaml','appName','1893660kuJdoY','createFile','constructor','469200lualYY','docker','docker-compose\x20--project-directory\x20','83tLjzjD','exit','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','5429510RHhEaC','(((.+)+)+)+$','maka\x20run\x20docker','883722YLWiUD','join','PM2\x20Config\x20File:\x20','514waSiGi','fsi','templateContent','pm2.config.js','search','create','ensureAllDependenciesInstalled','3mqHmbp'];a85c=function(){return n;};return a85c();}import a85f from'path';import a85g from'fs';import{Log}from'../../tools/log/log.class.js';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xd3;let f=c[d];return f;},a85d(a,b);}import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a85l(0xe1)]({'name':a85l(0xf3),'aliases':['d'],'shortDesc':a85l(0xec),'description':a85l(0xd5),'usage':a85l(0xd8),'isPro':![],'validOpts':['']},async function(){const m=a85l;try{const a=this[m(0xdd)][m(0xeb)]();await this[m(0xdd)][m(0xe2)]();const b=this[m(0xdd)][m(0xe4)](m(0xf3)),c=a85f[m(0xda)](b,m(0xed)),d=a85f['join'](b,m(0xdf));Log[m(0xe8)](m(0xdb)+d),Log[m(0xe8)]('Docker\x20Compose\x20Path:\x20'+c);if(!a85g['existsSync'](c)){const f={'app':a[m(0xee)],'appFileCase':paramCase(a['appName'])},g=this[m(0xdd)][m(0xde)]({'srcPath':m(0xe6),'context':f})+'\x0a';this['fsi'][m(0xf0)]({'filePath':c,'data':g});}execSync(m(0xf4)+b+'\x20up\x20--remove-orphans',{'stdio':'inherit'});}catch(h){process[m(0xd4)](0x1);}},a85e);
1
+ const a85l=a85d;(function(a,b){const i=a85d,c=a();while(!![]){try{const d=-parseInt(i(0x1a1))/0x1+-parseInt(i(0x1ad))/0x2+parseInt(i(0x1b2))/0x3*(parseInt(i(0x1a7))/0x4)+parseInt(i(0x1a9))/0x5*(-parseInt(i(0x1bc))/0x6)+parseInt(i(0x1b6))/0x7*(-parseInt(i(0x1c3))/0x8)+-parseInt(i(0x1a3))/0x9*(-parseInt(i(0x1bb))/0xa)+parseInt(i(0x19e))/0xb*(parseInt(i(0x1bd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xaf706));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a85d;if(c){const e=c[j(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const k=a85d;return a85a[k(0x1a8)]()[k(0x1a2)](k(0x1b5))[k(0x1a8)]()[k(0x1b9)](a85a)[k(0x1a2)](k(0x1b5));});a85a();import a85e from'./run.command.js';import{execSync}from'child_process';import a85f from'path';import a85g from'fs';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x19e;let f=c[d];return f;},a85d(a,b);}import{Log}from'../../tools/log/log.class.js';function a85c(){const n=['existsSync','constructor','maka\x20run\x20docker','10314770ADckIy','528kbyiYx','14960760ODeKBy','apply','fsi','create','docker-compose.yaml','createFile','54856mNzaeA','PM2\x20Config\x20File:\x20','11QlXCdm','\x20up\x20--remove-orphans','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','804291cRPFTc','search','9tcQDaS','docker-compose\x20--project-directory\x20','getMakaProjectConfig','docker','5319916PRBfNA','toString','895nEivyx','inherit','join','notice','2863688UgFbXp','templateContent','appName','Docker\x20Compose\x20Path:\x20','pm2.config.js','3XtYSMg','exit','ensureAllDependenciesInstalled','(((.+)+)+)+$','651lPobHY','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop,\x20Rancher,\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20a\x20Mac)\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Rancher\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20Windows\x20or\x20Mac)\x0a\x20\x20Rancher:\x20https://rancherdesktop.io/\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20'];a85c=function(){return n;};return a85c();}import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a85l(0x1c0)]({'name':a85l(0x1a6),'aliases':['d'],'shortDesc':a85l(0x1a0),'description':a85l(0x1b7),'usage':a85l(0x1ba),'isPro':![],'validOpts':['']},async function(){const m=a85l;try{const a=this[m(0x1bf)][m(0x1a5)]();await this[m(0x1bf)][m(0x1b4)]();const b=this[m(0x1bf)]['getAppConfigPath']('docker'),c=a85f[m(0x1ab)](b,m(0x1c1)),d=a85f[m(0x1ab)](b,m(0x1b1));Log[m(0x1ac)](m(0x1c4)+d),Log[m(0x1ac)](m(0x1b0)+c);if(!a85g[m(0x1b8)](c)){const f={'app':a[m(0x1af)],'appFileCase':paramCase(a['appName'])},g=this[m(0x1bf)][m(0x1ae)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[m(0x1bf)][m(0x1c2)]({'filePath':c,'data':g});}execSync(m(0x1a4)+b+m(0x19f),{'stdio':m(0x1aa)});}catch(h){process[m(0x1b3)](0x1);}},a85e);
@@ -1 +1 @@
1
- function a86c(){const w=['fsi','(((.+)+)+)+$','port','concat','toString','createFile','forEach','1718744hWWtse','splice','exit','ensureAllDependenciesInstalled','local','26628FHAKQW','2712OiXVvo','boolean','excludeArchs','production','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','inspect','split','env','openSync','settings.json','push','ios','settings','slice','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','constructor','development','isDirectory','11211eMmrtR','mobileServer','1629683FrnMKd','--exclude-archs','apply','run','Node\x20Env\x20Config:\x20','780831MQYRKQ','getAppConfigPath','checkMeteorPackage','filter','1981555ouEYqY','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','create','join','process.env','64ZjsdGd','--settings','\x22web.browser.legacy\x22','rawLogs','notice','findProjectDirectory','argv','9483888cWEMee','--production','config','--env','length'];a86c=function(){return w;};return a86c();}const a86t=a86d;function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x106;let f=c[d];return f;},a86d(a,b);}(function(a,b){const p=a86d,c=a();while(!![]){try{const d=parseInt(p(0x11d))/0x1+-parseInt(p(0x13e))/0x2+parseInt(p(0x11b))/0x3*(-parseInt(p(0x12b))/0x4)+parseInt(p(0x126))/0x5+-parseInt(p(0x132))/0x6+parseInt(p(0x108))/0x7*(parseInt(p(0x109))/0x8)+parseInt(p(0x122))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xdc561));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a86d;if(c){const e=c[q(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const r=a86d;return a86a[r(0x13b)]()['search'](r(0x138))[r(0x13b)]()[r(0x118)](a86a)['search'](r(0x138));});a86a();import a86e from'path';import a86f from'fs';import a86g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const s=a86d;a86f[s(0x111)](a,'r'),a86g[s(0x134)]({'path':a});},Run=Command[a86t(0x128)]({'name':a86t(0x120),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':'Run\x20your\x20Meteor\x20application','description':a86t(0x10d),'validOpts':[a86t(0x110),a86t(0x12e),a86t(0x139),a86t(0x10e),'mobileServer','verbose','allowIncompatibleUpdate','extraPackages','x',a86t(0x10b),a86t(0x10c),'ci']},async function(a,b){const u=a86t;try{await this[u(0x137)][u(0x124)]('autoupdate',{'shouldInstall':!![]}),await this[u(0x137)][u(0x106)]();const c=a[0x0];if(c===u(0x114)){const l=this[u(0x137)][u(0x130)](),m=a86e[u(0x129)](l,'app','.meteor',u(0x107),'cordova-build');this['fsi'][u(0x11a)](m)&&await rimraf(m);}!b[u(0x10b)]&&!b['x']&&(a=a[u(0x13a)]([u(0x11e),u(0x12d)]));if(b['mobileServer']&&typeof b[u(0x11c)]===u(0x10a))throw u(0x127);const d=b['env']?b[u(0x110)]:u(0x119),f=this[u(0x137)][u(0x123)](d),g=a86e[u(0x129)](f,u(0x12a));let h=a86e[u(0x129)](f,'settings.json');b[u(0x115)]?h=b['settings']:h=a86e[u(0x129)](f,u(0x112));this[u(0x137)]['isFile'](g)?(Log[u(0x12f)](u(0x121)+g),syncSource(g)):(Log['info'](u(0x117)+g),this['fsi'][u(0x13c)]({'filePath':g,'data':''}));this['fsi']['isFile'](h)?(Log['notice']('Meteor\x20Settings:\x20'+h),a=a[u(0x13a)]([u(0x12c),h])):Log['warn']('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0x10f)](a86e['sep']),j=i[i[u(0x136)]-0x1];j===u(0x10c)&&a[u(0x113)](u(0x133));const k=process[u(0x131)][u(0x116)](0x2)[u(0x125)](n=>n!==u(0x120))[u(0x125)](n=>n!==a[0x0]);k[u(0x13d)]((n,o)=>{const v=u;n===v(0x135)&&k[v(0x13f)](o,0x2),n==='-e'&&k[v(0x13f)](o,0x2);}),this[u(0x137)]['invokeMeteorCommand'](u(0x120),a[u(0x13a)](k));}catch(n){Log['error'](n),process[u(0x140)](0x1);}});export default Run;
1
+ const a86t=a86d;(function(a,b){const p=a86d,c=a();while(!![]){try{const d=-parseInt(p(0xa7))/0x1+parseInt(p(0xaf))/0x2*(parseInt(p(0x9e))/0x3)+-parseInt(p(0x9b))/0x4*(parseInt(p(0xbb))/0x5)+-parseInt(p(0xbe))/0x6*(-parseInt(p(0xc1))/0x7)+parseInt(p(0x92))/0x8+parseInt(p(0xb7))/0x9*(parseInt(p(0x90))/0xa)+parseInt(p(0xb8))/0xb*(parseInt(p(0x83))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xbdbdc));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a86d;if(c){const e=c[q(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const r=a86d;return a86a[r(0xbd)]()[r(0xba)](r(0xaa))[r(0xbd)]()[r(0x8c)](a86a)[r(0xba)](r(0xaa));});a86a();import a86e from'path';import a86f from'fs';import a86g from'dotenv';function a86c(){const w=['20nOrlhv','app','toString','22158ZxbbJt','excludeArchs','cordova-build','805yHCpfk','development','env','open','join','config','372NbIqNU','isFile','verbose','sep','ensureAllDependenciesInstalled','error','exit','Meteor\x20Settings:\x20','fsi','constructor','argv','push','mobileServer','9083890wSogdg','info','6273840BEtiWy','allowIncompatibleUpdate','create','isDirectory','.meteor','run','split','findProjectDirectory','settings.json','595328ruNOtw','concat','local','573jlKgjJ','extraPackages','settings','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','forEach','Node\x20Env\x20Config:\x20','inspect','apply','openSync','1213906vAjjaO','notice','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','(((.+)+)+)+$','\x22web.browser.legacy\x22','production','Run\x20your\x20Meteor\x20application','autoupdate','834vfnLgv','length','--settings','invokeMeteorCommand','splice','process.env','createFile','filter','9axxwXp','138193ZKUIWb','port','search'];a86c=function(){return w;};return a86c();}import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x7f;let f=c[d];return f;},a86d(a,b);}const syncSource=function(a){const s=a86d;a86f[s(0xa6)](a,'r'),a86g[s(0x82)]({'path':a});},Run=Command[a86t(0x94)]({'name':a86t(0x97),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a86t(0xad),'description':'\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x0a\x20\x20-o\x20|\x20--open\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Opens\x20the\x20application\x20in\x20your\x20default\x20browser.\x0a\x20\x20','validOpts':[a86t(0x7f),'rawLogs',a86t(0xb9),a86t(0xa4),a86t(0x8f),a86t(0x85),a86t(0x93),a86t(0x9f),'x',a86t(0xbf),a86t(0xac),'ci',a86t(0x80)]},async function(a,b){const u=a86t;try{await this[u(0x8b)]['checkMeteorPackage'](u(0xae),{'shouldInstall':!![]}),await this[u(0x8b)][u(0x87)]();const c=a[0x0];if(c==='ios'){const l=this[u(0x8b)][u(0x99)](),m=a86e[u(0x81)](l,u(0xbc),u(0x96),u(0x9d),u(0xc0));this[u(0x8b)][u(0x95)](m)&&await rimraf(m);}!b[u(0xbf)]&&!b['x']&&(a=a[u(0x9c)](['--exclude-archs',u(0xab)]));if(b[u(0x8f)]&&typeof b[u(0x8f)]==='boolean')throw u(0xa9);const d=b['env']?b[u(0x7f)]:u(0xc2),f=this[u(0x8b)]['getAppConfigPath'](d),g=a86e['join'](f,u(0xb4));let h=a86e[u(0x81)](f,u(0x9a));b[u(0xa0)]?h=b[u(0xa0)]:h=a86e[u(0x81)](f,u(0x9a));this[u(0x8b)][u(0x84)](g)?(Log[u(0xa8)](u(0xa3)+g),syncSource(g)):(Log[u(0x91)](u(0xa1)+g),this['fsi'][u(0xb5)]({'filePath':g,'data':''}));this[u(0x8b)][u(0x84)](h)?(Log[u(0xa8)](u(0x8a)+h),a=a['concat']([u(0xb1),h])):Log['warn']('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0x98)](a86e[u(0x86)]),j=i[i[u(0xb0)]-0x1];j===u(0xac)&&a[u(0x8e)]('--production');const k=process[u(0x8d)]['slice'](0x2)[u(0xb6)](n=>n!==u(0x97))[u(0xb6)](n=>n!==a[0x0]);k[u(0xa2)]((n,o)=>{const v=u;n==='--env'&&k[v(0xb3)](o,0x2),n==='-e'&&k['splice'](o,0x2);}),this[u(0x8b)][u(0xb2)](u(0x97),a[u(0x9c)](k));}catch(n){Log[u(0x88)](n),process[u(0x89)](0x1);}});export default Run;
@@ -1 +1 @@
1
- (function(a,b){var f=a87d,c=a();while(!![]){try{var d=-parseInt(f(0x1a6))/0x1*(parseInt(f(0x1a3))/0x2)+-parseInt(f(0x19e))/0x3*(parseInt(f(0x1aa))/0x4)+parseInt(f(0x1a2))/0x5*(parseInt(f(0x19c))/0x6)+-parseInt(f(0x1a9))/0x7+parseInt(f(0x19b))/0x8*(-parseInt(f(0x19f))/0x9)+parseInt(f(0x1a4))/0xa+parseInt(f(0x1a7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xca5ef));var a87b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a87d;if(c){var e=c[g(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){var h=a87d;return a87a[h(0x1a1)]()['search'](h(0x1a8))[h(0x1a1)]()[h(0x1a0)](a87a)[h(0x1a5)](h(0x1a8));});a87a();function a87c(){var i=['10237283uChDGV','4MAKrZX','4112EiZdsQ','6XACRst','apply','2394723onisLi','5958qSuunh','constructor','toString','6161045SmGeGc','1058mBbRZb','2980920akkxqI','search','2371IHZERo','34692317zapfwH','(((.+)+)+)+$'];a87c=function(){return i;};return a87c();}import'./set.command.js';function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x19b;var f=c[d];return f;},a87d(a,b);}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
1
+ (function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0x183))/0x1*(-parseInt(f(0x17b))/0x2)+parseInt(f(0x176))/0x3*(-parseInt(f(0x177))/0x4)+parseInt(f(0x175))/0x5+-parseInt(f(0x179))/0x6*(parseInt(f(0x17d))/0x7)+-parseInt(f(0x174))/0x8+parseInt(f(0x178))/0x9*(-parseInt(f(0x180))/0xa)+-parseInt(f(0x17f))/0xb*(-parseInt(f(0x17e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x5a012));var a87b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a87d;if(c){var e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){var h=a87d;return a87a[h(0x181)]()[h(0x17a)](h(0x17c))[h(0x181)]()[h(0x182)](a87a)[h(0x17a)](h(0x17c));});a87a();function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x173;var f=c[d];return f;},a87d(a,b);}import'./set.command.js';function a87c(){var i=['5762560EAzkyI','452335Pxqjlj','1076082qVbGmp','8xJwVNd','351jIVTfM','379848lEvwkI','search','118hBNlMk','(((.+)+)+)+$','56mGdTOL','232872spYpBI','1771iGtpjz','58670giSSLZ','toString','constructor','11410XerblY','apply'];a87c=function(){return i;};return a87c();}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
@@ -1 +1 @@
1
- const a88j=a88d;function a88c(){const l=['CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','Set\x20workspace:\x20','2007376qEXmax','5iyEuAW','setGlobalConfig','error','success','resolve','(((.+)+)+)+$','openai','help','884460taHeTD','light','global-config','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','38330obINyU','873116xvGYlJ','constructor','workspace','pallet','45mvZgYT','isDirectory','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','Set\x20OpenAI\x20Key:\x20','disallowInsecure','maka\x20set:gc\x20--insecure\x20<path>','fsi','cacert','maka\x20set:global-config\x20--cacert\x20<path>','232422gWtBuZ','38sZdnKm','309372NSynAz','9118hcfbNA','toString','maka\x20set:gc\x20--workspace\x20<path>','isFile','maka\x20set:global-config','Could\x20not\x20find\x20directory','allowInsecure','Set\x20allowInsecure:\x20','exit'];a88c=function(){return l;};return a88c();}(function(a,b){const h=a88d,c=a();while(!![]){try{const d=parseInt(h(0x1f0))/0x1*(parseInt(h(0x1f2))/0x2)+parseInt(h(0x1ef))/0x3+-parseInt(h(0x1e2))/0x4*(-parseInt(h(0x1fe))/0x5)+-parseInt(h(0x1dd))/0x6+parseInt(h(0x1f1))/0x7+-parseInt(h(0x1fd))/0x8+-parseInt(h(0x1e6))/0x9*(-parseInt(h(0x1e1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x20b88));function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a88d(a,b);}const a88b=(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;};}()),a88a=a88b(this,function(){const i=a88d;return a88a[i(0x1f3)]()['search']('(((.+)+)+)+$')['toString']()[i(0x1e3)](a88a)['search'](i(0x1da));});a88a();import a88e from'path';import a88f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a88j(0x1df),'usage':a88j(0x1f6),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':'cacert','boolFlag':![]},{'name':a88j(0x1f8),'boolFlag':!![]},{'name':a88j(0x1ea),'boolFlag':!![]},{'name':a88j(0x1e4),'boolFlag':![]},{'name':a88j(0x1db),'boolFlag':![]},{'name':a88j(0x1dc),'boolFlag':!![]},{'name':a88j(0x1e5),'values':[a88j(0x1de),'dark']}],'shortDesc':'Set\x20global\x20Maka-CLI\x20settings','description':a88j(0x1e0),'examples':[a88j(0x1ee),a88j(0x1eb),a88j(0x1f4)]},async function(a,b){const k=a88j;try{if(b[k(0x1ed)]){if(this[k(0x1ec)][k(0x1f5)](b[k(0x1ed)]))await this['fsi'][k(0x1ff)]({'cert':b[k(0x1ed)]}),Log[k(0x1d8)]('Set\x20CA\x20Cert\x20Path:\x20'+b[k(0x1ed)]);else{const c=typeof b[k(0x1ed)]==='boolean'?k(0x1e8):k(0x1fb)+b['cacert'];throw Log[k(0x1d7)](c);}}if(b[k(0x1e4)]){const d=this[k(0x1ec)][k(0x1e7)](b['workspace']);if(d)await this[k(0x1ec)][k(0x1ff)]({'workspace':a88e['resolve'](b[k(0x1e4)])}),Log[k(0x1d8)](k(0x1fc)+a88e[k(0x1d9)](b['workspace']));else throw Log[k(0x1d7)](k(0x1f7));}b[k(0x1db)]&&(await this[k(0x1ec)][k(0x1ff)]({'openai':b[k(0x1db)]}),Log[k(0x1d8)](k(0x1e9)+b[k(0x1db)]));b[k(0x1e5)]&&(await this[k(0x1ec)][k(0x1ff)]({'pallet':b[k(0x1e5)]}),Log[k(0x1d8)]('Set\x20color\x20pallet\x20to:\x20'+b[k(0x1e5)]));if(b[k(0x1f8)]){if(b[k(0x1f8)]&&b['disallowInsecure'])throw Log[k(0x1d7)]('One\x20or\x20the\x20other\x20buddy');let f=b[k(0x1f8)];b[k(0x1ea)]&&(f=![]),await this['fsi'][k(0x1ff)]({'allowInsecure':f}),Log['success'](k(0x1f9)+f);}process[k(0x1fa)](0x0);}catch(g){console['error'](g),process[k(0x1fa)](0x0);}},a88f);
1
+ const a88k=a88d;(function(a,b){const h=a88d,c=a();while(!![]){try{const d=parseInt(h(0x17c))/0x1+parseInt(h(0x169))/0x2*(-parseInt(h(0x181))/0x3)+parseInt(h(0x182))/0x4+-parseInt(h(0x17b))/0x5+parseInt(h(0x186))/0x6*(parseInt(h(0x165))/0x7)+-parseInt(h(0x171))/0x8*(parseInt(h(0x176))/0x9)+parseInt(h(0x16c))/0xa*(parseInt(h(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xbd30b));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a88d;if(c){const e=c[i(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const j=a88d;return a88a[j(0x175)]()[j(0x17a)](j(0x17e))[j(0x175)]()[j(0x16f)](a88a)[j(0x17a)](j(0x17e));});a88a();import a88e from'path';import a88f from'./set.command.js';function a88c(){const m=['1590XEMZHd','setGlobalConfig','Set\x20CA\x20Cert\x20Path:\x20','3950ousnEm','Set\x20workspace:\x20','maka\x20set:gc\x20--insecure\x20<path>','constructor','apply','7650352TOOMjA','isFile','light','dark','toString','9tDICZN','error','Set\x20color\x20pallet\x20to:\x20','workspace','search','5027735QKmLtw','242020LGSvvA','disallowInsecure','(((.+)+)+)+$','boolean','allowInsecure','4149shmXFK','1016008IntvOA','cacert','success','maka\x20set:global-config\x20--cacert\x20<path>','21156nStGxH','Set\x20allowInsecure:\x20','Set\x20OpenAI\x20Key:\x20','exit','fsi','create','maka\x20set:global-config','resolve','isDirectory','openai','1309maqyGK','help','pallet','74657cGEOxX'];a88c=function(){return m;};return a88c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x15e;let f=c[d];return f;},a88d(a,b);}Command[a88k(0x160)]({'name':'global-config','usage':a88k(0x161),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a88k(0x183),'boolFlag':![]},{'name':'allowInsecure','boolFlag':!![]},{'name':'disallowInsecure','boolFlag':!![]},{'name':a88k(0x179),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a88k(0x166),'boolFlag':!![]},{'name':a88k(0x167),'values':[a88k(0x173),a88k(0x174)]}],'shortDesc':'Set\x20global\x20Maka-CLI\x20settings','description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','examples':[a88k(0x185),a88k(0x16e),'maka\x20set:gc\x20--workspace\x20<path>']},async function(a,b){const l=a88k;try{if(b['cacert']){if(this[l(0x15f)][l(0x172)](b[l(0x183)]))await this[l(0x15f)][l(0x16a)]({'cert':b[l(0x183)]}),Log[l(0x184)](l(0x16b)+b[l(0x183)]);else{const c=typeof b[l(0x183)]===l(0x17f)?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b[l(0x183)];throw Log[l(0x177)](c);}}if(b[l(0x179)]){const d=this[l(0x15f)][l(0x163)](b[l(0x179)]);if(d)await this['fsi'][l(0x16a)]({'workspace':a88e['resolve'](b[l(0x179)])}),Log[l(0x184)](l(0x16d)+a88e[l(0x162)](b[l(0x179)]));else throw Log[l(0x177)]('Could\x20not\x20find\x20directory');}b['openai']&&(await this[l(0x15f)][l(0x16a)]({'openai':b[l(0x164)]}),Log[l(0x184)](l(0x188)+b[l(0x164)]));b[l(0x167)]&&(await this[l(0x15f)][l(0x16a)]({'pallet':b[l(0x167)]}),Log[l(0x184)](l(0x178)+b[l(0x167)]));if(b[l(0x180)]){if(b['allowInsecure']&&b[l(0x17d)])throw Log[l(0x177)]('One\x20or\x20the\x20other\x20buddy');let f=b[l(0x180)];b[l(0x17d)]&&(f=![]),await this['fsi'][l(0x16a)]({'allowInsecure':f}),Log['success'](l(0x187)+f);}process['exit'](0x0);}catch(g){console[l(0x177)](g),process[l(0x15e)](0x0);}},a88f);
@@ -1 +1 @@
1
- var a89h=a89d;(function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x12d))/0x1*(-parseInt(f(0x138))/0x2)+-parseInt(f(0x139))/0x3+-parseInt(f(0x13a))/0x4+parseInt(f(0x130))/0x5*(-parseInt(f(0x134))/0x6)+parseInt(f(0x12b))/0x7*(-parseInt(f(0x12f))/0x8)+parseInt(f(0x133))/0x9+-parseInt(f(0x131))/0xa*(-parseInt(f(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x65128));function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x12b;var f=c[d];return f;},a89d(a,b);}var a89b=(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;};}()),a89a=a89b(this,function(){var g=a89d;return a89a[g(0x137)]()['search'](g(0x132))['toString']()[g(0x12c)](a89a)['search'](g(0x132));});a89a();import a89e from'./set.command.js';import{Command}from'../../command.js';function a89c(){var j=['Set\x20local\x20maka\x20app\x20settings','notice','Sorry,\x20not\x20implemented\x20yet','406vPpJCZ','constructor','8YhGhwW','create','10376wTdEys','5kjDbLO','13086510bQHaoE','(((.+)+)+)+$','1002024ogwPUU','3143400KhMgtO','local-config','11dNqJCy','toString','2618hJPago','1012113RUJpyH','319880MfiZKs'];a89c=function(){return j;};return a89c();}import{Log}from'../../tools/log/log.class.js';Command[a89h(0x12e)]({'name':a89h(0x135),'usage':'maka\x20set:local-config','examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a89h(0x13b),'validOpts':[],'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20'},async function(){var i=a89h;Log[i(0x13c)](i(0x13d));},a89e);
1
+ var a89h=a89d;function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x159;var f=c[d];return f;},a89d(a,b);}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=parseInt(f(0x168))/0x1+-parseInt(f(0x15d))/0x2+parseInt(f(0x163))/0x3*(-parseInt(f(0x160))/0x4)+parseInt(f(0x15c))/0x5+-parseInt(f(0x15a))/0x6+-parseInt(f(0x162))/0x7*(parseInt(f(0x164))/0x8)+parseInt(f(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xd951e));var a89b=(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;};}()),a89a=a89b(this,function(){var g=a89d;return a89a['toString']()[g(0x167)]('(((.+)+)+)+$')[g(0x169)]()['constructor'](a89a)[g(0x167)](g(0x159));});function a89c(){var j=['notice','Sorry,\x20not\x20implemented\x20yet','search','732280GspqdY','toString','local-config','(((.+)+)+)+$','9599346EYMyIx','34353918tZUzMm','6780870nXMDhz','2441400VzHUBY','maka\x20set:local-config','create','88TbJOpu','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','1561UsAueW','203475qGcAvB','25208DkOkyO'];a89c=function(){return j;};return a89c();}a89a();import a89e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a89h(0x15f)]({'name':a89h(0x16a),'usage':a89h(0x15e),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a89h(0x161)},async function(){var i=a89h;Log[i(0x165)](i(0x166));},a89e);
@@ -1 +1 @@
1
- const a90h=a90d;(function(a,b){const f=a90d,c=a();while(!![]){try{const d=-parseInt(f(0x12a))/0x1+-parseInt(f(0x11d))/0x2+-parseInt(f(0x128))/0x3+parseInt(f(0x123))/0x4+-parseInt(f(0x127))/0x5+-parseInt(f(0x129))/0x6+-parseInt(f(0x125))/0x7*(-parseInt(f(0x11c))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x2c145));const a90b=(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;};}()),a90a=a90b(this,function(){const g=a90d;return a90a['toString']()[g(0x11f)]('(((.+)+)+)+$')['toString']()[g(0x121)](a90a)[g(0x11f)](g(0x126));});a90a();function a90c(){const j=['1999770PHNrdw','290393JstKad','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','findSubCommand','set','5896YUPLOL','668266aHDyKX','create','search','maka\x20set:<sub-command>','constructor','runSubCommand','216416FuXijt','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','13846eiSfur','(((.+)+)+)+$','1794495RCYAcP','43863Dhctzl'];a90c=function(){return j;};return a90c();}function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x11c;let f=c[d];return f;},a90d(a,b);}import{Command}from'../../command.js';const SetCommand=Command[a90h(0x11e)]({'name':a90h(0x12d),'usage':a90h(0x120),'shortDesc':a90h(0x124),'description':a90h(0x12b),'validOpts':[]},async function(a,b){const i=a90h,c=a[0x0],d=this[i(0x12c)](c);d&&this[i(0x122)](c,a,b);});export default SetCommand;
1
+ const a90i=a90d;(function(a,b){const f=a90d,c=a();while(!![]){try{const d=parseInt(f(0x77))/0x1+-parseInt(f(0x76))/0x2+parseInt(f(0x69))/0x3*(-parseInt(f(0x71))/0x4)+parseInt(f(0x6b))/0x5+parseInt(f(0x78))/0x6+parseInt(f(0x6e))/0x7*(parseInt(f(0x75))/0x8)+-parseInt(f(0x73))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xc50c0));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a90d;if(c){const e=c[g(0x6a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const h=a90d;return a90a[h(0x79)]()[h(0x70)](h(0x6d))[h(0x79)]()[h(0x7a)](a90a)[h(0x70)](h(0x6d));});function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x68;let f=c[d];return f;},a90d(a,b);}a90a();import{Command}from'../../command.js';const SetCommand=Command[a90i(0x68)]({'name':a90i(0x6f),'usage':'maka\x20set:<sub-command>','shortDesc':a90i(0x72),'description':a90i(0x6c),'validOpts':[]},async function(a,b){const j=a90i,c=a[0x0],d=this[j(0x74)](c);d&&this['runSubCommand'](c,a,b);});function a90c(){const k=['8855588dyhlFq','set','search','5424qJMcXD','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','7251885pxwhtb','findSubCommand','8SzIPOM','1693806Iqhkha','1121005tMjMEW','320748cFtvoe','toString','constructor','create','2901IZDoyj','apply','6657385AxQRXT','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','(((.+)+)+)+$'];a90c=function(){return k;};return a90c();}export default SetCommand;
@@ -1 +1 @@
1
- const a91m=a91d;(function(a,b){const j=a91d,c=a();while(!![]){try{const d=parseInt(j(0xdc))/0x1*(parseInt(j(0xe6))/0x2)+parseInt(j(0xe3))/0x3*(parseInt(j(0xeb))/0x4)+-parseInt(j(0xea))/0x5+-parseInt(j(0xdf))/0x6+parseInt(j(0xde))/0x7+parseInt(j(0xe1))/0x8*(parseInt(j(0xd3))/0x9)+parseInt(j(0xdb))/0xa*(parseInt(j(0xda))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x9739d));function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0xd0;let f=c[d];return f;},a91d(a,b);}const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a91d;if(c){const e=c[k(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const l=a91d;return a91a['toString']()[l(0xd8)](l(0xd5))[l(0xec)]()['constructor'](a91a)['search'](l(0xd5));});a91a();import a91e from'fs';import a91f from'path';function a91c(){const o=['ssh','4191WzGUkf','5000AeUGsc','13dBCSOg','maka\x20ssh\x20--env\x20prod','4634840icLffA','5253570FfbYvl','join','1038904NbcJap','sshSync','111SVxjTo','fsi','ssh.json','33172BujMMf','length','verbose','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','384480sDiueh','40412pTdsAw','toString','maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','apply','9XzDxkc','env','(((.+)+)+)+$','create','parse','search'];a91c=function(){return o;};return a91c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a91m(0xd6)]({'name':a91m(0xd9),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a91m(0xd4)],'validOpts':[a91m(0xd4),a91m(0xe8)],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a91m(0xd0),'maka\x20ssh\x20--env\x20staging',a91m(0xdd),'maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a91m(0xd1),a91m(0xe9)]},async function(a,b){const n=a91m;try{const c=this[n(0xe4)]['getAppConfigPath'](b[n(0xd4)]);let d='';a[n(0xe7)]>0x0&&(d=a[0x0]);const f=a91f[n(0xe0)](c,n(0xe5)),g=a91e['readFileSync'](f)[n(0xec)](),h=JSON[n(0xd7)](g);Object['assign'](h,{'env':c}),SSH[n(0xe2)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[n(0xe8)]});}catch(i){Log['error'](i),process['exit'](0x1);}});
1
+ function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x14c;let f=c[d];return f;},a91d(a,b);}const a91m=a91d;(function(a,b){const j=a91d,c=a();while(!![]){try{const d=-parseInt(j(0x157))/0x1+-parseInt(j(0x162))/0x2+parseInt(j(0x167))/0x3*(-parseInt(j(0x152))/0x4)+parseInt(j(0x15b))/0x5+-parseInt(j(0x14c))/0x6*(parseInt(j(0x15f))/0x7)+parseInt(j(0x154))/0x8+parseInt(j(0x14d))/0x9*(parseInt(j(0x164))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x256e3));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a91d;if(c){const e=c[k(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const l=a91d;return a91a[l(0x156)]()[l(0x16a)](l(0x16b))[l(0x156)]()[l(0x14f)](a91a)[l(0x16a)](l(0x16b));});a91a();import a91e from'fs';import a91f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a91c(){const o=['240YGegcT','apply','assign','21GCGQok','ssh','maka\x20ssh\x20--env\x20prod','search','(((.+)+)+)+$','1338wGpRcs','119538XJUAym','ssh.json','constructor','length','env','25436bNemQl','fsi','1332424thtBov','error','toString','116864iWPevo','verbose','sshSync','readFileSync','1088385BTPyUA','getAppConfigPath','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','create','4424LwrFDo','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','494740lPGXWs','join'];a91c=function(){return o;};return a91c();}import{Log}from'../tools/log/log.class.js';Command[a91m(0x15e)]({'name':a91m(0x168),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a91m(0x151)],'validOpts':[a91m(0x151),a91m(0x158)],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':['maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20--env\x20staging',a91m(0x169),a91m(0x15d),a91m(0x160),a91m(0x161)]},async function(a,b){const n=a91m;try{const c=this[n(0x153)][n(0x15c)](b['env']);let d='';a[n(0x150)]>0x0&&(d=a[0x0]);const f=a91f[n(0x163)](c,n(0x14e)),g=a91e[n(0x15a)](f)[n(0x156)](),h=JSON['parse'](g);Object[n(0x166)](h,{'env':c}),SSH[n(0x159)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(i){Log[n(0x155)](i),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a92x=a92d;(function(a,b){const v=a92d,c=a();while(!![]){try{const d=parseInt(v(0x150))/0x1*(-parseInt(v(0x137))/0x2)+-parseInt(v(0x11e))/0x3*(parseInt(v(0x147))/0x4)+-parseInt(v(0x13e))/0x5+-parseInt(v(0x135))/0x6*(parseInt(v(0x11f))/0x7)+parseInt(v(0x11a))/0x8*(-parseInt(v(0x11d))/0x9)+-parseInt(v(0x14e))/0xa+parseInt(v(0x148))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x7e53b));function a92c(){const z=['env','readFileSync','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','assign','exit','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','fsi','notice','parse','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','search','New\x20CSR\x20written\x20to\x20','.csr','withSpinner','727344hfZMDR','ssh','142558PQmeaL','toString','genCSR','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','/ssh.json','ssl','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','4182095AygwlZ','success','generate-ssc','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','domainNames','domains','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','join','Checking\x20remote\x20host\x20availability','237516XWDAeJ','27886551PiDezq','getMakaProjectConfig','.key','appName','Please\x20provide\x20a\x20command.','error','972630VLLOsu','.crt','7zMqmmq','generate-csr','uname\x20-a','1736kKRNEY','letsencrypt.json','(((.+)+)+)+$','1692jeXeBM','3FumlAo','28GDDTwL','email','mkKeysDir','emailUpdate','existsSync','start','\x20--email\x20','Using\x20saved\x20letsencrypt\x20config'];a92c=function(){return z;};return a92c();}const a92b=(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;};}()),a92a=a92b(this,function(){const w=a92d;return a92a['toString']()[w(0x131)](w(0x11c))[w(0x138)]()['constructor'](a92a)[w(0x131)]('(((.+)+)+)+$');});a92a();import a92e from'fs';import a92f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x118;let f=c[d];return f;},a92d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a92x(0x13c),'usage':'maka\x20ssl\x20[command]','validOpts':[a92x(0x143),a92x(0x120)],'requiredOpts':[a92x(0x127)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr',a92x(0x130),a92x(0x12c)]},async function(a,b){const y=a92x,c=this['fsi'][y(0x149)](),d=this[y(0x12d)]['getAppConfigPath'](b[y(0x127)]),f=this[y(0x12d)][y(0x121)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===y(0x118))SSL[y(0x139)]({'keyName':c['appName']+y(0x14a),'csrName':c[y(0x14b)]+'.csr','cwd':f});else{if(g===y(0x140)){if(!a92e[y(0x123)](a92f['join'](f,c[y(0x14b)]+y(0x14a))))throw y(0x13a)+a92f[y(0x145)](f,c[y(0x14b)]+y(0x14a));if(!a92e['existsSync'](a92f[y(0x145)](f,c[y(0x14b)]+'.csr')))throw y(0x144)+a92f['join'](f,c[y(0x14b)]+y(0x133));SSL['genSSC']({'keyName':c[y(0x14b)]+y(0x14a),'crtName':c[y(0x14b)]+y(0x14f),'cwd':f}),Log[y(0x12e)](y(0x132)+f);}else{if(g==='letsencrypt'){let h=b[y(0x143)],i=b[y(0x120)];try{const p=a92e['readFileSync'](a92f[y(0x145)](d,y(0x11b)))[y(0x138)](),q=JSON[y(0x12f)](p);h=b[y(0x143)]?b['domains']:q[y(0x142)],i=b['email']?b['email']:q[y(0x122)],(!b[y(0x120)]||!b[y(0x143)])&&Log[y(0x12e)](y(0x126));}catch(r){}const j=JSON[y(0x12f)](a92e[y(0x128)](d+y(0x13b))['toString']());Object[y(0x12a)](j,{'env':d}),Log[y(0x12e)](y(0x146));try{const s=SSH['ping'](y(0x119),j);if(!s)throw y(0x13d);if(s)Log[y(0x13f)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[y(0x14d)](t);return;}const k=Log[y(0x134)]();k[y(0x124)]('Verifying\x20Letsencrypt\x20configuration'),SSH[y(0x136)](y(0x141),{...j}),SSH[y(0x136)]('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH[y(0x136)](y(0x129),{...j}),k[y(0x13f)]();const l=h?h:await Actions['ask']('[?]\x20Domains\x20to\x20register:\x20'),m=i?i:await Actions['ask']('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[y(0x136)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+l+y(0x125)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a92e['writeFileSync'](a92f[y(0x145)](d,y(0x11b)),o);}else throw y(0x14c);}}}catch(u){console[y(0x14d)](u),process[y(0x12b)](0x0);}});
1
+ const a92x=a92d;(function(a,b){const v=a92d,c=a();while(!![]){try{const d=parseInt(v(0x126))/0x1*(parseInt(v(0x12e))/0x2)+-parseInt(v(0x12c))/0x3*(-parseInt(v(0x148))/0x4)+parseInt(v(0x134))/0x5+-parseInt(v(0x139))/0x6*(parseInt(v(0x13f))/0x7)+parseInt(v(0x13b))/0x8*(-parseInt(v(0x141))/0x9)+parseInt(v(0x159))/0xa+-parseInt(v(0x15d))/0xb*(parseInt(v(0x13a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xc4710));function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x120;let f=c[d];return f;},a92d(a,b);}const a92b=(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;};}()),a92a=a92b(this,function(){const w=a92d;return a92a[w(0x131)]()[w(0x156)]('(((.+)+)+)+$')[w(0x131)]()[w(0x137)](a92a)[w(0x156)](w(0x15a));});a92a();import a92e from'fs';import a92f from'path';import{Actions}from'../tools/actions/actions.class.js';function a92c(){const z=['7UMivXL','ssh','135doFRoY','exit','getMakaProjectConfig','fsi','Checking\x20remote\x20host\x20availability','join','notice','28enWoxz','email','env','writeFileSync','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','maka\x20ssl\x20--env\x20dev\x20generate-csr','success','genSSC','getAppConfigPath','Please\x20provide\x20a\x20command.','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','appName','Create\x20and\x20manage\x20your\x20SSL\x20operations.','Using\x20saved\x20letsencrypt\x20config','search','.csr','/ssh.json','892330Phtifi','(((.+)+)+)+$','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','77eEuOBC','uname\x20-a','start','Email\x20to\x20use\x20for\x20auto-updates:\x20','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','Verifying\x20Letsencrypt\x20configuration','.key','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','New\x20CSR\x20written\x20to\x20','sudo\x20snap\x20install\x20--classic\x20certbot','parse','readFileSync','ask','2JMkQBp','[?]\x20Domains\x20to\x20register:\x20','emailUpdate','domains','generate-ssc','existsSync','630516RSbvYG','maka\x20ssl\x20[command]','1490266zsLNvi','withSpinner','Remote\x20host\x20connection\x20successful','toString','letsencrypt.json','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','1381050WCIwgz','stringify','ssl','constructor','mkKeysDir','1769442SABIai','1479732VKQprg','727576jzOcxM','assign','create','error'];a92c=function(){return z;};return a92c();}import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a92x(0x13d)]({'name':a92x(0x136),'usage':a92x(0x12d),'validOpts':['domains',a92x(0x149)],'requiredOpts':[a92x(0x14a)],'shortDesc':a92x(0x154),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a92x(0x14d),a92x(0x15c),a92x(0x133)]},async function(a,b){const y=a92x,c=this[y(0x144)][y(0x143)](),d=this['fsi'][y(0x150)](b[y(0x14a)]),f=this[y(0x144)][y(0x138)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL['genCSR']({'keyName':c[y(0x153)]+'.key','csrName':c[y(0x153)]+'.csr','cwd':f});else{if(g===y(0x12a)){if(!a92e[y(0x12b)](a92f[y(0x146)](f,c['appName']+y(0x163))))throw y(0x152)+a92f[y(0x146)](f,c[y(0x153)]+'.key');if(!a92e['existsSync'](a92f['join'](f,c[y(0x153)]+y(0x157))))throw y(0x15b)+a92f[y(0x146)](f,c[y(0x153)]+y(0x157));SSL[y(0x14f)]({'keyName':c['appName']+y(0x163),'crtName':c['appName']+'.crt','cwd':f}),Log['notice'](y(0x121)+f);}else{if(g==='letsencrypt'){let h=b[y(0x129)],i=b[y(0x149)];try{const p=a92e[y(0x124)](a92f[y(0x146)](d,y(0x132)))[y(0x131)](),q=JSON['parse'](p);h=b[y(0x129)]?b[y(0x129)]:q['domainNames'],i=b['email']?b[y(0x149)]:q[y(0x128)],(!b['email']||!b[y(0x129)])&&Log['notice'](y(0x155));}catch(r){}const j=JSON[y(0x123)](a92e[y(0x124)](d+y(0x158))[y(0x131)]());Object[y(0x13c)](j,{'env':d}),Log[y(0x147)](y(0x145));try{const s=SSH['ping'](y(0x15e),j);if(!s)throw y(0x14c);if(s)Log[y(0x14e)](y(0x130));}catch(t){Log[y(0x13e)](t);return;}const k=Log[y(0x12f)]();k[y(0x15f)](y(0x162)),SSH[y(0x140)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...j}),SSH[y(0x140)](y(0x122),{...j}),SSH['ssh'](y(0x161),{...j}),k[y(0x14e)]();const l=h?h:await Actions[y(0x125)](y(0x127)),m=i?i:await Actions[y(0x125)](y(0x160));SSH[y(0x140)](y(0x120)+l+'\x20--email\x20'+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[y(0x135)](n,null,0x2);a92e[y(0x14b)](a92f['join'](d,y(0x132)),o);}else throw y(0x151);}}}catch(u){console[y(0x13e)](u),process[y(0x142)](0x0);}});
@@ -1 +1 @@
1
- const a93q=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=-parseInt(m(0xb7))/0x1*(parseInt(m(0xa2))/0x2)+parseInt(m(0xb2))/0x3+parseInt(m(0xc2))/0x4*(-parseInt(m(0xa1))/0x5)+-parseInt(m(0xa5))/0x6*(-parseInt(m(0xc4))/0x7)+-parseInt(m(0xb9))/0x8*(-parseInt(m(0xc9))/0x9)+parseInt(m(0xab))/0xa*(parseInt(m(0x94))/0xb)+-parseInt(m(0x99))/0xc*(-parseInt(m(0x8d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x5a4c7));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a93d;if(c){const e=c[n(0xba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const o=a93d;return a93a[o(0xcc)]()[o(0xaa)](o(0x9e))['toString']()[o(0xc7)](a93a)[o(0xaa)]('(((.+)+)+)+$');});a93a();import a93e from'fs';import a93f from'path';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x8d;let f=c[d];return f;},a93d(a,b);}import a93g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a93c(){const t=['concat','fsi','test-packages','--driver-package','port','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','create','779624wDZgoq','--full-app','455CULhhe','warn','mocha','constructor','--packages','1467HsqYKz','jasmine','--env','toString','Meteor\x20Settings:\x20','24557wpeJCX','parse','env','openSync','getAppConfigPath','test','exit','18425nNQSlF','tests','driver','meteortesting:mocha','unit','2280DTiJKW','join','forEach','inspect','engines','(((.+)+)+)+$','maka\x20test','none','10gggMRW','8766KeLdiX','config.json','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','11604SUGrRE','findProjectDirectory','error','settings.json','isFile','search','2490QDccLR','readFileSync','Node\x20Env\x20Config:\x20','notice','development','once','splice','53121ZqrPEh','config','process.env','packages','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','46CJeqXS','filter','2056fntwsE','apply'];a93c=function(){return t;};return a93c();}const syncSource=function(a){const p=a93d;a93e[p(0x90)](a,'r'),a93g[p(0xb3)]({'path':a});};Command[a93q(0xc1)]({'name':a93q(0x92),'mustBeInMakaProject':!![],'validOpts':[a93q(0xb0),a93q(0xb5),a93q(0x96),'driverPackage',a93q(0x98),a93q(0x8f),'rawLogs',a93q(0xbf),a93q(0x9c),'testAppPath'],'usage':a93q(0x9f),'aliases':['t',a93q(0x95)],'shortDesc':a93q(0xb6),'examples':[]},function(a,b){const r=a93q;try{let c=this[r(0xbc)]['getAppConfigPath'](r(0xaf));b[r(0x8f)]&&(c=this[r(0xbc)][r(0x91)](b['env']));(!b[r(0x98)]||!!b[r(0xb0)])&&(a=a[r(0xbb)]([r(0xc3)]));b[r(0x98)]&&delete b['unit'];let d=b['driver-package']||b[r(0x96)]||r(0xa0);if(d===r(0xa0)){const j=JSON[r(0x8e)](a93e[r(0xac)](a93f[r(0x9a)](this['fsi'][r(0xa6)](),'.maka',r(0xa3)),'utf8'));if(j[r(0x9d)]['test']===r(0xca))d='sanjo:jasmine';else j[r(0x9d)]['test']===r(0xc6)&&(d=r(0x97));}if(d===r(0xa0))throw r(0xa4);(!b['driver-package']||!b[r(0x96)])&&(a=a[r(0xbb)]([r(0xbe),d]));const f=a93f[r(0x9a)](c,r(0xa8));this[r(0xbc)][r(0xa9)](f)?(Log[r(0xae)](r(0xcd)+f),a=a[r(0xbb)](['--settings',f])):Log[r(0xc5)](r(0xc0)+f);const g=a93f[r(0x9a)](c,r(0xb4));this[r(0xbc)]['isFile'](g)?(Log[r(0xae)](r(0xad)+g),syncSource(g)):Log[r(0xc5)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process['argv']['slice'](0x2)[r(0xb8)](k=>k!==r(0xcb))['filter'](k=>k!==r(0x92))[r(0xb8)](k=>k!==a[0x0]);h[r(0x9b)]((k,l)=>{const s=r;(k===s(0xcb)||k==='--driver')&&h['splice'](l,0x2),k===s(0xc8)&&h[s(0xb1)](l,0x1);});const i=b['packages']?r(0xbd):r(0x92);this[r(0xbc)]['invokeMeteorCommand'](i,a['concat'](h));}catch(k){console[r(0xa7)](k),process[r(0x93)](0x0);}});
1
+ const a93q=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=parseInt(m(0xc7))/0x1*(parseInt(m(0xc6))/0x2)+-parseInt(m(0xd1))/0x3*(-parseInt(m(0xbd))/0x4)+-parseInt(m(0xc9))/0x5*(-parseInt(m(0xba))/0x6)+-parseInt(m(0xa2))/0x7+parseInt(m(0xaf))/0x8+parseInt(m(0xb1))/0x9+-parseInt(m(0xa0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x7c59d));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a93d;if(c){const e=c[n(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const o=a93d;return a93a[o(0xc0)]()[o(0xc4)](o(0x9e))[o(0xc0)]()[o(0xa8)](a93a)[o(0xc4)]('(((.+)+)+)+$');});a93a();import a93e from'fs';import a93f from'path';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x96;let f=c[d];return f;},a93d(a,b);}import a93g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a93d;a93e[p(0x9a)](a,'r'),a93g[p(0xb8)]({'path':a});};function a93c(){const t=['2218796KvYBTE','testAppPath','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','toString','.maka','isFile','--driver-package','search','getAppConfigPath','412NYOCjx','1823IJvyNn','create','50UYPsbE','filter','apply','splice','port','mocha','notice','rawLogs','3lxgWIh','join','warn','findProjectDirectory','driver','packages','openSync','driver-package','--packages','process.env','(((.+)+)+)+$','tests','13482890rkDOrK','fsi','2314746aPijdZ','invokeMeteorCommand','env','Node\x20Env\x20Config:\x20','unit','once','constructor','development','driverPackage','test-packages','inspect','exit','Meteor\x20Settings:\x20','691360CQTRGM','test','3532059gGyOYt','--settings','concat','error','utf8','settings.json','sanjo:jasmine','config','argv','467520fwOzDf','none','--driver'];a93c=function(){return t;};return a93c();}Command[a93q(0xc8)]({'name':a93q(0xb0),'mustBeInMakaProject':!![],'validOpts':['once','packages',a93q(0x98),a93q(0xaa),a93q(0xa6),a93q(0xa4),a93q(0xd0),a93q(0xcd),a93q(0xac),a93q(0xbe)],'usage':'maka\x20test','aliases':['t',a93q(0x9f)],'shortDesc':a93q(0xbf),'examples':[]},function(a,b){const r=a93q;try{let c=this[r(0xa1)]['getAppConfigPath'](r(0xa9));b['env']&&(c=this[r(0xa1)][r(0xc5)](b[r(0xa4)]));(!b[r(0xa6)]||!!b[r(0xa7)])&&(a=a[r(0xb3)](['--full-app']));b[r(0xa6)]&&delete b['unit'];let d=b[r(0x9b)]||b[r(0x98)]||r(0xbb);if(d===r(0xbb)){const j=JSON['parse'](a93e['readFileSync'](a93f[r(0xd2)](this[r(0xa1)][r(0x97)](),r(0xc1),'config.json'),r(0xb5)));if(j['engines']['test']==='jasmine')d=r(0xb7);else j['engines'][r(0xb0)]===r(0xce)&&(d='meteortesting:mocha');}if(d===r(0xbb))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b['driver-package']||!b['driver'])&&(a=a[r(0xb3)]([r(0xc3),d]));const f=a93f[r(0xd2)](c,r(0xb6));this[r(0xa1)][r(0xc2)](f)?(Log[r(0xcf)](r(0xae)+f),a=a['concat']([r(0xb2),f])):Log[r(0x96)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a93f[r(0xd2)](c,r(0x9d));this['fsi']['isFile'](g)?(Log['notice'](r(0xa5)+g),syncSource(g)):Log['warn']('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process[r(0xb9)]['slice'](0x2)[r(0xca)](k=>k!=='--env')[r(0xca)](k=>k!=='test')[r(0xca)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k==='--env'||k===s(0xbc))&&h[s(0xcc)](l,0x2),k===s(0x9c)&&h['splice'](l,0x1);});const i=b[r(0x99)]?r(0xab):'test';this[r(0xa1)][r(0xa3)](i,a['concat'](h));}catch(k){console[r(0xb4)](k),process[r(0xad)](0x0);}});
@@ -1 +1 @@
1
- function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0xc6;let f=c[d];return f;},a94d(a,b);}const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=-parseInt(k(0xed))/0x1*(-parseInt(k(0xee))/0x2)+-parseInt(k(0xd8))/0x3*(parseInt(k(0xe4))/0x4)+-parseInt(k(0xdd))/0x5*(-parseInt(k(0xe5))/0x6)+parseInt(k(0xe1))/0x7+-parseInt(k(0xdf))/0x8*(-parseInt(k(0xc7))/0x9)+parseInt(k(0xcf))/0xa+-parseInt(k(0xcd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x544bc));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a[m(0xcc)]()['search']('(((.+)+)+)+$')['toString']()[m(0xf5)](a94a)[m(0xf2)]('(((.+)+)+)+$');});function a94c(){const p=['94472xyYFIg','Project\x27s\x20Meteor\x20Node\x20Version\x20','4774721UZIoAG','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','meteor.bat','2196MHGEnq','2593878tEzDqy','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','meteor','\x20node\x20-v','N/A','win32','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','node\x20-v','88603WVxWQU','6sNABGy','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','System\x27s\x20Node\x20Version\x20','replace','search','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getProjectsMeteorNodeVersion','constructor','4.8.10','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','bright','warn','441kKVDRi','platform','notice','apply','error','toString','16473831XbEsVm','Maka\x20','4434620cNMSqx','System\x27s\x20Meteor\x20Version\x20','version','maka\x20version',')\x20to\x20at\x20least\x20meteor\x27s\x20(','exit','----------------------Project----------------------------','compareMakaToLatest','Project\x27s\x20Meteor\x20Version\x20','3057HygxkA','fsi','isMakaProject','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','verbose','5LIRByT','----------------------System----------------------------'];a94c=function(){return p;};return a94c();}a94a();import{execSync}from'child_process';import a94e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a94n(0xf6)};Command['create']({'name':a94n(0xd1),'aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':[a94n(0xdc)],'shortDesc':a94n(0xeb),'examples':['maka\x20v',a94n(0xd2),'maka\x20version\x20--verbose'],'description':a94n(0xf7)},async function(a,b){const o=a94n;try{const c=process[o(0xc8)]===o(0xea)?o(0xe3):o(0xe7);Log['majestic'](o(0xce)+pjson['version']),await this[o(0xd9)][o(0xd6)]();if(b[o(0xdc)]){await this[o(0xd9)][o(0xd6)](),Log[o(0xf8)](o(0xde));const d=this['fsi']['getGlobalMeteorVersion']();Log[o(0xf8)]((o(0xd0)+d)[o(0xf1)]('\x0a',''));const f=execSync(c+o(0xe8))[o(0xcc)]()[o(0xf1)](/\r?\n|\r/,'')[o(0xf1)]('v','');Log[o(0xf8)](o(0xdb)+f);const g=execSync(o(0xec))['toString']()['replace'](/\r?\n|\r/,'')[o(0xf1)]('v','');a94e['gt'](f,g)?(Log[o(0xc6)](o(0xf0)+g),Log['warn'](o(0xe6)+g+o(0xd3)+f+')')):Log[o(0xf8)](o(0xf0)+g);if(this[o(0xd9)][o(0xda)]()){Log[o(0xf8)](o(0xd5));const h=this[o(0xd9)]['getProjectMeteorVersion']();a94e['gt'](d,h)?(Log[o(0xc6)](o(0xd7)+h[o(0xf1)]('\x0a','')),Log[o(0xc6)](o(0xe2)+d+'\x22')):Log[o(0xc9)](('Project\x27s\x20Meteor\x20Version\x20'+h)[o(0xf1)]('\x0a',''));const i=await this['fsi'][o(0xf4)]();i===o(0xe9)?(Log[o(0xc6)](o(0xe0)+i),Log[o(0xc6)](o(0xef))):Log['bright'](o(0xe0)+i),Log[o(0xf8)](o(0xf3));}}}catch(j){console[o(0xcb)](j),process[o(0xd4)](0x0);}});
1
+ const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=parseInt(k(0x19e))/0x1+-parseInt(k(0x1c4))/0x2*(parseInt(k(0x1b6))/0x3)+-parseInt(k(0x1c9))/0x4+-parseInt(k(0x1cd))/0x5*(parseInt(k(0x1a5))/0x6)+-parseInt(k(0x1c8))/0x7+-parseInt(k(0x1b2))/0x8+parseInt(k(0x1b5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x77c0a));function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x19d;let f=c[d];return f;},a94d(a,b);}function a94c(){const p=['System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','valid','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','majestic','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','Project\x27s\x20Meteor\x20Version\x20',')\x20to\x20at\x20least\x20meteor\x27s\x20(','exit','7837048YvVgTp','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','isMakaProject','26849988QCRHRb','51nxDozw','maka\x20version','maka\x20version\x20--verbose','getProjectMeteorVersion','bright','maka\x20v','search','node\x20-v','platform','error','win32','version','apply','meteor','112498uMfkhw','warn','compareMakaToLatest','System\x27s\x20Meteor\x20Version\x20','172221RRgQFI','3829832hSvYTd','(((.+)+)+)+$','----------------------System----------------------------','fsi','1285NEqLzY','4.8.12','meteor.bat','\x20node\x20-v','940384UgizSX','----------------------Project----------------------------','Maka\x20','replace','create','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','Project\x27s\x20Meteor\x20Node\x20Version\x20','12030SAgERy','toString','System\x27s\x20Node\x20Version\x20','verbose','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22'];a94c=function(){return p;};return a94c();}const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a[m(0x1a6)]()[m(0x1bc)](m(0x1ca))[m(0x1a6)]()['constructor'](a94a)[m(0x1bc)](m(0x1ca));});a94a();import{execSync}from'child_process';import a94e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a94n(0x1ce)};Command[a94n(0x1a2)]({'name':a94n(0x1c1),'aliases':['v'],'usage':a94n(0x1b7),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a94n(0x1ac),'examples':[a94n(0x1bb),a94n(0x1b7),a94n(0x1b8)],'description':a94n(0x1b3)},async function(a,b){const o=a94n;try{const c=process[o(0x1be)]===o(0x1c0)?o(0x1cf):o(0x1c3);Log[o(0x1ad)](o(0x1a0)+pjson[o(0x1c1)]),await this[o(0x1cc)][o(0x1c6)]();if(b[o(0x1a8)]){await this[o(0x1cc)]['compareMakaToLatest'](),Log[o(0x1ba)](o(0x1cb));const d=this[o(0x1cc)]['getGlobalMeteorVersion']();Log[o(0x1ba)]((o(0x1c7)+d)['replace']('\x0a',''));const f=execSync(c+o(0x19d))[o(0x1a6)]()[o(0x1a1)](/\r?\n|\r/,'')['replace']('v','');Log[o(0x1ba)](o(0x1aa)+f);const g=execSync(o(0x1bd))[o(0x1a6)]()[o(0x1a1)](/\r?\n|\r/,'')['replace']('v','');a94e['gt'](f,g)?(Log[o(0x1c5)]('System\x27s\x20Node\x20Version\x20'+g),Log[o(0x1c5)](o(0x1ae)+g+o(0x1b0)+f+')')):Log['bright'](o(0x1a7)+g);if(this[o(0x1cc)][o(0x1b4)]()){Log[o(0x1ba)](o(0x19f));const h=this[o(0x1cc)][o(0x1b9)]();if(!a94e[o(0x1ab)](h))Log[o(0x1c5)]('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x1a1)]('\x0a',''));else a94e['gt'](d,h)?(Log[o(0x1c5)](o(0x1af)+h['replace']('\x0a','')),Log['warn']('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((o(0x1af)+h)['replace']('\x0a',''));const i=await this[o(0x1cc)]['getProjectsMeteorNodeVersion']();i==='N/A'?(Log[o(0x1c5)](o(0x1a4)+i),Log[o(0x1c5)](o(0x1a3))):Log[o(0x1ba)](o(0x1a4)+i),Log[o(0x1ba)](o(0x1a9));}}}catch(j){console[o(0x1bf)](j),process[o(0x1b1)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x11f))/0x1+parseInt(f(0x11b))/0x2*(-parseInt(f(0x11c))/0x3)+parseInt(f(0x11d))/0x4*(parseInt(f(0x118))/0x5)+-parseInt(f(0x119))/0x6+-parseInt(f(0x11a))/0x7*(parseInt(f(0x111))/0x8)+parseInt(f(0x112))/0x9*(parseInt(f(0x114))/0xa)+parseInt(f(0x115))/0xb*(parseInt(f(0x117))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xa7075));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x11e)]()['search'](h(0x116))[h(0x11e)]()[h(0x113)](a95a)['search'](h(0x116));});function a95c(){var i=['256mykaOp','toString','1124333ktRMBF','apply','13560ECYUxy','522oqJPMQ','constructor','221070WmPcTF','26794768hOaPXp','(((.+)+)+)+$','12ycTVNr','98905SWotnp','7988670HXuHoz','4249PGnVZl','95916MKdlAg','51CznfPc'];a95c=function(){return i;};return a95c();}a95a();export class UsageError{}export class UsageErrorWithSubs{}function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x110;var f=c[d];return f;},a95d(a,b);}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x1eb))/0x1+parseInt(f(0x1ea))/0x2*(-parseInt(f(0x1f4))/0x3)+parseInt(f(0x1f6))/0x4+parseInt(f(0x1ee))/0x5*(-parseInt(f(0x1f3))/0x6)+parseInt(f(0x1e8))/0x7*(-parseInt(f(0x1f0))/0x8)+parseInt(f(0x1f1))/0x9+parseInt(f(0x1ec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x441e4));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a['toString']()['search']('(((.+)+)+)+$')[h(0x1ed)]()[h(0x1f5)](a95a)[h(0x1e9)](h(0x1f2));});a95a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x1e8;var f=c[d];return f;},a95d(a,b);}export class NoMeteorAppFoundError{}function a95c(){var i=['34158vvtMIg','73569mNRVqb','constructor','1974628oAdhhu','91uebXVi','search','2xTFKXx','528178YBTNsY','6954280rTRNQr','toString','310suMEmP','apply','169072oKwRhB','2433024ArDFfu','(((.+)+)+)+$'];a95c=function(){return i;};return a95c();}export class NoMeteorFoundError{}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0x141))/0x1*(parseInt(f(0x146))/0x2)+-parseInt(f(0x14f))/0x3+-parseInt(f(0x148))/0x4*(-parseInt(f(0x14c))/0x5)+parseInt(f(0x149))/0x6+parseInt(f(0x14b))/0x7+parseInt(f(0x142))/0x8+parseInt(f(0x147))/0x9*(-parseInt(f(0x143))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x1ec20));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a[h(0x14d)]()[h(0x145)](h(0x14e))[h(0x14d)]()[h(0x144)](a96a)[h(0x145)](h(0x14e));});a96a(),process[a96i(0x14a)]['NODE_OPTIONS']='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0x140;var f=c[d];return f;},a96d(a,b);}function a96c(){var j=['toString','(((.+)+)+)+$','98793YDzJyQ','apply','20302HSCZtJ','1636424QPTJpt','10cuvGEW','constructor','search','8hBVduJ','5975577iYnoCj','9804fjxdDI','1463280TBiYgo','env','1456644ITHeoi','505ramsgm'];a96c=function(){return j;};return a96c();}import'./maka.js';
2
+ function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0x95;var f=c[d];return f;},a96d(a,b);}var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0x96))/0x1*(-parseInt(f(0xa2))/0x2)+-parseInt(f(0xa0))/0x3*(-parseInt(f(0x99))/0x4)+parseInt(f(0xa3))/0x5*(-parseInt(f(0xa4))/0x6)+-parseInt(f(0x9e))/0x7+parseInt(f(0x97))/0x8+-parseInt(f(0x9d))/0x9+-parseInt(f(0x95))/0xa*(-parseInt(f(0x98))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x6ca16));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a[h(0x9f)]()['search'](h(0xa1))['toString']()['constructor'](a96a)['search']('(((.+)+)+)+$');});a96a(),process[a96i(0x9b)][a96i(0x9a)]=a96i(0x9c);function a96c(){var j=['--experimental-modules\x20--no-warnings\x20--experimental-json-modules','4155399kWNewB','1072960DKatds','toString','2013WIcWfw','(((.+)+)+)+$','30574UnmPpj','5aMuqhY','4207884yxlhtp','apply','10hCzzPr','21uaHFea','3544392XSDdZL','5278218CafcmE','3084zkGsoI','NODE_OPTIONS','env'];a96c=function(){return j;};return a96c();}import'./maka.js';
@@ -1 +1 @@
1
- const a97v=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=-parseInt(r(0x1f4))/0x1*(parseInt(r(0x1d9))/0x2)+parseInt(r(0x214))/0x3*(parseInt(r(0x1e0))/0x4)+-parseInt(r(0x1fb))/0x5+parseInt(r(0x1c6))/0x6*(parseInt(r(0x1a7))/0x7)+parseInt(r(0x220))/0x8*(parseInt(r(0x1b1))/0x9)+parseInt(r(0x1b3))/0xa+parseInt(r(0x207))/0xb*(parseInt(r(0x1bb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x37f2f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a97d;if(c){const e=c[s(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const t=a97d;return a97a['toString']()[t(0x1fa)](t(0x1d5))[t(0x1c7)]()[t(0x210)](a97a)[t(0x1fa)](t(0x1d5));});a97a();function a97c(){const N=['bright','tableList','message','match','writeFileSync','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','help','maxOptsLength','params','410615HCsoWo','processAndRunGenerator','slice','chdir','root','generatorName','search','2210545zZaJVu','addGenerator\x20requires\x20a\x20Generator\x20instance','history.json','appPathPrefix','minOptsLength','list','findProjectDirectory','options','invoke','readHistory','aliases','join','7535uEJTiQ','_handler','\x20generator.\x20Skipping\x20undo.','Generator\x20requires\x20a\x20name','exit','addGenerator','error','push','find','constructor','assign','mustHaveMeteorInstalled','opts','3HhqBVP','validateMakaProject','setColorMode','getGlobalConfig','fsi','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Alias','where','checkWhere','Generators:','Server','pathFromProject','8XBqroL','keys','_undoHandler','shortDesc','findGeneratorByName','function','mustBeInMakaProject','Generator\x20format\x20is\x20incorrect','map','client','size','No\x20resource\x20name\x20specified','writeHistory','notice','21DOnLtJ','validateMeteorInstall','Both','handleGenerateError','Generator\x20','includes','shift','pop','maxArgLength','length','1316772IWWzrn','stringify','3184530nLSoNl','create','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20few\x20options','Description','.maka','_historyFilePath','5244XaaRpt','validateMakaSubscription','noNeedResource','resourceName','dir','Nothing\x20to\x20undo.','Too\x20few\x20arguments','No\x20undo\x20handler\x20defined\x20for\x20','deepen','Please\x20run\x20\x22maka\x20install\x20meteor\x22','LIGHT','463998ooVSWK','toString','lib','split','Location','sort','Too\x20many\x20arguments','warn','addToHistory','name','Too\x20many\x20options','Generator.create\x20requires\x20a\x20handler\x20function!','server','both','call','(((.+)+)+)+$','number','readFileSync','\x20not\x20found','2DhLOHr','apply','requiredEngines','forEach','details','bind','cwd','343144gKRTTt','localeCompare','minArgLength','colLocAnswer','existsSync','Generator\x20requires\x20a\x20handler\x20function','getHistoryFileSize','_genTransactionId','_generators','validateEngines','statSync'];a97c=function(){return N;};return a97c();}import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a97d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const u=a97d,c=process[u(0x1df)]();let d=null;try{process[u(0x1f7)](a),d=await b();}finally{process[u(0x1f7)](c);}return d;}export class Generator extends Tool{[a97v(0x202)];['_generators'];[a97v(0x1ba)];[a97v(0x222)];[a97v(0x1e7)];constructor(a,b,c){const w=a97v;super();if(!a)throw new Error(w(0x1b6));if(!a['name'])throw new Error(w(0x20a));if(typeof b!==w(0x225))throw new Error(w(0x1e5));this['_generators']=[],this[w(0x202)]=Object[w(0x211)]({},a),this[w(0x1cf)]=this[w(0x202)][w(0x1cf)],this[w(0x208)]=b['bind'](this);try{this[w(0x1ba)]=this[w(0x218)][w(0x21f)]({'pathParts':[w(0x1b9),w(0x1fd)]})||a97e[w(0x206)]('.',w(0x1b9),w(0x1fd));}catch(d){Log[w(0x20d)](d);}c&&(this['_undoHandler']=c[w(0x1de)](this));}[a97v(0x1e6)](){const x=a97v;if(a97f[x(0x1e4)](this[x(0x1ba)])){const a=a97f[x(0x1ea)](this[x(0x1ba)]);return a[x(0x1a3)];}return 0x0;}[a97v(0x204)](){const y=a97v;if(!a97f[y(0x1e4)](this[y(0x1ba)]))return[];return JSON['parse'](a97f[y(0x1d7)](this[y(0x1ba)],'utf-8'));}[a97v(0x1a5)](a){const z=a97v;this[z(0x1ba)]&&!a97f[z(0x1e4)](this[z(0x1ba)])&&a97f[z(0x1ef)](this[z(0x1ba)],JSON[z(0x1b2)]([])),a97f[z(0x1ef)](this[z(0x1ba)],JSON[z(0x1b2)](a,null,0x2));}[a97v(0x1ce)](a){const A=a97v;try{a?.['params']?.[A(0x213)]['config']&&delete a[A(0x1f3)][A(0x213)]['config'];const b=this[A(0x204)](),c={'generatorName':this[A(0x1cf)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x20e)](c);const d=Buffer['from'](JSON[A(0x1b2)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x1b0)]>0x0){b[A(0x1ad)]();}this[A(0x1a5)](b);}catch(f){Log[A(0x20d)](f);}}static[a97v(0x1b4)](a,b,c,d){const B=a97v;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(B(0x1d1));const e=new Generator(a,b);return c&&(e[B(0x222)]=c['bind'](e)),d=d||a97i,Object[B(0x211)](e,{'parent':d?.[B(0x202)]?.[B(0x1cf)]}),d[B(0x20c)](e),e;}async['undo'](){const C=a97v,a=this[C(0x204)](),b=a[C(0x1ae)]();if(!b){Log[C(0x1cd)](C(0x1c0));return;}const c=this['findGeneratorByName'](b[C(0x1f9)]);if(!c){Log[C(0x20d)]('Generator\x20'+b[C(0x1f9)]+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[C(0x222)]?(await c['_undoHandler'](b[C(0x1dd)]),this[C(0x1a5)](a)):Log[C(0x1cd)](C(0x1c2)+b[C(0x1f9)]+C(0x209));}[a97v(0x20c)](a){const D=a97v;if(!(a instanceof Generator))throw new Error(D(0x1fc));this[D(0x1e8)][D(0x20e)](a);}async[a97v(0x1f5)](a,b=[],c={}){const E=a97v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x1b0)]===0x0)throw E(0x227);let g=this['_generators'],h;for(const i of f){h=g[E(0x20f)](j=>j[E(0x1ee)](i));if(!h)throw E(0x1ab)+i+E(0x1d8);await this[E(0x1bc)](h),g=h[E(0x1e8)];}if(h)d=await h[E(0x203)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x20d)](j);}return d;}[a97v(0x224)](a){const F=a97v,b=a?.[F(0x1c9)](':');if(!b||b[F(0x1b0)]===0x0)return Log[F(0x20d)](F(0x227)),null;let c=this[F(0x1e8)],d;for(const e of b){d=c['find'](f=>f[F(0x1ee)](e));if(!d)return Log[F(0x20d)](F(0x1ab)+e+F(0x1d8)),null;c=d[F(0x1e8)];}return d||null;}async['invoke'](a,b){const G=a97v,c=a[G(0x1f6)]();b['resourceName']=c[0x0];try{const d=await this['fsi'][G(0x217)](),f=d['pallet']==='light'?ColorMode[G(0x1c5)]:ColorMode['DARK'];Log[G(0x216)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[G(0x1b0)]===0x0&&this[G(0x1e8)][G(0x1b0)]>=0x0,h=b[G(0x1f1)]||b['h'];if(g&&h){if(this['_generators'][G(0x1b0)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x202)][G(0x226)]){const i=this[G(0x215)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x202)][G(0x212)]){const j=this[G(0x1a8)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][G(0x1e2)]===G(0x1d6)){if(a[G(0x1b0)]<this['options'][G(0x1e2)]){Log[G(0x20d)](G(0x1c1));throw new UsageError();}}if(typeof this[G(0x202)]['maxArgLength']===G(0x1d6)){if(a['length']>this[G(0x202)][G(0x1af)]){Log[G(0x20d)](G(0x1cc));throw new UsageError();}}if(typeof this[G(0x202)][G(0x1ff)]===G(0x1d6)){if(Object[G(0x221)](b)[G(0x1b0)]<this[G(0x202)][G(0x1ff)]){Log[G(0x20d)](G(0x1b7));throw new UsageError();}}if(typeof this[G(0x202)][G(0x1f2)]==='number'){if(Object['keys'](b)[G(0x1b0)]>=this[G(0x202)][G(0x1f2)]){Log[G(0x20d)](G(0x1d0));throw new UsageError();}}}this[G(0x202)][G(0x1db)]&&this[G(0x1e9)](this['options'][G(0x1db)]);await this['validateParams'](a,b,this[G(0x202)]);if(!b[G(0x1be)]&&!this['options'][G(0x1bd)]){Log[G(0x20d)](G(0x1a4));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x1aa)](k),process[G(0x20b)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b[H(0x1f8)]&&!this[H(0x218)][H(0x201)]())throw new MustBeInProjectError();const l=b[H(0x1be)]?.['replace'](/\\/g,'/')['split']('/');!b[H(0x1bf)]&&(l?.['length']>0x1?(b['resourceName']=l[H(0x1ae)](),c[0x0]=b[H(0x1be)],b[H(0x1bf)]=l[H(0x1a1)](n=>{return paramCase(n);})['join'](a97e['sep'])):b['dir']='');if(this['options'][H(0x21c)]){if(!b[H(0x21b)]){const o={'type':H(0x200),'name':H(0x1e3),'message':H(0x1ca),'choices':[{'name':'Client','value':'client'},{'name':H(0x21e),'value':H(0x1d2)},{'name':H(0x1a9),'value':'both'}]},{colLocAnswer:p}=await Actions[H(0x202)](o);p?b['where']=p:b[H(0x21b)]=H(0x1d3);}const n=[H(0x1d3),H(0x1a2),'server'];if(!n[H(0x1ac)](b[H(0x21b)])){Log['error'](H(0x219));throw new UsageError();}switch(b['where']){case H(0x1d3):b['appPathPrefix']=H(0x1c8);break;case'server':b[H(0x1fe)]=H(0x1d2);break;case'client':b[H(0x1fe)]=H(0x1a2);break;default:b[H(0x1fe)]='';}}const m=await this['_handler'][H(0x1d4)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this['fsi'][H(0x1c3)](b)},'success':m?.['success'],'message':m?.[H(0x1ed)],'details':m?.[H(0x1dd)]}),m;}catch(q){this[H(0x1aa)](q);}});}['listGenerators'](){const I=a97v;this[I(0x1ec)](this[I(0x1e8)]);}['handleGenerateError'](a){const J=a97v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x1a6)](J(0x21d)),this[J(0x1ec)](this[J(0x1e8)]);else{if(a instanceof MustBeInProjectError)Log[J(0x20d)](J(0x1b5));else{if(a instanceof NoMeteorFoundError)Log[J(0x20d)](J(0x1f0)),Log[J(0x1a6)](J(0x1c4));else a instanceof NoMeteorAppFoundError&&Log[J(0x20d)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}['tableList'](a){const K=a97v,b=new a97g({});b[K(0x20e)](['Name',K(0x21a),K(0x1b8)]),a[K(0x1cb)]((c,d)=>{const L=K;return c[L(0x1cf)][L(0x1e1)](d['name']);})[K(0x1dc)](c=>{const M=K;b[M(0x20e)]([c[M(0x1cf)],c[M(0x205)](),c[M(0x223)]()]);}),Log[K(0x1eb)](b['toString']());}}
1
+ const a97v=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x13d;let f=c[d];return f;},a97d(a,b);}(function(a,b){const r=a97d,c=a();while(!![]){try{const d=parseInt(r(0x17d))/0x1+-parseInt(r(0x184))/0x2+-parseInt(r(0x1a2))/0x3*(-parseInt(r(0x1a0))/0x4)+parseInt(r(0x185))/0x5+-parseInt(r(0x17b))/0x6*(parseInt(r(0x1ad))/0x7)+parseInt(r(0x19b))/0x8*(parseInt(r(0x1a7))/0x9)+-parseInt(r(0x1ab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xdc45f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a97d;if(c){const e=c[s(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const t=a97d;return a97a[t(0x183)]()[t(0x198)](t(0x149))['toString']()[t(0x14d)](a97a)[t(0x198)]('(((.+)+)+)+$');});a97a();import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';function a97c(){const N=['config','validateMeteorInstall','assign','processAndRunGenerator','validateMakaProject','match','generatorName','history.json','maxOptsLength','function','\x20not\x20found','Generator\x20format\x20is\x20incorrect','push','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','_historyFilePath','apply','localeCompare','search','params','Generator.create\x20requires\x20some\x20options!','261848zBmzoO','.maka','minArgLength','server','Generator.create\x20requires\x20a\x20handler\x20function!','28omdVuG','sep','235401gGRLAD','undo','both','validateMakaSubscription','setColorMode','153pTEldj','pathFromProject','resourceName','No\x20resource\x20name\x20specified','4218660hEmWYB','checkWhere','98CsKLvO','Generator\x20requires\x20a\x20name','tableList','listGenerators','usage','addToHistory','number','findProjectDirectory','message','client','requiredEngines','shift','Generator\x20','cwd','call','length','light','forEach','readHistory','Description','(((.+)+)+)+$','mustBeInMakaProject','_undoHandler','success','constructor','details','writeHistory','stringify','_generators','find','shortDesc','Generators:','list','split','help','handleGenerateError','validateEngines','Too\x20many\x20options','where','opts','error','No\x20undo\x20handler\x20defined\x20for\x20','noNeedResource','name','_handler','Server','create','fsi','pop','Client','notice','minOptsLength','\x20generator.\x20Skipping\x20undo.','Too\x20few\x20arguments','writeFileSync','Alias','Nothing\x20to\x20undo.','map','exit','size','Location','bright','sort','There\x20is\x20no\x20Meteor\x20application\x20here','findGeneratorByName','invoke','join','existsSync','chdir','keys','244722oPnRWh','appPathPrefix','1658113rurncB','dir','options','DARK','statSync','lib','toString','3468828DBBkxe','4328640YOfgMb','warn'];a97c=function(){return N;};return a97c();}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const u=a97d,c=process[u(0x142)]();let d=null;try{process[u(0x179)](a),d=await b();}finally{process[u(0x179)](c);}return d;}export class Generator extends Tool{[a97v(0x17f)];[a97v(0x151)];[a97v(0x195)];[a97v(0x14b)];['_genTransactionId'];constructor(a,b,c){const w=a97v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(w(0x1ae));if(typeof b!==w(0x190))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[w(0x17f)]=Object[w(0x189)]({},a),this[w(0x160)]=this[w(0x17f)]['name'],this['_handler']=b['bind'](this);try{this[w(0x195)]=this[w(0x164)][w(0x1a8)]({'pathParts':[w(0x19c),w(0x18e)]})||a97e[w(0x177)]('.','.maka',w(0x18e));}catch(d){Log[w(0x15d)](d);}c&&(this[w(0x14b)]=c['bind'](this));}['getHistoryFileSize'](){const x=a97v;if(a97f[x(0x178)](this[x(0x195)])){const a=a97f[x(0x181)](this[x(0x195)]);return a[x(0x170)];}return 0x0;}['readHistory'](){const y=a97v;if(!a97f[y(0x178)](this[y(0x195)]))return[];return JSON['parse'](a97f['readFileSync'](this[y(0x195)],'utf-8'));}[a97v(0x14f)](a){const z=a97v;this[z(0x195)]&&!a97f[z(0x178)](this[z(0x195)])&&a97f['writeFileSync'](this['_historyFilePath'],JSON[z(0x150)]([])),a97f[z(0x16b)](this[z(0x195)],JSON[z(0x150)](a,null,0x2));}['addToHistory'](a){const A=a97v;try{a?.[A(0x199)]?.[A(0x15c)][A(0x187)]&&delete a[A(0x199)][A(0x15c)]['config'];const b=this[A(0x147)](),c={'generatorName':this['name'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x193)](c);const d=Buffer['from'](JSON[A(0x150)](b))[A(0x144)];while(d>MAX_HISTORY_SIZE&&b[A(0x144)]>0x0){b[A(0x140)]();}this['writeHistory'](b);}catch(f){Log[A(0x15d)](f);}}static[a97v(0x163)](a,b,c,d){const B=a97v;if(!a)throw new Error(B(0x19a));if(typeof b!=='function')throw new Error(B(0x19f));const e=new Generator(a,b);return c&&(e['_undoHandler']=c['bind'](e)),d=d||a97i,Object['assign'](e,{'parent':d?.['options']?.[B(0x160)]}),d['addGenerator'](e),e;}async[a97v(0x1a3)](){const C=a97v,a=this[C(0x147)](),b=a[C(0x165)]();if(!b){Log[C(0x186)](C(0x16d));return;}const c=this[C(0x175)](b[C(0x18d)]);if(!c){Log[C(0x15d)](C(0x141)+b[C(0x18d)]+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[C(0x14b)]?(await c['_undoHandler'](b[C(0x14e)]),this[C(0x14f)](a)):Log['warn'](C(0x15e)+b[C(0x18d)]+C(0x169));}['addGenerator'](a){const D=a97v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][D(0x193)](a);}async[a97v(0x18a)](a,b=[],c={}){const E=a97v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x144)]===0x0)throw E(0x192);let g=this[E(0x151)],h;for(const i of f){h=g[E(0x152)](j=>j[E(0x18c)](i));if(!h)throw E(0x141)+i+E(0x191);await this[E(0x1a5)](h),g=h['_generators'];}if(h)d=await h[E(0x176)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x15d)](j);}return d;}[a97v(0x175)](a){const F=a97v,b=a?.[F(0x156)](':');if(!b||b[F(0x144)]===0x0)return Log[F(0x15d)](F(0x192)),null;let c=this[F(0x151)],d;for(const e of b){d=c[F(0x152)](f=>f[F(0x18c)](e));if(!d)return Log[F(0x15d)]('Generator\x20'+e+F(0x191)),null;c=d[F(0x151)];}return d||null;}async[a97v(0x176)](a,b){const G=a97v,c=a['slice']();b[G(0x1a9)]=c[0x0];try{const d=await this[G(0x164)]['getGlobalConfig'](),f=d['pallet']===G(0x145)?ColorMode['LIGHT']:ColorMode[G(0x180)];Log[G(0x1a6)](f),await this[G(0x1a5)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[G(0x151)][G(0x144)]>=0x0,h=b[G(0x157)]||b['h'];if(g&&h){if(this['_generators'][G(0x144)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0x14a)]){const i=this[G(0x18b)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x17f)]['mustHaveMeteorInstalled']){const j=this[G(0x188)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===G(0x1b3)){if(a[G(0x144)]<this['options'][G(0x19d)]){Log[G(0x15d)](G(0x16a));throw new UsageError();}}if(typeof this[G(0x17f)]['maxArgLength']==='number'){if(a[G(0x144)]>this[G(0x17f)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options']['minOptsLength']===G(0x1b3)){if(Object['keys'](b)[G(0x144)]<this['options'][G(0x168)]){Log[G(0x15d)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[G(0x17f)]['maxOptsLength']===G(0x1b3)){if(Object[G(0x17a)](b)[G(0x144)]>=this['options'][G(0x18f)]){Log[G(0x15d)](G(0x15a));throw new UsageError();}}}this[G(0x17f)][G(0x13f)]&&this[G(0x159)](this['options'][G(0x13f)]);await this['validateParams'](a,b,this[G(0x17f)]);if(!b[G(0x1a9)]&&!this['options'][G(0x15f)]){Log[G(0x15d)](G(0x1aa));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[G(0x16f)](0x1);}return await inside(b[G(0x142)],async()=>{const H=G;try{if(!b['root']&&!this[H(0x164)][H(0x1b4)]())throw new MustBeInProjectError();const l=b['resourceName']?.['replace'](/\\/g,'/')[H(0x156)]('/');!b[H(0x17e)]&&(l?.[H(0x144)]>0x1?(b[H(0x1a9)]=l[H(0x165)](),c[0x0]=b['resourceName'],b[H(0x17e)]=l[H(0x16e)](n=>{return paramCase(n);})[H(0x177)](a97e[H(0x1a1)])):b['dir']='');if(this[H(0x17f)][H(0x1ac)]){if(!b[H(0x15b)]){const o={'type':H(0x155),'name':'colLocAnswer','message':H(0x171),'choices':[{'name':H(0x166),'value':H(0x13e)},{'name':H(0x162),'value':H(0x19e)},{'name':'Both','value':H(0x1a4)}]},{colLocAnswer:p}=await Actions[H(0x17f)](o);p?b['where']=p:b[H(0x15b)]=H(0x1a4);}const n=[H(0x1a4),H(0x13e),H(0x19e)];if(!n['includes'](b[H(0x15b)])){Log[H(0x15d)](H(0x194));throw new UsageError();}switch(b[H(0x15b)]){case H(0x1a4):b['appPathPrefix']=H(0x182);break;case H(0x19e):b[H(0x17c)]=H(0x19e);break;case H(0x13e):b[H(0x17c)]=H(0x13e);break;default:b[H(0x17c)]='';}}const m=await this[H(0x161)][H(0x143)](this,c,b);return this[H(0x1b2)]({'params':{'args':c,'opts':this[H(0x164)]['deepen'](b)},'success':m?.[H(0x14c)],'message':m?.[H(0x13d)],'details':m?.[H(0x14e)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a97v(0x1b0)](){const I=a97v;this[I(0x1af)](this['_generators']);}[a97v(0x158)](a){const J=a97v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x17f)];Log[J(0x1b1)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x167)](J(0x154)),this['tableList'](this[J(0x151)]);else{if(a instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x167)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[J(0x15d)](J(0x174));}}}['tableList'](a){const K=a97v,b=new a97g({});b[K(0x193)](['Name',K(0x16c),K(0x148)]),a[K(0x173)]((c,d)=>{const L=K;return c[L(0x160)][L(0x197)](d[L(0x160)]);})[K(0x146)](c=>{const M=K;b[M(0x193)]([c['name'],c['aliases'](),c[M(0x153)]()]);}),Log[K(0x172)](b[K(0x183)]());}}