Files
agent-desktop/scripts
Pine 922e20b0b5 chore: 上游同步基线工具与文档(sync-diff + UPSTREAM_SYNC)
- scripts/sync-diff.py: 上游三向 diff 分析工具(base/upstream/local 文件级分类)
- UPSTREAM_SYNC.md: 同步基线文档,含 83 个双改文件 A/B/C 裁决清单、三层代码组织规范、同步流程与验收门
2026-09-04 00:33:18 +08:00
..

Scripts

Run from repo root.

Build wheel (with latest console)

bash scripts/wheel_build.sh
  • Builds the console frontend (console/), copies console/dist to src/pineagents/console/dist, then builds the wheel. Output: dist/*.whl.

Build website

bash scripts/website_build.sh
  • Installs dependencies (pnpm or npm) and runs the Vite build. Output: website/dist/.

Build Docker image

bash scripts/docker_build.sh [IMAGE_TAG] [EXTRA_ARGS...]
  • Default tag: qwenpaw:latest. Uses deploy/Dockerfile (multi-stage: builds console then Python app).
  • Example: bash scripts/docker_build.sh myreg/qwenpaw:v1 --no-cache.

Run Test

# Run all tests
python scripts/run_tests.py

# Run all unit tests
python scripts/run_tests.py -u

# Run unit tests for a specific module
python scripts/run_tests.py -u providers

# Run integration tests
python scripts/run_tests.py -i

# Run all tests and generate a coverage report
python scripts/run_tests.py -a -c

# Run tests in parallel (requires pytest-xdist)
python scripts/run_tests.py -p

# Show help
python scripts/run_tests.py -h