()
| 36 | } |
| 37 | |
| 38 | export async function environment() { |
| 39 | const project = Instance.project |
| 40 | return [ |
| 41 | [ |
| 42 | `Here is some useful information about the environment you are running in:`, |
| 43 | `<env>`, |
| 44 | ` Working directory: ${Instance.directory}`, |
| 45 | ` Is directory a git repo: ${project.vcs === "git" ? "yes" : "no"}`, |
| 46 | ` Platform: ${process.platform}`, |
| 47 | ` Today's date: ${new Date().toDateString()}`, |
| 48 | `</env>`, |
| 49 | `<files>`, |
| 50 | ` ${ |
| 51 | project.vcs === "git" |
| 52 | ? await Ripgrep.tree({ |
| 53 | cwd: Instance.directory, |
| 54 | limit: 200, |
| 55 | }) |
| 56 | : "" |
| 57 | }`, |
| 58 | `</files>`, |
| 59 | ].join("\n"), |
| 60 | ] |
| 61 | } |
| 62 | |
| 63 | const LOCAL_RULE_FILES = [ |
| 64 | "ARCTIC.md", |
nothing calls this directly
no outgoing calls
no test coverage detected