multimodel-dev-os 0.5.0 → 0.6.0

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.
@@ -13,7 +13,7 @@ const __filename = fileURLToPath(import.meta.url);
13
13
  const __dirname = dirname(__filename);
14
14
  const sourceRoot = resolve(__dirname, '..');
15
15
 
16
- let version = '0.5.0';
16
+ let version = '0.5.1';
17
17
  try {
18
18
  const pkgData = JSON.parse(readFileSync(resolve(sourceRoot, 'package.json'), 'utf8'));
19
19
  version = pkgData.version;
@@ -333,6 +333,73 @@ function handleInit(options) {
333
333
  }
334
334
  });
335
335
 
336
+ // Copy root-level adapter rule files if selected
337
+ if (!options.dryRun) {
338
+ options.adapters.forEach(adapter => {
339
+ if (adapter === 'cursor') {
340
+ const srcFile = join(sourceRoot, 'adapters/cursor/.cursorrules');
341
+ const destFile = join(options.target, '.cursorrules');
342
+ if (existsSync(srcFile)) {
343
+ writeFileSync(destFile, readFileSync(srcFile));
344
+ console.log(` \x1b[32mCREATE ROOT ADAPTER FILE:\x1b[0m .cursorrules`);
345
+ }
346
+ } else if (adapter === 'claude') {
347
+ const srcFile = join(sourceRoot, 'adapters/claude/CLAUDE.md');
348
+ const destFile = join(options.target, 'CLAUDE.md');
349
+ if (existsSync(srcFile)) {
350
+ writeFileSync(destFile, readFileSync(srcFile));
351
+ console.log(` \x1b[32mCREATE ROOT ADAPTER FILE:\x1b[0m CLAUDE.md`);
352
+ }
353
+ } else if (adapter === 'vscode') {
354
+ const srcFile = join(sourceRoot, 'adapters/vscode/.vscode/settings.json');
355
+ const destDir = join(options.target, '.vscode');
356
+ const destFile = join(destDir, 'settings.json');
357
+ if (existsSync(srcFile)) {
358
+ if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
359
+ writeFileSync(destFile, readFileSync(srcFile));
360
+ console.log(` \x1b[32mCREATE ROOT ADAPTER FILE:\x1b[0m .vscode/settings.json`);
361
+ }
362
+ } else if (adapter === 'gemini') {
363
+ const srcFile = join(sourceRoot, 'adapters/gemini/GEMINI.md');
364
+ const destFile = join(options.target, 'GEMINI.md');
365
+ if (existsSync(srcFile)) {
366
+ writeFileSync(destFile, readFileSync(srcFile));
367
+ console.log(` \x1b[32mCREATE ROOT ADAPTER FILE:\x1b[0m GEMINI.md`);
368
+ }
369
+ } else if (adapter === 'antigravity') {
370
+ const srcFile = join(sourceRoot, 'adapters/antigravity/.gemini/settings.json');
371
+ const destDir = join(options.target, '.gemini');
372
+ const destFile = join(destDir, 'settings.json');
373
+ if (existsSync(srcFile)) {
374
+ if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
375
+ writeFileSync(destFile, readFileSync(srcFile));
376
+ console.log(` \x1b[32mCREATE ROOT ADAPTER FILE:\x1b[0m .gemini/settings.json`);
377
+ }
378
+ }
379
+ });
380
+
381
+ // Dynamically enable selected adapters in the target .ai/config.yaml
382
+ const targetConfigPath = join(options.target, '.ai/config.yaml');
383
+ if (existsSync(targetConfigPath) && options.adapters.length > 0) {
384
+ let configContent = readFileSync(targetConfigPath, 'utf8');
385
+ options.adapters.forEach(adapter => {
386
+ const regex = new RegExp(`${adapter}:\\s*false`, 'g');
387
+ configContent = configContent.replace(regex, `${adapter}: true`);
388
+ });
389
+ writeFileSync(targetConfigPath, configContent, 'utf8');
390
+ console.log(` \x1b[32mUPDATE CONFIG:\x1b[0m Enabled selected adapters [${options.adapters.join(', ')}] in .ai/config.yaml`);
391
+ }
392
+ } else {
393
+ // Dry run notes
394
+ options.adapters.forEach(adapter => {
395
+ if (adapter === 'cursor') console.log(` \x1b[36m[DRY-RUN] WOULD CREATE ROOT ADAPTER FILE:\x1b[0m .cursorrules`);
396
+ else if (adapter === 'claude') console.log(` \x1b[36m[DRY-RUN] WOULD CREATE ROOT ADAPTER FILE:\x1b[0m CLAUDE.md`);
397
+ else if (adapter === 'vscode') console.log(` \x1b[36m[DRY-RUN] WOULD CREATE ROOT ADAPTER FILE:\x1b[0m .vscode/settings.json`);
398
+ else if (adapter === 'gemini') console.log(` \x1b[36m[DRY-RUN] WOULD CREATE ROOT ADAPTER FILE:\x1b[0m GEMINI.md`);
399
+ else if (adapter === 'antigravity') console.log(` \x1b[36m[DRY-RUN] WOULD CREATE ROOT ADAPTER FILE:\x1b[0m .gemini/settings.json`);
400
+ });
401
+ }
402
+
336
403
  console.log(`\n\x1b[32m✔ Project initialized successfully! [Total Operations: ${operations.length}]\x1b[0m\n`);
337
404
  }
338
405
 
@@ -468,6 +535,7 @@ function handleDoctor(options) {
468
535
  checkAdapter('claude', 'CLAUDE.md');
469
536
  checkAdapter('gemini', 'GEMINI.md');
470
537
  checkAdapter('vscode', '.vscode/settings.json');
538
+ checkAdapter('antigravity', '.gemini/settings.json');
471
539
  } else {
472
540
  warn('.ai/config.yaml is missing from project. Active adapters could not be audited.');
473
541
  }
@@ -570,6 +638,7 @@ function handleValidate(options) {
570
638
  assertAdapter('claude', 'CLAUDE.md');
571
639
  assertAdapter('gemini', 'GEMINI.md');
572
640
  assertAdapter('vscode', '.vscode/settings.json');
641
+ assertAdapter('antigravity', '.gemini/settings.json');
573
642
  }
574
643
 
575
644
  console.log('\n==================================================');
@@ -0,0 +1,57 @@
1
+ export default {
2
+ base: '/multimodel-dev-os/',
3
+ title: 'MultiModel Dev OS',
4
+ description: 'Portable, vendor-neutral AI Developer OS for multi-agent coding workflows.',
5
+ ignoreDeadLinks: true,
6
+ themeConfig: {
7
+ logo: '/logo.png',
8
+ nav: [
9
+ { text: 'Home', link: '/' },
10
+ { text: 'Quickstart', link: '/quickstart' },
11
+ { text: 'Templates', link: '/templates/' },
12
+ { text: 'GitHub', link: 'https://github.com/rizvee/multimodel-dev-os' }
13
+ ],
14
+ sidebar: [
15
+ {
16
+ text: 'Getting Started',
17
+ items: [
18
+ { text: 'Introduction', link: '/' },
19
+ { text: 'Quickstart', link: '/quickstart' },
20
+ { text: 'FAQ', link: '/faq' }
21
+ ]
22
+ },
23
+ {
24
+ text: 'Core Features',
25
+ items: [
26
+ { text: 'Command Line Reference', link: '/CLI' },
27
+ { text: 'Architecture Specifications', link: '/architecture' },
28
+ { text: 'Adapters Setup Guide', link: '/adapters' },
29
+ { text: 'Caveman Mode Specifications', link: '/caveman-mode' }
30
+ ]
31
+ },
32
+ {
33
+ text: 'Templates & Use Cases',
34
+ items: [
35
+ { text: 'Template Gallery', link: '/templates/' },
36
+ { text: 'Use Cases Guide', link: '/use-cases' },
37
+ { text: 'Templates Architecture', link: '/templates-guide' }
38
+ ]
39
+ },
40
+ {
41
+ text: 'Operations & Publishing',
42
+ items: [
43
+ { text: 'CLI Roadmap', link: '/cli-roadmap' },
44
+ { text: 'NPM Publishing Runbook', link: '/npm-publishing' },
45
+ { text: 'Pre-flight Release Testing', link: '/testing-v0.2' }
46
+ ]
47
+ }
48
+ ],
49
+ socialLinks: [
50
+ { icon: 'github', link: 'https://github.com/rizvee/multimodel-dev-os' }
51
+ ],
52
+ footer: {
53
+ message: 'Released under the MIT License.',
54
+ copyright: 'Copyright © 2026-present MultiModel Dev OS team.'
55
+ }
56
+ }
57
+ }
package/docs/CLI.md ADDED
@@ -0,0 +1,50 @@
1
+ # CLI Command Reference
2
+
3
+ `multimodel-dev-os` features a lightweight, dependency-free local CLI utility. It allows standard bootstraps, structural integrity checks, and rule validations natively.
4
+
5
+ ## Execution
6
+
7
+ Execute the CLI globally or inside target folder contexts using `npx`:
8
+
9
+ ```bash
10
+ npx multimodel-dev-os@latest <command> [options]
11
+ ```
12
+
13
+ Or execute locally within a cloned workspace:
14
+
15
+ ```bash
16
+ node bin/multimodel-dev-os.js <command> [options]
17
+ ```
18
+
19
+ ---
20
+
21
+ ## Commands
22
+
23
+ ### 1. `init`
24
+ Scaffold `multimodel-dev-os` files and adapters cleanly.
25
+ * **Usage:** `node bin/multimodel-dev-os.js init [options]`
26
+ * **Options:**
27
+ - `-t, --target <path>`: Specifies target destination (default: current working directory).
28
+ - `--template <name>`: Stack blueprint: `nextjs-saas`, `wordpress-site`, `ecommerce-store`, `seo-landing-page`, `general-app`.
29
+ - `-a, --adapter <name>`: Inject rules file directly (`cursor`, `claude`, `vscode`, `gemini`, `antigravity`, `codex`).
30
+ - `--caveman`: Installs ultra-lightweight variant profiles.
31
+ - `-d, --dry-run`: Previews actions without mutated files.
32
+ - `-f, --force`: Overwrites conflicts.
33
+
34
+ ### 2. `validate`
35
+ Strict directory schema compliance gate checks.
36
+ * **Usage:** `node bin/multimodel-dev-os.js validate [options]`
37
+ * **Assertions:** Checks for the presence of crucial root files and enabled adapters' rule targets. If assertions fail, exits with status 1.
38
+
39
+ ### 3. `doctor`
40
+ Advisory checkups for gitignores and large token-sinks.
41
+ * **Usage:** `node bin/multimodel-dev-os.js doctor [options]`
42
+ * **Audits:** Missing `.env` gates in gitignores, missing build steps inside `AGENTS.md`, and large unignored directories (e.g. `node_modules`, `.next`). Reports warnings without blocking execution.
43
+
44
+ ### 4. `templates` / `list-templates`
45
+ Inspection map of all built-in stacks.
46
+ * **Usage:** `node bin/multimodel-dev-os.js templates`
47
+
48
+ ### 5. `show-template <name>`
49
+ Detailed layout specifications and skill blueprints audit.
50
+ * **Usage:** `node bin/multimodel-dev-os.js show-template nextjs-saas`
package/docs/index.md ADDED
@@ -0,0 +1,55 @@
1
+ ---
2
+ layout: home
3
+
4
+ hero:
5
+ name: "MultiModel Dev OS"
6
+ text: "Standardize your AI pair-programmers"
7
+ tagline: "Portable, vendor-neutral workspace configurations for multi-agent coding loops."
8
+ image:
9
+ src: /logo.png
10
+ alt: MultiModel Dev OS Logo
11
+ actions:
12
+ - theme: brand
13
+ text: Get Started Quick
14
+ link: /quickstart
15
+ - theme: alt
16
+ text: View Template Gallery
17
+ link: /templates/
18
+ - theme: alt
19
+ text: View on GitHub
20
+ link: https://github.com/rizvee/multimodel-dev-os
21
+
22
+ features:
23
+ - icon: 🧠
24
+ title: Universal Portability
25
+ details: Supports Codex, Antigravity, Cursor, Claude Code, Gemini, and VS Code with dynamic adapters sync.
26
+ - icon: ⚡
27
+ title: Ultra-Low Token Footprint
28
+ details: Includes Caveman Mode to slash model context footprint by ~79%, saving massive API bill budgets.
29
+ - icon: 🛡️
30
+ title: Local Quality Gates
31
+ details: Build-in zero-dependency validate and doctor checkups ensure pristine workspace rules layout.
32
+ ---
33
+
34
+ <style>
35
+ :root {
36
+ --vp-home-hero-name-color: transparent;
37
+ --vp-home-hero-name-background: linear-gradient(135deg, #646cff 0%, #42b883 100%);
38
+ }
39
+ </style>
40
+
41
+ ## 10-Second Quickstart
42
+
43
+ Bootstrap your project instantly via `npx`:
44
+
45
+ ```bash
46
+ npx multimodel-dev-os@latest init
47
+ ```
48
+
49
+ ## Why MultiModel Dev OS?
50
+
51
+ AI coding tools are incredibly fast, but switching between them introduces context fragmentation:
52
+ 1. **Context Loss:** You use **Cursor** for quick code completions, **Claude Code** for command-line implementations, and **Gemini/Antigravity** for auditing large code volumes. Every context switch drops your operational parameters.
53
+ 2. **Instruction Drift:** Different tools look for different files (`.cursorrules`, `CLAUDE.md`, `.vscode/settings.json`, `.gemini/settings.json`). If you modify build scripts or styling rules in one place, they quickly drift across others, causing confusing compile failures.
54
+
55
+ `multimodel-dev-os` establishes a single source of truth inside your repository using a standardized root structure (`AGENTS.md`, `MEMORY.md`, `TASKS.md`, `RUNBOOK.md`) and a `.ai/` context configuration directory.
@@ -0,0 +1,30 @@
1
+ # Scaffolding Template Gallery
2
+
3
+ `multimodel-dev-os` provides high-fidelity, real-world scaffolding profiles for common architectural targets.
4
+
5
+ ## Stacks Blueprints
6
+
7
+ ### [Next.js SaaS Stack](/use-cases.html#_1-next-js-saas-stack)
8
+ - **Tech Stack:** Next.js 14 App Router, TypeScript, React Server Actions, Prisma, Stripe.
9
+ - **Skill File:** `.ai/skills/nextjs-action-build.md` (form parameters validation and isolation conventions).
10
+ - **Audit Target:** `npx multimodel-dev-os init --template nextjs-saas`
11
+
12
+ ### [WordPress Theme & Plugin Custom Site](/use-cases.html#_4-wordpress-custom-site)
13
+ - **Tech Stack:** WordPress Core, PHP 8.1+, Gutenberg custom blocks, MySQL.
14
+ - **Skill File:** `.ai/skills/plugin-boilerplate.md` (database escape statements and esc_html gates).
15
+ - **Audit Target:** `npx multimodel-dev-os init --template wordpress-site`
16
+
17
+ ### [Headless E-commerce Cart](/use-cases.html#_2-headless-e-commerce-store)
18
+ - **Tech Stack:** MedusaJS, Stripe API, cart session structures.
19
+ - **Skill File:** `.ai/skills/webhook-handler.md` (Checkout validation loops and webhook signatures auditing).
20
+ - **Audit Target:** `npx multimodel-dev-os init --template ecommerce-store`
21
+
22
+ ### [SEO Astro Landing Layout](/use-cases.html#_3-seo-landing-page)
23
+ - **Tech Stack:** Astro, Tailwind, HTML5, structured JSON-LD schemas.
24
+ - **Skill File:** `.ai/skills/seo-audit.md` (Image compression parameters and meta validations).
25
+ - **Audit Target:** `npx multimodel-dev-os init --template seo-landing-page`
26
+
27
+ ### [General Universal App API](/use-cases.html#_5-general-application-scaffolding)
28
+ - **Tech Stack:** Node, Express, PostgreSQL, Jest.
29
+ - **Skill File:** `.ai/skills/example-skill.md` (Standardized environment variables and validation middleware).
30
+ - **Audit Target:** `npx multimodel-dev-os init --template general-app`
@@ -1,7 +1,7 @@
1
1
  adapters:
2
- cursor: true
3
- claude: true
4
- vscode: true
2
+ cursor: false
3
+ claude: false
4
+ vscode: false
5
5
  mode: standard
6
6
  orchestrator:
7
7
  mode: sequential
@@ -1,7 +1,7 @@
1
1
  adapters:
2
- cursor: true
3
- claude: true
4
- vscode: true
2
+ cursor: false
3
+ claude: false
4
+ vscode: false
5
5
  mode: standard
6
6
  orchestrator:
7
7
  mode: sequential
@@ -1,7 +1,7 @@
1
1
  adapters:
2
- cursor: true
3
- claude: true
4
- vscode: true
2
+ cursor: false
3
+ claude: false
4
+ vscode: false
5
5
  mode: standard
6
6
  orchestrator:
7
7
  mode: sequential
@@ -1,7 +1,7 @@
1
1
  adapters:
2
- cursor: true
3
- claude: true
4
- vscode: true
2
+ cursor: false
3
+ claude: false
4
+ vscode: false
5
5
  mode: standard
6
6
  orchestrator:
7
7
  mode: sequential
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multimodel-dev-os",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "bin": {
5
5
  "multimodel-dev-os": "bin/multimodel-dev-os.js"
6
6
  },
@@ -31,13 +31,22 @@
31
31
  "adapters/",
32
32
  "scripts/",
33
33
  "docs/",
34
+ "!docs/.vitepress/dist/",
35
+ "!docs/.vitepress/cache/",
34
36
  "examples/",
35
37
  "bin/"
36
38
  ],
37
39
  "scripts": {
38
- "verify": "bash scripts/verify.sh",
40
+ "verify": "node scripts/verify.js",
41
+ "verify:bash": "bash scripts/verify.sh",
39
42
  "test:cli": "node bin/multimodel-dev-os.js verify",
40
43
  "pack:template": "bash scripts/pack-template.sh",
41
- "pack": "bash scripts/pack-template.sh"
44
+ "pack": "bash scripts/pack-template.sh",
45
+ "docs:dev": "vitepress dev docs",
46
+ "docs:build": "vitepress build docs",
47
+ "docs:preview": "vitepress preview docs"
48
+ },
49
+ "devDependencies": {
50
+ "vitepress": "^1.6.4"
42
51
  }
43
52
  }
@@ -11,7 +11,7 @@ param(
11
11
  [switch]$Help
12
12
  )
13
13
 
14
- $Version = "0.5.0"
14
+ $Version = "0.5.1"
15
15
  $RepoUrl = "https://raw.githubusercontent.com/rizvee/multimodel-dev-os/main"
16
16
 
17
17
  if ($Help) {
@@ -7,7 +7,7 @@ set -euo pipefail
7
7
  # --all (install all adapters)
8
8
  # --dry-run (show what would be created without creating)
9
9
 
10
- VERSION="0.5.0"
10
+ VERSION="0.5.1"
11
11
  REPO_URL="https://raw.githubusercontent.com/rizvee/multimodel-dev-os/main"
12
12
  CAVEMAN=false
13
13
  DRY_RUN=false
@@ -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.5.0
201
- if ! grep -q '"version": "0.5.0"' package.json; then
202
- echo -e " ${RED}✗${NC} package.json version is not 0.5.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.5.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.5.0
210
- if ! node bin/multimodel-dev-os.js --help | grep -q 'v0.5.0'; then
211
- echo -e " ${RED}✗${NC} CLI help does not display v0.5.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.5.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.5.0
219
- if ! npm pack --dry-run 2>&1 | grep -q 'multimodel-dev-os@0.5.0'; then
220
- echo -e " ${RED}✗${NC} npm pack --dry-run does not report version 0.5.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.5.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