style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -44,8 +44,10 @@ export function deriveFirstPrompt(
typeof content === 'string'
? content
: content.find(
(block: { type: string; text?: string }): block is { type: 'text'; text: string } =>
block.type === 'text',
(block: {
type: string
text?: string
}): block is { type: 'text'; text: string } => block.type === 'text',
)?.text
if (!raw) return 'Branched conversation'
return (
@@ -240,7 +242,9 @@ export async function call(
// Build LogOption for resume
const now = new Date()
const firstPrompt = deriveFirstPrompt(
serializedMessages.find(m => m.type === 'user') as Extract<SerializedMessage, { type: 'user' }> | undefined,
serializedMessages.find(m => m.type === 'user') as
| Extract<SerializedMessage, { type: 'user' }>
| undefined,
)
// Save custom title - use provided title or firstPrompt as default