refactor: remove unused helpers and internal exports

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-24 17:11:28 +08:00
1 parent cab3a360ea
commit 3ecc3d3556
13 files changed
+22 -49

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
View File
@@ -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"