- Add src/shared/opencode-storage-paths.ts with consolidated constants - Update imports in hook-message-injector and session-manager - Add src/shared/opencode-storage-detection.ts with isSqliteBackend() - Add OPENCODE_SQLITE_VERSION constant - Export all from shared/index.ts
7 lines
330 B
TypeScript
7 lines
330 B
TypeScript
import { join } from "node:path"
|
|
import { getOpenCodeStorageDir } from "./data-path"
|
|
|
|
export const OPENCODE_STORAGE = getOpenCodeStorageDir()
|
|
export const MESSAGE_STORAGE = join(OPENCODE_STORAGE, "message")
|
|
export const PART_STORAGE = join(OPENCODE_STORAGE, "part")
|
|
export const SESSION_STORAGE = join(OPENCODE_STORAGE, "session") |