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

Method GetTask

internal/task/manager_test.go:544–552  ·  view source on GitHub ↗
(_ context.Context, id string)

Source from the content-addressed store, hash-verified

542}
543
544func (s *inMemoryManagerStore) GetTask(_ context.Context, id string) (Task, error) {
545 record, ok := s.tasks[strings.TrimSpace(id)]
546 if !ok {
547 return Task{}, ErrTaskNotFound
548 }
549 cloned := cloneTask(record)
550 cloned.LatestEventSeq = s.latestEventSeq(cloned.ID)
551 return cloned, nil
552}
553
554func (s *inMemoryManagerStore) ListTasks(_ context.Context, query Query) ([]Summary, error) {
555 if err := query.Validate("task_query"); err != nil {

Callers

nothing calls this directly

Calls 2

latestEventSeqMethod · 0.95
cloneTaskFunction · 0.85

Tested by

no test coverage detected