MCPcopy Create free account
hub / github.com/compozy/agh / normalizeTaskInboxActor

Function normalizeTaskInboxActor

internal/observe/tasks.go:1009–1018  ·  view source on GitHub ↗
(actor taskpkg.ActorIdentity)

Source from the content-addressed store, hash-verified

1007}
1008
1009func normalizeTaskInboxActor(actor taskpkg.ActorIdentity) (taskpkg.ActorIdentity, error) {
1010 normalized := taskpkg.ActorIdentity{
1011 Kind: actor.Kind.Normalize(),
1012 Ref: strings.TrimSpace(actor.Ref),
1013 }
1014 if err := normalized.Validate("task_inbox.actor"); err != nil {
1015 return taskpkg.ActorIdentity{}, err
1016 }
1017 return normalized, nil
1018}
1019
1020func taskInboxLanes(filter TaskInboxLane) []TaskInboxLane {
1021 if filter.Normalize() != "" {

Callers 1

QueryTaskInboxMethod · 0.85

Calls 2

ValidateMethod · 0.95
NormalizeMethod · 0.45

Tested by

no test coverage detected