@geekbeer/minion 2.16.1 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/routes/auth.js +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "description": "AI Agent runtime for Minion - manages status and skill deployment on VPS",
5
5
  "main": "server.js",
6
6
  "bin": {
package/routes/auth.js CHANGED
@@ -99,12 +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
- // HOME must be set explicitly because systemd clears environment variables
106
117
  execSync(
107
- `tmux new-session -d -s ${TMUX_SESSION} -x 500 -y 40 'HOME="${config.HOME_DIR}" CLAUDECODE="" claude auth login'`,
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'`,
108
119
  { timeout: 5000 }
109
120
  )
110
121
  } catch (err) {