@aigne/transport 0.7.4 → 0.9.0
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,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.8.0...transport-v0.9.0) (2025-07-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **core:** add standard userId/sessionId in userContext ([#219](https://github.com/AIGNE-io/aigne-framework/issues/219)) ([58e5804](https://github.com/AIGNE-io/aigne-framework/commit/58e5804cf08b1d2fa6e232646fadd70b5db2e007))
|
|
9
|
+
* **memory:** add support for AgenticMemory & some improvements for DefaultMemory ([#224](https://github.com/AIGNE-io/aigne-framework/issues/224)) ([f4a08af](https://github.com/AIGNE-io/aigne-framework/commit/f4a08aff935205c62615c060763c835a9579607d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @aigne/openai bumped to 0.7.1
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @aigne/agent-library bumped to 1.19.0
|
|
19
|
+
* @aigne/core bumped to 1.31.0
|
|
20
|
+
* @aigne/test-utils bumped to 0.5.1
|
|
21
|
+
|
|
22
|
+
## [0.8.0](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.7.4...transport-v0.8.0) (2025-07-03)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* upgrade dependencies and adapt code to breaking changes ([#216](https://github.com/AIGNE-io/aigne-framework/issues/216)) ([f215ced](https://github.com/AIGNE-io/aigne-framework/commit/f215cedc1a57e321164064c33316e496eae8d25f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* The following workspace dependencies were updated
|
|
33
|
+
* dependencies
|
|
34
|
+
* @aigne/openai bumped to 0.7.0
|
|
35
|
+
* devDependencies
|
|
36
|
+
* @aigne/agent-library bumped to 1.18.0
|
|
37
|
+
* @aigne/core bumped to 1.30.0
|
|
38
|
+
* @aigne/test-utils bumped to 0.5.0
|
|
39
|
+
|
|
3
40
|
## [0.7.4](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.7.3...transport-v0.7.4) (2025-07-02)
|
|
4
41
|
|
|
5
42
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import type { AIGNE,
|
|
2
|
+
import type { AIGNE, InvokeOptions, UserContext } from "@aigne/core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* Schema for validating agent invocation payloads.
|
|
@@ -30,29 +30,29 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
30
30
|
content: object;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
streaming?: boolean | undefined;
|
|
33
|
-
userContext?: Record<string, unknown> | undefined;
|
|
34
33
|
returnProgressChunks?: boolean | undefined;
|
|
34
|
+
userContext?: Record<string, unknown> | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
memories?: {
|
|
37
37
|
content: object;
|
|
38
38
|
}[] | null | undefined;
|
|
39
39
|
streaming?: boolean | null | undefined;
|
|
40
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
41
40
|
returnProgressChunks?: boolean | null | undefined;
|
|
41
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
42
42
|
}>>>, {
|
|
43
43
|
memories?: {
|
|
44
44
|
content: object;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
streaming?: boolean | undefined;
|
|
47
|
-
userContext?: Record<string, unknown> | undefined;
|
|
48
47
|
returnProgressChunks?: boolean | undefined;
|
|
48
|
+
userContext?: Record<string, unknown> | undefined;
|
|
49
49
|
} | undefined, {
|
|
50
50
|
memories?: {
|
|
51
51
|
content: object;
|
|
52
52
|
}[] | null | undefined;
|
|
53
53
|
streaming?: boolean | null | undefined;
|
|
54
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
55
54
|
returnProgressChunks?: boolean | null | undefined;
|
|
55
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
@@ -62,8 +62,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
62
62
|
content: object;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
streaming?: boolean | undefined;
|
|
65
|
-
userContext?: Record<string, unknown> | undefined;
|
|
66
65
|
returnProgressChunks?: boolean | undefined;
|
|
66
|
+
userContext?: Record<string, unknown> | undefined;
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
@@ -73,8 +73,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
73
73
|
content: object;
|
|
74
74
|
}[] | null | undefined;
|
|
75
75
|
streaming?: boolean | null | undefined;
|
|
76
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
77
76
|
returnProgressChunks?: boolean | null | undefined;
|
|
77
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
/**
|
|
@@ -93,7 +93,7 @@ export interface AIGNEHTTPServerOptions {
|
|
|
93
93
|
*/
|
|
94
94
|
maximumBodySize?: string;
|
|
95
95
|
}
|
|
96
|
-
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<
|
|
96
|
+
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<InvokeOptions<U>, "returnProgressChunks" | "userContext" | "memories"> {
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* AIGNEHTTPServer provides HTTP API access to AIGNE capabilities.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import type { AIGNE,
|
|
2
|
+
import type { AIGNE, InvokeOptions, UserContext } from "@aigne/core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* Schema for validating agent invocation payloads.
|
|
@@ -30,29 +30,29 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
30
30
|
content: object;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
streaming?: boolean | undefined;
|
|
33
|
-
userContext?: Record<string, unknown> | undefined;
|
|
34
33
|
returnProgressChunks?: boolean | undefined;
|
|
34
|
+
userContext?: Record<string, unknown> | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
memories?: {
|
|
37
37
|
content: object;
|
|
38
38
|
}[] | null | undefined;
|
|
39
39
|
streaming?: boolean | null | undefined;
|
|
40
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
41
40
|
returnProgressChunks?: boolean | null | undefined;
|
|
41
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
42
42
|
}>>>, {
|
|
43
43
|
memories?: {
|
|
44
44
|
content: object;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
streaming?: boolean | undefined;
|
|
47
|
-
userContext?: Record<string, unknown> | undefined;
|
|
48
47
|
returnProgressChunks?: boolean | undefined;
|
|
48
|
+
userContext?: Record<string, unknown> | undefined;
|
|
49
49
|
} | undefined, {
|
|
50
50
|
memories?: {
|
|
51
51
|
content: object;
|
|
52
52
|
}[] | null | undefined;
|
|
53
53
|
streaming?: boolean | null | undefined;
|
|
54
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
55
54
|
returnProgressChunks?: boolean | null | undefined;
|
|
55
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
@@ -62,8 +62,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
62
62
|
content: object;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
streaming?: boolean | undefined;
|
|
65
|
-
userContext?: Record<string, unknown> | undefined;
|
|
66
65
|
returnProgressChunks?: boolean | undefined;
|
|
66
|
+
userContext?: Record<string, unknown> | undefined;
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
@@ -73,8 +73,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
73
73
|
content: object;
|
|
74
74
|
}[] | null | undefined;
|
|
75
75
|
streaming?: boolean | null | undefined;
|
|
76
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
77
76
|
returnProgressChunks?: boolean | null | undefined;
|
|
77
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
/**
|
|
@@ -93,7 +93,7 @@ export interface AIGNEHTTPServerOptions {
|
|
|
93
93
|
*/
|
|
94
94
|
maximumBodySize?: string;
|
|
95
95
|
}
|
|
96
|
-
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<
|
|
96
|
+
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<InvokeOptions<U>, "returnProgressChunks" | "userContext" | "memories"> {
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* AIGNEHTTPServer provides HTTP API access to AIGNE capabilities.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import type { AIGNE,
|
|
2
|
+
import type { AIGNE, InvokeOptions, UserContext } from "@aigne/core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
/**
|
|
5
5
|
* Schema for validating agent invocation payloads.
|
|
@@ -30,29 +30,29 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
30
30
|
content: object;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
streaming?: boolean | undefined;
|
|
33
|
-
userContext?: Record<string, unknown> | undefined;
|
|
34
33
|
returnProgressChunks?: boolean | undefined;
|
|
34
|
+
userContext?: Record<string, unknown> | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
memories?: {
|
|
37
37
|
content: object;
|
|
38
38
|
}[] | null | undefined;
|
|
39
39
|
streaming?: boolean | null | undefined;
|
|
40
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
41
40
|
returnProgressChunks?: boolean | null | undefined;
|
|
41
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
42
42
|
}>>>, {
|
|
43
43
|
memories?: {
|
|
44
44
|
content: object;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
streaming?: boolean | undefined;
|
|
47
|
-
userContext?: Record<string, unknown> | undefined;
|
|
48
47
|
returnProgressChunks?: boolean | undefined;
|
|
48
|
+
userContext?: Record<string, unknown> | undefined;
|
|
49
49
|
} | undefined, {
|
|
50
50
|
memories?: {
|
|
51
51
|
content: object;
|
|
52
52
|
}[] | null | undefined;
|
|
53
53
|
streaming?: boolean | null | undefined;
|
|
54
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
55
54
|
returnProgressChunks?: boolean | null | undefined;
|
|
55
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
56
56
|
} | null | undefined>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
agent: string;
|
|
@@ -62,8 +62,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
62
62
|
content: object;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
streaming?: boolean | undefined;
|
|
65
|
-
userContext?: Record<string, unknown> | undefined;
|
|
66
65
|
returnProgressChunks?: boolean | undefined;
|
|
66
|
+
userContext?: Record<string, unknown> | undefined;
|
|
67
67
|
} | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
agent: string;
|
|
@@ -73,8 +73,8 @@ export declare const invokePayloadSchema: z.ZodObject<{
|
|
|
73
73
|
content: object;
|
|
74
74
|
}[] | null | undefined;
|
|
75
75
|
streaming?: boolean | null | undefined;
|
|
76
|
-
userContext?: Record<string, unknown> | null | undefined;
|
|
77
76
|
returnProgressChunks?: boolean | null | undefined;
|
|
77
|
+
userContext?: Record<string, unknown> | null | undefined;
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
/**
|
|
@@ -93,7 +93,7 @@ export interface AIGNEHTTPServerOptions {
|
|
|
93
93
|
*/
|
|
94
94
|
maximumBodySize?: string;
|
|
95
95
|
}
|
|
96
|
-
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<
|
|
96
|
+
export interface AIGNEHTTPServerInvokeOptions<U extends UserContext = UserContext> extends Pick<InvokeOptions<U>, "returnProgressChunks" | "userContext" | "memories"> {
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* AIGNEHTTPServer provides HTTP API access to AIGNE capabilities.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/transport",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "AIGNE Transport SDK providing HTTP client and server implementations for communication between AIGNE components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,24 +39,24 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@aigne/openai": "^0.
|
|
42
|
+
"@aigne/openai": "^0.7.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/bun": "^1.2.
|
|
46
|
-
"@types/express": "^5.0.
|
|
47
|
-
"@types/node": "^
|
|
45
|
+
"@types/bun": "^1.2.17",
|
|
46
|
+
"@types/express": "^5.0.3",
|
|
47
|
+
"@types/node": "^24.0.10",
|
|
48
48
|
"compression": "^1.8.0",
|
|
49
49
|
"detect-port": "^2.1.0",
|
|
50
50
|
"express": "^5.1.0",
|
|
51
51
|
"fast-deep-equal": "^3.1.3",
|
|
52
|
-
"hono": "^4.
|
|
52
|
+
"hono": "^4.8.3",
|
|
53
53
|
"npm-run-all": "^4.1.5",
|
|
54
54
|
"rimraf": "^6.0.1",
|
|
55
55
|
"typescript": "^5.8.3",
|
|
56
56
|
"uuid": "^11.1.0",
|
|
57
|
-
"@aigne/agent-library": "^1.
|
|
58
|
-
"@aigne/
|
|
59
|
-
"@aigne/
|
|
57
|
+
"@aigne/agent-library": "^1.19.0",
|
|
58
|
+
"@aigne/test-utils": "^0.5.1",
|
|
59
|
+
"@aigne/core": "^1.31.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"lint": "tsc --noEmit",
|