bitfab 0.61.3 → 0.61.5
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-6IMUONDN.js → chunk-4TRH3X3S.js} +31 -3
- package/dist/chunk-4TRH3X3S.js.map +1 -0
- package/dist/{chunk-IZUZ5NBB.js → chunk-7OXXBUGQ.js} +178 -11
- package/dist/chunk-7OXXBUGQ.js.map +1 -0
- package/dist/{chunk-PAUXHTNF.js → chunk-KOANTEGQ.js} +6 -6
- package/dist/{chunk-PAUXHTNF.js.map → chunk-KOANTEGQ.js.map} +1 -1
- package/dist/{chunk-HVEZHLVQ.js → chunk-R5RMFRHX.js} +30 -3
- package/dist/{chunk-HVEZHLVQ.js.map → chunk-R5RMFRHX.js.map} +1 -1
- package/dist/{chunk-WOHIAKZF.js → chunk-VD5PS6WE.js} +28 -4
- package/dist/chunk-VD5PS6WE.js.map +1 -0
- package/dist/{http-BYICBOWP.js → http-CR2SEMK4.js} +2 -2
- package/dist/{http-3IYU5Z54.js → http-SK2QESXJ.js} +2 -2
- package/dist/index.cjs +220 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +3 -3
- package/dist/node.cjs +220 -11
- 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-SXHX5BBU.js → replay-YSR7FD4I.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-6IMUONDN.js.map +0 -1
- package/dist/chunk-IZUZ5NBB.js.map +0 -1
- package/dist/chunk-WOHIAKZF.js.map +0 -1
- /package/dist/{http-3IYU5Z54.js.map → http-CR2SEMK4.js.map} +0 -0
- /package/dist/{http-BYICBOWP.js.map → http-SK2QESXJ.js.map} +0 -0
- /package/dist/{replay-SXHX5BBU.js.map → replay-YSR7FD4I.js.map} +0 -0
|
@@ -181,7 +181,7 @@ function encodeRequestBody(body) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
// src/version.generated.ts
|
|
184
|
-
var __version__ = "0.61.
|
|
184
|
+
var __version__ = "0.61.5";
|
|
185
185
|
var __packageName__ = "bitfab";
|
|
186
186
|
|
|
187
187
|
// src/errors.ts
|
|
@@ -1423,6 +1423,8 @@ function shutdownTraceTransports(timeoutMs) {
|
|
|
1423
1423
|
// src/http.ts
|
|
1424
1424
|
var REPLAY_DB_BRANCH_REQUEST_TIMEOUT_MS = 3e5;
|
|
1425
1425
|
var REPLAY_COMPLETE_REQUEST_TIMEOUT_MS = 12e4;
|
|
1426
|
+
var REPLAY_INTERRUPT_REQUEST_TIMEOUT_MS = 5e3;
|
|
1427
|
+
var REPLAY_HEARTBEAT_REQUEST_TIMEOUT_MS = 5e3;
|
|
1426
1428
|
var OTLP_TRACES_ENDPOINT = "/api/sdk/otel/v1/traces";
|
|
1427
1429
|
var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
1428
1430
|
var EXIT_FLUSH_TIMEOUT_MS = 5e3;
|
|
@@ -2174,7 +2176,7 @@ var HttpClient = class {
|
|
|
2174
2176
|
* Start a replay session by fetching historical traces.
|
|
2175
2177
|
* Blocking call - creates an experiment and returns lightweight item references.
|
|
2176
2178
|
*/
|
|
2177
|
-
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay) {
|
|
2179
|
+
async startReplay(traceFunctionKey, limit, traceIds, name, codeChangeDescription, codeChangeFiles, includeDbBranchLease, experimentGroupId, datasetIds, graderIds, dbBranchSettings, attempts, includeOriginalMetadata, onlyWithAssertions, judgeAssertions, experimentalSelectiveReplay, notes) {
|
|
2178
2180
|
const payload = { traceFunctionKey };
|
|
2179
2181
|
if (experimentalSelectiveReplay !== void 0) {
|
|
2180
2182
|
payload.experimentalSelectiveReplay = experimentalSelectiveReplay;
|
|
@@ -2188,6 +2190,9 @@ var HttpClient = class {
|
|
|
2188
2190
|
if (name !== void 0) {
|
|
2189
2191
|
payload.name = name;
|
|
2190
2192
|
}
|
|
2193
|
+
if (notes !== void 0) {
|
|
2194
|
+
payload.notes = notes;
|
|
2195
|
+
}
|
|
2191
2196
|
if (codeChangeDescription !== void 0) {
|
|
2192
2197
|
payload.codeChangeDescription = codeChangeDescription;
|
|
2193
2198
|
}
|
|
@@ -2399,6 +2404,28 @@ var HttpClient = class {
|
|
|
2399
2404
|
{ timeout: REPLAY_COMPLETE_REQUEST_TIMEOUT_MS }
|
|
2400
2405
|
);
|
|
2401
2406
|
}
|
|
2407
|
+
async interruptReplay(experimentId) {
|
|
2408
|
+
try {
|
|
2409
|
+
await this.request(
|
|
2410
|
+
"/api/sdk/replay/interrupt",
|
|
2411
|
+
experimentIdWireFields(experimentId),
|
|
2412
|
+
{ timeout: REPLAY_INTERRUPT_REQUEST_TIMEOUT_MS }
|
|
2413
|
+
);
|
|
2414
|
+
return true;
|
|
2415
|
+
} catch {
|
|
2416
|
+
return false;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
async heartbeatReplay(experimentId) {
|
|
2420
|
+
try {
|
|
2421
|
+
await this.request(
|
|
2422
|
+
"/api/sdk/replay/heartbeat",
|
|
2423
|
+
experimentIdWireFields(experimentId),
|
|
2424
|
+
{ timeout: REPLAY_HEARTBEAT_REQUEST_TIMEOUT_MS }
|
|
2425
|
+
);
|
|
2426
|
+
} catch {
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2402
2429
|
async getReseedSource(traceId) {
|
|
2403
2430
|
return this.get(
|
|
2404
2431
|
`/api/sdk/traces/${encodeURIComponent(traceId)}/reseedSource`
|
|
@@ -2452,4 +2479,4 @@ export {
|
|
|
2452
2479
|
HttpClient,
|
|
2453
2480
|
experimentIdWireFields
|
|
2454
2481
|
};
|
|
2455
|
-
//# sourceMappingURL=chunk-
|
|
2482
|
+
//# sourceMappingURL=chunk-R5RMFRHX.js.map
|