@fleetless/sdk 5.2.0 → 5.3.0
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/CHANGELOG.md +18 -0
- package/README.md +3 -1
- package/dist/index.cjs +1310 -1090
- package/dist/index.d.cts +205 -7
- package/dist/index.d.ts +205 -7
- package/dist/index.js +1308 -1090
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [5.3.0] — 2026-11-29
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **`CameraLiveSession.onEnded(handler)`: why a live session ended** (fleetless/fleetless#1126). The handler is called once with `{ reason, detail, refusal }` when the cloud ends this session; it returns the function that stops listening. `reason: 'start_refused'` means the robot refused to start the camera's live video (a weak link, a source that refuses the credentials or cannot be reached), so the `Room` would never get a track; `detail` is a sentence safe to show, `refusal` the class (`low_bandwidth`, `source_auth`, `source_unreachable`, `not_startable`, `unknown`). An ending that arrived before `onEnded` was called is delivered at once.
|
|
12
|
+
- `cameras.live()` now opens the client's realtime channel and waits for it (at most 5 s) before it takes the hold, so an ending that comes at once is not missed. If the channel cannot come up, `live()` still returns the session and `onEnded` stays silent. The open channel counts as one of the org's realtime connections and keeps a Node process alive: a script that calls `live()` ends with `client.close()`.
|
|
13
|
+
- New exports: the type `CameraLiveEnded`, the types `LiveSessionEndReason`, `LiveStartRefusal` and `CameraOfflineDetails`, and the runtime `cameraOfflineDetails` and `LIVE_START_REFUSALS`: a `409 camera_offline` from `live()` carries `details.refusal`, and its message is the cloud's sentence, never the robot's words.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Built against `@fleetless/contracts` 19.3.0. Its major, 19.0.0, changed only the billing wire (`method` on a payment-method change, `pays_invoice` on its options), which the SDK neither sends nor exports; nothing here changes for a caller.
|
|
18
|
+
|
|
19
|
+
## [5.2.1] — 2026-11-26
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Built against `@fleetless/contracts` 18.2.0. A job's result can now be omitted: the robot sends no frame over 1.5 MiB, so a larger result arrives as `result: null` with `job.result_omitted` (`reason: 'too_large'`, `bytes`, `limit_bytes`), and the job keeps its state (fleetless/fleetless#1222). `services.call` resolves such a response as `null`. The `Job` and `JobRun` types carry the field; no new API.
|
|
24
|
+
|
|
7
25
|
## [5.2.0] — 2026-11-26
|
|
8
26
|
|
|
9
27
|
### Added
|
package/README.md
CHANGED
|
@@ -28,7 +28,9 @@ Fleetless is in open beta: sign up at <https://console.fleetless.dev/signup>.
|
|
|
28
28
|
- **Read datapoints** once, subscribe to them live over one reconnecting
|
|
29
29
|
WebSocket, or query their recorded history.
|
|
30
30
|
- **Run actions and call services** by slug, with feedback, progress and
|
|
31
|
-
results as they arrive.
|
|
31
|
+
results as they arrive. A result over 1.5 MiB as JSON is more than the
|
|
32
|
+
robot sends: the job keeps its state, `result` is `null` and
|
|
33
|
+
`job.result_omitted` says how large it was.
|
|
32
34
|
- **Publish messages** to a topic, behind a failsafe the robot enforces
|
|
33
35
|
itself the moment your app goes quiet.
|
|
34
36
|
- **Show cameras**: a snapshot that is always there, or live video over
|