bitfab 0.54.11 → 0.54.12
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-2C7M3Y3H.js → chunk-RDSNJFWY.js} +3 -3
- package/dist/{chunk-RUBVHBIK.js → chunk-VTFBDA3O.js} +2 -2
- package/dist/{chunk-RUBVHBIK.js.map → chunk-VTFBDA3O.js.map} +1 -1
- package/dist/{chunk-FMUJONTQ.js → chunk-WKXLCFLT.js} +2 -2
- package/dist/{chunk-FMUJONTQ.js.map → chunk-WKXLCFLT.js.map} +1 -1
- package/dist/{chunk-MEJOPEKV.js → chunk-YY5BB2YS.js} +60 -16
- package/dist/chunk-YY5BB2YS.js.map +1 -0
- package/dist/{chunk-G4LWALQ7.js → chunk-ZR4HGK6G.js} +2 -2
- package/dist/{http-AXPT27DO.js → http-NWSSB5FA.js} +2 -2
- package/dist/{http-JQN2LHHF.js → http-RJH6VYAM.js} +2 -2
- package/dist/index.cjs +55 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -11
- package/dist/index.d.ts +13 -11
- package/dist/index.js +3 -3
- package/dist/node.cjs +55 -11
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-DOG4KV7I.js → replay-WB5NQNQS.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-MEJOPEKV.js.map +0 -1
- /package/dist/{chunk-2C7M3Y3H.js.map → chunk-RDSNJFWY.js.map} +0 -0
- /package/dist/{chunk-G4LWALQ7.js.map → chunk-ZR4HGK6G.js.map} +0 -0
- /package/dist/{http-AXPT27DO.js.map → http-NWSSB5FA.js.map} +0 -0
- /package/dist/{http-JQN2LHHF.js.map → http-RJH6VYAM.js.map} +0 -0
- /package/dist/{replay-DOG4KV7I.js.map → replay-WB5NQNQS.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
replayContextReady,
|
|
7
7
|
runWithReplayContext,
|
|
8
8
|
warnOnce
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WKXLCFLT.js";
|
|
10
10
|
import {
|
|
11
11
|
runWithCaptureSuppressed
|
|
12
12
|
} from "./chunk-VCRFFCLY.js";
|
|
@@ -1257,4 +1257,4 @@ export {
|
|
|
1257
1257
|
sleepForReplayPersistence,
|
|
1258
1258
|
replay
|
|
1259
1259
|
};
|
|
1260
|
-
//# sourceMappingURL=chunk-
|
|
1260
|
+
//# sourceMappingURL=chunk-ZR4HGK6G.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WKXLCFLT.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-NWSSB5FA.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
flushTraces,
|
|
7
7
|
parseRetryAfterMs,
|
|
8
8
|
serializePayloadBody
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VTFBDA3O.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-RJH6VYAM.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.
|
|
54
|
+
__version__ = "0.54.12";
|
|
55
55
|
__packageName__ = "bitfab";
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -7206,18 +7206,42 @@ var RIVET_TOP_LEVEL_EFFECTS = [
|
|
|
7206
7206
|
"broadcast",
|
|
7207
7207
|
"saveState",
|
|
7208
7208
|
"sleep",
|
|
7209
|
-
"destroy"
|
|
7209
|
+
"destroy",
|
|
7210
|
+
"step",
|
|
7211
|
+
"tryStep",
|
|
7212
|
+
"try",
|
|
7213
|
+
"loop",
|
|
7214
|
+
"sleepUntil",
|
|
7215
|
+
"rollbackCheckpoint",
|
|
7216
|
+
"join",
|
|
7217
|
+
"race",
|
|
7218
|
+
"removed",
|
|
7219
|
+
"getVersion"
|
|
7210
7220
|
];
|
|
7211
7221
|
var TOP_LEVEL_UNAVAILABLE_CAPABILITIES = /* @__PURE__ */ new Set([
|
|
7212
7222
|
"conn",
|
|
7213
7223
|
"conns",
|
|
7214
|
-
"log",
|
|
7215
7224
|
"request",
|
|
7216
7225
|
"actorRuntimeSocket",
|
|
7217
7226
|
"keepAwake",
|
|
7218
7227
|
"waitUntil",
|
|
7219
7228
|
"client"
|
|
7220
7229
|
]);
|
|
7230
|
+
var replayLog = () => void 0;
|
|
7231
|
+
var replayLogger = {
|
|
7232
|
+
level: "silent",
|
|
7233
|
+
msgPrefix: void 0,
|
|
7234
|
+
fatal: replayLog,
|
|
7235
|
+
trace: replayLog,
|
|
7236
|
+
silent: replayLog,
|
|
7237
|
+
debug: replayLog,
|
|
7238
|
+
info: replayLog,
|
|
7239
|
+
warn: replayLog,
|
|
7240
|
+
error: replayLog,
|
|
7241
|
+
child: () => replayLogger,
|
|
7242
|
+
bindings: () => ({}),
|
|
7243
|
+
isLevelEnabled: () => false
|
|
7244
|
+
};
|
|
7221
7245
|
var SYNC_VOID_EFFECTS = /* @__PURE__ */ new Set([
|
|
7222
7246
|
"broadcast",
|
|
7223
7247
|
"sleep",
|
|
@@ -7247,16 +7271,28 @@ function snapshotContext(context) {
|
|
|
7247
7271
|
"state",
|
|
7248
7272
|
"vars",
|
|
7249
7273
|
"actorId",
|
|
7274
|
+
"workflowId",
|
|
7250
7275
|
"name",
|
|
7251
7276
|
"key",
|
|
7252
|
-
"region"
|
|
7253
|
-
"aborted"
|
|
7277
|
+
"region"
|
|
7254
7278
|
]) {
|
|
7255
7279
|
const value = readProperty(source, property);
|
|
7256
7280
|
if (value !== void 0) {
|
|
7257
7281
|
snapshot[property] = value;
|
|
7258
7282
|
}
|
|
7259
7283
|
}
|
|
7284
|
+
const aborted = readProperty(source, "aborted");
|
|
7285
|
+
if (typeof aborted === "boolean") {
|
|
7286
|
+
snapshot.aborted = aborted;
|
|
7287
|
+
} else {
|
|
7288
|
+
const abortSignal = readProperty(source, "abortSignal");
|
|
7289
|
+
if (isRecord5(abortSignal)) {
|
|
7290
|
+
const signalAborted = readProperty(abortSignal, "aborted");
|
|
7291
|
+
if (typeof signalAborted === "boolean") {
|
|
7292
|
+
snapshot.aborted = signalAborted;
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7295
|
+
}
|
|
7260
7296
|
return snapshot;
|
|
7261
7297
|
}
|
|
7262
7298
|
function unavailableCapability(path) {
|
|
@@ -7348,7 +7384,8 @@ var BitfabRivetIntegration = class {
|
|
|
7348
7384
|
}
|
|
7349
7385
|
/**
|
|
7350
7386
|
* Adapt a traced function into a Rivet handler whose first argument is the
|
|
7351
|
-
* live actor context. The context is not added to the traced
|
|
7387
|
+
* live actor or workflow context. The context is not added to the traced
|
|
7388
|
+
* root's inputs.
|
|
7352
7389
|
*/
|
|
7353
7390
|
bind(fn) {
|
|
7354
7391
|
const integration = this;
|
|
@@ -7359,7 +7396,8 @@ var BitfabRivetIntegration = class {
|
|
|
7359
7396
|
/**
|
|
7360
7397
|
* Return the current Rivet context proxy. In production it delegates to the
|
|
7361
7398
|
* bound live context. During replay it hydrates recorded actor state and
|
|
7362
|
-
* intercepts supported effects without requiring a live Rivet actor
|
|
7399
|
+
* intercepts supported effects without requiring a live Rivet actor or
|
|
7400
|
+
* workflow.
|
|
7363
7401
|
*/
|
|
7364
7402
|
getContext() {
|
|
7365
7403
|
const replay2 = getReplayContext();
|
|
@@ -7443,6 +7481,12 @@ var BitfabRivetIntegration = class {
|
|
|
7443
7481
|
if (property === "setPreventSleep" && replay2) {
|
|
7444
7482
|
return (_preventSleep) => void 0;
|
|
7445
7483
|
}
|
|
7484
|
+
if (property === "isEvicted" && replay2) {
|
|
7485
|
+
return () => replayTarget.abortSignal?.aborted === true;
|
|
7486
|
+
}
|
|
7487
|
+
if (property === "log" && replay2) {
|
|
7488
|
+
return replayLogger;
|
|
7489
|
+
}
|
|
7446
7490
|
if (replay2 && typeof property === "string" && TOP_LEVEL_UNAVAILABLE_CAPABILITIES.has(property)) {
|
|
7447
7491
|
throw unavailableCapability(property);
|
|
7448
7492
|
}
|
|
@@ -7616,7 +7660,7 @@ var BitfabRivetIntegration = class {
|
|
|
7616
7660
|
return { ...value, complete };
|
|
7617
7661
|
}
|
|
7618
7662
|
queueCallIsCompletable(effect, args) {
|
|
7619
|
-
const options = effect === "queue.waitForNames" ? args[1] : args[0];
|
|
7663
|
+
const options = effect === "queue.waitForNames" || (effect === "queue.next" || effect === "queue.nextBatch") && typeof args[0] === "string" ? args[1] : args[0];
|
|
7620
7664
|
return isRecord5(options) && options.completable === true;
|
|
7621
7665
|
}
|
|
7622
7666
|
createQueueIterator(queue, options) {
|
|
@@ -9357,9 +9401,9 @@ var Bitfab = class {
|
|
|
9357
9401
|
});
|
|
9358
9402
|
}
|
|
9359
9403
|
/**
|
|
9360
|
-
* Get the first-class Rivet actor-context integration for an
|
|
9361
|
-
* root. The integration binds context and records effect
|
|
9362
|
-
* creates another root.
|
|
9404
|
+
* Get the first-class Rivet actor/workflow-context integration for an
|
|
9405
|
+
* existing trace root. The integration binds context and records effect
|
|
9406
|
+
* spans; it never creates another root.
|
|
9363
9407
|
*
|
|
9364
9408
|
* @param traceFunctionKey - Key used by the enclosing `withTrace()` root
|
|
9365
9409
|
* @param options - Explicit per-context-path replay mocking policy
|