(value: unknown)
| 9 | import { resolveModelFallbackChain } from "@/common/utils/ai/modelFallbacks"; |
| 10 | |
| 11 | export function coerceNonEmptyString(value: unknown): string | undefined { |
| 12 | if (typeof value !== "string") return undefined; |
| 13 | const trimmed = value.trim(); |
| 14 | return trimmed.length > 0 ? trimmed : undefined; |
| 15 | } |
| 16 | |
| 17 | export async function tryReadGitHeadCommitSha( |
| 18 | runtime: Runtime, |
no outgoing calls
no test coverage detected