@orderful/droid 0.11.1 → 0.13.0
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/CHANGELOG.md +22 -0
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js +245 -37
- package/dist/commands/tui.js.map +1 -1
- package/dist/lib/config.d.ts +9 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +26 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/tools.d.ts +11 -5
- package/dist/lib/tools.d.ts.map +1 -1
- package/dist/lib/tools.js +30 -1
- package/dist/lib/tools.js.map +1 -1
- package/dist/lib/types.d.ts +5 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/tools/droid/TOOL.yaml +18 -0
- package/dist/tools/droid/skills/droid/SKILL.md +117 -0
- package/dist/tools/droid/skills/droid/SKILL.yaml +7 -0
- package/package.json +1 -1
- package/src/commands/tui.tsx +401 -41
- package/src/lib/config.ts +30 -1
- package/src/lib/tools.ts +45 -6
- package/src/lib/types.ts +6 -0
- package/src/tools/droid/TOOL.yaml +18 -0
- package/src/tools/droid/skills/droid/SKILL.md +117 -0
- package/src/tools/droid/skills/droid/SKILL.yaml +7 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: droid
|
|
3
|
+
description: "Core droid meta-skill for update awareness. Checks for droid updates and notifies users from within Claude Code."
|
|
4
|
+
globs:
|
|
5
|
+
- "**/*"
|
|
6
|
+
alwaysApply: false
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Droid
|
|
10
|
+
|
|
11
|
+
Core meta-skill for droid update awareness.
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Notify users about droid CLI updates from within Claude Code. Users who don't run `droid` often may miss updates - this skill proactively nudges them.
|
|
16
|
+
|
|
17
|
+
## Update Checking
|
|
18
|
+
|
|
19
|
+
### When to Check
|
|
20
|
+
|
|
21
|
+
1. **Proactively** - Check for **droid CLI updates** once near the start of each session. This is specifically about the `@orderful/droid` npm package, not general software updates.
|
|
22
|
+
2. **On request** - When user explicitly asks about droid updates ("any droid updates?", "is droid up to date?", "check droid version")
|
|
23
|
+
|
|
24
|
+
### How to Check
|
|
25
|
+
|
|
26
|
+
Run this command to get the latest published version:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm view @orderful/droid version 2>/dev/null
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Compare against the installed version. To find the installed version, check:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
cat ~/.droid/config.yaml | grep -A1 "droid:" | grep "version:" | awk '{print $2}'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Or if droid skill isn't in config yet, check the npm global:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm list -g @orderful/droid --depth=0 2>/dev/null | grep @orderful/droid | awk -F@ '{print $NF}'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Update Notification Format
|
|
45
|
+
|
|
46
|
+
When an update is available, output this notification:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
[● ●] "I suggest a new strategy: let the Wookiee update."
|
|
50
|
+
|
|
51
|
+
Droid v{latest} is available (you have v{current}).
|
|
52
|
+
Run `droid` to update, then restart Claude Code.
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Replace `{latest}` with the npm version and `{current}` with the installed version.
|
|
56
|
+
|
|
57
|
+
### Session Tracking
|
|
58
|
+
|
|
59
|
+
**Important:** Only show the update notification ONCE per session. After showing it:
|
|
60
|
+
- Do not show it again in the same conversation
|
|
61
|
+
- Do not repeat it even if user continues chatting
|
|
62
|
+
|
|
63
|
+
If the user explicitly asks about updates again, you can confirm whether they're up to date.
|
|
64
|
+
|
|
65
|
+
## Examples
|
|
66
|
+
|
|
67
|
+
### Proactive Check (Session Start)
|
|
68
|
+
|
|
69
|
+
User: "Help me refactor this function"
|
|
70
|
+
|
|
71
|
+
*[Claude checks for droid updates as part of initial response]*
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
[● ●] "I suggest a new strategy: let the Wookiee update."
|
|
75
|
+
|
|
76
|
+
Droid v0.12.0 is available (you have v0.11.0).
|
|
77
|
+
Run `droid` to update, then restart Claude Code.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
Now, let me help you refactor that function...
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### User Request
|
|
85
|
+
|
|
86
|
+
User: "Is droid up to date?"
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
Let me check...
|
|
90
|
+
|
|
91
|
+
[● ●] "I suggest a new strategy: let the Wookiee update."
|
|
92
|
+
|
|
93
|
+
Droid v0.12.0 is available (you have v0.11.0).
|
|
94
|
+
Run `droid` to update, then restart Claude Code.
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Or if already up to date:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
[● ●] Droid is up to date (v0.12.0).
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Already Notified This Session
|
|
104
|
+
|
|
105
|
+
User: "Any other updates?"
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
I already mentioned the droid update earlier. You're on v0.11.0, latest is v0.12.0.
|
|
109
|
+
Run `droid` when you're ready to update.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Behaviour Notes
|
|
113
|
+
|
|
114
|
+
- Keep the check quick (timeout after 3 seconds)
|
|
115
|
+
- If the npm check fails (network issues), silently skip - don't error
|
|
116
|
+
- The droid eyes `[● ●]` and Star Wars quote are intentional branding - always include them
|
|
117
|
+
- Be helpful but not annoying - one nudge per session is enough
|