Auto backup before evolver run - 2026年 03月 03日 星期二 23:12:56 CST
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Canary script: run in a forked child process to verify index.js loads
|
||||
// without crashing. Exit 0 = safe, non-zero = broken.
|
||||
//
|
||||
// This is the last safety net before solidify commits an evolution.
|
||||
// If a patch broke index.js (syntax error, missing require, etc.),
|
||||
// the canary catches it BEFORE the daemon restarts with broken code.
|
||||
try {
|
||||
require('../index.js');
|
||||
process.exit(0);
|
||||
} catch (e) {
|
||||
process.stderr.write(String(e.message || e).slice(0, 500));
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user