(note: string)
| 33 | * step, and NOT to throw away correct work already done. |
| 34 | */ |
| 35 | export function buildSteerMessage(note: string): string { |
| 36 | const body = note.trim() || '(the user sent an empty note — ask what they meant only if you were unsure, otherwise continue)'; |
| 37 | return [ |
| 38 | '[STEERING NOTE — the user added this mid-task, without stopping you.]', |
| 39 | body, |
| 40 | '[Weigh it now. If it changes what you should do next, adjust course and say so in one line. ' + |
| 41 | 'If it only confirms your current plan, acknowledge briefly and keep going. ' + |
| 42 | 'Do not restart work that is already done correctly.]', |
| 43 | ].join('\n'); |
| 44 | } |
no outgoing calls
no test coverage detected