File tree Expand file tree Collapse file tree
extensions/memory-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ export function buildMemorySearchUnavailableResult(
136136 const normalizedReason = normalizeLowercaseStringOrEmpty ( reason ) ;
137137 const isQuotaError = / i n s u f f i c i e n t _ q u o t a | q u o t a | 4 2 9 / . test ( normalizedReason ) ;
138138 const isNodeSqliteUnavailable =
139- / n o d e : s q l i t e / . test ( normalizedReason ) ||
140- / n o s u c h b u i l t - i n m o d u l e . * s q l i t e / . test ( normalizedReason ) ||
141- / s q l i t e s u p p o r t i s u n a v a i l a b l e / . test ( normalizedReason ) ;
139+ normalizedReason . includes ( " node:sqlite" ) ||
140+ ( normalizedReason . includes ( " no such built-in module" ) && normalizedReason . includes ( "sqlite" ) ) ||
141+ normalizedReason . includes ( " sqlite support is unavailable" ) ;
142142 let defaultWarning = "Memory search is unavailable due to an embedding/provider error." ;
143143 let defaultAction = "Check embedding provider configuration and retry memory_search." ;
144144 if ( isNodeSqliteUnavailable ) {
You can’t perform that action at this time.
0 commit comments