mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-09 17:16:05 -10:00
9 lines
290 B
TypeScript
9 lines
290 B
TypeScript
import type { SessionConfigOption } from "@agentclientprotocol/sdk"
|
|
|
|
export function currentValue(
|
|
result: { readonly configOptions?: readonly SessionConfigOption[] | null } | undefined,
|
|
id: string,
|
|
) {
|
|
return result?.configOptions?.find((option) => option.id === id)?.currentValue
|
|
}
|