(text: string, source: string)
| 540 | } |
| 541 | |
| 542 | export function parsePlanJson(text: string, source: string): Plan { |
| 543 | return parseJsonWithSchema({ |
| 544 | schema: PlanSchema, |
| 545 | text, |
| 546 | source, |
| 547 | recoveryHint: "Fix the offending fields before running orchestrate again.", |
| 548 | rejectDeletedTrackerFields: true, |
| 549 | }); |
| 550 | } |
| 551 | |
| 552 | export function parsePlanValue(value: unknown, source: string): Plan { |
| 553 | return parseUnknownWithSchema({ |
no test coverage detected