@maka/maka-cli 5.3.1 → 5.3.2
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 +107 -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 +23 -0
- package/bundle/typescript/src/commands/_index.js +25 -0
- package/bundle/typescript/src/commands/_index.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 +631 -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 +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +35 -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 +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +382 -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 +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +44 -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 +71 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +309 -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 +2 -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 +151 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +55 -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 +77 -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 +67 -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 +18 -0
- package/bundle/typescript/src/error.js +37 -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 +47 -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 +894 -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 +165 -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 +129 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js +687 -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 +303 -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 +522 -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 +50 -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 +128 -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 +2 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Size, Category, Rating } from '../types/shared/item-enum.js';
|
|
2
|
+
import { AbstractItem } from '../types/shared/abstracts.js';
|
|
3
|
+
export interface IItemConstructorConfig {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
size: Size;
|
|
7
|
+
category: Category;
|
|
8
|
+
shape: string;
|
|
9
|
+
color: string;
|
|
10
|
+
texture: string;
|
|
11
|
+
rating: Rating;
|
|
12
|
+
weight: number;
|
|
13
|
+
details?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
satisfiesLifestyle?: {
|
|
16
|
+
addictionTypes?: string[];
|
|
17
|
+
habitTags?: string[];
|
|
18
|
+
};
|
|
19
|
+
transferable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class Item extends AbstractItem {
|
|
22
|
+
private _id;
|
|
23
|
+
private _owner?;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
size: Size;
|
|
27
|
+
category: Category;
|
|
28
|
+
shape: string;
|
|
29
|
+
color: string;
|
|
30
|
+
texture: string;
|
|
31
|
+
rating: Rating;
|
|
32
|
+
weight: number;
|
|
33
|
+
content?: string;
|
|
34
|
+
details?: string;
|
|
35
|
+
satisfiesLifestyle?: {
|
|
36
|
+
addictionTypes?: string[];
|
|
37
|
+
habitTags?: string[];
|
|
38
|
+
};
|
|
39
|
+
private _transferable;
|
|
40
|
+
protected _currencyAmount: number;
|
|
41
|
+
protected _currencyCapacity?: number;
|
|
42
|
+
constructor(options: IItemConstructorConfig);
|
|
43
|
+
get owner(): string | undefined;
|
|
44
|
+
set owner(owner: string | undefined);
|
|
45
|
+
get id(): string;
|
|
46
|
+
get transferable(): boolean;
|
|
47
|
+
use(): string;
|
|
48
|
+
supportsAddiction(addiction: string): boolean;
|
|
49
|
+
supportsHabit(habit: string): boolean;
|
|
50
|
+
isCurrencyCarrier(): boolean;
|
|
51
|
+
get currencyAmount(): number;
|
|
52
|
+
addCurrency(amount: number): number;
|
|
53
|
+
deductCurrency(amount: number): number;
|
|
54
|
+
private getCharacteristics;
|
|
55
|
+
getFormattedCharacteristics(): string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Size, Category, Rating } from '../types/shared/item-enum.js';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
import { AbstractItem } from '../types/shared/abstracts.js';
|
|
4
|
+
export class Item extends AbstractItem {
|
|
5
|
+
_id;
|
|
6
|
+
_owner;
|
|
7
|
+
name;
|
|
8
|
+
description;
|
|
9
|
+
size;
|
|
10
|
+
category;
|
|
11
|
+
shape;
|
|
12
|
+
color;
|
|
13
|
+
texture;
|
|
14
|
+
rating;
|
|
15
|
+
weight;
|
|
16
|
+
content;
|
|
17
|
+
details;
|
|
18
|
+
satisfiesLifestyle;
|
|
19
|
+
_transferable;
|
|
20
|
+
// New currency-related fields
|
|
21
|
+
_currencyAmount = 0;
|
|
22
|
+
_currencyCapacity;
|
|
23
|
+
constructor(options) {
|
|
24
|
+
super();
|
|
25
|
+
// Validate enum values
|
|
26
|
+
if (!Object.values(Size).includes(options.size)) {
|
|
27
|
+
throw new Error(`Invalid size value for ${options.name}: ${options.size}`);
|
|
28
|
+
}
|
|
29
|
+
if (!Object.values(Category).includes(options.category)) {
|
|
30
|
+
throw new Error(`Invalid category value for ${options.name}: ${options.category}`);
|
|
31
|
+
}
|
|
32
|
+
if (!Object.values(Rating).includes(options.rating)) {
|
|
33
|
+
throw new Error(`Invalid rating value for ${options.name}: ${options.rating}`);
|
|
34
|
+
}
|
|
35
|
+
this.name = options.name;
|
|
36
|
+
this.description = options.description;
|
|
37
|
+
this.size = options.size;
|
|
38
|
+
this.category = options.category;
|
|
39
|
+
this.shape = options.shape;
|
|
40
|
+
this.color = options.color;
|
|
41
|
+
this.texture = options.texture;
|
|
42
|
+
this.rating = options.rating;
|
|
43
|
+
this.weight = options.weight;
|
|
44
|
+
this.details = options.details;
|
|
45
|
+
this.content = options.content;
|
|
46
|
+
this.satisfiesLifestyle = options.satisfiesLifestyle;
|
|
47
|
+
this._transferable = options.transferable !== false; // default true
|
|
48
|
+
this._id = uuidv4();
|
|
49
|
+
// Optional: you can define capacity by size
|
|
50
|
+
if (this.isCurrencyCarrier()) {
|
|
51
|
+
switch (this.size) {
|
|
52
|
+
case Size.Small:
|
|
53
|
+
this._currencyCapacity = 100;
|
|
54
|
+
break;
|
|
55
|
+
case Size.Medium:
|
|
56
|
+
this._currencyCapacity = 500;
|
|
57
|
+
break;
|
|
58
|
+
case Size.Large:
|
|
59
|
+
this._currencyCapacity = 1000;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
get owner() {
|
|
65
|
+
return this._owner;
|
|
66
|
+
}
|
|
67
|
+
set owner(owner) {
|
|
68
|
+
this._owner = owner;
|
|
69
|
+
}
|
|
70
|
+
get id() {
|
|
71
|
+
return this._id;
|
|
72
|
+
}
|
|
73
|
+
get transferable() {
|
|
74
|
+
return this._transferable;
|
|
75
|
+
}
|
|
76
|
+
use() {
|
|
77
|
+
return `You use the ${this.name}. Nothing special happens.`;
|
|
78
|
+
}
|
|
79
|
+
supportsAddiction(addiction) {
|
|
80
|
+
return this.satisfiesLifestyle?.addictionTypes?.includes(addiction) ?? false;
|
|
81
|
+
}
|
|
82
|
+
supportsHabit(habit) {
|
|
83
|
+
return this.satisfiesLifestyle?.habitTags?.includes(habit) ?? false;
|
|
84
|
+
}
|
|
85
|
+
// --- Currency Support ---
|
|
86
|
+
isCurrencyCarrier() {
|
|
87
|
+
return this.category === Category.CurrencyContainer;
|
|
88
|
+
}
|
|
89
|
+
get currencyAmount() {
|
|
90
|
+
return this._currencyAmount;
|
|
91
|
+
}
|
|
92
|
+
addCurrency(amount) {
|
|
93
|
+
if (!this.isCurrencyCarrier())
|
|
94
|
+
return 0;
|
|
95
|
+
const space = this._currencyCapacity !== undefined
|
|
96
|
+
? Math.max(0, this._currencyCapacity - this._currencyAmount)
|
|
97
|
+
: Infinity;
|
|
98
|
+
const added = Math.min(amount, space);
|
|
99
|
+
this._currencyAmount += added;
|
|
100
|
+
return added;
|
|
101
|
+
}
|
|
102
|
+
deductCurrency(amount) {
|
|
103
|
+
if (!this.isCurrencyCarrier())
|
|
104
|
+
return 0;
|
|
105
|
+
const deducted = Math.min(this._currencyAmount, amount);
|
|
106
|
+
this._currencyAmount -= deducted;
|
|
107
|
+
return deducted;
|
|
108
|
+
}
|
|
109
|
+
getCharacteristics() {
|
|
110
|
+
return {
|
|
111
|
+
id: this._id,
|
|
112
|
+
name: this.name,
|
|
113
|
+
description: this.description,
|
|
114
|
+
size: this.size,
|
|
115
|
+
category: this.category,
|
|
116
|
+
shape: this.shape,
|
|
117
|
+
color: this.color,
|
|
118
|
+
texture: this.texture,
|
|
119
|
+
rating: this.rating,
|
|
120
|
+
weight: this.weight,
|
|
121
|
+
content: this.content,
|
|
122
|
+
details: this.details,
|
|
123
|
+
addictionTypes: this.satisfiesLifestyle?.addictionTypes,
|
|
124
|
+
habitTags: this.satisfiesLifestyle?.habitTags,
|
|
125
|
+
currencyAmount: this.isCurrencyCarrier() ? this._currencyAmount : undefined,
|
|
126
|
+
currencyCapacity: this.isCurrencyCarrier() ? this._currencyCapacity : undefined,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
getFormattedCharacteristics() {
|
|
130
|
+
const characteristics = this.getCharacteristics();
|
|
131
|
+
return Object.entries(characteristics)
|
|
132
|
+
.filter(([_, value]) => value !== undefined)
|
|
133
|
+
.map(([key, value]) => {
|
|
134
|
+
const formattedKey = key
|
|
135
|
+
.replace(/([A-Z])/g, ' $1') // insert space before capital letters
|
|
136
|
+
.replace(/^./, str => str.toUpperCase()); // capitalize first letter
|
|
137
|
+
const formattedValue = Array.isArray(value)
|
|
138
|
+
? value.join(', ')
|
|
139
|
+
: value;
|
|
140
|
+
return `${formattedKey}: ${formattedValue}`;
|
|
141
|
+
})
|
|
142
|
+
.join('\n');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/item.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Player } from './player.js';
|
|
2
|
+
import { Scene } from './scene.js';
|
|
3
|
+
import { IPlayerConstructorConfig } from '../models/player.js';
|
|
4
|
+
import { CommandRegistry } from '../commands/command-registry.js';
|
|
5
|
+
export interface INPCConstructorConfig {
|
|
6
|
+
dialog: string[];
|
|
7
|
+
description: string;
|
|
8
|
+
playerConstructorConfig: IPlayerConstructorConfig;
|
|
9
|
+
}
|
|
10
|
+
export declare class NPC extends Player {
|
|
11
|
+
private _dialogue;
|
|
12
|
+
private _description;
|
|
13
|
+
private _scene?;
|
|
14
|
+
private _commandHelp;
|
|
15
|
+
private _history;
|
|
16
|
+
private readonly _maxHistory;
|
|
17
|
+
private commandRegistry;
|
|
18
|
+
private lastNpcHeardTime;
|
|
19
|
+
private static npcHearCooldownMs;
|
|
20
|
+
private lastNpcSeenTime;
|
|
21
|
+
private static npcSeeCooldownMs;
|
|
22
|
+
private _maxRecursion;
|
|
23
|
+
private waitingForPlayer;
|
|
24
|
+
constructor(npcConfig: INPCConstructorConfig, commandRegistry: CommandRegistry);
|
|
25
|
+
set scene(scene: Scene);
|
|
26
|
+
get description(): string;
|
|
27
|
+
set description(description: string);
|
|
28
|
+
act(commandString: string): Promise<void>;
|
|
29
|
+
hear(actor: Player, message: string): Promise<void>;
|
|
30
|
+
see(actor: Player, verb: string, details?: string): Promise<void>;
|
|
31
|
+
private _addToHistory;
|
|
32
|
+
private getHistorySummary;
|
|
33
|
+
speak(message?: string): string;
|
|
34
|
+
recursiveReflect(commandString: string, result: string, recursionDepth?: number, maxRecursion?: number): Promise<void>;
|
|
35
|
+
respondTo(actor: Player, message: string): Promise<void>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { capitalCase } from 'change-case';
|
|
2
|
+
import { Player } from './player.js';
|
|
3
|
+
import { Door } from './door.js';
|
|
4
|
+
import { HTTPS } from '../../../../tools/https/https.class.js';
|
|
5
|
+
export class NPC extends Player {
|
|
6
|
+
_dialogue;
|
|
7
|
+
_description;
|
|
8
|
+
_scene;
|
|
9
|
+
_commandHelp;
|
|
10
|
+
_history = [];
|
|
11
|
+
_maxHistory = 200;
|
|
12
|
+
commandRegistry;
|
|
13
|
+
lastNpcHeardTime = 0;
|
|
14
|
+
static npcHearCooldownMs = 500; // 10 seconds. Adjust as you like!
|
|
15
|
+
lastNpcSeenTime = 0;
|
|
16
|
+
static npcSeeCooldownMs = 500; // 10 seconds (tune as you like)
|
|
17
|
+
_maxRecursion = 5;
|
|
18
|
+
waitingForPlayer = false;
|
|
19
|
+
constructor(npcConfig, commandRegistry) {
|
|
20
|
+
super(npcConfig.playerConstructorConfig);
|
|
21
|
+
this._dialogue = npcConfig.dialog;
|
|
22
|
+
this._description = npcConfig.description;
|
|
23
|
+
this.commandRegistry = commandRegistry;
|
|
24
|
+
this._commandHelp = `
|
|
25
|
+
Available in-game commands (use with [COMMAND] prefix):
|
|
26
|
+
|
|
27
|
+
- go <direction> — move in a direction like north, south, east, west
|
|
28
|
+
- say <message> — speak a message
|
|
29
|
+
- take <item name> — pick up an item from the current room
|
|
30
|
+
- drop <item name> — drop an item
|
|
31
|
+
- use <item name> — use an item
|
|
32
|
+
- equip <item name> — equip an item (e.g., equip a weapon to use)
|
|
33
|
+
- equip all - equip all wearable items in inventory
|
|
34
|
+
- unequip <item name> — remove an equipped item
|
|
35
|
+
- unlock <door name> — unlock a door (if you have the key or solution)
|
|
36
|
+
- lock <door name> — lock a door
|
|
37
|
+
- solve <puzzle name> — attempt to solve a puzzle
|
|
38
|
+
- search — search the room for hidden things
|
|
39
|
+
- look — look around the current room
|
|
40
|
+
- look at <target> - looks at an item, player, or direction
|
|
41
|
+
- store <item name> — store an item (in bank, safe, etc.)
|
|
42
|
+
- give <item name> to <target> — give an item to someone
|
|
43
|
+
- talk-to <target> — initiate conversation with another character
|
|
44
|
+
- read <target> - Reads an item of Category "Book"
|
|
45
|
+
- kill <target> - Kills an actor, removing them from the game.
|
|
46
|
+
`.trim();
|
|
47
|
+
}
|
|
48
|
+
set scene(scene) {
|
|
49
|
+
this._scene = scene;
|
|
50
|
+
}
|
|
51
|
+
get description() {
|
|
52
|
+
return this._description;
|
|
53
|
+
}
|
|
54
|
+
set description(description) {
|
|
55
|
+
this._description = description;
|
|
56
|
+
}
|
|
57
|
+
async act(commandString) {
|
|
58
|
+
const command = await this.commandRegistry.parse(commandString, this);
|
|
59
|
+
if (command) {
|
|
60
|
+
// Capture the result of the command
|
|
61
|
+
const result = await command.execute();
|
|
62
|
+
await this.recursiveReflect(commandString, result);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.logger.error(`${this.name} tried to perform unknown command: ${commandString}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async hear(actor, message) {
|
|
69
|
+
if (actor === this || actor.name === this.name)
|
|
70
|
+
return;
|
|
71
|
+
// Player wakes us up
|
|
72
|
+
if (!(actor instanceof NPC)) {
|
|
73
|
+
if (this.waitingForPlayer)
|
|
74
|
+
this.logger.write(`[DEBUG] ${this.name} received player input, waking up.`);
|
|
75
|
+
this.waitingForPlayer = false;
|
|
76
|
+
}
|
|
77
|
+
// If another NPC tries to trigger us and we are waiting for a player, ignore
|
|
78
|
+
if (this.waitingForPlayer && actor instanceof NPC) {
|
|
79
|
+
this.logger.write(`[DEBUG] ${this.name} is waiting for player input, ignoring NPC.`);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
// If another NPC tries to trigger us and we are on cooldown, ignore
|
|
83
|
+
if (actor instanceof NPC) {
|
|
84
|
+
const now = Date.now();
|
|
85
|
+
if (now - this.lastNpcHeardTime < NPC.npcHearCooldownMs) {
|
|
86
|
+
this.logger.write(`[DEBUG] ${this.name} is on NPC hear cooldown.`);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.lastNpcHeardTime = now;
|
|
90
|
+
this.waitingForPlayer = true;
|
|
91
|
+
this.logger.write(`[DEBUG] ${this.name} heard NPC, entering waiting state.`);
|
|
92
|
+
}
|
|
93
|
+
// Process input
|
|
94
|
+
const entry = `${actor.name} says: "${message}"`;
|
|
95
|
+
this._addToHistory(entry);
|
|
96
|
+
this.logger.write(`${this.name} heard from ${actor.name}`);
|
|
97
|
+
await this.respondTo(actor, message);
|
|
98
|
+
}
|
|
99
|
+
async see(actor, verb, details) {
|
|
100
|
+
try {
|
|
101
|
+
if (actor === this || actor.name === this.name)
|
|
102
|
+
return;
|
|
103
|
+
if (!(actor instanceof NPC)) {
|
|
104
|
+
if (this.waitingForPlayer)
|
|
105
|
+
this.logger.write(`[DEBUG] ${this.name} received player action, waking up.`);
|
|
106
|
+
this.waitingForPlayer = false;
|
|
107
|
+
}
|
|
108
|
+
if (this.waitingForPlayer && actor instanceof NPC) {
|
|
109
|
+
this.logger.write(`[DEBUG] ${this.name} is waiting for player input, ignoring NPC action.`);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (actor instanceof NPC) {
|
|
113
|
+
const now = Date.now();
|
|
114
|
+
if (now - this.lastNpcSeenTime < NPC.npcSeeCooldownMs) {
|
|
115
|
+
this.logger.write(`[DEBUG] ${this.name} is on NPC see cooldown.`);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this.lastNpcSeenTime = now;
|
|
119
|
+
this.waitingForPlayer = true;
|
|
120
|
+
this.logger.write(`[DEBUG] ${this.name} saw NPC, entering waiting state.`);
|
|
121
|
+
}
|
|
122
|
+
const entry = `${actor.name} ${verb}${details ? ` ${details}` : ''}`;
|
|
123
|
+
this._addToHistory(entry);
|
|
124
|
+
this.logger.write(`${this.name} sees ${entry}`);
|
|
125
|
+
await this.respondTo(actor, entry);
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
this.logger.error(`Error in see: ${error}`);
|
|
129
|
+
throw new Error(error);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
_addToHistory(entry) {
|
|
133
|
+
this._history.push(entry);
|
|
134
|
+
if (this._history.length > this._maxHistory) {
|
|
135
|
+
this._history.shift();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
getHistorySummary() {
|
|
139
|
+
if (this._history.length === 0)
|
|
140
|
+
return `This NPC has not observed any recent activity.`;
|
|
141
|
+
const history = `Recent activity around this NPC:\n${this._history.map((h, i) => ` ${i + 1}. ${h}`)?.join('\n')}`;
|
|
142
|
+
this.logger.write(history);
|
|
143
|
+
return history;
|
|
144
|
+
}
|
|
145
|
+
speak(message) {
|
|
146
|
+
return message || this._dialogue[Math.floor(Math.random() * this._dialogue.length)];
|
|
147
|
+
}
|
|
148
|
+
async recursiveReflect(commandString, result, recursionDepth = 0, maxRecursion = this._maxRecursion) {
|
|
149
|
+
if (recursionDepth >= maxRecursion) {
|
|
150
|
+
this.logger.write('Max recursion reached.');
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const historySummary = this.getHistorySummary();
|
|
154
|
+
// Build the prompt context
|
|
155
|
+
const context = `
|
|
156
|
+
You are an NPC named ${this.name}.
|
|
157
|
+
|
|
158
|
+
You just performed the action: "${commandString}"
|
|
159
|
+
With the result: "${result}"
|
|
160
|
+
|
|
161
|
+
Based on this, what is the most logical next in-game command (from the following list)?
|
|
162
|
+
${this._commandHelp}
|
|
163
|
+
- Only respond with: [COMMAND] <in-game command here>
|
|
164
|
+
- Do not respond on behalf of another player or NPC
|
|
165
|
+
- If there is nothing to do, respond with: wait
|
|
166
|
+
- Only respond with one [COMMAND]
|
|
167
|
+
|
|
168
|
+
This is what has already happened:
|
|
169
|
+
${historySummary}
|
|
170
|
+
`;
|
|
171
|
+
// Send to GPT
|
|
172
|
+
const gptResult = await HTTPS.askGPT({
|
|
173
|
+
prompt: context,
|
|
174
|
+
openApiKey: process.env.OPENAI_API_KEY || '',
|
|
175
|
+
model: 'gpt-4.1'
|
|
176
|
+
});
|
|
177
|
+
const reply = JSON.parse(gptResult.data)?.choices?.[0]?.message?.content?.trim();
|
|
178
|
+
if (!reply || reply.toLowerCase().includes('wait')) {
|
|
179
|
+
this.logger.write(`${this.name} is finished reflecting for now.`);
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
// Parse the next command, execute, and reflect again
|
|
183
|
+
const nextCommandMatch = reply.match(/^\[COMMAND\]\s*(.*)$/i);
|
|
184
|
+
if (nextCommandMatch && nextCommandMatch[1]) {
|
|
185
|
+
const nextCommand = nextCommandMatch[1];
|
|
186
|
+
const command = await this.commandRegistry.parse(nextCommand, this);
|
|
187
|
+
if (command) {
|
|
188
|
+
const nextResult = await command.execute();
|
|
189
|
+
if (nextResult) {
|
|
190
|
+
this._addToHistory(nextResult);
|
|
191
|
+
}
|
|
192
|
+
await this.recursiveReflect(nextCommand, nextResult, recursionDepth + 1, maxRecursion);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
this.logger.error(`NPC planned unknown command: ${nextCommand}`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.logger.write('No valid command parsed from GPT reflection.');
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
async respondTo(actor, message) {
|
|
203
|
+
this.logger.write('Attempting to respond');
|
|
204
|
+
if (!process.env.OPENAI_API_KEY) {
|
|
205
|
+
this.logger.write(`No AI available`);
|
|
206
|
+
await actor.hear(this, this.speak());
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
// ---------- helpers ----------
|
|
210
|
+
const safeArray = (arr, label = 'unknown') => {
|
|
211
|
+
const ok = Array.isArray(arr) ? arr : [];
|
|
212
|
+
if (!Array.isArray(arr)) {
|
|
213
|
+
this.logger.write(`[DEBUG][${this.name}] ${label} was not an array, substituting []. Value: ${JSON.stringify(arr)}`);
|
|
214
|
+
}
|
|
215
|
+
return ok;
|
|
216
|
+
};
|
|
217
|
+
const toLines = (s) => {
|
|
218
|
+
if (typeof s !== 'string')
|
|
219
|
+
return [];
|
|
220
|
+
return s.split(/\r?\n/);
|
|
221
|
+
};
|
|
222
|
+
// ---------- scene + npc context ----------
|
|
223
|
+
const story = this._scene?.story
|
|
224
|
+
? `The overall storyline for this scene is: ${this._scene.story}`
|
|
225
|
+
: `This scene has no overall storyline`;
|
|
226
|
+
const historySummary = this.getHistorySummary();
|
|
227
|
+
const npcDescription = this.description
|
|
228
|
+
? `This NPC has the following characteristics: ${this._description}`
|
|
229
|
+
: `This NPC is non-descript.`;
|
|
230
|
+
this.logger.write(npcDescription);
|
|
231
|
+
const lifestyleSummary = Array.isArray(this.lifestyleChoices) && this.lifestyleChoices.length > 0
|
|
232
|
+
? `This NPC has the following lifestyle characteristics: ${this.lifestyleChoices.join(', ')}.`
|
|
233
|
+
: `This NPC has no defined lifestyle preferences.`;
|
|
234
|
+
const room = this.currentLocation;
|
|
235
|
+
if (!room) {
|
|
236
|
+
this.logger.error(`[ERROR][${this.name}] currentLocation is undefined in respondTo!`);
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
const roomDesc = `They are currently in: "${room.name}" — ${room.description}`;
|
|
240
|
+
// ---------- exits (fully defensive) ----------
|
|
241
|
+
let safeExits = [];
|
|
242
|
+
try {
|
|
243
|
+
if (room.exits && typeof room.exits.entries === 'function') {
|
|
244
|
+
safeExits = Array.from(room.exits.entries());
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
this.logger.write(`[DEBUG][${this.name}] room.exits missing or not iterable; using empty exits.`);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
catch (e) {
|
|
251
|
+
this.logger.error(`[ERROR][${this.name}] room.exits.entries() failed: ${e}`);
|
|
252
|
+
}
|
|
253
|
+
const formattedExitsArr = safeExits.map(([direction, exit]) => {
|
|
254
|
+
const directionLabel = capitalCase(direction);
|
|
255
|
+
if (exit instanceof Door) {
|
|
256
|
+
const targetRoom = exit.getOtherSideToName(room);
|
|
257
|
+
const isLocked = exit.checkIfLocked();
|
|
258
|
+
const isLockable = exit.checkIfLockable();
|
|
259
|
+
let requirementDetail = '';
|
|
260
|
+
if (isLocked)
|
|
261
|
+
requirementDetail = ` Requires key: "${exit.unlockItemOrSolution}".`;
|
|
262
|
+
const status = isLocked ? ' (Locked)' : (isLockable ? ' (Unlocked)' : '');
|
|
263
|
+
return `${directionLabel} → ${targetRoom}${status}${requirementDetail}`;
|
|
264
|
+
}
|
|
265
|
+
if (typeof exit === 'string') {
|
|
266
|
+
return `${directionLabel} → ${exit}`;
|
|
267
|
+
}
|
|
268
|
+
return `${directionLabel} → Unknown`;
|
|
269
|
+
});
|
|
270
|
+
const formattedExitsStr = Array.isArray(formattedExitsArr) && formattedExitsArr.length > 0
|
|
271
|
+
? formattedExitsArr.join('\n')
|
|
272
|
+
: '';
|
|
273
|
+
// ---------- ownership + inventories (defensive) ----------
|
|
274
|
+
const ownedRooms = safeArray(this._scene?.getOwnedRoomsBy?.(this.name), 'ownedRooms');
|
|
275
|
+
this.logger.write(`[DEBUG][${this.name}] ownedRooms: ${JSON.stringify(ownedRooms)}`);
|
|
276
|
+
const ownedRoomsDesc = ownedRooms.length > 0
|
|
277
|
+
? `They own the following rooms: ${ownedRooms.filter(r => r && r.name).map(r => `"${r.name}"`).join(', ')}.`
|
|
278
|
+
: `They do not appear to own any rooms.`;
|
|
279
|
+
const ownedItems = safeArray(this._scene?.getOwnedItemsBy?.(this.name), 'ownedItems');
|
|
280
|
+
this.logger.write(`[DEBUG][${this.name}] ownedItems: ${JSON.stringify(ownedItems)}`);
|
|
281
|
+
const ownedItemsDesc = ownedItems.length > 0
|
|
282
|
+
? `They own the following items: ${ownedItems.filter(i => i && i.name).map(i => `"${i.name}"`).join(', ')}.`
|
|
283
|
+
: `They do not appear to own any items.`;
|
|
284
|
+
const npcItems = safeArray(this.inventory?.getAllItems?.(), 'npcItems');
|
|
285
|
+
this.logger.write(`[DEBUG][${this.name}] npcItems: ${JSON.stringify(npcItems)}`);
|
|
286
|
+
const npcInventoryDesc = npcItems.length > 0
|
|
287
|
+
? `This NPC is carrying the following items:\n${npcItems
|
|
288
|
+
.filter(item => !!item)
|
|
289
|
+
.map(item => `- ${item.getFormattedCharacteristics?.() ?? (item.name ?? '[unnamed item]')}`)
|
|
290
|
+
.join('\n')}`
|
|
291
|
+
: `This NPC is not carrying anything.`;
|
|
292
|
+
const visibleItems = safeArray(room.inventory?.getAllItems?.(), 'visibleItems');
|
|
293
|
+
this.logger.write(`[DEBUG][${this.name}] visibleItems: ${JSON.stringify(visibleItems)}`);
|
|
294
|
+
const roomInventoryDesc = visibleItems.length > 0
|
|
295
|
+
? `Items visible in the room: ${visibleItems.filter(i => i && i.name).map(i => i.name).join(', ')}.`
|
|
296
|
+
: `There are no visible items in the room.`;
|
|
297
|
+
// ---------- prompt ----------
|
|
298
|
+
const prompt = `
|
|
299
|
+
You are an NPC named ${this.name} in a gritty cyberpunk text adventure game.
|
|
300
|
+
|
|
301
|
+
- Stay in character. Respond naturally based on your surroundings, personality, and the player’s message.
|
|
302
|
+
- Any exposition should be in 3rd person. Keep exposition to bare minimum.
|
|
303
|
+
- When speaking, use the "say" command. Syntax is "[COMMAND] say <message>"
|
|
304
|
+
- If you want to perform an action, include a separate line that starts with:
|
|
305
|
+
[COMMAND] <your in-game command here>
|
|
306
|
+
- Attempt to use [COMMAND] when appropriate for interacting with the environment. (e.g., "take <item>" when picking up)
|
|
307
|
+
- You should only provide one [COMMAND] at a time.
|
|
308
|
+
- Do not respond on behalf of another player or NPC
|
|
309
|
+
|
|
310
|
+
Your objective is to drive the story line.
|
|
311
|
+
${story}
|
|
312
|
+
|
|
313
|
+
${this._commandHelp}
|
|
314
|
+
|
|
315
|
+
${npcDescription}
|
|
316
|
+
|
|
317
|
+
${roomDesc}
|
|
318
|
+
${formattedExitsStr}
|
|
319
|
+
${roomInventoryDesc}
|
|
320
|
+
|
|
321
|
+
${lifestyleSummary}
|
|
322
|
+
${npcInventoryDesc}
|
|
323
|
+
|
|
324
|
+
${ownedRoomsDesc}
|
|
325
|
+
${ownedItemsDesc}
|
|
326
|
+
|
|
327
|
+
${historySummary}
|
|
328
|
+
|
|
329
|
+
${actor.name}: ${message}
|
|
330
|
+
`.trim();
|
|
331
|
+
// ---------- GPT call + parsing (defensive) ----------
|
|
332
|
+
try {
|
|
333
|
+
const result = await HTTPS.askGPT({
|
|
334
|
+
prompt,
|
|
335
|
+
openApiKey: process.env.OPENAI_API_KEY,
|
|
336
|
+
model: 'gpt-4.1'
|
|
337
|
+
});
|
|
338
|
+
let parsed;
|
|
339
|
+
try {
|
|
340
|
+
parsed = JSON.parse(result?.data ?? '{}');
|
|
341
|
+
}
|
|
342
|
+
catch (e) {
|
|
343
|
+
this.logger.error(`[ERROR][${this.name}] JSON.parse failed on result.data: ${e}`);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (parsed?.error) {
|
|
347
|
+
throw new Error(parsed.error.message ?? 'Unknown GPT error');
|
|
348
|
+
}
|
|
349
|
+
const reply = parsed?.choices?.[0]?.message?.content?.trim?.();
|
|
350
|
+
if (!reply || typeof reply !== 'string') {
|
|
351
|
+
this.logger.write(`[DEBUG][${this.name}] Empty or invalid reply from GPT; no action taken.`);
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
this._addToHistory(reply);
|
|
355
|
+
const lines = toLines(reply);
|
|
356
|
+
// Spoken lines
|
|
357
|
+
const spokenLines = lines.filter(line => line.startsWith('[COMMAND] say'));
|
|
358
|
+
// Commands (excluding say/talk-to)
|
|
359
|
+
const commandLines = lines.filter(line => line.startsWith('[COMMAND]') &&
|
|
360
|
+
!line.startsWith('[COMMAND] say') &&
|
|
361
|
+
!line.startsWith('[COMMAND] talk-to'));
|
|
362
|
+
// Exposition (non-command lines)
|
|
363
|
+
const expositionLines = lines.filter(line => !line.startsWith('[COMMAND]'));
|
|
364
|
+
// Speak each say command
|
|
365
|
+
for (const spokenText of spokenLines) {
|
|
366
|
+
const commandText = (spokenText ?? '').replace('[COMMAND]', '').trim();
|
|
367
|
+
this.logger.write(`${this.name} attempts to say: ${commandText}`);
|
|
368
|
+
try {
|
|
369
|
+
if (commandText.length > 0) {
|
|
370
|
+
await this.act(commandText);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
catch (err) {
|
|
374
|
+
this.logger.error(`${this.name} failed to say "${commandText}": ${err}`);
|
|
375
|
+
// continue; don't throw so we can process remaining lines
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
// Log exposition
|
|
379
|
+
for (const exposition of expositionLines) {
|
|
380
|
+
if (exposition?.length) {
|
|
381
|
+
this.logger.logWithColor(`${exposition}`, 'blue');
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
// Execute other commands
|
|
385
|
+
for (const commandLine of commandLines) {
|
|
386
|
+
const commandText = (commandLine ?? '').replace('[COMMAND]', '').trim();
|
|
387
|
+
this.logger.write(`${this.name} attempts to execute: ${commandText}`);
|
|
388
|
+
try {
|
|
389
|
+
if (commandText.length > 0) {
|
|
390
|
+
await this.act(commandText);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
catch (err) {
|
|
394
|
+
this.logger.error(`${this.name} failed to execute command "${commandText}": ${err}`);
|
|
395
|
+
// continue; don't throw so we can process remaining lines
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
catch (err) {
|
|
400
|
+
this.logger.write(`GPT fallback due to error: ${err}`);
|
|
401
|
+
// surface a consistent Error instance, but don't double-wrap Errors
|
|
402
|
+
const e = err instanceof Error ? err : new Error(String(err));
|
|
403
|
+
throw e;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=npc.js.map
|