# NEXA v3.1.0 Testing

Run:

```bash
npm test
```

The regression suite covers the project supervisor plus the new General Assistant router. Current automated coverage includes:

- no action while AI is generating;
- smart continue/start replies;
- ZIP stop and final-audit logic;
- high-priority approval routing;
- blocked/incomplete retry and verification checks;
- response-fingerprint and cooldown protection;
- multi-project scheduling and exact URL isolation;
- browser voice command parsing;
- usage-limit reset/anti-drift behavior;
- auto-reopening closed tabs and pause/AUTO guards;
- Enter-only executor safety using the real action executor in a VM;
- General Assistant routing for weather, news, translation, grammar, spelling, domains, company/general questions, and follow-up context;
- project commands remain project commands instead of being sent to the General Assistant;
- cPanel General Assistant endpoint/static live-source guards;
- PHP General Assistant parser tests;
- Telegram voice answer + text-copy guard;
- 12-provider fallback architecture.

## Build validation

```bash
find . -name '*.js' -print0 | xargs -0 -n1 node --check
find server-cpanel -name '*.php' -print0 | xargs -0 -n1 php -l
chromium --no-sandbox --pack-extension=/path/to/NEXA-AI-Project-Supervisor-v3.1.0
unzip -t NEXA-AI-Project-Supervisor-v3.1.0.zip
```

Never distribute Chromium's generated `.pem` private key.

## External live checks still requiring real credentials/session

Local tests do not prove live authenticated ChatGPT/Claude DOM behavior or live Telegram/WhatsApp/STT/TTS/LLM-provider operation against your accounts. The public weather/news/domain handlers are implemented and parser/build tested, but a final cPanel deployment should run live endpoint checks from that host because shared-host outbound-network policies can differ.
