@maka/maka-cli 5.2.6 → 5.2.8
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/.claude/settings.local.json +2 -1
- package/bundle/typescript/package.json +119 -0
- package/bundle/typescript/src/README.md +37 -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 +24 -0
- package/bundle/typescript/src/commands/_index.js +26 -0
- package/bundle/typescript/src/commands/_index.js.map +1 -0
- package/bundle/typescript/src/commands/ai/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/ai/_index.js +3 -0
- package/bundle/typescript/src/commands/ai/_index.js.map +1 -0
- package/bundle/typescript/src/commands/ai/ai.command.d.ts +3 -0
- package/bundle/typescript/src/commands/ai/ai.command.js +83 -0
- package/bundle/typescript/src/commands/ai/ai.command.js.map +1 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js +900 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.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 +38 -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 +32 -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 +98 -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 +645 -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 +95 -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 +152 -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 +543 -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-registry.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js +26 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +23 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +33 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +58 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +63 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.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 +74 -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 +137 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js +26 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.d.ts +8 -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 +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +24 -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 +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +23 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js +33 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +41 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +54 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +13 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +53 -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 +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.d.ts +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +25 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +19 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +126 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +38 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +384 -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 +23 -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 +47 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +110 -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 +56 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +145 -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 +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +407 -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 +58 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +357 -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 +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +67 -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 +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +246 -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 +72 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +310 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.d.ts +0 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +281 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +397 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +47 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +52 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +62 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.d.ts +22 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +11 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +20 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.d.ts +152 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +90 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.d.ts +25 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js +27 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +80 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +72 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +67 -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 +68 -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 +21 -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 +127 -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 +168 -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 +95 -0
- package/bundle/typescript/src/commands/logout.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 +168 -0
- package/bundle/typescript/src/commands/proxy.js.map +1 -0
- package/bundle/typescript/src/commands/register.d.ts +1 -0
- package/bundle/typescript/src/commands/register.js +104 -0
- package/bundle/typescript/src/commands/register.js.map +1 -0
- package/bundle/typescript/src/commands/remote/_index.d.ts +4 -0
- package/bundle/typescript/src/commands/remote/_index.js +5 -0
- package/bundle/typescript/src/commands/remote/_index.js.map +1 -0
- package/bundle/typescript/src/commands/remote/logs.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/remote/logs.sub.cmd.js +36 -0
- package/bundle/typescript/src/commands/remote/logs.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/remote/reconfig.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/remote/reconfig.sub.cmd.js +70 -0
- package/bundle/typescript/src/commands/remote/reconfig.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/remote/remote.command.d.ts +3 -0
- package/bundle/typescript/src/commands/remote/remote.command.js +13 -0
- package/bundle/typescript/src/commands/remote/remote.command.js.map +1 -0
- package/bundle/typescript/src/commands/remote/ssh.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/remote/ssh.sub.cmd.js +44 -0
- package/bundle/typescript/src/commands/remote/ssh.sub.cmd.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 +82 -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 +200 -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 +129 -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/ssl.d.ts +1 -0
- package/bundle/typescript/src/commands/ssl.js +109 -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 +4 -0
- package/bundle/typescript/src/commands/version/_index.js +5 -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/meteor.sub.cmd.d.ts +3 -0
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js +21 -0
- package/bundle/typescript/src/commands/version/meteor.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 +83 -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 +59 -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 +394 -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 +257 -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 +69 -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 +78 -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 +99 -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 +75 -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 +85 -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 +112 -0
- package/bundle/typescript/src/generators/hook.js.map +1 -0
- package/bundle/typescript/src/generators/kits/_index.d.ts +5 -0
- package/bundle/typescript/src/generators/kits/_index.js +6 -0
- package/bundle/typescript/src/generators/kits/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/kits/auth/_index.js +5 -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/auth0-meteor.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js +895 -0
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.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 +213 -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 +138 -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/frames/_index.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/frames/_index.js +2 -0
- package/bundle/typescript/src/generators/kits/frames/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js +166 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.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 +4 -0
- package/bundle/typescript/src/generators/kits/mui/_index.js +5 -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 +228 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js +158 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.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 +210 -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 +79 -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 +116 -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 +65 -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 +71 -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 +194 -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 +68 -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/aws/cloudformation/create-ec2-instance.template +14 -0
- package/bundle/typescript/src/templates/meteor/api/api.js +20 -0
- package/bundle/typescript/src/templates/meteor/api/api.js.ts +20 -0
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js +50 -0
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js.ts +55 -0
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js +63 -0
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js.ts +69 -0
- package/bundle/typescript/src/templates/meteor/api/methods.js +39 -0
- package/bundle/typescript/src/templates/meteor/api/methods.js.ts +40 -0
- package/bundle/typescript/src/templates/meteor/api/register-api.js +3 -0
- package/bundle/typescript/src/templates/meteor/api/register-api.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/api/resolvers.js +9 -0
- package/bundle/typescript/src/templates/meteor/api/resolvers.js.ts +9 -0
- package/bundle/typescript/src/templates/meteor/api/tests.js +0 -0
- package/bundle/typescript/src/templates/meteor/api/tests.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js +6 -0
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js.ts +6 -0
- package/bundle/typescript/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/client/body.html +3 -0
- package/bundle/typescript/src/templates/meteor/app/client/head.html +12 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.jsx +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.ts +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.tsx +15 -0
- package/bundle/typescript/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.jsx +107 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.tsx +108 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js +39 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.jsx +33 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.tsx +33 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.jsx +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.tsx +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +28 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +28 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.jsx +98 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.tsx +98 -0
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js +24 -0
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -0
- package/bundle/typescript/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.jsx +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.tsx +3 -0
- package/bundle/typescript/src/templates/meteor/app/maka.d.ts +504 -0
- package/bundle/typescript/src/templates/meteor/app/meteor.d.ts +954 -0
- package/bundle/typescript/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/manifest.json +27 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.jsx +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.ts +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.tsx +30 -0
- package/bundle/typescript/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.ts +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.jsx +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.ts +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.tsx +13 -0
- package/bundle/typescript/src/templates/meteor/app/tsconfig.json +40 -0
- package/bundle/typescript/src/templates/meteor/collection/collection.js +51 -0
- package/bundle/typescript/src/templates/meteor/collection/collection.js.ts +55 -0
- package/bundle/typescript/src/templates/meteor/collection/tests.js +27 -0
- package/bundle/typescript/src/templates/meteor/collection/tests.js.ts +27 -0
- package/bundle/typescript/src/templates/meteor/config/docker-compose.yaml +17 -0
- package/bundle/typescript/src/templates/meteor/config/pm2.config.js +27 -0
- package/bundle/typescript/src/templates/meteor/config/process.env +5 -0
- package/bundle/typescript/src/templates/meteor/config/settings.json +11 -0
- package/bundle/typescript/src/templates/meteor/config/ssh.json +6 -0
- package/bundle/typescript/src/templates/meteor/dbc/config.js +70 -0
- package/bundle/typescript/src/templates/meteor/dbc/config.js.ts +70 -0
- package/bundle/typescript/src/templates/meteor/dbc/conn.js +37 -0
- package/bundle/typescript/src/templates/meteor/dbc/conn.js.ts +37 -0
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js +3 -0
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/method/method.js +48 -0
- package/bundle/typescript/src/templates/meteor/method/method.js.ts +48 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/package.js +37 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.jsx +37 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.ts +36 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.tsx +37 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.jsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.ts +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.tsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.jsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.ts +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.tsx +5 -0
- package/bundle/typescript/src/templates/meteor/project/.maka/config.json +29 -0
- package/bundle/typescript/src/templates/meteor/project/.maka/history.json +1 -0
- package/bundle/typescript/src/templates/meteor/project/README.md +33 -0
- package/bundle/typescript/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/project/build/README +4 -0
- package/bundle/typescript/src/templates/meteor/project/gitignore +9 -0
- package/bundle/typescript/src/templates/meteor/project/package.json +29 -0
- package/bundle/typescript/src/templates/meteor/publish/publish.js +3 -0
- package/bundle/typescript/src/templates/meteor/publish/publish.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js +27 -0
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js.ts +27 -0
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css +5 -0
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css.less +5 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js +1 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.jsx +55 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.tsx +55 -0
- package/bundle/typescript/src/templates/meteor/template/template.css +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.css.less +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.css.scss +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.html +5 -0
- package/bundle/typescript/src/templates/meteor/template/template.js +20 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.jsx +77 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.tsx +89 -0
- package/bundle/typescript/src/templates/react/component/component.css +6 -0
- package/bundle/typescript/src/templates/react/component/component.css.less +6 -0
- package/bundle/typescript/src/templates/react/component/component.css.scss +3 -0
- package/bundle/typescript/src/templates/react/component/component.js.jsx +54 -0
- package/bundle/typescript/src/templates/react/component/component.js.tsx +59 -0
- package/bundle/typescript/src/templates/react/hook/hook.css +3 -0
- package/bundle/typescript/src/templates/react/hook/hook.css.scss +3 -0
- package/bundle/typescript/src/templates/react/hook/hook.js.jsx +19 -0
- package/bundle/typescript/src/templates/react/hook/hook.js.tsx +18 -0
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +293 -0
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +329 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.jsx +178 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.tsx +178 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.jsx +59 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.tsx +67 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.jsx +273 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.tsx +275 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.jsx +182 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.tsx +199 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +138 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.tsx +136 -0
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.jsx +29 -0
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.tsx +32 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.css +63 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.jsx +153 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.tsx +164 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.css +105 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.jsx +158 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.tsx +166 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +34 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +53 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +53 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +25 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +25 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +41 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +35 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.jsx +71 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.tsx +71 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.jsx +123 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.tsx +123 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.jsx +56 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.tsx +74 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +43 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +43 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +121 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +117 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.jsx +41 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.tsx +41 -0
- package/bundle/typescript/src/templates/react/route/route.js +8 -0
- package/bundle/typescript/src/templates/react/route/route.js.jsx +5 -0
- package/bundle/typescript/src/templates/react/route/route.js.ts +8 -0
- package/bundle/typescript/src/templates/react/route/route.js.tsx +5 -0
- package/bundle/typescript/src/templates/react/test/test.js +1 -0
- package/bundle/typescript/src/templates/react/test/test.js.jsx +38 -0
- package/bundle/typescript/src/templates/react/test/test.js.ts +1 -0
- package/bundle/typescript/src/templates/react/test/test.js.tsx +38 -0
- package/bundle/typescript/src/templates/service/docker/Dockerfile +54 -0
- package/bundle/typescript/src/templates/service/eslint/babel.config.js +15 -0
- package/bundle/typescript/src/templates/service/eslint/config.eslint.js +57 -0
- package/bundle/typescript/src/templates/service/i18n/i18n.js +33 -0
- package/bundle/typescript/src/templates/service/i18n/i18n.js.ts +33 -0
- package/bundle/typescript/src/templates/service/i18n/index.js +0 -0
- package/bundle/typescript/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/typescript/src/templates/service/i18n/locales.js +3 -0
- package/bundle/typescript/src/templates/service/i18n/locales.js.ts +3 -0
- package/bundle/typescript/src/templates/service/openssl/openssl.conf +22 -0
- package/bundle/typescript/src/templates/service/test/jest/jest.config.js +6 -0
- package/bundle/typescript/src/templates/service/test/jest/jest.setup.js +7 -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 +29 -0
- package/bundle/typescript/src/tools/actions/actions.class.js +58 -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 +130 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js +685 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js.map +1 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +191 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +64 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.class.d.ts +13 -0
- package/bundle/typescript/src/tools/https/https.class.js +302 -0
- package/bundle/typescript/src/tools/https/https.class.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.interface.d.ts +40 -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 +26 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.js +523 -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 +198 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js +868 -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.d.ts +0 -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 +1 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { Logger } from '../utilities/logger.js';
|
|
2
|
+
import { Direction } from '../types/shared/direction-enum.js';
|
|
3
|
+
import { Door } from './door.js';
|
|
4
|
+
import { Inventory } from './inventory.js';
|
|
5
|
+
import { HTTPS } from '../../../../tools/https/https.class.js';
|
|
6
|
+
import { AbstractRoom } from '../types/shared/abstracts.js';
|
|
7
|
+
export class Room extends AbstractRoom {
|
|
8
|
+
logger = Logger.getInstance();
|
|
9
|
+
actors = new Set();
|
|
10
|
+
_owner;
|
|
11
|
+
hasAIDescription;
|
|
12
|
+
name;
|
|
13
|
+
description;
|
|
14
|
+
details;
|
|
15
|
+
exits = new Map();
|
|
16
|
+
roomType;
|
|
17
|
+
isStartRoom;
|
|
18
|
+
inventory = new Inventory();
|
|
19
|
+
supportedLifestyles;
|
|
20
|
+
governsCurrency = false;
|
|
21
|
+
tags;
|
|
22
|
+
_currencyLedger = new Map(); // playerName → currency carrier items
|
|
23
|
+
constructor(config) {
|
|
24
|
+
super();
|
|
25
|
+
this.name = config.name;
|
|
26
|
+
this.description = config.description;
|
|
27
|
+
this.roomType = config.roomType;
|
|
28
|
+
this.exits = config.exits || new Map();
|
|
29
|
+
this.inventory = config.inventory || new Inventory();
|
|
30
|
+
this.puzzle = config.puzzle;
|
|
31
|
+
this.isStartRoom = config.isStartRoom || false;
|
|
32
|
+
this.supportedLifestyles = config.supportedLifestyles;
|
|
33
|
+
this.logger.write(`Room created: ${this.name}`);
|
|
34
|
+
this.tags = config.tags;
|
|
35
|
+
}
|
|
36
|
+
get owner() {
|
|
37
|
+
return this._owner;
|
|
38
|
+
}
|
|
39
|
+
set owner(owner) {
|
|
40
|
+
this._owner = owner;
|
|
41
|
+
}
|
|
42
|
+
async ensureAIDescription(sceneContext) {
|
|
43
|
+
if (!this.hasAIDescription) {
|
|
44
|
+
const prompt = `
|
|
45
|
+
You are a game narrator. Based on the following context, generate a rich, immersive description of the current room that enhances but does not repeat the existing description.
|
|
46
|
+
|
|
47
|
+
Scene context: ${sceneContext}
|
|
48
|
+
|
|
49
|
+
Room name: ${this.name}
|
|
50
|
+
Room description: ${this.description}
|
|
51
|
+
|
|
52
|
+
Include any mood, atmosphere, or inferred meaning from the surroundings.
|
|
53
|
+
Keep it concise and dramatic.`;
|
|
54
|
+
try {
|
|
55
|
+
const result = await HTTPS.askGPT({
|
|
56
|
+
prompt,
|
|
57
|
+
openApiKey: process.env.OPENAI_API_KEY || '',
|
|
58
|
+
model: 'gpt-4.1'
|
|
59
|
+
});
|
|
60
|
+
if (JSON.parse(result.data).error) {
|
|
61
|
+
throw new Error(JSON.parse(result.data).error.message);
|
|
62
|
+
}
|
|
63
|
+
const reply = JSON.parse(result.data)?.choices?.[0]?.message?.content?.trim();
|
|
64
|
+
if (reply) {
|
|
65
|
+
this.details = reply;
|
|
66
|
+
this.hasAIDescription = true;
|
|
67
|
+
this.logger.write(`Generated AI description for ${this.name}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
this.logger.write(`GPT fallback for AI description: ${err}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
addActor(actor) {
|
|
76
|
+
// Only do binding logic if the actor was not already present
|
|
77
|
+
const wasAdded = !this.actors.has(actor);
|
|
78
|
+
this.actors.add(actor);
|
|
79
|
+
if (wasAdded) {
|
|
80
|
+
this.emit('enter', actor);
|
|
81
|
+
// Bind mutual vision
|
|
82
|
+
for (const other of this.actors) {
|
|
83
|
+
if (other !== actor) {
|
|
84
|
+
other.on('action', actor._onSeenAction); // actor sees other
|
|
85
|
+
this.logger.write(`${actor.name} will observe ${other.name}`);
|
|
86
|
+
actor.on('action', other._onSeenAction); // other sees actor
|
|
87
|
+
this.logger.write(`${other.name} will observe ${actor.name}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
removeActor(actor) {
|
|
93
|
+
if (!this.actors.has(actor))
|
|
94
|
+
return;
|
|
95
|
+
this.actors.delete(actor);
|
|
96
|
+
this.emit('leave', actor);
|
|
97
|
+
// Unbind mutual vision
|
|
98
|
+
for (const other of this.actors) {
|
|
99
|
+
if (other !== actor) {
|
|
100
|
+
other.off('action', actor._onSeenAction);
|
|
101
|
+
actor.off('action', other._onSeenAction);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
getActors() {
|
|
106
|
+
return Array.from(this.actors);
|
|
107
|
+
}
|
|
108
|
+
say(actor, message) {
|
|
109
|
+
for (const recipient of this.actors) {
|
|
110
|
+
if (recipient !== actor) {
|
|
111
|
+
recipient.hear(actor, message);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
addExit(direction, targetRoom, keyItemOrSolution) {
|
|
116
|
+
let door = this.findExistingDoor(targetRoom);
|
|
117
|
+
if (!door) {
|
|
118
|
+
door = new Door({
|
|
119
|
+
roomA: this,
|
|
120
|
+
roomB: targetRoom,
|
|
121
|
+
isLocked: Boolean(keyItemOrSolution),
|
|
122
|
+
unlockItemOrSolution: keyItemOrSolution,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
this.exits.set(direction, door);
|
|
126
|
+
targetRoom.exits.set(this.getOppositeDirection(direction), door);
|
|
127
|
+
}
|
|
128
|
+
attemptUnlockExit(direction, itemOrSolution) {
|
|
129
|
+
const exit = this.exits.get(direction);
|
|
130
|
+
if (exit instanceof Door) {
|
|
131
|
+
const result = exit.attemptUnlock(itemOrSolution);
|
|
132
|
+
this.logger.write(`Attempted to unlock exit in direction ${direction}. Success: ${result}`);
|
|
133
|
+
return result ? `The ${exit.roomB.name}!` : `The ${exit.roomB.name} remains locked.`;
|
|
134
|
+
}
|
|
135
|
+
this.logger.write(`No locked exit found in direction ${direction}`);
|
|
136
|
+
return `There's no locked exit in that direction.`;
|
|
137
|
+
}
|
|
138
|
+
getExit(direction) {
|
|
139
|
+
this.logger.write(`Fetching exit in direction: ${direction}`);
|
|
140
|
+
return this.exits.get(direction);
|
|
141
|
+
}
|
|
142
|
+
isExitLocked(direction) {
|
|
143
|
+
const exit = this.exits.get(direction);
|
|
144
|
+
const isLocked = exit instanceof Door && exit.checkIfLocked();
|
|
145
|
+
this.logger.write(`Checking if exit in direction ${direction} is locked. Result: ${isLocked}`);
|
|
146
|
+
return isLocked;
|
|
147
|
+
}
|
|
148
|
+
addItem(item) {
|
|
149
|
+
this.inventory.addItem(item);
|
|
150
|
+
this.logger.write(`Item added to room ${this.name}: ${item.name}`);
|
|
151
|
+
}
|
|
152
|
+
removeItem(item) {
|
|
153
|
+
if (this.inventory.hasItem(item.name)) {
|
|
154
|
+
this.inventory.removeItem(item.name);
|
|
155
|
+
this.logger.write(`Item removed from room ${this.name}: ${item.name}`);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
this.logger.write(`Attempted to remove item that's not in room ${this.name}: ${item.name}`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
setPuzzle(puzzle) {
|
|
162
|
+
this.puzzle = puzzle;
|
|
163
|
+
this.logger.write(`Puzzle set for room ${this.name}: ${puzzle.riddle}`);
|
|
164
|
+
}
|
|
165
|
+
getOppositeDirection(direction) {
|
|
166
|
+
switch (direction) {
|
|
167
|
+
case 'north': return Direction.SOUTH;
|
|
168
|
+
case 'south': return Direction.NORTH;
|
|
169
|
+
case 'east': return Direction.WEST;
|
|
170
|
+
case 'west': return Direction.EAST;
|
|
171
|
+
case 'up': return Direction.DOWN;
|
|
172
|
+
case 'down': return Direction.UP;
|
|
173
|
+
default: throw new Error(`Invalid direction: ${direction}`);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
findExistingDoor(targetRoom) {
|
|
177
|
+
for (const exit of this.exits.values()) {
|
|
178
|
+
if (exit instanceof Door) {
|
|
179
|
+
if ((exit.roomA === this && exit.roomB === targetRoom) || (exit.roomB === this && exit.roomA === targetRoom)) {
|
|
180
|
+
return exit;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
supportsResidence(type) {
|
|
187
|
+
return this.supportedLifestyles?.residenceTypes?.includes(type) ?? false;
|
|
188
|
+
}
|
|
189
|
+
supportsEmployment(role) {
|
|
190
|
+
return this.supportedLifestyles?.employmentRoles?.includes(role) ?? false;
|
|
191
|
+
}
|
|
192
|
+
depositCurrencyCarrier(player, item) {
|
|
193
|
+
if (!this.governsCurrency || !item.isCurrencyCarrier())
|
|
194
|
+
return false;
|
|
195
|
+
if (!this._currencyLedger.has(player.name)) {
|
|
196
|
+
this._currencyLedger.set(player.name, []);
|
|
197
|
+
}
|
|
198
|
+
this._currencyLedger.get(player.name).push(item);
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
getPlayerCurrency(player) {
|
|
202
|
+
const items = this._currencyLedger.get(player.name);
|
|
203
|
+
if (!items)
|
|
204
|
+
return 0;
|
|
205
|
+
return items.reduce((sum, item) => sum + item.currencyAmount, 0);
|
|
206
|
+
}
|
|
207
|
+
withdrawCurrencyCarrier(player, itemName) {
|
|
208
|
+
const items = this._currencyLedger.get(player.name);
|
|
209
|
+
if (!items)
|
|
210
|
+
return null;
|
|
211
|
+
const index = items.findIndex(i => i.name === itemName);
|
|
212
|
+
if (index === -1)
|
|
213
|
+
return null;
|
|
214
|
+
const [removed] = items.splice(index, 1);
|
|
215
|
+
return removed;
|
|
216
|
+
}
|
|
217
|
+
get currencyLedger() {
|
|
218
|
+
return this._currencyLedger;
|
|
219
|
+
}
|
|
220
|
+
storeItemFromActor(actor, item) {
|
|
221
|
+
if (this.governsCurrency && item.isCurrencyCarrier()) {
|
|
222
|
+
if (this.depositCurrencyCarrier(actor, item)) {
|
|
223
|
+
this.logger.write(`Stored currency carrier from ${actor.name} in ${this.name}`);
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
const rawResidence = actor.lifestyleChoices?.find(l => l.type === 'residence')?.metadata;
|
|
228
|
+
const residenceLifestyle = typeof rawResidence === 'object' && rawResidence !== null && 'lifestyle' in rawResidence
|
|
229
|
+
? rawResidence
|
|
230
|
+
: undefined;
|
|
231
|
+
const actorResidence = residenceLifestyle?.location;
|
|
232
|
+
if (actorResidence && this.supportsResidence(actorResidence)) {
|
|
233
|
+
this.inventory.addSecureItem?.(actor.name, item); // assumes secure storage per actor
|
|
234
|
+
this.logger.write(`Item securely stored for ${actor.name} in their residence: ${this.name}`);
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
this.logger.write(`${item} cannot be sstored by ${actor.name} in room ${this.name}`);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
getItemsForActor(actor) {
|
|
241
|
+
const visibleItems = this.inventory.getAllItems();
|
|
242
|
+
const secureItems = this.inventory.getSecureItemsFor(actor.name);
|
|
243
|
+
return [...visibleItems, ...secureItems];
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=room.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"room.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAK9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAoB5D,MAAM,OAAO,IAAK,SAAQ,YAAY;IAC5B,MAAM,GAAW,MAAM,CAAC,WAAW,EAAE,CAAC;IACtC,MAAM,GAAgB,IAAI,GAAG,EAAE,CAAC;IAChC,MAAM,CAAU;IAChB,gBAAgB,CAAW;IAC5B,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,OAAO,CAAU;IACjB,KAAK,GAAkC,IAAI,GAAG,EAAE,CAAC;IACjD,QAAQ,CAAS;IACjB,WAA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CAAC;QACd,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,yBAAyB,KAAK,CAAC,IAAI,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACrF,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gBAAgB,CAAC,KAAa;QAC5B,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Room, Player, Item, Puzzle, NPC, Inventory } from './_index.js';
|
|
2
|
+
import { Logger } from '../utilities/logger.js';
|
|
3
|
+
import { Direction } from '../types/shared/direction-enum.js';
|
|
4
|
+
import Game from '../game.js';
|
|
5
|
+
import { AbstractScene } from '../types/shared/abstracts.js';
|
|
6
|
+
export interface ISceneConstructorConfig {
|
|
7
|
+
player: Player;
|
|
8
|
+
currency?: {
|
|
9
|
+
type: string;
|
|
10
|
+
authorityRoomTags: string[];
|
|
11
|
+
};
|
|
12
|
+
residenceTiers: string[];
|
|
13
|
+
puzzles?: Puzzle[];
|
|
14
|
+
items?: Item[];
|
|
15
|
+
story: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class Scene extends AbstractScene {
|
|
18
|
+
name: string;
|
|
19
|
+
story: string;
|
|
20
|
+
protected player: Player;
|
|
21
|
+
protected logger: Logger;
|
|
22
|
+
protected actors: Map<string, (Player | NPC)>;
|
|
23
|
+
protected game: Game;
|
|
24
|
+
protected characterLocations: Map<string, Room>;
|
|
25
|
+
private _residenceTiers;
|
|
26
|
+
protected rooms: Record<string, Room>;
|
|
27
|
+
private roomOwnership;
|
|
28
|
+
private itemOwnership;
|
|
29
|
+
currency: {
|
|
30
|
+
type: string;
|
|
31
|
+
authorityRoomTags: string[];
|
|
32
|
+
};
|
|
33
|
+
constructor(config: ISceneConstructorConfig);
|
|
34
|
+
initialize(game: Game): void;
|
|
35
|
+
updateExits(room: Room): void;
|
|
36
|
+
endGame(): void;
|
|
37
|
+
isInitalized(): boolean;
|
|
38
|
+
updateInventory(playerInventory: Inventory): void;
|
|
39
|
+
setOwner(entity: Room | Item, owner: string): void;
|
|
40
|
+
getOwner(entity: Room | Item): string | undefined;
|
|
41
|
+
getOwnedItemsBy(owner: string): Item[];
|
|
42
|
+
getOwnedRoomsBy(owner: string): Room[];
|
|
43
|
+
addActor(actor: Player | NPC): void;
|
|
44
|
+
removeActor(name: string): void;
|
|
45
|
+
getActor(name: string): Player | NPC | undefined;
|
|
46
|
+
get allActors(): (Player | NPC)[];
|
|
47
|
+
getActorsInRoom(room: Room): (Player | NPC)[];
|
|
48
|
+
private normalize;
|
|
49
|
+
addRoom(room: Room): void;
|
|
50
|
+
removeRoom(roomName: string): boolean;
|
|
51
|
+
addItemToRoom(item: Item, roomName: string): void;
|
|
52
|
+
addPuzzleToRoom(puzzle: Puzzle, roomName: string): void;
|
|
53
|
+
setCharacterLocation(character: Player | NPC, roomName: string): void;
|
|
54
|
+
getCharacterLocation(character: Player | NPC): Room | undefined;
|
|
55
|
+
determineStartRoom(): Room;
|
|
56
|
+
getPlayer(): Player;
|
|
57
|
+
getRooms(): Record<string, Room>;
|
|
58
|
+
listRooms(): string[];
|
|
59
|
+
getRoom(roomName: string): Room;
|
|
60
|
+
connectRooms(roomNameA: string, direction: Direction, roomNameB: string, keyItemOrSolution?: string): void;
|
|
61
|
+
private hasRoomSupportingResidence;
|
|
62
|
+
private hasRoomSupportingEmployment;
|
|
63
|
+
private hasItemSupportingAddiction;
|
|
64
|
+
validateLifestyleSupport(): void;
|
|
65
|
+
private validatePuzzleRequirements;
|
|
66
|
+
getCurrencyType(): string;
|
|
67
|
+
isValidCurrencyCarrier(item: Item): boolean;
|
|
68
|
+
getCurrencyAggregationByTag(): Record<string, Record<string, number>>;
|
|
69
|
+
get residenceTiers(): string[];
|
|
70
|
+
set residenceTiers(tiers: string[]);
|
|
71
|
+
isValidResidenceTier(tier: string): boolean;
|
|
72
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { Logger } from '../utilities/logger.js';
|
|
2
|
+
import { Category } from '../types/shared/item-enum.js';
|
|
3
|
+
import { AbstractScene } from '../types/shared/abstracts.js';
|
|
4
|
+
export class Scene extends AbstractScene {
|
|
5
|
+
name;
|
|
6
|
+
story;
|
|
7
|
+
player;
|
|
8
|
+
logger;
|
|
9
|
+
actors;
|
|
10
|
+
game;
|
|
11
|
+
characterLocations = new Map();
|
|
12
|
+
_residenceTiers = [];
|
|
13
|
+
rooms = {};
|
|
14
|
+
roomOwnership = new Map(); // Room name → owner name
|
|
15
|
+
itemOwnership = new Map(); // Item name → owner name
|
|
16
|
+
currency;
|
|
17
|
+
constructor(config) {
|
|
18
|
+
super();
|
|
19
|
+
this.player = config.player;
|
|
20
|
+
this.logger = Logger.getInstance();
|
|
21
|
+
this.actors = new Map();
|
|
22
|
+
this.currency = config.currency ?? {
|
|
23
|
+
type: 'nuyen',
|
|
24
|
+
authorityRoomTags: ['Bank'],
|
|
25
|
+
};
|
|
26
|
+
this.residenceTiers = config.residenceTiers ?? [];
|
|
27
|
+
this.logger.write(`Scene initialized.`);
|
|
28
|
+
this.validateLifestyleSupport();
|
|
29
|
+
this.validatePuzzleRequirements(config.puzzles ?? [], config.items ?? []);
|
|
30
|
+
this.story = config.story;
|
|
31
|
+
}
|
|
32
|
+
initialize(game) {
|
|
33
|
+
this.player.currentLocation = this.determineStartRoom();
|
|
34
|
+
this.addActor(this.player);
|
|
35
|
+
this.game = game;
|
|
36
|
+
}
|
|
37
|
+
updateExits(room) {
|
|
38
|
+
this.game.updateExits(room);
|
|
39
|
+
}
|
|
40
|
+
endGame() {
|
|
41
|
+
this.game.close();
|
|
42
|
+
}
|
|
43
|
+
isInitalized() {
|
|
44
|
+
return this.game.initialized;
|
|
45
|
+
}
|
|
46
|
+
updateInventory(playerInventory) {
|
|
47
|
+
this.game.updateInventory(playerInventory);
|
|
48
|
+
}
|
|
49
|
+
setOwner(entity, owner) {
|
|
50
|
+
if ('addItem' in entity) {
|
|
51
|
+
// It's a Room
|
|
52
|
+
this.roomOwnership.set(entity.name, owner);
|
|
53
|
+
entity.owner = owner;
|
|
54
|
+
this.logger.write(`Set owner of room "${entity.name}" to "${owner}"`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
// It's an Item
|
|
58
|
+
this.itemOwnership.set(entity.name, owner);
|
|
59
|
+
entity.owner = owner;
|
|
60
|
+
this.logger.write(`Set owner of item "${entity.name}" to "${owner}"`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
getOwner(entity) {
|
|
64
|
+
if ('addItem' in entity) {
|
|
65
|
+
return this.roomOwnership.get(entity.name);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return this.itemOwnership.get(entity.name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
getOwnedItemsBy(owner) {
|
|
72
|
+
const items = [];
|
|
73
|
+
for (const room of Object.values(this.rooms)) {
|
|
74
|
+
for (const item of room.inventory.getAllItems()) {
|
|
75
|
+
if (this.itemOwnership.get(item.name) === owner) {
|
|
76
|
+
items.push(item);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return items;
|
|
81
|
+
}
|
|
82
|
+
getOwnedRoomsBy(owner) {
|
|
83
|
+
return Object.values(this.rooms).filter(room => this.roomOwnership.get(room.name) === owner);
|
|
84
|
+
}
|
|
85
|
+
addActor(actor) {
|
|
86
|
+
if (this.actors.has(actor.name)) {
|
|
87
|
+
throw new Error(`Actor with name ${actor.name} already exists in the scene.`);
|
|
88
|
+
}
|
|
89
|
+
this.logger.write(`Actor with name ${actor.name} has been added to the scene.`);
|
|
90
|
+
this.actors.set(actor.name, actor);
|
|
91
|
+
}
|
|
92
|
+
removeActor(name) {
|
|
93
|
+
const actor = this.actors.get(name);
|
|
94
|
+
if (!actor) {
|
|
95
|
+
throw new Error(`No actor with name ${name} found in the scene.`);
|
|
96
|
+
}
|
|
97
|
+
const room = actor.currentLocation;
|
|
98
|
+
if (room && actor.inventory) {
|
|
99
|
+
const items = actor.inventory.getAllItems();
|
|
100
|
+
for (const item of items) {
|
|
101
|
+
const didDrop = actor.inventory.transferItemTo(item.name, room.inventory);
|
|
102
|
+
if (didDrop) {
|
|
103
|
+
this.logger.write(`${actor.name} dropped ${item.name} into ${room.name} upon removal.`);
|
|
104
|
+
actor.performAction(`on death drops`, item.name);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
room.removeActor(actor);
|
|
109
|
+
this.actors.delete(name);
|
|
110
|
+
this.logger.write(`Removed actor: ${name}`);
|
|
111
|
+
}
|
|
112
|
+
getActor(name) {
|
|
113
|
+
return this.actors.get(name);
|
|
114
|
+
}
|
|
115
|
+
get allActors() {
|
|
116
|
+
return Array.from(this.actors.values());
|
|
117
|
+
}
|
|
118
|
+
getActorsInRoom(room) {
|
|
119
|
+
return room.getActors();
|
|
120
|
+
}
|
|
121
|
+
normalize(input) {
|
|
122
|
+
return input.normalize('NFKD').replace(/[’']/g, "'").trim().toLowerCase();
|
|
123
|
+
}
|
|
124
|
+
addRoom(room) {
|
|
125
|
+
this.rooms[this.normalize(room.name)] = room;
|
|
126
|
+
this.logger.write(`Added room to scene: ${room.name}`);
|
|
127
|
+
}
|
|
128
|
+
removeRoom(roomName) {
|
|
129
|
+
if (this.getRoom(roomName)) {
|
|
130
|
+
delete this.rooms[this.normalize(roomName)];
|
|
131
|
+
this.logger.write(`Removed room from scene: ${roomName}`);
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
this.logger.write(`Attempted to remove a non-existent room from scene: ${roomName}`);
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
addItemToRoom(item, roomName) {
|
|
140
|
+
const room = this.getRoom(roomName);
|
|
141
|
+
if (room) {
|
|
142
|
+
room.addItem(item);
|
|
143
|
+
this.logger.write(`Added item ${item.name} to room ${room.name}`);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
this.logger.write(`Failed to add item ${item.name}. Room ${roomName} not found in scene.`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
addPuzzleToRoom(puzzle, roomName) {
|
|
150
|
+
const room = this.getRoom(roomName);
|
|
151
|
+
if (room) {
|
|
152
|
+
room.setPuzzle(puzzle);
|
|
153
|
+
this.logger.write(`Added puzzle to room ${room.name}`);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
this.logger.write(`Failed to add puzzle. Room ${roomName} not found in scene.`);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
setCharacterLocation(character, roomName) {
|
|
160
|
+
const room = this.getRoom(roomName);
|
|
161
|
+
if (room) {
|
|
162
|
+
this.characterLocations.set(character.name, room);
|
|
163
|
+
// Remove from old room first, if needed
|
|
164
|
+
const currentRoom = character.currentLocation;
|
|
165
|
+
if (currentRoom && currentRoom !== room) {
|
|
166
|
+
currentRoom.removeActor(character);
|
|
167
|
+
}
|
|
168
|
+
// Add to new room
|
|
169
|
+
room.addActor(character);
|
|
170
|
+
character.currentLocation = room;
|
|
171
|
+
this.logger.write(`${character.name} is now in room ${room.name}`);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
this.logger.error(`Failed to set ${character.name}'s location. Room ${roomName} not found in scene.`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
getCharacterLocation(character) {
|
|
178
|
+
return this.characterLocations.get(character.name);
|
|
179
|
+
}
|
|
180
|
+
determineStartRoom() {
|
|
181
|
+
const startRoomCandidates = [];
|
|
182
|
+
for (const roomName in this.rooms) {
|
|
183
|
+
if (this.rooms.hasOwnProperty(roomName)) {
|
|
184
|
+
const room = this.getRoom(roomName);
|
|
185
|
+
if (room.isStartRoom) {
|
|
186
|
+
startRoomCandidates.push(room);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (startRoomCandidates.length > 1) {
|
|
191
|
+
throw new Error("Multiple starting rooms have been defined. Please ensure there's only one starting room.");
|
|
192
|
+
}
|
|
193
|
+
if (startRoomCandidates.length === 1) {
|
|
194
|
+
return startRoomCandidates[0];
|
|
195
|
+
}
|
|
196
|
+
const roomNames = Object.keys(this.rooms);
|
|
197
|
+
if (roomNames.length === 0) {
|
|
198
|
+
throw new Error("No rooms have been defined in the game.");
|
|
199
|
+
}
|
|
200
|
+
console.warn("No starting room designated. Defaulting to the first room.");
|
|
201
|
+
return this.getRoom(roomNames[0]);
|
|
202
|
+
}
|
|
203
|
+
getPlayer() {
|
|
204
|
+
return this.player;
|
|
205
|
+
}
|
|
206
|
+
getRooms() {
|
|
207
|
+
return this.rooms;
|
|
208
|
+
}
|
|
209
|
+
listRooms() {
|
|
210
|
+
return Object.keys(this.rooms).sort();
|
|
211
|
+
}
|
|
212
|
+
getRoom(roomName) {
|
|
213
|
+
const rooms = this.getRooms();
|
|
214
|
+
const room = rooms[this.normalize(roomName?.toLowerCase())];
|
|
215
|
+
if (!room) {
|
|
216
|
+
this.logger.error(`Could not find room ${roomName} in scene`);
|
|
217
|
+
throw new Error(`Room not found: ${roomName}`);
|
|
218
|
+
}
|
|
219
|
+
return room;
|
|
220
|
+
}
|
|
221
|
+
connectRooms(roomNameA, direction, roomNameB, keyItemOrSolution) {
|
|
222
|
+
const roomA = this.getRoom(roomNameA);
|
|
223
|
+
const roomB = this.getRoom(roomNameB);
|
|
224
|
+
if (!roomA) {
|
|
225
|
+
throw new Error(`Room "${roomNameA}" does not exist.`);
|
|
226
|
+
}
|
|
227
|
+
if (!roomB) {
|
|
228
|
+
throw new Error(`Room "${roomNameB}" does not exist.`);
|
|
229
|
+
}
|
|
230
|
+
roomA.addExit(direction, roomB, keyItemOrSolution);
|
|
231
|
+
}
|
|
232
|
+
hasRoomSupportingResidence(type) {
|
|
233
|
+
return Object.values(this.rooms).some(room => room.supportsResidence?.(type));
|
|
234
|
+
}
|
|
235
|
+
hasRoomSupportingEmployment(role) {
|
|
236
|
+
return Object.values(this.rooms).some(room => room.supportsEmployment?.(role));
|
|
237
|
+
}
|
|
238
|
+
hasItemSupportingAddiction(addiction) {
|
|
239
|
+
return Object.values(this.rooms).some(room => room.inventory.getAllItems().some(item => item.satisfiesLifestyle?.addictionTypes?.includes(addiction)));
|
|
240
|
+
}
|
|
241
|
+
validateLifestyleSupport() {
|
|
242
|
+
const allActors = [this.player, ...this.allActors];
|
|
243
|
+
for (const actor of allActors) {
|
|
244
|
+
const lifestyle = actor.lifestyleChoices ?? [];
|
|
245
|
+
const name = actor.name;
|
|
246
|
+
const residence = lifestyle.find(l => l.type === 'residence')?.metadata;
|
|
247
|
+
const employment = lifestyle.find(l => l.type === 'employment')?.metadata;
|
|
248
|
+
const vices = lifestyle.find(l => l.type === 'vice')?.metadata;
|
|
249
|
+
if (residence?.location && !this.hasRoomSupportingResidence(residence.location)) {
|
|
250
|
+
throw new Error(`No room supports residence lifestyle '${residence.location}' for ${name}`);
|
|
251
|
+
}
|
|
252
|
+
if (residence) {
|
|
253
|
+
const validTiers = this._residenceTiers ?? [];
|
|
254
|
+
if (!validTiers.includes(residence.tier)) {
|
|
255
|
+
throw new Error(`${actor.name} has an invalid residence lifestyle tier '${residence.tier}'`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (employment?.jobTitle && !this.hasRoomSupportingEmployment(employment.jobTitle)) {
|
|
259
|
+
throw new Error(`No room supports employment role '${employment.jobTitle}' for ${name}`);
|
|
260
|
+
}
|
|
261
|
+
for (const addiction of vices?.addictions ?? []) {
|
|
262
|
+
if (!this.hasItemSupportingAddiction(addiction)) {
|
|
263
|
+
throw new Error(`No item supports addiction '${addiction}' for ${name}`);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
this.logger.write("Scene passed lifestyle support validation.");
|
|
268
|
+
}
|
|
269
|
+
validatePuzzleRequirements(puzzles, items) {
|
|
270
|
+
const itemNames = new Set(items.map((item) => item.name));
|
|
271
|
+
for (const puzzle of puzzles) {
|
|
272
|
+
if (puzzle.requiredItem && !itemNames.has(puzzle.requiredItem.name)) {
|
|
273
|
+
throw new Error(`Puzzle requires item "${puzzle.requiredItem}", but it is not present in the scene's item list.`);
|
|
274
|
+
}
|
|
275
|
+
if (puzzle.rewardItem && !itemNames.has(puzzle.rewardItem.name)) {
|
|
276
|
+
throw new Error(`Puzzle has reward item "${puzzle.rewardItem}", but it is not present in the scene's item list.`);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
getCurrencyType() {
|
|
281
|
+
return this.currency.type;
|
|
282
|
+
}
|
|
283
|
+
isValidCurrencyCarrier(item) {
|
|
284
|
+
return item.category === Category.CurrencyContainer;
|
|
285
|
+
}
|
|
286
|
+
getCurrencyAggregationByTag() {
|
|
287
|
+
const result = {};
|
|
288
|
+
for (const tag of this.currency.authorityRoomTags) {
|
|
289
|
+
result[tag] = {};
|
|
290
|
+
const taggedRooms = Object.values(this.rooms).filter(room => room.tags?.includes(tag) && room.governsCurrency);
|
|
291
|
+
for (const room of taggedRooms) {
|
|
292
|
+
for (const [playerName, items] of room.currencyLedger.entries()) {
|
|
293
|
+
const playerTotal = items.reduce((sum, item) => sum + item.currencyAmount, 0);
|
|
294
|
+
result[tag][playerName] = (result[tag][playerName] ?? 0) + playerTotal;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return result;
|
|
299
|
+
}
|
|
300
|
+
get residenceTiers() {
|
|
301
|
+
return this._residenceTiers;
|
|
302
|
+
}
|
|
303
|
+
set residenceTiers(tiers) {
|
|
304
|
+
this._residenceTiers = tiers;
|
|
305
|
+
}
|
|
306
|
+
isValidResidenceTier(tier) {
|
|
307
|
+
return this._residenceTiers.includes(tier);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
//# sourceMappingURL=scene.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/scene.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAe7D,MAAM,OAAO,KAAM,SAAQ,aAAa;IAC/B,IAAI,CAAS;IACb,KAAK,CAAS;IACX,MAAM,CAAS;IACf,MAAM,CAAS;IACf,MAAM,CAA8B;IACpC,IAAI,CAAO;IACX,kBAAkB,GAAsB,IAAI,GAAG,EAAE,CAAC;IAEpD,eAAe,GAAa,EAAE,CAAC;IAE7B,KAAK,GAAyB,EAAE,CAAC;IAEnC,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC,CAAC,yBAAyB;IACzE,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC,CAAC,yBAAyB;IAE1E,QAAQ,CAGb;IAEF,YAAY,MAA+B;QACzC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI;YACjC,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,MAAM,CAAC;SAC5B,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;QAGlD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,C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