mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
feat: Implement Cross-CLI Sync Panel for MCP servers
- Added CrossCliSyncPanel component for synchronizing MCP servers between Claude and Codex. - Implemented server selection, copy operations, and result handling. - Added tests for path mapping on Windows drives. - Created E2E tests for ask_question Answer Broker functionality. - Introduced MCP Tools Test Script for validating modified read_file and edit_file tools. - Updated path_mapper to ensure correct drive formatting on Windows. - Added .gitignore for ace-tool directory.
This commit is contained in:
19
codex-lens/tests/test_path_mapper_windows_drive.py
Normal file
19
codex-lens/tests/test_path_mapper_windows_drive.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import platform
|
||||
from pathlib import Path
|
||||
|
||||
from codexlens.storage.path_mapper import PathMapper
|
||||
|
||||
|
||||
def test_denormalize_path_windows_drive_is_absolute() -> None:
|
||||
if platform.system() != "Windows":
|
||||
return
|
||||
|
||||
mapper = PathMapper(index_root=Path("C:/tmp/codexlens_indexes"))
|
||||
mapped = mapper.denormalize_path("D/Claude_dms3/codex-lens/src")
|
||||
|
||||
assert mapped.is_absolute()
|
||||
assert str(mapped).lower().startswith("d:\\") or str(mapped).lower().startswith("d:/")
|
||||
assert mapped == Path("D:/Claude_dms3/codex-lens/src")
|
||||
|
||||
Reference in New Issue
Block a user