rivetkit 2.3.3-rc.1 → 2.3.3-rc.2
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 +1 -0
- package/dist/browser/client.js +9 -6
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.d.ts +22 -2
- package/dist/browser/inspector/client.js +996 -222
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +9 -6
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +1 -0
- package/dist/tsup/agent-os/index.d.ts +1 -0
- package/dist/tsup/agent-os/index.js +9 -6
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-KVSK67EL.cjs → chunk-6JRGYOBR.cjs} +18 -10
- package/dist/tsup/chunk-6JRGYOBR.cjs.map +1 -0
- package/dist/tsup/{chunk-TXO4XNNB.js → chunk-CLQHFXG3.js} +2 -2
- package/dist/tsup/{chunk-VEJGWALU.cjs → chunk-GRXM3FQX.cjs} +3 -3
- package/dist/tsup/{chunk-VEJGWALU.cjs.map → chunk-GRXM3FQX.cjs.map} +1 -1
- package/dist/tsup/{chunk-T5YE5THK.cjs → chunk-LIZO2BE3.cjs} +24 -4
- package/dist/tsup/chunk-LIZO2BE3.cjs.map +1 -0
- package/dist/tsup/{chunk-EIB2XNTL.js → chunk-OUIOGTEL.js} +12 -4
- package/dist/tsup/chunk-OUIOGTEL.js.map +1 -0
- package/dist/tsup/{chunk-CN4IAGVP.cjs → chunk-Q3DY23PN.cjs} +141 -141
- package/dist/tsup/{chunk-CN4IAGVP.cjs.map → chunk-Q3DY23PN.cjs.map} +1 -1
- package/dist/tsup/{chunk-J7NGTEDW.js → chunk-Q6EIXJ2L.js} +3 -3
- package/dist/tsup/{chunk-GMD47RV5.cjs → chunk-QIRZKXPN.cjs} +5 -5
- package/dist/tsup/{chunk-GMD47RV5.cjs.map → chunk-QIRZKXPN.cjs.map} +1 -1
- package/dist/tsup/{chunk-3UWWME7J.js → chunk-QRPFFGZB.js} +22 -2
- package/dist/tsup/chunk-QRPFFGZB.js.map +1 -0
- package/dist/tsup/{chunk-CFVNICL7.cjs → chunk-QXKIL5NU.cjs} +7 -7
- package/dist/tsup/{chunk-CFVNICL7.cjs.map → chunk-QXKIL5NU.cjs.map} +1 -1
- package/dist/tsup/{chunk-MLFI5BLT.cjs → chunk-SNTYTMHE.cjs} +12 -8
- package/dist/tsup/chunk-SNTYTMHE.cjs.map +1 -0
- package/dist/tsup/{chunk-2ZBWR7HC.js → chunk-URLGKL2B.js} +2 -2
- package/dist/tsup/{chunk-D5KMS3WU.js → chunk-VPKNVMUA.js} +11 -7
- package/dist/tsup/chunk-VPKNVMUA.js.map +1 -0
- package/dist/tsup/{chunk-VNWYKWBM.js → chunk-ZEBW32PT.js} +7 -7
- package/dist/tsup/client/mod.cjs +7 -7
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +6 -6
- package/dist/tsup/common/log.cjs +4 -2
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +5 -1
- package/dist/tsup/common/log.d.ts +5 -1
- package/dist/tsup/common/log.js +5 -3
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-CzvopP5m.d.cts → config-BfBhjEbk.d.cts} +1 -0
- package/dist/tsup/{config-DZuT7tcp.d.ts → config-ZkIsRFsN.d.ts} +1 -0
- package/dist/tsup/{context-CyAdY-aA.d.ts → context-B7-84u9K.d.ts} +2 -1
- package/dist/tsup/{context-sNB28g0N.d.cts → context-sZ9GlaBK.d.cts} +2 -1
- package/dist/tsup/dynamic/mod.d.cts +1 -1
- package/dist/tsup/dynamic/mod.d.ts +1 -1
- package/dist/tsup/inspector/mod.cjs +46 -11
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +37 -15
- package/dist/tsup/inspector/mod.d.ts +37 -15
- package/dist/tsup/inspector/mod.js +45 -10
- package/dist/tsup/inspector/mod.js.map +1 -1
- package/dist/tsup/inspector-tab/mod.cjs +1 -12
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
- package/dist/tsup/inspector-tab/mod.d.cts +3 -13
- package/dist/tsup/inspector-tab/mod.d.ts +3 -13
- package/dist/tsup/inspector-tab/mod.js +0 -11
- package/dist/tsup/inspector-tab/mod.js.map +1 -1
- package/dist/tsup/mod.cjs +121 -62
- 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 +66 -7
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +10 -10
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +6 -6
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +10 -7
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +7 -4
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +8 -8
- package/src/common/bare/generated/inspector/v5.ts +1016 -0
- package/src/common/bare/transport/v1.ts +36 -0
- package/src/common/log.ts +14 -8
- package/src/inspector/client.browser.ts +73 -16
- package/src/inspector/mod.ts +1 -1
- package/src/inspector-tab/mod.ts +0 -15
- package/src/registry/index.ts +4 -0
- package/src/registry/napi-runtime.ts +11 -0
- package/src/registry/native.ts +70 -2
- package/src/registry/runtime.ts +1 -0
- package/src/registry/wasm-runtime.ts +5 -0
- package/src/workflow/context.ts +4 -0
- package/src/workflow/inspector.ts +8 -0
- package/dist/tsup/chunk-3UWWME7J.js.map +0 -1
- package/dist/tsup/chunk-D5KMS3WU.js.map +0 -1
- package/dist/tsup/chunk-EIB2XNTL.js.map +0 -1
- package/dist/tsup/chunk-KVSK67EL.cjs.map +0 -1
- package/dist/tsup/chunk-MLFI5BLT.cjs.map +0 -1
- package/dist/tsup/chunk-T5YE5THK.cjs.map +0 -1
- /package/dist/tsup/{chunk-TXO4XNNB.js.map → chunk-CLQHFXG3.js.map} +0 -0
- /package/dist/tsup/{chunk-J7NGTEDW.js.map → chunk-Q6EIXJ2L.js.map} +0 -0
- /package/dist/tsup/{chunk-2ZBWR7HC.js.map → chunk-URLGKL2B.js.map} +0 -0
- /package/dist/tsup/{chunk-VNWYKWBM.js.map → chunk-ZEBW32PT.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 Actions, m as ActorConfig, n as ActorConfigInput, o as ActorConfigSchema, p as ActorContext, q as ActorContextOf, r as ActorDefinition, s as ActorInspectorConfig, t as ActorInspectorConfigSchema, u as ActorKey, v as ActorKv, w as ActorLogger, x as ActorOptions, y as ActorOptionsInput, z as ActorOptionsSchema, F as ActorQuery, G as ActorQueue, H as ActorSchedule, I as ActorTypes, J as ActorsSchema, K as AnyActorInstance, L as AnyClient, N as AnyConn, O as AnyStaticActorDefinition, P as AnyStaticActorInstance, T as AuthIntent, U as BUILTIN_INSPECTOR_TAB_IDS, V as BaseActorInstance, X as BuiltinInspectorTabIdSchema, Y as CONN_DRIVER_SYMBOL, Z as CONN_STATE_MANAGER_SYMBOL, _ as Client, $ as Conn, a0 as CustomInspectorTabEntrySchema, a1 as DEFAULT_SLEEP_GRACE_PERIOD, a2 as DocActorConfigSchema, a3 as DocActorOptionsSchema, a4 as DocConfigurePoolSchema, a5 as DocEnvoyConfigSchema, a6 as DocRegistryConfigSchema, a7 as DocServerlessConfigSchema, a8 as DocSqliteConfigSchema, a9 as Encoding, aa as FetchHandler, ab as GlobalActorOptions, ac as GlobalActorOptionsInput, ad as GlobalActorOptionsSchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema, ag as InspectorUnsubscribe, ah as InstanceActorOptions, ai as InstanceActorOptionsInput, aj as InstanceActorOptionsSchema, ak as QueueEnqueueAndWaitOptions, al as QueueFilterName, am as QueueIterOptions, an as QueueMessageOf, ao as QueueName, ap as QueueNextBatchOptions, aq as QueueNextOptions, ar as QueueResultMessageForName, as as QueueTryNextBatchOptions, at as QueueTryNextOptions, au as QueueWaitOptions, av as RAW_STATE_SYMBOL, aw as RUN_FUNCTION_CONFIG_SYMBOL, ax as Registry, ay as RegistryActors, az as RegistryConfig, aA as RegistryConfigInput, aB as RegistryConfigSchema, aC as RegistryDeps, aD as RegistryRoutes, aE as RunConfig, aF as RunConfigSchema, aG as RunInspectorConfig, aH as RuntimeKind, aI as RuntimeKindSchema, aJ as ServerlessHandler, aK as SqliteBackend, aL as SqliteBackendSchema, aM as SqliteConfig, aN as SqliteConfigSchema, aO as TestConfig, aP as TestConfigSchema, aQ as Type, aR as WasmRuntimeBindings, aS as WasmRuntimeConfig, aT as WasmRuntimeConfigSchema, aU as WasmRuntimeInitInput, aV as WorkflowInspectorConfig, aW as actor, aX as buildActorNames, aY as createClientWithDriver, aZ as disposeRunInspector, a_ as event, a$ as getRunFunction, b0 as getRunInspectorConfig, b1 as getRunMetadata, b2 as isStaticActorDefinition, b3 as isStaticActorInstance, b4 as lookupInRegistry, b5 as queue, b6 as setup, b7 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-BfBhjEbk.cjs';
|
|
2
|
+
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as Actions, m as ActorConfig, n as ActorConfigInput, o as ActorConfigSchema, p as ActorContext, q as ActorContextOf, r as ActorDefinition, s as ActorInspectorConfig, t as ActorInspectorConfigSchema, u as ActorKey, v as ActorKv, w as ActorLogger, x as ActorOptions, y as ActorOptionsInput, z as ActorOptionsSchema, F as ActorQuery, G as ActorQueue, H as ActorSchedule, I as ActorTypes, J as ActorsSchema, K as AnyActorInstance, L as AnyClient, N as AnyConn, O as AnyStaticActorDefinition, P as AnyStaticActorInstance, T as AuthIntent, U as BUILTIN_INSPECTOR_TAB_IDS, V as BaseActorInstance, X as BuiltinInspectorTabIdSchema, Y as CONN_DRIVER_SYMBOL, Z as CONN_STATE_MANAGER_SYMBOL, _ as Client, $ as Conn, a0 as CustomInspectorTabEntrySchema, a1 as DEFAULT_SLEEP_GRACE_PERIOD, a2 as DocActorConfigSchema, a3 as DocActorOptionsSchema, a4 as DocConfigurePoolSchema, a5 as DocEnvoyConfigSchema, a6 as DocRegistryConfigSchema, a7 as DocServerlessConfigSchema, a8 as DocSqliteConfigSchema, a9 as Encoding, aa as FetchHandler, ab as GlobalActorOptions, ac as GlobalActorOptionsInput, ad as GlobalActorOptionsSchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema, ag as InspectorUnsubscribe, ah as InstanceActorOptions, ai as InstanceActorOptionsInput, aj as InstanceActorOptionsSchema, ak as QueueEnqueueAndWaitOptions, al as QueueFilterName, am as QueueIterOptions, an as QueueMessageOf, ao as QueueName, ap as QueueNextBatchOptions, aq as QueueNextOptions, ar as QueueResultMessageForName, as as QueueTryNextBatchOptions, at as QueueTryNextOptions, au as QueueWaitOptions, av as RAW_STATE_SYMBOL, aw as RUN_FUNCTION_CONFIG_SYMBOL, ax as Registry, ay as RegistryActors, az as RegistryConfig, aA as RegistryConfigInput, aB as RegistryConfigSchema, aC as RegistryDeps, aD as RegistryRoutes, aE as RunConfig, aF as RunConfigSchema, aG as RunInspectorConfig, aH as RuntimeKind, aI as RuntimeKindSchema, aJ as ServerlessHandler, aK as SqliteBackend, aL as SqliteBackendSchema, aM as SqliteConfig, aN as SqliteConfigSchema, aO as TestConfig, aP as TestConfigSchema, aQ as Type, aR as WasmRuntimeBindings, aS as WasmRuntimeConfig, aT as WasmRuntimeConfigSchema, aU as WasmRuntimeInitInput, aV as WorkflowInspectorConfig, aW as actor, aX as buildActorNames, aY as createClientWithDriver, aZ as disposeRunInspector, a_ as event, a$ as getRunFunction, b0 as getRunInspectorConfig, b1 as getRunMetadata, b2 as isStaticActorDefinition, b3 as isStaticActorInstance, b4 as lookupInRegistry, b5 as queue, b6 as setup, b7 as test } from './config-BfBhjEbk.cjs';
|
|
3
3
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
4
4
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
5
5
|
import { A as AnyDatabaseProvider } from './config-D49x8NpL.cjs';
|
|
6
6
|
export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-CqDnC_PS.cjs';
|
|
7
7
|
import { WSContext } from 'hono/ws';
|
|
8
8
|
export { toUint8Array } from './utils.cjs';
|
|
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-sZ9GlaBK.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 Actions, m as ActorConfig, n as ActorConfigInput, o as ActorConfigSchema, p as ActorContext, q as ActorContextOf, r as ActorDefinition, s as ActorInspectorConfig, t as ActorInspectorConfigSchema, u as ActorKey, v as ActorKv, w as ActorLogger, x as ActorOptions, y as ActorOptionsInput, z as ActorOptionsSchema, F as ActorQuery, G as ActorQueue, H as ActorSchedule, I as ActorTypes, J as ActorsSchema, K as AnyActorInstance, L as AnyClient, N as AnyConn, O as AnyStaticActorDefinition, P as AnyStaticActorInstance, T as AuthIntent, U as BUILTIN_INSPECTOR_TAB_IDS, V as BaseActorInstance, X as BuiltinInspectorTabIdSchema, Y as CONN_DRIVER_SYMBOL, Z as CONN_STATE_MANAGER_SYMBOL, _ as Client, $ as Conn, a0 as CustomInspectorTabEntrySchema, a1 as DEFAULT_SLEEP_GRACE_PERIOD, a2 as DocActorConfigSchema, a3 as DocActorOptionsSchema, a4 as DocConfigurePoolSchema, a5 as DocEnvoyConfigSchema, a6 as DocRegistryConfigSchema, a7 as DocServerlessConfigSchema, a8 as DocSqliteConfigSchema, a9 as Encoding, aa as FetchHandler, ab as GlobalActorOptions, ac as GlobalActorOptionsInput, ad as GlobalActorOptionsSchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema, ag as InspectorUnsubscribe, ah as InstanceActorOptions, ai as InstanceActorOptionsInput, aj as InstanceActorOptionsSchema, ak as QueueEnqueueAndWaitOptions, al as QueueFilterName, am as QueueIterOptions, an as QueueMessageOf, ao as QueueName, ap as QueueNextBatchOptions, aq as QueueNextOptions, ar as QueueResultMessageForName, as as QueueTryNextBatchOptions, at as QueueTryNextOptions, au as QueueWaitOptions, av as RAW_STATE_SYMBOL, aw as RUN_FUNCTION_CONFIG_SYMBOL, ax as Registry, ay as RegistryActors, az as RegistryConfig, aA as RegistryConfigInput, aB as RegistryConfigSchema, aC as RegistryDeps, aD as RegistryRoutes, aE as RunConfig, aF as RunConfigSchema, aG as RunInspectorConfig, aH as RuntimeKind, aI as RuntimeKindSchema, aJ as ServerlessHandler, aK as SqliteBackend, aL as SqliteBackendSchema, aM as SqliteConfig, aN as SqliteConfigSchema, aO as TestConfig, aP as TestConfigSchema, aQ as Type, aR as WasmRuntimeBindings, aS as WasmRuntimeConfig, aT as WasmRuntimeConfigSchema, aU as WasmRuntimeInitInput, aV as WorkflowInspectorConfig, aW as actor, aX as buildActorNames, aY as createClientWithDriver, aZ as disposeRunInspector, a_ as event, a$ as getRunFunction, b0 as getRunInspectorConfig, b1 as getRunMetadata, b2 as isStaticActorDefinition, b3 as isStaticActorInstance, b4 as lookupInRegistry, b5 as queue, b6 as setup, b7 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-ZkIsRFsN.js';
|
|
2
|
+
export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as Actions, m as ActorConfig, n as ActorConfigInput, o as ActorConfigSchema, p as ActorContext, q as ActorContextOf, r as ActorDefinition, s as ActorInspectorConfig, t as ActorInspectorConfigSchema, u as ActorKey, v as ActorKv, w as ActorLogger, x as ActorOptions, y as ActorOptionsInput, z as ActorOptionsSchema, F as ActorQuery, G as ActorQueue, H as ActorSchedule, I as ActorTypes, J as ActorsSchema, K as AnyActorInstance, L as AnyClient, N as AnyConn, O as AnyStaticActorDefinition, P as AnyStaticActorInstance, T as AuthIntent, U as BUILTIN_INSPECTOR_TAB_IDS, V as BaseActorInstance, X as BuiltinInspectorTabIdSchema, Y as CONN_DRIVER_SYMBOL, Z as CONN_STATE_MANAGER_SYMBOL, _ as Client, $ as Conn, a0 as CustomInspectorTabEntrySchema, a1 as DEFAULT_SLEEP_GRACE_PERIOD, a2 as DocActorConfigSchema, a3 as DocActorOptionsSchema, a4 as DocConfigurePoolSchema, a5 as DocEnvoyConfigSchema, a6 as DocRegistryConfigSchema, a7 as DocServerlessConfigSchema, a8 as DocSqliteConfigSchema, a9 as Encoding, aa as FetchHandler, ab as GlobalActorOptions, ac as GlobalActorOptionsInput, ad as GlobalActorOptionsSchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema, ag as InspectorUnsubscribe, ah as InstanceActorOptions, ai as InstanceActorOptionsInput, aj as InstanceActorOptionsSchema, ak as QueueEnqueueAndWaitOptions, al as QueueFilterName, am as QueueIterOptions, an as QueueMessageOf, ao as QueueName, ap as QueueNextBatchOptions, aq as QueueNextOptions, ar as QueueResultMessageForName, as as QueueTryNextBatchOptions, at as QueueTryNextOptions, au as QueueWaitOptions, av as RAW_STATE_SYMBOL, aw as RUN_FUNCTION_CONFIG_SYMBOL, ax as Registry, ay as RegistryActors, az as RegistryConfig, aA as RegistryConfigInput, aB as RegistryConfigSchema, aC as RegistryDeps, aD as RegistryRoutes, aE as RunConfig, aF as RunConfigSchema, aG as RunInspectorConfig, aH as RuntimeKind, aI as RuntimeKindSchema, aJ as ServerlessHandler, aK as SqliteBackend, aL as SqliteBackendSchema, aM as SqliteConfig, aN as SqliteConfigSchema, aO as TestConfig, aP as TestConfigSchema, aQ as Type, aR as WasmRuntimeBindings, aS as WasmRuntimeConfig, aT as WasmRuntimeConfigSchema, aU as WasmRuntimeInitInput, aV as WorkflowInspectorConfig, aW as actor, aX as buildActorNames, aY as createClientWithDriver, aZ as disposeRunInspector, a_ as event, a$ as getRunFunction, b0 as getRunInspectorConfig, b1 as getRunMetadata, b2 as isStaticActorDefinition, b3 as isStaticActorInstance, b4 as lookupInRegistry, b5 as queue, b6 as setup, b7 as test } from './config-ZkIsRFsN.js';
|
|
3
3
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
4
4
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
5
5
|
import { A as AnyDatabaseProvider } from './config-D49x8NpL.js';
|
|
6
6
|
export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-CqDnC_PS.js';
|
|
7
7
|
import { WSContext } from 'hono/ws';
|
|
8
8
|
export { toUint8Array } from './utils.js';
|
|
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-B7-84u9K.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-QRPFFGZB.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getDatacenters,
|
|
21
21
|
tryParseEndpoint,
|
|
22
22
|
updateRunnerConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZEBW32PT.js";
|
|
24
24
|
import {
|
|
25
25
|
KEYS,
|
|
26
26
|
makePrefixedKey,
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
assertJsonCompatValue,
|
|
34
34
|
decodeCborCompat,
|
|
35
35
|
encodeCborCompat
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-TXO4XNNB.js";
|
|
36
|
+
} from "./chunk-URLGKL2B.js";
|
|
37
|
+
import "./chunk-CLQHFXG3.js";
|
|
39
38
|
import {
|
|
40
39
|
LogLevelSchema,
|
|
41
40
|
VERSION,
|
|
41
|
+
configureBaseLogger,
|
|
42
42
|
deconstructError,
|
|
43
43
|
getEnvUniversal,
|
|
44
44
|
getLogger,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
parsePortEnv,
|
|
65
65
|
stringifyError,
|
|
66
66
|
toUint8Array
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-VPKNVMUA.js";
|
|
68
68
|
import {
|
|
69
69
|
INTERNAL_ERROR_CODE,
|
|
70
70
|
RivetError,
|
|
@@ -77,6 +77,7 @@ import {
|
|
|
77
77
|
toRivetError,
|
|
78
78
|
unsupportedFeature
|
|
79
79
|
} from "./chunk-ZZ3WBRPD.js";
|
|
80
|
+
import "./chunk-JZ7TWV65.js";
|
|
80
81
|
|
|
81
82
|
// src/actor/log.ts
|
|
82
83
|
function loggerWithoutContext() {
|
|
@@ -1696,6 +1697,9 @@ var NapiCoreRuntime = class {
|
|
|
1696
1697
|
async actorQueueInspectMessages(ctx) {
|
|
1697
1698
|
return await asNativeActorContext(ctx).queue().inspectMessages();
|
|
1698
1699
|
}
|
|
1700
|
+
async actorQueueReset(ctx) {
|
|
1701
|
+
await asNativeActorContext(ctx).queue().reset();
|
|
1702
|
+
}
|
|
1699
1703
|
actorScheduleAfter(ctx, durationMs, actionName, args) {
|
|
1700
1704
|
asNativeActorContext(ctx).schedule().after(durationMs, actionName, toNapiBuffer(args));
|
|
1701
1705
|
}
|
|
@@ -2343,6 +2347,10 @@ var WasmCoreRuntime = class {
|
|
|
2343
2347
|
const queue2 = childHandle(asWasmActorContext(ctx), "queue");
|
|
2344
2348
|
return await callHandleAsync(queue2, "inspectMessages");
|
|
2345
2349
|
}
|
|
2350
|
+
async actorQueueReset(ctx) {
|
|
2351
|
+
const queue2 = childHandle(asWasmActorContext(ctx), "queue");
|
|
2352
|
+
await callHandleAsync(queue2, "reset");
|
|
2353
|
+
}
|
|
2346
2354
|
actorScheduleAfter(ctx, durationMs, actionName, args) {
|
|
2347
2355
|
const schedule = childHandle(asWasmActorContext(ctx), "schedule");
|
|
2348
2356
|
callHandle(schedule, "after", wasmNumber(durationMs), actionName, args);
|
|
@@ -2948,6 +2956,14 @@ function serializeWorkflowEntryKind(kind) {
|
|
|
2948
2956
|
originalName: kind.val.originalName
|
|
2949
2957
|
}
|
|
2950
2958
|
};
|
|
2959
|
+
case "WorkflowVersionCheckEntry":
|
|
2960
|
+
return {
|
|
2961
|
+
tag: kind.tag,
|
|
2962
|
+
val: {
|
|
2963
|
+
resolved: kind.val.resolved,
|
|
2964
|
+
latest: kind.val.latest
|
|
2965
|
+
}
|
|
2966
|
+
};
|
|
2951
2967
|
}
|
|
2952
2968
|
}
|
|
2953
2969
|
function serializeWorkflowHistoryForJson(data) {
|
|
@@ -4859,7 +4875,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
4859
4875
|
}
|
|
4860
4876
|
);
|
|
4861
4877
|
};
|
|
4862
|
-
const isPublicPerActorPath = jsRequest.method === "GET" &&
|
|
4878
|
+
const isPublicPerActorPath = jsRequest.method === "GET" && url.pathname.startsWith("/inspector/custom-tabs/");
|
|
4863
4879
|
if (!isPublicPerActorPath) {
|
|
4864
4880
|
try {
|
|
4865
4881
|
await runtime.actorVerifyInspectorAuth(
|
|
@@ -4935,6 +4951,45 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
4935
4951
|
messages
|
|
4936
4952
|
});
|
|
4937
4953
|
}
|
|
4954
|
+
if (url.pathname === "/inspector/queue" && jsRequest.method === "DELETE") {
|
|
4955
|
+
await runtime.actorQueueReset(ctx);
|
|
4956
|
+
return jsonResponse({});
|
|
4957
|
+
}
|
|
4958
|
+
if (url.pathname === "/inspector/queue" && jsRequest.method === "POST") {
|
|
4959
|
+
let body;
|
|
4960
|
+
try {
|
|
4961
|
+
body = await jsRequest.json();
|
|
4962
|
+
} catch {
|
|
4963
|
+
return errorResponse(
|
|
4964
|
+
new RivetError(
|
|
4965
|
+
"actor",
|
|
4966
|
+
"invalid_request",
|
|
4967
|
+
"Invalid inspector JSON body",
|
|
4968
|
+
{ public: true }
|
|
4969
|
+
),
|
|
4970
|
+
400
|
|
4971
|
+
);
|
|
4972
|
+
}
|
|
4973
|
+
const name = body.name ?? "";
|
|
4974
|
+
if (name === "") {
|
|
4975
|
+
return errorResponse(
|
|
4976
|
+
new RivetError(
|
|
4977
|
+
"actor",
|
|
4978
|
+
"invalid_request",
|
|
4979
|
+
"Queue message name must not be empty",
|
|
4980
|
+
{ public: true }
|
|
4981
|
+
),
|
|
4982
|
+
400
|
|
4983
|
+
);
|
|
4984
|
+
}
|
|
4985
|
+
const cbor = encodeCborCompat(body.body ?? null);
|
|
4986
|
+
const message = await runtime.actorQueueSend(ctx, name, cbor);
|
|
4987
|
+
return jsonResponse({
|
|
4988
|
+
id: message.id().toString(),
|
|
4989
|
+
name: message.name(),
|
|
4990
|
+
createdAtMs: message.createdAt()
|
|
4991
|
+
});
|
|
4992
|
+
}
|
|
4938
4993
|
if (url.pathname === "/inspector/traces" && jsRequest.method === "GET") {
|
|
4939
4994
|
return jsonResponse({ otlp: [], clamped: false });
|
|
4940
4995
|
}
|
|
@@ -5821,7 +5876,11 @@ var Registry = class {
|
|
|
5821
5876
|
#shutdownInFlight = null;
|
|
5822
5877
|
#signalHandlers = {};
|
|
5823
5878
|
constructor(config, deps) {
|
|
5879
|
+
var _a;
|
|
5824
5880
|
this.#config = config;
|
|
5881
|
+
if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
|
|
5882
|
+
configureBaseLogger(config.logging.baseLogger);
|
|
5883
|
+
}
|
|
5825
5884
|
this.#buildConfiguredRegistry = (deps == null ? void 0 : deps.buildConfiguredRegistry) ?? buildConfiguredRegistry;
|
|
5826
5885
|
this.routes = {
|
|
5827
5886
|
health: () => this.#healthRoute(),
|