* Get git status
()
| 26 | * Get git status |
| 27 | */ |
| 28 | function getGitStatus(): string { |
| 29 | try { |
| 30 | if (!isGitRepo()) { |
| 31 | return "Not a git repository"; |
| 32 | } |
| 33 | const result = execSync("git status --porcelain", { |
| 34 | encoding: "utf-8", |
| 35 | cwd: process.cwd(), |
| 36 | }); |
| 37 | return result.trim() || "Working tree clean"; |
| 38 | } catch { |
| 39 | return "Git status not available"; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | const baseSystemMessage = `You are an agent in the Continue CLI. Given the user's prompt, you should use the tools available to you to answer the user's question. |
| 44 |
no test coverage detected