release: WRNexusJS 0.3.1

This commit is contained in:
2026-07-22 18:42:20 +05:30
parent 07d8fb59d6
commit 304819dfe9
62 changed files with 158 additions and 103 deletions
+20 -3
View File
@@ -30,7 +30,7 @@ import { spawnSync } from "node:child_process";
import { dirname, join, resolve } from "node:path";
import { pathToFileURL } from "node:url";
import { AI_GUIDE, CLAUDE_MD } from "./ai-guide.ts";
import { inspectProject } from "./doctor.ts";
import { inspectProject, type DoctorCheck } from "./doctor.ts";
/** The version of the CLI currently running (its own package.json). */
function cliVersion(): string {
@@ -952,6 +952,15 @@ const MIGRATIONS: Migration[] = [
}
},
},
{
version: "0.3.1",
id: "pending-update-marker-verification-fix",
description:
"Allows warning-level doctor checks during pre-commit update verification so successfully verified migrations can commit their new version marker.",
apply() {
// CLI-only transaction fix. No generated application files require migration.
},
},
];
/** Release tooling uses this to require an explicit migration entry per version. */
@@ -1093,11 +1102,19 @@ export function verificationCommands(scripts: Record<string, string>): string[][
return commands;
}
export function blockingVerificationChecks(checks: DoctorCheck[]): DoctorCheck[] {
return checks.filter((check) => !check.ok && check.level !== "warning");
}
function verifyApp(app: UpdatedApp): boolean {
const health = inspectProject(app.root);
const failed = health.filter((check) => !check.ok && check.name !== "configuration");
const failed = blockingVerificationChecks(health);
if (failed.length) {
for (const check of failed) console.error(`${check.name}: ${check.detail}`);
for (const check of failed) {
console.error(`${check.name}: ${check.detail}`);
}
return false;
}