Skip to content

python: bump kimi-cli to 1.37 and keep skills_dir compatibility - #166

Merged
RealKai42 merged 4 commits into
MoonshotAI:mainfrom
wey-gu:bump/python-kimi-cli-1.37
Apr 21, 2026
Merged

RealKai42 merged 4 commits into
MoonshotAI:mainfrom
wey-gu:bump/python-kimi-cli-1.37

Conversation

@wey-gu

@wey-gu wey-gu commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

This updates the Python SDK to the current kimi-cli and kosong pair, and it fixes the one SDK-side break that shows up with newer kimi-cli.

What changed

  • bump kimi-cli from 1.12.x to 1.37.x
  • bump kosong from 0.42.x to 0.50.x
  • refresh python/uv.lock
  • keep the SDK's existing skills_dir parameter working while adapting to newer kimi-cli, which now expects skills_dirs
  • add coverage for the compatibility layer in Session.create, Session.resume, and the high-level prompt(...) API

Why the SDK-side fix is needed
Newer kimi-cli changed the KimiCLI.create(...) parameter from skills_dir to skills_dirs. Without an adapter here, the dependency bump breaks the Python SDK at runtime with:

TypeError: KimiCLI.create() got an unexpected keyword argument 'skills_dir'

This keeps the old SDK surface working and also allows the newer list-based form.

Validation

  • uv run --frozen pytest tests -q
  • uv run --frozen pyright src tests

Notes

  • This keeps the Python SDK backward-compatible for current callers using skills_dir=.
  • The lockfile also picks up the current transitive versions that come with kimi-cli 1.37.0, including agent-client-protocol 0.8.0 and pykaos 0.9.0.

@wey-gu

wey-gu commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

gently ping @RealKai42 :)

@RealKai42
RealKai42 merged commit b232049 into MoonshotAI:main Apr 21, 2026
4 of 5 checks passed
@wey-gu
wey-gu deleted the bump/python-kimi-cli-1.37 branch April 21, 2026 14:01
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.

2 participants