mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 22:32:06 +00:00
This commit addresses issues found during review of PRs #12 and #28: ## PR #12 (Auth Error Handling) Fixes - Create shared auth.py module with centralized AUTH_ERROR_PATTERNS, is_auth_error(), and print_auth_error_help() functions - Fix start.bat to use directory check instead of outdated .credentials.json file check (matching start.sh behavior) - Update process_manager.py to import from shared auth module - Update start.py to import from shared auth module - Update documentation comments in autonomous_agent_demo.py and client.py to remove references to deprecated .credentials.json ## PR #28 (Feature Management) Improvements - Add _priority_lock threading lock to feature_mcp.py to prevent race conditions when multiple features are created simultaneously - Apply lock to feature_create, feature_create_bulk, and feature_skip - Add checkAndSendTimeoutRef cleanup in useAssistantChat.ts to prevent memory leaks on component unmount - Clear currentAssistantMessageRef on response_done ## Code Quality - All Python files pass ruff linting - All security tests pass (91/91) - UI passes ESLint and TypeScript compilation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.4 KiB
Batchfile
59 lines
1.4 KiB
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Autonomous Coding Agent
|
|
echo ========================================
|
|
echo.
|
|
|
|
REM Check if Claude CLI is installed
|
|
where claude >nul 2>nul
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Claude CLI not found
|
|
echo.
|
|
echo Please install Claude CLI first:
|
|
echo https://claude.ai/download
|
|
echo.
|
|
echo Then run this script again.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo [OK] Claude CLI found
|
|
|
|
REM Note: Claude CLI no longer stores credentials in ~/.claude/.credentials.json
|
|
REM We can't reliably check auth status without making an API call, so we just
|
|
REM verify the CLI is installed and remind the user to login if needed
|
|
set "CLAUDE_DIR=%USERPROFILE%\.claude"
|
|
if exist "%CLAUDE_DIR%\" (
|
|
echo [OK] Claude CLI directory found
|
|
echo ^(If you're not logged in, run: claude login^)
|
|
) else (
|
|
echo [!] Claude CLI not configured
|
|
echo.
|
|
echo Please run 'claude login' to authenticate before continuing.
|
|
echo.
|
|
pause
|
|
)
|
|
|
|
:setup_venv
|
|
echo.
|
|
|
|
REM Check if venv exists, create if not
|
|
if not exist "venv\Scripts\activate.bat" (
|
|
echo Creating virtual environment...
|
|
python -m venv venv
|
|
)
|
|
|
|
REM Activate the virtual environment
|
|
call venv\Scripts\activate.bat
|
|
|
|
REM Install dependencies
|
|
echo Installing dependencies...
|
|
pip install -r requirements.txt --quiet
|
|
|
|
REM Run the app
|
|
python start.py
|