diff --git a/build.gradle.kts b/build.gradle.kts index f2b609f3..f0016de2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,10 +25,10 @@ repositories { val kotlin_version = "1.9.20" val jetty_version = "11.0.18" val slf4j_version = "2.0.9" -val skyenet_version = "1.0.37" +val skyenet_version = "1.0.38" dependencies { - implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.34") + implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.35") implementation(group = "com.simiacryptus.skyenet", name = "core", version = skyenet_version) implementation(group = "com.simiacryptus.skyenet", name = "webui", version = skyenet_version) diff --git a/src/main/kotlin/com/github/simiacryptus/aicoder/config/ActionSettingsRegistry.kt b/src/main/kotlin/com/github/simiacryptus/aicoder/config/ActionSettingsRegistry.kt index 9c8b8dc3..f42cb0b4 100644 --- a/src/main/kotlin/com/github/simiacryptus/aicoder/config/ActionSettingsRegistry.kt +++ b/src/main/kotlin/com/github/simiacryptus/aicoder/config/ActionSettingsRegistry.kt @@ -11,7 +11,7 @@ import java.util.stream.Collectors class ActionSettingsRegistry { val actionSettings: MutableMap = HashMap() - private val version = 2.0004 + private val version = 2.0005 fun edit(superChildren: Array): Array { val children = superChildren.toList().toMutableList() diff --git a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/InsertImplementationAction.groovy b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/InsertImplementationAction.groovy index b0e6c983..77175013 100644 --- a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/InsertImplementationAction.groovy +++ b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/InsertImplementationAction.groovy @@ -6,7 +6,6 @@ import com.github.simiacryptus.aicoder.util.ComputerLanguage import com.github.simiacryptus.aicoder.util.UITools import com.github.simiacryptus.aicoder.util.psi.PsiClassContext import com.github.simiacryptus.aicoder.util.psi.PsiUtil -import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.project.Project import com.simiacryptus.jopenai.proxy.ChatProxy import kotlin.Pair diff --git a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/PasteAction.groovy b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/PasteAction.groovy index d33dc0a8..564b5f54 100644 --- a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/PasteAction.groovy +++ b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/code/PasteAction.groovy @@ -3,13 +3,12 @@ package com.github.simiacryptus.aicoder.actions.code import com.github.simiacryptus.aicoder.actions.SelectionAction import com.github.simiacryptus.aicoder.config.AppSettingsState import com.github.simiacryptus.aicoder.util.ComputerLanguage -import com.github.simiacryptus.aicoder.util.UITools import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.project.Project import com.simiacryptus.jopenai.proxy.ChatProxy import org.jetbrains.annotations.Nullable -import java.awt.Toolkit +import java.awt.* import java.awt.datatransfer.DataFlavor class PasteAction extends SelectionAction { diff --git a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/AppendAction.groovy b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/AppendAction.groovy index 7e538891..3465d2dc 100644 --- a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/AppendAction.groovy +++ b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/AppendAction.groovy @@ -3,7 +3,6 @@ package com.github.simiacryptus.aicoder.actions.generic import com.github.simiacryptus.aicoder.actions.SelectionAction import com.github.simiacryptus.aicoder.config.AppSettingsState import com.intellij.openapi.project.Project -import com.simiacryptus.jopenai.OpenAIClient import org.jetbrains.annotations.Nullable class AppendAction extends SelectionAction { diff --git a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/ReplaceOptionsAction.groovy b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/ReplaceOptionsAction.groovy index fc38b2fb..1acbbf59 100644 --- a/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/ReplaceOptionsAction.groovy +++ b/src/main/resources/sources/groovy/com/github/simiacryptus/aicoder/actions/generic/ReplaceOptionsAction.groovy @@ -10,9 +10,7 @@ import com.simiacryptus.jopenai.util.StringUtil import org.jetbrains.annotations.NotNull import org.jetbrains.annotations.Nullable -import static java.lang.Math.ceil -import static java.lang.Math.log -import static java.lang.Math.pow +import static java.lang.Math.* class ReplaceOptionsAction extends SelectionAction { interface VirtualAPI {