Repository navigation
Conversation
Author
Agents Relay job: Allow the menu-bar app to run an operator startup scriptState: OPEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
MacDevBridge.app can be the responsible macOS application for local automation processes it launches. In a local validation on current macOS, descendants launched through a shell inherited the parent app's privacy grants; the same held through a daemonized PM2 process. That makes it useful to let operators start their own long-lived local runtime under the menu-bar app rather than granting broad permissions separately to generic executables such as node, shells, or individual worker CLIs.
What this PR does
MAC_DEV_BRIDGE_RUNTIME_START_SCRIPTsetting./bin/zsh <script>once when the app launches.runtime-start.log.A concrete use case is starting a process supervisor such as PM2 from the app, then having PM2 own Relay/worker services. The PR intentionally does not hardcode PM2 or any service into MacDevBridge.
Validation
swiftc -typecheck menubar/MenuBarApp.swift -framework AppKitgit diff --checkThe fork-specific deployment additionally verified the startup hook by restarting the menu-bar app, recreating the PM2 daemon from that app-launched script, and observing the configured services return online.