@fleetless/sdk 3.1.0 → 4.0.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 +21 -1
- package/README.md +4 -4
- package/dist/index.cjs +359 -202
- package/dist/index.d.cts +90 -13
- package/dist/index.d.ts +90 -13
- package/dist/index.js +359 -202
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; the versions follow semver.
|
|
4
4
|
|
|
5
|
-
## [
|
|
5
|
+
## [4.0.0] — 2026-09-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`createClient({ credentials })`** — hand the client a bearer it does not own. `CredentialSource` is two methods: `token()` answers the current raw bearer or `null`, and `handleExpired()` says whether a `token_expired` is worth retrying. Mutually exclusive with `tokenStore` and `serverKey`, and `auth.login`/`auth.logout` refuse on it for the reason they refuse on a server key: there is no session here to start or end. For an embedder that already holds a session and refreshes it itself — without this it had to impersonate a token store, and a cloud-side `token_expired` arriving while its own clock still read live posted one empty refresh.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **`BridgeState` gains `low_bandwidth`** (bridge protocol 3): whether the robot's bridge is in its low-bandwidth mode. Required, not optional.
|
|
14
|
+
- **`AssetListResponse` gains `store` (`bytes`, `used_bytes`) and `joint_state_slug`.**
|
|
15
|
+
- **`AssetListResponse.active_sync.failed[].details` changed shape**: `{ limit_bytes, size_bytes }` is now `{ store_bytes, used_bytes, size_bytes }`.
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
- **`AssetKind` `other` and the asset failure kind `too_large`.** A robot has one gigabyte of asset storage; there is no per-file limit. This is a major.
|
|
20
|
+
|
|
21
|
+
## [3.1.1] — 2026-09-17
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Every field of `JobHistoryOptions` carries its description, and `McpExposure` and `McpCapabilities` are documented aliases rather than bare re-exports, so the generated reference describes them. No behaviour changes.
|
|
6
26
|
|
|
7
27
|
## [3.1.0] — 2026-09-17
|
|
8
28
|
|
package/README.md
CHANGED
|
@@ -95,10 +95,10 @@ Everything past this point lives at **[docs.fleetless.dev](https://docs.fleetles
|
|
|
95
95
|
method, every option, and what each one deliberately does not do.
|
|
96
96
|
- **[Getting started](https://docs.fleetless.dev/getting-started/)** — from a
|
|
97
97
|
robot that has never connected to a value in your app.
|
|
98
|
-
- **[
|
|
99
|
-
|
|
100
|
-
- **[
|
|
101
|
-
identity spaces, and what a refusal licenses your UI to claim.
|
|
98
|
+
- **[App Starter](https://docs.fleetless.dev/recipes/app-starter/)** — every
|
|
99
|
+
sign-in screen, already built, on this SDK.
|
|
100
|
+
- **[Manage users and roles](https://docs.fleetless.dev/concepts/manage-users-and-roles/)** —
|
|
101
|
+
the two identity spaces, and what a refusal licenses your UI to claim.
|
|
102
102
|
- **[REST and realtime API](https://docs.fleetless.dev/reference/api/)** —
|
|
103
103
|
the wire underneath this package.
|
|
104
104
|
- **[CHANGELOG.md](CHANGELOG.md)** — what changed in each version.
|