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

Method InspectSession

internal/cli/client.go:2818–2832  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	query SessionInspectQuery,
)

Source from the content-addressed store, hash-verified

2816}
2817
2818func (c *unixSocketClient) InspectSession(
2819 ctx context.Context,
2820 id string,
2821 query SessionInspectQuery,
2822) (SessionInspectRecord, error) {
2823 var response SessionInspectRecord
2824 path, err := c.sessionScopedPath(ctx, id, "/inspect")
2825 if err != nil {
2826 return SessionInspectRecord{}, err
2827 }
2828 if err := c.doJSON(ctx, http.MethodGet, path, sessionInspectValues(query), nil, &response); err != nil {
2829 return SessionInspectRecord{}, err
2830 }
2831 return response, nil
2832}
2833
2834func (c *unixSocketClient) RefreshSessionSoul(
2835 ctx context.Context,

Callers

nothing calls this directly

Calls 3

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95
sessionInspectValuesFunction · 0.85

Tested by

no test coverage detected