@tuned-tensor/cli 0.4.23 → 0.4.24

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/README.md CHANGED
@@ -55,11 +55,16 @@ Useful discovery commands:
55
55
  tt specs list
56
56
  tt datasets list
57
57
  tt runs list
58
+ tt runs list --summary --json
58
59
  tt models list
59
60
  tt models base
60
61
  tt balance
61
62
  ```
62
63
 
64
+ Use `tt runs list --summary` for agents and scripts that only need run status,
65
+ scores, and pagination. It asks the API to omit detailed evaluation and event
66
+ payloads; combine it with `--json` for compact structured output.
67
+
63
68
  Label real, unlabeled data with a teacher model (JSONL with `{"input": ...}`
64
69
  rows, or CSV with `--input-column`; up to 50,000 rows / 50 MB). Labeling runs
65
70
  as a managed cloud workflow — upload and disconnect; the teacher drafts
package/dist/index.js CHANGED
@@ -951,19 +951,23 @@ async function buildRunRequestBody(cmdOpts, opts) {
951
951
  }
952
952
  function registerRunsCommands(parent) {
953
953
  const runs = parent.command("runs").description("Manage runs");
954
- runs.command("list").description("List runs").option("-s, --spec <id>", "Filter by spec ID (full UUID or 8+ char prefix)").option("-p, --page <n>", "Page number", "1").option("--per-page <n>", "Results per page", "20").action(async (cmdOpts) => {
954
+ runs.command("list").description("List runs").option("-s, --spec <id>", "Filter by spec ID (full UUID or 8+ char prefix)").option("-p, --page <n>", "Page number", "1").option("--per-page <n>", "Results per page", "20").option("--summary", "Request compact run summaries without detailed eval payloads or events").action(async (cmdOpts) => {
955
955
  const opts = parent.opts();
956
956
  let path = "/runs";
957
957
  const query = {
958
958
  page: cmdOpts.page,
959
959
  per_page: cmdOpts.perPage
960
960
  };
961
+ if (cmdOpts.summary) query.view = "summary";
961
962
  if (cmdOpts.spec) {
962
963
  const fullSpecId = await resolveSpecId(cmdOpts.spec, opts);
963
964
  path = `/behavior-specs/${fullSpecId}/runs`;
964
965
  }
965
- const { data, meta } = await get(path, query, opts);
966
- if (isJsonMode()) return printJson({ data, meta });
966
+ const response = await get(path, query, opts);
967
+ const { data, meta } = response;
968
+ if (isJsonMode()) {
969
+ return printJson(cmdOpts.summary ? response : { data, meta });
970
+ }
967
971
  printTable(
968
972
  ["ID", "Spec", "#", "Status", "Score", "Started", "Completed"],
969
973
  data.map((r) => [
@@ -4137,7 +4141,7 @@ function registerPushCommand(parent) {
4137
4141
 
4138
4142
  // src/index.ts
4139
4143
  var program = new Command();
4140
- program.name("tt").description("Tuned Tensor CLI \u2014 fine-tune and evaluate LLMs").version("0.4.23").option("-k, --api-key <key>", "API key (overrides stored key)").option(
4144
+ program.name("tt").description("Tuned Tensor CLI \u2014 fine-tune and evaluate LLMs").version("0.4.24").option("-k, --api-key <key>", "API key (overrides stored key)").option(
4141
4145
  "-u, --base-url <url>",
4142
4146
  "API base URL (default: https://tunedtensor.com)"
4143
4147
  ).option("--json", "Output raw JSON").option("--no-color", "Disable colors").hook("preAction", (_thisCommand, actionCommand) => {