The CLI shipped from `management/`, which also holds desktop-only pieces (the Tk control panel, the XFCE panel wiring, the shell wrappers). Packaging that directory meant the wheel either dragged in tkinter or shipped a broken import. Split it: `nexusos_cli/` is what the wheel ships and what `nexus`/`ncp`/ `nexusos` dispatch to, `management/` keeps the desktop half. Alongside the move: * hatch_build.py decides the interface/web/dist include at build time. dist/ is gitignored, so a static force-include aborts `pip install -e .` on a fresh clone - before the reader reaches the `npm run build` step. Editable installs now skip a missing dist; wheels and sdists hard-error naming the command to run. * synapse/proc_util.py gives frontend_manager and ncp process inspection and termination without psutil, which became an optional extra when the wheel landed. It routes around Windows having no signals, where os.kill(pid, 15) is an unblockable TerminateProcess rather than a polite request. * nexusos_cli/monitor.py adds `ncp monitor`, an ASCII dashboard with no curses or rich dependency so it works in Termux, plain SSH and Windows Terminal. Collector and renderer are separate so tests feed fixtures, no stack needed. * tests/test_packaging_deps.py fails the gate when synapse or nexusos_cli import a distribution pyproject does not declare, and when an optional dependency is imported at module scope instead of lazily. * bin/check.sh now builds the wheel, twine-checks it, and asserts the compiled UI and seed playbooks are actually inside it. A wheel that builds but ships no dist/ serves a blank page, which only shows up after release. tests/test_nexus_api.py moves to tests/ with the module it covers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
# --- Shared Base (GPU-agnostic) ---
|
|
|
|
# AI Stack (tokenizers/huggingface-hub: faster-whisper deps, not transformers)
|
|
tokenizers
|
|
huggingface-hub
|
|
|
|
# API & Web Infrastructure
|
|
fastapi
|
|
uvicorn
|
|
starlette
|
|
httpx # HTTP client (backend + controlpanel)
|
|
pydantic
|
|
pydantic_core
|
|
anyio
|
|
h11
|
|
httptools
|
|
watchfiles
|
|
websockets
|
|
wsproto
|
|
|
|
# Data, UI & System Tools
|
|
numpy
|
|
scipy
|
|
pandas
|
|
psutil
|
|
tqdm
|
|
rich
|
|
python-dotenv
|
|
PyYAML
|
|
|
|
# Document ingest (RAG): pure-Python text extraction, no native deps
|
|
pypdf
|
|
python-docx
|
|
# Vector search: loadable SQLite extension (prebuilt wheels). Brute-force cosine
|
|
# stays as the fallback when the host Python can't load extensions.
|
|
sqlite-vec
|
|
# Local speech-to-text: CTranslate2-based, no torch, keeps dictation on-device.
|
|
faster-whisper
|
|
# Email client: IMAP read (SMTP send is stdlib). Pure-Python, no native deps.
|
|
imap-tools
|
|
# Chat web search (synapse/search.py). Imported lazily behind a bare except,
|
|
# so a missing install shows up as search silently returning nothing.
|
|
duckduckgo-search
|
|
|
|
# Documentation Support
|
|
markdown-it-py
|
|
MarkupSafe
|
|
mdurl
|
|
Pygments
|
|
Jinja2
|
|
|
|
# Testing (bin/check.sh is the release gate; it shells out to pytest)
|
|
pytest
|