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

Method ListTaskBlocks

internal/cli/client.go:4468–4482  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	includeCleared bool,
)

Source from the content-addressed store, hash-verified

4466}
4467
4468func (c *unixSocketClient) ListTaskBlocks(
4469 ctx context.Context,
4470 id string,
4471 includeCleared bool,
4472) ([]TaskBlockRecord, error) {
4473 var response contract.TaskBlocksResponse
4474 values := url.Values{}
4475 if includeCleared {
4476 values.Set("include_cleared", "true")
4477 }
4478 if err := c.doJSON(ctx, http.MethodGet, taskBlocksPath(id), values, nil, &response); err != nil {
4479 return nil, err
4480 }
4481 return response.Blocks, nil
4482}
4483
4484func (c *unixSocketClient) ClearTaskBlock(
4485 ctx context.Context,

Callers

nothing calls this directly

Calls 3

doJSONMethod · 0.95
taskBlocksPathFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected