docs-agent-overviews-phase-B2
- Commit
32de6fabc0c377d2907ad401561a5f46ff8f80ac- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-16 03:54 UTC (1 month ago)
- Parents
4d3fba8
Diff
calculator/AGENTS.md
diff --git a/calculator/AGENTS.md b/calculator/AGENTS.mdindex c7840bba9e..7386bd63ec 100644--- a/calculator/AGENTS.md+++ b/calculator/AGENTS.md@@ -3,29 +3,45 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `calculator/` + allowed shared modules. Do not root-scan. _Install: ./install calculator (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :calculator / dir: calculator/ - Package roots present: ui, widget-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (no Route.kt — single-screen app with pages, not nav destinations) - Deps: :library:network, :library:widgets - Metadata: metadata_data/calculator.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Modern Material You calculator — scientific/basic modes, function graphing with analysis, and a multi-category unit converter with live currency rates.+**Key features:**+- Scientific + basic keypad with expression history+- Graph page: plots functions with root / intercept / min-max / intersection detection+- Unit converter across many categories incl. live currency rates (`CurrencyApi` over `:library:network`)+- Home-screen widgets for both calculator and unit converter (`:library:widgets` Glance)+**Architecture / data-flow:** Single-screen `MainActivity` hosting `ui/` pages (`CalculatorPage`, `GraphPage`, `UnitConverterPage`) over a `util/` ViewModel + pure expression/graph/units helpers; widget receivers in `widget/` share the same logic. Internet is used only for currency rates.+**Entry points + reading order:** `MainActivity.kt` → `ui/CalculatorPage.kt` → `util/CalculatorViewModel.kt` + `util/CalculatorUiContract.kt` → `util/Expression.kt` / `util/GraphAnalysis.kt` / `util/Units.kt` → `widget/CalculatorGlanceWidget.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- Currency rates are the only network call — everything else must stay offline-safe +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/calculator/MainActivity.kt-- com/vayunmathur/calculator/ui/CalculatorDialogs.kt-- com/vayunmathur/calculator/ui/CalculatorKeypad.kt+### ui/ — keypad, graph, converter pages - com/vayunmathur/calculator/ui/CalculatorPage.kt+- com/vayunmathur/calculator/ui/CalculatorKeypad.kt+- com/vayunmathur/calculator/ui/CalculatorDialogs.kt - com/vayunmathur/calculator/ui/GraphPage.kt - com/vayunmathur/calculator/ui/UnitConverterPage.kt-- com/vayunmathur/calculator/util/CalculatorUiContract.kt+### util/ — ViewModel + pure engine (pending migration to closed roots) - com/vayunmathur/calculator/util/CalculatorViewModel.kt-- com/vayunmathur/calculator/util/CurrencyApi.kt-- com/vayunmathur/calculator/util/Expression.kt-- com/vayunmathur/calculator/util/Formatting.kt-- com/vayunmathur/calculator/util/GraphAnalysis.kt+- com/vayunmathur/calculator/util/CalculatorUiContract.kt+- com/vayunmathur/calculator/util/Expression.kt — expression parsing/eval+- com/vayunmathur/calculator/util/GraphAnalysis.kt — root/intercept/min-max/intersection - com/vayunmathur/calculator/util/Units.kt+- com/vayunmathur/calculator/util/CurrencyApi.kt — only network call+- com/vayunmathur/calculator/util/Formatting.kt+### widget/ — Glance widgets sharing the same logic - com/vayunmathur/calculator/widget/CalculatorGlanceWidget.kt - com/vayunmathur/calculator/widget/CalculatorGlanceWidgetReceiver.kt - com/vayunmathur/calculator/widget/CalculatorKeyAction.kt@@ -40,5 +56,3 @@ _Install: ./install calculator (dev by default)._ ./gradlew :calculator:lint ./gradlew :calculator:checkMetadata ```--
calendar/AGENTS.md
diff --git a/calendar/AGENTS.md b/calendar/AGENTS.mdindex eaf2d80df9..827881688d 100644--- a/calendar/AGENTS.md+++ b/calendar/AGENTS.md@@ -3,69 +3,87 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `calendar/` + allowed shared modules. Do not root-scan. _Install: ./install calendar (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :calendar / dir: calendar/ - Package roots present: ui, data, intents-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (no Route.kt — single-screen app with dialogs, not nav destinations) - Deps: :library:widgets - Metadata: metadata_data/calendar.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Fully offline Material You calendar — works with on-device calendars, no account; acts as the system calendar so dates/events from other apps open here.+**Key features:**+- Month/pager/agenda views, event CRUD with recurrence (`RRule`), timezones, per-calendar colors+- `.ics` import (files shared from anywhere) + export; holiday calendars via generated data (`scripts/calendar`)+- Exact-alarm reminders rescheduled after reboot (`ReminderScheduler` + `BootReceiver`)+- Self-refreshing Glance widgets (agenda + month); assistant read/add via `intents/`+**Architecture / data-flow:** `ui/` screens + `ui/dialogs/` editors → `util/CalendarViewModel` (+ `CalendarUiContract`) → `data/` models (`Calendar`/`Event`/`Instance`/`ReminderMirror`); reminders flow ViewModel → `ReminderScheduler` → `ReminderReceiver` → notification, re-armed on boot.+**Entry points + reading order:** `MainActivity.kt` → `ui/CalendarScreen.kt` → `util/CalendarViewModel.kt` → `data/Event.kt` + `data/Instance.kt` → `util/RRule.kt` → `util/ReminderScheduler.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- Holiday data is generated by `scripts/calendar`, not hand-written — regenerate, don't edit+- Reminder alarms must be re-registered on boot; test the `BootReceiver` path, not just in-app scheduling +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/calendar/MainActivity.kt+### data/ — calendar/event/instance models - com/vayunmathur/calendar/data/Calendar.kt - com/vayunmathur/calendar/data/Event.kt - com/vayunmathur/calendar/data/Instance.kt - com/vayunmathur/calendar/data/ReminderMirror.kt-- com/vayunmathur/calendar/glance/CalendarGlanceWidget.kt-- com/vayunmathur/calendar/glance/CalendarGlanceWidgetReceiver.kt-- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidget.kt-- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidgetReceiver.kt-- com/vayunmathur/calendar/intents/GetIntent.kt-- com/vayunmathur/calendar/intents/InsertIntent.kt-- com/vayunmathur/calendar/ui/AgendaView.kt+### util/ — ViewModel, recurrence, reminders, ICS (pending migration to closed roots)+- com/vayunmathur/calendar/util/CalendarViewModel.kt+- com/vayunmathur/calendar/util/CalendarUiContract.kt+- com/vayunmathur/calendar/util/RRule.kt — recurrence expansion+- com/vayunmathur/calendar/util/RecurrenceParams.kt+- com/vayunmathur/calendar/util/ReminderScheduler.kt+- com/vayunmathur/calendar/util/ReminderReceiver.kt+- com/vayunmathur/calendar/util/BootReceiver.kt+- com/vayunmathur/calendar/util/HolidayCalendarManager.kt+- com/vayunmathur/calendar/util/HolidayData.kt+- com/vayunmathur/calendar/util/IcsExport.kt+- com/vayunmathur/calendar/util/DateFormats.kt+### ui/ + ui/dialogs/ — views and editors+- com/vayunmathur/calendar/ui/CalendarScreen.kt - com/vayunmathur/calendar/ui/CalendarMonthView.kt - com/vayunmathur/calendar/ui/CalendarPagerView.kt-- com/vayunmathur/calendar/ui/CalendarScreen.kt+- com/vayunmathur/calendar/ui/AgendaView.kt+- com/vayunmathur/calendar/ui/WeekHeaderRow.kt+- com/vayunmathur/calendar/ui/HourScale.kt+- com/vayunmathur/calendar/ui/EventPositioner.kt - com/vayunmathur/calendar/ui/CalendarSelector.kt - com/vayunmathur/calendar/ui/CalendarViewHelpers.kt+- com/vayunmathur/calendar/ui/EditEventScreen.kt+- com/vayunmathur/calendar/ui/EditEventRow.kt - com/vayunmathur/calendar/ui/EditEventDateTime.kt - com/vayunmathur/calendar/ui/EditEventReminders.kt-- com/vayunmathur/calendar/ui/EditEventRow.kt-- com/vayunmathur/calendar/ui/EditEventScreen.kt-- com/vayunmathur/calendar/ui/EventPositioner.kt - com/vayunmathur/calendar/ui/EventScreen.kt - com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt-- com/vayunmathur/calendar/ui/HourScale.kt - com/vayunmathur/calendar/ui/IcsImport.kt - com/vayunmathur/calendar/ui/ImportIcsScreen.kt - com/vayunmathur/calendar/ui/SettingsScreen.kt - com/vayunmathur/calendar/ui/SummaryEventItem.kt - com/vayunmathur/calendar/ui/SummaryGrid.kt-- com/vayunmathur/calendar/ui/WeekHeaderRow.kt-- com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt-- com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt-- com/vayunmathur/calendar/ui/dialogs/RecurrenceDates.kt - com/vayunmathur/calendar/ui/dialogs/RecurrenceDialog.kt+- com/vayunmathur/calendar/ui/dialogs/RecurrenceDates.kt - com/vayunmathur/calendar/ui/dialogs/RecurrenceDialogComponents.kt+- com/vayunmathur/calendar/ui/dialogs/CalendarPickerDialog.kt+- com/vayunmathur/calendar/ui/dialogs/CalendarSetDateDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsAddCalendarDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsChangeColorDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsDefaultRemindersDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt - com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt-- com/vayunmathur/calendar/util/BootReceiver.kt-- com/vayunmathur/calendar/util/CalendarUiContract.kt-- com/vayunmathur/calendar/util/CalendarViewModel.kt-- com/vayunmathur/calendar/util/DateFormats.kt-- com/vayunmathur/calendar/util/HolidayCalendarManager.kt-- com/vayunmathur/calendar/util/HolidayData.kt-- com/vayunmathur/calendar/util/IcsExport.kt-- com/vayunmathur/calendar/util/RecurrenceParams.kt-- com/vayunmathur/calendar/util/ReminderReceiver.kt-- com/vayunmathur/calendar/util/ReminderScheduler.kt-- com/vayunmathur/calendar/util/RRule.kt+### glance/ + intents/ — widgets and assistant IPC+- com/vayunmathur/calendar/glance/CalendarGlanceWidget.kt+- com/vayunmathur/calendar/glance/CalendarGlanceWidgetReceiver.kt+- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidget.kt+- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidgetReceiver.kt+- com/vayunmathur/calendar/intents/GetIntent.kt+- com/vayunmathur/calendar/intents/InsertIntent.kt ## Verify (this module only) ```@@ -73,5 +91,3 @@ _Install: ./install calendar (dev by default)._ ./gradlew :calendar:lint ./gradlew :calendar:checkMetadata ```--
clock/AGENTS.md
diff --git a/clock/AGENTS.md b/clock/AGENTS.mdindex 933c37de7b..e014114917 100644--- a/clock/AGENTS.md+++ b/clock/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `clock/` + allowed shared modules. Do not root-scan. _Install: ./install clock (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :clock / dir: clock/ - Package roots present: ui, data, platform, intents, service, widget - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,39 +11,54 @@ _Install: ./install clock (dev by default)._ - Metadata: metadata_data/clock.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline clock — alarms (exact, survive reboot pre-unlock), timer, stopwatch, world clock, analog widget; answers system alarm/timer intents so assistants can set them.+**Key features:**+- Alarms with full-screen lockscreen surface + sound service; timer + stopwatch controllable from notifications+- World-clock city picker; analog Glance widget + legacy widget provider+- Assistant `intents/` (`SetAlarm` / `SetTimer`) wired to the same schedulers as the UI+**Architecture / data-flow:** `ui/` tab pages → `platform/ClockViewModel` (+ `ClockUiContract`) → `data/ClockRepository` over Room; scheduling via `platform/AlarmScheduler` → `AlarmReceiver` → `AlarmActivity` + `service/AlarmSoundService`, re-armed by `BootReceiver`. Timer/stopwatch actions arrive from notifications via `*ActionReceiver`s.+**Entry points + reading order:** `Route` (alarm/timer/stopwatch/world-clock tabs) → `MainActivity.kt` → `Navigation.kt` → `ui/ClockTabs.kt` → `platform/ClockViewModel.kt` → `platform/AlarmScheduler.kt`.+**Gotchas:**+- Alarm scheduling must work before first unlock — test the boot path, not just in-app+- Notification action receivers and the sound service are the timer/stopwatch control plane; UI pages are views onto the same state+- `TimerReciever.kt` keeps its historical misspelling — do NOT rename (receivers are manifest-registered) +## Key files+### Root — entry + navigation - com/vayunmathur/clock/MainActivity.kt - com/vayunmathur/clock/Navigation.kt - com/vayunmathur/clock/Route.kt+### data/ — Room store - com/vayunmathur/clock/data/ClockDatabase.kt - com/vayunmathur/clock/data/ClockRepository.kt-- com/vayunmathur/clock/intents/SetAlarmIntent.kt-- com/vayunmathur/clock/intents/SetTimerIntent.kt-- com/vayunmathur/clock/platform/AlarmActivity.kt-- com/vayunmathur/clock/platform/AlarmReceiver.kt-- com/vayunmathur/clock/platform/AlarmScheduler.kt-- com/vayunmathur/clock/platform/BootReceiver.kt-- com/vayunmathur/clock/platform/ClockUiContract.kt+### platform/ — ViewModel, schedulers, receivers - com/vayunmathur/clock/platform/ClockViewModel.kt+- com/vayunmathur/clock/platform/ClockUiContract.kt+- com/vayunmathur/clock/platform/AlarmScheduler.kt+- com/vayunmathur/clock/platform/AlarmReceiver.kt+- com/vayunmathur/clock/platform/AlarmActivity.kt+- com/vayunmathur/clock/platform/BootReceiver.kt — re-arm alarms on boot - com/vayunmathur/clock/platform/NotificationUtils.kt - com/vayunmathur/clock/platform/StopwatchActionReceiver.kt - com/vayunmathur/clock/platform/StopwatchNotificationHelper.kt - com/vayunmathur/clock/platform/TimerActionReceiver.kt-- com/vayunmathur/clock/platform/TimerReciever.kt+- com/vayunmathur/clock/platform/TimerReciever.kt — historical misspelling, do not rename - com/vayunmathur/clock/platform/WorldClockCities.kt+### service/ — alarm sound - com/vayunmathur/clock/service/AlarmSoundService.kt+### ui/ + ui/components/ + ui/dialogs/ — tab pages and controls+- com/vayunmathur/clock/ui/ClockTabs.kt+- com/vayunmathur/clock/ui/ClockPage.kt+- com/vayunmathur/clock/ui/ClockScreen.kt - com/vayunmathur/clock/ui/AlarmPage.kt - com/vayunmathur/clock/ui/AlarmScreen.kt - com/vayunmathur/clock/ui/AlarmSettingsPage.kt-- com/vayunmathur/clock/ui/ClockPage.kt-- com/vayunmathur/clock/ui/ClockScreen.kt-- com/vayunmathur/clock/ui/ClockTabs.kt-- com/vayunmathur/clock/ui/InitialPermissionsScreen.kt-- com/vayunmathur/clock/ui/StopwatchPage.kt-- com/vayunmathur/clock/ui/StopwatchScreen.kt - com/vayunmathur/clock/ui/TimerPage.kt - com/vayunmathur/clock/ui/TimerScreen.kt+- com/vayunmathur/clock/ui/StopwatchPage.kt+- com/vayunmathur/clock/ui/StopwatchScreen.kt+- com/vayunmathur/clock/ui/InitialPermissionsScreen.kt - com/vayunmathur/clock/ui/components/AlarmCard.kt - com/vayunmathur/clock/ui/components/AlarmOptionControls.kt - com/vayunmathur/clock/ui/components/AlarmRingingScreen.kt@@ -57,6 +72,9 @@ _Install: ./install clock (dev by default)._ - com/vayunmathur/clock/ui/dialogs/NewAlarmDialog.kt - com/vayunmathur/clock/ui/dialogs/NewTimerDialog.kt - com/vayunmathur/clock/ui/dialogs/SelectTimeZonesDialog.kt+### intents/ + widget/ — assistant hooks and widgets+- com/vayunmathur/clock/intents/SetAlarmIntent.kt+- com/vayunmathur/clock/intents/SetTimerIntent.kt - com/vayunmathur/clock/widget/AnalogClockGlanceWidget.kt - com/vayunmathur/clock/widget/AnalogClockWidgetProvider.kt @@ -66,5 +84,3 @@ _Install: ./install clock (dev by default)._ ./gradlew :clock:lint ./gradlew :clock:checkMetadata ```--
contacts/AGENTS.md
diff --git a/contacts/AGENTS.md b/contacts/AGENTS.mdindex fffc392c49..25232c7961 100644--- a/contacts/AGENTS.md+++ b/contacts/AGENTS.md@@ -3,70 +3,87 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `contacts/` + allowed shared modules. Do not root-scan. _Install: ./install contacts (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :contacts / dir: contacts/ - Package roots present: ui, data, intents, auth-- Entry files: MainActivity.kt-- Deps: +- Entry files: MainActivity.kt (no Route.kt — list/detail/edit flow with dialogs + pick activities)+- Deps: (none — contacts provider + account framework only) - Metadata: metadata_data/contacts.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline system contacts app — Google Contacts replacement minus cloud sync; handles system pick/view/edit/create intents, vCard import/export, SIM contacts, groups.+**Key features:**+- List/detail/edit with groups, favorites, photo crop, birthdays/dates, per-account storage via `auth/Authenticator`+- vCard import/export + SIM import; quick actions into WhatsApp/Telegram; assistant read/add via `intents/`+- Optional calendar birthday sync (`CalendarSyncHelper` + `CalendarWorker`); everysync is the sync story, not this app+**Architecture / data-flow:** `ui/` list/detail/edit pages (+ `ui/dialogs/`) → `util/ContactViewModel` (+ split `Accounts`/`Draft` helpers, `ContactsUiContract`) → `data/` models over the system contacts provider (`Contact`/`ContactGroup`, `ContactPrefill`, `SimContacts`); persistence is the provider, not Room — there is no database here.+**Entry points + reading order:** `MainActivity.kt` → `ui/ContactListScreen.kt` → `ui/ContactDetailsPage.kt` → `ui/EditContactPage.kt` → `util/ContactViewModel.kt` → `data/Contact.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- Write paths go through the contacts provider + account (`auth/`), not a local DB — account picker dialogs matter+- `ImportActivity` + `ImportVcfScreen` handle VIEW intents; `ContactListPick`/`ContactItemPick` serve picker callers +## Key files+### Root + auth/ — entry and account framework - com/vayunmathur/contacts/MainActivity.kt - com/vayunmathur/contacts/auth/Authenticator.kt+### data/ — provider-backed models (no Room) - com/vayunmathur/contacts/data/Contact.kt - com/vayunmathur/contacts/data/ContactGroup.kt - com/vayunmathur/contacts/data/ContactPrefill.kt - com/vayunmathur/contacts/data/SimContacts.kt-- com/vayunmathur/contacts/intents/GetIntent.kt-- com/vayunmathur/contacts/intents/InsertIntent.kt+### util/ — ViewModel + helpers (pending migration to closed roots)+- com/vayunmathur/contacts/util/ContactViewModel.kt+- com/vayunmathur/contacts/util/ContactViewModelAccounts.kt+- com/vayunmathur/contacts/util/ContactViewModelDraft.kt+- com/vayunmathur/contacts/util/ContactsUiContract.kt+- com/vayunmathur/contacts/util/ContactSorting.kt+- com/vayunmathur/contacts/util/VcfUtils.kt+- com/vayunmathur/contacts/util/CalendarSyncHelper.kt+- com/vayunmathur/contacts/util/CalendarWorker.kt+- com/vayunmathur/contacts/util/PackageUtils.kt+### ui/ + ui/dialogs/ — list/detail/edit/import+- com/vayunmathur/contacts/ui/ContactListScreen.kt+- com/vayunmathur/contacts/ui/ContactList.kt+- com/vayunmathur/contacts/ui/ContactItem.kt+- com/vayunmathur/contacts/ui/ContactListPick.kt+- com/vayunmathur/contacts/ui/ContactItemPick.kt+- com/vayunmathur/contacts/ui/GroupedContactSection.kt+- com/vayunmathur/contacts/ui/GroupsPage.kt+- com/vayunmathur/contacts/ui/FavoritesHeader.kt+- com/vayunmathur/contacts/ui/LetterHeader.kt - com/vayunmathur/contacts/ui/AvatarColors.kt-- com/vayunmathur/contacts/ui/ContactDetailsComms.kt-- com/vayunmathur/contacts/ui/ContactDetailsFormat.kt-- com/vayunmathur/contacts/ui/ContactDetailsHeader.kt+- com/vayunmathur/contacts/ui/ContactUiHelpers.kt - com/vayunmathur/contacts/ui/ContactDetailsPage.kt+- com/vayunmathur/contacts/ui/ContactDetailsHeader.kt - com/vayunmathur/contacts/ui/ContactDetailsRows.kt - com/vayunmathur/contacts/ui/ContactDetailsSections.kt-- com/vayunmathur/contacts/ui/ContactItem.kt-- com/vayunmathur/contacts/ui/ContactItemPick.kt-- com/vayunmathur/contacts/ui/ContactList.kt-- com/vayunmathur/contacts/ui/ContactListPick.kt-- com/vayunmathur/contacts/ui/ContactListScreen.kt-- com/vayunmathur/contacts/ui/ContactUiHelpers.kt-- com/vayunmathur/contacts/ui/CropPhotoScreen.kt-- com/vayunmathur/contacts/ui/CropPhotoSection.kt+- com/vayunmathur/contacts/ui/ContactDetailsComms.kt+- com/vayunmathur/contacts/ui/ContactDetailsFormat.kt+- com/vayunmathur/contacts/ui/EditContactPage.kt+- com/vayunmathur/contacts/ui/EditContactNameSection.kt+- com/vayunmathur/contacts/ui/EditContactPhotoSection.kt - com/vayunmathur/contacts/ui/EditContactAccountSection.kt - com/vayunmathur/contacts/ui/EditContactBirthday.kt - com/vayunmathur/contacts/ui/EditContactDateDetails.kt - com/vayunmathur/contacts/ui/EditContactDetailGroups.kt - com/vayunmathur/contacts/ui/EditContactGroupSection.kt-- com/vayunmathur/contacts/ui/EditContactNameSection.kt-- com/vayunmathur/contacts/ui/EditContactPage.kt-- com/vayunmathur/contacts/ui/EditContactPhotoSection.kt-- com/vayunmathur/contacts/ui/FavoritesHeader.kt-- com/vayunmathur/contacts/ui/GroupedContactSection.kt-- com/vayunmathur/contacts/ui/GroupsPage.kt+- com/vayunmathur/contacts/ui/CropPhotoScreen.kt+- com/vayunmathur/contacts/ui/CropPhotoSection.kt+- com/vayunmathur/contacts/ui/NamePrefixChooser.kt+- com/vayunmathur/contacts/ui/NameSuffixChooser.kt - com/vayunmathur/contacts/ui/ImportActivity.kt - com/vayunmathur/contacts/ui/ImportVcfScreen.kt - com/vayunmathur/contacts/ui/InsertOrEditContactScreen.kt-- com/vayunmathur/contacts/ui/LetterHeader.kt-- com/vayunmathur/contacts/ui/NamePrefixChooser.kt-- com/vayunmathur/contacts/ui/NameSuffixChooser.kt - com/vayunmathur/contacts/ui/SettingsPage.kt - com/vayunmathur/contacts/ui/dialogs/AddAccountDialog.kt - com/vayunmathur/contacts/ui/dialogs/AddToGroupDialog.kt - com/vayunmathur/contacts/ui/dialogs/EventDatePickerDialog.kt - com/vayunmathur/contacts/ui/dialogs/EventDeleteConfirmDialog.kt-- com/vayunmathur/contacts/util/CalendarSyncHelper.kt-- com/vayunmathur/contacts/util/CalendarWorker.kt-- com/vayunmathur/contacts/util/ContactSorting.kt-- com/vayunmathur/contacts/util/ContactsUiContract.kt-- com/vayunmathur/contacts/util/ContactViewModel.kt-- com/vayunmathur/contacts/util/ContactViewModelAccounts.kt-- com/vayunmathur/contacts/util/ContactViewModelDraft.kt-- com/vayunmathur/contacts/util/PackageUtils.kt-- com/vayunmathur/contacts/util/VcfUtils.kt+### intents/ — assistant IPC+- com/vayunmathur/contacts/intents/GetIntent.kt+- com/vayunmathur/contacts/intents/InsertIntent.kt ## Verify (this module only) ```@@ -74,5 +91,3 @@ _Install: ./install contacts (dev by default)._ ./gradlew :contacts:lint ./gradlew :contacts:checkMetadata ```--
files/AGENTS.md
diff --git a/files/AGENTS.md b/files/AGENTS.mdindex f0205b1b81..cdd4178c39 100644--- a/files/AGENTS.md+++ b/files/AGENTS.md@@ -3,41 +3,55 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `files/` + allowed shared modules. Do not root-scan. _Install: ./install files (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :files / dir: files/ - Package roots present: ui, data, platform-- Entry files: MainActivity.kt, Route.kt, Navigation.kt, FilesApplication.kt+- Entry files: MainActivity.kt, Route.kt, Navigation.kt (FilesApplication.kt was deleted by the shared-boilerplate migration — do NOT re-add) - Deps: :library:image - Metadata: metadata_data/files.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline file manager — browse/move/copy/rename/delete across the device, built-in text editor, system file-picker provider, background long operations.+**Key features:**+- Directory listing with breadcrumbs, grid/list items, properties dialogs, clipboard (cut/copy/paste) and home screen+- Built-in text editor (`TextEditorActivity` + `TextEditorViewModel`); zip/unzip via workers with progress notifications+- SAF surfaces (`DocumentPickerActivity`, `StorageUris`) so other apps can pick files here+**Architecture / data-flow:** `ui/FilesShell` + directory pages → `platform/FilesViewModel` (+ `FilesUiContract`) → `platform/FilesListing` over SAF/MediaStore; long ops run in `ZipWorker`/`UnzipWorker` with `ProgressNotificationWorker` surfacing progress.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/FilesShell.kt` → `platform/FilesViewModel.kt` → `platform/FilesListing.kt`.+**Gotchas:**+- File ops must survive process death — they belong in workers, never in the ViewModel+- Persistable SAF URI permissions are required for non-owned trees; losing them silently breaks listing -- com/vayunmathur/files/FilesApplication.kt+## Key files+### Root — entry + navigation - com/vayunmathur/files/MainActivity.kt - com/vayunmathur/files/Navigation.kt - com/vayunmathur/files/Route.kt+### data/saf/ — picker + URI bookkeeping - com/vayunmathur/files/data/saf/DocumentPickerActivity.kt - com/vayunmathur/files/data/saf/StorageUris.kt-- com/vayunmathur/files/platform/ArchiveLimits.kt-- com/vayunmathur/files/platform/FilesClipboard.kt-- com/vayunmathur/files/platform/FilesListing.kt-- com/vayunmathur/files/platform/FilesUiContract.kt+### platform/ — ViewModel, listing, clipboard, workers - com/vayunmathur/files/platform/FilesViewModel.kt-- com/vayunmathur/files/platform/ProgressNotificationWorker.kt+- com/vayunmathur/files/platform/FilesUiContract.kt+- com/vayunmathur/files/platform/FilesListing.kt+- com/vayunmathur/files/platform/FilesClipboard.kt - com/vayunmathur/files/platform/TextEditorViewModel.kt-- com/vayunmathur/files/platform/UnzipWorker.kt - com/vayunmathur/files/platform/ZipWorker.kt+- com/vayunmathur/files/platform/UnzipWorker.kt+- com/vayunmathur/files/platform/ProgressNotificationWorker.kt+- com/vayunmathur/files/platform/ArchiveLimits.kt+### ui/ + ui/components/ + ui/dialogs/ — shell, listing, editor+- com/vayunmathur/files/ui/FilesShell.kt+- com/vayunmathur/files/ui/FilesNavActions.kt+- com/vayunmathur/files/ui/DirectoryScreen.kt+- com/vayunmathur/files/ui/DirectoryPage.kt+- com/vayunmathur/files/ui/DirectoryListing.kt - com/vayunmathur/files/ui/DirectoryBreadcrumbs.kt-- com/vayunmathur/files/ui/DirectoryDialogs.kt - com/vayunmathur/files/ui/DirectoryLeading.kt-- com/vayunmathur/files/ui/DirectoryListing.kt - com/vayunmathur/files/ui/DirectoryMenus.kt-- com/vayunmathur/files/ui/DirectoryPage.kt+- com/vayunmathur/files/ui/DirectoryDialogs.kt - com/vayunmathur/files/ui/DirectoryParentPane.kt-- com/vayunmathur/files/ui/DirectoryScreen.kt-- com/vayunmathur/files/ui/FilesNavActions.kt-- com/vayunmathur/files/ui/FilesShell.kt - com/vayunmathur/files/ui/HomeScreen.kt - com/vayunmathur/files/ui/HomeScreenBinder.kt - com/vayunmathur/files/ui/TextEditorActivity.kt@@ -51,5 +65,3 @@ _Install: ./install files (dev by default)._ ./gradlew :files:lint ./gradlew :files:checkMetadata ```--
health/AGENTS.md
diff --git a/health/AGENTS.md b/health/AGENTS.mdindex c6f92face6..cf39a337ee 100644--- a/health/AGENTS.md+++ b/health/AGENTS.md@@ -3,102 +3,121 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `health/` + allowed shared modules. Do not root-scan. _Install: ./install health (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :health / dir: health/ - Package roots present: ui, data, domain, platform, service, notifications-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (no Route.kt — Today-dashboard + record pages flow) - Deps: :library:room - Metadata: metadata_data/health.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline health-metric manager (Google Fit replacement) — activity/vitals/body/exercise/sleep/hydration/nutrition plus FHIR medical records, backed by Health Connect. No account, no cloud sync.+**Key features:**+- Per-metric dashboards with charts/history (`GenericLineChart`/`GenericBarChart`, hypnogram for sleep)+- Medications with dose schedules + exact reminders (`DoseScheduler`, `DoseSoundService`, boot-rescheduled); vaccinations from bundled CVX, drugs from RxNorm; card attachments (PDF/photo)+- Food logging against a bundled database + search API; AI insights via the on-device OpenAssistant model; file export+**Architecture / data-flow:** `ui/` Today + record pages → `platform/MedicalViewModel` (+ per-area `Medical*Ops`) → `data/HealthRepository` over Room (`Record`, `MedicationSchedule`, `MedicalRecords`) synced with Health Connect; `domain/` holds pure FHIR (Observations, Medication, Immunization, Allergy/Condition) + `DoseSchedule`; reminders flow `DoseScheduler` → receivers → `DoseReminderActivity` + `service/DoseSoundService`.+**Entry points + reading order:** `MainActivity.kt` → `ui/TodayPage.kt` → `platform/MedicalViewModel.kt` → `data/HealthRepository.kt` → `domain/FhirRecords.kt` → `platform/DoseScheduler.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- Medical data is dual-homed (Room + Health Connect) — writes must update both or they diverge+- Dose reminders need the boot path re-armed like clock alarms; sound runs through a foreground service +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/health/MainActivity.kt-- com/vayunmathur/health/data/FoodModels.kt+### data/ — Room entities + repository - com/vayunmathur/health/data/HealthRepository.kt-- com/vayunmathur/health/data/MedicalRecords.kt-- com/vayunmathur/health/data/MedicationSchedule.kt - com/vayunmathur/health/data/Record.kt+- com/vayunmathur/health/data/MedicationSchedule.kt+- com/vayunmathur/health/data/MedicalRecords.kt+- com/vayunmathur/health/data/FoodModels.kt - com/vayunmathur/health/data/ReferenceCatalog.kt - com/vayunmathur/health/data/VaccineCatalog.kt-- com/vayunmathur/health/domain/DoseSchedule.kt-- com/vayunmathur/health/domain/FhirAllergyCondition.kt+### domain/ — pure FHIR + dose schedule (no Android)+- com/vayunmathur/health/domain/FhirRecords.kt+- com/vayunmathur/health/domain/FhirObservations.kt+- com/vayunmathur/health/domain/FhirMedication.kt - com/vayunmathur/health/domain/FhirImmunization.kt+- com/vayunmathur/health/domain/FhirAllergyCondition.kt - com/vayunmathur/health/domain/FhirJson.kt-- com/vayunmathur/health/domain/FhirMedication.kt-- com/vayunmathur/health/domain/FhirObservations.kt-- com/vayunmathur/health/domain/FhirRecords.kt+- com/vayunmathur/health/domain/DoseSchedule.kt - com/vayunmathur/health/domain/SocialHistoryQuestions.kt-- com/vayunmathur/health/notifications/DoseNotification.kt-- com/vayunmathur/health/notifications/MedicationChannels.kt-- com/vayunmathur/health/platform/AttachmentStore.kt-- com/vayunmathur/health/platform/DoseActionReceiver.kt-- com/vayunmathur/health/platform/DoseReceiver.kt-- com/vayunmathur/health/platform/DoseReminderActivity.kt-- com/vayunmathur/health/platform/DoseScheduler.kt-- com/vayunmathur/health/platform/HealthBootReceiver.kt+### platform/ — ViewModel, medical ops, reminders+- com/vayunmathur/health/platform/MedicalViewModel.kt - com/vayunmathur/health/platform/MedicalClinicalOps.kt - com/vayunmathur/health/platform/MedicalImportOps.kt - com/vayunmathur/health/platform/MedicalMedicationOps.kt - com/vayunmathur/health/platform/MedicalProfileOps.kt - com/vayunmathur/health/platform/MedicalVaccinationOps.kt-- com/vayunmathur/health/platform/MedicalViewModel.kt - com/vayunmathur/health/platform/PersonalHealthRecords.kt+- com/vayunmathur/health/platform/AttachmentStore.kt+- com/vayunmathur/health/platform/DoseScheduler.kt+- com/vayunmathur/health/platform/DoseReceiver.kt+- com/vayunmathur/health/platform/DoseActionReceiver.kt+- com/vayunmathur/health/platform/DoseReminderActivity.kt+- com/vayunmathur/health/platform/HealthBootReceiver.kt+### notifications/ + service/ — channels and dose sound+- com/vayunmathur/health/notifications/DoseNotification.kt+- com/vayunmathur/health/notifications/MedicationChannels.kt - com/vayunmathur/health/service/DoseSoundService.kt-- com/vayunmathur/health/ui/AboutYouPage.kt+### util/ — food DB, sync worker, ViewModel (pending migration to closed roots)+- com/vayunmathur/health/util/HealthViewModel.kt+- com/vayunmathur/health/util/HealthUiContract.kt+- com/vayunmathur/health/util/HealthSyncWorker.kt+- com/vayunmathur/health/util/HealthAPI.kt+- com/vayunmathur/health/util/FoodDatabase.kt+- com/vayunmathur/health/util/FoodSearchAPI.kt+- com/vayunmathur/health/util/Utils.kt+### ui/ + ui/components/ — Today, records, charts, logging+- com/vayunmathur/health/ui/TodayPage.kt+- com/vayunmathur/health/ui/TodayHero.kt+- com/vayunmathur/health/ui/RecordsPage.kt+- com/vayunmathur/health/ui/BodyPage.kt+- com/vayunmathur/health/ui/SleepDetailsPage.kt+- com/vayunmathur/health/ui/ExerciseDetailsPage.kt+- com/vayunmathur/health/ui/NutritionPage.kt+- com/vayunmathur/health/ui/NutritionDetailsPage.kt+- com/vayunmathur/health/ui/FoodLoggingDialogs.kt+- com/vayunmathur/health/ui/FoodDatabaseCard.kt+- com/vayunmathur/health/ui/IngredientSearchDialog.kt+- com/vayunmathur/health/ui/IngredientQuantityDialog.kt+- com/vayunmathur/health/ui/RecipeEditorPage.kt+- com/vayunmathur/health/ui/RecipeManagementPage.kt+- com/vayunmathur/health/ui/MedicationPage.kt+- com/vayunmathur/health/ui/DoseReminderScreen.kt+- com/vayunmathur/health/ui/VaccinationsPage.kt+- com/vayunmathur/health/ui/AllergiesPage.kt - com/vayunmathur/health/ui/AddAllergyPage.kt+- com/vayunmathur/health/ui/ConditionsPage.kt - com/vayunmathur/health/ui/AddConditionPage.kt - com/vayunmathur/health/ui/AddLabResultPage.kt+- com/vayunmathur/health/ui/LabResultsPage.kt - com/vayunmathur/health/ui/AddMedicationPage.kt - com/vayunmathur/health/ui/AddVaccinationPage.kt-- com/vayunmathur/health/ui/AllergiesPage.kt+- com/vayunmathur/health/ui/AboutYouPage.kt+- com/vayunmathur/health/ui/CatalogPickerPage.kt+- com/vayunmathur/health/ui/BodyLoggingDialog.kt+- com/vayunmathur/health/ui/GenericLineChart.kt+- com/vayunmathur/health/ui/GenericBarChart.kt - com/vayunmathur/health/ui/BarChartDetails.kt - com/vayunmathur/health/ui/BarChartDetailsScreen.kt-- com/vayunmathur/health/ui/BodyLoggingDialog.kt-- com/vayunmathur/health/ui/BodyPage.kt-- com/vayunmathur/health/ui/CatalogPickerPage.kt - com/vayunmathur/health/ui/ChartAxes.kt-- com/vayunmathur/health/ui/ConditionsPage.kt-- com/vayunmathur/health/ui/DoseReminderScreen.kt-- com/vayunmathur/health/ui/ExerciseDetailsPage.kt-- com/vayunmathur/health/ui/FoodDatabaseCard.kt-- com/vayunmathur/health/ui/FoodLoggingDialogs.kt-- com/vayunmathur/health/ui/GenericBarChart.kt-- com/vayunmathur/health/ui/GenericLineChart.kt+- com/vayunmathur/health/ui/MetricChartHeader.kt+- com/vayunmathur/health/ui/MetricDashboardData.kt - com/vayunmathur/health/ui/HealthColors.kt - com/vayunmathur/health/ui/HealthFormat.kt - com/vayunmathur/health/ui/HealthMetricConfig.kt-- com/vayunmathur/health/ui/IngredientQuantityDialog.kt-- com/vayunmathur/health/ui/IngredientSearchDialog.kt-- com/vayunmathur/health/ui/LabResultsPage.kt-- com/vayunmathur/health/ui/MedicationPage.kt-- com/vayunmathur/health/ui/MetricChartHeader.kt-- com/vayunmathur/health/ui/MetricDashboardData.kt-- com/vayunmathur/health/ui/NutritionDetailsPage.kt-- com/vayunmathur/health/ui/NutritionPage.kt - com/vayunmathur/health/ui/PermissionsRationaleActivity.kt-- com/vayunmathur/health/ui/RecipeEditorPage.kt-- com/vayunmathur/health/ui/RecipeManagementPage.kt-- com/vayunmathur/health/ui/RecordsPage.kt-- com/vayunmathur/health/ui/SleepDetailsPage.kt-- com/vayunmathur/health/ui/TodayHero.kt-- com/vayunmathur/health/ui/TodayPage.kt-- com/vayunmathur/health/ui/VaccinationsPage.kt-- com/vayunmathur/health/ui/components/AnswerPickerDialog.kt-- com/vayunmathur/health/ui/components/AttachmentChip.kt - com/vayunmathur/health/ui/components/HealthComponents.kt - com/vayunmathur/health/ui/components/HealthHypnogram.kt+- com/vayunmathur/health/ui/components/AttachmentChip.kt - com/vayunmathur/health/ui/components/MedicalStorageNotice.kt - com/vayunmathur/health/ui/components/PickerField.kt - com/vayunmathur/health/ui/components/ScheduleSection.kt - com/vayunmathur/health/ui/components/SectionLabel.kt-- com/vayunmathur/health/util/FoodDatabase.kt-- com/vayunmathur/health/util/FoodSearchAPI.kt-- com/vayunmathur/health/util/HealthAPI.kt-- com/vayunmathur/health/util/HealthSyncWorker.kt-- com/vayunmathur/health/util/HealthUiContract.kt-- com/vayunmathur/health/util/HealthViewModel.kt-- com/vayunmathur/health/util/Utils.kt+- com/vayunmathur/health/ui/components/AnswerPickerDialog.kt ## Verify (this module only) ```@@ -106,5 +125,3 @@ _Install: ./install health (dev by default)._ ./gradlew :health:lint ./gradlew :health:checkMetadata ```--
keyboard/AGENTS.md
diff --git a/keyboard/AGENTS.md b/keyboard/AGENTS.mdindex 3762da6ff5..7dd0fd233e 100644--- a/keyboard/AGENTS.md+++ b/keyboard/AGENTS.md@@ -3,52 +3,68 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `keyboard/` + allowed shared modules. Do not root-scan. _Install: ./install keyboard (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :keyboard / dir: keyboard/ - Package roots present: ui, platform-- Entry files: MainActivity.kt-- Deps: +- Entry files: MainActivity.kt (settings/setup UI) + ime/KeyboardService.kt (the actual IME entry)+- Deps: (none — zero network permission by design) - Metadata: metadata_data/keyboard.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Private offline keyboard (IME) with Material You — no network permission at all, so keystrokes cannot leave the device.+**Key features:**+- Full IME (`KeyboardService`) with letters/symbols/function rows, key popups, adjustable height, suggestion strip+- CJK + Indic composition: Han (Pinyin), Kana, Hangul, Ethiopic composers over `TextBeforeCursor`+- Emoji pages + search, clipboard strip/page, voice-input strip (gated by a permission activity)+**Architecture / data-flow:** System binds `ime/KeyboardService` → `ime/KeyboardState` + `Composer` routespre-edit composition → `ui/` rows/pages render keys; `util/` holds layouts (Latin/Cyrillic/Other), dictionaries (incl. Pinyin), prefs, clipboard store. `MainActivity` is only the setup/settings UI, not the keyboard.+**Entry points + reading order:** `ime/KeyboardService.kt` → `ime/KeyboardState.kt` → `ime/Composer.kt` → `ui/KeyboardScreen.kt` → `util/KeyboardLayouts*.kt`.+**Gotchas:**+- `ime/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- No-network is a guarantee, not an accident — never add a network dep or permission here+- Voice input needs its own permission activity before the strip works -- com/vayunmathur/keyboard/MainActivity.kt+## Key files+### ime/ — service, state, composers (the real entry)+- com/vayunmathur/keyboard/ime/KeyboardService.kt — IME entry+- com/vayunmathur/keyboard/ime/KeyboardState.kt - com/vayunmathur/keyboard/ime/Composer.kt-- com/vayunmathur/keyboard/ime/EthiopicComposer.kt - com/vayunmathur/keyboard/ime/HanComposer.kt-- com/vayunmathur/keyboard/ime/HangulComposer.kt - com/vayunmathur/keyboard/ime/KanaComposers.kt-- com/vayunmathur/keyboard/ime/KeyboardService.kt-- com/vayunmathur/keyboard/ime/KeyboardState.kt+- com/vayunmathur/keyboard/ime/HangulComposer.kt+- com/vayunmathur/keyboard/ime/EthiopicComposer.kt - com/vayunmathur/keyboard/ime/TextBeforeCursor.kt+### platform/ — voice input - com/vayunmathur/keyboard/platform/VoiceInput.kt - com/vayunmathur/keyboard/platform/VoicePermissionActivity.kt-- com/vayunmathur/keyboard/ui/ClipboardPage.kt-- com/vayunmathur/keyboard/ui/ClipboardStrip.kt-- com/vayunmathur/keyboard/ui/EmojiPage.kt-- com/vayunmathur/keyboard/ui/EmojiSearch.kt-- com/vayunmathur/keyboard/ui/FunctionKeys.kt-- com/vayunmathur/keyboard/ui/KeyboardBottomRow.kt-- com/vayunmathur/keyboard/ui/KeyboardLetters.kt+### ui/ — rows, pages, setup+- com/vayunmathur/keyboard/MainActivity.kt — setup/settings only - com/vayunmathur/keyboard/ui/KeyboardScreen.kt+- com/vayunmathur/keyboard/ui/KeyboardLetters.kt - com/vayunmathur/keyboard/ui/KeyboardSymbolPages.kt+- com/vayunmathur/keyboard/ui/KeyboardBottomRow.kt+- com/vayunmathur/keyboard/ui/FunctionKeys.kt - com/vayunmathur/keyboard/ui/KeyButton.kt - com/vayunmathur/keyboard/ui/KeyPopups.kt-- com/vayunmathur/keyboard/ui/SetupScreen.kt - com/vayunmathur/keyboard/ui/SuggestionStrip.kt+- com/vayunmathur/keyboard/ui/EmojiPage.kt+- com/vayunmathur/keyboard/ui/EmojiSearch.kt+- com/vayunmathur/keyboard/ui/ClipboardPage.kt+- com/vayunmathur/keyboard/ui/ClipboardStrip.kt - com/vayunmathur/keyboard/ui/VoiceStrip.kt-- com/vayunmathur/keyboard/util/Clipboard.kt-- com/vayunmathur/keyboard/util/Dictionary.kt-- com/vayunmathur/keyboard/util/Emojis.kt+- com/vayunmathur/keyboard/ui/SetupScreen.kt+### util/ — layouts, dictionaries, prefs (pending migration to closed roots) - com/vayunmathur/keyboard/util/KeyboardLayout.kt - com/vayunmathur/keyboard/util/KeyboardLayouts.kt-- com/vayunmathur/keyboard/util/KeyboardLayoutsCyrillic.kt - com/vayunmathur/keyboard/util/KeyboardLayoutsLatin.kt+- com/vayunmathur/keyboard/util/KeyboardLayoutsCyrillic.kt - com/vayunmathur/keyboard/util/KeyboardLayoutsOther.kt-- com/vayunmathur/keyboard/util/KeyboardPrefs.kt - com/vayunmathur/keyboard/util/Layouts.kt+- com/vayunmathur/keyboard/util/Dictionary.kt - com/vayunmathur/keyboard/util/PinyinDictionary.kt+- com/vayunmathur/keyboard/util/Emojis.kt+- com/vayunmathur/keyboard/util/Clipboard.kt+- com/vayunmathur/keyboard/util/KeyboardPrefs.kt ## Verify (this module only) ```@@ -56,5 +72,3 @@ _Install: ./install keyboard (dev by default)._ ./gradlew :keyboard:lint ./gradlew :keyboard:checkMetadata ```--
music/AGENTS.md
diff --git a/music/AGENTS.md b/music/AGENTS.mdindex 14d297d13b..e82145ad5e 100644--- a/music/AGENTS.md+++ b/music/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `music/` + allowed shared modules. Do not root-scan. _Install: ./install music (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :music / dir: music/ - Package roots present: ui, data, platform, intents, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,55 +11,72 @@ _Install: ./install music (dev by default)._ - Metadata: metadata_data/music.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline M3Y music player — local library by song/album/artist/playlist, synced lyrics from file tags, Cast to TV, Android Auto. No network permission at all.+**Key features:**+- Library scan into Room (`Music`/`Album`/`Artist`/`Playlist`) with `SyncWorker`; now-playing + queue + shuffle, wide-layout player+- Embedded + synced lyrics views; playlist CRUD dialogs; audio-preview + play/search assistant intents+- Playback in `service/PlaybackService` (local) / `CastingPlayer` (remote via `:sdk:cast`); `MusicLibraryTree` exposes the Auto tree+**Architecture / data-flow:** `ui/` tabs + now-playing → `platform/MusicViewModel` (+ `MusicUiContract`) + `platform/PlaybackManager` → `data/MusicRepository` over Room + `service/PlaybackService`; `platform/CastPlayback` + `service/CastQueue` take over when casting.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/MusicTabsScreen.kt` → `platform/PlaybackManager.kt` → `service/PlaybackService.kt` → `data/MusicRepository.kt`.+**Gotchas:**+- Playback state lives in the service, not the ViewModel — UI binds, never owns+- Cast and local are separate player paths sharing one queue model; test handoff, not just each side +## Key files+### Root — entry + navigation - com/vayunmathur/music/MainActivity.kt - com/vayunmathur/music/Navigation.kt - com/vayunmathur/music/Route.kt-- com/vayunmathur/music/data/Album.kt-- com/vayunmathur/music/data/Artist.kt-- com/vayunmathur/music/data/Music.kt+### data/ — Room library - com/vayunmathur/music/data/MusicDatabase.kt - com/vayunmathur/music/data/MusicRepository.kt+- com/vayunmathur/music/data/Music.kt+- com/vayunmathur/music/data/Album.kt+- com/vayunmathur/music/data/Artist.kt - com/vayunmathur/music/data/Playlist.kt-- com/vayunmathur/music/intents/AudioPreviewActivity.kt-- com/vayunmathur/music/intents/PlayIntent.kt-- com/vayunmathur/music/intents/SearchIntent.kt-- com/vayunmathur/music/platform/CastPlayback.kt-- com/vayunmathur/music/platform/EmbeddedLyrics.kt-- com/vayunmathur/music/platform/Lyrics.kt-- com/vayunmathur/music/platform/MusicUiContract.kt+### platform/ — ViewModel, playback glue, lyrics - com/vayunmathur/music/platform/MusicViewModel.kt+- com/vayunmathur/music/platform/MusicUiContract.kt - com/vayunmathur/music/platform/PlaybackManager.kt+- com/vayunmathur/music/platform/CastPlayback.kt+- com/vayunmathur/music/platform/Lyrics.kt+- com/vayunmathur/music/platform/EmbeddedLyrics.kt - com/vayunmathur/music/platform/SyncWorker.kt - com/vayunmathur/music/platform/Util.kt+### service/ — playback + Auto tree + cast queue+- com/vayunmathur/music/service/PlaybackService.kt+- com/vayunmathur/music/service/MusicLibraryTree.kt - com/vayunmathur/music/service/CastingPlayer.kt - com/vayunmathur/music/service/CastQueue.kt-- com/vayunmathur/music/service/MusicLibraryTree.kt-- com/vayunmathur/music/service/PlaybackService.kt-- com/vayunmathur/music/ui/AlbumDetailContent.kt-- com/vayunmathur/music/ui/AlbumDetailScreen.kt+### intents/ — assistant playback IPC+- com/vayunmathur/music/intents/PlayIntent.kt+- com/vayunmathur/music/intents/SearchIntent.kt+- com/vayunmathur/music/intents/AudioPreviewActivity.kt+### ui/ + ui/components/ + ui/dialogs/ — library, player, playlists+- com/vayunmathur/music/ui/MusicTabsScreen.kt+- com/vayunmathur/music/ui/HomeScreen.kt+- com/vayunmathur/music/ui/SongsScreen.kt+- com/vayunmathur/music/ui/SongScreen.kt - com/vayunmathur/music/ui/AlbumScreen.kt-- com/vayunmathur/music/ui/ArtistDetailScreen.kt+- com/vayunmathur/music/ui/AlbumDetailScreen.kt+- com/vayunmathur/music/ui/AlbumDetailContent.kt - com/vayunmathur/music/ui/ArtistScreen.kt-- com/vayunmathur/music/ui/HomeScreen.kt-- com/vayunmathur/music/ui/LyricsView.kt-- com/vayunmathur/music/ui/MusicTabsScreen.kt+- com/vayunmathur/music/ui/ArtistDetailScreen.kt+- com/vayunmathur/music/ui/PlaylistScreen.kt+- com/vayunmathur/music/ui/PlaylistDetailScreen.kt+- com/vayunmathur/music/ui/NowPlayingScreen.kt - com/vayunmathur/music/ui/NowPlayingColumn.kt - com/vayunmathur/music/ui/NowPlayingQueue.kt-- com/vayunmathur/music/ui/NowPlayingScreen.kt - com/vayunmathur/music/ui/NowPlayingWideLayout.kt-- com/vayunmathur/music/ui/PlaylistDetailScreen.kt-- com/vayunmathur/music/ui/PlaylistScreen.kt-- com/vayunmathur/music/ui/SongScreen.kt-- com/vayunmathur/music/ui/SongsScreen.kt-- com/vayunmathur/music/ui/components/AddToPlaylistButton.kt-- com/vayunmathur/music/ui/components/MusicTabsBar.kt-- com/vayunmathur/music/ui/components/NewPlaylistFab.kt+- com/vayunmathur/music/ui/LyricsView.kt - com/vayunmathur/music/ui/components/NowPlayingBar.kt - com/vayunmathur/music/ui/components/PlayingBottomBar.kt - com/vayunmathur/music/ui/components/PlayShuffleRow.kt - com/vayunmathur/music/ui/components/ShufflePlayFab.kt+- com/vayunmathur/music/ui/components/NewPlaylistFab.kt+- com/vayunmathur/music/ui/components/AddToPlaylistButton.kt+- com/vayunmathur/music/ui/components/MusicTabsBar.kt - com/vayunmathur/music/ui/components/TrackListItem.kt - com/vayunmathur/music/ui/dialogs/AddToPlaylistDialog.kt - com/vayunmathur/music/ui/dialogs/CreatePlaylistDialog.kt@@ -70,5 +87,3 @@ _Install: ./install music (dev by default)._ ./gradlew :music:lint ./gradlew :music:checkMetadata ```--
passwords/AGENTS.md
diff --git a/passwords/AGENTS.md b/passwords/AGENTS.mdindex f2654e7f1a..0465481c13 100644--- a/passwords/AGENTS.md+++ b/passwords/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `passwords/` + allowed shared modules. Do not root-scan. _Install: ./install passwords (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :passwords / dir: passwords/ - Package roots present: ui, data, domain, platform, sync - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,68 +11,88 @@ _Install: ./install passwords (dev by default)._ - Metadata: metadata_data/passwords.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline password manager + passkey provider + autofill service + FIDO caBLE security key, with KDBX-file sync. Vault encrypts behind biometric keys.+**Key features:**+- Passwords + TOTP with domain-match fill; imports from Bitwarden/Chrome/Firefox/LastPass/1Password/Dashlane+- Passkeys as an Android credential provider (`PasskeyCredentialService`, `PasskeyEntries`); autofill via `PasswordAutofillService`+- KDBX sync to a user-chosen file (`KdbxSyncEngine` + scheduler/worker over the Rust KDBX core); caBLE tunnel turns the phone into a desktop security key (only network use)+**Architecture / data-flow:** `ui/` vault + passkey + settings → `platform/PasswordsViewModel` → `data/PasswordRepository` over SQLCipher Room (`Password`/`Passkey`/`SyncSnapshot`); `domain/` holds pure credential logic (CBOR, merge, TOTP, domain-match); composition stays locked (`MaFragmentActivity`, `autoSetContent=false`) until the biometric gate passes; everysync relays vault snapshots via `sync/EntryMapper`.+**Entry points + reading order:** `Route` → `MainActivity.kt` (biometric gate first) → `Navigation.kt` → `platform/PasswordsViewModel.kt` → `data/PasswordRepository.kt` → `sync/KdbxSyncEngine.kt`.+**Gotchas:**+- Biometric-gated `MaFragmentActivity` pattern (shared with photos): never render vault content before unlock succeeds+- caBLE is a full FIDO stack (`platform/cable/` Noise/P-256/CTAP) — touch it only with the spec beside you+- KDBX crypto runs in Rust (`util/KdbxNative`); Kotlin side is orchestration only -- com/vayunmathur/passwords/MainActivity.kt+## Key files+### Root — entry + navigation+- com/vayunmathur/passwords/MainActivity.kt — biometric gate before composition - com/vayunmathur/passwords/Navigation.kt - com/vayunmathur/passwords/Route.kt-- com/vayunmathur/passwords/data/Converters.kt-- com/vayunmathur/passwords/data/Passkey.kt-- com/vayunmathur/passwords/data/PasskeyStore.kt-- com/vayunmathur/passwords/data/Password.kt+### data/ — encrypted Room vault - com/vayunmathur/passwords/data/PasswordDatabase.kt - com/vayunmathur/passwords/data/PasswordRepository.kt+- com/vayunmathur/passwords/data/Password.kt+- com/vayunmathur/passwords/data/Passkey.kt+- com/vayunmathur/passwords/data/PasskeyStore.kt+- com/vayunmathur/passwords/data/Converters.kt - com/vayunmathur/passwords/data/SyncSnapshot.kt - com/vayunmathur/passwords/data/SyncSnapshotDao.kt-- com/vayunmathur/passwords/domain/Cbor.kt+### domain/ — pure credential logic (no Android) - com/vayunmathur/passwords/domain/CredentialMerge.kt - com/vayunmathur/passwords/domain/DomainMatch.kt+- com/vayunmathur/passwords/domain/TOTP.kt+- com/vayunmathur/passwords/domain/Cbor.kt - com/vayunmathur/passwords/domain/ImportSource.kt - com/vayunmathur/passwords/domain/PasskeyLink.kt-- com/vayunmathur/passwords/domain/TOTP.kt-- com/vayunmathur/passwords/platform/AppBackupAgent.kt-- com/vayunmathur/passwords/platform/KdbxBackupFormat.kt+### platform/ — ViewModel, autofill, passkeys, backup+- com/vayunmathur/passwords/platform/PasswordsViewModel.kt+- com/vayunmathur/passwords/platform/PasswordsUiContract.kt+- com/vayunmathur/passwords/platform/PasswordAutofillService.kt - com/vayunmathur/passwords/platform/PasskeyCredentialService.kt - com/vayunmathur/passwords/platform/PasskeyEntries.kt - com/vayunmathur/passwords/platform/PasskeyUtils.kt-- com/vayunmathur/passwords/platform/PasswordAutofillService.kt-- com/vayunmathur/passwords/platform/PasswordsUiContract.kt-- com/vayunmathur/passwords/platform/PasswordsViewModel.kt+- com/vayunmathur/passwords/platform/AppBackupAgent.kt+- com/vayunmathur/passwords/platform/KdbxBackupFormat.kt+### platform/cable/ — FIDO caBLE security-key stack - com/vayunmathur/passwords/platform/cable/CableActivity.kt-- com/vayunmathur/passwords/platform/cable/CableAdvertiser.kt-- com/vayunmathur/passwords/platform/cable/CableEid.kt-- com/vayunmathur/passwords/platform/cable/CableKeys.kt-- com/vayunmathur/passwords/platform/cable/CableQr.kt - com/vayunmathur/passwords/platform/cable/CableService.kt - com/vayunmathur/passwords/platform/cable/CableSession.kt - com/vayunmathur/passwords/platform/cable/CableTunnel.kt-- com/vayunmathur/passwords/platform/cable/CborReader.kt+- com/vayunmathur/passwords/platform/cable/CableAdvertiser.kt+- com/vayunmathur/passwords/platform/cable/CableQr.kt+- com/vayunmathur/passwords/platform/cable/CableEid.kt+- com/vayunmathur/passwords/platform/cable/CableKeys.kt - com/vayunmathur/passwords/platform/cable/Crypter.kt-- com/vayunmathur/passwords/platform/cable/Ctap.kt-- com/vayunmathur/passwords/platform/cable/CtapProcessor.kt - com/vayunmathur/passwords/platform/cable/Noise.kt - com/vayunmathur/passwords/platform/cable/P256.kt+- com/vayunmathur/passwords/platform/cable/Ctap.kt+- com/vayunmathur/passwords/platform/cable/CtapProcessor.kt+- com/vayunmathur/passwords/platform/cable/CborReader.kt - com/vayunmathur/passwords/platform/cable/TunnelDomains.kt - com/vayunmathur/passwords/platform/cable/WebAuthnAuthenticator.kt-- com/vayunmathur/passwords/sync/EntryMapper.kt-- com/vayunmathur/passwords/sync/KdbxPasswordHelper.kt+### sync/ — KDBX file sync + relay mapping - com/vayunmathur/passwords/sync/KdbxSyncEngine.kt - com/vayunmathur/passwords/sync/KdbxSyncScheduler.kt-- com/vayunmathur/passwords/sync/KdbxSyncSettings.kt - com/vayunmathur/passwords/sync/KdbxSyncWorker.kt-- com/vayunmathur/passwords/ui/AutofillSettingsActivity.kt-- com/vayunmathur/passwords/ui/MenuPage.kt-- com/vayunmathur/passwords/ui/MenuScreen.kt-- com/vayunmathur/passwords/ui/PasskeyAuthActivity.kt-- com/vayunmathur/passwords/ui/PasskeyLinkDialog.kt-- com/vayunmathur/passwords/ui/PasskeyPage.kt-- com/vayunmathur/passwords/ui/PasswordEditPage.kt-- com/vayunmathur/passwords/ui/PasswordEditScreen.kt-- com/vayunmathur/passwords/ui/PasswordPage.kt+- com/vayunmathur/passwords/sync/KdbxSyncSettings.kt+- com/vayunmathur/passwords/sync/KdbxPasswordHelper.kt+- com/vayunmathur/passwords/sync/EntryMapper.kt — everysync relay mapping+### util/ — Rust KDBX bridge+- com/vayunmathur/passwords/util/KdbxNative.kt — JNI bridge, orchestration only in Kotlin+### ui/ — vault, passkeys, settings - com/vayunmathur/passwords/ui/PasswordScreen.kt+- com/vayunmathur/passwords/ui/PasswordPage.kt+- com/vayunmathur/passwords/ui/PasswordEditScreen.kt+- com/vayunmathur/passwords/ui/PasswordEditPage.kt - com/vayunmathur/passwords/ui/PasswordScreenSection.kt+- com/vayunmathur/passwords/ui/PasskeyPage.kt+- com/vayunmathur/passwords/ui/PasskeyAuthActivity.kt+- com/vayunmathur/passwords/ui/PasskeyLinkDialog.kt+- com/vayunmathur/passwords/ui/MenuScreen.kt+- com/vayunmathur/passwords/ui/MenuPage.kt - com/vayunmathur/passwords/ui/SettingsPage.kt-- com/vayunmathur/passwords/util/KdbxNative.kt+- com/vayunmathur/passwords/ui/AutofillSettingsActivity.kt ## Verify (this module only) ```@@ -80,5 +100,3 @@ _Install: ./install passwords (dev by default)._ ./gradlew :passwords:lint ./gradlew :passwords:checkMetadata ```--
share/AGENTS.md
diff --git a/share/AGENTS.md b/share/AGENTS.mdindex c09415c8ce..9858063f8e 100644--- a/share/AGENTS.md+++ b/share/AGENTS.md@@ -3,38 +3,56 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `share/` + allowed shared modules. Do not root-scan. _Install: ./install share (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :share / dir: share/ - Package roots present: ui, domain, platform, network-- Entry files: MainActivity.kt, Route.kt, Navigation.kt-- Deps: +- Entry files: MainActivity.kt, Route.kt, Navigation.kt + SharePopupActivity.kt (share-sheet entry)+- Deps: (none declared — raw TCP/BLE transports, Rust protocol core) - Metadata: metadata_data/share.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline Quick Share-compatible nearby file transfer — real protocol interop with stock Android, E2EE via UKEY2, device-to-device with no server.+**Key features:**+- Send from the system share sheet (`SharePopupActivity` → `SharePopupSheet`); discovery over BLE + NSD mDNS+- Encrypted TCP transport (`TcpTransport`, Rust `ShareNative` protocol core); receive with the app closed (Quick Settings tile + boot-gated controller)+- Received files stay app-private in `ReceivedFileStore` until the user saves/shares them+**Architecture / data-flow:** Send: share intent → popup → `ShareViewModel` → discovery managers → `ShareTransferService` → `TcpTransport`. Receive: tile/boot → `ShareReceiveController` → `PostGate` → notifier → `ShareSaveActivity`. `domain/protocol/ShareSession` models the handshake; `protocol/ShareNative` is the Rust JNI bridge.+**Entry points + reading order:** `SharePopupActivity.kt` (send) / `platform/receive/ShareReceiveController.kt` (receive) → `Route` → `Navigation.kt` → `platform/ShareViewModel.kt` → `domain/protocol/ShareSession.kt`.+**Gotchas:**+- `protocol/` is NOT a closed package root — pending migration; don't add more files there+- Protocol interop with stock Android is version-sensitive — changes need cross-device testing, not just unit tests+- Receive path must work with the app closed; never assume an Activity context there +## Key files+### Root — UI entry + share-sheet entry - com/vayunmathur/share/MainActivity.kt - com/vayunmathur/share/Navigation.kt - com/vayunmathur/share/Route.kt-- com/vayunmathur/share/SharePopupActivity.kt+- com/vayunmathur/share/SharePopupActivity.kt — share-sheet entry+### domain/protocol/ — session model - com/vayunmathur/share/domain/protocol/ShareSession.kt+### network/transport/ — encrypted TCP - com/vayunmathur/share/network/transport/TcpTransport.kt-- com/vayunmathur/share/platform/ReceivedFileStore.kt-- com/vayunmathur/share/platform/SharePermissions.kt-- com/vayunmathur/share/platform/ShareUiContract.kt+### platform/ — ViewModel, permissions, receive pipeline - com/vayunmathur/share/platform/ShareViewModel.kt+- com/vayunmathur/share/platform/ShareUiContract.kt+- com/vayunmathur/share/platform/SharePermissions.kt+- com/vayunmathur/share/platform/ReceivedFileStore.kt - com/vayunmathur/share/platform/discovery/BleDiscoveryManager.kt-- com/vayunmathur/share/platform/discovery/NearbyDevice.kt - com/vayunmathur/share/platform/discovery/NsdDiscoveryManager.kt-- com/vayunmathur/share/platform/receive/PostGate.kt-- com/vayunmathur/share/platform/receive/ShareBootReceiver.kt-- com/vayunmathur/share/platform/receive/ShareNotificationReceiver.kt+- com/vayunmathur/share/platform/discovery/NearbyDevice.kt - com/vayunmathur/share/platform/receive/ShareReceiveController.kt+- com/vayunmathur/share/platform/receive/PostGate.kt - com/vayunmathur/share/platform/receive/ShareReceiveNotifier.kt-- com/vayunmathur/share/platform/receive/ShareReceiveTileService.kt+- com/vayunmathur/share/platform/receive/ShareNotificationReceiver.kt - com/vayunmathur/share/platform/receive/ShareSaveActivity.kt+- com/vayunmathur/share/platform/receive/ShareBootReceiver.kt+- com/vayunmathur/share/platform/receive/ShareReceiveTileService.kt - com/vayunmathur/share/platform/transfer/ShareTransferService.kt+### protocol/ — Rust bridge (pending migration to closed roots) - com/vayunmathur/share/protocol/ShareNative.kt+### ui/ — popup sheet + send screen - com/vayunmathur/share/ui/SharePopupSheet.kt - com/vayunmathur/share/ui/ShareSendScreen.kt @@ -44,5 +62,3 @@ _Install: ./install share (dev by default)._ ./gradlew :share:lint ./gradlew :share:checkMetadata ```--
speech/AGENTS.md
diff --git a/speech/AGENTS.md b/speech/AGENTS.mdindex 518a55db23..e2bba6c8a5 100644--- a/speech/AGENTS.md+++ b/speech/AGENTS.md@@ -3,28 +3,45 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `speech/` + allowed shared modules. Do not root-scan. _Install: ./install speech (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :speech / dir: speech/ - Package roots present: domain, platform, service-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (demo/settings UI) + service/WhisperRecognitionService.kt + service/SupertonicTtsService.kt (system service entries) - Deps: :library:ml, :library:downloadservice - Metadata: metadata_data/speech.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Fully offline speech-to-text (Whisper) + text-to-speech (Supertonic) that also serves as the system `SpeechRecognizer` and TTS engine. All models ship in-app; works on clean install.+**Key features:**+- Whisper-base STT bundled, GPU-accelerated via the repo compute runtime (`:library:ml`); `WhisperRecognitionService` answers system recognition requests+- Supertonic 3 TTS, 10 voices × 31 languages (`SupertonicVoices` catalog); `SupertonicTtsService` answers system synthesis requests+- `MainActivity` is only a demo/settings surface — the services are the product+**Architecture / data-flow:** System binds `service/` endpoints → `util/WhisperEngine` (+ features/tokenizer/model) or `platform/SupertonicEngine` (+ `SupertonicModel`) → `:library:ml` GPU runtime; large assets ship bundled (`:library:downloadservice` only for updates/verification paths).+**Entry points + reading order:** `service/WhisperRecognitionService.kt` / `service/SupertonicTtsService.kt` → `util/WhisperEngine.kt` / `platform/SupertonicEngine.kt` → `domain/SupertonicVoices.kt` → `MainActivity.kt` (demo UI).+**Gotchas:**+- `tts/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- Model files are large — asset/download changes need size + first-install testing, not just unit tests+- System-service contracts (recognition/TTS callbacks) are version-sensitive; keep the service surface stable -- com/vayunmathur/speech/MainActivity.kt-- com/vayunmathur/speech/domain/SupertonicVoices.kt-- com/vayunmathur/speech/platform/SupertonicEngine.kt-- com/vayunmathur/speech/platform/SupertonicModel.kt-- com/vayunmathur/speech/service/SupertonicTtsService.kt+## Key files+### service/ — system entries (the product) - com/vayunmathur/speech/service/WhisperRecognitionService.kt-- com/vayunmathur/speech/tts/CheckVoiceDataActivity.kt-- com/vayunmathur/speech/util/SpeechUiContract.kt+- com/vayunmathur/speech/service/SupertonicTtsService.kt+### util/ — Whisper stack (pending migration to closed roots) - com/vayunmathur/speech/util/WhisperEngine.kt-- com/vayunmathur/speech/util/WhisperFeatures.kt - com/vayunmathur/speech/util/WhisperModel.kt+- com/vayunmathur/speech/util/WhisperFeatures.kt - com/vayunmathur/speech/util/WhisperTokenizer.kt+- com/vayunmathur/speech/util/SpeechUiContract.kt+### platform/ + domain/ — Supertonic stack+- com/vayunmathur/speech/platform/SupertonicEngine.kt+- com/vayunmathur/speech/platform/SupertonicModel.kt+- com/vayunmathur/speech/domain/SupertonicVoices.kt+### tts/ — voice-data check (pending migration to closed roots)+- com/vayunmathur/speech/tts/CheckVoiceDataActivity.kt+### Root — demo UI only+- com/vayunmathur/speech/MainActivity.kt ## Verify (this module only) ```@@ -32,5 +49,3 @@ _Install: ./install speech (dev by default)._ ./gradlew :speech:lint ./gradlew :speech:checkMetadata ```--
translate/AGENTS.md
diff --git a/translate/AGENTS.md b/translate/AGENTS.mdindex ae0bf51f36..9b8c1ea1e1 100644--- a/translate/AGENTS.md+++ b/translate/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `translate/` + allowed shared modules. Do not root-scan. _Install: ./install translate (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :translate / dir: translate/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,30 +11,45 @@ _Install: ./install translate (dev by default)._ - Metadata: metadata_data/translate.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Fully offline translator (NLLB-200, 202 languages) with camera OCR overlay, speech input, TTS output, and selection-menu translation from any app. Internet only for one-time SHA-256-verified model downloads.+**Key features:**+- Text translation over the on-device NLLB engine (`NllbTranslator` + `NllbModel`); language catalog + recents in `domain/`+- Camera mode: `CameraPreviewLayer` + `CameraOverlay` over `:library:ocr`; speech in via `SpeechRecognizerEngine`, spoken output via `TtsSpeaker`+- History + persistent settings (`data/TranslateSettings`); translation available from the system selection menu+**Architecture / data-flow:** `ui/` text/camera/language pages → `platform/TranslateViewModel` (+ `TranslateUiContract`) → `domain/TranslationEngine` → `platform/NllbTranslator` on the `:library:ml` runtime; models fetched once via `:library:downloadservice` and hash-verified before first use.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/TextTranslateScreen.kt` → `platform/TranslateViewModel.kt` → `domain/TranslationEngine.kt` → `platform/NllbTranslator.kt`.+**Gotchas:**+- First run without downloaded models must degrade gracefully — never assume the NLLB weights exist+- Camera overlay coordinates must track preview rotation; test on rotation, not just portrait +## Key files+### Root — entry + navigation - com/vayunmathur/translate/MainActivity.kt - com/vayunmathur/translate/Navigation.kt - com/vayunmathur/translate/Route.kt+### data/ + domain/ — settings, languages, engine contract - com/vayunmathur/translate/data/TranslateSettings.kt+- com/vayunmathur/translate/domain/TranslationEngine.kt - com/vayunmathur/translate/domain/Languages.kt - com/vayunmathur/translate/domain/RecentLanguages.kt-- com/vayunmathur/translate/domain/TranslationEngine.kt-- com/vayunmathur/translate/platform/NllbModel.kt+### platform/ — ViewModel, NLLB, speech, TTS+- com/vayunmathur/translate/platform/TranslateViewModel.kt+- com/vayunmathur/translate/platform/TranslateUiContract.kt - com/vayunmathur/translate/platform/NllbTranslator.kt+- com/vayunmathur/translate/platform/NllbModel.kt - com/vayunmathur/translate/platform/SpeechRecognizerEngine.kt-- com/vayunmathur/translate/platform/TranslateUiContract.kt-- com/vayunmathur/translate/platform/TranslateViewModel.kt - com/vayunmathur/translate/platform/TtsSpeaker.kt+### ui/ — text, camera, picker+- com/vayunmathur/translate/ui/TextTranslateScreen.kt+- com/vayunmathur/translate/ui/TextTranslatePage.kt+- com/vayunmathur/translate/ui/CameraTranslateScreen.kt+- com/vayunmathur/translate/ui/CameraPreviewLayer.kt+- com/vayunmathur/translate/ui/CameraOverlay.kt - com/vayunmathur/translate/ui/CameraBinding.kt - com/vayunmathur/translate/ui/CameraFrameUtils.kt-- com/vayunmathur/translate/ui/CameraOverlay.kt-- com/vayunmathur/translate/ui/CameraPreviewLayer.kt-- com/vayunmathur/translate/ui/CameraTranslateScreen.kt-- com/vayunmathur/translate/ui/LanguagePickerPage.kt - com/vayunmathur/translate/ui/LanguagePickerScreen.kt-- com/vayunmathur/translate/ui/TextTranslatePage.kt-- com/vayunmathur/translate/ui/TextTranslateScreen.kt+- com/vayunmathur/translate/ui/LanguagePickerPage.kt ## Verify (this module only) ```@@ -42,5 +57,3 @@ _Install: ./install translate (dev by default)._ ./gradlew :translate:lint ./gradlew :translate:checkMetadata ```--
vpn/AGENTS.md
diff --git a/vpn/AGENTS.md b/vpn/AGENTS.mdindex 746d0f2160..cc6f9acb5d 100644--- a/vpn/AGENTS.md+++ b/vpn/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `vpn/` + allowed shared modules. Do not root-scan. _Install: ./install vpn (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :vpn / dir: vpn/ - Package roots present: ui, data, platform, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,34 +11,52 @@ _Install: ./install vpn (dev by default)._ - Metadata: metadata_data/vpn.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline-first WireGuard VPN client — user-imported configs, per-app bypass, connection logging. Tunnel crypto runs in a native Rust library.+**Key features:**+- WireGuard configs (manual import) with connect/disconnect via `service/VpnTunnelService`+- Per-app bypass list (`platform/BypassList` + `BypassListPage`); SNI parsing + packet inspection + DNS cache in `service/`+- Connection log persisted in Room; Material You UI+**Architecture / data-flow:** `ui/` config list/detail + logging → `platform/VpnViewModel` → `data/VpnRepository` over Room (`VpnConfig`, connection-log entities); tunnel control goes ViewModel → `service/VpnTunnelService` → Rust core via `util/VpnNative` JNI bridge; `service/ConnectionTracker` feeds the log.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/ConfigListPage.kt` → `platform/VpnViewModel.kt` → `service/VpnTunnelService.kt` → `util/VpnNative.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — pending migration; don't add more files there+- Tunnel state lives in the service + Rust core — UI reflects, never drives; reconnect races come from driving twice+- VPN permission + always-on/blocking modes are system-mediated; test grant/revoke, not just in-app toggles +## Key files+### Root — entry + navigation - com/vayunmathur/vpn/MainActivity.kt - com/vayunmathur/vpn/Navigation.kt - com/vayunmathur/vpn/Route.kt-- com/vayunmathur/vpn/data/ConnectionLogDao.kt-- com/vayunmathur/vpn/data/ConnectionLogEntity.kt-- com/vayunmathur/vpn/data/VpnConfig.kt+### data/ — configs + connection log (Room) - com/vayunmathur/vpn/data/VpnDatabase.kt - com/vayunmathur/vpn/data/VpnRepository.kt-- com/vayunmathur/vpn/platform/BypassList.kt+- com/vayunmathur/vpn/data/VpnConfig.kt+- com/vayunmathur/vpn/data/ConnectionLogDao.kt+- com/vayunmathur/vpn/data/ConnectionLogEntity.kt+### platform/ — ViewModel + bypass - com/vayunmathur/vpn/platform/VpnViewModel.kt-- com/vayunmathur/vpn/service/AppResolver.kt+- com/vayunmathur/vpn/platform/BypassList.kt+### service/ — tunnel, inspection, tracking+- com/vayunmathur/vpn/service/VpnTunnelService.kt - com/vayunmathur/vpn/service/ConnectionTracker.kt-- com/vayunmathur/vpn/service/DnsCache.kt - com/vayunmathur/vpn/service/PacketInspector.kt - com/vayunmathur/vpn/service/SniParser.kt-- com/vayunmathur/vpn/service/VpnTunnelService.kt-- com/vayunmathur/vpn/ui/BypassListPage.kt-- com/vayunmathur/vpn/ui/ConfigDetailPage.kt-- com/vayunmathur/vpn/ui/ConfigListContent.kt+- com/vayunmathur/vpn/service/DnsCache.kt+- com/vayunmathur/vpn/service/AppResolver.kt+### util/ — Rust bridge (pending migration to closed roots)+- com/vayunmathur/vpn/util/VpnNative.kt — JNI bridge into the WireGuard core+### ui/ + ui/components/ — configs, bypass, logging+- com/vayunmathur/vpn/ui/VpnTabs.kt - com/vayunmathur/vpn/ui/ConfigListPage.kt-- com/vayunmathur/vpn/ui/LoggingContent.kt+- com/vayunmathur/vpn/ui/ConfigListContent.kt+- com/vayunmathur/vpn/ui/ConfigDetailPage.kt+- com/vayunmathur/vpn/ui/BypassListPage.kt - com/vayunmathur/vpn/ui/LoggingPage.kt+- com/vayunmathur/vpn/ui/LoggingContent.kt - com/vayunmathur/vpn/ui/SettingsPage.kt-- com/vayunmathur/vpn/ui/VpnTabs.kt - com/vayunmathur/vpn/ui/components/BypassHelpers.kt-- com/vayunmathur/vpn/util/VpnNative.kt ## Verify (this module only) ```@@ -46,5 +64,3 @@ _Install: ./install vpn (dev by default)._ ./gradlew :vpn:lint ./gradlew :vpn:checkMetadata ```--
weather/AGENTS.md
diff --git a/weather/AGENTS.md b/weather/AGENTS.mdindex d1fed02585..6991764aed 100644--- a/weather/AGENTS.md+++ b/weather/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `weather/` + allowed shared modules. Do not root-scan. _Install: ./install weather (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :weather / dir: weather/ - Package roots present: ui, data, domain, platform, network, intents, widget - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,79 +11,100 @@ _Install: ./install weather (dev by default)._ - Metadata: metadata_data/weather.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Material You weather — Open-Meteo hourly/daily forecasts, air-quality/UV/pollen/humidity/pressure/wind/visibility blocks, map layers, Glance widgets, assistant intents.+**Key features:**+- Saved locations + device location (reverse-geocoded) with Room-cached forecasts refreshed by `WeatherRefreshWorker`+- Metric blocks + graphs per location; Open-Meteo vector map tiles via the Rust core (`domain/map/OmTilesNative`)+- Two Glance widgets (standard + blob); `GetWeather`/`GetWeatherByName` assistant intents+**Architecture / data-flow:** `ui/` home/map/locations → `platform/WeatherViewModel` (+ `WeatherUiContract`) → `data/WeatherRepository` over Room + `network/WeatherApi` DTOs; `domain/` holds pure unit/metric/WMO formatting + map metadata; widgets read the same repository snapshot.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/HomePage.kt` → `platform/WeatherViewModel.kt` → `data/WeatherRepository.kt` → `network/WeatherApi.kt`.+**Gotchas:**+- Unit system follows the device locale (`platform/SystemUnits`) — format in `domain/`, never in `ui/`+- Map tiles are native-rendered Open-Meteo domains; tile bugs live in Rust or `domain/map/`, not the Compose layer+- Widgets must render from cache alone — never network on the widget path +## Key files+### Root — entry + navigation - com/vayunmathur/weather/MainActivity.kt - com/vayunmathur/weather/Navigation.kt - com/vayunmathur/weather/Route.kt-- com/vayunmathur/weather/data/SavedLocation.kt+### data/ — cache + repository + refresh+- com/vayunmathur/weather/data/WeatherDatabase.kt+- com/vayunmathur/weather/data/WeatherRepository.kt+- com/vayunmathur/weather/data/WeatherDao.kt - com/vayunmathur/weather/data/WeatherCache.kt - com/vayunmathur/weather/data/WeatherCacheStore.kt-- com/vayunmathur/weather/data/WeatherDao.kt-- com/vayunmathur/weather/data/WeatherDatabase.kt - com/vayunmathur/weather/data/WeatherRefreshWorker.kt-- com/vayunmathur/weather/data/WeatherRepository.kt+- com/vayunmathur/weather/data/SavedLocation.kt+### domain/ + domain/map/ — pure formatting + map metadata (no Android)+- com/vayunmathur/weather/domain/WmoCode.kt+- com/vayunmathur/weather/domain/UnitFormat.kt - com/vayunmathur/weather/domain/DateTimeFormat.kt - com/vayunmathur/weather/domain/MetricSeries.kt - com/vayunmathur/weather/domain/SelectedData.kt - com/vayunmathur/weather/domain/SelectedDateOrTime.kt-- com/vayunmathur/weather/domain/UnitFormat.kt-- com/vayunmathur/weather/domain/WmoCode.kt-- com/vayunmathur/weather/domain/map/OmColorize.kt - com/vayunmathur/weather/domain/map/OmDomains.kt - com/vayunmathur/weather/domain/map/OmMapMetadata.kt-- com/vayunmathur/weather/domain/map/OmTilesNative.kt-- com/vayunmathur/weather/intents/GetWeatherByNameIntent.kt-- com/vayunmathur/weather/intents/GetWeatherIntent.kt-- com/vayunmathur/weather/network/AirQualityDto.kt-- com/vayunmathur/weather/network/GeocodingDto.kt-- com/vayunmathur/weather/network/OpenMeteoDto.kt+- com/vayunmathur/weather/domain/map/OmColorize.kt+- com/vayunmathur/weather/domain/map/OmTilesNative.kt — Rust tile bridge+### network/ — Open-Meteo DTOs + API - com/vayunmathur/weather/network/WeatherApi.kt-- com/vayunmathur/weather/platform/AppBackupAgent.kt+- com/vayunmathur/weather/network/OpenMeteoDto.kt+- com/vayunmathur/weather/network/GeocodingDto.kt+- com/vayunmathur/weather/network/AirQualityDto.kt+### platform/ — ViewModel, location, summaries+- com/vayunmathur/weather/platform/WeatherViewModel.kt+- com/vayunmathur/weather/platform/WeatherUiContract.kt - com/vayunmathur/weather/platform/LocationProvider.kt-- com/vayunmathur/weather/platform/Precipitation.kt - com/vayunmathur/weather/platform/ReverseGeocode.kt - com/vayunmathur/weather/platform/Summary.kt+- com/vayunmathur/weather/platform/Precipitation.kt - com/vayunmathur/weather/platform/SystemUnits.kt-- com/vayunmathur/weather/platform/WeatherUiContract.kt-- com/vayunmathur/weather/platform/WeatherViewModel.kt-- com/vayunmathur/weather/ui/DeviceLocation.kt-- com/vayunmathur/weather/ui/ForecastColumn.kt+- com/vayunmathur/weather/platform/AppBackupAgent.kt+### intents/ — assistant IPC+- com/vayunmathur/weather/intents/GetWeatherIntent.kt+- com/vayunmathur/weather/intents/GetWeatherByNameIntent.kt+### ui/ + ui/components/ + blocks/ — home, map, locations, metric blocks - com/vayunmathur/weather/ui/HomePage.kt+- com/vayunmathur/weather/ui/ForecastColumn.kt+- com/vayunmathur/weather/ui/DeviceLocation.kt - com/vayunmathur/weather/ui/LocationsScreen.kt - com/vayunmathur/weather/ui/SearchLocationPage.kt-- com/vayunmathur/weather/ui/WeatherMapComponents.kt - com/vayunmathur/weather/ui/WeatherMapPage.kt - com/vayunmathur/weather/ui/WeatherMapState.kt-- com/vayunmathur/weather/ui/components/CardsHeader.kt+- com/vayunmathur/weather/ui/WeatherMapComponents.kt - com/vayunmathur/weather/ui/components/CurrentWeatherCard.kt-- com/vayunmathur/weather/ui/components/DailyCard.kt - com/vayunmathur/weather/ui/components/HourlyCard.kt-- com/vayunmathur/weather/ui/components/LocationItem.kt-- com/vayunmathur/weather/ui/components/MainSearchBar.kt-- com/vayunmathur/weather/ui/components/MetricGraphSheet.kt-- com/vayunmathur/weather/ui/components/SelectedHeader.kt+- com/vayunmathur/weather/ui/components/DailyCard.kt - com/vayunmathur/weather/ui/components/SummaryCard.kt-- com/vayunmathur/weather/ui/components/UseDeviceLocationCard.kt - com/vayunmathur/weather/ui/components/WeatherBlocks.kt+- com/vayunmathur/weather/ui/components/CardsHeader.kt+- com/vayunmathur/weather/ui/components/SelectedHeader.kt+- com/vayunmathur/weather/ui/components/MainSearchBar.kt+- com/vayunmathur/weather/ui/components/LocationItem.kt+- com/vayunmathur/weather/ui/components/UseDeviceLocationCard.kt+- com/vayunmathur/weather/ui/components/MetricGraphSheet.kt - com/vayunmathur/weather/ui/components/WeatherIconBox.kt-- com/vayunmathur/weather/ui/components/blocks/AirQualityBlock.kt+- com/vayunmathur/weather/ui/components/blocks/StatBlock.kt - com/vayunmathur/weather/ui/components/blocks/BlockHeader.kt-- com/vayunmathur/weather/ui/components/blocks/CloudCoverBlock.kt-- com/vayunmathur/weather/ui/components/blocks/HumidityBlock.kt-- com/vayunmathur/weather/ui/components/blocks/MoonBlock.kt+- com/vayunmathur/weather/ui/components/blocks/AirQualityBlock.kt+- com/vayunmathur/weather/ui/components/blocks/UvIndexBlock.kt - com/vayunmathur/weather/ui/components/blocks/PollenBlock.kt-- com/vayunmathur/weather/ui/components/blocks/PrecipitationBlock.kt+- com/vayunmathur/weather/ui/components/blocks/HumidityBlock.kt - com/vayunmathur/weather/ui/components/blocks/PressureBlock.kt-- com/vayunmathur/weather/ui/components/blocks/StatBlock.kt-- com/vayunmathur/weather/ui/components/blocks/SunBlock.kt-- com/vayunmathur/weather/ui/components/blocks/UvIndexBlock.kt-- com/vayunmathur/weather/ui/components/blocks/VisibilityBlock.kt - com/vayunmathur/weather/ui/components/blocks/WindBlock.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidget.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidgetReceiver.kt+- com/vayunmathur/weather/ui/components/blocks/VisibilityBlock.kt+- com/vayunmathur/weather/ui/components/blocks/PrecipitationBlock.kt+- com/vayunmathur/weather/ui/components/blocks/CloudCoverBlock.kt+- com/vayunmathur/weather/ui/components/blocks/SunBlock.kt+- com/vayunmathur/weather/ui/components/blocks/MoonBlock.kt+### widget/glance/ — Glance widgets (cache-fed only) - com/vayunmathur/weather/widget/glance/WeatherGlanceWidget.kt - com/vayunmathur/weather/widget/glance/WeatherGlanceWidgetReceiver.kt+- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidget.kt+- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidgetReceiver.kt+- com/vayunmathur/weather/widget/glance/WidgetWeather.kt — shared widget model ## Verify (this module only) ```@@ -91,5 +112,3 @@ _Install: ./install weather (dev by default)._ ./gradlew :weather:lint ./gradlew :weather:checkMetadata ```--
web/AGENTS.md
diff --git a/web/AGENTS.md b/web/AGENTS.mdindex c8da1e9d4b..d62a447188 100644--- a/web/AGENTS.md+++ b/web/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `web/` + allowed shared modules. Do not root-scan. _Install: ./install web (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :web / dir: web/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,63 +11,81 @@ _Install: ./install web (dev by default)._ - Metadata: metadata_data/web.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Privacy browser — WebView with bundled-filter Shields (ad/tracker blocking), fingerprint randomization, per-site controls, PWA install, private tabs. User-host browsing pins `TrustBundle.SYSTEM` (deliberate exception to the narrowest-bundle rule).+**Key features:**+- Shields engine (`platform/shields/`: request filter, WebView clients, JS injection, service-worker client) over the Rust core (`shields/ShieldsNative`) with `domain/shields/` URL cleaning; per-site panel + fingerprint controls+- Tabs with thumbnails, bookmarks/history/downloads, installed-site PWAs in a standalone `PwaActivity`, desktop-mode toggle+- LAN safety policy (`domain/LanPolicy`, `LocalNetwork`) + per-site permissions/storage (`WebPermissions`, permission sheets)+**Architecture / data-flow:** `ui/` chrome (omnibox, menu, tab switcher, panels) → `platform/WebViewModel` (+ split `Permissions`/`SiteData` helpers, `BrowserState`) → `data/WebRepository` over Room (bookmarks/history/tabs/favicons) + `platform/shields/ShieldsEngine` on the network path; `platform/ContentFilters` + `ThumbnailCapture` + `WindowLauncher` support.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/BrowserPage.kt` → `platform/WebViewModel.kt` → `platform/shields/ShieldsEngine.kt` → `domain/shields/UrlCleaner.kt`.+**Gotchas:**+- `SYSTEM` trust bundle is intentional here (arbitrary user hosts) — do NOT "fix" it to a narrower bundle+- Shields filtering runs on the request path — regressions break all browsing; test with Shields on AND off+- PWA windows run outside the browser chrome (`PwaActivity` + `PwaHelper`); window-launch bugs live there, not in `BrowserPage` +## Key files+### Root — entry + navigation - com/vayunmathur/web/MainActivity.kt - com/vayunmathur/web/Navigation.kt - com/vayunmathur/web/Route.kt+### data/ — Room (bookmarks/history/tabs/permissions)+- com/vayunmathur/web/data/WebDatabase.kt+- com/vayunmathur/web/data/WebRepository.kt - com/vayunmathur/web/data/Bookmark.kt-- com/vayunmathur/web/data/FaviconStore.kt - com/vayunmathur/web/data/HistoryEntry.kt - com/vayunmathur/web/data/InstalledSite.kt+- com/vayunmathur/web/data/TabThumbnailStore.kt+- com/vayunmathur/web/data/FaviconStore.kt - com/vayunmathur/web/data/ShieldSetting.kt - com/vayunmathur/web/data/SitePermission.kt-- com/vayunmathur/web/data/TabThumbnailStore.kt-- com/vayunmathur/web/data/WebDatabase.kt-- com/vayunmathur/web/data/WebRepository.kt+### domain/ + domain/shields/ — pure LAN policy + shields rules (no Android) - com/vayunmathur/web/domain/LanPolicy.kt - com/vayunmathur/web/domain/LocalNetwork.kt - com/vayunmathur/web/domain/ShieldsSettings.kt-- com/vayunmathur/web/domain/shields/ResourceTypes.kt - com/vayunmathur/web/domain/shields/UrlCleaner.kt+- com/vayunmathur/web/domain/shields/ResourceTypes.kt+### platform/ + platform/shields/ — ViewModel, PWA, permissions, engine+- com/vayunmathur/web/platform/WebViewModel.kt+- com/vayunmathur/web/platform/WebViewModelFactory.kt+- com/vayunmathur/web/platform/WebViewModelPermissions.kt+- com/vayunmathur/web/platform/WebViewModelSiteData.kt - com/vayunmathur/web/platform/BrowserState.kt - com/vayunmathur/web/platform/ContentFilters.kt-- com/vayunmathur/web/platform/ExternalIntents.kt+- com/vayunmathur/web/platform/WebPermissions.kt - com/vayunmathur/web/platform/PermissionPrompt.kt+- com/vayunmathur/web/platform/ExternalIntents.kt - com/vayunmathur/web/platform/PwaActivity.kt - com/vayunmathur/web/platform/PwaHelper.kt-- com/vayunmathur/web/platform/ThumbnailCapture.kt-- com/vayunmathur/web/platform/WebPermissions.kt-- com/vayunmathur/web/platform/WebViewModel.kt-- com/vayunmathur/web/platform/WebViewModelFactory.kt-- com/vayunmathur/web/platform/WebViewModelPermissions.kt-- com/vayunmathur/web/platform/WebViewModelSiteData.kt - com/vayunmathur/web/platform/WindowLauncher.kt-- com/vayunmathur/web/platform/shields/InetHostResolver.kt+- com/vayunmathur/web/platform/ThumbnailCapture.kt - com/vayunmathur/web/platform/shields/ShieldsEngine.kt-- com/vayunmathur/web/platform/shields/ShieldsInjection.kt - com/vayunmathur/web/platform/shields/ShieldsRequestFilter.kt-- com/vayunmathur/web/platform/shields/ShieldsServiceWorkerClient.kt - com/vayunmathur/web/platform/shields/ShieldsWebViewClient.kt-- com/vayunmathur/web/shields/ShieldsNative.kt-- com/vayunmathur/web/ui/BookmarksPage.kt+- com/vayunmathur/web/platform/shields/ShieldsServiceWorkerClient.kt+- com/vayunmathur/web/platform/shields/ShieldsInjection.kt+- com/vayunmathur/web/platform/shields/InetHostResolver.kt+### shields/ — Rust bridge+- com/vayunmathur/web/shields/ShieldsNative.kt — JNI bridge into the filter core+### ui/ + ui/components/ — chrome, tabs, panels, settings+- com/vayunmathur/web/ui/BrowserPage.kt - com/vayunmathur/web/ui/BrowserChrome.kt-- com/vayunmathur/web/ui/BrowserMenu.kt - com/vayunmathur/web/ui/BrowserOmnibox.kt - com/vayunmathur/web/ui/BrowserOmniboxEditor.kt+- com/vayunmathur/web/ui/BrowserMenu.kt - com/vayunmathur/web/ui/BrowserOverlays.kt-- com/vayunmathur/web/ui/BrowserPage.kt-- com/vayunmathur/web/ui/DownloadsPage.kt+- com/vayunmathur/web/ui/WebViewBrowser.kt+- com/vayunmathur/web/ui/WebViewClients.kt+- com/vayunmathur/web/ui/WebViewSettings.kt+- com/vayunmathur/web/ui/TabSwitcher.kt+- com/vayunmathur/web/ui/LinkContextMenu.kt+- com/vayunmathur/web/ui/BookmarksPage.kt - com/vayunmathur/web/ui/HistoryPage.kt+- com/vayunmathur/web/ui/DownloadsPage.kt - com/vayunmathur/web/ui/InstalledSitesPage.kt-- com/vayunmathur/web/ui/LinkContextMenu.kt - com/vayunmathur/web/ui/PermissionSheets.kt - com/vayunmathur/web/ui/SettingsPage.kt - com/vayunmathur/web/ui/ShieldsPanel.kt-- com/vayunmathur/web/ui/TabSwitcher.kt-- com/vayunmathur/web/ui/WebViewBrowser.kt-- com/vayunmathur/web/ui/WebViewClients.kt-- com/vayunmathur/web/ui/WebViewSettings.kt - com/vayunmathur/web/ui/components/SiteIcon.kt - com/vayunmathur/web/ui/components/TabTile.kt @@ -77,5 +95,3 @@ _Install: ./install web (dev by default)._ ./gradlew :web:lint ./gradlew :web:checkMetadata ```--