rivetkit 2.3.29 → 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.
Files changed (135) hide show
  1. package/dist/browser/client.d.ts +58 -9
  2. package/dist/browser/client.js +193 -20
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.js +1 -2
  5. package/dist/browser/inspector/client.js.map +1 -1
  6. package/dist/tsup/{chunk-WHAUEDUT.cjs → chunk-3E2BPHQO.cjs} +10 -10
  7. package/dist/tsup/{chunk-WHAUEDUT.cjs.map → chunk-3E2BPHQO.cjs.map} +1 -1
  8. package/dist/tsup/{chunk-K7QBHEVI.js → chunk-3MMTF3QA.js} +185 -25
  9. package/dist/tsup/chunk-3MMTF3QA.js.map +1 -0
  10. package/dist/tsup/{chunk-WHA3XM3R.js → chunk-5OCN7VHH.js} +10 -11
  11. package/dist/tsup/chunk-5OCN7VHH.js.map +1 -0
  12. package/dist/tsup/{chunk-CRBPB6QI.cjs → chunk-6DDQSAAT.cjs} +7 -7
  13. package/dist/tsup/{chunk-CRBPB6QI.cjs.map → chunk-6DDQSAAT.cjs.map} +1 -1
  14. package/dist/tsup/{chunk-JI6GZ2C2.js → chunk-A2CF6PFH.js} +18 -1
  15. package/dist/tsup/chunk-A2CF6PFH.js.map +1 -0
  16. package/dist/tsup/{chunk-WSSI5L6L.cjs → chunk-CTQKKUZC.cjs} +326 -166
  17. package/dist/tsup/chunk-CTQKKUZC.cjs.map +1 -0
  18. package/dist/tsup/{chunk-IXJCAFAQ.js → chunk-DCDCHB5J.js} +2 -2
  19. package/dist/tsup/{chunk-SNFXCNXD.js → chunk-DQ6K3VVV.js} +3 -3
  20. package/dist/tsup/{chunk-RY6Z4RA5.js → chunk-H6W37YLT.js} +2 -2
  21. package/dist/tsup/{chunk-Q6GKUC22.cjs → chunk-HW2D5OFJ.cjs} +3 -3
  22. package/dist/tsup/{chunk-Q6GKUC22.cjs.map → chunk-HW2D5OFJ.cjs.map} +1 -1
  23. package/dist/tsup/{chunk-DTGPF6XY.cjs → chunk-IBEFA6CX.cjs} +10 -11
  24. package/dist/tsup/chunk-IBEFA6CX.cjs.map +1 -0
  25. package/dist/tsup/{chunk-56QW6V7F.cjs → chunk-JLBPBEWC.cjs} +3 -3
  26. package/dist/tsup/{chunk-56QW6V7F.cjs.map → chunk-JLBPBEWC.cjs.map} +1 -1
  27. package/dist/tsup/{chunk-JMUNIWKG.js → chunk-KQ2WQDYT.js} +2 -2
  28. package/dist/tsup/{chunk-MYWZCDML.cjs → chunk-RTWH3AX3.cjs} +19 -2
  29. package/dist/tsup/chunk-RTWH3AX3.cjs.map +1 -0
  30. package/dist/tsup/{chunk-U3KY2OGG.js → chunk-SJPPKBT3.js} +2 -2
  31. package/dist/tsup/{chunk-7TRYBX2R.js → chunk-TBJ4I3R3.js} +4 -4
  32. package/dist/tsup/{chunk-NK4D6G45.cjs → chunk-VCVV726P.cjs} +4 -4
  33. package/dist/tsup/{chunk-NK4D6G45.cjs.map → chunk-VCVV726P.cjs.map} +1 -1
  34. package/dist/tsup/{chunk-RDBXO2ND.cjs → chunk-XUO6G4H6.cjs} +3 -3
  35. package/dist/tsup/{chunk-RDBXO2ND.cjs.map → chunk-XUO6G4H6.cjs.map} +1 -1
  36. package/dist/tsup/client/mod.cjs +6 -6
  37. package/dist/tsup/client/mod.d.cts +15 -3
  38. package/dist/tsup/client/mod.d.ts +15 -3
  39. package/dist/tsup/client/mod.js +5 -5
  40. package/dist/tsup/common/log.cjs +2 -2
  41. package/dist/tsup/common/log.js +1 -1
  42. package/dist/tsup/common/websocket.cjs +3 -3
  43. package/dist/tsup/common/websocket.js +2 -2
  44. package/dist/tsup/{config-osdJqQwX.d.cts → config-8NgsxIcT.d.cts} +43 -12
  45. package/dist/tsup/{config-ey2I2zz5.d.cts → config-B2wlj9wx.d.cts} +7 -1
  46. package/dist/tsup/{config-ey2I2zz5.d.ts → config-B2wlj9wx.d.ts} +7 -1
  47. package/dist/tsup/{config-Cv6pjCt-.d.ts → config-DJ3KW-fe.d.ts} +43 -12
  48. package/dist/tsup/{context-CoVbKBuk.d.ts → context-BL8kUGjq.d.ts} +2 -2
  49. package/dist/tsup/{context-DpjrM7n7.d.cts → context-_RoE_YHL.d.cts} +2 -2
  50. package/dist/tsup/db/drizzle.cjs +2 -2
  51. package/dist/tsup/db/drizzle.d.cts +1 -1
  52. package/dist/tsup/db/drizzle.d.ts +1 -1
  53. package/dist/tsup/db/drizzle.js +1 -1
  54. package/dist/tsup/db/mod.cjs +3 -3
  55. package/dist/tsup/db/mod.d.cts +2 -2
  56. package/dist/tsup/db/mod.d.ts +2 -2
  57. package/dist/tsup/db/mod.js +2 -2
  58. package/dist/tsup/dynamic/mod.d.cts +2 -2
  59. package/dist/tsup/dynamic/mod.d.ts +2 -2
  60. package/dist/tsup/inspector/mod.cjs +5 -5
  61. package/dist/tsup/inspector/mod.js +4 -4
  62. package/dist/tsup/inspector/workflow.cjs +4 -4
  63. package/dist/tsup/inspector/workflow.js +3 -3
  64. package/dist/tsup/inspector-tab/mod.d.cts +3 -3
  65. package/dist/tsup/inspector-tab/mod.d.ts +3 -3
  66. package/dist/tsup/mod.cjs +254 -166
  67. package/dist/tsup/mod.cjs.map +1 -1
  68. package/dist/tsup/mod.d.cts +4 -4
  69. package/dist/tsup/mod.d.ts +4 -4
  70. package/dist/tsup/mod.js +168 -80
  71. package/dist/tsup/mod.js.map +1 -1
  72. package/dist/tsup/test/mod.cjs +7 -7
  73. package/dist/tsup/test/mod.d.cts +2 -2
  74. package/dist/tsup/test/mod.d.ts +2 -2
  75. package/dist/tsup/test/mod.js +5 -5
  76. package/dist/tsup/unstable/migrations.d.cts +1 -1
  77. package/dist/tsup/unstable/migrations.d.ts +1 -1
  78. package/dist/tsup/utils.cjs +2 -2
  79. package/dist/tsup/utils.js +1 -1
  80. package/dist/tsup/workflow/mod.cjs +17 -17
  81. package/dist/tsup/workflow/mod.d.cts +4 -4
  82. package/dist/tsup/workflow/mod.d.ts +4 -4
  83. package/dist/tsup/workflow/mod.js +5 -5
  84. package/package.json +9 -10
  85. package/src/actor/keys.ts +86 -0
  86. package/src/client/actor-conn.ts +92 -6
  87. package/src/client/actor-handle.ts +21 -3
  88. package/src/client/client.ts +6 -0
  89. package/src/client/config.ts +12 -1
  90. package/src/client/lifecycle-errors.ts +16 -1
  91. package/src/client/retry-budget.ts +78 -0
  92. package/src/client/utils.ts +13 -2
  93. package/src/common/database/config.ts +7 -1
  94. package/src/common/database/native-database.ts +17 -6
  95. package/src/common/router.ts +1 -1
  96. package/src/engine-api/actors.ts +3 -3
  97. package/src/engine-client/actor-websocket-client.ts +4 -2
  98. package/src/engine-client/api-endpoints.ts +44 -14
  99. package/src/engine-client/mod.ts +2 -2
  100. package/src/registry/config/envoy.ts +1 -1
  101. package/src/registry/config/index.ts +28 -31
  102. package/src/registry/index.ts +51 -19
  103. package/src/registry/napi-runtime.ts +3 -2
  104. package/src/registry/native.ts +126 -34
  105. package/src/registry/runtime.ts +27 -10
  106. package/src/registry/wasm-runtime.ts +6 -3
  107. package/src/utils/env-vars.ts +15 -10
  108. package/dist/tsup/chunk-DTGPF6XY.cjs.map +0 -1
  109. package/dist/tsup/chunk-JI6GZ2C2.js.map +0 -1
  110. package/dist/tsup/chunk-K7QBHEVI.js.map +0 -1
  111. package/dist/tsup/chunk-MYWZCDML.cjs.map +0 -1
  112. package/dist/tsup/chunk-WHA3XM3R.js.map +0 -1
  113. package/dist/tsup/chunk-WSSI5L6L.cjs.map +0 -1
  114. package/src/actor/config.test.ts +0 -78
  115. package/src/actor/keys.test.ts +0 -275
  116. package/src/actor/utils.test.ts +0 -48
  117. package/src/client/test.ts +0 -44
  118. package/src/client/token-provider.test.ts +0 -86
  119. package/src/common/database/mod.test.ts +0 -364
  120. package/src/common/database/native-database.test.ts +0 -220
  121. package/src/common/inline-websocket-adapter.test.ts +0 -51
  122. package/src/db/drizzle.test.ts +0 -164
  123. package/src/registry/config/index.test.ts +0 -25
  124. package/src/registry/run-handler-coordinator.test.ts +0 -252
  125. package/src/registry/runtime.test.ts +0 -124
  126. package/src/unstable/migrations.test.ts +0 -170
  127. package/src/utils/endpoint-parser.test.ts +0 -206
  128. package/src/utils.test.ts +0 -34
  129. package/src/workflow/driver.test.ts +0 -62
  130. /package/dist/tsup/{chunk-IXJCAFAQ.js.map → chunk-DCDCHB5J.js.map} +0 -0
  131. /package/dist/tsup/{chunk-SNFXCNXD.js.map → chunk-DQ6K3VVV.js.map} +0 -0
  132. /package/dist/tsup/{chunk-RY6Z4RA5.js.map → chunk-H6W37YLT.js.map} +0 -0
  133. /package/dist/tsup/{chunk-JMUNIWKG.js.map → chunk-KQ2WQDYT.js.map} +0 -0
  134. /package/dist/tsup/{chunk-U3KY2OGG.js.map → chunk-SJPPKBT3.js.map} +0 -0
  135. /package/dist/tsup/{chunk-7TRYBX2R.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-ey2I2zz5.js';
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
- envoy: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
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
- envoyKey: z$1.ZodOptional<z$1.ZodString>;
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
- envoy: {
238
+ node: {
238
239
  poolName: string;
239
240
  version: number;
240
241
  totalSlots: number;
241
- envoyKey?: string | undefined;
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
- envoy: {
297
+ node: {
297
298
  poolName: string;
298
299
  version: number;
299
300
  totalSlots: number;
300
- envoyKey?: string | undefined;
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
- envoyKey: z$1.ZodOptional<z$1.ZodString>;
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
- envoy: z$1.ZodOptional<z$1.ZodObject<{
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
- envoyKey: z$1.ZodOptional<z$1.ZodString>;
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
- onCancellationTokenCancelled(token: CancellationTokenHandle, callback: (...args: unknown[]) => unknown): void;
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-Cv6pjCt-.js';
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-ey2I2zz5.js';
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-osdJqQwX.cjs';
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-ey2I2zz5.cjs';
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">;
@@ -7,7 +7,7 @@
7
7
  var _chunkKVFIONKQcjs = require('../chunk-KVFIONKQ.cjs');
8
8
 
9
9
 
10
- var _chunkDTGPF6XYcjs = require('../chunk-DTGPF6XY.cjs');
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
- _chunkDTGPF6XYcjs.getLogger.call(void 0, "database").warn(
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-ey2I2zz5.cjs';
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-ey2I2zz5.js';
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>;
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-JTHHCZCZ.js";
8
8
  import {
9
9
  getLogger
10
- } from "../chunk-WHA3XM3R.js";
10
+ } from "../chunk-5OCN7VHH.js";
11
11
  import "../chunk-ZOVJDAOW.js";
12
12
 
13
13
  // src/db/drizzle.ts
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk56QW6V7Fcjs = require('../chunk-56QW6V7F.cjs');
3
+ var _chunkJLBPBEWCcjs = require('../chunk-JLBPBEWC.cjs');
4
4
  require('../chunk-KVFIONKQ.cjs');
5
- require('../chunk-DTGPF6XY.cjs');
5
+ require('../chunk-IBEFA6CX.cjs');
6
6
  require('../chunk-MGI2VVF6.cjs');
7
7
 
8
8
 
9
- exports.db = _chunk56QW6V7Fcjs.db;
9
+ exports.db = _chunkJLBPBEWCcjs.db;
10
10
  //# sourceMappingURL=mod.cjs.map
@@ -1,5 +1,5 @@
1
- import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-ey2I2zz5.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-ey2I2zz5.cjs';
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;
@@ -1,5 +1,5 @@
1
- import { R as RawAccess, a as SqliteProfilingOptions, D as DatabaseProvider } from '../config-ey2I2zz5.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-ey2I2zz5.js';
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;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  db
3
- } from "../chunk-RY6Z4RA5.js";
3
+ } from "../chunk-H6W37YLT.js";
4
4
  import "../chunk-JTHHCZCZ.js";
5
- import "../chunk-WHA3XM3R.js";
5
+ import "../chunk-5OCN7VHH.js";
6
6
  import "../chunk-ZOVJDAOW.js";
7
7
  export {
8
8
  db
@@ -1,6 +1,6 @@
1
- import { A as AnyActorDefinition } from '../config-osdJqQwX.cjs';
1
+ import { A as AnyActorDefinition } from '../config-8NgsxIcT.cjs';
2
2
  import 'zod/v4';
3
- import '../config-ey2I2zz5.cjs';
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-Cv6pjCt-.js';
1
+ import { A as AnyActorDefinition } from '../config-DJ3KW-fe.js';
2
2
  import 'zod/v4';
3
- import '../config-ey2I2zz5.js';
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 _chunkWHAUEDUTcjs = require('../chunk-WHAUEDUT.cjs');
4
- require('../chunk-RDBXO2ND.cjs');
3
+ var _chunk3E2BPHQOcjs = require('../chunk-3E2BPHQO.cjs');
4
+ require('../chunk-XUO6G4H6.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkNK4D6G45cjs = require('../chunk-NK4D6G45.cjs');
9
- require('../chunk-DTGPF6XY.cjs');
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 = _chunkWHAUEDUTcjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunkNK4D6G45cjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkNK4D6G45cjs.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;
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-7TRYBX2R.js";
4
- import "../chunk-U3KY2OGG.js";
3
+ } from "../chunk-TBJ4I3R3.js";
4
+ import "../chunk-SJPPKBT3.js";
5
5
  import {
6
6
  decodeWorkflowHistoryTransport,
7
7
  encodeWorkflowHistoryTransport
8
- } from "../chunk-JMUNIWKG.js";
9
- import "../chunk-WHA3XM3R.js";
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 _chunkRDBXO2NDcjs = require('../chunk-RDBXO2ND.cjs');
3
+ var _chunkXUO6G4H6cjs = require('../chunk-XUO6G4H6.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkNK4D6G45cjs = require('../chunk-NK4D6G45.cjs');
11
- require('../chunk-DTGPF6XY.cjs');
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 = _chunkNK4D6G45cjs.WorkflowBranchStatusType; exports.WorkflowEntryStatus = _chunkNK4D6G45cjs.WorkflowEntryStatus; exports.WorkflowSleepState = _chunkNK4D6G45cjs.WorkflowSleepState; exports.decodeWorkflowHistoryTransport = _chunkNK4D6G45cjs.decodeWorkflowHistoryTransport; exports.encodeWorkflowHistoryTransport = _chunkNK4D6G45cjs.encodeWorkflowHistoryTransport; exports.encodeWorkflowInspectorValue = _chunkRDBXO2NDcjs.encodeWorkflowInspectorValue;
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-U3KY2OGG.js";
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-JMUNIWKG.js";
11
- import "../chunk-WHA3XM3R.js";
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-osdJqQwX.cjs';
3
- export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-osdJqQwX.cjs';
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-ey2I2zz5.cjs';
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-Cv6pjCt-.js';
3
- export { y as ActorInspectorConfig, z as ActorInspectorConfigSchema, a1 as BUILTIN_INSPECTOR_TAB_IDS, a3 as BuiltinInspectorTabIdSchema } from '../config-Cv6pjCt-.js';
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-ey2I2zz5.js';
5
+ import '../config-B2wlj9wx.js';
6
6
  import '@rivetkit/rivetkit-wasm';
7
7
  import 'pino';
8
8
  import '@rivetkit/virtual-websocket';