feat: add user input history MCP and rebuild release

This commit is contained in:
shiyue
2026-08-18 09:10:25 +08:00
parent 6ed8c7d30b
commit 389690af64
11 changed files with 957 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ const CCWEB_REPLY_MODES = Object.freeze({
const CCWEB_SEND_MESSAGE_DESCRIPTION = '向指定 ccweb 对话发送一条消息,并以“来自某对话”的气泡在目标对话中展示。必须填写 replyMode仅当来源不需要目标结果时使用 one_way涉及分析、实现、测试、验收、完成后汇报或来源后续依赖目标结果时必须使用 return_and_continue。工具调用会立即返回不阻塞也不等待目标对话完成。';
const CODEX_APP_COMMUNICATION_TOOL_NAMES = new Set([
'ccweb_list_conversations',
'ccweb_list_user_inputs',
'ccweb_set_title',
'ccweb_create_conversation',
'ccweb_send_message',
@@ -75,6 +76,32 @@ const TOOLS = [
additionalProperties: false,
},
},
{
name: 'ccweb_list_user_inputs',
description: '该工具返回用户输入的近 N 次对话列表。',
inputSchema: {
type: 'object',
properties: {
conversationId: {
type: 'string',
description: '可选。目标对话 ID缺省时使用当前 MCP 来源对话。',
},
limit: {
type: 'integer',
minimum: 1,
maximum: 50,
description: '可选。最多返回最近多少条用户输入,默认 15。',
},
maxChars: {
type: 'integer',
minimum: 1,
maximum: 1000,
description: '可选。所有返回正文合计最多多少个 Unicode 字符,默认 1000。',
},
},
additionalProperties: false,
},
},
{
name: 'ccweb_set_title',
description: '设置当前 ccweb 对话标题。只作用于当前来源对话;用户手动重命名后会成功返回但忽略,不再覆盖用户标题。',