Repository navigation
Conversation
* fix: git hooks fail when graphify is installed via pipx When installed via pipx, the graphify module is only available in pipx's isolated venv, not the system python3. The git hooks (post-commit, post-checkout) hardcoded `python3` which cannot import graphify in this case. Detect the correct Python interpreter from the graphify binary's shebang line, matching the approach already used in skill.md Step 1. Falls back to python3 for system installs. * fix: handle env-style shebangs and improve interpreter detection - Use POSIX `command -v` instead of non-standard `which` - Parse `#!/usr/bin/env python3` shebangs correctly (previous `tr -d ' '` would produce `/usr/bin/envpython3`) - Add import validation fallback to python3 if resolved interpreter cannot import graphify
… buffer * fix: suppress graspologic ANSI output that breaks PowerShell scrolling graspologic's leiden() emits ANSI escape sequences (progress bars, colored warnings) that corrupt PowerShell 5.1's scroll buffer on Windows, disabling vertical scrolling. Redirect stdout/stderr to StringIO during leiden() calls to prevent any escape codes from reaching the terminal. Add 2 tests verifying cluster() produces no stdout/stderr output. Fixes Graphify-Labs#19 Co-Authored-By: Claude Opus 4.6 <[email protected]> * docs: add PowerShell troubleshooting section to Windows skill Document the PowerShell 5.1 scrolling issue and provide 4 workarounds: upgrade graphify, use Windows Terminal, reset terminal, or uninstall graspologic to use Louvain fallback. Fixes Graphify-Labs#19 Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
- Register 'trae' and 'trae-cn' in _PLATFORM_CONFIG (skill-trae.md, ~/.trae/skills/ and ~/.trae-cn/skills/, claude_md=False) - Add CLI subcommands: graphify trae install/uninstall, graphify trae-cn install/uninstall (routes to _agents_install/uninstall) - Update help text with new platform entries - Create skill-trae.md (Agent-tool based extraction, AGENTS.md integration, no PreToolUse hook support per Trae limitations) - Update README.md and README.zh-CN.md with Trae platform docs Co-authored-by: lijinshuan <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…utput Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ean README, save-result CLI
…y-Labs#109: extension drift, click detection, skill coverage, .graphify_python persistence Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…-Labs#93 Graphify-Labs#102 Graphify-Labs#109) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ify-Labs#126) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…Graphify-Labs#71) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…e relations in innerHTML (#sec) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…y-Labs#127) Tree-sitter resolves call targets directly from source — marking them INFERRED was incorrect. Cross-file class-level uses edges remain INFERRED. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…AST calls Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…Windows git hooks (Graphify-Labs#140) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…sh (Graphify-Labs#137, Graphify-Labs#148, Graphify-Labs#149) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…hify-Labs#105) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…cription Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…port Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…nstall Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…attribute Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…r prompt itself Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ort.py, bound collision loop Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…aceholder Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Graphify-Labs#195: skill.md requires general-purpose subagent type for extraction dispatch Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…phify-Labs#222 and bump to 0.4.2 - extract.py: use str(path) for node IDs to prevent same-basename collision (Graphify-Labs#211) - build.py: normalize from/to edge keys before KeyError (Graphify-Labs#216) - export.py: guard ZeroDivisionError when graph has no edges (Graphify-Labs#217) - hooks.py: remove stale CODE_EXTS filter, rebuild on any changed file (Graphify-Labs#222) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…, Graphify-Labs#221 into 0.4.2 - build/validate: accept NetworkX <=3.1 "links" key alongside "edges" (Graphify-Labs#212) - __main__: skip version check during install/uninstall, deduplicate paths (Graphify-Labs#220) - all file IO: explicit encoding="utf-8" to prevent crashes on Windows CJK locales (Graphify-Labs#204) - hooks: add newline="\n" on write to prevent CRLF shebang breakage on Windows (Graphify-Labs#204) - export: strip trailing .md from safe_name so "CLAUDE.md" doesn't become "CLAUDE.md.md" (Graphify-Labs#221) - report: add Community Hubs navigation block so Obsidian vault stays connected (Graphify-Labs#221) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…phify-Labs#226, Graphify-Labs#254 and bump to 0.4.3 - extract.py: resolve relative JS/TS imports to full-path IDs (fixes 0 import edges on TS codebases) (Graphify-Labs#256) - extract.py: resolve relative Python imports to full-path IDs (Graphify-Labs#256) - watch.py: merge fresh AST with existing semantic nodes instead of overwriting (Graphify-Labs#253) - hooks.py: add python fallback after python3 for Windows; exit 0 if neither found (Graphify-Labs#244) - analyze.py: guard stale _src/_tgt hints with node membership check (Graphify-Labs#226) - detect.py + extract.py: add .vue and .svelte to CODE_EXTENSIONS and _DISPATCH (Graphify-Labs#254) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…to 0.4.4 - watch.py: preserve INFERRED/AMBIGUOUS edges (code<->doc) across rebuilds (Graphify-Labs#261) - __main__.py: fix Codex hook - use additionalContext instead of permissionDecision:allow (Graphify-Labs#249) - detect.py: skip common lockfiles (package-lock.json, yarn.lock, Cargo.lock etc.) (Graphify-Labs#266) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Some MCP clients send blank lines between JSON messages. The stdio transport tried to parse every line as JSONRPCMessage, crashing with a Pydantic ValidationError. _filter_blank_stdin() installs an OS-level pipe that relays stdin while silently dropping blank-only lines. Closes Graphify-Labs#201 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…s, fixes Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
… path bug, .graphifyignore subfolder patterns; v0.4.10: Dart, Hermes, 6 CLI commands, PHP improvements Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…uages)
walk_calls in each per-file extractor only looked up callee names in a
file-local label_to_nid dict, so any call to a symbol defined in another
file was silently dropped. For multi-file codebases this left most call
relationships missing from the graph.
Two-pass fix:
- Each extractor (extract_generic, Go, Rust, Zig, PowerShell, Elixir)
now records unresolved calls — where a callee name was extracted but
not found locally — in an unresolved_calls list returned with the result.
- extract() builds a global label_to_nid from all nodes across all files
after per-file extraction completes, then resolves the unresolved calls
against it. Resolved edges are added as calls with confidence INFERRED
and weight 0.9 to distinguish them from same-file EXTRACTED edges.
Stale cache entries (written before this change, lacking unresolved_calls)
are detected and transparently re-extracted so the global pass gets full data.
Fixes cross-file call resolution for all 20+ supported languages without
any language-specific import logic. Import-aware resolution remains a
follow-up improvement for reducing false positives on common names.
Author
|
Problem The global symbol table added in #[prev-pr] resolves cross-file calls for all languages, but it has a known weakness: name collisions. If two files define a function with the same name (e.g. process, init, run), the global table maps that name to whichever node was Proposed fix Use import statements to constrain which file a callee can come from, before falling back to the global table. Two-step resolution:
Impact
|
10 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(all languages) #298
walk_calls in each per-file extractor only looked up callee names in a
file-local label_to_nid dict, so any call to a symbol defined in another
file was silently dropped. For multi-file codebases this left most call
relationships missing from the graph.
Two-pass fix:
Stale cache entries (written before this change, lacking unresolved_calls)
are detected and transparently re-extracted so the global pass gets full data.
Fixes cross-file call resolution for all 20+ supported languages without
any language-specific import logic. Import-aware resolution remains a
follow-up improvement for reducing false positives on common names.