live read run fixes: Xcode-managed profiles in signing, TestFlight-only release trains, scan skips agent worktrees and takes an absolute --config, --all-pages paging meta, iap-submit json, report hints

This commit is contained in:
CRTkafa 2026-10-11 17:24:56 +00:00
parent 0856f2d1b2
commit 3a775f7808
15 changed files with 282 additions and 30 deletions

View file

@ -250,6 +250,12 @@ export function mergePages(a: Record<string, unknown>, b: Record<string, unknown
delete out.nextPageToken;
if (out.tokenPagination) delete out.tokenPagination;
if (out.links && typeof out.links === 'object') out.links = { ...(out.links as Record<string, unknown>), next: undefined };
// Apple's paging meta of the first page ("nextCursor", the page limit) would say there is more: keep only the total
const meta = out.meta as { paging?: Record<string, unknown> } | undefined;
if (meta?.paging && typeof meta.paging === 'object') {
const { nextCursor: _c, limit: _l, ...rest } = meta.paging;
out.meta = { ...meta, paging: rest };
}
return out;
}