@aigne/anthropic 0.8.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.2](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.8.1...anthropic-v0.8.2) (2025-07-14)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/core bumped to 1.33.2
11
+ * devDependencies
12
+ * @aigne/test-utils bumped to 0.5.7
13
+
14
+ ## [0.8.1](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.8.0...anthropic-v0.8.1) (2025-07-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **cli:** print pretty error message for cli ([#249](https://github.com/AIGNE-io/aigne-framework/issues/249)) ([d68e0f7](https://github.com/AIGNE-io/aigne-framework/commit/d68e0f7151259a05696de77d9f00793b6f5b36b2))
20
+ * **deps:** update deps to latest version ([#247](https://github.com/AIGNE-io/aigne-framework/issues/247)) ([3972f88](https://github.com/AIGNE-io/aigne-framework/commit/3972f887a9abff20c26da6b51c1071cbd54c0bf1))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * The following workspace dependencies were updated
26
+ * dependencies
27
+ * @aigne/core bumped to 1.33.1
28
+ * devDependencies
29
+ * @aigne/test-utils bumped to 0.5.6
30
+
3
31
  ## [0.8.0](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.7.2...anthropic-v0.8.0) (2025-07-10)
4
32
 
5
33
 
@@ -65,7 +65,7 @@ class AnthropicChatModel extends core_1.ChatModel {
65
65
  get client() {
66
66
  const apiKey = this.options?.apiKey || process.env.ANTHROPIC_API_KEY || process.env.CLAUDE_API_KEY;
67
67
  if (!apiKey)
68
- throw new Error("Api Key is required for AnthropicChatModel");
68
+ throw new Error("AnthropicChatModel requires an API key. Please provide it via `options.apiKey`, or set the `ANTHROPIC_API_KEY` or `CLAUDE_API_KEY` environment variable");
69
69
  this._client ??= new sdk_1.default({
70
70
  apiKey,
71
71
  ...this.options?.clientOptions,
@@ -59,7 +59,7 @@ export class AnthropicChatModel extends ChatModel {
59
59
  get client() {
60
60
  const apiKey = this.options?.apiKey || process.env.ANTHROPIC_API_KEY || process.env.CLAUDE_API_KEY;
61
61
  if (!apiKey)
62
- throw new Error("Api Key is required for AnthropicChatModel");
62
+ throw new Error("AnthropicChatModel requires an API key. Please provide it via `options.apiKey`, or set the `ANTHROPIC_API_KEY` or `CLAUDE_API_KEY` environment variable");
63
63
  this._client ??= new Anthropic({
64
64
  apiKey,
65
65
  ...this.options?.clientOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/anthropic",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "AIGNE Anthropic SDK for integrating with Claude AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,19 +32,19 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@anthropic-ai/sdk": "^0.55.1",
35
+ "@anthropic-ai/sdk": "^0.56.0",
36
36
  "ajv": "^8.17.1",
37
37
  "jaison": "^2.0.2",
38
38
  "zod": "^3.25.67",
39
- "@aigne/core": "^1.33.0"
39
+ "@aigne/core": "^1.33.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/bun": "^1.2.17",
43
- "@types/node": "^24.0.10",
42
+ "@types/bun": "^1.2.18",
43
+ "@types/node": "^24.0.12",
44
44
  "npm-run-all": "^4.1.5",
45
45
  "rimraf": "^6.0.1",
46
46
  "typescript": "^5.8.3",
47
- "@aigne/test-utils": "^0.5.5"
47
+ "@aigne/test-utils": "^0.5.7"
48
48
  },
49
49
  "scripts": {
50
50
  "lint": "tsc --noEmit",