Commit 1d4b7c2c5c2c5f12c29d86f250baf7a4d2fc78fb

Authored by yibo
1 parent ff6b47ad

chore: mute verbose ClaudeCliProtocol stream logs to prevent terminal spam

packages/acp-core/protocol/ClaudeCliProtocol.js
@@ -90,7 +90,7 @@ class ClaudeCliProtocol extends EventEmitter { @@ -90,7 +90,7 @@ class ClaudeCliProtocol extends EventEmitter {
90 // stdout → NDJSON 解析 90 // stdout → NDJSON 解析
91 this._child.stdout.on('data', (data) => { 91 this._child.stdout.on('data', (data) => {
92 const raw = data.toString(); 92 const raw = data.toString();
93 - console.log(`[ClaudeCliProtocol] 📥 stdout (${raw.length} bytes):`, raw.substring(0, 200)); 93 + // console.log(`[ClaudeCliProtocol] 📥 stdout (${raw.length} bytes):`, raw.substring(0, 200));
94 this._buffer += raw; 94 this._buffer += raw;
95 const lines = this._buffer.split('\n'); 95 const lines = this._buffer.split('\n');
96 this._buffer = lines.pop() || ''; 96 this._buffer = lines.pop() || '';
@@ -249,7 +249,7 @@ class ClaudeCliProtocol extends EventEmitter { @@ -249,7 +249,7 @@ class ClaudeCliProtocol extends EventEmitter {
249 }; 249 };
250 250
251 const jsonLine = JSON.stringify(message) + '\n'; 251 const jsonLine = JSON.stringify(message) + '\n';
252 - console.log(`[ClaudeCliProtocol] 发送 prompt (${text.length} chars)`); 252 + // console.log(`[ClaudeCliProtocol] 发送 prompt (${text.length} chars)`);
253 253
254 try { 254 try {
255 this._child.stdin.write(jsonLine); 255 this._child.stdin.write(jsonLine);
@@ -275,7 +275,7 @@ class ClaudeCliProtocol extends EventEmitter { @@ -275,7 +275,7 @@ class ClaudeCliProtocol extends EventEmitter {
275 * @private 275 * @private
276 */ 276 */
277 _handleStreamEvent(event) { 277 _handleStreamEvent(event) {
278 - console.log(`[ClaudeCliProtocol] 🔄 event.type=${event.type}`); 278 + // console.log(`[ClaudeCliProtocol] 🔄 event.type=${event.type}`);
279 switch (event.type) { 279 switch (event.type) {
280 case 'system': 280 case 'system':
281 this.sessionId = event.session_id || this.sessionId; 281 this.sessionId = event.session_id || this.sessionId;