mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
feat(core): typed free-limit error with reset time (#57146)
This commit is contained in:
committed by
GitHub
Unverified
parent
db1fbe849c
commit
a9fa57b738
@@ -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" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user