(goal: string)
| 508 | } |
| 509 | |
| 510 | export function inferKickoffRootSlug(goal: string): string { |
| 511 | const firstLine = goal.split("\n")[0]?.trim() ?? ""; |
| 512 | const explicit = firstLine.match(/^`?([a-z0-9][a-z0-9._-]*)`?\s*:/i); |
| 513 | const slug = explicit?.[1]; |
| 514 | return slug ?? buildKickoffAgentName(goal); |
| 515 | } |
| 516 | |
| 517 | function listItems(value: unknown): Record<string, unknown>[] { |
| 518 | const items = Array.isArray(field(value, "items")) |
no test coverage detected