Add update-check endpoint documentation (v0.2.2)

- Add /update-check endpoint documentation to server-implementation.md
- Add product_not_found error code to error codes table
- Add handleUpdateCheck() handler example in WordPress plugin
- Add findProduct() method stub for product lookups
- Verified client implementation aligns with server documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 11:56:47 +01:00
parent 760e1e752a
commit 56abe8a97c
3 changed files with 212 additions and 0 deletions

View File

@@ -257,3 +257,23 @@ When editing CLAUDE.md or other markdown files, follow these rules to avoid lint
- `UpdateInfo` DTO supports both `download_url` and `package` fields (WordPress compatibility)
- Package hash format uses `sha256:hexstring` prefix for integrity verification
- StringEncoder can generate encoded constants for obfuscated endpoint names
### 2026-01-28 - Version 0.2.2 (Server Documentation Alignment)
**Completed:**
- Fetched and compared remote server-implementation.md against client implementation
- Verified client signature algorithm matches server exactly (HKDF, recursive key sorting, JSON flags)
- Added `/update-check` endpoint documentation to `docs/server-implementation.md`
- Added `product_not_found` error code to error codes table
- Added `handleUpdateCheck()` handler example in WordPress plugin implementation
- Added `findProduct()` method stub for product lookups
- Added `getUpdateCheckArgs()` for request validation
- All 66 tests pass
**Learnings:**
- Client implementation was already fully aligned with server documentation
- Server-implementation.md needed update-check endpoint documentation (added in v0.2.1 client but not server docs)
- Documentation alignment is as important as code alignment for maintainability
- Remote server docs fetched successfully via WebFetch tool