(props: {
tools: readonly ToolSummary[];
selectedToolId: string | null;
policies: readonly ToolkitPolicyResponse[];
onManageConnections: () => void;
onSelectTool: (toolId: string) => void;
onSetPolicy: (pattern: string, action: ToolPolicyAction) => void;
onClearPolicy: (pattern: string) => void;
})
| 722 | } |
| 723 | |
| 724 | function ToolkitToolsPanel(props: { |
| 725 | tools: readonly ToolSummary[]; |
| 726 | selectedToolId: string | null; |
| 727 | policies: readonly ToolkitPolicyResponse[]; |
| 728 | onManageConnections: () => void; |
| 729 | onSelectTool: (toolId: string) => void; |
| 730 | onSetPolicy: (pattern: string, action: ToolPolicyAction) => void; |
| 731 | onClearPolicy: (pattern: string) => void; |
| 732 | }) { |
| 733 | return ( |
| 734 | <div |
| 735 | role="region" |
| 736 | aria-label="Toolkit tools" |
| 737 | className="flex min-h-0 shrink-0 flex-col border-r border-border/60" |
| 738 | style={toolkitToolTreeStyle} |
| 739 | > |
| 740 | {props.tools.length === 0 ? ( |
| 741 | <ToolkitContentsEmpty onManageConnections={props.onManageConnections} /> |
| 742 | ) : ( |
| 743 | <ToolTree |
| 744 | tools={props.tools} |
| 745 | selectedToolId={props.selectedToolId} |
| 746 | onSelect={props.onSelectTool} |
| 747 | onSetPolicy={props.onSetPolicy} |
| 748 | onClearPolicy={props.onClearPolicy} |
| 749 | patternForDisplay={identityPattern} |
| 750 | policies={props.policies} |
| 751 | groupByConnection |
| 752 | /> |
| 753 | )} |
| 754 | </div> |
| 755 | ); |
| 756 | } |
| 757 | |
| 758 | function AddConnectionDialog(props: { |
| 759 | open: boolean; |
nothing calls this directly
no outgoing calls
no test coverage detected