kimi-cli 0.44__py3-none-any.whl → 0.78__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of kimi-cli might be problematic. Click here for more details.

Files changed (137) hide show
  1. kimi_cli/CHANGELOG.md +349 -40
  2. kimi_cli/__init__.py +6 -0
  3. kimi_cli/acp/AGENTS.md +91 -0
  4. kimi_cli/acp/__init__.py +13 -0
  5. kimi_cli/acp/convert.py +111 -0
  6. kimi_cli/acp/kaos.py +270 -0
  7. kimi_cli/acp/mcp.py +46 -0
  8. kimi_cli/acp/server.py +335 -0
  9. kimi_cli/acp/session.py +445 -0
  10. kimi_cli/acp/tools.py +158 -0
  11. kimi_cli/acp/types.py +13 -0
  12. kimi_cli/agents/default/agent.yaml +4 -4
  13. kimi_cli/agents/default/sub.yaml +2 -1
  14. kimi_cli/agents/default/system.md +79 -21
  15. kimi_cli/agents/okabe/agent.yaml +17 -0
  16. kimi_cli/agentspec.py +53 -25
  17. kimi_cli/app.py +180 -52
  18. kimi_cli/cli/__init__.py +595 -0
  19. kimi_cli/cli/__main__.py +8 -0
  20. kimi_cli/cli/info.py +63 -0
  21. kimi_cli/cli/mcp.py +349 -0
  22. kimi_cli/config.py +153 -17
  23. kimi_cli/constant.py +3 -0
  24. kimi_cli/exception.py +23 -2
  25. kimi_cli/flow/__init__.py +117 -0
  26. kimi_cli/flow/d2.py +376 -0
  27. kimi_cli/flow/mermaid.py +218 -0
  28. kimi_cli/llm.py +129 -23
  29. kimi_cli/metadata.py +32 -7
  30. kimi_cli/platforms.py +262 -0
  31. kimi_cli/prompts/__init__.py +2 -0
  32. kimi_cli/prompts/compact.md +4 -5
  33. kimi_cli/session.py +223 -31
  34. kimi_cli/share.py +2 -0
  35. kimi_cli/skill.py +145 -0
  36. kimi_cli/skills/kimi-cli-help/SKILL.md +55 -0
  37. kimi_cli/skills/skill-creator/SKILL.md +351 -0
  38. kimi_cli/soul/__init__.py +51 -20
  39. kimi_cli/soul/agent.py +213 -85
  40. kimi_cli/soul/approval.py +86 -17
  41. kimi_cli/soul/compaction.py +64 -53
  42. kimi_cli/soul/context.py +38 -5
  43. kimi_cli/soul/denwarenji.py +2 -0
  44. kimi_cli/soul/kimisoul.py +442 -60
  45. kimi_cli/soul/message.py +54 -54
  46. kimi_cli/soul/slash.py +72 -0
  47. kimi_cli/soul/toolset.py +387 -6
  48. kimi_cli/toad.py +74 -0
  49. kimi_cli/tools/AGENTS.md +5 -0
  50. kimi_cli/tools/__init__.py +42 -34
  51. kimi_cli/tools/display.py +25 -0
  52. kimi_cli/tools/dmail/__init__.py +10 -10
  53. kimi_cli/tools/dmail/dmail.md +11 -9
  54. kimi_cli/tools/file/__init__.py +1 -3
  55. kimi_cli/tools/file/glob.py +20 -23
  56. kimi_cli/tools/file/grep.md +1 -1
  57. kimi_cli/tools/file/{grep.py → grep_local.py} +51 -23
  58. kimi_cli/tools/file/read.md +24 -6
  59. kimi_cli/tools/file/read.py +134 -50
  60. kimi_cli/tools/file/replace.md +1 -1
  61. kimi_cli/tools/file/replace.py +36 -29
  62. kimi_cli/tools/file/utils.py +282 -0
  63. kimi_cli/tools/file/write.py +43 -22
  64. kimi_cli/tools/multiagent/__init__.py +7 -0
  65. kimi_cli/tools/multiagent/create.md +11 -0
  66. kimi_cli/tools/multiagent/create.py +50 -0
  67. kimi_cli/tools/{task/__init__.py → multiagent/task.py} +48 -53
  68. kimi_cli/tools/shell/__init__.py +120 -0
  69. kimi_cli/tools/{bash → shell}/bash.md +1 -2
  70. kimi_cli/tools/shell/powershell.md +25 -0
  71. kimi_cli/tools/test.py +4 -4
  72. kimi_cli/tools/think/__init__.py +2 -2
  73. kimi_cli/tools/todo/__init__.py +14 -8
  74. kimi_cli/tools/utils.py +64 -24
  75. kimi_cli/tools/web/fetch.py +68 -13
  76. kimi_cli/tools/web/search.py +10 -12
  77. kimi_cli/ui/acp/__init__.py +65 -412
  78. kimi_cli/ui/print/__init__.py +37 -49
  79. kimi_cli/ui/print/visualize.py +179 -0
  80. kimi_cli/ui/shell/__init__.py +141 -84
  81. kimi_cli/ui/shell/console.py +2 -0
  82. kimi_cli/ui/shell/debug.py +28 -23
  83. kimi_cli/ui/shell/keyboard.py +5 -1
  84. kimi_cli/ui/shell/prompt.py +220 -194
  85. kimi_cli/ui/shell/replay.py +111 -46
  86. kimi_cli/ui/shell/setup.py +89 -82
  87. kimi_cli/ui/shell/slash.py +422 -0
  88. kimi_cli/ui/shell/update.py +4 -2
  89. kimi_cli/ui/shell/usage.py +271 -0
  90. kimi_cli/ui/shell/visualize.py +574 -72
  91. kimi_cli/ui/wire/__init__.py +267 -0
  92. kimi_cli/ui/wire/jsonrpc.py +142 -0
  93. kimi_cli/ui/wire/protocol.py +1 -0
  94. kimi_cli/utils/__init__.py +0 -0
  95. kimi_cli/utils/aiohttp.py +2 -0
  96. kimi_cli/utils/aioqueue.py +72 -0
  97. kimi_cli/utils/broadcast.py +37 -0
  98. kimi_cli/utils/changelog.py +12 -7
  99. kimi_cli/utils/clipboard.py +12 -0
  100. kimi_cli/utils/datetime.py +37 -0
  101. kimi_cli/utils/environment.py +58 -0
  102. kimi_cli/utils/envvar.py +12 -0
  103. kimi_cli/utils/frontmatter.py +44 -0
  104. kimi_cli/utils/logging.py +7 -6
  105. kimi_cli/utils/message.py +9 -14
  106. kimi_cli/utils/path.py +99 -9
  107. kimi_cli/utils/pyinstaller.py +6 -0
  108. kimi_cli/utils/rich/__init__.py +33 -0
  109. kimi_cli/utils/rich/columns.py +99 -0
  110. kimi_cli/utils/rich/markdown.py +961 -0
  111. kimi_cli/utils/rich/markdown_sample.md +108 -0
  112. kimi_cli/utils/rich/markdown_sample_short.md +2 -0
  113. kimi_cli/utils/signals.py +2 -0
  114. kimi_cli/utils/slashcmd.py +124 -0
  115. kimi_cli/utils/string.py +2 -0
  116. kimi_cli/utils/term.py +168 -0
  117. kimi_cli/utils/typing.py +20 -0
  118. kimi_cli/wire/__init__.py +98 -29
  119. kimi_cli/wire/serde.py +45 -0
  120. kimi_cli/wire/types.py +299 -0
  121. kimi_cli-0.78.dist-info/METADATA +200 -0
  122. kimi_cli-0.78.dist-info/RECORD +135 -0
  123. kimi_cli-0.78.dist-info/entry_points.txt +4 -0
  124. kimi_cli/cli.py +0 -250
  125. kimi_cli/soul/runtime.py +0 -96
  126. kimi_cli/tools/bash/__init__.py +0 -99
  127. kimi_cli/tools/file/patch.md +0 -8
  128. kimi_cli/tools/file/patch.py +0 -143
  129. kimi_cli/tools/mcp.py +0 -85
  130. kimi_cli/ui/shell/liveview.py +0 -386
  131. kimi_cli/ui/shell/metacmd.py +0 -262
  132. kimi_cli/wire/message.py +0 -91
  133. kimi_cli-0.44.dist-info/METADATA +0 -188
  134. kimi_cli-0.44.dist-info/RECORD +0 -89
  135. kimi_cli-0.44.dist-info/entry_points.txt +0 -3
  136. /kimi_cli/tools/{task → multiagent}/task.md +0 -0
  137. {kimi_cli-0.44.dist-info → kimi_cli-0.78.dist-info}/WHEEL +0 -0
kimi_cli/CHANGELOG.md CHANGED
@@ -9,7 +9,316 @@ Internal builds may append content to the Unreleased section.
9
9
  Only write entries that are worth mentioning to users.
10
10
  -->
11
11
 
12
- ## [0.44] - 2025-10-30
12
+ ## Unreleased
13
+
14
+ ## 0.78 (2026-01-16)
15
+
16
+ - CLI: Add D2 flowchart format support for Prompt Flow (`.d2` extension)
17
+
18
+ ## 0.77 (2026-01-15)
19
+
20
+ - Shell: Fix line breaking in `/help` and `/changelog` fullscreen pager display
21
+ - Shell: Use `/model` to toggle thinking mode instead of Tab key
22
+ - Config: Add `default_thinking` config option (need to run `/model` to select thinking mode after upgrade)
23
+ - LLM: Add `always_thinking` capability for models that always use thinking mode
24
+ - CLI: Rename `--command`/`-c` to `--prompt`/`-p`, keep `--command`/`-c` as alias, remove `--query`/`-q`
25
+ - Wire: Fix approval requests not responding properly in Wire mode
26
+ - CLI: Add `--prompt-flow` option to load a Mermaid flowchart file as a Prompt Flow
27
+ - Core: Add `/begin` slash command if a Prompt Flow is loaded to start the flow
28
+ - Core: Replace Ralph Loop with Prompt Flow-based implementation
29
+
30
+ ## 0.76 (2026-01-12)
31
+
32
+ - Tool: Make `ReadFile` tool description reflect model capabilities for image/video support
33
+ - Tool: Fix TypeScript files (`.ts`, `.tsx`, `.mts`, `.cts`) being misidentified as video files
34
+ - Shell: Allow slash commands (`/help`, `/exit`, `/version`, `/changelog`, `/feedback`) in shell mode
35
+ - Shell: Improve `/help` with fullscreen pager, showing slash commands, skills, and keyboard shortcuts
36
+ - Shell: Improve `/changelog` and `/mcp` display with consistent bullet-style formatting
37
+ - Shell: Show current model name in the bottom status bar
38
+ - Shell: Add `Ctrl-/` shortcut to show help
39
+
40
+ ## 0.75 (2026-01-09)
41
+
42
+ - Tool: Improve `ReadFile` tool description
43
+ - Skills: Add built-in `kimi-cli-help` skill to answer Kimi CLI usage and configuration questions
44
+
45
+ ## 0.74 (2026-01-09)
46
+
47
+ - ACP: Allow ACP clients to select and switch models (with thinking variants)
48
+ - ACP: Add `terminal-auth` authentication method for setup flow
49
+ - CLI: Deprecate `--acp` option in favor of `kimi acp` subcommand
50
+ - Tool: Support reading image and video files in `ReadFile` tool
51
+
52
+ ## 0.73 (2026-01-09)
53
+
54
+ - Skills: Add built-in skill-creator skill shipped with the package
55
+ - Tool: Expand `~` to the home directory in `ReadFile` paths
56
+ - MCP: Ensure MCP tools finish loading before starting the agent loop
57
+ - Wire: Fix Wire mode failing to accept valid `cancel` requests
58
+ - Setup: Allow `/model` to switch between all available models for the selected provider
59
+ - Lib: Re-export all Wire message types from `kimi_cli.wire.types`, as a replacement of `kimi_cli.wire.message`
60
+ - Loop: Add `max_ralph_iterations` loop control config to limit extra Ralph iterations
61
+ - Config: Rename `max_steps_per_run` to `max_steps_per_turn` in loop control config (backward-compatible)
62
+ - CLI: Add `--max-steps-per-turn`, `--max-retries-per-step` and `--max-ralph-iterations` options to override loop control config
63
+ - SlashCmd: Make `/yolo` toggle auto-approve mode
64
+ - UI: Show a YOLO badge in the shell prompt
65
+
66
+ ## 0.72 (2026-01-04)
67
+
68
+ - Python: Fix installation on Python 3.14.
69
+
70
+ ## 0.71 (2026-01-04)
71
+
72
+ - ACP: Route file reads/writes and shell commands through ACP clients for synced edits/output
73
+ - Shell: Add `/model` slash command to switch default models and reload when using the default config
74
+ - Skills: Add `/skill:<name>` slash commands to load `SKILL.md` instructions on demand
75
+ - CLI: Add `kimi info` subcommand for version/protocol details (supports `--json`)
76
+ - CLI: Add `kimi term` to launch the Toad terminal UI
77
+ - Python: Bump the default tooling/CI version to 3.14
78
+
79
+ ## 0.70 (2025-12-31)
80
+
81
+ - CLI: Add `--final-message-only` (and `--quiet` alias) to only output the final assistant message in print UI
82
+ - LLM: Add `video_in` model capability and support video inputs
83
+
84
+ ## 0.69 (2025-12-29)
85
+
86
+ - Core: Support discovering skills in `~/.kimi/skills` or `~/.claude/skills`
87
+ - Python: Lower the minimum required Python version to 3.12
88
+ - Nix: Add flake packaging; install with `nix profile install .#kimi-cli` or run `nix run .#kimi-cli`
89
+ - CLI: Add `kimi-cli` script alias for invoking the CLI; can be run via `uvx kimi-cli`
90
+ - Lib: Move LLM config validation into `create_llm` and return `None` when missing config
91
+
92
+ ## 0.68 (2025-12-24)
93
+
94
+ - CLI: Add `--config` and `--config-file` options to pass in config JSON/TOML
95
+ - Core: Allow `Config` in addition to `Path` for the `config` parameter of `KimiCLI.create`
96
+ - Tool: Include diff display blocks in `WriteFile` and `StrReplaceFile` approvals/results
97
+ - Wire: Add display blocks to approval requests (including diffs) with backward-compatible defaults
98
+ - ACP: Show file diff previews in tool results and approval prompts
99
+ - ACP: Connect to MCP servers managed by ACP clients
100
+ - ACP: Run shell commands in ACP client terminal if supported
101
+ - Lib: Add `KimiToolset.find` method to find tools by class or name
102
+ - Lib: Add `ToolResultBuilder.display` method to append display blocks to tool results
103
+ - MCP: Add `kimi mcp auth` and related subcommands to manage MCP authorization
104
+
105
+ ## 0.67 (2025-12-22)
106
+
107
+ - ACP: Advertise slash commands in single-session ACP mode (`kimi --acp`)
108
+ - MCP: Add `mcp.client` config section to configure MCP tool call timeout and other future options
109
+ - Core: Improve default system prompt and `ReadFile` tool
110
+ - UI: Fix Ctrl-C not working in some rare cases
111
+
112
+ ## 0.66 (2025-12-19)
113
+
114
+ - Lib: Provide `token_usage` and `message_id` in `StatusUpdate` Wire message
115
+ - Lib: Add `KimiToolset.load_tools` method to load tools with dependency injection
116
+ - Lib: Add `KimiToolset.load_mcp_tools` method to load MCP tools
117
+ - Lib: Move `MCPTool` from `kimi_cli.tools.mcp` to `kimi_cli.soul.toolset`
118
+ - Lib: Add `InvalidToolError`, `MCPConfigError` and `MCPRuntimeError`
119
+ - Lib: Make the detailed Kimi CLI exception classes extend `ValueError` or `RuntimeError`
120
+ - Lib: Allow passing validated `list[fastmcp.mcp_config.MCPConfig]` as `mcp_configs` for `KimiCLI.create` and `load_agent`
121
+ - Lib: Fix exception raising for `KimiCLI.create`, `load_agent`, `KimiToolset.load_tools` and `KimiToolset.load_mcp_tools`
122
+ - LLM: Add provider type `vertexai` to support Vertex AI
123
+ - LLM: Rename Gemini Developer API provider type from `google_genai` to `gemini`
124
+ - Config: Migrate config file from JSON to TOML
125
+ - MCP: Connect to MCP servers in background and parallel to reduce startup time
126
+ - MCP: Add `mcp-session-id` HTTP header when connecting to MCP servers
127
+ - Lib: Split slash commands (prev "meta commands") into two groups: Shell-level and KimiSoul-level
128
+ - Lib: Add `available_slash_commands` property to `Soul` protocol
129
+ - ACP: Advertise slash commands `/init`, `/compact` and `/yolo` to ACP clients
130
+ - SlashCmd: Add `/mcp` slash command to display MCP server and tool status
131
+
132
+ ## 0.65 (2025-12-16)
133
+
134
+ - Lib: Support creating named sessions via `Session.create(work_dir, session_id)`
135
+ - CLI: Automatically create new session when specified session ID is not found
136
+ - CLI: Delete empty sessions on exit and ignore sessions whose context file is empty when listing
137
+ - UI: Improve session replaying
138
+ - Lib: Add `model_config: LLMModel | None` and `provider_config: LLMProvider | None` properties to `LLM` class
139
+ - MetaCmd: Add `/usage` meta command to show API usage for Kimi Code users
140
+
141
+ ## 0.64 (2025-12-15)
142
+
143
+ - UI: Fix UTF-16 surrogate characters input on Windows
144
+ - Core: Add `/sessions` meta command to list existing sessions and switch to a selected one
145
+ - CLI: Add `--session/-S` option to specify session ID to resume
146
+ - MCP: Add `kimi mcp` subcommand group to manage global MCP config file `~/.kimi/mcp.json`
147
+
148
+ ## 0.63 (2025-12-12)
149
+
150
+ - Tool: Fix `FetchURL` tool incorrect output when fetching via service fails
151
+ - Tool: Use `bash` instead of `sh` in `Shell` tool for better compatibility
152
+ - Tool: Fix `Grep` tool unicode decoding error on Windows
153
+ - ACP: Support ACP session continuation (list/load sessions) with `kimi acp` subcommand
154
+ - Lib: Add `Session.find` and `Session.list` static methods to find and list sessions
155
+ - ACP: Update agent plans on the client side when `SetTodoList` tool is called
156
+ - UI: Prevent normal messages starting with `/` from being treated as meta commands
157
+
158
+ ## 0.62 (2025-12-08)
159
+
160
+ - ACP: Fix tool results (including Shell tool output) not being displayed in ACP clients like Zed
161
+ - ACP: Fix compatibility with the latest version of Zed IDE (0.215.3)
162
+ - Tool: Use PowerShell instead of CMD on Windows for better usability
163
+ - Core: Fix startup crash when there is broken symbolic link in the working directory
164
+ - Core: Add builtin `okabe` agent file with `SendDMail` tool enabled
165
+ - CLI: Add `--agent` option to specify builtin agents like `default` and `okabe`
166
+ - Core: Improve compaction logic to better preserve relevant information
167
+
168
+ ## 0.61 (2025-12-04)
169
+
170
+ - Lib: Fix logging when used as a library
171
+ - Tool: Harden file path check to protect against shared-prefix escape
172
+ - LLM: Improve compatibility with some third-party OpenAI Responses and Anthropic API providers
173
+
174
+ ## 0.60 (2025-12-01)
175
+
176
+ - LLM: Fix interleaved thinking for Kimi and OpenAI-compatible providers
177
+
178
+ ## 0.59 (2025-11-28)
179
+
180
+ - Core: Move context file location to `.kimi/sessions/{workdir_md5}/{session_id}/context.jsonl`
181
+ - Lib: Move `WireMessage` type alias to `kimi_cli.wire.message`
182
+ - Lib: Add `kimi_cli.wire.message.Request` type alias request messages (which currently only includes `ApprovalRequest`)
183
+ - Lib: Add `kimi_cli.wire.message.is_event`, `is_request` and `is_wire_message` utility functions to check the type of wire messages
184
+ - Lib: Add `kimi_cli.wire.serde` module for serialization and deserialization of wire messages
185
+ - Lib: Change `StatusUpdate` Wire message to not using `kimi_cli.soul.StatusSnapshot`
186
+ - Core: Record Wire messages to a JSONL file in session directory
187
+ - Core: Introduce `TurnBegin` Wire message to mark the beginning of each agent turn
188
+ - UI: Print user input again with a panel in shell mode
189
+ - Lib: Add `Session.dir` property to get the session directory path
190
+ - UI: Improve "Approve for session" experience when there are multiple parallel subagents
191
+ - Wire: Reimplement Wire server mode (which is enabled with `--wire` option)
192
+ - Lib: Rename `ShellApp` to `Shell`, `PrintApp` to `Print`, `ACPServer` to `ACP` and `WireServer` to `WireOverStdio` for better consistency
193
+ - Lib: Rename `KimiCLI.run_shell_mode` to `run_shell`, `run_print_mode` to `run_print`, `run_acp_server` to `run_acp`, and `run_wire_server` to `run_wire_stdio` for better consistency
194
+ - Lib: Add `KimiCLI.run` method to run a turn with given user input and yield Wire messages
195
+ - Print: Fix stream-json print mode not flushing output properly
196
+ - LLM: Improve compatibility with some OpenAI and Anthropic API providers
197
+ - Core: Fix chat provider error after compaction when using Anthropic API
198
+
199
+ ## 0.58 (2025-11-21)
200
+
201
+ - Core: Fix field inheritance of agent spec files when using `extend`
202
+ - Core: Support using MCP tools in subagents
203
+ - Tool: Add `CreateSubagent` tool to create subagents dynamically (not enabled in default agent)
204
+ - Tool: Use MoonshotFetch service in `FetchURL` tool for Kimi Code plan
205
+ - Tool: Truncate Grep tool output to avoid exceeding token limit
206
+
207
+ ## 0.57 (2025-11-20)
208
+
209
+ - LLM: Fix Google GenAI provider when thinking toggle is not on
210
+ - UI: Improve approval request wordings
211
+ - Tool: Remove `PatchFile` tool
212
+ - Tool: Rename `Bash`/`CMD` tool to `Shell` tool
213
+ - Tool: Move `Task` tool to `kimi_cli.tools.multiagent` module
214
+
215
+ ## 0.56 (2025-11-19)
216
+
217
+ - LLM: Add support for Google GenAI provider
218
+
219
+ ## 0.55 (2025-11-18)
220
+
221
+ - Lib: Add `kimi_cli.app.enable_logging` function to enable logging when directly using `KimiCLI` class
222
+ - Core: Fix relative path resolution in agent spec files
223
+ - Core: Prevent from panic when LLM API connection failed
224
+ - Tool: Optimize `FetchURL` tool for better content extraction
225
+ - Tool: Increase MCP tool call timeout to 60 seconds
226
+ - Tool: Provide better error message in `Glob` tool when pattern is `**`
227
+ - ACP: Fix thinking content not displayed properly
228
+ - UI: Minor UI improvements in shell mode
229
+
230
+ ## 0.54 (2025-11-13)
231
+
232
+ - Lib: Move `WireMessage` from `kimi_cli.wire.message` to `kimi_cli.wire`
233
+ - Print: Fix `stream-json` output format missing the last assistant message
234
+ - UI: Add warning when API key is overridden by `KIMI_API_KEY` environment variable
235
+ - UI: Make a bell sound when there's an approval request
236
+ - Core: Fix context compaction and clearing on Windows
237
+
238
+ ## 0.53 (2025-11-12)
239
+
240
+ - UI: Remove unnecessary trailing spaces in console output
241
+ - Core: Throw error when there are unsupported message parts
242
+ - MetaCmd: Add `/yolo` meta command to enable YOLO mode after startup
243
+ - Tool: Add approval request for MCP tools
244
+ - Tool: Disable `Think` tool in default agent
245
+ - CLI: Restore thinking mode from last time when `--thinking` is not specified
246
+ - CLI: Fix `/reload` not working in binary packed by PyInstaller
247
+
248
+ ## 0.52 (2025-11-10)
249
+
250
+ - CLI: Remove `--ui` option in favor of `--print`, `--acp`, and `--wire` flags (shell is still the default)
251
+ - CLI: More intuitive session continuation behavior
252
+ - Core: Add retry for LLM empty responses
253
+ - Tool: Change `Bash` tool to `CMD` tool on Windows
254
+ - UI: Fix completion after backspacing
255
+ - UI: Fix code block rendering issues on light background colors
256
+
257
+ ## 0.51 (2025-11-08)
258
+
259
+ - Lib: Rename `Soul.model` to `Soul.model_name`
260
+ - Lib: Rename `LLMModelCapability` to `ModelCapability` and move to `kimi_cli.llm`
261
+ - Lib: Add `"thinking"` to `ModelCapability`
262
+ - Lib: Remove `LLM.supports_image_in` property
263
+ - Lib: Add required `Soul.model_capabilities` property
264
+ - Lib: Rename `KimiSoul.set_thinking_mode` to `KimiSoul.set_thinking`
265
+ - Lib: Add `KimiSoul.thinking` property
266
+ - UI: Better checks and notices for LLM model capabilities
267
+ - UI: Clear the screen for `/clear` meta command
268
+ - Tool: Support auto-downloading ripgrep on Windows
269
+ - CLI: Add `--thinking` option to start in thinking mode
270
+ - ACP: Support thinking content in ACP mode
271
+
272
+ ## 0.50 (2025-11-07)
273
+
274
+ ### Changed
275
+
276
+ - Improve UI look and feel
277
+ - Improve Task tool observability
278
+
279
+ ## 0.49 (2025-11-06)
280
+
281
+ ### Fixed
282
+
283
+ - Minor UX improvements
284
+
285
+ ## 0.48 (2025-11-06)
286
+
287
+ ### Added
288
+
289
+ - Support Kimi K2 thinking mode
290
+
291
+ ## 0.47 (2025-11-05)
292
+
293
+ ### Fixed
294
+
295
+ - Fix Ctrl-W not working in some environments
296
+ - Do not load SearchWeb tool when the search service is not configured
297
+
298
+ ## 0.46 (2025-11-03)
299
+
300
+ ### Added
301
+
302
+ - Introduce Wire over stdio for local IPC (experimental, subject to change)
303
+ - Support Anthropic provider type
304
+
305
+ ### Fixed
306
+
307
+ - Fix binary packed by PyInstaller not working due to wrong entrypoint
308
+
309
+ ## 0.45 (2025-10-31)
310
+
311
+ ### Added
312
+
313
+ - Allow `KIMI_MODEL_CAPABILITIES` environment variable to override model capabilities
314
+ - Add `--no-markdown` option to disable markdown rendering
315
+ - Support `openai_responses` LLM provider type
316
+
317
+ ### Fixed
318
+
319
+ - Fix crash when continuing a session
320
+
321
+ ## 0.44 (2025-10-30)
13
322
 
14
323
  ### Changed
15
324
 
@@ -19,7 +328,7 @@ Only write entries that are worth mentioning to users.
19
328
 
20
329
  - Fix potential invalid bytes in user input
21
330
 
22
- ## [0.43] - 2025-10-30
331
+ ## 0.43 (2025-10-30)
23
332
 
24
333
  ### Added
25
334
 
@@ -32,7 +341,7 @@ Only write entries that are worth mentioning to users.
32
341
 
33
342
  - Ensure new line after executing shell commands
34
343
 
35
- ## [0.42] - 2025-10-28
344
+ ## 0.42 (2025-10-28)
36
345
 
37
346
  ### Added
38
347
 
@@ -47,7 +356,7 @@ Only write entries that are worth mentioning to users.
47
356
 
48
357
  - Fix ACP server `no attribute` error
49
358
 
50
- ## [0.41] - 2025-10-26
359
+ ## 0.41 (2025-10-26)
51
360
 
52
361
  ### Fixed
53
362
 
@@ -59,7 +368,7 @@ Only write entries that are worth mentioning to users.
59
368
  - Disable reading command/query from stdin in shell mode
60
369
  - Clarify the API platform selection in `/setup` meta command
61
370
 
62
- ## [0.40] - 2025-10-24
371
+ ## 0.40 (2025-10-24)
63
372
 
64
373
  ### Added
65
374
 
@@ -70,24 +379,24 @@ Only write entries that are worth mentioning to users.
70
379
  - Fix SSL certificate verification error in some rare cases
71
380
  - Fix possible decoding error in Bash tool
72
381
 
73
- ## [0.39] - 2025-10-24
382
+ ## 0.39 (2025-10-24)
74
383
 
75
384
  ### Fixed
76
385
 
77
386
  - Fix context compaction threshold check
78
387
  - Fix panic when SOCKS proxy is set in the shell session
79
388
 
80
- ## [0.38] - 2025-10-24
389
+ ## 0.38 (2025-10-24)
81
390
 
82
391
  - Minor UX improvements
83
392
 
84
- ## [0.37] - 2025-10-24
393
+ ## 0.37 (2025-10-24)
85
394
 
86
395
  ### Fixed
87
396
 
88
397
  - Fix update checking
89
398
 
90
- ## [0.36] - 2025-10-24
399
+ ## 0.36 (2025-10-24)
91
400
 
92
401
  ### Added
93
402
 
@@ -101,7 +410,7 @@ Only write entries that are worth mentioning to users.
101
410
 
102
411
  - Fix "unknown error" message when interrupting a meta command
103
412
 
104
- ## [0.35] - 2025-10-22
413
+ ## 0.35 (2025-10-22)
105
414
 
106
415
  ### Changed
107
416
 
@@ -110,7 +419,7 @@ Only write entries that are worth mentioning to users.
110
419
  - Always approve tool calls in `--print` mode
111
420
  - Add `/feedback` meta command
112
421
 
113
- ## [0.34] - 2025-10-21
422
+ ## 0.34 (2025-10-21)
114
423
 
115
424
  ### Added
116
425
 
@@ -119,7 +428,7 @@ Only write entries that are worth mentioning to users.
119
428
  - Add `/setup` meta command to setup LLM provider and model
120
429
  - Add `/reload` meta command to reload configuration
121
430
 
122
- ## [0.33] - 2025-10-18
431
+ ## 0.33 (2025-10-18)
123
432
 
124
433
  ### Added
125
434
 
@@ -132,7 +441,7 @@ Only write entries that are worth mentioning to users.
132
441
  - Fix logging redirection
133
442
  - Merge duplicated input histories
134
443
 
135
- ## [0.32] - 2025-10-16
444
+ ## 0.32 (2025-10-16)
136
445
 
137
446
  ### Added
138
447
 
@@ -143,13 +452,13 @@ Only write entries that are worth mentioning to users.
143
452
 
144
453
  - Do not auto-complete meta command in the middle of user input
145
454
 
146
- ## [0.31] - 2025-10-14
455
+ ## 0.31 (2025-10-14)
147
456
 
148
457
  ### Fixed
149
458
 
150
459
  - Fix step interrupting by Ctrl-C, for real
151
460
 
152
- ## [0.30] - 2025-10-14
461
+ ## 0.30 (2025-10-14)
153
462
 
154
463
  ### Added
155
464
 
@@ -159,7 +468,7 @@ Only write entries that are worth mentioning to users.
159
468
 
160
469
  - Fix `/clear` meta command when context is empty
161
470
 
162
- ## [0.29] - 2025-10-14
471
+ ## 0.29 (2025-10-14)
163
472
 
164
473
  ### Added
165
474
 
@@ -175,7 +484,7 @@ Only write entries that are worth mentioning to users.
175
484
 
176
485
  - Disable `SendDMail` tool in Kimi Koder agent
177
486
 
178
- ## [0.28] - 2025-10-13
487
+ ## 0.28 (2025-10-13)
179
488
 
180
489
  ### Added
181
490
 
@@ -186,7 +495,7 @@ Only write entries that are worth mentioning to users.
186
495
 
187
496
  - Fix `ReadFile` output
188
497
 
189
- ## [0.27] - 2025-10-11
498
+ ## 0.27 (2025-10-11)
190
499
 
191
500
  ### Added
192
501
 
@@ -196,13 +505,13 @@ Only write entries that are worth mentioning to users.
196
505
 
197
506
  - Rename `--agent` option to `--agent-file`
198
507
 
199
- ## [0.26] - 2025-10-11
508
+ ## 0.26 (2025-10-11)
200
509
 
201
510
  ### Fixed
202
511
 
203
512
  - Fix possible encoding error in `--output-format stream-json` mode
204
513
 
205
- ## [0.25] - 2025-10-11
514
+ ## 0.25 (2025-10-11)
206
515
 
207
516
  ### Changed
208
517
 
@@ -211,13 +520,13 @@ Only write entries that are worth mentioning to users.
211
520
  - Further decouple `App` with `Soul`
212
521
  - Split `Soul` protocol and `KimiSoul` implementation for better modularity
213
522
 
214
- ## [0.24] - 2025-10-10
523
+ ## 0.24 (2025-10-10)
215
524
 
216
525
  ### Fixed
217
526
 
218
527
  - Fix ACP `cancel` method
219
528
 
220
- ## [0.23] - 2025-10-09
529
+ ## 0.23 (2025-10-09)
221
530
 
222
531
  ### Added
223
532
 
@@ -225,14 +534,14 @@ Only write entries that are worth mentioning to users.
225
534
  - Add `exclude_tools` field to agent file to support excluding tools
226
535
  - Add `subagents` field to agent file to support defining subagents
227
536
 
228
- ## [0.22] - 2025-10-09
537
+ ## 0.22 (2025-10-09)
229
538
 
230
539
  ### Changed
231
540
 
232
541
  - Improve `SearchWeb` and `FetchURL` tool call visualization
233
542
  - Improve search result output format
234
543
 
235
- ## [0.21] - 2025-10-09
544
+ ## 0.21 (2025-10-09)
236
545
 
237
546
  ### Added
238
547
 
@@ -251,13 +560,13 @@ Only write entries that are worth mentioning to users.
251
560
  - Improve tool descriptions
252
561
  - Improve tool output truncation
253
562
 
254
- ## [0.20] - 2025-09-30
563
+ ## 0.20 (2025-09-30)
255
564
 
256
565
  ### Added
257
566
 
258
567
  - Add `--ui acp` option to start Agent Client Protocol (ACP) server
259
568
 
260
- ## [0.19] - 2025-09-29
569
+ ## 0.19 (2025-09-29)
261
570
 
262
571
  ### Added
263
572
 
@@ -268,7 +577,7 @@ Only write entries that are worth mentioning to users.
268
577
 
269
578
  - Do not include `CHECKPOINT` messages in the context when `SendDMail` is not enabled
270
579
 
271
- ## [0.18] - 2025-09-29
580
+ ## 0.18 (2025-09-29)
272
581
 
273
582
  ### Added
274
583
 
@@ -278,7 +587,7 @@ Only write entries that are worth mentioning to users.
278
587
 
279
588
  - Improve `ReadFile` tool description
280
589
 
281
- ## [0.17] - 2025-09-29
590
+ ## 0.17 (2025-09-29)
282
591
 
283
592
  ### Fixed
284
593
 
@@ -291,7 +600,7 @@ Only write entries that are worth mentioning to users.
291
600
 
292
601
  - Increase default max-steps-per-run to 100
293
602
 
294
- ## [0.16.0] - 2025-09-26
603
+ ## 0.16.0 (2025-09-26)
295
604
 
296
605
  ### Tools
297
606
 
@@ -301,11 +610,11 @@ Only write entries that are worth mentioning to users.
301
610
 
302
611
  - Session history file can be specified via `_history_file` parameter when creating a new session
303
612
 
304
- ## [0.15.0] - 2025-09-26
613
+ ## 0.15.0 (2025-09-26)
305
614
 
306
615
  - Improve tool robustness
307
616
 
308
- ## [0.14.0] - 2025-09-25
617
+ ## 0.14.0 (2025-09-25)
309
618
 
310
619
  ### Added
311
620
 
@@ -315,7 +624,7 @@ Only write entries that are worth mentioning to users.
315
624
 
316
625
  - Emphasize the use of the same language as the user
317
626
 
318
- ## [0.13.0] - 2025-09-25
627
+ ## 0.13.0 (2025-09-25)
319
628
 
320
629
  ### Added
321
630
 
@@ -327,7 +636,7 @@ Only write entries that are worth mentioning to users.
327
636
  - Better system prompt and tool description
328
637
  - Better error messages for LLM
329
638
 
330
- ## [0.12.0] - 2025-09-24
639
+ ## 0.12.0 (2025-09-24)
331
640
 
332
641
  ### Added
333
642
 
@@ -338,13 +647,13 @@ Only write entries that are worth mentioning to users.
338
647
 
339
648
  - Catch EOF error for better experience
340
649
 
341
- ## [0.11.1] - 2025-09-22
650
+ ## 0.11.1 (2025-09-22)
342
651
 
343
652
  ### Changed
344
653
 
345
654
  - Rename `max_retry_per_step` to `max_retries_per_step`
346
655
 
347
- ## [0.11.0] - 2025-09-22
656
+ ## 0.11.0 (2025-09-22)
348
657
 
349
658
  ### Added
350
659
 
@@ -357,12 +666,12 @@ Only write entries that are worth mentioning to users.
357
666
  - Better extreme cases handling in `read_file` tool
358
667
  - Prevent Ctrl-C from exiting the CLI, force the use of Ctrl-D or `exit` instead
359
668
 
360
- ## [0.10.1] - 2025-09-18
669
+ ## 0.10.1 (2025-09-18)
361
670
 
362
671
  - Make slash commands look slightly better
363
672
  - Improve `glob` tool
364
673
 
365
- ## [0.10.0] - 2025-09-17
674
+ ## 0.10.0 (2025-09-17)
366
675
 
367
676
  ### Added
368
677
 
@@ -377,15 +686,15 @@ Only write entries that are worth mentioning to users.
377
686
  - Improve session management
378
687
  - Restore context usage when `--continue` a session
379
688
 
380
- ## [0.9.0] - 2025-09-15
689
+ ## 0.9.0 (2025-09-15)
381
690
 
382
691
  - Remove `--session` and `--continue` options
383
692
 
384
- ## [0.8.1] - 2025-09-14
693
+ ## 0.8.1 (2025-09-14)
385
694
 
386
695
  - Fix config model dumping
387
696
 
388
- ## [0.8.0] - 2025-09-14
697
+ ## 0.8.0 (2025-09-14)
389
698
 
390
699
  - Add `shell` tool and basic system prompt
391
700
  - Add tool call visualization
kimi_cli/__init__.py CHANGED
@@ -0,0 +1,6 @@
1
+ from loguru import logger
2
+
3
+ # Disable logging by default for library usage.
4
+ # Application entry points (e.g., kimi_cli.cli) should call logger.enable("kimi_cli")
5
+ # to enable logging.
6
+ logger.disable("kimi_cli")