@microtronics/studio-cli 1.2.0-alpha.5 → 1.2.0-alpha.8
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 +8 -2
- package/dist/main.js +53 -53
- package/dist/studio-cli.d.ts +98 -6
- package/out/api.js +56 -56
- package/out/studio-cli.d.ts +98 -6
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -317,7 +317,13 @@ $ studio-cli dev -s <serial> [options]
|
|
|
317
317
|
|
|
318
318
|
**Options:**
|
|
319
319
|
|
|
320
|
-
- `-s, --serial <serial>` - Device serial number (16 characters hex) **[required]**
|
|
320
|
+
- `-s, --serial <serial>` - Device serial number (16 characters hex) **[required unless `--replay`]**
|
|
321
|
+
- `--replay <file>` - Support/forensics mode: replay a companion-app flight-recorder export (`.ndjson` or `.db`)
|
|
322
|
+
instead of a live device. Mutually exclusive with `--serial`; forces no build/flash/watch. Only the AT/debug
|
|
323
|
+
channel is byte-exact in a recording, so `/api/1/...` answers the empty/`E_EOD` envelope - `/dev/logs`,
|
|
324
|
+
`/events` and `device at` (TX-matched against the recording) still work.
|
|
325
|
+
- `--session <id>` - Recording session to replay (default: the session with the most records)
|
|
326
|
+
- `--speed <n|max>` - Replay speed multiplier, or `max` for no recorded delays (default `1`, real-time)
|
|
321
327
|
- `--port <port>` - HTTP port (default `8765`)
|
|
322
328
|
- `--host <host>` - Bind address (default `127.0.0.1`)
|
|
323
329
|
- `--allow-remote` - Permit a non-loopback `--host` without `--bearer`
|
|
@@ -347,7 +353,7 @@ In a non-`--json` TTY session, stdin accepts `at <cmd>`, `sync`, `flash`, `build
|
|
|
347
353
|
| Method / path | Purpose |
|
|
348
354
|
| --------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
349
355
|
| `/api/1/sites/<uid>/...` | myDatanet-compatible containers, timeseries, blueprint, `/api/1/me`, legacy `config[0-9a-c]` |
|
|
350
|
-
| `GET /dev/status` | Serial, connection, model containers, last sync, build state, poll status
|
|
356
|
+
| `GET /dev/status` | Serial, connection, model containers, last sync, build state, poll status, `replay` when `--replay` |
|
|
351
357
|
| `POST /dev/build` | Run the build; returns diagnostics |
|
|
352
358
|
| `POST /dev/flash` | Upload `dist/dlo/main.amx` (or `{"file": "..."}`) |
|
|
353
359
|
| `POST /dev/sync` | Full sync, or a targeted pull with `{"tags": [...]}` |
|