rivetkit 0.0.0-codex-fix-engine-ui-build-base.aec1405 → 0.0.0-codex-rivetkit-cli-preview.5e414a8
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 +16 -0
- package/dist/browser/client.js +2 -2
- 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/actor/errors.d.cts +1 -1
- package/dist/tsup/actor/errors.d.ts +1 -1
- package/dist/tsup/agent-os/index.cjs +1 -1
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +16 -0
- package/dist/tsup/agent-os/index.d.ts +16 -0
- package/dist/tsup/agent-os/index.js +1 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-CMJVDEDE.js → chunk-2QXFHVEN.js} +2 -2
- package/dist/tsup/{chunk-SZHZSNPS.cjs → chunk-6VZXVJYZ.cjs} +5 -5
- package/dist/tsup/{chunk-SZHZSNPS.cjs.map → chunk-6VZXVJYZ.cjs.map} +1 -1
- package/dist/tsup/{chunk-2WQQZFYZ.js → chunk-DPIMKYNB.js} +1 -1
- package/dist/tsup/chunk-DPIMKYNB.js.map +1 -0
- package/dist/tsup/{chunk-HAEJDJSQ.cjs → chunk-DZQGDGIN.cjs} +4 -4
- package/dist/tsup/{chunk-HAEJDJSQ.cjs.map → chunk-DZQGDGIN.cjs.map} +1 -1
- package/dist/tsup/{chunk-IB3DGSJZ.js → chunk-ECFRAMQD.js} +2 -2
- package/dist/tsup/{chunk-PAL2SCK4.cjs → chunk-EHZUN5MG.cjs} +140 -140
- package/dist/tsup/{chunk-PAL2SCK4.cjs.map → chunk-EHZUN5MG.cjs.map} +1 -1
- package/dist/tsup/{chunk-F454HCI7.js → chunk-IGJMQRB4.js} +9 -2
- package/dist/tsup/chunk-IGJMQRB4.js.map +1 -0
- package/dist/tsup/{chunk-IFMTKFQV.js → chunk-J7BFJSYQ.js} +4 -4
- package/dist/tsup/{chunk-EUIYU7BE.js → chunk-L7POWJNK.js} +2 -2
- package/dist/tsup/{chunk-KR36C74E.cjs → chunk-N3LBY42M.cjs} +10 -10
- package/dist/tsup/{chunk-KR36C74E.cjs.map → chunk-N3LBY42M.cjs.map} +1 -1
- package/dist/tsup/{chunk-MWNKF5OP.cjs → chunk-NIY3RSPX.cjs} +1 -1
- package/dist/tsup/chunk-NIY3RSPX.cjs.map +1 -0
- package/dist/tsup/{chunk-ZSJVOE76.cjs → chunk-RAGKYTA7.cjs} +7 -7
- package/dist/tsup/{chunk-ZSJVOE76.cjs.map → chunk-RAGKYTA7.cjs.map} +1 -1
- package/dist/tsup/{chunk-PT6PN7RZ.js → chunk-SQIH25ZX.js} +3 -3
- package/dist/tsup/{chunk-RGV6A7NC.cjs → chunk-TT4OKZXC.cjs} +3 -3
- package/dist/tsup/{chunk-RGV6A7NC.cjs.map → chunk-TT4OKZXC.cjs.map} +1 -1
- package/dist/tsup/{chunk-DCAQEZO6.cjs → chunk-TVLFO27D.cjs} +10 -3
- package/dist/tsup/chunk-TVLFO27D.cjs.map +1 -0
- package/dist/tsup/{chunk-DF4LSVO4.js → chunk-V7XWYC4T.js} +5 -5
- package/dist/tsup/{chunk-DF4LSVO4.js.map → chunk-V7XWYC4T.js.map} +1 -1
- package/dist/tsup/client/mod.cjs +6 -6
- package/dist/tsup/client/mod.d.cts +3 -3
- package/dist/tsup/client/mod.d.ts +3 -3
- package/dist/tsup/client/mod.js +5 -5
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-DJU_K3QZ.d.ts → config-BxWAw3iH.d.ts} +17 -1
- package/dist/tsup/{config-B7TlE3x5.d.cts → config-CZQQ-mso.d.cts} +17 -1
- package/dist/tsup/{context-CWRUBQJc.d.cts → context-Bw7xq8w3.d.cts} +1 -1
- package/dist/tsup/{context-BsCziuYX.d.ts → context-D8QA76sV.d.ts} +1 -1
- package/dist/tsup/dynamic/mod.cjs +2 -2
- package/dist/tsup/dynamic/mod.d.cts +2 -2
- package/dist/tsup/dynamic/mod.d.ts +2 -2
- 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-tab/mod.cjs +2 -2
- package/dist/tsup/inspector-tab/mod.d.cts +3 -3
- package/dist/tsup/inspector-tab/mod.d.ts +3 -3
- package/dist/tsup/inspector-tab/mod.js +1 -1
- package/dist/tsup/mod.cjs +130 -79
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +4 -4
- package/dist/tsup/mod.d.ts +4 -4
- package/dist/tsup/mod.js +63 -12
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +9 -9
- package/dist/tsup/test/mod.d.cts +2 -2
- package/dist/tsup/test/mod.d.ts +2 -2
- package/dist/tsup/test/mod.js +5 -5
- package/dist/tsup/{utils-DVekpm4I.d.cts → utils-DQosb24I.d.cts} +1 -1
- package/dist/tsup/{utils-DVekpm4I.d.ts → utils-DQosb24I.d.ts} +1 -1
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.d.cts +1 -1
- package/dist/tsup/utils.d.ts +1 -1
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +11 -11
- package/dist/tsup/workflow/mod.d.cts +4 -4
- package/dist/tsup/workflow/mod.d.ts +4 -4
- package/dist/tsup/workflow/mod.js +5 -5
- package/package.json +8 -8
- package/src/actor/config.ts +8 -0
- package/src/actor/instance/mod.ts +4 -4
- package/src/actor/mod.ts +2 -0
- package/src/common/engine.ts +28 -1
- package/src/engine-client/actor-http-client.ts +2 -2
- package/src/registry/config/index.ts +37 -7
- package/src/registry/index.ts +4 -2
- package/src/registry/native.ts +37 -7
- package/src/registry/runtime.ts +4 -0
- package/src/utils/env-vars.ts +6 -0
- package/dist/tsup/chunk-2WQQZFYZ.js.map +0 -1
- package/dist/tsup/chunk-DCAQEZO6.cjs.map +0 -1
- package/dist/tsup/chunk-F454HCI7.js.map +0 -1
- package/dist/tsup/chunk-MWNKF5OP.cjs.map +0 -1
- /package/dist/tsup/{chunk-CMJVDEDE.js.map → chunk-2QXFHVEN.js.map} +0 -0
- /package/dist/tsup/{chunk-IB3DGSJZ.js.map → chunk-ECFRAMQD.js.map} +0 -0
- /package/dist/tsup/{chunk-IFMTKFQV.js.map → chunk-J7BFJSYQ.js.map} +0 -0
- /package/dist/tsup/{chunk-EUIYU7BE.js.map → chunk-L7POWJNK.js.map} +0 -0
- /package/dist/tsup/{chunk-PT6PN7RZ.js.map → chunk-SQIH25ZX.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 event, a_ as getRunFunction, a$ as getRunInspectorConfig, b0 as getRunMetadata, b1 as isStaticActorDefinition, b2 as isStaticActorInstance, b3 as lookupInRegistry, b4 as queue, b5 as setup, b6 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-CZQQ-mso.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 event, a_ as getRunFunction, a$ as getRunInspectorConfig, b0 as getRunMetadata, b1 as isStaticActorDefinition, b2 as isStaticActorInstance, b3 as lookupInRegistry, b4 as queue, b5 as setup, b6 as test } from './config-CZQQ-mso.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
|
-
export { R as ActorError, R as RivetError, U as UserError,
|
|
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-DQosb24I.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-Bw7xq8w3.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 event, a_ as getRunFunction, a$ as getRunInspectorConfig, b0 as getRunMetadata, b1 as isStaticActorDefinition, b2 as isStaticActorInstance, b3 as lookupInRegistry, b4 as queue, b5 as setup, b6 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-BxWAw3iH.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 event, a_ as getRunFunction, a$ as getRunInspectorConfig, b0 as getRunMetadata, b1 as isStaticActorDefinition, b2 as isStaticActorInstance, b3 as lookupInRegistry, b4 as queue, b5 as setup, b6 as test } from './config-BxWAw3iH.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
|
-
export { R as ActorError, R as RivetError, U as UserError,
|
|
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-DQosb24I.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-D8QA76sV.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-2QXFHVEN.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getRunFunction,
|
|
10
10
|
getRunInspectorConfig,
|
|
11
11
|
getRunMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DPIMKYNB.js";
|
|
13
13
|
import {
|
|
14
14
|
ALLOWED_PUBLIC_HEADERS,
|
|
15
15
|
HEADER_CONN_PARAMS,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getDatacenters,
|
|
20
20
|
tryParseEndpoint,
|
|
21
21
|
updateRunnerConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V7XWYC4T.js";
|
|
23
23
|
import {
|
|
24
24
|
KEYS,
|
|
25
25
|
makePrefixedKey,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
assertJsonCompatValue,
|
|
33
33
|
decodeCborCompat,
|
|
34
34
|
encodeCborCompat
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ECFRAMQD.js";
|
|
36
36
|
import "./chunk-JZ7TWV65.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-L7POWJNK.js";
|
|
38
38
|
import {
|
|
39
39
|
LogLevelSchema,
|
|
40
40
|
VERSION,
|
|
@@ -51,6 +51,8 @@ import {
|
|
|
51
51
|
getRivetPublicEndpoint,
|
|
52
52
|
getRivetPublicToken,
|
|
53
53
|
getRivetRunEngine,
|
|
54
|
+
getRivetRunEngineHost,
|
|
55
|
+
getRivetRunEnginePort,
|
|
54
56
|
getRivetRunEngineVersion,
|
|
55
57
|
getRivetToken,
|
|
56
58
|
getRivetTotalSlots,
|
|
@@ -59,7 +61,7 @@ import {
|
|
|
59
61
|
noopNext,
|
|
60
62
|
stringifyError,
|
|
61
63
|
toUint8Array
|
|
62
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-IGJMQRB4.js";
|
|
63
65
|
import {
|
|
64
66
|
INTERNAL_ERROR_CODE,
|
|
65
67
|
RivetError,
|
|
@@ -360,8 +362,23 @@ var InlineWebSocketAdapter = class {
|
|
|
360
362
|
import { Hono } from "hono";
|
|
361
363
|
|
|
362
364
|
// src/common/engine.ts
|
|
365
|
+
var ENGINE_HOST = "127.0.0.1";
|
|
363
366
|
var ENGINE_PORT = 6420;
|
|
364
|
-
var ENGINE_ENDPOINT =
|
|
367
|
+
var ENGINE_ENDPOINT = buildEngineEndpoint(ENGINE_HOST, ENGINE_PORT);
|
|
368
|
+
function buildEngineEndpoint(host, port) {
|
|
369
|
+
const urlHost = host.includes(":") && !host.startsWith("[") ? `[${host}]` : host;
|
|
370
|
+
return `http://${urlHost}:${port}`;
|
|
371
|
+
}
|
|
372
|
+
function isLocalEngineEndpoint(endpoint) {
|
|
373
|
+
let url;
|
|
374
|
+
try {
|
|
375
|
+
url = new URL(endpoint);
|
|
376
|
+
} catch {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
const hostname = url.hostname.toLowerCase();
|
|
380
|
+
return hostname === "localhost" || hostname === "0.0.0.0" || hostname === "::" || hostname === "[::]" || hostname === "::1" || hostname === "[::1]" || /^127(?:\.\d{1,3}){0,3}$/.test(hostname);
|
|
381
|
+
}
|
|
365
382
|
|
|
366
383
|
// src/registry/log.ts
|
|
367
384
|
function logger2() {
|
|
@@ -821,6 +838,18 @@ var RegistryConfigSchema = z3.object({
|
|
|
821
838
|
* Starts the full Rust engine process locally.
|
|
822
839
|
*/
|
|
823
840
|
startEngine: z3.boolean().default(() => getRivetRunEngine()),
|
|
841
|
+
/**
|
|
842
|
+
* @experimental
|
|
843
|
+
*
|
|
844
|
+
* Host to bind the spawned local engine process to.
|
|
845
|
+
*/
|
|
846
|
+
engineHost: z3.string().optional().default(() => getRivetRunEngineHost() ?? ENGINE_HOST),
|
|
847
|
+
/**
|
|
848
|
+
* @experimental
|
|
849
|
+
*
|
|
850
|
+
* Port to bind the spawned local engine process to.
|
|
851
|
+
*/
|
|
852
|
+
enginePort: z3.number().int().min(1).max(65535).optional().default(() => getRivetRunEnginePort() ?? ENGINE_PORT),
|
|
824
853
|
/** @experimental */
|
|
825
854
|
engineVersion: z3.string().optional().default(() => getRivetRunEngineVersion() ?? VERSION),
|
|
826
855
|
/**
|
|
@@ -898,7 +927,11 @@ var RegistryConfigSchema = z3.object({
|
|
|
898
927
|
message: "configurePool requires either endpoint or startEngine"
|
|
899
928
|
});
|
|
900
929
|
}
|
|
901
|
-
const
|
|
930
|
+
const localEngineEndpoint = buildEngineEndpoint(
|
|
931
|
+
config.engineHost,
|
|
932
|
+
config.enginePort
|
|
933
|
+
);
|
|
934
|
+
const endpoint = config.startEngine ? localEngineEndpoint : (parsedEndpoint == null ? void 0 : parsedEndpoint.endpoint) ?? (isDevEnv ? buildEngineEndpoint(ENGINE_HOST, ENGINE_PORT) : void 0);
|
|
902
935
|
const validateServerlessEndpoint = Boolean(
|
|
903
936
|
config.startEngine || parsedEndpoint
|
|
904
937
|
);
|
|
@@ -915,7 +948,7 @@ var RegistryConfigSchema = z3.object({
|
|
|
915
948
|
path: ["serverless", "publicEndpoint"]
|
|
916
949
|
});
|
|
917
950
|
}
|
|
918
|
-
const publicEndpoint = (parsedPublicEndpoint == null ? void 0 : parsedPublicEndpoint.endpoint) ?? (isDevEnv && config.startEngine ?
|
|
951
|
+
const publicEndpoint = (parsedPublicEndpoint == null ? void 0 : parsedPublicEndpoint.endpoint) ?? (isDevEnv && config.startEngine ? endpoint : void 0);
|
|
919
952
|
const publicNamespace = parsedPublicEndpoint == null ? void 0 : parsedPublicEndpoint.namespace;
|
|
920
953
|
const publicToken = (parsedPublicEndpoint == null ? void 0 : parsedPublicEndpoint.token) ?? config.serverless.publicToken;
|
|
921
954
|
return {
|
|
@@ -2783,6 +2816,9 @@ function decodeValue(value) {
|
|
|
2783
2816
|
function encodeValue(value) {
|
|
2784
2817
|
return encodeCborCompat(value);
|
|
2785
2818
|
}
|
|
2819
|
+
function normalizeArgs(value) {
|
|
2820
|
+
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
2821
|
+
}
|
|
2786
2822
|
function unwrapTsfnPayload(error, payload) {
|
|
2787
2823
|
if (error !== null && error !== void 0) {
|
|
2788
2824
|
throw error;
|
|
@@ -3045,7 +3081,7 @@ function wrapNativeCallback(callback) {
|
|
|
3045
3081
|
}
|
|
3046
3082
|
function decodeArgs(value) {
|
|
3047
3083
|
const decoded = decodeValue(value);
|
|
3048
|
-
return
|
|
3084
|
+
return normalizeArgs(decoded);
|
|
3049
3085
|
}
|
|
3050
3086
|
function buildRequest(init) {
|
|
3051
3087
|
const url = init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString();
|
|
@@ -5095,13 +5131,26 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5095
5131
|
);
|
|
5096
5132
|
}
|
|
5097
5133
|
const body = await jsRequest.json();
|
|
5134
|
+
if (body.args !== void 0 && body.properties !== void 0) {
|
|
5135
|
+
return jsonResponse(
|
|
5136
|
+
{ error: "use either args or properties, not both" },
|
|
5137
|
+
{ status: 400 }
|
|
5138
|
+
);
|
|
5139
|
+
}
|
|
5140
|
+
if (body.properties !== void 0 && (body.properties === null || typeof body.properties !== "object" || Array.isArray(body.properties))) {
|
|
5141
|
+
return jsonResponse(
|
|
5142
|
+
{ error: "properties must be an object" },
|
|
5143
|
+
{ status: 400 }
|
|
5144
|
+
);
|
|
5145
|
+
}
|
|
5146
|
+
const args = body.properties !== void 0 ? [body.properties] : normalizeArgs(body.args);
|
|
5098
5147
|
try {
|
|
5099
5148
|
const output = await action(
|
|
5100
5149
|
actorCtx,
|
|
5101
5150
|
...validateActionArgs(
|
|
5102
5151
|
schemaConfig.actionInputSchemas,
|
|
5103
5152
|
actionName,
|
|
5104
|
-
|
|
5153
|
+
args
|
|
5105
5154
|
)
|
|
5106
5155
|
);
|
|
5107
5156
|
return jsonResponse({ output });
|
|
@@ -5720,6 +5769,8 @@ async function buildServeConfig(config) {
|
|
|
5720
5769
|
if (config.startEngine) {
|
|
5721
5770
|
const { getEnginePath } = await loadEngineCli();
|
|
5722
5771
|
serveConfig.engineBinaryPath = getEnginePath();
|
|
5772
|
+
serveConfig.engineHost = config.engineHost;
|
|
5773
|
+
serveConfig.enginePort = config.enginePort;
|
|
5723
5774
|
}
|
|
5724
5775
|
if ((_a = config.test) == null ? void 0 : _a.enabled) {
|
|
5725
5776
|
serveConfig.inspectorTestToken = getEnvUniversal("_RIVET_TEST_INSPECTOR_TOKEN") ?? "token";
|
|
@@ -6282,7 +6333,7 @@ var Registry = class {
|
|
|
6282
6333
|
logLine("Namespace", config.namespace);
|
|
6283
6334
|
}
|
|
6284
6335
|
if (config.endpoint) {
|
|
6285
|
-
const endpointType = config.
|
|
6336
|
+
const endpointType = config.startEngine || isLocalEngineEndpoint(config.endpoint) ? "local native" : "remote";
|
|
6286
6337
|
logLine("Endpoint", `${config.endpoint} (${endpointType})`);
|
|
6287
6338
|
}
|
|
6288
6339
|
if (kind === "serverless" && config.publicEndpoint) {
|