Multitenantperorg enabling
All checks were successful
Build and Push / build (push) Successful in 1m21s

This commit is contained in:
2026-04-26 22:09:26 +02:00
parent 7b22bc4087
commit 2c85bf8597
13 changed files with 584 additions and 225 deletions

View File

@@ -100,11 +100,19 @@ export async function POST(
"TOOLS.md": toolsMd,
};
// Step 4: Create the PiecedTenant CR
// Step 4: Create the PiecedTenant CR.
// displayName: prefer the customer-chosen instance name; fall back to
// the company name. With multi-tenant per org, instanceName is what
// distinguishes "Acme Production" from "Acme Dev" on the dashboard.
const displayName =
tenantRequest.instanceName && tenantRequest.instanceName.trim().length > 0
? tenantRequest.instanceName.trim()
: tenantRequest.companyName;
await createTenant(
tenantName,
{
displayName: tenantRequest.companyName,
displayName,
agentName: tenantRequest.agentName,
packages,
workspaceFiles,