laminark 2.22.4 → 2.22.6
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.
|
@@ -110,5 +110,17 @@ if (startIdx >= 0 && endIdx >= 0) {
|
|
|
110
110
|
fi
|
|
111
111
|
fi
|
|
112
112
|
|
|
113
|
+
# Non-blocking background version check — stderr hint if update available
|
|
114
|
+
(
|
|
115
|
+
LATEST=$(timeout 5 npm view laminark version 2>/dev/null) || true
|
|
116
|
+
if [ -n "$LATEST" ] && [ "$LATEST" != "$CURRENT_VERSION" ]; then
|
|
117
|
+
# Simple version comparison: check if latest is newer
|
|
118
|
+
OLDER=$(printf '%s\n%s' "$CURRENT_VERSION" "$LATEST" | sort -V | head -n1)
|
|
119
|
+
if [ "$OLDER" = "$CURRENT_VERSION" ] && [ "$CURRENT_VERSION" != "$LATEST" ]; then
|
|
120
|
+
echo "[Laminark] Update available: v${CURRENT_VERSION} -> v${LATEST} — run /laminark:update" >&2
|
|
121
|
+
fi
|
|
122
|
+
fi
|
|
123
|
+
) &
|
|
124
|
+
|
|
113
125
|
cd "$PLUGIN_ROOT"
|
|
114
126
|
exec "$@"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update
|
|
3
|
+
description: Update Laminark to the latest version from npm
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run the Laminark update script to check for and install the latest version.
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
1. Run the update script:
|
|
11
|
+
```
|
|
12
|
+
bash "${CLAUDE_PLUGIN_ROOT}/scripts/update.sh"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. Show the output to the user.
|
|
16
|
+
|
|
17
|
+
3. If the update succeeded, tell the user to restart their Claude Code session for changes to take effect.
|