rivetkit 2.3.11-rc.2 → 2.3.11-rc.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/dist/browser/client.d.ts +17 -0
- package/dist/browser/client.js +20 -9
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +1 -1
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +16 -0
- package/dist/tsup/agent-os/index.d.ts +16 -0
- package/dist/tsup/agent-os/index.js +1 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-3NPCXMJS.cjs → chunk-3BQTLF6T.cjs} +158 -147
- package/dist/tsup/chunk-3BQTLF6T.cjs.map +1 -0
- package/dist/tsup/{chunk-7TVKYMD3.cjs → chunk-3WCNDXDU.cjs} +4 -4
- package/dist/tsup/{chunk-7TVKYMD3.cjs.map → chunk-3WCNDXDU.cjs.map} +1 -1
- package/dist/tsup/{chunk-XR2KF2ZA.js → chunk-5KLTIO35.js} +25 -14
- package/dist/tsup/chunk-5KLTIO35.js.map +1 -0
- package/dist/tsup/{chunk-XWIXH7JF.js → chunk-7N4PSYCJ.js} +2 -2
- package/dist/tsup/{chunk-XWIXH7JF.js.map → chunk-7N4PSYCJ.js.map} +1 -1
- package/dist/tsup/{chunk-5SHK4JM5.cjs → chunk-DD4HSOMO.cjs} +2 -2
- package/dist/tsup/{chunk-5SHK4JM5.cjs.map → chunk-DD4HSOMO.cjs.map} +1 -1
- package/dist/tsup/{chunk-NRRWLN6D.cjs → chunk-G66RAENX.cjs} +3 -3
- package/dist/tsup/{chunk-NRRWLN6D.cjs.map → chunk-G66RAENX.cjs.map} +1 -1
- package/dist/tsup/{chunk-NLAW2MIM.js → chunk-I3OXZILZ.js} +2 -2
- package/dist/tsup/{chunk-J4RT6EFK.cjs → chunk-RRVTP46R.cjs} +9 -9
- package/dist/tsup/{chunk-J4RT6EFK.cjs.map → chunk-RRVTP46R.cjs.map} +1 -1
- package/dist/tsup/{chunk-RVJQMOAA.js → chunk-S26YGW4T.js} +2 -2
- package/dist/tsup/{chunk-75K5VACB.js → chunk-TP5MGPLS.js} +3 -3
- package/dist/tsup/{chunk-LPGJPAVY.cjs → chunk-VAG7L6N3.cjs} +7 -7
- package/dist/tsup/{chunk-LPGJPAVY.cjs.map → chunk-VAG7L6N3.cjs.map} +1 -1
- package/dist/tsup/{chunk-KHSNHG4G.js → chunk-ZI6TSSI4.js} +3 -3
- package/dist/tsup/client/mod.cjs +5 -5
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +4 -4
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-BKAMOHez.d.ts → config-CZcjyT5B.d.ts} +17 -0
- package/dist/tsup/{config-Caocy3Z9.d.cts → config-rGWrumlO.d.cts} +17 -0
- package/dist/tsup/{context-D1_m5x1D.d.cts → context-B8W8E8nW.d.cts} +1 -1
- package/dist/tsup/{context-AfCExwbr.d.ts → context-_UrDZhEh.d.ts} +1 -1
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +2 -2
- package/dist/tsup/db/mod.js +1 -1
- package/dist/tsup/dynamic/mod.d.cts +1 -1
- package/dist/tsup/dynamic/mod.d.ts +1 -1
- package/dist/tsup/inspector/mod.cjs +4 -4
- package/dist/tsup/inspector/mod.js +3 -3
- package/dist/tsup/inspector-tab/mod.d.cts +2 -2
- package/dist/tsup/inspector-tab/mod.d.ts +2 -2
- package/dist/tsup/mod.cjs +65 -65
- package/dist/tsup/mod.d.cts +3 -3
- package/dist/tsup/mod.d.ts +3 -3
- package/dist/tsup/mod.js +4 -4
- package/dist/tsup/test/mod.cjs +6 -6
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +4 -4
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +6 -6
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +3 -3
- package/package.json +8 -8
- package/src/client/client.ts +11 -0
- package/src/client/query.ts +2 -0
- package/src/client/resolve-gateway-target.ts +2 -0
- package/src/engine-client/driver.ts +4 -0
- package/src/engine-client/mod.ts +13 -4
- package/dist/tsup/chunk-3NPCXMJS.cjs.map +0 -1
- package/dist/tsup/chunk-XR2KF2ZA.js.map +0 -1
- /package/dist/tsup/{chunk-NLAW2MIM.js.map → chunk-I3OXZILZ.js.map} +0 -0
- /package/dist/tsup/{chunk-RVJQMOAA.js.map → chunk-S26YGW4T.js.map} +0 -0
- /package/dist/tsup/{chunk-75K5VACB.js.map → chunk-TP5MGPLS.js.map} +0 -0
- /package/dist/tsup/{chunk-KHSNHG4G.js.map → chunk-ZI6TSSI4.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeWorkflowHistoryTransport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I3OXZILZ.js";
|
|
4
4
|
import {
|
|
5
5
|
assertUnreachable,
|
|
6
6
|
bufferToArrayBuffer,
|
|
7
7
|
encodeCborCompat
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7N4PSYCJ.js";
|
|
9
9
|
|
|
10
10
|
// src/workflow/inspector.ts
|
|
11
11
|
function createHistoryEmitter() {
|
|
@@ -248,4 +248,4 @@ function toWorkflowHistory(snapshot) {
|
|
|
248
248
|
export {
|
|
249
249
|
createWorkflowInspectorAdapter
|
|
250
250
|
};
|
|
251
|
-
//# sourceMappingURL=chunk-
|
|
251
|
+
//# sourceMappingURL=chunk-TP5MGPLS.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3BQTLF6Tcjs = require('./chunk-3BQTLF6T.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDD4HSOMOcjs = require('./chunk-DD4HSOMO.cjs');
|
|
9
9
|
|
|
10
10
|
// src/devtools-loader/log.ts
|
|
11
11
|
function logger() {
|
|
12
|
-
return
|
|
12
|
+
return _chunkDD4HSOMOcjs.getLogger.call(void 0, "devtools");
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// src/devtools-loader/index.ts
|
|
@@ -35,15 +35,15 @@ function injectDevtools(config) {
|
|
|
35
35
|
// src/client/mod.ts
|
|
36
36
|
function createClient(endpointOrConfig) {
|
|
37
37
|
const configInput = endpointOrConfig === void 0 ? {} : typeof endpointOrConfig === "string" ? { endpoint: endpointOrConfig } : endpointOrConfig;
|
|
38
|
-
const config =
|
|
39
|
-
const driver = new (0,
|
|
38
|
+
const config = _chunk3BQTLF6Tcjs.ClientConfigSchema.parse(configInput);
|
|
39
|
+
const driver = new (0, _chunk3BQTLF6Tcjs.RemoteEngineControlClient)(config);
|
|
40
40
|
if (config.devtools) {
|
|
41
41
|
injectDevtools(config);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return _chunk3BQTLF6Tcjs.createClientWithDriver.call(void 0, driver, config);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
exports.createClient = createClient;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-VAG7L6N3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-VAG7L6N3.cjs","../../src/devtools-loader/log.ts","../../src/devtools-loader/index.ts","../../src/client/mod.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACPO,SAAS,MAAA,CAAA,EAAS;AACxB,EAAA,OAAO,yCAAA,UAAoB,CAAA;AAC5B;ADSA;AACA;AENA,IAAM,SAAA,EAAW,0BAAA;AAEV,SAAS,cAAA,CAAe,MAAA,EAA2B;AAV1D,EAAA,IAAA,EAAA;AAWC,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ;AACZ,IAAA,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,oDAAoD,CAAA;AAClE,IAAA,MAAA;AAAA,EACD;AAEA,EAAA,GAAA,CAAI,CAAC,QAAA,CAAS,cAAA,CAAe,QAAQ,CAAA,EAAG;AACvC,IAAA,MAAM,IAAA,EAEL,CAAA,EAAA;AACK,IAAA;AACM,IAAA;AACC,IAAA;AACN,IAAA;AACE,IAAA;AACV,EAAA;AAEO,EAAA;AACA,EAAA;AACR;AFIiB;AACA;AGqBD;AAIT,EAAA;AAMS,EAAA;AAGA,EAAA;AAEJ,EAAA;AACV,IAAA;AACD,EAAA;AAEO,EAAA;AACR;AH/BiB;AACA;AACA;AACA","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-VAG7L6N3.cjs","sourcesContent":[null,"import { getLogger } from \"@/common/log\";\n\nexport function logger() {\n\treturn getLogger(\"devtools\");\n}\n","import type { ClientConfigInput } from \"@/client/client\";\nimport { logger } from \"./log\";\n\ndeclare global {\n\t// Injected via tsup config\n\tvar CUSTOM_RIVETKIT_DEVTOOLS_URL: string | undefined;\n}\n\nconst scriptId = \"rivetkit-devtools-script\";\n\nexport function injectDevtools(config: ClientConfigInput) {\n\tif (!window) {\n\t\tlogger().warn(\"devtools not available outside browser environment\");\n\t\treturn;\n\t}\n\n\tif (!document.getElementById(scriptId)) {\n\t\tconst src =\n\t\t\tglobalThis.CUSTOM_RIVETKIT_DEVTOOLS_URL ||\n\t\t\t`${config.endpoint?.replace(/\\/$/, \"\")}/devtools/mod.js`;\n\t\tconst script = document.createElement(\"script\");\n\t\tscript.id = scriptId;\n\t\tscript.src = src;\n\t\tscript.async = true;\n\t\tdocument.head.appendChild(script);\n\t}\n\n\twindow.__rivetkit = window.__rivetkit || [];\n\twindow.__rivetkit.push(config);\n}\n","import { injectDevtools } from \"@/devtools-loader\";\nimport { RemoteEngineControlClient } from \"@/engine-client/mod\";\nimport type { Registry } from \"@/registry\";\nimport {\n\ttype Client,\n\ttype ClientConfigInput,\n\tcreateClientWithDriver,\n} from \"./client\";\nimport { ClientConfigSchema } from \"./config\";\n\nexport type { ActorDefinition, AnyActorDefinition } from \"@/actor/definition\";\nexport {\n\tActorClientError,\n\tActorConnDisposed,\n\tActorError,\n\tMalformedResponseMessage,\n\tManagerError,\n\tRivetError,\n\tUserError,\n} from \"@/client/errors\";\nexport type { CreateRequest } from \"@/client/query\";\nexport type { Encoding } from \"@/common/encoding\";\nexport type {\n\tActorActionFunction,\n\tActorActionOptions,\n\tActorConnectOptions,\n\tActorGatewayOptions,\n} from \"./actor-common\";\nexport type {\n\tActorConn,\n\tActorConnStatus,\n\tConnectionStateCallback,\n\tEventUnsubscribe,\n\tStatusChangeCallback,\n} from \"./actor-conn\";\nexport { ActorConnRaw } from \"./actor-conn\";\nexport type { ActorHandle } from \"./actor-handle\";\nexport { ActorHandleRaw } from \"./actor-handle\";\nexport type {\n\tActorAccessor,\n\tClient,\n\tClientConfigInput,\n\tClientRaw,\n\tCreateOptions,\n\tExtractActorsFromRegistry,\n\tExtractRegistryFromClient,\n\tGetOptions,\n\tGetWithIdOptions,\n\tQueryOptions,\n\tRegion,\n} from \"./client\";\n\n/**\n * Creates a client with the actor accessor proxy.\n */\nexport function createClient<A extends Registry<any>>(\n\tendpointOrConfig?: string | ClientConfigInput,\n): Client<A> {\n\t// Parse config\n\tconst configInput =\n\t\tendpointOrConfig === undefined\n\t\t\t? {}\n\t\t\t: typeof endpointOrConfig === \"string\"\n\t\t\t\t? { endpoint: endpointOrConfig }\n\t\t\t\t: endpointOrConfig;\n\tconst config = ClientConfigSchema.parse(configInput);\n\n\t// Create client\n\tconst driver = new RemoteEngineControlClient(config);\n\n\tif (config.devtools) {\n\t\tinjectDevtools(config);\n\t}\n\n\treturn createClientWithDriver<A>(driver, config);\n}\n"]}
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ClientConfigSchema,
|
|
3
3
|
RemoteEngineControlClient,
|
|
4
4
|
createClientWithDriver
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5KLTIO35.js";
|
|
6
6
|
import {
|
|
7
7
|
getLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7N4PSYCJ.js";
|
|
9
9
|
|
|
10
10
|
// src/devtools-loader/log.ts
|
|
11
11
|
function logger() {
|
|
@@ -46,4 +46,4 @@ function createClient(endpointOrConfig) {
|
|
|
46
46
|
export {
|
|
47
47
|
createClient
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-ZI6TSSI4.js.map
|
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 _chunkVAG7L6N3cjs = require('../chunk-VAG7L6N3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ var _chunkLPGJPAVYcjs = require('../chunk-LPGJPAVY.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3BQTLF6Tcjs = require('../chunk-3BQTLF6T.cjs');
|
|
12
12
|
require('../chunk-MYWZCDML.cjs');
|
|
13
|
+
require('../chunk-G66RAENX.cjs');
|
|
13
14
|
require('../chunk-UEULFXUI.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-5SHK4JM5.cjs');
|
|
15
|
+
require('../chunk-DD4HSOMO.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,5 +28,5 @@ var _chunk4FC7TVS6cjs = require('../chunk-4FC7TVS6.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
exports.ActorClientError =
|
|
31
|
+
exports.ActorClientError = _chunk3BQTLF6Tcjs.ActorClientError; exports.ActorConnDisposed = _chunk3BQTLF6Tcjs.ActorConnDisposed; exports.ActorConnRaw = _chunk3BQTLF6Tcjs.ActorConnRaw; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorHandleRaw = _chunk3BQTLF6Tcjs.ActorHandleRaw; exports.MalformedResponseMessage = _chunk3BQTLF6Tcjs.MalformedResponseMessage; exports.ManagerError = _chunk3BQTLF6Tcjs.ManagerError; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.createClient = _chunkVAG7L6N3cjs.createClient;
|
|
32
32
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aC as Registry, a2 as Client } from '../config-
|
|
2
|
-
export { bh as ActorAccessor, bi as ActorActionFunction, bj as ActorActionOptions, bk as ActorConn, bl as ActorConnRaw, bm as ActorConnStatus, bn as ActorConnectOptions, v as ActorDefinition, bo as ActorGatewayOptions, bp as ActorHandle, bq as ActorHandleRaw, A as AnyActorDefinition, br as ClientRaw, bs as ConnectionStateCallback, bt as CreateOptions, bu as CreateRequest, bv as EventUnsubscribe, bw as ExtractActorsFromRegistry, bx as ExtractRegistryFromClient, by as GetOptions, bz as GetWithIdOptions, bA as QueryOptions, bB as Region, bC as StatusChangeCallback } from '../config-
|
|
1
|
+
import { aC as Registry, a2 as Client } from '../config-rGWrumlO.cjs';
|
|
2
|
+
export { bh as ActorAccessor, bi as ActorActionFunction, bj as ActorActionOptions, bk as ActorConn, bl as ActorConnRaw, bm as ActorConnStatus, bn as ActorConnectOptions, v as ActorDefinition, bo as ActorGatewayOptions, bp as ActorHandle, bq as ActorHandleRaw, A as AnyActorDefinition, br as ClientRaw, bs as ConnectionStateCallback, bt as CreateOptions, bu as CreateRequest, bv as EventUnsubscribe, bw as ExtractActorsFromRegistry, bx as ExtractRegistryFromClient, by as GetOptions, bz as GetWithIdOptions, bA as QueryOptions, bB as Region, bC as StatusChangeCallback } from '../config-rGWrumlO.cjs';
|
|
3
3
|
import { G as GetUpgradeWebSocket } from '../utils-DQDCphrl.cjs';
|
|
4
4
|
export { E as Encoding } from '../utils-DQDCphrl.cjs';
|
|
5
5
|
import z from 'zod/v4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aC as Registry, a2 as Client } from '../config-
|
|
2
|
-
export { bh as ActorAccessor, bi as ActorActionFunction, bj as ActorActionOptions, bk as ActorConn, bl as ActorConnRaw, bm as ActorConnStatus, bn as ActorConnectOptions, v as ActorDefinition, bo as ActorGatewayOptions, bp as ActorHandle, bq as ActorHandleRaw, A as AnyActorDefinition, br as ClientRaw, bs as ConnectionStateCallback, bt as CreateOptions, bu as CreateRequest, bv as EventUnsubscribe, bw as ExtractActorsFromRegistry, bx as ExtractRegistryFromClient, by as GetOptions, bz as GetWithIdOptions, bA as QueryOptions, bB as Region, bC as StatusChangeCallback } from '../config-
|
|
1
|
+
import { aC as Registry, a2 as Client } from '../config-CZcjyT5B.js';
|
|
2
|
+
export { bh as ActorAccessor, bi as ActorActionFunction, bj as ActorActionOptions, bk as ActorConn, bl as ActorConnRaw, bm as ActorConnStatus, bn as ActorConnectOptions, v as ActorDefinition, bo as ActorGatewayOptions, bp as ActorHandle, bq as ActorHandleRaw, A as AnyActorDefinition, br as ClientRaw, bs as ConnectionStateCallback, bt as CreateOptions, bu as CreateRequest, bv as EventUnsubscribe, bw as ExtractActorsFromRegistry, bx as ExtractRegistryFromClient, by as GetOptions, bz as GetWithIdOptions, bA as QueryOptions, bB as Region, bC as StatusChangeCallback } from '../config-CZcjyT5B.js';
|
|
3
3
|
import { G as GetUpgradeWebSocket } from '../utils-CV0akuDD.js';
|
|
4
4
|
export { E as Encoding } from '../utils-CV0akuDD.js';
|
|
5
5
|
import z from 'zod/v4';
|
package/dist/tsup/client/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZI6TSSI4.js";
|
|
4
4
|
import {
|
|
5
5
|
ActorClientError,
|
|
6
6
|
ActorConnDisposed,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
ActorHandleRaw,
|
|
9
9
|
MalformedResponseMessage,
|
|
10
10
|
ManagerError
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-5KLTIO35.js";
|
|
12
12
|
import "../chunk-JI6GZ2C2.js";
|
|
13
|
+
import "../chunk-S26YGW4T.js";
|
|
13
14
|
import "../chunk-7AFZMFPQ.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-XWIXH7JF.js";
|
|
15
|
+
import "../chunk-7N4PSYCJ.js";
|
|
16
16
|
import {
|
|
17
17
|
RivetError,
|
|
18
18
|
UserError
|
package/dist/tsup/common/log.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDD4HSOMOcjs = require('../chunk-DD4HSOMO.cjs');
|
|
11
11
|
require('../chunk-4FC7TVS6.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,5 +18,5 @@ require('../chunk-4FC7TVS6.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.LogLevelSchema =
|
|
21
|
+
exports.LogLevelSchema = _chunkDD4HSOMOcjs.LogLevelSchema; exports.configureBaseLogger = _chunkDD4HSOMOcjs.configureBaseLogger; exports.configureDefaultLogger = _chunkDD4HSOMOcjs.configureDefaultLogger; exports.getBaseLogger = _chunkDD4HSOMOcjs.getBaseLogger; exports.getIncludeTarget = _chunkDD4HSOMOcjs.getIncludeTarget; exports.getLogger = _chunkDD4HSOMOcjs.getLogger; exports.getPinoLevel = _chunkDD4HSOMOcjs.getPinoLevel; exports.makeDefaultLogger = _chunkDD4HSOMOcjs.makeDefaultLogger;
|
|
22
22
|
//# sourceMappingURL=log.cjs.map
|
package/dist/tsup/common/log.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkG66RAENXcjs = require('../chunk-G66RAENX.cjs');
|
|
4
|
+
require('../chunk-DD4HSOMO.cjs');
|
|
5
5
|
require('../chunk-4FC7TVS6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.importWebSocket =
|
|
8
|
+
exports.importWebSocket = _chunkG66RAENXcjs.importWebSocket;
|
|
9
9
|
//# sourceMappingURL=websocket.cjs.map
|
|
@@ -28,6 +28,7 @@ declare const CreateRequestSchema: z.ZodObject<{
|
|
|
28
28
|
key: z.ZodArray<z.ZodString>;
|
|
29
29
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
30
30
|
region: z.ZodOptional<z.ZodString>;
|
|
31
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
31
32
|
}, z.core.$strip>;
|
|
32
33
|
declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
33
34
|
getForId: z.ZodObject<{
|
|
@@ -45,6 +46,7 @@ declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
45
46
|
key: z.ZodArray<z.ZodString>;
|
|
46
47
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
47
48
|
region: z.ZodOptional<z.ZodString>;
|
|
49
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
48
50
|
}, z.core.$strip>;
|
|
49
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
50
52
|
create: z.ZodObject<{
|
|
@@ -52,6 +54,7 @@ declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
52
54
|
key: z.ZodArray<z.ZodString>;
|
|
53
55
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
54
56
|
region: z.ZodOptional<z.ZodString>;
|
|
57
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
55
58
|
}, z.core.$strip>;
|
|
56
59
|
}, z.core.$strip>]>;
|
|
57
60
|
type ActorQuery = z.infer<typeof ActorQuerySchema>;
|
|
@@ -523,6 +526,8 @@ interface GetOrCreateWithKeyInput {
|
|
|
523
526
|
input?: unknown;
|
|
524
527
|
region?: string;
|
|
525
528
|
crashPolicy?: CrashPolicy;
|
|
529
|
+
/** Overrides the client's configured pool name for this actor. */
|
|
530
|
+
poolName?: string;
|
|
526
531
|
}
|
|
527
532
|
interface CreateInput {
|
|
528
533
|
c?: Context | undefined;
|
|
@@ -531,6 +536,8 @@ interface CreateInput {
|
|
|
531
536
|
input?: unknown;
|
|
532
537
|
region?: string;
|
|
533
538
|
crashPolicy?: CrashPolicy;
|
|
539
|
+
/** Overrides the client's configured pool name for this actor. */
|
|
540
|
+
poolName?: string;
|
|
534
541
|
}
|
|
535
542
|
interface ListActorsInput {
|
|
536
543
|
c?: Context | undefined;
|
|
@@ -1506,6 +1513,11 @@ interface GetOrCreateOptions extends QueryOptions {
|
|
|
1506
1513
|
createInRegion?: string;
|
|
1507
1514
|
/** Input data to pass to the actor. */
|
|
1508
1515
|
createWithInput?: unknown;
|
|
1516
|
+
/**
|
|
1517
|
+
* Name of the envoy pool to select for this actor if it is created.
|
|
1518
|
+
* Overrides the client's configured `poolName` for this call.
|
|
1519
|
+
*/
|
|
1520
|
+
poolName?: string;
|
|
1509
1521
|
}
|
|
1510
1522
|
/**
|
|
1511
1523
|
* Options for creating a actor.
|
|
@@ -1517,6 +1529,11 @@ interface CreateOptions extends QueryOptions {
|
|
|
1517
1529
|
region?: string;
|
|
1518
1530
|
/** Input data to pass to the actor. */
|
|
1519
1531
|
input?: unknown;
|
|
1532
|
+
/**
|
|
1533
|
+
* Name of the envoy pool to select for this actor.
|
|
1534
|
+
* Overrides the client's configured `poolName` for this call.
|
|
1535
|
+
*/
|
|
1536
|
+
poolName?: string;
|
|
1520
1537
|
}
|
|
1521
1538
|
/**
|
|
1522
1539
|
* Represents a region to connect to.
|
|
@@ -28,6 +28,7 @@ declare const CreateRequestSchema: z.ZodObject<{
|
|
|
28
28
|
key: z.ZodArray<z.ZodString>;
|
|
29
29
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
30
30
|
region: z.ZodOptional<z.ZodString>;
|
|
31
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
31
32
|
}, z.core.$strip>;
|
|
32
33
|
declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
33
34
|
getForId: z.ZodObject<{
|
|
@@ -45,6 +46,7 @@ declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
45
46
|
key: z.ZodArray<z.ZodString>;
|
|
46
47
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
47
48
|
region: z.ZodOptional<z.ZodString>;
|
|
49
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
48
50
|
}, z.core.$strip>;
|
|
49
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
50
52
|
create: z.ZodObject<{
|
|
@@ -52,6 +54,7 @@ declare const ActorQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
52
54
|
key: z.ZodArray<z.ZodString>;
|
|
53
55
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
54
56
|
region: z.ZodOptional<z.ZodString>;
|
|
57
|
+
poolName: z.ZodOptional<z.ZodString>;
|
|
55
58
|
}, z.core.$strip>;
|
|
56
59
|
}, z.core.$strip>]>;
|
|
57
60
|
type ActorQuery = z.infer<typeof ActorQuerySchema>;
|
|
@@ -523,6 +526,8 @@ interface GetOrCreateWithKeyInput {
|
|
|
523
526
|
input?: unknown;
|
|
524
527
|
region?: string;
|
|
525
528
|
crashPolicy?: CrashPolicy;
|
|
529
|
+
/** Overrides the client's configured pool name for this actor. */
|
|
530
|
+
poolName?: string;
|
|
526
531
|
}
|
|
527
532
|
interface CreateInput {
|
|
528
533
|
c?: Context | undefined;
|
|
@@ -531,6 +536,8 @@ interface CreateInput {
|
|
|
531
536
|
input?: unknown;
|
|
532
537
|
region?: string;
|
|
533
538
|
crashPolicy?: CrashPolicy;
|
|
539
|
+
/** Overrides the client's configured pool name for this actor. */
|
|
540
|
+
poolName?: string;
|
|
534
541
|
}
|
|
535
542
|
interface ListActorsInput {
|
|
536
543
|
c?: Context | undefined;
|
|
@@ -1506,6 +1513,11 @@ interface GetOrCreateOptions extends QueryOptions {
|
|
|
1506
1513
|
createInRegion?: string;
|
|
1507
1514
|
/** Input data to pass to the actor. */
|
|
1508
1515
|
createWithInput?: unknown;
|
|
1516
|
+
/**
|
|
1517
|
+
* Name of the envoy pool to select for this actor if it is created.
|
|
1518
|
+
* Overrides the client's configured `poolName` for this call.
|
|
1519
|
+
*/
|
|
1520
|
+
poolName?: string;
|
|
1509
1521
|
}
|
|
1510
1522
|
/**
|
|
1511
1523
|
* Options for creating a actor.
|
|
@@ -1517,6 +1529,11 @@ interface CreateOptions extends QueryOptions {
|
|
|
1517
1529
|
region?: string;
|
|
1518
1530
|
/** Input data to pass to the actor. */
|
|
1519
1531
|
input?: unknown;
|
|
1532
|
+
/**
|
|
1533
|
+
* Name of the envoy pool to select for this actor.
|
|
1534
|
+
* Overrides the client's configured `poolName` for this call.
|
|
1535
|
+
*/
|
|
1536
|
+
poolName?: string;
|
|
1520
1537
|
}
|
|
1521
1538
|
/**
|
|
1522
1539
|
* Represents a region to connect to.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, F as ActorLogger, aq as QueueFilterName, av as QueueNextOptions, aw as QueueResultMessageForName, au as QueueNextBatchOptions, aC as Registry, a2 as Client, bD as InferEventArgs, bE as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, F as ActorLogger, aq as QueueFilterName, av as QueueNextOptions, aw as QueueResultMessageForName, au as QueueNextBatchOptions, aC as Registry, a2 as Client, bD as InferEventArgs, bE as InferSchemaMap } from './config-rGWrumlO.cjs';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
3
|
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-BxOimoGX.cjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, F as ActorLogger, aq as QueueFilterName, av as QueueNextOptions, aw as QueueResultMessageForName, au as QueueNextBatchOptions, aC as Registry, a2 as Client, bD as InferEventArgs, bE as InferSchemaMap } from './config-
|
|
1
|
+
import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, h as RunContext, F as ActorLogger, aq as QueueFilterName, av as QueueNextOptions, aw as QueueResultMessageForName, au as QueueNextBatchOptions, aC as Registry, a2 as Client, bD as InferEventArgs, bE as InferSchemaMap } from './config-CZcjyT5B.js';
|
|
2
2
|
import { WorkflowContextInterface, StepConfig, TryStepResult, TryStepConfig, TryBlockResult, TryBlockConfig, LoopResult, LoopConfig, BranchConfig, BranchOutput, EntryKindType } from '@rivetkit/workflow-engine';
|
|
3
3
|
import { A as AnyDatabaseProvider, I as InferDatabaseClient } from './config-BxOimoGX.js';
|
|
4
4
|
|
package/dist/tsup/db/drizzle.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
var _chunkUEULFXUIcjs = require('../chunk-UEULFXUI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDD4HSOMOcjs = require('../chunk-DD4HSOMO.cjs');
|
|
10
10
|
require('../chunk-4FC7TVS6.cjs');
|
|
11
11
|
|
|
12
12
|
// src/db/drizzle.ts
|
|
@@ -159,7 +159,7 @@ function db({
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
manualTransactionWarned = true;
|
|
162
|
-
|
|
162
|
+
_chunkDD4HSOMOcjs.getLogger.call(void 0, "database").warn(
|
|
163
163
|
{ actorId: ctx.actorId },
|
|
164
164
|
"Manual cross-call SQLite transactions can interleave with other actor work. Use db.transaction() for coordinated transactions. Set warnOnManualTransactions: false in your db(...) configuration to disable this warning."
|
|
165
165
|
);
|
package/dist/tsup/db/drizzle.js
CHANGED
package/dist/tsup/db/mod.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var _chunkUEULFXUIcjs = require('../chunk-UEULFXUI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDD4HSOMOcjs = require('../chunk-DD4HSOMO.cjs');
|
|
11
11
|
require('../chunk-4FC7TVS6.cjs');
|
|
12
12
|
|
|
13
13
|
// src/common/database/mod.ts
|
|
@@ -43,7 +43,7 @@ function db({
|
|
|
43
43
|
ensureOpen();
|
|
44
44
|
if (!transactionScoped && warnOnManualTransactions && !manualTransactionWarned && !hasMultipleStatements(query) && _chunkUEULFXUIcjs.isManualTransactionControl.call(void 0, query)) {
|
|
45
45
|
manualTransactionWarned = true;
|
|
46
|
-
|
|
46
|
+
_chunkDD4HSOMOcjs.getLogger.call(void 0, "database").warn(
|
|
47
47
|
{ actorId: ctx.actorId },
|
|
48
48
|
"Manual cross-call SQLite transactions can interleave with other actor work. Use db.transaction() for coordinated transactions. Set warnOnManualTransactions: false in your db(...) configuration to disable this warning."
|
|
49
49
|
);
|
package/dist/tsup/db/mod.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRRVTP46Rcjs = require('../chunk-RRVTP46R.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var _chunk3WCNDXDUcjs = require('../chunk-3WCNDXDU.cjs');
|
|
8
|
+
require('../chunk-DD4HSOMO.cjs');
|
|
9
9
|
require('../chunk-4FC7TVS6.cjs');
|
|
10
10
|
|
|
11
11
|
// src/common/bare/generated/inspector/v5.ts
|
|
@@ -795,5 +795,5 @@ function decodeToClient(bytes) {
|
|
|
795
795
|
|
|
796
796
|
|
|
797
797
|
|
|
798
|
-
exports.createWorkflowInspectorAdapter =
|
|
798
|
+
exports.createWorkflowInspectorAdapter = _chunkRRVTP46Rcjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunk3WCNDXDUcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunk3WCNDXDUcjs.encodeWorkflowHistoryTransport; exports.readActionRequest = readActionRequest; exports.readActionResponse = readActionResponse; exports.readConnection = readConnection; exports.readConnectionsRequest = readConnectionsRequest; exports.readConnectionsResponse = readConnectionsResponse; exports.readConnectionsUpdated = readConnectionsUpdated; exports.readDatabaseSchemaRequest = readDatabaseSchemaRequest; exports.readDatabaseSchemaResponse = readDatabaseSchemaResponse; exports.readDatabaseTableRowsRequest = readDatabaseTableRowsRequest; exports.readDatabaseTableRowsResponse = readDatabaseTableRowsResponse; exports.readError = readError; exports.readInit = readInit; exports.readPatchStateRequest = readPatchStateRequest; exports.readQueueMessageSummary = readQueueMessageSummary; exports.readQueueRequest = readQueueRequest; exports.readQueueResponse = readQueueResponse; exports.readQueueStatus = readQueueStatus; exports.readQueueUpdated = readQueueUpdated; exports.readRpcsListRequest = readRpcsListRequest; exports.readRpcsListResponse = readRpcsListResponse; exports.readState = readState; exports.readStateRequest = readStateRequest; exports.readStateResponse = readStateResponse; exports.readStateUpdated = readStateUpdated; exports.readTabConfigEntry = readTabConfigEntry; exports.readToClient = readToClient; exports.readToClientBody = readToClientBody; exports.readToServer = readToServer; exports.readToServerBody = readToServerBody; exports.readTraceQueryRequest = readTraceQueryRequest; exports.readTraceQueryResponse = readTraceQueryResponse; exports.readWorkflowHistory = readWorkflowHistory; exports.readWorkflowHistoryRequest = readWorkflowHistoryRequest; exports.readWorkflowHistoryResponse = readWorkflowHistoryResponse; exports.readWorkflowHistoryUpdated = readWorkflowHistoryUpdated; exports.readWorkflowReplayRequest = readWorkflowReplayRequest; exports.readWorkflowReplayResponse = readWorkflowReplayResponse; exports.writeActionRequest = writeActionRequest; exports.writeActionResponse = writeActionResponse; exports.writeConnection = writeConnection; exports.writeConnectionsRequest = writeConnectionsRequest; exports.writeConnectionsResponse = writeConnectionsResponse; exports.writeConnectionsUpdated = writeConnectionsUpdated; exports.writeDatabaseSchemaRequest = writeDatabaseSchemaRequest; exports.writeDatabaseSchemaResponse = writeDatabaseSchemaResponse; exports.writeDatabaseTableRowsRequest = writeDatabaseTableRowsRequest; exports.writeDatabaseTableRowsResponse = writeDatabaseTableRowsResponse; exports.writeError = writeError; exports.writeInit = writeInit; exports.writePatchStateRequest = writePatchStateRequest; exports.writeQueueMessageSummary = writeQueueMessageSummary; exports.writeQueueRequest = writeQueueRequest; exports.writeQueueResponse = writeQueueResponse; exports.writeQueueStatus = writeQueueStatus; exports.writeQueueUpdated = writeQueueUpdated; exports.writeRpcsListRequest = writeRpcsListRequest; exports.writeRpcsListResponse = writeRpcsListResponse; exports.writeState = writeState; exports.writeStateRequest = writeStateRequest; exports.writeStateResponse = writeStateResponse; exports.writeStateUpdated = writeStateUpdated; exports.writeTabConfigEntry = writeTabConfigEntry; exports.writeToClient = writeToClient; exports.writeToClientBody = writeToClientBody; exports.writeToServer = writeToServer; exports.writeToServerBody = writeToServerBody; exports.writeTraceQueryRequest = writeTraceQueryRequest; exports.writeTraceQueryResponse = writeTraceQueryResponse; exports.writeWorkflowHistory = writeWorkflowHistory; exports.writeWorkflowHistoryRequest = writeWorkflowHistoryRequest; exports.writeWorkflowHistoryResponse = writeWorkflowHistoryResponse; exports.writeWorkflowHistoryUpdated = writeWorkflowHistoryUpdated; exports.writeWorkflowReplayRequest = writeWorkflowReplayRequest; exports.writeWorkflowReplayResponse = writeWorkflowReplayResponse;
|
|
799
799
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-TP5MGPLS.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-I3OXZILZ.js";
|
|
8
|
+
import "../chunk-7N4PSYCJ.js";
|
|
9
9
|
import "../chunk-ZZ3WBRPD.js";
|
|
10
10
|
|
|
11
11
|
// src/common/bare/generated/inspector/v5.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a6 as CustomInspectorTabEntrySchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { w as ActorInspectorConfig, x as ActorInspectorConfigSchema, Z as BUILTIN_INSPECTOR_TAB_IDS, $ as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { a6 as CustomInspectorTabEntrySchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema } from '../config-rGWrumlO.cjs';
|
|
3
|
+
export { w as ActorInspectorConfig, x as ActorInspectorConfigSchema, Z as BUILTIN_INSPECTOR_TAB_IDS, $ as BuiltinInspectorTabIdSchema } from '../config-rGWrumlO.cjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-BxOimoGX.cjs';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a6 as CustomInspectorTabEntrySchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { w as ActorInspectorConfig, x as ActorInspectorConfigSchema, Z as BUILTIN_INSPECTOR_TAB_IDS, $ as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { a6 as CustomInspectorTabEntrySchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema } from '../config-CZcjyT5B.js';
|
|
3
|
+
export { w as ActorInspectorConfig, x as ActorInspectorConfigSchema, Z as BUILTIN_INSPECTOR_TAB_IDS, $ as BuiltinInspectorTabIdSchema } from '../config-CZcjyT5B.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-BxOimoGX.js';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|