@maka/maka-cli 4.7.12 → 4.7.14

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 (323) hide show
  1. package/.eslintrc.json +29 -29
  2. package/.mocharc.json +3 -3
  3. package/.vs/VSWorkspaceState.json +15 -0
  4. package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
  5. package/.vs/maka-cli-src/FileContentIndex/4c0a1daa-da96-4fc9-bf6f-ad5a9148b26c.vsidx +0 -0
  6. package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
  7. package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
  8. package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
  9. package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
  10. package/.vs/maka-cli-src/v17/.wsuo +0 -0
  11. package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
  12. package/.vs/slnx.sqlite +0 -0
  13. package/README.md +21 -21
  14. package/bundle/obf/package.json +127 -127
  15. package/bundle/obf/src/README.md +21 -21
  16. package/bundle/obf/src/command.js +1 -1
  17. package/bundle/obf/src/commands/_index.js +1 -1
  18. package/bundle/obf/src/commands/ai.js +1 -1
  19. package/bundle/obf/src/commands/aws/_index.js +1 -1
  20. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  21. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  23. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/build/_index.js +1 -1
  34. package/bundle/obf/src/commands/build/build.js +1 -1
  35. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  36. package/bundle/obf/src/commands/create.js +1 -1
  37. package/bundle/obf/src/commands/debug.js +1 -1
  38. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  39. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  40. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  41. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  42. package/bundle/obf/src/commands/game/_index.js +1 -1
  43. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  44. package/bundle/obf/src/commands/game/play.command.js +1 -1
  45. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  69. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  70. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  71. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  72. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  73. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  74. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  75. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  76. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  77. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  78. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  79. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  80. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  81. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/generate.js +1 -1
  83. package/bundle/obf/src/commands/get/_index.js +1 -1
  84. package/bundle/obf/src/commands/get/get.command.js +1 -1
  85. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/help.js +1 -1
  89. package/bundle/obf/src/commands/install.js +1 -1
  90. package/bundle/obf/src/commands/jsdoc.js +1 -1
  91. package/bundle/obf/src/commands/lint.js +1 -1
  92. package/bundle/obf/src/commands/login.js +1 -1
  93. package/bundle/obf/src/commands/logout.js +1 -1
  94. package/bundle/obf/src/commands/logs.js +1 -1
  95. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  96. package/bundle/obf/src/commands/murder.js +1 -1
  97. package/bundle/obf/src/commands/proxy.js +1 -1
  98. package/bundle/obf/src/commands/reconfig.js +1 -1
  99. package/bundle/obf/src/commands/run/_index.js +1 -1
  100. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/run/run.command.js +1 -1
  102. package/bundle/obf/src/commands/set/_index.js +1 -1
  103. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  104. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  105. package/bundle/obf/src/commands/set/set.command.js +1 -1
  106. package/bundle/obf/src/commands/ssh.js +1 -1
  107. package/bundle/obf/src/commands/ssl.js +1 -1
  108. package/bundle/obf/src/commands/test.js +1 -1
  109. package/bundle/obf/src/commands/version.js +1 -1
  110. package/bundle/obf/src/error.js +1 -1
  111. package/bundle/obf/src/exec.js +1 -1
  112. package/bundle/obf/src/generator.js +1 -1
  113. package/bundle/obf/src/generators/_index.js +1 -1
  114. package/bundle/obf/src/generators/api.js +1 -1
  115. package/bundle/obf/src/generators/collection.js +1 -1
  116. package/bundle/obf/src/generators/component.js +1 -1
  117. package/bundle/obf/src/generators/config.js +1 -1
  118. package/bundle/obf/src/generators/dbc.js +1 -1
  119. package/bundle/obf/src/generators/dockerfile.js +1 -1
  120. package/bundle/obf/src/generators/hook.js +1 -1
  121. package/bundle/obf/src/generators/kits/_index.js +1 -1
  122. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/kit.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  129. package/bundle/obf/src/generators/layout.js +1 -1
  130. package/bundle/obf/src/generators/maka.gen.js +1 -1
  131. package/bundle/obf/src/generators/methods.js +1 -1
  132. package/bundle/obf/src/generators/package.js +1 -1
  133. package/bundle/obf/src/generators/page.js +1 -1
  134. package/bundle/obf/src/generators/publish.js +1 -1
  135. package/bundle/obf/src/generators/route.js +1 -1
  136. package/bundle/obf/src/generators/service.js +1 -1
  137. package/bundle/obf/src/generators/services/_index.js +1 -1
  138. package/bundle/obf/src/generators/services/openssl.js +1 -1
  139. package/bundle/obf/src/generators/services/translation.js +1 -1
  140. package/bundle/obf/src/maka.js +1 -1
  141. package/bundle/obf/src/templates/meteor/api/api.js +11 -11
  142. package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
  143. package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
  144. package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
  145. package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
  146. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
  147. package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
  148. package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
  149. package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
  150. package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
  151. package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
  152. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
  153. package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
  154. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
  155. package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
  156. package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
  157. package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
  158. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
  159. package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
  160. package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
  161. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
  162. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
  163. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
  164. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
  165. package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
  166. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
  167. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
  168. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
  169. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
  170. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
  171. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
  172. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
  173. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
  174. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
  175. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
  176. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
  177. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
  178. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
  179. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
  180. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
  181. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
  182. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
  183. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
  184. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
  185. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
  186. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
  187. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
  188. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
  189. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
  190. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
  191. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
  192. package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
  193. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
  194. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
  195. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
  196. package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
  197. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
  198. package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
  199. package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
  200. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
  201. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
  202. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
  203. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
  204. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
  205. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
  206. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
  207. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
  208. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
  209. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
  210. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
  211. package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
  212. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
  213. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
  214. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
  215. package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
  216. package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
  217. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
  218. package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
  219. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
  220. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
  221. package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
  222. package/bundle/obf/src/templates/meteor/config/process.env +5 -5
  223. package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
  224. package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
  225. package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
  226. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
  227. package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
  228. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
  229. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
  230. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
  231. package/bundle/obf/src/templates/meteor/method/method.js +48 -48
  232. package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
  233. package/bundle/obf/src/templates/meteor/package/package.js +37 -37
  234. package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
  235. package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
  236. package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
  237. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
  238. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
  239. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
  240. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
  241. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
  242. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
  243. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
  244. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
  245. package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
  246. package/bundle/obf/src/templates/meteor/project/README.md +1 -1
  247. package/bundle/obf/src/templates/meteor/project/build/README +4 -4
  248. package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
  249. package/bundle/obf/src/templates/meteor/project/package.json +20 -20
  250. package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
  251. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
  252. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
  253. package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
  254. package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
  255. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
  256. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
  257. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
  258. package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
  259. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
  260. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
  261. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
  262. package/bundle/obf/src/templates/meteor/template/template.css +3 -3
  263. package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
  264. package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
  265. package/bundle/obf/src/templates/meteor/template/template.html +5 -5
  266. package/bundle/obf/src/templates/meteor/template/template.js +20 -20
  267. package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
  268. package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
  269. package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
  270. package/bundle/obf/src/templates/react/component/component.css +6 -6
  271. package/bundle/obf/src/templates/react/component/component.css.less +6 -6
  272. package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
  273. package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
  274. package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
  275. package/bundle/obf/src/templates/react/hook/hook.css +3 -3
  276. package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
  277. package/bundle/obf/src/templates/react/hook/hook.js +1 -1
  278. package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
  279. package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
  280. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
  281. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
  282. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
  283. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
  284. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
  285. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
  286. package/bundle/obf/src/templates/react/route/route.js +8 -8
  287. package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
  288. package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
  289. package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
  290. package/bundle/obf/src/templates/react/test/test.js +1 -1
  291. package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
  292. package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
  293. package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
  294. package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
  295. package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
  296. package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
  297. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
  298. package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
  299. package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
  300. package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
  301. package/bundle/obf/src/tool.js +1 -1
  302. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  303. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  304. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  305. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  306. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  307. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  308. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  309. package/bundle/obf/src/tools/https/https.class.js +1 -1
  310. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  311. package/bundle/obf/src/tools/log/log.class.js +1 -1
  312. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  313. package/bundle/obf/src/tools/options/options.class.js +1 -1
  314. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  315. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  316. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  317. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  318. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  319. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  320. package/jest.config.js +11 -11
  321. package/obfuscator.json +29 -29
  322. package/package.json +127 -127
  323. package/tsconfig.json +23 -23
Binary file
Binary file
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- <p align="center">
2
- <img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
3
- </p>
4
-
5
- ## About
6
- Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
7
- (i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
8
- NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
9
-
10
- Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
11
-
12
- ## Installation
13
- ```
14
- npm i -g @maka/maka-cli
15
- ```
16
-
17
- ## Getting Started
18
-
19
- Documentation has moved over to:
20
-
21
- [maka-cli.com](https://www.maka-cli.com/documentation#documentation)
1
+ <p align="center">
2
+ <img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
3
+ </p>
4
+
5
+ ## About
6
+ Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
7
+ (i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
8
+ NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
9
+
10
+ Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
11
+
12
+ ## Installation
13
+ ```
14
+ npm i -g @maka/maka-cli
15
+ ```
16
+
17
+ ## Getting Started
18
+
19
+ Documentation has moved over to:
20
+
21
+ [maka-cli.com](https://www.maka-cli.com/documentation#documentation)
@@ -1,127 +1,127 @@
1
- {
2
- "name": "@maka/maka-cli",
3
- "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.7.12",
5
- "type": "module",
6
- "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
- "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
8
- "homepage": "https://github.com/maka-io/maka-cli",
9
- "main": "./bundle/typescript/src/maka.js",
10
- "files": "",
11
- "bin": {
12
- "maka": "./bundle/obf/src/exec.js"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git://github.com/maka-io/maka-cli.git"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/maka-io/maka-cli/issues",
20
- "email": "mjmcee@gmail.com"
21
- },
22
- "scripts": {
23
- "lint": "eslint src/ --fix",
24
- "maka": "./typescript/src/maka.js",
25
- "test": "jest",
26
- "develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
27
- "build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
28
- "obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
29
- "prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
30
- "//": "## es-build, and package are still experimental",
31
- "es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
32
- "package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
33
- "distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
34
- "prepare": "husky install"
35
- },
36
- "author": "Matthew Campbell <mjmcee@gmail.com>",
37
- "license": "LICENSED",
38
- "dependencies": {
39
- "@aws-sdk/client-ec2": "^3.414.0",
40
- "@aws-sdk/client-ecr": "^3.414.0",
41
- "@aws-sdk/client-route-53": "^3.414.0",
42
- "@aws-sdk/client-route-53-domains": "^3.414.0",
43
- "blessed": "^0.1.81",
44
- "change-case": "^4.1.2",
45
- "cli-color": "^2.0.3",
46
- "cli-cursor": "^4.0.0",
47
- "cli-table": "^0.3.11",
48
- "delete": "^1.1.0",
49
- "dotenv": "^16.3.1",
50
- "ejs": "^3.1.9",
51
- "elegant-spinner": "^3.0.0",
52
- "eslint": "^8.49.0",
53
- "http-proxy": "^1.18.1",
54
- "humps": "^2.0.1",
55
- "inquirer": "^9.2.11",
56
- "jsonwebtoken": "^9.0.2",
57
- "latest-version": "^7.0.0",
58
- "minimist": "^1.2.8",
59
- "node-forge": "^1.3.1",
60
- "open": "^9.1.0",
61
- "rimraf": "^5.0.1",
62
- "semver": "^7.5.4",
63
- "single-line-log2": "^1.1.3",
64
- "slash": "^5.1.0",
65
- "spawn-args": "0.2.0",
66
- "tar": "^6.2.0",
67
- "uuid": "^9.0.1",
68
- "xtend": "^4.0.2"
69
- },
70
- "devDependencies": {
71
- "@aws-sdk/types": "^3.413.0",
72
- "@types/blessed": "^0.1.23",
73
- "@types/chai": "^4.3.6",
74
- "@types/change-case": "^2.3.1",
75
- "@types/cli-color": "^2.0.3",
76
- "@types/cli-table": "^0.3.2",
77
- "@types/ejs": "^3.1.2",
78
- "@types/eslint": "^8.44.2",
79
- "@types/fibers": "^3.1.2",
80
- "@types/http-proxy": "^1.17.12",
81
- "@types/humps": "^2.0.4",
82
- "@types/inquirer": "^9.0.3",
83
- "@types/jest": "^29.5.5",
84
- "@types/jsonwebtoken": "^9.0.3",
85
- "@types/meteor": "^2.9.4",
86
- "@types/minimist": "^1.2.2",
87
- "@types/node": "^20.6.2",
88
- "@types/react": "^18.2.21",
89
- "@types/react-dom": "^18.2.7",
90
- "@types/uuid": "^9.0.4",
91
- "@typescript-eslint/eslint-plugin": "^6.7.0",
92
- "@typescript-eslint/parser": "^6.7.0",
93
- "aws-sdk": "^2.1459.0",
94
- "chai": "^4.3.8",
95
- "chdir": "^0.0.0",
96
- "concat-stream": "^2.0.0",
97
- "concurrently": "^8.2.1",
98
- "esbuild": "^0.19.3",
99
- "eslint-config-airbnb-base": "^15.0.0",
100
- "eslint-plugin-import": "^2.28.1",
101
- "husky": "^8.0.3",
102
- "javascript-obfuscator": "^4.1.0",
103
- "jest": "^29.7.0",
104
- "mkdirp": "^3.0.1",
105
- "pkg": "^5.8.1",
106
- "ts-jest": "^29.1.1",
107
- "typescript": "^5.2.2",
108
- "wait-on": "^7.0.1"
109
- },
110
- "pkg": {
111
- "assets": [
112
- "package.json",
113
- ".npmrc",
114
- "bundle/typescript/src/commands",
115
- "bundle/typescript/src/generators",
116
- "bundle/typescript/src/templates",
117
- "bundle/typescript/src/tools"
118
- ],
119
- "scripts": [
120
- "typescript/**/*.js",
121
- "typescript/**/*.d.js"
122
- ]
123
- },
124
- "engines": {
125
- "node": ">=14.0.0"
126
- }
127
- }
1
+ {
2
+ "name": "@maka/maka-cli",
3
+ "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
+ "version": "4.7.14",
5
+ "type": "module",
6
+ "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
+ "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
8
+ "homepage": "https://github.com/maka-io/maka-cli",
9
+ "main": "./bundle/typescript/src/maka.js",
10
+ "files": "",
11
+ "bin": {
12
+ "maka": "./bundle/obf/src/exec.js"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/maka-io/maka-cli.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/maka-io/maka-cli/issues",
20
+ "email": "mjmcee@gmail.com"
21
+ },
22
+ "scripts": {
23
+ "lint": "eslint src/ --fix",
24
+ "maka": "./typescript/src/maka.js",
25
+ "test": "jest",
26
+ "develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
27
+ "build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
28
+ "obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
29
+ "prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
30
+ "//": "## es-build, and package are still experimental",
31
+ "es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
32
+ "package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
33
+ "distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
34
+ "prepare": "husky install"
35
+ },
36
+ "author": "Matthew Campbell <mjmcee@gmail.com>",
37
+ "license": "MIT",
38
+ "dependencies": {
39
+ "@aws-sdk/client-ec2": "^3.414.0",
40
+ "@aws-sdk/client-ecr": "^3.414.0",
41
+ "@aws-sdk/client-route-53": "^3.414.0",
42
+ "@aws-sdk/client-route-53-domains": "^3.414.0",
43
+ "blessed": "^0.1.81",
44
+ "change-case": "^4.1.2",
45
+ "cli-color": "^2.0.3",
46
+ "cli-cursor": "^4.0.0",
47
+ "cli-table": "^0.3.11",
48
+ "delete": "^1.1.0",
49
+ "dotenv": "^16.3.1",
50
+ "ejs": "^3.1.9",
51
+ "elegant-spinner": "^3.0.0",
52
+ "eslint": "^8.49.0",
53
+ "http-proxy": "^1.18.1",
54
+ "humps": "^2.0.1",
55
+ "inquirer": "^9.2.11",
56
+ "jsonwebtoken": "^9.0.2",
57
+ "latest-version": "^7.0.0",
58
+ "minimist": "^1.2.8",
59
+ "node-forge": "^1.3.1",
60
+ "open": "^9.1.0",
61
+ "rimraf": "^5.0.1",
62
+ "semver": "^7.5.4",
63
+ "single-line-log2": "^1.1.3",
64
+ "slash": "^5.1.0",
65
+ "spawn-args": "0.2.0",
66
+ "tar": "^6.2.0",
67
+ "uuid": "^9.0.1",
68
+ "xtend": "^4.0.2"
69
+ },
70
+ "devDependencies": {
71
+ "@aws-sdk/types": "^3.413.0",
72
+ "@types/blessed": "^0.1.23",
73
+ "@types/chai": "^4.3.6",
74
+ "@types/change-case": "^2.3.1",
75
+ "@types/cli-color": "^2.0.3",
76
+ "@types/cli-table": "^0.3.2",
77
+ "@types/ejs": "^3.1.2",
78
+ "@types/eslint": "^8.44.2",
79
+ "@types/fibers": "^3.1.2",
80
+ "@types/http-proxy": "^1.17.12",
81
+ "@types/humps": "^2.0.4",
82
+ "@types/inquirer": "^9.0.3",
83
+ "@types/jest": "^29.5.5",
84
+ "@types/jsonwebtoken": "^9.0.3",
85
+ "@types/meteor": "^2.9.4",
86
+ "@types/minimist": "^1.2.2",
87
+ "@types/node": "^20.6.2",
88
+ "@types/react": "^18.2.21",
89
+ "@types/react-dom": "^18.2.7",
90
+ "@types/uuid": "^9.0.4",
91
+ "@typescript-eslint/eslint-plugin": "^6.7.0",
92
+ "@typescript-eslint/parser": "^6.7.0",
93
+ "aws-sdk": "^2.1459.0",
94
+ "chai": "^4.3.8",
95
+ "chdir": "^0.0.0",
96
+ "concat-stream": "^2.0.0",
97
+ "concurrently": "^8.2.1",
98
+ "esbuild": "^0.19.3",
99
+ "eslint-config-airbnb-base": "^15.0.0",
100
+ "eslint-plugin-import": "^2.28.1",
101
+ "husky": "^8.0.3",
102
+ "javascript-obfuscator": "^4.1.0",
103
+ "jest": "^29.7.0",
104
+ "mkdirp": "^3.0.1",
105
+ "pkg": "^5.8.1",
106
+ "ts-jest": "^29.1.1",
107
+ "typescript": "^5.2.2",
108
+ "wait-on": "^7.0.1"
109
+ },
110
+ "pkg": {
111
+ "assets": [
112
+ "package.json",
113
+ ".npmrc",
114
+ "bundle/typescript/src/commands",
115
+ "bundle/typescript/src/generators",
116
+ "bundle/typescript/src/templates",
117
+ "bundle/typescript/src/tools"
118
+ ],
119
+ "scripts": [
120
+ "typescript/**/*.js",
121
+ "typescript/**/*.d.js"
122
+ ]
123
+ },
124
+ "engines": {
125
+ "node": ">=14.0.0"
126
+ }
127
+ }
@@ -1,21 +1,21 @@
1
- <p align="center">
2
- <img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
3
- </p>
4
-
5
- ## About
6
- Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
7
- (i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
8
- NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
9
-
10
- Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
11
-
12
- ## Installation
13
- ```
14
- npm i -g @maka/maka-cli
15
- ```
16
-
17
- ## Getting Started
18
-
19
- Documentation has moved over to:
20
-
21
- [maka-cli.com](https://www.maka-cli.com/documentation#documentation)
1
+ <p align="center">
2
+ <img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
3
+ </p>
4
+
5
+ ## About
6
+ Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
7
+ (i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
8
+ NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
9
+
10
+ Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
11
+
12
+ ## Installation
13
+ ```
14
+ npm i -g @maka/maka-cli
15
+ ```
16
+
17
+ ## Getting Started
18
+
19
+ Documentation has moved over to:
20
+
21
+ [maka-cli.com](https://www.maka-cli.com/documentation#documentation)
@@ -1 +1 @@
1
- function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x143;let f=c[d];return f;},a0d(a,b);}const a0o=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x183))/0x1*(-parseInt(m(0x151))/0x2)+parseInt(m(0x191))/0x3+parseInt(m(0x190))/0x4*(-parseInt(m(0x172))/0x5)+-parseInt(m(0x143))/0x6*(-parseInt(m(0x167))/0x7)+parseInt(m(0x154))/0x8+-parseInt(m(0x17b))/0x9+parseInt(m(0x168))/0xa*(-parseInt(m(0x18c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4b126));const a0b=(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;};}()),a0a=a0b(this,function(){const n=a0d;return a0a[n(0x15e)]()[n(0x147)](n(0x18e))['toString']()['constructor'](a0a)[n(0x147)](n(0x18e));});a0a();function a0c(){const x=['function','2242888CHFQwS','bright','_commands','validateMakaSubscription','usage','murder','keys','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMeteorInstall','options','toString','length','join','maybeProxyCommandToMeteor','maxOptsLength','slice','call','There\x20is\x20no\x20Meteor\x20application\x20here','Description','69566fnrQNw','20PaYbrF','Alias','DARK','Name','validateMakaProject','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','split','tableList','bind','Too\x20few\x20options','215lwMhtN','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','header','run','invoke','match','addCommand','mustBeInMakaProject','Too\x20few\x20arguments','198144GuwgcI','minArgLength','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','maxArgLength','mustHaveMeteorInstalled','processAndRunCommand','unshift','generate','89161MAkjxz','exit','validateParams','assign','name','Command\x20','push','pallet','minOptsLength','5886023IChqWu','sort','(((.+)+)+)+$','shortDesc','10228sscWcc','1066755VHxRXi','help','Command\x20requires\x20a\x20name','Command\x20not\x20found','366KAqVUC','number','_handler','forEach','search','LIGHT','notice','Command.create\x20requires\x20a\x20handler\x20function!','fsi','Too\x20many\x20arguments','Sub-Commands:','getGlobalConfig','create','error','6CNUlUZ','find'];a0c=function(){return x;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0o(0x15d)];['_commands'];constructor(a,b){const p=a0o;super();if(!a)throw new Error(p(0x16d));if(!a[p(0x187)])throw new Error(p(0x193));if(typeof b!==p(0x153))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[p(0x15d)]=Object['assign']({},a),this['name']=this['options'][p(0x187)],this[p(0x156)]=[],this[p(0x145)]=b[p(0x170)](this);}static[a0o(0x14f)](a,b,c){const q=a0o;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(q(0x14a));const d=new Command(a,b);return c=c||a0f,Object[q(0x186)](d,{'parent':c?.[q(0x15d)]?.[q(0x187)]}),c[q(0x178)](d),d;}[a0o(0x178)](a){const r=a0o;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[r(0x156)][r(0x189)](a);}async[a0o(0x175)](a,b){const s=a0o;try{a=a||[],b=b||{};try{const c=await this[s(0x14b)][s(0x14e)](),d=c[s(0x18a)]==='light'?ColorMode[s(0x148)]:ColorMode[s(0x16a)];Log['setColorMode'](d),await this[s(0x157)](this);}catch(f){Log[s(0x150)](f),process['exit'](0x0);}await this[s(0x176)](a,b);}catch(g){process[s(0x184)](0x1);}}async[a0o(0x176)](a,b){const t=a0o,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[t(0x15d)];try{if(this[t(0x15d)][t(0x187)]!==t(0x182)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[t(0x156)]['length']>=0x0,g=b[t(0x192)]||b['h'];if(f&&g){if(this['_commands'][t(0x15f)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][t(0x179)]){const h=this[t(0x16c)]();if(!h)throw new MustBeInProjectError();}if(this[t(0x15d)][t(0x17f)]){const i=this[t(0x15c)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[t(0x15d)]['minArgLength']===t(0x144)){if(a[t(0x15f)]<this[t(0x15d)][t(0x17c)]){Log[t(0x150)](t(0x17a));throw new UsageError();}}if(typeof this[t(0x15d)][t(0x17e)]===t(0x144)){if(a['length']>=this['options']['maxArgLength']){Log[t(0x150)](t(0x14c));throw new UsageError();}}if(typeof this[t(0x15d)][t(0x18b)]===t(0x144)){if(Object[t(0x15a)](b)[t(0x15f)]<this[t(0x15d)][t(0x18b)]){Log[t(0x150)](t(0x171));throw new UsageError();}}if(typeof this[t(0x15d)][t(0x162)]===t(0x144)){if(Object[t(0x15a)](b)[t(0x15f)]>=this[t(0x15d)][t(0x162)]){Log[t(0x150)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[t(0x185)](a,b,this['options']),_prevCmd=a[0x0];}await this[t(0x145)][t(0x164)](this,a,b);}catch(j){Log[t(0x158)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[t(0x149)](t(0x14d)),this['tableList'](this[t(0x156)]),Log[t(0x174)](t(0x173));else{if(j instanceof MustBeInProjectError)Log[t(0x150)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(j instanceof NoMeteorFoundError)Log[t(0x150)](t(0x17d)),Log[t(0x149)](t(0x15b));else j instanceof NoMeteorAppFoundError&&Log['error'](t(0x165));}}process[t(0x184)](0x1);}}[a0o(0x16f)](a){const u=a0o,b=new a0e({});b[u(0x189)]([u(0x16b),u(0x169),u(0x166)]),a[u(0x18d)]()[u(0x146)](c=>{const v=u;c[v(0x187)]!==v(0x159)&&c['name']!=='play'&&b[v(0x189)]([c[v(0x187)],c['aliases'](),c[v(0x18f)]()]);}),Log[u(0x155)](b[u(0x15e)]());}async[a0o(0x180)](a,b=[],c={}){const w=a0o;try{const d=a?.[w(0x16e)](':');if(!d||d[w(0x15f)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===w(0x182)||d[0x0]==='g'&&d[w(0x15f)]>0x1){const h=this[w(0x156)][w(0x152)](j=>j[w(0x177)](w(0x182)));if(!h)throw'Command\x20not\x20found';await this['validateMakaSubscription'](h);const i=d[w(0x163)](0x1)[w(0x160)](':');b[w(0x181)](i),await h[w(0x175)](b,c);return;}let f=this['_commands'],g;for(const j of d){g=f['find'](k=>k[w(0x177)](j));if(!g)try{await this[w(0x14b)][w(0x161)]();}catch(k){throw w(0x188)+j+'\x20not\x20found';}g&&(await this[w(0x157)](g),f=g[w(0x156)]);}if(g)await g[w(0x175)](b,c);else throw w(0x194);}catch(l){Log[w(0x150)](l),process[w(0x184)](0x1);}}}
1
+ function a0c(){const x=['notice','pallet','addCommand','_commands','425301OnYPar','Too\x20many\x20arguments','Command\x20requires\x20a\x20handler\x20function','play','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','invoke','fsi','validateMakaSubscription','forEach','Description','tableList','light','\x20not\x20found','maxOptsLength','split','minOptsLength','Command\x20format\x20is\x20incorrect','call','_handler','validateMeteorInstall','unshift','1116sEaMMe','Command.create\x20requires\x20a\x20handler\x20function!','aliases','setColorMode','(((.+)+)+)+$','mustBeInMakaProject','Too\x20few\x20options','push','name','9CifeJV','constructor','minArgLength','Command\x20not\x20found','length','number','There\x20is\x20no\x20Meteor\x20application\x20here','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','toString','Too\x20many\x20options','shortDesc','Please\x20run\x20\x22maka\x20install\x20meteor\x22','murder','header','bind','help','function','search','2yMuieQ','maxArgLength','1015ZwBZfC','error','8783958ACVccx','validateParams','Command.create\x20requires\x20some\x20options!','5408610gzhzBE','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20few\x20arguments','Sub-Commands:','run','generate','getGlobalConfig','LIGHT','sort','1483857wfxqiL','addCommand\x20requires\x20a\x20Command\x20instance','59576oJGbxH','exit','DARK','match','maybeProxyCommandToMeteor','options','617946FgPaEW','find','assign','keys','slice'];a0c=function(){return x;};return a0c();}const a0o=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=parseInt(m(0xfd))/0x1+-parseInt(m(0xed))/0x2*(-parseInt(m(0x10e))/0x3)+parseInt(m(0x123))/0x4*(parseInt(m(0xef))/0x5)+-parseInt(m(0xf1))/0x6+parseInt(m(0x105))/0x7+-parseInt(m(0xff))/0x8*(parseInt(m(0x12c))/0x9)+parseInt(m(0xf4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xcd118));const a0b=(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;};}()),a0a=a0b(this,function(){const n=a0d;return a0a[n(0xe3)]()['search'](n(0x127))['toString']()[n(0x12d)](a0a)[n(0xec)]('(((.+)+)+)+$');});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xe2;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0o(0x10d)];constructor(a,b){const p=a0o;super();if(!a)throw new Error(p(0xf5));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==p(0xeb))throw new Error(p(0x110));this['options']=Object[p(0x107)]({},a),this[p(0x12b)]=this[p(0x104)]['name'],this['_commands']=[],this['_handler']=b[p(0xe9)](this);}static['create'](a,b,c){const q=a0o;if(!a)throw new Error(q(0xf3));if(typeof b!=='function')throw new Error(q(0x124));const d=new Command(a,b);return c=c||a0f,Object[q(0x107)](d,{'parent':c?.[q(0x104)]?.[q(0x12b)]}),c[q(0x10c)](d),d;}[a0o(0x10c)](a){const r=a0o;if(!(a instanceof Command))throw new Error(r(0xfe));this[r(0x10d)][r(0x12a)](a);}async[a0o(0xf8)](a,b){const s=a0o;try{a=a||[],b=b||{};try{const c=await this[s(0x114)][s(0xfa)](),d=c[s(0x10b)]===s(0x119)?ColorMode[s(0xfb)]:ColorMode[s(0x101)];Log[s(0x126)](d),await this[s(0x115)](this);}catch(f){Log[s(0xf0)](f),process[s(0x100)](0x0);}await this[s(0x113)](a,b);}catch(g){process[s(0x100)](0x1);}}async['invoke'](a,b){const t=a0o,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[t(0x104)];try{if(this[t(0x104)][t(0x12b)]!==t(0xf9)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[t(0x10d)]['length']>=0x0,g=b[t(0xea)]||b['h'];if(f&&g){if(this['_commands'][t(0x130)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[t(0x104)][t(0x128)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[t(0x104)]['mustHaveMeteorInstalled']){const i=this[t(0x121)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][t(0x12e)]==='number'){if(a[t(0x130)]<this[t(0x104)]['minArgLength']){Log[t(0xf0)](t(0xf6));throw new UsageError();}}if(typeof this['options'][t(0xee)]===t(0x131)){if(a['length']>=this[t(0x104)]['maxArgLength']){Log['error'](t(0x10f));throw new UsageError();}}if(typeof this[t(0x104)][t(0x11d)]===t(0x131)){if(Object[t(0x108)](b)[t(0x130)]<this[t(0x104)][t(0x11d)]){Log[t(0xf0)](t(0x129));throw new UsageError();}}if(typeof this[t(0x104)][t(0x11b)]==='number'){if(Object['keys'](b)['length']>=this[t(0x104)][t(0x11b)]){Log[t(0xf0)](t(0xe4));throw new UsageError();}}}}b=await this[t(0xf2)](a,b,this[t(0x104)]),_prevCmd=a[0x0];}await this[t(0x120)][t(0x11f)](this,a,b);}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[t(0x10a)](t(0xf7)),this[t(0x118)](this[t(0x10d)]),Log[t(0xe8)](t(0xe2));else{if(j instanceof MustBeInProjectError)Log[t(0xf0)](t(0x112));else{if(j instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[t(0x10a)](t(0xe6));else j instanceof NoMeteorAppFoundError&&Log[t(0xf0)](t(0x132));}}process[t(0x100)](0x1);}}[a0o(0x118)](a){const u=a0o,b=new a0e({});b[u(0x12a)](['Name','Alias',u(0x117)]),a[u(0xfc)]()[u(0x116)](c=>{const v=u;c[v(0x12b)]!==v(0xe7)&&c[v(0x12b)]!==v(0x111)&&b['push']([c['name'],c[v(0x125)](),c[v(0xe5)]()]);}),Log['bright'](b[u(0xe3)]());}async['processAndRunCommand'](a,b=[],c={}){const w=a0o;try{const d=a?.[w(0x11c)](':');if(!d||d[w(0x130)]===0x0)throw w(0x11e);if(d[0x0]===w(0xf9)||d[0x0]==='g'&&d[w(0x130)]>0x1){const h=this[w(0x10d)][w(0x106)](j=>j[w(0x102)]('generate'));if(!h)throw w(0x12f);await this[w(0x115)](h);const i=d[w(0x109)](0x1)['join'](':');b[w(0x122)](i),await h[w(0xf8)](b,c);return;}let f=this[w(0x10d)],g;for(const j of d){g=f[w(0x106)](k=>k[w(0x102)](j));if(!g)try{await this['fsi'][w(0x103)]();}catch(k){throw'Command\x20'+j+w(0x11a);}g&&(await this[w(0x115)](g),f=g[w(0x10d)]);}if(g)await g['run'](b,c);else throw w(0x12f);}catch(l){Log[w(0xf0)](l),process[w(0x100)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x179))/0x1+parseInt(f(0x177))/0x2+-parseInt(f(0x178))/0x3+-parseInt(f(0x17c))/0x4*(parseInt(f(0x16f))/0x5)+-parseInt(f(0x17d))/0x6*(parseInt(f(0x174))/0x7)+-parseInt(f(0x171))/0x8*(parseInt(f(0x176))/0x9)+parseInt(f(0x175))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xef65e));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x173)]()[h(0x172)](h(0x17b))[h(0x173)]()[h(0x17a)](a1a)[h(0x172)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x16f;var f=c[d];return f;},a1d(a,b);}import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1c(){var i=['search','toString','28DOtNKW','72876820rEeYiA','25731GgdyTG','2198336sPDLrG','4016172oyxQNM','1730205irYBud','constructor','(((.+)+)+)+$','12XiFUTh','2773086ZVGeGy','3061285PNDGVR','apply','1824iwkrAb'];a1c=function(){return i;};return a1c();}import'./proxy.js';import'./lint.js';import'./ai.js';
1
+ (function(a,b){var f=a94d,c=a();while(!![]){try{var d=-parseInt(f(0xde))/0x1+-parseInt(f(0xe8))/0x2*(-parseInt(f(0xe1))/0x3)+parseInt(f(0xe0))/0x4+-parseInt(f(0xe5))/0x5+parseInt(f(0xe6))/0x6+parseInt(f(0xe4))/0x7+-parseInt(f(0xe3))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xcb522));var a94b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a94d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){var h=a94d;return a94a[h(0xe2)]()[h(0xe7)](h(0xdd))[h(0xe2)]()['constructor'](a94a)['search']('(((.+)+)+)+$');});a94a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0xdd;var f=c[d];return f;},a94d(a,b);}function a94c(){var i=['7209775FWvljL','3188046sAtWKM','search','32XUcutS','(((.+)+)+)+$','284541TkEebn','apply','3220532NkNVPA','280866uHPoSj','toString','15067384gjZRBA','11258065xxYgVo'];a94c=function(){return i;};return a94c();}import'./ai.js';
@@ -1 +1 @@
1
- const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x118))/0x1+-parseInt(h(0x133))/0x2*(-parseInt(h(0x114))/0x3)+-parseInt(h(0x119))/0x4+-parseInt(h(0x10f))/0x5*(-parseInt(h(0x11b))/0x6)+-parseInt(h(0x117))/0x7+parseInt(h(0x10c))/0x8+-parseInt(h(0x130))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x9f145));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x11f)]()[i(0x123)](i(0x10e))[i(0x11f)]()[i(0x120)](a2a)[i(0x123)](i(0x10e));});function a2c(){const n=['constructor','question','fsi','search','cacert','error','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','create','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','isFile','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','getGlobalConfig','log','Using\x20OpenAI\x20Key\x20','toLowerCase','createInterface','12107142OXndtl','text','exit','965372YsAlDA','notice','Using\x20CA\x20Cert\x20','data','openai','3672696LltanY','askGPT','(((.+)+)+)+$','255jkFMmr','choices','bright','cert','ChatGPT\x20style\x20AI\x20interface','3QWcToH','openapikey','message','3013717EDzrMP','1042856KTqAxz','2021240PodmNC','You:\x20','111534dDMniv','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','GPT:\x20','trim','toString'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x10c;let f=c[d];return f;},a2d(a,b);}import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x12f)]({'input':process['stdin'],'output':process['stdout']});c[j(0x121)](j(0x11a),async d=>{const k=j;if(d[k(0x12e)]()===k(0x132)){c['close']();return;}try{const e=await HTTPS[k(0x10d)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x136)]);if(f[k(0x125)])throw new Error(f['error'][k(0x116)]);Log[k(0x111)](k(0x11d)+f?.[k(0x110)][0x0]?.[k(0x131)][k(0x11e)]());}catch(g){Log['error'](g),process[k(0x132)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x127)]({'name':'ai','description':a2l(0x113),'validOpts':[a2l(0x124),a2l(0x115)],'shortDesc':a2l(0x113),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x124)]&&(this[m(0x122)][m(0x129)](b[m(0x124)])?(c=b[m(0x124)],Log[m(0x134)](m(0x135)+c)):Log[m(0x125)](m(0x128)+c));const d=await this[m(0x122)][m(0x12b)]();if(d[m(0x112)]){if(this[m(0x122)][m(0x129)](d[m(0x112)]))c=d[m(0x112)];else throw Log['error'](m(0x126)+c);}let f='';if(b[m(0x115)])f=b['openapikey'],Log[m(0x134)](m(0x12d)+f);else{if(d[m(0x137)])f=d[m(0x137)];else throw Log[m(0x125)](m(0x11c));}console[m(0x12c)](m(0x12a)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[m(0x132)](0x1);}});
1
+ const a1l=a1d;(function(a,b){const h=a1d,c=a();while(!![]){try{const d=-parseInt(h(0x90))/0x1*(parseInt(h(0x98))/0x2)+parseInt(h(0xa1))/0x3+parseInt(h(0x82))/0x4*(parseInt(h(0xa0))/0x5)+parseInt(h(0x9f))/0x6*(-parseInt(h(0x8a))/0x7)+parseInt(h(0xa2))/0x8+parseInt(h(0x8f))/0x9*(parseInt(h(0xa7))/0xa)+-parseInt(h(0x88))/0xb*(parseInt(h(0xa4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe28b3));function a1c(){const n=['4514930aSsTxk','cacert','notice','search','isFile','exit','stdin','40nrkMCk','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','Using\x20OpenAI\x20Key\x20','Using\x20CA\x20Cert\x20','askGPT','toLowerCase','124641DhKBcp','parse','4988942gGEvQC','ChatGPT\x20style\x20AI\x20interface','getGlobalConfig','cert','log','9kyZAOk','7NxZyDf','constructor','GPT:\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','fsi','close','stdout','openapikey','249406sFzgeA','text','createInterface','error','openai','trim','toString','6axtmVZ','156245tFrHqa','2323338doRtdr','10248464sezgoU','You:\x20','324kQDDfj','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','(((.+)+)+)+$'];a1c=function(){return n;};return a1c();}const a1b=(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;};}()),a1a=a1b(this,function(){const i=a1d;return a1a[i(0x9e)]()[i(0x7e)](i(0xa6))[i(0x9e)]()[i(0x91)](a1a)[i(0x7e)](i(0xa6));});a1a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a1e from'readline';function a1d(a,b){const c=a1c();return a1d=function(d,e){d=d-0x7d;let f=c[d];return f;},a1d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a1d,c=a1e[j(0x9a)]({'input':process[j(0x81)],'output':process[j(0x96)]});c['question'](j(0xa3),async d=>{const k=j;if(d[k(0x87)]()==='exit'){c[k(0x95)]();return;}try{const e=await HTTPS[k(0x86)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x89)](e['data']);if(f[k(0x9b)])throw new Error(f[k(0x9b)]['message']);Log['bright'](k(0x92)+f?.['choices'][0x0]?.[k(0x99)][k(0x9d)]());}catch(g){Log['error'](g),process[k(0x80)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a1l(0xa8),a1l(0x97)],'shortDesc':a1l(0x8b),'isPro':!![]},async function(a,b){const m=a1l;try{let c='';b[m(0xa8)]&&(this[m(0x94)][m(0x7f)](b['cacert'])?(c=b[m(0xa8)],Log['notice'](m(0x85)+c)):Log[m(0x9b)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[m(0x94)][m(0x8c)]();if(d['cert']){if(this[m(0x94)]['isFile'](d['cert']))c=d[m(0x8d)];else throw Log[m(0x9b)](m(0x93)+c);}let f='';if(b[m(0x97)])f=b[m(0x97)],Log[m(0x7d)](m(0x84)+f);else{if(d[m(0x9c)])f=d[m(0x9c)];else throw Log[m(0x9b)](m(0x83));}console[m(0x8e)](m(0xa5)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[m(0x80)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xae))/0x1*(-parseInt(f(0xac))/0x2)+parseInt(f(0xad))/0x3*(-parseInt(f(0xa6))/0x4)+parseInt(f(0xb1))/0x5+parseInt(f(0xaa))/0x6*(-parseInt(f(0xaf))/0x7)+-parseInt(f(0xb3))/0x8+-parseInt(f(0xa7))/0x9+parseInt(f(0xa9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x52ae8));function a3c(){var i=['(((.+)+)+)+$','92ShVFnL','825555hcCfVa','3967bvryRS','574YfnWBE','search','2847320yCCVth','apply','2339392wYZgof','8UyCHFb','3782835XrRrZX','toString','14398990KEVgvh','43176JdihTG'];a3c=function(){return i;};return a3c();}function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xa6;var f=c[d];return f;},a3d(a,b);}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xa8)]()[h(0xb0)](h(0xab))['toString']()['constructor'](a3a)[h(0xb0)](h(0xab));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a15d,c=a();while(!![]){try{var d=parseInt(f(0x126))/0x1+parseInt(f(0x120))/0x2*(parseInt(f(0x11a))/0x3)+-parseInt(f(0x127))/0x4*(-parseInt(f(0x11f))/0x5)+-parseInt(f(0x11c))/0x6+parseInt(f(0x11b))/0x7*(-parseInt(f(0x11d))/0x8)+-parseInt(f(0x125))/0x9*(parseInt(f(0x121))/0xa)+parseInt(f(0x128))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x4c37d));var a15b=(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;};}()),a15a=a15b(this,function(){var g=a15d;return a15a[g(0x124)]()[g(0x122)](g(0x123))[g(0x124)]()[g(0x11e)](a15a)[g(0x122)](g(0x123));});a15a();function a15d(a,b){var c=a15c();return a15d=function(d,e){d=d-0x11a;var f=c[d];return f;},a15d(a,b);}import'./aws.command.js';function a15c(){var h=['243AnYUQG','622591giNSea','4pAKUUv','3648876qbDyJb','1779IUxPTp','7cJuAsz','1319928qJDcpY','524632CATCli','constructor','795310aETPOY','204NcFUrN','213370SbAtLd','search','(((.+)+)+)+$','toString'];a15c=function(){return h;};return a15c();}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xf0;let f=c[d];return f;},a4d(a,b);}function a4c(){const j=['(((.+)+)+)+$','aws','search','create','347570OieRIw','maka\x20aws:<sub-command>','5glrxPe','2569509tIIroC','4AqBHly','8EShCXA','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','370746PxKJvy','820533bYeBzf','5637340VWBgVI','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','apply','13665580pRybzn','toString','3190173aQzgSr'];a4c=function(){return j;};return a4c();}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xf5))/0x1*(-parseInt(f(0xf3))/0x2)+-parseInt(f(0xfb))/0x3+parseInt(f(0xf7))/0x4*(parseInt(f(0xfc))/0x5)+parseInt(f(0xfa))/0x6+parseInt(f(0x101))/0x7*(parseInt(f(0xf8))/0x8)+-parseInt(f(0xf6))/0x9+-parseInt(f(0xff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x8fa41));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x100)]()['search']('(((.+)+)+)+$')[h(0x100)]()['constructor'](a4a)[h(0xf1)](h(0x102));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xf2)]({'name':a4i(0xf0),'usage':a4i(0xf4),'validOpts':[],'isPro':!![],'shortDesc':a4i(0xf9),'description':a4i(0xfd)},async function(){throw UsageError;});export default AWSCommand;
1
+ function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x86;let f=c[d];return f;},a2d(a,b);}const a2i=a2d;(function(a,b){const f=a2d,c=a();while(!![]){try{const d=parseInt(f(0x90))/0x1+-parseInt(f(0x8d))/0x2+parseInt(f(0x92))/0x3*(-parseInt(f(0x96))/0x4)+parseInt(f(0x8c))/0x5*(-parseInt(f(0x93))/0x6)+parseInt(f(0x87))/0x7+parseInt(f(0x95))/0x8+parseInt(f(0x86))/0x9*(-parseInt(f(0x89))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe3a8b));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a2d;if(c){const e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const h=a2d;return a2a[h(0x8e)]()[h(0x88)](h(0x91))[h(0x8e)]()[h(0x8f)](a2a)['search']('(((.+)+)+)+$');});a2a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a2c(){const j=['728180KINspC','2951728XNDiZS','toString','constructor','1242998RLkfTz','(((.+)+)+)+$','984yCSUoq','24QrGoga','maka\x20aws:<sub-command>','6096088zZGKCx','3532OctfwC','36837bGWlnb','10189242sJMKlH','search','440ELriOS','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','apply'];a2c=function(){return j;};return a2c();}const AWSCommand=Command['create']({'name':'aws','usage':a2i(0x94),'validOpts':[],'isPro':!![],'shortDesc':a2i(0x8a),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x112))/0x1+-parseInt(i(0x113))/0x2*(-parseInt(i(0x115))/0x3)+-parseInt(i(0x117))/0x4+parseInt(i(0x116))/0x5+-parseInt(i(0x11d))/0x6*(parseInt(i(0x11c))/0x7)+parseInt(i(0x114))/0x8+-parseInt(i(0x11e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x4f06c));const a5b=(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;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x122)]()[j(0x118)](j(0x111))[j(0x122)]()['constructor'](a5a)['search'](j(0x111));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x10f;let f=c[d];return f;},a5d(a,b);}function a5c(){const m=['Instance\x20not\x20found','toString','chooseInstance','create','maka\x20aws:create-hosted-zone\x20--domain=example.com','error','(((.+)+)+)+$','273804viGiZq','14884IAHGGE','1913744YRDgNV','222CgdoPE','2339750EwDWAs','2475972FZkSgJ','search','domain','Set\x20hosted\x20zone\x20to\x20an\x20instance?','chz','602aTYlKf','3918AfsvAP','4795533xAcJIX','publicIp','maka\x20aws:create-hosted-zone'];a5c=function(){return m;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5k(0x124)]({'name':'create-hosted-zone','aliases':[a5k(0x11b)],'usage':a5k(0x120),'requiredOpts':[a5k(0x119)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a5k(0x10f),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a5k;try{const c=b['domain'],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions['confirm'](l(0x11a));if(f){const g=await d[l(0x123)]();if(g?.['id']){if(!g['publicIp'])throw Log[l(0x110)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d['linkEC2ToRoute53'](g['id'],g[l(0x11f)],c);}else throw l(0x121);}}catch(h){h&&Log[l(0x110)](h),process['exit'](0x0);}},a5e);
1
+ const a3l=a3d;(function(a,b){const i=a3d,c=a();while(!![]){try{const d=-parseInt(i(0x103))/0x1*(-parseInt(i(0x110))/0x2)+parseInt(i(0xfe))/0x3+parseInt(i(0xf9))/0x4*(-parseInt(i(0x108))/0x5)+-parseInt(i(0x105))/0x6+-parseInt(i(0x112))/0x7+parseInt(i(0xf7))/0x8+parseInt(i(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe11ca));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a3d;if(c){const e=c[j(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const k=a3d;return a3a[k(0x102)]()[k(0x106)](k(0xfd))[k(0x102)]()[k(0x109)](a3a)[k(0x106)](k(0xfd));});a3a();import a3e from'./aws.command.js';function a3c(){const n=['domain','5416560DjUmDz','search','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','2279315dYDOwP','constructor','maka\x20aws:chz\x20--domain=example.com','maka\x20aws:create-hosted-zone\x20--domain=example.com','confirm','23906205zkuTdF','error','exit','14682rZYuDR','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','12030480kamJns','route53CreateHostedZone','202992usmlax','create-hosted-zone','8sEiIVa','chooseInstance','linkEC2ToRoute53','create','(((.+)+)+)+$','4924281Kvpzdd','chz','apply','publicIp','toString','18FlNCBN'];a3c=function(){return n;};return a3c();}import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xf6;let f=c[d];return f;},a3d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a3l(0xfc)]({'name':a3l(0xf8),'aliases':[a3l(0xff)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a3l(0x104)],'validOpts':[],'shortDesc':a3l(0x107),'examples':[a3l(0x10b),a3l(0x10a)]},async function(a,b){const m=a3l;try{const c=b['domain'],d=new AWS();d[m(0xf6)](c);const f=await Actions[m(0x10c)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0xfa)]();if(g?.['id']){if(!g[m(0x101)])throw Log[m(0x10e)](m(0x111));d[m(0xfb)](g['id'],g['publicIp'],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[m(0x10e)](h),process[m(0x10f)](0x0);}},a3e);
@@ -1 +1 @@
1
- const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x175))/0x1*(-parseInt(ae(0x169))/0x2)+parseInt(ae(0x188))/0x3*(-parseInt(ae(0x138))/0x4)+parseInt(ae(0x194))/0x5+-parseInt(ae(0x15d))/0x6*(parseInt(ae(0x191))/0x7)+-parseInt(ae(0x18e))/0x8+parseInt(ae(0x17c))/0x9+parseInt(ae(0x13c))/0xa*(parseInt(ae(0x13e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x47150));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x162)]()[ag(0x15a)]('(((.+)+)+)+$')[ag(0x162)]()[ag(0x185)](a6a)[ag(0x15a)](ag(0x18c));});a6a();import a6e from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x131;let f=c[d];return f;},a6d(a,b);}import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a6c(){const au=['getMakaProjectConfig','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','env','bright','desc','1037962ermBLc','sgId','Setting\x20Subnet\x20ID\x20to\x20','split','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','amazon','create-instance','\x20AZONE:\x20','ID:\x20','environment','Subnet:\x20','maka\x20aws:create-instance','1hioBYe','push','subnetId','readFileSync','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','amiId','success','79605VisWNV','ec2describeKeys','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','join','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Setting\x20the\x20key-pair\x20to:\x20','user-data','getAppConfigPath','constructor','getSecurityGroups','log','61713Ccdkxe','exit','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','maka\x20aws:create-instance\x20--env\x20dev','(((.+)+)+)+$','Web\x20App','3470120ydOYnj','\x20SGID:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','56tBwHtr','create','created-by','873145DFMyWA','ImageID:','\x20SG\x20NAME:\x20','getConfigFromShorthand','Instance\x20Count:\x20','cider','createFile','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','getTime','maka-cli','**\x20Available\x20Subnets\x20**','52fUaKjB','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','isFile','7974210Powumm','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','11ZDITaI','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20:\x20','alias','Creating\x20user\x20data\x20file\x20in\x20','Remove\x20the\x20security\x20group\x20','Setting\x20SG\x20ID\x20to:\x20','deleteKeyPair','string','deleteSecurityGroup','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','notice','error','\x20SUBNETID:\x20','Desc','EC2\x20Name:\x20[','number','confirm','unlinkSync','sort','date','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Create\x20new\x20AWS\x20instance','t3.micro','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','parse','**\x20Available\x20key-pairs\x20**','search','apply','name','380652XruLlf','fsi','cidr','chooseVPC','forEach','toString','ask'];a6c=function(){return au;};return a6c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x192)]({'name':a6ah(0x16f),'aliases':['ci'],'usage':a6ah(0x174),'examples':[a6ah(0x18b),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x166)}],'validOpts':[],'shortDesc':a6ah(0x155),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x164)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x15e)][ai(0x197)](b[ai(0x166)]),i=this[ai(0x15e)][ai(0x184)](h),j=g+'-'+h,k=await Actions[ai(0x163)](ai(0x14e)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x150)](ai(0x154),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x17b)](ai(0x182)+r);}else try{Log['notice'](ai(0x159));const A=r?r:k,B=await d[ai(0x17d)]({'suggestion':A}),C=await Actions[ai(0x163)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x14b)](ai(0x16d)),Log[ai(0x14a)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x15c)],Log['success'](aj(0x182)+r));});}catch(D){Log[ai(0x14b)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x150)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x160)]():l;u=await Actions[ai(0x163)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x163)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F[ai(0x16c)](',');await d['ec2createSG']({'description':ai(0x18d),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x186)](u);if(I===''){Log[ai(0x14a)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x161)](function(L){const ak=ai;L[ak(0x15c)]===u?Log[ak(0x14a)](ak(0x171)+L['id']+ak(0x196)+L[ak(0x15c)]+ak(0x18f)+L[ak(0x16a)]):Log[ak(0x167)]('ID:\x20'+L['id']+ak(0x196)+L[ak(0x15c)]+ak(0x18f)+L['sgId']);});const K=await Actions[ai(0x163)](ai(0x190)+H+']\x20')||H[ai(0x162)]();J[ai(0x161)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x16a)],Log[al(0x17b)](al(0x144)+m+'\x0a'));});}else m=I,Log[ai(0x17b)](ai(0x144)+m+'\x0a');if(m==='')throw Log[ai(0x14b)](ai(0x139));}catch(L){Log[ai(0x14b)](L);}try{const M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x134)+M+ai(0x181))[ai(0x162)](),O=JSON[ai(0x158)](N),P=[],Q=[];O[ai(0x161)](function(S){const am=ai;if(S[am(0x141)]===am(0x16e)){const T=S['Desc'][am(0x16c)]('build\x20on\x20')[0x1];P[am(0x176)]({'amiId':S['ID'],'desc':S[am(0x14d)],'date':T});}}),P[ai(0x152)](function(S,T){const an=ai;return new Date(T[an(0x153)])[an(0x135)]()-new Date(S[an(0x153)])['getTime']();}),P[ai(0x161)](function(S,T){const ao=ai;Q[ao(0x176)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0x168)]});}),Q[ai(0x161)](function(S){const ap=ai;console[ap(0x187)](ap(0x171)+S['id']+'\x20AMIID:\x20'+S[ap(0x17a)]+'\x20DESCRIPTION:\x20'+S[ap(0x168)]);});const R=await Actions[ai(0x163)](ai(0x157))||'0';Q[ai(0x161)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x140)+S['desc']));});if(n==='')throw Log[ai(0x14b)](ai(0x139));}catch(S){Log[ai(0x14b)](S);}try{Log[ai(0x14a)](ai(0x137));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x162)](),U=JSON['parse'](T),V=[];U[ai(0x161)](function(X,Y){const ar=ai;V[ar(0x176)]({'id':Y,'cidr':X[ar(0x132)],'az':X['az'],'subnetId':X[ar(0x177)]});}),V[ai(0x161)](function(X){const as=ai;console[as(0x187)]('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x15f)]+as(0x170)+X['az']+as(0x14c)+X[as(0x177)]);});const W=await Actions[ai(0x163)](ai(0x13f))||'0';V[ai(0x161)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x17b)](at(0x16b)+p));});if(p==='')throw Log[ai(0x14b)](ai(0x139));}catch(X){Log[ai(0x14b)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x163)](ai(0x179))||'1:1',Z=Y['split'](':')[0x0],a0=Y[ai(0x16c)](':')[0x1];typeof parseInt(Z)===ai(0x14f)&&typeof parseInt(a0)===ai(0x14f)&&Log[ai(0x17b)](ai(0x13d)+Z+':'+a0);}catch(a1){Log[ai(0x14b)](a1);}try{const a2=await Actions[ai(0x163)](ai(0x165))||ai(0x156);typeof a2===ai(0x146)&&(o=a2);}catch(a3){Log[ai(0x14b)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x13a),![]);a4&&(x=a6f[ai(0x180)](i,ai(0x183)),Log[ai(0x14a)](ai(0x142)+x),await this['fsi'][ai(0x133)]({'filePath':x,'data':''}),await Actions[ai(0x150)](ai(0x149)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x158)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x18a))['toString']())[0x0]['subnet'];Log[ai(0x14a)](ai(0x195)+n),Log[ai(0x14a)](ai(0x131)+v+':'+w),Log['notice']('Instace\x20Type:\x20'+o),Log[ai(0x14a)]('Key-Pair:\x20'+r),Log[ai(0x14a)]('Security\x20Group:\x20'+m),Log[ai(0x14a)](ai(0x173)+a6);if(x){Log[ai(0x14a)]('User\x20Data:'+x);const a8=a6g[ai(0x178)](x)[ai(0x162)]();Log['notice'](a8);}const a7=await Actions[ai(0x150)](ai(0x17e));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x193),'Value':ai(0x136)},{'Key':ai(0x172),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x17b)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x17f)));}else{Log[ai(0x14a)](ai(0x148));const aa=await Actions[ai(0x150)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x145)](r),f[ai(0x13b)](s)&&a6g[ai(0x151)](s));const ab=await Actions[ai(0x150)](ai(0x143)+m+'\x20?',!![]);ab&&d[ai(0x147)](m);}}catch(ac){Log[ai(0x14b)](ac);}}catch(ad){ad&&Log[ai(0x14b)](ad),process[ai(0x189)](0x0);}},a6e);
1
+ const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0x1af))/0x1*(-parseInt(ae(0x1b2))/0x2)+parseInt(ae(0x1b4))/0x3*(-parseInt(ae(0x1bf))/0x4)+parseInt(ae(0x192))/0x5*(parseInt(ae(0x17e))/0x6)+parseInt(ae(0x19d))/0x7+parseInt(ae(0x1aa))/0x8*(parseInt(ae(0x1b0))/0x9)+parseInt(ae(0x163))/0xa+-parseInt(ae(0x158))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x1eb37));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x1a5)]()['search']('(((.+)+)+)+$')[ag(0x1a5)]()['constructor'](a4a)[ag(0x1ab)](ag(0x1b3));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a4c(){const au=['t3.micro','ask','toString','Instace\x20Type:\x20','1:1','**\x20Available\x20AMIs\x20**','fsi','125168PTULAS','search','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','name','unlinkSync','27GKaAhU','63IQZFlA','No\x20instance\x20has\x20been\x20created.','1778QcwenO','(((.+)+)+)+$','6fGBiVl','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Creating\x20user\x20data\x20file\x20in\x20','date','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','readFileSync','\x20CIDR:\x20','**\x20Available\x20key-pairs\x20**','error','log','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','396348HpXtpw','amiId','2515986IGwxxa','number','Remove\x20the\x20security\x20group\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','exit','ec2create','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','success','22,80,443','**\x20Available\x20Security\x20Groups\x20**','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','970390aAEjVF','split','getSecurityGroups','bright','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20AZONE:\x20','string','environment','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','desc','parse','chooseVPC','Name','maka\x20aws:create-instance','maka\x20aws:ci\x20--env\x20prod','ID:\x20','subnetId','cider','\x20SGID:\x20','push','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Desc','Create\x20new\x20AWS\x20instance','maka\x20aws:create-instance\x20--env\x20dev','Remove\x20the\x20keypair\x20','alias','1235130ckIAxC','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','forEach','\x20SG\x20NAME:\x20','env','Setting\x20Subnet\x20ID\x20to\x20','\x20:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ec2createSG','\x20DESCRIPTION:\x20','Setting\x20SG\x20ID\x20to:\x20','sgId','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','created-by','build\x20on\x20','**\x20Available\x20Subnets\x20**','apply','deleteKeyPair','Setting\x20the\x20key-pair\x20to:\x20','maka-cli','5XNDcQC','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ec2describeKeys','\x20AMIID:\x20','deleteSecurityGroup','create','isFile','Would\x20you\x20like\x20to\x20include\x20user\x20data?','join','User\x20Data:','getAppConfigPath','813624Ondvby','confirm','notice','createKeyPair','getMakaProjectConfig','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'];a4c=function(){return au;};return a4c();}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x157;let f=c[d];return f;},a4d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ah(0x197)]({'name':'create-instance','aliases':['ci'],'usage':a4ah(0x171),'examples':[a4ah(0x17b),a4ah(0x172)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a4ah(0x182)}],'validOpts':[],'shortDesc':a4ah(0x17a),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a4ah;try{const c=this['fsi'][ai(0x1a1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1a9)]['getConfigFromShorthand'](b[ai(0x182)]),i=this['fsi'][ai(0x19c)](h),j=g+'-'+h,k=await Actions[ai(0x1a4)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x19e)](ai(0x1ac),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1a0)]({'env':h});r=y,s=z,Log[ai(0x15f)](ai(0x190)+r);}else try{Log[ai(0x19f)](ai(0x1bb));const A=r?r:k,B=await d[ai(0x194)]({'suggestion':A}),C=await Actions[ai(0x1a4)](ai(0x15b))||'-1';if(parseInt(C)<0x0){Log[ai(0x1bc)](ai(0x18a)),Log[ai(0x19f)](ai(0x1b1));return;}B?.[ai(0x180)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1ad)],Log[aj(0x15f)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x1bc)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x19e)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x16f)]():l;u=await Actions[ai(0x1a4)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x1a4)](ai(0x162))||ai(0x160),G=F['split'](',');await d[ai(0x186)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x165)](u);if(I===''){Log['notice'](ai(0x161)),J[ai(0x180)](function(L){const ak=ai;L[ak(0x1ad)]===u?Log['notice'](ak(0x173)+L['id']+ak(0x181)+L[ak(0x1ad)]+ak(0x176)+L[ak(0x189)]):Log[ak(0x166)](ak(0x173)+L['id']+ak(0x181)+L[ak(0x1ad)]+'\x20SGID:\x20'+L[ak(0x189)]);});const K=await Actions[ai(0x1a4)](ai(0x1b8)+H+']\x20')||H['toString']();J[ai(0x180)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x189)],Log[al(0x15f)](al(0x188)+m+'\x0a'));});}else m=I,Log[ai(0x15f)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1bc)](ai(0x168));}catch(L){Log[ai(0x1bc)](L);}try{const M=0x7e6;Log[ai(0x19f)](ai(0x1a8));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0x178))[ai(0x1a5)](),O=JSON[ai(0x16e)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x17d)]==='amazon'){const T=S[am(0x179)][am(0x164)](am(0x18c))[0x1];P[am(0x177)]({'amiId':S['ID'],'desc':S[am(0x179)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T[an(0x1b7)])['getTime']()-new Date(S['date'])['getTime']();}),P[ai(0x180)](function(S,T){const ao=ai;Q[ao(0x177)]({'id':T,'amiId':S[ao(0x157)],'desc':S[ao(0x16d)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x1bd)](ap(0x173)+S['id']+ap(0x195)+S[ap(0x157)]+ap(0x187)+S[ap(0x16d)]);});const R=await Actions[ai(0x1a4)](ai(0x1a2))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x157)],Log[aq(0x15f)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x184)+S['desc']));});if(n==='')throw Log['error'](ai(0x168));}catch(S){Log[ai(0x1bc)](S);}try{Log['notice'](ai(0x18d));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x1a5)](),U=JSON[ai(0x16e)](T),V=[];U[ai(0x180)](function(X,Y){const ar=ai;V[ar(0x177)]({'id':Y,'cidr':X[ar(0x175)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x180)](function(X){const as=ai;console[as(0x1bd)]('ID:\x20'+X['id']+as(0x1ba)+X['cidr']+as(0x169)+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ai(0x1a4)](ai(0x17f))||'0';V[ai(0x180)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x174)],Log[at(0x15f)](at(0x183)+p));});if(p==='')throw Log[ai(0x1bc)](ai(0x168));}catch(X){Log[ai(0x1bc)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1a4)](ai(0x167))||ai(0x1a7),Z=Y[ai(0x164)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x159)&&typeof parseInt(a0)===ai(0x159)&&Log[ai(0x15f)](ai(0x16c)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0x1a4)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x1a3);typeof a2===ai(0x16a)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x19e)](ai(0x199),![]);a4&&(x=a4f[ai(0x19a)](i,'user-data'),Log[ai(0x19f)](ai(0x1b6)+x),await this[ai(0x1a9)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x19e)](ai(0x185)));}catch(a5){Log[ai(0x1bc)](a5);}try{const a6=JSON[ai(0x16e)](execSync(ai(0x193)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')['toString']())[0x0]['subnet'];Log[ai(0x19f)]('ImageID:'+n),Log[ai(0x19f)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x19f)](ai(0x1a6)+o),Log[ai(0x19f)]('Key-Pair:\x20'+r),Log[ai(0x19f)]('Security\x20Group:\x20'+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ai(0x19f)](ai(0x19b)+x);const a8=a4g[ai(0x1b9)](x)[ai(0x1a5)]();Log[ai(0x19f)](a8);}const a7=await Actions[ai(0x19e)](ai(0x1b5));if(a7){const a9=await d[ai(0x15d)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x18b),'Value':ai(0x191)},{'Key':ai(0x16b),'Value':h},{'Key':ai(0x170),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x15f)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x15e)));}else{Log[ai(0x19f)](ai(0x1be));const aa=await Actions[ai(0x19e)](ai(0x17c)+r+'\x20?',!![]);aa&&(d[ai(0x18f)](r),f[ai(0x198)](s)&&a4g[ai(0x1ae)](s));const ab=await Actions[ai(0x19e)](ai(0x15a)+m+'\x20?',!![]);ab&&d[ai(0x196)](m);}}catch(ac){Log[ai(0x1bc)](ac);}}catch(ad){ad&&Log[ai(0x1bc)](ad),process[ai(0x15c)](0x0);}},a4e);
@@ -1 +1 @@
1
- const a7i=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x80))/0x1*(-parseInt(g(0x8e))/0x2)+parseInt(g(0x8c))/0x3+-parseInt(g(0x83))/0x4*(parseInt(g(0x85))/0x5)+-parseInt(g(0x87))/0x6+-parseInt(g(0x8f))/0x7*(-parseInt(g(0x86))/0x8)+-parseInt(g(0x79))/0x9*(parseInt(g(0x81))/0xa)+parseInt(g(0x8d))/0xb*(parseInt(g(0x8a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x394a2));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a['toString']()['search'](h(0x7e))[h(0x89)]()['constructor'](a7a)[h(0x7b)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';function a7c(){const k=['18ylAzsD','error','search','create','createKeyPair','(((.+)+)+)+$','maka\x20aws:create-key-pair\x20--env\x20prod','186622xPltgY','1206970HUgsYQ','getConfigFromShorthand','36364lxVUYB','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','130hcITvY','776SeGCzB','2206830lzffGC','env','toString','65016RUcalK','maka\x20aws:ckp\x20--env\x20prod','210186WuJIYs','2365vzDchs','2MlAEse','2303yUZVpp','maka\x20aws:create-key-pair','ckp'];a7c=function(){return k;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x79;let f=c[d];return f;},a7d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7i(0x7c)]({'name':'create-key-pair','aliases':[a7i(0x91)],'usage':a7i(0x90),'examples':[a7i(0x7f),a7i(0x8b)],'mustBeInMakaProject':!![],'requiredOpts':[a7i(0x88)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7i(0x84)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this['fsi'][j(0x82)](b[j(0x88)]);c[j(0x7d)]({'env':d});}catch(f){f&&Log[j(0x7a)](f),process['exit'](0x0);}},a7e);
1
+ const a5j=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a5d(a,b);}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x1ca))/0x1+parseInt(g(0x1b7))/0x2*(parseInt(g(0x1b6))/0x3)+parseInt(g(0x1c3))/0x4*(parseInt(g(0x1bf))/0x5)+-parseInt(g(0x1ba))/0x6*(-parseInt(g(0x1cf))/0x7)+parseInt(g(0x1c1))/0x8*(-parseInt(g(0x1c7))/0x9)+-parseInt(g(0x1b5))/0xa*(parseInt(g(0x1c5))/0xb)+parseInt(g(0x1c8))/0xc*(parseInt(g(0x1c0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x1c3c1));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1b8)]()[i(0x1c4)]('(((.+)+)+)+$')[i(0x1b8)]()[i(0x1cd)](a5a)[i(0x1c4)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1ce)]({'name':a5j(0x1cc),'aliases':['ckp'],'usage':'maka\x20aws:create-key-pair','examples':[a5j(0x1c6),a5j(0x1c9)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a5j(0x1b9),'description':a5j(0x1bc)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this['fsi'][k(0x1c2)](b[k(0x1be)]);c[k(0x1d0)]({'env':d});}catch(f){f&&Log[k(0x1bb)](f),process[k(0x1cb)](0x0);}},a5e);function a5c(){const l=['\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','apply','env','1905ecVsmj','13avtLfP','8nxChKS','getConfigFromShorthand','1436JKlBoZ','search','44DTNXyL','maka\x20aws:create-key-pair\x20--env\x20prod','1105137FEZDMo','31452juptRF','maka\x20aws:ckp\x20--env\x20prod','25581BlceRu','exit','create-key-pair','constructor','create','7shyeqc','createKeyPair','151770GTelyt','317778TUMWnh','2DSyhMZ','toString','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','476430ilqmmu','error'];a5c=function(){return l;};return a5c();}
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x150))/0x1+parseInt(m(0x14e))/0x2*(-parseInt(m(0x14d))/0x3)+-parseInt(m(0x13b))/0x4*(parseInt(m(0x158))/0x5)+parseInt(m(0x152))/0x6+parseInt(m(0x154))/0x7*(-parseInt(m(0x14a))/0x8)+-parseInt(m(0x13d))/0x9*(parseInt(m(0x14c))/0xa)+-parseInt(m(0x147))/0xb*(-parseInt(m(0x145))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x6e0d1));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x149)]()['search'](o(0x13e))[o(0x149)]()['constructor'](a8a)[o(0x155)](o(0x13e));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x136;let f=c[d];return f;},a8d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a8c(){const s=['(((.+)+)+)+$','create','match','List\x20is\x20not\x20all\x20numbers','getMakaProjectConfig','22,80,443','maka\x20aws:csg','15866160BEqEqj','error','22gyrWsp','apply','toString','16xKQkfl','Security\x20Group\x20Name:\x20[','40mADZSW','3IPTuLl','1227028BQcaPI','ec2createSG','660729YHYDNd','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','5183754ezFQlv','name','1368787hNMoTK','search','csg','exit','5CBLeIf','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','maka\x20aws\x20create-security-group','ask','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','create-security-group','2729764XdelbU','maka\x20aws:create-secuirty-group','1597014cKbjJb'];a8c=function(){return s;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x13f)]({'name':a8p(0x13a),'aliases':[a8p(0x156)],'usage':a8p(0x137),'validOpts':[],'shortDesc':a8p(0x151),'description':a8p(0x139),'examples':[a8p(0x13c),a8p(0x144)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this['fsi'][q(0x142)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x153)]?b['name']:''+f,i=await Actions[q(0x138)](q(0x14b)+h+']')||h,j=await Actions[q(0x138)](q(0x136))||q(0x143),k=j['split'](',');k['forEach'](l=>{const r=q;if(!l[r(0x140)](/^\d+$/))throw r(0x141);}),await c[q(0x14f)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x146)](l),process[q(0x157)](0x1);}},a8e);
1
+ function a6c(){const r=['constructor','105145NCwbvj','chooseVPC','name','22,80,443','match','toString','split','maka\x20aws\x20create-security-group','Security\x20Group\x20Name:\x20[','887282hUzYly','8304UnmYFP','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','4ggOjBS','forEach','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','ask','search','error','Web\x20App','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','(((.+)+)+)+$','List\x20is\x20not\x20all\x20numbers','create','exit','17397530VNFAqr','18eawgrH','725875PZudav','818592xGYUiP','maka\x20aws:csg','2433735NqscUP','getMakaProjectConfig','maka\x20aws:create-secuirty-group','1204NAHqov'];a6c=function(){return r;};return a6c();}const a6o=a6d;(function(a,b){const m=a6d,c=a();while(!![]){try{const d=parseInt(m(0xa6))/0x1+-parseInt(m(0xaf))/0x2+-parseInt(m(0x9f))/0x3*(parseInt(m(0x90))/0x4)+-parseInt(m(0x9e))/0x5*(parseInt(m(0x9d))/0x6)+parseInt(m(0xa4))/0x7*(-parseInt(m(0xb0))/0x8)+-parseInt(m(0xa1))/0x9+parseInt(m(0x9c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x3b8cd));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const n=a6d;return a6a[n(0xab)]()[n(0x94)](n(0x98))['toString']()[n(0xa5)](a6a)[n(0x94)](n(0x98));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x8f;let f=c[d];return f;},a6d(a,b);}Command[a6o(0x9a)]({'name':'create-security-group','aliases':['csg'],'usage':a6o(0xad),'validOpts':[],'shortDesc':a6o(0x97),'description':a6o(0x8f),'examples':[a6o(0xa3),a6o(0xa0)]},async function(a,b){const p=a6o;try{const c=new AWS(),d=this['fsi'][p(0xa2)](),{appName:f}=d,g=await c[p(0xa7)](),h=b['name']?b[p(0xa8)]:''+f,i=await Actions[p(0x93)](p(0xae)+h+']')||h,j=await Actions[p(0x93)](p(0x92))||p(0xa9),k=j[p(0xac)](',');k[p(0x91)](l=>{const q=p;if(!l[q(0xaa)](/^\d+$/))throw q(0x99);}),await c['ec2createSG']({'description':p(0x96),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[p(0x95)](l),process[p(0x9b)](0x1);}},a6e);