qualia-cli 0.3.0rc15__tar.gz → 0.3.0rc16__tar.gz

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.
Files changed (76) hide show
  1. qualia_cli-0.3.0rc15/README.md → qualia_cli-0.3.0rc16/PKG-INFO +57 -5
  2. qualia_cli-0.3.0rc15/PKG-INFO → qualia_cli-0.3.0rc16/README.md +32 -30
  3. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/pyproject.toml +4 -2
  4. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/qualia-cli.spec.md +6 -3
  5. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/__init__.py +1 -1
  6. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/checks.py +17 -8
  7. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/dataset_episodes.py +20 -1
  8. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/datasets.py +78 -12
  9. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/pipelines.py +18 -4
  10. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_checks.py +87 -0
  11. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_dataset_episodes.py +88 -1
  12. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_datasets.py +204 -1
  13. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_pipelines.py +26 -0
  14. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_dataset_ref.py +5 -0
  15. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/uv.lock +2 -2
  16. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/.gitignore +0 -0
  17. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/examples/agent_path.sh +0 -0
  18. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/client.py +0 -0
  19. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/__init__.py +0 -0
  20. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/activity.py +0 -0
  21. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/auth.py +0 -0
  22. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/credits.py +0 -0
  23. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/dataset_ops.py +0 -0
  24. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/dataset_studio.py +0 -0
  25. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/git.py +0 -0
  26. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/grippers.py +0 -0
  27. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/instances.py +0 -0
  28. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/integrations.py +0 -0
  29. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/issues.py +0 -0
  30. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/members.py +0 -0
  31. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/mixtures.py +0 -0
  32. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/models.py +0 -0
  33. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/preparation.py +0 -0
  34. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/projects.py +0 -0
  35. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/robots.py +0 -0
  36. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/statuses.py +0 -0
  37. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/tasks.py +0 -0
  38. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/commands/versions.py +0 -0
  39. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/config.py +0 -0
  40. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/dataset_ref.py +0 -0
  41. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/main.py +0 -0
  42. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/output.py +0 -0
  43. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/src/qualia_cli/run_ref.py +0 -0
  44. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/__init__.py +0 -0
  45. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/agent_path_stub.py +0 -0
  46. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/__init__.py +0 -0
  47. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_activity.py +0 -0
  48. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_auth.py +0 -0
  49. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_credits.py +0 -0
  50. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_dataset_ops.py +0 -0
  51. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_dataset_studio.py +0 -0
  52. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_dataset_transfer.py +0 -0
  53. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_git.py +0 -0
  54. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_grippers.py +0 -0
  55. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_integrations.py +0 -0
  56. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_issues.py +0 -0
  57. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_members.py +0 -0
  58. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_mixtures.py +0 -0
  59. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_models.py +0 -0
  60. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_preparation.py +0 -0
  61. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_projects.py +0 -0
  62. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_robots.py +0 -0
  63. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_robots_parity.py +0 -0
  64. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_statuses.py +0 -0
  65. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_tasks.py +0 -0
  66. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_umi_setup.py +0 -0
  67. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/commands/test_versions.py +0 -0
  68. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/conftest.py +0 -0
  69. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_agent_path_example.py +0 -0
  70. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_client.py +0 -0
  71. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_config.py +0 -0
  72. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_main.py +0 -0
  73. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_older_sdk.py +0 -0
  74. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_output.py +0 -0
  75. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_run_ref.py +0 -0
  76. {qualia_cli-0.3.0rc15 → qualia_cli-0.3.0rc16}/tests/test_sdk_floor.py +0 -0
@@ -1,6 +1,31 @@
1
+ Metadata-Version: 2.5
2
+ Name: qualia-cli
3
+ Version: 0.3.0rc16
4
+ Summary: CLI for Qualia robot data curation: upload, curate, version and export datasets
5
+ Project-URL: Homepage, https://qualiastudios.dev
6
+ Project-URL: Documentation, https://docs.qualiastudios.dev
7
+ Author: Qualia Studios
8
+ License-Expression: MIT
9
+ Keywords: cli,data-curation,datasets,qualia,robotics
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Typing :: Typed
18
+ Requires-Python: >=3.10
19
+ Requires-Dist: click>=8.1.0
20
+ Requires-Dist: pyyaml>=6.0
21
+ Requires-Dist: qualia-sdk>=0.8.0rc16
22
+ Requires-Dist: rich>=13.0.0
23
+ Requires-Dist: typer>=0.15.0
24
+ Description-Content-Type: text/markdown
25
+
1
26
  # qualia-cli — terminal client for Qualia robot data: upload, curate, version, export
2
27
 
3
- **Status:** beta pre-release (0.3.0rc15) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
28
+ **Status:** beta pre-release (0.3.0rc16) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
4
29
 
5
30
  Qualia keeps robot recordings (MCAP or LeRobot) as datasets of episodes. The `qualia` command
6
31
  uploads a folder of takes and shows what preparation found in it. It links the episodes to a Task
@@ -30,7 +55,7 @@ pre-release for now.
30
55
  ### Pre-release builds
31
56
 
32
57
  The CLI and the deployment it talks to negotiate the upload protocol exactly, so pin the version
33
- your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-sdk>=0.8.0rc15`.
58
+ your deployment's docs name. This candidate is `0.3.0rc16` and requires `qualia-sdk>=0.8.0rc16`.
34
59
  `qualia dataset preparation` and `qualia dataset confirm-task-names` first shipped in `0.3.0rc12`;
35
60
  `0.3.0rc11` answers "No such command". `qualia dataset preparation --wait` and
36
61
  `qualia --version` first shipped in `0.3.0rc14`; `0.3.0rc13` answers "No such option".
@@ -38,14 +63,14 @@ your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-
38
63
  releases need an organization key and return the stored folder, `meta/qds` included.
39
64
 
40
65
  ```sh
41
- pip install 'qualia-cli==0.3.0rc15'
66
+ pip install 'qualia-cli==0.3.0rc16'
42
67
  ```
43
68
 
44
69
  uv does not resolve a pre-release through a dependency, even one that names it, so uv needs the
45
70
  flag as well as the pin:
46
71
 
47
72
  ```sh
48
- uv tool install --prerelease=allow 'qualia-cli==0.3.0rc15'
73
+ uv tool install --prerelease=allow 'qualia-cli==0.3.0rc16'
49
74
  ```
50
75
 
51
76
  Upgrading from 0.1.2: 0.3.0rc10 removed the fine-tuning commands (`qualia job list`, `launch`,
@@ -246,6 +271,19 @@ qualia dataset upload ./week-2 week-2 --source-format lerobot_v3 \
246
271
  --merge-target accounts/<account-uuid>/datasets/<merged-uuid>
247
272
  qualia dataset upload ./calibration calibration --source-format lerobot_v3 --standalone
248
273
 
274
+ # Name the rig a teleop or joint-recorded session was recorded on: any rig of the
275
+ # workspace (an arm rig, a UMI rig or another capture rig, the Rigs page's "Other
276
+ # rigs"), by name or id. Only a UMI rig converts a handheld recording; an arm rig
277
+ # or another capture rig is just recorded on the upload, and the dataset shows it
278
+ # once the upload publishes. A name that is no rig of the workspace (a robot
279
+ # template, a gripper template, a robot's own mounted gripper) is refused before
280
+ # anything is stored, as is an arm rig named for a tree whose meta/ingest.toml
281
+ # declares a [rig], or another capture rig named for a tree that declares the UMI
282
+ # kind; one that fits several rigs asks which. This needs
283
+ # qualia-sdk 0.8.0rc13 or newer: earlier ones send no transfer session, so
284
+ # nothing is recorded and the server asks you to upgrade.
285
+ qualia dataset upload ./session kitchen --rig my-franka-rig
286
+
249
287
  # Convert a handheld (UMI) recording at a UMI rig's TCP as it lands. The rig is
250
288
  # its name or id (make one first: New rig, UMI in the dashboard or
251
289
  # `qualia gripper umi-rig TEMPLATE`, then
@@ -354,6 +392,8 @@ qualia dataset edit -d <dataset> --from edits.json
354
392
  # List, open and count a dataset's episodes, then keep, reject, reset or
355
393
  # restore them by id or by filter. A take a person has open in the studio is
356
394
  # left as it was and listed on stderr with who holds it; the call exits 0.
395
+ # `dataset episode` says who set the outcome: a person, a graph check's
396
+ # proposal, or the operator while recording.
357
397
  qualia dataset episodes <dataset> --filter 'state = UNREVIEWED'
358
398
  qualia dataset episode <episode> -d <dataset>
359
399
  qualia dataset summary <dataset> --facet open_issue_codes --metric metrics.duration_seconds
@@ -382,6 +422,12 @@ qualia dataset download <dataset> --format original
382
422
  # the older route instead, for an organization key, with a notice on stderr (also
383
423
  # under --json): a sent file over 4.995 GiB, an upload that derived no episodes,
384
424
  # a sent file with no recorded SHA-256, or a failed original build.
425
+ # --labels (lerobot_v3 and lerobot_v2_1) also writes what Qualia knows about
426
+ # each exported episode: meta/qualia/labels.jsonl, one JSON line per episode
427
+ # (where it came from, the decision, the video check's reading, open issues,
428
+ # subtasks), and meta/qualia/export.json (the version, when the labels were
429
+ # read, counts). The fields are in sdk/python/docs/lerobot-labels.md. After 0.3.0rc15.
430
+ qualia dataset download <dataset>:<tag> --labels
385
431
  # pi_mcap_v1 and dreamlabs_v2_1 are files to upload to Physical Intelligence or
386
432
  # Dream Labs with your own account: the version's episodes that are not
387
433
  # rejected (Dream Labs: successful ones only). A failed episode is listed in
@@ -418,6 +464,12 @@ default, so internal templates and runs are not returned to the CLI. With the
418
464
  flag on, they appear marked as internal. No new command or CLI-side override
419
465
  is needed: the gateway applies the visibility filter.
420
466
 
467
+ Your workspace's templates are billed per run. On a deployment that does not bill
468
+ per run, `qualia pipeline template apply` still applies the file but prints
469
+ `Not launchable here: <reason> (<code>)` in place of the launch hint, and a
470
+ launch is refused with `run_billing_required`. `--json` carries the same answer
471
+ as `launchable` and `launch_refusal`.
472
+
421
473
  ### Tasks
422
474
 
423
475
  Tasks say what a robot should do and how success shows, as five pieces of
@@ -584,7 +636,7 @@ defaults; dataset writers set dataset overrides.
584
636
  qualia check policy <ORG_UUID> --org
585
637
  qualia check policy <WORKSPACE_UUID> --workspace
586
638
  qualia check policy-set <ORG_UUID> --org --graph off
587
- qualia check policy-set <DATASET_UUID> --graph inherit
639
+ qualia check policy-set <dataset> --graph inherit
588
640
  ```
589
641
 
590
642
  [Policy commands and permissions](https://docs.qualiastudios.dev/cli/commands/#qualia-check-policy-and-policy-set).
@@ -1,31 +1,6 @@
1
- Metadata-Version: 2.5
2
- Name: qualia-cli
3
- Version: 0.3.0rc15
4
- Summary: CLI for Qualia robot data curation: upload, curate, version and export datasets
5
- Project-URL: Homepage, https://qualiastudios.dev
6
- Project-URL: Documentation, https://docs.qualiastudios.dev
7
- Author: Qualia Studios
8
- License-Expression: MIT
9
- Keywords: cli,data-curation,datasets,qualia,robotics
10
- Classifier: Development Status :: 3 - Alpha
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Typing :: Typed
18
- Requires-Python: >=3.10
19
- Requires-Dist: click>=8.1.0
20
- Requires-Dist: pyyaml>=6.0
21
- Requires-Dist: qualia-sdk>=0.8.0rc15
22
- Requires-Dist: rich>=13.0.0
23
- Requires-Dist: typer>=0.15.0
24
- Description-Content-Type: text/markdown
25
-
26
1
  # qualia-cli — terminal client for Qualia robot data: upload, curate, version, export
27
2
 
28
- **Status:** beta pre-release (0.3.0rc15) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
3
+ **Status:** beta pre-release (0.3.0rc16) · **Distribution:** PyPI, `qualia-cli` (installs `qualia-sdk`)
29
4
 
30
5
  Qualia keeps robot recordings (MCAP or LeRobot) as datasets of episodes. The `qualia` command
31
6
  uploads a folder of takes and shows what preparation found in it. It links the episodes to a Task
@@ -55,7 +30,7 @@ pre-release for now.
55
30
  ### Pre-release builds
56
31
 
57
32
  The CLI and the deployment it talks to negotiate the upload protocol exactly, so pin the version
58
- your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-sdk>=0.8.0rc15`.
33
+ your deployment's docs name. This candidate is `0.3.0rc16` and requires `qualia-sdk>=0.8.0rc16`.
59
34
  `qualia dataset preparation` and `qualia dataset confirm-task-names` first shipped in `0.3.0rc12`;
60
35
  `0.3.0rc11` answers "No such command". `qualia dataset preparation --wait` and
61
36
  `qualia --version` first shipped in `0.3.0rc14`; `0.3.0rc13` answers "No such option".
@@ -63,14 +38,14 @@ your deployment's docs name. This candidate is `0.3.0rc15` and requires `qualia-
63
38
  releases need an organization key and return the stored folder, `meta/qds` included.
64
39
 
65
40
  ```sh
66
- pip install 'qualia-cli==0.3.0rc15'
41
+ pip install 'qualia-cli==0.3.0rc16'
67
42
  ```
68
43
 
69
44
  uv does not resolve a pre-release through a dependency, even one that names it, so uv needs the
70
45
  flag as well as the pin:
71
46
 
72
47
  ```sh
73
- uv tool install --prerelease=allow 'qualia-cli==0.3.0rc15'
48
+ uv tool install --prerelease=allow 'qualia-cli==0.3.0rc16'
74
49
  ```
75
50
 
76
51
  Upgrading from 0.1.2: 0.3.0rc10 removed the fine-tuning commands (`qualia job list`, `launch`,
@@ -271,6 +246,19 @@ qualia dataset upload ./week-2 week-2 --source-format lerobot_v3 \
271
246
  --merge-target accounts/<account-uuid>/datasets/<merged-uuid>
272
247
  qualia dataset upload ./calibration calibration --source-format lerobot_v3 --standalone
273
248
 
249
+ # Name the rig a teleop or joint-recorded session was recorded on: any rig of the
250
+ # workspace (an arm rig, a UMI rig or another capture rig, the Rigs page's "Other
251
+ # rigs"), by name or id. Only a UMI rig converts a handheld recording; an arm rig
252
+ # or another capture rig is just recorded on the upload, and the dataset shows it
253
+ # once the upload publishes. A name that is no rig of the workspace (a robot
254
+ # template, a gripper template, a robot's own mounted gripper) is refused before
255
+ # anything is stored, as is an arm rig named for a tree whose meta/ingest.toml
256
+ # declares a [rig], or another capture rig named for a tree that declares the UMI
257
+ # kind; one that fits several rigs asks which. This needs
258
+ # qualia-sdk 0.8.0rc13 or newer: earlier ones send no transfer session, so
259
+ # nothing is recorded and the server asks you to upgrade.
260
+ qualia dataset upload ./session kitchen --rig my-franka-rig
261
+
274
262
  # Convert a handheld (UMI) recording at a UMI rig's TCP as it lands. The rig is
275
263
  # its name or id (make one first: New rig, UMI in the dashboard or
276
264
  # `qualia gripper umi-rig TEMPLATE`, then
@@ -379,6 +367,8 @@ qualia dataset edit -d <dataset> --from edits.json
379
367
  # List, open and count a dataset's episodes, then keep, reject, reset or
380
368
  # restore them by id or by filter. A take a person has open in the studio is
381
369
  # left as it was and listed on stderr with who holds it; the call exits 0.
370
+ # `dataset episode` says who set the outcome: a person, a graph check's
371
+ # proposal, or the operator while recording.
382
372
  qualia dataset episodes <dataset> --filter 'state = UNREVIEWED'
383
373
  qualia dataset episode <episode> -d <dataset>
384
374
  qualia dataset summary <dataset> --facet open_issue_codes --metric metrics.duration_seconds
@@ -407,6 +397,12 @@ qualia dataset download <dataset> --format original
407
397
  # the older route instead, for an organization key, with a notice on stderr (also
408
398
  # under --json): a sent file over 4.995 GiB, an upload that derived no episodes,
409
399
  # a sent file with no recorded SHA-256, or a failed original build.
400
+ # --labels (lerobot_v3 and lerobot_v2_1) also writes what Qualia knows about
401
+ # each exported episode: meta/qualia/labels.jsonl, one JSON line per episode
402
+ # (where it came from, the decision, the video check's reading, open issues,
403
+ # subtasks), and meta/qualia/export.json (the version, when the labels were
404
+ # read, counts). The fields are in sdk/python/docs/lerobot-labels.md. After 0.3.0rc15.
405
+ qualia dataset download <dataset>:<tag> --labels
410
406
  # pi_mcap_v1 and dreamlabs_v2_1 are files to upload to Physical Intelligence or
411
407
  # Dream Labs with your own account: the version's episodes that are not
412
408
  # rejected (Dream Labs: successful ones only). A failed episode is listed in
@@ -443,6 +439,12 @@ default, so internal templates and runs are not returned to the CLI. With the
443
439
  flag on, they appear marked as internal. No new command or CLI-side override
444
440
  is needed: the gateway applies the visibility filter.
445
441
 
442
+ Your workspace's templates are billed per run. On a deployment that does not bill
443
+ per run, `qualia pipeline template apply` still applies the file but prints
444
+ `Not launchable here: <reason> (<code>)` in place of the launch hint, and a
445
+ launch is refused with `run_billing_required`. `--json` carries the same answer
446
+ as `launchable` and `launch_refusal`.
447
+
446
448
  ### Tasks
447
449
 
448
450
  Tasks say what a robot should do and how success shows, as five pieces of
@@ -609,7 +611,7 @@ defaults; dataset writers set dataset overrides.
609
611
  qualia check policy <ORG_UUID> --org
610
612
  qualia check policy <WORKSPACE_UUID> --workspace
611
613
  qualia check policy-set <ORG_UUID> --org --graph off
612
- qualia check policy-set <DATASET_UUID> --graph inherit
614
+ qualia check policy-set <dataset> --graph inherit
613
615
  ```
614
616
 
615
617
  [Policy commands and permissions](https://docs.qualiastudios.dev/cli/commands/#qualia-check-policy-and-policy-set).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qualia-cli"
3
- version = "0.3.0rc15"
3
+ version = "0.3.0rc16"
4
4
  description = "CLI for Qualia robot data curation: upload, curate, version and export datasets"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -56,7 +56,9 @@ dependencies = [
56
56
  # rc14 adds `client.preparation.wait()`, which `dataset preparation --wait` calls.
57
57
  # rc15 downloads `original` over qualia.v1 and tells of the older route first,
58
58
  # which `dataset download --format original` relies on.
59
- "qualia-sdk>=0.8.0rc15",
59
+ # rc16 words the refusals of `dataset upload --rig` for any rig, an arm rig
60
+ # as much as a UMI rig.
61
+ "qualia-sdk>=0.8.0rc16",
60
62
  "typer>=0.15.0",
61
63
  "rich>=13.0.0",
62
64
  # Task definitions are authored as YAML files (`qualia task create/edit`).
@@ -7,7 +7,7 @@ verifies:
7
7
  - sdk:contract
8
8
  summary: The end-user Typer CLI wrapping the Qualia SDK.
9
9
  owners: SDK / DX
10
- updated: 2026-11-04
10
+ updated: 2026-11-10
11
11
  ---
12
12
 
13
13
  `dataset pin DATASET TAG` and `dataset version create DATASET TAG` use the SDK's
@@ -75,7 +75,10 @@ and QUA-4342 land, and stderr says so, also under `--json`, where `older_route`
75
75
  over 4.995 GiB, an upload that derived no episodes, a sent file with no recorded SHA-256, or a failed original build); the default folder is `./<slug>-<tag>`, plus `-v21`,
76
76
  `-mcap`, `-pi` or `-dreamlabs` (`./<slug>-original` for `original`); a spinner then a byte bar run on stderr unless `--json`; it ends with
77
77
  `Saved <version> as <format> to <dir> (<n> files, <size>)`; all rules and error wording live in
78
- `client.data.download`), read, compare,
78
+ `client.data.download`; `--labels`, with a LeRobot format only (a usage error otherwise), also writes
79
+ `meta/qualia/labels.jsonl` and `meta/qualia/export.json`, what Qualia knows about each exported episode,
80
+ prints their counts and adds a `labels` object (the two paths, `labels_as_of`, `counts`) to `--json`),
81
+ read, compare,
79
82
  tag and annotate versions and read a version's curation record (`dataset version …`), compose
80
83
  mixtures (`qualia mixture …`), list models/instances and a model type's camera slots (`model slots`), poll job status and print
81
84
  or follow a job's log lines (`job logs --follow`), launch any launchable pipeline template
@@ -98,7 +101,7 @@ robot, give it a gripper of its own, line that gripper up, set its jaw, TCP and
98
101
  `tcp_calibration.json`, delete); a URDF is PUT to a signed storage URL without the API key. A robot
99
102
  owns its gripper: attaching copies it and a robot that carries one never swaps it. Pairs that do one
100
103
  action stay both: `robot show`/`get`, `rename`/`update`, `gripper tcp`/`gripper tcp`, `dataset poses
101
- --at`/`resolve-poses`. A handheld (UMI) dataset is set up from a terminal: `dataset poses` shows where an upload's poses are and moves them (`--at tcp|root`, `--wait`, `--follow`), `dataset setup` picks the robot and placement (a dataset follows its robot's solver; `--solver` and `dataset update --reach-solver` are hidden and refuse, QUA-3742) and, after a robot pick, starts the resolve at the TCP only when every arm of the robot has a TCP, and `check reach-status` and `check reach-cancel` follow and stop Run solver, which only `dataset setup --run-solver` or `check run --check reach` presses (QUA-3760). Robots are kept from a terminal too (QUA-3759): `robot list|show|create|rename|delete|copy|import|model` and `robot gripper attach|detach|mount|jaw|tcp|calibration` and `gripper umi-rig` (a UMI rig made from a gripper template; the workspace has the rigs someone made and `dataset upload --rig` names one, QUA-4121) call `client.robots`, where a robot owns its gripper (attaching copies it, a robot that carries one never swaps it, `robot copy` makes a copy to try another) and the gripper commands take the robot that carries the gripper. `qualia member` and `qualia invitation` read and
104
+ --at`/`resolve-poses`. A handheld (UMI) dataset is set up from a terminal: `dataset poses` shows where an upload's poses are and moves them (`--at tcp|root`, `--wait`, `--follow`), `dataset setup` picks the robot and placement (a dataset follows its robot's solver; `--solver` and `dataset update --reach-solver` are hidden and refuse, QUA-3742) and, after a robot pick, starts the resolve at the TCP only when every arm of the robot has a TCP, and `check reach-status` and `check reach-cancel` follow and stop Run solver, which only `dataset setup --run-solver` or `check run --check reach` presses (QUA-3760). Robots are kept from a terminal too (QUA-3759): `robot list|show|create|rename|delete|copy|import|model` and `robot gripper attach|detach|mount|jaw|tcp|calibration` and `gripper umi-rig` (a UMI rig made from a gripper template; the workspace has the rigs someone made; `dataset upload --rig` names the rig the data was recorded on, any rig of the workspace (an arm rig, a UMI rig or another capture rig), QUA-4121, QUA-4129) call `client.robots`, where a robot owns its gripper (attaching copies it, a robot that carries one never swaps it, `robot copy` makes a copy to try another) and the gripper commands take the robot that carries the gripper. `qualia member` and `qualia invitation` read and
102
105
  change a workspace's people, roles and invitations (`/v1/members`, `/v1/invitations`, the opt-in
103
106
  `members:read`/`members:write` scopes). `qualia integration list|add|remove|default` manages the
104
107
  organization's Hugging Face tokens (`/v1/integrations`, the opt-in `integrations:write` scope,
@@ -1,3 +1,3 @@
1
1
  """Qualia CLI for robotics data and VLA workflows."""
2
2
 
3
- __version__ = "0.3.0rc15"
3
+ __version__ = "0.3.0rc16"
@@ -36,6 +36,17 @@ def _resolved(ctx: typer.Context, value: Any) -> Any:
36
36
 
37
37
 
38
38
  _DATASET = typer.Argument(help=DATASET_HELP, callback=_resolved)
39
+ _POLICY_PARENT = typer.Argument(
40
+ help=f"{DATASET_HELP}; with --workspace or --org, the workspace's or "
41
+ "organization's id or full name"
42
+ )
43
+
44
+
45
+ def _policy_parent(ctx: typer.Context, parent: str, workspace: bool, org: bool) -> str:
46
+ """A policy's parent as the SDK takes it: a dataset resolved as every
47
+ command resolves one, so a slug or a short id works too; a workspace or an
48
+ organization as it was given."""
49
+ return parent if workspace or org else _resolved(ctx, parent)
39
50
 
40
51
 
41
52
  def _run(ctx: typer.Context, value: Any) -> Any:
@@ -251,9 +262,8 @@ def _print_started(started: Any, *, err: bool = False) -> None:
251
262
 
252
263
  @app.command("policy")
253
264
  def policy(
254
- parent: str = typer.Argument(
255
- help="Dataset, workspace or organization ID (or resource name)"
256
- ),
265
+ ctx: typer.Context,
266
+ parent: str = _POLICY_PARENT,
257
267
  workspace: bool = typer.Option(
258
268
  False, "--workspace", help="Read a workspace default"
259
269
  ),
@@ -262,7 +272,7 @@ def policy(
262
272
  ) -> None:
263
273
  """Show automatic heuristic and graph policy, with effective sources."""
264
274
  p = _method("automatic_policy", "Automatic check policy")(
265
- parent, workspace=workspace, org=org
275
+ _policy_parent(ctx, parent, workspace, org), workspace=workspace, org=org
266
276
  )
267
277
  if json:
268
278
  print_json(p.to_wire())
@@ -275,9 +285,8 @@ def policy(
275
285
 
276
286
  @app.command("policy-set")
277
287
  def policy_set(
278
- parent: str = typer.Argument(
279
- help="Dataset, workspace or organization ID (or resource name)"
280
- ),
288
+ ctx: typer.Context,
289
+ parent: str = _POLICY_PARENT,
281
290
  workspace: bool = typer.Option(
282
291
  False, "--workspace", help="Change a workspace default"
283
292
  ),
@@ -294,7 +303,7 @@ def policy_set(
294
303
  raise typer.BadParameter("set --heuristic or --graph to on, off or inherit")
295
304
  reset = tuple(half for half, value in values.items() if value == "inherit")
296
305
  p = _method("set_automatic_policy", "Automatic check policy")(
297
- parent,
306
+ _policy_parent(ctx, parent, workspace, org),
298
307
  workspace=workspace,
299
308
  org=org,
300
309
  heuristic=None if heuristic in (None, "inherit") else heuristic == "on",
@@ -110,6 +110,24 @@ def _actor(actor: Any) -> str:
110
110
  return kind.lower() if kind and kind != "KIND_UNSPECIFIED" else "?"
111
111
 
112
112
 
113
+ def _set_by(actor: Any) -> str:
114
+ """Who set an outcome, as the studio's byline says it: a person by name,
115
+ a graph check's proposal as a model's, the operator's mark at recording."""
116
+ if actor is None:
117
+ return ""
118
+ kind = str(actor.kind or "")
119
+ if kind == "PERSON":
120
+ return f", set by {actor.display_name or actor.agent or 'a person'}"
121
+ if kind == "MODEL":
122
+ return f", proposed by a model ({actor.agent})" if actor.agent else ""
123
+ if kind == "OPERATOR":
124
+ named = f" by {actor.display_name}" if actor.display_name else ""
125
+ return f", marked{named} while recording"
126
+ if actor.agent:
127
+ return f", set by {actor.agent}"
128
+ return ""
129
+
130
+
113
131
  def list_episodes(
114
132
  dataset: str = _DATASET,
115
133
  filter: str | None = _FILTER,
@@ -232,7 +250,8 @@ def get_episode(
232
250
  inherited = " (from its upload)" if e.linked_task_inherited else ""
233
251
  typer.echo(f"Linked task: {e.linked_task}{inherited}")
234
252
  if e.outcome and e.outcome != "OUTCOME_UNSPECIFIED":
235
- typer.echo(f"Outcome: {e.outcome}")
253
+ by = _set_by(getattr(e, "outcome_actor", None))
254
+ typer.echo(f"Outcome: {e.outcome}{by}")
236
255
  if e.tags:
237
256
  typer.echo(f"Tags: {', '.join(e.tags)}")
238
257
  seconds = _seconds(e)
@@ -543,6 +543,8 @@ _DOWNLOAD_FORMATS = (
543
543
  "dreamlabs_v2_1",
544
544
  "original",
545
545
  )
546
+ # The formats --labels writes into: the labels file goes in a LeRobot tree.
547
+ _LABEL_FORMATS = ("lerobot_v3", "lerobot_v2_1")
546
548
 
547
549
 
548
550
  def _size(count: int) -> str:
@@ -670,6 +672,14 @@ def download_dataset(
670
672
  "Intelligence), dreamlabs_v2_1 (Dream Labs), or original (the files "
671
673
  "the dataset's newest upload sent, byte for byte; takes no version)",
672
674
  ),
675
+ labels: bool = typer.Option(
676
+ False,
677
+ "--labels",
678
+ help="Also write what Qualia knows about each exported episode into the "
679
+ "folder: meta/qualia/labels.jsonl (where it came from, the decision, the "
680
+ "video check's reading, open issues, subtasks) and "
681
+ "meta/qualia/export.json. With --format lerobot_v3 or lerobot_v2_1",
682
+ ),
673
683
  json: bool = typer.Option(False, "--json", help="JSON output"),
674
684
  ) -> None:
675
685
  """Download a dataset version in a format, or the files as uploaded.
@@ -691,14 +701,37 @@ def download_dataset(
691
701
  recorded SHA-256, or whose original build failed for good, downloads its
692
702
  stored files over the older route instead (an organization key only), and
693
703
  says so; --json names the reason in older_route.
704
+ --labels adds two files to a LeRobot download: meta/qualia/labels.jsonl,
705
+ one JSON line per exported episode in episode_index order (matched by the
706
+ ids a lerobot_v2_1 folder holds; a lerobot_v3 folder by the version's own
707
+ order), and meta/qualia/export.json (the dataset, the version, when the
708
+ labels were read, and counts). Decisions, check readings and issues are
709
+ the current ones; subtasks are the version's. Run again into the same
710
+ folder, it checks every file again and rewrites the labels.
694
711
  """
695
712
  fmt = output_format.replace("-", "_")
696
713
  if fmt not in _DOWNLOAD_FORMATS:
697
714
  raise typer.BadParameter(
698
715
  "one of " + ", ".join(_DOWNLOAD_FORMATS), param_hint="--format"
699
716
  )
717
+ if labels and fmt not in _LABEL_FORMATS:
718
+ raise typer.BadParameter(
719
+ "the labels are written into a LeRobot tree: use --format "
720
+ + " or ".join(_LABEL_FORMATS),
721
+ param_hint="--labels",
722
+ )
700
723
  client = get_client()
701
724
 
725
+ # Passed only when asked for: an SDK without it then downloads as before.
726
+ options: dict[str, Any] = {}
727
+ if labels:
728
+ if not _accepts_keyword(client.data.download, "labels"):
729
+ print_error(
730
+ "--labels needs a qualia-sdk that writes labels with a download "
731
+ f"(installed {_sdk_version()}); upgrade qualia-sdk."
732
+ )
733
+ raise SystemExit(1)
734
+ options["labels"] = True
702
735
  # The SDK reads <dataset>[:<version>] and takes whole ids and slugs.
703
736
  owner, colon, version = dataset.partition(":")
704
737
  named = dataset
@@ -712,12 +745,12 @@ def download_dataset(
712
745
  _older_route_notice(event, dataset)
713
746
 
714
747
  result = client.data.download(
715
- named, dest, format=fmt, on_progress=on_older_route
748
+ named, dest, format=fmt, on_progress=on_older_route, **options
716
749
  )
717
750
  else:
718
751
  with _DownloadProgress(dataset, fmt) as on_progress:
719
752
  result = client.data.download(
720
- named, dest, format=fmt, on_progress=on_progress
753
+ named, dest, format=fmt, on_progress=on_progress, **options
721
754
  )
722
755
  body: dict[str, Any] = {
723
756
  "destination": result.destination,
@@ -746,6 +779,15 @@ def download_dataset(
746
779
  dataset_version_id=version.dataset_version_id or None,
747
780
  materialization=result.materialization.to_wire(),
748
781
  )
782
+ written = getattr(result, "labels", None) if labels else None
783
+ if written is not None:
784
+ # only with --labels: without it the JSON has the keys it always had
785
+ body["labels"] = {
786
+ "labels": written.labels_path,
787
+ "export": written.export_path,
788
+ "labels_as_of": written.export.get("labels_as_of"),
789
+ "counts": written.counts,
790
+ }
749
791
  if json:
750
792
  print_json(body)
751
793
  return
@@ -758,6 +800,13 @@ def download_dataset(
758
800
  f"Saved {reference} as {result.layout} to {result.destination} "
759
801
  f"({result.file_count} files, {_size(result.byte_count)}{kept})"
760
802
  )
803
+ if written is not None:
804
+ counts = written.counts
805
+ typer.echo(
806
+ f"Labels for {counts['episodes']} episodes in {written.labels_path}: "
807
+ f"{counts['kept']} kept, {counts['checked']} checked by the video "
808
+ f"check ({counts['failed']} failed), {counts['not_checked']} not checked"
809
+ )
761
810
 
762
811
 
763
812
  def _accepts_keyword(function: Any, name: str) -> bool:
@@ -1023,11 +1072,16 @@ def upload_dataset(
1023
1072
  None,
1024
1073
  "--rig",
1025
1074
  help=(
1026
- "Convert a handheld (UMI) recording at this UMI rig as it lands: its "
1027
- "name or id (umi-handheld, the old name, is the workspace's one UMI "
1028
- "rig). A recording that declares the UMI kind and names none takes "
1029
- "the workspace's one UMI rig: none, or several, refuses it. "
1030
- "Make one first with New rig, UMI in the dashboard or "
1075
+ "The rig this data was recorded on, by name or id: any rig of the "
1076
+ "workspace (an arm rig for teleop or joint-recorded data, a UMI "
1077
+ "rig for a handheld recording, or another capture rig). Only a UMI "
1078
+ "rig also converts the recording as it lands (umi-handheld, the old name, "
1079
+ "is the workspace's one UMI rig). A handheld recording that "
1080
+ "declares the UMI kind and names none takes the workspace's one "
1081
+ "UMI rig: none, or several, refuses it. An arm rig is refused for "
1082
+ "a tree that declares a \\[rig] in meta/ingest.toml, and another "
1083
+ "capture rig for one that declares the UMI kind. "
1084
+ "Make a UMI rig first with New rig, UMI in the dashboard or "
1031
1085
  "`qualia gripper umi-rig`"
1032
1086
  ),
1033
1087
  ),
@@ -1049,6 +1103,13 @@ def upload_dataset(
1049
1103
 
1050
1104
  qualia dataset upload ./pick-place pick-place
1051
1105
  qualia dataset upload ./session-0412 kitchen --source-format mcap_ros2
1106
+ qualia dataset upload ./session kitchen --rig my-franka-rig
1107
+
1108
+ --rig names the rig the data was recorded on: any rig of the workspace, an
1109
+ arm rig (teleop or joint-recorded data), a UMI rig (a handheld recording,
1110
+ which converts as it lands) or another capture rig. Only a UMI rig converts
1111
+ anything; the others are just recorded on the upload. The dataset shows it
1112
+ as its rig once published.
1052
1113
 
1053
1114
  One dataset that grows with every batch: upload the first batch and the
1054
1115
  second each on its own (--standalone), then merge the two once with
@@ -1081,7 +1142,7 @@ def upload_dataset(
1081
1142
  Fields are carried as recorded, with no rotation conversion. \[clock]
1082
1143
  takes row_clock_topic or fixed_hz, not both.
1083
1144
 
1084
- A handheld (UMI) recording converts as it lands when --rig names a gripper:
1145
+ A handheld (UMI) recording converts as it lands when --rig names a UMI rig:
1085
1146
  the server writes its rig and TCP calibration into the upload's
1086
1147
  meta/ingest.toml (your local file is never written). An upload into a
1087
1148
  merged dataset whose uploads agree on one rig takes that rig without it,
@@ -1163,9 +1224,9 @@ def upload_dataset(
1163
1224
  raise SystemExit(1)
1164
1225
  if rig is not None and not _accepts_keyword(client.data.upload, "rig"):
1165
1226
  print_error(
1166
- f"--rig needs a qualia-sdk that converts uploads on arrival (installed "
1167
- f"{_sdk_version()}); upgrade qualia-sdk, or upload without --rig and "
1168
- "resolve the poses at the TCP afterwards."
1227
+ f"--rig needs a qualia-sdk that takes a rig on upload (installed "
1228
+ f"{_sdk_version()}); upgrade qualia-sdk, or upload without --rig "
1229
+ "(a handheld recording can resolve its poses at the TCP afterwards)."
1169
1230
  )
1170
1231
  raise SystemExit(1)
1171
1232
  try:
@@ -1245,7 +1306,7 @@ def upload_dataset(
1245
1306
  if isinstance(composed, dict) and composed.get("toml"):
1246
1307
  where = "the TCP" if composed.get("poses_at") == "tcp" else "the gripper roots"
1247
1308
  lender = (
1248
- "the gripper named"
1309
+ "the rig named"
1249
1310
  if composed.get("source") == "gripper"
1250
1311
  else "the merged dataset"
1251
1312
  )
@@ -1253,6 +1314,11 @@ def upload_dataset(
1253
1314
  f"Rig declared at upload: {composed.get('rig')} at {where}, from {lender}",
1254
1315
  err=True,
1255
1316
  )
1317
+ elif rig is not None and not (isinstance(composed, dict) and composed.get("detail")):
1318
+ # Nothing to convert (an arm rig or another capture rig): the upload
1319
+ # is recorded on the rig when it publishes, which the dataset then
1320
+ # shows.
1321
+ typer.echo(f"Rig named at upload: {rig}", err=True)
1256
1322
  typer.echo(f"Source dataset: {result['dataset_id']}")
1257
1323
  typer.echo(
1258
1324
  f"Files: {result['file_count']:,} "
@@ -7,7 +7,7 @@ from __future__ import annotations
7
7
 
8
8
  import json as json_mod
9
9
  from pathlib import Path
10
- from typing import Any
10
+ from typing import TYPE_CHECKING, Any
11
11
  from uuid import UUID
12
12
 
13
13
  import typer
@@ -15,6 +15,9 @@ import typer
15
15
  from qualia_cli.client import get_client
16
16
  from qualia_cli.output import print_error, print_json
17
17
 
18
+ if TYPE_CHECKING:
19
+ from qualia.models import LaunchRefusal
20
+
18
21
  app = typer.Typer(help="Launch pipeline templates, as the dashboard's launcher does.")
19
22
 
20
23
 
@@ -303,6 +306,7 @@ def template_validate(
303
306
  elif result.valid:
304
307
  fields = ", ".join(f.name for f in result.launch_fields) or "-"
305
308
  typer.echo(f"{result.name}: valid; launch fields: {fields}")
309
+ _say_not_launchable(result.launch_refusal)
306
310
  else:
307
311
  typer.echo(f"{file}: not valid", err=True)
308
312
  for problem in result.errors:
@@ -329,9 +333,19 @@ def template_apply(
329
333
  )
330
334
  fields = ", ".join(f.name for f in applied.launch_fields) or "-"
331
335
  typer.echo(f" launch fields: {fields}")
332
- typer.echo(
333
- f"Launch it: qualia pipeline launch {applied.name} --project <ID> --max-cost <N>"
334
- )
336
+ if applied.launchable:
337
+ typer.echo(
338
+ f"Launch it: qualia pipeline launch {applied.name} --project <ID> --max-cost <N>"
339
+ )
340
+ else:
341
+ _say_not_launchable(applied.launch_refusal)
342
+
343
+
344
+ def _say_not_launchable(refusal: LaunchRefusal | None) -> None:
345
+ """Why no run of it starts here (QUA-3419): applied, but a launch would
346
+ be refused with this."""
347
+ if refusal is not None:
348
+ typer.echo(f"Not launchable here: {refusal.message} ({refusal.code})", err=True)
335
349
 
336
350
 
337
351
  @template_app.command("history")