@ai-sdk/policy-opa
1.0.177 · 18 Nov 2026Apache-2.025.7k / weekRepositoryHomepagenpmAtom feed
169 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.0.20 – 1.0.6948 releases that only update dependenciesai 7.0.69@ai-sdk/provider-utils 5.0.27@ai-sdk/provider 4.0.7Show each
- 1.0.6919 Aug 2026ai 7.0.69
- 1.0.6818 Aug 2026ai 7.0.68
- 1.0.6718 Aug 2026ai 7.0.67
- 1.0.6614 Aug 2026ai 7.0.66
- 1.0.6513 Aug 2026ai 7.0.65
- 1.0.6412 Aug 2026ai 7.0.64
- 1.0.6312 Aug 2026ai 7.0.63
- 1.0.6211 Aug 2026ai 7.0.62
- 1.0.6111 Aug 2026ai 7.0.61@ai-sdk/provider-utils 5.0.27
- 1.0.6011 Aug 2026ai 7.0.60
- 1.0.5910 Aug 2026@ai-sdk/provider-utils 5.0.26ai 7.0.59
- 1.0.587 Aug 2026ai 7.0.58@ai-sdk/provider 4.0.7@ai-sdk/provider-utils 5.0.25
- 1.0.577 Aug 2026@ai-sdk/provider-utils 5.0.24ai 7.0.57
- 1.0.567 Aug 2026ai 7.0.56
- 1.0.556 Aug 2026@ai-sdk/provider 4.0.6ai 7.0.55@ai-sdk/provider-utils 5.0.23
- 1.0.546 Aug 2026ai 7.0.54
- 1.0.524 Aug 2026ai 7.0.52@ai-sdk/provider-utils 5.0.21
- 1.0.514 Aug 2026@ai-sdk/provider-utils 5.0.20ai 7.0.51
- 1.0.503 Aug 2026@ai-sdk/provider 4.0.5ai 7.0.50@ai-sdk/provider-utils 5.0.19
- 1.0.493 Aug 2026ai 7.0.49
- 1.0.481 Aug 2026ai 7.0.48
- 1.0.4731 Jul 2026@ai-sdk/provider-utils 5.0.18ai 7.0.47
- 1.0.4631 Jul 2026ai 7.0.46
- 1.0.4531 Jul 2026ai 7.0.45@ai-sdk/provider-utils 5.0.17
- 1.0.4431 Jul 2026ai 7.0.44
- 1.0.4330 Jul 2026@ai-sdk/provider-utils 5.0.16ai 7.0.43
- 1.0.4229 Jul 2026@ai-sdk/provider-utils 5.0.15ai 7.0.42
- 1.0.4128 Jul 2026ai 7.0.41
- 1.0.4028 Jul 2026ai 7.0.40
- 1.0.3928 Jul 2026@ai-sdk/provider-utils 5.0.14ai 7.0.39
- 1.0.3827 Jul 2026ai 7.0.38@ai-sdk/provider 4.0.4@ai-sdk/provider-utils 5.0.13
- 1.0.3723 Jul 2026ai 7.0.37
- 1.0.3623 Jul 2026ai 7.0.36
- 1.0.3522 Jul 2026ai 7.0.35
- 1.0.3421 Jul 2026ai 7.0.34
- 1.0.3321 Jul 2026@ai-sdk/provider-utils 5.0.12ai 7.0.33
- 1.0.3220 Jul 2026ai 7.0.32
- 1.0.3117 Jul 2026ai 7.0.31@ai-sdk/provider-utils 5.0.11
- 1.0.3016 Jul 2026ai 7.0.30
- 1.0.2915 Jul 2026ai 7.0.29
- 1.0.2814 Jul 2026ai 7.0.28
- 1.0.2714 Jul 2026ai 7.0.27@ai-sdk/provider-utils 5.0.10
- 1.0.2613 Jul 2026ai 7.0.26
- 1.0.2513 Jul 2026@ai-sdk/provider-utils 5.0.9ai 7.0.25
- 1.0.2313 Jul 2026ai 7.0.23
- 1.0.2210 Jul 2026ai 7.0.22
- 1.0.2110 Jul 2026ai 7.0.21
- 1.0.2010 Jul 2026ai 7.0.20
1.0.19
9 Jul 2026Use own-property checks when resolving per-tool approvals so tool names and approval ids that match inherited object properties (e.g.
constructor,toString,valueOf,__proto__) are treated as unconfigured/absent.wrapMcpTools: per-tool approval functions now fail closed. In the per-tool map form, a per-tool approval function that returns a "no opinion" result (not-applicableorundefined) is now forced through the configured fallback (user-approvalby default), matching the generic-function form. Previously such a result passed through and the tool resolved tonot-applicable, letting it run without an approval request. Static per-tool statuses the caller configured explicitly are unchanged.
Patch Changes
Use own-property checks when resolving per-tool approvals so tool names and approval ids that match inherited object properties (e.g.
constructor,toString,valueOf,__proto__) are treated as unconfigured/absent.@ai-sdk/policy-opa:wrapMcpToolsbuilds its per-tool map with a null prototype and reads supplied approvals via an own-property check, andshadowguards its per-tool map lookup the same way.ai: tool and tool-context lookups keyed by a model- or client-supplied name now go through an own-property check (getOwn), so a name matching an inherited object property resolves to "no such tool"/"unconfigured" instead of a prototype value. This covers the approval path (per-tool approval resolution and replay re-validation) as well as tool-call parsing, execution, streaming callbacks, and UI message conversion/validation. The human-in-the-loop approval matching (collectToolApprovals) and streaming tool-name maps are built with a null prototype so a client-supplied id that matches an inherited property no longer slips past the "unknown approval" / "tool call not found" guards.
wrapMcpTools: per-tool approval functions now fail closed. In the per-tool map form, a per-tool approval function that returns a "no opinion" result (not-applicableorundefined) is now forced through the configured fallback (user-approvalby default), matching the generic-function form. Previously such a result passed through and the tool resolved tonot-applicable, letting it run without an approval request. Static per-tool statuses the caller configured explicitly are unchanged.
1.0.18
8 Jul 2026Only updates dependencies:@ai-sdk/provider-utils 5.0.6ai 7.0.18
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.