openzca 0.1.22 → 0.1.25

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 (3) hide show
  1. package/README.md +33 -1
  2. package/dist/cli.js +897 -317
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -76,7 +76,7 @@ You can also open the saved file manually (for example: `open qr.png` on macOS).
76
76
  | `openzca msg delete <msgId> <cliMsgId> <uidFrom> <threadId>` | Delete a message |
77
77
  | `openzca msg undo <msgId> <cliMsgId> <threadId>` | Recall a sent message |
78
78
  | `openzca msg upload <arg1> [arg2]` | Upload and send file(s) |
79
- | `openzca msg recent <threadId>` | List recent messages (`-n`, `--json`) |
79
+ | `openzca msg recent <threadId>` | List recent messages (`-n`, `--json`); group mode uses direct group-history API |
80
80
 
81
81
  Media commands accept local files, `file://` paths, and repeatable `--url` options. Add `--group` for group threads.
82
82
  Local paths using `~` are expanded automatically (for positional file args, `--url`, and `OPENZCA_LISTEN_MEDIA_DIR`).
@@ -272,12 +272,44 @@ Listener resilience override:
272
272
  - `OPENZCA_LISTEN_DOWNLOAD_QUOTE_MEDIA`: download quoted attachment URLs (if present) into inbound media cache.
273
273
  - Default: enabled.
274
274
  - Set to `0` to keep only quote metadata/URLs without downloading.
275
+ - `OPENZCA_LISTEN_ENFORCE_SINGLE_OWNER`: enforce one `listen` owner process per profile.
276
+ - Default: enabled.
277
+ - Set to `0` to allow multiple listeners on the same profile (not recommended).
278
+ - `OPENZCA_LISTEN_IPC`: expose local IPC socket from `listen` so `msg upload` can reuse the active websocket session.
279
+ - Default: enabled.
280
+ - Set to `0` to disable IPC.
281
+ - `OPENZCA_LISTEN_KEEPALIVE_RESTART_DELAY_MS`: when `--keep-alive` is on, restart listener after close code `1000`/`3000` with this delay.
282
+ - Default: `2000`.
283
+ - `OPENZCA_LISTEN_KEEPALIVE_RESTART_ON_ANY_CLOSE`: force keepalive fallback restart for any close code.
284
+ - Default: disabled.
285
+ - Set to `1` if your environment closes with non-retry codes.
275
286
 
276
287
  Supervised mode notes:
277
288
 
278
289
  - Use `listen --supervised --raw` when an external process manager owns restart logic.
279
290
  - In supervised mode, internal websocket retry ownership is disabled (equivalent to forcing `retryOnClose=false`).
280
291
 
292
+ Upload/listener coordination overrides:
293
+
294
+ - `OPENZCA_UPLOAD_IPC`: try upload via active listener IPC first.
295
+ - Default: enabled.
296
+ - Set to `0` to disable IPC path.
297
+ - `OPENZCA_UPLOAD_IPC_CONNECT_TIMEOUT_MS`: timeout for connecting to listener IPC socket.
298
+ - Default: `1000`.
299
+ - `OPENZCA_UPLOAD_IPC_TIMEOUT_MS`: timeout waiting for listener IPC upload response.
300
+ - Default: `OPENZCA_UPLOAD_TIMEOUT_MS + 5000`.
301
+ - `OPENZCA_UPLOAD_IPC_HANDLER_TIMEOUT_MS`: timeout applied by listener IPC while executing upload.
302
+ - Default: same as `OPENZCA_UPLOAD_TIMEOUT_MS` (120000 if unset).
303
+ - `OPENZCA_UPLOAD_ENFORCE_SINGLE_OWNER`: when an active listener owner exists but IPC is unavailable, fail fast instead of starting a second listener.
304
+ - Default: enabled.
305
+ - Set to `0` to allow fallback listener startup (may disconnect active listener due duplicate websocket ownership).
306
+ - `OPENZCA_UPLOAD_AUTO_THREAD_TYPE`: auto-detect `msg upload` thread type (group/user) when `--group` is not provided.
307
+ - Default: disabled (`0`) for safer routing.
308
+ - Set to `1` to enable cache/probe-based detection.
309
+ - `OPENZCA_UPLOAD_GROUP_PROBE`: allow `msg upload` to probe `getGroupInfo` when auto thread-type detection is enabled.
310
+ - Default: enabled.
311
+ - Set to `0` to skip probe and rely only on cache matches.
312
+
281
313
  ### account — Multi-account profiles
282
314
 
283
315
  | Command | Description |