- Command Chaining: When running multiple commands in a single
run_shell_commandcall, use the semicolon;as a separator instead of&&.- Correct:
git status; git log - Incorrect:
git status && git log(Causes a ParserError in PowerShell).
- Correct:
- File Operations: Prefer PowerShell syntax for operations like copying files during builds:
powershell -Command "Copy-Item -Path 'src/manifest.json', 'src/styles.css', 'src/popup.html' -Destination 'dist' -Force"
- Contribution Graph: Extracted from
.ContributionCalendar-dayelements. Counts are parsed fromtool-tipelements or fallbackaria-labels. This is the Source of Truth for commit counts. - Timeline Parsing (
parseActivityTimeline):- Today's Actions: Targeted via
relative-timeelements and date header detection (localized to user's timezone). - Active Repos: Top 3 limited.
- Created Repos: Top 3 limited.
- PRs & Issues: Parsed from timeline text.
- Today's Actions: Targeted via
- Pinned Projects: Scraped from
.pinned-item-list-item-content.
- Chrome Storage: All toggles (
showX), theme settings, andgridOrder(array of IDs) are stored inchrome.storage.local. - Live Updates:
applyVisibilityandrunAnalysisare triggered bychrome.storage.onChangedto ensure instant UI feedback.
- Command:
npm run buildrunstscand then uses PowerShell to copy manifest, styles, and HTML todist/.