billion-context 0.1.94 → 0.1.95-pr.523.456
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/README.md +22 -0
- package/dist/index.js +285 -148
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -240,6 +240,28 @@ bili --no-auto-update # disable self-update for this run
|
|
|
240
240
|
|
|
241
241
|
Flags override env vars and the config file. `bili --help` lists them all.
|
|
242
242
|
|
|
243
|
+
### Per-session proxy (`bili daemon`)
|
|
244
|
+
|
|
245
|
+
Agent-side plugins can start a dedicated, isolated proxy per session instead of
|
|
246
|
+
sharing one long-lived instance:
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
bili daemon --parent-pid <agent-pid>
|
|
250
|
+
# stdout: {"origin":"http://127.0.0.1:<port>","port":<port>,"pid":<pid>,"logPath":"…"}
|
|
251
|
+
# exit 0 on success; non-zero + stderr explanation on failure
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
- The port is allocated dynamically (ephemeral bind-0 probe). An explicit
|
|
255
|
+
`--port` / `ACP_PORT` is preferred first, with automatic fallback on conflict.
|
|
256
|
+
- A fresh instance is **always** started — it never attaches to an existing
|
|
257
|
+
proxy, so sessions stay isolated from each other.
|
|
258
|
+
- With `--parent-pid` (or an inherited `BILI_PARENT_PID`), the proxy stops
|
|
259
|
+
itself when that process exits — the same mechanism `bili <client>` uses.
|
|
260
|
+
Without it, a warning is printed and the proxy keeps running until killed.
|
|
261
|
+
- Concurrency-safe: daemons handshakes through a per-session result file, so
|
|
262
|
+
parallel daemons never clobber each other. The global instance file is still
|
|
263
|
+
written (last-writer-wins) for MCP-shell/install discovery.
|
|
264
|
+
|
|
243
265
|
### Remote agents (`--host`)
|
|
244
266
|
|
|
245
267
|
By default the proxy binds `127.0.0.1` and only accepts loopback
|