feat: implement native hooks runtime

This commit is contained in:
jb
2026-09-01 16:43:46 -04:00
parent 3a9e61c22d
commit 73fa3299bf
59 changed files with 3392 additions and 8 deletions
@@ -0,0 +1,8 @@
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;