rivetkit 2.0.3 → 2.0.4
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/README.md +11 -0
- package/dist/schemas/actor-persist/v1.ts +21 -24
- package/dist/schemas/client-protocol/v1.ts +6 -0
- package/dist/tsup/actor/errors.cjs +10 -2
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/actor/errors.d.cts +17 -4
- package/dist/tsup/actor/errors.d.ts +17 -4
- package/dist/tsup/actor/errors.js +11 -3
- package/dist/tsup/{chunk-6PDXBYI5.js → chunk-3F2YSRJL.js} +8 -23
- package/dist/tsup/chunk-3F2YSRJL.js.map +1 -0
- package/dist/tsup/chunk-4CXBCT26.cjs +250 -0
- package/dist/tsup/chunk-4CXBCT26.cjs.map +1 -0
- package/dist/tsup/chunk-4R73YDN3.cjs +20 -0
- package/dist/tsup/chunk-4R73YDN3.cjs.map +1 -0
- package/dist/tsup/{chunk-OGAPU3UG.cjs → chunk-6LJT3QRL.cjs} +39 -25
- package/dist/tsup/chunk-6LJT3QRL.cjs.map +1 -0
- package/dist/tsup/{chunk-6WKQDDUD.cjs → chunk-GICQ3YCU.cjs} +143 -141
- package/dist/tsup/chunk-GICQ3YCU.cjs.map +1 -0
- package/dist/tsup/{chunk-FLMTTN27.js → chunk-H26RP6GD.js} +15 -8
- package/dist/tsup/chunk-H26RP6GD.js.map +1 -0
- package/dist/tsup/chunk-HI3HWJRC.js +20 -0
- package/dist/tsup/chunk-HI3HWJRC.js.map +1 -0
- package/dist/tsup/{chunk-4NSUQZ2H.js → chunk-HLLF4B4Q.js} +116 -114
- package/dist/tsup/chunk-HLLF4B4Q.js.map +1 -0
- package/dist/tsup/{chunk-FCCPJNMA.cjs → chunk-IH6CKNDW.cjs} +12 -27
- package/dist/tsup/chunk-IH6CKNDW.cjs.map +1 -0
- package/dist/tsup/chunk-LV2S3OU3.js +250 -0
- package/dist/tsup/chunk-LV2S3OU3.js.map +1 -0
- package/dist/tsup/{chunk-R2OPSKIV.cjs → chunk-LWNKVZG5.cjs} +20 -13
- package/dist/tsup/chunk-LWNKVZG5.cjs.map +1 -0
- package/dist/tsup/{chunk-INGJP237.js → chunk-NFU2BBT5.js} +102 -43
- package/dist/tsup/chunk-NFU2BBT5.js.map +1 -0
- package/dist/tsup/{chunk-3H7O2A7I.js → chunk-PQY7KKTL.js} +33 -19
- package/dist/tsup/chunk-PQY7KKTL.js.map +1 -0
- package/dist/tsup/{chunk-PO4VLDWA.js → chunk-QK72M5JB.js} +3 -5
- package/dist/tsup/chunk-QK72M5JB.js.map +1 -0
- package/dist/tsup/{chunk-TZJKSBUQ.cjs → chunk-QNNXFOQV.cjs} +3 -5
- package/dist/tsup/chunk-QNNXFOQV.cjs.map +1 -0
- package/dist/tsup/{chunk-GIR3AFFI.cjs → chunk-SBHHJ6QS.cjs} +102 -43
- package/dist/tsup/chunk-SBHHJ6QS.cjs.map +1 -0
- package/dist/tsup/chunk-TQ62L3X7.js +325 -0
- package/dist/tsup/chunk-TQ62L3X7.js.map +1 -0
- package/dist/tsup/chunk-VO7ZRVVD.cjs +6293 -0
- package/dist/tsup/chunk-VO7ZRVVD.cjs.map +1 -0
- package/dist/tsup/chunk-WHBPJNGW.cjs +325 -0
- package/dist/tsup/chunk-WHBPJNGW.cjs.map +1 -0
- package/dist/tsup/chunk-XJQHKJ4P.js +6293 -0
- package/dist/tsup/chunk-XJQHKJ4P.js.map +1 -0
- package/dist/tsup/client/mod.cjs +10 -10
- package/dist/tsup/client/mod.d.cts +7 -13
- package/dist/tsup/client/mod.d.ts +7 -13
- package/dist/tsup/client/mod.js +9 -9
- package/dist/tsup/common/log.cjs +12 -4
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +23 -17
- package/dist/tsup/common/log.d.ts +23 -17
- package/dist/tsup/common/log.js +15 -7
- package/dist/tsup/common/websocket.cjs +5 -5
- package/dist/tsup/common/websocket.js +4 -4
- package/dist/tsup/{common-CpqORuCq.d.cts → common-CXCe7s6i.d.cts} +2 -2
- package/dist/tsup/{common-CpqORuCq.d.ts → common-CXCe7s6i.d.ts} +2 -2
- package/dist/tsup/{connection-BwUMoe6n.d.ts → connection-BI-6UIBJ.d.ts} +196 -226
- package/dist/tsup/{connection-BR_Ve4ku.d.cts → connection-Dyd4NLGW.d.cts} +196 -226
- package/dist/tsup/driver-helpers/mod.cjs +6 -9
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +5 -6
- package/dist/tsup/driver-helpers/mod.d.ts +5 -6
- package/dist/tsup/driver-helpers/mod.js +6 -9
- package/dist/tsup/driver-test-suite/mod.cjs +155 -1363
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +11 -5
- package/dist/tsup/driver-test-suite/mod.d.ts +11 -5
- package/dist/tsup/driver-test-suite/mod.js +876 -2084
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +6 -8
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +3 -3
- package/dist/tsup/inspector/mod.d.ts +3 -3
- package/dist/tsup/inspector/mod.js +8 -10
- package/dist/tsup/mod.cjs +9 -15
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +47 -42
- package/dist/tsup/mod.d.ts +47 -42
- package/dist/tsup/mod.js +10 -16
- package/dist/tsup/{router-endpoints-DAbqVFx2.d.ts → router-endpoints-BTe_Rsdn.d.cts} +2 -3
- package/dist/tsup/{router-endpoints-AYkXG8Tl.d.cts → router-endpoints-CBSrKHmo.d.ts} +2 -3
- package/dist/tsup/test/mod.cjs +10 -14
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +4 -5
- package/dist/tsup/test/mod.d.ts +4 -5
- package/dist/tsup/test/mod.js +9 -13
- package/dist/tsup/{utils-CT0cv4jd.d.ts → utils-fwx3o3K9.d.cts} +1 -0
- package/dist/tsup/{utils-CT0cv4jd.d.cts → utils-fwx3o3K9.d.ts} +1 -0
- package/dist/tsup/utils.cjs +3 -3
- package/dist/tsup/utils.d.cts +1 -1
- package/dist/tsup/utils.d.ts +1 -1
- package/dist/tsup/utils.js +2 -2
- package/package.json +4 -4
- package/src/actor/action.ts +1 -5
- package/src/actor/config.ts +27 -295
- package/src/actor/connection.ts +9 -12
- package/src/actor/context.ts +1 -4
- package/src/actor/definition.ts +7 -11
- package/src/actor/errors.ts +97 -35
- package/src/actor/generic-conn-driver.ts +28 -16
- package/src/actor/instance.ts +177 -133
- package/src/actor/log.ts +4 -13
- package/src/actor/mod.ts +0 -5
- package/src/actor/protocol/old.ts +42 -26
- package/src/actor/protocol/serde.ts +1 -1
- package/src/actor/router-endpoints.ts +41 -38
- package/src/actor/router.ts +20 -18
- package/src/actor/unstable-react.ts +1 -1
- package/src/actor/utils.ts +6 -2
- package/src/client/actor-common.ts +1 -1
- package/src/client/actor-conn.ts +152 -91
- package/src/client/actor-handle.ts +85 -25
- package/src/client/actor-query.ts +65 -0
- package/src/client/client.ts +29 -98
- package/src/client/config.ts +44 -0
- package/src/client/errors.ts +1 -0
- package/src/client/log.ts +2 -4
- package/src/client/mod.ts +16 -12
- package/src/client/raw-utils.ts +82 -25
- package/src/client/utils.ts +5 -3
- package/src/common/fake-event-source.ts +10 -9
- package/src/common/inline-websocket-adapter2.ts +39 -30
- package/src/common/log.ts +176 -101
- package/src/common/logfmt.ts +21 -30
- package/src/common/router.ts +12 -19
- package/src/common/utils.ts +27 -13
- package/src/common/websocket.ts +0 -1
- package/src/driver-helpers/mod.ts +1 -1
- package/src/driver-test-suite/log.ts +1 -3
- package/src/driver-test-suite/mod.ts +86 -60
- package/src/driver-test-suite/tests/actor-handle.ts +33 -0
- package/src/driver-test-suite/tests/manager-driver.ts +5 -3
- package/src/driver-test-suite/tests/raw-http-direct-registry.ts +227 -226
- package/src/driver-test-suite/tests/raw-websocket-direct-registry.ts +393 -392
- package/src/driver-test-suite/tests/request-access.ts +112 -126
- package/src/driver-test-suite/utils.ts +13 -10
- package/src/drivers/default.ts +7 -4
- package/src/drivers/engine/actor-driver.ts +22 -13
- package/src/drivers/engine/config.ts +2 -10
- package/src/drivers/engine/kv.ts +1 -1
- package/src/drivers/engine/log.ts +1 -3
- package/src/drivers/engine/mod.ts +2 -3
- package/src/drivers/file-system/actor.ts +1 -1
- package/src/drivers/file-system/global-state.ts +33 -20
- package/src/drivers/file-system/log.ts +1 -3
- package/src/drivers/file-system/manager.ts +31 -8
- package/src/inspector/config.ts +9 -4
- package/src/inspector/log.ts +1 -1
- package/src/inspector/manager.ts +2 -2
- package/src/inspector/utils.ts +1 -1
- package/src/manager/driver.ts +10 -2
- package/src/manager/hono-websocket-adapter.ts +21 -12
- package/src/manager/log.ts +2 -4
- package/src/manager/mod.ts +1 -1
- package/src/manager/router.ts +277 -1657
- package/src/manager-api/routes/actors-create.ts +16 -0
- package/src/manager-api/routes/actors-delete.ts +4 -0
- package/src/manager-api/routes/actors-get-by-id.ts +7 -0
- package/src/manager-api/routes/actors-get-or-create-by-id.ts +29 -0
- package/src/manager-api/routes/actors-get.ts +7 -0
- package/src/manager-api/routes/common.ts +18 -0
- package/src/mod.ts +0 -2
- package/src/registry/config.ts +1 -1
- package/src/registry/log.ts +2 -4
- package/src/registry/mod.ts +57 -24
- package/src/registry/run-config.ts +31 -33
- package/src/registry/serve.ts +4 -5
- package/src/remote-manager-driver/actor-http-client.ts +72 -0
- package/src/remote-manager-driver/actor-websocket-client.ts +63 -0
- package/src/remote-manager-driver/api-endpoints.ts +79 -0
- package/src/remote-manager-driver/api-utils.ts +43 -0
- package/src/remote-manager-driver/log.ts +5 -0
- package/src/remote-manager-driver/mod.ts +274 -0
- package/src/{drivers/engine → remote-manager-driver}/ws-proxy.ts +24 -14
- package/src/serde.ts +8 -2
- package/src/test/log.ts +1 -3
- package/src/test/mod.ts +17 -16
- package/dist/tsup/chunk-2CRLFV6Z.cjs +0 -202
- package/dist/tsup/chunk-2CRLFV6Z.cjs.map +0 -1
- package/dist/tsup/chunk-3H7O2A7I.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-4NSUQZ2H.js.map +0 -1
- package/dist/tsup/chunk-6PDXBYI5.js.map +0 -1
- package/dist/tsup/chunk-6WKQDDUD.cjs.map +0 -1
- package/dist/tsup/chunk-CTBOSFUH.cjs +0 -116
- package/dist/tsup/chunk-CTBOSFUH.cjs.map +0 -1
- package/dist/tsup/chunk-EGVZZFE2.js +0 -2857
- package/dist/tsup/chunk-EGVZZFE2.js.map +0 -1
- package/dist/tsup/chunk-FCCPJNMA.cjs.map +0 -1
- package/dist/tsup/chunk-FLMTTN27.js.map +0 -1
- package/dist/tsup/chunk-GIR3AFFI.cjs.map +0 -1
- package/dist/tsup/chunk-INGJP237.js.map +0 -1
- package/dist/tsup/chunk-KJCJLKRM.js +0 -116
- package/dist/tsup/chunk-KJCJLKRM.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-O2MBYIXO.cjs +0 -2857
- package/dist/tsup/chunk-O2MBYIXO.cjs.map +0 -1
- package/dist/tsup/chunk-OGAPU3UG.cjs.map +0 -1
- package/dist/tsup/chunk-OV6AYD4S.js +0 -4406
- package/dist/tsup/chunk-OV6AYD4S.js.map +0 -1
- package/dist/tsup/chunk-PO4VLDWA.js.map +0 -1
- package/dist/tsup/chunk-R2OPSKIV.cjs.map +0 -1
- package/dist/tsup/chunk-TZJKSBUQ.cjs.map +0 -1
- package/dist/tsup/chunk-UBUC5C3G.cjs +0 -189
- package/dist/tsup/chunk-UBUC5C3G.cjs.map +0 -1
- package/dist/tsup/chunk-UIM22YJL.cjs +0 -4406
- package/dist/tsup/chunk-UIM22YJL.cjs.map +0 -1
- package/dist/tsup/chunk-URVFQMYI.cjs +0 -230
- package/dist/tsup/chunk-URVFQMYI.cjs.map +0 -1
- package/dist/tsup/chunk-UVUPOS46.js +0 -230
- package/dist/tsup/chunk-UVUPOS46.js.map +0 -1
- package/dist/tsup/chunk-VRRHBNJC.js +0 -189
- package/dist/tsup/chunk-VRRHBNJC.js.map +0 -1
- package/dist/tsup/chunk-XFSS33EQ.js +0 -202
- package/dist/tsup/chunk-XFSS33EQ.js.map +0 -1
- package/src/client/http-client-driver.ts +0 -326
- package/src/driver-test-suite/test-inline-client-driver.ts +0 -402
- package/src/driver-test-suite/tests/actor-auth.ts +0 -591
- package/src/drivers/engine/api-endpoints.ts +0 -128
- package/src/drivers/engine/api-utils.ts +0 -70
- package/src/drivers/engine/manager-driver.ts +0 -391
- package/src/inline-client-driver/log.ts +0 -7
- package/src/inline-client-driver/mod.ts +0 -385
- package/src/manager/auth.ts +0 -121
- /package/src/{drivers/engine → actor}/keys.test.ts +0 -0
- /package/src/{drivers/engine → actor}/keys.ts +0 -0
package/dist/tsup/client/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4R73YDN3cjs = require('../chunk-4R73YDN3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -10,14 +10,14 @@ var _chunkURVFQMYIcjs = require('../chunk-URVFQMYI.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
20
|
-
require('../chunk-
|
|
13
|
+
var _chunkVO7ZRVVDcjs = require('../chunk-VO7ZRVVD.cjs');
|
|
14
|
+
require('../chunk-LWNKVZG5.cjs');
|
|
15
|
+
require('../chunk-QNNXFOQV.cjs');
|
|
16
|
+
require('../chunk-WHBPJNGW.cjs');
|
|
17
|
+
require('../chunk-GICQ3YCU.cjs');
|
|
18
|
+
require('../chunk-4CXBCT26.cjs');
|
|
19
|
+
require('../chunk-6LJT3QRL.cjs');
|
|
20
|
+
require('../chunk-SBHHJ6QS.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -28,5 +28,5 @@ require('../chunk-GIR3AFFI.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
exports.ActorClientError =
|
|
31
|
+
exports.ActorClientError = _chunkVO7ZRVVDcjs.ActorClientError; exports.ActorConnRaw = _chunkVO7ZRVVDcjs.ActorConnRaw; exports.ActorDefinition = _chunkVO7ZRVVDcjs.ActorDefinition; exports.ActorError = _chunkVO7ZRVVDcjs.ActorError; exports.ActorHandleRaw = _chunkVO7ZRVVDcjs.ActorHandleRaw; exports.InternalError = _chunkVO7ZRVVDcjs.InternalError; exports.MalformedResponseMessage = _chunkVO7ZRVVDcjs.MalformedResponseMessage; exports.ManagerError = _chunkVO7ZRVVDcjs.ManagerError; exports.createClient = _chunk4R73YDN3cjs.createClient;
|
|
32
32
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Q as Registry, T as ClientConfigInput, C as Client } from '../connection-Dyd4NLGW.cjs';
|
|
2
|
+
export { a6 as ActorAccessor, a0 as ActorActionFunction, W as ActorClientError, a1 as ActorConn, a3 as ActorConnRaw, d as ActorDefinition, X as ActorError, a4 as ActorHandle, a5 as ActorHandleRaw, x as AnyActorDefinition, a7 as ClientRaw, a8 as CreateOptions, $ as CreateRequest, E as Encoding, a2 as EventUnsubscribe, a9 as ExtractActorsFromRegistry, aa as ExtractRegistryFromClient, ab as GetOptions, ac as GetWithIdOptions, Y as InternalError, Z as MalformedResponseMessage, _ as ManagerError, ad as QueryOptions, ae as Region, V as Transport } from '../connection-Dyd4NLGW.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import 'pino';
|
|
4
5
|
import 'hono';
|
|
5
|
-
import 'ws';
|
|
6
|
-
import '../common/log.cjs';
|
|
7
6
|
import '../utils.cjs';
|
|
8
|
-
import '../utils-
|
|
7
|
+
import '../utils-fwx3o3K9.cjs';
|
|
9
8
|
import 'hono/utils/http-status';
|
|
10
9
|
import 'nanoevents';
|
|
11
|
-
import '../common-
|
|
10
|
+
import '../common-CXCe7s6i.cjs';
|
|
12
11
|
import 'zod/v4';
|
|
13
12
|
import 'hono/streaming';
|
|
14
13
|
import 'hono/ws';
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* Creates a client with the actor accessor proxy.
|
|
18
|
-
*
|
|
19
|
-
* @template A The actor application type.
|
|
20
|
-
* @param {string} managerEndpoint - The manager endpoint.
|
|
21
|
-
* @param {ClientOptions} [opts] - Options for configuring the client.
|
|
22
|
-
* @returns {Client<A>} - A proxied client that supports the `client.myActor.connect()` syntax.
|
|
23
17
|
*/
|
|
24
|
-
declare function createClient<A extends Registry<any>>(
|
|
18
|
+
declare function createClient<A extends Registry<any>>(endpointOrConfig?: string | ClientConfigInput): Client<A>;
|
|
25
19
|
|
|
26
|
-
export { Client,
|
|
20
|
+
export { Client, createClient };
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Q as Registry, T as ClientConfigInput, C as Client } from '../connection-BI-6UIBJ.js';
|
|
2
|
+
export { a6 as ActorAccessor, a0 as ActorActionFunction, W as ActorClientError, a1 as ActorConn, a3 as ActorConnRaw, d as ActorDefinition, X as ActorError, a4 as ActorHandle, a5 as ActorHandleRaw, x as AnyActorDefinition, a7 as ClientRaw, a8 as CreateOptions, $ as CreateRequest, E as Encoding, a2 as EventUnsubscribe, a9 as ExtractActorsFromRegistry, aa as ExtractRegistryFromClient, ab as GetOptions, ac as GetWithIdOptions, Y as InternalError, Z as MalformedResponseMessage, _ as ManagerError, ad as QueryOptions, ae as Region, V as Transport } from '../connection-BI-6UIBJ.js';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import 'pino';
|
|
4
5
|
import 'hono';
|
|
5
|
-
import 'ws';
|
|
6
|
-
import '../common/log.js';
|
|
7
6
|
import '../utils.js';
|
|
8
|
-
import '../utils-
|
|
7
|
+
import '../utils-fwx3o3K9.js';
|
|
9
8
|
import 'hono/utils/http-status';
|
|
10
9
|
import 'nanoevents';
|
|
11
|
-
import '../common-
|
|
10
|
+
import '../common-CXCe7s6i.js';
|
|
12
11
|
import 'zod/v4';
|
|
13
12
|
import 'hono/streaming';
|
|
14
13
|
import 'hono/ws';
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
16
|
* Creates a client with the actor accessor proxy.
|
|
18
|
-
*
|
|
19
|
-
* @template A The actor application type.
|
|
20
|
-
* @param {string} managerEndpoint - The manager endpoint.
|
|
21
|
-
* @param {ClientOptions} [opts] - Options for configuring the client.
|
|
22
|
-
* @returns {Client<A>} - A proxied client that supports the `client.myActor.connect()` syntax.
|
|
23
17
|
*/
|
|
24
|
-
declare function createClient<A extends Registry<any>>(
|
|
18
|
+
declare function createClient<A extends Registry<any>>(endpointOrConfig?: string | ClientConfigInput): Client<A>;
|
|
25
19
|
|
|
26
|
-
export { Client,
|
|
20
|
+
export { Client, createClient };
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HI3HWJRC.js";
|
|
4
4
|
import {
|
|
5
5
|
ActorClientError,
|
|
6
6
|
ActorConnRaw,
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
InternalError,
|
|
11
11
|
MalformedResponseMessage,
|
|
12
12
|
ManagerError
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-XJQHKJ4P.js";
|
|
14
|
+
import "../chunk-H26RP6GD.js";
|
|
15
|
+
import "../chunk-QK72M5JB.js";
|
|
16
|
+
import "../chunk-TQ62L3X7.js";
|
|
17
|
+
import "../chunk-HLLF4B4Q.js";
|
|
18
|
+
import "../chunk-LV2S3OU3.js";
|
|
19
|
+
import "../chunk-PQY7KKTL.js";
|
|
20
|
+
import "../chunk-NFU2BBT5.js";
|
|
21
21
|
export {
|
|
22
22
|
ActorClientError,
|
|
23
23
|
ActorConnRaw,
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var _chunk2CRLFV6Zcjs = require('../chunk-2CRLFV6Z.cjs');
|
|
6
|
-
require('../chunk-OGAPU3UG.cjs');
|
|
7
|
-
require('../chunk-GIR3AFFI.cjs');
|
|
8
5
|
|
|
9
6
|
|
|
10
7
|
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
var _chunk4CXBCT26cjs = require('../chunk-4CXBCT26.cjs');
|
|
10
|
+
require('../chunk-6LJT3QRL.cjs');
|
|
11
|
+
require('../chunk-SBHHJ6QS.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.LogLevelSchema = _chunk4CXBCT26cjs.LogLevelSchema; exports.configureBaseLogger = _chunk4CXBCT26cjs.configureBaseLogger; exports.configureDefaultLogger = _chunk4CXBCT26cjs.configureDefaultLogger; exports.getBaseLogger = _chunk4CXBCT26cjs.getBaseLogger; exports.getIncludeTarget = _chunk4CXBCT26cjs.getIncludeTarget; exports.getLogger = _chunk4CXBCT26cjs.getLogger; exports.getPinoLevel = _chunk4CXBCT26cjs.getPinoLevel;
|
|
13
21
|
//# sourceMappingURL=log.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/common/log.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/common/log.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0aAAC","file":"/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/common/log.cjs"}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LevelWithSilent, Logger } from 'pino';
|
|
2
|
+
export { Logger } from 'pino';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
declare const LogLevelSchema: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "silent"]>;
|
|
6
|
+
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
7
|
+
declare function getPinoLevel(logLevel?: LogLevel): LevelWithSilent;
|
|
8
|
+
declare function getIncludeTarget(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Configure a custom base logger.
|
|
11
|
+
*/
|
|
12
|
+
declare function configureBaseLogger(logger: Logger): void;
|
|
13
|
+
/**
|
|
14
|
+
* Configure the default logger with optional log level.
|
|
15
|
+
*/
|
|
16
|
+
declare function configureDefaultLogger(logLevel?: LogLevel): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Get or initialize the base logger.
|
|
19
|
+
*/
|
|
20
|
+
declare function getBaseLogger(): Logger;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a child logger with `target` bound for the given name.
|
|
23
|
+
*/
|
|
17
24
|
declare function getLogger(name?: string): Logger;
|
|
18
|
-
declare function setupLogging(): void;
|
|
19
25
|
|
|
20
|
-
export {
|
|
26
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { LevelWithSilent, Logger } from 'pino';
|
|
2
|
+
export { Logger } from 'pino';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
declare const LogLevelSchema: z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "silent"]>;
|
|
6
|
+
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
7
|
+
declare function getPinoLevel(logLevel?: LogLevel): LevelWithSilent;
|
|
8
|
+
declare function getIncludeTarget(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Configure a custom base logger.
|
|
11
|
+
*/
|
|
12
|
+
declare function configureBaseLogger(logger: Logger): void;
|
|
13
|
+
/**
|
|
14
|
+
* Configure the default logger with optional log level.
|
|
15
|
+
*/
|
|
16
|
+
declare function configureDefaultLogger(logLevel?: LogLevel): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Get or initialize the base logger.
|
|
19
|
+
*/
|
|
20
|
+
declare function getBaseLogger(): Logger;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a child logger with `target` bound for the given name.
|
|
23
|
+
*/
|
|
17
24
|
declare function getLogger(name?: string): Logger;
|
|
18
|
-
declare function setupLogging(): void;
|
|
19
25
|
|
|
20
|
-
export {
|
|
26
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
LogLevelSchema,
|
|
3
|
+
configureBaseLogger,
|
|
4
|
+
configureDefaultLogger,
|
|
5
|
+
getBaseLogger,
|
|
6
|
+
getIncludeTarget,
|
|
3
7
|
getLogger,
|
|
4
|
-
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
+
getPinoLevel
|
|
9
|
+
} from "../chunk-LV2S3OU3.js";
|
|
10
|
+
import "../chunk-PQY7KKTL.js";
|
|
11
|
+
import "../chunk-NFU2BBT5.js";
|
|
8
12
|
export {
|
|
9
|
-
|
|
13
|
+
LogLevelSchema,
|
|
14
|
+
configureBaseLogger,
|
|
15
|
+
configureDefaultLogger,
|
|
16
|
+
getBaseLogger,
|
|
17
|
+
getIncludeTarget,
|
|
10
18
|
getLogger,
|
|
11
|
-
|
|
19
|
+
getPinoLevel
|
|
12
20
|
};
|
|
13
21
|
//# sourceMappingURL=log.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var _chunkQNNXFOQVcjs = require('../chunk-QNNXFOQV.cjs');
|
|
4
|
+
require('../chunk-4CXBCT26.cjs');
|
|
5
|
+
require('../chunk-6LJT3QRL.cjs');
|
|
6
|
+
require('../chunk-SBHHJ6QS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.importWebSocket =
|
|
9
|
+
exports.importWebSocket = _chunkQNNXFOQVcjs.importWebSocket;
|
|
10
10
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importWebSocket
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-QK72M5JB.js";
|
|
4
|
+
import "../chunk-LV2S3OU3.js";
|
|
5
|
+
import "../chunk-PQY7KKTL.js";
|
|
6
|
+
import "../chunk-NFU2BBT5.js";
|
|
7
7
|
export {
|
|
8
8
|
importWebSocket
|
|
9
9
|
};
|
|
@@ -167,7 +167,7 @@ type Tables = z__default.infer<typeof TablesSchema>;
|
|
|
167
167
|
declare const ColumnSchema: z__default.ZodObject<{
|
|
168
168
|
cid: z__default.ZodNumber;
|
|
169
169
|
name: z__default.ZodString;
|
|
170
|
-
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"
|
|
170
|
+
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"integer" | "blob" | "text" | "real" | "numeric" | "serial", string>>;
|
|
171
171
|
notnull: z__default.ZodCoercedBoolean<unknown>;
|
|
172
172
|
dflt_value: z__default.ZodNullable<z__default.ZodString>;
|
|
173
173
|
pk: z__default.ZodNullable<z__default.ZodCoercedBoolean<unknown>>;
|
|
@@ -176,7 +176,7 @@ type Column = z__default.infer<typeof ColumnSchema>;
|
|
|
176
176
|
declare const ColumnsSchema: z__default.ZodArray<z__default.ZodObject<{
|
|
177
177
|
cid: z__default.ZodNumber;
|
|
178
178
|
name: z__default.ZodString;
|
|
179
|
-
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"
|
|
179
|
+
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"integer" | "blob" | "text" | "real" | "numeric" | "serial", string>>;
|
|
180
180
|
notnull: z__default.ZodCoercedBoolean<unknown>;
|
|
181
181
|
dflt_value: z__default.ZodNullable<z__default.ZodString>;
|
|
182
182
|
pk: z__default.ZodNullable<z__default.ZodCoercedBoolean<unknown>>;
|
|
@@ -167,7 +167,7 @@ type Tables = z__default.infer<typeof TablesSchema>;
|
|
|
167
167
|
declare const ColumnSchema: z__default.ZodObject<{
|
|
168
168
|
cid: z__default.ZodNumber;
|
|
169
169
|
name: z__default.ZodString;
|
|
170
|
-
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"
|
|
170
|
+
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"integer" | "blob" | "text" | "real" | "numeric" | "serial", string>>;
|
|
171
171
|
notnull: z__default.ZodCoercedBoolean<unknown>;
|
|
172
172
|
dflt_value: z__default.ZodNullable<z__default.ZodString>;
|
|
173
173
|
pk: z__default.ZodNullable<z__default.ZodCoercedBoolean<unknown>>;
|
|
@@ -176,7 +176,7 @@ type Column = z__default.infer<typeof ColumnSchema>;
|
|
|
176
176
|
declare const ColumnsSchema: z__default.ZodArray<z__default.ZodObject<{
|
|
177
177
|
cid: z__default.ZodNumber;
|
|
178
178
|
name: z__default.ZodString;
|
|
179
|
-
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"
|
|
179
|
+
type: z__default.ZodPipe<z__default.ZodString, z__default.ZodTransform<"integer" | "blob" | "text" | "real" | "numeric" | "serial", string>>;
|
|
180
180
|
notnull: z__default.ZodCoercedBoolean<unknown>;
|
|
181
181
|
dflt_value: z__default.ZodNullable<z__default.ZodString>;
|
|
182
182
|
pk: z__default.ZodNullable<z__default.ZodCoercedBoolean<unknown>>;
|