Go-Programm lc-agent: sendet neu kopierten Text als Clip ins Projekt "Zwischenablage" und übernimmt eigene Clips anderer Geräte live in die Zwischenablage. Von Passwort-Managern markierte Inhalte werden nie gesendet; Größengrenze, Ausschlussmuster, nur die letzten 50 eigenen Clips. Wiederholt beim Start, bis der Server erreichbar ist; beendet sich bei widerrufenem Token mit Exit-Code 3. Build für alle Plattformen per build.sh im Container, Autostart-Vorlagen für alle drei Systeme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
542 B
Go
17 lines
542 B
Go
// Package clipboard reads and writes the system clipboard (text only) and detects
|
|
// content that password managers mark as secret.
|
|
package clipboard
|
|
|
|
// Content is the current clipboard text. Concealed is set when a password manager
|
|
// marked it as secret; the text is then left empty and must never be sent anywhere.
|
|
type Content struct {
|
|
Text string
|
|
Concealed bool
|
|
}
|
|
|
|
// Clipboard is implemented per operating system (see New in the *_<os>.go files).
|
|
type Clipboard interface {
|
|
Read() (Content, error)
|
|
Write(text string) error
|
|
}
|