Added monarch agent

This commit is contained in:
Jakob Friedl
2025-05-19 21:56:34 +02:00
parent 0a98d11df2
commit c55a9f9443
10 changed files with 215 additions and 12 deletions

25
agents/monarch/types.nim Normal file
View File

@@ -0,0 +1,25 @@
import winim
type
TaskCommand* = enum
ExecuteShell = "shell"
ExecuteBof = "bof"
ExecuteAssembly = "dotnet"
ExecutePe = "pe"
TaskStatus* = enum
Created = "created"
Completed = "completed"
Pending = "pending"
Failed = "failed"
Cancelled = "cancelled"
TaskResult* = string
Task* = ref object
id*: int
agent*: string
command*: TaskCommand
args*: seq[string]
result*: TaskResult
status*: TaskStatus