@nitra/cursor 1.8.6 → 1.8.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/bin/n-cursor.js +1 -4
- package/mdc/k8s.mdc +1 -0
- package/package.json +1 -1
- package/scripts/check-ga.mjs +2 -2
- package/scripts/check-text.mjs +9 -1
package/bin/n-cursor.js
CHANGED
|
@@ -424,10 +424,7 @@ async function removeOrphanManagedSkillDirs(skillsRoot, configSkills) {
|
|
|
424
424
|
* @returns {Promise<void>}
|
|
425
425
|
*/
|
|
426
426
|
async function syncClaudeMd(configRules, configSkills) {
|
|
427
|
-
const lines = [
|
|
428
|
-
`<!-- Цей файл генерується автоматично через \`npx ${PACKAGE_NAME}\`. Не редагуй вручну. -->`,
|
|
429
|
-
'',
|
|
430
|
-
]
|
|
427
|
+
const lines = [`<!-- Цей файл генерується автоматично через \`npx ${PACKAGE_NAME}\`. Не редагуй вручну. -->`, '']
|
|
431
428
|
|
|
432
429
|
for (const rule of configRules) {
|
|
433
430
|
const fileName = `${RULE_PREFIX}${normalizeRuleName(rule)}`
|
package/mdc/k8s.mdc
CHANGED
|
@@ -145,6 +145,7 @@ jobs:
|
|
|
145
145
|
```yaml
|
|
146
146
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.9-standalone-strict/secret-v1.json
|
|
147
147
|
```
|
|
148
|
+
|
|
148
149
|
3. **`apiVersion: group/version`** і **group** у **`YANNH_GROUPS`** у скрипті → yannh:
|
|
149
150
|
`https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/<PIN>/<kind>-<group-з-крапками-як-дефіси>-<version>.json`
|
|
150
151
|
Приклади: `apps/v1` + `Deployment` → `deployment-apps-v1.json`; `networking.k8s.io/v1` + `Ingress` → `ingress-networking-k8s-io-v1.json`.
|
package/package.json
CHANGED
package/scripts/check-ga.mjs
CHANGED
|
@@ -94,10 +94,10 @@ export async function check() {
|
|
|
94
94
|
|
|
95
95
|
if (files.includes('apply-k8s.yml')) {
|
|
96
96
|
const content = await readFile(`${wfDir}/apply-k8s.yml`, 'utf8')
|
|
97
|
-
if (content.includes('**/k8s
|
|
97
|
+
if (content.includes('**/k8s/**/*.yaml')) {
|
|
98
98
|
pass('apply-k8s.yml має правильний paths trigger')
|
|
99
99
|
} else {
|
|
100
|
-
fail('apply-k8s.yml не містить paths: **/k8s
|
|
100
|
+
fail('apply-k8s.yml не містить paths: **/k8s/**/*.yaml')
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
package/scripts/check-text.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Перевіряє текстовий стек за правилом text.mdc.
|
|
3
3
|
*
|
|
4
|
-
* cspell, markdownlint через `bunx markdownlint-cli2` у `lint-text` (без
|
|
4
|
+
* cspell, markdownlint через `bunx markdownlint-cli2` у `lint-text` (без оголошення пакета в package.json), заборона
|
|
5
|
+
* `markdownlint-cli2` у dependencies/devDependencies, v8r (`run-v8r.mjs` або чотири `bunx v8r`),
|
|
5
6
|
* `.v8rignore` (vscode JSON),
|
|
6
7
|
* workflow `lint-text.yml`, розширення VSCode для markdownlint.
|
|
7
8
|
*
|
|
@@ -154,6 +155,13 @@ export async function check() {
|
|
|
154
155
|
fail('@nitra/cspell-dict відсутній — bun add -d @nitra/cspell-dict')
|
|
155
156
|
}
|
|
156
157
|
|
|
158
|
+
const rootDeps = pkg.dependencies || {}
|
|
159
|
+
if (devDeps['markdownlint-cli2'] || rootDeps['markdownlint-cli2']) {
|
|
160
|
+
fail(
|
|
161
|
+
'markdownlint-cli2 не додавай у dependencies/devDependencies — лише bunx у lint-text (n-text.mdc); прибери з package.json і bun i'
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
|
|
157
165
|
const lintText = pkg.scripts?.['lint-text']
|
|
158
166
|
const v8rCalls = typeof lintText === 'string' ? (lintText.match(/bunx v8r/g) || []).length : 0
|
|
159
167
|
const quietCalls = typeof lintText === 'string' ? (lintText.match(/run-v8r?\.mjs/g) || []).length : 0
|