Skip to content

[FEATURE]: add a shared package for local SQLite queries #20131

@anduimagui

Description

@anduimagui

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions