solvdex 2.0.0-alpha.3 → 2.0.0-alpha.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/hooks/hooks.json +18 -4
- package/hooks/pre-tool.sh +17 -0
- package/hooks/session-start.sh +16 -0
- package/hooks/stop.sh +11 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Knowledge management plugins for Claude Code",
|
|
9
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.4"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/ducdmdev/solvdex.git"
|
|
17
17
|
},
|
|
18
18
|
"description": "Auto-capture and retrieve project knowledge - solutions, patterns, gotchas, testing, docs, security, performance",
|
|
19
|
-
"version": "2.0.0-alpha.
|
|
19
|
+
"version": "2.0.0-alpha.4"
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solvdex",
|
|
3
3
|
"description": "Auto-capture and retrieve project knowledge - solutions, patterns, gotchas, testing, docs, security, performance",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "duc.do",
|
|
7
7
|
"email": "ducdm.dev.work@gmail.com"
|
package/hooks/hooks.json
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"hooks": {
|
|
3
|
+
"PreToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Edit|Write",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "./hooks/pre-tool.sh",
|
|
10
|
+
"timeout": 5
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
3
15
|
"SessionStart": [
|
|
4
16
|
{
|
|
5
17
|
"matcher": "",
|
|
6
18
|
"hooks": [
|
|
7
19
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
20
|
+
"type": "command",
|
|
21
|
+
"command": "./hooks/session-start.sh",
|
|
22
|
+
"timeout": 5
|
|
10
23
|
}
|
|
11
24
|
]
|
|
12
25
|
}
|
|
@@ -16,8 +29,9 @@
|
|
|
16
29
|
"matcher": "",
|
|
17
30
|
"hooks": [
|
|
18
31
|
{
|
|
19
|
-
"type": "
|
|
20
|
-
"
|
|
32
|
+
"type": "command",
|
|
33
|
+
"command": "./hooks/stop.sh",
|
|
34
|
+
"timeout": 5
|
|
21
35
|
}
|
|
22
36
|
]
|
|
23
37
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Pre-tool hook: Check wiki for patterns before Edit|Write
|
|
3
|
+
|
|
4
|
+
# Only run if .wiki exists
|
|
5
|
+
if [ ! -d ".wiki" ]; then
|
|
6
|
+
exit 0
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
# Count relevant entries
|
|
10
|
+
patterns=$(find .wiki/patterns -name "*.md" 2>/dev/null | wc -l | tr -d ' ')
|
|
11
|
+
gotchas=$(find .wiki/gotchas -name "*.md" 2>/dev/null | wc -l | tr -d ' ')
|
|
12
|
+
|
|
13
|
+
if [ "$patterns" -gt 0 ] || [ "$gotchas" -gt 0 ]; then
|
|
14
|
+
echo "Solvdex: Found ${patterns} patterns and ${gotchas} gotchas in .wiki/"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
exit 0
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Session start hook: Surface wiki context
|
|
3
|
+
|
|
4
|
+
# Only run if .wiki exists
|
|
5
|
+
if [ ! -d ".wiki" ]; then
|
|
6
|
+
exit 0
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
# Count total entries
|
|
10
|
+
total=$(find .wiki -name "*.md" -not -name "_*" 2>/dev/null | wc -l | tr -d ' ')
|
|
11
|
+
|
|
12
|
+
if [ "$total" -gt 0 ]; then
|
|
13
|
+
echo "Solvdex: Wiki has ${total} entries. Use /wiki search <query> to find solutions."
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
exit 0
|
package/hooks/stop.sh
ADDED