(goal: string)
| 370 | // Agent name cap on the server is 100 chars. First-line-only so |
| 371 | // multi-paragraph goals don't surface their boilerplate preamble. |
| 372 | export function buildKickoffAgentName(goal: string): string { |
| 373 | const firstLine = goal.split("\n")[0]?.trim() ?? ""; |
| 374 | const excerpt = firstLine.slice(0, 100).trim(); |
| 375 | return excerpt || "root planner"; |
| 376 | } |
| 377 | |
| 378 | export function resolveKickoffRepoUrl(repo: string | undefined): string { |
| 379 | if (repo) return repo; |
no outgoing calls
no test coverage detected