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
@@ -124,6 +124,12 @@ export function createRemoteWorkflowEngine({
async getState(runId) {
return request(`/v1/runs/${encodeURIComponent(runId)}`);
},
async recordValidationObservation(runId, observation) {
return request(`/v1/runs/${encodeURIComponent(runId)}/validation-observations`, {
method: 'POST',
body: JSON.stringify(observation ?? {}),
});
},
async *streamEvents(runId, cursor = null) {
const query = cursor == null ? '' : `?after=${encodeURIComponent(cursor)}`;
const result = await request(`/v1/runs/${encodeURIComponent(runId)}/events${query}`);