aictx: Performance improvments to handle duplicates, gitignore awareness, integration tests, and new flags#9
Merged
Merged
Conversation
- Introduce RunCtx fields for cwd, repo root, and loaded .gitignore lines - Implement LoadIgnoreLines and BuildIgnorer for repo-aware ignore behavior - Update stitching flow to use RunCtx and ShouldIgnore for per-file filtering - Add PathRelativeDepth tests and new integration tests for ignore logic - Fix traversal logic to skip already-seen and ignored paths before processing - Include temporary RunCtx JSON dump for debugging
easier to write integration tests that use the full CLI
…t/os.Stderr for testability.
…ng stdout/stderr.
output in the buffer
Introduce a dedicated global ignorer for built-in patterns (e.g. .git, editor dirs) and refactor the existing logic into a local ignorer for repo-level rules. `ShouldIgnore` now evaluates global rules first, then local ones. This clarifies precedence, makes built-in exclusions reliable, and keeps repo `.gitignore` behavior unchanged. Tests updated accordingly.
… removing the first H1 so top-level headings (e.g., H2) start at level 0 Add type safety & documentation improvements for markdown-toc
… RunCtx to pointer receivers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
depthWithinRootfunction to use --level flagcli.Appwriters instead of os.Stdout/os.Stderr for testability.