@vruum/skills 0.2.0 → 0.4.1

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.
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: vruum-skills-upgrade
3
+ description: "Upgrade @vruum/skills to the latest npm version and re-sync ~/.vruum/. Use when: upgrade vruum skills, update vruum, pull latest vruum skills, or when the preamble reports UPGRADE_AVAILABLE."
4
+ ---
5
+
6
+ # /vruum-skills-upgrade
7
+
8
+ Upgrade the `@vruum/skills` npm package + re-sync `~/.vruum/` + relink all harness skill dirs.
9
+
10
+ ## Inline upgrade flow (called from preamble)
11
+
12
+ If the calling skill's preamble reported `UPGRADE_AVAILABLE <old> <new>`, follow this flow. It runs inline — when done, the original skill continues.
13
+
14
+ ### Step 1: decide whether to auto-upgrade
15
+
16
+ Read `~/.vruum/config.yaml`. If it contains `auto_upgrade: true`, skip to Step 3 (silent upgrade). Otherwise go to Step 2.
17
+
18
+ ### Step 2: ask the user
19
+
20
+ Use AskUserQuestion with these four options:
21
+
22
+ - **A) Upgrade now** — run the upgrade, return a one-line confirmation, then continue with the original skill.
23
+ - **B) Show changelog first** — fetch `https://raw.githubusercontent.com/vruum-gtm/skills/main/CHANGELOG.md`, show the section for the new version, then re-ask A/C/D.
24
+ - **C) Snooze** — don't upgrade this session. Bump the snooze level:
25
+ ```bash
26
+ # Snooze format: "<version> <level> <epoch>". Level 1=24h, 2=48h, 3+=7d.
27
+ OLD_LEVEL=$(awk '{print $2}' ~/.vruum/update-snoozed 2>/dev/null || echo 0)
28
+ NEW_LEVEL=$((OLD_LEVEL + 1))
29
+ [ $NEW_LEVEL -gt 3 ] && NEW_LEVEL=3
30
+ echo "<new> $NEW_LEVEL $(date +%s)" > ~/.vruum/update-snoozed
31
+ ```
32
+ Replace `<new>` with the version the preamble reported.
33
+ - **D) Skip this session** — do nothing, don't write snooze. Next session will re-prompt.
34
+
35
+ ### Step 3: run the upgrade
36
+
37
+ Detect how `@vruum/skills` was installed (global vs npx) and pick the right command:
38
+
39
+ ```bash
40
+ # If installed globally (vruum-skills is on PATH):
41
+ if command -v vruum-skills >/dev/null 2>&1; then
42
+ OLD=$(cat ~/.vruum/VERSION 2>/dev/null || echo "unknown")
43
+ npm install -g @vruum/skills@latest
44
+ vruum-skills install
45
+ NEW=$(cat ~/.vruum/VERSION 2>/dev/null || echo "unknown")
46
+ else
47
+ # npx-only install — refresh the npx cache and re-run.
48
+ OLD=$(cat ~/.vruum/VERSION 2>/dev/null || echo "unknown")
49
+ npx --yes @vruum/skills@latest install
50
+ NEW=$(cat ~/.vruum/VERSION 2>/dev/null || echo "unknown")
51
+ fi
52
+
53
+ # Write the just-upgraded marker so the next preamble greets with "just updated!".
54
+ echo "$OLD" > ~/.vruum/just-upgraded-from
55
+ rm -f ~/.vruum/last-update-check ~/.vruum/update-snoozed
56
+ ```
57
+
58
+ ### Step 4: report
59
+
60
+ One line: `upgraded @vruum/skills $OLD → $NEW`. Then continue with the original skill.
61
+
62
+ ## Standalone mode (user invoked `/vruum-skills-upgrade` directly)
63
+
64
+ Force a fresh check first, then run the flow above starting from Step 2:
65
+
66
+ ```bash
67
+ ~/.vruum/bin/vruum-skills-update-check --force
68
+ ```
69
+
70
+ If the forced check returns nothing, report `already on latest (v$(cat ~/.vruum/VERSION))` and exit.
71
+
72
+ ## When something goes wrong
73
+
74
+ - `npm install` fails with permissions → tell the user to re-run with `sudo` or fix their npm prefix. Don't auto-sudo.
75
+ - `vruum-skills install` reports skipped skills → surface the conflict message verbatim; user needs to remove conflicting files.
76
+ - Network failure on registry lookup → report `upgrade check failed, try again later` and continue with the original skill (don't block work on a transient fetch error).
package/.mcp.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "vruum": {
4
- "type": "http",
5
- "url": "https://api.vruum.ai/mcp"
6
- }
7
- }
8
- }