0.1.0
🚀 Features
- cli: add zero-install CLI for quick experience
npx git-unearth blame <file>— line-level blamenpx git-unearth log --max-count N— commit historynpx git-unearth diff <hash>— diff for a commitnpx git-unearth follow <file>— rename trackingnpx git-unearth detail <hash>— full commit detail
- collectors: add git data collection layer with blame, log, diff, follow support
collectBlame()— parsegit blame --line-porcelaininto structured line-level datacollectLog()— parsegit logwith RS/US delimiters intoCommitInfo[]collectDiff()/collectDiffBetween()— parse unified diff intoFileDiff[]with hunkscollectFollow()— track file renames viagit log --follow --diff-filter=RcollectCommitDetail()— full commit metadata + diff in one callgetCommit()— single commit lookup by hash
- cache: add three-tier caching (session Map → filesystem → none) with SHA-1 key hashing
createCacheStore()with configurable TTL, session/fs toggle- All collectors accept optional
cacheparameter for automatic caching
- errors: add structured error classes
GitCommandErrorandGitParseError - format: add formatting utilities —
formatCommitShort,formatLineBlame,formatFileDiff,formatRename,formatDuration,truncate - config: add
getDefaultConfig()/mergeConfig()forArchaeologistConfig
📝 Documentation
- add Claude Code Skill definition (
.claude/skills/git-unearth/skill.md)- Commands:
/why,/history,/context,/decisions,/archaeology - Confidence levels: 🟢 High (PR/Issue) 🟡 Medium (clear commit) 🔴 Low (AI inference)
- Commands:
- add examples directory with 3 demo scripts
examples/basic-usage.ts— programmatic API walkthroughexamples/with-cache.ts— cache usage patternsexamples/skill-commands.ts— skill command simulation
- add VitePress documentation site (
docs/) - add README.md and README_CN.md with CLI/Skill/API usage guides
🔧 Chores
- add initial project configuration (TypeScript 5.9, tsup, vitest, ESLint 9, Prettier)
- add CI/CD workflows — lint, typecheck, test, build, release, docs deploy
- add
binfield to package.json for CLI entry point
Full Changelog: https://github.com/saqqdy/git-unearth/commits/0.1.0