yiyan-browser-agent 1.4.8 → 1.4.9

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/README.md +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -108,6 +108,22 @@ yiyan-agent --interactive
108
108
  # Run on a specific project
109
109
  ya --dir ~/projects/my-app "refactor all callbacks to async/await"
110
110
 
111
+ ### Process Communication (v1.4.8+)
112
+
113
+ When interactive mode (`-i`) is running, other `yiyan-agent` processes automatically detect and forward tasks to it, avoiding repeated browser startup:
114
+
115
+ ```bash
116
+ # Terminal 1: Start interactive mode (acts as server)
117
+ yiyan-agent -i
118
+ # → Server listening on port 9527
119
+
120
+ # Terminal 2: Send task (forwarded to server, no new browser)
121
+ yiyan-agent "北京天气,15个字"
122
+ # → Found running server, forwarding task...
123
+ ```
124
+
125
+ Lock file: `~/.yiyan-agent/server.lock`
126
+
111
127
  # Debug mode (shows what Yiyan is actually outputting)
112
128
  ya --debug "build a calculator"
113
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yiyan-browser-agent",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
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": {