MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / read-subtree.ts

File read-subtree.ts

packages/agent-runtime/src/tools/handlers/tool/read-subtree.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { getAllFilePaths } from '@codebuff/common/project-file-tree'
2import { jsonToolResult } from '@codebuff/common/util/messages'
3
4import { truncateFileTreeBasedOnTokenBudget } from '../../../system-prompt/truncate-file-tree'

Callers

nothing calls this directly

Calls 5

getAllFilePathsFunction · 0.90
jsonToolResultFunction · 0.90
buildDirectoryResultFunction · 0.85
buildFileResultFunction · 0.85
findNodeByFilePathFunction · 0.85

Tested by

no test coverage detected