orchestrator-client 5.9.2 → 5.11.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.cjs +42 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -46
- package/dist/index.d.ts +32 -46
- package/dist/index.js +42 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -268,6 +268,8 @@ interface LLMModelVisionInfo {
|
|
|
268
268
|
interface LLMModelContextInfo {
|
|
269
269
|
modelId: string;
|
|
270
270
|
contextLimit: number;
|
|
271
|
+
/** Provenance of contextLimit: `metadata:<key>` or `default`. */
|
|
272
|
+
source: string;
|
|
271
273
|
}
|
|
272
274
|
interface LLMBackendStatus {
|
|
273
275
|
backends: LLMBackendInfo[];
|
|
@@ -386,6 +388,29 @@ interface ReloadStatus {
|
|
|
386
388
|
lastReload?: string;
|
|
387
389
|
nextScheduledReload?: string;
|
|
388
390
|
}
|
|
391
|
+
interface PromptMetadata {
|
|
392
|
+
companyName?: string | null;
|
|
393
|
+
companyDescription?: string | null;
|
|
394
|
+
agentName?: string | null;
|
|
395
|
+
personalityTraits?: string[] | null;
|
|
396
|
+
environmentInfo?: string | null;
|
|
397
|
+
productName?: string | null;
|
|
398
|
+
contactChannels?: string[] | null;
|
|
399
|
+
}
|
|
400
|
+
interface PromptMetadataResponse {
|
|
401
|
+
metadata: PromptMetadata;
|
|
402
|
+
missingFields: string[];
|
|
403
|
+
version: number;
|
|
404
|
+
}
|
|
405
|
+
interface PromptMetadataPatch {
|
|
406
|
+
companyName?: string | null;
|
|
407
|
+
companyDescription?: string | null;
|
|
408
|
+
agentName?: string | null;
|
|
409
|
+
personalityTraits?: string[] | null;
|
|
410
|
+
environmentInfo?: string | null;
|
|
411
|
+
productName?: string | null;
|
|
412
|
+
contactChannels?: string[] | null;
|
|
413
|
+
}
|
|
389
414
|
|
|
390
415
|
interface ToolInfo {
|
|
391
416
|
name: string;
|
|
@@ -537,31 +562,6 @@ interface WebSocketStatus {
|
|
|
537
562
|
interface SuccessResponse {
|
|
538
563
|
message: string;
|
|
539
564
|
}
|
|
540
|
-
interface MioContext {
|
|
541
|
-
taskId: string;
|
|
542
|
-
modelId: string;
|
|
543
|
-
currentTokens: number;
|
|
544
|
-
contextLimit: number;
|
|
545
|
-
usagePercentage: number;
|
|
546
|
-
totalMessages: number;
|
|
547
|
-
activeMessages: number;
|
|
548
|
-
archivedMessages: number;
|
|
549
|
-
messagesWithoutTokenCount: number;
|
|
550
|
-
}
|
|
551
|
-
interface MioMemoryItem {
|
|
552
|
-
id: string;
|
|
553
|
-
taskId: string | null;
|
|
554
|
-
title: string;
|
|
555
|
-
content: string;
|
|
556
|
-
tags: string[];
|
|
557
|
-
linkedTaskId: string | null;
|
|
558
|
-
createdAt: string;
|
|
559
|
-
updatedAt: string;
|
|
560
|
-
}
|
|
561
|
-
interface MioMemoriesResult {
|
|
562
|
-
memories: MioMemoryItem[];
|
|
563
|
-
total: number;
|
|
564
|
-
}
|
|
565
565
|
interface MessageDeleteMultipleResult {
|
|
566
566
|
deletedIds: number[];
|
|
567
567
|
failedIds: number[];
|
|
@@ -759,17 +759,8 @@ declare class OrchestratorAsync {
|
|
|
759
759
|
limit?: number;
|
|
760
760
|
offset?: number;
|
|
761
761
|
}): Promise<TaskListResult>;
|
|
762
|
-
searchVSATasks(userId: string, query: string, limit?: number): Promise<TaskListResult>;
|
|
762
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): Promise<TaskListResult>;
|
|
763
763
|
deleteVSATasksBulk(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
764
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
765
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): Promise<SuccessResponse>;
|
|
766
|
-
wakeMio(taskId: string): Promise<SuccessResponse>;
|
|
767
|
-
sendMioUserAway(taskId: string): Promise<SuccessResponse>;
|
|
768
|
-
markMioComplete(taskId: string): Promise<SuccessResponse>;
|
|
769
|
-
markMioFailed(taskId: string): Promise<SuccessResponse>;
|
|
770
|
-
archiveMio(taskId: string): Promise<SuccessResponse>;
|
|
771
|
-
getMioContext(taskId: string): Promise<MioContext>;
|
|
772
|
-
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
773
764
|
listTools(): Promise<ToolsListResult>;
|
|
774
765
|
/**
|
|
775
766
|
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
@@ -837,6 +828,8 @@ declare class OrchestratorAsync {
|
|
|
837
828
|
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
838
829
|
getSystemStatus(): Promise<SystemStatus>;
|
|
839
830
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
831
|
+
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
832
|
+
updatePromptMetadata(patch: PromptMetadataPatch): Promise<PromptMetadataResponse>;
|
|
840
833
|
getConfigurationStatus(): Promise<ConfigurationStatus>;
|
|
841
834
|
setAgentModel(model: string): Promise<SuccessResponse>;
|
|
842
835
|
setOrchestratorModel(model: string): Promise<SuccessResponse>;
|
|
@@ -918,17 +911,8 @@ declare class Orchestrator {
|
|
|
918
911
|
stopVSA(taskId: string): SuccessResponse;
|
|
919
912
|
deleteVSA(taskId: string): SuccessResponse;
|
|
920
913
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
921
|
-
searchVSATasks(userId: string, query: string, limit?: number): TaskListResult;
|
|
914
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
|
922
915
|
deleteVSATasksBulk(taskIds: string[]): TaskDeleteResult;
|
|
923
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
924
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): SuccessResponse;
|
|
925
|
-
wakeMio(taskId: string): SuccessResponse;
|
|
926
|
-
sendMioUserAway(taskId: string): SuccessResponse;
|
|
927
|
-
markMioComplete(taskId: string): SuccessResponse;
|
|
928
|
-
markMioFailed(taskId: string): SuccessResponse;
|
|
929
|
-
archiveMio(taskId: string): SuccessResponse;
|
|
930
|
-
getMioContext(taskId: string): MioContext;
|
|
931
|
-
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
932
916
|
listTools(): ToolsListResult;
|
|
933
917
|
getToolDefaults(): ToolDefaultsResult;
|
|
934
918
|
getToolCatalog(): ToolCatalogResult;
|
|
@@ -974,6 +958,8 @@ declare class Orchestrator {
|
|
|
974
958
|
getMetrics(types?: string): MetricSnapshot;
|
|
975
959
|
getSystemStatus(): SystemStatus;
|
|
976
960
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
961
|
+
getPromptMetadata(): PromptMetadataResponse;
|
|
962
|
+
updatePromptMetadata(patch: Record<string, unknown>): PromptMetadataResponse;
|
|
977
963
|
getConfigurationStatus(): ConfigurationStatus;
|
|
978
964
|
setAgentModel(model: string): SuccessResponse;
|
|
979
965
|
setOrchestratorModel(model: string): SuccessResponse;
|
|
@@ -1493,4 +1479,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1493
1479
|
*/
|
|
1494
1480
|
declare const VERSION = "5.6.0";
|
|
1495
1481
|
|
|
1496
|
-
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,
|
|
1482
|
+
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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, 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
|
@@ -268,6 +268,8 @@ interface LLMModelVisionInfo {
|
|
|
268
268
|
interface LLMModelContextInfo {
|
|
269
269
|
modelId: string;
|
|
270
270
|
contextLimit: number;
|
|
271
|
+
/** Provenance of contextLimit: `metadata:<key>` or `default`. */
|
|
272
|
+
source: string;
|
|
271
273
|
}
|
|
272
274
|
interface LLMBackendStatus {
|
|
273
275
|
backends: LLMBackendInfo[];
|
|
@@ -386,6 +388,29 @@ interface ReloadStatus {
|
|
|
386
388
|
lastReload?: string;
|
|
387
389
|
nextScheduledReload?: string;
|
|
388
390
|
}
|
|
391
|
+
interface PromptMetadata {
|
|
392
|
+
companyName?: string | null;
|
|
393
|
+
companyDescription?: string | null;
|
|
394
|
+
agentName?: string | null;
|
|
395
|
+
personalityTraits?: string[] | null;
|
|
396
|
+
environmentInfo?: string | null;
|
|
397
|
+
productName?: string | null;
|
|
398
|
+
contactChannels?: string[] | null;
|
|
399
|
+
}
|
|
400
|
+
interface PromptMetadataResponse {
|
|
401
|
+
metadata: PromptMetadata;
|
|
402
|
+
missingFields: string[];
|
|
403
|
+
version: number;
|
|
404
|
+
}
|
|
405
|
+
interface PromptMetadataPatch {
|
|
406
|
+
companyName?: string | null;
|
|
407
|
+
companyDescription?: string | null;
|
|
408
|
+
agentName?: string | null;
|
|
409
|
+
personalityTraits?: string[] | null;
|
|
410
|
+
environmentInfo?: string | null;
|
|
411
|
+
productName?: string | null;
|
|
412
|
+
contactChannels?: string[] | null;
|
|
413
|
+
}
|
|
389
414
|
|
|
390
415
|
interface ToolInfo {
|
|
391
416
|
name: string;
|
|
@@ -537,31 +562,6 @@ interface WebSocketStatus {
|
|
|
537
562
|
interface SuccessResponse {
|
|
538
563
|
message: string;
|
|
539
564
|
}
|
|
540
|
-
interface MioContext {
|
|
541
|
-
taskId: string;
|
|
542
|
-
modelId: string;
|
|
543
|
-
currentTokens: number;
|
|
544
|
-
contextLimit: number;
|
|
545
|
-
usagePercentage: number;
|
|
546
|
-
totalMessages: number;
|
|
547
|
-
activeMessages: number;
|
|
548
|
-
archivedMessages: number;
|
|
549
|
-
messagesWithoutTokenCount: number;
|
|
550
|
-
}
|
|
551
|
-
interface MioMemoryItem {
|
|
552
|
-
id: string;
|
|
553
|
-
taskId: string | null;
|
|
554
|
-
title: string;
|
|
555
|
-
content: string;
|
|
556
|
-
tags: string[];
|
|
557
|
-
linkedTaskId: string | null;
|
|
558
|
-
createdAt: string;
|
|
559
|
-
updatedAt: string;
|
|
560
|
-
}
|
|
561
|
-
interface MioMemoriesResult {
|
|
562
|
-
memories: MioMemoryItem[];
|
|
563
|
-
total: number;
|
|
564
|
-
}
|
|
565
565
|
interface MessageDeleteMultipleResult {
|
|
566
566
|
deletedIds: number[];
|
|
567
567
|
failedIds: number[];
|
|
@@ -759,17 +759,8 @@ declare class OrchestratorAsync {
|
|
|
759
759
|
limit?: number;
|
|
760
760
|
offset?: number;
|
|
761
761
|
}): Promise<TaskListResult>;
|
|
762
|
-
searchVSATasks(userId: string, query: string, limit?: number): Promise<TaskListResult>;
|
|
762
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): Promise<TaskListResult>;
|
|
763
763
|
deleteVSATasksBulk(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
764
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
765
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): Promise<SuccessResponse>;
|
|
766
|
-
wakeMio(taskId: string): Promise<SuccessResponse>;
|
|
767
|
-
sendMioUserAway(taskId: string): Promise<SuccessResponse>;
|
|
768
|
-
markMioComplete(taskId: string): Promise<SuccessResponse>;
|
|
769
|
-
markMioFailed(taskId: string): Promise<SuccessResponse>;
|
|
770
|
-
archiveMio(taskId: string): Promise<SuccessResponse>;
|
|
771
|
-
getMioContext(taskId: string): Promise<MioContext>;
|
|
772
|
-
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
773
764
|
listTools(): Promise<ToolsListResult>;
|
|
774
765
|
/**
|
|
775
766
|
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
@@ -837,6 +828,8 @@ declare class OrchestratorAsync {
|
|
|
837
828
|
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
838
829
|
getSystemStatus(): Promise<SystemStatus>;
|
|
839
830
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
831
|
+
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
832
|
+
updatePromptMetadata(patch: PromptMetadataPatch): Promise<PromptMetadataResponse>;
|
|
840
833
|
getConfigurationStatus(): Promise<ConfigurationStatus>;
|
|
841
834
|
setAgentModel(model: string): Promise<SuccessResponse>;
|
|
842
835
|
setOrchestratorModel(model: string): Promise<SuccessResponse>;
|
|
@@ -918,17 +911,8 @@ declare class Orchestrator {
|
|
|
918
911
|
stopVSA(taskId: string): SuccessResponse;
|
|
919
912
|
deleteVSA(taskId: string): SuccessResponse;
|
|
920
913
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
921
|
-
searchVSATasks(userId: string, query: string, limit?: number): TaskListResult;
|
|
914
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
|
922
915
|
deleteVSATasksBulk(taskIds: string[]): TaskDeleteResult;
|
|
923
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
924
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): SuccessResponse;
|
|
925
|
-
wakeMio(taskId: string): SuccessResponse;
|
|
926
|
-
sendMioUserAway(taskId: string): SuccessResponse;
|
|
927
|
-
markMioComplete(taskId: string): SuccessResponse;
|
|
928
|
-
markMioFailed(taskId: string): SuccessResponse;
|
|
929
|
-
archiveMio(taskId: string): SuccessResponse;
|
|
930
|
-
getMioContext(taskId: string): MioContext;
|
|
931
|
-
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
932
916
|
listTools(): ToolsListResult;
|
|
933
917
|
getToolDefaults(): ToolDefaultsResult;
|
|
934
918
|
getToolCatalog(): ToolCatalogResult;
|
|
@@ -974,6 +958,8 @@ declare class Orchestrator {
|
|
|
974
958
|
getMetrics(types?: string): MetricSnapshot;
|
|
975
959
|
getSystemStatus(): SystemStatus;
|
|
976
960
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
961
|
+
getPromptMetadata(): PromptMetadataResponse;
|
|
962
|
+
updatePromptMetadata(patch: Record<string, unknown>): PromptMetadataResponse;
|
|
977
963
|
getConfigurationStatus(): ConfigurationStatus;
|
|
978
964
|
setAgentModel(model: string): SuccessResponse;
|
|
979
965
|
setOrchestratorModel(model: string): SuccessResponse;
|
|
@@ -1493,4 +1479,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1493
1479
|
*/
|
|
1494
1480
|
declare const VERSION = "5.6.0";
|
|
1495
1481
|
|
|
1496
|
-
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,
|
|
1482
|
+
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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, 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
|
@@ -807,11 +807,12 @@ var OrchestratorAsync = class {
|
|
|
807
807
|
});
|
|
808
808
|
return buildVsaTaskList(data);
|
|
809
809
|
}
|
|
810
|
-
async searchVSATasks(userId, query, limit) {
|
|
810
|
+
async searchVSATasks(userId, query, limit, offset) {
|
|
811
811
|
const data = await this._get("/task/vsa/search", {
|
|
812
812
|
user_id: userId,
|
|
813
813
|
query,
|
|
814
|
-
limit
|
|
814
|
+
limit,
|
|
815
|
+
offset
|
|
815
816
|
});
|
|
816
817
|
return buildVsaTaskList(data);
|
|
817
818
|
}
|
|
@@ -828,85 +829,6 @@ var OrchestratorAsync = class {
|
|
|
828
829
|
};
|
|
829
830
|
}
|
|
830
831
|
// ------------------------------------------------------------------
|
|
831
|
-
// MIO (self_managed) workflow
|
|
832
|
-
// ------------------------------------------------------------------
|
|
833
|
-
async sendMioMessage(taskId, message, attachmentIds) {
|
|
834
|
-
const data = await this._post(
|
|
835
|
-
"/task/self_managed/message",
|
|
836
|
-
{ task_id: taskId, message, attachment_ids: attachmentIds }
|
|
837
|
-
);
|
|
838
|
-
return { message: data.message ?? "" };
|
|
839
|
-
}
|
|
840
|
-
async approveMioAction(taskId, approved = true, feedback) {
|
|
841
|
-
const data = await this._post(
|
|
842
|
-
"/task/self_managed/action",
|
|
843
|
-
{ task_id: taskId, approved, feedback }
|
|
844
|
-
);
|
|
845
|
-
return { message: data.message ?? "" };
|
|
846
|
-
}
|
|
847
|
-
async wakeMio(taskId) {
|
|
848
|
-
const data = await this._post(
|
|
849
|
-
"/task/self_managed/wake",
|
|
850
|
-
{ task_id: taskId }
|
|
851
|
-
);
|
|
852
|
-
return { message: data.message ?? "" };
|
|
853
|
-
}
|
|
854
|
-
async sendMioUserAway(taskId) {
|
|
855
|
-
const data = await this._post(
|
|
856
|
-
"/task/self_managed/user_away",
|
|
857
|
-
{ task_id: taskId }
|
|
858
|
-
);
|
|
859
|
-
return { message: data.message ?? "" };
|
|
860
|
-
}
|
|
861
|
-
async markMioComplete(taskId) {
|
|
862
|
-
const data = await this._post(
|
|
863
|
-
"/task/self_managed/mark_complete",
|
|
864
|
-
{ task_id: taskId }
|
|
865
|
-
);
|
|
866
|
-
return { message: data.message ?? "" };
|
|
867
|
-
}
|
|
868
|
-
async markMioFailed(taskId) {
|
|
869
|
-
const data = await this._post(
|
|
870
|
-
"/task/self_managed/mark_failed",
|
|
871
|
-
{ task_id: taskId }
|
|
872
|
-
);
|
|
873
|
-
return { message: data.message ?? "" };
|
|
874
|
-
}
|
|
875
|
-
async archiveMio(taskId) {
|
|
876
|
-
const data = await this._post(
|
|
877
|
-
"/task/self_managed/archive",
|
|
878
|
-
{ task_id: taskId }
|
|
879
|
-
);
|
|
880
|
-
return { message: data.message ?? "" };
|
|
881
|
-
}
|
|
882
|
-
async getMioContext(taskId) {
|
|
883
|
-
const data = await this._get(
|
|
884
|
-
"/task/self_managed/context",
|
|
885
|
-
{ task_id: taskId }
|
|
886
|
-
);
|
|
887
|
-
return {
|
|
888
|
-
taskId: data.taskId ?? data.task_id ?? taskId,
|
|
889
|
-
modelId: data.modelId ?? data.model_id ?? "",
|
|
890
|
-
currentTokens: data.currentTokens ?? data.current_tokens ?? 0,
|
|
891
|
-
contextLimit: data.contextLimit ?? data.context_limit ?? 0,
|
|
892
|
-
usagePercentage: data.usagePercentage ?? data.usage_percentage ?? 0,
|
|
893
|
-
totalMessages: data.totalMessages ?? data.total_messages ?? 0,
|
|
894
|
-
activeMessages: data.activeMessages ?? data.active_messages ?? 0,
|
|
895
|
-
archivedMessages: data.archivedMessages ?? data.archived_messages ?? 0,
|
|
896
|
-
messagesWithoutTokenCount: data.messagesWithoutTokenCount ?? data.messages_without_token_count ?? 0
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
async getMioMemories(taskId, includeCommon) {
|
|
900
|
-
const data = await this._get(
|
|
901
|
-
"/task/self_managed/memories",
|
|
902
|
-
{ task_id: taskId, include_common: includeCommon }
|
|
903
|
-
);
|
|
904
|
-
return {
|
|
905
|
-
memories: data.memories ?? [],
|
|
906
|
-
total: data.total ?? 0
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
// ------------------------------------------------------------------
|
|
910
832
|
// Tools
|
|
911
833
|
// ------------------------------------------------------------------
|
|
912
834
|
async listTools() {
|
|
@@ -1220,6 +1142,37 @@ var OrchestratorAsync = class {
|
|
|
1220
1142
|
}
|
|
1221
1143
|
return this._post("/configuration/system/settings", body);
|
|
1222
1144
|
}
|
|
1145
|
+
async getPromptMetadata() {
|
|
1146
|
+
return this._get("/configuration/prompt-metadata");
|
|
1147
|
+
}
|
|
1148
|
+
async updatePromptMetadata(patch) {
|
|
1149
|
+
const body = {};
|
|
1150
|
+
if (patch.companyName !== void 0) {
|
|
1151
|
+
body.company_name = patch.companyName;
|
|
1152
|
+
}
|
|
1153
|
+
if (patch.companyDescription !== void 0) {
|
|
1154
|
+
body.company_description = patch.companyDescription;
|
|
1155
|
+
}
|
|
1156
|
+
if (patch.agentName !== void 0) {
|
|
1157
|
+
body.agent_name = patch.agentName;
|
|
1158
|
+
}
|
|
1159
|
+
if (patch.personalityTraits !== void 0) {
|
|
1160
|
+
body.personality_traits = patch.personalityTraits;
|
|
1161
|
+
}
|
|
1162
|
+
if (patch.environmentInfo !== void 0) {
|
|
1163
|
+
body.environment_info = patch.environmentInfo;
|
|
1164
|
+
}
|
|
1165
|
+
if (patch.productName !== void 0) {
|
|
1166
|
+
body.product_name = patch.productName;
|
|
1167
|
+
}
|
|
1168
|
+
if (patch.contactChannels !== void 0) {
|
|
1169
|
+
body.contact_channels = patch.contactChannels;
|
|
1170
|
+
}
|
|
1171
|
+
return this._post(
|
|
1172
|
+
"/configuration/prompt-metadata",
|
|
1173
|
+
body
|
|
1174
|
+
);
|
|
1175
|
+
}
|
|
1223
1176
|
async getConfigurationStatus() {
|
|
1224
1177
|
return this._get("/configuration/status");
|
|
1225
1178
|
}
|
|
@@ -1551,44 +1504,13 @@ var Orchestrator = class {
|
|
|
1551
1504
|
listVSATasks(userId, params) {
|
|
1552
1505
|
return runSync(this._async.listVSATasks(userId, params));
|
|
1553
1506
|
}
|
|
1554
|
-
searchVSATasks(userId, query, limit) {
|
|
1555
|
-
return runSync(this._async.searchVSATasks(userId, query, limit));
|
|
1507
|
+
searchVSATasks(userId, query, limit, offset) {
|
|
1508
|
+
return runSync(this._async.searchVSATasks(userId, query, limit, offset));
|
|
1556
1509
|
}
|
|
1557
1510
|
deleteVSATasksBulk(taskIds) {
|
|
1558
1511
|
return runSync(this._async.deleteVSATasksBulk(taskIds));
|
|
1559
1512
|
}
|
|
1560
1513
|
// ------------------------------------------------------------------
|
|
1561
|
-
// MIO (self_managed) workflow
|
|
1562
|
-
// ------------------------------------------------------------------
|
|
1563
|
-
sendMioMessage(taskId, message, attachmentIds) {
|
|
1564
|
-
return runSync(this._async.sendMioMessage(taskId, message, attachmentIds));
|
|
1565
|
-
}
|
|
1566
|
-
approveMioAction(taskId, approved = true, feedback) {
|
|
1567
|
-
return runSync(this._async.approveMioAction(taskId, approved, feedback));
|
|
1568
|
-
}
|
|
1569
|
-
wakeMio(taskId) {
|
|
1570
|
-
return runSync(this._async.wakeMio(taskId));
|
|
1571
|
-
}
|
|
1572
|
-
sendMioUserAway(taskId) {
|
|
1573
|
-
return runSync(this._async.sendMioUserAway(taskId));
|
|
1574
|
-
}
|
|
1575
|
-
markMioComplete(taskId) {
|
|
1576
|
-
return runSync(this._async.markMioComplete(taskId));
|
|
1577
|
-
}
|
|
1578
|
-
markMioFailed(taskId) {
|
|
1579
|
-
return runSync(this._async.markMioFailed(taskId));
|
|
1580
|
-
}
|
|
1581
|
-
archiveMio(taskId) {
|
|
1582
|
-
return runSync(this._async.archiveMio(taskId));
|
|
1583
|
-
}
|
|
1584
|
-
getMioContext(taskId) {
|
|
1585
|
-
return runSync(this._async.getMioContext(taskId));
|
|
1586
|
-
}
|
|
1587
|
-
getMioMemories(taskId, includeCommon) {
|
|
1588
|
-
return runSync(this._async.getMioMemories(taskId, includeCommon));
|
|
1589
|
-
}
|
|
1590
|
-
// ------------------------------------------------------------------
|
|
1591
|
-
// Tools
|
|
1592
1514
|
// ------------------------------------------------------------------
|
|
1593
1515
|
listTools() {
|
|
1594
1516
|
return runSync(this._async.listTools());
|
|
@@ -1703,6 +1625,12 @@ var Orchestrator = class {
|
|
|
1703
1625
|
updateSettings(settings) {
|
|
1704
1626
|
return runSync(this._async.updateSettings(settings));
|
|
1705
1627
|
}
|
|
1628
|
+
getPromptMetadata() {
|
|
1629
|
+
return runSync(this._async.getPromptMetadata());
|
|
1630
|
+
}
|
|
1631
|
+
updatePromptMetadata(patch) {
|
|
1632
|
+
return runSync(this._async.updatePromptMetadata(patch));
|
|
1633
|
+
}
|
|
1706
1634
|
getConfigurationStatus() {
|
|
1707
1635
|
return runSync(this._async.getConfigurationStatus());
|
|
1708
1636
|
}
|