rivetkit 2.0.6 → 2.0.7-rc.1
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/schemas/actor-persist/v1.ts +0 -6
- package/dist/tsup/actor-router-consts-B3Lu87yJ.d.cts +28 -0
- package/dist/tsup/actor-router-consts-B3Lu87yJ.d.ts +28 -0
- package/dist/tsup/{chunk-MRRT2CZD.cjs → chunk-3MBP4WNC.cjs} +7 -7
- package/dist/tsup/{chunk-MRRT2CZD.cjs.map → chunk-3MBP4WNC.cjs.map} +1 -1
- package/dist/tsup/{chunk-TWGATZ3X.cjs → chunk-3Y45CIF4.cjs} +922 -872
- package/dist/tsup/chunk-3Y45CIF4.cjs.map +1 -0
- package/dist/tsup/chunk-4GP7BZSR.js +102 -0
- package/dist/tsup/chunk-4GP7BZSR.js.map +1 -0
- package/dist/tsup/{chunk-UFWAK3X2.cjs → chunk-5ZOHIKWG.cjs} +660 -385
- package/dist/tsup/chunk-5ZOHIKWG.cjs.map +1 -0
- package/dist/tsup/{chunk-5JBFVV4C.cjs → chunk-6EUWRXLT.cjs} +21 -7
- package/dist/tsup/chunk-6EUWRXLT.cjs.map +1 -0
- package/dist/tsup/{chunk-UTI5NCES.cjs → chunk-6OVKCDSH.cjs} +6 -6
- package/dist/tsup/{chunk-UTI5NCES.cjs.map → chunk-6OVKCDSH.cjs.map} +1 -1
- package/dist/tsup/{chunk-VPV4MWXR.js → chunk-7N56ZUC7.js} +3 -3
- package/dist/tsup/{chunk-DIAYNQTE.cjs → chunk-B3TLRM4Q.cjs} +12 -12
- package/dist/tsup/{chunk-DIAYNQTE.cjs.map → chunk-B3TLRM4Q.cjs.map} +1 -1
- package/dist/tsup/{chunk-4CKHQRXG.js → chunk-BW5DPM6Z.js} +515 -240
- package/dist/tsup/chunk-BW5DPM6Z.js.map +1 -0
- package/dist/tsup/{chunk-NTCUGYSD.cjs → chunk-DFS77KAA.cjs} +34 -31
- package/dist/tsup/chunk-DFS77KAA.cjs.map +1 -0
- package/dist/tsup/{chunk-VCEHU56K.js → chunk-E4UVJKSV.js} +2 -2
- package/dist/tsup/chunk-G4ABMAQY.cjs +102 -0
- package/dist/tsup/chunk-G4ABMAQY.cjs.map +1 -0
- package/dist/tsup/{chunk-ZYLTS2EM.js → chunk-GZVBFXBI.js} +2 -2
- package/dist/tsup/{chunk-W6LN7AF5.js → chunk-HPT3I7UU.js} +866 -816
- package/dist/tsup/chunk-HPT3I7UU.js.map +1 -0
- package/dist/tsup/{chunk-7OUKNSTU.js → chunk-JD54PXWP.js} +17 -14
- package/dist/tsup/chunk-JD54PXWP.js.map +1 -0
- package/dist/tsup/{chunk-KG3C7MKR.cjs → chunk-K4ENQCC4.cjs} +3 -3
- package/dist/tsup/{chunk-KG3C7MKR.cjs.map → chunk-K4ENQCC4.cjs.map} +1 -1
- package/dist/tsup/{chunk-WC2PSJWN.js → chunk-PUSQNDJG.js} +2 -2
- package/dist/tsup/{chunk-RGQR2J7S.js → chunk-RVP5RUSC.js} +20 -6
- package/dist/tsup/chunk-RVP5RUSC.js.map +1 -0
- package/dist/tsup/{chunk-TCUI5JFE.cjs → chunk-SAZCNSVY.cjs} +45 -18
- package/dist/tsup/chunk-SAZCNSVY.cjs.map +1 -0
- package/dist/tsup/{chunk-G75SVQON.js → chunk-SBKRVQS2.js} +9 -5
- package/dist/tsup/chunk-SBKRVQS2.js.map +1 -0
- package/dist/tsup/{chunk-6P6RA47N.cjs → chunk-TZGUSEIJ.cjs} +14 -10
- package/dist/tsup/chunk-TZGUSEIJ.cjs.map +1 -0
- package/dist/tsup/{chunk-2K3JMDAN.js → chunk-YQ4XQYPM.js} +40 -13
- package/dist/tsup/chunk-YQ4XQYPM.js.map +1 -0
- package/dist/tsup/client/mod.cjs +9 -9
- package/dist/tsup/client/mod.d.cts +7 -8
- package/dist/tsup/client/mod.d.ts +7 -8
- 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/{connection-BLemxi4f.d.ts → conn-DCSQgIlw.d.ts} +1605 -1353
- package/dist/tsup/{connection-CpDIydXf.d.cts → conn-DdzHTm2E.d.cts} +1605 -1353
- package/dist/tsup/driver-helpers/mod.cjs +31 -5
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +7 -8
- package/dist/tsup/driver-helpers/mod.d.ts +7 -8
- package/dist/tsup/driver-helpers/mod.js +33 -7
- package/dist/tsup/driver-test-suite/mod.cjs +317 -222
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +7 -7
- package/dist/tsup/driver-test-suite/mod.d.ts +7 -7
- package/dist/tsup/driver-test-suite/mod.js +582 -487
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +16 -6
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +34 -7
- package/dist/tsup/inspector/mod.d.ts +34 -7
- package/dist/tsup/inspector/mod.js +17 -7
- package/dist/tsup/mod.cjs +10 -20
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +9 -7
- package/dist/tsup/mod.d.ts +9 -7
- package/dist/tsup/mod.js +9 -19
- package/dist/tsup/test/mod.cjs +11 -11
- package/dist/tsup/test/mod.d.cts +6 -7
- package/dist/tsup/test/mod.d.ts +6 -7
- package/dist/tsup/test/mod.js +10 -10
- package/dist/tsup/utils.cjs +4 -2
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +11 -1
- package/dist/tsup/utils.d.ts +11 -1
- package/dist/tsup/utils.js +3 -1
- package/package.json +8 -4
- package/src/actor/action.ts +1 -1
- package/src/actor/config.ts +1 -1
- package/src/actor/conn-drivers.ts +205 -0
- package/src/actor/conn-socket.ts +6 -0
- package/src/actor/{connection.ts → conn.ts} +78 -84
- package/src/actor/context.ts +1 -1
- package/src/actor/driver.ts +4 -43
- package/src/actor/instance.ts +162 -86
- package/src/actor/mod.ts +1 -11
- package/src/actor/persisted.ts +2 -5
- package/src/actor/protocol/old.ts +1 -1
- package/src/actor/router-endpoints.ts +142 -106
- package/src/actor/router.ts +81 -45
- package/src/actor/utils.ts +5 -1
- package/src/client/actor-conn.ts +154 -23
- package/src/client/client.ts +1 -1
- package/src/client/config.ts +7 -0
- package/src/common/actor-router-consts.ts +29 -8
- package/src/common/router.ts +2 -1
- package/src/common/versioned-data.ts +5 -5
- package/src/driver-helpers/mod.ts +14 -1
- package/src/driver-test-suite/mod.ts +11 -2
- package/src/driver-test-suite/test-inline-client-driver.ts +36 -18
- package/src/driver-test-suite/tests/actor-conn-state.ts +66 -22
- package/src/driver-test-suite/tests/actor-conn.ts +65 -126
- package/src/driver-test-suite/tests/actor-reconnect.ts +160 -0
- package/src/driver-test-suite/tests/actor-sleep.ts +0 -1
- package/src/driver-test-suite/tests/raw-websocket.ts +0 -35
- package/src/driver-test-suite/utils.ts +3 -3
- package/src/drivers/default.ts +8 -7
- package/src/drivers/engine/actor-driver.ts +53 -31
- package/src/drivers/engine/config.ts +4 -0
- package/src/drivers/file-system/actor.ts +0 -6
- package/src/drivers/file-system/global-state.ts +3 -14
- package/src/drivers/file-system/manager.ts +12 -8
- package/src/inspector/actor.ts +4 -3
- package/src/inspector/config.ts +10 -1
- package/src/inspector/mod.ts +1 -0
- package/src/inspector/utils.ts +23 -4
- package/src/manager/driver.ts +11 -1
- package/src/manager/gateway.ts +407 -0
- package/src/manager/router.ts +269 -468
- package/src/manager-api/actors.ts +61 -0
- package/src/manager-api/common.ts +4 -0
- package/src/mod.ts +1 -1
- package/src/registry/mod.ts +119 -10
- package/src/remote-manager-driver/actor-http-client.ts +30 -19
- package/src/remote-manager-driver/actor-websocket-client.ts +43 -16
- package/src/remote-manager-driver/api-endpoints.ts +19 -21
- package/src/remote-manager-driver/api-utils.ts +10 -1
- package/src/remote-manager-driver/mod.ts +51 -48
- package/src/remote-manager-driver/ws-proxy.ts +2 -9
- package/src/test/mod.ts +6 -2
- package/src/utils.ts +21 -2
- package/dist/tsup/actor-router-consts-BK6arfy8.d.cts +0 -17
- package/dist/tsup/actor-router-consts-BK6arfy8.d.ts +0 -17
- package/dist/tsup/chunk-2K3JMDAN.js.map +0 -1
- package/dist/tsup/chunk-42I3OZ3Q.js +0 -15
- package/dist/tsup/chunk-42I3OZ3Q.js.map +0 -1
- package/dist/tsup/chunk-4CKHQRXG.js.map +0 -1
- package/dist/tsup/chunk-5JBFVV4C.cjs.map +0 -1
- package/dist/tsup/chunk-6P6RA47N.cjs.map +0 -1
- package/dist/tsup/chunk-7OUKNSTU.js.map +0 -1
- package/dist/tsup/chunk-G75SVQON.js.map +0 -1
- package/dist/tsup/chunk-KUPQZYUQ.cjs +0 -15
- package/dist/tsup/chunk-KUPQZYUQ.cjs.map +0 -1
- package/dist/tsup/chunk-NTCUGYSD.cjs.map +0 -1
- package/dist/tsup/chunk-RGQR2J7S.js.map +0 -1
- package/dist/tsup/chunk-TCUI5JFE.cjs.map +0 -1
- package/dist/tsup/chunk-TWGATZ3X.cjs.map +0 -1
- package/dist/tsup/chunk-UFWAK3X2.cjs.map +0 -1
- package/dist/tsup/chunk-W6LN7AF5.js.map +0 -1
- package/dist/tsup/common-CXCe7s6i.d.cts +0 -218
- package/dist/tsup/common-CXCe7s6i.d.ts +0 -218
- package/src/actor/generic-conn-driver.ts +0 -246
- package/src/common/fake-event-source.ts +0 -267
- package/src/manager-api/routes/actors-create.ts +0 -16
- package/src/manager-api/routes/actors-delete.ts +0 -4
- package/src/manager-api/routes/actors-get-by-id.ts +0 -7
- package/src/manager-api/routes/actors-get-or-create-by-id.ts +0 -29
- package/src/manager-api/routes/actors-get.ts +0 -7
- package/src/manager-api/routes/common.ts +0 -18
- /package/dist/tsup/{chunk-VPV4MWXR.js.map → chunk-7N56ZUC7.js.map} +0 -0
- /package/dist/tsup/{chunk-VCEHU56K.js.map → chunk-E4UVJKSV.js.map} +0 -0
- /package/dist/tsup/{chunk-ZYLTS2EM.js.map → chunk-GZVBFXBI.js.map} +0 -0
- /package/dist/tsup/{chunk-WC2PSJWN.js.map → chunk-PUSQNDJG.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkKUPQZYUQcjs = require('../chunk-KUPQZYUQ.cjs');
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
9
|
+
var _chunkG4ABMAQYcjs = require('../chunk-G4ABMAQY.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -22,10 +22,15 @@ var _chunkKUPQZYUQcjs = require('../chunk-KUPQZYUQ.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _chunkB3TLRM4Qcjs = require('../chunk-B3TLRM4Q.cjs');
|
|
31
|
+
require('../chunk-SAZCNSVY.cjs');
|
|
32
|
+
require('../chunk-3MBP4WNC.cjs');
|
|
33
|
+
require('../chunk-6EUWRXLT.cjs');
|
|
29
34
|
require('../chunk-5QGQK44L.cjs');
|
|
30
35
|
|
|
31
36
|
|
|
@@ -49,5 +54,10 @@ require('../chunk-5QGQK44L.cjs');
|
|
|
49
54
|
|
|
50
55
|
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
exports.ActorFeature = _chunkB3TLRM4Qcjs.ActorFeature; exports.ActorId = _chunkB3TLRM4Qcjs.ActorId; exports.ActorLogEntry = _chunkB3TLRM4Qcjs.ActorLogEntry; exports.ActorSchema = _chunkB3TLRM4Qcjs.ActorSchema; exports.BuildSchema = _chunkB3TLRM4Qcjs.BuildSchema; exports.BuildsSchema = _chunkB3TLRM4Qcjs.BuildsSchema; exports.ColumnSchema = _chunkB3TLRM4Qcjs.ColumnSchema; exports.ColumnsSchema = _chunkB3TLRM4Qcjs.ColumnsSchema; exports.ConnectionSchema = _chunkB3TLRM4Qcjs.ConnectionSchema; exports.CreateActorSchema = _chunkB3TLRM4Qcjs.CreateActorSchema; exports.DatabaseQuerySchema = _chunkB3TLRM4Qcjs.DatabaseQuerySchema; exports.ForeignKeySchema = _chunkB3TLRM4Qcjs.ForeignKeySchema; exports.ForeignKeysSchema = _chunkB3TLRM4Qcjs.ForeignKeysSchema; exports.OperationSchema = _chunkB3TLRM4Qcjs.OperationSchema; exports.PatchSchema = _chunkB3TLRM4Qcjs.PatchSchema; exports.RealtimeEventSchema = _chunkB3TLRM4Qcjs.RealtimeEventSchema; exports.RecordedRealtimeEventSchema = _chunkB3TLRM4Qcjs.RecordedRealtimeEventSchema; exports.TableSchema = _chunkB3TLRM4Qcjs.TableSchema; exports.TablesSchema = _chunkB3TLRM4Qcjs.TablesSchema; exports.compareSecrets = _chunkG4ABMAQYcjs.compareSecrets; exports.configureInspectorAccessToken = _chunkG4ABMAQYcjs.configureInspectorAccessToken; exports.createActorInspectorClient = _chunkG4ABMAQYcjs.createActorInspectorClient; exports.createManagerInspectorClient = _chunkG4ABMAQYcjs.createManagerInspectorClient; exports.getInspectorUrl = _chunkG4ABMAQYcjs.getInspectorUrl; exports.isInspectorEnabled = _chunkG4ABMAQYcjs.isInspectorEnabled; exports.secureInspector = _chunkG4ABMAQYcjs.secureInspector;
|
|
53
63
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/inspector/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;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,
|
|
1
|
+
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/inspector/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;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;AACA;AACA;AACA;AACA;AACA;AACF,qmDAAC","file":"/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/inspector/mod.cjs"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ak as ActorFeature, c as RunConfig, H as RunConfigInput, ah as ManagerDriver } from '../conn-DdzHTm2E.cjs';
|
|
2
|
+
export { ao as Actor, al as ActorId, am as ActorLogEntry, an as ActorSchema, aO as Build, aN as BuildSchema, aQ as Builds, aP as BuildsSchema, aG as Column, aF as ColumnSchema, aI as Columns, aH as ColumnsSchema, au as Connection, at as ConnectionSchema, aS as CreateActor, aR as CreateActorSchema, aA as DatabaseQuery, az as DatabaseQuerySchema, aK as ForeignKey, aJ as ForeignKeySchema, aM as ForeignKeys, aL as ForeignKeysSchema, aq as Operation, ap as OperationSchema, as as Patch, ar as PatchSchema, aw as RealtimeEvent, av as RealtimeEventSchema, ay as RecordedRealtimeEvent, ax as RecordedRealtimeEventSchema, aC as Table, aB as TableSchema, aE as Tables, aD as TablesSchema } from '../conn-DdzHTm2E.cjs';
|
|
3
3
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
4
|
+
import * as hono_utils_types from 'hono/utils/types';
|
|
4
5
|
import * as hono_client from 'hono/client';
|
|
5
6
|
import { hc } from 'hono/client';
|
|
6
7
|
import * as z from 'zod/v4';
|
|
8
|
+
import * as hono from 'hono';
|
|
9
|
+
import 'hono/streaming';
|
|
10
|
+
import 'hono/ws';
|
|
11
|
+
import '../utils.cjs';
|
|
12
|
+
import '../utils-fwx3o3K9.cjs';
|
|
13
|
+
import 'zod';
|
|
14
|
+
import 'pino';
|
|
15
|
+
import 'nanoevents';
|
|
7
16
|
|
|
8
17
|
declare const client$1: {
|
|
9
18
|
ping: hono_client.ClientRequest<{
|
|
@@ -22,7 +31,7 @@ declare const client$1: {
|
|
|
22
31
|
input: {};
|
|
23
32
|
output: {
|
|
24
33
|
enabled: boolean;
|
|
25
|
-
state:
|
|
34
|
+
state: hono_utils_types.JSONValue;
|
|
26
35
|
};
|
|
27
36
|
outputFormat: "json";
|
|
28
37
|
status: 200;
|
|
@@ -117,14 +126,14 @@ declare const client$1: {
|
|
|
117
126
|
events: ({
|
|
118
127
|
type: "action";
|
|
119
128
|
name: string;
|
|
120
|
-
args:
|
|
129
|
+
args: never;
|
|
121
130
|
connId: string;
|
|
122
131
|
id: string;
|
|
123
132
|
timestamp: number;
|
|
124
133
|
} | {
|
|
125
134
|
type: "broadcast";
|
|
126
135
|
eventName: string;
|
|
127
|
-
args:
|
|
136
|
+
args: never;
|
|
128
137
|
id: string;
|
|
129
138
|
timestamp: number;
|
|
130
139
|
} | {
|
|
@@ -142,7 +151,7 @@ declare const client$1: {
|
|
|
142
151
|
} | {
|
|
143
152
|
type: "event";
|
|
144
153
|
eventName: string;
|
|
145
|
-
args:
|
|
154
|
+
args: never;
|
|
146
155
|
connId: string;
|
|
147
156
|
id: string;
|
|
148
157
|
timestamp: number;
|
|
@@ -240,6 +249,18 @@ declare const client$1: {
|
|
|
240
249
|
};
|
|
241
250
|
outputFormat: "json";
|
|
242
251
|
status: 200;
|
|
252
|
+
} | {
|
|
253
|
+
input: {
|
|
254
|
+
json: {
|
|
255
|
+
query: string;
|
|
256
|
+
params?: any[] | undefined;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
output: {
|
|
260
|
+
result: hono_utils_types.JSONValue;
|
|
261
|
+
};
|
|
262
|
+
outputFormat: "json";
|
|
263
|
+
status: 200;
|
|
243
264
|
} | {
|
|
244
265
|
input: {
|
|
245
266
|
json: {
|
|
@@ -405,4 +426,10 @@ declare const client: {
|
|
|
405
426
|
type ManagerInspectorClient = typeof client;
|
|
406
427
|
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
|
|
407
428
|
|
|
408
|
-
|
|
429
|
+
declare function compareSecrets(providedSecret: string, validSecret: string): boolean;
|
|
430
|
+
declare const secureInspector: (runConfig: RunConfig) => hono.MiddlewareHandler<any, string, {}>;
|
|
431
|
+
declare function getInspectorUrl(runConfig: RunConfigInput | undefined): string;
|
|
432
|
+
declare const isInspectorEnabled: (runConfig: RunConfig, context: "actor" | "manager") => boolean;
|
|
433
|
+
declare const configureInspectorAccessToken: (runConfig: RunConfig, managerDriver: ManagerDriver) => void;
|
|
434
|
+
|
|
435
|
+
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, compareSecrets, configureInspectorAccessToken, createActorInspectorClient, createManagerInspectorClient, getInspectorUrl, isInspectorEnabled, secureInspector };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ak as ActorFeature, c as RunConfig, H as RunConfigInput, ah as ManagerDriver } from '../conn-DCSQgIlw.js';
|
|
2
|
+
export { ao as Actor, al as ActorId, am as ActorLogEntry, an as ActorSchema, aO as Build, aN as BuildSchema, aQ as Builds, aP as BuildsSchema, aG as Column, aF as ColumnSchema, aI as Columns, aH as ColumnsSchema, au as Connection, at as ConnectionSchema, aS as CreateActor, aR as CreateActorSchema, aA as DatabaseQuery, az as DatabaseQuerySchema, aK as ForeignKey, aJ as ForeignKeySchema, aM as ForeignKeys, aL as ForeignKeysSchema, aq as Operation, ap as OperationSchema, as as Patch, ar as PatchSchema, aw as RealtimeEvent, av as RealtimeEventSchema, ay as RecordedRealtimeEvent, ax as RecordedRealtimeEventSchema, aC as Table, aB as TableSchema, aE as Tables, aD as TablesSchema } from '../conn-DCSQgIlw.js';
|
|
3
3
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
4
|
+
import * as hono_utils_types from 'hono/utils/types';
|
|
4
5
|
import * as hono_client from 'hono/client';
|
|
5
6
|
import { hc } from 'hono/client';
|
|
6
7
|
import * as z from 'zod/v4';
|
|
8
|
+
import * as hono from 'hono';
|
|
9
|
+
import 'hono/streaming';
|
|
10
|
+
import 'hono/ws';
|
|
11
|
+
import '../utils.js';
|
|
12
|
+
import '../utils-fwx3o3K9.js';
|
|
13
|
+
import 'zod';
|
|
14
|
+
import 'pino';
|
|
15
|
+
import 'nanoevents';
|
|
7
16
|
|
|
8
17
|
declare const client$1: {
|
|
9
18
|
ping: hono_client.ClientRequest<{
|
|
@@ -22,7 +31,7 @@ declare const client$1: {
|
|
|
22
31
|
input: {};
|
|
23
32
|
output: {
|
|
24
33
|
enabled: boolean;
|
|
25
|
-
state:
|
|
34
|
+
state: hono_utils_types.JSONValue;
|
|
26
35
|
};
|
|
27
36
|
outputFormat: "json";
|
|
28
37
|
status: 200;
|
|
@@ -117,14 +126,14 @@ declare const client$1: {
|
|
|
117
126
|
events: ({
|
|
118
127
|
type: "action";
|
|
119
128
|
name: string;
|
|
120
|
-
args:
|
|
129
|
+
args: never;
|
|
121
130
|
connId: string;
|
|
122
131
|
id: string;
|
|
123
132
|
timestamp: number;
|
|
124
133
|
} | {
|
|
125
134
|
type: "broadcast";
|
|
126
135
|
eventName: string;
|
|
127
|
-
args:
|
|
136
|
+
args: never;
|
|
128
137
|
id: string;
|
|
129
138
|
timestamp: number;
|
|
130
139
|
} | {
|
|
@@ -142,7 +151,7 @@ declare const client$1: {
|
|
|
142
151
|
} | {
|
|
143
152
|
type: "event";
|
|
144
153
|
eventName: string;
|
|
145
|
-
args:
|
|
154
|
+
args: never;
|
|
146
155
|
connId: string;
|
|
147
156
|
id: string;
|
|
148
157
|
timestamp: number;
|
|
@@ -240,6 +249,18 @@ declare const client$1: {
|
|
|
240
249
|
};
|
|
241
250
|
outputFormat: "json";
|
|
242
251
|
status: 200;
|
|
252
|
+
} | {
|
|
253
|
+
input: {
|
|
254
|
+
json: {
|
|
255
|
+
query: string;
|
|
256
|
+
params?: any[] | undefined;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
output: {
|
|
260
|
+
result: hono_utils_types.JSONValue;
|
|
261
|
+
};
|
|
262
|
+
outputFormat: "json";
|
|
263
|
+
status: 200;
|
|
243
264
|
} | {
|
|
244
265
|
input: {
|
|
245
266
|
json: {
|
|
@@ -405,4 +426,10 @@ declare const client: {
|
|
|
405
426
|
type ManagerInspectorClient = typeof client;
|
|
406
427
|
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
|
|
407
428
|
|
|
408
|
-
|
|
429
|
+
declare function compareSecrets(providedSecret: string, validSecret: string): boolean;
|
|
430
|
+
declare const secureInspector: (runConfig: RunConfig) => hono.MiddlewareHandler<any, string, {}>;
|
|
431
|
+
declare function getInspectorUrl(runConfig: RunConfigInput | undefined): string;
|
|
432
|
+
declare const isInspectorEnabled: (runConfig: RunConfig, context: "actor" | "manager") => boolean;
|
|
433
|
+
declare const configureInspectorAccessToken: (runConfig: RunConfig, managerDriver: ManagerDriver) => void;
|
|
434
|
+
|
|
435
|
+
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, compareSecrets, configureInspectorAccessToken, createActorInspectorClient, createManagerInspectorClient, getInspectorUrl, isInspectorEnabled, secureInspector };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
compareSecrets,
|
|
3
|
+
configureInspectorAccessToken,
|
|
2
4
|
createActorInspectorClient,
|
|
3
|
-
createManagerInspectorClient
|
|
4
|
-
|
|
5
|
+
createManagerInspectorClient,
|
|
6
|
+
getInspectorUrl,
|
|
7
|
+
isInspectorEnabled,
|
|
8
|
+
secureInspector
|
|
9
|
+
} from "../chunk-4GP7BZSR.js";
|
|
5
10
|
import {
|
|
6
11
|
ActorFeature,
|
|
7
12
|
ActorId,
|
|
@@ -22,10 +27,10 @@ import {
|
|
|
22
27
|
RecordedRealtimeEventSchema,
|
|
23
28
|
TableSchema,
|
|
24
29
|
TablesSchema
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-GZVBFXBI.js";
|
|
31
|
+
import "../chunk-YQ4XQYPM.js";
|
|
32
|
+
import "../chunk-PUSQNDJG.js";
|
|
33
|
+
import "../chunk-RVP5RUSC.js";
|
|
29
34
|
import "../chunk-YPZFLUO6.js";
|
|
30
35
|
export {
|
|
31
36
|
ActorFeature,
|
|
@@ -47,7 +52,12 @@ export {
|
|
|
47
52
|
RecordedRealtimeEventSchema,
|
|
48
53
|
TableSchema,
|
|
49
54
|
TablesSchema,
|
|
55
|
+
compareSecrets,
|
|
56
|
+
configureInspectorAccessToken,
|
|
50
57
|
createActorInspectorClient,
|
|
51
|
-
createManagerInspectorClient
|
|
58
|
+
createManagerInspectorClient,
|
|
59
|
+
getInspectorUrl,
|
|
60
|
+
isInspectorEnabled,
|
|
61
|
+
secureInspector
|
|
52
62
|
};
|
|
53
63
|
//# sourceMappingURL=mod.js.map
|
package/dist/tsup/mod.cjs
CHANGED
|
@@ -10,32 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
var _chunk3Y45CIF4cjs = require('./chunk-3Y45CIF4.cjs');
|
|
14
|
+
require('./chunk-G4ABMAQY.cjs');
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
var _chunkTWGATZ3Xcjs = require('./chunk-TWGATZ3X.cjs');
|
|
16
|
-
require('./chunk-KUPQZYUQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
var _chunk5ZOHIKWGcjs = require('./chunk-5ZOHIKWG.cjs');
|
|
21
|
+
require('./chunk-B3TLRM4Q.cjs');
|
|
22
|
+
require('./chunk-K4ENQCC4.cjs');
|
|
23
|
+
require('./chunk-DFS77KAA.cjs');
|
|
20
24
|
|
|
21
25
|
|
|
22
26
|
|
|
23
27
|
|
|
28
|
+
var _chunkSAZCNSVYcjs = require('./chunk-SAZCNSVY.cjs');
|
|
29
|
+
require('./chunk-3MBP4WNC.cjs');
|
|
24
30
|
|
|
25
|
-
var _chunkUFWAK3X2cjs = require('./chunk-UFWAK3X2.cjs');
|
|
26
|
-
require('./chunk-DIAYNQTE.cjs');
|
|
27
|
-
require('./chunk-KG3C7MKR.cjs');
|
|
28
|
-
require('./chunk-NTCUGYSD.cjs');
|
|
29
31
|
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var _chunkTCUI5JFEcjs = require('./chunk-TCUI5JFE.cjs');
|
|
34
|
-
require('./chunk-MRRT2CZD.cjs');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _chunk5JBFVV4Ccjs = require('./chunk-5JBFVV4C.cjs');
|
|
33
|
+
var _chunk6EUWRXLTcjs = require('./chunk-6EUWRXLT.cjs');
|
|
39
34
|
|
|
40
35
|
|
|
41
36
|
var _chunk5QGQK44Lcjs = require('./chunk-5QGQK44L.cjs');
|
|
@@ -61,10 +56,5 @@ var _chunk5QGQK44Lcjs = require('./chunk-5QGQK44L.cjs');
|
|
|
61
56
|
|
|
62
57
|
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.ALLOWED_PUBLIC_HEADERS = _chunkTCUI5JFEcjs.ALLOWED_PUBLIC_HEADERS; exports.CONNECTION_DRIVER_HTTP = _chunkUFWAK3X2cjs.CONNECTION_DRIVER_HTTP; exports.CONNECTION_DRIVER_SSE = _chunkUFWAK3X2cjs.CONNECTION_DRIVER_SSE; exports.CONNECTION_DRIVER_WEBSOCKET = _chunkUFWAK3X2cjs.CONNECTION_DRIVER_WEBSOCKET; exports.GenericConnGlobalState = _chunkTWGATZ3Xcjs.GenericConnGlobalState; exports.InlineWebSocketAdapter2 = _chunkTWGATZ3Xcjs.InlineWebSocketAdapter2; exports.PATH_CONNECT_WEBSOCKET = _chunkTCUI5JFEcjs.PATH_CONNECT_WEBSOCKET; exports.PATH_RAW_WEBSOCKET_PREFIX = _chunkTCUI5JFEcjs.PATH_RAW_WEBSOCKET_PREFIX; exports.Registry = _chunkTWGATZ3Xcjs.Registry; exports.RegistryConfigSchema = _chunkTWGATZ3Xcjs.RegistryConfigSchema; exports.UserError = _chunk5QGQK44Lcjs.UserError; exports.actor = _chunkTWGATZ3Xcjs.actor; exports.createActorRouter = _chunkTWGATZ3Xcjs.createActorRouter; exports.createClientWithDriver = _chunkUFWAK3X2cjs.createClientWithDriver; exports.createEngineDriver = _chunkTWGATZ3Xcjs.createEngineDriver; exports.createFileSystemDriver = _chunkTWGATZ3Xcjs.createFileSystemDriver; exports.createGenericConnDrivers = _chunkTWGATZ3Xcjs.createGenericConnDrivers; exports.createMemoryDriver = _chunkTWGATZ3Xcjs.createMemoryDriver; exports.generateConnId = _chunkUFWAK3X2cjs.generateConnId; exports.generateConnToken = _chunkUFWAK3X2cjs.generateConnToken; exports.handleRawWebSocketHandler = _chunkTWGATZ3Xcjs.handleRawWebSocketHandler; exports.handleWebSocketConnect = _chunkTWGATZ3Xcjs.handleWebSocketConnect; exports.lookupInRegistry = _chunkUFWAK3X2cjs.lookupInRegistry; exports.noopNext = _chunk5JBFVV4Ccjs.noopNext; exports.setup = _chunkTWGATZ3Xcjs.setup; exports.toUint8Array = _chunk5JBFVV4Ccjs.toUint8Array;
|
|
59
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkSAZCNSVYcjs.ALLOWED_PUBLIC_HEADERS; exports.InlineWebSocketAdapter2 = _chunk3Y45CIF4cjs.InlineWebSocketAdapter2; exports.PATH_CONNECT_WEBSOCKET = _chunkSAZCNSVYcjs.PATH_CONNECT_WEBSOCKET; exports.PATH_RAW_WEBSOCKET_PREFIX = _chunkSAZCNSVYcjs.PATH_RAW_WEBSOCKET_PREFIX; exports.Registry = _chunk3Y45CIF4cjs.Registry; exports.RegistryConfigSchema = _chunk3Y45CIF4cjs.RegistryConfigSchema; exports.UserError = _chunk5QGQK44Lcjs.UserError; exports.actor = _chunk3Y45CIF4cjs.actor; exports.createActorRouter = _chunk3Y45CIF4cjs.createActorRouter; exports.createClientWithDriver = _chunk5ZOHIKWGcjs.createClientWithDriver; exports.createEngineDriver = _chunk3Y45CIF4cjs.createEngineDriver; exports.createFileSystemDriver = _chunk3Y45CIF4cjs.createFileSystemDriver; exports.createMemoryDriver = _chunk3Y45CIF4cjs.createMemoryDriver; exports.generateConnId = _chunk5ZOHIKWGcjs.generateConnId; exports.generateConnToken = _chunk5ZOHIKWGcjs.generateConnToken; exports.handleRawWebSocketHandler = _chunk3Y45CIF4cjs.handleRawWebSocketHandler; exports.handleWebSocketConnect = _chunk3Y45CIF4cjs.handleWebSocketConnect; exports.lookupInRegistry = _chunk5ZOHIKWGcjs.lookupInRegistry; exports.noopNext = _chunk6EUWRXLTcjs.noopNext; exports.setup = _chunk3Y45CIF4cjs.setup; exports.toUint8Array = _chunk6EUWRXLTcjs.toUint8Array;
|
|
70
60
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/mod.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,s0CAAC","file":"/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/mod.cjs"}
|
package/dist/tsup/mod.d.cts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './
|
|
2
|
-
export { n as ActionContext,
|
|
1
|
+
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './conn-DdzHTm2E.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, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-DdzHTm2E.cjs';
|
|
3
3
|
import { WSContext } from 'hono/ws';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.cjs';
|
|
5
5
|
import * as hono_types from 'hono/types';
|
|
6
6
|
import { Hono } from 'hono';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
export { toUint8Array } from './utils.cjs';
|
|
9
|
-
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-
|
|
9
|
+
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-B3Lu87yJ.cjs';
|
|
10
10
|
export { UserError, UserErrorOptions } from './actor/errors.cjs';
|
|
11
|
+
import 'hono/streaming';
|
|
11
12
|
import 'pino';
|
|
12
13
|
import 'nanoevents';
|
|
13
|
-
import './common-CXCe7s6i.cjs';
|
|
14
14
|
import 'zod/v4';
|
|
15
|
-
import 'hono/streaming';
|
|
16
15
|
import 'hono/utils/http-status';
|
|
17
16
|
|
|
18
17
|
interface UniversalEvent {
|
|
@@ -97,8 +96,8 @@ declare class InlineWebSocketAdapter2 implements UniversalWebSocket {
|
|
|
97
96
|
/**
|
|
98
97
|
* Creates a WebSocket connection handler
|
|
99
98
|
*/
|
|
100
|
-
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown,
|
|
101
|
-
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string
|
|
99
|
+
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown, connId?: string, connToken?: string): Promise<UpgradeWebSocketArgs>;
|
|
100
|
+
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string): Promise<UpgradeWebSocketArgs>;
|
|
102
101
|
|
|
103
102
|
interface ActorRouterBindings {
|
|
104
103
|
actorId: string;
|
|
@@ -116,6 +115,7 @@ declare function actor<TState, TConnParams, TConnState, TVars, TInput, TDatabase
|
|
|
116
115
|
declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
117
116
|
app: z.ZodOptional<z.ZodType<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">, z.ZodTypeDef, Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>>;
|
|
118
117
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
118
|
+
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
119
119
|
pegboardEndpoint: z.ZodOptional<z.ZodString>;
|
|
120
120
|
namespace: z.ZodDefault<z.ZodString>;
|
|
121
121
|
runnerName: z.ZodDefault<z.ZodString>;
|
|
@@ -127,9 +127,11 @@ declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
127
127
|
runnerName: string;
|
|
128
128
|
runnerKey: string;
|
|
129
129
|
totalSlots: number;
|
|
130
|
+
token?: string | undefined;
|
|
130
131
|
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
131
132
|
pegboardEndpoint?: string | undefined;
|
|
132
133
|
}, {
|
|
134
|
+
token?: string | undefined;
|
|
133
135
|
endpoint?: string | undefined;
|
|
134
136
|
namespace?: string | undefined;
|
|
135
137
|
runnerName?: string | undefined;
|
package/dist/tsup/mod.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './
|
|
2
|
-
export { n as ActionContext,
|
|
1
|
+
import { U as UniversalWebSocket, R as RivetEvent, a as RivetCloseEvent, b as RivetMessageEvent, A as ActorDriver, c as RunConfig, E as Encoding, d as AnyDatabaseProvider, e as Actions, f as ActorConfigInput, g as ActorDefinition, D as DriverConfig } from './conn-DCSQgIlw.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, k as createClientWithDriver, h as generateConnId, i as generateConnToken, u as lookupInRegistry, L as setup, B as test } from './conn-DCSQgIlw.js';
|
|
3
3
|
import { WSContext } from 'hono/ws';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.js';
|
|
5
5
|
import * as hono_types from 'hono/types';
|
|
6
6
|
import { Hono } from 'hono';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
export { toUint8Array } from './utils.js';
|
|
9
|
-
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-
|
|
9
|
+
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT_WEBSOCKET, a as PATH_RAW_WEBSOCKET_PREFIX } from './actor-router-consts-B3Lu87yJ.js';
|
|
10
10
|
export { UserError, UserErrorOptions } from './actor/errors.js';
|
|
11
|
+
import 'hono/streaming';
|
|
11
12
|
import 'pino';
|
|
12
13
|
import 'nanoevents';
|
|
13
|
-
import './common-CXCe7s6i.js';
|
|
14
14
|
import 'zod/v4';
|
|
15
|
-
import 'hono/streaming';
|
|
16
15
|
import 'hono/utils/http-status';
|
|
17
16
|
|
|
18
17
|
interface UniversalEvent {
|
|
@@ -97,8 +96,8 @@ declare class InlineWebSocketAdapter2 implements UniversalWebSocket {
|
|
|
97
96
|
/**
|
|
98
97
|
* Creates a WebSocket connection handler
|
|
99
98
|
*/
|
|
100
|
-
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown,
|
|
101
|
-
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string
|
|
99
|
+
declare function handleWebSocketConnect(req: Request | undefined, runConfig: RunConfig, actorDriver: ActorDriver, actorId: string, encoding: Encoding, parameters: unknown, connId?: string, connToken?: string): Promise<UpgradeWebSocketArgs>;
|
|
100
|
+
declare function handleRawWebSocketHandler(req: Request | undefined, path: string, actorDriver: ActorDriver, actorId: string): Promise<UpgradeWebSocketArgs>;
|
|
102
101
|
|
|
103
102
|
interface ActorRouterBindings {
|
|
104
103
|
actorId: string;
|
|
@@ -116,6 +115,7 @@ declare function actor<TState, TConnParams, TConnState, TVars, TInput, TDatabase
|
|
|
116
115
|
declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
117
116
|
app: z.ZodOptional<z.ZodType<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">, z.ZodTypeDef, Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>>;
|
|
118
117
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
118
|
+
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
119
119
|
pegboardEndpoint: z.ZodOptional<z.ZodString>;
|
|
120
120
|
namespace: z.ZodDefault<z.ZodString>;
|
|
121
121
|
runnerName: z.ZodDefault<z.ZodString>;
|
|
@@ -127,9 +127,11 @@ declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
127
127
|
runnerName: string;
|
|
128
128
|
runnerKey: string;
|
|
129
129
|
totalSlots: number;
|
|
130
|
+
token?: string | undefined;
|
|
130
131
|
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
131
132
|
pegboardEndpoint?: string | undefined;
|
|
132
133
|
}, {
|
|
134
|
+
token?: string | undefined;
|
|
133
135
|
endpoint?: string | undefined;
|
|
134
136
|
namespace?: string | undefined;
|
|
135
137
|
runnerName?: string | undefined;
|
package/dist/tsup/mod.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
GenericConnGlobalState,
|
|
3
2
|
InlineWebSocketAdapter2,
|
|
4
3
|
Registry,
|
|
5
4
|
RegistryConfigSchema,
|
|
@@ -7,44 +6,36 @@ import {
|
|
|
7
6
|
createActorRouter,
|
|
8
7
|
createEngineDriver,
|
|
9
8
|
createFileSystemDriver,
|
|
10
|
-
createGenericConnDrivers,
|
|
11
9
|
createMemoryDriver,
|
|
12
10
|
handleRawWebSocketHandler,
|
|
13
11
|
handleWebSocketConnect,
|
|
14
12
|
setup
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-HPT3I7UU.js";
|
|
14
|
+
import "./chunk-4GP7BZSR.js";
|
|
17
15
|
import {
|
|
18
|
-
CONNECTION_DRIVER_HTTP,
|
|
19
|
-
CONNECTION_DRIVER_SSE,
|
|
20
|
-
CONNECTION_DRIVER_WEBSOCKET,
|
|
21
16
|
createClientWithDriver,
|
|
22
17
|
generateConnId,
|
|
23
18
|
generateConnToken,
|
|
24
19
|
lookupInRegistry
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-BW5DPM6Z.js";
|
|
21
|
+
import "./chunk-GZVBFXBI.js";
|
|
22
|
+
import "./chunk-E4UVJKSV.js";
|
|
23
|
+
import "./chunk-JD54PXWP.js";
|
|
29
24
|
import {
|
|
30
25
|
ALLOWED_PUBLIC_HEADERS,
|
|
31
26
|
PATH_CONNECT_WEBSOCKET,
|
|
32
27
|
PATH_RAW_WEBSOCKET_PREFIX
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-YQ4XQYPM.js";
|
|
29
|
+
import "./chunk-PUSQNDJG.js";
|
|
35
30
|
import {
|
|
36
31
|
noopNext,
|
|
37
32
|
toUint8Array
|
|
38
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RVP5RUSC.js";
|
|
39
34
|
import {
|
|
40
35
|
UserError
|
|
41
36
|
} from "./chunk-YPZFLUO6.js";
|
|
42
37
|
export {
|
|
43
38
|
ALLOWED_PUBLIC_HEADERS,
|
|
44
|
-
CONNECTION_DRIVER_HTTP,
|
|
45
|
-
CONNECTION_DRIVER_SSE,
|
|
46
|
-
CONNECTION_DRIVER_WEBSOCKET,
|
|
47
|
-
GenericConnGlobalState,
|
|
48
39
|
InlineWebSocketAdapter2,
|
|
49
40
|
PATH_CONNECT_WEBSOCKET,
|
|
50
41
|
PATH_RAW_WEBSOCKET_PREFIX,
|
|
@@ -56,7 +47,6 @@ export {
|
|
|
56
47
|
createClientWithDriver,
|
|
57
48
|
createEngineDriver,
|
|
58
49
|
createFileSystemDriver,
|
|
59
|
-
createGenericConnDrivers,
|
|
60
50
|
createMemoryDriver,
|
|
61
51
|
generateConnId,
|
|
62
52
|
generateConnToken,
|
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 _chunkTZGUSEIJcjs = require('../chunk-TZGUSEIJ.cjs');
|
|
5
|
+
require('../chunk-3Y45CIF4.cjs');
|
|
6
|
+
require('../chunk-G4ABMAQY.cjs');
|
|
7
|
+
require('../chunk-5ZOHIKWG.cjs');
|
|
8
|
+
require('../chunk-B3TLRM4Q.cjs');
|
|
9
|
+
require('../chunk-K4ENQCC4.cjs');
|
|
10
|
+
require('../chunk-DFS77KAA.cjs');
|
|
11
|
+
require('../chunk-SAZCNSVY.cjs');
|
|
12
|
+
require('../chunk-3MBP4WNC.cjs');
|
|
13
|
+
require('../chunk-6EUWRXLT.cjs');
|
|
14
14
|
require('../chunk-5QGQK44L.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.getPort =
|
|
18
|
+
exports.getPort = _chunkTZGUSEIJcjs.getPort; exports.setupTest = _chunkTZGUSEIJcjs.setupTest;
|
|
19
19
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/test/mod.d.cts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { TestContext } from 'vitest';
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import 'hono';
|
|
2
|
+
import { K as Registry, C as Client } from '../conn-DdzHTm2E.cjs';
|
|
3
|
+
import 'hono/streaming';
|
|
4
|
+
import 'hono/ws';
|
|
6
5
|
import '../utils.cjs';
|
|
7
6
|
import '../utils-fwx3o3K9.cjs';
|
|
7
|
+
import 'hono';
|
|
8
8
|
import 'hono/utils/http-status';
|
|
9
|
+
import 'zod';
|
|
10
|
+
import 'pino';
|
|
9
11
|
import 'nanoevents';
|
|
10
|
-
import '../common-CXCe7s6i.cjs';
|
|
11
12
|
import 'zod/v4';
|
|
12
|
-
import 'hono/streaming';
|
|
13
|
-
import 'hono/ws';
|
|
14
13
|
|
|
15
14
|
interface SetupTestResult<A extends Registry<any>> {
|
|
16
15
|
client: Client<A>;
|
package/dist/tsup/test/mod.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { TestContext } from 'vitest';
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import 'hono';
|
|
2
|
+
import { K as Registry, C as Client } from '../conn-DCSQgIlw.js';
|
|
3
|
+
import 'hono/streaming';
|
|
4
|
+
import 'hono/ws';
|
|
6
5
|
import '../utils.js';
|
|
7
6
|
import '../utils-fwx3o3K9.js';
|
|
7
|
+
import 'hono';
|
|
8
8
|
import 'hono/utils/http-status';
|
|
9
|
+
import 'zod';
|
|
10
|
+
import 'pino';
|
|
9
11
|
import 'nanoevents';
|
|
10
|
-
import '../common-CXCe7s6i.js';
|
|
11
12
|
import 'zod/v4';
|
|
12
|
-
import 'hono/streaming';
|
|
13
|
-
import 'hono/ws';
|
|
14
13
|
|
|
15
14
|
interface SetupTestResult<A extends Registry<any>> {
|
|
16
15
|
client: Client<A>;
|
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-SBKRVQS2.js";
|
|
5
|
+
import "../chunk-HPT3I7UU.js";
|
|
6
|
+
import "../chunk-4GP7BZSR.js";
|
|
7
|
+
import "../chunk-BW5DPM6Z.js";
|
|
8
|
+
import "../chunk-GZVBFXBI.js";
|
|
9
|
+
import "../chunk-E4UVJKSV.js";
|
|
10
|
+
import "../chunk-JD54PXWP.js";
|
|
11
|
+
import "../chunk-YQ4XQYPM.js";
|
|
12
|
+
import "../chunk-PUSQNDJG.js";
|
|
13
|
+
import "../chunk-RVP5RUSC.js";
|
|
14
14
|
import "../chunk-YPZFLUO6.js";
|
|
15
15
|
export {
|
|
16
16
|
getPort,
|