cnitlrt Claude Opus 4.6 (1M context) commited on
Commit
a60ba37
·
1 Parent(s): bbd7bd6

feat: CLI 命令也触发首次配置向导

Browse files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. src/autoteam/manager.py +6 -0
src/autoteam/manager.py CHANGED
@@ -1648,6 +1648,12 @@ def main():
1648
  parser.print_help()
1649
  sys.exit(0)
1650
 
 
 
 
 
 
 
1651
  if args.command == "status":
1652
  cmd_status()
1653
  elif args.command == "check":
 
1648
  parser.print_help()
1649
  sys.exit(0)
1650
 
1651
+ # 首次启动检查必填配置(api 命令在 start_server 里单独处理)
1652
+ if args.command not in ("api",):
1653
+ from autoteam.setup_wizard import check_and_setup
1654
+
1655
+ check_and_setup(interactive=True)
1656
+
1657
  if args.command == "status":
1658
  cmd_status()
1659
  elif args.command == "check":