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

Method RepairSession

internal/cli/client.go:2919–2942  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	query SessionRepairQuery,
)

Source from the content-addressed store, hash-verified

2917}
2918
2919func (c *unixSocketClient) RepairSession(
2920 ctx context.Context,
2921 id string,
2922 query SessionRepairQuery,
2923) (SessionRepairRecord, error) {
2924 var response struct {
2925 Repair SessionRepairRecord `json:"repair"`
2926 }
2927 path, err := c.sessionScopedPath(ctx, id, "/repair")
2928 if err != nil {
2929 return SessionRepairRecord{}, err
2930 }
2931 if err := c.doJSON(
2932 ctx,
2933 http.MethodPost,
2934 path,
2935 sessionRepairValues(query),
2936 nil,
2937 &response,
2938 ); err != nil {
2939 return SessionRepairRecord{}, err
2940 }
2941 return response.Repair, nil
2942}
2943
2944func (c *unixSocketClient) ApproveSession(
2945 ctx context.Context,

Callers 1

Calls 3

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95
sessionRepairValuesFunction · 0.85

Tested by 1