Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s

This commit is contained in:
huncode committed 2026-10-27 15:19:49 +03:00
1 parent 99c848189e
commit 12562baeb5
2040 files changed
+184656 -181

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ const safe=cleanPublication(hostile);assert(!/onclick|onerror|javascript:|tracke
await writeFile(path.join(root,'data/publication-report.json'),JSON.stringify({articles:report,hostileFixturePassed:true},null,2)+'\n');
// Stable source identity excludes runtime build identity/output and internal review documents.
async function files(dir){const out=[];for(const entry of await readdir(path.join(root,dir),{withFileTypes:true})){const name=path.join(dir,entry.name);if(entry.isDirectory())out.push(...await files(name));else out.push(name);}return out;}
const names=[...await files('app'),...await files('lib'),...await files('scripts'),...await files('data'),...await files('public/visuals'),'package.json','package-lock.json','next.config.mjs'].sort();
const names=[...await files('app'),...await files('lib'),...await files('fsd'),...await files('scripts'),...await files('data'),...(await files('public')).filter(name=>name!=='public/build-identity.json'),'package.json','package-lock.json','next.config.mjs'].sort();
const hash=createHash('sha256');for(const name of names){hash.update(name);hash.update(await readFile(path.join(root,name)));}const sourceHash=hash.digest('hex');
await writeFile(path.join(root,'public/build-identity.json'),JSON.stringify({sourceHash,articles:output.length},null,2)+'\n');
console.log(JSON.stringify({sourceHash,articles:report.length,hostileFixturePassed:true}));