@nitra/cursor 1.11.7 → 1.11.8

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  Формат — [Keep a Changelog](https://keepachangelog.com/uk/1.1.0/), нумерація — [SemVer](https://semver.org/lang/uk/).
6
6
 
7
+ ## [1.11.8] - 2026-05-15
8
+
9
+ ### Changed
10
+
11
+ - **`npm/bin/n-cursor.js::syncSkills`** — файл `auto.md` зі скілу більше **не** копіюється у `.cursor/skills/n-<id>/`. `auto.md` — це службова мета для CLI-сторони (`scripts/auto-skills.mjs` читає його з пакета, щоб вирішити, чи автоматично активувати скіл у `.n-cursor.json`), у проєкті він зайвий і лише засмічує `.cursor/skills/`. Додатково: якщо у `.cursor/skills/n-<id>/auto.md` вже лежить старий артефакт минулих синків, він прибирається при наступному `npx @nitra/cursor` (через `unlink`). Каталог-приймач лишається без `auto.md` — тільки `SKILL.md` (і будь-які інші файли скілу, якщо зʼявляться). Заголовний коментар у `npm/bin/n-cursor.js` оновлено відповідно.
12
+
7
13
  ## [1.11.7] - 2026-05-15
8
14
 
9
15
  ### Changed
package/bin/n-cursor.js CHANGED
@@ -46,6 +46,8 @@
46
46
  * skills/<id>/ (без префікса); у проєкті — .cursor/skills/n-<id>/ (префікс n-, як n-*.mdc).
47
47
  * Якщо ключа skills немає, за замовчуванням підтягуються всі підкаталоги skills/ (лише імена без префікса n-).
48
48
  * Зайві каталоги n-* у .cursor/skills, яких немає у списку, видаляються.
49
+ * Файл `auto.md` у скілі — джерело правди для auto-skills у CLI (`scripts/auto-skills.mjs`)
50
+ * і у проєкт не копіюється; раніше синхронізовані `auto.md` прибираються при наступному синку.
49
51
  *
50
52
  * Якщо в корені є package.json і в ньому ще немає \@nitra/cursor у devDependencies (і не оголошено
51
53
  * в dependencies), CLI дописує devDependencies з діапазоном ^<version> поточного пакету — зручно після npx.
@@ -771,9 +773,12 @@ async function syncSkills(configSkills, bundledSkillsDir = BUNDLED_SKILLS_DIR) {
771
773
  await mkdir(destDir, { recursive: true })
772
774
  const files = await readdir(srcDir)
773
775
  for (const file of files) {
776
+ if (file === 'auto.md') continue
774
777
  const content = await readFile(join(srcDir, file), 'utf8')
775
778
  await writeFile(join(destDir, file), content, 'utf8')
776
779
  }
780
+ const stalePath = join(destDir, 'auto.md')
781
+ if (existsSync(stalePath)) await unlink(stalePath)
777
782
  console.log(`✅`)
778
783
  success++
779
784
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.11.7",
3
+ "version": "1.11.8",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",