Documentation
¶
Overview ¶
Package localactivity observes bounded local harness metadata. It does not send samples, control a session, install hooks, or retain message content.
Index ¶
Constants ¶
const ( Unknown = "unknown" Working = "working" Idle = "idle" ClaudeSessionV1 = "claude-session-v1" CodexRolloutV1 = "codex-rollout-v1" // CodexTaskPairV1 trusts only explicit same-turn start/complete pairs. // Producer versions are evidence, not a compatibility gate. CodexTaskPairV1 = "codex-task-pair-v1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binding ¶
type Binding struct {
Harness, SessionID, ClientID, RegistrationID, LeaseID string
Generation uint64
}
Binding must come from the client's current authenticated lease, not MCP arguments. A new lease or process identity requires a new Observer.
type Config ¶
type Config struct {
Binding Binding
Home, CWD, Host, Platform string
PID int
// Format is deliberately empty by default. Callers may select a format
// only after validating it against their installed harness version.
RuntimeInfo bool
Format string
Probe func(context.Context, int) (Process, error)
Now func() time.Time
}
type Observation ¶
type Observation struct {
Model, Effort string
State, Source, Reason string
Sequence uint64
ObservedAt, ChangedAt time.Time
}
Observation is safe to map to protocol fields. No path, PID, turn ID, raw error, token, or content is returned.