@opencode-ai/sdk 1.17.9 → 1.17.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +51 -8
- package/dist/v2/gen/sdk.gen.js +106 -4
- package/dist/v2/gen/types.gen.d.ts +2078 -129
- package/package.json +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventModelsDevRefreshed |
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | 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 | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | 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;
|
|
@@ -562,15 +562,15 @@ export type GlobalEvent = {
|
|
|
562
562
|
};
|
|
563
563
|
} | {
|
|
564
564
|
id: string;
|
|
565
|
-
type: "
|
|
565
|
+
type: "integration.updated";
|
|
566
566
|
properties: {
|
|
567
|
-
|
|
567
|
+
[key: string]: unknown;
|
|
568
568
|
};
|
|
569
569
|
} | {
|
|
570
570
|
id: string;
|
|
571
|
-
type: "integration.updated";
|
|
571
|
+
type: "integration.connection.updated";
|
|
572
572
|
properties: {
|
|
573
|
-
|
|
573
|
+
integrationID: string;
|
|
574
574
|
};
|
|
575
575
|
} | {
|
|
576
576
|
id: string;
|
|
@@ -680,23 +680,6 @@ export type GlobalEvent = {
|
|
|
680
680
|
prompt: Prompt;
|
|
681
681
|
delivery: "steer" | "queue";
|
|
682
682
|
};
|
|
683
|
-
} | {
|
|
684
|
-
id: string;
|
|
685
|
-
type: "session.next.prompt.promoted";
|
|
686
|
-
properties: {
|
|
687
|
-
timestamp: number;
|
|
688
|
-
sessionID: string;
|
|
689
|
-
messageID: string;
|
|
690
|
-
prompt: Prompt;
|
|
691
|
-
timeCreated: number;
|
|
692
|
-
};
|
|
693
|
-
} | {
|
|
694
|
-
id: string;
|
|
695
|
-
type: "session.next.interrupt.requested";
|
|
696
|
-
properties: {
|
|
697
|
-
timestamp: number;
|
|
698
|
-
sessionID: string;
|
|
699
|
-
};
|
|
700
683
|
} | {
|
|
701
684
|
id: string;
|
|
702
685
|
type: "session.next.context.updated";
|
|
@@ -768,6 +751,7 @@ export type GlobalEvent = {
|
|
|
768
751
|
};
|
|
769
752
|
};
|
|
770
753
|
snapshot?: string;
|
|
754
|
+
files?: Array<string>;
|
|
771
755
|
};
|
|
772
756
|
} | {
|
|
773
757
|
id: string;
|
|
@@ -990,6 +974,35 @@ export type GlobalEvent = {
|
|
|
990
974
|
text: string;
|
|
991
975
|
recent: string;
|
|
992
976
|
};
|
|
977
|
+
} | {
|
|
978
|
+
id: string;
|
|
979
|
+
type: "session.next.revert.staged";
|
|
980
|
+
properties: {
|
|
981
|
+
timestamp: number;
|
|
982
|
+
sessionID: string;
|
|
983
|
+
revert: {
|
|
984
|
+
messageID: string;
|
|
985
|
+
partID?: string;
|
|
986
|
+
snapshot?: string;
|
|
987
|
+
diff?: string;
|
|
988
|
+
files?: Array<FileDiff>;
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
} | {
|
|
992
|
+
id: string;
|
|
993
|
+
type: "session.next.revert.cleared";
|
|
994
|
+
properties: {
|
|
995
|
+
timestamp: number;
|
|
996
|
+
sessionID: string;
|
|
997
|
+
};
|
|
998
|
+
} | {
|
|
999
|
+
id: string;
|
|
1000
|
+
type: "session.next.revert.committed";
|
|
1001
|
+
properties: {
|
|
1002
|
+
timestamp: number;
|
|
1003
|
+
sessionID: string;
|
|
1004
|
+
messageID: string;
|
|
1005
|
+
};
|
|
993
1006
|
} | {
|
|
994
1007
|
id: string;
|
|
995
1008
|
type: "message.part.delta";
|
|
@@ -1032,6 +1045,12 @@ export type GlobalEvent = {
|
|
|
1032
1045
|
properties: {
|
|
1033
1046
|
file: string;
|
|
1034
1047
|
};
|
|
1048
|
+
} | {
|
|
1049
|
+
id: string;
|
|
1050
|
+
type: "reference.updated";
|
|
1051
|
+
properties: {
|
|
1052
|
+
[key: string]: unknown;
|
|
1053
|
+
};
|
|
1035
1054
|
} | {
|
|
1036
1055
|
id: string;
|
|
1037
1056
|
type: "permission.v2.asked";
|
|
@@ -1056,9 +1075,9 @@ export type GlobalEvent = {
|
|
|
1056
1075
|
};
|
|
1057
1076
|
} | {
|
|
1058
1077
|
id: string;
|
|
1059
|
-
type: "
|
|
1078
|
+
type: "plugin.added";
|
|
1060
1079
|
properties: {
|
|
1061
|
-
|
|
1080
|
+
id: string;
|
|
1062
1081
|
};
|
|
1063
1082
|
} | {
|
|
1064
1083
|
id: string;
|
|
@@ -1337,7 +1356,7 @@ export type GlobalEvent = {
|
|
|
1337
1356
|
properties: {
|
|
1338
1357
|
[key: string]: unknown;
|
|
1339
1358
|
};
|
|
1340
|
-
} | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted |
|
|
1359
|
+
} | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded | SyncEventSessionNextRevertStaged | SyncEventSessionNextRevertCleared | SyncEventSessionNextRevertCommitted;
|
|
1341
1360
|
};
|
|
1342
1361
|
/**
|
|
1343
1362
|
* Log level
|
|
@@ -2265,6 +2284,12 @@ export type ServiceUnavailableError = {
|
|
|
2265
2284
|
message: string;
|
|
2266
2285
|
service?: string;
|
|
2267
2286
|
};
|
|
2287
|
+
export type MessageNotFoundError = {
|
|
2288
|
+
_tag: "MessageNotFoundError";
|
|
2289
|
+
sessionID: string;
|
|
2290
|
+
messageID: string;
|
|
2291
|
+
message: string;
|
|
2292
|
+
};
|
|
2268
2293
|
export type UnknownError1 = {
|
|
2269
2294
|
_tag: "UnknownError";
|
|
2270
2295
|
message: string;
|
|
@@ -2282,6 +2307,7 @@ export type ProviderNotFoundError = {
|
|
|
2282
2307
|
providerID: string;
|
|
2283
2308
|
message: string;
|
|
2284
2309
|
};
|
|
2310
|
+
export type V2Event = V2EventModelsDevRefreshed | V2EventIntegrationUpdated | V2EventIntegrationConnectionUpdated | V2EventCatalogUpdated | V2EventSessionCreated | V2EventSessionUpdated | V2EventSessionDeleted | V2EventMessageUpdated | V2EventMessageRemoved | V2EventMessagePartUpdated | V2EventMessagePartRemoved | V2EventSessionNextAgentSwitched | V2EventSessionNextModelSwitched | V2EventSessionNextMoved | V2EventSessionNextPrompted | V2EventSessionNextPromptAdmitted | V2EventSessionNextContextUpdated | V2EventSessionNextSynthetic | V2EventSessionNextShellStarted | V2EventSessionNextShellEnded | V2EventSessionNextStepStarted | V2EventSessionNextStepEnded | V2EventSessionNextStepFailed | V2EventSessionNextTextStarted | V2EventSessionNextTextDelta | V2EventSessionNextTextEnded | V2EventSessionNextReasoningStarted | V2EventSessionNextReasoningDelta | V2EventSessionNextReasoningEnded | V2EventSessionNextToolInputStarted | V2EventSessionNextToolInputDelta | V2EventSessionNextToolInputEnded | V2EventSessionNextToolCalled | V2EventSessionNextToolProgress | V2EventSessionNextToolSuccess | V2EventSessionNextToolFailed | V2EventSessionNextRetried | V2EventSessionNextCompactionStarted | V2EventSessionNextCompactionDelta | V2EventSessionNextCompactionEnded | V2EventSessionNextRevertStaged | V2EventSessionNextRevertCleared | V2EventSessionNextRevertCommitted | V2EventMessagePartDelta | V2EventSessionDiff | V2EventSessionError | V2EventInstallationUpdated | V2EventInstallationUpdateAvailable | V2EventFileEdited | V2EventReferenceUpdated | V2EventPermissionV2Asked | V2EventPermissionV2Replied | V2EventPluginAdded | V2EventProjectDirectoriesUpdated | V2EventFileWatcherUpdated | V2EventPtyCreated | V2EventPtyUpdated | V2EventPtyExited | V2EventPtyDeleted | V2EventQuestionV2Asked | V2EventQuestionV2Replied | V2EventQuestionV2Rejected | V2EventTodoUpdated | V2EventLspUpdated | V2EventPermissionAsked | V2EventPermissionReplied | V2EventTuiPromptAppend | V2EventTuiCommandExecute | V2EventTuiToastShow | V2EventTuiSessionSelect | V2EventMcpToolsChanged | V2EventMcpBrowserOpenFailed | V2EventCommandExecuted | V2EventProjectUpdated | V2EventSessionStatus | V2EventSessionIdle | V2EventQuestionAsked | V2EventQuestionReplied | V2EventQuestionRejected | V2EventSessionCompacted | V2EventVcsBranchUpdated | V2EventWorkspaceReady | V2EventWorkspaceFailed | V2EventWorkspaceStatus | V2EventWorktreeReady | V2EventWorktreeFailed | V2EventServerConnected | V2EventGlobalDisposed;
|
|
2285
2311
|
export type ForbiddenError = {
|
|
2286
2312
|
_tag: "ForbiddenError";
|
|
2287
2313
|
message: string;
|
|
@@ -2330,6 +2356,16 @@ export type EventTuiSessionSelect2 = {
|
|
|
2330
2356
|
sessionID: string;
|
|
2331
2357
|
};
|
|
2332
2358
|
};
|
|
2359
|
+
export type CredentialValue = CredentialOAuth | CredentialKey;
|
|
2360
|
+
export type IntegrationInputs = {
|
|
2361
|
+
[key: string]: string;
|
|
2362
|
+
};
|
|
2363
|
+
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod;
|
|
2364
|
+
export type IntegrationRef = {
|
|
2365
|
+
id: string;
|
|
2366
|
+
name: string;
|
|
2367
|
+
};
|
|
2368
|
+
export type SkillV2Source = SkillV2DirectorySource | SkillV2UrlSource | SkillV2EmbeddedSource;
|
|
2333
2369
|
export type MoveSessionDestination = {
|
|
2334
2370
|
directory: string;
|
|
2335
2371
|
};
|
|
@@ -2379,6 +2415,13 @@ export type SessionNextRetryError = {
|
|
|
2379
2415
|
[key: string]: string;
|
|
2380
2416
|
};
|
|
2381
2417
|
};
|
|
2418
|
+
export type FileDiff = {
|
|
2419
|
+
path: string;
|
|
2420
|
+
status: "added" | "modified" | "deleted";
|
|
2421
|
+
additions: number;
|
|
2422
|
+
deletions: number;
|
|
2423
|
+
patch: string;
|
|
2424
|
+
};
|
|
2382
2425
|
export type PermissionV2Source = {
|
|
2383
2426
|
type: "tool";
|
|
2384
2427
|
messageID: string;
|
|
@@ -2609,37 +2652,6 @@ export type SyncEventSessionNextPromptAdmitted = {
|
|
|
2609
2652
|
};
|
|
2610
2653
|
};
|
|
2611
2654
|
};
|
|
2612
|
-
export type SyncEventSessionNextPromptPromoted = {
|
|
2613
|
-
type: "sync";
|
|
2614
|
-
id: string;
|
|
2615
|
-
syncEvent: {
|
|
2616
|
-
type: "session.next.prompt.promoted.1";
|
|
2617
|
-
id: string;
|
|
2618
|
-
seq: number;
|
|
2619
|
-
aggregateID: string;
|
|
2620
|
-
data: {
|
|
2621
|
-
timestamp: number;
|
|
2622
|
-
sessionID: string;
|
|
2623
|
-
messageID: string;
|
|
2624
|
-
prompt: Prompt;
|
|
2625
|
-
timeCreated: number;
|
|
2626
|
-
};
|
|
2627
|
-
};
|
|
2628
|
-
};
|
|
2629
|
-
export type SyncEventSessionNextInterruptRequested = {
|
|
2630
|
-
type: "sync";
|
|
2631
|
-
id: string;
|
|
2632
|
-
syncEvent: {
|
|
2633
|
-
type: "session.next.interrupt.requested.1";
|
|
2634
|
-
id: string;
|
|
2635
|
-
seq: number;
|
|
2636
|
-
aggregateID: string;
|
|
2637
|
-
data: {
|
|
2638
|
-
timestamp: number;
|
|
2639
|
-
sessionID: string;
|
|
2640
|
-
};
|
|
2641
|
-
};
|
|
2642
|
-
};
|
|
2643
2655
|
export type SyncEventSessionNextContextUpdated = {
|
|
2644
2656
|
type: "sync";
|
|
2645
2657
|
id: string;
|
|
@@ -2751,6 +2763,7 @@ export type SyncEventSessionNextStepEnded = {
|
|
|
2751
2763
|
};
|
|
2752
2764
|
};
|
|
2753
2765
|
snapshot?: string;
|
|
2766
|
+
files?: Array<string>;
|
|
2754
2767
|
};
|
|
2755
2768
|
};
|
|
2756
2769
|
};
|
|
@@ -3020,7 +3033,7 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
3020
3033
|
type: "sync";
|
|
3021
3034
|
id: string;
|
|
3022
3035
|
syncEvent: {
|
|
3023
|
-
type: "session.next.compaction.ended.
|
|
3036
|
+
type: "session.next.compaction.ended.1";
|
|
3024
3037
|
id: string;
|
|
3025
3038
|
seq: number;
|
|
3026
3039
|
aggregateID: string;
|
|
@@ -3034,6 +3047,56 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
3034
3047
|
};
|
|
3035
3048
|
};
|
|
3036
3049
|
};
|
|
3050
|
+
export type SyncEventSessionNextRevertStaged = {
|
|
3051
|
+
type: "sync";
|
|
3052
|
+
id: string;
|
|
3053
|
+
syncEvent: {
|
|
3054
|
+
type: "session.next.revert.staged.1";
|
|
3055
|
+
id: string;
|
|
3056
|
+
seq: number;
|
|
3057
|
+
aggregateID: string;
|
|
3058
|
+
data: {
|
|
3059
|
+
timestamp: number;
|
|
3060
|
+
sessionID: string;
|
|
3061
|
+
revert: {
|
|
3062
|
+
messageID: string;
|
|
3063
|
+
partID?: string;
|
|
3064
|
+
snapshot?: string;
|
|
3065
|
+
diff?: string;
|
|
3066
|
+
files?: Array<FileDiff>;
|
|
3067
|
+
};
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
export type SyncEventSessionNextRevertCleared = {
|
|
3072
|
+
type: "sync";
|
|
3073
|
+
id: string;
|
|
3074
|
+
syncEvent: {
|
|
3075
|
+
type: "session.next.revert.cleared.1";
|
|
3076
|
+
id: string;
|
|
3077
|
+
seq: number;
|
|
3078
|
+
aggregateID: string;
|
|
3079
|
+
data: {
|
|
3080
|
+
timestamp: number;
|
|
3081
|
+
sessionID: string;
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
export type SyncEventSessionNextRevertCommitted = {
|
|
3086
|
+
type: "sync";
|
|
3087
|
+
id: string;
|
|
3088
|
+
syncEvent: {
|
|
3089
|
+
type: "session.next.revert.committed.1";
|
|
3090
|
+
id: string;
|
|
3091
|
+
seq: number;
|
|
3092
|
+
aggregateID: string;
|
|
3093
|
+
data: {
|
|
3094
|
+
timestamp: number;
|
|
3095
|
+
sessionID: string;
|
|
3096
|
+
messageID: string;
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3037
3100
|
export type ConfigV2ReferenceGit = {
|
|
3038
3101
|
repository: string;
|
|
3039
3102
|
branch?: string;
|
|
@@ -3121,6 +3184,13 @@ export type SessionV2Info = {
|
|
|
3121
3184
|
title: string;
|
|
3122
3185
|
location: LocationRef;
|
|
3123
3186
|
subpath?: string;
|
|
3187
|
+
revert?: {
|
|
3188
|
+
messageID: string;
|
|
3189
|
+
partID?: string;
|
|
3190
|
+
snapshot?: string;
|
|
3191
|
+
diff?: string;
|
|
3192
|
+
files?: Array<FileDiff>;
|
|
3193
|
+
};
|
|
3124
3194
|
};
|
|
3125
3195
|
export type SessionInputAdmitted = {
|
|
3126
3196
|
admittedSeq: number;
|
|
@@ -3306,6 +3376,7 @@ export type SessionMessageAssistant = {
|
|
|
3306
3376
|
snapshot?: {
|
|
3307
3377
|
start?: string;
|
|
3308
3378
|
end?: string;
|
|
3379
|
+
files?: Array<string>;
|
|
3309
3380
|
};
|
|
3310
3381
|
finish?: string;
|
|
3311
3382
|
cost?: number;
|
|
@@ -3367,19 +3438,6 @@ export type ModelV2Info = {
|
|
|
3367
3438
|
body: {
|
|
3368
3439
|
[key: string]: unknown;
|
|
3369
3440
|
};
|
|
3370
|
-
generation?: {
|
|
3371
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3372
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3373
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3374
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3375
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3376
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3377
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3378
|
-
stop?: Array<string>;
|
|
3379
|
-
};
|
|
3380
|
-
options?: {
|
|
3381
|
-
[key: string]: unknown;
|
|
3382
|
-
};
|
|
3383
3441
|
variant?: string;
|
|
3384
3442
|
};
|
|
3385
3443
|
variants: Array<{
|
|
@@ -3390,22 +3448,9 @@ export type ModelV2Info = {
|
|
|
3390
3448
|
body: {
|
|
3391
3449
|
[key: string]: unknown;
|
|
3392
3450
|
};
|
|
3393
|
-
generation?: {
|
|
3394
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3395
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3396
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3397
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3398
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3399
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3400
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3401
|
-
stop?: Array<string>;
|
|
3402
|
-
};
|
|
3403
|
-
options?: {
|
|
3404
|
-
[key: string]: unknown;
|
|
3405
|
-
};
|
|
3406
3451
|
}>;
|
|
3407
3452
|
time: {
|
|
3408
|
-
released: number
|
|
3453
|
+
released: number;
|
|
3409
3454
|
};
|
|
3410
3455
|
cost: Array<{
|
|
3411
3456
|
tier?: {
|
|
@@ -3429,6 +3474,7 @@ export type ModelV2Info = {
|
|
|
3429
3474
|
};
|
|
3430
3475
|
export type ProviderV2Info = {
|
|
3431
3476
|
id: string;
|
|
3477
|
+
integrationID?: string;
|
|
3432
3478
|
name: string;
|
|
3433
3479
|
disabled?: boolean;
|
|
3434
3480
|
api: {
|
|
@@ -3504,7 +3550,7 @@ export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
|
3504
3550
|
export type IntegrationInfo = {
|
|
3505
3551
|
id: string;
|
|
3506
3552
|
name: string;
|
|
3507
|
-
methods: Array<
|
|
3553
|
+
methods: Array<IntegrationMethod>;
|
|
3508
3554
|
connections: Array<ConnectionInfo>;
|
|
3509
3555
|
};
|
|
3510
3556
|
export type IntegrationAttempt = {
|
|
@@ -3537,7 +3583,6 @@ export type PermissionSavedInfo = {
|
|
|
3537
3583
|
export type FileSystemEntry = {
|
|
3538
3584
|
path: string;
|
|
3539
3585
|
type: "file" | "directory";
|
|
3540
|
-
mime: string;
|
|
3541
3586
|
};
|
|
3542
3587
|
export type CommandV2Info = {
|
|
3543
3588
|
name: string;
|
|
@@ -3549,14 +3594,1696 @@ export type CommandV2Info = {
|
|
|
3549
3594
|
providerID: string;
|
|
3550
3595
|
variant?: string;
|
|
3551
3596
|
};
|
|
3552
|
-
subtask?: boolean;
|
|
3597
|
+
subtask?: boolean;
|
|
3598
|
+
};
|
|
3599
|
+
export type SkillV2Info = {
|
|
3600
|
+
name: string;
|
|
3601
|
+
description?: string;
|
|
3602
|
+
slash?: boolean;
|
|
3603
|
+
location: string;
|
|
3604
|
+
content: string;
|
|
3605
|
+
};
|
|
3606
|
+
export type V2EventModelsDevRefreshed = {
|
|
3607
|
+
id: string;
|
|
3608
|
+
metadata?: {
|
|
3609
|
+
[key: string]: unknown;
|
|
3610
|
+
};
|
|
3611
|
+
durable?: {
|
|
3612
|
+
aggregateID: string;
|
|
3613
|
+
seq: number;
|
|
3614
|
+
version: number;
|
|
3615
|
+
};
|
|
3616
|
+
location?: LocationRef;
|
|
3617
|
+
type: "models-dev.refreshed";
|
|
3618
|
+
data: {
|
|
3619
|
+
[key: string]: unknown;
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
export type V2EventIntegrationUpdated = {
|
|
3623
|
+
id: string;
|
|
3624
|
+
metadata?: {
|
|
3625
|
+
[key: string]: unknown;
|
|
3626
|
+
};
|
|
3627
|
+
durable?: {
|
|
3628
|
+
aggregateID: string;
|
|
3629
|
+
seq: number;
|
|
3630
|
+
version: number;
|
|
3631
|
+
};
|
|
3632
|
+
location?: LocationRef;
|
|
3633
|
+
type: "integration.updated";
|
|
3634
|
+
data: {
|
|
3635
|
+
[key: string]: unknown;
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
export type V2EventIntegrationConnectionUpdated = {
|
|
3639
|
+
id: string;
|
|
3640
|
+
metadata?: {
|
|
3641
|
+
[key: string]: unknown;
|
|
3642
|
+
};
|
|
3643
|
+
durable?: {
|
|
3644
|
+
aggregateID: string;
|
|
3645
|
+
seq: number;
|
|
3646
|
+
version: number;
|
|
3647
|
+
};
|
|
3648
|
+
location?: LocationRef;
|
|
3649
|
+
type: "integration.connection.updated";
|
|
3650
|
+
data: {
|
|
3651
|
+
integrationID: string;
|
|
3652
|
+
};
|
|
3653
|
+
};
|
|
3654
|
+
export type V2EventCatalogUpdated = {
|
|
3655
|
+
id: string;
|
|
3656
|
+
metadata?: {
|
|
3657
|
+
[key: string]: unknown;
|
|
3658
|
+
};
|
|
3659
|
+
durable?: {
|
|
3660
|
+
aggregateID: string;
|
|
3661
|
+
seq: number;
|
|
3662
|
+
version: number;
|
|
3663
|
+
};
|
|
3664
|
+
location?: LocationRef;
|
|
3665
|
+
type: "catalog.updated";
|
|
3666
|
+
data: {
|
|
3667
|
+
[key: string]: unknown;
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
export type V2EventSessionCreated = {
|
|
3671
|
+
id: string;
|
|
3672
|
+
metadata?: {
|
|
3673
|
+
[key: string]: unknown;
|
|
3674
|
+
};
|
|
3675
|
+
durable?: {
|
|
3676
|
+
aggregateID: string;
|
|
3677
|
+
seq: number;
|
|
3678
|
+
version: number;
|
|
3679
|
+
};
|
|
3680
|
+
location?: LocationRef;
|
|
3681
|
+
type: "session.created";
|
|
3682
|
+
data: {
|
|
3683
|
+
sessionID: string;
|
|
3684
|
+
info: Session;
|
|
3685
|
+
};
|
|
3686
|
+
};
|
|
3687
|
+
export type V2EventSessionUpdated = {
|
|
3688
|
+
id: string;
|
|
3689
|
+
metadata?: {
|
|
3690
|
+
[key: string]: unknown;
|
|
3691
|
+
};
|
|
3692
|
+
durable?: {
|
|
3693
|
+
aggregateID: string;
|
|
3694
|
+
seq: number;
|
|
3695
|
+
version: number;
|
|
3696
|
+
};
|
|
3697
|
+
location?: LocationRef;
|
|
3698
|
+
type: "session.updated";
|
|
3699
|
+
data: {
|
|
3700
|
+
sessionID: string;
|
|
3701
|
+
info: Session;
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
export type V2EventSessionDeleted = {
|
|
3705
|
+
id: string;
|
|
3706
|
+
metadata?: {
|
|
3707
|
+
[key: string]: unknown;
|
|
3708
|
+
};
|
|
3709
|
+
durable?: {
|
|
3710
|
+
aggregateID: string;
|
|
3711
|
+
seq: number;
|
|
3712
|
+
version: number;
|
|
3713
|
+
};
|
|
3714
|
+
location?: LocationRef;
|
|
3715
|
+
type: "session.deleted";
|
|
3716
|
+
data: {
|
|
3717
|
+
sessionID: string;
|
|
3718
|
+
info: Session;
|
|
3719
|
+
};
|
|
3720
|
+
};
|
|
3721
|
+
export type V2EventMessageUpdated = {
|
|
3722
|
+
id: string;
|
|
3723
|
+
metadata?: {
|
|
3724
|
+
[key: string]: unknown;
|
|
3725
|
+
};
|
|
3726
|
+
durable?: {
|
|
3727
|
+
aggregateID: string;
|
|
3728
|
+
seq: number;
|
|
3729
|
+
version: number;
|
|
3730
|
+
};
|
|
3731
|
+
location?: LocationRef;
|
|
3732
|
+
type: "message.updated";
|
|
3733
|
+
data: {
|
|
3734
|
+
sessionID: string;
|
|
3735
|
+
info: Message;
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
export type V2EventMessageRemoved = {
|
|
3739
|
+
id: string;
|
|
3740
|
+
metadata?: {
|
|
3741
|
+
[key: string]: unknown;
|
|
3742
|
+
};
|
|
3743
|
+
durable?: {
|
|
3744
|
+
aggregateID: string;
|
|
3745
|
+
seq: number;
|
|
3746
|
+
version: number;
|
|
3747
|
+
};
|
|
3748
|
+
location?: LocationRef;
|
|
3749
|
+
type: "message.removed";
|
|
3750
|
+
data: {
|
|
3751
|
+
sessionID: string;
|
|
3752
|
+
messageID: string;
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
export type V2EventMessagePartUpdated = {
|
|
3756
|
+
id: string;
|
|
3757
|
+
metadata?: {
|
|
3758
|
+
[key: string]: unknown;
|
|
3759
|
+
};
|
|
3760
|
+
durable?: {
|
|
3761
|
+
aggregateID: string;
|
|
3762
|
+
seq: number;
|
|
3763
|
+
version: number;
|
|
3764
|
+
};
|
|
3765
|
+
location?: LocationRef;
|
|
3766
|
+
type: "message.part.updated";
|
|
3767
|
+
data: {
|
|
3768
|
+
sessionID: string;
|
|
3769
|
+
part: Part;
|
|
3770
|
+
time: number;
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
export type V2EventMessagePartRemoved = {
|
|
3774
|
+
id: string;
|
|
3775
|
+
metadata?: {
|
|
3776
|
+
[key: string]: unknown;
|
|
3777
|
+
};
|
|
3778
|
+
durable?: {
|
|
3779
|
+
aggregateID: string;
|
|
3780
|
+
seq: number;
|
|
3781
|
+
version: number;
|
|
3782
|
+
};
|
|
3783
|
+
location?: LocationRef;
|
|
3784
|
+
type: "message.part.removed";
|
|
3785
|
+
data: {
|
|
3786
|
+
sessionID: string;
|
|
3787
|
+
messageID: string;
|
|
3788
|
+
partID: string;
|
|
3789
|
+
};
|
|
3790
|
+
};
|
|
3791
|
+
export type V2EventSessionNextAgentSwitched = {
|
|
3792
|
+
id: string;
|
|
3793
|
+
metadata?: {
|
|
3794
|
+
[key: string]: unknown;
|
|
3795
|
+
};
|
|
3796
|
+
durable?: {
|
|
3797
|
+
aggregateID: string;
|
|
3798
|
+
seq: number;
|
|
3799
|
+
version: number;
|
|
3800
|
+
};
|
|
3801
|
+
location?: LocationRef;
|
|
3802
|
+
type: "session.next.agent.switched";
|
|
3803
|
+
data: {
|
|
3804
|
+
timestamp: number;
|
|
3805
|
+
sessionID: string;
|
|
3806
|
+
messageID: string;
|
|
3807
|
+
agent: string;
|
|
3808
|
+
};
|
|
3809
|
+
};
|
|
3810
|
+
export type V2EventSessionNextModelSwitched = {
|
|
3811
|
+
id: string;
|
|
3812
|
+
metadata?: {
|
|
3813
|
+
[key: string]: unknown;
|
|
3814
|
+
};
|
|
3815
|
+
durable?: {
|
|
3816
|
+
aggregateID: string;
|
|
3817
|
+
seq: number;
|
|
3818
|
+
version: number;
|
|
3819
|
+
};
|
|
3820
|
+
location?: LocationRef;
|
|
3821
|
+
type: "session.next.model.switched";
|
|
3822
|
+
data: {
|
|
3823
|
+
timestamp: number;
|
|
3824
|
+
sessionID: string;
|
|
3825
|
+
messageID: string;
|
|
3826
|
+
model: {
|
|
3827
|
+
id: string;
|
|
3828
|
+
providerID: string;
|
|
3829
|
+
variant?: string;
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
|
+
export type V2EventSessionNextMoved = {
|
|
3834
|
+
id: string;
|
|
3835
|
+
metadata?: {
|
|
3836
|
+
[key: string]: unknown;
|
|
3837
|
+
};
|
|
3838
|
+
durable?: {
|
|
3839
|
+
aggregateID: string;
|
|
3840
|
+
seq: number;
|
|
3841
|
+
version: number;
|
|
3842
|
+
};
|
|
3843
|
+
location?: LocationRef;
|
|
3844
|
+
type: "session.next.moved";
|
|
3845
|
+
data: {
|
|
3846
|
+
timestamp: number;
|
|
3847
|
+
sessionID: string;
|
|
3848
|
+
location: LocationRef;
|
|
3849
|
+
subdirectory?: string;
|
|
3850
|
+
};
|
|
3851
|
+
};
|
|
3852
|
+
export type V2EventSessionNextPrompted = {
|
|
3853
|
+
id: string;
|
|
3854
|
+
metadata?: {
|
|
3855
|
+
[key: string]: unknown;
|
|
3856
|
+
};
|
|
3857
|
+
durable?: {
|
|
3858
|
+
aggregateID: string;
|
|
3859
|
+
seq: number;
|
|
3860
|
+
version: number;
|
|
3861
|
+
};
|
|
3862
|
+
location?: LocationRef;
|
|
3863
|
+
type: "session.next.prompted";
|
|
3864
|
+
data: {
|
|
3865
|
+
timestamp: number;
|
|
3866
|
+
sessionID: string;
|
|
3867
|
+
messageID: string;
|
|
3868
|
+
prompt: Prompt;
|
|
3869
|
+
delivery: "steer" | "queue";
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
export type V2EventSessionNextPromptAdmitted = {
|
|
3873
|
+
id: string;
|
|
3874
|
+
metadata?: {
|
|
3875
|
+
[key: string]: unknown;
|
|
3876
|
+
};
|
|
3877
|
+
durable?: {
|
|
3878
|
+
aggregateID: string;
|
|
3879
|
+
seq: number;
|
|
3880
|
+
version: number;
|
|
3881
|
+
};
|
|
3882
|
+
location?: LocationRef;
|
|
3883
|
+
type: "session.next.prompt.admitted";
|
|
3884
|
+
data: {
|
|
3885
|
+
timestamp: number;
|
|
3886
|
+
sessionID: string;
|
|
3887
|
+
messageID: string;
|
|
3888
|
+
prompt: Prompt;
|
|
3889
|
+
delivery: "steer" | "queue";
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
export type V2EventSessionNextContextUpdated = {
|
|
3893
|
+
id: string;
|
|
3894
|
+
metadata?: {
|
|
3895
|
+
[key: string]: unknown;
|
|
3896
|
+
};
|
|
3897
|
+
durable?: {
|
|
3898
|
+
aggregateID: string;
|
|
3899
|
+
seq: number;
|
|
3900
|
+
version: number;
|
|
3901
|
+
};
|
|
3902
|
+
location?: LocationRef;
|
|
3903
|
+
type: "session.next.context.updated";
|
|
3904
|
+
data: {
|
|
3905
|
+
timestamp: number;
|
|
3906
|
+
sessionID: string;
|
|
3907
|
+
messageID: string;
|
|
3908
|
+
text: string;
|
|
3909
|
+
};
|
|
3910
|
+
};
|
|
3911
|
+
export type V2EventSessionNextSynthetic = {
|
|
3912
|
+
id: string;
|
|
3913
|
+
metadata?: {
|
|
3914
|
+
[key: string]: unknown;
|
|
3915
|
+
};
|
|
3916
|
+
durable?: {
|
|
3917
|
+
aggregateID: string;
|
|
3918
|
+
seq: number;
|
|
3919
|
+
version: number;
|
|
3920
|
+
};
|
|
3921
|
+
location?: LocationRef;
|
|
3922
|
+
type: "session.next.synthetic";
|
|
3923
|
+
data: {
|
|
3924
|
+
timestamp: number;
|
|
3925
|
+
sessionID: string;
|
|
3926
|
+
messageID: string;
|
|
3927
|
+
text: string;
|
|
3928
|
+
};
|
|
3929
|
+
};
|
|
3930
|
+
export type V2EventSessionNextShellStarted = {
|
|
3931
|
+
id: string;
|
|
3932
|
+
metadata?: {
|
|
3933
|
+
[key: string]: unknown;
|
|
3934
|
+
};
|
|
3935
|
+
durable?: {
|
|
3936
|
+
aggregateID: string;
|
|
3937
|
+
seq: number;
|
|
3938
|
+
version: number;
|
|
3939
|
+
};
|
|
3940
|
+
location?: LocationRef;
|
|
3941
|
+
type: "session.next.shell.started";
|
|
3942
|
+
data: {
|
|
3943
|
+
timestamp: number;
|
|
3944
|
+
sessionID: string;
|
|
3945
|
+
messageID: string;
|
|
3946
|
+
callID: string;
|
|
3947
|
+
command: string;
|
|
3948
|
+
};
|
|
3949
|
+
};
|
|
3950
|
+
export type V2EventSessionNextShellEnded = {
|
|
3951
|
+
id: string;
|
|
3952
|
+
metadata?: {
|
|
3953
|
+
[key: string]: unknown;
|
|
3954
|
+
};
|
|
3955
|
+
durable?: {
|
|
3956
|
+
aggregateID: string;
|
|
3957
|
+
seq: number;
|
|
3958
|
+
version: number;
|
|
3959
|
+
};
|
|
3960
|
+
location?: LocationRef;
|
|
3961
|
+
type: "session.next.shell.ended";
|
|
3962
|
+
data: {
|
|
3963
|
+
timestamp: number;
|
|
3964
|
+
sessionID: string;
|
|
3965
|
+
callID: string;
|
|
3966
|
+
output: string;
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
export type V2EventSessionNextStepStarted = {
|
|
3970
|
+
id: string;
|
|
3971
|
+
metadata?: {
|
|
3972
|
+
[key: string]: unknown;
|
|
3973
|
+
};
|
|
3974
|
+
durable?: {
|
|
3975
|
+
aggregateID: string;
|
|
3976
|
+
seq: number;
|
|
3977
|
+
version: number;
|
|
3978
|
+
};
|
|
3979
|
+
location?: LocationRef;
|
|
3980
|
+
type: "session.next.step.started";
|
|
3981
|
+
data: {
|
|
3982
|
+
timestamp: number;
|
|
3983
|
+
sessionID: string;
|
|
3984
|
+
assistantMessageID: string;
|
|
3985
|
+
agent: string;
|
|
3986
|
+
model: {
|
|
3987
|
+
id: string;
|
|
3988
|
+
providerID: string;
|
|
3989
|
+
variant?: string;
|
|
3990
|
+
};
|
|
3991
|
+
snapshot?: string;
|
|
3992
|
+
};
|
|
3993
|
+
};
|
|
3994
|
+
export type V2EventSessionNextStepEnded = {
|
|
3995
|
+
id: string;
|
|
3996
|
+
metadata?: {
|
|
3997
|
+
[key: string]: unknown;
|
|
3998
|
+
};
|
|
3999
|
+
durable?: {
|
|
4000
|
+
aggregateID: string;
|
|
4001
|
+
seq: number;
|
|
4002
|
+
version: number;
|
|
4003
|
+
};
|
|
4004
|
+
location?: LocationRef;
|
|
4005
|
+
type: "session.next.step.ended";
|
|
4006
|
+
data: {
|
|
4007
|
+
timestamp: number;
|
|
4008
|
+
sessionID: string;
|
|
4009
|
+
assistantMessageID: string;
|
|
4010
|
+
finish: string;
|
|
4011
|
+
cost: number;
|
|
4012
|
+
tokens: {
|
|
4013
|
+
input: number;
|
|
4014
|
+
output: number;
|
|
4015
|
+
reasoning: number;
|
|
4016
|
+
cache: {
|
|
4017
|
+
read: number;
|
|
4018
|
+
write: number;
|
|
4019
|
+
};
|
|
4020
|
+
};
|
|
4021
|
+
snapshot?: string;
|
|
4022
|
+
files?: Array<string>;
|
|
4023
|
+
};
|
|
4024
|
+
};
|
|
4025
|
+
export type V2EventSessionNextStepFailed = {
|
|
4026
|
+
id: string;
|
|
4027
|
+
metadata?: {
|
|
4028
|
+
[key: string]: unknown;
|
|
4029
|
+
};
|
|
4030
|
+
durable?: {
|
|
4031
|
+
aggregateID: string;
|
|
4032
|
+
seq: number;
|
|
4033
|
+
version: number;
|
|
4034
|
+
};
|
|
4035
|
+
location?: LocationRef;
|
|
4036
|
+
type: "session.next.step.failed";
|
|
4037
|
+
data: {
|
|
4038
|
+
timestamp: number;
|
|
4039
|
+
sessionID: string;
|
|
4040
|
+
assistantMessageID: string;
|
|
4041
|
+
error: SessionErrorUnknown;
|
|
4042
|
+
};
|
|
4043
|
+
};
|
|
4044
|
+
export type V2EventSessionNextTextStarted = {
|
|
4045
|
+
id: string;
|
|
4046
|
+
metadata?: {
|
|
4047
|
+
[key: string]: unknown;
|
|
4048
|
+
};
|
|
4049
|
+
durable?: {
|
|
4050
|
+
aggregateID: string;
|
|
4051
|
+
seq: number;
|
|
4052
|
+
version: number;
|
|
4053
|
+
};
|
|
4054
|
+
location?: LocationRef;
|
|
4055
|
+
type: "session.next.text.started";
|
|
4056
|
+
data: {
|
|
4057
|
+
timestamp: number;
|
|
4058
|
+
sessionID: string;
|
|
4059
|
+
assistantMessageID: string;
|
|
4060
|
+
textID: string;
|
|
4061
|
+
};
|
|
4062
|
+
};
|
|
4063
|
+
export type V2EventSessionNextTextDelta = {
|
|
4064
|
+
id: string;
|
|
4065
|
+
metadata?: {
|
|
4066
|
+
[key: string]: unknown;
|
|
4067
|
+
};
|
|
4068
|
+
durable?: {
|
|
4069
|
+
aggregateID: string;
|
|
4070
|
+
seq: number;
|
|
4071
|
+
version: number;
|
|
4072
|
+
};
|
|
4073
|
+
location?: LocationRef;
|
|
4074
|
+
type: "session.next.text.delta";
|
|
4075
|
+
data: {
|
|
4076
|
+
timestamp: number;
|
|
4077
|
+
sessionID: string;
|
|
4078
|
+
assistantMessageID: string;
|
|
4079
|
+
textID: string;
|
|
4080
|
+
delta: string;
|
|
4081
|
+
};
|
|
4082
|
+
};
|
|
4083
|
+
export type V2EventSessionNextTextEnded = {
|
|
4084
|
+
id: string;
|
|
4085
|
+
metadata?: {
|
|
4086
|
+
[key: string]: unknown;
|
|
4087
|
+
};
|
|
4088
|
+
durable?: {
|
|
4089
|
+
aggregateID: string;
|
|
4090
|
+
seq: number;
|
|
4091
|
+
version: number;
|
|
4092
|
+
};
|
|
4093
|
+
location?: LocationRef;
|
|
4094
|
+
type: "session.next.text.ended";
|
|
4095
|
+
data: {
|
|
4096
|
+
timestamp: number;
|
|
4097
|
+
sessionID: string;
|
|
4098
|
+
assistantMessageID: string;
|
|
4099
|
+
textID: string;
|
|
4100
|
+
text: string;
|
|
4101
|
+
};
|
|
4102
|
+
};
|
|
4103
|
+
export type V2EventSessionNextReasoningStarted = {
|
|
4104
|
+
id: string;
|
|
4105
|
+
metadata?: {
|
|
4106
|
+
[key: string]: unknown;
|
|
4107
|
+
};
|
|
4108
|
+
durable?: {
|
|
4109
|
+
aggregateID: string;
|
|
4110
|
+
seq: number;
|
|
4111
|
+
version: number;
|
|
4112
|
+
};
|
|
4113
|
+
location?: LocationRef;
|
|
4114
|
+
type: "session.next.reasoning.started";
|
|
4115
|
+
data: {
|
|
4116
|
+
timestamp: number;
|
|
4117
|
+
sessionID: string;
|
|
4118
|
+
assistantMessageID: string;
|
|
4119
|
+
reasoningID: string;
|
|
4120
|
+
providerMetadata?: {
|
|
4121
|
+
[key: string]: {
|
|
4122
|
+
[key: string]: unknown;
|
|
4123
|
+
};
|
|
4124
|
+
};
|
|
4125
|
+
};
|
|
4126
|
+
};
|
|
4127
|
+
export type V2EventSessionNextReasoningDelta = {
|
|
4128
|
+
id: string;
|
|
4129
|
+
metadata?: {
|
|
4130
|
+
[key: string]: unknown;
|
|
4131
|
+
};
|
|
4132
|
+
durable?: {
|
|
4133
|
+
aggregateID: string;
|
|
4134
|
+
seq: number;
|
|
4135
|
+
version: number;
|
|
4136
|
+
};
|
|
4137
|
+
location?: LocationRef;
|
|
4138
|
+
type: "session.next.reasoning.delta";
|
|
4139
|
+
data: {
|
|
4140
|
+
timestamp: number;
|
|
4141
|
+
sessionID: string;
|
|
4142
|
+
assistantMessageID: string;
|
|
4143
|
+
reasoningID: string;
|
|
4144
|
+
delta: string;
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
export type V2EventSessionNextReasoningEnded = {
|
|
4148
|
+
id: string;
|
|
4149
|
+
metadata?: {
|
|
4150
|
+
[key: string]: unknown;
|
|
4151
|
+
};
|
|
4152
|
+
durable?: {
|
|
4153
|
+
aggregateID: string;
|
|
4154
|
+
seq: number;
|
|
4155
|
+
version: number;
|
|
4156
|
+
};
|
|
4157
|
+
location?: LocationRef;
|
|
4158
|
+
type: "session.next.reasoning.ended";
|
|
4159
|
+
data: {
|
|
4160
|
+
timestamp: number;
|
|
4161
|
+
sessionID: string;
|
|
4162
|
+
assistantMessageID: string;
|
|
4163
|
+
reasoningID: string;
|
|
4164
|
+
text: string;
|
|
4165
|
+
providerMetadata?: {
|
|
4166
|
+
[key: string]: {
|
|
4167
|
+
[key: string]: unknown;
|
|
4168
|
+
};
|
|
4169
|
+
};
|
|
4170
|
+
};
|
|
4171
|
+
};
|
|
4172
|
+
export type V2EventSessionNextToolInputStarted = {
|
|
4173
|
+
id: string;
|
|
4174
|
+
metadata?: {
|
|
4175
|
+
[key: string]: unknown;
|
|
4176
|
+
};
|
|
4177
|
+
durable?: {
|
|
4178
|
+
aggregateID: string;
|
|
4179
|
+
seq: number;
|
|
4180
|
+
version: number;
|
|
4181
|
+
};
|
|
4182
|
+
location?: LocationRef;
|
|
4183
|
+
type: "session.next.tool.input.started";
|
|
4184
|
+
data: {
|
|
4185
|
+
timestamp: number;
|
|
4186
|
+
sessionID: string;
|
|
4187
|
+
assistantMessageID: string;
|
|
4188
|
+
callID: string;
|
|
4189
|
+
name: string;
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
export type V2EventSessionNextToolInputDelta = {
|
|
4193
|
+
id: string;
|
|
4194
|
+
metadata?: {
|
|
4195
|
+
[key: string]: unknown;
|
|
4196
|
+
};
|
|
4197
|
+
durable?: {
|
|
4198
|
+
aggregateID: string;
|
|
4199
|
+
seq: number;
|
|
4200
|
+
version: number;
|
|
4201
|
+
};
|
|
4202
|
+
location?: LocationRef;
|
|
4203
|
+
type: "session.next.tool.input.delta";
|
|
4204
|
+
data: {
|
|
4205
|
+
timestamp: number;
|
|
4206
|
+
sessionID: string;
|
|
4207
|
+
assistantMessageID: string;
|
|
4208
|
+
callID: string;
|
|
4209
|
+
delta: string;
|
|
4210
|
+
};
|
|
4211
|
+
};
|
|
4212
|
+
export type V2EventSessionNextToolInputEnded = {
|
|
4213
|
+
id: string;
|
|
4214
|
+
metadata?: {
|
|
4215
|
+
[key: string]: unknown;
|
|
4216
|
+
};
|
|
4217
|
+
durable?: {
|
|
4218
|
+
aggregateID: string;
|
|
4219
|
+
seq: number;
|
|
4220
|
+
version: number;
|
|
4221
|
+
};
|
|
4222
|
+
location?: LocationRef;
|
|
4223
|
+
type: "session.next.tool.input.ended";
|
|
4224
|
+
data: {
|
|
4225
|
+
timestamp: number;
|
|
4226
|
+
sessionID: string;
|
|
4227
|
+
assistantMessageID: string;
|
|
4228
|
+
callID: string;
|
|
4229
|
+
text: string;
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
export type V2EventSessionNextToolCalled = {
|
|
4233
|
+
id: string;
|
|
4234
|
+
metadata?: {
|
|
4235
|
+
[key: string]: unknown;
|
|
4236
|
+
};
|
|
4237
|
+
durable?: {
|
|
4238
|
+
aggregateID: string;
|
|
4239
|
+
seq: number;
|
|
4240
|
+
version: number;
|
|
4241
|
+
};
|
|
4242
|
+
location?: LocationRef;
|
|
4243
|
+
type: "session.next.tool.called";
|
|
4244
|
+
data: {
|
|
4245
|
+
timestamp: number;
|
|
4246
|
+
sessionID: string;
|
|
4247
|
+
assistantMessageID: string;
|
|
4248
|
+
callID: string;
|
|
4249
|
+
tool: string;
|
|
4250
|
+
input: {
|
|
4251
|
+
[key: string]: unknown;
|
|
4252
|
+
};
|
|
4253
|
+
provider: {
|
|
4254
|
+
executed: boolean;
|
|
4255
|
+
metadata?: {
|
|
4256
|
+
[key: string]: {
|
|
4257
|
+
[key: string]: unknown;
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
};
|
|
4261
|
+
};
|
|
4262
|
+
};
|
|
4263
|
+
export type V2EventSessionNextToolProgress = {
|
|
4264
|
+
id: string;
|
|
4265
|
+
metadata?: {
|
|
4266
|
+
[key: string]: unknown;
|
|
4267
|
+
};
|
|
4268
|
+
durable?: {
|
|
4269
|
+
aggregateID: string;
|
|
4270
|
+
seq: number;
|
|
4271
|
+
version: number;
|
|
4272
|
+
};
|
|
4273
|
+
location?: LocationRef;
|
|
4274
|
+
type: "session.next.tool.progress";
|
|
4275
|
+
data: {
|
|
4276
|
+
timestamp: number;
|
|
4277
|
+
sessionID: string;
|
|
4278
|
+
assistantMessageID: string;
|
|
4279
|
+
callID: string;
|
|
4280
|
+
structured: {
|
|
4281
|
+
[key: string]: unknown;
|
|
4282
|
+
};
|
|
4283
|
+
content: Array<ToolTextContent | ToolFileContent>;
|
|
4284
|
+
};
|
|
4285
|
+
};
|
|
4286
|
+
export type V2EventSessionNextToolSuccess = {
|
|
4287
|
+
id: string;
|
|
4288
|
+
metadata?: {
|
|
4289
|
+
[key: string]: unknown;
|
|
4290
|
+
};
|
|
4291
|
+
durable?: {
|
|
4292
|
+
aggregateID: string;
|
|
4293
|
+
seq: number;
|
|
4294
|
+
version: number;
|
|
4295
|
+
};
|
|
4296
|
+
location?: LocationRef;
|
|
4297
|
+
type: "session.next.tool.success";
|
|
4298
|
+
data: {
|
|
4299
|
+
timestamp: number;
|
|
4300
|
+
sessionID: string;
|
|
4301
|
+
assistantMessageID: string;
|
|
4302
|
+
callID: string;
|
|
4303
|
+
structured: {
|
|
4304
|
+
[key: string]: unknown;
|
|
4305
|
+
};
|
|
4306
|
+
content: Array<ToolTextContent | ToolFileContent>;
|
|
4307
|
+
outputPaths?: Array<string>;
|
|
4308
|
+
result?: unknown;
|
|
4309
|
+
provider: {
|
|
4310
|
+
executed: boolean;
|
|
4311
|
+
metadata?: {
|
|
4312
|
+
[key: string]: {
|
|
4313
|
+
[key: string]: unknown;
|
|
4314
|
+
};
|
|
4315
|
+
};
|
|
4316
|
+
};
|
|
4317
|
+
};
|
|
4318
|
+
};
|
|
4319
|
+
export type V2EventSessionNextToolFailed = {
|
|
4320
|
+
id: string;
|
|
4321
|
+
metadata?: {
|
|
4322
|
+
[key: string]: unknown;
|
|
4323
|
+
};
|
|
4324
|
+
durable?: {
|
|
4325
|
+
aggregateID: string;
|
|
4326
|
+
seq: number;
|
|
4327
|
+
version: number;
|
|
4328
|
+
};
|
|
4329
|
+
location?: LocationRef;
|
|
4330
|
+
type: "session.next.tool.failed";
|
|
4331
|
+
data: {
|
|
4332
|
+
timestamp: number;
|
|
4333
|
+
sessionID: string;
|
|
4334
|
+
assistantMessageID: string;
|
|
4335
|
+
callID: string;
|
|
4336
|
+
error: SessionErrorUnknown;
|
|
4337
|
+
result?: unknown;
|
|
4338
|
+
provider: {
|
|
4339
|
+
executed: boolean;
|
|
4340
|
+
metadata?: {
|
|
4341
|
+
[key: string]: {
|
|
4342
|
+
[key: string]: unknown;
|
|
4343
|
+
};
|
|
4344
|
+
};
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
};
|
|
4348
|
+
export type V2EventSessionNextRetried = {
|
|
4349
|
+
id: string;
|
|
4350
|
+
metadata?: {
|
|
4351
|
+
[key: string]: unknown;
|
|
4352
|
+
};
|
|
4353
|
+
durable?: {
|
|
4354
|
+
aggregateID: string;
|
|
4355
|
+
seq: number;
|
|
4356
|
+
version: number;
|
|
4357
|
+
};
|
|
4358
|
+
location?: LocationRef;
|
|
4359
|
+
type: "session.next.retried";
|
|
4360
|
+
data: {
|
|
4361
|
+
timestamp: number;
|
|
4362
|
+
sessionID: string;
|
|
4363
|
+
attempt: number;
|
|
4364
|
+
error: SessionNextRetryError;
|
|
4365
|
+
};
|
|
4366
|
+
};
|
|
4367
|
+
export type V2EventSessionNextCompactionStarted = {
|
|
4368
|
+
id: string;
|
|
4369
|
+
metadata?: {
|
|
4370
|
+
[key: string]: unknown;
|
|
4371
|
+
};
|
|
4372
|
+
durable?: {
|
|
4373
|
+
aggregateID: string;
|
|
4374
|
+
seq: number;
|
|
4375
|
+
version: number;
|
|
4376
|
+
};
|
|
4377
|
+
location?: LocationRef;
|
|
4378
|
+
type: "session.next.compaction.started";
|
|
4379
|
+
data: {
|
|
4380
|
+
timestamp: number;
|
|
4381
|
+
sessionID: string;
|
|
4382
|
+
messageID: string;
|
|
4383
|
+
reason: "auto" | "manual";
|
|
4384
|
+
};
|
|
4385
|
+
};
|
|
4386
|
+
export type V2EventSessionNextCompactionDelta = {
|
|
4387
|
+
id: string;
|
|
4388
|
+
metadata?: {
|
|
4389
|
+
[key: string]: unknown;
|
|
4390
|
+
};
|
|
4391
|
+
durable?: {
|
|
4392
|
+
aggregateID: string;
|
|
4393
|
+
seq: number;
|
|
4394
|
+
version: number;
|
|
4395
|
+
};
|
|
4396
|
+
location?: LocationRef;
|
|
4397
|
+
type: "session.next.compaction.delta";
|
|
4398
|
+
data: {
|
|
4399
|
+
timestamp: number;
|
|
4400
|
+
sessionID: string;
|
|
4401
|
+
messageID: string;
|
|
4402
|
+
text: string;
|
|
4403
|
+
};
|
|
4404
|
+
};
|
|
4405
|
+
export type V2EventSessionNextCompactionEnded = {
|
|
4406
|
+
id: string;
|
|
4407
|
+
metadata?: {
|
|
4408
|
+
[key: string]: unknown;
|
|
4409
|
+
};
|
|
4410
|
+
durable?: {
|
|
4411
|
+
aggregateID: string;
|
|
4412
|
+
seq: number;
|
|
4413
|
+
version: number;
|
|
4414
|
+
};
|
|
4415
|
+
location?: LocationRef;
|
|
4416
|
+
type: "session.next.compaction.ended";
|
|
4417
|
+
data: {
|
|
4418
|
+
timestamp: number;
|
|
4419
|
+
sessionID: string;
|
|
4420
|
+
messageID: string;
|
|
4421
|
+
reason: "auto" | "manual";
|
|
4422
|
+
text: string;
|
|
4423
|
+
recent: string;
|
|
4424
|
+
};
|
|
4425
|
+
};
|
|
4426
|
+
export type V2EventSessionNextRevertStaged = {
|
|
4427
|
+
id: string;
|
|
4428
|
+
metadata?: {
|
|
4429
|
+
[key: string]: unknown;
|
|
4430
|
+
};
|
|
4431
|
+
durable?: {
|
|
4432
|
+
aggregateID: string;
|
|
4433
|
+
seq: number;
|
|
4434
|
+
version: number;
|
|
4435
|
+
};
|
|
4436
|
+
location?: LocationRef;
|
|
4437
|
+
type: "session.next.revert.staged";
|
|
4438
|
+
data: {
|
|
4439
|
+
timestamp: number;
|
|
4440
|
+
sessionID: string;
|
|
4441
|
+
revert: {
|
|
4442
|
+
messageID: string;
|
|
4443
|
+
partID?: string;
|
|
4444
|
+
snapshot?: string;
|
|
4445
|
+
diff?: string;
|
|
4446
|
+
files?: Array<FileDiff>;
|
|
4447
|
+
};
|
|
4448
|
+
};
|
|
4449
|
+
};
|
|
4450
|
+
export type V2EventSessionNextRevertCleared = {
|
|
4451
|
+
id: string;
|
|
4452
|
+
metadata?: {
|
|
4453
|
+
[key: string]: unknown;
|
|
4454
|
+
};
|
|
4455
|
+
durable?: {
|
|
4456
|
+
aggregateID: string;
|
|
4457
|
+
seq: number;
|
|
4458
|
+
version: number;
|
|
4459
|
+
};
|
|
4460
|
+
location?: LocationRef;
|
|
4461
|
+
type: "session.next.revert.cleared";
|
|
4462
|
+
data: {
|
|
4463
|
+
timestamp: number;
|
|
4464
|
+
sessionID: string;
|
|
4465
|
+
};
|
|
4466
|
+
};
|
|
4467
|
+
export type V2EventSessionNextRevertCommitted = {
|
|
4468
|
+
id: string;
|
|
4469
|
+
metadata?: {
|
|
4470
|
+
[key: string]: unknown;
|
|
4471
|
+
};
|
|
4472
|
+
durable?: {
|
|
4473
|
+
aggregateID: string;
|
|
4474
|
+
seq: number;
|
|
4475
|
+
version: number;
|
|
4476
|
+
};
|
|
4477
|
+
location?: LocationRef;
|
|
4478
|
+
type: "session.next.revert.committed";
|
|
4479
|
+
data: {
|
|
4480
|
+
timestamp: number;
|
|
4481
|
+
sessionID: string;
|
|
4482
|
+
messageID: string;
|
|
4483
|
+
};
|
|
4484
|
+
};
|
|
4485
|
+
export type V2EventMessagePartDelta = {
|
|
4486
|
+
id: string;
|
|
4487
|
+
metadata?: {
|
|
4488
|
+
[key: string]: unknown;
|
|
4489
|
+
};
|
|
4490
|
+
durable?: {
|
|
4491
|
+
aggregateID: string;
|
|
4492
|
+
seq: number;
|
|
4493
|
+
version: number;
|
|
4494
|
+
};
|
|
4495
|
+
location?: LocationRef;
|
|
4496
|
+
type: "message.part.delta";
|
|
4497
|
+
data: {
|
|
4498
|
+
sessionID: string;
|
|
4499
|
+
messageID: string;
|
|
4500
|
+
partID: string;
|
|
4501
|
+
field: string;
|
|
4502
|
+
delta: string;
|
|
4503
|
+
};
|
|
4504
|
+
};
|
|
4505
|
+
export type V2EventSessionDiff = {
|
|
4506
|
+
id: string;
|
|
4507
|
+
metadata?: {
|
|
4508
|
+
[key: string]: unknown;
|
|
4509
|
+
};
|
|
4510
|
+
durable?: {
|
|
4511
|
+
aggregateID: string;
|
|
4512
|
+
seq: number;
|
|
4513
|
+
version: number;
|
|
4514
|
+
};
|
|
4515
|
+
location?: LocationRef;
|
|
4516
|
+
type: "session.diff";
|
|
4517
|
+
data: {
|
|
4518
|
+
sessionID: string;
|
|
4519
|
+
diff: Array<SnapshotFileDiff>;
|
|
4520
|
+
};
|
|
4521
|
+
};
|
|
4522
|
+
export type V2EventSessionError = {
|
|
4523
|
+
id: string;
|
|
4524
|
+
metadata?: {
|
|
4525
|
+
[key: string]: unknown;
|
|
4526
|
+
};
|
|
4527
|
+
durable?: {
|
|
4528
|
+
aggregateID: string;
|
|
4529
|
+
seq: number;
|
|
4530
|
+
version: number;
|
|
4531
|
+
};
|
|
4532
|
+
location?: LocationRef;
|
|
4533
|
+
type: "session.error";
|
|
4534
|
+
data: {
|
|
4535
|
+
sessionID?: string;
|
|
4536
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
|
|
4537
|
+
};
|
|
4538
|
+
};
|
|
4539
|
+
export type V2EventInstallationUpdated = {
|
|
4540
|
+
id: string;
|
|
4541
|
+
metadata?: {
|
|
4542
|
+
[key: string]: unknown;
|
|
4543
|
+
};
|
|
4544
|
+
durable?: {
|
|
4545
|
+
aggregateID: string;
|
|
4546
|
+
seq: number;
|
|
4547
|
+
version: number;
|
|
4548
|
+
};
|
|
4549
|
+
location?: LocationRef;
|
|
4550
|
+
type: "installation.updated";
|
|
4551
|
+
data: {
|
|
4552
|
+
version: string;
|
|
4553
|
+
};
|
|
4554
|
+
};
|
|
4555
|
+
export type V2EventInstallationUpdateAvailable = {
|
|
4556
|
+
id: string;
|
|
4557
|
+
metadata?: {
|
|
4558
|
+
[key: string]: unknown;
|
|
4559
|
+
};
|
|
4560
|
+
durable?: {
|
|
4561
|
+
aggregateID: string;
|
|
4562
|
+
seq: number;
|
|
4563
|
+
version: number;
|
|
4564
|
+
};
|
|
4565
|
+
location?: LocationRef;
|
|
4566
|
+
type: "installation.update-available";
|
|
4567
|
+
data: {
|
|
4568
|
+
version: string;
|
|
4569
|
+
};
|
|
4570
|
+
};
|
|
4571
|
+
export type V2EventFileEdited = {
|
|
4572
|
+
id: string;
|
|
4573
|
+
metadata?: {
|
|
4574
|
+
[key: string]: unknown;
|
|
4575
|
+
};
|
|
4576
|
+
durable?: {
|
|
4577
|
+
aggregateID: string;
|
|
4578
|
+
seq: number;
|
|
4579
|
+
version: number;
|
|
4580
|
+
};
|
|
4581
|
+
location?: LocationRef;
|
|
4582
|
+
type: "file.edited";
|
|
4583
|
+
data: {
|
|
4584
|
+
file: string;
|
|
4585
|
+
};
|
|
4586
|
+
};
|
|
4587
|
+
export type V2EventReferenceUpdated = {
|
|
4588
|
+
id: string;
|
|
4589
|
+
metadata?: {
|
|
4590
|
+
[key: string]: unknown;
|
|
4591
|
+
};
|
|
4592
|
+
durable?: {
|
|
4593
|
+
aggregateID: string;
|
|
4594
|
+
seq: number;
|
|
4595
|
+
version: number;
|
|
4596
|
+
};
|
|
4597
|
+
location?: LocationRef;
|
|
4598
|
+
type: "reference.updated";
|
|
4599
|
+
data: {
|
|
4600
|
+
[key: string]: unknown;
|
|
4601
|
+
};
|
|
4602
|
+
};
|
|
4603
|
+
export type V2EventPermissionV2Asked = {
|
|
4604
|
+
id: string;
|
|
4605
|
+
metadata?: {
|
|
4606
|
+
[key: string]: unknown;
|
|
4607
|
+
};
|
|
4608
|
+
durable?: {
|
|
4609
|
+
aggregateID: string;
|
|
4610
|
+
seq: number;
|
|
4611
|
+
version: number;
|
|
4612
|
+
};
|
|
4613
|
+
location?: LocationRef;
|
|
4614
|
+
type: "permission.v2.asked";
|
|
4615
|
+
data: {
|
|
4616
|
+
id: string;
|
|
4617
|
+
sessionID: string;
|
|
4618
|
+
action: string;
|
|
4619
|
+
resources: Array<string>;
|
|
4620
|
+
save?: Array<string>;
|
|
4621
|
+
metadata?: {
|
|
4622
|
+
[key: string]: unknown;
|
|
4623
|
+
};
|
|
4624
|
+
source?: PermissionV2Source;
|
|
4625
|
+
};
|
|
4626
|
+
};
|
|
4627
|
+
export type V2EventPermissionV2Replied = {
|
|
4628
|
+
id: string;
|
|
4629
|
+
metadata?: {
|
|
4630
|
+
[key: string]: unknown;
|
|
4631
|
+
};
|
|
4632
|
+
durable?: {
|
|
4633
|
+
aggregateID: string;
|
|
4634
|
+
seq: number;
|
|
4635
|
+
version: number;
|
|
4636
|
+
};
|
|
4637
|
+
location?: LocationRef;
|
|
4638
|
+
type: "permission.v2.replied";
|
|
4639
|
+
data: {
|
|
4640
|
+
sessionID: string;
|
|
4641
|
+
requestID: string;
|
|
4642
|
+
reply: PermissionV2Reply;
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
export type V2EventPluginAdded = {
|
|
4646
|
+
id: string;
|
|
4647
|
+
metadata?: {
|
|
4648
|
+
[key: string]: unknown;
|
|
4649
|
+
};
|
|
4650
|
+
durable?: {
|
|
4651
|
+
aggregateID: string;
|
|
4652
|
+
seq: number;
|
|
4653
|
+
version: number;
|
|
4654
|
+
};
|
|
4655
|
+
location?: LocationRef;
|
|
4656
|
+
type: "plugin.added";
|
|
4657
|
+
data: {
|
|
4658
|
+
id: string;
|
|
4659
|
+
};
|
|
4660
|
+
};
|
|
4661
|
+
export type V2EventProjectDirectoriesUpdated = {
|
|
4662
|
+
id: string;
|
|
4663
|
+
metadata?: {
|
|
4664
|
+
[key: string]: unknown;
|
|
4665
|
+
};
|
|
4666
|
+
durable?: {
|
|
4667
|
+
aggregateID: string;
|
|
4668
|
+
seq: number;
|
|
4669
|
+
version: number;
|
|
4670
|
+
};
|
|
4671
|
+
location?: LocationRef;
|
|
4672
|
+
type: "project.directories.updated";
|
|
4673
|
+
data: {
|
|
4674
|
+
projectID: string;
|
|
4675
|
+
};
|
|
4676
|
+
};
|
|
4677
|
+
export type V2EventFileWatcherUpdated = {
|
|
4678
|
+
id: string;
|
|
4679
|
+
metadata?: {
|
|
4680
|
+
[key: string]: unknown;
|
|
4681
|
+
};
|
|
4682
|
+
durable?: {
|
|
4683
|
+
aggregateID: string;
|
|
4684
|
+
seq: number;
|
|
4685
|
+
version: number;
|
|
4686
|
+
};
|
|
4687
|
+
location?: LocationRef;
|
|
4688
|
+
type: "file.watcher.updated";
|
|
4689
|
+
data: {
|
|
4690
|
+
file: string;
|
|
4691
|
+
event: "add" | "change" | "unlink";
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
export type V2EventPtyCreated = {
|
|
4695
|
+
id: string;
|
|
4696
|
+
metadata?: {
|
|
4697
|
+
[key: string]: unknown;
|
|
4698
|
+
};
|
|
4699
|
+
durable?: {
|
|
4700
|
+
aggregateID: string;
|
|
4701
|
+
seq: number;
|
|
4702
|
+
version: number;
|
|
4703
|
+
};
|
|
4704
|
+
location?: LocationRef;
|
|
4705
|
+
type: "pty.created";
|
|
4706
|
+
data: {
|
|
4707
|
+
info: Pty;
|
|
4708
|
+
};
|
|
4709
|
+
};
|
|
4710
|
+
export type V2EventPtyUpdated = {
|
|
4711
|
+
id: string;
|
|
4712
|
+
metadata?: {
|
|
4713
|
+
[key: string]: unknown;
|
|
4714
|
+
};
|
|
4715
|
+
durable?: {
|
|
4716
|
+
aggregateID: string;
|
|
4717
|
+
seq: number;
|
|
4718
|
+
version: number;
|
|
4719
|
+
};
|
|
4720
|
+
location?: LocationRef;
|
|
4721
|
+
type: "pty.updated";
|
|
4722
|
+
data: {
|
|
4723
|
+
info: Pty;
|
|
4724
|
+
};
|
|
4725
|
+
};
|
|
4726
|
+
export type V2EventPtyExited = {
|
|
4727
|
+
id: string;
|
|
4728
|
+
metadata?: {
|
|
4729
|
+
[key: string]: unknown;
|
|
4730
|
+
};
|
|
4731
|
+
durable?: {
|
|
4732
|
+
aggregateID: string;
|
|
4733
|
+
seq: number;
|
|
4734
|
+
version: number;
|
|
4735
|
+
};
|
|
4736
|
+
location?: LocationRef;
|
|
4737
|
+
type: "pty.exited";
|
|
4738
|
+
data: {
|
|
4739
|
+
id: string;
|
|
4740
|
+
exitCode: number;
|
|
4741
|
+
};
|
|
4742
|
+
};
|
|
4743
|
+
export type V2EventPtyDeleted = {
|
|
4744
|
+
id: string;
|
|
4745
|
+
metadata?: {
|
|
4746
|
+
[key: string]: unknown;
|
|
4747
|
+
};
|
|
4748
|
+
durable?: {
|
|
4749
|
+
aggregateID: string;
|
|
4750
|
+
seq: number;
|
|
4751
|
+
version: number;
|
|
4752
|
+
};
|
|
4753
|
+
location?: LocationRef;
|
|
4754
|
+
type: "pty.deleted";
|
|
4755
|
+
data: {
|
|
4756
|
+
id: string;
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
export type V2EventQuestionV2Asked = {
|
|
4760
|
+
id: string;
|
|
4761
|
+
metadata?: {
|
|
4762
|
+
[key: string]: unknown;
|
|
4763
|
+
};
|
|
4764
|
+
durable?: {
|
|
4765
|
+
aggregateID: string;
|
|
4766
|
+
seq: number;
|
|
4767
|
+
version: number;
|
|
4768
|
+
};
|
|
4769
|
+
location?: LocationRef;
|
|
4770
|
+
type: "question.v2.asked";
|
|
4771
|
+
data: {
|
|
4772
|
+
id: string;
|
|
4773
|
+
sessionID: string;
|
|
4774
|
+
/**
|
|
4775
|
+
* Questions to ask
|
|
4776
|
+
*/
|
|
4777
|
+
questions: Array<QuestionV2Info>;
|
|
4778
|
+
tool?: QuestionV2Tool;
|
|
4779
|
+
};
|
|
4780
|
+
};
|
|
4781
|
+
export type V2EventQuestionV2Replied = {
|
|
4782
|
+
id: string;
|
|
4783
|
+
metadata?: {
|
|
4784
|
+
[key: string]: unknown;
|
|
4785
|
+
};
|
|
4786
|
+
durable?: {
|
|
4787
|
+
aggregateID: string;
|
|
4788
|
+
seq: number;
|
|
4789
|
+
version: number;
|
|
4790
|
+
};
|
|
4791
|
+
location?: LocationRef;
|
|
4792
|
+
type: "question.v2.replied";
|
|
4793
|
+
data: {
|
|
4794
|
+
sessionID: string;
|
|
4795
|
+
requestID: string;
|
|
4796
|
+
answers: Array<QuestionV2Answer>;
|
|
4797
|
+
};
|
|
4798
|
+
};
|
|
4799
|
+
export type V2EventQuestionV2Rejected = {
|
|
4800
|
+
id: string;
|
|
4801
|
+
metadata?: {
|
|
4802
|
+
[key: string]: unknown;
|
|
4803
|
+
};
|
|
4804
|
+
durable?: {
|
|
4805
|
+
aggregateID: string;
|
|
4806
|
+
seq: number;
|
|
4807
|
+
version: number;
|
|
4808
|
+
};
|
|
4809
|
+
location?: LocationRef;
|
|
4810
|
+
type: "question.v2.rejected";
|
|
4811
|
+
data: {
|
|
4812
|
+
sessionID: string;
|
|
4813
|
+
requestID: string;
|
|
4814
|
+
};
|
|
4815
|
+
};
|
|
4816
|
+
export type V2EventTodoUpdated = {
|
|
4817
|
+
id: string;
|
|
4818
|
+
metadata?: {
|
|
4819
|
+
[key: string]: unknown;
|
|
4820
|
+
};
|
|
4821
|
+
durable?: {
|
|
4822
|
+
aggregateID: string;
|
|
4823
|
+
seq: number;
|
|
4824
|
+
version: number;
|
|
4825
|
+
};
|
|
4826
|
+
location?: LocationRef;
|
|
4827
|
+
type: "todo.updated";
|
|
4828
|
+
data: {
|
|
4829
|
+
sessionID: string;
|
|
4830
|
+
todos: Array<Todo>;
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
export type V2EventLspUpdated = {
|
|
4834
|
+
id: string;
|
|
4835
|
+
metadata?: {
|
|
4836
|
+
[key: string]: unknown;
|
|
4837
|
+
};
|
|
4838
|
+
durable?: {
|
|
4839
|
+
aggregateID: string;
|
|
4840
|
+
seq: number;
|
|
4841
|
+
version: number;
|
|
4842
|
+
};
|
|
4843
|
+
location?: LocationRef;
|
|
4844
|
+
type: "lsp.updated";
|
|
4845
|
+
data: {
|
|
4846
|
+
[key: string]: unknown;
|
|
4847
|
+
};
|
|
4848
|
+
};
|
|
4849
|
+
export type V2EventPermissionAsked = {
|
|
4850
|
+
id: string;
|
|
4851
|
+
metadata?: {
|
|
4852
|
+
[key: string]: unknown;
|
|
4853
|
+
};
|
|
4854
|
+
durable?: {
|
|
4855
|
+
aggregateID: string;
|
|
4856
|
+
seq: number;
|
|
4857
|
+
version: number;
|
|
4858
|
+
};
|
|
4859
|
+
location?: LocationRef;
|
|
4860
|
+
type: "permission.asked";
|
|
4861
|
+
data: {
|
|
4862
|
+
id: string;
|
|
4863
|
+
sessionID: string;
|
|
4864
|
+
permission: string;
|
|
4865
|
+
patterns: Array<string>;
|
|
4866
|
+
metadata: {
|
|
4867
|
+
[key: string]: unknown;
|
|
4868
|
+
};
|
|
4869
|
+
always: Array<string>;
|
|
4870
|
+
tool?: {
|
|
4871
|
+
messageID: string;
|
|
4872
|
+
callID: string;
|
|
4873
|
+
};
|
|
4874
|
+
};
|
|
4875
|
+
};
|
|
4876
|
+
export type V2EventPermissionReplied = {
|
|
4877
|
+
id: string;
|
|
4878
|
+
metadata?: {
|
|
4879
|
+
[key: string]: unknown;
|
|
4880
|
+
};
|
|
4881
|
+
durable?: {
|
|
4882
|
+
aggregateID: string;
|
|
4883
|
+
seq: number;
|
|
4884
|
+
version: number;
|
|
4885
|
+
};
|
|
4886
|
+
location?: LocationRef;
|
|
4887
|
+
type: "permission.replied";
|
|
4888
|
+
data: {
|
|
4889
|
+
sessionID: string;
|
|
4890
|
+
requestID: string;
|
|
4891
|
+
reply: "once" | "always" | "reject";
|
|
4892
|
+
};
|
|
4893
|
+
};
|
|
4894
|
+
export type V2EventTuiPromptAppend = {
|
|
4895
|
+
id: string;
|
|
4896
|
+
metadata?: {
|
|
4897
|
+
[key: string]: unknown;
|
|
4898
|
+
};
|
|
4899
|
+
durable?: {
|
|
4900
|
+
aggregateID: string;
|
|
4901
|
+
seq: number;
|
|
4902
|
+
version: number;
|
|
4903
|
+
};
|
|
4904
|
+
location?: LocationRef;
|
|
4905
|
+
type: "tui.prompt.append";
|
|
4906
|
+
data: {
|
|
4907
|
+
text: string;
|
|
4908
|
+
};
|
|
4909
|
+
};
|
|
4910
|
+
export type V2EventTuiCommandExecute = {
|
|
4911
|
+
id: string;
|
|
4912
|
+
metadata?: {
|
|
4913
|
+
[key: string]: unknown;
|
|
4914
|
+
};
|
|
4915
|
+
durable?: {
|
|
4916
|
+
aggregateID: string;
|
|
4917
|
+
seq: number;
|
|
4918
|
+
version: number;
|
|
4919
|
+
};
|
|
4920
|
+
location?: LocationRef;
|
|
4921
|
+
type: "tui.command.execute";
|
|
4922
|
+
data: {
|
|
4923
|
+
command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
|
|
4924
|
+
};
|
|
4925
|
+
};
|
|
4926
|
+
export type V2EventTuiToastShow = {
|
|
4927
|
+
id: string;
|
|
4928
|
+
metadata?: {
|
|
4929
|
+
[key: string]: unknown;
|
|
4930
|
+
};
|
|
4931
|
+
durable?: {
|
|
4932
|
+
aggregateID: string;
|
|
4933
|
+
seq: number;
|
|
4934
|
+
version: number;
|
|
4935
|
+
};
|
|
4936
|
+
location?: LocationRef;
|
|
4937
|
+
type: "tui.toast.show";
|
|
4938
|
+
data: {
|
|
4939
|
+
title?: string;
|
|
4940
|
+
message: string;
|
|
4941
|
+
variant: "info" | "success" | "warning" | "error";
|
|
4942
|
+
duration?: number;
|
|
4943
|
+
};
|
|
4944
|
+
};
|
|
4945
|
+
export type V2EventTuiSessionSelect = {
|
|
4946
|
+
id: string;
|
|
4947
|
+
metadata?: {
|
|
4948
|
+
[key: string]: unknown;
|
|
4949
|
+
};
|
|
4950
|
+
durable?: {
|
|
4951
|
+
aggregateID: string;
|
|
4952
|
+
seq: number;
|
|
4953
|
+
version: number;
|
|
4954
|
+
};
|
|
4955
|
+
location?: LocationRef;
|
|
4956
|
+
type: "tui.session.select";
|
|
4957
|
+
data: {
|
|
4958
|
+
/**
|
|
4959
|
+
* Session ID to navigate to
|
|
4960
|
+
*/
|
|
4961
|
+
sessionID: string;
|
|
4962
|
+
};
|
|
4963
|
+
};
|
|
4964
|
+
export type V2EventMcpToolsChanged = {
|
|
4965
|
+
id: string;
|
|
4966
|
+
metadata?: {
|
|
4967
|
+
[key: string]: unknown;
|
|
4968
|
+
};
|
|
4969
|
+
durable?: {
|
|
4970
|
+
aggregateID: string;
|
|
4971
|
+
seq: number;
|
|
4972
|
+
version: number;
|
|
4973
|
+
};
|
|
4974
|
+
location?: LocationRef;
|
|
4975
|
+
type: "mcp.tools.changed";
|
|
4976
|
+
data: {
|
|
4977
|
+
server: string;
|
|
4978
|
+
};
|
|
4979
|
+
};
|
|
4980
|
+
export type V2EventMcpBrowserOpenFailed = {
|
|
4981
|
+
id: string;
|
|
4982
|
+
metadata?: {
|
|
4983
|
+
[key: string]: unknown;
|
|
4984
|
+
};
|
|
4985
|
+
durable?: {
|
|
4986
|
+
aggregateID: string;
|
|
4987
|
+
seq: number;
|
|
4988
|
+
version: number;
|
|
4989
|
+
};
|
|
4990
|
+
location?: LocationRef;
|
|
4991
|
+
type: "mcp.browser.open.failed";
|
|
4992
|
+
data: {
|
|
4993
|
+
mcpName: string;
|
|
4994
|
+
url: string;
|
|
4995
|
+
};
|
|
4996
|
+
};
|
|
4997
|
+
export type V2EventCommandExecuted = {
|
|
4998
|
+
id: string;
|
|
4999
|
+
metadata?: {
|
|
5000
|
+
[key: string]: unknown;
|
|
5001
|
+
};
|
|
5002
|
+
durable?: {
|
|
5003
|
+
aggregateID: string;
|
|
5004
|
+
seq: number;
|
|
5005
|
+
version: number;
|
|
5006
|
+
};
|
|
5007
|
+
location?: LocationRef;
|
|
5008
|
+
type: "command.executed";
|
|
5009
|
+
data: {
|
|
5010
|
+
name: string;
|
|
5011
|
+
sessionID: string;
|
|
5012
|
+
arguments: string;
|
|
5013
|
+
messageID: string;
|
|
5014
|
+
};
|
|
5015
|
+
};
|
|
5016
|
+
export type V2EventProjectUpdated = {
|
|
5017
|
+
id: string;
|
|
5018
|
+
metadata?: {
|
|
5019
|
+
[key: string]: unknown;
|
|
5020
|
+
};
|
|
5021
|
+
durable?: {
|
|
5022
|
+
aggregateID: string;
|
|
5023
|
+
seq: number;
|
|
5024
|
+
version: number;
|
|
5025
|
+
};
|
|
5026
|
+
location?: LocationRef;
|
|
5027
|
+
type: "project.updated";
|
|
5028
|
+
data: {
|
|
5029
|
+
id: string;
|
|
5030
|
+
worktree: string;
|
|
5031
|
+
vcs?: "git";
|
|
5032
|
+
name?: string;
|
|
5033
|
+
icon?: {
|
|
5034
|
+
url?: string;
|
|
5035
|
+
override?: string;
|
|
5036
|
+
color?: string;
|
|
5037
|
+
};
|
|
5038
|
+
commands?: {
|
|
5039
|
+
/**
|
|
5040
|
+
* Startup script to run when creating a new workspace (worktree)
|
|
5041
|
+
*/
|
|
5042
|
+
start?: string;
|
|
5043
|
+
};
|
|
5044
|
+
time: {
|
|
5045
|
+
created: number;
|
|
5046
|
+
updated: number;
|
|
5047
|
+
initialized?: number;
|
|
5048
|
+
};
|
|
5049
|
+
sandboxes: Array<string>;
|
|
5050
|
+
};
|
|
5051
|
+
};
|
|
5052
|
+
export type V2EventSessionStatus = {
|
|
5053
|
+
id: string;
|
|
5054
|
+
metadata?: {
|
|
5055
|
+
[key: string]: unknown;
|
|
5056
|
+
};
|
|
5057
|
+
durable?: {
|
|
5058
|
+
aggregateID: string;
|
|
5059
|
+
seq: number;
|
|
5060
|
+
version: number;
|
|
5061
|
+
};
|
|
5062
|
+
location?: LocationRef;
|
|
5063
|
+
type: "session.status";
|
|
5064
|
+
data: {
|
|
5065
|
+
sessionID: string;
|
|
5066
|
+
status: SessionStatus;
|
|
5067
|
+
};
|
|
5068
|
+
};
|
|
5069
|
+
export type V2EventSessionIdle = {
|
|
5070
|
+
id: string;
|
|
5071
|
+
metadata?: {
|
|
5072
|
+
[key: string]: unknown;
|
|
5073
|
+
};
|
|
5074
|
+
durable?: {
|
|
5075
|
+
aggregateID: string;
|
|
5076
|
+
seq: number;
|
|
5077
|
+
version: number;
|
|
5078
|
+
};
|
|
5079
|
+
location?: LocationRef;
|
|
5080
|
+
type: "session.idle";
|
|
5081
|
+
data: {
|
|
5082
|
+
sessionID: string;
|
|
5083
|
+
};
|
|
5084
|
+
};
|
|
5085
|
+
export type V2EventQuestionAsked = {
|
|
5086
|
+
id: string;
|
|
5087
|
+
metadata?: {
|
|
5088
|
+
[key: string]: unknown;
|
|
5089
|
+
};
|
|
5090
|
+
durable?: {
|
|
5091
|
+
aggregateID: string;
|
|
5092
|
+
seq: number;
|
|
5093
|
+
version: number;
|
|
5094
|
+
};
|
|
5095
|
+
location?: LocationRef;
|
|
5096
|
+
type: "question.asked";
|
|
5097
|
+
data: {
|
|
5098
|
+
id: string;
|
|
5099
|
+
sessionID: string;
|
|
5100
|
+
/**
|
|
5101
|
+
* Questions to ask
|
|
5102
|
+
*/
|
|
5103
|
+
questions: Array<QuestionInfo>;
|
|
5104
|
+
tool?: QuestionTool;
|
|
5105
|
+
};
|
|
5106
|
+
};
|
|
5107
|
+
export type V2EventQuestionReplied = {
|
|
5108
|
+
id: string;
|
|
5109
|
+
metadata?: {
|
|
5110
|
+
[key: string]: unknown;
|
|
5111
|
+
};
|
|
5112
|
+
durable?: {
|
|
5113
|
+
aggregateID: string;
|
|
5114
|
+
seq: number;
|
|
5115
|
+
version: number;
|
|
5116
|
+
};
|
|
5117
|
+
location?: LocationRef;
|
|
5118
|
+
type: "question.replied";
|
|
5119
|
+
data: {
|
|
5120
|
+
sessionID: string;
|
|
5121
|
+
requestID: string;
|
|
5122
|
+
answers: Array<QuestionAnswer>;
|
|
5123
|
+
};
|
|
5124
|
+
};
|
|
5125
|
+
export type V2EventQuestionRejected = {
|
|
5126
|
+
id: string;
|
|
5127
|
+
metadata?: {
|
|
5128
|
+
[key: string]: unknown;
|
|
5129
|
+
};
|
|
5130
|
+
durable?: {
|
|
5131
|
+
aggregateID: string;
|
|
5132
|
+
seq: number;
|
|
5133
|
+
version: number;
|
|
5134
|
+
};
|
|
5135
|
+
location?: LocationRef;
|
|
5136
|
+
type: "question.rejected";
|
|
5137
|
+
data: {
|
|
5138
|
+
sessionID: string;
|
|
5139
|
+
requestID: string;
|
|
5140
|
+
};
|
|
5141
|
+
};
|
|
5142
|
+
export type V2EventSessionCompacted = {
|
|
5143
|
+
id: string;
|
|
5144
|
+
metadata?: {
|
|
5145
|
+
[key: string]: unknown;
|
|
5146
|
+
};
|
|
5147
|
+
durable?: {
|
|
5148
|
+
aggregateID: string;
|
|
5149
|
+
seq: number;
|
|
5150
|
+
version: number;
|
|
5151
|
+
};
|
|
5152
|
+
location?: LocationRef;
|
|
5153
|
+
type: "session.compacted";
|
|
5154
|
+
data: {
|
|
5155
|
+
sessionID: string;
|
|
5156
|
+
};
|
|
5157
|
+
};
|
|
5158
|
+
export type V2EventVcsBranchUpdated = {
|
|
5159
|
+
id: string;
|
|
5160
|
+
metadata?: {
|
|
5161
|
+
[key: string]: unknown;
|
|
5162
|
+
};
|
|
5163
|
+
durable?: {
|
|
5164
|
+
aggregateID: string;
|
|
5165
|
+
seq: number;
|
|
5166
|
+
version: number;
|
|
5167
|
+
};
|
|
5168
|
+
location?: LocationRef;
|
|
5169
|
+
type: "vcs.branch.updated";
|
|
5170
|
+
data: {
|
|
5171
|
+
branch?: string;
|
|
5172
|
+
};
|
|
5173
|
+
};
|
|
5174
|
+
export type V2EventWorkspaceReady = {
|
|
5175
|
+
id: string;
|
|
5176
|
+
metadata?: {
|
|
5177
|
+
[key: string]: unknown;
|
|
5178
|
+
};
|
|
5179
|
+
durable?: {
|
|
5180
|
+
aggregateID: string;
|
|
5181
|
+
seq: number;
|
|
5182
|
+
version: number;
|
|
5183
|
+
};
|
|
5184
|
+
location?: LocationRef;
|
|
5185
|
+
type: "workspace.ready";
|
|
5186
|
+
data: {
|
|
5187
|
+
name: string;
|
|
5188
|
+
};
|
|
5189
|
+
};
|
|
5190
|
+
export type V2EventWorkspaceFailed = {
|
|
5191
|
+
id: string;
|
|
5192
|
+
metadata?: {
|
|
5193
|
+
[key: string]: unknown;
|
|
5194
|
+
};
|
|
5195
|
+
durable?: {
|
|
5196
|
+
aggregateID: string;
|
|
5197
|
+
seq: number;
|
|
5198
|
+
version: number;
|
|
5199
|
+
};
|
|
5200
|
+
location?: LocationRef;
|
|
5201
|
+
type: "workspace.failed";
|
|
5202
|
+
data: {
|
|
5203
|
+
message: string;
|
|
5204
|
+
};
|
|
5205
|
+
};
|
|
5206
|
+
export type V2EventWorkspaceStatus = {
|
|
5207
|
+
id: string;
|
|
5208
|
+
metadata?: {
|
|
5209
|
+
[key: string]: unknown;
|
|
5210
|
+
};
|
|
5211
|
+
durable?: {
|
|
5212
|
+
aggregateID: string;
|
|
5213
|
+
seq: number;
|
|
5214
|
+
version: number;
|
|
5215
|
+
};
|
|
5216
|
+
location?: LocationRef;
|
|
5217
|
+
type: "workspace.status";
|
|
5218
|
+
data: {
|
|
5219
|
+
workspaceID: string;
|
|
5220
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
5221
|
+
};
|
|
5222
|
+
};
|
|
5223
|
+
export type V2EventWorktreeReady = {
|
|
5224
|
+
id: string;
|
|
5225
|
+
metadata?: {
|
|
5226
|
+
[key: string]: unknown;
|
|
5227
|
+
};
|
|
5228
|
+
durable?: {
|
|
5229
|
+
aggregateID: string;
|
|
5230
|
+
seq: number;
|
|
5231
|
+
version: number;
|
|
5232
|
+
};
|
|
5233
|
+
location?: LocationRef;
|
|
5234
|
+
type: "worktree.ready";
|
|
5235
|
+
data: {
|
|
5236
|
+
name: string;
|
|
5237
|
+
branch?: string;
|
|
5238
|
+
};
|
|
5239
|
+
};
|
|
5240
|
+
export type V2EventWorktreeFailed = {
|
|
5241
|
+
id: string;
|
|
5242
|
+
metadata?: {
|
|
5243
|
+
[key: string]: unknown;
|
|
5244
|
+
};
|
|
5245
|
+
durable?: {
|
|
5246
|
+
aggregateID: string;
|
|
5247
|
+
seq: number;
|
|
5248
|
+
version: number;
|
|
5249
|
+
};
|
|
5250
|
+
location?: LocationRef;
|
|
5251
|
+
type: "worktree.failed";
|
|
5252
|
+
data: {
|
|
5253
|
+
message: string;
|
|
5254
|
+
};
|
|
5255
|
+
};
|
|
5256
|
+
export type V2EventServerConnected = {
|
|
5257
|
+
id: string;
|
|
5258
|
+
metadata?: {
|
|
5259
|
+
[key: string]: unknown;
|
|
5260
|
+
};
|
|
5261
|
+
durable?: {
|
|
5262
|
+
aggregateID: string;
|
|
5263
|
+
seq: number;
|
|
5264
|
+
version: number;
|
|
5265
|
+
};
|
|
5266
|
+
location?: LocationRef;
|
|
5267
|
+
type: "server.connected";
|
|
5268
|
+
data: {
|
|
5269
|
+
[key: string]: unknown;
|
|
5270
|
+
};
|
|
3553
5271
|
};
|
|
3554
|
-
export type
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
5272
|
+
export type V2EventGlobalDisposed = {
|
|
5273
|
+
id: string;
|
|
5274
|
+
metadata?: {
|
|
5275
|
+
[key: string]: unknown;
|
|
5276
|
+
};
|
|
5277
|
+
durable?: {
|
|
5278
|
+
aggregateID: string;
|
|
5279
|
+
seq: number;
|
|
5280
|
+
version: number;
|
|
5281
|
+
};
|
|
5282
|
+
location?: LocationRef;
|
|
5283
|
+
type: "global.disposed";
|
|
5284
|
+
data: {
|
|
5285
|
+
[key: string]: unknown;
|
|
5286
|
+
};
|
|
3560
5287
|
};
|
|
3561
5288
|
export type QuestionV2Request = {
|
|
3562
5289
|
id: string;
|
|
@@ -3603,18 +5330,18 @@ export type EventModelsDevRefreshed = {
|
|
|
3603
5330
|
[key: string]: unknown;
|
|
3604
5331
|
};
|
|
3605
5332
|
};
|
|
3606
|
-
export type
|
|
5333
|
+
export type EventIntegrationUpdated = {
|
|
3607
5334
|
id: string;
|
|
3608
|
-
type: "
|
|
5335
|
+
type: "integration.updated";
|
|
3609
5336
|
properties: {
|
|
3610
|
-
|
|
5337
|
+
[key: string]: unknown;
|
|
3611
5338
|
};
|
|
3612
5339
|
};
|
|
3613
|
-
export type
|
|
5340
|
+
export type EventIntegrationConnectionUpdated = {
|
|
3614
5341
|
id: string;
|
|
3615
|
-
type: "integration.updated";
|
|
5342
|
+
type: "integration.connection.updated";
|
|
3616
5343
|
properties: {
|
|
3617
|
-
|
|
5344
|
+
integrationID: string;
|
|
3618
5345
|
};
|
|
3619
5346
|
};
|
|
3620
5347
|
export type EventCatalogUpdated = {
|
|
@@ -3738,25 +5465,6 @@ export type EventSessionNextPromptAdmitted = {
|
|
|
3738
5465
|
delivery: "steer" | "queue";
|
|
3739
5466
|
};
|
|
3740
5467
|
};
|
|
3741
|
-
export type EventSessionNextPromptPromoted = {
|
|
3742
|
-
id: string;
|
|
3743
|
-
type: "session.next.prompt.promoted";
|
|
3744
|
-
properties: {
|
|
3745
|
-
timestamp: number;
|
|
3746
|
-
sessionID: string;
|
|
3747
|
-
messageID: string;
|
|
3748
|
-
prompt: Prompt;
|
|
3749
|
-
timeCreated: number;
|
|
3750
|
-
};
|
|
3751
|
-
};
|
|
3752
|
-
export type EventSessionNextInterruptRequested = {
|
|
3753
|
-
id: string;
|
|
3754
|
-
type: "session.next.interrupt.requested";
|
|
3755
|
-
properties: {
|
|
3756
|
-
timestamp: number;
|
|
3757
|
-
sessionID: string;
|
|
3758
|
-
};
|
|
3759
|
-
};
|
|
3760
5468
|
export type EventSessionNextContextUpdated = {
|
|
3761
5469
|
id: string;
|
|
3762
5470
|
type: "session.next.context.updated";
|
|
@@ -3833,6 +5541,7 @@ export type EventSessionNextStepEnded = {
|
|
|
3833
5541
|
};
|
|
3834
5542
|
};
|
|
3835
5543
|
snapshot?: string;
|
|
5544
|
+
files?: Array<string>;
|
|
3836
5545
|
};
|
|
3837
5546
|
};
|
|
3838
5547
|
export type EventSessionNextStepFailed = {
|
|
@@ -4074,6 +5783,38 @@ export type EventSessionNextCompactionEnded = {
|
|
|
4074
5783
|
recent: string;
|
|
4075
5784
|
};
|
|
4076
5785
|
};
|
|
5786
|
+
export type EventSessionNextRevertStaged = {
|
|
5787
|
+
id: string;
|
|
5788
|
+
type: "session.next.revert.staged";
|
|
5789
|
+
properties: {
|
|
5790
|
+
timestamp: number;
|
|
5791
|
+
sessionID: string;
|
|
5792
|
+
revert: {
|
|
5793
|
+
messageID: string;
|
|
5794
|
+
partID?: string;
|
|
5795
|
+
snapshot?: string;
|
|
5796
|
+
diff?: string;
|
|
5797
|
+
files?: Array<FileDiff>;
|
|
5798
|
+
};
|
|
5799
|
+
};
|
|
5800
|
+
};
|
|
5801
|
+
export type EventSessionNextRevertCleared = {
|
|
5802
|
+
id: string;
|
|
5803
|
+
type: "session.next.revert.cleared";
|
|
5804
|
+
properties: {
|
|
5805
|
+
timestamp: number;
|
|
5806
|
+
sessionID: string;
|
|
5807
|
+
};
|
|
5808
|
+
};
|
|
5809
|
+
export type EventSessionNextRevertCommitted = {
|
|
5810
|
+
id: string;
|
|
5811
|
+
type: "session.next.revert.committed";
|
|
5812
|
+
properties: {
|
|
5813
|
+
timestamp: number;
|
|
5814
|
+
sessionID: string;
|
|
5815
|
+
messageID: string;
|
|
5816
|
+
};
|
|
5817
|
+
};
|
|
4077
5818
|
export type EventMessagePartDelta = {
|
|
4078
5819
|
id: string;
|
|
4079
5820
|
type: "message.part.delta";
|
|
@@ -4122,6 +5863,13 @@ export type EventFileEdited = {
|
|
|
4122
5863
|
file: string;
|
|
4123
5864
|
};
|
|
4124
5865
|
};
|
|
5866
|
+
export type EventReferenceUpdated = {
|
|
5867
|
+
id: string;
|
|
5868
|
+
type: "reference.updated";
|
|
5869
|
+
properties: {
|
|
5870
|
+
[key: string]: unknown;
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
4125
5873
|
export type EventPermissionV2Asked = {
|
|
4126
5874
|
id: string;
|
|
4127
5875
|
type: "permission.v2.asked";
|
|
@@ -4146,11 +5894,11 @@ export type EventPermissionV2Replied = {
|
|
|
4146
5894
|
reply: PermissionV2Reply;
|
|
4147
5895
|
};
|
|
4148
5896
|
};
|
|
4149
|
-
export type
|
|
5897
|
+
export type EventPluginAdded = {
|
|
4150
5898
|
id: string;
|
|
4151
|
-
type: "
|
|
5899
|
+
type: "plugin.added";
|
|
4152
5900
|
properties: {
|
|
4153
|
-
|
|
5901
|
+
id: string;
|
|
4154
5902
|
};
|
|
4155
5903
|
};
|
|
4156
5904
|
export type EventProjectDirectoriesUpdated = {
|
|
@@ -4431,6 +6179,35 @@ export type EventGlobalDisposed = {
|
|
|
4431
6179
|
[key: string]: unknown;
|
|
4432
6180
|
};
|
|
4433
6181
|
};
|
|
6182
|
+
export type CredentialOAuth = {
|
|
6183
|
+
type: "oauth";
|
|
6184
|
+
methodID: string;
|
|
6185
|
+
refresh: string;
|
|
6186
|
+
access: string;
|
|
6187
|
+
expires: number;
|
|
6188
|
+
metadata?: {
|
|
6189
|
+
[key: string]: unknown;
|
|
6190
|
+
};
|
|
6191
|
+
};
|
|
6192
|
+
export type CredentialKey = {
|
|
6193
|
+
type: "key";
|
|
6194
|
+
key: string;
|
|
6195
|
+
metadata?: {
|
|
6196
|
+
[key: string]: unknown;
|
|
6197
|
+
};
|
|
6198
|
+
};
|
|
6199
|
+
export type SkillV2DirectorySource = {
|
|
6200
|
+
type: "directory";
|
|
6201
|
+
path: string;
|
|
6202
|
+
};
|
|
6203
|
+
export type SkillV2UrlSource = {
|
|
6204
|
+
type: "url";
|
|
6205
|
+
url: string;
|
|
6206
|
+
};
|
|
6207
|
+
export type SkillV2EmbeddedSource = {
|
|
6208
|
+
type: "embedded";
|
|
6209
|
+
skill: SkillV2Info;
|
|
6210
|
+
};
|
|
4434
6211
|
export type BadRequestError = {
|
|
4435
6212
|
name: "BadRequest";
|
|
4436
6213
|
data: {
|
|
@@ -8124,6 +9901,74 @@ export type V2SessionGetResponses = {
|
|
|
8124
9901
|
};
|
|
8125
9902
|
};
|
|
8126
9903
|
export type V2SessionGetResponse = V2SessionGetResponses[keyof V2SessionGetResponses];
|
|
9904
|
+
export type V2SessionSwitchAgentData = {
|
|
9905
|
+
body: {
|
|
9906
|
+
agent: string;
|
|
9907
|
+
};
|
|
9908
|
+
path: {
|
|
9909
|
+
sessionID: string;
|
|
9910
|
+
};
|
|
9911
|
+
query?: never;
|
|
9912
|
+
url: "/api/session/{sessionID}/agent";
|
|
9913
|
+
};
|
|
9914
|
+
export type V2SessionSwitchAgentErrors = {
|
|
9915
|
+
/**
|
|
9916
|
+
* InvalidRequestError
|
|
9917
|
+
*/
|
|
9918
|
+
400: InvalidRequestError;
|
|
9919
|
+
/**
|
|
9920
|
+
* UnauthorizedError
|
|
9921
|
+
*/
|
|
9922
|
+
401: UnauthorizedError;
|
|
9923
|
+
/**
|
|
9924
|
+
* SessionNotFoundError
|
|
9925
|
+
*/
|
|
9926
|
+
404: SessionNotFoundError;
|
|
9927
|
+
};
|
|
9928
|
+
export type V2SessionSwitchAgentError = V2SessionSwitchAgentErrors[keyof V2SessionSwitchAgentErrors];
|
|
9929
|
+
export type V2SessionSwitchAgentResponses = {
|
|
9930
|
+
/**
|
|
9931
|
+
* <No Content>
|
|
9932
|
+
*/
|
|
9933
|
+
204: void;
|
|
9934
|
+
};
|
|
9935
|
+
export type V2SessionSwitchAgentResponse = V2SessionSwitchAgentResponses[keyof V2SessionSwitchAgentResponses];
|
|
9936
|
+
export type V2SessionSwitchModelData = {
|
|
9937
|
+
body: {
|
|
9938
|
+
model: {
|
|
9939
|
+
id: string;
|
|
9940
|
+
providerID: string;
|
|
9941
|
+
variant?: string;
|
|
9942
|
+
};
|
|
9943
|
+
};
|
|
9944
|
+
path: {
|
|
9945
|
+
sessionID: string;
|
|
9946
|
+
};
|
|
9947
|
+
query?: never;
|
|
9948
|
+
url: "/api/session/{sessionID}/model";
|
|
9949
|
+
};
|
|
9950
|
+
export type V2SessionSwitchModelErrors = {
|
|
9951
|
+
/**
|
|
9952
|
+
* InvalidRequestError
|
|
9953
|
+
*/
|
|
9954
|
+
400: InvalidRequestError;
|
|
9955
|
+
/**
|
|
9956
|
+
* UnauthorizedError
|
|
9957
|
+
*/
|
|
9958
|
+
401: UnauthorizedError;
|
|
9959
|
+
/**
|
|
9960
|
+
* SessionNotFoundError
|
|
9961
|
+
*/
|
|
9962
|
+
404: SessionNotFoundError;
|
|
9963
|
+
};
|
|
9964
|
+
export type V2SessionSwitchModelError = V2SessionSwitchModelErrors[keyof V2SessionSwitchModelErrors];
|
|
9965
|
+
export type V2SessionSwitchModelResponses = {
|
|
9966
|
+
/**
|
|
9967
|
+
* <No Content>
|
|
9968
|
+
*/
|
|
9969
|
+
204: void;
|
|
9970
|
+
};
|
|
9971
|
+
export type V2SessionSwitchModelResponse = V2SessionSwitchModelResponses[keyof V2SessionSwitchModelResponses];
|
|
8127
9972
|
export type V2SessionPromptData = {
|
|
8128
9973
|
body: {
|
|
8129
9974
|
id?: string;
|
|
@@ -8233,6 +10078,115 @@ export type V2SessionWaitResponses = {
|
|
|
8233
10078
|
204: void;
|
|
8234
10079
|
};
|
|
8235
10080
|
export type V2SessionWaitResponse = V2SessionWaitResponses[keyof V2SessionWaitResponses];
|
|
10081
|
+
export type V2SessionRevertStageData = {
|
|
10082
|
+
body: {
|
|
10083
|
+
messageID: string;
|
|
10084
|
+
files?: boolean;
|
|
10085
|
+
};
|
|
10086
|
+
path: {
|
|
10087
|
+
sessionID: string;
|
|
10088
|
+
};
|
|
10089
|
+
query?: never;
|
|
10090
|
+
url: "/api/session/{sessionID}/revert/stage";
|
|
10091
|
+
};
|
|
10092
|
+
export type V2SessionRevertStageErrors = {
|
|
10093
|
+
/**
|
|
10094
|
+
* InvalidRequestError
|
|
10095
|
+
*/
|
|
10096
|
+
400: InvalidRequestError;
|
|
10097
|
+
/**
|
|
10098
|
+
* UnauthorizedError
|
|
10099
|
+
*/
|
|
10100
|
+
401: UnauthorizedError;
|
|
10101
|
+
/**
|
|
10102
|
+
* MessageNotFoundError | SessionNotFoundError
|
|
10103
|
+
*/
|
|
10104
|
+
404: MessageNotFoundError | SessionNotFoundError;
|
|
10105
|
+
/**
|
|
10106
|
+
* UnknownError
|
|
10107
|
+
*/
|
|
10108
|
+
500: UnknownError1;
|
|
10109
|
+
};
|
|
10110
|
+
export type V2SessionRevertStageError = V2SessionRevertStageErrors[keyof V2SessionRevertStageErrors];
|
|
10111
|
+
export type V2SessionRevertStageResponses = {
|
|
10112
|
+
/**
|
|
10113
|
+
* Success
|
|
10114
|
+
*/
|
|
10115
|
+
200: {
|
|
10116
|
+
data: {
|
|
10117
|
+
messageID: string;
|
|
10118
|
+
partID?: string;
|
|
10119
|
+
snapshot?: string;
|
|
10120
|
+
diff?: string;
|
|
10121
|
+
files?: Array<FileDiff>;
|
|
10122
|
+
};
|
|
10123
|
+
};
|
|
10124
|
+
};
|
|
10125
|
+
export type V2SessionRevertStageResponse = V2SessionRevertStageResponses[keyof V2SessionRevertStageResponses];
|
|
10126
|
+
export type V2SessionRevertClearData = {
|
|
10127
|
+
body?: never;
|
|
10128
|
+
path: {
|
|
10129
|
+
sessionID: string;
|
|
10130
|
+
};
|
|
10131
|
+
query?: never;
|
|
10132
|
+
url: "/api/session/{sessionID}/revert/clear";
|
|
10133
|
+
};
|
|
10134
|
+
export type V2SessionRevertClearErrors = {
|
|
10135
|
+
/**
|
|
10136
|
+
* InvalidRequestError
|
|
10137
|
+
*/
|
|
10138
|
+
400: InvalidRequestError;
|
|
10139
|
+
/**
|
|
10140
|
+
* UnauthorizedError
|
|
10141
|
+
*/
|
|
10142
|
+
401: UnauthorizedError;
|
|
10143
|
+
/**
|
|
10144
|
+
* SessionNotFoundError
|
|
10145
|
+
*/
|
|
10146
|
+
404: SessionNotFoundError;
|
|
10147
|
+
/**
|
|
10148
|
+
* UnknownError
|
|
10149
|
+
*/
|
|
10150
|
+
500: UnknownError1;
|
|
10151
|
+
};
|
|
10152
|
+
export type V2SessionRevertClearError = V2SessionRevertClearErrors[keyof V2SessionRevertClearErrors];
|
|
10153
|
+
export type V2SessionRevertClearResponses = {
|
|
10154
|
+
/**
|
|
10155
|
+
* <No Content>
|
|
10156
|
+
*/
|
|
10157
|
+
204: void;
|
|
10158
|
+
};
|
|
10159
|
+
export type V2SessionRevertClearResponse = V2SessionRevertClearResponses[keyof V2SessionRevertClearResponses];
|
|
10160
|
+
export type V2SessionRevertCommitData = {
|
|
10161
|
+
body?: never;
|
|
10162
|
+
path: {
|
|
10163
|
+
sessionID: string;
|
|
10164
|
+
};
|
|
10165
|
+
query?: never;
|
|
10166
|
+
url: "/api/session/{sessionID}/revert/commit";
|
|
10167
|
+
};
|
|
10168
|
+
export type V2SessionRevertCommitErrors = {
|
|
10169
|
+
/**
|
|
10170
|
+
* InvalidRequestError
|
|
10171
|
+
*/
|
|
10172
|
+
400: InvalidRequestError;
|
|
10173
|
+
/**
|
|
10174
|
+
* UnauthorizedError
|
|
10175
|
+
*/
|
|
10176
|
+
401: UnauthorizedError;
|
|
10177
|
+
/**
|
|
10178
|
+
* SessionNotFoundError
|
|
10179
|
+
*/
|
|
10180
|
+
404: SessionNotFoundError;
|
|
10181
|
+
};
|
|
10182
|
+
export type V2SessionRevertCommitError = V2SessionRevertCommitErrors[keyof V2SessionRevertCommitErrors];
|
|
10183
|
+
export type V2SessionRevertCommitResponses = {
|
|
10184
|
+
/**
|
|
10185
|
+
* <No Content>
|
|
10186
|
+
*/
|
|
10187
|
+
204: void;
|
|
10188
|
+
};
|
|
10189
|
+
export type V2SessionRevertCommitResponse = V2SessionRevertCommitResponses[keyof V2SessionRevertCommitResponses];
|
|
8236
10190
|
export type V2SessionContextData = {
|
|
8237
10191
|
body?: never;
|
|
8238
10192
|
path: {
|
|
@@ -9067,12 +11021,7 @@ export type V2SkillListResponse = V2SkillListResponses[keyof V2SkillListResponse
|
|
|
9067
11021
|
export type V2EventSubscribeData = {
|
|
9068
11022
|
body?: never;
|
|
9069
11023
|
path?: never;
|
|
9070
|
-
query?:
|
|
9071
|
-
location?: {
|
|
9072
|
-
directory?: string;
|
|
9073
|
-
workspace?: string;
|
|
9074
|
-
};
|
|
9075
|
-
};
|
|
11024
|
+
query?: never;
|
|
9076
11025
|
url: "/api/event";
|
|
9077
11026
|
};
|
|
9078
11027
|
export type V2EventSubscribeErrors = {
|
|
@@ -9088,9 +11037,9 @@ export type V2EventSubscribeErrors = {
|
|
|
9088
11037
|
export type V2EventSubscribeError = V2EventSubscribeErrors[keyof V2EventSubscribeErrors];
|
|
9089
11038
|
export type V2EventSubscribeResponses = {
|
|
9090
11039
|
/**
|
|
9091
|
-
*
|
|
11040
|
+
* Event stream
|
|
9092
11041
|
*/
|
|
9093
|
-
200:
|
|
11042
|
+
200: V2Event;
|
|
9094
11043
|
};
|
|
9095
11044
|
export type V2EventSubscribeResponse = V2EventSubscribeResponses[keyof V2EventSubscribeResponses];
|
|
9096
11045
|
export type V2PtyListData = {
|