Merge pull request #1998 from PR0M3TH3AN/ai/smoke-tests-20260130-7030837945485494375

chore(ai): add smoke test script (agent)
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-30 16:29:49 -05:00
commit 3db1bcf5fc
1 file changed
+14
+14
View File
@@ -233,6 +233,20 @@ async function runSmokeTest() {
log('--- Smoke Test PASSED ---');
// Generate JSON Summary
const summary = {
timestamp: new Date().toISOString(),
status: "success",
details: {
videoEventId: publishedVideo.id,
dmEventId: publishedDM.id,
ephemeralPubkey: EPHEMERAL_PK
}
};
const summaryFile = path.join(ARTIFACTS_DIR, `smoke-summary-${new Date().toISOString().split('T')[0].replace(/-/g, '')}.json`);
fs.writeFileSync(summaryFile, JSON.stringify(summary, null, 2));
log(`Summary saved to ${summaryFile}`);
} catch (err) {
log(`--- Smoke Test FAILED: ${err.message} ---`);
if (err.stack) log(err.stack);