Large World graph, agent platform, brain stack & dashboard rebuild

Frontend
- Large World: collapse org/company/team tiers into one expandable React Flow
  hierarchy (WorldFlow) with per-click expand, persisted node positions, a
  compact tree sidebar, wrench multi-select delete across levels, and a sized
  right slide-out (phone/tablet/full) showing an agent summary + drill button.
- Agent page: GitHub-style animated contribution grid (VitalsCard), collapsible
  System Prompt + Personality cards, restructured anatomy cards, bigger avatar
  with name/title header row, Markdown/JSON-aware rendering, brain registry +
  history, avatar generate/upload.
- User-icon menu (Infrastructure/Brains/Tools/Profile/Credits) + ToolPanel;
  Master Planner deploy wizard (Specialists/Swarm/Scheduled/Triggered);
  Team Runs view; reap-progress modal; dashboard is the single live interface.

Backend
- cm-brain crate (.brain as the agent definition) + brain apply/history.
- Hard-purge reap (FK-ordered) + sandbox release + SSE batch-delete.
- Swarm self-verifying loop, mode-aware planner, web.search tool, webhooks
  (migration 0013), org/company/team delete endpoints, scheduler sweeps.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-22 23:21:54 -07:00
co-authored by Claude Opus 4.8
parent 9f266d5806
commit 34f744734b
123 changed files with 9591 additions and 1098 deletions
+5 -3
View File
@@ -7,6 +7,7 @@ import type { Agent } from "@/lib/api/schemas";
import { Avatar } from "@/components/ui/Avatar";
import { ApprovalCard } from "@/components/safety/ApprovalCard";
import { StepTrace } from "./steps/StepTrace";
import { RichText } from "./RichText";
type DecideFn = (approvalId: string, decision: "approve" | "reject") => void;
@@ -42,19 +43,20 @@ function AgentMessage({
<Avatar
name={agent.name}
accent={agent.accent}
image={agent.avatar || undefined}
size="chat"
shape="squircle"
/>
<div className="min-w-0 flex-1 pt-3">
<p className="text-sm leading-[1.7] whitespace-pre-wrap text-neutral-200">
{message.text}
<div className="text-sm leading-[1.7] text-neutral-200">
<RichText text={message.text} />
{message.status === "streaming" && (
<span
aria-hidden
className="ml-0.5 inline-block h-4 w-0.5 translate-y-0.5 bg-coral motion-safe:animate-[caret-blink_1s_steps(1)_infinite]"
/>
)}
</p>
</div>
{message.status === "error" && (
<p role="alert" className="pt-1 text-xs text-coral">
Something went wrong with this reply.