fix: resolve CodexLens installation issues by correcting package name and improving local path detection

- Updated package name from `codexlens` to `codex-lens` in all relevant files to ensure consistency with `pyproject.toml`.
- Enhanced `findLocalPackagePath()` to always search for local paths, even when running from `node_modules`.
- Removed fallback logic for PyPI installation in several functions, providing clearer error messages for local installation failures.
- Added detailed documentation on installation steps and error handling for local development packages.
- Introduced a new summary document outlining the issues and fixes related to CodexLens installation.
This commit is contained in:
catlog22
2026-01-21 15:32:41 +08:00
parent 604405b2d6
commit 1dfabf6bda
11 changed files with 825 additions and 99 deletions

View File

@@ -124,11 +124,11 @@ Generated automatically for each match:
### Required
- `numpy`: Array operations and cosine similarity
- `codexlens[semantic]`: Embedding generation
- `codex-lens[semantic]`: Embedding generation
### Installation
```bash
pip install numpy codexlens[semantic]
pip install numpy codex-lens[semantic]
```
## Testing

View File

@@ -3,7 +3,7 @@
## Installation
```bash
pip install numpy codexlens[semantic]
pip install numpy codex-lens[semantic]
```
## Commands

View File

@@ -13,7 +13,7 @@ Bridge CCW to CodexLens semantic search by generating and searching embeddings f
## Requirements
```bash
pip install numpy codexlens[semantic]
pip install numpy codex-lens[semantic]
```
## Usage

View File

@@ -30,7 +30,7 @@ try:
from codexlens.semantic.factory import clear_embedder_cache
from codexlens.config import Config as CodexLensConfig
except ImportError:
print("Error: CodexLens not found. Install with: pip install codexlens[semantic]", file=sys.stderr)
print("Error: CodexLens not found. Install with: pip install codex-lens[semantic]", file=sys.stderr)
sys.exit(1)