orchestrator-client 5.7.0 → 5.7.1
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 +545 -300
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +251 -77
- package/dist/index.d.ts +251 -77
- package/dist/index.js +545 -300
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -57,6 +57,10 @@ interface TaskCreateResponse {
|
|
|
57
57
|
interface TaskCancelResponse {
|
|
58
58
|
taskId: string;
|
|
59
59
|
killed: boolean;
|
|
60
|
+
via: "local" | "remote" | "none" | "fallback";
|
|
61
|
+
holderId?: string;
|
|
62
|
+
reason?: string;
|
|
63
|
+
message: string;
|
|
60
64
|
}
|
|
61
65
|
interface VSATaskCreateResponse extends TaskCreateResponse {
|
|
62
66
|
}
|
|
@@ -170,6 +174,10 @@ interface ErrorCountResult {
|
|
|
170
174
|
interface ErrorPurgeResult {
|
|
171
175
|
deleted: number;
|
|
172
176
|
}
|
|
177
|
+
interface ErrorEventListResult {
|
|
178
|
+
items: ErrorEventDetail[];
|
|
179
|
+
pagination: Pagination$1;
|
|
180
|
+
}
|
|
173
181
|
|
|
174
182
|
interface HealthStatus {
|
|
175
183
|
status: string;
|
|
@@ -317,10 +325,30 @@ interface ConfigurationStatus {
|
|
|
317
325
|
orchestratorModel: string | null;
|
|
318
326
|
summaryModel: string | null;
|
|
319
327
|
translateModel: string | null;
|
|
328
|
+
llmBackendsCount: number;
|
|
329
|
+
mcpServersCount: number;
|
|
330
|
+
totalTasks: number;
|
|
331
|
+
queuedTasks: number;
|
|
332
|
+
activeTasks: number;
|
|
333
|
+
pendingApprovalTasks: number;
|
|
334
|
+
subagentsEnabled: boolean;
|
|
320
335
|
localizationTargets: Record<string, string>[];
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
336
|
+
}
|
|
337
|
+
interface SubagentsStatus {
|
|
338
|
+
subagentsEnabled: boolean;
|
|
339
|
+
}
|
|
340
|
+
interface ReloadServicesResult {
|
|
341
|
+
timestamp: string;
|
|
342
|
+
llmBackends: Record<string, unknown>;
|
|
343
|
+
mcpServers: Record<string, unknown>;
|
|
344
|
+
slotManager: Record<string, unknown>;
|
|
345
|
+
nextScheduledReload?: string;
|
|
346
|
+
}
|
|
347
|
+
interface ReloadStatus {
|
|
348
|
+
enabled: boolean;
|
|
349
|
+
intervalHours: number | null;
|
|
350
|
+
lastReload?: string;
|
|
351
|
+
nextScheduledReload?: string;
|
|
324
352
|
}
|
|
325
353
|
|
|
326
354
|
interface ToolInfo {
|
|
@@ -333,6 +361,35 @@ interface ToolsListResult {
|
|
|
333
361
|
totalTools: number;
|
|
334
362
|
servers: string[];
|
|
335
363
|
}
|
|
364
|
+
interface ToolCatalogEntry {
|
|
365
|
+
name: string;
|
|
366
|
+
description: string;
|
|
367
|
+
provenanceKind: string;
|
|
368
|
+
provenanceServer?: string;
|
|
369
|
+
category: string;
|
|
370
|
+
tags: string[];
|
|
371
|
+
workflowIds?: string[];
|
|
372
|
+
dangerous: boolean;
|
|
373
|
+
hasFragment: boolean;
|
|
374
|
+
}
|
|
375
|
+
interface ToolCatalogResult {
|
|
376
|
+
tools: ToolCatalogEntry[];
|
|
377
|
+
totalTools: number;
|
|
378
|
+
providers: string[];
|
|
379
|
+
}
|
|
380
|
+
interface MCPRefreshResult {
|
|
381
|
+
results: Record<string, unknown>;
|
|
382
|
+
totalRefreshed: number;
|
|
383
|
+
}
|
|
384
|
+
interface CatalogValidationIssue {
|
|
385
|
+
toolName: string;
|
|
386
|
+
issueType: string;
|
|
387
|
+
detail: string;
|
|
388
|
+
}
|
|
389
|
+
interface CatalogValidationResult {
|
|
390
|
+
issues: CatalogValidationIssue[];
|
|
391
|
+
totalIssues: number;
|
|
392
|
+
}
|
|
336
393
|
|
|
337
394
|
interface CompactionEvent {
|
|
338
395
|
id: number;
|
|
@@ -375,12 +432,13 @@ interface AuthConfig {
|
|
|
375
432
|
}
|
|
376
433
|
interface WebSocketClientInfo {
|
|
377
434
|
clientId: string;
|
|
378
|
-
|
|
379
|
-
connected: boolean;
|
|
435
|
+
connectedAt: string;
|
|
380
436
|
}
|
|
381
437
|
interface WebSocketStatus {
|
|
382
438
|
connectedClients: number;
|
|
383
439
|
clients: WebSocketClientInfo[];
|
|
440
|
+
eventListenerHealthy: boolean;
|
|
441
|
+
lastEventTime?: string;
|
|
384
442
|
}
|
|
385
443
|
|
|
386
444
|
interface SuccessResponse {
|
|
@@ -388,11 +446,34 @@ interface SuccessResponse {
|
|
|
388
446
|
}
|
|
389
447
|
interface MioContext {
|
|
390
448
|
taskId: string;
|
|
449
|
+
modelId: string;
|
|
391
450
|
currentTokens: number;
|
|
392
451
|
contextLimit: number;
|
|
393
452
|
usagePercentage: number;
|
|
394
|
-
|
|
395
|
-
|
|
453
|
+
totalMessages: number;
|
|
454
|
+
activeMessages: number;
|
|
455
|
+
archivedMessages: number;
|
|
456
|
+
messagesWithoutTokenCount: number;
|
|
457
|
+
}
|
|
458
|
+
interface MioMemoryItem {
|
|
459
|
+
id: string;
|
|
460
|
+
taskId: string | null;
|
|
461
|
+
title: string;
|
|
462
|
+
content: string;
|
|
463
|
+
tags: string[];
|
|
464
|
+
linkedTaskId: string | null;
|
|
465
|
+
createdAt: string;
|
|
466
|
+
updatedAt: string;
|
|
467
|
+
}
|
|
468
|
+
interface MioMemoriesResult {
|
|
469
|
+
memories: MioMemoryItem[];
|
|
470
|
+
total: number;
|
|
471
|
+
}
|
|
472
|
+
interface MessageDeleteMultipleResult {
|
|
473
|
+
deletedIds: number[];
|
|
474
|
+
failedIds: number[];
|
|
475
|
+
totalDeleted: number;
|
|
476
|
+
totalFailed: number;
|
|
396
477
|
}
|
|
397
478
|
interface WorkflowStates {
|
|
398
479
|
validStates: Record<string, string[]>;
|
|
@@ -476,57 +557,75 @@ declare class OrchestratorAsync {
|
|
|
476
557
|
protected _put<T>(path: string, body?: unknown): Promise<T>;
|
|
477
558
|
protected _delete<T>(path: string): Promise<T>;
|
|
478
559
|
listTasks(params?: {
|
|
479
|
-
|
|
480
|
-
status?: string;
|
|
560
|
+
page?: number;
|
|
481
561
|
limit?: number;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
562
|
+
orderBy?: string;
|
|
563
|
+
orderDirection?: string;
|
|
564
|
+
workflowId?: string;
|
|
565
|
+
locale?: string;
|
|
485
566
|
}): Promise<TaskListResult>;
|
|
486
567
|
createTask(params: {
|
|
487
568
|
workflowId: string;
|
|
488
569
|
goalPrompt: string;
|
|
489
570
|
maxIterations?: number;
|
|
490
|
-
|
|
571
|
+
reasoningEffort?: string;
|
|
572
|
+
systemPrompt?: string;
|
|
573
|
+
developerPrompt?: string;
|
|
491
574
|
ticketId?: string;
|
|
492
|
-
|
|
493
|
-
|
|
575
|
+
ticketText?: string;
|
|
576
|
+
summary?: string;
|
|
577
|
+
problemSummary?: string;
|
|
578
|
+
solutionStrategy?: string;
|
|
579
|
+
agentModelId?: string;
|
|
580
|
+
orchestratorModelId?: string;
|
|
581
|
+
availableTools?: string[];
|
|
582
|
+
attachmentIds?: string[];
|
|
583
|
+
options?: Record<string, boolean>;
|
|
494
584
|
}): Promise<TaskCreateResponse>;
|
|
495
|
-
getTaskStatus(taskId: string): Promise<TaskDetail>;
|
|
496
|
-
|
|
585
|
+
getTaskStatus(taskId: string, locale?: string): Promise<TaskDetail>;
|
|
586
|
+
setTaskStatus(taskId: string, status: string): Promise<SuccessResponse>;
|
|
587
|
+
getTaskConversation(taskId: string, params?: {
|
|
588
|
+
includeSummaries?: boolean;
|
|
589
|
+
excludeArchived?: boolean;
|
|
590
|
+
locale?: string;
|
|
591
|
+
}): Promise<ConversationResult>;
|
|
497
592
|
getArchivedMessageContent(taskId: string, messageId: number): Promise<Record<string, unknown>>;
|
|
498
593
|
getTaskCompactions(taskId: string): Promise<CompactionEvent[]>;
|
|
499
594
|
getTaskJournal(taskId: string): Promise<TaskJournal>;
|
|
500
|
-
cancelTask(taskId: string): Promise<
|
|
595
|
+
cancelTask(taskId: string): Promise<TaskCancelResponse>;
|
|
501
596
|
deleteTask(taskId: string): Promise<TaskDeleteResult>;
|
|
502
597
|
deleteTasks(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
503
|
-
uploadAttachment(
|
|
504
|
-
downloadAttachment(
|
|
505
|
-
sendInteractiveMessage(taskId: string,
|
|
598
|
+
uploadAttachment(file: File | Blob, filename?: string): Promise<AttachmentUploadResponse>;
|
|
599
|
+
downloadAttachment(attachmentId: string): Promise<Blob>;
|
|
600
|
+
sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
506
601
|
markInteractiveComplete(taskId: string): Promise<SuccessResponse>;
|
|
507
602
|
markInteractiveFailed(taskId: string): Promise<SuccessResponse>;
|
|
508
|
-
approveInteractiveAction(taskId: string): Promise<SuccessResponse>;
|
|
509
|
-
|
|
603
|
+
approveInteractiveAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
604
|
+
stopInteractive(taskId: string): Promise<SuccessResponse>;
|
|
605
|
+
sendProactiveGuide(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
510
606
|
respondProactiveHelp(taskId: string, response: string): Promise<SuccessResponse>;
|
|
511
|
-
approveProactiveAction(taskId: string): Promise<SuccessResponse>;
|
|
512
|
-
sendTicketGuide(taskId: string,
|
|
607
|
+
approveProactiveAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
608
|
+
sendTicketGuide(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
513
609
|
respondTicketHelp(taskId: string, response: string): Promise<SuccessResponse>;
|
|
514
|
-
approveTicketAction(taskId: string): Promise<SuccessResponse>;
|
|
610
|
+
approveTicketAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
515
611
|
wakeTicket(taskId: string): Promise<SuccessResponse>;
|
|
516
|
-
sendMatrixMessage(taskId: string,
|
|
612
|
+
sendMatrixMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
517
613
|
markMatrixComplete(taskId: string): Promise<SuccessResponse>;
|
|
518
614
|
markMatrixFailed(taskId: string): Promise<SuccessResponse>;
|
|
519
|
-
approveMatrixAction(taskId: string): Promise<SuccessResponse>;
|
|
520
|
-
getMatrixConversation(taskId: string): Promise<MatrixConversationResult>;
|
|
615
|
+
approveMatrixAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
|
|
616
|
+
getMatrixConversation(taskId: string, phase?: number, includeSummaries?: boolean): Promise<MatrixConversationResult>;
|
|
521
617
|
createVSATask(params: {
|
|
618
|
+
userId: string;
|
|
522
619
|
goalPrompt: string;
|
|
523
620
|
title?: string;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
621
|
+
agentModelId?: string;
|
|
622
|
+
orchestratorModelId?: string;
|
|
623
|
+
attachmentIds?: string[];
|
|
624
|
+
options?: Record<string, boolean>;
|
|
527
625
|
delegatedToken?: string;
|
|
528
626
|
}): Promise<VSATaskCreateResponse>;
|
|
529
|
-
sendVSAMessage(taskId: string,
|
|
627
|
+
sendVSAMessage(taskId: string, message: string, options?: {
|
|
628
|
+
attachmentIds?: string[];
|
|
530
629
|
/** Short-lived AiDIT delegated token. When provided, overwrites the
|
|
531
630
|
* token stored for the task. Omitting leaves the existing token unchanged. */
|
|
532
631
|
delegatedToken?: string;
|
|
@@ -537,44 +636,56 @@ declare class OrchestratorAsync {
|
|
|
537
636
|
markVSAFailed(taskId: string): Promise<SuccessResponse>;
|
|
538
637
|
stopVSA(taskId: string): Promise<SuccessResponse>;
|
|
539
638
|
deleteVSA(taskId: string): Promise<SuccessResponse>;
|
|
540
|
-
listVSATasks(params?: {
|
|
541
|
-
status?: string;
|
|
639
|
+
listVSATasks(userId: string, params?: {
|
|
542
640
|
limit?: number;
|
|
543
641
|
offset?: number;
|
|
544
642
|
}): Promise<TaskListResult>;
|
|
545
|
-
searchVSATasks(query: string): Promise<TaskListResult>;
|
|
546
|
-
deleteVSATasksBulk(taskIds: string[]): Promise<
|
|
547
|
-
sendMioMessage(taskId: string,
|
|
548
|
-
approveMioAction(taskId: string): Promise<SuccessResponse>;
|
|
643
|
+
searchVSATasks(userId: string, query: string, limit?: number): Promise<TaskListResult>;
|
|
644
|
+
deleteVSATasksBulk(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
645
|
+
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
646
|
+
approveMioAction(taskId: string, approved?: boolean, feedback?: string): Promise<SuccessResponse>;
|
|
549
647
|
wakeMio(taskId: string): Promise<SuccessResponse>;
|
|
550
648
|
sendMioUserAway(taskId: string): Promise<SuccessResponse>;
|
|
551
649
|
markMioComplete(taskId: string): Promise<SuccessResponse>;
|
|
552
650
|
markMioFailed(taskId: string): Promise<SuccessResponse>;
|
|
553
651
|
archiveMio(taskId: string): Promise<SuccessResponse>;
|
|
554
652
|
getMioContext(taskId: string): Promise<MioContext>;
|
|
653
|
+
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
555
654
|
listTools(): Promise<ToolsListResult>;
|
|
655
|
+
getToolCatalog(): Promise<ToolCatalogResult>;
|
|
656
|
+
refreshMCPTools(): Promise<MCPRefreshResult>;
|
|
657
|
+
validateToolCatalog(): Promise<CatalogValidationResult>;
|
|
556
658
|
getWorkflowStates(): Promise<WorkflowStates>;
|
|
557
659
|
updateTaskModels(taskId: string, models: {
|
|
558
|
-
|
|
559
|
-
|
|
660
|
+
agentModelId?: string;
|
|
661
|
+
orchestratorModelId?: string;
|
|
560
662
|
}): Promise<SuccessResponse>;
|
|
561
|
-
updateTaskIteration(taskId: string, iteration
|
|
663
|
+
updateTaskIteration(taskId: string, iteration?: number, maxIterations?: number): Promise<SuccessResponse>;
|
|
562
664
|
updateTaskWorkflowData(taskId: string, workflowData: Record<string, unknown>): Promise<SuccessResponse>;
|
|
563
665
|
deleteMessage(taskId: string, messageId: number): Promise<SuccessResponse>;
|
|
564
|
-
deleteMessages(taskId: string, messageIds: number[]): Promise<
|
|
666
|
+
deleteMessages(taskId: string, messageIds: number[]): Promise<MessageDeleteMultipleResult>;
|
|
565
667
|
updateMessage(taskId: string, messageId: number, update: {
|
|
566
668
|
content?: string;
|
|
567
669
|
reasoning?: string;
|
|
568
670
|
}): Promise<SuccessResponse>;
|
|
569
671
|
resetMatrixToPhase(taskId: string, phase: number): Promise<SuccessResponse>;
|
|
570
|
-
getMessageTranslations(taskId: string, messageId: number
|
|
672
|
+
getMessageTranslations(taskId: string, messageId: number): Promise<MessageTranslationsResult>;
|
|
571
673
|
listErrors(params?: {
|
|
572
|
-
|
|
573
|
-
severity?: string;
|
|
574
|
-
source?: string;
|
|
674
|
+
page?: number;
|
|
575
675
|
limit?: number;
|
|
576
|
-
|
|
577
|
-
|
|
676
|
+
taskId?: string;
|
|
677
|
+
severity?: string[];
|
|
678
|
+
source?: string[];
|
|
679
|
+
workflowId?: string;
|
|
680
|
+
errorCode?: string;
|
|
681
|
+
exceptionType?: string;
|
|
682
|
+
holderId?: string;
|
|
683
|
+
requestId?: string;
|
|
684
|
+
search?: string;
|
|
685
|
+
since?: string;
|
|
686
|
+
until?: string;
|
|
687
|
+
orderDirection?: string;
|
|
688
|
+
}): Promise<ErrorEventListResult>;
|
|
578
689
|
getErrorDetail(errorId: string): Promise<ErrorEventDetail>;
|
|
579
690
|
getErrorStats(since?: string): Promise<ErrorStatsResult>;
|
|
580
691
|
countErrors(since?: string): Promise<ErrorCountResult>;
|
|
@@ -603,6 +714,10 @@ declare class OrchestratorAsync {
|
|
|
603
714
|
setTranslateModel(modelName: string): Promise<SuccessResponse>;
|
|
604
715
|
getTokenWorkerStatus(): Promise<TokenWorkerStatus>;
|
|
605
716
|
getSlotsStatus(): Promise<SlotsStatus>;
|
|
717
|
+
getSubagentsStatus(): Promise<SubagentsStatus>;
|
|
718
|
+
setSubagentsEnabled(enabled: boolean): Promise<SuccessResponse>;
|
|
719
|
+
reloadServices(): Promise<ReloadServicesResult>;
|
|
720
|
+
getReloadStatus(): Promise<ReloadStatus>;
|
|
606
721
|
getAuthConfig(): Promise<AuthConfig>;
|
|
607
722
|
getWebSocketStatus(): Promise<WebSocketStatus>;
|
|
608
723
|
streamTaskStatus(taskId: string): AsyncGenerator<Record<string, unknown>>;
|
|
@@ -621,34 +736,37 @@ declare class Orchestrator {
|
|
|
621
736
|
close(): void;
|
|
622
737
|
listTasks(params?: Parameters<OrchestratorAsync["listTasks"]>[0]): TaskListResult;
|
|
623
738
|
createTask(params: Parameters<OrchestratorAsync["createTask"]>[0]): TaskCreateResponse;
|
|
624
|
-
getTaskStatus(taskId: string): TaskDetail;
|
|
625
|
-
|
|
739
|
+
getTaskStatus(taskId: string, locale?: string): TaskDetail;
|
|
740
|
+
setTaskStatus(taskId: string, status: string): SuccessResponse;
|
|
741
|
+
getTaskConversation(taskId: string, params?: Parameters<OrchestratorAsync["getTaskConversation"]>[1]): ConversationResult;
|
|
626
742
|
getArchivedMessageContent(taskId: string, messageId: number): Record<string, unknown>;
|
|
627
743
|
getTaskCompactions(taskId: string): CompactionEvent[];
|
|
628
744
|
getTaskJournal(taskId: string): TaskJournal;
|
|
629
|
-
cancelTask(taskId: string):
|
|
745
|
+
cancelTask(taskId: string): TaskCancelResponse;
|
|
630
746
|
deleteTask(taskId: string): TaskDeleteResult;
|
|
631
747
|
deleteTasks(taskIds: string[]): TaskDeleteResult;
|
|
632
|
-
uploadAttachment(
|
|
633
|
-
downloadAttachment(
|
|
634
|
-
sendInteractiveMessage(taskId: string,
|
|
748
|
+
uploadAttachment(file: File | Blob, filename?: string): AttachmentUploadResponse;
|
|
749
|
+
downloadAttachment(attachmentId: string): Blob;
|
|
750
|
+
sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
635
751
|
markInteractiveComplete(taskId: string): SuccessResponse;
|
|
636
752
|
markInteractiveFailed(taskId: string): SuccessResponse;
|
|
637
|
-
approveInteractiveAction(taskId: string): SuccessResponse;
|
|
638
|
-
|
|
753
|
+
approveInteractiveAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
754
|
+
stopInteractive(taskId: string): SuccessResponse;
|
|
755
|
+
sendProactiveGuide(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
639
756
|
respondProactiveHelp(taskId: string, response: string): SuccessResponse;
|
|
640
|
-
approveProactiveAction(taskId: string): SuccessResponse;
|
|
641
|
-
sendTicketGuide(taskId: string,
|
|
757
|
+
approveProactiveAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
758
|
+
sendTicketGuide(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
642
759
|
respondTicketHelp(taskId: string, response: string): SuccessResponse;
|
|
643
|
-
approveTicketAction(taskId: string): SuccessResponse;
|
|
760
|
+
approveTicketAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
644
761
|
wakeTicket(taskId: string): SuccessResponse;
|
|
645
|
-
sendMatrixMessage(taskId: string,
|
|
762
|
+
sendMatrixMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
646
763
|
markMatrixComplete(taskId: string): SuccessResponse;
|
|
647
764
|
markMatrixFailed(taskId: string): SuccessResponse;
|
|
648
|
-
approveMatrixAction(taskId: string): SuccessResponse;
|
|
649
|
-
getMatrixConversation(taskId: string): MatrixConversationResult;
|
|
765
|
+
approveMatrixAction(taskId: string, approved?: boolean): SuccessResponse;
|
|
766
|
+
getMatrixConversation(taskId: string, phase?: number, includeSummaries?: boolean): MatrixConversationResult;
|
|
650
767
|
createVSATask(params: Parameters<OrchestratorAsync["createVSATask"]>[0]): VSATaskCreateResponse;
|
|
651
|
-
sendVSAMessage(taskId: string,
|
|
768
|
+
sendVSAMessage(taskId: string, message: string, options?: {
|
|
769
|
+
attachmentIds?: string[];
|
|
652
770
|
delegatedToken?: string;
|
|
653
771
|
}): SuccessResponse;
|
|
654
772
|
renameVSATask(taskId: string, title: string): SuccessResponse;
|
|
@@ -657,34 +775,38 @@ declare class Orchestrator {
|
|
|
657
775
|
markVSAFailed(taskId: string): SuccessResponse;
|
|
658
776
|
stopVSA(taskId: string): SuccessResponse;
|
|
659
777
|
deleteVSA(taskId: string): SuccessResponse;
|
|
660
|
-
listVSATasks(params?: Parameters<OrchestratorAsync["listVSATasks"]>[
|
|
661
|
-
searchVSATasks(query: string): TaskListResult;
|
|
662
|
-
deleteVSATasksBulk(taskIds: string[]):
|
|
663
|
-
sendMioMessage(taskId: string,
|
|
664
|
-
approveMioAction(taskId: string): SuccessResponse;
|
|
778
|
+
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
779
|
+
searchVSATasks(userId: string, query: string, limit?: number): TaskListResult;
|
|
780
|
+
deleteVSATasksBulk(taskIds: string[]): TaskDeleteResult;
|
|
781
|
+
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
782
|
+
approveMioAction(taskId: string, approved?: boolean, feedback?: string): SuccessResponse;
|
|
665
783
|
wakeMio(taskId: string): SuccessResponse;
|
|
666
784
|
sendMioUserAway(taskId: string): SuccessResponse;
|
|
667
785
|
markMioComplete(taskId: string): SuccessResponse;
|
|
668
786
|
markMioFailed(taskId: string): SuccessResponse;
|
|
669
787
|
archiveMio(taskId: string): SuccessResponse;
|
|
670
788
|
getMioContext(taskId: string): MioContext;
|
|
789
|
+
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
671
790
|
listTools(): ToolsListResult;
|
|
791
|
+
getToolCatalog(): ToolCatalogResult;
|
|
792
|
+
refreshMCPTools(): MCPRefreshResult;
|
|
793
|
+
validateToolCatalog(): CatalogValidationResult;
|
|
672
794
|
getWorkflowStates(): WorkflowStates;
|
|
673
795
|
updateTaskModels(taskId: string, models: {
|
|
674
|
-
|
|
675
|
-
|
|
796
|
+
agentModelId?: string;
|
|
797
|
+
orchestratorModelId?: string;
|
|
676
798
|
}): SuccessResponse;
|
|
677
|
-
updateTaskIteration(taskId: string, iteration
|
|
799
|
+
updateTaskIteration(taskId: string, iteration?: number, maxIterations?: number): SuccessResponse;
|
|
678
800
|
updateTaskWorkflowData(taskId: string, workflowData: Record<string, unknown>): SuccessResponse;
|
|
679
801
|
deleteMessage(taskId: string, messageId: number): SuccessResponse;
|
|
680
|
-
deleteMessages(taskId: string, messageIds: number[]):
|
|
802
|
+
deleteMessages(taskId: string, messageIds: number[]): MessageDeleteMultipleResult;
|
|
681
803
|
updateMessage(taskId: string, messageId: number, update: {
|
|
682
804
|
content?: string;
|
|
683
805
|
reasoning?: string;
|
|
684
806
|
}): SuccessResponse;
|
|
685
807
|
resetMatrixToPhase(taskId: string, phase: number): SuccessResponse;
|
|
686
|
-
getMessageTranslations(taskId: string, messageId: number
|
|
687
|
-
listErrors(params?: Parameters<OrchestratorAsync["listErrors"]>[0]):
|
|
808
|
+
getMessageTranslations(taskId: string, messageId: number): MessageTranslationsResult;
|
|
809
|
+
listErrors(params?: Parameters<OrchestratorAsync["listErrors"]>[0]): ErrorEventListResult;
|
|
688
810
|
getErrorDetail(errorId: string): ErrorEventDetail;
|
|
689
811
|
getErrorStats(since?: string): ErrorStatsResult;
|
|
690
812
|
countErrors(since?: string): ErrorCountResult;
|
|
@@ -713,6 +835,10 @@ declare class Orchestrator {
|
|
|
713
835
|
setTranslateModel(modelName: string): SuccessResponse;
|
|
714
836
|
getTokenWorkerStatus(): TokenWorkerStatus;
|
|
715
837
|
getSlotsStatus(): SlotsStatus;
|
|
838
|
+
getSubagentsStatus(): SubagentsStatus;
|
|
839
|
+
setSubagentsEnabled(enabled: boolean): SuccessResponse;
|
|
840
|
+
reloadServices(): ReloadServicesResult;
|
|
841
|
+
getReloadStatus(): ReloadStatus;
|
|
716
842
|
getAuthConfig(): AuthConfig;
|
|
717
843
|
getWebSocketStatus(): WebSocketStatus;
|
|
718
844
|
streamTaskStatus(_taskId: string): Record<string, unknown>[];
|
|
@@ -803,6 +929,10 @@ interface RealtimeClientOptions {
|
|
|
803
929
|
}
|
|
804
930
|
/**
|
|
805
931
|
* Socket.IO-based realtime client for receiving orchestrator events.
|
|
932
|
+
*
|
|
933
|
+
* The server wraps all domain events in a `message` Socket.IO event with an
|
|
934
|
+
* inner `event_type` field. This client unwraps the envelope and dispatches
|
|
935
|
+
* to registered handlers by event_type.
|
|
806
936
|
*/
|
|
807
937
|
declare class RealtimeClient {
|
|
808
938
|
private _baseUrl;
|
|
@@ -815,16 +945,60 @@ declare class RealtimeClient {
|
|
|
815
945
|
get connected(): boolean;
|
|
816
946
|
connect(): Promise<void>;
|
|
817
947
|
disconnect(): Promise<void>;
|
|
948
|
+
/**
|
|
949
|
+
* Dispatch a message envelope to registered handlers.
|
|
950
|
+
* The server sends: socket.emit("message", {type: "message", event: {..., event_type: "...", ...}})
|
|
951
|
+
*/
|
|
952
|
+
private _dispatch;
|
|
818
953
|
/**
|
|
819
954
|
* Subscribe to realtime events for a specific task.
|
|
955
|
+
* Emits a `join` event with `{rooms: ["task:{taskId}"]}`.
|
|
820
956
|
*/
|
|
821
|
-
subscribeTask(taskId: string):
|
|
957
|
+
subscribeTask(taskId: string): void;
|
|
822
958
|
/**
|
|
823
959
|
* Unsubscribe from realtime events for a specific task.
|
|
960
|
+
* Emits a `leave` event with `{rooms: ["task:{taskId}"]}`.
|
|
824
961
|
*/
|
|
825
|
-
unsubscribeTask(taskId: string):
|
|
962
|
+
unsubscribeTask(taskId: string): void;
|
|
963
|
+
/**
|
|
964
|
+
* Subscribe to event-type-scoped rooms.
|
|
965
|
+
* e.g. subscribeEvents("task_created", "task_deleted")
|
|
966
|
+
*/
|
|
967
|
+
subscribeEvents(...eventTypes: string[]): void;
|
|
968
|
+
/**
|
|
969
|
+
* Unsubscribe from event-type-scoped rooms.
|
|
970
|
+
*/
|
|
971
|
+
unsubscribeEvents(...eventTypes: string[]): void;
|
|
972
|
+
/**
|
|
973
|
+
* Subscribe to the `all` broadcast room (receives all events).
|
|
974
|
+
*/
|
|
975
|
+
subscribeAll(): void;
|
|
976
|
+
/**
|
|
977
|
+
* Subscribe to a locale-specific room.
|
|
978
|
+
*/
|
|
979
|
+
subscribeLocale(locale: string): void;
|
|
980
|
+
/**
|
|
981
|
+
* Unsubscribe from a locale-specific room.
|
|
982
|
+
*/
|
|
983
|
+
unsubscribeLocale(locale: string): void;
|
|
984
|
+
/**
|
|
985
|
+
* Join arbitrary rooms by name.
|
|
986
|
+
*/
|
|
987
|
+
joinRooms(rooms: string[]): void;
|
|
988
|
+
/**
|
|
989
|
+
* Leave arbitrary rooms by name.
|
|
990
|
+
*/
|
|
991
|
+
leaveRooms(rooms: string[]): void;
|
|
992
|
+
/**
|
|
993
|
+
* Send a ping to the server.
|
|
994
|
+
*/
|
|
995
|
+
ping(): void;
|
|
826
996
|
/**
|
|
827
997
|
* Register a handler for a specific event type.
|
|
998
|
+
*
|
|
999
|
+
* Domain events (task_created, task_status_changed, etc.) are dispatched
|
|
1000
|
+
* via the message envelope. Raw socket events (connect, disconnect,
|
|
1001
|
+
* connection_established, rooms_updated, pong) are wired directly.
|
|
828
1002
|
*/
|
|
829
1003
|
on(event: string, handler: EventHandler): void;
|
|
830
1004
|
/**
|