myaidev-method 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
@@ -12,7 +12,7 @@ const __filename = fileURLToPath(import.meta.url);
12
12
  const __dirname = path.dirname(__filename);
13
13
 
14
14
  program
15
- .version('1.0.0')
15
+ .version('0.2.2')
16
16
  .description('AI CLI tools package with custom subagents and MCP integrations');
17
17
 
18
18
  program
@@ -69,21 +69,32 @@ program
69
69
  if (cliType === 'claude') {
70
70
  console.log(chalk.green('\n✨ Start creating content immediately:'));
71
71
  console.log(chalk.gray(' /myai-content-writer "Your Article Topic"'));
72
-
73
- console.log(chalk.yellow('\nšŸŽØ Customize your content writer (optional):'));
74
- console.log(chalk.gray(' • Edit .claude/agents/content-writer.md to match your style'));
75
- console.log(chalk.gray(' • Read USER_GUIDE.md for step-by-step customization tips'));
76
- console.log(chalk.gray(' • Use /myai-configure agents to manage your agents safely'));
77
-
78
- console.log(chalk.blue('\nšŸ”Œ Add WordPress integration (optional):'));
79
- console.log(chalk.gray(' • Run /myai-configure wordpress for guided setup'));
80
- console.log(chalk.gray(' • Publish content with /myai-wordpress-publish filename.md'));
81
- console.log(chalk.gray(' • Supports both Classic and Gutenberg block editors'));
82
-
83
- console.log(chalk.magenta('\nšŸ“š Need help?'));
84
- console.log(chalk.gray(' • Check USER_GUIDE.md for detailed instructions'));
72
+
73
+ console.log(chalk.yellow('\nšŸ“¤ Publish to multiple platforms:'));
74
+ console.log(chalk.gray(' • WordPress: /myai-wordpress-publish "article.md"'));
75
+ console.log(chalk.gray(' • PayloadCMS: /myai-payloadcms-publish "article.md"'));
76
+ console.log(chalk.gray(' • Docusaurus: /myai-docusaurus-publish "guide.md"'));
77
+ console.log(chalk.gray(' • Mintlify: /myai-mintlify-publish "docs.mdx"'));
78
+ console.log(chalk.gray(' • Astro: /myai-astro-publish "post.md"'));
79
+
80
+ console.log(chalk.blue('\nšŸš€ Deploy applications:'));
81
+ console.log(chalk.gray(' • Coolify: /myai-coolify-deploy'));
82
+
83
+ console.log(chalk.cyan('\nāš™ļø Configure platforms:'));
84
+ console.log(chalk.gray(' • Run /myai-configure for guided setup'));
85
+ console.log(chalk.gray(' • Edit .env for manual configuration'));
86
+
87
+ console.log(chalk.magenta('\nšŸ“š Documentation copied to your project:'));
88
+ console.log(chalk.gray(' • USER_GUIDE.md - Getting started and customization'));
89
+ console.log(chalk.gray(' • PUBLISHING_GUIDE.md - Multi-platform publishing'));
90
+ console.log(chalk.gray(' • COOLIFY_DEPLOYMENT.md - Application deployment'));
91
+ console.log(chalk.gray(' • WORDPRESS_ADMIN_SCRIPTS.md - WordPress utilities'));
92
+ console.log(chalk.gray(' • TECHNICAL_ARCHITECTURE.md - Developer guide'));
93
+
94
+ console.log(chalk.magenta('\nšŸ’” Quick tips:'));
95
+ console.log(chalk.gray(' • All platforms support draft/published workflows'));
96
+ console.log(chalk.gray(' • Git-based platforms (Docusaurus, Mintlify, Astro) auto-commit'));
85
97
  console.log(chalk.gray(' • Visit: https://github.com/myaione/myaidev-method'));
86
- console.log(chalk.gray(' • WordPress docs: GitHub repo > docs/'));
87
98
  }
88
99
  console.log(chalk.cyan(`\nšŸ”„ Restart ${cliType} to load your new AI-powered commands!`));
89
100
 
@@ -155,8 +166,20 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
155
166
 
156
167
  ## Available Commands
157
168
 
169
+ ### Content Creation
158
170
  - \`/myai-content-writer\` - Create SEO-optimized content
159
- - \`/myai-wordpress-publish\` - Publish content to WordPress
171
+
172
+ ### Publishing Platforms
173
+ - \`/myai-wordpress-publish\` - Publish to WordPress
174
+ - \`/myai-payloadcms-publish\` - Publish to PayloadCMS
175
+ - \`/myai-docusaurus-publish\` - Publish to Docusaurus
176
+ - \`/myai-mintlify-publish\` - Publish to Mintlify
177
+ - \`/myai-astro-publish\` - Publish to Astro
178
+
179
+ ### Deployment
180
+ - \`/myai-coolify-deploy\` - Deploy to Coolify
181
+
182
+ ### Administration
160
183
  - \`/myai-wordpress-admin\` - WordPress administration and security
161
184
  - \`/myai-configure\` - Configure settings
162
185
 
@@ -164,34 +187,55 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
164
187
 
165
188
  - \`content-writer\` - Professional content creation agent
166
189
  - \`wordpress-admin\` - WordPress administration and security agent
190
+ - \`payloadcms-publish\` - PayloadCMS publishing agent
191
+ - \`docusaurus-publish\` - Docusaurus publishing agent
192
+ - \`mintlify-publish\` - Mintlify publishing agent
193
+ - \`astro-publish\` - Astro publishing agent
194
+ - \`coolify-deploy\` - Coolify deployment agent
167
195
 
168
- ## WordPress Integration
196
+ ## Platform Configuration
169
197
 
170
- To use WordPress features, create a \`.env\` file with:
198
+ To use publishing features, configure your platforms in \`.env\`:
171
199
 
172
- \`\`\`
200
+ \`\`\`bash
201
+ # WordPress (API-based)
173
202
  WORDPRESS_URL=https://your-site.com
174
203
  WORDPRESS_USERNAME=your-username
175
204
  WORDPRESS_APP_PASSWORD=your-app-password
176
205
 
177
- # Optional SSH access for advanced administration
178
- SSH_HOST=your-server-ip
179
- SSH_USERNAME=your-ssh-user
180
- SSH_KEY_PATH=/path/to/private/key
206
+ # PayloadCMS (API-based)
207
+ PAYLOADCMS_URL=https://cms.your-site.com
208
+ PAYLOADCMS_EMAIL=your-email@example.com
209
+ PAYLOADCMS_PASSWORD=your-password
210
+
211
+ # Git Configuration (for static sites)
212
+ GIT_USER_NAME=Your Name
213
+ GIT_USER_EMAIL=your-email@example.com
214
+
215
+ # Static Site Project Paths (optional)
216
+ DOCUSAURUS_PROJECT_PATH=./docs
217
+ MINTLIFY_PROJECT_PATH=./docs
218
+ ASTRO_PROJECT_PATH=./blog
219
+
220
+ # Coolify Deployment
221
+ COOLIFY_URL=https://coolify.your-server.com
222
+ COOLIFY_API_KEY=your-api-key
181
223
  \`\`\`
182
224
 
225
+ ## Documentation
226
+
227
+ - **USER_GUIDE.md** - Getting started and customization
228
+ - **PUBLISHING_GUIDE.md** - Comprehensive multi-platform publishing guide
229
+ - **COOLIFY_DEPLOYMENT.md** - Application deployment guide
230
+ - **WORDPRESS_ADMIN_SCRIPTS.md** - WordPress admin utilities
231
+ - **TECHNICAL_ARCHITECTURE.md** - Developer and architecture guide
232
+
183
233
  ## Project Conventions
184
234
 
185
235
  - All custom commands are in \`.claude/commands/\`
186
236
  - All agents are in \`.claude/agents/\`
187
237
  - Commands and agents use Markdown format with YAML frontmatter
188
238
 
189
- ## Build Commands
190
-
191
- - \`npm install\` - Install dependencies
192
- - \`npm test\` - Run tests
193
- - \`npm run build\` - Build the project
194
-
195
239
  ## Notes
196
240
 
197
241
  This configuration follows Claude Code's official standards for custom commands and agents.
@@ -199,30 +243,29 @@ This configuration follows Claude Code's official standards for custom commands
199
243
 
200
244
  await fs.writeFile(path.join(claudeDir, 'CLAUDE.md'), claudeMd);
201
245
 
202
- // Create example .env file
203
- const envExample = `# WordPress Configuration
204
- WORDPRESS_URL=https://your-wordpress-site.com
205
- WORDPRESS_USERNAME=your-username
206
- WORDPRESS_APP_PASSWORD=your-application-password
246
+ // Copy the comprehensive .env.example from package
247
+ const sourceEnvExample = path.join(__dirname, '..', '.env.example');
248
+ if (await fs.pathExists(sourceEnvExample)) {
249
+ await fs.copy(sourceEnvExample, path.join(projectDir, '.env.example'));
250
+ }
207
251
 
208
- # Optional: Default content settings
209
- DEFAULT_WORD_COUNT=800
210
- DEFAULT_POST_STATUS=draft
211
- DEFAULT_TONE=professional
212
- `;
213
-
214
- await fs.writeFile(path.join(projectDir, '.env.example'), envExample);
215
-
216
252
  // Note: MCP integration disabled for now - using native tools for WordPress REST API
217
253
 
218
- // Copy USER_GUIDE.md - Essential for users to understand customization
219
- const userGuide = path.join(__dirname, '..', 'USER_GUIDE.md');
220
- if (await fs.pathExists(userGuide)) {
221
- await fs.copy(userGuide, path.join(projectDir, 'USER_GUIDE.md'));
254
+ // Copy documentation files to project root
255
+ const docsToMerge = [
256
+ 'USER_GUIDE.md',
257
+ 'PUBLISHING_GUIDE.md',
258
+ 'COOLIFY_DEPLOYMENT.md',
259
+ 'WORDPRESS_ADMIN_SCRIPTS.md',
260
+ 'TECHNICAL_ARCHITECTURE.md'
261
+ ];
262
+
263
+ for (const docFile of docsToMerge) {
264
+ const sourcePath = path.join(__dirname, '..', docFile);
265
+ if (await fs.pathExists(sourcePath)) {
266
+ await fs.copy(sourcePath, path.join(projectDir, docFile));
267
+ }
222
268
  }
223
-
224
- // Note: WORDPRESS_INTEGRATION.md could be helpful, but keeping docs minimal
225
- // Users can find detailed docs on GitHub if needed
226
269
  }
227
270
 
228
271
  async function setupGemini(projectDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myaidev-method",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "AI CLI tools package with custom subagents and MCP integrations for Claude Code, Gemini CLI, and more",
5
5
  "mcpName": "io.github.myaione/myaidev-method",
6
6
  "main": "src/index.js",
@@ -102,7 +102,8 @@
102
102
  "COOLIFY_DEPLOYMENT.md",
103
103
  "PAYLOADCMS_PUBLISHING.md",
104
104
  "STATIC_SITE_PUBLISHING.md",
105
- "PUBLISHING_GUIDE.md"
105
+ "PUBLISHING_GUIDE.md",
106
+ "TECHNICAL_ARCHITECTURE.md"
106
107
  ],
107
108
  "engines": {
108
109
  "node": ">=18.0.0"