refactor: remove unused helpers and internal exports
This commit is contained in:
1 parent
cab3a360ea
commit
3ecc3d3556
13 files changed
+22
-49
No files matched your search
+1
-1
@@ -444,7 +444,7 @@ interface RenderedRetryStatus extends RetryStatus {
|
||||
nextRetryAtMs?: number
|
||||
}
|
||||
|
||||
export function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now()): string {
|
||||
function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now()): string {
|
||||
const label = retryFailureLabel(status.error_kind)
|
||||
if (status.state === "exhausted") return `${label} · ending turn`
|
||||
if (status.state === "recovered") return "Connection restored"
|
||||
|
||||
@@ -11,7 +11,7 @@ const IMAGE_MIME_TYPES = [
|
||||
] as const
|
||||
const MAX_IMAGE_BYTES = 6 * 1024 * 1024
|
||||
|
||||
export interface ClipboardImage {
|
||||
interface ClipboardImage {
|
||||
dataUrl: string
|
||||
mimeType: typeof IMAGE_MIME_TYPES[number]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { decodeNotification, isCompactionPhase, isRecoveryState } from "../../packages/client-events/notifications"
|
||||
import type { ContextCompaction, NotificationEvent, RecoveryState } from "../../packages/client-events/notifications"
|
||||
export type { ContextCompaction, RecoveryState, RecoveryStatus, RetryStatus } from "../../packages/client-events/notifications"
|
||||
export type { ContextCompaction, RecoveryState, RetryStatus } from "../../packages/client-events/notifications"
|
||||
|
||||
export type ConnectionStatus =
|
||||
| "starting"
|
||||
|
||||
Reference in new issue
Block a user