@sassywares/skills 0.11.8 → 0.11.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassywares/skills",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Lean, explicit-invocation Agent Skills for shipping fast: plan, work, review, validate, ship.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -10,11 +10,11 @@
10
10
  # 3. Everything resolves against the MAIN checkout, so running any of these
11
11
  # from inside a worktree behaves identically.
12
12
  #
13
- # worktree-version: 2
13
+ # worktree-version: 3
14
14
 
15
15
  set -euo pipefail
16
16
 
17
- WT_VERSION="2"
17
+ WT_VERSION="3"
18
18
  WT_LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
19
19
 
20
20
  log() { printf '%s\n' "$*"; }
@@ -92,7 +92,7 @@ while IFS=$'\t' read -r p b; do
92
92
  live="—"
93
93
  fi
94
94
  last="$(wt_verdict "$p")"
95
- printf ' %-34s %-50s %-40s %-5s %s\n' "$b" "$shown" "${line:-—}" "$live" "${last:-—}"
95
+ printf ' %-34s %-50s %-40.40s %-5s %s\n' "$b" "$shown" "${line:-—}" "$live" "${last:-—}"
96
96
  done < <(wt_all)
97
97
 
98
98
  [ "$count" -gt 0 ] || log " no checkouts found — is this a git repository?"
@@ -75,10 +75,10 @@ if [ "$force" -eq 0 ]; then
75
75
  esac
76
76
  fi
77
77
 
78
- if [ "$force" -eq 1 ]; then
79
- git worktree remove --force "$path"
80
- else
81
- git worktree remove "$path"
78
+ if ! { [ "$force" -eq 1 ] && git worktree remove --force "$path" || [ "$force" -eq 0 ] && git worktree remove "$path"; }; then
79
+ printf ' %-9s %s\n' "→" "a half-removed checkout is not a removal: if it is gone from 'git worktree list'" >&2
80
+ printf ' %-9s %s\n' "" "but the folder remains, delete the folder and run: git worktree prune" >&2
81
+ exit 1
82
82
  fi
83
83
  if [ -n "$port" ] && [ "$(wt_owner "$port")" = "$slug" ]; then
84
84
  wt_release "$port" "$slug"
@@ -758,6 +758,12 @@ if (( CHECK )); then
758
758
  else
759
759
  note " worktree tooling v${installed_wt}"
760
760
  fi
761
+ # The version is hand-maintained, so a shipped change that forgot to bump
762
+ # it would look current. Say so when the bytes differ but the numbers do not.
763
+ if [[ -n "$installed_wt" && "$installed_wt" == "$asset_wt" ]] \
764
+ && ! cmp -s "$wt_lib" "$ASSET_WORKTREE/_lib.sh"; then
765
+ note " .sassywares/worktree/_lib.sh matches v${installed_wt} but differs from the shipped copy — extended here, or the assets changed without a bump"
766
+ fi
761
767
  for helper in create list stop remove prune; do
762
768
  [[ -x "$ROOT/.sassywares/worktree/$helper" ]] \
763
769
  || bad "missing or not executable: .sassywares/worktree/$helper"