multimodel-dev-os 0.3.0 → 0.5.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 (63) hide show
  1. package/README.md +103 -98
  2. package/bin/multimodel-dev-os.js +420 -35
  3. package/docs/caveman-mode.md +7 -3
  4. package/docs/cli-roadmap.md +33 -21
  5. package/docs/comparison.md +33 -0
  6. package/docs/faq.md +21 -4
  7. package/docs/installers.md +1 -1
  8. package/docs/launch-kit.md +99 -0
  9. package/docs/multimodel-workflow.md +10 -11
  10. package/docs/npm-publishing.md +2 -2
  11. package/docs/quickstart.md +42 -29
  12. package/docs/templates-guide.md +65 -0
  13. package/docs/use-cases.md +39 -0
  14. package/examples/ecommerce-store/.ai/config.yaml +7 -4
  15. package/examples/ecommerce-store/.ai/context/architecture.md +6 -0
  16. package/examples/ecommerce-store/.ai/context/context-budget.md +4 -0
  17. package/examples/ecommerce-store/.ai/context/model-map.md +4 -0
  18. package/examples/ecommerce-store/.ai/context/project-brief.md +3 -0
  19. package/examples/ecommerce-store/.ai/skills/webhook-handler.md +15 -0
  20. package/examples/ecommerce-store/AGENTS.md +15 -2
  21. package/examples/ecommerce-store/MEMORY.md +4 -3
  22. package/examples/ecommerce-store/TASKS.md +10 -0
  23. package/examples/general-app/.ai/config.yaml +7 -4
  24. package/examples/general-app/.ai/context/architecture.md +12 -0
  25. package/examples/general-app/.ai/context/context-budget.md +5 -0
  26. package/examples/general-app/.ai/context/model-map.md +7 -0
  27. package/examples/general-app/.ai/context/project-brief.md +6 -0
  28. package/examples/general-app/.ai/skills/example-skill.md +8 -0
  29. package/examples/general-app/AGENTS.md +69 -4
  30. package/examples/general-app/MEMORY.md +32 -2
  31. package/examples/general-app/TASKS.md +9 -0
  32. package/examples/nextjs-saas/.ai/config.yaml +7 -4
  33. package/examples/nextjs-saas/.ai/context/architecture.md +8 -0
  34. package/examples/nextjs-saas/.ai/context/context-budget.md +4 -0
  35. package/examples/nextjs-saas/.ai/context/model-map.md +4 -0
  36. package/examples/nextjs-saas/.ai/context/project-brief.md +5 -0
  37. package/examples/nextjs-saas/.ai/skills/nextjs-action-build.md +16 -0
  38. package/examples/nextjs-saas/AGENTS.md +8 -2
  39. package/examples/nextjs-saas/MEMORY.md +7 -4
  40. package/examples/nextjs-saas/TASKS.md +12 -0
  41. package/examples/seo-landing-page/.ai/config.yaml +7 -4
  42. package/examples/seo-landing-page/.ai/context/architecture.md +12 -0
  43. package/examples/seo-landing-page/.ai/context/context-budget.md +5 -0
  44. package/examples/seo-landing-page/.ai/context/model-map.md +7 -0
  45. package/examples/seo-landing-page/.ai/context/project-brief.md +6 -0
  46. package/examples/seo-landing-page/.ai/skills/seo-audit.md +21 -0
  47. package/examples/seo-landing-page/AGENTS.md +69 -4
  48. package/examples/seo-landing-page/MEMORY.md +33 -4
  49. package/examples/seo-landing-page/TASKS.md +9 -0
  50. package/examples/wordpress-site/.ai/config.yaml +7 -4
  51. package/examples/wordpress-site/.ai/context/architecture.md +7 -0
  52. package/examples/wordpress-site/.ai/context/context-budget.md +4 -0
  53. package/examples/wordpress-site/.ai/context/model-map.md +4 -0
  54. package/examples/wordpress-site/.ai/context/project-brief.md +3 -0
  55. package/examples/wordpress-site/.ai/skills/plugin-boilerplate.md +21 -0
  56. package/examples/wordpress-site/AGENTS.md +16 -3
  57. package/examples/wordpress-site/MEMORY.md +4 -3
  58. package/examples/wordpress-site/TASKS.md +10 -0
  59. package/package.json +3 -2
  60. package/scripts/install.ps1 +1 -1
  61. package/scripts/install.sh +1 -1
  62. package/scripts/verify.js +274 -0
  63. package/scripts/verify.sh +12 -12
@@ -0,0 +1,274 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * multimodel-dev-os strict cross-platform release verification script.
5
+ * Checks that all required files and directories exist in their exact locations.
6
+ * Runs on Windows, macOS, and Linux with zero external dependencies.
7
+ */
8
+
9
+ import { existsSync, readFileSync, statSync } from 'fs';
10
+ import { join, resolve, dirname } from 'path';
11
+ import { fileURLToPath } from 'url';
12
+ import { execSync } from 'child_process';
13
+
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = dirname(__filename);
16
+ const projectRoot = resolve(__dirname, '..');
17
+
18
+ let pass = 0;
19
+ let fail = 0;
20
+ let warn = 0;
21
+
22
+ const RED = '\x1b[31m';
23
+ const GREEN = '\x1b[32m';
24
+ const YELLOW = '\x1b[33m';
25
+ const NC = '\x1b[0m';
26
+
27
+ function checkFile(relPath, required = true) {
28
+ const fullPath = join(projectRoot, relPath);
29
+ if (existsSync(fullPath) && statSync(fullPath).isFile()) {
30
+ console.log(` ${GREEN}✓${NC} ${relPath}`);
31
+ pass++;
32
+ return true;
33
+ } else if (required) {
34
+ console.error(` ${RED}✗${NC} ${relPath} (missing)`);
35
+ fail++;
36
+ return false;
37
+ } else {
38
+ console.log(` ${YELLOW}?${NC} ${relPath} (optional, not found)`);
39
+ warn++;
40
+ return false;
41
+ }
42
+ }
43
+
44
+ function checkDir(relPath) {
45
+ const fullPath = join(projectRoot, relPath);
46
+ if (existsSync(fullPath) && statSync(fullPath).isDirectory()) {
47
+ console.log(` ${GREEN}✓${NC} ${relPath}/`);
48
+ pass++;
49
+ return true;
50
+ } else {
51
+ console.error(` ${RED}✗${NC} ${relPath}/ (missing)`);
52
+ fail++;
53
+ return false;
54
+ }
55
+ }
56
+
57
+ console.log('multimodel-dev-os - Strict Release Audit Verification');
58
+ console.log('=====================================================');
59
+ console.log('');
60
+
61
+ // --- Root Files ---
62
+ console.log('Root files:');
63
+ checkFile('AGENTS.md');
64
+ checkFile('MEMORY.md');
65
+ checkFile('TASKS.md');
66
+ checkFile('RUNBOOK.md');
67
+ checkFile('README.md');
68
+ checkFile('LICENSE');
69
+ checkFile('CONTRIBUTING.md');
70
+ checkFile('CODE_OF_CONDUCT.md');
71
+ checkFile('SECURITY.md');
72
+ checkFile('CHANGELOG.md');
73
+ checkFile('package.json');
74
+ checkFile('.gitignore');
75
+ checkFile('.gitattributes');
76
+ checkFile('.editorconfig', false);
77
+
78
+ // --- .ai/ Core Directory & YAML ---
79
+ console.log('\n.ai/ directory & config:');
80
+ checkDir('.ai');
81
+ checkFile('.ai/config.yaml');
82
+
83
+ // --- .ai/context/ ---
84
+ console.log('\n.ai/context/ files:');
85
+ checkFile('.ai/context/project-brief.md');
86
+ checkFile('.ai/context/architecture.md');
87
+ checkFile('.ai/context/business-rules.md');
88
+ checkFile('.ai/context/seo-rules.md');
89
+ checkFile('.ai/context/deployment-rules.md');
90
+ checkFile('.ai/context/model-map.md');
91
+ checkFile('.ai/context/context-budget.md');
92
+
93
+ // --- .ai/agents/ ---
94
+ console.log('\n.ai/agents/ files:');
95
+ checkFile('.ai/agents/multimodel-orchestrator.md');
96
+ checkFile('.ai/agents/planner.md');
97
+ checkFile('.ai/agents/coder.md');
98
+ checkFile('.ai/agents/reviewer.md');
99
+ checkFile('.ai/agents/qa-tester.md');
100
+ checkFile('.ai/agents/security-auditor.md');
101
+ checkFile('.ai/agents/seo-auditor.md');
102
+ checkFile('.ai/agents/devops.md');
103
+
104
+ // --- .ai/skills/ ---
105
+ console.log('\n.ai/skills/ files:');
106
+ checkFile('.ai/skills/model-routing.md');
107
+ checkFile('.ai/skills/context-routing.md');
108
+ checkFile('.ai/skills/nextjs-feature-build.md');
109
+ checkFile('.ai/skills/bug-fix.md');
110
+ checkFile('.ai/skills/refactor.md');
111
+ checkFile('.ai/skills/seo-implementation.md');
112
+ checkFile('.ai/skills/landing-page-optimization.md');
113
+ checkFile('.ai/skills/cpanel-deploy.md');
114
+ checkFile('.ai/skills/caveman-bug-fix.md');
115
+ checkFile('.ai/skills/caveman-feature-build.md');
116
+ checkFile('.ai/skills/caveman-context-handoff.md');
117
+
118
+ // --- .ai/prompts/ ---
119
+ console.log('\n.ai/prompts/ files:');
120
+ checkFile('.ai/prompts/plan-first.md');
121
+ checkFile('.ai/prompts/implement-safely.md');
122
+ checkFile('.ai/prompts/review-diff.md');
123
+ checkFile('.ai/prompts/generate-tests.md');
124
+ checkFile('.ai/prompts/summarize-session.md');
125
+ checkFile('.ai/prompts/handoff-to-next-model.md');
126
+
127
+ // --- .ai/checks/ ---
128
+ console.log('\n.ai/checks/ files:');
129
+ checkFile('.ai/checks/pre-implementation.md');
130
+ checkFile('.ai/checks/pre-commit.md');
131
+ checkFile('.ai/checks/pre-deploy.md');
132
+ checkFile('.ai/checks/regression-checklist.md');
133
+ checkFile('.ai/checks/context-budget.md');
134
+
135
+ // --- .ai/templates/ ---
136
+ console.log('\n.ai/templates/ files:');
137
+ checkFile('.ai/templates/task-template.md');
138
+ checkFile('.ai/templates/feature-spec-template.md');
139
+ checkFile('.ai/templates/bug-report-template.md');
140
+ checkFile('.ai/templates/session-log-template.md');
141
+ checkFile('.ai/templates/project-memory-template.md');
142
+
143
+ // --- Adapters ---
144
+ console.log('\nAdapters:');
145
+ checkFile('adapters/codex/AGENTS.md');
146
+ checkFile('adapters/codex/setup.md');
147
+ checkFile('adapters/antigravity/AGENTS.md');
148
+ checkFile('adapters/antigravity/.gemini/settings.json');
149
+ checkFile('adapters/antigravity/setup.md');
150
+ checkFile('adapters/cursor/.cursorrules');
151
+ checkFile('adapters/cursor/setup.md');
152
+ checkFile('adapters/claude/CLAUDE.md');
153
+ checkFile('adapters/claude/setup.md');
154
+ checkFile('adapters/gemini/GEMINI.md');
155
+ checkFile('adapters/gemini/setup.md');
156
+ checkFile('adapters/vscode/.vscode/settings.json');
157
+ checkFile('adapters/vscode/setup.md');
158
+
159
+ // --- Examples ---
160
+ console.log('\nExamples:');
161
+ checkFile('examples/nextjs-saas/AGENTS.md');
162
+ checkFile('examples/nextjs-saas/MEMORY.md');
163
+ checkFile('examples/wordpress-site/AGENTS.md');
164
+ checkFile('examples/wordpress-site/MEMORY.md');
165
+ checkFile('examples/ecommerce-store/AGENTS.md');
166
+ checkFile('examples/ecommerce-store/MEMORY.md');
167
+ checkFile('examples/seo-landing-page/AGENTS.md');
168
+ checkFile('examples/seo-landing-page/MEMORY.md');
169
+ checkFile('examples/general-app/AGENTS.md');
170
+ checkFile('examples/general-app/MEMORY.md');
171
+
172
+ // --- Scripts & bin ---
173
+ console.log('\nScripts & Executables:');
174
+ checkFile('scripts/install.sh');
175
+ checkFile('scripts/install.ps1');
176
+ checkFile('scripts/verify.sh');
177
+ checkFile('scripts/pack-template.sh');
178
+ checkFile('bin/multimodel-dev-os.js');
179
+
180
+ // --- GitHub Integration ---
181
+ console.log('\nGitHub Workflows:');
182
+ checkFile('.github/workflows/verify.yml');
183
+
184
+ // --- Documentation ---
185
+ console.log('\nExtended Documentation:');
186
+ checkFile('docs/quickstart.md');
187
+ checkFile('docs/architecture.md');
188
+ checkFile('docs/multimodel-workflow.md');
189
+ checkFile('docs/caveman-mode.md');
190
+ checkFile('docs/adapters.md');
191
+ checkFile('docs/installers.md');
192
+ checkFile('docs/cli-roadmap.md');
193
+ checkFile('docs/faq.md');
194
+ checkFile('docs/testing-v0.2.md');
195
+ checkFile('docs/npm-publishing.md');
196
+ checkFile('docs/templates-guide.md');
197
+
198
+ // --- CLI & Packaging Pre-Flight Tests ---
199
+ console.log('\nRunning CLI & Packaging Pre-Flight Tests...');
200
+
201
+ // Verify package.json version is exactly 0.5.1
202
+ try {
203
+ const pkgData = JSON.parse(readFileSync(join(projectRoot, 'package.json'), 'utf8'));
204
+ if (pkgData.version !== '0.5.1') {
205
+ console.error(` ${RED}✗${NC} package.json version is not 0.5.1 (found ${pkgData.version})`);
206
+ fail++;
207
+ } else {
208
+ console.log(` ${GREEN}✓${NC} package.json version is exactly 0.5.1`);
209
+ pass++;
210
+ }
211
+ } catch (e) {
212
+ console.error(` ${RED}✗${NC} Failed to parse package.json: ${e.message}`);
213
+ fail++;
214
+ }
215
+
216
+ // Verify CLI help displays v0.5.1
217
+ try {
218
+ const helpOutput = execSync('node bin/multimodel-dev-os.js --help', { cwd: projectRoot, encoding: 'utf8' });
219
+ if (!helpOutput.includes('v0.5.1')) {
220
+ console.error(` ${RED}✗${NC} CLI help does not display v0.5.1`);
221
+ fail++;
222
+ } else {
223
+ console.log(` ${GREEN}✓${NC} CLI help displays v0.5.1`);
224
+ pass++;
225
+ }
226
+ } catch (e) {
227
+ console.error(` ${RED}✗${NC} node bin/multimodel-dev-os.js --help failed: ${e.message}`);
228
+ fail++;
229
+ }
230
+
231
+ // Verify npm pack dry-run shows v0.5.1
232
+ try {
233
+ const packOutput = execSync('npm pack --dry-run', { cwd: projectRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });
234
+ if (packOutput.includes('multimodel-dev-os@0.5.1') || packOutput.includes('multimodel-dev-os-0.5.1.tgz') || packOutput.includes('version: 0.5.1')) {
235
+ console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version 0.5.1`);
236
+ pass++;
237
+ } else {
238
+ // Check stderr
239
+ console.error(` ${RED}✗${NC} npm pack --dry-run did not report 0.5.1 in stdout`);
240
+ fail++;
241
+ }
242
+ } catch (e) {
243
+ const stdErrOut = e.stderr ? e.stderr.toString() : '';
244
+ const stdOutOut = e.stdout ? e.stdout.toString() : '';
245
+ if (stdErrOut.includes('multimodel-dev-os@0.5.1') || stdErrOut.includes('multimodel-dev-os-0.5.1.tgz') || stdOutOut.includes('multimodel-dev-os-0.5.1.tgz')) {
246
+ console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version 0.5.1`);
247
+ pass++;
248
+ } else {
249
+ console.error(` ${RED}✗${NC} npm pack --dry-run failed or did not report 0.5.1: ${e.message}`);
250
+ fail++;
251
+ }
252
+ }
253
+
254
+ // Dry run verify command runs cleanly
255
+ try {
256
+ execSync('node bin/multimodel-dev-os.js verify', { cwd: projectRoot, stdio: 'ignore' });
257
+ console.log(` ${GREEN}✓${NC} node bin/multimodel-dev-os.js verify`);
258
+ pass++;
259
+ } catch (e) {
260
+ console.error(` ${RED}✗${NC} node bin/multimodel-dev-os.js verify failed: ${e.message}`);
261
+ fail++;
262
+ }
263
+
264
+ console.log('\n=====================================================');
265
+ const total = pass + fail + warn;
266
+ console.log(` Pass: ${GREEN}${pass}${NC} Fail: ${RED}${fail}${NC} Warn: ${YELLOW}${warn}${NC} Total: ${total}`);
267
+
268
+ if (fail > 0) {
269
+ console.error(`\n${RED}Verification failed. Fix issues listed above.${NC}`);
270
+ process.exit(1);
271
+ } else {
272
+ console.log(`\n${GREEN}Verification passed successfully.${NC}`);
273
+ process.exit(0);
274
+ }
package/scripts/verify.sh CHANGED
@@ -197,30 +197,30 @@ check_file "docs/npm-publishing.md"
197
197
  echo ""
198
198
  echo "Running CLI & Packaging Pre-Flight Tests..."
199
199
 
200
- # Verify package.json version is exactly 0.3.0
201
- if ! grep -q '"version": "0.3.0"' package.json; then
202
- echo -e " ${RED}✗${NC} package.json version is not 0.3.0"
200
+ # Verify package.json version is exactly 0.5.1
201
+ if ! grep -q '"version": "0.5.1"' package.json; then
202
+ echo -e " ${RED}✗${NC} package.json version is not 0.5.1"
203
203
  FAIL=$((FAIL + 1))
204
204
  else
205
- echo -e " ${GREEN}✓${NC} package.json version is exactly 0.3.0"
205
+ echo -e " ${GREEN}✓${NC} package.json version is exactly 0.5.1"
206
206
  PASS=$((PASS + 1))
207
207
  fi
208
208
 
209
- # Verify CLI version matches v0.3.0
210
- if ! node bin/multimodel-dev-os.js --help | grep -q 'v0.3.0'; then
211
- echo -e " ${RED}✗${NC} CLI help does not display v0.3.0"
209
+ # Verify CLI version matches v0.5.1
210
+ if ! node bin/multimodel-dev-os.js --help | grep -q 'v0.5.1'; then
211
+ echo -e " ${RED}✗${NC} CLI help does not display v0.5.1"
212
212
  FAIL=$((FAIL + 1))
213
213
  else
214
- echo -e " ${GREEN}✓${NC} CLI help displays v0.3.0"
214
+ echo -e " ${GREEN}✓${NC} CLI help displays v0.5.1"
215
215
  PASS=$((PASS + 1))
216
216
  fi
217
217
 
218
- # Verify npm pack dry-run shows v0.3.0
219
- if ! npm pack --dry-run 2>&1 | grep -q 'multimodel-dev-os@0.3.0'; then
220
- echo -e " ${RED}✗${NC} npm pack --dry-run does not report version 0.3.0"
218
+ # Verify npm pack dry-run shows v0.5.1
219
+ if ! npm pack --dry-run 2>&1 | grep -q 'multimodel-dev-os@0.5.1'; then
220
+ echo -e " ${RED}✗${NC} npm pack --dry-run does not report version 0.5.1"
221
221
  FAIL=$((FAIL + 1))
222
222
  else
223
- echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version 0.3.0"
223
+ echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version 0.5.1"
224
224
  PASS=$((PASS + 1))
225
225
  fi
226
226