bytetrue-pi-web-search

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-package-mono

Personal pi coding agent extensions as an npm workspaces monorepo. Each package loads as TypeScript source via jiti — no build step required.

FeaturesLocal developmentPackages

Packages

Package Description
@bytetrue/pi-web-search web_search + web_fetch tools with zero-config Exa MCP free search, keyless Bing fallback, self-hosted SearXNG, and pluggable providers (Bocha, Tavily, Exa, Brave, Jina, Firecrawl).
@bytetrue/pi-vendor /vendor wizard for managing custom providers in ~/.pi/agent/models.json — provider drafting, model enrichment, and /models import.
@bytetrue/pi-image-gen image_generate tool and /image-gen settings command for OpenAI, Gemini, Qwen-Image, Ark, OpenRouter, and compatible gateways.
@bytetrue/pi-background-terminal OpenCode-style background PTY sessions for Pi: pty_spawn, pty_list, pty_read, pty_write, pty_kill, and a local web monitor.

Local development

# Install a package by local path (no npm publish needed)
pi install /absolute/path/to/pi-package-mono/packages/pi-web-search

# Or mount an extension for a quick trial run
pi -e /absolute/path/to/pi-package-mono/packages/pi-web-search

# Try image generation locally
pi install /absolute/path/to/pi-package-mono/packages/pi-image-gen

# Try background terminal locally
pi install /absolute/path/to/pi-package-mono/packages/pi-background-terminal

Run tests across all packages:

npm test

Run tests for a specific package:

npm --workspace @bytetrue/pi-web-search test

npm --workspace @bytetrue/pi-image-gen test

npm --workspace @bytetrue/pi-background-terminal test