Voice assistant can set/check/cancel timers without the timer app being already open

This commit is contained in:
James Babcock committed 2026-08-09 20:10:33 -07:00
1 parent 2562761038
commit b4728f4f15
5 files changed
+124 -49

No files matched your search

+3
View File
@@ -24,6 +24,7 @@ import { registerNavigateTools } from "../assistant/navigate-tools";
import { registerRoamTools } from "../assistant/roam-tools";
import { assistantBridge } from "../assistant/bridge-client";
import { registerWindowTools } from "../assistant/window-tools";
import { registerTimerTools } from "../assistant/timer-tools";
import { WorkerAppHost } from "../ui/shell/worker-window";
import { ALL_APPS } from "../apps/all-apps";
import { type AppContext, type AppDefinition, type AppLaunchParams, type TextEditorHost } from "../apps/app-definition";
@@ -218,6 +219,8 @@ class DashboardController {
registerNavigateTools((appId) => this.launchApp(appId));
// roam.* tools launch the Roam app on demand likewise.
registerRoamTools((appId) => this.launchApp(appId));
// timer.* tools launch the Timer app on demand likewise.
registerTimerTools((appId) => this.launchApp(appId));
// apps.* tools mirror the launcher grid and sidebar (launch, focus, close).
registerWindowTools({
apps: LAUNCHABLE_APPS,