Repository navigation
Releases
Releases · chncaesar/opencode-session-reflection
v0.3.0
What's new
- Time-range session filters — new
period(today,yesterday,last3days,last7days,last30days,thisWeek,lastWeek,thisMonth,lastMonth) andsince(ISO date) args to collect sessions from a specific time window. - V1 plugin module format — migrated to
id+serverso the plugin loads correctly on OpenCode1.18.x(the legacy loader previously mis-invoked exported helper functions). - Cross-project session discovery —
GET /experimental/sessioncursor pagination withx-opencode-directoryheader bypass, current-session exclusion, and deduplication. - Configurable evidence budget —
evidenceBudgettool arg plusSESSION_REFLECTION_EVIDENCE_BUDGETenv var (default 48k). - Immutable report saving — validated collect run IDs, immutable report/sidecar pairs, owner-only permissions, and hardened symlink/hard-link rejection.
Install
{ "plugin": ["opencode-session-reflection"] }v0.2.0 - Cross-project session search via SQLite
What's new
feat: cross-project session search via SQLite
Previously, sessionName lookup only found sessions in the current workspace (API-level project filtering). Searching for a session by name from a different project directory always returned empty.
Now: searchSessionsByNameViaSQLite() queries the OpenCode SQLite database directly (~/.local/share/opencode/opencode.db), bypassing project-scoped API filters. Sessions from any project are now findable by title substring.
- Graceful fallback to API-based search if
sqlite3CLI is unavailable or DB is missing - Plugin factory accepts
_searchByNameinjection for testability (no runtime impact) - 2 new tests: SQLite path + API fallback path
Upgrade
{ "plugin": ["opencode-session-reflection"] }