@fugood/bricks-cli 2.24.1 → 2.24.3

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
@@ -105,6 +105,19 @@ bricks doctor
105
105
  bricks doctor --json
106
106
  ```
107
107
 
108
+ ### Self-update
109
+
110
+ ```bash
111
+ # Update the CLI in-place. Auto-detects how it was installed (npm, bun,
112
+ # standalone binary) and runs the matching update command. Falls back to
113
+ # the binary installer if the primary method fails.
114
+ bricks update-cli # prompts before updating
115
+ bricks update-cli -y # non-interactive
116
+
117
+ # Force a channel
118
+ bricks update-cli --channel beta
119
+ ```
120
+
108
121
  ### Configuration
109
122
 
110
123
  ```bash
@@ -270,6 +283,24 @@ Controls:
270
283
 
271
284
  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
285
 
286
+ ### Desktop ACP Bridge
287
+
288
+ Connect external ACP clients (e.g. [acpx](https://github.com/openclaw/acpx)) to the running CTOR Desktop app.
289
+
290
+ ```bash
291
+ # Stdio mode (default) — pipes stdin/stdout ↔ ~/.bricks-project-desktop/acp.sock
292
+ bricks desktop-acp-bridge
293
+
294
+ # WebSocket mode — exposes the Unix socket as a WebSocket server
295
+ bricks desktop-acp-bridge --ws
296
+ bricks desktop-acp-bridge --ws --host 127.0.0.1 --port 8765
297
+ bricks desktop-acp-bridge --ws --auth-token <secret>
298
+ ```
299
+
300
+ 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.
301
+
302
+ > 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.
303
+
273
304
  ### Workspace Info
274
305
 
275
306
  ```bash
@@ -287,16 +318,6 @@ Configuration is stored in `~/.bricks-cli/config.json`:
287
318
 
288
319
  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
320
 
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
321
  ## License
301
322
 
302
323
  UNLICENSED