personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(makefile): sync parakeet-onnx extra in .installed before asset validation

Whenever pyproject.toml or uv.lock change, .installed is invalidated
and re-runs `uv sync`, which prunes the parakeet-onnx-cpu/cuda extras
that `make install` had previously synced. The asset-hash validation
that follows then fails to import `observe.transcribe.main` because
onnxruntime is missing.

Add the same `uv sync --extra parakeet-onnx-$(PARAKEET_ONNX_VARIANT)`
call (Linux x86_64 only) to .installed, before the validation step,
mirroring the existing block in the `install` target.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+6
+6
Makefile
··· 57 57 echo "Python 3.14+ detected - installing onnxruntime from nightly feed..."; \ 58 58 $(UV) pip install --pre --no-deps --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime; \ 59 59 fi 60 + @OS_NAME=$$(uname -s); \ 61 + ARCH=$$(uname -m); \ 62 + if [ "$$OS_NAME" = "Linux" ] && [ "$$ARCH" = "x86_64" ]; then \ 63 + echo "parakeet install: PARAKEET_ONNX_VARIANT=$(PARAKEET_ONNX_VARIANT)"; \ 64 + $(UV) sync --extra parakeet-onnx-$(PARAKEET_ONNX_VARIANT) || { echo "parakeet install: uv sync --extra parakeet-onnx-$(PARAKEET_ONNX_VARIANT) failed" >&2; exit 1; }; \ 65 + fi 60 66 @$(VENV_BIN)/python -c "from observe.transcribe.main import PYANNOTE_OVERLAP_MODEL_PATH, PYANNOTE_OVERLAP_MODEL_SHA256, WESPEAKER_MODEL_PATH, WESPEAKER_MODEL_SHA256; from observe.utils import compute_file_sha256; actual = compute_file_sha256(WESPEAKER_MODEL_PATH); assert actual == WESPEAKER_MODEL_SHA256, f'WeSpeaker asset hash mismatch: got {actual}, expected {WESPEAKER_MODEL_SHA256}'; print(f'wespeaker asset ok ({actual[:12]}...)'); actual = compute_file_sha256(PYANNOTE_OVERLAP_MODEL_PATH); assert actual == PYANNOTE_OVERLAP_MODEL_SHA256, f'pyannote asset hash mismatch: got {actual}, expected {PYANNOTE_OVERLAP_MODEL_SHA256}'; print(f'pyannote asset ok ({actual[:12]}...)')" 61 67 @echo "Installing Playwright browser for sol screenshot..." 62 68 $(VENV_BIN)/playwright install chromium