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,73 +0,0 @@
const { WebSocketServer, WebSocket } = require('ws');
const { createServer } = require('http');
const httpServer = createServer();
const wss = new WebSocketServer({
port: 0,
maxPayload: 65536, // 64KB
});
let testPassed = false;
wss.on('connection', (ws) => {
console.log('Client connected');
// Send oversized message
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, () => {
const port = httpServer.address().port;
console.log('Server listening on port', port);
// Create client immediately
const ws = new WebSocket(`ws://localhost:${port}`);
ws.on('open', () => {
console.log('Client connected to server');
});
ws.on('error', (err) => {
console.log('Client error:', err.message);
httpServer.close();
wss.close();
});
ws.on('close', () => {
if (!testPassed) {
console.log('❌ Test timed out - no response received');
process.exit(1);
}
});
});
// Timeout after 5 seconds
setTimeout(() => {
console.log('❌ Test timed out');
process.exit(1);
}, 5000);
// Create client immediately
const ws = new WebSocket(`ws://localhost:${port}`);