Skip to content

Commit ead57cd

Browse files
committed
Verify the Cursor archive against the listing version
1 parent 3662923 commit ead57cd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tools/verify-artifacts.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ import {
2222
sanitizeEvalReplay,
2323
} from "../packages/evals/src/index";
2424
import { copyCheckedRegularFile, extractCheckedTarGz } from "./archive-security";
25-
import { checkGeneratedTargetConformance } from "./check-target-conformance";
25+
import {
26+
CURSOR_LISTING_VERSION,
27+
checkGeneratedTargetConformance,
28+
} from "./check-target-conformance";
2629
import { buildArtifacts } from "./pack-artifacts";
2730

2831
const HOSTS = ["openai", "cursor", "claude", "copilot", "gemini"] as const;
@@ -1041,7 +1044,10 @@ const verifyTargets = (
10411044
const manifest = yield* readJson(path.join(stage, manifestPath)).pipe(
10421045
Effect.flatMap((value) => requiredObject(value, `${host} manifest`)),
10431046
);
1044-
if (manifest.version !== version) return yield* fail(`${host} manifest version is wrong`);
1047+
const manifestVersion = host === "cursor" ? CURSOR_LISTING_VERSION : version;
1048+
if (manifest.version !== manifestVersion) {
1049+
return yield* fail(`${host} manifest version is wrong`);
1050+
}
10451051
yield* exactDirectory(path.join(stage, "skills"), SKILLS, `${host} skills`);
10461052
const overlays = (yield* filesBelow(stage)).filter((file) =>
10471053
file.endsWith("/agents/openai.yaml"),

0 commit comments

Comments
 (0)