feat: add user input history MCP and rebuild release
This commit is contained in:
@@ -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 对话标题。只作用于当前来源对话;用户手动重命名后会成功返回但忽略,不再覆盖用户标题。',
|
||||
|
||||
Reference in New Issue
Block a user