feat: establish unified project foundation with root config cleanup

- Archive legacy packages/, services/, server/ directories
- Update pnpm workspace to web + browser-ext
- Simplify root package.json scripts to delegate to web/
- Update turbo.json for new workspace structure
- Remove obsolete root config files (vite, tsconfig, etc.)
- Add .nvmrc, .editorconfig for consistent dev environment
- Update CI workflow to remove references to deleted packages
- Add missing dependencies (@tailwindcss/vite, tailwindcss) to web
- Add test and lint scripts to web package
- Verify pnpm install, build, and dev work correctly
This commit is contained in:
2026-05-25 12:31:43 -04:00
parent 59fcc31483
commit f627033665
500 changed files with 622 additions and 99592 deletions

View File

@@ -1,44 +0,0 @@
const { WebSocketServer } = require('ws');
const { createServer } = require('http');
// Test WebSocket maxPayload parameter
const httpServer = createServer();
const wss = new WebSocketServer({
port: 0,
maxPayload: 65536, // 64KB
});
let testPassed = false;
wss.on('connection', (ws) => {
console.log('Client connected');
// Send message larger than 64KB
const oversized = 'x'.repeat(70000);
console.log('Sending 70KB message...');
ws.send(oversized, (err) => {
if (err) {
console.log('✓ Error received (expected):', err.message);
testPassed = true;
} else {
console.log('✗ No error - maxPayload NOT enforced!');
}
ws.close();
httpServer.close();
wss.close();
if (testPassed) {
console.log('✅ TEST PASSED: maxPayload (64KB) is enforced');
process.exit(0);
} else {
console.log('❌ TEST FAILED');
process.exit(1);
}
});
});
httpServer.listen(0, () => {
console.log('Server listening on port', httpServer.address().port);
});