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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
importWebSocket,
|
|
10
10
|
logger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7PVR3YAW.js";
|
|
12
12
|
import {
|
|
13
13
|
EncodingSchema,
|
|
14
14
|
assertUnreachable,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
serializeWithEncoding,
|
|
36
36
|
stringifyError,
|
|
37
37
|
uint8ArrayToBase64
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6QL27Q5R.js";
|
|
39
39
|
import {
|
|
40
40
|
INTERNAL_ERROR_CODE,
|
|
41
41
|
RivetError,
|
|
@@ -2713,7 +2713,8 @@ async function resolveGatewayTarget(driver, target) {
|
|
|
2713
2713
|
name: target.getOrCreateForKey.name,
|
|
2714
2714
|
key: target.getOrCreateForKey.key,
|
|
2715
2715
|
input: target.getOrCreateForKey.input,
|
|
2716
|
-
region: target.getOrCreateForKey.region
|
|
2716
|
+
region: target.getOrCreateForKey.region,
|
|
2717
|
+
poolName: target.getOrCreateForKey.poolName
|
|
2717
2718
|
});
|
|
2718
2719
|
return output.actorId;
|
|
2719
2720
|
}
|
|
@@ -2722,7 +2723,8 @@ async function resolveGatewayTarget(driver, target) {
|
|
|
2722
2723
|
name: target.create.name,
|
|
2723
2724
|
key: target.create.key,
|
|
2724
2725
|
input: target.create.input,
|
|
2725
|
-
region: target.create.region
|
|
2726
|
+
region: target.create.region,
|
|
2727
|
+
poolName: target.create.poolName
|
|
2726
2728
|
});
|
|
2727
2729
|
return output.actorId;
|
|
2728
2730
|
}
|
|
@@ -3430,7 +3432,8 @@ var ClientRaw = class {
|
|
|
3430
3432
|
name,
|
|
3431
3433
|
key: keyArray,
|
|
3432
3434
|
input: opts == null ? void 0 : opts.createWithInput,
|
|
3433
|
-
region: opts == null ? void 0 : opts.createInRegion
|
|
3435
|
+
region: opts == null ? void 0 : opts.createInRegion,
|
|
3436
|
+
poolName: opts == null ? void 0 : opts.poolName
|
|
3434
3437
|
}
|
|
3435
3438
|
};
|
|
3436
3439
|
const handle = this.#createHandle(
|
|
@@ -5614,7 +5617,14 @@ var RemoteEngineControlClient = class {
|
|
|
5614
5617
|
}
|
|
5615
5618
|
async getOrCreateWithKey(input) {
|
|
5616
5619
|
await this.#metadataPromise;
|
|
5617
|
-
const {
|
|
5620
|
+
const {
|
|
5621
|
+
name,
|
|
5622
|
+
key,
|
|
5623
|
+
input: actorInput,
|
|
5624
|
+
region,
|
|
5625
|
+
crashPolicy,
|
|
5626
|
+
poolName
|
|
5627
|
+
} = input;
|
|
5618
5628
|
logger2().info({
|
|
5619
5629
|
msg: "getOrCreateWithKey: getting or creating actor via engine api",
|
|
5620
5630
|
name,
|
|
@@ -5624,7 +5634,7 @@ var RemoteEngineControlClient = class {
|
|
|
5624
5634
|
datacenter: region,
|
|
5625
5635
|
name,
|
|
5626
5636
|
key: serializeActorKey(key),
|
|
5627
|
-
runner_name_selector: this.#config.poolName,
|
|
5637
|
+
runner_name_selector: poolName ?? this.#config.poolName,
|
|
5628
5638
|
input: actorInput ? uint8ArrayToBase64(
|
|
5629
5639
|
encodeCborCompat(actorInput)
|
|
5630
5640
|
) : void 0,
|
|
@@ -5644,14 +5654,15 @@ var RemoteEngineControlClient = class {
|
|
|
5644
5654
|
key,
|
|
5645
5655
|
input,
|
|
5646
5656
|
region,
|
|
5647
|
-
crashPolicy
|
|
5657
|
+
crashPolicy,
|
|
5658
|
+
poolName
|
|
5648
5659
|
}) {
|
|
5649
5660
|
await this.#metadataPromise;
|
|
5650
5661
|
logger2().info({ msg: "creating actor via engine api", name, key });
|
|
5651
5662
|
const result = await createActor(this.#config, {
|
|
5652
5663
|
datacenter: region,
|
|
5653
5664
|
name,
|
|
5654
|
-
runner_name_selector: this.#config.poolName,
|
|
5665
|
+
runner_name_selector: poolName ?? this.#config.poolName,
|
|
5655
5666
|
key: serializeActorKey(key),
|
|
5656
5667
|
input: input ? uint8ArrayToBase64(encodeCborCompat(input)) : void 0,
|
|
5657
5668
|
crash_policy: crashPolicy ?? "sleep"
|
|
@@ -5788,7 +5799,7 @@ var RemoteEngineControlClient = class {
|
|
|
5788
5799
|
path,
|
|
5789
5800
|
this.#config.maxInputSize,
|
|
5790
5801
|
void 0,
|
|
5791
|
-
"getOrCreateForKey" in target ? this.#config.poolName : void 0,
|
|
5802
|
+
"getOrCreateForKey" in target ? target.getOrCreateForKey.poolName ?? this.#config.poolName : void 0,
|
|
5792
5803
|
options
|
|
5793
5804
|
);
|
|
5794
5805
|
}
|
|
@@ -5855,4 +5866,4 @@ export {
|
|
|
5855
5866
|
updateRunnerConfig,
|
|
5856
5867
|
RemoteEngineControlClient
|
|
5857
5868
|
};
|
|
5858
|
-
//# sourceMappingURL=chunk-
|
|
5869
|
+
//# sourceMappingURL=chunk-JZ4SICLQ.js.map
|