e202246a1c
OrgBoard: Agent entity (name, monogram, autonomy dial, ApiConfigId + optional fallback,
skill keys, docs) + AddAgents migration; one agent per seat. References Skills by key and
the BYOK config by id — never reaches into those modules.
Endpoints: POST/GET /api/orgboard/seats (create/list seats), POST/GET
/api/orgboard/seats/{id}/agent (configure/read the agent) — ConfigureAgents at [team, org].
Configuring an agent flips the seat to the AI state and points it at the agent; audited.
Verified: build green; ArchitectureTests 8/8; IntegrationTests 27/27 incl. the M3 acceptance
flow — owner adds a BYOK config, then configures "Aria" (gated autonomy, skills, that config)
on a seat, flipping it to AI, with the key never exposed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using TeamUp.Modules.OrgBoard.Domain;
|
|
using TeamUp.SharedKernel.Access;
|
|
|
|
namespace TeamUp.Modules.OrgBoard.Endpoints;
|
|
|
|
internal sealed record CreateOrganizationRequest(Guid OrganizationId, string Name);
|
|
|
|
internal sealed record OrganizationResponse(Guid Id, string Name);
|
|
|
|
internal sealed record CreateTeamRequest(Guid OrganizationId, string Name);
|
|
|
|
internal sealed record TeamResponse(Guid Id, Guid OrganizationId, string Name);
|
|
|
|
internal sealed record CreateTaskRequest(Guid TeamId, string Title, string? Description, WorkItemType Type);
|
|
|
|
internal sealed record MoveTaskRequest(WorkItemStatus Status);
|
|
|
|
internal sealed record AssignTaskRequest(Guid MemberId);
|
|
|
|
internal sealed record TaskResponse(
|
|
Guid Id,
|
|
Guid TeamId,
|
|
string Title,
|
|
string? Description,
|
|
string Type,
|
|
string Status,
|
|
string AssigneeKind,
|
|
Guid? AssigneeId,
|
|
Guid? ParentId);
|
|
|
|
internal sealed record BoardColumn(string Status, IReadOnlyList<TaskResponse> Items);
|
|
|
|
internal sealed record BoardResponse(Guid TeamId, IReadOnlyList<BoardColumn> Columns);
|
|
|
|
internal sealed record CreateSeatRequest(Guid TeamId, string RoleName);
|
|
|
|
internal sealed record SeatResponse(Guid Id, Guid TeamId, string RoleName, string State, Guid? MemberId, Guid? AgentId);
|
|
|
|
internal sealed record ConfigureAgentRequest(
|
|
string Name,
|
|
string? Monogram,
|
|
Autonomy Autonomy,
|
|
Guid ApiConfigId,
|
|
Guid? FallbackApiConfigId,
|
|
List<string> SkillKeys,
|
|
List<string> Docs);
|
|
|
|
internal sealed record AgentResponse(
|
|
Guid Id,
|
|
Guid SeatId,
|
|
string Name,
|
|
string? Monogram,
|
|
string Autonomy,
|
|
Guid ApiConfigId,
|
|
Guid? FallbackApiConfigId,
|
|
List<string> SkillKeys,
|
|
List<string> Docs);
|