@kirkelabs/open-agent-access-fastify
v0.1.0
Published
Fastify hook for Open Agent Access policy enforcement.
Readme
@kirkelabs/open-agent-access-fastify
Fastify-compatible pre-handler hook for Open Agent Access.
import Fastify from "fastify";
import { createAgentAccessFastifyHook } from "@kirkelabs/open-agent-access-fastify";
const fastify = Fastify();
fastify.addHook("preHandler", createAgentAccessFastifyHook({
policyPath: "./agent-access.json",
receipts: { type: "jsonl", path: ".oaa/site-receipts.jsonl" }
}));The hook uses structural types to avoid locking the package to one Fastify version.
