mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-21 04:10:47 +02:00
Design for the OPTIONAL code-intelligence provider contract that lets a user pick how their codebase is indexed and searched, replacing gstack's ~17k LOC of bespoke GBrain glue. Repo-oriented ops (register_source/ refresh/search/status required; add/delete/export optional), a per-provider capability matrix, GBrain-recommended-first selection, repo-scoped + install consent, and a phased rollout that keeps gstack fully functional with no provider selected. All three providers are driven from the runtime via CLI or HTTP — no MCP client. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
428 B
TypeScript
15 lines
428 B
TypeScript
/**
|
|
* code-intelligence — the OPTIONAL, repo-oriented provider contract.
|
|
* See docs/designs/CODE_INTELLIGENCE_PROVIDER_CONTRACT.md.
|
|
*/
|
|
|
|
export * from "./contract";
|
|
export { GbrainProvider, parseGbrainSearch } from "./gbrain-adapter";
|
|
export { SourcebotProvider, GraphifyProvider } from "./mcp-adapters";
|
|
export {
|
|
recommendCodeProvider,
|
|
resolveCodeProvider,
|
|
RECOMMENDED_ORDER,
|
|
type PickerOptions,
|
|
} from "./picker";
|