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

Function configIssues

packages/opencode/src/cli/error.ts:22–33  ·  view source on GitHub ↗
(input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

20}
21
22function configIssues(input: Record<string, unknown>): ConfigIssue[] {
23 return Array.isArray(input.issues)
24 ? input.issues.filter((issue): issue is ConfigIssue => {
25 if (!isRecord(issue)) return false
26 return (
27 typeof issue.message === "string" &&
28 Array.isArray(issue.path) &&
29 issue.path.every((x) => typeof x === "string")
30 )
31 })
32 : []
33}
34
35export function FormatError(input: unknown): string | undefined {
36 if (input instanceof Error && isRecord(input.cause) && "body" in input.cause) {

Callers 1

FormatErrorFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected