cofluxd 0.9.0 → 0.10.0
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/cofluxd.mjs +4 -0
- package/package.json +1 -1
package/cofluxd.mjs
CHANGED
|
@@ -731,6 +731,10 @@ async function cmdHook() {
|
|
|
731
731
|
agentSessionId: payload.session_id ?? payload["thread-id"] ?? undefined,
|
|
732
732
|
// Claude Notification 的类型枚举(permission_prompt / agent_needs_input …),不含正文
|
|
733
733
|
notification: typeof notification === "string" && notification ? notification : undefined,
|
|
734
|
+
// Stop/SubagentStop 独有:本会话在飞的后台工作(shell/subagent/monitor/workflow)。claude
|
|
735
|
+
// 官方设它就是为了让 hook 区分「真做完了」与「挂起等后台把自己叫醒」。只传条数——条目里的
|
|
736
|
+
// description 是自由文本(含路径与代码片段),按本命令的隐私边界不出机。
|
|
737
|
+
backgroundTasks: Array.isArray(payload.background_tasks) ? payload.background_tasks.length : undefined,
|
|
734
738
|
};
|
|
735
739
|
hookDebug("POST /hook", JSON.stringify(body));
|
|
736
740
|
const res = await fetch(`http://127.0.0.1:${portResult.port}/hook`, {
|