feat: expose workflow state events and persist signal transitions

This commit is contained in:
2026-09-18 09:27:45 +08:00
parent 082898e705
commit a4d9900e2c
34 changed files with 1499 additions and 27 deletions

View File

@@ -17,6 +17,7 @@ func RegisterWorkflows(server *http.Server, instances *instance.Service, control
mux := server.Handler.(*http.ServeMux)
registerWorkflowHistory(mux, instances, signals)
registerWorkflowQuery(mux, instances)
registerWorkflowEvents(mux, instances)
mux.HandleFunc("POST /v1/workflows", wrap(func(r *http.Request, t auth.Token) (any, int, error) {
if _, err := historyQuery(r, false); err != nil {
return nil, 0, err