mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -2377,7 +2377,7 @@ async function* executeHooks({
|
||||
)
|
||||
// Inject timing fields for hook visibility
|
||||
if (promptResult.message?.type === 'attachment') {
|
||||
const att = promptResult.message.attachment
|
||||
const att = promptResult.message.attachment!
|
||||
if (
|
||||
att.type === 'hook_success' ||
|
||||
att.type === 'hook_non_blocking_error'
|
||||
@@ -2417,7 +2417,7 @@ async function* executeHooks({
|
||||
)
|
||||
// Inject timing fields for hook visibility
|
||||
if (agentResult.message?.type === 'attachment') {
|
||||
const att = agentResult.message.attachment
|
||||
const att = agentResult.message.attachment!
|
||||
if (
|
||||
att.type === 'hook_success' ||
|
||||
att.type === 'hook_non_blocking_error'
|
||||
|
||||
Reference in New Issue
Block a user