Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountByWorkspace ¶
CountByWorkspace returns the number of alive session markers attached to cwd.
func MarkerPath ¶
MarkerPath returns the file path for a given session ID.
func SessionsDir ¶
func SessionsDir() string
SessionsDir returns the directory holding session marker files.
func Unregister ¶
Unregister deletes the marker file. Idempotent.
Types ¶
type Marker ¶
type Marker struct {
SessionID string `json:"session_id"`
WorkspaceCwd string `json:"workspace_cwd"`
ClaudePID int `json:"claude_pid"`
StartedAt time.Time `json:"started_at"`
}
Marker is a per-session record. One JSON file per Marker at ~/.bones/sessions/<SessionID>.json.
func ListByWorkspace ¶
ListByWorkspace returns markers whose WorkspaceCwd matches the argument AND whose ClaudePID is alive on this host. Dead markers are unlinked as a side effect (orphan GC).
Click to show internal directories.
Click to hide internal directories.