feat: expose workflow runtime through HTTP and Go SDK

This commit is contained in:
2026-09-18 06:51:08 +08:00
parent af1ae4cb21
commit b9e4191c6b
50 changed files with 2221 additions and 143 deletions

View File

@@ -8,6 +8,7 @@ import (
core "git.yuntuo.hk/k2safe/orbit/model"
"git.yuntuo.hk/k2safe/orbit/platform/auth"
"git.yuntuo.hk/k2safe/orbit/pulse/service"
)
type captureStore struct {
@@ -28,6 +29,10 @@ func (s *captureStore) Steps(context.Context, auth.Token, core.ID) (StepsView, e
s.calls++
return StepsView{}, nil
}
func (s *captureStore) Step(context.Context, auth.Token, core.ID, string) (StepDetail, error) {
s.calls++
return StepDetail{}, nil
}
func TestAdmissionBoundaryPreservesExactInput(t *testing.T) {
store := &captureStore{}
api := New(store)
@@ -57,3 +62,12 @@ func TestAdmissionBoundaryPreservesExactInput(t *testing.T) {
t.Fatal("missing identity accepted")
}
}
func (s *captureStore) ListOperations(context.Context, auth.Token, core.ID, service.HistoryPageInput) (OperationPage, error) {
s.calls++
return OperationPage{}, nil
}
func (s *captureStore) GetOperation(context.Context, auth.Token, core.ID, core.ID) (OperationView, error) {
s.calls++
return OperationView{}, nil
}