Packages

@ai-sdk/policy-opa

1.0.177 · 18 Nov 2026Apache-2.025.7k / weekRepositoryHomepagenpmAtom feed

Your version

169 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.0.15 – 1.0.173 releases that only update dependenciesai 7.0.17Show each
  3. 1.0.14

    2 Jul 2026
    • Add experimental streaming transcription support for transcription models, including OpenAI gpt-realtime-whisper and xAI WebSocket STT.

  4. 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
  5. 1.0.0

    25 Jun 2026
    • Breaking

      Introduce @ai-sdk/policy-opa, an Open Policy Agent adapter for the
      toolApproval callback on generateText / streamText / ToolLoopAgent.

      Everything is exported from the package root. The engine-neutral core is a
      PolicyClient interface, shadow() for safe policy rollout with
      fire-and-forget telemetry, and wrapMcpTools() for making approval
      configuration total over a discovered tool surface. The OPA layer ships
      opaPolicy / optionalOpaPolicy (Rego-as-code authorization),
      wasmPolicyClient and httpPolicyClient backends (lazy-loaded optional peer
      deps), opaCapabilityMiddleware for fail-closed model-level tool filtering,
      and normalizeOpaDecision for 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 like bash / http.request / MCP proxies) is handled
      inside the user's toolApproval by parsing the dispatcher input and routing
      to the same Rego rule that gates the direct tool.

    • Initial release

    • Trigger initial beta release

  6. 0.0.x
  7. 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.