rivetkit 2.0.8 → 2.0.10
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/tsup/{chunk-2FAWAPRT.js → chunk-346X2XU4.js} +2 -2
- package/dist/tsup/{chunk-SFRRXLRM.js → chunk-7E5K3375.js} +2 -2
- package/dist/tsup/{chunk-3WRAGTDC.cjs → chunk-CA3X5M6H.cjs} +92 -39
- package/dist/tsup/{chunk-PVKV2O2E.js.map → chunk-CA3X5M6H.cjs.map} +1 -1
- package/dist/tsup/{chunk-L5MHM6JJ.cjs → chunk-DVPXSB4B.cjs} +12 -12
- package/dist/tsup/{chunk-L5MHM6JJ.cjs.map → chunk-DVPXSB4B.cjs.map} +1 -1
- package/dist/tsup/{chunk-DQVVH5ZK.cjs → chunk-GIFHYL7A.cjs} +5 -6
- package/dist/tsup/chunk-GIFHYL7A.cjs.map +1 -0
- package/dist/tsup/{chunk-N7OVEOMU.js → chunk-H7E2UU23.js} +38 -15
- package/dist/tsup/chunk-H7E2UU23.js.map +1 -0
- package/dist/tsup/{chunk-A6TV3QU6.js → chunk-HI55LHM3.js} +5 -6
- package/dist/tsup/chunk-HI55LHM3.js.map +1 -0
- package/dist/tsup/{chunk-FGOZELKN.cjs → chunk-I3FB346I.cjs} +112 -58
- package/dist/tsup/chunk-I3FB346I.cjs.map +1 -0
- package/dist/tsup/{chunk-DOZBWJRI.js → chunk-KGDZYQYE.js} +2 -2
- package/dist/tsup/{chunk-KYEEAVJO.cjs → chunk-KH5WFDUK.cjs} +6 -6
- package/dist/tsup/{chunk-KYEEAVJO.cjs.map → chunk-KH5WFDUK.cjs.map} +1 -1
- package/dist/tsup/{chunk-WP7YG7S5.js → chunk-KL4V2ULR.js} +5 -4
- package/dist/tsup/chunk-KL4V2ULR.js.map +1 -0
- package/dist/tsup/{chunk-S6EAEZQA.js → chunk-MLQIYKAZ.js} +106 -52
- package/dist/tsup/chunk-MLQIYKAZ.js.map +1 -0
- package/dist/tsup/{chunk-3ZMJUIL3.js → chunk-N3A5GYJU.js} +3 -3
- package/dist/tsup/{chunk-CKSA7NOS.cjs → chunk-PDFL7FBL.cjs} +717 -380
- package/dist/tsup/chunk-PDFL7FBL.cjs.map +1 -0
- package/dist/tsup/{chunk-ESD2JX3L.cjs → chunk-PPLR53PP.cjs} +3 -3
- package/dist/tsup/{chunk-ESD2JX3L.cjs.map → chunk-PPLR53PP.cjs.map} +1 -1
- package/dist/tsup/{chunk-6INXQCH7.cjs → chunk-PSCDCEXM.cjs} +17 -12
- package/dist/tsup/chunk-PSCDCEXM.cjs.map +1 -0
- package/dist/tsup/{chunk-PVKV2O2E.js → chunk-QRFXXTLG.js} +96 -43
- package/dist/tsup/chunk-QRFXXTLG.js.map +1 -0
- package/dist/tsup/{chunk-RM2V2IRK.js → chunk-R2S45MO6.js} +14 -9
- package/dist/tsup/chunk-R2S45MO6.js.map +1 -0
- package/dist/tsup/{chunk-QGUQB3NC.cjs → chunk-SIWYIRXP.cjs} +7 -6
- package/dist/tsup/chunk-SIWYIRXP.cjs.map +1 -0
- package/dist/tsup/{chunk-E77RVI3P.js → chunk-VJRXZPTT.js} +601 -264
- package/dist/tsup/chunk-VJRXZPTT.js.map +1 -0
- package/dist/tsup/{chunk-KDNB2BQX.cjs → chunk-VZMXAZKC.cjs} +229 -206
- package/dist/tsup/chunk-VZMXAZKC.cjs.map +1 -0
- package/dist/tsup/{chunk-TPJNKVFB.cjs → chunk-YKVTF7MP.cjs} +7 -7
- package/dist/tsup/{chunk-TPJNKVFB.cjs.map → chunk-YKVTF7MP.cjs.map} +1 -1
- package/dist/tsup/client/mod.cjs +9 -9
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- 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/{conn-ChAuuTr0.d.cts → conn-Cc9WHuN4.d.cts} +196 -185
- package/dist/tsup/{conn-CjUkMEcm.d.ts → conn-DfPG71FA.d.ts} +196 -185
- package/dist/tsup/driver-helpers/mod.cjs +7 -5
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +4 -2
- package/dist/tsup/driver-helpers/mod.d.ts +4 -2
- package/dist/tsup/driver-helpers/mod.js +9 -7
- package/dist/tsup/driver-test-suite/mod.cjs +116 -102
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +3 -2
- package/dist/tsup/driver-test-suite/mod.d.ts +3 -2
- package/dist/tsup/driver-test-suite/mod.js +61 -47
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +6 -6
- package/dist/tsup/inspector/mod.d.cts +6 -6
- package/dist/tsup/inspector/mod.d.ts +6 -6
- package/dist/tsup/inspector/mod.js +5 -5
- package/dist/tsup/mod.cjs +10 -10
- package/dist/tsup/mod.d.cts +8 -39
- package/dist/tsup/mod.d.ts +8 -39
- package/dist/tsup/mod.js +9 -9
- package/dist/tsup/test/mod.cjs +11 -11
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +10 -10
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.d.cts +2 -1
- package/dist/tsup/utils.d.ts +2 -1
- package/dist/tsup/utils.js +1 -1
- package/package.json +4 -5
- package/src/actor/driver.ts +2 -2
- package/src/actor/instance.ts +4 -4
- package/src/actor/protocol/serde.ts +75 -3
- package/src/actor/router-endpoints.ts +6 -6
- package/src/actor/router.ts +2 -2
- package/src/client/actor-conn.ts +24 -3
- package/src/client/config.ts +18 -25
- package/src/driver-helpers/mod.ts +5 -1
- package/src/driver-test-suite/mod.ts +65 -43
- package/src/driver-test-suite/utils.ts +4 -1
- package/src/drivers/default.ts +11 -9
- package/src/drivers/engine/actor-driver.ts +40 -39
- package/src/drivers/engine/config.ts +9 -22
- package/src/drivers/engine/mod.ts +9 -8
- package/src/drivers/file-system/global-state.ts +4 -4
- package/src/engine-process/log.ts +5 -0
- package/src/engine-process/mod.ts +316 -0
- package/src/inspector/utils.ts +6 -4
- package/src/manager/driver.ts +3 -3
- package/src/manager/gateway.ts +29 -11
- package/src/manager/router-schema.ts +20 -0
- package/src/manager/router.ts +139 -58
- package/src/registry/mod.ts +146 -120
- package/src/registry/run-config.ts +116 -47
- package/src/registry/serve.ts +3 -1
- package/src/remote-manager-driver/mod.ts +3 -2
- package/src/serde.ts +18 -3
- package/src/test/config.ts +2 -2
- package/src/test/mod.ts +6 -3
- package/src/utils.ts +2 -0
- package/dist/tsup/chunk-3WRAGTDC.cjs.map +0 -1
- package/dist/tsup/chunk-6INXQCH7.cjs.map +0 -1
- package/dist/tsup/chunk-A6TV3QU6.js.map +0 -1
- package/dist/tsup/chunk-CKSA7NOS.cjs.map +0 -1
- package/dist/tsup/chunk-DQVVH5ZK.cjs.map +0 -1
- package/dist/tsup/chunk-E77RVI3P.js.map +0 -1
- package/dist/tsup/chunk-FGOZELKN.cjs.map +0 -1
- package/dist/tsup/chunk-KDNB2BQX.cjs.map +0 -1
- package/dist/tsup/chunk-N7OVEOMU.js.map +0 -1
- package/dist/tsup/chunk-QGUQB3NC.cjs.map +0 -1
- package/dist/tsup/chunk-RM2V2IRK.js.map +0 -1
- package/dist/tsup/chunk-S6EAEZQA.js.map +0 -1
- package/dist/tsup/chunk-WP7YG7S5.js.map +0 -1
- /package/dist/tsup/{chunk-2FAWAPRT.js.map → chunk-346X2XU4.js.map} +0 -0
- /package/dist/tsup/{chunk-SFRRXLRM.js.map → chunk-7E5K3375.js.map} +0 -0
- /package/dist/tsup/{chunk-DOZBWJRI.js.map → chunk-KGDZYQYE.js.map} +0 -0
- /package/dist/tsup/{chunk-3ZMJUIL3.js.map → chunk-N3A5GYJU.js.map} +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSIWYIRXPcjs = require('../chunk-SIWYIRXP.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -27,10 +27,10 @@ var _chunkQGUQB3NCcjs = require('../chunk-QGUQB3NC.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
require('../chunk-
|
|
32
|
-
require('../chunk-
|
|
33
|
-
require('../chunk-
|
|
30
|
+
var _chunkDVPXSB4Bcjs = require('../chunk-DVPXSB4B.cjs');
|
|
31
|
+
require('../chunk-I3FB346I.cjs');
|
|
32
|
+
require('../chunk-YKVTF7MP.cjs');
|
|
33
|
+
require('../chunk-GIFHYL7A.cjs');
|
|
34
34
|
require('../chunk-5QGQK44L.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
@@ -59,5 +59,5 @@ require('../chunk-5QGQK44L.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
exports.ActorFeature =
|
|
62
|
+
exports.ActorFeature = _chunkDVPXSB4Bcjs.ActorFeature; exports.ActorId = _chunkDVPXSB4Bcjs.ActorId; exports.ActorLogEntry = _chunkDVPXSB4Bcjs.ActorLogEntry; exports.ActorSchema = _chunkDVPXSB4Bcjs.ActorSchema; exports.BuildSchema = _chunkDVPXSB4Bcjs.BuildSchema; exports.BuildsSchema = _chunkDVPXSB4Bcjs.BuildsSchema; exports.ColumnSchema = _chunkDVPXSB4Bcjs.ColumnSchema; exports.ColumnsSchema = _chunkDVPXSB4Bcjs.ColumnsSchema; exports.ConnectionSchema = _chunkDVPXSB4Bcjs.ConnectionSchema; exports.CreateActorSchema = _chunkDVPXSB4Bcjs.CreateActorSchema; exports.DatabaseQuerySchema = _chunkDVPXSB4Bcjs.DatabaseQuerySchema; exports.ForeignKeySchema = _chunkDVPXSB4Bcjs.ForeignKeySchema; exports.ForeignKeysSchema = _chunkDVPXSB4Bcjs.ForeignKeysSchema; exports.OperationSchema = _chunkDVPXSB4Bcjs.OperationSchema; exports.PatchSchema = _chunkDVPXSB4Bcjs.PatchSchema; exports.RealtimeEventSchema = _chunkDVPXSB4Bcjs.RealtimeEventSchema; exports.RecordedRealtimeEventSchema = _chunkDVPXSB4Bcjs.RecordedRealtimeEventSchema; exports.TableSchema = _chunkDVPXSB4Bcjs.TableSchema; exports.TablesSchema = _chunkDVPXSB4Bcjs.TablesSchema; exports.compareSecrets = _chunkSIWYIRXPcjs.compareSecrets; exports.configureInspectorAccessToken = _chunkSIWYIRXPcjs.configureInspectorAccessToken; exports.createActorInspectorClient = _chunkSIWYIRXPcjs.createActorInspectorClient; exports.createManagerInspectorClient = _chunkSIWYIRXPcjs.createManagerInspectorClient; exports.getInspectorUrl = _chunkSIWYIRXPcjs.getInspectorUrl; exports.isInspectorEnabled = _chunkSIWYIRXPcjs.isInspectorEnabled; exports.secureInspector = _chunkSIWYIRXPcjs.secureInspector;
|
|
63
63
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { al as ActorFeature, c as RunnerConfig, H as RunnerConfigInput, ai as ManagerDriver } from '../conn-Cc9WHuN4.cjs';
|
|
2
|
+
export { ap as Actor, am as ActorId, an as ActorLogEntry, ao as ActorSchema, aP as Build, aO as BuildSchema, aR as Builds, aQ as BuildsSchema, aH as Column, aG as ColumnSchema, aJ as Columns, aI as ColumnsSchema, av as Connection, au as ConnectionSchema, aT as CreateActor, aS as CreateActorSchema, aB as DatabaseQuery, aA as DatabaseQuerySchema, aL as ForeignKey, aK as ForeignKeySchema, aN as ForeignKeys, aM as ForeignKeysSchema, ar as Operation, aq as OperationSchema, at as Patch, as as PatchSchema, ax as RealtimeEvent, aw as RealtimeEventSchema, az as RecordedRealtimeEvent, ay as RecordedRealtimeEventSchema, aD as Table, aC as TableSchema, aF as Tables, aE as TablesSchema } from '../conn-Cc9WHuN4.cjs';
|
|
3
3
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
4
4
|
import * as hono_utils_types from 'hono/utils/types';
|
|
5
5
|
import * as hono_client from 'hono/client';
|
|
@@ -427,9 +427,9 @@ type ManagerInspectorClient = typeof client;
|
|
|
427
427
|
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
|
|
428
428
|
|
|
429
429
|
declare function compareSecrets(providedSecret: string, validSecret: string): boolean;
|
|
430
|
-
declare const secureInspector: (runConfig:
|
|
431
|
-
declare function getInspectorUrl(runConfig:
|
|
432
|
-
declare const isInspectorEnabled: (runConfig:
|
|
433
|
-
declare const configureInspectorAccessToken: (runConfig:
|
|
430
|
+
declare const secureInspector: (runConfig: RunnerConfig) => hono.MiddlewareHandler<any, string, {}>;
|
|
431
|
+
declare function getInspectorUrl(runConfig: RunnerConfigInput | undefined): string;
|
|
432
|
+
declare const isInspectorEnabled: (runConfig: RunnerConfig, context: "actor" | "manager") => boolean;
|
|
433
|
+
declare const configureInspectorAccessToken: (runConfig: RunnerConfig, managerDriver: ManagerDriver) => void;
|
|
434
434
|
|
|
435
435
|
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, compareSecrets, configureInspectorAccessToken, createActorInspectorClient, createManagerInspectorClient, getInspectorUrl, isInspectorEnabled, secureInspector };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { al as ActorFeature, c as RunnerConfig, H as RunnerConfigInput, ai as ManagerDriver } from '../conn-DfPG71FA.js';
|
|
2
|
+
export { ap as Actor, am as ActorId, an as ActorLogEntry, ao as ActorSchema, aP as Build, aO as BuildSchema, aR as Builds, aQ as BuildsSchema, aH as Column, aG as ColumnSchema, aJ as Columns, aI as ColumnsSchema, av as Connection, au as ConnectionSchema, aT as CreateActor, aS as CreateActorSchema, aB as DatabaseQuery, aA as DatabaseQuerySchema, aL as ForeignKey, aK as ForeignKeySchema, aN as ForeignKeys, aM as ForeignKeysSchema, ar as Operation, aq as OperationSchema, at as Patch, as as PatchSchema, ax as RealtimeEvent, aw as RealtimeEventSchema, az as RecordedRealtimeEvent, ay as RecordedRealtimeEventSchema, aD as Table, aC as TableSchema, aF as Tables, aE as TablesSchema } from '../conn-DfPG71FA.js';
|
|
3
3
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
4
4
|
import * as hono_utils_types from 'hono/utils/types';
|
|
5
5
|
import * as hono_client from 'hono/client';
|
|
@@ -427,9 +427,9 @@ type ManagerInspectorClient = typeof client;
|
|
|
427
427
|
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
|
|
428
428
|
|
|
429
429
|
declare function compareSecrets(providedSecret: string, validSecret: string): boolean;
|
|
430
|
-
declare const secureInspector: (runConfig:
|
|
431
|
-
declare function getInspectorUrl(runConfig:
|
|
432
|
-
declare const isInspectorEnabled: (runConfig:
|
|
433
|
-
declare const configureInspectorAccessToken: (runConfig:
|
|
430
|
+
declare const secureInspector: (runConfig: RunnerConfig) => hono.MiddlewareHandler<any, string, {}>;
|
|
431
|
+
declare function getInspectorUrl(runConfig: RunnerConfigInput | undefined): string;
|
|
432
|
+
declare const isInspectorEnabled: (runConfig: RunnerConfig, context: "actor" | "manager") => boolean;
|
|
433
|
+
declare const configureInspectorAccessToken: (runConfig: RunnerConfig, managerDriver: ManagerDriver) => void;
|
|
434
434
|
|
|
435
435
|
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, compareSecrets, configureInspectorAccessToken, createActorInspectorClient, createManagerInspectorClient, getInspectorUrl, isInspectorEnabled, secureInspector };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getInspectorUrl,
|
|
7
7
|
isInspectorEnabled,
|
|
8
8
|
secureInspector
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-KL4V2ULR.js";
|
|
10
10
|
import {
|
|
11
11
|
ActorFeature,
|
|
12
12
|
ActorId,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
RecordedRealtimeEventSchema,
|
|
28
28
|
TableSchema,
|
|
29
29
|
TablesSchema
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-KGDZYQYE.js";
|
|
31
|
+
import "../chunk-MLQIYKAZ.js";
|
|
32
|
+
import "../chunk-7E5K3375.js";
|
|
33
|
+
import "../chunk-HI55LHM3.js";
|
|
34
34
|
import "../chunk-YPZFLUO6.js";
|
|
35
35
|
export {
|
|
36
36
|
ActorFeature,
|
package/dist/tsup/mod.cjs
CHANGED
|
@@ -10,27 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkPDFL7FBLcjs = require('./chunk-PDFL7FBL.cjs');
|
|
14
|
+
require('./chunk-SIWYIRXP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
20
|
+
var _chunkVZMXAZKCcjs = require('./chunk-VZMXAZKC.cjs');
|
|
21
|
+
require('./chunk-DVPXSB4B.cjs');
|
|
22
|
+
require('./chunk-PPLR53PP.cjs');
|
|
23
|
+
require('./chunk-CA3X5M6H.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
require('./chunk-
|
|
28
|
+
var _chunkI3FB346Icjs = require('./chunk-I3FB346I.cjs');
|
|
29
|
+
require('./chunk-YKVTF7MP.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkGIFHYL7Acjs = require('./chunk-GIFHYL7A.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunk5QGQK44Lcjs = require('./chunk-5QGQK44L.cjs');
|
|
@@ -56,5 +56,5 @@ var _chunk5QGQK44Lcjs = require('./chunk-5QGQK44L.cjs');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
59
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkI3FB346Icjs.ALLOWED_PUBLIC_HEADERS; exports.InlineWebSocketAdapter2 = _chunkPDFL7FBLcjs.InlineWebSocketAdapter2; exports.PATH_CONNECT_WEBSOCKET = _chunkI3FB346Icjs.PATH_CONNECT_WEBSOCKET; exports.PATH_RAW_WEBSOCKET_PREFIX = _chunkI3FB346Icjs.PATH_RAW_WEBSOCKET_PREFIX; exports.Registry = _chunkPDFL7FBLcjs.Registry; exports.RegistryConfigSchema = _chunkPDFL7FBLcjs.RegistryConfigSchema; exports.UserError = _chunk5QGQK44Lcjs.UserError; exports.actor = _chunkPDFL7FBLcjs.actor; exports.createActorRouter = _chunkPDFL7FBLcjs.createActorRouter; exports.createClientWithDriver = _chunkVZMXAZKCcjs.createClientWithDriver; exports.createEngineDriver = _chunkPDFL7FBLcjs.createEngineDriver; exports.createFileSystemDriver = _chunkPDFL7FBLcjs.createFileSystemDriver; exports.createMemoryDriver = _chunkPDFL7FBLcjs.createMemoryDriver; exports.generateConnId = _chunkVZMXAZKCcjs.generateConnId; exports.generateConnToken = _chunkVZMXAZKCcjs.generateConnToken; exports.handleRawWebSocketHandler = _chunkPDFL7FBLcjs.handleRawWebSocketHandler; exports.handleWebSocketConnect = _chunkPDFL7FBLcjs.handleWebSocketConnect; exports.lookupInRegistry = _chunkVZMXAZKCcjs.lookupInRegistry; exports.noopNext = _chunkGIFHYL7Acjs.noopNext; exports.setup = _chunkPDFL7FBLcjs.setup; exports.toUint8Array = _chunkGIFHYL7Acjs.toUint8Array;
|
|
60
60
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/mod.d.cts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as
|
|
2
|
-
export { n as ActionContext, r as ActionContextOf, z as ActorConfig, x as ActorConfigSchema, q as ActorContext, s as ActorContextOf, m as ActorKey, l as ActorQuery, w as ActorTypes, t as AnyActorDefinition, v as AnyActorInstance, j as AnyClient, y as AuthIntent, C as Client, o as Conn, p as ConnectionStatus, I as InitContext, O as OnConnectOptions, K as Registry, G as RegistryActors, F as RegistryConfig, J as RegistryConfigSchema, H as RunConfigInput, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-
|
|
1
|
+
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunnerConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './conn-Cc9WHuN4.cjs';
|
|
2
|
+
export { n as ActionContext, r as ActionContextOf, z as ActorConfig, x as ActorConfigSchema, q as ActorContext, s as ActorContextOf, m as ActorKey, l as ActorQuery, w as ActorTypes, t as AnyActorDefinition, v as AnyActorInstance, j as AnyClient, y as AuthIntent, C as Client, o as Conn, p as ConnectionStatus, I as InitContext, O as OnConnectOptions, K as Registry, G as RegistryActors, F as RegistryConfig, J as RegistryConfigSchema, H as RunConfigInput, S as ServerlessActorDriverBuilder, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-Cc9WHuN4.cjs';
|
|
3
3
|
import { WSContext } from 'hono/ws';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.cjs';
|
|
5
|
-
import * as hono_types from 'hono/types';
|
|
6
|
-
import { Hono } from 'hono';
|
|
7
|
-
import { z } from 'zod';
|
|
8
5
|
export { toUint8Array } from './utils.cjs';
|
|
9
6
|
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-B3Lu87yJ.cjs';
|
|
10
7
|
export { UserError, UserErrorOptions } from './actor/errors.cjs';
|
|
8
|
+
import { Hono } from 'hono';
|
|
11
9
|
import 'hono/streaming';
|
|
10
|
+
import 'zod';
|
|
12
11
|
import 'pino';
|
|
13
12
|
import 'nanoevents';
|
|
14
13
|
import 'zod/v4';
|
|
@@ -96,7 +95,7 @@ declare class InlineWebSocketAdapter2 implements UniversalWebSocket {
|
|
|
96
95
|
/**
|
|
97
96
|
* Creates a WebSocket connection handler
|
|
98
97
|
*/
|
|
99
|
-
declare function handleWebSocketConnect(req: Request | undefined, runConfig:
|
|
98
|
+
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunnerConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown, connId?: string, connToken?: string): Promise<UpgradeWebSocketArgs>;
|
|
100
99
|
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string): Promise<UpgradeWebSocketArgs>;
|
|
101
100
|
|
|
102
101
|
interface ActorRouterBindings {
|
|
@@ -108,45 +107,15 @@ type ActorRouter = Hono<{
|
|
|
108
107
|
/**
|
|
109
108
|
* Creates a router that runs on the partitioned instance.
|
|
110
109
|
*/
|
|
111
|
-
declare function createActorRouter(runConfig:
|
|
110
|
+
declare function createActorRouter(runConfig: RunnerConfig, actorDriver: ActorDriver, isTest: boolean): ActorRouter;
|
|
112
111
|
|
|
113
112
|
declare function actor<TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TActions extends Actions<TState, TConnParams, TConnState, TVars, TInput, TDatabase>>(input: ActorConfigInput<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TActions>): ActorDefinition<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TActions>;
|
|
114
113
|
|
|
115
|
-
declare
|
|
116
|
-
app: z.ZodOptional<z.ZodType<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">, z.ZodTypeDef, Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>>;
|
|
117
|
-
endpoint: z.ZodDefault<z.ZodString>;
|
|
118
|
-
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
119
|
-
pegboardEndpoint: z.ZodOptional<z.ZodString>;
|
|
120
|
-
namespace: z.ZodDefault<z.ZodString>;
|
|
121
|
-
runnerName: z.ZodDefault<z.ZodString>;
|
|
122
|
-
runnerKey: z.ZodDefault<z.ZodString>;
|
|
123
|
-
totalSlots: z.ZodDefault<z.ZodNumber>;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
totalSlots: number;
|
|
126
|
-
endpoint: string;
|
|
127
|
-
namespace: string;
|
|
128
|
-
runnerName: string;
|
|
129
|
-
runnerKey: string;
|
|
130
|
-
token?: string | undefined;
|
|
131
|
-
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
132
|
-
pegboardEndpoint?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
token?: string | undefined;
|
|
135
|
-
totalSlots?: number | undefined;
|
|
136
|
-
endpoint?: string | undefined;
|
|
137
|
-
namespace?: string | undefined;
|
|
138
|
-
runnerName?: string | undefined;
|
|
139
|
-
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
140
|
-
pegboardEndpoint?: string | undefined;
|
|
141
|
-
runnerKey?: string | undefined;
|
|
142
|
-
}>>;
|
|
143
|
-
type InputConfig = z.input<typeof ConfigSchema>;
|
|
144
|
-
|
|
145
|
-
declare function createEngineDriver(inputConfig?: InputConfig): DriverConfig;
|
|
114
|
+
declare function createEngineDriver(): DriverConfig;
|
|
146
115
|
|
|
147
116
|
declare function createFileSystemDriver(opts?: {
|
|
148
117
|
path?: string;
|
|
149
118
|
}): DriverConfig;
|
|
150
119
|
declare function createMemoryDriver(): DriverConfig;
|
|
151
120
|
|
|
152
|
-
export { Actions, ActorConfigInput, ActorDefinition, type ActorRouter, DriverConfig, Encoding, InlineWebSocketAdapter2, RivetCloseEvent, RivetEvent, RivetMessageEvent, RunConfig, type UniversalErrorEvent, type UniversalEvent, type UniversalEventSource, type UniversalMessageEvent, UniversalWebSocket, type UpgradeWebSocketArgs, actor, createActorRouter, createEngineDriver, createFileSystemDriver, createMemoryDriver, handleRawWebSocketHandler, handleWebSocketConnect };
|
|
121
|
+
export { Actions, ActorConfigInput, ActorDefinition, type ActorRouter, DriverConfig, Encoding, InlineWebSocketAdapter2, RivetCloseEvent, RivetEvent, RivetMessageEvent, RunnerConfig as RunConfig, type UniversalErrorEvent, type UniversalEvent, type UniversalEventSource, type UniversalMessageEvent, UniversalWebSocket, type UpgradeWebSocketArgs, actor, createActorRouter, createEngineDriver, createFileSystemDriver, createMemoryDriver, handleRawWebSocketHandler, handleWebSocketConnect };
|
package/dist/tsup/mod.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as
|
|
2
|
-
export { n as ActionContext, r as ActionContextOf, z as ActorConfig, x as ActorConfigSchema, q as ActorContext, s as ActorContextOf, m as ActorKey, l as ActorQuery, w as ActorTypes, t as AnyActorDefinition, v as AnyActorInstance, j as AnyClient, y as AuthIntent, C as Client, o as Conn, p as ConnectionStatus, I as InitContext, O as OnConnectOptions, K as Registry, G as RegistryActors, F as RegistryConfig, J as RegistryConfigSchema, H as RunConfigInput, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-
|
|
1
|
+
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunnerConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './conn-DfPG71FA.js';
|
|
2
|
+
export { n as ActionContext, r as ActionContextOf, z as ActorConfig, x as ActorConfigSchema, q as ActorContext, s as ActorContextOf, m as ActorKey, l as ActorQuery, w as ActorTypes, t as AnyActorDefinition, v as AnyActorInstance, j as AnyClient, y as AuthIntent, C as Client, o as Conn, p as ConnectionStatus, I as InitContext, O as OnConnectOptions, K as Registry, G as RegistryActors, F as RegistryConfig, J as RegistryConfigSchema, H as RunConfigInput, S as ServerlessActorDriverBuilder, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-DfPG71FA.js';
|
|
3
3
|
import { WSContext } from 'hono/ws';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.js';
|
|
5
|
-
import * as hono_types from 'hono/types';
|
|
6
|
-
import { Hono } from 'hono';
|
|
7
|
-
import { z } from 'zod';
|
|
8
5
|
export { toUint8Array } from './utils.js';
|
|
9
6
|
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-B3Lu87yJ.js';
|
|
10
7
|
export { UserError, UserErrorOptions } from './actor/errors.js';
|
|
8
|
+
import { Hono } from 'hono';
|
|
11
9
|
import 'hono/streaming';
|
|
10
|
+
import 'zod';
|
|
12
11
|
import 'pino';
|
|
13
12
|
import 'nanoevents';
|
|
14
13
|
import 'zod/v4';
|
|
@@ -96,7 +95,7 @@ declare class InlineWebSocketAdapter2 implements UniversalWebSocket {
|
|
|
96
95
|
/**
|
|
97
96
|
* Creates a WebSocket connection handler
|
|
98
97
|
*/
|
|
99
|
-
declare function handleWebSocketConnect(req: Request | undefined, runConfig:
|
|
98
|
+
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunnerConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown, connId?: string, connToken?: string): Promise<UpgradeWebSocketArgs>;
|
|
100
99
|
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string): Promise<UpgradeWebSocketArgs>;
|
|
101
100
|
|
|
102
101
|
interface ActorRouterBindings {
|
|
@@ -108,45 +107,15 @@ type ActorRouter = Hono<{
|
|
|
108
107
|
/**
|
|
109
108
|
* Creates a router that runs on the partitioned instance.
|
|
110
109
|
*/
|
|
111
|
-
declare function createActorRouter(runConfig:
|
|
110
|
+
declare function createActorRouter(runConfig: RunnerConfig, actorDriver: ActorDriver, isTest: boolean): ActorRouter;
|
|
112
111
|
|
|
113
112
|
declare function actor<TState, TConnParams, TConnState, TVars, TInput, TDatabase extends AnyDatabaseProvider, TActions extends Actions<TState, TConnParams, TConnState, TVars, TInput, TDatabase>>(input: ActorConfigInput<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TActions>): ActorDefinition<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TActions>;
|
|
114
113
|
|
|
115
|
-
declare
|
|
116
|
-
app: z.ZodOptional<z.ZodType<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">, z.ZodTypeDef, Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>>;
|
|
117
|
-
endpoint: z.ZodDefault<z.ZodString>;
|
|
118
|
-
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
119
|
-
pegboardEndpoint: z.ZodOptional<z.ZodString>;
|
|
120
|
-
namespace: z.ZodDefault<z.ZodString>;
|
|
121
|
-
runnerName: z.ZodDefault<z.ZodString>;
|
|
122
|
-
runnerKey: z.ZodDefault<z.ZodString>;
|
|
123
|
-
totalSlots: z.ZodDefault<z.ZodNumber>;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
totalSlots: number;
|
|
126
|
-
endpoint: string;
|
|
127
|
-
namespace: string;
|
|
128
|
-
runnerName: string;
|
|
129
|
-
runnerKey: string;
|
|
130
|
-
token?: string | undefined;
|
|
131
|
-
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
132
|
-
pegboardEndpoint?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
token?: string | undefined;
|
|
135
|
-
totalSlots?: number | undefined;
|
|
136
|
-
endpoint?: string | undefined;
|
|
137
|
-
namespace?: string | undefined;
|
|
138
|
-
runnerName?: string | undefined;
|
|
139
|
-
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
140
|
-
pegboardEndpoint?: string | undefined;
|
|
141
|
-
runnerKey?: string | undefined;
|
|
142
|
-
}>>;
|
|
143
|
-
type InputConfig = z.input<typeof ConfigSchema>;
|
|
144
|
-
|
|
145
|
-
declare function createEngineDriver(inputConfig?: InputConfig): DriverConfig;
|
|
114
|
+
declare function createEngineDriver(): DriverConfig;
|
|
146
115
|
|
|
147
116
|
declare function createFileSystemDriver(opts?: {
|
|
148
117
|
path?: string;
|
|
149
118
|
}): DriverConfig;
|
|
150
119
|
declare function createMemoryDriver(): DriverConfig;
|
|
151
120
|
|
|
152
|
-
export { Actions, ActorConfigInput, ActorDefinition, type ActorRouter, DriverConfig, Encoding, InlineWebSocketAdapter2, RivetCloseEvent, RivetEvent, RivetMessageEvent, RunConfig, type UniversalErrorEvent, type UniversalEvent, type UniversalEventSource, type UniversalMessageEvent, UniversalWebSocket, type UpgradeWebSocketArgs, actor, createActorRouter, createEngineDriver, createFileSystemDriver, createMemoryDriver, handleRawWebSocketHandler, handleWebSocketConnect };
|
|
121
|
+
export { Actions, ActorConfigInput, ActorDefinition, type ActorRouter, DriverConfig, Encoding, InlineWebSocketAdapter2, RivetCloseEvent, RivetEvent, RivetMessageEvent, RunnerConfig as RunConfig, type UniversalErrorEvent, type UniversalEvent, type UniversalEventSource, type UniversalMessageEvent, UniversalWebSocket, type UpgradeWebSocketArgs, actor, createActorRouter, createEngineDriver, createFileSystemDriver, createMemoryDriver, handleRawWebSocketHandler, handleWebSocketConnect };
|
package/dist/tsup/mod.js
CHANGED
|
@@ -10,27 +10,27 @@ import {
|
|
|
10
10
|
handleRawWebSocketHandler,
|
|
11
11
|
handleWebSocketConnect,
|
|
12
12
|
setup
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-VJRXZPTT.js";
|
|
14
|
+
import "./chunk-KL4V2ULR.js";
|
|
15
15
|
import {
|
|
16
16
|
createClientWithDriver,
|
|
17
17
|
generateConnId,
|
|
18
18
|
generateConnToken,
|
|
19
19
|
lookupInRegistry
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-H7E2UU23.js";
|
|
21
|
+
import "./chunk-KGDZYQYE.js";
|
|
22
|
+
import "./chunk-346X2XU4.js";
|
|
23
|
+
import "./chunk-QRFXXTLG.js";
|
|
24
24
|
import {
|
|
25
25
|
ALLOWED_PUBLIC_HEADERS,
|
|
26
26
|
PATH_CONNECT_WEBSOCKET,
|
|
27
27
|
PATH_RAW_WEBSOCKET_PREFIX
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-MLQIYKAZ.js";
|
|
29
|
+
import "./chunk-7E5K3375.js";
|
|
30
30
|
import {
|
|
31
31
|
noopNext,
|
|
32
32
|
toUint8Array
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HI55LHM3.js";
|
|
34
34
|
import {
|
|
35
35
|
UserError
|
|
36
36
|
} from "./chunk-YPZFLUO6.js";
|
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
4
|
+
var _chunkPSCDCEXMcjs = require('../chunk-PSCDCEXM.cjs');
|
|
5
|
+
require('../chunk-PDFL7FBL.cjs');
|
|
6
|
+
require('../chunk-SIWYIRXP.cjs');
|
|
7
|
+
require('../chunk-VZMXAZKC.cjs');
|
|
8
|
+
require('../chunk-DVPXSB4B.cjs');
|
|
9
|
+
require('../chunk-PPLR53PP.cjs');
|
|
10
|
+
require('../chunk-CA3X5M6H.cjs');
|
|
11
|
+
require('../chunk-I3FB346I.cjs');
|
|
12
|
+
require('../chunk-YKVTF7MP.cjs');
|
|
13
|
+
require('../chunk-GIFHYL7A.cjs');
|
|
14
14
|
require('../chunk-5QGQK44L.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.getPort =
|
|
18
|
+
exports.getPort = _chunkPSCDCEXMcjs.getPort; exports.setupTest = _chunkPSCDCEXMcjs.setupTest;
|
|
19
19
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/test/mod.d.cts
CHANGED
package/dist/tsup/test/mod.d.ts
CHANGED
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPort,
|
|
3
3
|
setupTest
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-R2S45MO6.js";
|
|
5
|
+
import "../chunk-VJRXZPTT.js";
|
|
6
|
+
import "../chunk-KL4V2ULR.js";
|
|
7
|
+
import "../chunk-H7E2UU23.js";
|
|
8
|
+
import "../chunk-KGDZYQYE.js";
|
|
9
|
+
import "../chunk-346X2XU4.js";
|
|
10
|
+
import "../chunk-QRFXXTLG.js";
|
|
11
|
+
import "../chunk-MLQIYKAZ.js";
|
|
12
|
+
import "../chunk-7E5K3375.js";
|
|
13
|
+
import "../chunk-HI55LHM3.js";
|
|
14
14
|
import "../chunk-YPZFLUO6.js";
|
|
15
15
|
export {
|
|
16
16
|
getPort,
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGIFHYL7Acjs = require('./chunk-GIFHYL7A.cjs');
|
|
15
15
|
require('./chunk-5QGQK44L.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -26,5 +26,5 @@ require('./chunk-5QGQK44L.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.SinglePromiseQueue =
|
|
29
|
+
exports.SinglePromiseQueue = _chunkGIFHYL7Acjs.SinglePromiseQueue; exports.VERSION = _chunkGIFHYL7Acjs.VERSION; exports.assertUnreachable = _chunkGIFHYL7Acjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkGIFHYL7Acjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkGIFHYL7Acjs.combineUrlPath; exports.dbg = _chunkGIFHYL7Acjs.dbg; exports.getEnvUniversal = _chunkGIFHYL7Acjs.getEnvUniversal; exports.httpUserAgent = _chunkGIFHYL7Acjs.httpUserAgent; exports.promiseWithResolvers = _chunkGIFHYL7Acjs.promiseWithResolvers; exports.setLongTimeout = _chunkGIFHYL7Acjs.setLongTimeout; exports.stringifyError = _chunkGIFHYL7Acjs.stringifyError; exports.toUint8Array = _chunkGIFHYL7Acjs.toUint8Array;
|
|
30
30
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/tsup/utils.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import 'hono/utils/http-status';
|
|
|
5
5
|
declare const VERSION: string;
|
|
6
6
|
declare function httpUserAgent(): string;
|
|
7
7
|
type UpgradeWebSocket = (createEvents: (c: Context) => any) => Handler;
|
|
8
|
+
type GetUpgradeWebSocket = () => UpgradeWebSocket;
|
|
8
9
|
declare function getEnvUniversal(key: string): string | undefined;
|
|
9
10
|
declare function dbg<T>(x: T): T;
|
|
10
11
|
/**
|
|
@@ -60,4 +61,4 @@ declare function bufferToArrayBuffer(buf: Buffer | Uint8Array): ArrayBuffer;
|
|
|
60
61
|
*/
|
|
61
62
|
declare function combineUrlPath(endpoint: string, path: string, queryParams?: Record<string, string | undefined>): string;
|
|
62
63
|
|
|
63
|
-
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, promiseWithResolvers, setLongTimeout, toUint8Array };
|
|
64
|
+
export { type GetUpgradeWebSocket, type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, promiseWithResolvers, setLongTimeout, toUint8Array };
|
package/dist/tsup/utils.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import 'hono/utils/http-status';
|
|
|
5
5
|
declare const VERSION: string;
|
|
6
6
|
declare function httpUserAgent(): string;
|
|
7
7
|
type UpgradeWebSocket = (createEvents: (c: Context) => any) => Handler;
|
|
8
|
+
type GetUpgradeWebSocket = () => UpgradeWebSocket;
|
|
8
9
|
declare function getEnvUniversal(key: string): string | undefined;
|
|
9
10
|
declare function dbg<T>(x: T): T;
|
|
10
11
|
/**
|
|
@@ -60,4 +61,4 @@ declare function bufferToArrayBuffer(buf: Buffer | Uint8Array): ArrayBuffer;
|
|
|
60
61
|
*/
|
|
61
62
|
declare function combineUrlPath(endpoint: string, path: string, queryParams?: Record<string, string | undefined>): string;
|
|
62
63
|
|
|
63
|
-
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, promiseWithResolvers, setLongTimeout, toUint8Array };
|
|
64
|
+
export { type GetUpgradeWebSocket, type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, promiseWithResolvers, setLongTimeout, toUint8Array };
|
package/dist/tsup/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivetkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Lightweight libraries for building stateful actors on edge platforms",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -155,15 +155,15 @@
|
|
|
155
155
|
"@bare-ts/lib": "~0.3.0",
|
|
156
156
|
"@hono/standard-validator": "^0.1.3",
|
|
157
157
|
"@hono/zod-openapi": "^0.19.10",
|
|
158
|
-
"@rivetkit/engine-runner": "https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@
|
|
158
|
+
"@rivetkit/engine-runner": "https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@76c2e031",
|
|
159
159
|
"@rivetkit/fast-json-patch": "^3.1.2",
|
|
160
160
|
"cbor-x": "^1.6.0",
|
|
161
161
|
"hono": "^4.7.0",
|
|
162
162
|
"invariant": "^2.2.4",
|
|
163
163
|
"nanoevents": "^9.1.0",
|
|
164
164
|
"on-change": "^5.0.1",
|
|
165
|
-
"pino": "^9.5.0",
|
|
166
165
|
"p-retry": "^6.2.1",
|
|
166
|
+
"pino": "^9.5.0",
|
|
167
167
|
"zod": "^3.25.76"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
@@ -180,8 +180,7 @@
|
|
|
180
180
|
"tsx": "^4.19.4",
|
|
181
181
|
"typescript": "^5.7.3",
|
|
182
182
|
"vitest": "^3.1.1",
|
|
183
|
-
"ws": "^8.18.1"
|
|
184
|
-
"bufferutil": "^4.0.9"
|
|
183
|
+
"ws": "^8.18.1"
|
|
185
184
|
},
|
|
186
185
|
"peerDependencies": {
|
|
187
186
|
"@hono/node-server": "^1.14.0",
|
package/src/actor/driver.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { Context as HonoContext } from "hono";
|
|
|
2
2
|
import type { AnyClient } from "@/client/client";
|
|
3
3
|
import type { ManagerDriver } from "@/manager/driver";
|
|
4
4
|
import type { RegistryConfig } from "@/registry/config";
|
|
5
|
-
import type {
|
|
5
|
+
import type { RunnerConfig } from "@/registry/run-config";
|
|
6
6
|
import type { AnyActorInstance } from "./instance";
|
|
7
7
|
|
|
8
8
|
export type ActorDriverBuilder = (
|
|
9
9
|
registryConfig: RegistryConfig,
|
|
10
|
-
runConfig:
|
|
10
|
+
runConfig: RunnerConfig,
|
|
11
11
|
managerDriver: ManagerDriver,
|
|
12
12
|
inlineClient: AnyClient,
|
|
13
13
|
) => ActorDriver;
|
package/src/actor/instance.ts
CHANGED
|
@@ -428,9 +428,9 @@ export class ActorInstance<S, CP, CS, V, I, DB extends AnyDatabaseProvider> {
|
|
|
428
428
|
(x) => x.timestamp <= now,
|
|
429
429
|
);
|
|
430
430
|
if (runIndex === -1) {
|
|
431
|
-
//
|
|
432
|
-
//
|
|
433
|
-
this.#rLog.
|
|
431
|
+
// This method is idempotent, so this will happen in scenarios like `start` and
|
|
432
|
+
// no events are pending.
|
|
433
|
+
this.#rLog.debug({ msg: "no events are due yet" });
|
|
434
434
|
if (this.#persist.scheduledEvents.length > 0) {
|
|
435
435
|
const nextTs = this.#persist.scheduledEvents[0].timestamp;
|
|
436
436
|
this.actorContext.log.debug({
|
|
@@ -1239,7 +1239,7 @@ export class ActorInstance<S, CP, CS, V, I, DB extends AnyDatabaseProvider> {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
1241
|
// Connection is dead, remove it
|
|
1242
|
-
this.#rLog.
|
|
1242
|
+
this.#rLog.info({
|
|
1243
1243
|
msg: "connection is dead, removing",
|
|
1244
1244
|
connId: conn.id,
|
|
1245
1245
|
lastSeen,
|