@opencode-ai/sdk 0.0.0-dev-202606021750 → 0.0.0-dev-202606021924
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/v2/gen/types.gen.d.ts +436 -439
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventModelsDevRefreshed | EventPluginAdded | EventCatalogModelUpdated |
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventPermissionV2Asked | EventPermissionV2Replied | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventProjectUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTodoUpdated | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -41,12 +41,6 @@ export type InvalidRequestError = {
|
|
|
41
41
|
kind?: string;
|
|
42
42
|
field?: string;
|
|
43
43
|
};
|
|
44
|
-
export type Prompt = {
|
|
45
|
-
text: string;
|
|
46
|
-
files?: Array<PromptFileAttachment>;
|
|
47
|
-
agents?: Array<PromptAgentAttachment>;
|
|
48
|
-
references?: Array<PromptReferenceAttachment>;
|
|
49
|
-
};
|
|
50
44
|
export type SnapshotFileDiff = {
|
|
51
45
|
file?: string;
|
|
52
46
|
patch?: string;
|
|
@@ -466,6 +460,21 @@ export type CompactionPart = {
|
|
|
466
460
|
tail_start_id?: string;
|
|
467
461
|
};
|
|
468
462
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
463
|
+
export type Prompt = {
|
|
464
|
+
text: string;
|
|
465
|
+
files?: Array<PromptFileAttachment>;
|
|
466
|
+
agents?: Array<PromptAgentAttachment>;
|
|
467
|
+
references?: Array<PromptReferenceAttachment>;
|
|
468
|
+
};
|
|
469
|
+
export type Pty = {
|
|
470
|
+
id: string;
|
|
471
|
+
title: string;
|
|
472
|
+
command: string;
|
|
473
|
+
args: Array<string>;
|
|
474
|
+
cwd: string;
|
|
475
|
+
status: "running" | "exited";
|
|
476
|
+
pid: number;
|
|
477
|
+
};
|
|
469
478
|
export type QuestionOption = {
|
|
470
479
|
/**
|
|
471
480
|
* Display text (1-5 words, concise)
|
|
@@ -497,20 +506,6 @@ export type QuestionTool = {
|
|
|
497
506
|
callID: string;
|
|
498
507
|
};
|
|
499
508
|
export type QuestionAnswer = Array<string>;
|
|
500
|
-
export type Todo = {
|
|
501
|
-
/**
|
|
502
|
-
* Brief description of the task
|
|
503
|
-
*/
|
|
504
|
-
content: string;
|
|
505
|
-
/**
|
|
506
|
-
* Current status of the task: pending, in_progress, completed, cancelled
|
|
507
|
-
*/
|
|
508
|
-
status: string;
|
|
509
|
-
/**
|
|
510
|
-
* Priority level of the task: high, medium, low
|
|
511
|
-
*/
|
|
512
|
-
priority: string;
|
|
513
|
-
};
|
|
514
509
|
export type SessionStatus = {
|
|
515
510
|
type: "idle";
|
|
516
511
|
} | {
|
|
@@ -529,14 +524,19 @@ export type SessionStatus = {
|
|
|
529
524
|
} | {
|
|
530
525
|
type: "busy";
|
|
531
526
|
};
|
|
532
|
-
export type
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
527
|
+
export type Todo = {
|
|
528
|
+
/**
|
|
529
|
+
* Brief description of the task
|
|
530
|
+
*/
|
|
531
|
+
content: string;
|
|
532
|
+
/**
|
|
533
|
+
* Current status of the task: pending, in_progress, completed, cancelled
|
|
534
|
+
*/
|
|
535
|
+
status: string;
|
|
536
|
+
/**
|
|
537
|
+
* Priority level of the task: high, medium, low
|
|
538
|
+
*/
|
|
539
|
+
priority: string;
|
|
540
540
|
};
|
|
541
541
|
export type GlobalEvent = {
|
|
542
542
|
directory: string;
|
|
@@ -562,9 +562,54 @@ export type GlobalEvent = {
|
|
|
562
562
|
};
|
|
563
563
|
} | {
|
|
564
564
|
id: string;
|
|
565
|
-
type: "
|
|
565
|
+
type: "session.created";
|
|
566
566
|
properties: {
|
|
567
|
-
|
|
567
|
+
sessionID: string;
|
|
568
|
+
info: Session;
|
|
569
|
+
};
|
|
570
|
+
} | {
|
|
571
|
+
id: string;
|
|
572
|
+
type: "session.updated";
|
|
573
|
+
properties: {
|
|
574
|
+
sessionID: string;
|
|
575
|
+
info: Session;
|
|
576
|
+
};
|
|
577
|
+
} | {
|
|
578
|
+
id: string;
|
|
579
|
+
type: "session.deleted";
|
|
580
|
+
properties: {
|
|
581
|
+
sessionID: string;
|
|
582
|
+
info: Session;
|
|
583
|
+
};
|
|
584
|
+
} | {
|
|
585
|
+
id: string;
|
|
586
|
+
type: "message.updated";
|
|
587
|
+
properties: {
|
|
588
|
+
sessionID: string;
|
|
589
|
+
info: Message;
|
|
590
|
+
};
|
|
591
|
+
} | {
|
|
592
|
+
id: string;
|
|
593
|
+
type: "message.removed";
|
|
594
|
+
properties: {
|
|
595
|
+
sessionID: string;
|
|
596
|
+
messageID: string;
|
|
597
|
+
};
|
|
598
|
+
} | {
|
|
599
|
+
id: string;
|
|
600
|
+
type: "message.part.updated";
|
|
601
|
+
properties: {
|
|
602
|
+
sessionID: string;
|
|
603
|
+
part: Part;
|
|
604
|
+
time: number;
|
|
605
|
+
};
|
|
606
|
+
} | {
|
|
607
|
+
id: string;
|
|
608
|
+
type: "message.part.removed";
|
|
609
|
+
properties: {
|
|
610
|
+
sessionID: string;
|
|
611
|
+
messageID: string;
|
|
612
|
+
partID: string;
|
|
568
613
|
};
|
|
569
614
|
} | {
|
|
570
615
|
id: string;
|
|
@@ -836,85 +881,51 @@ export type GlobalEvent = {
|
|
|
836
881
|
};
|
|
837
882
|
} | {
|
|
838
883
|
id: string;
|
|
839
|
-
type: "
|
|
840
|
-
properties: {
|
|
841
|
-
file: string;
|
|
842
|
-
event: "add" | "change" | "unlink";
|
|
843
|
-
};
|
|
844
|
-
} | {
|
|
845
|
-
id: string;
|
|
846
|
-
type: "session.created";
|
|
847
|
-
properties: {
|
|
848
|
-
sessionID: string;
|
|
849
|
-
info: Session;
|
|
850
|
-
};
|
|
851
|
-
} | {
|
|
852
|
-
id: string;
|
|
853
|
-
type: "session.updated";
|
|
854
|
-
properties: {
|
|
855
|
-
sessionID: string;
|
|
856
|
-
info: Session;
|
|
857
|
-
};
|
|
858
|
-
} | {
|
|
859
|
-
id: string;
|
|
860
|
-
type: "session.deleted";
|
|
861
|
-
properties: {
|
|
862
|
-
sessionID: string;
|
|
863
|
-
info: Session;
|
|
864
|
-
};
|
|
865
|
-
} | {
|
|
866
|
-
id: string;
|
|
867
|
-
type: "message.updated";
|
|
884
|
+
type: "message.part.delta";
|
|
868
885
|
properties: {
|
|
869
886
|
sessionID: string;
|
|
870
|
-
|
|
887
|
+
messageID: string;
|
|
888
|
+
partID: string;
|
|
889
|
+
field: string;
|
|
890
|
+
delta: string;
|
|
871
891
|
};
|
|
872
892
|
} | {
|
|
873
893
|
id: string;
|
|
874
|
-
type: "
|
|
894
|
+
type: "session.diff";
|
|
875
895
|
properties: {
|
|
876
896
|
sessionID: string;
|
|
877
|
-
|
|
897
|
+
diff: Array<SnapshotFileDiff>;
|
|
878
898
|
};
|
|
879
899
|
} | {
|
|
880
900
|
id: string;
|
|
881
|
-
type: "
|
|
901
|
+
type: "session.error";
|
|
882
902
|
properties: {
|
|
883
|
-
sessionID
|
|
884
|
-
|
|
885
|
-
time: number;
|
|
903
|
+
sessionID?: string;
|
|
904
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
886
905
|
};
|
|
887
906
|
} | {
|
|
888
907
|
id: string;
|
|
889
|
-
type: "
|
|
908
|
+
type: "installation.updated";
|
|
890
909
|
properties: {
|
|
891
|
-
|
|
892
|
-
messageID: string;
|
|
893
|
-
partID: string;
|
|
910
|
+
version: string;
|
|
894
911
|
};
|
|
895
912
|
} | {
|
|
896
913
|
id: string;
|
|
897
|
-
type: "
|
|
914
|
+
type: "installation.update-available";
|
|
898
915
|
properties: {
|
|
899
|
-
|
|
900
|
-
messageID: string;
|
|
901
|
-
partID: string;
|
|
902
|
-
field: string;
|
|
903
|
-
delta: string;
|
|
916
|
+
version: string;
|
|
904
917
|
};
|
|
905
918
|
} | {
|
|
906
919
|
id: string;
|
|
907
|
-
type: "
|
|
920
|
+
type: "file.edited";
|
|
908
921
|
properties: {
|
|
909
|
-
|
|
910
|
-
diff: Array<SnapshotFileDiff>;
|
|
922
|
+
file: string;
|
|
911
923
|
};
|
|
912
924
|
} | {
|
|
913
925
|
id: string;
|
|
914
|
-
type: "
|
|
926
|
+
type: "lsp.updated";
|
|
915
927
|
properties: {
|
|
916
|
-
|
|
917
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
928
|
+
[key: string]: unknown;
|
|
918
929
|
};
|
|
919
930
|
} | {
|
|
920
931
|
id: string;
|
|
@@ -943,62 +954,45 @@ export type GlobalEvent = {
|
|
|
943
954
|
};
|
|
944
955
|
} | {
|
|
945
956
|
id: string;
|
|
946
|
-
type: "
|
|
957
|
+
type: "permission.v2.asked";
|
|
947
958
|
properties: {
|
|
948
959
|
id: string;
|
|
949
960
|
sessionID: string;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
id: string;
|
|
958
|
-
type: "question.replied";
|
|
959
|
-
properties: {
|
|
960
|
-
sessionID: string;
|
|
961
|
-
requestID: string;
|
|
962
|
-
answers: Array<QuestionAnswer>;
|
|
961
|
+
action: string;
|
|
962
|
+
resources: Array<string>;
|
|
963
|
+
save?: Array<string>;
|
|
964
|
+
metadata?: {
|
|
965
|
+
[key: string]: unknown;
|
|
966
|
+
};
|
|
967
|
+
source?: PermissionV2Source;
|
|
963
968
|
};
|
|
964
969
|
} | {
|
|
965
970
|
id: string;
|
|
966
|
-
type: "
|
|
971
|
+
type: "permission.v2.replied";
|
|
967
972
|
properties: {
|
|
968
973
|
sessionID: string;
|
|
969
974
|
requestID: string;
|
|
975
|
+
reply: PermissionV2Reply;
|
|
970
976
|
};
|
|
971
977
|
} | {
|
|
972
978
|
id: string;
|
|
973
|
-
type: "
|
|
974
|
-
properties: {
|
|
975
|
-
sessionID: string;
|
|
976
|
-
todos: Array<Todo>;
|
|
977
|
-
};
|
|
978
|
-
} | {
|
|
979
|
-
id: string;
|
|
980
|
-
type: "session.status";
|
|
981
|
-
properties: {
|
|
982
|
-
sessionID: string;
|
|
983
|
-
status: SessionStatus;
|
|
984
|
-
};
|
|
985
|
-
} | {
|
|
986
|
-
id: string;
|
|
987
|
-
type: "session.idle";
|
|
979
|
+
type: "account.added";
|
|
988
980
|
properties: {
|
|
989
|
-
|
|
981
|
+
account: AuthInfo;
|
|
990
982
|
};
|
|
991
983
|
} | {
|
|
992
984
|
id: string;
|
|
993
|
-
type: "
|
|
985
|
+
type: "account.removed";
|
|
994
986
|
properties: {
|
|
995
|
-
|
|
987
|
+
account: AuthInfo;
|
|
996
988
|
};
|
|
997
989
|
} | {
|
|
998
990
|
id: string;
|
|
999
|
-
type: "
|
|
991
|
+
type: "account.switched";
|
|
1000
992
|
properties: {
|
|
1001
|
-
|
|
993
|
+
serviceID: string;
|
|
994
|
+
from?: string;
|
|
995
|
+
to?: string;
|
|
1002
996
|
};
|
|
1003
997
|
} | {
|
|
1004
998
|
id: string;
|
|
@@ -1052,6 +1046,13 @@ export type GlobalEvent = {
|
|
|
1052
1046
|
arguments: string;
|
|
1053
1047
|
messageID: string;
|
|
1054
1048
|
};
|
|
1049
|
+
} | {
|
|
1050
|
+
id: string;
|
|
1051
|
+
type: "file.watcher.updated";
|
|
1052
|
+
properties: {
|
|
1053
|
+
file: string;
|
|
1054
|
+
event: "add" | "change" | "unlink";
|
|
1055
|
+
};
|
|
1055
1056
|
} | {
|
|
1056
1057
|
id: string;
|
|
1057
1058
|
type: "project.updated";
|
|
@@ -1080,134 +1081,133 @@ export type GlobalEvent = {
|
|
|
1080
1081
|
};
|
|
1081
1082
|
} | {
|
|
1082
1083
|
id: string;
|
|
1083
|
-
type: "
|
|
1084
|
+
type: "pty.created";
|
|
1084
1085
|
properties: {
|
|
1085
|
-
|
|
1086
|
+
info: Pty;
|
|
1086
1087
|
};
|
|
1087
1088
|
} | {
|
|
1088
1089
|
id: string;
|
|
1089
|
-
type: "
|
|
1090
|
+
type: "pty.updated";
|
|
1090
1091
|
properties: {
|
|
1091
|
-
|
|
1092
|
+
info: Pty;
|
|
1092
1093
|
};
|
|
1093
1094
|
} | {
|
|
1094
1095
|
id: string;
|
|
1095
|
-
type: "
|
|
1096
|
+
type: "pty.exited";
|
|
1096
1097
|
properties: {
|
|
1097
|
-
|
|
1098
|
+
id: string;
|
|
1099
|
+
exitCode: number;
|
|
1098
1100
|
};
|
|
1099
1101
|
} | {
|
|
1100
1102
|
id: string;
|
|
1101
|
-
type: "
|
|
1103
|
+
type: "pty.deleted";
|
|
1102
1104
|
properties: {
|
|
1103
|
-
|
|
1104
|
-
status: "connected" | "connecting" | "disconnected" | "error";
|
|
1105
|
+
id: string;
|
|
1105
1106
|
};
|
|
1106
1107
|
} | {
|
|
1107
1108
|
id: string;
|
|
1108
|
-
type: "
|
|
1109
|
+
type: "question.asked";
|
|
1109
1110
|
properties: {
|
|
1110
|
-
|
|
1111
|
-
|
|
1111
|
+
id: string;
|
|
1112
|
+
sessionID: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Questions to ask
|
|
1115
|
+
*/
|
|
1116
|
+
questions: Array<QuestionInfo>;
|
|
1117
|
+
tool?: QuestionTool;
|
|
1112
1118
|
};
|
|
1113
1119
|
} | {
|
|
1114
1120
|
id: string;
|
|
1115
|
-
type: "
|
|
1121
|
+
type: "question.replied";
|
|
1116
1122
|
properties: {
|
|
1117
|
-
|
|
1123
|
+
sessionID: string;
|
|
1124
|
+
requestID: string;
|
|
1125
|
+
answers: Array<QuestionAnswer>;
|
|
1118
1126
|
};
|
|
1119
1127
|
} | {
|
|
1120
1128
|
id: string;
|
|
1121
|
-
type: "
|
|
1129
|
+
type: "question.rejected";
|
|
1122
1130
|
properties: {
|
|
1123
|
-
|
|
1131
|
+
sessionID: string;
|
|
1132
|
+
requestID: string;
|
|
1124
1133
|
};
|
|
1125
1134
|
} | {
|
|
1126
1135
|
id: string;
|
|
1127
|
-
type: "
|
|
1136
|
+
type: "session.status";
|
|
1128
1137
|
properties: {
|
|
1129
|
-
|
|
1138
|
+
sessionID: string;
|
|
1139
|
+
status: SessionStatus;
|
|
1130
1140
|
};
|
|
1131
1141
|
} | {
|
|
1132
1142
|
id: string;
|
|
1133
|
-
type: "
|
|
1143
|
+
type: "session.idle";
|
|
1134
1144
|
properties: {
|
|
1135
|
-
|
|
1136
|
-
exitCode: number;
|
|
1145
|
+
sessionID: string;
|
|
1137
1146
|
};
|
|
1138
1147
|
} | {
|
|
1139
1148
|
id: string;
|
|
1140
|
-
type: "
|
|
1149
|
+
type: "session.compacted";
|
|
1141
1150
|
properties: {
|
|
1142
|
-
|
|
1151
|
+
sessionID: string;
|
|
1143
1152
|
};
|
|
1144
1153
|
} | {
|
|
1145
1154
|
id: string;
|
|
1146
|
-
type: "
|
|
1155
|
+
type: "todo.updated";
|
|
1147
1156
|
properties: {
|
|
1148
|
-
|
|
1157
|
+
sessionID: string;
|
|
1158
|
+
todos: Array<Todo>;
|
|
1149
1159
|
};
|
|
1150
1160
|
} | {
|
|
1151
1161
|
id: string;
|
|
1152
|
-
type: "
|
|
1162
|
+
type: "vcs.branch.updated";
|
|
1153
1163
|
properties: {
|
|
1154
|
-
|
|
1164
|
+
branch?: string;
|
|
1155
1165
|
};
|
|
1156
1166
|
} | {
|
|
1157
1167
|
id: string;
|
|
1158
|
-
type: "
|
|
1168
|
+
type: "worktree.ready";
|
|
1159
1169
|
properties: {
|
|
1160
|
-
|
|
1170
|
+
name: string;
|
|
1171
|
+
branch?: string;
|
|
1161
1172
|
};
|
|
1162
1173
|
} | {
|
|
1163
1174
|
id: string;
|
|
1164
|
-
type: "
|
|
1175
|
+
type: "worktree.failed";
|
|
1165
1176
|
properties: {
|
|
1166
|
-
|
|
1177
|
+
message: string;
|
|
1167
1178
|
};
|
|
1168
1179
|
} | {
|
|
1169
1180
|
id: string;
|
|
1170
|
-
type: "
|
|
1181
|
+
type: "workspace.ready";
|
|
1171
1182
|
properties: {
|
|
1172
|
-
|
|
1173
|
-
sessionID: string;
|
|
1174
|
-
action: string;
|
|
1175
|
-
resources: Array<string>;
|
|
1176
|
-
save?: Array<string>;
|
|
1177
|
-
metadata?: {
|
|
1178
|
-
[key: string]: unknown;
|
|
1179
|
-
};
|
|
1180
|
-
source?: PermissionV2Source;
|
|
1183
|
+
name: string;
|
|
1181
1184
|
};
|
|
1182
1185
|
} | {
|
|
1183
1186
|
id: string;
|
|
1184
|
-
type: "
|
|
1187
|
+
type: "workspace.failed";
|
|
1185
1188
|
properties: {
|
|
1186
|
-
|
|
1187
|
-
requestID: string;
|
|
1188
|
-
reply: PermissionV2Reply;
|
|
1189
|
+
message: string;
|
|
1189
1190
|
};
|
|
1190
1191
|
} | {
|
|
1191
1192
|
id: string;
|
|
1192
|
-
type: "
|
|
1193
|
+
type: "workspace.status";
|
|
1193
1194
|
properties: {
|
|
1194
|
-
|
|
1195
|
+
workspaceID: string;
|
|
1196
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
1195
1197
|
};
|
|
1196
1198
|
} | {
|
|
1197
1199
|
id: string;
|
|
1198
|
-
type: "
|
|
1200
|
+
type: "server.connected";
|
|
1199
1201
|
properties: {
|
|
1200
|
-
|
|
1202
|
+
[key: string]: unknown;
|
|
1201
1203
|
};
|
|
1202
1204
|
} | {
|
|
1203
1205
|
id: string;
|
|
1204
|
-
type: "
|
|
1206
|
+
type: "global.disposed";
|
|
1205
1207
|
properties: {
|
|
1206
|
-
|
|
1207
|
-
from?: string;
|
|
1208
|
-
to?: string;
|
|
1208
|
+
[key: string]: unknown;
|
|
1209
1209
|
};
|
|
1210
|
-
} | EventServerInstanceDisposed | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded
|
|
1210
|
+
} | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded;
|
|
1211
1211
|
};
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Log level
|
|
@@ -1256,8 +1256,6 @@ export type PermissionConfig = PermissionActionConfig | {
|
|
|
1256
1256
|
question?: PermissionActionConfig;
|
|
1257
1257
|
webfetch?: PermissionActionConfig;
|
|
1258
1258
|
websearch?: PermissionActionConfig;
|
|
1259
|
-
repo_clone?: PermissionRuleConfig;
|
|
1260
|
-
repo_overview?: PermissionRuleConfig;
|
|
1261
1259
|
lsp?: PermissionRuleConfig;
|
|
1262
1260
|
doom_loop?: PermissionActionConfig;
|
|
1263
1261
|
skill?: PermissionRuleConfig;
|
|
@@ -1479,7 +1477,6 @@ export type Config = {
|
|
|
1479
1477
|
build?: AgentConfig;
|
|
1480
1478
|
general?: AgentConfig;
|
|
1481
1479
|
explore?: AgentConfig;
|
|
1482
|
-
scout?: AgentConfig;
|
|
1483
1480
|
title?: AgentConfig;
|
|
1484
1481
|
summary?: AgentConfig;
|
|
1485
1482
|
compaction?: AgentConfig;
|
|
@@ -2368,6 +2365,85 @@ export type EventServerInstanceDisposed = {
|
|
|
2368
2365
|
directory: string;
|
|
2369
2366
|
};
|
|
2370
2367
|
};
|
|
2368
|
+
export type SyncEventSessionCreated = {
|
|
2369
|
+
type: "sync";
|
|
2370
|
+
name: "session.created.1";
|
|
2371
|
+
id: string;
|
|
2372
|
+
seq: number;
|
|
2373
|
+
aggregateID: "sessionID";
|
|
2374
|
+
data: {
|
|
2375
|
+
sessionID: string;
|
|
2376
|
+
info: Session;
|
|
2377
|
+
};
|
|
2378
|
+
};
|
|
2379
|
+
export type SyncEventSessionUpdated = {
|
|
2380
|
+
type: "sync";
|
|
2381
|
+
name: "session.updated.1";
|
|
2382
|
+
id: string;
|
|
2383
|
+
seq: number;
|
|
2384
|
+
aggregateID: "sessionID";
|
|
2385
|
+
data: {
|
|
2386
|
+
sessionID: string;
|
|
2387
|
+
info: Session;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
export type SyncEventSessionDeleted = {
|
|
2391
|
+
type: "sync";
|
|
2392
|
+
name: "session.deleted.1";
|
|
2393
|
+
id: string;
|
|
2394
|
+
seq: number;
|
|
2395
|
+
aggregateID: "sessionID";
|
|
2396
|
+
data: {
|
|
2397
|
+
sessionID: string;
|
|
2398
|
+
info: Session;
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
export type SyncEventMessageUpdated = {
|
|
2402
|
+
type: "sync";
|
|
2403
|
+
name: "message.updated.1";
|
|
2404
|
+
id: string;
|
|
2405
|
+
seq: number;
|
|
2406
|
+
aggregateID: "sessionID";
|
|
2407
|
+
data: {
|
|
2408
|
+
sessionID: string;
|
|
2409
|
+
info: Message;
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
export type SyncEventMessageRemoved = {
|
|
2413
|
+
type: "sync";
|
|
2414
|
+
name: "message.removed.1";
|
|
2415
|
+
id: string;
|
|
2416
|
+
seq: number;
|
|
2417
|
+
aggregateID: "sessionID";
|
|
2418
|
+
data: {
|
|
2419
|
+
sessionID: string;
|
|
2420
|
+
messageID: string;
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
export type SyncEventMessagePartUpdated = {
|
|
2424
|
+
type: "sync";
|
|
2425
|
+
name: "message.part.updated.1";
|
|
2426
|
+
id: string;
|
|
2427
|
+
seq: number;
|
|
2428
|
+
aggregateID: "sessionID";
|
|
2429
|
+
data: {
|
|
2430
|
+
sessionID: string;
|
|
2431
|
+
part: Part;
|
|
2432
|
+
time: number;
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
export type SyncEventMessagePartRemoved = {
|
|
2436
|
+
type: "sync";
|
|
2437
|
+
name: "message.part.removed.1";
|
|
2438
|
+
id: string;
|
|
2439
|
+
seq: number;
|
|
2440
|
+
aggregateID: "sessionID";
|
|
2441
|
+
data: {
|
|
2442
|
+
sessionID: string;
|
|
2443
|
+
messageID: string;
|
|
2444
|
+
partID: string;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2371
2447
|
export type SyncEventSessionNextAgentSwitched = {
|
|
2372
2448
|
type: "sync";
|
|
2373
2449
|
name: "session.next.agent.switched.1";
|
|
@@ -2740,85 +2816,6 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
2740
2816
|
include?: string;
|
|
2741
2817
|
};
|
|
2742
2818
|
};
|
|
2743
|
-
export type SyncEventSessionCreated = {
|
|
2744
|
-
type: "sync";
|
|
2745
|
-
name: "session.created.1";
|
|
2746
|
-
id: string;
|
|
2747
|
-
seq: number;
|
|
2748
|
-
aggregateID: "sessionID";
|
|
2749
|
-
data: {
|
|
2750
|
-
sessionID: string;
|
|
2751
|
-
info: Session;
|
|
2752
|
-
};
|
|
2753
|
-
};
|
|
2754
|
-
export type SyncEventSessionUpdated = {
|
|
2755
|
-
type: "sync";
|
|
2756
|
-
name: "session.updated.1";
|
|
2757
|
-
id: string;
|
|
2758
|
-
seq: number;
|
|
2759
|
-
aggregateID: "sessionID";
|
|
2760
|
-
data: {
|
|
2761
|
-
sessionID: string;
|
|
2762
|
-
info: Session;
|
|
2763
|
-
};
|
|
2764
|
-
};
|
|
2765
|
-
export type SyncEventSessionDeleted = {
|
|
2766
|
-
type: "sync";
|
|
2767
|
-
name: "session.deleted.1";
|
|
2768
|
-
id: string;
|
|
2769
|
-
seq: number;
|
|
2770
|
-
aggregateID: "sessionID";
|
|
2771
|
-
data: {
|
|
2772
|
-
sessionID: string;
|
|
2773
|
-
info: Session;
|
|
2774
|
-
};
|
|
2775
|
-
};
|
|
2776
|
-
export type SyncEventMessageUpdated = {
|
|
2777
|
-
type: "sync";
|
|
2778
|
-
name: "message.updated.1";
|
|
2779
|
-
id: string;
|
|
2780
|
-
seq: number;
|
|
2781
|
-
aggregateID: "sessionID";
|
|
2782
|
-
data: {
|
|
2783
|
-
sessionID: string;
|
|
2784
|
-
info: Message;
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
export type SyncEventMessageRemoved = {
|
|
2788
|
-
type: "sync";
|
|
2789
|
-
name: "message.removed.1";
|
|
2790
|
-
id: string;
|
|
2791
|
-
seq: number;
|
|
2792
|
-
aggregateID: "sessionID";
|
|
2793
|
-
data: {
|
|
2794
|
-
sessionID: string;
|
|
2795
|
-
messageID: string;
|
|
2796
|
-
};
|
|
2797
|
-
};
|
|
2798
|
-
export type SyncEventMessagePartUpdated = {
|
|
2799
|
-
type: "sync";
|
|
2800
|
-
name: "message.part.updated.1";
|
|
2801
|
-
id: string;
|
|
2802
|
-
seq: number;
|
|
2803
|
-
aggregateID: "sessionID";
|
|
2804
|
-
data: {
|
|
2805
|
-
sessionID: string;
|
|
2806
|
-
part: Part;
|
|
2807
|
-
time: number;
|
|
2808
|
-
};
|
|
2809
|
-
};
|
|
2810
|
-
export type SyncEventMessagePartRemoved = {
|
|
2811
|
-
type: "sync";
|
|
2812
|
-
name: "message.part.removed.1";
|
|
2813
|
-
id: string;
|
|
2814
|
-
seq: number;
|
|
2815
|
-
aggregateID: "sessionID";
|
|
2816
|
-
data: {
|
|
2817
|
-
sessionID: string;
|
|
2818
|
-
messageID: string;
|
|
2819
|
-
partID: string;
|
|
2820
|
-
};
|
|
2821
|
-
};
|
|
2822
2819
|
export type PolicyEffect = "allow" | "deny";
|
|
2823
2820
|
export type ConfigV2ExperimentalPolicy = {
|
|
2824
2821
|
action: "provider.use";
|
|
@@ -3236,20 +3233,71 @@ export type EventCatalogModelUpdated = {
|
|
|
3236
3233
|
model: ModelV2Info1;
|
|
3237
3234
|
};
|
|
3238
3235
|
};
|
|
3239
|
-
export type
|
|
3236
|
+
export type EventSessionCreated = {
|
|
3240
3237
|
id: string;
|
|
3241
|
-
type: "
|
|
3238
|
+
type: "session.created";
|
|
3242
3239
|
properties: {
|
|
3243
|
-
|
|
3240
|
+
sessionID: string;
|
|
3241
|
+
info: Session;
|
|
3244
3242
|
};
|
|
3245
3243
|
};
|
|
3246
|
-
export type
|
|
3244
|
+
export type EventSessionUpdated = {
|
|
3247
3245
|
id: string;
|
|
3248
|
-
type: "session.
|
|
3246
|
+
type: "session.updated";
|
|
3249
3247
|
properties: {
|
|
3250
|
-
timestamp: number;
|
|
3251
3248
|
sessionID: string;
|
|
3252
|
-
|
|
3249
|
+
info: Session;
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3252
|
+
export type EventSessionDeleted = {
|
|
3253
|
+
id: string;
|
|
3254
|
+
type: "session.deleted";
|
|
3255
|
+
properties: {
|
|
3256
|
+
sessionID: string;
|
|
3257
|
+
info: Session;
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
export type EventMessageUpdated = {
|
|
3261
|
+
id: string;
|
|
3262
|
+
type: "message.updated";
|
|
3263
|
+
properties: {
|
|
3264
|
+
sessionID: string;
|
|
3265
|
+
info: Message;
|
|
3266
|
+
};
|
|
3267
|
+
};
|
|
3268
|
+
export type EventMessageRemoved = {
|
|
3269
|
+
id: string;
|
|
3270
|
+
type: "message.removed";
|
|
3271
|
+
properties: {
|
|
3272
|
+
sessionID: string;
|
|
3273
|
+
messageID: string;
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
export type EventMessagePartUpdated = {
|
|
3277
|
+
id: string;
|
|
3278
|
+
type: "message.part.updated";
|
|
3279
|
+
properties: {
|
|
3280
|
+
sessionID: string;
|
|
3281
|
+
part: Part;
|
|
3282
|
+
time: number;
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
export type EventMessagePartRemoved = {
|
|
3286
|
+
id: string;
|
|
3287
|
+
type: "message.part.removed";
|
|
3288
|
+
properties: {
|
|
3289
|
+
sessionID: string;
|
|
3290
|
+
messageID: string;
|
|
3291
|
+
partID: string;
|
|
3292
|
+
};
|
|
3293
|
+
};
|
|
3294
|
+
export type EventSessionNextAgentSwitched = {
|
|
3295
|
+
id: string;
|
|
3296
|
+
type: "session.next.agent.switched";
|
|
3297
|
+
properties: {
|
|
3298
|
+
timestamp: number;
|
|
3299
|
+
sessionID: string;
|
|
3300
|
+
agent: string;
|
|
3253
3301
|
};
|
|
3254
3302
|
};
|
|
3255
3303
|
export type EventSessionNextModelSwitched = {
|
|
@@ -3537,97 +3585,59 @@ export type EventSessionNextCompactionEnded = {
|
|
|
3537
3585
|
include?: string;
|
|
3538
3586
|
};
|
|
3539
3587
|
};
|
|
3540
|
-
export type
|
|
3541
|
-
id: string;
|
|
3542
|
-
type: "file.watcher.updated";
|
|
3543
|
-
properties: {
|
|
3544
|
-
file: string;
|
|
3545
|
-
event: "add" | "change" | "unlink";
|
|
3546
|
-
};
|
|
3547
|
-
};
|
|
3548
|
-
export type EventSessionCreated = {
|
|
3549
|
-
id: string;
|
|
3550
|
-
type: "session.created";
|
|
3551
|
-
properties: {
|
|
3552
|
-
sessionID: string;
|
|
3553
|
-
info: Session;
|
|
3554
|
-
};
|
|
3555
|
-
};
|
|
3556
|
-
export type EventSessionUpdated = {
|
|
3557
|
-
id: string;
|
|
3558
|
-
type: "session.updated";
|
|
3559
|
-
properties: {
|
|
3560
|
-
sessionID: string;
|
|
3561
|
-
info: Session;
|
|
3562
|
-
};
|
|
3563
|
-
};
|
|
3564
|
-
export type EventSessionDeleted = {
|
|
3565
|
-
id: string;
|
|
3566
|
-
type: "session.deleted";
|
|
3567
|
-
properties: {
|
|
3568
|
-
sessionID: string;
|
|
3569
|
-
info: Session;
|
|
3570
|
-
};
|
|
3571
|
-
};
|
|
3572
|
-
export type EventMessageUpdated = {
|
|
3588
|
+
export type EventMessagePartDelta = {
|
|
3573
3589
|
id: string;
|
|
3574
|
-
type: "message.
|
|
3590
|
+
type: "message.part.delta";
|
|
3575
3591
|
properties: {
|
|
3576
3592
|
sessionID: string;
|
|
3577
|
-
|
|
3593
|
+
messageID: string;
|
|
3594
|
+
partID: string;
|
|
3595
|
+
field: string;
|
|
3596
|
+
delta: string;
|
|
3578
3597
|
};
|
|
3579
3598
|
};
|
|
3580
|
-
export type
|
|
3599
|
+
export type EventSessionDiff = {
|
|
3581
3600
|
id: string;
|
|
3582
|
-
type: "
|
|
3601
|
+
type: "session.diff";
|
|
3583
3602
|
properties: {
|
|
3584
3603
|
sessionID: string;
|
|
3585
|
-
|
|
3604
|
+
diff: Array<SnapshotFileDiff>;
|
|
3586
3605
|
};
|
|
3587
3606
|
};
|
|
3588
|
-
export type
|
|
3607
|
+
export type EventSessionError = {
|
|
3589
3608
|
id: string;
|
|
3590
|
-
type: "
|
|
3609
|
+
type: "session.error";
|
|
3591
3610
|
properties: {
|
|
3592
|
-
sessionID
|
|
3593
|
-
|
|
3594
|
-
time: number;
|
|
3611
|
+
sessionID?: string;
|
|
3612
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
3595
3613
|
};
|
|
3596
3614
|
};
|
|
3597
|
-
export type
|
|
3615
|
+
export type EventInstallationUpdated = {
|
|
3598
3616
|
id: string;
|
|
3599
|
-
type: "
|
|
3617
|
+
type: "installation.updated";
|
|
3600
3618
|
properties: {
|
|
3601
|
-
|
|
3602
|
-
messageID: string;
|
|
3603
|
-
partID: string;
|
|
3619
|
+
version: string;
|
|
3604
3620
|
};
|
|
3605
3621
|
};
|
|
3606
|
-
export type
|
|
3622
|
+
export type EventInstallationUpdateAvailable = {
|
|
3607
3623
|
id: string;
|
|
3608
|
-
type: "
|
|
3624
|
+
type: "installation.update-available";
|
|
3609
3625
|
properties: {
|
|
3610
|
-
|
|
3611
|
-
messageID: string;
|
|
3612
|
-
partID: string;
|
|
3613
|
-
field: string;
|
|
3614
|
-
delta: string;
|
|
3626
|
+
version: string;
|
|
3615
3627
|
};
|
|
3616
3628
|
};
|
|
3617
|
-
export type
|
|
3629
|
+
export type EventFileEdited = {
|
|
3618
3630
|
id: string;
|
|
3619
|
-
type: "
|
|
3631
|
+
type: "file.edited";
|
|
3620
3632
|
properties: {
|
|
3621
|
-
|
|
3622
|
-
diff: Array<SnapshotFileDiff>;
|
|
3633
|
+
file: string;
|
|
3623
3634
|
};
|
|
3624
3635
|
};
|
|
3625
|
-
export type
|
|
3636
|
+
export type EventLspUpdated = {
|
|
3626
3637
|
id: string;
|
|
3627
|
-
type: "
|
|
3638
|
+
type: "lsp.updated";
|
|
3628
3639
|
properties: {
|
|
3629
|
-
|
|
3630
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
3640
|
+
[key: string]: unknown;
|
|
3631
3641
|
};
|
|
3632
3642
|
};
|
|
3633
3643
|
export type EventPermissionAsked = {
|
|
@@ -3657,71 +3667,51 @@ export type EventPermissionReplied = {
|
|
|
3657
3667
|
reply: "once" | "always" | "reject";
|
|
3658
3668
|
};
|
|
3659
3669
|
};
|
|
3660
|
-
export type
|
|
3670
|
+
export type EventPermissionV2Asked = {
|
|
3661
3671
|
id: string;
|
|
3662
|
-
type: "
|
|
3672
|
+
type: "permission.v2.asked";
|
|
3663
3673
|
properties: {
|
|
3664
3674
|
id: string;
|
|
3665
3675
|
sessionID: string;
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
export type EventQuestionReplied = {
|
|
3674
|
-
id: string;
|
|
3675
|
-
type: "question.replied";
|
|
3676
|
-
properties: {
|
|
3677
|
-
sessionID: string;
|
|
3678
|
-
requestID: string;
|
|
3679
|
-
answers: Array<QuestionAnswer>;
|
|
3676
|
+
action: string;
|
|
3677
|
+
resources: Array<string>;
|
|
3678
|
+
save?: Array<string>;
|
|
3679
|
+
metadata?: {
|
|
3680
|
+
[key: string]: unknown;
|
|
3681
|
+
};
|
|
3682
|
+
source?: PermissionV2Source;
|
|
3680
3683
|
};
|
|
3681
3684
|
};
|
|
3682
|
-
export type
|
|
3685
|
+
export type EventPermissionV2Replied = {
|
|
3683
3686
|
id: string;
|
|
3684
|
-
type: "
|
|
3687
|
+
type: "permission.v2.replied";
|
|
3685
3688
|
properties: {
|
|
3686
3689
|
sessionID: string;
|
|
3687
3690
|
requestID: string;
|
|
3691
|
+
reply: PermissionV2Reply;
|
|
3688
3692
|
};
|
|
3689
3693
|
};
|
|
3690
|
-
export type
|
|
3691
|
-
id: string;
|
|
3692
|
-
type: "todo.updated";
|
|
3693
|
-
properties: {
|
|
3694
|
-
sessionID: string;
|
|
3695
|
-
todos: Array<Todo>;
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
export type EventSessionStatus = {
|
|
3699
|
-
id: string;
|
|
3700
|
-
type: "session.status";
|
|
3701
|
-
properties: {
|
|
3702
|
-
sessionID: string;
|
|
3703
|
-
status: SessionStatus;
|
|
3704
|
-
};
|
|
3705
|
-
};
|
|
3706
|
-
export type EventSessionIdle = {
|
|
3694
|
+
export type EventAccountAdded = {
|
|
3707
3695
|
id: string;
|
|
3708
|
-
type: "
|
|
3696
|
+
type: "account.added";
|
|
3709
3697
|
properties: {
|
|
3710
|
-
|
|
3698
|
+
account: AuthInfo;
|
|
3711
3699
|
};
|
|
3712
3700
|
};
|
|
3713
|
-
export type
|
|
3701
|
+
export type EventAccountRemoved = {
|
|
3714
3702
|
id: string;
|
|
3715
|
-
type: "
|
|
3703
|
+
type: "account.removed";
|
|
3716
3704
|
properties: {
|
|
3717
|
-
|
|
3705
|
+
account: AuthInfo;
|
|
3718
3706
|
};
|
|
3719
3707
|
};
|
|
3720
|
-
export type
|
|
3708
|
+
export type EventAccountSwitched = {
|
|
3721
3709
|
id: string;
|
|
3722
|
-
type: "
|
|
3710
|
+
type: "account.switched";
|
|
3723
3711
|
properties: {
|
|
3724
|
-
|
|
3712
|
+
serviceID: string;
|
|
3713
|
+
from?: string;
|
|
3714
|
+
to?: string;
|
|
3725
3715
|
};
|
|
3726
3716
|
};
|
|
3727
3717
|
export type EventMcpToolsChanged = {
|
|
@@ -3749,6 +3739,14 @@ export type EventCommandExecuted = {
|
|
|
3749
3739
|
messageID: string;
|
|
3750
3740
|
};
|
|
3751
3741
|
};
|
|
3742
|
+
export type EventFileWatcherUpdated = {
|
|
3743
|
+
id: string;
|
|
3744
|
+
type: "file.watcher.updated";
|
|
3745
|
+
properties: {
|
|
3746
|
+
file: string;
|
|
3747
|
+
event: "add" | "change" | "unlink";
|
|
3748
|
+
};
|
|
3749
|
+
};
|
|
3752
3750
|
export type EventProjectUpdated = {
|
|
3753
3751
|
id: string;
|
|
3754
3752
|
type: "project.updated";
|
|
@@ -3776,152 +3774,151 @@ export type EventProjectUpdated = {
|
|
|
3776
3774
|
sandboxes: Array<string>;
|
|
3777
3775
|
};
|
|
3778
3776
|
};
|
|
3779
|
-
export type
|
|
3777
|
+
export type EventPtyCreated = {
|
|
3780
3778
|
id: string;
|
|
3781
|
-
type: "
|
|
3779
|
+
type: "pty.created";
|
|
3782
3780
|
properties: {
|
|
3783
|
-
|
|
3781
|
+
info: Pty;
|
|
3784
3782
|
};
|
|
3785
3783
|
};
|
|
3786
|
-
export type
|
|
3784
|
+
export type EventPtyUpdated = {
|
|
3787
3785
|
id: string;
|
|
3788
|
-
type: "
|
|
3786
|
+
type: "pty.updated";
|
|
3789
3787
|
properties: {
|
|
3790
|
-
|
|
3788
|
+
info: Pty;
|
|
3791
3789
|
};
|
|
3792
3790
|
};
|
|
3793
|
-
export type
|
|
3791
|
+
export type EventPtyExited = {
|
|
3794
3792
|
id: string;
|
|
3795
|
-
type: "
|
|
3793
|
+
type: "pty.exited";
|
|
3796
3794
|
properties: {
|
|
3797
|
-
|
|
3795
|
+
id: string;
|
|
3796
|
+
exitCode: number;
|
|
3798
3797
|
};
|
|
3799
3798
|
};
|
|
3800
|
-
export type
|
|
3799
|
+
export type EventPtyDeleted = {
|
|
3801
3800
|
id: string;
|
|
3802
|
-
type: "
|
|
3801
|
+
type: "pty.deleted";
|
|
3803
3802
|
properties: {
|
|
3804
|
-
|
|
3805
|
-
status: "connected" | "connecting" | "disconnected" | "error";
|
|
3803
|
+
id: string;
|
|
3806
3804
|
};
|
|
3807
3805
|
};
|
|
3808
|
-
export type
|
|
3806
|
+
export type EventQuestionAsked = {
|
|
3809
3807
|
id: string;
|
|
3810
|
-
type: "
|
|
3808
|
+
type: "question.asked";
|
|
3811
3809
|
properties: {
|
|
3812
|
-
|
|
3813
|
-
|
|
3810
|
+
id: string;
|
|
3811
|
+
sessionID: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* Questions to ask
|
|
3814
|
+
*/
|
|
3815
|
+
questions: Array<QuestionInfo>;
|
|
3816
|
+
tool?: QuestionTool;
|
|
3814
3817
|
};
|
|
3815
3818
|
};
|
|
3816
|
-
export type
|
|
3819
|
+
export type EventQuestionReplied = {
|
|
3817
3820
|
id: string;
|
|
3818
|
-
type: "
|
|
3821
|
+
type: "question.replied";
|
|
3819
3822
|
properties: {
|
|
3820
|
-
|
|
3823
|
+
sessionID: string;
|
|
3824
|
+
requestID: string;
|
|
3825
|
+
answers: Array<QuestionAnswer>;
|
|
3821
3826
|
};
|
|
3822
3827
|
};
|
|
3823
|
-
export type
|
|
3828
|
+
export type EventQuestionRejected = {
|
|
3824
3829
|
id: string;
|
|
3825
|
-
type: "
|
|
3830
|
+
type: "question.rejected";
|
|
3826
3831
|
properties: {
|
|
3827
|
-
|
|
3832
|
+
sessionID: string;
|
|
3833
|
+
requestID: string;
|
|
3828
3834
|
};
|
|
3829
3835
|
};
|
|
3830
|
-
export type
|
|
3836
|
+
export type EventSessionStatus = {
|
|
3831
3837
|
id: string;
|
|
3832
|
-
type: "
|
|
3838
|
+
type: "session.status";
|
|
3833
3839
|
properties: {
|
|
3834
|
-
|
|
3840
|
+
sessionID: string;
|
|
3841
|
+
status: SessionStatus;
|
|
3835
3842
|
};
|
|
3836
3843
|
};
|
|
3837
|
-
export type
|
|
3844
|
+
export type EventSessionIdle = {
|
|
3838
3845
|
id: string;
|
|
3839
|
-
type: "
|
|
3846
|
+
type: "session.idle";
|
|
3840
3847
|
properties: {
|
|
3841
|
-
|
|
3842
|
-
exitCode: number;
|
|
3848
|
+
sessionID: string;
|
|
3843
3849
|
};
|
|
3844
3850
|
};
|
|
3845
|
-
export type
|
|
3851
|
+
export type EventSessionCompacted = {
|
|
3846
3852
|
id: string;
|
|
3847
|
-
type: "
|
|
3853
|
+
type: "session.compacted";
|
|
3848
3854
|
properties: {
|
|
3849
|
-
|
|
3855
|
+
sessionID: string;
|
|
3850
3856
|
};
|
|
3851
3857
|
};
|
|
3852
|
-
export type
|
|
3858
|
+
export type EventTodoUpdated = {
|
|
3853
3859
|
id: string;
|
|
3854
|
-
type: "
|
|
3860
|
+
type: "todo.updated";
|
|
3855
3861
|
properties: {
|
|
3856
|
-
|
|
3862
|
+
sessionID: string;
|
|
3863
|
+
todos: Array<Todo>;
|
|
3857
3864
|
};
|
|
3858
3865
|
};
|
|
3859
|
-
export type
|
|
3866
|
+
export type EventVcsBranchUpdated = {
|
|
3860
3867
|
id: string;
|
|
3861
|
-
type: "
|
|
3868
|
+
type: "vcs.branch.updated";
|
|
3862
3869
|
properties: {
|
|
3863
|
-
|
|
3870
|
+
branch?: string;
|
|
3864
3871
|
};
|
|
3865
3872
|
};
|
|
3866
|
-
export type
|
|
3873
|
+
export type EventWorktreeReady = {
|
|
3867
3874
|
id: string;
|
|
3868
|
-
type: "
|
|
3875
|
+
type: "worktree.ready";
|
|
3869
3876
|
properties: {
|
|
3870
|
-
|
|
3877
|
+
name: string;
|
|
3878
|
+
branch?: string;
|
|
3871
3879
|
};
|
|
3872
3880
|
};
|
|
3873
|
-
export type
|
|
3881
|
+
export type EventWorktreeFailed = {
|
|
3874
3882
|
id: string;
|
|
3875
|
-
type: "
|
|
3883
|
+
type: "worktree.failed";
|
|
3876
3884
|
properties: {
|
|
3877
|
-
|
|
3885
|
+
message: string;
|
|
3878
3886
|
};
|
|
3879
3887
|
};
|
|
3880
|
-
export type
|
|
3888
|
+
export type EventWorkspaceReady = {
|
|
3881
3889
|
id: string;
|
|
3882
|
-
type: "
|
|
3890
|
+
type: "workspace.ready";
|
|
3883
3891
|
properties: {
|
|
3884
|
-
|
|
3885
|
-
sessionID: string;
|
|
3886
|
-
action: string;
|
|
3887
|
-
resources: Array<string>;
|
|
3888
|
-
save?: Array<string>;
|
|
3889
|
-
metadata?: {
|
|
3890
|
-
[key: string]: unknown;
|
|
3891
|
-
};
|
|
3892
|
-
source?: PermissionV2Source;
|
|
3892
|
+
name: string;
|
|
3893
3893
|
};
|
|
3894
3894
|
};
|
|
3895
|
-
export type
|
|
3895
|
+
export type EventWorkspaceFailed = {
|
|
3896
3896
|
id: string;
|
|
3897
|
-
type: "
|
|
3897
|
+
type: "workspace.failed";
|
|
3898
3898
|
properties: {
|
|
3899
|
-
|
|
3900
|
-
requestID: string;
|
|
3901
|
-
reply: PermissionV2Reply;
|
|
3899
|
+
message: string;
|
|
3902
3900
|
};
|
|
3903
3901
|
};
|
|
3904
|
-
export type
|
|
3902
|
+
export type EventWorkspaceStatus = {
|
|
3905
3903
|
id: string;
|
|
3906
|
-
type: "
|
|
3904
|
+
type: "workspace.status";
|
|
3907
3905
|
properties: {
|
|
3908
|
-
|
|
3906
|
+
workspaceID: string;
|
|
3907
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
3909
3908
|
};
|
|
3910
3909
|
};
|
|
3911
|
-
export type
|
|
3910
|
+
export type EventServerConnected = {
|
|
3912
3911
|
id: string;
|
|
3913
|
-
type: "
|
|
3912
|
+
type: "server.connected";
|
|
3914
3913
|
properties: {
|
|
3915
|
-
|
|
3914
|
+
[key: string]: unknown;
|
|
3916
3915
|
};
|
|
3917
3916
|
};
|
|
3918
|
-
export type
|
|
3917
|
+
export type EventGlobalDisposed = {
|
|
3919
3918
|
id: string;
|
|
3920
|
-
type: "
|
|
3919
|
+
type: "global.disposed";
|
|
3921
3920
|
properties: {
|
|
3922
|
-
|
|
3923
|
-
from?: string;
|
|
3924
|
-
to?: string;
|
|
3921
|
+
[key: string]: unknown;
|
|
3925
3922
|
};
|
|
3926
3923
|
};
|
|
3927
3924
|
export type BadRequestError = {
|