MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / toWorkspaceRelative

Function toWorkspaceRelative

compatible-shell/src/tools.mjs:391–394  ·  view source on GitHub ↗
(workspaceDir, absolutePath)

Source from the content-addressed store, hash-verified

389}
390
391function toWorkspaceRelative(workspaceDir, absolutePath) {
392 const relative = path.relative(workspaceDir, absolutePath)
393 return relative || '.'
394}
395
396function truncateText(text) {
397 if (typeof text !== 'string') {

Callers 4

listDirFunction · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85
searchTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected