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: { time: {
created: number created: number
} }
summary?: {
diffs: Array<FileDiff>
text: string
}
} }
export type ProviderAuthError = { 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 = { export type AssistantMessage = {
id: string id: string
sessionID: string sessionID: string
@@ -637,8 +654,9 @@ export type AssistantMessage = {
created: number created: number
completed?: number completed?: number
} }
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
system: Array<string> system: Array<string>
parentID: string
modelID: string modelID: string
providerID: string providerID: string
mode: 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 = export type Part =
| TextPart | TextPart
| ReasoningPart | ReasoningPart
@@ -867,6 +897,7 @@ export type Part =
| SnapshotPart | SnapshotPart
| PatchPart | PatchPart
| AgentPart | AgentPart
| RetryPart
export type TextPartInput = { export type TextPartInput = {
id?: string id?: string
@@ -1178,7 +1209,7 @@ export type EventSessionError = {
type: "session.error" type: "session.error"
properties: { properties: {
sessionID?: string sessionID?: string
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
} }
} }