Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + const DefaultSuggestionsDirectory + var DefaultPlansDirectory = runtimepath.PlansDir("") + var WordList = []string + func ClearAllPairProgrammingStates() + func ClearAllPlanSlugs() + func ClearAllStates() + func ClearAllSuggestionSlugs() + func ClearPairProgrammingState(sessionID types.SessionID) + func ClearPlanSlug(sessionID types.SessionID) + func ClearState(sessionID types.SessionID) + func ClearSuggestionSlug(sessionID types.SessionID) + func DeletePlan(sessionID types.SessionID, agentID *types.AgentID) error + func DeleteSuggestions(sessionID types.SessionID) error + func EnterPairProgrammingMode(sessionID types.SessionID) + func EnterPlanMode(sessionID types.SessionID, agentID *types.AgentID) + func ExitPairProgrammingMode(sessionID types.SessionID) + func ExitPlanMode(sessionID types.SessionID) + func ExtractSlugFromFilePath(filePath string) string + func GetAcceptedSuggestions(sessionID types.SessionID) int + func GetCollaborationTurns(sessionID types.SessionID) int + func GetDisplayPath(planFilePath string) string + func GetHasPlanFile(sessionID types.SessionID) bool + func GetHasSuggestionsFile(sessionID types.SessionID) bool + func GetPlan(sessionID types.SessionID, agentID *types.AgentID) (string, error) + func GetPlanFilePath(sessionID types.SessionID, agentID *types.AgentID) string + func GetPlanSlug(sessionID types.SessionID) string + func GetPlanWasEdited(sessionID types.SessionID) bool + func GetPlansDirectory() string + func GetSuggestionFilePath(sessionID types.SessionID) string + func GetSuggestionSlug(sessionID types.SessionID) string + func GetSuggestions(sessionID types.SessionID) (string, error) + func GetSuggestionsCount(sessionID types.SessionID) int + func GetSuggestionsDirectory() string + func GetSuggestionsDisplayPath(suggestionFilePath string) string + func GetSuggestionsWereReviewed(sessionID types.SessionID) bool + func HasActiveCollaboration(sessionID types.SessionID) bool + func HasExitedPlanMode(sessionID types.SessionID) bool + func IncrementAcceptedSuggestions(sessionID types.SessionID) + func IncrementCollaborationTurns(sessionID types.SessionID) + func IncrementSuggestionsCount(sessionID types.SessionID) + func NeedsPlanModeExitAttachment(sessionID types.SessionID) bool + func NeedsUserConfirmation(sessionID types.SessionID) bool + func PlanExists(sessionID types.SessionID, agentID *types.AgentID) bool + func SetHasActiveCollaboration(sessionID types.SessionID, v bool) + func SetHasExitedPlanMode(sessionID types.SessionID, v bool) + func SetHasPlanFile(sessionID types.SessionID, v bool) + func SetHasSuggestionsFile(sessionID types.SessionID, v bool) + func SetNeedsPlanModeExitAttachment(sessionID types.SessionID, v bool) + func SetNeedsUserConfirmation(sessionID types.SessionID, v bool) + func SetPairProgrammingState(sessionID types.SessionID, state *PairProgrammingState) + func SetPlan(sessionID types.SessionID, agentID *types.AgentID, content string) error + func SetPlanSlug(sessionID types.SessionID, slug string) + func SetPlanWasEdited(sessionID types.SessionID, v bool) + func SetPlansDirectory(dir string) error + func SetState(sessionID types.SessionID, state *State) + func SetSuggestionSlug(sessionID types.SessionID, slug string) + func SetSuggestions(sessionID types.SessionID, content string) error + func SetSuggestionsDirectory(dir string) error + func SetSuggestionsWereReviewed(sessionID types.SessionID, v bool) + func SuggestionsExist(sessionID types.SessionID) bool + type ModeCache struct + func NewModeCache[S any](subDir string, newState func() *S) *ModeCache[S] + func (c *ModeCache[S]) ClearAllSlugs() + func (c *ModeCache[S]) ClearAllStates() + func (c *ModeCache[S]) ClearSlug(sessionID types.SessionID) + func (c *ModeCache[S]) ClearState(sessionID types.SessionID) + func (c *ModeCache[S]) DeleteFile(sessionID types.SessionID) error + func (c *ModeCache[S]) FileExists(sessionID types.SessionID) bool + func (c *ModeCache[S]) GetDirectory() string + func (c *ModeCache[S]) GetDisplayPath(filePath string) string + func (c *ModeCache[S]) GetFilePath(sessionID types.SessionID) string + func (c *ModeCache[S]) GetSlug(sessionID types.SessionID) string + func (c *ModeCache[S]) GetState(sessionID types.SessionID) *S + func (c *ModeCache[S]) ReadFile(sessionID types.SessionID) (string, error) + func (c *ModeCache[S]) SetDirectory(dir string) error + func (c *ModeCache[S]) SetSlug(sessionID types.SessionID, slug string) + func (c *ModeCache[S]) SetState(sessionID types.SessionID, state *S) + func (c *ModeCache[S]) WriteFile(sessionID types.SessionID, content string) error + type PairProgrammingState struct + AcceptedSuggestions int + CollaborationTurns int + HasActiveCollaboration bool + HasSuggestionsFile bool + NeedsUserConfirmation bool + SuggestionsCount int + SuggestionsWereReviewed bool + func ClonePairProgrammingState(sessionID types.SessionID) *PairProgrammingState + func GetPairProgrammingState(sessionID types.SessionID) *PairProgrammingState + type State struct + HasExitedPlanMode bool + HasPlanFile bool + NeedsPlanModeExitAttachment bool + PlanWasEdited bool + func CloneState(sessionID types.SessionID) *State + func GetState(sessionID types.SessionID) *State