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
|
@@ -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
|
-
|
|
28
|
+
# PreCompact 不支持 hookSpecificOutput,用 stopReason 注入提醒
|
|
29
|
+
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
|
-
|
|
23
|
+
# TaskCompleted 不支持 hookSpecificOutput,用 stopReason 注入提醒
|
|
24
|
+
printf '{"stopReason":"%s"}' "$CONTEXT"
|