rivetkit 3.0.2 → 3.0.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 +8 -0
- package/dist/browser/client.js +1 -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-ANP7UCAM.js → chunk-2PHT2DGL.js} +6 -6
- package/dist/tsup/{chunk-BBEH6RML.cjs → chunk-3WZJFRCB.cjs} +3 -3
- package/dist/tsup/{chunk-BBEH6RML.cjs.map → chunk-3WZJFRCB.cjs.map} +1 -1
- package/dist/tsup/{chunk-M7KPJSGO.cjs → chunk-4L27QRHE.cjs} +3 -3
- package/dist/tsup/{chunk-M7KPJSGO.cjs.map → chunk-4L27QRHE.cjs.map} +1 -1
- package/dist/tsup/{chunk-47W6FHPJ.js → chunk-4YUA7CTJ.js} +2 -2
- package/dist/tsup/{chunk-UXDASKP6.js → chunk-A7Q5DJ2P.js} +3 -1
- package/dist/tsup/chunk-A7Q5DJ2P.js.map +1 -0
- package/dist/tsup/{chunk-HJWK46Z5.js → chunk-F5VDYHOA.js} +3 -3
- package/dist/tsup/{chunk-3RE23GTB.js → chunk-IIB4ZPZI.js} +2 -2
- package/dist/tsup/{chunk-3RE23GTB.js.map → chunk-IIB4ZPZI.js.map} +1 -1
- package/dist/tsup/{chunk-SSF2XC33.cjs → chunk-INFADXXI.cjs} +3 -1
- package/dist/tsup/chunk-INFADXXI.cjs.map +1 -0
- package/dist/tsup/{chunk-J7T52LN6.js → chunk-L3LCIZBH.js} +2 -2
- package/dist/tsup/{chunk-FR5QOAYE.cjs → chunk-LW57U7VQ.cjs} +10 -10
- package/dist/tsup/{chunk-FR5QOAYE.cjs.map → chunk-LW57U7VQ.cjs.map} +1 -1
- package/dist/tsup/{chunk-OF63EVJQ.js → chunk-NRTL2RDM.js} +2 -2
- package/dist/tsup/{chunk-3KVVYC5I.cjs → chunk-NXAFFMGH.cjs} +144 -144
- package/dist/tsup/{chunk-3KVVYC5I.cjs.map → chunk-NXAFFMGH.cjs.map} +1 -1
- package/dist/tsup/{chunk-ZAZAKYNQ.js → chunk-SIVNBXKO.js} +2 -2
- package/dist/tsup/{chunk-M3H37DUQ.cjs → chunk-SVEL5ZO3.cjs} +2 -2
- package/dist/tsup/{chunk-M3H37DUQ.cjs.map → chunk-SVEL5ZO3.cjs.map} +1 -1
- package/dist/tsup/{chunk-KF7ETIFK.cjs → chunk-T5Z3FG5Y.cjs} +3 -3
- package/dist/tsup/{chunk-KF7ETIFK.cjs.map → chunk-T5Z3FG5Y.cjs.map} +1 -1
- package/dist/tsup/{chunk-3C5KLO4V.cjs → chunk-UTNZZOMF.cjs} +4 -4
- package/dist/tsup/{chunk-3C5KLO4V.cjs.map → chunk-UTNZZOMF.cjs.map} +1 -1
- package/dist/tsup/{chunk-DVXMOEFT.cjs → chunk-UYBLHHFG.cjs} +7 -7
- package/dist/tsup/{chunk-DVXMOEFT.cjs.map → chunk-UYBLHHFG.cjs.map} +1 -1
- package/dist/tsup/{chunk-4ASLJWUQ.js → chunk-ZT7GZRFQ.js} +4 -4
- 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-H6pJy_J1.d.cts → config-CM_AlRlT.d.cts} +8 -0
- package/dist/tsup/{config-BtUHYdoj.d.ts → config-DcUqgwcz.d.ts} +8 -0
- package/dist/tsup/{context-TWrKZjqf.d.cts → context-1BFHhiTs.d.cts} +1 -1
- package/dist/tsup/{context-DrDoMXSD.d.ts → context-Bws3ikEx.d.ts} +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.cjs +2 -2
- package/dist/tsup/dynamic/mod.d.cts +1 -1
- package/dist/tsup/dynamic/mod.d.ts +1 -1
- package/dist/tsup/dynamic/mod.js +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.cjs +2 -2
- package/dist/tsup/inspector-tab/mod.d.cts +2 -2
- package/dist/tsup/inspector-tab/mod.d.ts +2 -2
- package/dist/tsup/inspector-tab/mod.js +1 -1
- package/dist/tsup/mod.cjs +109 -109
- 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 +6 -6
- 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 +10 -10
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +5 -5
- package/package.json +9 -9
- package/src/actor/config.ts +16 -2
- package/dist/tsup/chunk-SSF2XC33.cjs.map +0 -1
- package/dist/tsup/chunk-UXDASKP6.js.map +0 -1
- /package/dist/tsup/{chunk-ANP7UCAM.js.map → chunk-2PHT2DGL.js.map} +0 -0
- /package/dist/tsup/{chunk-47W6FHPJ.js.map → chunk-4YUA7CTJ.js.map} +0 -0
- /package/dist/tsup/{chunk-HJWK46Z5.js.map → chunk-F5VDYHOA.js.map} +0 -0
- /package/dist/tsup/{chunk-J7T52LN6.js.map → chunk-L3LCIZBH.js.map} +0 -0
- /package/dist/tsup/{chunk-OF63EVJQ.js.map → chunk-NRTL2RDM.js.map} +0 -0
- /package/dist/tsup/{chunk-ZAZAKYNQ.js.map → chunk-SIVNBXKO.js.map} +0 -0
- /package/dist/tsup/{chunk-4ASLJWUQ.js.map → chunk-ZT7GZRFQ.js.map} +0 -0
package/dist/tsup/mod.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-
|
|
2
|
-
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as ActionSampleRates, n as ActionTraceSamplers, o as Actions, p as ActorConfig, q as ActorConfigInput, r as ActorConfigSchema, s as ActorContext, t as ActorContextOf, u as ActorCron, v as ActorCronEveryOptions, w as ActorCronSetOptions, x as ActorDefinition, y as ActorInspectorConfig, z as ActorInspectorConfigSchema, F as ActorKey, G as ActorKv, H as ActorLogger, I as ActorOptions, J as ActorOptionsInput, K as ActorOptionsSchema, L as ActorQuery, N as ActorQueue, O as ActorRun, P as ActorSchedule, T as ActorTracingOptions, U as ActorTypes, V as ActorsSchema, X as AnyActorInstance, Y as AnyClient, Z as AnyConn, _ as AnyStaticActorDefinition, $ as AnyStaticActorInstance, a0 as AuthIntent, a1 as BUILTIN_INSPECTOR_TAB_IDS, a2 as BaseActorInstance, a3 as BuiltinInspectorTabIdSchema, a4 as CONN_DRIVER_SYMBOL, a5 as CONN_STATE_MANAGER_SYMBOL, a6 as Client, a7 as Conn, a8 as CronFire, a9 as CronJobInfo, aa as CustomInspectorTabEntrySchema, ab as DEFAULT_SLEEP_GRACE_PERIOD, ac as DefineRunHandlerOptions, ad as DocActorConfigSchema, ae as DocActorOptionsSchema, af as DocConfigurePoolSchema, ag as DocEnvoyConfigSchema, ah as DocRegistryConfigSchema, ai as DocServerlessConfigSchema, aj as DocSqliteConfigSchema, ak as FetchHandler, al as GlobalActorOptions, am as GlobalActorOptionsInput, an as GlobalActorOptionsSchema, ao as HideInspectorTabEntrySchema, ap as InferEventArgs, aq as InferSchemaMap, ar as InspectorTabEntrySchema, as as InspectorUnsubscribe, at as InstanceActorOptions, au as InstanceActorOptionsInput, av as InstanceActorOptionsSchema, aw as QueueEnqueueAndWaitOptions, ax as QueueFilterName, ay as QueueIterOptions, az as QueueMessageOf, aA as QueueName, aB as QueueNextBatchOptions, aC as QueueNextOptions, aD as QueueResultMessageForName, aE as QueueTryNextBatchOptions, aF as QueueTryNextOptions, aG as QueueWaitOptions, aH as RAW_STATE_SYMBOL, aI as Registry, aJ as RegistryActors, aK as RegistryApplication, aL as RegistryConfig, aM as RegistryConfigInput, aN as RegistryConfigSchema, aO as RegistryDeps, aP as RegistryListenOptions, aQ as RegistryRoutes, aR as RunConfig, aS as RunConfigSchema, aT as RunControl, aU as RunInspectorConfig, aV as RunInspectorFactoryContext, aW as RunInspectorFactoryResult, aX as RunInspectorKind, aY as RunWithInactiveOptions, aZ as RuntimeKind, a_ as RuntimeKindSchema, a$ as ScheduledEventInfo, b0 as ScheduledFireInfo, b1 as ServerlessHandler, b2 as SqliteBackend, b3 as SqliteBackendSchema, b4 as SqliteConfig, b5 as SqliteConfigSchema, b6 as TestConfig, b7 as TestConfigSchema, b8 as Type, b9 as WasmRuntimeBindings, ba as WasmRuntimeConfig, bb as WasmRuntimeConfigSchema, bc as WasmRuntimeInitInput, bd as WorkflowInspectorConfig, be as WorkflowOutcome, bf as WorkflowSpan, bg as WorkflowStepOutcome, bh as WorkflowStepSpan, bi as actor, bj as buildActorNames, bk as createClientWithDriver, bl as defineRunHandler, bm as disposeRunInspector, bn as event, bo as getRunFunction, bp as getRunInspectorConfig, bq as getRunMetadata, br as isStaticActorDefinition, bs as isStaticActorInstance, bt as lookupInRegistry, bu as queue, bv as setup, bw as test } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-CM_AlRlT.cjs';
|
|
2
|
+
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as ActionSampleRates, n as ActionTraceSamplers, o as Actions, p as ActorConfig, q as ActorConfigInput, r as ActorConfigSchema, s as ActorContext, t as ActorContextOf, u as ActorCron, v as ActorCronEveryOptions, w as ActorCronSetOptions, x as ActorDefinition, y as ActorInspectorConfig, z as ActorInspectorConfigSchema, F as ActorKey, G as ActorKv, H as ActorLogger, I as ActorOptions, J as ActorOptionsInput, K as ActorOptionsSchema, L as ActorQuery, N as ActorQueue, O as ActorRun, P as ActorSchedule, T as ActorTracingOptions, U as ActorTypes, V as ActorsSchema, X as AnyActorInstance, Y as AnyClient, Z as AnyConn, _ as AnyStaticActorDefinition, $ as AnyStaticActorInstance, a0 as AuthIntent, a1 as BUILTIN_INSPECTOR_TAB_IDS, a2 as BaseActorInstance, a3 as BuiltinInspectorTabIdSchema, a4 as CONN_DRIVER_SYMBOL, a5 as CONN_STATE_MANAGER_SYMBOL, a6 as Client, a7 as Conn, a8 as CronFire, a9 as CronJobInfo, aa as CustomInspectorTabEntrySchema, ab as DEFAULT_SLEEP_GRACE_PERIOD, ac as DefineRunHandlerOptions, ad as DocActorConfigSchema, ae as DocActorOptionsSchema, af as DocConfigurePoolSchema, ag as DocEnvoyConfigSchema, ah as DocRegistryConfigSchema, ai as DocServerlessConfigSchema, aj as DocSqliteConfigSchema, ak as FetchHandler, al as GlobalActorOptions, am as GlobalActorOptionsInput, an as GlobalActorOptionsSchema, ao as HideInspectorTabEntrySchema, ap as InferEventArgs, aq as InferSchemaMap, ar as InspectorTabEntrySchema, as as InspectorUnsubscribe, at as InstanceActorOptions, au as InstanceActorOptionsInput, av as InstanceActorOptionsSchema, aw as QueueEnqueueAndWaitOptions, ax as QueueFilterName, ay as QueueIterOptions, az as QueueMessageOf, aA as QueueName, aB as QueueNextBatchOptions, aC as QueueNextOptions, aD as QueueResultMessageForName, aE as QueueTryNextBatchOptions, aF as QueueTryNextOptions, aG as QueueWaitOptions, aH as RAW_STATE_SYMBOL, aI as Registry, aJ as RegistryActors, aK as RegistryApplication, aL as RegistryConfig, aM as RegistryConfigInput, aN as RegistryConfigSchema, aO as RegistryDeps, aP as RegistryListenOptions, aQ as RegistryRoutes, aR as RunConfig, aS as RunConfigSchema, aT as RunControl, aU as RunInspectorConfig, aV as RunInspectorFactoryContext, aW as RunInspectorFactoryResult, aX as RunInspectorKind, aY as RunWithInactiveOptions, aZ as RuntimeKind, a_ as RuntimeKindSchema, a$ as ScheduledEventInfo, b0 as ScheduledFireInfo, b1 as ServerlessHandler, b2 as SqliteBackend, b3 as SqliteBackendSchema, b4 as SqliteConfig, b5 as SqliteConfigSchema, b6 as TestConfig, b7 as TestConfigSchema, b8 as Type, b9 as WasmRuntimeBindings, ba as WasmRuntimeConfig, bb as WasmRuntimeConfigSchema, bc as WasmRuntimeInitInput, bd as WorkflowInspectorConfig, be as WorkflowOutcome, bf as WorkflowSpan, bg as WorkflowStepOutcome, bh as WorkflowStepSpan, bi as actor, bj as buildActorNames, bk as createClientWithDriver, bl as defineRunHandler, bm as disposeRunInspector, bn as event, bo as getRunFunction, bp as getRunInspectorConfig, bq as getRunMetadata, br as isStaticActorDefinition, bs as isStaticActorInstance, bt as lookupInRegistry, bu as queue, bv as setup, bw as test } from './config-CM_AlRlT.cjs';
|
|
3
3
|
export { E as Encoding, t as toUint8Array } from './utils-C6b0aYUM.cjs';
|
|
4
4
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
5
5
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
6
6
|
import { A as AnyDatabaseProvider } from './config-CBTr4IhE.cjs';
|
|
7
7
|
export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-3rsE0JvI.cjs';
|
|
8
8
|
import { WSContext } from 'hono/ws';
|
|
9
|
-
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-
|
|
9
|
+
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-1BFHhiTs.cjs';
|
|
10
10
|
import 'zod/v4';
|
|
11
11
|
import '@rivetkit/rivetkit-wasm';
|
|
12
12
|
import 'zod';
|
package/dist/tsup/mod.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-
|
|
2
|
-
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as ActionSampleRates, n as ActionTraceSamplers, o as Actions, p as ActorConfig, q as ActorConfigInput, r as ActorConfigSchema, s as ActorContext, t as ActorContextOf, u as ActorCron, v as ActorCronEveryOptions, w as ActorCronSetOptions, x as ActorDefinition, y as ActorInspectorConfig, z as ActorInspectorConfigSchema, F as ActorKey, G as ActorKv, H as ActorLogger, I as ActorOptions, J as ActorOptionsInput, K as ActorOptionsSchema, L as ActorQuery, N as ActorQueue, O as ActorRun, P as ActorSchedule, T as ActorTracingOptions, U as ActorTypes, V as ActorsSchema, X as AnyActorInstance, Y as AnyClient, Z as AnyConn, _ as AnyStaticActorDefinition, $ as AnyStaticActorInstance, a0 as AuthIntent, a1 as BUILTIN_INSPECTOR_TAB_IDS, a2 as BaseActorInstance, a3 as BuiltinInspectorTabIdSchema, a4 as CONN_DRIVER_SYMBOL, a5 as CONN_STATE_MANAGER_SYMBOL, a6 as Client, a7 as Conn, a8 as CronFire, a9 as CronJobInfo, aa as CustomInspectorTabEntrySchema, ab as DEFAULT_SLEEP_GRACE_PERIOD, ac as DefineRunHandlerOptions, ad as DocActorConfigSchema, ae as DocActorOptionsSchema, af as DocConfigurePoolSchema, ag as DocEnvoyConfigSchema, ah as DocRegistryConfigSchema, ai as DocServerlessConfigSchema, aj as DocSqliteConfigSchema, ak as FetchHandler, al as GlobalActorOptions, am as GlobalActorOptionsInput, an as GlobalActorOptionsSchema, ao as HideInspectorTabEntrySchema, ap as InferEventArgs, aq as InferSchemaMap, ar as InspectorTabEntrySchema, as as InspectorUnsubscribe, at as InstanceActorOptions, au as InstanceActorOptionsInput, av as InstanceActorOptionsSchema, aw as QueueEnqueueAndWaitOptions, ax as QueueFilterName, ay as QueueIterOptions, az as QueueMessageOf, aA as QueueName, aB as QueueNextBatchOptions, aC as QueueNextOptions, aD as QueueResultMessageForName, aE as QueueTryNextBatchOptions, aF as QueueTryNextOptions, aG as QueueWaitOptions, aH as RAW_STATE_SYMBOL, aI as Registry, aJ as RegistryActors, aK as RegistryApplication, aL as RegistryConfig, aM as RegistryConfigInput, aN as RegistryConfigSchema, aO as RegistryDeps, aP as RegistryListenOptions, aQ as RegistryRoutes, aR as RunConfig, aS as RunConfigSchema, aT as RunControl, aU as RunInspectorConfig, aV as RunInspectorFactoryContext, aW as RunInspectorFactoryResult, aX as RunInspectorKind, aY as RunWithInactiveOptions, aZ as RuntimeKind, a_ as RuntimeKindSchema, a$ as ScheduledEventInfo, b0 as ScheduledFireInfo, b1 as ServerlessHandler, b2 as SqliteBackend, b3 as SqliteBackendSchema, b4 as SqliteConfig, b5 as SqliteConfigSchema, b6 as TestConfig, b7 as TestConfigSchema, b8 as Type, b9 as WasmRuntimeBindings, ba as WasmRuntimeConfig, bb as WasmRuntimeConfigSchema, bc as WasmRuntimeInitInput, bd as WorkflowInspectorConfig, be as WorkflowOutcome, bf as WorkflowSpan, bg as WorkflowStepOutcome, bh as WorkflowStepSpan, bi as actor, bj as buildActorNames, bk as createClientWithDriver, bl as defineRunHandler, bm as disposeRunInspector, bn as event, bo as getRunFunction, bp as getRunInspectorConfig, bq as getRunMetadata, br as isStaticActorDefinition, bs as isStaticActorInstance, bt as lookupInRegistry, bu as queue, bv as setup, bw as test } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-DcUqgwcz.js';
|
|
2
|
+
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as ActionSampleRates, n as ActionTraceSamplers, o as Actions, p as ActorConfig, q as ActorConfigInput, r as ActorConfigSchema, s as ActorContext, t as ActorContextOf, u as ActorCron, v as ActorCronEveryOptions, w as ActorCronSetOptions, x as ActorDefinition, y as ActorInspectorConfig, z as ActorInspectorConfigSchema, F as ActorKey, G as ActorKv, H as ActorLogger, I as ActorOptions, J as ActorOptionsInput, K as ActorOptionsSchema, L as ActorQuery, N as ActorQueue, O as ActorRun, P as ActorSchedule, T as ActorTracingOptions, U as ActorTypes, V as ActorsSchema, X as AnyActorInstance, Y as AnyClient, Z as AnyConn, _ as AnyStaticActorDefinition, $ as AnyStaticActorInstance, a0 as AuthIntent, a1 as BUILTIN_INSPECTOR_TAB_IDS, a2 as BaseActorInstance, a3 as BuiltinInspectorTabIdSchema, a4 as CONN_DRIVER_SYMBOL, a5 as CONN_STATE_MANAGER_SYMBOL, a6 as Client, a7 as Conn, a8 as CronFire, a9 as CronJobInfo, aa as CustomInspectorTabEntrySchema, ab as DEFAULT_SLEEP_GRACE_PERIOD, ac as DefineRunHandlerOptions, ad as DocActorConfigSchema, ae as DocActorOptionsSchema, af as DocConfigurePoolSchema, ag as DocEnvoyConfigSchema, ah as DocRegistryConfigSchema, ai as DocServerlessConfigSchema, aj as DocSqliteConfigSchema, ak as FetchHandler, al as GlobalActorOptions, am as GlobalActorOptionsInput, an as GlobalActorOptionsSchema, ao as HideInspectorTabEntrySchema, ap as InferEventArgs, aq as InferSchemaMap, ar as InspectorTabEntrySchema, as as InspectorUnsubscribe, at as InstanceActorOptions, au as InstanceActorOptionsInput, av as InstanceActorOptionsSchema, aw as QueueEnqueueAndWaitOptions, ax as QueueFilterName, ay as QueueIterOptions, az as QueueMessageOf, aA as QueueName, aB as QueueNextBatchOptions, aC as QueueNextOptions, aD as QueueResultMessageForName, aE as QueueTryNextBatchOptions, aF as QueueTryNextOptions, aG as QueueWaitOptions, aH as RAW_STATE_SYMBOL, aI as Registry, aJ as RegistryActors, aK as RegistryApplication, aL as RegistryConfig, aM as RegistryConfigInput, aN as RegistryConfigSchema, aO as RegistryDeps, aP as RegistryListenOptions, aQ as RegistryRoutes, aR as RunConfig, aS as RunConfigSchema, aT as RunControl, aU as RunInspectorConfig, aV as RunInspectorFactoryContext, aW as RunInspectorFactoryResult, aX as RunInspectorKind, aY as RunWithInactiveOptions, aZ as RuntimeKind, a_ as RuntimeKindSchema, a$ as ScheduledEventInfo, b0 as ScheduledFireInfo, b1 as ServerlessHandler, b2 as SqliteBackend, b3 as SqliteBackendSchema, b4 as SqliteConfig, b5 as SqliteConfigSchema, b6 as TestConfig, b7 as TestConfigSchema, b8 as Type, b9 as WasmRuntimeBindings, ba as WasmRuntimeConfig, bb as WasmRuntimeConfigSchema, bc as WasmRuntimeInitInput, bd as WorkflowInspectorConfig, be as WorkflowOutcome, bf as WorkflowSpan, bg as WorkflowStepOutcome, bh as WorkflowStepSpan, bi as actor, bj as buildActorNames, bk as createClientWithDriver, bl as defineRunHandler, bm as disposeRunInspector, bn as event, bo as getRunFunction, bp as getRunInspectorConfig, bq as getRunMetadata, br as isStaticActorDefinition, bs as isStaticActorInstance, bt as lookupInRegistry, bu as queue, bv as setup, bw as test } from './config-DcUqgwcz.js';
|
|
3
3
|
export { E as Encoding, t as toUint8Array } from './utils-C1O-SklO.js';
|
|
4
4
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
5
5
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
6
6
|
import { A as AnyDatabaseProvider } from './config-CBTr4IhE.js';
|
|
7
7
|
export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-3rsE0JvI.js';
|
|
8
8
|
import { WSContext } from 'hono/ws';
|
|
9
|
-
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-
|
|
9
|
+
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-Bws3ikEx.js';
|
|
10
10
|
import 'zod/v4';
|
|
11
11
|
import '@rivetkit/rivetkit-wasm';
|
|
12
12
|
import 'zod';
|
package/dist/tsup/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeWorkflowHistoryTransport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L3LCIZBH.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getRunInspectorKind,
|
|
18
18
|
getRunMetadata,
|
|
19
19
|
hasRunInspectorConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A7Q5DJ2P.js";
|
|
21
21
|
import {
|
|
22
22
|
ALLOWED_PUBLIC_HEADERS,
|
|
23
23
|
ENGINE_HOST,
|
|
@@ -35,18 +35,18 @@ import {
|
|
|
35
35
|
runWithActorInvocationSpan,
|
|
36
36
|
tryParseEndpoint,
|
|
37
37
|
updateRunnerConfig
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2PHT2DGL.js";
|
|
39
39
|
import {
|
|
40
40
|
makePrefixedKey,
|
|
41
41
|
removePrefixFromKey
|
|
42
42
|
} from "./chunk-A2CF6PFH.js";
|
|
43
|
-
import "./chunk-ZAZAKYNQ.js";
|
|
44
43
|
import {
|
|
45
44
|
bindNativeStateTransactionContext,
|
|
46
45
|
db,
|
|
47
46
|
registerNativeStateTransactionOpener
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-NRTL2RDM.js";
|
|
49
48
|
import "./chunk-JTHHCZCZ.js";
|
|
49
|
+
import "./chunk-SIVNBXKO.js";
|
|
50
50
|
import {
|
|
51
51
|
LogLevelSchema,
|
|
52
52
|
VERSION,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
parsePortEnv,
|
|
81
81
|
stringifyError,
|
|
82
82
|
toUint8Array
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-IIB4ZPZI.js";
|
|
84
84
|
import {
|
|
85
85
|
INTERNAL_ERROR_CODE,
|
|
86
86
|
RivetError,
|
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUYBLHHFGcjs = require('../chunk-UYBLHHFG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNXAFFMGHcjs = require('../chunk-NXAFFMGH.cjs');
|
|
7
7
|
require('../chunk-RTWH3AX3.cjs');
|
|
8
|
-
require('../chunk-M7KPJSGO.cjs');
|
|
9
8
|
require('../chunk-KVFIONKQ.cjs');
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-4L27QRHE.cjs');
|
|
10
|
+
require('../chunk-SVEL5ZO3.cjs');
|
|
11
11
|
require('../chunk-MGI2VVF6.cjs');
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
|
@@ -36,8 +36,8 @@ async function setupTest(c, registry) {
|
|
|
36
36
|
registry.config.noWelcome = true;
|
|
37
37
|
registry.start();
|
|
38
38
|
await waitForRegistryReady(registry);
|
|
39
|
-
const client =
|
|
40
|
-
...
|
|
39
|
+
const client = _chunkUYBLHHFGcjs.createClient.call(void 0, {
|
|
40
|
+
..._chunkNXAFFMGHcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
|
|
41
41
|
disableMetadataLookup: false
|
|
42
42
|
});
|
|
43
43
|
c.onTestFinished(async () => {
|
package/dist/tsup/test/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TestContext } from 'vitest';
|
|
2
|
-
import { aI as Registry, a6 as Client } from '../config-
|
|
2
|
+
import { aI as Registry, a6 as Client } from '../config-CM_AlRlT.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../config-CBTr4IhE.cjs';
|
|
5
5
|
import '@rivetkit/rivetkit-wasm';
|
package/dist/tsup/test/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TestContext } from 'vitest';
|
|
2
|
-
import { aI as Registry, a6 as Client } from '../config-
|
|
2
|
+
import { aI as Registry, a6 as Client } from '../config-DcUqgwcz.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../config-CBTr4IhE.js';
|
|
5
5
|
import '@rivetkit/rivetkit-wasm';
|
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-F5VDYHOA.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-2PHT2DGL.js";
|
|
7
7
|
import "../chunk-A2CF6PFH.js";
|
|
8
|
-
import "../chunk-ZAZAKYNQ.js";
|
|
9
8
|
import "../chunk-JTHHCZCZ.js";
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SIVNBXKO.js";
|
|
10
|
+
import "../chunk-IIB4ZPZI.js";
|
|
11
11
|
import "../chunk-ZOVJDAOW.js";
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkSVEL5ZO3cjs = require('./chunk-SVEL5ZO3.cjs');
|
|
23
23
|
require('./chunk-MGI2VVF6.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
@@ -42,5 +42,5 @@ require('./chunk-MGI2VVF6.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
exports.EXTRA_ERROR_LOG =
|
|
45
|
+
exports.EXTRA_ERROR_LOG = _chunkSVEL5ZO3cjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkSVEL5ZO3cjs.SinglePromiseQueue; exports.VERSION = _chunkSVEL5ZO3cjs.VERSION; exports.arrayBuffersEqual = _chunkSVEL5ZO3cjs.arrayBuffersEqual; exports.assertUnreachable = _chunkSVEL5ZO3cjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkSVEL5ZO3cjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkSVEL5ZO3cjs.combineUrlPath; exports.dbg = _chunkSVEL5ZO3cjs.dbg; exports.detectRuntime = _chunkSVEL5ZO3cjs.detectRuntime; exports.getEnvUniversal = _chunkSVEL5ZO3cjs.getEnvUniversal; exports.httpUserAgent = _chunkSVEL5ZO3cjs.httpUserAgent; exports.interval = _chunkSVEL5ZO3cjs.interval; exports.joinSignals = _chunkSVEL5ZO3cjs.joinSignals; exports.jsonParseCompat = _chunkSVEL5ZO3cjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkSVEL5ZO3cjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkSVEL5ZO3cjs.promiseWithResolvers; exports.setLongTimeout = _chunkSVEL5ZO3cjs.setLongTimeout; exports.sleep = _chunkSVEL5ZO3cjs.sleep; exports.stringifyError = _chunkSVEL5ZO3cjs.stringifyError; exports.toUint8Array = _chunkSVEL5ZO3cjs.toUint8Array;
|
|
46
46
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/tsup/utils.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2;
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkLW57U7VQcjs = require('../chunk-LW57U7VQ.cjs');
|
|
4
|
+
require('../chunk-3WZJFRCB.cjs');
|
|
5
|
+
require('../chunk-UTNZZOMF.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkINFADXXIcjs = require('../chunk-INFADXXI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkRTWH3AX3cjs = require('../chunk-RTWH3AX3.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSVEL5ZO3cjs = require('../chunk-SVEL5ZO3.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -746,13 +746,13 @@ function workflow(fn, options = {}) {
|
|
|
746
746
|
function getWorkflowInspector(actorId) {
|
|
747
747
|
let workflowInspector = workflowInspectors.get(actorId);
|
|
748
748
|
if (!workflowInspector) {
|
|
749
|
-
workflowInspector =
|
|
749
|
+
workflowInspector = _chunkLW57U7VQcjs.createWorkflowInspectorAdapter.call(void 0, );
|
|
750
750
|
workflowInspectors.set(actorId, workflowInspector);
|
|
751
751
|
}
|
|
752
752
|
return workflowInspector;
|
|
753
753
|
}
|
|
754
754
|
async function run(runCtx) {
|
|
755
|
-
const actor = runCtx[
|
|
755
|
+
const actor = runCtx[_chunkINFADXXIcjs.ACTOR_CONTEXT_INTERNAL_SYMBOL];
|
|
756
756
|
_invariant2.default.call(void 0, actor, "workflow() requires an actor instance");
|
|
757
757
|
const workflowInspector = getWorkflowInspector(actor.id);
|
|
758
758
|
const driver = new ActorWorkflowDriver(actor, runCtx);
|
|
@@ -819,19 +819,19 @@ function workflow(fn, options = {}) {
|
|
|
819
819
|
if (shouldRethrowWorkflowError(error)) {
|
|
820
820
|
runCtx.log.error({
|
|
821
821
|
msg: "workflow run failed",
|
|
822
|
-
error:
|
|
822
|
+
error: _chunkSVEL5ZO3cjs.stringifyError.call(void 0, error)
|
|
823
823
|
});
|
|
824
824
|
throw error;
|
|
825
825
|
}
|
|
826
826
|
runCtx.log.warn({
|
|
827
827
|
msg: "workflow failed and will sleep until woken",
|
|
828
|
-
error:
|
|
828
|
+
error: _chunkSVEL5ZO3cjs.stringifyError.call(void 0, error)
|
|
829
829
|
});
|
|
830
830
|
} finally {
|
|
831
831
|
runCtx.abortSignal.removeEventListener("abort", onAbort);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
return
|
|
834
|
+
return _chunkINFADXXIcjs.defineRunHandler.call(void 0, run, {
|
|
835
835
|
icon: "diagram-project",
|
|
836
836
|
inspectorKind: "workflow",
|
|
837
837
|
createInspector: ({ actorId, control }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WorkflowErrorEvent } from '@rivetkit/workflow-engine';
|
|
2
2
|
export { Loop, TryBlockCatchKind, TryBlockConfig, TryBlockFailure, TryBlockResult, TryStepCatchKind, TryStepConfig, TryStepFailure, TryStepResult, WorkflowError, WorkflowErrorEvent } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext } from '../config-
|
|
3
|
+
import { E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext } from '../config-CM_AlRlT.cjs';
|
|
4
4
|
import { A as AnyDatabaseProvider } from '../config-CBTr4IhE.cjs';
|
|
5
|
-
import { d as WorkflowContext } from '../context-
|
|
6
|
-
export { e as WorkflowBranchConfig, W as WorkflowBranchContextOf, a as WorkflowContextOf, f as WorkflowLoopConfig, b as WorkflowLoopContextOf, g as WorkflowStepConfig, h as WorkflowStepContext, c as WorkflowStepContextOf, i as WorkflowTryConfig, j as WorkflowTryStepConfig } from '../context-
|
|
5
|
+
import { d as WorkflowContext } from '../context-1BFHhiTs.cjs';
|
|
6
|
+
export { e as WorkflowBranchConfig, W as WorkflowBranchContextOf, a as WorkflowContextOf, f as WorkflowLoopConfig, b as WorkflowLoopContextOf, g as WorkflowStepConfig, h as WorkflowStepContext, c as WorkflowStepContextOf, i as WorkflowTryConfig, j as WorkflowTryStepConfig } from '../context-1BFHhiTs.cjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import '@rivetkit/rivetkit-wasm';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WorkflowErrorEvent } from '@rivetkit/workflow-engine';
|
|
2
2
|
export { Loop, TryBlockCatchKind, TryBlockConfig, TryBlockFailure, TryBlockResult, TryStepCatchKind, TryStepConfig, TryStepFailure, TryStepResult, WorkflowError, WorkflowErrorEvent } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext } from '../config-
|
|
3
|
+
import { E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext } from '../config-DcUqgwcz.js';
|
|
4
4
|
import { A as AnyDatabaseProvider } from '../config-CBTr4IhE.js';
|
|
5
|
-
import { d as WorkflowContext } from '../context-
|
|
6
|
-
export { e as WorkflowBranchConfig, W as WorkflowBranchContextOf, a as WorkflowContextOf, f as WorkflowLoopConfig, b as WorkflowLoopContextOf, g as WorkflowStepConfig, h as WorkflowStepContext, c as WorkflowStepContextOf, i as WorkflowTryConfig, j as WorkflowTryStepConfig } from '../context-
|
|
5
|
+
import { d as WorkflowContext } from '../context-Bws3ikEx.js';
|
|
6
|
+
export { e as WorkflowBranchConfig, W as WorkflowBranchContextOf, a as WorkflowContextOf, f as WorkflowLoopConfig, b as WorkflowLoopContextOf, g as WorkflowStepConfig, h as WorkflowStepContext, c as WorkflowStepContextOf, i as WorkflowTryConfig, j as WorkflowTryStepConfig } from '../context-Bws3ikEx.js';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import '@rivetkit/rivetkit-wasm';
|
|
9
9
|
import 'zod';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZT7GZRFQ.js";
|
|
4
|
+
import "../chunk-4YUA7CTJ.js";
|
|
5
|
+
import "../chunk-L3LCIZBH.js";
|
|
6
6
|
import {
|
|
7
7
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
8
8
|
defineRunHandler
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-A7Q5DJ2P.js";
|
|
10
10
|
import {
|
|
11
11
|
makeWorkflowKey,
|
|
12
12
|
workflowStoragePrefix
|
|
13
13
|
} from "../chunk-A2CF6PFH.js";
|
|
14
14
|
import {
|
|
15
15
|
stringifyError
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-IIB4ZPZI.js";
|
|
17
17
|
import {
|
|
18
18
|
RivetError,
|
|
19
19
|
isActorAbortedError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivetkit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Lightweight libraries for building stateful actors on edge platforms",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -211,15 +211,15 @@
|
|
|
211
211
|
"@hono/zod-openapi": "^1.1.5",
|
|
212
212
|
"@opentelemetry/api": "^1.1.0",
|
|
213
213
|
"@rivetkit/bare-ts": "^0.6.2",
|
|
214
|
-
"@rivetkit/engine-api-full": "3.0.
|
|
215
|
-
"@rivetkit/engine-cli": "3.0.
|
|
216
|
-
"@rivetkit/engine-envoy-protocol": "3.0.
|
|
214
|
+
"@rivetkit/engine-api-full": "3.0.4",
|
|
215
|
+
"@rivetkit/engine-cli": "3.0.4",
|
|
216
|
+
"@rivetkit/engine-envoy-protocol": "3.0.4",
|
|
217
217
|
"@rivetkit/on-change": "6.0.1",
|
|
218
|
-
"@rivetkit/rivetkit-napi": "3.0.
|
|
219
|
-
"@rivetkit/rivetkit-wasm": "3.0.
|
|
220
|
-
"@rivetkit/traces": "3.0.
|
|
221
|
-
"@rivetkit/virtual-websocket": "3.0.
|
|
222
|
-
"@rivetkit/workflow-engine": "3.0.
|
|
218
|
+
"@rivetkit/rivetkit-napi": "3.0.4",
|
|
219
|
+
"@rivetkit/rivetkit-wasm": "3.0.4",
|
|
220
|
+
"@rivetkit/traces": "3.0.4",
|
|
221
|
+
"@rivetkit/virtual-websocket": "3.0.4",
|
|
222
|
+
"@rivetkit/workflow-engine": "3.0.4",
|
|
223
223
|
"cbor-x": "^1.6.0",
|
|
224
224
|
"drizzle-orm": "0.45.2",
|
|
225
225
|
"hono": "^4.7.0",
|
package/src/actor/config.ts
CHANGED
|
@@ -376,6 +376,7 @@ export interface Conn<
|
|
|
376
376
|
> {
|
|
377
377
|
id: string;
|
|
378
378
|
params: TConnParams;
|
|
379
|
+
/** @deprecated Connection state is deprecated and will be removed in a future version. Track live connections in `c.vars` from `onConnect` and `onDisconnect`, and store durable per-connection data in SQLite. See https://rivet.dev/actors/docs/deprecated/state#connection-state */
|
|
379
380
|
state: TConnState;
|
|
380
381
|
isHibernatable: boolean;
|
|
381
382
|
send(name: string, ...args: any[]): void;
|
|
@@ -398,6 +399,7 @@ export interface ActorContext<
|
|
|
398
399
|
[ACTOR_CONTEXT_INTERNAL_SYMBOL]?: unknown;
|
|
399
400
|
/** Returns the raw unwrapped state without the write-through proxy. */
|
|
400
401
|
[RAW_STATE_SYMBOL](): TState;
|
|
402
|
+
/** @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state */
|
|
401
403
|
state: TState;
|
|
402
404
|
vars: TVars;
|
|
403
405
|
/**
|
|
@@ -437,6 +439,7 @@ export interface ActorContext<
|
|
|
437
439
|
/** @deprecated No-op. Always returns `false`. Use `keepAwake(promise)` or `waitUntil(promise)` instead. Will be removed in 2.2.0. */
|
|
438
440
|
readonly preventSleep: boolean;
|
|
439
441
|
broadcast(name: string, ...args: any[]): void;
|
|
442
|
+
/** @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state */
|
|
440
443
|
saveState(opts?: { immediate?: boolean; maxWait?: number }): Promise<void>;
|
|
441
444
|
keepAwake<T>(promise: Promise<T>): Promise<T>;
|
|
442
445
|
waitUntil(promise: Promise<unknown>): void;
|
|
@@ -1295,6 +1298,7 @@ export type GlobalActorOptionsInput = z.input<typeof GlobalActorOptionsSchema>;
|
|
|
1295
1298
|
const InstanceActorOptionsBaseSchema = z
|
|
1296
1299
|
.object({
|
|
1297
1300
|
createVarsTimeout: z.number().positive().default(5000),
|
|
1301
|
+
/** @deprecated Connection state is deprecated and will be removed in a future version. Track live connections in `c.vars` from `onConnect` and `onDisconnect`, and store durable per-connection data in SQLite. See https://rivet.dev/actors/docs/deprecated/state#connection-state */
|
|
1298
1302
|
createConnStateTimeout: z.number().positive().default(5000),
|
|
1299
1303
|
onBeforeConnectTimeout: z.number().positive().default(5000),
|
|
1300
1304
|
onConnectTimeout: z.number().positive().default(5000),
|
|
@@ -1307,6 +1311,7 @@ const InstanceActorOptionsBaseSchema = z
|
|
|
1307
1311
|
onDestroyTimeout: z.number().positive().optional(),
|
|
1308
1312
|
/** @deprecated `waitUntilTimeout` is folded into `sleepGracePeriod`, which now bounds the entire graceful shutdown window for both sleep and destroy. Will be removed in 2.2.0. */
|
|
1309
1313
|
waitUntilTimeout: z.number().positive().optional(),
|
|
1314
|
+
/** @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state */
|
|
1310
1315
|
stateSaveInterval: z.number().positive().default(1_000),
|
|
1311
1316
|
actionTimeout: z.number().positive().default(60_000),
|
|
1312
1317
|
connectionLivenessTimeout: z.number().positive().default(2500),
|
|
@@ -1430,8 +1435,12 @@ type CreateState<
|
|
|
1430
1435
|
TEvents extends EventSchemaConfig,
|
|
1431
1436
|
TQueues extends QueueSchemaConfig,
|
|
1432
1437
|
> =
|
|
1433
|
-
| { state: TState }
|
|
1434
1438
|
| {
|
|
1439
|
+
/** @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state */
|
|
1440
|
+
state: TState;
|
|
1441
|
+
}
|
|
1442
|
+
| {
|
|
1443
|
+
/** @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state */
|
|
1435
1444
|
createState: (
|
|
1436
1445
|
c: CreateContext<TState, TInput, TDatabase, TEvents, TQueues>,
|
|
1437
1446
|
input: TInput,
|
|
@@ -1455,8 +1464,12 @@ type CreateConnState<
|
|
|
1455
1464
|
TEvents extends EventSchemaConfig,
|
|
1456
1465
|
TQueues extends QueueSchemaConfig,
|
|
1457
1466
|
> =
|
|
1458
|
-
| { connState: TConnState }
|
|
1459
1467
|
| {
|
|
1468
|
+
/** @deprecated Connection state is deprecated and will be removed in a future version. Track live connections in `c.vars` from `onConnect` and `onDisconnect`, and store durable per-connection data in SQLite. See https://rivet.dev/actors/docs/deprecated/state#connection-state */
|
|
1469
|
+
connState: TConnState;
|
|
1470
|
+
}
|
|
1471
|
+
| {
|
|
1472
|
+
/** @deprecated Connection state is deprecated and will be removed in a future version. Track live connections in `c.vars` from `onConnect` and `onDisconnect`, and store durable per-connection data in SQLite. See https://rivet.dev/actors/docs/deprecated/state#connection-state */
|
|
1460
1473
|
createConnState: (
|
|
1461
1474
|
c: CreateConnStateContext<
|
|
1462
1475
|
TState,
|
|
@@ -1732,6 +1745,7 @@ interface BaseActorConfig<
|
|
|
1732
1745
|
* another onStateChange call, preventing infinite recursion.
|
|
1733
1746
|
*
|
|
1734
1747
|
* @param newState The updated state
|
|
1748
|
+
* @deprecated Actor state is deprecated and will be removed in a future version. Store durable data in SQLite (`c.db`) and in-memory data in `c.vars`. See https://rivet.dev/actors/docs/deprecated/state
|
|
1735
1749
|
*/
|
|
1736
1750
|
onStateChange?: (
|
|
1737
1751
|
c: StateChangeContext<
|