a05ef99130
Extract recovery strategies and storage management: - recovery-strategy.ts, aggressive-truncation-strategy.ts - summarize-retry-strategy.ts, target-token-truncation.ts - empty-content-recovery.ts, message-builder.ts - tool-result-storage.ts, storage-paths.ts, state.ts - client.ts, tool-part-types.ts
11 lines
509 B
TypeScript
11 lines
509 B
TypeScript
import { join } from "node:path"
|
|
import { getOpenCodeStorageDir } from "../../shared/data-path"
|
|
|
|
const OPENCODE_STORAGE_DIR = getOpenCodeStorageDir()
|
|
|
|
export const MESSAGE_STORAGE_DIR = join(OPENCODE_STORAGE_DIR, "message")
|
|
export const PART_STORAGE_DIR = join(OPENCODE_STORAGE_DIR, "part")
|
|
|
|
export const TRUNCATION_MESSAGE =
|
|
"[TOOL RESULT TRUNCATED - Context limit exceeded. Original output was too large and has been truncated to recover the session. Please re-run this tool if you need the full output.]"
|