myaidev-method 0.2.22 → 0.2.23

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 (33) hide show
  1. package/USER_GUIDE.md +453 -48
  2. package/bin/cli.js +18 -0
  3. package/content-rules.example.md +80 -0
  4. package/dist/mcp/mcp-launcher.js +237 -0
  5. package/dist/server/.tsbuildinfo +1 -1
  6. package/dist/server/auth/layers.d.ts +1 -1
  7. package/dist/server/auth/services/AuthService.d.ts +1 -1
  8. package/dist/server/auth/services/TokenService.js.map +1 -1
  9. package/dist/server/auth/services/example.d.ts +5 -5
  10. package/package.json +16 -16
  11. package/src/index.js +21 -8
  12. package/src/lib/update-manager.js +2 -1
  13. package/src/lib/visual-config-utils.js +321 -295
  14. package/src/lib/visual-generation-utils.js +1000 -811
  15. package/src/scripts/configure-wordpress-mcp.js +8 -3
  16. package/src/scripts/generate-visual-cli.js +365 -235
  17. package/src/scripts/ping.js +250 -0
  18. package/src/scripts/wordpress/publish-to-wordpress.js +165 -0
  19. package/src/server/auth/services/TokenService.ts +1 -1
  20. package/src/templates/claude/agents/content-rules-setup.md +657 -0
  21. package/src/templates/claude/agents/content-writer.md +328 -1
  22. package/src/templates/claude/agents/visual-content-generator.md +182 -4
  23. package/src/templates/claude/commands/myai-configure.md +1 -1
  24. package/src/templates/claude/commands/myai-content-rules-setup.md +204 -0
  25. package/src/templates/codex/commands/myai-content-rules-setup.md +85 -0
  26. package/src/templates/gemini/commands/myai-content-rules-setup.toml +57 -0
  27. package/.claude/mcp/sparc-orchestrator-server.js +0 -607
  28. package/.claude/mcp/wordpress-server.js +0 -1277
  29. package/src/agents/content-writer-prompt.md +0 -164
  30. package/src/agents/content-writer.json +0 -70
  31. package/src/templates/claude/mcp_config.json +0 -74
  32. package/src/templates/claude/slash_commands.json +0 -166
  33. package/src/templates/scripts/configure-wordpress-mcp.js +0 -181
@@ -47,11 +47,15 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
47
47
 
48
48
  // Create MCP configuration
49
49
  const mcpConfigPath = path.join(projectDir, '.mcp.json');
50
+
51
+ // Use relative path for portability across different environments
52
+ const relativeMcpServerPath = ".claude/mcp/wordpress-server.js";
53
+
50
54
  const mcpConfig = {
51
55
  mcpServers: {
52
56
  wordpress: {
53
57
  command: "node",
54
- args: [path.resolve(projectDir, ".claude/mcp/wordpress-server.js")],
58
+ args: [relativeMcpServerPath],
55
59
  env: {
56
60
  WORDPRESS_URL: process.env.WORDPRESS_URL,
57
61
  WORDPRESS_USERNAME: process.env.WORDPRESS_USERNAME,
@@ -101,7 +105,8 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
101
105
  const { spawn } = await import('child_process');
102
106
 
103
107
  return new Promise((resolve, reject) => {
104
- const testProcess = spawn('node', [mcpServerPath], {
108
+ const testProcess = spawn('node', [relativeMcpServerPath], {
109
+ cwd: projectDir, // Set working directory to project root
105
110
  env: { ...process.env, ...mcpConfig.mcpServers.wordpress.env },
106
111
  stdio: ['pipe', 'pipe', 'pipe']
107
112
  });
@@ -142,7 +147,7 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
142
147
  console.log(` • Username: ${process.env.WORDPRESS_USERNAME}`);
143
148
  console.log(` • Gutenberg mode: ${process.env.WORDPRESS_USE_GUTENBERG || 'false'}`);
144
149
  console.log(` • MCP config: ${mcpConfigPath}`);
145
- console.log(` • MCP server: ${mcpServerPath}`);
150
+ console.log(` • MCP server: ${relativeMcpServerPath}`);
146
151
 
147
152
  console.log('\n🔄 Next steps:');
148
153
  console.log(' 1. Restart Claude Code to load the new MCP configuration');