Skip to main content

团队协作型AI助手 - Team Collaboration AI Assistant

Project description

TeamBot - 团队协作型AI助手

本地桌面端执行型 AI 助手,支持 Windows / macOS / Linux。


安装

一键安装(推荐)

macOS / Linux

curl -fsSL https://teambot.samai.cc/install.sh | bash

指定版本:

curl -fsSL https://teambot.samai.cc/install.sh | bash -s -- --version 1.52.0

Windows(PowerShell)

irm https://teambot.samai.cc/install.ps1 | iex

指定版本:

irm https://teambot.samai.cc/install.ps1 | iex -Version 1.52.0

首次运行若提示执行策略限制,先执行:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

系统要求

项目 要求
操作系统 Windows 10+ / macOS 12+ / Ubuntu 20.04+
Python 3.10+
内存 ≥ 512 MB

一键安装脚本会自动下载独立可执行文件,无需 Python 或 Node.js。

启动命令

teambot              # 默认启动(Web 管理后台)
teambot update       # 更新到最新版
teambot web          # Web 管理后台
teambot cli          # CLI 交互模式
teambot tray         # 系统托盘后台运行
teambot server       # API 服务模式
teambot install      # 安装/更新依赖
teambot uninstall    # 卸载

配置 LLM

环境变量方式(推荐)

export TEAMBOT_LLM_API_KEY="sk-your-key"
export TEAMBOT_LLM_MODEL="gpt-4"

配置文件方式

首次运行自动创建 ~/.teambot/config.json,编辑即可:

{
  "llm": {
    "provider": "openai",
    "api_key": "sk-...",
    "model": "gpt-4"
  }
}

Ollama 本地模型(免费)

curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama3
export TEAMBOT_LLM_PROVIDER="ollama"
export TEAMBOT_OLLAMA_MODEL="llama3"

发布客户端

⚠️ TeamBot 使用 Cython 编译发布,源码以 .so 二进制形式分发,不提供 sdist。

1. CI/CD 自动构建(推荐)

推送到 main 分支后,CI 自动执行 wf1 → wf2 → wf3 链式流程:

  • wf1: Cython 编译 + 发布到 PyPI
  • wf2: PyInstaller 打包 exe + 创建 runner 脚本(无 pip/npm)
  • wf3: 上传二进制和安装脚本到 teambot.samai.cc/downloads/

2. 本地构建(当前平台)

python3 build_cython.py

构建产物在 dist/ 目录,为当前平台的 .whl 文件。

2. CI/CD 自动构建

推送到 main 分支后,CI 自动执行:

  • wf1: Cython 编译 + 发布编译后 wheel 到 PyPI
  • wf2: 构建多平台二进制(PyInstaller exe + runner 脚本,无 pip/npm)
  • wf3: 上传到 teambot.samai.cc/downloads/ 并部署 install.sh / install.ps1

3. 跨平台构建(GitHub Actions)

推送版本标签即可自动构建所有平台的 wheel 并发布到 PyPI:

# 1. 更新版本号
#    编辑 package.json 和 pyproject.toml 中的 version 字段

# 2. 提交并打标签
git add .
git commit -m "release v1.52.0"
git tag v1.52.0
git push origin main --tags

4. 配置 PyPI Token

在 GitHub 仓库 Settings → Secrets and variables → Actions 中添加:

  • Name: PYPI_API_TOKEN
  • Value: 你的 PyPI API Token(pypi- 开头)

5. 构建说明

  • 不发布 sdist:仅发布预编译 .whl 文件,避免 .py 源码泄露
  • Cython 编译:大部分 .py 编译为 .so,仅入口文件和必要模块保留 .py
  • 保留 .py 的模块main.py, config.py, tray_manager.py, monitor_timer.py, core/version.py, web/api_server.py 等大型或关键模块

更新代码

用户端更新

teambot update

或重新运行安装脚本:

# macOS / Linux
curl -fsSL https://teambot.samai.cc/install.sh | bash

# Windows
irm https://teambot.samai.cc/install.ps1 | iex

开发者更新流程

  1. 修改代码:在本地仓库开发并测试

  2. 本地测试

    pip install -e .        # 开发模式安装
    teambot                 # 运行验证
    
  3. 构建测试

    python3 build_cython.py --test    # 编译 + 导入测试
    
  4. 发布新版本

    # 更新版本号 → 提交 → 打标签 → 推送
    git tag v1.53.0
    git push origin main --tags
    

清理构建产物

python3 build_cython.py --clean

链接

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

teambot_ai-1.52.15-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

teambot_ai-1.52.15-cp313-cp313-win_amd64.whl (21.7 MB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file teambot_ai-1.52.15-py3-none-any.whl.

File metadata

  • Download URL: teambot_ai-1.52.15-py3-none-any.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for teambot_ai-1.52.15-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca3d0343768f47aa15b28c96280d409f271623a45bdb4fa336e7ae7d9cc4698
MD5 385545e6d51d6ee03786a5039cdf39d1
BLAKE2b-256 6ca2394f009fc358a427ccebbb18adfda688fb44a989342f8ed346d0e15ad4b2

See more details on using hashes here.

File details

Details for the file teambot_ai-1.52.15-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for teambot_ai-1.52.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 14d2d23d11a9f9b67519579811d7a8bd292f286422de7a5f428c85d94ef9182c
MD5 1f0af9551238a08ab68274e95716b619
BLAKE2b-256 5bd00e79cf45cdfb63df1e551ea9aa7add728869304fed9fa82276e6652f60a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page