fc7dbb0ac0
Server: drop ntfy publishing (stage hooks, run outbox, chat attention, chat tool notify, auto-switch and schedule notices), the chat push outbox (its table is dropped at startup), ntfy status/endpoints and PIPELINES_NTFY_*. The app_notifications stream, subscribe/clear and kinds are unchanged. Notification settings keep run_finished/chat_needs_you/chat_reply_finished; ntfy_enabled is accepted and ignored and its stored row is never read. Stage type=ntfy is rejected: "ntfy stages were removed; notifications go to the Pipelines apps — use the stage notify hook". The notify hook remains. Installer: no ntfy build, accounts, config or supervisor child; manifest gets top-level "mode" (legacy ntfy.mode still read). Reinstall retires an old ntfy (safe PID-file stop, deletes binary, config, data dir, token, log, with a note in logs/install.log); uninstall cleans leftovers. App: ntfy settings section replaced by "Notification events"; texts updated. Docs: docs/ntfy.md folded into docs/notifications.md; install, docker, cli, author skill references updated; security review M1 marked resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package protocol
|
|
|
|
const GetStatus = "get_status"
|
|
const Status = "status"
|
|
|
|
type NetworkAddress struct {
|
|
Interface string `json:"interface"`
|
|
IP string `json:"ip"`
|
|
}
|
|
|
|
type ServiceStatus struct {
|
|
Health string `json:"health"`
|
|
URL string `json:"url,omitempty"`
|
|
Port string `json:"port,omitempty"`
|
|
Candidates []string `json:"candidate_urls,omitempty"`
|
|
}
|
|
|
|
type SystemStatus struct {
|
|
Hostname string `json:"hostname"`
|
|
StartedAt string `json:"started_at"`
|
|
Uptime string `json:"uptime"`
|
|
Addresses []NetworkAddress `json:"addresses"`
|
|
Server ServiceStatus `json:"server"`
|
|
// OpenCode reports how brokered chat is attached to OpenCode. Health is
|
|
// "endpoint" when attached to the operator's configured endpoint,
|
|
// "fallback" when that endpoint could not be attached and chat fell back to
|
|
// the server's own instance, "spawned" when no endpoint is configured, and
|
|
// "unavailable" when chat is disabled. URL is the configured endpoint, if
|
|
// any. It never carries a credential.
|
|
OpenCode ServiceStatus `json:"opencode"`
|
|
Note string `json:"note"`
|
|
}
|