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

Function record

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

Source from the content-addressed store, hash-verified

164}
165
166function record(value: unknown) {
167 return value && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : {}
168}
169
170function array(value: unknown) {
171 return Array.isArray(value) ? value : []

Callers 3

firstPartTextFunction · 0.70
sessionTitlesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected