Documentation
¶
Overview ¶
Package droid is the Factory Droid provider (ADR-0019). It is built from a reading of Droid's docs, its 1.3.0 bundle and the Entire project's adapter. No real session checked it, so it is unverified: smif shows these sessions and never types into them, forks them or installs hooks for them.
Droid keeps no live file, so smif matches like the Codex provider: a droid process on a terminal owns the transcript in its folder that was written since the process started. `droid --resume <id>` names its session. `droid exec` is no session, but its transcript has no mark that says so: a TUI in the same folder can take one. --cwd moves a process's folder.
Index ¶
- Constants
- type Provider
- func (p *Provider) Check() (state, detail string)
- func (p *Provider) Discover() []harness.Session
- func (p *Provider) Info() harness.Info
- func (p *Provider) Read(sessionID string, limit int) harness.Reading
- func (p *Provider) Stamp(sessionID string) string
- func (p *Provider) State(s harness.Session) (string, time.Time)
Constants ¶
const Name = "droid"
Name is the harness name of Droid sessions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider reads one Droid home folder.
func NewWithProcs ¶
NewWithProcs takes the process list from procs: tests use it.
func (*Provider) Check ¶
Check compares the newest transcripts on this machine with the source reading. The detail names counts only, never a value from a file.
func (*Provider) Discover ¶
Discover returns the sessions a live droid process owns. With no sessions folder it runs no ps, so a machine without Droid pays only a stat.
func (*Provider) Info ¶
Info names the provider. Verified stays false until a real session checks it and docs/compat.md has a row with that version.