Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / carhost / AGENTS.md
| 1 | # AGENTS.md — library/carhost/ (':library:carhost') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/carhost/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | <!-- last-reviewed: 2026-10-16 --> |
| 6 | - Gradle: :library:carhost / dir: library/carhost/ |
| 7 | - Package roots present: (car template host — one package) |
| 8 | - Entry files: CarTemplateView.kt (no MainActivity/Route — library) |
| 9 | - Deps: :library:ui (permission-free since #884) |
| 10 | - Metadata: metadata_data/library-carhost.md (absent — libraries have none by design) |
| 11 | - Rust: no / screenshotTest: no |
| 12 | |
| 13 | ## Overview |
| 14 | **Purpose:** Car-template host views for `:auto` — `CarTemplateView` renders head-unit templates with `HostTemplateState`. Companion to `:auto:protocol` (wire) and the `auto/` app (session). |
| 15 | **How to use:** Host `CarTemplateView`, drive it from `HostTemplateState`; scope car UI work here, session work in `auto/`, wire work in `:auto:protocol`. |
| 16 | **Entry points:** `CarTemplateView.kt` → `HostTemplateState.kt`. |
| 17 | **Gotchas:** This card was missing entirely (no AGENTS.md existed) — created by the agent-docs redesign. Driver-distraction templating rules apply to anything rendered here. |
| 18 | |
| 19 | ## Key files |
| 20 | - com/vayunmathur/library/carhost/CarTemplateView.kt |
| 21 | - com/vayunmathur/library/carhost/HostTemplateState.kt |
| 22 | |
| 23 | ## Verify (this module only) |
| 24 | ``` |
| 25 | ./gradlew :library:carhost:compileDevKotlin |
| 26 | ./gradlew :library:carhost:lint |
| 27 | ``` |