feat: Enhance CodexLens indexing and search capabilities with new CLI options and improved error handling

This commit is contained in:
catlog22
2025-12-19 15:10:37 +08:00
parent c7ced2bfbb
commit 2f0cce0089
18 changed files with 480 additions and 128 deletions

View File

@@ -2,5 +2,5 @@
- **CLI Tools Usage**: @~/.claude/workflows/cli-tools-usage.md
- **Coding Philosophy**: @~/.claude/workflows/coding-philosophy.md
- **Context Requirements**: @~/.claude/workflows/context-tools.md
- **File Modification**: @~/.claude/workflows/file-modification.md
- **Context Requirements**: @~/.claude/workflows/context-tools.md
- **File Modification**: @~/.claude/workflows/file-modification.md

View File

@@ -4,13 +4,18 @@
**When**: Find code, understand codebase structure, locate implementations
**How**:
**Workflow** (search first, init if needed):
```javascript
smart_search(query="authentication logic") // Auto mode (recommended)
smart_search(action="init", path=".") // First-time setup
// Step 1: Try search directly (works if index exists or uses ripgrep fallback)
smart_search(query="authentication logic")
// Step 2: Only if search warns "No CodexLens index found", then init
smart_search(action="init", path=".") // Creates FTS index only
// Note: For semantic/vector search, use "ccw view" dashboard to create vector index
```
**Modes**: `auto` (intelligent routing), `hybrid` (best quality), `exact` (FTS)
**Modes**: `auto` (intelligent routing), `hybrid` (semantic, needs vector index), `exact` (FTS), `ripgrep` (no index)
---

View File

@@ -0,0 +1,16 @@
# Windows Platform Guidelines
## Path Format Guidelines
### MCP Tools
- Use double backslash: `D:\\path\\file.txt`
- Example: `read_file(paths="D:\\Claude_dms3\\src\\index.ts")`
### Bash Commands
- Use forward slash: `D:/path/file.txt` or `/d/path/file.txt`
- Example: `cd D:/Claude_dms3/src`
### Relative Paths
- Universal format works in both MCP and Bash contexts
- Example: `./src/index.ts` or `../shared/utils.ts`