@aigne/transport 0.15.14-beta.2 → 0.15.14-beta.3

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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.15.14-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.15.14-beta.2...transport-v0.15.14-beta.3) (2025-11-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **transport:** improve HTTP error status code validation ([#703](https://github.com/AIGNE-io/aigne-framework/issues/703)) ([76791d7](https://github.com/AIGNE-io/aigne-framework/commit/76791d760fc319c0c0edb82d19474d6141240a8e))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/openai bumped to 0.16.5-beta.3
16
+ * devDependencies
17
+ * @aigne/agent-library bumped to 1.21.51-beta.3
18
+ * @aigne/core bumped to 1.65.1-beta.3
19
+ * @aigne/default-memory bumped to 1.2.14-beta.3
20
+ * @aigne/test-utils bumped to 0.5.58-beta.3
21
+
3
22
  ## [0.15.14-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.15.14-beta.1...transport-v0.15.14-beta.2) (2025-11-04)
4
23
 
5
24
 
@@ -135,7 +135,12 @@ class AIGNEHTTPServer {
135
135
  }
136
136
  catch (error) {
137
137
  return new Response(JSON.stringify({ error: { message: error.message } }), {
138
- status: error instanceof error_js_1.ServerError ? error.status : 500,
138
+ status: "status" in error &&
139
+ typeof error.status === "number" &&
140
+ error.status >= 200 &&
141
+ error.status < 599
142
+ ? error.status
143
+ : 500,
139
144
  headers: { "Content-Type": "application/json" },
140
145
  });
141
146
  }
@@ -129,7 +129,12 @@ export class AIGNEHTTPServer {
129
129
  }
130
130
  catch (error) {
131
131
  return new Response(JSON.stringify({ error: { message: error.message } }), {
132
- status: error instanceof ServerError ? error.status : 500,
132
+ status: "status" in error &&
133
+ typeof error.status === "number" &&
134
+ error.status >= 200 &&
135
+ error.status < 599
136
+ ? error.status
137
+ : 500,
133
138
  headers: { "Content-Type": "application/json" },
134
139
  });
135
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/transport",
3
- "version": "0.15.14-beta.2",
3
+ "version": "0.15.14-beta.3",
4
4
  "description": "AIGNE Transport SDK providing HTTP client and server implementations for communication between AIGNE components",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -46,7 +46,7 @@
46
46
  "p-retry": "^7.0.0",
47
47
  "raw-body": "^3.0.1",
48
48
  "zod": "^3.25.67",
49
- "@aigne/openai": "^0.16.5-beta.2"
49
+ "@aigne/openai": "^0.16.5-beta.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@aigne/uuid": "^13.0.1",
@@ -61,10 +61,10 @@
61
61
  "npm-run-all": "^4.1.5",
62
62
  "rimraf": "^6.0.1",
63
63
  "typescript": "^5.9.2",
64
- "@aigne/agent-library": "^1.21.51-beta.2",
65
- "@aigne/core": "^1.65.1-beta.2",
66
- "@aigne/default-memory": "^1.2.14-beta.2",
67
- "@aigne/test-utils": "^0.5.58-beta.2"
64
+ "@aigne/core": "^1.65.1-beta.3",
65
+ "@aigne/agent-library": "^1.21.51-beta.3",
66
+ "@aigne/default-memory": "^1.2.14-beta.3",
67
+ "@aigne/test-utils": "^0.5.58-beta.3"
68
68
  },
69
69
  "scripts": {
70
70
  "lint": "tsc --noEmit",