mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
import * as React from 'react'
|
||||
import { MessageResponse } from 'src/components/MessageResponse.js'
|
||||
import { OutputLine } from 'src/components/shell/OutputLine.js'
|
||||
import { Text } from '@anthropic/ink'
|
||||
import type { ToolProgressData } from 'src/Tool.js'
|
||||
import type { ProgressMessage } from 'src/types/message.js'
|
||||
import { jsonStringify } from 'src/utils/slowOperations.js'
|
||||
import type { Output } from './ListMcpResourcesTool.js'
|
||||
import * as React from 'react';
|
||||
import { MessageResponse } from 'src/components/MessageResponse.js';
|
||||
import { OutputLine } from 'src/components/shell/OutputLine.js';
|
||||
import { Text } from '@anthropic/ink';
|
||||
import type { ToolProgressData } from 'src/Tool.js';
|
||||
import type { ProgressMessage } from 'src/types/message.js';
|
||||
import { jsonStringify } from 'src/utils/slowOperations.js';
|
||||
import type { Output } from './ListMcpResourcesTool.js';
|
||||
|
||||
export function renderToolUseMessage(
|
||||
input: Partial<{ server?: string }>,
|
||||
): React.ReactNode {
|
||||
return input.server
|
||||
? `List MCP resources from server "${input.server}"`
|
||||
: `List all MCP resources`
|
||||
export function renderToolUseMessage(input: Partial<{ server?: string }>): React.ReactNode {
|
||||
return input.server ? `List MCP resources from server "${input.server}"` : `List all MCP resources`;
|
||||
}
|
||||
|
||||
export function renderToolResultMessage(
|
||||
@@ -25,11 +21,11 @@ export function renderToolResultMessage(
|
||||
<MessageResponse height={1}>
|
||||
<Text dimColor>(No resources found)</Text>
|
||||
</MessageResponse>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-restricted-syntax -- human-facing UI, not tool_result
|
||||
const formattedOutput = jsonStringify(output, null, 2)
|
||||
const formattedOutput = jsonStringify(output, null, 2);
|
||||
|
||||
return <OutputLine content={formattedOutput} verbose={verbose} />
|
||||
return <OutputLine content={formattedOutput} verbose={verbose} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user