@geekbeer/minion 2.16.0 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minion-cli.sh +2 -0
- package/package.json +1 -1
- package/routes/auth.js +13 -1
package/minion-cli.sh
CHANGED
package/package.json
CHANGED
package/routes/auth.js
CHANGED
|
@@ -99,11 +99,23 @@ function startClaudeAuth() {
|
|
|
99
99
|
|
|
100
100
|
console.log('[Auth] Creating tmux session for claude auth login')
|
|
101
101
|
|
|
102
|
+
// Extend PATH to include common CLI installation locations
|
|
103
|
+
// (systemd provides a minimal PATH that excludes ~/.local/bin where claude is installed)
|
|
104
|
+
const additionalPaths = [
|
|
105
|
+
path.join(config.HOME_DIR, '.local', 'bin'),
|
|
106
|
+
path.join(config.HOME_DIR, 'bin'),
|
|
107
|
+
path.join(config.HOME_DIR, '.npm-global', 'bin'),
|
|
108
|
+
path.join(config.HOME_DIR, '.claude', 'bin'),
|
|
109
|
+
'/usr/local/bin',
|
|
110
|
+
]
|
|
111
|
+
const extendedPath = [...additionalPaths, process.env.PATH || '/usr/bin:/bin'].join(':')
|
|
112
|
+
|
|
102
113
|
try {
|
|
103
114
|
// Start claude auth login in a new tmux session
|
|
115
|
+
// -e flags pass environment variables to the tmux session
|
|
104
116
|
// CLAUDECODE='' prevents the nesting check
|
|
105
117
|
execSync(
|
|
106
|
-
`tmux new-session -d -s ${TMUX_SESSION} -x 500 -y 40
|
|
118
|
+
`tmux new-session -d -s ${TMUX_SESSION} -x 500 -y 40 -e "HOME=${config.HOME_DIR}" -e "PATH=${extendedPath}" -e "CLAUDECODE=" 'claude auth login'`,
|
|
107
119
|
{ timeout: 5000 }
|
|
108
120
|
)
|
|
109
121
|
} catch (err) {
|