Enhance FastEmbed Integration and GPU Management

- Updated Windows platform guidelines for path formats and Bash rules.
- Refactored CodexLens routes to improve GPU detection and indexing cancellation logic.
- Added FastEmbed installation status handling in the dashboard, including UI updates for installation and reinstallation options.
- Implemented local model management with improved API responses for downloaded models.
- Enhanced GPU selection logic in the model mode configuration.
- Improved error handling and user feedback for FastEmbed installation processes.
- Adjusted Python environment checks to avoid shell escaping issues on Windows.
This commit is contained in:
catlog22
2026-01-06 14:42:00 +08:00
parent 08099cdcb9
commit 6cb819cb3a
6 changed files with 659 additions and 100 deletions

View File

@@ -1,5 +1,6 @@
# Claude Instructions
- **CLI Tools Usage**: @~/.claude/workflows/cli-tools-usage.md
- **Coding Philosophy**: @~/.claude/workflows/coding-philosophy.md
- **Context Requirements**: @~/.claude/workflows/context-tools.md

View File

@@ -1,16 +1,19 @@
# Windows Platform Guidelines
## Path Format Guidelines
## Path Format
### MCP Tools
- Use double backslash: `D:\\path\\file.txt`
- Example: `read_file(paths="D:\\Claude_dms3\\src\\index.ts")`
- **MCP Tools**: `D:\\path\\file.txt`
- **Bash**: `D:/path/file.txt` or `/d/path/file.txt`
- **Relative**: `./src/index.ts`
### Bash Commands
- Use forward slash: `D:/path/file.txt` or `/d/path/file.txt`
- Example: `cd D:/Claude_dms3/src`
## Bash Rules (Prevent Garbage Files)
### Relative Paths
- Universal format works in both MCP and Bash contexts
- Example: `./src/index.ts` or `../shared/utils.ts`
1. **Null redirect**: `command > NUL 2>&1`
2. **Quote all**: `echo "$VAR"`, `cat "file name.txt"`
3. **Variable assignment**: `export VAR=value && command`
4. **Regex escape**: `grep -F "State<T>"` or `grep "State\<T\>"`
5. **Pipe output**: `command 2>&1 | ...` (avoid bare command output)
## Tool Priority
MCP Tools > PowerShell > Git Bash > cmd