mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
879 B
879 B
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/findGET /opencode/find/fileGET /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.