mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
12 lines
580 B
TypeScript
12 lines
580 B
TypeScript
import * as React from 'react';
|
|
import { AgentsMenu } from '../../components/agents/AgentsMenu.js';
|
|
import type { ToolUseContext } from '../../Tool.js';
|
|
import { getTools } from '../../tools.js';
|
|
import type { LocalJSXCommandOnDone } from '../../types/command.js';
|
|
export async function call(onDone: LocalJSXCommandOnDone, context: ToolUseContext): Promise<React.ReactNode> {
|
|
const appState = context.getAppState();
|
|
const permissionContext = appState.toolPermissionContext;
|
|
const tools = getTools(permissionContext);
|
|
return <AgentsMenu tools={tools} onExit={onDone} />;
|
|
}
|