yiyan-browser-agent 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/browser.js +3 -1
- package/src/config.js +1 -1
package/package.json
CHANGED
package/src/browser.js
CHANGED
|
@@ -315,8 +315,10 @@ class YiyanBrowser {
|
|
|
315
315
|
// Progress indicator
|
|
316
316
|
dotCount = (dotCount + 1) % 4;
|
|
317
317
|
logger.thinking(`Receiving response${'.'.repeat(dotCount)} (${text.length} chars)`);
|
|
318
|
-
|
|
318
|
+
|
|
319
|
+
// 等待 200ms 给 DOM 时间更新,避免高频轮询读取不完整内容
|
|
319
320
|
await this.page.waitForTimeout(200);
|
|
321
|
+
}
|
|
320
322
|
|
|
321
323
|
logger.clearLine();
|
|
322
324
|
|
package/src/config.js
CHANGED
|
@@ -14,7 +14,7 @@ const defaults = {
|
|
|
14
14
|
|
|
15
15
|
// Timing (configurable for speed vs stability tradeoff)
|
|
16
16
|
RESPONSE_TIMEOUT : 180_000,
|
|
17
|
-
STABLE_DELAY :
|
|
17
|
+
STABLE_DELAY : 2_500, // 2.5s stability check (ensures complete response)
|
|
18
18
|
SEND_DELAY : 100, // Reduced for faster operation
|
|
19
19
|
|
|
20
20
|
// Agent
|