@geekbeer/minion 2.16.4 → 2.16.5

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 +18 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.16.4",
3
+ "version": "2.16.5",
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
@@ -395,13 +395,24 @@ async function authRoutes(fastify) {
395
395
  if (authInProgress) {
396
396
  clearLlmCache()
397
397
 
398
- // Log credential file check for diagnostics
399
- const credPaths = [
400
- path.join(config.HOME_DIR, '.claude', '.credentials.json'),
401
- path.join(config.HOME_DIR, '.claude', 'credentials.json'),
402
- ]
403
- for (const p of credPaths) {
404
- console.log(`[Auth] Checking ${p}: ${fs.existsSync(p) ? 'EXISTS' : 'not found'}`)
398
+ // List all files in ~/.claude/ for diagnostics
399
+ const claudeDir = path.join(config.HOME_DIR, '.claude')
400
+ try {
401
+ if (fs.existsSync(claudeDir)) {
402
+ const listFiles = (dir, prefix = '') => {
403
+ const entries = fs.readdirSync(dir, { withFileTypes: true })
404
+ for (const e of entries) {
405
+ const rel = prefix ? `${prefix}/${e.name}` : e.name
406
+ if (e.isDirectory()) listFiles(path.join(dir, e.name), rel)
407
+ else console.log(`[Auth] ~/.claude/${rel}`)
408
+ }
409
+ }
410
+ listFiles(claudeDir)
411
+ } else {
412
+ console.log(`[Auth] ~/.claude/ directory does not exist`)
413
+ }
414
+ } catch (err) {
415
+ console.log(`[Auth] Failed to list ~/.claude/: ${err.message}`)
405
416
  }
406
417
  }
407
418