ai-sdk-provider-claude-code 2.0.0 → 2.0.2

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/README.md +12 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,21 +15,27 @@
15
15
 
16
16
  ## Version Compatibility
17
17
 
18
- | Provider Version | AI SDK Version | Underlying SDK | NPM Tag | Status | Branch |
19
- | ---------------- | -------------- | ------------------------------------ | ----------- | ------ | --------------------------------------------------------------------------------------- |
20
- | 2.x.x | v5 | `@anthropic-ai/claude-agent-sdk` | `latest` | Stable | `main` |
21
- | 1.x.x | v5 | `@anthropic-ai/claude-code` (legacy) | `v1` | Stable | [`v1`](https://github.com/ben-vargas/ai-sdk-provider-claude-code/tree/v1) |
22
- | 0.x.x | v4 | `@anthropic-ai/claude-code` | `ai-sdk-v4` | Legacy | [`ai-sdk-v4`](https://github.com/ben-vargas/ai-sdk-provider-claude-code/tree/ai-sdk-v4) |
18
+ | Provider Version | AI SDK Version | Underlying SDK | NPM Tag | Status | Branch |
19
+ | ---------------- | -------------- | ------------------------------------ | -------------------- | ------ | --------------------------------------------------------------------------------------- |
20
+ | 2.x.x | v5 | `@anthropic-ai/claude-agent-sdk` | `latest` | Stable | `main` |
21
+ | 1.x.x | v5 | `@anthropic-ai/claude-code` (legacy) | `v1-claude-code-sdk` | Stable | [`v1`](https://github.com/ben-vargas/ai-sdk-provider-claude-code/tree/v1) |
22
+ | 0.x.x | v4 | `@anthropic-ai/claude-code` | `ai-sdk-v4` | Legacy | [`ai-sdk-v4`](https://github.com/ben-vargas/ai-sdk-provider-claude-code/tree/ai-sdk-v4) |
23
23
 
24
24
  ### Installing the Right Version
25
25
 
26
- **For AI SDK v5 (recommended):**
26
+ **For AI SDK v5 with Claude Agent SDK (recommended):**
27
27
 
28
28
  ```bash
29
29
  npm install ai-sdk-provider-claude-code ai
30
30
  # or explicitly: npm install ai-sdk-provider-claude-code@latest
31
31
  ```
32
32
 
33
+ **For AI SDK v5 with Claude Code SDK (legacy):**
34
+
35
+ ```bash
36
+ npm install ai-sdk-provider-claude-code@v1-claude-code-sdk ai
37
+ ```
38
+
33
39
  **For AI SDK v4 (legacy):**
34
40
 
35
41
  ````bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-sdk-provider-claude-code",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "AI SDK v5 provider for Claude via Claude Agent SDK (use Pro/Max subscription)",
5
5
  "keywords": [
6
6
  "ai-sdk",