Commit f13ad13
committed
refactor: complete v1→v2 migration — retire agent-core, unify on agent-core-v2
Remove the v1 engine (packages/agent-core, kaos, acp-adapter, rust-engine,
experimental-v2) and finish the v2 migration across the monorepo:
- node-sdk: rewire tests off deleted v1 internals onto config-local/legacy
copies and agent-core-v2 subpaths; drop orphaned v1-internal tests; fix
MCP fixture paths and build:dts pipeline (kaos residue, i18n d.ts)
- CLI: run-prompt unified on the v2 native runner; restore the
@moonshot-ai/kimi-agent dependency required by SEA packaging; fix
apiKey leakage in provider --json (sanitize output)
- agent-core-v2: restore goal-turn trimming regression in the SDK's
legacy copy (system_trigger/goal_continuation boundary), EXIF
display-space dimensions for native sniff, wire v1.6 with
toolCallDisplays so replay restores diff/todo previews, jimp TS
fallback for image compression when the native addon is unavailable
- kimi-agent: load the platform-suffixed native addon in dev (glob
instead of fixed name); rust-loop workspace index stays unwired (planned)
- i18n: translate 135 remaining hardcoded strings across 5 modules;
fix locale-key coverage checks and the t-call coverage script
- tests: fix 166 pre-existing failures (Windows path/process semantics,
stale assertions, snapshots, platform skips); repair docs build
(js-yaml/gray-matter conflict, unclosed HTML in a review doc) and
kimi-inspect build (missing i18n-shared dep, FetchLike typing)
Validation: typecheck/lint clean, full test suite green across all
packages and apps; SEA exe builds and runs.1 parent cf48774 commit f13ad13
1,218 files changed
Lines changed: 11955 additions & 218468 deletions
File tree
- .deploy-staging
- apps
- kimi-code
- src
- cli
- sub
- web
- update
- v2
- feedback/codebase
- i18n/locales
- migration
- native
- tui
- commands
- components
- dialogs
- messages
- tool-call
- controllers
- utils
- utils
- clipboard
- process
- test
- cli
- update
- e2e
- migration
- tui
- commands
- components
- chrome
- dialogs
- editor
- messages
- controllers
- input
- utils
- kimi-inspect
- src
- components
- audit
- i18n
- locales
- vis
- server
- src/lib
- test
- fixtures
- lib
- web
- src/lib
- vscode
- src/runtime
- test
- webview-ui/src/components
- docs
- en
- configuration
- customization
- zh
- configuration
- customization
- packages
- acp-adapter
- src
- test
- _helpers
- acp-server/test
- agent-core-v2
- docs
- scripts
- src
- _base
- utils
- agent
- contextMemory
- discussion
- externalHooks
- guardian
- llmRequester
- loop
- media
- microCompaction
- permissionPolicy
- policies
- swarm
- toolApproval
- toolExecutor
- toolRegistry
- tools
- ask-user-question
- github
- os/write
- swarm-discussion
- todo-list
- app
- capability/entries
- externalHooksRunner
- mcpConfig
- memory
- tools
- telemetry
- workflow
- builtin
- tools
- features/plan/tools/exit-plan-mode
- kosong/model
- session
- agentLifecycle
- profile
- subagent
- todo
- tool
- wire
- migration
- workspace/sessionLifecycle/internal
- test
- agent
- contextMemory
- discussion
- externalHooks
- fullCompaction
- guardian
- llmRequester
- loop
- media
- tools
- microCompaction
- permissionPolicy/policies
- plugin
- prompt
- questionTools/tools
- swarm
- task
- tools
- toolApproval
- toolResultTruncation
- tools
- github
- swarm-discussion
- undo
- app
- externalHooksRunner
- skillCatalog
- telemetry
- workflow
- features/plan
- kosong
- contract
- provider
- os/backends/node-local
- tools
- session
- agentLifecycle
- approval
- btw
- sessionLog
- todo/tools
- tool
- wire
- migration
- workspace
- sessionLifecycle
- workspaceAgentProfileLoader
- workspaceDirs
- workspaceFs
- workspaceSkillCatalog
- agent-core
- plan
- scripts
- src
- agent
- background
- compaction
- config
- context
- cron
- discussion
- goal
- injection
- permission
- policies
- plan
- records
- migration
- replay
- skill
- swarm
- tool
- turn
- usage
- base/common
- config
- di
- util
- errors
- flags
- i18n-locales
- logging
- loop
- mcp
- oauth
- plugin
- profile
- agentfile
- default
- rpc
- services
- approval
- authSummary
- auth
- config
- coreProcess
- environment
- event
- fileStore
- fs
- logger
- mcp
- message
- modelCatalog
- oauth
- prompt
- question
- session
- skill
- task
- terminal
- tool
- workspace
- session
- export
- hooks
- store
- skill
- builtin
- sub-skill
- consolidate
- review
- tools
- background
- builtin
- collaboration
- file
- github
- goal
- planning
- shell
- state
- web
- cron
- display
- policies
- providers
- support
- utils
- test
- agent
- background
- compaction
- config
- context
- cron
- harness
- discussion
- harness
- injection
- permission
- records
- migration
- turn
- base/common
- config
- di
- errors
- fixtures
- flags
- harness
- hooks
- logging
- loop
- fixtures
- mcp
- fixtures
- plugin
- profile
- rpc
- services
- session
- skill
- tools
- background
- cron
- fixtures
- planning
- policies
- providers
- utils
- i18n
- src/locales
- test
- kaos
- src
- test
- e2e
- fixtures
- kap-server
- src
- i18n-locales
- openapi
- services/messages
- transport
- ws/v1
- test
- kimi-agent
- kimi-native-tools
- src
- test
- klient
- src
- contract/agent
- core/facade
- transports/ipc
- test
- kosong/test
- e2e
- migration-legacy
- src
- sessions
- steps
- test
- sessions
- __snapshots__
- node-sdk
- examples
- scripts
- src
- config-local
- legacy
- v2
- test
- oauth/test
- protocol/src/__tests__
- scripts
- prompt-optimizer/src
- benchmark
- knowledge
- pruner
- report
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 | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| |||
159 | 171 | | |
160 | 172 | | |
161 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
457 | 456 | | |
458 | 457 | | |
459 | 458 | | |
460 | | - | |
| 459 | + | |
461 | 460 | | |
462 | 461 | | |
463 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
0 commit comments