diff --git a/cli/internal/runsummary/spaces.go b/cli/internal/runsummary/spaces.go index bf19941806a43..cc31e301b2760 100644 --- a/cli/internal/runsummary/spaces.go +++ b/cli/internal/runsummary/spaces.go @@ -10,15 +10,22 @@ type spacesRunResponse struct { URL string } +type spacesClientSummary struct { + ID string `json:"id"` + Name string `json:"name"` + Version string `json:"version"` +} + type spacesRunPayload struct { - StartTime int64 `json:"startTime,omitempty"` // when the run was started - EndTime int64 `json:"endTime,omitempty"` // when the run ended. we should never submit start and end at the same time. - Status string `json:"status,omitempty"` // Status is "running" or "completed" - Type string `json:"type,omitempty"` // hardcoded to "TURBO" - ExitCode int `json:"exitCode,omitempty"` // exit code for the full run - Command string `json:"command,omitempty"` // the thing that kicked off the turbo run - RepositoryPath string `json:"repositoryPath,omitempty"` // where the command was invoked from - Context string `json:"context,omitempty"` // the host on which this Run was executed (e.g. Github Action, Vercel, etc) + StartTime int64 `json:"startTime,omitempty"` // when the run was started + EndTime int64 `json:"endTime,omitempty"` // when the run ended. we should never submit start and end at the same time. + Status string `json:"status,omitempty"` // Status is "running" or "completed" + Type string `json:"type,omitempty"` // hardcoded to "TURBO" + ExitCode int `json:"exitCode,omitempty"` // exit code for the full run + Command string `json:"command,omitempty"` // the thing that kicked off the turbo run + RepositoryPath string `json:"repositoryPath,omitempty"` // where the command was invoked from + Context string `json:"context,omitempty"` // the host on which this Run was executed (e.g. Github Action, Vercel, etc) + Client spacesClientSummary `json:"client"` // Details about the turbo client // TODO: we need to add these in // originationUser string @@ -64,6 +71,11 @@ func (rsm *Meta) newSpacesRunCreatePayload() *spacesRunPayload { RepositoryPath: rsm.repoPath.ToString(), Type: "TURBO", Context: context, + Client: spacesClientSummary{ + ID: "turbo", + Name: "Turbo", + Version: rsm.RunSummary.TurboVersion, + }, } }