/** * opencode.ts — WatcherAdapter para OpenCode (poll-based, SQLite) * * OpenCode stores sessions in ~/.local/share/opencode/opencode.db (SQLite). * The session table has cost, token counts, model, and timestamps directly. * Uses PollableAdapter — no JSONL files, no chokidar. */ import { type PollableAdapter } from './adapter'; import type { BlockCostEntry } from '../db'; export declare const opencodeAdapter: PollableAdapter; export declare function getAllStepFinishBlocksForSession(sessionId: string): Promise; export declare function isSessionArchived(sessionId: string): boolean;