Commit 963d58d
refactor: rewrite entire project from Python to Bun + TypeScript + React Ink
Complete rewrite of kimi-cli from Python (Typer + Rich + prompt-toolkit) to
Bun + TypeScript + React Ink TUI framework. Removes all web UI code.
Key changes:
- Runtime: Python → Bun (TypeScript)
- CLI framework: Typer → Commander.js
- TUI: Rich + prompt-toolkit → React Ink
- Validation: Pydantic → Zod v4
- LLM SDK: kosong → @anthropic-ai/sdk, openai, @google/genai
- File I/O: KaosPath → Bun.file / Bun.write
- Shell exec: kaos.exec → Bun.spawn
Architecture preserved with matching directory structure:
- soul/ — Core agent loop (kimisoul, agent, context, toolset, compaction)
- tools/ — All tool implementations (file, shell, web, think, plan, etc.)
- wire/ — Wire protocol for UI↔Agent communication
- ui/shell/ — React Ink TUI components
- cli/ — CLI entry point and routing
- config, session, hooks, auth, notifications, approval_runtime
67 TypeScript files, 0 type errors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3bad72e commit 963d58d
825 files changed
Lines changed: 9367 additions & 180940 deletions
File tree
- klips
- packages
- kaos
- src/kaos
- tests
- kimi-code
- src/kimi_code
- kosong
- src/kosong
- chat_provider
- echo
- contrib
- chat_provider
- context
- tooling
- utils
- tests
- api_snapshot_tests
- sdks/kimi-sdk
- src/kimi_sdk
- tests
- src/kimi_cli
- acp
- agents/okabe
- approval_runtime
- auth
- background
- cli
- deps
- hooks
- notifications
- plugin
- prompts
- skills
- kimi-cli-help
- skill-creator
- skill
- flow
- soul
- dynamic_injections
- subagents
- tools
- agent
- ask_user
- background
- dmail
- file
- plan
- shell
- think
- todo
- web
- ui
- acp
- components
- hooks
- print
- shell
- utils
- rich
- vis
- api
- web
- api
- runner
- store
- wire
- tests_ai
- scripts
- tests_e2e
- tests
- acp
- auth
- background
- core
- e2e
- hooks
- notifications
- tools
- ui_and_conv
- ui
- utils
- vis
- web
- vis
- src
- components
- ui
- features
- agents-panel
- context-viewer
- dual-view
- session-picker
- sessions-explorer
- state-viewer
- statistics
- wire-viewer
- hooks
- lib
- web
- public
- scripts
- src
- components
- ai-elements
- ui
- diff
- utils
- config
- features
- chat
- components
- prompt-toolbar
- sessions
- tool
- components
- hooks
- lib
- api
- .openapi-generator
- apis
- docs
- models
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| 2 | + | |
8 | 3 | | |
9 | | - | |
10 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
11 | 8 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
19 | 12 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
29 | 24 | | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
32 | 29 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 30 | + | |
| 31 | + | |
36 | 32 | | |
37 | | - | |
| 33 | + | |
38 | 34 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
This file was deleted.
0 commit comments