@radnine/claude-session-daemon 0.7.3 → 0.7.4
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/src/persona-scanner.js +7 -1
package/package.json
CHANGED
package/src/persona-scanner.js
CHANGED
|
@@ -49,7 +49,13 @@ async function scanPersonas(workingDir, opts = {}) {
|
|
|
49
49
|
|
|
50
50
|
const personas = [];
|
|
51
51
|
for (const entry of entries) {
|
|
52
|
-
|
|
52
|
+
// Accept symlinks too — vault setups (e.g. Command Center) often
|
|
53
|
+
// symlink .claude/personas/<slug>.md to a canonical Agents/*.md
|
|
54
|
+
// note so the persona and the vault note share one source.
|
|
55
|
+
// fs.readFile follows symlinks transparently; if the link is broken
|
|
56
|
+
// or points at a non-file, _parsePersonaFile logs and skips.
|
|
57
|
+
if (!entry.name.endsWith('.md')) continue;
|
|
58
|
+
if (!entry.isFile() && !entry.isSymbolicLink()) continue;
|
|
53
59
|
const filePath = path.join(personaDir, entry.name);
|
|
54
60
|
const persona = await _parsePersonaFile(filePath, entry.name, workingDir, logger);
|
|
55
61
|
if (persona) personas.push(persona);
|