📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-18 00:02:59 +00:00
parent 82f7c6e56a
commit 47ce7f78dc
1446 changed files with 141041 additions and 6442 deletions
@@ -0,0 +1,37 @@
const assert = require("assert");
const {
parseArgs,
validateRecords,
} = require("../validate_canonical_sync_pr.cjs");
assert.deepStrictEqual(parseArgs([]), { base: "origin/main", head: "HEAD", includeReleaseManaged: false });
assert.deepStrictEqual(parseArgs(["--base", "base", "--head", "head", "--include-release-managed"]), {
base: "base",
head: "head",
includeReleaseManaged: true,
});
assert.throws(() => parseArgs(["--base"]), /requires a Git revision/);
assert.throws(() => parseArgs(["--unknown"]), /Unknown argument/);
const managedFiles = ["skills_index.json", "plugins/", "README.md"];
const result = validateRecords(
[
{ old_path: "skills_index.json", new_path: "skills_index.json" },
{ old_path: null, new_path: "plugins/example/SKILL.md" },
],
managedFiles,
);
assert.deepStrictEqual(result.changedFiles, ["plugins/example/SKILL.md", "skills_index.json"]);
assert.throws(() => validateRecords([], managedFiles), /contains no changed files/);
assert.throws(
() => validateRecords([{ old_path: null, new_path: ".github/workflows/ci.yml" }], managedFiles),
/unmanaged or unsafe paths/,
);
assert.throws(
() => validateRecords([{ old_path: "plugins/example/SKILL.md", new_path: "../escape" }], managedFiles),
/unmanaged or unsafe paths/,
);
console.log("Canonical sync PR validation tests passed.");