Documentation
¶
Overview ¶
Package sessions maintains ~/.ape/registry.json — the cross-project list of live `ape chat` / `ape pipeline` (web mode) invocations so users can list, prune, and reopen them. PLAN-5 / C5.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
DefaultPath returns ~/.ape/registry.json. Falls back to a temp-directory path if $HOME is unset (best-effort — the registry is non-load-bearing, so a missing home dir should not crash ape).
func Deregister ¶
Deregister removes the entry whose PID matches s.PID. No-op if not found (best-effort cleanup; we want shutdown to always succeed).
Types ¶
type Session ¶
type Session struct {
PID int `json:"pid"`
CWD string `json:"cwd"`
Command string `json:"command"`
Port int `json:"port"`
URL string `json:"url"`
StartedAt time.Time `json:"started_at"`
}
Session is one row in the registry.
Click to show internal directories.
Click to hide internal directories.