@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.
- package/dist/{chunk-JNVDKPFL.js → chunk-26WDOYFS.js} +27 -6
- package/dist/chunk-26WDOYFS.js.map +1 -0
- package/dist/{chunk-EFGQRVMT.js → chunk-FSVGIKQT.js} +2 -2
- package/dist/{chunk-DY52FEEM.js → chunk-IHQKJWNN.js} +2 -2
- package/dist/{chunk-DY52FEEM.js.map → chunk-IHQKJWNN.js.map} +1 -1
- package/dist/{chunk-OMWPLB5R.js → chunk-NK5RZ3UH.js} +2 -2
- package/dist/{chunk-OMWPLB5R.js.map → chunk-NK5RZ3UH.js.map} +1 -1
- package/dist/{chunk-ULKKTYOL.js → chunk-PPNFMVOH.js} +2 -2
- package/dist/{chunk-R7SJXFMB.js → chunk-W6I5QA62.js} +4 -4
- package/dist/{http-GDTWWWYY.js → http-3WBKIQI4.js} +2 -2
- package/dist/{http-QXJJB2F5.js → http-BK6UJNXI.js} +2 -2
- package/dist/index.cjs +23 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +3 -3
- package/dist/node.cjs +23 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-VXQGVZXM.js → replay-OEANLAUE.js} +3 -3
- package/dist/{replay-DC3PID7Q.js → replay-ZTEDZUSG.js} +3 -3
- package/dist/replayCli.js +3 -3
- package/dist/seedCli.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-JNVDKPFL.js.map +0 -1
- /package/dist/{chunk-EFGQRVMT.js.map → chunk-FSVGIKQT.js.map} +0 -0
- /package/dist/{chunk-ULKKTYOL.js.map → chunk-PPNFMVOH.js.map} +0 -0
- /package/dist/{chunk-R7SJXFMB.js.map → chunk-W6I5QA62.js.map} +0 -0
- /package/dist/{http-GDTWWWYY.js.map → http-3WBKIQI4.js.map} +0 -0
- /package/dist/{http-QXJJB2F5.js.map → http-BK6UJNXI.js.map} +0 -0
- /package/dist/{replay-DC3PID7Q.js.map → replay-OEANLAUE.js.map} +0 -0
- /package/dist/{replay-VXQGVZXM.js.map → replay-ZTEDZUSG.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
serializeValue,
|
|
18
18
|
toJsonSafe,
|
|
19
19
|
toJsonSafeReport
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FSVGIKQT.js";
|
|
21
21
|
import {
|
|
22
22
|
BitfabError,
|
|
23
23
|
CONTENT_OFF_KEY,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
readEnv,
|
|
38
38
|
recordCallerTraceMetadata,
|
|
39
39
|
retireTraceMetadata
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-IHQKJWNN.js";
|
|
41
41
|
import {
|
|
42
42
|
__privateAdd,
|
|
43
43
|
__privateGet,
|
|
@@ -1332,6 +1332,27 @@ var DatasetsClient = class {
|
|
|
1332
1332
|
...params.description === void 0 ? {} : { description: params.description }
|
|
1333
1333
|
});
|
|
1334
1334
|
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Rename a dataset or change its description in place. The dataset keeps its
|
|
1337
|
+
* id, traces, and graders. An empty `description` clears it. Rejects with a
|
|
1338
|
+
* 400 `BitfabError` when the new name is already used by another dataset on
|
|
1339
|
+
* the same trace function, and a 404 when the dataset is not in this
|
|
1340
|
+
* organization.
|
|
1341
|
+
*/
|
|
1342
|
+
async update(datasetId, params) {
|
|
1343
|
+
if (params.name === void 0 && params.description === void 0) {
|
|
1344
|
+
throw new BitfabError("Provide name and/or description to update.");
|
|
1345
|
+
}
|
|
1346
|
+
const response = await this.httpClient.request(
|
|
1347
|
+
datasetPath(datasetId),
|
|
1348
|
+
{
|
|
1349
|
+
...params.name === void 0 ? {} : { name: params.name },
|
|
1350
|
+
...params.description === void 0 ? {} : { description: params.description }
|
|
1351
|
+
},
|
|
1352
|
+
{ method: "PATCH" }
|
|
1353
|
+
);
|
|
1354
|
+
return response.dataset;
|
|
1355
|
+
}
|
|
1335
1356
|
/**
|
|
1336
1357
|
* List datasets, scoped to one trace function when `traceFunctionKey` is
|
|
1337
1358
|
* given and organization-wide otherwise. Fetches all pages automatically.
|
|
@@ -6346,7 +6367,7 @@ var Bitfab = class {
|
|
|
6346
6367
|
await runWithSeedContext({ traceId }, async () => target(...args));
|
|
6347
6368
|
} finally {
|
|
6348
6369
|
try {
|
|
6349
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6370
|
+
const { flushTraces: flushTraces2 } = await import("./http-3WBKIQI4.js");
|
|
6350
6371
|
await flushTraces2(3e4);
|
|
6351
6372
|
} finally {
|
|
6352
6373
|
unrecorded = activeTraceStates.delete(traceId);
|
|
@@ -6405,7 +6426,7 @@ var Bitfab = class {
|
|
|
6405
6426
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
6406
6427
|
);
|
|
6407
6428
|
}
|
|
6408
|
-
const { replay: doReplay } = await import("./replay-
|
|
6429
|
+
const { replay: doReplay } = await import("./replay-OEANLAUE.js");
|
|
6409
6430
|
return doReplay(
|
|
6410
6431
|
this.httpClient,
|
|
6411
6432
|
this.serviceUrl,
|
|
@@ -6751,7 +6772,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
|
|
|
6751
6772
|
sessionId: seedCase.sessionId
|
|
6752
6773
|
})
|
|
6753
6774
|
);
|
|
6754
|
-
const { flushTraces: flushTraces2 } = await import("./http-
|
|
6775
|
+
const { flushTraces: flushTraces2 } = await import("./http-3WBKIQI4.js");
|
|
6755
6776
|
await flushTraces2(3e4);
|
|
6756
6777
|
return { pipeline, traceFunctionKey, traceIds };
|
|
6757
6778
|
}
|
|
@@ -6797,4 +6818,4 @@ export {
|
|
|
6797
6818
|
reseedFromRegistry,
|
|
6798
6819
|
seedFromRegistry
|
|
6799
6820
|
};
|
|
6800
|
-
//# sourceMappingURL=chunk-
|
|
6821
|
+
//# sourceMappingURL=chunk-26WDOYFS.js.map
|