File tree Expand file tree Collapse file tree 8 files changed +11
-8
lines changed
exts/ext-harmonyos/src/main
kotlin/cc/unitmesh/harmonyos/actions Expand file tree Collapse file tree 8 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ package cc.unitmesh.harmonyos.actions
3
3
import cc.unitmesh.devti.gui.sendToChatPanel
4
4
import cc.unitmesh.devti.intentions.action.base.ChatBaseIntention
5
5
import cc.unitmesh.devti.llms.LlmFactory
6
+ import cc.unitmesh.harmonyos.actions.auto.ArkUiContext
7
+ import cc.unitmesh.harmonyos.actions.auto.AutoArkUiFlow
8
+ import cc.unitmesh.harmonyos.actions.auto.AutoPageTask
6
9
import com.intellij.openapi.editor.Editor
7
10
import com.intellij.openapi.progress.ProgressManager
8
11
import com.intellij.openapi.progress.impl.BackgroundableProcessIndicator
9
12
import com.intellij.openapi.project.Project
10
13
import com.intellij.psi.PsiFile
11
14
12
- class AndroidPageToArkUiAction : ChatBaseIntention () {
15
+ class AutoArkUiAction : ChatBaseIntention () {
13
16
override fun priority (): Int = 900
14
17
override fun getText (): String = " Android Page to Ark UI"
15
18
override fun getFamilyName (): String = " Android Page to Ark UI"
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
data class ArkUiContext (
4
4
val selectedText : String ,
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
enum class ArkUiExample (val description : String , val example : String ) {
4
4
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
import cc.unitmesh.devti.AutoDevBundle
4
4
import cc.unitmesh.devti.flow.TaskFlow
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
import cc.unitmesh.devti.AutoDevBundle
4
4
import com.intellij.openapi.editor.Editor
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
enum class ComponentType (description : String , example : String ) {
4
4
Button (
Original file line number Diff line number Diff line change 1
- package cc.unitmesh.harmonyos.actions
1
+ package cc.unitmesh.harmonyos.actions.auto
2
2
3
3
enum class LayoutType (val description : String , val example : String ) {
4
4
Flex (
Original file line number Diff line number Diff line change 6
6
7
7
<extensions defaultExtensionNs =" cc.unitmesh" >
8
8
<autoDevIntention >
9
- <className >cc.unitmesh.harmonyos.actions.AndroidPageToArkUiAction </className >
9
+ <className >cc.unitmesh.harmonyos.actions.AutoArkUiAction </className >
10
10
<bundleName >messages.AutoDevBundle</bundleName >
11
11
<categoryKey >intention.category.llm</categoryKey >
12
12
</autoDevIntention >
You can’t perform that action at this time.
0 commit comments