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

@@ -4458,7 +4458,7 @@ async function run(): Promise<CommanderCommand> {
...(uploaderReady && {
onTurnComplete: (messages: MessageType[]) => {
void uploaderReady.then((uploader) =>
uploader?.(messages),
(uploader as ((msgs: MessageType[]) => void) | null)?.(messages),
);
},
}),
@@ -4616,13 +4616,13 @@ async function run(): Promise<CommanderCommand> {
createLocalSSHSession,
SSHSessionError,
} = await import("./ssh/createSSHSession.js");
let sshSession;
let sshSession: import('./ssh/createSSHSession.js').SSHSession | undefined;
try {
if (_pendingSSH.local) {
process.stderr.write(
"Starting local ssh-proxy test session...\n",
);
sshSession = createLocalSSHSession({
sshSession = await createLocalSSHSession({
cwd: _pendingSSH.cwd,
permissionMode: _pendingSSH.permissionMode,
dangerouslySkipPermissions:
@@ -4649,7 +4649,7 @@ async function run(): Promise<CommanderCommand> {
},
isTTY
? {
onProgress: (msg) => {
onProgress: (msg: string) => {
hadProgress = true;
process.stderr.write(
`\r ${msg}\x1b[K`,