mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: 完成一大波类型修复, 虽然 any 很多
This commit is contained in:
@@ -1658,7 +1658,7 @@ export function REPL({
|
||||
if (lastAssistant?.type !== 'assistant') return false;
|
||||
const content = lastAssistant.message.content;
|
||||
if (typeof content === 'string') return false;
|
||||
const contentArr = content as Array<{ type: string; id?: string; name?: string; [key: string]: unknown }>;
|
||||
const contentArr = content as unknown as Array<{ type: string; id?: string; name?: string; [key: string]: unknown }>;
|
||||
const inProgressToolUses = contentArr.filter(b => b.type === 'tool_use' && b.id && inProgressToolUseIDs.has(b.id));
|
||||
return inProgressToolUses.length > 0 && inProgressToolUses.every(b => b.type === 'tool_use' && b.name === SLEEP_TOOL_NAME);
|
||||
}, [messages, inProgressToolUseIDs]);
|
||||
|
||||
@@ -181,9 +181,9 @@ export function ResumeConversation({
|
||||
const crossProjectCheck = checkCrossProjectResume(log_0, showAllProjects, worktreePaths);
|
||||
if (crossProjectCheck.isCrossProject) {
|
||||
if (!crossProjectCheck.isSameRepoWorktree) {
|
||||
const raw = await setClipboard(crossProjectCheck.command);
|
||||
const raw = await setClipboard((crossProjectCheck as any).command);
|
||||
if (raw) process.stdout.write(raw);
|
||||
setCrossProjectCommand(crossProjectCheck.command);
|
||||
setCrossProjectCommand((crossProjectCheck as any).command);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user