From 0236d1c155b66cc55a2f7afd29a12119fe785bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Mon, 1 Jun 2026 19:04:14 +0800 Subject: [PATCH] Add files via upload --- web/static/css/style.css | 25 +++++++++++++++++++++++++ web/static/i18n/en-US.json | 10 +++++++++- web/static/i18n/zh-CN.json | 10 +++++++++- web/templates/index.html | 29 ++++++++++++++++++++++++----- 4 files changed, 67 insertions(+), 7 deletions(-) diff --git a/web/static/css/style.css b/web/static/css/style.css index c36b0cab..37e31a54 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -4399,6 +4399,31 @@ header { margin-bottom: 12px; } +.robot-cmd-category { + font-size: 0.8125rem; + font-weight: 600; + color: var(--text-primary); + margin: 16px 0 6px; + letter-spacing: 0.02em; +} + +.robot-cmd-category:first-of-type { + margin-top: 8px; +} + +.robot-cmd-list { + color: var(--text-muted); + font-size: 13px; + line-height: 1.8; + margin: 0 0 4px 16px; + padding: 0; +} + +.robot-cmd-footer { + margin-top: 12px !important; + margin-bottom: 0 !important; +} + .form-hint { display: block; font-size: 0.8125rem; diff --git a/web/static/i18n/en-US.json b/web/static/i18n/en-US.json index f65e7c0f..ce431c87 100644 --- a/web/static/i18n/en-US.json +++ b/web/static/i18n/en-US.json @@ -2095,17 +2095,25 @@ "settingsRobotsExtra": { "botCommandsTitle": "Bot command instructions", "botCommandsDesc": "You can send the following commands in chat (Chinese and English supported):", + "botCmdCategoryGeneral": "General", + "botCmdCategoryConversation": "Conversation", + "botCmdCategoryRole": "Role", + "botCmdCategoryProject": "Project", "botCmdHelp": "Show this help", "botCmdList": "List conversations", "botCmdSwitch": "Switch to conversation", "botCmdNew": "Start new conversation", "botCmdClear": "Clear context", - "botCmdCurrent": "Show current conversation", + "botCmdCurrent": "Show current conversation, role and project", "botCmdStop": "Stop running task", "botCmdRoles": "List roles", "botCmdRole": "Switch role", "botCmdDelete": "Delete conversation", "botCmdVersion": "Show version", + "botCmdProjects": "List projects", + "botCmdNewProject": "Create project and bind current conversation", + "botCmdBindProject": "Bind current conversation to a project", + "botCmdUnbindProject": "Unbind project from current conversation", "botCommandsFooter": "Otherwise, send any text for AI penetration testing / security analysis." }, "mcpDetailModal": { diff --git a/web/static/i18n/zh-CN.json b/web/static/i18n/zh-CN.json index 09457aaa..86067466 100644 --- a/web/static/i18n/zh-CN.json +++ b/web/static/i18n/zh-CN.json @@ -2084,17 +2084,25 @@ "settingsRobotsExtra": { "botCommandsTitle": "机器人命令说明", "botCommandsDesc": "在对话中可发送以下命令(支持中英文):", + "botCmdCategoryGeneral": "通用", + "botCmdCategoryConversation": "对话", + "botCmdCategoryRole": "角色", + "botCmdCategoryProject": "项目", "botCmdHelp": "显示本帮助 | Show this help", "botCmdList": "列出所有对话标题与 ID | List conversations", "botCmdSwitch": "指定对话继续 | Switch to conversation", "botCmdNew": "开启新对话 | Start new conversation", "botCmdClear": "清空当前上下文 | Clear context", - "botCmdCurrent": "显示当前对话 ID 与标题 | Show current conversation", + "botCmdCurrent": "显示当前对话、角色与项目 | Show current conversation", "botCmdStop": "中断当前任务 | Stop running task", "botCmdRoles": "列出所有可用角色 | List roles", "botCmdRole": "切换当前角色 | Switch role", "botCmdDelete": "删除指定对话 | Delete conversation", "botCmdVersion": "显示当前版本号 | Show version", + "botCmdProjects": "列出所有项目 | List projects", + "botCmdNewProject": "创建项目并绑定当前对话 | Create & bind project", + "botCmdBindProject": "将当前对话绑定到项目 | Bind conversation", + "botCmdUnbindProject": "解除当前对话的项目绑定 | Unbind project", "botCommandsFooter": "除以上命令外,直接输入内容将发送给 AI 进行渗透测试/安全分析。Otherwise, send any text for AI penetration testing / security analysis." }, "mcpDetailModal": { diff --git a/web/templates/index.html b/web/templates/index.html index 361d747f..428d8bda 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -2899,20 +2899,39 @@
在对话中可发送以下命令(支持中英文):
-通用
+帮助 help — 显示本帮助 | Show this help版本 version — 显示当前版本号 | Show version对话
+列表 list — 列出所有对话标题与 ID | List conversations切换 <ID> switch <ID> — 指定对话继续 | Switch to conversation新对话 new — 开启新对话 | Start new conversation清空 clear — 清空当前上下文 | Clear context当前 current — 显示当前对话 ID 与标题 | Show current conversation当前 current — 显示当前对话、角色与项目 | Show current conversation停止 stop — 中断当前任务 | Stop running task删除 <ID> delete <ID> — 删除指定对话 | Delete conversation角色
+角色 roles — 列出所有可用角色 | List roles角色 <名> role <name> — 切换当前角色 | Switch role删除 <ID> delete <ID> — 删除指定对话 | Delete conversation版本 version — 显示当前版本号 | Show version除以上命令外,直接输入内容将发送给 AI 进行渗透测试/安全分析。Otherwise, send any text for AI penetration testing / security analysis.
+ +项目
+项目 projects — 列出所有项目 | List projects新建项目 <名称> new project <name> — 创建项目并绑定当前对话 | Create & bind project绑定项目 <ID或名称> bind project <ID|name> — 将当前对话绑定到项目 | Bind conversation解除项目 unbind project — 解除当前对话的项目绑定 | Unbind project