feat: Enhance CLI components with icons and improve file editing capabilities

- Added icons to the CLI History and CLI Tools headers for better UI representation.
- Updated CLI Status component to include tool-specific classes for styling.
- Refactored CCW Install Panel to improve layout and functionality, including upgrade and uninstall buttons.
- Enhanced the edit-file tool with new features:
  - Support for creating parent directories when writing files.
  - Added dryRun mode for previewing changes without modifying files.
  - Implemented a unified diff output for changes made.
  - Enabled multi-edit support in update mode.
- Introduced a new Smart Search Tool with multiple search modes (auto, exact, fuzzy, semantic, graph) and intent classification.
- Created a Write File Tool to handle file creation and overwriting with backup options.
This commit is contained in:
catlog22
2025-12-11 23:06:47 +08:00
parent 15c5cd5f6e
commit e8f1caa219
13 changed files with 1087 additions and 113 deletions

View File

@@ -56,7 +56,7 @@ function renderCliHistory() {
if (cliExecutionHistory.length === 0) {
container.innerHTML = `
<div class="cli-history-header">
<h3>Execution History</h3>
<h3><i data-lucide="history" class="w-4 h-4"></i> Execution History</h3>
<div class="cli-history-controls">
${renderHistorySearch()}
${renderToolFilter()}
@@ -116,7 +116,7 @@ function renderCliHistory() {
container.innerHTML = `
<div class="cli-history-header">
<h3>Execution History</h3>
<h3><i data-lucide="history" class="w-4 h-4"></i> Execution History</h3>
<div class="cli-history-controls">
${renderHistorySearch()}
${renderToolFilter()}