@devflow-tools/cli 0.13.3 → 0.14.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.
- package/dist/plugin-files/hooks/post-tool-use-failure +19 -0
- package/dist/plugin-files/hooks/pre-compact +19 -0
- package/dist/plugin-files/hooks/session-end +19 -0
- package/dist/plugin-files/hooks/user-prompt-submit +19 -0
- package/dist/plugin-files/hooks.json +50 -8
- package/dist/plugin-files/package.json +2 -2
- package/package.json +27 -27
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$SCRIPT_DIR/..}"
|
|
6
|
+
CLIENT_JS="$PLUGIN_ROOT/dist/hooks/hook-client.js"
|
|
7
|
+
FALLBACK_JS="$PLUGIN_ROOT/dist/hooks/post-tool-use-failure.js"
|
|
8
|
+
|
|
9
|
+
INPUT="$(cat)"
|
|
10
|
+
|
|
11
|
+
if [ -f "$CLIENT_JS" ]; then
|
|
12
|
+
node "$CLIENT_JS" post-tool-use-failure "$INPUT" 2>/dev/null || {
|
|
13
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
14
|
+
}
|
|
15
|
+
elif [ -f "$FALLBACK_JS" ]; then
|
|
16
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
exit 0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$SCRIPT_DIR/..}"
|
|
6
|
+
CLIENT_JS="$PLUGIN_ROOT/dist/hooks/hook-client.js"
|
|
7
|
+
FALLBACK_JS="$PLUGIN_ROOT/dist/hooks/pre-compact.js"
|
|
8
|
+
|
|
9
|
+
INPUT="$(cat)"
|
|
10
|
+
|
|
11
|
+
if [ -f "$CLIENT_JS" ]; then
|
|
12
|
+
node "$CLIENT_JS" pre-compact "$INPUT" 2>/dev/null || {
|
|
13
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
14
|
+
}
|
|
15
|
+
elif [ -f "$FALLBACK_JS" ]; then
|
|
16
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
exit 0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$SCRIPT_DIR/..}"
|
|
6
|
+
CLIENT_JS="$PLUGIN_ROOT/dist/hooks/hook-client.js"
|
|
7
|
+
FALLBACK_JS="$PLUGIN_ROOT/dist/hooks/session-end.js"
|
|
8
|
+
|
|
9
|
+
INPUT="$(cat)"
|
|
10
|
+
|
|
11
|
+
if [ -f "$CLIENT_JS" ]; then
|
|
12
|
+
node "$CLIENT_JS" session-end "$INPUT" 2>/dev/null || {
|
|
13
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
14
|
+
}
|
|
15
|
+
elif [ -f "$FALLBACK_JS" ]; then
|
|
16
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
exit 0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$SCRIPT_DIR/..}"
|
|
6
|
+
CLIENT_JS="$PLUGIN_ROOT/dist/hooks/hook-client.js"
|
|
7
|
+
FALLBACK_JS="$PLUGIN_ROOT/dist/hooks/user-prompt-submit.js"
|
|
8
|
+
|
|
9
|
+
INPUT="$(cat)"
|
|
10
|
+
|
|
11
|
+
if [ -f "$CLIENT_JS" ]; then
|
|
12
|
+
node "$CLIENT_JS" user-prompt-submit "$INPUT" 2>/dev/null || {
|
|
13
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
14
|
+
}
|
|
15
|
+
elif [ -f "$FALLBACK_JS" ]; then
|
|
16
|
+
echo "$INPUT" | node "$FALLBACK_JS" 2>/dev/null || true
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
exit 0
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\""
|
|
10
|
-
"async": false
|
|
9
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\""
|
|
11
10
|
}
|
|
12
11
|
]
|
|
13
12
|
}
|
|
@@ -18,8 +17,7 @@
|
|
|
18
17
|
"hooks": [
|
|
19
18
|
{
|
|
20
19
|
"type": "command",
|
|
21
|
-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use\""
|
|
22
|
-
"async": false
|
|
20
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use\""
|
|
23
21
|
}
|
|
24
22
|
]
|
|
25
23
|
}
|
|
@@ -30,8 +28,30 @@
|
|
|
30
28
|
"hooks": [
|
|
31
29
|
{
|
|
32
30
|
"type": "command",
|
|
33
|
-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use\""
|
|
34
|
-
|
|
31
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use\""
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"PostToolUseFailure": [
|
|
37
|
+
{
|
|
38
|
+
"matcher": "*",
|
|
39
|
+
"hooks": [
|
|
40
|
+
{
|
|
41
|
+
"type": "command",
|
|
42
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use-failure\""
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"UserPromptSubmit": [
|
|
48
|
+
{
|
|
49
|
+
"matcher": "",
|
|
50
|
+
"hooks": [
|
|
51
|
+
{
|
|
52
|
+
"type": "command",
|
|
53
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit\"",
|
|
54
|
+
"timeout": 30
|
|
35
55
|
}
|
|
36
56
|
]
|
|
37
57
|
}
|
|
@@ -42,8 +62,30 @@
|
|
|
42
62
|
"hooks": [
|
|
43
63
|
{
|
|
44
64
|
"type": "command",
|
|
45
|
-
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/stop\""
|
|
46
|
-
|
|
65
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/stop\""
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"PreCompact": [
|
|
71
|
+
{
|
|
72
|
+
"matcher": "",
|
|
73
|
+
"hooks": [
|
|
74
|
+
{
|
|
75
|
+
"type": "command",
|
|
76
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact\"",
|
|
77
|
+
"timeout": 15
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"SessionEnd": [
|
|
83
|
+
{
|
|
84
|
+
"matcher": "",
|
|
85
|
+
"hooks": [
|
|
86
|
+
{
|
|
87
|
+
"type": "command",
|
|
88
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-end\""
|
|
47
89
|
}
|
|
48
90
|
]
|
|
49
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/claude-code-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "DevFlow — Developer Intelligence Platform for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"deploy": "npx tsx scripts/inject-gates.ts --deploy"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@devflow-tools/mcp-server": "^0.
|
|
11
|
+
"@devflow-tools/mcp-server": "^0.14.0"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"pi-package",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@colbymchenry/codegraph": "^1.1.1",
|
|
15
|
-
"@devflow-tools/adapters": "^0.
|
|
16
|
-
"@devflow-tools/benchmark": "^0.
|
|
17
|
-
"@devflow-tools/context-engine": "^0.
|
|
18
|
-
"@devflow-tools/database": "^0.
|
|
19
|
-
"@devflow-tools/knowledge-engine": "^0.
|
|
20
|
-
"@devflow-tools/mcp-server": "^0.
|
|
21
|
-
"@devflow-tools/memory-engine": "^0.
|
|
22
|
-
"@devflow-tools/plugin-animation": "^0.
|
|
23
|
-
"@devflow-tools/plugin-css": "^0.
|
|
24
|
-
"@devflow-tools/plugin-docker": "^0.
|
|
25
|
-
"@devflow-tools/plugin-electron": "^0.
|
|
26
|
-
"@devflow-tools/plugin-git": "^0.
|
|
27
|
-
"@devflow-tools/plugin-graphql": "^0.
|
|
28
|
-
"@devflow-tools/plugin-nest": "^0.
|
|
29
|
-
"@devflow-tools/plugin-nextjs": "^0.
|
|
30
|
-
"@devflow-tools/plugin-performance": "^0.
|
|
31
|
-
"@devflow-tools/plugin-react": "^0.
|
|
32
|
-
"@devflow-tools/plugin-tailwind": "^0.
|
|
33
|
-
"@devflow-tools/plugin-taro": "^0.
|
|
34
|
-
"@devflow-tools/plugin-ui-layout": "^0.
|
|
35
|
-
"@devflow-tools/plugin-vue": "^0.
|
|
36
|
-
"@devflow-tools/sdk": "^0.
|
|
37
|
-
"@devflow-tools/server": "^0.
|
|
38
|
-
"@devflow-tools/telemetry": "^0.
|
|
39
|
-
"@devflow-tools/workflow-engine": "^0.
|
|
15
|
+
"@devflow-tools/adapters": "^0.14.0",
|
|
16
|
+
"@devflow-tools/benchmark": "^0.14.1",
|
|
17
|
+
"@devflow-tools/context-engine": "^0.14.1",
|
|
18
|
+
"@devflow-tools/database": "^0.14.0",
|
|
19
|
+
"@devflow-tools/knowledge-engine": "^0.14.1",
|
|
20
|
+
"@devflow-tools/mcp-server": "^0.14.1",
|
|
21
|
+
"@devflow-tools/memory-engine": "^0.14.1",
|
|
22
|
+
"@devflow-tools/plugin-animation": "^0.14.0",
|
|
23
|
+
"@devflow-tools/plugin-css": "^0.14.0",
|
|
24
|
+
"@devflow-tools/plugin-docker": "^0.14.0",
|
|
25
|
+
"@devflow-tools/plugin-electron": "^0.14.0",
|
|
26
|
+
"@devflow-tools/plugin-git": "^0.14.0",
|
|
27
|
+
"@devflow-tools/plugin-graphql": "^0.14.0",
|
|
28
|
+
"@devflow-tools/plugin-nest": "^0.14.0",
|
|
29
|
+
"@devflow-tools/plugin-nextjs": "^0.14.0",
|
|
30
|
+
"@devflow-tools/plugin-performance": "^0.14.0",
|
|
31
|
+
"@devflow-tools/plugin-react": "^0.14.0",
|
|
32
|
+
"@devflow-tools/plugin-tailwind": "^0.14.0",
|
|
33
|
+
"@devflow-tools/plugin-taro": "^0.14.0",
|
|
34
|
+
"@devflow-tools/plugin-ui-layout": "^0.14.0",
|
|
35
|
+
"@devflow-tools/plugin-vue": "^0.14.0",
|
|
36
|
+
"@devflow-tools/sdk": "^0.14.0",
|
|
37
|
+
"@devflow-tools/server": "^0.14.1",
|
|
38
|
+
"@devflow-tools/telemetry": "^0.14.0",
|
|
39
|
+
"@devflow-tools/workflow-engine": "^0.14.0",
|
|
40
40
|
"@inquirer/prompts": "^7.10.1",
|
|
41
41
|
"chalk": "^5.3.0",
|
|
42
42
|
"commander": "^12.0.0"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dist",
|
|
50
50
|
"bin"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "07fb824cb8de1f1b41fb45949bda10e2b95d389c"
|
|
53
53
|
}
|