chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환 - Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용 - pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관) - worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md) - D:\Rhino-MCP 경로 참조를 새 위치로 치환 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
964a841de1
3978 files changed
+58013356
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
def generate_graph_index(root_path=".hmcmkit"):
|
||||
index_content = ["# HMCMkit Knowledge Graph Index", "", "> Automatically generated index of all knowledge assets.", ""]
|
||||
|
||||
# Simple tree walk
|
||||
for root, dirs, files in os.walk(root_path):
|
||||
# Filter hidden
|
||||
dirs[:] = [d for d in dirs if not d.startswith('.')]
|
||||
files = [f for f in files if not f.startswith('.')]
|
||||
|
||||
rel_path = os.path.relpath(root, root_path)
|
||||
if rel_path == ".":
|
||||
level = 0
|
||||
rel_path = ""
|
||||
else:
|
||||
level = rel_path.count(os.sep) + 1
|
||||
|
||||
indent = " " * level
|
||||
folder_name = os.path.basename(root)
|
||||
if folder_name != ".hmcmkit" and rel_path != "":
|
||||
index_content.append(f"{indent}- 📂 **{folder_name}/**")
|
||||
|
||||
sub_indent = " " * (level + 1)
|
||||
for f in files:
|
||||
if f.endswith(".md") or f.endswith(".json") or f.endswith(".py"):
|
||||
link_path = os.path.join(root, f).replace("\\", "/") # POSIX style for links
|
||||
# Make link relative to where _GRAPH-INDEX.md will be (in system/)
|
||||
# Actually, let's just use the path from project root for clarity in Antigravity context
|
||||
index_content.append(f"{sub_indent}- [{f}]({link_path})")
|
||||
|
||||
output_path = os.path.join(root_path, "system", "_GRAPH-INDEX.md")
|
||||
os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
||||
|
||||
with open(output_path, 'w', encoding='utf-8') as f:
|
||||
f.write("\n".join(index_content))
|
||||
|
||||
print(f"✅ Generated Graph Index at: {output_path}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
target = sys.argv[1] if len(sys.argv) > 1 else ".hmcmkit"
|
||||
generate_graph_index(target)
|
||||
Reference in new issue
Block a user