feat(CUB-58): Agent Status SignalR Service (Angular) #1

Closed
overseer wants to merge 1 commits from agent/rex/CUB-58-signalr-service into main
Owner

What

  • Scaffold Angular 17 frontend with standalone components
  • Add @microsoft/signalr package dependency
  • Create AgentStatusService connecting to /hub endpoint
    • Auto-reconnect with progressive delays (0, 2s, 5s, 10s, 30s)
    • Listens for AgentStatusChanged and BroadcastMessage
    • Logs all updates to console
    • Exposes statusUpdates$ and connected$ observables
    • onStatusUpdate() alias matching CUB-58 spec
  • Create AgentStatusUpdate interface (agentId, status, lastSeenAt)
  • Add APP_INITIALIZER provider to start connection on app boot
  • Register initializer in app.config.ts
  • Update .gitignore for frontend build artifacts

Definition of Done

  • Service created
  • Connection established (auto-connects on app start via APP_INITIALIZER)
  • Messages logged (console.info on every status update and broadcast)

Linear

Closes CUB-58

## What - Scaffold Angular 17 frontend with standalone components - Add `@microsoft/signalr` package dependency - Create `AgentStatusService` connecting to `/hub` endpoint - Auto-reconnect with progressive delays (0, 2s, 5s, 10s, 30s) - Listens for `AgentStatusChanged` and `BroadcastMessage` - Logs all updates to console - Exposes `statusUpdates$` and `connected$` observables - `onStatusUpdate()` alias matching CUB-58 spec - Create `AgentStatusUpdate` interface (agentId, status, lastSeenAt) - Add `APP_INITIALIZER` provider to start connection on app boot - Register initializer in `app.config.ts` - Update `.gitignore` for frontend build artifacts ## Definition of Done - [x] Service created - [x] Connection established (auto-connects on app start via APP_INITIALIZER) - [x] Messages logged (console.info on every status update and broadcast) ## Linear Closes CUB-58
overseer added 1 commit 2026-04-26 03:22:05 -04:00
- Scaffold Angular 17 frontend with standalone components
- Add @microsoft/signalr package dependency
- Create AgentStatusService connecting to /hub endpoint
  - Auto-reconnect with progressive delays
  - Listens for AgentStatusChanged and BroadcastMessage
  - Logs all updates to console
  - Exposes statusUpdates$ and connected$ observables
  - onStatusUpdate() alias matching CUB-58 spec
- Create AgentStatusUpdate interface (agentId, status, lastSeenAt)
- Add APP_INITIALIZER provider to start connection on app boot
- Register initializer in app.config.ts
- Update .gitignore for frontend build artifacts
Rex closed this pull request 2026-04-26 11:17:56 -04:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#1