rivetkit 2.3.8 → 2.3.10
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 +6 -34
- package/dist/browser/client.js +14 -33
- 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 +6 -34
- package/dist/tsup/agent-os/index.d.ts +6 -34
- package/dist/tsup/agent-os/index.js +1 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-YFXQ7DBH.js → chunk-6UHZLL6S.js} +3 -3
- package/dist/tsup/{chunk-BL6ERZQO.js → chunk-DPM73GAL.js} +18 -39
- package/dist/tsup/chunk-DPM73GAL.js.map +1 -0
- package/dist/tsup/{chunk-MY6BRV3S.js → chunk-E6IEX6AP.js} +3 -3
- package/dist/tsup/{chunk-IJMVVULS.cjs → chunk-G6XA2OSW.cjs} +4 -4
- package/dist/tsup/{chunk-IJMVVULS.cjs.map → chunk-G6XA2OSW.cjs.map} +1 -1
- package/dist/tsup/{chunk-F6GCLL5Z.cjs → chunk-INXPYXN6.cjs} +7 -7
- package/dist/tsup/{chunk-F6GCLL5Z.cjs.map → chunk-INXPYXN6.cjs.map} +1 -1
- package/dist/tsup/{chunk-5MJPN3QU.cjs → chunk-LCWHS6K7.cjs} +152 -173
- package/dist/tsup/chunk-LCWHS6K7.cjs.map +1 -0
- package/dist/tsup/{chunk-7TNEDX3Y.cjs → chunk-PCJSDS7N.cjs} +3 -3
- package/dist/tsup/{chunk-7TNEDX3Y.cjs.map → chunk-PCJSDS7N.cjs.map} +1 -1
- package/dist/tsup/{chunk-V7PJYBA5.js → chunk-Q5H37KNQ.js} +2 -2
- package/dist/tsup/{chunk-TMTJPSHQ.cjs → chunk-U2A3Y7OK.cjs} +9 -9
- package/dist/tsup/{chunk-TMTJPSHQ.cjs.map → chunk-U2A3Y7OK.cjs.map} +1 -1
- package/dist/tsup/{chunk-ZKDZW5DQ.js → chunk-X7XY6NCU.js} +3 -6
- package/dist/tsup/chunk-X7XY6NCU.js.map +1 -0
- package/dist/tsup/{chunk-HWBISPRP.js → chunk-XSPAARQ5.js} +2 -2
- package/dist/tsup/{chunk-NUMGL52R.cjs → chunk-Z2ESFE5Z.cjs} +3 -6
- package/dist/tsup/chunk-Z2ESFE5Z.cjs.map +1 -0
- 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-CUymbyM6.d.ts → config-BRpVbJCD.d.ts} +7 -35
- package/dist/tsup/{config-CpB-e4I9.d.cts → config-BobvQpex.d.cts} +7 -35
- package/dist/tsup/{context-YBUBTwTS.d.ts → context-Cj-DFyiy.d.ts} +1 -1
- package/dist/tsup/{context-c-6G4mjk.d.cts → context-YEBNJrws.d.cts} +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 +124 -449
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +3 -3
- package/dist/tsup/mod.d.ts +3 -3
- package/dist/tsup/mod.js +63 -388
- package/dist/tsup/mod.js.map +1 -1
- 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/actor-handle.ts +1 -3
- package/src/client/raw-utils.ts +2 -11
- package/src/common/actor-router-consts.ts +0 -1
- package/src/common/encoding.ts +1 -4
- package/src/engine-client/actor-http-client.ts +22 -6
- package/src/registry/index.ts +14 -159
- package/src/registry/napi-runtime.ts +0 -74
- package/src/registry/native.ts +63 -111
- package/src/registry/runtime.ts +0 -35
- package/src/registry/wasm-runtime.ts +0 -11
- package/dist/tsup/chunk-5MJPN3QU.cjs.map +0 -1
- package/dist/tsup/chunk-BL6ERZQO.js.map +0 -1
- package/dist/tsup/chunk-NUMGL52R.cjs.map +0 -1
- package/dist/tsup/chunk-ZKDZW5DQ.js.map +0 -1
- package/src/common/fetch-like.ts +0 -49
- package/src/registry/native-http.ts +0 -208
- /package/dist/tsup/{chunk-YFXQ7DBH.js.map → chunk-6UHZLL6S.js.map} +0 -0
- /package/dist/tsup/{chunk-MY6BRV3S.js.map → chunk-E6IEX6AP.js.map} +0 -0
- /package/dist/tsup/{chunk-V7PJYBA5.js.map → chunk-Q5H37KNQ.js.map} +0 -0
- /package/dist/tsup/{chunk-HWBISPRP.js.map → chunk-XSPAARQ5.js.map} +0 -0
|
@@ -594,12 +594,6 @@ interface RuntimeHttpRequest {
|
|
|
594
594
|
headers?: Record<string, string>;
|
|
595
595
|
body?: RuntimeBytes;
|
|
596
596
|
}
|
|
597
|
-
interface RuntimeHttpResponseBodyStream {
|
|
598
|
-
cancelled(): Promise<void>;
|
|
599
|
-
write(chunk: Uint8Array): Promise<void>;
|
|
600
|
-
end(): Promise<void>;
|
|
601
|
-
error(message: string): Promise<void>;
|
|
602
|
-
}
|
|
603
597
|
interface RuntimeStateDeltaPayload {
|
|
604
598
|
state?: RuntimeBytes;
|
|
605
599
|
connHibernation: Array<{
|
|
@@ -822,7 +816,6 @@ interface RuntimeListenerConfig {
|
|
|
822
816
|
port: number;
|
|
823
817
|
host?: string;
|
|
824
818
|
publicDir?: string;
|
|
825
|
-
application?: RuntimeApplicationFetch;
|
|
826
819
|
}
|
|
827
820
|
interface RuntimeServerlessRequest {
|
|
828
821
|
method: string;
|
|
@@ -830,19 +823,6 @@ interface RuntimeServerlessRequest {
|
|
|
830
823
|
headers: Record<string, string>;
|
|
831
824
|
body: RuntimeBytes;
|
|
832
825
|
}
|
|
833
|
-
interface RuntimeApplicationRequest extends RuntimeServerlessRequest {
|
|
834
|
-
cancelToken?: CancellationTokenHandle;
|
|
835
|
-
}
|
|
836
|
-
interface RuntimeApplicationResponse {
|
|
837
|
-
status: number;
|
|
838
|
-
headers: Record<string, string>;
|
|
839
|
-
body?: RuntimeBytes;
|
|
840
|
-
stream?: boolean;
|
|
841
|
-
}
|
|
842
|
-
type RuntimeApplicationFetch = (request: RuntimeApplicationRequest, responseBodyStream?: RuntimeHttpResponseBodyStream) => Promise<RuntimeApplicationResponse>;
|
|
843
|
-
interface RuntimeApplicationListenerConfig extends RuntimeListenerConfig {
|
|
844
|
-
application: RuntimeApplicationFetch;
|
|
845
|
-
}
|
|
846
826
|
interface RuntimeServerlessResponseHead {
|
|
847
827
|
status: number;
|
|
848
828
|
headers: Record<string, string>;
|
|
@@ -885,7 +865,6 @@ interface CoreRuntime {
|
|
|
885
865
|
registryActorStopThresholdMs?(registry: RegistryHandle): Promise<number | undefined>;
|
|
886
866
|
handleServerlessRequest(registry: RegistryHandle, req: RuntimeServerlessRequest, onStreamEvent: RuntimeServerlessStreamCallback, cancelToken: CancellationTokenHandle, config: RuntimeServeConfig): Promise<RuntimeServerlessResponseHead>;
|
|
887
867
|
serveListener(registry: RegistryHandle, listener: RuntimeListenerConfig, config: RuntimeServeConfig): Promise<void>;
|
|
888
|
-
serveApplicationListener(registry: RegistryHandle, listener: RuntimeApplicationListenerConfig, config: RuntimeServeConfig): Promise<void>;
|
|
889
868
|
registryHealth?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
890
869
|
registryMetadata?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
891
870
|
registryMetrics?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
@@ -996,15 +975,6 @@ type FetchHandler = (request: Request, ...args: any) => Response | Promise<Respo
|
|
|
996
975
|
interface ServerlessHandler {
|
|
997
976
|
fetch: FetchHandler;
|
|
998
977
|
}
|
|
999
|
-
interface RegistryApplication {
|
|
1000
|
-
fetch: FetchHandler;
|
|
1001
|
-
}
|
|
1002
|
-
interface RegistryListenOptions {
|
|
1003
|
-
port?: number;
|
|
1004
|
-
host?: string;
|
|
1005
|
-
publicDir?: string;
|
|
1006
|
-
application?: RegistryApplication;
|
|
1007
|
-
}
|
|
1008
978
|
interface RegistryRoutes {
|
|
1009
979
|
health(): Promise<Response>;
|
|
1010
980
|
metadata(): Promise<Response>;
|
|
@@ -1054,16 +1024,18 @@ declare class Registry<A extends RegistryActors> {
|
|
|
1054
1024
|
* @param opts.host Address to bind. Defaults to `0.0.0.0`.
|
|
1055
1025
|
* @param opts.publicDir If set, serves static files from this directory
|
|
1056
1026
|
* as a fallback below the framework routes.
|
|
1057
|
-
* @param opts.application If set, handles requests that do not match a
|
|
1058
|
-
* framework route.
|
|
1059
1027
|
*
|
|
1060
1028
|
* @example
|
|
1061
1029
|
* ```ts
|
|
1062
1030
|
* await registry.listen();
|
|
1063
|
-
* await registry.listen({
|
|
1031
|
+
* await registry.listen({ port: 8080, publicDir: "./public" });
|
|
1064
1032
|
* ```
|
|
1065
1033
|
*/
|
|
1066
|
-
listen(opts?:
|
|
1034
|
+
listen(opts?: {
|
|
1035
|
+
port?: number;
|
|
1036
|
+
host?: string;
|
|
1037
|
+
publicDir?: string;
|
|
1038
|
+
}): Promise<void>;
|
|
1067
1039
|
/**
|
|
1068
1040
|
* Gracefully drains all live registries.
|
|
1069
1041
|
*
|
|
@@ -594,12 +594,6 @@ interface RuntimeHttpRequest {
|
|
|
594
594
|
headers?: Record<string, string>;
|
|
595
595
|
body?: RuntimeBytes;
|
|
596
596
|
}
|
|
597
|
-
interface RuntimeHttpResponseBodyStream {
|
|
598
|
-
cancelled(): Promise<void>;
|
|
599
|
-
write(chunk: Uint8Array): Promise<void>;
|
|
600
|
-
end(): Promise<void>;
|
|
601
|
-
error(message: string): Promise<void>;
|
|
602
|
-
}
|
|
603
597
|
interface RuntimeStateDeltaPayload {
|
|
604
598
|
state?: RuntimeBytes;
|
|
605
599
|
connHibernation: Array<{
|
|
@@ -822,7 +816,6 @@ interface RuntimeListenerConfig {
|
|
|
822
816
|
port: number;
|
|
823
817
|
host?: string;
|
|
824
818
|
publicDir?: string;
|
|
825
|
-
application?: RuntimeApplicationFetch;
|
|
826
819
|
}
|
|
827
820
|
interface RuntimeServerlessRequest {
|
|
828
821
|
method: string;
|
|
@@ -830,19 +823,6 @@ interface RuntimeServerlessRequest {
|
|
|
830
823
|
headers: Record<string, string>;
|
|
831
824
|
body: RuntimeBytes;
|
|
832
825
|
}
|
|
833
|
-
interface RuntimeApplicationRequest extends RuntimeServerlessRequest {
|
|
834
|
-
cancelToken?: CancellationTokenHandle;
|
|
835
|
-
}
|
|
836
|
-
interface RuntimeApplicationResponse {
|
|
837
|
-
status: number;
|
|
838
|
-
headers: Record<string, string>;
|
|
839
|
-
body?: RuntimeBytes;
|
|
840
|
-
stream?: boolean;
|
|
841
|
-
}
|
|
842
|
-
type RuntimeApplicationFetch = (request: RuntimeApplicationRequest, responseBodyStream?: RuntimeHttpResponseBodyStream) => Promise<RuntimeApplicationResponse>;
|
|
843
|
-
interface RuntimeApplicationListenerConfig extends RuntimeListenerConfig {
|
|
844
|
-
application: RuntimeApplicationFetch;
|
|
845
|
-
}
|
|
846
826
|
interface RuntimeServerlessResponseHead {
|
|
847
827
|
status: number;
|
|
848
828
|
headers: Record<string, string>;
|
|
@@ -885,7 +865,6 @@ interface CoreRuntime {
|
|
|
885
865
|
registryActorStopThresholdMs?(registry: RegistryHandle): Promise<number | undefined>;
|
|
886
866
|
handleServerlessRequest(registry: RegistryHandle, req: RuntimeServerlessRequest, onStreamEvent: RuntimeServerlessStreamCallback, cancelToken: CancellationTokenHandle, config: RuntimeServeConfig): Promise<RuntimeServerlessResponseHead>;
|
|
887
867
|
serveListener(registry: RegistryHandle, listener: RuntimeListenerConfig, config: RuntimeServeConfig): Promise<void>;
|
|
888
|
-
serveApplicationListener(registry: RegistryHandle, listener: RuntimeApplicationListenerConfig, config: RuntimeServeConfig): Promise<void>;
|
|
889
868
|
registryHealth?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
890
869
|
registryMetadata?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
891
870
|
registryMetrics?(registry: RegistryHandle): Promise<RuntimeRegistryRouteResponse>;
|
|
@@ -996,15 +975,6 @@ type FetchHandler = (request: Request, ...args: any) => Response | Promise<Respo
|
|
|
996
975
|
interface ServerlessHandler {
|
|
997
976
|
fetch: FetchHandler;
|
|
998
977
|
}
|
|
999
|
-
interface RegistryApplication {
|
|
1000
|
-
fetch: FetchHandler;
|
|
1001
|
-
}
|
|
1002
|
-
interface RegistryListenOptions {
|
|
1003
|
-
port?: number;
|
|
1004
|
-
host?: string;
|
|
1005
|
-
publicDir?: string;
|
|
1006
|
-
application?: RegistryApplication;
|
|
1007
|
-
}
|
|
1008
978
|
interface RegistryRoutes {
|
|
1009
979
|
health(): Promise<Response>;
|
|
1010
980
|
metadata(): Promise<Response>;
|
|
@@ -1054,16 +1024,18 @@ declare class Registry<A extends RegistryActors> {
|
|
|
1054
1024
|
* @param opts.host Address to bind. Defaults to `0.0.0.0`.
|
|
1055
1025
|
* @param opts.publicDir If set, serves static files from this directory
|
|
1056
1026
|
* as a fallback below the framework routes.
|
|
1057
|
-
* @param opts.application If set, handles requests that do not match a
|
|
1058
|
-
* framework route.
|
|
1059
1027
|
*
|
|
1060
1028
|
* @example
|
|
1061
1029
|
* ```ts
|
|
1062
1030
|
* await registry.listen();
|
|
1063
|
-
* await registry.listen({
|
|
1031
|
+
* await registry.listen({ port: 8080, publicDir: "./public" });
|
|
1064
1032
|
* ```
|
|
1065
1033
|
*/
|
|
1066
|
-
listen(opts?:
|
|
1034
|
+
listen(opts?: {
|
|
1035
|
+
port?: number;
|
|
1036
|
+
host?: string;
|
|
1037
|
+
publicDir?: string;
|
|
1038
|
+
}): Promise<void>;
|
|
1067
1039
|
/**
|
|
1068
1040
|
* Gracefully drains all live registries.
|
|
1069
1041
|
*
|
|
@@ -417,7 +417,7 @@ function isRivetErrorCode(error, group, code) {
|
|
|
417
417
|
// package.json
|
|
418
418
|
var package_default = {
|
|
419
419
|
name: "rivetkit",
|
|
420
|
-
version: "2.3.
|
|
420
|
+
version: "2.3.10",
|
|
421
421
|
description: "Lightweight libraries for building stateful actors on edge platforms",
|
|
422
422
|
license: "Apache-2.0",
|
|
423
423
|
keywords: [
|