@rivetkit/rivetkit-napi 0.0.0-sqlite-uds.37f9e48 → 0.0.0-sqlite-profiling-compat.87d61c0
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 +20 -9
- package/package.json +13 -8
package/index.d.ts
CHANGED
|
@@ -35,10 +35,6 @@ export interface JsInspectorSnapshot {
|
|
|
35
35
|
queueSize: number
|
|
36
36
|
connectedClients: number
|
|
37
37
|
}
|
|
38
|
-
export interface JsActorUdsEndpointInfo {
|
|
39
|
-
path: string
|
|
40
|
-
token: string
|
|
41
|
-
}
|
|
42
38
|
export interface JsHttpResponse {
|
|
43
39
|
status?: number
|
|
44
40
|
headers?: Record<string, string>
|
|
@@ -71,12 +67,29 @@ export interface JsInspectorTabEntry {
|
|
|
71
67
|
/** Set to true for HideBuiltin entries. */
|
|
72
68
|
hidden?: boolean
|
|
73
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Experimental SQLite profiling configuration. This entire configuration
|
|
72
|
+
* surface is subject to change without notice.
|
|
73
|
+
*/
|
|
74
|
+
export interface JsSqliteProfilingConfig {
|
|
75
|
+
enabled?: boolean
|
|
76
|
+
maxTrackedStatementFingerprints?: number
|
|
77
|
+
maxTrackedTransactionFingerprints?: number
|
|
78
|
+
maxPrometheusSeries?: number
|
|
79
|
+
maxStatementsPerTransactionTrace?: number
|
|
80
|
+
maxGetPagesRequestsPerTrace?: number
|
|
81
|
+
maxTransactionNameBytes?: number
|
|
82
|
+
slowOperationThresholdMs?: number
|
|
83
|
+
baselineSampleRate?: number
|
|
84
|
+
maxDiagnosticEventsPerMinute?: number
|
|
85
|
+
diagnosticEventQueueCapacity?: number
|
|
86
|
+
}
|
|
74
87
|
export interface JsActorConfig {
|
|
75
88
|
name?: string
|
|
76
89
|
icon?: string
|
|
77
90
|
hasDatabase?: boolean
|
|
78
91
|
remoteSqlite?: boolean
|
|
79
|
-
|
|
92
|
+
sqliteProfiling?: JsSqliteProfilingConfig
|
|
80
93
|
hasState?: boolean
|
|
81
94
|
canHibernateWebsocket?: boolean
|
|
82
95
|
stateSaveIntervalMs?: number
|
|
@@ -240,7 +253,6 @@ export declare class ActorContext {
|
|
|
240
253
|
endOnStateChange(): void
|
|
241
254
|
kv(): Kv
|
|
242
255
|
sql(): JsNativeDatabase
|
|
243
|
-
provisionActorUds(): Promise<JsActorUdsEndpointInfo>
|
|
244
256
|
schedule(): Schedule
|
|
245
257
|
queue(): Queue
|
|
246
258
|
setAlarm(timestampMs?: number | undefined | null): void
|
|
@@ -309,8 +321,8 @@ export declare class JsNativeDatabase {
|
|
|
309
321
|
metrics(): JsSqliteVfsMetrics | null
|
|
310
322
|
run(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<ExecuteResult>
|
|
311
323
|
query(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<QueryResult>
|
|
312
|
-
execute(sql: string, params?: Array<JsBindParam> | undefined | null
|
|
313
|
-
exec(sql: string
|
|
324
|
+
execute(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<NativeExecuteResult>
|
|
325
|
+
exec(sql: string): Promise<QueryResult>
|
|
314
326
|
close(): Promise<void>
|
|
315
327
|
}
|
|
316
328
|
export declare class Kv {
|
|
@@ -334,7 +346,6 @@ export declare class Queue {
|
|
|
334
346
|
tryNext(options?: JsQueueTryNextOptions | undefined | null): QueueMessage | null
|
|
335
347
|
tryNextBatch(options?: JsQueueTryNextBatchOptions | undefined | null): Array<QueueMessage>
|
|
336
348
|
maxSize(): number
|
|
337
|
-
reset(): Promise<void>
|
|
338
349
|
inspectMessages(): Promise<Array<JsQueueInspectMessage>>
|
|
339
350
|
}
|
|
340
351
|
export declare class QueueMessage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "0.0.0-sqlite-
|
|
3
|
+
"version": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
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",
|
|
@@ -44,14 +44,19 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@napi-rs/cli": "^2.18.4",
|
|
47
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-sqlite-
|
|
47
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-sqlite-profiling-compat.87d61c0"
|
|
48
|
+
},
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/rivet-dev/actors.git",
|
|
52
|
+
"directory": "rivetkit-typescript/packages/rivetkit-napi"
|
|
48
53
|
},
|
|
49
54
|
"optionalDependencies": {
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-sqlite-
|
|
51
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-sqlite-
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-sqlite-
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-sqlite-
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-sqlite-
|
|
55
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-sqlite-
|
|
55
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
56
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
57
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
58
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
59
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-sqlite-profiling-compat.87d61c0",
|
|
60
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-sqlite-profiling-compat.87d61c0"
|
|
56
61
|
}
|
|
57
62
|
}
|