@cocorograph/hub-agent 0.8.67 → 0.8.68
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
|
@@ -840,6 +840,10 @@ export class ClaudeStreamSession {
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
_emit(event) {
|
|
843
|
+
if (
|
|
844
|
+
event?.type === "system" &&
|
|
845
|
+
(event.subtype === "hook_started" || event.subtype === "hook_progress")
|
|
846
|
+
) return
|
|
843
847
|
// 走行中タスクの観測は全経路の合流点であるここで 1 回だけ行う(例外は内部で握る)。
|
|
844
848
|
this._observeTaskEvent(event)
|
|
845
849
|
if (!this.onEvent) return
|
|
@@ -1476,6 +1480,7 @@ export class ClaudeStreamSession {
|
|
|
1476
1480
|
env: siblingEnvFor(this.cwd),
|
|
1477
1481
|
canUseTool: (toolName, input) => this._canUseTool(toolName, input),
|
|
1478
1482
|
includePartialMessages: true,
|
|
1483
|
+
includeHookEvents: true,
|
|
1479
1484
|
abortController: this._abortController,
|
|
1480
1485
|
stderr: (data) => this._stderrHandler(data),
|
|
1481
1486
|
}
|
|
@@ -2160,6 +2165,7 @@ export class ClaudeStreamSession {
|
|
|
2160
2165
|
env: siblingEnvFor(this.cwd),
|
|
2161
2166
|
canUseTool: (toolName, input) => this._canUseTool(toolName, input),
|
|
2162
2167
|
includePartialMessages: true,
|
|
2168
|
+
includeHookEvents: true,
|
|
2163
2169
|
abortController: this._residentAbortController,
|
|
2164
2170
|
stderr: (data) => this._stderrHandler(data),
|
|
2165
2171
|
}
|