MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / requireCwd

Function requireCwd

sdk/src/run.ts:579–586  ·  view source on GitHub ↗
(cwd: string | undefined, toolName: string)

Source from the content-addressed store, hash-verified

577}
578
579function requireCwd(cwd: string | undefined, toolName: string): string {
580 if (!cwd) {
581 throw new Error(
582 `cwd is required for the ${toolName} tool. Please provide cwd in CodebuffClientOptions or override the ${toolName} tool.`,
583 )
584 }
585 return cwd
586}
587
588async function readFiles({
589 filePaths,

Callers 2

readFilesFunction · 0.85
handleToolCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected