@nitra/cursor 3.2.0 → 3.2.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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.1] - 2026-06-01
4
+
5
+ ### Fixed
6
+
7
+ - worktree-only skills: прибрано shell expansion з preflight, щоб агент створював worktree literal-командами без confirmation prompt
8
+
3
9
  ## [3.2.0] - 2026-06-01
4
10
 
5
11
  ### Added
package/bin/n-cursor.js CHANGED
@@ -651,7 +651,7 @@ function buildClaudeWorktreeEnforcementSectionLines() {
651
651
  '',
652
652
  '## Worktree-only skills (`meta.json` → `worktree: true`)',
653
653
  '',
654
- 'Скіл із **`worktree: true`** у `meta.json` запускається **виключно** в окремому git-worktree (`.worktrees/<current-branch>-<suffix>/`) — **не** в основному дереві й **не** паралельно. Перший крок такого скіла (блок `n-cursor:worktree:start` у його `SKILL.md`) — **preflight**: якщо `git rev-parse --show-toplevel` не вказує під `.worktrees/`, **STOP** і не питай користувача про назву гілки; створи worktree від поточної гілки готовим snippet з `SKILL.md` за конвенцією `<current-branch>-<suffix>`. Чисте робоче дерево — **не** привід пропустити preflight.',
654
+ 'Скіл із **`worktree: true`** у `meta.json` запускається **виключно** в окремому git-worktree (`.worktrees/<current-branch>-<suffix>/`) — **не** в основному дереві й **не** паралельно. Перший крок такого скіла (блок `n-cursor:worktree:start` у його `SKILL.md`) — **preflight**: якщо `git rev-parse --show-toplevel` не вказує під `.worktrees/`, **STOP** і не питай користувача про назву гілки; створи worktree від поточної гілки готовим snippet з `SKILL.md` за конвенцією `<current-branch>-<suffix>` і без shell expansion (без command substitution, variable expansion чи backticks). Чисте робоче дерево — **не** привід пропустити preflight.',
655
655
  ''
656
656
  ]
657
657
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",
@@ -114,14 +114,18 @@ function buildNoticeBody(suffix) {
114
114
  **Крок 0 — preflight (обовʼязковий, перед будь-якими іншими діями).** Якщо перевірка падає — **STOP**: не питай користувача про назву гілки, а сам створи worktree від поточної гілки за конвенцією \`<current-branch>-${suffix}\`. Суфікс \`${suffix}\` — коротка (до 10 символів) транслітерація задачі. Не виконуй **жоден** наступний крок скіла, поки preflight не завершився успіхом.
115
115
 
116
116
  \`\`\`bash
117
- if ! git rev-parse --show-toplevel | grep -q '/\\.worktrees/'; then
118
- B=$(git branch --show-current)
119
- W="\${B}-${suffix}"
120
- P="\${W//\\//-}"
121
- npx @nitra/cursor worktree add "$W" "n-${suffix}: worktree-only skill"
122
- cd ".worktrees/\${P}"
123
- fi
124
- \`\`\``;
117
+ git rev-parse --show-toplevel
118
+ git branch --show-current
119
+ \`\`\`
120
+
121
+ Якщо перша команда показала, що ти **не** в \`.worktrees/\`, візьми вивід другої команди як \`<current-branch>\` і виконай **literal-команди без shell expansion** (без command substitution, variable expansion чи backticks). Наприклад, якщо поточна гілка \`feature/x\`:
122
+
123
+ \`\`\`bash
124
+ npx @nitra/cursor worktree add "feature/x-${suffix}" "n-${suffix}: worktree-only skill"
125
+ cd ".worktrees/feature-x-${suffix}"
126
+ \`\`\`
127
+
128
+ Тобто branch-argument лишає slash як у git-гілці, а шлях для \`cd\` бере sanitized форму: slash → \`-\`.`;
125
129
  }
126
130
 
127
131
  /**