MCPcopy Create free account
hub / github.com/anomalyco/opencode / array

Function array

packages/opencode/test/server/httpapi-sdk.test.ts:170–172  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

168}
169
170function array(value: unknown) {
171 return Array.isArray(value) ? value : []
172}
173
174function statuses(input: Record<string, Captured>) {
175 return Object.fromEntries(Object.entries(input).map(([key, value]) => [key, value.status]))

Callers 3

firstPartTextFunction · 0.70
sessionTitlesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected