bitfab 0.44.1 → 0.46.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-6K7ZEU4B.js → chunk-ACTCII7Z.js} +2 -2
- package/dist/{chunk-6K7ZEU4B.js.map → chunk-ACTCII7Z.js.map} +1 -1
- package/dist/{chunk-JEPE7OJ2.js → chunk-RGX4CJ34.js} +2 -2
- package/dist/{chunk-JEPE7OJ2.js.map → chunk-RGX4CJ34.js.map} +1 -1
- package/dist/{chunk-BPVYNFCE.js → chunk-SYRQHV7J.js} +59 -6
- package/dist/chunk-SYRQHV7J.js.map +1 -0
- package/dist/{chunk-PUHN4E2S.js → chunk-V73RJLOF.js} +2 -2
- package/dist/{http-BAP3SWUW.js → http-MKX2IXAQ.js} +2 -2
- package/dist/{http-NSLIVDHV.js → http-NKWONITE.js} +2 -2
- package/dist/index.cjs +56 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +117 -34
- package/dist/index.d.ts +117 -34
- package/dist/index.js +7 -3
- package/dist/node.cjs +56 -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 +7 -3
- package/dist/node.js.map +1 -1
- package/dist/{replay-ZZXLMJGS.js → replay-Q46MY2HC.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BPVYNFCE.js.map +0 -1
- /package/dist/{chunk-PUHN4E2S.js.map → chunk-V73RJLOF.js.map} +0 -0
- /package/dist/{http-BAP3SWUW.js.map → http-MKX2IXAQ.js.map} +0 -0
- /package/dist/{http-NSLIVDHV.js.map → http-NKWONITE.js.map} +0 -0
- /package/dist/{replay-ZZXLMJGS.js.map → replay-Q46MY2HC.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
replayContextReady,
|
|
6
6
|
runWithReplayContext,
|
|
7
7
|
warnOnce
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ACTCII7Z.js";
|
|
9
9
|
|
|
10
10
|
// src/codeChange.ts
|
|
11
11
|
var MAX_FILES = 60;
|
|
@@ -1191,4 +1191,4 @@ export {
|
|
|
1191
1191
|
sleepForReplayPersistence,
|
|
1192
1192
|
replay
|
|
1193
1193
|
};
|
|
1194
|
-
//# sourceMappingURL=chunk-
|
|
1194
|
+
//# sourceMappingURL=chunk-V73RJLOF.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ACTCII7Z.js";
|
|
10
10
|
import "./chunk-H6LZRFMN.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-MKX2IXAQ.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RGX4CJ34.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-NKWONITE.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var __version__, __packageName__;
|
|
|
51
51
|
var init_version_generated = __esm({
|
|
52
52
|
"src/version.generated.ts"() {
|
|
53
53
|
"use strict";
|
|
54
|
-
__version__ = "0.
|
|
54
|
+
__version__ = "0.46.0";
|
|
55
55
|
__packageName__ = "bitfab";
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -3278,10 +3278,12 @@ __export(index_exports, {
|
|
|
3278
3278
|
DatasetsClient: () => DatasetsClient,
|
|
3279
3279
|
DbBranchReplayError: () => DbBranchReplayError,
|
|
3280
3280
|
HttpClient: () => HttpClient,
|
|
3281
|
+
LabelsClient: () => LabelsClient,
|
|
3281
3282
|
MixedTracingError: () => MixedTracingError,
|
|
3282
3283
|
NO_MOCK_OVERRIDE: () => NO_MOCK_OVERRIDE,
|
|
3283
3284
|
ReplayError: () => ReplayError,
|
|
3284
3285
|
SUPPORTED_PROVIDERS: () => SUPPORTED_PROVIDERS,
|
|
3286
|
+
TracesClient: () => TracesClient,
|
|
3285
3287
|
__version__: () => __version__,
|
|
3286
3288
|
defineReplayRegistry: () => defineReplayRegistry,
|
|
3287
3289
|
finalizers: () => finalizers,
|
|
@@ -3295,6 +3297,33 @@ __export(index_exports, {
|
|
|
3295
3297
|
});
|
|
3296
3298
|
module.exports = __toCommonJS(index_exports);
|
|
3297
3299
|
|
|
3300
|
+
// src/assertions.ts
|
|
3301
|
+
function expectationsPath(traceId, suffix = "") {
|
|
3302
|
+
return `/api/sdk/traces/${encodeURIComponent(traceId)}/assertions${suffix}`;
|
|
3303
|
+
}
|
|
3304
|
+
var TracesClient = class {
|
|
3305
|
+
constructor(httpClient) {
|
|
3306
|
+
this.httpClient = httpClient;
|
|
3307
|
+
}
|
|
3308
|
+
async getAssertions(traceId) {
|
|
3309
|
+
return this.httpClient.get(expectationsPath(traceId));
|
|
3310
|
+
}
|
|
3311
|
+
async saveAssertions(params) {
|
|
3312
|
+
const response = await this.httpClient.request(expectationsPath(params.traceId), {
|
|
3313
|
+
assertions: params.assertions,
|
|
3314
|
+
source: params.source ?? "agent"
|
|
3315
|
+
});
|
|
3316
|
+
return response.assertions;
|
|
3317
|
+
}
|
|
3318
|
+
async archiveAssertions(params) {
|
|
3319
|
+
const response = await this.httpClient.request(
|
|
3320
|
+
expectationsPath(params.traceId, "/archive"),
|
|
3321
|
+
{ assertionIds: params.assertionIds }
|
|
3322
|
+
);
|
|
3323
|
+
return response.archived;
|
|
3324
|
+
}
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3298
3327
|
// src/claudeAgentSdk.ts
|
|
3299
3328
|
init_constants();
|
|
3300
3329
|
init_http();
|
|
@@ -4545,6 +4574,28 @@ function buildSnapshotRef(config, sdkWallClockBeforeFn) {
|
|
|
4545
4574
|
init_errors();
|
|
4546
4575
|
init_http();
|
|
4547
4576
|
|
|
4577
|
+
// src/labels.ts
|
|
4578
|
+
var LABELS_PATH = "/api/sdk/traces/labels";
|
|
4579
|
+
var LabelsClient = class {
|
|
4580
|
+
constructor(httpClient) {
|
|
4581
|
+
this.httpClient = httpClient;
|
|
4582
|
+
}
|
|
4583
|
+
async save(update, testRunId) {
|
|
4584
|
+
const [outcome] = await this.saveAll([update], testRunId);
|
|
4585
|
+
return outcome;
|
|
4586
|
+
}
|
|
4587
|
+
async saveAll(updates, testRunId) {
|
|
4588
|
+
const response = await this.httpClient.request(
|
|
4589
|
+
LABELS_PATH,
|
|
4590
|
+
{
|
|
4591
|
+
labels: updates,
|
|
4592
|
+
...testRunId === void 0 ? {} : { testRunId }
|
|
4593
|
+
}
|
|
4594
|
+
);
|
|
4595
|
+
return response.labels;
|
|
4596
|
+
}
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4548
4599
|
// src/langgraph.ts
|
|
4549
4600
|
init_constants();
|
|
4550
4601
|
init_http();
|
|
@@ -6318,6 +6369,8 @@ var Bitfab = class {
|
|
|
6318
6369
|
timeout: this.timeout
|
|
6319
6370
|
});
|
|
6320
6371
|
this.datasets = new DatasetsClient(this.httpClient);
|
|
6372
|
+
this.traces = new TracesClient(this.httpClient);
|
|
6373
|
+
this.labels = new LabelsClient(this.httpClient);
|
|
6321
6374
|
}
|
|
6322
6375
|
/**
|
|
6323
6376
|
* Decorate a class method as an automatically expanded trace root.
|
|
@@ -8219,10 +8272,12 @@ function resolveTraceFunctionKey(registration) {
|
|
|
8219
8272
|
DatasetsClient,
|
|
8220
8273
|
DbBranchReplayError,
|
|
8221
8274
|
HttpClient,
|
|
8275
|
+
LabelsClient,
|
|
8222
8276
|
MixedTracingError,
|
|
8223
8277
|
NO_MOCK_OVERRIDE,
|
|
8224
8278
|
ReplayError,
|
|
8225
8279
|
SUPPORTED_PROVIDERS,
|
|
8280
|
+
TracesClient,
|
|
8226
8281
|
__version__,
|
|
8227
8282
|
defineReplayRegistry,
|
|
8228
8283
|
finalizers,
|