Lidarr/Readarr, integration inspector, app versions, grouped alerts

Lidarr and Readarr join the shared *arr reader. Integrations get an Inspect button that
runs the reader once and shows what each request returned as shapes (never values) and
where the result is empty. Operations -> App versions compares each application's version
with its newest GitHub release (lookup off until an admin switches it on; optional alert).
The Alerts page can group by source, kind of problem or type of alert. The shared HTTP
helper no longer reuses connections (stale-socket resets). Migration 0078; docs and tests
included.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-29 20:07:36 +01:00
1 parent 551eb1597a
commit 93aaf5476d
45 files changed
+10033 -65

No files matched your search

+15
View File
@@ -572,6 +572,8 @@ export const integrationTypes = [
"prowlarr",
"adguard",
"grafana",
"lidarr",
"readarr",
] as const;
export type IntegrationType = (typeof integrationTypes)[number];
@@ -1364,6 +1366,19 @@ export const grafanaState = sqliteTable("grafana_state", {
updatedAt: text("updated_at").notNull(), // ISO
});
// ─── The newest releases ────────────────────────────────────────────────────
// The newest release of each application there is a connected integration for, as GitHub last said (only while Operations → Versions is switched on): one row for each repository. A lookup that
// failed keeps the tag it had and says why in `error`. Read by services/appVersions.ts.
export const releaseCache = sqliteTable("release_cache", {
repo: text("repo").primaryKey(), // "owner/name"
tag: text("tag").notNull(), // the release's tag, as published ("v4.0.9.2244"); empty when none has been found
publishedAt: text("published_at"), // ISO
url: text("url"), // the release's page
checkedAt: text("checked_at").notNull(), // ISO: when it was last looked up
error: text("error"), // why the last lookup failed; null when it worked
});
// ─── NetBox ─────────────────────────────────────────────────────────────────
// How a NetBox (an integration of type "netbox") is right now, one row each, replaced at every read: its version, how many background workers are running, the counts and the IP