| 329 | return connect.NewResponse(out), nil |
| 330 | } |
| 331 | func (a *API) GetRun(_ context.Context, r *connect.Request[pb.GetRunRequest]) (*connect.Response[pb.GetRunResponse], error) { |
| 332 | run, e := a.s.Store.Run(r.Msg.RunId) |
| 333 | if e != nil { |
| 334 | return nil, apiError(e) |
| 335 | } |
| 336 | return connect.NewResponse(&pb.GetRunResponse{Run: a.run(run, true)}), nil |
| 337 | } |
| 338 | func (a *API) GetLogs(_ context.Context, r *connect.Request[pb.GetLogsRequest]) (*connect.Response[pb.GetLogsResponse], error) { |
| 339 | limit := int(r.Msg.Limit) |
| 340 | if limit == 0 { |