@opencode-ai/sdk 0.0.0-next-14833 → 0.0.0-next-14834
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 +486 -458
- 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 | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventAgentUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved |
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventAgentUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionAgentSelected | EventSessionModelSelected | EventSessionMoved | EventSessionRenamed | EventSessionForked | EventSessionPromptPromoted | EventSessionPromptAdmitted | EventSessionExecutionSettled | EventSessionContextUpdated | EventSessionSynthetic | EventSessionSkillActivated | EventSessionShellStarted | EventSessionShellEnded | EventSessionStepStarted | EventSessionStepEnded | EventSessionStepFailed | EventSessionTextStarted | EventSessionTextDelta | EventSessionTextEnded | EventSessionReasoningStarted | EventSessionReasoningDelta | EventSessionReasoningEnded | EventSessionToolInputStarted | EventSessionToolInputDelta | EventSessionToolInputEnded | EventSessionToolCalled | EventSessionToolProgress | EventSessionToolSuccess | EventSessionToolFailed | EventSessionRetried | EventSessionCompactionStarted | EventSessionCompactionDelta | EventSessionCompactionEnded | EventSessionRevertStaged | EventSessionRevertCleared | EventSessionRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventCommandUpdated | EventSkillUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventShellCreated | EventShellExited | EventShellDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventFormCreated | EventFormReplied | EventFormCancelled | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpStatusChanged | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -477,16 +477,6 @@ export type Prompt = {
|
|
|
477
477
|
files?: Array<PromptFileAttachment>;
|
|
478
478
|
agents?: Array<PromptAgentAttachment>;
|
|
479
479
|
};
|
|
480
|
-
export type Pty = {
|
|
481
|
-
id: string;
|
|
482
|
-
title: string;
|
|
483
|
-
command: string;
|
|
484
|
-
args: Array<string>;
|
|
485
|
-
cwd: string;
|
|
486
|
-
status: "running" | "exited";
|
|
487
|
-
pid: number;
|
|
488
|
-
exitCode?: number;
|
|
489
|
-
};
|
|
490
480
|
export type Shell = {
|
|
491
481
|
id: string;
|
|
492
482
|
status: "running" | "exited" | "timeout" | "killed";
|
|
@@ -504,6 +494,16 @@ export type Shell = {
|
|
|
504
494
|
completed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
505
495
|
};
|
|
506
496
|
};
|
|
497
|
+
export type Pty = {
|
|
498
|
+
id: string;
|
|
499
|
+
title: string;
|
|
500
|
+
command: string;
|
|
501
|
+
args: Array<string>;
|
|
502
|
+
cwd: string;
|
|
503
|
+
status: "running" | "exited";
|
|
504
|
+
pid: number;
|
|
505
|
+
exitCode?: number;
|
|
506
|
+
};
|
|
507
507
|
export type Todo = {
|
|
508
508
|
/**
|
|
509
509
|
* Brief description of the task
|
|
@@ -654,14 +654,14 @@ export type GlobalEvent = {
|
|
|
654
654
|
};
|
|
655
655
|
} | {
|
|
656
656
|
id: string;
|
|
657
|
-
type: "agent.selected";
|
|
657
|
+
type: "session.agent.selected";
|
|
658
658
|
properties: {
|
|
659
659
|
sessionID: string;
|
|
660
660
|
agent: string;
|
|
661
661
|
};
|
|
662
662
|
} | {
|
|
663
663
|
id: string;
|
|
664
|
-
type: "model.selected";
|
|
664
|
+
type: "session.model.selected";
|
|
665
665
|
properties: {
|
|
666
666
|
sessionID: string;
|
|
667
667
|
model: ModelRef;
|
|
@@ -676,14 +676,14 @@ export type GlobalEvent = {
|
|
|
676
676
|
};
|
|
677
677
|
} | {
|
|
678
678
|
id: string;
|
|
679
|
-
type: "renamed";
|
|
679
|
+
type: "session.renamed";
|
|
680
680
|
properties: {
|
|
681
681
|
sessionID: string;
|
|
682
682
|
title: string;
|
|
683
683
|
};
|
|
684
684
|
} | {
|
|
685
685
|
id: string;
|
|
686
|
-
type: "forked";
|
|
686
|
+
type: "session.forked";
|
|
687
687
|
properties: {
|
|
688
688
|
sessionID: string;
|
|
689
689
|
parentID: string;
|
|
@@ -691,14 +691,14 @@ export type GlobalEvent = {
|
|
|
691
691
|
};
|
|
692
692
|
} | {
|
|
693
693
|
id: string;
|
|
694
|
-
type: "prompt.promoted";
|
|
694
|
+
type: "session.prompt.promoted";
|
|
695
695
|
properties: {
|
|
696
696
|
sessionID: string;
|
|
697
697
|
inputID: string;
|
|
698
698
|
};
|
|
699
699
|
} | {
|
|
700
700
|
id: string;
|
|
701
|
-
type: "prompt.admitted";
|
|
701
|
+
type: "session.prompt.admitted";
|
|
702
702
|
properties: {
|
|
703
703
|
sessionID: string;
|
|
704
704
|
inputID: string;
|
|
@@ -707,7 +707,7 @@ export type GlobalEvent = {
|
|
|
707
707
|
};
|
|
708
708
|
} | {
|
|
709
709
|
id: string;
|
|
710
|
-
type: "execution.settled";
|
|
710
|
+
type: "session.execution.settled";
|
|
711
711
|
properties: {
|
|
712
712
|
sessionID: string;
|
|
713
713
|
outcome: "success" | "failure" | "interrupted";
|
|
@@ -722,7 +722,7 @@ export type GlobalEvent = {
|
|
|
722
722
|
};
|
|
723
723
|
} | {
|
|
724
724
|
id: string;
|
|
725
|
-
type: "synthetic";
|
|
725
|
+
type: "session.synthetic";
|
|
726
726
|
properties: {
|
|
727
727
|
sessionID: string;
|
|
728
728
|
text: string;
|
|
@@ -733,7 +733,7 @@ export type GlobalEvent = {
|
|
|
733
733
|
};
|
|
734
734
|
} | {
|
|
735
735
|
id: string;
|
|
736
|
-
type: "skill.activated";
|
|
736
|
+
type: "session.skill.activated";
|
|
737
737
|
properties: {
|
|
738
738
|
sessionID: string;
|
|
739
739
|
name: string;
|
|
@@ -741,23 +741,27 @@ export type GlobalEvent = {
|
|
|
741
741
|
};
|
|
742
742
|
} | {
|
|
743
743
|
id: string;
|
|
744
|
-
type: "shell.started";
|
|
744
|
+
type: "session.shell.started";
|
|
745
745
|
properties: {
|
|
746
746
|
sessionID: string;
|
|
747
|
-
|
|
748
|
-
command: string;
|
|
747
|
+
shell: Shell;
|
|
749
748
|
};
|
|
750
749
|
} | {
|
|
751
750
|
id: string;
|
|
752
|
-
type: "shell.ended";
|
|
751
|
+
type: "session.shell.ended";
|
|
753
752
|
properties: {
|
|
754
753
|
sessionID: string;
|
|
755
|
-
|
|
756
|
-
output:
|
|
754
|
+
shell: Shell;
|
|
755
|
+
output: {
|
|
756
|
+
output: string;
|
|
757
|
+
cursor: number;
|
|
758
|
+
size: number;
|
|
759
|
+
truncated: boolean;
|
|
760
|
+
};
|
|
757
761
|
};
|
|
758
762
|
} | {
|
|
759
763
|
id: string;
|
|
760
|
-
type: "step.started";
|
|
764
|
+
type: "session.step.started";
|
|
761
765
|
properties: {
|
|
762
766
|
sessionID: string;
|
|
763
767
|
assistantMessageID: string;
|
|
@@ -767,7 +771,7 @@ export type GlobalEvent = {
|
|
|
767
771
|
};
|
|
768
772
|
} | {
|
|
769
773
|
id: string;
|
|
770
|
-
type: "step.ended";
|
|
774
|
+
type: "session.step.ended";
|
|
771
775
|
properties: {
|
|
772
776
|
sessionID: string;
|
|
773
777
|
assistantMessageID: string;
|
|
@@ -787,7 +791,7 @@ export type GlobalEvent = {
|
|
|
787
791
|
};
|
|
788
792
|
} | {
|
|
789
793
|
id: string;
|
|
790
|
-
type: "step.failed";
|
|
794
|
+
type: "session.step.failed";
|
|
791
795
|
properties: {
|
|
792
796
|
sessionID: string;
|
|
793
797
|
assistantMessageID: string;
|
|
@@ -795,7 +799,7 @@ export type GlobalEvent = {
|
|
|
795
799
|
};
|
|
796
800
|
} | {
|
|
797
801
|
id: string;
|
|
798
|
-
type: "text.started";
|
|
802
|
+
type: "session.text.started";
|
|
799
803
|
properties: {
|
|
800
804
|
sessionID: string;
|
|
801
805
|
assistantMessageID: string;
|
|
@@ -803,7 +807,7 @@ export type GlobalEvent = {
|
|
|
803
807
|
};
|
|
804
808
|
} | {
|
|
805
809
|
id: string;
|
|
806
|
-
type: "text.delta";
|
|
810
|
+
type: "session.text.delta";
|
|
807
811
|
properties: {
|
|
808
812
|
sessionID: string;
|
|
809
813
|
assistantMessageID: string;
|
|
@@ -812,7 +816,7 @@ export type GlobalEvent = {
|
|
|
812
816
|
};
|
|
813
817
|
} | {
|
|
814
818
|
id: string;
|
|
815
|
-
type: "text.ended";
|
|
819
|
+
type: "session.text.ended";
|
|
816
820
|
properties: {
|
|
817
821
|
sessionID: string;
|
|
818
822
|
assistantMessageID: string;
|
|
@@ -821,7 +825,7 @@ export type GlobalEvent = {
|
|
|
821
825
|
};
|
|
822
826
|
} | {
|
|
823
827
|
id: string;
|
|
824
|
-
type: "reasoning.started";
|
|
828
|
+
type: "session.reasoning.started";
|
|
825
829
|
properties: {
|
|
826
830
|
sessionID: string;
|
|
827
831
|
assistantMessageID: string;
|
|
@@ -830,7 +834,7 @@ export type GlobalEvent = {
|
|
|
830
834
|
};
|
|
831
835
|
} | {
|
|
832
836
|
id: string;
|
|
833
|
-
type: "reasoning.delta";
|
|
837
|
+
type: "session.reasoning.delta";
|
|
834
838
|
properties: {
|
|
835
839
|
sessionID: string;
|
|
836
840
|
assistantMessageID: string;
|
|
@@ -839,7 +843,7 @@ export type GlobalEvent = {
|
|
|
839
843
|
};
|
|
840
844
|
} | {
|
|
841
845
|
id: string;
|
|
842
|
-
type: "reasoning.ended";
|
|
846
|
+
type: "session.reasoning.ended";
|
|
843
847
|
properties: {
|
|
844
848
|
sessionID: string;
|
|
845
849
|
assistantMessageID: string;
|
|
@@ -849,7 +853,7 @@ export type GlobalEvent = {
|
|
|
849
853
|
};
|
|
850
854
|
} | {
|
|
851
855
|
id: string;
|
|
852
|
-
type: "tool.input.started";
|
|
856
|
+
type: "session.tool.input.started";
|
|
853
857
|
properties: {
|
|
854
858
|
sessionID: string;
|
|
855
859
|
assistantMessageID: string;
|
|
@@ -858,7 +862,7 @@ export type GlobalEvent = {
|
|
|
858
862
|
};
|
|
859
863
|
} | {
|
|
860
864
|
id: string;
|
|
861
|
-
type: "tool.input.delta";
|
|
865
|
+
type: "session.tool.input.delta";
|
|
862
866
|
properties: {
|
|
863
867
|
sessionID: string;
|
|
864
868
|
assistantMessageID: string;
|
|
@@ -867,7 +871,7 @@ export type GlobalEvent = {
|
|
|
867
871
|
};
|
|
868
872
|
} | {
|
|
869
873
|
id: string;
|
|
870
|
-
type: "tool.input.ended";
|
|
874
|
+
type: "session.tool.input.ended";
|
|
871
875
|
properties: {
|
|
872
876
|
sessionID: string;
|
|
873
877
|
assistantMessageID: string;
|
|
@@ -876,7 +880,7 @@ export type GlobalEvent = {
|
|
|
876
880
|
};
|
|
877
881
|
} | {
|
|
878
882
|
id: string;
|
|
879
|
-
type: "tool.called";
|
|
883
|
+
type: "session.tool.called";
|
|
880
884
|
properties: {
|
|
881
885
|
sessionID: string;
|
|
882
886
|
assistantMessageID: string;
|
|
@@ -892,7 +896,7 @@ export type GlobalEvent = {
|
|
|
892
896
|
};
|
|
893
897
|
} | {
|
|
894
898
|
id: string;
|
|
895
|
-
type: "tool.progress";
|
|
899
|
+
type: "session.tool.progress";
|
|
896
900
|
properties: {
|
|
897
901
|
sessionID: string;
|
|
898
902
|
assistantMessageID: string;
|
|
@@ -904,7 +908,7 @@ export type GlobalEvent = {
|
|
|
904
908
|
};
|
|
905
909
|
} | {
|
|
906
910
|
id: string;
|
|
907
|
-
type: "tool.success";
|
|
911
|
+
type: "session.tool.success";
|
|
908
912
|
properties: {
|
|
909
913
|
sessionID: string;
|
|
910
914
|
assistantMessageID: string;
|
|
@@ -922,7 +926,7 @@ export type GlobalEvent = {
|
|
|
922
926
|
};
|
|
923
927
|
} | {
|
|
924
928
|
id: string;
|
|
925
|
-
type: "tool.failed";
|
|
929
|
+
type: "session.tool.failed";
|
|
926
930
|
properties: {
|
|
927
931
|
sessionID: string;
|
|
928
932
|
assistantMessageID: string;
|
|
@@ -936,7 +940,7 @@ export type GlobalEvent = {
|
|
|
936
940
|
};
|
|
937
941
|
} | {
|
|
938
942
|
id: string;
|
|
939
|
-
type: "retried";
|
|
943
|
+
type: "session.retried";
|
|
940
944
|
properties: {
|
|
941
945
|
sessionID: string;
|
|
942
946
|
attempt: number;
|
|
@@ -944,21 +948,21 @@ export type GlobalEvent = {
|
|
|
944
948
|
};
|
|
945
949
|
} | {
|
|
946
950
|
id: string;
|
|
947
|
-
type: "compaction.started";
|
|
951
|
+
type: "session.compaction.started";
|
|
948
952
|
properties: {
|
|
949
953
|
sessionID: string;
|
|
950
954
|
reason: "auto" | "manual";
|
|
951
955
|
};
|
|
952
956
|
} | {
|
|
953
957
|
id: string;
|
|
954
|
-
type: "compaction.delta";
|
|
958
|
+
type: "session.compaction.delta";
|
|
955
959
|
properties: {
|
|
956
960
|
sessionID: string;
|
|
957
961
|
text: string;
|
|
958
962
|
};
|
|
959
963
|
} | {
|
|
960
964
|
id: string;
|
|
961
|
-
type: "compaction.ended";
|
|
965
|
+
type: "session.compaction.ended";
|
|
962
966
|
properties: {
|
|
963
967
|
sessionID: string;
|
|
964
968
|
reason: "auto" | "manual";
|
|
@@ -967,20 +971,20 @@ export type GlobalEvent = {
|
|
|
967
971
|
};
|
|
968
972
|
} | {
|
|
969
973
|
id: string;
|
|
970
|
-
type: "revert.staged";
|
|
974
|
+
type: "session.revert.staged";
|
|
971
975
|
properties: {
|
|
972
976
|
sessionID: string;
|
|
973
977
|
revert: RevertState;
|
|
974
978
|
};
|
|
975
979
|
} | {
|
|
976
980
|
id: string;
|
|
977
|
-
type: "revert.cleared";
|
|
981
|
+
type: "session.revert.cleared";
|
|
978
982
|
properties: {
|
|
979
983
|
sessionID: string;
|
|
980
984
|
};
|
|
981
985
|
} | {
|
|
982
986
|
id: string;
|
|
983
|
-
type: "revert.committed";
|
|
987
|
+
type: "session.revert.committed";
|
|
984
988
|
properties: {
|
|
985
989
|
sessionID: string;
|
|
986
990
|
messageID: string;
|
|
@@ -1377,7 +1381,7 @@ export type GlobalEvent = {
|
|
|
1377
1381
|
properties: {
|
|
1378
1382
|
[key: string]: unknown;
|
|
1379
1383
|
};
|
|
1380
|
-
} | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved |
|
|
1384
|
+
} | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionAgentSelected | SyncEventSessionModelSelected | SyncEventSessionMoved | SyncEventSessionRenamed | SyncEventSessionForked | SyncEventSessionPromptPromoted | SyncEventSessionPromptAdmitted | SyncEventSessionContextUpdated | SyncEventSessionSynthetic | SyncEventSessionSkillActivated | SyncEventSessionShellStarted | SyncEventSessionShellEnded | SyncEventSessionStepStarted | SyncEventSessionStepEnded | SyncEventSessionStepFailed | SyncEventSessionTextStarted | SyncEventSessionTextEnded | SyncEventSessionReasoningStarted | SyncEventSessionReasoningEnded | SyncEventSessionToolInputStarted | SyncEventSessionToolInputEnded | SyncEventSessionToolCalled | SyncEventSessionToolProgress | SyncEventSessionToolSuccess | SyncEventSessionToolFailed | SyncEventSessionRetried | SyncEventSessionCompactionStarted | SyncEventSessionCompactionEnded | SyncEventSessionRevertStaged | SyncEventSessionRevertCleared | SyncEventSessionRevertCommitted;
|
|
1381
1385
|
};
|
|
1382
1386
|
/**
|
|
1383
1387
|
* Log level
|
|
@@ -2330,85 +2334,24 @@ export type UnknownError1 = {
|
|
|
2330
2334
|
message: string;
|
|
2331
2335
|
ref?: string;
|
|
2332
2336
|
};
|
|
2333
|
-
export type
|
|
2334
|
-
id: string;
|
|
2335
|
-
created: number;
|
|
2336
|
-
metadata?: {
|
|
2337
|
-
[key: string]: unknown;
|
|
2338
|
-
};
|
|
2339
|
-
type: "renamed";
|
|
2340
|
-
durable: {
|
|
2341
|
-
aggregateID: string;
|
|
2342
|
-
seq: number;
|
|
2343
|
-
version: number;
|
|
2344
|
-
};
|
|
2345
|
-
location?: LocationRef;
|
|
2346
|
-
data: {
|
|
2347
|
-
sessionID: string;
|
|
2348
|
-
title: string;
|
|
2349
|
-
};
|
|
2350
|
-
};
|
|
2351
|
-
export type Forked = {
|
|
2352
|
-
id: string;
|
|
2353
|
-
created: number;
|
|
2354
|
-
metadata?: {
|
|
2355
|
-
[key: string]: unknown;
|
|
2356
|
-
};
|
|
2357
|
-
type: "forked";
|
|
2358
|
-
durable: {
|
|
2359
|
-
aggregateID: string;
|
|
2360
|
-
seq: number;
|
|
2361
|
-
version: number;
|
|
2362
|
-
};
|
|
2363
|
-
location?: LocationRef;
|
|
2364
|
-
data: {
|
|
2365
|
-
sessionID: string;
|
|
2366
|
-
parentID: string;
|
|
2367
|
-
from?: string;
|
|
2368
|
-
};
|
|
2369
|
-
};
|
|
2370
|
-
export type Synthetic = {
|
|
2371
|
-
id: string;
|
|
2372
|
-
created: number;
|
|
2373
|
-
metadata?: {
|
|
2374
|
-
[key: string]: unknown;
|
|
2375
|
-
};
|
|
2376
|
-
type: "synthetic";
|
|
2377
|
-
durable: {
|
|
2378
|
-
aggregateID: string;
|
|
2379
|
-
seq: number;
|
|
2380
|
-
version: number;
|
|
2381
|
-
};
|
|
2382
|
-
location?: LocationRef;
|
|
2383
|
-
data: {
|
|
2384
|
-
sessionID: string;
|
|
2385
|
-
text: string;
|
|
2386
|
-
description?: string;
|
|
2387
|
-
metadata?: {
|
|
2388
|
-
[key: string]: unknown;
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
export type Retried = {
|
|
2337
|
+
export type Shell1 = {
|
|
2393
2338
|
id: string;
|
|
2394
|
-
|
|
2395
|
-
|
|
2339
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2340
|
+
command: string;
|
|
2341
|
+
cwd: string;
|
|
2342
|
+
shell: string;
|
|
2343
|
+
file: string;
|
|
2344
|
+
pid?: number;
|
|
2345
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2346
|
+
metadata: {
|
|
2396
2347
|
[key: string]: unknown;
|
|
2397
2348
|
};
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
seq: number;
|
|
2402
|
-
version: number;
|
|
2403
|
-
};
|
|
2404
|
-
location?: LocationRef;
|
|
2405
|
-
data: {
|
|
2406
|
-
sessionID: string;
|
|
2407
|
-
attempt: number;
|
|
2408
|
-
error: SessionRetryError;
|
|
2349
|
+
time: {
|
|
2350
|
+
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2351
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2409
2352
|
};
|
|
2410
2353
|
};
|
|
2411
|
-
export type SessionDurableEvent =
|
|
2354
|
+
export type SessionDurableEvent = SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionForked | SessionPromptPromoted | SessionPromptAdmitted | SessionContextUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetried | SessionCompactionStarted | SessionCompactionEnded | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted;
|
|
2412
2355
|
export type SessionLogItem = SessionDurableEvent | EventLogSynced;
|
|
2413
2356
|
export type SessionLogItemStream = string;
|
|
2414
2357
|
export type SessionMessagesResponse = {
|
|
@@ -2451,23 +2394,6 @@ export type OutputFormat1 = {
|
|
|
2451
2394
|
schema: JsonSchema;
|
|
2452
2395
|
retryCount?: number;
|
|
2453
2396
|
};
|
|
2454
|
-
export type Shell1 = {
|
|
2455
|
-
id: string;
|
|
2456
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
2457
|
-
command: string;
|
|
2458
|
-
cwd: string;
|
|
2459
|
-
shell: string;
|
|
2460
|
-
file: string;
|
|
2461
|
-
pid?: number;
|
|
2462
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2463
|
-
metadata: {
|
|
2464
|
-
[key: string]: unknown;
|
|
2465
|
-
};
|
|
2466
|
-
time: {
|
|
2467
|
-
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2468
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
2397
|
export type SessionStatus2 = {
|
|
2472
2398
|
id: string;
|
|
2473
2399
|
created: number;
|
|
@@ -2508,7 +2434,7 @@ export type QuestionRejected2 = {
|
|
|
2508
2434
|
requestID: string;
|
|
2509
2435
|
};
|
|
2510
2436
|
};
|
|
2511
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved |
|
|
2437
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionForked | SessionPromptPromoted | SessionPromptAdmitted | SessionExecutionSettled | SessionContextUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetried | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | CommandUpdated | SkillUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | FormCreated | FormReplied | FormCancelled | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpStatusChanged | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
|
|
2512
2438
|
export type V2EventStream = string;
|
|
2513
2439
|
export type ForbiddenError = {
|
|
2514
2440
|
_tag: "ForbiddenError";
|
|
@@ -2924,11 +2850,11 @@ export type SyncEventMessagePartRemoved = {
|
|
|
2924
2850
|
};
|
|
2925
2851
|
};
|
|
2926
2852
|
};
|
|
2927
|
-
export type
|
|
2853
|
+
export type SyncEventSessionAgentSelected = {
|
|
2928
2854
|
type: "sync";
|
|
2929
2855
|
id: string;
|
|
2930
2856
|
syncEvent: {
|
|
2931
|
-
type: "agent.selected.1";
|
|
2857
|
+
type: "session.agent.selected.1";
|
|
2932
2858
|
id: string;
|
|
2933
2859
|
seq: number;
|
|
2934
2860
|
aggregateID: string;
|
|
@@ -2938,11 +2864,11 @@ export type SyncEventAgentSelected = {
|
|
|
2938
2864
|
};
|
|
2939
2865
|
};
|
|
2940
2866
|
};
|
|
2941
|
-
export type
|
|
2867
|
+
export type SyncEventSessionModelSelected = {
|
|
2942
2868
|
type: "sync";
|
|
2943
2869
|
id: string;
|
|
2944
2870
|
syncEvent: {
|
|
2945
|
-
type: "model.selected.1";
|
|
2871
|
+
type: "session.model.selected.1";
|
|
2946
2872
|
id: string;
|
|
2947
2873
|
seq: number;
|
|
2948
2874
|
aggregateID: string;
|
|
@@ -2967,11 +2893,11 @@ export type SyncEventSessionMoved = {
|
|
|
2967
2893
|
};
|
|
2968
2894
|
};
|
|
2969
2895
|
};
|
|
2970
|
-
export type
|
|
2896
|
+
export type SyncEventSessionRenamed = {
|
|
2971
2897
|
type: "sync";
|
|
2972
2898
|
id: string;
|
|
2973
2899
|
syncEvent: {
|
|
2974
|
-
type: "renamed.1";
|
|
2900
|
+
type: "session.renamed.1";
|
|
2975
2901
|
id: string;
|
|
2976
2902
|
seq: number;
|
|
2977
2903
|
aggregateID: string;
|
|
@@ -2981,11 +2907,11 @@ export type SyncEventRenamed = {
|
|
|
2981
2907
|
};
|
|
2982
2908
|
};
|
|
2983
2909
|
};
|
|
2984
|
-
export type
|
|
2910
|
+
export type SyncEventSessionForked = {
|
|
2985
2911
|
type: "sync";
|
|
2986
2912
|
id: string;
|
|
2987
2913
|
syncEvent: {
|
|
2988
|
-
type: "forked.1";
|
|
2914
|
+
type: "session.forked.1";
|
|
2989
2915
|
id: string;
|
|
2990
2916
|
seq: number;
|
|
2991
2917
|
aggregateID: string;
|
|
@@ -2996,11 +2922,11 @@ export type SyncEventForked = {
|
|
|
2996
2922
|
};
|
|
2997
2923
|
};
|
|
2998
2924
|
};
|
|
2999
|
-
export type
|
|
2925
|
+
export type SyncEventSessionPromptPromoted = {
|
|
3000
2926
|
type: "sync";
|
|
3001
2927
|
id: string;
|
|
3002
2928
|
syncEvent: {
|
|
3003
|
-
type: "prompt.promoted.1";
|
|
2929
|
+
type: "session.prompt.promoted.1";
|
|
3004
2930
|
id: string;
|
|
3005
2931
|
seq: number;
|
|
3006
2932
|
aggregateID: string;
|
|
@@ -3010,11 +2936,11 @@ export type SyncEventPromptPromoted = {
|
|
|
3010
2936
|
};
|
|
3011
2937
|
};
|
|
3012
2938
|
};
|
|
3013
|
-
export type
|
|
2939
|
+
export type SyncEventSessionPromptAdmitted = {
|
|
3014
2940
|
type: "sync";
|
|
3015
2941
|
id: string;
|
|
3016
2942
|
syncEvent: {
|
|
3017
|
-
type: "prompt.admitted.1";
|
|
2943
|
+
type: "session.prompt.admitted.1";
|
|
3018
2944
|
id: string;
|
|
3019
2945
|
seq: number;
|
|
3020
2946
|
aggregateID: string;
|
|
@@ -3040,11 +2966,11 @@ export type SyncEventSessionContextUpdated = {
|
|
|
3040
2966
|
};
|
|
3041
2967
|
};
|
|
3042
2968
|
};
|
|
3043
|
-
export type
|
|
2969
|
+
export type SyncEventSessionSynthetic = {
|
|
3044
2970
|
type: "sync";
|
|
3045
2971
|
id: string;
|
|
3046
2972
|
syncEvent: {
|
|
3047
|
-
type: "synthetic.1";
|
|
2973
|
+
type: "session.synthetic.1";
|
|
3048
2974
|
id: string;
|
|
3049
2975
|
seq: number;
|
|
3050
2976
|
aggregateID: string;
|
|
@@ -3058,11 +2984,11 @@ export type SyncEventSynthetic = {
|
|
|
3058
2984
|
};
|
|
3059
2985
|
};
|
|
3060
2986
|
};
|
|
3061
|
-
export type
|
|
2987
|
+
export type SyncEventSessionSkillActivated = {
|
|
3062
2988
|
type: "sync";
|
|
3063
2989
|
id: string;
|
|
3064
2990
|
syncEvent: {
|
|
3065
|
-
type: "skill.activated.1";
|
|
2991
|
+
type: "session.skill.activated.1";
|
|
3066
2992
|
id: string;
|
|
3067
2993
|
seq: number;
|
|
3068
2994
|
aggregateID: string;
|
|
@@ -3073,41 +2999,45 @@ export type SyncEventSkillActivated = {
|
|
|
3073
2999
|
};
|
|
3074
3000
|
};
|
|
3075
3001
|
};
|
|
3076
|
-
export type
|
|
3002
|
+
export type SyncEventSessionShellStarted = {
|
|
3077
3003
|
type: "sync";
|
|
3078
3004
|
id: string;
|
|
3079
3005
|
syncEvent: {
|
|
3080
|
-
type: "shell.started.1";
|
|
3006
|
+
type: "session.shell.started.1";
|
|
3081
3007
|
id: string;
|
|
3082
3008
|
seq: number;
|
|
3083
3009
|
aggregateID: string;
|
|
3084
3010
|
data: {
|
|
3085
3011
|
sessionID: string;
|
|
3086
|
-
|
|
3087
|
-
command: string;
|
|
3012
|
+
shell: Shell;
|
|
3088
3013
|
};
|
|
3089
3014
|
};
|
|
3090
3015
|
};
|
|
3091
|
-
export type
|
|
3016
|
+
export type SyncEventSessionShellEnded = {
|
|
3092
3017
|
type: "sync";
|
|
3093
3018
|
id: string;
|
|
3094
3019
|
syncEvent: {
|
|
3095
|
-
type: "shell.ended.1";
|
|
3020
|
+
type: "session.shell.ended.1";
|
|
3096
3021
|
id: string;
|
|
3097
3022
|
seq: number;
|
|
3098
3023
|
aggregateID: string;
|
|
3099
3024
|
data: {
|
|
3100
3025
|
sessionID: string;
|
|
3101
|
-
|
|
3102
|
-
output:
|
|
3026
|
+
shell: Shell;
|
|
3027
|
+
output: {
|
|
3028
|
+
output: string;
|
|
3029
|
+
cursor: number;
|
|
3030
|
+
size: number;
|
|
3031
|
+
truncated: boolean;
|
|
3032
|
+
};
|
|
3103
3033
|
};
|
|
3104
3034
|
};
|
|
3105
3035
|
};
|
|
3106
|
-
export type
|
|
3036
|
+
export type SyncEventSessionStepStarted = {
|
|
3107
3037
|
type: "sync";
|
|
3108
3038
|
id: string;
|
|
3109
3039
|
syncEvent: {
|
|
3110
|
-
type: "step.started.1";
|
|
3040
|
+
type: "session.step.started.1";
|
|
3111
3041
|
id: string;
|
|
3112
3042
|
seq: number;
|
|
3113
3043
|
aggregateID: string;
|
|
@@ -3120,11 +3050,11 @@ export type SyncEventStepStarted = {
|
|
|
3120
3050
|
};
|
|
3121
3051
|
};
|
|
3122
3052
|
};
|
|
3123
|
-
export type
|
|
3053
|
+
export type SyncEventSessionStepEnded = {
|
|
3124
3054
|
type: "sync";
|
|
3125
3055
|
id: string;
|
|
3126
3056
|
syncEvent: {
|
|
3127
|
-
type: "step.ended.1";
|
|
3057
|
+
type: "session.step.ended.1";
|
|
3128
3058
|
id: string;
|
|
3129
3059
|
seq: number;
|
|
3130
3060
|
aggregateID: string;
|
|
@@ -3147,11 +3077,11 @@ export type SyncEventStepEnded = {
|
|
|
3147
3077
|
};
|
|
3148
3078
|
};
|
|
3149
3079
|
};
|
|
3150
|
-
export type
|
|
3080
|
+
export type SyncEventSessionStepFailed = {
|
|
3151
3081
|
type: "sync";
|
|
3152
3082
|
id: string;
|
|
3153
3083
|
syncEvent: {
|
|
3154
|
-
type: "step.failed.1";
|
|
3084
|
+
type: "session.step.failed.1";
|
|
3155
3085
|
id: string;
|
|
3156
3086
|
seq: number;
|
|
3157
3087
|
aggregateID: string;
|
|
@@ -3162,11 +3092,11 @@ export type SyncEventStepFailed = {
|
|
|
3162
3092
|
};
|
|
3163
3093
|
};
|
|
3164
3094
|
};
|
|
3165
|
-
export type
|
|
3095
|
+
export type SyncEventSessionTextStarted = {
|
|
3166
3096
|
type: "sync";
|
|
3167
3097
|
id: string;
|
|
3168
3098
|
syncEvent: {
|
|
3169
|
-
type: "text.started.1";
|
|
3099
|
+
type: "session.text.started.1";
|
|
3170
3100
|
id: string;
|
|
3171
3101
|
seq: number;
|
|
3172
3102
|
aggregateID: string;
|
|
@@ -3177,11 +3107,11 @@ export type SyncEventTextStarted = {
|
|
|
3177
3107
|
};
|
|
3178
3108
|
};
|
|
3179
3109
|
};
|
|
3180
|
-
export type
|
|
3110
|
+
export type SyncEventSessionTextEnded = {
|
|
3181
3111
|
type: "sync";
|
|
3182
3112
|
id: string;
|
|
3183
3113
|
syncEvent: {
|
|
3184
|
-
type: "text.ended.1";
|
|
3114
|
+
type: "session.text.ended.1";
|
|
3185
3115
|
id: string;
|
|
3186
3116
|
seq: number;
|
|
3187
3117
|
aggregateID: string;
|
|
@@ -3193,11 +3123,11 @@ export type SyncEventTextEnded = {
|
|
|
3193
3123
|
};
|
|
3194
3124
|
};
|
|
3195
3125
|
};
|
|
3196
|
-
export type
|
|
3126
|
+
export type SyncEventSessionReasoningStarted = {
|
|
3197
3127
|
type: "sync";
|
|
3198
3128
|
id: string;
|
|
3199
3129
|
syncEvent: {
|
|
3200
|
-
type: "reasoning.started.1";
|
|
3130
|
+
type: "session.reasoning.started.1";
|
|
3201
3131
|
id: string;
|
|
3202
3132
|
seq: number;
|
|
3203
3133
|
aggregateID: string;
|
|
@@ -3209,11 +3139,11 @@ export type SyncEventReasoningStarted = {
|
|
|
3209
3139
|
};
|
|
3210
3140
|
};
|
|
3211
3141
|
};
|
|
3212
|
-
export type
|
|
3142
|
+
export type SyncEventSessionReasoningEnded = {
|
|
3213
3143
|
type: "sync";
|
|
3214
3144
|
id: string;
|
|
3215
3145
|
syncEvent: {
|
|
3216
|
-
type: "reasoning.ended.1";
|
|
3146
|
+
type: "session.reasoning.ended.1";
|
|
3217
3147
|
id: string;
|
|
3218
3148
|
seq: number;
|
|
3219
3149
|
aggregateID: string;
|
|
@@ -3226,11 +3156,11 @@ export type SyncEventReasoningEnded = {
|
|
|
3226
3156
|
};
|
|
3227
3157
|
};
|
|
3228
3158
|
};
|
|
3229
|
-
export type
|
|
3159
|
+
export type SyncEventSessionToolInputStarted = {
|
|
3230
3160
|
type: "sync";
|
|
3231
3161
|
id: string;
|
|
3232
3162
|
syncEvent: {
|
|
3233
|
-
type: "tool.input.started.1";
|
|
3163
|
+
type: "session.tool.input.started.1";
|
|
3234
3164
|
id: string;
|
|
3235
3165
|
seq: number;
|
|
3236
3166
|
aggregateID: string;
|
|
@@ -3242,11 +3172,11 @@ export type SyncEventToolInputStarted = {
|
|
|
3242
3172
|
};
|
|
3243
3173
|
};
|
|
3244
3174
|
};
|
|
3245
|
-
export type
|
|
3175
|
+
export type SyncEventSessionToolInputEnded = {
|
|
3246
3176
|
type: "sync";
|
|
3247
3177
|
id: string;
|
|
3248
3178
|
syncEvent: {
|
|
3249
|
-
type: "tool.input.ended.1";
|
|
3179
|
+
type: "session.tool.input.ended.1";
|
|
3250
3180
|
id: string;
|
|
3251
3181
|
seq: number;
|
|
3252
3182
|
aggregateID: string;
|
|
@@ -3258,11 +3188,11 @@ export type SyncEventToolInputEnded = {
|
|
|
3258
3188
|
};
|
|
3259
3189
|
};
|
|
3260
3190
|
};
|
|
3261
|
-
export type
|
|
3191
|
+
export type SyncEventSessionToolCalled = {
|
|
3262
3192
|
type: "sync";
|
|
3263
3193
|
id: string;
|
|
3264
3194
|
syncEvent: {
|
|
3265
|
-
type: "tool.called.1";
|
|
3195
|
+
type: "session.tool.called.1";
|
|
3266
3196
|
id: string;
|
|
3267
3197
|
seq: number;
|
|
3268
3198
|
aggregateID: string;
|
|
@@ -3281,11 +3211,11 @@ export type SyncEventToolCalled = {
|
|
|
3281
3211
|
};
|
|
3282
3212
|
};
|
|
3283
3213
|
};
|
|
3284
|
-
export type
|
|
3214
|
+
export type SyncEventSessionToolProgress = {
|
|
3285
3215
|
type: "sync";
|
|
3286
3216
|
id: string;
|
|
3287
3217
|
syncEvent: {
|
|
3288
|
-
type: "tool.progress.1";
|
|
3218
|
+
type: "session.tool.progress.1";
|
|
3289
3219
|
id: string;
|
|
3290
3220
|
seq: number;
|
|
3291
3221
|
aggregateID: string;
|
|
@@ -3300,11 +3230,11 @@ export type SyncEventToolProgress = {
|
|
|
3300
3230
|
};
|
|
3301
3231
|
};
|
|
3302
3232
|
};
|
|
3303
|
-
export type
|
|
3233
|
+
export type SyncEventSessionToolSuccess = {
|
|
3304
3234
|
type: "sync";
|
|
3305
3235
|
id: string;
|
|
3306
3236
|
syncEvent: {
|
|
3307
|
-
type: "tool.success.1";
|
|
3237
|
+
type: "session.tool.success.1";
|
|
3308
3238
|
id: string;
|
|
3309
3239
|
seq: number;
|
|
3310
3240
|
aggregateID: string;
|
|
@@ -3325,11 +3255,11 @@ export type SyncEventToolSuccess = {
|
|
|
3325
3255
|
};
|
|
3326
3256
|
};
|
|
3327
3257
|
};
|
|
3328
|
-
export type
|
|
3258
|
+
export type SyncEventSessionToolFailed = {
|
|
3329
3259
|
type: "sync";
|
|
3330
3260
|
id: string;
|
|
3331
3261
|
syncEvent: {
|
|
3332
|
-
type: "tool.failed.1";
|
|
3262
|
+
type: "session.tool.failed.1";
|
|
3333
3263
|
id: string;
|
|
3334
3264
|
seq: number;
|
|
3335
3265
|
aggregateID: string;
|
|
@@ -3346,11 +3276,11 @@ export type SyncEventToolFailed = {
|
|
|
3346
3276
|
};
|
|
3347
3277
|
};
|
|
3348
3278
|
};
|
|
3349
|
-
export type
|
|
3279
|
+
export type SyncEventSessionRetried = {
|
|
3350
3280
|
type: "sync";
|
|
3351
3281
|
id: string;
|
|
3352
3282
|
syncEvent: {
|
|
3353
|
-
type: "retried.1";
|
|
3283
|
+
type: "session.retried.1";
|
|
3354
3284
|
id: string;
|
|
3355
3285
|
seq: number;
|
|
3356
3286
|
aggregateID: string;
|
|
@@ -3361,11 +3291,11 @@ export type SyncEventRetried = {
|
|
|
3361
3291
|
};
|
|
3362
3292
|
};
|
|
3363
3293
|
};
|
|
3364
|
-
export type
|
|
3294
|
+
export type SyncEventSessionCompactionStarted = {
|
|
3365
3295
|
type: "sync";
|
|
3366
3296
|
id: string;
|
|
3367
3297
|
syncEvent: {
|
|
3368
|
-
type: "compaction.started.1";
|
|
3298
|
+
type: "session.compaction.started.1";
|
|
3369
3299
|
id: string;
|
|
3370
3300
|
seq: number;
|
|
3371
3301
|
aggregateID: string;
|
|
@@ -3375,11 +3305,11 @@ export type SyncEventCompactionStarted = {
|
|
|
3375
3305
|
};
|
|
3376
3306
|
};
|
|
3377
3307
|
};
|
|
3378
|
-
export type
|
|
3308
|
+
export type SyncEventSessionCompactionEnded = {
|
|
3379
3309
|
type: "sync";
|
|
3380
3310
|
id: string;
|
|
3381
3311
|
syncEvent: {
|
|
3382
|
-
type: "compaction.ended.1";
|
|
3312
|
+
type: "session.compaction.ended.1";
|
|
3383
3313
|
id: string;
|
|
3384
3314
|
seq: number;
|
|
3385
3315
|
aggregateID: string;
|
|
@@ -3391,11 +3321,11 @@ export type SyncEventCompactionEnded = {
|
|
|
3391
3321
|
};
|
|
3392
3322
|
};
|
|
3393
3323
|
};
|
|
3394
|
-
export type
|
|
3324
|
+
export type SyncEventSessionRevertStaged = {
|
|
3395
3325
|
type: "sync";
|
|
3396
3326
|
id: string;
|
|
3397
3327
|
syncEvent: {
|
|
3398
|
-
type: "revert.staged.1";
|
|
3328
|
+
type: "session.revert.staged.1";
|
|
3399
3329
|
id: string;
|
|
3400
3330
|
seq: number;
|
|
3401
3331
|
aggregateID: string;
|
|
@@ -3405,11 +3335,11 @@ export type SyncEventRevertStaged = {
|
|
|
3405
3335
|
};
|
|
3406
3336
|
};
|
|
3407
3337
|
};
|
|
3408
|
-
export type
|
|
3338
|
+
export type SyncEventSessionRevertCleared = {
|
|
3409
3339
|
type: "sync";
|
|
3410
3340
|
id: string;
|
|
3411
3341
|
syncEvent: {
|
|
3412
|
-
type: "revert.cleared.1";
|
|
3342
|
+
type: "session.revert.cleared.1";
|
|
3413
3343
|
id: string;
|
|
3414
3344
|
seq: number;
|
|
3415
3345
|
aggregateID: string;
|
|
@@ -3418,11 +3348,11 @@ export type SyncEventRevertCleared = {
|
|
|
3418
3348
|
};
|
|
3419
3349
|
};
|
|
3420
3350
|
};
|
|
3421
|
-
export type
|
|
3351
|
+
export type SyncEventSessionRevertCommitted = {
|
|
3422
3352
|
type: "sync";
|
|
3423
3353
|
id: string;
|
|
3424
3354
|
syncEvent: {
|
|
3425
|
-
type: "revert.committed.1";
|
|
3355
|
+
type: "session.revert.committed.1";
|
|
3426
3356
|
id: string;
|
|
3427
3357
|
seq: number;
|
|
3428
3358
|
aggregateID: string;
|
|
@@ -3627,9 +3557,13 @@ export type SessionMessageShell = {
|
|
|
3627
3557
|
completed?: number;
|
|
3628
3558
|
};
|
|
3629
3559
|
type: "shell";
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3560
|
+
shell: Shell;
|
|
3561
|
+
output?: {
|
|
3562
|
+
output: string;
|
|
3563
|
+
cursor: number;
|
|
3564
|
+
size: number;
|
|
3565
|
+
truncated: boolean;
|
|
3566
|
+
};
|
|
3633
3567
|
};
|
|
3634
3568
|
export type SessionMessageAssistantText = {
|
|
3635
3569
|
type: "text";
|
|
@@ -3752,13 +3686,13 @@ export type SessionContextEntryInfo = {
|
|
|
3752
3686
|
key: SessionContextEntryKey;
|
|
3753
3687
|
value: unknown;
|
|
3754
3688
|
};
|
|
3755
|
-
export type
|
|
3689
|
+
export type SessionAgentSelected = {
|
|
3756
3690
|
id: string;
|
|
3757
3691
|
created: number;
|
|
3758
3692
|
metadata?: {
|
|
3759
3693
|
[key: string]: unknown;
|
|
3760
3694
|
};
|
|
3761
|
-
type: "agent.selected";
|
|
3695
|
+
type: "session.agent.selected";
|
|
3762
3696
|
durable: {
|
|
3763
3697
|
aggregateID: string;
|
|
3764
3698
|
seq: number;
|
|
@@ -3770,13 +3704,13 @@ export type AgentSelected = {
|
|
|
3770
3704
|
agent: string;
|
|
3771
3705
|
};
|
|
3772
3706
|
};
|
|
3773
|
-
export type
|
|
3707
|
+
export type SessionModelSelected = {
|
|
3774
3708
|
id: string;
|
|
3775
3709
|
created: number;
|
|
3776
3710
|
metadata?: {
|
|
3777
3711
|
[key: string]: unknown;
|
|
3778
3712
|
};
|
|
3779
|
-
type: "model.selected";
|
|
3713
|
+
type: "session.model.selected";
|
|
3780
3714
|
durable: {
|
|
3781
3715
|
aggregateID: string;
|
|
3782
3716
|
seq: number;
|
|
@@ -3807,13 +3741,50 @@ export type SessionMoved = {
|
|
|
3807
3741
|
subpath?: string;
|
|
3808
3742
|
};
|
|
3809
3743
|
};
|
|
3810
|
-
export type
|
|
3744
|
+
export type SessionRenamed = {
|
|
3745
|
+
id: string;
|
|
3746
|
+
created: number;
|
|
3747
|
+
metadata?: {
|
|
3748
|
+
[key: string]: unknown;
|
|
3749
|
+
};
|
|
3750
|
+
type: "session.renamed";
|
|
3751
|
+
durable: {
|
|
3752
|
+
aggregateID: string;
|
|
3753
|
+
seq: number;
|
|
3754
|
+
version: number;
|
|
3755
|
+
};
|
|
3756
|
+
location?: LocationRef;
|
|
3757
|
+
data: {
|
|
3758
|
+
sessionID: string;
|
|
3759
|
+
title: string;
|
|
3760
|
+
};
|
|
3761
|
+
};
|
|
3762
|
+
export type SessionForked = {
|
|
3811
3763
|
id: string;
|
|
3812
3764
|
created: number;
|
|
3813
3765
|
metadata?: {
|
|
3814
3766
|
[key: string]: unknown;
|
|
3815
3767
|
};
|
|
3816
|
-
type: "
|
|
3768
|
+
type: "session.forked";
|
|
3769
|
+
durable: {
|
|
3770
|
+
aggregateID: string;
|
|
3771
|
+
seq: number;
|
|
3772
|
+
version: number;
|
|
3773
|
+
};
|
|
3774
|
+
location?: LocationRef;
|
|
3775
|
+
data: {
|
|
3776
|
+
sessionID: string;
|
|
3777
|
+
parentID: string;
|
|
3778
|
+
from?: string;
|
|
3779
|
+
};
|
|
3780
|
+
};
|
|
3781
|
+
export type SessionPromptPromoted = {
|
|
3782
|
+
id: string;
|
|
3783
|
+
created: number;
|
|
3784
|
+
metadata?: {
|
|
3785
|
+
[key: string]: unknown;
|
|
3786
|
+
};
|
|
3787
|
+
type: "session.prompt.promoted";
|
|
3817
3788
|
durable: {
|
|
3818
3789
|
aggregateID: string;
|
|
3819
3790
|
seq: number;
|
|
@@ -3825,13 +3796,13 @@ export type PromptPromoted = {
|
|
|
3825
3796
|
inputID: string;
|
|
3826
3797
|
};
|
|
3827
3798
|
};
|
|
3828
|
-
export type
|
|
3799
|
+
export type SessionPromptAdmitted = {
|
|
3829
3800
|
id: string;
|
|
3830
3801
|
created: number;
|
|
3831
3802
|
metadata?: {
|
|
3832
3803
|
[key: string]: unknown;
|
|
3833
3804
|
};
|
|
3834
|
-
type: "prompt.admitted";
|
|
3805
|
+
type: "session.prompt.admitted";
|
|
3835
3806
|
durable: {
|
|
3836
3807
|
aggregateID: string;
|
|
3837
3808
|
seq: number;
|
|
@@ -3863,13 +3834,35 @@ export type SessionContextUpdated = {
|
|
|
3863
3834
|
text: string;
|
|
3864
3835
|
};
|
|
3865
3836
|
};
|
|
3866
|
-
export type
|
|
3837
|
+
export type SessionSynthetic = {
|
|
3867
3838
|
id: string;
|
|
3868
3839
|
created: number;
|
|
3869
3840
|
metadata?: {
|
|
3870
3841
|
[key: string]: unknown;
|
|
3871
3842
|
};
|
|
3872
|
-
type: "
|
|
3843
|
+
type: "session.synthetic";
|
|
3844
|
+
durable: {
|
|
3845
|
+
aggregateID: string;
|
|
3846
|
+
seq: number;
|
|
3847
|
+
version: number;
|
|
3848
|
+
};
|
|
3849
|
+
location?: LocationRef;
|
|
3850
|
+
data: {
|
|
3851
|
+
sessionID: string;
|
|
3852
|
+
text: string;
|
|
3853
|
+
description?: string;
|
|
3854
|
+
metadata?: {
|
|
3855
|
+
[key: string]: unknown;
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
};
|
|
3859
|
+
export type SessionSkillActivated = {
|
|
3860
|
+
id: string;
|
|
3861
|
+
created: number;
|
|
3862
|
+
metadata?: {
|
|
3863
|
+
[key: string]: unknown;
|
|
3864
|
+
};
|
|
3865
|
+
type: "session.skill.activated";
|
|
3873
3866
|
durable: {
|
|
3874
3867
|
aggregateID: string;
|
|
3875
3868
|
seq: number;
|
|
@@ -3882,13 +3875,13 @@ export type SkillActivated = {
|
|
|
3882
3875
|
text: string;
|
|
3883
3876
|
};
|
|
3884
3877
|
};
|
|
3885
|
-
export type
|
|
3878
|
+
export type SessionShellStarted = {
|
|
3886
3879
|
id: string;
|
|
3887
3880
|
created: number;
|
|
3888
3881
|
metadata?: {
|
|
3889
3882
|
[key: string]: unknown;
|
|
3890
3883
|
};
|
|
3891
|
-
type: "shell.started";
|
|
3884
|
+
type: "session.shell.started";
|
|
3892
3885
|
durable: {
|
|
3893
3886
|
aggregateID: string;
|
|
3894
3887
|
seq: number;
|
|
@@ -3897,17 +3890,16 @@ export type ShellStarted = {
|
|
|
3897
3890
|
location?: LocationRef;
|
|
3898
3891
|
data: {
|
|
3899
3892
|
sessionID: string;
|
|
3900
|
-
|
|
3901
|
-
command: string;
|
|
3893
|
+
shell: Shell1;
|
|
3902
3894
|
};
|
|
3903
3895
|
};
|
|
3904
|
-
export type
|
|
3896
|
+
export type SessionShellEnded = {
|
|
3905
3897
|
id: string;
|
|
3906
3898
|
created: number;
|
|
3907
3899
|
metadata?: {
|
|
3908
3900
|
[key: string]: unknown;
|
|
3909
3901
|
};
|
|
3910
|
-
type: "shell.ended";
|
|
3902
|
+
type: "session.shell.ended";
|
|
3911
3903
|
durable: {
|
|
3912
3904
|
aggregateID: string;
|
|
3913
3905
|
seq: number;
|
|
@@ -3916,17 +3908,22 @@ export type ShellEnded = {
|
|
|
3916
3908
|
location?: LocationRef;
|
|
3917
3909
|
data: {
|
|
3918
3910
|
sessionID: string;
|
|
3919
|
-
|
|
3920
|
-
output:
|
|
3911
|
+
shell: Shell1;
|
|
3912
|
+
output: {
|
|
3913
|
+
output: string;
|
|
3914
|
+
cursor: number;
|
|
3915
|
+
size: number;
|
|
3916
|
+
truncated: boolean;
|
|
3917
|
+
};
|
|
3921
3918
|
};
|
|
3922
3919
|
};
|
|
3923
|
-
export type
|
|
3920
|
+
export type SessionStepStarted = {
|
|
3924
3921
|
id: string;
|
|
3925
3922
|
created: number;
|
|
3926
3923
|
metadata?: {
|
|
3927
3924
|
[key: string]: unknown;
|
|
3928
3925
|
};
|
|
3929
|
-
type: "step.started";
|
|
3926
|
+
type: "session.step.started";
|
|
3930
3927
|
durable: {
|
|
3931
3928
|
aggregateID: string;
|
|
3932
3929
|
seq: number;
|
|
@@ -3941,13 +3938,13 @@ export type StepStarted = {
|
|
|
3941
3938
|
snapshot?: string;
|
|
3942
3939
|
};
|
|
3943
3940
|
};
|
|
3944
|
-
export type
|
|
3941
|
+
export type SessionStepEnded = {
|
|
3945
3942
|
id: string;
|
|
3946
3943
|
created: number;
|
|
3947
3944
|
metadata?: {
|
|
3948
3945
|
[key: string]: unknown;
|
|
3949
3946
|
};
|
|
3950
|
-
type: "step.ended";
|
|
3947
|
+
type: "session.step.ended";
|
|
3951
3948
|
durable: {
|
|
3952
3949
|
aggregateID: string;
|
|
3953
3950
|
seq: number;
|
|
@@ -3972,13 +3969,13 @@ export type StepEnded = {
|
|
|
3972
3969
|
files?: Array<string>;
|
|
3973
3970
|
};
|
|
3974
3971
|
};
|
|
3975
|
-
export type
|
|
3972
|
+
export type SessionStepFailed = {
|
|
3976
3973
|
id: string;
|
|
3977
3974
|
created: number;
|
|
3978
3975
|
metadata?: {
|
|
3979
3976
|
[key: string]: unknown;
|
|
3980
3977
|
};
|
|
3981
|
-
type: "step.failed";
|
|
3978
|
+
type: "session.step.failed";
|
|
3982
3979
|
durable: {
|
|
3983
3980
|
aggregateID: string;
|
|
3984
3981
|
seq: number;
|
|
@@ -3991,13 +3988,13 @@ export type StepFailed = {
|
|
|
3991
3988
|
error: SessionErrorUnknown;
|
|
3992
3989
|
};
|
|
3993
3990
|
};
|
|
3994
|
-
export type
|
|
3991
|
+
export type SessionTextStarted = {
|
|
3995
3992
|
id: string;
|
|
3996
3993
|
created: number;
|
|
3997
3994
|
metadata?: {
|
|
3998
3995
|
[key: string]: unknown;
|
|
3999
3996
|
};
|
|
4000
|
-
type: "text.started";
|
|
3997
|
+
type: "session.text.started";
|
|
4001
3998
|
durable: {
|
|
4002
3999
|
aggregateID: string;
|
|
4003
4000
|
seq: number;
|
|
@@ -4010,13 +4007,13 @@ export type TextStarted = {
|
|
|
4010
4007
|
textID: string;
|
|
4011
4008
|
};
|
|
4012
4009
|
};
|
|
4013
|
-
export type
|
|
4010
|
+
export type SessionTextEnded = {
|
|
4014
4011
|
id: string;
|
|
4015
4012
|
created: number;
|
|
4016
4013
|
metadata?: {
|
|
4017
4014
|
[key: string]: unknown;
|
|
4018
4015
|
};
|
|
4019
|
-
type: "text.ended";
|
|
4016
|
+
type: "session.text.ended";
|
|
4020
4017
|
durable: {
|
|
4021
4018
|
aggregateID: string;
|
|
4022
4019
|
seq: number;
|
|
@@ -4030,13 +4027,13 @@ export type TextEnded = {
|
|
|
4030
4027
|
text: string;
|
|
4031
4028
|
};
|
|
4032
4029
|
};
|
|
4033
|
-
export type
|
|
4030
|
+
export type SessionReasoningStarted = {
|
|
4034
4031
|
id: string;
|
|
4035
4032
|
created: number;
|
|
4036
4033
|
metadata?: {
|
|
4037
4034
|
[key: string]: unknown;
|
|
4038
4035
|
};
|
|
4039
|
-
type: "reasoning.started";
|
|
4036
|
+
type: "session.reasoning.started";
|
|
4040
4037
|
durable: {
|
|
4041
4038
|
aggregateID: string;
|
|
4042
4039
|
seq: number;
|
|
@@ -4050,13 +4047,13 @@ export type ReasoningStarted = {
|
|
|
4050
4047
|
providerMetadata?: LlmProviderMetadata;
|
|
4051
4048
|
};
|
|
4052
4049
|
};
|
|
4053
|
-
export type
|
|
4050
|
+
export type SessionReasoningEnded = {
|
|
4054
4051
|
id: string;
|
|
4055
4052
|
created: number;
|
|
4056
4053
|
metadata?: {
|
|
4057
4054
|
[key: string]: unknown;
|
|
4058
4055
|
};
|
|
4059
|
-
type: "reasoning.ended";
|
|
4056
|
+
type: "session.reasoning.ended";
|
|
4060
4057
|
durable: {
|
|
4061
4058
|
aggregateID: string;
|
|
4062
4059
|
seq: number;
|
|
@@ -4071,13 +4068,13 @@ export type ReasoningEnded = {
|
|
|
4071
4068
|
providerMetadata?: LlmProviderMetadata;
|
|
4072
4069
|
};
|
|
4073
4070
|
};
|
|
4074
|
-
export type
|
|
4071
|
+
export type SessionToolInputStarted = {
|
|
4075
4072
|
id: string;
|
|
4076
4073
|
created: number;
|
|
4077
4074
|
metadata?: {
|
|
4078
4075
|
[key: string]: unknown;
|
|
4079
4076
|
};
|
|
4080
|
-
type: "tool.input.started";
|
|
4077
|
+
type: "session.tool.input.started";
|
|
4081
4078
|
durable: {
|
|
4082
4079
|
aggregateID: string;
|
|
4083
4080
|
seq: number;
|
|
@@ -4091,13 +4088,13 @@ export type ToolInputStarted = {
|
|
|
4091
4088
|
name: string;
|
|
4092
4089
|
};
|
|
4093
4090
|
};
|
|
4094
|
-
export type
|
|
4091
|
+
export type SessionToolInputEnded = {
|
|
4095
4092
|
id: string;
|
|
4096
4093
|
created: number;
|
|
4097
4094
|
metadata?: {
|
|
4098
4095
|
[key: string]: unknown;
|
|
4099
4096
|
};
|
|
4100
|
-
type: "tool.input.ended";
|
|
4097
|
+
type: "session.tool.input.ended";
|
|
4101
4098
|
durable: {
|
|
4102
4099
|
aggregateID: string;
|
|
4103
4100
|
seq: number;
|
|
@@ -4111,13 +4108,13 @@ export type ToolInputEnded = {
|
|
|
4111
4108
|
text: string;
|
|
4112
4109
|
};
|
|
4113
4110
|
};
|
|
4114
|
-
export type
|
|
4111
|
+
export type SessionToolCalled = {
|
|
4115
4112
|
id: string;
|
|
4116
4113
|
created: number;
|
|
4117
4114
|
metadata?: {
|
|
4118
4115
|
[key: string]: unknown;
|
|
4119
4116
|
};
|
|
4120
|
-
type: "tool.called";
|
|
4117
|
+
type: "session.tool.called";
|
|
4121
4118
|
durable: {
|
|
4122
4119
|
aggregateID: string;
|
|
4123
4120
|
seq: number;
|
|
@@ -4138,13 +4135,13 @@ export type ToolCalled = {
|
|
|
4138
4135
|
};
|
|
4139
4136
|
};
|
|
4140
4137
|
};
|
|
4141
|
-
export type
|
|
4138
|
+
export type SessionToolProgress = {
|
|
4142
4139
|
id: string;
|
|
4143
4140
|
created: number;
|
|
4144
4141
|
metadata?: {
|
|
4145
4142
|
[key: string]: unknown;
|
|
4146
4143
|
};
|
|
4147
|
-
type: "tool.progress";
|
|
4144
|
+
type: "session.tool.progress";
|
|
4148
4145
|
durable: {
|
|
4149
4146
|
aggregateID: string;
|
|
4150
4147
|
seq: number;
|
|
@@ -4161,13 +4158,13 @@ export type ToolProgress = {
|
|
|
4161
4158
|
content: Array<LlmToolContent>;
|
|
4162
4159
|
};
|
|
4163
4160
|
};
|
|
4164
|
-
export type
|
|
4161
|
+
export type SessionToolSuccess = {
|
|
4165
4162
|
id: string;
|
|
4166
4163
|
created: number;
|
|
4167
4164
|
metadata?: {
|
|
4168
4165
|
[key: string]: unknown;
|
|
4169
4166
|
};
|
|
4170
|
-
type: "tool.success";
|
|
4167
|
+
type: "session.tool.success";
|
|
4171
4168
|
durable: {
|
|
4172
4169
|
aggregateID: string;
|
|
4173
4170
|
seq: number;
|
|
@@ -4190,13 +4187,13 @@ export type ToolSuccess = {
|
|
|
4190
4187
|
};
|
|
4191
4188
|
};
|
|
4192
4189
|
};
|
|
4193
|
-
export type
|
|
4190
|
+
export type SessionToolFailed = {
|
|
4194
4191
|
id: string;
|
|
4195
4192
|
created: number;
|
|
4196
4193
|
metadata?: {
|
|
4197
4194
|
[key: string]: unknown;
|
|
4198
4195
|
};
|
|
4199
|
-
type: "tool.failed";
|
|
4196
|
+
type: "session.tool.failed";
|
|
4200
4197
|
durable: {
|
|
4201
4198
|
aggregateID: string;
|
|
4202
4199
|
seq: number;
|
|
@@ -4215,13 +4212,32 @@ export type ToolFailed = {
|
|
|
4215
4212
|
};
|
|
4216
4213
|
};
|
|
4217
4214
|
};
|
|
4218
|
-
export type
|
|
4215
|
+
export type SessionRetried = {
|
|
4219
4216
|
id: string;
|
|
4220
4217
|
created: number;
|
|
4221
4218
|
metadata?: {
|
|
4222
4219
|
[key: string]: unknown;
|
|
4223
4220
|
};
|
|
4224
|
-
type: "
|
|
4221
|
+
type: "session.retried";
|
|
4222
|
+
durable: {
|
|
4223
|
+
aggregateID: string;
|
|
4224
|
+
seq: number;
|
|
4225
|
+
version: number;
|
|
4226
|
+
};
|
|
4227
|
+
location?: LocationRef;
|
|
4228
|
+
data: {
|
|
4229
|
+
sessionID: string;
|
|
4230
|
+
attempt: number;
|
|
4231
|
+
error: SessionRetryError;
|
|
4232
|
+
};
|
|
4233
|
+
};
|
|
4234
|
+
export type SessionCompactionStarted = {
|
|
4235
|
+
id: string;
|
|
4236
|
+
created: number;
|
|
4237
|
+
metadata?: {
|
|
4238
|
+
[key: string]: unknown;
|
|
4239
|
+
};
|
|
4240
|
+
type: "session.compaction.started";
|
|
4225
4241
|
durable: {
|
|
4226
4242
|
aggregateID: string;
|
|
4227
4243
|
seq: number;
|
|
@@ -4233,13 +4249,13 @@ export type CompactionStarted = {
|
|
|
4233
4249
|
reason: "auto" | "manual";
|
|
4234
4250
|
};
|
|
4235
4251
|
};
|
|
4236
|
-
export type
|
|
4252
|
+
export type SessionCompactionEnded = {
|
|
4237
4253
|
id: string;
|
|
4238
4254
|
created: number;
|
|
4239
4255
|
metadata?: {
|
|
4240
4256
|
[key: string]: unknown;
|
|
4241
4257
|
};
|
|
4242
|
-
type: "compaction.ended";
|
|
4258
|
+
type: "session.compaction.ended";
|
|
4243
4259
|
durable: {
|
|
4244
4260
|
aggregateID: string;
|
|
4245
4261
|
seq: number;
|
|
@@ -4253,13 +4269,13 @@ export type CompactionEnded = {
|
|
|
4253
4269
|
recent: string;
|
|
4254
4270
|
};
|
|
4255
4271
|
};
|
|
4256
|
-
export type
|
|
4272
|
+
export type SessionRevertStaged = {
|
|
4257
4273
|
id: string;
|
|
4258
4274
|
created: number;
|
|
4259
4275
|
metadata?: {
|
|
4260
4276
|
[key: string]: unknown;
|
|
4261
4277
|
};
|
|
4262
|
-
type: "revert.staged";
|
|
4278
|
+
type: "session.revert.staged";
|
|
4263
4279
|
durable: {
|
|
4264
4280
|
aggregateID: string;
|
|
4265
4281
|
seq: number;
|
|
@@ -4271,13 +4287,13 @@ export type RevertStaged = {
|
|
|
4271
4287
|
revert: RevertState;
|
|
4272
4288
|
};
|
|
4273
4289
|
};
|
|
4274
|
-
export type
|
|
4290
|
+
export type SessionRevertCleared = {
|
|
4275
4291
|
id: string;
|
|
4276
4292
|
created: number;
|
|
4277
4293
|
metadata?: {
|
|
4278
4294
|
[key: string]: unknown;
|
|
4279
4295
|
};
|
|
4280
|
-
type: "revert.cleared";
|
|
4296
|
+
type: "session.revert.cleared";
|
|
4281
4297
|
durable: {
|
|
4282
4298
|
aggregateID: string;
|
|
4283
4299
|
seq: number;
|
|
@@ -4288,13 +4304,13 @@ export type RevertCleared = {
|
|
|
4288
4304
|
sessionID: string;
|
|
4289
4305
|
};
|
|
4290
4306
|
};
|
|
4291
|
-
export type
|
|
4307
|
+
export type SessionRevertCommitted = {
|
|
4292
4308
|
id: string;
|
|
4293
4309
|
created: number;
|
|
4294
4310
|
metadata?: {
|
|
4295
4311
|
[key: string]: unknown;
|
|
4296
4312
|
};
|
|
4297
|
-
type: "revert.committed";
|
|
4313
|
+
type: "session.revert.committed";
|
|
4298
4314
|
durable: {
|
|
4299
4315
|
aggregateID: string;
|
|
4300
4316
|
seq: number;
|
|
@@ -4769,13 +4785,13 @@ export type MessagePartRemoved = {
|
|
|
4769
4785
|
partID: string;
|
|
4770
4786
|
};
|
|
4771
4787
|
};
|
|
4772
|
-
export type
|
|
4788
|
+
export type SessionExecutionSettled = {
|
|
4773
4789
|
id: string;
|
|
4774
4790
|
created: number;
|
|
4775
4791
|
metadata?: {
|
|
4776
4792
|
[key: string]: unknown;
|
|
4777
4793
|
};
|
|
4778
|
-
type: "execution.settled";
|
|
4794
|
+
type: "session.execution.settled";
|
|
4779
4795
|
location?: LocationRef;
|
|
4780
4796
|
data: {
|
|
4781
4797
|
sessionID: string;
|
|
@@ -4783,13 +4799,13 @@ export type ExecutionSettled = {
|
|
|
4783
4799
|
error?: SessionErrorUnknown;
|
|
4784
4800
|
};
|
|
4785
4801
|
};
|
|
4786
|
-
export type
|
|
4802
|
+
export type SessionTextDelta = {
|
|
4787
4803
|
id: string;
|
|
4788
4804
|
created: number;
|
|
4789
4805
|
metadata?: {
|
|
4790
4806
|
[key: string]: unknown;
|
|
4791
4807
|
};
|
|
4792
|
-
type: "text.delta";
|
|
4808
|
+
type: "session.text.delta";
|
|
4793
4809
|
location?: LocationRef;
|
|
4794
4810
|
data: {
|
|
4795
4811
|
sessionID: string;
|
|
@@ -4798,13 +4814,13 @@ export type TextDelta = {
|
|
|
4798
4814
|
delta: string;
|
|
4799
4815
|
};
|
|
4800
4816
|
};
|
|
4801
|
-
export type
|
|
4817
|
+
export type SessionReasoningDelta = {
|
|
4802
4818
|
id: string;
|
|
4803
4819
|
created: number;
|
|
4804
4820
|
metadata?: {
|
|
4805
4821
|
[key: string]: unknown;
|
|
4806
4822
|
};
|
|
4807
|
-
type: "reasoning.delta";
|
|
4823
|
+
type: "session.reasoning.delta";
|
|
4808
4824
|
location?: LocationRef;
|
|
4809
4825
|
data: {
|
|
4810
4826
|
sessionID: string;
|
|
@@ -4813,13 +4829,13 @@ export type ReasoningDelta = {
|
|
|
4813
4829
|
delta: string;
|
|
4814
4830
|
};
|
|
4815
4831
|
};
|
|
4816
|
-
export type
|
|
4832
|
+
export type SessionToolInputDelta = {
|
|
4817
4833
|
id: string;
|
|
4818
4834
|
created: number;
|
|
4819
4835
|
metadata?: {
|
|
4820
4836
|
[key: string]: unknown;
|
|
4821
4837
|
};
|
|
4822
|
-
type: "tool.input.delta";
|
|
4838
|
+
type: "session.tool.input.delta";
|
|
4823
4839
|
location?: LocationRef;
|
|
4824
4840
|
data: {
|
|
4825
4841
|
sessionID: string;
|
|
@@ -4828,13 +4844,13 @@ export type ToolInputDelta = {
|
|
|
4828
4844
|
delta: string;
|
|
4829
4845
|
};
|
|
4830
4846
|
};
|
|
4831
|
-
export type
|
|
4847
|
+
export type SessionCompactionDelta = {
|
|
4832
4848
|
id: string;
|
|
4833
4849
|
created: number;
|
|
4834
4850
|
metadata?: {
|
|
4835
4851
|
[key: string]: unknown;
|
|
4836
4852
|
};
|
|
4837
|
-
type: "compaction.delta";
|
|
4853
|
+
type: "session.compaction.delta";
|
|
4838
4854
|
location?: LocationRef;
|
|
4839
4855
|
data: {
|
|
4840
4856
|
sessionID: string;
|
|
@@ -5682,17 +5698,17 @@ export type EventMessagePartRemoved = {
|
|
|
5682
5698
|
partID: string;
|
|
5683
5699
|
};
|
|
5684
5700
|
};
|
|
5685
|
-
export type
|
|
5701
|
+
export type EventSessionAgentSelected = {
|
|
5686
5702
|
id: string;
|
|
5687
|
-
type: "agent.selected";
|
|
5703
|
+
type: "session.agent.selected";
|
|
5688
5704
|
properties: {
|
|
5689
5705
|
sessionID: string;
|
|
5690
5706
|
agent: string;
|
|
5691
5707
|
};
|
|
5692
5708
|
};
|
|
5693
|
-
export type
|
|
5709
|
+
export type EventSessionModelSelected = {
|
|
5694
5710
|
id: string;
|
|
5695
|
-
type: "model.selected";
|
|
5711
|
+
type: "session.model.selected";
|
|
5696
5712
|
properties: {
|
|
5697
5713
|
sessionID: string;
|
|
5698
5714
|
model: ModelRef;
|
|
@@ -5707,34 +5723,34 @@ export type EventSessionMoved = {
|
|
|
5707
5723
|
subpath?: string;
|
|
5708
5724
|
};
|
|
5709
5725
|
};
|
|
5710
|
-
export type
|
|
5726
|
+
export type EventSessionRenamed = {
|
|
5711
5727
|
id: string;
|
|
5712
|
-
type: "renamed";
|
|
5728
|
+
type: "session.renamed";
|
|
5713
5729
|
properties: {
|
|
5714
5730
|
sessionID: string;
|
|
5715
5731
|
title: string;
|
|
5716
5732
|
};
|
|
5717
5733
|
};
|
|
5718
|
-
export type
|
|
5734
|
+
export type EventSessionForked = {
|
|
5719
5735
|
id: string;
|
|
5720
|
-
type: "forked";
|
|
5736
|
+
type: "session.forked";
|
|
5721
5737
|
properties: {
|
|
5722
5738
|
sessionID: string;
|
|
5723
5739
|
parentID: string;
|
|
5724
5740
|
from?: string;
|
|
5725
5741
|
};
|
|
5726
5742
|
};
|
|
5727
|
-
export type
|
|
5743
|
+
export type EventSessionPromptPromoted = {
|
|
5728
5744
|
id: string;
|
|
5729
|
-
type: "prompt.promoted";
|
|
5745
|
+
type: "session.prompt.promoted";
|
|
5730
5746
|
properties: {
|
|
5731
5747
|
sessionID: string;
|
|
5732
5748
|
inputID: string;
|
|
5733
5749
|
};
|
|
5734
5750
|
};
|
|
5735
|
-
export type
|
|
5751
|
+
export type EventSessionPromptAdmitted = {
|
|
5736
5752
|
id: string;
|
|
5737
|
-
type: "prompt.admitted";
|
|
5753
|
+
type: "session.prompt.admitted";
|
|
5738
5754
|
properties: {
|
|
5739
5755
|
sessionID: string;
|
|
5740
5756
|
inputID: string;
|
|
@@ -5742,9 +5758,9 @@ export type EventPromptAdmitted = {
|
|
|
5742
5758
|
delivery: "steer" | "queue";
|
|
5743
5759
|
};
|
|
5744
5760
|
};
|
|
5745
|
-
export type
|
|
5761
|
+
export type EventSessionExecutionSettled = {
|
|
5746
5762
|
id: string;
|
|
5747
|
-
type: "execution.settled";
|
|
5763
|
+
type: "session.execution.settled";
|
|
5748
5764
|
properties: {
|
|
5749
5765
|
sessionID: string;
|
|
5750
5766
|
outcome: "success" | "failure" | "interrupted";
|
|
@@ -5759,9 +5775,9 @@ export type EventSessionContextUpdated = {
|
|
|
5759
5775
|
text: string;
|
|
5760
5776
|
};
|
|
5761
5777
|
};
|
|
5762
|
-
export type
|
|
5778
|
+
export type EventSessionSynthetic = {
|
|
5763
5779
|
id: string;
|
|
5764
|
-
type: "synthetic";
|
|
5780
|
+
type: "session.synthetic";
|
|
5765
5781
|
properties: {
|
|
5766
5782
|
sessionID: string;
|
|
5767
5783
|
text: string;
|
|
@@ -5771,36 +5787,40 @@ export type EventSynthetic = {
|
|
|
5771
5787
|
};
|
|
5772
5788
|
};
|
|
5773
5789
|
};
|
|
5774
|
-
export type
|
|
5790
|
+
export type EventSessionSkillActivated = {
|
|
5775
5791
|
id: string;
|
|
5776
|
-
type: "skill.activated";
|
|
5792
|
+
type: "session.skill.activated";
|
|
5777
5793
|
properties: {
|
|
5778
5794
|
sessionID: string;
|
|
5779
5795
|
name: string;
|
|
5780
5796
|
text: string;
|
|
5781
5797
|
};
|
|
5782
5798
|
};
|
|
5783
|
-
export type
|
|
5799
|
+
export type EventSessionShellStarted = {
|
|
5784
5800
|
id: string;
|
|
5785
|
-
type: "shell.started";
|
|
5801
|
+
type: "session.shell.started";
|
|
5786
5802
|
properties: {
|
|
5787
5803
|
sessionID: string;
|
|
5788
|
-
|
|
5789
|
-
command: string;
|
|
5804
|
+
shell: Shell2;
|
|
5790
5805
|
};
|
|
5791
5806
|
};
|
|
5792
|
-
export type
|
|
5807
|
+
export type EventSessionShellEnded = {
|
|
5793
5808
|
id: string;
|
|
5794
|
-
type: "shell.ended";
|
|
5809
|
+
type: "session.shell.ended";
|
|
5795
5810
|
properties: {
|
|
5796
5811
|
sessionID: string;
|
|
5797
|
-
|
|
5798
|
-
output:
|
|
5812
|
+
shell: Shell2;
|
|
5813
|
+
output: {
|
|
5814
|
+
output: string;
|
|
5815
|
+
cursor: number;
|
|
5816
|
+
size: number;
|
|
5817
|
+
truncated: boolean;
|
|
5818
|
+
};
|
|
5799
5819
|
};
|
|
5800
5820
|
};
|
|
5801
|
-
export type
|
|
5821
|
+
export type EventSessionStepStarted = {
|
|
5802
5822
|
id: string;
|
|
5803
|
-
type: "step.started";
|
|
5823
|
+
type: "session.step.started";
|
|
5804
5824
|
properties: {
|
|
5805
5825
|
sessionID: string;
|
|
5806
5826
|
assistantMessageID: string;
|
|
@@ -5809,9 +5829,9 @@ export type EventStepStarted = {
|
|
|
5809
5829
|
snapshot?: string;
|
|
5810
5830
|
};
|
|
5811
5831
|
};
|
|
5812
|
-
export type
|
|
5832
|
+
export type EventSessionStepEnded = {
|
|
5813
5833
|
id: string;
|
|
5814
|
-
type: "step.ended";
|
|
5834
|
+
type: "session.step.ended";
|
|
5815
5835
|
properties: {
|
|
5816
5836
|
sessionID: string;
|
|
5817
5837
|
assistantMessageID: string;
|
|
@@ -5830,27 +5850,27 @@ export type EventStepEnded = {
|
|
|
5830
5850
|
files?: Array<string>;
|
|
5831
5851
|
};
|
|
5832
5852
|
};
|
|
5833
|
-
export type
|
|
5853
|
+
export type EventSessionStepFailed = {
|
|
5834
5854
|
id: string;
|
|
5835
|
-
type: "step.failed";
|
|
5855
|
+
type: "session.step.failed";
|
|
5836
5856
|
properties: {
|
|
5837
5857
|
sessionID: string;
|
|
5838
5858
|
assistantMessageID: string;
|
|
5839
5859
|
error: SessionErrorUnknown;
|
|
5840
5860
|
};
|
|
5841
5861
|
};
|
|
5842
|
-
export type
|
|
5862
|
+
export type EventSessionTextStarted = {
|
|
5843
5863
|
id: string;
|
|
5844
|
-
type: "text.started";
|
|
5864
|
+
type: "session.text.started";
|
|
5845
5865
|
properties: {
|
|
5846
5866
|
sessionID: string;
|
|
5847
5867
|
assistantMessageID: string;
|
|
5848
5868
|
textID: string;
|
|
5849
5869
|
};
|
|
5850
5870
|
};
|
|
5851
|
-
export type
|
|
5871
|
+
export type EventSessionTextDelta = {
|
|
5852
5872
|
id: string;
|
|
5853
|
-
type: "text.delta";
|
|
5873
|
+
type: "session.text.delta";
|
|
5854
5874
|
properties: {
|
|
5855
5875
|
sessionID: string;
|
|
5856
5876
|
assistantMessageID: string;
|
|
@@ -5858,9 +5878,9 @@ export type EventTextDelta = {
|
|
|
5858
5878
|
delta: string;
|
|
5859
5879
|
};
|
|
5860
5880
|
};
|
|
5861
|
-
export type
|
|
5881
|
+
export type EventSessionTextEnded = {
|
|
5862
5882
|
id: string;
|
|
5863
|
-
type: "text.ended";
|
|
5883
|
+
type: "session.text.ended";
|
|
5864
5884
|
properties: {
|
|
5865
5885
|
sessionID: string;
|
|
5866
5886
|
assistantMessageID: string;
|
|
@@ -5868,9 +5888,9 @@ export type EventTextEnded = {
|
|
|
5868
5888
|
text: string;
|
|
5869
5889
|
};
|
|
5870
5890
|
};
|
|
5871
|
-
export type
|
|
5891
|
+
export type EventSessionReasoningStarted = {
|
|
5872
5892
|
id: string;
|
|
5873
|
-
type: "reasoning.started";
|
|
5893
|
+
type: "session.reasoning.started";
|
|
5874
5894
|
properties: {
|
|
5875
5895
|
sessionID: string;
|
|
5876
5896
|
assistantMessageID: string;
|
|
@@ -5878,9 +5898,9 @@ export type EventReasoningStarted = {
|
|
|
5878
5898
|
providerMetadata?: LlmProviderMetadata;
|
|
5879
5899
|
};
|
|
5880
5900
|
};
|
|
5881
|
-
export type
|
|
5901
|
+
export type EventSessionReasoningDelta = {
|
|
5882
5902
|
id: string;
|
|
5883
|
-
type: "reasoning.delta";
|
|
5903
|
+
type: "session.reasoning.delta";
|
|
5884
5904
|
properties: {
|
|
5885
5905
|
sessionID: string;
|
|
5886
5906
|
assistantMessageID: string;
|
|
@@ -5888,9 +5908,9 @@ export type EventReasoningDelta = {
|
|
|
5888
5908
|
delta: string;
|
|
5889
5909
|
};
|
|
5890
5910
|
};
|
|
5891
|
-
export type
|
|
5911
|
+
export type EventSessionReasoningEnded = {
|
|
5892
5912
|
id: string;
|
|
5893
|
-
type: "reasoning.ended";
|
|
5913
|
+
type: "session.reasoning.ended";
|
|
5894
5914
|
properties: {
|
|
5895
5915
|
sessionID: string;
|
|
5896
5916
|
assistantMessageID: string;
|
|
@@ -5899,9 +5919,9 @@ export type EventReasoningEnded = {
|
|
|
5899
5919
|
providerMetadata?: LlmProviderMetadata;
|
|
5900
5920
|
};
|
|
5901
5921
|
};
|
|
5902
|
-
export type
|
|
5922
|
+
export type EventSessionToolInputStarted = {
|
|
5903
5923
|
id: string;
|
|
5904
|
-
type: "tool.input.started";
|
|
5924
|
+
type: "session.tool.input.started";
|
|
5905
5925
|
properties: {
|
|
5906
5926
|
sessionID: string;
|
|
5907
5927
|
assistantMessageID: string;
|
|
@@ -5909,9 +5929,9 @@ export type EventToolInputStarted = {
|
|
|
5909
5929
|
name: string;
|
|
5910
5930
|
};
|
|
5911
5931
|
};
|
|
5912
|
-
export type
|
|
5932
|
+
export type EventSessionToolInputDelta = {
|
|
5913
5933
|
id: string;
|
|
5914
|
-
type: "tool.input.delta";
|
|
5934
|
+
type: "session.tool.input.delta";
|
|
5915
5935
|
properties: {
|
|
5916
5936
|
sessionID: string;
|
|
5917
5937
|
assistantMessageID: string;
|
|
@@ -5919,9 +5939,9 @@ export type EventToolInputDelta = {
|
|
|
5919
5939
|
delta: string;
|
|
5920
5940
|
};
|
|
5921
5941
|
};
|
|
5922
|
-
export type
|
|
5942
|
+
export type EventSessionToolInputEnded = {
|
|
5923
5943
|
id: string;
|
|
5924
|
-
type: "tool.input.ended";
|
|
5944
|
+
type: "session.tool.input.ended";
|
|
5925
5945
|
properties: {
|
|
5926
5946
|
sessionID: string;
|
|
5927
5947
|
assistantMessageID: string;
|
|
@@ -5929,9 +5949,9 @@ export type EventToolInputEnded = {
|
|
|
5929
5949
|
text: string;
|
|
5930
5950
|
};
|
|
5931
5951
|
};
|
|
5932
|
-
export type
|
|
5952
|
+
export type EventSessionToolCalled = {
|
|
5933
5953
|
id: string;
|
|
5934
|
-
type: "tool.called";
|
|
5954
|
+
type: "session.tool.called";
|
|
5935
5955
|
properties: {
|
|
5936
5956
|
sessionID: string;
|
|
5937
5957
|
assistantMessageID: string;
|
|
@@ -5946,9 +5966,9 @@ export type EventToolCalled = {
|
|
|
5946
5966
|
};
|
|
5947
5967
|
};
|
|
5948
5968
|
};
|
|
5949
|
-
export type
|
|
5969
|
+
export type EventSessionToolProgress = {
|
|
5950
5970
|
id: string;
|
|
5951
|
-
type: "tool.progress";
|
|
5971
|
+
type: "session.tool.progress";
|
|
5952
5972
|
properties: {
|
|
5953
5973
|
sessionID: string;
|
|
5954
5974
|
assistantMessageID: string;
|
|
@@ -5959,9 +5979,9 @@ export type EventToolProgress = {
|
|
|
5959
5979
|
content: Array<LlmToolContent>;
|
|
5960
5980
|
};
|
|
5961
5981
|
};
|
|
5962
|
-
export type
|
|
5982
|
+
export type EventSessionToolSuccess = {
|
|
5963
5983
|
id: string;
|
|
5964
|
-
type: "tool.success";
|
|
5984
|
+
type: "session.tool.success";
|
|
5965
5985
|
properties: {
|
|
5966
5986
|
sessionID: string;
|
|
5967
5987
|
assistantMessageID: string;
|
|
@@ -5978,9 +5998,9 @@ export type EventToolSuccess = {
|
|
|
5978
5998
|
};
|
|
5979
5999
|
};
|
|
5980
6000
|
};
|
|
5981
|
-
export type
|
|
6001
|
+
export type EventSessionToolFailed = {
|
|
5982
6002
|
id: string;
|
|
5983
|
-
type: "tool.failed";
|
|
6003
|
+
type: "session.tool.failed";
|
|
5984
6004
|
properties: {
|
|
5985
6005
|
sessionID: string;
|
|
5986
6006
|
assistantMessageID: string;
|
|
@@ -5993,34 +6013,34 @@ export type EventToolFailed = {
|
|
|
5993
6013
|
};
|
|
5994
6014
|
};
|
|
5995
6015
|
};
|
|
5996
|
-
export type
|
|
6016
|
+
export type EventSessionRetried = {
|
|
5997
6017
|
id: string;
|
|
5998
|
-
type: "retried";
|
|
6018
|
+
type: "session.retried";
|
|
5999
6019
|
properties: {
|
|
6000
6020
|
sessionID: string;
|
|
6001
6021
|
attempt: number;
|
|
6002
6022
|
error: SessionRetryError;
|
|
6003
6023
|
};
|
|
6004
6024
|
};
|
|
6005
|
-
export type
|
|
6025
|
+
export type EventSessionCompactionStarted = {
|
|
6006
6026
|
id: string;
|
|
6007
|
-
type: "compaction.started";
|
|
6027
|
+
type: "session.compaction.started";
|
|
6008
6028
|
properties: {
|
|
6009
6029
|
sessionID: string;
|
|
6010
6030
|
reason: "auto" | "manual";
|
|
6011
6031
|
};
|
|
6012
6032
|
};
|
|
6013
|
-
export type
|
|
6033
|
+
export type EventSessionCompactionDelta = {
|
|
6014
6034
|
id: string;
|
|
6015
|
-
type: "compaction.delta";
|
|
6035
|
+
type: "session.compaction.delta";
|
|
6016
6036
|
properties: {
|
|
6017
6037
|
sessionID: string;
|
|
6018
6038
|
text: string;
|
|
6019
6039
|
};
|
|
6020
6040
|
};
|
|
6021
|
-
export type
|
|
6041
|
+
export type EventSessionCompactionEnded = {
|
|
6022
6042
|
id: string;
|
|
6023
|
-
type: "compaction.ended";
|
|
6043
|
+
type: "session.compaction.ended";
|
|
6024
6044
|
properties: {
|
|
6025
6045
|
sessionID: string;
|
|
6026
6046
|
reason: "auto" | "manual";
|
|
@@ -6028,24 +6048,24 @@ export type EventCompactionEnded = {
|
|
|
6028
6048
|
recent: string;
|
|
6029
6049
|
};
|
|
6030
6050
|
};
|
|
6031
|
-
export type
|
|
6051
|
+
export type EventSessionRevertStaged = {
|
|
6032
6052
|
id: string;
|
|
6033
|
-
type: "revert.staged";
|
|
6053
|
+
type: "session.revert.staged";
|
|
6034
6054
|
properties: {
|
|
6035
6055
|
sessionID: string;
|
|
6036
6056
|
revert: RevertState;
|
|
6037
6057
|
};
|
|
6038
6058
|
};
|
|
6039
|
-
export type
|
|
6059
|
+
export type EventSessionRevertCleared = {
|
|
6040
6060
|
id: string;
|
|
6041
|
-
type: "revert.cleared";
|
|
6061
|
+
type: "session.revert.cleared";
|
|
6042
6062
|
properties: {
|
|
6043
6063
|
sessionID: string;
|
|
6044
6064
|
};
|
|
6045
6065
|
};
|
|
6046
|
-
export type
|
|
6066
|
+
export type EventSessionRevertCommitted = {
|
|
6047
6067
|
id: string;
|
|
6048
|
-
type: "revert.committed";
|
|
6068
|
+
type: "session.revert.committed";
|
|
6049
6069
|
properties: {
|
|
6050
6070
|
sessionID: string;
|
|
6051
6071
|
messageID: string;
|
|
@@ -6807,6 +6827,23 @@ export type SessionMessageSkill2 = {
|
|
|
6807
6827
|
name: string;
|
|
6808
6828
|
text: string;
|
|
6809
6829
|
};
|
|
6830
|
+
export type ShellV2 = {
|
|
6831
|
+
id: string;
|
|
6832
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
6833
|
+
command: string;
|
|
6834
|
+
cwd: string;
|
|
6835
|
+
shell: string;
|
|
6836
|
+
file: string;
|
|
6837
|
+
pid?: number;
|
|
6838
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
6839
|
+
metadata: {
|
|
6840
|
+
[key: string]: unknown;
|
|
6841
|
+
};
|
|
6842
|
+
time: {
|
|
6843
|
+
started: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
6844
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
6845
|
+
};
|
|
6846
|
+
};
|
|
6810
6847
|
export type SessionMessageShell2 = {
|
|
6811
6848
|
id: string;
|
|
6812
6849
|
metadata?: {
|
|
@@ -6817,9 +6854,13 @@ export type SessionMessageShell2 = {
|
|
|
6817
6854
|
completed?: number;
|
|
6818
6855
|
};
|
|
6819
6856
|
type: "shell";
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6857
|
+
shell: ShellV2;
|
|
6858
|
+
output?: {
|
|
6859
|
+
output: string;
|
|
6860
|
+
cursor: number;
|
|
6861
|
+
size: number;
|
|
6862
|
+
truncated: boolean;
|
|
6863
|
+
};
|
|
6823
6864
|
};
|
|
6824
6865
|
export type SessionMessageAssistantText2 = {
|
|
6825
6866
|
type: "text";
|
|
@@ -6965,13 +7006,13 @@ export type SessionContextEntryInfo2 = {
|
|
|
6965
7006
|
key: SessionContextEntryKey2;
|
|
6966
7007
|
value: unknown;
|
|
6967
7008
|
};
|
|
6968
|
-
export type
|
|
7009
|
+
export type SessionAgentSelected2 = {
|
|
6969
7010
|
id: string;
|
|
6970
7011
|
created: number;
|
|
6971
7012
|
metadata?: {
|
|
6972
7013
|
[key: string]: unknown;
|
|
6973
7014
|
};
|
|
6974
|
-
type: "agent.selected";
|
|
7015
|
+
type: "session.agent.selected";
|
|
6975
7016
|
durable: {
|
|
6976
7017
|
aggregateID: string;
|
|
6977
7018
|
seq: number;
|
|
@@ -6983,13 +7024,13 @@ export type AgentSelected2 = {
|
|
|
6983
7024
|
agent: string;
|
|
6984
7025
|
};
|
|
6985
7026
|
};
|
|
6986
|
-
export type
|
|
7027
|
+
export type SessionModelSelected2 = {
|
|
6987
7028
|
id: string;
|
|
6988
7029
|
created: number;
|
|
6989
7030
|
metadata?: {
|
|
6990
7031
|
[key: string]: unknown;
|
|
6991
7032
|
};
|
|
6992
|
-
type: "model.selected";
|
|
7033
|
+
type: "session.model.selected";
|
|
6993
7034
|
durable: {
|
|
6994
7035
|
aggregateID: string;
|
|
6995
7036
|
seq: number;
|
|
@@ -7020,13 +7061,13 @@ export type SessionMoved2 = {
|
|
|
7020
7061
|
subpath?: string;
|
|
7021
7062
|
};
|
|
7022
7063
|
};
|
|
7023
|
-
export type
|
|
7064
|
+
export type SessionRenamed2 = {
|
|
7024
7065
|
id: string;
|
|
7025
7066
|
created: number;
|
|
7026
7067
|
metadata?: {
|
|
7027
7068
|
[key: string]: unknown;
|
|
7028
7069
|
};
|
|
7029
|
-
type: "renamed";
|
|
7070
|
+
type: "session.renamed";
|
|
7030
7071
|
durable: {
|
|
7031
7072
|
aggregateID: string;
|
|
7032
7073
|
seq: number;
|
|
@@ -7038,13 +7079,13 @@ export type RenamedV2 = {
|
|
|
7038
7079
|
title: string;
|
|
7039
7080
|
};
|
|
7040
7081
|
};
|
|
7041
|
-
export type
|
|
7082
|
+
export type SessionForked2 = {
|
|
7042
7083
|
id: string;
|
|
7043
7084
|
created: number;
|
|
7044
7085
|
metadata?: {
|
|
7045
7086
|
[key: string]: unknown;
|
|
7046
7087
|
};
|
|
7047
|
-
type: "forked";
|
|
7088
|
+
type: "session.forked";
|
|
7048
7089
|
durable: {
|
|
7049
7090
|
aggregateID: string;
|
|
7050
7091
|
seq: number;
|
|
@@ -7057,13 +7098,13 @@ export type ForkedV2 = {
|
|
|
7057
7098
|
from?: string;
|
|
7058
7099
|
};
|
|
7059
7100
|
};
|
|
7060
|
-
export type
|
|
7101
|
+
export type SessionPromptPromoted2 = {
|
|
7061
7102
|
id: string;
|
|
7062
7103
|
created: number;
|
|
7063
7104
|
metadata?: {
|
|
7064
7105
|
[key: string]: unknown;
|
|
7065
7106
|
};
|
|
7066
|
-
type: "prompt.promoted";
|
|
7107
|
+
type: "session.prompt.promoted";
|
|
7067
7108
|
durable: {
|
|
7068
7109
|
aggregateID: string;
|
|
7069
7110
|
seq: number;
|
|
@@ -7075,13 +7116,13 @@ export type PromptPromoted2 = {
|
|
|
7075
7116
|
inputID: string;
|
|
7076
7117
|
};
|
|
7077
7118
|
};
|
|
7078
|
-
export type
|
|
7119
|
+
export type SessionPromptAdmitted2 = {
|
|
7079
7120
|
id: string;
|
|
7080
7121
|
created: number;
|
|
7081
7122
|
metadata?: {
|
|
7082
7123
|
[key: string]: unknown;
|
|
7083
7124
|
};
|
|
7084
|
-
type: "prompt.admitted";
|
|
7125
|
+
type: "session.prompt.admitted";
|
|
7085
7126
|
durable: {
|
|
7086
7127
|
aggregateID: string;
|
|
7087
7128
|
seq: number;
|
|
@@ -7113,13 +7154,13 @@ export type SessionContextUpdated2 = {
|
|
|
7113
7154
|
text: string;
|
|
7114
7155
|
};
|
|
7115
7156
|
};
|
|
7116
|
-
export type
|
|
7157
|
+
export type SessionSynthetic2 = {
|
|
7117
7158
|
id: string;
|
|
7118
7159
|
created: number;
|
|
7119
7160
|
metadata?: {
|
|
7120
7161
|
[key: string]: unknown;
|
|
7121
7162
|
};
|
|
7122
|
-
type: "synthetic";
|
|
7163
|
+
type: "session.synthetic";
|
|
7123
7164
|
durable: {
|
|
7124
7165
|
aggregateID: string;
|
|
7125
7166
|
seq: number;
|
|
@@ -7135,13 +7176,13 @@ export type SyntheticV2 = {
|
|
|
7135
7176
|
};
|
|
7136
7177
|
};
|
|
7137
7178
|
};
|
|
7138
|
-
export type
|
|
7179
|
+
export type SessionSkillActivated2 = {
|
|
7139
7180
|
id: string;
|
|
7140
7181
|
created: number;
|
|
7141
7182
|
metadata?: {
|
|
7142
7183
|
[key: string]: unknown;
|
|
7143
7184
|
};
|
|
7144
|
-
type: "skill.activated";
|
|
7185
|
+
type: "session.skill.activated";
|
|
7145
7186
|
durable: {
|
|
7146
7187
|
aggregateID: string;
|
|
7147
7188
|
seq: number;
|
|
@@ -7154,13 +7195,30 @@ export type SkillActivated2 = {
|
|
|
7154
7195
|
text: string;
|
|
7155
7196
|
};
|
|
7156
7197
|
};
|
|
7157
|
-
export type
|
|
7198
|
+
export type Shell1V2 = {
|
|
7199
|
+
id: string;
|
|
7200
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
7201
|
+
command: string;
|
|
7202
|
+
cwd: string;
|
|
7203
|
+
shell: string;
|
|
7204
|
+
file: string;
|
|
7205
|
+
pid?: number;
|
|
7206
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
7207
|
+
metadata: {
|
|
7208
|
+
[key: string]: unknown;
|
|
7209
|
+
};
|
|
7210
|
+
time: {
|
|
7211
|
+
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
7212
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
7213
|
+
};
|
|
7214
|
+
};
|
|
7215
|
+
export type SessionShellStarted2 = {
|
|
7158
7216
|
id: string;
|
|
7159
7217
|
created: number;
|
|
7160
7218
|
metadata?: {
|
|
7161
7219
|
[key: string]: unknown;
|
|
7162
7220
|
};
|
|
7163
|
-
type: "shell.started";
|
|
7221
|
+
type: "session.shell.started";
|
|
7164
7222
|
durable: {
|
|
7165
7223
|
aggregateID: string;
|
|
7166
7224
|
seq: number;
|
|
@@ -7169,17 +7227,16 @@ export type ShellStarted2 = {
|
|
|
7169
7227
|
location?: LocationRef2;
|
|
7170
7228
|
data: {
|
|
7171
7229
|
sessionID: string;
|
|
7172
|
-
|
|
7173
|
-
command: string;
|
|
7230
|
+
shell: Shell1V2;
|
|
7174
7231
|
};
|
|
7175
7232
|
};
|
|
7176
|
-
export type
|
|
7233
|
+
export type SessionShellEnded2 = {
|
|
7177
7234
|
id: string;
|
|
7178
7235
|
created: number;
|
|
7179
7236
|
metadata?: {
|
|
7180
7237
|
[key: string]: unknown;
|
|
7181
7238
|
};
|
|
7182
|
-
type: "shell.ended";
|
|
7239
|
+
type: "session.shell.ended";
|
|
7183
7240
|
durable: {
|
|
7184
7241
|
aggregateID: string;
|
|
7185
7242
|
seq: number;
|
|
@@ -7188,17 +7245,22 @@ export type ShellEnded2 = {
|
|
|
7188
7245
|
location?: LocationRef2;
|
|
7189
7246
|
data: {
|
|
7190
7247
|
sessionID: string;
|
|
7191
|
-
|
|
7192
|
-
output:
|
|
7248
|
+
shell: Shell1V2;
|
|
7249
|
+
output: {
|
|
7250
|
+
output: string;
|
|
7251
|
+
cursor: number;
|
|
7252
|
+
size: number;
|
|
7253
|
+
truncated: boolean;
|
|
7254
|
+
};
|
|
7193
7255
|
};
|
|
7194
7256
|
};
|
|
7195
|
-
export type
|
|
7257
|
+
export type SessionStepStarted2 = {
|
|
7196
7258
|
id: string;
|
|
7197
7259
|
created: number;
|
|
7198
7260
|
metadata?: {
|
|
7199
7261
|
[key: string]: unknown;
|
|
7200
7262
|
};
|
|
7201
|
-
type: "step.started";
|
|
7263
|
+
type: "session.step.started";
|
|
7202
7264
|
durable: {
|
|
7203
7265
|
aggregateID: string;
|
|
7204
7266
|
seq: number;
|
|
@@ -7213,13 +7275,13 @@ export type StepStarted2 = {
|
|
|
7213
7275
|
snapshot?: string;
|
|
7214
7276
|
};
|
|
7215
7277
|
};
|
|
7216
|
-
export type
|
|
7278
|
+
export type SessionStepEnded2 = {
|
|
7217
7279
|
id: string;
|
|
7218
7280
|
created: number;
|
|
7219
7281
|
metadata?: {
|
|
7220
7282
|
[key: string]: unknown;
|
|
7221
7283
|
};
|
|
7222
|
-
type: "step.ended";
|
|
7284
|
+
type: "session.step.ended";
|
|
7223
7285
|
durable: {
|
|
7224
7286
|
aggregateID: string;
|
|
7225
7287
|
seq: number;
|
|
@@ -7244,13 +7306,13 @@ export type StepEnded2 = {
|
|
|
7244
7306
|
files?: Array<string>;
|
|
7245
7307
|
};
|
|
7246
7308
|
};
|
|
7247
|
-
export type
|
|
7309
|
+
export type SessionStepFailed2 = {
|
|
7248
7310
|
id: string;
|
|
7249
7311
|
created: number;
|
|
7250
7312
|
metadata?: {
|
|
7251
7313
|
[key: string]: unknown;
|
|
7252
7314
|
};
|
|
7253
|
-
type: "step.failed";
|
|
7315
|
+
type: "session.step.failed";
|
|
7254
7316
|
durable: {
|
|
7255
7317
|
aggregateID: string;
|
|
7256
7318
|
seq: number;
|
|
@@ -7263,13 +7325,13 @@ export type StepFailed2 = {
|
|
|
7263
7325
|
error: SessionErrorUnknown2;
|
|
7264
7326
|
};
|
|
7265
7327
|
};
|
|
7266
|
-
export type
|
|
7328
|
+
export type SessionTextStarted2 = {
|
|
7267
7329
|
id: string;
|
|
7268
7330
|
created: number;
|
|
7269
7331
|
metadata?: {
|
|
7270
7332
|
[key: string]: unknown;
|
|
7271
7333
|
};
|
|
7272
|
-
type: "text.started";
|
|
7334
|
+
type: "session.text.started";
|
|
7273
7335
|
durable: {
|
|
7274
7336
|
aggregateID: string;
|
|
7275
7337
|
seq: number;
|
|
@@ -7282,13 +7344,13 @@ export type TextStarted2 = {
|
|
|
7282
7344
|
textID: string;
|
|
7283
7345
|
};
|
|
7284
7346
|
};
|
|
7285
|
-
export type
|
|
7347
|
+
export type SessionTextEnded2 = {
|
|
7286
7348
|
id: string;
|
|
7287
7349
|
created: number;
|
|
7288
7350
|
metadata?: {
|
|
7289
7351
|
[key: string]: unknown;
|
|
7290
7352
|
};
|
|
7291
|
-
type: "text.ended";
|
|
7353
|
+
type: "session.text.ended";
|
|
7292
7354
|
durable: {
|
|
7293
7355
|
aggregateID: string;
|
|
7294
7356
|
seq: number;
|
|
@@ -7307,13 +7369,13 @@ export type LlmProviderMetadata3 = {
|
|
|
7307
7369
|
[key: string]: unknown;
|
|
7308
7370
|
};
|
|
7309
7371
|
};
|
|
7310
|
-
export type
|
|
7372
|
+
export type SessionReasoningStarted2 = {
|
|
7311
7373
|
id: string;
|
|
7312
7374
|
created: number;
|
|
7313
7375
|
metadata?: {
|
|
7314
7376
|
[key: string]: unknown;
|
|
7315
7377
|
};
|
|
7316
|
-
type: "reasoning.started";
|
|
7378
|
+
type: "session.reasoning.started";
|
|
7317
7379
|
durable: {
|
|
7318
7380
|
aggregateID: string;
|
|
7319
7381
|
seq: number;
|
|
@@ -7332,13 +7394,13 @@ export type LlmProviderMetadata4 = {
|
|
|
7332
7394
|
[key: string]: unknown;
|
|
7333
7395
|
};
|
|
7334
7396
|
};
|
|
7335
|
-
export type
|
|
7397
|
+
export type SessionReasoningEnded2 = {
|
|
7336
7398
|
id: string;
|
|
7337
7399
|
created: number;
|
|
7338
7400
|
metadata?: {
|
|
7339
7401
|
[key: string]: unknown;
|
|
7340
7402
|
};
|
|
7341
|
-
type: "reasoning.ended";
|
|
7403
|
+
type: "session.reasoning.ended";
|
|
7342
7404
|
durable: {
|
|
7343
7405
|
aggregateID: string;
|
|
7344
7406
|
seq: number;
|
|
@@ -7353,13 +7415,13 @@ export type ReasoningEnded2 = {
|
|
|
7353
7415
|
providerMetadata?: LlmProviderMetadata4;
|
|
7354
7416
|
};
|
|
7355
7417
|
};
|
|
7356
|
-
export type
|
|
7418
|
+
export type SessionToolInputStarted2 = {
|
|
7357
7419
|
id: string;
|
|
7358
7420
|
created: number;
|
|
7359
7421
|
metadata?: {
|
|
7360
7422
|
[key: string]: unknown;
|
|
7361
7423
|
};
|
|
7362
|
-
type: "tool.input.started";
|
|
7424
|
+
type: "session.tool.input.started";
|
|
7363
7425
|
durable: {
|
|
7364
7426
|
aggregateID: string;
|
|
7365
7427
|
seq: number;
|
|
@@ -7373,13 +7435,13 @@ export type ToolInputStarted2 = {
|
|
|
7373
7435
|
name: string;
|
|
7374
7436
|
};
|
|
7375
7437
|
};
|
|
7376
|
-
export type
|
|
7438
|
+
export type SessionToolInputEnded2 = {
|
|
7377
7439
|
id: string;
|
|
7378
7440
|
created: number;
|
|
7379
7441
|
metadata?: {
|
|
7380
7442
|
[key: string]: unknown;
|
|
7381
7443
|
};
|
|
7382
|
-
type: "tool.input.ended";
|
|
7444
|
+
type: "session.tool.input.ended";
|
|
7383
7445
|
durable: {
|
|
7384
7446
|
aggregateID: string;
|
|
7385
7447
|
seq: number;
|
|
@@ -7398,13 +7460,13 @@ export type LlmProviderMetadata5 = {
|
|
|
7398
7460
|
[key: string]: unknown;
|
|
7399
7461
|
};
|
|
7400
7462
|
};
|
|
7401
|
-
export type
|
|
7463
|
+
export type SessionToolCalled2 = {
|
|
7402
7464
|
id: string;
|
|
7403
7465
|
created: number;
|
|
7404
7466
|
metadata?: {
|
|
7405
7467
|
[key: string]: unknown;
|
|
7406
7468
|
};
|
|
7407
|
-
type: "tool.called";
|
|
7469
|
+
type: "session.tool.called";
|
|
7408
7470
|
durable: {
|
|
7409
7471
|
aggregateID: string;
|
|
7410
7472
|
seq: number;
|
|
@@ -7425,13 +7487,13 @@ export type ToolCalled2 = {
|
|
|
7425
7487
|
};
|
|
7426
7488
|
};
|
|
7427
7489
|
};
|
|
7428
|
-
export type
|
|
7490
|
+
export type SessionToolProgress2 = {
|
|
7429
7491
|
id: string;
|
|
7430
7492
|
created: number;
|
|
7431
7493
|
metadata?: {
|
|
7432
7494
|
[key: string]: unknown;
|
|
7433
7495
|
};
|
|
7434
|
-
type: "tool.progress";
|
|
7496
|
+
type: "session.tool.progress";
|
|
7435
7497
|
durable: {
|
|
7436
7498
|
aggregateID: string;
|
|
7437
7499
|
seq: number;
|
|
@@ -7453,13 +7515,13 @@ export type LlmProviderMetadata6 = {
|
|
|
7453
7515
|
[key: string]: unknown;
|
|
7454
7516
|
};
|
|
7455
7517
|
};
|
|
7456
|
-
export type
|
|
7518
|
+
export type SessionToolSuccess2 = {
|
|
7457
7519
|
id: string;
|
|
7458
7520
|
created: number;
|
|
7459
7521
|
metadata?: {
|
|
7460
7522
|
[key: string]: unknown;
|
|
7461
7523
|
};
|
|
7462
|
-
type: "tool.success";
|
|
7524
|
+
type: "session.tool.success";
|
|
7463
7525
|
durable: {
|
|
7464
7526
|
aggregateID: string;
|
|
7465
7527
|
seq: number;
|
|
@@ -7487,13 +7549,13 @@ export type LlmProviderMetadata7 = {
|
|
|
7487
7549
|
[key: string]: unknown;
|
|
7488
7550
|
};
|
|
7489
7551
|
};
|
|
7490
|
-
export type
|
|
7552
|
+
export type SessionToolFailed2 = {
|
|
7491
7553
|
id: string;
|
|
7492
7554
|
created: number;
|
|
7493
7555
|
metadata?: {
|
|
7494
7556
|
[key: string]: unknown;
|
|
7495
7557
|
};
|
|
7496
|
-
type: "tool.failed";
|
|
7558
|
+
type: "session.tool.failed";
|
|
7497
7559
|
durable: {
|
|
7498
7560
|
aggregateID: string;
|
|
7499
7561
|
seq: number;
|
|
@@ -7524,13 +7586,13 @@ export type SessionRetryError2 = {
|
|
|
7524
7586
|
[key: string]: string;
|
|
7525
7587
|
};
|
|
7526
7588
|
};
|
|
7527
|
-
export type
|
|
7589
|
+
export type SessionRetried2 = {
|
|
7528
7590
|
id: string;
|
|
7529
7591
|
created: number;
|
|
7530
7592
|
metadata?: {
|
|
7531
7593
|
[key: string]: unknown;
|
|
7532
7594
|
};
|
|
7533
|
-
type: "retried";
|
|
7595
|
+
type: "session.retried";
|
|
7534
7596
|
durable: {
|
|
7535
7597
|
aggregateID: string;
|
|
7536
7598
|
seq: number;
|
|
@@ -7543,13 +7605,13 @@ export type RetriedV2 = {
|
|
|
7543
7605
|
error: SessionRetryError2;
|
|
7544
7606
|
};
|
|
7545
7607
|
};
|
|
7546
|
-
export type
|
|
7608
|
+
export type SessionCompactionStarted2 = {
|
|
7547
7609
|
id: string;
|
|
7548
7610
|
created: number;
|
|
7549
7611
|
metadata?: {
|
|
7550
7612
|
[key: string]: unknown;
|
|
7551
7613
|
};
|
|
7552
|
-
type: "compaction.started";
|
|
7614
|
+
type: "session.compaction.started";
|
|
7553
7615
|
durable: {
|
|
7554
7616
|
aggregateID: string;
|
|
7555
7617
|
seq: number;
|
|
@@ -7561,13 +7623,13 @@ export type CompactionStarted2 = {
|
|
|
7561
7623
|
reason: "auto" | "manual";
|
|
7562
7624
|
};
|
|
7563
7625
|
};
|
|
7564
|
-
export type
|
|
7626
|
+
export type SessionCompactionEnded2 = {
|
|
7565
7627
|
id: string;
|
|
7566
7628
|
created: number;
|
|
7567
7629
|
metadata?: {
|
|
7568
7630
|
[key: string]: unknown;
|
|
7569
7631
|
};
|
|
7570
|
-
type: "compaction.ended";
|
|
7632
|
+
type: "session.compaction.ended";
|
|
7571
7633
|
durable: {
|
|
7572
7634
|
aggregateID: string;
|
|
7573
7635
|
seq: number;
|
|
@@ -7581,13 +7643,13 @@ export type CompactionEnded2 = {
|
|
|
7581
7643
|
recent: string;
|
|
7582
7644
|
};
|
|
7583
7645
|
};
|
|
7584
|
-
export type
|
|
7646
|
+
export type SessionRevertStaged2 = {
|
|
7585
7647
|
id: string;
|
|
7586
7648
|
created: number;
|
|
7587
7649
|
metadata?: {
|
|
7588
7650
|
[key: string]: unknown;
|
|
7589
7651
|
};
|
|
7590
|
-
type: "revert.staged";
|
|
7652
|
+
type: "session.revert.staged";
|
|
7591
7653
|
durable: {
|
|
7592
7654
|
aggregateID: string;
|
|
7593
7655
|
seq: number;
|
|
@@ -7599,13 +7661,13 @@ export type RevertStaged2 = {
|
|
|
7599
7661
|
revert: RevertState2;
|
|
7600
7662
|
};
|
|
7601
7663
|
};
|
|
7602
|
-
export type
|
|
7664
|
+
export type SessionRevertCleared2 = {
|
|
7603
7665
|
id: string;
|
|
7604
7666
|
created: number;
|
|
7605
7667
|
metadata?: {
|
|
7606
7668
|
[key: string]: unknown;
|
|
7607
7669
|
};
|
|
7608
|
-
type: "revert.cleared";
|
|
7670
|
+
type: "session.revert.cleared";
|
|
7609
7671
|
durable: {
|
|
7610
7672
|
aggregateID: string;
|
|
7611
7673
|
seq: number;
|
|
@@ -7616,13 +7678,13 @@ export type RevertCleared2 = {
|
|
|
7616
7678
|
sessionID: string;
|
|
7617
7679
|
};
|
|
7618
7680
|
};
|
|
7619
|
-
export type
|
|
7681
|
+
export type SessionRevertCommitted2 = {
|
|
7620
7682
|
id: string;
|
|
7621
7683
|
created: number;
|
|
7622
7684
|
metadata?: {
|
|
7623
7685
|
[key: string]: unknown;
|
|
7624
7686
|
};
|
|
7625
|
-
type: "revert.committed";
|
|
7687
|
+
type: "session.revert.committed";
|
|
7626
7688
|
durable: {
|
|
7627
7689
|
aggregateID: string;
|
|
7628
7690
|
seq: number;
|
|
@@ -7634,7 +7696,7 @@ export type RevertCommitted2 = {
|
|
|
7634
7696
|
messageID: string;
|
|
7635
7697
|
};
|
|
7636
7698
|
};
|
|
7637
|
-
export type SessionDurableEventV2 =
|
|
7699
|
+
export type SessionDurableEventV2 = SessionAgentSelected2 | SessionModelSelected2 | SessionMoved2 | SessionRenamed2 | SessionForked2 | SessionPromptPromoted2 | SessionPromptAdmitted2 | SessionContextUpdated2 | SessionSynthetic2 | SessionSkillActivated2 | SessionShellStarted2 | SessionShellEnded2 | SessionStepStarted2 | SessionStepEnded2 | SessionStepFailed2 | SessionTextStarted2 | SessionTextEnded2 | SessionReasoningStarted2 | SessionReasoningEnded2 | SessionToolInputStarted2 | SessionToolInputEnded2 | SessionToolCalled2 | SessionToolProgress2 | SessionToolSuccess2 | SessionToolFailed2 | SessionRetried2 | SessionCompactionStarted2 | SessionCompactionEnded2 | SessionRevertStaged2 | SessionRevertCleared2 | SessionRevertCommitted2;
|
|
7638
7700
|
/**
|
|
7639
7701
|
* Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq.
|
|
7640
7702
|
*/
|
|
@@ -8669,13 +8731,13 @@ export type MessagePartRemoved2 = {
|
|
|
8669
8731
|
partID: string;
|
|
8670
8732
|
};
|
|
8671
8733
|
};
|
|
8672
|
-
export type
|
|
8734
|
+
export type SessionExecutionSettled2 = {
|
|
8673
8735
|
id: string;
|
|
8674
8736
|
created: number;
|
|
8675
8737
|
metadata?: {
|
|
8676
8738
|
[key: string]: unknown;
|
|
8677
8739
|
};
|
|
8678
|
-
type: "execution.settled";
|
|
8740
|
+
type: "session.execution.settled";
|
|
8679
8741
|
location?: LocationRef2;
|
|
8680
8742
|
data: {
|
|
8681
8743
|
sessionID: string;
|
|
@@ -8683,13 +8745,13 @@ export type ExecutionSettled2 = {
|
|
|
8683
8745
|
error?: SessionErrorUnknown2;
|
|
8684
8746
|
};
|
|
8685
8747
|
};
|
|
8686
|
-
export type
|
|
8748
|
+
export type SessionTextDelta2 = {
|
|
8687
8749
|
id: string;
|
|
8688
8750
|
created: number;
|
|
8689
8751
|
metadata?: {
|
|
8690
8752
|
[key: string]: unknown;
|
|
8691
8753
|
};
|
|
8692
|
-
type: "text.delta";
|
|
8754
|
+
type: "session.text.delta";
|
|
8693
8755
|
location?: LocationRef2;
|
|
8694
8756
|
data: {
|
|
8695
8757
|
sessionID: string;
|
|
@@ -8698,13 +8760,13 @@ export type TextDelta2 = {
|
|
|
8698
8760
|
delta: string;
|
|
8699
8761
|
};
|
|
8700
8762
|
};
|
|
8701
|
-
export type
|
|
8763
|
+
export type SessionReasoningDelta2 = {
|
|
8702
8764
|
id: string;
|
|
8703
8765
|
created: number;
|
|
8704
8766
|
metadata?: {
|
|
8705
8767
|
[key: string]: unknown;
|
|
8706
8768
|
};
|
|
8707
|
-
type: "reasoning.delta";
|
|
8769
|
+
type: "session.reasoning.delta";
|
|
8708
8770
|
location?: LocationRef2;
|
|
8709
8771
|
data: {
|
|
8710
8772
|
sessionID: string;
|
|
@@ -8713,13 +8775,13 @@ export type ReasoningDelta2 = {
|
|
|
8713
8775
|
delta: string;
|
|
8714
8776
|
};
|
|
8715
8777
|
};
|
|
8716
|
-
export type
|
|
8778
|
+
export type SessionToolInputDelta2 = {
|
|
8717
8779
|
id: string;
|
|
8718
8780
|
created: number;
|
|
8719
8781
|
metadata?: {
|
|
8720
8782
|
[key: string]: unknown;
|
|
8721
8783
|
};
|
|
8722
|
-
type: "tool.input.delta";
|
|
8784
|
+
type: "session.tool.input.delta";
|
|
8723
8785
|
location?: LocationRef2;
|
|
8724
8786
|
data: {
|
|
8725
8787
|
sessionID: string;
|
|
@@ -8728,13 +8790,13 @@ export type ToolInputDelta2 = {
|
|
|
8728
8790
|
delta: string;
|
|
8729
8791
|
};
|
|
8730
8792
|
};
|
|
8731
|
-
export type
|
|
8793
|
+
export type SessionCompactionDelta2 = {
|
|
8732
8794
|
id: string;
|
|
8733
8795
|
created: number;
|
|
8734
8796
|
metadata?: {
|
|
8735
8797
|
[key: string]: unknown;
|
|
8736
8798
|
};
|
|
8737
|
-
type: "compaction.delta";
|
|
8799
|
+
type: "session.compaction.delta";
|
|
8738
8800
|
location?: LocationRef2;
|
|
8739
8801
|
data: {
|
|
8740
8802
|
sessionID: string;
|
|
@@ -8919,23 +8981,6 @@ export type PtyDeleted2 = {
|
|
|
8919
8981
|
id: string;
|
|
8920
8982
|
};
|
|
8921
8983
|
};
|
|
8922
|
-
export type ShellV2 = {
|
|
8923
|
-
id: string;
|
|
8924
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
8925
|
-
command: string;
|
|
8926
|
-
cwd: string;
|
|
8927
|
-
shell: string;
|
|
8928
|
-
file: string;
|
|
8929
|
-
pid?: number;
|
|
8930
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
8931
|
-
metadata: {
|
|
8932
|
-
[key: string]: unknown;
|
|
8933
|
-
};
|
|
8934
|
-
time: {
|
|
8935
|
-
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
8936
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
8937
|
-
};
|
|
8938
|
-
};
|
|
8939
8984
|
export type ShellCreated2 = {
|
|
8940
8985
|
id: string;
|
|
8941
8986
|
created: number;
|
|
@@ -8945,7 +8990,7 @@ export type ShellCreated2 = {
|
|
|
8945
8990
|
type: "shell.created";
|
|
8946
8991
|
location?: LocationRef2;
|
|
8947
8992
|
data: {
|
|
8948
|
-
info:
|
|
8993
|
+
info: Shell1V2;
|
|
8949
8994
|
};
|
|
8950
8995
|
};
|
|
8951
8996
|
export type ShellExited2 = {
|
|
@@ -9492,7 +9537,7 @@ export type V2EventServerConnected = {
|
|
|
9492
9537
|
[key: string]: unknown;
|
|
9493
9538
|
} | Array<unknown>;
|
|
9494
9539
|
};
|
|
9495
|
-
export type V2EventV2 = ModelsDevRefreshed2 | IntegrationUpdated2 | IntegrationConnectionUpdated2 | CatalogUpdated2 | AgentUpdated2 | SessionCreated2 | SessionUpdated2 | SessionDeleted2 | MessageUpdated2 | MessageRemoved2 | MessagePartUpdated2 | MessagePartRemoved2 |
|
|
9540
|
+
export type V2EventV2 = ModelsDevRefreshed2 | IntegrationUpdated2 | IntegrationConnectionUpdated2 | CatalogUpdated2 | AgentUpdated2 | SessionCreated2 | SessionUpdated2 | SessionDeleted2 | MessageUpdated2 | MessageRemoved2 | MessagePartUpdated2 | MessagePartRemoved2 | SessionAgentSelected2 | SessionModelSelected2 | SessionMoved2 | SessionRenamed2 | SessionForked2 | SessionPromptPromoted2 | SessionPromptAdmitted2 | SessionExecutionSettled2 | SessionContextUpdated2 | SessionSynthetic2 | SessionSkillActivated2 | SessionShellStarted2 | SessionShellEnded2 | SessionStepStarted2 | SessionStepEnded2 | SessionStepFailed2 | SessionTextStarted2 | SessionTextDelta2 | SessionTextEnded2 | SessionReasoningStarted2 | SessionReasoningDelta2 | SessionReasoningEnded2 | SessionToolInputStarted2 | SessionToolInputDelta2 | SessionToolInputEnded2 | SessionToolCalled2 | SessionToolProgress2 | SessionToolSuccess2 | SessionToolFailed2 | SessionRetried2 | SessionCompactionStarted2 | SessionCompactionDelta2 | SessionCompactionEnded2 | SessionRevertStaged2 | SessionRevertCleared2 | SessionRevertCommitted2 | FileEdited2 | ReferenceUpdated2 | PermissionV2Asked2 | PermissionV2Replied2 | PluginAdded2 | ProjectDirectoriesUpdated2 | CommandUpdated2 | SkillUpdated2 | FileWatcherUpdated2 | PtyCreated2 | PtyUpdated2 | PtyExited2 | PtyDeleted2 | ShellCreated2 | ShellExited2 | ShellDeleted2 | QuestionV2Asked2 | QuestionV2Replied2 | QuestionV2Rejected2 | FormCreated2 | FormReplied2 | FormCancelled2 | TodoUpdated2 | SessionStatusV22 | SessionIdle2 | TuiPromptAppend2 | TuiCommandExecute2 | TuiToastShow2 | TuiSessionSelect2 | InstallationUpdated2 | InstallationUpdateAvailable2 | VcsBranchUpdated2 | McpStatusChanged2 | PermissionAsked2 | PermissionReplied2 | QuestionAsked2 | QuestionRepliedV2 | QuestionRejectedV2 | SessionError2 | V2EventServerConnected;
|
|
9496
9541
|
export type V2EventStreamV2 = string;
|
|
9497
9542
|
/**
|
|
9498
9543
|
* Payload-free change hint: the aggregate's durable log advanced to at least seq. Hints coalesce under backpressure (latest per aggregate) and are never a delivery guarantee.
|
|
@@ -9523,23 +9568,6 @@ export type ForbiddenErrorV2 = {
|
|
|
9523
9568
|
_tag: "ForbiddenError";
|
|
9524
9569
|
message: string;
|
|
9525
9570
|
};
|
|
9526
|
-
export type Shell1V2 = {
|
|
9527
|
-
id: string;
|
|
9528
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
9529
|
-
command: string;
|
|
9530
|
-
cwd: string;
|
|
9531
|
-
shell: string;
|
|
9532
|
-
file: string;
|
|
9533
|
-
pid?: number;
|
|
9534
|
-
exit?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
9535
|
-
metadata: {
|
|
9536
|
-
[key: string]: unknown;
|
|
9537
|
-
};
|
|
9538
|
-
time: {
|
|
9539
|
-
started: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
9540
|
-
completed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
9541
|
-
};
|
|
9542
|
-
};
|
|
9543
9571
|
export type ShellNotFoundErrorV2 = {
|
|
9544
9572
|
_tag: "ShellNotFoundError";
|
|
9545
9573
|
id: string;
|
|
@@ -15713,7 +15741,7 @@ export type V2ShellListResponses = {
|
|
|
15713
15741
|
*/
|
|
15714
15742
|
200: {
|
|
15715
15743
|
location: LocationInfo2;
|
|
15716
|
-
data: Array<
|
|
15744
|
+
data: Array<ShellV2>;
|
|
15717
15745
|
};
|
|
15718
15746
|
};
|
|
15719
15747
|
export type V2ShellListResponse = V2ShellListResponses[keyof V2ShellListResponses];
|
|
@@ -15752,7 +15780,7 @@ export type V2ShellCreateResponses = {
|
|
|
15752
15780
|
*/
|
|
15753
15781
|
200: {
|
|
15754
15782
|
location: LocationInfo2;
|
|
15755
|
-
data:
|
|
15783
|
+
data: ShellV2;
|
|
15756
15784
|
};
|
|
15757
15785
|
};
|
|
15758
15786
|
export type V2ShellCreateResponse = V2ShellCreateResponses[keyof V2ShellCreateResponses];
|
|
@@ -15825,7 +15853,7 @@ export type V2ShellGetResponses = {
|
|
|
15825
15853
|
*/
|
|
15826
15854
|
200: {
|
|
15827
15855
|
location: LocationInfo2;
|
|
15828
|
-
data:
|
|
15856
|
+
data: ShellV2;
|
|
15829
15857
|
};
|
|
15830
15858
|
};
|
|
15831
15859
|
export type V2ShellGetResponse = V2ShellGetResponses[keyof V2ShellGetResponses];
|