@trendai-crem/claude-skills 0.6.1 → 0.6.2

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.
Files changed (2) hide show
  1. package/cli.js +5 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -200,7 +200,10 @@ LATEST=$(npm view "$PACKAGE" version 2>/dev/null || echo "")
200
200
  echo "🔄 Updating claude-skills: $CURRENT_VER → $LATEST (background)"
201
201
  (
202
202
  echo "[$(date -Iseconds)] Updating $CURRENT_VER → $LATEST" >> "$LOG"
203
- if npx --yes --package "\${PACKAGE}@\${LATEST}" claude-skills >> "$LOG" 2>&1; then
203
+ INSTALL_DIR="$(mktemp -d)"
204
+ if npm install --prefix "\${INSTALL_DIR}" "\${PACKAGE}@\${LATEST}" --silent >> "$LOG" 2>&1 \
205
+ && node "\${INSTALL_DIR}/node_modules/\${PACKAGE}/cli.js" >> "$LOG" 2>&1; then
206
+ rm -rf "\${INSTALL_DIR}"
204
207
  python3 -c "import json,sys; json.dump({'ts': int(sys.argv[1]), 'version': sys.argv[2]}, open(sys.argv[3],'w'))" "$NOW" "\${LATEST}" "$STAMP"
205
208
  echo "[$(date -Iseconds)] Update successful" >> "$LOG"
206
209
  # Write pending notification for next session start
@@ -208,6 +211,7 @@ echo "🔄 Updating claude-skills: $CURRENT_VER → $LATEST (background)"
208
211
  # macOS system notification (via launchd or background)
209
212
  osascript -e "display notification \"Updated to \${LATEST}\" with title \"claude-skills\"" 2>/dev/null || true
210
213
  else
214
+ rm -rf "\${INSTALL_DIR}"
211
215
  echo "[$(date -Iseconds)] Update failed — will retry next session" >> "$LOG"
212
216
  fi
213
217
  ) &
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trendai-crem/claude-skills",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Claude Code skills installer for the trendai-crem team",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {