diff --git a/.cursor/hooks.json b/.cursor/hooks.json index 7ce5e64..d635d6d 100644 --- a/.cursor/hooks.json +++ b/.cursor/hooks.json @@ -1,12 +1,12 @@ -{ +{ "version": 1, "hooks": { "postToolUse": [ { - "command": "[ ! -f \".cursor/skills/impeccable/scripts/impeccable\" ] || \".cursor/skills/impeccable/scripts/impeccable\" hook", + "command": "$d = Join-Path (Get-Location) '.cursor/skills/impeccable/scripts'; $c = Join-Path $d 'impeccable.cmd'; $x = Join-Path $d 'bin/windows-x64/impeccable.exe'; if (Test-Path $c) { & $c hook } elseif (Test-Path $x) { & $x hook }", "matcher": "^Write$", "timeout": 5 } ] } -} +} \ No newline at end of file diff --git a/.cursorignore b/.cursorignore new file mode 100644 index 0000000..0e10ab0 --- /dev/null +++ b/.cursorignore @@ -0,0 +1,22 @@ +# Cursor 索引 / 文件监听忽略清单(gitignore 语法) +# 目的:把 Cursor 监听的文件从 ~28932 个降到 ~750 个 +# 注意:.gitignore 不会影响 Cursor 的索引和文件监听,必须用这个文件 + +# ---- 依赖与构建产物(约 24725 个文件)---- +**/node_modules/ +**/dist/ +**/build/ + +# ---- Python 虚拟环境(约 3456 个文件)---- +**/.venv/ +**/venv/ +**/site-packages/ + +# ---- Python 字节码与测试缓存 ---- +**/__pycache__/ +**/*.pyc +**/*.pyo +**/.pytest_cache/ + +# ---- 版本库内部数据 ---- +**/.git/