MCPcopy Create free account
hub / github.com/anomalyco/opencode / parsePathToken

Function parsePathToken

packages/opencode/src/project/vcs.ts:52–55  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

50}
51
52const parsePathToken = (value: string) => {
53 if (!value.startsWith('"')) return value.split("\t")[0]
54 return parseQuotedPath(value)?.value ?? value
55}
56
57const fileFromDiffPath = (value: string | undefined) => {
58 if (!value || value === "/dev/null") return

Callers 1

fileFromDiffPathFunction · 0.85

Calls 1

parseQuotedPathFunction · 0.85

Tested by

no test coverage detected