import type { VerificationPolicy } from "pi-native-hooks/policy"; const manifests = new Set(["package.json", "package-lock.json", "tsconfig.json"]); const behavior = (path: string) => /^(extensions|src|tests|examples|skills)\//.test(path) || manifests.has(path); const types = (path: string) => /\.tsx?$/.test(path) || manifests.has(path); export default { kind: "verification", id: "pi-native-hooks-verification", project: { matches: (project) => project.packageName === "pi-native-hooks" }, requirements: [ { id: "tests", command: "npm test", cwd: "project-root", affects: behavior }, { id: "typecheck", command: "npm run typecheck", cwd: "project-root", affects: types }, ] } satisfies VerificationPolicy;