Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasActiveSessions ¶
HasActiveSessions returns true if any Claude Code sessions are running.
Types ¶
type ActiveSession ¶
type ActiveSession struct {
PID int `json:"pid"`
SessionID string `json:"sessionId"`
Project string `json:"project"`
}
ActiveSession represents a running Claude Code session.
func DetectActive ¶
func DetectActive(claudeDir string) ([]ActiveSession, error)
DetectActive reads ~/.claude/sessions/*.json and returns sessions whose PIDs are still alive.
type SealLock ¶
type SealLock struct {
// contains filtered or unexported fields
}
SealLock provides file-based locking for seal operations.
func NewSealLock ¶
NewSealLock creates a lock for the given seal directory.
Click to show internal directories.
Click to hide internal directories.