chore: quantlab-agent 프로젝트 초기 설정
agent_guide 템플릿 기반으로 프로젝트 구조 설정. Gitea(quantlab-agent), Vikunja(project #15) 연동 완료. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
53
bootstrap.bat
Normal file
53
bootstrap.bat
Normal file
@@ -0,0 +1,53 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Prevent git from hanging on auth prompts for submodules
|
||||
set GIT_TERMINAL_PROMPT=0
|
||||
|
||||
echo [1/5] Checking and Initializing Agent Config (.env.agent)...
|
||||
if not exist ".agent\config\.env.agent" (
|
||||
if exist ".agent\config\.env.agent.template" (
|
||||
copy ".agent\config\.env.agent.template" ".agent\config\.env.agent" >nul
|
||||
echo -^> Created .agent\config\.env.agent from template.
|
||||
) else (
|
||||
echo -^> Warning: Template missing.
|
||||
)
|
||||
) else (
|
||||
echo -^> .env.agent already exists.
|
||||
)
|
||||
|
||||
echo [2/5] Updating Git Submodules...
|
||||
git submodule update --init --recursive
|
||||
|
||||
echo [3/5] Bypassing PowerShell and Installing AI Local Dependencies...
|
||||
cd .agent\env
|
||||
call npm install
|
||||
cd ..\..
|
||||
|
||||
echo [4/5] Checking and Installing Python MCP Dependencies...
|
||||
if defined AGENT_PYTHON_PATH (
|
||||
echo -^> Using AGENT_PYTHON_PATH: %AGENT_PYTHON_PATH%
|
||||
if exist ".agent\vendor\browser_use\requirements.txt" (
|
||||
"%AGENT_PYTHON_PATH%" -m pip install -r ".agent\vendor\browser_use\requirements.txt"
|
||||
)
|
||||
if exist ".agent\services\claude-mem\requirements.txt" (
|
||||
"%AGENT_PYTHON_PATH%" -m pip install -r ".agent\services\claude-mem\requirements.txt"
|
||||
)
|
||||
if exist ".agent\services\mini-swe\requirements.txt" (
|
||||
"%AGENT_PYTHON_PATH%" -m pip install -r ".agent\services\mini-swe\requirements.txt"
|
||||
)
|
||||
) else (
|
||||
echo -^> Warning: AGENT_PYTHON_PATH is not defined. Skipping Python dependencies installation.
|
||||
)
|
||||
|
||||
echo [5/5] Bypassing Global Installation (Zero-Pollution Enforced)
|
||||
:: All tools are already safely installed locally in .agent\env\node_modules
|
||||
echo.
|
||||
echo ========================================================
|
||||
echo [OK] Zero-Click Bootstrap Complete. AI Agents are ready!
|
||||
echo --------------------------------------------------------
|
||||
echo [!] ACTION REQUIRED:
|
||||
echo Please open '.agent\config\.env.agent' to set up
|
||||
echo your Vikunja Project ID and Gitea Wiki URL tracking.
|
||||
echo ========================================================
|
||||
endlocal
|
||||
Reference in New Issue
Block a user