@lythos/skill-deck 0.1.3 → 0.1.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/link.ts +4 -3
package/package.json
CHANGED
package/src/link.ts
CHANGED
|
@@ -119,12 +119,13 @@ function findSource(name: string, coldPool: string, projectDir: string): string
|
|
|
119
119
|
if (existsSync(join(local, "SKILL.md"))) return local;
|
|
120
120
|
|
|
121
121
|
// 4. 扁平扫描: cold_pool/<any-repo>/<name> 或 <any-repo>/skills/<name>
|
|
122
|
-
//
|
|
123
|
-
|
|
122
|
+
// 跳过隐藏目录(agent working set、git、配置等)和 node_modules,
|
|
123
|
+
// 避免把 .claude/skills/ 里的 symlink 误判为有效 cold-pool 源
|
|
124
124
|
try {
|
|
125
125
|
for (const entry of readdirSync(coldPool, { withFileTypes: true })) {
|
|
126
126
|
if (!entry.isDirectory()) continue;
|
|
127
|
-
if (
|
|
127
|
+
if (entry.name.startsWith('.')) continue;
|
|
128
|
+
if (entry.name === 'node_modules') continue;
|
|
128
129
|
const base = join(coldPool, entry.name);
|
|
129
130
|
for (const sub of [join(base, name), join(base, "skills", name)]) {
|
|
130
131
|
if (existsSync(join(sub, "SKILL.md"))) return sub;
|