revert: remove workflow automation, keep overlay and stop_goal

Remove all workflow-related code from PR #6 (input classifier,
workflow parser, notification listener, workflow CRUD handlers).
Keep the overlay, stop_goal, AbortSignal threading, and OkHttp
engine switch. Add v2 design doc for safer workflow implementation.
This commit is contained in:
Sanju Sivalingam
2026-02-18 20:39:04 +05:30
parent d8659cfe17
commit 59ee665088
17 changed files with 125 additions and 904 deletions

View File

@@ -8,12 +8,7 @@ export type DeviceMessage =
| { type: "pong" }
| { type: "heartbeat"; batteryLevel: number; isCharging: boolean }
| { type: "apps"; apps: InstalledApp[] }
| { type: "stop_goal" }
| { type: "workflow_create"; description: string }
| { type: "workflow_update"; workflowId: string; enabled?: boolean }
| { type: "workflow_delete"; workflowId: string }
| { type: "workflow_sync" }
| { type: "workflow_trigger"; workflowId: string; notificationApp?: string; notificationTitle?: string; notificationText?: string };
| { type: "stop_goal" };
export type ServerToDeviceMessage =
| { type: "auth_ok"; deviceId: string }