@opencode-ai/sdk 0.0.0-next-14814 → 0.0.0-next-14815

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.
@@ -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 | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextRenamed | EventSessionNextForked | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextExecutionSettled | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextSkillActivated | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | 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 | EventMcpBrowserOpenFailed | EventMcpStatusChanged | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
4
+ export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventAgentUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventAgentSelected | EventModelSelected | EventSessionMoved | EventRenamed | EventForked | EventPromptPromoted | EventPromptAdmitted | EventExecutionSettled | EventSessionContextUpdated | EventSynthetic | EventSkillActivated | EventShellStarted | EventShellEnded | EventStepStarted | EventStepEnded | EventStepFailed | EventTextStarted | EventTextDelta | EventTextEnded | EventReasoningStarted | EventReasoningDelta | EventReasoningEnded | EventToolInputStarted | EventToolInputDelta | EventToolInputEnded | EventToolCalled | EventToolProgress | EventToolSuccess | EventToolFailed | EventRetried | EventCompactionStarted | EventCompactionDelta | EventCompactionEnded | EventRevertStaged | EventRevertCleared | EventRevertCommitted | 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 | EventMcpBrowserOpenFailed | 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;
@@ -654,93 +654,77 @@ export type GlobalEvent = {
654
654
  };
655
655
  } | {
656
656
  id: string;
657
- type: "session.next.agent.switched";
657
+ type: "agent.selected";
658
658
  properties: {
659
- timestamp: number;
660
659
  sessionID: string;
661
- messageID: string;
662
660
  agent: string;
663
661
  };
664
662
  } | {
665
663
  id: string;
666
- type: "session.next.model.switched";
664
+ type: "model.selected";
667
665
  properties: {
668
- timestamp: number;
669
666
  sessionID: string;
670
- messageID: string;
671
667
  model: ModelRef;
672
668
  };
673
669
  } | {
674
670
  id: string;
675
- type: "session.next.moved";
671
+ type: "session.moved";
676
672
  properties: {
677
- timestamp: number;
678
673
  sessionID: string;
679
674
  location: LocationRef;
680
- subdirectory?: string;
675
+ subpath?: string;
681
676
  };
682
677
  } | {
683
678
  id: string;
684
- type: "session.next.renamed";
679
+ type: "renamed";
685
680
  properties: {
686
- timestamp: number;
687
681
  sessionID: string;
688
682
  title: string;
689
683
  };
690
684
  } | {
691
685
  id: string;
692
- type: "session.next.forked";
686
+ type: "forked";
693
687
  properties: {
694
- timestamp: number;
695
688
  sessionID: string;
696
689
  parentID: string;
697
- messageID?: string;
690
+ from?: string;
698
691
  };
699
692
  } | {
700
693
  id: string;
701
- type: "session.next.prompted";
694
+ type: "prompt.promoted";
702
695
  properties: {
703
- timestamp: number;
704
696
  sessionID: string;
705
- messageID: string;
706
- prompt: Prompt;
707
- delivery: "steer" | "queue";
697
+ inputID: string;
708
698
  };
709
699
  } | {
710
700
  id: string;
711
- type: "session.next.prompt.admitted";
701
+ type: "prompt.admitted";
712
702
  properties: {
713
- timestamp: number;
714
703
  sessionID: string;
715
- messageID: string;
704
+ inputID: string;
716
705
  prompt: Prompt;
717
706
  delivery: "steer" | "queue";
718
707
  };
719
708
  } | {
720
709
  id: string;
721
- type: "session.next.execution.settled";
710
+ type: "execution.settled";
722
711
  properties: {
723
- timestamp: number;
724
712
  sessionID: string;
725
713
  outcome: "success" | "failure" | "interrupted";
726
714
  error?: SessionErrorUnknown;
727
715
  };
728
716
  } | {
729
717
  id: string;
730
- type: "session.next.context.updated";
718
+ type: "session.context.updated";
731
719
  properties: {
732
- timestamp: number;
733
720
  sessionID: string;
734
- messageID: string;
735
721
  text: string;
736
722
  };
737
723
  } | {
738
724
  id: string;
739
- type: "session.next.synthetic";
725
+ type: "synthetic";
740
726
  properties: {
741
- timestamp: number;
742
727
  sessionID: string;
743
- messageID: string;
744
728
  text: string;
745
729
  description?: string;
746
730
  metadata?: {
@@ -749,38 +733,32 @@ export type GlobalEvent = {
749
733
  };
750
734
  } | {
751
735
  id: string;
752
- type: "session.next.skill.activated";
736
+ type: "skill.activated";
753
737
  properties: {
754
- timestamp: number;
755
738
  sessionID: string;
756
- messageID: string;
757
739
  name: string;
758
740
  text: string;
759
741
  };
760
742
  } | {
761
743
  id: string;
762
- type: "session.next.shell.started";
744
+ type: "shell.started";
763
745
  properties: {
764
- timestamp: number;
765
746
  sessionID: string;
766
- messageID: string;
767
747
  callID: string;
768
748
  command: string;
769
749
  };
770
750
  } | {
771
751
  id: string;
772
- type: "session.next.shell.ended";
752
+ type: "shell.ended";
773
753
  properties: {
774
- timestamp: number;
775
754
  sessionID: string;
776
755
  callID: string;
777
756
  output: string;
778
757
  };
779
758
  } | {
780
759
  id: string;
781
- type: "session.next.step.started";
760
+ type: "step.started";
782
761
  properties: {
783
- timestamp: number;
784
762
  sessionID: string;
785
763
  assistantMessageID: string;
786
764
  agent: string;
@@ -789,9 +767,8 @@ export type GlobalEvent = {
789
767
  };
790
768
  } | {
791
769
  id: string;
792
- type: "session.next.step.ended";
770
+ type: "step.ended";
793
771
  properties: {
794
- timestamp: number;
795
772
  sessionID: string;
796
773
  assistantMessageID: string;
797
774
  finish: string;
@@ -810,27 +787,24 @@ export type GlobalEvent = {
810
787
  };
811
788
  } | {
812
789
  id: string;
813
- type: "session.next.step.failed";
790
+ type: "step.failed";
814
791
  properties: {
815
- timestamp: number;
816
792
  sessionID: string;
817
793
  assistantMessageID: string;
818
794
  error: SessionErrorUnknown;
819
795
  };
820
796
  } | {
821
797
  id: string;
822
- type: "session.next.text.started";
798
+ type: "text.started";
823
799
  properties: {
824
- timestamp: number;
825
800
  sessionID: string;
826
801
  assistantMessageID: string;
827
802
  textID: string;
828
803
  };
829
804
  } | {
830
805
  id: string;
831
- type: "session.next.text.delta";
806
+ type: "text.delta";
832
807
  properties: {
833
- timestamp: number;
834
808
  sessionID: string;
835
809
  assistantMessageID: string;
836
810
  textID: string;
@@ -838,9 +812,8 @@ export type GlobalEvent = {
838
812
  };
839
813
  } | {
840
814
  id: string;
841
- type: "session.next.text.ended";
815
+ type: "text.ended";
842
816
  properties: {
843
- timestamp: number;
844
817
  sessionID: string;
845
818
  assistantMessageID: string;
846
819
  textID: string;
@@ -848,9 +821,8 @@ export type GlobalEvent = {
848
821
  };
849
822
  } | {
850
823
  id: string;
851
- type: "session.next.reasoning.started";
824
+ type: "reasoning.started";
852
825
  properties: {
853
- timestamp: number;
854
826
  sessionID: string;
855
827
  assistantMessageID: string;
856
828
  reasoningID: string;
@@ -858,9 +830,8 @@ export type GlobalEvent = {
858
830
  };
859
831
  } | {
860
832
  id: string;
861
- type: "session.next.reasoning.delta";
833
+ type: "reasoning.delta";
862
834
  properties: {
863
- timestamp: number;
864
835
  sessionID: string;
865
836
  assistantMessageID: string;
866
837
  reasoningID: string;
@@ -868,9 +839,8 @@ export type GlobalEvent = {
868
839
  };
869
840
  } | {
870
841
  id: string;
871
- type: "session.next.reasoning.ended";
842
+ type: "reasoning.ended";
872
843
  properties: {
873
- timestamp: number;
874
844
  sessionID: string;
875
845
  assistantMessageID: string;
876
846
  reasoningID: string;
@@ -879,9 +849,8 @@ export type GlobalEvent = {
879
849
  };
880
850
  } | {
881
851
  id: string;
882
- type: "session.next.tool.input.started";
852
+ type: "tool.input.started";
883
853
  properties: {
884
- timestamp: number;
885
854
  sessionID: string;
886
855
  assistantMessageID: string;
887
856
  callID: string;
@@ -889,9 +858,8 @@ export type GlobalEvent = {
889
858
  };
890
859
  } | {
891
860
  id: string;
892
- type: "session.next.tool.input.delta";
861
+ type: "tool.input.delta";
893
862
  properties: {
894
- timestamp: number;
895
863
  sessionID: string;
896
864
  assistantMessageID: string;
897
865
  callID: string;
@@ -899,9 +867,8 @@ export type GlobalEvent = {
899
867
  };
900
868
  } | {
901
869
  id: string;
902
- type: "session.next.tool.input.ended";
870
+ type: "tool.input.ended";
903
871
  properties: {
904
- timestamp: number;
905
872
  sessionID: string;
906
873
  assistantMessageID: string;
907
874
  callID: string;
@@ -909,9 +876,8 @@ export type GlobalEvent = {
909
876
  };
910
877
  } | {
911
878
  id: string;
912
- type: "session.next.tool.called";
879
+ type: "tool.called";
913
880
  properties: {
914
- timestamp: number;
915
881
  sessionID: string;
916
882
  assistantMessageID: string;
917
883
  callID: string;
@@ -926,9 +892,8 @@ export type GlobalEvent = {
926
892
  };
927
893
  } | {
928
894
  id: string;
929
- type: "session.next.tool.progress";
895
+ type: "tool.progress";
930
896
  properties: {
931
- timestamp: number;
932
897
  sessionID: string;
933
898
  assistantMessageID: string;
934
899
  callID: string;
@@ -939,9 +904,8 @@ export type GlobalEvent = {
939
904
  };
940
905
  } | {
941
906
  id: string;
942
- type: "session.next.tool.success";
907
+ type: "tool.success";
943
908
  properties: {
944
- timestamp: number;
945
909
  sessionID: string;
946
910
  assistantMessageID: string;
947
911
  callID: string;
@@ -958,9 +922,8 @@ export type GlobalEvent = {
958
922
  };
959
923
  } | {
960
924
  id: string;
961
- type: "session.next.tool.failed";
925
+ type: "tool.failed";
962
926
  properties: {
963
- timestamp: number;
964
927
  sessionID: string;
965
928
  assistantMessageID: string;
966
929
  callID: string;
@@ -973,62 +936,52 @@ export type GlobalEvent = {
973
936
  };
974
937
  } | {
975
938
  id: string;
976
- type: "session.next.retried";
939
+ type: "retried";
977
940
  properties: {
978
- timestamp: number;
979
941
  sessionID: string;
980
942
  attempt: number;
981
- error: SessionNextRetryError;
943
+ error: SessionRetryError;
982
944
  };
983
945
  } | {
984
946
  id: string;
985
- type: "session.next.compaction.started";
947
+ type: "compaction.started";
986
948
  properties: {
987
- timestamp: number;
988
949
  sessionID: string;
989
- messageID: string;
990
950
  reason: "auto" | "manual";
991
951
  };
992
952
  } | {
993
953
  id: string;
994
- type: "session.next.compaction.delta";
954
+ type: "compaction.delta";
995
955
  properties: {
996
- timestamp: number;
997
956
  sessionID: string;
998
- messageID: string;
999
957
  text: string;
1000
958
  };
1001
959
  } | {
1002
960
  id: string;
1003
- type: "session.next.compaction.ended";
961
+ type: "compaction.ended";
1004
962
  properties: {
1005
- timestamp: number;
1006
963
  sessionID: string;
1007
- messageID: string;
1008
964
  reason: "auto" | "manual";
1009
965
  text: string;
1010
966
  recent: string;
1011
967
  };
1012
968
  } | {
1013
969
  id: string;
1014
- type: "session.next.revert.staged";
970
+ type: "revert.staged";
1015
971
  properties: {
1016
- timestamp: number;
1017
972
  sessionID: string;
1018
973
  revert: RevertState;
1019
974
  };
1020
975
  } | {
1021
976
  id: string;
1022
- type: "session.next.revert.cleared";
977
+ type: "revert.cleared";
1023
978
  properties: {
1024
- timestamp: number;
1025
979
  sessionID: string;
1026
980
  };
1027
981
  } | {
1028
982
  id: string;
1029
- type: "session.next.revert.committed";
983
+ type: "revert.committed";
1030
984
  properties: {
1031
- timestamp: number;
1032
985
  sessionID: string;
1033
986
  messageID: string;
1034
987
  };
@@ -1431,7 +1384,7 @@ export type GlobalEvent = {
1431
1384
  properties: {
1432
1385
  [key: string]: unknown;
1433
1386
  };
1434
- } | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextRenamed | SyncEventSessionNextForked | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextSkillActivated | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded | SyncEventSessionNextRevertStaged | SyncEventSessionNextRevertCleared | SyncEventSessionNextRevertCommitted;
1387
+ } | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventAgentSelected | SyncEventModelSelected | SyncEventSessionMoved | SyncEventRenamed | SyncEventForked | SyncEventPromptPromoted | SyncEventPromptAdmitted | SyncEventSessionContextUpdated | SyncEventSynthetic | SyncEventSkillActivated | SyncEventShellStarted | SyncEventShellEnded | SyncEventStepStarted | SyncEventStepEnded | SyncEventStepFailed | SyncEventTextStarted | SyncEventTextEnded | SyncEventReasoningStarted | SyncEventReasoningEnded | SyncEventToolInputStarted | SyncEventToolInputEnded | SyncEventToolCalled | SyncEventToolProgress | SyncEventToolSuccess | SyncEventToolFailed | SyncEventRetried | SyncEventCompactionStarted | SyncEventCompactionEnded | SyncEventRevertStaged | SyncEventRevertCleared | SyncEventRevertCommitted;
1435
1388
  };
1436
1389
  /**
1437
1390
  * Log level
@@ -2384,7 +2337,85 @@ export type UnknownError1 = {
2384
2337
  message: string;
2385
2338
  ref?: string;
2386
2339
  };
2387
- export type SessionDurableEvent = SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextRenamed | SessionNextForked | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextSkillActivated | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted;
2340
+ export type Renamed = {
2341
+ id: string;
2342
+ created: number;
2343
+ metadata?: {
2344
+ [key: string]: unknown;
2345
+ };
2346
+ type: "renamed";
2347
+ durable: {
2348
+ aggregateID: string;
2349
+ seq: number;
2350
+ version: number;
2351
+ };
2352
+ location?: LocationRef;
2353
+ data: {
2354
+ sessionID: string;
2355
+ title: string;
2356
+ };
2357
+ };
2358
+ export type Forked = {
2359
+ id: string;
2360
+ created: number;
2361
+ metadata?: {
2362
+ [key: string]: unknown;
2363
+ };
2364
+ type: "forked";
2365
+ durable: {
2366
+ aggregateID: string;
2367
+ seq: number;
2368
+ version: number;
2369
+ };
2370
+ location?: LocationRef;
2371
+ data: {
2372
+ sessionID: string;
2373
+ parentID: string;
2374
+ from?: string;
2375
+ };
2376
+ };
2377
+ export type Synthetic = {
2378
+ id: string;
2379
+ created: number;
2380
+ metadata?: {
2381
+ [key: string]: unknown;
2382
+ };
2383
+ type: "synthetic";
2384
+ durable: {
2385
+ aggregateID: string;
2386
+ seq: number;
2387
+ version: number;
2388
+ };
2389
+ location?: LocationRef;
2390
+ data: {
2391
+ sessionID: string;
2392
+ text: string;
2393
+ description?: string;
2394
+ metadata?: {
2395
+ [key: string]: unknown;
2396
+ };
2397
+ };
2398
+ };
2399
+ export type Retried = {
2400
+ id: string;
2401
+ created: number;
2402
+ metadata?: {
2403
+ [key: string]: unknown;
2404
+ };
2405
+ type: "retried";
2406
+ durable: {
2407
+ aggregateID: string;
2408
+ seq: number;
2409
+ version: number;
2410
+ };
2411
+ location?: LocationRef;
2412
+ data: {
2413
+ sessionID: string;
2414
+ attempt: number;
2415
+ error: SessionRetryError;
2416
+ };
2417
+ };
2418
+ export type SessionDurableEvent = AgentSelected | ModelSelected | SessionMoved | Renamed | Forked | PromptPromoted | PromptAdmitted | SessionContextUpdated | Synthetic | SkillActivated | ShellStarted | ShellEnded | StepStarted | StepEnded | StepFailed | TextStarted | TextEnded | ReasoningStarted | ReasoningEnded | ToolInputStarted | ToolInputEnded | ToolCalled | ToolProgress | ToolSuccess | ToolFailed | Retried | CompactionStarted | CompactionEnded | RevertStaged | RevertCleared | RevertCommitted;
2388
2419
  export type SessionLogItem = SessionDurableEvent | EventLogSynced;
2389
2420
  export type SessionLogItemStream = string;
2390
2421
  export type SessionMessagesResponse = {
@@ -2446,6 +2477,7 @@ export type Shell1 = {
2446
2477
  };
2447
2478
  export type SessionStatus2 = {
2448
2479
  id: string;
2480
+ created: number;
2449
2481
  metadata?: {
2450
2482
  [key: string]: unknown;
2451
2483
  };
@@ -2458,6 +2490,7 @@ export type SessionStatus2 = {
2458
2490
  };
2459
2491
  export type QuestionReplied2 = {
2460
2492
  id: string;
2493
+ created: number;
2461
2494
  metadata?: {
2462
2495
  [key: string]: unknown;
2463
2496
  };
@@ -2471,6 +2504,7 @@ export type QuestionReplied2 = {
2471
2504
  };
2472
2505
  export type QuestionRejected2 = {
2473
2506
  id: string;
2507
+ created: number;
2474
2508
  metadata?: {
2475
2509
  [key: string]: unknown;
2476
2510
  };
@@ -2481,7 +2515,7 @@ export type QuestionRejected2 = {
2481
2515
  requestID: string;
2482
2516
  };
2483
2517
  };
2484
- export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextRenamed | SessionNextForked | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextExecutionSettled | SessionNextContextUpdated | SessionNextSynthetic | SessionNextSkillActivated | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | 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 | McpBrowserOpenFailed | McpStatusChanged | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
2518
+ export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | AgentSelected | ModelSelected | SessionMoved | Renamed | Forked | PromptPromoted | PromptAdmitted | ExecutionSettled | SessionContextUpdated | Synthetic | SkillActivated | ShellStarted | ShellEnded | StepStarted | StepEnded | StepFailed | TextStarted | TextDelta | TextEnded | ReasoningStarted | ReasoningDelta | ReasoningEnded | ToolInputStarted | ToolInputDelta | ToolInputEnded | ToolCalled | ToolProgress | ToolSuccess | ToolFailed | Retried | CompactionStarted | CompactionDelta | CompactionEnded | RevertStaged | RevertCleared | RevertCommitted | 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 | McpBrowserOpenFailed | McpStatusChanged | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
2485
2519
  export type V2EventStream = string;
2486
2520
  export type ForbiddenError = {
2487
2521
  _tag: "ForbiddenError";
@@ -2617,7 +2651,7 @@ export type ToolFileContent = {
2617
2651
  name?: string;
2618
2652
  };
2619
2653
  export type LlmToolContent = ToolTextContent | ToolFileContent;
2620
- export type SessionNextRetryError = {
2654
+ export type SessionRetryError = {
2621
2655
  message: string;
2622
2656
  statusCode?: number;
2623
2657
  isRetryable: boolean;
@@ -2897,147 +2931,132 @@ export type SyncEventMessagePartRemoved = {
2897
2931
  };
2898
2932
  };
2899
2933
  };
2900
- export type SyncEventSessionNextAgentSwitched = {
2934
+ export type SyncEventAgentSelected = {
2901
2935
  type: "sync";
2902
2936
  id: string;
2903
2937
  syncEvent: {
2904
- type: "session.next.agent.switched.1";
2938
+ type: "agent.selected.1";
2905
2939
  id: string;
2906
2940
  seq: number;
2907
2941
  aggregateID: string;
2908
2942
  data: {
2909
- timestamp: number;
2910
2943
  sessionID: string;
2911
- messageID: string;
2912
2944
  agent: string;
2913
2945
  };
2914
2946
  };
2915
2947
  };
2916
- export type SyncEventSessionNextModelSwitched = {
2948
+ export type SyncEventModelSelected = {
2917
2949
  type: "sync";
2918
2950
  id: string;
2919
2951
  syncEvent: {
2920
- type: "session.next.model.switched.1";
2952
+ type: "model.selected.1";
2921
2953
  id: string;
2922
2954
  seq: number;
2923
2955
  aggregateID: string;
2924
2956
  data: {
2925
- timestamp: number;
2926
2957
  sessionID: string;
2927
- messageID: string;
2928
2958
  model: ModelRef;
2929
2959
  };
2930
2960
  };
2931
2961
  };
2932
- export type SyncEventSessionNextMoved = {
2962
+ export type SyncEventSessionMoved = {
2933
2963
  type: "sync";
2934
2964
  id: string;
2935
2965
  syncEvent: {
2936
- type: "session.next.moved.1";
2966
+ type: "session.moved.1";
2937
2967
  id: string;
2938
2968
  seq: number;
2939
2969
  aggregateID: string;
2940
2970
  data: {
2941
- timestamp: number;
2942
2971
  sessionID: string;
2943
2972
  location: LocationRef;
2944
- subdirectory?: string;
2973
+ subpath?: string;
2945
2974
  };
2946
2975
  };
2947
2976
  };
2948
- export type SyncEventSessionNextRenamed = {
2977
+ export type SyncEventRenamed = {
2949
2978
  type: "sync";
2950
2979
  id: string;
2951
2980
  syncEvent: {
2952
- type: "session.next.renamed.1";
2981
+ type: "renamed.1";
2953
2982
  id: string;
2954
2983
  seq: number;
2955
2984
  aggregateID: string;
2956
2985
  data: {
2957
- timestamp: number;
2958
2986
  sessionID: string;
2959
2987
  title: string;
2960
2988
  };
2961
2989
  };
2962
2990
  };
2963
- export type SyncEventSessionNextForked = {
2991
+ export type SyncEventForked = {
2964
2992
  type: "sync";
2965
2993
  id: string;
2966
2994
  syncEvent: {
2967
- type: "session.next.forked.1";
2995
+ type: "forked.1";
2968
2996
  id: string;
2969
2997
  seq: number;
2970
2998
  aggregateID: string;
2971
2999
  data: {
2972
- timestamp: number;
2973
3000
  sessionID: string;
2974
3001
  parentID: string;
2975
- messageID?: string;
3002
+ from?: string;
2976
3003
  };
2977
3004
  };
2978
3005
  };
2979
- export type SyncEventSessionNextPrompted = {
3006
+ export type SyncEventPromptPromoted = {
2980
3007
  type: "sync";
2981
3008
  id: string;
2982
3009
  syncEvent: {
2983
- type: "session.next.prompted.1";
3010
+ type: "prompt.promoted.1";
2984
3011
  id: string;
2985
3012
  seq: number;
2986
3013
  aggregateID: string;
2987
3014
  data: {
2988
- timestamp: number;
2989
3015
  sessionID: string;
2990
- messageID: string;
2991
- prompt: Prompt;
2992
- delivery: "steer" | "queue";
3016
+ inputID: string;
2993
3017
  };
2994
3018
  };
2995
3019
  };
2996
- export type SyncEventSessionNextPromptAdmitted = {
3020
+ export type SyncEventPromptAdmitted = {
2997
3021
  type: "sync";
2998
3022
  id: string;
2999
3023
  syncEvent: {
3000
- type: "session.next.prompt.admitted.1";
3024
+ type: "prompt.admitted.1";
3001
3025
  id: string;
3002
3026
  seq: number;
3003
3027
  aggregateID: string;
3004
3028
  data: {
3005
- timestamp: number;
3006
3029
  sessionID: string;
3007
- messageID: string;
3030
+ inputID: string;
3008
3031
  prompt: Prompt;
3009
3032
  delivery: "steer" | "queue";
3010
3033
  };
3011
3034
  };
3012
3035
  };
3013
- export type SyncEventSessionNextContextUpdated = {
3036
+ export type SyncEventSessionContextUpdated = {
3014
3037
  type: "sync";
3015
3038
  id: string;
3016
3039
  syncEvent: {
3017
- type: "session.next.context.updated.1";
3040
+ type: "session.context.updated.1";
3018
3041
  id: string;
3019
3042
  seq: number;
3020
3043
  aggregateID: string;
3021
3044
  data: {
3022
- timestamp: number;
3023
3045
  sessionID: string;
3024
- messageID: string;
3025
3046
  text: string;
3026
3047
  };
3027
3048
  };
3028
3049
  };
3029
- export type SyncEventSessionNextSynthetic = {
3050
+ export type SyncEventSynthetic = {
3030
3051
  type: "sync";
3031
3052
  id: string;
3032
3053
  syncEvent: {
3033
- type: "session.next.synthetic.1";
3054
+ type: "synthetic.1";
3034
3055
  id: string;
3035
3056
  seq: number;
3036
3057
  aggregateID: string;
3037
3058
  data: {
3038
- timestamp: number;
3039
3059
  sessionID: string;
3040
- messageID: string;
3041
3060
  text: string;
3042
3061
  description?: string;
3043
3062
  metadata?: {
@@ -3046,66 +3065,60 @@ export type SyncEventSessionNextSynthetic = {
3046
3065
  };
3047
3066
  };
3048
3067
  };
3049
- export type SyncEventSessionNextSkillActivated = {
3068
+ export type SyncEventSkillActivated = {
3050
3069
  type: "sync";
3051
3070
  id: string;
3052
3071
  syncEvent: {
3053
- type: "session.next.skill.activated.1";
3072
+ type: "skill.activated.1";
3054
3073
  id: string;
3055
3074
  seq: number;
3056
3075
  aggregateID: string;
3057
3076
  data: {
3058
- timestamp: number;
3059
3077
  sessionID: string;
3060
- messageID: string;
3061
3078
  name: string;
3062
3079
  text: string;
3063
3080
  };
3064
3081
  };
3065
3082
  };
3066
- export type SyncEventSessionNextShellStarted = {
3083
+ export type SyncEventShellStarted = {
3067
3084
  type: "sync";
3068
3085
  id: string;
3069
3086
  syncEvent: {
3070
- type: "session.next.shell.started.1";
3087
+ type: "shell.started.1";
3071
3088
  id: string;
3072
3089
  seq: number;
3073
3090
  aggregateID: string;
3074
3091
  data: {
3075
- timestamp: number;
3076
3092
  sessionID: string;
3077
- messageID: string;
3078
3093
  callID: string;
3079
3094
  command: string;
3080
3095
  };
3081
3096
  };
3082
3097
  };
3083
- export type SyncEventSessionNextShellEnded = {
3098
+ export type SyncEventShellEnded = {
3084
3099
  type: "sync";
3085
3100
  id: string;
3086
3101
  syncEvent: {
3087
- type: "session.next.shell.ended.1";
3102
+ type: "shell.ended.1";
3088
3103
  id: string;
3089
3104
  seq: number;
3090
3105
  aggregateID: string;
3091
3106
  data: {
3092
- timestamp: number;
3093
3107
  sessionID: string;
3094
3108
  callID: string;
3095
3109
  output: string;
3096
3110
  };
3097
3111
  };
3098
3112
  };
3099
- export type SyncEventSessionNextStepStarted = {
3113
+ export type SyncEventStepStarted = {
3100
3114
  type: "sync";
3101
3115
  id: string;
3102
3116
  syncEvent: {
3103
- type: "session.next.step.started.1";
3117
+ type: "step.started.1";
3104
3118
  id: string;
3105
3119
  seq: number;
3106
3120
  aggregateID: string;
3107
3121
  data: {
3108
- timestamp: number;
3109
3122
  sessionID: string;
3110
3123
  assistantMessageID: string;
3111
3124
  agent: string;
@@ -3114,16 +3127,15 @@ export type SyncEventSessionNextStepStarted = {
3114
3127
  };
3115
3128
  };
3116
3129
  };
3117
- export type SyncEventSessionNextStepEnded = {
3130
+ export type SyncEventStepEnded = {
3118
3131
  type: "sync";
3119
3132
  id: string;
3120
3133
  syncEvent: {
3121
- type: "session.next.step.ended.2";
3134
+ type: "step.ended.1";
3122
3135
  id: string;
3123
3136
  seq: number;
3124
3137
  aggregateID: string;
3125
3138
  data: {
3126
- timestamp: number;
3127
3139
  sessionID: string;
3128
3140
  assistantMessageID: string;
3129
3141
  finish: string;
@@ -3142,48 +3154,45 @@ export type SyncEventSessionNextStepEnded = {
3142
3154
  };
3143
3155
  };
3144
3156
  };
3145
- export type SyncEventSessionNextStepFailed = {
3157
+ export type SyncEventStepFailed = {
3146
3158
  type: "sync";
3147
3159
  id: string;
3148
3160
  syncEvent: {
3149
- type: "session.next.step.failed.2";
3161
+ type: "step.failed.1";
3150
3162
  id: string;
3151
3163
  seq: number;
3152
3164
  aggregateID: string;
3153
3165
  data: {
3154
- timestamp: number;
3155
3166
  sessionID: string;
3156
3167
  assistantMessageID: string;
3157
3168
  error: SessionErrorUnknown;
3158
3169
  };
3159
3170
  };
3160
3171
  };
3161
- export type SyncEventSessionNextTextStarted = {
3172
+ export type SyncEventTextStarted = {
3162
3173
  type: "sync";
3163
3174
  id: string;
3164
3175
  syncEvent: {
3165
- type: "session.next.text.started.1";
3176
+ type: "text.started.1";
3166
3177
  id: string;
3167
3178
  seq: number;
3168
3179
  aggregateID: string;
3169
3180
  data: {
3170
- timestamp: number;
3171
3181
  sessionID: string;
3172
3182
  assistantMessageID: string;
3173
3183
  textID: string;
3174
3184
  };
3175
3185
  };
3176
3186
  };
3177
- export type SyncEventSessionNextTextEnded = {
3187
+ export type SyncEventTextEnded = {
3178
3188
  type: "sync";
3179
3189
  id: string;
3180
3190
  syncEvent: {
3181
- type: "session.next.text.ended.1";
3191
+ type: "text.ended.1";
3182
3192
  id: string;
3183
3193
  seq: number;
3184
3194
  aggregateID: string;
3185
3195
  data: {
3186
- timestamp: number;
3187
3196
  sessionID: string;
3188
3197
  assistantMessageID: string;
3189
3198
  textID: string;
@@ -3191,16 +3200,15 @@ export type SyncEventSessionNextTextEnded = {
3191
3200
  };
3192
3201
  };
3193
3202
  };
3194
- export type SyncEventSessionNextReasoningStarted = {
3203
+ export type SyncEventReasoningStarted = {
3195
3204
  type: "sync";
3196
3205
  id: string;
3197
3206
  syncEvent: {
3198
- type: "session.next.reasoning.started.1";
3207
+ type: "reasoning.started.1";
3199
3208
  id: string;
3200
3209
  seq: number;
3201
3210
  aggregateID: string;
3202
3211
  data: {
3203
- timestamp: number;
3204
3212
  sessionID: string;
3205
3213
  assistantMessageID: string;
3206
3214
  reasoningID: string;
@@ -3208,16 +3216,15 @@ export type SyncEventSessionNextReasoningStarted = {
3208
3216
  };
3209
3217
  };
3210
3218
  };
3211
- export type SyncEventSessionNextReasoningEnded = {
3219
+ export type SyncEventReasoningEnded = {
3212
3220
  type: "sync";
3213
3221
  id: string;
3214
3222
  syncEvent: {
3215
- type: "session.next.reasoning.ended.1";
3223
+ type: "reasoning.ended.1";
3216
3224
  id: string;
3217
3225
  seq: number;
3218
3226
  aggregateID: string;
3219
3227
  data: {
3220
- timestamp: number;
3221
3228
  sessionID: string;
3222
3229
  assistantMessageID: string;
3223
3230
  reasoningID: string;
@@ -3226,16 +3233,15 @@ export type SyncEventSessionNextReasoningEnded = {
3226
3233
  };
3227
3234
  };
3228
3235
  };
3229
- export type SyncEventSessionNextToolInputStarted = {
3236
+ export type SyncEventToolInputStarted = {
3230
3237
  type: "sync";
3231
3238
  id: string;
3232
3239
  syncEvent: {
3233
- type: "session.next.tool.input.started.1";
3240
+ type: "tool.input.started.1";
3234
3241
  id: string;
3235
3242
  seq: number;
3236
3243
  aggregateID: string;
3237
3244
  data: {
3238
- timestamp: number;
3239
3245
  sessionID: string;
3240
3246
  assistantMessageID: string;
3241
3247
  callID: string;
@@ -3243,16 +3249,15 @@ export type SyncEventSessionNextToolInputStarted = {
3243
3249
  };
3244
3250
  };
3245
3251
  };
3246
- export type SyncEventSessionNextToolInputEnded = {
3252
+ export type SyncEventToolInputEnded = {
3247
3253
  type: "sync";
3248
3254
  id: string;
3249
3255
  syncEvent: {
3250
- type: "session.next.tool.input.ended.1";
3256
+ type: "tool.input.ended.1";
3251
3257
  id: string;
3252
3258
  seq: number;
3253
3259
  aggregateID: string;
3254
3260
  data: {
3255
- timestamp: number;
3256
3261
  sessionID: string;
3257
3262
  assistantMessageID: string;
3258
3263
  callID: string;
@@ -3260,16 +3265,15 @@ export type SyncEventSessionNextToolInputEnded = {
3260
3265
  };
3261
3266
  };
3262
3267
  };
3263
- export type SyncEventSessionNextToolCalled = {
3268
+ export type SyncEventToolCalled = {
3264
3269
  type: "sync";
3265
3270
  id: string;
3266
3271
  syncEvent: {
3267
- type: "session.next.tool.called.1";
3272
+ type: "tool.called.1";
3268
3273
  id: string;
3269
3274
  seq: number;
3270
3275
  aggregateID: string;
3271
3276
  data: {
3272
- timestamp: number;
3273
3277
  sessionID: string;
3274
3278
  assistantMessageID: string;
3275
3279
  callID: string;
@@ -3284,16 +3288,15 @@ export type SyncEventSessionNextToolCalled = {
3284
3288
  };
3285
3289
  };
3286
3290
  };
3287
- export type SyncEventSessionNextToolProgress = {
3291
+ export type SyncEventToolProgress = {
3288
3292
  type: "sync";
3289
3293
  id: string;
3290
3294
  syncEvent: {
3291
- type: "session.next.tool.progress.1";
3295
+ type: "tool.progress.1";
3292
3296
  id: string;
3293
3297
  seq: number;
3294
3298
  aggregateID: string;
3295
3299
  data: {
3296
- timestamp: number;
3297
3300
  sessionID: string;
3298
3301
  assistantMessageID: string;
3299
3302
  callID: string;
@@ -3304,16 +3307,15 @@ export type SyncEventSessionNextToolProgress = {
3304
3307
  };
3305
3308
  };
3306
3309
  };
3307
- export type SyncEventSessionNextToolSuccess = {
3310
+ export type SyncEventToolSuccess = {
3308
3311
  type: "sync";
3309
3312
  id: string;
3310
3313
  syncEvent: {
3311
- type: "session.next.tool.success.1";
3314
+ type: "tool.success.1";
3312
3315
  id: string;
3313
3316
  seq: number;
3314
3317
  aggregateID: string;
3315
3318
  data: {
3316
- timestamp: number;
3317
3319
  sessionID: string;
3318
3320
  assistantMessageID: string;
3319
3321
  callID: string;
@@ -3330,16 +3332,15 @@ export type SyncEventSessionNextToolSuccess = {
3330
3332
  };
3331
3333
  };
3332
3334
  };
3333
- export type SyncEventSessionNextToolFailed = {
3335
+ export type SyncEventToolFailed = {
3334
3336
  type: "sync";
3335
3337
  id: string;
3336
3338
  syncEvent: {
3337
- type: "session.next.tool.failed.1";
3339
+ type: "tool.failed.1";
3338
3340
  id: string;
3339
3341
  seq: number;
3340
3342
  aggregateID: string;
3341
3343
  data: {
3342
- timestamp: number;
3343
3344
  sessionID: string;
3344
3345
  assistantMessageID: string;
3345
3346
  callID: string;
@@ -3352,95 +3353,87 @@ export type SyncEventSessionNextToolFailed = {
3352
3353
  };
3353
3354
  };
3354
3355
  };
3355
- export type SyncEventSessionNextRetried = {
3356
+ export type SyncEventRetried = {
3356
3357
  type: "sync";
3357
3358
  id: string;
3358
3359
  syncEvent: {
3359
- type: "session.next.retried.1";
3360
+ type: "retried.1";
3360
3361
  id: string;
3361
3362
  seq: number;
3362
3363
  aggregateID: string;
3363
3364
  data: {
3364
- timestamp: number;
3365
3365
  sessionID: string;
3366
3366
  attempt: number;
3367
- error: SessionNextRetryError;
3367
+ error: SessionRetryError;
3368
3368
  };
3369
3369
  };
3370
3370
  };
3371
- export type SyncEventSessionNextCompactionStarted = {
3371
+ export type SyncEventCompactionStarted = {
3372
3372
  type: "sync";
3373
3373
  id: string;
3374
3374
  syncEvent: {
3375
- type: "session.next.compaction.started.1";
3375
+ type: "compaction.started.1";
3376
3376
  id: string;
3377
3377
  seq: number;
3378
3378
  aggregateID: string;
3379
3379
  data: {
3380
- timestamp: number;
3381
3380
  sessionID: string;
3382
- messageID: string;
3383
3381
  reason: "auto" | "manual";
3384
3382
  };
3385
3383
  };
3386
3384
  };
3387
- export type SyncEventSessionNextCompactionEnded = {
3385
+ export type SyncEventCompactionEnded = {
3388
3386
  type: "sync";
3389
3387
  id: string;
3390
3388
  syncEvent: {
3391
- type: "session.next.compaction.ended.1";
3389
+ type: "compaction.ended.1";
3392
3390
  id: string;
3393
3391
  seq: number;
3394
3392
  aggregateID: string;
3395
3393
  data: {
3396
- timestamp: number;
3397
3394
  sessionID: string;
3398
- messageID: string;
3399
3395
  reason: "auto" | "manual";
3400
3396
  text: string;
3401
3397
  recent: string;
3402
3398
  };
3403
3399
  };
3404
3400
  };
3405
- export type SyncEventSessionNextRevertStaged = {
3401
+ export type SyncEventRevertStaged = {
3406
3402
  type: "sync";
3407
3403
  id: string;
3408
3404
  syncEvent: {
3409
- type: "session.next.revert.staged.1";
3405
+ type: "revert.staged.1";
3410
3406
  id: string;
3411
3407
  seq: number;
3412
3408
  aggregateID: string;
3413
3409
  data: {
3414
- timestamp: number;
3415
3410
  sessionID: string;
3416
3411
  revert: RevertState;
3417
3412
  };
3418
3413
  };
3419
3414
  };
3420
- export type SyncEventSessionNextRevertCleared = {
3415
+ export type SyncEventRevertCleared = {
3421
3416
  type: "sync";
3422
3417
  id: string;
3423
3418
  syncEvent: {
3424
- type: "session.next.revert.cleared.1";
3419
+ type: "revert.cleared.1";
3425
3420
  id: string;
3426
3421
  seq: number;
3427
3422
  aggregateID: string;
3428
3423
  data: {
3429
- timestamp: number;
3430
3424
  sessionID: string;
3431
3425
  };
3432
3426
  };
3433
3427
  };
3434
- export type SyncEventSessionNextRevertCommitted = {
3428
+ export type SyncEventRevertCommitted = {
3435
3429
  type: "sync";
3436
3430
  id: string;
3437
3431
  syncEvent: {
3438
- type: "session.next.revert.committed.1";
3432
+ type: "revert.committed.1";
3439
3433
  id: string;
3440
3434
  seq: number;
3441
3435
  aggregateID: string;
3442
3436
  data: {
3443
- timestamp: number;
3444
3437
  sessionID: string;
3445
3438
  messageID: string;
3446
3439
  };
@@ -3560,7 +3553,7 @@ export type SessionInputAdmitted = {
3560
3553
  timeCreated: number;
3561
3554
  promotedSeq?: number;
3562
3555
  };
3563
- export type SessionMessageAgentSwitched = {
3556
+ export type SessionMessageAgentSelected = {
3564
3557
  id: string;
3565
3558
  metadata?: {
3566
3559
  [key: string]: unknown;
@@ -3571,7 +3564,7 @@ export type SessionMessageAgentSwitched = {
3571
3564
  type: "agent-switched";
3572
3565
  agent: string;
3573
3566
  };
3574
- export type SessionMessageModelSwitched = {
3567
+ export type SessionMessageModelSelected = {
3575
3568
  id: string;
3576
3569
  metadata?: {
3577
3570
  [key: string]: unknown;
@@ -3760,18 +3753,19 @@ export type SessionMessageCompaction = {
3760
3753
  created: number;
3761
3754
  };
3762
3755
  };
3763
- export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
3756
+ export type SessionMessage = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
3764
3757
  export type SessionContextEntryKey = string;
3765
3758
  export type SessionContextEntryInfo = {
3766
3759
  key: SessionContextEntryKey;
3767
3760
  value: unknown;
3768
3761
  };
3769
- export type SessionNextAgentSwitched = {
3762
+ export type AgentSelected = {
3770
3763
  id: string;
3764
+ created: number;
3771
3765
  metadata?: {
3772
3766
  [key: string]: unknown;
3773
3767
  };
3774
- type: "session.next.agent.switched";
3768
+ type: "agent.selected";
3775
3769
  durable: {
3776
3770
  aggregateID: string;
3777
3771
  seq: number;
@@ -3779,18 +3773,17 @@ export type SessionNextAgentSwitched = {
3779
3773
  };
3780
3774
  location?: LocationRef;
3781
3775
  data: {
3782
- timestamp: number;
3783
3776
  sessionID: string;
3784
- messageID: string;
3785
3777
  agent: string;
3786
3778
  };
3787
3779
  };
3788
- export type SessionNextModelSwitched = {
3780
+ export type ModelSelected = {
3789
3781
  id: string;
3782
+ created: number;
3790
3783
  metadata?: {
3791
3784
  [key: string]: unknown;
3792
3785
  };
3793
- type: "session.next.model.switched";
3786
+ type: "model.selected";
3794
3787
  durable: {
3795
3788
  aggregateID: string;
3796
3789
  seq: number;
@@ -3798,18 +3791,17 @@ export type SessionNextModelSwitched = {
3798
3791
  };
3799
3792
  location?: LocationRef;
3800
3793
  data: {
3801
- timestamp: number;
3802
3794
  sessionID: string;
3803
- messageID: string;
3804
3795
  model: ModelRef;
3805
3796
  };
3806
3797
  };
3807
- export type SessionNextMoved = {
3798
+ export type SessionMoved = {
3808
3799
  id: string;
3800
+ created: number;
3809
3801
  metadata?: {
3810
3802
  [key: string]: unknown;
3811
3803
  };
3812
- type: "session.next.moved";
3804
+ type: "session.moved";
3813
3805
  durable: {
3814
3806
  aggregateID: string;
3815
3807
  seq: number;
@@ -3817,55 +3809,18 @@ export type SessionNextMoved = {
3817
3809
  };
3818
3810
  location?: LocationRef;
3819
3811
  data: {
3820
- timestamp: number;
3821
3812
  sessionID: string;
3822
3813
  location: LocationRef;
3823
- subdirectory?: string;
3814
+ subpath?: string;
3824
3815
  };
3825
3816
  };
3826
- export type SessionNextRenamed = {
3827
- id: string;
3828
- metadata?: {
3829
- [key: string]: unknown;
3830
- };
3831
- type: "session.next.renamed";
3832
- durable: {
3833
- aggregateID: string;
3834
- seq: number;
3835
- version: number;
3836
- };
3837
- location?: LocationRef;
3838
- data: {
3839
- timestamp: number;
3840
- sessionID: string;
3841
- title: string;
3842
- };
3843
- };
3844
- export type SessionNextForked = {
3845
- id: string;
3846
- metadata?: {
3847
- [key: string]: unknown;
3848
- };
3849
- type: "session.next.forked";
3850
- durable: {
3851
- aggregateID: string;
3852
- seq: number;
3853
- version: number;
3854
- };
3855
- location?: LocationRef;
3856
- data: {
3857
- timestamp: number;
3858
- sessionID: string;
3859
- parentID: string;
3860
- messageID?: string;
3861
- };
3862
- };
3863
- export type SessionNextPrompted = {
3817
+ export type PromptPromoted = {
3864
3818
  id: string;
3819
+ created: number;
3865
3820
  metadata?: {
3866
3821
  [key: string]: unknown;
3867
3822
  };
3868
- type: "session.next.prompted";
3823
+ type: "prompt.promoted";
3869
3824
  durable: {
3870
3825
  aggregateID: string;
3871
3826
  seq: number;
@@ -3873,19 +3828,17 @@ export type SessionNextPrompted = {
3873
3828
  };
3874
3829
  location?: LocationRef;
3875
3830
  data: {
3876
- timestamp: number;
3877
3831
  sessionID: string;
3878
- messageID: string;
3879
- prompt: Prompt;
3880
- delivery: "steer" | "queue";
3832
+ inputID: string;
3881
3833
  };
3882
3834
  };
3883
- export type SessionNextPromptAdmitted = {
3835
+ export type PromptAdmitted = {
3884
3836
  id: string;
3837
+ created: number;
3885
3838
  metadata?: {
3886
3839
  [key: string]: unknown;
3887
3840
  };
3888
- type: "session.next.prompt.admitted";
3841
+ type: "prompt.admitted";
3889
3842
  durable: {
3890
3843
  aggregateID: string;
3891
3844
  seq: number;
@@ -3893,38 +3846,19 @@ export type SessionNextPromptAdmitted = {
3893
3846
  };
3894
3847
  location?: LocationRef;
3895
3848
  data: {
3896
- timestamp: number;
3897
3849
  sessionID: string;
3898
- messageID: string;
3850
+ inputID: string;
3899
3851
  prompt: Prompt;
3900
3852
  delivery: "steer" | "queue";
3901
3853
  };
3902
3854
  };
3903
- export type SessionNextContextUpdated = {
3904
- id: string;
3905
- metadata?: {
3906
- [key: string]: unknown;
3907
- };
3908
- type: "session.next.context.updated";
3909
- durable: {
3910
- aggregateID: string;
3911
- seq: number;
3912
- version: number;
3913
- };
3914
- location?: LocationRef;
3915
- data: {
3916
- timestamp: number;
3917
- sessionID: string;
3918
- messageID: string;
3919
- text: string;
3920
- };
3921
- };
3922
- export type SessionNextSynthetic = {
3855
+ export type SessionContextUpdated = {
3923
3856
  id: string;
3857
+ created: number;
3924
3858
  metadata?: {
3925
3859
  [key: string]: unknown;
3926
3860
  };
3927
- type: "session.next.synthetic";
3861
+ type: "session.context.updated";
3928
3862
  durable: {
3929
3863
  aggregateID: string;
3930
3864
  seq: number;
@@ -3932,22 +3866,17 @@ export type SessionNextSynthetic = {
3932
3866
  };
3933
3867
  location?: LocationRef;
3934
3868
  data: {
3935
- timestamp: number;
3936
3869
  sessionID: string;
3937
- messageID: string;
3938
3870
  text: string;
3939
- description?: string;
3940
- metadata?: {
3941
- [key: string]: unknown;
3942
- };
3943
3871
  };
3944
3872
  };
3945
- export type SessionNextSkillActivated = {
3873
+ export type SkillActivated = {
3946
3874
  id: string;
3875
+ created: number;
3947
3876
  metadata?: {
3948
3877
  [key: string]: unknown;
3949
3878
  };
3950
- type: "session.next.skill.activated";
3879
+ type: "skill.activated";
3951
3880
  durable: {
3952
3881
  aggregateID: string;
3953
3882
  seq: number;
@@ -3955,19 +3884,18 @@ export type SessionNextSkillActivated = {
3955
3884
  };
3956
3885
  location?: LocationRef;
3957
3886
  data: {
3958
- timestamp: number;
3959
3887
  sessionID: string;
3960
- messageID: string;
3961
3888
  name: string;
3962
3889
  text: string;
3963
3890
  };
3964
3891
  };
3965
- export type SessionNextShellStarted = {
3892
+ export type ShellStarted = {
3966
3893
  id: string;
3894
+ created: number;
3967
3895
  metadata?: {
3968
3896
  [key: string]: unknown;
3969
3897
  };
3970
- type: "session.next.shell.started";
3898
+ type: "shell.started";
3971
3899
  durable: {
3972
3900
  aggregateID: string;
3973
3901
  seq: number;
@@ -3975,19 +3903,18 @@ export type SessionNextShellStarted = {
3975
3903
  };
3976
3904
  location?: LocationRef;
3977
3905
  data: {
3978
- timestamp: number;
3979
3906
  sessionID: string;
3980
- messageID: string;
3981
3907
  callID: string;
3982
3908
  command: string;
3983
3909
  };
3984
3910
  };
3985
- export type SessionNextShellEnded = {
3911
+ export type ShellEnded = {
3986
3912
  id: string;
3913
+ created: number;
3987
3914
  metadata?: {
3988
3915
  [key: string]: unknown;
3989
3916
  };
3990
- type: "session.next.shell.ended";
3917
+ type: "shell.ended";
3991
3918
  durable: {
3992
3919
  aggregateID: string;
3993
3920
  seq: number;
@@ -3995,18 +3922,18 @@ export type SessionNextShellEnded = {
3995
3922
  };
3996
3923
  location?: LocationRef;
3997
3924
  data: {
3998
- timestamp: number;
3999
3925
  sessionID: string;
4000
3926
  callID: string;
4001
3927
  output: string;
4002
3928
  };
4003
3929
  };
4004
- export type SessionNextStepStarted = {
3930
+ export type StepStarted = {
4005
3931
  id: string;
3932
+ created: number;
4006
3933
  metadata?: {
4007
3934
  [key: string]: unknown;
4008
3935
  };
4009
- type: "session.next.step.started";
3936
+ type: "step.started";
4010
3937
  durable: {
4011
3938
  aggregateID: string;
4012
3939
  seq: number;
@@ -4014,7 +3941,6 @@ export type SessionNextStepStarted = {
4014
3941
  };
4015
3942
  location?: LocationRef;
4016
3943
  data: {
4017
- timestamp: number;
4018
3944
  sessionID: string;
4019
3945
  assistantMessageID: string;
4020
3946
  agent: string;
@@ -4022,12 +3948,13 @@ export type SessionNextStepStarted = {
4022
3948
  snapshot?: string;
4023
3949
  };
4024
3950
  };
4025
- export type SessionNextStepEnded = {
3951
+ export type StepEnded = {
4026
3952
  id: string;
3953
+ created: number;
4027
3954
  metadata?: {
4028
3955
  [key: string]: unknown;
4029
3956
  };
4030
- type: "session.next.step.ended";
3957
+ type: "step.ended";
4031
3958
  durable: {
4032
3959
  aggregateID: string;
4033
3960
  seq: number;
@@ -4035,7 +3962,6 @@ export type SessionNextStepEnded = {
4035
3962
  };
4036
3963
  location?: LocationRef;
4037
3964
  data: {
4038
- timestamp: number;
4039
3965
  sessionID: string;
4040
3966
  assistantMessageID: string;
4041
3967
  finish: string;
@@ -4053,12 +3979,13 @@ export type SessionNextStepEnded = {
4053
3979
  files?: Array<string>;
4054
3980
  };
4055
3981
  };
4056
- export type SessionNextStepFailed = {
3982
+ export type StepFailed = {
4057
3983
  id: string;
3984
+ created: number;
4058
3985
  metadata?: {
4059
3986
  [key: string]: unknown;
4060
3987
  };
4061
- type: "session.next.step.failed";
3988
+ type: "step.failed";
4062
3989
  durable: {
4063
3990
  aggregateID: string;
4064
3991
  seq: number;
@@ -4066,18 +3993,18 @@ export type SessionNextStepFailed = {
4066
3993
  };
4067
3994
  location?: LocationRef;
4068
3995
  data: {
4069
- timestamp: number;
4070
3996
  sessionID: string;
4071
3997
  assistantMessageID: string;
4072
3998
  error: SessionErrorUnknown;
4073
3999
  };
4074
4000
  };
4075
- export type SessionNextTextStarted = {
4001
+ export type TextStarted = {
4076
4002
  id: string;
4003
+ created: number;
4077
4004
  metadata?: {
4078
4005
  [key: string]: unknown;
4079
4006
  };
4080
- type: "session.next.text.started";
4007
+ type: "text.started";
4081
4008
  durable: {
4082
4009
  aggregateID: string;
4083
4010
  seq: number;
@@ -4085,18 +4012,18 @@ export type SessionNextTextStarted = {
4085
4012
  };
4086
4013
  location?: LocationRef;
4087
4014
  data: {
4088
- timestamp: number;
4089
4015
  sessionID: string;
4090
4016
  assistantMessageID: string;
4091
4017
  textID: string;
4092
4018
  };
4093
4019
  };
4094
- export type SessionNextTextEnded = {
4020
+ export type TextEnded = {
4095
4021
  id: string;
4022
+ created: number;
4096
4023
  metadata?: {
4097
4024
  [key: string]: unknown;
4098
4025
  };
4099
- type: "session.next.text.ended";
4026
+ type: "text.ended";
4100
4027
  durable: {
4101
4028
  aggregateID: string;
4102
4029
  seq: number;
@@ -4104,19 +4031,19 @@ export type SessionNextTextEnded = {
4104
4031
  };
4105
4032
  location?: LocationRef;
4106
4033
  data: {
4107
- timestamp: number;
4108
4034
  sessionID: string;
4109
4035
  assistantMessageID: string;
4110
4036
  textID: string;
4111
4037
  text: string;
4112
4038
  };
4113
4039
  };
4114
- export type SessionNextReasoningStarted = {
4040
+ export type ReasoningStarted = {
4115
4041
  id: string;
4042
+ created: number;
4116
4043
  metadata?: {
4117
4044
  [key: string]: unknown;
4118
4045
  };
4119
- type: "session.next.reasoning.started";
4046
+ type: "reasoning.started";
4120
4047
  durable: {
4121
4048
  aggregateID: string;
4122
4049
  seq: number;
@@ -4124,19 +4051,19 @@ export type SessionNextReasoningStarted = {
4124
4051
  };
4125
4052
  location?: LocationRef;
4126
4053
  data: {
4127
- timestamp: number;
4128
4054
  sessionID: string;
4129
4055
  assistantMessageID: string;
4130
4056
  reasoningID: string;
4131
4057
  providerMetadata?: LlmProviderMetadata;
4132
4058
  };
4133
4059
  };
4134
- export type SessionNextReasoningEnded = {
4060
+ export type ReasoningEnded = {
4135
4061
  id: string;
4062
+ created: number;
4136
4063
  metadata?: {
4137
4064
  [key: string]: unknown;
4138
4065
  };
4139
- type: "session.next.reasoning.ended";
4066
+ type: "reasoning.ended";
4140
4067
  durable: {
4141
4068
  aggregateID: string;
4142
4069
  seq: number;
@@ -4144,7 +4071,6 @@ export type SessionNextReasoningEnded = {
4144
4071
  };
4145
4072
  location?: LocationRef;
4146
4073
  data: {
4147
- timestamp: number;
4148
4074
  sessionID: string;
4149
4075
  assistantMessageID: string;
4150
4076
  reasoningID: string;
@@ -4152,12 +4078,13 @@ export type SessionNextReasoningEnded = {
4152
4078
  providerMetadata?: LlmProviderMetadata;
4153
4079
  };
4154
4080
  };
4155
- export type SessionNextToolInputStarted = {
4081
+ export type ToolInputStarted = {
4156
4082
  id: string;
4083
+ created: number;
4157
4084
  metadata?: {
4158
4085
  [key: string]: unknown;
4159
4086
  };
4160
- type: "session.next.tool.input.started";
4087
+ type: "tool.input.started";
4161
4088
  durable: {
4162
4089
  aggregateID: string;
4163
4090
  seq: number;
@@ -4165,19 +4092,19 @@ export type SessionNextToolInputStarted = {
4165
4092
  };
4166
4093
  location?: LocationRef;
4167
4094
  data: {
4168
- timestamp: number;
4169
4095
  sessionID: string;
4170
4096
  assistantMessageID: string;
4171
4097
  callID: string;
4172
4098
  name: string;
4173
4099
  };
4174
4100
  };
4175
- export type SessionNextToolInputEnded = {
4101
+ export type ToolInputEnded = {
4176
4102
  id: string;
4103
+ created: number;
4177
4104
  metadata?: {
4178
4105
  [key: string]: unknown;
4179
4106
  };
4180
- type: "session.next.tool.input.ended";
4107
+ type: "tool.input.ended";
4181
4108
  durable: {
4182
4109
  aggregateID: string;
4183
4110
  seq: number;
@@ -4185,19 +4112,19 @@ export type SessionNextToolInputEnded = {
4185
4112
  };
4186
4113
  location?: LocationRef;
4187
4114
  data: {
4188
- timestamp: number;
4189
4115
  sessionID: string;
4190
4116
  assistantMessageID: string;
4191
4117
  callID: string;
4192
4118
  text: string;
4193
4119
  };
4194
4120
  };
4195
- export type SessionNextToolCalled = {
4121
+ export type ToolCalled = {
4196
4122
  id: string;
4123
+ created: number;
4197
4124
  metadata?: {
4198
4125
  [key: string]: unknown;
4199
4126
  };
4200
- type: "session.next.tool.called";
4127
+ type: "tool.called";
4201
4128
  durable: {
4202
4129
  aggregateID: string;
4203
4130
  seq: number;
@@ -4205,7 +4132,6 @@ export type SessionNextToolCalled = {
4205
4132
  };
4206
4133
  location?: LocationRef;
4207
4134
  data: {
4208
- timestamp: number;
4209
4135
  sessionID: string;
4210
4136
  assistantMessageID: string;
4211
4137
  callID: string;
@@ -4219,12 +4145,13 @@ export type SessionNextToolCalled = {
4219
4145
  };
4220
4146
  };
4221
4147
  };
4222
- export type SessionNextToolProgress = {
4148
+ export type ToolProgress = {
4223
4149
  id: string;
4150
+ created: number;
4224
4151
  metadata?: {
4225
4152
  [key: string]: unknown;
4226
4153
  };
4227
- type: "session.next.tool.progress";
4154
+ type: "tool.progress";
4228
4155
  durable: {
4229
4156
  aggregateID: string;
4230
4157
  seq: number;
@@ -4232,7 +4159,6 @@ export type SessionNextToolProgress = {
4232
4159
  };
4233
4160
  location?: LocationRef;
4234
4161
  data: {
4235
- timestamp: number;
4236
4162
  sessionID: string;
4237
4163
  assistantMessageID: string;
4238
4164
  callID: string;
@@ -4242,12 +4168,13 @@ export type SessionNextToolProgress = {
4242
4168
  content: Array<LlmToolContent>;
4243
4169
  };
4244
4170
  };
4245
- export type SessionNextToolSuccess = {
4171
+ export type ToolSuccess = {
4246
4172
  id: string;
4173
+ created: number;
4247
4174
  metadata?: {
4248
4175
  [key: string]: unknown;
4249
4176
  };
4250
- type: "session.next.tool.success";
4177
+ type: "tool.success";
4251
4178
  durable: {
4252
4179
  aggregateID: string;
4253
4180
  seq: number;
@@ -4255,7 +4182,6 @@ export type SessionNextToolSuccess = {
4255
4182
  };
4256
4183
  location?: LocationRef;
4257
4184
  data: {
4258
- timestamp: number;
4259
4185
  sessionID: string;
4260
4186
  assistantMessageID: string;
4261
4187
  callID: string;
@@ -4271,12 +4197,13 @@ export type SessionNextToolSuccess = {
4271
4197
  };
4272
4198
  };
4273
4199
  };
4274
- export type SessionNextToolFailed = {
4200
+ export type ToolFailed = {
4275
4201
  id: string;
4202
+ created: number;
4276
4203
  metadata?: {
4277
4204
  [key: string]: unknown;
4278
4205
  };
4279
- type: "session.next.tool.failed";
4206
+ type: "tool.failed";
4280
4207
  durable: {
4281
4208
  aggregateID: string;
4282
4209
  seq: number;
@@ -4284,7 +4211,6 @@ export type SessionNextToolFailed = {
4284
4211
  };
4285
4212
  location?: LocationRef;
4286
4213
  data: {
4287
- timestamp: number;
4288
4214
  sessionID: string;
4289
4215
  assistantMessageID: string;
4290
4216
  callID: string;
@@ -4296,31 +4222,13 @@ export type SessionNextToolFailed = {
4296
4222
  };
4297
4223
  };
4298
4224
  };
4299
- export type SessionNextRetried = {
4300
- id: string;
4301
- metadata?: {
4302
- [key: string]: unknown;
4303
- };
4304
- type: "session.next.retried";
4305
- durable: {
4306
- aggregateID: string;
4307
- seq: number;
4308
- version: number;
4309
- };
4310
- location?: LocationRef;
4311
- data: {
4312
- timestamp: number;
4313
- sessionID: string;
4314
- attempt: number;
4315
- error: SessionNextRetryError;
4316
- };
4317
- };
4318
- export type SessionNextCompactionStarted = {
4225
+ export type CompactionStarted = {
4319
4226
  id: string;
4227
+ created: number;
4320
4228
  metadata?: {
4321
4229
  [key: string]: unknown;
4322
4230
  };
4323
- type: "session.next.compaction.started";
4231
+ type: "compaction.started";
4324
4232
  durable: {
4325
4233
  aggregateID: string;
4326
4234
  seq: number;
@@ -4328,18 +4236,17 @@ export type SessionNextCompactionStarted = {
4328
4236
  };
4329
4237
  location?: LocationRef;
4330
4238
  data: {
4331
- timestamp: number;
4332
4239
  sessionID: string;
4333
- messageID: string;
4334
4240
  reason: "auto" | "manual";
4335
4241
  };
4336
4242
  };
4337
- export type SessionNextCompactionEnded = {
4243
+ export type CompactionEnded = {
4338
4244
  id: string;
4245
+ created: number;
4339
4246
  metadata?: {
4340
4247
  [key: string]: unknown;
4341
4248
  };
4342
- type: "session.next.compaction.ended";
4249
+ type: "compaction.ended";
4343
4250
  durable: {
4344
4251
  aggregateID: string;
4345
4252
  seq: number;
@@ -4347,20 +4254,19 @@ export type SessionNextCompactionEnded = {
4347
4254
  };
4348
4255
  location?: LocationRef;
4349
4256
  data: {
4350
- timestamp: number;
4351
4257
  sessionID: string;
4352
- messageID: string;
4353
4258
  reason: "auto" | "manual";
4354
4259
  text: string;
4355
4260
  recent: string;
4356
4261
  };
4357
4262
  };
4358
- export type SessionNextRevertStaged = {
4263
+ export type RevertStaged = {
4359
4264
  id: string;
4265
+ created: number;
4360
4266
  metadata?: {
4361
4267
  [key: string]: unknown;
4362
4268
  };
4363
- type: "session.next.revert.staged";
4269
+ type: "revert.staged";
4364
4270
  durable: {
4365
4271
  aggregateID: string;
4366
4272
  seq: number;
@@ -4368,17 +4274,17 @@ export type SessionNextRevertStaged = {
4368
4274
  };
4369
4275
  location?: LocationRef;
4370
4276
  data: {
4371
- timestamp: number;
4372
4277
  sessionID: string;
4373
4278
  revert: RevertState;
4374
4279
  };
4375
4280
  };
4376
- export type SessionNextRevertCleared = {
4281
+ export type RevertCleared = {
4377
4282
  id: string;
4283
+ created: number;
4378
4284
  metadata?: {
4379
4285
  [key: string]: unknown;
4380
4286
  };
4381
- type: "session.next.revert.cleared";
4287
+ type: "revert.cleared";
4382
4288
  durable: {
4383
4289
  aggregateID: string;
4384
4290
  seq: number;
@@ -4386,16 +4292,16 @@ export type SessionNextRevertCleared = {
4386
4292
  };
4387
4293
  location?: LocationRef;
4388
4294
  data: {
4389
- timestamp: number;
4390
4295
  sessionID: string;
4391
4296
  };
4392
4297
  };
4393
- export type SessionNextRevertCommitted = {
4298
+ export type RevertCommitted = {
4394
4299
  id: string;
4300
+ created: number;
4395
4301
  metadata?: {
4396
4302
  [key: string]: unknown;
4397
4303
  };
4398
- type: "session.next.revert.committed";
4304
+ type: "revert.committed";
4399
4305
  durable: {
4400
4306
  aggregateID: string;
4401
4307
  seq: number;
@@ -4403,7 +4309,6 @@ export type SessionNextRevertCommitted = {
4403
4309
  };
4404
4310
  location?: LocationRef;
4405
4311
  data: {
4406
- timestamp: number;
4407
4312
  sessionID: string;
4408
4313
  messageID: string;
4409
4314
  };
@@ -4685,6 +4590,7 @@ export type SkillV2Info = {
4685
4590
  };
4686
4591
  export type ModelsDevRefreshed = {
4687
4592
  id: string;
4593
+ created: number;
4688
4594
  metadata?: {
4689
4595
  [key: string]: unknown;
4690
4596
  };
@@ -4696,6 +4602,7 @@ export type ModelsDevRefreshed = {
4696
4602
  };
4697
4603
  export type IntegrationUpdated = {
4698
4604
  id: string;
4605
+ created: number;
4699
4606
  metadata?: {
4700
4607
  [key: string]: unknown;
4701
4608
  };
@@ -4707,6 +4614,7 @@ export type IntegrationUpdated = {
4707
4614
  };
4708
4615
  export type IntegrationConnectionUpdated = {
4709
4616
  id: string;
4617
+ created: number;
4710
4618
  metadata?: {
4711
4619
  [key: string]: unknown;
4712
4620
  };
@@ -4718,6 +4626,7 @@ export type IntegrationConnectionUpdated = {
4718
4626
  };
4719
4627
  export type CatalogUpdated = {
4720
4628
  id: string;
4629
+ created: number;
4721
4630
  metadata?: {
4722
4631
  [key: string]: unknown;
4723
4632
  };
@@ -4729,6 +4638,7 @@ export type CatalogUpdated = {
4729
4638
  };
4730
4639
  export type AgentUpdated = {
4731
4640
  id: string;
4641
+ created: number;
4732
4642
  metadata?: {
4733
4643
  [key: string]: unknown;
4734
4644
  };
@@ -4740,6 +4650,7 @@ export type AgentUpdated = {
4740
4650
  };
4741
4651
  export type SessionCreated = {
4742
4652
  id: string;
4653
+ created: number;
4743
4654
  metadata?: {
4744
4655
  [key: string]: unknown;
4745
4656
  };
@@ -4757,6 +4668,7 @@ export type SessionCreated = {
4757
4668
  };
4758
4669
  export type SessionUpdated = {
4759
4670
  id: string;
4671
+ created: number;
4760
4672
  metadata?: {
4761
4673
  [key: string]: unknown;
4762
4674
  };
@@ -4774,6 +4686,7 @@ export type SessionUpdated = {
4774
4686
  };
4775
4687
  export type SessionDeleted = {
4776
4688
  id: string;
4689
+ created: number;
4777
4690
  metadata?: {
4778
4691
  [key: string]: unknown;
4779
4692
  };
@@ -4791,6 +4704,7 @@ export type SessionDeleted = {
4791
4704
  };
4792
4705
  export type MessageUpdated = {
4793
4706
  id: string;
4707
+ created: number;
4794
4708
  metadata?: {
4795
4709
  [key: string]: unknown;
4796
4710
  };
@@ -4808,6 +4722,7 @@ export type MessageUpdated = {
4808
4722
  };
4809
4723
  export type MessageRemoved = {
4810
4724
  id: string;
4725
+ created: number;
4811
4726
  metadata?: {
4812
4727
  [key: string]: unknown;
4813
4728
  };
@@ -4825,6 +4740,7 @@ export type MessageRemoved = {
4825
4740
  };
4826
4741
  export type MessagePartUpdated = {
4827
4742
  id: string;
4743
+ created: number;
4828
4744
  metadata?: {
4829
4745
  [key: string]: unknown;
4830
4746
  };
@@ -4843,6 +4759,7 @@ export type MessagePartUpdated = {
4843
4759
  };
4844
4760
  export type MessagePartRemoved = {
4845
4761
  id: string;
4762
+ created: number;
4846
4763
  metadata?: {
4847
4764
  [key: string]: unknown;
4848
4765
  };
@@ -4859,81 +4776,81 @@ export type MessagePartRemoved = {
4859
4776
  partID: string;
4860
4777
  };
4861
4778
  };
4862
- export type SessionNextExecutionSettled = {
4779
+ export type ExecutionSettled = {
4863
4780
  id: string;
4781
+ created: number;
4864
4782
  metadata?: {
4865
4783
  [key: string]: unknown;
4866
4784
  };
4867
- type: "session.next.execution.settled";
4785
+ type: "execution.settled";
4868
4786
  location?: LocationRef;
4869
4787
  data: {
4870
- timestamp: number;
4871
4788
  sessionID: string;
4872
4789
  outcome: "success" | "failure" | "interrupted";
4873
4790
  error?: SessionErrorUnknown;
4874
4791
  };
4875
4792
  };
4876
- export type SessionNextTextDelta = {
4793
+ export type TextDelta = {
4877
4794
  id: string;
4795
+ created: number;
4878
4796
  metadata?: {
4879
4797
  [key: string]: unknown;
4880
4798
  };
4881
- type: "session.next.text.delta";
4799
+ type: "text.delta";
4882
4800
  location?: LocationRef;
4883
4801
  data: {
4884
- timestamp: number;
4885
4802
  sessionID: string;
4886
4803
  assistantMessageID: string;
4887
4804
  textID: string;
4888
4805
  delta: string;
4889
4806
  };
4890
4807
  };
4891
- export type SessionNextReasoningDelta = {
4808
+ export type ReasoningDelta = {
4892
4809
  id: string;
4810
+ created: number;
4893
4811
  metadata?: {
4894
4812
  [key: string]: unknown;
4895
4813
  };
4896
- type: "session.next.reasoning.delta";
4814
+ type: "reasoning.delta";
4897
4815
  location?: LocationRef;
4898
4816
  data: {
4899
- timestamp: number;
4900
4817
  sessionID: string;
4901
4818
  assistantMessageID: string;
4902
4819
  reasoningID: string;
4903
4820
  delta: string;
4904
4821
  };
4905
4822
  };
4906
- export type SessionNextToolInputDelta = {
4823
+ export type ToolInputDelta = {
4907
4824
  id: string;
4825
+ created: number;
4908
4826
  metadata?: {
4909
4827
  [key: string]: unknown;
4910
4828
  };
4911
- type: "session.next.tool.input.delta";
4829
+ type: "tool.input.delta";
4912
4830
  location?: LocationRef;
4913
4831
  data: {
4914
- timestamp: number;
4915
4832
  sessionID: string;
4916
4833
  assistantMessageID: string;
4917
4834
  callID: string;
4918
4835
  delta: string;
4919
4836
  };
4920
4837
  };
4921
- export type SessionNextCompactionDelta = {
4838
+ export type CompactionDelta = {
4922
4839
  id: string;
4840
+ created: number;
4923
4841
  metadata?: {
4924
4842
  [key: string]: unknown;
4925
4843
  };
4926
- type: "session.next.compaction.delta";
4844
+ type: "compaction.delta";
4927
4845
  location?: LocationRef;
4928
4846
  data: {
4929
- timestamp: number;
4930
4847
  sessionID: string;
4931
- messageID: string;
4932
4848
  text: string;
4933
4849
  };
4934
4850
  };
4935
4851
  export type MessagePartDelta = {
4936
4852
  id: string;
4853
+ created: number;
4937
4854
  metadata?: {
4938
4855
  [key: string]: unknown;
4939
4856
  };
@@ -4949,6 +4866,7 @@ export type MessagePartDelta = {
4949
4866
  };
4950
4867
  export type SessionDiff = {
4951
4868
  id: string;
4869
+ created: number;
4952
4870
  metadata?: {
4953
4871
  [key: string]: unknown;
4954
4872
  };
@@ -4961,6 +4879,7 @@ export type SessionDiff = {
4961
4879
  };
4962
4880
  export type SessionError = {
4963
4881
  id: string;
4882
+ created: number;
4964
4883
  metadata?: {
4965
4884
  [key: string]: unknown;
4966
4885
  };
@@ -4973,6 +4892,7 @@ export type SessionError = {
4973
4892
  };
4974
4893
  export type InstallationUpdated = {
4975
4894
  id: string;
4895
+ created: number;
4976
4896
  metadata?: {
4977
4897
  [key: string]: unknown;
4978
4898
  };
@@ -4984,6 +4904,7 @@ export type InstallationUpdated = {
4984
4904
  };
4985
4905
  export type InstallationUpdateAvailable = {
4986
4906
  id: string;
4907
+ created: number;
4987
4908
  metadata?: {
4988
4909
  [key: string]: unknown;
4989
4910
  };
@@ -4995,6 +4916,7 @@ export type InstallationUpdateAvailable = {
4995
4916
  };
4996
4917
  export type FileEdited = {
4997
4918
  id: string;
4919
+ created: number;
4998
4920
  metadata?: {
4999
4921
  [key: string]: unknown;
5000
4922
  };
@@ -5006,6 +4928,7 @@ export type FileEdited = {
5006
4928
  };
5007
4929
  export type ReferenceUpdated = {
5008
4930
  id: string;
4931
+ created: number;
5009
4932
  metadata?: {
5010
4933
  [key: string]: unknown;
5011
4934
  };
@@ -5017,6 +4940,7 @@ export type ReferenceUpdated = {
5017
4940
  };
5018
4941
  export type PermissionV2Asked = {
5019
4942
  id: string;
4943
+ created: number;
5020
4944
  metadata?: {
5021
4945
  [key: string]: unknown;
5022
4946
  };
@@ -5036,6 +4960,7 @@ export type PermissionV2Asked = {
5036
4960
  };
5037
4961
  export type PermissionV2Replied = {
5038
4962
  id: string;
4963
+ created: number;
5039
4964
  metadata?: {
5040
4965
  [key: string]: unknown;
5041
4966
  };
@@ -5049,6 +4974,7 @@ export type PermissionV2Replied = {
5049
4974
  };
5050
4975
  export type PluginAdded = {
5051
4976
  id: string;
4977
+ created: number;
5052
4978
  metadata?: {
5053
4979
  [key: string]: unknown;
5054
4980
  };
@@ -5060,6 +4986,7 @@ export type PluginAdded = {
5060
4986
  };
5061
4987
  export type ProjectDirectoriesUpdated = {
5062
4988
  id: string;
4989
+ created: number;
5063
4990
  metadata?: {
5064
4991
  [key: string]: unknown;
5065
4992
  };
@@ -5071,6 +4998,7 @@ export type ProjectDirectoriesUpdated = {
5071
4998
  };
5072
4999
  export type CommandUpdated = {
5073
5000
  id: string;
5001
+ created: number;
5074
5002
  metadata?: {
5075
5003
  [key: string]: unknown;
5076
5004
  };
@@ -5082,6 +5010,7 @@ export type CommandUpdated = {
5082
5010
  };
5083
5011
  export type SkillUpdated = {
5084
5012
  id: string;
5013
+ created: number;
5085
5014
  metadata?: {
5086
5015
  [key: string]: unknown;
5087
5016
  };
@@ -5093,6 +5022,7 @@ export type SkillUpdated = {
5093
5022
  };
5094
5023
  export type FileWatcherUpdated = {
5095
5024
  id: string;
5025
+ created: number;
5096
5026
  metadata?: {
5097
5027
  [key: string]: unknown;
5098
5028
  };
@@ -5105,6 +5035,7 @@ export type FileWatcherUpdated = {
5105
5035
  };
5106
5036
  export type PtyCreated = {
5107
5037
  id: string;
5038
+ created: number;
5108
5039
  metadata?: {
5109
5040
  [key: string]: unknown;
5110
5041
  };
@@ -5116,6 +5047,7 @@ export type PtyCreated = {
5116
5047
  };
5117
5048
  export type PtyUpdated = {
5118
5049
  id: string;
5050
+ created: number;
5119
5051
  metadata?: {
5120
5052
  [key: string]: unknown;
5121
5053
  };
@@ -5127,6 +5059,7 @@ export type PtyUpdated = {
5127
5059
  };
5128
5060
  export type PtyExited = {
5129
5061
  id: string;
5062
+ created: number;
5130
5063
  metadata?: {
5131
5064
  [key: string]: unknown;
5132
5065
  };
@@ -5139,6 +5072,7 @@ export type PtyExited = {
5139
5072
  };
5140
5073
  export type PtyDeleted = {
5141
5074
  id: string;
5075
+ created: number;
5142
5076
  metadata?: {
5143
5077
  [key: string]: unknown;
5144
5078
  };
@@ -5150,6 +5084,7 @@ export type PtyDeleted = {
5150
5084
  };
5151
5085
  export type ShellCreated = {
5152
5086
  id: string;
5087
+ created: number;
5153
5088
  metadata?: {
5154
5089
  [key: string]: unknown;
5155
5090
  };
@@ -5161,6 +5096,7 @@ export type ShellCreated = {
5161
5096
  };
5162
5097
  export type ShellExited = {
5163
5098
  id: string;
5099
+ created: number;
5164
5100
  metadata?: {
5165
5101
  [key: string]: unknown;
5166
5102
  };
@@ -5174,6 +5110,7 @@ export type ShellExited = {
5174
5110
  };
5175
5111
  export type ShellDeleted = {
5176
5112
  id: string;
5113
+ created: number;
5177
5114
  metadata?: {
5178
5115
  [key: string]: unknown;
5179
5116
  };
@@ -5185,6 +5122,7 @@ export type ShellDeleted = {
5185
5122
  };
5186
5123
  export type QuestionV2Asked = {
5187
5124
  id: string;
5125
+ created: number;
5188
5126
  metadata?: {
5189
5127
  [key: string]: unknown;
5190
5128
  };
@@ -5202,6 +5140,7 @@ export type QuestionV2Asked = {
5202
5140
  };
5203
5141
  export type QuestionV2Replied = {
5204
5142
  id: string;
5143
+ created: number;
5205
5144
  metadata?: {
5206
5145
  [key: string]: unknown;
5207
5146
  };
@@ -5215,6 +5154,7 @@ export type QuestionV2Replied = {
5215
5154
  };
5216
5155
  export type QuestionV2Rejected = {
5217
5156
  id: string;
5157
+ created: number;
5218
5158
  metadata?: {
5219
5159
  [key: string]: unknown;
5220
5160
  };
@@ -5254,6 +5194,7 @@ export type FormIntegerField1 = {
5254
5194
  };
5255
5195
  export type FormCreated = {
5256
5196
  id: string;
5197
+ created: number;
5257
5198
  metadata?: {
5258
5199
  [key: string]: unknown;
5259
5200
  };
@@ -5266,6 +5207,7 @@ export type FormCreated = {
5266
5207
  export type FormValue1 = string | number | "NaN" | "Infinity" | "-Infinity" | boolean | Array<string>;
5267
5208
  export type FormReplied = {
5268
5209
  id: string;
5210
+ created: number;
5269
5211
  metadata?: {
5270
5212
  [key: string]: unknown;
5271
5213
  };
@@ -5279,6 +5221,7 @@ export type FormReplied = {
5279
5221
  };
5280
5222
  export type FormCancelled = {
5281
5223
  id: string;
5224
+ created: number;
5282
5225
  metadata?: {
5283
5226
  [key: string]: unknown;
5284
5227
  };
@@ -5291,6 +5234,7 @@ export type FormCancelled = {
5291
5234
  };
5292
5235
  export type TodoUpdated = {
5293
5236
  id: string;
5237
+ created: number;
5294
5238
  metadata?: {
5295
5239
  [key: string]: unknown;
5296
5240
  };
@@ -5303,6 +5247,7 @@ export type TodoUpdated = {
5303
5247
  };
5304
5248
  export type LspUpdated = {
5305
5249
  id: string;
5250
+ created: number;
5306
5251
  metadata?: {
5307
5252
  [key: string]: unknown;
5308
5253
  };
@@ -5314,6 +5259,7 @@ export type LspUpdated = {
5314
5259
  };
5315
5260
  export type PermissionAsked = {
5316
5261
  id: string;
5262
+ created: number;
5317
5263
  metadata?: {
5318
5264
  [key: string]: unknown;
5319
5265
  };
@@ -5336,6 +5282,7 @@ export type PermissionAsked = {
5336
5282
  };
5337
5283
  export type PermissionReplied = {
5338
5284
  id: string;
5285
+ created: number;
5339
5286
  metadata?: {
5340
5287
  [key: string]: unknown;
5341
5288
  };
@@ -5349,6 +5296,7 @@ export type PermissionReplied = {
5349
5296
  };
5350
5297
  export type TuiPromptAppend = {
5351
5298
  id: string;
5299
+ created: number;
5352
5300
  metadata?: {
5353
5301
  [key: string]: unknown;
5354
5302
  };
@@ -5360,6 +5308,7 @@ export type TuiPromptAppend = {
5360
5308
  };
5361
5309
  export type TuiCommandExecute = {
5362
5310
  id: string;
5311
+ created: number;
5363
5312
  metadata?: {
5364
5313
  [key: string]: unknown;
5365
5314
  };
@@ -5371,6 +5320,7 @@ export type TuiCommandExecute = {
5371
5320
  };
5372
5321
  export type TuiToastShow = {
5373
5322
  id: string;
5323
+ created: number;
5374
5324
  metadata?: {
5375
5325
  [key: string]: unknown;
5376
5326
  };
@@ -5385,6 +5335,7 @@ export type TuiToastShow = {
5385
5335
  };
5386
5336
  export type TuiSessionSelect = {
5387
5337
  id: string;
5338
+ created: number;
5388
5339
  metadata?: {
5389
5340
  [key: string]: unknown;
5390
5341
  };
@@ -5399,6 +5350,7 @@ export type TuiSessionSelect = {
5399
5350
  };
5400
5351
  export type McpToolsChanged = {
5401
5352
  id: string;
5353
+ created: number;
5402
5354
  metadata?: {
5403
5355
  [key: string]: unknown;
5404
5356
  };
@@ -5410,6 +5362,7 @@ export type McpToolsChanged = {
5410
5362
  };
5411
5363
  export type McpBrowserOpenFailed = {
5412
5364
  id: string;
5365
+ created: number;
5413
5366
  metadata?: {
5414
5367
  [key: string]: unknown;
5415
5368
  };
@@ -5422,6 +5375,7 @@ export type McpBrowserOpenFailed = {
5422
5375
  };
5423
5376
  export type McpStatusChanged = {
5424
5377
  id: string;
5378
+ created: number;
5425
5379
  metadata?: {
5426
5380
  [key: string]: unknown;
5427
5381
  };
@@ -5433,6 +5387,7 @@ export type McpStatusChanged = {
5433
5387
  };
5434
5388
  export type CommandExecuted = {
5435
5389
  id: string;
5390
+ created: number;
5436
5391
  metadata?: {
5437
5392
  [key: string]: unknown;
5438
5393
  };
@@ -5447,6 +5402,7 @@ export type CommandExecuted = {
5447
5402
  };
5448
5403
  export type ProjectUpdated = {
5449
5404
  id: string;
5405
+ created: number;
5450
5406
  metadata?: {
5451
5407
  [key: string]: unknown;
5452
5408
  };
@@ -5465,6 +5421,7 @@ export type ProjectUpdated = {
5465
5421
  };
5466
5422
  export type SessionIdle = {
5467
5423
  id: string;
5424
+ created: number;
5468
5425
  metadata?: {
5469
5426
  [key: string]: unknown;
5470
5427
  };
@@ -5476,6 +5433,7 @@ export type SessionIdle = {
5476
5433
  };
5477
5434
  export type QuestionAsked = {
5478
5435
  id: string;
5436
+ created: number;
5479
5437
  metadata?: {
5480
5438
  [key: string]: unknown;
5481
5439
  };
@@ -5493,6 +5451,7 @@ export type QuestionAsked = {
5493
5451
  };
5494
5452
  export type SessionCompacted = {
5495
5453
  id: string;
5454
+ created: number;
5496
5455
  metadata?: {
5497
5456
  [key: string]: unknown;
5498
5457
  };
@@ -5504,6 +5463,7 @@ export type SessionCompacted = {
5504
5463
  };
5505
5464
  export type VcsBranchUpdated = {
5506
5465
  id: string;
5466
+ created: number;
5507
5467
  metadata?: {
5508
5468
  [key: string]: unknown;
5509
5469
  };
@@ -5515,6 +5475,7 @@ export type VcsBranchUpdated = {
5515
5475
  };
5516
5476
  export type WorkspaceReady = {
5517
5477
  id: string;
5478
+ created: number;
5518
5479
  metadata?: {
5519
5480
  [key: string]: unknown;
5520
5481
  };
@@ -5526,6 +5487,7 @@ export type WorkspaceReady = {
5526
5487
  };
5527
5488
  export type WorkspaceFailed = {
5528
5489
  id: string;
5490
+ created: number;
5529
5491
  metadata?: {
5530
5492
  [key: string]: unknown;
5531
5493
  };
@@ -5537,6 +5499,7 @@ export type WorkspaceFailed = {
5537
5499
  };
5538
5500
  export type WorkspaceStatus = {
5539
5501
  id: string;
5502
+ created: number;
5540
5503
  metadata?: {
5541
5504
  [key: string]: unknown;
5542
5505
  };
@@ -5549,6 +5512,7 @@ export type WorkspaceStatus = {
5549
5512
  };
5550
5513
  export type WorktreeReady = {
5551
5514
  id: string;
5515
+ created: number;
5552
5516
  metadata?: {
5553
5517
  [key: string]: unknown;
5554
5518
  };
@@ -5561,6 +5525,7 @@ export type WorktreeReady = {
5561
5525
  };
5562
5526
  export type WorktreeFailed = {
5563
5527
  id: string;
5528
+ created: number;
5564
5529
  metadata?: {
5565
5530
  [key: string]: unknown;
5566
5531
  };
@@ -5572,6 +5537,7 @@ export type WorktreeFailed = {
5572
5537
  };
5573
5538
  export type ServerConnected = {
5574
5539
  id: string;
5540
+ created: number;
5575
5541
  metadata?: {
5576
5542
  [key: string]: unknown;
5577
5543
  };
@@ -5583,6 +5549,7 @@ export type ServerConnected = {
5583
5549
  };
5584
5550
  export type GlobalDisposed = {
5585
5551
  id: string;
5552
+ created: number;
5586
5553
  metadata?: {
5587
5554
  [key: string]: unknown;
5588
5555
  };
@@ -5735,104 +5702,88 @@ export type EventMessagePartRemoved = {
5735
5702
  partID: string;
5736
5703
  };
5737
5704
  };
5738
- export type EventSessionNextAgentSwitched = {
5705
+ export type EventAgentSelected = {
5739
5706
  id: string;
5740
- type: "session.next.agent.switched";
5707
+ type: "agent.selected";
5741
5708
  properties: {
5742
- timestamp: number;
5743
5709
  sessionID: string;
5744
- messageID: string;
5745
5710
  agent: string;
5746
5711
  };
5747
5712
  };
5748
- export type EventSessionNextModelSwitched = {
5713
+ export type EventModelSelected = {
5749
5714
  id: string;
5750
- type: "session.next.model.switched";
5715
+ type: "model.selected";
5751
5716
  properties: {
5752
- timestamp: number;
5753
5717
  sessionID: string;
5754
- messageID: string;
5755
5718
  model: ModelRef;
5756
5719
  };
5757
5720
  };
5758
- export type EventSessionNextMoved = {
5721
+ export type EventSessionMoved = {
5759
5722
  id: string;
5760
- type: "session.next.moved";
5723
+ type: "session.moved";
5761
5724
  properties: {
5762
- timestamp: number;
5763
5725
  sessionID: string;
5764
5726
  location: LocationRef;
5765
- subdirectory?: string;
5727
+ subpath?: string;
5766
5728
  };
5767
5729
  };
5768
- export type EventSessionNextRenamed = {
5730
+ export type EventRenamed = {
5769
5731
  id: string;
5770
- type: "session.next.renamed";
5732
+ type: "renamed";
5771
5733
  properties: {
5772
- timestamp: number;
5773
5734
  sessionID: string;
5774
5735
  title: string;
5775
5736
  };
5776
5737
  };
5777
- export type EventSessionNextForked = {
5738
+ export type EventForked = {
5778
5739
  id: string;
5779
- type: "session.next.forked";
5740
+ type: "forked";
5780
5741
  properties: {
5781
- timestamp: number;
5782
5742
  sessionID: string;
5783
5743
  parentID: string;
5784
- messageID?: string;
5744
+ from?: string;
5785
5745
  };
5786
5746
  };
5787
- export type EventSessionNextPrompted = {
5747
+ export type EventPromptPromoted = {
5788
5748
  id: string;
5789
- type: "session.next.prompted";
5749
+ type: "prompt.promoted";
5790
5750
  properties: {
5791
- timestamp: number;
5792
5751
  sessionID: string;
5793
- messageID: string;
5794
- prompt: Prompt;
5795
- delivery: "steer" | "queue";
5752
+ inputID: string;
5796
5753
  };
5797
5754
  };
5798
- export type EventSessionNextPromptAdmitted = {
5755
+ export type EventPromptAdmitted = {
5799
5756
  id: string;
5800
- type: "session.next.prompt.admitted";
5757
+ type: "prompt.admitted";
5801
5758
  properties: {
5802
- timestamp: number;
5803
5759
  sessionID: string;
5804
- messageID: string;
5760
+ inputID: string;
5805
5761
  prompt: Prompt;
5806
5762
  delivery: "steer" | "queue";
5807
5763
  };
5808
5764
  };
5809
- export type EventSessionNextExecutionSettled = {
5765
+ export type EventExecutionSettled = {
5810
5766
  id: string;
5811
- type: "session.next.execution.settled";
5767
+ type: "execution.settled";
5812
5768
  properties: {
5813
- timestamp: number;
5814
5769
  sessionID: string;
5815
5770
  outcome: "success" | "failure" | "interrupted";
5816
5771
  error?: SessionErrorUnknown;
5817
5772
  };
5818
5773
  };
5819
- export type EventSessionNextContextUpdated = {
5774
+ export type EventSessionContextUpdated = {
5820
5775
  id: string;
5821
- type: "session.next.context.updated";
5776
+ type: "session.context.updated";
5822
5777
  properties: {
5823
- timestamp: number;
5824
5778
  sessionID: string;
5825
- messageID: string;
5826
5779
  text: string;
5827
5780
  };
5828
5781
  };
5829
- export type EventSessionNextSynthetic = {
5782
+ export type EventSynthetic = {
5830
5783
  id: string;
5831
- type: "session.next.synthetic";
5784
+ type: "synthetic";
5832
5785
  properties: {
5833
- timestamp: number;
5834
5786
  sessionID: string;
5835
- messageID: string;
5836
5787
  text: string;
5837
5788
  description?: string;
5838
5789
  metadata?: {
@@ -5840,43 +5791,37 @@ export type EventSessionNextSynthetic = {
5840
5791
  };
5841
5792
  };
5842
5793
  };
5843
- export type EventSessionNextSkillActivated = {
5794
+ export type EventSkillActivated = {
5844
5795
  id: string;
5845
- type: "session.next.skill.activated";
5796
+ type: "skill.activated";
5846
5797
  properties: {
5847
- timestamp: number;
5848
5798
  sessionID: string;
5849
- messageID: string;
5850
5799
  name: string;
5851
5800
  text: string;
5852
5801
  };
5853
5802
  };
5854
- export type EventSessionNextShellStarted = {
5803
+ export type EventShellStarted = {
5855
5804
  id: string;
5856
- type: "session.next.shell.started";
5805
+ type: "shell.started";
5857
5806
  properties: {
5858
- timestamp: number;
5859
5807
  sessionID: string;
5860
- messageID: string;
5861
5808
  callID: string;
5862
5809
  command: string;
5863
5810
  };
5864
5811
  };
5865
- export type EventSessionNextShellEnded = {
5812
+ export type EventShellEnded = {
5866
5813
  id: string;
5867
- type: "session.next.shell.ended";
5814
+ type: "shell.ended";
5868
5815
  properties: {
5869
- timestamp: number;
5870
5816
  sessionID: string;
5871
5817
  callID: string;
5872
5818
  output: string;
5873
5819
  };
5874
5820
  };
5875
- export type EventSessionNextStepStarted = {
5821
+ export type EventStepStarted = {
5876
5822
  id: string;
5877
- type: "session.next.step.started";
5823
+ type: "step.started";
5878
5824
  properties: {
5879
- timestamp: number;
5880
5825
  sessionID: string;
5881
5826
  assistantMessageID: string;
5882
5827
  agent: string;
@@ -5884,11 +5829,10 @@ export type EventSessionNextStepStarted = {
5884
5829
  snapshot?: string;
5885
5830
  };
5886
5831
  };
5887
- export type EventSessionNextStepEnded = {
5832
+ export type EventStepEnded = {
5888
5833
  id: string;
5889
- type: "session.next.step.ended";
5834
+ type: "step.ended";
5890
5835
  properties: {
5891
- timestamp: number;
5892
5836
  sessionID: string;
5893
5837
  assistantMessageID: string;
5894
5838
  finish: string;
@@ -5906,75 +5850,68 @@ export type EventSessionNextStepEnded = {
5906
5850
  files?: Array<string>;
5907
5851
  };
5908
5852
  };
5909
- export type EventSessionNextStepFailed = {
5853
+ export type EventStepFailed = {
5910
5854
  id: string;
5911
- type: "session.next.step.failed";
5855
+ type: "step.failed";
5912
5856
  properties: {
5913
- timestamp: number;
5914
5857
  sessionID: string;
5915
5858
  assistantMessageID: string;
5916
5859
  error: SessionErrorUnknown;
5917
5860
  };
5918
5861
  };
5919
- export type EventSessionNextTextStarted = {
5862
+ export type EventTextStarted = {
5920
5863
  id: string;
5921
- type: "session.next.text.started";
5864
+ type: "text.started";
5922
5865
  properties: {
5923
- timestamp: number;
5924
5866
  sessionID: string;
5925
5867
  assistantMessageID: string;
5926
5868
  textID: string;
5927
5869
  };
5928
5870
  };
5929
- export type EventSessionNextTextDelta = {
5871
+ export type EventTextDelta = {
5930
5872
  id: string;
5931
- type: "session.next.text.delta";
5873
+ type: "text.delta";
5932
5874
  properties: {
5933
- timestamp: number;
5934
5875
  sessionID: string;
5935
5876
  assistantMessageID: string;
5936
5877
  textID: string;
5937
5878
  delta: string;
5938
5879
  };
5939
5880
  };
5940
- export type EventSessionNextTextEnded = {
5881
+ export type EventTextEnded = {
5941
5882
  id: string;
5942
- type: "session.next.text.ended";
5883
+ type: "text.ended";
5943
5884
  properties: {
5944
- timestamp: number;
5945
5885
  sessionID: string;
5946
5886
  assistantMessageID: string;
5947
5887
  textID: string;
5948
5888
  text: string;
5949
5889
  };
5950
5890
  };
5951
- export type EventSessionNextReasoningStarted = {
5891
+ export type EventReasoningStarted = {
5952
5892
  id: string;
5953
- type: "session.next.reasoning.started";
5893
+ type: "reasoning.started";
5954
5894
  properties: {
5955
- timestamp: number;
5956
5895
  sessionID: string;
5957
5896
  assistantMessageID: string;
5958
5897
  reasoningID: string;
5959
5898
  providerMetadata?: LlmProviderMetadata;
5960
5899
  };
5961
5900
  };
5962
- export type EventSessionNextReasoningDelta = {
5901
+ export type EventReasoningDelta = {
5963
5902
  id: string;
5964
- type: "session.next.reasoning.delta";
5903
+ type: "reasoning.delta";
5965
5904
  properties: {
5966
- timestamp: number;
5967
5905
  sessionID: string;
5968
5906
  assistantMessageID: string;
5969
5907
  reasoningID: string;
5970
5908
  delta: string;
5971
5909
  };
5972
5910
  };
5973
- export type EventSessionNextReasoningEnded = {
5911
+ export type EventReasoningEnded = {
5974
5912
  id: string;
5975
- type: "session.next.reasoning.ended";
5913
+ type: "reasoning.ended";
5976
5914
  properties: {
5977
- timestamp: number;
5978
5915
  sessionID: string;
5979
5916
  assistantMessageID: string;
5980
5917
  reasoningID: string;
@@ -5982,44 +5919,40 @@ export type EventSessionNextReasoningEnded = {
5982
5919
  providerMetadata?: LlmProviderMetadata;
5983
5920
  };
5984
5921
  };
5985
- export type EventSessionNextToolInputStarted = {
5922
+ export type EventToolInputStarted = {
5986
5923
  id: string;
5987
- type: "session.next.tool.input.started";
5924
+ type: "tool.input.started";
5988
5925
  properties: {
5989
- timestamp: number;
5990
5926
  sessionID: string;
5991
5927
  assistantMessageID: string;
5992
5928
  callID: string;
5993
5929
  name: string;
5994
5930
  };
5995
5931
  };
5996
- export type EventSessionNextToolInputDelta = {
5932
+ export type EventToolInputDelta = {
5997
5933
  id: string;
5998
- type: "session.next.tool.input.delta";
5934
+ type: "tool.input.delta";
5999
5935
  properties: {
6000
- timestamp: number;
6001
5936
  sessionID: string;
6002
5937
  assistantMessageID: string;
6003
5938
  callID: string;
6004
5939
  delta: string;
6005
5940
  };
6006
5941
  };
6007
- export type EventSessionNextToolInputEnded = {
5942
+ export type EventToolInputEnded = {
6008
5943
  id: string;
6009
- type: "session.next.tool.input.ended";
5944
+ type: "tool.input.ended";
6010
5945
  properties: {
6011
- timestamp: number;
6012
5946
  sessionID: string;
6013
5947
  assistantMessageID: string;
6014
5948
  callID: string;
6015
5949
  text: string;
6016
5950
  };
6017
5951
  };
6018
- export type EventSessionNextToolCalled = {
5952
+ export type EventToolCalled = {
6019
5953
  id: string;
6020
- type: "session.next.tool.called";
5954
+ type: "tool.called";
6021
5955
  properties: {
6022
- timestamp: number;
6023
5956
  sessionID: string;
6024
5957
  assistantMessageID: string;
6025
5958
  callID: string;
@@ -6033,11 +5966,10 @@ export type EventSessionNextToolCalled = {
6033
5966
  };
6034
5967
  };
6035
5968
  };
6036
- export type EventSessionNextToolProgress = {
5969
+ export type EventToolProgress = {
6037
5970
  id: string;
6038
- type: "session.next.tool.progress";
5971
+ type: "tool.progress";
6039
5972
  properties: {
6040
- timestamp: number;
6041
5973
  sessionID: string;
6042
5974
  assistantMessageID: string;
6043
5975
  callID: string;
@@ -6047,11 +5979,10 @@ export type EventSessionNextToolProgress = {
6047
5979
  content: Array<LlmToolContent>;
6048
5980
  };
6049
5981
  };
6050
- export type EventSessionNextToolSuccess = {
5982
+ export type EventToolSuccess = {
6051
5983
  id: string;
6052
- type: "session.next.tool.success";
5984
+ type: "tool.success";
6053
5985
  properties: {
6054
- timestamp: number;
6055
5986
  sessionID: string;
6056
5987
  assistantMessageID: string;
6057
5988
  callID: string;
@@ -6067,11 +5998,10 @@ export type EventSessionNextToolSuccess = {
6067
5998
  };
6068
5999
  };
6069
6000
  };
6070
- export type EventSessionNextToolFailed = {
6001
+ export type EventToolFailed = {
6071
6002
  id: string;
6072
- type: "session.next.tool.failed";
6003
+ type: "tool.failed";
6073
6004
  properties: {
6074
- timestamp: number;
6075
6005
  sessionID: string;
6076
6006
  assistantMessageID: string;
6077
6007
  callID: string;
@@ -6083,70 +6013,60 @@ export type EventSessionNextToolFailed = {
6083
6013
  };
6084
6014
  };
6085
6015
  };
6086
- export type EventSessionNextRetried = {
6016
+ export type EventRetried = {
6087
6017
  id: string;
6088
- type: "session.next.retried";
6018
+ type: "retried";
6089
6019
  properties: {
6090
- timestamp: number;
6091
6020
  sessionID: string;
6092
6021
  attempt: number;
6093
- error: SessionNextRetryError;
6022
+ error: SessionRetryError;
6094
6023
  };
6095
6024
  };
6096
- export type EventSessionNextCompactionStarted = {
6025
+ export type EventCompactionStarted = {
6097
6026
  id: string;
6098
- type: "session.next.compaction.started";
6027
+ type: "compaction.started";
6099
6028
  properties: {
6100
- timestamp: number;
6101
6029
  sessionID: string;
6102
- messageID: string;
6103
6030
  reason: "auto" | "manual";
6104
6031
  };
6105
6032
  };
6106
- export type EventSessionNextCompactionDelta = {
6033
+ export type EventCompactionDelta = {
6107
6034
  id: string;
6108
- type: "session.next.compaction.delta";
6035
+ type: "compaction.delta";
6109
6036
  properties: {
6110
- timestamp: number;
6111
6037
  sessionID: string;
6112
- messageID: string;
6113
6038
  text: string;
6114
6039
  };
6115
6040
  };
6116
- export type EventSessionNextCompactionEnded = {
6041
+ export type EventCompactionEnded = {
6117
6042
  id: string;
6118
- type: "session.next.compaction.ended";
6043
+ type: "compaction.ended";
6119
6044
  properties: {
6120
- timestamp: number;
6121
6045
  sessionID: string;
6122
- messageID: string;
6123
6046
  reason: "auto" | "manual";
6124
6047
  text: string;
6125
6048
  recent: string;
6126
6049
  };
6127
6050
  };
6128
- export type EventSessionNextRevertStaged = {
6051
+ export type EventRevertStaged = {
6129
6052
  id: string;
6130
- type: "session.next.revert.staged";
6053
+ type: "revert.staged";
6131
6054
  properties: {
6132
- timestamp: number;
6133
6055
  sessionID: string;
6134
6056
  revert: RevertState;
6135
6057
  };
6136
6058
  };
6137
- export type EventSessionNextRevertCleared = {
6059
+ export type EventRevertCleared = {
6138
6060
  id: string;
6139
- type: "session.next.revert.cleared";
6061
+ type: "revert.cleared";
6140
6062
  properties: {
6141
- timestamp: number;
6142
6063
  sessionID: string;
6143
6064
  };
6144
6065
  };
6145
- export type EventSessionNextRevertCommitted = {
6066
+ export type EventRevertCommitted = {
6146
6067
  id: string;
6147
- type: "session.next.revert.committed";
6068
+ type: "revert.committed";
6148
6069
  properties: {
6149
- timestamp: number;
6150
6070
  sessionID: string;
6151
6071
  messageID: string;
6152
6072
  };
@@ -6844,7 +6764,7 @@ export type UnknownErrorV2 = {
6844
6764
  message: string;
6845
6765
  ref?: string | null;
6846
6766
  };
6847
- export type SessionMessageAgentSwitched2 = {
6767
+ export type SessionMessageAgentSelected2 = {
6848
6768
  id: string;
6849
6769
  metadata?: {
6850
6770
  [key: string]: unknown;
@@ -6855,7 +6775,7 @@ export type SessionMessageAgentSwitched2 = {
6855
6775
  type: "agent-switched";
6856
6776
  agent: string;
6857
6777
  };
6858
- export type SessionMessageModelSwitched2 = {
6778
+ export type SessionMessageModelSelected2 = {
6859
6779
  id: string;
6860
6780
  metadata?: {
6861
6781
  [key: string]: unknown;
@@ -7064,7 +6984,7 @@ export type SessionMessageCompaction2 = {
7064
6984
  created: number;
7065
6985
  };
7066
6986
  };
7067
- export type SessionMessage2 = SessionMessageAgentSwitched2 | SessionMessageModelSwitched2 | SessionMessageUser2 | SessionMessageSynthetic2 | SessionMessageSystem2 | SessionMessageSkill2 | SessionMessageShell2 | SessionMessageAssistant2 | SessionMessageCompaction2;
6987
+ export type SessionMessage2 = SessionMessageAgentSelected2 | SessionMessageModelSelected2 | SessionMessageUser2 | SessionMessageSynthetic2 | SessionMessageSystem2 | SessionMessageSkill2 | SessionMessageShell2 | SessionMessageAssistant2 | SessionMessageCompaction2;
7068
6988
  /**
7069
6989
  * Context entry key (lowercase alphanumerics plus . _ -)
7070
6990
  */
@@ -7073,12 +6993,13 @@ export type SessionContextEntryInfo2 = {
7073
6993
  key: SessionContextEntryKey2;
7074
6994
  value: unknown;
7075
6995
  };
7076
- export type SessionNextAgentSwitched2 = {
6996
+ export type AgentSelected2 = {
7077
6997
  id: string;
6998
+ created: number;
7078
6999
  metadata?: {
7079
7000
  [key: string]: unknown;
7080
7001
  };
7081
- type: "session.next.agent.switched";
7002
+ type: "agent.selected";
7082
7003
  durable: {
7083
7004
  aggregateID: string;
7084
7005
  seq: number;
@@ -7086,18 +7007,17 @@ export type SessionNextAgentSwitched2 = {
7086
7007
  };
7087
7008
  location?: LocationRef2;
7088
7009
  data: {
7089
- timestamp: number;
7090
7010
  sessionID: string;
7091
- messageID: string;
7092
7011
  agent: string;
7093
7012
  };
7094
7013
  };
7095
- export type SessionNextModelSwitched2 = {
7014
+ export type ModelSelected2 = {
7096
7015
  id: string;
7016
+ created: number;
7097
7017
  metadata?: {
7098
7018
  [key: string]: unknown;
7099
7019
  };
7100
- type: "session.next.model.switched";
7020
+ type: "model.selected";
7101
7021
  durable: {
7102
7022
  aggregateID: string;
7103
7023
  seq: number;
@@ -7105,18 +7025,17 @@ export type SessionNextModelSwitched2 = {
7105
7025
  };
7106
7026
  location?: LocationRef2;
7107
7027
  data: {
7108
- timestamp: number;
7109
7028
  sessionID: string;
7110
- messageID: string;
7111
7029
  model: ModelRef2;
7112
7030
  };
7113
7031
  };
7114
- export type SessionNextMoved2 = {
7032
+ export type SessionMoved2 = {
7115
7033
  id: string;
7034
+ created: number;
7116
7035
  metadata?: {
7117
7036
  [key: string]: unknown;
7118
7037
  };
7119
- type: "session.next.moved";
7038
+ type: "session.moved";
7120
7039
  durable: {
7121
7040
  aggregateID: string;
7122
7041
  seq: number;
@@ -7124,18 +7043,18 @@ export type SessionNextMoved2 = {
7124
7043
  };
7125
7044
  location?: LocationRef2;
7126
7045
  data: {
7127
- timestamp: number;
7128
7046
  sessionID: string;
7129
7047
  location: LocationRef2;
7130
- subdirectory?: string;
7048
+ subpath?: string;
7131
7049
  };
7132
7050
  };
7133
- export type SessionNextRenamed2 = {
7051
+ export type RenamedV2 = {
7134
7052
  id: string;
7053
+ created: number;
7135
7054
  metadata?: {
7136
7055
  [key: string]: unknown;
7137
7056
  };
7138
- type: "session.next.renamed";
7057
+ type: "renamed";
7139
7058
  durable: {
7140
7059
  aggregateID: string;
7141
7060
  seq: number;
@@ -7143,17 +7062,17 @@ export type SessionNextRenamed2 = {
7143
7062
  };
7144
7063
  location?: LocationRef2;
7145
7064
  data: {
7146
- timestamp: number;
7147
7065
  sessionID: string;
7148
7066
  title: string;
7149
7067
  };
7150
7068
  };
7151
- export type SessionNextForked2 = {
7069
+ export type ForkedV2 = {
7152
7070
  id: string;
7071
+ created: number;
7153
7072
  metadata?: {
7154
7073
  [key: string]: unknown;
7155
7074
  };
7156
- type: "session.next.forked";
7075
+ type: "forked";
7157
7076
  durable: {
7158
7077
  aggregateID: string;
7159
7078
  seq: number;
@@ -7161,18 +7080,18 @@ export type SessionNextForked2 = {
7161
7080
  };
7162
7081
  location?: LocationRef2;
7163
7082
  data: {
7164
- timestamp: number;
7165
7083
  sessionID: string;
7166
7084
  parentID: string;
7167
- messageID?: string;
7085
+ from?: string;
7168
7086
  };
7169
7087
  };
7170
- export type SessionNextPrompted2 = {
7088
+ export type PromptPromoted2 = {
7171
7089
  id: string;
7090
+ created: number;
7172
7091
  metadata?: {
7173
7092
  [key: string]: unknown;
7174
7093
  };
7175
- type: "session.next.prompted";
7094
+ type: "prompt.promoted";
7176
7095
  durable: {
7177
7096
  aggregateID: string;
7178
7097
  seq: number;
@@ -7180,19 +7099,17 @@ export type SessionNextPrompted2 = {
7180
7099
  };
7181
7100
  location?: LocationRef2;
7182
7101
  data: {
7183
- timestamp: number;
7184
7102
  sessionID: string;
7185
- messageID: string;
7186
- prompt: PromptV2;
7187
- delivery: "steer" | "queue";
7103
+ inputID: string;
7188
7104
  };
7189
7105
  };
7190
- export type SessionNextPromptAdmitted2 = {
7106
+ export type PromptAdmitted2 = {
7191
7107
  id: string;
7108
+ created: number;
7192
7109
  metadata?: {
7193
7110
  [key: string]: unknown;
7194
7111
  };
7195
- type: "session.next.prompt.admitted";
7112
+ type: "prompt.admitted";
7196
7113
  durable: {
7197
7114
  aggregateID: string;
7198
7115
  seq: number;
@@ -7200,19 +7117,19 @@ export type SessionNextPromptAdmitted2 = {
7200
7117
  };
7201
7118
  location?: LocationRef2;
7202
7119
  data: {
7203
- timestamp: number;
7204
7120
  sessionID: string;
7205
- messageID: string;
7121
+ inputID: string;
7206
7122
  prompt: PromptV2;
7207
7123
  delivery: "steer" | "queue";
7208
7124
  };
7209
7125
  };
7210
- export type SessionNextContextUpdated2 = {
7126
+ export type SessionContextUpdated2 = {
7211
7127
  id: string;
7128
+ created: number;
7212
7129
  metadata?: {
7213
7130
  [key: string]: unknown;
7214
7131
  };
7215
- type: "session.next.context.updated";
7132
+ type: "session.context.updated";
7216
7133
  durable: {
7217
7134
  aggregateID: string;
7218
7135
  seq: number;
@@ -7220,18 +7137,17 @@ export type SessionNextContextUpdated2 = {
7220
7137
  };
7221
7138
  location?: LocationRef2;
7222
7139
  data: {
7223
- timestamp: number;
7224
7140
  sessionID: string;
7225
- messageID: string;
7226
7141
  text: string;
7227
7142
  };
7228
7143
  };
7229
- export type SessionNextSynthetic2 = {
7144
+ export type SyntheticV2 = {
7230
7145
  id: string;
7146
+ created: number;
7231
7147
  metadata?: {
7232
7148
  [key: string]: unknown;
7233
7149
  };
7234
- type: "session.next.synthetic";
7150
+ type: "synthetic";
7235
7151
  durable: {
7236
7152
  aggregateID: string;
7237
7153
  seq: number;
@@ -7239,9 +7155,7 @@ export type SessionNextSynthetic2 = {
7239
7155
  };
7240
7156
  location?: LocationRef2;
7241
7157
  data: {
7242
- timestamp: number;
7243
7158
  sessionID: string;
7244
- messageID: string;
7245
7159
  text: string;
7246
7160
  description?: string;
7247
7161
  metadata?: {
@@ -7249,12 +7163,13 @@ export type SessionNextSynthetic2 = {
7249
7163
  };
7250
7164
  };
7251
7165
  };
7252
- export type SessionNextSkillActivated2 = {
7166
+ export type SkillActivated2 = {
7253
7167
  id: string;
7168
+ created: number;
7254
7169
  metadata?: {
7255
7170
  [key: string]: unknown;
7256
7171
  };
7257
- type: "session.next.skill.activated";
7172
+ type: "skill.activated";
7258
7173
  durable: {
7259
7174
  aggregateID: string;
7260
7175
  seq: number;
@@ -7262,19 +7177,18 @@ export type SessionNextSkillActivated2 = {
7262
7177
  };
7263
7178
  location?: LocationRef2;
7264
7179
  data: {
7265
- timestamp: number;
7266
7180
  sessionID: string;
7267
- messageID: string;
7268
7181
  name: string;
7269
7182
  text: string;
7270
7183
  };
7271
7184
  };
7272
- export type SessionNextShellStarted2 = {
7185
+ export type ShellStarted2 = {
7273
7186
  id: string;
7187
+ created: number;
7274
7188
  metadata?: {
7275
7189
  [key: string]: unknown;
7276
7190
  };
7277
- type: "session.next.shell.started";
7191
+ type: "shell.started";
7278
7192
  durable: {
7279
7193
  aggregateID: string;
7280
7194
  seq: number;
@@ -7282,19 +7196,18 @@ export type SessionNextShellStarted2 = {
7282
7196
  };
7283
7197
  location?: LocationRef2;
7284
7198
  data: {
7285
- timestamp: number;
7286
7199
  sessionID: string;
7287
- messageID: string;
7288
7200
  callID: string;
7289
7201
  command: string;
7290
7202
  };
7291
7203
  };
7292
- export type SessionNextShellEnded2 = {
7204
+ export type ShellEnded2 = {
7293
7205
  id: string;
7206
+ created: number;
7294
7207
  metadata?: {
7295
7208
  [key: string]: unknown;
7296
7209
  };
7297
- type: "session.next.shell.ended";
7210
+ type: "shell.ended";
7298
7211
  durable: {
7299
7212
  aggregateID: string;
7300
7213
  seq: number;
@@ -7302,18 +7215,18 @@ export type SessionNextShellEnded2 = {
7302
7215
  };
7303
7216
  location?: LocationRef2;
7304
7217
  data: {
7305
- timestamp: number;
7306
7218
  sessionID: string;
7307
7219
  callID: string;
7308
7220
  output: string;
7309
7221
  };
7310
7222
  };
7311
- export type SessionNextStepStarted2 = {
7223
+ export type StepStarted2 = {
7312
7224
  id: string;
7225
+ created: number;
7313
7226
  metadata?: {
7314
7227
  [key: string]: unknown;
7315
7228
  };
7316
- type: "session.next.step.started";
7229
+ type: "step.started";
7317
7230
  durable: {
7318
7231
  aggregateID: string;
7319
7232
  seq: number;
@@ -7321,7 +7234,6 @@ export type SessionNextStepStarted2 = {
7321
7234
  };
7322
7235
  location?: LocationRef2;
7323
7236
  data: {
7324
- timestamp: number;
7325
7237
  sessionID: string;
7326
7238
  assistantMessageID: string;
7327
7239
  agent: string;
@@ -7329,12 +7241,13 @@ export type SessionNextStepStarted2 = {
7329
7241
  snapshot?: string;
7330
7242
  };
7331
7243
  };
7332
- export type SessionNextStepEnded2 = {
7244
+ export type StepEnded2 = {
7333
7245
  id: string;
7246
+ created: number;
7334
7247
  metadata?: {
7335
7248
  [key: string]: unknown;
7336
7249
  };
7337
- type: "session.next.step.ended";
7250
+ type: "step.ended";
7338
7251
  durable: {
7339
7252
  aggregateID: string;
7340
7253
  seq: number;
@@ -7342,7 +7255,6 @@ export type SessionNextStepEnded2 = {
7342
7255
  };
7343
7256
  location?: LocationRef2;
7344
7257
  data: {
7345
- timestamp: number;
7346
7258
  sessionID: string;
7347
7259
  assistantMessageID: string;
7348
7260
  finish: string;
@@ -7360,12 +7272,13 @@ export type SessionNextStepEnded2 = {
7360
7272
  files?: Array<string>;
7361
7273
  };
7362
7274
  };
7363
- export type SessionNextStepFailed2 = {
7275
+ export type StepFailed2 = {
7364
7276
  id: string;
7277
+ created: number;
7365
7278
  metadata?: {
7366
7279
  [key: string]: unknown;
7367
7280
  };
7368
- type: "session.next.step.failed";
7281
+ type: "step.failed";
7369
7282
  durable: {
7370
7283
  aggregateID: string;
7371
7284
  seq: number;
@@ -7373,18 +7286,18 @@ export type SessionNextStepFailed2 = {
7373
7286
  };
7374
7287
  location?: LocationRef2;
7375
7288
  data: {
7376
- timestamp: number;
7377
7289
  sessionID: string;
7378
7290
  assistantMessageID: string;
7379
7291
  error: SessionErrorUnknown2;
7380
7292
  };
7381
7293
  };
7382
- export type SessionNextTextStarted2 = {
7294
+ export type TextStarted2 = {
7383
7295
  id: string;
7296
+ created: number;
7384
7297
  metadata?: {
7385
7298
  [key: string]: unknown;
7386
7299
  };
7387
- type: "session.next.text.started";
7300
+ type: "text.started";
7388
7301
  durable: {
7389
7302
  aggregateID: string;
7390
7303
  seq: number;
@@ -7392,18 +7305,18 @@ export type SessionNextTextStarted2 = {
7392
7305
  };
7393
7306
  location?: LocationRef2;
7394
7307
  data: {
7395
- timestamp: number;
7396
7308
  sessionID: string;
7397
7309
  assistantMessageID: string;
7398
7310
  textID: string;
7399
7311
  };
7400
7312
  };
7401
- export type SessionNextTextEnded2 = {
7313
+ export type TextEnded2 = {
7402
7314
  id: string;
7315
+ created: number;
7403
7316
  metadata?: {
7404
7317
  [key: string]: unknown;
7405
7318
  };
7406
- type: "session.next.text.ended";
7319
+ type: "text.ended";
7407
7320
  durable: {
7408
7321
  aggregateID: string;
7409
7322
  seq: number;
@@ -7411,7 +7324,6 @@ export type SessionNextTextEnded2 = {
7411
7324
  };
7412
7325
  location?: LocationRef2;
7413
7326
  data: {
7414
- timestamp: number;
7415
7327
  sessionID: string;
7416
7328
  assistantMessageID: string;
7417
7329
  textID: string;
@@ -7423,12 +7335,13 @@ export type LlmProviderMetadata3 = {
7423
7335
  [key: string]: unknown;
7424
7336
  };
7425
7337
  };
7426
- export type SessionNextReasoningStarted2 = {
7338
+ export type ReasoningStarted2 = {
7427
7339
  id: string;
7340
+ created: number;
7428
7341
  metadata?: {
7429
7342
  [key: string]: unknown;
7430
7343
  };
7431
- type: "session.next.reasoning.started";
7344
+ type: "reasoning.started";
7432
7345
  durable: {
7433
7346
  aggregateID: string;
7434
7347
  seq: number;
@@ -7436,7 +7349,6 @@ export type SessionNextReasoningStarted2 = {
7436
7349
  };
7437
7350
  location?: LocationRef2;
7438
7351
  data: {
7439
- timestamp: number;
7440
7352
  sessionID: string;
7441
7353
  assistantMessageID: string;
7442
7354
  reasoningID: string;
@@ -7448,12 +7360,13 @@ export type LlmProviderMetadata4 = {
7448
7360
  [key: string]: unknown;
7449
7361
  };
7450
7362
  };
7451
- export type SessionNextReasoningEnded2 = {
7363
+ export type ReasoningEnded2 = {
7452
7364
  id: string;
7365
+ created: number;
7453
7366
  metadata?: {
7454
7367
  [key: string]: unknown;
7455
7368
  };
7456
- type: "session.next.reasoning.ended";
7369
+ type: "reasoning.ended";
7457
7370
  durable: {
7458
7371
  aggregateID: string;
7459
7372
  seq: number;
@@ -7461,7 +7374,6 @@ export type SessionNextReasoningEnded2 = {
7461
7374
  };
7462
7375
  location?: LocationRef2;
7463
7376
  data: {
7464
- timestamp: number;
7465
7377
  sessionID: string;
7466
7378
  assistantMessageID: string;
7467
7379
  reasoningID: string;
@@ -7469,12 +7381,13 @@ export type SessionNextReasoningEnded2 = {
7469
7381
  providerMetadata?: LlmProviderMetadata4;
7470
7382
  };
7471
7383
  };
7472
- export type SessionNextToolInputStarted2 = {
7384
+ export type ToolInputStarted2 = {
7473
7385
  id: string;
7386
+ created: number;
7474
7387
  metadata?: {
7475
7388
  [key: string]: unknown;
7476
7389
  };
7477
- type: "session.next.tool.input.started";
7390
+ type: "tool.input.started";
7478
7391
  durable: {
7479
7392
  aggregateID: string;
7480
7393
  seq: number;
@@ -7482,19 +7395,19 @@ export type SessionNextToolInputStarted2 = {
7482
7395
  };
7483
7396
  location?: LocationRef2;
7484
7397
  data: {
7485
- timestamp: number;
7486
7398
  sessionID: string;
7487
7399
  assistantMessageID: string;
7488
7400
  callID: string;
7489
7401
  name: string;
7490
7402
  };
7491
7403
  };
7492
- export type SessionNextToolInputEnded2 = {
7404
+ export type ToolInputEnded2 = {
7493
7405
  id: string;
7406
+ created: number;
7494
7407
  metadata?: {
7495
7408
  [key: string]: unknown;
7496
7409
  };
7497
- type: "session.next.tool.input.ended";
7410
+ type: "tool.input.ended";
7498
7411
  durable: {
7499
7412
  aggregateID: string;
7500
7413
  seq: number;
@@ -7502,7 +7415,6 @@ export type SessionNextToolInputEnded2 = {
7502
7415
  };
7503
7416
  location?: LocationRef2;
7504
7417
  data: {
7505
- timestamp: number;
7506
7418
  sessionID: string;
7507
7419
  assistantMessageID: string;
7508
7420
  callID: string;
@@ -7514,12 +7426,13 @@ export type LlmProviderMetadata5 = {
7514
7426
  [key: string]: unknown;
7515
7427
  };
7516
7428
  };
7517
- export type SessionNextToolCalled2 = {
7429
+ export type ToolCalled2 = {
7518
7430
  id: string;
7431
+ created: number;
7519
7432
  metadata?: {
7520
7433
  [key: string]: unknown;
7521
7434
  };
7522
- type: "session.next.tool.called";
7435
+ type: "tool.called";
7523
7436
  durable: {
7524
7437
  aggregateID: string;
7525
7438
  seq: number;
@@ -7527,7 +7440,6 @@ export type SessionNextToolCalled2 = {
7527
7440
  };
7528
7441
  location?: LocationRef2;
7529
7442
  data: {
7530
- timestamp: number;
7531
7443
  sessionID: string;
7532
7444
  assistantMessageID: string;
7533
7445
  callID: string;
@@ -7541,12 +7453,13 @@ export type SessionNextToolCalled2 = {
7541
7453
  };
7542
7454
  };
7543
7455
  };
7544
- export type SessionNextToolProgress2 = {
7456
+ export type ToolProgress2 = {
7545
7457
  id: string;
7458
+ created: number;
7546
7459
  metadata?: {
7547
7460
  [key: string]: unknown;
7548
7461
  };
7549
- type: "session.next.tool.progress";
7462
+ type: "tool.progress";
7550
7463
  durable: {
7551
7464
  aggregateID: string;
7552
7465
  seq: number;
@@ -7554,7 +7467,6 @@ export type SessionNextToolProgress2 = {
7554
7467
  };
7555
7468
  location?: LocationRef2;
7556
7469
  data: {
7557
- timestamp: number;
7558
7470
  sessionID: string;
7559
7471
  assistantMessageID: string;
7560
7472
  callID: string;
@@ -7569,12 +7481,13 @@ export type LlmProviderMetadata6 = {
7569
7481
  [key: string]: unknown;
7570
7482
  };
7571
7483
  };
7572
- export type SessionNextToolSuccess2 = {
7484
+ export type ToolSuccess2 = {
7573
7485
  id: string;
7486
+ created: number;
7574
7487
  metadata?: {
7575
7488
  [key: string]: unknown;
7576
7489
  };
7577
- type: "session.next.tool.success";
7490
+ type: "tool.success";
7578
7491
  durable: {
7579
7492
  aggregateID: string;
7580
7493
  seq: number;
@@ -7582,7 +7495,6 @@ export type SessionNextToolSuccess2 = {
7582
7495
  };
7583
7496
  location?: LocationRef2;
7584
7497
  data: {
7585
- timestamp: number;
7586
7498
  sessionID: string;
7587
7499
  assistantMessageID: string;
7588
7500
  callID: string;
@@ -7603,12 +7515,13 @@ export type LlmProviderMetadata7 = {
7603
7515
  [key: string]: unknown;
7604
7516
  };
7605
7517
  };
7606
- export type SessionNextToolFailed2 = {
7518
+ export type ToolFailed2 = {
7607
7519
  id: string;
7520
+ created: number;
7608
7521
  metadata?: {
7609
7522
  [key: string]: unknown;
7610
7523
  };
7611
- type: "session.next.tool.failed";
7524
+ type: "tool.failed";
7612
7525
  durable: {
7613
7526
  aggregateID: string;
7614
7527
  seq: number;
@@ -7616,7 +7529,6 @@ export type SessionNextToolFailed2 = {
7616
7529
  };
7617
7530
  location?: LocationRef2;
7618
7531
  data: {
7619
- timestamp: number;
7620
7532
  sessionID: string;
7621
7533
  assistantMessageID: string;
7622
7534
  callID: string;
@@ -7628,7 +7540,7 @@ export type SessionNextToolFailed2 = {
7628
7540
  };
7629
7541
  };
7630
7542
  };
7631
- export type SessionNextRetryError2 = {
7543
+ export type SessionRetryError2 = {
7632
7544
  message: string;
7633
7545
  statusCode?: number;
7634
7546
  isRetryable: boolean;
@@ -7640,12 +7552,13 @@ export type SessionNextRetryError2 = {
7640
7552
  [key: string]: string;
7641
7553
  };
7642
7554
  };
7643
- export type SessionNextRetried2 = {
7555
+ export type RetriedV2 = {
7644
7556
  id: string;
7557
+ created: number;
7645
7558
  metadata?: {
7646
7559
  [key: string]: unknown;
7647
7560
  };
7648
- type: "session.next.retried";
7561
+ type: "retried";
7649
7562
  durable: {
7650
7563
  aggregateID: string;
7651
7564
  seq: number;
@@ -7653,18 +7566,18 @@ export type SessionNextRetried2 = {
7653
7566
  };
7654
7567
  location?: LocationRef2;
7655
7568
  data: {
7656
- timestamp: number;
7657
7569
  sessionID: string;
7658
7570
  attempt: number;
7659
- error: SessionNextRetryError2;
7571
+ error: SessionRetryError2;
7660
7572
  };
7661
7573
  };
7662
- export type SessionNextCompactionStarted2 = {
7574
+ export type CompactionStarted2 = {
7663
7575
  id: string;
7576
+ created: number;
7664
7577
  metadata?: {
7665
7578
  [key: string]: unknown;
7666
7579
  };
7667
- type: "session.next.compaction.started";
7580
+ type: "compaction.started";
7668
7581
  durable: {
7669
7582
  aggregateID: string;
7670
7583
  seq: number;
@@ -7672,18 +7585,17 @@ export type SessionNextCompactionStarted2 = {
7672
7585
  };
7673
7586
  location?: LocationRef2;
7674
7587
  data: {
7675
- timestamp: number;
7676
7588
  sessionID: string;
7677
- messageID: string;
7678
7589
  reason: "auto" | "manual";
7679
7590
  };
7680
7591
  };
7681
- export type SessionNextCompactionEnded2 = {
7592
+ export type CompactionEnded2 = {
7682
7593
  id: string;
7594
+ created: number;
7683
7595
  metadata?: {
7684
7596
  [key: string]: unknown;
7685
7597
  };
7686
- type: "session.next.compaction.ended";
7598
+ type: "compaction.ended";
7687
7599
  durable: {
7688
7600
  aggregateID: string;
7689
7601
  seq: number;
@@ -7691,20 +7603,19 @@ export type SessionNextCompactionEnded2 = {
7691
7603
  };
7692
7604
  location?: LocationRef2;
7693
7605
  data: {
7694
- timestamp: number;
7695
7606
  sessionID: string;
7696
- messageID: string;
7697
7607
  reason: "auto" | "manual";
7698
7608
  text: string;
7699
7609
  recent: string;
7700
7610
  };
7701
7611
  };
7702
- export type SessionNextRevertStaged2 = {
7612
+ export type RevertStaged2 = {
7703
7613
  id: string;
7614
+ created: number;
7704
7615
  metadata?: {
7705
7616
  [key: string]: unknown;
7706
7617
  };
7707
- type: "session.next.revert.staged";
7618
+ type: "revert.staged";
7708
7619
  durable: {
7709
7620
  aggregateID: string;
7710
7621
  seq: number;
@@ -7712,17 +7623,17 @@ export type SessionNextRevertStaged2 = {
7712
7623
  };
7713
7624
  location?: LocationRef2;
7714
7625
  data: {
7715
- timestamp: number;
7716
7626
  sessionID: string;
7717
7627
  revert: RevertState2;
7718
7628
  };
7719
7629
  };
7720
- export type SessionNextRevertCleared2 = {
7630
+ export type RevertCleared2 = {
7721
7631
  id: string;
7632
+ created: number;
7722
7633
  metadata?: {
7723
7634
  [key: string]: unknown;
7724
7635
  };
7725
- type: "session.next.revert.cleared";
7636
+ type: "revert.cleared";
7726
7637
  durable: {
7727
7638
  aggregateID: string;
7728
7639
  seq: number;
@@ -7730,16 +7641,16 @@ export type SessionNextRevertCleared2 = {
7730
7641
  };
7731
7642
  location?: LocationRef2;
7732
7643
  data: {
7733
- timestamp: number;
7734
7644
  sessionID: string;
7735
7645
  };
7736
7646
  };
7737
- export type SessionNextRevertCommitted2 = {
7647
+ export type RevertCommitted2 = {
7738
7648
  id: string;
7649
+ created: number;
7739
7650
  metadata?: {
7740
7651
  [key: string]: unknown;
7741
7652
  };
7742
- type: "session.next.revert.committed";
7653
+ type: "revert.committed";
7743
7654
  durable: {
7744
7655
  aggregateID: string;
7745
7656
  seq: number;
@@ -7747,12 +7658,11 @@ export type SessionNextRevertCommitted2 = {
7747
7658
  };
7748
7659
  location?: LocationRef2;
7749
7660
  data: {
7750
- timestamp: number;
7751
7661
  sessionID: string;
7752
7662
  messageID: string;
7753
7663
  };
7754
7664
  };
7755
- export type SessionDurableEventV2 = SessionNextAgentSwitched2 | SessionNextModelSwitched2 | SessionNextMoved2 | SessionNextRenamed2 | SessionNextForked2 | SessionNextPrompted2 | SessionNextPromptAdmitted2 | SessionNextContextUpdated2 | SessionNextSynthetic2 | SessionNextSkillActivated2 | SessionNextShellStarted2 | SessionNextShellEnded2 | SessionNextStepStarted2 | SessionNextStepEnded2 | SessionNextStepFailed2 | SessionNextTextStarted2 | SessionNextTextEnded2 | SessionNextReasoningStarted2 | SessionNextReasoningEnded2 | SessionNextToolInputStarted2 | SessionNextToolInputEnded2 | SessionNextToolCalled2 | SessionNextToolProgress2 | SessionNextToolSuccess2 | SessionNextToolFailed2 | SessionNextRetried2 | SessionNextCompactionStarted2 | SessionNextCompactionEnded2 | SessionNextRevertStaged2 | SessionNextRevertCleared2 | SessionNextRevertCommitted2;
7665
+ export type SessionDurableEventV2 = AgentSelected2 | ModelSelected2 | SessionMoved2 | RenamedV2 | ForkedV2 | PromptPromoted2 | PromptAdmitted2 | SessionContextUpdated2 | SyntheticV2 | SkillActivated2 | ShellStarted2 | ShellEnded2 | StepStarted2 | StepEnded2 | StepFailed2 | TextStarted2 | TextEnded2 | ReasoningStarted2 | ReasoningEnded2 | ToolInputStarted2 | ToolInputEnded2 | ToolCalled2 | ToolProgress2 | ToolSuccess2 | ToolFailed2 | RetriedV2 | CompactionStarted2 | CompactionEnded2 | RevertStaged2 | RevertCleared2 | RevertCommitted2;
7756
7666
  /**
7757
7667
  * Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq.
7758
7668
  */
@@ -8178,6 +8088,7 @@ export type SkillV2Info2 = {
8178
8088
  };
8179
8089
  export type ModelsDevRefreshed2 = {
8180
8090
  id: string;
8091
+ created: number;
8181
8092
  metadata?: {
8182
8093
  [key: string]: unknown;
8183
8094
  };
@@ -8189,6 +8100,7 @@ export type ModelsDevRefreshed2 = {
8189
8100
  };
8190
8101
  export type IntegrationUpdated2 = {
8191
8102
  id: string;
8103
+ created: number;
8192
8104
  metadata?: {
8193
8105
  [key: string]: unknown;
8194
8106
  };
@@ -8200,6 +8112,7 @@ export type IntegrationUpdated2 = {
8200
8112
  };
8201
8113
  export type IntegrationConnectionUpdated2 = {
8202
8114
  id: string;
8115
+ created: number;
8203
8116
  metadata?: {
8204
8117
  [key: string]: unknown;
8205
8118
  };
@@ -8211,6 +8124,7 @@ export type IntegrationConnectionUpdated2 = {
8211
8124
  };
8212
8125
  export type CatalogUpdated2 = {
8213
8126
  id: string;
8127
+ created: number;
8214
8128
  metadata?: {
8215
8129
  [key: string]: unknown;
8216
8130
  };
@@ -8222,6 +8136,7 @@ export type CatalogUpdated2 = {
8222
8136
  };
8223
8137
  export type AgentUpdated2 = {
8224
8138
  id: string;
8139
+ created: number;
8225
8140
  metadata?: {
8226
8141
  [key: string]: unknown;
8227
8142
  };
@@ -8299,6 +8214,7 @@ export type SessionV2 = {
8299
8214
  };
8300
8215
  export type SessionCreated2 = {
8301
8216
  id: string;
8217
+ created: number;
8302
8218
  metadata?: {
8303
8219
  [key: string]: unknown;
8304
8220
  };
@@ -8316,6 +8232,7 @@ export type SessionCreated2 = {
8316
8232
  };
8317
8233
  export type SessionUpdated2 = {
8318
8234
  id: string;
8235
+ created: number;
8319
8236
  metadata?: {
8320
8237
  [key: string]: unknown;
8321
8238
  };
@@ -8333,6 +8250,7 @@ export type SessionUpdated2 = {
8333
8250
  };
8334
8251
  export type SessionDeleted2 = {
8335
8252
  id: string;
8253
+ created: number;
8336
8254
  metadata?: {
8337
8255
  [key: string]: unknown;
8338
8256
  };
@@ -8480,6 +8398,7 @@ export type AssistantMessageV2 = {
8480
8398
  export type MessageV2 = UserMessageV2 | AssistantMessageV2;
8481
8399
  export type MessageUpdated2 = {
8482
8400
  id: string;
8401
+ created: number;
8483
8402
  metadata?: {
8484
8403
  [key: string]: unknown;
8485
8404
  };
@@ -8497,6 +8416,7 @@ export type MessageUpdated2 = {
8497
8416
  };
8498
8417
  export type MessageRemoved2 = {
8499
8418
  id: string;
8419
+ created: number;
8500
8420
  metadata?: {
8501
8421
  [key: string]: unknown;
8502
8422
  };
@@ -8741,6 +8661,7 @@ export type CompactionPartV2 = {
8741
8661
  export type PartV2 = TextPartV2 | SubtaskPartV2 | ReasoningPartV2 | FilePartV2 | ToolPartV2 | StepStartPartV2 | StepFinishPartV2 | SnapshotPartV2 | PatchPartV2 | AgentPartV2 | RetryPartV2 | CompactionPartV2;
8742
8662
  export type MessagePartUpdated2 = {
8743
8663
  id: string;
8664
+ created: number;
8744
8665
  metadata?: {
8745
8666
  [key: string]: unknown;
8746
8667
  };
@@ -8759,6 +8680,7 @@ export type MessagePartUpdated2 = {
8759
8680
  };
8760
8681
  export type MessagePartRemoved2 = {
8761
8682
  id: string;
8683
+ created: number;
8762
8684
  metadata?: {
8763
8685
  [key: string]: unknown;
8764
8686
  };
@@ -8775,81 +8697,81 @@ export type MessagePartRemoved2 = {
8775
8697
  partID: string;
8776
8698
  };
8777
8699
  };
8778
- export type SessionNextExecutionSettled2 = {
8700
+ export type ExecutionSettled2 = {
8779
8701
  id: string;
8702
+ created: number;
8780
8703
  metadata?: {
8781
8704
  [key: string]: unknown;
8782
8705
  };
8783
- type: "session.next.execution.settled";
8706
+ type: "execution.settled";
8784
8707
  location?: LocationRef2;
8785
8708
  data: {
8786
- timestamp: number;
8787
8709
  sessionID: string;
8788
8710
  outcome: "success" | "failure" | "interrupted";
8789
8711
  error?: SessionErrorUnknown2;
8790
8712
  };
8791
8713
  };
8792
- export type SessionNextTextDelta2 = {
8714
+ export type TextDelta2 = {
8793
8715
  id: string;
8716
+ created: number;
8794
8717
  metadata?: {
8795
8718
  [key: string]: unknown;
8796
8719
  };
8797
- type: "session.next.text.delta";
8720
+ type: "text.delta";
8798
8721
  location?: LocationRef2;
8799
8722
  data: {
8800
- timestamp: number;
8801
8723
  sessionID: string;
8802
8724
  assistantMessageID: string;
8803
8725
  textID: string;
8804
8726
  delta: string;
8805
8727
  };
8806
8728
  };
8807
- export type SessionNextReasoningDelta2 = {
8729
+ export type ReasoningDelta2 = {
8808
8730
  id: string;
8731
+ created: number;
8809
8732
  metadata?: {
8810
8733
  [key: string]: unknown;
8811
8734
  };
8812
- type: "session.next.reasoning.delta";
8735
+ type: "reasoning.delta";
8813
8736
  location?: LocationRef2;
8814
8737
  data: {
8815
- timestamp: number;
8816
8738
  sessionID: string;
8817
8739
  assistantMessageID: string;
8818
8740
  reasoningID: string;
8819
8741
  delta: string;
8820
8742
  };
8821
8743
  };
8822
- export type SessionNextToolInputDelta2 = {
8744
+ export type ToolInputDelta2 = {
8823
8745
  id: string;
8746
+ created: number;
8824
8747
  metadata?: {
8825
8748
  [key: string]: unknown;
8826
8749
  };
8827
- type: "session.next.tool.input.delta";
8750
+ type: "tool.input.delta";
8828
8751
  location?: LocationRef2;
8829
8752
  data: {
8830
- timestamp: number;
8831
8753
  sessionID: string;
8832
8754
  assistantMessageID: string;
8833
8755
  callID: string;
8834
8756
  delta: string;
8835
8757
  };
8836
8758
  };
8837
- export type SessionNextCompactionDelta2 = {
8759
+ export type CompactionDelta2 = {
8838
8760
  id: string;
8761
+ created: number;
8839
8762
  metadata?: {
8840
8763
  [key: string]: unknown;
8841
8764
  };
8842
- type: "session.next.compaction.delta";
8765
+ type: "compaction.delta";
8843
8766
  location?: LocationRef2;
8844
8767
  data: {
8845
- timestamp: number;
8846
8768
  sessionID: string;
8847
- messageID: string;
8848
8769
  text: string;
8849
8770
  };
8850
8771
  };
8851
8772
  export type FileEdited2 = {
8852
8773
  id: string;
8774
+ created: number;
8853
8775
  metadata?: {
8854
8776
  [key: string]: unknown;
8855
8777
  };
@@ -8861,6 +8783,7 @@ export type FileEdited2 = {
8861
8783
  };
8862
8784
  export type ReferenceUpdated2 = {
8863
8785
  id: string;
8786
+ created: number;
8864
8787
  metadata?: {
8865
8788
  [key: string]: unknown;
8866
8789
  };
@@ -8872,6 +8795,7 @@ export type ReferenceUpdated2 = {
8872
8795
  };
8873
8796
  export type PermissionV2Asked2 = {
8874
8797
  id: string;
8798
+ created: number;
8875
8799
  metadata?: {
8876
8800
  [key: string]: unknown;
8877
8801
  };
@@ -8891,6 +8815,7 @@ export type PermissionV2Asked2 = {
8891
8815
  };
8892
8816
  export type PermissionV2Replied2 = {
8893
8817
  id: string;
8818
+ created: number;
8894
8819
  metadata?: {
8895
8820
  [key: string]: unknown;
8896
8821
  };
@@ -8904,6 +8829,7 @@ export type PermissionV2Replied2 = {
8904
8829
  };
8905
8830
  export type PluginAdded2 = {
8906
8831
  id: string;
8832
+ created: number;
8907
8833
  metadata?: {
8908
8834
  [key: string]: unknown;
8909
8835
  };
@@ -8915,6 +8841,7 @@ export type PluginAdded2 = {
8915
8841
  };
8916
8842
  export type ProjectDirectoriesUpdated2 = {
8917
8843
  id: string;
8844
+ created: number;
8918
8845
  metadata?: {
8919
8846
  [key: string]: unknown;
8920
8847
  };
@@ -8926,6 +8853,7 @@ export type ProjectDirectoriesUpdated2 = {
8926
8853
  };
8927
8854
  export type CommandUpdated2 = {
8928
8855
  id: string;
8856
+ created: number;
8929
8857
  metadata?: {
8930
8858
  [key: string]: unknown;
8931
8859
  };
@@ -8937,6 +8865,7 @@ export type CommandUpdated2 = {
8937
8865
  };
8938
8866
  export type SkillUpdated2 = {
8939
8867
  id: string;
8868
+ created: number;
8940
8869
  metadata?: {
8941
8870
  [key: string]: unknown;
8942
8871
  };
@@ -8948,6 +8877,7 @@ export type SkillUpdated2 = {
8948
8877
  };
8949
8878
  export type FileWatcherUpdated2 = {
8950
8879
  id: string;
8880
+ created: number;
8951
8881
  metadata?: {
8952
8882
  [key: string]: unknown;
8953
8883
  };
@@ -8970,6 +8900,7 @@ export type PtyV2 = {
8970
8900
  };
8971
8901
  export type PtyCreated2 = {
8972
8902
  id: string;
8903
+ created: number;
8973
8904
  metadata?: {
8974
8905
  [key: string]: unknown;
8975
8906
  };
@@ -8981,6 +8912,7 @@ export type PtyCreated2 = {
8981
8912
  };
8982
8913
  export type PtyUpdated2 = {
8983
8914
  id: string;
8915
+ created: number;
8984
8916
  metadata?: {
8985
8917
  [key: string]: unknown;
8986
8918
  };
@@ -8992,6 +8924,7 @@ export type PtyUpdated2 = {
8992
8924
  };
8993
8925
  export type PtyExited2 = {
8994
8926
  id: string;
8927
+ created: number;
8995
8928
  metadata?: {
8996
8929
  [key: string]: unknown;
8997
8930
  };
@@ -9004,6 +8937,7 @@ export type PtyExited2 = {
9004
8937
  };
9005
8938
  export type PtyDeleted2 = {
9006
8939
  id: string;
8940
+ created: number;
9007
8941
  metadata?: {
9008
8942
  [key: string]: unknown;
9009
8943
  };
@@ -9032,6 +8966,7 @@ export type ShellV2 = {
9032
8966
  };
9033
8967
  export type ShellCreated2 = {
9034
8968
  id: string;
8969
+ created: number;
9035
8970
  metadata?: {
9036
8971
  [key: string]: unknown;
9037
8972
  };
@@ -9043,6 +8978,7 @@ export type ShellCreated2 = {
9043
8978
  };
9044
8979
  export type ShellExited2 = {
9045
8980
  id: string;
8981
+ created: number;
9046
8982
  metadata?: {
9047
8983
  [key: string]: unknown;
9048
8984
  };
@@ -9056,6 +8992,7 @@ export type ShellExited2 = {
9056
8992
  };
9057
8993
  export type ShellDeleted2 = {
9058
8994
  id: string;
8995
+ created: number;
9059
8996
  metadata?: {
9060
8997
  [key: string]: unknown;
9061
8998
  };
@@ -9097,6 +9034,7 @@ export type QuestionV2Tool2 = {
9097
9034
  };
9098
9035
  export type QuestionV2Asked2 = {
9099
9036
  id: string;
9037
+ created: number;
9100
9038
  metadata?: {
9101
9039
  [key: string]: unknown;
9102
9040
  };
@@ -9115,6 +9053,7 @@ export type QuestionV2Asked2 = {
9115
9053
  export type QuestionV2Answer2 = Array<string>;
9116
9054
  export type QuestionV2Replied2 = {
9117
9055
  id: string;
9056
+ created: number;
9118
9057
  metadata?: {
9119
9058
  [key: string]: unknown;
9120
9059
  };
@@ -9128,6 +9067,7 @@ export type QuestionV2Replied2 = {
9128
9067
  };
9129
9068
  export type QuestionV2Rejected2 = {
9130
9069
  id: string;
9070
+ created: number;
9131
9071
  metadata?: {
9132
9072
  [key: string]: unknown;
9133
9073
  };
@@ -9224,6 +9164,7 @@ export type FormUrlInfo1 = {
9224
9164
  };
9225
9165
  export type FormCreated2 = {
9226
9166
  id: string;
9167
+ created: number;
9227
9168
  metadata?: {
9228
9169
  [key: string]: unknown;
9229
9170
  };
@@ -9239,6 +9180,7 @@ export type FormAnswer1 = {
9239
9180
  };
9240
9181
  export type FormReplied2 = {
9241
9182
  id: string;
9183
+ created: number;
9242
9184
  metadata?: {
9243
9185
  [key: string]: unknown;
9244
9186
  };
@@ -9252,6 +9194,7 @@ export type FormReplied2 = {
9252
9194
  };
9253
9195
  export type FormCancelled2 = {
9254
9196
  id: string;
9197
+ created: number;
9255
9198
  metadata?: {
9256
9199
  [key: string]: unknown;
9257
9200
  };
@@ -9278,6 +9221,7 @@ export type TodoV2 = {
9278
9221
  };
9279
9222
  export type TodoUpdated2 = {
9280
9223
  id: string;
9224
+ created: number;
9281
9225
  metadata?: {
9282
9226
  [key: string]: unknown;
9283
9227
  };
@@ -9308,6 +9252,7 @@ export type SessionStatusV2 = {
9308
9252
  };
9309
9253
  export type SessionStatusV22 = {
9310
9254
  id: string;
9255
+ created: number;
9311
9256
  metadata?: {
9312
9257
  [key: string]: unknown;
9313
9258
  };
@@ -9320,6 +9265,7 @@ export type SessionStatusV22 = {
9320
9265
  };
9321
9266
  export type SessionIdle2 = {
9322
9267
  id: string;
9268
+ created: number;
9323
9269
  metadata?: {
9324
9270
  [key: string]: unknown;
9325
9271
  };
@@ -9331,6 +9277,7 @@ export type SessionIdle2 = {
9331
9277
  };
9332
9278
  export type TuiPromptAppend2 = {
9333
9279
  id: string;
9280
+ created: number;
9334
9281
  metadata?: {
9335
9282
  [key: string]: unknown;
9336
9283
  };
@@ -9342,6 +9289,7 @@ export type TuiPromptAppend2 = {
9342
9289
  };
9343
9290
  export type TuiCommandExecute2 = {
9344
9291
  id: string;
9292
+ created: number;
9345
9293
  metadata?: {
9346
9294
  [key: string]: unknown;
9347
9295
  };
@@ -9353,6 +9301,7 @@ export type TuiCommandExecute2 = {
9353
9301
  };
9354
9302
  export type TuiToastShow2 = {
9355
9303
  id: string;
9304
+ created: number;
9356
9305
  metadata?: {
9357
9306
  [key: string]: unknown;
9358
9307
  };
@@ -9367,6 +9316,7 @@ export type TuiToastShow2 = {
9367
9316
  };
9368
9317
  export type TuiSessionSelect2 = {
9369
9318
  id: string;
9319
+ created: number;
9370
9320
  metadata?: {
9371
9321
  [key: string]: unknown;
9372
9322
  };
@@ -9381,6 +9331,7 @@ export type TuiSessionSelect2 = {
9381
9331
  };
9382
9332
  export type InstallationUpdated2 = {
9383
9333
  id: string;
9334
+ created: number;
9384
9335
  metadata?: {
9385
9336
  [key: string]: unknown;
9386
9337
  };
@@ -9392,6 +9343,7 @@ export type InstallationUpdated2 = {
9392
9343
  };
9393
9344
  export type InstallationUpdateAvailable2 = {
9394
9345
  id: string;
9346
+ created: number;
9395
9347
  metadata?: {
9396
9348
  [key: string]: unknown;
9397
9349
  };
@@ -9403,6 +9355,7 @@ export type InstallationUpdateAvailable2 = {
9403
9355
  };
9404
9356
  export type VcsBranchUpdated2 = {
9405
9357
  id: string;
9358
+ created: number;
9406
9359
  metadata?: {
9407
9360
  [key: string]: unknown;
9408
9361
  };
@@ -9414,6 +9367,7 @@ export type VcsBranchUpdated2 = {
9414
9367
  };
9415
9368
  export type McpStatusChanged2 = {
9416
9369
  id: string;
9370
+ created: number;
9417
9371
  metadata?: {
9418
9372
  [key: string]: unknown;
9419
9373
  };
@@ -9425,6 +9379,7 @@ export type McpStatusChanged2 = {
9425
9379
  };
9426
9380
  export type PermissionAsked2 = {
9427
9381
  id: string;
9382
+ created: number;
9428
9383
  metadata?: {
9429
9384
  [key: string]: unknown;
9430
9385
  };
@@ -9447,6 +9402,7 @@ export type PermissionAsked2 = {
9447
9402
  };
9448
9403
  export type PermissionReplied2 = {
9449
9404
  id: string;
9405
+ created: number;
9450
9406
  metadata?: {
9451
9407
  [key: string]: unknown;
9452
9408
  };
@@ -9496,6 +9452,7 @@ export type QuestionToolV2 = {
9496
9452
  };
9497
9453
  export type QuestionAsked2 = {
9498
9454
  id: string;
9455
+ created: number;
9499
9456
  metadata?: {
9500
9457
  [key: string]: unknown;
9501
9458
  };
@@ -9514,6 +9471,7 @@ export type QuestionAsked2 = {
9514
9471
  export type QuestionAnswerV2 = Array<string>;
9515
9472
  export type QuestionRepliedV2 = {
9516
9473
  id: string;
9474
+ created: number;
9517
9475
  metadata?: {
9518
9476
  [key: string]: unknown;
9519
9477
  };
@@ -9527,6 +9485,7 @@ export type QuestionRepliedV2 = {
9527
9485
  };
9528
9486
  export type QuestionRejectedV2 = {
9529
9487
  id: string;
9488
+ created: number;
9530
9489
  metadata?: {
9531
9490
  [key: string]: unknown;
9532
9491
  };
@@ -9539,6 +9498,7 @@ export type QuestionRejectedV2 = {
9539
9498
  };
9540
9499
  export type SessionError2 = {
9541
9500
  id: string;
9501
+ created: number;
9542
9502
  metadata?: {
9543
9503
  [key: string]: unknown;
9544
9504
  };
@@ -9560,7 +9520,7 @@ export type V2EventServerConnected = {
9560
9520
  [key: string]: unknown;
9561
9521
  } | Array<unknown>;
9562
9522
  };
9563
- export type V2EventV2 = ModelsDevRefreshed2 | IntegrationUpdated2 | IntegrationConnectionUpdated2 | CatalogUpdated2 | AgentUpdated2 | SessionCreated2 | SessionUpdated2 | SessionDeleted2 | MessageUpdated2 | MessageRemoved2 | MessagePartUpdated2 | MessagePartRemoved2 | SessionNextAgentSwitched2 | SessionNextModelSwitched2 | SessionNextMoved2 | SessionNextRenamed2 | SessionNextForked2 | SessionNextPrompted2 | SessionNextPromptAdmitted2 | SessionNextExecutionSettled2 | SessionNextContextUpdated2 | SessionNextSynthetic2 | SessionNextSkillActivated2 | SessionNextShellStarted2 | SessionNextShellEnded2 | SessionNextStepStarted2 | SessionNextStepEnded2 | SessionNextStepFailed2 | SessionNextTextStarted2 | SessionNextTextDelta2 | SessionNextTextEnded2 | SessionNextReasoningStarted2 | SessionNextReasoningDelta2 | SessionNextReasoningEnded2 | SessionNextToolInputStarted2 | SessionNextToolInputDelta2 | SessionNextToolInputEnded2 | SessionNextToolCalled2 | SessionNextToolProgress2 | SessionNextToolSuccess2 | SessionNextToolFailed2 | SessionNextRetried2 | SessionNextCompactionStarted2 | SessionNextCompactionDelta2 | SessionNextCompactionEnded2 | SessionNextRevertStaged2 | SessionNextRevertCleared2 | SessionNextRevertCommitted2 | 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;
9523
+ export type V2EventV2 = ModelsDevRefreshed2 | IntegrationUpdated2 | IntegrationConnectionUpdated2 | CatalogUpdated2 | AgentUpdated2 | SessionCreated2 | SessionUpdated2 | SessionDeleted2 | MessageUpdated2 | MessageRemoved2 | MessagePartUpdated2 | MessagePartRemoved2 | AgentSelected2 | ModelSelected2 | SessionMoved2 | RenamedV2 | ForkedV2 | PromptPromoted2 | PromptAdmitted2 | ExecutionSettled2 | SessionContextUpdated2 | SyntheticV2 | SkillActivated2 | ShellStarted2 | ShellEnded2 | StepStarted2 | StepEnded2 | StepFailed2 | TextStarted2 | TextDelta2 | TextEnded2 | ReasoningStarted2 | ReasoningDelta2 | ReasoningEnded2 | ToolInputStarted2 | ToolInputDelta2 | ToolInputEnded2 | ToolCalled2 | ToolProgress2 | ToolSuccess2 | ToolFailed2 | RetriedV2 | CompactionStarted2 | CompactionDelta2 | CompactionEnded2 | RevertStaged2 | RevertCleared2 | RevertCommitted2 | 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;
9564
9524
  export type V2EventStreamV2 = string;
9565
9525
  /**
9566
9526
  * 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.