Files
agent-desktop/scripts
Pine de90906895 feat: admin端载体方功能迁移到桌面端园区管理
- 新增桌面端园区API模块 park.ts(完整的园区管理接口)
- 新增统一园区管理工作台页面 ParkWorkbench.tsx(13个功能模块Tabs)
  - 企业管理(增删改查、算力折扣/配额管理)
  - 用户管理(园区用户列表)
  - 入园申请审核(通过/驳回)
  - 转园申请审核(同意转入/拒绝)
  - 任务管理(发布/状态更新)
  - 资讯管理(发布园区资讯)
  - 知识库(文档增删改查、重建索引)
  - 智能体配置(系统提示词、欢迎语、启用开关)
  - 屏幕管理(大屏绑定/解绑)
  - 大屏控制台(刷新/重启/截屏/音量控制)
  - 大屏数据配置(园区名称/简介/锚点)
  - 视频识别配置(API地址配置)
  - 载体资料(提交后需运营端审核)
- 更新路由配置 /carrier/park
- 更新菜单配置(园区管理菜单项)
- yarn build 构建成功
2026-09-06 15:29:19 +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