openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (15 loc) • 742 B
JavaScript
import { n as validateFirstOnboardingAgentName } from "./onboard-agent-Bjn_sNqD.js";
//#region src/commands/onboard-first-agent.ts
async function promptFirstOnboardingAgent(hasAuthoredRoster, requestedName, prompter, nonInteractive = false) {
if (hasAuthoredRoster) return;
return { name: requestedName ?? (nonInteractive ? "main" : await prompter.text({
message: "What should we call your first agent?",
initialValue: "main",
validate: validateFirstOnboardingAgentName
})) };
}
async function showSessionMigrationWarnings(prompter, warnings) {
if (warnings?.length) await prompter.note(warnings.join("\n"), "Session history migration");
}
//#endregion
export { showSessionMigrationWarnings as n, promptFirstOnboardingAgent as t };