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
+7
View File
@@ -42,6 +42,13 @@ describe("getStepIndex", () => {
const idx = ONBOARDING_STEPS.findIndex((s) => s.id === "connect");
expect(getStepIndex("connect")).toBe(idx);
});
it("includes the company step before completion", () => {
const companyIndex = getStepIndex("company");
const completeIndex = getStepIndex("complete");
expect(companyIndex).toBeGreaterThan(getStepIndex("agents"));
expect(companyIndex).toBe(completeIndex - 1);
});
});
describe("getNextStep", () => {