feat: build

This commit is contained in:
claude-code-best
2026-03-31 19:22:47 +08:00
commit f90eee85d8
1906 changed files with 514339 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import type { Message, UserMessage } from '../types/message.js'
// tool_result messages share type:'user' with human turns; the discriminant
// is the optional toolUseResult field. Four PRs (#23977, #24016, #24022,
// #24025) independently fixed miscounts from checking type==='user' alone.
export function isHumanTurn(m: Message): m is UserMessage {
return m.type === 'user' && !m.isMeta && m.toolUseResult === undefined
}