@ai-sdk/policy-opa 1.0.0-canary.9 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,141 @@
1
1
  # @ai-sdk/policy
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ai@7.0.1
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - a94c258: Introduce `@ai-sdk/policy-opa`, an Open Policy Agent adapter for the
14
+ `toolApproval` callback on `generateText` / `streamText` / `ToolLoopAgent`.
15
+
16
+ Everything is exported from the package root. The engine-neutral core is a
17
+ `PolicyClient` interface, `shadow()` for safe policy rollout with
18
+ fire-and-forget telemetry, and `wrapMcpTools()` for making approval
19
+ configuration total over a discovered tool surface. The OPA layer ships
20
+ `opaPolicy` / `optionalOpaPolicy` (Rego-as-code authorization),
21
+ `wasmPolicyClient` and `httpPolicyClient` backends (lazy-loaded optional peer
22
+ deps), `opaCapabilityMiddleware` for fail-closed model-level tool filtering,
23
+ and `normalizeOpaDecision` for users who call OPA themselves.
24
+
25
+ Sits entirely on top of the public SDK surface, with no changes to `ai`,
26
+ `@ai-sdk/provider`, or `@ai-sdk/provider-utils`. Transitive enforcement
27
+ (coarse dispatchers like `bash` / `http.request` / MCP proxies) is handled
28
+ inside the user's `toolApproval` by parsing the dispatcher input and routing
29
+ to the same Rego rule that gates the direct tool.
30
+
31
+ ### Patch Changes
32
+
33
+ - 9a1b0ea: Initial release
34
+ - b8396f0: trigger initial beta release
35
+
36
+ ## 1.0.0-beta.24
37
+
38
+ ### Patch Changes
39
+
40
+ - ai@7.0.0-beta.187
41
+
42
+ ## 1.0.0-beta.23
43
+
44
+ ### Patch Changes
45
+
46
+ - ai@7.0.0-beta.186
47
+
48
+ ## 1.0.0-beta.22
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [75763b0]
53
+ - ai@7.0.0-beta.185
54
+
55
+ ## 1.0.0-beta.21
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [0416e3e]
60
+ - @ai-sdk/provider@4.0.0-beta.20
61
+ - ai@7.0.0-beta.184
62
+ - @ai-sdk/provider-utils@5.0.0-beta.50
63
+
64
+ ## 1.0.0-beta.20
65
+
66
+ ### Patch Changes
67
+
68
+ - ai@7.0.0-beta.183
69
+
70
+ ## 1.0.0-beta.19
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [cc6ab90]
75
+ - ai@7.0.0-beta.182
76
+
77
+ ## 1.0.0-beta.18
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [6a2caf9]
82
+ - ai@7.0.0-beta.181
83
+
84
+ ## 1.0.0-beta.17
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [81a284b]
89
+ - ai@7.0.0-beta.180
90
+
91
+ ## 1.0.0-beta.16
92
+
93
+ ### Patch Changes
94
+
95
+ - ai@7.0.0-beta.179
96
+
97
+ ## 1.0.0-beta.15
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [b097c52]
102
+ - ai@7.0.0-beta.178
103
+
104
+ ## 1.0.0-beta.14
105
+
106
+ ### Patch Changes
107
+
108
+ - b8396f0: trigger initial beta release
109
+ - Updated dependencies [b8396f0]
110
+ - @ai-sdk/provider-utils@5.0.0-beta.49
111
+ - @ai-sdk/provider@4.0.0-beta.19
112
+ - ai@7.0.0-beta.177
113
+
114
+ ## 1.0.0-canary.13
115
+
116
+ ### Patch Changes
117
+
118
+ - ai@7.0.0-canary.176
119
+
120
+ ## 1.0.0-canary.12
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [6ec57f5]
125
+ - ai@7.0.0-canary.175
126
+
127
+ ## 1.0.0-canary.11
128
+
129
+ ### Patch Changes
130
+
131
+ - ai@7.0.0-canary.174
132
+
133
+ ## 1.0.0-canary.10
134
+
135
+ ### Patch Changes
136
+
137
+ - ai@7.0.0-canary.173
138
+
3
139
  ## 1.0.0-canary.9
4
140
 
5
141
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/policy-opa",
3
- "version": "1.0.0-canary.9",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -25,20 +25,20 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@ai-sdk/provider": "4.0.0-canary.18",
29
- "@ai-sdk/provider-utils": "5.0.0-canary.48"
28
+ "@ai-sdk/provider": "4.0.0",
29
+ "@ai-sdk/provider-utils": "5.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "22.19.19",
33
33
  "tsup": "^8.5.1",
34
34
  "typescript": "5.8.3",
35
35
  "@vercel/ai-tsconfig": "0.0.0",
36
- "ai": "7.0.0-canary.172"
36
+ "ai": "7.0.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@open-policy-agent/opa": "^1.0.0",
40
40
  "@open-policy-agent/opa-wasm": "^1.0.0",
41
- "ai": "7.0.0-canary.172"
41
+ "ai": "7.0.1"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@open-policy-agent/opa": {