fix(page-data): scope WeChat delivery verification to newly bound pages
Memind CI / Test, build, and release guards (push) Failing after 4s

Historical workspace Page Data HTML was failing delivery smoke checks and
blocking new survey links from reaching WeChat users. Add a webhook scenario
test script for 103 regression runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-02 20:32:03 +08:00
parent c7dcc5d002
commit 7e26b459bc
2 changed files with 357 additions and 4 deletions
+8 -4
View File
@@ -114,10 +114,14 @@ export function buildPageDataDeliveryArtifactsFromBindResult(autoBind, publishDi
.filter((item) => item?.relativePath && item?.workspaceUrl)
.map((item) => [item.relativePath, item.workspaceUrl]),
);
return collectPageDataDeliveryArtifacts(publishDir, options).map((artifact) => ({
...artifact,
url: boundUrls.get(artifact.relativePath) ?? artifact.url,
}));
// Only verify/deliver pages bound in this auto-bind pass. Scanning the whole
// workspace lets one stale historical Page Data page fail delivery for a new survey.
return collectPageDataDeliveryArtifacts(publishDir, options)
.filter((artifact) => boundUrls.has(artifact.relativePath))
.map((artifact) => ({
...artifact,
url: boundUrls.get(artifact.relativePath) ?? artifact.url,
}));
}
export function evaluatePageDataHtmlContent(html, { relativePath = '' } = {}) {