Repository navigation
@ai-sdk/policy-opa@1.0.180
·
2 commits
to main
since this release
Patch Changes
-
fac1d6a: fix(policy-opa): apply the
wrapMcpToolsfallback to every OPA evaluationWith
wrapMcpTools(tools, opaPolicy(...), { default: 'denied' }), a tool call that the policy did not match could still become approvable when the evaluation with the earlier tool calls of the same response asked for user approval. The fallback now applies to each evaluation before the decisions are compared, so hard allowlist mode denies such a call.- ai@7.0.180