(values: Record<string, unknown>)
| 27 | /** Map a modal submission's `values` (keyed by input id) to a typed issue. */ |
| 28 | export function issueFromValues(values: Record<string, unknown>) { |
| 29 | return { |
| 30 | title: str(values.title), |
| 31 | description: str(values.description), |
| 32 | type: str(values.type, "bug"), |
| 33 | priority: str(values.priority, "Medium"), |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Handle a `/file-issue` modal submission: validate, then file via the agent |
| 39 | * (Linear MCP) so the existing confirm-before-write + filed-card flow is reused. |
no test coverage detected