diff --git a/AGENTS.md b/AGENTS.md index 2550ac9..af02073 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ The working tree represents the user's active work. 3. **Never Overwrite Blindly:** Use available file-reading tools. Preserve user comments, links, and conventions. Prefer surgical edits over wholesale overwrites. 4. **No Destructive Git Commands:** Never run `reset --hard`, `clean -fd`, `restore`, `checkout`, `stash`, `rebase`, or `amend` without explicit permission. 5. **Incremental Retrospective Commits:** Commit each coherent, verified micro-step on a working branch rather than accumulating an entire feature into one large commit. Commits on `main` are allowed for documentation changes (not affecting functionality or architecture). Multi-file commits must include structured `-` bullets explaining *what* changed and *why* per area so the Git history tells a retrospective of the design decisions. -6. **Live Planning & Task Synchronization:** Authoritative tracker is `kiskaadee/lg-smtv-mcp` on `gitea.roadtotech.me` (Project Board ID `6`: `Project Pipeline`), synchronized against `docs/designs/lg-smtv-mcp.md`. Keep Gitea issues, milestones, and board cards aligned with code reality as slices complete; re-run `gitea-plan` on scope shifts or when reaching a milestone Readiness Gate (such as decomposing `M2` after the `M1` MVP E2E gate). +6. **Live Planning & Task Synchronization:** Authoritative tracker is `kiskaadee/lg-smtv-mcp` on `gitea.roadtotech.me` (Project Board ID `6`: `Project Pipeline`, columns `Backlog: 25`, `Ready: 28`, `Work in Progress: 26`, `Review: 29`, `Completed: 27`), synchronized against `ROADMAP.md` and `docs/designs/lg-smtv-mcp.md`. Keep Gitea issues, milestones, and board cards aligned with code reality as slices complete; re-run `gitea-plan` on scope shifts or when reaching a milestone Readiness Gate. 7. **Final Diff Verification:** Before completing work, run `git status` and `git diff` to verify that no unrelated user changes were modified or discarded. Distinguish user changes from agent changes in completion reports. --- diff --git a/README.md b/README.md index 877a235..9042b8c 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Implementation is tracked on the [Project Pipeline](https://gitea.roadtotech.me/ | Milestone | Scope | Status | | :--- | :--- | :--- | | **M1** | Core config, `tv_core` engine, FastMCP tools, Bearer auth, `pair`/`serve` CLI, E2E verification | Complete (`#1`–`#4` merged on `main`) | -| **M2** | Developer Mode SFTP screenshot capture (`asyncssh`), systemd unit, E2E test hardening | Planned (`#5`, `#11`) | +| **M2** | Developer Mode SFTP screenshot capture (`asyncssh`), systemd unit, E2E test hardening | Planned (`#11`, `#12`, `#13`) | Implemented in [`TvManager`](src/lg_smtv_mcp/tv_core/manager.py) and exposed via [`server.py`](src/lg_smtv_mcp/server.py): - Persistent SSAP multiplexing and `subscribe`-backed state snapshots (`get_state`: `volume`, `muted`, `sound_output`, `foreground_app`) diff --git a/ROADMAP.md b/ROADMAP.md index b9646e0..2b93462 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -6,7 +6,8 @@ ## Near Term (Milestone M2) -- **Developer Mode SFTP Capture & Extended Surface ([#5](https://gitea.roadtotech.me/kiskaadee/lg-smtv-mcp/issues/5)):** Implement `tv_core/capture.py` (`CaptureClient` + `AsyncSshCaptureTransport` behind `FrameCapturer` / `CaptureTransport`) with `6s` shared deadline, `finally: sftp.remove()` cleanup, `/tmp/lg_smtv_cap_*.jpg` reconnect sweep, `frame_sha256` / `changed_since_last` tracking, and `deploy/lg-smtv-mcp.service` systemd unit. +- **Developer Mode SFTP Capture ([#12](https://gitea.roadtotech.me/kiskaadee/lg-smtv-mcp/issues/12)):** Implement `tv_core/capture.py` (`CaptureClient` + `AsyncSshCaptureTransport` behind `FrameCapturer` / `CaptureTransport`) with `6s` shared deadline, shielded `finally: sftp.remove()` cleanup, `/tmp/lg_smtv_cap_*.jpg` reconnect sweep, `frame_sha256` / `changed_since_last` tracking, and default `server.py` wiring. +- **Systemd Unit & Deployment Docs ([#13](https://gitea.roadtotech.me/kiskaadee/lg-smtv-mcp/issues/13)):** Add `deploy/lg-smtv-mcp.service` template and document systemd + Developer Mode SSH setup in `README.md`. - **E2E Harness & Standby Parity Hardening ([#11](https://gitea.roadtotech.me/kiskaadee/lg-smtv-mcp/issues/11)):** Address PR `#10` review follow-ups in [`tests/test_e2e_mvp.py`](tests/test_e2e_mvp.py) (`_build_online_ssap` extraction, fast-fail ASGI lifespan startup errors, `elapsed_ms` contract check, and post-`turn_off()` `1008` -> `get_state` stale verification). ## Medium Term