Documentation
¶
Overview ¶
Package native discovers agent sessions through the agents' own local APIs. It never starts, stops or resumes a worker during discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
type LocalProcess ¶ added in v0.8.0
type LocalProcess struct {
Provider Provider `json:"provider"`
PID int `json:"pid"`
Generation string `json:"generation"`
Terminal string `json:"terminal"`
CWD string `json:"cwd"`
StartedAt time.Time `json:"started_at,omitzero"`
Group int `json:"-"`
Ancestors []int `json:"ancestors,omitempty"`
}
LocalProcess is an observed terminal tab, not a verified conversation. It cannot authorize import, resume or input. Arguments and prompts stay private.
func (LocalProcess) Guidance ¶ added in v0.8.0
func (p LocalProcess) Guidance() string
func (LocalProcess) Key ¶ added in v0.8.0
func (p LocalProcess) Key() string
func (LocalProcess) Name ¶ added in v0.8.0
func (p LocalProcess) Name() string
type Session ¶
type Session struct {
Ref Ref `json:"ref"`
Name string `json:"name"`
CWD string `json:"cwd"`
Status string `json:"status"`
WaitingFor string `json:"waiting_for,omitempty"`
Action Action `json:"action"`
Reason string `json:"reason,omitempty"`
WorkerPID int `json:"worker_pid,omitempty"`
StartedAt time.Time `json:"started_at"`
// Handle is a Claude background job id, not a transcript/session-id guess.
Handle string `json:"handle,omitempty"`
Endpoint string `json:"-"`
}