mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-28 05:54:09 +08:00
* 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>
17 lines
558 B
TypeScript
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;
|