diff --git a/gateway/scripts/dashboard.py b/gateway/scripts/dashboard.py index 5799b41..7a83699 100644 --- a/gateway/scripts/dashboard.py +++ b/gateway/scripts/dashboard.py @@ -1156,8 +1156,8 @@ def api_spec(): """返回开发规范文档内容""" # Try multiple possible locations candidates = [ - # Git-tracked copy in project docs/ - os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "docs", "dev-spec.md"), + # Git-tracked copy in project docs/ (priority) + os.path.join(_PROJECT_DIR, "docs", "dev-spec.md"), os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))), "projects", "AgentsMeeting", "docs", "dev-spec.md"), # Legacy .memory/ locations (gitignored, no history) os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))), ".memory", "dev-spec.md"),