mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
13 lines
443 B
TypeScript
13 lines
443 B
TypeScript
import type { TuiAgent } from './agent-launch/catalog/tui-agent'
|
|
import { TUI_AGENT_CONFIG } from './agent-launch/catalog/tui-agent-config'
|
|
|
|
const DEFAULT_DRAFT_PASTE_READY_TIMEOUT_MS = 8000
|
|
|
|
export function resolveDraftPasteReadyTimeoutMs(agent?: TuiAgent, overrideMs?: number): number {
|
|
return (
|
|
overrideMs ??
|
|
(agent ? TUI_AGENT_CONFIG[agent].draftPasteReadyTimeoutMs : undefined) ??
|
|
DEFAULT_DRAFT_PASTE_READY_TIMEOUT_MS
|
|
)
|
|
}
|