@nikcli-ai/sdk 1.180.0 → 1.182.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.
@@ -332,8 +332,55 @@ export type Pty = {
332
332
  pid: number;
333
333
  };
334
334
  export type LoopBooleanResult = boolean;
335
- export type SessionList = Array<any>;
336
- export type SessionInfo = any;
335
+ export type FileDiff = {
336
+ file: string;
337
+ patch: string;
338
+ additions: number;
339
+ deletions: number;
340
+ status?: "added" | "deleted" | "modified" | undefined;
341
+ before: string;
342
+ after: string;
343
+ };
344
+ export type SessionGithub = {
345
+ owner: string;
346
+ repo: string;
347
+ fullName: string;
348
+ baseBranch: string;
349
+ headBranch: string;
350
+ repositoryDirectory?: string | undefined;
351
+ cloneUrl?: string | undefined;
352
+ htmlUrl?: string | undefined;
353
+ private?: boolean | undefined;
354
+ worktree: {
355
+ name: string;
356
+ branch: string;
357
+ directory: string;
358
+ cleanedAt?: number | undefined;
359
+ };
360
+ pullRequest?: {
361
+ number: number;
362
+ url: string;
363
+ title: string;
364
+ } | undefined;
365
+ lastCommitSha?: string | undefined;
366
+ publishedAt?: number | undefined;
367
+ publishError?: string | undefined;
368
+ };
369
+ export type SessionMobile = {
370
+ platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
371
+ primaryPlatform: string;
372
+ method: string;
373
+ detectedAt: number;
374
+ buildStatus?: "unknown" | "building" | "succeeded" | "failed" | undefined;
375
+ lastBuildAt?: number | undefined;
376
+ artifacts?: Array<{
377
+ platform: string;
378
+ path: string;
379
+ size?: number | undefined;
380
+ createdAt?: number | undefined;
381
+ }> | undefined;
382
+ };
383
+ export type PermissionAction = "allow" | "deny" | "ask";
337
384
  export type SessionStatus = {
338
385
  type: "idle";
339
386
  } | {
@@ -354,15 +401,6 @@ export type OutputFormatText = {
354
401
  export type JSONSchema = {
355
402
  [x: string]: any;
356
403
  };
357
- export type FileDiff = {
358
- file: string;
359
- patch: string;
360
- additions: number;
361
- deletions: number;
362
- status?: "added" | "deleted" | "modified" | undefined;
363
- before: string;
364
- after: string;
365
- };
366
404
  export type ProviderAuthError = {
367
405
  name: "ProviderAuthError";
368
406
  data: {
@@ -662,7 +700,478 @@ export type ConfigReloadResponse = {
662
700
  export type SuccessFlag = {
663
701
  success: boolean;
664
702
  };
665
- export type SessionPromptResponse = any;
703
+ export type EventTelemetryRecord = {
704
+ type: "telemetry.record";
705
+ properties: {
706
+ id: string;
707
+ traceId: string;
708
+ parentId?: string | undefined;
709
+ name: string;
710
+ kind: string;
711
+ startTime: number;
712
+ durationMs: number;
713
+ statusCode?: number | undefined;
714
+ statusMessage?: string | undefined;
715
+ attributes?: {
716
+ [x: string]: string;
717
+ } | undefined;
718
+ };
719
+ };
720
+ export type EventServerInstanceDisposed = {
721
+ type: "server.instance.disposed";
722
+ properties: {
723
+ directory: string;
724
+ };
725
+ };
726
+ export type PermissionRequest1 = {
727
+ id: string;
728
+ sessionID: string;
729
+ permission: string;
730
+ patterns: Array<string>;
731
+ metadata: {
732
+ [x: string]: any;
733
+ };
734
+ always: Array<string>;
735
+ tool?: {
736
+ messageID: string;
737
+ callID: string;
738
+ } | undefined;
739
+ };
740
+ export type EventPermissionReplied = {
741
+ type: "permission.replied";
742
+ properties: {
743
+ sessionID: string;
744
+ requestID: string;
745
+ reply: "once" | "always" | "reject";
746
+ };
747
+ };
748
+ export type QuestionOption1 = {
749
+ label: string;
750
+ description: string;
751
+ };
752
+ export type QuestionAnswer = Array<string>;
753
+ export type EventQuestionRejected = {
754
+ type: "question.rejected";
755
+ properties: {
756
+ sessionID: string;
757
+ requestID: string;
758
+ };
759
+ };
760
+ export type EventInstallationUpdated = {
761
+ type: "installation.updated";
762
+ properties: {
763
+ version: string;
764
+ };
765
+ };
766
+ export type EventInstallationUpdateAvailable = {
767
+ type: "installation.update-available";
768
+ properties: {
769
+ version: string;
770
+ method?: "curl" | "npm" | "yarn" | "pnpm" | "bun" | "brew" | "scoop" | "choco" | "unknown" | undefined;
771
+ current?: string | undefined;
772
+ };
773
+ };
774
+ export type EventServerConnected = {
775
+ type: "server.connected";
776
+ properties: {};
777
+ };
778
+ export type EventGlobalDisposed = {
779
+ type: "global.disposed";
780
+ properties: {};
781
+ };
782
+ export type EventLspClientDiagnostics = {
783
+ type: "lsp.client.diagnostics";
784
+ properties: {
785
+ serverID: string;
786
+ path: string;
787
+ };
788
+ };
789
+ export type EventLspUpdated = {
790
+ type: "lsp.updated";
791
+ properties: {};
792
+ };
793
+ export type EventMessageRemoved = {
794
+ type: "message.removed";
795
+ properties: {
796
+ sessionID: string;
797
+ messageID: string;
798
+ };
799
+ };
800
+ export type EventMessagePartRemoved = {
801
+ type: "message.part.removed";
802
+ properties: {
803
+ sessionID: string;
804
+ messageID: string;
805
+ partID: string;
806
+ };
807
+ };
808
+ export type EventTuiPromptAppend = {
809
+ type: "tui.prompt.append";
810
+ properties: {
811
+ text: string;
812
+ };
813
+ };
814
+ export type EventTuiCommandExecute = {
815
+ type: "tui.command.execute";
816
+ properties: {
817
+ command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
818
+ };
819
+ };
820
+ export type EventTuiToastShow = {
821
+ type: "tui.toast.show";
822
+ properties: {
823
+ title?: string | undefined;
824
+ message: string;
825
+ variant: "info" | "success" | "warning" | "error";
826
+ duration: number;
827
+ };
828
+ };
829
+ export type EventTuiSessionSelect = {
830
+ type: "tui.session.select";
831
+ properties: {
832
+ sessionID: string;
833
+ };
834
+ };
835
+ export type EventMcpToolsChanged = {
836
+ type: "mcp.tools.changed";
837
+ properties: {
838
+ server: string;
839
+ };
840
+ };
841
+ export type EventMcpBrowserOpenFailed = {
842
+ type: "mcp.browser.open.failed";
843
+ properties: {
844
+ mcpName: string;
845
+ url: string;
846
+ };
847
+ };
848
+ export type EventCommandExecuted = {
849
+ type: "command.executed";
850
+ properties: {
851
+ name: string;
852
+ sessionID: string;
853
+ arguments: string;
854
+ messageID: string;
855
+ };
856
+ };
857
+ export type EventFileWatcherUpdated = {
858
+ type: "file.watcher.updated";
859
+ properties: {
860
+ file: string;
861
+ event: "add" | "change" | "unlink";
862
+ };
863
+ };
864
+ export type EventInstanceReloadStarted = {
865
+ type: "instance.reload.started";
866
+ properties: {
867
+ directory: string;
868
+ files: Array<string>;
869
+ };
870
+ };
871
+ export type EventInstanceReloaded = {
872
+ type: "instance.reloaded";
873
+ properties: {
874
+ directory: string;
875
+ files: Array<string>;
876
+ durationMs: number;
877
+ };
878
+ };
879
+ export type EventVcsBranchUpdated = {
880
+ type: "vcs.branch.updated";
881
+ properties: {
882
+ branch?: string | undefined;
883
+ };
884
+ };
885
+ export type EventSessionIdle = {
886
+ type: "session.idle";
887
+ properties: {
888
+ sessionID: string;
889
+ };
890
+ };
891
+ export type EventSessionCompacted = {
892
+ type: "session.compacted";
893
+ properties: {
894
+ sessionID: string;
895
+ };
896
+ };
897
+ export type SessionGoalState = {
898
+ sessionID: string;
899
+ goalID: string;
900
+ objective: string;
901
+ status: "active" | "paused" | "blocked" | "usage_limited" | "budget_limited" | "complete";
902
+ tokenBudget?: number | undefined;
903
+ tokensUsed: number;
904
+ timeUsedSeconds: number;
905
+ iterationCount: number;
906
+ timeCreated: number;
907
+ timeUpdated: number;
908
+ };
909
+ export type EventIdeInstalled = {
910
+ type: "ide.installed";
911
+ properties: {
912
+ ide: string;
913
+ };
914
+ };
915
+ export type Pty1 = {
916
+ id: string;
917
+ title: string;
918
+ command: string;
919
+ args: Array<string>;
920
+ cwd: string;
921
+ status: "running" | "exited";
922
+ pid: number;
923
+ };
924
+ export type EventPtyExited = {
925
+ type: "pty.exited";
926
+ properties: {
927
+ id: string;
928
+ exitCode: number;
929
+ };
930
+ };
931
+ export type EventPtyDeleted = {
932
+ type: "pty.deleted";
933
+ properties: {
934
+ id: string;
935
+ };
936
+ };
937
+ export type EventSessionV2Updated = {
938
+ type: "session.v2.updated";
939
+ properties: {
940
+ sessionID: string;
941
+ };
942
+ };
943
+ export type EventFileEdited = {
944
+ type: "file.edited";
945
+ properties: {
946
+ file: string;
947
+ };
948
+ };
949
+ export type EventMonitorCreated = {
950
+ type: "monitor.created";
951
+ properties: {
952
+ sessionID: string;
953
+ record: {
954
+ id: string;
955
+ sessionID: string;
956
+ messageID: string;
957
+ callID: string;
958
+ partID?: string | undefined;
959
+ title: string;
960
+ command: string;
961
+ cwd: string;
962
+ agent: string;
963
+ wake: boolean;
964
+ timeoutMs?: number | undefined;
965
+ status: "running" | "complete" | "error" | "timeout" | "cancelled";
966
+ pid?: number | undefined;
967
+ exitCode?: number | undefined;
968
+ signal?: string | undefined;
969
+ logPath: string;
970
+ commandPath: string;
971
+ pidPath: string;
972
+ exitCodePath: string;
973
+ preview?: string | undefined | undefined;
974
+ bytes?: number | undefined | undefined;
975
+ time: {
976
+ created: number;
977
+ updated: number;
978
+ completed?: number | undefined;
979
+ };
980
+ };
981
+ };
982
+ };
983
+ export type EventMonitorUpdated = {
984
+ type: "monitor.updated";
985
+ properties: {
986
+ sessionID: string;
987
+ record: {
988
+ id: string;
989
+ sessionID: string;
990
+ messageID: string;
991
+ callID: string;
992
+ partID?: string | undefined;
993
+ title: string;
994
+ command: string;
995
+ cwd: string;
996
+ agent: string;
997
+ wake: boolean;
998
+ timeoutMs?: number | undefined;
999
+ status: "running" | "complete" | "error" | "timeout" | "cancelled";
1000
+ pid?: number | undefined;
1001
+ exitCode?: number | undefined;
1002
+ signal?: string | undefined;
1003
+ logPath: string;
1004
+ commandPath: string;
1005
+ pidPath: string;
1006
+ exitCodePath: string;
1007
+ preview?: string | undefined | undefined;
1008
+ bytes?: number | undefined | undefined;
1009
+ time: {
1010
+ created: number;
1011
+ updated: number;
1012
+ completed?: number | undefined;
1013
+ };
1014
+ };
1015
+ };
1016
+ };
1017
+ export type EventMonitorOutput = {
1018
+ type: "monitor.output";
1019
+ properties: {
1020
+ sessionID: string;
1021
+ monitorID: string;
1022
+ delta: string;
1023
+ preview: string;
1024
+ bytes: number;
1025
+ status: "running" | "complete" | "error" | "timeout" | "cancelled";
1026
+ };
1027
+ };
1028
+ export type EventMonitorCompleted = {
1029
+ type: "monitor.completed";
1030
+ properties: {
1031
+ sessionID: string;
1032
+ monitorID: string;
1033
+ title: string;
1034
+ status: "running" | "complete" | "error" | "timeout" | "cancelled";
1035
+ exitCode: number | null;
1036
+ logPath: string;
1037
+ wake: boolean;
1038
+ };
1039
+ };
1040
+ export type EventLoopUpserted = {
1041
+ type: "loop.upserted";
1042
+ properties: {
1043
+ loopID: string;
1044
+ };
1045
+ };
1046
+ export type EventLoopRemoved = {
1047
+ type: "loop.removed";
1048
+ properties: {
1049
+ loopID: string;
1050
+ };
1051
+ };
1052
+ export type EventLoopRunStarted = {
1053
+ type: "loop.run.started";
1054
+ properties: {
1055
+ loopID: string;
1056
+ runID: string;
1057
+ sessionID: string;
1058
+ };
1059
+ };
1060
+ export type EventLoopRunFinished = {
1061
+ type: "loop.run.finished";
1062
+ properties: {
1063
+ loopID: string;
1064
+ runID: string;
1065
+ sessionID?: string | undefined;
1066
+ status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
1067
+ ok: boolean;
1068
+ error?: string | undefined;
1069
+ };
1070
+ };
1071
+ export type EventLoopRuntimeChanged = {
1072
+ type: "loop.runtime.changed";
1073
+ properties: {
1074
+ loopID: string;
1075
+ };
1076
+ };
1077
+ export type EventLoopAborted = {
1078
+ type: "loop.aborted";
1079
+ properties: {
1080
+ loopID: string;
1081
+ runID?: string | undefined;
1082
+ reason: string;
1083
+ };
1084
+ };
1085
+ export type EventMissionUpserted = {
1086
+ type: "mission.upserted";
1087
+ properties: {
1088
+ missionID: string;
1089
+ };
1090
+ };
1091
+ export type EventMissionRemoved = {
1092
+ type: "mission.removed";
1093
+ properties: {
1094
+ missionID: string;
1095
+ };
1096
+ };
1097
+ export type EventMissionStarted = {
1098
+ type: "mission.started";
1099
+ properties: {
1100
+ missionID: string;
1101
+ };
1102
+ };
1103
+ export type EventMissionFinished = {
1104
+ type: "mission.finished";
1105
+ properties: {
1106
+ missionID: string;
1107
+ status: "complete" | "error" | "paused" | "frozen";
1108
+ error?: string | undefined;
1109
+ };
1110
+ };
1111
+ export type EventMissionExecStarted = {
1112
+ type: "mission.exec.started";
1113
+ properties: {
1114
+ missionID: string;
1115
+ execID: string;
1116
+ kind: "feature" | "validation";
1117
+ targetID: string;
1118
+ targetName: string;
1119
+ sessionID: string;
1120
+ };
1121
+ };
1122
+ export type EventMissionExecFinished = {
1123
+ type: "mission.exec.finished";
1124
+ properties: {
1125
+ missionID: string;
1126
+ execID: string;
1127
+ kind: "feature" | "validation";
1128
+ targetID: string;
1129
+ status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
1130
+ ok: boolean;
1131
+ error?: string | undefined;
1132
+ };
1133
+ };
1134
+ export type EventMissionRuntimeChanged = {
1135
+ type: "mission.runtime.changed";
1136
+ properties: {
1137
+ missionID: string;
1138
+ };
1139
+ };
1140
+ export type EventMissionAborted = {
1141
+ type: "mission.aborted";
1142
+ properties: {
1143
+ missionID: string;
1144
+ reason: string;
1145
+ };
1146
+ };
1147
+ export type EventWorkspaceStatus = {
1148
+ type: "workspace.status";
1149
+ properties: {
1150
+ workspaceID: string;
1151
+ status: "connecting" | "connected" | "disconnected" | "error";
1152
+ };
1153
+ };
1154
+ export type EventWorkspaceReady = {
1155
+ type: "workspace.ready";
1156
+ properties: {
1157
+ name: string;
1158
+ };
1159
+ };
1160
+ export type EventWorkspaceFailed = {
1161
+ type: "workspace.failed";
1162
+ properties: {
1163
+ message: string;
1164
+ };
1165
+ };
1166
+ export type EventDelegationCompleted = {
1167
+ type: "delegation.completed";
1168
+ properties: {
1169
+ delegationID: string;
1170
+ parentSessionID: string;
1171
+ status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
1172
+ title: string;
1173
+ };
1174
+ };
666
1175
  export type WorkspaceJournalEvent = any;
667
1176
  export type WorkspaceSessionWarpResponse = {
668
1177
  sessionID: string;
@@ -843,6 +1352,10 @@ export type ManagedWorktreeList = Array<ManagedWorktreeInfo>;
843
1352
  export type MCPStatusMap = {
844
1353
  [x: string]: MCPStatus;
845
1354
  };
1355
+ export type EventProjectUpdated = {
1356
+ type: "project.updated";
1357
+ properties: Project;
1358
+ };
846
1359
  export type ProviderAuthMethods = {
847
1360
  [x: string]: Array<ProviderAuthMethod>;
848
1361
  };
@@ -854,15 +1367,34 @@ export type QuestionInfo = {
854
1367
  custom?: boolean | undefined;
855
1368
  };
856
1369
  export type PtyList = Array<Pty>;
1370
+ export type FileDiffList = Array<FileDiff>;
1371
+ export type EventSessionDiff = {
1372
+ type: "session.diff";
1373
+ properties: {
1374
+ sessionID: string;
1375
+ diff: Array<FileDiff>;
1376
+ };
1377
+ };
1378
+ export type PermissionRule = {
1379
+ permission: string;
1380
+ pattern: string;
1381
+ action: PermissionAction;
1382
+ };
857
1383
  export type SessionStatusMap = {
858
1384
  [x: string]: SessionStatus;
859
1385
  };
1386
+ export type EventSessionStatus = {
1387
+ type: "session.status";
1388
+ properties: {
1389
+ sessionID: string;
1390
+ status: SessionStatus;
1391
+ };
1392
+ };
860
1393
  export type OutputFormatJsonSchema = {
861
1394
  type: "json_schema";
862
1395
  schema: JSONSchema;
863
1396
  retryCount: number;
864
1397
  };
865
- export type FileDiffList = Array<FileDiff>;
866
1398
  export type AssistantMessage = {
867
1399
  id: string;
868
1400
  sessionID: string;
@@ -907,6 +1439,13 @@ export type RetryPart = {
907
1439
  created: number;
908
1440
  };
909
1441
  };
1442
+ export type EventSessionError = {
1443
+ type: "session.error";
1444
+ properties: {
1445
+ sessionID?: string | undefined;
1446
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | APIError | undefined;
1447
+ };
1448
+ };
910
1449
  export type FileSource = {
911
1450
  text: FilePartSourceText;
912
1451
  type: "file";
@@ -927,6 +1466,17 @@ export type SymbolSource = {
927
1466
  kind: number;
928
1467
  };
929
1468
  export type TodoList = Array<Todo>;
1469
+ export type EventTodoUpdated = {
1470
+ type: "todo.updated";
1471
+ properties: {
1472
+ sessionID: string;
1473
+ todos: Array<Todo>;
1474
+ diff: {
1475
+ added: Array<Todo>;
1476
+ completed: Array<Todo>;
1477
+ };
1478
+ };
1479
+ };
930
1480
  export type Workspace = {
931
1481
  id: string;
932
1482
  name: string;
@@ -935,6 +1485,44 @@ export type Workspace = {
935
1485
  projectID: string;
936
1486
  config: WorkspaceConfig;
937
1487
  };
1488
+ export type EventPermissionAsked = {
1489
+ type: "permission.asked";
1490
+ properties: PermissionRequest1;
1491
+ };
1492
+ export type QuestionInfo1 = {
1493
+ question: string;
1494
+ header: string;
1495
+ options: Array<QuestionOption1>;
1496
+ multiple?: boolean | undefined;
1497
+ custom?: boolean | undefined;
1498
+ };
1499
+ export type EventQuestionReplied = {
1500
+ type: "question.replied";
1501
+ properties: {
1502
+ sessionID: string;
1503
+ requestID: string;
1504
+ answers: Array<QuestionAnswer>;
1505
+ };
1506
+ };
1507
+ export type EventSessionGoal = {
1508
+ type: "session.goal";
1509
+ properties: {
1510
+ sessionID: string;
1511
+ goal: SessionGoalState | null;
1512
+ };
1513
+ };
1514
+ export type EventPtyCreated = {
1515
+ type: "pty.created";
1516
+ properties: {
1517
+ info: Pty1;
1518
+ };
1519
+ };
1520
+ export type EventPtyUpdated = {
1521
+ type: "pty.updated";
1522
+ properties: {
1523
+ info: Pty1;
1524
+ };
1525
+ };
938
1526
  export type MobileBootstrap = {
939
1527
  version: string;
940
1528
  auth: {
@@ -953,6 +1541,7 @@ export type MobileBootstrap = {
953
1541
  github: {
954
1542
  connected: boolean;
955
1543
  tokenAvailable?: boolean | undefined;
1544
+ reconnectRequired?: boolean | undefined;
956
1545
  oauthDeviceEnabled: boolean;
957
1546
  oauthDeviceConfigured?: boolean | undefined;
958
1547
  oauthClientSource?: "flag" | "config" | "env" | undefined;
@@ -983,6 +1572,7 @@ export type MobileSessionDetail = {
983
1572
  info: MobileSessionInfo;
984
1573
  status?: any | undefined;
985
1574
  messages: Array<any>;
1575
+ artifacts: Array<any>;
986
1576
  permissions: Array<any>;
987
1577
  questions: Array<any>;
988
1578
  };
@@ -1015,9 +1605,59 @@ export type QuestionRequest = {
1015
1605
  callID: string;
1016
1606
  } | undefined;
1017
1607
  };
1608
+ export type PermissionRuleset = Array<PermissionRule>;
1018
1609
  export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
1019
1610
  export type FilePartSource = FileSource | SymbolSource | ResourceSource;
1020
1611
  export type OptionalWorkspace = Workspace | null;
1612
+ export type QuestionRequest1 = {
1613
+ id: string;
1614
+ sessionID: string;
1615
+ questions: Array<QuestionInfo1>;
1616
+ tool?: {
1617
+ messageID: string;
1618
+ callID: string;
1619
+ } | undefined;
1620
+ };
1621
+ export type Session = {
1622
+ id: string;
1623
+ slug: string;
1624
+ projectID: string;
1625
+ directory: string;
1626
+ parentID?: string | undefined;
1627
+ workspaceID?: string | undefined;
1628
+ summary?: {
1629
+ additions: number;
1630
+ deletions: number;
1631
+ files: number;
1632
+ diffs?: Array<FileDiff> | undefined;
1633
+ } | undefined;
1634
+ share?: {
1635
+ url: string;
1636
+ } | undefined;
1637
+ github?: SessionGithub | undefined;
1638
+ mobile?: SessionMobile | undefined;
1639
+ title: string;
1640
+ activeCommand?: string | undefined;
1641
+ version: string;
1642
+ time: {
1643
+ created: number;
1644
+ updated: number;
1645
+ compacting?: number | undefined;
1646
+ archived?: number | undefined;
1647
+ };
1648
+ permission?: PermissionRuleset | undefined;
1649
+ skills?: Array<string> | undefined;
1650
+ disabledInstructions?: Array<string> | undefined;
1651
+ disabledTools?: {
1652
+ [x: string]: boolean;
1653
+ } | undefined;
1654
+ revert?: {
1655
+ messageID: string;
1656
+ partID?: string | undefined;
1657
+ snapshot?: string | undefined;
1658
+ diff?: string | undefined;
1659
+ } | undefined;
1660
+ };
1021
1661
  export type UserMessage = {
1022
1662
  id: string;
1023
1663
  sessionID: string;
@@ -1052,6 +1692,29 @@ export type FilePart = {
1052
1692
  url: string;
1053
1693
  source?: FilePartSource | undefined;
1054
1694
  };
1695
+ export type EventQuestionAsked = {
1696
+ type: "question.asked";
1697
+ properties: QuestionRequest1;
1698
+ };
1699
+ export type SessionList = Array<Session>;
1700
+ export type EventSessionCreated = {
1701
+ type: "session.created";
1702
+ properties: {
1703
+ info: Session;
1704
+ };
1705
+ };
1706
+ export type EventSessionUpdated = {
1707
+ type: "session.updated";
1708
+ properties: {
1709
+ info: Session;
1710
+ };
1711
+ };
1712
+ export type EventSessionDeleted = {
1713
+ type: "session.deleted";
1714
+ properties: {
1715
+ info: Session;
1716
+ };
1717
+ };
1055
1718
  export type Message = UserMessage | AssistantMessage;
1056
1719
  export type ToolStateCompleted = {
1057
1720
  status: "completed";
@@ -1070,6 +1733,12 @@ export type ToolStateCompleted = {
1070
1733
  };
1071
1734
  attachments?: Array<FilePart> | undefined;
1072
1735
  };
1736
+ export type EventMessageUpdated = {
1737
+ type: "message.updated";
1738
+ properties: {
1739
+ info: Message;
1740
+ };
1741
+ };
1073
1742
  export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
1074
1743
  export type ToolPart = {
1075
1744
  id: string;
@@ -1092,6 +1761,22 @@ export type MessageList = Array<{
1092
1761
  info: Message;
1093
1762
  parts: Array<Part>;
1094
1763
  }>;
1764
+ export type SessionPromptResponse = {
1765
+ info: Message;
1766
+ parts: Array<Part>;
1767
+ };
1768
+ export type EventMessagePartUpdated = {
1769
+ type: "message.part.updated";
1770
+ properties: {
1771
+ part: Part;
1772
+ delta?: string | undefined;
1773
+ };
1774
+ };
1775
+ export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
1776
+ export type GlobalEvent = {
1777
+ directory: string;
1778
+ payload: Event;
1779
+ };
1095
1780
  export type VcsApplyError = {
1096
1781
  readonly name: "VcsApplyError";
1097
1782
  readonly data: {
@@ -2099,14 +2784,14 @@ export type SessionCreateInput = {
2099
2784
  readonly workspaceID?: string | undefined;
2100
2785
  }["workspaceID"];
2101
2786
  };
2102
- export type SessionCreateOutput = SessionInfo;
2787
+ export type SessionCreateOutput = Session;
2103
2788
  export type SessionStatusOutput = SessionStatusMap;
2104
2789
  export type SessionGetInput = {
2105
2790
  readonly sessionID: {
2106
2791
  readonly sessionID: string;
2107
2792
  }["sessionID"];
2108
2793
  };
2109
- export type SessionGetOutput = SessionInfo;
2794
+ export type SessionGetOutput = Session;
2110
2795
  export type SessionRemoveInput = {
2111
2796
  readonly sessionID: {
2112
2797
  readonly sessionID: string;
@@ -2130,7 +2815,7 @@ export type SessionUpdateInput = {
2130
2815
  } | undefined;
2131
2816
  }["time"];
2132
2817
  };
2133
- export type SessionUpdateOutput = SessionInfo;
2818
+ export type SessionUpdateOutput = Session;
2134
2819
  export type SessionForkInput = {
2135
2820
  readonly sessionID: {
2136
2821
  readonly sessionID: string;
@@ -2139,7 +2824,7 @@ export type SessionForkInput = {
2139
2824
  readonly messageID?: string | undefined;
2140
2825
  }["messageID"];
2141
2826
  };
2142
- export type SessionForkOutput = SessionInfo;
2827
+ export type SessionForkOutput = Session;
2143
2828
  export type SessionAbortInput = {
2144
2829
  readonly sessionID: {
2145
2830
  readonly sessionID: string;
@@ -2159,25 +2844,25 @@ export type SessionRevertInput = {
2159
2844
  readonly partID?: string | undefined;
2160
2845
  }["partID"];
2161
2846
  };
2162
- export type SessionRevertOutput = SessionInfo;
2847
+ export type SessionRevertOutput = Session;
2163
2848
  export type SessionUnrevertInput = {
2164
2849
  readonly sessionID: {
2165
2850
  readonly sessionID: string;
2166
2851
  }["sessionID"];
2167
2852
  };
2168
- export type SessionUnrevertOutput = SessionInfo;
2853
+ export type SessionUnrevertOutput = Session;
2169
2854
  export type SessionShareInput = {
2170
2855
  readonly sessionID: {
2171
2856
  readonly sessionID: string;
2172
2857
  }["sessionID"];
2173
2858
  };
2174
- export type SessionShareOutput = SessionInfo;
2859
+ export type SessionShareOutput = Session;
2175
2860
  export type SessionUnshareInput = {
2176
2861
  readonly sessionID: {
2177
2862
  readonly sessionID: string;
2178
2863
  }["sessionID"];
2179
2864
  };
2180
- export type SessionUnshareOutput = SessionInfo;
2865
+ export type SessionUnshareOutput = Session;
2181
2866
  export type SessionSummarizeInput = {
2182
2867
  readonly sessionID: {
2183
2868
  readonly sessionID: string;
@@ -2808,10 +3493,96 @@ export type SessionPromptPromptInput = {
2808
3493
  readonly tools?: {
2809
3494
  readonly [x: string]: boolean;
2810
3495
  } | undefined;
2811
- readonly format?: unknown | undefined;
3496
+ readonly format?: ({
3497
+ readonly type: "text";
3498
+ } | {
3499
+ readonly type: "json_schema";
3500
+ readonly schema: {
3501
+ readonly [x: string]: any;
3502
+ };
3503
+ readonly retryCount: number;
3504
+ }) | undefined;
2812
3505
  readonly system?: string | undefined;
2813
3506
  readonly variant?: string | undefined;
2814
- readonly parts: ReadonlyArray<unknown>;
3507
+ readonly parts: ReadonlyArray<{
3508
+ readonly type: "text";
3509
+ readonly text: string;
3510
+ readonly synthetic?: boolean | undefined;
3511
+ readonly ignored?: boolean | undefined;
3512
+ readonly time?: {
3513
+ readonly start: number;
3514
+ readonly end?: number | undefined;
3515
+ } | undefined;
3516
+ readonly metadata?: {
3517
+ readonly [x: string]: any;
3518
+ } | undefined;
3519
+ readonly id?: string | undefined;
3520
+ } | {
3521
+ readonly type: "file";
3522
+ readonly mime: string;
3523
+ readonly filename?: string | undefined;
3524
+ readonly url: string;
3525
+ readonly source?: ({
3526
+ readonly text: {
3527
+ readonly value: string;
3528
+ readonly start: number;
3529
+ readonly end: number;
3530
+ };
3531
+ readonly type: "file";
3532
+ readonly path: string;
3533
+ } | {
3534
+ readonly text: {
3535
+ readonly value: string;
3536
+ readonly start: number;
3537
+ readonly end: number;
3538
+ };
3539
+ readonly type: "symbol";
3540
+ readonly path: string;
3541
+ readonly range: {
3542
+ readonly start: {
3543
+ readonly line: number;
3544
+ readonly character: number;
3545
+ };
3546
+ readonly end: {
3547
+ readonly line: number;
3548
+ readonly character: number;
3549
+ };
3550
+ };
3551
+ readonly name: string;
3552
+ readonly kind: number;
3553
+ } | {
3554
+ readonly text: {
3555
+ readonly value: string;
3556
+ readonly start: number;
3557
+ readonly end: number;
3558
+ };
3559
+ readonly type: "resource";
3560
+ readonly clientName: string;
3561
+ readonly uri: string;
3562
+ }) | undefined;
3563
+ readonly id?: string | undefined;
3564
+ } | {
3565
+ readonly type: "agent";
3566
+ readonly name: string;
3567
+ readonly source?: {
3568
+ readonly value: string;
3569
+ readonly start: number;
3570
+ readonly end: number;
3571
+ } | undefined;
3572
+ readonly id?: string | undefined;
3573
+ } | {
3574
+ readonly type: "subtask";
3575
+ readonly prompt: string;
3576
+ readonly description: string;
3577
+ readonly agent: string;
3578
+ readonly model?: {
3579
+ readonly providerID: string;
3580
+ readonly modelID: string;
3581
+ } | undefined;
3582
+ readonly command?: string | undefined;
3583
+ readonly background?: boolean | undefined;
3584
+ readonly id?: string | undefined;
3585
+ }>;
2815
3586
  }["messageID"];
2816
3587
  readonly model?: {
2817
3588
  readonly messageID?: string | undefined;
@@ -2824,10 +3595,96 @@ export type SessionPromptPromptInput = {
2824
3595
  readonly tools?: {
2825
3596
  readonly [x: string]: boolean;
2826
3597
  } | undefined;
2827
- readonly format?: unknown | undefined;
3598
+ readonly format?: ({
3599
+ readonly type: "text";
3600
+ } | {
3601
+ readonly type: "json_schema";
3602
+ readonly schema: {
3603
+ readonly [x: string]: any;
3604
+ };
3605
+ readonly retryCount: number;
3606
+ }) | undefined;
2828
3607
  readonly system?: string | undefined;
2829
3608
  readonly variant?: string | undefined;
2830
- readonly parts: ReadonlyArray<unknown>;
3609
+ readonly parts: ReadonlyArray<{
3610
+ readonly type: "text";
3611
+ readonly text: string;
3612
+ readonly synthetic?: boolean | undefined;
3613
+ readonly ignored?: boolean | undefined;
3614
+ readonly time?: {
3615
+ readonly start: number;
3616
+ readonly end?: number | undefined;
3617
+ } | undefined;
3618
+ readonly metadata?: {
3619
+ readonly [x: string]: any;
3620
+ } | undefined;
3621
+ readonly id?: string | undefined;
3622
+ } | {
3623
+ readonly type: "file";
3624
+ readonly mime: string;
3625
+ readonly filename?: string | undefined;
3626
+ readonly url: string;
3627
+ readonly source?: ({
3628
+ readonly text: {
3629
+ readonly value: string;
3630
+ readonly start: number;
3631
+ readonly end: number;
3632
+ };
3633
+ readonly type: "file";
3634
+ readonly path: string;
3635
+ } | {
3636
+ readonly text: {
3637
+ readonly value: string;
3638
+ readonly start: number;
3639
+ readonly end: number;
3640
+ };
3641
+ readonly type: "symbol";
3642
+ readonly path: string;
3643
+ readonly range: {
3644
+ readonly start: {
3645
+ readonly line: number;
3646
+ readonly character: number;
3647
+ };
3648
+ readonly end: {
3649
+ readonly line: number;
3650
+ readonly character: number;
3651
+ };
3652
+ };
3653
+ readonly name: string;
3654
+ readonly kind: number;
3655
+ } | {
3656
+ readonly text: {
3657
+ readonly value: string;
3658
+ readonly start: number;
3659
+ readonly end: number;
3660
+ };
3661
+ readonly type: "resource";
3662
+ readonly clientName: string;
3663
+ readonly uri: string;
3664
+ }) | undefined;
3665
+ readonly id?: string | undefined;
3666
+ } | {
3667
+ readonly type: "agent";
3668
+ readonly name: string;
3669
+ readonly source?: {
3670
+ readonly value: string;
3671
+ readonly start: number;
3672
+ readonly end: number;
3673
+ } | undefined;
3674
+ readonly id?: string | undefined;
3675
+ } | {
3676
+ readonly type: "subtask";
3677
+ readonly prompt: string;
3678
+ readonly description: string;
3679
+ readonly agent: string;
3680
+ readonly model?: {
3681
+ readonly providerID: string;
3682
+ readonly modelID: string;
3683
+ } | undefined;
3684
+ readonly command?: string | undefined;
3685
+ readonly background?: boolean | undefined;
3686
+ readonly id?: string | undefined;
3687
+ }>;
2831
3688
  }["model"];
2832
3689
  readonly agent?: {
2833
3690
  readonly messageID?: string | undefined;
@@ -2840,10 +3697,96 @@ export type SessionPromptPromptInput = {
2840
3697
  readonly tools?: {
2841
3698
  readonly [x: string]: boolean;
2842
3699
  } | undefined;
2843
- readonly format?: unknown | undefined;
3700
+ readonly format?: ({
3701
+ readonly type: "text";
3702
+ } | {
3703
+ readonly type: "json_schema";
3704
+ readonly schema: {
3705
+ readonly [x: string]: any;
3706
+ };
3707
+ readonly retryCount: number;
3708
+ }) | undefined;
2844
3709
  readonly system?: string | undefined;
2845
3710
  readonly variant?: string | undefined;
2846
- readonly parts: ReadonlyArray<unknown>;
3711
+ readonly parts: ReadonlyArray<{
3712
+ readonly type: "text";
3713
+ readonly text: string;
3714
+ readonly synthetic?: boolean | undefined;
3715
+ readonly ignored?: boolean | undefined;
3716
+ readonly time?: {
3717
+ readonly start: number;
3718
+ readonly end?: number | undefined;
3719
+ } | undefined;
3720
+ readonly metadata?: {
3721
+ readonly [x: string]: any;
3722
+ } | undefined;
3723
+ readonly id?: string | undefined;
3724
+ } | {
3725
+ readonly type: "file";
3726
+ readonly mime: string;
3727
+ readonly filename?: string | undefined;
3728
+ readonly url: string;
3729
+ readonly source?: ({
3730
+ readonly text: {
3731
+ readonly value: string;
3732
+ readonly start: number;
3733
+ readonly end: number;
3734
+ };
3735
+ readonly type: "file";
3736
+ readonly path: string;
3737
+ } | {
3738
+ readonly text: {
3739
+ readonly value: string;
3740
+ readonly start: number;
3741
+ readonly end: number;
3742
+ };
3743
+ readonly type: "symbol";
3744
+ readonly path: string;
3745
+ readonly range: {
3746
+ readonly start: {
3747
+ readonly line: number;
3748
+ readonly character: number;
3749
+ };
3750
+ readonly end: {
3751
+ readonly line: number;
3752
+ readonly character: number;
3753
+ };
3754
+ };
3755
+ readonly name: string;
3756
+ readonly kind: number;
3757
+ } | {
3758
+ readonly text: {
3759
+ readonly value: string;
3760
+ readonly start: number;
3761
+ readonly end: number;
3762
+ };
3763
+ readonly type: "resource";
3764
+ readonly clientName: string;
3765
+ readonly uri: string;
3766
+ }) | undefined;
3767
+ readonly id?: string | undefined;
3768
+ } | {
3769
+ readonly type: "agent";
3770
+ readonly name: string;
3771
+ readonly source?: {
3772
+ readonly value: string;
3773
+ readonly start: number;
3774
+ readonly end: number;
3775
+ } | undefined;
3776
+ readonly id?: string | undefined;
3777
+ } | {
3778
+ readonly type: "subtask";
3779
+ readonly prompt: string;
3780
+ readonly description: string;
3781
+ readonly agent: string;
3782
+ readonly model?: {
3783
+ readonly providerID: string;
3784
+ readonly modelID: string;
3785
+ } | undefined;
3786
+ readonly command?: string | undefined;
3787
+ readonly background?: boolean | undefined;
3788
+ readonly id?: string | undefined;
3789
+ }>;
2847
3790
  }["agent"];
2848
3791
  readonly noReply?: {
2849
3792
  readonly messageID?: string | undefined;
@@ -2856,10 +3799,96 @@ export type SessionPromptPromptInput = {
2856
3799
  readonly tools?: {
2857
3800
  readonly [x: string]: boolean;
2858
3801
  } | undefined;
2859
- readonly format?: unknown | undefined;
3802
+ readonly format?: ({
3803
+ readonly type: "text";
3804
+ } | {
3805
+ readonly type: "json_schema";
3806
+ readonly schema: {
3807
+ readonly [x: string]: any;
3808
+ };
3809
+ readonly retryCount: number;
3810
+ }) | undefined;
2860
3811
  readonly system?: string | undefined;
2861
3812
  readonly variant?: string | undefined;
2862
- readonly parts: ReadonlyArray<unknown>;
3813
+ readonly parts: ReadonlyArray<{
3814
+ readonly type: "text";
3815
+ readonly text: string;
3816
+ readonly synthetic?: boolean | undefined;
3817
+ readonly ignored?: boolean | undefined;
3818
+ readonly time?: {
3819
+ readonly start: number;
3820
+ readonly end?: number | undefined;
3821
+ } | undefined;
3822
+ readonly metadata?: {
3823
+ readonly [x: string]: any;
3824
+ } | undefined;
3825
+ readonly id?: string | undefined;
3826
+ } | {
3827
+ readonly type: "file";
3828
+ readonly mime: string;
3829
+ readonly filename?: string | undefined;
3830
+ readonly url: string;
3831
+ readonly source?: ({
3832
+ readonly text: {
3833
+ readonly value: string;
3834
+ readonly start: number;
3835
+ readonly end: number;
3836
+ };
3837
+ readonly type: "file";
3838
+ readonly path: string;
3839
+ } | {
3840
+ readonly text: {
3841
+ readonly value: string;
3842
+ readonly start: number;
3843
+ readonly end: number;
3844
+ };
3845
+ readonly type: "symbol";
3846
+ readonly path: string;
3847
+ readonly range: {
3848
+ readonly start: {
3849
+ readonly line: number;
3850
+ readonly character: number;
3851
+ };
3852
+ readonly end: {
3853
+ readonly line: number;
3854
+ readonly character: number;
3855
+ };
3856
+ };
3857
+ readonly name: string;
3858
+ readonly kind: number;
3859
+ } | {
3860
+ readonly text: {
3861
+ readonly value: string;
3862
+ readonly start: number;
3863
+ readonly end: number;
3864
+ };
3865
+ readonly type: "resource";
3866
+ readonly clientName: string;
3867
+ readonly uri: string;
3868
+ }) | undefined;
3869
+ readonly id?: string | undefined;
3870
+ } | {
3871
+ readonly type: "agent";
3872
+ readonly name: string;
3873
+ readonly source?: {
3874
+ readonly value: string;
3875
+ readonly start: number;
3876
+ readonly end: number;
3877
+ } | undefined;
3878
+ readonly id?: string | undefined;
3879
+ } | {
3880
+ readonly type: "subtask";
3881
+ readonly prompt: string;
3882
+ readonly description: string;
3883
+ readonly agent: string;
3884
+ readonly model?: {
3885
+ readonly providerID: string;
3886
+ readonly modelID: string;
3887
+ } | undefined;
3888
+ readonly command?: string | undefined;
3889
+ readonly background?: boolean | undefined;
3890
+ readonly id?: string | undefined;
3891
+ }>;
2863
3892
  }["noReply"];
2864
3893
  readonly tools?: {
2865
3894
  readonly messageID?: string | undefined;
@@ -2872,10 +3901,96 @@ export type SessionPromptPromptInput = {
2872
3901
  readonly tools?: {
2873
3902
  readonly [x: string]: boolean;
2874
3903
  } | undefined;
2875
- readonly format?: unknown | undefined;
3904
+ readonly format?: ({
3905
+ readonly type: "text";
3906
+ } | {
3907
+ readonly type: "json_schema";
3908
+ readonly schema: {
3909
+ readonly [x: string]: any;
3910
+ };
3911
+ readonly retryCount: number;
3912
+ }) | undefined;
2876
3913
  readonly system?: string | undefined;
2877
3914
  readonly variant?: string | undefined;
2878
- readonly parts: ReadonlyArray<unknown>;
3915
+ readonly parts: ReadonlyArray<{
3916
+ readonly type: "text";
3917
+ readonly text: string;
3918
+ readonly synthetic?: boolean | undefined;
3919
+ readonly ignored?: boolean | undefined;
3920
+ readonly time?: {
3921
+ readonly start: number;
3922
+ readonly end?: number | undefined;
3923
+ } | undefined;
3924
+ readonly metadata?: {
3925
+ readonly [x: string]: any;
3926
+ } | undefined;
3927
+ readonly id?: string | undefined;
3928
+ } | {
3929
+ readonly type: "file";
3930
+ readonly mime: string;
3931
+ readonly filename?: string | undefined;
3932
+ readonly url: string;
3933
+ readonly source?: ({
3934
+ readonly text: {
3935
+ readonly value: string;
3936
+ readonly start: number;
3937
+ readonly end: number;
3938
+ };
3939
+ readonly type: "file";
3940
+ readonly path: string;
3941
+ } | {
3942
+ readonly text: {
3943
+ readonly value: string;
3944
+ readonly start: number;
3945
+ readonly end: number;
3946
+ };
3947
+ readonly type: "symbol";
3948
+ readonly path: string;
3949
+ readonly range: {
3950
+ readonly start: {
3951
+ readonly line: number;
3952
+ readonly character: number;
3953
+ };
3954
+ readonly end: {
3955
+ readonly line: number;
3956
+ readonly character: number;
3957
+ };
3958
+ };
3959
+ readonly name: string;
3960
+ readonly kind: number;
3961
+ } | {
3962
+ readonly text: {
3963
+ readonly value: string;
3964
+ readonly start: number;
3965
+ readonly end: number;
3966
+ };
3967
+ readonly type: "resource";
3968
+ readonly clientName: string;
3969
+ readonly uri: string;
3970
+ }) | undefined;
3971
+ readonly id?: string | undefined;
3972
+ } | {
3973
+ readonly type: "agent";
3974
+ readonly name: string;
3975
+ readonly source?: {
3976
+ readonly value: string;
3977
+ readonly start: number;
3978
+ readonly end: number;
3979
+ } | undefined;
3980
+ readonly id?: string | undefined;
3981
+ } | {
3982
+ readonly type: "subtask";
3983
+ readonly prompt: string;
3984
+ readonly description: string;
3985
+ readonly agent: string;
3986
+ readonly model?: {
3987
+ readonly providerID: string;
3988
+ readonly modelID: string;
3989
+ } | undefined;
3990
+ readonly command?: string | undefined;
3991
+ readonly background?: boolean | undefined;
3992
+ readonly id?: string | undefined;
3993
+ }>;
2879
3994
  }["tools"];
2880
3995
  readonly format?: {
2881
3996
  readonly messageID?: string | undefined;
@@ -2888,10 +4003,96 @@ export type SessionPromptPromptInput = {
2888
4003
  readonly tools?: {
2889
4004
  readonly [x: string]: boolean;
2890
4005
  } | undefined;
2891
- readonly format?: unknown | undefined;
4006
+ readonly format?: ({
4007
+ readonly type: "text";
4008
+ } | {
4009
+ readonly type: "json_schema";
4010
+ readonly schema: {
4011
+ readonly [x: string]: any;
4012
+ };
4013
+ readonly retryCount: number;
4014
+ }) | undefined;
2892
4015
  readonly system?: string | undefined;
2893
4016
  readonly variant?: string | undefined;
2894
- readonly parts: ReadonlyArray<unknown>;
4017
+ readonly parts: ReadonlyArray<{
4018
+ readonly type: "text";
4019
+ readonly text: string;
4020
+ readonly synthetic?: boolean | undefined;
4021
+ readonly ignored?: boolean | undefined;
4022
+ readonly time?: {
4023
+ readonly start: number;
4024
+ readonly end?: number | undefined;
4025
+ } | undefined;
4026
+ readonly metadata?: {
4027
+ readonly [x: string]: any;
4028
+ } | undefined;
4029
+ readonly id?: string | undefined;
4030
+ } | {
4031
+ readonly type: "file";
4032
+ readonly mime: string;
4033
+ readonly filename?: string | undefined;
4034
+ readonly url: string;
4035
+ readonly source?: ({
4036
+ readonly text: {
4037
+ readonly value: string;
4038
+ readonly start: number;
4039
+ readonly end: number;
4040
+ };
4041
+ readonly type: "file";
4042
+ readonly path: string;
4043
+ } | {
4044
+ readonly text: {
4045
+ readonly value: string;
4046
+ readonly start: number;
4047
+ readonly end: number;
4048
+ };
4049
+ readonly type: "symbol";
4050
+ readonly path: string;
4051
+ readonly range: {
4052
+ readonly start: {
4053
+ readonly line: number;
4054
+ readonly character: number;
4055
+ };
4056
+ readonly end: {
4057
+ readonly line: number;
4058
+ readonly character: number;
4059
+ };
4060
+ };
4061
+ readonly name: string;
4062
+ readonly kind: number;
4063
+ } | {
4064
+ readonly text: {
4065
+ readonly value: string;
4066
+ readonly start: number;
4067
+ readonly end: number;
4068
+ };
4069
+ readonly type: "resource";
4070
+ readonly clientName: string;
4071
+ readonly uri: string;
4072
+ }) | undefined;
4073
+ readonly id?: string | undefined;
4074
+ } | {
4075
+ readonly type: "agent";
4076
+ readonly name: string;
4077
+ readonly source?: {
4078
+ readonly value: string;
4079
+ readonly start: number;
4080
+ readonly end: number;
4081
+ } | undefined;
4082
+ readonly id?: string | undefined;
4083
+ } | {
4084
+ readonly type: "subtask";
4085
+ readonly prompt: string;
4086
+ readonly description: string;
4087
+ readonly agent: string;
4088
+ readonly model?: {
4089
+ readonly providerID: string;
4090
+ readonly modelID: string;
4091
+ } | undefined;
4092
+ readonly command?: string | undefined;
4093
+ readonly background?: boolean | undefined;
4094
+ readonly id?: string | undefined;
4095
+ }>;
2895
4096
  }["format"];
2896
4097
  readonly system?: {
2897
4098
  readonly messageID?: string | undefined;
@@ -2904,10 +4105,96 @@ export type SessionPromptPromptInput = {
2904
4105
  readonly tools?: {
2905
4106
  readonly [x: string]: boolean;
2906
4107
  } | undefined;
2907
- readonly format?: unknown | undefined;
4108
+ readonly format?: ({
4109
+ readonly type: "text";
4110
+ } | {
4111
+ readonly type: "json_schema";
4112
+ readonly schema: {
4113
+ readonly [x: string]: any;
4114
+ };
4115
+ readonly retryCount: number;
4116
+ }) | undefined;
2908
4117
  readonly system?: string | undefined;
2909
4118
  readonly variant?: string | undefined;
2910
- readonly parts: ReadonlyArray<unknown>;
4119
+ readonly parts: ReadonlyArray<{
4120
+ readonly type: "text";
4121
+ readonly text: string;
4122
+ readonly synthetic?: boolean | undefined;
4123
+ readonly ignored?: boolean | undefined;
4124
+ readonly time?: {
4125
+ readonly start: number;
4126
+ readonly end?: number | undefined;
4127
+ } | undefined;
4128
+ readonly metadata?: {
4129
+ readonly [x: string]: any;
4130
+ } | undefined;
4131
+ readonly id?: string | undefined;
4132
+ } | {
4133
+ readonly type: "file";
4134
+ readonly mime: string;
4135
+ readonly filename?: string | undefined;
4136
+ readonly url: string;
4137
+ readonly source?: ({
4138
+ readonly text: {
4139
+ readonly value: string;
4140
+ readonly start: number;
4141
+ readonly end: number;
4142
+ };
4143
+ readonly type: "file";
4144
+ readonly path: string;
4145
+ } | {
4146
+ readonly text: {
4147
+ readonly value: string;
4148
+ readonly start: number;
4149
+ readonly end: number;
4150
+ };
4151
+ readonly type: "symbol";
4152
+ readonly path: string;
4153
+ readonly range: {
4154
+ readonly start: {
4155
+ readonly line: number;
4156
+ readonly character: number;
4157
+ };
4158
+ readonly end: {
4159
+ readonly line: number;
4160
+ readonly character: number;
4161
+ };
4162
+ };
4163
+ readonly name: string;
4164
+ readonly kind: number;
4165
+ } | {
4166
+ readonly text: {
4167
+ readonly value: string;
4168
+ readonly start: number;
4169
+ readonly end: number;
4170
+ };
4171
+ readonly type: "resource";
4172
+ readonly clientName: string;
4173
+ readonly uri: string;
4174
+ }) | undefined;
4175
+ readonly id?: string | undefined;
4176
+ } | {
4177
+ readonly type: "agent";
4178
+ readonly name: string;
4179
+ readonly source?: {
4180
+ readonly value: string;
4181
+ readonly start: number;
4182
+ readonly end: number;
4183
+ } | undefined;
4184
+ readonly id?: string | undefined;
4185
+ } | {
4186
+ readonly type: "subtask";
4187
+ readonly prompt: string;
4188
+ readonly description: string;
4189
+ readonly agent: string;
4190
+ readonly model?: {
4191
+ readonly providerID: string;
4192
+ readonly modelID: string;
4193
+ } | undefined;
4194
+ readonly command?: string | undefined;
4195
+ readonly background?: boolean | undefined;
4196
+ readonly id?: string | undefined;
4197
+ }>;
2911
4198
  }["system"];
2912
4199
  readonly variant?: {
2913
4200
  readonly messageID?: string | undefined;
@@ -2920,10 +4207,96 @@ export type SessionPromptPromptInput = {
2920
4207
  readonly tools?: {
2921
4208
  readonly [x: string]: boolean;
2922
4209
  } | undefined;
2923
- readonly format?: unknown | undefined;
4210
+ readonly format?: ({
4211
+ readonly type: "text";
4212
+ } | {
4213
+ readonly type: "json_schema";
4214
+ readonly schema: {
4215
+ readonly [x: string]: any;
4216
+ };
4217
+ readonly retryCount: number;
4218
+ }) | undefined;
2924
4219
  readonly system?: string | undefined;
2925
4220
  readonly variant?: string | undefined;
2926
- readonly parts: ReadonlyArray<unknown>;
4221
+ readonly parts: ReadonlyArray<{
4222
+ readonly type: "text";
4223
+ readonly text: string;
4224
+ readonly synthetic?: boolean | undefined;
4225
+ readonly ignored?: boolean | undefined;
4226
+ readonly time?: {
4227
+ readonly start: number;
4228
+ readonly end?: number | undefined;
4229
+ } | undefined;
4230
+ readonly metadata?: {
4231
+ readonly [x: string]: any;
4232
+ } | undefined;
4233
+ readonly id?: string | undefined;
4234
+ } | {
4235
+ readonly type: "file";
4236
+ readonly mime: string;
4237
+ readonly filename?: string | undefined;
4238
+ readonly url: string;
4239
+ readonly source?: ({
4240
+ readonly text: {
4241
+ readonly value: string;
4242
+ readonly start: number;
4243
+ readonly end: number;
4244
+ };
4245
+ readonly type: "file";
4246
+ readonly path: string;
4247
+ } | {
4248
+ readonly text: {
4249
+ readonly value: string;
4250
+ readonly start: number;
4251
+ readonly end: number;
4252
+ };
4253
+ readonly type: "symbol";
4254
+ readonly path: string;
4255
+ readonly range: {
4256
+ readonly start: {
4257
+ readonly line: number;
4258
+ readonly character: number;
4259
+ };
4260
+ readonly end: {
4261
+ readonly line: number;
4262
+ readonly character: number;
4263
+ };
4264
+ };
4265
+ readonly name: string;
4266
+ readonly kind: number;
4267
+ } | {
4268
+ readonly text: {
4269
+ readonly value: string;
4270
+ readonly start: number;
4271
+ readonly end: number;
4272
+ };
4273
+ readonly type: "resource";
4274
+ readonly clientName: string;
4275
+ readonly uri: string;
4276
+ }) | undefined;
4277
+ readonly id?: string | undefined;
4278
+ } | {
4279
+ readonly type: "agent";
4280
+ readonly name: string;
4281
+ readonly source?: {
4282
+ readonly value: string;
4283
+ readonly start: number;
4284
+ readonly end: number;
4285
+ } | undefined;
4286
+ readonly id?: string | undefined;
4287
+ } | {
4288
+ readonly type: "subtask";
4289
+ readonly prompt: string;
4290
+ readonly description: string;
4291
+ readonly agent: string;
4292
+ readonly model?: {
4293
+ readonly providerID: string;
4294
+ readonly modelID: string;
4295
+ } | undefined;
4296
+ readonly command?: string | undefined;
4297
+ readonly background?: boolean | undefined;
4298
+ readonly id?: string | undefined;
4299
+ }>;
2927
4300
  }["variant"];
2928
4301
  readonly parts: {
2929
4302
  readonly messageID?: string | undefined;
@@ -2936,10 +4309,96 @@ export type SessionPromptPromptInput = {
2936
4309
  readonly tools?: {
2937
4310
  readonly [x: string]: boolean;
2938
4311
  } | undefined;
2939
- readonly format?: unknown | undefined;
4312
+ readonly format?: ({
4313
+ readonly type: "text";
4314
+ } | {
4315
+ readonly type: "json_schema";
4316
+ readonly schema: {
4317
+ readonly [x: string]: any;
4318
+ };
4319
+ readonly retryCount: number;
4320
+ }) | undefined;
2940
4321
  readonly system?: string | undefined;
2941
4322
  readonly variant?: string | undefined;
2942
- readonly parts: ReadonlyArray<unknown>;
4323
+ readonly parts: ReadonlyArray<{
4324
+ readonly type: "text";
4325
+ readonly text: string;
4326
+ readonly synthetic?: boolean | undefined;
4327
+ readonly ignored?: boolean | undefined;
4328
+ readonly time?: {
4329
+ readonly start: number;
4330
+ readonly end?: number | undefined;
4331
+ } | undefined;
4332
+ readonly metadata?: {
4333
+ readonly [x: string]: any;
4334
+ } | undefined;
4335
+ readonly id?: string | undefined;
4336
+ } | {
4337
+ readonly type: "file";
4338
+ readonly mime: string;
4339
+ readonly filename?: string | undefined;
4340
+ readonly url: string;
4341
+ readonly source?: ({
4342
+ readonly text: {
4343
+ readonly value: string;
4344
+ readonly start: number;
4345
+ readonly end: number;
4346
+ };
4347
+ readonly type: "file";
4348
+ readonly path: string;
4349
+ } | {
4350
+ readonly text: {
4351
+ readonly value: string;
4352
+ readonly start: number;
4353
+ readonly end: number;
4354
+ };
4355
+ readonly type: "symbol";
4356
+ readonly path: string;
4357
+ readonly range: {
4358
+ readonly start: {
4359
+ readonly line: number;
4360
+ readonly character: number;
4361
+ };
4362
+ readonly end: {
4363
+ readonly line: number;
4364
+ readonly character: number;
4365
+ };
4366
+ };
4367
+ readonly name: string;
4368
+ readonly kind: number;
4369
+ } | {
4370
+ readonly text: {
4371
+ readonly value: string;
4372
+ readonly start: number;
4373
+ readonly end: number;
4374
+ };
4375
+ readonly type: "resource";
4376
+ readonly clientName: string;
4377
+ readonly uri: string;
4378
+ }) | undefined;
4379
+ readonly id?: string | undefined;
4380
+ } | {
4381
+ readonly type: "agent";
4382
+ readonly name: string;
4383
+ readonly source?: {
4384
+ readonly value: string;
4385
+ readonly start: number;
4386
+ readonly end: number;
4387
+ } | undefined;
4388
+ readonly id?: string | undefined;
4389
+ } | {
4390
+ readonly type: "subtask";
4391
+ readonly prompt: string;
4392
+ readonly description: string;
4393
+ readonly agent: string;
4394
+ readonly model?: {
4395
+ readonly providerID: string;
4396
+ readonly modelID: string;
4397
+ } | undefined;
4398
+ readonly command?: string | undefined;
4399
+ readonly background?: boolean | undefined;
4400
+ readonly id?: string | undefined;
4401
+ }>;
2943
4402
  }["parts"];
2944
4403
  };
2945
4404
  export type SessionPromptPromptOutput = SessionPromptResponse;
@@ -2958,10 +4417,96 @@ export type SessionPromptPromptAsyncInput = {
2958
4417
  readonly tools?: {
2959
4418
  readonly [x: string]: boolean;
2960
4419
  } | undefined;
2961
- readonly format?: unknown | undefined;
4420
+ readonly format?: ({
4421
+ readonly type: "text";
4422
+ } | {
4423
+ readonly type: "json_schema";
4424
+ readonly schema: {
4425
+ readonly [x: string]: any;
4426
+ };
4427
+ readonly retryCount: number;
4428
+ }) | undefined;
2962
4429
  readonly system?: string | undefined;
2963
4430
  readonly variant?: string | undefined;
2964
- readonly parts: ReadonlyArray<unknown>;
4431
+ readonly parts: ReadonlyArray<{
4432
+ readonly type: "text";
4433
+ readonly text: string;
4434
+ readonly synthetic?: boolean | undefined;
4435
+ readonly ignored?: boolean | undefined;
4436
+ readonly time?: {
4437
+ readonly start: number;
4438
+ readonly end?: number | undefined;
4439
+ } | undefined;
4440
+ readonly metadata?: {
4441
+ readonly [x: string]: any;
4442
+ } | undefined;
4443
+ readonly id?: string | undefined;
4444
+ } | {
4445
+ readonly type: "file";
4446
+ readonly mime: string;
4447
+ readonly filename?: string | undefined;
4448
+ readonly url: string;
4449
+ readonly source?: ({
4450
+ readonly text: {
4451
+ readonly value: string;
4452
+ readonly start: number;
4453
+ readonly end: number;
4454
+ };
4455
+ readonly type: "file";
4456
+ readonly path: string;
4457
+ } | {
4458
+ readonly text: {
4459
+ readonly value: string;
4460
+ readonly start: number;
4461
+ readonly end: number;
4462
+ };
4463
+ readonly type: "symbol";
4464
+ readonly path: string;
4465
+ readonly range: {
4466
+ readonly start: {
4467
+ readonly line: number;
4468
+ readonly character: number;
4469
+ };
4470
+ readonly end: {
4471
+ readonly line: number;
4472
+ readonly character: number;
4473
+ };
4474
+ };
4475
+ readonly name: string;
4476
+ readonly kind: number;
4477
+ } | {
4478
+ readonly text: {
4479
+ readonly value: string;
4480
+ readonly start: number;
4481
+ readonly end: number;
4482
+ };
4483
+ readonly type: "resource";
4484
+ readonly clientName: string;
4485
+ readonly uri: string;
4486
+ }) | undefined;
4487
+ readonly id?: string | undefined;
4488
+ } | {
4489
+ readonly type: "agent";
4490
+ readonly name: string;
4491
+ readonly source?: {
4492
+ readonly value: string;
4493
+ readonly start: number;
4494
+ readonly end: number;
4495
+ } | undefined;
4496
+ readonly id?: string | undefined;
4497
+ } | {
4498
+ readonly type: "subtask";
4499
+ readonly prompt: string;
4500
+ readonly description: string;
4501
+ readonly agent: string;
4502
+ readonly model?: {
4503
+ readonly providerID: string;
4504
+ readonly modelID: string;
4505
+ } | undefined;
4506
+ readonly command?: string | undefined;
4507
+ readonly background?: boolean | undefined;
4508
+ readonly id?: string | undefined;
4509
+ }>;
2965
4510
  }["messageID"];
2966
4511
  readonly model?: {
2967
4512
  readonly messageID?: string | undefined;
@@ -2974,10 +4519,96 @@ export type SessionPromptPromptAsyncInput = {
2974
4519
  readonly tools?: {
2975
4520
  readonly [x: string]: boolean;
2976
4521
  } | undefined;
2977
- readonly format?: unknown | undefined;
4522
+ readonly format?: ({
4523
+ readonly type: "text";
4524
+ } | {
4525
+ readonly type: "json_schema";
4526
+ readonly schema: {
4527
+ readonly [x: string]: any;
4528
+ };
4529
+ readonly retryCount: number;
4530
+ }) | undefined;
2978
4531
  readonly system?: string | undefined;
2979
4532
  readonly variant?: string | undefined;
2980
- readonly parts: ReadonlyArray<unknown>;
4533
+ readonly parts: ReadonlyArray<{
4534
+ readonly type: "text";
4535
+ readonly text: string;
4536
+ readonly synthetic?: boolean | undefined;
4537
+ readonly ignored?: boolean | undefined;
4538
+ readonly time?: {
4539
+ readonly start: number;
4540
+ readonly end?: number | undefined;
4541
+ } | undefined;
4542
+ readonly metadata?: {
4543
+ readonly [x: string]: any;
4544
+ } | undefined;
4545
+ readonly id?: string | undefined;
4546
+ } | {
4547
+ readonly type: "file";
4548
+ readonly mime: string;
4549
+ readonly filename?: string | undefined;
4550
+ readonly url: string;
4551
+ readonly source?: ({
4552
+ readonly text: {
4553
+ readonly value: string;
4554
+ readonly start: number;
4555
+ readonly end: number;
4556
+ };
4557
+ readonly type: "file";
4558
+ readonly path: string;
4559
+ } | {
4560
+ readonly text: {
4561
+ readonly value: string;
4562
+ readonly start: number;
4563
+ readonly end: number;
4564
+ };
4565
+ readonly type: "symbol";
4566
+ readonly path: string;
4567
+ readonly range: {
4568
+ readonly start: {
4569
+ readonly line: number;
4570
+ readonly character: number;
4571
+ };
4572
+ readonly end: {
4573
+ readonly line: number;
4574
+ readonly character: number;
4575
+ };
4576
+ };
4577
+ readonly name: string;
4578
+ readonly kind: number;
4579
+ } | {
4580
+ readonly text: {
4581
+ readonly value: string;
4582
+ readonly start: number;
4583
+ readonly end: number;
4584
+ };
4585
+ readonly type: "resource";
4586
+ readonly clientName: string;
4587
+ readonly uri: string;
4588
+ }) | undefined;
4589
+ readonly id?: string | undefined;
4590
+ } | {
4591
+ readonly type: "agent";
4592
+ readonly name: string;
4593
+ readonly source?: {
4594
+ readonly value: string;
4595
+ readonly start: number;
4596
+ readonly end: number;
4597
+ } | undefined;
4598
+ readonly id?: string | undefined;
4599
+ } | {
4600
+ readonly type: "subtask";
4601
+ readonly prompt: string;
4602
+ readonly description: string;
4603
+ readonly agent: string;
4604
+ readonly model?: {
4605
+ readonly providerID: string;
4606
+ readonly modelID: string;
4607
+ } | undefined;
4608
+ readonly command?: string | undefined;
4609
+ readonly background?: boolean | undefined;
4610
+ readonly id?: string | undefined;
4611
+ }>;
2981
4612
  }["model"];
2982
4613
  readonly agent?: {
2983
4614
  readonly messageID?: string | undefined;
@@ -2990,10 +4621,96 @@ export type SessionPromptPromptAsyncInput = {
2990
4621
  readonly tools?: {
2991
4622
  readonly [x: string]: boolean;
2992
4623
  } | undefined;
2993
- readonly format?: unknown | undefined;
4624
+ readonly format?: ({
4625
+ readonly type: "text";
4626
+ } | {
4627
+ readonly type: "json_schema";
4628
+ readonly schema: {
4629
+ readonly [x: string]: any;
4630
+ };
4631
+ readonly retryCount: number;
4632
+ }) | undefined;
2994
4633
  readonly system?: string | undefined;
2995
4634
  readonly variant?: string | undefined;
2996
- readonly parts: ReadonlyArray<unknown>;
4635
+ readonly parts: ReadonlyArray<{
4636
+ readonly type: "text";
4637
+ readonly text: string;
4638
+ readonly synthetic?: boolean | undefined;
4639
+ readonly ignored?: boolean | undefined;
4640
+ readonly time?: {
4641
+ readonly start: number;
4642
+ readonly end?: number | undefined;
4643
+ } | undefined;
4644
+ readonly metadata?: {
4645
+ readonly [x: string]: any;
4646
+ } | undefined;
4647
+ readonly id?: string | undefined;
4648
+ } | {
4649
+ readonly type: "file";
4650
+ readonly mime: string;
4651
+ readonly filename?: string | undefined;
4652
+ readonly url: string;
4653
+ readonly source?: ({
4654
+ readonly text: {
4655
+ readonly value: string;
4656
+ readonly start: number;
4657
+ readonly end: number;
4658
+ };
4659
+ readonly type: "file";
4660
+ readonly path: string;
4661
+ } | {
4662
+ readonly text: {
4663
+ readonly value: string;
4664
+ readonly start: number;
4665
+ readonly end: number;
4666
+ };
4667
+ readonly type: "symbol";
4668
+ readonly path: string;
4669
+ readonly range: {
4670
+ readonly start: {
4671
+ readonly line: number;
4672
+ readonly character: number;
4673
+ };
4674
+ readonly end: {
4675
+ readonly line: number;
4676
+ readonly character: number;
4677
+ };
4678
+ };
4679
+ readonly name: string;
4680
+ readonly kind: number;
4681
+ } | {
4682
+ readonly text: {
4683
+ readonly value: string;
4684
+ readonly start: number;
4685
+ readonly end: number;
4686
+ };
4687
+ readonly type: "resource";
4688
+ readonly clientName: string;
4689
+ readonly uri: string;
4690
+ }) | undefined;
4691
+ readonly id?: string | undefined;
4692
+ } | {
4693
+ readonly type: "agent";
4694
+ readonly name: string;
4695
+ readonly source?: {
4696
+ readonly value: string;
4697
+ readonly start: number;
4698
+ readonly end: number;
4699
+ } | undefined;
4700
+ readonly id?: string | undefined;
4701
+ } | {
4702
+ readonly type: "subtask";
4703
+ readonly prompt: string;
4704
+ readonly description: string;
4705
+ readonly agent: string;
4706
+ readonly model?: {
4707
+ readonly providerID: string;
4708
+ readonly modelID: string;
4709
+ } | undefined;
4710
+ readonly command?: string | undefined;
4711
+ readonly background?: boolean | undefined;
4712
+ readonly id?: string | undefined;
4713
+ }>;
2997
4714
  }["agent"];
2998
4715
  readonly noReply?: {
2999
4716
  readonly messageID?: string | undefined;
@@ -3006,10 +4723,96 @@ export type SessionPromptPromptAsyncInput = {
3006
4723
  readonly tools?: {
3007
4724
  readonly [x: string]: boolean;
3008
4725
  } | undefined;
3009
- readonly format?: unknown | undefined;
4726
+ readonly format?: ({
4727
+ readonly type: "text";
4728
+ } | {
4729
+ readonly type: "json_schema";
4730
+ readonly schema: {
4731
+ readonly [x: string]: any;
4732
+ };
4733
+ readonly retryCount: number;
4734
+ }) | undefined;
3010
4735
  readonly system?: string | undefined;
3011
4736
  readonly variant?: string | undefined;
3012
- readonly parts: ReadonlyArray<unknown>;
4737
+ readonly parts: ReadonlyArray<{
4738
+ readonly type: "text";
4739
+ readonly text: string;
4740
+ readonly synthetic?: boolean | undefined;
4741
+ readonly ignored?: boolean | undefined;
4742
+ readonly time?: {
4743
+ readonly start: number;
4744
+ readonly end?: number | undefined;
4745
+ } | undefined;
4746
+ readonly metadata?: {
4747
+ readonly [x: string]: any;
4748
+ } | undefined;
4749
+ readonly id?: string | undefined;
4750
+ } | {
4751
+ readonly type: "file";
4752
+ readonly mime: string;
4753
+ readonly filename?: string | undefined;
4754
+ readonly url: string;
4755
+ readonly source?: ({
4756
+ readonly text: {
4757
+ readonly value: string;
4758
+ readonly start: number;
4759
+ readonly end: number;
4760
+ };
4761
+ readonly type: "file";
4762
+ readonly path: string;
4763
+ } | {
4764
+ readonly text: {
4765
+ readonly value: string;
4766
+ readonly start: number;
4767
+ readonly end: number;
4768
+ };
4769
+ readonly type: "symbol";
4770
+ readonly path: string;
4771
+ readonly range: {
4772
+ readonly start: {
4773
+ readonly line: number;
4774
+ readonly character: number;
4775
+ };
4776
+ readonly end: {
4777
+ readonly line: number;
4778
+ readonly character: number;
4779
+ };
4780
+ };
4781
+ readonly name: string;
4782
+ readonly kind: number;
4783
+ } | {
4784
+ readonly text: {
4785
+ readonly value: string;
4786
+ readonly start: number;
4787
+ readonly end: number;
4788
+ };
4789
+ readonly type: "resource";
4790
+ readonly clientName: string;
4791
+ readonly uri: string;
4792
+ }) | undefined;
4793
+ readonly id?: string | undefined;
4794
+ } | {
4795
+ readonly type: "agent";
4796
+ readonly name: string;
4797
+ readonly source?: {
4798
+ readonly value: string;
4799
+ readonly start: number;
4800
+ readonly end: number;
4801
+ } | undefined;
4802
+ readonly id?: string | undefined;
4803
+ } | {
4804
+ readonly type: "subtask";
4805
+ readonly prompt: string;
4806
+ readonly description: string;
4807
+ readonly agent: string;
4808
+ readonly model?: {
4809
+ readonly providerID: string;
4810
+ readonly modelID: string;
4811
+ } | undefined;
4812
+ readonly command?: string | undefined;
4813
+ readonly background?: boolean | undefined;
4814
+ readonly id?: string | undefined;
4815
+ }>;
3013
4816
  }["noReply"];
3014
4817
  readonly tools?: {
3015
4818
  readonly messageID?: string | undefined;
@@ -3022,10 +4825,96 @@ export type SessionPromptPromptAsyncInput = {
3022
4825
  readonly tools?: {
3023
4826
  readonly [x: string]: boolean;
3024
4827
  } | undefined;
3025
- readonly format?: unknown | undefined;
4828
+ readonly format?: ({
4829
+ readonly type: "text";
4830
+ } | {
4831
+ readonly type: "json_schema";
4832
+ readonly schema: {
4833
+ readonly [x: string]: any;
4834
+ };
4835
+ readonly retryCount: number;
4836
+ }) | undefined;
3026
4837
  readonly system?: string | undefined;
3027
4838
  readonly variant?: string | undefined;
3028
- readonly parts: ReadonlyArray<unknown>;
4839
+ readonly parts: ReadonlyArray<{
4840
+ readonly type: "text";
4841
+ readonly text: string;
4842
+ readonly synthetic?: boolean | undefined;
4843
+ readonly ignored?: boolean | undefined;
4844
+ readonly time?: {
4845
+ readonly start: number;
4846
+ readonly end?: number | undefined;
4847
+ } | undefined;
4848
+ readonly metadata?: {
4849
+ readonly [x: string]: any;
4850
+ } | undefined;
4851
+ readonly id?: string | undefined;
4852
+ } | {
4853
+ readonly type: "file";
4854
+ readonly mime: string;
4855
+ readonly filename?: string | undefined;
4856
+ readonly url: string;
4857
+ readonly source?: ({
4858
+ readonly text: {
4859
+ readonly value: string;
4860
+ readonly start: number;
4861
+ readonly end: number;
4862
+ };
4863
+ readonly type: "file";
4864
+ readonly path: string;
4865
+ } | {
4866
+ readonly text: {
4867
+ readonly value: string;
4868
+ readonly start: number;
4869
+ readonly end: number;
4870
+ };
4871
+ readonly type: "symbol";
4872
+ readonly path: string;
4873
+ readonly range: {
4874
+ readonly start: {
4875
+ readonly line: number;
4876
+ readonly character: number;
4877
+ };
4878
+ readonly end: {
4879
+ readonly line: number;
4880
+ readonly character: number;
4881
+ };
4882
+ };
4883
+ readonly name: string;
4884
+ readonly kind: number;
4885
+ } | {
4886
+ readonly text: {
4887
+ readonly value: string;
4888
+ readonly start: number;
4889
+ readonly end: number;
4890
+ };
4891
+ readonly type: "resource";
4892
+ readonly clientName: string;
4893
+ readonly uri: string;
4894
+ }) | undefined;
4895
+ readonly id?: string | undefined;
4896
+ } | {
4897
+ readonly type: "agent";
4898
+ readonly name: string;
4899
+ readonly source?: {
4900
+ readonly value: string;
4901
+ readonly start: number;
4902
+ readonly end: number;
4903
+ } | undefined;
4904
+ readonly id?: string | undefined;
4905
+ } | {
4906
+ readonly type: "subtask";
4907
+ readonly prompt: string;
4908
+ readonly description: string;
4909
+ readonly agent: string;
4910
+ readonly model?: {
4911
+ readonly providerID: string;
4912
+ readonly modelID: string;
4913
+ } | undefined;
4914
+ readonly command?: string | undefined;
4915
+ readonly background?: boolean | undefined;
4916
+ readonly id?: string | undefined;
4917
+ }>;
3029
4918
  }["tools"];
3030
4919
  readonly format?: {
3031
4920
  readonly messageID?: string | undefined;
@@ -3038,10 +4927,96 @@ export type SessionPromptPromptAsyncInput = {
3038
4927
  readonly tools?: {
3039
4928
  readonly [x: string]: boolean;
3040
4929
  } | undefined;
3041
- readonly format?: unknown | undefined;
4930
+ readonly format?: ({
4931
+ readonly type: "text";
4932
+ } | {
4933
+ readonly type: "json_schema";
4934
+ readonly schema: {
4935
+ readonly [x: string]: any;
4936
+ };
4937
+ readonly retryCount: number;
4938
+ }) | undefined;
3042
4939
  readonly system?: string | undefined;
3043
4940
  readonly variant?: string | undefined;
3044
- readonly parts: ReadonlyArray<unknown>;
4941
+ readonly parts: ReadonlyArray<{
4942
+ readonly type: "text";
4943
+ readonly text: string;
4944
+ readonly synthetic?: boolean | undefined;
4945
+ readonly ignored?: boolean | undefined;
4946
+ readonly time?: {
4947
+ readonly start: number;
4948
+ readonly end?: number | undefined;
4949
+ } | undefined;
4950
+ readonly metadata?: {
4951
+ readonly [x: string]: any;
4952
+ } | undefined;
4953
+ readonly id?: string | undefined;
4954
+ } | {
4955
+ readonly type: "file";
4956
+ readonly mime: string;
4957
+ readonly filename?: string | undefined;
4958
+ readonly url: string;
4959
+ readonly source?: ({
4960
+ readonly text: {
4961
+ readonly value: string;
4962
+ readonly start: number;
4963
+ readonly end: number;
4964
+ };
4965
+ readonly type: "file";
4966
+ readonly path: string;
4967
+ } | {
4968
+ readonly text: {
4969
+ readonly value: string;
4970
+ readonly start: number;
4971
+ readonly end: number;
4972
+ };
4973
+ readonly type: "symbol";
4974
+ readonly path: string;
4975
+ readonly range: {
4976
+ readonly start: {
4977
+ readonly line: number;
4978
+ readonly character: number;
4979
+ };
4980
+ readonly end: {
4981
+ readonly line: number;
4982
+ readonly character: number;
4983
+ };
4984
+ };
4985
+ readonly name: string;
4986
+ readonly kind: number;
4987
+ } | {
4988
+ readonly text: {
4989
+ readonly value: string;
4990
+ readonly start: number;
4991
+ readonly end: number;
4992
+ };
4993
+ readonly type: "resource";
4994
+ readonly clientName: string;
4995
+ readonly uri: string;
4996
+ }) | undefined;
4997
+ readonly id?: string | undefined;
4998
+ } | {
4999
+ readonly type: "agent";
5000
+ readonly name: string;
5001
+ readonly source?: {
5002
+ readonly value: string;
5003
+ readonly start: number;
5004
+ readonly end: number;
5005
+ } | undefined;
5006
+ readonly id?: string | undefined;
5007
+ } | {
5008
+ readonly type: "subtask";
5009
+ readonly prompt: string;
5010
+ readonly description: string;
5011
+ readonly agent: string;
5012
+ readonly model?: {
5013
+ readonly providerID: string;
5014
+ readonly modelID: string;
5015
+ } | undefined;
5016
+ readonly command?: string | undefined;
5017
+ readonly background?: boolean | undefined;
5018
+ readonly id?: string | undefined;
5019
+ }>;
3045
5020
  }["format"];
3046
5021
  readonly system?: {
3047
5022
  readonly messageID?: string | undefined;
@@ -3054,10 +5029,96 @@ export type SessionPromptPromptAsyncInput = {
3054
5029
  readonly tools?: {
3055
5030
  readonly [x: string]: boolean;
3056
5031
  } | undefined;
3057
- readonly format?: unknown | undefined;
5032
+ readonly format?: ({
5033
+ readonly type: "text";
5034
+ } | {
5035
+ readonly type: "json_schema";
5036
+ readonly schema: {
5037
+ readonly [x: string]: any;
5038
+ };
5039
+ readonly retryCount: number;
5040
+ }) | undefined;
3058
5041
  readonly system?: string | undefined;
3059
5042
  readonly variant?: string | undefined;
3060
- readonly parts: ReadonlyArray<unknown>;
5043
+ readonly parts: ReadonlyArray<{
5044
+ readonly type: "text";
5045
+ readonly text: string;
5046
+ readonly synthetic?: boolean | undefined;
5047
+ readonly ignored?: boolean | undefined;
5048
+ readonly time?: {
5049
+ readonly start: number;
5050
+ readonly end?: number | undefined;
5051
+ } | undefined;
5052
+ readonly metadata?: {
5053
+ readonly [x: string]: any;
5054
+ } | undefined;
5055
+ readonly id?: string | undefined;
5056
+ } | {
5057
+ readonly type: "file";
5058
+ readonly mime: string;
5059
+ readonly filename?: string | undefined;
5060
+ readonly url: string;
5061
+ readonly source?: ({
5062
+ readonly text: {
5063
+ readonly value: string;
5064
+ readonly start: number;
5065
+ readonly end: number;
5066
+ };
5067
+ readonly type: "file";
5068
+ readonly path: string;
5069
+ } | {
5070
+ readonly text: {
5071
+ readonly value: string;
5072
+ readonly start: number;
5073
+ readonly end: number;
5074
+ };
5075
+ readonly type: "symbol";
5076
+ readonly path: string;
5077
+ readonly range: {
5078
+ readonly start: {
5079
+ readonly line: number;
5080
+ readonly character: number;
5081
+ };
5082
+ readonly end: {
5083
+ readonly line: number;
5084
+ readonly character: number;
5085
+ };
5086
+ };
5087
+ readonly name: string;
5088
+ readonly kind: number;
5089
+ } | {
5090
+ readonly text: {
5091
+ readonly value: string;
5092
+ readonly start: number;
5093
+ readonly end: number;
5094
+ };
5095
+ readonly type: "resource";
5096
+ readonly clientName: string;
5097
+ readonly uri: string;
5098
+ }) | undefined;
5099
+ readonly id?: string | undefined;
5100
+ } | {
5101
+ readonly type: "agent";
5102
+ readonly name: string;
5103
+ readonly source?: {
5104
+ readonly value: string;
5105
+ readonly start: number;
5106
+ readonly end: number;
5107
+ } | undefined;
5108
+ readonly id?: string | undefined;
5109
+ } | {
5110
+ readonly type: "subtask";
5111
+ readonly prompt: string;
5112
+ readonly description: string;
5113
+ readonly agent: string;
5114
+ readonly model?: {
5115
+ readonly providerID: string;
5116
+ readonly modelID: string;
5117
+ } | undefined;
5118
+ readonly command?: string | undefined;
5119
+ readonly background?: boolean | undefined;
5120
+ readonly id?: string | undefined;
5121
+ }>;
3061
5122
  }["system"];
3062
5123
  readonly variant?: {
3063
5124
  readonly messageID?: string | undefined;
@@ -3070,10 +5131,96 @@ export type SessionPromptPromptAsyncInput = {
3070
5131
  readonly tools?: {
3071
5132
  readonly [x: string]: boolean;
3072
5133
  } | undefined;
3073
- readonly format?: unknown | undefined;
5134
+ readonly format?: ({
5135
+ readonly type: "text";
5136
+ } | {
5137
+ readonly type: "json_schema";
5138
+ readonly schema: {
5139
+ readonly [x: string]: any;
5140
+ };
5141
+ readonly retryCount: number;
5142
+ }) | undefined;
3074
5143
  readonly system?: string | undefined;
3075
5144
  readonly variant?: string | undefined;
3076
- readonly parts: ReadonlyArray<unknown>;
5145
+ readonly parts: ReadonlyArray<{
5146
+ readonly type: "text";
5147
+ readonly text: string;
5148
+ readonly synthetic?: boolean | undefined;
5149
+ readonly ignored?: boolean | undefined;
5150
+ readonly time?: {
5151
+ readonly start: number;
5152
+ readonly end?: number | undefined;
5153
+ } | undefined;
5154
+ readonly metadata?: {
5155
+ readonly [x: string]: any;
5156
+ } | undefined;
5157
+ readonly id?: string | undefined;
5158
+ } | {
5159
+ readonly type: "file";
5160
+ readonly mime: string;
5161
+ readonly filename?: string | undefined;
5162
+ readonly url: string;
5163
+ readonly source?: ({
5164
+ readonly text: {
5165
+ readonly value: string;
5166
+ readonly start: number;
5167
+ readonly end: number;
5168
+ };
5169
+ readonly type: "file";
5170
+ readonly path: string;
5171
+ } | {
5172
+ readonly text: {
5173
+ readonly value: string;
5174
+ readonly start: number;
5175
+ readonly end: number;
5176
+ };
5177
+ readonly type: "symbol";
5178
+ readonly path: string;
5179
+ readonly range: {
5180
+ readonly start: {
5181
+ readonly line: number;
5182
+ readonly character: number;
5183
+ };
5184
+ readonly end: {
5185
+ readonly line: number;
5186
+ readonly character: number;
5187
+ };
5188
+ };
5189
+ readonly name: string;
5190
+ readonly kind: number;
5191
+ } | {
5192
+ readonly text: {
5193
+ readonly value: string;
5194
+ readonly start: number;
5195
+ readonly end: number;
5196
+ };
5197
+ readonly type: "resource";
5198
+ readonly clientName: string;
5199
+ readonly uri: string;
5200
+ }) | undefined;
5201
+ readonly id?: string | undefined;
5202
+ } | {
5203
+ readonly type: "agent";
5204
+ readonly name: string;
5205
+ readonly source?: {
5206
+ readonly value: string;
5207
+ readonly start: number;
5208
+ readonly end: number;
5209
+ } | undefined;
5210
+ readonly id?: string | undefined;
5211
+ } | {
5212
+ readonly type: "subtask";
5213
+ readonly prompt: string;
5214
+ readonly description: string;
5215
+ readonly agent: string;
5216
+ readonly model?: {
5217
+ readonly providerID: string;
5218
+ readonly modelID: string;
5219
+ } | undefined;
5220
+ readonly command?: string | undefined;
5221
+ readonly background?: boolean | undefined;
5222
+ readonly id?: string | undefined;
5223
+ }>;
3077
5224
  }["variant"];
3078
5225
  readonly parts: {
3079
5226
  readonly messageID?: string | undefined;
@@ -3086,10 +5233,96 @@ export type SessionPromptPromptAsyncInput = {
3086
5233
  readonly tools?: {
3087
5234
  readonly [x: string]: boolean;
3088
5235
  } | undefined;
3089
- readonly format?: unknown | undefined;
5236
+ readonly format?: ({
5237
+ readonly type: "text";
5238
+ } | {
5239
+ readonly type: "json_schema";
5240
+ readonly schema: {
5241
+ readonly [x: string]: any;
5242
+ };
5243
+ readonly retryCount: number;
5244
+ }) | undefined;
3090
5245
  readonly system?: string | undefined;
3091
5246
  readonly variant?: string | undefined;
3092
- readonly parts: ReadonlyArray<unknown>;
5247
+ readonly parts: ReadonlyArray<{
5248
+ readonly type: "text";
5249
+ readonly text: string;
5250
+ readonly synthetic?: boolean | undefined;
5251
+ readonly ignored?: boolean | undefined;
5252
+ readonly time?: {
5253
+ readonly start: number;
5254
+ readonly end?: number | undefined;
5255
+ } | undefined;
5256
+ readonly metadata?: {
5257
+ readonly [x: string]: any;
5258
+ } | undefined;
5259
+ readonly id?: string | undefined;
5260
+ } | {
5261
+ readonly type: "file";
5262
+ readonly mime: string;
5263
+ readonly filename?: string | undefined;
5264
+ readonly url: string;
5265
+ readonly source?: ({
5266
+ readonly text: {
5267
+ readonly value: string;
5268
+ readonly start: number;
5269
+ readonly end: number;
5270
+ };
5271
+ readonly type: "file";
5272
+ readonly path: string;
5273
+ } | {
5274
+ readonly text: {
5275
+ readonly value: string;
5276
+ readonly start: number;
5277
+ readonly end: number;
5278
+ };
5279
+ readonly type: "symbol";
5280
+ readonly path: string;
5281
+ readonly range: {
5282
+ readonly start: {
5283
+ readonly line: number;
5284
+ readonly character: number;
5285
+ };
5286
+ readonly end: {
5287
+ readonly line: number;
5288
+ readonly character: number;
5289
+ };
5290
+ };
5291
+ readonly name: string;
5292
+ readonly kind: number;
5293
+ } | {
5294
+ readonly text: {
5295
+ readonly value: string;
5296
+ readonly start: number;
5297
+ readonly end: number;
5298
+ };
5299
+ readonly type: "resource";
5300
+ readonly clientName: string;
5301
+ readonly uri: string;
5302
+ }) | undefined;
5303
+ readonly id?: string | undefined;
5304
+ } | {
5305
+ readonly type: "agent";
5306
+ readonly name: string;
5307
+ readonly source?: {
5308
+ readonly value: string;
5309
+ readonly start: number;
5310
+ readonly end: number;
5311
+ } | undefined;
5312
+ readonly id?: string | undefined;
5313
+ } | {
5314
+ readonly type: "subtask";
5315
+ readonly prompt: string;
5316
+ readonly description: string;
5317
+ readonly agent: string;
5318
+ readonly model?: {
5319
+ readonly providerID: string;
5320
+ readonly modelID: string;
5321
+ } | undefined;
5322
+ readonly command?: string | undefined;
5323
+ readonly background?: boolean | undefined;
5324
+ readonly id?: string | undefined;
5325
+ }>;
3093
5326
  }["parts"];
3094
5327
  };
3095
5328
  export type SessionPromptPromptAsyncOutput = void;
@@ -3117,8 +5350,8 @@ export type ShareDataInput = {
3117
5350
  }["shareID"];
3118
5351
  };
3119
5352
  export type ShareDataOutput = any;
3120
- export type EventsSubscribeOutput = any;
3121
- export type EventsGlobalOutput = any;
5353
+ export type EventsSubscribeOutput = Event;
5354
+ export type EventsGlobalOutput = GlobalEvent;
3122
5355
  export type WorkspaceExtraEventsInput = {
3123
5356
  readonly id: {
3124
5357
  readonly id: string;