python: bump kimi-cli to 1.37 and keep skills_dir compatibility - #166
Merged
Merged
Conversation
Contributor
Author
|
gently ping @RealKai42 :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
kimi-clifrom1.12.xto1.37.xkosongfrom0.42.xto0.50.xpython/uv.lockskills_dirparameter working while adapting to newerkimi-cli, which now expectsskills_dirsSession.create,Session.resume, and the high-levelprompt(...)APIWhy the SDK-side fix is needed
Newer
kimi-clichanged theKimiCLI.create(...)parameter fromskills_dirtoskills_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 -quv run --frozen pyright src testsNotes
skills_dir=.kimi-cli 1.37.0, includingagent-client-protocol 0.8.0andpykaos 0.9.0.