feat(orchestrator): observe Page Data validation

This commit is contained in:
john
2026-07-25 14:16:57 +08:00
parent e02495a6c0
commit 417aa9c78b
17 changed files with 784 additions and 16 deletions
+13
View File
@@ -134,6 +134,19 @@ export function createOrchestratorApp({
}
});
app.post('/v1/runs/:runId/validation-observations', async (request, response, next) => {
try {
const state = await runtime.recordValidationObservation(
request.params.runId,
request.body,
);
if (!state) return response.status(404).json({ error: { code: 'RUN_NOT_FOUND' } });
return response.json(state);
} catch (error) {
return next(error);
}
});
app.post('/v1/runs/:runId/resume', async (request, response, next) => {
try {
const state = await runtime.resume(request.params.runId, request.body);