Commit Graph

34 Commits

Author SHA1 Message Date
Kazuki Yamada
ea1cc485c2 chore(config): disable organizeImports for src/index.ts
Added override configuration to disable Biome's organizeImports feature
specifically for src/index.ts to allow manual import order management
while keeping automatic import organization enabled for other files.
2025-09-21 13:54:12 +09:00
Kazuki Yamada
b7fe6f25c5 fix(lint): resolve all oxlint warnings for code quality
- Remove unused imports across 67 files (RepomixConfigMerged, QueryCapture, etc.)
- Fix unused parameters by prefixing with underscore (_context, _index, etc.)
- Remove unused catch parameters using modern JavaScript syntax
- Fix require-yield warnings in generator functions
- Remove unused variables and interface declarations
- Add oxlint configuration to ignore integration test fixtures

Resolves 144 linting warnings while preserving all functionality.
All 743 tests continue to pass. Code quality significantly improved.
2025-08-24 18:25:08 +09:00
Kazuki Yamada
8bf797114b feat(cli): Report files detected as binary by content inspection
Add new "Binary Files Detected" section to CLI output that shows files which were
skipped due to binary content detection (not extension-based). This addresses issue #752
where users were not informed about files being silently excluded.

Changes:
- Update fileRead.ts to return detailed skip reasons (binary-extension, binary-content, size-limit, encoding-error)
- Modify file collection pipeline to track and propagate skipped files
- Add reportSkippedFiles function to display binary-content detected files
- Show files with relative paths and helpful exclusion messages
- Only display section when binary-content files are found
- Add comprehensive test coverage for new functionality

The implementation follows existing security check reporting patterns and provides
users clear visibility into why files were excluded from output.
2025-08-23 14:35:54 +09:00
Kazuki Yamada
5b5ee862a0 feat(cli): Add --include-logs option for git commit history
This feature allows users to include git log information in the output to help AI understand development patterns and file change relationships.

Key changes:
- Added --include-logs and --include-logs-count CLI options
- Default to 50 commits, configurable via CLI and config file
- Includes commit date, message, and changed file paths (excludes commit hashes)
- Added security checks and metrics calculation for git logs
- Updated output templates to include git logs section
- Comprehensive test coverage and TypeScript fixes

Resolves user request for including git commit history to provide development context for AI analysis.
2025-08-22 14:09:58 +09:00
Kazuki Yamada
6eb8f27fd5 refactor(core): Replace environment variable with workerData for worker log level
Replace the environment variable approach for passing log levels to workers with Tinypool's workerData mechanism, which is more idiomatic for worker thread configuration.

Changes:
- Add setLogLevelByWorkerData() method to handle workerData-based log level setting
- Update Tinypool configuration to use workerData instead of env variables
- Update all 5 worker files to use setLogLevelByWorkerData()
- Remove unused setLogLevelByEnv function and related test mocks
- Update tests to reflect new workerData configuration

This provides better isolation and follows Node.js worker thread best practices.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 00:05:52 +09:00
Kazuki Yamada
0efe7ba3cd test: use createMockConfig helper for all test mock configurations
- Replace manual config objects with createMockConfig() in test files
- Ensures consistency and automatic handling of new config properties
- Fixes truncateBase64 property linter errors
- Improves maintainability for future config schema changes
2025-07-15 22:44:47 +09:00
sakamossan
97d550e946 add test 2025-06-05 23:44:33 +09:00
sakamossan
9091bf0a9b feat(cli): Set exit code when repomix fails 2025-06-05 23:44:33 +09:00
Kazuki Yamada
712b982e00 feat(mcp): Add processedFiles and safeFilePaths to PackResult and update related interfaces 2025-05-25 12:18:58 +09:00
Kazuki Yamada
5617f9de64 test(cli): Remove stdout mode test for piped input 2025-05-10 16:33:09 +09:00
Kazuki Yamada
95f7092b94 feat(cli): add --stdout option for output to stdout instead of file, enhancing CLI flexibility
- Introduced `--stdout` flag to allow output to standard output, which cannot be used with the `--output` option.
- Updated CLI configuration to handle `stdout` mode.
- Enhanced documentation with examples for using `--stdout`.
- Added tests to ensure correct behavior when using `--stdout` in various scenarios.
2025-05-10 16:33:09 +09:00
Kazuki Yamada
265845a9c0 fix(gitDiff): Fix syntax and tests 2025-05-10 11:26:05 +09:00
pmdyy
cdfa93c594 feat(output): Add git diff support with --diffs flag 2025-05-05 23:57:05 -06:00
Kazuki Yamada
2f2035eab3 test(core): fix tests for logger loglevel sync in worker processes 2025-04-20 15:01:20 +09:00
Kazuki Yamada
46518a847a fix: add input.maxFileSize to tests config 2025-04-20 14:42:03 +09:00
Kazuki Yamada
f1993c62c4 Fix tests for metadata-only output mode 2025-04-19 17:58:44 +09:00
Kazuki Yamada
8911966daa feat(git): Sort files by git commit frequency 2025-03-16 01:38:13 +09:00
yamadashy
a2d3c5fed9 feat(index): Add additional export to treat as a library 2025-02-17 23:13:06 +09:00
huy-trn
2ca7453df4 Add code compression option 2025-02-15 19:11:42 +09:00
Yamada Dev
0b84b97675 feat(cli): Add quiet mode option 2025-02-11 18:02:03 +09:00
Yamada Dev
c04554e59f feat(cli): Control verbose as a log level 2025-02-11 17:48:52 +09:00
Rakesh Chatrath
8f542124c0 Allow for passing in multiple directories 2025-02-08 16:27:22 +09:00
Dorian Massoulier
157440e6c8 feat(cli-flags): add --include-empty-directories flag 2025-01-28 23:58:16 +09:00
Dorian Massoulier
7747bfddcf feat(cli-flags): add --instruction-file-path 2025-01-28 23:58:16 +09:00
Dorian Massoulier
bc8e8f9b48 feat(cli-flags): add --header-text flag 2025-01-28 23:58:16 +09:00
Dorian Massoulier
60f75be144 feat(cli-flags): add --no-default-patterns flag 2025-01-28 23:58:16 +09:00
Dorian Massoulier
b1510a2a07 feat(cli-flag): add --no-gitignore flag 2025-01-28 23:58:16 +09:00
Andreas Tollk?tter
aebfa6b7fa fix tests 2025-01-19 23:13:44 +09:00
Andreas Tollk?tter
5c841a3a65 lint 2025-01-19 23:13:44 +09:00
Kazuki Yamada
76904c9476 feat(website): Add configurable token count encoding and change default to o200k_base 2025-01-05 22:18:46 +09:00
Kazuki Yamada
5846069cc2 feat(remote): Return result from remoteAction and export actions 2025-01-03 16:51:20 +09:00
Kazuki Yamada
8db9f95c7a feat(output): Add options to control file summary and directory structure output 2024-12-30 00:13:03 +09:00
Kazuki Yamada
82775c1ea9 feat(cli): Add --no-security-check command line option
# Conflicts:
#	README.md
#	src/cli/cliRun.ts
2024-12-11 13:44:55 +09:00
Kazuki Yamada
e34a8dabd2 test(core): improve test coverage for core components 2024-11-21 18:18:52 +09:00