rivetkit 0.0.0-sqlite-uds.2015d80 → 0.0.0-sqlite-profiling-compat.87d61c0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client.d.ts +28 -25
- package/dist/browser/client.js +6 -9
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.d.ts +2 -22
- package/dist/browser/inspector/client.js +222 -996
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/agent-os/index.cjs +34 -99
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +28 -25
- package/dist/tsup/agent-os/index.d.ts +28 -25
- package/dist/tsup/agent-os/index.js +36 -101
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-MUPT34DY.js → chunk-3GVMLSND.js} +7 -7
- package/dist/tsup/{chunk-OAPVVVTX.cjs → chunk-3MHDOUD7.cjs} +1 -1
- package/dist/tsup/chunk-3MHDOUD7.cjs.map +1 -0
- package/dist/tsup/chunk-4FC7TVS6.cjs.map +1 -1
- package/dist/tsup/{chunk-D5TT3ZDY.js → chunk-B3GLD4IN.js} +2 -22
- package/dist/tsup/chunk-B3GLD4IN.js.map +1 -0
- package/dist/tsup/{chunk-HV4FLJQR.cjs → chunk-BWERJMV6.cjs} +141 -141
- package/dist/tsup/chunk-BWERJMV6.cjs.map +1 -0
- package/dist/tsup/{chunk-CKKFRK2T.cjs → chunk-D363DMNH.cjs} +3 -3
- package/dist/tsup/chunk-D363DMNH.cjs.map +1 -0
- package/dist/tsup/{chunk-COPUTOJF.cjs → chunk-DTRDGPHU.cjs} +7 -7
- package/dist/tsup/chunk-DTRDGPHU.cjs.map +1 -0
- package/dist/tsup/{chunk-5RC3H5MH.cjs → chunk-E4LNLI3W.cjs} +8 -12
- package/dist/tsup/chunk-E4LNLI3W.cjs.map +1 -0
- package/dist/tsup/{chunk-XPXLCL5I.js → chunk-EFU4JW3T.js} +7 -11
- package/dist/tsup/chunk-EFU4JW3T.js.map +1 -0
- package/dist/tsup/{chunk-IVUL2OMZ.cjs → chunk-FNAXD5BQ.cjs} +4 -24
- package/dist/tsup/chunk-FNAXD5BQ.cjs.map +1 -0
- package/dist/tsup/{chunk-YPIVGZVX.cjs → chunk-GM45LG7L.cjs} +10 -18
- package/dist/tsup/chunk-GM45LG7L.cjs.map +1 -0
- package/dist/tsup/{chunk-DNGOGOHS.js → chunk-O3ZUMAN7.js} +3 -3
- package/dist/tsup/{chunk-VBASTLLY.js → chunk-OAUFXOG7.js} +2 -2
- package/dist/tsup/{chunk-VP3RWGXE.cjs → chunk-P6F5MEWX.cjs} +5 -5
- package/dist/tsup/chunk-P6F5MEWX.cjs.map +1 -0
- package/dist/tsup/{chunk-VL3UZ6XX.js → chunk-PT7AC5PC.js} +4 -12
- package/dist/tsup/chunk-PT7AC5PC.js.map +1 -0
- package/dist/tsup/{chunk-5NJB7EE2.js → chunk-UV7INX3N.js} +2 -2
- package/dist/tsup/chunk-VE2X4KMG.cjs.map +1 -1
- package/dist/tsup/{chunk-3GLNEWGY.js → chunk-XIX5DOZN.js} +1 -1
- package/dist/tsup/chunk-XIX5DOZN.js.map +1 -0
- package/dist/tsup/chunk-ZA7FLHKH.cjs.map +1 -1
- package/dist/tsup/client/mod.cjs +7 -7
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +3 -3
- package/dist/tsup/client/mod.d.ts +3 -3
- package/dist/tsup/client/mod.js +6 -6
- package/dist/tsup/common/log.cjs +2 -4
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +1 -5
- package/dist/tsup/common/log.d.ts +1 -5
- package/dist/tsup/common/log.js +3 -5
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.cjs.map +1 -1
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-DLOxy81E.d.cts → config-B0LNDrLY.d.cts} +25 -5
- package/dist/tsup/{config-DLOxy81E.d.ts → config-B0LNDrLY.d.ts} +25 -5
- package/dist/tsup/{config-Ds6DCRhV.d.ts → config-BR1Nn0QQ.d.ts} +5 -22
- package/dist/tsup/{config-CxG53eQo.d.cts → config-tCvkwzyN.d.cts} +5 -22
- package/dist/tsup/{context-Cfbm4QLr.d.ts → context-D4WDwf9m.d.cts} +2 -3
- package/dist/tsup/{context-8KlcOYIs.d.cts → context-oc9zhA3x.d.ts} +2 -3
- package/dist/tsup/db/drizzle.cjs +72 -144
- package/dist/tsup/db/drizzle.cjs.map +1 -1
- package/dist/tsup/db/drizzle.d.cts +2 -4
- package/dist/tsup/db/drizzle.d.ts +2 -4
- package/dist/tsup/db/drizzle.js +72 -144
- package/dist/tsup/db/drizzle.js.map +1 -1
- package/dist/tsup/db/mod.cjs +28 -90
- package/dist/tsup/db/mod.cjs.map +1 -1
- package/dist/tsup/db/mod.d.cts +8 -4
- package/dist/tsup/db/mod.d.ts +8 -4
- package/dist/tsup/db/mod.js +28 -90
- package/dist/tsup/db/mod.js.map +1 -1
- package/dist/tsup/dynamic/mod.cjs +2 -2
- package/dist/tsup/dynamic/mod.cjs.map +1 -1
- package/dist/tsup/dynamic/mod.d.cts +2 -2
- package/dist/tsup/dynamic/mod.d.ts +2 -2
- package/dist/tsup/dynamic/mod.js +1 -1
- package/dist/tsup/inspector/mod.cjs +11 -46
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +15 -37
- package/dist/tsup/inspector/mod.d.ts +15 -37
- package/dist/tsup/inspector/mod.js +10 -45
- package/dist/tsup/inspector/mod.js.map +1 -1
- package/dist/tsup/inspector-tab/mod.cjs +13 -2
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
- package/dist/tsup/inspector-tab/mod.d.cts +14 -4
- package/dist/tsup/inspector-tab/mod.d.ts +14 -4
- package/dist/tsup/inspector-tab/mod.js +12 -1
- package/dist/tsup/inspector-tab/mod.js.map +1 -1
- package/dist/tsup/mod.cjs +91 -191
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +4 -4
- package/dist/tsup/mod.d.ts +4 -4
- package/dist/tsup/mod.js +27 -127
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +10 -10
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +2 -2
- package/dist/tsup/test/mod.d.ts +2 -2
- package/dist/tsup/test/mod.js +6 -6
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +11 -14
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +4 -4
- package/dist/tsup/workflow/mod.d.ts +4 -4
- package/dist/tsup/workflow/mod.js +5 -8
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +14 -9
- package/src/actor/config.ts +0 -2
- package/src/common/bare/transport/v1.ts +0 -36
- package/src/common/database/config.ts +24 -19
- package/src/common/database/mod.test.ts +2 -91
- package/src/common/database/mod.ts +38 -102
- package/src/common/database/native-database.ts +4 -19
- package/src/common/log.ts +8 -14
- package/src/db/drizzle.ts +86 -189
- package/src/db/mod.ts +1 -0
- package/src/inspector/client.browser.ts +16 -73
- package/src/inspector/mod.ts +1 -1
- package/src/inspector-tab/mod.ts +15 -0
- package/src/registry/config/index.ts +0 -3
- package/src/registry/index.ts +0 -4
- package/src/registry/napi-runtime.ts +1 -25
- package/src/registry/native.ts +13 -95
- package/src/registry/runtime.ts +6 -18
- package/src/registry/wasm-runtime.ts +0 -22
- package/src/workflow/context.ts +0 -4
- package/src/workflow/inspector.ts +0 -8
- package/dist/tsup/chunk-3GLNEWGY.js.map +0 -1
- package/dist/tsup/chunk-5RC3H5MH.cjs.map +0 -1
- package/dist/tsup/chunk-CKKFRK2T.cjs.map +0 -1
- package/dist/tsup/chunk-COPUTOJF.cjs.map +0 -1
- package/dist/tsup/chunk-D5TT3ZDY.js.map +0 -1
- package/dist/tsup/chunk-HV4FLJQR.cjs.map +0 -1
- package/dist/tsup/chunk-IVUL2OMZ.cjs.map +0 -1
- package/dist/tsup/chunk-OAPVVVTX.cjs.map +0 -1
- package/dist/tsup/chunk-VL3UZ6XX.js.map +0 -1
- package/dist/tsup/chunk-VP3RWGXE.cjs.map +0 -1
- package/dist/tsup/chunk-XPXLCL5I.js.map +0 -1
- package/dist/tsup/chunk-YPIVGZVX.cjs.map +0 -1
- package/src/common/bare/generated/actor-uds-protocol/v1.ts +0 -802
- package/src/common/bare/generated/inspector/v5.ts +0 -1016
- /package/dist/tsup/{chunk-MUPT34DY.js.map → chunk-3GVMLSND.js.map} +0 -0
- /package/dist/tsup/{chunk-DNGOGOHS.js.map → chunk-O3ZUMAN7.js.map} +0 -0
- /package/dist/tsup/{chunk-VBASTLLY.js.map → chunk-OAUFXOG7.js.map} +0 -0
- /package/dist/tsup/{chunk-5NJB7EE2.js.map → chunk-UV7INX3N.js.map} +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 _chunkDTRDGPHUcjs = require('../chunk-DTRDGPHU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,16 +8,16 @@ var _chunkCOPUTOJFcjs = require('../chunk-COPUTOJF.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBWERJMV6cjs = require('../chunk-BWERJMV6.cjs');
|
|
12
12
|
require('../chunk-VE2X4KMG.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-5RC3H5MH.cjs');
|
|
13
|
+
require('../chunk-P6F5MEWX.cjs');
|
|
14
|
+
require('../chunk-D363DMNH.cjs');
|
|
15
|
+
require('../chunk-E4LNLI3W.cjs');
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
var _chunk4FC7TVS6cjs = require('../chunk-4FC7TVS6.cjs');
|
|
20
|
+
require('../chunk-ZA7FLHKH.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -29,5 +29,5 @@ var _chunk4FC7TVS6cjs = require('../chunk-4FC7TVS6.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
exports.ActorClientError =
|
|
32
|
+
exports.ActorClientError = _chunkBWERJMV6cjs.ActorClientError; exports.ActorConnDisposed = _chunkBWERJMV6cjs.ActorConnDisposed; exports.ActorConnRaw = _chunkBWERJMV6cjs.ActorConnRaw; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorHandleRaw = _chunkBWERJMV6cjs.ActorHandleRaw; exports.MalformedResponseMessage = _chunkBWERJMV6cjs.MalformedResponseMessage; exports.ManagerError = _chunkBWERJMV6cjs.ManagerError; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.createClient = _chunkDTRDGPHUcjs.createClient;
|
|
33
33
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/client/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,qkBAAC","file":"/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/client/mod.cjs"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ax as Registry, _ as Client } from '../config-
|
|
2
|
-
export { b8 as ActorAccessor, b9 as ActorActionFunction, ba as ActorActionOptions, bb as ActorConn, bc as ActorConnRaw, bd as ActorConnStatus, be as ActorConnectOptions, r as ActorDefinition, bf as ActorGatewayOptions, bg as ActorHandle, bh as ActorHandleRaw, A as AnyActorDefinition, bi as ClientRaw, bj as ConnectionStateCallback, bk as CreateOptions, bl as CreateRequest, a9 as Encoding, bm as EventUnsubscribe, bn as ExtractActorsFromRegistry, bo as ExtractRegistryFromClient, bp as GetOptions, bq as GetWithIdOptions, br as QueryOptions, bs as Region, bt as StatusChangeCallback } from '../config-
|
|
1
|
+
import { ax as Registry, _ as Client } from '../config-tCvkwzyN.cjs';
|
|
2
|
+
export { b8 as ActorAccessor, b9 as ActorActionFunction, ba as ActorActionOptions, bb as ActorConn, bc as ActorConnRaw, bd as ActorConnStatus, be as ActorConnectOptions, r as ActorDefinition, bf as ActorGatewayOptions, bg as ActorHandle, bh as ActorHandleRaw, A as AnyActorDefinition, bi as ClientRaw, bj as ConnectionStateCallback, bk as CreateOptions, bl as CreateRequest, a9 as Encoding, bm as EventUnsubscribe, bn as ExtractActorsFromRegistry, bo as ExtractRegistryFromClient, bp as GetOptions, bq as GetWithIdOptions, br as QueryOptions, bs as Region, bt as StatusChangeCallback } from '../config-tCvkwzyN.cjs';
|
|
3
3
|
import z from 'zod/v4';
|
|
4
4
|
import { GetUpgradeWebSocket } from '../utils.cjs';
|
|
5
5
|
export { R as ActorError, R as RivetError, U as UserError } from '../utils-CqDnC_PS.cjs';
|
|
6
|
-
import '../config-
|
|
6
|
+
import '../config-B0LNDrLY.cjs';
|
|
7
7
|
import '@rivetkit/rivetkit-wasm';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'pino';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ax as Registry, _ as Client } from '../config-
|
|
2
|
-
export { b8 as ActorAccessor, b9 as ActorActionFunction, ba as ActorActionOptions, bb as ActorConn, bc as ActorConnRaw, bd as ActorConnStatus, be as ActorConnectOptions, r as ActorDefinition, bf as ActorGatewayOptions, bg as ActorHandle, bh as ActorHandleRaw, A as AnyActorDefinition, bi as ClientRaw, bj as ConnectionStateCallback, bk as CreateOptions, bl as CreateRequest, a9 as Encoding, bm as EventUnsubscribe, bn as ExtractActorsFromRegistry, bo as ExtractRegistryFromClient, bp as GetOptions, bq as GetWithIdOptions, br as QueryOptions, bs as Region, bt as StatusChangeCallback } from '../config-
|
|
1
|
+
import { ax as Registry, _ as Client } from '../config-BR1Nn0QQ.js';
|
|
2
|
+
export { b8 as ActorAccessor, b9 as ActorActionFunction, ba as ActorActionOptions, bb as ActorConn, bc as ActorConnRaw, bd as ActorConnStatus, be as ActorConnectOptions, r as ActorDefinition, bf as ActorGatewayOptions, bg as ActorHandle, bh as ActorHandleRaw, A as AnyActorDefinition, bi as ClientRaw, bj as ConnectionStateCallback, bk as CreateOptions, bl as CreateRequest, a9 as Encoding, bm as EventUnsubscribe, bn as ExtractActorsFromRegistry, bo as ExtractRegistryFromClient, bp as GetOptions, bq as GetWithIdOptions, br as QueryOptions, bs as Region, bt as StatusChangeCallback } from '../config-BR1Nn0QQ.js';
|
|
3
3
|
import z from 'zod/v4';
|
|
4
4
|
import { GetUpgradeWebSocket } from '../utils.js';
|
|
5
5
|
export { R as ActorError, R as RivetError, U as UserError } from '../utils-CqDnC_PS.js';
|
|
6
|
-
import '../config-
|
|
6
|
+
import '../config-B0LNDrLY.js';
|
|
7
7
|
import '@rivetkit/rivetkit-wasm';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'pino';
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-O3ZUMAN7.js";
|
|
4
4
|
import {
|
|
5
5
|
ActorClientError,
|
|
6
6
|
ActorConnDisposed,
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
ActorHandleRaw,
|
|
9
9
|
MalformedResponseMessage,
|
|
10
10
|
ManagerError
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-3GVMLSND.js";
|
|
12
12
|
import "../chunk-HXUEHHJF.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-XPXLCL5I.js";
|
|
13
|
+
import "../chunk-UV7INX3N.js";
|
|
14
|
+
import "../chunk-OAUFXOG7.js";
|
|
15
|
+
import "../chunk-EFU4JW3T.js";
|
|
17
16
|
import {
|
|
18
17
|
RivetError,
|
|
19
18
|
UserError
|
|
20
19
|
} from "../chunk-ZZ3WBRPD.js";
|
|
20
|
+
import "../chunk-JZ7TWV65.js";
|
|
21
21
|
export {
|
|
22
22
|
ActorClientError,
|
|
23
23
|
ActorConnDisposed,
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
var _chunk5RC3H5MHcjs = require('../chunk-5RC3H5MH.cjs');
|
|
9
|
+
var _chunkE4LNLI3Wcjs = require('../chunk-E4LNLI3W.cjs');
|
|
11
10
|
require('../chunk-4FC7TVS6.cjs');
|
|
12
11
|
|
|
13
12
|
|
|
@@ -17,6 +16,5 @@ require('../chunk-4FC7TVS6.cjs');
|
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
exports.LogLevelSchema = _chunk5RC3H5MHcjs.LogLevelSchema; exports.configureBaseLogger = _chunk5RC3H5MHcjs.configureBaseLogger; exports.configureDefaultLogger = _chunk5RC3H5MHcjs.configureDefaultLogger; exports.getBaseLogger = _chunk5RC3H5MHcjs.getBaseLogger; exports.getIncludeTarget = _chunk5RC3H5MHcjs.getIncludeTarget; exports.getLogger = _chunk5RC3H5MHcjs.getLogger; exports.getPinoLevel = _chunk5RC3H5MHcjs.getPinoLevel; exports.makeDefaultLogger = _chunk5RC3H5MHcjs.makeDefaultLogger;
|
|
19
|
+
exports.LogLevelSchema = _chunkE4LNLI3Wcjs.LogLevelSchema; exports.configureBaseLogger = _chunkE4LNLI3Wcjs.configureBaseLogger; exports.configureDefaultLogger = _chunkE4LNLI3Wcjs.configureDefaultLogger; exports.getBaseLogger = _chunkE4LNLI3Wcjs.getBaseLogger; exports.getIncludeTarget = _chunkE4LNLI3Wcjs.getIncludeTarget; exports.getLogger = _chunkE4LNLI3Wcjs.getLogger; exports.getPinoLevel = _chunkE4LNLI3Wcjs.getPinoLevel;
|
|
22
20
|
//# sourceMappingURL=log.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/common/log.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0aAAC","file":"/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/common/log.cjs"}
|
|
@@ -18,10 +18,6 @@ declare function getIncludeTarget(): boolean;
|
|
|
18
18
|
* Configure a custom base logger.
|
|
19
19
|
*/
|
|
20
20
|
declare function configureBaseLogger(logger: Logger): void;
|
|
21
|
-
/**
|
|
22
|
-
* Create the default logger with optional log level.
|
|
23
|
-
*/
|
|
24
|
-
declare function makeDefaultLogger(logLevel?: LogLevel): Logger;
|
|
25
21
|
/**
|
|
26
22
|
* Configure the default logger with optional log level.
|
|
27
23
|
*/
|
|
@@ -35,4 +31,4 @@ declare function getBaseLogger(): Logger;
|
|
|
35
31
|
*/
|
|
36
32
|
declare function getLogger(name?: string): Logger;
|
|
37
33
|
|
|
38
|
-
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel
|
|
34
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
|
@@ -18,10 +18,6 @@ declare function getIncludeTarget(): boolean;
|
|
|
18
18
|
* Configure a custom base logger.
|
|
19
19
|
*/
|
|
20
20
|
declare function configureBaseLogger(logger: Logger): void;
|
|
21
|
-
/**
|
|
22
|
-
* Create the default logger with optional log level.
|
|
23
|
-
*/
|
|
24
|
-
declare function makeDefaultLogger(logLevel?: LogLevel): Logger;
|
|
25
21
|
/**
|
|
26
22
|
* Configure the default logger with optional log level.
|
|
27
23
|
*/
|
|
@@ -35,4 +31,4 @@ declare function getBaseLogger(): Logger;
|
|
|
35
31
|
*/
|
|
36
32
|
declare function getLogger(name?: string): Logger;
|
|
37
33
|
|
|
38
|
-
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel
|
|
34
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -5,9 +5,8 @@ import {
|
|
|
5
5
|
getBaseLogger,
|
|
6
6
|
getIncludeTarget,
|
|
7
7
|
getLogger,
|
|
8
|
-
getPinoLevel
|
|
9
|
-
|
|
10
|
-
} from "../chunk-XPXLCL5I.js";
|
|
8
|
+
getPinoLevel
|
|
9
|
+
} from "../chunk-EFU4JW3T.js";
|
|
11
10
|
import "../chunk-ZZ3WBRPD.js";
|
|
12
11
|
export {
|
|
13
12
|
LogLevelSchema,
|
|
@@ -16,7 +15,6 @@ export {
|
|
|
16
15
|
getBaseLogger,
|
|
17
16
|
getIncludeTarget,
|
|
18
17
|
getLogger,
|
|
19
|
-
getPinoLevel
|
|
20
|
-
makeDefaultLogger
|
|
18
|
+
getPinoLevel
|
|
21
19
|
};
|
|
22
20
|
//# sourceMappingURL=log.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkD363DMNHcjs = require('../chunk-D363DMNH.cjs');
|
|
4
|
+
require('../chunk-E4LNLI3W.cjs');
|
|
5
5
|
require('../chunk-4FC7TVS6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.importWebSocket =
|
|
8
|
+
exports.importWebSocket = _chunkD363DMNHcjs.importWebSocket;
|
|
9
9
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/common/websocket.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,4DAAC","file":"/home/runner/work/actors/actors/rivetkit-typescript/packages/rivetkit/dist/tsup/common/websocket.cjs"}
|
|
@@ -6,6 +6,24 @@ interface ActorMetricsLike {
|
|
|
6
6
|
}
|
|
7
7
|
type InferDatabaseClient<DBProvider extends AnyDatabaseProvider> = DBProvider extends DatabaseProvider<any> ? Awaited<ReturnType<DBProvider["createClient"]>> : never;
|
|
8
8
|
type SqliteBindings = unknown[] | Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* SQLite profiling controls.
|
|
11
|
+
*
|
|
12
|
+
* @experimental This entire configuration surface is subject to change.
|
|
13
|
+
*/
|
|
14
|
+
interface SqliteProfilingOptions {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
maxTrackedStatementFingerprints?: number;
|
|
17
|
+
maxTrackedTransactionFingerprints?: number;
|
|
18
|
+
maxPrometheusSeries?: number;
|
|
19
|
+
maxStatementsPerTransactionTrace?: number;
|
|
20
|
+
maxGetPagesRequestsPerTrace?: number;
|
|
21
|
+
maxTransactionNameBytes?: number;
|
|
22
|
+
slowOperationThresholdMs?: number;
|
|
23
|
+
baselineSampleRate?: number;
|
|
24
|
+
maxDiagnosticEventsPerMinute?: number;
|
|
25
|
+
diagnosticEventQueueCapacity?: number;
|
|
26
|
+
}
|
|
9
27
|
interface SqliteQueryResult {
|
|
10
28
|
columns: string[];
|
|
11
29
|
rows: unknown[][];
|
|
@@ -28,8 +46,8 @@ interface SqliteNativeMetrics {
|
|
|
28
46
|
dbSizePages: number;
|
|
29
47
|
}
|
|
30
48
|
interface SqliteDatabase {
|
|
31
|
-
exec(sql: string, callback?: (row: unknown[], columns: string[]) => void
|
|
32
|
-
execute(sql: string, params?: SqliteBindings
|
|
49
|
+
exec(sql: string, callback?: (row: unknown[], columns: string[]) => void): Promise<void>;
|
|
50
|
+
execute(sql: string, params?: SqliteBindings): Promise<SqliteExecuteResult>;
|
|
33
51
|
run(sql: string, params?: SqliteBindings): Promise<void>;
|
|
34
52
|
query(sql: string, params?: SqliteBindings): Promise<SqliteQueryResult>;
|
|
35
53
|
nativeMetrics?(): SqliteNativeMetrics | Promise<SqliteNativeMetrics | null> | null;
|
|
@@ -78,6 +96,10 @@ interface DatabaseProviderContext {
|
|
|
78
96
|
nativeDatabaseProvider?: NativeDatabaseProvider;
|
|
79
97
|
}
|
|
80
98
|
type DatabaseProvider<DB extends RawAccess> = {
|
|
99
|
+
/**
|
|
100
|
+
* @experimental This entire configuration surface is subject to change.
|
|
101
|
+
*/
|
|
102
|
+
sqliteProfiling?: SqliteProfilingOptions;
|
|
81
103
|
/**
|
|
82
104
|
* Creates a new database client for the actor.
|
|
83
105
|
* The result is passed to the actor context as `c.db`.
|
|
@@ -107,8 +129,6 @@ type RawAccess = {
|
|
|
107
129
|
* Executes a raw SQL query.
|
|
108
130
|
*/
|
|
109
131
|
execute: ExecuteFunction;
|
|
110
|
-
/** Runs a callback in an isolated native SQLite transaction. */
|
|
111
|
-
transaction: <T>(callback: (tx: RawAccess) => Promise<T> | T) => Promise<T>;
|
|
112
132
|
/**
|
|
113
133
|
* Returns native SQLite metrics when the active runtime supports them.
|
|
114
134
|
*/
|
|
@@ -119,4 +139,4 @@ type RawAccess = {
|
|
|
119
139
|
close: () => Promise<void>;
|
|
120
140
|
};
|
|
121
141
|
|
|
122
|
-
export type { AnyDatabaseProvider as A, DatabaseProvider as D, InferDatabaseClient as I, NativeDatabaseProvider as N, RawAccess as R,
|
|
142
|
+
export type { AnyDatabaseProvider as A, DatabaseProvider as D, InferDatabaseClient as I, NativeDatabaseProvider as N, RawAccess as R, SqliteProfilingOptions as S, DatabaseProviderContext as a, RawDatabaseClient as b, SqliteBindings as c, SqliteDatabase as d, SqliteNativeMetrics as e, SqliteQueryResult as f };
|
|
@@ -6,6 +6,24 @@ interface ActorMetricsLike {
|
|
|
6
6
|
}
|
|
7
7
|
type InferDatabaseClient<DBProvider extends AnyDatabaseProvider> = DBProvider extends DatabaseProvider<any> ? Awaited<ReturnType<DBProvider["createClient"]>> : never;
|
|
8
8
|
type SqliteBindings = unknown[] | Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* SQLite profiling controls.
|
|
11
|
+
*
|
|
12
|
+
* @experimental This entire configuration surface is subject to change.
|
|
13
|
+
*/
|
|
14
|
+
interface SqliteProfilingOptions {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
maxTrackedStatementFingerprints?: number;
|
|
17
|
+
maxTrackedTransactionFingerprints?: number;
|
|
18
|
+
maxPrometheusSeries?: number;
|
|
19
|
+
maxStatementsPerTransactionTrace?: number;
|
|
20
|
+
maxGetPagesRequestsPerTrace?: number;
|
|
21
|
+
maxTransactionNameBytes?: number;
|
|
22
|
+
slowOperationThresholdMs?: number;
|
|
23
|
+
baselineSampleRate?: number;
|
|
24
|
+
maxDiagnosticEventsPerMinute?: number;
|
|
25
|
+
diagnosticEventQueueCapacity?: number;
|
|
26
|
+
}
|
|
9
27
|
interface SqliteQueryResult {
|
|
10
28
|
columns: string[];
|
|
11
29
|
rows: unknown[][];
|
|
@@ -28,8 +46,8 @@ interface SqliteNativeMetrics {
|
|
|
28
46
|
dbSizePages: number;
|
|
29
47
|
}
|
|
30
48
|
interface SqliteDatabase {
|
|
31
|
-
exec(sql: string, callback?: (row: unknown[], columns: string[]) => void
|
|
32
|
-
execute(sql: string, params?: SqliteBindings
|
|
49
|
+
exec(sql: string, callback?: (row: unknown[], columns: string[]) => void): Promise<void>;
|
|
50
|
+
execute(sql: string, params?: SqliteBindings): Promise<SqliteExecuteResult>;
|
|
33
51
|
run(sql: string, params?: SqliteBindings): Promise<void>;
|
|
34
52
|
query(sql: string, params?: SqliteBindings): Promise<SqliteQueryResult>;
|
|
35
53
|
nativeMetrics?(): SqliteNativeMetrics | Promise<SqliteNativeMetrics | null> | null;
|
|
@@ -78,6 +96,10 @@ interface DatabaseProviderContext {
|
|
|
78
96
|
nativeDatabaseProvider?: NativeDatabaseProvider;
|
|
79
97
|
}
|
|
80
98
|
type DatabaseProvider<DB extends RawAccess> = {
|
|
99
|
+
/**
|
|
100
|
+
* @experimental This entire configuration surface is subject to change.
|
|
101
|
+
*/
|
|
102
|
+
sqliteProfiling?: SqliteProfilingOptions;
|
|
81
103
|
/**
|
|
82
104
|
* Creates a new database client for the actor.
|
|
83
105
|
* The result is passed to the actor context as `c.db`.
|
|
@@ -107,8 +129,6 @@ type RawAccess = {
|
|
|
107
129
|
* Executes a raw SQL query.
|
|
108
130
|
*/
|
|
109
131
|
execute: ExecuteFunction;
|
|
110
|
-
/** Runs a callback in an isolated native SQLite transaction. */
|
|
111
|
-
transaction: <T>(callback: (tx: RawAccess) => Promise<T> | T) => Promise<T>;
|
|
112
132
|
/**
|
|
113
133
|
* Returns native SQLite metrics when the active runtime supports them.
|
|
114
134
|
*/
|
|
@@ -119,4 +139,4 @@ type RawAccess = {
|
|
|
119
139
|
close: () => Promise<void>;
|
|
120
140
|
};
|
|
121
141
|
|
|
122
|
-
export type { AnyDatabaseProvider as A, DatabaseProvider as D, InferDatabaseClient as I, NativeDatabaseProvider as N, RawAccess as R,
|
|
142
|
+
export type { AnyDatabaseProvider as A, DatabaseProvider as D, InferDatabaseClient as I, NativeDatabaseProvider as N, RawAccess as R, SqliteProfilingOptions as S, DatabaseProviderContext as a, RawDatabaseClient as b, SqliteBindings as c, SqliteDatabase as d, SqliteNativeMetrics as e, SqliteQueryResult as f };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { A as AnyDatabaseProvider,
|
|
2
|
+
import { A as AnyDatabaseProvider, S as SqliteProfilingOptions, e as SqliteNativeMetrics, I as InferDatabaseClient } from './config-B0LNDrLY.js';
|
|
3
3
|
import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
|
|
4
4
|
import { z as z$1 } from 'zod';
|
|
5
5
|
import { Logger } from 'pino';
|
|
@@ -123,7 +123,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
123
123
|
}, z$1.core.$strip>>>;
|
|
124
124
|
maxIncomingMessageSize: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
125
125
|
maxOutgoingMessageSize: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
126
|
-
experimentalActorUds: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
127
126
|
runtime: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodEnum<{
|
|
128
127
|
auto: "auto";
|
|
129
128
|
native: "native";
|
|
@@ -221,7 +220,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
221
220
|
};
|
|
222
221
|
maxIncomingMessageSize: number;
|
|
223
222
|
maxOutgoingMessageSize: number;
|
|
224
|
-
experimentalActorUds: boolean;
|
|
225
223
|
runtime: "auto" | "native" | "wasm";
|
|
226
224
|
wasm: {
|
|
227
225
|
bindings?: typeof _rivetkit_rivetkit_wasm | undefined;
|
|
@@ -269,7 +267,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
269
267
|
};
|
|
270
268
|
maxIncomingMessageSize: number;
|
|
271
269
|
maxOutgoingMessageSize: number;
|
|
272
|
-
experimentalActorUds: boolean;
|
|
273
270
|
runtime: "auto" | "native" | "wasm";
|
|
274
271
|
wasm: {
|
|
275
272
|
bindings?: typeof _rivetkit_rivetkit_wasm | undefined;
|
|
@@ -683,14 +680,6 @@ type RuntimeSqlBindParam = ({
|
|
|
683
680
|
blobValue: RuntimeBytes;
|
|
684
681
|
};
|
|
685
682
|
type RuntimeSqlBindParams = RuntimeSqlBindParam[] | null;
|
|
686
|
-
interface RuntimeSqlLeaseOptions {
|
|
687
|
-
key: string;
|
|
688
|
-
timeoutMs?: number;
|
|
689
|
-
}
|
|
690
|
-
interface RuntimeActorUdsEndpointInfo {
|
|
691
|
-
path: string;
|
|
692
|
-
token: string;
|
|
693
|
-
}
|
|
694
683
|
interface RuntimeSqlQueryResult {
|
|
695
684
|
columns: string[];
|
|
696
685
|
rows: unknown[][];
|
|
@@ -708,7 +697,8 @@ interface RuntimeActorConfig {
|
|
|
708
697
|
icon?: string;
|
|
709
698
|
hasDatabase?: boolean;
|
|
710
699
|
remoteSqlite?: boolean;
|
|
711
|
-
|
|
700
|
+
/** @experimental This entire configuration surface is subject to change. */
|
|
701
|
+
sqliteProfiling?: SqliteProfilingOptions;
|
|
712
702
|
hasState?: boolean;
|
|
713
703
|
canHibernateWebsocket?: boolean;
|
|
714
704
|
stateSaveIntervalMs?: number;
|
|
@@ -877,14 +867,13 @@ interface CoreRuntime {
|
|
|
877
867
|
actorKvBatchGet(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<Array<RuntimeBytes | undefined | null>>;
|
|
878
868
|
actorKvBatchPut(ctx: ActorContextHandle, entries: RuntimeKvEntry[]): Promise<void>;
|
|
879
869
|
actorKvBatchDelete(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<void>;
|
|
880
|
-
actorSqlExec(ctx: ActorContextHandle, sql: string
|
|
881
|
-
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams
|
|
870
|
+
actorSqlExec(ctx: ActorContextHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
871
|
+
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
882
872
|
actorSqlQuery(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlQueryResult>;
|
|
883
873
|
actorSqlRun(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlRunResult>;
|
|
884
874
|
actorSqlMetrics(ctx: ActorContextHandle): SqliteNativeMetrics | null;
|
|
885
875
|
actorSqlTakeLastKvError(ctx: ActorContextHandle): string | null;
|
|
886
876
|
actorSqlClose(ctx: ActorContextHandle): Promise<void>;
|
|
887
|
-
actorUdsProvision(ctx: ActorContextHandle): Promise<RuntimeActorUdsEndpointInfo>;
|
|
888
877
|
actorQueueSend(ctx: ActorContextHandle, name: string, body: RuntimeBytes): Promise<RuntimeQueueMessage>;
|
|
889
878
|
actorQueueNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueNextBatchOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage[]>;
|
|
890
879
|
actorQueueWaitForNames(ctx: ActorContextHandle, names: string[], options?: RuntimeQueueWaitOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage>;
|
|
@@ -893,7 +882,6 @@ interface CoreRuntime {
|
|
|
893
882
|
actorQueueTryNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueTryNextBatchOptions | undefined | null): RuntimeQueueMessage[];
|
|
894
883
|
actorQueueMaxSize(ctx: ActorContextHandle): number;
|
|
895
884
|
actorQueueInspectMessages(ctx: ActorContextHandle): Promise<RuntimeQueueInspectMessage[]>;
|
|
896
|
-
actorQueueReset(ctx: ActorContextHandle): Promise<void>;
|
|
897
885
|
actorScheduleAfter(ctx: ActorContextHandle, durationMs: number, actionName: string, args: RuntimeBytes): void;
|
|
898
886
|
actorScheduleAt(ctx: ActorContextHandle, timestampMs: number, actionName: string, args: RuntimeBytes): void;
|
|
899
887
|
connId(conn: ConnHandle): string;
|
|
@@ -1703,11 +1691,6 @@ interface ActorContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase
|
|
|
1703
1691
|
readonly name: string;
|
|
1704
1692
|
readonly key: string[];
|
|
1705
1693
|
readonly region: string;
|
|
1706
|
-
/** Provisions credentials for the experimental local actor Unix socket API. */
|
|
1707
|
-
actorUds(): Promise<{
|
|
1708
|
-
path: string;
|
|
1709
|
-
token: string;
|
|
1710
|
-
}>;
|
|
1711
1694
|
readonly conns: Map<string, Conn<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>>;
|
|
1712
1695
|
readonly log: ActorLogger;
|
|
1713
1696
|
readonly abortSignal: AbortSignal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { A as AnyDatabaseProvider,
|
|
2
|
+
import { A as AnyDatabaseProvider, S as SqliteProfilingOptions, e as SqliteNativeMetrics, I as InferDatabaseClient } from './config-B0LNDrLY.cjs';
|
|
3
3
|
import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
|
|
4
4
|
import { z as z$1 } from 'zod';
|
|
5
5
|
import { Logger } from 'pino';
|
|
@@ -123,7 +123,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
123
123
|
}, z$1.core.$strip>>>;
|
|
124
124
|
maxIncomingMessageSize: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
125
125
|
maxOutgoingMessageSize: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
126
|
-
experimentalActorUds: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
127
126
|
runtime: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodEnum<{
|
|
128
127
|
auto: "auto";
|
|
129
128
|
native: "native";
|
|
@@ -221,7 +220,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
221
220
|
};
|
|
222
221
|
maxIncomingMessageSize: number;
|
|
223
222
|
maxOutgoingMessageSize: number;
|
|
224
|
-
experimentalActorUds: boolean;
|
|
225
223
|
runtime: "auto" | "native" | "wasm";
|
|
226
224
|
wasm: {
|
|
227
225
|
bindings?: typeof _rivetkit_rivetkit_wasm | undefined;
|
|
@@ -269,7 +267,6 @@ declare const RegistryConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
269
267
|
};
|
|
270
268
|
maxIncomingMessageSize: number;
|
|
271
269
|
maxOutgoingMessageSize: number;
|
|
272
|
-
experimentalActorUds: boolean;
|
|
273
270
|
runtime: "auto" | "native" | "wasm";
|
|
274
271
|
wasm: {
|
|
275
272
|
bindings?: typeof _rivetkit_rivetkit_wasm | undefined;
|
|
@@ -683,14 +680,6 @@ type RuntimeSqlBindParam = ({
|
|
|
683
680
|
blobValue: RuntimeBytes;
|
|
684
681
|
};
|
|
685
682
|
type RuntimeSqlBindParams = RuntimeSqlBindParam[] | null;
|
|
686
|
-
interface RuntimeSqlLeaseOptions {
|
|
687
|
-
key: string;
|
|
688
|
-
timeoutMs?: number;
|
|
689
|
-
}
|
|
690
|
-
interface RuntimeActorUdsEndpointInfo {
|
|
691
|
-
path: string;
|
|
692
|
-
token: string;
|
|
693
|
-
}
|
|
694
683
|
interface RuntimeSqlQueryResult {
|
|
695
684
|
columns: string[];
|
|
696
685
|
rows: unknown[][];
|
|
@@ -708,7 +697,8 @@ interface RuntimeActorConfig {
|
|
|
708
697
|
icon?: string;
|
|
709
698
|
hasDatabase?: boolean;
|
|
710
699
|
remoteSqlite?: boolean;
|
|
711
|
-
|
|
700
|
+
/** @experimental This entire configuration surface is subject to change. */
|
|
701
|
+
sqliteProfiling?: SqliteProfilingOptions;
|
|
712
702
|
hasState?: boolean;
|
|
713
703
|
canHibernateWebsocket?: boolean;
|
|
714
704
|
stateSaveIntervalMs?: number;
|
|
@@ -877,14 +867,13 @@ interface CoreRuntime {
|
|
|
877
867
|
actorKvBatchGet(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<Array<RuntimeBytes | undefined | null>>;
|
|
878
868
|
actorKvBatchPut(ctx: ActorContextHandle, entries: RuntimeKvEntry[]): Promise<void>;
|
|
879
869
|
actorKvBatchDelete(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<void>;
|
|
880
|
-
actorSqlExec(ctx: ActorContextHandle, sql: string
|
|
881
|
-
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams
|
|
870
|
+
actorSqlExec(ctx: ActorContextHandle, sql: string): Promise<RuntimeSqlExecResult>;
|
|
871
|
+
actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
|
|
882
872
|
actorSqlQuery(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlQueryResult>;
|
|
883
873
|
actorSqlRun(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlRunResult>;
|
|
884
874
|
actorSqlMetrics(ctx: ActorContextHandle): SqliteNativeMetrics | null;
|
|
885
875
|
actorSqlTakeLastKvError(ctx: ActorContextHandle): string | null;
|
|
886
876
|
actorSqlClose(ctx: ActorContextHandle): Promise<void>;
|
|
887
|
-
actorUdsProvision(ctx: ActorContextHandle): Promise<RuntimeActorUdsEndpointInfo>;
|
|
888
877
|
actorQueueSend(ctx: ActorContextHandle, name: string, body: RuntimeBytes): Promise<RuntimeQueueMessage>;
|
|
889
878
|
actorQueueNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueNextBatchOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage[]>;
|
|
890
879
|
actorQueueWaitForNames(ctx: ActorContextHandle, names: string[], options?: RuntimeQueueWaitOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage>;
|
|
@@ -893,7 +882,6 @@ interface CoreRuntime {
|
|
|
893
882
|
actorQueueTryNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueTryNextBatchOptions | undefined | null): RuntimeQueueMessage[];
|
|
894
883
|
actorQueueMaxSize(ctx: ActorContextHandle): number;
|
|
895
884
|
actorQueueInspectMessages(ctx: ActorContextHandle): Promise<RuntimeQueueInspectMessage[]>;
|
|
896
|
-
actorQueueReset(ctx: ActorContextHandle): Promise<void>;
|
|
897
885
|
actorScheduleAfter(ctx: ActorContextHandle, durationMs: number, actionName: string, args: RuntimeBytes): void;
|
|
898
886
|
actorScheduleAt(ctx: ActorContextHandle, timestampMs: number, actionName: string, args: RuntimeBytes): void;
|
|
899
887
|
connId(conn: ConnHandle): string;
|
|
@@ -1703,11 +1691,6 @@ interface ActorContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase
|
|
|
1703
1691
|
readonly name: string;
|
|
1704
1692
|
readonly key: string[];
|
|
1705
1693
|
readonly region: string;
|
|
1706
|
-
/** Provisions credentials for the experimental local actor Unix socket API. */
|
|
1707
|
-
actorUds(): Promise<{
|
|
1708
|
-
path: string;
|
|
1709
|
-
token: string;
|
|
1710
|
-
}>;
|
|
1711
1694
|
readonly conns: Map<string, Conn<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>>;
|
|
1712
1695
|
readonly log: ActorLogger;
|
|
1713
1696
|
readonly abortSignal: AbortSignal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, w as ActorLogger, al as QueueFilterName, aq as QueueNextOptions, ar as QueueResultMessageForName, ap as QueueNextBatchOptions, ax as Registry, _ as Client, bu as InferEventArgs, bv as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, w as ActorLogger, al as QueueFilterName, aq as QueueNextOptions, ar as QueueResultMessageForName, ap as QueueNextBatchOptions, ax as Registry, _ as Client, bu as InferEventArgs, bv as InferSchemaMap } from './config-tCvkwzyN.cjs';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-B0LNDrLY.cjs';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
@@ -118,7 +118,6 @@ declare class WorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TD
|
|
|
118
118
|
value: T;
|
|
119
119
|
}>;
|
|
120
120
|
removed(name: string, originalType: EntryKindType): Promise<void>;
|
|
121
|
-
getVersion(name: string, latest: number): Promise<number>;
|
|
122
121
|
isEvicted(): boolean;
|
|
123
122
|
}
|
|
124
123
|
type WorkflowContextOf<AD extends AnyActorDefinition> = AD extends BaseActorDefinition<infer S, infer CP, infer CS, infer V, infer I, infer DB extends AnyDatabaseProvider, infer E extends EventSchemaConfig, infer Q extends QueueSchemaConfig, any> ? WorkflowContext<S, CP, CS, V, I, DB, E, Q> : never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, w as ActorLogger, al as QueueFilterName, aq as QueueNextOptions, ar as QueueResultMessageForName, ap as QueueNextBatchOptions, ax as Registry, _ as Client, bu as InferEventArgs, bv as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, w as ActorLogger, al as QueueFilterName, aq as QueueNextOptions, ar as QueueResultMessageForName, ap as QueueNextBatchOptions, ax as Registry, _ as Client, bu as InferEventArgs, bv as InferSchemaMap } from './config-BR1Nn0QQ.js';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
|
-
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-
|
|
3
|
+
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-B0LNDrLY.js';
|
|
4
4
|
|
|
5
5
|
type WorkflowActorQueueNextOptions<TName extends string, TCompletable extends boolean> = Omit<QueueNextOptions<TName, TCompletable>, "signal">;
|
|
6
6
|
type WorkflowActorQueueNextOptionsFallback<TCompletable extends boolean> = Omit<QueueNextOptions<string, TCompletable>, "signal">;
|
|
@@ -118,7 +118,6 @@ declare class WorkflowContext<TState, TConnParams, TConnState, TVars, TInput, TD
|
|
|
118
118
|
value: T;
|
|
119
119
|
}>;
|
|
120
120
|
removed(name: string, originalType: EntryKindType): Promise<void>;
|
|
121
|
-
getVersion(name: string, latest: number): Promise<number>;
|
|
122
121
|
isEvicted(): boolean;
|
|
123
122
|
}
|
|
124
123
|
type WorkflowContextOf<AD extends AnyActorDefinition> = AD extends BaseActorDefinition<infer S, infer CP, infer CS, infer V, infer I, infer DB extends AnyDatabaseProvider, infer E extends EventSchemaConfig, infer Q extends QueueSchemaConfig, any> ? WorkflowContext<S, CP, CS, V, I, DB, E, Q> : never;
|