From cf53788627cc0335570990767836403b5201dc3d Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 16 Jul 2026 18:22:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20dev-spec.md=20API=20candidate=20?= =?UTF-8?q?=E7=94=A8=20=5FPROJECT=5FDIR=20=E7=A1=AE=E4=BF=9D=20path=20?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gateway/scripts/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"),