Feature hasn't been suggested before.
Describe the enhancement you want to request
Add a small shared workspace package, @opencode-ai/local, for reading the local OpenCode SQLite database directly instead of shelling out through opencode db <sql> --format tsv.
This package should centralize local database path resolution and expose the project and session queries current consumers need. Pulling this into a workspace package gives us one place to maintain persisted-state access and avoids duplicating SQL and DB path logic across consumers like Raycast and any future integrations.
Benefits:
- avoids shelling out for simple local reads
- centralizes local DB path resolution
- reduces duplicated SQL/query logic
- gives future consumers a shared interface for persisted-state access
Feature hasn't been suggested before.
Describe the enhancement you want to request
Add a small shared workspace package,
@opencode-ai/local, for reading the local OpenCode SQLite database directly instead of shelling out throughopencode db <sql> --format tsv.This package should centralize local database path resolution and expose the project and session queries current consumers need. Pulling this into a workspace package gives us one place to maintain persisted-state access and avoids duplicating SQL and DB path logic across consumers like Raycast and any future integrations.
Benefits: