diff --git a/CHANGELOG.md b/CHANGELOG.md
index 87a753d..e399daf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -26,6 +26,11 @@ is in alpha and releases come off `main`.
you change it -- with the screen off. Settings explains what it costs in battery and how to
keep a phone's battery optimisation from stopping it. Not in the F-Droid build, which builds
every library from source.
+- **"Summarise my notifications"**, if you allow it (off by default). Settings › Assistant ›
+ *Notification summaries*, plus Android's own notification-access switch, which Settings opens
+ for you. Then ask the assistant about "my notifications", or tap its chip, and the
+ notifications on the phone right now go with that one question -- never before you ask, never
+ while the phone is locked, and the app keeps none of them.
- **Code in colour.** The file viewer highlights a source file by its language (as the server
names it), and a reply's code blocks by their fence's language: comments, strings, numbers,
keywords, type names, and markup's tags and attributes, in the theme's own colours in Shire
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 20ecc1e..b22ceff 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -162,6 +162,17 @@
android:exported="false"
android:foregroundServiceType="microphone" />
+
+
+
+
+
+
+
diff --git a/app/src/main/java/eu/llembas/android/assist/AssistController.kt b/app/src/main/java/eu/llembas/android/assist/AssistController.kt
index 6dac309..f5dcd30 100644
--- a/app/src/main/java/eu/llembas/android/assist/AssistController.kt
+++ b/app/src/main/java/eu/llembas/android/assist/AssistController.kt
@@ -15,6 +15,7 @@ import eu.llembas.android.api.ModelInfo
import eu.llembas.android.api.Step
import eu.llembas.android.api.StreamClient
import eu.llembas.android.lembas
+import eu.llembas.android.notify.NotificationReader
import eu.llembas.android.push.Notifications
import eu.llembas.android.ui.explain
import kotlinx.coroutines.CoroutineScope
@@ -76,6 +77,8 @@ data class AssistUiState(
* until the person says stop, taps End, types, or says nothing.
*/
val conversation: Boolean = false,
+ /** Whether the person let the assistant read the notifications when asked (Settings and Android both). */
+ val canReadNotifications: Boolean = false,
) {
val screenAvailable: Boolean get() = screenText || screenshot != null
val modelInfo: ModelInfo? get() = models.firstOrNull { it.id == modelId }
@@ -100,6 +103,7 @@ interface AssistActions {
fun readAloud() {}
fun stopReading() {}
fun endConversation() {}
+ fun summariseNotifications() {}
}
/**
@@ -145,6 +149,7 @@ class AssistController(private val context: Context, private val scope: Coroutin
signedIn = instance != null,
instanceName = instance?.name?.ifBlank { instance.base }.orEmpty(),
voiceReply = prefs.readAloudSpoken,
+ canReadNotifications = prefs.notificationSummaries && NotificationReader.granted(context),
last = prefs.lastAssistChat.takeIf { id -> id.isNotBlank() && !prefs.assistantTemporary }
?.let { id -> LastAssist(id, prefs.lastAssistTitle, prefs.lastAssistAt) },
)
@@ -366,7 +371,10 @@ class AssistController(private val context: Context, private val scope: Coroutin
ask(prompt, spoken = false)
}
- fun ask(question: String, spoken: Boolean) {
+ /** The sheet's "Summarise my notifications": the notifications up now go with the question. */
+ override fun summariseNotifications() = ask(context.getString(R.string.assist_notifications_prompt), spoken = false, notifications = true)
+
+ fun ask(question: String, spoken: Boolean, notifications: Boolean = false) {
if (question.isBlank()) return
if (_state.value.listening) type()
following?.cancel()
@@ -386,7 +394,19 @@ class AssistController(private val context: Context, private val scope: Coroutin
val attachments = buildList {
if (withScreen) now.screenshot?.let { shot -> add(api.upload("screen.png", "image/png", png(shot), now.chatId).id) }
}
- val text = if (withScreen && screenText != null) "$question\n\n---\nOn my screen:\n\n$screenText" else question
+ // The notifications, when asked for by the chip or by name ("my notifications") --
+ // read now, only while unlocked (NotificationReader.read), and for this question only.
+ val phrases = context.getString(R.string.assist_notifications_phrases).split("|")
+ val notices = if (now.canReadNotifications && (notifications || NotificationReader.asksAbout(question, phrases))) {
+ NotificationReader.asText(NotificationReader.read(context)).ifBlank { NO_NOTIFICATIONS }
+ } else {
+ null
+ }
+ val text = buildString {
+ append(question)
+ if (withScreen && screenText != null) append("\n\n---\nOn my screen:\n\n$screenText")
+ if (notices != null) append("\n\n---\nMy notifications:\n\n$notices")
+ }
// The screen goes with one question, not every one after it.
_state.update { it.copy(includeScreen = false) }
val chatId = now.chatId
@@ -523,6 +543,7 @@ class AssistController(private val context: Context, private val scope: Coroutin
companion object {
const val MAX_SCREEN_CHARS = 8_000
+ private const val NO_NOTIFICATIONS = "(none)"
// Listening, for the instance's speech-to-text (the phone's recogniser finds the end of
// speech itself). Levels are the RMS of 16-bit samples, 0..1: a room is under 0.01,
diff --git a/app/src/main/java/eu/llembas/android/assist/AssistSheet.kt b/app/src/main/java/eu/llembas/android/assist/AssistSheet.kt
index d4924d0..0009f65 100644
--- a/app/src/main/java/eu/llembas/android/assist/AssistSheet.kt
+++ b/app/src/main/java/eu/llembas/android/assist/AssistSheet.kt
@@ -47,6 +47,7 @@ import androidx.compose.material.icons.filled.History
import androidx.compose.material.icons.filled.Keyboard
import androidx.compose.material.icons.filled.Lightbulb
import androidx.compose.material.icons.filled.Mic
+import androidx.compose.material.icons.filled.Notifications
import androidx.compose.material.icons.filled.ScreenshotMonitor
import androidx.compose.material.icons.filled.Stop
import androidx.compose.material.icons.filled.Summarize
@@ -443,6 +444,10 @@ private fun Starting(state: AssistUiState, actions: AssistActions, locked: Boole
QuickAction(Icons.Filled.Lightbulb, stringResource(R.string.assist_quick_explain)) { actions.quick(explain) }
}
}
+ // The notifications, read only now that it is asked, and never over the lock screen.
+ if (state.canReadNotifications && !locked) {
+ QuickAction(Icons.Filled.Notifications, stringResource(R.string.assist_notifications)) { actions.summariseNotifications() }
+ }
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
Text(stringResource(R.string.assist_help), style = MaterialTheme.typography.bodySmall, color = palette.inkFaint)
Text(stringResource(R.string.assist_wake_word_hint), style = MaterialTheme.typography.bodySmall, color = palette.inkFaint)
diff --git a/app/src/main/java/eu/llembas/android/auth/Instances.kt b/app/src/main/java/eu/llembas/android/auth/Instances.kt
index 6ac0568..f5a923f 100644
--- a/app/src/main/java/eu/llembas/android/auth/Instances.kt
+++ b/app/src/main/java/eu/llembas/android/auth/Instances.kt
@@ -93,6 +93,8 @@ data class Prefs(
val wakePhrase: String = "hey_lembas",
/** Listen only while the screen is on. */
val wakeScreenOnly: Boolean = true,
+ /** The assistant may read the notifications when asked (with Android's notification access). */
+ val notificationSummaries: Boolean = false,
val assistantModel: String = "",
val lastAssistChat: String = "",
val lastAssistTitle: String = "",
diff --git a/app/src/main/java/eu/llembas/android/notify/NotificationReader.kt b/app/src/main/java/eu/llembas/android/notify/NotificationReader.kt
new file mode 100644
index 0000000..01eb088
--- /dev/null
+++ b/app/src/main/java/eu/llembas/android/notify/NotificationReader.kt
@@ -0,0 +1,102 @@
+package eu.llembas.android.notify
+
+import android.app.KeyguardManager
+import android.app.Notification
+import android.content.ComponentName
+import android.content.Context
+import android.content.Intent
+import android.os.Build
+import android.provider.Settings
+import android.service.notification.NotificationListenerService
+import android.service.notification.StatusBarNotification
+import androidx.core.app.NotificationManagerCompat
+
+/**
+ * Notification summaries on request: the assistant reads the notifications on the phone only when
+ * the person asks it to ("summarise my notifications", or the sheet's chip), and sends their text
+ * with that one question. Off by default, twice over: Android's own notification-access switch
+ * (which only the person can turn on, in the system's settings) and Settings › Assistant's.
+ *
+ * The listener keeps nothing: it is how Android lets an app read the notifications that are up
+ * right now ([activeNotifications]), and nothing is read until a question asks for it. Never over
+ * the lock screen ([read] returns nothing while the phone is locked).
+ */
+class LembasNotificationListener : NotificationListenerService() {
+ override fun onListenerConnected() {
+ super.onListenerConnected()
+ current = this
+ }
+
+ override fun onListenerDisconnected() {
+ if (current === this) current = null
+ super.onListenerDisconnected()
+ }
+
+ companion object {
+ @Volatile
+ var current: LembasNotificationListener? = null
+ private set
+ }
+}
+
+/** One notification, as the question carries it. */
+data class Notice(val app: String, val title: String, val text: String, val at: Long)
+
+object NotificationReader {
+ /** Whether the person gave LLeMbas notification access in the system's settings. */
+ fun granted(context: Context): Boolean = context.packageName in NotificationManagerCompat.getEnabledListenerPackages(context)
+
+ /** The system's page for this app's notification access (the detail page where Android has one). */
+ fun settingsIntent(context: Context): Intent = if (Build.VERSION.SDK_INT >= 30) {
+ Intent(Settings.ACTION_NOTIFICATION_LISTENER_DETAIL_SETTINGS)
+ .putExtra(Settings.EXTRA_NOTIFICATION_LISTENER_COMPONENT_NAME, ComponentName(context, LembasNotificationListener::class.java).flattenToString())
+ } else {
+ Intent(Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS)
+ }.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+
+ /** The notifications up now, newest first -- or none, when locked or not allowed. */
+ fun read(context: Context): List {
+ if (context.getSystemService(KeyguardManager::class.java).isKeyguardLocked) return emptyList()
+ val listener = LembasNotificationListener.current ?: return emptyList()
+ val shown = runCatching { listener.activeNotifications }.getOrNull().orEmpty()
+ return shown
+ .filter { it.packageName != context.packageName && !it.isOngoing && it.notification.flags and Notification.FLAG_GROUP_SUMMARY == 0 }
+ .sortedByDescending { it.postTime }
+ .mapNotNull { notice(context, it) }
+ .take(MAX_NOTICES)
+ }
+
+ private fun notice(context: Context, sbn: StatusBarNotification): Notice? {
+ val extras = sbn.notification.extras
+ val title = extras.getCharSequence(Notification.EXTRA_TITLE)?.toString().orEmpty()
+ val lines = extras.getCharSequenceArray(Notification.EXTRA_TEXT_LINES)?.joinToString("\n").orEmpty()
+ val text = (extras.getCharSequence(Notification.EXTRA_BIG_TEXT) ?: extras.getCharSequence(Notification.EXTRA_TEXT))?.toString()
+ ?.ifBlank { null } ?: lines
+ if (title.isBlank() && text.isBlank()) return null
+ val app = runCatching {
+ val pm = context.packageManager
+ pm.getApplicationLabel(pm.getApplicationInfo(sbn.packageName, 0)).toString()
+ }.getOrDefault(sbn.packageName)
+ return Notice(app, title, text.take(MAX_TEXT), sbn.postTime)
+ }
+
+ /** The notifications as the question's attachment of text: one block per notification. */
+ fun asText(notices: List, now: Long = System.currentTimeMillis()): String = notices.joinToString("\n\n") { n ->
+ val minutes = ((now - n.at) / 60_000).coerceAtLeast(0)
+ val ago = if (minutes < 60) "${minutes}m ago" else "${minutes / 60}h ago"
+ listOf("[${n.app} · $ago] ${n.title}".trim(), n.text).filter { it.isNotBlank() }.joinToString("\n")
+ }.take(MAX_CHARS)
+
+ /**
+ * Whether a question asks about the notifications: one of [phrases] (in the app's language,
+ * "my notifications" and the like) is in it.
+ */
+ fun asksAbout(question: String, phrases: List): Boolean {
+ val q = question.lowercase()
+ return phrases.map { it.trim().lowercase() }.any { it.isNotEmpty() && it in q }
+ }
+
+ private const val MAX_NOTICES = 40
+ private const val MAX_TEXT = 600
+ private const val MAX_CHARS = 12_000
+}
diff --git a/app/src/main/java/eu/llembas/android/ui/settings/SettingsScreen.kt b/app/src/main/java/eu/llembas/android/ui/settings/SettingsScreen.kt
index 4570cc2..30eac55 100644
--- a/app/src/main/java/eu/llembas/android/ui/settings/SettingsScreen.kt
+++ b/app/src/main/java/eu/llembas/android/ui/settings/SettingsScreen.kt
@@ -45,6 +45,7 @@ import androidx.compose.material.icons.filled.PhoneAndroid
import androidx.compose.material.icons.filled.RecordVoiceOver
import androidx.compose.material.icons.filled.Science
import androidx.compose.material.icons.filled.ScreenLockPortrait
+import androidx.compose.material.icons.filled.Security
import androidx.compose.material.icons.filled.SystemUpdate
import androidx.compose.material.icons.filled.Timer
import androidx.compose.material.icons.filled.Translate
@@ -87,6 +88,7 @@ import eu.llembas.android.assist.PhoneRecognizer
import eu.llembas.android.auth.Instance
import eu.llembas.android.auth.Prefs
import eu.llembas.android.lembas
+import eu.llembas.android.notify.NotificationReader
import eu.llembas.android.push.Push
import eu.llembas.android.ui.theme.LocalPalette
import eu.llembas.android.update.AppVersion
@@ -119,6 +121,8 @@ interface SettingsActions {
fun wakePhrase(id: String) {}
fun wakeScreenOnly(on: Boolean) {}
fun batterySettings() {}
+ fun notificationSummaries(on: Boolean) {}
+ fun notificationAccess() {}
fun readAloud(on: Boolean) {}
fun checkUpdate() {}
fun openRelease() {}
@@ -145,6 +149,8 @@ data class SettingsState(
val phoneRecognizer: Boolean = false,
/** Whether this build has a wake-word engine (the F-Droid build has none). */
val wakeAvailable: Boolean = false,
+ /** Whether Android's notification access is given to LLeMbas. */
+ val notificationAccess: Boolean = false,
)
@Composable
@@ -258,6 +264,16 @@ fun SettingsScreen(onBack: () -> Unit, onAddInstance: () -> Unit) {
runCatching { context.startActivity(Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) }
}
+ // On: Android's own switch is the person's to flip, so its page opens if it is off.
+ override fun notificationSummaries(on: Boolean) {
+ scope.launch { store.savePrefs { it.copy(notificationSummaries = on) } }
+ if (on && !NotificationReader.granted(context)) notificationAccess()
+ }
+
+ override fun notificationAccess() {
+ runCatching { context.startActivity(NotificationReader.settingsIntent(context)) }
+ }
+
override fun readAloud(on: Boolean) {
scope.launch { store.savePrefs { it.copy(readAloudSpoken = on) } }
}
@@ -313,6 +329,8 @@ fun SettingsScreen(onBack: () -> Unit, onAddInstance: () -> Unit) {
beta = beta,
phoneRecognizer = remember { PhoneRecognizer.available(context) },
wakeAvailable = WakeEngine.AVAILABLE,
+ // Read again each time Settings is composed: the person comes back from the system's page.
+ notificationAccess = NotificationReader.granted(context),
),
actions,
onBack,
@@ -495,6 +513,7 @@ fun SettingsContent(state: SettingsState, actions: SettingsActions, onBack: () -
)
}
item { WakeWordGroup(state, actions) }
+ item { NotificationSummaryGroup(state, actions) }
item {
// Which recogniser turns speech into words: the instance's or the phone's -- what
// each one is, and where the recording goes, said in the row itself.
@@ -629,6 +648,38 @@ private fun WakeWordGroup(state: SettingsState, actions: SettingsActions) {
)
}
+/** Notification summaries: off by default; on needs Android's notification access too, which this explains. */
+@Composable
+private fun NotificationSummaryGroup(state: SettingsState, actions: SettingsActions) {
+ val palette = LocalPalette.current
+ val on = state.prefs.notificationSummaries
+ Group(stringResource(R.string.notification_summaries)) {
+ SettingRow(
+ Icons.Filled.Notifications,
+ stringResource(R.string.notification_summaries_switch),
+ subtitle = stringResource(R.string.notification_summaries_line),
+ onClick = { actions.notificationSummaries(!on) },
+ trailing = { Switch(checked = on, onCheckedChange = actions::notificationSummaries) },
+ )
+ if (on) {
+ Rule()
+ SettingRow(
+ Icons.Filled.Security,
+ stringResource(R.string.notification_access),
+ subtitle = stringResource(if (state.notificationAccess) R.string.notification_access_on else R.string.notification_access_off),
+ tint = if (state.notificationAccess) null else palette.warning,
+ onClick = actions::notificationAccess,
+ )
+ }
+ }
+ Text(
+ stringResource(R.string.notification_summaries_privacy),
+ style = MaterialTheme.typography.bodySmall,
+ color = palette.inkFaint,
+ modifier = Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
+ )
+}
+
@Composable
private fun Group(title: String, content: @Composable () -> Unit) {
val palette = LocalPalette.current
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 923b9cc..ab01c46 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -417,6 +417,16 @@
Slyšel jsem vás. Klepněte a ptejte se.
Znovu naslouchat budicímu slovu
Telefon se restartoval. Klepnutím znovu spustíte naslouchání.
+ Shrnout má oznámení
+ Shrň moje oznámení: co potřebuje mou pozornost?
+ moje oznámení|má oznámení|mých oznámení|moje notifikace
+ Shrnutí oznámení
+ Dovolit asistentovi číst má oznámení, když o to požádám
+ Řekněte „shrň moje oznámení“, nebo klepněte na tlačítko v asistentovi.
+ Přístup k oznámením
+ Uděleno. Přepínač Androidu je v systémovém nastavení.
+ Zatím neuděleno. Klepnutím otevřete přepínač Androidu pro LLeMbas.
+ Ve výchozím stavu vypnuto. Když požádáte, text oznámení, která jsou v telefonu právě teď (aplikace, název, text), půjde s touto jedinou otázkou na vaši instanci a její model. Dřív se nic nečte, aplikace si nic neponechá a při zamčeném telefonu se nečte nic. Přístup k oznámením v Androidu dovolí aplikaci vidět každé oznámení, proto je na vás, zda ho dáte a zase vezmete.
Rozpoznávání řeči v telefonu se zastavilo. Zkuste to znovu nebo zvolte LLeMbas v Nastavení › Hlasový vstup.
Začít poslouchat, když se asistent otevře
Hlasový vstup
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index aa9c5e1..a1cfee2 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -417,6 +417,16 @@
Gehört. Tippe, um zu fragen.
Wieder auf das Aktivierungswort hören
Das Telefon wurde neu gestartet. Tippe, um wieder zuzuhören.
+ Meine Benachrichtigungen zusammenfassen
+ Fasse meine Benachrichtigungen zusammen: Was braucht meine Aufmerksamkeit?
+ meine benachrichtigungen|meinen benachrichtigungen|meiner benachrichtigungen
+ Zusammenfassungen der Benachrichtigungen
+ Den Assistenten meine Benachrichtigungen lesen lassen, wenn ich frage
+ Sag „fasse meine Benachrichtigungen zusammen“ oder tippe auf den Chip im Assistenten.
+ Zugriff auf Benachrichtigungen
+ Erteilt. Der Schalter dafür ist in den Android-Einstellungen.
+ Noch nicht erteilt. Tippe, um den Android-Schalter für LLeMbas zu öffnen.
+ Standardmäßig aus. Wenn du fragst, geht der Text der Benachrichtigungen, die gerade auf deinem Telefon sind (App, Titel, Text), mit dieser einen Frage an deine Instanz und ihr Modell. Vorher wird nichts gelesen, die App behält nichts davon, und bei gesperrtem Telefon wird nichts gelesen. Der Benachrichtigungszugriff von Android lässt eine App jede Benachrichtigung sehen; ihn zu erteilen und zu entziehen liegt bei dir.
Die Spracherkennung des Telefons hat angehalten. Versuchen Sie es erneut oder wählen Sie LLeMbas unter Einstellungen › Spracheingabe.
Beim Öffnen des Assistenten zuhören
Spracheingabe
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 1bb17d1..7ad9294 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -417,6 +417,16 @@
Te he oído. Toca para preguntar.
Volver a escuchar la palabra de activación
El teléfono se reinició. Toca para volver a escuchar.
+ Resumir mis notificaciones
+ Resume mis notificaciones: ¿qué necesita mi atención?
+ mis notificaciones
+ Resúmenes de notificaciones
+ Dejar que el asistente lea mis notificaciones cuando lo pida
+ Pide «resume mis notificaciones» o toca el botón en el asistente.
+ Acceso a notificaciones
+ Concedido. El interruptor de Android está en los ajustes del sistema.
+ Aún no concedido. Toca para abrir el interruptor de Android para LLeMbas.
+ Desactivado por defecto. Cuando lo pides, el texto de las notificaciones que hay ahora en tu teléfono (app, título, texto) va con esa única pregunta a tu instancia y su modelo. No se lee nada antes, la app no guarda nada y no se lee nada con el teléfono bloqueado. El acceso a notificaciones de Android permite a una app ver todas las notificaciones; darlo y retirarlo es cosa tuya.
El reconocimiento de voz del teléfono se detuvo. Inténtelo de nuevo o elija LLeMbas en Ajustes › Entrada de voz.
Empezar a escuchar al abrir el asistente
Entrada de voz
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 20ccc7d..3f323d2 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -417,6 +417,16 @@
Entendu. Touchez pour demander.
Écouter à nouveau le mot d’activation
Le téléphone a redémarré. Touchez pour reprendre l’écoute.
+ Résumer mes notifications
+ Résume mes notifications : qu’est-ce qui demande mon attention ?
+ mes notifications
+ Résumés des notifications
+ Laisser l’assistant lire mes notifications quand je le demande
+ Demandez « résume mes notifications », ou touchez la puce dans l’assistant.
+ Accès aux notifications
+ Accordé. L’interrupteur d’Android est dans les paramètres du système.
+ Pas encore accordé. Touchez pour ouvrir l’interrupteur d’Android pour LLeMbas.
+ Désactivé par défaut. Quand vous le demandez, le texte des notifications présentes sur votre téléphone (app, titre, texte) part avec cette seule question vers votre instance et son modèle. Rien n’est lu avant, l’app n’en garde rien, et rien n’est lu téléphone verrouillé. L’accès aux notifications d’Android permet à une app de voir toutes les notifications : c’est à vous de l’accorder et de le retirer.
La reconnaissance vocale du téléphone s’est arrêtée. Réessayez, ou choisissez LLeMbas dans Réglages › Saisie vocale.
Écouter dès l’ouverture de l’assistant
Saisie vocale
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index 7ebdcc4..b676eb5 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -417,6 +417,16 @@
Hallottalak. Koppints a kérdezéshez.
Ébresztőszó figyelése újra
A telefon újraindult. Koppints a figyelés folytatásához.
+ Értesítéseim összefoglalása
+ Foglald össze az értesítéseimet: mi igényli a figyelmemet?
+ értesítéseim|értesítéseimet|az értesítéseimről
+ Értesítések összefoglalása
+ Az asszisztens kérésemre elolvashatja az értesítéseimet
+ Kérd, hogy „foglald össze az értesítéseimet”, vagy koppints a gombra az asszisztensben.
+ Hozzáférés az értesítésekhez
+ Megadva. Az Android kapcsolója a rendszerbeállításokban van.
+ Még nincs megadva. Koppints az Android LLeMbas-kapcsolójának megnyitásához.
+ Alapból ki van kapcsolva. Ha kéred, a telefonon éppen látható értesítések szövege (alkalmazás, cím, szöveg) ezzel az egy kérdéssel együtt a példányodhoz és a modelljéhez kerül. Előtte semmit nem olvas, az alkalmazás semmit nem tart meg, és zárolt telefonnál semmit nem olvas. Az Android értesítés-hozzáférése minden értesítést láthatóvá tesz egy alkalmazásnak, ezért rajtad múlik, megadod-e, és visszavonod-e.
A telefon beszédfelismerője leállt. Próbálja újra, vagy válassza a LLeMbast a Beállítások › Hangbevitel alatt.
Hallgatás indítása az asszisztens megnyitásakor
Hangbevitel
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index cfd23c6..ee72a22 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -417,6 +417,16 @@
Ti ho sentito. Tocca per chiedere.
Ascolta di nuovo la parola di attivazione
Il telefono si è riavviato. Tocca per ricominciare ad ascoltare.
+ Riassumi le mie notifiche
+ Riassumi le mie notifiche: cosa richiede la mia attenzione?
+ le mie notifiche|mie notifiche
+ Riepiloghi delle notifiche
+ Lascia che l’assistente legga le mie notifiche quando lo chiedo
+ Chiedi «riassumi le mie notifiche» o tocca il pulsante nell’assistente.
+ Accesso alle notifiche
+ Concesso. L’interruttore di Android è nelle impostazioni di sistema.
+ Non ancora concesso. Tocca per aprire l’interruttore di Android per LLeMbas.
+ Disattivato per impostazione predefinita. Quando lo chiedi, il testo delle notifiche presenti ora sul telefono (app, titolo, testo) va con quella sola domanda alla tua istanza e al suo modello. Prima non si legge nulla, l’app non conserva nulla e a telefono bloccato non si legge nulla. L’accesso alle notifiche di Android permette a un’app di vedere ogni notifica: concederlo e revocarlo spetta a te.
Il riconoscimento vocale del telefono si è fermato. Riprovi, oppure scelga LLeMbas in Impostazioni › Input vocale.
Inizia ad ascoltare all’apertura dell’assistente
Input vocale
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index c5a0f8b..3b78d24 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -417,6 +417,16 @@
Słyszę. Dotknij, aby zapytać.
Znów nasłuchuj słowa aktywującego
Telefon uruchomił się ponownie. Dotknij, aby znów słuchać.
+ Podsumuj moje powiadomienia
+ Podsumuj moje powiadomienia: co wymaga mojej uwagi?
+ moje powiadomienia|moich powiadomień|moje notyfikacje
+ Podsumowania powiadomień
+ Pozwól asystentowi czytać moje powiadomienia, gdy poproszę
+ Poproś „podsumuj moje powiadomienia” albo dotknij przycisku w asystencie.
+ Dostęp do powiadomień
+ Przyznany. Przełącznik Androida jest w ustawieniach systemu.
+ Jeszcze nie przyznany. Dotknij, aby otworzyć przełącznik Androida dla LLeMbas.
+ Domyślnie wyłączone. Gdy poprosisz, tekst powiadomień, które są teraz na telefonie (aplikacja, tytuł, treść), trafi z tym jednym pytaniem do Twojej instancji i jej modelu. Wcześniej nic nie jest czytane, aplikacja niczego nie zachowuje i nic nie jest czytane przy zablokowanym telefonie. Dostęp do powiadomień w Androidzie pozwala aplikacji widzieć każde powiadomienie, więc to Ty decydujesz, czy go dać i odebrać.
Rozpoznawanie mowy w telefonie przestało działać. Spróbuj ponownie albo wybierz LLeMbas w Ustawienia › Wprowadzanie głosowe.
Zacznij słuchać po otwarciu asystenta
Wprowadzanie głosowe
diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml
index 0c6ebdf..bd2d4f4 100644
--- a/app/src/main/res/values-sk/strings.xml
+++ b/app/src/main/res/values-sk/strings.xml
@@ -417,6 +417,16 @@
Počul som vás. Ťuknite a pýtajte sa.
Znova počúvať budiace slovo
Telefón sa reštartoval. Ťuknutím znova spustíte počúvanie.
+ Zhrnúť moje oznámenia
+ Zhrň moje oznámenia: čo potrebuje moju pozornosť?
+ moje oznámenia|mojich oznámení|moje notifikácie
+ Zhrnutia oznámení
+ Dovoliť asistentovi čítať moje oznámenia, keď o to požiadam
+ Povedzte „zhrň moje oznámenia“, alebo ťuknite na tlačidlo v asistentovi.
+ Prístup k oznámeniam
+ Udelený. Prepínač Androidu je v systémových nastaveniach.
+ Zatiaľ neudelený. Ťuknutím otvoríte prepínač Androidu pre LLeMbas.
+ Predvolene vypnuté. Keď požiadate, text oznámení, ktoré sú v telefóne práve teraz (aplikácia, názov, text), pôjde s touto jedinou otázkou na vašu inštanciu a jej model. Predtým sa nič nečíta, aplikácia si nič neponechá a pri zamknutom telefóne sa nečíta nič. Prístup k oznámeniam v Androide dovolí aplikácii vidieť každé oznámenie, preto je na vás, či ho dáte a znova vezmete.
Rozpoznávanie reči v telefóne sa zastavilo. Skúste to znova alebo zvoľte LLeMbas v Nastaveniach › Hlasový vstup.
Začať počúvať, keď sa asistent otvorí
Hlasový vstup
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 39d59c1..e4a9a9c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -419,6 +419,16 @@
Heard you. Tap to ask.
Listen for the wake word again
The phone restarted. Tap to start listening again.
+ Summarise my notifications
+ Summarise my notifications: what needs my attention?
+ my notifications|notifications on my phone
+ Notification summaries
+ Let the assistant read my notifications when I ask
+ Ask “summarise my notifications”, or tap the chip in the assistant.
+ Notification access
+ Given. Android\'s switch for it is in the system\'s settings.
+ Not given yet. Tap to open Android\'s switch for LLeMbas.
+ Off by default. When you ask, the text of the notifications on your phone right now (app, title, text) goes with that one question to your instance and its model. Nothing is read before you ask, the app keeps none of it, and none is read while the phone is locked. Android\'s notification access lets an app see every notification, so it is yours to give and to take back.
The phone\'s speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.
Start listening when the assistant opens
Voice input
diff --git a/app/src/test/java/eu/llembas/android/AssistTest.kt b/app/src/test/java/eu/llembas/android/AssistTest.kt
index 65dc52c..0021a20 100644
--- a/app/src/test/java/eu/llembas/android/AssistTest.kt
+++ b/app/src/test/java/eu/llembas/android/AssistTest.kt
@@ -11,6 +11,8 @@ import eu.llembas.android.assist.isStopPhrase
import eu.llembas.android.assist.settle
import eu.llembas.android.assist.usePhoneRecognizer
import eu.llembas.android.auth.Prefs
+import eu.llembas.android.notify.Notice
+import eu.llembas.android.notify.NotificationReader
import eu.llembas.android.share.shareMessage
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
@@ -108,4 +110,20 @@ class AssistTest {
assertFalse(isStopPhrase("", phrases))
assertTrue(isStopPhrase("Ďakujem, to je všetko", listOf("ďakujem to je všetko")))
}
+
+ @Test
+ fun notificationsGoAsShortBlocksAndOnlyWhenAskedFor() {
+ val now = 10 * 3_600_000L
+ val text = NotificationReader.asText(
+ listOf(
+ Notice("Mail", "Bilbo", "The party is on Thursday.", now - 5 * 60_000),
+ Notice("Weather", "Rain", "", now - 3 * 3_600_000),
+ ),
+ now,
+ )
+ assertEquals("[Mail · 5m ago] Bilbo\nThe party is on Thursday.\n\n[Weather · 3h ago] Rain", text)
+ val phrases = listOf("my notifications")
+ assertTrue(NotificationReader.asksAbout("Anything urgent in My Notifications?", phrases))
+ assertFalse(NotificationReader.asksAbout("How do notifications work on Android?", phrases))
+ }
}
diff --git a/app/src/test/java/eu/llembas/android/shots/Fakes.kt b/app/src/test/java/eu/llembas/android/shots/Fakes.kt
index c2136f7..7bedf1e 100644
--- a/app/src/test/java/eu/llembas/android/shots/Fakes.kt
+++ b/app/src/test/java/eu/llembas/android/shots/Fakes.kt
@@ -357,7 +357,7 @@ object Fakes {
val settings = SettingsState(
instances = listOf(home, work),
active = home,
- prefs = Prefs(theme = "", assistantTemporary = true, accountLanguage = "en"),
+ prefs = Prefs(theme = "", assistantTemporary = true, accountLanguage = "en", notificationSummaries = true),
hasDistributor = true,
version = "1.0.0-beta.3",
selfUpdate = true,
@@ -384,7 +384,7 @@ object Fakes {
)
/** Opened from the tile, nothing asked yet: the last chat, the help, the microphone. */
- val assistOpened = assistBase.copy(last = LastAssist("c1", "Packing for the road", 0), screenText = true, includeScreen = true)
+ val assistOpened = assistBase.copy(last = LastAssist("c1", "Packing for the road", 0), screenText = true, includeScreen = true, canReadNotifications = true)
/** A spoken question answered, the answer read aloud. */
val assistAnswered = assistBase.copy(
diff --git a/scripts/strings.py b/scripts/strings.py
index 1996aa7..7c07cce 100755
--- a/scripts/strings.py
+++ b/scripts/strings.py
@@ -444,6 +444,16 @@ STRINGS: dict[str, str] = {
"wake_heard": "Heard you. Tap to ask.",
"wake_resume": "Listen for the wake word again",
"wake_resume_line": "The phone restarted. Tap to start listening again.",
+ "assist_notifications": "Summarise my notifications",
+ "assist_notifications_prompt": "Summarise my notifications: what needs my attention?",
+ "assist_notifications_phrases": "my notifications|notifications on my phone",
+ "notification_summaries": "Notification summaries",
+ "notification_summaries_switch": "Let the assistant read my notifications when I ask",
+ "notification_summaries_line": "Ask “summarise my notifications”, or tap the chip in the assistant.",
+ "notification_access": "Notification access",
+ "notification_access_on": "Given. Android's switch for it is in the system's settings.",
+ "notification_access_off": "Not given yet. Tap to open Android's switch for LLeMbas.",
+ "notification_summaries_privacy": "Off by default. When you ask, the text of the notifications on your phone right now (app, title, text) goes with that one question to your instance and its model. Nothing is read before you ask, the app keeps none of it, and none is read while the phone is locked. Android's notification access lets an app see every notification, so it is yours to give and to take back.",
"assist_recogniser_failed": "The phone's speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.",
"assistant_listens": "Start listening when the assistant opens",
"voice_input": "Voice input",
diff --git a/scripts/strings_own.json b/scripts/strings_own.json
index c62e092..36685f9 100644
--- a/scripts/strings_own.json
+++ b/scripts/strings_own.json
@@ -27,6 +27,9 @@
"assist_help": "Podržením tlačítka napájení otevřete asistenta nad libovolnou aplikací; nebo použijte dlaždici v Rychlém nastavení.",
"assist_hint": "Zeptejte se na cokoli",
"assist_no_model": "Žádný model",
+ "assist_notifications": "Shrnout má oznámení",
+ "assist_notifications_phrases": "moje oznámení|má oznámení|mých oznámení|moje notifikace",
+ "assist_notifications_prompt": "Shrň moje oznámení: co potřebuje mou pozornost?",
"assist_offline": "%1$s není dostupná",
"assist_open_app": "Otevřít aplikaci",
"assist_open_in_app": "Pokračovat v aplikaci",
@@ -108,8 +111,15 @@
"model_uses_tools": "Používá nástroje",
"more": "Více",
"new_agent_chat": "Nová konverzace s agentem",
+ "notification_access": "Přístup k oznámením",
+ "notification_access_off": "Zatím neuděleno. Klepnutím otevřete přepínač Androidu pro LLeMbas.",
+ "notification_access_on": "Uděleno. Přepínač Androidu je v systémovém nastavení.",
"notification_settings": "Nastavení oznámení",
"notification_settings_hint": "Které druhy přicházejí a jak: odpovědi, otázky, výsledky a selhání naplánovaných úloh.",
+ "notification_summaries": "Shrnutí oznámení",
+ "notification_summaries_line": "Řekněte „shrň moje oznámení“, nebo klepněte na tlačítko v asistentovi.",
+ "notification_summaries_privacy": "Ve výchozím stavu vypnuto. Když požádáte, text oznámení, která jsou v telefonu právě teď (aplikace, název, text), půjde s touto jedinou otázkou na vaši instanci a její model. Dřív se nic nečte, aplikace si nic neponechá a při zamčeném telefonu se nečte nic. Přístup k oznámením v Androidu dovolí aplikaci vidět každé oznámení, proto je na vás, zda ho dáte a zase vezmete.",
+ "notification_summaries_switch": "Dovolit asistentovi číst má oznámení, když o to požádám",
"notify_always": "Dá vědět pokaždé",
"notify_matters": "Dá vědět, když na tom záleží",
"notify_never": "Nedá vědět nikdy",
@@ -283,6 +293,9 @@
"assist_help": "Halten Sie die Ein-/Aus-Taste, um den Assistenten über jeder App zu öffnen, oder nutzen Sie die Kachel in den Schnelleinstellungen.",
"assist_hint": "Fragen Sie irgendetwas",
"assist_no_model": "Kein Modell",
+ "assist_notifications": "Meine Benachrichtigungen zusammenfassen",
+ "assist_notifications_phrases": "meine benachrichtigungen|meinen benachrichtigungen|meiner benachrichtigungen",
+ "assist_notifications_prompt": "Fasse meine Benachrichtigungen zusammen: Was braucht meine Aufmerksamkeit?",
"assist_offline": "%1$s ist nicht erreichbar",
"assist_open_app": "App öffnen",
"assist_open_in_app": "In der App fortsetzen",
@@ -365,8 +378,15 @@
"model_uses_tools": "Nutzt Werkzeuge",
"more": "Mehr",
"new_agent_chat": "Neuer Agent-Chat",
+ "notification_access": "Zugriff auf Benachrichtigungen",
+ "notification_access_off": "Noch nicht erteilt. Tippe, um den Android-Schalter für LLeMbas zu öffnen.",
+ "notification_access_on": "Erteilt. Der Schalter dafür ist in den Android-Einstellungen.",
"notification_settings": "Benachrichtigungseinstellungen",
"notification_settings_hint": "Welche Arten ankommen und wie: Antworten, Fragen, geplante Ergebnisse und Fehler.",
+ "notification_summaries": "Zusammenfassungen der Benachrichtigungen",
+ "notification_summaries_line": "Sag „fasse meine Benachrichtigungen zusammen“ oder tippe auf den Chip im Assistenten.",
+ "notification_summaries_privacy": "Standardmäßig aus. Wenn du fragst, geht der Text der Benachrichtigungen, die gerade auf deinem Telefon sind (App, Titel, Text), mit dieser einen Frage an deine Instanz und ihr Modell. Vorher wird nichts gelesen, die App behält nichts davon, und bei gesperrtem Telefon wird nichts gelesen. Der Benachrichtigungszugriff von Android lässt eine App jede Benachrichtigung sehen; ihn zu erteilen und zu entziehen liegt bei dir.",
+ "notification_summaries_switch": "Den Assistenten meine Benachrichtigungen lesen lassen, wenn ich frage",
"notify_always": "Meldet sich jedes Mal",
"notify_matters": "Meldet sich, wenn es wichtig ist",
"notify_never": "Meldet sich nie",
@@ -540,6 +560,9 @@
"assist_help": "Mantenga pulsado el botón de encendido para abrir el asistente sobre cualquier app, o use el mosaico de Ajustes rápidos.",
"assist_hint": "Pregunte lo que quiera",
"assist_no_model": "Sin modelo",
+ "assist_notifications": "Resumir mis notificaciones",
+ "assist_notifications_phrases": "mis notificaciones",
+ "assist_notifications_prompt": "Resume mis notificaciones: ¿qué necesita mi atención?",
"assist_offline": "No se puede contactar con %1$s",
"assist_open_app": "Abrir la aplicación",
"assist_open_in_app": "Continuar en la aplicación",
@@ -621,8 +644,15 @@
"model_uses_tools": "Usa herramientas",
"more": "Más",
"new_agent_chat": "Nuevo chat de agente",
+ "notification_access": "Acceso a notificaciones",
+ "notification_access_off": "Aún no concedido. Toca para abrir el interruptor de Android para LLeMbas.",
+ "notification_access_on": "Concedido. El interruptor de Android está en los ajustes del sistema.",
"notification_settings": "Ajustes de notificaciones",
"notification_settings_hint": "Qué tipos llegan y cómo: respuestas, preguntas, resultados y fallos programados.",
+ "notification_summaries": "Resúmenes de notificaciones",
+ "notification_summaries_line": "Pide «resume mis notificaciones» o toca el botón en el asistente.",
+ "notification_summaries_privacy": "Desactivado por defecto. Cuando lo pides, el texto de las notificaciones que hay ahora en tu teléfono (app, título, texto) va con esa única pregunta a tu instancia y su modelo. No se lee nada antes, la app no guarda nada y no se lee nada con el teléfono bloqueado. El acceso a notificaciones de Android permite a una app ver todas las notificaciones; darlo y retirarlo es cosa tuya.",
+ "notification_summaries_switch": "Dejar que el asistente lea mis notificaciones cuando lo pida",
"notify_always": "Avisa siempre",
"notify_matters": "Avisa cuando importa",
"notify_never": "No avisa nunca",
@@ -796,6 +826,9 @@
"assist_help": "Maintenez le bouton marche/arrêt pour ouvrir l’assistant par-dessus n’importe quelle app, ou utilisez la tuile des Réglages rapides.",
"assist_hint": "Demandez n'importe quoi",
"assist_no_model": "Aucun modèle",
+ "assist_notifications": "Résumer mes notifications",
+ "assist_notifications_phrases": "mes notifications",
+ "assist_notifications_prompt": "Résume mes notifications : qu’est-ce qui demande mon attention ?",
"assist_offline": "%1$s est injoignable",
"assist_open_app": "Ouvrir l'application",
"assist_open_in_app": "Continuer dans l'application",
@@ -878,8 +911,15 @@
"model_uses_tools": "Utilise des outils",
"more": "Plus",
"new_agent_chat": "Nouvelle conversation d'agent",
+ "notification_access": "Accès aux notifications",
+ "notification_access_off": "Pas encore accordé. Touchez pour ouvrir l’interrupteur d’Android pour LLeMbas.",
+ "notification_access_on": "Accordé. L’interrupteur d’Android est dans les paramètres du système.",
"notification_settings": "Réglages des notifications",
"notification_settings_hint": "Quels types arrivent, et comment : réponses, questions, résultats et échecs planifiés.",
+ "notification_summaries": "Résumés des notifications",
+ "notification_summaries_line": "Demandez « résume mes notifications », ou touchez la puce dans l’assistant.",
+ "notification_summaries_privacy": "Désactivé par défaut. Quand vous le demandez, le texte des notifications présentes sur votre téléphone (app, titre, texte) part avec cette seule question vers votre instance et son modèle. Rien n’est lu avant, l’app n’en garde rien, et rien n’est lu téléphone verrouillé. L’accès aux notifications d’Android permet à une app de voir toutes les notifications : c’est à vous de l’accorder et de le retirer.",
+ "notification_summaries_switch": "Laisser l’assistant lire mes notifications quand je le demande",
"notify_always": "Prévient à chaque fois",
"notify_matters": "Prévient quand c’est important",
"notify_never": "Ne prévient jamais",
@@ -1053,6 +1093,9 @@
"assist_help": "Tartsa lenyomva a bekapcsológombot, hogy bármely alkalmazás fölött megnyissa az asszisztenst, vagy használja a Gyorsbeállítások csempét.",
"assist_hint": "Kérdezzen bármit",
"assist_no_model": "Nincs modell",
+ "assist_notifications": "Értesítéseim összefoglalása",
+ "assist_notifications_phrases": "értesítéseim|értesítéseimet|az értesítéseimről",
+ "assist_notifications_prompt": "Foglald össze az értesítéseimet: mi igényli a figyelmemet?",
"assist_offline": "%1$s nem érhető el",
"assist_open_app": "Alkalmazás megnyitása",
"assist_open_in_app": "Folytatás az alkalmazásban",
@@ -1135,8 +1178,15 @@
"model_uses_tools": "Eszközöket használ",
"more": "Továbbiak",
"new_agent_chat": "Új ügynök-csevegés",
+ "notification_access": "Hozzáférés az értesítésekhez",
+ "notification_access_off": "Még nincs megadva. Koppints az Android LLeMbas-kapcsolójának megnyitásához.",
+ "notification_access_on": "Megadva. Az Android kapcsolója a rendszerbeállításokban van.",
"notification_settings": "Értesítési beállítások",
"notification_settings_hint": "Milyen értesítések jönnek és hogyan: válaszok, kérdések, ütemezett eredmények és hibák.",
+ "notification_summaries": "Értesítések összefoglalása",
+ "notification_summaries_line": "Kérd, hogy „foglald össze az értesítéseimet”, vagy koppints a gombra az asszisztensben.",
+ "notification_summaries_privacy": "Alapból ki van kapcsolva. Ha kéred, a telefonon éppen látható értesítések szövege (alkalmazás, cím, szöveg) ezzel az egy kérdéssel együtt a példányodhoz és a modelljéhez kerül. Előtte semmit nem olvas, az alkalmazás semmit nem tart meg, és zárolt telefonnál semmit nem olvas. Az Android értesítés-hozzáférése minden értesítést láthatóvá tesz egy alkalmazásnak, ezért rajtad múlik, megadod-e, és visszavonod-e.",
+ "notification_summaries_switch": "Az asszisztens kérésemre elolvashatja az értesítéseimet",
"notify_always": "Mindig szól",
"notify_matters": "Szól, ha számít",
"notify_never": "Soha nem szól",
@@ -1310,6 +1360,9 @@
"assist_help": "Tenga premuto il tasto di accensione per aprire l’assistente sopra qualsiasi app, oppure usi il riquadro delle Impostazioni rapide.",
"assist_hint": "Chiedi qualsiasi cosa",
"assist_no_model": "Nessun modello",
+ "assist_notifications": "Riassumi le mie notifiche",
+ "assist_notifications_phrases": "le mie notifiche|mie notifiche",
+ "assist_notifications_prompt": "Riassumi le mie notifiche: cosa richiede la mia attenzione?",
"assist_offline": "%1$s non è raggiungibile",
"assist_open_app": "Apri l'app",
"assist_open_in_app": "Continua nell'app",
@@ -1391,8 +1444,15 @@
"model_uses_tools": "Usa strumenti",
"more": "Altro",
"new_agent_chat": "Nuova chat agente",
+ "notification_access": "Accesso alle notifiche",
+ "notification_access_off": "Non ancora concesso. Tocca per aprire l’interruttore di Android per LLeMbas.",
+ "notification_access_on": "Concesso. L’interruttore di Android è nelle impostazioni di sistema.",
"notification_settings": "Impostazioni delle notifiche",
"notification_settings_hint": "Quali tipi arrivano e come: risposte, domande, risultati e errori pianificati.",
+ "notification_summaries": "Riepiloghi delle notifiche",
+ "notification_summaries_line": "Chiedi «riassumi le mie notifiche» o tocca il pulsante nell’assistente.",
+ "notification_summaries_privacy": "Disattivato per impostazione predefinita. Quando lo chiedi, il testo delle notifiche presenti ora sul telefono (app, titolo, testo) va con quella sola domanda alla tua istanza e al suo modello. Prima non si legge nulla, l’app non conserva nulla e a telefono bloccato non si legge nulla. L’accesso alle notifiche di Android permette a un’app di vedere ogni notifica: concederlo e revocarlo spetta a te.",
+ "notification_summaries_switch": "Lascia che l’assistente legga le mie notifiche quando lo chiedo",
"notify_always": "Avvisa ogni volta",
"notify_matters": "Avvisa quando conta",
"notify_never": "Non avvisa mai",
@@ -1566,6 +1626,9 @@
"assist_help": "Przytrzymaj przycisk zasilania, aby otworzyć asystenta nad dowolną aplikacją, albo użyj kafelka w Szybkich ustawieniach.",
"assist_hint": "Zapytaj o cokolwiek",
"assist_no_model": "Brak modelu",
+ "assist_notifications": "Podsumuj moje powiadomienia",
+ "assist_notifications_phrases": "moje powiadomienia|moich powiadomień|moje notyfikacje",
+ "assist_notifications_prompt": "Podsumuj moje powiadomienia: co wymaga mojej uwagi?",
"assist_offline": "%1$s jest nieosiągalna",
"assist_open_app": "Otwórz aplikację",
"assist_open_in_app": "Kontynuuj w aplikacji",
@@ -1647,8 +1710,15 @@
"model_uses_tools": "Używa narzędzi",
"more": "Więcej",
"new_agent_chat": "Nowy czat agenta",
+ "notification_access": "Dostęp do powiadomień",
+ "notification_access_off": "Jeszcze nie przyznany. Dotknij, aby otworzyć przełącznik Androida dla LLeMbas.",
+ "notification_access_on": "Przyznany. Przełącznik Androida jest w ustawieniach systemu.",
"notification_settings": "Ustawienia powiadomień",
"notification_settings_hint": "Jakie rodzaje przychodzą i jak: odpowiedzi, pytania, wyniki i błędy zaplanowanych zadań.",
+ "notification_summaries": "Podsumowania powiadomień",
+ "notification_summaries_line": "Poproś „podsumuj moje powiadomienia” albo dotknij przycisku w asystencie.",
+ "notification_summaries_privacy": "Domyślnie wyłączone. Gdy poprosisz, tekst powiadomień, które są teraz na telefonie (aplikacja, tytuł, treść), trafi z tym jednym pytaniem do Twojej instancji i jej modelu. Wcześniej nic nie jest czytane, aplikacja niczego nie zachowuje i nic nie jest czytane przy zablokowanym telefonie. Dostęp do powiadomień w Androidzie pozwala aplikacji widzieć każde powiadomienie, więc to Ty decydujesz, czy go dać i odebrać.",
+ "notification_summaries_switch": "Pozwól asystentowi czytać moje powiadomienia, gdy poproszę",
"notify_always": "Powiadamia za każdym razem",
"notify_matters": "Powiadamia, gdy to ważne",
"notify_never": "Nigdy nie powiadamia",
@@ -1822,6 +1892,9 @@
"assist_help": "Podržaním tlačidla napájania otvoríte asistenta nad ľubovoľnou aplikáciou; alebo použite dlaždicu v Rýchlych nastaveniach.",
"assist_hint": "Spýtajte sa na čokoľvek",
"assist_no_model": "Žiadny model",
+ "assist_notifications": "Zhrnúť moje oznámenia",
+ "assist_notifications_phrases": "moje oznámenia|mojich oznámení|moje notifikácie",
+ "assist_notifications_prompt": "Zhrň moje oznámenia: čo potrebuje moju pozornosť?",
"assist_offline": "%1$s je nedostupná",
"assist_open_app": "Otvoriť aplikáciu",
"assist_open_in_app": "Pokračovať v aplikácii",
@@ -1903,8 +1976,15 @@
"model_uses_tools": "Používa nástroje",
"more": "Viac",
"new_agent_chat": "Nová konverzácia s agentom",
+ "notification_access": "Prístup k oznámeniam",
+ "notification_access_off": "Zatiaľ neudelený. Ťuknutím otvoríte prepínač Androidu pre LLeMbas.",
+ "notification_access_on": "Udelený. Prepínač Androidu je v systémových nastaveniach.",
"notification_settings": "Nastavenia upozornení",
"notification_settings_hint": "Ktoré druhy prichádzajú a ako: odpovede, otázky, výsledky a zlyhania naplánovaných úloh.",
+ "notification_summaries": "Zhrnutia oznámení",
+ "notification_summaries_line": "Povedzte „zhrň moje oznámenia“, alebo ťuknite na tlačidlo v asistentovi.",
+ "notification_summaries_privacy": "Predvolene vypnuté. Keď požiadate, text oznámení, ktoré sú v telefóne práve teraz (aplikácia, názov, text), pôjde s touto jedinou otázkou na vašu inštanciu a jej model. Predtým sa nič nečíta, aplikácia si nič neponechá a pri zamknutom telefóne sa nečíta nič. Prístup k oznámeniam v Androide dovolí aplikácii vidieť každé oznámenie, preto je na vás, či ho dáte a znova vezmete.",
+ "notification_summaries_switch": "Dovoliť asistentovi čítať moje oznámenia, keď o to požiadam",
"notify_always": "Dá vedieť zakaždým",
"notify_matters": "Dá vedieť, keď na tom záleží",
"notify_never": "Nedá vedieť nikdy",