chore: rebuild CentOS7 release package

This commit is contained in:
shiyue
2026-06-27 19:47:52 +08:00
parent 911dd84c35
commit cd37ecf10b
14 changed files with 3128 additions and 653 deletions

View File

@@ -10,6 +10,7 @@ function createAgentRuntime(deps) {
loadCodexConfig,
prepareCodexCustomRuntime,
ccwebMcpServerArg,
ccwebMcpServerArgs,
internalMcpUrl,
internalMcpToken,
nodePath,
@@ -63,10 +64,13 @@ function createAgentRuntime(deps) {
function appendCcwebMcpConfig(args, mcpEnv) {
if (!mcpEnv) return;
const envVars = Object.keys(mcpEnv);
const serverArgs = Array.isArray(ccwebMcpServerArgs) && ccwebMcpServerArgs.length > 0
? ccwebMcpServerArgs
: [ccwebMcpServerArg];
args.push(
'-c', 'mcp_servers.ccweb.type="stdio"',
'-c', `mcp_servers.ccweb.command=${tomlString(nodePath || 'node')}`,
'-c', `mcp_servers.ccweb.args=${tomlStringArray([ccwebMcpServerArg])}`,
'-c', `mcp_servers.ccweb.args=${tomlStringArray(serverArgs)}`,
'-c', `mcp_servers.ccweb.env_vars=${tomlStringArray(envVars)}`,
'-c', 'mcp_servers.ccweb.startup_timeout_sec=10',
'-c', 'mcp_servers.ccweb.tool_timeout_sec=60'

View File

@@ -136,6 +136,109 @@ const TOOLS = [
additionalProperties: false,
},
},
{
name: 'ccweb_prompt_user',
description: '在当前来源 ccweb 对话前台渲染一个多问题表单。工具会立即返回不等待用户用户提交后ccweb 会把问题、选择和答案作为一条普通用户消息发回当前对话。',
inputSchema: {
type: 'object',
properties: {
title: {
type: 'string',
maxLength: 160,
description: '表单标题。',
},
description: {
type: 'string',
maxLength: 2000,
description: '可选。表单整体说明。',
},
questions: {
type: 'array',
minItems: 1,
maxItems: 10,
description: '问题数组。每个问题都会渲染候选项和可编辑答案输入区。',
items: {
type: 'object',
properties: {
id: {
type: 'string',
maxLength: 80,
description: '问题 ID。建议稳定唯一缺失时 ccweb 会按顺序生成。',
},
title: {
type: 'string',
maxLength: 160,
description: '问题标题。',
},
question: {
type: 'string',
maxLength: 4000,
description: '问题正文。',
},
required: {
type: 'boolean',
description: '是否必答,默认 true。',
},
selectionMode: {
type: 'string',
enum: ['single', 'multi', 'none'],
description: '候选项选择模式,默认 singlenone 表示只输入答案。',
},
answerPlaceholder: {
type: 'string',
maxLength: 240,
description: '答案输入区占位文案。',
},
defaultAnswer: {
type: 'string',
maxLength: 4000,
description: '答案输入区默认值。',
},
options: {
type: 'array',
maxItems: 8,
description: '候选/推荐选项。点击选项会把 answerText 写入该问题的答案输入区。',
items: {
type: 'object',
properties: {
id: {
type: 'string',
maxLength: 80,
description: '选项 ID。建议稳定唯一缺失时 ccweb 会按顺序生成。',
},
label: {
type: 'string',
maxLength: 240,
description: '选项展示文本。',
},
description: {
type: 'string',
maxLength: 1000,
description: '选项说明。',
},
answerText: {
type: 'string',
maxLength: 4000,
description: '点击该选项后预填到答案输入区的文本。',
},
recommended: {
type: 'boolean',
description: '是否推荐选项。',
},
},
additionalProperties: false,
},
},
},
required: ['question'],
additionalProperties: false,
},
},
},
required: ['questions'],
additionalProperties: false,
},
},
];
function writeMessage(message) {