orchestrator-client 5.12.2 → 5.13.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 +52 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +52 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/** A user in the Profiles picker with VSA task statistics. */
|
|
2
|
+
interface ProfileUserSummary {
|
|
3
|
+
userId: string;
|
|
4
|
+
taskCount: number;
|
|
5
|
+
lastTaskTitle: string | null;
|
|
6
|
+
lastTaskUpdatedAt: string | null;
|
|
7
|
+
}
|
|
1
8
|
/** A single profile/memory entry (decrypted content). */
|
|
2
9
|
interface ProfileEntry {
|
|
3
10
|
id: number;
|
|
@@ -5,6 +12,7 @@ interface ProfileEntry {
|
|
|
5
12
|
content: string;
|
|
6
13
|
createdAt: string;
|
|
7
14
|
updatedAt: string;
|
|
15
|
+
sourceTaskId: string | null;
|
|
8
16
|
}
|
|
9
17
|
/** Result of `GET /profiles/{userId}/entries`. */
|
|
10
18
|
interface ProfileEntryListResult {
|
|
@@ -288,12 +296,17 @@ interface SystemStatusSettings {
|
|
|
288
296
|
locale: string;
|
|
289
297
|
language: string;
|
|
290
298
|
}[] | null;
|
|
299
|
+
skillDescriptionMaxChars: number | null;
|
|
300
|
+
vsaProfileMaxChars: number | null;
|
|
301
|
+
vsaMemoryMaxChars: number | null;
|
|
302
|
+
vsaProfileEntryMaxChars: number | null;
|
|
291
303
|
}
|
|
292
304
|
interface SystemStatus {
|
|
293
305
|
isConfigured: boolean;
|
|
294
306
|
missingFields: string[];
|
|
295
307
|
settings: SystemStatusSettings;
|
|
296
308
|
version: number;
|
|
309
|
+
devMode: boolean;
|
|
297
310
|
}
|
|
298
311
|
interface LLMBackendInfo {
|
|
299
312
|
baseUrl: string;
|
|
@@ -336,6 +349,8 @@ interface TaskHandlerReplica {
|
|
|
336
349
|
leaseTtlSeconds: number;
|
|
337
350
|
startedAt: string;
|
|
338
351
|
lastHeartbeatAt: string;
|
|
352
|
+
leaderRoles?: string[];
|
|
353
|
+
memoryUsageMb?: number | null;
|
|
339
354
|
}
|
|
340
355
|
interface TaskHandlerCluster {
|
|
341
356
|
maxConcurrentTasksPerReplica: number;
|
|
@@ -384,10 +399,14 @@ interface TokenWorkerStatus {
|
|
|
384
399
|
interface SlotInfo {
|
|
385
400
|
id: string;
|
|
386
401
|
ip: string;
|
|
402
|
+
podName: string | null;
|
|
403
|
+
memoryUsageMb: number | null;
|
|
387
404
|
status: string;
|
|
388
405
|
taskId: string | null;
|
|
389
406
|
lastActivity: string | null;
|
|
407
|
+
acquiredAt: string | null;
|
|
390
408
|
idleSeconds: number | null;
|
|
409
|
+
discoveredAt?: string | null;
|
|
391
410
|
}
|
|
392
411
|
interface SlotsStatus {
|
|
393
412
|
enabled: boolean;
|
|
@@ -395,8 +414,13 @@ interface SlotsStatus {
|
|
|
395
414
|
availableSlots: number;
|
|
396
415
|
slotTools: string[];
|
|
397
416
|
acquireTimeoutSeconds: number;
|
|
417
|
+
poolSource: string;
|
|
398
418
|
slots: SlotInfo[];
|
|
399
419
|
}
|
|
420
|
+
interface SlotReleaseResult {
|
|
421
|
+
releasedSlots: string[];
|
|
422
|
+
failedSlots: string[];
|
|
423
|
+
}
|
|
400
424
|
interface ConfigurationStatus {
|
|
401
425
|
agentModel: string | null;
|
|
402
426
|
orchestratorModel: string | null;
|
|
@@ -707,6 +731,7 @@ declare class OrchestratorAsync {
|
|
|
707
731
|
orderBy?: string;
|
|
708
732
|
orderDirection?: string;
|
|
709
733
|
workflowId?: string;
|
|
734
|
+
createdAfter?: string;
|
|
710
735
|
locale?: string;
|
|
711
736
|
}): Promise<TaskListResult>;
|
|
712
737
|
createTask(params: {
|
|
@@ -838,7 +863,7 @@ declare class OrchestratorAsync {
|
|
|
838
863
|
query?: string;
|
|
839
864
|
limit?: number;
|
|
840
865
|
offset?: number;
|
|
841
|
-
}): Promise<
|
|
866
|
+
}): Promise<ProfileUserSummary[]>;
|
|
842
867
|
listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
|
|
843
868
|
getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
|
|
844
869
|
createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
|
|
@@ -883,7 +908,7 @@ declare class OrchestratorAsync {
|
|
|
883
908
|
healthDetailed(): Promise<HealthDetail>;
|
|
884
909
|
ready(): Promise<ReadinessResult>;
|
|
885
910
|
healthLeader(): Promise<LeaderStatus>;
|
|
886
|
-
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
911
|
+
getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
|
|
887
912
|
getSystemStatus(): Promise<SystemStatus>;
|
|
888
913
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
889
914
|
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
@@ -905,6 +930,8 @@ declare class OrchestratorAsync {
|
|
|
905
930
|
setTranslateModel(modelName: string): Promise<SuccessResponse>;
|
|
906
931
|
getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
|
|
907
932
|
getSlotsStatus(): Promise<SlotsStatus>;
|
|
933
|
+
releaseSlot(slotId: string): Promise<SlotReleaseResult>;
|
|
934
|
+
releaseAllSlots(): Promise<SlotReleaseResult>;
|
|
908
935
|
getSubagentsStatus(): Promise<SubagentsStatus>;
|
|
909
936
|
setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
|
|
910
937
|
reloadServices(): Promise<ReloadServicesResult>;
|
|
@@ -996,7 +1023,7 @@ declare class Orchestrator {
|
|
|
996
1023
|
deleted: boolean;
|
|
997
1024
|
skillId: number;
|
|
998
1025
|
};
|
|
999
|
-
listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]):
|
|
1026
|
+
listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
|
|
1000
1027
|
listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
|
|
1001
1028
|
getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
|
|
1002
1029
|
createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
|
|
@@ -1026,7 +1053,7 @@ declare class Orchestrator {
|
|
|
1026
1053
|
healthDetailed(): HealthDetail;
|
|
1027
1054
|
ready(): ReadinessResult;
|
|
1028
1055
|
healthLeader(): LeaderStatus;
|
|
1029
|
-
getMetrics(types?: string): MetricSnapshot;
|
|
1056
|
+
getMetrics(types?: string, interval?: string): MetricSnapshot;
|
|
1030
1057
|
getSystemStatus(): SystemStatus;
|
|
1031
1058
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
1032
1059
|
getPromptMetadata(): PromptMetadataResponse;
|
|
@@ -1048,6 +1075,8 @@ declare class Orchestrator {
|
|
|
1048
1075
|
setTranslateModel(modelName: string): SuccessResponse;
|
|
1049
1076
|
getTokenWorkerStatus(): TokenWorkerStatus;
|
|
1050
1077
|
getSlotsStatus(): SlotsStatus;
|
|
1078
|
+
releaseSlot(slotId: string): SlotReleaseResult;
|
|
1079
|
+
releaseAllSlots(): SlotReleaseResult;
|
|
1051
1080
|
getSubagentsStatus(): SubagentsStatus;
|
|
1052
1081
|
setSubagentsEnabled(enabled: boolean): SuccessResponse;
|
|
1053
1082
|
reloadServices(): ReloadServicesResult;
|
|
@@ -1550,4 +1579,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1550
1579
|
*/
|
|
1551
1580
|
declare const VERSION = "5.6.0";
|
|
1552
1581
|
|
|
1553
|
-
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 };
|
|
1582
|
+
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 ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/** A user in the Profiles picker with VSA task statistics. */
|
|
2
|
+
interface ProfileUserSummary {
|
|
3
|
+
userId: string;
|
|
4
|
+
taskCount: number;
|
|
5
|
+
lastTaskTitle: string | null;
|
|
6
|
+
lastTaskUpdatedAt: string | null;
|
|
7
|
+
}
|
|
1
8
|
/** A single profile/memory entry (decrypted content). */
|
|
2
9
|
interface ProfileEntry {
|
|
3
10
|
id: number;
|
|
@@ -5,6 +12,7 @@ interface ProfileEntry {
|
|
|
5
12
|
content: string;
|
|
6
13
|
createdAt: string;
|
|
7
14
|
updatedAt: string;
|
|
15
|
+
sourceTaskId: string | null;
|
|
8
16
|
}
|
|
9
17
|
/** Result of `GET /profiles/{userId}/entries`. */
|
|
10
18
|
interface ProfileEntryListResult {
|
|
@@ -288,12 +296,17 @@ interface SystemStatusSettings {
|
|
|
288
296
|
locale: string;
|
|
289
297
|
language: string;
|
|
290
298
|
}[] | null;
|
|
299
|
+
skillDescriptionMaxChars: number | null;
|
|
300
|
+
vsaProfileMaxChars: number | null;
|
|
301
|
+
vsaMemoryMaxChars: number | null;
|
|
302
|
+
vsaProfileEntryMaxChars: number | null;
|
|
291
303
|
}
|
|
292
304
|
interface SystemStatus {
|
|
293
305
|
isConfigured: boolean;
|
|
294
306
|
missingFields: string[];
|
|
295
307
|
settings: SystemStatusSettings;
|
|
296
308
|
version: number;
|
|
309
|
+
devMode: boolean;
|
|
297
310
|
}
|
|
298
311
|
interface LLMBackendInfo {
|
|
299
312
|
baseUrl: string;
|
|
@@ -336,6 +349,8 @@ interface TaskHandlerReplica {
|
|
|
336
349
|
leaseTtlSeconds: number;
|
|
337
350
|
startedAt: string;
|
|
338
351
|
lastHeartbeatAt: string;
|
|
352
|
+
leaderRoles?: string[];
|
|
353
|
+
memoryUsageMb?: number | null;
|
|
339
354
|
}
|
|
340
355
|
interface TaskHandlerCluster {
|
|
341
356
|
maxConcurrentTasksPerReplica: number;
|
|
@@ -384,10 +399,14 @@ interface TokenWorkerStatus {
|
|
|
384
399
|
interface SlotInfo {
|
|
385
400
|
id: string;
|
|
386
401
|
ip: string;
|
|
402
|
+
podName: string | null;
|
|
403
|
+
memoryUsageMb: number | null;
|
|
387
404
|
status: string;
|
|
388
405
|
taskId: string | null;
|
|
389
406
|
lastActivity: string | null;
|
|
407
|
+
acquiredAt: string | null;
|
|
390
408
|
idleSeconds: number | null;
|
|
409
|
+
discoveredAt?: string | null;
|
|
391
410
|
}
|
|
392
411
|
interface SlotsStatus {
|
|
393
412
|
enabled: boolean;
|
|
@@ -395,8 +414,13 @@ interface SlotsStatus {
|
|
|
395
414
|
availableSlots: number;
|
|
396
415
|
slotTools: string[];
|
|
397
416
|
acquireTimeoutSeconds: number;
|
|
417
|
+
poolSource: string;
|
|
398
418
|
slots: SlotInfo[];
|
|
399
419
|
}
|
|
420
|
+
interface SlotReleaseResult {
|
|
421
|
+
releasedSlots: string[];
|
|
422
|
+
failedSlots: string[];
|
|
423
|
+
}
|
|
400
424
|
interface ConfigurationStatus {
|
|
401
425
|
agentModel: string | null;
|
|
402
426
|
orchestratorModel: string | null;
|
|
@@ -707,6 +731,7 @@ declare class OrchestratorAsync {
|
|
|
707
731
|
orderBy?: string;
|
|
708
732
|
orderDirection?: string;
|
|
709
733
|
workflowId?: string;
|
|
734
|
+
createdAfter?: string;
|
|
710
735
|
locale?: string;
|
|
711
736
|
}): Promise<TaskListResult>;
|
|
712
737
|
createTask(params: {
|
|
@@ -838,7 +863,7 @@ declare class OrchestratorAsync {
|
|
|
838
863
|
query?: string;
|
|
839
864
|
limit?: number;
|
|
840
865
|
offset?: number;
|
|
841
|
-
}): Promise<
|
|
866
|
+
}): Promise<ProfileUserSummary[]>;
|
|
842
867
|
listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
|
|
843
868
|
getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
|
|
844
869
|
createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
|
|
@@ -883,7 +908,7 @@ declare class OrchestratorAsync {
|
|
|
883
908
|
healthDetailed(): Promise<HealthDetail>;
|
|
884
909
|
ready(): Promise<ReadinessResult>;
|
|
885
910
|
healthLeader(): Promise<LeaderStatus>;
|
|
886
|
-
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
911
|
+
getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
|
|
887
912
|
getSystemStatus(): Promise<SystemStatus>;
|
|
888
913
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
889
914
|
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
@@ -905,6 +930,8 @@ declare class OrchestratorAsync {
|
|
|
905
930
|
setTranslateModel(modelName: string): Promise<SuccessResponse>;
|
|
906
931
|
getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
|
|
907
932
|
getSlotsStatus(): Promise<SlotsStatus>;
|
|
933
|
+
releaseSlot(slotId: string): Promise<SlotReleaseResult>;
|
|
934
|
+
releaseAllSlots(): Promise<SlotReleaseResult>;
|
|
908
935
|
getSubagentsStatus(): Promise<SubagentsStatus>;
|
|
909
936
|
setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
|
|
910
937
|
reloadServices(): Promise<ReloadServicesResult>;
|
|
@@ -996,7 +1023,7 @@ declare class Orchestrator {
|
|
|
996
1023
|
deleted: boolean;
|
|
997
1024
|
skillId: number;
|
|
998
1025
|
};
|
|
999
|
-
listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]):
|
|
1026
|
+
listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
|
|
1000
1027
|
listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
|
|
1001
1028
|
getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
|
|
1002
1029
|
createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
|
|
@@ -1026,7 +1053,7 @@ declare class Orchestrator {
|
|
|
1026
1053
|
healthDetailed(): HealthDetail;
|
|
1027
1054
|
ready(): ReadinessResult;
|
|
1028
1055
|
healthLeader(): LeaderStatus;
|
|
1029
|
-
getMetrics(types?: string): MetricSnapshot;
|
|
1056
|
+
getMetrics(types?: string, interval?: string): MetricSnapshot;
|
|
1030
1057
|
getSystemStatus(): SystemStatus;
|
|
1031
1058
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
1032
1059
|
getPromptMetadata(): PromptMetadataResponse;
|
|
@@ -1048,6 +1075,8 @@ declare class Orchestrator {
|
|
|
1048
1075
|
setTranslateModel(modelName: string): SuccessResponse;
|
|
1049
1076
|
getTokenWorkerStatus(): TokenWorkerStatus;
|
|
1050
1077
|
getSlotsStatus(): SlotsStatus;
|
|
1078
|
+
releaseSlot(slotId: string): SlotReleaseResult;
|
|
1079
|
+
releaseAllSlots(): SlotReleaseResult;
|
|
1051
1080
|
getSubagentsStatus(): SubagentsStatus;
|
|
1052
1081
|
setSubagentsEnabled(enabled: boolean): SuccessResponse;
|
|
1053
1082
|
reloadServices(): ReloadServicesResult;
|
|
@@ -1550,4 +1579,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1550
1579
|
*/
|
|
1551
1580
|
declare const VERSION = "5.6.0";
|
|
1552
1581
|
|
|
1553
|
-
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 };
|
|
1582
|
+
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 ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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
|
@@ -94,13 +94,22 @@ function buildSkillMapping(m) {
|
|
|
94
94
|
requiredTool: m.requiredTool ?? m.required_tool ?? null
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
+
function buildProfileUserSummary(u) {
|
|
98
|
+
return {
|
|
99
|
+
userId: u.userId ?? u.user_id ?? "",
|
|
100
|
+
taskCount: u.taskCount ?? u.task_count ?? 0,
|
|
101
|
+
lastTaskTitle: u.lastTaskTitle ?? u.last_task_title ?? null,
|
|
102
|
+
lastTaskUpdatedAt: u.lastTaskUpdatedAt ?? u.last_task_updated_at ?? null
|
|
103
|
+
};
|
|
104
|
+
}
|
|
97
105
|
function buildProfileEntry(e) {
|
|
98
106
|
return {
|
|
99
107
|
id: e.id ?? 0,
|
|
100
108
|
docType: e.docType ?? e.doc_type ?? "memory",
|
|
101
109
|
content: e.content ?? "",
|
|
102
110
|
createdAt: e.createdAt ?? e.created_at ?? "",
|
|
103
|
-
updatedAt: e.updatedAt ?? e.updated_at ?? ""
|
|
111
|
+
updatedAt: e.updatedAt ?? e.updated_at ?? "",
|
|
112
|
+
sourceTaskId: e.sourceTaskId ?? e.source_task_id ?? null
|
|
104
113
|
};
|
|
105
114
|
}
|
|
106
115
|
function buildSkill(s) {
|
|
@@ -402,7 +411,8 @@ var OrchestratorAsync = class {
|
|
|
402
411
|
limit: params?.limit,
|
|
403
412
|
order_by: params?.orderBy ? camelToSnake(params.orderBy) : void 0,
|
|
404
413
|
order_direction: params?.orderDirection,
|
|
405
|
-
workflow_id: params?.workflowId
|
|
414
|
+
workflow_id: params?.workflowId,
|
|
415
|
+
created_after: params?.createdAfter
|
|
406
416
|
},
|
|
407
417
|
headers
|
|
408
418
|
});
|
|
@@ -984,12 +994,15 @@ var OrchestratorAsync = class {
|
|
|
984
994
|
// Profile/memory entries (#788)
|
|
985
995
|
// ------------------------------------------------------------------
|
|
986
996
|
async listProfileUsers(params) {
|
|
987
|
-
const data = await this._get(
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
997
|
+
const data = await this._get(
|
|
998
|
+
"/profiles/users",
|
|
999
|
+
{
|
|
1000
|
+
query: params?.query,
|
|
1001
|
+
limit: params?.limit,
|
|
1002
|
+
offset: params?.offset
|
|
1003
|
+
}
|
|
1004
|
+
);
|
|
1005
|
+
return (data ?? []).map((u) => buildProfileUserSummary(u));
|
|
993
1006
|
}
|
|
994
1007
|
async listProfileEntries(userId, docType) {
|
|
995
1008
|
const data = await this._get(
|
|
@@ -1215,9 +1228,10 @@ var OrchestratorAsync = class {
|
|
|
1215
1228
|
async healthLeader() {
|
|
1216
1229
|
return this._get("/health/leader");
|
|
1217
1230
|
}
|
|
1218
|
-
async getMetrics(types) {
|
|
1231
|
+
async getMetrics(types, interval) {
|
|
1219
1232
|
const params = {};
|
|
1220
|
-
if (types) params.
|
|
1233
|
+
if (types) params.type = types;
|
|
1234
|
+
if (interval) params.interval = interval;
|
|
1221
1235
|
return this._get("/metrics", params);
|
|
1222
1236
|
}
|
|
1223
1237
|
// ------------------------------------------------------------------
|
|
@@ -1258,6 +1272,18 @@ var OrchestratorAsync = class {
|
|
|
1258
1272
|
if (settings.localizationTargets !== void 0) {
|
|
1259
1273
|
body.localization_targets = settings.localizationTargets;
|
|
1260
1274
|
}
|
|
1275
|
+
if (settings.skillDescriptionMaxChars !== void 0) {
|
|
1276
|
+
body.skill_description_max_chars = settings.skillDescriptionMaxChars;
|
|
1277
|
+
}
|
|
1278
|
+
if (settings.vsaProfileMaxChars !== void 0) {
|
|
1279
|
+
body.vsa_profile_max_chars = settings.vsaProfileMaxChars;
|
|
1280
|
+
}
|
|
1281
|
+
if (settings.vsaMemoryMaxChars !== void 0) {
|
|
1282
|
+
body.vsa_memory_max_chars = settings.vsaMemoryMaxChars;
|
|
1283
|
+
}
|
|
1284
|
+
if (settings.vsaProfileEntryMaxChars !== void 0) {
|
|
1285
|
+
body.vsa_profile_entry_max_chars = settings.vsaProfileEntryMaxChars;
|
|
1286
|
+
}
|
|
1261
1287
|
return this._post("/configuration/system/settings", body);
|
|
1262
1288
|
}
|
|
1263
1289
|
async getPromptMetadata() {
|
|
@@ -1383,6 +1409,14 @@ var OrchestratorAsync = class {
|
|
|
1383
1409
|
async getSlotsStatus() {
|
|
1384
1410
|
return this._get("/configuration/slots/status");
|
|
1385
1411
|
}
|
|
1412
|
+
async releaseSlot(slotId) {
|
|
1413
|
+
return this._post(
|
|
1414
|
+
`/configuration/slots/${encodeURIComponent(slotId)}/release`
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
async releaseAllSlots() {
|
|
1418
|
+
return this._post("/configuration/slots/release-all");
|
|
1419
|
+
}
|
|
1386
1420
|
async getSubagentsStatus() {
|
|
1387
1421
|
return this._get("/configuration/subagents/status");
|
|
1388
1422
|
}
|
|
@@ -1761,8 +1795,8 @@ var Orchestrator = class {
|
|
|
1761
1795
|
healthLeader() {
|
|
1762
1796
|
return runSync(this._async.healthLeader());
|
|
1763
1797
|
}
|
|
1764
|
-
getMetrics(types) {
|
|
1765
|
-
return runSync(this._async.getMetrics(types));
|
|
1798
|
+
getMetrics(types, interval) {
|
|
1799
|
+
return runSync(this._async.getMetrics(types, interval));
|
|
1766
1800
|
}
|
|
1767
1801
|
// ------------------------------------------------------------------
|
|
1768
1802
|
// Configuration
|
|
@@ -1830,6 +1864,12 @@ var Orchestrator = class {
|
|
|
1830
1864
|
getSlotsStatus() {
|
|
1831
1865
|
return runSync(this._async.getSlotsStatus());
|
|
1832
1866
|
}
|
|
1867
|
+
releaseSlot(slotId) {
|
|
1868
|
+
return runSync(this._async.releaseSlot(slotId));
|
|
1869
|
+
}
|
|
1870
|
+
releaseAllSlots() {
|
|
1871
|
+
return runSync(this._async.releaseAllSlots());
|
|
1872
|
+
}
|
|
1833
1873
|
getSubagentsStatus() {
|
|
1834
1874
|
return runSync(this._async.getSubagentsStatus());
|
|
1835
1875
|
}
|