Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ read.ts
File
read.ts
packages/opencode/src/tool/read.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ Effect, Option, Schema, Scope, Stream } from
"effect"
2
import
{ NonNegativeInt } from
"@opencode-ai/core/schema"
3
import
* as path from
"path"
4
import
* as Tool from
"./tool"
Callers
nothing calls this directly
Calls
11
sniffAttachmentMime
Function · 0.90
isPdfAttachment
Function · 0.90
isBinaryFile
Function · 0.85
open
Method · 0.80
stream
Method · 0.80
push
Method · 0.80
list
Function · 0.50
lines
Function · 0.50
warm
Function · 0.50
run
Function · 0.50
from
Method · 0.45
Tested by
no test coverage detected