rivetkit 2.3.0-rc.10 → 2.3.0-rc.11
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 +105 -56
- package/dist/browser/client.js +128 -87
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +40 -20
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/actor/errors.cjs +2 -2
- package/dist/tsup/actor/errors.js +1 -1
- package/dist/tsup/agent-os/index.cjs +2103 -2090
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +106 -66
- package/dist/tsup/agent-os/index.d.ts +106 -66
- package/dist/tsup/agent-os/index.js +2102 -2089
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-4K3MV2MW.cjs → chunk-2NXFKPRB.cjs} +10 -10
- package/dist/tsup/chunk-2NXFKPRB.cjs.map +1 -0
- package/dist/tsup/{chunk-6BI2MS3S.js → chunk-3P2JUHWJ.js} +2 -2
- package/dist/tsup/{chunk-KU6VKVEK.js → chunk-4FP4FFB5.js} +18 -6
- package/dist/tsup/chunk-4FP4FFB5.js.map +1 -0
- package/dist/tsup/{chunk-KIWH5H3K.js → chunk-BRP62GZC.js} +3 -3
- package/dist/tsup/chunk-BRP62GZC.js.map +1 -0
- package/dist/tsup/{chunk-G34LIR7S.js → chunk-GRFBV2U7.js} +22 -7
- package/dist/tsup/chunk-GRFBV2U7.js.map +1 -0
- package/dist/tsup/{chunk-PWFGP2US.cjs → chunk-GX6W4MW3.cjs} +138 -24
- package/dist/tsup/chunk-GX6W4MW3.cjs.map +1 -0
- package/dist/tsup/{chunk-3YY5S6TV.js → chunk-HXUEHHJF.js} +2 -2
- package/dist/tsup/chunk-HXUEHHJF.js.map +1 -0
- package/dist/tsup/{chunk-PCBNKI2J.js → chunk-JZ7TWV65.js} +1 -1
- package/dist/tsup/chunk-JZ7TWV65.js.map +1 -0
- package/dist/tsup/{chunk-QAZLM4WT.cjs → chunk-KORQB2IR.cjs} +3 -3
- package/dist/tsup/{chunk-QAZLM4WT.cjs.map → chunk-KORQB2IR.cjs.map} +1 -1
- package/dist/tsup/{chunk-BM3EOY7M.js → chunk-KRC4L3YB.js} +134 -20
- package/dist/tsup/chunk-KRC4L3YB.js.map +1 -0
- package/dist/tsup/{chunk-G5RULGYQ.cjs → chunk-LNP7Q6I6.cjs} +24 -9
- package/dist/tsup/chunk-LNP7Q6I6.cjs.map +1 -0
- package/dist/tsup/{chunk-Z4C3W2CQ.cjs → chunk-LW5HNCWD.cjs} +3 -3
- package/dist/tsup/{chunk-Z4C3W2CQ.cjs.map → chunk-LW5HNCWD.cjs.map} +1 -1
- package/dist/tsup/{chunk-J5P6S2LC.cjs → chunk-RDBGKI66.cjs} +25 -13
- package/dist/tsup/chunk-RDBGKI66.cjs.map +1 -0
- package/dist/tsup/{chunk-T6YVRM4K.js → chunk-T3VCJ4PV.js} +3 -1
- package/dist/tsup/chunk-T3VCJ4PV.js.map +1 -0
- package/dist/tsup/{chunk-WU2O2KIE.js → chunk-TTLUIDVH.js} +61 -77
- package/dist/tsup/chunk-TTLUIDVH.js.map +1 -0
- package/dist/tsup/{chunk-LD5YASJU.cjs → chunk-VE2X4KMG.cjs} +2 -2
- package/dist/tsup/{chunk-LD5YASJU.cjs.map → chunk-VE2X4KMG.cjs.map} +1 -1
- package/dist/tsup/{chunk-XV52XUWU.js → chunk-WXYWDLJY.js} +4 -4
- package/dist/tsup/chunk-WXYWDLJY.js.map +1 -0
- package/dist/tsup/{chunk-WQ4HNA4W.cjs → chunk-XCDCURZ4.cjs} +4 -2
- package/dist/tsup/chunk-XCDCURZ4.cjs.map +1 -0
- package/dist/tsup/{chunk-TE4VCDNY.cjs → chunk-XG25CGSW.cjs} +217 -233
- package/dist/tsup/chunk-XG25CGSW.cjs.map +1 -0
- package/dist/tsup/{chunk-3LGP4JSO.cjs → chunk-Y3JBOFBG.cjs} +8 -8
- package/dist/tsup/{chunk-3LGP4JSO.cjs.map → chunk-Y3JBOFBG.cjs.map} +1 -1
- package/dist/tsup/{chunk-CMYS77J6.js → chunk-YRQ4F5CD.js} +3 -3
- package/dist/tsup/{chunk-2NDZ7JCR.cjs → chunk-ZA7FLHKH.cjs} +1 -1
- package/dist/tsup/chunk-ZA7FLHKH.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +9 -9
- package/dist/tsup/client/mod.d.cts +4 -4
- package/dist/tsup/client/mod.d.ts +4 -4
- package/dist/tsup/client/mod.js +8 -8
- package/dist/tsup/common/log.cjs +3 -3
- package/dist/tsup/common/log.js +2 -2
- package/dist/tsup/common/websocket.cjs +4 -4
- package/dist/tsup/common/websocket.js +3 -3
- package/dist/tsup/{config-Ca8dN4cS.d.cts → config-CTwe3WwC.d.cts} +69 -19
- package/dist/tsup/{config-CxjGYf4K.d.cts → config-D49x8NpL.d.cts} +1 -2
- package/dist/tsup/{config-CxjGYf4K.d.ts → config-D49x8NpL.d.ts} +1 -2
- package/dist/tsup/{config-0Ta55UV0.d.ts → config-De5UVu0V.d.ts} +69 -19
- package/dist/tsup/{context-B_IWbWne.d.ts → context-DPHISlUi.d.ts} +8 -8
- package/dist/tsup/{context-CUrQ9MHc.d.cts → context-Dmj477Uh.d.cts} +8 -8
- package/dist/tsup/db/drizzle.cjs +3 -3
- package/dist/tsup/db/drizzle.d.cts +1 -1
- package/dist/tsup/db/drizzle.d.ts +1 -1
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +2 -2
- package/dist/tsup/db/mod.d.cts +2 -2
- package/dist/tsup/db/mod.d.ts +2 -2
- package/dist/tsup/db/mod.js +1 -1
- package/dist/tsup/dynamic/mod.cjs +24 -0
- package/dist/tsup/dynamic/mod.cjs.map +1 -0
- package/dist/tsup/dynamic/mod.d.cts +37 -0
- package/dist/tsup/dynamic/mod.d.ts +37 -0
- package/dist/tsup/dynamic/mod.js +24 -0
- package/dist/tsup/dynamic/mod.js.map +1 -0
- package/dist/tsup/inspector/mod.cjs +6 -6
- package/dist/tsup/inspector/mod.js +5 -5
- package/dist/tsup/mod.cjs +501 -315
- 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 +405 -219
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +21 -18
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +3 -3
- package/dist/tsup/test/mod.d.ts +3 -3
- package/dist/tsup/test/mod.js +18 -15
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/utils.cjs +3 -3
- package/dist/tsup/utils.d.cts +1 -1
- package/dist/tsup/utils.d.ts +1 -1
- package/dist/tsup/utils.js +2 -2
- package/dist/tsup/workflow/mod.cjs +307 -282
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +5 -5
- package/dist/tsup/workflow/mod.d.ts +5 -5
- package/dist/tsup/workflow/mod.js +501 -476
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +22 -11
- package/src/actor/config.ts +48 -41
- package/src/actor/contexts/index.ts +7 -2
- package/src/actor/definition.ts +11 -14
- package/src/actor/driver.ts +3 -3
- package/src/actor/errors.ts +9 -3
- package/src/actor/instance/mod.ts +22 -30
- package/src/actor/keys.ts +1 -1
- package/src/actor/mod.ts +20 -20
- package/src/actor/schema.ts +2 -2
- package/src/agent-os/actor/index.ts +38 -18
- package/src/agent-os/actor/preview.ts +1 -2
- package/src/agent-os/actor/session.ts +2 -2
- package/src/agent-os/config.ts +1 -1
- package/src/agent-os/fs/database-vfs.ts +1 -1
- package/src/agent-os/index.ts +16 -15
- package/src/client/actor-common.ts +90 -54
- package/src/client/actor-conn.ts +8 -36
- package/src/client/actor-handle.ts +67 -50
- package/src/client/actor-query.ts +5 -5
- package/src/client/errors.ts +1 -1
- package/src/client/lifecycle-errors.ts +2 -4
- package/src/client/query.ts +1 -1
- package/src/client/queue.ts +8 -3
- package/src/client/raw-utils.ts +8 -6
- package/src/client/resolve-gateway-target.ts +1 -1
- package/src/client/utils.ts +2 -7
- package/src/common/actor-websocket.ts +3 -1
- package/src/common/bare/actor-persist/v1.ts +205 -163
- package/src/common/bare/actor-persist/v2.ts +265 -213
- package/src/common/bare/actor-persist/v3.ts +176 -172
- package/src/common/bare/actor-persist/v4.ts +254 -253
- package/src/common/bare/transport/v1.ts +659 -543
- package/src/common/client-protocol-versioned.ts +66 -64
- package/src/common/database/config.ts +2 -8
- package/src/common/database/native-database.ts +1 -1
- package/src/common/database/shared.ts +1 -0
- package/src/common/encoding.ts +250 -16
- package/src/common/eventsource.ts +1 -1
- package/src/common/inline-websocket-adapter.ts +14 -13
- package/src/common/log.ts +1 -0
- package/src/common/router.ts +13 -17
- package/src/common/utils.ts +0 -149
- package/src/common/websocket-interface.ts +1 -1
- package/src/db/mod.ts +1 -1
- package/src/drivers/engine/actor-driver.ts +63 -72
- package/src/dynamic/instance.ts +32 -0
- package/src/dynamic/internal.ts +50 -0
- package/src/dynamic/isolate-runtime.ts +66 -0
- package/src/dynamic/mod.ts +32 -0
- package/src/engine-client/actor-http-client.ts +1 -1
- package/src/engine-client/actor-websocket-client.ts +6 -5
- package/src/engine-client/api-endpoints.ts +47 -2
- package/src/engine-client/api-utils.ts +2 -2
- package/src/engine-client/driver.ts +1 -1
- package/src/engine-client/mod.ts +6 -3
- package/src/engine-client/ws-proxy.ts +4 -4
- package/src/inspector/client.browser.ts +5 -11
- package/src/inspector/mod.ts +1 -3
- package/src/registry/config/envoy.ts +1 -2
- package/src/registry/config/index.ts +7 -7
- package/src/registry/index.ts +70 -71
- package/src/registry/napi-runtime.ts +7 -2
- package/src/registry/native-validation.ts +10 -12
- package/src/registry/native.ts +179 -153
- package/src/registry/process-metrics.ts +238 -0
- package/src/registry/runtime.ts +1 -3
- package/src/registry/wasm-runtime.ts +3 -2
- package/src/registry/write-through-proxy.ts +40 -0
- package/src/serde.ts +2 -2
- package/src/serverless/configure.ts +18 -7
- package/src/test/mod.ts +11 -8
- package/src/utils/endpoint-parser.ts +1 -1
- package/src/utils/router.ts +1 -1
- package/src/utils/serve.ts +4 -5
- package/src/utils.ts +1 -2
- package/src/workflow/context.ts +61 -33
- package/src/workflow/driver.ts +4 -6
- package/src/workflow/inspector.ts +4 -3
- package/src/workflow/mod.ts +15 -17
- package/dist/tsup/chunk-2NDZ7JCR.cjs.map +0 -1
- package/dist/tsup/chunk-3YY5S6TV.js.map +0 -1
- package/dist/tsup/chunk-4K3MV2MW.cjs.map +0 -1
- package/dist/tsup/chunk-BM3EOY7M.js.map +0 -1
- package/dist/tsup/chunk-G34LIR7S.js.map +0 -1
- package/dist/tsup/chunk-G5RULGYQ.cjs.map +0 -1
- package/dist/tsup/chunk-J5P6S2LC.cjs.map +0 -1
- package/dist/tsup/chunk-KIWH5H3K.js.map +0 -1
- package/dist/tsup/chunk-KU6VKVEK.js.map +0 -1
- package/dist/tsup/chunk-PCBNKI2J.js.map +0 -1
- package/dist/tsup/chunk-PWFGP2US.cjs.map +0 -1
- package/dist/tsup/chunk-T6YVRM4K.js.map +0 -1
- package/dist/tsup/chunk-TE4VCDNY.cjs.map +0 -1
- package/dist/tsup/chunk-WQ4HNA4W.cjs.map +0 -1
- package/dist/tsup/chunk-WU2O2KIE.js.map +0 -1
- package/dist/tsup/chunk-XV52XUWU.js.map +0 -1
- /package/dist/tsup/{chunk-6BI2MS3S.js.map → chunk-3P2JUHWJ.js.map} +0 -0
- /package/dist/tsup/{chunk-CMYS77J6.js.map → chunk-YRQ4F5CD.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import {
|
|
3
|
-
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-CxjGYf4K.js';
|
|
2
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-D49x8NpL.js';
|
|
4
3
|
import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
|
|
5
4
|
import { z as z$1 } from 'zod';
|
|
6
5
|
import { Logger } from 'pino';
|
|
6
|
+
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
7
7
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import { Context, Hono } from 'hono';
|
|
9
9
|
import { GetUpgradeWebSocket } from './utils.js';
|
|
@@ -70,7 +70,7 @@ declare const EncodingSchema: z.ZodEnum<{
|
|
|
70
70
|
*/
|
|
71
71
|
type Encoding = z.infer<typeof EncodingSchema>;
|
|
72
72
|
|
|
73
|
-
declare const ActorsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodCustom<
|
|
73
|
+
declare const ActorsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodCustom<AnyActorDefinition, AnyActorDefinition>>;
|
|
74
74
|
type RegistryActors = z$1.infer<typeof ActorsSchema>;
|
|
75
75
|
declare const RuntimeKindSchema: z$1.ZodEnum<{
|
|
76
76
|
auto: "auto";
|
|
@@ -191,7 +191,7 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
191
191
|
envoyKey: z$1.ZodOptional<z$1.ZodString>;
|
|
192
192
|
}, z$1.core.$strip>>>;
|
|
193
193
|
shutdown: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
|
|
194
|
-
gracePeriodMs: z$1.ZodOptional<z$1.ZodNumber
|
|
194
|
+
gracePeriodMs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
195
195
|
disableSignalHandlers: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
196
196
|
}, z$1.core.$strip>>>;
|
|
197
197
|
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
@@ -240,8 +240,8 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
240
240
|
envoyKey?: string | undefined;
|
|
241
241
|
};
|
|
242
242
|
shutdown: {
|
|
243
|
+
gracePeriodMs: number;
|
|
243
244
|
disableSignalHandlers: boolean;
|
|
244
|
-
gracePeriodMs?: number | undefined;
|
|
245
245
|
};
|
|
246
246
|
staticDir?: string | undefined;
|
|
247
247
|
httpHost?: string | undefined;
|
|
@@ -297,8 +297,8 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
297
297
|
envoyKey?: string | undefined;
|
|
298
298
|
};
|
|
299
299
|
shutdown: {
|
|
300
|
+
gracePeriodMs: number;
|
|
300
301
|
disableSignalHandlers: boolean;
|
|
301
|
-
gracePeriodMs?: number | undefined;
|
|
302
302
|
};
|
|
303
303
|
staticDir?: string | undefined;
|
|
304
304
|
httpHost?: string | undefined;
|
|
@@ -444,7 +444,7 @@ interface QueueSchemaDefinition<TContext = any> {
|
|
|
444
444
|
type EventSchema<TContext = any> = PrimitiveSchema | EventSchemaDefinition<TContext>;
|
|
445
445
|
type QueueSchema = PrimitiveSchema | QueueSchemaDefinition<any> | QueueTypeToken<unknown, unknown, any>;
|
|
446
446
|
type EventSchemaConfig<TContext = any> = Record<string, EventSchema<TContext>>;
|
|
447
|
-
type QueueSchemaConfig<
|
|
447
|
+
type QueueSchemaConfig<_TContext = any> = Record<string, QueueSchema>;
|
|
448
448
|
type InferSchema<T> = T extends QueueSchemaDefinition<any> ? InferSchema<T["message"]> : T extends QueueTypeToken<infer M, unknown, any> ? M : T extends EventSchemaDefinition<any> ? InferSchema<T["schema"]> : T extends StandardSchemaV1<any, infer O> ? O : T extends EventTypeToken<infer R, any> ? R : never;
|
|
449
449
|
type InferSchemaMap<T extends Record<string, unknown>> = {
|
|
450
450
|
[K in keyof T]: InferSchema<T[K]>;
|
|
@@ -455,10 +455,12 @@ type InferQueueCompleteMap<T extends QueueSchemaConfig> = {
|
|
|
455
455
|
};
|
|
456
456
|
type InferEventArgs<T> = T extends readonly unknown[] ? number extends T["length"] ? [T] : T : [T];
|
|
457
457
|
|
|
458
|
-
interface BaseActorDefinition<S, CP, CS, V, I, DB extends AnyDatabaseProvider, E extends EventSchemaConfig = Record<never, never>, Q extends QueueSchemaConfig = Record<never, never>,
|
|
458
|
+
interface BaseActorDefinition<S, CP, CS, V, I, DB extends AnyDatabaseProvider, E extends EventSchemaConfig = Record<never, never>, Q extends QueueSchemaConfig = Record<never, never>, _R extends Actions<S, CP, CS, V, I, DB, E, Q> = Actions<S, CP, CS, V, I, DB, E, Q>> {
|
|
459
459
|
readonly config: ActorConfig<S, CP, CS, V, I, DB, E, Q>;
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
interface AnyActorDefinition {
|
|
462
|
+
readonly config: any;
|
|
463
|
+
}
|
|
462
464
|
type AnyStaticActorDefinition = ActorDefinition<any, any, any, any, any, any, any, any, any>;
|
|
463
465
|
declare class ActorDefinition<S, CP, CS, V, I, DB extends AnyDatabaseProvider, E extends EventSchemaConfig = Record<never, never>, Q extends QueueSchemaConfig = Record<never, never>, R extends Actions<S, CP, CS, V, I, DB, E, Q> = Actions<S, CP, CS, V, I, DB, E, Q>> implements BaseActorDefinition<S, CP, CS, V, I, DB, E, Q, R> {
|
|
464
466
|
#private;
|
|
@@ -592,6 +594,25 @@ declare class Registry<A extends RegistryActors> {
|
|
|
592
594
|
* ```
|
|
593
595
|
*/
|
|
594
596
|
serve(): ServerlessHandler;
|
|
597
|
+
/**
|
|
598
|
+
* Starts an HTTP server that dispatches every request through the
|
|
599
|
+
* serverless handler. Uses `crossPlatformServe` to pick the right
|
|
600
|
+
* runtime (Node, Bun, Deno).
|
|
601
|
+
*
|
|
602
|
+
* @param opts.port Port to listen on. Defaults to 3000.
|
|
603
|
+
* @param opts.publicDir If set, serves static files from this directory
|
|
604
|
+
* before falling through to the registry handler.
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* ```ts
|
|
608
|
+
* await registry.listen();
|
|
609
|
+
* await registry.listen({ port: 8080, publicDir: "./public" });
|
|
610
|
+
* ```
|
|
611
|
+
*/
|
|
612
|
+
listen(opts?: {
|
|
613
|
+
port?: number;
|
|
614
|
+
publicDir?: string;
|
|
615
|
+
}): Promise<void>;
|
|
595
616
|
startEnvoy(): void;
|
|
596
617
|
/**
|
|
597
618
|
* Starts the actor envoy for standalone server deployments.
|
|
@@ -631,6 +652,8 @@ interface QueueSendResult<TResponse = unknown> {
|
|
|
631
652
|
* @returns {Promise<Response>}
|
|
632
653
|
*/
|
|
633
654
|
type ActorActionFunction<Args extends Array<unknown> = unknown[], Response = unknown> = (...args: Args extends [unknown, ...infer Rest] ? Rest : Args) => Promise<Response>;
|
|
655
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
656
|
+
type LooseEventSubscribe = (eventName: string, callback: (...args: any[]) => void) => () => void;
|
|
634
657
|
interface ActorGatewayOptions {
|
|
635
658
|
skipReadyWait?: boolean;
|
|
636
659
|
}
|
|
@@ -643,9 +666,15 @@ type ActorWebSocketOptions = ActorGatewayOptions;
|
|
|
643
666
|
/**
|
|
644
667
|
* Maps action methods from actor definition to typed function signatures.
|
|
645
668
|
*/
|
|
646
|
-
type ActorDefinitionActions<AD extends AnyActorDefinition> = AD extends
|
|
669
|
+
type ActorDefinitionActions<AD extends AnyActorDefinition> = IsAny<AD> extends true ? Record<string, ActorActionFunction<any[], any>> : AD extends {
|
|
670
|
+
config: {
|
|
671
|
+
actions?: infer R;
|
|
672
|
+
};
|
|
673
|
+
} ? {
|
|
647
674
|
[K in keyof R]: R[K] extends (...args: infer Args) => infer Return ? ActorActionFunction<Args, Return> : never;
|
|
648
|
-
} :
|
|
675
|
+
} : AD extends BaseActorDefinition<any, any, any, any, any, any, any, any, infer R> ? {
|
|
676
|
+
[K in keyof R]: R[K] extends (...args: infer Args) => infer Return ? ActorActionFunction<Args, Return> : never;
|
|
677
|
+
} : {};
|
|
649
678
|
type ActorQueueSend<TQueues extends QueueSchemaConfig> = {
|
|
650
679
|
<K extends keyof TQueues & string>(name: K, body: InferSchemaMap<TQueues>[K], options: QueueSendWaitOptions): Promise<QueueSendResult<InferQueueCompleteMap<TQueues>[K]>>;
|
|
651
680
|
<K extends keyof TQueues & string>(name: K, body: InferSchemaMap<TQueues>[K], options?: QueueSendNoWaitOptions): Promise<void>;
|
|
@@ -656,13 +685,31 @@ type ActorEventSubscribe<TEvents extends EventSchemaConfig> = {
|
|
|
656
685
|
<K extends keyof TEvents & string>(eventName: K, callback: (...args: InferEventArgs<InferSchemaMap<TEvents>[K]>) => void): () => void;
|
|
657
686
|
(eventName: keyof TEvents extends never ? string : never, callback: (...args: any[]) => void): () => void;
|
|
658
687
|
};
|
|
659
|
-
type ActorDefinitionQueueSend<AD extends AnyActorDefinition> = AD
|
|
688
|
+
type ActorDefinitionQueueSend<AD extends AnyActorDefinition> = IsAny<AD> extends true ? {
|
|
689
|
+
send: ActorQueueSend<Record<string, any>>;
|
|
690
|
+
} : AD extends {
|
|
691
|
+
config: {
|
|
692
|
+
queues?: infer Q;
|
|
693
|
+
};
|
|
694
|
+
} ? Q extends QueueSchemaConfig ? {
|
|
660
695
|
send: ActorQueueSend<Q>;
|
|
661
|
-
} :
|
|
662
|
-
|
|
696
|
+
} : {} : AD extends BaseActorDefinition<any, any, any, any, any, any, any, infer Q, any> ? Q extends QueueSchemaConfig ? {
|
|
697
|
+
send: ActorQueueSend<Q>;
|
|
698
|
+
} : {} : {};
|
|
699
|
+
type ActorDefinitionEventSubscriptions<AD extends AnyActorDefinition> = IsAny<AD> extends true ? {
|
|
700
|
+
on: LooseEventSubscribe;
|
|
701
|
+
once: LooseEventSubscribe;
|
|
702
|
+
} : AD extends {
|
|
703
|
+
config: {
|
|
704
|
+
events?: infer E;
|
|
705
|
+
};
|
|
706
|
+
} ? E extends EventSchemaConfig ? {
|
|
707
|
+
on: ActorEventSubscribe<E>;
|
|
708
|
+
once: ActorEventSubscribe<E>;
|
|
709
|
+
} : {} : AD extends BaseActorDefinition<any, any, any, any, any, any, infer E, any, any> ? E extends EventSchemaConfig ? {
|
|
663
710
|
on: ActorEventSubscribe<E>;
|
|
664
711
|
once: ActorEventSubscribe<E>;
|
|
665
|
-
} :
|
|
712
|
+
} : {} : {};
|
|
666
713
|
|
|
667
714
|
type ActorResolutionState = ActorQuery;
|
|
668
715
|
|
|
@@ -1120,6 +1167,7 @@ declare function createClientWithDriver<A extends Registry<any>>(driver: EngineC
|
|
|
1120
1167
|
|
|
1121
1168
|
declare const DEFAULT_SLEEP_GRACE_PERIOD = 15000;
|
|
1122
1169
|
declare const ACTOR_CONTEXT_INTERNAL_SYMBOL: unique symbol;
|
|
1170
|
+
declare const RAW_STATE_SYMBOL: unique symbol;
|
|
1123
1171
|
declare const CONN_DRIVER_SYMBOL: unique symbol;
|
|
1124
1172
|
declare const CONN_STATE_MANAGER_SYMBOL: unique symbol;
|
|
1125
1173
|
interface ActorLogger {
|
|
@@ -1236,7 +1284,7 @@ interface ActorQueue<TQueues extends QueueSchemaConfig = Record<never, never>> {
|
|
|
1236
1284
|
iter<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueIterOptions<TName, TCompletable>): AsyncIterable<any>;
|
|
1237
1285
|
[key: string]: any;
|
|
1238
1286
|
}
|
|
1239
|
-
interface Conn<
|
|
1287
|
+
interface Conn<_TState = unknown, TConnParams = unknown, TConnState = unknown, _TVars = unknown, _TInput = unknown, _TDatabase extends AnyDatabaseProvider = AnyDatabaseProvider, _TEvents extends EventSchemaConfig = Record<never, never>, _TQueues extends QueueSchemaConfig = Record<never, never>> {
|
|
1240
1288
|
id: string;
|
|
1241
1289
|
params: TConnParams;
|
|
1242
1290
|
state: TConnState;
|
|
@@ -1248,6 +1296,8 @@ interface Conn<TState = unknown, TConnParams = unknown, TConnState = unknown, TV
|
|
|
1248
1296
|
type AnyConn = Conn<any, any, any, any, any, any, any, any>;
|
|
1249
1297
|
interface ActorContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig = Record<never, never>, TQueues extends QueueSchemaConfig = Record<never, never>> {
|
|
1250
1298
|
[ACTOR_CONTEXT_INTERNAL_SYMBOL]?: unknown;
|
|
1299
|
+
/** Returns the raw unwrapped state without the write-through proxy. */
|
|
1300
|
+
[RAW_STATE_SYMBOL](): TState;
|
|
1251
1301
|
state: TState;
|
|
1252
1302
|
vars: TVars;
|
|
1253
1303
|
readonly kv: ActorKv;
|
|
@@ -1457,7 +1507,7 @@ declare const ActorConfigSchema: z.ZodObject<{
|
|
|
1457
1507
|
preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
|
|
1458
1508
|
}, z.core.$strict>>;
|
|
1459
1509
|
}, z.core.$strict>;
|
|
1460
|
-
type CreateState<TState,
|
|
1510
|
+
type CreateState<TState, _TConnParams, _TConnState, _TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = {
|
|
1461
1511
|
state: TState;
|
|
1462
1512
|
} | {
|
|
1463
1513
|
createState: (c: CreateContext<TState, TInput, TDatabase, TEvents, TQueues>, input: TInput) => TState | Promise<TState>;
|
|
@@ -1470,7 +1520,7 @@ type CreateConnState<TState, TConnParams, TConnState, TVars, TInput, TDatabase e
|
|
|
1470
1520
|
/**
|
|
1471
1521
|
* @experimental
|
|
1472
1522
|
*/
|
|
1473
|
-
type CreateVars<TState,
|
|
1523
|
+
type CreateVars<TState, _TConnParams, _TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = {
|
|
1474
1524
|
/**
|
|
1475
1525
|
* @experimental
|
|
1476
1526
|
*/
|
|
@@ -1739,4 +1789,4 @@ declare const DocActorConfigSchema: z.ZodObject<{
|
|
|
1739
1789
|
}, z.core.$strip>>;
|
|
1740
1790
|
}, z.core.$strip>;
|
|
1741
1791
|
|
|
1742
|
-
export { DocConfigurePoolSchema as $, type AnyActorDefinition as A, type BaseActorDefinition as B, type ConnectContext as C, type DestroyContext as D, type EventSchemaConfig as E, type ActorSchedule as F, type ActorTypes as G, ActorsSchema as H, type AnyActorInstance as I, type AnyClient as J, type AnyConn as K, type AnyStaticActorDefinition as L, type MigrateContext as M, type AnyStaticActorInstance as N, type AuthIntent as O, type BaseActorInstance as P, type QueueSchemaConfig as Q, type RequestContext as R, type SleepContext as S, CONN_DRIVER_SYMBOL as T, CONN_STATE_MANAGER_SYMBOL as U, type Client as V, type WakeContext as W, type Conn as X, DEFAULT_SLEEP_GRACE_PERIOD as Y, DocActorConfigSchema as Z, DocActorOptionsSchema as _, type ActionContext as a, type
|
|
1792
|
+
export { DocConfigurePoolSchema as $, type AnyActorDefinition as A, type BaseActorDefinition as B, type ConnectContext as C, type DestroyContext as D, type EventSchemaConfig as E, type ActorSchedule as F, type ActorTypes as G, ActorsSchema as H, type AnyActorInstance as I, type AnyClient as J, type AnyConn as K, type AnyStaticActorDefinition as L, type MigrateContext as M, type AnyStaticActorInstance as N, type AuthIntent as O, type BaseActorInstance as P, type QueueSchemaConfig as Q, type RequestContext as R, type SleepContext as S, CONN_DRIVER_SYMBOL as T, CONN_STATE_MANAGER_SYMBOL as U, type Client as V, type WakeContext as W, type Conn as X, DEFAULT_SLEEP_GRACE_PERIOD as Y, DocActorConfigSchema as Z, DocActorOptionsSchema as _, type ActionContext as a, type ActorAccessor as a$, DocEnvoyConfigSchema as a0, DocRegistryConfigSchema as a1, DocServerlessConfigSchema as a2, DocSqliteConfigSchema as a3, type Encoding as a4, type FetchHandler as a5, type GlobalActorOptions as a6, type GlobalActorOptionsInput as a7, GlobalActorOptionsSchema as a8, type InspectorUnsubscribe as a9, RuntimeKindSchema as aA, type ServerlessHandler as aB, type SqliteBackend as aC, SqliteBackendSchema as aD, type SqliteConfig as aE, SqliteConfigSchema as aF, type TestConfig as aG, TestConfigSchema as aH, type Type as aI, type WasmRuntimeBindings as aJ, type WasmRuntimeConfig as aK, WasmRuntimeConfigSchema as aL, type WasmRuntimeInitInput as aM, type WorkflowInspectorConfig as aN, actor as aO, buildActorNames as aP, createClientWithDriver as aQ, event as aR, getRunFunction as aS, getRunInspectorConfig as aT, getRunMetadata as aU, isStaticActorDefinition as aV, isStaticActorInstance as aW, lookupInRegistry as aX, queue as aY, setup as aZ, test as a_, type InstanceActorOptions as aa, type InstanceActorOptionsInput as ab, InstanceActorOptionsSchema as ac, type QueueEnqueueAndWaitOptions as ad, type QueueFilterName as ae, type QueueIterOptions as af, type QueueMessageOf as ag, type QueueName as ah, type QueueNextBatchOptions as ai, type QueueNextOptions as aj, type QueueResultMessageForName as ak, type QueueTryNextBatchOptions as al, type QueueTryNextOptions as am, type QueueWaitOptions as an, RAW_STATE_SYMBOL as ao, RUN_FUNCTION_CONFIG_SYMBOL as ap, Registry as aq, type RegistryActors as ar, type RegistryConfig as as, type RegistryConfigInput as at, RegistryConfigSchema as au, type RegistryRoutes as av, type RunConfig as aw, RunConfigSchema as ax, type RunInspectorConfig as ay, type RuntimeKind as az, type BeforeActionResponseContext as b, type ActorActionFunction as b0, type ActorActionOptions as b1, type ActorConn as b2, ActorConnRaw as b3, type ActorConnStatus as b4, type ActorConnectOptions as b5, type ActorGatewayOptions as b6, type ActorHandle as b7, ActorHandleRaw as b8, ClientRaw as b9, type ConnectionStateCallback as ba, type CreateOptions as bb, type CreateRequest as bc, type EventUnsubscribe as bd, type ExtractActorsFromRegistry as be, type ExtractRegistryFromClient as bf, type GetOptions as bg, type GetWithIdOptions as bh, type QueryOptions as bi, type Region as bj, type StatusChangeCallback as bk, type InferSchemaMap as bl, type InferEventArgs as bm, type BeforeConnectContext as c, type CreateConnStateContext as d, type CreateContext as e, type CreateVarsContext as f, type DisconnectContext as g, type RunContext as h, type StateChangeContext as i, type WebSocketContext as j, ACTOR_CONTEXT_INTERNAL_SYMBOL as k, type Actions as l, type ActorConfig as m, type ActorConfigInput as n, ActorConfigSchema as o, type ActorContext as p, type ActorContextOf as q, ActorDefinition as r, type ActorKey as s, type ActorKv as t, type ActorLogger as u, type ActorOptions as v, type ActorOptionsInput as w, ActorOptionsSchema as x, type ActorQuery as y, type ActorQueue as z };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, ae as QueueFilterName, aj as QueueNextOptions, ak as QueueResultMessageForName, ai as QueueNextBatchOptions,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, ae as QueueFilterName, aj as QueueNextOptions, ak as QueueResultMessageForName, ai as QueueNextBatchOptions, bl as InferSchemaMap, aq as Registry, V as Client, u as ActorLogger, bm as InferEventArgs } from './config-De5UVu0V.js';
|
|
2
|
+
import { WorkflowContextInterface, StepConfig, TryStepConfig, TryStepResult, TryBlockResult, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-D49x8NpL.js';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
7
7
|
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextBatchOptions<TName, TCompletable>, "signal">;
|
|
8
8
|
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<QueueNextBatchOptions<string, TCompletable>, "signal">;
|
|
9
9
|
type ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = Omit<LoopConfig<S, T>, "run"> & {
|
|
10
|
-
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? void : never)>;
|
|
10
|
+
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? undefined | void : never)>;
|
|
11
11
|
};
|
|
12
12
|
type ActorWorkflowBranchConfig<TOutput, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = {
|
|
13
13
|
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<TOutput>;
|
|
@@ -31,11 +31,11 @@ declare class ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInpu
|
|
|
31
31
|
(name: keyof TQueues extends never ? string : never, body: unknown): Promise<void>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
step<T>(nameOrConfig: string |
|
|
35
|
-
tryStep<T>(nameOrConfig: string |
|
|
34
|
+
step<T>(nameOrConfig: string | StepConfig<T>, run?: () => Promise<T>): Promise<T>;
|
|
35
|
+
tryStep<T>(nameOrConfig: string | TryStepConfig<T>, run?: () => Promise<T>): Promise<TryStepResult<T>>;
|
|
36
36
|
try<T>(nameOrConfig: string | Parameters<WorkflowContextInterface["try"]>[0], run?: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<T>): Promise<TryBlockResult<T>>;
|
|
37
|
-
loop<T>(name: string, run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<LoopResult<undefined, T> | void>): Promise<T>;
|
|
38
|
-
loop<T>(name: string, run: (ctx: WorkflowContextInterface) => Promise<LoopResult<undefined, T> | void>): Promise<T>;
|
|
37
|
+
loop<T>(name: string, run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<LoopResult<undefined, T> | undefined | void>): Promise<T>;
|
|
38
|
+
loop<T>(name: string, run: (ctx: WorkflowContextInterface) => Promise<LoopResult<undefined, T> | undefined | void>): Promise<T>;
|
|
39
39
|
loop<S, T>(config: ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>): Promise<T>;
|
|
40
40
|
loop<S, T>(config: LoopConfig<S, T>): Promise<T>;
|
|
41
41
|
sleep(name: string, durationMs: number): Promise<void>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, ae as QueueFilterName, aj as QueueNextOptions, ak as QueueResultMessageForName, ai as QueueNextBatchOptions,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, ae as QueueFilterName, aj as QueueNextOptions, ak as QueueResultMessageForName, ai as QueueNextBatchOptions, bl as InferSchemaMap, aq as Registry, V as Client, u as ActorLogger, bm as InferEventArgs } from './config-CTwe3WwC.cjs';
|
|
2
|
+
import { WorkflowContextInterface, StepConfig, TryStepConfig, TryStepResult, TryBlockResult, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-D49x8NpL.cjs';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
7
7
|
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextBatchOptions<TName, TCompletable>, "signal">;
|
|
8
8
|
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<QueueNextBatchOptions<string, TCompletable>, "signal">;
|
|
9
9
|
type ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = Omit<LoopConfig<S, T>, "run"> & {
|
|
10
|
-
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? void : never)>;
|
|
10
|
+
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? undefined | void : never)>;
|
|
11
11
|
};
|
|
12
12
|
type ActorWorkflowBranchConfig<TOutput, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = {
|
|
13
13
|
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<TOutput>;
|
|
@@ -31,11 +31,11 @@ declare class ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInpu
|
|
|
31
31
|
(name: keyof TQueues extends never ? string : never, body: unknown): Promise<void>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
step<T>(nameOrConfig: string |
|
|
35
|
-
tryStep<T>(nameOrConfig: string |
|
|
34
|
+
step<T>(nameOrConfig: string | StepConfig<T>, run?: () => Promise<T>): Promise<T>;
|
|
35
|
+
tryStep<T>(nameOrConfig: string | TryStepConfig<T>, run?: () => Promise<T>): Promise<TryStepResult<T>>;
|
|
36
36
|
try<T>(nameOrConfig: string | Parameters<WorkflowContextInterface["try"]>[0], run?: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<T>): Promise<TryBlockResult<T>>;
|
|
37
|
-
loop<T>(name: string, run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<LoopResult<undefined, T> | void>): Promise<T>;
|
|
38
|
-
loop<T>(name: string, run: (ctx: WorkflowContextInterface) => Promise<LoopResult<undefined, T> | void>): Promise<T>;
|
|
37
|
+
loop<T>(name: string, run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>) => Promise<LoopResult<undefined, T> | undefined | void>): Promise<T>;
|
|
38
|
+
loop<T>(name: string, run: (ctx: WorkflowContextInterface) => Promise<LoopResult<undefined, T> | undefined | void>): Promise<T>;
|
|
39
39
|
loop<S, T>(config: ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>): Promise<T>;
|
|
40
40
|
loop<S, T>(config: LoopConfig<S, T>): Promise<T>;
|
|
41
41
|
sleep(name: string, durationMs: number): Promise<void>;
|
package/dist/tsup/db/drizzle.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZA7FLHKHcjs = require('../chunk-ZA7FLHKH.cjs');
|
|
4
4
|
|
|
5
5
|
// src/db/drizzle.ts
|
|
6
6
|
|
|
@@ -78,7 +78,7 @@ function db({
|
|
|
78
78
|
try {
|
|
79
79
|
const { rows } = await nativeDb.execute(
|
|
80
80
|
query,
|
|
81
|
-
|
|
81
|
+
_chunkZA7FLHKHcjs.toSqliteBindings.call(void 0, params)
|
|
82
82
|
);
|
|
83
83
|
if (method === "run") {
|
|
84
84
|
return { rows: [] };
|
|
@@ -217,7 +217,7 @@ async function executeRaw(db2, ctx, ensureOpen, query, args) {
|
|
|
217
217
|
if (args.length > 0) {
|
|
218
218
|
const { rows, columns } = await db2.execute(
|
|
219
219
|
query,
|
|
220
|
-
|
|
220
|
+
_chunkZA7FLHKHcjs.toSqliteBindings.call(void 0, args)
|
|
221
221
|
);
|
|
222
222
|
return rows.map((row) => rowToObject(row, columns));
|
|
223
223
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
|
|
2
|
-
import { R as RawAccess, D as DatabaseProvider } from '../config-
|
|
2
|
+
import { R as RawAccess, D as DatabaseProvider } from '../config-D49x8NpL.cjs';
|
|
3
3
|
export { SQLiteTable, alias, check, foreignKey, index, integer, primaryKey, sqliteTable, sqliteTableCreator, text, unique, uniqueIndex } from 'drizzle-orm/sqlite-core';
|
|
4
4
|
|
|
5
5
|
type DrizzleSchema = Record<string, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
|
|
2
|
-
import { R as RawAccess, D as DatabaseProvider } from '../config-
|
|
2
|
+
import { R as RawAccess, D as DatabaseProvider } from '../config-D49x8NpL.js';
|
|
3
3
|
export { SQLiteTable, alias, check, foreignKey, index, integer, primaryKey, sqliteTable, sqliteTableCreator, text, unique, uniqueIndex } from 'drizzle-orm/sqlite-core';
|
|
4
4
|
|
|
5
5
|
type DrizzleSchema = Record<string, unknown>;
|
package/dist/tsup/db/drizzle.js
CHANGED
package/dist/tsup/db/mod.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZA7FLHKHcjs = require('../chunk-ZA7FLHKH.cjs');
|
|
5
5
|
|
|
6
6
|
// src/common/database/mod.ts
|
|
7
7
|
function hasMultipleStatements(query) {
|
|
@@ -37,7 +37,7 @@ function db({
|
|
|
37
37
|
const start = performance.now();
|
|
38
38
|
try {
|
|
39
39
|
if (args.length > 0) {
|
|
40
|
-
const bindings = args.length === 1 &&
|
|
40
|
+
const bindings = args.length === 1 && _chunkZA7FLHKHcjs.isSqliteBindingObject.call(void 0, args[0]) ? _chunkZA7FLHKHcjs.toSqliteBindings.call(void 0, args[0]) : _chunkZA7FLHKHcjs.toSqliteBindings.call(void 0, args);
|
|
41
41
|
const { rows, columns } = await db2.execute(
|
|
42
42
|
query,
|
|
43
43
|
bindings
|
package/dist/tsup/db/mod.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RawAccess, D as DatabaseProvider } from '../config-
|
|
2
|
-
export { A as AnyDatabaseProvider, a as DatabaseProviderContext, N as NativeDatabaseProvider, b as RawDatabaseClient, S as SqliteBindings, c as SqliteDatabase, d as SqliteNativeMetrics, e as SqliteQueryResult } from '../config-
|
|
1
|
+
import { R as RawAccess, D as DatabaseProvider } from '../config-D49x8NpL.cjs';
|
|
2
|
+
export { A as AnyDatabaseProvider, a as DatabaseProviderContext, N as NativeDatabaseProvider, b as RawDatabaseClient, S as SqliteBindings, c as SqliteDatabase, d as SqliteNativeMetrics, e as SqliteQueryResult } from '../config-D49x8NpL.cjs';
|
|
3
3
|
|
|
4
4
|
interface DatabaseFactoryConfig {
|
|
5
5
|
onMigrate?: (db: RawAccess) => Promise<void> | void;
|
package/dist/tsup/db/mod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RawAccess, D as DatabaseProvider } from '../config-
|
|
2
|
-
export { A as AnyDatabaseProvider, a as DatabaseProviderContext, N as NativeDatabaseProvider, b as RawDatabaseClient, S as SqliteBindings, c as SqliteDatabase, d as SqliteNativeMetrics, e as SqliteQueryResult } from '../config-
|
|
1
|
+
import { R as RawAccess, D as DatabaseProvider } from '../config-D49x8NpL.js';
|
|
2
|
+
export { A as AnyDatabaseProvider, a as DatabaseProviderContext, N as NativeDatabaseProvider, b as RawDatabaseClient, S as SqliteBindings, c as SqliteDatabase, d as SqliteNativeMetrics, e as SqliteQueryResult } from '../config-D49x8NpL.js';
|
|
3
3
|
|
|
4
4
|
interface DatabaseFactoryConfig {
|
|
5
5
|
onMigrate?: (db: RawAccess) => Promise<void> | void;
|
package/dist/tsup/db/mod.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkXCDCURZ4cjs = require('../chunk-XCDCURZ4.cjs');
|
|
4
|
+
|
|
5
|
+
// src/dynamic/internal.ts
|
|
6
|
+
var DYNAMIC_ACTOR_DEFINITION_SYMBOL = /* @__PURE__ */ Symbol.for(
|
|
7
|
+
"rivetkit.dynamic_actor_definition"
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
// src/dynamic/mod.ts
|
|
11
|
+
function dynamicActor(input) {
|
|
12
|
+
const config = _chunkXCDCURZ4cjs.ActorConfigSchema.parse({
|
|
13
|
+
actions: {}
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
[DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true,
|
|
17
|
+
config,
|
|
18
|
+
loader: input.load
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.dynamicActor = dynamicActor;
|
|
24
|
+
//# sourceMappingURL=mod.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/dynamic/mod.cjs","../../../src/dynamic/internal.ts","../../../src/dynamic/mod.ts"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B;AACA;ACCO,IAAM,gCAAA,kBAAkC,MAAA,CAAO,GAAA;AAAA,EACrD;AACD,CAAA;ADCA;AACA;AEGO,SAAS,YAAA,CACf,KAAA,EACyB;AACzB,EAAA,MAAM,OAAA,EAAS,mCAAA,CAAkB,KAAA,CAAM;AAAA,IACtC,OAAA,EAAS,CAAC;AAAA,EACX,CAAC,CAAA;AAED,EAAA,OAAO;AAAA,IACN,CAAC,+BAA+B,CAAA,EAAG,IAAA;AAAA,IACnC,MAAA;AAAA,IACA,MAAA,EAAQ,KAAA,CAAM;AAAA,EACf,CAAA;AACD;AFJA;AACE;AACF,oCAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/dynamic/mod.cjs","sourcesContent":[null,"import type {\n\tAnyActorDefinition,\n\tBaseActorDefinition,\n} from \"@/actor/definition\";\n\nexport const DYNAMIC_ACTOR_DEFINITION_SYMBOL = Symbol.for(\n\t\"rivetkit.dynamic_actor_definition\",\n);\n\nexport interface DynamicActorSource {\n\tsource: string;\n\tnodeProcess?: {\n\t\tmemoryLimit?: number;\n\t\tcpuTimeLimitMs?: number;\n\t};\n}\n\nexport interface DynamicActorLoadContext {\n\tkey: string[];\n\tclient(): Promise<any>;\n}\n\nexport type DynamicActorLoader = (\n\tc: DynamicActorLoadContext,\n) => DynamicActorSource | Promise<DynamicActorSource>;\n\nexport interface DynamicActorDefinition extends AnyActorDefinition {\n\treadonly [DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true;\n\treadonly loader: DynamicActorLoader;\n}\n\nexport function isDynamicActorDefinition(\n\tdefinition: BaseActorDefinition<\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany\n\t>,\n): definition is DynamicActorDefinition {\n\treturn (\n\t\t(definition as Partial<DynamicActorDefinition>)[\n\t\t\tDYNAMIC_ACTOR_DEFINITION_SYMBOL\n\t\t] === true\n\t);\n}\n","import { ActorConfigSchema } from \"@/actor/config\";\nimport type { AnyActorDefinition } from \"@/actor/definition\";\nimport {\n\tDYNAMIC_ACTOR_DEFINITION_SYMBOL,\n\ttype DynamicActorDefinition,\n\ttype DynamicActorLoader,\n} from \"./internal\";\n\nexport interface DynamicActorConfig {\n\tload: DynamicActorLoader;\n}\n\nexport function dynamicActor(\n\tinput: DynamicActorConfig,\n): DynamicActorDefinition {\n\tconst config = ActorConfigSchema.parse({\n\t\tactions: {},\n\t}) as unknown as AnyActorDefinition[\"config\"];\n\n\treturn {\n\t\t[DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true,\n\t\tconfig,\n\t\tloader: input.load,\n\t};\n}\n\nexport type {\n\tDynamicActorDefinition,\n\tDynamicActorLoadContext,\n\tDynamicActorLoader,\n\tDynamicActorSource,\n} from \"./internal\";\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { A as AnyActorDefinition } from '../config-CTwe3WwC.cjs';
|
|
2
|
+
import 'zod/v4';
|
|
3
|
+
import '../config-D49x8NpL.cjs';
|
|
4
|
+
import '@rivetkit/rivetkit-wasm';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import 'pino';
|
|
7
|
+
import '@rivetkit/virtual-websocket';
|
|
8
|
+
import '@standard-schema/spec';
|
|
9
|
+
import 'hono';
|
|
10
|
+
import '../utils.cjs';
|
|
11
|
+
import '../utils-DVekpm4I.cjs';
|
|
12
|
+
import 'hono/utils/http-status';
|
|
13
|
+
|
|
14
|
+
declare const DYNAMIC_ACTOR_DEFINITION_SYMBOL: unique symbol;
|
|
15
|
+
interface DynamicActorSource {
|
|
16
|
+
source: string;
|
|
17
|
+
nodeProcess?: {
|
|
18
|
+
memoryLimit?: number;
|
|
19
|
+
cpuTimeLimitMs?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface DynamicActorLoadContext {
|
|
23
|
+
key: string[];
|
|
24
|
+
client(): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
type DynamicActorLoader = (c: DynamicActorLoadContext) => DynamicActorSource | Promise<DynamicActorSource>;
|
|
27
|
+
interface DynamicActorDefinition extends AnyActorDefinition {
|
|
28
|
+
readonly [DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true;
|
|
29
|
+
readonly loader: DynamicActorLoader;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface DynamicActorConfig {
|
|
33
|
+
load: DynamicActorLoader;
|
|
34
|
+
}
|
|
35
|
+
declare function dynamicActor(input: DynamicActorConfig): DynamicActorDefinition;
|
|
36
|
+
|
|
37
|
+
export { type DynamicActorConfig, type DynamicActorDefinition, type DynamicActorLoadContext, type DynamicActorLoader, type DynamicActorSource, dynamicActor };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { A as AnyActorDefinition } from '../config-De5UVu0V.js';
|
|
2
|
+
import 'zod/v4';
|
|
3
|
+
import '../config-D49x8NpL.js';
|
|
4
|
+
import '@rivetkit/rivetkit-wasm';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import 'pino';
|
|
7
|
+
import '@rivetkit/virtual-websocket';
|
|
8
|
+
import '@standard-schema/spec';
|
|
9
|
+
import 'hono';
|
|
10
|
+
import '../utils.js';
|
|
11
|
+
import '../utils-DVekpm4I.js';
|
|
12
|
+
import 'hono/utils/http-status';
|
|
13
|
+
|
|
14
|
+
declare const DYNAMIC_ACTOR_DEFINITION_SYMBOL: unique symbol;
|
|
15
|
+
interface DynamicActorSource {
|
|
16
|
+
source: string;
|
|
17
|
+
nodeProcess?: {
|
|
18
|
+
memoryLimit?: number;
|
|
19
|
+
cpuTimeLimitMs?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface DynamicActorLoadContext {
|
|
23
|
+
key: string[];
|
|
24
|
+
client(): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
type DynamicActorLoader = (c: DynamicActorLoadContext) => DynamicActorSource | Promise<DynamicActorSource>;
|
|
27
|
+
interface DynamicActorDefinition extends AnyActorDefinition {
|
|
28
|
+
readonly [DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true;
|
|
29
|
+
readonly loader: DynamicActorLoader;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface DynamicActorConfig {
|
|
33
|
+
load: DynamicActorLoader;
|
|
34
|
+
}
|
|
35
|
+
declare function dynamicActor(input: DynamicActorConfig): DynamicActorDefinition;
|
|
36
|
+
|
|
37
|
+
export { type DynamicActorConfig, type DynamicActorDefinition, type DynamicActorLoadContext, type DynamicActorLoader, type DynamicActorSource, dynamicActor };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActorConfigSchema
|
|
3
|
+
} from "../chunk-T3VCJ4PV.js";
|
|
4
|
+
|
|
5
|
+
// src/dynamic/internal.ts
|
|
6
|
+
var DYNAMIC_ACTOR_DEFINITION_SYMBOL = /* @__PURE__ */ Symbol.for(
|
|
7
|
+
"rivetkit.dynamic_actor_definition"
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
// src/dynamic/mod.ts
|
|
11
|
+
function dynamicActor(input) {
|
|
12
|
+
const config = ActorConfigSchema.parse({
|
|
13
|
+
actions: {}
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
[DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true,
|
|
17
|
+
config,
|
|
18
|
+
loader: input.load
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
dynamicActor
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=mod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/dynamic/internal.ts","../../../src/dynamic/mod.ts"],"sourcesContent":["import type {\n\tAnyActorDefinition,\n\tBaseActorDefinition,\n} from \"@/actor/definition\";\n\nexport const DYNAMIC_ACTOR_DEFINITION_SYMBOL = Symbol.for(\n\t\"rivetkit.dynamic_actor_definition\",\n);\n\nexport interface DynamicActorSource {\n\tsource: string;\n\tnodeProcess?: {\n\t\tmemoryLimit?: number;\n\t\tcpuTimeLimitMs?: number;\n\t};\n}\n\nexport interface DynamicActorLoadContext {\n\tkey: string[];\n\tclient(): Promise<any>;\n}\n\nexport type DynamicActorLoader = (\n\tc: DynamicActorLoadContext,\n) => DynamicActorSource | Promise<DynamicActorSource>;\n\nexport interface DynamicActorDefinition extends AnyActorDefinition {\n\treadonly [DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true;\n\treadonly loader: DynamicActorLoader;\n}\n\nexport function isDynamicActorDefinition(\n\tdefinition: BaseActorDefinition<\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany,\n\t\tany\n\t>,\n): definition is DynamicActorDefinition {\n\treturn (\n\t\t(definition as Partial<DynamicActorDefinition>)[\n\t\t\tDYNAMIC_ACTOR_DEFINITION_SYMBOL\n\t\t] === true\n\t);\n}\n","import { ActorConfigSchema } from \"@/actor/config\";\nimport type { AnyActorDefinition } from \"@/actor/definition\";\nimport {\n\tDYNAMIC_ACTOR_DEFINITION_SYMBOL,\n\ttype DynamicActorDefinition,\n\ttype DynamicActorLoader,\n} from \"./internal\";\n\nexport interface DynamicActorConfig {\n\tload: DynamicActorLoader;\n}\n\nexport function dynamicActor(\n\tinput: DynamicActorConfig,\n): DynamicActorDefinition {\n\tconst config = ActorConfigSchema.parse({\n\t\tactions: {},\n\t}) as unknown as AnyActorDefinition[\"config\"];\n\n\treturn {\n\t\t[DYNAMIC_ACTOR_DEFINITION_SYMBOL]: true,\n\t\tconfig,\n\t\tloader: input.load,\n\t};\n}\n\nexport type {\n\tDynamicActorDefinition,\n\tDynamicActorLoadContext,\n\tDynamicActorLoader,\n\tDynamicActorSource,\n} from \"./internal\";\n"],"mappings":";;;;;AAKO,IAAM,kCAAkC,uBAAO;AAAA,EACrD;AACD;;;ACKO,SAAS,aACf,OACyB;AACzB,QAAM,SAAS,kBAAkB,MAAM;AAAA,IACtC,SAAS,CAAC;AAAA,EACX,CAAC;AAED,SAAO;AAAA,IACN,CAAC,+BAA+B,GAAG;AAAA,IACnC;AAAA,IACA,QAAQ,MAAM;AAAA,EACf;AACD;","names":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2NXFKPRBcjs = require('../chunk-2NXFKPRB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
7
|
+
var _chunkLNP7Q6I6cjs = require('../chunk-LNP7Q6I6.cjs');
|
|
8
|
+
require('../chunk-GX6W4MW3.cjs');
|
|
9
|
+
require('../chunk-RDBGKI66.cjs');
|
|
10
|
+
require('../chunk-KORQB2IR.cjs');
|
|
11
11
|
|
|
12
12
|
// src/common/bare/generated/inspector/v4.ts
|
|
13
13
|
var _barets = require('@rivetkit/bare-ts'); var bare = _interopRequireWildcard(_barets);
|
|
@@ -761,5 +761,5 @@ function decodeToClient(bytes) {
|
|
|
761
761
|
|
|
762
762
|
|
|
763
763
|
|
|
764
|
-
exports.createWorkflowInspectorAdapter =
|
|
764
|
+
exports.createWorkflowInspectorAdapter = _chunk2NXFKPRBcjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunkLNP7Q6I6cjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkLNP7Q6I6cjs.encodeWorkflowHistoryTransport; exports.readActionRequest = readActionRequest; exports.readActionResponse = readActionResponse; exports.readConnection = readConnection; exports.readConnectionsRequest = readConnectionsRequest; exports.readConnectionsResponse = readConnectionsResponse; exports.readConnectionsUpdated = readConnectionsUpdated; exports.readDatabaseSchemaRequest = readDatabaseSchemaRequest; exports.readDatabaseSchemaResponse = readDatabaseSchemaResponse; exports.readDatabaseTableRowsRequest = readDatabaseTableRowsRequest; exports.readDatabaseTableRowsResponse = readDatabaseTableRowsResponse; exports.readError = readError; exports.readInit = readInit; exports.readPatchStateRequest = readPatchStateRequest; exports.readQueueMessageSummary = readQueueMessageSummary; exports.readQueueRequest = readQueueRequest; exports.readQueueResponse = readQueueResponse; exports.readQueueStatus = readQueueStatus; exports.readQueueUpdated = readQueueUpdated; exports.readRpcsListRequest = readRpcsListRequest; exports.readRpcsListResponse = readRpcsListResponse; exports.readState = readState; exports.readStateRequest = readStateRequest; exports.readStateResponse = readStateResponse; exports.readStateUpdated = readStateUpdated; exports.readToClient = readToClient; exports.readToClientBody = readToClientBody; exports.readToServer = readToServer; exports.readToServerBody = readToServerBody; exports.readTraceQueryRequest = readTraceQueryRequest; exports.readTraceQueryResponse = readTraceQueryResponse; exports.readWorkflowHistory = readWorkflowHistory; exports.readWorkflowHistoryRequest = readWorkflowHistoryRequest; exports.readWorkflowHistoryResponse = readWorkflowHistoryResponse; exports.readWorkflowHistoryUpdated = readWorkflowHistoryUpdated; exports.readWorkflowReplayRequest = readWorkflowReplayRequest; exports.readWorkflowReplayResponse = readWorkflowReplayResponse; exports.writeActionRequest = writeActionRequest; exports.writeActionResponse = writeActionResponse; exports.writeConnection = writeConnection; exports.writeConnectionsRequest = writeConnectionsRequest; exports.writeConnectionsResponse = writeConnectionsResponse; exports.writeConnectionsUpdated = writeConnectionsUpdated; exports.writeDatabaseSchemaRequest = writeDatabaseSchemaRequest; exports.writeDatabaseSchemaResponse = writeDatabaseSchemaResponse; exports.writeDatabaseTableRowsRequest = writeDatabaseTableRowsRequest; exports.writeDatabaseTableRowsResponse = writeDatabaseTableRowsResponse; exports.writeError = writeError; exports.writeInit = writeInit; exports.writePatchStateRequest = writePatchStateRequest; exports.writeQueueMessageSummary = writeQueueMessageSummary; exports.writeQueueRequest = writeQueueRequest; exports.writeQueueResponse = writeQueueResponse; exports.writeQueueStatus = writeQueueStatus; exports.writeQueueUpdated = writeQueueUpdated; exports.writeRpcsListRequest = writeRpcsListRequest; exports.writeRpcsListResponse = writeRpcsListResponse; exports.writeState = writeState; exports.writeStateRequest = writeStateRequest; exports.writeStateResponse = writeStateResponse; exports.writeStateUpdated = writeStateUpdated; exports.writeToClient = writeToClient; exports.writeToClientBody = writeToClientBody; exports.writeToServer = writeToServer; exports.writeToServerBody = writeToServerBody; exports.writeTraceQueryRequest = writeTraceQueryRequest; exports.writeTraceQueryResponse = writeTraceQueryResponse; exports.writeWorkflowHistory = writeWorkflowHistory; exports.writeWorkflowHistoryRequest = writeWorkflowHistoryRequest; exports.writeWorkflowHistoryResponse = writeWorkflowHistoryResponse; exports.writeWorkflowHistoryUpdated = writeWorkflowHistoryUpdated; exports.writeWorkflowReplayRequest = writeWorkflowReplayRequest; exports.writeWorkflowReplayResponse = writeWorkflowReplayResponse;
|
|
765
765
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WXYWDLJY.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-GRFBV2U7.js";
|
|
8
|
+
import "../chunk-KRC4L3YB.js";
|
|
9
|
+
import "../chunk-4FP4FFB5.js";
|
|
10
|
+
import "../chunk-BRP62GZC.js";
|
|
11
11
|
|
|
12
12
|
// src/common/bare/generated/inspector/v4.ts
|
|
13
13
|
import * as bare from "@rivetkit/bare-ts";
|