@devflow-tools/claude-code-plugin 0.18.51 → 0.18.52

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "devflow",
3
3
  "description": "DevFlow — Developer Intelligence Platform: project context, code graph, knowledge base, memory engine, and workflow automation with 14 domain plugins",
4
- "version": "0.18.51",
4
+ "version": "0.18.52",
5
5
  "author": {
6
6
  "name": "DevFlow"
7
7
  },
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "blockedNative": [],
10
10
  "source": "core",
11
- "sourceVersion": "0.18.51",
11
+ "sourceVersion": "0.18.52",
12
12
  "requiresContext": false,
13
13
  "evidenceMode": "runtime",
14
14
  "skillPath": "skills/devflow:doctor/SKILL.md",
@@ -35,7 +35,7 @@
35
35
  "WebFetch"
36
36
  ],
37
37
  "source": "core",
38
- "sourceVersion": "0.18.51",
38
+ "sourceVersion": "0.18.52",
39
39
  "requiresContext": true,
40
40
  "evidenceMode": "mixed",
41
41
  "skillPath": "skills/devflow:context/SKILL.md",
@@ -60,7 +60,7 @@
60
60
  "Explore"
61
61
  ],
62
62
  "source": "core",
63
- "sourceVersion": "0.18.51",
63
+ "sourceVersion": "0.18.52",
64
64
  "requiresContext": true,
65
65
  "evidenceMode": "mixed",
66
66
  "skillPath": "skills/devflow:graph/SKILL.md",
@@ -79,7 +79,7 @@
79
79
  "WebFetch"
80
80
  ],
81
81
  "source": "core",
82
- "sourceVersion": "0.18.51",
82
+ "sourceVersion": "0.18.52",
83
83
  "requiresContext": true,
84
84
  "evidenceMode": "mixed",
85
85
  "skillPath": "skills/devflow:knowledge/SKILL.md",
@@ -103,7 +103,7 @@
103
103
  "Explore"
104
104
  ],
105
105
  "source": "core",
106
- "sourceVersion": "0.18.51",
106
+ "sourceVersion": "0.18.52",
107
107
  "requiresContext": true,
108
108
  "evidenceMode": "mixed",
109
109
  "skillPath": "skills/devflow:memory/SKILL.md",
@@ -119,7 +119,7 @@
119
119
  ],
120
120
  "blockedNative": [],
121
121
  "source": "core",
122
- "sourceVersion": "0.18.51",
122
+ "sourceVersion": "0.18.52",
123
123
  "requiresContext": true,
124
124
  "evidenceMode": "mixed",
125
125
  "skillPath": "skills/devflow:workflow/SKILL.md",
@@ -152,7 +152,7 @@
152
152
  ],
153
153
  "blockedNative": [],
154
154
  "source": "core",
155
- "sourceVersion": "0.18.51",
155
+ "sourceVersion": "0.18.52",
156
156
  "requiresContext": true,
157
157
  "evidenceMode": "mixed",
158
158
  "skillPath": "skills/devflow:delivery/SKILL.md",
@@ -59,15 +59,34 @@ if [ -n "$RULE_COUNT" ]; then
59
59
  GATE_DETAIL="启用规则: ${RULE_COUNT}"
60
60
  fi
61
61
 
62
+ # A configuration file only proves registration. Probe the same bundled
63
+ # runtime Claude will launch so startup status reflects actual MCP readiness.
64
+ MCP_HEALTH_JSON=""
65
+ MCP_HEALTH_STATUS="unavailable"
66
+ MCP_HEALTH_DETAIL=""
67
+ MCP_SERVER_BIN="${PLUGIN_ROOT}/node_modules/@devflow-tools/mcp-server/bin/devflow-mcp.cjs"
68
+ if [ -x "$DEVFLOW_NODE" ] && [ -f "$MCP_SERVER_BIN" ]; then
69
+ MCP_HEALTH_JSON=$("$DEVFLOW_NODE" "$MCP_SERVER_BIN" --healthcheck 2>/dev/null || true)
70
+ if [ -n "$MCP_HEALTH_JSON" ] && command -v python3 >/dev/null 2>&1; then
71
+ MCP_HEALTH_STATUS=$(printf '%s' "$MCP_HEALTH_JSON" | python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('status','failed'))" 2>/dev/null || echo "failed")
72
+ MCP_HEALTH_DETAIL=$(printf '%s' "$MCP_HEALTH_JSON" | python3 -c "import json,sys; d=json.load(sys.stdin); print('toolCount=%s serverVersion=%s' % (d.get('toolCount','?'), d.get('serverInfoVersion') or '?'))" 2>/dev/null || true)
73
+ else
74
+ MCP_HEALTH_STATUS="failed"
75
+ MCP_HEALTH_DETAIL="healthcheck returned no result"
76
+ fi
77
+ else
78
+ MCP_HEALTH_DETAIL="healthcheck runtime not found"
79
+ fi
80
+
62
81
  # Append Gateway status to summary
63
82
  GATEWAY_STATUS=$'\n\n━━━━━━ DevFlow Gateway ━━━━━━\n'
64
83
  # Check if devflow MCP server is configured (token will be auto-generated by ensureSessionToken)
65
84
  if [ -f "$PLUGIN_ROOT/.mcp.json" ] && grep -q '"devflow"' "$PLUGIN_ROOT/.mcp.json" 2>/dev/null; then
66
- GATEWAY_STATUS="${GATEWAY_STATUS}Status: 🟢 DevFlow MCP 已配置(插件级)"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
85
+ GATEWAY_STATUS="${GATEWAY_STATUS}Status: server=${MCP_HEALTH_STATUS} DevFlow MCP 已配置(插件级)"$'\n'"${MCP_HEALTH_DETAIL}"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
67
86
  elif [ -f ~/.claude/.mcp.json ] && grep -q '"devflow"' ~/.claude/.mcp.json 2>/dev/null; then
68
- GATEWAY_STATUS="${GATEWAY_STATUS}Status: 🟢 DevFlow MCP 已配置"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
87
+ GATEWAY_STATUS="${GATEWAY_STATUS}Status: server=${MCP_HEALTH_STATUS} DevFlow MCP 已配置"$'\n'"${MCP_HEALTH_DETAIL}"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
69
88
  elif [ -f .mcp.json ] && grep -q '"devflow"' .mcp.json 2>/dev/null; then
70
- GATEWAY_STATUS="${GATEWAY_STATUS}Status: 🟢 DevFlow MCP 已配置(项目级)"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
89
+ GATEWAY_STATUS="${GATEWAY_STATUS}Status: server=${MCP_HEALTH_STATUS} DevFlow MCP 已配置(项目级)"$'\n'"${MCP_HEALTH_DETAIL}"$'\n'"Gate 层数: ${GATE_COUNT} (${GATE_DETAIL})"$'\n'
71
90
  else
72
91
  GATEWAY_STATUS="${GATEWAY_STATUS}Status: 🔴 未配置 DevFlow MCP Server"$'\n请将 devflow MCP 配置加入 .mcp.json\n'
73
92
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/claude-code-plugin",
3
- "version": "0.18.51",
3
+ "version": "0.18.52",
4
4
  "description": "Claude Code hooks and skills for the DevFlow development intelligence runtime.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -12,20 +12,20 @@
12
12
  "verify:runtime-dependencies": "node --import tsx scripts/verify-runtime-dependencies.ts"
13
13
  },
14
14
  "dependencies": {
15
- "@devflow-tools/benchmark": "0.18.51",
16
- "@devflow-tools/context-engine": "0.18.51",
17
- "@devflow-tools/database": "0.18.51",
18
- "@devflow-tools/mcp-server": "0.18.51",
19
- "@devflow-tools/memory-engine": "0.18.51",
20
- "@devflow-tools/sdk": "0.18.51",
21
- "@devflow-tools/semantic-engine": "0.18.51",
22
- "@devflow-tools/server": "0.18.51",
23
- "@devflow-tools/task-runtime": "0.18.51",
24
- "@devflow-tools/telemetry": "0.18.51",
25
- "@devflow-tools/workflow-engine": "0.18.51"
15
+ "@devflow-tools/benchmark": "0.18.52",
16
+ "@devflow-tools/context-engine": "0.18.52",
17
+ "@devflow-tools/database": "0.18.52",
18
+ "@devflow-tools/mcp-server": "0.18.52",
19
+ "@devflow-tools/memory-engine": "0.18.52",
20
+ "@devflow-tools/sdk": "0.18.52",
21
+ "@devflow-tools/semantic-engine": "0.18.52",
22
+ "@devflow-tools/server": "0.18.52",
23
+ "@devflow-tools/task-runtime": "0.18.52",
24
+ "@devflow-tools/telemetry": "0.18.52",
25
+ "@devflow-tools/workflow-engine": "0.18.52"
26
26
  },
27
27
  "devDependencies": {
28
- "@devflow-tools/devflow": "0.18.51"
28
+ "@devflow-tools/devflow": "0.18.52"
29
29
  },
30
30
  "allowScripts": {
31
31
  "better-sqlite3@12.11.1": true,