mirror of
https://github.com/anomalyco/opencode.git
synced 2026-10-27 04:30:01 +00:00
8 lines
290 B
TypeScript
8 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
|
|
}
|