Merge branch 'unstable' into agents/daily/perf-agent-2026-02-17-7651999785559448222

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-18 09:41:56 -05:00
commit aa920b5a7a
128 files changed
+7562 -5825

No files matched your search

+19 -5
View File
@@ -56,7 +56,9 @@ for (const glob of IGNORED_GLOBS) {
// We rely on 'git' being available and 'git grep' supporting -P.
// Typically available in most CI/dev environments.
const result = spawnSync('git', gitArgs, { encoding: 'utf8' });
// Increase maxBuffer to 10MB to avoid ENOBUFS on large outputs.
console.log("Running git with args:", gitArgs.join(" "));
const result = spawnSync('git', gitArgs, { encoding: 'utf8', maxBuffer: 1024 * 1024 * 10 });
if (result.error) {
console.error('Failed to execute git grep:', result.error.message);
@@ -69,10 +71,22 @@ if (result.error) {
// 2+ on errors.
if (result.status === 0 && result.stdout.trim()) {
console.error('Hex colors detected outside tokens or SVG assets:');
console.error(result.stdout.trimEnd());
console.error('\nAllowed exceptions: tokens (css/tokens.css) and vector logos (*.svg).');
process.exit(1);
const lines = result.stdout.split('\n');
const filteredLines = lines.filter(line => {
// Robustly ignore webtorrent.min.js even if git exclusions fail
if (line.includes('webtorrent.min.js')) return false;
return line.trim().length > 0;
});
if (filteredLines.length > 0) {
console.error('Hex colors detected outside tokens or SVG assets:');
console.error(filteredLines.join('\n'));
console.error('\nAllowed exceptions: tokens (css/tokens.css) and vector logos (*.svg).');
process.exit(1);
} else {
// All matches were ignored
process.exit(0);
}
}
if (result.status && result.status !== 1) {