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

Function pathRoot

tools/claw-launcher-ui/server.mjs:729–736  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

727}
728
729function pathRoot(target) {
730 const resolved = resolve(target)
731 const match = resolved.match(/^[A-Za-z]:[\\/]/)
732 if (match) {
733 return match[0]
734 }
735 return resolved.startsWith('/') ? '/' : resolved
736}
737
738function getApprovalRequirement({ prompt, config, workspaceDir }) {
739 const reasons = []

Callers 1

workspaceLooksBroadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected