@bitfab/sdk 0.53.5 → 0.54.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.
- package/dist/{chunk-BOXLWX73.js → chunk-EPWQ43SC.js} +2 -2
- package/dist/{chunk-BOXLWX73.js.map → chunk-EPWQ43SC.js.map} +1 -1
- package/dist/{chunk-IDQBDBNS.js → chunk-IDUFXDV6.js} +3 -3
- package/dist/{chunk-PAL7VIWM.js → chunk-MZ42HQ7N.js} +2 -2
- package/dist/{chunk-Q7IB5VFZ.js → chunk-SOYIEIGU.js} +38 -6
- package/dist/chunk-SOYIEIGU.js.map +1 -0
- package/dist/{chunk-RMATODGT.js → chunk-X2FL37KB.js} +2 -2
- package/dist/{chunk-RMATODGT.js.map → chunk-X2FL37KB.js.map} +1 -1
- package/dist/{http-6F3OLGWX.js → http-EQ4PDMDO.js} +2 -2
- package/dist/{http-3WOABXYN.js → http-WTRCGTCE.js} +2 -2
- package/dist/index.cjs +34 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -4
- package/dist/index.d.ts +38 -4
- package/dist/index.js +5 -3
- package/dist/node.cjs +34 -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 +5 -3
- package/dist/node.js.map +1 -1
- package/dist/{replay-HVLPMPVQ.js → replay-5ZF55JZX.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-Q7IB5VFZ.js.map +0 -1
- /package/dist/{chunk-IDQBDBNS.js.map → chunk-IDUFXDV6.js.map} +0 -0
- /package/dist/{chunk-PAL7VIWM.js.map → chunk-MZ42HQ7N.js.map} +0 -0
- /package/dist/{http-3WOABXYN.js.map → http-EQ4PDMDO.js.map} +0 -0
- /package/dist/{http-6F3OLGWX.js.map → http-WTRCGTCE.js.map} +0 -0
- /package/dist/{replay-HVLPMPVQ.js.map → replay-5ZF55JZX.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X2FL37KB.js";
|
|
10
10
|
export {
|
|
11
11
|
BitfabError,
|
|
12
12
|
HttpClient,
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
parseRetryAfterMs,
|
|
17
17
|
serializePayloadBody
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=http-
|
|
19
|
+
//# sourceMappingURL=http-EQ4PDMDO.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EPWQ43SC.js";
|
|
10
10
|
import "./chunk-VCRFFCLY.js";
|
|
11
11
|
export {
|
|
12
12
|
BitfabError,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
parseRetryAfterMs,
|
|
18
18
|
serializePayloadBody
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=http-
|
|
20
|
+
//# sourceMappingURL=http-WTRCGTCE.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.
|
|
45
|
+
__version__ = "0.54.0";
|
|
46
46
|
__packageName__ = "@bitfab/sdk";
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -4062,6 +4062,7 @@ var init_replay = __esm({
|
|
|
4062
4062
|
// src/index.ts
|
|
4063
4063
|
var index_exports = {};
|
|
4064
4064
|
__export(index_exports, {
|
|
4065
|
+
AssertionCategoriesClient: () => AssertionCategoriesClient,
|
|
4065
4066
|
BITFAB_PROGRESS_PREFIX: () => BITFAB_PROGRESS_PREFIX,
|
|
4066
4067
|
Bitfab: () => Bitfab,
|
|
4067
4068
|
BitfabClaudeAgentHandler: () => BitfabClaudeAgentHandler,
|
|
@@ -4098,6 +4099,36 @@ __export(index_exports, {
|
|
|
4098
4099
|
});
|
|
4099
4100
|
module.exports = __toCommonJS(index_exports);
|
|
4100
4101
|
|
|
4102
|
+
// src/assertionCategories.ts
|
|
4103
|
+
var CATEGORIES_PATH = "/api/sdk/assertionCategories";
|
|
4104
|
+
var AssertionCategoriesClient = class {
|
|
4105
|
+
constructor(httpClient) {
|
|
4106
|
+
this.httpClient = httpClient;
|
|
4107
|
+
}
|
|
4108
|
+
/** Create a category, or update it by ID. Omitted descriptions are preserved. */
|
|
4109
|
+
async save(params) {
|
|
4110
|
+
const response = await this.httpClient.request(CATEGORIES_PATH, params);
|
|
4111
|
+
return response.category;
|
|
4112
|
+
}
|
|
4113
|
+
/** Read one category in the API key's organization. */
|
|
4114
|
+
async get(id) {
|
|
4115
|
+
const response = await this.httpClient.get(
|
|
4116
|
+
`${CATEGORIES_PATH}/${encodeURIComponent(id)}`
|
|
4117
|
+
);
|
|
4118
|
+
return response.category;
|
|
4119
|
+
}
|
|
4120
|
+
/** List the organization's categories ordered by title. */
|
|
4121
|
+
async list() {
|
|
4122
|
+
const response = await this.httpClient.get(CATEGORIES_PATH);
|
|
4123
|
+
return response.categories;
|
|
4124
|
+
}
|
|
4125
|
+
/** Delete a category and clear its assignments, preserving assertions and verdicts. */
|
|
4126
|
+
async delete(id) {
|
|
4127
|
+
const response = await this.httpClient.request(`${CATEGORIES_PATH}/${encodeURIComponent(id)}`, {}, { method: "DELETE" });
|
|
4128
|
+
return response.category;
|
|
4129
|
+
}
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4101
4132
|
// src/assertions.ts
|
|
4102
4133
|
var ASSERTIONS_PATH = "/api/sdk/traces/assertions";
|
|
4103
4134
|
function traceAssertionsPath(traceId, suffix = "") {
|
|
@@ -7649,6 +7680,7 @@ var Bitfab = class {
|
|
|
7649
7680
|
this.httpClient.releaseHeldExternalSpans = (timeoutMs) => this.simulationPlan.release(timeoutMs);
|
|
7650
7681
|
this.httpClient.stopSimulationPlan = () => this.simulationPlan.stop();
|
|
7651
7682
|
this.datasets = new DatasetsClient(this.httpClient);
|
|
7683
|
+
this.assertionCategories = new AssertionCategoriesClient(this.httpClient);
|
|
7652
7684
|
this.traces = new TracesClient(this.httpClient);
|
|
7653
7685
|
this.labels = new LabelsClient(this.httpClient);
|
|
7654
7686
|
this.graders = new GradersClient(this.httpClient);
|
|
@@ -9720,6 +9752,7 @@ function resolveTraceFunctionKey(registration) {
|
|
|
9720
9752
|
}
|
|
9721
9753
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9722
9754
|
0 && (module.exports = {
|
|
9755
|
+
AssertionCategoriesClient,
|
|
9723
9756
|
BITFAB_PROGRESS_PREFIX,
|
|
9724
9757
|
Bitfab,
|
|
9725
9758
|
BitfabClaudeAgentHandler,
|