Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ apply-patch.ts
File
apply-patch.ts
packages/core/src/tool/apply-patch.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
export
* as ApplyPatchTool from
"./apply-patch"
2
3
import
{ ToolFailure } from
"@opencode-ai/llm"
4
import
{ FileDiff } from
"@opencode-ai/schema/file-diff"
Callers
nothing calls this directly
Calls
9
push
Method · 0.80
toModelOutput
Function · 0.70
fail
Function · 0.70
find
Method · 0.65
create
Method · 0.65
remove
Method · 0.65
make
Method · 0.45
set
Method · 0.45
values
Method · 0.45
Tested by
no test coverage detected