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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Knowledge management plugins for Claude Code",
9
- "version": "2.0.0-alpha.3"
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.3"
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.3",
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": "prompt",
9
- "prompt": "SessionStart hook additional context: If the project has a .wiki/ directory, use the solvdex:wiki-advisor agent to check for relevant wiki entries that might help with the current task. Look for entries matching the task keywords, error patterns, or related concepts."
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": "prompt",
20
- "prompt": "Stop hook additional context: If a problem was solved during this session and the project has a .wiki/ directory, consider using the solvdex:wiki-capture agent to capture the solution for future reference. Check if the solution is novel and worth documenting."
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
@@ -0,0 +1,11 @@
1
+ #!/bin/bash
2
+ # Stop hook: Hint about capturing solutions
3
+
4
+ # Only run if .wiki exists
5
+ if [ ! -d ".wiki" ]; then
6
+ exit 0
7
+ fi
8
+
9
+ # Silent - just a reminder in verbose mode
10
+ # To capture: use /wiki add
11
+ exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solvdex",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.4",
4
4
  "description": "Knowledge management system for Claude Code - auto-captures and retrieves project solutions",
5
5
  "files": [
6
6
  ".claude-plugin/",