@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/link.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lythos/skill-deck",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Declarative skill deck governance — cold pool, working set, deny-by-default",
5
5
  "license": "MIT",
6
6
  "type": "module",
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
- // 跳过 agent/working-set 相关目录,避免把 symlink 误判为有效源
123
- const skipDirs = new Set(['.claude', '.kimi', '.git', 'node_modules', '.lythos-curator']);
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 (skipDirs.has(entry.name)) continue;
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;