multimodel-dev-os 0.5.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.
- package/bin/multimodel-dev-os.js +70 -1
- package/examples/ecommerce-store/.ai/config.yaml +3 -3
- package/examples/general-app/.ai/config.yaml +3 -3
- package/examples/nextjs-saas/.ai/config.yaml +3 -3
- package/examples/seo-landing-page/.ai/config.yaml +0 -0
- package/examples/wordpress-site/.ai/config.yaml +3 -3
- package/package.json +3 -2
- package/scripts/install.ps1 +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/verify.js +274 -0
- package/scripts/verify.sh +12 -12
package/bin/multimodel-dev-os.js
CHANGED
|
@@ -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.
|
|
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==================================================');
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multimodel-dev-os",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"multimodel-dev-os": "bin/multimodel-dev-os.js"
|
|
6
6
|
},
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"bin/"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"verify": "
|
|
38
|
+
"verify": "node scripts/verify.js",
|
|
39
|
+
"verify:bash": "bash scripts/verify.sh",
|
|
39
40
|
"test:cli": "node bin/multimodel-dev-os.js verify",
|
|
40
41
|
"pack:template": "bash scripts/pack-template.sh",
|
|
41
42
|
"pack": "bash scripts/pack-template.sh"
|
package/scripts/install.ps1
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -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.
|
|
201
|
-
if ! grep -q '"version": "0.5.
|
|
202
|
-
echo -e " ${RED}✗${NC} package.json version is not 0.5.
|
|
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.
|
|
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.
|
|
210
|
-
if ! node bin/multimodel-dev-os.js --help | grep -q 'v0.5.
|
|
211
|
-
echo -e " ${RED}✗${NC} CLI help does not display v0.5.
|
|
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.
|
|
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.
|
|
219
|
-
if ! npm pack --dry-run 2>&1 | grep -q 'multimodel-dev-os@0.5.
|
|
220
|
-
echo -e " ${RED}✗${NC} npm pack --dry-run does not report version 0.5.
|
|
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.
|
|
223
|
+
echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version 0.5.1"
|
|
224
224
|
PASS=$((PASS + 1))
|
|
225
225
|
fi
|
|
226
226
|
|