-
create a web page to work with this file:
import React, { useState, useMemo } from 'react';
import { createRoot } from 'react-dom/client';
type ToolName = 'list_files' | 'read_file' | 'create_file' | 'write_file' | 'delete_file' | 'identify_log_errors';
interface Tool {
value: ToolName;
label: string;
description: string;
params: { name: string; type: 'text' | 'textarea'; label: string }[];
}
const TOOLS: Tool[] = [
{ value: 'list_files', label: 'List Files', description: 'Lists files and directories in a given path.', params: [{ name: 'path', type: 'text', label: 'Directory Path' }] },
{ value: 'read_file', label: 'Read File', description: 'Reads the content of a specific file.', params: [{ name: 'path', type: 'text', label: 'File Path' }] },
{ value: 'create_file', label: 'Create File', description: 'Creates a new file with optional content.', params: [{ name: 'path', type: 'text', label: 'New File Path' }, { name: 'content', type: 'textarea', label: 'Initial Content (optional)' }] },
{ value: 'write_file'… -
initial commit