📝 docs: 요구사항 분석기 문서에 권한 설정 추가

This commit is contained in:
“hyeonggkim”
2026-04-21 13:21:20 +09:00
parent 1ab599f4ff
commit a8d7cbbb9c
2 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,10 @@ description: |
- "라우팅 구조 뽑아줘", "컴포넌트 트리 만들어줘"
- "API 목록 정리", "화면 플로우 그려줘"
- `.pptx` 파일 경로를 제공받고 개발 요구사항 추출을 요청받았을 때
permissions:
allow:
- Bash(python3 -c "import pptx"*)
- Bash(python3*extract_pptx.py*)
---
# 요구사항 분석기 (Requirement Analyzer)

View File

@@ -154,10 +154,11 @@ def extract_slide(slide, slide_number: int, extract_images: bool, output_dir: st
# 테이블
if shape.has_table:
table = shape.table
headers = [cell.text.strip() for cell in table.rows[0].cells]
all_rows = list(table.rows)
headers = [cell.text.strip() for cell in all_rows[0].cells]
rows = [
[cell.text.strip() for cell in row.cells]
for row in table.rows[1:]
for row in all_rows[1:]
]
result['tables'].append({'headers': headers, 'rows': rows})
shape_info['type'] = 'table'