refactor: pre-M0 cleanup, core library hardening, and isolated dev/QA Docker stack

- Remove ~44k LOC of dead code, legacy v1 TS simulator/strategy stack, event-bus, analytics FastAPI prototype, legacy calculation archives, and unused deps (data-ingestion provider API handlers untouched)
- Extract @stock-bot/di/http-security and isolate @stock-bot/browser to data-ingestion via ServiceContainerBuilder.withRegistrations()
- Harden @stock-bot/mongodb read-only proxies, flatten @stock-bot/postgres with unified master+research migrations, and fix @stock-bot/config EnvLoader, ServiceApplication worker lifecycle, NamespacedCache.clear(), and BatchProcessor error propagation
- Flatten workspace root (remove apps/stock/package.json) and collapse orchestrator re-export shims
- Pin all Docker image versions, add shm_size/nofile/RAM caps and docker-compose.quant.yml, fix 05-add-visible-column.sql view recreation, and decouple dev/QA Compose project names for side-by-side execution
- Update PLATFORM-PLAN, DATA-CONTRACTS (bars_1m PARTITION BY MONTH, Rust bulk ETL, DuckDB limits), MILESTONES, and servers docs
This commit is contained in:
Boki 2026-11-27 00:11:50 -05:00
parent ce9e2df67c
commit 4cd6038063
432 changed files with 1247 additions and 44469 deletions

View file

@ -17,7 +17,7 @@
"test:utils": "bun test libs/utils/test/ libs/core/handlers/test/base-handler-http.test.ts",
"test:calculations": "bun test libs/calculations/test/",
"test:contracts": "tsc --project tsconfig.contracts.json --noEmit",
"test": "turbo run test --filter=!@stock-bot/stock-app",
"test": "turbo run test",
"test:watch": "bun test --watch",
"test:coverage": "bun test --coverage",
"coverage": "bun run tools/coverage-cli/src/index.ts --reporters html markdown",
@ -27,7 +27,6 @@
"test:integration": "bun test test/integration/",
"test:native": "cargo test -p engine --lib --offline",
"test:postgres": "bun run scripts/test-postgres.ts",
"test:analytics-api": "uv run --no-project --with fastapi==0.104.1 --with httpx==0.25.2 --with pydantic==2.5.0 python -m unittest discover -s apps/stock/analytics/test",
"audit:secrets": "bun run scripts/audit-secrets.ts",
"test:e2e": "bun run scripts/test-e2e.ts",
"test:e2e:install": "playwright install chromium",
@ -70,15 +69,14 @@
"infra:reset": "./scripts/docker.sh reset --dev",
"infra:qa:up": "./scripts/docker.sh start --qa",
"infra:qa:status": "./scripts/docker.sh status --qa",
"dev:full": "npm run infra:up && npm run docker:admin && turbo run dev",
"dev:clean": "npm run infra:reset && npm run dev:full"
"dev:full": "bun run infra:up && turbo run dev",
"dev:clean": "bun run infra:reset && bun run dev:full"
},
"workspaces": [
"libs/*",
"libs/core/*",
"libs/data/*",
"libs/services/*",
"apps/stock",
"apps/stock/config",
"apps/stock/data-ingestion",
"apps/stock/data-pipeline",
@ -91,33 +89,18 @@
"devDependencies": {
"@eslint/js": "^9.28.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
"@modelcontextprotocol/server-postgres": "^0.6.2",
"@testcontainers/mongodb": "^10.7.2",
"@testcontainers/postgresql": "^10.7.2",
"@types/bun": "^1.2.17",
"@types/pako": "^2.0.4",
"@types/supertest": "^6.0.2",
"@types/yup": "^0.32.0",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"bun-types": "^1.2.15",
"eslint": "^9.28.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.2.1",
"knip": "^5.61.2",
"mongodb": "^6.17.0",
"mongodb-mcp-server": "^0.1.1",
"mongodb-memory-server": "^9.1.6",
"pg-mem": "^2.8.1",
"playwright": "1.53.2",
"prettier": "^3.5.3",
"supertest": "^6.3.4",
"ts-unused-exports": "^11.0.1",
"tsx": "^4.20.3",
"turbo": "^2.5.4",
"typescript": "^5.8.3",
"yup": "^1.6.1"
"typescript": "^5.8.3"
},
"packageManager": "bun@1.2.17",
"engines": {
@ -132,7 +115,6 @@
"trustedDependencies": [
"@tailwindcss/oxide",
"esbuild",
"mongodb",
"mongodb-memory-server"
"mongodb"
]
}