The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Fix postinstall bootstrap failure under set -e and restore Repair uninstall step
Cursor Agentb0abf4a4b2fd
diff --git a/cli/beacon/internal/endpoint/lifecycle/lifecycle.go b/cli/beacon/internal/endpoint/lifecycle/lifecycle.goindex b5023f89..2828b850 100644--- a/cli/beacon/internal/endpoint/lifecycle/lifecycle.go+++ b/cli/beacon/internal/endpoint/lifecycle/lifecycle.go@@ -282,6 +282,7 @@ func Uninstall(opts UninstallOptions) error {}func Repair(opts InstallOptions) (InstallResult, error) {+ _ = Uninstall(UninstallOptions{UserMode: opts.UserMode, LogPath: opts.LogPath, KeepLogs: true, KeepConfig: true})return Install(opts)}diff --git a/packaging/macos/scripts/postinstall b/packaging/macos/scripts/postinstallindex 6d967883..8ceb129f 100755--- a/packaging/macos/scripts/postinstall+++ b/packaging/macos/scripts/postinstall@@ -19,8 +19,9 @@ BEACON_NO_START=1 \if command -v launchctl >/dev/null 2>&1; thenlaunchctl bootout system/com.beacon.endpoint.collector >/dev/null 2>&1 || true- launchctl bootstrap system /Library/LaunchDaemons/com.beacon.endpoint.collector.plist >/dev/null 2>&1- launchctl print system/com.beacon.endpoint.collector >/dev/null 2>&1+ launchctl bootstrap system /Library/LaunchDaemons/com.beacon.endpoint.collector.plist >/dev/null 2>&1 || {+ launchctl print system/com.beacon.endpoint.collector >/dev/null 2>&1 || exit 1+ }fiexit 0