28 lines
940 B
Go
28 lines
940 B
Go
// Copyright (c) 2026 Storm Dragon
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package tentacle
|
|
|
|
// ManagementRequest is the internal Preferences contract. Mutations persist
|
|
// immediately, independently of the reader's speech/settings draft.
|
|
type ManagementRequest struct {
|
|
Action string // list, settings, add/update/remove/enable/disable/retry, repository-add/refresh/remove
|
|
ID string
|
|
Entry *Entry // Required only for add/update; ID must match.
|
|
URL string // Repository origin for repository-add/refresh/remove.
|
|
}
|
|
|
|
type EntryStatus struct {
|
|
Entry Entry
|
|
State string // disabled, starting, active, stopping, failed, or suppressed
|
|
Message string // Core-owned text, never child diagnostics or returned data.
|
|
Shortcuts []string // Acknowledged native assignments, labelled by layout.
|
|
}
|
|
|
|
type Snapshot struct {
|
|
Entries []EntryStatus
|
|
Message string
|
|
Suppressed bool
|
|
Repositories []Repository
|
|
}
|