@matelink/cli 2026.4.21 → 2026.4.22

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
@@ -178,3 +178,31 @@ API:
178
178
  - `GET /v1/gateways/{gatewayId}/requests/next` gateway bridge polls pending chat requests
179
179
  - `POST /v1/gateways/{gatewayId}/requests/{requestId}/events` gateway bridge streams relay events
180
180
  - `POST /v1/openclaw/responses` app chat endpoint (supports `gatewayId + clientToken`)
181
+
182
+ ## 9) CLI Bridge Logging
183
+
184
+ Bridge runs as a systemd user service on server 80, logs are written to files.
185
+
186
+ ### Viewing logs (server 80)
187
+
188
+ ```bash
189
+ tail -f /root/.openclaw/matecli/logs/bridge.stdout.log # normal logs (requests, relay status)
190
+ tail -f /root/.openclaw/matecli/logs/bridge.stderr.log # error logs (poll failures, retries)
191
+
192
+ # last 100 lines
193
+ tail -100 /root/.openclaw/matecli/logs/bridge.stderr.log
194
+
195
+ # search for specific request
196
+ grep "Bridge request" /root/.openclaw/matecli/logs/bridge.stdout.log | tail -20
197
+ ```
198
+
199
+ ### Service management
200
+
201
+ ```bash
202
+ systemctl --user status matelink-matecli-bridge # check status
203
+ systemctl --user restart matelink-matecli-bridge # restart
204
+ systemctl --user stop matelink-matecli-bridge # stop
205
+ journalctl --user -u matelink-matecli-bridge -f # systemd journal (if enabled)
206
+ ```
207
+
208
+ Service config: `~/.config/systemd/user/matelink-matecli-bridge.service`
package/bin/matecli.mjs CHANGED
@@ -18,7 +18,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
18
18
 
19
19
  const NUMERIC_CODE_LENGTH = 4;
20
20
  const GROUP_SIZE = 4;
21
- const DEFAULT_RELAY_WORKER_WAIT_SECONDS = 600;
21
+ const DEFAULT_RELAY_WORKER_WAIT_SECONDS = 90;
22
22
  const DEFAULT_NETWORK_TIMEOUT_MS = 600000;
23
23
  const BRIDGE_RETRY_DELAY_MS = 2000;
24
24
  const DEFAULT_RELAY_URL = "https://test-mate.clipzap.ai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matelink/cli",
3
- "version": "2026.4.21",
3
+ "version": "2026.4.22",
4
4
  "private": false,
5
5
  "description": "Relay-first CLI for pairing and bridging OpenClaw gateway traffic",
6
6
  "type": "module",