rivetkit 3.1.2-rc.2 → 3.1.2-rc.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/browser/client.d.ts +2 -16
- package/dist/browser/client.js +9 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/{chunk-TAK6KRMJ.cjs → chunk-2NDVJNGH.cjs} +3 -3
- package/dist/tsup/{chunk-TAK6KRMJ.cjs.map → chunk-2NDVJNGH.cjs.map} +1 -1
- package/dist/tsup/{chunk-D2CCGHEJ.js → chunk-6476KISG.js} +2 -2
- package/dist/tsup/{chunk-YAGP66QF.cjs → chunk-6AD2HIBH.cjs} +4 -4
- package/dist/tsup/{chunk-YAGP66QF.cjs.map → chunk-6AD2HIBH.cjs.map} +1 -1
- package/dist/tsup/{chunk-6BGQCMIF.cjs → chunk-J6FABVZY.cjs} +3 -3
- package/dist/tsup/{chunk-6BGQCMIF.cjs.map → chunk-J6FABVZY.cjs.map} +1 -1
- package/dist/tsup/{chunk-N2SQDK2F.js → chunk-NSAMWM3A.js} +3 -3
- package/dist/tsup/{chunk-MRWI2HTU.js → chunk-OJ37CYEU.js} +2 -2
- package/dist/tsup/{chunk-JGMXY4GD.js → chunk-OS3NPWVL.js} +14 -6
- package/dist/tsup/chunk-OS3NPWVL.js.map +1 -0
- package/dist/tsup/{chunk-QJ7MIAFD.cjs → chunk-P3P4I45V.cjs} +7 -7
- package/dist/tsup/{chunk-QJ7MIAFD.cjs.map → chunk-P3P4I45V.cjs.map} +1 -1
- package/dist/tsup/{chunk-LBYX466L.cjs → chunk-QSO2JLX2.cjs} +3 -3
- package/dist/tsup/{chunk-LBYX466L.cjs.map → chunk-QSO2JLX2.cjs.map} +1 -1
- package/dist/tsup/{chunk-I6P2AHO6.js → chunk-S26YAPYA.js} +2 -2
- package/dist/tsup/{chunk-MVOIZGVC.js → chunk-UWN46MY2.js} +2 -2
- package/dist/tsup/{chunk-MVOIZGVC.js.map → chunk-UWN46MY2.js.map} +1 -1
- package/dist/tsup/{chunk-DDF35AIK.cjs → chunk-VWIV375X.cjs} +2 -2
- package/dist/tsup/{chunk-DDF35AIK.cjs.map → chunk-VWIV375X.cjs.map} +1 -1
- package/dist/tsup/{chunk-A3N3LJC6.cjs → chunk-WJA6TRRE.cjs} +10 -10
- package/dist/tsup/{chunk-A3N3LJC6.cjs.map → chunk-WJA6TRRE.cjs.map} +1 -1
- package/dist/tsup/{chunk-6NHRZU52.js → chunk-YCGI3WIV.js} +2 -2
- package/dist/tsup/{chunk-6MJSWO33.js → chunk-YJWR3YQX.js} +4 -4
- package/dist/tsup/{chunk-L2XH4EXJ.cjs → chunk-Z367MDQC.cjs} +155 -147
- package/dist/tsup/chunk-Z367MDQC.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +5 -5
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +4 -4
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-BMGUEKMZ.d.cts → config-BbRMYCV8.d.cts} +2 -16
- package/dist/tsup/{config-iBpXyITj.d.ts → config-CW3AWqHa.d.ts} +2 -16
- package/dist/tsup/{context-hyVakgnU.d.ts → context-Cp64yaMW.d.ts} +1 -1
- package/dist/tsup/{context-qfvLuF0P.d.cts → context-NuwP8HjQ.d.cts} +1 -1
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +3 -3
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/dynamic/mod.d.cts +1 -1
- package/dist/tsup/dynamic/mod.d.ts +1 -1
- package/dist/tsup/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/inspector/workflow.cjs +4 -4
- package/dist/tsup/inspector/workflow.js +3 -3
- package/dist/tsup/inspector-tab/mod.d.cts +2 -2
- package/dist/tsup/inspector-tab/mod.d.ts +2 -2
- package/dist/tsup/mod.cjs +127 -391
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +3 -3
- package/dist/tsup/mod.d.ts +3 -3
- package/dist/tsup/mod.js +46 -310
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +6 -6
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +4 -4
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +7 -7
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +9 -9
- package/src/client/lifecycle-errors.ts +15 -0
- package/src/common/database/config.ts +0 -52
- package/src/common/database/native-database.ts +18 -229
- package/src/registry/config/index.ts +3 -1
- package/src/registry/index.ts +15 -14
- package/src/registry/napi-runtime.ts +2 -81
- package/src/registry/native.ts +17 -66
- package/src/registry/runtime.ts +2 -53
- package/src/registry/wasm-runtime.ts +0 -88
- package/dist/tsup/chunk-JGMXY4GD.js.map +0 -1
- package/dist/tsup/chunk-L2XH4EXJ.cjs.map +0 -1
- /package/dist/tsup/{chunk-D2CCGHEJ.js.map → chunk-6476KISG.js.map} +0 -0
- /package/dist/tsup/{chunk-N2SQDK2F.js.map → chunk-NSAMWM3A.js.map} +0 -0
- /package/dist/tsup/{chunk-MRWI2HTU.js.map → chunk-OJ37CYEU.js.map} +0 -0
- /package/dist/tsup/{chunk-I6P2AHO6.js.map → chunk-S26YAPYA.js.map} +0 -0
- /package/dist/tsup/{chunk-6NHRZU52.js.map → chunk-YCGI3WIV.js.map} +0 -0
- /package/dist/tsup/{chunk-6MJSWO33.js.map → chunk-YJWR3YQX.js.map} +0 -0
package/dist/tsup/client/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkP3P4I45Vcjs = require('../chunk-P3P4I45V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ var _chunkQJ7MIAFDcjs = require('../chunk-QJ7MIAFD.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZ367MDQCcjs = require('../chunk-Z367MDQC.cjs');
|
|
12
12
|
require('../chunk-RTWH3AX3.cjs');
|
|
13
|
-
require('../chunk-LBYX466L.cjs');
|
|
14
13
|
require('../chunk-KVFIONKQ.cjs');
|
|
15
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-QSO2JLX2.cjs');
|
|
15
|
+
require('../chunk-VWIV375X.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,5 +28,5 @@ var _chunkMGI2VVF6cjs = require('../chunk-MGI2VVF6.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
exports.ActorClientError =
|
|
31
|
+
exports.ActorClientError = _chunkZ367MDQCcjs.ActorClientError; exports.ActorConnDisposed = _chunkZ367MDQCcjs.ActorConnDisposed; exports.ActorConnRaw = _chunkZ367MDQCcjs.ActorConnRaw; exports.ActorError = _chunkMGI2VVF6cjs.RivetError; exports.ActorHandleRaw = _chunkZ367MDQCcjs.ActorHandleRaw; exports.MalformedResponseMessage = _chunkZ367MDQCcjs.MalformedResponseMessage; exports.ManagerError = _chunkZ367MDQCcjs.ManagerError; exports.RivetError = _chunkMGI2VVF6cjs.RivetError; exports.UserError = _chunkMGI2VVF6cjs.UserError; exports.createClient = _chunkP3P4I45Vcjs.createClient;
|
|
32
32
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aK as Registry, a8 as Client } from '../config-
|
|
2
|
-
export { bz as ActorAccessor, bA as ActorActionFunction, bB as ActorActionOptions, bC as ActorConn, bD as ActorConnRaw, bE as ActorConnStatus, bF as ActorConnectOptions, x as ActorDefinition, bG as ActorGatewayOptions, bH as ActorHandle, bI as ActorHandleRaw, bJ as ActorIssueTokenOptions, bK as ActorTokenPermissions, bL as ActorTokenResource, A as AnyActorDefinition, bM as ClientRaw, bN as ConnectionStateCallback, bO as CreateOptions, bP as CreateRequest, bQ as EventUnsubscribe, bR as ExtractActorsFromRegistry, bS as ExtractRegistryFromClient, bT as ForkOptions, bU as GetOptions, bV as GetWithIdOptions, bW as IssueTokenOptions, bX as IssuedToken, bY as QueryOptions, bZ as Region, b_ as StatusChangeCallback, b$ as TokenGrant } from '../config-
|
|
1
|
+
import { aK as Registry, a8 as Client } from '../config-BbRMYCV8.cjs';
|
|
2
|
+
export { bz as ActorAccessor, bA as ActorActionFunction, bB as ActorActionOptions, bC as ActorConn, bD as ActorConnRaw, bE as ActorConnStatus, bF as ActorConnectOptions, x as ActorDefinition, bG as ActorGatewayOptions, bH as ActorHandle, bI as ActorHandleRaw, bJ as ActorIssueTokenOptions, bK as ActorTokenPermissions, bL as ActorTokenResource, A as AnyActorDefinition, bM as ClientRaw, bN as ConnectionStateCallback, bO as CreateOptions, bP as CreateRequest, bQ as EventUnsubscribe, bR as ExtractActorsFromRegistry, bS as ExtractRegistryFromClient, bT as ForkOptions, bU as GetOptions, bV as GetWithIdOptions, bW as IssueTokenOptions, bX as IssuedToken, bY as QueryOptions, bZ as Region, b_ as StatusChangeCallback, b$ as TokenGrant } from '../config-BbRMYCV8.cjs';
|
|
3
3
|
import { G as GetUpgradeWebSocket } from '../utils-C6b0aYUM.cjs';
|
|
4
4
|
export { E as Encoding } from '../utils-C6b0aYUM.cjs';
|
|
5
5
|
import z from 'zod/v4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aK as Registry, a8 as Client } from '../config-
|
|
2
|
-
export { bz as ActorAccessor, bA as ActorActionFunction, bB as ActorActionOptions, bC as ActorConn, bD as ActorConnRaw, bE as ActorConnStatus, bF as ActorConnectOptions, x as ActorDefinition, bG as ActorGatewayOptions, bH as ActorHandle, bI as ActorHandleRaw, bJ as ActorIssueTokenOptions, bK as ActorTokenPermissions, bL as ActorTokenResource, A as AnyActorDefinition, bM as ClientRaw, bN as ConnectionStateCallback, bO as CreateOptions, bP as CreateRequest, bQ as EventUnsubscribe, bR as ExtractActorsFromRegistry, bS as ExtractRegistryFromClient, bT as ForkOptions, bU as GetOptions, bV as GetWithIdOptions, bW as IssueTokenOptions, bX as IssuedToken, bY as QueryOptions, bZ as Region, b_ as StatusChangeCallback, b$ as TokenGrant } from '../config-
|
|
1
|
+
import { aK as Registry, a8 as Client } from '../config-CW3AWqHa.js';
|
|
2
|
+
export { bz as ActorAccessor, bA as ActorActionFunction, bB as ActorActionOptions, bC as ActorConn, bD as ActorConnRaw, bE as ActorConnStatus, bF as ActorConnectOptions, x as ActorDefinition, bG as ActorGatewayOptions, bH as ActorHandle, bI as ActorHandleRaw, bJ as ActorIssueTokenOptions, bK as ActorTokenPermissions, bL as ActorTokenResource, A as AnyActorDefinition, bM as ClientRaw, bN as ConnectionStateCallback, bO as CreateOptions, bP as CreateRequest, bQ as EventUnsubscribe, bR as ExtractActorsFromRegistry, bS as ExtractRegistryFromClient, bT as ForkOptions, bU as GetOptions, bV as GetWithIdOptions, bW as IssueTokenOptions, bX as IssuedToken, bY as QueryOptions, bZ as Region, b_ as StatusChangeCallback, b$ as TokenGrant } from '../config-CW3AWqHa.js';
|
|
3
3
|
import { G as GetUpgradeWebSocket } from '../utils-C1O-SklO.js';
|
|
4
4
|
export { E as Encoding } from '../utils-C1O-SklO.js';
|
|
5
5
|
import z from 'zod/v4';
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NSAMWM3A.js";
|
|
4
4
|
import {
|
|
5
5
|
ActorClientError,
|
|
6
6
|
ActorConnDisposed,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
ActorHandleRaw,
|
|
9
9
|
MalformedResponseMessage,
|
|
10
10
|
ManagerError
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-OS3NPWVL.js";
|
|
12
12
|
import "../chunk-A2CF6PFH.js";
|
|
13
|
-
import "../chunk-MRWI2HTU.js";
|
|
14
13
|
import "../chunk-JTHHCZCZ.js";
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-OJ37CYEU.js";
|
|
15
|
+
import "../chunk-UWN46MY2.js";
|
|
16
16
|
import {
|
|
17
17
|
RivetError,
|
|
18
18
|
UserError
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVWIV375Xcjs = require('../chunk-VWIV375X.cjs');
|
|
11
11
|
require('../chunk-MGI2VVF6.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,5 +18,5 @@ require('../chunk-MGI2VVF6.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.LogLevelSchema =
|
|
21
|
+
exports.LogLevelSchema = _chunkVWIV375Xcjs.LogLevelSchema; exports.configureBaseLogger = _chunkVWIV375Xcjs.configureBaseLogger; exports.configureDefaultLogger = _chunkVWIV375Xcjs.configureDefaultLogger; exports.getBaseLogger = _chunkVWIV375Xcjs.getBaseLogger; exports.getIncludeTarget = _chunkVWIV375Xcjs.getIncludeTarget; exports.getLogger = _chunkVWIV375Xcjs.getLogger; exports.getPinoLevel = _chunkVWIV375Xcjs.getPinoLevel; exports.makeDefaultLogger = _chunkVWIV375Xcjs.makeDefaultLogger;
|
|
22
22
|
//# sourceMappingURL=log.cjs.map
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkQSO2JLX2cjs = require('../chunk-QSO2JLX2.cjs');
|
|
4
|
+
require('../chunk-VWIV375X.cjs');
|
|
5
5
|
require('../chunk-MGI2VVF6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.importWebSocket =
|
|
8
|
+
exports.importWebSocket = _chunkQSO2JLX2cjs.importWebSocket;
|
|
9
9
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -834,7 +834,6 @@ interface RuntimeActorConfig {
|
|
|
834
834
|
icon?: string;
|
|
835
835
|
hasDatabase?: boolean;
|
|
836
836
|
remoteSqlite?: boolean;
|
|
837
|
-
sqliteDeferredCommits?: boolean;
|
|
838
837
|
sqliteProfiling?: SqliteProfilingOptions;
|
|
839
838
|
tracing?: RuntimeActorTracingConfig;
|
|
840
839
|
hasState?: boolean;
|
|
@@ -970,7 +969,8 @@ interface CoreRuntime {
|
|
|
970
969
|
waitRegistryReady(registry: RegistryHandle): Promise<void>;
|
|
971
970
|
shutdownRegistry(registry: RegistryHandle): Promise<void>;
|
|
972
971
|
shutdownTelemetry?(): Promise<void>;
|
|
973
|
-
|
|
972
|
+
/** The engine's drain period plus its actor stop threshold, once the node connected. */
|
|
973
|
+
registryShutdownBudgetMs?(registry: RegistryHandle): Promise<number | undefined>;
|
|
974
974
|
registryActiveActorCount?(registry: RegistryHandle): number;
|
|
975
975
|
onRegistryActiveActorCountChange?(registry: RegistryHandle, callback: (count: number) => void, cancelToken: CancellationTokenHandle): void;
|
|
976
976
|
handleServerlessRequest(registry: RegistryHandle, req: RuntimeServerlessRequest, onStreamEvent: RuntimeServerlessStreamCallback, cancelToken: CancellationTokenHandle, config: RuntimeServeConfig): Promise<RuntimeServerlessResponseHead>;
|
|
@@ -1066,20 +1066,13 @@ interface CoreRuntime {
|
|
|
1066
1066
|
actorKvBatchPut(ctx: ActorContextHandle, entries: RuntimeKvEntry[]): Promise<void>;
|
|
1067
1067
|
actorKvBatchDelete(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<void>;
|
|
1068
1068
|
actorSqlExec(ctx: ActorContextHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
1069
|
-
actorSqlExecSync(ctx: ActorContextHandle, sql: string): RuntimeSqlExecResult;
|
|
1070
1069
|
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1071
|
-
actorSqlExecuteSync(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): RuntimeSqlExecuteResult;
|
|
1072
1070
|
actorSqlExecuteBatch(ctx: ActorContextHandle, statements: RuntimeSqlBatchStatement[]): Promise<RuntimeSqlExecuteResult[]>;
|
|
1073
1071
|
actorSqlBeginTransaction(ctx: ActorContextHandle, timeoutMs?: number, name?: string): Promise<SqliteTransactionHandle>;
|
|
1074
|
-
actorSqlBeginTransactionSync(ctx: ActorContextHandle, timeoutMs?: number, name?: string): SqliteTransactionHandle;
|
|
1075
1072
|
actorSqlTransactionExec(transaction: SqliteTransactionHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
1076
|
-
actorSqlTransactionExecSync(transaction: SqliteTransactionHandle, sql: string): RuntimeSqlExecResult;
|
|
1077
1073
|
actorSqlTransactionExecute(transaction: SqliteTransactionHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1078
|
-
actorSqlTransactionExecuteSync(transaction: SqliteTransactionHandle, sql: string, params?: RuntimeSqlBindParams): RuntimeSqlExecuteResult;
|
|
1079
1074
|
actorSqlTransactionCommit(transaction: SqliteTransactionHandle): Promise<void>;
|
|
1080
|
-
actorSqlTransactionCommitSync(transaction: SqliteTransactionHandle): void;
|
|
1081
1075
|
actorSqlTransactionRollback(transaction: SqliteTransactionHandle): Promise<void>;
|
|
1082
|
-
actorSqlTransactionRollbackSync(transaction: SqliteTransactionHandle): void;
|
|
1083
1076
|
actorBeginStateTransaction(ctx: ActorContextHandle, timeoutMs?: number, name?: string): Promise<ActorStateTransactionHandle>;
|
|
1084
1077
|
actorStateTransactionExecute(transaction: ActorStateTransactionHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1085
1078
|
actorStateTransactionCommit(transaction: ActorStateTransactionHandle, payload: RuntimeStateDeltaPayload): Promise<void>;
|
|
@@ -1088,13 +1081,6 @@ interface CoreRuntime {
|
|
|
1088
1081
|
actorSqlRun(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlRunResult>;
|
|
1089
1082
|
actorSqlMetrics(ctx: ActorContextHandle): SqliteNativeMetrics | null;
|
|
1090
1083
|
actorSqlTakeLastKvError(ctx: ActorContextHandle): string | null;
|
|
1091
|
-
/** Opens the actor database so later synchronous calls never fetch its first pages. */
|
|
1092
|
-
actorSqlOpen(ctx: ActorContextHandle): Promise<void>;
|
|
1093
|
-
/** Returns the ticket of the latest local commit. */
|
|
1094
|
-
actorSqlCommitTicket(ctx: ActorContextHandle): number;
|
|
1095
|
-
/** Resolves once the commit `ticket` names and every earlier commit are durable. */
|
|
1096
|
-
actorSqlWhenDurable(ctx: ActorContextHandle, ticket: number): Promise<void>;
|
|
1097
|
-
actorSqlAbortGeneration(ctx: ActorContextHandle, reason: string): void;
|
|
1098
1084
|
actorSqlClose(ctx: ActorContextHandle): Promise<void>;
|
|
1099
1085
|
actorQueueSend(ctx: ActorContextHandle, name: string, body: RuntimeBytes): Promise<RuntimeQueueMessage>;
|
|
1100
1086
|
actorQueueNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueNextBatchOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage[]>;
|
|
@@ -834,7 +834,6 @@ interface RuntimeActorConfig {
|
|
|
834
834
|
icon?: string;
|
|
835
835
|
hasDatabase?: boolean;
|
|
836
836
|
remoteSqlite?: boolean;
|
|
837
|
-
sqliteDeferredCommits?: boolean;
|
|
838
837
|
sqliteProfiling?: SqliteProfilingOptions;
|
|
839
838
|
tracing?: RuntimeActorTracingConfig;
|
|
840
839
|
hasState?: boolean;
|
|
@@ -970,7 +969,8 @@ interface CoreRuntime {
|
|
|
970
969
|
waitRegistryReady(registry: RegistryHandle): Promise<void>;
|
|
971
970
|
shutdownRegistry(registry: RegistryHandle): Promise<void>;
|
|
972
971
|
shutdownTelemetry?(): Promise<void>;
|
|
973
|
-
|
|
972
|
+
/** The engine's drain period plus its actor stop threshold, once the node connected. */
|
|
973
|
+
registryShutdownBudgetMs?(registry: RegistryHandle): Promise<number | undefined>;
|
|
974
974
|
registryActiveActorCount?(registry: RegistryHandle): number;
|
|
975
975
|
onRegistryActiveActorCountChange?(registry: RegistryHandle, callback: (count: number) => void, cancelToken: CancellationTokenHandle): void;
|
|
976
976
|
handleServerlessRequest(registry: RegistryHandle, req: RuntimeServerlessRequest, onStreamEvent: RuntimeServerlessStreamCallback, cancelToken: CancellationTokenHandle, config: RuntimeServeConfig): Promise<RuntimeServerlessResponseHead>;
|
|
@@ -1066,20 +1066,13 @@ interface CoreRuntime {
|
|
|
1066
1066
|
actorKvBatchPut(ctx: ActorContextHandle, entries: RuntimeKvEntry[]): Promise<void>;
|
|
1067
1067
|
actorKvBatchDelete(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<void>;
|
|
1068
1068
|
actorSqlExec(ctx: ActorContextHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
1069
|
-
actorSqlExecSync(ctx: ActorContextHandle, sql: string): RuntimeSqlExecResult;
|
|
1070
1069
|
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1071
|
-
actorSqlExecuteSync(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): RuntimeSqlExecuteResult;
|
|
1072
1070
|
actorSqlExecuteBatch(ctx: ActorContextHandle, statements: RuntimeSqlBatchStatement[]): Promise<RuntimeSqlExecuteResult[]>;
|
|
1073
1071
|
actorSqlBeginTransaction(ctx: ActorContextHandle, timeoutMs?: number, name?: string): Promise<SqliteTransactionHandle>;
|
|
1074
|
-
actorSqlBeginTransactionSync(ctx: ActorContextHandle, timeoutMs?: number, name?: string): SqliteTransactionHandle;
|
|
1075
1072
|
actorSqlTransactionExec(transaction: SqliteTransactionHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
1076
|
-
actorSqlTransactionExecSync(transaction: SqliteTransactionHandle, sql: string): RuntimeSqlExecResult;
|
|
1077
1073
|
actorSqlTransactionExecute(transaction: SqliteTransactionHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1078
|
-
actorSqlTransactionExecuteSync(transaction: SqliteTransactionHandle, sql: string, params?: RuntimeSqlBindParams): RuntimeSqlExecuteResult;
|
|
1079
1074
|
actorSqlTransactionCommit(transaction: SqliteTransactionHandle): Promise<void>;
|
|
1080
|
-
actorSqlTransactionCommitSync(transaction: SqliteTransactionHandle): void;
|
|
1081
1075
|
actorSqlTransactionRollback(transaction: SqliteTransactionHandle): Promise<void>;
|
|
1082
|
-
actorSqlTransactionRollbackSync(transaction: SqliteTransactionHandle): void;
|
|
1083
1076
|
actorBeginStateTransaction(ctx: ActorContextHandle, timeoutMs?: number, name?: string): Promise<ActorStateTransactionHandle>;
|
|
1084
1077
|
actorStateTransactionExecute(transaction: ActorStateTransactionHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
1085
1078
|
actorStateTransactionCommit(transaction: ActorStateTransactionHandle, payload: RuntimeStateDeltaPayload): Promise<void>;
|
|
@@ -1088,13 +1081,6 @@ interface CoreRuntime {
|
|
|
1088
1081
|
actorSqlRun(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlRunResult>;
|
|
1089
1082
|
actorSqlMetrics(ctx: ActorContextHandle): SqliteNativeMetrics | null;
|
|
1090
1083
|
actorSqlTakeLastKvError(ctx: ActorContextHandle): string | null;
|
|
1091
|
-
/** Opens the actor database so later synchronous calls never fetch its first pages. */
|
|
1092
|
-
actorSqlOpen(ctx: ActorContextHandle): Promise<void>;
|
|
1093
|
-
/** Returns the ticket of the latest local commit. */
|
|
1094
|
-
actorSqlCommitTicket(ctx: ActorContextHandle): number;
|
|
1095
|
-
/** Resolves once the commit `ticket` names and every earlier commit are durable. */
|
|
1096
|
-
actorSqlWhenDurable(ctx: ActorContextHandle, ticket: number): Promise<void>;
|
|
1097
|
-
actorSqlAbortGeneration(ctx: ActorContextHandle, reason: string): void;
|
|
1098
1084
|
actorSqlClose(ctx: ActorContextHandle): Promise<void>;
|
|
1099
1085
|
actorQueueSend(ctx: ActorContextHandle, name: string, body: RuntimeBytes): Promise<RuntimeQueueMessage>;
|
|
1100
1086
|
actorQueueNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueNextBatchOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, z as ActorForkLink, J as ActorLogger, az as QueueFilterName, aE as QueueNextOptions, aF as QueueResultMessageForName, aD as QueueNextBatchOptions, aK as Registry, a8 as Client, ar as InferEventArgs, as as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, z as ActorForkLink, J as ActorLogger, az as QueueFilterName, aE as QueueNextOptions, aF as QueueResultMessageForName, aD as QueueNextBatchOptions, aK as Registry, a8 as Client, ar as InferEventArgs, as as InferSchemaMap } from './config-CW3AWqHa.js';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
3
|
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-CBTr4IhE.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, z as ActorForkLink, J as ActorLogger, az as QueueFilterName, aE as QueueNextOptions, aF as QueueResultMessageForName, aD as QueueNextBatchOptions, aK as Registry, a8 as Client, ar as InferEventArgs, as as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, z as ActorForkLink, J as ActorLogger, az as QueueFilterName, aE as QueueNextOptions, aF as QueueResultMessageForName, aD as QueueNextBatchOptions, aK as Registry, a8 as Client, ar as InferEventArgs, as as InferSchemaMap } from './config-BbRMYCV8.cjs';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
3
|
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-CBTr4IhE.cjs';
|
|
4
4
|
|
package/dist/tsup/db/drizzle.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var _chunkKVFIONKQcjs = require('../chunk-KVFIONKQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVWIV375Xcjs = require('../chunk-VWIV375X.cjs');
|
|
11
11
|
require('../chunk-MGI2VVF6.cjs');
|
|
12
12
|
|
|
13
13
|
// src/db/drizzle.ts
|
|
@@ -164,7 +164,7 @@ function db({
|
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
166
|
manualTransactionWarned = true;
|
|
167
|
-
|
|
167
|
+
_chunkVWIV375Xcjs.getLogger.call(void 0, "database").warn(
|
|
168
168
|
{ actorId: ctx.actorId },
|
|
169
169
|
"Manual cross-call SQLite transactions can interleave with other actor work. Use db.transaction() for coordinated transactions. Set warnOnManualTransactions: false in your db(...) configuration to disable this warning."
|
|
170
170
|
);
|
package/dist/tsup/db/drizzle.js
CHANGED
package/dist/tsup/db/mod.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2NDVJNGHcjs = require('../chunk-2NDVJNGH.cjs');
|
|
4
4
|
require('../chunk-KVFIONKQ.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-VWIV375X.cjs');
|
|
6
6
|
require('../chunk-MGI2VVF6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.db =
|
|
9
|
+
exports.db = _chunk2NDVJNGHcjs.db;
|
|
10
10
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/db/mod.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkWJA6TRREcjs = require('../chunk-WJA6TRRE.cjs');
|
|
4
|
+
require('../chunk-J6FABVZY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
8
|
+
var _chunk6AD2HIBHcjs = require('../chunk-6AD2HIBH.cjs');
|
|
9
|
+
require('../chunk-VWIV375X.cjs');
|
|
10
10
|
require('../chunk-MGI2VVF6.cjs');
|
|
11
11
|
|
|
12
12
|
// src/common/bare/generated/inspector/v5.ts
|
|
@@ -796,5 +796,5 @@ function decodeToClient(bytes) {
|
|
|
796
796
|
|
|
797
797
|
|
|
798
798
|
|
|
799
|
-
exports.createWorkflowInspectorAdapter =
|
|
799
|
+
exports.createWorkflowInspectorAdapter = _chunkWJA6TRREcjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunk6AD2HIBHcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunk6AD2HIBHcjs.encodeWorkflowHistoryTransport; exports.readActionRequest = readActionRequest; exports.readActionResponse = readActionResponse; exports.readConnection = readConnection; exports.readConnectionsRequest = readConnectionsRequest; exports.readConnectionsResponse = readConnectionsResponse; exports.readConnectionsUpdated = readConnectionsUpdated; exports.readDatabaseSchemaRequest = readDatabaseSchemaRequest; exports.readDatabaseSchemaResponse = readDatabaseSchemaResponse; exports.readDatabaseTableRowsRequest = readDatabaseTableRowsRequest; exports.readDatabaseTableRowsResponse = readDatabaseTableRowsResponse; exports.readError = readError; exports.readInit = readInit; exports.readPatchStateRequest = readPatchStateRequest; exports.readQueueMessageSummary = readQueueMessageSummary; exports.readQueueRequest = readQueueRequest; exports.readQueueResponse = readQueueResponse; exports.readQueueStatus = readQueueStatus; exports.readQueueUpdated = readQueueUpdated; exports.readRpcsListRequest = readRpcsListRequest; exports.readRpcsListResponse = readRpcsListResponse; exports.readState = readState; exports.readStateRequest = readStateRequest; exports.readStateResponse = readStateResponse; exports.readStateUpdated = readStateUpdated; exports.readTabConfigEntry = readTabConfigEntry; exports.readToClient = readToClient; exports.readToClientBody = readToClientBody; exports.readToServer = readToServer; exports.readToServerBody = readToServerBody; exports.readTraceQueryRequest = readTraceQueryRequest; exports.readTraceQueryResponse = readTraceQueryResponse; exports.readWorkflowHistory = readWorkflowHistory; exports.readWorkflowHistoryRequest = readWorkflowHistoryRequest; exports.readWorkflowHistoryResponse = readWorkflowHistoryResponse; exports.readWorkflowHistoryUpdated = readWorkflowHistoryUpdated; exports.readWorkflowReplayRequest = readWorkflowReplayRequest; exports.readWorkflowReplayResponse = readWorkflowReplayResponse; exports.writeActionRequest = writeActionRequest; exports.writeActionResponse = writeActionResponse; exports.writeConnection = writeConnection; exports.writeConnectionsRequest = writeConnectionsRequest; exports.writeConnectionsResponse = writeConnectionsResponse; exports.writeConnectionsUpdated = writeConnectionsUpdated; exports.writeDatabaseSchemaRequest = writeDatabaseSchemaRequest; exports.writeDatabaseSchemaResponse = writeDatabaseSchemaResponse; exports.writeDatabaseTableRowsRequest = writeDatabaseTableRowsRequest; exports.writeDatabaseTableRowsResponse = writeDatabaseTableRowsResponse; exports.writeError = writeError; exports.writeInit = writeInit; exports.writePatchStateRequest = writePatchStateRequest; exports.writeQueueMessageSummary = writeQueueMessageSummary; exports.writeQueueRequest = writeQueueRequest; exports.writeQueueResponse = writeQueueResponse; exports.writeQueueStatus = writeQueueStatus; exports.writeQueueUpdated = writeQueueUpdated; exports.writeRpcsListRequest = writeRpcsListRequest; exports.writeRpcsListResponse = writeRpcsListResponse; exports.writeState = writeState; exports.writeStateRequest = writeStateRequest; exports.writeStateResponse = writeStateResponse; exports.writeStateUpdated = writeStateUpdated; exports.writeTabConfigEntry = writeTabConfigEntry; exports.writeToClient = writeToClient; exports.writeToClientBody = writeToClientBody; exports.writeToServer = writeToServer; exports.writeToServerBody = writeToServerBody; exports.writeTraceQueryRequest = writeTraceQueryRequest; exports.writeTraceQueryResponse = writeTraceQueryResponse; exports.writeWorkflowHistory = writeWorkflowHistory; exports.writeWorkflowHistoryRequest = writeWorkflowHistoryRequest; exports.writeWorkflowHistoryResponse = writeWorkflowHistoryResponse; exports.writeWorkflowHistoryUpdated = writeWorkflowHistoryUpdated; exports.writeWorkflowReplayRequest = writeWorkflowReplayRequest; exports.writeWorkflowReplayResponse = writeWorkflowReplayResponse;
|
|
800
800
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-YJWR3YQX.js";
|
|
4
|
+
import "../chunk-YCGI3WIV.js";
|
|
5
5
|
import {
|
|
6
6
|
decodeWorkflowHistoryTransport,
|
|
7
7
|
encodeWorkflowHistoryTransport
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-S26YAPYA.js";
|
|
9
|
+
import "../chunk-UWN46MY2.js";
|
|
10
10
|
import "../chunk-ZOVJDAOW.js";
|
|
11
11
|
|
|
12
12
|
// src/common/bare/generated/inspector/v5.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJ6FABVZYcjs = require('../chunk-J6FABVZY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../chunk-
|
|
10
|
+
var _chunk6AD2HIBHcjs = require('../chunk-6AD2HIBH.cjs');
|
|
11
|
+
require('../chunk-VWIV375X.cjs');
|
|
12
12
|
require('../chunk-MGI2VVF6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -17,5 +17,5 @@ require('../chunk-MGI2VVF6.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.WorkflowBranchStatusType =
|
|
20
|
+
exports.WorkflowBranchStatusType = _chunk6AD2HIBHcjs.WorkflowBranchStatusType; exports.WorkflowEntryStatus = _chunk6AD2HIBHcjs.WorkflowEntryStatus; exports.WorkflowSleepState = _chunk6AD2HIBHcjs.WorkflowSleepState; exports.decodeWorkflowHistoryTransport = _chunk6AD2HIBHcjs.decodeWorkflowHistoryTransport; exports.encodeWorkflowHistoryTransport = _chunk6AD2HIBHcjs.encodeWorkflowHistoryTransport; exports.encodeWorkflowInspectorValue = _chunkJ6FABVZYcjs.encodeWorkflowInspectorValue;
|
|
21
21
|
//# sourceMappingURL=workflow.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeWorkflowInspectorValue
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YCGI3WIV.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkflowBranchStatusType,
|
|
6
6
|
WorkflowEntryStatus,
|
|
7
7
|
WorkflowSleepState,
|
|
8
8
|
decodeWorkflowHistoryTransport,
|
|
9
9
|
encodeWorkflowHistoryTransport
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-S26YAPYA.js";
|
|
11
|
+
import "../chunk-UWN46MY2.js";
|
|
12
12
|
import "../chunk-ZOVJDAOW.js";
|
|
13
13
|
export {
|
|
14
14
|
WorkflowBranchStatusType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ac as CustomInspectorTabEntrySchema, aq as HideInspectorTabEntrySchema, at as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { F as ActorInspectorConfig, G as ActorInspectorConfigSchema, a3 as BUILTIN_INSPECTOR_TAB_IDS, a5 as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { ac as CustomInspectorTabEntrySchema, aq as HideInspectorTabEntrySchema, at as InspectorTabEntrySchema } from '../config-BbRMYCV8.cjs';
|
|
3
|
+
export { F as ActorInspectorConfig, G as ActorInspectorConfigSchema, a3 as BUILTIN_INSPECTOR_TAB_IDS, a5 as BuiltinInspectorTabIdSchema } from '../config-BbRMYCV8.cjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-CBTr4IhE.cjs';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ac as CustomInspectorTabEntrySchema, aq as HideInspectorTabEntrySchema, at as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { F as ActorInspectorConfig, G as ActorInspectorConfigSchema, a3 as BUILTIN_INSPECTOR_TAB_IDS, a5 as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { ac as CustomInspectorTabEntrySchema, aq as HideInspectorTabEntrySchema, at as InspectorTabEntrySchema } from '../config-CW3AWqHa.js';
|
|
3
|
+
export { F as ActorInspectorConfig, G as ActorInspectorConfigSchema, a3 as BUILTIN_INSPECTOR_TAB_IDS, a5 as BuiltinInspectorTabIdSchema } from '../config-CW3AWqHa.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-CBTr4IhE.js';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|