Repository navigation
Closed
1 / 11 of 1 issue completedDescription
Feature: Refactoring to Multiplatform Project (MPP)
Description
Refactor the AutoDev project to support Kotlin Multiplatform (MPP) architecture, enabling code sharing across JVM, JavaScript, and WebAssembly platforms. This major refactoring introduces a new mpp-core module that contains platform-independent core functionality.
Motivation
The current architecture is tightly coupled with JVM and IntelliJ Platform APIs, making it difficult to:
- Share core logic across different platforms (JVM, JS, WASM)
- Test business logic independently from IDE-specific code
- Support web-based or standalone tools using the same DevIn language parser
- Enable cross-platform agent tools and compilation
By moving to a multiplatform architecture, we can:
- Improve code reusability and maintainability
- Enable platform-independent testing
- Support future web-based interfaces
- Reduce external dependencies
Future Work
- Migrate more core functionality to mpp-core
- Expand agent tool ecosystem for different platforms
- Koog integration
- Http Request with Ktor (https://github.com/JetBrains/koog/blob/develop/koog-ktor/build.gradle.kts)
- Create standalone CLI tools using native compilation
- TUI with https://github.com/JakeWharton/mosaic or https://github.com/vadimdemedes/ink
- GUI with Swing + FlatLaf + Monaco Editor
- Implement web-based DevIn editor using JS target
- Normal code editor without highlight (https://github.com/MohamedRejeb/Compose-Rich-Editor)
- Add more platform-specific optimizations
FEATURES
Input
优化 AI Output 的过程
- AI output 的时候,应该要自动滚动
- 改进 DevInEditorInput 的交互,在 AI 开始返回结果后,应该把 DevInEditorInput 变成一行输入的高度,然后移到页面的最下方
- debug 改成一个小的 icon 在页面的右上角(Debug 可以使用 DevInEditorDemo 在弹窗里查看
Tool Refactoring
- InsCommand refs to Gemini or Codex ? (/Users/phodal/test/gemini-cli/packages/core/src/tools)
- 优先级:grep, shell, glob, write-file, read file, with https://github.com/Kotlin/kotlinx-io
- edit,
- memory, smart-edit, memory ,modfiable
Sketch Render View
- Diff Changes
- Mermaid
- ...
Log & Metric
- Logging: https://github.com/oshai/kotlin-logging (io.github.oshai:kotlin-logging),参考 https://github.com/JetBrains/koog/blob/9d6e757c7ed6989253ddb1fea19470344ac11a3d/gradle/libs.versions.toml#L82
- https://kermit.touchlab.co/docs/
- https://github.com/touchlab/Kermit
CodeHighlight for Compose
成本控制
- 借助低成本模型进行必要的上下文压缩
Ai AGENT
- CodebaseInvestigatorAgent
WebView for Editor UI
- Monaco or CodeMirror
Compose Preview
CRDT
- https://avwie.github.io/creating-multiplatform-crdts
- https://github.com/CharlieTap/synk
WASM GIT
Library fetch for build.gradle.kts??
when add new deps
Worktree
AST Greps
Font support for UTF8
Reacted by Chris YANG
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(mpp-core): implement multiplatform support with Tool interface a…
feat(yaml): migrate YAML parsing to kaml library and add utility func…
feat: add main and debug entry points, implement basic lexer and pars…
chore: remove duplicate and unused JVM main entry files #453
feat: add TextSegmentProcessor and CodeBlockProcessor, enhance lexer …
test: update variable interpolation tests for correct syntax and add …
feat: replace System.currentTimeMillis() with Kotlin's Clock for time…
feat: replace choco-builder with native code implementation #453
chore(build): downgrade kotlin to 2.2.0 to fix wasm issues #453
chore(build): update kotlinx-coroutines-core to 1.10.2 and comment ou…
refactor: move MarkdownCode to mpp-core common module #453
feat(ui): add DevIns editor with variable management #453
280 remaining items
feat(mpp-ui): add iOS-specific implementations #453
feat(ios-app): add initial SwiftUI iOS app scaffold #453
chore(ios-app): add CocoaPods support and update Xcode config #453
feat(ios): add Swift MCP bridge and update iOS integration #453
chore(ios): clean up Podfiles and add build script #453
feat(ui): add DevInEditorInput preview for desktop #453
refactor(ui): comment out Agent display and slash button #453
refactor(ui): update button shape and remove comments #453
feat(ui): add desktop previews for AgentMessageList components #453
refactor(ui): move tool item components to ToolItem.kt #453
refactor(ui): move CurrentToolCallItem to ToolItem.kt #453
refactor(ui): remove description from CombinedToolItem #453
feat(terminal): add terminal emulator components #453
feat(terminal): add ANSI rendering to terminal display #453
feat(platform): unify file chooser with FileKit across platforms #453