@blocksdiy/blocks-client-sdk 1.4.20 → 1.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.
@@ -8,6 +8,8 @@
8
8
  */
9
9
  export interface AgentChatConfig {
10
10
  agentChatId: string;
11
+ agentId?: string;
12
+ agentHarness?: string;
11
13
  }
12
14
  /**
13
15
  * AgentChat class for interacting with the agent chat
@@ -19,8 +21,10 @@ export interface AgentChatConfig {
19
21
  */
20
22
  export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
21
23
  private agentChatId;
24
+ private agentId?;
22
25
  private appId;
23
26
  private token?;
27
+ private agentHarness?;
24
28
  /**
25
29
  * Creates a new AgentChat instance
26
30
  * @param {ACC} config - Configuration for the agent chat
@@ -35,6 +39,8 @@ export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
35
39
  */
36
40
  getAgentChatComponentProps(): {
37
41
  agentChatId: string;
42
+ agentId: string | undefined;
43
+ agentHarness: string | undefined;
38
44
  appId: string;
39
45
  token: string | undefined;
40
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../src/AgentChat.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,qBAAa,SAAS,CAAC,GAAG,SAAS,eAAe,GAAG,eAAe;IAClE,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB;;;OAGG;gBACS,MAAM,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAM5E;;;OAGG;IACH,0BAA0B;;;;;CAO3B"}
1
+ {"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../src/AgentChat.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,qBAAa,SAAS,CAAC,GAAG,SAAS,eAAe,GAAG,eAAe;IAClE,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B;;;OAGG;gBACS,MAAM,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAQ5E;;;OAGG;IACH,0BAA0B;;;;;;;CAS3B"}
package/dist/AgentChat.js CHANGED
@@ -8,16 +8,20 @@
8
8
  */
9
9
  export class AgentChat {
10
10
  agentChatId;
11
+ agentId;
11
12
  appId;
12
13
  token;
14
+ agentHarness;
13
15
  /**
14
16
  * Creates a new AgentChat instance
15
17
  * @param {ACC} config - Configuration for the agent chat
16
18
  */
17
19
  constructor(config, { appId, token }) {
18
20
  this.agentChatId = config.agentChatId;
21
+ this.agentId = config.agentId;
19
22
  this.appId = appId;
20
23
  this.token = token;
24
+ this.agentHarness = config.agentHarness;
21
25
  }
22
26
  /**
23
27
  * Get the props for the AgentChat component
@@ -26,6 +30,8 @@ export class AgentChat {
26
30
  getAgentChatComponentProps() {
27
31
  return {
28
32
  agentChatId: this.agentChatId,
33
+ agentId: this.agentId,
34
+ agentHarness: this.agentHarness,
29
35
  appId: this.appId,
30
36
  token: this.token,
31
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocksdiy/blocks-client-sdk",
3
- "version": "1.4.20",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "Blocks client sdk",
6
6
  "keywords": [],
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@tanstack/react-query": "^5.90.21",
50
- "@blocksdiy/react-common": "1.20.0",
51
- "@blocksdiy/blocks-client-api": "1.5.0"
50
+ "@blocksdiy/blocks-client-api": "1.5.0",
51
+ "@blocksdiy/react-common": "1.21.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "tsc-alias": "^1.8.10",