feat(core): typed free-limit error with reset time (#57146)

This commit is contained in:
Kit Langton
2026-10-20 15:10:35 -07:00
committed by GitHub
Unverified
parent db1fbe849c
commit a9fa57b738
8 changed files with 86 additions and 7 deletions
+5
View File
@@ -685,6 +685,7 @@ export type SessionLogOutput =
readonly message: string
readonly status?: number | undefined
readonly response?: { readonly body: string } | undefined
readonly retryAfterMs?: number | undefined
}
}
}
@@ -852,6 +853,7 @@ export type SessionLogOutput =
readonly message: string
readonly status?: number | undefined
readonly response?: { readonly body: string } | undefined
readonly retryAfterMs?: number | undefined
}
readonly finish?: "content-filter" | undefined
readonly rawFinish?: string | undefined
@@ -1040,6 +1042,7 @@ export type SessionLogOutput =
readonly message: string
readonly status?: number | undefined
readonly response?: { readonly body: string } | undefined
readonly retryAfterMs?: number | undefined
}
readonly content?:
| readonly [
@@ -1087,6 +1090,7 @@ export type SessionLogOutput =
readonly message: string
readonly status?: number | undefined
readonly response?: { readonly body: string } | undefined
readonly retryAfterMs?: number | undefined
}
}
}
@@ -1148,6 +1152,7 @@ export type SessionLogOutput =
readonly message: string
readonly status?: number | undefined
readonly response?: { readonly body: string } | undefined
readonly retryAfterMs?: number | undefined
}
readonly inputID?: SessionMessage.ID | undefined
readonly cost?: Money.USD | undefined
@@ -108,7 +108,13 @@ export type ToolTextContent = { type: "text"; text: string }
export type ToolFileContent = { type: "file"; uri: string; mime: string; name?: string | null }
export type SessionStructuredError = { type: string; message: string; status?: number; response?: { body: string } }
export type SessionStructuredError = {
type: string
message: string
status?: number
response?: { body: string }
retryAfterMs?: number
}
export type SessionActive = { type: "running" }