myaidev-method 0.2.23 → 0.2.24
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 +55 -2
- package/dist/server/.tsbuildinfo +1 -1
- package/package.json +6 -1
- package/src/config/workflows.js +28 -44
- package/src/lib/config-manager.js +470 -0
- package/src/lib/content-generator.js +427 -0
- package/src/lib/html-conversion-utils.js +843 -0
- package/src/lib/seo-optimizer.js +515 -0
- package/src/lib/wordpress-client.js +633 -0
- package/src/lib/workflow-installer.js +3 -3
- package/src/scripts/html-conversion-cli.js +526 -0
- package/src/scripts/init/configure.js +436 -0
- package/src/scripts/init/install.js +460 -0
- package/src/scripts/utils/file-utils.js +404 -0
- package/src/scripts/utils/logger.js +300 -0
- package/src/scripts/utils/write-content.js +293 -0
- package/src/templates/claude/agents/visual-content-generator.md +129 -4
- package/src/templates/claude/commands/myai-convert-html.md +186 -0
- package/src/templates/diagrams/architecture.d2 +52 -0
- package/src/templates/diagrams/flowchart.d2 +42 -0
- package/src/templates/diagrams/sequence.d2 +47 -0
- package/src/templates/docs/content-creation-guide.md +164 -0
- package/src/templates/docs/deployment-guide.md +336 -0
- package/src/templates/docs/visual-generation-guide.md +248 -0
- package/src/templates/docs/wordpress-publishing-guide.md +208 -0
- package/src/templates/infographics/comparison-table.html +347 -0
- package/src/templates/infographics/data-chart.html +268 -0
- package/src/templates/infographics/process-flow.html +365 -0
- /package/src/scripts/{wordpress-health-check.js → wordpress/wordpress-health-check.js} +0 -0
package/bin/cli.js
CHANGED
|
@@ -31,14 +31,47 @@ program
|
|
|
31
31
|
.version('0.2.22')
|
|
32
32
|
.description('MyAIDev Method - Comprehensive development framework with SPARC methodology');
|
|
33
33
|
|
|
34
|
+
// Helper function for CLI type selection
|
|
35
|
+
async function selectCLIType(options) {
|
|
36
|
+
if (options.claude) return 'claude';
|
|
37
|
+
if (options.gemini) return 'gemini';
|
|
38
|
+
if (options.codex) return 'codex';
|
|
39
|
+
|
|
40
|
+
// Interactive selection if no flag provided
|
|
41
|
+
const answer = await inquirer.prompt([
|
|
42
|
+
{
|
|
43
|
+
type: 'list',
|
|
44
|
+
name: 'cliType',
|
|
45
|
+
message: 'Which AI CLI are you configuring for?',
|
|
46
|
+
choices: [
|
|
47
|
+
{ name: 'Claude Code (Recommended)', value: 'claude' },
|
|
48
|
+
{ name: 'Gemini CLI', value: 'gemini' },
|
|
49
|
+
{ name: 'Codex CLI / OpenCode', value: 'codex' }
|
|
50
|
+
],
|
|
51
|
+
default: 'claude'
|
|
52
|
+
}
|
|
53
|
+
]);
|
|
54
|
+
return answer.cliType;
|
|
55
|
+
}
|
|
56
|
+
|
|
34
57
|
// Modular workflow installation commands
|
|
35
58
|
program
|
|
36
59
|
.command('content')
|
|
37
60
|
.description('Install content creation workflow')
|
|
38
61
|
.option('--claude', 'Install for Claude Code')
|
|
62
|
+
.option('--gemini', 'Install for Gemini CLI')
|
|
63
|
+
.option('--codex', 'Install for Codex CLI')
|
|
39
64
|
.option('--dry-run', 'Show what would be installed without making changes')
|
|
40
65
|
.option('--verbose', 'Show detailed progress')
|
|
41
66
|
.action(async (options) => {
|
|
67
|
+
const cliType = await selectCLIType(options);
|
|
68
|
+
|
|
69
|
+
// For non-Claude CLIs, inform user about limited support
|
|
70
|
+
if (cliType !== 'claude') {
|
|
71
|
+
console.log(chalk.yellow(`\nNote: Content workflow is optimized for Claude Code.`));
|
|
72
|
+
console.log(chalk.gray(`Some features may have limited support for ${cliType}.`));
|
|
73
|
+
}
|
|
74
|
+
|
|
42
75
|
await loadWorkflowSystem();
|
|
43
76
|
const installer = new WorkflowInstaller({
|
|
44
77
|
projectRoot: process.cwd(),
|
|
@@ -52,9 +85,19 @@ program
|
|
|
52
85
|
.command('visual')
|
|
53
86
|
.description('Install visual content generation workflow')
|
|
54
87
|
.option('--claude', 'Install for Claude Code')
|
|
88
|
+
.option('--gemini', 'Install for Gemini CLI')
|
|
89
|
+
.option('--codex', 'Install for Codex CLI')
|
|
55
90
|
.option('--dry-run', 'Show what would be installed without making changes')
|
|
56
91
|
.option('--verbose', 'Show detailed progress')
|
|
57
92
|
.action(async (options) => {
|
|
93
|
+
const cliType = await selectCLIType(options);
|
|
94
|
+
|
|
95
|
+
// For non-Claude CLIs, inform user about limited support
|
|
96
|
+
if (cliType !== 'claude') {
|
|
97
|
+
console.log(chalk.yellow(`\nNote: Visual workflow is optimized for Claude Code.`));
|
|
98
|
+
console.log(chalk.gray(`Some features may have limited support for ${cliType}.`));
|
|
99
|
+
}
|
|
100
|
+
|
|
58
101
|
await loadWorkflowSystem();
|
|
59
102
|
const installer = new WorkflowInstaller({
|
|
60
103
|
projectRoot: process.cwd(),
|
|
@@ -68,9 +111,18 @@ program
|
|
|
68
111
|
.command('dev')
|
|
69
112
|
.description('Install development workflow (SPARC methodology)')
|
|
70
113
|
.option('--claude', 'Install for Claude Code')
|
|
114
|
+
.option('--gemini', 'Install for Gemini CLI')
|
|
115
|
+
.option('--codex', 'Install for Codex CLI')
|
|
71
116
|
.option('--dry-run', 'Show what would be installed without making changes')
|
|
72
117
|
.option('--verbose', 'Show detailed progress')
|
|
73
118
|
.action(async (options) => {
|
|
119
|
+
const cliType = await selectCLIType(options);
|
|
120
|
+
|
|
121
|
+
if (cliType !== 'claude') {
|
|
122
|
+
console.log(chalk.yellow(`\nNote: Development workflow is optimized for Claude Code.`));
|
|
123
|
+
console.log(chalk.gray(`Some features may have limited support for ${cliType}.`));
|
|
124
|
+
}
|
|
125
|
+
|
|
74
126
|
await loadWorkflowSystem();
|
|
75
127
|
const installer = new WorkflowInstaller({
|
|
76
128
|
projectRoot: process.cwd(),
|
|
@@ -210,11 +262,12 @@ program
|
|
|
210
262
|
{
|
|
211
263
|
type: 'list',
|
|
212
264
|
name: 'cliType',
|
|
213
|
-
message: 'Which AI CLI are you configuring for?',
|
|
265
|
+
message: 'Which AI CLI are you configuring for? (claude|gemini|codex|opencode)',
|
|
214
266
|
choices: [
|
|
215
267
|
{ name: 'Claude Code', value: 'claude' },
|
|
216
268
|
{ name: 'Gemini CLI', value: 'gemini' },
|
|
217
|
-
{ name: 'Codex CLI', value: 'codex' }
|
|
269
|
+
{ name: 'Codex CLI', value: 'codex' },
|
|
270
|
+
{ name: 'Opencode CLI', value: 'opencode'}
|
|
218
271
|
]
|
|
219
272
|
}
|
|
220
273
|
]);
|