MCPcopy Index your code
hub / github.com/anomalyco/opencode / field

Function field

packages/tui/src/util/error.ts:93–95  ·  view source on GitHub ↗
(input: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

91}
92
93function field(input: Record<string, unknown>, key: string) {
94 return typeof input[key] === "string" ? input[key] : undefined
95}
96
97export function errorFormat(error: unknown): string {
98 if (error instanceof Error) {

Callers 1

cliErrorMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected