Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ toRecord
Function
toRecord
packages/opencode/src/session/tools.ts:488–491 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
486
})
487
488
function
toRecord(value: unknown) {
489
if
(isRecord(value))
return
value
490
return
{}
491
}
492
493
function
parseListMcpResourcesArgs(value: unknown) {
494
const
args = toRecord(value)
Callers
3
execute
Function · 0.85
parseListMcpResourcesArgs
Function · 0.85
parseReadMcpResourceArgs
Function · 0.85
Calls
1
isRecord
Function · 0.90
Tested by
no test coverage detected