mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-21 20:04:59 +00:00
chore: specs for unimplemented work (#70)
This commit is contained in:
parent
ef3e811c94
commit
8a31519786
14 changed files with 367 additions and 0 deletions
23
research/specs/search-symbol-indexing.md
Normal file
23
research/specs/search-symbol-indexing.md
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue