Write a flag file and print a notification (fallback for non-code-only corpora).
(watch_path: Path)
| 1090 | |
| 1091 | |
| 1092 | def _notify_only(watch_path: Path) -> None: |
| 1093 | """Write a flag file and print a notification (fallback for non-code-only corpora).""" |
| 1094 | flag = watch_path / _GRAPHIFY_OUT / "needs_update" |
| 1095 | flag.parent.mkdir(parents=True, exist_ok=True) |
| 1096 | flag.write_text("1", encoding="utf-8") |
| 1097 | print(f"\n[graphify watch] New or changed files detected in {watch_path}") |
| 1098 | print("[graphify watch] Non-code files changed - semantic re-extraction requires LLM.") |
| 1099 | print("[graphify watch] Run `/graphify --update` in Claude Code to update the graph.") |
| 1100 | print(f"[graphify watch] Flag written to {flag}") |
| 1101 | |
| 1102 | |
| 1103 | def _has_non_code(changed_paths: list[Path]) -> bool: |
no outgoing calls