MCPcopy Create free account
hub / github.com/anomalyco/opencode / edit.ts

File edit.ts

packages/core/src/tool/edit.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Model-facing V2 exact-edit leaf. Relative paths resolve within the active
3 * Location. Absolute paths inside that Location are accepted, while explicit
4 * absolute external paths retain mutation capability through a separate

Callers

nothing calls this directly

Calls 9

unableToEditFunction · 0.85
countOccurrencesFunction · 0.85
toModelOutputFunction · 0.70
decodeUtf8Function · 0.70
detectLineEndingFunction · 0.70
convertToLineEndingFunction · 0.70
splitBomFunction · 0.70
joinBomFunction · 0.70
makeMethod · 0.45

Tested by

no test coverage detected