@brainbase-labs/cli 0.35.0 → 0.36.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36018,7 +36018,7 @@ function padStart(s, n) {
36018
36018
  // package.json
36019
36019
  var package_default = {
36020
36020
  name: "@brainbase-labs/cli",
36021
- version: "0.35.0",
36021
+ version: "0.36.0",
36022
36022
  description: "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
36023
36023
  type: "module",
36024
36024
  bin: {
@@ -85681,9 +85681,12 @@ class BenchmarkApiClient {
85681
85681
  query: { baseline_target_id: baselineTargetId }
85682
85682
  });
85683
85683
  }
85684
- exportRunResults(runId) {
85684
+ exportRunResults(runId, query = {}) {
85685
85685
  return this.request(`/runs/${encodeURIComponent(runId)}/results/export`, {
85686
- mode: "binary"
85686
+ mode: "binary",
85687
+ query: {
85688
+ include_billing_receipts: query.includeBillingReceipts || undefined
85689
+ }
85687
85690
  });
85688
85691
  }
85689
85692
  listTrials(runId, query = {}) {
@@ -87397,6 +87400,11 @@ var DEFINITIONS = [
87397
87400
  { key: "yes", names: ["--yes", "-y"], kind: "boolean" },
87398
87401
  { key: "all", names: ["--all"], kind: "boolean" },
87399
87402
  { key: "force", names: ["--force"], kind: "boolean" },
87403
+ {
87404
+ key: "includeBillingReceipts",
87405
+ names: ["--include-billing-receipts"],
87406
+ kind: "boolean"
87407
+ },
87400
87408
  { key: "archived", names: ["--archived"], kind: "boolean" },
87401
87409
  { key: "preview", names: ["--preview"], kind: "boolean" },
87402
87410
  { key: "watch", names: ["--watch"], kind: "boolean" },
@@ -88959,11 +88967,17 @@ async function runArtifacts(cwd2, argv, deps) {
88959
88967
  }, options);
88960
88968
  }
88961
88969
  async function runExportResults(cwd2, argv, deps) {
88962
- const options = parseControlOptions(argv, ["output", "force"]);
88963
- expectPositionals(options.positionals, 1, 1, "brainbase benchmark export-results <run-id> [--output <path>]");
88970
+ const options = parseControlOptions(argv, [
88971
+ "output",
88972
+ "force",
88973
+ "includeBillingReceipts"
88974
+ ]);
88975
+ expectPositionals(options.positionals, 1, 1, "brainbase benchmark export-results <run-id> [--output <path>] [--include-billing-receipts]");
88964
88976
  const runId = options.positionals[0];
88965
88977
  const { client, output } = context(cwd2, "benchmark export-results", options, deps);
88966
- const response = await client.exportRunResults(runId);
88978
+ const response = await client.exportRunResults(runId, {
88979
+ includeBillingReceipts: bool(options.parsed, "includeBillingReceipts")
88980
+ });
88967
88981
  const fallback = safeExportFilename(response.filename, `benchmark-run-${runId}-results.zip`);
88968
88982
  const written = writeBinaryOutput(cwd2, optionalNonblank(options.parsed, "output"), response.bytes, fallback, bool(options.parsed, "force"));
88969
88983
  output.result({
@@ -89176,7 +89190,7 @@ function commandLevelHelp(sub, argv) {
89176
89190
  case "artifacts":
89177
89191
  return usage("brainbase benchmark artifacts <run-id> <attempt-id> [--limit <n>] [--cursor <cursor>] [--all]");
89178
89192
  case "export-results":
89179
- return usage("brainbase benchmark export-results <run-id> [--output <path>] [--force]");
89193
+ return usage("brainbase benchmark export-results <run-id> [--output <path>] [--force] [--include-billing-receipts]");
89180
89194
  case "history":
89181
89195
  return usage("brainbase benchmark history <benchmark-id> [--limit <n>]");
89182
89196
  case "baseline":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainbase-labs/cli",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "Pack, share, and install agent templates across harnesses (Claude Code, Codex, ...).",
5
5
  "type": "module",
6
6
  "bin": {