learning_ai_invt_trdg/backend/src
root 4763a9a9d1 feat(devops): admin-only info, public version, dep checks, role hardening
Backend:
- /api/devops/info now requires admin role (was: any authenticated user).
  Exposes env keys, dep checks, and socket counts — admin-only by design.
- New /api/devops/version (public, no auth) returns build SHA/branch/image
  for ops/CI rollback verification.
- Dep checks: live ping for Cosmos (trading_users) and platform-service.
- Service version read dynamically via readServiceVersion(import.meta.url)
  — no more hardcoded '0.1.0'.
- extra: socketIoConnections + tradingApiUrl for runtime debugging.
- saveCurrentUserProfile no longer accepts client-supplied role —
  prevents drift with platform JWT (which is authoritative).

Web:
- DevOps tab is now admin-only (gated behind isAdmin like Bot Config and
  Admin Panel). Both the section list and content render are guarded.
- Service version baked into bundle via Vite `define` (__WEB_SERVICE_VERSION__)
  read from web/package.json — no more hardcoded VERSION constant.
- Bumps @bytelyst/devops dep to ^0.1.2.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 05:52:48 +00:00
..
backtest fix(C1): refuse unsafe code strategy backtests 2026-05-04 16:31:04 -07:00
config feat(simple): add amount sizing and runtime status 2026-05-06 07:04:48 +00:00
connectors fix(simple): support crypto fallback and scale-in entries 2026-05-06 07:33:52 +00:00
domain feat(simple): add setup activity history 2026-05-06 17:23:45 +00:00
scripts refactor: align reconciliation runtime flows with repository 2026-04-04 16:28:59 -07:00
services feat(devops): admin-only info, public version, dep checks, role hardening 2026-05-10 05:52:48 +00:00
strategies feat: scaffold trading monorepo foundation 2026-04-04 11:18:21 -07:00
utils fix(simple): support crypto fallback and scale-in entries 2026-05-06 07:33:52 +00:00
bootstrap.ts feat(backend): WebSocket namespaces, audit persistence, tab flags, telemetry 2026-04-29 19:35:00 -04:00
index.ts feat(simple): add long-term hold mode 2026-05-06 17:37:04 +00:00
test_simulation.js feat: scaffold trading monorepo foundation 2026-04-04 11:18:21 -07:00