@maka/maka-cli 5.1.41 → 5.1.42

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.
Files changed (61) hide show
  1. package/.claude/settings.local.json +4 -1
  2. package/bundle/typescript/package.json +8 -2
  3. package/bundle/typescript/src/commands/_index.d.ts +1 -1
  4. package/bundle/typescript/src/commands/_index.js +1 -1
  5. package/bundle/typescript/src/commands/_index.js.map +1 -1
  6. package/bundle/typescript/src/commands/ai/_index.d.ts +2 -0
  7. package/bundle/typescript/src/commands/ai/_index.js +3 -0
  8. package/bundle/typescript/src/commands/ai/_index.js.map +1 -0
  9. package/bundle/typescript/src/commands/ai/ai.command.d.ts +3 -0
  10. package/bundle/typescript/src/commands/{ai.js → ai/ai.command.js} +9 -7
  11. package/bundle/typescript/src/commands/ai/ai.command.js.map +1 -0
  12. package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js +605 -0
  13. package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js.map +1 -0
  14. package/bundle/typescript/src/commands/create.js +79 -35
  15. package/bundle/typescript/src/commands/create.js.map +1 -1
  16. package/bundle/typescript/src/generators/api.js +3 -1
  17. package/bundle/typescript/src/generators/api.js.map +1 -1
  18. package/bundle/typescript/src/generators/component.js +3 -1
  19. package/bundle/typescript/src/generators/component.js.map +1 -1
  20. package/bundle/typescript/src/generators/hook.js +3 -1
  21. package/bundle/typescript/src/generators/hook.js.map +1 -1
  22. package/bundle/typescript/src/generators/kits/_index.d.ts +1 -0
  23. package/bundle/typescript/src/generators/kits/_index.js +1 -0
  24. package/bundle/typescript/src/generators/kits/_index.js.map +1 -1
  25. package/bundle/typescript/src/generators/kits/frames/_index.d.ts +1 -0
  26. package/bundle/typescript/src/generators/kits/frames/_index.js +2 -0
  27. package/bundle/typescript/src/generators/kits/frames/_index.js.map +1 -0
  28. package/bundle/typescript/src/generators/kits/frames/frames.generator.d.ts +3 -0
  29. package/bundle/typescript/src/generators/kits/frames/frames.generator.js +163 -0
  30. package/bundle/typescript/src/generators/kits/frames/frames.generator.js.map +1 -0
  31. package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js +3 -2
  32. package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +1 -1
  33. package/bundle/typescript/src/generators/layout.js +3 -1
  34. package/bundle/typescript/src/generators/layout.js.map +1 -1
  35. package/bundle/typescript/src/generators/package.js +3 -1
  36. package/bundle/typescript/src/generators/package.js.map +1 -1
  37. package/bundle/typescript/src/generators/page.js +3 -1
  38. package/bundle/typescript/src/generators/page.js.map +1 -1
  39. package/bundle/typescript/src/templates/meteor/template/template-tests.js.jsx +2 -2
  40. package/bundle/typescript/src/templates/meteor/template/template-tests.js.tsx +2 -2
  41. package/bundle/typescript/src/templates/meteor/template/template.js.jsx +2 -2
  42. package/bundle/typescript/src/templates/meteor/template/template.js.tsx +2 -2
  43. package/bundle/typescript/src/templates/react/hook/hook.js.jsx +1 -1
  44. package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +4 -2
  45. package/bundle/typescript/src/templates/react/kit/frames/frames-demo.css +63 -0
  46. package/bundle/typescript/src/templates/react/kit/frames/frames-demo.jsx +153 -0
  47. package/bundle/typescript/src/templates/react/kit/frames/frames-demo.tsx +164 -0
  48. package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.css +105 -0
  49. package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.jsx +158 -0
  50. package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.tsx +166 -0
  51. package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +3 -1
  52. package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +3 -1
  53. package/bundle/typescript/src/templates/react/test/test.js.jsx +2 -2
  54. package/bundle/typescript/src/templates/react/test/test.js.tsx +2 -2
  55. package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +3 -0
  56. package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +3 -1
  57. package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +1 -1
  58. package/docs/MCP_SERVER.md +396 -0
  59. package/package.json +8 -2
  60. package/bundle/typescript/src/commands/ai.js.map +0 -1
  61. /package/bundle/typescript/src/commands/{ai.d.ts → ai/mcp.sub.cmd.d.ts} +0 -0
@@ -2,7 +2,10 @@
2
2
  "permissions": {
3
3
  "allow": [
4
4
  "Bash(npx tsc:*)",
5
- "Bash(npm run build)"
5
+ "Bash(npm run build)",
6
+ "Read(//Users/mjc/Development/maka-frames-demo/**)",
7
+ "Read(//Users/mjc/Development/maka-frames-demo/app/**)",
8
+ "Read(//Users/mjc/Development/maka-frames-demo/app/packages/**)"
6
9
  ],
7
10
  "deny": [],
8
11
  "ask": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.1.41",
3
+ "version": "5.1.42",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -40,17 +40,20 @@
40
40
  "@babel/eslint-parser": "^7.25.9",
41
41
  "@inquirer/prompts": "^7.0.1",
42
42
  "@maka/tar": "^6.2.2",
43
+ "@modelcontextprotocol/sdk": "^1.20.0",
43
44
  "blessed": "^0.1.81",
44
45
  "change-case": "^5.4.4",
45
46
  "cli-color": "^2.0.4",
46
47
  "cli-cursor": "^5.0.0",
47
48
  "cli-table": "^0.3.11",
49
+ "cors": "^2.8.5",
48
50
  "date-fns": "^4.1.0",
49
51
  "delete": "github:maka-io/delete",
50
52
  "dotenv": "^16.4.5",
51
53
  "ejs": "^3.1.10",
52
54
  "elegant-spinner": "^3.0.0",
53
55
  "eslint": "^9.13.0",
56
+ "express": "^5.1.0",
54
57
  "http-proxy": "^1.18.1",
55
58
  "humps": "^2.0.1",
56
59
  "husky": "^9.1.6",
@@ -67,7 +70,8 @@
67
70
  "tar": "^7.4.3",
68
71
  "type-fest": "^4.26.1",
69
72
  "uuid": "^11.0.2",
70
- "xtend": "^4.0.2"
73
+ "xtend": "^4.0.2",
74
+ "zod": "^3.24.1"
71
75
  },
72
76
  "devDependencies": {
73
77
  "@aws-sdk/types": "^3.679.0",
@@ -76,7 +80,9 @@
76
80
  "@types/chai": "^5.0.1",
77
81
  "@types/cli-color": "^2.0.6",
78
82
  "@types/cli-table": "^0.3.4",
83
+ "@types/cors": "^2.8.17",
79
84
  "@types/ejs": "^3.1.5",
85
+ "@types/express": "^5.0.0",
80
86
  "@types/fibers": "^3.1.4",
81
87
  "@types/http-proxy": "^1.17.15",
82
88
  "@types/humps": "^2.0.6",
@@ -1,3 +1,4 @@
1
+ import './ai/_index.js';
1
2
  import './aws/_index.js';
2
3
  import './set/_index.js';
3
4
  import './get/_index.js';
@@ -23,4 +24,3 @@ import './lint.js';
23
24
  import './undo.js';
24
25
  import './profile.js';
25
26
  import './uninstall.js';
26
- import './ai.js';
@@ -1,3 +1,4 @@
1
+ import './ai/_index.js';
1
2
  import './aws/_index.js';
2
3
  import './set/_index.js';
3
4
  import './get/_index.js';
@@ -24,5 +25,4 @@ import './undo.js';
24
25
  import './profile.js';
25
26
  import './uninstall.js';
26
27
  //import './jsdoc.js';
27
- import './ai.js';
28
28
  //# sourceMappingURL=_index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_index.js","sourceRoot":"","sources":["../../../../src/commands/_index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,WAAW,CAAC;AACnB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,CAAC;AACxB,sBAAsB;AACtB,OAAO,SAAS,CAAC"}
1
+ {"version":3,"file":"_index.js","sourceRoot":"","sources":["../../../../src/commands/_index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,WAAW,CAAC;AACnB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,gBAAgB,CAAC;AACxB,sBAAsB"}
@@ -0,0 +1,2 @@
1
+ import './ai.command.js';
2
+ import './mcp.sub.cmd.js';
@@ -0,0 +1,3 @@
1
+ import './ai.command.js';
2
+ import './mcp.sub.cmd.js';
3
+ //# sourceMappingURL=_index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_index.js","sourceRoot":"","sources":["../../../../../src/commands/ai/_index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from '../../command.js';
2
+ declare const AICommand: Command;
3
+ export default AICommand;
@@ -1,6 +1,6 @@
1
- import { Command } from '../command.js';
2
- import { HTTPS } from '../tools/https/https.class.js';
3
- import { Log } from '../tools/log/log.class.js';
1
+ import { Command } from '../../command.js';
2
+ import { HTTPS } from '../../tools/https/https.class.js';
3
+ import { Log } from '../../tools/log/log.class.js';
4
4
  import readline from 'readline';
5
5
  const startChat = async ({ openApiKey, caCertPath }) => {
6
6
  const rl = readline.createInterface({
@@ -31,11 +31,12 @@ const startChat = async ({ openApiKey, caCertPath }) => {
31
31
  startChat({ openApiKey, caCertPath });
32
32
  });
33
33
  };
34
- Command.create({
34
+ const AICommand = Command.create({
35
35
  name: 'ai',
36
- description: 'ChatGPT style AI interface',
36
+ usage: 'maka ai:<sub-command>',
37
+ description: 'AI tools and integrations including ChatGPT and MCP server',
37
38
  validOpts: ['cacert', 'openapikey'],
38
- shortDesc: 'ChatGPT style AI interface',
39
+ shortDesc: 'AI tools and integrations',
39
40
  }, async function (args, opts) {
40
41
  try {
41
42
  let caCertPath = '';
@@ -78,4 +79,5 @@ Command.create({
78
79
  process.exit(1);
79
80
  }
80
81
  });
81
- //# sourceMappingURL=ai.js.map
82
+ export default AICommand;
83
+ //# sourceMappingURL=ai.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.command.js","sourceRoot":"","sources":["../../../../../src/commands/ai/ai.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AAEnD,OAAO,QAAQ,MA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