Status: done
Include the static debug UI assets in installed package builds.
The FastAPI app serves index.html, app.js, and styles.css from agent_lab.presentation.static. Local source runs work because those files are present in the checkout. A built wheel needs explicit setuptools package-data configuration so installed console usage can still serve the UI.
This todo covers:
This todo does not cover:
pyproject.tomltests/test_packaging.pydocs/plans/todos.mdpyproject.toml and asserts agent_lab.presentation includes static/*.html, static/*.js, and static/*.css package data.[tool.setuptools.package-data] to pyproject.toml.Run:
uv run pytest tests/test_packaging.py
uv run pytest
Build and inspect package contents:
uv build
unzip -l dist/agent_lab-0.1.0-py3-none-any.whl | rg "agent_lab/presentation/static/(index.html|app.js|styles.css)"
Update this plan and docs/plans/todos.md, then commit.
Result:
tests/test_packaging.py failed because tool.setuptools.package-data was missing.uv run pytest tests/test_packaging.py passed.uv run pytest passed: 35 tests, 1 existing Starlette deprecation warning.uv build passed after rerunning with permission to access the user uv cache.unzip -l dist/agent_lab-0.1.0-py3-none-any.whl | rg "agent_lab/presentation/static/(index.html|app.js|styles.css)" found all three static UI assets.pyproject.toml now declares package data for static HTML, JS, and CSS.agent_lab/presentation/static/index.html, app.js, and styles.css.