BREAKING CHANGE: remove Tavily, Firecrawl, provider fallback, and web-search-config. web_search and web_fetch now use Exa-shaped inputs and return raw Exa-style details.
1.2 KiB
1.2 KiB
AGENTS.md
Project overview
pi-web-searchis a Pi extension package that exposes Exa-backedweb_searchandweb_fetch.- Entry point:
index.ts. - Runtime/config loading:
src/runtime.ts,src/config.ts. - Tool/input schemas:
src/schema.ts. - Exa SDK adapter helpers:
src/providers/exa.ts. - Tool adapters:
src/tools/. - Output formatting:
src/format.ts.
Commands
- Install deps:
npm install - Run tests:
npm test
Working conventions
- The package is Exa-only. Do not reintroduce provider registries, fallback graphs, or provider-specific option blocks.
web_searchshould stay Exa-shaped and map closely toexa.search(query, options).web_fetchshould stay Exa-shaped and map closely toexa.getContents(urls, options).- Keep tool
detailsclose to raw Exa responses; keep human-readable formatting compact insrc/format.ts. - Prefer focused tests next to the changed modules.
- Update
README.mdand config examples when Exa config/schema or tool parameters change.
Docs
- Design specs live under
docs/superpowers/specs/. - Use
YYYY-MM-DD-<topic>-design.mdnaming for design specs. - If a new spec supersedes an older one, say that explicitly in the newer file.