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

Function statuses

packages/opencode/test/server/httpapi-sdk.test.ts:174–176  ·  view source on GitHub ↗
(input: Record<string, Captured>)

Source from the content-addressed store, hash-verified

172}
173
174function statuses(input: Record<string, Captured>) {
175 return Object.fromEntries(Object.entries(input).map(([key, value]) => [key, value.status]))
176}
177
178function firstPartText(value: unknown) {
179 return record(array(record(value).parts)[0]).text

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected