rivetkit 2.3.11-rc.3 → 2.3.11-rc.5
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-VAVQ4N74.js → chunk-2Y5DOOJU.js} +3 -3
- package/dist/tsup/{chunk-IVOQLFNA.cjs → chunk-3KU25OWA.cjs} +4 -4
- package/dist/tsup/{chunk-IVOQLFNA.cjs.map → chunk-3KU25OWA.cjs.map} +1 -1
- package/dist/tsup/{chunk-4JQYWBMT.js → chunk-6QL27Q5R.js} +2 -2
- package/dist/tsup/{chunk-4JQYWBMT.js.map → chunk-6QL27Q5R.js.map} +1 -1
- package/dist/tsup/{chunk-T34YWMEG.js → chunk-7PVR3YAW.js} +2 -2
- package/dist/tsup/{chunk-5MC4O5QQ.cjs → chunk-ABUZVZUU.cjs} +3 -3
- package/dist/tsup/{chunk-5MC4O5QQ.cjs.map → chunk-ABUZVZUU.cjs.map} +1 -1
- package/dist/tsup/{chunk-RVZYWLP2.cjs → chunk-E4TYUKOJ.cjs} +157 -146
- package/dist/tsup/chunk-E4TYUKOJ.cjs.map +1 -0
- package/dist/tsup/{chunk-QO6FXNYD.cjs → chunk-FT4UYLUJ.cjs} +2 -2
- package/dist/tsup/{chunk-QO6FXNYD.cjs.map → chunk-FT4UYLUJ.cjs.map} +1 -1
- package/dist/tsup/{chunk-2C7J6RYX.cjs → chunk-H452AOZ4.cjs} +9 -9
- package/dist/tsup/{chunk-2C7J6RYX.cjs.map → chunk-H452AOZ4.cjs.map} +1 -1
- package/dist/tsup/{chunk-RA7NE7YH.js → chunk-JQY6YJTM.js} +3 -3
- package/dist/tsup/{chunk-GN75YOYN.js → chunk-JZ4SICLQ.js} +22 -11
- package/dist/tsup/chunk-JZ4SICLQ.js.map +1 -0
- package/dist/tsup/{chunk-KJF2L4B6.cjs → chunk-NEDUXJE3.cjs} +7 -7
- package/dist/tsup/{chunk-KJF2L4B6.cjs.map → chunk-NEDUXJE3.cjs.map} +1 -1
- package/dist/tsup/{chunk-IBCX366R.js → chunk-Z23GEV4Y.js} +2 -2
- 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-GN75YOYN.js.map +0 -1
- package/dist/tsup/chunk-RVZYWLP2.cjs.map +0 -1
- /package/dist/tsup/{chunk-VAVQ4N74.js.map → chunk-2Y5DOOJU.js.map} +0 -0
- /package/dist/tsup/{chunk-T34YWMEG.js.map → chunk-7PVR3YAW.js.map} +0 -0
- /package/dist/tsup/{chunk-RA7NE7YH.js.map → chunk-JQY6YJTM.js.map} +0 -0
- /package/dist/tsup/{chunk-IBCX366R.js.map → chunk-Z23GEV4Y.js.map} +0 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkE4TYUKOJcjs = require('./chunk-E4TYUKOJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFT4UYLUJcjs = require('./chunk-FT4UYLUJ.cjs');
|
|
9
9
|
|
|
10
10
|
// src/devtools-loader/log.ts
|
|
11
11
|
function logger() {
|
|
12
|
-
return
|
|
12
|
+
return _chunkFT4UYLUJcjs.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 = _chunkE4TYUKOJcjs.ClientConfigSchema.parse(configInput);
|
|
39
|
+
const driver = new (0, _chunkE4TYUKOJcjs.RemoteEngineControlClient)(config);
|
|
40
40
|
if (config.devtools) {
|
|
41
41
|
injectDevtools(config);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return _chunkE4TYUKOJcjs.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-NEDUXJE3.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-NEDUXJE3.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-NEDUXJE3.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"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferToArrayBuffer,
|
|
3
3
|
toUint8Array
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6QL27Q5R.js";
|
|
5
5
|
|
|
6
6
|
// src/common/bare/transport/v1.ts
|
|
7
7
|
import * as bare from "@rivetkit/bare-ts";
|
|
@@ -566,4 +566,4 @@ export {
|
|
|
566
566
|
encodeWorkflowHistoryTransport,
|
|
567
567
|
decodeWorkflowHistoryTransport
|
|
568
568
|
};
|
|
569
|
-
//# sourceMappingURL=chunk-
|
|
569
|
+
//# sourceMappingURL=chunk-Z23GEV4Y.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 _chunkNEDUXJE3cjs = require('../chunk-NEDUXJE3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ var _chunkKJF2L4B6cjs = require('../chunk-KJF2L4B6.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkE4TYUKOJcjs = require('../chunk-E4TYUKOJ.cjs');
|
|
12
12
|
require('../chunk-MYWZCDML.cjs');
|
|
13
13
|
require('../chunk-UEULFXUI.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-ABUZVZUU.cjs');
|
|
15
|
+
require('../chunk-FT4UYLUJ.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 = _chunkE4TYUKOJcjs.ActorClientError; exports.ActorConnDisposed = _chunkE4TYUKOJcjs.ActorConnDisposed; exports.ActorConnRaw = _chunkE4TYUKOJcjs.ActorConnRaw; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorHandleRaw = _chunkE4TYUKOJcjs.ActorHandleRaw; exports.MalformedResponseMessage = _chunkE4TYUKOJcjs.MalformedResponseMessage; exports.ManagerError = _chunkE4TYUKOJcjs.ManagerError; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.createClient = _chunkNEDUXJE3cjs.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-2Y5DOOJU.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-JZ4SICLQ.js";
|
|
12
12
|
import "../chunk-JI6GZ2C2.js";
|
|
13
13
|
import "../chunk-7AFZMFPQ.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-7PVR3YAW.js";
|
|
15
|
+
import "../chunk-6QL27Q5R.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 _chunkFT4UYLUJcjs = require('../chunk-FT4UYLUJ.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 = _chunkFT4UYLUJcjs.LogLevelSchema; exports.configureBaseLogger = _chunkFT4UYLUJcjs.configureBaseLogger; exports.configureDefaultLogger = _chunkFT4UYLUJcjs.configureDefaultLogger; exports.getBaseLogger = _chunkFT4UYLUJcjs.getBaseLogger; exports.getIncludeTarget = _chunkFT4UYLUJcjs.getIncludeTarget; exports.getLogger = _chunkFT4UYLUJcjs.getLogger; exports.getPinoLevel = _chunkFT4UYLUJcjs.getPinoLevel; exports.makeDefaultLogger = _chunkFT4UYLUJcjs.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 _chunkABUZVZUUcjs = require('../chunk-ABUZVZUU.cjs');
|
|
4
|
+
require('../chunk-FT4UYLUJ.cjs');
|
|
5
5
|
require('../chunk-4FC7TVS6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.importWebSocket =
|
|
8
|
+
exports.importWebSocket = _chunkABUZVZUUcjs.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 _chunkFT4UYLUJcjs = require('../chunk-FT4UYLUJ.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
|
+
_chunkFT4UYLUJcjs.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 _chunkFT4UYLUJcjs = require('../chunk-FT4UYLUJ.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
|
+
_chunkFT4UYLUJcjs.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 _chunkH452AOZ4cjs = require('../chunk-H452AOZ4.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var _chunk3KU25OWAcjs = require('../chunk-3KU25OWA.cjs');
|
|
8
|
+
require('../chunk-FT4UYLUJ.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 = _chunkH452AOZ4cjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunk3KU25OWAcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunk3KU25OWAcjs.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-JQY6YJTM.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-Z23GEV4Y.js";
|
|
8
|
+
import "../chunk-6QL27Q5R.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';
|