@davehardy20/pi-web-search
v0.1.0
Published
Pi package for web search via Tavily API.
Maintainers
Readme
@davehardy20/pi-web-search
Pi package for web search via Tavily API.
What it adds
web_searchtool — Search the web using Tavily API. Returns relevant results with summaries and source URLs./web-search-status— Show package name, version, source path, and API key status.
Prerequisites
- A Tavily API key set as the
TAVILY_API_KEYenvironment variable.
export TAVILY_API_KEY='your-key'Install
From npm:
pi install npm:@davehardy20/pi-web-searchFrom git:
pi install git:github.com/davehardy20/pi-web-searchFrom a local checkout during development:
pi install /Users/dave/tools/pi-web-searchFor one run only:
pi -e /Users/dave/tools/pi-web-searchNotes
- Requires
TAVILY_API_KEYto be set in the environment. The tool returns a clear error if the key is missing. - If the
web_searchtool appears twice, Pi is probably loading both this package and the old localagent/extensions/web-search.tsfile. - Disable or remove the old local auto-discovered extension before reload verification.
Update flow
- update the package repo
- push to GitHub
- run
pi update --extensionsor reinstall the package - run
/reload
/reload alone does not fetch newer package commits.
Troubleshooting
Run /web-search-status to confirm:
- package name
- package version
- loaded source path
- Tavily API key status (set/not set)
Build and test
npm run typecheck
npm run test
npm run build