(ctx: AIContext)
| 22 | * - That it's operating inside Plannotator (not a general coding session) |
| 23 | */ |
| 24 | export function buildSystemPrompt(ctx: AIContext): string { |
| 25 | switch (ctx.mode) { |
| 26 | case "plan-review": |
| 27 | return buildPlanReviewPrompt(ctx); |
| 28 | case "code-review": |
| 29 | return buildCodeReviewPrompt(); |
| 30 | case "annotate": |
| 31 | return buildAnnotatePrompt(ctx); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Build a compact context summary suitable for injecting into a fork prompt. |
no test coverage detected