Board workspace with real panels, tabs and theme; Nerd Font declared for all three machines
This commit is contained in:
@@ -189,9 +189,9 @@ type BlockerInfo struct {
|
||||
type blockerResponse struct {
|
||||
Diagnosis string `json:"diagnosis"`
|
||||
Readiness struct {
|
||||
AllBlockersDone bool `json:"allBlockersDone"`
|
||||
DependencyReady bool `json:"isDependencyReady"`
|
||||
UnresolvedBlockerCount int `json:"unresolvedBlockerCount"`
|
||||
AllBlockersDone bool `json:"allBlockersDone"`
|
||||
DependencyReady bool `json:"isDependencyReady"`
|
||||
UnresolvedBlockerCount int `json:"unresolvedBlockerCount"`
|
||||
} `json:"readiness"`
|
||||
Blockers []struct {
|
||||
Identifier string `json:"identifier"`
|
||||
@@ -350,3 +350,19 @@ func (c *Client) Issue(issueID string) (Issue, error) {
|
||||
err := c.do("GET", "/api/issues/"+issueID, nil, &out)
|
||||
return out, err
|
||||
}
|
||||
|
||||
// Cost is what one task has cost so far.
|
||||
type Cost struct {
|
||||
CostCents int `json:"costCents"`
|
||||
InputTokens int `json:"inputTokens"`
|
||||
OutputTokens int `json:"outputTokens"`
|
||||
RunCount int `json:"runCount"`
|
||||
RuntimeMs int `json:"runtimeMs"`
|
||||
}
|
||||
|
||||
// CostSummary returns the task's recorded spend.
|
||||
func (c *Client) CostSummary(issueID string) (Cost, error) {
|
||||
var out Cost
|
||||
err := c.do("GET", "/api/issues/"+issueID+"/cost-summary", nil, &out)
|
||||
return out, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user