Skip to content

Commit 99289c4

Browse files
committed
refactor(devti): rename devin to command and reorganize related files
- Rename devin package to command - Update related file paths and import statements - Refactor AutoDevFileLookupElement to new package - Update usages of BuiltinCommand, CustomCommand, and other related classes
1 parent ee80744 commit 99289c4

File tree

50 files changed

+80
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+80
-85
lines changed

core/src/main/kotlin/cc/unitmesh/devti/bridge/BridgeToolProvider.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.bridge
22

33
import cc.unitmesh.devti.agent.tool.AgentTool
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand.*
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand.*
66
import cc.unitmesh.devti.provider.toolchain.ToolchainFunctionProvider
77
import com.intellij.openapi.project.Project
88

core/src/main/kotlin/cc/unitmesh/devti/devin/InsCommand.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/InsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package cc.unitmesh.devti.devin
1+
package cc.unitmesh.devti.command
22

3-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
44

55
interface InsCommand {
66
val commandName: BuiltinCommand

core/src/main/kotlin/cc/unitmesh/devti/devin/InsCommandListener.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/InsCommandListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin
1+
package cc.unitmesh.devti.command
22

33
import com.intellij.openapi.application.ApplicationManager
44
import com.intellij.openapi.vfs.VirtualFile

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/BuiltinCommand.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/BuiltinCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin.dataprovider
1+
package cc.unitmesh.devti.command.dataprovider
22

33
import cc.unitmesh.devti.AutoDevIcons
44
import cc.unitmesh.devti.AutoDevNotifications

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/BuiltinRefactorCommand.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/BuiltinRefactorCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin.dataprovider
1+
package cc.unitmesh.devti.command.dataprovider
22

33
enum class BuiltinRefactorCommand(val funcName: String, val description: String) {
44
RENAME("rename", "Rename a file"),

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/CustomCommand.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/CustomCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin.dataprovider
1+
package cc.unitmesh.devti.command.dataprovider
22

33
import cc.unitmesh.devti.AutoDevIcons
44
import cc.unitmesh.devti.custom.team.TeamPromptsBuilder

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/FileFunc.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/FileFunc.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin.dataprovider
1+
package cc.unitmesh.devti.command.dataprovider
22

33
import com.intellij.icons.AllIcons
44
import javax.swing.Icon

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/ToolHubVariable.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/ToolHubVariable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.devin.dataprovider
1+
package cc.unitmesh.devti.command.dataprovider
22

33
import cc.unitmesh.devti.agent.custom.model.CustomAgentConfig
44
import com.intellij.openapi.project.Project

core/src/main/kotlin/cc/unitmesh/devti/gui/chat/AutoDevFileLookupElement.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/completion/AutoDevFileLookupElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.gui.chat
1+
package cc.unitmesh.devti.completion
22

33
import com.intellij.codeInsight.lookup.LookupElement
44
import com.intellij.codeInsight.lookup.LookupElementDecorator

core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputLookupManagerListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cc.unitmesh.devti.gui.chat.ui
22

3-
import cc.unitmesh.devti.gui.chat.AutoDevFileLookupElement
3+
import cc.unitmesh.devti.completion.AutoDevFileLookupElement
44
import com.intellij.codeInsight.lookup.Lookup
55
import com.intellij.codeInsight.lookup.LookupEvent
66
import com.intellij.codeInsight.lookup.LookupListener

core/src/main/kotlin/cc/unitmesh/devti/observer/agent/AgentStateService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.observer.agent
22

33
import cc.unitmesh.devti.agent.tool.AgentTool
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.llms.custom.Message
66
import cc.unitmesh.devti.llms.tokenizer.TokenizerFactory
77
import cc.unitmesh.devti.observer.plan.AgentTaskEntry

core/src/main/kotlin/cc/unitmesh/devti/provider/devins/LanguageProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.provider.devins
22

33
import cc.unitmesh.devti.agent.custom.model.CustomAgentConfig
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import com.intellij.openapi.extensions.ExtensionPointName
66
import com.intellij.openapi.project.Project
77
import com.intellij.psi.PsiFile

core/src/main/kotlin/cc/unitmesh/devti/sketch/AutoSketchMode.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package cc.unitmesh.devti.sketch
22

3-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand.*
3+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand.*
55
import cc.unitmesh.devti.observer.agent.AgentStateService
66
import cc.unitmesh.devti.provider.devins.LanguageProcessor
77
import cc.unitmesh.devti.provider.toolchain.ToolchainFunctionProvider
8-
import cc.unitmesh.devti.settings.coder.coderSetting
98
import cc.unitmesh.devti.util.parser.CodeFence
109
import com.intellij.openapi.application.ApplicationManager
1110
import com.intellij.openapi.application.runReadAction

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code/CodeHighlightSketch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cc.unitmesh.devti.sketch.ui.code
22

33
import cc.unitmesh.devti.AutoDevBundle
44
import cc.unitmesh.devti.AutoDevNotifications
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import cc.unitmesh.devti.provider.BuildSystemProvider
77
import cc.unitmesh.devti.provider.RunService
88
import cc.unitmesh.devti.sketch.ui.LangSketch

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/DevInsCompiler.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package cc.unitmesh.devti.language.compiler
33
import cc.unitmesh.devti.AutoDevNotifications
44
import cc.unitmesh.devti.agent.custom.model.CustomAgentConfig
55
import cc.unitmesh.devti.custom.compile.VariableTemplateCompiler
6-
import cc.unitmesh.devti.devin.InsCommand
6+
import cc.unitmesh.devti.command.InsCommand
77
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
88
import cc.unitmesh.devti.language.compiler.exec.*
9-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
10-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand.Companion.toolchainProviderName
11-
import cc.unitmesh.devti.devin.dataprovider.CustomCommand
12-
import cc.unitmesh.devti.devin.dataprovider.ToolHubVariable
9+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
10+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand.Companion.toolchainProviderName
11+
import cc.unitmesh.devti.command.dataprovider.CustomCommand
12+
import cc.unitmesh.devti.command.dataprovider.ToolHubVariable
1313
import cc.unitmesh.devti.language.parser.CodeBlockElement
1414
import cc.unitmesh.devti.language.psi.DevInFile
1515
import cc.unitmesh.devti.language.psi.DevInTypes

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/DevInsSketchToolchainProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cc.unitmesh.devti.language.compiler
22

3-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
44
import cc.unitmesh.devti.sketch.SketchToolchainProvider
55
import cc.unitmesh.devti.agent.tool.AgentTool
66

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/BrowseInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.agent.tool.browse.Browse
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import com.intellij.openapi.project.Project
77

88
class BrowseInsCommand(val myProject: Project, private val prop: String) : InsCommand {

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/CommitInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.git.GitUtil
66
import com.intellij.openapi.project.Project
77
import com.intellij.openapi.vcs.changes.ChangeListManager

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/DatabaseInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.AutoDevNotifications
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import com.intellij.openapi.project.Project
77
import cc.unitmesh.devti.util.parser.CodeFence
88
import cc.unitmesh.devti.provider.toolchain.ToolchainFunctionProvider

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/DirInsCommand.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.utils.lookupFile
66
import com.intellij.openapi.application.runReadAction
77
import com.intellij.openapi.progress.ProgressIndicator
@@ -14,7 +14,6 @@ import com.intellij.openapi.vcs.FileStatus
1414
import com.intellij.openapi.vcs.FileStatusManager
1515
import com.intellij.openapi.vfs.VirtualFile
1616
import com.intellij.psi.PsiDirectory
17-
import com.intellij.psi.PsiFile
1817
import com.intellij.psi.PsiManager
1918
import java.util.concurrent.CompletableFuture
2019
import java.util.regex.Pattern

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/FileInsCommand.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.AutoDevNotifications
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.InsCommandListener
6-
import cc.unitmesh.devti.devin.InsCommandStatus
7-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.InsCommandListener
6+
import cc.unitmesh.devti.command.InsCommandStatus
7+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
88
import cc.unitmesh.devti.language.compiler.model.LineInfo
99
import cc.unitmesh.devti.language.utils.findFile
1010
import cc.unitmesh.devti.language.utils.lookupFile

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/LocalSearchInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.context.FileContextProvider
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import cc.unitmesh.devti.gui.chat.ui.relativePath
77
import cc.unitmesh.devti.language.utils.canBeAdded
88
import com.intellij.openapi.application.runReadAction

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/OpenInsCommand.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.utils.lookupFile
6-
import com.intellij.openapi.fileEditor.FileDocumentManager
76
import com.intellij.openapi.fileEditor.FileEditorManager
87
import com.intellij.openapi.project.Project
98

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/PatchInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.AutoDevNotifications
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
77
import cc.unitmesh.devti.sketch.AutoSketchMode
88
import cc.unitmesh.devti.sketch.ui.patch.readText

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/PrintInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55

66
class PrintInsCommand(private val value: String) : InsCommand {
77
override val commandName: BuiltinCommand = BuiltinCommand.OPEN

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RefactorInsCommand.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinRefactorCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinRefactorCommand
66
import cc.unitmesh.devti.language.psi.DevInFile
77
import com.intellij.lang.Language
88
import com.intellij.openapi.application.runReadAction

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RelatedSymbolInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.provider.RelatedClassesProvider
66
import cc.unitmesh.devti.provider.devins.DevInsSymbolProvider
77
import com.intellij.openapi.project.Project

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RevInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.provider.RevisionProvider
66
import com.intellij.openapi.project.Project
77

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RipgrepSearchInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.agent.tool.search.RipgrepSearcher
66
import com.intellij.openapi.project.Project
77

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RuleInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
66
import cc.unitmesh.devti.sketch.rule.ProjectRule
77
import com.intellij.openapi.project.Project

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/RunInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
66
import cc.unitmesh.devti.language.utils.lookupFile
77
import cc.unitmesh.devti.provider.AutoTestService

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/ShellInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.sketch.run.ProcessExecutor
66
import com.intellij.openapi.project.Project
77

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/StructureShireCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

33
import cc.unitmesh.devti.bridge.utils.StructureCommandUtil
4-
import cc.unitmesh.devti.devin.InsCommand
5-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
4+
import cc.unitmesh.devti.command.InsCommand
5+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
66
import cc.unitmesh.devti.language.utils.lookupFile
77
import com.intellij.openapi.application.ApplicationManager
88
import com.intellij.openapi.application.runReadAction

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/SymbolInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
66
import cc.unitmesh.devti.provider.devins.DevInsSymbolProvider
77
import com.intellij.openapi.project.Project

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/UsageInsCommand.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
66
import cc.unitmesh.devti.provider.RelatedClassesProvider
77
import cc.unitmesh.devti.provider.devins.DevInsSymbolProvider
@@ -10,8 +10,6 @@ import com.intellij.openapi.application.runReadAction
1010
import com.intellij.openapi.project.Project
1111
import com.intellij.psi.PsiNamedElement
1212
import com.intellij.psi.PsiElement
13-
import com.intellij.psi.PsiFile
14-
import com.intellij.openapi.editor.Document
1513
import com.intellij.psi.PsiDocumentManager
1614

1715
class UsageInsCommand(val myProject: Project, private val symbol: String) : InsCommand {

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/WriteInsCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.compiler.exec
22

3-
import cc.unitmesh.devti.devin.InsCommand
4-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.InsCommand
4+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
55
import cc.unitmesh.devti.language.compiler.error.DEVINS_ERROR
66
import cc.unitmesh.devti.language.psi.DevInUsed
77
import cc.unitmesh.devti.language.utils.lookupFile

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/completion/DevInCompletionContributor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cc.unitmesh.devti.language.completion
22

3-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
44
import cc.unitmesh.devti.language.completion.provider.*
55
import cc.unitmesh.devti.language.psi.DevInTypes
66
import cc.unitmesh.devti.language.psi.DevInUsed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/completion/provider/AgentToolOverviewCompletion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cc.unitmesh.devti.language.completion.provider
22

33
import cc.unitmesh.devti.language.DevInIcons
4-
import cc.unitmesh.devti.devin.dataprovider.ToolHubVariable
4+
import cc.unitmesh.devti.command.dataprovider.ToolHubVariable
55
import com.intellij.codeInsight.completion.CompletionParameters
66
import com.intellij.codeInsight.completion.CompletionProvider
77
import com.intellij.codeInsight.completion.CompletionResultSet

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/completion/provider/BuiltinCommandCompletion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cc.unitmesh.devti.language.completion.provider
22

3-
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
3+
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
44
import com.intellij.codeInsight.AutoPopupController
55
import com.intellij.codeInsight.completion.*
66
import com.intellij.codeInsight.lookup.LookupElementBuilder

0 commit comments

Comments
 (0)