orchestrator-client 5.12.3 → 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.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,9 +399,12 @@ 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;
391
409
  discoveredAt?: string | null;
392
410
  }
@@ -399,6 +417,10 @@ interface SlotsStatus {
399
417
  poolSource: string;
400
418
  slots: SlotInfo[];
401
419
  }
420
+ interface SlotReleaseResult {
421
+ releasedSlots: string[];
422
+ failedSlots: string[];
423
+ }
402
424
  interface ConfigurationStatus {
403
425
  agentModel: string | null;
404
426
  orchestratorModel: string | null;
@@ -709,6 +731,7 @@ declare class OrchestratorAsync {
709
731
  orderBy?: string;
710
732
  orderDirection?: string;
711
733
  workflowId?: string;
734
+ createdAfter?: string;
712
735
  locale?: string;
713
736
  }): Promise<TaskListResult>;
714
737
  createTask(params: {
@@ -840,7 +863,7 @@ declare class OrchestratorAsync {
840
863
  query?: string;
841
864
  limit?: number;
842
865
  offset?: number;
843
- }): Promise<string[]>;
866
+ }): Promise<ProfileUserSummary[]>;
844
867
  listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
845
868
  getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
846
869
  createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
@@ -885,7 +908,7 @@ declare class OrchestratorAsync {
885
908
  healthDetailed(): Promise<HealthDetail>;
886
909
  ready(): Promise<ReadinessResult>;
887
910
  healthLeader(): Promise<LeaderStatus>;
888
- getMetrics(types?: string): Promise<MetricSnapshot>;
911
+ getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
889
912
  getSystemStatus(): Promise<SystemStatus>;
890
913
  updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
891
914
  getPromptMetadata(): Promise<PromptMetadataResponse>;
@@ -907,6 +930,8 @@ declare class OrchestratorAsync {
907
930
  setTranslateModel(modelName: string): Promise<SuccessResponse>;
908
931
  getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
909
932
  getSlotsStatus(): Promise<SlotsStatus>;
933
+ releaseSlot(slotId: string): Promise<SlotReleaseResult>;
934
+ releaseAllSlots(): Promise<SlotReleaseResult>;
910
935
  getSubagentsStatus(): Promise<SubagentsStatus>;
911
936
  setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
912
937
  reloadServices(): Promise<ReloadServicesResult>;
@@ -998,7 +1023,7 @@ declare class Orchestrator {
998
1023
  deleted: boolean;
999
1024
  skillId: number;
1000
1025
  };
1001
- listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): string[];
1026
+ listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
1002
1027
  listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
1003
1028
  getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
1004
1029
  createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
@@ -1028,7 +1053,7 @@ declare class Orchestrator {
1028
1053
  healthDetailed(): HealthDetail;
1029
1054
  ready(): ReadinessResult;
1030
1055
  healthLeader(): LeaderStatus;
1031
- getMetrics(types?: string): MetricSnapshot;
1056
+ getMetrics(types?: string, interval?: string): MetricSnapshot;
1032
1057
  getSystemStatus(): SystemStatus;
1033
1058
  updateSettings(settings: Record<string, unknown>): SystemStatus;
1034
1059
  getPromptMetadata(): PromptMetadataResponse;
@@ -1050,6 +1075,8 @@ declare class Orchestrator {
1050
1075
  setTranslateModel(modelName: string): SuccessResponse;
1051
1076
  getTokenWorkerStatus(): TokenWorkerStatus;
1052
1077
  getSlotsStatus(): SlotsStatus;
1078
+ releaseSlot(slotId: string): SlotReleaseResult;
1079
+ releaseAllSlots(): SlotReleaseResult;
1053
1080
  getSubagentsStatus(): SubagentsStatus;
1054
1081
  setSubagentsEnabled(enabled: boolean): SuccessResponse;
1055
1082
  reloadServices(): ReloadServicesResult;
@@ -1552,4 +1579,4 @@ declare function deepCamelCase<T>(obj: T): T;
1552
1579
  */
1553
1580
  declare const VERSION = "5.6.0";
1554
1581
 
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 };
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,9 +399,12 @@ 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;
391
409
  discoveredAt?: string | null;
392
410
  }
@@ -399,6 +417,10 @@ interface SlotsStatus {
399
417
  poolSource: string;
400
418
  slots: SlotInfo[];
401
419
  }
420
+ interface SlotReleaseResult {
421
+ releasedSlots: string[];
422
+ failedSlots: string[];
423
+ }
402
424
  interface ConfigurationStatus {
403
425
  agentModel: string | null;
404
426
  orchestratorModel: string | null;
@@ -709,6 +731,7 @@ declare class OrchestratorAsync {
709
731
  orderBy?: string;
710
732
  orderDirection?: string;
711
733
  workflowId?: string;
734
+ createdAfter?: string;
712
735
  locale?: string;
713
736
  }): Promise<TaskListResult>;
714
737
  createTask(params: {
@@ -840,7 +863,7 @@ declare class OrchestratorAsync {
840
863
  query?: string;
841
864
  limit?: number;
842
865
  offset?: number;
843
- }): Promise<string[]>;
866
+ }): Promise<ProfileUserSummary[]>;
844
867
  listProfileEntries(userId: string, docType?: "profile" | "memory"): Promise<ProfileEntryListResult>;
845
868
  getProfileUsage(userId: string, docType?: "profile" | "memory"): Promise<ProfileUsageResult>;
846
869
  createProfileEntry(userId: string, payload: ProfileEntryCreatePayload): Promise<ProfileEntry>;
@@ -885,7 +908,7 @@ declare class OrchestratorAsync {
885
908
  healthDetailed(): Promise<HealthDetail>;
886
909
  ready(): Promise<ReadinessResult>;
887
910
  healthLeader(): Promise<LeaderStatus>;
888
- getMetrics(types?: string): Promise<MetricSnapshot>;
911
+ getMetrics(types?: string, interval?: string): Promise<MetricSnapshot>;
889
912
  getSystemStatus(): Promise<SystemStatus>;
890
913
  updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
891
914
  getPromptMetadata(): Promise<PromptMetadataResponse>;
@@ -907,6 +930,8 @@ declare class OrchestratorAsync {
907
930
  setTranslateModel(modelName: string): Promise<SuccessResponse>;
908
931
  getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
909
932
  getSlotsStatus(): Promise<SlotsStatus>;
933
+ releaseSlot(slotId: string): Promise<SlotReleaseResult>;
934
+ releaseAllSlots(): Promise<SlotReleaseResult>;
910
935
  getSubagentsStatus(): Promise<SubagentsStatus>;
911
936
  setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
912
937
  reloadServices(): Promise<ReloadServicesResult>;
@@ -998,7 +1023,7 @@ declare class Orchestrator {
998
1023
  deleted: boolean;
999
1024
  skillId: number;
1000
1025
  };
1001
- listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): string[];
1026
+ listProfileUsers(params?: Parameters<OrchestratorAsync["listProfileUsers"]>[0]): ProfileUserSummary[];
1002
1027
  listProfileEntries(userId: string, docType?: "profile" | "memory"): ProfileEntryListResult;
1003
1028
  getProfileUsage(userId: string, docType?: "profile" | "memory"): ProfileUsageResult;
1004
1029
  createProfileEntry(userId: string, payload: Parameters<OrchestratorAsync["createProfileEntry"]>[1]): ProfileEntry;
@@ -1028,7 +1053,7 @@ declare class Orchestrator {
1028
1053
  healthDetailed(): HealthDetail;
1029
1054
  ready(): ReadinessResult;
1030
1055
  healthLeader(): LeaderStatus;
1031
- getMetrics(types?: string): MetricSnapshot;
1056
+ getMetrics(types?: string, interval?: string): MetricSnapshot;
1032
1057
  getSystemStatus(): SystemStatus;
1033
1058
  updateSettings(settings: Record<string, unknown>): SystemStatus;
1034
1059
  getPromptMetadata(): PromptMetadataResponse;
@@ -1050,6 +1075,8 @@ declare class Orchestrator {
1050
1075
  setTranslateModel(modelName: string): SuccessResponse;
1051
1076
  getTokenWorkerStatus(): TokenWorkerStatus;
1052
1077
  getSlotsStatus(): SlotsStatus;
1078
+ releaseSlot(slotId: string): SlotReleaseResult;
1079
+ releaseAllSlots(): SlotReleaseResult;
1053
1080
  getSubagentsStatus(): SubagentsStatus;
1054
1081
  setSubagentsEnabled(enabled: boolean): SuccessResponse;
1055
1082
  reloadServices(): ReloadServicesResult;
@@ -1552,4 +1579,4 @@ declare function deepCamelCase<T>(obj: T): T;
1552
1579
  */
1553
1580
  declare const VERSION = "5.6.0";
1554
1581
 
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 };
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("/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
  }