Versions in this module Expand all Collapse all v1 v1.168.1 Dec 2, 2026 v1.168.0 Dec 2, 2026 Changes in this version + const StaleInstanceMaxAge + const TokenEnv + func Clear(token string, pid int, now time.Time) string + func NewInstanceID() (string, error) + func PermissionsHash(allow, ask, deny []string) string + func Report(token string, pid int, now time.Time, argv []string, cwd string) string + func ValidInstanceID(id string) bool + func ValidToken(s string) bool + func Version() int + type Instance struct + Active string + Agent string + AgentCanonical string + ConfigDir string + DataDir string + SessionDB string + Tabs []Tab + Version int + func (i Instance) Validate() error + type InstanceStore struct + func OpenExistingInstanceStore(dataDir string) (*InstanceStore, error) + func OpenInstanceStore(dataDir string) (*InstanceStore, error) + func (s *InstanceStore) Close() error + func (s *InstanceStore) Delete(id string) error + func (s *InstanceStore) Exists(id string) bool + func (s *InstanceStore) Load(id string) (Instance, error) + func (s *InstanceStore) Prune(now time.Time, maxAge time.Duration, keepID string) + func (s *InstanceStore) Save(id string, state Instance) error + type Tab struct + Canonical string + PermissionsHash string + Safety string + SessionID string + WorkingDir string