- 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
43 lines
938 B
JSON
43 lines
938 B
JSON
{
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "npm",
|
|
"script": "start",
|
|
"isBackground": true,
|
|
"problemMatcher": {
|
|
"owner": "typescript",
|
|
"pattern": "$tsc",
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": {
|
|
"regexp": "(.*?)"
|
|
},
|
|
"endsPattern": {
|
|
"regexp": "bundle generation complete"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "test",
|
|
"isBackground": true,
|
|
"problemMatcher": {
|
|
"owner": "typescript",
|
|
"pattern": "$tsc",
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": {
|
|
"regexp": "(.*?)"
|
|
},
|
|
"endsPattern": {
|
|
"regexp": "bundle generation complete"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|