@rivetkit/engine-runner-protocol 2.1.3 → 2.1.4
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/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -540,6 +540,8 @@ declare function decodeToServer(bytes: Uint8Array): ToServer;
|
|
|
540
540
|
*/
|
|
541
541
|
type ProtocolMetadata = {
|
|
542
542
|
readonly runnerLostThreshold: i64;
|
|
543
|
+
readonly actorStopThreshold: i64;
|
|
544
|
+
readonly serverlessDrainGracePeriod: i64 | null;
|
|
543
545
|
};
|
|
544
546
|
declare function readProtocolMetadata(bc: bare.ByteCursor): ProtocolMetadata;
|
|
545
547
|
declare function writeProtocolMetadata(bc: bare.ByteCursor, x: ProtocolMetadata): void;
|
package/dist/index.js
CHANGED
|
@@ -1198,11 +1198,15 @@ function decodeToServer(bytes) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
function readProtocolMetadata(bc) {
|
|
1200
1200
|
return {
|
|
1201
|
-
runnerLostThreshold: bare.readI64(bc)
|
|
1201
|
+
runnerLostThreshold: bare.readI64(bc),
|
|
1202
|
+
actorStopThreshold: bare.readI64(bc),
|
|
1203
|
+
serverlessDrainGracePeriod: read7(bc)
|
|
1202
1204
|
};
|
|
1203
1205
|
}
|
|
1204
1206
|
function writeProtocolMetadata(bc, x) {
|
|
1205
1207
|
bare.writeI64(bc, x.runnerLostThreshold);
|
|
1208
|
+
bare.writeI64(bc, x.actorStopThreshold);
|
|
1209
|
+
write7(bc, x.serverlessDrainGracePeriod);
|
|
1206
1210
|
}
|
|
1207
1211
|
function readToClientInit(bc) {
|
|
1208
1212
|
return {
|