Versions in this module Expand all Collapse all v0 v0.3.4 Mar 15, 2026 v0.3.3 Mar 14, 2026 v0.3.2 Mar 14, 2026 Changes in this version + type AgentsExplainInput struct + CWD string + type AgentsExplainResult struct + CWD string + Rules []AgentsExplainRule + Sources []AgentsExplainSource + Summary AgentsExplainSummary + func ExplainAgents(in AgentsExplainInput) (AgentsExplainResult, error) + type AgentsExplainRule struct + ID string + Key string + Line int + Priority int + ShadowedBy string + SourcePath string + Status string + Text string + type AgentsExplainSource struct + Path string + Priority int + type AgentsExplainSummary struct + Effective int + Rules int + Shadowed int + Sources int type DeleteActionInput + Sessions []session.Session + type DeleteSelectInput struct + Now time.Time + Repository core.SessionRepository + Selector session.Selector + SessionsRoot string + type DeleteSelectResult struct + AffectedBytes int64 + Sessions []session.Session + func SelectDeleteSessions(in DeleteSelectInput) (DeleteSelectResult, error) type RestoreActionInput + Sessions []session.Session + type RestoreSelectInput struct + BatchID string + IDsForBatch func(logFile, batchID string) ([]string, error) + LogFile string + Now time.Time + Repository core.SessionRepository + Selector session.Selector + TrashSessionsRoot string + type RestoreSelectResult struct + AffectedBytes int64 + Sessions []session.Session + func SelectRestoreSessions(in RestoreSelectInput) (RestoreSelectResult, error) v0.3.1 Mar 14, 2026 Changes in this version + const DefaultMaxBatchDryRun + const DefaultMaxBatchReal + const DefaultMaxBatchTUIDryRun + const DefaultMaxBatchTUIReal + const DefaultPreviewMaxMessages + var ErrPreviewEntryTooLong = errors.New("preview entry exceeds max line size") + func EffectiveMaxBatch(flagChanged bool, configured int, dryRun bool) int + func EffectiveMaxBatchWithDefaults(flagChanged bool, configured int, dryRun bool, realDefault, dryRunDefault int) int + func IsPreviewNoiseText(v string) bool + func ParsePreviewLine(line string) (role string, text string) + type AuditSink interface + NewBatchID func() (string, error) + WriteActionLog func(logFile string, rec audit.ActionRecord) error + type DeleteActionInput struct + AuditSink AuditSink + Candidates []session.Session + Confirm bool + DryRun bool + DryRunDefault int + Executor DeleteExecutor + Hard bool + LogFile string + MaxBatch int + MaxBatchChanged bool + Now time.Time + RealDefault int + Selector session.Selector + SessionsRoot string + TrashRoot string + Yes bool + type DeleteActionResult struct + AppliedMaxBatch int + BatchID string + LogError error + Summary session.DeleteSummary + func RunDeleteAction(in DeleteActionInput) (DeleteActionResult, error) + type DeleteCandidatesInput struct + Now time.Time + Repository core.SessionRepository + Selector session.Selector + SessionsRoot string + type DeleteCandidatesResult struct + AffectedBytes int64 + Candidates []session.Session + func SelectDeleteCandidates(in DeleteCandidatesInput) (DeleteCandidatesResult, error) + type DeleteExecutor interface + Execute func(candidates []session.Session, sel session.Selector, opts session.DeleteOptions) (session.DeleteSummary, error) + type DoctorCheck struct + Detail string + Level DoctorLevel + Name string + func CheckSessionHostPaths(in DoctorHostPathInput) DoctorCheck + type DoctorHostPathInput struct + CompactPath func(string, int) string + Repository core.SessionRepository + SessionsErr error + SessionsRoot string + type DoctorLevel string + const DoctorFail + const DoctorPass + const DoctorWarn + type DoctorRiskInput struct + Evaluator core.RiskEvaluator + IntegrityCheck bool + Repository core.SessionRepository + SampleLimit int + SessionsRoot string + type DoctorRiskReport struct + High int + IntegrityCheck bool + Medium int + RiskRate float64 + RiskTotal int + SampleLimit int + Samples []DoctorRiskSample + SessionsTotal int + func DoctorRisk(in DoctorRiskInput) (DoctorRiskReport, error) + type DoctorRiskSample struct + Detail string + Health session.Health + Level session.RiskLevel + Path string + Reason session.RiskReason + SessionID string + type GroupInput struct + By string + Limit int + Now time.Time + Offset int + Order string + Repository core.SessionRepository + Selector session.Selector + SessionsRoot string + SortBy string + type GroupStat struct + Count int + Group string + Latest string + SizeBytes int64 + func BuildGroupStats(sessions []session.Session, by, sortBy, order string) ([]GroupStat, error) + func GroupSessions(in GroupInput) ([]GroupStat, error) + type ListInput struct + Limit int + Now time.Time + Offset int + Order string + Repository core.SessionRepository + Selector session.Selector + SessionsRoot string + SortBy string + type ListResult struct + Items []session.Session + Total int + func ListSessions(in ListInput) (ListResult, error) + type LoadTUISessionsInput struct + Evaluator core.RiskEvaluator + Now time.Time + Repository core.SessionRepository + ScanLimit int + SessionsRoot string + ViewLimit int + type LoadTUISessionsResult struct + Items []session.Session + Total int + func LoadTUISessions(in LoadTUISessionsInput) (LoadTUISessionsResult, error) + type PreviewMessage struct + Role string + Text string + func ExtractPreviewMessages(path string, maxMessages int) ([]PreviewMessage, error) + type RestoreActionInput struct + AllowEmptySelector bool + AuditSink AuditSink + Candidates []session.Session + Confirm bool + DryRun bool + DryRunDefault int + Executor RestoreExecutor + LogFile string + MaxBatch int + MaxBatchChanged bool + Now time.Time + RealDefault int + Selector session.Selector + SessionsRoot string + TrashSessionsRoot string + Yes bool + type RestoreActionResult struct + AppliedMaxBatch int + BatchID string + LogError error + Summary RestoreSummary + func RunRestoreAction(in RestoreActionInput) (RestoreActionResult, error) + type RestoreCandidatesInput struct + BatchID string + IDsForBatch func(logFile, batchID string) ([]string, error) + LogFile string + Now time.Time + Repository core.SessionRepository + Selector session.Selector + TrashSessionsRoot string + type RestoreCandidatesResult struct + AffectedBytes int64 + Candidates []session.Session + func SelectRestoreCandidates(in RestoreCandidatesInput) (RestoreCandidatesResult, error) + type RestoreExecutor interface + Execute func(candidates []session.Session, sel session.Selector, ...) (session.RestoreSummary, error) + type RestoreSummary = session.RestoreSummary + type SessionDeleteExecutor struct + func (SessionDeleteExecutor) Execute(candidates []session.Session, sel session.Selector, opts session.DeleteOptions) (session.DeleteSummary, error) + type SessionRestoreExecutor struct + func (SessionRestoreExecutor) Execute(candidates []session.Session, sel session.Selector, ...) (session.RestoreSummary, error)