Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 4 lines 207 Bytes
Raw
1 const cwdRegex = global.process !== undefined ? new RegExp(global.process.cwd(), 'g') : null;
2
3 export const stripCwdPath = (path: string): string =>
4 cwdRegex === null ? path : path.replace(cwdRegex, '.');