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

Function firstPartText

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

Source from the content-addressed store, hash-verified

176}
177
178function firstPartText(value: unknown) {
179 return record(array(record(value).parts)[0]).text
180}
181
182function sessionTitles(value: unknown) {
183 return array(value)

Callers 1

Calls 2

recordFunction · 0.70
arrayFunction · 0.70

Tested by

no test coverage detected