orchestrator-client 5.7.12 → 5.9.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/dist/index.d.cts CHANGED
@@ -387,6 +387,21 @@ interface ToolsListResult {
387
387
  totalTools: number;
388
388
  servers: string[];
389
389
  }
390
+ /** The default toolset one workflow (or workflow variant) resolves to. */
391
+ interface WorkflowToolDefaults {
392
+ workflowId: string;
393
+ /** Null for every workflow except `vsa`, which is variant-aware. */
394
+ variant: string | null;
395
+ tools: string[];
396
+ }
397
+ /**
398
+ * Default toolsets as returned by `GET /tools/defaults`.
399
+ *
400
+ * `vsa` appears once per variant; every other workflow gets a single entry.
401
+ */
402
+ interface ToolDefaultsResult {
403
+ workflows: WorkflowToolDefaults[];
404
+ }
390
405
  interface ToolCatalogEntry {
391
406
  name: string;
392
407
  description: string;
@@ -615,7 +630,14 @@ declare class OrchestratorAsync {
615
630
  solutionStrategy?: string;
616
631
  agentModelId?: string;
617
632
  orchestratorModelId?: string;
618
- availableTools?: string[];
633
+ /**
634
+ * Complete tool list for the task, built-in tools included -- naming a
635
+ * subset also switches the built-ins off. Omit (or pass `null`) to get
636
+ * the workflow's default toolset, which is resolved and stored on the
637
+ * task at creation time; see {@link getToolDefaults}. Pass `[]` to run
638
+ * the agent with no tools at all.
639
+ */
640
+ availableTools?: string[] | null;
619
641
  attachmentIds?: string[];
620
642
  options?: Record<string, boolean>;
621
643
  }): Promise<TaskCreateResponse>;
@@ -656,9 +678,15 @@ declare class OrchestratorAsync {
656
678
  createVSATask(params: {
657
679
  userId: string;
658
680
  goalPrompt: string;
681
+ variant?: "portal_user" | "operator";
659
682
  title?: string;
660
683
  agentModelId?: string;
661
684
  orchestratorModelId?: string;
685
+ /**
686
+ * Complete tool list for the task, built-ins included. Omit for the
687
+ * variant's default toolset; pass `[]` to run with no tools.
688
+ */
689
+ availableTools?: string[] | null;
662
690
  attachmentIds?: string[];
663
691
  options?: Record<string, boolean>;
664
692
  delegatedToken?: string;
@@ -691,6 +719,14 @@ declare class OrchestratorAsync {
691
719
  getMioContext(taskId: string): Promise<MioContext>;
692
720
  getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
693
721
  listTools(): Promise<ToolsListResult>;
722
+ /**
723
+ * Default toolset every workflow uses when `availableTools` is omitted.
724
+ *
725
+ * Resolved against the live catalog, so it only names tools that are
726
+ * reachable right now -- the same list a task created at this moment
727
+ * would receive.
728
+ */
729
+ getToolDefaults(): Promise<ToolDefaultsResult>;
694
730
  getToolCatalog(): Promise<ToolCatalogResult>;
695
731
  refreshMCPTools(): Promise<MCPRefreshResult>;
696
732
  validateToolCatalog(): Promise<CatalogValidationResult>;
@@ -829,6 +865,7 @@ declare class Orchestrator {
829
865
  getMioContext(taskId: string): MioContext;
830
866
  getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
831
867
  listTools(): ToolsListResult;
868
+ getToolDefaults(): ToolDefaultsResult;
832
869
  getToolCatalog(): ToolCatalogResult;
833
870
  refreshMCPTools(): MCPRefreshResult;
834
871
  validateToolCatalog(): CatalogValidationResult;
@@ -1378,4 +1415,4 @@ declare function deepCamelCase<T>(obj: T): T;
1378
1415
  */
1379
1416
  declare const VERSION = "5.6.0";
1380
1417
 
1381
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
1418
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
package/dist/index.d.ts CHANGED
@@ -387,6 +387,21 @@ interface ToolsListResult {
387
387
  totalTools: number;
388
388
  servers: string[];
389
389
  }
390
+ /** The default toolset one workflow (or workflow variant) resolves to. */
391
+ interface WorkflowToolDefaults {
392
+ workflowId: string;
393
+ /** Null for every workflow except `vsa`, which is variant-aware. */
394
+ variant: string | null;
395
+ tools: string[];
396
+ }
397
+ /**
398
+ * Default toolsets as returned by `GET /tools/defaults`.
399
+ *
400
+ * `vsa` appears once per variant; every other workflow gets a single entry.
401
+ */
402
+ interface ToolDefaultsResult {
403
+ workflows: WorkflowToolDefaults[];
404
+ }
390
405
  interface ToolCatalogEntry {
391
406
  name: string;
392
407
  description: string;
@@ -615,7 +630,14 @@ declare class OrchestratorAsync {
615
630
  solutionStrategy?: string;
616
631
  agentModelId?: string;
617
632
  orchestratorModelId?: string;
618
- availableTools?: string[];
633
+ /**
634
+ * Complete tool list for the task, built-in tools included -- naming a
635
+ * subset also switches the built-ins off. Omit (or pass `null`) to get
636
+ * the workflow's default toolset, which is resolved and stored on the
637
+ * task at creation time; see {@link getToolDefaults}. Pass `[]` to run
638
+ * the agent with no tools at all.
639
+ */
640
+ availableTools?: string[] | null;
619
641
  attachmentIds?: string[];
620
642
  options?: Record<string, boolean>;
621
643
  }): Promise<TaskCreateResponse>;
@@ -656,9 +678,15 @@ declare class OrchestratorAsync {
656
678
  createVSATask(params: {
657
679
  userId: string;
658
680
  goalPrompt: string;
681
+ variant?: "portal_user" | "operator";
659
682
  title?: string;
660
683
  agentModelId?: string;
661
684
  orchestratorModelId?: string;
685
+ /**
686
+ * Complete tool list for the task, built-ins included. Omit for the
687
+ * variant's default toolset; pass `[]` to run with no tools.
688
+ */
689
+ availableTools?: string[] | null;
662
690
  attachmentIds?: string[];
663
691
  options?: Record<string, boolean>;
664
692
  delegatedToken?: string;
@@ -691,6 +719,14 @@ declare class OrchestratorAsync {
691
719
  getMioContext(taskId: string): Promise<MioContext>;
692
720
  getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
693
721
  listTools(): Promise<ToolsListResult>;
722
+ /**
723
+ * Default toolset every workflow uses when `availableTools` is omitted.
724
+ *
725
+ * Resolved against the live catalog, so it only names tools that are
726
+ * reachable right now -- the same list a task created at this moment
727
+ * would receive.
728
+ */
729
+ getToolDefaults(): Promise<ToolDefaultsResult>;
694
730
  getToolCatalog(): Promise<ToolCatalogResult>;
695
731
  refreshMCPTools(): Promise<MCPRefreshResult>;
696
732
  validateToolCatalog(): Promise<CatalogValidationResult>;
@@ -829,6 +865,7 @@ declare class Orchestrator {
829
865
  getMioContext(taskId: string): MioContext;
830
866
  getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
831
867
  listTools(): ToolsListResult;
868
+ getToolDefaults(): ToolDefaultsResult;
832
869
  getToolCatalog(): ToolCatalogResult;
833
870
  refreshMCPTools(): MCPRefreshResult;
834
871
  validateToolCatalog(): CatalogValidationResult;
@@ -1378,4 +1415,4 @@ declare function deepCamelCase<T>(obj: T): T;
1378
1415
  */
1379
1416
  declare const VERSION = "5.6.0";
1380
1417
 
1381
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
1418
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
package/dist/index.js CHANGED
@@ -691,9 +691,11 @@ var OrchestratorAsync = class {
691
691
  const body = {
692
692
  user_id: params.userId,
693
693
  goal_prompt: params.goalPrompt,
694
+ variant: params.variant ?? "portal_user",
694
695
  title: params.title,
695
696
  agent_model_id: params.agentModelId,
696
697
  orchestrator_model_id: params.orchestratorModelId,
698
+ available_tools: params.availableTools,
697
699
  attachment_ids: params.attachmentIds,
698
700
  options: params.options
699
701
  };
@@ -890,6 +892,25 @@ var OrchestratorAsync = class {
890
892
  servers: data.servers ?? []
891
893
  };
892
894
  }
895
+ /**
896
+ * Default toolset every workflow uses when `availableTools` is omitted.
897
+ *
898
+ * Resolved against the live catalog, so it only names tools that are
899
+ * reachable right now -- the same list a task created at this moment
900
+ * would receive.
901
+ */
902
+ async getToolDefaults() {
903
+ const data = await this._get("/tools/defaults");
904
+ return {
905
+ workflows: (data.workflows ?? []).map(
906
+ (w) => ({
907
+ workflowId: w.workflowId ?? w.workflow_id ?? "",
908
+ variant: w.variant ?? null,
909
+ tools: w.tools ?? []
910
+ })
911
+ )
912
+ };
913
+ }
893
914
  async getToolCatalog() {
894
915
  return this._get("/tools/catalog");
895
916
  }
@@ -1488,6 +1509,9 @@ var Orchestrator = class {
1488
1509
  listTools() {
1489
1510
  return runSync(this._async.listTools());
1490
1511
  }
1512
+ getToolDefaults() {
1513
+ return runSync(this._async.getToolDefaults());
1514
+ }
1491
1515
  getToolCatalog() {
1492
1516
  return runSync(this._async.getToolCatalog());
1493
1517
  }