Add agent task listing command and CAPI client

Introduces a new 'list' subcommand under agent-task for listing agent tasks. Implements a Copilot API client for fetching agent sessions and hydrating them with pull request data. Updates PullRequest and PRRepository types to support new fields. Adds dependencies for msgpack and tagparser.

Co-Authored-By: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Kynan Ware 2025-08-27 17:02:09 -06:00
parent b939188e6d
commit dd424d85fd
8 changed files with 528 additions and 2 deletions

View file

@ -62,6 +62,7 @@ type PullRequest struct {
MergedBy *Author
HeadRepositoryOwner Owner
HeadRepository *PRRepository
Repository *PRRepository
IsCrossRepository bool
IsDraft bool
MaintainerCanModify bool
@ -251,8 +252,9 @@ type Workflow struct {
}
type PRRepository struct {
ID string `json:"id"`
Name string `json:"name"`
ID string `json:"id"`
Name string `json:"name"`
NameWithOwner string `json:"nameWithOwner"`
}
type AutoMergeRequest struct {