chore: specs for unimplemented work (#70)

This commit is contained in:
Nathan Flurry 2026-02-04 13:45:31 -08:00 committed by GitHub
parent ef3e811c94
commit 8a31519786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 367 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Spec: Search + Symbol Indexing
**Proposed API Changes**
- Add a search/indexing service to the core session manager (ripgrep-backed initially).
- Expose APIs for text search, file search, and symbol search.
**Summary**
OpenCode expects fast search endpoints for files, text, and symbols within a workspace. These must be safe and scoped.
**OpenCode Endpoints (Reference)**
- `GET /opencode/find`
- `GET /opencode/find/file`
- `GET /opencode/find/symbol`
**Core Functionality Required**
- Text search with pattern, case sensitivity, and result limits.
- File search with glob/substring match.
- Symbol indexing (language server or ctags-backed), with caching and incremental updates.
- Proper path scoping and escaping.
**OpenCode Compat Wiring + Tests**
- Replace stubs for `/find`, `/find/file`, `/find/symbol`.
- Add E2E tests with a fixture repo verifying search hits.