large update

This commit is contained in:
ZacharyZhang-NY committed 2026-03-29 14:08:15 -04:00
1 parent 2ed952f19c
commit 65e85135c1
111 files changed
+3936 -2933

No files matched your search

+9 -1
View File
@@ -21,6 +21,7 @@ interface BootstrapInput {
goalTitle: string;
goalDescription: string;
connectorId?: ConnectorId;
connectorModel?: string;
}
interface OnboardingDependencies {
@@ -32,6 +33,8 @@ interface OnboardingDependencies {
error?: { code: string; message: string };
};
publishDomainChanged: () => void;
/** Scan workspace directories for skills and import them. Best-effort — may be undefined during early init. */
scanAndAssignSkills?: (companyId: string, agentId: string) => Promise<void>;
}
const DEFERRABLE_RUN_ERRORS = new Set([
@@ -69,6 +72,7 @@ export function createOnboardingService({
seedDefaultAutomationRules,
queueTaskRun,
publishDomainChanged,
scanAndAssignSkills,
}: OnboardingDependencies) {
function updateAgentWorkspaceBinding(agentId: string, workspaceId: string | null) {
if (!workspaceId) return;
@@ -217,7 +221,7 @@ export function createOnboardingService({
reportsTo: null,
connectorId: selectedConnectorId,
workspaceId,
model: null,
model: input.connectorModel?.trim() || null,
capabilities:
"Executive leadership, strategic planning, team building, goal decomposition, delegation, and organizational management. Responsible for hiring the leadership team, setting strategy, and coordinating all company operations.",
budgetMonthlyUsd: 250,
@@ -227,6 +231,10 @@ export function createOnboardingService({
db.setCurrentCompany(companyId);
seedDefaultAutomationRules(companyId);
if (scanAndAssignSkills) {
void scanAndAssignSkills(companyId, ceoId).catch(() => {});
}
const kickoff = createInitialExecutionLoop(companyId, workspaceId);
db.addActivity({