Simplify directory tree output for prompts (#11731)

This commit is contained in:
Dax
2026-02-01 23:37:07 -05:00
committed by GitHub
parent 0dc80df6fd
commit c69474846f
2 changed files with 37 additions and 81 deletions

View File

@@ -36,16 +36,16 @@ export namespace SystemPrompt {
` Platform: ${process.platform}`,
` Today's date: ${new Date().toDateString()}`,
`</env>`,
`<files>`,
`<directories>`,
` ${
project.vcs === "git" && false
? await Ripgrep.tree({
cwd: Instance.directory,
limit: 200,
limit: 50,
})
: ""
}`,
`</files>`,
`</directories>`,
].join("\n"),
]
}