@camstack/types 1.0.7 → 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.
@@ -8,9 +8,17 @@ export interface ModelFormatEntry {
8
8
  /** Whether this format is a directory bundle (e.g., .mlpackage) rather than a single file */
9
9
  readonly isDirectory?: boolean;
10
10
  /**
11
- * For directory formats: list of files relative to the directory root.
12
- * The downloader fetches each file from `{url}/{file}` and saves to `{modelDir}/{file}`.
13
- * If omitted for a directory format, the downloader probes HuggingFace API (slower).
11
+ * Multi-file format payload.
12
+ *
13
+ * - Directory formats (`isDirectory: true`, e.g. `.mlpackage`): files
14
+ * relative to the directory root — the downloader fetches each from
15
+ * `{url}/{file}` into `{modelDir}/{file}`. If omitted, it probes the
16
+ * HuggingFace API (slower).
17
+ * - Single-file formats (no `isDirectory`, e.g. OpenVINO IR): sibling
18
+ * files fetched from the SAME remote directory as `url` and stored flat
19
+ * alongside the main file — e.g. `['camstack-yolov9t.bin']` for the IR
20
+ * weights next to `camstack-yolov9t.xml`. Keeps the format convention in
21
+ * the catalog data instead of the downloader code.
14
22
  */
15
23
  readonly files?: readonly string[];
16
24
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",