| 3079 | } |
| 3080 | |
| 3081 | func (c *unixSocketClient) SessionHistory( |
| 3082 | ctx context.Context, |
| 3083 | id string, |
| 3084 | query SessionEventQuery, |
| 3085 | ) ([]TurnHistoryRecord, error) { |
| 3086 | var response struct { |
| 3087 | History []TurnHistoryRecord `json:"history"` |
| 3088 | } |
| 3089 | path, err := c.sessionScopedPath(ctx, id, "/history") |
| 3090 | if err != nil { |
| 3091 | return nil, err |
| 3092 | } |
| 3093 | if err := c.doJSON( |
| 3094 | ctx, |
| 3095 | http.MethodGet, |
| 3096 | path, |
| 3097 | sessionEventValues(query), |
| 3098 | nil, |
| 3099 | &response, |
| 3100 | ); err != nil { |
| 3101 | return nil, err |
| 3102 | } |
| 3103 | return response.History, nil |
| 3104 | } |
| 3105 | |
| 3106 | func (c *unixSocketClient) BindHostedMCP( |
| 3107 | ctx context.Context, |