Documentation
¶
Overview ¶
Package recap contains the server-backed data types and static renderer behind `entire recap`.
Index ¶
- Constants
- func RenderStaticRecap(resp *MeRecapResponse, opts RenderOptions) string
- type AgentAggregate
- type AgentEntry
- type AnalysisStatus
- type ContribSummary
- type DailyCount
- type LabelCount
- type McpCount
- type MeRecapResponse
- type RangeKey
- type RenderOptions
- type SkillCount
- type Summary
- type SummaryTotals
- type ToolMix
- type ViewMode
Constants ¶
View Source
const ( DefaultWidth = 78 AgentAll = "all" )
Variables ¶
This section is empty.
Functions ¶
func RenderStaticRecap ¶
func RenderStaticRecap(resp *MeRecapResponse, opts RenderOptions) string
RenderStaticRecap renders the server-backed static recap view.
Types ¶
type AgentAggregate ¶
type AgentAggregate struct {
Sessions int `json:"sessions"`
Checkpoints int `json:"checkpoints"`
Tokens int `json:"tokens"`
TranscriptTokens int `json:"transcriptTokens"`
FilesChanged int `json:"filesChanged"`
Labels []LabelCount `json:"labels"`
Skills []SkillCount `json:"skills"`
MCPServers []McpCount `json:"mcpServers"`
ToolMix ToolMix `json:"toolMix"`
}
type AgentEntry ¶
type AgentEntry struct {
AgentID string `json:"agentId"`
AgentLabel string `json:"agentLabel"`
Me AgentAggregate `json:"me"`
Contributors *AgentAggregate `json:"contributors"`
}
type AnalysisStatus ¶
type ContribSummary ¶
type DailyCount ¶
type LabelCount ¶
type MeRecapResponse ¶
type MeRecapResponse struct {
Timeframe string `json:"timeframe"`
Repo *string `json:"repo"`
Since string `json:"since"`
Until string `json:"until"`
Agents map[string]AgentEntry `json:"agents"`
Summary Summary `json:"summary"`
Contributors *ContribSummary `json:"contributors"`
Daily []DailyCount `json:"daily"`
UpdatedAt string `json:"updated_at"`
}
MeRecapResponse mirrors GET /api/v1/me/recap.
type RangeKey ¶
type RangeKey string
RangeKey names the static recap windows supported by `entire recap`.
type RenderOptions ¶
type SkillCount ¶
type Summary ¶
type Summary struct {
Me SummaryTotals `json:"me"`
Team *SummaryTotals `json:"team"`
RepoCount int `json:"repoCount"`
ActiveDays int `json:"activeDays"`
Analysis AnalysisStatus `json:"analysis"`
}
Summary contains top-level counts intended for CLI rendering.
type SummaryTotals ¶
Click to show internal directories.
Click to hide internal directories.