@rivetkit/engine-runner 2.0.26 → 2.0.27
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/.turbo/turbo-build.log +10 -10
- package/dist/mod.cjs +126 -230
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.d.cts +1 -9
- package/dist/mod.d.ts +1 -9
- package/dist/mod.js +117 -221
- package/dist/mod.js.map +1 -1
- package/package.json +2 -2
- package/src/actor.ts +4 -18
- package/src/mod.ts +92 -176
- package/src/stringify.ts +26 -26
- package/src/tunnel.ts +13 -4
- package/src/utils.ts +0 -16
package/dist/mod.d.cts
CHANGED
|
@@ -122,9 +122,6 @@ declare class RunnerActor {
|
|
|
122
122
|
ws: WebSocketTunnelAdapter;
|
|
123
123
|
}>;
|
|
124
124
|
actorStartPromise: ReturnType<typeof promiseWithResolvers<void>>;
|
|
125
|
-
lastCommandIdx: bigint;
|
|
126
|
-
nextEventIdx: bigint;
|
|
127
|
-
eventHistory: protocol.EventWrapper[];
|
|
128
125
|
/**
|
|
129
126
|
* If restoreHibernatingRequests has been called. This is used to assert
|
|
130
127
|
* that the caller is implemented correctly.
|
|
@@ -143,13 +140,8 @@ declare class RunnerActor {
|
|
|
143
140
|
getWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId): WebSocketTunnelAdapter | undefined;
|
|
144
141
|
setWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId, ws: WebSocketTunnelAdapter): void;
|
|
145
142
|
deleteWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId): void;
|
|
146
|
-
handleAckEvents(lastEventIdx: bigint): void;
|
|
147
|
-
recordEvent(eventWrapper: protocol.EventWrapper): void;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
|
-
declare class RunnerShutdownError extends Error {
|
|
151
|
-
constructor();
|
|
152
|
-
}
|
|
153
145
|
interface RunnerConfig {
|
|
154
146
|
logger?: Logger;
|
|
155
147
|
version: number;
|
|
@@ -331,4 +323,4 @@ declare class Runner {
|
|
|
331
323
|
getServerlessInitPacket(): string | undefined;
|
|
332
324
|
}
|
|
333
325
|
|
|
334
|
-
export { type ActorConfig, type HibernatingWebSocketMetadata, type KvListOptions, Runner, RunnerActor, type RunnerConfig,
|
|
326
|
+
export { type ActorConfig, type HibernatingWebSocketMetadata, type KvListOptions, Runner, RunnerActor, type RunnerConfig, idToStr };
|
package/dist/mod.d.ts
CHANGED
|
@@ -122,9 +122,6 @@ declare class RunnerActor {
|
|
|
122
122
|
ws: WebSocketTunnelAdapter;
|
|
123
123
|
}>;
|
|
124
124
|
actorStartPromise: ReturnType<typeof promiseWithResolvers<void>>;
|
|
125
|
-
lastCommandIdx: bigint;
|
|
126
|
-
nextEventIdx: bigint;
|
|
127
|
-
eventHistory: protocol.EventWrapper[];
|
|
128
125
|
/**
|
|
129
126
|
* If restoreHibernatingRequests has been called. This is used to assert
|
|
130
127
|
* that the caller is implemented correctly.
|
|
@@ -143,13 +140,8 @@ declare class RunnerActor {
|
|
|
143
140
|
getWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId): WebSocketTunnelAdapter | undefined;
|
|
144
141
|
setWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId, ws: WebSocketTunnelAdapter): void;
|
|
145
142
|
deleteWebSocket(gatewayId: protocol.GatewayId, requestId: protocol.RequestId): void;
|
|
146
|
-
handleAckEvents(lastEventIdx: bigint): void;
|
|
147
|
-
recordEvent(eventWrapper: protocol.EventWrapper): void;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
|
-
declare class RunnerShutdownError extends Error {
|
|
151
|
-
constructor();
|
|
152
|
-
}
|
|
153
145
|
interface RunnerConfig {
|
|
154
146
|
logger?: Logger;
|
|
155
147
|
version: number;
|
|
@@ -331,4 +323,4 @@ declare class Runner {
|
|
|
331
323
|
getServerlessInitPacket(): string | undefined;
|
|
332
324
|
}
|
|
333
325
|
|
|
334
|
-
export { type ActorConfig, type HibernatingWebSocketMetadata, type KvListOptions, Runner, RunnerActor, type RunnerConfig,
|
|
326
|
+
export { type ActorConfig, type HibernatingWebSocketMetadata, type KvListOptions, Runner, RunnerActor, type RunnerConfig, idToStr };
|