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

Function tab

packages/app/src/context/file/path.ts:133–136  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

131 }
132
133 const tab = (input: string) => {
134 const path = normalize(input)
135 return `file://${encodeFilePath(path)}`
136 }
137
138 const pathFromTab = (tabValue: string) => {
139 if (!tabValue.startsWith("file://")) return

Callers 1

RunFooterSubagentBodyFunction · 0.85

Calls 2

encodeFilePathFunction · 0.85
normalizeFunction · 0.70

Tested by

no test coverage detected