Repository navigation
v1.3.1-python-final
OneSource v1.3.0 Changelog
!! This will be the last python update!!
this project will use rust after 2.0.0 version.
Release Date: 2026-01-25
Highlight: 🚀 "Smart Isolation" Mechanism for File Content vs. Project Tree
This release resolves a major pain point by decoupling the "file content aggregation" from the "project tree visualization." You can now show large or binary files (like .exe or docs/) in the project structure to give AI the full context, without wasting tokens by injecting their actual content.
✨ New Features
-
Tree-Specific Filters: Added dedicated CLI flags to control the project tree structure independently.
-
-ti/--tree-include: Include specific patterns only in the tree view. -
-tx/--tree-exclude: Exclude specific patterns only in the tree view. -
--tree-no-ignore: Ignore.gitignorerules only for the tree view. -
Smart Isolation & Fallback Mechanism:
-
Independent Mode: Triggering any
-tior-txflag automatically isolates the tree logic from the file content logic. -
Inherited Mode: If no tree-specific flags are provided, the tree automatically inherits the
-iand-xsettings, ensuring a clean CLI experience and backward compatibility. -
Extended Configuration Persistence: The
--saveflag now correctly persists--no-ignoreand all new--tree-*configurations to the.onesourcercfile.
🛠️ Refactoring & Optimizations
- Decoupled Filtering Logic: Split the singular
_should_ignoremethod into_should_ignore_fileand_should_ignore_tree. _should_ignore_tree(Path Matching Only): No longer checks file size or binary status. This ensures that large/compiled files remain visible in the tree structure, even if they aren't written to the output file._should_ignore_file(Deep Inspection): Retains strict size limits and binary detection to ensure only valid text content is processed.
🐛 Bug Fixes
- Fixed an issue where large files or binaries were erroneously hidden from the top-level project structure preview due to
--max-sizeor binary checks.