@aigne/transport 0.4.3 → 0.5.1

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,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.1](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.5.0...transport-v0.5.1) (2025-06-25)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/openai bumped to 0.3.5
11
+ * devDependencies
12
+ * @aigne/core bumped to 1.23.0
13
+ * @aigne/test-utils bumped to 0.4.5
14
+
15
+ ## [0.5.0](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.3...transport-v0.5.0) (2025-06-24)
16
+
17
+
18
+ ### Features
19
+
20
+ * support observability for cli and blocklet ([#155](https://github.com/AIGNE-io/aigne-framework/issues/155)) ([5baa705](https://github.com/AIGNE-io/aigne-framework/commit/5baa705a33cfdba1efc5ccbe18674c27513ca97d))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * The following workspace dependencies were updated
26
+ * dependencies
27
+ * @aigne/openai bumped to 0.3.4
28
+ * devDependencies
29
+ * @aigne/core bumped to 1.22.0
30
+ * @aigne/test-utils bumped to 0.4.4
31
+
3
32
  ## [0.4.3](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.2...transport-v0.4.3) (2025-06-20)
4
33
 
5
34
 
@@ -7,6 +7,7 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
7
7
  }
8
8
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
9
  client: AIGNEHTTPClient;
10
+ tag: string;
10
11
  constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
11
12
  invoke(input: I, options?: Partial<AgentInvokeOptions> & {
12
13
  streaming?: false;
@@ -5,6 +5,7 @@ const core_1 = require("@aigne/core");
5
5
  const stream_utils_js_1 = require("@aigne/core/utils/stream-utils.js");
6
6
  class ClientAgent extends core_1.Agent {
7
7
  client;
8
+ tag = "ClientAgent";
8
9
  constructor(client, options) {
9
10
  super(options);
10
11
  this.client = client;
@@ -44,6 +44,7 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
44
44
  */
45
45
  constructor(options: AIGNEHTTPClientOptions);
46
46
  id: string;
47
+ rootId: string;
47
48
  usage: ContextUsage;
48
49
  userContext: U;
49
50
  memories: Context["memories"];
@@ -30,6 +30,7 @@ class AIGNEHTTPClient {
30
30
  this.options = options;
31
31
  }
32
32
  id = (0, uuid_1.v7)();
33
+ rootId = this.id;
33
34
  usage = (0, core_1.newEmptyContextUsage)();
34
35
  userContext = {};
35
36
  memories = [];
@@ -7,6 +7,7 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
7
7
  }
8
8
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
9
  client: AIGNEHTTPClient;
10
+ tag: string;
10
11
  constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
11
12
  invoke(input: I, options?: Partial<AgentInvokeOptions> & {
12
13
  streaming?: false;
@@ -44,6 +44,7 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
44
44
  */
45
45
  constructor(options: AIGNEHTTPClientOptions);
46
46
  id: string;
47
+ rootId: string;
47
48
  usage: ContextUsage;
48
49
  userContext: U;
49
50
  memories: Context["memories"];
@@ -7,6 +7,7 @@ export interface ClientAgentOptions<I extends Message = Message, O extends Messa
7
7
  }
8
8
  export declare class ClientAgent<I extends Message = Message, O extends Message = Message> extends Agent<I, O> {
9
9
  client: AIGNEHTTPClient;
10
+ tag: string;
10
11
  constructor(client: AIGNEHTTPClient, options: ClientAgentOptions<I, O>);
11
12
  invoke(input: I, options?: Partial<AgentInvokeOptions> & {
12
13
  streaming?: false;
@@ -2,6 +2,7 @@ import { Agent, replaceTransferAgentToName, } from "@aigne/core";
2
2
  import { onAgentResponseStreamEnd } from "@aigne/core/utils/stream-utils.js";
3
3
  export class ClientAgent extends Agent {
4
4
  client;
5
+ tag = "ClientAgent";
5
6
  constructor(client, options) {
6
7
  super(options);
7
8
  this.client = client;
@@ -44,6 +44,7 @@ export declare class AIGNEHTTPClient<U extends UserContext = UserContext> implem
44
44
  */
45
45
  constructor(options: AIGNEHTTPClientOptions);
46
46
  id: string;
47
+ rootId: string;
47
48
  usage: ContextUsage;
48
49
  userContext: U;
49
50
  memories: Context["memories"];
@@ -27,6 +27,7 @@ export class AIGNEHTTPClient {
27
27
  this.options = options;
28
28
  }
29
29
  id = v7();
30
+ rootId = this.id;
30
31
  usage = newEmptyContextUsage();
31
32
  userContext = {};
32
33
  memories = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/transport",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
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,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@aigne/openai": "^0.3.3"
42
+ "@aigne/openai": "^0.3.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/bun": "^1.2.12",
@@ -54,8 +54,8 @@
54
54
  "rimraf": "^6.0.1",
55
55
  "typescript": "^5.8.3",
56
56
  "uuid": "^11.1.0",
57
- "@aigne/core": "^1.21.0",
58
- "@aigne/test-utils": "^0.4.3"
57
+ "@aigne/core": "^1.23.0",
58
+ "@aigne/test-utils": "^0.4.5"
59
59
  },
60
60
  "scripts": {
61
61
  "lint": "tsc --noEmit",