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

View File

@@ -1,7 +1,5 @@
import { join } from "node:path";
import { getOpenCodeStorageDir } from "../../shared/data-path";
export const OPENCODE_STORAGE = getOpenCodeStorageDir();
import { OPENCODE_STORAGE } from "../../shared";
export const INTERACTIVE_BASH_SESSION_STORAGE = join(
OPENCODE_STORAGE,
"interactive-bash-session",