yiyan-browser-agent 1.0.27 → 1.0.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yiyan-browser-agent",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "AI coding agent powered by Yiyan (文心一言) via browser automation — no API key needed",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -34,6 +34,11 @@ class BrowserManager {
34
34
  logger.info('Connecting to existing browser...');
35
35
  const browser = await chromium.connect({ wsEndpoint, timeout: 10000 });
36
36
 
37
+ // Show current browser info
38
+ const existingContexts = browser.contexts();
39
+ const existingPages = existingContexts.reduce((sum, ctx) => sum + ctx.pages().length, 0);
40
+ logger.dim(`Browser has ${existingContexts.length} contexts, ${existingPages} existing tabs`);
41
+
37
42
  // Create NEW context and page (tab) for this task
38
43
  const context = await browser.newContext({
39
44
  viewport: { width: 1280, height: 900 },