Versions in this module Expand all Collapse all v1 v1.0.5 Nov 9, 2026 Changes in this version + func ClonePath(sp StoreSpec) string + type RenameProjectOut struct + Commits map[string]string + DryRun bool + Files map[string]int + From string + IDs map[string]string + KeptOld bool + NewPrefix string + OldPrefix string + PushError string + Pushed []string + Skipped []string + Tickets int + To string type Service + func (s *Service) RenameProject(ctx context.Context, c Caller, key, newKey, newPrefix string, ...) (*RenameProjectOut, error) v1.0.4 Nov 9, 2026 v1.0.3 Nov 9, 2026 v1.0.2 Nov 9, 2026 v1.0.1 Nov 9, 2026 v1.0.0 Nov 8, 2026 Changes in this version + const CodeClaimLost + const CodeConflict + const CodeCycle + const CodeDanglingRef + const CodeGit + const CodeGitBusy + const CodeIDTaken + const CodeInvalid + const CodeInvalidField + const CodeMoved + const CodeNoCandidates + const CodeNoQuestion + const CodeNotClaimed + const CodeNotFound + const CodeNotYourClaim + const CodeReadOnly + const CodeResolutionRequired + const CodeThrottled + const CodeUnknownField + const CodeUnknownKind + const CodeUnknownLabel + const CodeUnknownProject + const CodeUnknownStatus + const DefaultFetchInterval + const DefaultPushDelay + const EvClaimChanged + const EvCommentCreated + const EvCommit + const EvConflictPreserved + const EvPresenceChanged + const EvQuestionAnswered + const EvQuestionOpened + const EvReset + const EvStoreChanged + const EvSyncState + const EvTicketCreated + const EvTicketMoved + const EvTicketRemoved + const EvTicketUpdated + const Gitattributes + const SystemActor + var EventTypes = []string + var LockTimeout = 2 * time.Minute + var MergeDriverCommand string + var QueryKeys = []string + func AgentsMD(project, prefix string) string + func BlobSHA(data []byte) string + func ConfigDir() string + func DataDir() string + func InitStore(ctx context.Context, o InitOptions) ([]string, error) + func IsCode(err error, code string) bool + func NormalizeAgent(name string) string + func ParsePushMode(s string) (mode string, delay time.Duration, err error) + func RegisterMergeDriver(ctx context.Context, g *gitx.Repo) error + func RunMergeDriver(ctx context.Context, base, ours, theirs, path string) int + func Template(prefix, status, now string) string + type ActivityIn struct + Before string + Limit int + Ticket string + type ActivityOut struct + Events []Event + More bool + type ActorOut struct + Aliases []string + Emails []string + Handle string + Kind string + Name string + Roles []string + type AnswerIn struct + Approved *bool + Choice *int + ID string + Question string + Text string + type AskIn struct + ID string + Kind string + Options []string + Question string + To string + Wait time.Duration + type AskOut struct + Answer *CommentOut + Answered bool + Question string + type BoardIn struct + CardFields []string + Columns []string + Description string + Filter string + GroupBy string + Key string + Sort string + Store string + Swimlanes string + Title string + type BoardOut struct + CardFields []string + Columns []string + Description string + Filter string + GroupBy string + ID string + Name string + Sort string + Store string + Swimlanes string + Title string + type Caller struct + Actor string + OnBehalfOf string + Session string + type CheckIn struct + ID string + Items []CheckItem + type CheckItem struct + Done bool + Index *int + Text string + type Claim struct + At string + By string + Stale bool + type ClaimEvent struct + From *Claim + Ticket Summary + To *Claim + type ClaimOut struct + Confirmed bool + type CommentEvent struct + Comment CommentOut + Ticket Ref + type CommentIn struct + Body string + ID string + Retracts string + Supersedes string + Type string + type CommentOut struct + Answers string + Approved *bool + Author string + Body string + Choice *int64 + ChoiceText string + Created string + Name string + Options []string + Resolution string + To string + Type string + type CommitOut struct + Author string + Date string + Diff string + SHA string + Store string + Subject string + Trailers map[string]string + Truncated bool + type ConfigEntry struct + Class string + Key string + Line int + LockedBy string + Note string + Source string + Value string + type ConfigExplainOut struct + Entries []ConfigEntry + Layers []string + Locked []string + Project string + Store string + type CreateIn struct + Acceptance []string + Approach string + Assignee string + BlockedBy []string + Body string + Fields map[string]any + Kind string + Labels []string + Links []string + Owner string + Parent string + Priority string + Problem string + Project string + Related []string + Status string + Title string + type CreateOut struct + Created []Ref + Error *Error + Local bool + PushPending bool + Pushed bool + type Detail struct + AcceptanceAll []kaspec.AcceptanceItem + BlockedBy []Ref + Blocks []Ref + Body string + Children []Ref + CommentCount int + Comments []CommentOut + CreatedBy string + Decisions []CommentOut + Links []string + OpenQuestions []CommentOut + ParentRef *Ref + Path string + Recent []CommentOut + Related []string + Store string + type DocEntry struct + Path string + Project string + Size int64 + Title string + type DocOut struct + Backlinks []Ref + Body string + Store string + StorePath string + Text bool + Truncated bool + type DocsOut struct + Docs []DocEntry + type Error struct + Code string + Data map[string]any + Fix string + Message string + func AsError(err error) *Error + func Errf(code, fix, format string, args ...any) *Error + func (e *Error) Error() string + func (e *Error) With(k string, v any) *Error + type Event struct + Actor string + At string + Commit string + Data any + Project string + Seq uint64 + Store string + Text string + Ticket string + Type string + type EventFilter struct + Projects []string + Tickets []string + Types []string + func ParseEventFilter(types, projects, tickets string) EventFilter + func (f EventFilter) Match(e Event) bool + type EventHub struct + func NewEventHub(size int) *EventHub + func (h *EventHub) Publish(evs ...Event) + func (h *EventHub) Seq() uint64 + func (h *EventHub) Since(seq uint64) (evs []Event, ok bool, more <-chan struct{}) + type EventSink interface + Publish func(evs ...Event) + type FieldChange struct + From any + To any + type FixCategory struct + Commit string + Files []string + Name string + type FixOut struct + Categories []FixCategory + type GetIn struct + ID string + Include []string + type InboxItem struct + Comment CommentOut + ID string + Question string + Restorable bool + Title string + type InboxOut struct + Answers []InboxItem + Questions []InboxItem + type Index struct + func (ix *Index) Workspace() *kaspec.Workspace + type InitOptions struct + Dir string + Extends string + Name string + Prefix string + Project string + type LinkOut struct + Line string + Link string + Path string + URL string + type MoveProjectOut struct + DryRun bool + Files int + From string + FromCommit string + Project string + PushError string + Pushed []string + Tickets int + To string + ToCommit string + type NextIn struct + Peek bool + Project string + Query string + type NextOut struct + Claimed bool + Confirmed bool + PushError string + Remaining int + Ticket *Detail + type Op struct + Actor string + Add map[string][]string + At string + Body *string + Check []CheckItem + Comment *kaspec.Comment + CommentName string + Fields map[string]*kaspec.FieldValue + ID string + IfMatch string + New *kaspec.Ticket + OnBehalfOf string + Op string + Remove map[string][]string + Session string + Set map[string]*string + Status string + Steal bool + func DecodeOp(s string) (*Op, error) + func (o *Op) Encode() string + type OpCount struct + N uint64 + Op string + Result string + type OpStats struct + func (m *OpStats) Snapshot() ([]OpCount, map[string]float64) + type OpenOptions struct + Dir string + Map map[string]string + Offline bool + Workspace string + type Pointer struct + Branch string + Dir string + Project string + Store string + func ParsePointer(dir string) (*Pointer, error) + type Preserved struct + Commit string + Field string + Kept string + Lost string + Path string + func MergeTickets(ctx context.Context, base, up, local []byte) (merged []byte, preserved []Preserved, ok bool) + type ProjectInfo struct + Cfg *kaspec.Config + CfgDiags []kaspec.Diagnostic + Dir string + File *kaspec.ProjectFile + Key string + Name string + Prefix string + Store *Store + type ProjectSchema struct + Archived bool + Fields map[string]kaspec.FieldDef + Initial string + Key string + Kinds []string + Labels []string + LabelsOpen bool + Name string + Prefix string + ReadOnly bool + Statuses []kaspec.Status + Store string + Tickets int + type Query struct + Sort []string + func ParseQuery(s string) (*Query, error) + func (q *Query) Has(key string) bool + type Rec struct + Comments []*kaspec.CommentEntry + Dir string + ID string + Invalid bool + Project *ProjectInfo + Raw []byte + Store *Store + T *kaspec.Ticket + type Ref struct + ID string + Status string + Title string + type Result struct + Commit string + HasRemote bool + Preserved []string + PushError string + PushPending bool + Pushed bool + Renamed map[string]string + Replayed int + type SchemaOut struct + Agents []string + DefaultProject string + Humans []string + Priorities []string + Projects []ProjectSchema + Resolutions []string + Roles []string + You string + type SearchIn struct + All bool + Full bool + Limit int + Query string + Sort []string + type SearchOut struct + Tickets []Summary + Total int + type Service struct + Background bool + NoPush bool + Now func() time.Time + PollStep time.Duration + WS *Workspace + func New(ctx context.Context, ws *Workspace) (*Service, error) + func (s *Service) Activity(ctx context.Context, in ActivityIn) (*ActivityOut, error) + func (s *Service) ActorFor(nameOrEmail string) string + func (s *Service) Actors() []ActorOut + func (s *Service) Answer(ctx context.Context, c Caller, in AnswerIn) (*WriteOut, error) + func (s *Service) Ask(ctx context.Context, c Caller, in AskIn) (*AskOut, error) + func (s *Service) BoardFilter(ref string) (string, bool) + func (s *Service) Boards() []BoardOut + func (s *Service) CallerAs(principal, actor, session string) Caller + func (s *Service) CallerFor(actor, session string) Caller + func (s *Service) CheckItems(ctx context.Context, c Caller, in CheckIn) (*WriteOut, string, error) + func (s *Service) Claim(ctx context.Context, c Caller, id string, steal bool) (*ClaimOut, error) + func (s *Service) Comment(ctx context.Context, c Caller, in CommentIn) (*WriteOut, error) + func (s *Service) Commit(ctx context.Context, store, sha string) (*CommitOut, error) + func (s *Service) ConfigExplain(project, key string) (*ConfigExplainOut, error) + func (s *Service) Create(ctx context.Context, c Caller, ins []CreateIn) (*CreateOut, error) + func (s *Service) DeleteBoard(ctx context.Context, c Caller, ref string) error + func (s *Service) Doc(project, rel string) (*DocOut, error) + func (s *Service) Docs(project string) (*DocsOut, error) + func (s *Service) ETag(id string) (string, error) + func (s *Service) FetchLoop(ctx context.Context) + func (s *Service) Fix(ctx context.Context, c Caller, dryRun bool) (*FixOut, error) + func (s *Service) Flush(ctx context.Context) + func (s *Service) Get(in GetIn) (*Detail, error) + func (s *Service) Human() string + func (s *Service) Inbox(c Caller, since string) *InboxOut + func (s *Service) Index() *Index + func (s *Service) Kick(store string) + func (s *Service) MoveProject(ctx context.Context, c Caller, key, to string, dryRun bool) (*MoveProjectOut, error) + func (s *Service) Next(ctx context.Context, c Caller, in NextIn) (*NextOut, error) + func (s *Service) Ops() *OpStats + func (s *Service) Projects() []string + func (s *Service) Release(ctx context.Context, c Caller, id, status string, force bool) (*WriteOut, error) + func (s *Service) Reload() + func (s *Service) ReplaceTicket(ctx context.Context, c Caller, id string, data []byte, ifMatch string) (*WriteOut, error) + func (s *Service) ResolveLink(link string) (*LinkOut, error) + func (s *Service) RestorePreserved(ctx context.Context, c Caller, id, comment string) (*WriteOut, error) + func (s *Service) SaveBoard(ctx context.Context, c Caller, in BoardIn) (*BoardOut, error) + func (s *Service) Schema(c Caller, project string) (*SchemaOut, error) + func (s *Service) Search(in SearchIn) (*SearchOut, error) + func (s *Service) SetEvents(sink EventSink) + func (s *Service) Stores(ctx context.Context) []StoreOut + func (s *Service) StoresForRepo(urls ...string) []string + func (s *Service) Sync(ctx context.Context, force bool) *SyncOut + func (s *Service) TicketCounts() map[[2]string]int + func (s *Service) TicketPath(id string) (string, *Store, error) + func (s *Service) Transition(ctx context.Context, c Caller, in TransitionIn) (*WriteOut, error) + func (s *Service) Update(ctx context.Context, c Caller, ins []UpdateIn) ([]*WriteOut, error) + func (s *Service) Validate(now time.Time) []kaspec.Diagnostic + func (s *Service) WatchLocal(ctx context.Context, every time.Duration) + func (s *Service) WorkspaceInfo() *WorkspaceOut + type Store struct + FetchInterval time.Duration + Managed bool + Name string + PushDelay time.Duration + PushMode string + ReadOnly bool + Root string + URL string + func OpenStore(ctx context.Context, name, dir string) (*Store, error) + func (s *Store) Activity() (lastFetch, lastPush time.Time, lastErr string) + func (s *Store) Do(ctx context.Context, h hooks, o *Op, push bool) (*Result, error) + func (s *Store) FetchOnly(ctx context.Context, h hooks) (*Result, error) + func (s *Store) Git() *gitx.Repo + func (s *Store) State(ctx context.Context) SyncState + func (s *Store) Sync(ctx context.Context, h hooks) (*Result, error) + func (st *Store) PushSetting() string + type StoreOut struct + FetchInterval string + LastError string + LastFetch string + LastPush string + Managed bool + PushMode string + PushPending bool + ReadOnly bool + Root string + URL string + type StoreSpec struct + Branch string + FetchInterval string + Name string + Path string + Push string + URL string + type Summary struct + Acceptance string + Assignee string + Blocked bool + Claim *Claim + Created string + Fields map[string]any + ID string + Kind string + Labels []string + Owner string + Parent string + Priority string + Project string + Status string + Title string + Updated string + type SyncOut struct + Conflicts []InboxItem + Errors []*Error + Preserved []string + Renamed map[string]string + Stores []SyncState + type SyncState struct + Ahead int + Attached bool + Behind int + Branch string + Detail string + Head string + Remote string + State string + Store string + type TicketEvent struct + BodyChanged bool + Category string + Changes map[string]FieldChange + From string + Ticket Summary + To string + type TransitionIn struct + ID string + Resolution string + Status string + Summary string + type UpdateIn struct + Add map[string][]string + Body *string + ID string + IfMatch string + Remove map[string][]string + Set map[string]any + type Workspace struct + Actor string + File *WorkspaceFile + Project string + Repos map[string]string + Source string + Stores []*Store + func Open(ctx context.Context, o OpenOptions) (*Workspace, error) + func (ws *Workspace) StoreByName(name string) *Store + type WorkspaceFile struct + Actor string + Explicit bool + Name string + Offline bool + Path string + Project string + Repos map[string]string + Stores []StoreSpec + func ParseWorkspaceFile(p string) (*WorkspaceFile, error) + type WorkspaceOut struct + DefaultProject string + Name string + Projects []string + Source string + Stores []string + You string + type WriteOut struct + Comment string + Commit string + ID string + Local bool + NoChange bool + Preserved []string + PushError string + PushPending bool + Pushed bool + Status string + Unblocked []string v1.0.0-rc.2 Nov 8, 2026 v1.0.0-rc.1 Nov 8, 2026