myaidev-method 0.2.0 → 0.2.1

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 (2) hide show
  1. package/bin/cli.js +89 -49
  2. package/package.json +1 -1
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.1')
16
16
  .description('AI CLI tools package with custom subagents and MCP integrations');
17
17
 
18
18
  program
@@ -69,21 +69,31 @@ 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
+
93
+ console.log(chalk.magenta('\nšŸ’” Quick tips:'));
94
+ console.log(chalk.gray(' • All platforms support draft/published workflows'));
95
+ console.log(chalk.gray(' • Git-based platforms (Docusaurus, Mintlify, Astro) auto-commit'));
85
96
  console.log(chalk.gray(' • Visit: https://github.com/myaione/myaidev-method'));
86
- console.log(chalk.gray(' • WordPress docs: GitHub repo > docs/'));
87
97
  }
88
98
  console.log(chalk.cyan(`\nšŸ”„ Restart ${cliType} to load your new AI-powered commands!`));
89
99
 
@@ -155,8 +165,20 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
155
165
 
156
166
  ## Available Commands
157
167
 
168
+ ### Content Creation
158
169
  - \`/myai-content-writer\` - Create SEO-optimized content
159
- - \`/myai-wordpress-publish\` - Publish content to WordPress
170
+
171
+ ### Publishing Platforms
172
+ - \`/myai-wordpress-publish\` - Publish to WordPress
173
+ - \`/myai-payloadcms-publish\` - Publish to PayloadCMS
174
+ - \`/myai-docusaurus-publish\` - Publish to Docusaurus
175
+ - \`/myai-mintlify-publish\` - Publish to Mintlify
176
+ - \`/myai-astro-publish\` - Publish to Astro
177
+
178
+ ### Deployment
179
+ - \`/myai-coolify-deploy\` - Deploy to Coolify
180
+
181
+ ### Administration
160
182
  - \`/myai-wordpress-admin\` - WordPress administration and security
161
183
  - \`/myai-configure\` - Configure settings
162
184
 
@@ -164,34 +186,54 @@ This project uses the MyAIDev Method package for enhanced AI-assisted developmen
164
186
 
165
187
  - \`content-writer\` - Professional content creation agent
166
188
  - \`wordpress-admin\` - WordPress administration and security agent
189
+ - \`payloadcms-publish\` - PayloadCMS publishing agent
190
+ - \`docusaurus-publish\` - Docusaurus publishing agent
191
+ - \`mintlify-publish\` - Mintlify publishing agent
192
+ - \`astro-publish\` - Astro publishing agent
193
+ - \`coolify-deploy\` - Coolify deployment agent
167
194
 
168
- ## WordPress Integration
195
+ ## Platform Configuration
169
196
 
170
- To use WordPress features, create a \`.env\` file with:
197
+ To use publishing features, configure your platforms in \`.env\`:
171
198
 
172
- \`\`\`
199
+ \`\`\`bash
200
+ # WordPress (API-based)
173
201
  WORDPRESS_URL=https://your-site.com
174
202
  WORDPRESS_USERNAME=your-username
175
203
  WORDPRESS_APP_PASSWORD=your-app-password
176
204
 
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
205
+ # PayloadCMS (API-based)
206
+ PAYLOADCMS_URL=https://cms.your-site.com
207
+ PAYLOADCMS_EMAIL=your-email@example.com
208
+ PAYLOADCMS_PASSWORD=your-password
209
+
210
+ # Git Configuration (for static sites)
211
+ GIT_USER_NAME=Your Name
212
+ GIT_USER_EMAIL=your-email@example.com
213
+
214
+ # Static Site Project Paths (optional)
215
+ DOCUSAURUS_PROJECT_PATH=./docs
216
+ MINTLIFY_PROJECT_PATH=./docs
217
+ ASTRO_PROJECT_PATH=./blog
218
+
219
+ # Coolify Deployment
220
+ COOLIFY_URL=https://coolify.your-server.com
221
+ COOLIFY_API_KEY=your-api-key
181
222
  \`\`\`
182
223
 
224
+ ## Documentation
225
+
226
+ - **USER_GUIDE.md** - Getting started and customization
227
+ - **PUBLISHING_GUIDE.md** - Comprehensive multi-platform publishing guide
228
+ - **COOLIFY_DEPLOYMENT.md** - Application deployment guide
229
+ - **WORDPRESS_ADMIN_SCRIPTS.md** - WordPress admin utilities
230
+
183
231
  ## Project Conventions
184
232
 
185
233
  - All custom commands are in \`.claude/commands/\`
186
234
  - All agents are in \`.claude/agents/\`
187
235
  - Commands and agents use Markdown format with YAML frontmatter
188
236
 
189
- ## Build Commands
190
-
191
- - \`npm install\` - Install dependencies
192
- - \`npm test\` - Run tests
193
- - \`npm run build\` - Build the project
194
-
195
237
  ## Notes
196
238
 
197
239
  This configuration follows Claude Code's official standards for custom commands and agents.
@@ -199,30 +241,28 @@ This configuration follows Claude Code's official standards for custom commands
199
241
 
200
242
  await fs.writeFile(path.join(claudeDir, 'CLAUDE.md'), claudeMd);
201
243
 
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
244
+ // Copy the comprehensive .env.example from package
245
+ const sourceEnvExample = path.join(__dirname, '..', '.env.example');
246
+ if (await fs.pathExists(sourceEnvExample)) {
247
+ await fs.copy(sourceEnvExample, path.join(projectDir, '.env.example'));
248
+ }
207
249
 
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
250
  // Note: MCP integration disabled for now - using native tools for WordPress REST API
217
251
 
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'));
252
+ // Copy documentation files to project root
253
+ const docsToMerge = [
254
+ 'USER_GUIDE.md',
255
+ 'PUBLISHING_GUIDE.md',
256
+ 'COOLIFY_DEPLOYMENT.md',
257
+ 'WORDPRESS_ADMIN_SCRIPTS.md'
258
+ ];
259
+
260
+ for (const docFile of docsToMerge) {
261
+ const sourcePath = path.join(__dirname, '..', docFile);
262
+ if (await fs.pathExists(sourcePath)) {
263
+ await fs.copy(sourcePath, path.join(projectDir, docFile));
264
+ }
222
265
  }
223
-
224
- // Note: WORDPRESS_INTEGRATION.md could be helpful, but keeping docs minimal
225
- // Users can find detailed docs on GitHub if needed
226
266
  }
227
267
 
228
268
  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.1",
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",