multimodel-dev-os 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multimodel-dev-os",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "bin": {
5
5
  "multimodel-dev-os": "bin/multimodel-dev-os.js"
6
6
  },
package/scripts/verify.js CHANGED
@@ -198,14 +198,16 @@ checkFile('docs/templates-guide.md');
198
198
  // --- CLI & Packaging Pre-Flight Tests ---
199
199
  console.log('\nRunning CLI & Packaging Pre-Flight Tests...');
200
200
 
201
- // Verify package.json version is exactly 0.5.1
201
+ // Verify package.json version dynamically
202
+ let expectedVersion = '';
202
203
  try {
203
204
  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})`);
205
+ expectedVersion = pkgData.version;
206
+ if (!expectedVersion || !/^\d+\.\d+\.\d+/.test(expectedVersion)) {
207
+ console.error(` ${RED}✗${NC} package.json version is invalid (found ${expectedVersion})`);
206
208
  fail++;
207
209
  } else {
208
- console.log(` ${GREEN}✓${NC} package.json version is exactly 0.5.1`);
210
+ console.log(` ${GREEN}✓${NC} package.json version is valid: ${expectedVersion}`);
209
211
  pass++;
210
212
  }
211
213
  } catch (e) {
@@ -213,14 +215,14 @@ try {
213
215
  fail++;
214
216
  }
215
217
 
216
- // Verify CLI help displays v0.5.1
218
+ // Verify CLI help displays current version dynamically
217
219
  try {
218
220
  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
+ if (!helpOutput.includes(`v${expectedVersion}`)) {
222
+ console.error(` ${RED}✗${NC} CLI help does not display v${expectedVersion}`);
221
223
  fail++;
222
224
  } else {
223
- console.log(` ${GREEN}✓${NC} CLI help displays v0.5.1`);
225
+ console.log(` ${GREEN}✓${NC} CLI help displays v${expectedVersion}`);
224
226
  pass++;
225
227
  }
226
228
  } catch (e) {
@@ -228,25 +230,24 @@ try {
228
230
  fail++;
229
231
  }
230
232
 
231
- // Verify npm pack dry-run shows v0.5.1
233
+ // Verify npm pack dry-run shows current version dynamically
232
234
  try {
233
235
  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
+ if (packOutput.includes(`multimodel-dev-os@${expectedVersion}`) || packOutput.includes(`multimodel-dev-os-${expectedVersion}.tgz`) || packOutput.includes(`version: ${expectedVersion}`)) {
237
+ console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version ${expectedVersion}`);
236
238
  pass++;
237
239
  } else {
238
- // Check stderr
239
- console.error(` ${RED}✗${NC} npm pack --dry-run did not report 0.5.1 in stdout`);
240
+ console.error(` ${RED}✗${NC} npm pack --dry-run did not report ${expectedVersion} in stdout`);
240
241
  fail++;
241
242
  }
242
243
  } catch (e) {
243
244
  const stdErrOut = e.stderr ? e.stderr.toString() : '';
244
245
  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`);
246
+ if (stdErrOut.includes(`multimodel-dev-os@${expectedVersion}`) || stdErrOut.includes(`multimodel-dev-os-${expectedVersion}.tgz`) || stdOutOut.includes(`multimodel-dev-os-${expectedVersion}.tgz`)) {
247
+ console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version ${expectedVersion}`);
247
248
  pass++;
248
249
  } else {
249
- console.error(` ${RED}✗${NC} npm pack --dry-run failed or did not report 0.5.1: ${e.message}`);
250
+ console.error(` ${RED}✗${NC} npm pack --dry-run failed or did not report ${expectedVersion}: ${e.message}`);
250
251
  fail++;
251
252
  }
252
253
  }
package/scripts/verify.sh CHANGED
@@ -197,30 +197,33 @@ 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.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"
200
+ # Extract version dynamically from package.json
201
+ VERSION=$(node -e "import fs from 'fs'; console.log(JSON.parse(fs.readFileSync('package.json')).version)")
202
+
203
+ # Verify package.json version exists and is valid
204
+ if [ -z "$VERSION" ]; then
205
+ echo -e " ${RED}✗${NC} package.json version could not be resolved"
203
206
  FAIL=$((FAIL + 1))
204
207
  else
205
- echo -e " ${GREEN}✓${NC} package.json version is exactly 0.5.1"
208
+ echo -e " ${GREEN}✓${NC} package.json version dynamically resolved: $VERSION"
206
209
  PASS=$((PASS + 1))
207
210
  fi
208
211
 
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
+ # Verify CLI version matches dynamically
213
+ if ! node bin/multimodel-dev-os.js --help | grep -q "v$VERSION"; then
214
+ echo -e " ${RED}✗${NC} CLI help does not display v$VERSION"
212
215
  FAIL=$((FAIL + 1))
213
216
  else
214
- echo -e " ${GREEN}✓${NC} CLI help displays v0.5.1"
217
+ echo -e " ${GREEN}✓${NC} CLI help displays v$VERSION"
215
218
  PASS=$((PASS + 1))
216
219
  fi
217
220
 
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
+ # Verify npm pack dry-run shows correct version dynamically
222
+ if ! npm pack --dry-run 2>&1 | grep -q "multimodel-dev-os@$VERSION\|multimodel-dev-os-$VERSION.tgz"; then
223
+ echo -e " ${RED}✗${NC} npm pack --dry-run does not report version $VERSION"
221
224
  FAIL=$((FAIL + 1))
222
225
  else
223
- echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version 0.5.1"
226
+ echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version $VERSION"
224
227
  PASS=$((PASS + 1))
225
228
  fi
226
229