@bitfab/sdk 0.64.25 → 0.64.26

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 (34) hide show
  1. package/dist/{chunk-JNVDKPFL.js → chunk-26WDOYFS.js} +27 -6
  2. package/dist/chunk-26WDOYFS.js.map +1 -0
  3. package/dist/{chunk-EFGQRVMT.js → chunk-FSVGIKQT.js} +2 -2
  4. package/dist/{chunk-DY52FEEM.js → chunk-IHQKJWNN.js} +2 -2
  5. package/dist/{chunk-DY52FEEM.js.map → chunk-IHQKJWNN.js.map} +1 -1
  6. package/dist/{chunk-OMWPLB5R.js → chunk-NK5RZ3UH.js} +2 -2
  7. package/dist/{chunk-OMWPLB5R.js.map → chunk-NK5RZ3UH.js.map} +1 -1
  8. package/dist/{chunk-ULKKTYOL.js → chunk-PPNFMVOH.js} +2 -2
  9. package/dist/{chunk-R7SJXFMB.js → chunk-W6I5QA62.js} +4 -4
  10. package/dist/{http-GDTWWWYY.js → http-3WBKIQI4.js} +2 -2
  11. package/dist/{http-QXJJB2F5.js → http-BK6UJNXI.js} +2 -2
  12. package/dist/index.cjs +23 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +14 -2
  15. package/dist/index.d.ts +14 -2
  16. package/dist/index.js +3 -3
  17. package/dist/node.cjs +23 -1
  18. package/dist/node.cjs.map +1 -1
  19. package/dist/node.d.cts +1 -1
  20. package/dist/node.d.ts +1 -1
  21. package/dist/node.js +3 -3
  22. package/dist/{replay-VXQGVZXM.js → replay-OEANLAUE.js} +3 -3
  23. package/dist/{replay-DC3PID7Q.js → replay-ZTEDZUSG.js} +3 -3
  24. package/dist/replayCli.js +3 -3
  25. package/dist/seedCli.js +3 -3
  26. package/package.json +1 -1
  27. package/dist/chunk-JNVDKPFL.js.map +0 -1
  28. /package/dist/{chunk-EFGQRVMT.js.map → chunk-FSVGIKQT.js.map} +0 -0
  29. /package/dist/{chunk-ULKKTYOL.js.map → chunk-PPNFMVOH.js.map} +0 -0
  30. /package/dist/{chunk-R7SJXFMB.js.map → chunk-W6I5QA62.js.map} +0 -0
  31. /package/dist/{http-GDTWWWYY.js.map → http-3WBKIQI4.js.map} +0 -0
  32. /package/dist/{http-QXJJB2F5.js.map → http-BK6UJNXI.js.map} +0 -0
  33. /package/dist/{replay-DC3PID7Q.js.map → replay-OEANLAUE.js.map} +0 -0
  34. /package/dist/{replay-VXQGVZXM.js.map → replay-ZTEDZUSG.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  unrefTimer,
10
10
  warnOnce,
11
11
  writeOnce
12
- } from "./chunk-OMWPLB5R.js";
12
+ } from "./chunk-NK5RZ3UH.js";
13
13
 
14
14
  // src/codeChange.ts
15
15
  var MAX_FILES = 60;
@@ -1902,4 +1902,4 @@ export {
1902
1902
  warnJudgeAssertionsDeprecated,
1903
1903
  replay
1904
1904
  };
1905
- //# sourceMappingURL=chunk-ULKKTYOL.js.map
1905
+ //# sourceMappingURL=chunk-PPNFMVOH.js.map
@@ -6,13 +6,13 @@ import {
6
6
  serializeReplayResult,
7
7
  warnJudgeAssertionsDeprecated,
8
8
  withCliFlags
9
- } from "./chunk-ULKKTYOL.js";
9
+ } from "./chunk-PPNFMVOH.js";
10
10
  import {
11
11
  BitfabError,
12
12
  asyncStorageReady,
13
13
  createAsyncLocalStorage,
14
14
  warnOnce
15
- } from "./chunk-OMWPLB5R.js";
15
+ } from "./chunk-NK5RZ3UH.js";
16
16
 
17
17
  // src/autoTrace.ts
18
18
  var autoTraceGlobal = globalThis;
@@ -456,7 +456,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
456
456
  sessionId: seedCase.sessionId
457
457
  })
458
458
  );
459
- const { flushTraces } = await import("./http-QXJJB2F5.js");
459
+ const { flushTraces } = await import("./http-BK6UJNXI.js");
460
460
  await flushTraces(3e4);
461
461
  return { pipeline, traceFunctionKey, traceIds };
462
462
  }
@@ -1167,4 +1167,4 @@ export {
1167
1167
  runRegistryMain,
1168
1168
  runIfEntrypoint
1169
1169
  };
1170
- //# sourceMappingURL=chunk-R7SJXFMB.js.map
1170
+ //# sourceMappingURL=chunk-W6I5QA62.js.map
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-DY52FEEM.js";
11
+ } from "./chunk-IHQKJWNN.js";
12
12
  import "./chunk-MT36GJMW.js";
13
13
  export {
14
14
  BitfabError,
@@ -21,4 +21,4 @@ export {
21
21
  parseRetryAfterMs,
22
22
  serializePayloadBody
23
23
  };
24
- //# sourceMappingURL=http-GDTWWWYY.js.map
24
+ //# sourceMappingURL=http-3WBKIQI4.js.map
@@ -8,7 +8,7 @@ import {
8
8
  flushTraces,
9
9
  parseRetryAfterMs,
10
10
  serializePayloadBody
11
- } from "./chunk-OMWPLB5R.js";
11
+ } from "./chunk-NK5RZ3UH.js";
12
12
  export {
13
13
  BitfabError,
14
14
  HttpClient,
@@ -20,4 +20,4 @@ export {
20
20
  parseRetryAfterMs,
21
21
  serializePayloadBody
22
22
  };
23
- //# sourceMappingURL=http-QXJJB2F5.js.map
23
+ //# sourceMappingURL=http-BK6UJNXI.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.64.25";
45
+ __version__ = "0.64.26";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -6804,6 +6804,7 @@ function currentCommitRef() {
6804
6804
  init_constants();
6805
6805
 
6806
6806
  // src/datasets.ts
6807
+ init_errors();
6807
6808
  var DEFAULT_RERUN_TIMEOUT_MS = 9e4;
6808
6809
  var RERUN_POLL_INTERVAL_MS = 1e3;
6809
6810
  var TERMINAL_RERUN_STATUSES = /* @__PURE__ */ new Set([
@@ -6860,6 +6861,27 @@ var DatasetsClient = class {
6860
6861
  ...params.description === void 0 ? {} : { description: params.description }
6861
6862
  });
6862
6863
  }
6864
+ /**
6865
+ * Rename a dataset or change its description in place. The dataset keeps its
6866
+ * id, traces, and graders. An empty `description` clears it. Rejects with a
6867
+ * 400 `BitfabError` when the new name is already used by another dataset on
6868
+ * the same trace function, and a 404 when the dataset is not in this
6869
+ * organization.
6870
+ */
6871
+ async update(datasetId, params) {
6872
+ if (params.name === void 0 && params.description === void 0) {
6873
+ throw new BitfabError("Provide name and/or description to update.");
6874
+ }
6875
+ const response = await this.httpClient.request(
6876
+ datasetPath(datasetId),
6877
+ {
6878
+ ...params.name === void 0 ? {} : { name: params.name },
6879
+ ...params.description === void 0 ? {} : { description: params.description }
6880
+ },
6881
+ { method: "PATCH" }
6882
+ );
6883
+ return response.dataset;
6884
+ }
6863
6885
  /**
6864
6886
  * List datasets, scoped to one trace function when `traceFunctionKey` is
6865
6887
  * given and organization-wide otherwise. Fetches all pages automatically.