feat: 全部类型问题解决

This commit is contained in:
claude-code-best
2026-04-11 10:24:00 +08:00
parent 7088fe3c8b
commit 6a70056910
135 changed files with 671 additions and 503 deletions

View File

@@ -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'