diff --git a/cmd/mavend/ecosystem.go b/cmd/mavend/ecosystem.go index 21287a5..6a7e3a1 100644 --- a/cmd/mavend/ecosystem.go +++ b/cmd/mavend/ecosystem.go @@ -183,6 +183,16 @@ func (c *praxisClient) ListAttention(ctx context.Context, limit int) ([]map[stri return out, err } +// ListAttentionForEntity is ListAttention scoped to a single canonical Nexus +// entity, so callers already holding a resolved entity_id (e.g. after +// resolveEntityReference) can ask "what needs attention for this entity" +// instead of filtering the unscoped list client-side. +func (c *praxisClient) ListAttentionForEntity(ctx context.Context, entityID string, limit int) ([]map[string]any, error) { + var out []map[string]any + err := c.getJSON(ctx, fmt.Sprintf("/api/v1/tools/attention?limit=%d&entity_id=%s", limit, url.QueryEscape(entityID)), &out) + return out, err +} + func (c *praxisClient) ListChanges(ctx context.Context, limit int) ([]map[string]any, error) { var out []map[string]any err := c.getJSON(ctx, fmt.Sprintf("/api/v1/tools/changes?limit=%d", limit), &out)