Skip to content

fix(packaging): ship the model_market catalog in the wheel - #10

Merged
contactacefleetdev merged 3 commits into
mainfrom
fix/package-model-market-catalog
Aug 15, 2026
Merged

fix(packaging): ship the model_market catalog in the wheel#10
contactacefleetdev merged 3 commits into
mainfrom
fix/package-model-market-catalog

Conversation

@contactacefleetdev

@contactacefleetdev contactacefleetdev commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Description

The rate catalog lives at /data/model_market, outside src/, so hatchling did not pick it up as package data and the wheel shipped code only. At runtime _resolve_catalog_root then fell through to its cwd-relative last resort, so an installed ace up launched from anywhere but the repo root found no rates and recorded every turn as UNPRICED at $0.00 — including opus-5, sonnet-5, opus-4-8 and fable-5, which warn on startup.

force-include maps the catalog to ace/data/model_market, the in-wheel path the resolver already probes. feeds/ is excluded: 2.9M of the 3.1M catalog, raw litellm/models.dev dumps that nothing in the shipped package reads.

Verified by installing the built wheel into a clean 3.12 venv and running from /tmp: catalog resolves under site-packages, all four models price, and ace up starts with no pricing warnings.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Verification

Describe the tests and checks performed to verify changes:

  • pytest passes cleanly.
  • python -m build and twine check dist/* pass.
  • E2E test script scripts/e2e_test.py passes.

Checklist

  • My code follows the code style of this project.
  • I have updated documentation where necessary.
  • I have updated CHANGELOG.md with my changes.

contactacefleetdev and others added 3 commits August 15, 2026 11:06
The rate catalog lives at <repo>/data/model_market, outside src/, so hatchling
did not pick it up as package data and the wheel shipped code only. At runtime
_resolve_catalog_root then fell through to its cwd-relative last resort, so an
installed `ace up` launched from anywhere but the repo root found no rates and
recorded every turn as UNPRICED at $0.00 — including opus-5, sonnet-5, opus-4-8
and fable-5, which warn on startup.

force-include maps the catalog to ace/data/model_market, the in-wheel path the
resolver already probes. feeds/ is excluded: 2.9M of the 3.1M catalog, raw
litellm/models.dev dumps that nothing in the shipped package reads.

Verified by installing the built wheel into a clean 3.12 venv and running from
/tmp: catalog resolves under site-packages, all four models price, and `ace up`
starts with no pricing warnings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QqmDAhC6dkRJdgW1cQhSLC
The [0.1.1] - 2026-08-11 section documented a release that does not exist:
PyPI has only 0.1.0, and every item under that heading — /metrics, the E2E
script, publish.yml, the issue/PR templates, the agent-filter fix — is already
present in the v0.1.0 tag's tree. The v0.1.1 tag does exist, but on a lineage
that is not an ancestor of main (~50 commits unique to it); main's history was
rebuilt and the whole body of work published in one go as 0.1.0, while the
CHANGELOG kept the older pre-rebuild split.

Fold those items into [0.1.0] and date it 2026-08-15, the PyPI upload date
(the section previously read 2026-08-07; the tagged commit is 2026-08-14).

Also record the dashboard routing/button fix from #9, which landed on main
after the tag and was documented nowhere, and add compare links.

uv.lock pinned ace-sidecar at 0.1.1, inherited from the same abandoned
lineage; regenerating it agrees with pyproject.toml and the released version.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QqmDAhC6dkRJdgW1cQhSLC
@contactacefleetdev
contactacefleetdev merged commit b08d082 into main Aug 15, 2026
1 check passed
@contactacefleetdev
contactacefleetdev deleted the fix/package-model-market-catalog branch August 15, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant