/**
 * Prompt-cache break detection — stub.
 *
 * The upstream module instrumented the API client to detect when a turn's
 * prompt prefix diverged from the prior turn's (cache miss), so the team
 * could track cache-hit-rate regressions per release. Sandcode has no
 * first-party cache analytics; the call sites (compaction notify, /clear,
 * autoCompact) just need a no-op so the flow doesn't change.
 */

export function notifyCompaction(): void {
  /* no-op */
}

export function resetPromptCacheBreakDetection(): void {
  /* no-op */
}

export function checkResponseForCacheBreak(_response: unknown): void {
  /* no-op */
}

export function recordPromptState(_state: unknown): void {
  /* no-op */
}

/**
 * 1-hour TTL on the prompt-cache window. The agentic query path uses this
 * to decide when to latch out of "thinking clear" mode (compactor heuristic).
 * The upstream prompt cache TTL is 1h by default, so this matches the wire
 * even though sandcode itself does no cache-break tracking.
 */
export const CACHE_TTL_1HOUR_MS = 60 * 60 * 1000
