Moved task parsing logic to the client to be able to support dotnet/bof commands when operating from a different machine than the team server. Disabled sequence tracking due to issues.

This commit is contained in:
Jakob Friedl
2025-09-30 10:04:29 +02:00
parent 13a245ebf2
commit 039c857027
14 changed files with 94 additions and 92 deletions

View File

@@ -38,13 +38,13 @@ proc sendAgentBuild*(ws: WebSocket, buildInformation: AgentBuildInformation) =
)
ws.sendEvent(event)
proc sendAgentCommand*(ws: WebSocket, agentId: string, command: string) =
proc sendAgentTask*(ws: WebSocket, agentId: string, task: Task) =
let event = Event(
eventType: CLIENT_AGENT_COMMAND,
eventType: CLIENT_AGENT_TASK,
timestamp: now().toTime().toUnix(),
data: %*{
"agentId": agentId,
"command": command
"task": task
}
)
ws.sendEvent(event)