orchestrator-client 5.12.3 → 5.13.2

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
@@ -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 {
@@ -272,6 +280,11 @@ interface MetricSnapshot {
272
280
  llmAvgResponseTimeSec: number | null;
273
281
  llmRequestsPerMinute: number | null;
274
282
  avgTaskSolutionTimeSec: number | null;
283
+ taskRunsDaily: TaskRunCount[] | null;
284
+ }
285
+ interface TaskRunCount {
286
+ day: string;
287
+ count: number;
275
288
  }
276
289
 
277
290
  interface SystemStatusSettings {
@@ -288,12 +301,17 @@ interface SystemStatusSettings {
288
301
  locale: string;
289
302
  language: string;
290
303
  }[] | null;
304
+ skillDescriptionMaxChars: number | null;
305
+ vsaProfileMaxChars: number | null;
306
+ vsaMemoryMaxChars: number | null;
307
+ vsaProfileEntryMaxChars: number | null;
291
308
  }
292
309
  interface SystemStatus {
293
310
  isConfigured: boolean;
294
311
  missingFields: string[];
295
312
  settings: SystemStatusSettings;
296
313
  version: number;
314
+ devMode: boolean;
297
315
  }
298
316
  interface LLMBackendInfo {
299
317
  baseUrl: string;
@@ -336,6 +354,8 @@ interface TaskHandlerReplica {
336
354
  leaseTtlSeconds: number;
337
355
  startedAt: string;
338
356
  lastHeartbeatAt: string;
357
+ leaderRoles?: string[];
358
+ memoryUsageMb?: number | null;
339
359
  }
340
360
  interface TaskHandlerCluster {
341
361
  maxConcurrentTasksPerReplica: number;
@@ -384,9 +404,12 @@ interface TokenWorkerStatus {
384
404
  interface SlotInfo {
385
405
  id: string;
386
406
  ip: string;
407
+ podName: string | null;
408
+ memoryUsageMb: number | null;
387
409
  status: string;
388
410
  taskId: string | null;
389
411
  lastActivity: string | null;
412
+ acquiredAt: string | null;
390
413
  idleSeconds: number | null;
391
414
  discoveredAt?: string | null;
392
415
  }
@@ -399,6 +422,10 @@ interface SlotsStatus {
399
422
  poolSource: string;
400
423
  slots: SlotInfo[];
401
424
  }
425
+ interface SlotReleaseResult {
426
+ releasedSlots: string[];
427
+ failedSlots: string[];
428
+ }
402
429
  interface ConfigurationStatus {
403
430
  agentModel: string | null;
404
431
  orchestratorModel: string | null;
@@ -709,6 +736,7 @@ declare class OrchestratorAsync {
709
736
  orderBy?: string;
710
737
  orderDirection?: string;
711
738
  workflowId?: string;
739
+ createdAfter?: string;
712
740
  locale?: string;
713
741
  }): Promise<TaskListResult>;
714
742
  createTask(params: {
@@ -840,7 +868,7 @@ declare class OrchestratorAsync {
840
868
  query?: string;
841
869
  limit?: number;
842
870
  offset?: number;
843
- }): Promise<string[]>;
871
+ }): Promise<ProfileUserSummary[]>;
844
872
  listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
845
873
  getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
846
874
  createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
@@ -885,7 +913,7 @@ declare class OrchestratorAsync {
885
913
  healthDetailed(): Promise<HealthDetail>;
886
914
  ready(): Promise<ReadinessResult>;
887
915
  healthLeader(): Promise<LeaderStatus>;
888
- getMetrics(types?: string): Promise<MetricSnapshot>;
916
+ getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
889
917
  getSystemStatus(): Promise<SystemStatus>;
890
918
  updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
891
919
  getPromptMetadata(): Promise<PromptMetadataResponse>;
@@ -907,6 +935,8 @@ declare class OrchestratorAsync {
907
935
  setTranslateModel(modelName: string): Promise<SuccessResponse>;
908
936
  getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
909
937
  getSlotsStatus(): Promise<SlotsStatus>;
938
+ releaseSlot(slotId: string): Promise<SlotReleaseResult>;
939
+ releaseAllSlots(): Promise<SlotReleaseResult>;
910
940
  getSubagentsStatus(): Promise<SubagentsStatus>;
911
941
  setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
912
942
  reloadServices(): Promise<ReloadServicesResult>;
@@ -998,7 +1028,7 @@ declare class Orchestrator {
998
1028
  deleted: boolean;
999
1029
  skillId: number;
1000
1030
  };
1001
- listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): string[];
1031
+ listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
1002
1032
  listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
1003
1033
  getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
1004
1034
  createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
@@ -1028,7 +1058,7 @@ declare class Orchestrator {
1028
1058
  healthDetailed(): HealthDetail;
1029
1059
  ready(): ReadinessResult;
1030
1060
  healthLeader(): LeaderStatus;
1031
- getMetrics(types?: string): MetricSnapshot;
1061
+ getMetrics(types?: string, interval?: string): MetricSnapshot;
1032
1062
  getSystemStatus(): SystemStatus;
1033
1063
  updateSettings(settings: Record<string, unknown>): SystemStatus;
1034
1064
  getPromptMetadata(): PromptMetadataResponse;
@@ -1050,6 +1080,8 @@ declare class Orchestrator {
1050
1080
  setTranslateModel(modelName: string): SuccessResponse;
1051
1081
  getTokenWorkerStatus(): TokenWorkerStatus;
1052
1082
  getSlotsStatus(): SlotsStatus;
1083
+ releaseSlot(slotId: string): SlotReleaseResult;
1084
+ releaseAllSlots(): SlotReleaseResult;
1053
1085
  getSubagentsStatus(): SubagentsStatus;
1054
1086
  setSubagentsEnabled(enabled: boolean): SuccessResponse;
1055
1087
  reloadServices(): ReloadServicesResult;
@@ -1552,4 +1584,4 @@ declare function deepCamelCase<T>(obj: T): T;
1552
1584
  */
1553
1585
  declare const VERSION = "5.6.0";
1554
1586
 
1555
- 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 };
1587
+ 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 {
@@ -272,6 +280,11 @@ interface MetricSnapshot {
272
280
  llmAvgResponseTimeSec: number | null;
273
281
  llmRequestsPerMinute: number | null;
274
282
  avgTaskSolutionTimeSec: number | null;
283
+ taskRunsDaily: TaskRunCount[] | null;
284
+ }
285
+ interface TaskRunCount {
286
+ day: string;
287
+ count: number;
275
288
  }
276
289
 
277
290
  interface SystemStatusSettings {
@@ -288,12 +301,17 @@ interface SystemStatusSettings {
288
301
  locale: string;
289
302
  language: string;
290
303
  }[] | null;
304
+ skillDescriptionMaxChars: number | null;
305
+ vsaProfileMaxChars: number | null;
306
+ vsaMemoryMaxChars: number | null;
307
+ vsaProfileEntryMaxChars: number | null;
291
308
  }
292
309
  interface SystemStatus {
293
310
  isConfigured: boolean;
294
311
  missingFields: string[];
295
312
  settings: SystemStatusSettings;
296
313
  version: number;
314
+ devMode: boolean;
297
315
  }
298
316
  interface LLMBackendInfo {
299
317
  baseUrl: string;
@@ -336,6 +354,8 @@ interface TaskHandlerReplica {
336
354
  leaseTtlSeconds: number;
337
355
  startedAt: string;
338
356
  lastHeartbeatAt: string;
357
+ leaderRoles?: string[];
358
+ memoryUsageMb?: number | null;
339
359
  }
340
360
  interface TaskHandlerCluster {
341
361
  maxConcurrentTasksPerReplica: number;
@@ -384,9 +404,12 @@ interface TokenWorkerStatus {
384
404
  interface SlotInfo {
385
405
  id: string;
386
406
  ip: string;
407
+ podName: string | null;
408
+ memoryUsageMb: number | null;
387
409
  status: string;
388
410
  taskId: string | null;
389
411
  lastActivity: string | null;
412
+ acquiredAt: string | null;
390
413
  idleSeconds: number | null;
391
414
  discoveredAt?: string | null;
392
415
  }
@@ -399,6 +422,10 @@ interface SlotsStatus {
399
422
  poolSource: string;
400
423
  slots: SlotInfo[];
401
424
  }
425
+ interface SlotReleaseResult {
426
+ releasedSlots: string[];
427
+ failedSlots: string[];
428
+ }
402
429
  interface ConfigurationStatus {
403
430
  agentModel: string | null;
404
431
  orchestratorModel: string | null;
@@ -709,6 +736,7 @@ declare class OrchestratorAsync {
709
736
  orderBy?: string;
710
737
  orderDirection?: string;
711
738
  workflowId?: string;
739
+ createdAfter?: string;
712
740
  locale?: string;
713
741
  }): Promise<TaskListResult>;
714
742
  createTask(params: {
@@ -840,7 +868,7 @@ declare class OrchestratorAsync {
840
868
  query?: string;
841
869
  limit?: number;
842
870
  offset?: number;
843
- }): Promise<string[]>;
871
+ }): Promise<ProfileUserSummary[]>;
844
872
  listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
845
873
  getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
846
874
  createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
@@ -885,7 +913,7 @@ declare class OrchestratorAsync {
885
913
  healthDetailed(): Promise<HealthDetail>;
886
914
  ready(): Promise<ReadinessResult>;
887
915
  healthLeader(): Promise<LeaderStatus>;
888
- getMetrics(types?: string): Promise<MetricSnapshot>;
916
+ getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
889
917
  getSystemStatus(): Promise<SystemStatus>;
890
918
  updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
891
919
  getPromptMetadata(): Promise<PromptMetadataResponse>;
@@ -907,6 +935,8 @@ declare class OrchestratorAsync {
907
935
  setTranslateModel(modelName: string): Promise<SuccessResponse>;
908
936
  getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
909
937
  getSlotsStatus(): Promise<SlotsStatus>;
938
+ releaseSlot(slotId: string): Promise<SlotReleaseResult>;
939
+ releaseAllSlots(): Promise<SlotReleaseResult>;
910
940
  getSubagentsStatus(): Promise<SubagentsStatus>;
911
941
  setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
912
942
  reloadServices(): Promise<ReloadServicesResult>;
@@ -998,7 +1028,7 @@ declare class Orchestrator {
998
1028
  deleted: boolean;
999
1029
  skillId: number;
1000
1030
  };
1001
- listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): string[];
1031
+ listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
1002
1032
  listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
1003
1033
  getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
1004
1034
  createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
@@ -1028,7 +1058,7 @@ declare class Orchestrator {
1028
1058
  healthDetailed(): HealthDetail;
1029
1059
  ready(): ReadinessResult;
1030
1060
  healthLeader(): LeaderStatus;
1031
- getMetrics(types?: string): MetricSnapshot;
1061
+ getMetrics(types?: string, interval?: string): MetricSnapshot;
1032
1062
  getSystemStatus(): SystemStatus;
1033
1063
  updateSettings(settings: Record<string, unknown>): SystemStatus;
1034
1064
  getPromptMetadata(): PromptMetadataResponse;
@@ -1050,6 +1080,8 @@ declare class Orchestrator {
1050
1080
  setTranslateModel(modelName: string): SuccessResponse;
1051
1081
  getTokenWorkerStatus(): TokenWorkerStatus;
1052
1082
  getSlotsStatus(): SlotsStatus;
1083
+ releaseSlot(slotId: string): SlotReleaseResult;
1084
+ releaseAllSlots(): SlotReleaseResult;
1053
1085
  getSubagentsStatus(): SubagentsStatus;
1054
1086
  setSubagentsEnabled(enabled: boolean): SuccessResponse;
1055
1087
  reloadServices(): ReloadServicesResult;
@@ -1552,4 +1584,4 @@ declare function deepCamelCase<T>(obj: T): T;
1552
1584
  */
1553
1585
  declare const VERSION = "5.6.0";
1554
1586
 
1555
- 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 };
1587
+ 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("/profiles/users", {
988
- query: params?.query,
989
- limit: params?.limit,
990
- offset: params?.offset
991
- });
992
- return data ?? [];
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.types = types;
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
  }