rivetkit 0.0.0-sqlite-profiling-compat.4a9a623 → 0.0.0-sqlite-sync-3-0-0-release.14341d0
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 +1317 -765
- package/dist/browser/client.js +1433 -692
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.d.ts +252 -129
- package/dist/browser/inspector/client.js +2042 -228
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/actor/errors.cjs +6 -2
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/actor/errors.d.cts +1 -1
- package/dist/tsup/actor/errors.d.ts +1 -1
- package/dist/tsup/actor/errors.js +5 -1
- package/dist/tsup/agent-os/index.cjs +3 -2367
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +1 -2277
- package/dist/tsup/agent-os/index.d.ts +1 -2277
- package/dist/tsup/agent-os/index.js +3 -2367
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-AGDY6TKH.js → chunk-2EQ2WCO7.js} +1054 -364
- package/dist/tsup/chunk-2EQ2WCO7.js.map +1 -0
- package/dist/tsup/{chunk-7QKCGUTJ.cjs → chunk-4H2LT2WB.cjs} +444 -29
- package/dist/tsup/chunk-4H2LT2WB.cjs.map +1 -0
- package/dist/tsup/{chunk-XIX5DOZN.js → chunk-6FEYCVZC.js} +196 -20
- package/dist/tsup/chunk-6FEYCVZC.js.map +1 -0
- package/dist/tsup/{chunk-QAVN4QNO.cjs → chunk-6WYQ3NJI.cjs} +7 -7
- package/dist/tsup/chunk-6WYQ3NJI.cjs.map +1 -0
- package/dist/tsup/{chunk-75UE45DE.js → chunk-6ZJX3KXW.js} +436 -21
- package/dist/tsup/chunk-6ZJX3KXW.js.map +1 -0
- package/dist/tsup/{chunk-HXUEHHJF.js → chunk-A2CF6PFH.js} +19 -11
- package/dist/tsup/chunk-A2CF6PFH.js.map +1 -0
- package/dist/tsup/{chunk-RIT7N3TX.js → chunk-AIGW2SKA.js} +50 -3
- package/dist/tsup/chunk-AIGW2SKA.js.map +1 -0
- package/dist/tsup/{chunk-3MHDOUD7.cjs → chunk-HDVZ6YZG.cjs} +197 -21
- package/dist/tsup/chunk-HDVZ6YZG.cjs.map +1 -0
- package/dist/tsup/{chunk-2CICCOBL.cjs → chunk-HU4F7H3F.cjs} +52 -5
- package/dist/tsup/chunk-HU4F7H3F.cjs.map +1 -0
- package/dist/tsup/{chunk-4PX3ZKJR.js → chunk-JNJEWQZL.js} +3 -3
- package/dist/tsup/chunk-JNJEWQZL.js.map +1 -0
- package/dist/tsup/{chunk-JZ7TWV65.js → chunk-JTHHCZCZ.js} +24 -1
- package/dist/tsup/chunk-JTHHCZCZ.js.map +1 -0
- package/dist/tsup/{chunk-ZA7FLHKH.cjs → chunk-KVFIONKQ.cjs} +25 -2
- package/dist/tsup/chunk-KVFIONKQ.cjs.map +1 -0
- package/dist/tsup/{chunk-4FC7TVS6.cjs → chunk-MGI2VVF6.cjs} +39 -7
- package/dist/tsup/chunk-MGI2VVF6.cjs.map +1 -0
- package/dist/tsup/{chunk-NHUTYWKU.cjs → chunk-NE5CUQRN.cjs} +1173 -483
- package/dist/tsup/chunk-NE5CUQRN.cjs.map +1 -0
- package/dist/tsup/{chunk-IICIOTML.js → chunk-OX5MX7TO.js} +2 -2
- package/dist/tsup/{chunk-ND567FR5.cjs → chunk-PSIBTOAR.cjs} +3 -3
- package/dist/tsup/chunk-PSIBTOAR.cjs.map +1 -0
- package/dist/tsup/chunk-PW6FYEIV.cjs +14 -0
- package/dist/tsup/chunk-PW6FYEIV.cjs.map +1 -0
- package/dist/tsup/{chunk-VE2X4KMG.cjs → chunk-RTWH3AX3.cjs} +18 -10
- package/dist/tsup/chunk-RTWH3AX3.cjs.map +1 -0
- package/dist/tsup/chunk-SLICBKAU.js +14 -0
- package/dist/tsup/chunk-SLICBKAU.js.map +1 -0
- package/dist/tsup/{chunk-XFYEVYHG.js → chunk-WCVYMFWJ.js} +16 -9
- package/dist/tsup/chunk-WCVYMFWJ.js.map +1 -0
- package/dist/tsup/chunk-WX3JS4XU.cjs +243 -0
- package/dist/tsup/chunk-WX3JS4XU.cjs.map +1 -0
- package/dist/tsup/chunk-X32L7FDD.js +243 -0
- package/dist/tsup/chunk-X32L7FDD.js.map +1 -0
- package/dist/tsup/{chunk-2WMYYG4R.cjs → chunk-XAY2HIZN.cjs} +18 -11
- package/dist/tsup/chunk-XAY2HIZN.cjs.map +1 -0
- package/dist/tsup/{chunk-ZZ3WBRPD.js → chunk-ZOVJDAOW.js} +38 -6
- package/dist/tsup/chunk-ZOVJDAOW.js.map +1 -0
- package/dist/tsup/client/mod.cjs +8 -9
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +32 -6
- package/dist/tsup/client/mod.d.ts +32 -6
- package/dist/tsup/client/mod.js +7 -8
- package/dist/tsup/common/log.cjs +5 -3
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +5 -1
- package/dist/tsup/common/log.d.ts +5 -1
- package/dist/tsup/common/log.js +6 -4
- package/dist/tsup/common/websocket.cjs +4 -4
- package/dist/tsup/common/websocket.cjs.map +1 -1
- package/dist/tsup/common/websocket.js +3 -3
- package/dist/tsup/{config-BR1Nn0QQ.d.ts → config-B4erdavw.d.ts} +571 -65
- package/dist/tsup/{config-B0LNDrLY.d.ts → config-BfG1qpYz.d.cts} +80 -14
- package/dist/tsup/{config-B0LNDrLY.d.cts → config-BfG1qpYz.d.ts} +80 -14
- package/dist/tsup/{config-tCvkwzyN.d.cts → config-DK144OAw.d.cts} +571 -65
- package/dist/tsup/{context-oc9zhA3x.d.ts → context-Cvnf3BRe.d.cts} +3 -2
- package/dist/tsup/{context-D4WDwf9m.d.cts → context-Oxi6YWcG.d.ts} +3 -2
- package/dist/tsup/db/drizzle.cjs +127 -67
- package/dist/tsup/db/drizzle.cjs.map +1 -1
- package/dist/tsup/db/drizzle.d.cts +8 -4
- package/dist/tsup/db/drizzle.d.ts +8 -4
- package/dist/tsup/db/drizzle.js +127 -67
- package/dist/tsup/db/drizzle.js.map +1 -1
- package/dist/tsup/db/mod.cjs +6 -126
- 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 +5 -125
- 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 +6 -4
- package/dist/tsup/dynamic/mod.d.ts +6 -4
- package/dist/tsup/dynamic/mod.js +1 -1
- package/dist/tsup/inspector/mod.cjs +47 -12
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +26 -136
- package/dist/tsup/inspector/mod.d.ts +26 -136
- package/dist/tsup/inspector/mod.js +46 -11
- package/dist/tsup/inspector/mod.js.map +1 -1
- package/dist/tsup/inspector/workflow.cjs +21 -0
- package/dist/tsup/inspector/workflow.cjs.map +1 -0
- package/dist/tsup/inspector/workflow.d.cts +144 -0
- package/dist/tsup/inspector/workflow.d.ts +144 -0
- package/dist/tsup/inspector/workflow.js +21 -0
- package/dist/tsup/inspector/workflow.js.map +1 -0
- package/dist/tsup/inspector-tab/mod.cjs +2 -13
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
- package/dist/tsup/inspector-tab/mod.d.cts +9 -17
- package/dist/tsup/inspector-tab/mod.d.ts +9 -17
- package/dist/tsup/inspector-tab/mod.js +1 -12
- package/dist/tsup/inspector-tab/mod.js.map +1 -1
- package/dist/tsup/mod.cjs +2728 -611
- 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 +2645 -528
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +19 -17
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +6 -4
- package/dist/tsup/test/mod.d.ts +6 -4
- package/dist/tsup/test/mod.js +18 -16
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/unstable/migrations.cjs +101 -0
- package/dist/tsup/unstable/migrations.cjs.map +1 -0
- package/dist/tsup/unstable/migrations.d.cts +29 -0
- package/dist/tsup/unstable/migrations.d.ts +29 -0
- package/dist/tsup/unstable/migrations.js +101 -0
- package/dist/tsup/unstable/migrations.js.map +1 -0
- package/dist/tsup/{utils-CqDnC_PS.d.cts → utils-3rsE0JvI.d.cts} +25 -2
- package/dist/tsup/{utils-CqDnC_PS.d.ts → utils-3rsE0JvI.d.ts} +25 -2
- package/dist/tsup/utils-C1O-SklO.d.ts +162 -0
- package/dist/tsup/utils-C6b0aYUM.d.cts +162 -0
- package/dist/tsup/utils.cjs +7 -3
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +4 -147
- package/dist/tsup/utils.d.ts +4 -147
- package/dist/tsup/utils.js +6 -2
- package/dist/tsup/workflow/mod.cjs +260 -200
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +8 -6
- package/dist/tsup/workflow/mod.d.ts +8 -6
- package/dist/tsup/workflow/mod.js +249 -189
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +34 -14
- package/src/actor/actions.ts +155 -0
- package/src/actor/config.ts +403 -43
- package/src/actor/definition.ts +26 -7
- package/src/actor/errors.ts +87 -5
- package/src/actor/keys.ts +86 -0
- package/src/actor/mod.ts +15 -1
- package/src/actor/tracing.ts +28 -0
- package/src/agent-os/index.ts +5 -65
- package/src/client/actor-common.ts +8 -15
- package/src/client/actor-conn.ts +178 -25
- package/src/client/actor-handle.ts +180 -42
- package/src/client/actor-query.ts +8 -1
- package/src/client/auth.ts +37 -0
- package/src/client/client.ts +89 -21
- package/src/client/config.ts +27 -2
- package/src/client/errors.ts +2 -1
- package/src/client/lifecycle-errors.ts +29 -1
- package/src/client/mod.ts +9 -0
- package/src/client/outbound-telemetry.ts +66 -0
- package/src/client/query.ts +2 -0
- package/src/client/queue.ts +3 -0
- package/src/client/raw-utils.ts +37 -8
- package/src/client/resolve-gateway-target.ts +2 -0
- package/src/client/retry-budget.ts +78 -0
- package/src/client/token-provider.ts +93 -0
- package/src/client/utils.ts +16 -2
- package/src/common/actor-router-consts.ts +5 -0
- package/src/common/actor-telemetry-context.ts +19 -0
- package/src/common/bare/generated/actor-runtime-socket-protocol/v1.ts +848 -0
- package/src/common/bare/generated/inspector/v5.ts +1016 -0
- package/src/common/bare/generated/inspector/v6.ts +1367 -0
- package/src/common/bare/transport/v1.ts +36 -0
- package/src/common/database/config.ts +108 -15
- package/src/common/database/mod.ts +247 -76
- package/src/common/database/native-database.ts +433 -23
- package/src/common/database/shared.ts +24 -0
- package/src/common/encoding.ts +31 -21
- package/src/common/fetch-like.ts +63 -0
- package/src/common/inspector-transport.ts +12 -2
- package/src/common/log.ts +14 -8
- package/src/common/otel-context.ts +99 -0
- package/src/common/router.ts +1 -1
- package/src/common/utils.ts +7 -19
- package/src/db/drizzle.ts +182 -80
- package/src/db/mod.ts +2 -0
- package/src/dynamic/isolate-runtime.ts +0 -2
- package/src/engine-api/actors.ts +3 -3
- package/src/engine-client/actor-http-client.ts +29 -20
- package/src/engine-client/actor-websocket-client.ts +6 -3
- package/src/engine-client/api-endpoints.ts +72 -14
- package/src/engine-client/driver.ts +8 -15
- package/src/engine-client/mod.ts +248 -112
- package/src/inspector/client.browser.ts +134 -16
- package/src/inspector/mod.ts +1 -1
- package/src/inspector/workflow.ts +61 -0
- package/src/inspector-tab/mod.ts +1 -15
- package/src/registry/config/envoy.ts +2 -18
- package/src/registry/config/index.ts +54 -61
- package/src/registry/index.ts +324 -21
- package/src/registry/napi-runtime.ts +583 -39
- package/src/registry/native-http.ts +225 -0
- package/src/registry/native.ts +1365 -414
- package/src/registry/run-handler-coordinator.ts +219 -0
- package/src/registry/runtime.ts +372 -7
- package/src/registry/wasm-runtime.ts +490 -21
- package/src/registry/write-through-proxy.ts +101 -0
- package/src/test/mod.ts +1 -19
- package/src/test/ready.ts +22 -0
- package/src/unstable/migrations.ts +141 -0
- package/src/utils/env-vars.ts +15 -6
- package/src/utils/node.ts +44 -28
- package/src/utils.ts +3 -0
- package/src/workflow/context.ts +9 -27
- package/src/workflow/driver.ts +253 -116
- package/src/workflow/inspector.ts +23 -24
- package/src/workflow/mod.ts +50 -72
- package/dist/tsup/chunk-2CICCOBL.cjs.map +0 -1
- package/dist/tsup/chunk-2WMYYG4R.cjs.map +0 -1
- package/dist/tsup/chunk-3MHDOUD7.cjs.map +0 -1
- package/dist/tsup/chunk-4FC7TVS6.cjs.map +0 -1
- package/dist/tsup/chunk-4PX3ZKJR.js.map +0 -1
- package/dist/tsup/chunk-75UE45DE.js.map +0 -1
- package/dist/tsup/chunk-7QKCGUTJ.cjs.map +0 -1
- package/dist/tsup/chunk-AGDY6TKH.js.map +0 -1
- package/dist/tsup/chunk-HXUEHHJF.js.map +0 -1
- package/dist/tsup/chunk-JZ7TWV65.js.map +0 -1
- package/dist/tsup/chunk-ND567FR5.cjs.map +0 -1
- package/dist/tsup/chunk-NHUTYWKU.cjs.map +0 -1
- package/dist/tsup/chunk-QAVN4QNO.cjs.map +0 -1
- package/dist/tsup/chunk-RIT7N3TX.js.map +0 -1
- package/dist/tsup/chunk-RV5MAFDT.cjs +0 -382
- package/dist/tsup/chunk-RV5MAFDT.cjs.map +0 -1
- package/dist/tsup/chunk-VE2X4KMG.cjs.map +0 -1
- package/dist/tsup/chunk-XFYEVYHG.js.map +0 -1
- package/dist/tsup/chunk-XHGDS3DZ.js +0 -382
- package/dist/tsup/chunk-XHGDS3DZ.js.map +0 -1
- package/dist/tsup/chunk-XIX5DOZN.js.map +0 -1
- package/dist/tsup/chunk-ZA7FLHKH.cjs.map +0 -1
- package/dist/tsup/chunk-ZZ3WBRPD.js.map +0 -1
- package/src/actor/driver.ts +0 -141
- package/src/actor/instance/mod.ts +0 -2484
- package/src/actor/keys.test.ts +0 -275
- package/src/actor/utils.test.ts +0 -48
- package/src/agent-os/actor/cron.ts +0 -84
- package/src/agent-os/actor/db.ts +0 -54
- package/src/agent-os/actor/filesystem.ts +0 -131
- package/src/agent-os/actor/index.ts +0 -285
- package/src/agent-os/actor/network.ts +0 -58
- package/src/agent-os/actor/preview.ts +0 -190
- package/src/agent-os/actor/process.ts +0 -177
- package/src/agent-os/actor/session.ts +0 -518
- package/src/agent-os/actor/shell.ts +0 -60
- package/src/agent-os/config.ts +0 -79
- package/src/agent-os/fs/database-vfs.ts +0 -624
- package/src/agent-os/types.ts +0 -148
- package/src/client/test.ts +0 -44
- package/src/common/database/mod.test.ts +0 -137
- package/src/common/database/native-database.test.ts +0 -211
- package/src/common/inline-websocket-adapter.test.ts +0 -51
- package/src/drivers/engine/actor-driver.ts +0 -2473
- package/src/registry/process-metrics.ts +0 -250
- package/src/registry/runtime.test.ts +0 -50
- package/src/utils/endpoint-parser.test.ts +0 -206
- package/src/utils.test.ts +0 -34
- /package/dist/tsup/{chunk-IICIOTML.js.map → chunk-OX5MX7TO.js.map} +0 -0
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aI as Registry, a6 as Client } from '../config-DK144OAw.cjs';
|
|
2
|
+
export { bx as ActorAccessor, by as ActorActionFunction, bz as ActorActionOptions, bA as ActorConn, bB as ActorConnRaw, bC as ActorConnStatus, bD as ActorConnectOptions, x as ActorDefinition, bE as ActorGatewayOptions, bF as ActorHandle, bG as ActorHandleRaw, bH as ActorIssueTokenOptions, bI as ActorTokenPermissions, bJ as ActorTokenResource, A as AnyActorDefinition, bK as ClientRaw, bL as ConnectionStateCallback, bM as CreateOptions, bN as CreateRequest, bO as EventUnsubscribe, bP as ExtractActorsFromRegistry, bQ as ExtractRegistryFromClient, bR as GetOptions, bS as GetWithIdOptions, bT as IssueTokenOptions, bU as IssuedToken, bV as QueryOptions, bW as Region, bX as StatusChangeCallback, bY as TokenGrant } from '../config-DK144OAw.cjs';
|
|
3
|
+
import { G as GetUpgradeWebSocket } from '../utils-C6b0aYUM.cjs';
|
|
4
|
+
export { E as Encoding } from '../utils-C6b0aYUM.cjs';
|
|
3
5
|
import z from 'zod/v4';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import '../config-B0LNDrLY.cjs';
|
|
6
|
+
export { R as ActorError, R as RivetError, U as UserError } from '../utils-3rsE0JvI.cjs';
|
|
7
|
+
import '../config-BfG1qpYz.cjs';
|
|
7
8
|
import '@rivetkit/rivetkit-wasm';
|
|
8
9
|
import 'zod';
|
|
9
10
|
import 'pino';
|
|
10
11
|
import '@rivetkit/virtual-websocket';
|
|
12
|
+
import '../inspector/workflow.cjs';
|
|
11
13
|
import '@standard-schema/spec';
|
|
14
|
+
import '@rivetkit/engine-api-full';
|
|
12
15
|
import 'hono';
|
|
13
16
|
import 'hono/utils/http-status';
|
|
14
17
|
|
|
@@ -25,9 +28,15 @@ declare class ActorConnDisposed extends ActorClientError {
|
|
|
25
28
|
constructor();
|
|
26
29
|
}
|
|
27
30
|
|
|
31
|
+
/** Called when RivetKit needs a credential. Keep issuer secrets on your backend. */
|
|
32
|
+
type GetToken = (options: {
|
|
33
|
+
forceRefresh: boolean;
|
|
34
|
+
}) => Promise<string>;
|
|
35
|
+
|
|
28
36
|
declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
29
37
|
endpoint: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
|
|
30
38
|
token: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
39
|
+
getToken: z.ZodOptional<z.ZodCustom<GetToken, GetToken>>;
|
|
31
40
|
namespace: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
32
41
|
poolName: z.ZodDefault<z.ZodString>;
|
|
33
42
|
encoding: z.ZodDefault<z.ZodEnum<{
|
|
@@ -40,6 +49,11 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
40
49
|
skipReadyWait: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
50
|
}, z.core.$strip>>>;
|
|
42
51
|
getUpgradeWebSocket: z.ZodOptional<z.ZodCustom<GetUpgradeWebSocket, GetUpgradeWebSocket>>;
|
|
52
|
+
retryBudget: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
|
|
43
57
|
disableMetadataLookup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
44
58
|
maxInputSize: z.ZodDefault<z.ZodNumber>;
|
|
45
59
|
devtools: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -56,7 +70,13 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
56
70
|
disableMetadataLookup: boolean;
|
|
57
71
|
maxInputSize: number;
|
|
58
72
|
devtools: boolean;
|
|
73
|
+
getToken?: GetToken | undefined;
|
|
59
74
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
75
|
+
retryBudget?: {
|
|
76
|
+
percent?: number | undefined;
|
|
77
|
+
maxTokens?: number | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
fetch?: typeof fetch | undefined;
|
|
60
80
|
}, {
|
|
61
81
|
endpoint: string;
|
|
62
82
|
token: string | undefined;
|
|
@@ -70,7 +90,13 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
70
90
|
disableMetadataLookup: boolean;
|
|
71
91
|
maxInputSize: number;
|
|
72
92
|
devtools: boolean;
|
|
93
|
+
getToken?: GetToken | undefined;
|
|
73
94
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
95
|
+
retryBudget?: {
|
|
96
|
+
percent?: number | undefined;
|
|
97
|
+
maxTokens?: number | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
fetch?: typeof fetch | undefined;
|
|
74
100
|
}>>;
|
|
75
101
|
type ClientConfigInput = z.input<typeof ClientConfigSchema>;
|
|
76
102
|
|
|
@@ -79,4 +105,4 @@ type ClientConfigInput = z.input<typeof ClientConfigSchema>;
|
|
|
79
105
|
*/
|
|
80
106
|
declare function createClient<A extends Registry<any>>(endpointOrConfig?: string | ClientConfigInput): Client<A>;
|
|
81
107
|
|
|
82
|
-
export { ActorClientError, ActorConnDisposed, Client, type ClientConfigInput, MalformedResponseMessage, ManagerError, createClient };
|
|
108
|
+
export { ActorClientError, ActorConnDisposed, Client, type ClientConfigInput, type GetToken, MalformedResponseMessage, ManagerError, createClient };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aI as Registry, a6 as Client } from '../config-B4erdavw.js';
|
|
2
|
+
export { bx as ActorAccessor, by as ActorActionFunction, bz as ActorActionOptions, bA as ActorConn, bB as ActorConnRaw, bC as ActorConnStatus, bD as ActorConnectOptions, x as ActorDefinition, bE as ActorGatewayOptions, bF as ActorHandle, bG as ActorHandleRaw, bH as ActorIssueTokenOptions, bI as ActorTokenPermissions, bJ as ActorTokenResource, A as AnyActorDefinition, bK as ClientRaw, bL as ConnectionStateCallback, bM as CreateOptions, bN as CreateRequest, bO as EventUnsubscribe, bP as ExtractActorsFromRegistry, bQ as ExtractRegistryFromClient, bR as GetOptions, bS as GetWithIdOptions, bT as IssueTokenOptions, bU as IssuedToken, bV as QueryOptions, bW as Region, bX as StatusChangeCallback, bY as TokenGrant } from '../config-B4erdavw.js';
|
|
3
|
+
import { G as GetUpgradeWebSocket } from '../utils-C1O-SklO.js';
|
|
4
|
+
export { E as Encoding } from '../utils-C1O-SklO.js';
|
|
3
5
|
import z from 'zod/v4';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import '../config-B0LNDrLY.js';
|
|
6
|
+
export { R as ActorError, R as RivetError, U as UserError } from '../utils-3rsE0JvI.js';
|
|
7
|
+
import '../config-BfG1qpYz.js';
|
|
7
8
|
import '@rivetkit/rivetkit-wasm';
|
|
8
9
|
import 'zod';
|
|
9
10
|
import 'pino';
|
|
10
11
|
import '@rivetkit/virtual-websocket';
|
|
12
|
+
import '../inspector/workflow.js';
|
|
11
13
|
import '@standard-schema/spec';
|
|
14
|
+
import '@rivetkit/engine-api-full';
|
|
12
15
|
import 'hono';
|
|
13
16
|
import 'hono/utils/http-status';
|
|
14
17
|
|
|
@@ -25,9 +28,15 @@ declare class ActorConnDisposed extends ActorClientError {
|
|
|
25
28
|
constructor();
|
|
26
29
|
}
|
|
27
30
|
|
|
31
|
+
/** Called when RivetKit needs a credential. Keep issuer secrets on your backend. */
|
|
32
|
+
type GetToken = (options: {
|
|
33
|
+
forceRefresh: boolean;
|
|
34
|
+
}) => Promise<string>;
|
|
35
|
+
|
|
28
36
|
declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
29
37
|
endpoint: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
|
|
30
38
|
token: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
39
|
+
getToken: z.ZodOptional<z.ZodCustom<GetToken, GetToken>>;
|
|
31
40
|
namespace: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
32
41
|
poolName: z.ZodDefault<z.ZodString>;
|
|
33
42
|
encoding: z.ZodDefault<z.ZodEnum<{
|
|
@@ -40,6 +49,11 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
40
49
|
skipReadyWait: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
50
|
}, z.core.$strip>>>;
|
|
42
51
|
getUpgradeWebSocket: z.ZodOptional<z.ZodCustom<GetUpgradeWebSocket, GetUpgradeWebSocket>>;
|
|
52
|
+
retryBudget: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
|
|
43
57
|
disableMetadataLookup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
44
58
|
maxInputSize: z.ZodDefault<z.ZodNumber>;
|
|
45
59
|
devtools: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -56,7 +70,13 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
56
70
|
disableMetadataLookup: boolean;
|
|
57
71
|
maxInputSize: number;
|
|
58
72
|
devtools: boolean;
|
|
73
|
+
getToken?: GetToken | undefined;
|
|
59
74
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
75
|
+
retryBudget?: {
|
|
76
|
+
percent?: number | undefined;
|
|
77
|
+
maxTokens?: number | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
fetch?: typeof fetch | undefined;
|
|
60
80
|
}, {
|
|
61
81
|
endpoint: string;
|
|
62
82
|
token: string | undefined;
|
|
@@ -70,7 +90,13 @@ declare const ClientConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
70
90
|
disableMetadataLookup: boolean;
|
|
71
91
|
maxInputSize: number;
|
|
72
92
|
devtools: boolean;
|
|
93
|
+
getToken?: GetToken | undefined;
|
|
73
94
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
95
|
+
retryBudget?: {
|
|
96
|
+
percent?: number | undefined;
|
|
97
|
+
maxTokens?: number | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
fetch?: typeof fetch | undefined;
|
|
74
100
|
}>>;
|
|
75
101
|
type ClientConfigInput = z.input<typeof ClientConfigSchema>;
|
|
76
102
|
|
|
@@ -79,4 +105,4 @@ type ClientConfigInput = z.input<typeof ClientConfigSchema>;
|
|
|
79
105
|
*/
|
|
80
106
|
declare function createClient<A extends Registry<any>>(endpointOrConfig?: string | ClientConfigInput): Client<A>;
|
|
81
107
|
|
|
82
|
-
export { ActorClientError, ActorConnDisposed, Client, type ClientConfigInput, MalformedResponseMessage, ManagerError, createClient };
|
|
108
|
+
export { ActorClientError, ActorConnDisposed, Client, type ClientConfigInput, type GetToken, MalformedResponseMessage, ManagerError, createClient };
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JNJEWQZL.js";
|
|
4
4
|
import {
|
|
5
5
|
ActorClientError,
|
|
6
6
|
ActorConnDisposed,
|
|
@@ -8,16 +8,15 @@ import {
|
|
|
8
8
|
ActorHandleRaw,
|
|
9
9
|
MalformedResponseMessage,
|
|
10
10
|
ManagerError
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-75UE45DE.js";
|
|
11
|
+
} from "../chunk-2EQ2WCO7.js";
|
|
12
|
+
import "../chunk-A2CF6PFH.js";
|
|
13
|
+
import "../chunk-OX5MX7TO.js";
|
|
14
|
+
import "../chunk-JTHHCZCZ.js";
|
|
15
|
+
import "../chunk-6ZJX3KXW.js";
|
|
17
16
|
import {
|
|
18
17
|
RivetError,
|
|
19
18
|
UserError
|
|
20
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-ZOVJDAOW.js";
|
|
21
20
|
export {
|
|
22
21
|
ActorClientError,
|
|
23
22
|
ActorConnDisposed,
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var _chunk7QKCGUTJcjs = require('../chunk-7QKCGUTJ.cjs');
|
|
10
|
-
require('../chunk-4FC7TVS6.cjs');
|
|
11
9
|
|
|
10
|
+
var _chunk4H2LT2WBcjs = require('../chunk-4H2LT2WB.cjs');
|
|
11
|
+
require('../chunk-MGI2VVF6.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -16,5 +16,7 @@ require('../chunk-4FC7TVS6.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.LogLevelSchema = _chunk4H2LT2WBcjs.LogLevelSchema; exports.configureBaseLogger = _chunk4H2LT2WBcjs.configureBaseLogger; exports.configureDefaultLogger = _chunk4H2LT2WBcjs.configureDefaultLogger; exports.getBaseLogger = _chunk4H2LT2WBcjs.getBaseLogger; exports.getIncludeTarget = _chunk4H2LT2WBcjs.getIncludeTarget; exports.getLogger = _chunk4H2LT2WBcjs.getLogger; exports.getPinoLevel = _chunk4H2LT2WBcjs.getPinoLevel; exports.makeDefaultLogger = _chunk4H2LT2WBcjs.makeDefaultLogger;
|
|
20
22
|
//# sourceMappingURL=log.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/common/log.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2eAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/common/log.cjs"}
|
|
@@ -18,6 +18,10 @@ 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;
|
|
21
25
|
/**
|
|
22
26
|
* Configure the default logger with optional log level.
|
|
23
27
|
*/
|
|
@@ -31,4 +35,4 @@ declare function getBaseLogger(): Logger;
|
|
|
31
35
|
*/
|
|
32
36
|
declare function getLogger(name?: string): Logger;
|
|
33
37
|
|
|
34
|
-
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
|
38
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel, makeDefaultLogger };
|
|
@@ -18,6 +18,10 @@ 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;
|
|
21
25
|
/**
|
|
22
26
|
* Configure the default logger with optional log level.
|
|
23
27
|
*/
|
|
@@ -31,4 +35,4 @@ declare function getBaseLogger(): Logger;
|
|
|
31
35
|
*/
|
|
32
36
|
declare function getLogger(name?: string): Logger;
|
|
33
37
|
|
|
34
|
-
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel };
|
|
38
|
+
export { type LogLevel, LogLevelSchema, configureBaseLogger, configureDefaultLogger, getBaseLogger, getIncludeTarget, getLogger, getPinoLevel, makeDefaultLogger };
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -5,9 +5,10 @@ import {
|
|
|
5
5
|
getBaseLogger,
|
|
6
6
|
getIncludeTarget,
|
|
7
7
|
getLogger,
|
|
8
|
-
getPinoLevel
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
getPinoLevel,
|
|
9
|
+
makeDefaultLogger
|
|
10
|
+
} from "../chunk-6ZJX3KXW.js";
|
|
11
|
+
import "../chunk-ZOVJDAOW.js";
|
|
11
12
|
export {
|
|
12
13
|
LogLevelSchema,
|
|
13
14
|
configureBaseLogger,
|
|
@@ -15,6 +16,7 @@ export {
|
|
|
15
16
|
getBaseLogger,
|
|
16
17
|
getIncludeTarget,
|
|
17
18
|
getLogger,
|
|
18
|
-
getPinoLevel
|
|
19
|
+
getPinoLevel,
|
|
20
|
+
makeDefaultLogger
|
|
19
21
|
};
|
|
20
22
|
//# 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-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkPSIBTOARcjs = require('../chunk-PSIBTOAR.cjs');
|
|
4
|
+
require('../chunk-4H2LT2WB.cjs');
|
|
5
|
+
require('../chunk-MGI2VVF6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.importWebSocket =
|
|
8
|
+
exports.importWebSocket = _chunkPSIBTOARcjs.importWebSocket;
|
|
9
9
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/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/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/common/websocket.cjs"}
|