Simplify directory tree output for prompts (#11731)
This commit is contained in:
parent
0dc80df6fd
commit
c69474846f
1 changed files with 36 additions and 80 deletions
|
|
@ -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"),
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue