claude-sdlc 1.5.3 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-sdlc",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "让 Claude Code 严格按 SDLC 规范开发 — 一条命令安装",
5
5
  "bin": {
6
6
  "claude-sdlc": "./bin/cli.js"
@@ -84,7 +84,7 @@ case "$TOOL_NAME" in
84
84
  esac
85
85
 
86
86
  if [ "$BEHAVIOR" = "deny" ] && [ -n "$MESSAGE" ]; then
87
- printf '{"hookSpecificOutput":{"decision":{"behavior":"deny","message":"%s"}}}' "$MESSAGE"
87
+ printf '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"deny","message":"%s"}}}' "$MESSAGE"
88
88
  elif [ "$BEHAVIOR" = "allow" ]; then
89
- printf '{"hookSpecificOutput":{"decision":{"behavior":"allow"}}}'
89
+ printf '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"allow"}}}'
90
90
  fi
@@ -25,4 +25,5 @@ WARNINGS=""
25
25
 
26
26
  CONTEXT="[SDLC 压缩前紧急保存] 上下文即将被压缩!阶段=${PHASE},任务=${TASK},PRD ${PRD_COUNT:-0}条,已修改${FILES_COUNT:-0}个文件。${WARNINGS}请立即用 Edit 更新 project-state.md:(1) 确认 modified_files 列表完整 (2) 将当前工作摘要写入 key_context (3) 更新 last_updated (4) 确认 project_roadmap 和 global_architecture 已记录(如有长期规划)。压缩后早期对话将丢失,这是最后保存机会。"
27
27
 
28
- printf '{"hookSpecificOutput":{"hookEventName":"PreCompact","additionalContext":"%s"}}' "$CONTEXT"
28
+ # PreCompact 不支持 hookSpecificOutput,用 stopReason 注入提醒
29
+ printf '{"stopReason":"%s"}' "$CONTEXT"
@@ -40,4 +40,4 @@ fi
40
40
  [ -z "$CHECKS" ] && exit 0
41
41
 
42
42
  CONTEXT="[SDLC 自检] 阶段=P${PHASE_NUM},已修改${FILES_COUNT:-0}个文件。${CHECKS}"
43
- printf '{"hookSpecificOutput":{"hookEventName":"Stop","additionalContext":"%s"}}' "$CONTEXT"
43
+ printf '{"stopReason":"%s"}' "$CONTEXT"
@@ -20,4 +20,5 @@ fi
20
20
  # 提醒主 Agent 验证子任务结果
21
21
  CONTEXT="[SDLC 子任务完成检查] 阶段=${PHASE}。子任务已完成,请验证:(1) 修改的文件已追加到 modified_files (2) 代码符合 PRD 需求 (3) 无 PRD 范围外的代码。如有问题请修复后再推进。"
22
22
 
23
- printf '{"hookSpecificOutput":{"hookEventName":"TaskCompleted","additionalContext":"%s"}}' "$CONTEXT"
23
+ # TaskCompleted 不支持 hookSpecificOutput,用 stopReason 注入提醒
24
+ printf '{"stopReason":"%s"}' "$CONTEXT"
@@ -222,7 +222,7 @@
222
222
  },
223
223
  "env": {
224
224
  "SDLC_PROJECT": "true",
225
- "SDLC_VERSION": "1.5.3"
225
+ "SDLC_VERSION": "1.5.4"
226
226
  },
227
227
  "attribution": {
228
228
  "commit": "Co-Authored-By: Claude (SDLC Enforced) <noreply@anthropic.com>"