@fugood/bricks-cli 2.24.1-beta.3 → 2.24.2

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 CHANGED
@@ -270,6 +270,24 @@ Controls:
270
270
 
271
271
  When `bricks` is run without arguments in a non-TTY context such as Codex, CI, or shell pipelines, it prints help instead of launching Ink.
272
272
 
273
+ ### Desktop ACP Bridge
274
+
275
+ Connect external ACP clients (e.g. [acpx](https://github.com/openclaw/acpx)) to the running CTOR Desktop app.
276
+
277
+ ```bash
278
+ # Stdio mode (default) — pipes stdin/stdout ↔ ~/.bricks-project-desktop/acp.sock
279
+ bricks desktop-acp-bridge
280
+
281
+ # WebSocket mode — exposes the Unix socket as a WebSocket server
282
+ bricks desktop-acp-bridge --ws
283
+ bricks desktop-acp-bridge --ws --host 127.0.0.1 --port 8765
284
+ bricks desktop-acp-bridge --ws --auth-token <secret>
285
+ ```
286
+
287
+ In WebSocket mode each client connection opens a dedicated bridge to the ACP Unix socket. Messages are exchanged as newline-delimited JSON-RPC: one WS text frame per JSON-RPC message. When `--auth-token` is set (or `BRICKS_DESKTOP_ACP_BRIDGE_TOKEN` is exported), the server requires the matching `Authorization: Bearer <token>` header on the WebSocket upgrade request.
288
+
289
+ > The default bind host is `0.0.0.0` — WebSocket mode is intended to expose ACP on the LAN. Always set `--auth-token` and only run on trusted networks. Use `--host 127.0.0.1` to restrict to localhost.
290
+
273
291
  ### Workspace Info
274
292
 
275
293
  ```bash
@@ -287,16 +305,6 @@ Configuration is stored in `~/.bricks-cli/config.json`:
287
305
 
288
306
  Use `bricks config show` to view current settings, `bricks config endpoint` to switch environments, or `bricks doctor --json` for a machine-readable health check.
289
307
 
290
- ## Development
291
-
292
- ```bash
293
- # Run locally
294
- node bin/bricks.js
295
-
296
- # Run with file watching
297
- bun dev
298
- ```
299
-
300
308
  ## License
301
309
 
302
310
  UNLICENSED