agent.ts 780 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export type AgentStatus = "working" | "idle" | "warning" | "offline";
  2. export type AgentAvatarKind =
  3. | "female-analyst"
  4. | "male-ops"
  5. | "female-researcher"
  6. | "male-dispatcher"
  7. | "female-observer"
  8. | "male-maintainer";
  9. export type AgentProfile = {
  10. id: string;
  11. name: string;
  12. role: string;
  13. avatarKind: AgentAvatarKind;
  14. status: AgentStatus;
  15. statusLabel: string;
  16. host: string;
  17. owner: string;
  18. currentTask: string;
  19. taskId: string;
  20. taskStage: string;
  21. queueDepth: number;
  22. todayCompleted: number;
  23. uptime: string;
  24. lastHeartbeat: string;
  25. updatedAt: string;
  26. lastOutput: string;
  27. lastError?: string;
  28. tags: string[];
  29. };
  30. export type AgentFeed = {
  31. source: "demo" | "file";
  32. sourceLabel: string;
  33. fetchedAt: string;
  34. agents: AgentProfile[];
  35. };