mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
删除未使用的文件(BuiltinStatusLine.tsx、4 个重复的 .ts stub)、 移除约 55 个文件中未使用的 React 导入、 清理约 50 处未使用的导入/变量/参数。 净减少 ~296 行代码,precheck 4077 测试全部通过。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
604 B
TypeScript
13 lines
604 B
TypeScript
import { HooksConfigMenu } from '../../components/hooks/HooksConfigMenu.js';
|
|
import { logEvent } from '../../services/analytics/index.js';
|
|
import { getTools } from '../../tools.js';
|
|
import type { LocalJSXCommandCall } from '../../types/command.js';
|
|
|
|
export const call: LocalJSXCommandCall = async (onDone, context) => {
|
|
logEvent('tengu_hooks_command', {});
|
|
const appState = context.getAppState();
|
|
const permissionContext = appState.toolPermissionContext;
|
|
const toolNames = getTools(permissionContext).map(tool => tool.name);
|
|
return <HooksConfigMenu toolNames={toolNames} onExit={onDone} />;
|
|
};
|