chore(ai): add smoke test script (agent)

Added `scripts/agent/smoke-test.mjs` to verify key application flows in a headless environment.

Features:
- Verifies Relay Connection
- Verifies NSEC Login (Ephemeral)
- Verifies Video Publishing (Sign & Send)
- Verifies Event Retrieval
- Verifies DM Encryption/Decryption

Usage:
```bash
npm install
node scripts/agent/smoke-test.mjs
```

Artifacts (logs/reports) are generated in `artifacts/` and are ignored by git.
Utilizes `scripts/agent/simple-relay.mjs` for a local relay.
Uses `jsdom` to polyfill browser environment for `NostrClient`.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-17 21:10:02 +00:00
1 parent 1786ad9068
commit a8647c109f
2 files changed
+304

No files matched your search

+1
View File
@@ -5,3 +5,4 @@ src/webtorrent-docs/
playwright-report/
test-results/
tests/visual/__snapshots__/
artifacts/