@aigne/transport 0.4.3 → 0.5.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,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.3...transport-v0.5.0) (2025-06-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/openai bumped to 0.3.4
16
+ * devDependencies
17
+ * @aigne/core bumped to 1.22.0
18
+ * @aigne/test-utils bumped to 0.4.4
19
+
3
20
  ## [0.4.3](https://github.com/AIGNE-io/aigne-framework/compare/transport-v0.4.2...transport-v0.4.3) (2025-06-20)
4
21
 
5
22
 
@@ -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.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,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@aigne/openai": "^0.3.3"
42
+ "@aigne/openai": "^0.3.4"
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.22.0",
58
+ "@aigne/test-utils": "^0.4.4"
59
59
  },
60
60
  "scripts": {
61
61
  "lint": "tsc --noEmit",