@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.x · latest line
1.0.14
2 Jul 2026Add experimental streaming transcription support for transcription models, including OpenAI
gpt-realtime-whisperand xAI WebSocket STT.
Patch Changes
Add experimental streaming transcription support for transcription models, including OpenAI
gpt-realtime-whisperand xAI WebSocket STT.
1.0.1 – 1.0.1313 releases that only update dependenciesai 7.0.13@ai-sdk/provider-utils 5.0.4@ai-sdk/provider 4.0.1Show each
- 1.0.132 Jul 2026ai 7.0.13
- 1.0.122 Jul 2026ai 7.0.12@ai-sdk/provider-utils 5.0.4
- 1.0.111 Jul 2026ai 7.0.11
- 1.0.101 Jul 2026ai 7.0.10@ai-sdk/provider-utils 5.0.3
- 1.0.930 Jun 2026ai 7.0.9
- 1.0.830 Jun 2026@ai-sdk/provider 4.0.1ai 7.0.8@ai-sdk/provider-utils 5.0.2
- 1.0.729 Jun 2026ai 7.0.7
- 1.0.629 Jun 2026ai 7.0.6
- 1.0.529 Jun 2026ai 7.0.5
- 1.0.427 Jun 2026@ai-sdk/provider-utils 5.0.1ai 7.0.4
- 1.0.327 Jun 2026ai 7.0.3
- 1.0.225 Jun 2026ai 7.0.2
- 1.0.125 Jun 2026ai 7.0.1
1.0.0
25 Jun 2026- Breaking
Introduce
@ai-sdk/policy-opa, an Open Policy Agent adapter for thetoolApprovalcallback ongenerateText/streamText/ToolLoopAgent.Everything is exported from the package root. The engine-neutral core is a
PolicyClientinterface,shadow()for safe policy rollout with
fire-and-forget telemetry, andwrapMcpTools()for making approval
configuration total over a discovered tool surface. The OPA layer shipsopaPolicy/optionalOpaPolicy(Rego-as-code authorization),wasmPolicyClientandhttpPolicyClientbackends (lazy-loaded optional peer
deps),opaCapabilityMiddlewarefor fail-closed model-level tool filtering,
andnormalizeOpaDecisionfor users who call OPA themselves.Sits entirely on top of the public SDK surface, with no changes to
ai,@ai-sdk/provider, or@ai-sdk/provider-utils. Transitive enforcement
(coarse dispatchers likebash/http.request/ MCP proxies) is handled
inside the user'stoolApprovalby parsing the dispatcher input and routing
to the same Rego rule that gates the direct tool. Initial release
Trigger initial beta release
- 0.0.x
0.0.0
4 Jun 2026
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.