@sassywares/skills 0.11.4 → 0.11.5

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.4",
3
+ "version": "0.11.5",
4
4
  "description": "Lean, explicit-invocation Agent Skills for shipping fast: plan, work, review, validate, ship.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
 
15
15
  set -euo pipefail
16
16
 
17
- WT_VERSION="1"
17
+ WT_VERSION="2"
18
18
  WT_LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
19
19
 
20
20
  log() { printf '%s\n' "$*"; }
@@ -504,6 +504,10 @@ if (( CHECK )); then
504
504
  if [[ -f "$installed_lib" ]]; then
505
505
  lib_v="$(sed -n 's/^# workspace-git-version: //p' "$installed_lib" | head -n 1)"
506
506
  asset_lib_v="$(sed -n 's/^# workspace-git-version: //p' "$ASSET_WORKSPACE/_lib.sh" | head -n 1)"
507
+ lib_var="$(sed -n 's/^WORKSPACE_GIT_VERSION="\(.*\)"/\1/p' "$installed_lib" | head -n 1)"
508
+ if [[ -n "$lib_var" && -n "$lib_v" && "$lib_var" != "$lib_v" ]]; then
509
+ bad ".sassywares/workspace/_lib.sh header says v${lib_v} but the script reports v${lib_var} — the file was half-bumped"
510
+ fi
507
511
  if [[ -z "$lib_v" ]]; then
508
512
  bad "installed .sassywares/workspace/_lib.sh has no workspace-git-version line"
509
513
  elif [[ -n "$asset_lib_v" && "$lib_v" != "$asset_lib_v" ]]; then
@@ -743,6 +747,10 @@ if (( CHECK )); then
743
747
  if [[ -f "$wt_lib" ]]; then
744
748
  installed_wt="$(sed -n 's/^# worktree-version: //p' "$wt_lib" | head -n 1)"
745
749
  asset_wt="$(sed -n 's/^# worktree-version: //p' "$ASSET_WORKTREE/_lib.sh" | head -n 1)"
750
+ installed_wt_var="$(sed -n 's/^WT_VERSION="\(.*\)"/\1/p' "$wt_lib" | head -n 1)"
751
+ if [[ -n "$installed_wt_var" && -n "$installed_wt" && "$installed_wt_var" != "$installed_wt" ]]; then
752
+ bad ".sassywares/worktree/_lib.sh header says v${installed_wt} but the script reports v${installed_wt_var} — the file was half-bumped"
753
+ fi
746
754
  if [[ -z "$installed_wt" ]]; then
747
755
  bad "installed .sassywares/worktree/_lib.sh has no worktree-version line"
748
756
  elif [[ -n "$asset_wt" && "$installed_wt" != "$asset_wt" ]]; then