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

Method SessionRecap

internal/cli/client.go:2901–2917  ·  view source on GitHub ↗
(ctx context.Context, id string, limit int)

Source from the content-addressed store, hash-verified

2899}
2900
2901func (c *unixSocketClient) SessionRecap(ctx context.Context, id string, limit int) (SessionRecapRecord, error) {
2902 var response struct {
2903 Recap SessionRecapRecord `json:"recap"`
2904 }
2905 path, err := c.sessionScopedPath(ctx, id, "/recap")
2906 if err != nil {
2907 return SessionRecapRecord{}, err
2908 }
2909 values := url.Values{}
2910 if limit > 0 {
2911 values.Set("limit", strconv.Itoa(limit))
2912 }
2913 if err := c.doJSON(ctx, http.MethodGet, path, values, nil, &response); err != nil {
2914 return SessionRecapRecord{}, err
2915 }
2916 return response.Recap, nil
2917}
2918
2919func (c *unixSocketClient) RepairSession(
2920 ctx context.Context,

Callers

nothing calls this directly

Calls 3

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected