Files
agent-desktop/scripts
Pine c3fad25ee5 fix: version-bump.sh 兼容动态版本格式(_DEFAULT_APP_VERSION),版本升至 0.0.1b2
- __version__.py 当前为动态加载实现(配置优先、_DEFAULT_APP_VERSION 兜底),脚本原先只认静态 __version__ 行导致报错
- 与 sync_tauri_version.mjs 的 readPythonVersion 兼容逻辑对齐:优先 __version__,回退 _DEFAULT_APP_VERSION
- 已执行 ./scripts/version-bump.sh 0.0.1b2 → Tauri 0.0.1-beta.2
2026-09-09 05:12:26 +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