MusicAssistantKit 0.0.1
MusicAssistantKit 0.0.1
Initial release of MusicAssistantKit - Swift package for Music Assistant API integration.
Features
- WebSocket-based client for Music Assistant server
- Protocol-based dependency injection for testability
- Comprehensive unit test coverage (76 tests, ~97% coverage)
- Integration test support for real server validation
- Swift 6 concurrency compliance
Player Control
- Play, pause, stop commands
- Player state management
Queue Management
- Get queue state
- Clear, shuffle, repeat controls
- Media playback
Event Streaming
- Combine-based event publishers
- Player update events
- Queue update events
Installation
Add to your Package.swift:
```swift
dependencies: [
.package(url: "https://github.com/harperreed/MusicAssistantKit", from: "0.0.1")
]
```
Testing
Unit tests (fast, no server needed):
```bash
SKIP_INTEGRATION_TESTS=1 swift test
```
Integration tests (requires Music Assistant server):
```bash
MA_TEST_HOST=localhost MA_TEST_PORT=8095 swift test
```
See CLAUDE.md for complete testing documentation.