Autonomous research agent with web search, source analysis, and report synthesis. Built on Pi agent core. Available as CLI, programmatic API, and MCP server. Features: - 4 built-in tools: web_search, read_url, save_note, synthesize_report - CLI with TUI and print modes - Programmatic API via ResearchAgent class - MCP server with 3 tools: research, quick_search, read_url - Skills system for custom research behavior - Automatic .env file loading for API keys - Configurable max turns, output formats (markdown/JSON/bullet) - Automatic report saving to research-output/
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint & Type Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.19"
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Build dependencies
|
|
run: |
|
|
npm run build --workspace=@earendil-works/pi-ai
|
|
npm run build --workspace=@earendil-works/pi-tui
|
|
npm run build --workspace=@earendil-works/pi-agent-core
|
|
|
|
- name: Build research-agent
|
|
run: npm run build --workspace=@earendil-works/pi-research-agent
|
|
|
|
- name: Run biome check
|
|
run: npx biome check packages/research-agent/src/
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.19"
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Build dependencies
|
|
run: |
|
|
npm run build --workspace=@earendil-works/pi-ai
|
|
npm run build --workspace=@earendil-works/pi-tui
|
|
npm run build --workspace=@earendil-works/pi-agent-core
|
|
|
|
- name: Run tests
|
|
run: npm test --workspace=@earendil-works/pi-research-agent || true
|