@ioai/lerobot-studio 1.0.3 → 1.1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `createRemoteManifestDataSource` and `RemoteFileEntry` so hosts can embed the viewer with per-file HTTP(S) URLs. Manifest sources now implement `listPaths()` so v3 episode shards can be discovered without guessing sequential paths.
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  ### Patch Changes
@@ -16,6 +16,15 @@ export declare function createArchiveDataSourceFromFile(file: File): DataSource;
16
16
  */
17
17
  export declare function createArchiveDataSourceFromUrl(url: string): DataSource;
18
18
 
19
+ /**
20
+ * Create a viewer data source from a host-owned list of per-file HTTP(S) URLs.
21
+ *
22
+ * Use this when the host already signed individual dataset files and must not
23
+ * download a full archive. `getObjectUrl` returns the remote URL so the
24
+ * browser can stream media with Range requests.
25
+ */
26
+ export declare function createRemoteManifestDataSource(files: RemoteFileEntry[]): DataSource;
27
+
19
28
  /** Browser-readable storage abstraction consumed by the viewer. */
20
29
  export declare interface DataSource {
21
30
  /** Return whether a logical dataset path exists. */
@@ -103,4 +112,16 @@ export declare interface ProgressInfo {
103
112
  message?: string;
104
113
  }
105
114
 
115
+ /** One host-signed file in a remote dataset manifest. */
116
+ export declare interface RemoteFileEntry {
117
+ /** Logical path inside the LeRobot dataset, such as `meta/info.json`. */
118
+ logicalPath: string;
119
+ /** HTTP(S) URL the browser can fetch or stream. */
120
+ presignedUrl: string;
121
+ /** Optional MIME type for the file. */
122
+ contentType?: string | null;
123
+ /** Optional size in bytes; used by safety limits when present. */
124
+ sizeBytes?: number | null;
125
+ }
126
+
106
127
  export { }