1646321d0b
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
461 B
Go
17 lines
461 B
Go
//go:build !linux
|
|
|
|
package evidence
|
|
|
|
import "context"
|
|
|
|
// NewSource returns a sensor that reports evidence permanently unavailable on
|
|
// platforms without the X11 adapter.
|
|
func NewSource() Source { return noopSource{} }
|
|
|
|
type noopSource struct{}
|
|
|
|
func (noopSource) Watch(ctx context.Context, onChange func(WindowSnapshot)) {
|
|
onChange(WindowSnapshot{Health: EvidenceHealth{Available: false, Reason: "no active-window sensor on this platform"}})
|
|
<-ctx.Done()
|
|
}
|