feat: 恢复 ACP 命令行入口 (--acp) 支持

This commit is contained in:
James Feng 2026-06-04 18:12:27 +08:00
parent 957076c5bd
commit 0b38268491

View File

@ -121,13 +121,12 @@ async function main(): Promise<void> {
return;
}
// CC_Pure: ACP feature not included — commented out
// if (feature('ACP') && process.argv[2] === '--acp') {
// profileCheckpoint('cli_acp_path');
// const { runAcpAgent } = await import('../services/acp/entry.js');
// await runAcpAgent();
// return;
// }
if (feature('ACP') && process.argv[2] === '--acp') {
profileCheckpoint('cli_acp_path');
const { runAcpAgent } = await import('../services/acp/entry.js');
await runAcpAgent();
return;
}
if (args[0] === 'weixin') {
profileCheckpoint('cli_weixin_path');