Files
MindOS_CLI/pyproject.toml
T
lidf d760aa70b5 refactor(cli): v0.3.0 瘦身 — 内容枢纽时代仅保留拾音采集端
决策依据:SPEC_mindos_content_hub(2026-08 战略逆转)——MindOS 不再自建
本地执行体,宿主层由 WorkBuddy 等 MCP 消费端承接。

砍掉(-1500 行):
- cli.py chat/ask/health/start/install-service/uninstall-service/capabilities/
  tunnel/update 命令集(492→175 行)
- service.py(launchd 自启)、capability.py(能力上报)、health.py(8660 守护进程)
- pipelines/tool_proxy.py(工具白名单)、pipelines/tunnel_session.py(WS 隧道)
- pyproject 依赖精简:litellm/openai/rich/mcp 等移除,仅剩 websockets+click

保留/重构:
- pipelines/audio_capture.py(实时流式,不落盘)原样保留
- record 命令族重构为直接驱动 audio_capture(不再经 8660),跨进程
  stop/status 用 ~/.mindcli/record.json 状态文件(pid 识别)
- _vendor/ 快照 + scripts/vendor_hermes.sh 保留
- README.md 新增(含瘦身记录)

验证:py_compile 全绿;mind record status/start 错误路径冒烟通过;
假 token 实测 WS 401(云端端点在校验)+ 状态文件清理 ✓
2026-08-09 16:47:38 +08:00

44 lines
1.1 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mindos-cli"
version = "0.3.0"
description = "MindOS NEXT 拾音采集端 — 实时流式推送 Cloud ASR(内容枢纽时代)"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "MindOS Team"},
]
dependencies = [
# 拾音采集端最小依赖(chat/tunnel 相关依赖已随 2026-08 瘦身移除)
"websockets>=12.0",
"click>=8.0",
]
[project.optional-dependencies]
# macOS 系统拾音(Phase 4
audio = [
"pyobjc-core>=10.0",
"pyobjc-framework-Quartz>=10.0",
"pyobjc-framework-ScreenCaptureKit>=10.0",
"pyobjc-framework-CoreMedia>=10.0",
"pyobjc-framework-AVFoundation>=10.0",
"pyobjc-framework-libdispatch>=10.0",
"sounddevice>=0.4",
"numpy>=1.24",
]
[project.scripts]
mind = "mindcli.cli:main"
[tool.setuptools.packages.find]
include = ["mindcli*"]
[tool.setuptools.package-data]
# 确保 _vendor/ 下的非 .py 文件(VENDOR_COMMIT 等)被打包
mindcli = ["_vendor/VENDOR_COMMIT", "_vendor/**/*"]