Files
openclaw/node-sqlite.d.mts
Peter SteinbergerandVincent Koc ea833bde9e refactor(runtime): move SQLite startup checks off the main thread (#147866)
* refactor(runtime): probe SQLite startup capabilities in a worker

Move current-runtime capability SQL off the main thread and share one pending result across launcher and runtime callers. Await worker exit before admission, preserve failure caching and Bun library selection, and retain the native SQLite SDK and foreign-runtime probe contracts.

* test(config): expose include provenance in writer failures

Carry the bounded consumed-snapshot, provenance, and include-boundary assertions from 3de18f60bd (#143587). Preserve the observed snapshot and all existing writer/exclusion assertions. The hosted failure cause remains unresolved.

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-09-13 23:34:06 -07:00

17 lines
558 B
TypeScript

export type SqliteCapabilities = {
available: boolean;
version: string | null;
text: boolean;
blob: boolean;
json: boolean;
error?: string;
};
export function detectCurrentSqliteCapabilities(): Promise<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;