@xpert-ai/xpert-sdk 0.0.6 → 0.0.8

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Client, getApiKey } from "./client.js";
2
2
  export type { ClientConfig, RequestHook } from "./client.js";
3
- export type { Assistant, AssistantBase, AssistantGraph, AssistantVersion, Checkpoint, Config, Cron, CronCreateForThreadResponse, CronCreateResponse, DefaultValues, GraphSchema, Interrupt, Item, ListNamespaceResponse, Metadata, Run, SearchItem, SearchItemsResponse, Thread, ThreadContextUsage, ThreadState, ThreadStatus, ChatConversation, ChatConversationFrom, ChatConversationStatus, ChatMessage, ChatMessageFeedback, ChatMessageFeedbackRating, ChatRequest, ChatRequestHuman, ChatResumeDecision, ChatResumeRequest, ChatRetryRequest, ChatSendRequest, ChatState, ChatTarget, ChatInterruptPatch, LegacyChatRequest, RunInput, RuntimeCapabilitiesResponse, RuntimeCapabilitiesSelection, RuntimeCapabilityPlugin, RuntimeCapabilitySkill, Pagination, ThreadTask, StorageFile, } from "./schema.js";
3
+ export type { Assistant, AssistantBase, AssistantGraph, AssistantVersion, Checkpoint, Config, Cron, CronCreateForThreadResponse, CronCreateResponse, DefaultValues, GraphSchema, Interrupt, Item, ListNamespaceResponse, Metadata, Run, SearchItem, SearchItemsResponse, Thread, ThreadContextUsage, ThreadState, ThreadStatus, ChatConversation, ChatConversationFrom, ChatConversationStatus, ChatMessage, ChatMessageFeedback, ChatMessageFeedbackRating, ChatFollowUpMode, ChatFollowUpRequest, ChatRequest, ChatRequestHuman, ChatResumeDecision, ChatResumeRequest, ChatRetryRequest, ChatSendRequest, ChatState, ChatTarget, ChatInterruptPatch, LegacyChatRequest, RunInput, RuntimeCapabilitiesResponse, RuntimeCapabilitiesSelection, RuntimeCapabilityPlugin, RuntimeCapabilitySkill, Pagination, ThreadTask, StorageFile, } from "./schema.js";
4
4
  export { overrideFetchImplementation } from "./singletons/fetch.js";
5
5
  export type { Command, OnConflictBehavior, RunsInvokePayload, } from "./types.js";
6
6
  export type { AIMessage, FunctionMessage, HumanMessage, Message, RemoveMessage, SystemMessage, ToolMessage, } from "./types.messages.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,SAAS,EAAE;OAmDrB,EAAE,2BAA2B,EAAE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,SAAS,EAAE;OAqDrB,EAAE,2BAA2B,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,SAAS,EAAE;OAmDrB,EAAE,2BAA2B,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,SAAS,EAAE;OAqDrB,EAAE,2BAA2B,EAAE"}
package/dist/schema.d.ts CHANGED
@@ -422,6 +422,7 @@ export interface ChatInterruptPatch {
422
422
  toolCalls?: unknown[];
423
423
  update?: unknown;
424
424
  }
425
+ export type ChatFollowUpMode = 'queue' | 'steer';
425
426
  /**
426
427
  * Send a new message in a chat run.
427
428
  */
@@ -459,11 +460,25 @@ export interface ChatRetryRequest {
459
460
  sandboxEnvironmentId?: string;
460
461
  checkpointId?: string;
461
462
  }
463
+ /**
464
+ * Follow up while another chat run is active.
465
+ */
466
+ export interface ChatFollowUpRequest {
467
+ action: 'follow_up';
468
+ conversationId: string;
469
+ mode: ChatFollowUpMode;
470
+ message: {
471
+ clientMessageId?: string;
472
+ input: ChatRequestHuman;
473
+ };
474
+ target?: ChatTarget;
475
+ state?: ChatState;
476
+ }
462
477
  /**
463
478
  * Discriminated union of all chat request actions.
464
479
  * Maps to the server-side `TChatRequest` (v2) validated by `RunCreateStreamHandler`.
465
480
  */
466
- export type ChatRequest = ChatSendRequest | ChatResumeRequest | ChatRetryRequest;
481
+ export type ChatRequest = ChatSendRequest | ChatResumeRequest | ChatRetryRequest | ChatFollowUpRequest;
467
482
  /**
468
483
  * Legacy chat request format (v1).
469
484
  * The server normalizes this into a v2 {@link ChatRequest} automatically.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/xpert-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "SDK Core functionality package",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",