fix(updates): scan release channels across pages

Share a bounded release scan across channels and compare tag versions across pages. Report uncertainty when the scan hits its limit without confirming a newer release.

Verified with local release responses covering cross-page versions, truncation, and missing feeds.
This commit is contained in:
N0VAN0M4LY committed 2026-11-30 15:23:18 +08:00
1 parent 5a78b1fdf8
commit 31f4fedafe
11 files changed
+173 -101

No files matched your search

@@ -24,7 +24,7 @@ const AppUpdateReleaseSchema = z.object({
size: z.number().int().positive().max(MAX_INSTALLER_BYTES),
notes: z.string(),
});
const AppUpdateProblemSchema = z.enum(['network', 'contents', 'signature', 'no_signing_key']);
const AppUpdateProblemSchema = z.enum(['network', 'contents', 'signature', 'no_signing_key', 'page_limit']);
export const AppUpdateCheckSchema = z.discriminatedUnion('status', [
z.object({ status: z.literal('current') }),
@@ -39,6 +39,8 @@ export const PackProblemSchema = z.enum([
'no_signing_key',
/** GitHub could not be reached or answered with an error. */
'network',
/** The scan reached the page limit before confirming a newer pack release. */
'page_limit',
/** The release or the pack is malformed. */
'contents',
/** The signature does not match. */