hass.tibber_prices/scripts
Julian Pawlowski 850e985ef8 feat(release): enhance generate-release-notes with AI optimization and auto-update
Major improvements to release note generation system:

**AI Model Optimization:**
- Switch from Claude Sonnet 4.5 to Haiku 4.5 (67% cheaper, 50% faster)
- Cost reduced from 1.0 to 0.33 Premium requests per generation
- Generation time reduced from ~30s to ~15s
- Quality maintained through improved prompt engineering

**Improved Prompt Structure:**
- Restructured prompt: instructions first, commit data last
- Added explicit user-feature prioritization rules (sensors > config > developer tools)
- Integrated file change statistics with each commit
- Added file path guidance (custom_components/ = HIGH, scripts/ = LOW)
- Added 3-step decision process with walkthrough example
- Added explicit output constraints to prevent meta-commentary

**Auto-Update Feature:**
- Consolidated improve-release-notes functionality into generate-release-notes
- Automatic detection of existing GitHub releases
- Interactive prompt to update both title and body
- Shows comparison: current title vs. new AI-generated title

**File Statistics Integration:**
- Added --stat --compact-summary to git log
- Shows which files changed in each commit with line counts
- Helps AI quantitatively assess change importance (100+ lines = significant)
- Enables better prioritization of user-facing features

**Testing Results:**
- Generated title: "Price Volatility Analysis & Configuration" (user-focused!)
- Successfully prioritizes user features over developer/CI changes
- No more generic "New Features & Bug Fixes" titles
- Thematic titles that capture main release highlights

Impact: Release note generation is now faster, cheaper, and produces
higher-quality user-focused titles. Single consolidated script handles
both generation and updating existing releases.
2025-11-09 17:51:15 +00:00
..
json_schemas refactor: Revise translation schema to enhance structure and add detailed properties for configuration flows 2025-11-09 12:49:06 +00:00
bootstrap add shellcheck directive for bootstrap script 2025-11-06 11:43:10 +00:00
check-if-released feat(release): add semantic versioning workflow automation 2025-11-09 15:32:44 +00:00
develop fix bootstrap 2025-11-03 17:32:49 +00:00
generate-release-notes feat(release): enhance generate-release-notes with AI optimization and auto-update 2025-11-09 17:51:15 +00:00
help update dev environment 2025-11-03 15:54:01 +00:00
lint fix 2025-11-03 21:13:50 +00:00
lint-check fix 2025-11-03 21:13:50 +00:00
motd update dev environment 2025-11-03 15:54:01 +00:00
prepare-release feat(release): add semantic versioning workflow automation 2025-11-09 15:32:44 +00:00
setup feat(release): add automated release notes generation system 2025-11-09 14:25:15 +00:00
suggest-version feat(release): add semantic versioning workflow automation 2025-11-09 15:32:44 +00:00
update update dev environment 2025-11-03 15:54:01 +00:00