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:
co-authored by
Claude Opus 4.8
parent
9f266d5806
commit
34f744734b
@@ -3,17 +3,21 @@ import { redirect } from "next/navigation";
|
||||
import { Dashboard } from "@/components/dashboard/Dashboard";
|
||||
import { ApiAuthError } from "@/lib/api/http";
|
||||
import { fetchMe } from "@/lib/api/team";
|
||||
import type { User } from "@/lib/api/schemas";
|
||||
import { loadWorkspace } from "@/lib/dashboard-data";
|
||||
import type { Agent, User } from "@/lib/api/schemas";
|
||||
import type { DemoOrg } from "@/lib/dashboard-demo";
|
||||
|
||||
// Workspace home = the integrated dashboard (tier rail → topology canvas →
|
||||
// agent computer slide-out).
|
||||
// agent computer slide-out), now driven by the live workspace (real claws +
|
||||
// org/company/team structure).
|
||||
export default async function WorkspaceHome() {
|
||||
let user: User;
|
||||
let workspace: { orgs: DemoOrg[]; claws: Agent[] };
|
||||
try {
|
||||
user = await fetchMe();
|
||||
[user, workspace] = await Promise.all([fetchMe(), loadWorkspace()]);
|
||||
} catch (error) {
|
||||
if (error instanceof ApiAuthError) redirect("/login");
|
||||
throw error;
|
||||
}
|
||||
return <Dashboard user={{ display_name: user.display_name, email: user.email }} />;
|
||||
return <Dashboard user={{ display_name: user.display_name, email: user.email }} orgs={workspace.orgs} claws={workspace.claws} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user