@trendai-crem/claude-skills 0.7.0 → 0.7.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.
- package/cli.js +2 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -104,7 +104,7 @@ function setupAutoUpdate() {
|
|
|
104
104
|
e => !e.hooks?.some(h => typeof h.command === 'string' && h.command === hookScript)
|
|
105
105
|
);
|
|
106
106
|
settings.hooks.UserPromptSubmit.push({
|
|
107
|
-
hooks: [{ type: 'command', command: hookScript
|
|
107
|
+
hooks: [{ type: 'command', command: hookScript }]
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
// Atomic write
|
|
@@ -154,7 +154,6 @@ LATEST=$(npm view "$PACKAGE" version 2>/dev/null || echo "")
|
|
|
154
154
|
[[ "$LATEST" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$ ]] || exit 0
|
|
155
155
|
|
|
156
156
|
# Notify via Claude Code systemMessage (shows in UI)
|
|
157
|
-
|
|
158
|
-
"$INSTALLED" "$LATEST"
|
|
157
|
+
python3 -c "import json,sys; print(json.dumps({'systemMessage': 'claude-skills update: ' + sys.argv[1] + ' \u2192 ' + sys.argv[2] + chr(10) + 'Run: npx @trendai-crem/claude-skills@latest'}))" "$INSTALLED" "$LATEST"
|
|
159
158
|
`;
|
|
160
159
|
}
|