Skip to content

@ai-sdk/policy-opa@1.0.180

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:38
· 2 commits to main since this release
350725b

Patch Changes

  • fac1d6a: fix(policy-opa): apply the wrapMcpTools fallback to every OPA evaluation

    With 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