Conversation
Add comprehensive configuration system with support for: - .coderefrc.json file - package.json "coderef" field - Environment variables (CODEREF_*) - Programmatic options with proper precedence Includes helper functions for path resolution and 32 comprehensive tests with 100% statement/function/line coverage and 97.14% branch coverage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Migrate all coderef functionality to the new package structure: - Copy all utils files from scripts/coderef/utils/ to src/utils/ - Copy validate.ts and fix.ts to src/core/ - Move all test files to test/ directory - Update import paths throughout the codebase All 202 tests passing successfully. Next steps: Integrate with configuration system and separate CLI logic. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Integrate the configuration system into validate.ts: - Add optional config parameter to validateCodeRef, validateCodeContent, and validateSymbolRef - Update main() function to load and use configuration - Replace hardcoded DOCS_DIR, PROJECT_ROOT, DOCSIGNORE_FILE with config values - Update resolveTargetFiles to accept config parameter - Update all test calls to pass mockConfig All 202 tests passing successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Integrate the configuration system into fix.ts: - Import loadFixConfig, getDocsPath, and CodeRefFixConfig from config - Remove hardcoded DOCS_DIR and PROJECT_ROOT constants - Update collectErrors() to accept config parameter - Update main() to load config using loadFixConfig() - Replace all DOCS_DIR and PROJECT_ROOT references with config values - Pass config to validateCodeRef() calls All 202 tests passing successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Phase 4: CLI Implementation completed - Separated CLI logic from core validation logic - Moved validate.ts CLI code to src/cli/validate.ts - Moved fix.ts entirely to src/cli/fix.ts (all CLI code) - Core validate.ts now only exports core functions - Created bin/coderef.js as CLI entry point using commander - Supports 'validate' and 'fix' commands - Proper help output and option handling - Created src/index.ts for programmatic API - Exports core validation functions - Exports configuration functions and types - Exports utility functions for AST and code comparison - Added commander dependency - Updated package.json exports to fix types order - All 202 tests passing - CLI tested and working locally 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…-and-formatting ci: add github action for lint and format
ci: add github action for test
…7128 Add claude GitHub actions 1767075957128
Claude Code needs pull-requests: write permission to post review comments to PRs using gh pr comment command. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
docs: split documents from CLAUDE.md
…english Feature/#10 translate japanese to english
Add explicit guidelines for using CODE_REF comments when including code examples from actual source code in documentation. Updates include: - Important notice in Code Blocks section - Expanded Best Practices for CODE_REF with detailed rules - Added to Common Mistakes to Avoid section 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add { cause: error } option to Error constructors in execGit and getChangedFiles
functions to preserve original error context for better debugging.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add TypeScript linting support for scripts/ directory with type checking - Create tsconfig.scripts.json for scripts-specific TypeScript configuration - Update lint scripts in package.json to include all TypeScript files - Fix ESLint errors in scripts: - Replace unused error variable with _error prefix - Remove unnecessary async from main function in validate-docs.ts This ensures code quality standards apply consistently across both src/ and scripts/ directories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This reverts commit 2f66247.
Changed execGit function from execSync to spawnSync to prevent potential command injection vulnerabilities. This ensures that user input (such as branch names) containing shell metacharacters cannot execute arbitrary commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Extracted validation logic into testable validateDocumentation() function that returns structured results, and separated presentation concerns into formatAndDisplay() function. This improves testability, reusability, and maintainability while maintaining full backward compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…entation Feature/#18 build system for documentation
Add support for referencing variables (const, let, var) in CODE_REF comments using AST-based symbol searching. Features: - Support for const, let, and var declarations - Support for exported variables - Support for destructuring patterns (object, array, rest) - Support for multiple declarators - Include JSDoc comments in extracted code - Function takes precedence when name collision occurs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Document new variable reference feature in CODE_REF: - Add variable reference syntax and examples - Document supported patterns (const, let, var, destructuring) - Add symbol resolution priority explanation - Update architecture documentation with implementation details
Document new variable reference feature in CODE_REF: - Add variable reference syntax and examples (const, let, var) - Document supported patterns (destructuring, multiple declarators) - Add symbol resolution priority explanation - Document known limitations (nested destructuring, renamed properties, scope) - Update architecture documentation with implementation details 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…cawpea/coderef into feature/#3_support-variables-in-coderef
…deref Feature/#3 support variables in coderef
…utomate-release-workflow
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ci: add release workflow usign semantic-release
Code Review SummaryOverall Quality: Excellent ⭐⭐⭐⭐⭐ This PR implements a comprehensive, production-ready npm package with 22,313 additions across 69 commits. ✅ Major Strengths
🔍 Minor Issues FoundCode Quality
Security
Type Safety
Testing
Documentation
Package.json
🎯 RecommendationsHigh Priority:
Medium Priority: Low Priority: ✨ Recommendation: ✅ APPROVEIssues identified are minor and non-blocking. Can be addressed in follow-up PRs. Excellent work on this comprehensive foundation! 🎉 Reviewed by: Claude Code Review | 2025-12-31 |
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
PR Review: Release v0.1.0I've completed a comprehensive review of this pull request. This is an impressive initial release with a well-structured codebase, comprehensive testing, and excellent documentation. Below is my detailed feedback. Code Quality and Best PracticesStrengths
Minor Concerns
Potential Bugs and IssuesSecurity Concerns (Addressed)
Logic Issues
Performance ConcernsGood Practices
Areas for Optimization
Security ConcernsStrengths
Recommendations
Test CoverageStrengths
Observations
Recommendations
DocumentationStrengths
Areas for Improvement
Additional ObservationsBuild and Release
Package.json Issues
Summary and RecommendationsMust Fix Before Release
Should Fix Before Release
Nice to Have
Final VerdictThis is a high-quality initial release with:
The codebase demonstrates professional software engineering practices. The issues identified are mostly minor and can be addressed either before release or in follow-up PRs. Recommendation: Approve with requested changes (address the "Must Fix" items before merging). Great work! |
Code Review: PR #22 - @cawpea/coderefExecutive SummaryI've conducted a comprehensive review of this PR. Overall, the code quality is excellent with strong security practices, comprehensive testing, and solid architecture. The implementation demonstrates best practices in TypeScript development, CI/CD, and documentation. Score: 8/10 Recommendation: ✅ APPROVE with requested changes 🎯 Critical FindingsNo Critical Issues Found ✅The code is production-ready from a security and functionality perspective.
|
Code Review - PR #22This is a substantial PR (22,390 additions, 60+ commits) that introduces @cawpea/coderef - a tool for validating and auto-fixing code references in markdown documentation. Overall Assessment: ✅ Approve with Recommendations 🎯 Strengths
|
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.