@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 CHANGED
@@ -361,6 +361,8 @@ Restart=always
361
361
  RestartSec=10
362
362
  EnvironmentFile=/opt/minion-agent/.env
363
363
  Environment=MINION_USER=${TARGET_USER}
364
+ Environment=HOME=${TARGET_HOME}
365
+ Environment=DISPLAY=:99
364
366
 
365
367
  [Install]
366
368
  WantedBy=multi-user.target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.16.0",
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,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 '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'`,
107
119
  { timeout: 5000 }
108
120
  )
109
121
  } catch (err) {