From 71923d721316bcb7cbf39d1950e55e84133ad9c1 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Sat, 25 Jul 2026 00:10:43 +0800 Subject: [PATCH] chore(storage): exempt the copied sqlite open sequence from clone detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The jscpd gate flags the deliberately mirrored open/stamp sequence against session-persistence-sqlite and session-query-sqlite. The copy is the settled this-phase choice — this group is the third user and the shared medium helper is deferred to the log-facet migration so the session packages stay untouched (reuse audit in the design note); mark the span accordingly. --- packages/storage/storage-sqlite/src/schema.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/storage/storage-sqlite/src/schema.ts b/packages/storage/storage-sqlite/src/schema.ts index 9c3a0f1d0b..c9ac817415 100644 --- a/packages/storage/storage-sqlite/src/schema.ts +++ b/packages/storage/storage-sqlite/src/schema.ts @@ -28,6 +28,11 @@ export const STORAGE_SQLITE_SCHEMA_VERSION = 1 */ export type JournalMode = 'wal' | 'delete' | 'truncate' | 'persist' +/* jscpd:ignore-start -- deliberately mirrors the session-persistence-sqlite / + session-query-sqlite open sequence; this group is the third user, and the + shared medium helper is deferred to the log-facet migration so the session + packages stay untouched this phase (see the domain KV storage Agent Note's + reuse audit). */ /** * Exclusively create a missing database file with owner-only permissions. * Existing files retain their modes, and errors other than `EEXIST` propagate. @@ -81,6 +86,7 @@ function configureDatabase(db: DatabaseSync, path: string, journalMode: JournalM `storage database at "${path}" has schema version ${onDisk}, incompatible with this build (${STORAGE_SQLITE_SCHEMA_VERSION})`, ) } + /* jscpd:ignore-end */ db.exec(` CREATE TABLE IF NOT EXISTS units ( name TEXT PRIMARY KEY,