rivetkit 2.1.1 → 2.1.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 +22 -2
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/inspector.tar.gz +0 -0
- package/dist/tsup/{chunk-65RINRXE.cjs → chunk-772NPMTY.cjs} +98 -98
- package/dist/tsup/{chunk-65RINRXE.cjs.map → chunk-772NPMTY.cjs.map} +1 -1
- package/dist/tsup/{chunk-NAM3D5W5.js → chunk-BFI4LYS2.js} +5 -6
- package/dist/tsup/chunk-BFI4LYS2.js.map +1 -0
- package/dist/tsup/{chunk-OONQLPOH.js → chunk-BSIJG3LG.js} +7 -7
- package/dist/tsup/chunk-BSIJG3LG.js.map +1 -0
- package/dist/tsup/{chunk-WPDQXB7R.cjs → chunk-GVQAVU7R.cjs} +4 -4
- package/dist/tsup/{chunk-WPDQXB7R.cjs.map → chunk-GVQAVU7R.cjs.map} +1 -1
- package/dist/tsup/{chunk-AWJU3AZB.js → chunk-HB4RGGMC.js} +5 -5
- package/dist/tsup/{chunk-LNDVGTPQ.cjs → chunk-HFWRHT5T.cjs} +24 -10
- package/dist/tsup/chunk-HFWRHT5T.cjs.map +1 -0
- package/dist/tsup/{chunk-Q5CW77IT.cjs → chunk-MNS5LY6M.cjs} +81 -75
- package/dist/tsup/chunk-MNS5LY6M.cjs.map +1 -0
- package/dist/tsup/{chunk-ZR76ZGYS.cjs → chunk-NXEHFUDB.cjs} +20 -20
- package/dist/tsup/chunk-NXEHFUDB.cjs.map +1 -0
- package/dist/tsup/{chunk-XQWBEBLD.js → chunk-PSUVV4HM.js} +23 -9
- package/dist/tsup/{chunk-XQWBEBLD.js.map → chunk-PSUVV4HM.js.map} +1 -1
- package/dist/tsup/{chunk-VBU4P2IX.js → chunk-PW3YONDJ.js} +2 -2
- package/dist/tsup/{chunk-AGERRJ32.cjs → chunk-PZAV6PP2.cjs} +152 -152
- package/dist/tsup/{chunk-AGERRJ32.cjs.map → chunk-PZAV6PP2.cjs.map} +1 -1
- package/dist/tsup/{chunk-LPXB254R.cjs → chunk-QABDKI3W.cjs} +236 -237
- package/dist/tsup/chunk-QABDKI3W.cjs.map +1 -0
- package/dist/tsup/{chunk-T4PQK4WA.js → chunk-RHUII57M.js} +7 -8
- package/dist/tsup/chunk-RHUII57M.js.map +1 -0
- package/dist/tsup/{chunk-MMUXNMJF.cjs → chunk-RMJJE43B.cjs} +2 -2
- package/dist/tsup/{chunk-MMUXNMJF.cjs.map → chunk-RMJJE43B.cjs.map} +1 -1
- package/dist/tsup/{chunk-WTRB56DR.js → chunk-TDFDR7AO.js} +2 -2
- package/dist/tsup/{chunk-F5B36GL7.cjs → chunk-UZV7NXC6.cjs} +31 -32
- package/dist/tsup/chunk-UZV7NXC6.cjs.map +1 -0
- package/dist/tsup/{chunk-MICYEINX.js → chunk-VMX4I4MP.js} +10 -4
- package/dist/tsup/{chunk-MICYEINX.js.map → chunk-VMX4I4MP.js.map} +1 -1
- package/dist/tsup/{chunk-IZ4M5TJU.js → chunk-WUXR722E.js} +2 -2
- package/dist/tsup/{chunk-IZ4M5TJU.js.map → chunk-WUXR722E.js.map} +1 -1
- package/dist/tsup/{chunk-74ER4FEE.js → chunk-YQ5P6KMN.js} +4 -4
- package/dist/tsup/chunk-YQ5P6KMN.js.map +1 -0
- package/dist/tsup/{chunk-FUBHHHK5.cjs → chunk-ZHQDRRMY.cjs} +3 -3
- package/dist/tsup/{chunk-FUBHHHK5.cjs.map → chunk-ZHQDRRMY.cjs.map} +1 -1
- package/dist/tsup/client/mod.cjs +6 -6
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- 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-BFqid9Gr.d.ts → config-P3XujgRr.d.ts} +23 -3
- package/dist/tsup/{config-CAZphOS1.d.cts → config-_gfywqqI.d.cts} +23 -3
- package/dist/tsup/{context-7X-Dm6_f.d.cts → context-Bxd8Cx4H.d.cts} +5 -5
- package/dist/tsup/{context-x9zKhx5T.d.ts → context-uNA4TRn3.d.ts} +5 -5
- package/dist/tsup/{driver-DYXwJR5D.d.cts → driver-BcLvZcKl.d.cts} +1 -1
- package/dist/tsup/{driver-Bxv62E2p.d.ts → driver-CPGHKXyh.d.ts} +1 -1
- package/dist/tsup/driver-helpers/mod.cjs +6 -4
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +16 -4
- package/dist/tsup/driver-helpers/mod.d.ts +16 -4
- package/dist/tsup/driver-helpers/mod.js +6 -4
- package/dist/tsup/driver-test-suite/mod.cjs +64 -64
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +2 -2
- package/dist/tsup/driver-test-suite/mod.d.ts +2 -2
- package/dist/tsup/driver-test-suite/mod.js +14 -14
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +3 -3
- package/dist/tsup/inspector/mod.js +2 -2
- package/dist/tsup/mod.cjs +8 -8
- package/dist/tsup/mod.d.cts +5 -5
- package/dist/tsup/mod.d.ts +5 -5
- package/dist/tsup/mod.js +7 -7
- package/dist/tsup/serve-test-suite/mod.cjs +126 -118
- package/dist/tsup/serve-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/serve-test-suite/mod.js +37 -29
- package/dist/tsup/serve-test-suite/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 +5 -5
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +5 -5
- package/src/actor/instance/queue.ts +67 -9
- package/src/driver-helpers/mod.ts +1 -1
- package/src/driver-helpers/utils.ts +18 -0
- package/src/driver-test-suite/tests/actor-queue.ts +4 -4
- package/src/drivers/file-system/actor.ts +6 -16
- package/src/engine-process/mod.ts +1 -1
- package/src/workflow/context.ts +5 -4
- package/dist/tsup/chunk-74ER4FEE.js.map +0 -1
- package/dist/tsup/chunk-F5B36GL7.cjs.map +0 -1
- package/dist/tsup/chunk-LNDVGTPQ.cjs.map +0 -1
- package/dist/tsup/chunk-LPXB254R.cjs.map +0 -1
- package/dist/tsup/chunk-NAM3D5W5.js.map +0 -1
- package/dist/tsup/chunk-OONQLPOH.js.map +0 -1
- package/dist/tsup/chunk-Q5CW77IT.cjs.map +0 -1
- package/dist/tsup/chunk-T4PQK4WA.js.map +0 -1
- package/dist/tsup/chunk-ZR76ZGYS.cjs.map +0 -1
- /package/dist/tsup/{chunk-AWJU3AZB.js.map → chunk-HB4RGGMC.js.map} +0 -0
- /package/dist/tsup/{chunk-VBU4P2IX.js.map → chunk-PW3YONDJ.js.map} +0 -0
- /package/dist/tsup/{chunk-WTRB56DR.js.map → chunk-TDFDR7AO.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a5 as Registry, C as Client } from '../config-
|
|
2
|
-
export { aB as ActorAccessor, aC as ActorActionFunction, aD as ActorClientError, aE as ActorConn, aF as ActorConnDisposed, aG as ActorConnRaw, aH as ActorConnStatus, f as ActorDefinition, aI as ActorError, aJ as ActorHandle, aK as ActorHandleRaw, t as AnyActorDefinition, aL as ClientRaw, aM as ConnectionStateCallback, aN as CreateOptions, aO as CreateRequest, E as Encoding, aP as EventUnsubscribe, aQ as ExtractActorsFromRegistry, aR as ExtractRegistryFromClient, aS as GetOptions, aT as GetWithIdOptions, aU as InternalError, aV as MalformedResponseMessage, aW as ManagerError, aX as QueryOptions, aY as Region, aZ as StatusChangeCallback } from '../config-
|
|
1
|
+
import { a5 as Registry, C as Client } from '../config-P3XujgRr.js';
|
|
2
|
+
export { aB as ActorAccessor, aC as ActorActionFunction, aD as ActorClientError, aE as ActorConn, aF as ActorConnDisposed, aG as ActorConnRaw, aH as ActorConnStatus, f as ActorDefinition, aI as ActorError, aJ as ActorHandle, aK as ActorHandleRaw, t as AnyActorDefinition, aL as ClientRaw, aM as ConnectionStateCallback, aN as CreateOptions, aO as CreateRequest, E as Encoding, aP as EventUnsubscribe, aQ as ExtractActorsFromRegistry, aR as ExtractRegistryFromClient, aS as GetOptions, aT as GetWithIdOptions, aU as InternalError, aV as MalformedResponseMessage, aW as ManagerError, aX as QueryOptions, aY as Region, aZ as StatusChangeCallback } from '../config-P3XujgRr.js';
|
|
3
3
|
export { K as KV_KEYS } from '../keys-CydblqMh.js';
|
|
4
4
|
import z from 'zod/v4';
|
|
5
5
|
import { GetUpgradeWebSocket } from '../utils.js';
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
MalformedResponseMessage,
|
|
9
9
|
ManagerError,
|
|
10
10
|
createClient
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-HB4RGGMC.js";
|
|
12
|
+
import "../chunk-PW3YONDJ.js";
|
|
13
|
+
import "../chunk-VMX4I4MP.js";
|
|
14
14
|
import "../chunk-LXUQ667X.js";
|
|
15
15
|
import {
|
|
16
16
|
KEYS
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-PSUVV4HM.js";
|
|
18
|
+
import "../chunk-WUXR722E.js";
|
|
19
19
|
import "../chunk-7HTNH26M.js";
|
|
20
20
|
import "../chunk-424PT5DM.js";
|
|
21
21
|
export {
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRMJJE43Bcjs = require('../chunk-RMJJE43B.cjs');
|
|
10
10
|
require('../chunk-L47L3ZWJ.cjs');
|
|
11
11
|
require('../chunk-HDQ2JUQT.cjs');
|
|
12
12
|
|
|
@@ -17,5 +17,5 @@ require('../chunk-HDQ2JUQT.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.LogLevelSchema =
|
|
20
|
+
exports.LogLevelSchema = _chunkRMJJE43Bcjs.LogLevelSchema; exports.configureBaseLogger = _chunkRMJJE43Bcjs.configureBaseLogger; exports.configureDefaultLogger = _chunkRMJJE43Bcjs.configureDefaultLogger; exports.getBaseLogger = _chunkRMJJE43Bcjs.getBaseLogger; exports.getIncludeTarget = _chunkRMJJE43Bcjs.getIncludeTarget; exports.getLogger = _chunkRMJJE43Bcjs.getLogger; exports.getPinoLevel = _chunkRMJJE43Bcjs.getPinoLevel;
|
|
21
21
|
//# sourceMappingURL=log.cjs.map
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkZHQDRRMYcjs = require('../chunk-ZHQDRRMY.cjs');
|
|
4
|
+
require('../chunk-RMJJE43B.cjs');
|
|
5
5
|
require('../chunk-L47L3ZWJ.cjs');
|
|
6
6
|
require('../chunk-HDQ2JUQT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.importWebSocket =
|
|
9
|
+
exports.importWebSocket = _chunkZHQDRRMYcjs.importWebSocket;
|
|
10
10
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -1435,6 +1435,17 @@ type QueueCompletableMessageForName<TQueues extends QueueSchemaConfig, TName ext
|
|
|
1435
1435
|
type QueueResultMessageForName<TQueues extends QueueSchemaConfig, TName extends QueueFilterName<TQueues>, TCompletable extends boolean> = TCompletable extends true ? QueueCompletableMessageForName<TQueues, TName> : QueueMessageForName<TQueues, TName>;
|
|
1436
1436
|
/** Options for receiving queue messages. */
|
|
1437
1437
|
interface QueueNextOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1438
|
+
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1439
|
+
names?: readonly TName[];
|
|
1440
|
+
/** Timeout in milliseconds. Omit to wait indefinitely. */
|
|
1441
|
+
timeout?: number;
|
|
1442
|
+
/** Optional abort signal for this receive call. */
|
|
1443
|
+
signal?: AbortSignal;
|
|
1444
|
+
/** Whether to return completable messages. */
|
|
1445
|
+
completable?: TCompletable;
|
|
1446
|
+
}
|
|
1447
|
+
/** Options for receiving queue message batches. */
|
|
1448
|
+
interface QueueNextBatchOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1438
1449
|
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1439
1450
|
names?: readonly TName[];
|
|
1440
1451
|
/** Maximum number of messages to receive. Defaults to 1. */
|
|
@@ -1448,6 +1459,13 @@ interface QueueNextOptions<TName extends string = string, TCompletable extends b
|
|
|
1448
1459
|
}
|
|
1449
1460
|
/** Options for non-blocking queue reads. */
|
|
1450
1461
|
interface QueueTryNextOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1462
|
+
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1463
|
+
names?: readonly TName[];
|
|
1464
|
+
/** Whether to return completable messages. */
|
|
1465
|
+
completable?: TCompletable;
|
|
1466
|
+
}
|
|
1467
|
+
/** Options for non-blocking queue batch reads. */
|
|
1468
|
+
interface QueueTryNextBatchOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1451
1469
|
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1452
1470
|
names?: readonly TName[];
|
|
1453
1471
|
/** Maximum number of messages to receive. Defaults to 1. */
|
|
@@ -1468,8 +1486,10 @@ interface QueueIterOptions<TName extends string = string, TCompletable extends b
|
|
|
1468
1486
|
declare class ActorQueue<S, CP, CS, V, I, DB extends AnyDatabaseProvider, TEvents extends EventSchemaConfig = Record<never, never>, TQueues extends QueueSchemaConfig = Record<never, never>> {
|
|
1469
1487
|
#private;
|
|
1470
1488
|
constructor(queueManager: QueueManager<S, CP, CS, V, I, DB, TEvents, TQueues>, abortSignal: AbortSignal);
|
|
1471
|
-
next<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextOptions<TName, TCompletable>): Promise<
|
|
1472
|
-
|
|
1489
|
+
next<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextOptions<TName, TCompletable>): Promise<QueueResultMessageForName<TQueues, TName, TCompletable> | undefined>;
|
|
1490
|
+
nextBatch<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextBatchOptions<TName, TCompletable>): Promise<Array<QueueResultMessageForName<TQueues, TName, TCompletable>>>;
|
|
1491
|
+
tryNext<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueTryNextOptions<TName, TCompletable>): Promise<QueueResultMessageForName<TQueues, TName, TCompletable> | undefined>;
|
|
1492
|
+
tryNextBatch<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueTryNextBatchOptions<TName, TCompletable>): Promise<Array<QueueResultMessageForName<TQueues, TName, TCompletable>>>;
|
|
1473
1493
|
iter<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueIterOptions<TName, TCompletable>): AsyncIterableIterator<QueueResultMessageForName<TQueues, TName, TCompletable>>;
|
|
1474
1494
|
/** Sends a message to the specified queue. */
|
|
1475
1495
|
send<K extends keyof TQueues & string>(name: K, body: InferSchemaMap<TQueues>[K]): Promise<QueueMessage>;
|
|
@@ -2571,4 +2591,4 @@ declare const DocActorConfigSchema: z$1.ZodObject<{
|
|
|
2571
2591
|
}, z$1.core.$strip>>;
|
|
2572
2592
|
}, z$1.core.$strip>;
|
|
2573
2593
|
|
|
2574
|
-
export { DocRunnerConfigSchema as $, type ActorDriver as A, BeforeActionResponseContext as B, type Client as C, ConnContext as D, type Encoding as E, type ConnContextOf as F, ConnInitContext as G, type ConnInitContextOf as H, ConnectContext as I, type ConnectContextOf as J, CreateConnStateContext as K, type CreateConnStateContextOf as L, CreateContext as M, type CreateContextOf as N, CreateVarsContext as O, type CreateVarsContextOf as P, type QueueSchemaConfig as Q, type RegistryConfig as R, DestroyContext as S, type DestroyContextOf as T, DisconnectContext as U, type DisconnectContextOf as V, DocActorConfigSchema as W, DocActorOptionsSchema as X, DocConfigureRunnerPoolSchema as Y, DocInspectorConfigSchema as Z, DocRegistryConfigSchema as _, type AnyConn as a, ActorInstance as a$, DocServerlessConfigSchema as a0, type FetchHandler as a1, type InspectorUnsubscribe as a2, type LegacyStartServerOutput as a3, RUN_FUNCTION_CONFIG_SYMBOL as a4, Registry as a5, type RegistryActors as a6, type RegistryConfigInput as a7, RegistryConfigSchema as a8, RequestContext as a9, test as aA, type ActorAccessor as aB, type ActorActionFunction as aC, ActorClientError as aD, type ActorConn as aE, ActorConnDisposed as aF, ActorConnRaw as aG, type ActorConnStatus as aH, ActorError as aI, type ActorHandle as aJ, ActorHandleRaw as aK, ClientRaw as aL, type ConnectionStateCallback as aM, type CreateOptions as aN, type CreateRequest as aO, type EventUnsubscribe as aP, type ExtractActorsFromRegistry as aQ, type ExtractRegistryFromClient as aR, type GetOptions as aS, type GetWithIdOptions as aT, InternalError as aU, MalformedResponseMessage as aV, ManagerError as aW, type QueryOptions as aX, type Region as aY, type StatusChangeCallback as aZ, type ManagerDriver as a_, type RequestContextOf as aa, type RunConfig as ab, RunConfigSchema as ac, RunContext as ad, type RunContextOf as ae, type RunInspectorConfig as af, type ServerlessHandler as ag, SleepContext as ah, type SleepContextOf as ai, StateChangeContext as aj, type StateChangeContextOf as ak, type TestConfig as al, TestConfigSchema as am, type Type as an, WakeContext as ao, type WakeContextOf as ap, WebSocketContext as aq, type WebSocketContextOf as ar, type WorkflowInspectorConfig as as, buildActorNames as at, createClientWithDriver as au, getRunFunction as av, getRunInspectorConfig as aw, getRunMetadata as ax, lookupInRegistry as ay, setup as az, type AnyActorInstance as b, type ActorOutput as b0, type CreateInput as b1, type GetForIdInput as b2, type GetOrCreateWithKeyInput as b3, type GetWithKeyInput as b4, type ListActorsInput as b5, type ManagerDisplayInformation as b6, type ManagerDriverBuilder as b7, type ActorDriverBuilder as b8, type QueueFilterName as b9, type QueueNextOptions as ba, type QueueResultMessageForName as bb, type
|
|
2594
|
+
export { DocRunnerConfigSchema as $, type ActorDriver as A, BeforeActionResponseContext as B, type Client as C, ConnContext as D, type Encoding as E, type ConnContextOf as F, ConnInitContext as G, type ConnInitContextOf as H, ConnectContext as I, type ConnectContextOf as J, CreateConnStateContext as K, type CreateConnStateContextOf as L, CreateContext as M, type CreateContextOf as N, CreateVarsContext as O, type CreateVarsContextOf as P, type QueueSchemaConfig as Q, type RegistryConfig as R, DestroyContext as S, type DestroyContextOf as T, DisconnectContext as U, type DisconnectContextOf as V, DocActorConfigSchema as W, DocActorOptionsSchema as X, DocConfigureRunnerPoolSchema as Y, DocInspectorConfigSchema as Z, DocRegistryConfigSchema as _, type AnyConn as a, ActorInstance as a$, DocServerlessConfigSchema as a0, type FetchHandler as a1, type InspectorUnsubscribe as a2, type LegacyStartServerOutput as a3, RUN_FUNCTION_CONFIG_SYMBOL as a4, Registry as a5, type RegistryActors as a6, type RegistryConfigInput as a7, RegistryConfigSchema as a8, RequestContext as a9, test as aA, type ActorAccessor as aB, type ActorActionFunction as aC, ActorClientError as aD, type ActorConn as aE, ActorConnDisposed as aF, ActorConnRaw as aG, type ActorConnStatus as aH, ActorError as aI, type ActorHandle as aJ, ActorHandleRaw as aK, ClientRaw as aL, type ConnectionStateCallback as aM, type CreateOptions as aN, type CreateRequest as aO, type EventUnsubscribe as aP, type ExtractActorsFromRegistry as aQ, type ExtractRegistryFromClient as aR, type GetOptions as aS, type GetWithIdOptions as aT, InternalError as aU, MalformedResponseMessage as aV, ManagerError as aW, type QueryOptions as aX, type Region as aY, type StatusChangeCallback as aZ, type ManagerDriver as a_, type RequestContextOf as aa, type RunConfig as ab, RunConfigSchema as ac, RunContext as ad, type RunContextOf as ae, type RunInspectorConfig as af, type ServerlessHandler as ag, SleepContext as ah, type SleepContextOf as ai, StateChangeContext as aj, type StateChangeContextOf as ak, type TestConfig as al, TestConfigSchema as am, type Type as an, WakeContext as ao, type WakeContextOf as ap, WebSocketContext as aq, type WebSocketContextOf as ar, type WorkflowInspectorConfig as as, buildActorNames as at, createClientWithDriver as au, getRunFunction as av, getRunInspectorConfig as aw, getRunMetadata as ax, lookupInRegistry as ay, setup as az, type AnyActorInstance as b, type ActorOutput as b0, type CreateInput as b1, type GetForIdInput as b2, type GetOrCreateWithKeyInput as b3, type GetWithKeyInput as b4, type ListActorsInput as b5, type ManagerDisplayInformation as b6, type ManagerDriverBuilder as b7, type ActorDriverBuilder as b8, type QueueFilterName as b9, type QueueNextOptions as ba, type QueueResultMessageForName as bb, type QueueNextBatchOptions as bc, type InferSchemaMap as bd, type InferDatabaseClient as be, type InferEventArgs as bf, type EventSchemaConfig as c, type Actions as d, type ActorConfigInput as e, ActorDefinition as f, event as g, ActionContext as h, type ActionContextOf as i, type ActorConfig as j, ActorConfigSchema as k, ActorContext as l, type ActorContextOf as m, type ActorKey as n, ActorKv as o, type ActorQuery as p, queue as q, type ActorTypes as r, ActorsSchema as s, type AnyActorDefinition as t, type AnyClient as u, type AuthIntent as v, type BeforeActionResponseContextOf as w, BeforeConnectContext as x, type BeforeConnectContextOf as y, Conn as z };
|
|
@@ -1435,6 +1435,17 @@ type QueueCompletableMessageForName<TQueues extends QueueSchemaConfig, TName ext
|
|
|
1435
1435
|
type QueueResultMessageForName<TQueues extends QueueSchemaConfig, TName extends QueueFilterName<TQueues>, TCompletable extends boolean> = TCompletable extends true ? QueueCompletableMessageForName<TQueues, TName> : QueueMessageForName<TQueues, TName>;
|
|
1436
1436
|
/** Options for receiving queue messages. */
|
|
1437
1437
|
interface QueueNextOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1438
|
+
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1439
|
+
names?: readonly TName[];
|
|
1440
|
+
/** Timeout in milliseconds. Omit to wait indefinitely. */
|
|
1441
|
+
timeout?: number;
|
|
1442
|
+
/** Optional abort signal for this receive call. */
|
|
1443
|
+
signal?: AbortSignal;
|
|
1444
|
+
/** Whether to return completable messages. */
|
|
1445
|
+
completable?: TCompletable;
|
|
1446
|
+
}
|
|
1447
|
+
/** Options for receiving queue message batches. */
|
|
1448
|
+
interface QueueNextBatchOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1438
1449
|
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1439
1450
|
names?: readonly TName[];
|
|
1440
1451
|
/** Maximum number of messages to receive. Defaults to 1. */
|
|
@@ -1448,6 +1459,13 @@ interface QueueNextOptions<TName extends string = string, TCompletable extends b
|
|
|
1448
1459
|
}
|
|
1449
1460
|
/** Options for non-blocking queue reads. */
|
|
1450
1461
|
interface QueueTryNextOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1462
|
+
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1463
|
+
names?: readonly TName[];
|
|
1464
|
+
/** Whether to return completable messages. */
|
|
1465
|
+
completable?: TCompletable;
|
|
1466
|
+
}
|
|
1467
|
+
/** Options for non-blocking queue batch reads. */
|
|
1468
|
+
interface QueueTryNextBatchOptions<TName extends string = string, TCompletable extends boolean = boolean> {
|
|
1451
1469
|
/** Queue names to receive from. If omitted, reads from all queue names. */
|
|
1452
1470
|
names?: readonly TName[];
|
|
1453
1471
|
/** Maximum number of messages to receive. Defaults to 1. */
|
|
@@ -1468,8 +1486,10 @@ interface QueueIterOptions<TName extends string = string, TCompletable extends b
|
|
|
1468
1486
|
declare class ActorQueue<S, CP, CS, V, I, DB extends AnyDatabaseProvider, TEvents extends EventSchemaConfig = Record<never, never>, TQueues extends QueueSchemaConfig = Record<never, never>> {
|
|
1469
1487
|
#private;
|
|
1470
1488
|
constructor(queueManager: QueueManager<S, CP, CS, V, I, DB, TEvents, TQueues>, abortSignal: AbortSignal);
|
|
1471
|
-
next<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextOptions<TName, TCompletable>): Promise<
|
|
1472
|
-
|
|
1489
|
+
next<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextOptions<TName, TCompletable>): Promise<QueueResultMessageForName<TQueues, TName, TCompletable> | undefined>;
|
|
1490
|
+
nextBatch<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueNextBatchOptions<TName, TCompletable>): Promise<Array<QueueResultMessageForName<TQueues, TName, TCompletable>>>;
|
|
1491
|
+
tryNext<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueTryNextOptions<TName, TCompletable>): Promise<QueueResultMessageForName<TQueues, TName, TCompletable> | undefined>;
|
|
1492
|
+
tryNextBatch<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueTryNextBatchOptions<TName, TCompletable>): Promise<Array<QueueResultMessageForName<TQueues, TName, TCompletable>>>;
|
|
1473
1493
|
iter<const TName extends QueueFilterName<TQueues>, const TCompletable extends boolean = false>(opts?: QueueIterOptions<TName, TCompletable>): AsyncIterableIterator<QueueResultMessageForName<TQueues, TName, TCompletable>>;
|
|
1474
1494
|
/** Sends a message to the specified queue. */
|
|
1475
1495
|
send<K extends keyof TQueues & string>(name: K, body: InferSchemaMap<TQueues>[K]): Promise<QueueMessage>;
|
|
@@ -2571,4 +2591,4 @@ declare const DocActorConfigSchema: z$1.ZodObject<{
|
|
|
2571
2591
|
}, z$1.core.$strip>>;
|
|
2572
2592
|
}, z$1.core.$strip>;
|
|
2573
2593
|
|
|
2574
|
-
export { DocRunnerConfigSchema as $, type ActorDriver as A, BeforeActionResponseContext as B, type Client as C, ConnContext as D, type Encoding as E, type ConnContextOf as F, ConnInitContext as G, type ConnInitContextOf as H, ConnectContext as I, type ConnectContextOf as J, CreateConnStateContext as K, type CreateConnStateContextOf as L, CreateContext as M, type CreateContextOf as N, CreateVarsContext as O, type CreateVarsContextOf as P, type QueueSchemaConfig as Q, type RegistryConfig as R, DestroyContext as S, type DestroyContextOf as T, DisconnectContext as U, type DisconnectContextOf as V, DocActorConfigSchema as W, DocActorOptionsSchema as X, DocConfigureRunnerPoolSchema as Y, DocInspectorConfigSchema as Z, DocRegistryConfigSchema as _, type AnyConn as a, ActorInstance as a$, DocServerlessConfigSchema as a0, type FetchHandler as a1, type InspectorUnsubscribe as a2, type LegacyStartServerOutput as a3, RUN_FUNCTION_CONFIG_SYMBOL as a4, Registry as a5, type RegistryActors as a6, type RegistryConfigInput as a7, RegistryConfigSchema as a8, RequestContext as a9, test as aA, type ActorAccessor as aB, type ActorActionFunction as aC, ActorClientError as aD, type ActorConn as aE, ActorConnDisposed as aF, ActorConnRaw as aG, type ActorConnStatus as aH, ActorError as aI, type ActorHandle as aJ, ActorHandleRaw as aK, ClientRaw as aL, type ConnectionStateCallback as aM, type CreateOptions as aN, type CreateRequest as aO, type EventUnsubscribe as aP, type ExtractActorsFromRegistry as aQ, type ExtractRegistryFromClient as aR, type GetOptions as aS, type GetWithIdOptions as aT, InternalError as aU, MalformedResponseMessage as aV, ManagerError as aW, type QueryOptions as aX, type Region as aY, type StatusChangeCallback as aZ, type ManagerDriver as a_, type RequestContextOf as aa, type RunConfig as ab, RunConfigSchema as ac, RunContext as ad, type RunContextOf as ae, type RunInspectorConfig as af, type ServerlessHandler as ag, SleepContext as ah, type SleepContextOf as ai, StateChangeContext as aj, type StateChangeContextOf as ak, type TestConfig as al, TestConfigSchema as am, type Type as an, WakeContext as ao, type WakeContextOf as ap, WebSocketContext as aq, type WebSocketContextOf as ar, type WorkflowInspectorConfig as as, buildActorNames as at, createClientWithDriver as au, getRunFunction as av, getRunInspectorConfig as aw, getRunMetadata as ax, lookupInRegistry as ay, setup as az, type AnyActorInstance as b, type ActorOutput as b0, type CreateInput as b1, type GetForIdInput as b2, type GetOrCreateWithKeyInput as b3, type GetWithKeyInput as b4, type ListActorsInput as b5, type ManagerDisplayInformation as b6, type ManagerDriverBuilder as b7, type ActorDriverBuilder as b8, type QueueFilterName as b9, type QueueNextOptions as ba, type QueueResultMessageForName as bb, type
|
|
2594
|
+
export { DocRunnerConfigSchema as $, type ActorDriver as A, BeforeActionResponseContext as B, type Client as C, ConnContext as D, type Encoding as E, type ConnContextOf as F, ConnInitContext as G, type ConnInitContextOf as H, ConnectContext as I, type ConnectContextOf as J, CreateConnStateContext as K, type CreateConnStateContextOf as L, CreateContext as M, type CreateContextOf as N, CreateVarsContext as O, type CreateVarsContextOf as P, type QueueSchemaConfig as Q, type RegistryConfig as R, DestroyContext as S, type DestroyContextOf as T, DisconnectContext as U, type DisconnectContextOf as V, DocActorConfigSchema as W, DocActorOptionsSchema as X, DocConfigureRunnerPoolSchema as Y, DocInspectorConfigSchema as Z, DocRegistryConfigSchema as _, type AnyConn as a, ActorInstance as a$, DocServerlessConfigSchema as a0, type FetchHandler as a1, type InspectorUnsubscribe as a2, type LegacyStartServerOutput as a3, RUN_FUNCTION_CONFIG_SYMBOL as a4, Registry as a5, type RegistryActors as a6, type RegistryConfigInput as a7, RegistryConfigSchema as a8, RequestContext as a9, test as aA, type ActorAccessor as aB, type ActorActionFunction as aC, ActorClientError as aD, type ActorConn as aE, ActorConnDisposed as aF, ActorConnRaw as aG, type ActorConnStatus as aH, ActorError as aI, type ActorHandle as aJ, ActorHandleRaw as aK, ClientRaw as aL, type ConnectionStateCallback as aM, type CreateOptions as aN, type CreateRequest as aO, type EventUnsubscribe as aP, type ExtractActorsFromRegistry as aQ, type ExtractRegistryFromClient as aR, type GetOptions as aS, type GetWithIdOptions as aT, InternalError as aU, MalformedResponseMessage as aV, ManagerError as aW, type QueryOptions as aX, type Region as aY, type StatusChangeCallback as aZ, type ManagerDriver as a_, type RequestContextOf as aa, type RunConfig as ab, RunConfigSchema as ac, RunContext as ad, type RunContextOf as ae, type RunInspectorConfig as af, type ServerlessHandler as ag, SleepContext as ah, type SleepContextOf as ai, StateChangeContext as aj, type StateChangeContextOf as ak, type TestConfig as al, TestConfigSchema as am, type Type as an, WakeContext as ao, type WakeContextOf as ap, WebSocketContext as aq, type WebSocketContextOf as ar, type WorkflowInspectorConfig as as, buildActorNames as at, createClientWithDriver as au, getRunFunction as av, getRunInspectorConfig as aw, getRunMetadata as ax, lookupInRegistry as ay, setup as az, type AnyActorInstance as b, type ActorOutput as b0, type CreateInput as b1, type GetForIdInput as b2, type GetOrCreateWithKeyInput as b3, type GetWithKeyInput as b4, type ListActorsInput as b5, type ManagerDisplayInformation as b6, type ManagerDriverBuilder as b7, type ActorDriverBuilder as b8, type QueueFilterName as b9, type QueueNextOptions as ba, type QueueResultMessageForName as bb, type QueueNextBatchOptions as bc, type InferSchemaMap as bd, type InferDatabaseClient as be, type InferEventArgs as bf, type EventSchemaConfig as c, type Actions as d, type ActorConfigInput as e, ActorDefinition as f, event as g, ActionContext as h, type ActionContextOf as i, type ActorConfig as j, ActorConfigSchema as k, ActorContext as l, type ActorContextOf as m, type ActorKey as n, ActorKv as o, type ActorQuery as p, queue as q, type ActorTypes as r, ActorsSchema as s, type AnyActorDefinition as t, type AnyClient as u, type AuthIntent as v, type BeforeActionResponseContextOf as w, BeforeConnectContext as x, type BeforeConnectContextOf as y, Conn as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as pino from 'pino';
|
|
2
|
-
import { t as AnyActorDefinition, f as ActorDefinition, c as EventSchemaConfig, Q as QueueSchemaConfig, ad as RunContext, b9 as QueueFilterName, ba as QueueNextOptions, bb as QueueResultMessageForName, bc as InferSchemaMap, a5 as Registry, C as Client,
|
|
2
|
+
import { t as AnyActorDefinition, f as ActorDefinition, c as EventSchemaConfig, Q as QueueSchemaConfig, ad as RunContext, b9 as QueueFilterName, ba as QueueNextOptions, bb as QueueResultMessageForName, bc as QueueNextBatchOptions, bd as InferSchemaMap, a5 as Registry, C as Client, be as InferDatabaseClient, bf as InferEventArgs } from './config-_gfywqqI.cjs';
|
|
3
3
|
import { WorkflowContextInterface, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
4
4
|
import { A as AnyDatabaseProvider } from './config-BiNoIHRs.cjs';
|
|
5
5
|
|
|
6
|
-
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal"
|
|
7
|
-
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal"
|
|
8
|
-
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<
|
|
9
|
-
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<
|
|
6
|
+
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
7
|
+
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
8
|
+
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextBatchOptions<TName, TCompletable>, "signal">;
|
|
9
|
+
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<QueueNextBatchOptions<string, TCompletable>, "signal">;
|
|
10
10
|
type ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = Omit<LoopConfig<S, T>, "run"> & {
|
|
11
11
|
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? void : never)>;
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as pino from 'pino';
|
|
2
|
-
import { t as AnyActorDefinition, f as ActorDefinition, c as EventSchemaConfig, Q as QueueSchemaConfig, ad as RunContext, b9 as QueueFilterName, ba as QueueNextOptions, bb as QueueResultMessageForName, bc as InferSchemaMap, a5 as Registry, C as Client,
|
|
2
|
+
import { t as AnyActorDefinition, f as ActorDefinition, c as EventSchemaConfig, Q as QueueSchemaConfig, ad as RunContext, b9 as QueueFilterName, ba as QueueNextOptions, bb as QueueResultMessageForName, bc as QueueNextBatchOptions, bd as InferSchemaMap, a5 as Registry, C as Client, be as InferDatabaseClient, bf as InferEventArgs } from './config-P3XujgRr.js';
|
|
3
3
|
import { WorkflowContextInterface, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
4
4
|
import { A as AnyDatabaseProvider } from './config-BiNoIHRs.js';
|
|
5
5
|
|
|
6
|
-
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal"
|
|
7
|
-
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal"
|
|
8
|
-
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<
|
|
9
|
-
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<
|
|
6
|
+
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
7
|
+
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
8
|
+
type WorkflowActorQueueNextBatchOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextBatchOptions<TName, TCompletable>, "signal">;
|
|
9
|
+
type WorkflowActorQueueNextBatchOptionsFallback<TCompletable extends boolean> = Omit<QueueNextBatchOptions<string, TCompletable>, "signal">;
|
|
10
10
|
type ActorWorkflowLoopConfig<S, T, TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TEvents extends EventSchemaConfig, TQueues extends QueueSchemaConfig> = Omit<LoopConfig<S, T>, "run"> & {
|
|
11
11
|
run: (ctx: ActorWorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>, state: S) => Promise<LoopResult<S, T> | (S extends undefined ? void : never)>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { b7 as ManagerDriverBuilder, b8 as ActorDriverBuilder } from './config-
|
|
2
|
+
import { b7 as ManagerDriverBuilder, b8 as ActorDriverBuilder } from './config-_gfywqqI.cjs';
|
|
3
3
|
|
|
4
4
|
declare const DriverConfigSchema: z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { b7 as ManagerDriverBuilder, b8 as ActorDriverBuilder } from './config-
|
|
2
|
+
import { b7 as ManagerDriverBuilder, b8 as ActorDriverBuilder } from './config-P3XujgRr.js';
|
|
3
3
|
|
|
4
4
|
declare const DriverConfigSchema: z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkMNS5LY6Mcjs = require('../chunk-MNS5LY6M.cjs');
|
|
21
22
|
require('../chunk-NIYZDWMW.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
25
|
-
var
|
|
26
|
-
require('../chunk-
|
|
26
|
+
var _chunkHFWRHT5Tcjs = require('../chunk-HFWRHT5T.cjs');
|
|
27
|
+
require('../chunk-RMJJE43B.cjs');
|
|
27
28
|
require('../chunk-L47L3ZWJ.cjs');
|
|
28
29
|
require('../chunk-HDQ2JUQT.cjs');
|
|
29
30
|
|
|
@@ -47,5 +48,6 @@ require('../chunk-HDQ2JUQT.cjs');
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
|
|
52
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkMNS5LY6Mcjs.ALLOWED_PUBLIC_HEADERS; exports.HEADER_ACTOR_ID = _chunkMNS5LY6Mcjs.HEADER_ACTOR_ID; exports.HEADER_ACTOR_QUERY = _chunkMNS5LY6Mcjs.HEADER_ACTOR_QUERY; exports.HEADER_CONN_PARAMS = _chunkMNS5LY6Mcjs.HEADER_CONN_PARAMS; exports.HEADER_ENCODING = _chunkMNS5LY6Mcjs.HEADER_ENCODING; exports.HEADER_RIVET_ACTOR = _chunkMNS5LY6Mcjs.HEADER_RIVET_ACTOR; exports.HEADER_RIVET_TARGET = _chunkMNS5LY6Mcjs.HEADER_RIVET_TARGET; exports.KEYS = _chunkHFWRHT5Tcjs.KEYS; exports.PATH_CONNECT = _chunkMNS5LY6Mcjs.PATH_CONNECT; exports.PATH_WEBSOCKET_BASE = _chunkMNS5LY6Mcjs.PATH_WEBSOCKET_BASE; exports.PATH_WEBSOCKET_PREFIX = _chunkMNS5LY6Mcjs.PATH_WEBSOCKET_PREFIX; exports.WS_PROTOCOL_ACTOR = _chunkMNS5LY6Mcjs.WS_PROTOCOL_ACTOR; exports.WS_PROTOCOL_CONN_PARAMS = _chunkMNS5LY6Mcjs.WS_PROTOCOL_CONN_PARAMS; exports.WS_PROTOCOL_ENCODING = _chunkMNS5LY6Mcjs.WS_PROTOCOL_ENCODING; exports.WS_PROTOCOL_PATH = _chunkMNS5LY6Mcjs.WS_TEST_PROTOCOL_PATH; exports.WS_PROTOCOL_STANDARD = _chunkMNS5LY6Mcjs.WS_PROTOCOL_STANDARD; exports.WS_PROTOCOL_TARGET = _chunkMNS5LY6Mcjs.WS_PROTOCOL_TARGET; exports.buildManagerRouter = _chunkMNS5LY6Mcjs.buildManagerRouter; exports.getInitialActorKvState = _chunkMNS5LY6Mcjs.getInitialActorKvState; exports.importSqliteVfs = _chunkMNS5LY6Mcjs.importSqliteVfs; exports.makeConnKey = _chunkHFWRHT5Tcjs.makeConnKey;
|
|
51
53
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/driver-helpers/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/driver-helpers/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,i2CAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/driver-helpers/mod.cjs"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { R as RegistryConfig, a_ as ManagerDriver } from '../config-
|
|
2
|
-
export { A as ActorDriver, a$ as ActorInstance, b0 as ActorOutput, b as AnyActorInstance, b1 as CreateInput, b2 as GetForIdInput, b3 as GetOrCreateWithKeyInput, b4 as GetWithKeyInput, b5 as ListActorsInput, b6 as ManagerDisplayInformation } from '../config-
|
|
1
|
+
import { R as RegistryConfig, a_ as ManagerDriver } from '../config-_gfywqqI.cjs';
|
|
2
|
+
export { A as ActorDriver, a$ as ActorInstance, b0 as ActorOutput, b as AnyActorInstance, b1 as CreateInput, b2 as GetForIdInput, b3 as GetOrCreateWithKeyInput, b4 as GetWithKeyInput, b5 as ListActorsInput, b6 as ManagerDisplayInformation } from '../config-_gfywqqI.cjs';
|
|
3
3
|
export { K as KEYS, m as makeConnKey } from '../keys-CydblqMh.cjs';
|
|
4
4
|
export { A as ALLOWED_PUBLIC_HEADERS, H as HEADER_ACTOR_ID, b as HEADER_ACTOR_QUERY, c as HEADER_CONN_PARAMS, d as HEADER_ENCODING, e as HEADER_RIVET_ACTOR, f as HEADER_RIVET_TARGET, P as PATH_CONNECT, g as PATH_WEBSOCKET_BASE, a as PATH_WEBSOCKET_PREFIX, W as WS_PROTOCOL_ACTOR, h as WS_PROTOCOL_CONN_PARAMS, i as WS_PROTOCOL_ENCODING, j as WS_PROTOCOL_PATH, k as WS_PROTOCOL_STANDARD, l as WS_PROTOCOL_TARGET } from '../actor-router-consts-D29T1Z-K.cjs';
|
|
5
5
|
import * as _hono_zod_openapi from '@hono/zod-openapi';
|
|
6
6
|
import { Hono } from 'hono';
|
|
7
7
|
import { GetUpgradeWebSocket } from '../utils.cjs';
|
|
8
|
+
import { SqliteVfs } from '@rivetkit/sqlite-vfs';
|
|
8
9
|
import 'zod/v4';
|
|
9
10
|
import '@rivetkit/virtual-websocket';
|
|
10
11
|
import '../config-BiNoIHRs.cjs';
|
|
11
|
-
import '@rivetkit/sqlite-vfs';
|
|
12
12
|
import '@rivetkit/traces';
|
|
13
13
|
import 'vbare';
|
|
14
14
|
import 'pino';
|
|
@@ -31,5 +31,17 @@ declare function buildManagerRouter(config: RegistryConfig, managerDriver: Manag
|
|
|
31
31
|
* write the initial state in to KV storage before starting the actor.
|
|
32
32
|
*/
|
|
33
33
|
declare function getInitialActorKvState(input: unknown | undefined): [Uint8Array, Uint8Array][];
|
|
34
|
+
/**
|
|
35
|
+
* Dynamically import @rivetkit/sqlite-vfs and return a fresh SqliteVfs instance.
|
|
36
|
+
*
|
|
37
|
+
* The module specifier is built with Array.join() so that bundlers (esbuild, tsup,
|
|
38
|
+
* Turbopack) cannot statically analyze or constant-fold the import path. This
|
|
39
|
+
* prevents them from tracing into the WASM dependency tree, which would cause
|
|
40
|
+
* errors in environments that don't support .wasm imports (e.g. Turbopack).
|
|
41
|
+
*
|
|
42
|
+
* Each call returns a new instance so that actors get independent SQLite modules,
|
|
43
|
+
* avoiding cross-actor re-entry on the non-reentrant async build.
|
|
44
|
+
*/
|
|
45
|
+
declare function importSqliteVfs(): Promise<SqliteVfs>;
|
|
34
46
|
|
|
35
|
-
export { ManagerDriver, buildManagerRouter, getInitialActorKvState };
|
|
47
|
+
export { ManagerDriver, buildManagerRouter, getInitialActorKvState, importSqliteVfs };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { R as RegistryConfig, a_ as ManagerDriver } from '../config-
|
|
2
|
-
export { A as ActorDriver, a$ as ActorInstance, b0 as ActorOutput, b as AnyActorInstance, b1 as CreateInput, b2 as GetForIdInput, b3 as GetOrCreateWithKeyInput, b4 as GetWithKeyInput, b5 as ListActorsInput, b6 as ManagerDisplayInformation } from '../config-
|
|
1
|
+
import { R as RegistryConfig, a_ as ManagerDriver } from '../config-P3XujgRr.js';
|
|
2
|
+
export { A as ActorDriver, a$ as ActorInstance, b0 as ActorOutput, b as AnyActorInstance, b1 as CreateInput, b2 as GetForIdInput, b3 as GetOrCreateWithKeyInput, b4 as GetWithKeyInput, b5 as ListActorsInput, b6 as ManagerDisplayInformation } from '../config-P3XujgRr.js';
|
|
3
3
|
export { K as KEYS, m as makeConnKey } from '../keys-CydblqMh.js';
|
|
4
4
|
export { A as ALLOWED_PUBLIC_HEADERS, H as HEADER_ACTOR_ID, b as HEADER_ACTOR_QUERY, c as HEADER_CONN_PARAMS, d as HEADER_ENCODING, e as HEADER_RIVET_ACTOR, f as HEADER_RIVET_TARGET, P as PATH_CONNECT, g as PATH_WEBSOCKET_BASE, a as PATH_WEBSOCKET_PREFIX, W as WS_PROTOCOL_ACTOR, h as WS_PROTOCOL_CONN_PARAMS, i as WS_PROTOCOL_ENCODING, j as WS_PROTOCOL_PATH, k as WS_PROTOCOL_STANDARD, l as WS_PROTOCOL_TARGET } from '../actor-router-consts-D29T1Z-K.js';
|
|
5
5
|
import * as _hono_zod_openapi from '@hono/zod-openapi';
|
|
6
6
|
import { Hono } from 'hono';
|
|
7
7
|
import { GetUpgradeWebSocket } from '../utils.js';
|
|
8
|
+
import { SqliteVfs } from '@rivetkit/sqlite-vfs';
|
|
8
9
|
import 'zod/v4';
|
|
9
10
|
import '@rivetkit/virtual-websocket';
|
|
10
11
|
import '../config-BiNoIHRs.js';
|
|
11
|
-
import '@rivetkit/sqlite-vfs';
|
|
12
12
|
import '@rivetkit/traces';
|
|
13
13
|
import 'vbare';
|
|
14
14
|
import 'pino';
|
|
@@ -31,5 +31,17 @@ declare function buildManagerRouter(config: RegistryConfig, managerDriver: Manag
|
|
|
31
31
|
* write the initial state in to KV storage before starting the actor.
|
|
32
32
|
*/
|
|
33
33
|
declare function getInitialActorKvState(input: unknown | undefined): [Uint8Array, Uint8Array][];
|
|
34
|
+
/**
|
|
35
|
+
* Dynamically import @rivetkit/sqlite-vfs and return a fresh SqliteVfs instance.
|
|
36
|
+
*
|
|
37
|
+
* The module specifier is built with Array.join() so that bundlers (esbuild, tsup,
|
|
38
|
+
* Turbopack) cannot statically analyze or constant-fold the import path. This
|
|
39
|
+
* prevents them from tracing into the WASM dependency tree, which would cause
|
|
40
|
+
* errors in environments that don't support .wasm imports (e.g. Turbopack).
|
|
41
|
+
*
|
|
42
|
+
* Each call returns a new instance so that actors get independent SQLite modules,
|
|
43
|
+
* avoiding cross-actor re-entry on the non-reentrant async build.
|
|
44
|
+
*/
|
|
45
|
+
declare function importSqliteVfs(): Promise<SqliteVfs>;
|
|
34
46
|
|
|
35
|
-
export { ManagerDriver, buildManagerRouter, getInitialActorKvState };
|
|
47
|
+
export { ManagerDriver, buildManagerRouter, getInitialActorKvState, importSqliteVfs };
|
|
@@ -16,14 +16,15 @@ import {
|
|
|
16
16
|
WS_PROTOCOL_TARGET,
|
|
17
17
|
WS_TEST_PROTOCOL_PATH,
|
|
18
18
|
buildManagerRouter,
|
|
19
|
-
getInitialActorKvState
|
|
20
|
-
|
|
19
|
+
getInitialActorKvState,
|
|
20
|
+
importSqliteVfs
|
|
21
|
+
} from "../chunk-VMX4I4MP.js";
|
|
21
22
|
import "../chunk-LXUQ667X.js";
|
|
22
23
|
import {
|
|
23
24
|
KEYS,
|
|
24
25
|
makeConnKey
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-PSUVV4HM.js";
|
|
27
|
+
import "../chunk-WUXR722E.js";
|
|
27
28
|
import "../chunk-7HTNH26M.js";
|
|
28
29
|
import "../chunk-424PT5DM.js";
|
|
29
30
|
export {
|
|
@@ -46,6 +47,7 @@ export {
|
|
|
46
47
|
WS_PROTOCOL_TARGET,
|
|
47
48
|
buildManagerRouter,
|
|
48
49
|
getInitialActorKvState,
|
|
50
|
+
importSqliteVfs,
|
|
49
51
|
makeConnKey
|
|
50
52
|
};
|
|
51
53
|
//# sourceMappingURL=mod.js.map
|