@trendai-crem/claude-skills 0.5.1 → 0.5.3
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/cli.js +2 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -151,8 +151,8 @@ LATEST=$(npm view "$PACKAGE" version 2>/dev/null || echo "")
|
|
|
151
151
|
echo "🔄 Auto-updating claude-skills: $CURRENT_VER → $LATEST"
|
|
152
152
|
(
|
|
153
153
|
echo "[$(date -Iseconds)] Updating $CURRENT_VER → $LATEST" >> "$LOG"
|
|
154
|
-
if npx --yes "
|
|
155
|
-
python3 -c "import json,sys; json.dump({'ts': int(sys.argv[1]), 'version': sys.argv[2]}, open(sys.argv[3],'w'))" "$NOW" "
|
|
154
|
+
if npx --yes "\${PACKAGE}@\${LATEST}" >> "$LOG" 2>&1; then
|
|
155
|
+
python3 -c "import json,sys; json.dump({'ts': int(sys.argv[1]), 'version': sys.argv[2]}, open(sys.argv[3],'w'))" "$NOW" "\${LATEST}" "$STAMP"
|
|
156
156
|
echo "[$(date -Iseconds)] Update successful" >> "$LOG"
|
|
157
157
|
else
|
|
158
158
|
echo "[$(date -Iseconds)] Update failed — will retry next session" >> "$LOG"
|