yiyan-browser-agent 1.0.20 → 1.0.21

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.js +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yiyan-browser-agent",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
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": {
package/src/agent.js CHANGED
@@ -51,8 +51,6 @@ class YiyanAgent {
51
51
  try {
52
52
  await this.browser.sendMessage(task);
53
53
  } catch (err) {
54
- // Input error - mark for restart
55
- BrowserManager.markError();
56
54
  throw err;
57
55
  }
58
56
 
@@ -121,13 +119,6 @@ class YiyanAgent {
121
119
  status = 'incomplete';
122
120
  }
123
121
 
124
- // Mark browser status for reuse
125
- if (status === 'success') {
126
- BrowserManager.markSuccess(); // Keep browser open for next task
127
- } else {
128
- BrowserManager.markError(); // Restart browser next time
129
- }
130
-
131
122
  this._running = false;
132
123
 
133
124
  // Return JSON