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
@@ -1,6 +1,8 @@
import { StructureCanvas } from "@/components/structure/StructureCanvas";
import { redirect } from "next/navigation";
export default async function OrgPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
return <StructureCanvas level="org" id={id} />;
// Retired: the org / company / team structure browser now lives in the
// integrated dashboard at "/" (the new interface). Kept as a redirect so old
// links and bookmarks land in the right place.
export default function Page() {
redirect("/");
}
+6 -61
View File
@@ -1,63 +1,8 @@
"use client";
import { redirect } from "next/navigation";
import { useEffect, useState } from "react";
import Link from "next/link";
interface GroupSummary {
id: string;
name: string;
kind: string;
status: string;
}
export default function OrgsPage() {
const [orgs, setOrgs] = useState<GroupSummary[]>([]);
useEffect(() => {
void (async () => {
try {
const r = await fetch("/api/orgs");
if (r.ok) setOrgs((await r.json()) as GroupSummary[]);
} catch {
/* ignore */
}
})();
}, []);
return (
<div className="mx-auto flex w-full max-w-3xl flex-col gap-4 p-6">
<div className="flex items-center justify-between">
<h1 className="text-xl font-semibold tracking-tight">Organizations</h1>
<Link
href="/claws/new"
className="rounded-full bg-coral px-4 py-2 text-sm font-medium text-white"
>
Deploy an org
</Link>
</div>
{orgs.length === 0 ? (
<p className="text-sm text-muted-foreground">
No organizations yet an org is a topology of companies.
</p>
) : (
<ul className="flex flex-col gap-2">
{orgs.map((o) => (
<li key={o.id}>
<Link
href={`/orgs/${o.id}`}
className="flex items-center gap-3 rounded-lg border border-border p-3 hover:bg-muted/30"
>
<span className="text-sm font-medium text-foreground">{o.name}</span>
<span className="rounded-full bg-muted px-2 py-0.5 text-xs capitalize text-muted-foreground">
{o.kind}
</span>
<span className="text-xs text-muted-foreground">{o.status}</span>
</Link>
</li>
))}
</ul>
)}
</div>
);
// Retired: the org / company / team structure browser now lives in the
// integrated dashboard at "/" (the new interface). Kept as a redirect so old
// links and bookmarks land in the right place.
export default function Page() {
redirect("/");
}