KI-AGENT: Siri-Kurzbefehle für FEDEO-Todos ergänzen

This commit is contained in:
2026-08-08 22:59:15 +02:00
parent 5dae5b6aa5
commit ecbfdaa0cb
5 changed files with 530 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
import * as SecureStore from 'expo-secure-store';
const SIRI_PREFERRED_TENANT_KEY = 'fedeo.mobile.siri.preferred-tenant';
export async function getSiriPreferredTenantId(): Promise<number | null> {
const stored = await SecureStore.getItemAsync(SIRI_PREFERRED_TENANT_KEY);
if (!stored) return null;
const tenantId = Number(stored);
return Number.isFinite(tenantId) ? tenantId : null;
}
export async function setSiriPreferredTenantId(tenantId: number | null): Promise<void> {
if (tenantId === null) {
await SecureStore.deleteItemAsync(SIRI_PREFERRED_TENANT_KEY);
return;
}
await SecureStore.setItemAsync(SIRI_PREFERRED_TENANT_KEY, String(tenantId));
}