@rivetkit/rivetkit-napi 0.0.0-feat-dylib-actor-plugin.5d959bc → 0.0.0-feat-dylib-actor-plugin.c44621f
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/index.d.ts +11 -0
- package/package.json +10 -10
- package/scripts/build.mjs +8 -0
package/index.d.ts
CHANGED
|
@@ -193,6 +193,16 @@ export interface JsServeConfig {
|
|
|
193
193
|
serverlessValidateEndpoint: boolean
|
|
194
194
|
serverlessMaxStartPayloadBytes: number
|
|
195
195
|
}
|
|
196
|
+
export interface JsListenerConfig {
|
|
197
|
+
/** Host to bind. Defaults to `0.0.0.0` when not provided. */
|
|
198
|
+
host?: string
|
|
199
|
+
port: number
|
|
200
|
+
/**
|
|
201
|
+
* Optional static file root mounted as a fallback below the framework
|
|
202
|
+
* routes.
|
|
203
|
+
*/
|
|
204
|
+
publicDir?: string
|
|
205
|
+
}
|
|
196
206
|
export interface JsServerlessRequest {
|
|
197
207
|
method: string
|
|
198
208
|
url: string
|
|
@@ -357,6 +367,7 @@ export declare class CoreRegistry {
|
|
|
357
367
|
health(): Promise<JsRegistryRouteResponse>
|
|
358
368
|
metadata(): JsRegistryRouteResponse
|
|
359
369
|
metrics(): JsRegistryRouteResponse
|
|
370
|
+
serveListener(listener: JsListenerConfig, config: JsServeConfig): Promise<void>
|
|
360
371
|
handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
|
|
361
372
|
}
|
|
362
373
|
export declare class Schedule {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "0.0.0-feat-dylib-actor-plugin.
|
|
3
|
+
"version": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
4
4
|
"description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"build": "node scripts/build.mjs",
|
|
40
40
|
"build:release": "node scripts/build.mjs --release",
|
|
41
41
|
"build:force": "node scripts/build.mjs --force",
|
|
42
|
-
"build:force:release": "node scripts/build.mjs --force --release"
|
|
42
|
+
"build:force:release": "node scripts/build.mjs --force --release",
|
|
43
|
+
"build:embed": "node scripts/build.mjs"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"@napi-rs/cli": "^2.18.4",
|
|
46
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-feat-dylib-actor-plugin.
|
|
47
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-feat-dylib-actor-plugin.c44621f"
|
|
47
48
|
},
|
|
48
49
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-feat-dylib-actor-plugin.
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-feat-dylib-actor-plugin.
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-feat-dylib-actor-plugin.
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-feat-dylib-actor-plugin.
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-feat-dylib-actor-plugin.
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-feat-dylib-actor-plugin.
|
|
55
|
-
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-feat-dylib-actor-plugin.5d959bc"
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
51
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-feat-dylib-actor-plugin.c44621f",
|
|
55
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-feat-dylib-actor-plugin.c44621f"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/scripts/build.mjs
CHANGED
|
@@ -16,6 +16,14 @@ if (process.env.SKIP_NAPI_BUILD === "1") {
|
|
|
16
16
|
process.exit(0);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// The per-actor inspector UI (frontend/dist/inspector-ui, embedded into
|
|
20
|
+
// rivetkit-core by its build.rs) must be built before this napi build runs.
|
|
21
|
+
// It is NOT built here: rivetkit-core's embed needs rivetkit/inspector-tab,
|
|
22
|
+
// which is downstream of this package in the build graph, so building it from
|
|
23
|
+
// the napi build would invert the dependency order. CI builds it via
|
|
24
|
+
// `turbo build:inspector-ui` in docker/build/*.Dockerfile before `napi build`;
|
|
25
|
+
// for local builds run `pnpm -F @rivetkit/engine-frontend build:inspector-ui`
|
|
26
|
+
// (or `turbo build:inspector-ui`) first.
|
|
19
27
|
const cmd = ["build", "--platform", ...extraFlags];
|
|
20
28
|
console.log(`[rivetkit-napi/build] running: napi ${cmd.join(" ")}`);
|
|
21
29
|
execFileSync("napi", cmd, { stdio: "inherit" });
|