2025-12-08 11:48:08 +09:00
|
|
|
import { join } from "node:path"
|
2025-12-28 16:13:50 +09:00
|
|
|
import { getOpenCodeStorageDir } from "../../shared/data-path"
|
2025-12-08 11:48:08 +09:00
|
|
|
|
2025-12-28 16:13:50 +09:00
|
|
|
export const OPENCODE_STORAGE = getOpenCodeStorageDir()
|
2025-12-08 11:48:08 +09:00
|
|
|
export const MESSAGE_STORAGE = join(OPENCODE_STORAGE, "message")
|
|
|
|
|
export const PART_STORAGE = join(OPENCODE_STORAGE, "part")
|
|
|
|
|
|
|
|
|
|
export const THINKING_TYPES = new Set(["thinking", "redacted_thinking", "reasoning"])
|
|
|
|
|
export const META_TYPES = new Set(["step-start", "step-finish"])
|
|
|
|
|
export const CONTENT_TYPES = new Set(["text", "tool", "tool_use", "tool_result"])
|