docs: 添加设计和规划文档
- 新增 memory.html 记忆设计文档 - 新增 plan.html 规划文档 - 添加新的项目截图 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
304
docs/memory.html
Normal file
@@ -0,0 +1,304 @@
|
||||
<template>
|
||||
<div class="min-h-screen bg-[#121212] text-gray-200 p-6">
|
||||
<!-- 顶部开关 -->
|
||||
<div class="flex justify-end items-center mb-6">
|
||||
<span class="text-gray-400 mr-3">记忆管理 已启用</span>
|
||||
<button class="w-12 h-6 bg-green-500 rounded-full relative">
|
||||
<span class="absolute right-1 top-1 w-4 h-4 bg-white rounded-full"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 统计卡片区域 -->
|
||||
<div class="grid grid-cols-4 gap-4 mb-6">
|
||||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||||
<div class="text-3xl font-bold text-white mb-1">15</div>
|
||||
<div class="text-sm text-gray-400">总记忆数</div>
|
||||
</div>
|
||||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||||
<div class="text-3xl font-bold text-white mb-1">0.78</div>
|
||||
<div class="text-sm text-gray-400">平均分数</div>
|
||||
</div>
|
||||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||||
<div class="text-3xl font-bold text-cyan-400 mb-1">6</div>
|
||||
<div class="text-sm text-gray-400">经验</div>
|
||||
</div>
|
||||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||||
<div class="text-3xl font-bold text-red-400 mb-1">9</div>
|
||||
<div class="text-sm text-gray-400">经验教训</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 搜索栏 -->
|
||||
<div class="mb-4">
|
||||
<div class="relative">
|
||||
<svg class="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
|
||||
</svg>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="搜索记忆内容..."
|
||||
class="w-full bg-[#0a0a0a] border border-gray-700 rounded-lg py-3 pl-10 pr-4 text-gray-200 focus:outline-none focus:border-gray-600"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 筛选与操作栏 -->
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<div class="flex items-center space-x-3">
|
||||
<select class="bg-[#0a0a0a] border border-gray-700 rounded-lg py-2 px-4 text-gray-200 focus:outline-none">
|
||||
<option>全部类型</option>
|
||||
<option>经验</option>
|
||||
<option>经验教训</option>
|
||||
</select>
|
||||
<button class="flex items-center space-x-2 bg-[#1e1e1e] border border-gray-700 rounded-lg py-2 px-4 text-gray-200 hover:bg-[#2a2a2a]">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||||
</svg>
|
||||
<span>刷新</span>
|
||||
</button>
|
||||
<button class="flex items-center space-x-2 bg-indigo-600 rounded-lg py-2 px-4 text-white hover:bg-indigo-700">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
|
||||
</svg>
|
||||
<span>LLM 智能审查</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 表格区域 -->
|
||||
<div class="bg-[#1e1e1e] rounded-xl overflow-hidden">
|
||||
<table class="w-full">
|
||||
<thead class="bg-[#0a0a0a]">
|
||||
<tr>
|
||||
<th class="w-10 px-4 py-3">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">类型</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">内容</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">分数</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">创建时间</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-800">
|
||||
<!-- 表格行 1 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
当任务明确要求获取外部信息(搜索最新数据、新闻、财报、行业报告等)时,模型必须主动调用搜索工具而非仅依赖内部知识。应在系统提示中明确要求「必须使用搜索工具获取XX最新数据」,首次迭代即调用搜索工具,采用「搜索→分析→输出」的递进式流程,避免模型陷入纯文字生成的空转循环。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 外部信息获取规范 · 属性: 工具调用原则</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-emerald-400 font-medium">0.95</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 表格行 2 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
当任务明确要求获取外部信息(搜索最新数据、新闻、财报、行业报告等)时,模型必须调用搜索工具而非仅依赖内部知识。应在系统提示中明确要求「必须使用搜索工具获取XX最新数据」,并建立工具调用检测机制,确保任务执行路径正确。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 工具调用 · 属性: 错误教训</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-emerald-400 font-medium">0.95</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 表格行 3 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
任务执行应采用「一次性完整输出」策略,避免分批次小幅输出导致的迭代空转。对于代码生成、文件写入等任务,应要求模型一次性完成方案设计与工具执行的完整流程,将确认性回复并入上一次响应,将冗余迭代压缩合并,复杂任务控制在2-3次迭代内完成。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 任务执行效率优化 · 属性: 迭代策略原则</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-emerald-400 font-medium">0.92</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 表格行 4 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
任务执行过程中应建立工具调用检测机制,监控模型是否按要求调用了必要的工具。若迭代中工具调用数为0,说明执行路径不正确,应触发异常处理或提示,而非继续无效迭代。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 执行路径监控 · 属性: 质量控制机制</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-emerald-400 font-medium">0.88</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 表格行 5 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
任务执行应采用「搜索→分析→输出」的递进式流程,避免无效迭代和空转。纯文字生成的重复迭代应压缩或合并,确认性回复应并入上一次响应。简单任务应在1-2次迭代内完成,避免模型陷入重复思考或无意义的自我确认。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 迭代效率 · 属性: 错误教训</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-emerald-400 font-medium">0.85</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 表格行 6 -->
|
||||
<tr class="hover:bg-[#252525]">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||||
对于代码生成或文件写入类任务,应要求模型一次性完整输出或按模块批量输出,避免分批次的小幅输出导致迭代次数过多、执行效率低下。
|
||||
<div class="text-xs text-gray-500 mt-1">主体: 代码生成策略 · 属性: 错误教训</div>
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<span class="text-amber-400 font-medium">0.80</span>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex space-x-2">
|
||||
<button class="text-gray-400 hover:text-white">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-red-400 hover:text-red-300">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 底部文本区域 -->
|
||||
<div class="mt-6 px-4 text-gray-400 text-sm">
|
||||
<div class="mb-2">任务执行复盘发现问题:## 任务执行分析</div>
|
||||
<div class="mb-2">### 问题诊断</div>
|
||||
<div class="mb-2">**核心问题:模型在9次迭代中未执行任何工具调用**</div>
|
||||
<div>从迭代记录看,前9次迭代工具调用数均为0,说明模型一直在"空转"生成文字,未实际搜索最新数据。直到第10次才产出完整报告(包含2025年9月销量等最新数据),说明最后一次才真正调用了搜索工具。</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// 这里可以添加交互逻辑
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 自定义滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: #1a1a1a;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #333;
|
||||
border-radius: 4px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #444;
|
||||
}
|
||||
</style>
|
||||
212
docs/plan.html
Normal file
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>计划任务管理</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<style>
|
||||
/* 自定义滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: #1a1a1a;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #333;
|
||||
border-radius: 4px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #444;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-[#0f0f0f] text-gray-200 min-h-screen font-sans">
|
||||
<!-- 顶部导航栏 -->
|
||||
<header class="flex items-center justify-between px-4 py-2 border-b border-gray-800 bg-[#0a0a0a]">
|
||||
<!-- 左侧状态区 -->
|
||||
<div class="flex items-center space-x-3">
|
||||
<span class="text-gray-300 font-medium">default</span>
|
||||
<span class="flex items-center text-green-400 text-sm">
|
||||
<span class="w-2 h-2 rounded-full bg-green-400 mr-1.5"></span>
|
||||
运行中
|
||||
</span>
|
||||
<span class="bg-blue-600/20 text-blue-400 text-xs px-2 py-0.5 rounded">网页访问</span>
|
||||
<span class="text-gray-400 text-sm">远程地址</span>
|
||||
<span class="text-gray-400 text-sm">1 端点</span>
|
||||
</div>
|
||||
|
||||
<!-- 右侧操作区 -->
|
||||
<div class="flex items-center space-x-4">
|
||||
<button class="flex items-center space-x-1 border border-blue-500 bg-[#0a0a0a] text-white px-3 py-1 rounded text-sm hover:bg-blue-900/20 transition">
|
||||
<span>×</span>
|
||||
<span>断开</span>
|
||||
</button>
|
||||
<button class="text-gray-400 hover:text-white transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-gray-400 hover:text-white transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="text-gray-400 hover:text-white transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<div class="flex items-center ml-4">
|
||||
<span class="text-gray-400 mr-2 text-sm">计划任务 已启用</span>
|
||||
<button class="w-10 h-5 bg-green-500 rounded-full relative">
|
||||
<span class="absolute right-0.5 top-0.5 w-4 h-4 bg-white rounded-full"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 主体内容区 -->
|
||||
<main class="px-6 py-5">
|
||||
<!-- 标题与操作栏 -->
|
||||
<div class="flex justify-between items-start mb-5">
|
||||
<!-- 标题+标签页 -->
|
||||
<div>
|
||||
<h1 class="text-xl font-bold text-white mb-3">计划任务</h1>
|
||||
<div class="flex items-center space-x-6">
|
||||
<button class="text-blue-400 border-b-2 border-blue-500 px-1 py-2 font-medium text-sm -mb-[1px]">进行中 3</button>
|
||||
<button class="text-gray-400 hover:text-white px-1 py-2 text-sm transition">已完成 0</button>
|
||||
<button class="text-gray-400 hover:text-white px-1 py-2 text-sm transition">全部 3</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧操作+搜索区 -->
|
||||
<div class="flex flex-col items-end space-y-2">
|
||||
<div class="flex items-center space-x-3">
|
||||
<button class="flex items-center space-x-1 text-gray-400 hover:text-white text-sm transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||||
</svg>
|
||||
<span>刷新</span>
|
||||
</button>
|
||||
<button class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1.5 rounded text-sm flex items-center space-x-1 transition">
|
||||
<span>+</span>
|
||||
<span>新建任务</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<svg class="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
|
||||
</svg>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="搜索任务..."
|
||||
class="w-full bg-[#0a0a0a] border border-gray-700 rounded-lg py-2 pl-10 pr-4 text-sm text-gray-200 focus:outline-none focus:border-gray-600"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 任务列表 -->
|
||||
<div class="space-y-3">
|
||||
<!-- 任务1:活人感心跳 -->
|
||||
<div class="bg-[#1a1a1a] rounded-lg p-4 hover:bg-[#1e1e1e] transition">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="w-2 h-2 rounded-full bg-green-500"></span>
|
||||
<span class="text-white font-medium">活人感心跳</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">系统任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">Agent 任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">间隔重复</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1">
|
||||
<button class="bg-gray-800 hover:bg-gray-700 text-gray-300 text-xs px-3 py-1 rounded transition">暂停</button>
|
||||
<button class="text-gray-400 hover:text-white p-1 transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center flex-wrap gap-x-8 gap-y-1 text-xs text-gray-400 mb-2">
|
||||
<span>状态: 已调度</span>
|
||||
<span>触发方式: 间隔重复 30 分钟</span>
|
||||
<span>下次执行: 2026/03/10 16:26</span>
|
||||
<span>上次执行: 2026/03/10 15:56</span>
|
||||
<span>通知通道: -</span>
|
||||
<span>执行次数: 13</span>
|
||||
</div>
|
||||
<div class="text-sm text-gray-300">
|
||||
检查是否需要发送主动消息 (问候/提醒/跟进)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 任务2:记忆整理 -->
|
||||
<div class="bg-[#1a1a1a] rounded-lg p-4 hover:bg-[#1e1e1e] transition">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="w-2 h-2 rounded-full bg-green-500"></span>
|
||||
<span class="text-white font-medium">记忆整理</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">系统任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">Agent 任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">间隔重复</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1">
|
||||
<button class="bg-gray-800 hover:bg-gray-700 text-gray-300 text-xs px-3 py-1 rounded transition">暂停</button>
|
||||
<button class="text-gray-400 hover:text-white p-1 transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center flex-wrap gap-x-8 gap-y-1 text-xs text-gray-400 mb-2">
|
||||
<span>状态: 已调度</span>
|
||||
<span>触发方式: 间隔重复 3 小时</span>
|
||||
<span>下次执行: 2026/03/10 18:35</span>
|
||||
<span>上次执行: 2026/03/10 15:35</span>
|
||||
<span>通知通道: -</span>
|
||||
<span>执行次数: 2</span>
|
||||
</div>
|
||||
<div class="text-sm text-gray-300">
|
||||
执行记忆整理: 整理对话历史, 提取精华记忆, 刷新 MEMORY.md
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 任务3:系统自检 -->
|
||||
<div class="bg-[#1a1a1a] rounded-lg p-4 hover:bg-[#1e1e1e] transition">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="w-2 h-2 rounded-full bg-green-500"></span>
|
||||
<span class="text-white font-medium">系统自检</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">系统任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">Agent 任务</span>
|
||||
<span class="bg-gray-700 text-gray-300 text-xs px-2 py-0.5 rounded-full">每天</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1">
|
||||
<button class="bg-gray-800 hover:bg-gray-700 text-gray-300 text-xs px-3 py-1 rounded transition">暂停</button>
|
||||
<button class="text-gray-400 hover:text-white p-1 transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center flex-wrap gap-x-8 gap-y-1 text-xs text-gray-400 mb-2">
|
||||
<span>状态: 已调度</span>
|
||||
<span>触发方式: 每天 04:00</span>
|
||||
<span>下次执行: 2026/03/11 04:00</span>
|
||||
<span>上次执行: 从未</span>
|
||||
<span>通知通道: -</span>
|
||||
<span>执行次数: 0</span>
|
||||
</div>
|
||||
<div class="text-sm text-gray-300">
|
||||
执行系统自检: 分析 ERROR 日志, 尝试修复工具问题, 生成报告
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 300 KiB |
|
Before Width: | Height: | Size: 242 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 121 KiB |
BIN
screenshots/计划任务.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
screenshots/记忆整理.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 38 KiB |