FIX(app): add projects path to prompt

Updated orchestrator prompt to include:
- Explicit /app/projects/ path information
- List of available repositories (11 repos)
- Instruction to use /app/projects when user asks about Projects folder
- Added git_read_file and git_show_file_changes to tool documentation

This fixes the issue where orchestrator tried to access 'Projects' instead of '/app/projects'.
This commit is contained in:
2025-12-24 01:45:13 +09:00
parent 9b18bb888b
commit b33b9f17ec
2 changed files with 9 additions and 2 deletions

View File

@@ -16,5 +16,5 @@ commonLabels:
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트) # 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
images: images:
- name: gitea0213.kro.kr/bluemayne/mas - name: gitea0213.kro.kr/bluemayne/mas
newTag: main-sha-420e080c6bd6cc9cb832ade65c6e51ee86b02fd6 newTag: main-sha-5d100114b3be48ae14d58b4b7faf46be908f1e42

View File

@@ -1347,15 +1347,22 @@ ORCHESTRATOR_PROMPT = """당신은 MAS의 총괄 조율자이자 DevOps 전문
3. **Git 도구**: 3. **Git 도구**:
- git_list_repos(): 레포지토리 목록 - git_list_repos(): 레포지토리 목록
- git_recent_commits(repo, limit): 최근 커밋 조회 - git_recent_commits(repo, limit): 최근 커밋 조회
- git_read_file(repo_name, file_path): Git 레포지토리 파일 읽기
- git_show_file_changes(repo_name): Git 변경사항 확인
4. **Prometheus 도구**: 4. **Prometheus 도구**:
- prometheus_query(query): PromQL 쿼리 실행 - prometheus_query(query): PromQL 쿼리 실행
- prometheus_node_metrics(): 노드 메트릭 조회 - prometheus_node_metrics(): 노드 메트릭 조회
5. **파일 시스템 도구**: 5. **파일 시스템 도구** (중요):
- fs_read_file(file_path, max_lines): 파일 읽기 - fs_read_file(file_path, max_lines): 파일 읽기
- fs_list_directory(dir_path): 디렉토리 목록 - fs_list_directory(dir_path): 디렉토리 목록
**중요 경로**:
- `/app/projects/`: 모든 Git 레포지토리가 있는 폴더 (hostPath 마운트)
- portfolio, mas, cluster-infrastructure, jovies, todo 등 11개 레포
- 사용자가 "Projects 폴더" 또는 "레포지토리"를 물어보면 `/app/projects/`를 확인하세요
6. **Docker 도구**: 6. **Docker 도구**:
- docker_list_images(registry): 레지스트리 이미지 목록 - docker_list_images(registry): 레지스트리 이미지 목록