@maka/maka-cli 5.2.4 → 5.2.6
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/package.json +4 -3
- package/bundle/typescript/package.json +0 -118
- package/bundle/typescript/src/README.md +0 -37
- package/bundle/typescript/src/command.d.ts +0 -37
- package/bundle/typescript/src/command.js +0 -231
- package/bundle/typescript/src/command.js.map +0 -1
- package/bundle/typescript/src/commands/_index.d.ts +0 -26
- package/bundle/typescript/src/commands/_index.js +0 -28
- package/bundle/typescript/src/commands/_index.js.map +0 -1
- package/bundle/typescript/src/commands/ai/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/ai/_index.js +0 -3
- package/bundle/typescript/src/commands/ai/_index.js.map +0 -1
- package/bundle/typescript/src/commands/ai/ai.command.d.ts +0 -3
- package/bundle/typescript/src/commands/ai/ai.command.js +0 -83
- package/bundle/typescript/src/commands/ai/ai.command.js.map +0 -1
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js +0 -964
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/_index.d.ts +0 -16
- package/bundle/typescript/src/commands/aws/_index.js +0 -17
- package/bundle/typescript/src/commands/aws/_index.js.map +0 -1
- package/bundle/typescript/src/commands/aws/aws.command.d.ts +0 -3
- package/bundle/typescript/src/commands/aws/aws.command.js +0 -15
- package/bundle/typescript/src/commands/aws/aws.command.js.map +0 -1
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js +0 -38
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js +0 -41
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js +0 -199
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js +0 -42
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js +0 -43
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js +0 -31
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/di.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js +0 -35
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js +0 -25
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js +0 -57
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js +0 -32
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js +0 -39
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js +0 -104
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js +0 -52
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js +0 -74
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js +0 -45
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/build/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/build/_index.js +0 -3
- package/bundle/typescript/src/commands/build/_index.js.map +0 -1
- package/bundle/typescript/src/commands/build/build.d.ts +0 -3
- package/bundle/typescript/src/commands/build/build.js +0 -98
- package/bundle/typescript/src/commands/build/build.js.map +0 -1
- package/bundle/typescript/src/commands/build/docker.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js +0 -138
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/create.d.ts +0 -1
- package/bundle/typescript/src/commands/create.js +0 -645
- package/bundle/typescript/src/commands/create.js.map +0 -1
- package/bundle/typescript/src/commands/debug.d.ts +0 -1
- package/bundle/typescript/src/commands/debug.js +0 -95
- package/bundle/typescript/src/commands/debug.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/deploy/_index.js +0 -4
- package/bundle/typescript/src/commands/deploy/_index.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/deploy.command.d.ts +0 -3
- package/bundle/typescript/src/commands/deploy/deploy.command.js +0 -24
- package/bundle/typescript/src/commands/deploy/deploy.command.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js +0 -152
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js +0 -543
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/_index.d.ts +0 -5
- package/bundle/typescript/src/commands/game/_index.js +0 -7
- package/bundle/typescript/src/commands/game/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/play.command.d.ts +0 -3
- package/bundle/typescript/src/commands/game/play.command.js +0 -18
- package/bundle/typescript/src/commands/game/play.command.js.map +0 -1
- package/bundle/typescript/src/commands/game/pong.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js +0 -26
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +0 -33
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +0 -58
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +0 -63
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +0 -74
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.d.ts +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +0 -137
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js +0 -26
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +0 -31
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js +0 -33
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +0 -41
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +0 -54
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +0 -13
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +0 -53
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +0 -34
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js +0 -17
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.d.ts +0 -5
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +0 -25
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.d.ts +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +0 -19
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +0 -126
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +0 -38
- package/bundle/typescript/src/commands/game/sideQuest/game.js +0 -384
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +0 -42
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.d.ts +0 -47
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +0 -110
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +0 -56
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +0 -145
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +0 -407
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +0 -58
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +0 -357
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +0 -34
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +0 -67
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +0 -246
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +0 -72
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +0 -310
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.d.ts +0 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +0 -281
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +0 -397
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +0 -47
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +0 -52
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +0 -62
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.d.ts +0 -22
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +0 -11
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +0 -16
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +0 -20
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.d.ts +0 -152
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +0 -90
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.d.ts +0 -25
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js +0 -27
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +0 -80
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +0 -72
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +0 -16
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +0 -67
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +0 -68
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/snake.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/generate.d.ts +0 -1
- package/bundle/typescript/src/commands/generate.js +0 -42
- package/bundle/typescript/src/commands/generate.js.map +0 -1
- package/bundle/typescript/src/commands/get/_index.d.ts +0 -4
- package/bundle/typescript/src/commands/get/_index.js +0 -5
- package/bundle/typescript/src/commands/get/_index.js.map +0 -1
- package/bundle/typescript/src/commands/get/get.command.d.ts +0 -3
- package/bundle/typescript/src/commands/get/get.command.js +0 -13
- package/bundle/typescript/src/commands/get/get.command.js.map +0 -1
- package/bundle/typescript/src/commands/get/global.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/global.sub.cmd.js +0 -20
- package/bundle/typescript/src/commands/get/global.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/get/local.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/local.sub.cmd.js +0 -14
- package/bundle/typescript/src/commands/get/local.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js +0 -21
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/help.d.ts +0 -1
- package/bundle/typescript/src/commands/help.js +0 -12
- package/bundle/typescript/src/commands/help.js.map +0 -1
- package/bundle/typescript/src/commands/install.d.ts +0 -1
- package/bundle/typescript/src/commands/install.js +0 -269
- package/bundle/typescript/src/commands/install.js.map +0 -1
- package/bundle/typescript/src/commands/jsdoc.d.ts +0 -1
- package/bundle/typescript/src/commands/jsdoc.js +0 -62
- package/bundle/typescript/src/commands/jsdoc.js.map +0 -1
- package/bundle/typescript/src/commands/lint.d.ts +0 -1
- package/bundle/typescript/src/commands/lint.js +0 -127
- package/bundle/typescript/src/commands/lint.js.map +0 -1
- package/bundle/typescript/src/commands/login.d.ts +0 -1
- package/bundle/typescript/src/commands/login.js +0 -168
- package/bundle/typescript/src/commands/login.js.map +0 -1
- package/bundle/typescript/src/commands/logout.d.ts +0 -1
- package/bundle/typescript/src/commands/logout.js +0 -95
- package/bundle/typescript/src/commands/logout.js.map +0 -1
- package/bundle/typescript/src/commands/logs.d.ts +0 -1
- package/bundle/typescript/src/commands/logs.js +0 -35
- package/bundle/typescript/src/commands/logs.js.map +0 -1
- package/bundle/typescript/src/commands/maka.cmd.d.ts +0 -5
- package/bundle/typescript/src/commands/maka.cmd.js +0 -57
- package/bundle/typescript/src/commands/maka.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/murder.d.ts +0 -1
- package/bundle/typescript/src/commands/murder.js +0 -31
- package/bundle/typescript/src/commands/murder.js.map +0 -1
- package/bundle/typescript/src/commands/profile.d.ts +0 -1
- package/bundle/typescript/src/commands/profile.js +0 -277
- package/bundle/typescript/src/commands/profile.js.map +0 -1
- package/bundle/typescript/src/commands/proxy.d.ts +0 -1
- package/bundle/typescript/src/commands/proxy.js +0 -168
- package/bundle/typescript/src/commands/proxy.js.map +0 -1
- package/bundle/typescript/src/commands/reconfig.d.ts +0 -1
- package/bundle/typescript/src/commands/reconfig.js +0 -69
- package/bundle/typescript/src/commands/reconfig.js.map +0 -1
- package/bundle/typescript/src/commands/register.d.ts +0 -1
- package/bundle/typescript/src/commands/register.js +0 -104
- package/bundle/typescript/src/commands/register.js.map +0 -1
- package/bundle/typescript/src/commands/run/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/run/_index.js +0 -3
- package/bundle/typescript/src/commands/run/_index.js.map +0 -1
- package/bundle/typescript/src/commands/run/docker.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js +0 -82
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/run/run.command.d.ts +0 -3
- package/bundle/typescript/src/commands/run/run.command.js +0 -200
- package/bundle/typescript/src/commands/run/run.command.js.map +0 -1
- package/bundle/typescript/src/commands/set/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/set/_index.js +0 -4
- package/bundle/typescript/src/commands/set/_index.js.map +0 -1
- package/bundle/typescript/src/commands/set/global.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/set/global.sub.cmd.js +0 -115
- package/bundle/typescript/src/commands/set/global.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/set/local.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/set/local.sub.cmd.js +0 -18
- package/bundle/typescript/src/commands/set/local.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/set/set.command.d.ts +0 -3
- package/bundle/typescript/src/commands/set/set.command.js +0 -16
- package/bundle/typescript/src/commands/set/set.command.js.map +0 -1
- package/bundle/typescript/src/commands/ssh.d.ts +0 -1
- package/bundle/typescript/src/commands/ssh.js +0 -43
- package/bundle/typescript/src/commands/ssh.js.map +0 -1
- package/bundle/typescript/src/commands/ssl.d.ts +0 -1
- package/bundle/typescript/src/commands/ssl.js +0 -109
- package/bundle/typescript/src/commands/ssl.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/testCmd/_index.js +0 -4
- package/bundle/typescript/src/commands/testCmd/_index.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js +0 -131
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js +0 -133
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/test.command.d.ts +0 -3
- package/bundle/typescript/src/commands/testCmd/test.command.js +0 -15
- package/bundle/typescript/src/commands/testCmd/test.command.js.map +0 -1
- package/bundle/typescript/src/commands/undo.d.ts +0 -1
- package/bundle/typescript/src/commands/undo.js +0 -12
- package/bundle/typescript/src/commands/undo.js.map +0 -1
- package/bundle/typescript/src/commands/uninstall.d.ts +0 -1
- package/bundle/typescript/src/commands/uninstall.js +0 -76
- package/bundle/typescript/src/commands/uninstall.js.map +0 -1
- package/bundle/typescript/src/commands/version/_index.d.ts +0 -4
- package/bundle/typescript/src/commands/version/_index.js +0 -5
- package/bundle/typescript/src/commands/version/_index.js.map +0 -1
- package/bundle/typescript/src/commands/version/list.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/version/list.sub.cmd.js +0 -55
- package/bundle/typescript/src/commands/version/list.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.d.ts +0 -3
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js +0 -21
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/use.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/version/use.sub.cmd.js +0 -83
- package/bundle/typescript/src/commands/version/use.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/version.d.ts +0 -3
- package/bundle/typescript/src/commands/version/version.js +0 -59
- package/bundle/typescript/src/commands/version/version.js.map +0 -1
- package/bundle/typescript/src/error.d.ts +0 -12
- package/bundle/typescript/src/error.js +0 -13
- package/bundle/typescript/src/error.js.map +0 -1
- package/bundle/typescript/src/exec.d.ts +0 -2
- package/bundle/typescript/src/exec.js +0 -17
- package/bundle/typescript/src/exec.js.map +0 -1
- package/bundle/typescript/src/generator.d.ts +0 -48
- package/bundle/typescript/src/generator.js +0 -394
- package/bundle/typescript/src/generator.js.map +0 -1
- package/bundle/typescript/src/generators/_index.d.ts +0 -18
- package/bundle/typescript/src/generators/_index.js +0 -19
- package/bundle/typescript/src/generators/_index.js.map +0 -1
- package/bundle/typescript/src/generators/api.d.ts +0 -1
- package/bundle/typescript/src/generators/api.js +0 -257
- package/bundle/typescript/src/generators/api.js.map +0 -1
- package/bundle/typescript/src/generators/aws/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/aws/_index.js +0 -3
- package/bundle/typescript/src/generators/aws/_index.js.map +0 -1
- package/bundle/typescript/src/generators/aws/aws.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/aws.js +0 -16
- package/bundle/typescript/src/generators/aws/aws.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js +0 -21
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +0 -69
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js.map +0 -1
- package/bundle/typescript/src/generators/collection.d.ts +0 -1
- package/bundle/typescript/src/generators/collection.js +0 -78
- package/bundle/typescript/src/generators/collection.js.map +0 -1
- package/bundle/typescript/src/generators/component.d.ts +0 -1
- package/bundle/typescript/src/generators/component.js +0 -99
- package/bundle/typescript/src/generators/component.js.map +0 -1
- package/bundle/typescript/src/generators/config.d.ts +0 -1
- package/bundle/typescript/src/generators/config.js +0 -75
- package/bundle/typescript/src/generators/config.js.map +0 -1
- package/bundle/typescript/src/generators/dbc.d.ts +0 -1
- package/bundle/typescript/src/generators/dbc.js +0 -85
- package/bundle/typescript/src/generators/dbc.js.map +0 -1
- package/bundle/typescript/src/generators/dockerfile.d.ts +0 -1
- package/bundle/typescript/src/generators/dockerfile.js +0 -42
- package/bundle/typescript/src/generators/dockerfile.js.map +0 -1
- package/bundle/typescript/src/generators/hook.d.ts +0 -1
- package/bundle/typescript/src/generators/hook.js +0 -112
- package/bundle/typescript/src/generators/hook.js.map +0 -1
- package/bundle/typescript/src/generators/kits/_index.d.ts +0 -5
- package/bundle/typescript/src/generators/kits/_index.js +0 -6
- package/bundle/typescript/src/generators/kits/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/kits/auth/_index.js +0 -5
- package/bundle/typescript/src/generators/kits/auth/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js +0 -21
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js +0 -895
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js +0 -213
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js +0 -138
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/esri/_index.js +0 -3
- package/bundle/typescript/src/generators/kits/esri/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/esri.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js +0 -31
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js +0 -85
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/frames/_index.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/frames/_index.js +0 -2
- package/bundle/typescript/src/generators/kits/frames/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/frames/frames.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js +0 -166
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/kit.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/kit.js +0 -17
- package/bundle/typescript/src/generators/kits/kit.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/kits/mui/_index.js +0 -5
- package/bundle/typescript/src/generators/kits/mui/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js +0 -228
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js +0 -158
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js +0 -210
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/mui.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js +0 -79
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js.map +0 -1
- package/bundle/typescript/src/generators/layout.d.ts +0 -1
- package/bundle/typescript/src/generators/layout.js +0 -116
- package/bundle/typescript/src/generators/layout.js.map +0 -1
- package/bundle/typescript/src/generators/maka.gen.d.ts +0 -5
- package/bundle/typescript/src/generators/maka.gen.js +0 -26
- package/bundle/typescript/src/generators/maka.gen.js.map +0 -1
- package/bundle/typescript/src/generators/methods.d.ts +0 -1
- package/bundle/typescript/src/generators/methods.js +0 -65
- package/bundle/typescript/src/generators/methods.js.map +0 -1
- package/bundle/typescript/src/generators/package.d.ts +0 -1
- package/bundle/typescript/src/generators/package.js +0 -71
- package/bundle/typescript/src/generators/package.js.map +0 -1
- package/bundle/typescript/src/generators/page.d.ts +0 -1
- package/bundle/typescript/src/generators/page.js +0 -194
- package/bundle/typescript/src/generators/page.js.map +0 -1
- package/bundle/typescript/src/generators/publish.d.ts +0 -1
- package/bundle/typescript/src/generators/publish.js +0 -75
- package/bundle/typescript/src/generators/publish.js.map +0 -1
- package/bundle/typescript/src/generators/route.d.ts +0 -1
- package/bundle/typescript/src/generators/route.js +0 -68
- package/bundle/typescript/src/generators/route.js.map +0 -1
- package/bundle/typescript/src/generators/services/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/services/_index.js +0 -5
- package/bundle/typescript/src/generators/services/_index.js.map +0 -1
- package/bundle/typescript/src/generators/services/logger.d.ts +0 -1
- package/bundle/typescript/src/generators/services/logger.js +0 -50
- package/bundle/typescript/src/generators/services/logger.js.map +0 -1
- package/bundle/typescript/src/generators/services/openssl.d.ts +0 -1
- package/bundle/typescript/src/generators/services/openssl.js +0 -38
- package/bundle/typescript/src/generators/services/openssl.js.map +0 -1
- package/bundle/typescript/src/generators/services/service.d.ts +0 -3
- package/bundle/typescript/src/generators/services/service.js +0 -16
- package/bundle/typescript/src/generators/services/service.js.map +0 -1
- package/bundle/typescript/src/generators/services/translation.d.ts +0 -1
- package/bundle/typescript/src/generators/services/translation.js +0 -149
- package/bundle/typescript/src/generators/services/translation.js.map +0 -1
- package/bundle/typescript/src/maka.d.ts +0 -2
- package/bundle/typescript/src/maka.js +0 -26
- package/bundle/typescript/src/maka.js.map +0 -1
- package/bundle/typescript/src/templates/aws/cloudformation/create-ec2-instance.template +0 -14
- package/bundle/typescript/src/templates/meteor/api/api.js +0 -20
- package/bundle/typescript/src/templates/meteor/api/api.js.ts +0 -20
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js +0 -50
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js.ts +0 -55
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js +0 -63
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js.ts +0 -69
- package/bundle/typescript/src/templates/meteor/api/methods.js +0 -39
- package/bundle/typescript/src/templates/meteor/api/methods.js.ts +0 -40
- package/bundle/typescript/src/templates/meteor/api/register-api.js +0 -3
- package/bundle/typescript/src/templates/meteor/api/register-api.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/api/resolvers.js +0 -9
- package/bundle/typescript/src/templates/meteor/api/resolvers.js.ts +0 -9
- 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 +0 -6
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js.ts +0 -6
- package/bundle/typescript/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/client/body.html +0 -3
- package/bundle/typescript/src/templates/meteor/app/client/head.html +0 -12
- package/bundle/typescript/src/templates/meteor/app/client/main.js +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.jsx +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.ts +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.tsx +0 -15
- package/bundle/typescript/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -107
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -108
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js +0 -39
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -33
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -24
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -33
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -28
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -28
- 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 +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -98
- 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 +0 -98
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js +0 -24
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -24
- package/bundle/typescript/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.jsx +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.tsx +0 -3
- package/bundle/typescript/src/templates/meteor/app/maka.d.ts +0 -504
- package/bundle/typescript/src/templates/meteor/app/meteor.d.ts +0 -954
- 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 +0 -27
- package/bundle/typescript/src/templates/meteor/app/public/sw.js +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.jsx +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.ts +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.tsx +0 -30
- package/bundle/typescript/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.ts +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/main.js +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.jsx +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.ts +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.tsx +0 -13
- package/bundle/typescript/src/templates/meteor/app/tsconfig.json +0 -40
- package/bundle/typescript/src/templates/meteor/collection/collection.js +0 -51
- package/bundle/typescript/src/templates/meteor/collection/collection.js.ts +0 -55
- package/bundle/typescript/src/templates/meteor/collection/tests.js +0 -27
- package/bundle/typescript/src/templates/meteor/collection/tests.js.ts +0 -27
- package/bundle/typescript/src/templates/meteor/config/docker-compose.yaml +0 -17
- package/bundle/typescript/src/templates/meteor/config/pm2.config.js +0 -27
- package/bundle/typescript/src/templates/meteor/config/process.env +0 -5
- package/bundle/typescript/src/templates/meteor/config/settings.json +0 -11
- package/bundle/typescript/src/templates/meteor/config/ssh.json +0 -6
- package/bundle/typescript/src/templates/meteor/dbc/config.js +0 -70
- package/bundle/typescript/src/templates/meteor/dbc/config.js.ts +0 -70
- package/bundle/typescript/src/templates/meteor/dbc/conn.js +0 -37
- package/bundle/typescript/src/templates/meteor/dbc/conn.js.ts +0 -37
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js +0 -3
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/method/method.js +0 -48
- package/bundle/typescript/src/templates/meteor/method/method.js.ts +0 -48
- 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 +0 -37
- package/bundle/typescript/src/templates/meteor/package/package.js.jsx +0 -37
- package/bundle/typescript/src/templates/meteor/package/package.js.ts +0 -36
- package/bundle/typescript/src/templates/meteor/package/package.js.tsx +0 -37
- 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 +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.jsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.ts +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.tsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.jsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.ts +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.tsx +0 -5
- package/bundle/typescript/src/templates/meteor/project/.maka/config.json +0 -29
- package/bundle/typescript/src/templates/meteor/project/.maka/history.json +0 -1
- package/bundle/typescript/src/templates/meteor/project/README.md +0 -33
- package/bundle/typescript/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/project/build/README +0 -4
- package/bundle/typescript/src/templates/meteor/project/gitignore +0 -9
- package/bundle/typescript/src/templates/meteor/project/package.json +0 -29
- package/bundle/typescript/src/templates/meteor/publish/publish.js +0 -3
- package/bundle/typescript/src/templates/meteor/publish/publish.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js +0 -27
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js.ts +0 -27
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css +0 -5
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css.less +0 -5
- package/bundle/typescript/src/templates/meteor/template/template-tests.js +0 -1
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.jsx +0 -55
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.tsx +0 -55
- package/bundle/typescript/src/templates/meteor/template/template.css +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.css.less +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.css.scss +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.html +0 -5
- package/bundle/typescript/src/templates/meteor/template/template.js +0 -20
- package/bundle/typescript/src/templates/meteor/template/template.js.jsx +0 -77
- package/bundle/typescript/src/templates/meteor/template/template.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/template/template.js.tsx +0 -89
- package/bundle/typescript/src/templates/react/component/component.css +0 -6
- package/bundle/typescript/src/templates/react/component/component.css.less +0 -6
- package/bundle/typescript/src/templates/react/component/component.css.scss +0 -3
- package/bundle/typescript/src/templates/react/component/component.js.jsx +0 -54
- package/bundle/typescript/src/templates/react/component/component.js.tsx +0 -59
- package/bundle/typescript/src/templates/react/hook/hook.css +0 -3
- package/bundle/typescript/src/templates/react/hook/hook.css.scss +0 -3
- package/bundle/typescript/src/templates/react/hook/hook.js.jsx +0 -19
- package/bundle/typescript/src/templates/react/hook/hook.js.tsx +0 -18
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +0 -293
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +0 -329
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.jsx +0 -178
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.tsx +0 -178
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.jsx +0 -59
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.tsx +0 -67
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.jsx +0 -273
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.tsx +0 -275
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.jsx +0 -182
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.tsx +0 -199
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +0 -138
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.tsx +0 -136
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.jsx +0 -29
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.tsx +0 -32
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.css +0 -63
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.jsx +0 -153
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.tsx +0 -164
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.css +0 -105
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.jsx +0 -158
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.tsx +0 -166
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +0 -34
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +0 -53
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +0 -53
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +0 -25
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +0 -25
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +0 -41
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +0 -35
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.jsx +0 -71
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.tsx +0 -71
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.jsx +0 -123
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.tsx +0 -123
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.jsx +0 -56
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.tsx +0 -74
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +0 -43
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +0 -43
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +0 -121
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +0 -117
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.jsx +0 -41
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.tsx +0 -41
- package/bundle/typescript/src/templates/react/route/route.js +0 -8
- package/bundle/typescript/src/templates/react/route/route.js.jsx +0 -5
- package/bundle/typescript/src/templates/react/route/route.js.ts +0 -8
- package/bundle/typescript/src/templates/react/route/route.js.tsx +0 -5
- package/bundle/typescript/src/templates/react/test/test.js +0 -1
- package/bundle/typescript/src/templates/react/test/test.js.jsx +0 -38
- package/bundle/typescript/src/templates/react/test/test.js.ts +0 -1
- package/bundle/typescript/src/templates/react/test/test.js.tsx +0 -38
- package/bundle/typescript/src/templates/service/docker/Dockerfile +0 -54
- package/bundle/typescript/src/templates/service/eslint/babel.config.js +0 -15
- package/bundle/typescript/src/templates/service/eslint/config.eslint.js +0 -57
- package/bundle/typescript/src/templates/service/i18n/i18n.js +0 -33
- package/bundle/typescript/src/templates/service/i18n/i18n.js.ts +0 -33
- 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 +0 -3
- package/bundle/typescript/src/templates/service/i18n/locales.js.ts +0 -3
- package/bundle/typescript/src/templates/service/openssl/openssl.conf +0 -22
- package/bundle/typescript/src/templates/service/test/jest/jest.config.js +0 -6
- package/bundle/typescript/src/templates/service/test/jest/jest.setup.js +0 -7
- package/bundle/typescript/src/tool.d.ts +0 -74
- package/bundle/typescript/src/tool.js +0 -217
- package/bundle/typescript/src/tool.js.map +0 -1
- package/bundle/typescript/src/tools/actions/actions.class.d.ts +0 -25
- package/bundle/typescript/src/tools/actions/actions.class.js +0 -20
- package/bundle/typescript/src/tools/actions/actions.class.js.map +0 -1
- package/bundle/typescript/src/tools/aws/aws.class.d.ts +0 -51
- package/bundle/typescript/src/tools/aws/aws.class.js +0 -802
- package/bundle/typescript/src/tools/aws/aws.class.js.map +0 -1
- package/bundle/typescript/src/tools/aws/aws.interfaces.d.ts +0 -364
- package/bundle/typescript/src/tools/aws/aws.interfaces.js +0 -255
- package/bundle/typescript/src/tools/aws/aws.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/cfg/cfg.class.d.ts +0 -42
- package/bundle/typescript/src/tools/cfg/cfg.class.js +0 -402
- package/bundle/typescript/src/tools/cfg/cfg.class.js.map +0 -1
- package/bundle/typescript/src/tools/docker/docker.class.d.ts +0 -10
- package/bundle/typescript/src/tools/docker/docker.class.js +0 -46
- package/bundle/typescript/src/tools/docker/docker.class.js.map +0 -1
- package/bundle/typescript/src/tools/docker/docker.interfaces.d.ts +0 -18
- package/bundle/typescript/src/tools/docker/docker.interfaces.js +0 -2
- package/bundle/typescript/src/tools/docker/docker.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/fsi/fsi.class.d.ts +0 -130
- package/bundle/typescript/src/tools/fsi/fsi.class.js +0 -685
- package/bundle/typescript/src/tools/fsi/fsi.class.js.map +0 -1
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +0 -190
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +0 -64
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/https/https.class.d.ts +0 -13
- package/bundle/typescript/src/tools/https/https.class.js +0 -302
- package/bundle/typescript/src/tools/https/https.class.js.map +0 -1
- package/bundle/typescript/src/tools/https/https.interface.d.ts +0 -40
- package/bundle/typescript/src/tools/https/https.interface.js +0 -2
- package/bundle/typescript/src/tools/https/https.interface.js.map +0 -1
- package/bundle/typescript/src/tools/log/log.class.d.ts +0 -33
- package/bundle/typescript/src/tools/log/log.class.js +0 -206
- package/bundle/typescript/src/tools/log/log.class.js.map +0 -1
- package/bundle/typescript/src/tools/log/log.interfaces.d.ts +0 -7
- package/bundle/typescript/src/tools/log/log.interfaces.js +0 -2
- package/bundle/typescript/src/tools/log/log.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/mpi/mpi.class.d.ts +0 -26
- package/bundle/typescript/src/tools/mpi/mpi.class.js +0 -523
- package/bundle/typescript/src/tools/mpi/mpi.class.js.map +0 -1
- package/bundle/typescript/src/tools/options/options.class.d.ts +0 -11
- package/bundle/typescript/src/tools/options/options.class.js +0 -64
- package/bundle/typescript/src/tools/options/options.class.js.map +0 -1
- package/bundle/typescript/src/tools/pkg/pkg.class.d.ts +0 -31
- package/bundle/typescript/src/tools/pkg/pkg.class.js +0 -314
- package/bundle/typescript/src/tools/pkg/pkg.class.js.map +0 -1
- package/bundle/typescript/src/tools/progress/progress.class.d.ts +0 -12
- package/bundle/typescript/src/tools/progress/progress.class.js +0 -42
- package/bundle/typescript/src/tools/progress/progress.class.js.map +0 -1
- package/bundle/typescript/src/tools/scaffold/scaffold.class.d.ts +0 -198
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js +0 -868
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js.map +0 -1
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.d.ts +0 -4
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js +0 -42
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js.map +0 -1
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.d.ts +0 -6
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js +0 -2
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/ssh/ssh.class.d.ts +0 -11
- package/bundle/typescript/src/tools/ssh/ssh.class.js +0 -120
- package/bundle/typescript/src/tools/ssh/ssh.class.js.map +0 -1
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.d.ts +0 -21
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js +0 -2
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.class.d.ts +0 -17
- package/bundle/typescript/src/tools/ssl/ssl.class.js +0 -54
- package/bundle/typescript/src/tools/ssl/ssl.class.js.map +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.d.ts +0 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../../../../src/commands/game/sideQuest/models/item.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,407 +0,0 @@
|
|
|
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
|
-
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
|
-
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
|
-
let 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
|
-
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
|
-
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
|
-
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
|