Remove ntfy: notifications go only through the app notification stream
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>
This commit is contained in:
@@ -67,13 +67,6 @@ type NotificationPolicy struct {
|
||||
Link string `json:"link,omitempty"`
|
||||
}
|
||||
|
||||
// Public phone setup only. Never include publishing endpoints or credentials.
|
||||
type NotificationEndpoint struct {
|
||||
Destination string `json:"destination"`
|
||||
ServerURL string `json:"server_url,omitempty"`
|
||||
Topic string `json:"topic"`
|
||||
}
|
||||
|
||||
type Template struct {
|
||||
Key string `json:"key"`
|
||||
Name string `json:"name"`
|
||||
@@ -142,56 +135,55 @@ type PipelineSummary struct {
|
||||
// are optional so older peers ignore them. See search.go for the per-type payloads
|
||||
// and the ranking/kind/bound vocabulary.
|
||||
type Message struct {
|
||||
SkillFiles []SkillFile `json:"skill_files,omitempty"`
|
||||
SkillSummaries []SkillSummary `json:"skill_summaries,omitempty"`
|
||||
SkillVersion *SkillVersion `json:"skill_version,omitempty"`
|
||||
Storage *StorageOverview `json:"storage,omitempty"`
|
||||
StoragePolicy *StoragePolicy `json:"storage_policy,omitempty"`
|
||||
StorageCleanup *StorageCleanupResult `json:"storage_cleanup,omitempty"`
|
||||
StorageCleanupToken string `json:"storage_cleanup_token,omitempty"`
|
||||
Schedule *SavedSchedule `json:"schedule,omitempty"`
|
||||
Schedules []SavedSchedule `json:"schedules,omitempty"`
|
||||
ScheduleID int64 `json:"schedule_id,omitempty"`
|
||||
ExpectedRevision int64 `json:"expected_revision,omitempty"`
|
||||
DefaultHarness string `json:"default_harness,omitempty"`
|
||||
Build *buildinfo.Info `json:"build,omitempty"`
|
||||
Protocol int `json:"protocol,omitempty"`
|
||||
DefaultModel string `json:"default_model,omitempty"`
|
||||
Evidence []SessionEvidence `json:"evidence,omitempty"`
|
||||
Usage *UsageStats `json:"usage,omitempty"`
|
||||
Status *SystemStatus `json:"status,omitempty"`
|
||||
Graph *Graph `json:"graph,omitempty"`
|
||||
ExpectedVersion int `json:"expected_version,omitempty"`
|
||||
Templates []Template `json:"templates,omitempty"`
|
||||
CreateOnly bool `json:"create_only,omitempty"`
|
||||
IncludeArchived bool `json:"include_archived,omitempty"`
|
||||
NotificationEndpoints []NotificationEndpoint `json:"notification_endpoints,omitempty"`
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Time string `json:"time,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Warnings []string `json:"warnings,omitempty"` // non-blocking authoring lint for validate/submit
|
||||
Name string `json:"name,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Digest string `json:"digest,omitempty"`
|
||||
SourcePath string `json:"source_path,omitempty"`
|
||||
Source string `json:"source,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
Version int `json:"version,omitempty"`
|
||||
Pipelines []PipelineSummary `json:"pipelines,omitempty"`
|
||||
PipelineID int64 `json:"pipeline_id,omitempty"`
|
||||
Detail *PipelineDetail `json:"detail,omitempty"`
|
||||
RunID int64 `json:"run_id,omitempty"`
|
||||
RunDetail *RunDetail `json:"run_detail,omitempty"`
|
||||
Runs []RunSummary `json:"runs,omitempty"`
|
||||
Stage string `json:"stage,omitempty"`
|
||||
Option string `json:"option,omitempty"`
|
||||
Feedback string `json:"feedback,omitempty"`
|
||||
Input map[string]any `json:"input,omitempty"`
|
||||
AllowTools bool `json:"allow_tools,omitempty"`
|
||||
WritePaths []string `json:"write_paths,omitempty"`
|
||||
RequestKey string `json:"request_key,omitempty"`
|
||||
Workspace string `json:"workspace,omitempty"`
|
||||
SkillFiles []SkillFile `json:"skill_files,omitempty"`
|
||||
SkillSummaries []SkillSummary `json:"skill_summaries,omitempty"`
|
||||
SkillVersion *SkillVersion `json:"skill_version,omitempty"`
|
||||
Storage *StorageOverview `json:"storage,omitempty"`
|
||||
StoragePolicy *StoragePolicy `json:"storage_policy,omitempty"`
|
||||
StorageCleanup *StorageCleanupResult `json:"storage_cleanup,omitempty"`
|
||||
StorageCleanupToken string `json:"storage_cleanup_token,omitempty"`
|
||||
Schedule *SavedSchedule `json:"schedule,omitempty"`
|
||||
Schedules []SavedSchedule `json:"schedules,omitempty"`
|
||||
ScheduleID int64 `json:"schedule_id,omitempty"`
|
||||
ExpectedRevision int64 `json:"expected_revision,omitempty"`
|
||||
DefaultHarness string `json:"default_harness,omitempty"`
|
||||
Build *buildinfo.Info `json:"build,omitempty"`
|
||||
Protocol int `json:"protocol,omitempty"`
|
||||
DefaultModel string `json:"default_model,omitempty"`
|
||||
Evidence []SessionEvidence `json:"evidence,omitempty"`
|
||||
Usage *UsageStats `json:"usage,omitempty"`
|
||||
Status *SystemStatus `json:"status,omitempty"`
|
||||
Graph *Graph `json:"graph,omitempty"`
|
||||
ExpectedVersion int `json:"expected_version,omitempty"`
|
||||
Templates []Template `json:"templates,omitempty"`
|
||||
CreateOnly bool `json:"create_only,omitempty"`
|
||||
IncludeArchived bool `json:"include_archived,omitempty"`
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Time string `json:"time,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Warnings []string `json:"warnings,omitempty"` // non-blocking authoring lint for validate/submit
|
||||
Name string `json:"name,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Digest string `json:"digest,omitempty"`
|
||||
SourcePath string `json:"source_path,omitempty"`
|
||||
Source string `json:"source,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
Version int `json:"version,omitempty"`
|
||||
Pipelines []PipelineSummary `json:"pipelines,omitempty"`
|
||||
PipelineID int64 `json:"pipeline_id,omitempty"`
|
||||
Detail *PipelineDetail `json:"detail,omitempty"`
|
||||
RunID int64 `json:"run_id,omitempty"`
|
||||
RunDetail *RunDetail `json:"run_detail,omitempty"`
|
||||
Runs []RunSummary `json:"runs,omitempty"`
|
||||
Stage string `json:"stage,omitempty"`
|
||||
Option string `json:"option,omitempty"`
|
||||
Feedback string `json:"feedback,omitempty"`
|
||||
Input map[string]any `json:"input,omitempty"`
|
||||
AllowTools bool `json:"allow_tools,omitempty"`
|
||||
WritePaths []string `json:"write_paths,omitempty"`
|
||||
RequestKey string `json:"request_key,omitempty"`
|
||||
Workspace string `json:"workspace,omitempty"`
|
||||
// Model and StageModels are the launch-time model overrides: Model applies to
|
||||
// every model stage of the run and StageModels overrides individual stages by
|
||||
// key (per-stage wins over whole-run). Both are optional so older peers ignore
|
||||
|
||||
Reference in New Issue
Block a user