Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ openCode
Function
openCode
packages/session-ui/src/components/markdown-stream.ts:26–29 ·
view source on GitHub ↗
(raw: string)
Source
from the content-addressed store, hash-verified
24
}
25
26
function
openCode(raw: string) {
27
const
newline = raw.indexOf(
"\n"
)
28
return
newline < 0 ?
""
: raw.slice(newline + 1)
29
}
30
31
function
open(raw: string) {
32
const
match = raw.match(/^[ \t]{0,3}(`{3,}|~{3,})/)
Callers
1
stream
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected