@ai-sdk/policy-opa 1.0.119 → 1.0.122

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @ai-sdk/policy
2
2
 
3
+ ## 1.0.122
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f3575f8]
8
+ - Updated dependencies [27ab8d4]
9
+ - ai@7.0.122
10
+
11
+ ## 1.0.121
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [c5e90bb]
16
+ - Updated dependencies [c2511c1]
17
+ - Updated dependencies [868c475]
18
+ - Updated dependencies [119536f]
19
+ - Updated dependencies [9941f32]
20
+ - ai@7.0.121
21
+ - @ai-sdk/provider-utils@5.0.51
22
+
23
+ ## 1.0.120
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [b032d70]
28
+ - Updated dependencies [e21b98b]
29
+ - ai@7.0.120
30
+
3
31
  ## 1.0.119
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -63,7 +63,7 @@ const toolApproval = opaPolicy({
63
63
 
64
64
  // 3. Pass it to generateText. Everything else is normal.
65
65
  const result = await generateText({
66
- model: anthropic('claude-sonnet-5'),
66
+ model: anthropic('claude-sonnet-5-5'),
67
67
  tools: { git, bash, queryLogs },
68
68
  toolApproval,
69
69
  prompt: 'find the failing test and push the fix',
@@ -559,7 +559,7 @@ import { wasmPolicyClient, opaCapabilityMiddleware } from '@ai-sdk/policy-opa';
559
559
  const client = await wasmPolicyClient({ wasm });
560
560
 
561
561
  const wrappedModel = wrapLanguageModel({
562
- model: anthropic('claude-sonnet-5'),
562
+ model: anthropic('claude-sonnet-5-5'),
563
563
  middleware: opaCapabilityMiddleware({
564
564
  client,
565
565
  path: 'agent/tools/allowed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/policy-opa",
3
- "version": "1.0.119",
3
+ "version": "1.0.122",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@ai-sdk/provider": "4.0.19",
29
- "@ai-sdk/provider-utils": "5.0.50"
29
+ "@ai-sdk/provider-utils": "5.0.51"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "22.19.19",
33
33
  "@vercel/ai-tsconfig": "0.0.0",
34
- "ai": "7.0.119",
34
+ "ai": "7.0.122",
35
35
  "tsup": "^8.5.1",
36
36
  "typescript": "5.8.3"
37
37
  },
38
38
  "peerDependencies": {
39
- "ai": "7.0.119",
39
+ "ai": "7.0.122",
40
40
  "@open-policy-agent/opa": "^1.0.0",
41
41
  "@open-policy-agent/opa-wasm": "^1.0.0"
42
42
  },