@nitra/cursor 1.8.1 → 1.8.2

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/mdc/text.mdc CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  description: Обробка та перевірка текстових файлів (cspell, markdownlint-cli2, v8r, CI)
3
3
  alwaysApply: true
4
- version: '1.22'
4
+ version: '1.23'
5
5
  ---
6
6
 
7
7
  **cspell**, **markdownlint-cli2**, **[v8r](https://chris48s.github.io/v8r/)** ([Schema Store](https://www.schemastore.org/)), розширення **DavidAnson.vscode-markdownlint**, workflow **`lint-text`**.
@@ -18,7 +18,7 @@ version: '1.22'
18
18
  }
19
19
  ```
20
20
 
21
- **`package.json`:** скрипт **`lint-text`** і devDependencies **`@nitra/cspell-dict`**. Для української додай **`@cspell/dict-uk-ua`**. **`v8r`** лише через **`bun x v8r`** (зазвичай **`bunx v8r`**), не в devDependencies. Окремий пакет **`markdownlint`** не потрібний.
21
+ **`package.json`:** скрипт **`lint-text`** і devDependencies **`@nitra/cspell-dict`**. Для української додай **`@cspell/dict-uk-ua`**. **`markdownlint-cli2`** викликай у `lint-text` лише через **`bunx markdownlint-cli2`**, не додавай пакет до devDependencies. **`v8r`** лише через **`bun x v8r`** (зазвичай **`bunx v8r`**), не в devDependencies. Окремий пакет **`markdownlint`** не потрібний.
22
22
 
23
23
  У v8r **немає** прапорця тихого режиму; рекомендовано скрипт **`run-v8r.mjs`** з репозиторію пакета `@nitra/cursor` (`npm/scripts/run-v8r.mjs`): один виклик у `lint-text` — під капотом послідовні **`bun x v8r`** для кожного типу (**json**, **json5**, **yml**, **yaml**, **toml**), бо один процес v8r з кількома глобами падає з **98**, якщо хоч один glob порожній, і тоді інші розширення не перевіряються. Вивід при кодах **0** і **98** не показується. Каталог схем **`schemas/v8r-catalog.json`** пакета `@nitra/cursor` скрипт підставляє в v8r сам. За бажання можна передати власні glob-и аргументами скрипта. Шлях до скрипта: `./npm/scripts/…`, `./scripts/…` після копіювання, або `node_modules/@nitra/cursor/scripts/…`.
24
24
 
@@ -157,8 +157,7 @@ Composite **`.github/actions/setup-bun-deps/action.yml`** — checkout, Node 24,
157
157
  "devDependencies": {
158
158
  "@nitra/cspell-dict": "^1.0.185",
159
159
  "@cspell/dict-uk-ua": "^4.0.6",
160
- "@cspell/dict-ru_ru": "^2.3.2",
161
- "markdownlint-cli2": "^0.22.0"
160
+ "@cspell/dict-ru_ru": "^2.3.2"
162
161
  }
163
162
  }
164
163
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Перевіряє текстовий стек за правилом text.mdc.
3
3
  *
4
- * cspell, markdownlint-cli2, скрипт `lint-text` з v8r (`run-v8r.mjs` або чотири `bunx v8r`),
4
+ * cspell, markdownlint через `bunx markdownlint-cli2` у `lint-text` (без devDependencies), v8r (`run-v8r.mjs` або чотири `bunx v8r`),
5
5
  * `.v8rignore` (vscode JSON),
6
6
  * workflow `lint-text.yml`, розширення VSCode для markdownlint.
7
7
  *
@@ -41,7 +41,7 @@ function verifyUkApostropheRuleParagraph(filePath, body, failFn, passFn) {
41
41
  }
42
42
 
43
43
  /**
44
- * Перевіряє відповідність проєкту правилам text.mdc (cspell, markdownlint-cli2, v8r)
44
+ * Перевіряє відповідність проєкту правилам text.mdc (cspell, markdownlint через bunx, v8r)
45
45
  * @returns {Promise<number>} 0 — все OK, 1 — є проблеми
46
46
  */
47
47
  export async function check() {
@@ -154,12 +154,6 @@ export async function check() {
154
154
  fail('@nitra/cspell-dict відсутній — bun add -d @nitra/cspell-dict')
155
155
  }
156
156
 
157
- if (devDeps['markdownlint-cli2']) {
158
- pass('markdownlint-cli2 є в devDependencies')
159
- } else {
160
- fail('markdownlint-cli2 відсутній — bun add -d markdownlint-cli2 (n-text.mdc)')
161
- }
162
-
163
157
  const lintText = pkg.scripts?.['lint-text']
164
158
  const v8rCalls = typeof lintText === 'string' ? (lintText.match(/bunx v8r/g) || []).length : 0
165
159
  const quietCalls = typeof lintText === 'string' ? (lintText.match(/run-v8r?\.mjs/g) || []).length : 0