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

Function language

packages/session-ui/src/components/markdown-stream.ts:22–24  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

20}
21
22function language(value: string | undefined) {
23 return value?.trim().split(/\s+/, 1)[0] || undefined
24}
25
26function openCode(raw: string) {
27 const newline = raw.indexOf("\n")

Callers 1

streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected