promptup-plugin 0.1.2 → 0.1.4
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/bin/install.cjs +20 -12
- package/package.json +1 -1
- package/skills/pup/config/SKILL.md +13 -0
- package/skills/pup/update/SKILL.md +25 -0
- /package/skills/{eval → pup/eval}/SKILL.md +0 -0
- /package/skills/{pr-report → pup/pr-report}/SKILL.md +0 -0
- /package/skills/{status → pup/status}/SKILL.md +0 -0
package/bin/install.cjs
CHANGED
|
@@ -40,12 +40,18 @@ ${bold}${cyan} └────────────────────
|
|
|
40
40
|
if (hasUninstall) {
|
|
41
41
|
console.log(`${yellow}Uninstalling PromptUp...${reset}\n`);
|
|
42
42
|
|
|
43
|
-
// Remove skills
|
|
43
|
+
// Remove skills (pup namespace)
|
|
44
|
+
const pupDir = path.join(CLAUDE_DIR, 'skills', 'pup');
|
|
45
|
+
if (fs.existsSync(pupDir)) {
|
|
46
|
+
fs.rmSync(pupDir, { recursive: true });
|
|
47
|
+
console.log(` ${red}✗${reset} Removed skills: /pup:eval, /pup:pr-report, /pup:status`);
|
|
48
|
+
}
|
|
49
|
+
// Also clean up old non-namespaced skills from previous versions
|
|
44
50
|
for (const skill of ['eval', 'pr-report', 'status']) {
|
|
45
51
|
const dest = path.join(CLAUDE_DIR, 'skills', skill);
|
|
46
52
|
if (fs.existsSync(dest)) {
|
|
47
53
|
fs.rmSync(dest, { recursive: true });
|
|
48
|
-
console.log(` ${red}✗${reset} Removed skill: ${skill}`);
|
|
54
|
+
console.log(` ${red}✗${reset} Removed legacy skill: ${skill}`);
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
|
|
@@ -216,17 +222,17 @@ try {
|
|
|
216
222
|
console.log(` ${yellow}Try manually: cd ${PLUGIN_DIR} && npm install --production${reset}`);
|
|
217
223
|
}
|
|
218
224
|
|
|
219
|
-
// ─── Step 3: Install skills to ~/.claude/skills/
|
|
225
|
+
// ─── Step 3: Install skills to ~/.claude/skills/pup/ ────────────────────────
|
|
220
226
|
|
|
221
|
-
const
|
|
222
|
-
fs.mkdirSync(
|
|
227
|
+
const pupSkillsDir = path.join(CLAUDE_DIR, 'skills', 'pup');
|
|
228
|
+
fs.mkdirSync(pupSkillsDir, { recursive: true });
|
|
223
229
|
|
|
224
|
-
for (const skill of ['eval', 'pr-report', 'status']) {
|
|
225
|
-
const src = path.join(PLUGIN_DIR, 'skills', skill);
|
|
226
|
-
const dest = path.join(
|
|
230
|
+
for (const skill of ['eval', 'pr-report', 'status', 'config', 'update']) {
|
|
231
|
+
const src = path.join(PLUGIN_DIR, 'skills', 'pup', skill);
|
|
232
|
+
const dest = path.join(pupSkillsDir, skill);
|
|
227
233
|
if (fs.existsSync(src)) {
|
|
228
234
|
copyDirSync(src, dest);
|
|
229
|
-
console.log(` ${green}✓${reset} Skill:
|
|
235
|
+
console.log(` ${green}✓${reset} Skill: /pup:${skill}`);
|
|
230
236
|
}
|
|
231
237
|
}
|
|
232
238
|
|
|
@@ -368,9 +374,11 @@ ${bold}${green}PromptUp installed!${reset}
|
|
|
368
374
|
configure — View/modify settings
|
|
369
375
|
|
|
370
376
|
${bold}Skills:${reset}
|
|
371
|
-
/eval
|
|
372
|
-
/pr-report
|
|
373
|
-
/status
|
|
377
|
+
/pup:eval — Run an evaluation
|
|
378
|
+
/pup:pr-report — Generate PR report
|
|
379
|
+
/pup:status — Check status
|
|
380
|
+
/pup:config — View/modify settings
|
|
381
|
+
/pup:update — Check for updates
|
|
374
382
|
|
|
375
383
|
${bold}Statusline:${reset}
|
|
376
384
|
pupmeter shows your latest score in the status bar
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: config
|
|
3
|
+
description: Show or modify PromptUp configuration. View all settings, get a specific value, or update settings.
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: [key=value ...]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Parse `$ARGUMENTS`:
|
|
9
|
+
- No args → call `mcp__promptup__configure` with no parameters to show all settings
|
|
10
|
+
- A dot-path like `evaluation.interval` → call with `get: "evaluation.interval"`
|
|
11
|
+
- Key=value pairs like `evaluation.interval=5 evaluation.auto_trigger=prompt_count` → parse into an object and call with `set: {"evaluation.interval": 5, "evaluation.auto_trigger": "prompt_count"}`
|
|
12
|
+
|
|
13
|
+
Output the ENTIRE tool response verbatim — it contains a formatted settings table.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update
|
|
3
|
+
description: Check for and install PromptUp plugin updates from npm.
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
1. Check the current installed version:
|
|
8
|
+
```bash
|
|
9
|
+
cat ~/.promptup/plugin/package.json | grep '"version"'
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
2. Check the latest version on npm:
|
|
13
|
+
```bash
|
|
14
|
+
npm view promptup-plugin version
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
3. If a newer version is available, tell the user and run:
|
|
18
|
+
```bash
|
|
19
|
+
npx promptup-plugin@latest
|
|
20
|
+
```
|
|
21
|
+
This re-runs the installer which overwrites files and updates everything.
|
|
22
|
+
|
|
23
|
+
4. If already on latest, say "PromptUp is up to date (vX.Y.Z)".
|
|
24
|
+
|
|
25
|
+
5. Remind the user to restart Claude Code after updating.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|