(text: string, source: string)
| 560 | } |
| 561 | |
| 562 | export function parsePlanTaskJson(text: string, source: string): PlanTask { |
| 563 | return parseJsonWithSchema({ |
| 564 | schema: PlanTaskSchema, |
| 565 | text, |
| 566 | source, |
| 567 | recoveryHint: "Fix the task definition before spawning.", |
| 568 | }); |
| 569 | } |
| 570 | |
| 571 | export function parsePlanTaskValue(value: unknown, source: string): PlanTask { |
| 572 | return parseUnknownWithSchema({ |
no test coverage detected