refactor(shared): unify MESSAGE_STORAGE/PART_STORAGE constants into single source

- Create src/shared/opencode-storage-paths.ts with all 4 constants
- Update 4 previous declaration sites to import from shared file
- Update additional OPENCODE_STORAGE usages for consistency
- Re-export from src/shared/index.ts
- No duplicate constant declarations remain
This commit is contained in:
YeonGyu-Kim
2026-02-14 20:09:13 +09:00
parent 068831f79e
commit 4cf3bc431b
8 changed files with 33 additions and 24 deletions
+3 -3
View File
@@ -475,9 +475,9 @@ describe("session-manager storage - SDK path (beta mode)", () => {
resetSqliteBackendCache: () => {},
}))
// Reset client to ensure "client not set" case is exercised
const { resetStorageClient } = await import("./storage")
resetStorageClient()
// Reset SDK client to ensure "client not set" case is exercised
const { setStorageClient } = await import("./storage")
setStorageClient(null as any)
// Re-import without setting client
const { readSessionMessages } = await import("./storage")