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

Method ListSessions

internal/cli/client.go:2720–2728  ·  view source on GitHub ↗
(ctx context.Context, query SessionListQuery)

Source from the content-addressed store, hash-verified

2718}
2719
2720func (c *unixSocketClient) ListSessions(ctx context.Context, query SessionListQuery) ([]SessionRecord, error) {
2721 var response struct {
2722 Sessions []SessionRecord `json:"sessions"`
2723 }
2724 if err := c.doJSON(ctx, http.MethodGet, "/api/sessions", sessionListValues(query), nil, &response); err != nil {
2725 return nil, err
2726 }
2727 return response.Sessions, nil
2728}
2729
2730func (c *unixSocketClient) sessionScopedPath(ctx context.Context, id string, suffix string) (string, error) {
2731 sessionID, err := requireNetworkPathValue("session_id", id)

Callers 2

sessionWorkspaceRefMethod · 0.95

Calls 2

doJSONMethod · 0.95
sessionListValuesFunction · 0.85

Tested by 1