@rivetkit/rivetkit-napi 0.0.0-codex-rivetkit-cli-preview.446d935 → 0.0.0-codex-docsrs-rivetkit-build.b91ad8d
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 -9
- package/scripts/build.mjs +8 -0
package/index.d.ts
CHANGED
|
@@ -187,6 +187,16 @@ export interface JsServeConfig {
|
|
|
187
187
|
serverlessValidateEndpoint: boolean
|
|
188
188
|
serverlessMaxStartPayloadBytes: number
|
|
189
189
|
}
|
|
190
|
+
export interface JsListenerConfig {
|
|
191
|
+
/** Host to bind. Defaults to `0.0.0.0` when not provided. */
|
|
192
|
+
host?: string
|
|
193
|
+
port: number
|
|
194
|
+
/**
|
|
195
|
+
* Optional static file root mounted as a fallback below the framework
|
|
196
|
+
* routes.
|
|
197
|
+
*/
|
|
198
|
+
publicDir?: string
|
|
199
|
+
}
|
|
190
200
|
export interface JsServerlessRequest {
|
|
191
201
|
method: string
|
|
192
202
|
url: string
|
|
@@ -344,6 +354,7 @@ export declare class CoreRegistry {
|
|
|
344
354
|
health(): Promise<JsRegistryRouteResponse>
|
|
345
355
|
metadata(): JsRegistryRouteResponse
|
|
346
356
|
metrics(): JsRegistryRouteResponse
|
|
357
|
+
serveListener(listener: JsListenerConfig, config: JsServeConfig): Promise<void>
|
|
347
358
|
handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
|
|
348
359
|
}
|
|
349
360
|
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-codex-rivetkit-
|
|
3
|
+
"version": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
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,18 +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-codex-rivetkit-
|
|
47
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d"
|
|
47
48
|
},
|
|
48
49
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-codex-rivetkit-
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-codex-rivetkit-
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-codex-rivetkit-
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-codex-rivetkit-
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-codex-rivetkit-
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-codex-rivetkit-
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
51
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d",
|
|
55
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-codex-docsrs-rivetkit-build.b91ad8d"
|
|
55
56
|
}
|
|
56
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" });
|