openclaw/node-sqlite.d.mts
Peter Steinberger bf6f74b280
fix(runtime): gate node:sqlite on a NUL round-trip capability probe (#143312)
* fix(runtime): gate node:sqlite on a NUL round-trip capability probe

Validate the loaded SQLite library and TEXT, BLOB, and JSON round trips across startup, doctor, Gateway install, update preflight, and installers. Admit capable Node 24+ vendor builds with a support-policy note while retaining the package engines and Node 22 exclusion. Refs #140465 #140672.

* fix(runtime): expose capability diagnostics through doctor

Register the runtime check in the ordered Doctor contribution catalog. Keep shared audit types in a leaf module, include the bootstrap probe in duplicate scanning, and update native runtime and compiled-worker fixtures for the capability protocol.

* fix(update): preserve target Node version requirements

* fix(install): remove unused Node major probe state
2026-09-09 13:32:29 -07:00

16 lines
549 B
TypeScript

export type SqliteCapabilities = {
available: boolean;
version: string | null;
text: boolean;
blob: boolean;
json: boolean;
error?: string;
};
export function detectCurrentSqliteCapabilities(): SqliteCapabilities;
export function isSqliteWalResetSafeVersion(value: string): boolean;
export function nodeRuntimeFailure(
version: string | null,
probe: SqliteCapabilities,
): string | null;
export function nodeRuntimeNote(version: string | null, probe: SqliteCapabilities): string | null;
export const SQLITE_CAPABILITY_PROBE: string;