(issue: IssueRecord)
| 125 | /** The prompt a scheduled fire hands to the headless run: explicit `what`, else |
| 126 | * title + body, else just the title. The launcher interprets none of it. */ |
| 127 | export function issueFirePrompt(issue: IssueRecord): string { |
| 128 | const what = issue.what?.trim() |
| 129 | if (what) return what |
| 130 | const body = issue.body.trim() |
| 131 | return body ? `${issue.title}\n\n${body}` : issue.title |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Read + validate every issue in a workspace's `.alice/issues/` directory from |
no outgoing calls
no test coverage detected