fix(page-data): enforce full workspace bind delivery and repair tooling

Prevent false-positive Finish Guard passes and sync-created fake bindings by assessing publication, policy, dataset, injection, and insert smoke before H5 delivery.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-12 15:30:52 +08:00
parent f437a37660
commit 73b308af0a
12 changed files with 819 additions and 33 deletions
+5
View File
@@ -1,5 +1,6 @@
import fs from 'node:fs/promises';
import path from 'node:path';
import { htmlUsesPageDataApi } from './page-data-html-detect.mjs';
import { normalizeWorkspaceRelativePath } from './mindspace-pages.mjs';
const PUBLIC_HTML_SKIP_DIRS = new Set([
@@ -235,6 +236,10 @@ export async function syncGeneratedPagesFromPublicAssets({
skipped += 1;
continue;
}
if (htmlUsesPageDataApi(content)) {
skipped += 1;
continue;
}
const result = await upsertWorkspaceHtmlPage({
pool,
pageService,