mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-19 06:45:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,27 +1,20 @@
|
||||
import React from 'react'
|
||||
import { Box } from '@anthropic/ink'
|
||||
import { BashTool } from '@claude-code-best/builtin-tools/tools/BashTool/BashTool.js'
|
||||
import type { ShellProgress } from '../types/tools.js'
|
||||
import { UserBashInputMessage } from './messages/UserBashInputMessage.js'
|
||||
import { ShellProgressMessage } from './shell/ShellProgressMessage.js'
|
||||
import React from 'react';
|
||||
import { Box } from '@anthropic/ink';
|
||||
import { BashTool } from '@claude-code-best/builtin-tools/tools/BashTool/BashTool.js';
|
||||
import type { ShellProgress } from '../types/tools.js';
|
||||
import { UserBashInputMessage } from './messages/UserBashInputMessage.js';
|
||||
import { ShellProgressMessage } from './shell/ShellProgressMessage.js';
|
||||
|
||||
type Props = {
|
||||
input: string
|
||||
progress: ShellProgress | null
|
||||
verbose: boolean
|
||||
}
|
||||
input: string;
|
||||
progress: ShellProgress | null;
|
||||
verbose: boolean;
|
||||
};
|
||||
|
||||
export function BashModeProgress({
|
||||
input,
|
||||
progress,
|
||||
verbose,
|
||||
}: Props): React.ReactNode {
|
||||
export function BashModeProgress({ input, progress, verbose }: Props): React.ReactNode {
|
||||
return (
|
||||
<Box flexDirection="column" marginTop={1}>
|
||||
<UserBashInputMessage
|
||||
addMargin={false}
|
||||
param={{ text: `<bash-input>${input}</bash-input>`, type: 'text' }}
|
||||
/>
|
||||
<UserBashInputMessage addMargin={false} param={{ text: `<bash-input>${input}</bash-input>`, type: 'text' }} />
|
||||
{progress ? (
|
||||
<ShellProgressMessage
|
||||
fullOutput={progress.fullOutput}
|
||||
@@ -38,5 +31,5 @@ export function BashModeProgress({
|
||||
})
|
||||
)}
|
||||
</Box>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user