feat: add standard CI workflow and fix lint/test failures

- Added `.github/workflows/ci.yml` to run build, lint, and test on PRs/push to main.
- Updated `.github/workflows/ci-resilience-nightly.yml` to use Node.js 22.
- Fixed lint errors in `src/services/governance/index.js` (no-empty, preserve-caught-error).
- Added `governance-agent` to daily roster and scheduler prompt to fix `npm test` scheduler validation failure.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-18 21:24:43 +00:00
1 parent 49e06a6b55
commit dd9e5b7921
5 files changed
+42 -16

No files matched your search

+5 -3
View File
@@ -50,7 +50,9 @@ export async function getProposal(id) {
let diff = '';
try {
diff = await fs.readFile(diffPath, 'utf8');
} catch {}
} catch {
// Ignore missing diff
}
return {
id,
@@ -60,7 +62,7 @@ export async function getProposal(id) {
dir
};
} catch (e) {
throw new Error(`Proposal ${id} not found or invalid: ${e.message}`);
throw new Error(`Proposal ${id} not found or invalid: ${e.message}`, { cause: e });
}
}
@@ -281,6 +283,6 @@ export async function rollbackPrompt(target, hashOrStrategy = 'latest') {
execSync(`git checkout "${commit}" -- "${target}"`);
return { success: true, source: 'git', restored: commit };
} catch (e) {
throw new Error(`Rollback failed: Local archive not found and git failed (${e.message})`);
throw new Error(`Rollback failed: Local archive not found and git failed (${e.message})`, { cause: e });
}
}