@maka/maka-cli 5.1.23 → 5.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/typescript/package.json +112 -0
- package/bundle/typescript/src/command.d.ts +37 -0
- package/bundle/typescript/src/command.js +231 -0
- package/bundle/typescript/src/command.js.map +1 -0
- package/bundle/typescript/src/commands/_index.d.ts +25 -0
- package/bundle/typescript/src/commands/_index.js +28 -0
- package/bundle/typescript/src/commands/_index.js.map +1 -0
- package/bundle/typescript/src/commands/ai.d.ts +1 -0
- package/bundle/typescript/src/commands/ai.js +82 -0
- package/bundle/typescript/src/commands/ai.js.map +1 -0
- package/bundle/typescript/src/commands/aws/_index.d.ts +16 -0
- package/bundle/typescript/src/commands/aws/_index.js +17 -0
- package/bundle/typescript/src/commands/aws/_index.js.map +1 -0
- package/bundle/typescript/src/commands/aws/aws.command.d.ts +3 -0
- package/bundle/typescript/src/commands/aws/aws.command.js +15 -0
- package/bundle/typescript/src/commands/aws/aws.command.js.map +1 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js +36 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js +41 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js +199 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js +42 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js +43 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js +31 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js +35 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js +25 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js +57 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js +30 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js +39 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js +104 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js +52 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js +74 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js +45 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/build/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/build/_index.js +3 -0
- package/bundle/typescript/src/commands/build/_index.js.map +1 -0
- package/bundle/typescript/src/commands/build/build.d.ts +3 -0
- package/bundle/typescript/src/commands/build/build.js +78 -0
- package/bundle/typescript/src/commands/build/build.js.map +1 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js +138 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/create.d.ts +1 -0
- package/bundle/typescript/src/commands/create.js +475 -0
- package/bundle/typescript/src/commands/create.js.map +1 -0
- package/bundle/typescript/src/commands/debug.d.ts +1 -0
- package/bundle/typescript/src/commands/debug.js +76 -0
- package/bundle/typescript/src/commands/debug.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/deploy/_index.js +4 -0
- package/bundle/typescript/src/commands/deploy/_index.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.d.ts +3 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.js +24 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js +122 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js +506 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/_index.d.ts +5 -0
- package/bundle/typescript/src/commands/game/_index.js +7 -0
- package/bundle/typescript/src/commands/game/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/play.command.d.ts +3 -0
- package/bundle/typescript/src/commands/game/play.command.js +18 -0
- package/bundle/typescript/src/commands/game/play.command.js.map +1 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +29 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +57 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +37 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +98 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +31 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +19 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +20 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js +32 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +38 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +12 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +43 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/commandF.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/commandF.js +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/commandF.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js +67 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/roomsF.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js +66 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/sceneSynthesizer.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +18 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +99 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +18 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +42 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.d.ts +46 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +97 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +29 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +81 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +42 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +205 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +57 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +45 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +168 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +55 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +259 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.d.ts +59 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js +271 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/items.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/puzzles.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.d.ts +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js +350 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/rooms.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +143 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.d.ts +148 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js +86 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/abstracts.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +77 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +86 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/interfaces.d.ts +192 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/interfaces.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/interfaces.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/types.d.ts +53 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/types.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/types.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +3 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +242 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +63 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +54 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/generate.d.ts +1 -0
- package/bundle/typescript/src/commands/generate.js +42 -0
- package/bundle/typescript/src/commands/generate.js.map +1 -0
- package/bundle/typescript/src/commands/get/_index.d.ts +4 -0
- package/bundle/typescript/src/commands/get/_index.js +5 -0
- package/bundle/typescript/src/commands/get/_index.js.map +1 -0
- package/bundle/typescript/src/commands/get/get.command.d.ts +3 -0
- package/bundle/typescript/src/commands/get/get.command.js +13 -0
- package/bundle/typescript/src/commands/get/get.command.js.map +1 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.js +20 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.js +14 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js +19 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/help.d.ts +1 -0
- package/bundle/typescript/src/commands/help.js +12 -0
- package/bundle/typescript/src/commands/help.js.map +1 -0
- package/bundle/typescript/src/commands/install.d.ts +1 -0
- package/bundle/typescript/src/commands/install.js +269 -0
- package/bundle/typescript/src/commands/install.js.map +1 -0
- package/bundle/typescript/src/commands/jsdoc.d.ts +1 -0
- package/bundle/typescript/src/commands/jsdoc.js +62 -0
- package/bundle/typescript/src/commands/jsdoc.js.map +1 -0
- package/bundle/typescript/src/commands/lint.d.ts +1 -0
- package/bundle/typescript/src/commands/lint.js +124 -0
- package/bundle/typescript/src/commands/lint.js.map +1 -0
- package/bundle/typescript/src/commands/login.d.ts +1 -0
- package/bundle/typescript/src/commands/login.js +160 -0
- package/bundle/typescript/src/commands/login.js.map +1 -0
- package/bundle/typescript/src/commands/logout.d.ts +1 -0
- package/bundle/typescript/src/commands/logout.js +93 -0
- package/bundle/typescript/src/commands/logout.js.map +1 -0
- package/bundle/typescript/src/commands/logs.d.ts +1 -0
- package/bundle/typescript/src/commands/logs.js +33 -0
- package/bundle/typescript/src/commands/logs.js.map +1 -0
- package/bundle/typescript/src/commands/maka.cmd.d.ts +5 -0
- package/bundle/typescript/src/commands/maka.cmd.js +57 -0
- package/bundle/typescript/src/commands/maka.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/murder.d.ts +1 -0
- package/bundle/typescript/src/commands/murder.js +31 -0
- package/bundle/typescript/src/commands/murder.js.map +1 -0
- package/bundle/typescript/src/commands/profile.d.ts +1 -0
- package/bundle/typescript/src/commands/profile.js +277 -0
- package/bundle/typescript/src/commands/profile.js.map +1 -0
- package/bundle/typescript/src/commands/proxy.d.ts +1 -0
- package/bundle/typescript/src/commands/proxy.js +163 -0
- package/bundle/typescript/src/commands/proxy.js.map +1 -0
- package/bundle/typescript/src/commands/reconfig.d.ts +1 -0
- package/bundle/typescript/src/commands/reconfig.js +69 -0
- package/bundle/typescript/src/commands/reconfig.js.map +1 -0
- package/bundle/typescript/src/commands/register.d.ts +1 -0
- package/bundle/typescript/src/commands/register.js +101 -0
- package/bundle/typescript/src/commands/register.js.map +1 -0
- package/bundle/typescript/src/commands/run/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/run/_index.js +3 -0
- package/bundle/typescript/src/commands/run/_index.js.map +1 -0
- package/bundle/typescript/src/commands/run/docker.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js +80 -0
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/run/run.command.d.ts +3 -0
- package/bundle/typescript/src/commands/run/run.command.js +157 -0
- package/bundle/typescript/src/commands/run/run.command.js.map +1 -0
- package/bundle/typescript/src/commands/set/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/set/_index.js +4 -0
- package/bundle/typescript/src/commands/set/_index.js.map +1 -0
- package/bundle/typescript/src/commands/set/global.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/set/global.sub.cmd.js +115 -0
- package/bundle/typescript/src/commands/set/global.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/set/local.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/set/local.sub.cmd.js +18 -0
- package/bundle/typescript/src/commands/set/local.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/set/set.command.d.ts +3 -0
- package/bundle/typescript/src/commands/set/set.command.js +16 -0
- package/bundle/typescript/src/commands/set/set.command.js.map +1 -0
- package/bundle/typescript/src/commands/ssh.d.ts +1 -0
- package/bundle/typescript/src/commands/ssh.js +40 -0
- package/bundle/typescript/src/commands/ssh.js.map +1 -0
- package/bundle/typescript/src/commands/ssl.d.ts +1 -0
- package/bundle/typescript/src/commands/ssl.js +106 -0
- package/bundle/typescript/src/commands/ssl.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/testCmd/_index.js +4 -0
- package/bundle/typescript/src/commands/testCmd/_index.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js +131 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js +133 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/test.command.d.ts +3 -0
- package/bundle/typescript/src/commands/testCmd/test.command.js +15 -0
- package/bundle/typescript/src/commands/testCmd/test.command.js.map +1 -0
- package/bundle/typescript/src/commands/undo.d.ts +1 -0
- package/bundle/typescript/src/commands/undo.js +12 -0
- package/bundle/typescript/src/commands/undo.js.map +1 -0
- package/bundle/typescript/src/commands/uninstall.d.ts +1 -0
- package/bundle/typescript/src/commands/uninstall.js +76 -0
- package/bundle/typescript/src/commands/uninstall.js.map +1 -0
- package/bundle/typescript/src/commands/version/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/version/_index.js +4 -0
- package/bundle/typescript/src/commands/version/_index.js.map +1 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.js +55 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.js +71 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/version/version.d.ts +3 -0
- package/bundle/typescript/src/commands/version/version.js +57 -0
- package/bundle/typescript/src/commands/version/version.js.map +1 -0
- package/bundle/typescript/src/error.d.ts +12 -0
- package/bundle/typescript/src/error.js +13 -0
- package/bundle/typescript/src/error.js.map +1 -0
- package/bundle/typescript/src/exec.d.ts +2 -0
- package/bundle/typescript/src/exec.js +17 -0
- package/bundle/typescript/src/exec.js.map +1 -0
- package/bundle/typescript/src/generator.d.ts +48 -0
- package/bundle/typescript/src/generator.js +380 -0
- package/bundle/typescript/src/generator.js.map +1 -0
- package/bundle/typescript/src/generators/_index.d.ts +18 -0
- package/bundle/typescript/src/generators/_index.js +19 -0
- package/bundle/typescript/src/generators/_index.js.map +1 -0
- package/bundle/typescript/src/generators/api.d.ts +1 -0
- package/bundle/typescript/src/generators/api.js +197 -0
- package/bundle/typescript/src/generators/api.js.map +1 -0
- package/bundle/typescript/src/generators/aws/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/aws/_index.js +3 -0
- package/bundle/typescript/src/generators/aws/_index.js.map +1 -0
- package/bundle/typescript/src/generators/aws/aws.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/aws.js +16 -0
- package/bundle/typescript/src/generators/aws/aws.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js +21 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +66 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js.map +1 -0
- package/bundle/typescript/src/generators/collection.d.ts +1 -0
- package/bundle/typescript/src/generators/collection.js +71 -0
- package/bundle/typescript/src/generators/collection.js.map +1 -0
- package/bundle/typescript/src/generators/component.d.ts +1 -0
- package/bundle/typescript/src/generators/component.js +96 -0
- package/bundle/typescript/src/generators/component.js.map +1 -0
- package/bundle/typescript/src/generators/config.d.ts +1 -0
- package/bundle/typescript/src/generators/config.js +71 -0
- package/bundle/typescript/src/generators/config.js.map +1 -0
- package/bundle/typescript/src/generators/dbc.d.ts +1 -0
- package/bundle/typescript/src/generators/dbc.js +82 -0
- package/bundle/typescript/src/generators/dbc.js.map +1 -0
- package/bundle/typescript/src/generators/dockerfile.d.ts +1 -0
- package/bundle/typescript/src/generators/dockerfile.js +42 -0
- package/bundle/typescript/src/generators/dockerfile.js.map +1 -0
- package/bundle/typescript/src/generators/hook.d.ts +1 -0
- package/bundle/typescript/src/generators/hook.js +110 -0
- package/bundle/typescript/src/generators/hook.js.map +1 -0
- package/bundle/typescript/src/generators/kits/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/kits/_index.js +5 -0
- package/bundle/typescript/src/generators/kits/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/_index.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/auth/_index.js +4 -0
- package/bundle/typescript/src/generators/kits/auth/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js +21 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js +209 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js +134 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/esri/_index.js +3 -0
- package/bundle/typescript/src/generators/kits/esri/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js +31 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js +85 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/kit.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/kit.js +17 -0
- package/bundle/typescript/src/generators/kits/kit.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/_index.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/mui/_index.js +4 -0
- package/bundle/typescript/src/generators/kits/mui/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js +209 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js +190 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js +70 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js.map +1 -0
- package/bundle/typescript/src/generators/layout.d.ts +1 -0
- package/bundle/typescript/src/generators/layout.js +110 -0
- package/bundle/typescript/src/generators/layout.js.map +1 -0
- package/bundle/typescript/src/generators/maka.gen.d.ts +5 -0
- package/bundle/typescript/src/generators/maka.gen.js +26 -0
- package/bundle/typescript/src/generators/maka.gen.js.map +1 -0
- package/bundle/typescript/src/generators/methods.d.ts +1 -0
- package/bundle/typescript/src/generators/methods.js +62 -0
- package/bundle/typescript/src/generators/methods.js.map +1 -0
- package/bundle/typescript/src/generators/package.d.ts +1 -0
- package/bundle/typescript/src/generators/package.js +66 -0
- package/bundle/typescript/src/generators/package.js.map +1 -0
- package/bundle/typescript/src/generators/page.d.ts +1 -0
- package/bundle/typescript/src/generators/page.js +190 -0
- package/bundle/typescript/src/generators/page.js.map +1 -0
- package/bundle/typescript/src/generators/publish.d.ts +1 -0
- package/bundle/typescript/src/generators/publish.js +75 -0
- package/bundle/typescript/src/generators/publish.js.map +1 -0
- package/bundle/typescript/src/generators/route.d.ts +1 -0
- package/bundle/typescript/src/generators/route.js +66 -0
- package/bundle/typescript/src/generators/route.js.map +1 -0
- package/bundle/typescript/src/generators/services/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/services/_index.js +5 -0
- package/bundle/typescript/src/generators/services/_index.js.map +1 -0
- package/bundle/typescript/src/generators/services/logger.d.ts +1 -0
- package/bundle/typescript/src/generators/services/logger.js +50 -0
- package/bundle/typescript/src/generators/services/logger.js.map +1 -0
- package/bundle/typescript/src/generators/services/openssl.d.ts +1 -0
- package/bundle/typescript/src/generators/services/openssl.js +38 -0
- package/bundle/typescript/src/generators/services/openssl.js.map +1 -0
- package/bundle/typescript/src/generators/services/service.d.ts +3 -0
- package/bundle/typescript/src/generators/services/service.js +16 -0
- package/bundle/typescript/src/generators/services/service.js.map +1 -0
- package/bundle/typescript/src/generators/services/translation.d.ts +1 -0
- package/bundle/typescript/src/generators/services/translation.js +149 -0
- package/bundle/typescript/src/generators/services/translation.js.map +1 -0
- package/bundle/typescript/src/maka.d.ts +2 -0
- package/bundle/typescript/src/maka.js +26 -0
- package/bundle/typescript/src/maka.js.map +1 -0
- package/bundle/typescript/src/templates/meteor/project/README.md +33 -0
- package/bundle/typescript/src/templates/meteor/project/package.json +26 -0
- package/bundle/typescript/src/tool.d.ts +74 -0
- package/bundle/typescript/src/tool.js +217 -0
- package/bundle/typescript/src/tool.js.map +1 -0
- package/bundle/typescript/src/tools/actions/actions.class.d.ts +25 -0
- package/bundle/typescript/src/tools/actions/actions.class.js +20 -0
- package/bundle/typescript/src/tools/actions/actions.class.js.map +1 -0
- package/bundle/typescript/src/tools/aws/aws.class.d.ts +51 -0
- package/bundle/typescript/src/tools/aws/aws.class.js +802 -0
- package/bundle/typescript/src/tools/aws/aws.class.js.map +1 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.d.ts +364 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.js +255 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.d.ts +42 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.js +402 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.js.map +1 -0
- package/bundle/typescript/src/tools/docker/docker.class.d.ts +10 -0
- package/bundle/typescript/src/tools/docker/docker.class.js +46 -0
- package/bundle/typescript/src/tools/docker/docker.class.js.map +1 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.d.ts +18 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.js +2 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.d.ts +114 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js +621 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js.map +1 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +187 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +62 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.class.d.ts +10 -0
- package/bundle/typescript/src/tools/https/https.class.js +247 -0
- package/bundle/typescript/src/tools/https/https.class.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.interface.d.ts +39 -0
- package/bundle/typescript/src/tools/https/https.interface.js +2 -0
- package/bundle/typescript/src/tools/https/https.interface.js.map +1 -0
- package/bundle/typescript/src/tools/log/log.class.d.ts +33 -0
- package/bundle/typescript/src/tools/log/log.class.js +206 -0
- package/bundle/typescript/src/tools/log/log.class.js.map +1 -0
- package/bundle/typescript/src/tools/log/log.interfaces.d.ts +7 -0
- package/bundle/typescript/src/tools/log/log.interfaces.js +2 -0
- package/bundle/typescript/src/tools/log/log.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.d.ts +23 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.js +351 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.js.map +1 -0
- package/bundle/typescript/src/tools/options/options.class.d.ts +11 -0
- package/bundle/typescript/src/tools/options/options.class.js +64 -0
- package/bundle/typescript/src/tools/options/options.class.js.map +1 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.d.ts +31 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.js +314 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.js.map +1 -0
- package/bundle/typescript/src/tools/progress/progress.class.d.ts +12 -0
- package/bundle/typescript/src/tools/progress/progress.class.js +42 -0
- package/bundle/typescript/src/tools/progress/progress.class.js.map +1 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.d.ts +197 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js +862 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js.map +1 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.d.ts +4 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js +42 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js.map +1 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.d.ts +6 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js +2 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.d.ts +11 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.js +120 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.js.map +1 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.d.ts +21 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js +2 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.d.ts +17 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js +54 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js.map +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js.map +1 -0
- package/package.json +7 -9
- package/bundle/obf/package.json +0 -114
- package/bundle/obf/src/command.js +0 -1
- package/bundle/obf/src/commands/_index.js +0 -1
- package/bundle/obf/src/commands/ai.js +0 -1
- package/bundle/obf/src/commands/aws/_index.js +0 -1
- package/bundle/obf/src/commands/aws/aws.command.js +0 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/build/_index.js +0 -1
- package/bundle/obf/src/commands/build/build.js +0 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/create.js +0 -1
- package/bundle/obf/src/commands/debug.js +0 -1
- package/bundle/obf/src/commands/deploy/_index.js +0 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +0 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/_index.js +0 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/play.command.js +0 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/generate.js +0 -1
- package/bundle/obf/src/commands/get/_index.js +0 -1
- package/bundle/obf/src/commands/get/get.command.js +0 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/help.js +0 -1
- package/bundle/obf/src/commands/install.js +0 -1
- package/bundle/obf/src/commands/jsdoc.js +0 -1
- package/bundle/obf/src/commands/lint.js +0 -1
- package/bundle/obf/src/commands/login.js +0 -1
- package/bundle/obf/src/commands/logout.js +0 -1
- package/bundle/obf/src/commands/logs.js +0 -1
- package/bundle/obf/src/commands/maka.cmd.js +0 -1
- package/bundle/obf/src/commands/murder.js +0 -1
- package/bundle/obf/src/commands/profile.js +0 -1
- package/bundle/obf/src/commands/proxy.js +0 -1
- package/bundle/obf/src/commands/reconfig.js +0 -1
- package/bundle/obf/src/commands/register.js +0 -1
- package/bundle/obf/src/commands/run/_index.js +0 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/run/run.command.js +0 -1
- package/bundle/obf/src/commands/set/_index.js +0 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/set.command.js +0 -1
- package/bundle/obf/src/commands/ssh.js +0 -1
- package/bundle/obf/src/commands/ssl.js +0 -1
- package/bundle/obf/src/commands/testCmd/_index.js +0 -1
- package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/testCmd/test.command.js +0 -1
- package/bundle/obf/src/commands/undo.js +0 -1
- package/bundle/obf/src/commands/uninstall.js +0 -1
- package/bundle/obf/src/commands/version/_index.js +0 -1
- package/bundle/obf/src/commands/version/list.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/version/use.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/version/version.js +0 -1
- package/bundle/obf/src/error.js +0 -1
- package/bundle/obf/src/exec.js +0 -2
- package/bundle/obf/src/generator.js +0 -1
- package/bundle/obf/src/generators/_index.js +0 -1
- package/bundle/obf/src/generators/api.js +0 -1
- package/bundle/obf/src/generators/aws/_index.js +0 -1
- package/bundle/obf/src/generators/aws/aws.js +0 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +0 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +0 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +0 -1
- package/bundle/obf/src/generators/collection.js +0 -1
- package/bundle/obf/src/generators/component.js +0 -1
- package/bundle/obf/src/generators/config.js +0 -1
- package/bundle/obf/src/generators/dbc.js +0 -1
- package/bundle/obf/src/generators/dockerfile.js +0 -1
- package/bundle/obf/src/generators/hook.js +0 -1
- package/bundle/obf/src/generators/kits/_index.js +0 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +0 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +0 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +0 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +0 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +0 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +0 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +0 -1
- package/bundle/obf/src/generators/kits/kit.js +0 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +0 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +0 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +0 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +0 -1
- package/bundle/obf/src/generators/layout.js +0 -1
- package/bundle/obf/src/generators/maka.gen.js +0 -1
- package/bundle/obf/src/generators/methods.js +0 -1
- package/bundle/obf/src/generators/package.js +0 -1
- package/bundle/obf/src/generators/page.js +0 -1
- package/bundle/obf/src/generators/publish.js +0 -1
- package/bundle/obf/src/generators/route.js +0 -1
- package/bundle/obf/src/generators/services/_index.js +0 -1
- package/bundle/obf/src/generators/services/logger.js +0 -1
- package/bundle/obf/src/generators/services/openssl.js +0 -1
- package/bundle/obf/src/generators/services/service.js +0 -1
- package/bundle/obf/src/generators/services/translation.js +0 -1
- package/bundle/obf/src/maka.js +0 -1
- package/bundle/obf/src/templates/meteor/project/README.md +0 -15
- package/bundle/obf/src/templates/meteor/project/package.json +0 -26
- package/bundle/obf/src/tool.js +0 -1
- package/bundle/obf/src/tools/actions/actions.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +0 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +0 -1
- package/bundle/obf/src/tools/docker/docker.class.js +0 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +0 -1
- package/bundle/obf/src/tools/https/https.class.js +0 -1
- package/bundle/obf/src/tools/https/https.interface.js +0 -1
- package/bundle/obf/src/tools/log/log.class.js +0 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +0 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +0 -1
- package/bundle/obf/src/tools/options/options.class.js +0 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +0 -1
- package/bundle/obf/src/tools/progress/progress.class.js +0 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +0 -1
- package/obfuscator.json +0 -29
- /package/bundle/{obf → typescript}/src/README.md +0 -0
- /package/bundle/{obf/src/commands/game/sideQuest/scenes/puzzles.js → typescript/src/commands/game/sideQuest/scenes/puzzles.d.ts} +0 -0
- /package/bundle/{obf → typescript}/src/templates/aws/cloudformation/create-ec2-instance.template +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/api.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/api.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/apollo-gateway.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/apollo-gateway.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/graphql-api.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/graphql-api.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/methods.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/methods.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/register-api.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/register-api.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/resolvers.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/resolvers.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/tests.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/tests.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/typeDefs.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/api/typeDefs.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/body.html +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/head.html +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/main.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/main.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/main.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/client/main.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/index.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/routes.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/templates.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/index.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/server/index.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/ui/test-helpers.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/lib/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/lib/main.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/lib/main.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/lib/main.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/lib/main.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/maka.d.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/meteor.d.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/packages/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/private/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/favicon.ico +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/maka-144x144.png +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/maka-192x192.png +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/maka-512x512.png +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/manifest.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/sw.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/sw.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/sw.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/public/sw.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/helmet-csp.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/helmet-csp.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/main.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/main.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/main.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/server/main.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/app/tsconfig.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/collection/collection.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/collection/collection.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/collection/tests.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/collection/tests.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/config/docker-compose.yaml +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/config/pm2.config.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/config/process.env +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/config/settings.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/config/ssh.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/config.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/config.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/conn.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/conn.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/register-dbc.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/dbc/register-dbc.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/method/method.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/method/method.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/client/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/client/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/client/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/client/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/lib/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/lib/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/lib/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/lib/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/server/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/server/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/server/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/server/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/client/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/client/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/client/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/client/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/server/package.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/server/package.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/server/package.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/package/tests/server/package.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/project/.maka/config.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/project/.maka/history.json +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/project/build/.gitkeep +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/project/build/README +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/project/gitignore +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/publish/publish.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/publish/publish.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/service/logger/logger.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/service/logger/logger.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/stylesheet/stylesheet.css +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/stylesheet/stylesheet.css.less +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template-tests.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template-tests.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template-tests.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template-tests.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.css +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.css.less +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.css.scss +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.html +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/meteor/template/template.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/component/component.css +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/component/component.css.less +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/component/component.css.scss +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/component/component.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/component/component.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/hook/hook.css +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/hook/hook.css.scss +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/hook/hook.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/hook/hook.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/auth/service/meteor-auth-service.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/esri/map/basic-map.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/esri/map/basic-map.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/route/route.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/route/route.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/route/route.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/route/route.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/test/test.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/test/test.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/test/test.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/react/test/test.js.tsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/docker/Dockerfile +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/eslint/babel.config.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/eslint/config.eslint.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/i18n.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/i18n.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/index.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/index.js.jsx +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/locales.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/i18n/locales.js.ts +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/openssl/openssl.conf +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/test/jest/jest.config.js +0 -0
- /package/bundle/{obf → typescript}/src/templates/service/test/jest/jest.setup.js +0 -0
- /package/bundle/{obf/src/tools/ssl/ssl.interfaces.js → typescript/src/tools/ssl/ssl.interfaces.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Logger } from '../utilities/logger.js';
|
|
2
|
+
import { Room } from './room.js';
|
|
3
|
+
import { AbstractDoor } from '../types/abstracts.js';
|
|
4
|
+
import { IDoorConstructorConfig } from '../types/interfaces.js';
|
|
5
|
+
export declare class Door extends AbstractDoor {
|
|
6
|
+
roomA: Room;
|
|
7
|
+
roomB: Room;
|
|
8
|
+
isLocked: boolean;
|
|
9
|
+
unlockItemOrSolution?: string;
|
|
10
|
+
name: string;
|
|
11
|
+
logger: Logger;
|
|
12
|
+
isLockable: boolean;
|
|
13
|
+
constructor(config: IDoorConstructorConfig);
|
|
14
|
+
getOtherSide(currentRoom: Room): Room;
|
|
15
|
+
attemptUnlock(itemOrSolution: string): boolean;
|
|
16
|
+
checkIfLocked(): boolean;
|
|
17
|
+
checkIfLockable(): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Logger } from '../utilities/logger.js';
|
|
2
|
+
import { capitalCase } from 'change-case';
|
|
3
|
+
import { AbstractDoor } from '../types/abstracts.js';
|
|
4
|
+
export class Door extends AbstractDoor {
|
|
5
|
+
roomA; // One side of the door
|
|
6
|
+
roomB; // The other side of the door
|
|
7
|
+
isLocked;
|
|
8
|
+
unlockItemOrSolution;
|
|
9
|
+
name;
|
|
10
|
+
logger;
|
|
11
|
+
isLockable;
|
|
12
|
+
constructor(config) {
|
|
13
|
+
super();
|
|
14
|
+
this.roomA = config.roomA;
|
|
15
|
+
this.roomB = config.roomB;
|
|
16
|
+
this.isLocked = config.isLocked || false;
|
|
17
|
+
this.unlockItemOrSolution = config.unlockItemOrSolution;
|
|
18
|
+
this.name = (config.name) ? capitalCase(config.name) : `To ${config.roomB.name}`; // Using a general name since it's bi-directional
|
|
19
|
+
this.logger = Logger.getInstance();
|
|
20
|
+
this.isLockable = !!config.unlockItemOrSolution;
|
|
21
|
+
this.logger.write(`Door created between ${this.roomA.name} and ${this.roomB.name}. Is Locked: ${this.isLocked}`);
|
|
22
|
+
}
|
|
23
|
+
getOtherSide(currentRoom) {
|
|
24
|
+
return (this.roomA === currentRoom) ? this.roomB : this.roomA;
|
|
25
|
+
}
|
|
26
|
+
attemptUnlock(itemOrSolution) {
|
|
27
|
+
if (this.isLocked && this.unlockItemOrSolution && this.unlockItemOrSolution === itemOrSolution) {
|
|
28
|
+
this.isLocked = false;
|
|
29
|
+
this.logger.write(`Door unlocked: ${this.name}. Used: ${itemOrSolution}`);
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
this.logger.write(`Failed to unlock door: ${this.name}. Used: ${itemOrSolution}`);
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
checkIfLocked() {
|
|
36
|
+
return this.isLocked;
|
|
37
|
+
}
|
|
38
|
+
checkIfLockable() {
|
|
39
|
+
return this.isLockable;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=door.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"door.js","sourceRoot":"","sources":["../../../../../../../src/commands/game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W,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAChE,CAAC;IAED,aAAa,CAAC,cAAsB;QAClC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,CAAC,oBAAoB,KAAK,cAAc,EAAE,CAAC;YAC/F,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,IAAI,CAAC,IAAI,WAAW,cAAc,EAAE,CAAC,CAAC;YAC1E,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,IAAI,CAAC,IAAI,WAAW,cAAc,EAAE,CAAC,CAAC;QAClF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Logger } from '../utilities/logger.js';
|
|
2
|
+
import { Item } from './item.js';
|
|
3
|
+
import { AbstractInventory } from '../types/abstracts.js';
|
|
4
|
+
export declare class Inventory extends AbstractInventory {
|
|
5
|
+
protected items: Map<string, Item>;
|
|
6
|
+
protected logger: Logger;
|
|
7
|
+
private secureItems;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Adds an item to the inventory.
|
|
11
|
+
*
|
|
12
|
+
* @param item - The item to be added.
|
|
13
|
+
*/
|
|
14
|
+
addItem(item: Item): void;
|
|
15
|
+
/**
|
|
16
|
+
* Removes an item from the inventory.
|
|
17
|
+
*
|
|
18
|
+
* @param itemName - The name of the item to be removed.
|
|
19
|
+
* @returns {Item | null} - The removed item, or null if the item does not exist.
|
|
20
|
+
*/
|
|
21
|
+
removeItem(itemName: string): Item | null;
|
|
22
|
+
/**
|
|
23
|
+
* Checks if the item exists in the inventory.
|
|
24
|
+
*
|
|
25
|
+
* @param itemName - The name of the item.
|
|
26
|
+
* @returns {boolean} - True if the item exists, false otherwise.
|
|
27
|
+
*/
|
|
28
|
+
hasItem(itemName: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves details about an item.
|
|
31
|
+
*
|
|
32
|
+
* @param itemName - The name of the item.
|
|
33
|
+
* @returns {Item | null} - The item, or null if the item does not exist.
|
|
34
|
+
*/
|
|
35
|
+
getItem(itemName: string): Item | null;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a list of item names currently in the inventory.
|
|
38
|
+
*
|
|
39
|
+
* @returns {string[]} - List of item names.
|
|
40
|
+
*/
|
|
41
|
+
listItems(): string[];
|
|
42
|
+
getWeight(): number;
|
|
43
|
+
getAllItems(): Item[];
|
|
44
|
+
addSecureItem(ownerId: string, item: Item): void;
|
|
45
|
+
getSecureItemsFor(ownerId: string): Item[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { capitalCase } from 'change-case';
|
|
2
|
+
import { Logger } from '../utilities/logger.js';
|
|
3
|
+
import { AbstractInventory } from '../types/abstracts.js';
|
|
4
|
+
export class Inventory extends AbstractInventory {
|
|
5
|
+
items;
|
|
6
|
+
logger;
|
|
7
|
+
secureItems = new Map(); // keyed by player name
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.items = new Map();
|
|
11
|
+
this.logger = Logger.getInstance(); // Get an instance of the Logger
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Adds an item to the inventory.
|
|
15
|
+
*
|
|
16
|
+
* @param item - The item to be added.
|
|
17
|
+
*/
|
|
18
|
+
addItem(item) {
|
|
19
|
+
this.items.set(item.name.toLowerCase(), item);
|
|
20
|
+
this.logger.write(`Added item: ${item.name} to inventory.`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Removes an item from the inventory.
|
|
24
|
+
*
|
|
25
|
+
* @param itemName - The name of the item to be removed.
|
|
26
|
+
* @returns {Item | null} - The removed item, or null if the item does not exist.
|
|
27
|
+
*/
|
|
28
|
+
removeItem(itemName) {
|
|
29
|
+
const item = this.getItem(itemName);
|
|
30
|
+
if (item) {
|
|
31
|
+
this.items.delete(itemName.toLowerCase());
|
|
32
|
+
this.logger.write(`Removed item: ${itemName} from inventory.`);
|
|
33
|
+
return item;
|
|
34
|
+
}
|
|
35
|
+
this.logger.write(`Failed to remove item: ${itemName}. Item not found.`);
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the item exists in the inventory.
|
|
40
|
+
*
|
|
41
|
+
* @param itemName - The name of the item.
|
|
42
|
+
* @returns {boolean} - True if the item exists, false otherwise.
|
|
43
|
+
*/
|
|
44
|
+
hasItem(itemName) {
|
|
45
|
+
const has = this.items.has(itemName.toLowerCase());
|
|
46
|
+
const itemNames = [...this.items.keys()];
|
|
47
|
+
this.logger.write(`Checked for item: ${itemName} in ${itemNames.join(', ')}. Exists: ${has}.`);
|
|
48
|
+
return has;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves details about an item.
|
|
52
|
+
*
|
|
53
|
+
* @param itemName - The name of the item.
|
|
54
|
+
* @returns {Item | null} - The item, or null if the item does not exist.
|
|
55
|
+
*/
|
|
56
|
+
getItem(itemName) {
|
|
57
|
+
const item = this.items.get(itemName.toLowerCase()) || null;
|
|
58
|
+
if (item) {
|
|
59
|
+
this.logger.write(`Retrieved details for item: ${itemName}.`);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
this.logger.write(`Failed to retrieve details for item: ${itemName}. Item not found.`);
|
|
63
|
+
}
|
|
64
|
+
return item;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns a list of item names currently in the inventory.
|
|
68
|
+
*
|
|
69
|
+
* @returns {string[]} - List of item names.
|
|
70
|
+
*/
|
|
71
|
+
listItems() {
|
|
72
|
+
const itemNames = [...this.items.keys()];
|
|
73
|
+
const formattedItemNames = itemNames.map((name) => capitalCase(name));
|
|
74
|
+
this.logger.write(`Listed items in inventory: ${formattedItemNames.join(', ')}.`);
|
|
75
|
+
return itemNames;
|
|
76
|
+
}
|
|
77
|
+
getWeight() {
|
|
78
|
+
let totalWeight = 0;
|
|
79
|
+
for (const item of this.items.values()) {
|
|
80
|
+
totalWeight += item.weight;
|
|
81
|
+
}
|
|
82
|
+
return totalWeight;
|
|
83
|
+
}
|
|
84
|
+
getAllItems() {
|
|
85
|
+
return [...this.items.values()];
|
|
86
|
+
}
|
|
87
|
+
addSecureItem(ownerId, item) {
|
|
88
|
+
if (!this.secureItems.has(ownerId)) {
|
|
89
|
+
this.secureItems.set(ownerId, []);
|
|
90
|
+
}
|
|
91
|
+
this.secureItems.get(ownerId).push(item);
|
|
92
|
+
}
|
|
93
|
+
getSecureItemsFor(ownerId) {
|
|
94
|
+
return this.secureItems.get(ownerId) ?? [];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=inventory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/inventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,OAAO,SAAU,SAAQ,iBAAiB;IACpC,KAAK,CAAoB;IACzB,MAAM,CAAS;IACjB,WAAW,GAAwB,IAAI,GAAG,EAAE,CAAC,CAAC,uBAAuB;IAE7E;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAgB,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC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AAI,CAAC,CAAC;IAC5C,CAAC;IAED,iBAAiB,CAAC,OAAe;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Size, Category, Shape, Color, Texture, Rating } from '../types/enums.js';
|
|
2
|
+
import { IItemConstructorConfig } from '../types/interfaces.js';
|
|
3
|
+
import { AbstractItem } from '../types/abstracts.js';
|
|
4
|
+
export declare class Item extends AbstractItem {
|
|
5
|
+
uuid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
size: Size;
|
|
9
|
+
category: Category;
|
|
10
|
+
shape: Shape;
|
|
11
|
+
color: Color;
|
|
12
|
+
texture: Texture;
|
|
13
|
+
rating: Rating;
|
|
14
|
+
weight: number;
|
|
15
|
+
satisfiesLifestyle?: {
|
|
16
|
+
addictionTypes?: string[];
|
|
17
|
+
habitTags?: string[];
|
|
18
|
+
};
|
|
19
|
+
protected _currencyAmount: number;
|
|
20
|
+
protected _currencyCapacity?: number;
|
|
21
|
+
constructor(options: IItemConstructorConfig);
|
|
22
|
+
use(): string;
|
|
23
|
+
supportsAddiction(addiction: string): boolean;
|
|
24
|
+
supportsHabit(habit: string): boolean;
|
|
25
|
+
isCurrencyCarrier(): boolean;
|
|
26
|
+
get currencyAmount(): number;
|
|
27
|
+
addCurrency(amount: number): number;
|
|
28
|
+
deductCurrency(amount: number): number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Size, Category } from '../types/enums.js';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
import { AbstractItem } from '../types/abstracts.js';
|
|
4
|
+
export class Item extends AbstractItem {
|
|
5
|
+
uuid;
|
|
6
|
+
name;
|
|
7
|
+
description;
|
|
8
|
+
size;
|
|
9
|
+
category;
|
|
10
|
+
shape;
|
|
11
|
+
color;
|
|
12
|
+
texture;
|
|
13
|
+
rating;
|
|
14
|
+
weight;
|
|
15
|
+
satisfiesLifestyle;
|
|
16
|
+
// New currency-related fields
|
|
17
|
+
_currencyAmount = 0;
|
|
18
|
+
_currencyCapacity;
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super();
|
|
21
|
+
this.name = options.name;
|
|
22
|
+
this.description = options.description;
|
|
23
|
+
this.size = options.size;
|
|
24
|
+
this.category = options.category;
|
|
25
|
+
this.shape = options.shape;
|
|
26
|
+
this.color = options.color;
|
|
27
|
+
this.texture = options.texture;
|
|
28
|
+
this.rating = options.rating;
|
|
29
|
+
this.weight = options.weight;
|
|
30
|
+
this.satisfiesLifestyle = options.satisfiesLifestyle;
|
|
31
|
+
this.uuid = uuidv4();
|
|
32
|
+
// Optional: you can define capacity by size
|
|
33
|
+
if (this.isCurrencyCarrier()) {
|
|
34
|
+
switch (this.size) {
|
|
35
|
+
case Size.Small:
|
|
36
|
+
this._currencyCapacity = 100;
|
|
37
|
+
break;
|
|
38
|
+
case Size.Medium:
|
|
39
|
+
this._currencyCapacity = 500;
|
|
40
|
+
break;
|
|
41
|
+
case Size.Large:
|
|
42
|
+
this._currencyCapacity = 1000;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
use() {
|
|
48
|
+
return `You use the ${this.name}. Nothing special happens.`;
|
|
49
|
+
}
|
|
50
|
+
supportsAddiction(addiction) {
|
|
51
|
+
return this.satisfiesLifestyle?.addictionTypes?.includes(addiction) ?? false;
|
|
52
|
+
}
|
|
53
|
+
supportsHabit(habit) {
|
|
54
|
+
return this.satisfiesLifestyle?.habitTags?.includes(habit) ?? false;
|
|
55
|
+
}
|
|
56
|
+
// --- Currency Support ---
|
|
57
|
+
isCurrencyCarrier() {
|
|
58
|
+
return this.category === Category.CurrencyContainer;
|
|
59
|
+
}
|
|
60
|
+
get currencyAmount() {
|
|
61
|
+
return this._currencyAmount;
|
|
62
|
+
}
|
|
63
|
+
addCurrency(amount) {
|
|
64
|
+
if (!this.isCurrencyCarrier())
|
|
65
|
+
return 0;
|
|
66
|
+
const space = this._currencyCapacity !== undefined
|
|
67
|
+
? Math.max(0, this._currencyCapacity - this._currencyAmount)
|
|
68
|
+
: Infinity;
|
|
69
|
+
const added = Math.min(amount, space);
|
|
70
|
+
this._currencyAmount += added;
|
|
71
|
+
return added;
|
|
72
|
+
}
|
|
73
|
+
deductCurrency(amount) {
|
|
74
|
+
if (!this.isCurrencyCarrier())
|
|
75
|
+
return 0;
|
|
76
|
+
const deducted = Math.min(this._currencyAmount, amount);
|
|
77
|
+
this._currencyAmount -= deducted;
|
|
78
|
+
return deducted;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAiC,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,OAAO,IAAK,SAAQ,YAAY;IAC7B,IAAI,CAAS;IACb,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,IAAI,CAAO;IACX,QAAQ,CAAW;IACnB,KAAK,CAAQ;IACb,KAAK,CAAQ;IACb,OAAO,CAAU;IACjB,MAAM,CAAS;IACf,MAAM,CAAS;IACf,kBAAkB,CAGvB;IAEF,8BAA8B;IACpB,eAAe,GAAW,CAAC,CAAC;IAC5B,iBAAiB,CAAU;IAErC,YAAY,OAA+B;QACzC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;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tE,CAAC;IAED,2BAA2B;IAEpB,iBAAiB;QACtB,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,iBAAiB,CAAC;IACtD,CAAC;IAED,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAEM,WAAW,CAAC,MAAc;QAC/B,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAAE,OAAO,CAAC,CAAC;QAExC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,KAAK,SAAS;YAChD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC;YAC5D,CAAC,CAAC,QAAQ,CAAC;QAEb,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,eAAe,IAAI,KAAK,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,cAAc,CAAC,MAAc;QAClC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAAE,OAAO,CAAC,CAAC;QAExC,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,IAAI,QAAQ,CAAC;QACjC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Room } from './room.js';
|
|
2
|
+
import { Player } from './player.js';
|
|
3
|
+
import { IPlayerConstructorConfig, IRooms } from '../types/interfaces.js';
|
|
4
|
+
export declare class NPC extends Player {
|
|
5
|
+
readonly _name: string;
|
|
6
|
+
private _dialogue;
|
|
7
|
+
private rooms;
|
|
8
|
+
private scene;
|
|
9
|
+
constructor(name: string, dialogue: string[], rooms: IRooms, config: IPlayerConstructorConfig);
|
|
10
|
+
get name(): string;
|
|
11
|
+
speak(): string;
|
|
12
|
+
autonomousMove(possibleRooms: Room[]): void;
|
|
13
|
+
moveTo(direction: string): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Player } from './player.js';
|
|
2
|
+
import { GoCommand } from '../commands/go.js';
|
|
3
|
+
export class NPC extends Player {
|
|
4
|
+
_name;
|
|
5
|
+
_dialogue;
|
|
6
|
+
rooms;
|
|
7
|
+
scene;
|
|
8
|
+
constructor(name, dialogue, rooms, config) {
|
|
9
|
+
super(config);
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._dialogue = dialogue;
|
|
12
|
+
this.rooms = rooms;
|
|
13
|
+
}
|
|
14
|
+
get name() {
|
|
15
|
+
return this._name;
|
|
16
|
+
}
|
|
17
|
+
speak() {
|
|
18
|
+
return this._dialogue[Math.floor(Math.random() * this._dialogue.length)];
|
|
19
|
+
}
|
|
20
|
+
autonomousMove(possibleRooms) {
|
|
21
|
+
const nextRoom = possibleRooms[Math.floor(Math.random() * possibleRooms.length)];
|
|
22
|
+
this.moveTo(nextRoom.name);
|
|
23
|
+
}
|
|
24
|
+
moveTo(direction) {
|
|
25
|
+
const context = {
|
|
26
|
+
actor: this,
|
|
27
|
+
rooms: this.rooms,
|
|
28
|
+
scene: this.scene
|
|
29
|
+
};
|
|
30
|
+
const goCommand = new GoCommand(context);
|
|
31
|
+
goCommand.execute([direction]);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=npc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npc.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/npc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,OAAO,GAAI,SAAQ,MAAM;IACpB,KAAK,CAAS;IACf,SAAS,CAAW;IACpB,KAAK,CAAS;IACd,KAAK,CAAQ;IAErB,YAAY,IAAY,EAAE,QAAkB,EAAE,KAAa,EAAE,MAAgC;QAC3F,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,cAAc,CAAC,aAAqB;QAClC,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;QACjF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,SAAiB;QACtB,MAAM,OAAO,GAAG;YACd,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;QACF,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;QACzC,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,CAAC;CAGF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PlayerEquipment } from '../types/types.js';
|
|
2
|
+
import { IPlayer, IPlayerConstructorConfig, LifestyleChoices } from '../types/interfaces.js';
|
|
3
|
+
import { Logger } from '../utilities/logger.js';
|
|
4
|
+
import { Room } from './room.js';
|
|
5
|
+
import { Item } from './item.js';
|
|
6
|
+
import { Inventory } from './inventory.js';
|
|
7
|
+
import { AbstractPlayer } from '../types/abstracts.js';
|
|
8
|
+
export declare class Player extends AbstractPlayer implements IPlayer {
|
|
9
|
+
readonly _playerName: string;
|
|
10
|
+
protected _currentLocation: Room;
|
|
11
|
+
protected _inventory: Inventory;
|
|
12
|
+
protected _equipment: PlayerEquipment;
|
|
13
|
+
protected _maxCarryingWeight: number;
|
|
14
|
+
protected _lifestyleChoices: LifestyleChoices;
|
|
15
|
+
protected logger: Logger;
|
|
16
|
+
private _currency;
|
|
17
|
+
constructor(config: IPlayerConstructorConfig);
|
|
18
|
+
get name(): string;
|
|
19
|
+
get currentLocation(): Room;
|
|
20
|
+
set currentLocation(room: Room);
|
|
21
|
+
get inventory(): Inventory;
|
|
22
|
+
get equipment(): PlayerEquipment;
|
|
23
|
+
set equipment(newEquipment: PlayerEquipment);
|
|
24
|
+
get maxCarryingWeight(): number;
|
|
25
|
+
set maxCarryingWeight(weight: number);
|
|
26
|
+
get currentWeight(): number;
|
|
27
|
+
addInventory(item: Item): void;
|
|
28
|
+
removeInventory(item: Item): boolean;
|
|
29
|
+
equip(item: Item): string;
|
|
30
|
+
unequip(input: string): string;
|
|
31
|
+
private determineEquipmentSlot;
|
|
32
|
+
private canEquip;
|
|
33
|
+
private unequipBySlot;
|
|
34
|
+
hear(actor: Player, message: string): void;
|
|
35
|
+
enterRoom(room: Room): void;
|
|
36
|
+
leaveRoom(): void;
|
|
37
|
+
get lifestyleChoices(): LifestyleChoices;
|
|
38
|
+
set lifestyleChoices(choices: LifestyleChoices);
|
|
39
|
+
get currency(): number;
|
|
40
|
+
set currency(amount: number);
|
|
41
|
+
adjustCurrency(delta: number): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { camelCase } from 'change-case';
|
|
2
|
+
import { Category } from '../types/enums.js';
|
|
3
|
+
import { Logger } from '../utilities/logger.js';
|
|
4
|
+
import { Room } from './room.js';
|
|
5
|
+
import { Inventory } from './inventory.js';
|
|
6
|
+
import { AbstractPlayer } from '../types/abstracts.js';
|
|
7
|
+
export class Player extends AbstractPlayer {
|
|
8
|
+
_playerName;
|
|
9
|
+
_currentLocation;
|
|
10
|
+
_inventory;
|
|
11
|
+
_equipment;
|
|
12
|
+
_maxCarryingWeight = 50;
|
|
13
|
+
_lifestyleChoices = [];
|
|
14
|
+
logger;
|
|
15
|
+
_currency = 0; // for seeding/debug only
|
|
16
|
+
constructor(config) {
|
|
17
|
+
super();
|
|
18
|
+
this._playerName = config.playerName;
|
|
19
|
+
this._currentLocation = config.startLocation || new Room({ name: 'Nexus', description: 'A featureless room' });
|
|
20
|
+
this._inventory = new Inventory();
|
|
21
|
+
this.logger = Logger.getInstance();
|
|
22
|
+
this._lifestyleChoices = config.lifestyleChoices ?? [];
|
|
23
|
+
if (config?.inventoryItems) {
|
|
24
|
+
for (const item of config.inventoryItems) {
|
|
25
|
+
this._inventory.addItem(item);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
this._equipment = config?.initialEquipment || {
|
|
29
|
+
head: null, torso: null, legs: null, feet: null,
|
|
30
|
+
arms: null, gloves: null, leftHand: null, rightHand: null
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
get name() {
|
|
34
|
+
return this._playerName;
|
|
35
|
+
}
|
|
36
|
+
get currentLocation() {
|
|
37
|
+
return this._currentLocation;
|
|
38
|
+
}
|
|
39
|
+
set currentLocation(room) {
|
|
40
|
+
if (this._currentLocation !== room) {
|
|
41
|
+
this.leaveRoom();
|
|
42
|
+
this.enterRoom(room);
|
|
43
|
+
}
|
|
44
|
+
this._currentLocation = room;
|
|
45
|
+
}
|
|
46
|
+
get inventory() {
|
|
47
|
+
return this._inventory;
|
|
48
|
+
}
|
|
49
|
+
get equipment() {
|
|
50
|
+
return this._equipment;
|
|
51
|
+
}
|
|
52
|
+
set equipment(newEquipment) {
|
|
53
|
+
this._equipment = newEquipment;
|
|
54
|
+
}
|
|
55
|
+
get maxCarryingWeight() {
|
|
56
|
+
return this._maxCarryingWeight;
|
|
57
|
+
}
|
|
58
|
+
set maxCarryingWeight(weight) {
|
|
59
|
+
if (weight > 0) {
|
|
60
|
+
this._maxCarryingWeight = weight;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
console.error('Max carrying weight must be positive.');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
get currentWeight() {
|
|
67
|
+
let totalWeight = this._inventory.getWeight();
|
|
68
|
+
for (const slot in this._equipment) {
|
|
69
|
+
const equippedItem = this._equipment[slot];
|
|
70
|
+
if (equippedItem) {
|
|
71
|
+
totalWeight += equippedItem.weight;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return totalWeight;
|
|
75
|
+
}
|
|
76
|
+
addInventory(item) {
|
|
77
|
+
if (this.currentWeight + item.weight > this.maxCarryingWeight) {
|
|
78
|
+
this.logger.write("Failed to add item to inventory due to weight limits.");
|
|
79
|
+
throw new Error("The item is too heavy to add to your inventory.");
|
|
80
|
+
}
|
|
81
|
+
this._inventory.addItem(item);
|
|
82
|
+
this.logger.write(`Added ${item.name} to player's inventory.`);
|
|
83
|
+
}
|
|
84
|
+
removeInventory(item) {
|
|
85
|
+
if (this._inventory.removeItem(item.name)) {
|
|
86
|
+
this.logger.write(`Removed ${item.name} from player's inventory.`);
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
this.logger.write(`Failed to remove ${item.name} from player's inventory.`);
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
equip(item) {
|
|
93
|
+
if (!this._inventory.hasItem(item.name)) {
|
|
94
|
+
return `You don't have ${item.name} in your inventory.`;
|
|
95
|
+
}
|
|
96
|
+
if (!this.canEquip(item)) {
|
|
97
|
+
return `You can't equip ${item.name}.`;
|
|
98
|
+
}
|
|
99
|
+
const slot = this.determineEquipmentSlot(item.category);
|
|
100
|
+
if (!slot) {
|
|
101
|
+
return `${item.name} doesn't fit any known equipment slot.`;
|
|
102
|
+
}
|
|
103
|
+
if (this.equipment[slot]) {
|
|
104
|
+
return `You are already wearing something on your ${slot}. You must unequip it first.`;
|
|
105
|
+
}
|
|
106
|
+
this.equipment[slot] = item;
|
|
107
|
+
this.removeInventory(item);
|
|
108
|
+
return `You equipped ${item.name}.`;
|
|
109
|
+
}
|
|
110
|
+
unequip(input) {
|
|
111
|
+
let slot = input;
|
|
112
|
+
if (!this.equipment[camelCase(slot)]) {
|
|
113
|
+
slot = this.determineEquipmentSlot(input);
|
|
114
|
+
if (!slot)
|
|
115
|
+
return `Invalid category or slot: ${input}.`;
|
|
116
|
+
}
|
|
117
|
+
return this.unequipBySlot(slot);
|
|
118
|
+
}
|
|
119
|
+
determineEquipmentSlot(input) {
|
|
120
|
+
switch (input.toLowerCase()) {
|
|
121
|
+
case Category.Weapon.toLowerCase(): return 'rightHand';
|
|
122
|
+
case Category.Shield.toLowerCase(): return 'leftHand';
|
|
123
|
+
case Category.Gloves.toLowerCase(): return 'gloves';
|
|
124
|
+
case Category.Helmet.toLowerCase():
|
|
125
|
+
case Category.Hat.toLowerCase(): return 'head';
|
|
126
|
+
case Category.Boots.toLowerCase(): return 'feet';
|
|
127
|
+
case Category.LegArmor.toLowerCase(): return 'legs';
|
|
128
|
+
case Category.ArmArmor.toLowerCase(): return 'arms';
|
|
129
|
+
case Category.BodyArmor.toLowerCase(): return 'torso';
|
|
130
|
+
case 'weapon': return 'rightHand';
|
|
131
|
+
case 'shield': return 'leftHand';
|
|
132
|
+
case 'helmet':
|
|
133
|
+
case 'hat': return 'head';
|
|
134
|
+
case 'boots': return 'feet';
|
|
135
|
+
case 'gloves': return 'gloves';
|
|
136
|
+
case 'leg armor':
|
|
137
|
+
case 'legarmor': return 'legs';
|
|
138
|
+
case 'arm armor':
|
|
139
|
+
case 'armarmor': return 'arms';
|
|
140
|
+
case 'body armor':
|
|
141
|
+
case 'bodyarmor':
|
|
142
|
+
case 'torso': return 'torso';
|
|
143
|
+
default: return null;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
canEquip(item) {
|
|
147
|
+
return Object.values(Category).includes(item.category);
|
|
148
|
+
}
|
|
149
|
+
unequipBySlot(slot) {
|
|
150
|
+
const itemToUnequip = this.equipment[slot];
|
|
151
|
+
if (!itemToUnequip) {
|
|
152
|
+
return `You don't have anything equipped in the ${slot} slot.`;
|
|
153
|
+
}
|
|
154
|
+
this.addInventory(itemToUnequip);
|
|
155
|
+
this.equipment[slot] = null;
|
|
156
|
+
return `You unequipped ${itemToUnequip.name}.`;
|
|
157
|
+
}
|
|
158
|
+
hear(actor, message) {
|
|
159
|
+
if (actor !== this) {
|
|
160
|
+
this.logger.log(`${actor.name} says: "${message}"`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
enterRoom(room) {
|
|
164
|
+
this._currentLocation = room;
|
|
165
|
+
room.on('speak', this.hear.bind(this));
|
|
166
|
+
this.logger.write(`${this.name} is now listening in room ${room.name}`);
|
|
167
|
+
}
|
|
168
|
+
leaveRoom() {
|
|
169
|
+
if (this._currentLocation) {
|
|
170
|
+
this._currentLocation.off('speak', this.hear.bind(this));
|
|
171
|
+
this.logger.write(`${this.name} is no longer listening in ${this._currentLocation.name}`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
get lifestyleChoices() {
|
|
175
|
+
return this._lifestyleChoices;
|
|
176
|
+
}
|
|
177
|
+
set lifestyleChoices(choices) {
|
|
178
|
+
this._lifestyleChoices = choices;
|
|
179
|
+
}
|
|
180
|
+
get currency() {
|
|
181
|
+
const items = this._inventory.getAllItems();
|
|
182
|
+
return items.reduce((sum, item) => {
|
|
183
|
+
return item.isCurrencyCarrier() ? sum + (item.currencyAmount || 0) : sum;
|
|
184
|
+
}, 0);
|
|
185
|
+
}
|
|
186
|
+
set currency(amount) {
|
|
187
|
+
this._currency = Math.max(0, amount); // retained for legacy/debug seeding only
|
|
188
|
+
}
|
|
189
|
+
adjustCurrency(delta) {
|
|
190
|
+
const carriers = this._inventory.getAllItems().filter(i => i.isCurrencyCarrier());
|
|
191
|
+
let remaining = delta;
|
|
192
|
+
for (const carrier of carriers) {
|
|
193
|
+
if (remaining > 0) {
|
|
194
|
+
remaining -= carrier.addCurrency(remaining);
|
|
195
|
+
}
|
|
196
|
+
else if (remaining < 0) {
|
|
197
|
+
remaining += carrier.deductCurrency(-remaining);
|
|
198
|
+
}
|
|
199
|
+
if (remaining === 0)
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
this._currency += remaining;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=player.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/player.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACV,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,MAAM,OAAO,MAAO,SAAQ,cAAc;IAC/B,WAAW,CAAS;IACnB,gBAAgB,CAAO;IACvB,UAAU,CAAY;IACtB,UAAU,CAAkB;IAC5B,kBAAkB,GAAG,EAAE,CAAC;IACxB,iBAAiB,GAAqB,EAAE,CAAC;IACzC,MAAM,CAAS;IAEjB,SAAS,GAAW,CAAC,CAAC,CAAC,yBAAyB;IAExD,YAAY,MAAgC;QAC1C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,aAAa,IAAI,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WA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