Files
saltbo__agent-kanban/server/http/agents/representation.ts
jarvis a2fa54a729 feat!: rebuild Agent Kanban for Realmroot Toolbox
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase.

BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
2026-09-02 00:17:52 -04:00

19 lines
561 B
TypeScript

import type { ProjectedAgent } from "@shared";
export function agentRepresentation(agent: ProjectedAgent, requestUrl: string) {
return {
id: agent.id,
name: agent.name,
description: agent.description,
username: agent.username,
runtime: agent.runtime,
model: agent.model,
skills: agent.skills,
subject: agent.subject,
schedulable: agent.schedulable,
createdAt: agent.created_at,
updatedAt: agent.updated_at,
links: { self: new URL(`/api/agents/${encodeURIComponent(agent.id)}`, requestUrl).toString() },
};
}