Repository navigation
Split external automation manager - #17149
Conversation
Greptile SummaryThe PR splits the external automation manager into focused modules while retaining the existing facade and scoped request flow.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/main/automations/external-manager.ts | Retains the scoped manager facade and public exports while delegating operational behavior to focused modules. |
| src/main/automations/external-manager-discovery.ts | Moves local and SSH manager discovery without an identified behavioral change. |
| src/main/automations/external-manager-mutations.ts | Preserves provider action mapping, Hermes argument construction, relay payloads, and local run-count cache invalidation. |
| src/main/automations/external-manager-runs.ts | Preserves bounded pagination, Hermes run mapping, and structured unsupported-relay translation. |
| src/main/automations/external-manager-relay.ts | Centralizes active-multiplexer checks and structured JSON-RPC method-not-found handling. |
| src/main/automations/external-manager-local-command.ts | Preserves argv-based process execution and bounded lookup and mutation timeouts. |
| src/main/automations/external-manager-job-id.ts | Extracts the existing external job-ID validation unchanged. |
| config/max-lines-baseline.txt | Removes the now-split external manager from the max-lines exception baseline. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
IPC[Automation IPC] --> F[external-manager facade]
F --> S[Scoped ownership resolution]
S --> D[Discovery]
S --> R[Runs pagination]
S --> M[Mutations]
D --> L[Local command and job files]
D --> X[SSH relay]
R --> J[Job ID validation]
R --> X
M --> J
M --> L
M --> X
S --> C[Manager cache and probe scheduler]
Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…-external-manager
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThe change splits external automation management into focused modules. New code handles local and remote manager discovery, job ID validation, local CLI execution, SSH relay errors, provider mutations, and Hermes run listing. The main external manager module now delegates to these modules and re-exports the public mutation and run-listing functions. The max-lines baseline no longer allowlists the former monolithic implementation. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131
Summary
Validation
pnpm tcpnpm run check:code-quality:changedpnpm check:max-lines-ratchetpnpm test src/main/automations/external-manager.test.ts src/main/automations/external-manager-scoped.test.ts src/main/automations/external-automation-owner-guard.test.ts src/main/automations/external-automation-manager-cache.test.ts src/main/automations/external-automation-probe-scheduler.test.tsStacked on #17146.