@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.
- package/package.json +1 -1
- package/routes/auth.js +18 -7
package/package.json
CHANGED
package/routes/auth.js
CHANGED
|
@@ -395,13 +395,24 @@ async function authRoutes(fastify) {
|
|
|
395
395
|
if (authInProgress) {
|
|
396
396
|
clearLlmCache()
|
|
397
397
|
|
|
398
|
-
//
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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
|
|