regen sdk

This commit is contained in:
Aiden Cline
2025-10-22 23:00:03 -05:00
parent 7c7ebb0a9d
commit 61899d4fa7

View File

@@ -598,6 +598,10 @@ export type UserMessage = {
time: {
created: number
}
summary?: {
diffs: Array<FileDiff>
text: string
}
}
export type ProviderAuthError = {
@@ -629,6 +633,19 @@ export type MessageAbortedError = {
}
}
export type ApiError = {
name: "APIError"
data: {
message: string
statusCode?: number
isRetryable: boolean
responseHeaders?: {
[key: string]: string
}
responseBody?: string
}
}
export type AssistantMessage = {
id: string
sessionID: string
@@ -637,8 +654,9 @@ export type AssistantMessage = {
created: number
completed?: number
}
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
system: Array<string>
parentID: string
modelID: string
providerID: string
mode: string
@@ -857,6 +875,18 @@ export type AgentPart = {
}
}
export type RetryPart = {
id: string
sessionID: string
messageID: string
type: "retry"
attempt: number
error: ApiError
time: {
created: number
}
}
export type Part =
| TextPart
| ReasoningPart
@@ -867,6 +897,7 @@ export type Part =
| SnapshotPart
| PatchPart
| AgentPart
| RetryPart
export type TextPartInput = {
id?: string
@@ -1178,7 +1209,7 @@ export type EventSessionError = {
type: "session.error"
properties: {
sessionID?: string
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
}
}