@nitra/cursor 1.16.0 → 1.16.1

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,13 @@
4
4
 
5
5
  Формат — [Keep a Changelog](https://keepachangelog.com/uk/1.1.0/), нумерація — [SemVer](https://semver.org/lang/uk/).
6
6
 
7
+ ## [1.16.1] - 2026-05-24
8
+
9
+ ### Fixed
10
+
11
+ - **`npm/rules/ga/js/workflows.mjs::GA_POLICY_DIR`** — flat-layout regression: `join(HERE, '..', '..', 'policy')` давав `npm/rules/policy/` замість `npm/rules/ga/policy/`. `HERE` для `rules/<rule>/js/<concern>.mjs` живе на 1 рівень ближче до `rules/<rule>/`, ніж попередній nested layout. Виправлено на `join(HERE, '..', 'policy')` — `loadTemplate(concernDir)` тепер реально читає `template/<workflow>.snippet.yml`, замість тихо повертати `{}` і втрачати `data.template.snippet.*` у rego-перевірках (`step0_with_canonical` і т.д. падали з-за `null`). Тест `check-ga: shellcheck в PATH > exit 0` тепер pass.
12
+ - **`npm/rules/adr/js/hooks.mjs::BUNDLED_HOOKS_DIR`** і **`npm/rules/adr/js/tests/hooks.test.mjs::BUNDLED_HOOKS_DIR`** — той самий клас regression-у: `..` на одне більше за потрібне після flat-layout, тож шлях зривався у `cursor/.claude-template/hooks/` замість `npm/.claude-template/hooks/`, через що `check-adr` та 4 тести у `hooks.test.mjs` падали з `ENOENT`/`канонічний скрипт не знайдено`. У `hooks.mjs` `..×4` → `..×3`; у тесті `..×5` → `..×4`.
13
+
7
14
  ## [1.16.0] - 2026-05-24
8
15
 
9
16
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",
@@ -37,7 +37,7 @@ const CURSOR_HOOKS_PATH = '.cursor/hooks.json'
37
37
  const EOL_RE = /\r?\n/u
38
38
 
39
39
  const here = dirname(fileURLToPath(import.meta.url))
40
- const BUNDLED_HOOKS_DIR = join(here, '..', '..', '..', '..', '.claude-template', 'hooks')
40
+ const BUNDLED_HOOKS_DIR = join(here, '..', '..', '..', '.claude-template', 'hooks')
41
41
 
42
42
  /**
43
43
  * Відносний шлях до managed hook-скрипта у проєкті.
@@ -27,7 +27,7 @@ import { runConftestBatch } from '../../../scripts/lib/run-conftest-batch.mjs'
27
27
  import { loadTemplate } from '../../../scripts/lib/template.mjs'
28
28
 
29
29
  const HERE = dirname(fileURLToPath(import.meta.url))
30
- const GA_POLICY_DIR = join(HERE, '..', '..', 'policy')
30
+ const GA_POLICY_DIR = join(HERE, '..', 'policy')
31
31
 
32
32
  /** Шаблони наявності MegaLinter у вмісті workflow */
33
33
  const MEGALINTER_USE_PATTERNS = [/oxsecurity\/megalinter-action/i, /megalinter\/megalinter/i]