(kind: MissionProgressKind, message: string)
| 166 | } |
| 167 | |
| 168 | function formatProgressNote(kind: MissionProgressKind, message: string): string | null { |
| 169 | switch (kind) { |
| 170 | case 'summary': |
| 171 | return `Summary: ${message}`; |
| 172 | case 'blocker': |
| 173 | return `Blocker: ${message}`; |
| 174 | case 'artifact': |
| 175 | return `Artifact: ${message}`; |
| 176 | case 'substep': |
| 177 | case 'note': |
| 178 | return message; |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | function normalizeText(value: string | null | undefined): string | null { |
| 183 | if (typeof value !== 'string') { |
no outgoing calls
no test coverage detected