diff --git a/graphify/__main__.py b/graphify/__main__.py index da0e15f4..e5ac46c4 100644 --- a/graphify/__main__.py +++ b/graphify/__main__.py @@ -117,7 +117,7 @@ _PLATFORM_CONFIG: dict[str, dict] = { }, "antigravity": { "skill_file": "skill.md", - "skill_dst": Path(".agent") / "skills" / "graphify" / "SKILL.md", + "skill_dst": Path(".agents") / "skills" / "graphify" / "SKILL.md", "claude_md": False, }, "windows": { @@ -409,8 +409,8 @@ def vscode_uninstall(project_dir: Path | None = None) -> None: print(f" {instructions} -> deleted (was empty after removal)") -_ANTIGRAVITY_RULES_PATH = Path(".agent") / "rules" / "graphify.md" -_ANTIGRAVITY_WORKFLOW_PATH = Path(".agent") / "workflows" / "graphify.md" +_ANTIGRAVITY_RULES_PATH = Path(".agents") / "rules" / "graphify.md" +_ANTIGRAVITY_WORKFLOW_PATH = Path(".agents") / "workflows" / "graphify.md" _ANTIGRAVITY_RULES = """\ ## graphify @@ -430,7 +430,7 @@ _ANTIGRAVITY_WORKFLOW = """\ **Description:** Turn any folder of files into a navigable knowledge graph ## Steps -Follow the graphify skill installed at ~/.agent/skills/graphify/SKILL.md to run the full pipeline. +Follow the graphify skill installed at ~/.agents/skills/graphify/SKILL.md to run the full pipeline. If no path argument is given, use `.` (current directory). """ @@ -500,8 +500,8 @@ def _kiro_uninstall(project_dir: Path) -> None: def _antigravity_install(project_dir: Path) -> None: - """Install graphify for Google Antigravity: skill + .agent/rules + .agent/workflows.""" - # 1. Copy skill file to ~/.agent/skills/graphify/SKILL.md + """Install graphify for Google Antigravity: skill + .agents/rules + .agents/workflows.""" + # 1. Copy skill file to ~/.agents/skills/graphify/SKILL.md install(platform="antigravity") # 1.5. Inject YAML frontmatter for native Antigravity tool discovery @@ -512,7 +512,7 @@ def _antigravity_install(project_dir: Path) -> None: frontmatter = "---\nname: graphify-manager\ndescription: Rebuild the code graph or perform manual CLI queries when MCP server is offline.\n---\n\n" skill_dst.write_text(frontmatter + content, encoding="utf-8") - # 2. Write .agent/rules/graphify.md + # 2. Write .agents/rules/graphify.md rules_path = project_dir / _ANTIGRAVITY_RULES_PATH rules_path.parent.mkdir(parents=True, exist_ok=True) if rules_path.exists(): @@ -521,7 +521,7 @@ def _antigravity_install(project_dir: Path) -> None: rules_path.write_text(_ANTIGRAVITY_RULES, encoding="utf-8") print(f"graphify rule written to {rules_path.resolve()}") - # 3. Write .agent/workflows/graphify.md + # 3. Write .agents/workflows/graphify.md wf_path = project_dir / _ANTIGRAVITY_WORKFLOW_PATH wf_path.parent.mkdir(parents=True, exist_ok=True) if wf_path.exists(): @@ -964,8 +964,8 @@ def main() -> None: print(" trae uninstall remove graphify section from AGENTS.md") print(" trae-cn install write graphify section to AGENTS.md (Trae CN)") print(" trae-cn uninstall remove graphify section from AGENTS.md") - print(" antigravity install write .agent/rules + .agent/workflows + skill (Google Antigravity)") - print(" antigravity uninstall remove .agent/rules, .agent/workflows, and skill") + print(" antigravity install write .agents/rules + .agents/workflows + skill (Google Antigravity)") + print(" antigravity uninstall remove .agents/rules, .agents/workflows, and skill") print(" hermes install write skill to ~/.hermes/skills/graphify/ (Hermes)") print(" hermes uninstall remove skill from ~/.hermes/skills/graphify/") print(" kiro install write skill to .kiro/skills/graphify/ + steering file (Kiro IDE/CLI)") diff --git a/graphify/detect.py b/graphify/detect.py index 98cff16d..d67d2f2f 100644 --- a/graphify/detect.py +++ b/graphify/detect.py @@ -61,8 +61,7 @@ _PAPER_SIGNAL_THRESHOLD = 3 # need at least this many signals to call it a pape def _is_sensitive(path: Path) -> bool: """Return True if this file likely contains secrets and should be skipped.""" name = path.name - full = str(path) - return any(p.search(name) or p.search(full) for p in _SENSITIVE_PATTERNS) + return any(p.search(name) for p in _SENSITIVE_PATTERNS) def _looks_like_paper(path: Path) -> bool: diff --git a/graphify/watch.py b/graphify/watch.py index 537746c1..56ebbe81 100644 --- a/graphify/watch.py +++ b/graphify/watch.py @@ -17,7 +17,6 @@ def _rebuild_code(watch_path: Path, *, follow_symlinks: bool = False) -> bool: Returns True on success, False on error. """ - watch_path = watch_path.resolve() try: from graphify.extract import extract from graphify.detect import detect