Commit Graph

9 Commits

Author SHA1 Message Date
e8dc4ff450 FIX(app): improve research_agent information retrieval
- Change execute_host to execute_bash (run kubectl in container)
- Return natural language instead of JSON in Information Query mode
- Add command guide for storage/memory distinction
- Improve to user-friendly response format
2025-12-24 23:22:59 +09:00
22df2aad0f FEAT(app): enhance agent auto-discovery and analysis
- Add folder/file auto-discovery guidelines to Research Agent
- Add K8s status auto-analysis and solution suggestion
- Improve Orchestrator to delegate auto-discovery to Research Agent
- Improve Planning Agent to specify research_needed for auto-discovery
- Enable automatic path finding for user requests
2025-12-24 14:37:42 +09:00
355b2d1bca FIX(app): restore su - ubuntu -c for proper env and PATH
- su ubuntu -c may not set env vars properly
- Change to su - ubuntu -c to use login shell environment
- Projects path is hardcoded to /home/ubuntu/Projects
2025-12-24 14:37:42 +09:00
d6d85eefd4 FIX(app): hardcode Projects folder path
- execute_host가 su ubuntu -c를 사용하도록 변경 (현재 디렉토리 유지)
- 모든 에이전트 프롬프트에 /home/ubuntu/Projects 경로 하드코딩
- tool_name에 따라 올바른 도구(execute_bash/execute_host) 선택하도록 수정
2025-12-24 14:20:33 +09:00
6703476cef FIX(app): run as ubuntu for git ownership
- Run host commands as ubuntu user
- Fix git safe directory ownership issue
2025-12-24 14:06:26 +09:00
f911aed9be FIX(app): handle shell operators properly
- Wrap command in sh -c for shell operators
- Fix &&, ||, | execution in host namespace
2025-12-24 14:00:25 +09:00
363716e229 REFACTOR(app): use nsenter for host access
- Replace SSH with nsenter for host access
- Simplify host command execution
2025-12-24 13:47:03 +09:00
e035601b95 FEAT(app): add SSH tool for host access
- Add execute_ssh tool for accessing host system (oracle-master)
- Update all agent prompts to explain container vs host environment
- Research Agent: Guide to use SSH for kubectl, Projects, PostgreSQL
- Code Agents: Guide to use SSH for file creation and Git operations
- Infrastructure Agent: Guide to use SSH for YAML files and kubectl
- Orchestrator: Add system environment context

This fixes:
- kubectl 'Exec format error' (now uses SSH with sudo)
- /app/repos/ not found (now uses /home/ubuntu/Projects/)
- PostgreSQL connection errors (now uses correct host address)
- Git repository access issues (now uses SSH to access host repos)

Example usage:
- execute_ssh('kubectl get pods -n mas', use_sudo=True)
- execute_ssh('ls -la /home/ubuntu/Projects')
- execute_ssh('cd /home/ubuntu/Projects/mas && git status')
2025-12-24 13:20:44 +09:00
89c616bca5 REFACTOR(app): change ai model to iterative
- Change AI model configuration
- Switch to iterative approach
2025-12-24 12:55:23 +09:00