(message: UserMessage)
| 131 | } |
| 132 | |
| 133 | function collectUserPromptParts(message: UserMessage): string { |
| 134 | const { content } = message; |
| 135 | if (typeof content === "string") return content; |
| 136 | |
| 137 | let collected = ""; |
| 138 | for (const part of content) { |
| 139 | if (part.type === "text" && typeof part.text === "string") { |
| 140 | collected += (collected.length > 0 ? "\n" : "") + part.text; |
| 141 | } |
| 142 | } |
| 143 | return collected; |
| 144 | } |
| 145 | |
| 146 | function hasStackedAugmentation(rawText: string): boolean { |
| 147 | return ( |
no outgoing calls
no test coverage detected