From 980c3bbaf98c2cd5e29ffa005fc0e68d9079234d Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Fri, 6 Feb 2026 03:53:51 +0300 Subject: [PATCH] Add runtime script management and CLAUDE.md guidelines Updates: - Add CLAUDE.md with project guidelines for AI assistance - Update media-server submodule: runtime script management with HA integration - Update haos-integration submodule: automatic script reload support New features: - Dynamic script CRUD operations via Web UI - Thread-safe configuration management - WebSocket-based real-time updates - Automatic Home Assistant button entity updates - Client-side position interpolation for smooth playback Co-Authored-By: Claude Sonnet 4.5 --- CLAUDE.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ haos-integration | 2 +- media-server | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..b071a06 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,56 @@ +# Claude Assistant Guidelines + +This document contains guidelines for Claude when working on this project. + +## Git Workflow + +### Commits and Pushes + +**IMPORTANT: Never commit or push without explicit user approval.** + +When changes are ready to be committed: +1. Make the code changes +2. Show the user what will be committed (git status/diff) +3. **Wait for explicit approval** from the user before running `git commit` and `git push` +4. Only proceed with commits when the user says "commit and push" or similar + +### Commit Message Format + +Use the following format for commit messages: + +``` + + + +- Detail 1 +- Detail 2 + +Co-Authored-By: Claude Sonnet 4.5 +``` + +## Project Structure + +This is a monorepo containing: +- **haos-integration**: Home Assistant custom integration (submodule) +- **media-server**: FastAPI media server (submodule) + +### Submodule Workflow + +When making changes: +1. Commit changes in the submodule first +2. Push the submodule +3. Update the main repo to reference the new submodule commit +4. Commit and push the main repo + +## Code Style + +- Follow existing code patterns +- Add comprehensive documentation for new features +- Update README files when adding new functionality +- Include examples in documentation + +## Testing + +- Test changes locally before committing +- Verify server restarts successfully after changes +- Check integration compatibility with Home Assistant diff --git a/haos-integration b/haos-integration index 959c6a4..e4eeb2a 160000 --- a/haos-integration +++ b/haos-integration @@ -1 +1 @@ -Subproject commit 959c6a4eda4757bcf25498a9a74265c47237e858 +Subproject commit e4eeb2a97b7e1a80cbade175214cc26a0cde59e8 diff --git a/media-server b/media-server index 71a0a6e..d7c5994 160000 --- a/media-server +++ b/media-server @@ -1 +1 @@ -Subproject commit 71a0a6e6d14a9e6899b9d78ce9985afd9362fa7c +Subproject commit d7c5994e568524024d3df34bc3a36911d9c46c96