(t: string)
| 52 | } |
| 53 | |
| 54 | function assertTempValid(t: string) { |
| 55 | // should include {{diff}} |
| 56 | if (!t.includes("{{diff}}")) { |
| 57 | throw new Error("Template must include {{diff}}"); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | export function loadPromptTemplate(): string { |
| 62 | if (existsSync(LOCAL_CONFIG_PATH)) { |
no outgoing calls
no test coverage detected