You've already forked agentic-coding-workflow
主流程
This commit is contained in:
@@ -120,10 +120,17 @@ type AgentKindService interface {
|
||||
type SessionService interface {
|
||||
Create(ctx context.Context, c Caller, in CreateSessionInput) (*Session, error)
|
||||
Get(ctx context.Context, c Caller, id uuid.UUID) (*Session, error)
|
||||
List(ctx context.Context, c Caller, all bool) ([]*Session, error)
|
||||
List(ctx context.Context, c Caller, f SessionListFilter) ([]*Session, error)
|
||||
Terminate(ctx context.Context, c Caller, id uuid.UUID) error
|
||||
}
|
||||
|
||||
// SessionListFilter 控制 sessions 列表的过滤维度。
|
||||
// All 仅 admin 可用(查看全部用户);RequirementID nil 表示不按需求过滤。
|
||||
type SessionListFilter struct {
|
||||
All bool
|
||||
RequirementID *uuid.UUID
|
||||
}
|
||||
|
||||
// CreateSessionInput 是创建 session 的入参。
|
||||
// branch / issue_number / requirement_number 三选一或全空(spec §8.1)。
|
||||
type CreateSessionInput struct {
|
||||
|
||||
Reference in New Issue
Block a user