dir2md v1.0.4 — ओपन सोर्स codebase को LLM-Friendly Markdown में बदलने वाला CLI, बड़ा अपडेट
(github.com/Flamehaven)🔥 dir2md v1.0.4 — ओपन सोर्स codebase को LLM-Friendly Markdown में बदलने वाला CLI, बड़ा अपडेट
dir2md एक ओपन सोर्स CLI टूल है जो local या remote repository को स्कैन करके directory structure + file contents को LLM input के लिए optimized Markdown blueprint में बदलता है.
इसे code review, AI documentation, prompt engineering आदि में उपयोगी रूप से इस्तेमाल किया जा सकता है.
🔗 GitHub: https://github.com/Flamehaven/dir2md
🔗 Release v1.0.4: https://github.com/Flamehaven/dir2md/releases/tag/v1.0.4
प्रमुख सुधार (v1.0.3 → v1.0.4)
⚙️ CLI configuration और option handling में सुधार (General Availability)
-
CLI की default settings को औपचारिक GA स्तर तक स्थिर किया गया.
-
प्रमुख options (
-preset,-mask,-excludeआदि) के व्यवहार को स्पष्ट रूप से व्यवस्थित किया गया,ताकि version के अंतर के बिना consistent output सुनिश्चित हो.
-
अनावश्यक warning messages और duplicate guidance हटा दी गई.
🧠 Local execution और test environment automation
-
Repository-level import helper जोड़ा गया.
→
pytestया local execution के दौरानsrc/directory अब अपने-आप पहचानी जाती है,और अब
pip install -e .(editable install) की ज़रूरत नहीं है. -
test environment setup को सरल बनाया गया, जिससे local development efficiency बेहतर हुई.
🔍 Glob matching की बहाली (gitwildmatch semantics)
-
*/pattern के root files तक match होने की समस्या ठीक की गई.→ Git के
gitwildmatchव्यवहार को सटीक रूप से बहाल किया गया,ताकि recursive glob search अधिक सहज ढंग से काम करे.
-
बड़े repository scan के दौरान अप्रत्याशित file omission या excessive scanning को रोका गया.
🛡️ Security masking और configuration को मजबूत किया गया
-
default masking scope का विस्तार:
- GitHub PAT (
ghp_,gho_,ghs_आदि) - API Key, JWT, Database URL, OAuth Secret जैसी sensitive information को अपने-आप छिपाना.
- GitHub PAT (
-
.envfile auto-load सुविधा जोड़ी गई:CLI execution के समय नज़दीकी
.envfile को खोजकर लागू किया जाता है. -
user-defined masking patterns का समर्थन:
- CLI options:
-mask-pattern,-mask-pattern-file - project settings:
pyproject.tomlमें[tool.dir2md.masking]
- CLI options:
⚡️ Performance और preset optimization (Pro Mode)
- Pro preset चलाते समय performance-centric guidance लागू की गई:
- अनावश्यक files को exclude करना (Targeted excludes)
- token budget (Tight budgets) का automatic calculation
- manifest generation skip option जोड़कर बड़े projects की processing speed में सुधार.
- internal caching और IO efficiency में सुधार → औसत execution speed लगभग 15~25% बेहतर.
🧾 Compatibility और stability
- Windows environment में
file:///C:/pathURI handling bug ठीक किया गया. - CP949 जैसी non UTF-8 locale environments में भी ASCII-safe output सुनिश्चित किया गया.
- symlink unsupported environments में कुछ tests को अपने-आप skip किया गया.
- बाकी सभी tests pass हुए.
🧭 एक पंक्ति में सार
dir2md v1.0.4 = बेहतर security + तेज़ performance + सरल configuration
अगर आप LLM-friendly code summarization pipeline बनाना चाहते हैं, तो अभी अपडेट करें!
अभी कोई टिप्पणी नहीं है.