Skip to content

♻️ Split automation into request, queue, runner and presenter - #1216

Merged
mrkai77 merged 6 commits into
developfrom
kai/cli-cleanup
Nov 26, 2026
Merged

mrkai77 merged 6 commits into
developfrom
kai/cli-cleanup

Conversation

@mrkai77

@mrkai77 mrkai77 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

This PR includes some refactoring I wanted to do, following #1076. Here are the notable improments:

  1. Splits command handling into AutomationRequest, which parses and validates loop:// URLs without side effects, AutomationQueue, which runs commands one at a time and in order, AutomationRunner, which picks the window, screen and cycle step, and URLSchemePresenter, which shows a link's output window or failure alert. The socket now only encodes JSON
  2. Adds LoopTargetOptions, one type shared by the CLI and the app for windowID, bundleID and screenID, with one set of rules
  3. Moves the window and screen choice shared by keybinds and automation into WindowUtility and ScreenUtility
  4. Keeps older link formats like loop://direction/right and loop://keybind/<name> in LegacyRoutes.swift instead of keeping them directly beside existing routes

@mrkai77
mrkai77 marked this pull request as ready for review November 26, 2026 06:08
@mrkai77
mrkai77 merged commit 5d72ca4 into develop Nov 26, 2026
1 check passed
@mrkai77
mrkai77 deleted the kai/cli-cleanup branch November 26, 2026 06:17
@mrkai77 mrkai77 self-assigned this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant