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

Method handleTasksDashboard

internal/extension/host_api_tasks.go:116–136  ·  view source on GitHub ↗
(ctx context.Context, raw json.RawMessage)

Source from the content-addressed store, hash-verified

114}
115
116func (h *HostAPIHandler) handleTasksDashboard(ctx context.Context, raw json.RawMessage) (any, error) {
117 var params hostAPITaskDashboardParams
118 if err := decodeHostAPIParams(raw, &params); err != nil {
119 return nil, err
120 }
121
122 observer, err := h.taskObserver()
123 if err != nil {
124 return nil, err
125 }
126 query, err := h.taskDashboardQueryFromParams(ctx, params)
127 if err != nil {
128 return nil, err
129 }
130
131 view, err := observer.QueryTaskDashboard(ctx, query)
132 if err != nil {
133 return nil, mapTaskRPCError("", err)
134 }
135 return taskDashboardPayloadFromView(&view), nil
136}
137
138func (h *HostAPIHandler) handleTasksInbox(ctx context.Context, raw json.RawMessage) (any, error) {
139 var params hostAPITaskInboxParams

Callers

nothing calls this directly

Calls 6

taskObserverMethod · 0.95
decodeHostAPIParamsFunction · 0.85
mapTaskRPCErrorFunction · 0.85
QueryTaskDashboardMethod · 0.65

Tested by

no test coverage detected