📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-08-24 09:30:03 +08:00
parent 14e7209e78
commit 5d88510274
153 changed files with 3428 additions and 1203 deletions
+48
View File
@@ -15,6 +15,8 @@ import {
} from "./frontmatter.mjs";
import { GUIDE_BY_MODE, VALID_MODES } from "./assemble-prompt.mjs";
import { versionRefs } from "./version-refs.mjs";
import { platformDocs, setupGuides, linkedSetupGuides, parseInstallerPlatforms } from "./platforms.mjs";
import { render as renderStarHistory, readStamps as readStarStamps } from "./gen-star-history.mjs";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const root = path.resolve(__dirname, "..");
@@ -325,6 +327,49 @@ function checkAgentsDocs() {
}
}
// Every docs/<name>-setup.md must be linked from all six READMEs and the
// getting-started table. A platform added to one language and forgotten in the
// others was previously caught only by hand.
function checkPlatformDocs() {
const guides = setupGuides(root);
check(guides.length > 0, "docs/ should contain at least one <platform>-setup.md guide");
for (const file of platformDocs(root)) {
const linked = linkedSetupGuides(readText(file));
for (const guide of guides) {
check(linked.includes(guide), `${file} is missing an install-table link to docs/${guide}`);
}
for (const link of linked) {
check(guides.includes(link), `${file} links to docs/${link}, which does not exist`);
}
}
}
function checkInstallerPlatforms() {
const { declared, global: globalArms, project } = parseInstallerPlatforms(readText("scripts/install.sh"));
check(declared.length > 0, "scripts/install.sh should declare a PLATFORMS list");
for (const [arms, fn] of [[globalArms, "global_dir"], [project, "project_dir"]]) {
for (const platform of declared) {
check(arms.includes(platform), `scripts/install.sh ${fn}() has no path for PLATFORMS entry '${platform}'`);
}
for (const platform of arms) {
check(declared.includes(platform), `scripts/install.sh ${fn}() maps '${platform}', which PLATFORMS omits`);
}
}
}
// assets/star-history.svg is a pure function of assets/star-history.json, so a
// mismatch means the chart was hand-edited or the data moved without a redraw.
// Re-rendering here needs no credentials, which is the point of committing the
// data rather than the drawing alone.
function checkStarHistory() {
check(
renderStarHistory(readStarStamps()) === readText("assets/star-history.svg"),
"assets/star-history.svg does not match assets/star-history.json — rerun `node scripts/gen-star-history.mjs --render-only`",
);
}
function checkSecurity() {
const security = readText("SECURITY.md");
check(!security.includes("<!--"), "SECURITY.md still contains placeholder content");
@@ -373,7 +418,10 @@ checkStepAlignment();
checkEvalSuite();
checkContributing();
checkAgentsDocs();
checkPlatformDocs();
checkInstallerPlatforms();
checkSecurity();
checkStarHistory();
checkHookOutput();
// ── Report ─────────────────────────────────────────────────────────────────