From 71d1b394e9df9178375d2dab0930df478000c796 Mon Sep 17 00:00:00 2001 From: Safi Date: Wed, 29 Apr 2026 09:58:54 +0100 Subject: [PATCH] fix NameError in Kimi tip: use module-level os import instead of _os Co-Authored-By: Claude Sonnet 4.6 --- graphify/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphify/__main__.py b/graphify/__main__.py index 6fb094342..322c26bcb 100644 --- a/graphify/__main__.py +++ b/graphify/__main__.py @@ -1,6 +1,7 @@ """graphify CLI - `graphify install` sets up the Claude Code skill.""" from __future__ import annotations import json +import os import platform import re import shutil @@ -1427,7 +1428,7 @@ def main() -> None: ok = _rebuild_code(watch_path) if ok: print("Code graph updated. For doc/paper/image changes run /graphify --update in your AI assistant.") - if not _os.environ.get("MOONSHOT_API_KEY") and not _os.environ.get("GRAPHIFY_NO_TIPS"): + if not os.environ.get("MOONSHOT_API_KEY") and not os.environ.get("GRAPHIFY_NO_TIPS"): print("Tip: set MOONSHOT_API_KEY to use Kimi K2.6 for semantic extraction — 3x cheaper, richer graphs. pip install 'graphifyy[kimi]'") else: print("Nothing to update or rebuild failed — check output above.", file=sys.stderr)