Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix: reject stale release template labels
sunsunsun7ff1403f6dfa
diff --git a/archify/test/release-identity.test.mjs b/archify/test/release-identity.test.mjsindex aee8cb97..ca7232c4 100644--- a/archify/test/release-identity.test.mjs+++ b/archify/test/release-identity.test.mjs@@ -483,3 +483,22 @@ test('generated public-page templates keep a development marker and version placfs.rmSync(fixture, { recursive: true, force: true });}});++test('stable public-page templates reject development labels on version-bearing fallbacks', () => {+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));+ try {+ writeValidStableFixture(fixture, {+ 'scripts/guide-template.html': [+ '<span data-i18n="versionLabel">Scenario guide / development / v[[ARCHIFY_VERSION]]</span>',+ "versionLabel:'Scenario guide / stable / v[[ARCHIFY_VERSION]]'",+ "versionLabel:'场景指南 / 稳定版 / v[[ARCHIFY_VERSION]]'",+ ].join('\n'),+ });++ const result = runCheck(fixture);+ assert.notEqual(result.status, 0);+ assert.match(result.stderr, /scripts\/guide-template\.html must not label \[\[ARCHIFY_VERSION\]\] as development or 开发版/);+ } finally {+ fs.rmSync(fixture, { recursive: true, force: true });+ }+});diff --git a/scripts/check-release-identity.mjs b/scripts/check-release-identity.mjsindex 013346f8..8aa7e0c8 100644--- a/scripts/check-release-identity.mjs+++ b/scripts/check-release-identity.mjs@@ -154,6 +154,12 @@ function checkIdentityTemplate(relativePath, source, isDevelopment) {if (!source.includes('[[ARCHIFY_VERSION]]') || !hasIdentity || hasHardcodedVersion) {fail(`${relativePath} must use [[ARCHIFY_VERSION]] with ${identity} labels, never a hardcoded package version.`);}+ const versionLines = source.split('\n').filter(line => line.includes('[[ARCHIFY_VERSION]]'));+ const staleIdentity = isDevelopment ? /\bstable\b|稳定版/i : /\bdevelopment\b|开发版/i;+ if (versionLines.some(line => staleIdentity.test(line))) {+ const staleLabel = isDevelopment ? 'stable or 稳定版' : 'development or 开发版';+ fail(`${relativePath} must not label [[ARCHIFY_VERSION]] as ${staleLabel}.`);+ }}function checkRoadmap(relativePath, source, version, isDevelopment) {