@xpert-ai/plugin-sdk 3.9.3 → 3.9.5

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,20 @@
1
1
  # @xpert-ai/plugin-sdk
2
2
 
3
+ ## 3.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e37ff9: updates
8
+ - Updated dependencies [9e37ff9]
9
+ - @xpert-ai/contracts@3.9.5
10
+
11
+ ## 3.9.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [07057a6]
16
+ - @xpert-ai/contracts@3.9.4
17
+
3
18
  ## 3.9.3
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.9.3",
3
+ "version": "3.9.5",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,14 +1,29 @@
1
1
  import { TChatOptions, TChatRequest } from '@xpert-ai/contracts';
2
2
  export declare const AGENT_CHAT_DISPATCH_MESSAGE_TYPE: import("./message-type").StructuredHandoffMessageType;
3
- export interface AgentChatCallbackTarget {
3
+ export interface AgentChatHandoffMessageCallbackTarget {
4
+ transport?: 'handoff-message';
4
5
  messageType: string;
5
6
  headers?: Record<string, string>;
6
7
  context?: Record<string, unknown>;
7
8
  }
9
+ export interface AgentChatRedisPubSubCallbackTarget {
10
+ transport: 'redis-pubsub';
11
+ context?: Record<string, unknown>;
12
+ }
13
+ export type AgentChatCallbackTarget = AgentChatHandoffMessageCallbackTarget | AgentChatRedisPubSubCallbackTarget;
8
14
  export interface AgentChatDispatchPayload extends Record<string, unknown> {
9
15
  request: TChatRequest;
10
- options: TChatOptions;
16
+ options: TChatOptions & {
17
+ xpertId?: string;
18
+ isDraft?: boolean;
19
+ from?: string;
20
+ fromEndUserId?: string;
21
+ execution?: {
22
+ id: string;
23
+ };
24
+ };
11
25
  callback: AgentChatCallbackTarget;
26
+ executionId?: string;
12
27
  }
13
28
  export interface AgentChatCallbackEnvelopePayload extends Record<string, unknown> {
14
29
  kind: 'stream' | 'complete' | 'error';