multimodel-dev-os 0.6.0 → 0.7.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.
- package/README.md +33 -166
- package/assets/architecture-preview.svg +94 -0
- package/assets/social-preview.svg +72 -0
- package/assets/terminal-demo.svg +72 -0
- package/docs/.vitepress/config.js +4 -0
- package/docs/comparison.md +6 -6
- package/docs/demo.md +79 -0
- package/docs/index.md +11 -2
- package/docs/launch-checklist.md +47 -0
- package/docs/launch-kit.md +15 -25
- package/docs/public/assets/architecture-preview.svg +94 -0
- package/docs/public/assets/social-preview.svg +72 -0
- package/docs/public/assets/terminal-demo.svg +72 -0
- package/docs/quickstart.md +21 -30
- package/docs/release-template.md +74 -0
- package/docs/workflow-examples.md +72 -0
- package/package.json +3 -2
- package/scripts/verify.js +17 -16
- package/scripts/verify.sh +15 -12
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
|
|
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
|
-
|
|
205
|
-
|
|
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
|
|
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
|
|
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(
|
|
220
|
-
console.error(` ${RED}✗${NC} CLI help does not display
|
|
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
|
|
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
|
|
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(
|
|
235
|
-
console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version
|
|
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
|
-
|
|
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(
|
|
246
|
-
console.log(` ${GREEN}✓${NC} npm pack --dry-run reports version
|
|
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
|
|
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
|
-
#
|
|
201
|
-
|
|
202
|
-
|
|
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
|
|
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
|
|
210
|
-
if ! node bin/multimodel-dev-os.js --help | grep -q
|
|
211
|
-
echo -e " ${RED}✗${NC} CLI help does not display
|
|
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
|
|
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
|
|
219
|
-
if ! npm pack --dry-run 2>&1 | grep -q
|
|
220
|
-
echo -e " ${RED}✗${NC} npm pack --dry-run does not report version
|
|
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
|
|
226
|
+
echo -e " ${GREEN}✓${NC} npm pack --dry-run reports version $VERSION"
|
|
224
227
|
PASS=$((PASS + 1))
|
|
225
228
|
fi
|
|
226
229
|
|