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:
2026-12-03 23:24:24 +00:00
parent 806b5eca46
commit fc7dbb0ac0
138 changed files with 1958 additions and 4651 deletions
-46
View File
@@ -186,51 +186,5 @@ class ReleaseResolutionTests(unittest.TestCase):
resolve_releases.load_fixture(path)
class FakeNtfy:
"""Deterministic ntfy tag fixture served through the same fetch seam."""
VERSION = "2.11.0"
def __init__(self, tags=None, tags_response=None):
self.tags = tags if tags is not None else ["v" + self.VERSION]
self.tags_response = tags_response
self.calls = []
def __call__(self, url, headers=None):
self.calls.append(url)
if "/git/matching-refs/" in url:
if self.tags_response is not None:
return 200, {}, json.dumps(self.tags_response).encode()
return 200, {}, json.dumps([{"ref": "refs/tags/" + tag} for tag in self.tags]).encode()
return 404, {}, b""
class NtfyResolutionTests(unittest.TestCase):
def test_resolves_exact_version_from_official_tags_only(self):
registry = FakeNtfy(tags=["v2.10.0", "v2.11.0"])
result = resolve_releases.resolve_ntfy(registry)
self.assertEqual(result["version"], "2.11.0")
self.assertEqual(result["tag"], "v2.11.0")
self.assertEqual(result["module"], resolve_releases.NTFY_MODULE)
self.assertEqual(result["repository"], resolve_releases.NTFY_REPOSITORY)
# No release assets or checksums are fetched: the native installer builds
# the server from the pinned module instead.
self.assertNotIn("assets", result)
self.assertEqual(len(registry.calls), 1)
self.assertTrue(registry.calls[0].startswith(
"https://api.github.com/repos/binwiederhier/ntfy/git/matching-refs/"))
self.assertFalse(any("releases/latest" in url for url in registry.calls))
def test_malformed_tag_metadata_is_rejected(self):
for tags in ([42], [{"ref": "refs/heads/main"}], [{"ref": "refs/tags/not-a-version"}],
[{"noref": "refs/tags/v2.11.0"}]):
with self.assertRaises(resolve_releases.ReleaseError):
resolve_releases.resolve_ntfy(FakeNtfy(tags_response=tags))
def test_no_stable_release_fails_closed(self):
with self.assertRaisesRegex(resolve_releases.ReleaseError, "no stable ntfy release"):
resolve_releases.resolve_ntfy(FakeNtfy(tags=[]))
if __name__ == "__main__":
unittest.main()