mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
a2fa54a729
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.
19 lines
561 B
TypeScript
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() },
|
|
};
|
|
}
|