feat: add company builder wizard with AI-powered org generation (#73)

* feat: add company builder wizard with AI-powered org generation

Adds a new "Build Your Company" step to the onboarding wizard that lets
users describe their business and generates a full agent org structure
using OpenClaw's AI. Includes company plan generation, role deduplication,
agent bootstrap with main-agent reuse, org chart preview, confetti on
success, CSS voxel running-avatar loader, amber theme unification, and
best-effort SSH workspace cleanup.

Made-with: Cursor

* fix: resolve lint errors in CompanyBuilderModal

Replace setState-in-effect pattern with a direct callback, escape
apostrophes in JSX text, and derive org chart hover state without
side effects.

Made-with: Cursor

---------

Co-authored-by: iamlukethedev <lucas.guilherme@smartwayslfl.com>
This commit is contained in:
Luke The Dev
2026-03-27 12:59:44 -05:00
committed by GitHub
parent 3da1694085
commit a953c5fda6
31 changed files with 3308 additions and 124 deletions
@@ -16,6 +16,7 @@ type HQSidebarProps = {
onTabChange: (tab: HQSidebarTab) => void;
onOpenMarketplace: () => void;
onAddAgent?: () => void;
onOpenCompanyBuilder?: () => void;
inboxPanel: ReactNode;
historyPanel: ReactNode;
playbooksPanel: ReactNode;
@@ -39,6 +40,7 @@ export function HQSidebar({
onTabChange,
onOpenMarketplace,
onAddAgent,
onOpenCompanyBuilder,
inboxPanel,
historyPanel,
playbooksPanel,
@@ -125,6 +127,15 @@ export function HQSidebar({
Add Agent
</button>
) : null}
{!railOnly && onOpenCompanyBuilder ? (
<button
type="button"
onClick={onOpenCompanyBuilder}
className="mt-2 rounded border border-emerald-500/20 bg-emerald-500/10 px-2 py-1 font-mono text-[10px] uppercase tracking-[0.16em] text-emerald-200 transition-colors hover:border-emerald-400/40 hover:text-emerald-100"
>
Build Company
</button>
) : null}
{railOnly ? (
<button
type="button"