Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
feat(onboard): pass CLI args as initial config to interactive wizard
chengyongrua6fb90291db4
diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.pyindex 7e23bb19e..dfb4a25ca 100644--- a/nanobot/cli/commands.py+++ b/nanobot/cli/commands.py@@ -308,9 +308,8 @@ def onboard(from nanobot.cli.onboard_wizard import run_onboardtry:- config = run_onboard()- # Re-apply workspace override after wizard- config = _apply_workspace_override(config)+ # Pass the config with workspace override applied as initial config+ config = run_onboard(initial_config=config)save_config(config, config_path)console.print(f"[green]✓[/green] Config saved at {config_path}")except Exception as e:diff --git a/nanobot/cli/onboard_wizard.py b/nanobot/cli/onboard_wizard.pyindex 3d6809831..a4c06f361 100644--- a/nanobot/cli/onboard_wizard.py+++ b/nanobot/cli/onboard_wizard.py@@ -938,14 +938,21 @@ def _show_summary(config: Config) -> None:# --- Main Entry Point ----def run_onboard() -> Config:- """Run the interactive onboarding questionnaire."""- config_path = get_config_path()+def run_onboard(initial_config: Config | None = None) -> Config:+ """Run the interactive onboarding questionnaire.- if config_path.exists():- config = load_config()+ Args:+ initial_config: Optional pre-loaded config to use as starting point.+ If None, loads from config file or creates new default.+ """+ if initial_config is not None:+ config = initial_configelse:- config = Config()+ config_path = get_config_path()+ if config_path.exists():+ config = load_config()+ else:+ config = Config()while True:try: