Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

chore(rotation): drop vendor package-manager names from reauth env comments

auroracapital4e81edb88a1b
diff --git a/claude-ops/scripts/account-rotation/__tests__/reauth-env.test.mjs b/claude-ops/scripts/account-rotation/__tests__/reauth-env.test.mjs
index 6635e1e3..6fc8f4b3 100644
--- a/claude-ops/scripts/account-rotation/__tests__/reauth-env.test.mjs
+++ b/claude-ops/scripts/account-rotation/__tests__/reauth-env.test.mjs
@@ -21,16 +21,14 @@ assert(
'CLAUDE_DESKTOP_DISPLAY over DISPLAY',
);
-// path includes home .local/bin when HOME set; never injects OS package roots
+// path includes home .local/bin when HOME set; never invents vendor package roots
const p = resolveReauthPath({ HOME: '/tmp/fakehome', PATH: '/usr/bin' });
assert(p.includes('/tmp/fakehome/.local/bin'), 'local bin first');
assert(p.includes('/usr/bin'), 'keeps system path');
-assert(!p.includes('homebrew'), 'no homebrew hardcode');
-assert(!p.includes('/Users/'), 'no mac home hardcode');
+assert(!/opt\/(homebrew|local\/Homebrew)/i.test(p), 'no vendor package root');
const pEmpty = resolveReauthPath({ HOME: '/tmp/fakehome', PATH: '' });
-// empty PATH falls back to minimal POSIX bins only
-assert(!pEmpty.includes('homebrew'), 'fallback has no homebrew');
assert(pEmpty.includes('/usr/bin') || pEmpty.includes('.local'), 'fallback usable');
+assert(!/opt\/(homebrew|local\/Homebrew)/i.test(pEmpty), 'fallback has no vendor package root');
// child env
const env = buildReauthChildEnv({
diff --git a/claude-ops/scripts/account-rotation/reauth-env.mjs b/claude-ops/scripts/account-rotation/reauth-env.mjs
index 1e74f03f..60b5ddf0 100644
--- a/claude-ops/scripts/account-rotation/reauth-env.mjs
+++ b/claude-ops/scripts/account-rotation/reauth-env.mjs
@@ -19,9 +19,9 @@ export function resolveReauthDisplay(env = process.env) {
}
/**
- * Build PATH with optional user-local bin. No OS package-manager roots
- * (Homebrew, Chocolatey, etc.). Prefer process PATH; fall back to a minimal
- * POSIX list only when PATH is unset (common in stripped service units).
+ * Build PATH with optional user-local bin. No OS package-manager roots.
+ * Prefer process PATH; fall back to a minimal POSIX list only when PATH is
+ * unset (common in stripped service units).
*/
export function resolveReauthPath(env = process.env) {
const home = env.HOME || env.USERPROFILE || homedir();