Files
agent-radar 2ed3415fb7
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
2026-09-01 20:17:27 +08:00

44 lines
2.2 KiB
Go

package workspaceissues
import "context"
type Store interface {
ListTopics(context.Context, string) (TopicList, error)
CreateTopic(context.Context, Topic) (Topic, error)
GetTopic(context.Context, string, string) (Topic, error)
UpdateTopic(context.Context, Topic) (Topic, error)
DeleteTopic(context.Context, string, string) (bool, error)
TouchTopicActivity(context.Context, string, string, int64) error
ListIssues(context.Context, IssueListFilter) (IssueList, error)
CreateIssue(context.Context, Issue) (Issue, error)
CreateIssueWithTasks(context.Context, Issue, []Task) (Issue, []Task, error)
GetIssue(context.Context, string, string) (Issue, error)
UpdateIssue(context.Context, Issue) (Issue, error)
DeleteIssue(context.Context, string, string, string) (bool, error)
RecalculateIssueProjection(context.Context, string, string) (Issue, error)
ListTasks(context.Context, TaskListFilter) (TaskList, error)
AppendTasks(context.Context, []Task) ([]Task, error)
GetTask(context.Context, string, string, string) (Task, error)
UpdateTask(context.Context, Task) (Task, error)
DeleteTask(context.Context, string, string, string, string) (bool, error)
AddContextRefs(context.Context, []ContextRef) ([]ContextRef, error)
ListContextRefs(context.Context, string, string, string, ContextRefParentKind) ([]ContextRef, error)
RemoveContextRef(context.Context, string, string, string, ContextRefParentKind, string) (bool, error)
CreateRun(context.Context, Run) (Run, error)
CompleteRun(context.Context, Run, []RunOutput) (Run, []RunOutput, error)
// ListRuns returns runs scoped to workspace. An empty issueID intentionally
// returns workspace history, which session-linkage lookups use without
// adding a second persistence API. taskID is only meaningful when issueID
// is set.
ListRuns(context.Context, string, string, string) ([]Run, error)
ListRunningRuns(context.Context, string, int) ([]Run, error)
GetRun(context.Context, string, string, string, string) (Run, error)
ListRunOutputs(context.Context, string, string, string, string) ([]RunOutput, error)
ListLatestRunOutputs(context.Context, string, string, string) ([]RunOutput, error)
SearchRunOutputs(context.Context, RunOutputSearchParams) ([]RunOutputSearchHit, error)
}