rivetkit 2.3.30 → 3.0.0-preview.1
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 +58 -9
- package/dist/browser/client.js +193 -20
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -2
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/{chunk-5UUOECX2.cjs → chunk-3E2BPHQO.cjs} +10 -10
- package/dist/tsup/{chunk-5UUOECX2.cjs.map → chunk-3E2BPHQO.cjs.map} +1 -1
- package/dist/tsup/{chunk-I472KTIC.js → chunk-3MMTF3QA.js} +188 -28
- package/dist/tsup/chunk-3MMTF3QA.js.map +1 -0
- package/dist/tsup/{chunk-CORYIKDC.js → chunk-5OCN7VHH.js} +10 -11
- package/dist/tsup/chunk-5OCN7VHH.js.map +1 -0
- package/dist/tsup/{chunk-OJFVABRH.cjs → chunk-6DDQSAAT.cjs} +7 -7
- package/dist/tsup/{chunk-OJFVABRH.cjs.map → chunk-6DDQSAAT.cjs.map} +1 -1
- package/dist/tsup/{chunk-JI6GZ2C2.js → chunk-A2CF6PFH.js} +18 -1
- package/dist/tsup/chunk-A2CF6PFH.js.map +1 -0
- package/dist/tsup/{chunk-P2PHHJMH.cjs → chunk-CTQKKUZC.cjs} +327 -167
- package/dist/tsup/chunk-CTQKKUZC.cjs.map +1 -0
- package/dist/tsup/{chunk-H3SGQEHZ.js → chunk-DCDCHB5J.js} +2 -2
- package/dist/tsup/{chunk-EKAQ7HG2.js → chunk-DQ6K3VVV.js} +3 -3
- package/dist/tsup/{chunk-OUB7SGSA.js → chunk-H6W37YLT.js} +2 -2
- package/dist/tsup/{chunk-5SN6GAYX.cjs → chunk-HW2D5OFJ.cjs} +3 -3
- package/dist/tsup/{chunk-5SN6GAYX.cjs.map → chunk-HW2D5OFJ.cjs.map} +1 -1
- package/dist/tsup/{chunk-2BIRGEIU.cjs → chunk-IBEFA6CX.cjs} +10 -11
- package/dist/tsup/chunk-IBEFA6CX.cjs.map +1 -0
- package/dist/tsup/{chunk-GEUBEODU.cjs → chunk-JLBPBEWC.cjs} +3 -3
- package/dist/tsup/{chunk-GEUBEODU.cjs.map → chunk-JLBPBEWC.cjs.map} +1 -1
- package/dist/tsup/{chunk-4SNS3PYZ.js → chunk-KQ2WQDYT.js} +2 -2
- package/dist/tsup/{chunk-MYWZCDML.cjs → chunk-RTWH3AX3.cjs} +19 -2
- package/dist/tsup/chunk-RTWH3AX3.cjs.map +1 -0
- package/dist/tsup/{chunk-6LOYTFPZ.js → chunk-SJPPKBT3.js} +2 -2
- package/dist/tsup/{chunk-MXV26ZBB.js → chunk-TBJ4I3R3.js} +4 -4
- package/dist/tsup/{chunk-ZIIQQHC3.cjs → chunk-VCVV726P.cjs} +4 -4
- package/dist/tsup/{chunk-ZIIQQHC3.cjs.map → chunk-VCVV726P.cjs.map} +1 -1
- package/dist/tsup/{chunk-ABPZG7QV.cjs → chunk-XUO6G4H6.cjs} +3 -3
- package/dist/tsup/{chunk-ABPZG7QV.cjs.map → chunk-XUO6G4H6.cjs.map} +1 -1
- package/dist/tsup/client/mod.cjs +6 -6
- package/dist/tsup/client/mod.d.cts +15 -3
- package/dist/tsup/client/mod.d.ts +15 -3
- package/dist/tsup/client/mod.js +5 -5
- 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-osdJqQwX.d.cts → config-8NgsxIcT.d.cts} +43 -12
- package/dist/tsup/{config-ey2I2zz5.d.ts → config-B2wlj9wx.d.cts} +7 -1
- package/dist/tsup/{config-ey2I2zz5.d.cts → config-B2wlj9wx.d.ts} +7 -1
- package/dist/tsup/{config-Cv6pjCt-.d.ts → config-DJ3KW-fe.d.ts} +43 -12
- package/dist/tsup/{context-CoVbKBuk.d.ts → context-BL8kUGjq.d.ts} +2 -2
- package/dist/tsup/{context-DpjrM7n7.d.cts → context-_RoE_YHL.d.cts} +2 -2
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.d.cts +1 -1
- package/dist/tsup/db/drizzle.d.ts +1 -1
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +3 -3
- package/dist/tsup/db/mod.d.cts +2 -2
- package/dist/tsup/db/mod.d.ts +2 -2
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/dynamic/mod.d.cts +2 -2
- package/dist/tsup/dynamic/mod.d.ts +2 -2
- 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 +3 -3
- package/dist/tsup/inspector-tab/mod.d.ts +3 -3
- package/dist/tsup/mod.cjs +254 -166
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +4 -4
- package/dist/tsup/mod.d.ts +4 -4
- package/dist/tsup/mod.js +168 -80
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +7 -7
- package/dist/tsup/test/mod.d.cts +2 -2
- package/dist/tsup/test/mod.d.ts +2 -2
- package/dist/tsup/test/mod.js +5 -5
- package/dist/tsup/unstable/migrations.d.cts +1 -1
- package/dist/tsup/unstable/migrations.d.ts +1 -1
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +17 -17
- package/dist/tsup/workflow/mod.d.cts +4 -4
- package/dist/tsup/workflow/mod.d.ts +4 -4
- package/dist/tsup/workflow/mod.js +5 -5
- package/package.json +9 -10
- package/src/actor/keys.ts +86 -0
- package/src/client/actor-conn.ts +92 -6
- package/src/client/actor-handle.ts +21 -3
- package/src/client/client.ts +6 -0
- package/src/client/config.ts +12 -1
- package/src/client/lifecycle-errors.ts +16 -1
- package/src/client/retry-budget.ts +78 -0
- package/src/client/utils.ts +13 -2
- package/src/common/database/config.ts +7 -1
- package/src/common/database/native-database.ts +17 -6
- package/src/common/router.ts +1 -1
- package/src/engine-api/actors.ts +3 -3
- package/src/engine-client/actor-websocket-client.ts +4 -2
- package/src/engine-client/api-endpoints.ts +44 -14
- package/src/engine-client/mod.ts +2 -2
- package/src/registry/config/envoy.ts +1 -1
- package/src/registry/config/index.ts +28 -31
- package/src/registry/index.ts +51 -19
- package/src/registry/napi-runtime.ts +3 -2
- package/src/registry/native.ts +126 -34
- package/src/registry/runtime.ts +27 -10
- package/src/registry/wasm-runtime.ts +6 -3
- package/src/utils/env-vars.ts +15 -10
- package/dist/tsup/chunk-2BIRGEIU.cjs.map +0 -1
- package/dist/tsup/chunk-CORYIKDC.js.map +0 -1
- package/dist/tsup/chunk-I472KTIC.js.map +0 -1
- package/dist/tsup/chunk-JI6GZ2C2.js.map +0 -1
- package/dist/tsup/chunk-MYWZCDML.cjs.map +0 -1
- package/dist/tsup/chunk-P2PHHJMH.cjs.map +0 -1
- package/src/actor/config.test.ts +0 -78
- package/src/actor/keys.test.ts +0 -275
- package/src/actor/utils.test.ts +0 -48
- package/src/client/test.ts +0 -44
- package/src/client/token-provider.test.ts +0 -86
- package/src/common/database/mod.test.ts +0 -364
- package/src/common/database/native-database.test.ts +0 -220
- package/src/common/inline-websocket-adapter.test.ts +0 -51
- package/src/db/drizzle.test.ts +0 -164
- package/src/registry/config/index.test.ts +0 -25
- package/src/registry/run-handler-coordinator.test.ts +0 -252
- package/src/registry/runtime.test.ts +0 -124
- package/src/unstable/migrations.test.ts +0 -170
- package/src/utils/endpoint-parser.test.ts +0 -206
- package/src/utils.test.ts +0 -34
- package/src/workflow/driver.test.ts +0 -62
- /package/dist/tsup/{chunk-H3SGQEHZ.js.map → chunk-DCDCHB5J.js.map} +0 -0
- /package/dist/tsup/{chunk-EKAQ7HG2.js.map → chunk-DQ6K3VVV.js.map} +0 -0
- /package/dist/tsup/{chunk-OUB7SGSA.js.map → chunk-H6W37YLT.js.map} +0 -0
- /package/dist/tsup/{chunk-4SNS3PYZ.js.map → chunk-KQ2WQDYT.js.map} +0 -0
- /package/dist/tsup/{chunk-6LOYTFPZ.js.map → chunk-SJPPKBT3.js.map} +0 -0
- /package/dist/tsup/{chunk-MXV26ZBB.js.map → chunk-TBJ4I3R3.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { A as AnyDatabaseProvider, a as SqliteProfilingOptions, f as SqliteNativeMetrics, I as InferDatabaseClient } from './config-
|
|
2
|
+
import { A as AnyDatabaseProvider, a as SqliteProfilingOptions, f as SqliteNativeMetrics, I as InferDatabaseClient } from './config-B2wlj9wx.js';
|
|
3
3
|
import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
|
|
4
4
|
import { z as z$1 } from 'zod';
|
|
5
5
|
import { Logger } from 'pino';
|
|
@@ -182,11 +182,11 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
182
182
|
publicEndpoint: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodString>, z$1.ZodTransform<string | undefined, string | undefined>>;
|
|
183
183
|
publicToken: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodString>, z$1.ZodTransform<string | undefined, string | undefined>>;
|
|
184
184
|
}, z$1.core.$strip>>>;
|
|
185
|
-
|
|
185
|
+
node: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
|
|
186
186
|
poolName: z$1.ZodDefault<z$1.ZodString>;
|
|
187
187
|
version: z$1.ZodDefault<z$1.ZodNumber>;
|
|
188
188
|
totalSlots: z$1.ZodDefault<z$1.ZodNumber>;
|
|
189
|
-
|
|
189
|
+
nodeKey: z$1.ZodOptional<z$1.ZodString>;
|
|
190
190
|
}, z$1.core.$strip>>>;
|
|
191
191
|
shutdown: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
|
|
192
192
|
gracePeriodMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -197,6 +197,7 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
197
197
|
backend: "local" | "remote";
|
|
198
198
|
} | undefined;
|
|
199
199
|
endpoint: string | undefined;
|
|
200
|
+
engineSpawn: boolean;
|
|
200
201
|
startServices: boolean;
|
|
201
202
|
namespace: string;
|
|
202
203
|
token: string | undefined;
|
|
@@ -234,11 +235,11 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
234
235
|
engineHost: string;
|
|
235
236
|
enginePort: number;
|
|
236
237
|
engineVersion: string;
|
|
237
|
-
|
|
238
|
+
node: {
|
|
238
239
|
poolName: string;
|
|
239
240
|
version: number;
|
|
240
241
|
totalSlots: number;
|
|
241
|
-
|
|
242
|
+
nodeKey?: string | undefined;
|
|
242
243
|
};
|
|
243
244
|
shutdown: {
|
|
244
245
|
disableSignalHandlers: boolean;
|
|
@@ -293,11 +294,11 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
293
294
|
publicEndpoint: string | undefined;
|
|
294
295
|
publicToken: string | undefined;
|
|
295
296
|
};
|
|
296
|
-
|
|
297
|
+
node: {
|
|
297
298
|
poolName: string;
|
|
298
299
|
version: number;
|
|
299
300
|
totalSlots: number;
|
|
300
|
-
|
|
301
|
+
nodeKey?: string | undefined;
|
|
301
302
|
};
|
|
302
303
|
shutdown: {
|
|
303
304
|
disableSignalHandlers: boolean;
|
|
@@ -343,7 +344,7 @@ declare const DocServerlessConfigSchema: z$1.ZodObject<{
|
|
|
343
344
|
declare const DocEnvoyConfigSchema: z$1.ZodObject<{
|
|
344
345
|
totalSlots: z$1.ZodOptional<z$1.ZodNumber>;
|
|
345
346
|
poolName: z$1.ZodOptional<z$1.ZodString>;
|
|
346
|
-
|
|
347
|
+
nodeKey: z$1.ZodOptional<z$1.ZodString>;
|
|
347
348
|
version: z$1.ZodOptional<z$1.ZodNumber>;
|
|
348
349
|
}, z$1.core.$strip>;
|
|
349
350
|
declare const DocSqliteConfigSchema: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -401,10 +402,10 @@ declare const DocRegistryConfigSchema: z$1.ZodObject<{
|
|
|
401
402
|
publicEndpoint: z$1.ZodOptional<z$1.ZodString>;
|
|
402
403
|
publicToken: z$1.ZodOptional<z$1.ZodString>;
|
|
403
404
|
}, z$1.core.$strip>>;
|
|
404
|
-
|
|
405
|
+
node: z$1.ZodOptional<z$1.ZodObject<{
|
|
405
406
|
totalSlots: z$1.ZodOptional<z$1.ZodNumber>;
|
|
406
407
|
poolName: z$1.ZodOptional<z$1.ZodString>;
|
|
407
|
-
|
|
408
|
+
nodeKey: z$1.ZodOptional<z$1.ZodString>;
|
|
408
409
|
version: z$1.ZodOptional<z$1.ZodNumber>;
|
|
409
410
|
}, z$1.core.$strip>>;
|
|
410
411
|
}, z$1.core.$strip>;
|
|
@@ -872,6 +873,8 @@ interface RuntimeServeConfig {
|
|
|
872
873
|
engineBinaryPath?: string;
|
|
873
874
|
startServices?: boolean;
|
|
874
875
|
servicesBinaryPath?: string;
|
|
876
|
+
/** Whether config resolution selected a managed local development engine. */
|
|
877
|
+
engineSpawn?: boolean;
|
|
875
878
|
engineHost?: string;
|
|
876
879
|
enginePort?: number;
|
|
877
880
|
handleInspectorHttpInRuntime?: boolean;
|
|
@@ -960,7 +963,12 @@ interface CoreRuntime {
|
|
|
960
963
|
createCancellationToken(): CancellationTokenHandle;
|
|
961
964
|
cancellationTokenAborted(token: CancellationTokenHandle): boolean;
|
|
962
965
|
cancelCancellationToken(token: CancellationTokenHandle): void;
|
|
963
|
-
|
|
966
|
+
/**
|
|
967
|
+
* Calls `callback` once when `token` is cancelled. Returns a release
|
|
968
|
+
* function that drops the registration without calling `callback`; call it
|
|
969
|
+
* once cancellation no longer matters so the native listener is freed.
|
|
970
|
+
*/
|
|
971
|
+
onCancellationTokenCancelled(token: CancellationTokenHandle, callback: (...args: unknown[]) => unknown): () => void;
|
|
964
972
|
actorState(ctx: ActorContextHandle): RuntimeBytes;
|
|
965
973
|
actorBeginOnStateChange(ctx: ActorContextHandle): void;
|
|
966
974
|
actorEndOnStateChange(ctx: ActorContextHandle): void;
|
|
@@ -1463,6 +1471,27 @@ declare class ActorConnRaw {
|
|
|
1463
1471
|
*/
|
|
1464
1472
|
type ActorConn<AD extends AnyActorDefinition> = Omit<ActorConnRaw, "send" | "on" | "once"> & ActorDefinitionQueueSend<AD> & ActorDefinitionEventSubscriptions<AD> & ActorDefinitionActions<AD>;
|
|
1465
1473
|
|
|
1474
|
+
/** How many retries a client may spend, as a share of the requests it sends. */
|
|
1475
|
+
interface RetryBudgetOptions {
|
|
1476
|
+
/** Retries allowed per 100 requests (default 10). */
|
|
1477
|
+
percent?: number;
|
|
1478
|
+
/** Retries the client can bank for a burst of refusals; the budget starts full (default 100). */
|
|
1479
|
+
maxTokens?: number;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Bounds the client's retries of refused requests. Each request adds a fraction of a token and
|
|
1483
|
+
* each retry spends one, so retries stay a fixed share of traffic while the service sheds load
|
|
1484
|
+
* instead of multiplying it.
|
|
1485
|
+
*/
|
|
1486
|
+
declare class RetryBudget {
|
|
1487
|
+
#private;
|
|
1488
|
+
constructor(options?: RetryBudgetOptions);
|
|
1489
|
+
/** Credits one request sent. */
|
|
1490
|
+
deposit(): void;
|
|
1491
|
+
/** Spends one token. Returns `false` when the budget is spent. */
|
|
1492
|
+
tryWithdraw(): boolean;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1466
1495
|
/**
|
|
1467
1496
|
* Provides underlying functions for stateless {@link ActorHandle} for action calls.
|
|
1468
1497
|
* Similar to ActorConnRaw but doesn't maintain a connection.
|
|
@@ -1478,7 +1507,7 @@ declare class ActorHandleRaw {
|
|
|
1478
1507
|
*
|
|
1479
1508
|
* @protected
|
|
1480
1509
|
*/
|
|
1481
|
-
constructor(client: any, driver: EngineControlClient, params: unknown, getParams: (() => Promise<unknown>) | undefined, encoding: Encoding, actorResolutionState: ActorResolutionState, gatewayOptions?: ActorGatewayOptions, signal?: AbortSignal, currentActorInvocation?: CurrentActorInvocation, startCallSpan?: StartCallSpan);
|
|
1510
|
+
constructor(client: any, driver: EngineControlClient, params: unknown, getParams: (() => Promise<unknown>) | undefined, encoding: Encoding, actorResolutionState: ActorResolutionState, gatewayOptions?: ActorGatewayOptions, signal?: AbortSignal, currentActorInvocation?: CurrentActorInvocation, startCallSpan?: StartCallSpan, retryBudget?: RetryBudget);
|
|
1482
1511
|
send(name: string, body: unknown, options: QueueSendWaitOptions): Promise<QueueSendResult>;
|
|
1483
1512
|
send(name: string, body: unknown, options?: QueueSendNoWaitOptions): Promise<void>;
|
|
1484
1513
|
/**
|
|
@@ -1685,6 +1714,8 @@ declare const CREATE_ACTOR_CONN_PROXY: unique symbol;
|
|
|
1685
1714
|
interface ClientRawOptions {
|
|
1686
1715
|
encoding?: Encoding;
|
|
1687
1716
|
gateway?: ActorGatewayOptions;
|
|
1717
|
+
/** Bounds retries of refused requests across every handle of this client. */
|
|
1718
|
+
retryBudget?: RetryBudgetOptions;
|
|
1688
1719
|
}
|
|
1689
1720
|
/** Runtime-supplied wiring for clients created inside an actor. Set only by the native runtime. */
|
|
1690
1721
|
interface ActorClientRuntimeOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, H as ActorLogger, ax as QueueFilterName, aC as QueueNextOptions, aD as QueueResultMessageForName, aB as QueueNextBatchOptions, aI as Registry, a6 as Client, ap as InferEventArgs, aq as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, H as ActorLogger, ax as QueueFilterName, aC as QueueNextOptions, aD as QueueResultMessageForName, aB as QueueNextBatchOptions, aI as Registry, a6 as Client, ap as InferEventArgs, aq as InferSchemaMap } from './config-DJ3KW-fe.js';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-B2wlj9wx.js';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, H as ActorLogger, ax as QueueFilterName, aC as QueueNextOptions, aD as QueueResultMessageForName, aB as QueueNextBatchOptions, aI as Registry, a6 as Client, ap as InferEventArgs, aq as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, H as ActorLogger, ax as QueueFilterName, aC as QueueNextOptions, aD as QueueResultMessageForName, aB as QueueNextBatchOptions, aI as Registry, a6 as Client, ap as InferEventArgs, aq as InferSchemaMap } from './config-8NgsxIcT.cjs';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-B2wlj9wx.cjs';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
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 _chunkIBEFA6CXcjs = require('../chunk-IBEFA6CX.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
|
+
_chunkIBEFA6CXcjs.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
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
|
|
2
|
-
import { R as RawAccess, S as SqliteTransactionOptions, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-
|
|
2
|
+
import { R as RawAccess, S as SqliteTransactionOptions, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-B2wlj9wx.cjs';
|
|
3
3
|
export { SQLiteTable, alias, check, foreignKey, index, integer, primaryKey, sqliteTable, sqliteTableCreator, text, unique, uniqueIndex } from 'drizzle-orm/sqlite-core';
|
|
4
4
|
|
|
5
5
|
type DrizzleSchema = Record<string, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
|
|
2
|
-
import { R as RawAccess, S as SqliteTransactionOptions, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-
|
|
2
|
+
import { R as RawAccess, S as SqliteTransactionOptions, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-B2wlj9wx.js';
|
|
3
3
|
export { SQLiteTable, alias, check, foreignKey, index, integer, primaryKey, sqliteTable, sqliteTableCreator, text, unique, uniqueIndex } from 'drizzle-orm/sqlite-core';
|
|
4
4
|
|
|
5
5
|
type DrizzleSchema = Record<string, unknown>;
|
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 _chunkJLBPBEWCcjs = require('../chunk-JLBPBEWC.cjs');
|
|
4
4
|
require('../chunk-KVFIONKQ.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-IBEFA6CX.cjs');
|
|
6
6
|
require('../chunk-MGI2VVF6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.db =
|
|
9
|
+
exports.db = _chunkJLBPBEWCcjs.db;
|
|
10
10
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/db/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-
|
|
2
|
-
export { A as AnyDatabaseProvider, b as DatabaseProviderContext, I as InferDatabaseClient, N as NativeDatabaseProvider, c as RawDatabaseClient, d as SqliteBindings, e as SqliteDatabase, f as SqliteNativeMetrics, g as SqliteQueryResult, S as SqliteTransactionOptions } from '../config-
|
|
1
|
+
import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-B2wlj9wx.cjs';
|
|
2
|
+
export { A as AnyDatabaseProvider, b as DatabaseProviderContext, I as InferDatabaseClient, N as NativeDatabaseProvider, c as RawDatabaseClient, d as SqliteBindings, e as SqliteDatabase, f as SqliteNativeMetrics, g as SqliteQueryResult, S as SqliteTransactionOptions } from '../config-B2wlj9wx.cjs';
|
|
3
3
|
|
|
4
4
|
interface DatabaseFactoryConfig {
|
|
5
5
|
onMigrate?: (db: RawAccess) => Promise<void> | void;
|
package/dist/tsup/db/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-
|
|
2
|
-
export { A as AnyDatabaseProvider, b as DatabaseProviderContext, I as InferDatabaseClient, N as NativeDatabaseProvider, c as RawDatabaseClient, d as SqliteBindings, e as SqliteDatabase, f as SqliteNativeMetrics, g as SqliteQueryResult, S as SqliteTransactionOptions } from '../config-
|
|
1
|
+
import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-B2wlj9wx.js';
|
|
2
|
+
export { A as AnyDatabaseProvider, b as DatabaseProviderContext, I as InferDatabaseClient, N as NativeDatabaseProvider, c as RawDatabaseClient, d as SqliteBindings, e as SqliteDatabase, f as SqliteNativeMetrics, g as SqliteQueryResult, S as SqliteTransactionOptions } from '../config-B2wlj9wx.js';
|
|
3
3
|
|
|
4
4
|
interface DatabaseFactoryConfig {
|
|
5
5
|
onMigrate?: (db: RawAccess) => Promise<void> | void;
|
package/dist/tsup/db/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition } from '../config-
|
|
1
|
+
import { A as AnyActorDefinition } from '../config-8NgsxIcT.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
|
-
import '../config-
|
|
3
|
+
import '../config-B2wlj9wx.cjs';
|
|
4
4
|
import '@rivetkit/rivetkit-wasm';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'pino';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition } from '../config-
|
|
1
|
+
import { A as AnyActorDefinition } from '../config-DJ3KW-fe.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
|
-
import '../config-
|
|
3
|
+
import '../config-B2wlj9wx.js';
|
|
4
4
|
import '@rivetkit/rivetkit-wasm';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'pino';
|
|
@@ -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 _chunk3E2BPHQOcjs = require('../chunk-3E2BPHQO.cjs');
|
|
4
|
+
require('../chunk-XUO6G4H6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
8
|
+
var _chunkVCVV726Pcjs = require('../chunk-VCVV726P.cjs');
|
|
9
|
+
require('../chunk-IBEFA6CX.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 = _chunk3E2BPHQOcjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunkVCVV726Pcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkVCVV726Pcjs.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-TBJ4I3R3.js";
|
|
4
|
+
import "../chunk-SJPPKBT3.js";
|
|
5
5
|
import {
|
|
6
6
|
decodeWorkflowHistoryTransport,
|
|
7
7
|
encodeWorkflowHistoryTransport
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-KQ2WQDYT.js";
|
|
9
|
+
import "../chunk-5OCN7VHH.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 _chunkXUO6G4H6cjs = require('../chunk-XUO6G4H6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../chunk-
|
|
10
|
+
var _chunkVCVV726Pcjs = require('../chunk-VCVV726P.cjs');
|
|
11
|
+
require('../chunk-IBEFA6CX.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 = _chunkVCVV726Pcjs.WorkflowBranchStatusType; exports.WorkflowEntryStatus = _chunkVCVV726Pcjs.WorkflowEntryStatus; exports.WorkflowSleepState = _chunkVCVV726Pcjs.WorkflowSleepState; exports.decodeWorkflowHistoryTransport = _chunkVCVV726Pcjs.decodeWorkflowHistoryTransport; exports.encodeWorkflowHistoryTransport = _chunkVCVV726Pcjs.encodeWorkflowHistoryTransport; exports.encodeWorkflowInspectorValue = _chunkXUO6G4H6cjs.encodeWorkflowInspectorValue;
|
|
21
21
|
//# sourceMappingURL=workflow.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeWorkflowInspectorValue
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SJPPKBT3.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-KQ2WQDYT.js";
|
|
11
|
+
import "../chunk-5OCN7VHH.js";
|
|
12
12
|
import "../chunk-ZOVJDAOW.js";
|
|
13
13
|
export {
|
|
14
14
|
WorkflowBranchStatusType,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { aa as CustomInspectorTabEntrySchema, ao as HideInspectorTabEntrySchema, ar as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { aa as CustomInspectorTabEntrySchema, ao as HideInspectorTabEntrySchema, ar as InspectorTabEntrySchema } from '../config-8NgsxIcT.cjs';
|
|
3
|
+
export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-8NgsxIcT.cjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../config-
|
|
5
|
+
import '../config-B2wlj9wx.cjs';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@rivetkit/virtual-websocket';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { aa as CustomInspectorTabEntrySchema, ao as HideInspectorTabEntrySchema, ar as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { aa as CustomInspectorTabEntrySchema, ao as HideInspectorTabEntrySchema, ar as InspectorTabEntrySchema } from '../config-DJ3KW-fe.js';
|
|
3
|
+
export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-DJ3KW-fe.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../config-
|
|
5
|
+
import '../config-B2wlj9wx.js';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import '@rivetkit/virtual-websocket';
|