@rivetkit/rivetkit-napi 0.0.0-skip-ready-wait-flatten-client-options.1cae221 → 2.3.0-rc.11

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.
Files changed (2) hide show
  1. package/index.d.ts +10 -5
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -174,9 +174,10 @@ export interface JsServerlessResponseHead {
174
174
  status: number
175
175
  headers: Record<string, string>
176
176
  }
177
- export interface JsRegistryDiagnostics {
178
- mode: string
179
- envoyActiveActorCount?: number
177
+ export interface JsRegistryRouteResponse {
178
+ status: number
179
+ headers: Record<string, string>
180
+ body: Buffer
180
181
  }
181
182
  export interface JsServerlessStreamError {
182
183
  group: string
@@ -240,6 +241,7 @@ export declare class ActorContext {
240
241
  disconnectConns(predicate: (...args: any[]) => any): Promise<void>
241
242
  broadcast(name: string, args: Buffer): void
242
243
  waitUntil(promise: Promise<any>): void
244
+ waitForTrackedShutdownWork(): Promise<boolean>
243
245
  registerTask(promise: Promise<any>): void
244
246
  runtimeState(): object
245
247
  clearRuntimeState(): void
@@ -287,7 +289,7 @@ export declare class Queue {
287
289
  next(options?: JsQueueNextOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<QueueMessage | null>
288
290
  nextBatch(options?: JsQueueNextBatchOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<Array<QueueMessage>>
289
291
  waitForNames(names: Array<string>, options?: JsQueueWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<QueueMessage>
290
- waitForNamesAvailable(names: Array<string>, options?: JsQueueWaitOptions | undefined | null): Promise<void>
292
+ waitForNamesAvailable(names: Array<string>, options?: JsQueueWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<void>
291
293
  enqueueAndWait(name: string, body: Buffer, options?: JsQueueEnqueueAndWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<Buffer | null>
292
294
  tryNext(options?: JsQueueTryNextOptions | undefined | null): QueueMessage | null
293
295
  tryNextBatch(options?: JsQueueTryNextBatchOptions | undefined | null): Array<QueueMessage>
@@ -314,7 +316,10 @@ export declare class CoreRegistry {
314
316
  * separately to avoid re-entrancy.
315
317
  */
316
318
  shutdown(): Promise<void>
317
- diagnostics(): Promise<JsRegistryDiagnostics>
319
+ actorStopThresholdMs(): Promise<number | null>
320
+ health(): Promise<JsRegistryRouteResponse>
321
+ metadata(): JsRegistryRouteResponse
322
+ metrics(): JsRegistryRouteResponse
318
323
  handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
319
324
  }
320
325
  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-skip-ready-wait-flatten-client-options.1cae221",
3
+ "version": "2.3.0-rc.11",
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",
@@ -43,15 +43,15 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@napi-rs/cli": "^2.18.4",
46
- "@rivetkit/engine-envoy-protocol": "0.0.0-skip-ready-wait-flatten-client-options.1cae221"
46
+ "@rivetkit/engine-envoy-protocol": "2.3.0-rc.11"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
50
- "@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
51
- "@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
52
- "@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
53
- "@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
54
- "@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
55
- "@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-skip-ready-wait-flatten-client-options.1cae221"
49
+ "@rivetkit/rivetkit-napi-darwin-arm64": "2.3.0-rc.11",
50
+ "@rivetkit/rivetkit-napi-darwin-x64": "2.3.0-rc.11",
51
+ "@rivetkit/rivetkit-napi-linux-arm64-gnu": "2.3.0-rc.11",
52
+ "@rivetkit/rivetkit-napi-linux-arm64-musl": "2.3.0-rc.11",
53
+ "@rivetkit/rivetkit-napi-linux-x64-gnu": "2.3.0-rc.11",
54
+ "@rivetkit/rivetkit-napi-linux-x64-musl": "2.3.0-rc.11",
55
+ "@rivetkit/rivetkit-napi-win32-x64-msvc": "2.3.0-rc.11"
56
56
  }
57
57
  }