(action)
| 38 | return toRuntimeObservation(result); |
| 39 | }, |
| 40 | async runSemantic(action) { |
| 41 | if (action.type !== 'set_value') { |
| 42 | return { |
| 43 | outcome: { |
| 44 | ok: false, |
| 45 | error: 'unsupported_action', |
| 46 | message: `synthetic runtime E2E rejects ${action.type}`, |
| 47 | }, |
| 48 | }; |
| 49 | } |
| 50 | const result = scenario.execute({ |
| 51 | action: 'set_value', |
| 52 | observation_id: action.observationId, |
| 53 | element_id: action.elementId, |
| 54 | value: action.value, |
| 55 | }); |
| 56 | return { |
| 57 | outcome: result.outcome, |
| 58 | observation: toRuntimeObservation(result.fresh_observation), |
| 59 | }; |
| 60 | }, |
| 61 | async captureObservation(input) { |
| 62 | return toRuntimeObservation( |
| 63 | scenario.execute({ |
nothing calls this directly
no test coverage detected