Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion graphify/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
_HOOK_SOURCE_EXTS = (
'.py', '.js', '.cjs', '.ts', '.tsx', '.jsx', '.astro', '.vue', '.svelte', '.go',
'.rs', '.java', '.rb', '.c', '.h', '.cpp', '.hpp', '.cc', '.cs', '.kt',
'.swift', '.php', '.scala', '.lua', '.sh', '.md', '.rst', '.txt', '.mdx',
'.swift', '.php', '.scala', '.lua', '.ps1', '.psm1', '.psd1', # #4271: PowerShell sources are graphable too
'.sh', '.md', '.rst', '.txt', '.mdx',
)
_GEMINI_NUDGE_TEXT = (
'graphify: knowledge graph at graphify-out/. For focused questions, run '
Expand Down
4 changes: 4 additions & 0 deletions tests/test_hook_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def test_search_non_dict_tool_input_is_silent(tmp_path, monkeypatch):
{"file_path": "SRC/APP.PY"}, # uppercase extension
{"file_path": "src/a.test.tsx"}, # multi-dot -> .tsx
{"file_path": "lib/foo.min.js"}, # multi-dot -> .js
{"file_path": "scripts/deploy.ps1"}, # #4271: PowerShell sources nudge too
{"file_path": "scripts/Module.psm1"}, # #4271
{"file_path": "scripts/Module.psd1"}, # #4271
{"file_path": "scripts/DEPLOY.PS1"}, # #4271: uppercase extension
{"file_path": r"src\components\app.py"}, # windows backslashes
{"pattern": "**/*.py", "path": "src"}, # glob pattern
{"pattern": "**/*.astro"},
Expand Down
Loading