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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user