Repository navigation
v0.1.9
v0.1.9 Release Notes
Features
- CLI rename: console scripts renamed from
ms/modelscopetoms-hub/modelscope-hubto avoid installation collisions with the umbrellamodelscopepackage (fixes #1752) - MCP deploy UX:
ms-hub mcp deployprints the operational URL after deployment; adds--auth-checkand repeatable--env KEY=VALUEoptions; validates--transport-type(sse / streamable_http)
Fixes
- Progress callbacks propagation: forward
progress_callbacksthroughHubApi.download_repofacade so custom download-progress callbacks work end-to-end (previously raisedTypeErroron real calls) - Legacy cache auto-detection: probe both
{base}/{type}s/{owner}/{name}and{base}/hub/...layouts in priority order, with clean fallback to the new layout - Revision propagation: corrected
revisionparameter propagation inget_model_filesdownload path - Anonymous public repo download: added
require_token=Falseto three read-only agent APIs so public repo downloads work without credentials (previously blocked client-side);repo_infofalls back to public endpoint when anonymous access returns 401 - Cookie override handling:
HubApi.get_cookies()now respects explicitly passed empty tokens and does not silently fall back to persistent credentials; added_token_overriddenflag - Pre-LFS cross-domain: fixed cross-domain bug in pre-LFS flow
- Packaging conflict: renamed entry points to avoid FreeBSD pkg conflicts between
modelscopeandmodelscope-hub - Stale unit tests: fixed two tests failing in distro build sandboxes (NixOS);
deploy_mcp_serverdrops explicitNonepayload values before applying default transport
Enhancements
- Lint/type-check: cleared ruff + mypy debt to zero; targets aligned to Python 3.10 floor; added static-typing groundwork (
TypeAlias,StrEnumshim,SubParsersprotocol) - Test suite: verified timezone-independent and network-free in mock mode
CI
- New
citestworkflow: mock-mode suite (no credentials/network) on Python 3.10/3.12/3.14 with ruff/mypy hard gates; PyPI publishing now requires a green test gate; added pre-commit config
Documentation
- README / News: updated docs through v0.1.8; merged same-type release entries into single bullets; CLI references use the new
ms-hubcommand name
What's Changed
- [Fix] Fix pyproject project.scripts to avoid FreeBSD pkg conflicts by @wangxingjun778 in #41
- [Docs] Update docs by @wangxingjun778 in #42
- [Fix] Fix revision for get_model_files by @wangxingjun778 in #43
- Fix pre-lfs cross domain bug by @tastelikefeet in #44
- Fix bugs by @tastelikefeet in #45
- feat: cli rename (ms → ms-hub), download fixes, ci gates, and mcp deploy ux by @wangxingjun778 in #47
Full Changelog: v0.1.8...v0.1.9