fix(web): align session search contracts

This commit is contained in:
Hypatia May
2026-07-27 18:38:00 +08:00
parent 621f414407
commit 4727d742db
42 changed files with 235 additions and 196 deletions

View File

@@ -628,6 +628,8 @@ export class SessionQuerySqlite extends SessionQueryService {
offset,
]
assertPortableBindingCount(bindings.length)
// The browser fixture mirrors these rank keys in
// `packages/client/connection/src/client/fixture.ts`; update both together.
return this._requireDb().prepare(`
${selected.sql},
filtered AS (

View File

@@ -5,7 +5,7 @@ import { mkdir, open } from 'node:fs/promises'
import { dirname, resolve } from 'node:path'
/** Current derived-index schema version. Incompatible versions reset in place. */
export const SESSION_QUERY_SQLITE_SCHEMA_VERSION = 5
export const SESSION_QUERY_SQLITE_SCHEMA_VERSION = 6
/** SQLite application id protecting unrelated databases from derived resets. */
export const SESSION_QUERY_SQLITE_APPLICATION_ID = 0x44534851