From ddec356117dc39c31fa083f3960cf0a65aa97ca5 Mon Sep 17 00:00:00 2001 From: kurihada Date: Wed, 17 Dec 2025 15:12:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(website):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E5=86=85=E5=AE=B9=E4=BB=A5=E5=8F=8D=E6=98=A0?= =?UTF-8?q?=20core=20=E6=A8=A1=E5=9D=97=E5=AE=9E=E9=99=85=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页:更新核心功能展示(9个功能卡片),移除快速开始和 GitHub 链接 - 文档布局:移除 GitHub 链接 - 侧边栏:重组导航结构,分为「已完成功能」和「规划中功能」 --- .../website/src/components/DocsSidebar.astro | 24 ++-- packages/website/src/layouts/DocsLayout.astro | 7 -- packages/website/src/pages/index.astro | 119 +++++------------- 3 files changed, 44 insertions(+), 106 deletions(-) diff --git a/packages/website/src/components/DocsSidebar.astro b/packages/website/src/components/DocsSidebar.astro index a05cf1f..4eec219 100644 --- a/packages/website/src/components/DocsSidebar.astro +++ b/packages/website/src/components/DocsSidebar.astro @@ -10,28 +10,28 @@ const navigation = [ title: '开始', items: [ { title: '概览', href: '/docs' }, + { title: '架构设计', href: '/docs/architecture' }, ], }, { - title: '架构设计', - items: [ - { title: 'GUI Server/Client 架构', href: '/docs/architecture' }, - ], - }, - { - title: '功能设计', + title: '已完成功能', items: [ { title: '编辑模式', href: '/docs/features/edit-modes' }, - { title: '增强型仓库地图', href: '/docs/features/repo-map' }, + { title: 'Checkpoint 系统', href: '/docs/features/checkpoint' }, { title: '多模型支持', href: '/docs/features/multi-model' }, + { title: '会话管理', href: '/docs/features/chat-history' }, + { title: '仓库地图', href: '/docs/features/repo-map' }, + { title: '浏览器 GUI', href: '/docs/features/browser-gui' }, + ], + }, + { + title: '规划中功能', + items: [ + { title: '配置管理', href: '/docs/features/configuration' }, { title: 'Linting 集成', href: '/docs/features/linting' }, { title: '测试集成', href: '/docs/features/testing' }, - { title: '对话历史管理', href: '/docs/features/chat-history' }, { title: 'Watch 模式', href: '/docs/features/watch-mode' }, { title: '语音输入', href: '/docs/features/voice-input' }, - { title: '浏览器 GUI', href: '/docs/features/browser-gui' }, - { title: '配置管理', href: '/docs/features/configuration' }, - { title: 'Checkpoint 增强', href: '/docs/features/checkpoint' }, ], }, ]; diff --git a/packages/website/src/layouts/DocsLayout.astro b/packages/website/src/layouts/DocsLayout.astro index d9c3506..209f8f6 100644 --- a/packages/website/src/layouts/DocsLayout.astro +++ b/packages/website/src/layouts/DocsLayout.astro @@ -29,13 +29,6 @@ const currentPath = Astro.url.pathname;
首页 文档 - - GitHub -
diff --git a/packages/website/src/pages/index.astro b/packages/website/src/pages/index.astro index 5681451..1bd3ec5 100644 --- a/packages/website/src/pages/index.astro +++ b/packages/website/src/pages/index.astro @@ -5,32 +5,47 @@ const features = [ { icon: '⚡', title: '流式对话', - description: '基于 Claude API 的实时流式响应,让 AI 交互更加自然流畅。', + description: '基于 AI SDK 的实时流式响应,支持多种 LLM 提供商(Claude、OpenAI 等)。', }, { icon: '🛠️', - title: '丰富工具', - description: '内置文件操作、Bash 执行、代码搜索等开发工具,直接在终端中完成编程任务。', + title: '23+ 内置工具', + description: '完整的工具系统:文件操作、Bash 执行、Git 管理、代码搜索、Web 搜索等。', }, { icon: '📝', title: '智能编辑', - description: '支持多种编辑模式:整体替换、Diff 补丁、搜索替换,灵活应对各种场景。', + description: '三种编辑模式(Whole、Search-Replace、Diff)+ 统一编辑接口,准确修改代码。', + }, + { + icon: '💾', + title: 'Checkpoint 系统', + description: 'Shadow Git 架构 + 7点安全检查,支持检查点创建、恢复、撤销恢复。', + }, + { + icon: '🔌', + title: 'MCP 集成', + description: '完整的 Model Context Protocol 支持,通过外部工具扩展 AI 能力。', + }, + { + icon: '🎯', + title: 'Agent 系统', + description: '可配置的 Agent 预设(General、Plan、CodeReviewer),支持自定义 Agent。', + }, + { + icon: '📦', + title: '会话管理', + description: '三层存储架构(Message → Part → Storage),自动保存、消息压缩、上下文管理。', }, { icon: '🔍', title: 'LSP 集成', - description: '集成语言服务器协议,提供代码诊断、定义跳转等智能编程支持。', + description: '语言服务器协议支持,提供代码诊断、多语言识别等智能编程能力。', }, { - icon: '💾', - title: 'Checkpoint', - description: 'Shadow Git 检查点系统,随时保存和恢复工作状态,操作更安全。', - }, - { - icon: '🔌', - title: 'MCP 支持', - description: '支持 Model Context Protocol,轻松扩展 AI 能力边界。', + icon: '⚙️', + title: 'Hooks 系统', + description: '工具执行前后的 Hook 机制,支持自定义扩展和流程控制。', }, ]; --- @@ -44,15 +59,7 @@ const features = [
功能 - 快速开始 文档 - - GitHub -
@@ -71,8 +78,8 @@ const features = [

- 基于 Claude API 构建的终端 AI 助手。支持文件操作、代码搜索、智能编辑, - 让 AI 成为你的编程伙伴。 + 功能完整的终端 AI 编程助手。内置 23+ 工具、Shadow Git 检查点、MCP 扩展、 + 多模型支持,让 AI 安全高效地参与编程工作。

@@ -99,17 +106,10 @@ const features = [
- 快速开始 - - - 查看源码 + 查看文档
@@ -137,61 +137,6 @@ const features = [ - -
-
-

快速开始

-

只需几步即可开始使用

- -
- -
-
- - 1 - -

克隆项目

-
-
git clone https://github.com/your-repo/ai-terminal-assistant.git
-cd ai-terminal-assistant
-
- - -
-
- - 2 - -

安装依赖

-
-
pnpm install
-
- - -
-
- - 3 - -

配置 API Key

-
-
echo "ANTHROPIC_API_KEY=your-api-key" > .env
-
- - -
-
- - 4 - -

启动服务

-
-
pnpm server:dev
-
-
-
-
-