@maka/maka-cli 5.2.6 ā 5.2.7
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 +119 -0
- package/bundle/typescript/src/README.md +37 -0
- package/bundle/typescript/src/command.d.ts +37 -0
- package/bundle/typescript/src/command.js +231 -0
- package/bundle/typescript/src/command.js.map +1 -0
- package/bundle/typescript/src/commands/_index.d.ts +26 -0
- package/bundle/typescript/src/commands/_index.js +28 -0
- package/bundle/typescript/src/commands/_index.js.map +1 -0
- package/bundle/typescript/src/commands/ai/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/ai/_index.js +3 -0
- package/bundle/typescript/src/commands/ai/_index.js.map +1 -0
- package/bundle/typescript/src/commands/ai/ai.command.d.ts +3 -0
- package/bundle/typescript/src/commands/ai/ai.command.js +83 -0
- package/bundle/typescript/src/commands/ai/ai.command.js.map +1 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js +964 -0
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/_index.d.ts +16 -0
- package/bundle/typescript/src/commands/aws/_index.js +17 -0
- package/bundle/typescript/src/commands/aws/_index.js.map +1 -0
- package/bundle/typescript/src/commands/aws/aws.command.d.ts +3 -0
- package/bundle/typescript/src/commands/aws/aws.command.js +15 -0
- package/bundle/typescript/src/commands/aws/aws.command.js.map +1 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js +38 -0
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js +41 -0
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js +199 -0
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js +42 -0
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js +43 -0
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js +31 -0
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js +35 -0
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js +25 -0
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js +57 -0
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js +32 -0
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js +39 -0
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js +104 -0
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js +52 -0
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js +74 -0
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js +45 -0
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/build/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/build/_index.js +3 -0
- package/bundle/typescript/src/commands/build/_index.js.map +1 -0
- package/bundle/typescript/src/commands/build/build.d.ts +3 -0
- package/bundle/typescript/src/commands/build/build.js +98 -0
- package/bundle/typescript/src/commands/build/build.js.map +1 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js +138 -0
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/create.d.ts +1 -0
- package/bundle/typescript/src/commands/create.js +645 -0
- package/bundle/typescript/src/commands/create.js.map +1 -0
- package/bundle/typescript/src/commands/debug.d.ts +1 -0
- package/bundle/typescript/src/commands/debug.js +95 -0
- package/bundle/typescript/src/commands/debug.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/deploy/_index.js +4 -0
- package/bundle/typescript/src/commands/deploy/_index.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.d.ts +3 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.js +24 -0
- package/bundle/typescript/src/commands/deploy/deploy.command.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js +152 -0
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js +543 -0
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/_index.d.ts +5 -0
- package/bundle/typescript/src/commands/game/_index.js +7 -0
- package/bundle/typescript/src/commands/game/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/play.command.d.ts +3 -0
- package/bundle/typescript/src/commands/game/play.command.js +18 -0
- package/bundle/typescript/src/commands/game/play.command.js.map +1 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js +26 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +58 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +63 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +74 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +137 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js +26 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +31 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js +33 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +41 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +54 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +13 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +53 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.d.ts +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.d.ts +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +25 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +19 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +126 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +38 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js +384 -0
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js +9 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +42 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.d.ts +47 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +110 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +56 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +145 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +407 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +58 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +357 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +34 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +67 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +246 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +72 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +310 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.d.ts +0 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +281 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +397 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +47 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +52 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +62 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +23 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.d.ts +22 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +11 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +20 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.d.ts +152 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +90 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.d.ts +8 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.d.ts +25 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js +27 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +69 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +80 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +72 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +16 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +67 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +68 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js +12 -0
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/generate.d.ts +1 -0
- package/bundle/typescript/src/commands/generate.js +42 -0
- package/bundle/typescript/src/commands/generate.js.map +1 -0
- package/bundle/typescript/src/commands/get/_index.d.ts +4 -0
- package/bundle/typescript/src/commands/get/_index.js +5 -0
- package/bundle/typescript/src/commands/get/_index.js.map +1 -0
- package/bundle/typescript/src/commands/get/get.command.d.ts +3 -0
- package/bundle/typescript/src/commands/get/get.command.js +13 -0
- package/bundle/typescript/src/commands/get/get.command.js.map +1 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.js +20 -0
- package/bundle/typescript/src/commands/get/global.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.js +14 -0
- package/bundle/typescript/src/commands/get/local.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js +21 -0
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/help.d.ts +1 -0
- package/bundle/typescript/src/commands/help.js +12 -0
- package/bundle/typescript/src/commands/help.js.map +1 -0
- package/bundle/typescript/src/commands/install.d.ts +1 -0
- package/bundle/typescript/src/commands/install.js +269 -0
- package/bundle/typescript/src/commands/install.js.map +1 -0
- package/bundle/typescript/src/commands/jsdoc.d.ts +1 -0
- package/bundle/typescript/src/commands/jsdoc.js +62 -0
- package/bundle/typescript/src/commands/jsdoc.js.map +1 -0
- package/bundle/typescript/src/commands/lint.d.ts +1 -0
- package/bundle/typescript/src/commands/lint.js +127 -0
- package/bundle/typescript/src/commands/lint.js.map +1 -0
- package/bundle/typescript/src/commands/login.d.ts +1 -0
- package/bundle/typescript/src/commands/login.js +168 -0
- package/bundle/typescript/src/commands/login.js.map +1 -0
- package/bundle/typescript/src/commands/logout.d.ts +1 -0
- package/bundle/typescript/src/commands/logout.js +95 -0
- package/bundle/typescript/src/commands/logout.js.map +1 -0
- package/bundle/typescript/src/commands/logs.d.ts +1 -0
- package/bundle/typescript/src/commands/logs.js +35 -0
- package/bundle/typescript/src/commands/logs.js.map +1 -0
- package/bundle/typescript/src/commands/maka.cmd.d.ts +5 -0
- package/bundle/typescript/src/commands/maka.cmd.js +57 -0
- package/bundle/typescript/src/commands/maka.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/murder.d.ts +1 -0
- package/bundle/typescript/src/commands/murder.js +31 -0
- package/bundle/typescript/src/commands/murder.js.map +1 -0
- package/bundle/typescript/src/commands/profile.d.ts +1 -0
- package/bundle/typescript/src/commands/profile.js +277 -0
- package/bundle/typescript/src/commands/profile.js.map +1 -0
- package/bundle/typescript/src/commands/proxy.d.ts +1 -0
- package/bundle/typescript/src/commands/proxy.js +168 -0
- package/bundle/typescript/src/commands/proxy.js.map +1 -0
- package/bundle/typescript/src/commands/reconfig.d.ts +1 -0
- package/bundle/typescript/src/commands/reconfig.js +69 -0
- package/bundle/typescript/src/commands/reconfig.js.map +1 -0
- package/bundle/typescript/src/commands/register.d.ts +1 -0
- package/bundle/typescript/src/commands/register.js +104 -0
- package/bundle/typescript/src/commands/register.js.map +1 -0
- package/bundle/typescript/src/commands/run/_index.d.ts +2 -0
- package/bundle/typescript/src/commands/run/_index.js +3 -0
- package/bundle/typescript/src/commands/run/_index.js.map +1 -0
- package/bundle/typescript/src/commands/run/docker.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js +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/ssh.d.ts +1 -0
- package/bundle/typescript/src/commands/ssh.js +43 -0
- package/bundle/typescript/src/commands/ssh.js.map +1 -0
- package/bundle/typescript/src/commands/ssl.d.ts +1 -0
- package/bundle/typescript/src/commands/ssl.js +109 -0
- package/bundle/typescript/src/commands/ssl.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/_index.d.ts +3 -0
- package/bundle/typescript/src/commands/testCmd/_index.js +4 -0
- package/bundle/typescript/src/commands/testCmd/_index.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js +131 -0
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js +133 -0
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/testCmd/test.command.d.ts +3 -0
- package/bundle/typescript/src/commands/testCmd/test.command.js +15 -0
- package/bundle/typescript/src/commands/testCmd/test.command.js.map +1 -0
- package/bundle/typescript/src/commands/undo.d.ts +1 -0
- package/bundle/typescript/src/commands/undo.js +12 -0
- package/bundle/typescript/src/commands/undo.js.map +1 -0
- package/bundle/typescript/src/commands/uninstall.d.ts +1 -0
- package/bundle/typescript/src/commands/uninstall.js +76 -0
- package/bundle/typescript/src/commands/uninstall.js.map +1 -0
- package/bundle/typescript/src/commands/version/_index.d.ts +4 -0
- package/bundle/typescript/src/commands/version/_index.js +5 -0
- package/bundle/typescript/src/commands/version/_index.js.map +1 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.js +55 -0
- package/bundle/typescript/src/commands/version/list.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.d.ts +3 -0
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js +21 -0
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.d.ts +1 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.js +83 -0
- package/bundle/typescript/src/commands/version/use.sub.cmd.js.map +1 -0
- package/bundle/typescript/src/commands/version/version.d.ts +3 -0
- package/bundle/typescript/src/commands/version/version.js +59 -0
- package/bundle/typescript/src/commands/version/version.js.map +1 -0
- package/bundle/typescript/src/error.d.ts +12 -0
- package/bundle/typescript/src/error.js +13 -0
- package/bundle/typescript/src/error.js.map +1 -0
- package/bundle/typescript/src/exec.d.ts +2 -0
- package/bundle/typescript/src/exec.js +17 -0
- package/bundle/typescript/src/exec.js.map +1 -0
- package/bundle/typescript/src/generator.d.ts +48 -0
- package/bundle/typescript/src/generator.js +394 -0
- package/bundle/typescript/src/generator.js.map +1 -0
- package/bundle/typescript/src/generators/_index.d.ts +18 -0
- package/bundle/typescript/src/generators/_index.js +19 -0
- package/bundle/typescript/src/generators/_index.js.map +1 -0
- package/bundle/typescript/src/generators/api.d.ts +1 -0
- package/bundle/typescript/src/generators/api.js +257 -0
- package/bundle/typescript/src/generators/api.js.map +1 -0
- package/bundle/typescript/src/generators/aws/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/aws/_index.js +3 -0
- package/bundle/typescript/src/generators/aws/_index.js.map +1 -0
- package/bundle/typescript/src/generators/aws/aws.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/aws.js +16 -0
- package/bundle/typescript/src/generators/aws/aws.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js +21 -0
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js.map +1 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.d.ts +3 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +69 -0
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js.map +1 -0
- package/bundle/typescript/src/generators/collection.d.ts +1 -0
- package/bundle/typescript/src/generators/collection.js +78 -0
- package/bundle/typescript/src/generators/collection.js.map +1 -0
- package/bundle/typescript/src/generators/component.d.ts +1 -0
- package/bundle/typescript/src/generators/component.js +99 -0
- package/bundle/typescript/src/generators/component.js.map +1 -0
- package/bundle/typescript/src/generators/config.d.ts +1 -0
- package/bundle/typescript/src/generators/config.js +75 -0
- package/bundle/typescript/src/generators/config.js.map +1 -0
- package/bundle/typescript/src/generators/dbc.d.ts +1 -0
- package/bundle/typescript/src/generators/dbc.js +85 -0
- package/bundle/typescript/src/generators/dbc.js.map +1 -0
- package/bundle/typescript/src/generators/dockerfile.d.ts +1 -0
- package/bundle/typescript/src/generators/dockerfile.js +42 -0
- package/bundle/typescript/src/generators/dockerfile.js.map +1 -0
- package/bundle/typescript/src/generators/hook.d.ts +1 -0
- package/bundle/typescript/src/generators/hook.js +112 -0
- package/bundle/typescript/src/generators/hook.js.map +1 -0
- package/bundle/typescript/src/generators/kits/_index.d.ts +5 -0
- package/bundle/typescript/src/generators/kits/_index.js +6 -0
- package/bundle/typescript/src/generators/kits/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/kits/auth/_index.js +5 -0
- package/bundle/typescript/src/generators/kits/auth/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js +21 -0
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js +895 -0
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js +213 -0
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js +138 -0
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/_index.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/esri/_index.js +3 -0
- package/bundle/typescript/src/generators/kits/esri/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js +31 -0
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js.map +1 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js +85 -0
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/frames/_index.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/frames/_index.js +2 -0
- package/bundle/typescript/src/generators/kits/frames/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js +166 -0
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js.map +1 -0
- package/bundle/typescript/src/generators/kits/kit.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/kit.js +17 -0
- package/bundle/typescript/src/generators/kits/kit.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/kits/mui/_index.js +5 -0
- package/bundle/typescript/src/generators/kits/mui/_index.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js +228 -0
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.d.ts +2 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js +158 -0
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.d.ts +1 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js +210 -0
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js.map +1 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.d.ts +3 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js +79 -0
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js.map +1 -0
- package/bundle/typescript/src/generators/layout.d.ts +1 -0
- package/bundle/typescript/src/generators/layout.js +116 -0
- package/bundle/typescript/src/generators/layout.js.map +1 -0
- package/bundle/typescript/src/generators/maka.gen.d.ts +5 -0
- package/bundle/typescript/src/generators/maka.gen.js +26 -0
- package/bundle/typescript/src/generators/maka.gen.js.map +1 -0
- package/bundle/typescript/src/generators/methods.d.ts +1 -0
- package/bundle/typescript/src/generators/methods.js +65 -0
- package/bundle/typescript/src/generators/methods.js.map +1 -0
- package/bundle/typescript/src/generators/package.d.ts +1 -0
- package/bundle/typescript/src/generators/package.js +71 -0
- package/bundle/typescript/src/generators/package.js.map +1 -0
- package/bundle/typescript/src/generators/page.d.ts +1 -0
- package/bundle/typescript/src/generators/page.js +194 -0
- package/bundle/typescript/src/generators/page.js.map +1 -0
- package/bundle/typescript/src/generators/publish.d.ts +1 -0
- package/bundle/typescript/src/generators/publish.js +75 -0
- package/bundle/typescript/src/generators/publish.js.map +1 -0
- package/bundle/typescript/src/generators/route.d.ts +1 -0
- package/bundle/typescript/src/generators/route.js +68 -0
- package/bundle/typescript/src/generators/route.js.map +1 -0
- package/bundle/typescript/src/generators/services/_index.d.ts +4 -0
- package/bundle/typescript/src/generators/services/_index.js +5 -0
- package/bundle/typescript/src/generators/services/_index.js.map +1 -0
- package/bundle/typescript/src/generators/services/logger.d.ts +1 -0
- package/bundle/typescript/src/generators/services/logger.js +50 -0
- package/bundle/typescript/src/generators/services/logger.js.map +1 -0
- package/bundle/typescript/src/generators/services/openssl.d.ts +1 -0
- package/bundle/typescript/src/generators/services/openssl.js +38 -0
- package/bundle/typescript/src/generators/services/openssl.js.map +1 -0
- package/bundle/typescript/src/generators/services/service.d.ts +3 -0
- package/bundle/typescript/src/generators/services/service.js +16 -0
- package/bundle/typescript/src/generators/services/service.js.map +1 -0
- package/bundle/typescript/src/generators/services/translation.d.ts +1 -0
- package/bundle/typescript/src/generators/services/translation.js +149 -0
- package/bundle/typescript/src/generators/services/translation.js.map +1 -0
- package/bundle/typescript/src/maka.d.ts +2 -0
- package/bundle/typescript/src/maka.js +26 -0
- package/bundle/typescript/src/maka.js.map +1 -0
- package/bundle/typescript/src/templates/aws/cloudformation/create-ec2-instance.template +14 -0
- package/bundle/typescript/src/templates/meteor/api/api.js +20 -0
- package/bundle/typescript/src/templates/meteor/api/api.js.ts +20 -0
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js +50 -0
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js.ts +55 -0
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js +63 -0
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js.ts +69 -0
- package/bundle/typescript/src/templates/meteor/api/methods.js +39 -0
- package/bundle/typescript/src/templates/meteor/api/methods.js.ts +40 -0
- package/bundle/typescript/src/templates/meteor/api/register-api.js +3 -0
- package/bundle/typescript/src/templates/meteor/api/register-api.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/api/resolvers.js +9 -0
- package/bundle/typescript/src/templates/meteor/api/resolvers.js.ts +9 -0
- package/bundle/typescript/src/templates/meteor/api/tests.js +0 -0
- package/bundle/typescript/src/templates/meteor/api/tests.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js +6 -0
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js.ts +6 -0
- package/bundle/typescript/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/client/body.html +3 -0
- package/bundle/typescript/src/templates/meteor/app/client/head.html +12 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.jsx +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.ts +15 -0
- package/bundle/typescript/src/templates/meteor/app/client/main.js.tsx +15 -0
- package/bundle/typescript/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.jsx +107 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.tsx +108 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js +39 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.jsx +33 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.tsx +33 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.jsx +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.tsx +20 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +28 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +28 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js +1 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.jsx +98 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.tsx +98 -0
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js +24 -0
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -0
- package/bundle/typescript/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.jsx +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.tsx +3 -0
- package/bundle/typescript/src/templates/meteor/app/maka.d.ts +504 -0
- package/bundle/typescript/src/templates/meteor/app/meteor.d.ts +954 -0
- package/bundle/typescript/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/manifest.json +27 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.jsx +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.ts +30 -0
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.tsx +30 -0
- package/bundle/typescript/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.ts +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.jsx +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.ts +13 -0
- package/bundle/typescript/src/templates/meteor/app/server/main.js.tsx +13 -0
- package/bundle/typescript/src/templates/meteor/app/tsconfig.json +40 -0
- package/bundle/typescript/src/templates/meteor/collection/collection.js +51 -0
- package/bundle/typescript/src/templates/meteor/collection/collection.js.ts +55 -0
- package/bundle/typescript/src/templates/meteor/collection/tests.js +27 -0
- package/bundle/typescript/src/templates/meteor/collection/tests.js.ts +27 -0
- package/bundle/typescript/src/templates/meteor/config/docker-compose.yaml +17 -0
- package/bundle/typescript/src/templates/meteor/config/pm2.config.js +27 -0
- package/bundle/typescript/src/templates/meteor/config/process.env +5 -0
- package/bundle/typescript/src/templates/meteor/config/settings.json +11 -0
- package/bundle/typescript/src/templates/meteor/config/ssh.json +6 -0
- package/bundle/typescript/src/templates/meteor/dbc/config.js +70 -0
- package/bundle/typescript/src/templates/meteor/dbc/config.js.ts +70 -0
- package/bundle/typescript/src/templates/meteor/dbc/conn.js +37 -0
- package/bundle/typescript/src/templates/meteor/dbc/conn.js.ts +37 -0
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js +3 -0
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/method/method.js +48 -0
- package/bundle/typescript/src/templates/meteor/method/method.js.ts +48 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/package.js +37 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.jsx +37 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.ts +36 -0
- package/bundle/typescript/src/templates/meteor/package/package.js.tsx +37 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.jsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.ts +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.tsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.jsx +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.ts +5 -0
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.tsx +5 -0
- package/bundle/typescript/src/templates/meteor/project/.maka/config.json +29 -0
- package/bundle/typescript/src/templates/meteor/project/.maka/history.json +1 -0
- package/bundle/typescript/src/templates/meteor/project/README.md +33 -0
- package/bundle/typescript/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/project/build/README +4 -0
- package/bundle/typescript/src/templates/meteor/project/gitignore +9 -0
- package/bundle/typescript/src/templates/meteor/project/package.json +29 -0
- package/bundle/typescript/src/templates/meteor/publish/publish.js +3 -0
- package/bundle/typescript/src/templates/meteor/publish/publish.js.ts +3 -0
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js +27 -0
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js.ts +27 -0
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css +5 -0
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css.less +5 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js +1 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.jsx +55 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.tsx +55 -0
- package/bundle/typescript/src/templates/meteor/template/template.css +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.css.less +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.css.scss +3 -0
- package/bundle/typescript/src/templates/meteor/template/template.html +5 -0
- package/bundle/typescript/src/templates/meteor/template/template.js +20 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.jsx +77 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.ts +1 -0
- package/bundle/typescript/src/templates/meteor/template/template.js.tsx +89 -0
- package/bundle/typescript/src/templates/react/component/component.css +6 -0
- package/bundle/typescript/src/templates/react/component/component.css.less +6 -0
- package/bundle/typescript/src/templates/react/component/component.css.scss +3 -0
- package/bundle/typescript/src/templates/react/component/component.js.jsx +54 -0
- package/bundle/typescript/src/templates/react/component/component.js.tsx +59 -0
- package/bundle/typescript/src/templates/react/hook/hook.css +3 -0
- package/bundle/typescript/src/templates/react/hook/hook.css.scss +3 -0
- package/bundle/typescript/src/templates/react/hook/hook.js.jsx +19 -0
- package/bundle/typescript/src/templates/react/hook/hook.js.tsx +18 -0
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +293 -0
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +329 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.jsx +178 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.tsx +178 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.jsx +59 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.tsx +67 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.jsx +273 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.tsx +275 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.jsx +182 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.tsx +199 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +138 -0
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.tsx +136 -0
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.jsx +29 -0
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.tsx +32 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.css +63 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.jsx +153 -0
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.tsx +164 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.css +105 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.jsx +158 -0
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.tsx +166 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +34 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +53 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +53 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +25 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +25 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +41 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +35 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +33 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.jsx +71 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.tsx +71 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.jsx +123 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.tsx +123 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.jsx +56 -0
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.tsx +74 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +43 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +43 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +121 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +117 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.jsx +41 -0
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.tsx +41 -0
- package/bundle/typescript/src/templates/react/route/route.js +8 -0
- package/bundle/typescript/src/templates/react/route/route.js.jsx +5 -0
- package/bundle/typescript/src/templates/react/route/route.js.ts +8 -0
- package/bundle/typescript/src/templates/react/route/route.js.tsx +5 -0
- package/bundle/typescript/src/templates/react/test/test.js +1 -0
- package/bundle/typescript/src/templates/react/test/test.js.jsx +38 -0
- package/bundle/typescript/src/templates/react/test/test.js.ts +1 -0
- package/bundle/typescript/src/templates/react/test/test.js.tsx +38 -0
- package/bundle/typescript/src/templates/service/docker/Dockerfile +54 -0
- package/bundle/typescript/src/templates/service/eslint/babel.config.js +15 -0
- package/bundle/typescript/src/templates/service/eslint/config.eslint.js +57 -0
- package/bundle/typescript/src/templates/service/i18n/i18n.js +33 -0
- package/bundle/typescript/src/templates/service/i18n/i18n.js.ts +33 -0
- package/bundle/typescript/src/templates/service/i18n/index.js +0 -0
- package/bundle/typescript/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/typescript/src/templates/service/i18n/locales.js +3 -0
- package/bundle/typescript/src/templates/service/i18n/locales.js.ts +3 -0
- package/bundle/typescript/src/templates/service/openssl/openssl.conf +22 -0
- package/bundle/typescript/src/templates/service/test/jest/jest.config.js +6 -0
- package/bundle/typescript/src/templates/service/test/jest/jest.setup.js +7 -0
- package/bundle/typescript/src/tool.d.ts +74 -0
- package/bundle/typescript/src/tool.js +217 -0
- package/bundle/typescript/src/tool.js.map +1 -0
- package/bundle/typescript/src/tools/actions/actions.class.d.ts +29 -0
- package/bundle/typescript/src/tools/actions/actions.class.js +58 -0
- package/bundle/typescript/src/tools/actions/actions.class.js.map +1 -0
- package/bundle/typescript/src/tools/aws/aws.class.d.ts +51 -0
- package/bundle/typescript/src/tools/aws/aws.class.js +802 -0
- package/bundle/typescript/src/tools/aws/aws.class.js.map +1 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.d.ts +364 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.js +255 -0
- package/bundle/typescript/src/tools/aws/aws.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.d.ts +42 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.js +402 -0
- package/bundle/typescript/src/tools/cfg/cfg.class.js.map +1 -0
- package/bundle/typescript/src/tools/docker/docker.class.d.ts +10 -0
- package/bundle/typescript/src/tools/docker/docker.class.js +46 -0
- package/bundle/typescript/src/tools/docker/docker.class.js.map +1 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.d.ts +18 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.js +2 -0
- package/bundle/typescript/src/tools/docker/docker.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.d.ts +130 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js +685 -0
- package/bundle/typescript/src/tools/fsi/fsi.class.js.map +1 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +191 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +64 -0
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.class.d.ts +13 -0
- package/bundle/typescript/src/tools/https/https.class.js +302 -0
- package/bundle/typescript/src/tools/https/https.class.js.map +1 -0
- package/bundle/typescript/src/tools/https/https.interface.d.ts +40 -0
- package/bundle/typescript/src/tools/https/https.interface.js +2 -0
- package/bundle/typescript/src/tools/https/https.interface.js.map +1 -0
- package/bundle/typescript/src/tools/log/log.class.d.ts +33 -0
- package/bundle/typescript/src/tools/log/log.class.js +206 -0
- package/bundle/typescript/src/tools/log/log.class.js.map +1 -0
- package/bundle/typescript/src/tools/log/log.interfaces.d.ts +7 -0
- package/bundle/typescript/src/tools/log/log.interfaces.js +2 -0
- package/bundle/typescript/src/tools/log/log.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.d.ts +26 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.js +523 -0
- package/bundle/typescript/src/tools/mpi/mpi.class.js.map +1 -0
- package/bundle/typescript/src/tools/options/options.class.d.ts +11 -0
- package/bundle/typescript/src/tools/options/options.class.js +64 -0
- package/bundle/typescript/src/tools/options/options.class.js.map +1 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.d.ts +31 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.js +314 -0
- package/bundle/typescript/src/tools/pkg/pkg.class.js.map +1 -0
- package/bundle/typescript/src/tools/progress/progress.class.d.ts +12 -0
- package/bundle/typescript/src/tools/progress/progress.class.js +42 -0
- package/bundle/typescript/src/tools/progress/progress.class.js.map +1 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.d.ts +198 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js +868 -0
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js.map +1 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.d.ts +4 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js +42 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js.map +1 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.d.ts +6 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js +2 -0
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.d.ts +11 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.js +120 -0
- package/bundle/typescript/src/tools/ssh/ssh.class.js.map +1 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.d.ts +21 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js +2 -0
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js.map +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.d.ts +17 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js +54 -0
- package/bundle/typescript/src/tools/ssl/ssl.class.js.map +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.d.ts +0 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js +1 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import AICommand from './ai.command.js';
|
|
2
|
+
import Maka from '../maka.cmd.js';
|
|
3
|
+
import { Command } from '../../command.js';
|
|
4
|
+
import { Log } from '../../tools/log/log.class.js';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import cors from 'cors';
|
|
10
|
+
import path from 'path';
|
|
11
|
+
import fs from 'fs';
|
|
12
|
+
import { fileURLToPath } from 'url';
|
|
13
|
+
import { execSync } from 'child_process';
|
|
14
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
15
|
+
const __dirname = path.dirname(__filename);
|
|
16
|
+
/**
|
|
17
|
+
* Get all commands from the Maka CLI
|
|
18
|
+
*/
|
|
19
|
+
const getAllCommands = (cmd, prefix = '') => {
|
|
20
|
+
const commands = [];
|
|
21
|
+
if (cmd._commands && cmd._commands.length > 0) {
|
|
22
|
+
for (const subCmd of cmd._commands) {
|
|
23
|
+
const fullName = prefix ? `${prefix}:${subCmd.name}` : subCmd.name;
|
|
24
|
+
// Skip internal/hidden commands
|
|
25
|
+
if (subCmd.name === 'murder' || subCmd.name === 'play') {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
commands.push({
|
|
29
|
+
name: fullName,
|
|
30
|
+
aliases: subCmd.aliases ? subCmd.aliases() : 'None',
|
|
31
|
+
shortDesc: subCmd.shortDesc ? subCmd.shortDesc() : '',
|
|
32
|
+
description: subCmd.description ? subCmd.description() : '',
|
|
33
|
+
usage: subCmd.options?.usage || `maka ${fullName}`,
|
|
34
|
+
examples: subCmd.options?.examples || [],
|
|
35
|
+
validOpts: subCmd.options?.validOpts || [],
|
|
36
|
+
requiredOpts: subCmd.options?.requiredOpts || [],
|
|
37
|
+
experimental: subCmd.experimental ? subCmd.experimental() : false
|
|
38
|
+
});
|
|
39
|
+
// Recursively get subcommands
|
|
40
|
+
const subCommands = getAllCommands(subCmd, fullName);
|
|
41
|
+
commands.push(...subCommands);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return commands;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Get project configuration if in a Maka project
|
|
48
|
+
*/
|
|
49
|
+
const getProjectInfo = (projectPath) => {
|
|
50
|
+
try {
|
|
51
|
+
const configPath = path.join(projectPath, '.maka', 'config.json');
|
|
52
|
+
if (fs.existsSync(configPath)) {
|
|
53
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
54
|
+
return {
|
|
55
|
+
isMakaProject: true,
|
|
56
|
+
config,
|
|
57
|
+
projectPath
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e) {
|
|
62
|
+
// Not a Maka project or config error
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
isMakaProject: false,
|
|
66
|
+
projectPath
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Creates and configures the MCP server with tools and resources
|
|
71
|
+
*/
|
|
72
|
+
const createMcpServer = (projectPath, tool) => {
|
|
73
|
+
const server = new McpServer({
|
|
74
|
+
name: 'maka-cli-mcp-server',
|
|
75
|
+
version: '1.0.0'
|
|
76
|
+
}, {
|
|
77
|
+
capabilities: {
|
|
78
|
+
logging: {},
|
|
79
|
+
tools: {},
|
|
80
|
+
resources: {},
|
|
81
|
+
prompts: {}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const commands = getAllCommands(Maka);
|
|
85
|
+
const projectInfo = getProjectInfo(projectPath);
|
|
86
|
+
// Resource: Agent Instructions - How to work with Maka CLI
|
|
87
|
+
server.resource('agent-instructions', 'maka://instructions/agent-workflow', {
|
|
88
|
+
mimeType: 'text/markdown',
|
|
89
|
+
description: 'ā CRITICAL: Read this first! Instructions for AI agents on how to properly work with Maka CLI'
|
|
90
|
+
}, async () => {
|
|
91
|
+
return {
|
|
92
|
+
contents: [
|
|
93
|
+
{
|
|
94
|
+
uri: 'maka://instructions/agent-workflow',
|
|
95
|
+
mimeType: 'text/markdown',
|
|
96
|
+
text: `# Maka CLI Agent Workflow Instructions
|
|
97
|
+
|
|
98
|
+
## ā ļø CRITICAL: Read This Before Using Any Maka Commands
|
|
99
|
+
|
|
100
|
+
### What is Maka CLI?
|
|
101
|
+
|
|
102
|
+
Maka-CLI is a command line scaffolding tool for building modern web applications. It organizes file structure and automates package installation for React, GraphQL, REST APIs, Material-UI, and testing frameworks. Maka-CLI integrates with Meteor.js to develop high-performing, scalable Node.js applications deployable to on-prem and cloud infrastructures.
|
|
103
|
+
|
|
104
|
+
### Key Maka Project Principles
|
|
105
|
+
|
|
106
|
+
**IMPORTANT Directory Information:**
|
|
107
|
+
- Maka commands can be run from **anywhere in the project** - you do NOT need to navigate to the 'app' directory
|
|
108
|
+
- The CLI automatically detects the project root (where .maka directory exists) and operates relative to it
|
|
109
|
+
- When making changes or generating files, stay in your current directory and let Maka handle the paths
|
|
110
|
+
|
|
111
|
+
**AVOID Creating new files outside of using maka.**
|
|
112
|
+
- To keep directory structure organized, new resources should be created using a maka generator, and then modified to suite the task.
|
|
113
|
+
- If there is no generator for a a needed file, then it should be created as close to the implementation as possible.
|
|
114
|
+
|
|
115
|
+
**Package Installation:**
|
|
116
|
+
- Use \`maka npm install <package>\` for npm packages (NOT \`npm install\` directly)
|
|
117
|
+
- Use \`maka add <meteor:package>\` for Meteor packages (NOT \`meteor add\` directly)
|
|
118
|
+
- Maka CLI proxies these commands to the appropriate tools with correct configuration
|
|
119
|
+
|
|
120
|
+
**Verifying Changes with Logs:**
|
|
121
|
+
- After making changes, use the \`get-run-logs\` tool to inspect recent log output
|
|
122
|
+
- Logs are located in \`.maka/logs/run-[env]-[timestamp].log\`
|
|
123
|
+
- Check log timestamps to ensure the Meteor app is running and logs are current
|
|
124
|
+
- ā ļø **If logs are not recent (older than a few minutes), the app may not be running!**
|
|
125
|
+
- False positives: Old success messages don't mean current changes worked
|
|
126
|
+
- False negatives: Recent errors might be from old code if app wasn't restarted
|
|
127
|
+
- **Best practice:** Ensure \`maka run\` is active, then check logs after changes appear
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Required Workflow for ALL Maka Commands
|
|
133
|
+
|
|
134
|
+
**NEVER execute a Maka command without following this workflow:**
|
|
135
|
+
|
|
136
|
+
#### 1. INVESTIGATE OPTIONS FIRST
|
|
137
|
+
- Use \`get-command-info\` tool to discover all available options for the command
|
|
138
|
+
- Review required options, optional flags, allowed values, and examples
|
|
139
|
+
- Understand what the command does and what it needs
|
|
140
|
+
|
|
141
|
+
#### 2. BE INTERACTIVE WITH THE USER
|
|
142
|
+
- **You must prompt the user for any required information**
|
|
143
|
+
- Ask clear, specific questions about:
|
|
144
|
+
- Required parameters (e.g., "What should we name this component?")
|
|
145
|
+
- Technology choices (e.g., "Would you like to use TypeScript or JavaScript?")
|
|
146
|
+
- Optional features (e.g., "Should this page be private/authenticated?")
|
|
147
|
+
- Present options as clear choices when applicable
|
|
148
|
+
- Gather ALL necessary information before proceeding
|
|
149
|
+
|
|
150
|
+
#### 3. CONSTRUCT COMPLETE COMMAND
|
|
151
|
+
- Build the full command with ALL options as flags
|
|
152
|
+
- Use the format: \`maka <command> <name> --option1=value --flag2 --option3=value\`
|
|
153
|
+
- Boolean flags don't need values (use \`--private\`, not \`--private=true\`)
|
|
154
|
+
- **Never rely on Maka's built-in interactive prompts - they don't work via MCP**
|
|
155
|
+
|
|
156
|
+
#### 4. EXECUTE WITH ALL FLAGS
|
|
157
|
+
- Only execute when you have all required information
|
|
158
|
+
- Always include the "maka" prefix
|
|
159
|
+
- Run from anywhere in the project - no need to change directories
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
#### 6. Use MeteorJS Documentation to create high quality Meteor applications:
|
|
163
|
+
https://docs.meteor.com/about/what-is.html
|
|
164
|
+
https://docs.meteor.com/api/
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Examples of Good Agent Behavior
|
|
168
|
+
|
|
169
|
+
#### Example 1: Creating a Component
|
|
170
|
+
\`\`\`
|
|
171
|
+
User: "I want to create a login component"
|
|
172
|
+
|
|
173
|
+
Agent: "I'll help you create a login component. Let me gather some information:
|
|
174
|
+
|
|
175
|
+
1. Should this be in a specific directory? (default: components)
|
|
176
|
+
2. Do you want test files generated? (default: yes)
|
|
177
|
+
3. Any specific styling framework? (options: css, scss, less, stylus)
|
|
178
|
+
|
|
179
|
+
User: "Put it in components/auth, yes to tests, use scss"
|
|
180
|
+
|
|
181
|
+
Agent: "Perfect! I'll create the login component now."
|
|
182
|
+
[Executes: maka generate:component login --baseDir=components/auth --withTests --css=scss]
|
|
183
|
+
Agent: "Component created successfully and is ready to use."
|
|
184
|
+
\`\`\`
|
|
185
|
+
|
|
186
|
+
#### Example 2: Creating a New App
|
|
187
|
+
\`\`\`
|
|
188
|
+
User: "Create a new Meteor app"
|
|
189
|
+
|
|
190
|
+
Agent: "I'll help you create a new Meteor application. I need some information:
|
|
191
|
+
|
|
192
|
+
1. What should we name the application?
|
|
193
|
+
2. JavaScript or TypeScript? (js/ts)
|
|
194
|
+
3. Which client framework? (react/vue/blaze)
|
|
195
|
+
4. GraphQL or REST API? (graphql/rest)
|
|
196
|
+
5. CSS framework? (scss/less/css)
|
|
197
|
+
|
|
198
|
+
User: "Name it MyApp, use TypeScript, React, GraphQL, and SCSS"
|
|
199
|
+
|
|
200
|
+
Agent: "Great! Creating your application now..."
|
|
201
|
+
[Executes: maka create MyApp --js=ts --client=react --api=graphql --css=scss]
|
|
202
|
+
\`\`\`
|
|
203
|
+
|
|
204
|
+
#### Example 3: Installing Packages
|
|
205
|
+
\`\`\`
|
|
206
|
+
User: "I need to add lodash and the accounts package"
|
|
207
|
+
|
|
208
|
+
Agent: "I'll install those packages for you using the Maka CLI."
|
|
209
|
+
[Executes: maka npm install lodash]
|
|
210
|
+
[Executes: maka add accounts-password]
|
|
211
|
+
Agent: "Packages installed successfully! lodash and accounts-password are ready to use."
|
|
212
|
+
\`\`\`
|
|
213
|
+
|
|
214
|
+
#### Example 4: Working from Any Directory
|
|
215
|
+
\`\`\`
|
|
216
|
+
User: "Add a new route for the dashboard"
|
|
217
|
+
|
|
218
|
+
Agent: "I'll create a dashboard route. No need to change directories - Maka handles the paths."
|
|
219
|
+
[Executes: maka generate:route dashboard --private --url=/dashboard]
|
|
220
|
+
Agent: "Dashboard route created successfully and is configured."
|
|
221
|
+
\`\`\`
|
|
222
|
+
|
|
223
|
+
### Common Pitfalls to Avoid
|
|
224
|
+
|
|
225
|
+
ā **BAD:** Executing \`maka create MyApp\` and letting Maka prompt for options
|
|
226
|
+
ā
**GOOD:** Asking user for preferences, then executing \`maka create MyApp --js=ts --client=react --api=graphql\`
|
|
227
|
+
|
|
228
|
+
ā **BAD:** Running \`npm install lodash\` directly
|
|
229
|
+
ā
**GOOD:** Running \`maka npm install lodash\` through Maka CLI
|
|
230
|
+
|
|
231
|
+
ā **BAD:** Running \`cd app && maka generate:component MyComponent\`
|
|
232
|
+
ā
**GOOD:** Running \`maka generate:component MyComponent\` from anywhere in the project
|
|
233
|
+
|
|
234
|
+
### Summary
|
|
235
|
+
|
|
236
|
+
**Your role as an AI agent:**
|
|
237
|
+
1. š **Investigate** - Use get-command-info to understand the command
|
|
238
|
+
2. š¬ **Interact** - Prompt the user for all necessary information
|
|
239
|
+
3. š§ **Construct** - Build complete command with all flags
|
|
240
|
+
4. ā¶ļø **Execute** - Run the command with full options (from anywhere in the project)
|
|
241
|
+
|
|
242
|
+
**Remember:**
|
|
243
|
+
- Run Maka commands from anywhere in the project (no need to cd to 'app')
|
|
244
|
+
- Use \`maka npm install\` and \`maka add\` for package management
|
|
245
|
+
- Provide all options as command-line flags (interactive prompts don't work via MCP)
|
|
246
|
+
|
|
247
|
+
This ensures a smooth experience since Maka's interactive prompts cannot work through the MCP protocol.`
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
};
|
|
251
|
+
});
|
|
252
|
+
// Tool: List all available Maka CLI commands
|
|
253
|
+
server.tool('list-maka-commands', 'List all available Maka CLI commands with descriptions. NOTE: Many commands support interactive prompts, but when using via MCP/API, always provide all required options as command-line flags to avoid interactive prompts.', {
|
|
254
|
+
filter: z.string().optional().describe('Filter commands by name or category (e.g., "aws", "generate", "deploy")')
|
|
255
|
+
}, async ({ filter }) => {
|
|
256
|
+
let filteredCommands = commands;
|
|
257
|
+
if (filter) {
|
|
258
|
+
filteredCommands = commands.filter(cmd => cmd.name.toLowerCase().includes(filter.toLowerCase()) ||
|
|
259
|
+
cmd.shortDesc.toLowerCase().includes(filter.toLowerCase()));
|
|
260
|
+
}
|
|
261
|
+
const commandList = filteredCommands.map(cmd => {
|
|
262
|
+
const experimental = cmd.experimental ? ' (experimental)' : '';
|
|
263
|
+
return `⢠maka ${cmd.name}${experimental}\n ${cmd.shortDesc}\n Usage: ${cmd.usage}`;
|
|
264
|
+
}).join('\n\n');
|
|
265
|
+
return {
|
|
266
|
+
content: [
|
|
267
|
+
{
|
|
268
|
+
type: 'text',
|
|
269
|
+
text: `Available Maka CLI Commands:\n\n${commandList}\n\nTotal: ${filteredCommands.length} commands\n\nā ļø IMPORTANT NOTES:\n⢠All commands must be prefixed with "maka" when executing\n⢠Always provide all options as command-line flags (e.g., --option=value)\n⢠Never rely on interactive prompts - use get-command-info to see available options\n⢠Example: maka generate:page myPage --private --url=/custom-path`
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
// Tool: Get detailed command information
|
|
275
|
+
server.tool('get-command-info', 'Get detailed information about a specific Maka CLI command', {
|
|
276
|
+
command: z.string().describe('Command name (e.g., "create", "generate:component", "aws:create-instance")')
|
|
277
|
+
}, async ({ command }) => {
|
|
278
|
+
const cmd = commands.find(c => c.name === command ||
|
|
279
|
+
c.name.replace(/:/g, '-') === command ||
|
|
280
|
+
c.aliases === command);
|
|
281
|
+
if (!cmd) {
|
|
282
|
+
return {
|
|
283
|
+
content: [
|
|
284
|
+
{
|
|
285
|
+
type: 'text',
|
|
286
|
+
text: `Command "${command}" not found. Use list-maka-commands to see available commands.`
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
// Format valid options with details if available
|
|
292
|
+
const formatValidOpts = (opts) => {
|
|
293
|
+
if (!opts || opts.length === 0)
|
|
294
|
+
return null;
|
|
295
|
+
return opts.map((opt) => {
|
|
296
|
+
if (typeof opt === 'string') {
|
|
297
|
+
return ` --${opt}`;
|
|
298
|
+
}
|
|
299
|
+
else if (opt.name) {
|
|
300
|
+
const parts = [` --${opt.name}`];
|
|
301
|
+
if (opt.boolFlag)
|
|
302
|
+
parts.push(' (boolean flag)');
|
|
303
|
+
if (opt.description)
|
|
304
|
+
parts.push(`\n ${opt.description}`);
|
|
305
|
+
if (opt.values)
|
|
306
|
+
parts.push(`\n Allowed values: ${opt.values.join(', ')}`);
|
|
307
|
+
return parts.join('');
|
|
308
|
+
}
|
|
309
|
+
return ` --${opt}`;
|
|
310
|
+
}).join('\n');
|
|
311
|
+
};
|
|
312
|
+
const validOptsFormatted = formatValidOpts(cmd.validOpts);
|
|
313
|
+
const requiredOptsFormatted = cmd.requiredOpts?.length > 0
|
|
314
|
+
? cmd.requiredOpts.map((o) => ` --${o.name || o}`).join('\n')
|
|
315
|
+
: null;
|
|
316
|
+
const details = [
|
|
317
|
+
`Command: maka ${cmd.name}`,
|
|
318
|
+
cmd.aliases !== 'None' ? `Aliases: maka ${cmd.aliases}` : null,
|
|
319
|
+
`\nDescription:\n${cmd.description || cmd.shortDesc}`,
|
|
320
|
+
`\nUsage:\n${cmd.usage}`,
|
|
321
|
+
requiredOptsFormatted ? `\nā ļø Required Options (must be provided):\n${requiredOptsFormatted}` : null,
|
|
322
|
+
validOptsFormatted ? `\nAvailable Options:\n${validOptsFormatted}` : null,
|
|
323
|
+
cmd.examples?.length > 0 ? `\nExamples:\n${cmd.examples.map((e) => ` ${e}`).join('\n')}` : null,
|
|
324
|
+
cmd.experimental ? '\nā ļø This is an experimental command' : null,
|
|
325
|
+
`\nš” IMPORTANT: When executing via MCP/API:`,
|
|
326
|
+
` ⢠Always provide options as flags: --option=value or --flag`,
|
|
327
|
+
` ⢠Do not rely on interactive prompts`,
|
|
328
|
+
` ⢠Use: maka ${cmd.name} <args> [--option=value ...]`
|
|
329
|
+
].filter(Boolean).join('\n');
|
|
330
|
+
return {
|
|
331
|
+
content: [
|
|
332
|
+
{
|
|
333
|
+
type: 'text',
|
|
334
|
+
text: details
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
};
|
|
338
|
+
});
|
|
339
|
+
// Tool: Execute Maka CLI command (read-only operations)
|
|
340
|
+
server.tool('execute-maka-command', 'Execute a Maka CLI command (use with caution - some commands may modify files). CRITICAL: (1) Always include "maka" prefix, (2) Always provide ALL options as command-line flags to avoid interactive prompts, (3) Use get-command-info first to see available options.', {
|
|
341
|
+
command: z.string().describe('Full command with all options as flags (e.g., "maka create myApp --js=jsx --css=scss", "maka generate:page homePage --private --url=/home"). NEVER rely on interactive prompts - always specify options explicitly.'),
|
|
342
|
+
workingDirectory: z.string().optional().describe('Working directory for the command (defaults to current project path)')
|
|
343
|
+
}, async ({ command, workingDirectory }) => {
|
|
344
|
+
const cwd = workingDirectory || projectPath;
|
|
345
|
+
let fullCommand = command.trim();
|
|
346
|
+
try {
|
|
347
|
+
// Ensure command starts with "maka"
|
|
348
|
+
if (!fullCommand.startsWith('maka ') && !fullCommand.startsWith('maka\t')) {
|
|
349
|
+
fullCommand = `maka ${fullCommand}`;
|
|
350
|
+
}
|
|
351
|
+
// Safety check: prevent destructive operations
|
|
352
|
+
// Use word boundaries to avoid false positives (e.g., "rm" in "confirm")
|
|
353
|
+
const dangerousCommands = ['murder', 'uninstall', 'delete'];
|
|
354
|
+
const dangerousPattern = new RegExp(`\\b(${dangerousCommands.join('|')})\\b`, 'i');
|
|
355
|
+
// Check for standalone 'rm' command (not as part of other words)
|
|
356
|
+
const rmPattern = /\brm\s+/i;
|
|
357
|
+
if (dangerousPattern.test(fullCommand) || rmPattern.test(fullCommand)) {
|
|
358
|
+
return {
|
|
359
|
+
content: [
|
|
360
|
+
{
|
|
361
|
+
type: 'text',
|
|
362
|
+
text: 'ā ļø This command may be destructive and cannot be executed via MCP for safety reasons.'
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
const output = execSync(fullCommand, {
|
|
368
|
+
cwd,
|
|
369
|
+
encoding: 'utf-8',
|
|
370
|
+
timeout: 120000, // 2 minutes for create commands
|
|
371
|
+
maxBuffer: 10 * 1024 * 1024, // 10MB
|
|
372
|
+
stdio: 'pipe' // Ensure we capture all output
|
|
373
|
+
});
|
|
374
|
+
return {
|
|
375
|
+
content: [
|
|
376
|
+
{
|
|
377
|
+
type: 'text',
|
|
378
|
+
text: `ā
Command executed successfully:\n${fullCommand}\n\nOutput:\n${output}`
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
catch (error) {
|
|
384
|
+
// Capture all available error information
|
|
385
|
+
const errorDetails = [
|
|
386
|
+
`ā Error executing command: ${fullCommand}`,
|
|
387
|
+
`\nWorking Directory: ${cwd}`,
|
|
388
|
+
`\nError Message: ${error.message}`,
|
|
389
|
+
error.stdout ? `\nStdout:\n${error.stdout}` : '',
|
|
390
|
+
error.stderr ? `\nStderr:\n${error.stderr}` : '',
|
|
391
|
+
error.status !== undefined ? `\nExit Code: ${error.status}` : '',
|
|
392
|
+
error.signal ? `\nSignal: ${error.signal}` : ''
|
|
393
|
+
].filter(Boolean).join('\n');
|
|
394
|
+
return {
|
|
395
|
+
content: [
|
|
396
|
+
{
|
|
397
|
+
type: 'text',
|
|
398
|
+
text: errorDetails
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
// Tool: Get run logs
|
|
405
|
+
server.tool('get-run-logs', 'Read recent Meteor run logs to verify changes and check application status. IMPORTANT: Check log timestamps - if logs are old, the app may not be running!', {
|
|
406
|
+
env: z.string().optional().describe('Environment name (e.g., "local", "development"). Defaults to "local"'),
|
|
407
|
+
lines: z.number().optional().describe('Number of lines to read from the end of the most recent log file (default: 100)')
|
|
408
|
+
}, async ({ env, lines }) => {
|
|
409
|
+
if (!projectInfo.isMakaProject) {
|
|
410
|
+
return {
|
|
411
|
+
content: [
|
|
412
|
+
{
|
|
413
|
+
type: 'text',
|
|
414
|
+
text: 'Not in a Maka project. Run logs are only available in Maka projects.'
|
|
415
|
+
}
|
|
416
|
+
]
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
try {
|
|
420
|
+
const environment = env || 'local';
|
|
421
|
+
const lineCount = lines || 100;
|
|
422
|
+
const logsDir = path.join(projectPath, '.maka', 'logs');
|
|
423
|
+
if (!fs.existsSync(logsDir)) {
|
|
424
|
+
return {
|
|
425
|
+
content: [
|
|
426
|
+
{
|
|
427
|
+
type: 'text',
|
|
428
|
+
text: `No logs directory found at .maka/logs/\n\nThis usually means:\n1. The app has never been run with \`maka run\`, OR\n2. Logging was disabled with \`--no-log\` flag\n\nTo generate logs, run: maka run`
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
// Try to use the "latest" log file first (symlink or copy)
|
|
434
|
+
const latestLogPath = path.join(logsDir, `run-${environment}-latest.log`);
|
|
435
|
+
let mostRecentLog = null;
|
|
436
|
+
if (fs.existsSync(latestLogPath)) {
|
|
437
|
+
// Use the latest log file
|
|
438
|
+
const stats = fs.statSync(latestLogPath);
|
|
439
|
+
mostRecentLog = {
|
|
440
|
+
name: `run-${environment}-latest.log`,
|
|
441
|
+
path: latestLogPath,
|
|
442
|
+
mtime: stats.mtime
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
// Fallback: Find all log files for this environment and use most recent
|
|
447
|
+
const logFiles = fs.readdirSync(logsDir)
|
|
448
|
+
.filter(file => file.startsWith(`run-${environment}-`) && file.endsWith('.log') && !file.includes('latest'))
|
|
449
|
+
.map(file => ({
|
|
450
|
+
name: file,
|
|
451
|
+
path: path.join(logsDir, file),
|
|
452
|
+
mtime: fs.statSync(path.join(logsDir, file)).mtime
|
|
453
|
+
}))
|
|
454
|
+
.sort((a, b) => b.mtime.getTime() - a.mtime.getTime());
|
|
455
|
+
if (logFiles.length === 0) {
|
|
456
|
+
return {
|
|
457
|
+
content: [
|
|
458
|
+
{
|
|
459
|
+
type: 'text',
|
|
460
|
+
text: `No log files found for environment: ${environment}\n\nAvailable log files:\n${fs.readdirSync(logsDir).join('\n')}\n\nTo generate logs for this environment, run: maka run --env=${environment}`
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
mostRecentLog = logFiles[0];
|
|
466
|
+
}
|
|
467
|
+
const logContent = fs.readFileSync(mostRecentLog.path, 'utf-8');
|
|
468
|
+
const logLines = logContent.split('\n');
|
|
469
|
+
const recentLines = logLines.slice(-lineCount).join('\n');
|
|
470
|
+
// Calculate how old the log is
|
|
471
|
+
const now = new Date();
|
|
472
|
+
const logAge = Math.floor((now.getTime() - mostRecentLog.mtime.getTime()) / 1000);
|
|
473
|
+
const logAgeMinutes = Math.floor(logAge / 60);
|
|
474
|
+
const logAgeSeconds = logAge % 60;
|
|
475
|
+
let ageWarning = '';
|
|
476
|
+
if (logAge > 300) { // 5 minutes
|
|
477
|
+
ageWarning = `\nā ļø WARNING: This log is ${logAgeMinutes} minutes old! The Meteor app may not be running.\n`;
|
|
478
|
+
}
|
|
479
|
+
else if (logAge > 60) {
|
|
480
|
+
ageWarning = `\nā ļø Note: Log is ${logAgeMinutes} minutes ${logAgeSeconds} seconds old.\n`;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
ageWarning = `\nā
Log is recent (${logAgeSeconds} seconds old) - app appears to be running.\n`;
|
|
484
|
+
}
|
|
485
|
+
// Count total log files for this environment
|
|
486
|
+
const allLogFiles = fs.readdirSync(logsDir)
|
|
487
|
+
.filter(file => file.startsWith(`run-${environment}-`) && file.endsWith('.log') && !file.includes('latest'));
|
|
488
|
+
const response = [
|
|
489
|
+
`Most Recent Log: ${mostRecentLog.name}`,
|
|
490
|
+
`Last Modified: ${mostRecentLog.mtime.toISOString()}`,
|
|
491
|
+
ageWarning,
|
|
492
|
+
`Showing last ${lineCount} lines:\n`,
|
|
493
|
+
`${'='.repeat(80)}`,
|
|
494
|
+
recentLines,
|
|
495
|
+
`${'='.repeat(80)}`,
|
|
496
|
+
`\nTotal log files for ${environment}: ${allLogFiles.length}`,
|
|
497
|
+
`Log file path: ${path.relative(projectPath, mostRecentLog.path)}`
|
|
498
|
+
].join('\n');
|
|
499
|
+
return {
|
|
500
|
+
content: [
|
|
501
|
+
{
|
|
502
|
+
type: 'text',
|
|
503
|
+
text: response
|
|
504
|
+
}
|
|
505
|
+
]
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
catch (error) {
|
|
509
|
+
return {
|
|
510
|
+
content: [
|
|
511
|
+
{
|
|
512
|
+
type: 'text',
|
|
513
|
+
text: `Error reading logs: ${error.message}`
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
// Tool: Get project information
|
|
520
|
+
server.tool('get-project-info', 'Get information about the current Maka project', {}, async () => {
|
|
521
|
+
if (!projectInfo.isMakaProject) {
|
|
522
|
+
return {
|
|
523
|
+
content: [
|
|
524
|
+
{
|
|
525
|
+
type: 'text',
|
|
526
|
+
text: `Current directory is not a Maka project.\nPath: ${projectPath}\n\nTo create a new Maka project, use: maka create <app-name>`
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
const info = [
|
|
532
|
+
`Project Information:`,
|
|
533
|
+
`\nProject Path: ${projectPath}`,
|
|
534
|
+
`\nConfiguration:\n${JSON.stringify(projectInfo.config, null, 2)}`
|
|
535
|
+
].join('\n');
|
|
536
|
+
return {
|
|
537
|
+
content: [
|
|
538
|
+
{
|
|
539
|
+
type: 'text',
|
|
540
|
+
text: info
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
};
|
|
544
|
+
});
|
|
545
|
+
// Resource: Maka CLI Commands Reference
|
|
546
|
+
server.resource('maka-commands-reference', 'maka://commands/all', {
|
|
547
|
+
mimeType: 'application/json',
|
|
548
|
+
description: 'Complete reference of all Maka CLI commands in JSON format'
|
|
549
|
+
}, async () => {
|
|
550
|
+
return {
|
|
551
|
+
contents: [
|
|
552
|
+
{
|
|
553
|
+
uri: 'maka://commands/all',
|
|
554
|
+
mimeType: 'application/json',
|
|
555
|
+
text: JSON.stringify(commands, null, 2)
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
};
|
|
559
|
+
});
|
|
560
|
+
// Resource: Project Configuration
|
|
561
|
+
server.resource('project-config', 'maka://project/config', {
|
|
562
|
+
mimeType: 'application/json',
|
|
563
|
+
description: 'Current project configuration'
|
|
564
|
+
}, async () => {
|
|
565
|
+
return {
|
|
566
|
+
contents: [
|
|
567
|
+
{
|
|
568
|
+
uri: 'maka://project/config',
|
|
569
|
+
mimeType: 'application/json',
|
|
570
|
+
text: JSON.stringify(projectInfo, null, 2)
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
};
|
|
574
|
+
});
|
|
575
|
+
// Resource: Maka CLI Version and Info
|
|
576
|
+
server.resource('maka-info', 'maka://info', {
|
|
577
|
+
mimeType: 'application/json',
|
|
578
|
+
description: 'Maka CLI version and system information'
|
|
579
|
+
}, async () => {
|
|
580
|
+
try {
|
|
581
|
+
const versionOutput = execSync('maka --version', {
|
|
582
|
+
encoding: 'utf-8',
|
|
583
|
+
cwd: projectPath
|
|
584
|
+
}).trim();
|
|
585
|
+
return {
|
|
586
|
+
contents: [
|
|
587
|
+
{
|
|
588
|
+
uri: 'maka://info',
|
|
589
|
+
mimeType: 'application/json',
|
|
590
|
+
text: JSON.stringify({
|
|
591
|
+
version: versionOutput,
|
|
592
|
+
platform: process.platform,
|
|
593
|
+
nodeVersion: process.version,
|
|
594
|
+
cwd: projectPath
|
|
595
|
+
}, null, 2)
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
catch (error) {
|
|
601
|
+
return {
|
|
602
|
+
contents: [
|
|
603
|
+
{
|
|
604
|
+
uri: 'maka://info',
|
|
605
|
+
mimeType: 'application/json',
|
|
606
|
+
text: JSON.stringify({
|
|
607
|
+
error: 'Failed to get Maka CLI version',
|
|
608
|
+
message: error.message
|
|
609
|
+
}, null, 2)
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
// Prompt: Create new component
|
|
616
|
+
server.prompt('create-component', 'Generate a prompt for creating a new component with Maka CLI', {
|
|
617
|
+
componentName: z.string().describe('Name of the component to create'),
|
|
618
|
+
componentType: z.enum(['component', 'page', 'layout', 'template']).optional().describe('Type of component (default: component)')
|
|
619
|
+
}, async ({ componentName, componentType }) => {
|
|
620
|
+
const type = componentType || 'component';
|
|
621
|
+
return {
|
|
622
|
+
messages: [
|
|
623
|
+
{
|
|
624
|
+
role: 'user',
|
|
625
|
+
content: {
|
|
626
|
+
type: 'text',
|
|
627
|
+
text: `I want to create a new ${type} named "${componentName}" in my Maka project. Can you help me with the correct command and explain what it will generate?`
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
role: 'assistant',
|
|
632
|
+
content: {
|
|
633
|
+
type: 'text',
|
|
634
|
+
text: `I'll help you create a ${type} named "${componentName}".\n\nCommand:\nmaka generate:${type} ${componentName}\n\nThis will create:\n- Component file with boilerplate code\n- Associated test file\n- Styles/CSS file\n- Proper imports and exports\n\nWould you like me to show you more options or execute this command?`
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
};
|
|
639
|
+
});
|
|
640
|
+
// Prompt: Deployment helper
|
|
641
|
+
server.prompt('deploy-help', 'Get help with deploying a Maka application', {
|
|
642
|
+
environment: z.enum(['dev', 'staging', 'production']).optional().describe('Target environment'),
|
|
643
|
+
platform: z.enum(['aws', 'docker', 'custom']).optional().describe('Deployment platform')
|
|
644
|
+
}, async ({ environment, platform }) => {
|
|
645
|
+
const env = environment || 'production';
|
|
646
|
+
const plat = platform || 'aws';
|
|
647
|
+
return {
|
|
648
|
+
messages: [
|
|
649
|
+
{
|
|
650
|
+
role: 'user',
|
|
651
|
+
content: {
|
|
652
|
+
type: 'text',
|
|
653
|
+
text: `I need help deploying my Maka application to ${env} environment using ${plat}. What are the steps?`
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
role: 'assistant',
|
|
658
|
+
content: {
|
|
659
|
+
type: 'text',
|
|
660
|
+
text: `Here's a guide for deploying to ${env} using ${plat}:\n\n` +
|
|
661
|
+
(plat === 'aws' ?
|
|
662
|
+
`AWS Deployment Steps:\n1. Configure AWS credentials\n2. Use: maka aws:create-instance --env ${env}\n3. Use: maka deploy --env ${env}\n\nAvailable AWS commands:\n- maka aws:create-instance\n- maka aws:set-host\n- maka aws:terminate-instance\n\nWould you like details on any specific step?` :
|
|
663
|
+
plat === 'docker' ?
|
|
664
|
+
`Docker Deployment Steps:\n1. Build: maka build:docker\n2. Configure your docker-compose.yml\n3. Deploy: docker-compose up -d\n\nWould you like help with Docker configuration?` :
|
|
665
|
+
`Custom Deployment:\n1. Build your app: maka run --production\n2. Configure your deployment settings\n3. Use maka deploy command with custom settings\n\nWould you like help with custom deployment configuration?`)
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
};
|
|
670
|
+
});
|
|
671
|
+
// Prompt: How to use Maka commands via MCP
|
|
672
|
+
server.prompt('mcp-command-usage', 'Guide on how to properly execute Maka commands via MCP (avoiding interactive prompts)', {}, async () => {
|
|
673
|
+
return {
|
|
674
|
+
messages: [
|
|
675
|
+
{
|
|
676
|
+
role: 'user',
|
|
677
|
+
content: {
|
|
678
|
+
type: 'text',
|
|
679
|
+
text: 'How do I properly execute Maka CLI commands through the MCP server?'
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
role: 'assistant',
|
|
684
|
+
content: {
|
|
685
|
+
type: 'text',
|
|
686
|
+
text: `š Guide: Executing Maka Commands via MCP
|
|
687
|
+
|
|
688
|
+
š KEY RULES:
|
|
689
|
+
1. Always prefix commands with "maka"
|
|
690
|
+
2. Never rely on interactive prompts
|
|
691
|
+
3. Always provide ALL options as command-line flags
|
|
692
|
+
4. Use get-command-info tool first to see available options
|
|
693
|
+
|
|
694
|
+
ā
CORRECT USAGE:
|
|
695
|
+
⢠maka create myApp --js=jsx --css=scss --client=react
|
|
696
|
+
⢠maka generate:page homePage --private --url=/home
|
|
697
|
+
⢠maka generate:component Button --baseDir=components
|
|
698
|
+
⢠maka generate:api Users --withMethods --withRest
|
|
699
|
+
|
|
700
|
+
ā INCORRECT USAGE:
|
|
701
|
+
⢠generate:page homePage (missing "maka" prefix)
|
|
702
|
+
⢠maka create myApp (missing required options, will prompt)
|
|
703
|
+
⢠maka generate:page (missing page name)
|
|
704
|
+
|
|
705
|
+
š WORKFLOW:
|
|
706
|
+
1. Use list-maka-commands to find the command
|
|
707
|
+
2. Use get-command-info to see all available options
|
|
708
|
+
3. Execute with execute-maka-command, providing all options
|
|
709
|
+
4. Check the output for success/errors
|
|
710
|
+
|
|
711
|
+
š” TIP: Boolean flags don't need values:
|
|
712
|
+
--private (not --private=true)
|
|
713
|
+
|
|
714
|
+
Would you like to see specific examples for any command?`
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
};
|
|
719
|
+
});
|
|
720
|
+
// Prompt: Project setup wizard
|
|
721
|
+
server.prompt('project-setup', 'Interactive guide for setting up a new Maka project', {
|
|
722
|
+
projectType: z.enum(['basic', 'full-stack', 'api']).optional().describe('Type of project to create')
|
|
723
|
+
}, async ({ projectType }) => {
|
|
724
|
+
const type = projectType || 'basic';
|
|
725
|
+
return {
|
|
726
|
+
messages: [
|
|
727
|
+
{
|
|
728
|
+
role: 'user',
|
|
729
|
+
content: {
|
|
730
|
+
type: 'text',
|
|
731
|
+
text: `I want to create a new ${type} Maka project. Can you guide me through the setup?`
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
role: 'assistant',
|
|
736
|
+
content: {
|
|
737
|
+
type: 'text',
|
|
738
|
+
text: `I'll guide you through creating a ${type} Maka project!\n\n` +
|
|
739
|
+
`Step 1: Create the project\n` +
|
|
740
|
+
`Command: maka create <your-app-name>\n\n` +
|
|
741
|
+
`Step 2: Navigate to your project\n` +
|
|
742
|
+
`Command: cd <your-app-name>\n\n` +
|
|
743
|
+
`Step 3: Install dependencies\n` +
|
|
744
|
+
`Command: maka install meteor\n\n` +
|
|
745
|
+
`Step 4: Run your app\n` +
|
|
746
|
+
`Command: maka run\n\n` +
|
|
747
|
+
`Additional setup options:\n` +
|
|
748
|
+
`- Generate components: maka generate:component <name>\n` +
|
|
749
|
+
`- Add API routes: maka generate:api <name>\n` +
|
|
750
|
+
`- Configure deployment: Use maka deploy commands\n\n` +
|
|
751
|
+
`Would you like help with any specific step?`
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
]
|
|
755
|
+
};
|
|
756
|
+
});
|
|
757
|
+
return server;
|
|
758
|
+
};
|
|
759
|
+
Command.create({
|
|
760
|
+
name: 'mcp',
|
|
761
|
+
usage: 'maka ai:mcp [--port=3000] [--host=localhost]',
|
|
762
|
+
validOpts: ['port', 'host'],
|
|
763
|
+
shortDesc: 'Start an MCP server with HTTP transport',
|
|
764
|
+
description: `
|
|
765
|
+
Start a Model Context Protocol (MCP) server with HTTP transport.
|
|
766
|
+
|
|
767
|
+
The server exposes Maka CLI capabilities, commands, and project information
|
|
768
|
+
to MCP clients like Claude Desktop or other AI assistants.
|
|
769
|
+
|
|
770
|
+
Features:
|
|
771
|
+
⢠List all available commands
|
|
772
|
+
⢠Get detailed command documentation
|
|
773
|
+
⢠Execute Maka CLI commands (with safety restrictions)
|
|
774
|
+
⢠Access project information and configuration
|
|
775
|
+
⢠Interactive prompts for common workflows
|
|
776
|
+
|
|
777
|
+
Options:
|
|
778
|
+
--port Port to listen on (default: 3000)
|
|
779
|
+
--host Host to bind to (default: localhost)
|
|
780
|
+
`,
|
|
781
|
+
examples: [
|
|
782
|
+
'maka ai:mcp',
|
|
783
|
+
'maka ai:mcp --port=8080',
|
|
784
|
+
'maka ai:mcp --host=0.0.0.0 --port=3001'
|
|
785
|
+
]
|
|
786
|
+
}, async function (args, opts) {
|
|
787
|
+
try {
|
|
788
|
+
const port = opts.port || 5050;
|
|
789
|
+
const host = opts.host || 'localhost';
|
|
790
|
+
const projectPath = process.cwd();
|
|
791
|
+
// Check if we're in a Maka project and create MCP configurations
|
|
792
|
+
const isMakaProject = this.validateMakaProject();
|
|
793
|
+
if (isMakaProject) {
|
|
794
|
+
Log.notice('Detected Maka project - setting up MCP configurations...');
|
|
795
|
+
// Create .claude directory if it doesn't exist
|
|
796
|
+
const claudeDir = path.join(projectPath, '.claude');
|
|
797
|
+
if (!fs.existsSync(claudeDir)) {
|
|
798
|
+
fs.mkdirSync(claudeDir, { recursive: true });
|
|
799
|
+
}
|
|
800
|
+
// Create Claude Code MCP configuration
|
|
801
|
+
const claudeMcpPath = path.join(claudeDir, 'mcp.json');
|
|
802
|
+
const claudeMcpConfig = {
|
|
803
|
+
mcpServers: {
|
|
804
|
+
'maka-cli': {
|
|
805
|
+
command: 'maka',
|
|
806
|
+
args: ['ai:mcp', `--port=${port}`],
|
|
807
|
+
autoApprove: ['list-maka-commands', 'get-command-info', 'get-project-info', 'get-run-logs']
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
if (!fs.existsSync(claudeMcpPath)) {
|
|
812
|
+
fs.writeFileSync(claudeMcpPath, JSON.stringify(claudeMcpConfig, null, 2));
|
|
813
|
+
Log.success(`Created Claude Code MCP config: ${path.relative(projectPath, claudeMcpPath)}`);
|
|
814
|
+
}
|
|
815
|
+
else {
|
|
816
|
+
Log.info(`Claude Code MCP config already exists: ${path.relative(projectPath, claudeMcpPath)}`);
|
|
817
|
+
}
|
|
818
|
+
// Create .vscode directory if it doesn't exist
|
|
819
|
+
const vscodeDir = path.join(projectPath, '.vscode');
|
|
820
|
+
if (!fs.existsSync(vscodeDir)) {
|
|
821
|
+
fs.mkdirSync(vscodeDir, { recursive: true });
|
|
822
|
+
}
|
|
823
|
+
// Create GitHub Copilot / VS Code MCP configuration
|
|
824
|
+
const vscodeMcpPath = path.join(vscodeDir, 'mcp.json');
|
|
825
|
+
const vscodeMcpConfig = {
|
|
826
|
+
servers: {
|
|
827
|
+
'maka-cli': {
|
|
828
|
+
type: 'http',
|
|
829
|
+
url: `http://${host}:${port}/mcp`
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
if (!fs.existsSync(vscodeMcpPath)) {
|
|
834
|
+
fs.writeFileSync(vscodeMcpPath, JSON.stringify(vscodeMcpConfig, null, 2));
|
|
835
|
+
Log.success(`Created VS Code/Copilot MCP config: ${path.relative(projectPath, vscodeMcpPath)}`);
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
838
|
+
Log.info(`VS Code/Copilot MCP config already exists: ${path.relative(projectPath, vscodeMcpPath)}`);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
Log.notice(`Starting Maka CLI MCP Server`);
|
|
842
|
+
Log.bright(`Project: ${projectPath}`);
|
|
843
|
+
const app = express();
|
|
844
|
+
app.use(express.json());
|
|
845
|
+
// Configure CORS to expose Mcp-Session-Id header for browser-based clients
|
|
846
|
+
app.use(cors({
|
|
847
|
+
origin: '*', // Allow all origins - adjust as needed for production
|
|
848
|
+
exposedHeaders: ['Mcp-Session-Id']
|
|
849
|
+
}));
|
|
850
|
+
// Health check endpoint
|
|
851
|
+
app.get('/health', (req, res) => {
|
|
852
|
+
res.json({
|
|
853
|
+
status: 'ok',
|
|
854
|
+
name: 'maka-cli-mcp-server',
|
|
855
|
+
version: '1.0.0',
|
|
856
|
+
projectPath
|
|
857
|
+
});
|
|
858
|
+
});
|
|
859
|
+
// Main MCP endpoint
|
|
860
|
+
app.post('/mcp', async (req, res) => {
|
|
861
|
+
const server = createMcpServer(projectPath, this);
|
|
862
|
+
try {
|
|
863
|
+
const transport = new StreamableHTTPServerTransport({
|
|
864
|
+
sessionIdGenerator: undefined // Stateless mode
|
|
865
|
+
});
|
|
866
|
+
await server.connect(transport);
|
|
867
|
+
await transport.handleRequest(req, res, req.body);
|
|
868
|
+
res.on('close', () => {
|
|
869
|
+
transport.close().catch(console.error);
|
|
870
|
+
server.close().catch(console.error);
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
catch (error) {
|
|
874
|
+
console.error('Error handling MCP request:', error);
|
|
875
|
+
if (!res.headersSent) {
|
|
876
|
+
res.status(500).json({
|
|
877
|
+
jsonrpc: '2.0',
|
|
878
|
+
error: {
|
|
879
|
+
code: -32603,
|
|
880
|
+
message: 'Internal server error'
|
|
881
|
+
},
|
|
882
|
+
id: null
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
// Handle unsupported methods on /mcp endpoint
|
|
888
|
+
app.get('/mcp', (req, res) => {
|
|
889
|
+
res.status(405).json({
|
|
890
|
+
jsonrpc: '2.0',
|
|
891
|
+
error: {
|
|
892
|
+
code: -32000,
|
|
893
|
+
message: 'Method not allowed. Use POST for MCP requests.'
|
|
894
|
+
},
|
|
895
|
+
id: null
|
|
896
|
+
});
|
|
897
|
+
});
|
|
898
|
+
app.delete('/mcp', (req, res) => {
|
|
899
|
+
res.status(405).json({
|
|
900
|
+
jsonrpc: '2.0',
|
|
901
|
+
error: {
|
|
902
|
+
code: -32000,
|
|
903
|
+
message: 'Method not allowed.'
|
|
904
|
+
},
|
|
905
|
+
id: null
|
|
906
|
+
});
|
|
907
|
+
});
|
|
908
|
+
// Start the server
|
|
909
|
+
const server = app.listen(port, host, () => {
|
|
910
|
+
Log.success(`MCP Server listening on http://${host}:${port}`);
|
|
911
|
+
Log.notice('\nš Register with Claude Code:');
|
|
912
|
+
Log.bright(` claude mcp add --transport http maka-cli http://${host}:${port}/mcp`);
|
|
913
|
+
Log.notice('\nš GitHub Copilot / VS Code (.vscode/mcp.json):');
|
|
914
|
+
Log.bright(` {`);
|
|
915
|
+
Log.bright(` "servers": {`);
|
|
916
|
+
Log.bright(` "maka-cli": {`);
|
|
917
|
+
Log.bright(` "type": "http",`);
|
|
918
|
+
Log.bright(` "url": "http://${host}:${port}/mcp"`);
|
|
919
|
+
Log.bright(` }`);
|
|
920
|
+
Log.bright(` }`);
|
|
921
|
+
Log.bright(` }`);
|
|
922
|
+
Log.notice('\nEndpoints:');
|
|
923
|
+
Log.bright(` POST http://${host}:${port}/mcp - MCP protocol endpoint`);
|
|
924
|
+
Log.bright(` GET http://${host}:${port}/health - Health check`);
|
|
925
|
+
Log.notice('\nAvailable Tools:');
|
|
926
|
+
Log.bright(' ⢠list-maka-commands - List all Maka CLI commands');
|
|
927
|
+
Log.bright(' ⢠get-command-info - Get detailed command information');
|
|
928
|
+
Log.bright(' ⢠execute-maka-command - Execute Maka CLI commands');
|
|
929
|
+
Log.bright(' ⢠get-run-logs - Read recent Meteor run logs (check timestamps!)');
|
|
930
|
+
Log.bright(' ⢠get-project-info - Get current project information');
|
|
931
|
+
Log.notice('\nAvailable Resources:');
|
|
932
|
+
Log.bright(' ā maka://instructions/agent-workflow - CRITICAL: Read this first! Agent workflow instructions');
|
|
933
|
+
Log.bright(' ⢠maka://commands/all - Complete commands reference');
|
|
934
|
+
Log.bright(' ⢠maka://project/config - Project configuration');
|
|
935
|
+
Log.bright(' ⢠maka://info - Maka CLI version and system info');
|
|
936
|
+
Log.notice('\nAvailable Prompts:');
|
|
937
|
+
Log.bright(' ⢠mcp-command-usage - Guide for using commands via MCP (READ THIS FIRST!)');
|
|
938
|
+
Log.bright(' ⢠create-component - Component creation wizard');
|
|
939
|
+
Log.bright(' ⢠deploy-help - Deployment assistance');
|
|
940
|
+
Log.bright(' ⢠project-setup - Project setup guide');
|
|
941
|
+
Log.notice('\nā ļø IMPORTANT for AI Clients:');
|
|
942
|
+
Log.bright(' ⢠Always provide options as command-line flags');
|
|
943
|
+
Log.bright(' ⢠Never rely on interactive prompts');
|
|
944
|
+
Log.bright(' ⢠Use get-command-info to see available options');
|
|
945
|
+
Log.header('\n Press Ctrl+C to stop the server');
|
|
946
|
+
});
|
|
947
|
+
// Handle graceful shutdown
|
|
948
|
+
const shutdown = async () => {
|
|
949
|
+
Log.notice('\nShutting down MCP server...');
|
|
950
|
+
server.close(() => {
|
|
951
|
+
Log.success('Server stopped');
|
|
952
|
+
process.exit(0);
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
process.on('SIGINT', shutdown);
|
|
956
|
+
process.on('SIGTERM', shutdown);
|
|
957
|
+
}
|
|
958
|
+
catch (e) {
|
|
959
|
+
Log.error('Failed to start MCP server');
|
|
960
|
+
console.error(e);
|
|
961
|
+
process.exit(1);
|
|
962
|
+
}
|
|
963
|
+
}, AICommand);
|
|
964
|
+
//# sourceMappingURL=mcp.sub.cmd.js.map
|